@zappdev/cli 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (209) hide show
  1. package/README.md +55 -0
  2. package/dist/zapp-cli.js +9471 -0
  3. package/native/src/app/app.zc +490 -0
  4. package/native/src/event/event.zc +24 -0
  5. package/native/src/event/events.zc +70 -0
  6. package/native/src/platform/darwin/backend.zc +923 -0
  7. package/native/src/platform/darwin/backend_bootstrap.zc +9 -0
  8. package/native/src/platform/darwin/bootstrap.zc +9 -0
  9. package/native/src/platform/darwin/engine_jsc.zc +86 -0
  10. package/native/src/platform/darwin/engine_qjs.zc +92 -0
  11. package/native/src/platform/darwin/platform.zc +156 -0
  12. package/native/src/platform/darwin/webview.zc +550 -0
  13. package/native/src/platform/darwin/webview_bootstrap.zc +9 -0
  14. package/native/src/platform/darwin/window.zc +1223 -0
  15. package/native/src/platform/darwin/worker/common.zc +223 -0
  16. package/native/src/platform/darwin/worker/core/base64_core.zc +29 -0
  17. package/native/src/platform/darwin/worker/core/crypto_core.zc +19 -0
  18. package/native/src/platform/darwin/worker/core/encoding_core.zc +32 -0
  19. package/native/src/platform/darwin/worker/core/fetch_core.zc +145 -0
  20. package/native/src/platform/darwin/worker/core/url_core.zc +69 -0
  21. package/native/src/platform/darwin/worker/core/websocket_core.zc +179 -0
  22. package/native/src/platform/darwin/worker/dispatch.zc +55 -0
  23. package/native/src/platform/darwin/worker/jsc/base64_jsc.zc +39 -0
  24. package/native/src/platform/darwin/worker/jsc/crypto_jsc.zc +49 -0
  25. package/native/src/platform/darwin/worker/jsc/encoding_jsc.zc +86 -0
  26. package/native/src/platform/darwin/worker/jsc/fetch_jsc.zc +149 -0
  27. package/native/src/platform/darwin/worker/jsc/url_jsc.zc +54 -0
  28. package/native/src/platform/darwin/worker/jsc/websocket_jsc.zc +127 -0
  29. package/native/src/platform/darwin/worker/jsc.zc +670 -0
  30. package/native/src/platform/darwin/worker/mod.zc +30 -0
  31. package/native/src/platform/darwin/worker/qjs/fetch_qjs.zc +233 -0
  32. package/native/src/platform/darwin/worker/qjs/qjs_macros.zc +23 -0
  33. package/native/src/platform/darwin/worker/qjs/websocket_qjs.zc +223 -0
  34. package/native/src/platform/darwin/worker/qjs.zc +1053 -0
  35. package/native/src/platform/darwin/worker/timers.zc +149 -0
  36. package/native/src/platform/darwin/worker/timers_qjs.zc +209 -0
  37. package/native/src/platform/platform.zc +64 -0
  38. package/native/src/platform/shared/log.zc +156 -0
  39. package/native/src/platform/shared/worker/qjs/base64_qjs.zc +38 -0
  40. package/native/src/platform/shared/worker/qjs/crypto_qjs.zc +44 -0
  41. package/native/src/platform/shared/worker/qjs/encoding_qjs.zc +95 -0
  42. package/native/src/platform/shared/worker/qjs/url_qjs.zc +65 -0
  43. package/native/src/platform/shared/worker_registry.zc +206 -0
  44. package/native/src/platform/window.zc +446 -0
  45. package/native/src/platform/windows/backend.zc +452 -0
  46. package/native/src/platform/windows/backend_bootstrap.zc +9 -0
  47. package/native/src/platform/windows/bootstrap.zc +9 -0
  48. package/native/src/platform/windows/engine_qjs.zc +60 -0
  49. package/native/src/platform/windows/platform.zc +387 -0
  50. package/native/src/platform/windows/webview.zc +1175 -0
  51. package/native/src/platform/windows/webview_bootstrap.zc +9 -0
  52. package/native/src/platform/windows/window.zc +1271 -0
  53. package/native/src/platform/windows/worker/common.zc +409 -0
  54. package/native/src/platform/windows/worker/core/base64_core.zc +52 -0
  55. package/native/src/platform/windows/worker/core/crypto_core.zc +34 -0
  56. package/native/src/platform/windows/worker/core/encoding_core.zc +60 -0
  57. package/native/src/platform/windows/worker/core/fetch_core.zc +274 -0
  58. package/native/src/platform/windows/worker/core/url_core.zc +216 -0
  59. package/native/src/platform/windows/worker/core/websocket_core.zc +343 -0
  60. package/native/src/platform/windows/worker/dispatch.zc +34 -0
  61. package/native/src/platform/windows/worker/mod.zc +46 -0
  62. package/native/src/platform/windows/worker/qjs/fetch_qjs.zc +255 -0
  63. package/native/src/platform/windows/worker/qjs/websocket_qjs.zc +263 -0
  64. package/native/src/platform/windows/worker/qjs.zc +1049 -0
  65. package/native/src/platform/windows/worker/timers_qjs.zc +288 -0
  66. package/native/src/platform/worker.zc +8 -0
  67. package/native/src/service/service.zc +228 -0
  68. package/native/vendor/quickjs-ng/.gitattributes +4 -0
  69. package/native/vendor/quickjs-ng/.github/dependabot.yml +7 -0
  70. package/native/vendor/quickjs-ng/.github/workflows/ci.yml +812 -0
  71. package/native/vendor/quickjs-ng/.github/workflows/docs.yml +49 -0
  72. package/native/vendor/quickjs-ng/.github/workflows/release.yml +162 -0
  73. package/native/vendor/quickjs-ng/.github/workflows/test-docs.yml +23 -0
  74. package/native/vendor/quickjs-ng/.github/workflows/tsan.yml +32 -0
  75. package/native/vendor/quickjs-ng/.github/workflows/valgrind.yml +33 -0
  76. package/native/vendor/quickjs-ng/.gitmodules +5 -0
  77. package/native/vendor/quickjs-ng/CMakeLists.txt +553 -0
  78. package/native/vendor/quickjs-ng/LICENSE +24 -0
  79. package/native/vendor/quickjs-ng/Makefile +149 -0
  80. package/native/vendor/quickjs-ng/amalgam.js +53 -0
  81. package/native/vendor/quickjs-ng/api-test.c +927 -0
  82. package/native/vendor/quickjs-ng/builtin-array-fromasync.h +119 -0
  83. package/native/vendor/quickjs-ng/builtin-array-fromasync.js +36 -0
  84. package/native/vendor/quickjs-ng/builtin-iterator-zip-keyed.h +332 -0
  85. package/native/vendor/quickjs-ng/builtin-iterator-zip-keyed.js +194 -0
  86. package/native/vendor/quickjs-ng/builtin-iterator-zip.h +337 -0
  87. package/native/vendor/quickjs-ng/builtin-iterator-zip.js +210 -0
  88. package/native/vendor/quickjs-ng/ctest.c +17 -0
  89. package/native/vendor/quickjs-ng/cutils.h +2013 -0
  90. package/native/vendor/quickjs-ng/cxxtest.cc +2 -0
  91. package/native/vendor/quickjs-ng/dtoa.c +1619 -0
  92. package/native/vendor/quickjs-ng/dtoa.h +87 -0
  93. package/native/vendor/quickjs-ng/examples/fib.c +67 -0
  94. package/native/vendor/quickjs-ng/examples/fib_module.js +10 -0
  95. package/native/vendor/quickjs-ng/examples/hello.js +1 -0
  96. package/native/vendor/quickjs-ng/examples/hello_module.js +6 -0
  97. package/native/vendor/quickjs-ng/examples/meson.build +17 -0
  98. package/native/vendor/quickjs-ng/examples/pi_bigint.js +118 -0
  99. package/native/vendor/quickjs-ng/examples/point.c +154 -0
  100. package/native/vendor/quickjs-ng/examples/test_fib.js +8 -0
  101. package/native/vendor/quickjs-ng/examples/test_point.js +43 -0
  102. package/native/vendor/quickjs-ng/fuzz.c +51 -0
  103. package/native/vendor/quickjs-ng/gen/function_source.c +81 -0
  104. package/native/vendor/quickjs-ng/gen/hello.c +53 -0
  105. package/native/vendor/quickjs-ng/gen/hello_module.c +106 -0
  106. package/native/vendor/quickjs-ng/gen/repl.c +3053 -0
  107. package/native/vendor/quickjs-ng/gen/standalone.c +324 -0
  108. package/native/vendor/quickjs-ng/gen/test_fib.c +81 -0
  109. package/native/vendor/quickjs-ng/libregexp-opcode.h +58 -0
  110. package/native/vendor/quickjs-ng/libregexp.c +2687 -0
  111. package/native/vendor/quickjs-ng/libregexp.h +98 -0
  112. package/native/vendor/quickjs-ng/libunicode-table.h +4707 -0
  113. package/native/vendor/quickjs-ng/libunicode.c +1746 -0
  114. package/native/vendor/quickjs-ng/libunicode.h +126 -0
  115. package/native/vendor/quickjs-ng/list.h +107 -0
  116. package/native/vendor/quickjs-ng/lre-test.c +73 -0
  117. package/native/vendor/quickjs-ng/meson.build +684 -0
  118. package/native/vendor/quickjs-ng/meson_options.txt +6 -0
  119. package/native/vendor/quickjs-ng/qjs-wasi-reactor.c +208 -0
  120. package/native/vendor/quickjs-ng/qjs.c +748 -0
  121. package/native/vendor/quickjs-ng/qjsc.c +673 -0
  122. package/native/vendor/quickjs-ng/quickjs-atom.h +267 -0
  123. package/native/vendor/quickjs-ng/quickjs-c-atomics.h +54 -0
  124. package/native/vendor/quickjs-ng/quickjs-libc.c +4986 -0
  125. package/native/vendor/quickjs-ng/quickjs-libc.h +79 -0
  126. package/native/vendor/quickjs-ng/quickjs-opcode.h +369 -0
  127. package/native/vendor/quickjs-ng/quickjs.c +60259 -0
  128. package/native/vendor/quickjs-ng/quickjs.h +1419 -0
  129. package/native/vendor/quickjs-ng/repl.js +1927 -0
  130. package/native/vendor/quickjs-ng/run-test262.c +2417 -0
  131. package/native/vendor/quickjs-ng/standalone.js +129 -0
  132. package/native/vendor/quickjs-ng/tests/assert.js +49 -0
  133. package/native/vendor/quickjs-ng/tests/bug1221.js +16 -0
  134. package/native/vendor/quickjs-ng/tests/bug1296.js +12 -0
  135. package/native/vendor/quickjs-ng/tests/bug1297.js +22 -0
  136. package/native/vendor/quickjs-ng/tests/bug1301.js +21 -0
  137. package/native/vendor/quickjs-ng/tests/bug1302.js +24 -0
  138. package/native/vendor/quickjs-ng/tests/bug1305.js +26 -0
  139. package/native/vendor/quickjs-ng/tests/bug1318.js +54 -0
  140. package/native/vendor/quickjs-ng/tests/bug1352.js +8 -0
  141. package/native/vendor/quickjs-ng/tests/bug1354.js +6 -0
  142. package/native/vendor/quickjs-ng/tests/bug1355.js +58 -0
  143. package/native/vendor/quickjs-ng/tests/bug1368.js +9 -0
  144. package/native/vendor/quickjs-ng/tests/bug39/1.js +6 -0
  145. package/native/vendor/quickjs-ng/tests/bug39/2.js +6 -0
  146. package/native/vendor/quickjs-ng/tests/bug39/3.js +7 -0
  147. package/native/vendor/quickjs-ng/tests/bug488-upstream.js +7 -0
  148. package/native/vendor/quickjs-ng/tests/bug633/0.js +7 -0
  149. package/native/vendor/quickjs-ng/tests/bug633/1.js +4 -0
  150. package/native/vendor/quickjs-ng/tests/bug633/2.js +4 -0
  151. package/native/vendor/quickjs-ng/tests/bug633/3.js +4 -0
  152. package/native/vendor/quickjs-ng/tests/bug645/0.js +4 -0
  153. package/native/vendor/quickjs-ng/tests/bug645/1.js +9 -0
  154. package/native/vendor/quickjs-ng/tests/bug645/2.js +7 -0
  155. package/native/vendor/quickjs-ng/tests/bug648.js +13 -0
  156. package/native/vendor/quickjs-ng/tests/bug652.js +4 -0
  157. package/native/vendor/quickjs-ng/tests/bug741.js +19 -0
  158. package/native/vendor/quickjs-ng/tests/bug775.js +7 -0
  159. package/native/vendor/quickjs-ng/tests/bug776.js +7 -0
  160. package/native/vendor/quickjs-ng/tests/bug832.js +2 -0
  161. package/native/vendor/quickjs-ng/tests/bug858.js +26 -0
  162. package/native/vendor/quickjs-ng/tests/bug904.js +6 -0
  163. package/native/vendor/quickjs-ng/tests/bug988.js +7 -0
  164. package/native/vendor/quickjs-ng/tests/bug999.js +3 -0
  165. package/native/vendor/quickjs-ng/tests/destructured-export.js +8 -0
  166. package/native/vendor/quickjs-ng/tests/detect_module/0.js +1 -0
  167. package/native/vendor/quickjs-ng/tests/detect_module/1.js +2 -0
  168. package/native/vendor/quickjs-ng/tests/detect_module/2.js +1 -0
  169. package/native/vendor/quickjs-ng/tests/detect_module/3.js +8 -0
  170. package/native/vendor/quickjs-ng/tests/detect_module/4.js +3 -0
  171. package/native/vendor/quickjs-ng/tests/empty.js +0 -0
  172. package/native/vendor/quickjs-ng/tests/fixture_cyclic_import.js +2 -0
  173. package/native/vendor/quickjs-ng/tests/fixture_string_exports.js +12 -0
  174. package/native/vendor/quickjs-ng/tests/function_source.js +14 -0
  175. package/native/vendor/quickjs-ng/tests/microbench.js +1267 -0
  176. package/native/vendor/quickjs-ng/tests/null_or_undefined.js +38 -0
  177. package/native/vendor/quickjs-ng/tests/str-pad-leak.js +5 -0
  178. package/native/vendor/quickjs-ng/tests/test_bigint.js +107 -0
  179. package/native/vendor/quickjs-ng/tests/test_bjson.js +366 -0
  180. package/native/vendor/quickjs-ng/tests/test_builtin.js +1314 -0
  181. package/native/vendor/quickjs-ng/tests/test_closure.js +220 -0
  182. package/native/vendor/quickjs-ng/tests/test_cyclic_import.js +12 -0
  183. package/native/vendor/quickjs-ng/tests/test_domexception.js +35 -0
  184. package/native/vendor/quickjs-ng/tests/test_language.js +755 -0
  185. package/native/vendor/quickjs-ng/tests/test_loop.js +367 -0
  186. package/native/vendor/quickjs-ng/tests/test_queue_microtask.js +39 -0
  187. package/native/vendor/quickjs-ng/tests/test_std.js +340 -0
  188. package/native/vendor/quickjs-ng/tests/test_string_exports.js +25 -0
  189. package/native/vendor/quickjs-ng/tests/test_worker.js +43 -0
  190. package/native/vendor/quickjs-ng/tests/test_worker_module.js +30 -0
  191. package/native/vendor/quickjs-ng/tests.conf +14 -0
  192. package/native/vendor/quickjs-ng/unicode_download.sh +19 -0
  193. package/native/vendor/quickjs-ng/unicode_gen.c +3108 -0
  194. package/native/vendor/quickjs-ng/unicode_gen_def.h +310 -0
  195. package/native/vendor/quickjs-ng/update-version.sh +32 -0
  196. package/native/vendor/webview2/include/WebView2.h +60636 -0
  197. package/native/vendor/webview2/include/WebView2EnvironmentOptions.h +406 -0
  198. package/package.json +33 -0
  199. package/src/backend.ts +139 -0
  200. package/src/build-config.ts +87 -0
  201. package/src/build.ts +276 -0
  202. package/src/common.ts +195 -0
  203. package/src/config.ts +89 -0
  204. package/src/dev.ts +164 -0
  205. package/src/generate.ts +200 -0
  206. package/src/icons.ts +116 -0
  207. package/src/init.ts +190 -0
  208. package/src/package.ts +150 -0
  209. package/src/zapp-cli.ts +263 -0
@@ -0,0 +1,337 @@
1
+ /* File generated automatically by the QuickJS-ng compiler. */
2
+
3
+ #include <inttypes.h>
4
+
5
+ const uint32_t qjsc_builtin_iterator_zip_size = 2621;
6
+
7
+ const uint8_t qjsc_builtin_iterator_zip[2621] = {
8
+ 0x18, 0x05, 0x6b, 0x07, 0x2a, 0x2a, 0x01, 0x1c,
9
+ 0x49, 0x74, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72,
10
+ 0x48, 0x65, 0x6c, 0x70, 0x65, 0x72, 0x01, 0x08,
11
+ 0x63, 0x61, 0x6c, 0x6c, 0x01, 0x1e, 0x53, 0x79,
12
+ 0x6d, 0x62, 0x6f, 0x6c, 0xb7, 0x69, 0x74, 0x65,
13
+ 0x72, 0x61, 0x74, 0x6f, 0x72, 0x01, 0x0a, 0x63,
14
+ 0x68, 0x65, 0x63, 0x6b, 0x01, 0x0a, 0x63, 0x6c,
15
+ 0x6f, 0x73, 0x65, 0x01, 0x10, 0x63, 0x6c, 0x6f,
16
+ 0x73, 0x65, 0x61, 0x6c, 0x6c, 0x01, 0x02, 0x76,
17
+ 0x01, 0x02, 0x73, 0x01, 0x08, 0x69, 0x74, 0x65,
18
+ 0x72, 0x01, 0x0c, 0x6d, 0x65, 0x74, 0x68, 0x6f,
19
+ 0x64, 0x01, 0x02, 0x65, 0x01, 0x0a, 0x69, 0x74,
20
+ 0x65, 0x72, 0x73, 0x01, 0x0a, 0x63, 0x6f, 0x75,
21
+ 0x6e, 0x74, 0x01, 0x04, 0x65, 0x78, 0x01, 0x02,
22
+ 0x69, 0x01, 0x12, 0x69, 0x74, 0x65, 0x72, 0x61,
23
+ 0x62, 0x6c, 0x65, 0x73, 0x01, 0x0e, 0x6f, 0x70,
24
+ 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x01, 0x08, 0x6d,
25
+ 0x6f, 0x64, 0x65, 0x01, 0x0e, 0x70, 0x61, 0x64,
26
+ 0x64, 0x69, 0x6e, 0x67, 0x01, 0x08, 0x70, 0x61,
27
+ 0x64, 0x73, 0x01, 0x0a, 0x6e, 0x65, 0x78, 0x74,
28
+ 0x73, 0x01, 0x16, 0x70, 0x61, 0x64, 0x64, 0x69,
29
+ 0x6e, 0x67, 0x69, 0x74, 0x65, 0x72, 0x01, 0x1a,
30
+ 0x69, 0x74, 0x65, 0x72, 0x61, 0x62, 0x6c, 0x65,
31
+ 0x73, 0x69, 0x74, 0x65, 0x72, 0x01, 0x08, 0x69,
32
+ 0x74, 0x65, 0x6d, 0x01, 0x02, 0x74, 0x01, 0x0a,
33
+ 0x73, 0x74, 0x61, 0x74, 0x65, 0x01, 0x0a, 0x61,
34
+ 0x6c, 0x69, 0x76, 0x65, 0x01, 0x0a, 0x64, 0x6f,
35
+ 0x6e, 0x65, 0x73, 0x01, 0x0e, 0x72, 0x65, 0x73,
36
+ 0x75, 0x6c, 0x74, 0x73, 0x01, 0x0c, 0x72, 0x65,
37
+ 0x73, 0x75, 0x6c, 0x74, 0x01, 0x1c, 0x72, 0x75,
38
+ 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x20, 0x7a, 0x69,
39
+ 0x70, 0x70, 0x65, 0x72, 0x01, 0x06, 0x62, 0x75,
40
+ 0x67, 0x01, 0x0e, 0x6c, 0x6f, 0x6e, 0x67, 0x65,
41
+ 0x73, 0x74, 0x01, 0x0c, 0x73, 0x74, 0x72, 0x69,
42
+ 0x63, 0x74, 0x01, 0x22, 0x6d, 0x69, 0x73, 0x6d,
43
+ 0x61, 0x74, 0x63, 0x68, 0x65, 0x64, 0x20, 0x69,
44
+ 0x6e, 0x70, 0x75, 0x74, 0x73, 0x01, 0x10, 0x73,
45
+ 0x68, 0x6f, 0x72, 0x74, 0x65, 0x73, 0x74, 0x01,
46
+ 0x16, 0x62, 0x75, 0x67, 0x3a, 0x20, 0x73, 0x74,
47
+ 0x61, 0x74, 0x65, 0x3d, 0x01, 0x1a, 0x62, 0x61,
48
+ 0x64, 0x20, 0x69, 0x74, 0x65, 0x72, 0x61, 0x62,
49
+ 0x6c, 0x65, 0x73, 0x01, 0x16, 0x62, 0x61, 0x64,
50
+ 0x20, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73,
51
+ 0x01, 0x10, 0x62, 0x61, 0x64, 0x20, 0x6d, 0x6f,
52
+ 0x64, 0x65, 0x01, 0x16, 0x62, 0x61, 0x64, 0x20,
53
+ 0x70, 0x61, 0x64, 0x64, 0x69, 0x6e, 0x67, 0x01,
54
+ 0x18, 0x62, 0x61, 0x64, 0x20, 0x69, 0x74, 0x65,
55
+ 0x72, 0x61, 0x74, 0x6f, 0x72, 0x0c, 0x00, 0x02,
56
+ 0x00, 0xa2, 0x01, 0x00, 0x01, 0x00, 0x01, 0x00,
57
+ 0x00, 0x01, 0x04, 0x01, 0xa4, 0x01, 0x00, 0x00,
58
+ 0x00, 0x0c, 0x43, 0x02, 0x00, 0x00, 0x05, 0x03,
59
+ 0x05, 0x01, 0x08, 0x00, 0x04, 0x0c, 0x08, 0xca,
60
+ 0x03, 0x00, 0x01, 0x40, 0x07, 0xa8, 0x03, 0x00,
61
+ 0x01, 0x40, 0x03, 0xa4, 0x03, 0x00, 0x01, 0x40,
62
+ 0x00, 0xcc, 0x03, 0x00, 0x01, 0x40, 0x01, 0xce,
63
+ 0x03, 0x00, 0x01, 0x40, 0x06, 0xd0, 0x03, 0x00,
64
+ 0x00, 0x40, 0x05, 0xd2, 0x03, 0x00, 0x01, 0x40,
65
+ 0x02, 0xd4, 0x03, 0x00, 0x02, 0x40, 0x04, 0x0c,
66
+ 0x43, 0x02, 0x00, 0xd0, 0x03, 0x02, 0x00, 0x02,
67
+ 0x03, 0x00, 0x01, 0x00, 0x17, 0x02, 0xd6, 0x03,
68
+ 0x00, 0x01, 0x00, 0xd8, 0x03, 0x00, 0x01, 0x00,
69
+ 0xa4, 0x03, 0x02, 0x01, 0xd1, 0x96, 0x04, 0x4a,
70
+ 0x00, 0x00, 0x00, 0xad, 0xea, 0x07, 0xd1, 0x07,
71
+ 0xae, 0xea, 0x02, 0x29, 0xdd, 0x11, 0xd2, 0x21,
72
+ 0x01, 0x00, 0x30, 0x0c, 0x43, 0x02, 0x00, 0xd2,
73
+ 0x03, 0x01, 0x02, 0x01, 0x04, 0x00, 0x01, 0x00,
74
+ 0x2e, 0x03, 0xda, 0x03, 0x00, 0x01, 0x00, 0xdc,
75
+ 0x03, 0x02, 0x00, 0x20, 0xde, 0x03, 0x05, 0x00,
76
+ 0x03, 0xcc, 0x03, 0x03, 0x01, 0x6b, 0x23, 0x00,
77
+ 0x00, 0x00, 0x60, 0x00, 0x00, 0xd1, 0x95, 0xea,
78
+ 0x04, 0x06, 0x6e, 0x28, 0xd1, 0x40, 0x06, 0x00,
79
+ 0x00, 0x00, 0xc9, 0x61, 0x00, 0x00, 0xea, 0x08,
80
+ 0xdd, 0xd1, 0x61, 0x00, 0x00, 0xf0, 0x0e, 0x0e,
81
+ 0x29, 0xca, 0x6b, 0x07, 0x00, 0x00, 0x00, 0xc6,
82
+ 0x6e, 0x28, 0x30, 0x0c, 0x43, 0x02, 0x00, 0xd4,
83
+ 0x03, 0x02, 0x04, 0x02, 0x03, 0x00, 0x01, 0x00,
84
+ 0x55, 0x06, 0xe0, 0x03, 0x00, 0x01, 0x00, 0xe2,
85
+ 0x03, 0x00, 0x01, 0x00, 0xe4, 0x03, 0x01, 0x00,
86
+ 0x20, 0xe6, 0x03, 0x02, 0x01, 0x20, 0xda, 0x03,
87
+ 0x03, 0x02, 0x20, 0xde, 0x03, 0x03, 0x03, 0x20,
88
+ 0xd2, 0x03, 0x01, 0x00, 0x60, 0x00, 0x00, 0x38,
89
+ 0x46, 0x00, 0x00, 0x00, 0xc9, 0x60, 0x01, 0x00,
90
+ 0xd2, 0xca, 0x61, 0x01, 0x00, 0x8f, 0x62, 0x01,
91
+ 0x00, 0xb4, 0xa7, 0xea, 0x39, 0x60, 0x03, 0x00,
92
+ 0x60, 0x02, 0x00, 0xd1, 0x61, 0x01, 0x00, 0x46,
93
+ 0xcb, 0xd1, 0x61, 0x01, 0x00, 0x1b, 0x11, 0xaf,
94
+ 0xeb, 0x04, 0x1b, 0x70, 0x1b, 0x1b, 0x38, 0x46,
95
+ 0x00, 0x00, 0x00, 0x1b, 0x70, 0x1b, 0x48, 0xdd,
96
+ 0x61, 0x02, 0x00, 0xef, 0xcc, 0x61, 0x00, 0x00,
97
+ 0x95, 0xea, 0xc8, 0x61, 0x03, 0x00, 0x11, 0x62,
98
+ 0x00, 0x00, 0x0e, 0xec, 0xbe, 0x61, 0x00, 0x00,
99
+ 0x28, 0x0c, 0x41, 0x02, 0x00, 0xa8, 0x02, 0x02,
100
+ 0x1a, 0x01, 0x05, 0x07, 0x08, 0x02, 0x8a, 0x06,
101
+ 0x1c, 0xe8, 0x03, 0x00, 0x01, 0x00, 0xea, 0x03,
102
+ 0x00, 0x01, 0x00, 0xe8, 0x03, 0x01, 0xff, 0xff,
103
+ 0xff, 0xff, 0x0f, 0x20, 0xea, 0x03, 0x01, 0x01,
104
+ 0x20, 0xec, 0x03, 0x02, 0x00, 0x60, 0x03, 0xee,
105
+ 0x03, 0x02, 0x03, 0x20, 0xf0, 0x03, 0x02, 0x04,
106
+ 0x60, 0x04, 0xe0, 0x03, 0x02, 0x05, 0x60, 0x02,
107
+ 0xf2, 0x03, 0x02, 0x06, 0x60, 0x05, 0xe2, 0x03,
108
+ 0x02, 0x07, 0x60, 0x01, 0xf4, 0x03, 0x02, 0x08,
109
+ 0x20, 0xf6, 0x03, 0x02, 0x09, 0x20, 0xd6, 0x01,
110
+ 0x09, 0x1a, 0x20, 0xf8, 0x03, 0x0b, 0x0b, 0x20,
111
+ 0xde, 0x03, 0x0d, 0x0f, 0x03, 0xda, 0x03, 0x0b,
112
+ 0x0c, 0x20, 0xdc, 0x03, 0x0b, 0x0e, 0x20, 0xd6,
113
+ 0x01, 0x13, 0x0b, 0x20, 0xe6, 0x03, 0x13, 0x10,
114
+ 0x20, 0xd4, 0x01, 0x13, 0x11, 0x20, 0x82, 0x01,
115
+ 0x15, 0x16, 0x20, 0xf8, 0x03, 0x16, 0x13, 0x20,
116
+ 0xde, 0x03, 0x17, 0x13, 0x03, 0xfa, 0x03, 0x13,
117
+ 0x12, 0x20, 0xe4, 0x03, 0x1c, 0x16, 0x20, 0xde,
118
+ 0x03, 0x1f, 0x1a, 0x03, 0xfc, 0x03, 0x02, 0x0a,
119
+ 0x60, 0x00, 0xfe, 0x03, 0x02, 0x19, 0x60, 0x06,
120
+ 0xa4, 0x03, 0x02, 0x01, 0xa8, 0x03, 0x01, 0x01,
121
+ 0xcc, 0x03, 0x03, 0x01, 0xd4, 0x03, 0x02, 0x00,
122
+ 0xd0, 0x03, 0x00, 0x00, 0xce, 0x03, 0x04, 0x01,
123
+ 0xd2, 0x03, 0x01, 0x00, 0xca, 0x03, 0x00, 0x01,
124
+ 0x0c, 0x42, 0x03, 0x00, 0x00, 0x00, 0x08, 0x00,
125
+ 0x05, 0x00, 0x0b, 0x00, 0xec, 0x04, 0x08, 0x80,
126
+ 0x04, 0x01, 0x00, 0x20, 0xd8, 0x01, 0x01, 0x01,
127
+ 0x20, 0x82, 0x04, 0x01, 0x02, 0x20, 0xe6, 0x03,
128
+ 0x03, 0x03, 0x20, 0xda, 0x03, 0x04, 0x04, 0x20,
129
+ 0x84, 0x04, 0x04, 0x05, 0x20, 0xde, 0x03, 0x09,
130
+ 0x06, 0x03, 0xe4, 0x03, 0x10, 0x06, 0x20, 0xfc,
131
+ 0x03, 0x18, 0x10, 0xa4, 0x03, 0x00, 0x02, 0xa8,
132
+ 0x03, 0x01, 0x02, 0xe2, 0x03, 0x07, 0x10, 0xe0,
133
+ 0x03, 0x05, 0x10, 0xec, 0x03, 0x02, 0x10, 0xf0,
134
+ 0x03, 0x04, 0x10, 0xcc, 0x03, 0x02, 0x02, 0xf2,
135
+ 0x03, 0x06, 0x10, 0xfe, 0x03, 0x19, 0x10, 0xd4,
136
+ 0x03, 0x03, 0x02, 0x60, 0x02, 0x00, 0x60, 0x01,
137
+ 0x00, 0x60, 0x00, 0x00, 0x64, 0x00, 0x00, 0x11,
138
+ 0xb4, 0xad, 0xeb, 0x06, 0x11, 0xb5, 0xad, 0xea,
139
+ 0x09, 0xb6, 0x11, 0x65, 0x00, 0x00, 0x0e, 0xec,
140
+ 0x33, 0x11, 0xb6, 0xad, 0xea, 0x0c, 0xde, 0x11,
141
+ 0x04, 0x03, 0x01, 0x00, 0x00, 0x21, 0x01, 0x00,
142
+ 0x30, 0x11, 0xb7, 0xad, 0xea, 0x13, 0x0b, 0x38,
143
+ 0x46, 0x00, 0x00, 0x00, 0x4b, 0x41, 0x00, 0x00,
144
+ 0x00, 0x0a, 0x4b, 0x6a, 0x00, 0x00, 0x00, 0x28,
145
+ 0xdf, 0x11, 0x04, 0x04, 0x01, 0x00, 0x00, 0x21,
146
+ 0x01, 0x00, 0x30, 0x0e, 0xb4, 0xc9, 0xb4, 0xca,
147
+ 0x26, 0x00, 0x00, 0xcb, 0x60, 0x03, 0x00, 0xb4,
148
+ 0xcc, 0x61, 0x03, 0x00, 0x64, 0x03, 0x00, 0xa5,
149
+ 0x68, 0xd1, 0x01, 0x00, 0x00, 0x60, 0x05, 0x00,
150
+ 0x60, 0x04, 0x00, 0x64, 0x04, 0x00, 0x61, 0x03,
151
+ 0x00, 0x46, 0xc2, 0x04, 0x61, 0x04, 0x00, 0x95,
152
+ 0xea, 0x34, 0x64, 0x05, 0x00, 0x04, 0x05, 0x01,
153
+ 0x00, 0x00, 0xae, 0xea, 0x0c, 0xdf, 0x11, 0x04,
154
+ 0x04, 0x01, 0x00, 0x00, 0x21, 0x01, 0x00, 0x30,
155
+ 0x61, 0x02, 0x00, 0x61, 0x03, 0x00, 0x1b, 0x11,
156
+ 0xaf, 0xeb, 0x04, 0x1b, 0x70, 0x1b, 0x1b, 0x64,
157
+ 0x06, 0x00, 0x61, 0x03, 0x00, 0x46, 0x1b, 0x70,
158
+ 0x1b, 0x48, 0xed, 0x7c, 0x01, 0x06, 0xc2, 0x05,
159
+ 0x6b, 0x1a, 0x00, 0x00, 0x00, 0x5d, 0x07, 0x00,
160
+ 0x61, 0x04, 0x00, 0x64, 0x08, 0x00, 0x61, 0x03,
161
+ 0x00, 0x46, 0xf0, 0x11, 0x62, 0x05, 0x00, 0x0e,
162
+ 0x0e, 0xec, 0x35, 0xc2, 0x06, 0x6b, 0x30, 0x00,
163
+ 0x00, 0x00, 0xb4, 0x11, 0x65, 0x09, 0x00, 0x0e,
164
+ 0x64, 0x04, 0x00, 0x61, 0x03, 0x00, 0x1b, 0x11,
165
+ 0xaf, 0xeb, 0x04, 0x1b, 0x70, 0x1b, 0x1b, 0x38,
166
+ 0x46, 0x00, 0x00, 0x00, 0x1b, 0x70, 0x1b, 0x48,
167
+ 0x5d, 0x0a, 0x00, 0x64, 0x04, 0x00, 0x64, 0x03,
168
+ 0x00, 0xf0, 0x0e, 0xc1, 0x06, 0x30, 0x30, 0x61,
169
+ 0x05, 0x00, 0x40, 0x6a, 0x00, 0x00, 0x00, 0x95,
170
+ 0xea, 0x4f, 0x64, 0x05, 0x00, 0x04, 0x06, 0x01,
171
+ 0x00, 0x00, 0xad, 0xea, 0x1e, 0x61, 0x00, 0x00,
172
+ 0xb4, 0xa7, 0xea, 0x17, 0x5d, 0x0a, 0x00, 0x64,
173
+ 0x04, 0x00, 0x64, 0x03, 0x00, 0xf0, 0x0e, 0xde,
174
+ 0x11, 0x04, 0x07, 0x01, 0x00, 0x00, 0x21, 0x01,
175
+ 0x00, 0x30, 0x61, 0x02, 0x00, 0x61, 0x03, 0x00,
176
+ 0x1b, 0x11, 0xaf, 0xeb, 0x04, 0x1b, 0x70, 0x1b,
177
+ 0x1b, 0x61, 0x05, 0x00, 0x40, 0x41, 0x00, 0x00,
178
+ 0x00, 0x1b, 0x70, 0x1b, 0x48, 0x61, 0x01, 0x00,
179
+ 0x90, 0x62, 0x01, 0x00, 0x0e, 0xed, 0xd1, 0x00,
180
+ 0x64, 0x09, 0x00, 0x8f, 0x65, 0x09, 0x00, 0x0e,
181
+ 0x61, 0x00, 0x00, 0x90, 0x62, 0x00, 0x00, 0x0e,
182
+ 0x64, 0x04, 0x00, 0x61, 0x03, 0x00, 0x1b, 0x11,
183
+ 0xaf, 0xeb, 0x04, 0x1b, 0x70, 0x1b, 0x1b, 0x38,
184
+ 0x46, 0x00, 0x00, 0x00, 0x1b, 0x70, 0x1b, 0x48,
185
+ 0x64, 0x05, 0x00, 0x60, 0x07, 0x00, 0x11, 0x04,
186
+ 0x08, 0x01, 0x00, 0x00, 0xad, 0xea, 0x2e, 0x5d,
187
+ 0x0a, 0x00, 0x64, 0x04, 0x00, 0x64, 0x03, 0x00,
188
+ 0xf0, 0xc2, 0x07, 0x61, 0x07, 0x00, 0xea, 0x05,
189
+ 0x61, 0x07, 0x00, 0x30, 0xb7, 0x11, 0x65, 0x00,
190
+ 0x00, 0x0e, 0x0b, 0x38, 0x46, 0x00, 0x00, 0x00,
191
+ 0x4b, 0x41, 0x00, 0x00, 0x00, 0x0a, 0x4b, 0x6a,
192
+ 0x00, 0x00, 0x00, 0x28, 0x11, 0x04, 0x05, 0x01,
193
+ 0x00, 0x00, 0xad, 0xea, 0x3c, 0x64, 0x09, 0x00,
194
+ 0xb5, 0xa5, 0xea, 0x19, 0xb7, 0x11, 0x65, 0x00,
195
+ 0x00, 0x0e, 0x0b, 0x38, 0x46, 0x00, 0x00, 0x00,
196
+ 0x4b, 0x41, 0x00, 0x00, 0x00, 0x0a, 0x4b, 0x6a,
197
+ 0x00, 0x00, 0x00, 0x28, 0x61, 0x02, 0x00, 0x61,
198
+ 0x03, 0x00, 0x1b, 0x11, 0xaf, 0xeb, 0x04, 0x1b,
199
+ 0x70, 0x1b, 0x1b, 0x64, 0x06, 0x00, 0x61, 0x03,
200
+ 0x00, 0x46, 0x1b, 0x70, 0x1b, 0x48, 0xec, 0x27,
201
+ 0x11, 0x04, 0x06, 0x01, 0x00, 0x00, 0xad, 0xea,
202
+ 0x1e, 0x61, 0x01, 0x00, 0xb4, 0xa7, 0xea, 0x17,
203
+ 0x5d, 0x0a, 0x00, 0x64, 0x04, 0x00, 0x64, 0x03,
204
+ 0x00, 0xf0, 0x0e, 0xde, 0x11, 0x04, 0x07, 0x01,
205
+ 0x00, 0x00, 0x21, 0x01, 0x00, 0x30, 0x0e, 0x61,
206
+ 0x03, 0x00, 0x90, 0x62, 0x03, 0x00, 0x0e, 0xed,
207
+ 0x29, 0xfe, 0x61, 0x01, 0x00, 0xb4, 0xad, 0xea,
208
+ 0x19, 0xb7, 0x11, 0x65, 0x00, 0x00, 0x0e, 0x0b,
209
+ 0x38, 0x46, 0x00, 0x00, 0x00, 0x4b, 0x41, 0x00,
210
+ 0x00, 0x00, 0x0a, 0x4b, 0x6a, 0x00, 0x00, 0x00,
211
+ 0x28, 0xb5, 0x11, 0x65, 0x00, 0x00, 0x0e, 0x0b,
212
+ 0x61, 0x02, 0x00, 0x4b, 0x41, 0x00, 0x00, 0x00,
213
+ 0x09, 0x4b, 0x6a, 0x00, 0x00, 0x00, 0x28, 0x0c,
214
+ 0x42, 0x03, 0x00, 0x00, 0x00, 0x01, 0x00, 0x06,
215
+ 0x00, 0x06, 0x00, 0x88, 0x01, 0x01, 0xe4, 0x03,
216
+ 0x01, 0x00, 0x20, 0xfc, 0x03, 0x18, 0x10, 0xa4,
217
+ 0x03, 0x00, 0x02, 0xa8, 0x03, 0x01, 0x02, 0xd4,
218
+ 0x03, 0x03, 0x02, 0xe0, 0x03, 0x05, 0x10, 0xe2,
219
+ 0x03, 0x07, 0x10, 0x60, 0x00, 0x00, 0x64, 0x00,
220
+ 0x00, 0x11, 0xb4, 0xad, 0xea, 0x09, 0xb7, 0x11,
221
+ 0x65, 0x00, 0x00, 0x0e, 0xec, 0x4b, 0x11, 0xb5,
222
+ 0xad, 0xea, 0x09, 0xb6, 0x11, 0x65, 0x00, 0x00,
223
+ 0x0e, 0xec, 0x3e, 0x11, 0xb6, 0xad, 0xea, 0x0c,
224
+ 0xde, 0x11, 0x04, 0x03, 0x01, 0x00, 0x00, 0x21,
225
+ 0x01, 0x00, 0x30, 0x11, 0xb7, 0xad, 0xea, 0x13,
226
+ 0x0b, 0x38, 0x46, 0x00, 0x00, 0x00, 0x4b, 0x41,
227
+ 0x00, 0x00, 0x00, 0x0a, 0x4b, 0x6a, 0x00, 0x00,
228
+ 0x00, 0x28, 0xdf, 0x11, 0x04, 0x09, 0x01, 0x00,
229
+ 0x00, 0x41, 0x5d, 0x00, 0x00, 0x00, 0x64, 0x00,
230
+ 0x00, 0x24, 0x01, 0x00, 0x21, 0x01, 0x00, 0x30,
231
+ 0x0e, 0xe0, 0x64, 0x04, 0x00, 0x64, 0x05, 0x00,
232
+ 0xf0, 0xc9, 0x61, 0x00, 0x00, 0xea, 0x05, 0x61,
233
+ 0x00, 0x00, 0x30, 0xb7, 0x11, 0x65, 0x00, 0x00,
234
+ 0x0e, 0x0b, 0x38, 0x46, 0x00, 0x00, 0x00, 0x4b,
235
+ 0x41, 0x00, 0x00, 0x00, 0x0a, 0x4b, 0x6a, 0x00,
236
+ 0x00, 0x00, 0x28, 0x60, 0x01, 0x00, 0x60, 0x00,
237
+ 0x00, 0xd1, 0xc9, 0xd2, 0x11, 0xf2, 0xea, 0x08,
238
+ 0x0e, 0x38, 0x46, 0x00, 0x00, 0x00, 0xda, 0xca,
239
+ 0x60, 0x19, 0x00, 0x60, 0x18, 0x00, 0x60, 0x09,
240
+ 0x00, 0x60, 0x08, 0x00, 0x60, 0x07, 0x00, 0x60,
241
+ 0x06, 0x00, 0x60, 0x05, 0x00, 0x60, 0x04, 0x00,
242
+ 0x60, 0x03, 0x00, 0x60, 0x02, 0x00, 0x5d, 0x04,
243
+ 0x00, 0xd1, 0x04, 0x0a, 0x01, 0x00, 0x00, 0xf0,
244
+ 0x0e, 0xd2, 0x38, 0x46, 0x00, 0x00, 0x00, 0xad,
245
+ 0xea, 0x06, 0x0c, 0x07, 0xd6, 0xec, 0x0c, 0x5d,
246
+ 0x04, 0x00, 0xd2, 0x04, 0x0b, 0x01, 0x00, 0x00,
247
+ 0xf0, 0x0e, 0xd2, 0x40, 0xf6, 0x00, 0x00, 0x00,
248
+ 0xcb, 0x61, 0x02, 0x00, 0x38, 0x46, 0x00, 0x00,
249
+ 0x00, 0xad, 0xea, 0x0b, 0x04, 0x08, 0x01, 0x00,
250
+ 0x00, 0x11, 0x62, 0x02, 0x00, 0x0e, 0x61, 0x02,
251
+ 0x00, 0x04, 0x06, 0x01, 0x00, 0x00, 0xad, 0x11,
252
+ 0xeb, 0x18, 0x0e, 0x61, 0x02, 0x00, 0x04, 0x05,
253
+ 0x01, 0x00, 0x00, 0xad, 0x11, 0xeb, 0x0b, 0x0e,
254
+ 0x61, 0x02, 0x00, 0x04, 0x08, 0x01, 0x00, 0x00,
255
+ 0xad, 0x95, 0xea, 0x0c, 0xdd, 0x11, 0x04, 0x0c,
256
+ 0x01, 0x00, 0x00, 0x21, 0x01, 0x00, 0x30, 0x38,
257
+ 0x46, 0x00, 0x00, 0x00, 0xcc, 0x61, 0x02, 0x00,
258
+ 0x04, 0x05, 0x01, 0x00, 0x00, 0xad, 0xea, 0x24,
259
+ 0xd2, 0x40, 0xf7, 0x00, 0x00, 0x00, 0x11, 0x62,
260
+ 0x03, 0x00, 0x0e, 0x61, 0x03, 0x00, 0x38, 0x46,
261
+ 0x00, 0x00, 0x00, 0xae, 0xea, 0x0e, 0x5d, 0x04,
262
+ 0x00, 0x61, 0x03, 0x00, 0x04, 0x0d, 0x01, 0x00,
263
+ 0x00, 0xf0, 0x0e, 0x26, 0x00, 0x00, 0xc2, 0x04,
264
+ 0x26, 0x00, 0x00, 0xc2, 0x05, 0x26, 0x00, 0x00,
265
+ 0xc2, 0x06, 0xb4, 0xc2, 0x07, 0x38, 0x46, 0x00,
266
+ 0x00, 0x00, 0xc2, 0x08, 0xd1, 0x5d, 0x05, 0x00,
267
+ 0x47, 0x24, 0x00, 0x00, 0xc2, 0x09, 0x6b, 0xcc,
268
+ 0x01, 0x00, 0x00, 0x60, 0x0a, 0x00, 0x61, 0x09,
269
+ 0x00, 0x40, 0x6b, 0x00, 0x00, 0x00, 0xc2, 0x0a,
270
+ 0x60, 0x0e, 0x00, 0x60, 0x0d, 0x00, 0x60, 0x0b,
271
+ 0x00, 0x06, 0xc2, 0x0b, 0x6b, 0x14, 0x00, 0x00,
272
+ 0x00, 0xdf, 0x61, 0x09, 0x00, 0x61, 0x0a, 0x00,
273
+ 0xf0, 0x11, 0x62, 0x0b, 0x00, 0x0e, 0x0e, 0xec,
274
+ 0x16, 0xc2, 0x0c, 0x6b, 0x11, 0x00, 0x00, 0x00,
275
+ 0x38, 0x46, 0x00, 0x00, 0x00, 0x11, 0x62, 0x09,
276
+ 0x00, 0x0e, 0xc1, 0x0c, 0x30, 0x30, 0x61, 0x0b,
277
+ 0x00, 0x40, 0x6a, 0x00, 0x00, 0x00, 0xeb, 0x6f,
278
+ 0x61, 0x0b, 0x00, 0x40, 0x41, 0x00, 0x00, 0x00,
279
+ 0xc2, 0x0d, 0x5d, 0x04, 0x00, 0x61, 0x0d, 0x00,
280
+ 0x04, 0x0e, 0x01, 0x00, 0x00, 0xf0, 0x0e, 0x61,
281
+ 0x0d, 0x00, 0x5d, 0x05, 0x00, 0x46, 0xc2, 0x0e,
282
+ 0x61, 0x0e, 0x00, 0xea, 0x0e, 0xdf, 0x61, 0x0d,
283
+ 0x00, 0x61, 0x0e, 0x00, 0xf0, 0x11, 0x62, 0x0d,
284
+ 0x00, 0x0e, 0x61, 0x05, 0x00, 0x61, 0x07, 0x00,
285
+ 0x1b, 0x11, 0xaf, 0xeb, 0x04, 0x1b, 0x70, 0x1b,
286
+ 0x1b, 0x61, 0x0d, 0x00, 0x1b, 0x70, 0x1b, 0x48,
287
+ 0x61, 0x06, 0x00, 0x61, 0x07, 0x00, 0x1b, 0x11,
288
+ 0xaf, 0xeb, 0x04, 0x1b, 0x70, 0x1b, 0x1b, 0x61,
289
+ 0x0d, 0x00, 0x40, 0x6b, 0x00, 0x00, 0x00, 0x1b,
290
+ 0x70, 0x1b, 0x48, 0x61, 0x07, 0x00, 0x90, 0x62,
291
+ 0x07, 0x00, 0x0e, 0xed, 0x54, 0xff, 0x38, 0x46,
292
+ 0x00, 0x00, 0x00, 0x11, 0x62, 0x09, 0x00, 0x0e,
293
+ 0x61, 0x03, 0x00, 0x68, 0xfc, 0x00, 0x00, 0x00,
294
+ 0x60, 0x15, 0x00, 0x60, 0x11, 0x00, 0x60, 0x10,
295
+ 0x00, 0x60, 0x0f, 0x00, 0x61, 0x03, 0x00, 0x5d,
296
+ 0x05, 0x00, 0x47, 0x24, 0x00, 0x00, 0x11, 0x62,
297
+ 0x08, 0x00, 0x0e, 0x61, 0x08, 0x00, 0x40, 0x6b,
298
+ 0x00, 0x00, 0x00, 0xc2, 0x0f, 0xb4, 0xc2, 0x10,
299
+ 0x09, 0xc2, 0x11, 0x61, 0x10, 0x00, 0x61, 0x07,
300
+ 0x00, 0xa5, 0xea, 0x70, 0x60, 0x12, 0x00, 0x06,
301
+ 0xc2, 0x12, 0x6b, 0x2e, 0x00, 0x00, 0x00, 0x60,
302
+ 0x13, 0x00, 0xdf, 0x61, 0x08, 0x00, 0x61, 0x0f,
303
+ 0x00, 0xf0, 0xc2, 0x13, 0x61, 0x13, 0x00, 0x40,
304
+ 0x6a, 0x00, 0x00, 0x00, 0x11, 0x62, 0x11, 0x00,
305
+ 0x0e, 0x61, 0x13, 0x00, 0x40, 0x41, 0x00, 0x00,
306
+ 0x00, 0x11, 0x62, 0x12, 0x00, 0x0e, 0x0e, 0xec,
307
+ 0x16, 0xc2, 0x14, 0x6b, 0x11, 0x00, 0x00, 0x00,
308
+ 0x38, 0x46, 0x00, 0x00, 0x00, 0x11, 0x62, 0x08,
309
+ 0x00, 0x0e, 0xc1, 0x14, 0x30, 0x30, 0x61, 0x11,
310
+ 0x00, 0xeb, 0x21, 0x61, 0x04, 0x00, 0x61, 0x10,
311
+ 0x00, 0x1b, 0x11, 0xaf, 0xeb, 0x04, 0x1b, 0x70,
312
+ 0x1b, 0x1b, 0x61, 0x12, 0x00, 0x1b, 0x70, 0x1b,
313
+ 0x48, 0x61, 0x10, 0x00, 0x90, 0x62, 0x10, 0x00,
314
+ 0x0e, 0xec, 0x89, 0x61, 0x08, 0x00, 0xc2, 0x15,
315
+ 0x38, 0x46, 0x00, 0x00, 0x00, 0x11, 0x62, 0x08,
316
+ 0x00, 0x0e, 0x61, 0x11, 0x00, 0x95, 0xea, 0x16,
317
+ 0x60, 0x16, 0x00, 0x5d, 0x06, 0x00, 0x61, 0x15,
318
+ 0x00, 0xef, 0xc2, 0x16, 0x61, 0x16, 0x00, 0xea,
319
+ 0x05, 0x61, 0x16, 0x00, 0x30, 0x61, 0x10, 0x00,
320
+ 0x61, 0x07, 0x00, 0xa5, 0xea, 0x23, 0x61, 0x04,
321
+ 0x00, 0x61, 0x10, 0x00, 0x1b, 0x11, 0xaf, 0xeb,
322
+ 0x04, 0x1b, 0x70, 0x1b, 0x1b, 0x38, 0x46, 0x00,
323
+ 0x00, 0x00, 0x1b, 0x70, 0x1b, 0x48, 0x61, 0x10,
324
+ 0x00, 0x90, 0x62, 0x10, 0x00, 0x0e, 0xec, 0xd6,
325
+ 0x0e, 0xec, 0x25, 0xc2, 0x17, 0x6b, 0x20, 0x00,
326
+ 0x00, 0x00, 0xe0, 0x61, 0x05, 0x00, 0x61, 0x07,
327
+ 0x00, 0xf0, 0x0e, 0x5d, 0x06, 0x00, 0x61, 0x09,
328
+ 0x00, 0xef, 0x0e, 0x5d, 0x06, 0x00, 0x61, 0x08,
329
+ 0x00, 0xef, 0x0e, 0xc1, 0x17, 0x30, 0x30, 0xb4,
330
+ 0xc2, 0x18, 0x61, 0x07, 0x00, 0xc2, 0x19, 0x0b,
331
+ 0x5d, 0x07, 0x00, 0x4e, 0xbf, 0x00, 0x53, 0x6b,
332
+ 0x00, 0x00, 0x00, 0x04, 0xbf, 0x01, 0x53, 0x06,
333
+ 0x00, 0x00, 0x00, 0x04, 0x28, 0xbf, 0x00, 0xc9,
334
+ 0xbf, 0x01, 0xca, 0xbf, 0x02, 0xcb, 0xbf, 0x03,
335
+ 0x28, 0xbf, 0x00, 0xcd, 0x28,
336
+ };
337
+
@@ -0,0 +1,210 @@
1
+ ;(function(IteratorHelper, InternalError, TypeError, call, Symbol·iterator) {
2
+ function check(v, s) {
3
+ if (typeof v === "object" && v !== null) return
4
+ throw new TypeError(s)
5
+ }
6
+ function close(iter) {
7
+ try {
8
+ if (!iter) return
9
+ let method = iter.return
10
+ if (method) call(iter, method)
11
+ } catch (e) {
12
+ return e
13
+ }
14
+ }
15
+ function closeall(iters, count) {
16
+ let ex = undefined
17
+ for (let i = count; i-- > 0;) {
18
+ let iter = iters[i]
19
+ iters[i] = undefined
20
+ let e = close(iter)
21
+ if (!ex) ex = e
22
+ }
23
+ return ex
24
+ }
25
+ return function zip(iterables, options = undefined) {
26
+ check(iterables, "bad iterables")
27
+ if (options === undefined) options = {__proto__: null}
28
+ else check(options, "bad options")
29
+ let mode = options.mode
30
+ if (mode === undefined) mode = "shortest"
31
+ if (!(mode === "strict" || mode === "longest" || mode === "shortest"))
32
+ throw new TypeError("bad mode")
33
+ let padding = undefined
34
+ if (mode === "longest") {
35
+ padding = options.padding
36
+ if (padding !== undefined) check(padding, "bad padding")
37
+ }
38
+ let pads = []
39
+ let iters = []
40
+ let nexts = []
41
+ let count = 0
42
+ let paddingiter = undefined
43
+ let iterablesiter = iterables[Symbol·iterator]()
44
+ try {
45
+ let next = iterablesiter.next
46
+ for (;;) {
47
+ let item
48
+ try {
49
+ item = call(iterablesiter, next)
50
+ } catch (e) {
51
+ // *don't* close |iterablesiter| when .next() throws
52
+ iterablesiter = undefined
53
+ throw e
54
+ }
55
+ // order of .done and .value property
56
+ // access is observable and matters
57
+ if (item.done) break
58
+ let iter = item.value
59
+ check(iter, "bad iterator")
60
+ let method = iter[Symbol·iterator]
61
+ if (method) iter = call(iter, method) // iterable -> iterator
62
+ iters[count] = iter
63
+ nexts[count] = iter.next
64
+ count++
65
+ }
66
+ iterablesiter = undefined
67
+ if (padding) {
68
+ paddingiter = padding[Symbol·iterator]()
69
+ let next = paddingiter.next
70
+ let i = 0
71
+ let done = false
72
+ for (; i < count; i++) {
73
+ let value
74
+ try {
75
+ let item = call(paddingiter, next)
76
+ // order of .done and .value property
77
+ // access is observable and matters
78
+ done = item.done
79
+ value = item.value
80
+ } catch (e) {
81
+ // *don't* close |paddingiter| when .next()
82
+ // or .done or .value property access throws
83
+ paddingiter = undefined
84
+ throw e
85
+ }
86
+ if (done) break
87
+ pads[i] = value
88
+ }
89
+ // have to be careful to not double-close on exception
90
+ // exceptions from .return() should still bubble up though
91
+ let t = paddingiter
92
+ paddingiter = undefined
93
+ if (!done) {
94
+ let ex = close(t)
95
+ if (ex) throw ex
96
+ }
97
+ for (; i < count; i++) pads[i] = undefined
98
+ }
99
+ } catch (e) {
100
+ closeall(iters, count)
101
+ close(iterablesiter)
102
+ close(paddingiter)
103
+ throw e
104
+ }
105
+ // note: uses plain numbers for |state|, using
106
+ // constants grows the bytecode by about 200 bytes
107
+ let state = 0 // new, suspend, execute, complete
108
+ let alive = count
109
+ return {
110
+ __proto__: IteratorHelper,
111
+ // TODO(bnoordhuis) shows up as "at next (<null>:0:1)" in stack
112
+ // traces when iterator throws, should be "at next (native)"
113
+ next() {
114
+ switch (state) {
115
+ case 0: // new
116
+ case 1: // suspend
117
+ state = 2 // execute
118
+ break
119
+ case 2: // execute
120
+ throw new TypeError("running zipper")
121
+ case 3: // complete
122
+ return {value:undefined, done:true}
123
+ default:
124
+ throw new InternalError("bug")
125
+ }
126
+ let dones = 0
127
+ let values = 0
128
+ let results = []
129
+ for (let i = 0; i < count; i++) {
130
+ let iter = iters[i]
131
+ if (!iter) {
132
+ if (mode !== "longest") throw new InternalError("bug")
133
+ results[i] = pads[i]
134
+ continue
135
+ }
136
+ let result
137
+ try {
138
+ result = call(iter, nexts[i])
139
+ } catch (e) {
140
+ alive = 0
141
+ iters[i] = undefined
142
+ closeall(iters, count)
143
+ throw e
144
+ }
145
+ // order of .done and .value property
146
+ // access is observable and matters
147
+ if (!result.done) {
148
+ if (mode === "strict" && dones > 0) {
149
+ closeall(iters, count)
150
+ throw new TypeError("mismatched inputs")
151
+ }
152
+ results[i] = result.value
153
+ values++
154
+ continue
155
+ }
156
+ alive--
157
+ dones++
158
+ iters[i] = undefined
159
+ switch (mode) {
160
+ case "shortest":
161
+ let ex = closeall(iters, count)
162
+ if (ex) throw ex
163
+ state = 3 // complete
164
+ return {value:undefined, done:true}
165
+ case "longest":
166
+ if (alive < 1) {
167
+ state = 3 // complete
168
+ return {value:undefined, done:true}
169
+ }
170
+ results[i] = pads[i]
171
+ break
172
+ case "strict":
173
+ if (values > 0) {
174
+ closeall(iters, count)
175
+ throw new TypeError("mismatched inputs")
176
+ }
177
+ break
178
+ }
179
+ }
180
+ if (values === 0) {
181
+ state = 3 // complete
182
+ return {value:undefined, done:true}
183
+ }
184
+ state = 1 // suspend
185
+ return {value:results, done:false}
186
+ },
187
+ return() {
188
+ switch (state) {
189
+ case 0: // new
190
+ state = 3 // complete
191
+ break
192
+ case 1: // suspend
193
+ state = 2 // execute
194
+ break
195
+ case 2: // execute
196
+ throw new TypeError("running zipper")
197
+ case 3: // complete
198
+ return {value:undefined, done:true}
199
+ default:
200
+ throw new InternalError(`bug: state=${state}`)
201
+ }
202
+ // TODO skip when already closed because of earlier exception
203
+ let ex = closeall(iters, count)
204
+ if (ex) throw ex
205
+ state = 3 // complete
206
+ return {value:undefined, done:true}
207
+ },
208
+ }
209
+ }
210
+ })
@@ -0,0 +1,17 @@
1
+ // note: file is not actually compiled, only checked for C syntax errors
2
+ #include "quickjs.h"
3
+
4
+ int main(void)
5
+ {
6
+ JSRuntime *rt = JS_NewRuntime();
7
+ JSContext *ctx = JS_NewContext(rt);
8
+ JS_FreeValue(ctx, JS_NAN);
9
+ JS_FreeValue(ctx, JS_UNDEFINED);
10
+ JS_FreeValue(ctx, JS_NewFloat64(ctx, 42));
11
+ // not a legal way of using JS_MKPTR but this is here
12
+ // to have the compiler syntax-check its definition
13
+ JS_FreeValue(ctx, JS_MKPTR(JS_TAG_UNINITIALIZED, 0));
14
+ JS_FreeContext(ctx);
15
+ JS_FreeRuntime(rt);
16
+ return 0;
17
+ }