├── .github
└── ISSUE_TEMPLATE
│ ├── bug_report.md
│ └── feature_request.md
├── .gitignore
├── LICENSE
├── README.md
├── README.zh.md
├── frida
├── config
│ ├── addresses.11581.json
│ ├── addresses.11633.json
│ ├── addresses.13331.json
│ ├── addresses.13341.json
│ ├── addresses.13487.json
│ ├── addresses.13639.json
│ ├── addresses.13655.json
│ └── addresses.13871.json
└── hook.js
├── package.json
├── screenshots
├── console.png
└── sources.png
├── src
├── index.ts
└── third-party
│ ├── RemoteDebugCodex.js
│ ├── RemoteDebugConstants.js
│ ├── RemoteDebugUtils.js
│ └── WARemoteDebugProtobuf.js
├── tsconfig.json
└── yarn.lock
/.github/ISSUE_TEMPLATE/bug_report.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: Bug report
3 | about: Create a report to help us improve
4 | title: "[BUG]"
5 | labels: bug
6 | assignees: ''
7 |
8 | ---
9 |
10 | **Describe the bug**
11 | A clear and concise description of what the bug is.
12 |
13 | **To Reproduce**
14 | Steps to reproduce the behavior:
15 | 1. Go to '...'
16 | 2. Click on '....'
17 | 3. Scroll down to '....'
18 | 4. See error
19 |
20 | **Expected behavior**
21 | A clear and concise description of what you expected to happen.
22 |
23 | **Screenshots**
24 | If applicable, add screenshots to help explain your problem.
25 |
26 | **Environment (please complete the following information):**
27 | - WMPF version
28 | - Browser [e.g. chrome, safari]
29 | - MiniApp ID [if applicable]
30 |
31 | **Additional context**
32 | Add any other context about the problem here.
33 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/feature_request.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: Feature request
3 | about: Suggest an idea for this project
4 | title: "[FEATURE REQ]"
5 | labels: enhancement
6 | assignees: ''
7 |
8 | ---
9 |
10 | **Is your feature request a new version adaption request? Please provide the latest WMPF version. You may ignore the following questions.**
11 | WMPF version. Ex. new version 1xxxx.
12 |
13 | **If not, is your feature request related to a problem? Please describe.**
14 | A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
15 |
16 | **Describe the solution you'd like**
17 | A clear and concise description of what you want to happen.
18 |
19 | **Describe alternatives you've considered**
20 | A clear and concise description of any alternative solutions or features you've considered.
21 |
22 | **Additional context**
23 | Add any other context or screenshots about the feature request here.
24 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 |
2 | .DS_Store
3 | node_modules
4 |
5 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | GNU GENERAL PUBLIC LICENSE
2 | Version 2, June 1991
3 |
4 | Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
5 |
6 | Everyone is permitted to copy and distribute verbatim copies
7 | of this license document, but changing it is not allowed.
8 |
9 | Preamble
10 |
11 | The licenses for most software are designed to take away your
12 | freedom to share and change it. By contrast, the GNU General Public
13 | License is intended to guarantee your freedom to share and change free
14 | software--to make sure the software is free for all its users. This
15 | General Public License applies to most of the Free Software
16 | Foundation's software and to any other program whose authors commit to
17 | using it. (Some other Free Software Foundation software is covered by
18 | the GNU Lesser General Public License instead.) You can apply it to
19 | your programs, too.
20 |
21 | When we speak of free software, we are referring to freedom, not
22 | price. Our General Public Licenses are designed to make sure that you
23 | have the freedom to distribute copies of free software (and charge for
24 | this service if you wish), that you receive source code or can get it
25 | if you want it, that you can change the software or use pieces of it
26 | in new free programs; and that you know you can do these things.
27 |
28 | To protect your rights, we need to make restrictions that forbid
29 | anyone to deny you these rights or to ask you to surrender the rights.
30 | These restrictions translate to certain responsibilities for you if you
31 | distribute copies of the software, or if you modify it.
32 |
33 | For example, if you distribute copies of such a program, whether
34 | gratis or for a fee, you must give the recipients all the rights that
35 | you have. You must make sure that they, too, receive or can get the
36 | source code. And you must show them these terms so they know their
37 | rights.
38 |
39 | We protect your rights with two steps: (1) copyright the software, and
40 | (2) offer you this license which gives you legal permission to copy,
41 | distribute and/or modify the software.
42 |
43 | Also, for each author's protection and ours, we want to make certain
44 | that everyone understands that there is no warranty for this free
45 | software. If the software is modified by someone else and passed on, we
46 | want its recipients to know that what they have is not the original, so
47 | that any problems introduced by others will not reflect on the original
48 | authors' reputations.
49 |
50 | Finally, any free program is threatened constantly by software
51 | patents. We wish to avoid the danger that redistributors of a free
52 | program will individually obtain patent licenses, in effect making the
53 | program proprietary. To prevent this, we have made it clear that any
54 | patent must be licensed for everyone's free use or not licensed at all.
55 |
56 | The precise terms and conditions for copying, distribution and
57 | modification follow.
58 |
59 | GNU GENERAL PUBLIC LICENSE
60 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
61 |
62 | 0. This License applies to any program or other work which contains
63 | a notice placed by the copyright holder saying it may be distributed
64 | under the terms of this General Public License. The "Program", below,
65 | refers to any such program or work, and a "work based on the Program"
66 | means either the Program or any derivative work under copyright law:
67 | that is to say, a work containing the Program or a portion of it,
68 | either verbatim or with modifications and/or translated into another
69 | language. (Hereinafter, translation is included without limitation in
70 | the term "modification".) Each licensee is addressed as "you".
71 |
72 | Activities other than copying, distribution and modification are not
73 | covered by this License; they are outside its scope. The act of
74 | running the Program is not restricted, and the output from the Program
75 | is covered only if its contents constitute a work based on the
76 | Program (independent of having been made by running the Program).
77 | Whether that is true depends on what the Program does.
78 |
79 | 1. You may copy and distribute verbatim copies of the Program's
80 | source code as you receive it, in any medium, provided that you
81 | conspicuously and appropriately publish on each copy an appropriate
82 | copyright notice and disclaimer of warranty; keep intact all the
83 | notices that refer to this License and to the absence of any warranty;
84 | and give any other recipients of the Program a copy of this License
85 | along with the Program.
86 |
87 | You may charge a fee for the physical act of transferring a copy, and
88 | you may at your option offer warranty protection in exchange for a fee.
89 |
90 | 2. You may modify your copy or copies of the Program or any portion
91 | of it, thus forming a work based on the Program, and copy and
92 | distribute such modifications or work under the terms of Section 1
93 | above, provided that you also meet all of these conditions:
94 |
95 | a) You must cause the modified files to carry prominent notices
96 | stating that you changed the files and the date of any change.
97 |
98 | b) You must cause any work that you distribute or publish, that in
99 | whole or in part contains or is derived from the Program or any
100 | part thereof, to be licensed as a whole at no charge to all third
101 | parties under the terms of this License.
102 |
103 | c) If the modified program normally reads commands interactively
104 | when run, you must cause it, when started running for such
105 | interactive use in the most ordinary way, to print or display an
106 | announcement including an appropriate copyright notice and a
107 | notice that there is no warranty (or else, saying that you provide
108 | a warranty) and that users may redistribute the program under
109 | these conditions, and telling the user how to view a copy of this
110 | License. (Exception: if the Program itself is interactive but
111 | does not normally print such an announcement, your work based on
112 | the Program is not required to print an announcement.)
113 |
114 | These requirements apply to the modified work as a whole. If
115 | identifiable sections of that work are not derived from the Program,
116 | and can be reasonably considered independent and separate works in
117 | themselves, then this License, and its terms, do not apply to those
118 | sections when you distribute them as separate works. But when you
119 | distribute the same sections as part of a whole which is a work based
120 | on the Program, the distribution of the whole must be on the terms of
121 | this License, whose permissions for other licensees extend to the
122 | entire whole, and thus to each and every part regardless of who wrote it.
123 |
124 | Thus, it is not the intent of this section to claim rights or contest
125 | your rights to work written entirely by you; rather, the intent is to
126 | exercise the right to control the distribution of derivative or
127 | collective works based on the Program.
128 |
129 | In addition, mere aggregation of another work not based on the Program
130 | with the Program (or with a work based on the Program) on a volume of
131 | a storage or distribution medium does not bring the other work under
132 | the scope of this License.
133 |
134 | 3. You may copy and distribute the Program (or a work based on it,
135 | under Section 2) in object code or executable form under the terms of
136 | Sections 1 and 2 above provided that you also do one of the following:
137 |
138 | a) Accompany it with the complete corresponding machine-readable
139 | source code, which must be distributed under the terms of Sections
140 | 1 and 2 above on a medium customarily used for software interchange; or,
141 |
142 | b) Accompany it with a written offer, valid for at least three
143 | years, to give any third party, for a charge no more than your
144 | cost of physically performing source distribution, a complete
145 | machine-readable copy of the corresponding source code, to be
146 | distributed under the terms of Sections 1 and 2 above on a medium
147 | customarily used for software interchange; or,
148 |
149 | c) Accompany it with the information you received as to the offer
150 | to distribute corresponding source code. (This alternative is
151 | allowed only for noncommercial distribution and only if you
152 | received the program in object code or executable form with such
153 | an offer, in accord with Subsection b above.)
154 |
155 | The source code for a work means the preferred form of the work for
156 | making modifications to it. For an executable work, complete source
157 | code means all the source code for all modules it contains, plus any
158 | associated interface definition files, plus the scripts used to
159 | control compilation and installation of the executable. However, as a
160 | special exception, the source code distributed need not include
161 | anything that is normally distributed (in either source or binary
162 | form) with the major components (compiler, kernel, and so on) of the
163 | operating system on which the executable runs, unless that component
164 | itself accompanies the executable.
165 |
166 | If distribution of executable or object code is made by offering
167 | access to copy from a designated place, then offering equivalent
168 | access to copy the source code from the same place counts as
169 | distribution of the source code, even though third parties are not
170 | compelled to copy the source along with the object code.
171 |
172 | 4. You may not copy, modify, sublicense, or distribute the Program
173 | except as expressly provided under this License. Any attempt
174 | otherwise to copy, modify, sublicense or distribute the Program is
175 | void, and will automatically terminate your rights under this License.
176 | However, parties who have received copies, or rights, from you under
177 | this License will not have their licenses terminated so long as such
178 | parties remain in full compliance.
179 |
180 | 5. You are not required to accept this License, since you have not
181 | signed it. However, nothing else grants you permission to modify or
182 | distribute the Program or its derivative works. These actions are
183 | prohibited by law if you do not accept this License. Therefore, by
184 | modifying or distributing the Program (or any work based on the
185 | Program), you indicate your acceptance of this License to do so, and
186 | all its terms and conditions for copying, distributing or modifying
187 | the Program or works based on it.
188 |
189 | 6. Each time you redistribute the Program (or any work based on the
190 | Program), the recipient automatically receives a license from the
191 | original licensor to copy, distribute or modify the Program subject to
192 | these terms and conditions. You may not impose any further
193 | restrictions on the recipients' exercise of the rights granted herein.
194 | You are not responsible for enforcing compliance by third parties to
195 | this License.
196 |
197 | 7. If, as a consequence of a court judgment or allegation of patent
198 | infringement or for any other reason (not limited to patent issues),
199 | conditions are imposed on you (whether by court order, agreement or
200 | otherwise) that contradict the conditions of this License, they do not
201 | excuse you from the conditions of this License. If you cannot
202 | distribute so as to satisfy simultaneously your obligations under this
203 | License and any other pertinent obligations, then as a consequence you
204 | may not distribute the Program at all. For example, if a patent
205 | license would not permit royalty-free redistribution of the Program by
206 | all those who receive copies directly or indirectly through you, then
207 | the only way you could satisfy both it and this License would be to
208 | refrain entirely from distribution of the Program.
209 |
210 | If any portion of this section is held invalid or unenforceable under
211 | any particular circumstance, the balance of the section is intended to
212 | apply and the section as a whole is intended to apply in other
213 | circumstances.
214 |
215 | It is not the purpose of this section to induce you to infringe any
216 | patents or other property right claims or to contest validity of any
217 | such claims; this section has the sole purpose of protecting the
218 | integrity of the free software distribution system, which is
219 | implemented by public license practices. Many people have made
220 | generous contributions to the wide range of software distributed
221 | through that system in reliance on consistent application of that
222 | system; it is up to the author/donor to decide if he or she is willing
223 | to distribute software through any other system and a licensee cannot
224 | impose that choice.
225 |
226 | This section is intended to make thoroughly clear what is believed to
227 | be a consequence of the rest of this License.
228 |
229 | 8. If the distribution and/or use of the Program is restricted in
230 | certain countries either by patents or by copyrighted interfaces, the
231 | original copyright holder who places the Program under this License
232 | may add an explicit geographical distribution limitation excluding
233 | those countries, so that distribution is permitted only in or among
234 | countries not thus excluded. In such case, this License incorporates
235 | the limitation as if written in the body of this License.
236 |
237 | 9. The Free Software Foundation may publish revised and/or new versions
238 | of the General Public License from time to time. Such new versions will
239 | be similar in spirit to the present version, but may differ in detail to
240 | address new problems or concerns.
241 |
242 | Each version is given a distinguishing version number. If the Program
243 | specifies a version number of this License which applies to it and "any
244 | later version", you have the option of following the terms and conditions
245 | either of that version or of any later version published by the Free
246 | Software Foundation. If the Program does not specify a version number of
247 | this License, you may choose any version ever published by the Free Software
248 | Foundation.
249 |
250 | 10. If you wish to incorporate parts of the Program into other free
251 | programs whose distribution conditions are different, write to the author
252 | to ask for permission. For software which is copyrighted by the Free
253 | Software Foundation, write to the Free Software Foundation; we sometimes
254 | make exceptions for this. Our decision will be guided by the two goals
255 | of preserving the free status of all derivatives of our free software and
256 | of promoting the sharing and reuse of software generally.
257 |
258 | NO WARRANTY
259 |
260 | 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
261 | FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
262 | OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
263 | PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
264 | OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
265 | MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
266 | TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
267 | PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
268 | REPAIR OR CORRECTION.
269 |
270 | 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
271 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
272 | REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
273 | INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
274 | OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
275 | TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
276 | YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
277 | PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
278 | POSSIBILITY OF SUCH DAMAGES.
279 |
280 | END OF TERMS AND CONDITIONS
281 |
282 | How to Apply These Terms to Your New Programs
283 |
284 | If you develop a new program, and you want it to be of the greatest
285 | possible use to the public, the best way to achieve this is to make it
286 | free software which everyone can redistribute and change under these terms.
287 |
288 | To do so, attach the following notices to the program. It is safest
289 | to attach them to the start of each source file to most effectively
290 | convey the exclusion of warranty; and each file should have at least
291 | the "copyright" line and a pointer to where the full notice is found.
292 |
293 |
294 | Copyright (C)
295 |
296 | This program is free software; you can redistribute it and/or modify
297 | it under the terms of the GNU General Public License as published by
298 | the Free Software Foundation; either version 2 of the License, or
299 | (at your option) any later version.
300 |
301 | This program is distributed in the hope that it will be useful,
302 | but WITHOUT ANY WARRANTY; without even the implied warranty of
303 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
304 | GNU General Public License for more details.
305 |
306 | You should have received a copy of the GNU General Public License along
307 | with this program; if not, see .
308 |
309 | Also add information on how to contact you by electronic and paper mail.
310 |
311 | If the program is interactive, make it output a short notice like this
312 | when it starts in an interactive mode:
313 |
314 | Gnomovision version 69, Copyright (C) year name of author
315 | Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
316 | This is free software, and you are welcome to redistribute it
317 | under certain conditions; type `show c' for details.
318 |
319 | The hypothetical commands `show w' and `show c' should show the appropriate
320 | parts of the General Public License. Of course, the commands you use may
321 | be called something other than `show w' and `show c'; they could even be
322 | mouse-clicks or menu items--whatever suits your program.
323 |
324 | You should also get your employer (if you work as a programmer) or your
325 | school, if any, to sign a "copyright disclaimer" for the program, if
326 | necessary. Here is a sample; alter the names:
327 |
328 | Yoyodyne, Inc., hereby disclaims all copyright interest in the program
329 | `Gnomovision' (which makes passes at compilers) written by James Hacker.
330 |
331 | , 1 April 1989
332 | Moe Ghoul, President of Vice
333 |
334 | This General Public License does not permit incorporating your program into
335 | proprietary programs. If your program is a subroutine library, you may
336 | consider it more useful to permit linking proprietary applications with the
337 | library. If this is what you want to do, use the GNU Lesser General
338 | Public License instead of this License.
339 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # WMPFDebugger
2 |
3 | [English](README.md) | [中文](README.zh.md)
4 |
5 | Yet another WeChat miniapp debugger on Windows (WMPF).
6 |
7 | This debugger (tweak) exploits Remote Debug feature provided by wechatdevtools and patches serval restrictions to force miniapp runtime to support full Chrome Debug Protocol, and thus can be directly applied to standard devtools shipped with chromium-based browsers.
8 |
9 |
10 | ## Support Status
11 |
12 | Note: Currently only miniapp component is supported.
13 |
14 | Version histories:
15 |
16 | * 13871 (latest)
17 | * 13655
18 | * 13639
19 | * 13487
20 | * 13341
21 | * 13331
22 | * 11633
23 | * 11581 (unstable, will connect but crash renderer, feel free to test)
24 |
25 | To check your installed version, navigate to Task Manager -> WeChatAppEx -> Right click -> Open file location -> Check the number between `RadiumWMPF` and `extracted`.
26 |
27 | To adapt to another version, find x-refs mentioned in `frida/hook.js` in IDA Pro to locate function offsets. Alternatively, you can submit an issue for new version adaption and I will try that if I have the binary. Note that only newer version adaption requests will be considered.
28 |
29 |
30 | To upgrade to the latest WMPF (WeChat version < 4.x), type in `:showcmdwnd` in the search bar (do not hit enter), then the command window should pop up. Type in `/plugin set_grayvalue=202&check_update_force` and hit enter, the latest WMPF plugin should be downloaded, if any updates are available. Restart the WeChat to apply plugin upgrade.
31 |
32 | ## Prerequisites
33 |
34 | * node.js
35 | - yarn
36 | * chromium-based browsers (e.g., Chrome, Edge, etc.)
37 |
38 | ## Quick Start
39 |
40 | **Step 1.** Clone this repo and install dependencies.
41 |
42 | ```bash
43 | git clone https://github.com/evi0s/WMPFDebugger
44 | cd WMPFDebugger
45 | yarn
46 | ```
47 |
48 | **Step 2.** Run `src/index.ts` to launch debug server and proxy server, and inject hook script to miniapp runtime.
49 |
50 | ```bash
51 | npx ts-node src/index.ts
52 | ```
53 |
54 | > Note: After this step, you need to launch the miniapp BEFORE launching the devtools, otherwise you will probably need to kill the server and redo the steps 2 to 4 again.
55 |
56 | **Step 3.** Launch any miniapp you would like to debug.
57 |
58 | **Step 4.** Open your chromium-based browsers, navigate to `devtools://devtools/bundled/inspector.html?ws=127.0.0.1:62000` and profit. You can change the CDP port `CDP_PORT` (62000 in this example) in `src/index.ts` to any port you like.
59 |
60 | ## Screenshots
61 |
62 | 
63 |
64 | 
65 |
66 | ## Disclaimer
67 |
68 | BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
69 |
70 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
71 |
72 | The code in the `src/third-party` is extracted from `wechatdevtools` and fully copyrighted by Tencent Holdings Ltd.
73 |
74 |
75 |
--------------------------------------------------------------------------------
/README.zh.md:
--------------------------------------------------------------------------------
1 | # WMPFDebugger
2 |
3 | 又一个 Windows 微信小程序调试工具
4 |
5 | 这个工具通过 patch 一些 Chrome 调试协议(CDP)的过滤器和其他的条件判断来强制小程序连接到外部调试器(也就是远程调试,LanDebug 模式)。这个调试协议是基于 protobuf 实现的私有协议,通过逆向开发者工具提取相应的协议实现,该工具实现了一个简单的小程序调试协议转换为标准 Chrome 调试协议,从而允许我们使用标准基于 chromium 浏览器的内嵌开发者工具来调试任意小程序
6 |
7 |
8 | ## 支持状态
9 |
10 | 目前仅支持小程序,尚未支持内建浏览器页面
11 |
12 | 支持的 WMPF 版本:
13 |
14 | * 13871 (最新)
15 | * 13655
16 | * 13639
17 | * 13487
18 | * 13341
19 | * 13331
20 | * 11633
21 | * 11581 (成功连接但会随后渲染进程 crash,请自行测试)
22 |
23 | 如何检查版本:打开任务管理器,找到 WeChatAppEx 进程,右键,打开文件所在的位置,检查在 `RadiumWMPF` 和 `extracted` 之间的数字
24 |
25 | 如何适配到其他版本:你可以在 `frida/hook.js` 中找到交叉引用的字符串。这些字符串通常只有唯一的引用方便定位相关函数。另外,你也可以提交版本适配的 Issue,我会尝试适配该版本如果我有相应的版本的 binary。仅更新版本的适配请求会被考虑
26 |
27 | 如何更新到最新的 WMPF 版本(微信版本 < 4.x):搜索框输入 `:showcmdwnd`(不要按回车触发搜索)弹出命令窗口,输入 `/plugin set_grayvalue=202&check_update_force` 并回车等待更新(如果有新版本)。重启微信以生效。
28 |
29 |
30 | ## 准备
31 |
32 | * node.js
33 | - yarn 包管理器
34 | * 基于的 chromium 浏览器,例如 Chrome, Edge, 等等
35 |
36 | ## 使用
37 |
38 | **第 1 步** 克隆并安装依赖
39 |
40 | ```bash
41 | git clone https://github.com/evi0s/WMPFDebugger
42 | cd WMPFDebugger
43 | yarn
44 | ```
45 |
46 | **第 2 步** 运行 `src/index.ts`。该命令会启动调试服务器和 CDP 代理服务器,同时相关 hook 代码也会被自动注入到小程序运行时中
47 |
48 | ```bash
49 | npx ts-node src/index.ts
50 | ```
51 |
52 | > 注意: 在这个步骤之后,你需要先启动小程序(第三步),再打开开发者工具(第四步)。如果操作顺序反了你可能需要从重新第二步开始
53 |
54 | **第 3 步** 打开任意你想调试的小程序
55 |
56 | **第 4 步** 打开浏览器,访问 `devtools://devtools/bundled/inspector.html?ws=127.0.0.1:62000` 即可。你也可以将 CDP 端口(在例子中为 62000)修改到任意其他端口。相关代码定义在 `src/index.ts` 中
57 |
58 | ## 截图
59 |
60 | 
61 |
62 | 
63 |
64 | ## 免责声明
65 |
66 | **本库只能作为学习用途,造成的任何问题与本库开发者无关,如侵犯到你的权益,请联系删除**
67 |
68 | 该程序以 GPLv2 许可证开源,参考许可证第十一及十二条:
69 |
70 | 本程序为免费授权,故在适用法律范围内不提供品质担保。除非另作书面声明,版权持有人及其他程式提供者“概”不提供任何显式或隐式的品质担保,品质担保所指包括而不仅限于有经济价值和适合特定用途的保证。全部风险,如程序的质量和性能问题,皆由你承担。若程序出现缺陷,你将承担所有必要的修复和更正服务的费用
71 |
72 | 除非适用法律或书面协议要求,任何版权持有人或本程序按本协议可能存在的第三方修改和再发布者,都不对你的损失负有责任,包括由于使用或者不能使用本程序造成的任何一般的、特殊的、偶发的或重大的损失(包括而不仅限于数据丢失、数据失真、你或第三方的后续损失、其他程序无法与本程序协同运作),即使那些人声称会对此负责
73 |
74 |
75 | 此外,在 `src/third-party` 中,所有代码从微信开发者工具提取,因此腾讯控股有限公司拥有对该代码的所有版权
76 |
77 |
78 |
--------------------------------------------------------------------------------
/frida/config/addresses.11581.json:
--------------------------------------------------------------------------------
1 | {
2 | "Version": 11581,
3 | "LoadStartHookOffset": "0x28E9190",
4 | "CDPFilterHookOffset": "0x38C4350",
5 | "ResourceCachePolicyHookOffset": "0x29448E0"
6 | }
7 |
8 |
--------------------------------------------------------------------------------
/frida/config/addresses.11633.json:
--------------------------------------------------------------------------------
1 | {
2 | "Version": 11633,
3 | "LoadStartHookOffset": "0x28F22A0",
4 | "CDPFilterHookOffset": "0x38D41E0",
5 | "ResourceCachePolicyHookOffset": "0x294DA80"
6 | }
7 |
8 |
--------------------------------------------------------------------------------
/frida/config/addresses.13331.json:
--------------------------------------------------------------------------------
1 | {
2 | "Version": 13331,
3 | "LoadStartHookOffset": "0x0FFC200",
4 | "CDPFilterHookOffset": "0x2420100",
5 | "ResourceCachePolicyHookOffset": "0x1050590"
6 | }
7 |
--------------------------------------------------------------------------------
/frida/config/addresses.13341.json:
--------------------------------------------------------------------------------
1 | {
2 | "Version": 13341,
3 | "LoadStartHookOffset": "0x10009E0",
4 | "CDPFilterHookOffset": "0x242E8E0",
5 | "ResourceCachePolicyHookOffset": "0x1053730"
6 | }
7 |
--------------------------------------------------------------------------------
/frida/config/addresses.13487.json:
--------------------------------------------------------------------------------
1 | {
2 | "Version": 13487,
3 | "LoadStartHookOffset": "0x0FFB600",
4 | "CDPFilterHookOffset": "0x241FEB0",
5 | "ResourceCachePolicyHookOffset": "0x104F990"
6 | }
--------------------------------------------------------------------------------
/frida/config/addresses.13639.json:
--------------------------------------------------------------------------------
1 | {
2 | "Version": 13639,
3 | "LoadStartHookOffset": "0x1000990",
4 | "CDPFilterHookOffset": "0x2424DE0",
5 | "ResourceCachePolicyHookOffset": "0x1054D20"
6 | }
7 |
--------------------------------------------------------------------------------
/frida/config/addresses.13655.json:
--------------------------------------------------------------------------------
1 | {
2 | "Version": 13655,
3 | "LoadStartHookOffset": "0x100F4B0",
4 | "CDPFilterHookOffset": "0x244A9E0",
5 | "ResourceCachePolicyHookOffset": "0x1063520"
6 | }
7 |
--------------------------------------------------------------------------------
/frida/config/addresses.13871.json:
--------------------------------------------------------------------------------
1 | {
2 | "Version": 13871,
3 | "LoadStartHookOffset": "0x101F160",
4 | "CDPFilterHookOffset": "0x246FC40",
5 | "ResourceCachePolicyHookOffset": "0x1073220"
6 | }
7 |
--------------------------------------------------------------------------------
/frida/hook.js:
--------------------------------------------------------------------------------
1 | const VERBOSE = false;
2 |
3 | const getMainModule = (version) => {
4 | if (version >= 13331) {
5 | return Process.findModuleByName("flue.dll");
6 | }
7 | return Process.findModuleByName("WeChatAppEx.exe");
8 | }
9 |
10 |
11 | const patchResourceCachePolicy = (base, offset, version) => {
12 | // xref: WAPCAdapterAppIndex.js
13 | Interceptor.attach(base.add(offset), {
14 | onEnter(args) {
15 | console.log(`[patch] lib cache policy ${offset} on enter`);
16 | },
17 | onLeave(retval) {
18 | console.log(`[patch] lib cache policy ${offset} onLeave with retval:`, retval.toInt32(), "; patch to 0x0");
19 | retval.replace(0x0);
20 | }
21 | });
22 | }
23 |
24 | const patchCDPFilter = (base, offset, version) => {
25 | // filter function: sub_14342D970
26 | // xref: SendToClientFilter OR devtools_message_filter_applet_webview.cc
27 | Interceptor.attach(base.add(offset), {
28 | onEnter(args) {
29 | !VERBOSE ? console.log(`[patch] patch CDP filter ${offset}`) : console.log(`[patch] CDP filter ${offset} on enter, original value of v216:`, args[0].readPointer());
30 | this.v216 = args[0];
31 | },
32 | onLeave(retval) {
33 | const v216Value = this.v216.readPointer();
34 | VERBOSE && console.log(`[patch] CDP filter ${offset} on leave, patch v216, now value:`, v216Value, "; *(v216 + 8) =", v216Value.add(8).readU32());
35 | if (v216Value.add(8).readU32() == 6) {
36 | v216Value.add(8).writeU32(0x0);
37 | }
38 | }
39 | });
40 | }
41 |
42 | const onLoadStartHook = (a1, a2, version) => {
43 | let structOffset = [1208, 1160, 16, 488];
44 | switch (version) {
45 | case 13331:
46 | case 13341:
47 | case 13487:
48 | case 13639:
49 | structOffset = [1272, 1224, 16, 488];
50 | break;
51 | case 13655:
52 | structOffset = [1280, 1232, 16, 488];
53 | break;
54 | case 13871:
55 | structOffset = [1360, 1312, 16, 488];
56 | break;
57 | }
58 | const passArgs = a1.add(56).readPointer().add(structOffset[0]).readPointer();
59 | const passConditionPtr = passArgs.add(8).readPointer().add(structOffset[1]).readPointer().add(structOffset[2]).readPointer().add(structOffset[3]);
60 | console.log("[hook] scene:", passConditionPtr.readInt());
61 |
62 | // 1053: from issue #25
63 | // 1145: from search
64 | // 1256: from recent
65 | // 1260: from frequently used
66 | // 1302: from services
67 | // 1308: minigame?
68 | const sceneNumberArray = [1005, 1053, 1145, 1256, 1260, 1302, 1308];
69 | if (!sceneNumberArray.includes(passConditionPtr.readInt())) {
70 | return;
71 | }
72 | console.log("[hook] hook scene condition -> 1101");
73 | passConditionPtr.writeInt(1101);
74 |
75 | // TODO: customize debugging endpoint
76 | // const websocketServerStringPtr = passArgs.add(8).readPointer().add(520);
77 | // VERBOSE && console.log("[hook] hook websocket server, original: ", websocketServerStringPtr.readUtf8String());
78 | // websocketServerStringPtr.writeUtf8String("ws://127.0.0.1:8189/");
79 | }
80 |
81 | const interceptor = (base, offset, version) => {
82 | // xref: AppletIndexContainer::OnLoadStart
83 | Interceptor.attach(base.add(offset), {
84 | onEnter(args) {
85 | console.log("[inteceptor] AppletIndexContainer::OnLoadStart onEnter, indexContainer.this: ", this.context.rcx);
86 | // write dl to 0x1
87 | if ((this.context.rdx & 0xFF) !== 1) {
88 | this.context.rdx = (this.context.rdx & ~0xFF) | 0x1;
89 | }
90 | // handle others
91 | onLoadStartHook(this.context.rcx, this.context.rdx, version);
92 | },
93 | onLeave(retval) {
94 | // do nothing
95 | }
96 | })
97 | }
98 |
99 | const parseConfig = () => {
100 | const rawConfig = `@@CONFIG@@`;
101 | if (rawConfig.includes("@@")) {
102 | // test addresses
103 | return {
104 | Version: 13341,
105 | LoadStartHookOffset: "0x10009E0",
106 | CDPFilterHookOffset: "0x242E8E0",
107 | ResourceCachePolicyHookOffset: "0x1053730"
108 | }
109 | }
110 | return JSON.parse(rawConfig);
111 | }
112 |
113 | const main = () => {
114 | const config = parseConfig();
115 | const mainModule = getMainModule(config.Version);
116 | interceptor(mainModule.base, config.LoadStartHookOffset, config.Version);
117 | patchResourceCachePolicy(mainModule.base, config.ResourceCachePolicyHookOffset, config.Version);
118 | patchCDPFilter(mainModule.base, config.CDPFilterHookOffset, config.Version);
119 | }
120 |
121 | main();
122 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "WMPFDebugger",
3 | "version": "1.0.0",
4 | "main": "src/index.ts",
5 | "license": "MIT",
6 | "author": "evi0s",
7 | "dependencies": {
8 | "frida": "^16.6.6",
9 | "protobufjs": "^7.4.0",
10 | "ws": "^8.18.0"
11 | },
12 | "devDependencies": {
13 | "@types/node": "^22.13.1",
14 | "@types/ws": "^8.5.14",
15 | "ts-node": "^10.9.2",
16 | "typescript": "^5.7.3"
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/screenshots/console.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/evi0s/WMPFDebugger/79eb8d21319bc34382c2ec913b747f631d1f1124/screenshots/console.png
--------------------------------------------------------------------------------
/screenshots/sources.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/evi0s/WMPFDebugger/79eb8d21319bc34382c2ec913b747f631d1f1124/screenshots/sources.png
--------------------------------------------------------------------------------
/src/index.ts:
--------------------------------------------------------------------------------
1 | import { promises } from "node:fs";
2 | import { EventEmitter } from "node:events";
3 | import path from "node:path";
4 | import * as frida from "frida";
5 | import WebSocket, { WebSocketServer } from "ws";
6 |
7 | const codex = require("./third-party/RemoteDebugCodex.js");
8 | const messageProto = require("./third-party/WARemoteDebugProtobuf.js");
9 |
10 |
11 | class DebugMessageEmitter extends EventEmitter {};
12 |
13 |
14 | // default debugging port, do not change
15 | const DEBUG_PORT = 9421;
16 | // CDP port, change to whatever you like
17 | // use this port by navigating to devtools://devtools/bundled/inspector.html?ws=127.0.0.1:${CDP_PORT}
18 | const CDP_PORT = 62000;
19 | // debug switch
20 | const DEBUG = false;
21 |
22 | const debugMessageEmitter = new DebugMessageEmitter();
23 |
24 | const bufferToHexString = (buffer: ArrayBuffer) => {
25 | return Array.from(new Uint8Array(buffer)).map(byte => byte.toString(16).padStart(2, '0')).join("");
26 | }
27 |
28 | const debug_server = () => {
29 | const wss = new WebSocketServer({ port: DEBUG_PORT });
30 | console.log(`[server] debug server running on ws://localhost:${DEBUG_PORT}`);
31 |
32 | let messageCounter = 0;
33 |
34 | const onMessage = (message: ArrayBuffer) => {
35 | DEBUG && console.log(`[client] received raw message (hex): ${bufferToHexString(message)}`);
36 | let unwrappedData: any = null;
37 | try {
38 | const decodedData = messageProto.mmbizwxadevremote.WARemoteDebug_DebugMessage.decode(message);
39 | unwrappedData = codex.unwrapDebugMessageData(decodedData);
40 | DEBUG && console.log(`[client] [DEBUG] decoded data:`);
41 | DEBUG && console.dir(unwrappedData)
42 | } catch (e) {
43 | console.error(`[client] err: ${e}`);
44 | }
45 |
46 | if (unwrappedData === null) {
47 | return;
48 | }
49 |
50 | if (unwrappedData.category === "chromeDevtoolsResult") {
51 | // need to proxy to CDP client
52 | debugMessageEmitter.emit("cdpmessage", unwrappedData.data.payload);
53 | }
54 | }
55 |
56 | wss.on("connection", (ws: WebSocket) => {
57 | console.log("[conn] miniapp client connected");
58 | ws.on("message", onMessage);
59 | ws.on("error", (err) => {console.error("[client] err:", err)});
60 | ws.on("close", () => {console.log("[client] client disconnected")});
61 | });
62 |
63 | debugMessageEmitter.on("proxymessage", (message: string) => {
64 | wss && wss.clients.forEach(client => {
65 | if (client.readyState === WebSocket.OPEN) {
66 | // encode CDP and send to miniapp
67 | // wrapDebugMessageData(data, category, compressAlgo)
68 | const rawPayload = {
69 | jscontext_id: "",
70 | op_id: Math.round(100 * Math.random()),
71 | payload: message.toString()
72 | };
73 | DEBUG && console.log(rawPayload);
74 | const wrappedData = codex.wrapDebugMessageData(rawPayload, "chromeDevtools", 0);
75 | const outData = {
76 | seq: ++messageCounter,
77 | category: "chromeDevtools",
78 | data: wrappedData.buffer,
79 | compressAlgo: 0,
80 | originalSize: wrappedData.originalSize
81 | }
82 | const encodedData = messageProto.mmbizwxadevremote.WARemoteDebug_DebugMessage.encode(outData).finish();
83 | client.send(encodedData, { binary: true });
84 | }
85 | });
86 | });
87 | }
88 |
89 | const proxy_server = () => {
90 | const wss = new WebSocketServer({ port: CDP_PORT });
91 | console.log(`[server] proxy server running on ws://localhost:${CDP_PORT}`);
92 |
93 | const onMessage = (message: string) => {
94 | debugMessageEmitter.emit("proxymessage", message);
95 | }
96 |
97 | wss.on("connection", (ws: WebSocket) => {
98 | console.log("[conn] CDP client connected");
99 | ws.on("message", onMessage);
100 | ws.on("error", (err) => {console.error("[client] CDP err:", err)});
101 | ws.on("close", () => {console.log("[client] CDP client disconnected")});
102 | });
103 |
104 | debugMessageEmitter.on("cdpmessage", (message: string) => {
105 | wss && wss.clients.forEach(client => {
106 | if (client.readyState === WebSocket.OPEN) {
107 | // send CDP message to devtools
108 | client.send(message);
109 | }
110 | });
111 | });
112 | }
113 |
114 | const frida_server = async () => {
115 | const localDevice = await frida.getLocalDevice();
116 | const processes = await localDevice.enumerateProcesses({scope: frida.Scope.Metadata});
117 | const wmpfProcesses = processes.filter(process => process.name === "WeChatAppEx.exe");
118 | const wmpfPids = wmpfProcesses.map(p => p.parameters.ppid ? p.parameters.ppid : 0);
119 |
120 | // find the parent process
121 | const wmpfPid = wmpfPids.sort((a, b) => wmpfPids.filter(v => v === a).length - wmpfPids.filter(v => v === b).length).pop();
122 | if (wmpfPid === undefined) {
123 | throw new Error("[frida] WeChatAppEx.exe process not found");
124 | return;
125 | }
126 | const wmpfProcess = processes.filter(process => process.pid === wmpfPid)[0];
127 | const wmpfVersionMatch = wmpfProcess.parameters.path ? wmpfProcess.parameters.path.match(/\d+/g) : "";
128 | const wmpfVersion = wmpfVersionMatch ? new Number(wmpfVersionMatch.pop()) : 0;
129 | if (wmpfVersion === 0) {
130 | throw new Error("[frida] error in find wmpf version");
131 | return;
132 | }
133 |
134 | // attach to process
135 | const session = await localDevice.attach(wmpfPid);
136 |
137 | // find hook script
138 | const projectRoot = path.join(path.dirname(require.main && require.main.filename || process.mainModule && process.mainModule.filename || process.cwd()), "..");
139 | let scriptContent: string | null = null;
140 | try {
141 | scriptContent = (await promises.readFile(path.join(projectRoot, "frida/hook.js"))).toString();
142 | } catch (e) {
143 | throw new Error("[frida] hook script not found");
144 | return;
145 | }
146 |
147 | let configContent: string | null = null;
148 | try {
149 | configContent = (await promises.readFile(path.join(projectRoot, "frida/config", `addresses.${wmpfVersion}.json`))).toString();
150 | configContent = JSON.stringify(JSON.parse(configContent));
151 | } catch(e) {
152 | throw new Error(`[frida] version config not found: ${wmpfVersion}`);
153 | }
154 |
155 | if (scriptContent === null || configContent === null) {
156 | throw new Error("[frida] unable to find hook script");
157 | return;
158 | }
159 |
160 | // load script
161 | const script = await session.createScript(scriptContent.replace("@@CONFIG@@", configContent));
162 | script.message.connect(message => {
163 | console.log("[frida client]", message);
164 | });
165 | await script.load();
166 | console.log(`[frida] script loaded, WMPF version: ${wmpfVersion}, pid: ${wmpfPid}`);
167 | }
168 |
169 | const main = async () => {
170 | debug_server();
171 | proxy_server();
172 | frida_server();
173 | }
174 |
175 | (async () => {
176 | await main();
177 | })();
178 |
179 |
180 |
181 |
--------------------------------------------------------------------------------
/src/third-party/RemoteDebugCodex.js:
--------------------------------------------------------------------------------
1 | ! function(require, directRequire) {
2 | "use strict";
3 | Object.defineProperty(exports, "__esModule", {
4 | value: !0
5 | }), exports.model = exports.wrapClientResponseDataFormatToProto = exports.unwrapClientProtoToDataFormat = exports.bufferToUint8Array = exports.uint8ArrayToBuffer = exports.unwrapProtoToDataFormat = exports.unwrapDebugMessageData = exports.wrapOutgoingToProto = exports.wrapDebugMessageData = exports.clientRequestCmdForType = exports.requestCmdForType = void 0;
6 | const e = require("zlib"),
7 | o = require('./WARemoteDebugProtobuf.js'),
8 | t = require('./RemoteDebugConstants.js'),
9 | s = require('./RemoteDebugUtils.js'),
10 | a = {e: (msg) => {console.error(msg)}};
11 | let n;
12 |
13 | function r(e) {
14 | return t.ResponseType[e] || t.ClientRequestType[e] || ""
15 | }
16 |
17 | function i(e) {
18 | switch (e) {
19 | case t.RequestType.Login:
20 | return t.RequestCmd.Login;
21 | case t.RequestType.EventNotifyBegin:
22 | return t.RequestCmd.EventNotifyBegin;
23 | case t.RequestType.EventNotifyBlock:
24 | return t.RequestCmd.EventNotifyBlock;
25 | case t.RequestType.EventNotifyEnd:
26 | return t.RequestCmd.EventNotifyEnd;
27 | case t.RequestType.Heartbeat:
28 | return t.RequestCmd.Heartbeat;
29 | case t.RequestType.JoinRoom:
30 | return t.RequestCmd.JoinRoom;
31 | case t.RequestType.MessageNotifyParallelly:
32 | return t.RequestCmd.MessageNotifyParallelly;
33 | case t.RequestType.MessageNotify:
34 | return t.RequestCmd.MessageNotify;
35 | case t.RequestType.QuitRoom:
36 | return t.RequestCmd.QuitRoom;
37 | case t.RequestType.SendDebugMessage:
38 | return t.RequestCmd.SendDebugMessage;
39 | case t.RequestType.SyncMessage:
40 | return t.RequestCmd.SyncMessage;
41 | case t.RequestType.SendDebugMessageParallelly:
42 | return t.RequestCmd.SendDebugMessageParallelly;
43 | case t.ResponseType.MessageNotifyParallelly:
44 | return t.RequestCmd.MessageNotifyParallelly;
45 | default:
46 | return t.RequestCmd.Unknown
47 | }
48 | }
49 |
50 | function m(e) {
51 | switch (e) {
52 | case t.ClientResponseType.Login:
53 | return t.ClientRequestCmd.Login;
54 | case t.ClientResponseType.EventNotifyBegin:
55 | return t.ClientRequestCmd.EventNotifyBegin;
56 | case t.ClientResponseType.EventNotifyBlock:
57 | return t.ClientRequestCmd.EventNotifyBlock;
58 | case t.ClientResponseType.EventNotifyEnd:
59 | return t.ClientRequestCmd.EventNotifyEnd;
60 | case t.ClientResponseType.Heartbeat:
61 | return t.ClientRequestCmd.Heartbeat;
62 | case t.ClientResponseType.JoinRoom:
63 | return t.ClientRequestCmd.JoinRoom;
64 | case t.ClientResponseType.MessageNotifyParallelly:
65 | return t.ClientRequestCmd.MessageNotifyParallelly;
66 | case t.ClientResponseType.MessageNotify:
67 | return t.ClientRequestCmd.MessageNotify;
68 | case t.ClientResponseType.QuitRoom:
69 | return t.ClientRequestCmd.QuitRoom;
70 | case t.ClientResponseType.SendDebugMessage:
71 | return t.ClientRequestCmd.SendDebugMessage;
72 | case t.ClientResponseType.SyncMessage:
73 | return t.ClientRequestCmd.SyncMessage;
74 | case t.ClientResponseType.SendDebugMessageParallelly:
75 | return t.ClientRequestCmd.SendDebugMessageParallelly;
76 | default:
77 | return t.ClientRequestCmd.Unknown
78 | }
79 | }
80 |
81 | function b(r, i, m = 0) {
82 | let b = null;
83 | switch (i) {
84 | case t.DebugMessageCategory.CallInterface: {
85 | const e = r,
86 | t = {
87 | objName: e.name,
88 | methodName: e.method,
89 | methodArgList: e.args.map(e => String(e)),
90 | callId: e.call_id
91 | },
92 | n = o.mmbizwxadevremote.WARemoteDebug_CallInterface.verify(t);
93 | (0, s.expect)(Boolean(n), a).toBe(!1).fail(() => {
94 | throw a.e("invalid callInterfaceObject obj", n), n
95 | }), b = o.mmbizwxadevremote.WARemoteDebug_CallInterface.encode(t).finish();
96 | break
97 | }
98 | case t.DebugMessageCategory.EvaluateJavascriptResult: {
99 | const e = r,
100 | t = {
101 | ret: e.ret,
102 | evaluateId: e.evaluate_id
103 | },
104 | n = o.mmbizwxadevremote.WARemoteDebug_EvaluateJavascriptResult.verify(t);
105 | (0, s.expect)(Boolean(n), a).toBe(!1).fail(() => {
106 | throw a.e("invalid EvaluateJavascriptResult obj", n), n
107 | }), b = o.mmbizwxadevremote.WARemoteDebug_EvaluateJavascriptResult.encode(t).finish();
108 | break
109 | }
110 | case t.DebugMessageCategory.Ping: {
111 | const e = r,
112 | t = {
113 | pingId: e.ping_id,
114 | payload: e.payload
115 | },
116 | n = o.mmbizwxadevremote.WARemoteDebug_Ping.verify(t);
117 | (0, s.expect)(Boolean(n), a).toBe(!1).fail(() => {
118 | throw a.e("invalid Ping obj", n), n
119 | }), b = o.mmbizwxadevremote.WARemoteDebug_Ping.encode(t).finish();
120 | break
121 | }
122 | case t.DebugMessageCategory.Breakpoint: {
123 | const e = {
124 | isHit: Boolean(r.is_hit)
125 | },
126 | t = o.mmbizwxadevremote.WARemoteDebug_Breakpoint.verify(e);
127 | (0, s.expect)(Boolean(t), a).toBe(!1).fail(() => {
128 | throw a.e("invalid Breakpoint obj", t), t
129 | }), b = o.mmbizwxadevremote.WARemoteDebug_Breakpoint.encode(e).finish();
130 | break
131 | }
132 | case t.DebugMessageCategory.DomOp: {
133 | const e = r,
134 | t = {
135 | params: e.params,
136 | webviewId: e.webview_id
137 | },
138 | n = o.mmbizwxadevremote.WARemoteDebug_DomOp.verify(t);
139 | (0, s.expect)(Boolean(n), a).toBe(!1).fail(() => {
140 | throw a.e("invalid DomOp obj", n), n
141 | }), b = o.mmbizwxadevremote.WARemoteDebug_DomOp.encode(t).finish();
142 | break
143 | }
144 | case t.DebugMessageCategory.DomEvent: {
145 | const e = r,
146 | t = {
147 | params: e.params,
148 | webviewId: e.webview_id
149 | },
150 | n = o.mmbizwxadevremote.WARemoteDebug_DomEvent.verify(t);
151 | (0, s.expect)(Boolean(n), a).toBe(!1).fail(() => {
152 | throw a.e("invalid DomOp obj", n), n
153 | }), b = o.mmbizwxadevremote.WARemoteDebug_DomEvent.encode(t).finish();
154 | break
155 | }
156 | case t.DebugMessageCategory.ChromeDevtools: {
157 | const e = r,
158 | t = {
159 | opId: e.op_id,
160 | payload: e.payload,
161 | jscontextId: e.jscontext_id
162 | },
163 | n = o.mmbizwxadevremote.WARemoteDebug_ChromeDevtools.verify(t);
164 | (0, s.expect)(Boolean(n), a).toBe(!1).fail(() => {
165 | throw a.e("invalid chrome devtools object", n), n
166 | }), b = o.mmbizwxadevremote.WARemoteDebug_ChromeDevtools.encode(t).finish();
167 | break
168 | }
169 | case t.DebugMessageCategory.ConnectJsContext: {
170 | const e = {
171 | jscontextId: r.jscontext_id
172 | },
173 | t = o.mmbizwxadevremote.WARemoteDebug_ConnectJsContext.verify(e);
174 | (0, s.expect)(Boolean(t), a).toBe(!1).fail(() => {
175 | throw a.e("invalid connect js context object", t), t
176 | }), b = o.mmbizwxadevremote.WARemoteDebug_ConnectJsContext.encode(e).finish();
177 | break
178 | }
179 | case t.DebugMessageCategory.CustomMessage: {
180 | const e = r,
181 | t = {
182 | method: e.method,
183 | payload: e.payload,
184 | raw: e.raw
185 | },
186 | n = o.mmbizwxadevremote.WARemoteDebug_CustomMessage.verify(t);
187 | (0, s.expect)(Boolean(n), a).toBe(!1).fail(() => {
188 | throw a.e("invalid custom message object", n), n
189 | }), b = o.mmbizwxadevremote.WARemoteDebug_CustomMessage.encode(t).finish();
190 | break
191 | }
192 | default:
193 | throw a.e("invalid debug message category", i), new Error("invalid debug message category " + i)
194 | }
195 | let d = 0;
196 | if (b && m && 0 != (m & t.CompressAlgo.Zlib)) {
197 | Date.now();
198 | d = b.byteLength, b = e.deflateSync(u(b)), b = g(b), n.compressionSavedBytes += d - b.byteLength
199 | }
200 | return {
201 | buffer: b,
202 | originalSize: d
203 | }
204 | }
205 |
206 | function d(e) {
207 | return e.map(e => {
208 | const o = b(e.data, e.category, e.compress_algo);
209 | return {
210 | seq: e.seq,
211 | delay: e.delay,
212 | category: e.category,
213 | data: o.buffer,
214 | compressAlgo: e.compress_algo,
215 | originalSize: o.originalSize
216 | }
217 | })
218 | }
219 |
220 | function c(s) {
221 | const r = "string" == typeof s.data ? Buffer.from(s.data) : s.data;
222 | let i = r,
223 | m = 0;
224 | if (r && s.compressAlgo && 0 != (s.compressAlgo & t.CompressAlgo.Zlib)) {
225 | Date.now();
226 | m = i.byteLength, i = e.inflateSync(r), n.compressionSavedBytes += i.byteLength - m
227 | }
228 | let b = null;
229 | const d = s.category;
230 | if (i) switch (s.category) {
231 | case t.DebugMessageCategory.Breakpoint: {
232 | const e = o.mmbizwxadevremote.WARemoteDebug_Breakpoint.decode(i);
233 | b = {
234 | is_hit: o.mmbizwxadevremote.WARemoteDebug_Breakpoint.toObject(e).isHit ? 1 : 0
235 | };
236 | break
237 | }
238 | case t.DebugMessageCategory.CallInterface: {
239 | const e = o.mmbizwxadevremote.WARemoteDebug_CallInterface.decode(i),
240 | t = o.mmbizwxadevremote.WARemoteDebug_CallInterface.toObject(e);
241 | b = {
242 | name: t.objName,
243 | method: t.methodName,
244 | args: t.methodArgList,
245 | call_id: t.callId
246 | };
247 | break
248 | }
249 | case t.DebugMessageCategory.CallInterfaceResult: {
250 | const e = o.mmbizwxadevremote.WARemoteDebug_CallInterfaceResult.decode(i),
251 | t = o.mmbizwxadevremote.WARemoteDebug_CallInterfaceResult.toObject(e);
252 | b = {
253 | ret: t.ret,
254 | call_id: t.callId,
255 | debug_info: t.debugInfo
256 | };
257 | break
258 | }
259 | case t.DebugMessageCategory.EvaluateJavascript: {
260 | const e = o.mmbizwxadevremote.WARemoteDebug_EvaluateJavascript.decode(i),
261 | t = o.mmbizwxadevremote.WARemoteDebug_EvaluateJavascript.toObject(e);
262 | b = {
263 | script: t.script,
264 | evaluate_id: t.evaluateId,
265 | debug_info: t.debugInfo
266 | };
267 | break
268 | }
269 | case t.DebugMessageCategory.EvaluateJavascriptResult: {
270 | const e = o.mmbizwxadevremote.WARemoteDebug_EvaluateJavascriptResult.decode(i),
271 | t = o.mmbizwxadevremote.WARemoteDebug_EvaluateJavascriptResult.toObject(e);
272 | b = {
273 | ret: t.ret,
274 | evaluate_id: t.evaluateId
275 | };
276 | break
277 | }
278 | case t.DebugMessageCategory.Ping: {
279 | const e = o.mmbizwxadevremote.WARemoteDebug_Ping.decode(i),
280 | t = o.mmbizwxadevremote.WARemoteDebug_Ping.toObject(e);
281 | b = {
282 | ping_id: t.pingId,
283 | payload: t.payload
284 | };
285 | break
286 | }
287 | case t.DebugMessageCategory.Pong: {
288 | const e = o.mmbizwxadevremote.WARemoteDebug_Pong.decode(i),
289 | t = o.mmbizwxadevremote.WARemoteDebug_Pong.toObject(e, {
290 | longs: Number
291 | });
292 | b = {
293 | ping_id: t.pingId,
294 | network_type: t.networkType,
295 | payload: t.payload
296 | };
297 | break
298 | }
299 | case t.DebugMessageCategory.SetupContext: {
300 | const e = o.mmbizwxadevremote.WARemoteDebug_SetupContext.decode(i),
301 | t = o.mmbizwxadevremote.WARemoteDebug_SetupContext.toObject(e);
302 | b = {
303 | register_interface: {
304 | obj_name: (t.registerInterface || {}).objName,
305 | obj_methods: ((t.registerInterface || {}).objMethodList || []).map(e => ({
306 | method_name: e.methodName,
307 | method_args: e.methodArgList
308 | }))
309 | },
310 | configure_js: t.configureJs,
311 | public_js_md5: t.publicJsMd5,
312 | three_js_md5: t.threeJsMd5,
313 | device_info: {
314 | device_name: (t.deviceInfo || {}).deviceName,
315 | device_model: (t.deviceInfo || {}).deviceModel,
316 | os: (t.deviceInfo || {}).systemVersion,
317 | wechat_version: (t.deviceInfo || {}).wechatVersion,
318 | pixel_ratio: (t.deviceInfo || {}).pixelRatio,
319 | screen_width: (t.deviceInfo || {}).screenWidth,
320 | publib: (t.deviceInfo || {}).publibVersion,
321 | user_agent: (t.deviceInfo || {}).userAgent
322 | },
323 | support_compress_algo: t.supportCompressAlgo
324 | };
325 | break
326 | }
327 | case t.DebugMessageCategory.DomOp: {
328 | const e = o.mmbizwxadevremote.WARemoteDebug_DomOp.decode(i),
329 | t = o.mmbizwxadevremote.WARemoteDebug_DomOp.toObject(e);
330 | b = {
331 | params: t.params,
332 | webview_id: t.webviewId
333 | };
334 | break
335 | }
336 | case t.DebugMessageCategory.DomEvent: {
337 | const e = o.mmbizwxadevremote.WARemoteDebug_DomEvent.decode(i),
338 | t = o.mmbizwxadevremote.WARemoteDebug_DomEvent.toObject(e);
339 | b = {
340 | params: t.params,
341 | webview_id: t.webviewId
342 | };
343 | break
344 | }
345 | case t.DebugMessageCategory.NetworkDebugAPI: {
346 | const e = o.mmbizwxadevremote.WARemoteDebug_NetworkDebugAPI.decode(i),
347 | t = o.mmbizwxadevremote.WARemoteDebug_NetworkDebugAPI.toObject(e);
348 | b = {
349 | api_name: t.apiName,
350 | task_id: t.taskId,
351 | request_headers: t.requestHeaders,
352 | timestamp: t.timestamp
353 | };
354 | break
355 | }
356 | case t.DebugMessageCategory.ChromeDevtools: {
357 | const e = o.mmbizwxadevremote.WARemoteDebug_ChromeDevtools.decode(i),
358 | t = o.mmbizwxadevremote.WARemoteDebug_ChromeDevtools.toObject(e);
359 | b = {
360 | op_id: t.opId,
361 | payload: t.payload,
362 | jscontext_id: t.jscontextId
363 | };
364 | break
365 | }
366 | case t.DebugMessageCategory.ChromeDevtoolsResult: {
367 | const e = o.mmbizwxadevremote.WARemoteDebug_ChromeDevtoolsResult.decode(i),
368 | t = o.mmbizwxadevremote.WARemoteDebug_ChromeDevtoolsResult.toObject(e);
369 | b = {
370 | op_id: t.opId,
371 | payload: t.payload,
372 | jscontext_id: t.jscontextId
373 | };
374 | break
375 | }
376 | case t.DebugMessageCategory.AddJsContext: {
377 | const e = o.mmbizwxadevremote.WARemoteDebug_AddJsContext.decode(i),
378 | t = o.mmbizwxadevremote.WARemoteDebug_AddJsContext.toObject(e);
379 | b = {
380 | jscontext_id: t.jscontextId,
381 | jscontext_name: t.jscontextName
382 | };
383 | break
384 | }
385 | case t.DebugMessageCategory.RemoveJsContext: {
386 | const e = o.mmbizwxadevremote.WARemoteDebug_RemoveJsContext.decode(i);
387 | b = {
388 | jscontext_id: o.mmbizwxadevremote.WARemoteDebug_RemoveJsContext.toObject(e).jscontextId
389 | };
390 | break
391 | }
392 | case t.DebugMessageCategory.ConnectJsContext: {
393 | const e = o.mmbizwxadevremote.WARemoteDebug_ConnectJsContext.decode(i);
394 | b = {
395 | jscontext_id: o.mmbizwxadevremote.WARemoteDebug_ConnectJsContext.toObject(e).jscontextId
396 | };
397 | break
398 | }
399 | case t.DebugMessageCategory.CustomMessage: {
400 | const e = o.mmbizwxadevremote.WARemoteDebug_CustomMessage.decode(i),
401 | t = o.mmbizwxadevremote.WARemoteDebug_CustomMessage.toObject(e);
402 | b = {
403 | method: t.method,
404 | payload: t.payload,
405 | raw: t.raw
406 | };
407 | break
408 | }
409 | default:
410 | a.e("invalid debug object category"), b = null
411 | } else b = null;
412 | return {
413 | seq: s.seq || 0,
414 | delay: s.after || 0,
415 | category: d || t.DebugMessageCategory.Ping,
416 | data: b || {},
417 | compress_algo: s.compressAlgo || 0,
418 | original_size: s.originalSize || m
419 | }
420 | }
421 |
422 | function u(e) {
423 | let o = Buffer.from(e.buffer);
424 | return e.byteLength !== e.buffer.byteLength && (o = o.slice(e.byteOffset, e.byteOffset + e.byteLength)), o
425 | }
426 |
427 | function g(e) {
428 | if (!e) throw new Error("invalid buffer " + e);
429 | if ("Uint8Array" === e.constructor.name || e.constructor === Uint8Array) return e;
430 | "string" == typeof e && (e = Buffer.from(e));
431 | const o = new Uint8Array(e.length);
432 | for (let t = 0; t < e.length; t++) o[t] = e[t];
433 | return o
434 | }
435 | exports.requestCmdForType = i, exports.clientRequestCmdForType = m, exports.wrapDebugMessageData = b, exports.wrapOutgoingToProto = function(e, n, r, m = !1) {
436 | let b = null;
437 | switch (n) {
438 | case t.RequestType.Login: {
439 | const t = e,
440 | n = {
441 | baseRequest: {
442 | clientVersion: t.base_request.clientversion
443 | },
444 | newticket: t.newticket
445 | };
446 | t.autodev && (n.autodev = t.autodev);
447 | const r = o.mmbizwxadevremote.WARemoteDebug_DevLoginReq.verify(n);
448 | (0, s.expect)(Boolean(r), a).toBe(!1).fail(() => {
449 | throw a.e("invalid login request obj", r), r
450 | }), b = o.mmbizwxadevremote.WARemoteDebug_DevLoginReq.encode(n).finish();
451 | break
452 | }
453 | case t.RequestType.JoinRoom: {
454 | const t = e,
455 | n = {
456 | baseRequest: {
457 | clientVersion: t.base_request.clientversion
458 | },
459 | appid: t.appid,
460 | roomId: t.room_id,
461 | wxpkgInfo: t.wxpkg_info
462 | },
463 | r = o.mmbizwxadevremote.WARemoteDebug_DevJoinRoomReq.verify(n);
464 | (0, s.expect)(Boolean(r), a).toBe(!1).fail(() => {
465 | throw a.e("invalid join room request obj", r), r
466 | }), b = o.mmbizwxadevremote.WARemoteDebug_DevJoinRoomReq.encode(n).finish();
467 | break
468 | }
469 | case t.RequestType.Heartbeat: {
470 | const t = e,
471 | n = {
472 | baseRequest: {
473 | clientVersion: t.base_request.clientversion
474 | },
475 | recvAck: t.recv_ack
476 | },
477 | r = o.mmbizwxadevremote.WARemoteDebug_DevHeartBeatReq.verify(n);
478 | (0, s.expect)(Boolean(r), a).toBe(!1).fail(() => {
479 | throw a.e("invalid heartbeat request obj", r), r
480 | }), b = o.mmbizwxadevremote.WARemoteDebug_DevHeartBeatReq.encode(n).finish();
481 | break
482 | }
483 | case t.RequestType.SendDebugMessageParallelly:
484 | if (m) {
485 | const t = {
486 | debugMessageList: d(e.debug_message)
487 | },
488 | n = o.mmbizwxadevremote.WARemoteDebug_MessageNotify.verify(t);
489 | (0, s.expect)(Boolean(n), a).toBe(!1).fail(() => {
490 | throw a.e("invalid SendDebugMessageParallelly request obj", n), n
491 | }), b = o.mmbizwxadevremote.WARemoteDebug_MessageNotify.encode(t).finish();
492 | break
493 | } {
494 | const t = e,
495 | n = {
496 | baseRequest: {
497 | clientVersion: t.base_request.clientversion
498 | },
499 | recvAck: t.recv_ack,
500 | debugMessageList: d(t.debug_message)
501 | },
502 | r = o.mmbizwxadevremote.WARemoteDebug_NewSendDebugMessageReq.verify(n);
503 | (0, s.expect)(Boolean(r), a).toBe(!1).fail(() => {
504 | throw a.e("invalid SendDebugMessageParallelly request obj", r), r
505 | }), b = o.mmbizwxadevremote.WARemoteDebug_NewSendDebugMessageReq.encode(n).finish();
506 | break
507 | }
508 | case t.RequestType.SendDebugMessage: {
509 | const t = e,
510 | n = {
511 | baseRequest: {
512 | clientVersion: t.base_request.clientversion
513 | },
514 | recvAck: t.recv_ack,
515 | debugMessageList: d(t.debug_message)
516 | },
517 | r = o.mmbizwxadevremote.WARemoteDebug_SendDebugMessageReq.verify(n);
518 | (0, s.expect)(Boolean(r), a).toBe(!1).fail(() => {
519 | throw a.e("invalid SendDebugMessage request obj", r), r
520 | }), b = o.mmbizwxadevremote.WARemoteDebug_SendDebugMessageReq.encode(n).finish();
521 | break
522 | }
523 | case t.RequestType.QuitRoom: {
524 | const t = {
525 | baseRequest: {
526 | clientVersion: e.base_request.clientversion
527 | }
528 | },
529 | n = o.mmbizwxadevremote.WARemoteDebug_DevQuitRoomReq.verify(t);
530 | (0, s.expect)(Boolean(n), a).toBe(!1).fail(() => {
531 | throw a.e("invalid QuitRoom request obj", n), n
532 | }), b = o.mmbizwxadevremote.WARemoteDebug_DevQuitRoomReq.encode(t).finish();
533 | break
534 | }
535 | case t.RequestType.SyncMessage: {
536 | const t = e,
537 | n = {
538 | baseRequest: {
539 | clientVersion: t.base_request.clientversion
540 | },
541 | minSeq: t.min_seq
542 | };
543 | "number" == typeof t.max_seq && (n.maxSeq = t.max_seq);
544 | const r = o.mmbizwxadevremote.WARemoteDebug_DevSyncMessageReq.verify(n);
545 | (0, s.expect)(Boolean(r), a).toBe(!1).fail(() => {
546 | throw a.e("invalid SyncMessage request obj", r), r
547 | }), b = o.mmbizwxadevremote.WARemoteDebug_DevSyncMessageReq.encode(n).finish();
548 | break
549 | }
550 | case t.ResponseType.MessageNotifyParallelly: {
551 | const e = {
552 | errcode: 0,
553 | errmsg: ""
554 | };
555 | b = o.mmbizwxadevremote.WARemoteDebug_SendDebugMessageResp.encode({
556 | baseResponse: e
557 | }).finish();
558 | break
559 | }
560 | default:
561 | throw a.e("error wrapping outgoing object, invalid type", n), new Error("error wrapping outgoing object, invalid type " + n)
562 | }
563 | const c = o.mmbizwxadevremote.WARemoteDebug_DataFormat.create({
564 | cmd: i(n),
565 | uuid: r,
566 | data: b
567 | });
568 | return o.mmbizwxadevremote.WARemoteDebug_DataFormat.encode(c).finish()
569 | }, exports.unwrapDebugMessageData = c, exports.unwrapProtoToDataFormat = function(e) {
570 | const s = o.mmbizwxadevremote.WARemoteDebug_DataFormat.decode(e),
571 | n = "string" == typeof s.data ? Buffer.from(s.data) : s.data;
572 | let i = null;
573 | switch (s.cmd) {
574 | case t.ResponseType.Heartbeat: {
575 | const e = o.mmbizwxadevremote.WARemoteDebug_DevHeartBeatResp.decode(n);
576 | i = {
577 | base_response: o.mmbizwxadevremote.WARemoteDebug_DevHeartBeatResp.toObject(e).baseResponse
578 | };
579 | break
580 | }
581 | case t.ResponseType.Login: {
582 | const e = o.mmbizwxadevremote.WARemoteDebug_DevLoginResp.decode(n),
583 | t = o.mmbizwxadevremote.WARemoteDebug_DevLoginResp.toObject(e);
584 | i = {
585 | base_response: t.baseResponse,
586 | room_info: {
587 | join_room: (t.roomInfo || {}).joinRoom,
588 | original_md5: (t.roomInfo || {}).originalMd5,
589 | room_status: (t.roomInfo || {}).roomStatus,
590 | wx_conn_status: (t.roomInfo || {}).wxConnStatus,
591 | dev_conn_status: (t.roomInfo || {}).devConnStatus,
592 | room_id: (t.roomInfo || {}).roomId
593 | }
594 | };
595 | break
596 | }
597 | case t.ResponseType.EventNotifyEnd:
598 | case t.ResponseType.EventNotifyBlock:
599 | case t.ResponseType.EventNotifyBegin: {
600 | const e = o.mmbizwxadevremote.WARemoteDebug_EventNotify.decode(n),
601 | t = o.mmbizwxadevremote.WARemoteDebug_EventNotify.toObject(e);
602 | i = {
603 | base_response: Object.assign({}, t.baseResponse || {})
604 | };
605 | break
606 | }
607 | case t.ResponseType.JoinRoom: {
608 | const e = o.mmbizwxadevremote.WARemoteDebug_DevJoinRoomResp.decode(n);
609 | i = {
610 | base_response: o.mmbizwxadevremote.WARemoteDebug_DevJoinRoomResp.toObject(e).baseResponse
611 | };
612 | break
613 | }
614 | case t.ResponseType.MessageNotifyParallelly:
615 | case t.ResponseType.MessageNotify: {
616 | const e = o.mmbizwxadevremote.WARemoteDebug_MessageNotify.decode(n).debugMessageList,
617 | t = [];
618 | for (const o of e) t.push(c(o));
619 | i = {
620 | debug_message: t
621 | };
622 | break
623 | }
624 | case t.ResponseType.QuitRoom: {
625 | const e = o.mmbizwxadevremote.WARemoteDebug_DevQuitRoomResp.decode(n);
626 | i = {
627 | base_response: o.mmbizwxadevremote.WARemoteDebug_DevQuitRoomResp.toObject(e).baseResponse
628 | };
629 | break
630 | }
631 | case t.ResponseType.SendDebugMessageParallelly: {
632 | const e = o.mmbizwxadevremote.WARemoteDebug_NewSendDebugMessageResp.decode(n),
633 | t = o.mmbizwxadevremote.WARemoteDebug_NewSendDebugMessageResp.toObject(e);
634 | i = {
635 | base_response: t.baseResponse,
636 | max_ack: t.maxAck,
637 | min_ack: t.minAck
638 | };
639 | break
640 | }
641 | case t.ResponseType.SendDebugMessage: {
642 | const e = o.mmbizwxadevremote.WARemoteDebug_SendDebugMessageResp.decode(n),
643 | t = o.mmbizwxadevremote.WARemoteDebug_SendDebugMessageResp.toObject(e);
644 | i = {
645 | base_response: t.baseResponse,
646 | send_ack: t.sendAck
647 | };
648 | break
649 | }
650 | case t.ResponseType.SyncMessage: {
651 | const e = o.mmbizwxadevremote.WARemoteDebug_DevSyncMessageResp.decode(n),
652 | t = e.debugMessageList,
653 | s = [];
654 | for (const e of t) s.push(c(e));
655 | i = {
656 | debug_message: s,
657 | send_ack: e.sendAck,
658 | base_response: e.baseResponse
659 | };
660 | break
661 | }
662 | default:
663 | a.e("error receive invalid cmd", s.cmd), i = {}
664 | }
665 | return {
666 | cmd: s.cmd,
667 | uuid: s.uuid,
668 | data: i,
669 | _comment: r(s.cmd)
670 | }
671 | }, exports.uint8ArrayToBuffer = u, exports.bufferToUint8Array = g, exports.unwrapClientProtoToDataFormat = function(e) {
672 | const s = o.mmbizwxadevremote.WARemoteDebug_DataFormat.decode(e),
673 | n = "string" == typeof s.data ? Buffer.from(s.data) : s.data;
674 | let i = null;
675 | switch (s.cmd) {
676 | case t.ClientRequestCmd.Login: {
677 | const e = o.mmbizwxadevremote.WARemoteDebug_WxLoginReq.decode(n),
678 | t = o.mmbizwxadevremote.WARemoteDebug_WxLoginReq.toObject(e);
679 | i = {
680 | base_request: {
681 | clientversion: t.baseRequest
682 | },
683 | loginticket: t.loginTicket
684 | };
685 | break
686 | }
687 | case t.ClientRequestCmd.Heartbeat: {
688 | const e = o.mmbizwxadevremote.WARemoteDebug_WxHeartBeatReq.decode(n),
689 | t = o.mmbizwxadevremote.WARemoteDebug_WxHeartBeatReq.toObject(e);
690 | i = {
691 | base_request: {
692 | clientversion: t.baseRequest
693 | },
694 | recv_ack: t.recvAck
695 | };
696 | break
697 | }
698 | case t.ClientRequestCmd.JoinRoom: {
699 | const e = o.mmbizwxadevremote.WARemoteDebug_WxJoinRoomReq.decode(n),
700 | t = o.mmbizwxadevremote.WARemoteDebug_WxJoinRoomReq.toObject(e);
701 | i = {
702 | base_request: {
703 | clientversion: t.baseRequest
704 | },
705 | wxpkg_info: t.wxpkgInfo,
706 | username: t.username,
707 | room_id: t.roomId
708 | };
709 | break
710 | }
711 | case t.ClientRequestCmd.QuitRoom: {
712 | const e = o.mmbizwxadevremote.WARemoteDebug_WxQuitRoomReq.decode(n);
713 | i = {
714 | base_request: {
715 | clientversion: o.mmbizwxadevremote.WARemoteDebug_WxQuitRoomReq.toObject(e).baseRequest
716 | }
717 | };
718 | break
719 | }
720 | case t.ClientRequestCmd.SendDebugMessageParallelly: {
721 | const e = o.mmbizwxadevremote.WARemoteDebug_NewSendDebugMessageReq.decode(n),
722 | t = o.mmbizwxadevremote.WARemoteDebug_NewSendDebugMessageReq.toObject(e);
723 | i = {
724 | base_request: {
725 | clientversion: t.baseRequest
726 | },
727 | debug_message: (t.debugMessageList || []).map(e => c(e)),
728 | recv_ack: t.recvAck
729 | };
730 | break
731 | }
732 | case t.ClientRequestCmd.SyncMessage: {
733 | const e = o.mmbizwxadevremote.WARemoteDebug_WxSyncMessageReq.decode(n),
734 | t = o.mmbizwxadevremote.WARemoteDebug_WxSyncMessageReq.toObject(e);
735 | i = {
736 | base_request: {
737 | clientversion: t.baseRequest
738 | },
739 | min_seq: t.minSeq,
740 | max_seq: t.maxSeq
741 | };
742 | break
743 | }
744 | default:
745 | a.e("error receive invalid cmd", s.cmd), i = {}
746 | }
747 | return {
748 | cmd: s.cmd,
749 | uuid: s.uuid,
750 | data: i,
751 | _comment: r(s.cmd)
752 | }
753 | }, exports.wrapClientResponseDataFormatToProto = function(e, n, r) {
754 | let i = null;
755 | switch (n) {
756 | case t.ClientResponseType.Login: {
757 | const t = e,
758 | n = {
759 | baseResponse: {
760 | errcode: (t.base_response || {}).errcode,
761 | errmsg: (t.base_response || {}).errmsg
762 | },
763 | roomInfo: {
764 | joinRoom: (t.room_info || {}).join_room,
765 | originalMd5: (t.room_info || {}).original_md5,
766 | roomStatus: (t.room_info || {}).room_status,
767 | wxConnStatus: (t.room_info || {}).wx_conn_status,
768 | devConnStatus: (t.room_info || {}).dev_conn_status,
769 | roomId: (t.room_info || {}).room_id
770 | }
771 | },
772 | r = o.mmbizwxadevremote.WARemoteDebug_WxLoginResp.verify(n);
773 | (0, s.expect)(Boolean(r), a).toBe(!1).fail(() => {
774 | throw a.e("invalid client login response obj", r), r
775 | }), i = o.mmbizwxadevremote.WARemoteDebug_WxLoginResp.encode(n).finish();
776 | break
777 | }
778 | case t.ClientResponseType.JoinRoom: {
779 | const t = {
780 | baseResponse: e.base_response
781 | },
782 | n = o.mmbizwxadevremote.WARemoteDebug_WxJoinRoomResp.verify(t);
783 | (0, s.expect)(Boolean(n), a).toBe(!1).fail(() => {
784 | throw a.e("invalid client join room response obj", n), n
785 | }), i = o.mmbizwxadevremote.WARemoteDebug_WxJoinRoomResp.encode(t).finish();
786 | break
787 | }
788 | case t.ClientResponseType.Heartbeat: {
789 | const t = {
790 | baseResponse: e.base_response
791 | },
792 | n = o.mmbizwxadevremote.WARemoteDebug_WxHeartBeatResp.verify(t);
793 | (0, s.expect)(Boolean(n), a).toBe(!1).fail(() => {
794 | throw a.e("invalid client heartbeat response obj", n), n
795 | }), i = o.mmbizwxadevremote.WARemoteDebug_WxHeartBeatResp.encode(t).finish();
796 | break
797 | }
798 | case t.ClientResponseType.SendDebugMessageParallelly: {
799 | const t = e,
800 | n = {
801 | baseResponse: t.base_response,
802 | maxAck: t.max_ack,
803 | minAck: t.min_ack
804 | },
805 | r = o.mmbizwxadevremote.WARemoteDebug_NewSendDebugMessageResp.verify(n);
806 | (0, s.expect)(Boolean(r), a).toBe(!1).fail(() => {
807 | throw a.e("invalid client SendDebugMessageParallelly response obj", r), r
808 | }), i = o.mmbizwxadevremote.WARemoteDebug_NewSendDebugMessageResp.encode(n).finish();
809 | break
810 | }
811 | case t.ClientResponseType.QuitRoom: {
812 | const t = {
813 | baseResponse: e.base_response
814 | },
815 | n = o.mmbizwxadevremote.WARemoteDebug_WxQuitRoomResp.verify(t);
816 | (0, s.expect)(Boolean(n), a).toBe(!1).fail(() => {
817 | throw a.e("invalid client QuitRoom response obj", n), n
818 | }), i = o.mmbizwxadevremote.WARemoteDebug_WxQuitRoomResp.encode(t).finish();
819 | break
820 | }
821 | case t.ClientResponseType.SyncMessage: {
822 | const t = e,
823 | n = {
824 | baseResponse: t.base_response,
825 | debugMessageList: d(t.debug_message),
826 | sendAck: t.send_ack
827 | },
828 | r = o.mmbizwxadevremote.WARemoteDebug_WxSyncMessageResp.verify(n);
829 | (0, s.expect)(Boolean(r), a).toBe(!1).fail(() => {
830 | throw a.e("invalid client sync message response obj", r), r
831 | }), i = o.mmbizwxadevremote.WARemoteDebug_WxSyncMessageResp.encode(n).finish();
832 | break
833 | }
834 | case t.ClientResponseType.MessageNotifyParallelly: {
835 | const t = {
836 | debugMessageList: d(e.debug_message)
837 | },
838 | n = o.mmbizwxadevremote.WARemoteDebug_MessageNotify.verify(t);
839 | (0, s.expect)(Boolean(n), a).toBe(!1).fail(() => {
840 | throw a.e("invalid client MessageNotifyParallelly response obj", n), n
841 | }), i = o.mmbizwxadevremote.WARemoteDebug_MessageNotify.encode(t).finish();
842 | break
843 | }
844 | case t.ClientResponseType.EventNotifyEnd:
845 | case t.ClientResponseType.EventNotifyBlock:
846 | case t.ClientResponseType.EventNotifyBegin: {
847 | const e = {},
848 | t = o.mmbizwxadevremote.WARemoteDebug_EventNotify.verify(e);
849 | (0, s.expect)(Boolean(t), a).toBe(!1).fail(() => {
850 | throw a.e("invalid client ClientEventNotify response obj", t), t
851 | }), i = o.mmbizwxadevremote.WARemoteDebug_EventNotify.encode(e).finish();
852 | break
853 | }
854 | default:
855 | throw a.e("error wrapping outgoing object, invalid type", n), new Error("error wrapping outgoing object, invalid type " + n)
856 | }
857 | const b = o.mmbizwxadevremote.WARemoteDebug_DataFormat.create({
858 | cmd: m(n),
859 | uuid: r,
860 | data: i
861 | });
862 | return o.mmbizwxadevremote.WARemoteDebug_DataFormat.encode(b).finish()
863 | }, exports.model = {
864 | resetStatistics() {
865 | n = {
866 | compressionSavedBytes: 0
867 | }
868 | },
869 | getCompressionSavedBytes: () => n.compressionSavedBytes || 0
870 | }, exports.model.resetStatistics();
871 | }(require, require)
--------------------------------------------------------------------------------
/src/third-party/RemoteDebugConstants.js:
--------------------------------------------------------------------------------
1 | ! function(require, directRequire) {
2 | "use strict";
3 | Object.defineProperty(exports, "__esModule", {
4 | value: !0
5 | }), exports.PubLibMap = exports.DevtoolNetworkType = exports.ClientNetWorkSpeed = exports.ClientNetWorkType = exports.KnownErrorCode = exports.DebugMessageCategory = exports.ClientRequestCmd = exports.RequestCmd = exports.ClientResponseType = exports.ClientRequestType = exports.RequestType = exports.CompressAlgo = exports.ResponseType = exports.RemoteDataPrefix = exports.RemoteRuntimePrefx = exports.RemoteAppPrefix = exports.RemoteVendorDir = exports.RemoteLogDir = exports.RemoteDataDir = exports.RemoteTempDir = exports.RemoteDir = exports.RemoteHttpUrlHost = exports.RemoteUrl = void 0;
6 | // const e = require('./87340deef308fb62efd7eb7a7e63e98d.js');
7 | // exports.RemoteUrl = "wss://wxagame.weixin.qq.com/remote/", exports.RemoteHttpUrlHost = "https://servicewechat.com/wxa-dev-cloud/", exports.RemoteDir = e.WeappRemote, exports.RemoteTempDir = e.WeappRemoteTemp, exports.RemoteDataDir = e.WeappRemoteData, exports.RemoteLogDir = e.WeappRemoteLog, exports.RemoteVendorDir = e.WeappRemoteVendor, exports.RemoteAppPrefix = "REMOTE_DEBUG_APP/", exports.RemoteRuntimePrefx = "REMOTE_DEBUG_RUNTIME/", exports.RemoteDataPrefix = "REMOTE_DEBUG_DATA/",
8 | exports, function(e) {
9 | e[e.Heartbeat = 2001] = "Heartbeat", e[e.Login = 2002] = "Login", e[e.EventNotifyBegin = 3001] = "EventNotifyBegin", e[e.EventNotifyEnd = 3002] = "EventNotifyEnd", e[e.EventNotifyBlock = 3003] = "EventNotifyBlock", e[e.JoinRoom = 2003] = "JoinRoom", e[e.SendDebugMessage = 2e3] = "SendDebugMessage", e[e.SendDebugMessageParallelly = 2006] = "SendDebugMessageParallelly", e[e.QuitRoom = 2004] = "QuitRoom", e[e.MessageNotify = 1e3] = "MessageNotify", e[e.MessageNotifyParallelly = 1006] = "MessageNotifyParallelly", e[e.SyncMessage = 2005] = "SyncMessage", e[e.Unknown = -1] = "Unknown"
10 | }(exports.ResponseType || (exports.ResponseType = {})),
11 | function(e) {
12 | e[e.None = 0] = "None", e[e.Zlib = 1] = "Zlib"
13 | }(exports.CompressAlgo || (exports.CompressAlgo = {})),
14 | function(e) {
15 | e[e.Heartbeat = 2001] = "Heartbeat", e[e.Login = 2002] = "Login", e[e.EventNotifyBegin = 3001] = "EventNotifyBegin", e[e.EventNotifyEnd = 3002] = "EventNotifyEnd", e[e.EventNotifyBlock = 3003] = "EventNotifyBlock", e[e.JoinRoom = 2003] = "JoinRoom", e[e.SendDebugMessage = 2e3] = "SendDebugMessage", e[e.SendDebugMessageParallelly = 2006] = "SendDebugMessageParallelly", e[e.QuitRoom = 2004] = "QuitRoom", e[e.MessageNotify = 1e3] = "MessageNotify", e[e.MessageNotifyParallelly = 1006] = "MessageNotifyParallelly", e[e.SyncMessage = 2005] = "SyncMessage", e[e.Unknown = -1] = "Unknown"
16 | }(exports.RequestType || (exports.RequestType = {})),
17 | function(e) {
18 | e[e.Heartbeat = 1001] = "Heartbeat", e[e.Login = 1002] = "Login", e[e.EventNotifyBegin = 3001] = "EventNotifyBegin", e[e.EventNotifyEnd = 3002] = "EventNotifyEnd", e[e.EventNotifyBlock = 3003] = "EventNotifyBlock", e[e.JoinRoom = 1003] = "JoinRoom", e[e.SendDebugMessage = 1e3] = "SendDebugMessage", e[e.SendDebugMessageParallelly = 1006] = "SendDebugMessageParallelly", e[e.QuitRoom = 1004] = "QuitRoom", e[e.MessageNotify = 2e3] = "MessageNotify", e[e.MessageNotifyParallelly = 2006] = "MessageNotifyParallelly", e[e.SyncMessage = 1005] = "SyncMessage", e[e.Unknown = -1] = "Unknown"
19 | }(exports.ClientRequestType || (exports.ClientRequestType = {})),
20 | function(e) {
21 | e[e.Heartbeat = 1001] = "Heartbeat", e[e.Login = 1002] = "Login", e[e.EventNotifyBegin = 3001] = "EventNotifyBegin", e[e.EventNotifyEnd = 3002] = "EventNotifyEnd", e[e.EventNotifyBlock = 3003] = "EventNotifyBlock", e[e.JoinRoom = 1003] = "JoinRoom", e[e.SendDebugMessage = 1e3] = "SendDebugMessage", e[e.SendDebugMessageParallelly = 1006] = "SendDebugMessageParallelly", e[e.QuitRoom = 1004] = "QuitRoom", e[e.MessageNotify = 2e3] = "MessageNotify", e[e.MessageNotifyParallelly = 2006] = "MessageNotifyParallelly", e[e.SyncMessage = 1005] = "SyncMessage", e[e.Unknown = -1] = "Unknown"
22 | }(exports.ClientResponseType || (exports.ClientResponseType = {})),
23 | function(e) {
24 | e[e.Heartbeat = 2001] = "Heartbeat", e[e.Login = 2002] = "Login", e[e.EventNotifyBegin = 3001] = "EventNotifyBegin", e[e.EventNotifyEnd = 3002] = "EventNotifyEnd", e[e.EventNotifyBlock = 3003] = "EventNotifyBlock", e[e.JoinRoom = 2003] = "JoinRoom", e[e.SendDebugMessage = 2e3] = "SendDebugMessage", e[e.SendDebugMessageParallelly = 2006] = "SendDebugMessageParallelly", e[e.QuitRoom = 2004] = "QuitRoom", e[e.MessageNotify = 1e3] = "MessageNotify", e[e.MessageNotifyParallelly = 1006] = "MessageNotifyParallelly", e[e.SyncMessage = 2005] = "SyncMessage", e[e.Unknown = -1] = "Unknown"
25 | }(exports.RequestCmd || (exports.RequestCmd = {})),
26 | function(e) {
27 | e[e.Heartbeat = 1001] = "Heartbeat", e[e.Login = 1002] = "Login", e[e.EventNotifyBegin = 3001] = "EventNotifyBegin", e[e.EventNotifyEnd = 3002] = "EventNotifyEnd", e[e.EventNotifyBlock = 3003] = "EventNotifyBlock", e[e.JoinRoom = 1003] = "JoinRoom", e[e.SendDebugMessage = 1e3] = "SendDebugMessage", e[e.SendDebugMessageParallelly = 1006] = "SendDebugMessageParallelly", e[e.QuitRoom = 1004] = "QuitRoom", e[e.MessageNotify = 2e3] = "MessageNotify", e[e.MessageNotifyParallelly = 2006] = "MessageNotifyParallelly", e[e.SyncMessage = 1005] = "SyncMessage", e[e.Unknown = -1] = "Unknown"
28 | }(exports.ClientRequestCmd || (exports.ClientRequestCmd = {})),
29 | function(e) {
30 | e.SetupContext = "setupContext", e.CallInterface = "callInterface", e.EvaluateJavascript = "evaluateJavascript", e.CallInterfaceResult = "callInterfaceResult", e.EvaluateJavascriptResult = "evaluateJavascriptResult", e.Breakpoint = "breakpoint", e.Ping = "ping", e.Pong = "pong", e.DomOp = "domOp", e.DomEvent = "domEvent", e.NetworkDebugAPI = "networkDebugAPI", e.ChromeDevtools = "chromeDevtools", e.ChromeDevtoolsResult = "chromeDevtoolsResult", e.AddJsContext = "addJsContext", e.RemoveJsContext = "removeJsContext", e.ConnectJsContext = "connectJsContext", e.EngineEvent = "engineEvent", e.EngineOp = "engineOp", e.CustomMessage = "customMessage"
31 | }(exports.DebugMessageCategory || (exports.DebugMessageCategory = {})),
32 | function(e) {
33 | e[e.OK = 0] = "OK", e[e.ERR_SYS = -1] = "ERR_SYS", e[e.NOT_EXIST = 1] = "NOT_EXIST", e[e.INVALID_ARGS = -2] = "INVALID_ARGS", e[e.SYSTEM_BUSY = -3] = "SYSTEM_BUSY", e[e.INVALID_LOGIN_TICKET = -50001] = "INVALID_LOGIN_TICKET", e[e.HAS_NO_PERMISSION = -50002] = "HAS_NO_PERMISSION", e[e.ROOM_IN_DEBUGGING = -50003] = "ROOM_IN_DEBUGGING", e[e.NO_EXIST_ROOM = -50004] = "NO_EXIST_ROOM", e[e.MD5_NOT_MATCH = -50005] = "MD5_NOT_MATCH", e[e.USER_IN_DEBUGGING = -50006] = "USER_IN_DEBUGGING", e[e.SEQ_ERROR = -50010] = "SEQ_ERROR", e[e.SEND_MSG_BUSY = -50011] = "SEND_MSG_BUSY", e[e.SEND_MSG_SEQ_RANGE_ERROR = -50012] = "SEND_MSG_SEQ_RANGE_ERROR"
34 | }(exports.KnownErrorCode || (exports.KnownErrorCode = {})),
35 | function(e) {
36 | e[e.Offline = 0] = "Offline", e[e.TwoG = 1] = "TwoG", e[e.ThreeG = 2] = "ThreeG", e[e.FourG = 3] = "FourG", e[e.WiFi = 4] = "WiFi", e[e.Other = 5] = "Other", e[e.AndroidCable = -1] = "AndroidCable", e[e.IOSCable = -2] = "IOSCable", e[e.Local = -3] = "Local"
37 | }(exports.ClientNetWorkType || (exports.ClientNetWorkType = {})),
38 | function(e) {
39 | e[e.Lost = 0] = "Lost", e[e.VeryBad = 1] = "VeryBad", e[e.Bad = 2] = "Bad", e[e.Normal = 3] = "Normal", e[e.Good = 4] = "Good", e[e.VeryGood = 5] = "VeryGood"
40 | }(exports.ClientNetWorkSpeed || (exports.ClientNetWorkSpeed = {})),
41 | function(e) {
42 | e[e.bluetooth = 11] = "bluetooth", e[e.bellular = 12] = "bellular", e[e.ethernet = 13] = "ethernet", e[e.mixed = 14] = "mixed", e[e.none = 15] = "none", e[e.other = 16] = "other", e[e.unknown = 17] = "unknown", e[e.wifi = 18] = "wifi", e[e.wimax = 19] = "wimax"
43 | }(exports.DevtoolNetworkType || (exports.DevtoolNetworkType = {})), exports.PubLibMap = {
44 | 33: {
45 | number_version: 33,
46 | version: "6.5.4.1",
47 | status: 1
48 | },
49 | 34: {
50 | number_version: 34,
51 | version: "6.5.3.1",
52 | status: 1
53 | },
54 | 35: {
55 | number_version: 35,
56 | version: "6.5.4.2",
57 | status: 1
58 | },
59 | 36: {
60 | number_version: 36,
61 | version: "6.5.6.1",
62 | status: 1
63 | },
64 | 37: {
65 | number_version: 37,
66 | version: "6.5.4.2",
67 | status: 1
68 | },
69 | 38: {
70 | number_version: 38,
71 | version: "1.1.0",
72 | status: 1
73 | },
74 | 39: {
75 | number_version: 39,
76 | version: "1.1.1",
77 | status: 1
78 | },
79 | 40: {
80 | number_version: 40,
81 | version: "1.0.1",
82 | status: 1
83 | },
84 | 41: {
85 | number_version: 41,
86 | version: "1.1.1",
87 | status: 1
88 | },
89 | 42: {
90 | number_version: 42,
91 | version: "1.2.0",
92 | status: 1
93 | },
94 | 43: {
95 | number_version: 43,
96 | version: "1.2.1",
97 | status: 1
98 | },
99 | 44: {
100 | number_version: 44,
101 | version: "1.2.2",
102 | status: 1
103 | },
104 | 45: {
105 | number_version: 45,
106 | version: "1.2.3",
107 | status: 1
108 | },
109 | 46: {
110 | number_version: 46,
111 | version: "1.2.2",
112 | status: 1
113 | },
114 | 47: {
115 | number_version: 47,
116 | version: "1.2.4",
117 | status: 1
118 | },
119 | 48: {
120 | number_version: 48,
121 | version: "1.2.5",
122 | status: 1
123 | },
124 | 49: {
125 | number_version: 49,
126 | version: "1.2.4",
127 | ios_begin_ver: 0,
128 | ios_end_ver: 0,
129 | android_begin_ver: 637864048,
130 | android_end_ver: 637864049,
131 | status: 1
132 | },
133 | 50: {
134 | number_version: 50,
135 | version: "1.2.6",
136 | ios_begin_ver: 369428480,
137 | ios_end_ver: 536870911,
138 | android_begin_ver: 637863936,
139 | android_end_ver: 805306367,
140 | status: 1
141 | },
142 | 51: {
143 | number_version: 51,
144 | version: "1.3.0",
145 | ios_begin_ver: 369428736,
146 | ios_end_ver: 536870911,
147 | android_begin_ver: 637864448,
148 | android_end_ver: 805306367,
149 | status: 1
150 | },
151 | 52: {
152 | number_version: 52,
153 | version: "1.3.0",
154 | ios_begin_ver: 0,
155 | ios_end_ver: 0,
156 | android_begin_ver: 637864448,
157 | android_end_ver: 805306367,
158 | status: 1
159 | },
160 | 53: {
161 | number_version: 53,
162 | version: "1.4.0",
163 | ios_begin_ver: 369428992,
164 | ios_end_ver: 536870911,
165 | android_begin_ver: 637864448,
166 | android_end_ver: 805306367,
167 | status: 1
168 | },
169 | 54: {
170 | number_version: 54,
171 | version: "1.4.0",
172 | ios_begin_ver: 369428992,
173 | ios_end_ver: 536870911,
174 | android_begin_ver: 637864448,
175 | android_end_ver: 805306367,
176 | status: 1
177 | },
178 | 55: {
179 | number_version: 55,
180 | version: "1.4.1",
181 | ios_begin_ver: 369428992,
182 | ios_end_ver: 536870911,
183 | android_begin_ver: 637864448,
184 | android_end_ver: 805306367,
185 | status: 1
186 | },
187 | 56: {
188 | number_version: 56,
189 | version: "1.4.1",
190 | ios_begin_ver: 369428992,
191 | ios_end_ver: 536870911,
192 | android_begin_ver: 637864448,
193 | android_end_ver: 805306367,
194 | status: 1
195 | },
196 | 57: {
197 | number_version: 57,
198 | version: "1.4.2",
199 | ios_begin_ver: 369428992,
200 | ios_end_ver: 536870911,
201 | android_begin_ver: 637864448,
202 | android_end_ver: 805306367,
203 | status: 1
204 | },
205 | 58: {
206 | number_version: 58,
207 | version: "1.4.3",
208 | ios_begin_ver: 369428992,
209 | ios_end_ver: 536870911,
210 | android_begin_ver: 637864448,
211 | android_end_ver: 805306367,
212 | status: 1
213 | },
214 | 59: {
215 | number_version: 59,
216 | version: "1.4.4",
217 | ios_begin_ver: 369428992,
218 | ios_end_ver: 536870911,
219 | android_begin_ver: 637864448,
220 | android_end_ver: 805306367,
221 | status: 1
222 | },
223 | 60: {
224 | number_version: 60,
225 | version: "1.5.0",
226 | ios_begin_ver: 369429760,
227 | ios_end_ver: 536870911,
228 | android_begin_ver: 637865216,
229 | android_end_ver: 805306367,
230 | status: 1
231 | },
232 | 61: {
233 | number_version: 61,
234 | version: "1.5.1",
235 | ios_begin_ver: 369429760,
236 | ios_end_ver: 536870911,
237 | android_begin_ver: 637865216,
238 | android_end_ver: 805306367,
239 | status: 1
240 | },
241 | 62: {
242 | number_version: 62,
243 | version: "1.5.2",
244 | ios_begin_ver: 369429760,
245 | ios_end_ver: 536870911,
246 | android_begin_ver: 637865216,
247 | android_end_ver: 805306367,
248 | status: 1
249 | },
250 | 63: {
251 | number_version: 63,
252 | version: "1.5.3",
253 | ios_begin_ver: 369429760,
254 | ios_end_ver: 536870911,
255 | android_begin_ver: 637865216,
256 | android_end_ver: 805306367,
257 | status: 1
258 | },
259 | 64: {
260 | number_version: 64,
261 | version: "1.5.4",
262 | ios_begin_ver: 369430561,
263 | ios_end_ver: 369430561,
264 | android_begin_ver: 0,
265 | android_end_ver: 0,
266 | status: 1
267 | },
268 | 65: {
269 | number_version: 65,
270 | version: "1.5.4",
271 | ios_begin_ver: 369430561,
272 | ios_end_ver: 536870911,
273 | android_begin_ver: 0,
274 | android_end_ver: 0,
275 | status: 1
276 | },
277 | 66: {
278 | number_version: 66,
279 | version: "1.5.5",
280 | ios_begin_ver: 369429760,
281 | ios_end_ver: 369430527,
282 | android_begin_ver: 637865216,
283 | android_end_ver: 637865983,
284 | status: 1
285 | },
286 | 67: {
287 | number_version: 67,
288 | version: "1.5.6",
289 | ios_begin_ver: 369429760,
290 | ios_end_ver: 369430527,
291 | android_begin_ver: 637865216,
292 | android_end_ver: 637865983,
293 | status: 1
294 | },
295 | 68: {
296 | number_version: 68,
297 | version: "1.5.3",
298 | ios_begin_ver: 369431328,
299 | ios_end_ver: 369431328,
300 | android_begin_ver: 0,
301 | android_end_ver: 0,
302 | status: 1
303 | },
304 | 69: {
305 | number_version: 69,
306 | version: "1.5.6",
307 | ios_begin_ver: 369429760,
308 | ios_end_ver: 369430527,
309 | android_begin_ver: 0,
310 | android_end_ver: 0,
311 | status: 1
312 | },
313 | 70: {
314 | number_version: 70,
315 | version: "1.5.3",
316 | ios_begin_ver: 369431329,
317 | ios_end_ver: 369431329,
318 | android_begin_ver: 0,
319 | android_end_ver: 0,
320 | status: 1
321 | },
322 | 71: {
323 | number_version: 71,
324 | version: "1.6.0",
325 | ios_begin_ver: 369430528,
326 | ios_end_ver: 369431295,
327 | android_begin_ver: 637865984,
328 | android_end_ver: 637866751,
329 | status: 1
330 | },
331 | 72: {
332 | number_version: 72,
333 | version: "1.5.7",
334 | ios_begin_ver: 369429760,
335 | ios_end_ver: 369430527,
336 | android_begin_ver: 637865216,
337 | android_end_ver: 637865983,
338 | status: 1
339 | },
340 | 73: {
341 | number_version: 73,
342 | version: "1.6.1",
343 | ios_begin_ver: 369430528,
344 | ios_end_ver: 369431295,
345 | android_begin_ver: 637865984,
346 | android_end_ver: 637866751,
347 | status: 1
348 | },
349 | 74: {
350 | number_version: 74,
351 | version: "1.6.2",
352 | ios_begin_ver: 369431296,
353 | ios_end_ver: 536870911,
354 | android_begin_ver: 637866752,
355 | android_end_ver: 805306367,
356 | status: 1
357 | },
358 | 75: {
359 | number_version: 75,
360 | version: "1.6.3",
361 | ios_begin_ver: 369430528,
362 | ios_end_ver: 536870911,
363 | android_begin_ver: 637865984,
364 | android_end_ver: 805306367,
365 | status: 1
366 | },
367 | 77: {
368 | number_version: 77,
369 | version: "1.6.4",
370 | ios_begin_ver: 369430528,
371 | ios_end_ver: 536870911,
372 | android_begin_ver: 637865984,
373 | android_end_ver: 805306367,
374 | status: 1
375 | },
376 | 78: {
377 | number_version: 78,
378 | version: "1.6.4",
379 | ios_begin_ver: 369430528,
380 | ios_end_ver: 536870911,
381 | android_begin_ver: 637865984,
382 | android_end_ver: 805306367,
383 | status: 1
384 | },
385 | 79: {
386 | number_version: 79,
387 | version: "1.6.5",
388 | ios_begin_ver: 369430528,
389 | ios_end_ver: 536870911,
390 | android_begin_ver: 637865984,
391 | android_end_ver: 805306367,
392 | status: 1
393 | },
394 | 80: {
395 | number_version: 80,
396 | version: "1.6.6",
397 | ios_begin_ver: 369430528,
398 | ios_end_ver: 536870911,
399 | android_begin_ver: 637865984,
400 | android_end_ver: 805306367,
401 | status: 1
402 | },
403 | 82: {
404 | number_version: 82,
405 | version: "1.7.0",
406 | ios_begin_ver: 369432064,
407 | ios_end_ver: 536870911,
408 | android_begin_ver: 637867520,
409 | android_end_ver: 805306367,
410 | status: 0
411 | },
412 | 83: {
413 | number_version: 83,
414 | version: "1.7.0",
415 | ios_begin_ver: 369432064,
416 | ios_end_ver: 536870911,
417 | android_begin_ver: 637867520,
418 | android_end_ver: 805306367,
419 | status: 0
420 | },
421 | 84: {
422 | number_version: 84,
423 | version: "1.7.0",
424 | ios_begin_ver: 369432064,
425 | ios_end_ver: 536870911,
426 | android_begin_ver: 637867520,
427 | android_end_ver: 805306367,
428 | status: 1
429 | },
430 | 85: {
431 | number_version: 85,
432 | version: "1.5.8",
433 | ios_begin_ver: 369429760,
434 | ios_end_ver: 369430527,
435 | android_begin_ver: 637865216,
436 | android_end_ver: 637865983,
437 | status: 1
438 | },
439 | 86: {
440 | number_version: 86,
441 | version: "1.7.1",
442 | ios_begin_ver: 369432064,
443 | ios_end_ver: 536870911,
444 | android_begin_ver: 637867520,
445 | android_end_ver: 805306367,
446 | status: 1
447 | },
448 | 87: {
449 | number_version: 87,
450 | version: "1.6.7",
451 | ios_begin_ver: 369430528,
452 | ios_end_ver: 369432063,
453 | android_begin_ver: 637865984,
454 | android_end_ver: 637867519,
455 | status: 0
456 | },
457 | 88: {
458 | number_version: 88,
459 | version: "1.7.2",
460 | ios_begin_ver: 369432064,
461 | ios_end_ver: 536870911,
462 | android_begin_ver: 637867520,
463 | android_end_ver: 805306367,
464 | status: 0
465 | },
466 | 89: {
467 | number_version: 89,
468 | version: "1.7.3",
469 | ios_begin_ver: 369432064,
470 | ios_end_ver: 536870911,
471 | android_begin_ver: 637867520,
472 | android_end_ver: 805306367,
473 | status: 1
474 | },
475 | 90: {
476 | number_version: 90,
477 | version: "0.0.0",
478 | ios_begin_ver: 369432064,
479 | ios_end_ver: 369432063,
480 | android_begin_ver: 637867520,
481 | android_end_ver: 637867519,
482 | status: 0
483 | },
484 | 91: {
485 | number_version: 91,
486 | version: "1.6.8",
487 | ios_begin_ver: 369430528,
488 | ios_end_ver: 369432063,
489 | android_begin_ver: 637865984,
490 | android_end_ver: 637867519,
491 | status: 1
492 | },
493 | 92: {
494 | number_version: 92,
495 | version: "1.7.4",
496 | ios_begin_ver: 369432064,
497 | ios_end_ver: 536870911,
498 | android_begin_ver: 637867520,
499 | android_end_ver: 805306367,
500 | status: 1
501 | },
502 | 93: {
503 | number_version: 93,
504 | version: "1.9.0",
505 | ios_begin_ver: 369491968,
506 | ios_end_ver: 536870911,
507 | android_begin_ver: 637927424,
508 | android_end_ver: 805306367,
509 | status: 1
510 | },
511 | 94: {
512 | number_version: 94,
513 | version: "1.9.1",
514 | ios_begin_ver: 369491968,
515 | ios_end_ver: 536870911,
516 | android_begin_ver: 637927424,
517 | android_end_ver: 805306367,
518 | status: 1
519 | },
520 | 95: {
521 | number_version: 95,
522 | version: "1.9.2",
523 | ios_begin_ver: 369491968,
524 | ios_end_ver: 536870911,
525 | android_begin_ver: 637927424,
526 | android_end_ver: 805306367,
527 | status: 1
528 | },
529 | 96: {
530 | number_version: 96,
531 | version: "1.9.3",
532 | ios_begin_ver: 369491968,
533 | ios_end_ver: 536870911,
534 | android_begin_ver: 637927424,
535 | android_end_ver: 805306367,
536 | status: 0
537 | },
538 | 97: {
539 | number_version: 97,
540 | version: "1.9.3",
541 | ios_begin_ver: 369491968,
542 | ios_end_ver: 536870911,
543 | android_begin_ver: 637927424,
544 | android_end_ver: 805306367,
545 | status: 0
546 | },
547 | 98: {
548 | number_version: 98,
549 | version: "1.9.3",
550 | ios_begin_ver: 369491968,
551 | ios_end_ver: 536870911,
552 | android_begin_ver: 637927424,
553 | android_end_ver: 805306367,
554 | status: 0
555 | },
556 | 99: {
557 | number_version: 99,
558 | version: "1.9.3",
559 | ios_begin_ver: 369491968,
560 | ios_end_ver: 369492223,
561 | android_begin_ver: 637927424,
562 | android_end_ver: 637927679,
563 | status: 1
564 | },
565 | 100: {
566 | number_version: 100,
567 | version: "1.9.5",
568 | ios_begin_ver: 369492224,
569 | ios_end_ver: 536870911,
570 | android_begin_ver: 637927680,
571 | android_end_ver: 805306367,
572 | status: 1
573 | },
574 | 101: {
575 | number_version: 101,
576 | version: "1.9.4",
577 | ios_begin_ver: 369491968,
578 | ios_end_ver: 369492223,
579 | android_begin_ver: 637927424,
580 | android_end_ver: 637927679,
581 | status: 1
582 | },
583 | 102: {
584 | number_version: 102,
585 | version: "1.9.6",
586 | ios_begin_ver: 369492224,
587 | ios_end_ver: 536870911,
588 | android_begin_ver: 637927680,
589 | android_end_ver: 805306367,
590 | status: 1
591 | },
592 | 103: {
593 | number_version: 103,
594 | version: "1.9.8",
595 | ios_begin_ver: 369492224,
596 | ios_end_ver: 536870911,
597 | android_begin_ver: 637927680,
598 | android_end_ver: 805306367,
599 | status: 1
600 | },
601 | 104: {
602 | number_version: 104,
603 | version: "1.9.8",
604 | ios_begin_ver: 369492224,
605 | ios_end_ver: 536870911,
606 | android_begin_ver: 637927680,
607 | android_end_ver: 805306367,
608 | status: 1
609 | },
610 | 105: {
611 | number_version: 105,
612 | version: "1.9.8",
613 | ios_begin_ver: 369492224,
614 | ios_end_ver: 536870911,
615 | android_begin_ver: 637927680,
616 | android_end_ver: 805306367,
617 | status: 1
618 | },
619 | 106: {
620 | number_version: 106,
621 | version: "1.9.9",
622 | ios_begin_ver: 369492224,
623 | ios_end_ver: 536870911,
624 | android_begin_ver: 637927680,
625 | android_end_ver: 805306367,
626 | status: 1
627 | },
628 | 107: {
629 | number_version: 107,
630 | version: "1.9.90",
631 | ios_begin_ver: 369492480,
632 | ios_end_ver: 536870911,
633 | android_begin_ver: 637927936,
634 | android_end_ver: 805306367,
635 | status: 1
636 | },
637 | 108: {
638 | number_version: 108,
639 | version: "1.9.91",
640 | ios_begin_ver: 369492480,
641 | ios_end_ver: 536870911,
642 | android_begin_ver: 637927936,
643 | android_end_ver: 805306367,
644 | status: 1
645 | },
646 | 109: {
647 | number_version: 109,
648 | version: "1.9.91",
649 | ios_begin_ver: 369492480,
650 | ios_end_ver: 536870911,
651 | android_begin_ver: 637927936,
652 | android_end_ver: 805306367,
653 | status: 0
654 | },
655 | 110: {
656 | number_version: 110,
657 | version: "1.9.91",
658 | ios_begin_ver: 369492480,
659 | ios_end_ver: 536870911,
660 | android_begin_ver: 637927936,
661 | android_end_ver: 805306367,
662 | status: 1
663 | },
664 | 111: {
665 | number_version: 111,
666 | version: "1.9.91",
667 | ios_begin_ver: 369493536,
668 | ios_end_ver: 369493536,
669 | android_begin_ver: 0,
670 | android_end_ver: 0,
671 | status: 0
672 | },
673 | 112: {
674 | number_version: 112,
675 | version: "1.9.92",
676 | ios_begin_ver: 369492480,
677 | ios_end_ver: 536870911,
678 | android_begin_ver: 637927936,
679 | android_end_ver: 805306367,
680 | status: 1
681 | },
682 | 113: {
683 | number_version: 113,
684 | version: "1.9.93",
685 | ios_begin_ver: 369492480,
686 | ios_end_ver: 536870911,
687 | android_begin_ver: 637927936,
688 | android_end_ver: 805306367,
689 | status: 1
690 | },
691 | 114: {
692 | number_version: 114,
693 | version: "1.9.94",
694 | ios_begin_ver: 369492480,
695 | ios_end_ver: 536870911,
696 | android_begin_ver: 637927936,
697 | android_end_ver: 805306367,
698 | status: 1
699 | },
700 | 115: {
701 | number_version: 115,
702 | version: "1.9.95",
703 | ios_begin_ver: 369492480,
704 | ios_end_ver: 536870911,
705 | android_begin_ver: 637927936,
706 | android_end_ver: 805306367,
707 | status: 1
708 | },
709 | 116: {
710 | number_version: 116,
711 | version: "1.9.96",
712 | ios_begin_ver: 369492480,
713 | ios_end_ver: 536870911,
714 | android_begin_ver: 637927936,
715 | android_end_ver: 805306367,
716 | status: 1
717 | },
718 | 117: {
719 | number_version: 117,
720 | version: "1.9.97",
721 | ios_begin_ver: 369492480,
722 | ios_end_ver: 536870911,
723 | android_begin_ver: 637927936,
724 | android_end_ver: 805306367,
725 | status: 1
726 | },
727 | 118: {
728 | number_version: 118,
729 | version: "1.9.98",
730 | ios_begin_ver: 369493504,
731 | ios_end_ver: 536870911,
732 | android_begin_ver: 0,
733 | android_end_ver: 0,
734 | status: 1
735 | },
736 | 119: {
737 | number_version: 119,
738 | version: "2.0.0",
739 | ios_begin_ver: 369493504,
740 | ios_end_ver: 536870911,
741 | android_begin_ver: 0,
742 | android_end_ver: 0,
743 | status: 1
744 | },
745 | 120: {
746 | number_version: 120,
747 | version: "2.0.1",
748 | ios_begin_ver: 369493504,
749 | ios_end_ver: 536870911,
750 | android_begin_ver: 637928960,
751 | android_end_ver: 805306367,
752 | status: 1
753 | },
754 | 121: {
755 | number_version: 121,
756 | version: "2.0.2",
757 | ios_begin_ver: 369493504,
758 | ios_end_ver: 536870911,
759 | android_begin_ver: 637928960,
760 | android_end_ver: 805306367,
761 | status: 1
762 | },
763 | 122: {
764 | number_version: 122,
765 | version: "2.0.3",
766 | ios_begin_ver: 369493504,
767 | ios_end_ver: 536870911,
768 | android_begin_ver: 637928960,
769 | android_end_ver: 805306367,
770 | status: 1
771 | },
772 | 123: {
773 | number_version: 123,
774 | version: "1",
775 | ios_begin_ver: 0,
776 | ios_end_ver: 0,
777 | android_begin_ver: 0,
778 | android_end_ver: 0,
779 | status: 0
780 | },
781 | 124: {
782 | number_version: 124,
783 | version: "2.0.4",
784 | ios_begin_ver: 369493504,
785 | ios_end_ver: 536870911,
786 | android_begin_ver: 637928960,
787 | android_end_ver: 805306367,
788 | status: 1
789 | }
790 | };
791 | }(require, require)
--------------------------------------------------------------------------------
/src/third-party/RemoteDebugUtils.js:
--------------------------------------------------------------------------------
1 | ! function(require, directRequire) {
2 | "use strict";
3 |
4 | function t(t) {
5 | return Object.prototype.toString.call(t).toLowerCase().slice(8, -1)
6 | }
7 |
8 | function e(e, o) {
9 | "string" === t(e) && (o = e, e = null);
10 | let r = e;
11 | const n = o || (null == e ? void 0 : e.message);
12 | return e instanceof Error || (r = new Error(n)), r.message = n, r
13 | }
14 | Object.defineProperty(exports, "__esModule", {
15 | value: !0
16 | }), exports.guessMimeTypeFromHeader = exports.randomString = exports.expect = exports.expectFail = exports.delayPromise = exports.assertNever = exports.safeGet = exports.jsonParse = exports.jsonStringify = exports.invalidTryCatchResult = exports.tryCatch = exports.logStack = exports.logInvoke = exports.randomId = exports.dateStamp = exports.timeStamp = exports.padStart = exports.noop = exports.clientVersion = exports.isMac = exports.isDev = exports.commonError = exports.typeOf = void 0, exports.typeOf = t, exports.commonError = e, exports.isDev = global.appConfig && global.appConfig.isDev, exports.isMac = "darwin" === process.platform, exports.clientVersion = parseInt((global.appVersion || "-1").replace(/\./g, ""), 10);
17 |
18 | function o(t, e, o) {
19 | o = "" + o;
20 | let r = "";
21 | for (let o = 0; o < t; o++) r += e;
22 | return r.substring(0, r.length - o.length) + o
23 | }
24 | exports.noop = () => {}, exports.padStart = o, exports.timeStamp = function(t) {
25 | const e = o.bind(null, 3, "0"),
26 | r = o.bind(null, 2, "0"),
27 | n = -(t = t || new Date).getTimezoneOffset() / 60;
28 | return `[GMT${n>=0?"+":"-"}${n} ${t.getFullYear()}-${r(t.getMonth()+1)}-${r(t.getDate())} ${r(t.getHours())}:${r(t.getMinutes())}:${r(t.getSeconds())}:${e(t.getMilliseconds())}]`
29 | }, exports.dateStamp = function(t, e = !1) {
30 | const r = o.bind(null, 3, "0"),
31 | n = o.bind(null, 2, "0");
32 | return t = t || new Date, e ? `${t.getFullYear()}-${n(t.getMonth()+1)}-${n(t.getDate())} ${n(t.getHours())}-${n(t.getMinutes())}-${n(t.getSeconds())}-${r(t.getMilliseconds())}` : `${t.getFullYear()}-${n(t.getMonth()+1)}-${n(t.getDate())}`
33 | }, exports.randomId = function(t = "") {
34 | return `${t=t?t+"-":""}${Math.round(1e4*Math.random())}-${Date.now()}`
35 | }, exports.logInvoke = function(t) {
36 | return function(e, o, r) {
37 | if (!exports.isDev) return r;
38 | const n = r.value;
39 | return r.value = function(...e) {
40 | var r;
41 | const s = (null === (r = null == this ? void 0 : this.constructor) || void 0 === r ? void 0 : r.name) || "";
42 | e.length > 0 ? t.i(`${s}.${o}(`, e, ")") : t.i(`${s}.${o}()`);
43 | return n.call(this, ...e)
44 | }, r
45 | }
46 | }, exports.logStack = function(t) {
47 | return function(e, o, r) {
48 | if (!exports.isDev) return r;
49 | const n = r.value;
50 | return r.value = function(...e) {
51 | var r;
52 | const s = (null === (r = null == this ? void 0 : this.constructor) || void 0 === r ? void 0 : r.name) || "",
53 | i = (new Error).stack;
54 | exports.isDev && console.group && console.group(`${s}.${o} :: STACK`), t.i(i), exports.isDev && console.groupEnd && console.groupEnd();
55 | return n.call(this, ...e)
56 | }, r
57 | }
58 | };
59 | const r = Symbol.for("tryCatchError");
60 |
61 | function n(t, e, o) {
62 | var r, n;
63 | t.assert("!!! [assert expect] !!!", e, "does not satisfy", o), null === (r = console.group) || void 0 === r || r.call(console, "!!! [assert :: STACK] !!!"), t.assert((new Error).stack), null === (n = console.groupEnd) || void 0 === n || n.call(console)
64 | }
65 | exports.tryCatch = function(t) {
66 | try {
67 | return t()
68 | } catch (t) {
69 | return {
70 | error: e(t),
71 | _tag: r,
72 | toString: () => "[Object TryCatchError]"
73 | }
74 | }
75 | }, exports.invalidTryCatchResult = function(t) {
76 | return t && t._tag === r
77 | }, exports.jsonStringify = function(t) {
78 | return JSON.stringify(t)
79 | }, exports.jsonParse = function(t) {
80 | return JSON.parse(t)
81 | }, exports.safeGet = function(t, e, o) {
82 | const r = e.split(".");
83 | let n = t;
84 | for (const t of r) {
85 | const e = n[t];
86 | if (void 0 === e) return o;
87 | n = e
88 | }
89 | return n
90 | }, exports.assertNever = function(...t) {
91 | console.error("!!! [assert never] !!!", ...t)
92 | }, exports.delayPromise = function(t) {
93 | return new Promise(e => {
94 | setTimeout(() => {
95 | e()
96 | }, t > 0 ? t : 0)
97 | })
98 | };
99 | const s = {
100 | fail: (...t) => s,
101 | pass: t => (t.call(void 0), s)
102 | };
103 | exports.expectFail = {
104 | fail: t => (t.call(void 0), exports.expectFail),
105 | pass: (...t) => exports.expectFail
106 | }, exports.expect = function(t, e) {
107 | return {
108 | as: o => o(t) ? s : (n(e, t, o.toString()), exports.expectFail),
109 | toBe: o => Object.is(t, o) ? s : (n(e, t, o), exports.expectFail),
110 | toFuzzyEqual: o => o !== t ? (n(e, t, o), exports.expectFail) : s
111 | }
112 | }, exports.randomString = function(t = 12) {
113 | const e = "=-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" + Date.now();
114 | let o = "";
115 | for (let r = 0; r < t; r++) {
116 | const t = Math.floor(Math.random() * e.length);
117 | o += e.substring(t, t + 1)
118 | }
119 | return o
120 | }, exports.guessMimeTypeFromHeader = function(t) {
121 | if (!t) return "text/plain";
122 | const e = ["Content-Type", "content-type", "Content-type", "content-Type"];
123 | for (const o of e)
124 | if ("string" == typeof t[o]) {
125 | return t[o].split(";")[0]
126 | } return "text/plain"
127 | };
128 | }(require, require)
--------------------------------------------------------------------------------
/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "target": "es2020",
4 | "lib": ["es2020", "ES2021.String"],
5 | "moduleResolution": "Node",
6 | "noEmit": true,
7 | "esModuleInterop": true,
8 | "allowJs": false,
9 | "strict": true
10 | },
11 | "exclude": ["node_modules/*", "src/third-party/*"]
12 | }
13 |
--------------------------------------------------------------------------------
/yarn.lock:
--------------------------------------------------------------------------------
1 | # THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
2 | # yarn lockfile v1
3 |
4 |
5 | "@cspotcode/source-map-support@^0.8.0":
6 | version "0.8.1"
7 | resolved "https://registry.yarnpkg.com/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz#00629c35a688e05a88b1cda684fb9d5e73f000a1"
8 | integrity sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==
9 | dependencies:
10 | "@jridgewell/trace-mapping" "0.3.9"
11 |
12 | "@jridgewell/resolve-uri@^3.0.3":
13 | version "3.1.2"
14 | resolved "https://registry.yarnpkg.com/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz#7a0ee601f60f99a20c7c7c5ff0c80388c1189bd6"
15 | integrity sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==
16 |
17 | "@jridgewell/sourcemap-codec@^1.4.10":
18 | version "1.5.0"
19 | resolved "https://registry.yarnpkg.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz#3188bcb273a414b0d215fd22a58540b989b9409a"
20 | integrity sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==
21 |
22 | "@jridgewell/trace-mapping@0.3.9":
23 | version "0.3.9"
24 | resolved "https://registry.yarnpkg.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz#6534fd5933a53ba7cbf3a17615e273a0d1273ff9"
25 | integrity sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==
26 | dependencies:
27 | "@jridgewell/resolve-uri" "^3.0.3"
28 | "@jridgewell/sourcemap-codec" "^1.4.10"
29 |
30 | "@protobufjs/aspromise@^1.1.1", "@protobufjs/aspromise@^1.1.2":
31 | version "1.1.2"
32 | resolved "https://registry.yarnpkg.com/@protobufjs/aspromise/-/aspromise-1.1.2.tgz#9b8b0cc663d669a7d8f6f5d0893a14d348f30fbf"
33 | integrity sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ==
34 |
35 | "@protobufjs/base64@^1.1.2":
36 | version "1.1.2"
37 | resolved "https://registry.yarnpkg.com/@protobufjs/base64/-/base64-1.1.2.tgz#4c85730e59b9a1f1f349047dbf24296034bb2735"
38 | integrity sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg==
39 |
40 | "@protobufjs/codegen@^2.0.4":
41 | version "2.0.4"
42 | resolved "https://registry.yarnpkg.com/@protobufjs/codegen/-/codegen-2.0.4.tgz#7ef37f0d010fb028ad1ad59722e506d9262815cb"
43 | integrity sha512-YyFaikqM5sH0ziFZCN3xDC7zeGaB/d0IUb9CATugHWbd1FRFwWwt4ld4OYMPWu5a3Xe01mGAULCdqhMlPl29Jg==
44 |
45 | "@protobufjs/eventemitter@^1.1.0":
46 | version "1.1.0"
47 | resolved "https://registry.yarnpkg.com/@protobufjs/eventemitter/-/eventemitter-1.1.0.tgz#355cbc98bafad5978f9ed095f397621f1d066b70"
48 | integrity sha512-j9ednRT81vYJ9OfVuXG6ERSTdEL1xVsNgqpkxMsbIabzSo3goCjDIveeGv5d03om39ML71RdmrGNjG5SReBP/Q==
49 |
50 | "@protobufjs/fetch@^1.1.0":
51 | version "1.1.0"
52 | resolved "https://registry.yarnpkg.com/@protobufjs/fetch/-/fetch-1.1.0.tgz#ba99fb598614af65700c1619ff06d454b0d84c45"
53 | integrity sha512-lljVXpqXebpsijW71PZaCYeIcE5on1w5DlQy5WH6GLbFryLUrBD4932W/E2BSpfRJWseIL4v/KPgBFxDOIdKpQ==
54 | dependencies:
55 | "@protobufjs/aspromise" "^1.1.1"
56 | "@protobufjs/inquire" "^1.1.0"
57 |
58 | "@protobufjs/float@^1.0.2":
59 | version "1.0.2"
60 | resolved "https://registry.yarnpkg.com/@protobufjs/float/-/float-1.0.2.tgz#5e9e1abdcb73fc0a7cb8b291df78c8cbd97b87d1"
61 | integrity sha512-Ddb+kVXlXst9d+R9PfTIxh1EdNkgoRe5tOX6t01f1lYWOvJnSPDBlG241QLzcyPdoNTsblLUdujGSE4RzrTZGQ==
62 |
63 | "@protobufjs/inquire@^1.1.0":
64 | version "1.1.0"
65 | resolved "https://registry.yarnpkg.com/@protobufjs/inquire/-/inquire-1.1.0.tgz#ff200e3e7cf2429e2dcafc1140828e8cc638f089"
66 | integrity sha512-kdSefcPdruJiFMVSbn801t4vFK7KB/5gd2fYvrxhuJYg8ILrmn9SKSX2tZdV6V+ksulWqS7aXjBcRXl3wHoD9Q==
67 |
68 | "@protobufjs/path@^1.1.2":
69 | version "1.1.2"
70 | resolved "https://registry.yarnpkg.com/@protobufjs/path/-/path-1.1.2.tgz#6cc2b20c5c9ad6ad0dccfd21ca7673d8d7fbf68d"
71 | integrity sha512-6JOcJ5Tm08dOHAbdR3GrvP+yUUfkjG5ePsHYczMFLq3ZmMkAD98cDgcT2iA1lJ9NVwFd4tH/iSSoe44YWkltEA==
72 |
73 | "@protobufjs/pool@^1.1.0":
74 | version "1.1.0"
75 | resolved "https://registry.yarnpkg.com/@protobufjs/pool/-/pool-1.1.0.tgz#09fd15f2d6d3abfa9b65bc366506d6ad7846ff54"
76 | integrity sha512-0kELaGSIDBKvcgS4zkjz1PeddatrjYcmMWOlAuAPwAeccUrPHdUqo/J6LiymHHEiJT5NrF1UVwxY14f+fy4WQw==
77 |
78 | "@protobufjs/utf8@^1.1.0":
79 | version "1.1.0"
80 | resolved "https://registry.yarnpkg.com/@protobufjs/utf8/-/utf8-1.1.0.tgz#a777360b5b39a1a2e5106f8e858f2fd2d060c570"
81 | integrity sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw==
82 |
83 | "@tsconfig/node10@^1.0.7":
84 | version "1.0.11"
85 | resolved "https://registry.yarnpkg.com/@tsconfig/node10/-/node10-1.0.11.tgz#6ee46400685f130e278128c7b38b7e031ff5b2f2"
86 | integrity sha512-DcRjDCujK/kCk/cUe8Xz8ZSpm8mS3mNNpta+jGCA6USEDfktlNvm1+IuZ9eTcDbNk41BHwpHHeW+N1lKCz4zOw==
87 |
88 | "@tsconfig/node12@^1.0.7":
89 | version "1.0.11"
90 | resolved "https://registry.yarnpkg.com/@tsconfig/node12/-/node12-1.0.11.tgz#ee3def1f27d9ed66dac6e46a295cffb0152e058d"
91 | integrity sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==
92 |
93 | "@tsconfig/node14@^1.0.0":
94 | version "1.0.3"
95 | resolved "https://registry.yarnpkg.com/@tsconfig/node14/-/node14-1.0.3.tgz#e4386316284f00b98435bf40f72f75a09dabf6c1"
96 | integrity sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==
97 |
98 | "@tsconfig/node16@^1.0.2":
99 | version "1.0.4"
100 | resolved "https://registry.yarnpkg.com/@tsconfig/node16/-/node16-1.0.4.tgz#0b92dcc0cc1c81f6f306a381f28e31b1a56536e9"
101 | integrity sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==
102 |
103 | "@types/node@*", "@types/node@>=13.7.0", "@types/node@^22.13.1":
104 | version "22.13.1"
105 | resolved "https://registry.yarnpkg.com/@types/node/-/node-22.13.1.tgz#a2a3fefbdeb7ba6b89f40371842162fac0934f33"
106 | integrity sha512-jK8uzQlrvXqEU91UxiK5J7pKHyzgnI1Qnl0QDHIgVGuolJhRb9EEl28Cj9b3rGR8B2lhFCtvIm5os8lFnO/1Ew==
107 | dependencies:
108 | undici-types "~6.20.0"
109 |
110 | "@types/ws@^8.5.14":
111 | version "8.5.14"
112 | resolved "https://registry.yarnpkg.com/@types/ws/-/ws-8.5.14.tgz#93d44b268c9127d96026cf44353725dd9b6c3c21"
113 | integrity sha512-bd/YFLW+URhBzMXurx7lWByOu+xzU9+kb3RboOteXYDfW+tr+JZa99OyNmPINEGB/ahzKrEuc8rcv4gnpJmxTw==
114 | dependencies:
115 | "@types/node" "*"
116 |
117 | acorn-walk@^8.1.1:
118 | version "8.3.4"
119 | resolved "https://registry.yarnpkg.com/acorn-walk/-/acorn-walk-8.3.4.tgz#794dd169c3977edf4ba4ea47583587c5866236b7"
120 | integrity sha512-ueEepnujpqee2o5aIYnvHU6C0A42MNdsIDeqy5BydrkuC5R1ZuUFnm27EeFJGoEHJQgn3uleRvmTXaJgfXbt4g==
121 | dependencies:
122 | acorn "^8.11.0"
123 |
124 | acorn@^8.11.0, acorn@^8.4.1:
125 | version "8.14.0"
126 | resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.14.0.tgz#063e2c70cac5fb4f6467f0b11152e04c682795b0"
127 | integrity sha512-cl669nCJTZBsL97OF4kUQm5g5hC2uihk0NxY3WENAC0TYdILVkAyHymAntgxGkl7K+t0cXIrH5siy5S4XkFycA==
128 |
129 | arg@^4.1.0:
130 | version "4.1.3"
131 | resolved "https://registry.yarnpkg.com/arg/-/arg-4.1.3.tgz#269fc7ad5b8e42cb63c896d5666017261c144089"
132 | integrity sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==
133 |
134 | balanced-match@^1.0.0:
135 | version "1.0.2"
136 | resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.2.tgz#e83e3a7e3f300b34cb9d87f615fa0cbf357690ee"
137 | integrity sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==
138 |
139 | base64-js@^1.3.1:
140 | version "1.5.1"
141 | resolved "https://registry.yarnpkg.com/base64-js/-/base64-js-1.5.1.tgz#1b1b440160a5bf7ad40b650f095963481903930a"
142 | integrity sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==
143 |
144 | bindings@^1.5.0:
145 | version "1.5.0"
146 | resolved "https://registry.yarnpkg.com/bindings/-/bindings-1.5.0.tgz#10353c9e945334bc0511a6d90b38fbc7c9c504df"
147 | integrity sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ==
148 | dependencies:
149 | file-uri-to-path "1.0.0"
150 |
151 | bl@^4.0.3:
152 | version "4.1.0"
153 | resolved "https://registry.yarnpkg.com/bl/-/bl-4.1.0.tgz#451535264182bec2fbbc83a62ab98cf11d9f7b3a"
154 | integrity sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==
155 | dependencies:
156 | buffer "^5.5.0"
157 | inherits "^2.0.4"
158 | readable-stream "^3.4.0"
159 |
160 | brace-expansion@^2.0.1:
161 | version "2.0.1"
162 | resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-2.0.1.tgz#1edc459e0f0c548486ecf9fc99f2221364b9a0ae"
163 | integrity sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==
164 | dependencies:
165 | balanced-match "^1.0.0"
166 |
167 | buffer@^5.5.0:
168 | version "5.7.1"
169 | resolved "https://registry.yarnpkg.com/buffer/-/buffer-5.7.1.tgz#ba62e7c13133053582197160851a8f648e99eed0"
170 | integrity sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==
171 | dependencies:
172 | base64-js "^1.3.1"
173 | ieee754 "^1.1.13"
174 |
175 | chownr@^1.1.1:
176 | version "1.1.4"
177 | resolved "https://registry.yarnpkg.com/chownr/-/chownr-1.1.4.tgz#6fc9d7b42d32a583596337666e7d08084da2cc6b"
178 | integrity sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==
179 |
180 | create-require@^1.1.0:
181 | version "1.1.1"
182 | resolved "https://registry.yarnpkg.com/create-require/-/create-require-1.1.1.tgz#c1d7e8f1e5f6cfc9ff65f9cd352d37348756c333"
183 | integrity sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==
184 |
185 | decompress-response@^6.0.0:
186 | version "6.0.0"
187 | resolved "https://registry.yarnpkg.com/decompress-response/-/decompress-response-6.0.0.tgz#ca387612ddb7e104bd16d85aab00d5ecf09c66fc"
188 | integrity sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ==
189 | dependencies:
190 | mimic-response "^3.1.0"
191 |
192 | deep-extend@^0.6.0:
193 | version "0.6.0"
194 | resolved "https://registry.yarnpkg.com/deep-extend/-/deep-extend-0.6.0.tgz#c4fa7c95404a17a9c3e8ca7e1537312b736330ac"
195 | integrity sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==
196 |
197 | detect-libc@^2.0.0:
198 | version "2.0.3"
199 | resolved "https://registry.yarnpkg.com/detect-libc/-/detect-libc-2.0.3.tgz#f0cd503b40f9939b894697d19ad50895e30cf700"
200 | integrity sha512-bwy0MGW55bG41VqxxypOsdSdGqLwXPI/focwgTYCFMbdUiBAxLg9CFzG08sz2aqzknwiX7Hkl0bQENjg8iLByw==
201 |
202 | diff@^4.0.1:
203 | version "4.0.2"
204 | resolved "https://registry.yarnpkg.com/diff/-/diff-4.0.2.tgz#60f3aecb89d5fae520c11aa19efc2bb982aade7d"
205 | integrity sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==
206 |
207 | end-of-stream@^1.1.0, end-of-stream@^1.4.1:
208 | version "1.4.4"
209 | resolved "https://registry.yarnpkg.com/end-of-stream/-/end-of-stream-1.4.4.tgz#5ae64a5f45057baf3626ec14da0ca5e4b2431eb0"
210 | integrity sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==
211 | dependencies:
212 | once "^1.4.0"
213 |
214 | expand-template@^2.0.3:
215 | version "2.0.3"
216 | resolved "https://registry.yarnpkg.com/expand-template/-/expand-template-2.0.3.tgz#6e14b3fcee0f3a6340ecb57d2e8918692052a47c"
217 | integrity sha512-XYfuKMvj4O35f/pOXLObndIRvyQ+/+6AhODh+OKWj9S9498pHHn/IMszH+gt0fBCRWMNfk1ZSp5x3AifmnI2vg==
218 |
219 | file-uri-to-path@1.0.0:
220 | version "1.0.0"
221 | resolved "https://registry.yarnpkg.com/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz#553a7b8446ff6f684359c445f1e37a05dacc33dd"
222 | integrity sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw==
223 |
224 | frida@^16.6.6:
225 | version "16.6.6"
226 | resolved "https://registry.yarnpkg.com/frida/-/frida-16.6.6.tgz#77524d8e4af9b2c7b046058151ad4690e0625dae"
227 | integrity sha512-h4THfrcE5kzhVTwgSansMpXKW4O4fGfjNsJrpQTmWe/F+s0G/BrLyecaRi/MnXsXoSx4q3Rtz7oSbB/FuFGLXg==
228 | dependencies:
229 | bindings "^1.5.0"
230 | minimatch "^9.0.3"
231 | nan "^2.18.0"
232 | prebuild-install "^7.1.1"
233 |
234 | fs-constants@^1.0.0:
235 | version "1.0.0"
236 | resolved "https://registry.yarnpkg.com/fs-constants/-/fs-constants-1.0.0.tgz#6be0de9be998ce16af8afc24497b9ee9b7ccd9ad"
237 | integrity sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==
238 |
239 | github-from-package@0.0.0:
240 | version "0.0.0"
241 | resolved "https://registry.yarnpkg.com/github-from-package/-/github-from-package-0.0.0.tgz#97fb5d96bfde8973313f20e8288ef9a167fa64ce"
242 | integrity sha512-SyHy3T1v2NUXn29OsWdxmK6RwHD+vkj3v8en8AOBZ1wBQ/hCAQ5bAQTD02kW4W9tUp/3Qh6J8r9EvntiyCmOOw==
243 |
244 | ieee754@^1.1.13:
245 | version "1.2.1"
246 | resolved "https://registry.yarnpkg.com/ieee754/-/ieee754-1.2.1.tgz#8eb7a10a63fff25d15a57b001586d177d1b0d352"
247 | integrity sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==
248 |
249 | inherits@^2.0.3, inherits@^2.0.4:
250 | version "2.0.4"
251 | resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c"
252 | integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==
253 |
254 | ini@~1.3.0:
255 | version "1.3.8"
256 | resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.8.tgz#a29da425b48806f34767a4efce397269af28432c"
257 | integrity sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==
258 |
259 | long@^5.0.0:
260 | version "5.3.0"
261 | resolved "https://registry.yarnpkg.com/long/-/long-5.3.0.tgz#3bab70330c40c2c1b5cb73c4254723c81f00e15c"
262 | integrity sha512-5vvY5yF1zF/kXk+L94FRiTDa1Znom46UjPCH6/XbSvS8zBKMFBHTJk8KDMqJ+2J6QezQFi7k1k8v21ClJYHPaw==
263 |
264 | make-error@^1.1.1:
265 | version "1.3.6"
266 | resolved "https://registry.yarnpkg.com/make-error/-/make-error-1.3.6.tgz#2eb2e37ea9b67c4891f684a1394799af484cf7a2"
267 | integrity sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==
268 |
269 | mimic-response@^3.1.0:
270 | version "3.1.0"
271 | resolved "https://registry.yarnpkg.com/mimic-response/-/mimic-response-3.1.0.tgz#2d1d59af9c1b129815accc2c46a022a5ce1fa3c9"
272 | integrity sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ==
273 |
274 | minimatch@^9.0.3:
275 | version "9.0.5"
276 | resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-9.0.5.tgz#d74f9dd6b57d83d8e98cfb82133b03978bc929e5"
277 | integrity sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==
278 | dependencies:
279 | brace-expansion "^2.0.1"
280 |
281 | minimist@^1.2.0, minimist@^1.2.3:
282 | version "1.2.8"
283 | resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.8.tgz#c1a464e7693302e082a075cee0c057741ac4772c"
284 | integrity sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==
285 |
286 | mkdirp-classic@^0.5.2, mkdirp-classic@^0.5.3:
287 | version "0.5.3"
288 | resolved "https://registry.yarnpkg.com/mkdirp-classic/-/mkdirp-classic-0.5.3.tgz#fa10c9115cc6d8865be221ba47ee9bed78601113"
289 | integrity sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A==
290 |
291 | nan@^2.18.0:
292 | version "2.22.0"
293 | resolved "https://registry.yarnpkg.com/nan/-/nan-2.22.0.tgz#31bc433fc33213c97bad36404bb68063de604de3"
294 | integrity sha512-nbajikzWTMwsW+eSsNm3QwlOs7het9gGJU5dDZzRTQGk03vyBOauxgI4VakDzE0PtsGTmXPsXTbbjVhRwR5mpw==
295 |
296 | napi-build-utils@^2.0.0:
297 | version "2.0.0"
298 | resolved "https://registry.yarnpkg.com/napi-build-utils/-/napi-build-utils-2.0.0.tgz#13c22c0187fcfccce1461844136372a47ddc027e"
299 | integrity sha512-GEbrYkbfF7MoNaoh2iGG84Mnf/WZfB0GdGEsM8wz7Expx/LlWf5U8t9nvJKXSp3qr5IsEbK04cBGhol/KwOsWA==
300 |
301 | node-abi@^3.3.0:
302 | version "3.74.0"
303 | resolved "https://registry.yarnpkg.com/node-abi/-/node-abi-3.74.0.tgz#5bfb4424264eaeb91432d2adb9da23c63a301ed0"
304 | integrity sha512-c5XK0MjkGBrQPGYG24GBADZud0NCbznxNx0ZkS+ebUTrmV1qTDxPxSL8zEAPURXSbLRWVexxmP4986BziahL5w==
305 | dependencies:
306 | semver "^7.3.5"
307 |
308 | once@^1.3.1, once@^1.4.0:
309 | version "1.4.0"
310 | resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1"
311 | integrity sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==
312 | dependencies:
313 | wrappy "1"
314 |
315 | prebuild-install@^7.1.1:
316 | version "7.1.3"
317 | resolved "https://registry.yarnpkg.com/prebuild-install/-/prebuild-install-7.1.3.tgz#d630abad2b147443f20a212917beae68b8092eec"
318 | integrity sha512-8Mf2cbV7x1cXPUILADGI3wuhfqWvtiLA1iclTDbFRZkgRQS0NqsPZphna9V+HyTEadheuPmjaJMsbzKQFOzLug==
319 | dependencies:
320 | detect-libc "^2.0.0"
321 | expand-template "^2.0.3"
322 | github-from-package "0.0.0"
323 | minimist "^1.2.3"
324 | mkdirp-classic "^0.5.3"
325 | napi-build-utils "^2.0.0"
326 | node-abi "^3.3.0"
327 | pump "^3.0.0"
328 | rc "^1.2.7"
329 | simple-get "^4.0.0"
330 | tar-fs "^2.0.0"
331 | tunnel-agent "^0.6.0"
332 |
333 | protobufjs@^7.4.0:
334 | version "7.4.0"
335 | resolved "https://registry.yarnpkg.com/protobufjs/-/protobufjs-7.4.0.tgz#7efe324ce9b3b61c82aae5de810d287bc08a248a"
336 | integrity sha512-mRUWCc3KUU4w1jU8sGxICXH/gNS94DvI1gxqDvBzhj1JpcsimQkYiOJfwsPUykUI5ZaspFbSgmBLER8IrQ3tqw==
337 | dependencies:
338 | "@protobufjs/aspromise" "^1.1.2"
339 | "@protobufjs/base64" "^1.1.2"
340 | "@protobufjs/codegen" "^2.0.4"
341 | "@protobufjs/eventemitter" "^1.1.0"
342 | "@protobufjs/fetch" "^1.1.0"
343 | "@protobufjs/float" "^1.0.2"
344 | "@protobufjs/inquire" "^1.1.0"
345 | "@protobufjs/path" "^1.1.2"
346 | "@protobufjs/pool" "^1.1.0"
347 | "@protobufjs/utf8" "^1.1.0"
348 | "@types/node" ">=13.7.0"
349 | long "^5.0.0"
350 |
351 | pump@^3.0.0:
352 | version "3.0.2"
353 | resolved "https://registry.yarnpkg.com/pump/-/pump-3.0.2.tgz#836f3edd6bc2ee599256c924ffe0d88573ddcbf8"
354 | integrity sha512-tUPXtzlGM8FE3P0ZL6DVs/3P58k9nk8/jZeQCurTJylQA8qFYzHFfhBJkuqyE0FifOsQ0uKWekiZ5g8wtr28cw==
355 | dependencies:
356 | end-of-stream "^1.1.0"
357 | once "^1.3.1"
358 |
359 | rc@^1.2.7:
360 | version "1.2.8"
361 | resolved "https://registry.yarnpkg.com/rc/-/rc-1.2.8.tgz#cd924bf5200a075b83c188cd6b9e211b7fc0d3ed"
362 | integrity sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==
363 | dependencies:
364 | deep-extend "^0.6.0"
365 | ini "~1.3.0"
366 | minimist "^1.2.0"
367 | strip-json-comments "~2.0.1"
368 |
369 | readable-stream@^3.1.1, readable-stream@^3.4.0:
370 | version "3.6.2"
371 | resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-3.6.2.tgz#56a9b36ea965c00c5a93ef31eb111a0f11056967"
372 | integrity sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==
373 | dependencies:
374 | inherits "^2.0.3"
375 | string_decoder "^1.1.1"
376 | util-deprecate "^1.0.1"
377 |
378 | safe-buffer@^5.0.1, safe-buffer@~5.2.0:
379 | version "5.2.1"
380 | resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.2.1.tgz#1eaf9fa9bdb1fdd4ec75f58f9cdb4e6b7827eec6"
381 | integrity sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==
382 |
383 | semver@^7.3.5:
384 | version "7.7.1"
385 | resolved "https://registry.yarnpkg.com/semver/-/semver-7.7.1.tgz#abd5098d82b18c6c81f6074ff2647fd3e7220c9f"
386 | integrity sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA==
387 |
388 | simple-concat@^1.0.0:
389 | version "1.0.1"
390 | resolved "https://registry.yarnpkg.com/simple-concat/-/simple-concat-1.0.1.tgz#f46976082ba35c2263f1c8ab5edfe26c41c9552f"
391 | integrity sha512-cSFtAPtRhljv69IK0hTVZQ+OfE9nePi/rtJmw5UjHeVyVroEqJXP1sFztKUy1qU+xvz3u/sfYJLa947b7nAN2Q==
392 |
393 | simple-get@^4.0.0:
394 | version "4.0.1"
395 | resolved "https://registry.yarnpkg.com/simple-get/-/simple-get-4.0.1.tgz#4a39db549287c979d352112fa03fd99fd6bc3543"
396 | integrity sha512-brv7p5WgH0jmQJr1ZDDfKDOSeWWg+OVypG99A/5vYGPqJ6pxiaHLy8nxtFjBA7oMa01ebA9gfh1uMCFqOuXxvA==
397 | dependencies:
398 | decompress-response "^6.0.0"
399 | once "^1.3.1"
400 | simple-concat "^1.0.0"
401 |
402 | string_decoder@^1.1.1:
403 | version "1.3.0"
404 | resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.3.0.tgz#42f114594a46cf1a8e30b0a84f56c78c3edac21e"
405 | integrity sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==
406 | dependencies:
407 | safe-buffer "~5.2.0"
408 |
409 | strip-json-comments@~2.0.1:
410 | version "2.0.1"
411 | resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a"
412 | integrity sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ==
413 |
414 | tar-fs@^2.0.0:
415 | version "2.1.2"
416 | resolved "https://registry.yarnpkg.com/tar-fs/-/tar-fs-2.1.2.tgz#425f154f3404cb16cb8ff6e671d45ab2ed9596c5"
417 | integrity sha512-EsaAXwxmx8UB7FRKqeozqEPop69DXcmYwTQwXvyAPF352HJsPdkVhvTaDPYqfNgruveJIJy3TA2l+2zj8LJIJA==
418 | dependencies:
419 | chownr "^1.1.1"
420 | mkdirp-classic "^0.5.2"
421 | pump "^3.0.0"
422 | tar-stream "^2.1.4"
423 |
424 | tar-stream@^2.1.4:
425 | version "2.2.0"
426 | resolved "https://registry.yarnpkg.com/tar-stream/-/tar-stream-2.2.0.tgz#acad84c284136b060dc3faa64474aa9aebd77287"
427 | integrity sha512-ujeqbceABgwMZxEJnk2HDY2DlnUZ+9oEcb1KzTVfYHio0UE6dG71n60d8D2I4qNvleWrrXpmjpt7vZeF1LnMZQ==
428 | dependencies:
429 | bl "^4.0.3"
430 | end-of-stream "^1.4.1"
431 | fs-constants "^1.0.0"
432 | inherits "^2.0.3"
433 | readable-stream "^3.1.1"
434 |
435 | ts-node@^10.9.2:
436 | version "10.9.2"
437 | resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-10.9.2.tgz#70f021c9e185bccdca820e26dc413805c101c71f"
438 | integrity sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==
439 | dependencies:
440 | "@cspotcode/source-map-support" "^0.8.0"
441 | "@tsconfig/node10" "^1.0.7"
442 | "@tsconfig/node12" "^1.0.7"
443 | "@tsconfig/node14" "^1.0.0"
444 | "@tsconfig/node16" "^1.0.2"
445 | acorn "^8.4.1"
446 | acorn-walk "^8.1.1"
447 | arg "^4.1.0"
448 | create-require "^1.1.0"
449 | diff "^4.0.1"
450 | make-error "^1.1.1"
451 | v8-compile-cache-lib "^3.0.1"
452 | yn "3.1.1"
453 |
454 | tunnel-agent@^0.6.0:
455 | version "0.6.0"
456 | resolved "https://registry.yarnpkg.com/tunnel-agent/-/tunnel-agent-0.6.0.tgz#27a5dea06b36b04a0a9966774b290868f0fc40fd"
457 | integrity sha512-McnNiV1l8RYeY8tBgEpuodCC1mLUdbSN+CYBL7kJsJNInOP8UjDDEwdk6Mw60vdLLrr5NHKZhMAOSrR2NZuQ+w==
458 | dependencies:
459 | safe-buffer "^5.0.1"
460 |
461 | typescript@^5.7.3:
462 | version "5.7.3"
463 | resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.7.3.tgz#919b44a7dbb8583a9b856d162be24a54bf80073e"
464 | integrity sha512-84MVSjMEHP+FQRPy3pX9sTVV/INIex71s9TL2Gm5FG/WG1SqXeKyZ0k7/blY/4FdOzI12CBy1vGc4og/eus0fw==
465 |
466 | undici-types@~6.20.0:
467 | version "6.20.0"
468 | resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-6.20.0.tgz#8171bf22c1f588d1554d55bf204bc624af388433"
469 | integrity sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg==
470 |
471 | util-deprecate@^1.0.1:
472 | version "1.0.2"
473 | resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf"
474 | integrity sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==
475 |
476 | v8-compile-cache-lib@^3.0.1:
477 | version "3.0.1"
478 | resolved "https://registry.yarnpkg.com/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz#6336e8d71965cb3d35a1bbb7868445a7c05264bf"
479 | integrity sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==
480 |
481 | wrappy@1:
482 | version "1.0.2"
483 | resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f"
484 | integrity sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==
485 |
486 | ws@^8.18.0:
487 | version "8.18.0"
488 | resolved "https://registry.yarnpkg.com/ws/-/ws-8.18.0.tgz#0d7505a6eafe2b0e712d232b42279f53bc289bbc"
489 | integrity sha512-8VbfWfHLbbwu3+N6OKsOMpBdT4kXPDDB9cJk2bJ6mh9ucxdlnNvH1e+roYkKmN9Nxw2yjz7VzeO9oOz2zJ04Pw==
490 |
491 | yn@3.1.1:
492 | version "3.1.1"
493 | resolved "https://registry.yarnpkg.com/yn/-/yn-3.1.1.tgz#1e87401a09d767c1d5eab26a6e4c185182d2eb50"
494 | integrity sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==
495 |
--------------------------------------------------------------------------------