@anov/gis 1.7.6 → 1.8.4

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 (214) hide show
  1. package/.claude/settings.local.json +37 -0
  2. package/CHANGELOG.md +82 -0
  3. package/README.md +338 -127
  4. package/dist/index.css +1 -1
  5. package/dist/index.js +18012 -58
  6. package/dist/resources/Assets/approximateTerrainHeights.json +1 -1
  7. package/dist/resources/ThirdParty/Workers/package.json +1 -0
  8. package/dist/resources/ThirdParty/Workers/zip-web-worker.js +1 -0
  9. package/dist/resources/ThirdParty/draco_decoder.wasm +0 -0
  10. package/dist/resources/ThirdParty/google-earth-dbroot-parser.js +1 -1
  11. package/dist/resources/ThirdParty/wasm_splats_bg.wasm +0 -0
  12. package/dist/resources/ThirdParty/zip-module.wasm +0 -0
  13. package/dist/resources/Widgets/Animation/Animation.css +127 -1
  14. package/dist/resources/Widgets/Animation/lighter.css +70 -1
  15. package/dist/resources/Widgets/BaseLayerPicker/BaseLayerPicker.css +108 -1
  16. package/dist/resources/Widgets/BaseLayerPicker/lighter.css +22 -1
  17. package/dist/resources/Widgets/Cesium3DTilesInspector/Cesium3DTilesInspector.css +102 -1
  18. package/dist/resources/Widgets/CesiumInspector/CesiumInspector.css +113 -1
  19. package/dist/resources/Widgets/CesiumWidget/CesiumWidget.css +119 -1
  20. package/dist/resources/Widgets/CesiumWidget/lighter.css +14 -1
  21. package/dist/resources/Widgets/FullscreenButton/FullscreenButton.css +8 -1
  22. package/dist/resources/Widgets/Geocoder/Geocoder.css +70 -1
  23. package/dist/resources/Widgets/Geocoder/lighter.css +17 -1
  24. package/dist/resources/Widgets/I3SBuildingSceneLayerExplorer/I3SBuildingSceneLayerExplorer.css +27 -0
  25. package/dist/resources/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldHillshade.png +0 -0
  26. package/dist/resources/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldImagery.png +0 -0
  27. package/dist/resources/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldOcean.png +0 -0
  28. package/dist/resources/Widgets/Images/ImageryProviders/azureAerial.png +0 -0
  29. package/dist/resources/Widgets/Images/ImageryProviders/azureRoads.png +0 -0
  30. package/dist/resources/Widgets/Images/ImageryProviders/googleContour.png +0 -0
  31. package/dist/resources/Widgets/Images/ImageryProviders/googleRoadmap.png +0 -0
  32. package/dist/resources/Widgets/Images/ImageryProviders/googleSatellite.png +0 -0
  33. package/dist/resources/Widgets/Images/ImageryProviders/googleSatelliteLabels.png +0 -0
  34. package/dist/resources/Widgets/Images/ImageryProviders/stadiaAlidadeSmooth.png +0 -0
  35. package/dist/resources/Widgets/Images/ImageryProviders/stadiaAlidadeSmoothDark.png +0 -0
  36. package/dist/resources/Widgets/InfoBox/InfoBox.css +92 -1
  37. package/dist/resources/Widgets/InfoBox/InfoBoxDescription.css +178 -1
  38. package/dist/resources/Widgets/NavigationHelpButton/NavigationHelpButton.css +93 -1
  39. package/dist/resources/Widgets/NavigationHelpButton/lighter.css +38 -1
  40. package/dist/resources/Widgets/PerformanceWatchdog/PerformanceWatchdog.css +15 -1
  41. package/dist/resources/Widgets/ProjectionPicker/ProjectionPicker.css +38 -1
  42. package/dist/resources/Widgets/SceneModePicker/SceneModePicker.css +56 -1
  43. package/dist/resources/Widgets/SelectionIndicator/SelectionIndicator.css +20 -1
  44. package/dist/resources/Widgets/Timeline/Timeline.css +103 -1
  45. package/dist/resources/Widgets/Timeline/lighter.css +23 -1
  46. package/dist/resources/Widgets/VRButton/VRButton.css +8 -1
  47. package/dist/resources/Widgets/Viewer/Viewer.css +107 -1
  48. package/dist/resources/Widgets/VoxelInspector/VoxelInspector.css +16 -0
  49. package/dist/resources/Widgets/lighter.css +237 -1
  50. package/dist/resources/Widgets/lighterShared.css +46 -1
  51. package/dist/resources/Widgets/shared.css +103 -1
  52. package/dist/resources/Widgets/widgets.css +1342 -1
  53. package/dist/resources/Workers/chunk-2AIOP76V.js +25 -0
  54. package/dist/resources/Workers/chunk-37ETYCYM.js +25 -0
  55. package/dist/resources/Workers/chunk-3E7FIXV7.js +25 -0
  56. package/dist/resources/Workers/chunk-3N6OW3OY.js +25 -0
  57. package/dist/resources/Workers/{ArcType-de5d8777.js → chunk-3VUCSHGU.js} +2 -2
  58. package/dist/resources/Workers/chunk-4KY4VMEH.js +25 -0
  59. package/dist/resources/Workers/chunk-4WQ4VT5S.js +25 -0
  60. package/dist/resources/Workers/chunk-5AAMOBJK.js +25 -0
  61. package/dist/resources/Workers/chunk-5DGDPBQU.js +25 -0
  62. package/dist/resources/Workers/chunk-5VFNV3LW.js +25 -0
  63. package/dist/resources/Workers/chunk-5Z36UAB7.js +25 -0
  64. package/dist/resources/Workers/chunk-6AEO73KW.js +25 -0
  65. package/dist/resources/Workers/chunk-6DLS2UKD.js +25 -0
  66. package/dist/resources/Workers/{GeometryAttributes-734a3446.js → chunk-6EINM7EY.js} +2 -2
  67. package/dist/resources/Workers/chunk-6W2XFGWI.js +25 -0
  68. package/dist/resources/Workers/chunk-7GCQCPLT.js +25 -0
  69. package/dist/resources/Workers/chunk-7TN3TOVQ.js +25 -0
  70. package/dist/resources/Workers/chunk-A4I25VN7.js +25 -0
  71. package/dist/resources/Workers/{GeometryOffsetAttribute-59b14f45.js → chunk-AJH5KBOO.js} +2 -2
  72. package/dist/resources/Workers/chunk-AKELQO2L.js +25 -0
  73. package/dist/resources/Workers/chunk-ALIHIWSS.js +25 -0
  74. package/dist/resources/Workers/chunk-ATKJRN2G.js +25 -0
  75. package/dist/resources/Workers/chunk-BDWA46XV.js +25 -0
  76. package/dist/resources/Workers/chunk-BKIYVF74.js +25 -0
  77. package/dist/resources/Workers/chunk-BPABSUDY.js +25 -0
  78. package/dist/resources/Workers/chunk-D3TVNJ6W.js +25 -0
  79. package/dist/resources/Workers/chunk-DM7KUSL2.js +25 -0
  80. package/dist/resources/Workers/chunk-E7EKLP3B.js +25 -0
  81. package/dist/resources/Workers/{GeometryInstance-4bfcfe78.js → chunk-G2QPRBZU.js} +2 -2
  82. package/dist/resources/Workers/chunk-G3GDHHWO.js +25 -0
  83. package/dist/resources/Workers/chunk-G72JFEXW.js +25 -0
  84. package/dist/resources/Workers/chunk-IAE6APK2.js +25 -0
  85. package/dist/resources/Workers/chunk-IEITL4VO.js +25 -0
  86. package/dist/resources/Workers/chunk-LHBFSFJE.js +25 -0
  87. package/dist/resources/Workers/chunk-LN2UT4R3.js +25 -0
  88. package/dist/resources/Workers/chunk-LNJEJFV5.js +66 -0
  89. package/dist/resources/Workers/{defaultValue-97284df2.js → chunk-ML6MR2RA.js} +2 -2
  90. package/dist/resources/Workers/chunk-MOHWP7VV.js +25 -0
  91. package/dist/resources/Workers/chunk-NZBME2JK.js +25 -0
  92. package/dist/resources/Workers/chunk-P5EFSOUF.js +25 -0
  93. package/dist/resources/Workers/chunk-P7N43FDO.js +25 -0
  94. package/dist/resources/Workers/{combine-d11b1f00.js → chunk-PEDE2P3Q.js} +2 -2
  95. package/dist/resources/Workers/chunk-PSIOCLX7.js +25 -0
  96. package/dist/resources/Workers/chunk-PYMQNHFO.js +25 -0
  97. package/dist/resources/Workers/chunk-QJTXFT4R.js +25 -0
  98. package/dist/resources/Workers/chunk-QNPYEODC.js +25 -0
  99. package/dist/resources/Workers/chunk-QS7V5G6Y.js +25 -0
  100. package/dist/resources/Workers/chunk-RDX4QSUS.js +25 -0
  101. package/dist/resources/Workers/chunk-RESOCDYZ.js +25 -0
  102. package/dist/resources/Workers/chunk-SRA5MBUT.js +25 -0
  103. package/dist/resources/Workers/chunk-TCOMWBL2.js +25 -0
  104. package/dist/resources/Workers/chunk-UA7PAMQQ.js +25 -0
  105. package/dist/resources/Workers/chunk-W5OEMTMB.js +25 -0
  106. package/dist/resources/Workers/chunk-WGIRJIIK.js +25 -0
  107. package/dist/resources/Workers/{CylinderGeometryLibrary-24ad1484.js → chunk-XRJOFXJF.js} +2 -2
  108. package/dist/resources/Workers/chunk-YP4SXJYZ.js +25 -0
  109. package/dist/resources/Workers/chunk-Z7Q4J7AE.js +25 -0
  110. package/dist/resources/Workers/combineGeometry.js +2 -2
  111. package/dist/resources/Workers/createBoxGeometry.js +2 -2
  112. package/dist/resources/Workers/createBoxOutlineGeometry.js +2 -2
  113. package/dist/resources/Workers/createCircleGeometry.js +2 -2
  114. package/dist/resources/Workers/createCircleOutlineGeometry.js +2 -2
  115. package/dist/resources/Workers/createCoplanarPolygonGeometry.js +2 -2
  116. package/dist/resources/Workers/createCoplanarPolygonOutlineGeometry.js +2 -2
  117. package/dist/resources/Workers/createCorridorGeometry.js +2 -2
  118. package/dist/resources/Workers/createCorridorOutlineGeometry.js +2 -2
  119. package/dist/resources/Workers/createCylinderGeometry.js +2 -2
  120. package/dist/resources/Workers/createCylinderOutlineGeometry.js +2 -2
  121. package/dist/resources/Workers/createEllipseGeometry.js +2 -2
  122. package/dist/resources/Workers/createEllipseOutlineGeometry.js +2 -2
  123. package/dist/resources/Workers/createEllipsoidGeometry.js +2 -2
  124. package/dist/resources/Workers/createEllipsoidOutlineGeometry.js +2 -2
  125. package/dist/resources/Workers/createFrustumGeometry.js +2 -2
  126. package/dist/resources/Workers/createFrustumOutlineGeometry.js +2 -2
  127. package/dist/resources/Workers/createGeometry.js +2 -2
  128. package/dist/resources/Workers/createGroundPolylineGeometry.js +2 -2
  129. package/dist/resources/Workers/createPlaneGeometry.js +2 -2
  130. package/dist/resources/Workers/createPlaneOutlineGeometry.js +2 -2
  131. package/dist/resources/Workers/createPolygonGeometry.js +2 -2
  132. package/dist/resources/Workers/createPolygonOutlineGeometry.js +2 -2
  133. package/dist/resources/Workers/createPolylineGeometry.js +2 -2
  134. package/dist/resources/Workers/createPolylineVolumeGeometry.js +2 -2
  135. package/dist/resources/Workers/createPolylineVolumeOutlineGeometry.js +2 -2
  136. package/dist/resources/Workers/createRectangleGeometry.js +2 -2
  137. package/dist/resources/Workers/createRectangleOutlineGeometry.js +2 -2
  138. package/dist/resources/Workers/createSimplePolylineGeometry.js +2 -2
  139. package/dist/resources/Workers/createSphereGeometry.js +2 -2
  140. package/dist/resources/Workers/createSphereOutlineGeometry.js +2 -2
  141. package/dist/resources/Workers/createTaskProcessorWorker.js +2 -2
  142. package/dist/resources/Workers/createVectorTileClampedPolylines.js +2 -2
  143. package/dist/resources/Workers/createVectorTileGeometries.js +2 -2
  144. package/dist/resources/Workers/createVectorTilePoints.js +2 -2
  145. package/dist/resources/Workers/createVectorTilePolygons.js +2 -2
  146. package/dist/resources/Workers/createVectorTilePolylines.js +2 -2
  147. package/dist/resources/Workers/createVerticesFromCesium3DTilesTerrain.js +25 -0
  148. package/dist/resources/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +2 -2
  149. package/dist/resources/Workers/createVerticesFromHeightmap.js +2 -4
  150. package/dist/resources/Workers/createVerticesFromQuantizedTerrainMesh.js +2 -2
  151. package/dist/resources/Workers/createWallGeometry.js +2 -2
  152. package/dist/resources/Workers/createWallOutlineGeometry.js +2 -2
  153. package/dist/resources/Workers/decodeDraco.js +2 -2
  154. package/dist/resources/Workers/decodeGoogleEarthEnterprisePacket.js +2 -2
  155. package/dist/resources/Workers/decodeI3S.js +25 -0
  156. package/dist/resources/Workers/gaussianSplatSorter.js +25 -0
  157. package/dist/resources/Workers/{_commonjsHelpers-3aae1032-65601a27.js → gaussianSplatTextureGenerator.js} +2 -2
  158. package/dist/resources/Workers/incrementallyBuildTerrainPicker.js +25 -0
  159. package/dist/resources/Workers/transcodeKTX2.js +2 -2
  160. package/dist/resources/Workers/transferTypedArrayTest.js +25 -1
  161. package/dist/resources/Workers/upsampleQuantizedTerrainMesh.js +2 -2
  162. package/dist/resources/Workers/upsampleVerticesFromCesium3DTilesTerrain.js +25 -0
  163. package/dist/resources/static/js/viewerCesiumNavigationMixin.js +1 -1
  164. package/package.json +13 -13
  165. package/scripts/release.js +323 -0
  166. package/dist/resources/ThirdParty/Workers/basis_transcoder.js +0 -1
  167. package/dist/resources/ThirdParty/Workers/draco_decoder_nodejs.js +0 -1
  168. package/dist/resources/ThirdParty/Workers/pako_deflate.min.js +0 -1
  169. package/dist/resources/ThirdParty/Workers/pako_inflate.min.js +0 -1
  170. package/dist/resources/ThirdParty/Workers/z-worker-pako.js +0 -1
  171. package/dist/resources/Widgets/Images/ImageryProviders/esriNationalGeographic.png +0 -0
  172. package/dist/resources/Widgets/Images/ImageryProviders/esriWorldImagery.png +0 -0
  173. package/dist/resources/Widgets/Images/ImageryProviders/esriWorldStreetMap.png +0 -0
  174. package/dist/resources/Workers/AttributeCompression-5744d52e.js +0 -25
  175. package/dist/resources/Workers/AxisAlignedBoundingBox-b1c095aa.js +0 -25
  176. package/dist/resources/Workers/BoundingRectangle-2b0ebbdd.js +0 -25
  177. package/dist/resources/Workers/BoxGeometry-acd0c697.js +0 -25
  178. package/dist/resources/Workers/Color-c7fd1307.js +0 -25
  179. package/dist/resources/Workers/ComponentDatatype-e7fbe225.js +0 -25
  180. package/dist/resources/Workers/CoplanarPolygonGeometryLibrary-edaba606.js +0 -25
  181. package/dist/resources/Workers/CorridorGeometryLibrary-ab3e6481.js +0 -25
  182. package/dist/resources/Workers/CylinderGeometry-679e50b4.js +0 -25
  183. package/dist/resources/Workers/EllipseGeometry-e6f948bb.js +0 -25
  184. package/dist/resources/Workers/EllipseGeometryLibrary-0adcaeed.js +0 -25
  185. package/dist/resources/Workers/EllipseOutlineGeometry-418492dc.js +0 -25
  186. package/dist/resources/Workers/EllipsoidGeodesic-ed8a0e40.js +0 -25
  187. package/dist/resources/Workers/EllipsoidGeometry-539fb9e2.js +0 -25
  188. package/dist/resources/Workers/EllipsoidOutlineGeometry-6c13760b.js +0 -25
  189. package/dist/resources/Workers/EllipsoidRhumbLine-60f14314.js +0 -25
  190. package/dist/resources/Workers/EllipsoidTangentPlane-7ae496b2.js +0 -25
  191. package/dist/resources/Workers/EncodedCartesian3-a9a8a281.js +0 -25
  192. package/dist/resources/Workers/FrustumGeometry-be9b9578.js +0 -25
  193. package/dist/resources/Workers/GeometryAttribute-fd1d7e90.js +0 -25
  194. package/dist/resources/Workers/GeometryPipeline-a847e31f.js +0 -25
  195. package/dist/resources/Workers/IndexDatatype-65271ba3.js +0 -25
  196. package/dist/resources/Workers/IntersectionTests-33ace2d6.js +0 -25
  197. package/dist/resources/Workers/Matrix2-73789715.js +0 -25
  198. package/dist/resources/Workers/OrientedBoundingBox-ee3011f6.js +0 -25
  199. package/dist/resources/Workers/Plane-e916220d.js +0 -25
  200. package/dist/resources/Workers/PolygonGeometryLibrary-0f0c78d4.js +0 -25
  201. package/dist/resources/Workers/PolygonPipeline-00dc0c6e.js +0 -25
  202. package/dist/resources/Workers/PolylinePipeline-ebd42f23.js +0 -25
  203. package/dist/resources/Workers/PolylineVolumeGeometryLibrary-a4b92b4e.js +0 -25
  204. package/dist/resources/Workers/PrimitivePipeline-42d69f96.js +0 -25
  205. package/dist/resources/Workers/RectangleGeometryLibrary-cff60d30.js +0 -25
  206. package/dist/resources/Workers/RuntimeError-4f8ec8a2.js +0 -25
  207. package/dist/resources/Workers/TerrainEncoding-080f16eb.js +0 -25
  208. package/dist/resources/Workers/Transforms-d3d3b2a9.js +0 -66
  209. package/dist/resources/Workers/VertexFormat-9886cb81.js +0 -25
  210. package/dist/resources/Workers/WallGeometryLibrary-27f90b78.js +0 -25
  211. package/dist/resources/Workers/WebGLConstants-6da700a2.js +0 -25
  212. package/dist/resources/Workers/WebMercatorProjection-04ef6bc3.js +0 -25
  213. package/dist/resources/Workers/arrayRemoveDuplicates-6f91355d.js +0 -25
  214. package/dist/resources/Workers/cesiumWorkerBootstrapper.js +0 -6
@@ -0,0 +1,323 @@
1
+ /**
2
+ * 一键发版脚本:递增版本号(默认 patch)+ 自动从 git log 生成 CHANGELOG 段落
3
+ *
4
+ * 用法:
5
+ * node scripts/release.js # patch (默认)
6
+ * node scripts/release.js --dry-run # 只预览,不写文件
7
+ * node scripts/release.js --minor # 手动指定 minor 递增
8
+ * node scripts/release.js --major # 手动指定 major 递增
9
+ * node scripts/release.js --force # 跳过 CHANGELOG 滞后检查,直接发版
10
+ * node scripts/release.js --backfill # 回填 CHANGELOG 缺失的版本条目
11
+ * node scripts/release.js --backfill --dry-run
12
+ *
13
+ * 自动变更来源:
14
+ * 1. 优先:找到最近一次把 version 设为当前版本的 commit(上次发版点),取之后的 commits
15
+ * 2. 回退:用最近一次修改 CHANGELOG.md 的 commit 作为锚点
16
+ *
17
+ * 行为:
18
+ * - 按 semver 递增 package.json 的 version(默认 patch)
19
+ * - 检测 CHANGELOG 滞后于 package.json 时,自动报错并提示 --backfill
20
+ * - 在 CHANGELOG.md 顶部插入新版本段落,内容为提交列表(短 hash + subject)
21
+ * - backfill 模式:扫描 git 历史里所有版本号,补齐 CHANGELOG 缺失的条目
22
+ * - 不做任何 git 操作 —— commit / tag 由用户手动完成
23
+ */
24
+ const fs = require('fs');
25
+ const path = require('path');
26
+ const { spawnSync } = require('child_process');
27
+
28
+ const ROOT = path.join(__dirname, '..');
29
+ const PKG_PATH = path.join(ROOT, 'package.json');
30
+ const CHANGELOG_PATH = path.join(ROOT, 'CHANGELOG.md');
31
+ const LINK_URL = 'https://172.16.222.31:8866/';
32
+
33
+ // ---- semver & 工具函数 ---------------------------------------------------
34
+
35
+ function bumpVersion(current, level) {
36
+ const [major, minor, patch] = current.split('.').map(Number);
37
+ if (level === 'major') return `${major + 1}.0.0`;
38
+ if (level === 'minor') return `${major}.${minor + 1}.0`;
39
+ return `${major}.${minor}.${patch + 1}`;
40
+ }
41
+
42
+ function formatDate(d = new Date()) {
43
+ const pad = (n) => String(n).padStart(2, '0');
44
+ return `${d.getFullYear()}-${pad(d.getMonth() + 1)}-${pad(d.getDate())}`;
45
+ }
46
+
47
+ function buildEntry(version, date, body) {
48
+ return `## [${version}] - ${date}\n\n${body}\n\n[${version}]: ${LINK_URL}\n\n`;
49
+ }
50
+
51
+ // ---- git 查询 ------------------------------------------------------------
52
+
53
+ function git(args) {
54
+ const result = spawnSync('git', ['log', ...args], { encoding: 'utf8' });
55
+ return result.status === 0 ? result.stdout : '';
56
+ }
57
+
58
+ function gitRaw(args) {
59
+ return spawnSync('git', args, { encoding: 'utf8' });
60
+ }
61
+
62
+ // 找到最近一次把 version 字段设为 currentVersion 的 commit
63
+ function findLastBumpCommit(currentVersion) {
64
+ const escaped = currentVersion.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
65
+ const out = git(['--oneline', '-G', `"version":\\s*"${escaped}"`, '--', 'package.json']);
66
+ const lines = out.split('\n').filter(Boolean);
67
+ if (!lines.length) return null;
68
+ const last = lines[lines.length - 1];
69
+ return last.split(/\s+/)[0];
70
+ }
71
+
72
+ // 回退方案:最近一次修改 CHANGELOG.md 的 commit
73
+ function findLastChangelogCommit() {
74
+ const hash = git(['-1', '--pretty=format:%H', '--', 'CHANGELOG.md']);
75
+ return hash || null;
76
+ }
77
+
78
+ function getCommitsSince(sinceHash, untilHash = 'HEAD') {
79
+ const out = git([`${sinceHash}..${untilHash}`, '--pretty=format:%h %s']);
80
+ return out ? out.split('\n').filter(Boolean) : [];
81
+ }
82
+
83
+ // 找到 git 历史里所有稳定版本号变更的锚点(按时间正序,自动去重)
84
+ function findAllBumpAnchors() {
85
+ const out = git(['--reverse', '--pretty=format:%H', '--', 'package.json']);
86
+ const hashes = out.split('\n').filter(Boolean);
87
+
88
+ const firstSeen = new Map(); // version -> 首次出现的 hash(用于排序)
89
+ const lastSeen = new Map(); // version -> 最后出现的 hash(用作锚点)
90
+
91
+ for (const hash of hashes) {
92
+ const result = gitRaw(['show', `${hash}:package.json`]);
93
+ if (result.status !== 0) continue;
94
+ try {
95
+ const pkg = JSON.parse(result.stdout);
96
+ const v = pkg.version;
97
+ // 只考虑稳定版本 (1.2.3),跳过 0.0.0 / 1.2.3-beta.0 等
98
+ if (!v || !/^\d+\.\d+\.\d+$/.test(v)) continue;
99
+ if (!firstSeen.has(v)) firstSeen.set(v, hash);
100
+ lastSeen.set(v, hash); // 后出现会覆盖,保留最后一次(实际发版点)
101
+ } catch {}
102
+ }
103
+
104
+ // 按 Map 插入顺序返回(就是时间正序)
105
+ const anchors = [];
106
+ for (const [version] of firstSeen) {
107
+ anchors.push({ hash: lastSeen.get(version), version });
108
+ }
109
+ return anchors;
110
+ }
111
+
112
+ function compareSemver(a, b) {
113
+ const [aM, am, ap] = a.split('.').map(Number);
114
+ const [bM, bm, bp] = b.split('.').map(Number);
115
+ return (aM - bM) || (am - bm) || (ap - bp);
116
+ }
117
+
118
+ function getCommitDate(hash) {
119
+ const out = git(['-1', '--pretty=format:%ai', hash]);
120
+ const date = out.split(' ')[0];
121
+ return date || formatDate();
122
+ }
123
+
124
+ // ---- 文本处理 ------------------------------------------------------------
125
+
126
+ function parseChangelogVersions(content) {
127
+ const set = new Set();
128
+ const re = /##\s+\[(\d+\.\d+\.\d+)\]/g;
129
+ let m;
130
+ while ((m = re.exec(content)) !== null) set.add(m[1]);
131
+ return set;
132
+ }
133
+
134
+ function formatCommitsAsList(commits) {
135
+ if (!commits.length) return '无变更';
136
+ return commits
137
+ .map((line) => {
138
+ const idx = line.indexOf(' ');
139
+ if (idx === -1) return `- ${line}`;
140
+ return `- ${line.slice(idx + 1)} (\`${line.slice(0, idx)}\`)`;
141
+ })
142
+ .join('\n');
143
+ }
144
+
145
+ // 取 prev 到 current 之间的 commits —— 中间严格区间 + 加上 currentHash 自身
146
+ // (发版 commit message 通常就是本次的变更说明)
147
+ function getCommitsForVersion(prevHash, currentHash) {
148
+ // 中间:严格在 prev 之后、current 之前。用 currentHash^ 排除 currentHash 本身
149
+ const middle = prevHash ? getCommitsSince(prevHash, `${currentHash}^`) : [];
150
+
151
+ // 把当前版本的发版 commit 自身放到最前
152
+ const subject = git(['-1', '--pretty=format:%s', currentHash]).trim();
153
+ const bumpLine = `${currentHash.slice(0, 7)} ${subject}`;
154
+
155
+ return [bumpLine, ...middle];
156
+ }
157
+
158
+ // ---- 模式 1:正常发版 -----------------------------------------------------
159
+
160
+ function runRelease(level, dryRun, force) {
161
+ const pkg = JSON.parse(fs.readFileSync(PKG_PATH, 'utf8'));
162
+ const oldVersion = pkg.version;
163
+ const newVersion = bumpVersion(oldVersion, level);
164
+
165
+ // 检测 CHANGELOG 是否滞后于 package.json(典型场景:先发版后补文档)
166
+ if (!force) {
167
+ const changelog = fs.readFileSync(CHANGELOG_PATH, 'utf8');
168
+ const existing = parseChangelogVersions(changelog);
169
+ if (!existing.has(oldVersion)) {
170
+ const allAnchors = findAllBumpAnchors();
171
+ const sortedListed = [...existing].sort(compareSemver);
172
+ const maxListed = sortedListed[sortedListed.length - 1];
173
+ const missing = maxListed
174
+ ? allAnchors.filter((a) => compareSemver(a.version, maxListed) > 0)
175
+ : allAnchors;
176
+
177
+ console.error(`✗ CHANGELOG 滞后于 package.json`);
178
+ console.error(`✗ package.json 当前版本: ${oldVersion}`);
179
+ console.error(`✗ CHANGELOG 最新版本: ${maxListed || '(无)'}`);
180
+ if (missing.length) {
181
+ console.error(`✗ 缺失版本: ${missing.map((m) => m.version).join(', ')}`);
182
+ }
183
+ console.error('');
184
+ console.error('请先跑补齐命令:');
185
+ console.error(' npm run release -- --backfill');
186
+ console.error('');
187
+ console.error('或跳过检查直接发版(忽略历史缺失):');
188
+ console.error(' npm run release -- --force');
189
+ process.exit(1);
190
+ }
191
+ }
192
+
193
+ const bumpAnchor = findLastBumpCommit(oldVersion);
194
+ const changelogAnchor = bumpAnchor ? null : findLastChangelogCommit();
195
+ const anchor = bumpAnchor || changelogAnchor;
196
+ const anchorSource = bumpAnchor ? `上次 bump ${oldVersion}` : '上次修改 CHANGELOG.md';
197
+
198
+ if (!anchor) {
199
+ console.error(`✗ 未找到 ${oldVersion} 之后的发版锚点`);
200
+ console.error(' 请确认在 git 仓库中执行');
201
+ process.exit(1);
202
+ }
203
+
204
+ const commits = getCommitsSince(anchor);
205
+ if (commits.length === 0) {
206
+ console.error(`✗ 自 ${anchorSource}(${anchor.slice(0, 7)})以来无新提交,无需发版`);
207
+ console.error(' 请先 commit 一些改动再发版');
208
+ process.exit(1);
209
+ }
210
+
211
+ const description = formatCommitsAsList(commits);
212
+ const entry = buildEntry(newVersion, formatDate(), description);
213
+
214
+ console.log(`✓ package.json: ${oldVersion} -> ${newVersion}`);
215
+ console.log(`✓ 锚点: ${anchorSource} (${anchor.slice(0, 7)})`);
216
+ console.log(`✓ 收集到 ${commits.length} 条提交`);
217
+ console.log('');
218
+ console.log('--- 即将写入 CHANGELOG.md 的段落 ---');
219
+ console.log(entry);
220
+ console.log('-----------------------------------');
221
+
222
+ if (dryRun) {
223
+ console.log('[dry-run] 未修改任何文件');
224
+ return;
225
+ }
226
+
227
+ pkg.version = newVersion;
228
+ fs.writeFileSync(PKG_PATH, JSON.stringify(pkg, null, 4) + '\n', 'utf8');
229
+
230
+ let changelog = fs.readFileSync(CHANGELOG_PATH, 'utf8');
231
+ const firstSectionIdx = changelog.indexOf('\n## [');
232
+ if (firstSectionIdx === -1) {
233
+ changelog = changelog.replace(/\s+$/, '') + '\n\n' + entry;
234
+ } else {
235
+ changelog = changelog.slice(0, firstSectionIdx + 1) + entry + changelog.slice(firstSectionIdx + 1);
236
+ }
237
+ fs.writeFileSync(CHANGELOG_PATH, changelog, 'utf8');
238
+
239
+ console.log('待手动提交:');
240
+ console.log(' git add package.json CHANGELOG.md');
241
+ console.log(` git commit -m "release: 发布 v${newVersion}"`);
242
+ }
243
+
244
+ // ---- 模式 2:回填历史缺失版本 ---------------------------------------------
245
+
246
+ function runBackfill(dryRun) {
247
+ const changelog = fs.readFileSync(CHANGELOG_PATH, 'utf8');
248
+ const existing = parseChangelogVersions(changelog);
249
+
250
+ const anchors = findAllBumpAnchors();
251
+ if (anchors.length === 0) {
252
+ console.error('✗ 未找到任何稳定版本 bump 记录(需在 git 仓库中执行)');
253
+ process.exit(1);
254
+ }
255
+
256
+ // 仅补齐 CHANGELOG 已有最新版本之后的缺失版本(避免从 1.0.x 一路回填)
257
+ const sortedListed = [...existing].sort(compareSemver);
258
+ const maxListed = sortedListed[sortedListed.length - 1];
259
+ const missing = maxListed
260
+ ? anchors.filter((a) => compareSemver(a.version, maxListed) > 0)
261
+ : anchors;
262
+
263
+ if (missing.length === 0) {
264
+ console.log(`✓ CHANGELOG 已是最新,所有 >= ${maxListed} 的版本都已记录`);
265
+ return;
266
+ }
267
+
268
+ console.log(`✓ 发现 ${missing.length} 个缺失版本(${maxListed} 之后): ${missing.map((m) => m.version).join(', ')}`);
269
+ console.log('');
270
+
271
+ const newEntries = [];
272
+ for (const m of missing) {
273
+ const idx = anchors.indexOf(m);
274
+ const prevHash = idx === 0 ? null : anchors[idx - 1].hash;
275
+ const commits = getCommitsForVersion(prevHash, m.hash);
276
+
277
+ const body = commits.length ? formatCommitsAsList(commits) : '无变更';
278
+ const date = getCommitDate(m.hash);
279
+ newEntries.push(buildEntry(m.version, date, body));
280
+
281
+ console.log(`--- [${m.version}] - ${date} ---`);
282
+ console.log(body);
283
+ console.log('');
284
+ }
285
+
286
+ if (dryRun) {
287
+ console.log('[dry-run] 未修改任何文件');
288
+ return;
289
+ }
290
+
291
+ let updated = changelog;
292
+ const firstSectionIdx = updated.indexOf('\n## [');
293
+ const combined = newEntries.join('');
294
+ if (firstSectionIdx === -1) {
295
+ updated = updated.replace(/\s+$/, '') + '\n\n' + combined;
296
+ } else {
297
+ updated = updated.slice(0, firstSectionIdx + 1) + combined + updated.slice(firstSectionIdx + 1);
298
+ }
299
+ fs.writeFileSync(CHANGELOG_PATH, updated, 'utf8');
300
+
301
+ const versions = missing.map((m) => m.version).join(' / ');
302
+ console.log(`✓ CHANGELOG.md 已补充 ${missing.length} 个版本段落`);
303
+ console.log('');
304
+ console.log('待手动提交:');
305
+ console.log(' git add CHANGELOG.md');
306
+ console.log(` git commit -m "docs: 补充 ${versions} 的 CHANGELOG 条目"`);
307
+ }
308
+
309
+ // ---- 入口 ----------------------------------------------------------------
310
+
311
+ const args = process.argv.slice(2);
312
+ const dryRun = args.includes('--dry-run');
313
+ const backfill = args.includes('--backfill');
314
+ const force = args.includes('--force');
315
+ let level = 'patch';
316
+ if (args.includes('--minor')) level = 'minor';
317
+ else if (args.includes('--major')) level = 'major';
318
+
319
+ if (backfill) {
320
+ runBackfill(dryRun);
321
+ } else {
322
+ runRelease(level, dryRun, force);
323
+ }
@@ -1 +0,0 @@
1
- var BASIS=function(){var r="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0;return"undefined"!=typeof __filename&&(r=r||__filename),function(e){var t,n,o=void 0!==(e=e||{})?e:{};o.ready=new Promise((function(r,e){t=r,readyPromiseRejectza=e}));var i,a={};for(i in o)o.hasOwnProperty(i)&&(a[i]=o[i]);var u,s,c=[],f=!1,l=!1;f="object"==typeof window,l="function"==typeof importScripts,u="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,s=!f&&!u&&!l;var p,d,h,v,y,m="";u?(m=l?require("path").dirname(m)+"/":__dirname+"/",p=function(r,e){return v||(v=require("fs")),y||(y=require("path")),r=y.normalize(r),v.readFileSync(r,e?null:"utf8")},h=function(r){var e=p(r,!0);return e.buffer||(e=new Uint8Array(e)),$(e.buffer),e},process.argv.length>1&&process.argv[1].replace(/\\/g,"/"),c=process.argv.slice(2),process.on("uncaughtException",(function(r){if(!(r instanceof Ne))throw r})),process.on("unhandledRejection",er),o.inspect=function(){return"[Emscripten Module object]"}):s?("undefined"!=typeof read&&(p=function(r){return read(r)}),h=function(r){var e;return"function"==typeof readbuffer?new Uint8Array(readbuffer(r)):($("object"==typeof(e=read(r,"binary"))),e)},"undefined"!=typeof scriptArgs?c=scriptArgs:void 0!==arguments&&(c=arguments),"undefined"!=typeof print&&("undefined"==typeof console&&(console={}),console.log=print,console.warn=console.error="undefined"!=typeof printErr?printErr:print)):(f||l)&&(l?m=self.location.href:"undefined"!=typeof document&&document.currentScript&&(m=document.currentScript.src),r&&(m=r),m=0!==m.indexOf("blob:")?m.substr(0,m.lastIndexOf("/")+1):"",p=function(r){var e=new XMLHttpRequest;return e.open("GET",r,!1),e.send(null),e.responseText},l&&(h=function(r){var e=new XMLHttpRequest;return e.open("GET",r,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)}),d=function(r,e,t){var n=new XMLHttpRequest;n.open("GET",r,!0),n.responseType="arraybuffer",n.onload=function(){200==n.status||0==n.status&&n.response?e(n.response):t()},n.onerror=t,n.send(null)});var g=o.print||console.log.bind(console),w=o.printErr||console.warn.bind(console);for(i in a)a.hasOwnProperty(i)&&(o[i]=a[i]);a=null,o.arguments&&(c=o.arguments),o.thisProgram&&o.thisProgram,o.quit&&o.quit;var T,b;o.wasmBinary&&(T=o.wasmBinary),o.noExitRuntime,"object"!=typeof WebAssembly&&er("no native wasm support detected");var C=!1;function $(r,e){r||er("Assertion failed: "+e)}var P="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function A(r,e,t){for(var n=e+t,o=e;r[o]&&!(o>=n);)++o;if(o-e>16&&r.subarray&&P)return P.decode(r.subarray(e,o));for(var i="";e<o;){var a=r[e++];if(128&a){var u=63&r[e++];if(192!=(224&a)){var s=63&r[e++];if((a=224==(240&a)?(15&a)<<12|u<<6|s:(7&a)<<18|u<<12|s<<6|63&r[e++])<65536)i+=String.fromCharCode(a);else{var c=a-65536;i+=String.fromCharCode(55296|c>>10,56320|1023&c)}}else i+=String.fromCharCode((31&a)<<6|u)}else i+=String.fromCharCode(a)}return i}function _(r,e){return r?A(E,r,e):""}var S,W,E,F,k,O,j,R,I,x="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0;function D(r,e){for(var t=r,n=t>>1,o=n+e/2;!(n>=o)&&k[n];)++n;if((t=n<<1)-r>32&&x)return x.decode(E.subarray(r,t));for(var i="",a=0;!(a>=e/2);++a){var u=F[r+2*a>>1];if(0==u)break;i+=String.fromCharCode(u)}return i}function U(r,e,t){if(void 0===t&&(t=2147483647),t<2)return 0;for(var n=e,o=(t-=2)<2*r.length?t/2:r.length,i=0;i<o;++i){var a=r.charCodeAt(i);F[e>>1]=a,e+=2}return F[e>>1]=0,e-n}function B(r){return 2*r.length}function M(r,e){for(var t=0,n="";!(t>=e/4);){var o=O[r+4*t>>2];if(0==o)break;if(++t,o>=65536){var i=o-65536;n+=String.fromCharCode(55296|i>>10,56320|1023&i)}else n+=String.fromCharCode(o)}return n}function V(r,e,t){if(void 0===t&&(t=2147483647),t<4)return 0;for(var n=e,o=n+t-4,i=0;i<r.length;++i){var a=r.charCodeAt(i);if(a>=55296&&a<=57343&&(a=65536+((1023&a)<<10)|1023&r.charCodeAt(++i)),O[e>>2]=a,(e+=4)+4>o)break}return O[e>>2]=0,e-n}function H(r){for(var e=0,t=0;t<r.length;++t){var n=r.charCodeAt(t);n>=55296&&n<=57343&&++t,e+=4}return e}function q(r,e){return r%e>0&&(r+=e-r%e),r}function z(r){S=r,o.HEAP8=W=new Int8Array(r),o.HEAP16=F=new Int16Array(r),o.HEAP32=O=new Int32Array(r),o.HEAPU8=E=new Uint8Array(r),o.HEAPU16=k=new Uint16Array(r),o.HEAPU32=j=new Uint32Array(r),o.HEAPF32=R=new Float32Array(r),o.HEAPF64=I=new Float64Array(r)}o.INITIAL_MEMORY;var N,G=[],L=[],X=[],J=[];function K(r){G.unshift(r)}function Q(r){J.unshift(r)}var Y=0,Z=null,rr=null;function er(r){o.onAbort&&o.onAbort(r),w(r+=""),C=!0,r="abort("+r+"). Build with -s ASSERTIONS=1 for more info.";var e=new WebAssembly.RuntimeError(r);throw n(e),e}function tr(r,e){return String.prototype.startsWith?r.startsWith(e):0===r.indexOf(e)}o.preloadedImages={},o.preloadedAudios={};var nr="data:application/octet-stream;base64,";function or(r){return tr(r,nr)}var ir="file://";function ar(r){return tr(r,ir)}var ur="basis_transcoder.wasm";function sr(r){try{if(r==ur&&T)return new Uint8Array(T);if(h)return h(r);throw"both async and sync fetching of the wasm failed"}catch(r){er(r)}}function cr(r){for(;r.length>0;){var e=r.shift();if("function"!=typeof e){var t=e.func;"number"==typeof t?void 0===e.arg?N.get(t)():N.get(t)(e.arg):t(void 0===e.arg?null:e.arg)}else e(o)}}or(ur)||(ur=function(r){return o.locateFile?o.locateFile(r,m):m+r}(ur));var fr={};function lr(r){for(;r.length;){var e=r.pop();r.pop()(e)}}function pr(r){return this.fromWireType(j[r>>2])}var dr={},hr={},vr={},yr=48,mr=57;function gr(r){if(void 0===r)return"_unknown";var e=(r=r.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return e>=yr&&e<=mr?"_"+r:r}function wr(r,e){return r=gr(r),new Function("body","return function "+r+'() {\n "use strict"; return body.apply(this, arguments);\n};\n')(e)}function Tr(r,e){var t=wr(e,(function(r){this.name=e,this.message=r;var t=new Error(r).stack;void 0!==t&&(this.stack=this.toString()+"\n"+t.replace(/^Error(:[^\n]*)?\n/,""))}));return t.prototype=Object.create(r.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return void 0===this.message?this.name:this.name+": "+this.message},t}var br=void 0;function Cr(r){throw new br(r)}function $r(r,e,t){function n(e){var n=t(e);n.length!==r.length&&Cr("Mismatched type converter count");for(var o=0;o<r.length;++o)Er(r[o],n[o])}r.forEach((function(r){vr[r]=e}));var o=new Array(e.length),i=[],a=0;e.forEach((function(r,e){hr.hasOwnProperty(r)?o[e]=hr[r]:(i.push(r),dr.hasOwnProperty(r)||(dr[r]=[]),dr[r].push((function(){o[e]=hr[r],++a===i.length&&n(o)})))})),0===i.length&&n(o)}function Pr(r){switch(r){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError("Unknown type size: "+r)}}var Ar=void 0;function _r(r){for(var e="",t=r;E[t];)e+=Ar[E[t++]];return e}var Sr=void 0;function Wr(r){throw new Sr(r)}function Er(r,e,t){if(t=t||{},!("argPackAdvance"in e))throw new TypeError("registerType registeredInstance requires argPackAdvance");var n=e.name;if(r||Wr('type "'+n+'" must have a positive integer typeid pointer'),hr.hasOwnProperty(r)){if(t.ignoreDuplicateRegistrations)return;Wr("Cannot register type '"+n+"' twice")}if(hr[r]=e,delete vr[r],dr.hasOwnProperty(r)){var o=dr[r];delete dr[r],o.forEach((function(r){r()}))}}function Fr(r){if(!(this instanceof zr))return!1;if(!(r instanceof zr))return!1;for(var e=this.$$.ptrType.registeredClass,t=this.$$.ptr,n=r.$$.ptrType.registeredClass,o=r.$$.ptr;e.baseClass;)t=e.upcast(t),e=e.baseClass;for(;n.baseClass;)o=n.upcast(o),n=n.baseClass;return e===n&&t===o}function kr(r){return{count:r.count,deleteScheduled:r.deleteScheduled,preservePointerOnDelete:r.preservePointerOnDelete,ptr:r.ptr,ptrType:r.ptrType,smartPtr:r.smartPtr,smartPtrType:r.smartPtrType}}function Or(r){Wr(r.$$.ptrType.registeredClass.name+" instance already deleted")}var jr=!1;function Rr(r){}function Ir(r){r.count.value-=1,0===r.count.value&&function(r){r.smartPtr?r.smartPtrType.rawDestructor(r.smartPtr):r.ptrType.registeredClass.rawDestructor(r.ptr)}(r)}function xr(r){return"undefined"==typeof FinalizationGroup?(xr=function(r){return r},r):(jr=new FinalizationGroup((function(r){for(var e=r.next();!e.done;e=r.next()){var t=e.value;t.ptr?Ir(t):console.warn("object already deleted: "+t.ptr)}})),xr=function(r){return jr.register(r,r.$$,r.$$),r},Rr=function(r){jr.unregister(r.$$)},xr(r))}function Dr(){if(this.$$.ptr||Or(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var r=xr(Object.create(Object.getPrototypeOf(this),{$$:{value:kr(this.$$)}}));return r.$$.count.value+=1,r.$$.deleteScheduled=!1,r}function Ur(){this.$$.ptr||Or(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&Wr("Object already scheduled for deletion"),Rr(this),Ir(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)}function Br(){return!this.$$.ptr}var Mr=void 0,Vr=[];function Hr(){for(;Vr.length;){var r=Vr.pop();r.$$.deleteScheduled=!1,r.delete()}}function qr(){return this.$$.ptr||Or(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&Wr("Object already scheduled for deletion"),Vr.push(this),1===Vr.length&&Mr&&Mr(Hr),this.$$.deleteScheduled=!0,this}function zr(){}var Nr={};function Gr(r,e,t){if(void 0===r[e].overloadTable){var n=r[e];r[e]=function(){return r[e].overloadTable.hasOwnProperty(arguments.length)||Wr("Function '"+t+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+r[e].overloadTable+")!"),r[e].overloadTable[arguments.length].apply(this,arguments)},r[e].overloadTable=[],r[e].overloadTable[n.argCount]=n}}function Lr(r,e,t){o.hasOwnProperty(r)?((void 0===t||void 0!==o[r].overloadTable&&void 0!==o[r].overloadTable[t])&&Wr("Cannot register public name '"+r+"' twice"),Gr(o,r,r),o.hasOwnProperty(t)&&Wr("Cannot register multiple overloads of a function with the same number of arguments ("+t+")!"),o[r].overloadTable[t]=e):(o[r]=e,void 0!==t&&(o[r].numArguments=t))}function Xr(r,e,t,n,o,i,a,u){this.name=r,this.constructor=e,this.instancePrototype=t,this.rawDestructor=n,this.baseClass=o,this.getActualType=i,this.upcast=a,this.downcast=u,this.pureVirtualFunctions=[]}function Jr(r,e,t){for(;e!==t;)e.upcast||Wr("Expected null or instance of "+t.name+", got an instance of "+e.name),r=e.upcast(r),e=e.baseClass;return r}function Kr(r,e){if(null===e)return this.isReference&&Wr("null is not a valid "+this.name),0;e.$$||Wr('Cannot pass "'+We(e)+'" as a '+this.name),e.$$.ptr||Wr("Cannot pass deleted object as a pointer of type "+this.name);var t=e.$$.ptrType.registeredClass;return Jr(e.$$.ptr,t,this.registeredClass)}function Qr(r,e){var t;if(null===e)return this.isReference&&Wr("null is not a valid "+this.name),this.isSmartPointer?(t=this.rawConstructor(),null!==r&&r.push(this.rawDestructor,t),t):0;e.$$||Wr('Cannot pass "'+We(e)+'" as a '+this.name),e.$$.ptr||Wr("Cannot pass deleted object as a pointer of type "+this.name),!this.isConst&&e.$$.ptrType.isConst&&Wr("Cannot convert argument of type "+(e.$$.smartPtrType?e.$$.smartPtrType.name:e.$$.ptrType.name)+" to parameter type "+this.name);var n=e.$$.ptrType.registeredClass;if(t=Jr(e.$$.ptr,n,this.registeredClass),this.isSmartPointer)switch(void 0===e.$$.smartPtr&&Wr("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:e.$$.smartPtrType===this?t=e.$$.smartPtr:Wr("Cannot convert argument of type "+(e.$$.smartPtrType?e.$$.smartPtrType.name:e.$$.ptrType.name)+" to parameter type "+this.name);break;case 1:t=e.$$.smartPtr;break;case 2:if(e.$$.smartPtrType===this)t=e.$$.smartPtr;else{var o=e.clone();t=this.rawShare(t,Ae((function(){o.delete()}))),null!==r&&r.push(this.rawDestructor,t)}break;default:Wr("Unsupporting sharing policy")}return t}function Yr(r,e){if(null===e)return this.isReference&&Wr("null is not a valid "+this.name),0;e.$$||Wr('Cannot pass "'+We(e)+'" as a '+this.name),e.$$.ptr||Wr("Cannot pass deleted object as a pointer of type "+this.name),e.$$.ptrType.isConst&&Wr("Cannot convert argument of type "+e.$$.ptrType.name+" to parameter type "+this.name);var t=e.$$.ptrType.registeredClass;return Jr(e.$$.ptr,t,this.registeredClass)}function Zr(r){return this.rawGetPointee&&(r=this.rawGetPointee(r)),r}function re(r){this.rawDestructor&&this.rawDestructor(r)}function ee(r){null!==r&&r.delete()}function te(r,e,t){if(e===t)return r;if(void 0===t.baseClass)return null;var n=te(r,e,t.baseClass);return null===n?null:t.downcast(n)}function ne(){return Object.keys(ae).length}function oe(){var r=[];for(var e in ae)ae.hasOwnProperty(e)&&r.push(ae[e]);return r}function ie(r){Mr=r,Vr.length&&Mr&&Mr(Hr)}var ae={};function ue(r,e){return e=function(r,e){for(void 0===e&&Wr("ptr should not be undefined");r.baseClass;)e=r.upcast(e),r=r.baseClass;return e}(r,e),ae[e]}function se(r,e){return e.ptrType&&e.ptr||Cr("makeClassHandle requires ptr and ptrType"),!!e.smartPtrType!=!!e.smartPtr&&Cr("Both smartPtrType and smartPtr must be specified"),e.count={value:1},xr(Object.create(r,{$$:{value:e}}))}function ce(r){var e=this.getPointee(r);if(!e)return this.destructor(r),null;var t=ue(this.registeredClass,e);if(void 0!==t){if(0===t.$$.count.value)return t.$$.ptr=e,t.$$.smartPtr=r,t.clone();var n=t.clone();return this.destructor(r),n}function o(){return this.isSmartPointer?se(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:e,smartPtrType:this,smartPtr:r}):se(this.registeredClass.instancePrototype,{ptrType:this,ptr:r})}var i,a=this.registeredClass.getActualType(e),u=Nr[a];if(!u)return o.call(this);i=this.isConst?u.constPointerType:u.pointerType;var s=te(e,this.registeredClass,i.registeredClass);return null===s?o.call(this):this.isSmartPointer?se(i.registeredClass.instancePrototype,{ptrType:i,ptr:s,smartPtrType:this,smartPtr:r}):se(i.registeredClass.instancePrototype,{ptrType:i,ptr:s})}function fe(r,e,t,n,o,i,a,u,s,c,f){this.name=r,this.registeredClass=e,this.isReference=t,this.isConst=n,this.isSmartPointer=o,this.pointeeType=i,this.sharingPolicy=a,this.rawGetPointee=u,this.rawConstructor=s,this.rawShare=c,this.rawDestructor=f,o||void 0!==e.baseClass?this.toWireType=Qr:n?(this.toWireType=Kr,this.destructorFunction=null):(this.toWireType=Yr,this.destructorFunction=null)}function le(r,e,t){o.hasOwnProperty(r)||Cr("Replacing nonexistant public symbol"),void 0!==o[r].overloadTable&&void 0!==t?o[r].overloadTable[t]=e:(o[r]=e,o[r].argCount=t)}function pe(r,e,t){return-1!=r.indexOf("j")?function(r,e,t){var n=o["dynCall_"+r];return t&&t.length?n.apply(null,[e].concat(t)):n.call(null,e)}(r,e,t):N.get(e).apply(null,t)}function de(r,e){var t=-1!=(r=_r(r)).indexOf("j")?function(r,e){var t=[];return function(){t.length=arguments.length;for(var n=0;n<arguments.length;n++)t[n]=arguments[n];return pe(r,e,t)}}(r,e):N.get(e);return"function"!=typeof t&&Wr("unknown function pointer with signature "+r+": "+e),t}var he=void 0;function ve(r){var e=ze(r),t=_r(e);return qe(e),t}function ye(r,e){var t=[],n={};throw e.forEach((function r(e){n[e]||hr[e]||(vr[e]?vr[e].forEach(r):(t.push(e),n[e]=!0))})),new he(r+": "+t.map(ve).join([", "]))}function me(r,e){for(var t=[],n=0;n<r;n++)t.push(O[(e>>2)+n]);return t}function ge(r,e){if(!(r instanceof Function))throw new TypeError("new_ called with constructor type "+typeof r+" which is not a function");var t=wr(r.name||"unknownFunctionName",(function(){}));t.prototype=r.prototype;var n=new t,o=r.apply(n,e);return o instanceof Object?o:n}function we(r,e,t,n,o){var i=e.length;i<2&&Wr("argTypes array size mismatch! Must at least get return value and 'this' types!");for(var a=null!==e[1]&&null!==t,u=!1,s=1;s<e.length;++s)if(null!==e[s]&&void 0===e[s].destructorFunction){u=!0;break}var c="void"!==e[0].name,f="",l="";for(s=0;s<i-2;++s)f+=(0!==s?", ":"")+"arg"+s,l+=(0!==s?", ":"")+"arg"+s+"Wired";var p="return function "+gr(r)+"("+f+") {\nif (arguments.length !== "+(i-2)+") {\nthrowBindingError('function "+r+" called with ' + arguments.length + ' arguments, expected "+(i-2)+" args!');\n}\n";u&&(p+="var destructors = [];\n");var d=u?"destructors":"null",h=["throwBindingError","invoker","fn","runDestructors","retType","classParam"],v=[Wr,n,o,lr,e[0],e[1]];for(a&&(p+="var thisWired = classParam.toWireType("+d+", this);\n"),s=0;s<i-2;++s)p+="var arg"+s+"Wired = argType"+s+".toWireType("+d+", arg"+s+"); // "+e[s+2].name+"\n",h.push("argType"+s),v.push(e[s+2]);if(a&&(l="thisWired"+(l.length>0?", ":"")+l),p+=(c?"var rv = ":"")+"invoker(fn"+(l.length>0?", ":"")+l+");\n",u)p+="runDestructors(destructors);\n";else for(s=a?1:2;s<e.length;++s){var y=1===s?"thisWired":"arg"+(s-2)+"Wired";null!==e[s].destructorFunction&&(p+=y+"_dtor("+y+"); // "+e[s].name+"\n",h.push(y+"_dtor"),v.push(e[s].destructorFunction))}return c&&(p+="var ret = retType.fromWireType(rv);\nreturn ret;\n"),p+="}\n",h.push(p),ge(Function,h).apply(null,v)}var Te=[],be=[{},{value:void 0},{value:null},{value:!0},{value:!1}];function Ce(r){r>4&&0==--be[r].refcount&&(be[r]=void 0,Te.push(r))}function $e(){for(var r=0,e=5;e<be.length;++e)void 0!==be[e]&&++r;return r}function Pe(){for(var r=5;r<be.length;++r)if(void 0!==be[r])return be[r];return null}function Ae(r){switch(r){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:var e=Te.length?Te.pop():be.length;return be[e]={refcount:1,value:r},e}}function _e(r,e,t){switch(e){case 0:return function(r){var e=t?W:E;return this.fromWireType(e[r])};case 1:return function(r){var e=t?F:k;return this.fromWireType(e[r>>1])};case 2:return function(r){var e=t?O:j;return this.fromWireType(e[r>>2])};default:throw new TypeError("Unknown integer type: "+r)}}function Se(r,e){var t=hr[r];return void 0===t&&Wr(e+" has unknown type "+ve(r)),t}function We(r){if(null===r)return"null";var e=typeof r;return"object"===e||"array"===e||"function"===e?r.toString():""+r}function Ee(r,e){switch(e){case 2:return function(r){return this.fromWireType(R[r>>2])};case 3:return function(r){return this.fromWireType(I[r>>3])};default:throw new TypeError("Unknown float type: "+r)}}function Fe(r,e,t){switch(e){case 0:return t?function(r){return W[r]}:function(r){return E[r]};case 1:return t?function(r){return F[r>>1]}:function(r){return k[r>>1]};case 2:return t?function(r){return O[r>>2]}:function(r){return j[r>>2]};default:throw new TypeError("Unknown integer type: "+r)}}function ke(r){return r||Wr("Cannot use deleted val. handle = "+r),be[r].value}var Oe={};function je(r){var e=Oe[r];return void 0===e?_r(r):e}var Re=[];function Ie(){return"object"==typeof globalThis?globalThis:Function("return this")()}function xe(r){for(var e="",t=0;t<r;++t)e+=(0!==t?", ":"")+"arg"+t;var n="return function emval_allocator_"+r+"(constructor, argTypes, args) {\n";for(t=0;t<r;++t)n+="var argType"+t+" = requireRegisteredType(Module['HEAP32'][(argTypes >>> 2) + "+t+'], "parameter '+t+'");\nvar arg'+t+" = argType"+t+".readValueFromPointer(args);\nargs += argType"+t+"['argPackAdvance'];\n";return n+="var obj = new constructor("+e+");\nreturn __emval_register(obj);\n}\n",new Function("requireRegisteredType","Module","__emval_register",n)(Se,o,Ae)}var De={};function Ue(r){try{return b.grow(r-S.byteLength+65535>>>16),z(b.buffer),1}catch(r){}}var Be={mappings:{},buffers:[null,[],[]],printChar:function(r,e){var t=Be.buffers[r];0===e||10===e?((1===r?g:w)(A(t,0)),t.length=0):t.push(e)},varargs:void 0,get:function(){return Be.varargs+=4,O[Be.varargs-4>>2]},getStr:function(r){return _(r)},get64:function(r,e){return r}};br=o.InternalError=Tr(Error,"InternalError"),function(){for(var r=new Array(256),e=0;e<256;++e)r[e]=String.fromCharCode(e);Ar=r}(),Sr=o.BindingError=Tr(Error,"BindingError"),zr.prototype.isAliasOf=Fr,zr.prototype.clone=Dr,zr.prototype.delete=Ur,zr.prototype.isDeleted=Br,zr.prototype.deleteLater=qr,fe.prototype.getPointee=Zr,fe.prototype.destructor=re,fe.prototype.argPackAdvance=8,fe.prototype.readValueFromPointer=pr,fe.prototype.deleteObject=ee,fe.prototype.fromWireType=ce,o.getInheritedInstanceCount=ne,o.getLiveInheritedInstances=oe,o.flushPendingDeletes=Hr,o.setDelayFunction=ie,he=o.UnboundTypeError=Tr(Error,"UnboundTypeError"),o.count_emval_handles=$e,o.get_first_emval=Pe;var Me,Ve={t:function(r){var e=fr[r];delete fr[r];var t=e.rawConstructor,n=e.rawDestructor,o=e.fields;$r([r],o.map((function(r){return r.getterReturnType})).concat(o.map((function(r){return r.setterArgumentType}))),(function(r){var i={};return o.forEach((function(e,t){var n=e.fieldName,a=r[t],u=e.getter,s=e.getterContext,c=r[t+o.length],f=e.setter,l=e.setterContext;i[n]={read:function(r){return a.fromWireType(u(s,r))},write:function(r,e){var t=[];f(l,r,c.toWireType(t,e)),lr(t)}}})),[{name:e.name,fromWireType:function(r){var e={};for(var t in i)e[t]=i[t].read(r);return n(r),e},toWireType:function(r,e){for(var o in i)if(!(o in e))throw new TypeError('Missing field: "'+o+'"');var a=t();for(o in i)i[o].write(a,e[o]);return null!==r&&r.push(n,a),a},argPackAdvance:8,readValueFromPointer:pr,destructorFunction:n}]}))},I:function(r,e,t,n,o){var i=Pr(t);Er(r,{name:e=_r(e),fromWireType:function(r){return!!r},toWireType:function(r,e){return e?n:o},argPackAdvance:8,readValueFromPointer:function(r){var n;if(1===t)n=W;else if(2===t)n=F;else{if(4!==t)throw new TypeError("Unknown boolean type size: "+e);n=O}return this.fromWireType(n[r>>i])},destructorFunction:null})},x:function(r,e,t,n,o,i,a,u,s,c,f,l,p){f=_r(f),i=de(o,i),u&&(u=de(a,u)),c&&(c=de(s,c)),p=de(l,p);var d=gr(f);Lr(d,(function(){ye("Cannot construct "+f+" due to unbound types",[n])})),$r([r,e,t],n?[n]:[],(function(e){var t,o;e=e[0],o=n?(t=e.registeredClass).instancePrototype:zr.prototype;var a=wr(d,(function(){if(Object.getPrototypeOf(this)!==s)throw new Sr("Use 'new' to construct "+f);if(void 0===l.constructor_body)throw new Sr(f+" has no accessible constructor");var r=l.constructor_body[arguments.length];if(void 0===r)throw new Sr("Tried to invoke ctor of "+f+" with invalid number of parameters ("+arguments.length+") - expected ("+Object.keys(l.constructor_body).toString()+") parameters instead!");return r.apply(this,arguments)})),s=Object.create(o,{constructor:{value:a}});a.prototype=s;var l=new Xr(f,a,s,p,t,i,u,c),h=new fe(f,l,!0,!1,!1),v=new fe(f+"*",l,!1,!1,!1),y=new fe(f+" const*",l,!1,!0,!1);return Nr[r]={pointerType:v,constPointerType:y},le(d,a),[h,v,y]}))},w:function(r,e,t,n,o,i){$(e>0);var a=me(e,t);o=de(n,o);var u=[i],s=[];$r([],[r],(function(r){var t="constructor "+(r=r[0]).name;if(void 0===r.registeredClass.constructor_body&&(r.registeredClass.constructor_body=[]),void 0!==r.registeredClass.constructor_body[e-1])throw new Sr("Cannot register multiple constructors with identical number of parameters ("+(e-1)+") for class '"+r.name+"'! Overload resolution is currently only performed using the parameter count, not actual type info!");return r.registeredClass.constructor_body[e-1]=function(){ye("Cannot construct "+r.name+" due to unbound types",a)},$r([],a,(function(n){return r.registeredClass.constructor_body[e-1]=function(){arguments.length!==e-1&&Wr(t+" called with "+arguments.length+" arguments, expected "+(e-1)),s.length=0,u.length=e;for(var r=1;r<e;++r)u[r]=n[r].toWireType(s,arguments[r-1]);var i=o.apply(null,u);return lr(s),n[0].fromWireType(i)},[]})),[]}))},d:function(r,e,t,n,o,i,a,u){var s=me(t,n);e=_r(e),i=de(o,i),$r([],[r],(function(r){var n=(r=r[0]).name+"."+e;function o(){ye("Cannot call "+n+" due to unbound types",s)}u&&r.registeredClass.pureVirtualFunctions.push(e);var c=r.registeredClass.instancePrototype,f=c[e];return void 0===f||void 0===f.overloadTable&&f.className!==r.name&&f.argCount===t-2?(o.argCount=t-2,o.className=r.name,c[e]=o):(Gr(c,e,n),c[e].overloadTable[t-2]=o),$r([],s,(function(o){var u=we(n,o,r,i,a);return void 0===c[e].overloadTable?(u.argCount=t-2,c[e]=u):c[e].overloadTable[t-2]=u,[]})),[]}))},k:function(r,e,t){r=_r(r),$r([],[e],(function(e){return e=e[0],o[r]=e.fromWireType(t),[]}))},H:function(r,e){Er(r,{name:e=_r(e),fromWireType:function(r){var e=be[r].value;return Ce(r),e},toWireType:function(r,e){return Ae(e)},argPackAdvance:8,readValueFromPointer:pr,destructorFunction:null})},n:function(r,e,t,n){var o=Pr(t);function i(){}e=_r(e),i.values={},Er(r,{name:e,constructor:i,fromWireType:function(r){return this.constructor.values[r]},toWireType:function(r,e){return e.value},argPackAdvance:8,readValueFromPointer:_e(e,o,n),destructorFunction:null}),Lr(e,i)},a:function(r,e,t){var n=Se(r,"enum");e=_r(e);var o=n.constructor,i=Object.create(n.constructor.prototype,{value:{value:t},constructor:{value:wr(n.name+"_"+e,(function(){}))}});o.values[t]=i,o[e]=i},A:function(r,e,t){var n=Pr(t);Er(r,{name:e=_r(e),fromWireType:function(r){return r},toWireType:function(r,e){if("number"!=typeof e&&"boolean"!=typeof e)throw new TypeError('Cannot convert "'+We(e)+'" to '+this.name);return e},argPackAdvance:8,readValueFromPointer:Ee(e,n),destructorFunction:null})},i:function(r,e,t,n,o,i){var a=me(e,t);r=_r(r),o=de(n,o),Lr(r,(function(){ye("Cannot call "+r+" due to unbound types",a)}),e-1),$r([],a,(function(t){var n=[t[0],null].concat(t.slice(1));return le(r,we(r,n,null,o,i),e-1),[]}))},j:function(r,e,t,n,o){e=_r(e),-1===o&&(o=4294967295);var i=Pr(t),a=function(r){return r};if(0===n){var u=32-8*t;a=function(r){return r<<u>>>u}}var s=-1!=e.indexOf("unsigned");Er(r,{name:e,fromWireType:a,toWireType:function(r,t){if("number"!=typeof t&&"boolean"!=typeof t)throw new TypeError('Cannot convert "'+We(t)+'" to '+this.name);if(t<n||t>o)throw new TypeError('Passing a number "'+We(t)+'" from JS side to C/C++ side to an argument of type "'+e+'", which is outside the valid range ['+n+", "+o+"]!");return s?t>>>0:0|t},argPackAdvance:8,readValueFromPointer:Fe(e,i,0!==n),destructorFunction:null})},h:function(r,e,t){var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][e];function o(r){var e=j,t=e[r>>=2],o=e[r+1];return new n(S,o,t)}Er(r,{name:t=_r(t),fromWireType:o,argPackAdvance:8,readValueFromPointer:o},{ignoreDuplicateRegistrations:!0})},B:function(r,e){var t="std::string"===(e=_r(e));Er(r,{name:e,fromWireType:function(r){var e,n=j[r>>2];if(t)for(var o=r+4,i=0;i<=n;++i){var a=r+4+i;if(i==n||0==E[a]){var u=_(o,a-o);void 0===e?e=u:(e+=String.fromCharCode(0),e+=u),o=a+1}}else{var s=new Array(n);for(i=0;i<n;++i)s[i]=String.fromCharCode(E[r+4+i]);e=s.join("")}return qe(r),e},toWireType:function(r,e){e instanceof ArrayBuffer&&(e=new Uint8Array(e));var n="string"==typeof e;n||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Int8Array||Wr("Cannot pass non-string to std::string");var o=(t&&n?function(){return function(r){for(var e=0,t=0;t<r.length;++t){var n=r.charCodeAt(t);n>=55296&&n<=57343&&(n=65536+((1023&n)<<10)|1023&r.charCodeAt(++t)),n<=127?++e:e+=n<=2047?2:n<=65535?3:4}return e}(e)}:function(){return e.length})(),i=He(4+o+1);if(j[i>>2]=o,t&&n)!function(r,e,t){(function(r,e,t,n){if(!(n>0))return 0;for(var o=t,i=t+n-1,a=0;a<r.length;++a){var u=r.charCodeAt(a);if(u>=55296&&u<=57343&&(u=65536+((1023&u)<<10)|1023&r.charCodeAt(++a)),u<=127){if(t>=i)break;e[t++]=u}else if(u<=2047){if(t+1>=i)break;e[t++]=192|u>>6,e[t++]=128|63&u}else if(u<=65535){if(t+2>=i)break;e[t++]=224|u>>12,e[t++]=128|u>>6&63,e[t++]=128|63&u}else{if(t+3>=i)break;e[t++]=240|u>>18,e[t++]=128|u>>12&63,e[t++]=128|u>>6&63,e[t++]=128|63&u}}e[t]=0})(r,E,e,t)}(e,i+4,o+1);else if(n)for(var a=0;a<o;++a){var u=e.charCodeAt(a);u>255&&(qe(i),Wr("String has UTF-16 code units that do not fit in 8 bits")),E[i+4+a]=u}else for(a=0;a<o;++a)E[i+4+a]=e[a];return null!==r&&r.push(qe,i),i},argPackAdvance:8,readValueFromPointer:pr,destructorFunction:function(r){qe(r)}})},v:function(r,e,t){var n,o,i,a,u;t=_r(t),2===e?(n=D,o=U,a=B,i=function(){return k},u=1):4===e&&(n=M,o=V,a=H,i=function(){return j},u=2),Er(r,{name:t,fromWireType:function(r){for(var t,o=j[r>>2],a=i(),s=r+4,c=0;c<=o;++c){var f=r+4+c*e;if(c==o||0==a[f>>u]){var l=n(s,f-s);void 0===t?t=l:(t+=String.fromCharCode(0),t+=l),s=f+e}}return qe(r),t},toWireType:function(r,n){"string"!=typeof n&&Wr("Cannot pass non-string to C++ string type "+t);var i=a(n),s=He(4+i+e);return j[s>>2]=i>>u,o(n,s+4,i+e),null!==r&&r.push(qe,s),s},argPackAdvance:8,readValueFromPointer:pr,destructorFunction:function(r){qe(r)}})},u:function(r,e,t,n,o,i){fr[r]={name:_r(e),rawConstructor:de(t,n),rawDestructor:de(o,i),fields:[]}},c:function(r,e,t,n,o,i,a,u,s,c){fr[r].fields.push({fieldName:_r(e),getterReturnType:t,getter:de(n,o),getterContext:i,setterArgumentType:a,setter:de(u,s),setterContext:c})},J:function(r,e){Er(r,{isVoid:!0,name:e=_r(e),argPackAdvance:0,fromWireType:function(){},toWireType:function(r,e){}})},m:function(r,e,t){r=ke(r),e=Se(e,"emval::as");var n=[],o=Ae(n);return O[t>>2]=o,e.toWireType(n,r)},s:function(r,e,t,n){(r=Re[r])(e=ke(e),t=je(t),null,n)},b:Ce,y:function(r){return 0===r?Ae(Ie()):(r=je(r),Ae(Ie()[r]))},p:function(r,e){for(var t=function(r,e){for(var t=new Array(r),n=0;n<r;++n)t[n]=Se(O[(e>>2)+n],"parameter "+n);return t}(r,e),n=t[0],o=n.name+"_$"+t.slice(1).map((function(r){return r.name})).join("_")+"$",i=["retType"],a=[n],u="",s=0;s<r-1;++s)u+=(0!==s?", ":"")+"arg"+s,i.push("argType"+s),a.push(t[1+s]);var c="return function "+gr("methodCaller_"+o)+"(handle, name, destructors, args) {\n",f=0;for(s=0;s<r-1;++s)c+=" var arg"+s+" = argType"+s+".readValueFromPointer(args"+(f?"+"+f:"")+");\n",f+=t[s+1].argPackAdvance;for(c+=" var rv = handle[name]("+u+");\n",s=0;s<r-1;++s)t[s+1].deleteObject&&(c+=" argType"+s+".deleteObject(arg"+s+");\n");return n.isVoid||(c+=" return retType.toWireType(destructors, rv);\n"),c+="};\n",i.push(c),function(r){var e=Re.length;return Re.push(r),e}(ge(Function,i).apply(null,a))},r:function(r){return r=je(r),Ae(o[r])},e:function(r,e){return Ae((r=ke(r))[e=ke(e)])},g:function(r){r>4&&(be[r].refcount+=1)},q:function(r,e,t,n){r=ke(r);var o=De[e];return o||(o=xe(e),De[e]=o),o(r,t,n)},f:function(r){return Ae(je(r))},l:function(r){lr(be[r].value),Ce(r)},o:function(){er()},E:function(r,e,t){E.copyWithin(r,e,e+t)},F:function(r){var e=E.length,t=2147483648;if((r>>>=0)>t)return!1;for(var n=1;n<=4;n*=2){var o=e*(1+.2/n);if(o=Math.min(o,r+100663296),Ue(Math.min(t,q(Math.max(r,o),65536))))return!0}return!1},G:function(r){return 0},C:function(r,e,t,n,o){},z:function(r,e,t,n){for(var o=0,i=0;i<t;i++){for(var a=O[e+8*i>>2],u=O[e+(8*i+4)>>2],s=0;s<u;s++)Be.printChar(r,E[a+s]);o+=u}return O[n>>2]=o,0},D:function(r){}},He=(function(){var r={a:Ve};function e(r,e){var t=r.exports;o.asm=t,z((b=o.asm.K).buffer),N=o.asm.O,function(r){L.unshift(r)}(o.asm.L),function(r){if(Y--,o.monitorRunDependencies&&o.monitorRunDependencies(Y),0==Y&&(null!==Z&&(clearInterval(Z),Z=null),rr)){var e=rr;rr=null,e()}}()}function t(r){e(r.instance)}function i(e){return function(){if(!T&&(f||l)){if("function"==typeof fetch&&!ar(ur))return fetch(ur,{credentials:"same-origin"}).then((function(r){if(!r.ok)throw"failed to load wasm binary file at '"+ur+"'";return r.arrayBuffer()})).catch((function(){return sr(ur)}));if(d)return new Promise((function(r,e){d(ur,(function(e){r(new Uint8Array(e))}),e)}))}return Promise.resolve().then((function(){return sr(ur)}))}().then((function(e){return WebAssembly.instantiate(e,r)})).then(e,(function(r){w("failed to asynchronously prepare wasm: "+r),er(r)}))}if(Y++,o.monitorRunDependencies&&o.monitorRunDependencies(Y),o.instantiateWasm)try{return o.instantiateWasm(r,e)}catch(r){return w("Module.instantiateWasm callback failed with error: "+r),!1}(T||"function"!=typeof WebAssembly.instantiateStreaming||or(ur)||ar(ur)||"function"!=typeof fetch?i(t):fetch(ur,{credentials:"same-origin"}).then((function(e){return WebAssembly.instantiateStreaming(e,r).then(t,(function(r){return w("wasm streaming compile failed: "+r),w("falling back to ArrayBuffer instantiation"),i(t)}))}))).catch(n)}(),o.___wasm_call_ctors=function(){return(o.___wasm_call_ctors=o.asm.L).apply(null,arguments)},o._malloc=function(){return(He=o._malloc=o.asm.M).apply(null,arguments)}),qe=o._free=function(){return(qe=o._free=o.asm.N).apply(null,arguments)},ze=o.___getTypeName=function(){return(ze=o.___getTypeName=o.asm.P).apply(null,arguments)};function Ne(r){this.name="ExitStatus",this.message="Program terminated with exit("+r+")",this.status=r}function Ge(r){function e(){Me||(Me=!0,o.calledRun=!0,C||(cr(L),cr(X),t(o),o.onRuntimeInitialized&&o.onRuntimeInitialized(),function(){if(o.postRun)for("function"==typeof o.postRun&&(o.postRun=[o.postRun]);o.postRun.length;)Q(o.postRun.shift());cr(J)}()))}r=r||c,Y>0||(function(){if(o.preRun)for("function"==typeof o.preRun&&(o.preRun=[o.preRun]);o.preRun.length;)K(o.preRun.shift());cr(G)}(),Y>0||(o.setStatus?(o.setStatus("Running..."),setTimeout((function(){setTimeout((function(){o.setStatus("")}),1),e()}),1)):e()))}if(o.___embind_register_native_and_builtin_types=function(){return(o.___embind_register_native_and_builtin_types=o.asm.Q).apply(null,arguments)},o.dynCall_jiji=function(){return(o.dynCall_jiji=o.asm.R).apply(null,arguments)},rr=function r(){Me||Ge(),Me||(rr=r)},o.run=Ge,o.preInit)for("function"==typeof o.preInit&&(o.preInit=[o.preInit]);o.preInit.length>0;)o.preInit.pop()();return Ge(),e.ready}}();"object"==typeof exports&&"object"==typeof module?module.exports=BASIS:"function"==typeof define&&define.amd?define([],(function(){return BASIS})):"object"==typeof exports&&(exports.BASIS=BASIS);
@@ -1 +0,0 @@
1
- var $jscomp=$jscomp||{};$jscomp.scope={},$jscomp.owns=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},$jscomp.ASSUME_ES5=!1,$jscomp.ASSUME_NO_NATIVE_MAP=!1,$jscomp.ASSUME_NO_NATIVE_SET=!1,$jscomp.SIMPLE_FROUND_POLYFILL=!1,$jscomp.ISOLATE_POLYFILLS=!1,$jscomp.FORCE_POLYFILL_PROMISE=!1,$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1,$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(t,e,r){return t==Array.prototype||t==Object.prototype||(t[e]=r.value),t},$jscomp.getGlobal=function(t){t=["object"==typeof globalThis&&globalThis,t,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var e=0;e<t.length;++e){var r=t[e];if(r&&r.Math==Math)return r}throw Error("Cannot find global object")},$jscomp.global=$jscomp.getGlobal(this),$jscomp.IS_SYMBOL_NATIVE="function"==typeof Symbol&&"symbol"==typeof Symbol("x"),$jscomp.TRUST_ES6_POLYFILLS=!$jscomp.ISOLATE_POLYFILLS||$jscomp.IS_SYMBOL_NATIVE,$jscomp.polyfills={},$jscomp.propertyToPolyfillSymbol={},$jscomp.POLYFILL_PREFIX="$jscp$";var $jscomp$lookupPolyfilledValue=function(t,e){var r=$jscomp.propertyToPolyfillSymbol[e];return null==r?t[e]:void 0!==(r=t[r])?r:t[e]};$jscomp.polyfill=function(t,e,r,n){e&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(t,e,r,n):$jscomp.polyfillUnisolated(t,e,r,n))},$jscomp.polyfillUnisolated=function(t,e,r,n){for(r=$jscomp.global,t=t.split("."),n=0;n<t.length-1;n++){var o=t[n];if(!(o in r))return;r=r[o]}(e=e(n=r[t=t[t.length-1]]))!=n&&null!=e&&$jscomp.defineProperty(r,t,{configurable:!0,writable:!0,value:e})},$jscomp.polyfillIsolated=function(t,e,r,n){var o=t.split(".");t=1===o.length,n=o[0],n=!t&&n in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var _=0;_<o.length-1;_++){var i=o[_];if(!(i in n))return;n=n[i]}o=o[o.length-1],null!=(e=e(r=$jscomp.IS_SYMBOL_NATIVE&&"es6"===r?n[o]:null))&&(t?$jscomp.defineProperty($jscomp.polyfills,o,{configurable:!0,writable:!0,value:e}):e!==r&&(void 0===$jscomp.propertyToPolyfillSymbol[o]&&(r=1e9*Math.random()>>>0,$jscomp.propertyToPolyfillSymbol[o]=$jscomp.IS_SYMBOL_NATIVE?$jscomp.global.Symbol(o):$jscomp.POLYFILL_PREFIX+r+"$"+o),$jscomp.defineProperty(n,$jscomp.propertyToPolyfillSymbol[o],{configurable:!0,writable:!0,value:e})))},$jscomp.assign=$jscomp.TRUST_ES6_POLYFILLS&&"function"==typeof Object.assign?Object.assign:function(t,e){for(var r=1;r<arguments.length;r++){var n=arguments[r];if(n)for(var o in n)$jscomp.owns(n,o)&&(t[o]=n[o])}return t},$jscomp.polyfill("Object.assign",(function(t){return t||$jscomp.assign}),"es6","es3"),$jscomp.arrayIteratorImpl=function(t){var e=0;return function(){return e<t.length?{done:!1,value:t[e++]}:{done:!0}}},$jscomp.arrayIterator=function(t){return{next:$jscomp.arrayIteratorImpl(t)}},$jscomp.makeIterator=function(t){var e="undefined"!=typeof Symbol&&Symbol.iterator&&t[Symbol.iterator];return e?e.call(t):$jscomp.arrayIterator(t)},$jscomp.polyfill("Promise",(function(t){function e(){this.batch_=null}function r(t){return t instanceof o?t:new o((function(e,r){e(t)}))}if(t&&(!($jscomp.FORCE_POLYFILL_PROMISE||$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION&&void 0===$jscomp.global.PromiseRejectionEvent)||!$jscomp.global.Promise||-1===$jscomp.global.Promise.toString().indexOf("[native code]")))return t;e.prototype.asyncExecute=function(t){if(null==this.batch_){this.batch_=[];var e=this;this.asyncExecuteFunction((function(){e.executeBatch_()}))}this.batch_.push(t)};var n=$jscomp.global.setTimeout;e.prototype.asyncExecuteFunction=function(t){n(t,0)},e.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var t=this.batch_;this.batch_=[];for(var e=0;e<t.length;++e){var r=t[e];t[e]=null;try{r()}catch(t){this.asyncThrow_(t)}}}this.batch_=null},e.prototype.asyncThrow_=function(t){this.asyncExecuteFunction((function(){throw t}))};var o=function(t){this.state_=0,this.result_=void 0,this.onSettledCallbacks_=[],this.isRejectionHandled_=!1;var e=this.createResolveAndReject_();try{t(e.resolve,e.reject)}catch(t){e.reject(t)}};o.prototype.createResolveAndReject_=function(){function t(t){return function(n){r||(r=!0,t.call(e,n))}}var e=this,r=!1;return{resolve:t(this.resolveTo_),reject:t(this.reject_)}},o.prototype.resolveTo_=function(t){if(t===this)this.reject_(new TypeError("A Promise cannot resolve to itself"));else if(t instanceof o)this.settleSameAsPromise_(t);else{t:switch(typeof t){case"object":var e=null!=t;break t;case"function":e=!0;break t;default:e=!1}e?this.resolveToNonPromiseObj_(t):this.fulfill_(t)}},o.prototype.resolveToNonPromiseObj_=function(t){var e=void 0;try{e=t.then}catch(t){return void this.reject_(t)}"function"==typeof e?this.settleSameAsThenable_(e,t):this.fulfill_(t)},o.prototype.reject_=function(t){this.settle_(2,t)},o.prototype.fulfill_=function(t){this.settle_(1,t)},o.prototype.settle_=function(t,e){if(0!=this.state_)throw Error("Cannot settle("+t+", "+e+"): Promise already settled in state"+this.state_);this.state_=t,this.result_=e,2===this.state_&&this.scheduleUnhandledRejectionCheck_(),this.executeOnSettledCallbacks_()},o.prototype.scheduleUnhandledRejectionCheck_=function(){var t=this;n((function(){if(t.notifyUnhandledRejection_()){var e=$jscomp.global.console;void 0!==e&&e.error(t.result_)}}),1)},o.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var t=$jscomp.global.CustomEvent,e=$jscomp.global.Event,r=$jscomp.global.dispatchEvent;return void 0===r||("function"==typeof t?t=new t("unhandledrejection",{cancelable:!0}):"function"==typeof e?t=new e("unhandledrejection",{cancelable:!0}):(t=$jscomp.global.document.createEvent("CustomEvent")).initCustomEvent("unhandledrejection",!1,!0,t),t.promise=this,t.reason=this.result_,r(t))},o.prototype.executeOnSettledCallbacks_=function(){if(null!=this.onSettledCallbacks_){for(var t=0;t<this.onSettledCallbacks_.length;++t)_.asyncExecute(this.onSettledCallbacks_[t]);this.onSettledCallbacks_=null}};var _=new e;return o.prototype.settleSameAsPromise_=function(t){var e=this.createResolveAndReject_();t.callWhenSettled_(e.resolve,e.reject)},o.prototype.settleSameAsThenable_=function(t,e){var r=this.createResolveAndReject_();try{t.call(e,r.resolve,r.reject)}catch(t){r.reject(t)}},o.prototype.then=function(t,e){function r(t,e){return"function"==typeof t?function(e){try{n(t(e))}catch(t){_(t)}}:e}var n,_,i=new o((function(t,e){n=t,_=e}));return this.callWhenSettled_(r(t,n),r(e,_)),i},o.prototype.catch=function(t){return this.then(void 0,t)},o.prototype.callWhenSettled_=function(t,e){function r(){switch(n.state_){case 1:t(n.result_);break;case 2:e(n.result_);break;default:throw Error("Unexpected state: "+n.state_)}}var n=this;null==this.onSettledCallbacks_?_.asyncExecute(r):this.onSettledCallbacks_.push(r),this.isRejectionHandled_=!0},o.resolve=r,o.reject=function(t){return new o((function(e,r){r(t)}))},o.race=function(t){return new o((function(e,n){for(var o=$jscomp.makeIterator(t),_=o.next();!_.done;_=o.next())r(_.value).callWhenSettled_(e,n)}))},o.all=function(t){var e=$jscomp.makeIterator(t),n=e.next();return n.done?r([]):new o((function(t,o){function _(e){return function(r){i[e]=r,0==--p&&t(i)}}var i=[],p=0;do{i.push(void 0),p++,r(n.value).callWhenSettled_(_(i.length-1),o),n=e.next()}while(!n.done)}))},o}),"es6","es3"),$jscomp.checkStringArgs=function(t,e,r){if(null==t)throw new TypeError("The 'this' value for String.prototype."+r+" must not be null or undefined");if(e instanceof RegExp)throw new TypeError("First argument to String.prototype."+r+" must not be a regular expression");return t+""},$jscomp.polyfill("String.prototype.startsWith",(function(t){return t||function(t,e){var r=$jscomp.checkStringArgs(this,t,"startsWith");t+="";var n=r.length,o=t.length;e=Math.max(0,Math.min(0|e,r.length));for(var _=0;_<o&&e<n;)if(r[e++]!=t[_++])return!1;return _>=o}}),"es6","es3"),$jscomp.polyfill("Array.prototype.copyWithin",(function(t){function e(t){return 1/0===(t=Number(t))||-1/0===t?t:0|t}return t||function(t,r,n){var o=this.length;if(t=e(t),r=e(r),n=void 0===n?o:e(n),t=0>t?Math.max(o+t,0):Math.min(t,o),r=0>r?Math.max(o+r,0):Math.min(r,o),n=0>n?Math.max(o+n,0):Math.min(n,o),t<r)for(;r<n;)r in this?this[t++]=this[r++]:(delete this[t++],r++);else for(t+=(n=Math.min(n,o+r-t))-r;n>r;)--n in this?this[--t]=this[n]:delete this[--t];return this}}),"es6","es3"),$jscomp.typedArrayCopyWithin=function(t){return t||Array.prototype.copyWithin},$jscomp.polyfill("Int8Array.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5"),$jscomp.polyfill("Uint8Array.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5"),$jscomp.polyfill("Uint8ClampedArray.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5"),$jscomp.polyfill("Int16Array.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5"),$jscomp.polyfill("Uint16Array.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5"),$jscomp.polyfill("Int32Array.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5"),$jscomp.polyfill("Uint32Array.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5"),$jscomp.polyfill("Float32Array.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5"),$jscomp.polyfill("Float64Array.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5");var DracoDecoderModule=function(){var t="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0;return"undefined"!=typeof __filename&&(t=t||__filename),function(e){function r(t,e,r){var n=e+r;for(r=e;t[r]&&!(r>=n);)++r;if(16<r-e&&t.subarray&&at)return at.decode(t.subarray(e,r));for(n="";e<r;){var o=t[e++];if(128&o){var _=63&t[e++];if(192==(224&o))n+=String.fromCharCode((31&o)<<6|_);else{var i=63&t[e++];65536>(o=224==(240&o)?(15&o)<<12|_<<6|i:(7&o)<<18|_<<12|i<<6|63&t[e++])?n+=String.fromCharCode(o):(o-=65536,n+=String.fromCharCode(55296|o>>10,56320|1023&o))}}else n+=String.fromCharCode(o)}return n}function n(t,e){return t?r(ot,t,e):""}function o(t){rt=t,$.HEAP8=nt=new Int8Array(t),$.HEAP16=new Int16Array(t),$.HEAP32=_t=new Int32Array(t),$.HEAPU8=ot=new Uint8Array(t),$.HEAPU16=new Uint16Array(t),$.HEAPU32=new Uint32Array(t),$.HEAPF32=new Float32Array(t),$.HEAPF64=new Float64Array(t)}function _(t){throw $.onAbort&&$.onAbort(t),tt(t="Aborted("+t+")"),pt=!0,t=new WebAssembly.RuntimeError(t+". Build with -s ASSERTIONS=1 for more info."),L(t),t}function i(t){try{if(t==bt&&J)return new Uint8Array(J);if(X)return X(t);throw"both async and sync fetching of the wasm failed"}catch(t){_(t)}}function p(t){for(;0<t.length;){var e=t.shift();if("function"==typeof e)e($);else{var r=e.func;"number"==typeof r?void 0===e.arg?a(r)():a(r)(e.arg):r(void 0===e.arg?null:e.arg)}}}function a(t){var e=ht[t];return e||(t>=ht.length&&(ht.length=t+1),ht[t]=e=it.get(t)),e}function c(t){this.excPtr=t,this.ptr=t-16,this.set_type=function(t){_t[this.ptr+4>>2]=t},this.get_type=function(){return _t[this.ptr+4>>2]},this.set_destructor=function(t){_t[this.ptr+8>>2]=t},this.get_destructor=function(){return _t[this.ptr+8>>2]},this.set_refcount=function(t){_t[this.ptr>>2]=t},this.set_caught=function(t){nt[this.ptr+12>>0]=t?1:0},this.get_caught=function(){return 0!=nt[this.ptr+12>>0]},this.set_rethrown=function(t){nt[this.ptr+13>>0]=t?1:0},this.get_rethrown=function(){return 0!=nt[this.ptr+13>>0]},this.init=function(t,e){this.set_type(t),this.set_destructor(e),this.set_refcount(0),this.set_caught(!1),this.set_rethrown(!1)},this.add_ref=function(){_t[this.ptr>>2]+=1},this.release_ref=function(){var t=_t[this.ptr>>2];return _t[this.ptr>>2]=t-1,1===t}}function s(t){function e(){if(!Dt&&(Dt=!0,$.calledRun=!0,!pt)){if(lt=!0,p(st),C($),$.onRuntimeInitialized&&$.onRuntimeInitialized(),$.postRun)for("function"==typeof $.postRun&&($.postRun=[$.postRun]);$.postRun.length;)ut.unshift($.postRun.shift());p(ut)}}if(!(0<yt)){if($.preRun)for("function"==typeof $.preRun&&($.preRun=[$.preRun]);$.preRun.length;)ct.unshift($.preRun.shift());p(ct),0<yt||($.setStatus?($.setStatus("Running..."),setTimeout((function(){setTimeout((function(){$.setStatus("")}),1),e()}),1)):e())}}function u(){}function l(t){return(t||u).__cache__}function y(t,e){var r=l(e),n=r[t];return n||((n=Object.create((e||u).prototype)).ptr=t,r[t]=n)}function f(t){if("string"==typeof t){for(var e=0,r=0;r<t.length;++r){var n=t.charCodeAt(r);55296<=n&&57343>=n&&(n=65536+((1023&n)<<10)|1023&t.charCodeAt(++r)),127>=n?++e:e=2047>=n?e+2:65535>=n?e+3:e+4}if(r=0,0<(n=(e=Array(e+1)).length)){n=r+n-1;for(var o=0;o<t.length;++o){var _=t.charCodeAt(o);if(55296<=_&&57343>=_)_=65536+((1023&_)<<10)|1023&t.charCodeAt(++o);if(127>=_){if(r>=n)break;e[r++]=_}else{if(2047>=_){if(r+1>=n)break;e[r++]=192|_>>6}else{if(65535>=_){if(r+2>=n)break;e[r++]=224|_>>12}else{if(r+3>=n)break;e[r++]=240|_>>18,e[r++]=128|_>>12&63}e[r++]=128|_>>6&63}e[r++]=128|63&_}}e[r]=0}return t=on.alloc(e,nt),on.copy(e,nt,t),t}return t}function m(t){if("object"==typeof t){var e=on.alloc(t,nt);return on.copy(t,nt,e),e}return t}function d(){throw"cannot construct a VoidPtr, no constructor in IDL"}function b(){this.ptr=jt(),l(b)[this.ptr]=this}function h(){this.ptr=Gt(),l(h)[this.ptr]=this}function A(){this.ptr=Rt(),l(A)[this.ptr]=this}function T(){this.ptr=gt(),l(T)[this.ptr]=this}function D(){this.ptr=Bt(),l(D)[this.ptr]=this}function I(){this.ptr=Ht(),l(I)[this.ptr]=this}function j(){this.ptr=Jt(),l(j)[this.ptr]=this}function E(){this.ptr=re(),l(E)[this.ptr]=this}function v(){this.ptr=pe(),l(v)[this.ptr]=this}function G(){throw"cannot construct a Status, no constructor in IDL"}function O(){this.ptr=ye(),l(O)[this.ptr]=this}function P(){this.ptr=be(),l(P)[this.ptr]=this}function R(){this.ptr=De(),l(R)[this.ptr]=this}function S(){this.ptr=ve(),l(S)[this.ptr]=this}function g(){this.ptr=Re(),l(g)[this.ptr]=this}function M(){this.ptr=Ne(),l(M)[this.ptr]=this}function N(){this.ptr=Le(),l(N)[this.ptr]=this}function U(){this.ptr=Ve(),l(U)[this.ptr]=this}function F(){this.ptr=Xe(),l(F)[this.ptr]=this}var C,L,$=void 0!==(e=e||{})?e:{},w=Object.assign;$.ready=new Promise((function(t,e){C=t,L=e}));var z=!1,V=!1;$.onRuntimeInitialized=function(){z=!0,V&&"function"==typeof $.onModuleLoaded&&$.onModuleLoaded($)},$.onModuleParsed=function(){V=!0,z&&"function"==typeof $.onModuleLoaded&&$.onModuleLoaded($)},$.isVersionSupported=function(t){return"string"==typeof t&&(!(2>(t=t.split(".")).length||3<t.length)&&(1==t[0]&&0<=t[1]&&5>=t[1]||!(0!=t[0]||10<t[1])))};var B,W,k=w({},$),Q="object"==typeof window,x="function"==typeof importScripts,Y="";if("object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node){Y=x?require("path").dirname(Y)+"/":__dirname+"/";var H=function(){W||(B=require("fs"),W=require("path"))},q=function(t,e){return H(),t=W.normalize(t),B.readFileSync(t,e?null:"utf8")},X=function(t){return(t=q(t,!0)).buffer||(t=new Uint8Array(t)),t},K=function(t,e,r){H(),t=W.normalize(t),B.readFile(t,(function(t,n){t?r(t):e(n.buffer)}))};1<process.argv.length&&process.argv[1].replace(/\\/g,"/"),process.argv.slice(2),$.inspect=function(){return"[Emscripten Module object]"}}else(Q||x)&&(x?Y=self.location.href:"undefined"!=typeof document&&document.currentScript&&(Y=document.currentScript.src),t&&(Y=t),Y=0!==Y.indexOf("blob:")?Y.substr(0,Y.replace(/[?#].*/,"").lastIndexOf("/")+1):"",q=function(t){var e=new XMLHttpRequest;return e.open("GET",t,!1),e.send(null),e.responseText},x&&(X=function(t){var e=new XMLHttpRequest;return e.open("GET",t,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)}),K=function(t,e,r){var n=new XMLHttpRequest;n.open("GET",t,!0),n.responseType="arraybuffer",n.onload=function(){200==n.status||0==n.status&&n.response?e(n.response):r()},n.onerror=r,n.send(null)});var J,Z=$.print||console.log.bind(console),tt=$.printErr||console.warn.bind(console);w($,k),k=null,$.wasmBinary&&(J=$.wasmBinary),"object"!=typeof WebAssembly&&_("no native wasm support detected");var et,rt,nt,ot,_t,it,pt=!1,at="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,ct=[],st=[],ut=[],lt=!1,yt=0,ft=null,mt=null;$.preloadedImages={},$.preloadedAudios={};var dt,bt="draco_decoder.wasm";bt.startsWith("data:application/octet-stream;base64,")||(dt=bt,bt=$.locateFile?$.locateFile(dt,Y):Y+dt);var ht=[],At={mappings:{},buffers:[null,[],[]],printChar:function(t,e){var n=At.buffers[t];0===e||10===e?((1===t?Z:tt)(r(n,0)),n.length=0):n.push(e)},varargs:void 0,get:function(){return At.varargs+=4,_t[At.varargs-4>>2]},getStr:function(t){return n(t)},get64:function(t,e){return t}},Tt={h:function(t){return nn(t+16)+16},g:function(t,e,r){throw new c(t).init(e,r),t},a:function(){_("")},f:function(t,e,r){ot.copyWithin(t,e,e+r)},d:function(t){var e=ot.length;if(2147483648<(t>>>=0))return!1;for(var r=1;4>=r;r*=2){var n=e*(1+.2/r);n=Math.min(n,t+100663296);var _=Math,i=_.min;0<(n=Math.max(t,n))%65536&&(n+=65536-n%65536),_=i.call(_,2147483648,n);t:{try{et.grow(_-rt.byteLength+65535>>>16),o(et.buffer);var p=1;break t}catch(t){}p=void 0}if(p)return!0}return!1},e:function(t){return 0},c:function(t,e,r,n,o){},b:function(t,e,r,n){for(var o=0,_=0;_<r;_++){var i=_t[e>>2],p=_t[e+4>>2];e+=8;for(var a=0;a<p;a++)At.printChar(t,ot[i+a]);o+=p}return _t[n>>2]=o,0}};!function(){function t(t,e){$.asm=t.exports,o((et=$.asm.i).buffer),it=$.asm.k,st.unshift($.asm.j),yt--,$.monitorRunDependencies&&$.monitorRunDependencies(yt),0==yt&&(null!==ft&&(clearInterval(ft),ft=null),mt&&(t=mt,mt=null,t()))}function e(e){t(e.instance)}function r(t){return function(){if(!J&&(Q||x)){if("function"==typeof fetch&&!bt.startsWith("file://"))return fetch(bt,{credentials:"same-origin"}).then((function(t){if(!t.ok)throw"failed to load wasm binary file at '"+bt+"'";return t.arrayBuffer()})).catch((function(){return i(bt)}));if(K)return new Promise((function(t,e){K(bt,(function(e){t(new Uint8Array(e))}),e)}))}return Promise.resolve().then((function(){return i(bt)}))}().then((function(t){return WebAssembly.instantiate(t,n)})).then((function(t){return t})).then(t,(function(t){tt("failed to asynchronously prepare wasm: "+t),_(t)}))}var n={a:Tt};if(yt++,$.monitorRunDependencies&&$.monitorRunDependencies(yt),$.instantiateWasm)try{return $.instantiateWasm(n,t)}catch(t){return tt("Module.instantiateWasm callback failed with error: "+t),!1}(J||"function"!=typeof WebAssembly.instantiateStreaming||bt.startsWith("data:application/octet-stream;base64,")||bt.startsWith("file://")||"function"!=typeof fetch?r(e):fetch(bt,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,n).then(e,(function(t){return tt("wasm streaming compile failed: "+t),tt("falling back to ArrayBuffer instantiation"),r(e)}))}))).catch(L)}(),$.___wasm_call_ctors=function(){return($.___wasm_call_ctors=$.asm.j).apply(null,arguments)};var Dt,It=$._emscripten_bind_VoidPtr___destroy___0=function(){return(It=$._emscripten_bind_VoidPtr___destroy___0=$.asm.l).apply(null,arguments)},jt=$._emscripten_bind_DecoderBuffer_DecoderBuffer_0=function(){return(jt=$._emscripten_bind_DecoderBuffer_DecoderBuffer_0=$.asm.m).apply(null,arguments)},Et=$._emscripten_bind_DecoderBuffer_Init_2=function(){return(Et=$._emscripten_bind_DecoderBuffer_Init_2=$.asm.n).apply(null,arguments)},vt=$._emscripten_bind_DecoderBuffer___destroy___0=function(){return(vt=$._emscripten_bind_DecoderBuffer___destroy___0=$.asm.o).apply(null,arguments)},Gt=$._emscripten_bind_AttributeTransformData_AttributeTransformData_0=function(){return(Gt=$._emscripten_bind_AttributeTransformData_AttributeTransformData_0=$.asm.p).apply(null,arguments)},Ot=$._emscripten_bind_AttributeTransformData_transform_type_0=function(){return(Ot=$._emscripten_bind_AttributeTransformData_transform_type_0=$.asm.q).apply(null,arguments)},Pt=$._emscripten_bind_AttributeTransformData___destroy___0=function(){return(Pt=$._emscripten_bind_AttributeTransformData___destroy___0=$.asm.r).apply(null,arguments)},Rt=$._emscripten_bind_GeometryAttribute_GeometryAttribute_0=function(){return(Rt=$._emscripten_bind_GeometryAttribute_GeometryAttribute_0=$.asm.s).apply(null,arguments)},St=$._emscripten_bind_GeometryAttribute___destroy___0=function(){return(St=$._emscripten_bind_GeometryAttribute___destroy___0=$.asm.t).apply(null,arguments)},gt=$._emscripten_bind_PointAttribute_PointAttribute_0=function(){return(gt=$._emscripten_bind_PointAttribute_PointAttribute_0=$.asm.u).apply(null,arguments)},Mt=$._emscripten_bind_PointAttribute_size_0=function(){return(Mt=$._emscripten_bind_PointAttribute_size_0=$.asm.v).apply(null,arguments)},Nt=$._emscripten_bind_PointAttribute_GetAttributeTransformData_0=function(){return(Nt=$._emscripten_bind_PointAttribute_GetAttributeTransformData_0=$.asm.w).apply(null,arguments)},Ut=$._emscripten_bind_PointAttribute_attribute_type_0=function(){return(Ut=$._emscripten_bind_PointAttribute_attribute_type_0=$.asm.x).apply(null,arguments)},Ft=$._emscripten_bind_PointAttribute_data_type_0=function(){return(Ft=$._emscripten_bind_PointAttribute_data_type_0=$.asm.y).apply(null,arguments)},Ct=$._emscripten_bind_PointAttribute_num_components_0=function(){return(Ct=$._emscripten_bind_PointAttribute_num_components_0=$.asm.z).apply(null,arguments)},Lt=$._emscripten_bind_PointAttribute_normalized_0=function(){return(Lt=$._emscripten_bind_PointAttribute_normalized_0=$.asm.A).apply(null,arguments)},$t=$._emscripten_bind_PointAttribute_byte_stride_0=function(){return($t=$._emscripten_bind_PointAttribute_byte_stride_0=$.asm.B).apply(null,arguments)},wt=$._emscripten_bind_PointAttribute_byte_offset_0=function(){return(wt=$._emscripten_bind_PointAttribute_byte_offset_0=$.asm.C).apply(null,arguments)},zt=$._emscripten_bind_PointAttribute_unique_id_0=function(){return(zt=$._emscripten_bind_PointAttribute_unique_id_0=$.asm.D).apply(null,arguments)},Vt=$._emscripten_bind_PointAttribute___destroy___0=function(){return(Vt=$._emscripten_bind_PointAttribute___destroy___0=$.asm.E).apply(null,arguments)},Bt=$._emscripten_bind_AttributeQuantizationTransform_AttributeQuantizationTransform_0=function(){return(Bt=$._emscripten_bind_AttributeQuantizationTransform_AttributeQuantizationTransform_0=$.asm.F).apply(null,arguments)},Wt=$._emscripten_bind_AttributeQuantizationTransform_InitFromAttribute_1=function(){return(Wt=$._emscripten_bind_AttributeQuantizationTransform_InitFromAttribute_1=$.asm.G).apply(null,arguments)},kt=$._emscripten_bind_AttributeQuantizationTransform_quantization_bits_0=function(){return(kt=$._emscripten_bind_AttributeQuantizationTransform_quantization_bits_0=$.asm.H).apply(null,arguments)},Qt=$._emscripten_bind_AttributeQuantizationTransform_min_value_1=function(){return(Qt=$._emscripten_bind_AttributeQuantizationTransform_min_value_1=$.asm.I).apply(null,arguments)},xt=$._emscripten_bind_AttributeQuantizationTransform_range_0=function(){return(xt=$._emscripten_bind_AttributeQuantizationTransform_range_0=$.asm.J).apply(null,arguments)},Yt=$._emscripten_bind_AttributeQuantizationTransform___destroy___0=function(){return(Yt=$._emscripten_bind_AttributeQuantizationTransform___destroy___0=$.asm.K).apply(null,arguments)},Ht=$._emscripten_bind_AttributeOctahedronTransform_AttributeOctahedronTransform_0=function(){return(Ht=$._emscripten_bind_AttributeOctahedronTransform_AttributeOctahedronTransform_0=$.asm.L).apply(null,arguments)},qt=$._emscripten_bind_AttributeOctahedronTransform_InitFromAttribute_1=function(){return(qt=$._emscripten_bind_AttributeOctahedronTransform_InitFromAttribute_1=$.asm.M).apply(null,arguments)},Xt=$._emscripten_bind_AttributeOctahedronTransform_quantization_bits_0=function(){return(Xt=$._emscripten_bind_AttributeOctahedronTransform_quantization_bits_0=$.asm.N).apply(null,arguments)},Kt=$._emscripten_bind_AttributeOctahedronTransform___destroy___0=function(){return(Kt=$._emscripten_bind_AttributeOctahedronTransform___destroy___0=$.asm.O).apply(null,arguments)},Jt=$._emscripten_bind_PointCloud_PointCloud_0=function(){return(Jt=$._emscripten_bind_PointCloud_PointCloud_0=$.asm.P).apply(null,arguments)},Zt=$._emscripten_bind_PointCloud_num_attributes_0=function(){return(Zt=$._emscripten_bind_PointCloud_num_attributes_0=$.asm.Q).apply(null,arguments)},te=$._emscripten_bind_PointCloud_num_points_0=function(){return(te=$._emscripten_bind_PointCloud_num_points_0=$.asm.R).apply(null,arguments)},ee=$._emscripten_bind_PointCloud___destroy___0=function(){return(ee=$._emscripten_bind_PointCloud___destroy___0=$.asm.S).apply(null,arguments)},re=$._emscripten_bind_Mesh_Mesh_0=function(){return(re=$._emscripten_bind_Mesh_Mesh_0=$.asm.T).apply(null,arguments)},ne=$._emscripten_bind_Mesh_num_faces_0=function(){return(ne=$._emscripten_bind_Mesh_num_faces_0=$.asm.U).apply(null,arguments)},oe=$._emscripten_bind_Mesh_num_attributes_0=function(){return(oe=$._emscripten_bind_Mesh_num_attributes_0=$.asm.V).apply(null,arguments)},_e=$._emscripten_bind_Mesh_num_points_0=function(){return(_e=$._emscripten_bind_Mesh_num_points_0=$.asm.W).apply(null,arguments)},ie=$._emscripten_bind_Mesh___destroy___0=function(){return(ie=$._emscripten_bind_Mesh___destroy___0=$.asm.X).apply(null,arguments)},pe=$._emscripten_bind_Metadata_Metadata_0=function(){return(pe=$._emscripten_bind_Metadata_Metadata_0=$.asm.Y).apply(null,arguments)},ae=$._emscripten_bind_Metadata___destroy___0=function(){return(ae=$._emscripten_bind_Metadata___destroy___0=$.asm.Z).apply(null,arguments)},ce=$._emscripten_bind_Status_code_0=function(){return(ce=$._emscripten_bind_Status_code_0=$.asm._).apply(null,arguments)},se=$._emscripten_bind_Status_ok_0=function(){return(se=$._emscripten_bind_Status_ok_0=$.asm.$).apply(null,arguments)},ue=$._emscripten_bind_Status_error_msg_0=function(){return(ue=$._emscripten_bind_Status_error_msg_0=$.asm.aa).apply(null,arguments)},le=$._emscripten_bind_Status___destroy___0=function(){return(le=$._emscripten_bind_Status___destroy___0=$.asm.ba).apply(null,arguments)},ye=$._emscripten_bind_DracoFloat32Array_DracoFloat32Array_0=function(){return(ye=$._emscripten_bind_DracoFloat32Array_DracoFloat32Array_0=$.asm.ca).apply(null,arguments)},fe=$._emscripten_bind_DracoFloat32Array_GetValue_1=function(){return(fe=$._emscripten_bind_DracoFloat32Array_GetValue_1=$.asm.da).apply(null,arguments)},me=$._emscripten_bind_DracoFloat32Array_size_0=function(){return(me=$._emscripten_bind_DracoFloat32Array_size_0=$.asm.ea).apply(null,arguments)},de=$._emscripten_bind_DracoFloat32Array___destroy___0=function(){return(de=$._emscripten_bind_DracoFloat32Array___destroy___0=$.asm.fa).apply(null,arguments)},be=$._emscripten_bind_DracoInt8Array_DracoInt8Array_0=function(){return(be=$._emscripten_bind_DracoInt8Array_DracoInt8Array_0=$.asm.ga).apply(null,arguments)},he=$._emscripten_bind_DracoInt8Array_GetValue_1=function(){return(he=$._emscripten_bind_DracoInt8Array_GetValue_1=$.asm.ha).apply(null,arguments)},Ae=$._emscripten_bind_DracoInt8Array_size_0=function(){return(Ae=$._emscripten_bind_DracoInt8Array_size_0=$.asm.ia).apply(null,arguments)},Te=$._emscripten_bind_DracoInt8Array___destroy___0=function(){return(Te=$._emscripten_bind_DracoInt8Array___destroy___0=$.asm.ja).apply(null,arguments)},De=$._emscripten_bind_DracoUInt8Array_DracoUInt8Array_0=function(){return(De=$._emscripten_bind_DracoUInt8Array_DracoUInt8Array_0=$.asm.ka).apply(null,arguments)},Ie=$._emscripten_bind_DracoUInt8Array_GetValue_1=function(){return(Ie=$._emscripten_bind_DracoUInt8Array_GetValue_1=$.asm.la).apply(null,arguments)},je=$._emscripten_bind_DracoUInt8Array_size_0=function(){return(je=$._emscripten_bind_DracoUInt8Array_size_0=$.asm.ma).apply(null,arguments)},Ee=$._emscripten_bind_DracoUInt8Array___destroy___0=function(){return(Ee=$._emscripten_bind_DracoUInt8Array___destroy___0=$.asm.na).apply(null,arguments)},ve=$._emscripten_bind_DracoInt16Array_DracoInt16Array_0=function(){return(ve=$._emscripten_bind_DracoInt16Array_DracoInt16Array_0=$.asm.oa).apply(null,arguments)},Ge=$._emscripten_bind_DracoInt16Array_GetValue_1=function(){return(Ge=$._emscripten_bind_DracoInt16Array_GetValue_1=$.asm.pa).apply(null,arguments)},Oe=$._emscripten_bind_DracoInt16Array_size_0=function(){return(Oe=$._emscripten_bind_DracoInt16Array_size_0=$.asm.qa).apply(null,arguments)},Pe=$._emscripten_bind_DracoInt16Array___destroy___0=function(){return(Pe=$._emscripten_bind_DracoInt16Array___destroy___0=$.asm.ra).apply(null,arguments)},Re=$._emscripten_bind_DracoUInt16Array_DracoUInt16Array_0=function(){return(Re=$._emscripten_bind_DracoUInt16Array_DracoUInt16Array_0=$.asm.sa).apply(null,arguments)},Se=$._emscripten_bind_DracoUInt16Array_GetValue_1=function(){return(Se=$._emscripten_bind_DracoUInt16Array_GetValue_1=$.asm.ta).apply(null,arguments)},ge=$._emscripten_bind_DracoUInt16Array_size_0=function(){return(ge=$._emscripten_bind_DracoUInt16Array_size_0=$.asm.ua).apply(null,arguments)},Me=$._emscripten_bind_DracoUInt16Array___destroy___0=function(){return(Me=$._emscripten_bind_DracoUInt16Array___destroy___0=$.asm.va).apply(null,arguments)},Ne=$._emscripten_bind_DracoInt32Array_DracoInt32Array_0=function(){return(Ne=$._emscripten_bind_DracoInt32Array_DracoInt32Array_0=$.asm.wa).apply(null,arguments)},Ue=$._emscripten_bind_DracoInt32Array_GetValue_1=function(){return(Ue=$._emscripten_bind_DracoInt32Array_GetValue_1=$.asm.xa).apply(null,arguments)},Fe=$._emscripten_bind_DracoInt32Array_size_0=function(){return(Fe=$._emscripten_bind_DracoInt32Array_size_0=$.asm.ya).apply(null,arguments)},Ce=$._emscripten_bind_DracoInt32Array___destroy___0=function(){return(Ce=$._emscripten_bind_DracoInt32Array___destroy___0=$.asm.za).apply(null,arguments)},Le=$._emscripten_bind_DracoUInt32Array_DracoUInt32Array_0=function(){return(Le=$._emscripten_bind_DracoUInt32Array_DracoUInt32Array_0=$.asm.Aa).apply(null,arguments)},$e=$._emscripten_bind_DracoUInt32Array_GetValue_1=function(){return($e=$._emscripten_bind_DracoUInt32Array_GetValue_1=$.asm.Ba).apply(null,arguments)},we=$._emscripten_bind_DracoUInt32Array_size_0=function(){return(we=$._emscripten_bind_DracoUInt32Array_size_0=$.asm.Ca).apply(null,arguments)},ze=$._emscripten_bind_DracoUInt32Array___destroy___0=function(){return(ze=$._emscripten_bind_DracoUInt32Array___destroy___0=$.asm.Da).apply(null,arguments)},Ve=$._emscripten_bind_MetadataQuerier_MetadataQuerier_0=function(){return(Ve=$._emscripten_bind_MetadataQuerier_MetadataQuerier_0=$.asm.Ea).apply(null,arguments)},Be=$._emscripten_bind_MetadataQuerier_HasEntry_2=function(){return(Be=$._emscripten_bind_MetadataQuerier_HasEntry_2=$.asm.Fa).apply(null,arguments)},We=$._emscripten_bind_MetadataQuerier_GetIntEntry_2=function(){return(We=$._emscripten_bind_MetadataQuerier_GetIntEntry_2=$.asm.Ga).apply(null,arguments)},ke=$._emscripten_bind_MetadataQuerier_GetIntEntryArray_3=function(){return(ke=$._emscripten_bind_MetadataQuerier_GetIntEntryArray_3=$.asm.Ha).apply(null,arguments)},Qe=$._emscripten_bind_MetadataQuerier_GetDoubleEntry_2=function(){return(Qe=$._emscripten_bind_MetadataQuerier_GetDoubleEntry_2=$.asm.Ia).apply(null,arguments)},xe=$._emscripten_bind_MetadataQuerier_GetStringEntry_2=function(){return(xe=$._emscripten_bind_MetadataQuerier_GetStringEntry_2=$.asm.Ja).apply(null,arguments)},Ye=$._emscripten_bind_MetadataQuerier_NumEntries_1=function(){return(Ye=$._emscripten_bind_MetadataQuerier_NumEntries_1=$.asm.Ka).apply(null,arguments)},He=$._emscripten_bind_MetadataQuerier_GetEntryName_2=function(){return(He=$._emscripten_bind_MetadataQuerier_GetEntryName_2=$.asm.La).apply(null,arguments)},qe=$._emscripten_bind_MetadataQuerier___destroy___0=function(){return(qe=$._emscripten_bind_MetadataQuerier___destroy___0=$.asm.Ma).apply(null,arguments)},Xe=$._emscripten_bind_Decoder_Decoder_0=function(){return(Xe=$._emscripten_bind_Decoder_Decoder_0=$.asm.Na).apply(null,arguments)},Ke=$._emscripten_bind_Decoder_DecodeArrayToPointCloud_3=function(){return(Ke=$._emscripten_bind_Decoder_DecodeArrayToPointCloud_3=$.asm.Oa).apply(null,arguments)},Je=$._emscripten_bind_Decoder_DecodeArrayToMesh_3=function(){return(Je=$._emscripten_bind_Decoder_DecodeArrayToMesh_3=$.asm.Pa).apply(null,arguments)},Ze=$._emscripten_bind_Decoder_GetAttributeId_2=function(){return(Ze=$._emscripten_bind_Decoder_GetAttributeId_2=$.asm.Qa).apply(null,arguments)},tr=$._emscripten_bind_Decoder_GetAttributeIdByName_2=function(){return(tr=$._emscripten_bind_Decoder_GetAttributeIdByName_2=$.asm.Ra).apply(null,arguments)},er=$._emscripten_bind_Decoder_GetAttributeIdByMetadataEntry_3=function(){return(er=$._emscripten_bind_Decoder_GetAttributeIdByMetadataEntry_3=$.asm.Sa).apply(null,arguments)},rr=$._emscripten_bind_Decoder_GetAttribute_2=function(){return(rr=$._emscripten_bind_Decoder_GetAttribute_2=$.asm.Ta).apply(null,arguments)},nr=$._emscripten_bind_Decoder_GetAttributeByUniqueId_2=function(){return(nr=$._emscripten_bind_Decoder_GetAttributeByUniqueId_2=$.asm.Ua).apply(null,arguments)},or=$._emscripten_bind_Decoder_GetMetadata_1=function(){return(or=$._emscripten_bind_Decoder_GetMetadata_1=$.asm.Va).apply(null,arguments)},_r=$._emscripten_bind_Decoder_GetAttributeMetadata_2=function(){return(_r=$._emscripten_bind_Decoder_GetAttributeMetadata_2=$.asm.Wa).apply(null,arguments)},ir=$._emscripten_bind_Decoder_GetFaceFromMesh_3=function(){return(ir=$._emscripten_bind_Decoder_GetFaceFromMesh_3=$.asm.Xa).apply(null,arguments)},pr=$._emscripten_bind_Decoder_GetTriangleStripsFromMesh_2=function(){return(pr=$._emscripten_bind_Decoder_GetTriangleStripsFromMesh_2=$.asm.Ya).apply(null,arguments)},ar=$._emscripten_bind_Decoder_GetTrianglesUInt16Array_3=function(){return(ar=$._emscripten_bind_Decoder_GetTrianglesUInt16Array_3=$.asm.Za).apply(null,arguments)},cr=$._emscripten_bind_Decoder_GetTrianglesUInt32Array_3=function(){return(cr=$._emscripten_bind_Decoder_GetTrianglesUInt32Array_3=$.asm._a).apply(null,arguments)},sr=$._emscripten_bind_Decoder_GetAttributeFloat_3=function(){return(sr=$._emscripten_bind_Decoder_GetAttributeFloat_3=$.asm.$a).apply(null,arguments)},ur=$._emscripten_bind_Decoder_GetAttributeFloatForAllPoints_3=function(){return(ur=$._emscripten_bind_Decoder_GetAttributeFloatForAllPoints_3=$.asm.ab).apply(null,arguments)},lr=$._emscripten_bind_Decoder_GetAttributeIntForAllPoints_3=function(){return(lr=$._emscripten_bind_Decoder_GetAttributeIntForAllPoints_3=$.asm.bb).apply(null,arguments)},yr=$._emscripten_bind_Decoder_GetAttributeInt8ForAllPoints_3=function(){return(yr=$._emscripten_bind_Decoder_GetAttributeInt8ForAllPoints_3=$.asm.cb).apply(null,arguments)},fr=$._emscripten_bind_Decoder_GetAttributeUInt8ForAllPoints_3=function(){return(fr=$._emscripten_bind_Decoder_GetAttributeUInt8ForAllPoints_3=$.asm.db).apply(null,arguments)},mr=$._emscripten_bind_Decoder_GetAttributeInt16ForAllPoints_3=function(){return(mr=$._emscripten_bind_Decoder_GetAttributeInt16ForAllPoints_3=$.asm.eb).apply(null,arguments)},dr=$._emscripten_bind_Decoder_GetAttributeUInt16ForAllPoints_3=function(){return(dr=$._emscripten_bind_Decoder_GetAttributeUInt16ForAllPoints_3=$.asm.fb).apply(null,arguments)},br=$._emscripten_bind_Decoder_GetAttributeInt32ForAllPoints_3=function(){return(br=$._emscripten_bind_Decoder_GetAttributeInt32ForAllPoints_3=$.asm.gb).apply(null,arguments)},hr=$._emscripten_bind_Decoder_GetAttributeUInt32ForAllPoints_3=function(){return(hr=$._emscripten_bind_Decoder_GetAttributeUInt32ForAllPoints_3=$.asm.hb).apply(null,arguments)},Ar=$._emscripten_bind_Decoder_GetAttributeDataArrayForAllPoints_5=function(){return(Ar=$._emscripten_bind_Decoder_GetAttributeDataArrayForAllPoints_5=$.asm.ib).apply(null,arguments)},Tr=$._emscripten_bind_Decoder_SkipAttributeTransform_1=function(){return(Tr=$._emscripten_bind_Decoder_SkipAttributeTransform_1=$.asm.jb).apply(null,arguments)},Dr=$._emscripten_bind_Decoder_GetEncodedGeometryType_Deprecated_1=function(){return(Dr=$._emscripten_bind_Decoder_GetEncodedGeometryType_Deprecated_1=$.asm.kb).apply(null,arguments)},Ir=$._emscripten_bind_Decoder_DecodeBufferToPointCloud_2=function(){return(Ir=$._emscripten_bind_Decoder_DecodeBufferToPointCloud_2=$.asm.lb).apply(null,arguments)},jr=$._emscripten_bind_Decoder_DecodeBufferToMesh_2=function(){return(jr=$._emscripten_bind_Decoder_DecodeBufferToMesh_2=$.asm.mb).apply(null,arguments)},Er=$._emscripten_bind_Decoder___destroy___0=function(){return(Er=$._emscripten_bind_Decoder___destroy___0=$.asm.nb).apply(null,arguments)},vr=$._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_INVALID_TRANSFORM=function(){return(vr=$._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_INVALID_TRANSFORM=$.asm.ob).apply(null,arguments)},Gr=$._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_NO_TRANSFORM=function(){return(Gr=$._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_NO_TRANSFORM=$.asm.pb).apply(null,arguments)},Or=$._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_QUANTIZATION_TRANSFORM=function(){return(Or=$._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_QUANTIZATION_TRANSFORM=$.asm.qb).apply(null,arguments)},Pr=$._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_OCTAHEDRON_TRANSFORM=function(){return(Pr=$._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_OCTAHEDRON_TRANSFORM=$.asm.rb).apply(null,arguments)},Rr=$._emscripten_enum_draco_GeometryAttribute_Type_INVALID=function(){return(Rr=$._emscripten_enum_draco_GeometryAttribute_Type_INVALID=$.asm.sb).apply(null,arguments)},Sr=$._emscripten_enum_draco_GeometryAttribute_Type_POSITION=function(){return(Sr=$._emscripten_enum_draco_GeometryAttribute_Type_POSITION=$.asm.tb).apply(null,arguments)},gr=$._emscripten_enum_draco_GeometryAttribute_Type_NORMAL=function(){return(gr=$._emscripten_enum_draco_GeometryAttribute_Type_NORMAL=$.asm.ub).apply(null,arguments)},Mr=$._emscripten_enum_draco_GeometryAttribute_Type_COLOR=function(){return(Mr=$._emscripten_enum_draco_GeometryAttribute_Type_COLOR=$.asm.vb).apply(null,arguments)},Nr=$._emscripten_enum_draco_GeometryAttribute_Type_TEX_COORD=function(){return(Nr=$._emscripten_enum_draco_GeometryAttribute_Type_TEX_COORD=$.asm.wb).apply(null,arguments)},Ur=$._emscripten_enum_draco_GeometryAttribute_Type_GENERIC=function(){return(Ur=$._emscripten_enum_draco_GeometryAttribute_Type_GENERIC=$.asm.xb).apply(null,arguments)},Fr=$._emscripten_enum_draco_EncodedGeometryType_INVALID_GEOMETRY_TYPE=function(){return(Fr=$._emscripten_enum_draco_EncodedGeometryType_INVALID_GEOMETRY_TYPE=$.asm.yb).apply(null,arguments)},Cr=$._emscripten_enum_draco_EncodedGeometryType_POINT_CLOUD=function(){return(Cr=$._emscripten_enum_draco_EncodedGeometryType_POINT_CLOUD=$.asm.zb).apply(null,arguments)},Lr=$._emscripten_enum_draco_EncodedGeometryType_TRIANGULAR_MESH=function(){return(Lr=$._emscripten_enum_draco_EncodedGeometryType_TRIANGULAR_MESH=$.asm.Ab).apply(null,arguments)},$r=$._emscripten_enum_draco_DataType_DT_INVALID=function(){return($r=$._emscripten_enum_draco_DataType_DT_INVALID=$.asm.Bb).apply(null,arguments)},wr=$._emscripten_enum_draco_DataType_DT_INT8=function(){return(wr=$._emscripten_enum_draco_DataType_DT_INT8=$.asm.Cb).apply(null,arguments)},zr=$._emscripten_enum_draco_DataType_DT_UINT8=function(){return(zr=$._emscripten_enum_draco_DataType_DT_UINT8=$.asm.Db).apply(null,arguments)},Vr=$._emscripten_enum_draco_DataType_DT_INT16=function(){return(Vr=$._emscripten_enum_draco_DataType_DT_INT16=$.asm.Eb).apply(null,arguments)},Br=$._emscripten_enum_draco_DataType_DT_UINT16=function(){return(Br=$._emscripten_enum_draco_DataType_DT_UINT16=$.asm.Fb).apply(null,arguments)},Wr=$._emscripten_enum_draco_DataType_DT_INT32=function(){return(Wr=$._emscripten_enum_draco_DataType_DT_INT32=$.asm.Gb).apply(null,arguments)},kr=$._emscripten_enum_draco_DataType_DT_UINT32=function(){return(kr=$._emscripten_enum_draco_DataType_DT_UINT32=$.asm.Hb).apply(null,arguments)},Qr=$._emscripten_enum_draco_DataType_DT_INT64=function(){return(Qr=$._emscripten_enum_draco_DataType_DT_INT64=$.asm.Ib).apply(null,arguments)},xr=$._emscripten_enum_draco_DataType_DT_UINT64=function(){return(xr=$._emscripten_enum_draco_DataType_DT_UINT64=$.asm.Jb).apply(null,arguments)},Yr=$._emscripten_enum_draco_DataType_DT_FLOAT32=function(){return(Yr=$._emscripten_enum_draco_DataType_DT_FLOAT32=$.asm.Kb).apply(null,arguments)},Hr=$._emscripten_enum_draco_DataType_DT_FLOAT64=function(){return(Hr=$._emscripten_enum_draco_DataType_DT_FLOAT64=$.asm.Lb).apply(null,arguments)},qr=$._emscripten_enum_draco_DataType_DT_BOOL=function(){return(qr=$._emscripten_enum_draco_DataType_DT_BOOL=$.asm.Mb).apply(null,arguments)},Xr=$._emscripten_enum_draco_DataType_DT_TYPES_COUNT=function(){return(Xr=$._emscripten_enum_draco_DataType_DT_TYPES_COUNT=$.asm.Nb).apply(null,arguments)},Kr=$._emscripten_enum_draco_StatusCode_OK=function(){return(Kr=$._emscripten_enum_draco_StatusCode_OK=$.asm.Ob).apply(null,arguments)},Jr=$._emscripten_enum_draco_StatusCode_DRACO_ERROR=function(){return(Jr=$._emscripten_enum_draco_StatusCode_DRACO_ERROR=$.asm.Pb).apply(null,arguments)},Zr=$._emscripten_enum_draco_StatusCode_IO_ERROR=function(){return(Zr=$._emscripten_enum_draco_StatusCode_IO_ERROR=$.asm.Qb).apply(null,arguments)},tn=$._emscripten_enum_draco_StatusCode_INVALID_PARAMETER=function(){return(tn=$._emscripten_enum_draco_StatusCode_INVALID_PARAMETER=$.asm.Rb).apply(null,arguments)},en=$._emscripten_enum_draco_StatusCode_UNSUPPORTED_VERSION=function(){return(en=$._emscripten_enum_draco_StatusCode_UNSUPPORTED_VERSION=$.asm.Sb).apply(null,arguments)},rn=$._emscripten_enum_draco_StatusCode_UNKNOWN_VERSION=function(){return(rn=$._emscripten_enum_draco_StatusCode_UNKNOWN_VERSION=$.asm.Tb).apply(null,arguments)},nn=$._malloc=function(){return(nn=$._malloc=$.asm.Ub).apply(null,arguments)};if($._free=function(){return($._free=$.asm.Vb).apply(null,arguments)},mt=function t(){Dt||s(),Dt||(mt=t)},$.run=s,$.preInit)for("function"==typeof $.preInit&&($.preInit=[$.preInit]);0<$.preInit.length;)$.preInit.pop()();s(),u.prototype=Object.create(u.prototype),u.prototype.constructor=u,u.prototype.__class__=u,u.__cache__={},$.WrapperObject=u,$.getCache=l,$.wrapPointer=y,$.castObject=function(t,e){return y(t.ptr,e)},$.NULL=y(0),$.destroy=function(t){if(!t.__destroy__)throw"Error: Cannot destroy object. (Did you create it yourself?)";t.__destroy__(),delete l(t.__class__)[t.ptr]},$.compare=function(t,e){return t.ptr===e.ptr},$.getPointer=function(t){return t.ptr},$.getClass=function(t){return t.__class__};var on={buffer:0,size:0,pos:0,temps:[],needed:0,prepare:function(){if(on.needed){for(var t=0;t<on.temps.length;t++)$._free(on.temps[t]);on.temps.length=0,$._free(on.buffer),on.buffer=0,on.size+=on.needed,on.needed=0}on.buffer||(on.size+=128,on.buffer=$._malloc(on.size),on.buffer||_(void 0)),on.pos=0},alloc:function(t,e){return on.buffer||_(void 0),t=(t=t.length*e.BYTES_PER_ELEMENT)+7&-8,on.pos+t>=on.size?(0<t||_(void 0),on.needed+=t,e=$._malloc(t),on.temps.push(e)):(e=on.buffer+on.pos,on.pos+=t),e},copy:function(t,e,r){switch(r>>>=0,e.BYTES_PER_ELEMENT){case 2:r>>>=1;break;case 4:r>>>=2;break;case 8:r>>>=3}for(var n=0;n<t.length;n++)e[r+n]=t[n]}};return d.prototype=Object.create(u.prototype),d.prototype.constructor=d,d.prototype.__class__=d,d.__cache__={},$.VoidPtr=d,d.prototype.__destroy__=d.prototype.__destroy__=function(){It(this.ptr)},b.prototype=Object.create(u.prototype),b.prototype.constructor=b,b.prototype.__class__=b,b.__cache__={},$.DecoderBuffer=b,b.prototype.Init=b.prototype.Init=function(t,e){var r=this.ptr;on.prepare(),"object"==typeof t&&(t=m(t)),e&&"object"==typeof e&&(e=e.ptr),Et(r,t,e)},b.prototype.__destroy__=b.prototype.__destroy__=function(){vt(this.ptr)},h.prototype=Object.create(u.prototype),h.prototype.constructor=h,h.prototype.__class__=h,h.__cache__={},$.AttributeTransformData=h,h.prototype.transform_type=h.prototype.transform_type=function(){return Ot(this.ptr)},h.prototype.__destroy__=h.prototype.__destroy__=function(){Pt(this.ptr)},A.prototype=Object.create(u.prototype),A.prototype.constructor=A,A.prototype.__class__=A,A.__cache__={},$.GeometryAttribute=A,A.prototype.__destroy__=A.prototype.__destroy__=function(){St(this.ptr)},T.prototype=Object.create(u.prototype),T.prototype.constructor=T,T.prototype.__class__=T,T.__cache__={},$.PointAttribute=T,T.prototype.size=T.prototype.size=function(){return Mt(this.ptr)},T.prototype.GetAttributeTransformData=T.prototype.GetAttributeTransformData=function(){return y(Nt(this.ptr),h)},T.prototype.attribute_type=T.prototype.attribute_type=function(){return Ut(this.ptr)},T.prototype.data_type=T.prototype.data_type=function(){return Ft(this.ptr)},T.prototype.num_components=T.prototype.num_components=function(){return Ct(this.ptr)},T.prototype.normalized=T.prototype.normalized=function(){return!!Lt(this.ptr)},T.prototype.byte_stride=T.prototype.byte_stride=function(){return $t(this.ptr)},T.prototype.byte_offset=T.prototype.byte_offset=function(){return wt(this.ptr)},T.prototype.unique_id=T.prototype.unique_id=function(){return zt(this.ptr)},T.prototype.__destroy__=T.prototype.__destroy__=function(){Vt(this.ptr)},D.prototype=Object.create(u.prototype),D.prototype.constructor=D,D.prototype.__class__=D,D.__cache__={},$.AttributeQuantizationTransform=D,D.prototype.InitFromAttribute=D.prototype.InitFromAttribute=function(t){var e=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),!!Wt(e,t)},D.prototype.quantization_bits=D.prototype.quantization_bits=function(){return kt(this.ptr)},D.prototype.min_value=D.prototype.min_value=function(t){var e=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),Qt(e,t)},D.prototype.range=D.prototype.range=function(){return xt(this.ptr)},D.prototype.__destroy__=D.prototype.__destroy__=function(){Yt(this.ptr)},I.prototype=Object.create(u.prototype),I.prototype.constructor=I,I.prototype.__class__=I,I.__cache__={},$.AttributeOctahedronTransform=I,I.prototype.InitFromAttribute=I.prototype.InitFromAttribute=function(t){var e=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),!!qt(e,t)},I.prototype.quantization_bits=I.prototype.quantization_bits=function(){return Xt(this.ptr)},I.prototype.__destroy__=I.prototype.__destroy__=function(){Kt(this.ptr)},j.prototype=Object.create(u.prototype),j.prototype.constructor=j,j.prototype.__class__=j,j.__cache__={},$.PointCloud=j,j.prototype.num_attributes=j.prototype.num_attributes=function(){return Zt(this.ptr)},j.prototype.num_points=j.prototype.num_points=function(){return te(this.ptr)},j.prototype.__destroy__=j.prototype.__destroy__=function(){ee(this.ptr)},E.prototype=Object.create(u.prototype),E.prototype.constructor=E,E.prototype.__class__=E,E.__cache__={},$.Mesh=E,E.prototype.num_faces=E.prototype.num_faces=function(){return ne(this.ptr)},E.prototype.num_attributes=E.prototype.num_attributes=function(){return oe(this.ptr)},E.prototype.num_points=E.prototype.num_points=function(){return _e(this.ptr)},E.prototype.__destroy__=E.prototype.__destroy__=function(){ie(this.ptr)},v.prototype=Object.create(u.prototype),v.prototype.constructor=v,v.prototype.__class__=v,v.__cache__={},$.Metadata=v,v.prototype.__destroy__=v.prototype.__destroy__=function(){ae(this.ptr)},G.prototype=Object.create(u.prototype),G.prototype.constructor=G,G.prototype.__class__=G,G.__cache__={},$.Status=G,G.prototype.code=G.prototype.code=function(){return ce(this.ptr)},G.prototype.ok=G.prototype.ok=function(){return!!se(this.ptr)},G.prototype.error_msg=G.prototype.error_msg=function(){return n(ue(this.ptr))},G.prototype.__destroy__=G.prototype.__destroy__=function(){le(this.ptr)},O.prototype=Object.create(u.prototype),O.prototype.constructor=O,O.prototype.__class__=O,O.__cache__={},$.DracoFloat32Array=O,O.prototype.GetValue=O.prototype.GetValue=function(t){var e=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),fe(e,t)},O.prototype.size=O.prototype.size=function(){return me(this.ptr)},O.prototype.__destroy__=O.prototype.__destroy__=function(){de(this.ptr)},P.prototype=Object.create(u.prototype),P.prototype.constructor=P,P.prototype.__class__=P,P.__cache__={},$.DracoInt8Array=P,P.prototype.GetValue=P.prototype.GetValue=function(t){var e=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),he(e,t)},P.prototype.size=P.prototype.size=function(){return Ae(this.ptr)},P.prototype.__destroy__=P.prototype.__destroy__=function(){Te(this.ptr)},R.prototype=Object.create(u.prototype),R.prototype.constructor=R,R.prototype.__class__=R,R.__cache__={},$.DracoUInt8Array=R,R.prototype.GetValue=R.prototype.GetValue=function(t){var e=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),Ie(e,t)},R.prototype.size=R.prototype.size=function(){return je(this.ptr)},R.prototype.__destroy__=R.prototype.__destroy__=function(){Ee(this.ptr)},S.prototype=Object.create(u.prototype),S.prototype.constructor=S,S.prototype.__class__=S,S.__cache__={},$.DracoInt16Array=S,S.prototype.GetValue=S.prototype.GetValue=function(t){var e=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),Ge(e,t)},S.prototype.size=S.prototype.size=function(){return Oe(this.ptr)},S.prototype.__destroy__=S.prototype.__destroy__=function(){Pe(this.ptr)},g.prototype=Object.create(u.prototype),g.prototype.constructor=g,g.prototype.__class__=g,g.__cache__={},$.DracoUInt16Array=g,g.prototype.GetValue=g.prototype.GetValue=function(t){var e=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),Se(e,t)},g.prototype.size=g.prototype.size=function(){return ge(this.ptr)},g.prototype.__destroy__=g.prototype.__destroy__=function(){Me(this.ptr)},M.prototype=Object.create(u.prototype),M.prototype.constructor=M,M.prototype.__class__=M,M.__cache__={},$.DracoInt32Array=M,M.prototype.GetValue=M.prototype.GetValue=function(t){var e=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),Ue(e,t)},M.prototype.size=M.prototype.size=function(){return Fe(this.ptr)},M.prototype.__destroy__=M.prototype.__destroy__=function(){Ce(this.ptr)},N.prototype=Object.create(u.prototype),N.prototype.constructor=N,N.prototype.__class__=N,N.__cache__={},$.DracoUInt32Array=N,N.prototype.GetValue=N.prototype.GetValue=function(t){var e=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),$e(e,t)},N.prototype.size=N.prototype.size=function(){return we(this.ptr)},N.prototype.__destroy__=N.prototype.__destroy__=function(){ze(this.ptr)},U.prototype=Object.create(u.prototype),U.prototype.constructor=U,U.prototype.__class__=U,U.__cache__={},$.MetadataQuerier=U,U.prototype.HasEntry=U.prototype.HasEntry=function(t,e){var r=this.ptr;return on.prepare(),t&&"object"==typeof t&&(t=t.ptr),e=e&&"object"==typeof e?e.ptr:f(e),!!Be(r,t,e)},U.prototype.GetIntEntry=U.prototype.GetIntEntry=function(t,e){var r=this.ptr;return on.prepare(),t&&"object"==typeof t&&(t=t.ptr),e=e&&"object"==typeof e?e.ptr:f(e),We(r,t,e)},U.prototype.GetIntEntryArray=U.prototype.GetIntEntryArray=function(t,e,r){var n=this.ptr;on.prepare(),t&&"object"==typeof t&&(t=t.ptr),e=e&&"object"==typeof e?e.ptr:f(e),r&&"object"==typeof r&&(r=r.ptr),ke(n,t,e,r)},U.prototype.GetDoubleEntry=U.prototype.GetDoubleEntry=function(t,e){var r=this.ptr;return on.prepare(),t&&"object"==typeof t&&(t=t.ptr),e=e&&"object"==typeof e?e.ptr:f(e),Qe(r,t,e)},U.prototype.GetStringEntry=U.prototype.GetStringEntry=function(t,e){var r=this.ptr;return on.prepare(),t&&"object"==typeof t&&(t=t.ptr),e=e&&"object"==typeof e?e.ptr:f(e),n(xe(r,t,e))},U.prototype.NumEntries=U.prototype.NumEntries=function(t){var e=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),Ye(e,t)},U.prototype.GetEntryName=U.prototype.GetEntryName=function(t,e){var r=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),n(He(r,t,e))},U.prototype.__destroy__=U.prototype.__destroy__=function(){qe(this.ptr)},F.prototype=Object.create(u.prototype),F.prototype.constructor=F,F.prototype.__class__=F,F.__cache__={},$.Decoder=F,F.prototype.DecodeArrayToPointCloud=F.prototype.DecodeArrayToPointCloud=function(t,e,r){var n=this.ptr;return on.prepare(),"object"==typeof t&&(t=m(t)),e&&"object"==typeof e&&(e=e.ptr),r&&"object"==typeof r&&(r=r.ptr),y(Ke(n,t,e,r),G)},F.prototype.DecodeArrayToMesh=F.prototype.DecodeArrayToMesh=function(t,e,r){var n=this.ptr;return on.prepare(),"object"==typeof t&&(t=m(t)),e&&"object"==typeof e&&(e=e.ptr),r&&"object"==typeof r&&(r=r.ptr),y(Je(n,t,e,r),G)},F.prototype.GetAttributeId=F.prototype.GetAttributeId=function(t,e){var r=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),Ze(r,t,e)},F.prototype.GetAttributeIdByName=F.prototype.GetAttributeIdByName=function(t,e){var r=this.ptr;return on.prepare(),t&&"object"==typeof t&&(t=t.ptr),e=e&&"object"==typeof e?e.ptr:f(e),tr(r,t,e)},F.prototype.GetAttributeIdByMetadataEntry=F.prototype.GetAttributeIdByMetadataEntry=function(t,e,r){var n=this.ptr;return on.prepare(),t&&"object"==typeof t&&(t=t.ptr),e=e&&"object"==typeof e?e.ptr:f(e),r=r&&"object"==typeof r?r.ptr:f(r),er(n,t,e,r)},F.prototype.GetAttribute=F.prototype.GetAttribute=function(t,e){var r=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),y(rr(r,t,e),T)},F.prototype.GetAttributeByUniqueId=F.prototype.GetAttributeByUniqueId=function(t,e){var r=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),y(nr(r,t,e),T)},F.prototype.GetMetadata=F.prototype.GetMetadata=function(t){var e=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),y(or(e,t),v)},F.prototype.GetAttributeMetadata=F.prototype.GetAttributeMetadata=function(t,e){var r=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),y(_r(r,t,e),v)},F.prototype.GetFaceFromMesh=F.prototype.GetFaceFromMesh=function(t,e,r){var n=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),r&&"object"==typeof r&&(r=r.ptr),!!ir(n,t,e,r)},F.prototype.GetTriangleStripsFromMesh=F.prototype.GetTriangleStripsFromMesh=function(t,e){var r=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),pr(r,t,e)},F.prototype.GetTrianglesUInt16Array=F.prototype.GetTrianglesUInt16Array=function(t,e,r){var n=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),r&&"object"==typeof r&&(r=r.ptr),!!ar(n,t,e,r)},F.prototype.GetTrianglesUInt32Array=F.prototype.GetTrianglesUInt32Array=function(t,e,r){var n=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),r&&"object"==typeof r&&(r=r.ptr),!!cr(n,t,e,r)},F.prototype.GetAttributeFloat=F.prototype.GetAttributeFloat=function(t,e,r){var n=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),r&&"object"==typeof r&&(r=r.ptr),!!sr(n,t,e,r)},F.prototype.GetAttributeFloatForAllPoints=F.prototype.GetAttributeFloatForAllPoints=function(t,e,r){var n=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),r&&"object"==typeof r&&(r=r.ptr),!!ur(n,t,e,r)},F.prototype.GetAttributeIntForAllPoints=F.prototype.GetAttributeIntForAllPoints=function(t,e,r){var n=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),r&&"object"==typeof r&&(r=r.ptr),!!lr(n,t,e,r)},F.prototype.GetAttributeInt8ForAllPoints=F.prototype.GetAttributeInt8ForAllPoints=function(t,e,r){var n=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),r&&"object"==typeof r&&(r=r.ptr),!!yr(n,t,e,r)},F.prototype.GetAttributeUInt8ForAllPoints=F.prototype.GetAttributeUInt8ForAllPoints=function(t,e,r){var n=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),r&&"object"==typeof r&&(r=r.ptr),!!fr(n,t,e,r)},F.prototype.GetAttributeInt16ForAllPoints=F.prototype.GetAttributeInt16ForAllPoints=function(t,e,r){var n=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),r&&"object"==typeof r&&(r=r.ptr),!!mr(n,t,e,r)},F.prototype.GetAttributeUInt16ForAllPoints=F.prototype.GetAttributeUInt16ForAllPoints=function(t,e,r){var n=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),r&&"object"==typeof r&&(r=r.ptr),!!dr(n,t,e,r)},F.prototype.GetAttributeInt32ForAllPoints=F.prototype.GetAttributeInt32ForAllPoints=function(t,e,r){var n=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),r&&"object"==typeof r&&(r=r.ptr),!!br(n,t,e,r)},F.prototype.GetAttributeUInt32ForAllPoints=F.prototype.GetAttributeUInt32ForAllPoints=function(t,e,r){var n=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),r&&"object"==typeof r&&(r=r.ptr),!!hr(n,t,e,r)},F.prototype.GetAttributeDataArrayForAllPoints=F.prototype.GetAttributeDataArrayForAllPoints=function(t,e,r,n,o){var _=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),r&&"object"==typeof r&&(r=r.ptr),n&&"object"==typeof n&&(n=n.ptr),o&&"object"==typeof o&&(o=o.ptr),!!Ar(_,t,e,r,n,o)},F.prototype.SkipAttributeTransform=F.prototype.SkipAttributeTransform=function(t){var e=this.ptr;t&&"object"==typeof t&&(t=t.ptr),Tr(e,t)},F.prototype.GetEncodedGeometryType_Deprecated=F.prototype.GetEncodedGeometryType_Deprecated=function(t){var e=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),Dr(e,t)},F.prototype.DecodeBufferToPointCloud=F.prototype.DecodeBufferToPointCloud=function(t,e){var r=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),y(Ir(r,t,e),G)},F.prototype.DecodeBufferToMesh=F.prototype.DecodeBufferToMesh=function(t,e){var r=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),y(jr(r,t,e),G)},F.prototype.__destroy__=F.prototype.__destroy__=function(){Er(this.ptr)},function(){function t(){$.ATTRIBUTE_INVALID_TRANSFORM=vr(),$.ATTRIBUTE_NO_TRANSFORM=Gr(),$.ATTRIBUTE_QUANTIZATION_TRANSFORM=Or(),$.ATTRIBUTE_OCTAHEDRON_TRANSFORM=Pr(),$.INVALID=Rr(),$.POSITION=Sr(),$.NORMAL=gr(),$.COLOR=Mr(),$.TEX_COORD=Nr(),$.GENERIC=Ur(),$.INVALID_GEOMETRY_TYPE=Fr(),$.POINT_CLOUD=Cr(),$.TRIANGULAR_MESH=Lr(),$.DT_INVALID=$r(),$.DT_INT8=wr(),$.DT_UINT8=zr(),$.DT_INT16=Vr(),$.DT_UINT16=Br(),$.DT_INT32=Wr(),$.DT_UINT32=kr(),$.DT_INT64=Qr(),$.DT_UINT64=xr(),$.DT_FLOAT32=Yr(),$.DT_FLOAT64=Hr(),$.DT_BOOL=qr(),$.DT_TYPES_COUNT=Xr(),$.OK=Kr(),$.DRACO_ERROR=Jr(),$.IO_ERROR=Zr(),$.INVALID_PARAMETER=tn(),$.UNSUPPORTED_VERSION=en(),$.UNKNOWN_VERSION=rn()}lt?t():st.unshift(t)}(),"function"==typeof $.onModuleParsed&&$.onModuleParsed(),$.Decoder.prototype.GetEncodedGeometryType=function(t){if(t.__class__&&t.__class__===$.DecoderBuffer)return $.Decoder.prototype.GetEncodedGeometryType_Deprecated(t);if(8>t.byteLength)return $.INVALID_GEOMETRY_TYPE;switch(t[7]){case 0:return $.POINT_CLOUD;case 1:return $.TRIANGULAR_MESH;default:return $.INVALID_GEOMETRY_TYPE}},e.ready}}();"object"==typeof exports&&"object"==typeof module?module.exports=DracoDecoderModule:"function"==typeof define&&define.amd?define([],(function(){return DracoDecoderModule})):"object"==typeof exports&&(exports.DracoDecoderModule=DracoDecoderModule);
@@ -1 +0,0 @@
1
- !function(t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).pako=t()}((function(){return function t(e,a,n){function r(s,h){if(!a[s]){if(!e[s]){var l="function"==typeof require&&require;if(!h&&l)return l(s,!0);if(i)return i(s,!0);var o=new Error("Cannot find module '"+s+"'");throw o.code="MODULE_NOT_FOUND",o}var _=a[s]={exports:{}};e[s][0].call(_.exports,(function(t){return r(e[s][1][t]||t)}),_,_.exports,t,e,a,n)}return a[s].exports}for(var i="function"==typeof require&&require,s=0;s<n.length;s++)r(n[s]);return r}({1:[function(t,e,a){"use strict";var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;a.assign=function(t){for(var e,a,n=Array.prototype.slice.call(arguments,1);n.length;){var r=n.shift();if(r){if("object"!=typeof r)throw new TypeError(r+"must be non-object");for(var i in r)e=r,a=i,Object.prototype.hasOwnProperty.call(e,a)&&(t[i]=r[i])}}return t},a.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var r={arraySet:function(t,e,a,n,r){if(e.subarray&&t.subarray)t.set(e.subarray(a,a+n),r);else for(var i=0;i<n;i++)t[r+i]=e[a+i]},flattenChunks:function(t){var e,a,n,r,i,s;for(e=n=0,a=t.length;e<a;e++)n+=t[e].length;for(s=new Uint8Array(n),e=r=0,a=t.length;e<a;e++)i=t[e],s.set(i,r),r+=i.length;return s}},i={arraySet:function(t,e,a,n,r){for(var i=0;i<n;i++)t[r+i]=e[a+i]},flattenChunks:function(t){return[].concat.apply([],t)}};a.setTyped=function(t){t?(a.Buf8=Uint8Array,a.Buf16=Uint16Array,a.Buf32=Int32Array,a.assign(a,r)):(a.Buf8=Array,a.Buf16=Array,a.Buf32=Array,a.assign(a,i))},a.setTyped(n)},{}],2:[function(t,e,a){"use strict";var n=t("./common"),r=!0,i=!0;try{String.fromCharCode.apply(null,[0])}catch(t){r=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){i=!1}for(var s=new n.Buf8(256),h=0;h<256;h++)s[h]=252<=h?6:248<=h?5:240<=h?4:224<=h?3:192<=h?2:1;function l(t,e){if(e<65534&&(t.subarray&&i||!t.subarray&&r))return String.fromCharCode.apply(null,n.shrinkBuf(t,e));for(var a="",s=0;s<e;s++)a+=String.fromCharCode(t[s]);return a}s[254]=s[254]=1,a.string2buf=function(t){var e,a,r,i,s,h=t.length,l=0;for(i=0;i<h;i++)55296==(64512&(a=t.charCodeAt(i)))&&i+1<h&&56320==(64512&(r=t.charCodeAt(i+1)))&&(a=65536+(a-55296<<10)+(r-56320),i++),l+=a<128?1:a<2048?2:a<65536?3:4;for(e=new n.Buf8(l),i=s=0;s<l;i++)55296==(64512&(a=t.charCodeAt(i)))&&i+1<h&&56320==(64512&(r=t.charCodeAt(i+1)))&&(a=65536+(a-55296<<10)+(r-56320),i++),a<128?e[s++]=a:(a<2048?e[s++]=192|a>>>6:(a<65536?e[s++]=224|a>>>12:(e[s++]=240|a>>>18,e[s++]=128|a>>>12&63),e[s++]=128|a>>>6&63),e[s++]=128|63&a);return e},a.buf2binstring=function(t){return l(t,t.length)},a.binstring2buf=function(t){for(var e=new n.Buf8(t.length),a=0,r=e.length;a<r;a++)e[a]=t.charCodeAt(a);return e},a.buf2string=function(t,e){var a,n,r,i,h=e||t.length,o=new Array(2*h);for(a=n=0;a<h;)if((r=t[a++])<128)o[n++]=r;else if(4<(i=s[r]))o[n++]=65533,a+=i-1;else{for(r&=2===i?31:3===i?15:7;1<i&&a<h;)r=r<<6|63&t[a++],i--;1<i?o[n++]=65533:r<65536?o[n++]=r:(r-=65536,o[n++]=55296|r>>10&1023,o[n++]=56320|1023&r)}return l(o,n)},a.utf8border=function(t,e){var a;for((e=e||t.length)>t.length&&(e=t.length),a=e-1;0<=a&&128==(192&t[a]);)a--;return a<0||0===a?e:a+s[t[a]]>e?a:e}},{"./common":1}],3:[function(t,e,a){"use strict";e.exports=function(t,e,a,n){for(var r=65535&t|0,i=t>>>16&65535|0,s=0;0!==a;){for(a-=s=2e3<a?2e3:a;i=i+(r=r+e[n++]|0)|0,--s;);r%=65521,i%=65521}return r|i<<16|0}},{}],4:[function(t,e,a){"use strict";var n=function(){for(var t,e=[],a=0;a<256;a++){t=a;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[a]=t}return e}();e.exports=function(t,e,a,r){var i=n,s=r+a;t^=-1;for(var h=r;h<s;h++)t=t>>>8^i[255&(t^e[h])];return-1^t}},{}],5:[function(t,e,a){"use strict";var n,r=t("../utils/common"),i=t("./trees"),s=t("./adler32"),h=t("./crc32"),l=t("./messages"),o=-2,_=258,d=262,u=113;function f(t,e){return t.msg=l[e],e}function c(t){return(t<<1)-(4<t?9:0)}function p(t){for(var e=t.length;0<=--e;)t[e]=0}function g(t){var e=t.state,a=e.pending;a>t.avail_out&&(a=t.avail_out),0!==a&&(r.arraySet(t.output,e.pending_buf,e.pending_out,a,t.next_out),t.next_out+=a,e.pending_out+=a,t.total_out+=a,t.avail_out-=a,e.pending-=a,0===e.pending&&(e.pending_out=0))}function m(t,e){i._tr_flush_block(t,0<=t.block_start?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,g(t.strm)}function b(t,e){t.pending_buf[t.pending++]=e}function v(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function w(t,e){var a,n,r=t.max_chain_length,i=t.strstart,s=t.prev_length,h=t.nice_match,l=t.strstart>t.w_size-d?t.strstart-(t.w_size-d):0,o=t.window,u=t.w_mask,f=t.prev,c=t.strstart+_,p=o[i+s-1],g=o[i+s];t.prev_length>=t.good_match&&(r>>=2),h>t.lookahead&&(h=t.lookahead);do{if(o[(a=e)+s]===g&&o[a+s-1]===p&&o[a]===o[i]&&o[++a]===o[i+1]){i+=2,a++;do{}while(o[++i]===o[++a]&&o[++i]===o[++a]&&o[++i]===o[++a]&&o[++i]===o[++a]&&o[++i]===o[++a]&&o[++i]===o[++a]&&o[++i]===o[++a]&&o[++i]===o[++a]&&i<c);if(n=_-(c-i),i=c-_,s<n){if(t.match_start=e,h<=(s=n))break;p=o[i+s-1],g=o[i+s]}}}while((e=f[e&u])>l&&0!=--r);return s<=t.lookahead?s:t.lookahead}function y(t){var e,a,n,i,l,o,_,u,f,c,p=t.w_size;do{if(i=t.window_size-t.lookahead-t.strstart,t.strstart>=p+(p-d)){for(r.arraySet(t.window,t.window,p,p,0),t.match_start-=p,t.strstart-=p,t.block_start-=p,e=a=t.hash_size;n=t.head[--e],t.head[e]=p<=n?n-p:0,--a;);for(e=a=p;n=t.prev[--e],t.prev[e]=p<=n?n-p:0,--a;);i+=p}if(0===t.strm.avail_in)break;if(o=t.strm,_=t.window,u=t.strstart+t.lookahead,c=void 0,(f=i)<(c=o.avail_in)&&(c=f),a=0===c?0:(o.avail_in-=c,r.arraySet(_,o.input,o.next_in,c,u),1===o.state.wrap?o.adler=s(o.adler,_,c,u):2===o.state.wrap&&(o.adler=h(o.adler,_,c,u)),o.next_in+=c,o.total_in+=c,c),t.lookahead+=a,t.lookahead+t.insert>=3)for(l=t.strstart-t.insert,t.ins_h=t.window[l],t.ins_h=(t.ins_h<<t.hash_shift^t.window[l+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[l+3-1])&t.hash_mask,t.prev[l&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=l,l++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<d&&0!==t.strm.avail_in)}function k(t,e){for(var a,n;;){if(t.lookahead<d){if(y(t),t.lookahead<d&&0===e)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==a&&t.strstart-a<=t.w_size-d&&(t.match_length=w(t,a)),t.match_length>=3)if(n=i._tr_tally(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){for(t.match_length--;t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart,0!=--t.match_length;);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else n=i._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(m(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,4===e?(m(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(m(t,!1),0===t.strm.avail_out)?1:2}function z(t,e){for(var a,n,r;;){if(t.lookahead<d){if(y(t),t.lookahead<d&&0===e)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==a&&t.prev_length<t.max_lazy_match&&t.strstart-a<=t.w_size-d&&(t.match_length=w(t,a),t.match_length<=5&&(1===t.strategy||3===t.match_length&&4096<t.strstart-t.match_start)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){for(r=t.strstart+t.lookahead-3,n=i._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;++t.strstart<=r&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!=--t.prev_length;);if(t.match_available=0,t.match_length=2,t.strstart++,n&&(m(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((n=i._tr_tally(t,0,t.window[t.strstart-1]))&&m(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=i._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,4===e?(m(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(m(t,!1),0===t.strm.avail_out)?1:2}function x(t,e,a,n,r){this.good_length=t,this.max_lazy=e,this.nice_length=a,this.max_chain=n,this.func=r}function B(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new r.Buf16(1146),this.dyn_dtree=new r.Buf16(122),this.bl_tree=new r.Buf16(78),p(this.dyn_ltree),p(this.dyn_dtree),p(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new r.Buf16(16),this.heap=new r.Buf16(573),p(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new r.Buf16(573),p(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function A(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=2,(e=t.state).pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:u,t.adler=2===e.wrap?0:1,e.last_flush=0,i._tr_init(e),0):f(t,o)}function C(t){var e,a=A(t);return 0===a&&((e=t.state).window_size=2*e.w_size,p(e.head),e.max_lazy_match=n[e.level].max_lazy,e.good_match=n[e.level].good_length,e.nice_match=n[e.level].nice_length,e.max_chain_length=n[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0),a}function S(t,e,a,n,i,s){if(!t)return o;var h=1;if(-1===e&&(e=6),n<0?(h=0,n=-n):15<n&&(h=2,n-=16),i<1||9<i||8!==a||n<8||15<n||e<0||9<e||s<0||4<s)return f(t,o);8===n&&(n=9);var l=new B;return(t.state=l).strm=t,l.wrap=h,l.gzhead=null,l.w_bits=n,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=i+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+3-1)/3),l.window=new r.Buf8(2*l.w_size),l.head=new r.Buf16(l.hash_size),l.prev=new r.Buf16(l.w_size),l.lit_bufsize=1<<i+6,l.pending_buf_size=4*l.lit_bufsize,l.pending_buf=new r.Buf8(l.pending_buf_size),l.d_buf=1*l.lit_bufsize,l.l_buf=3*l.lit_bufsize,l.level=e,l.strategy=s,l.method=a,C(t)}n=[new x(0,0,0,0,(function(t,e){var a=65535;for(a>t.pending_buf_size-5&&(a=t.pending_buf_size-5);;){if(t.lookahead<=1){if(y(t),0===t.lookahead&&0===e)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+a;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,m(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-d&&(m(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(m(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(m(t,!1),t.strm.avail_out),1)})),new x(4,4,8,4,k),new x(4,5,16,8,k),new x(4,6,32,32,k),new x(4,4,16,16,z),new x(8,16,32,32,z),new x(8,16,128,128,z),new x(8,32,128,256,z),new x(32,128,258,1024,z),new x(32,258,258,4096,z)],a.deflateInit=function(t,e){return S(t,e,8,15,8,0)},a.deflateInit2=S,a.deflateReset=C,a.deflateResetKeep=A,a.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?o:(t.state.gzhead=e,0):o},a.deflate=function(t,e){var a,r,s,l;if(!t||!t.state||5<e||e<0)return t?f(t,o):o;if(r=t.state,!t.output||!t.input&&0!==t.avail_in||666===r.status&&4!==e)return f(t,0===t.avail_out?-5:o);if(r.strm=t,a=r.last_flush,r.last_flush=e,42===r.status)if(2===r.wrap)t.adler=0,b(r,31),b(r,139),b(r,8),r.gzhead?(b(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),b(r,255&r.gzhead.time),b(r,r.gzhead.time>>8&255),b(r,r.gzhead.time>>16&255),b(r,r.gzhead.time>>24&255),b(r,9===r.level?2:2<=r.strategy||r.level<2?4:0),b(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(b(r,255&r.gzhead.extra.length),b(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=h(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(b(r,0),b(r,0),b(r,0),b(r,0),b(r,0),b(r,9===r.level?2:2<=r.strategy||r.level<2?4:0),b(r,3),r.status=u);else{var d=8+(r.w_bits-8<<4)<<8;d|=(2<=r.strategy||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(d|=32),d+=31-d%31,r.status=u,v(r,d),0!==r.strstart&&(v(r,t.adler>>>16),v(r,65535&t.adler)),t.adler=1}if(69===r.status)if(r.gzhead.extra){for(s=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>s&&(t.adler=h(t.adler,r.pending_buf,r.pending-s,s)),g(t),s=r.pending,r.pending!==r.pending_buf_size));)b(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>s&&(t.adler=h(t.adler,r.pending_buf,r.pending-s,s)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){s=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>s&&(t.adler=h(t.adler,r.pending_buf,r.pending-s,s)),g(t),s=r.pending,r.pending===r.pending_buf_size)){l=1;break}b(r,l=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0)}while(0!==l);r.gzhead.hcrc&&r.pending>s&&(t.adler=h(t.adler,r.pending_buf,r.pending-s,s)),0===l&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){s=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>s&&(t.adler=h(t.adler,r.pending_buf,r.pending-s,s)),g(t),s=r.pending,r.pending===r.pending_buf_size)){l=1;break}b(r,l=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0)}while(0!==l);r.gzhead.hcrc&&r.pending>s&&(t.adler=h(t.adler,r.pending_buf,r.pending-s,s)),0===l&&(r.status=103)}else r.status=103;if(103===r.status&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&g(t),r.pending+2<=r.pending_buf_size&&(b(r,255&t.adler),b(r,t.adler>>8&255),t.adler=0,r.status=u)):r.status=u),0!==r.pending){if(g(t),0===t.avail_out)return r.last_flush=-1,0}else if(0===t.avail_in&&c(e)<=c(a)&&4!==e)return f(t,-5);if(666===r.status&&0!==t.avail_in)return f(t,-5);if(0!==t.avail_in||0!==r.lookahead||0!==e&&666!==r.status){var w=2===r.strategy?function(t,e){for(var a;;){if(0===t.lookahead&&(y(t),0===t.lookahead)){if(0===e)return 1;break}if(t.match_length=0,a=i._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(m(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(m(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(m(t,!1),0===t.strm.avail_out)?1:2}(r,e):3===r.strategy?function(t,e){for(var a,n,r,s,h=t.window;;){if(t.lookahead<=_){if(y(t),t.lookahead<=_&&0===e)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&0<t.strstart&&(n=h[r=t.strstart-1])===h[++r]&&n===h[++r]&&n===h[++r]){s=t.strstart+_;do{}while(n===h[++r]&&n===h[++r]&&n===h[++r]&&n===h[++r]&&n===h[++r]&&n===h[++r]&&n===h[++r]&&n===h[++r]&&r<s);t.match_length=_-(s-r),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(a=i._tr_tally(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=i._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(m(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(m(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(m(t,!1),0===t.strm.avail_out)?1:2}(r,e):n[r.level].func(r,e);if(3!==w&&4!==w||(r.status=666),1===w||3===w)return 0===t.avail_out&&(r.last_flush=-1),0;if(2===w&&(1===e?i._tr_align(r):5!==e&&(i._tr_stored_block(r,0,0,!1),3===e&&(p(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),g(t),0===t.avail_out))return r.last_flush=-1,0}return 4!==e?0:r.wrap<=0?1:(2===r.wrap?(b(r,255&t.adler),b(r,t.adler>>8&255),b(r,t.adler>>16&255),b(r,t.adler>>24&255),b(r,255&t.total_in),b(r,t.total_in>>8&255),b(r,t.total_in>>16&255),b(r,t.total_in>>24&255)):(v(r,t.adler>>>16),v(r,65535&t.adler)),g(t),0<r.wrap&&(r.wrap=-r.wrap),0!==r.pending?0:1)},a.deflateEnd=function(t){var e;return t&&t.state?42!==(e=t.state.status)&&69!==e&&73!==e&&91!==e&&103!==e&&e!==u&&666!==e?f(t,o):(t.state=null,e===u?f(t,-3):0):o},a.deflateSetDictionary=function(t,e){var a,n,i,h,l,_,d,u,f=e.length;if(!t||!t.state)return o;if(2===(h=(a=t.state).wrap)||1===h&&42!==a.status||a.lookahead)return o;for(1===h&&(t.adler=s(t.adler,e,f,0)),a.wrap=0,f>=a.w_size&&(0===h&&(p(a.head),a.strstart=0,a.block_start=0,a.insert=0),u=new r.Buf8(a.w_size),r.arraySet(u,e,f-a.w_size,a.w_size,0),e=u,f=a.w_size),l=t.avail_in,_=t.next_in,d=t.input,t.avail_in=f,t.next_in=0,t.input=e,y(a);a.lookahead>=3;){for(n=a.strstart,i=a.lookahead-2;a.ins_h=(a.ins_h<<a.hash_shift^a.window[n+3-1])&a.hash_mask,a.prev[n&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=n,n++,--i;);a.strstart=n,a.lookahead=2,y(a)}return a.strstart+=a.lookahead,a.block_start=a.strstart,a.insert=a.lookahead,a.lookahead=0,a.match_length=a.prev_length=2,a.match_available=0,t.next_in=_,t.input=d,t.avail_in=l,a.wrap=h,0},a.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":1,"./adler32":3,"./crc32":4,"./messages":6,"./trees":7}],6:[function(t,e,a){"use strict";e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],7:[function(t,e,a){"use strict";var n=t("../utils/common");function r(t){for(var e=t.length;0<=--e;)t[e]=0}var i=15,s=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],h=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],l=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],o=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],_=new Array(576);r(_);var d=new Array(60);r(d);var u=new Array(512);r(u);var f=new Array(256);r(f);var c=new Array(29);r(c);var p,g,m,b=new Array(30);function v(t,e,a,n,r){this.static_tree=t,this.extra_bits=e,this.extra_base=a,this.elems=n,this.max_length=r,this.has_stree=t&&t.length}function w(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function y(t){return t<256?u[t]:u[256+(t>>>7)]}function k(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function z(t,e,a){t.bi_valid>16-a?(t.bi_buf|=e<<t.bi_valid&65535,k(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=a-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=a)}function x(t,e,a){z(t,a[2*e],a[2*e+1])}function B(t,e){for(var a=0;a|=1&t,t>>>=1,a<<=1,0<--e;);return a>>>1}function A(t,e,a){var n,r,s=new Array(16),h=0;for(n=1;n<=i;n++)s[n]=h=h+a[n-1]<<1;for(r=0;r<=e;r++){var l=t[2*r+1];0!==l&&(t[2*r]=B(s[l]++,l))}}function C(t){var e;for(e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function S(t){8<t.bi_valid?k(t,t.bi_buf):0<t.bi_valid&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function j(t,e,a,n){var r=2*e,i=2*a;return t[r]<t[i]||t[r]===t[i]&&n[e]<=n[a]}function E(t,e,a){for(var n=t.heap[a],r=a<<1;r<=t.heap_len&&(r<t.heap_len&&j(e,t.heap[r+1],t.heap[r],t.depth)&&r++,!j(e,n,t.heap[r],t.depth));)t.heap[a]=t.heap[r],a=r,r<<=1;t.heap[a]=n}function U(t,e,a){var n,r,i,l,o=0;if(0!==t.last_lit)for(;n=t.pending_buf[t.d_buf+2*o]<<8|t.pending_buf[t.d_buf+2*o+1],r=t.pending_buf[t.l_buf+o],o++,0===n?x(t,r,e):(x(t,(i=f[r])+256+1,e),0!==(l=s[i])&&z(t,r-=c[i],l),x(t,i=y(--n),a),0!==(l=h[i])&&z(t,n-=b[i],l)),o<t.last_lit;);x(t,256,e)}function D(t,e){var a,n,r,s=e.dyn_tree,h=e.stat_desc.static_tree,l=e.stat_desc.has_stree,o=e.stat_desc.elems,_=-1;for(t.heap_len=0,t.heap_max=573,a=0;a<o;a++)0!==s[2*a]?(t.heap[++t.heap_len]=_=a,t.depth[a]=0):s[2*a+1]=0;for(;t.heap_len<2;)s[2*(r=t.heap[++t.heap_len]=_<2?++_:0)]=1,t.depth[r]=0,t.opt_len--,l&&(t.static_len-=h[2*r+1]);for(e.max_code=_,a=t.heap_len>>1;1<=a;a--)E(t,s,a);for(r=o;a=t.heap[1],t.heap[1]=t.heap[t.heap_len--],E(t,s,1),n=t.heap[1],t.heap[--t.heap_max]=a,t.heap[--t.heap_max]=n,s[2*r]=s[2*a]+s[2*n],t.depth[r]=(t.depth[a]>=t.depth[n]?t.depth[a]:t.depth[n])+1,s[2*a+1]=s[2*n+1]=r,t.heap[1]=r++,E(t,s,1),2<=t.heap_len;);t.heap[--t.heap_max]=t.heap[1],function(t,e){var a,n,r,s,h,l,o=e.dyn_tree,_=e.max_code,d=e.stat_desc.static_tree,u=e.stat_desc.has_stree,f=e.stat_desc.extra_bits,c=e.stat_desc.extra_base,p=e.stat_desc.max_length,g=0;for(s=0;s<=i;s++)t.bl_count[s]=0;for(o[2*t.heap[t.heap_max]+1]=0,a=t.heap_max+1;a<573;a++)p<(s=o[2*o[2*(n=t.heap[a])+1]+1]+1)&&(s=p,g++),o[2*n+1]=s,_<n||(t.bl_count[s]++,h=0,c<=n&&(h=f[n-c]),l=o[2*n],t.opt_len+=l*(s+h),u&&(t.static_len+=l*(d[2*n+1]+h)));if(0!==g){do{for(s=p-1;0===t.bl_count[s];)s--;t.bl_count[s]--,t.bl_count[s+1]+=2,t.bl_count[p]--,g-=2}while(0<g);for(s=p;0!==s;s--)for(n=t.bl_count[s];0!==n;)_<(r=t.heap[--a])||(o[2*r+1]!==s&&(t.opt_len+=(s-o[2*r+1])*o[2*r],o[2*r+1]=s),n--)}}(t,e),A(s,_,t.bl_count)}function I(t,e,a){var n,r,i=-1,s=e[1],h=0,l=7,o=4;for(0===s&&(l=138,o=3),e[2*(a+1)+1]=65535,n=0;n<=a;n++)r=s,s=e[2*(n+1)+1],++h<l&&r===s||(h<o?t.bl_tree[2*r]+=h:0!==r?(r!==i&&t.bl_tree[2*r]++,t.bl_tree[32]++):h<=10?t.bl_tree[34]++:t.bl_tree[36]++,i=r,(h=0)===s?(l=138,o=3):r===s?(l=6,o=3):(l=7,o=4))}function O(t,e,a){var n,r,i=-1,s=e[1],h=0,l=7,o=4;for(0===s&&(l=138,o=3),n=0;n<=a;n++)if(r=s,s=e[2*(n+1)+1],!(++h<l&&r===s)){if(h<o)for(;x(t,r,t.bl_tree),0!=--h;);else 0!==r?(r!==i&&(x(t,r,t.bl_tree),h--),x(t,16,t.bl_tree),z(t,h-3,2)):h<=10?(x(t,17,t.bl_tree),z(t,h-3,3)):(x(t,18,t.bl_tree),z(t,h-11,7));i=r,(h=0)===s?(l=138,o=3):r===s?(l=6,o=3):(l=7,o=4)}}r(b);var q=!1;function T(t,e,a,r){var i,s,h;z(t,0+(r?1:0),3),s=e,h=a,S(i=t),k(i,h),k(i,~h),n.arraySet(i.pending_buf,i.window,s,h,i.pending),i.pending+=h}a._tr_init=function(t){q||(function(){var t,e,a,n,r,o=new Array(16);for(n=a=0;n<28;n++)for(c[n]=a,t=0;t<1<<s[n];t++)f[a++]=n;for(f[a-1]=n,n=r=0;n<16;n++)for(b[n]=r,t=0;t<1<<h[n];t++)u[r++]=n;for(r>>=7;n<30;n++)for(b[n]=r<<7,t=0;t<1<<h[n]-7;t++)u[256+r++]=n;for(e=0;e<=i;e++)o[e]=0;for(t=0;t<=143;)_[2*t+1]=8,t++,o[8]++;for(;t<=255;)_[2*t+1]=9,t++,o[9]++;for(;t<=279;)_[2*t+1]=7,t++,o[7]++;for(;t<=287;)_[2*t+1]=8,t++,o[8]++;for(A(_,287,o),t=0;t<30;t++)d[2*t+1]=5,d[2*t]=B(t,5);p=new v(_,s,257,286,i),g=new v(d,h,0,30,i),m=new v(new Array(0),l,0,19,7)}(),q=!0),t.l_desc=new w(t.dyn_ltree,p),t.d_desc=new w(t.dyn_dtree,g),t.bl_desc=new w(t.bl_tree,m),t.bi_buf=0,t.bi_valid=0,C(t)},a._tr_stored_block=T,a._tr_flush_block=function(t,e,a,n){var r,i,s=0;0<t.level?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,a=4093624447;for(e=0;e<=31;e++,a>>>=1)if(1&a&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<256;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),D(t,t.l_desc),D(t,t.d_desc),s=function(t){var e;for(I(t,t.dyn_ltree,t.l_desc.max_code),I(t,t.dyn_dtree,t.d_desc.max_code),D(t,t.bl_desc),e=18;3<=e&&0===t.bl_tree[2*o[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),r=t.opt_len+3+7>>>3,(i=t.static_len+3+7>>>3)<=r&&(r=i)):r=i=a+5,a+4<=r&&-1!==e?T(t,e,a,n):4===t.strategy||i===r?(z(t,2+(n?1:0),3),U(t,_,d)):(z(t,4+(n?1:0),3),function(t,e,a,n){var r;for(z(t,e-257,5),z(t,a-1,5),z(t,n-4,4),r=0;r<n;r++)z(t,t.bl_tree[2*o[r]+1],3);O(t,t.dyn_ltree,e-1),O(t,t.dyn_dtree,a-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,s+1),U(t,t.dyn_ltree,t.dyn_dtree)),C(t),n&&S(t)},a._tr_tally=function(t,e,a){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&a,t.last_lit++,0===e?t.dyn_ltree[2*a]++:(t.matches++,e--,t.dyn_ltree[2*(f[a]+256+1)]++,t.dyn_dtree[2*y(e)]++),t.last_lit===t.lit_bufsize-1},a._tr_align=function(t){var e;z(t,2,3),x(t,256,_),16===(e=t).bi_valid?(k(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):8<=e.bi_valid&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}},{"../utils/common":1}],8:[function(t,e,a){"use strict";e.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],"/lib/deflate.js":[function(t,e,a){"use strict";var n=t("./zlib/deflate"),r=t("./utils/common"),i=t("./utils/strings"),s=t("./zlib/messages"),h=t("./zlib/zstream"),l=Object.prototype.toString;function o(t){if(!(this instanceof o))return new o(t);this.options=r.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},t||{});var e=this.options;e.raw&&0<e.windowBits?e.windowBits=-e.windowBits:e.gzip&&0<e.windowBits&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new h,this.strm.avail_out=0;var a=n.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(0!==a)throw new Error(s[a]);if(e.header&&n.deflateSetHeader(this.strm,e.header),e.dictionary){var _;if(_="string"==typeof e.dictionary?i.string2buf(e.dictionary):"[object ArrayBuffer]"===l.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,0!==(a=n.deflateSetDictionary(this.strm,_)))throw new Error(s[a]);this._dict_set=!0}}function _(t,e){var a=new o(e);if(a.push(t,!0),a.err)throw a.msg||s[a.err];return a.result}o.prototype.push=function(t,e){var a,s,h=this.strm,o=this.options.chunkSize;if(this.ended)return!1;s=e===~~e?e:!0===e?4:0,"string"==typeof t?h.input=i.string2buf(t):"[object ArrayBuffer]"===l.call(t)?h.input=new Uint8Array(t):h.input=t,h.next_in=0,h.avail_in=h.input.length;do{if(0===h.avail_out&&(h.output=new r.Buf8(o),h.next_out=0,h.avail_out=o),1!==(a=n.deflate(h,s))&&0!==a)return this.onEnd(a),!(this.ended=!0);0!==h.avail_out&&(0!==h.avail_in||4!==s&&2!==s)||("string"===this.options.to?this.onData(i.buf2binstring(r.shrinkBuf(h.output,h.next_out))):this.onData(r.shrinkBuf(h.output,h.next_out)))}while((0<h.avail_in||0===h.avail_out)&&1!==a);return 4===s?(a=n.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,0===a):2!==s||(this.onEnd(0),!(h.avail_out=0))},o.prototype.onData=function(t){this.chunks.push(t)},o.prototype.onEnd=function(t){0===t&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=r.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},a.Deflate=o,a.deflate=_,a.deflateRaw=function(t,e){return(e=e||{}).raw=!0,_(t,e)},a.gzip=function(t,e){return(e=e||{}).gzip=!0,_(t,e)}},{"./utils/common":1,"./utils/strings":2,"./zlib/deflate":5,"./zlib/messages":6,"./zlib/zstream":8}]},{},[])("/lib/deflate.js")}));