@orbit-software/sdk 1.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (189) hide show
  1. package/dist/esm/Overlay.d.ts +2 -0
  2. package/dist/esm/app/helpers.d.ts +2 -0
  3. package/dist/esm/app/ui/assets/IconBack.d.ts +1 -0
  4. package/dist/esm/app/ui/assets/IconClosePlain.d.ts +3 -0
  5. package/dist/esm/app/ui/components/AvatarProgress.d.ts +13 -0
  6. package/dist/esm/app/ui/components/ClosableModal.d.ts +11 -0
  7. package/dist/esm/app/ui/components/IconBalance.d.ts +3 -0
  8. package/dist/esm/app/ui/components/InputSwitch.d.ts +9 -0
  9. package/dist/esm/app/ui/components/Inventory/Inventory.d.ts +2 -0
  10. package/dist/esm/app/ui/components/Inventory/context.d.ts +10 -0
  11. package/dist/esm/app/ui/components/XsButton.d.ts +6 -0
  12. package/dist/esm/app/ui/hooks/useAnimateNumber.d.ts +1 -0
  13. package/dist/esm/app/utils.d.ts +2 -0
  14. package/dist/esm/boolean-D78EXBUO.mjs +1986 -0
  15. package/dist/esm/bootstrap.d.ts +1 -0
  16. package/dist/esm/features/profile/assets/IconAd.d.ts +1 -0
  17. package/dist/esm/features/profile/assets/IconAddCircle.d.ts +1 -0
  18. package/dist/esm/features/profile/assets/IconCurrencyStar.d.ts +3 -0
  19. package/dist/esm/features/profile/assets/IconDrag.d.ts +2 -0
  20. package/dist/esm/features/profile/assets/IconEdit.d.ts +2 -0
  21. package/dist/esm/features/profile/assets/IconGame.d.ts +2 -0
  22. package/dist/esm/features/profile/assets/IconNoSign.d.ts +1 -0
  23. package/dist/esm/features/profile/assets/IconProfile.d.ts +1 -0
  24. package/dist/esm/features/profile/assets/moneyTongue.json.d.ts +3 -0
  25. package/dist/esm/features/profile/assets/newspaper.json.d.ts +3 -0
  26. package/dist/esm/features/profile/assets/profileBgGradients.d.ts +6 -0
  27. package/dist/esm/features/profile/components/Avatars.d.ts +8 -0
  28. package/dist/esm/features/profile/components/BalanceConfetti.d.ts +6 -0
  29. package/dist/esm/features/profile/components/BuyMenu.d.ts +8 -0
  30. package/dist/esm/features/profile/components/CircleParticles.d.ts +10 -0
  31. package/dist/esm/features/profile/components/FormattedXP.d.ts +8 -0
  32. package/dist/esm/features/profile/components/LevelInfoModal.d.ts +9 -0
  33. package/dist/esm/features/profile/components/ModalContainer.d.ts +6 -0
  34. package/dist/esm/features/profile/components/OverlayProfile.d.ts +8 -0
  35. package/dist/esm/features/profile/components/Profile.d.ts +3 -0
  36. package/dist/esm/features/profile/components/PurchaseConfirm.d.ts +9 -0
  37. package/dist/esm/features/profile/components/Ribbon.d.ts +6 -0
  38. package/dist/esm/features/profile/components/StarParticles.d.ts +10 -0
  39. package/dist/esm/features/profile/components/TaskCard.d.ts +21 -0
  40. package/dist/esm/features/profile/components/XpProgress.d.ts +14 -0
  41. package/dist/esm/features/profile/hooks/useAnimatedProfile.d.ts +5 -0
  42. package/dist/esm/gaussian-splat-compression-CzzkTP3L.mjs +1632 -0
  43. package/dist/esm/hooks/useForceRerender.d.ts +1 -0
  44. package/dist/esm/hooks/useMiniApp.d.ts +3 -0
  45. package/dist/esm/howler-Mh6LB0k5.mjs +572 -0
  46. package/dist/esm/i18n/index.d.ts +2 -0
  47. package/dist/esm/i18n/locales/translations/en.json.d.ts +213 -0
  48. package/dist/esm/i18n/locales/translations/ru.json.d.ts +210 -0
  49. package/dist/esm/launcherSrc/App.d.ts +2 -0
  50. package/dist/esm/launcherSrc/api/client.d.ts +3 -0
  51. package/dist/esm/launcherSrc/api/types.d.ts +181 -0
  52. package/dist/esm/launcherSrc/api/userApi.d.ts +22 -0
  53. package/dist/esm/launcherSrc/app/components/DebugConsole.d.ts +2 -0
  54. package/dist/esm/launcherSrc/app/contexts/SnackbarContext.d.ts +18 -0
  55. package/dist/esm/launcherSrc/app/helpers.d.ts +5 -0
  56. package/dist/esm/launcherSrc/app/hooks/forceRerender.d.ts +1 -0
  57. package/dist/esm/launcherSrc/app/hooks/useMainButtonControl.d.ts +7 -0
  58. package/dist/esm/launcherSrc/app/hooks/useMiniApp.d.ts +3 -0
  59. package/dist/esm/launcherSrc/app/hooks.d.ts +11 -0
  60. package/dist/esm/launcherSrc/app/store.d.ts +19 -0
  61. package/dist/esm/launcherSrc/app/ui/assets/IconBack.d.ts +1 -0
  62. package/dist/esm/launcherSrc/app/ui/assets/IconCheck.d.ts +2 -0
  63. package/dist/esm/launcherSrc/app/ui/assets/IconCheckThin.d.ts +2 -0
  64. package/dist/esm/launcherSrc/app/ui/assets/IconCross.d.ts +2 -0
  65. package/dist/esm/launcherSrc/app/ui/assets/IconSearch.d.ts +2 -0
  66. package/dist/esm/launcherSrc/app/ui/components/AvatarProgress.d.ts +13 -0
  67. package/dist/esm/launcherSrc/app/ui/components/ClosableModal.d.ts +10 -0
  68. package/dist/esm/launcherSrc/app/ui/components/FormattedXP.d.ts +8 -0
  69. package/dist/esm/launcherSrc/app/ui/components/IconBalance.d.ts +3 -0
  70. package/dist/esm/launcherSrc/app/ui/components/InputSwitch.d.ts +9 -0
  71. package/dist/esm/launcherSrc/app/ui/components/Twemoji.d.ts +8 -0
  72. package/dist/esm/launcherSrc/app/ui/components/UICell.d.ts +16 -0
  73. package/dist/esm/launcherSrc/app/ui/components/UIDateInput.d.ts +21 -0
  74. package/dist/esm/launcherSrc/app/ui/components/UIDivider.d.ts +4 -0
  75. package/dist/esm/launcherSrc/app/ui/components/UIEmoji.d.ts +8 -0
  76. package/dist/esm/launcherSrc/app/ui/components/UIHero.d.ts +10 -0
  77. package/dist/esm/launcherSrc/app/ui/components/UISection.d.ts +9 -0
  78. package/dist/esm/launcherSrc/app/ui/components/UITextarea.d.ts +7 -0
  79. package/dist/esm/launcherSrc/app/ui/components/XpProgress.d.ts +13 -0
  80. package/dist/esm/launcherSrc/app/ui/components/XsButton.d.ts +6 -0
  81. package/dist/esm/launcherSrc/app/ui/hooks/useAnimateNumber.d.ts +1 -0
  82. package/dist/esm/launcherSrc/app/utils.d.ts +13 -0
  83. package/dist/esm/launcherSrc/assets/Icon28Edit.d.ts +2 -0
  84. package/dist/esm/launcherSrc/assets/Icon28Game.d.ts +1 -0
  85. package/dist/esm/launcherSrc/assets/Icon28Link.d.ts +1 -0
  86. package/dist/esm/launcherSrc/features/admin/components/Admin.d.ts +3 -0
  87. package/dist/esm/launcherSrc/features/admin/components/OverlayControl.d.ts +2 -0
  88. package/dist/esm/launcherSrc/features/games/assets/IconFilter.d.ts +1 -0
  89. package/dist/esm/launcherSrc/features/games/assets/IconPlayers.d.ts +2 -0
  90. package/dist/esm/launcherSrc/features/games/assets/IconQuestion.d.ts +2 -0
  91. package/dist/esm/launcherSrc/features/games/assets/IconQuestionCircle.d.ts +2 -0
  92. package/dist/esm/launcherSrc/features/games/assets/IconStar.d.ts +4 -0
  93. package/dist/esm/launcherSrc/features/games/assets/IconThumbsDownFilled.d.ts +2 -0
  94. package/dist/esm/launcherSrc/features/games/assets/IconThumbsDownOutlined.d.ts +2 -0
  95. package/dist/esm/launcherSrc/features/games/assets/IconThumbsUpFilled.d.ts +2 -0
  96. package/dist/esm/launcherSrc/features/games/assets/IconThumbsUpOutlined.d.ts +2 -0
  97. package/dist/esm/launcherSrc/features/games/components/GameItem.d.ts +10 -0
  98. package/dist/esm/launcherSrc/features/games/components/GamePage/GamePage.d.ts +6 -0
  99. package/dist/esm/launcherSrc/features/games/components/GamePage/GameReview.d.ts +10 -0
  100. package/dist/esm/launcherSrc/features/games/components/GamePage/GameReviews.d.ts +9 -0
  101. package/dist/esm/launcherSrc/features/games/components/Games.d.ts +3 -0
  102. package/dist/esm/launcherSrc/features/games/components/ResetStorageButton.d.ts +3 -0
  103. package/dist/esm/launcherSrc/features/games/components/ReviewModal.d.ts +10 -0
  104. package/dist/esm/launcherSrc/features/games/hooks/useGamesData.d.ts +13 -0
  105. package/dist/esm/launcherSrc/features/games/redux/gamesSlice.d.ts +34 -0
  106. package/dist/esm/launcherSrc/features/games/service/gamesService.d.ts +3 -0
  107. package/dist/esm/launcherSrc/features/leaderboard/components/Rating.d.ts +1 -0
  108. package/dist/esm/launcherSrc/features/leaderboard/components/RatingCard/RatingCard.d.ts +10 -0
  109. package/dist/esm/launcherSrc/features/leaderboard/components/RatingInfo/RatingInfo.d.ts +1 -0
  110. package/dist/esm/launcherSrc/features/leaderboard/components/RatingLevel/IconWreaths.d.ts +3 -0
  111. package/dist/esm/launcherSrc/features/leaderboard/components/RatingLevel/RatingLevel.d.ts +6 -0
  112. package/dist/esm/launcherSrc/features/leaderboard/components/RatingLevel/lock.d.ts +3 -0
  113. package/dist/esm/launcherSrc/features/leaderboard/hooks/useLeaderboardData.d.ts +10 -0
  114. package/dist/esm/launcherSrc/features/leaderboard/index.d.ts +1 -0
  115. package/dist/esm/launcherSrc/features/leaderboard/redux/leaderboardSlice.d.ts +18 -0
  116. package/dist/esm/launcherSrc/features/leaderboard/services/leaderboardService.d.ts +2 -0
  117. package/dist/esm/launcherSrc/features/navigation/assets/IconGame.d.ts +1 -0
  118. package/dist/esm/launcherSrc/features/navigation/assets/IconProfile.d.ts +1 -0
  119. package/dist/esm/launcherSrc/features/navigation/assets/IconSmile.d.ts +2 -0
  120. package/dist/esm/launcherSrc/features/navigation/components/FloatingProfile.d.ts +2 -0
  121. package/dist/esm/launcherSrc/features/navigation/components/IconWithCounter.d.ts +7 -0
  122. package/dist/esm/launcherSrc/features/navigation/redux/navigationSlice.d.ts +15 -0
  123. package/dist/esm/launcherSrc/features/navigation/redux/tabsSlice.d.ts +12 -0
  124. package/dist/esm/launcherSrc/features/profile/assets/IconAd.d.ts +1 -0
  125. package/dist/esm/launcherSrc/features/profile/assets/IconAddCircle.d.ts +1 -0
  126. package/dist/esm/launcherSrc/features/profile/assets/IconChevronRight.d.ts +2 -0
  127. package/dist/esm/launcherSrc/features/profile/assets/IconColorPicker.d.ts +1 -0
  128. package/dist/esm/launcherSrc/features/profile/assets/IconCurrencyStar.d.ts +3 -0
  129. package/dist/esm/launcherSrc/features/profile/assets/IconGlobe.d.ts +2 -0
  130. package/dist/esm/launcherSrc/features/profile/assets/IconLock.d.ts +2 -0
  131. package/dist/esm/launcherSrc/features/profile/assets/IconNoSign.d.ts +1 -0
  132. package/dist/esm/launcherSrc/features/profile/assets/IconSignature.d.ts +5 -0
  133. package/dist/esm/launcherSrc/features/profile/assets/profileBgGradients.d.ts +50 -0
  134. package/dist/esm/launcherSrc/features/profile/components/AdsFree/BuyAdsFreeButton.d.ts +3 -0
  135. package/dist/esm/launcherSrc/features/profile/components/AdsFree/PurchaseAdsFree.d.ts +9 -0
  136. package/dist/esm/launcherSrc/features/profile/components/Avatars/AvatarCreation.d.ts +2 -0
  137. package/dist/esm/launcherSrc/features/profile/components/Avatars/Avatars.d.ts +11 -0
  138. package/dist/esm/launcherSrc/features/profile/components/Avatars/EditAvatarButton.d.ts +1 -0
  139. package/dist/esm/launcherSrc/features/profile/components/Balance/ProfileBalance.d.ts +6 -0
  140. package/dist/esm/launcherSrc/features/profile/components/Balance/TopUpModal/BuyMenu.d.ts +8 -0
  141. package/dist/esm/launcherSrc/features/profile/components/Balance/TopUpModal/BuyOption.d.ts +10 -0
  142. package/dist/esm/launcherSrc/features/profile/components/Balance/TopUpModal/Ribbon.d.ts +6 -0
  143. package/dist/esm/launcherSrc/features/profile/components/BoxOpeningModal.d.ts +3 -0
  144. package/dist/esm/launcherSrc/features/profile/components/DailyModal.d.ts +3 -0
  145. package/dist/esm/launcherSrc/features/profile/components/FIllProfile/FIllBirthdate.d.ts +3 -0
  146. package/dist/esm/launcherSrc/features/profile/components/FIllProfile/FillCountry.d.ts +3 -0
  147. package/dist/esm/launcherSrc/features/profile/components/FIllProfile/FillEmail.d.ts +3 -0
  148. package/dist/esm/launcherSrc/features/profile/components/FIllProfile/FillProfile.d.ts +3 -0
  149. package/dist/esm/launcherSrc/features/profile/components/FIllProfile/FillProfileLayout.d.ts +4 -0
  150. package/dist/esm/launcherSrc/features/profile/components/LevelInfoModal.d.ts +9 -0
  151. package/dist/esm/launcherSrc/features/profile/components/Profile.d.ts +3 -0
  152. package/dist/esm/launcherSrc/features/profile/components/ProfileGames.d.ts +6 -0
  153. package/dist/esm/launcherSrc/features/profile/components/ProfileInventory.d.ts +2 -0
  154. package/dist/esm/launcherSrc/features/profile/components/ProfileLeaderboard.d.ts +6 -0
  155. package/dist/esm/launcherSrc/features/profile/components/ProfileReviews.d.ts +6 -0
  156. package/dist/esm/launcherSrc/features/profile/components/ProfileTrophies.d.ts +2 -0
  157. package/dist/esm/launcherSrc/features/profile/components/Tasks/TaskCard.d.ts +24 -0
  158. package/dist/esm/launcherSrc/features/profile/components/Tasks/Tasks.d.ts +2 -0
  159. package/dist/esm/launcherSrc/features/profile/components/particles/BalanceConfetti.d.ts +6 -0
  160. package/dist/esm/launcherSrc/features/profile/components/particles/CircleParticles.d.ts +10 -0
  161. package/dist/esm/launcherSrc/features/profile/components/particles/ConfettiParticles.d.ts +10 -0
  162. package/dist/esm/launcherSrc/features/profile/components/particles/StarParticles.d.ts +10 -0
  163. package/dist/esm/launcherSrc/features/profile/contexts/BoxOpeningContext.d.ts +12 -0
  164. package/dist/esm/launcherSrc/features/profile/data/countries.d.ts +10 -0
  165. package/dist/esm/launcherSrc/features/profile/hooks/useProfileData.d.ts +26 -0
  166. package/dist/esm/launcherSrc/features/profile/redux/profileSlice.d.ts +131 -0
  167. package/dist/esm/launcherSrc/features/profile/redux/shopSlice.d.ts +18 -0
  168. package/dist/esm/launcherSrc/features/profile/services/buyMenuService.d.ts +1 -0
  169. package/dist/esm/launcherSrc/features/profile/services/profileService.d.ts +12 -0
  170. package/dist/esm/launcherSrc/features/profile/services/shopService.d.ts +2 -0
  171. package/dist/esm/launcherSrc/i18n/index.d.ts +2 -0
  172. package/dist/esm/launcherSrc/index.d.ts +0 -0
  173. package/dist/esm/launcherSrc/setupTests.d.ts +0 -0
  174. package/dist/esm/launcherSrc/utils/openTelegramLinkFixed.d.ts +1 -0
  175. package/dist/esm/navmesh-BbINhDrO.mjs +1336 -0
  176. package/dist/esm/opentype-PR7hcvG5.mjs +4286 -0
  177. package/dist/esm/physics-B9pWoHiG.mjs +4375 -0
  178. package/dist/esm/process-DGf1Bnd3.mjs +2274 -0
  179. package/dist/esm/sdk-4y_oRGP7.mjs +76474 -0
  180. package/dist/esm/sdk.d.ts +130 -0
  181. package/dist/esm/sdk.mjs +9 -0
  182. package/dist/esm/sdk.umd.js +8382 -0
  183. package/dist/esm/stores/profileStore.d.ts +16 -0
  184. package/dist/esm/ui-C32u2WA-.mjs +2678 -0
  185. package/dist/esm/utils/global.d.ts +1 -0
  186. package/dist/umd/sdk.umd.js +8382 -0
  187. package/dist/umd_react/sdk_react.umd.js +8562 -0
  188. package/index.html +13 -0
  189. package/package.json +96 -0
@@ -0,0 +1,2274 @@
1
+ var qn = (() => {
2
+ var Zr = typeof document < "u" && document.currentScript ? document.currentScript.src : void 0;
3
+ return function(Qr = {}) {
4
+ var d = Qr, re, cr;
5
+ d.ready = new Promise((r, e) => {
6
+ re = r, cr = e;
7
+ });
8
+ var ee = Object.assign({}, d), te = "./this.program", Ye = !0, I = "";
9
+ function qe(r) {
10
+ return d.locateFile ? d.locateFile(r, I) : I + r;
11
+ }
12
+ var Or, ne;
13
+ typeof document < "u" && document.currentScript && (I = document.currentScript.src), Zr && (I = Zr), I.indexOf("blob:") !== 0 ? I = I.substr(0, I.replace(/[?#].*/, "").lastIndexOf("/") + 1) : I = "", Or = (r) => {
14
+ var e = new XMLHttpRequest();
15
+ return e.open("GET", r, !1), e.send(null), e.responseText;
16
+ }, ne = (r, e, t) => {
17
+ var n = new XMLHttpRequest();
18
+ n.open("GET", r, !0), n.responseType = "arraybuffer", n.onload = () => {
19
+ if (n.status == 200 || n.status == 0 && n.response) {
20
+ e(n.response);
21
+ return;
22
+ }
23
+ t();
24
+ }, n.onerror = t, n.send(null);
25
+ };
26
+ var jr = d.print || console.log.bind(console), V = d.printErr || console.error.bind(console);
27
+ Object.assign(d, ee), ee = null, d.arguments && d.arguments, d.thisProgram && (te = d.thisProgram), d.quit && d.quit;
28
+ var nr;
29
+ d.wasmBinary && (nr = d.wasmBinary), d.noExitRuntime, typeof WebAssembly != "object" && J("no native wasm support detected");
30
+ var vr, oe = !1;
31
+ function Xe(r, e) {
32
+ r || J(e);
33
+ }
34
+ var O, W, K, or, E, C, ae, ie;
35
+ function se() {
36
+ var r = vr.buffer;
37
+ d.HEAP8 = O = new Int8Array(r), d.HEAP16 = K = new Int16Array(r), d.HEAPU8 = W = new Uint8Array(r), d.HEAPU16 = or = new Uint16Array(r), d.HEAP32 = E = new Int32Array(r), d.HEAPU32 = C = new Uint32Array(r), d.HEAPF32 = ae = new Float32Array(r), d.HEAPF64 = ie = new Float64Array(r);
38
+ }
39
+ var ue = [], le = [], fe = [];
40
+ function Ge() {
41
+ if (d.preRun)
42
+ for (typeof d.preRun == "function" && (d.preRun = [d.preRun]); d.preRun.length; )
43
+ Ze(d.preRun.shift());
44
+ Ur(ue);
45
+ }
46
+ function Ke() {
47
+ !d.noFSInit && !o.init.initialized && o.init(), o.ignorePermissions = !1, Ur(le);
48
+ }
49
+ function Je() {
50
+ if (d.postRun)
51
+ for (typeof d.postRun == "function" && (d.postRun = [d.postRun]); d.postRun.length; )
52
+ rt(d.postRun.shift());
53
+ Ur(fe);
54
+ }
55
+ function Ze(r) {
56
+ ue.unshift(r);
57
+ }
58
+ function Qe(r) {
59
+ le.unshift(r);
60
+ }
61
+ function rt(r) {
62
+ fe.unshift(r);
63
+ }
64
+ var q = 0, ar = null;
65
+ function Yn(r) {
66
+ return r;
67
+ }
68
+ function Wr(r) {
69
+ q++, d.monitorRunDependencies && d.monitorRunDependencies(q);
70
+ }
71
+ function hr(r) {
72
+ if (q--, d.monitorRunDependencies && d.monitorRunDependencies(q), q == 0 && ar) {
73
+ var e = ar;
74
+ ar = null, e();
75
+ }
76
+ }
77
+ function J(r) {
78
+ d.onAbort && d.onAbort(r), r = "Aborted(" + r + ")", V(r), oe = !0, r += ". Build with -sASSERTIONS for more info.";
79
+ var e = new WebAssembly.RuntimeError(r);
80
+ throw cr(e), e;
81
+ }
82
+ var et = "data:application/octet-stream;base64,";
83
+ function de(r) {
84
+ return r.startsWith(et);
85
+ }
86
+ var Z;
87
+ Z = "process.wasm", de(Z) || (Z = qe(Z));
88
+ function ce(r) {
89
+ if (r == Z && nr)
90
+ return new Uint8Array(nr);
91
+ throw "both async and sync fetching of the wasm failed";
92
+ }
93
+ function tt(r) {
94
+ return !nr && Ye && typeof fetch == "function" ? fetch(r, { credentials: "same-origin" }).then((e) => {
95
+ if (!e.ok)
96
+ throw "failed to load wasm binary file at '" + r + "'";
97
+ return e.arrayBuffer();
98
+ }).catch(() => ce(r)) : Promise.resolve().then(() => ce(r));
99
+ }
100
+ function ve(r, e, t) {
101
+ return tt(r).then((n) => WebAssembly.instantiate(n, e)).then((n) => n).then(t, (n) => {
102
+ V(`failed to asynchronously prepare wasm: ${n}`), J(n);
103
+ });
104
+ }
105
+ function nt(r, e, t, n) {
106
+ return !r && typeof WebAssembly.instantiateStreaming == "function" && !de(e) && typeof fetch == "function" ? fetch(e, { credentials: "same-origin" }).then((a) => {
107
+ var i = WebAssembly.instantiateStreaming(a, t);
108
+ return i.then(n, function(s) {
109
+ return V(`wasm streaming compile failed: ${s}`), V("falling back to ArrayBuffer instantiation"), ve(e, t, n);
110
+ });
111
+ }) : ve(e, t, n);
112
+ }
113
+ function ot() {
114
+ var r = { a: Vn };
115
+ function e(n, a) {
116
+ return M = n.exports, vr = M.K, se(), Pe = M.O, Qe(M.L), hr(), M;
117
+ }
118
+ Wr();
119
+ function t(n) {
120
+ e(n.instance);
121
+ }
122
+ if (d.instantiateWasm)
123
+ try {
124
+ return d.instantiateWasm(r, e);
125
+ } catch (n) {
126
+ V(`Module.instantiateWasm callback failed with error: ${n}`), cr(n);
127
+ }
128
+ return nt(nr, Z, r, t).catch(cr), {};
129
+ }
130
+ var b, R, Ur = (r) => {
131
+ for (; r.length > 0; )
132
+ r.shift()(d);
133
+ };
134
+ function at(r) {
135
+ this.excPtr = r, this.ptr = r - 24, this.set_type = function(e) {
136
+ C[this.ptr + 4 >> 2] = e;
137
+ }, this.get_type = function() {
138
+ return C[this.ptr + 4 >> 2];
139
+ }, this.set_destructor = function(e) {
140
+ C[this.ptr + 8 >> 2] = e;
141
+ }, this.get_destructor = function() {
142
+ return C[this.ptr + 8 >> 2];
143
+ }, this.set_caught = function(e) {
144
+ e = e ? 1 : 0, O[this.ptr + 12 >> 0] = e;
145
+ }, this.get_caught = function() {
146
+ return O[this.ptr + 12 >> 0] != 0;
147
+ }, this.set_rethrown = function(e) {
148
+ e = e ? 1 : 0, O[this.ptr + 13 >> 0] = e;
149
+ }, this.get_rethrown = function() {
150
+ return O[this.ptr + 13 >> 0] != 0;
151
+ }, this.init = function(e, t) {
152
+ this.set_adjusted_ptr(0), this.set_type(e), this.set_destructor(t);
153
+ }, this.set_adjusted_ptr = function(e) {
154
+ C[this.ptr + 16 >> 2] = e;
155
+ }, this.get_adjusted_ptr = function() {
156
+ return C[this.ptr + 16 >> 2];
157
+ }, this.get_exception_ptr = function() {
158
+ var e = Ne(this.get_type());
159
+ if (e)
160
+ return C[this.excPtr >> 2];
161
+ var t = this.get_adjusted_ptr();
162
+ return t !== 0 ? t : this.excPtr;
163
+ };
164
+ }
165
+ var he = 0, it = (r, e, t) => {
166
+ var n = new at(r);
167
+ throw n.init(e, t), he = r, he;
168
+ }, pr = {}, mr = (r) => {
169
+ for (; r.length; ) {
170
+ var e = r.pop(), t = r.pop();
171
+ t(e);
172
+ }
173
+ };
174
+ function gr(r) {
175
+ return this.fromWireType(E[r >> 2]);
176
+ }
177
+ var Q = {}, X = {}, yr = {}, pe, wr = (r) => {
178
+ throw new pe(r);
179
+ }, L = (r, e, t) => {
180
+ r.forEach(function(u) {
181
+ yr[u] = e;
182
+ });
183
+ function n(u) {
184
+ var l = t(u);
185
+ l.length !== r.length && wr("Mismatched type converter count");
186
+ for (var f = 0; f < r.length; ++f)
187
+ x(r[f], l[f]);
188
+ }
189
+ var a = new Array(e.length), i = [], s = 0;
190
+ e.forEach((u, l) => {
191
+ X.hasOwnProperty(u) ? a[l] = X[u] : (i.push(u), Q.hasOwnProperty(u) || (Q[u] = []), Q[u].push(() => {
192
+ a[l] = X[u], ++s, s === i.length && n(a);
193
+ }));
194
+ }), i.length === 0 && n(a);
195
+ }, st = (r) => {
196
+ var e = pr[r];
197
+ delete pr[r];
198
+ var t = e.elements, n = t.length, a = t.map((u) => u.getterReturnType).concat(t.map((u) => u.setterArgumentType)), i = e.rawConstructor, s = e.rawDestructor;
199
+ L([r], a, function(u) {
200
+ return t.forEach((l, f) => {
201
+ var c = u[f], m = l.getter, p = l.getterContext, h = u[f + n], y = l.setter, _ = l.setterContext;
202
+ l.read = (P) => c.fromWireType(m(p, P)), l.write = (P, $) => {
203
+ var v = [];
204
+ y(_, P, h.toWireType(v, $)), mr(v);
205
+ };
206
+ }), [{ name: e.name, fromWireType: (l) => {
207
+ for (var f = new Array(n), c = 0; c < n; ++c)
208
+ f[c] = t[c].read(l);
209
+ return s(l), f;
210
+ }, toWireType: (l, f) => {
211
+ if (n !== f.length)
212
+ throw new TypeError(`Incorrect number of tuple elements for ${e.name}: expected=${n}, actual=${f.length}`);
213
+ for (var c = i(), m = 0; m < n; ++m)
214
+ t[m].write(c, f[m]);
215
+ return l !== null && l.push(s, c), c;
216
+ }, argPackAdvance: H, readValueFromPointer: gr, destructorFunction: s }];
217
+ });
218
+ }, _r = {}, ut = (r) => {
219
+ var e = _r[r];
220
+ delete _r[r];
221
+ var t = e.rawConstructor, n = e.rawDestructor, a = e.fields, i = a.map((s) => s.getterReturnType).concat(a.map((s) => s.setterArgumentType));
222
+ L([r], i, (s) => {
223
+ var u = {};
224
+ return a.forEach((l, f) => {
225
+ var c = l.fieldName, m = s[f], p = l.getter, h = l.getterContext, y = s[f + a.length], _ = l.setter, P = l.setterContext;
226
+ u[c] = { read: ($) => m.fromWireType(p(h, $)), write: ($, v) => {
227
+ var g = [];
228
+ _(P, $, y.toWireType(g, v)), mr(g);
229
+ } };
230
+ }), [{ name: e.name, fromWireType: (l) => {
231
+ var f = {};
232
+ for (var c in u)
233
+ f[c] = u[c].read(l);
234
+ return n(l), f;
235
+ }, toWireType: (l, f) => {
236
+ for (var c in u)
237
+ if (!(c in f))
238
+ throw new TypeError(`Missing field: "${c}"`);
239
+ var m = t();
240
+ for (c in u)
241
+ u[c].write(m, f[c]);
242
+ return l !== null && l.push(n, m), m;
243
+ }, argPackAdvance: H, readValueFromPointer: gr, destructorFunction: n }];
244
+ });
245
+ }, lt = (r, e, t, n, a) => {
246
+ }, ft = () => {
247
+ for (var r = new Array(256), e = 0; e < 256; ++e)
248
+ r[e] = String.fromCharCode(e);
249
+ me = r;
250
+ }, me, A = (r) => {
251
+ for (var e = "", t = r; W[t]; )
252
+ e += me[W[t++]];
253
+ return e;
254
+ }, rr, k = (r) => {
255
+ throw new rr(r);
256
+ };
257
+ function dt(r, e, t = {}) {
258
+ var n = e.name;
259
+ if (r || k(`type "${n}" must have a positive integer typeid pointer`), X.hasOwnProperty(r)) {
260
+ if (t.ignoreDuplicateRegistrations)
261
+ return;
262
+ k(`Cannot register type '${n}' twice`);
263
+ }
264
+ if (X[r] = e, delete yr[r], Q.hasOwnProperty(r)) {
265
+ var a = Q[r];
266
+ delete Q[r], a.forEach((i) => i());
267
+ }
268
+ }
269
+ function x(r, e, t = {}) {
270
+ if (!("argPackAdvance" in e))
271
+ throw new TypeError("registerType registeredInstance requires argPackAdvance");
272
+ return dt(r, e, t);
273
+ }
274
+ var H = 8, ct = (r, e, t, n) => {
275
+ e = A(e), x(r, { name: e, fromWireType: function(a) {
276
+ return !!a;
277
+ }, toWireType: function(a, i) {
278
+ return i ? t : n;
279
+ }, argPackAdvance: H, readValueFromPointer: function(a) {
280
+ return this.fromWireType(W[a]);
281
+ }, destructorFunction: null });
282
+ }, vt = (r) => ({ count: r.count, deleteScheduled: r.deleteScheduled, preservePointerOnDelete: r.preservePointerOnDelete, ptr: r.ptr, ptrType: r.ptrType, smartPtr: r.smartPtr, smartPtrType: r.smartPtrType }), zr = (r) => {
283
+ function e(t) {
284
+ return t.$$.ptrType.registeredClass.name;
285
+ }
286
+ k(e(r) + " instance already deleted");
287
+ }, Hr = !1, ge = (r) => {
288
+ }, ht = (r) => {
289
+ r.smartPtr ? r.smartPtrType.rawDestructor(r.smartPtr) : r.ptrType.registeredClass.rawDestructor(r.ptr);
290
+ }, ye = (r) => {
291
+ r.count.value -= 1;
292
+ var e = r.count.value === 0;
293
+ e && ht(r);
294
+ }, we = (r, e, t) => {
295
+ if (e === t)
296
+ return r;
297
+ if (t.baseClass === void 0)
298
+ return null;
299
+ var n = we(r, e, t.baseClass);
300
+ return n === null ? null : t.downcast(n);
301
+ }, _e = {}, pt = () => Object.keys(ur).length, mt = () => {
302
+ var r = [];
303
+ for (var e in ur)
304
+ ur.hasOwnProperty(e) && r.push(ur[e]);
305
+ return r;
306
+ }, ir = [], Lr = () => {
307
+ for (; ir.length; ) {
308
+ var r = ir.pop();
309
+ r.$$.deleteScheduled = !1, r.delete();
310
+ }
311
+ }, sr, gt = (r) => {
312
+ sr = r, ir.length && sr && sr(Lr);
313
+ }, yt = () => {
314
+ d.getInheritedInstanceCount = pt, d.getLiveInheritedInstances = mt, d.flushPendingDeletes = Lr, d.setDelayFunction = gt;
315
+ }, ur = {}, wt = (r, e) => {
316
+ for (e === void 0 && k("ptr should not be undefined"); r.baseClass; )
317
+ e = r.upcast(e), r = r.baseClass;
318
+ return e;
319
+ }, _t = (r, e) => (e = wt(r, e), ur[e]), Er = (r, e) => {
320
+ (!e.ptrType || !e.ptr) && wr("makeClassHandle requires ptr and ptrType");
321
+ var t = !!e.smartPtrType, n = !!e.smartPtr;
322
+ return t !== n && wr("Both smartPtrType and smartPtr must be specified"), e.count = { value: 1 }, lr(Object.create(r, { $$: { value: e } }));
323
+ };
324
+ function Et(r) {
325
+ var e = this.getPointee(r);
326
+ if (!e)
327
+ return this.destructor(r), null;
328
+ var t = _t(this.registeredClass, e);
329
+ if (t !== void 0) {
330
+ if (t.$$.count.value === 0)
331
+ return t.$$.ptr = e, t.$$.smartPtr = r, t.clone();
332
+ var n = t.clone();
333
+ return this.destructor(r), n;
334
+ }
335
+ function a() {
336
+ return this.isSmartPointer ? Er(this.registeredClass.instancePrototype, { ptrType: this.pointeeType, ptr: e, smartPtrType: this, smartPtr: r }) : Er(this.registeredClass.instancePrototype, { ptrType: this, ptr: r });
337
+ }
338
+ var i = this.registeredClass.getActualType(e), s = _e[i];
339
+ if (!s)
340
+ return a.call(this);
341
+ var u;
342
+ this.isConst ? u = s.constPointerType : u = s.pointerType;
343
+ var l = we(e, this.registeredClass, u.registeredClass);
344
+ return l === null ? a.call(this) : this.isSmartPointer ? Er(u.registeredClass.instancePrototype, { ptrType: u, ptr: l, smartPtrType: this, smartPtr: r }) : Er(u.registeredClass.instancePrototype, { ptrType: u, ptr: l });
345
+ }
346
+ var lr = (r) => typeof FinalizationRegistry > "u" ? (lr = (e) => e, r) : (Hr = new FinalizationRegistry((e) => {
347
+ ye(e.$$);
348
+ }), lr = (e) => {
349
+ var t = e.$$, n = !!t.smartPtr;
350
+ if (n) {
351
+ var a = { $$: t };
352
+ Hr.register(e, a, e);
353
+ }
354
+ return e;
355
+ }, ge = (e) => Hr.unregister(e), lr(r)), bt = () => {
356
+ Object.assign(br.prototype, { isAliasOf(r) {
357
+ if (!(this instanceof br) || !(r instanceof br))
358
+ return !1;
359
+ var e = this.$$.ptrType.registeredClass, t = this.$$.ptr;
360
+ r.$$ = r.$$;
361
+ for (var n = r.$$.ptrType.registeredClass, a = r.$$.ptr; e.baseClass; )
362
+ t = e.upcast(t), e = e.baseClass;
363
+ for (; n.baseClass; )
364
+ a = n.upcast(a), n = n.baseClass;
365
+ return e === n && t === a;
366
+ }, clone() {
367
+ if (this.$$.ptr || zr(this), this.$$.preservePointerOnDelete)
368
+ return this.$$.count.value += 1, this;
369
+ var r = lr(Object.create(Object.getPrototypeOf(this), { $$: { value: vt(this.$$) } }));
370
+ return r.$$.count.value += 1, r.$$.deleteScheduled = !1, r;
371
+ }, delete() {
372
+ this.$$.ptr || zr(this), this.$$.deleteScheduled && !this.$$.preservePointerOnDelete && k("Object already scheduled for deletion"), ge(this), ye(this.$$), this.$$.preservePointerOnDelete || (this.$$.smartPtr = void 0, this.$$.ptr = void 0);
373
+ }, isDeleted() {
374
+ return !this.$$.ptr;
375
+ }, deleteLater() {
376
+ return this.$$.ptr || zr(this), this.$$.deleteScheduled && !this.$$.preservePointerOnDelete && k("Object already scheduled for deletion"), ir.push(this), ir.length === 1 && sr && sr(Lr), this.$$.deleteScheduled = !0, this;
377
+ } });
378
+ };
379
+ function br() {
380
+ }
381
+ var kt = 48, Pt = 57, xr = (r) => {
382
+ if (r === void 0)
383
+ return "_unknown";
384
+ r = r.replace(/[^a-zA-Z0-9_]/g, "$");
385
+ var e = r.charCodeAt(0);
386
+ return e >= kt && e <= Pt ? `_${r}` : r;
387
+ };
388
+ function kr(r, e) {
389
+ return r = xr(r), { [r]: function() {
390
+ return e.apply(this, arguments);
391
+ } }[r];
392
+ }
393
+ var Ee = (r, e, t) => {
394
+ if (r[e].overloadTable === void 0) {
395
+ var n = r[e];
396
+ r[e] = function() {
397
+ return r[e].overloadTable.hasOwnProperty(arguments.length) || k(`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);
398
+ }, r[e].overloadTable = [], r[e].overloadTable[n.argCount] = n;
399
+ }
400
+ }, Ir = (r, e, t) => {
401
+ d.hasOwnProperty(r) ? ((t === void 0 || d[r].overloadTable !== void 0 && d[r].overloadTable[t] !== void 0) && k(`Cannot register public name '${r}' twice`), Ee(d, r, r), d.hasOwnProperty(t) && k(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`), d[r].overloadTable[t] = e) : (d[r] = e, t !== void 0 && (d[r].numArguments = t));
402
+ };
403
+ function $t(r, e, t, n, a, i, s, u) {
404
+ this.name = r, this.constructor = e, this.instancePrototype = t, this.rawDestructor = n, this.baseClass = a, this.getActualType = i, this.upcast = s, this.downcast = u, this.pureVirtualFunctions = [];
405
+ }
406
+ var Pr = (r, e, t) => {
407
+ for (; e !== t; )
408
+ e.upcast || k(`Expected null or instance of ${t.name}, got an instance of ${e.name}`), r = e.upcast(r), e = e.baseClass;
409
+ return r;
410
+ };
411
+ function Ct(r, e) {
412
+ if (e === null)
413
+ return this.isReference && k(`null is not a valid ${this.name}`), 0;
414
+ e.$$ || k(`Cannot pass "${Vr(e)}" as a ${this.name}`), e.$$.ptr || k(`Cannot pass deleted object as a pointer of type ${this.name}`);
415
+ var t = e.$$.ptrType.registeredClass, n = Pr(e.$$.ptr, t, this.registeredClass);
416
+ return n;
417
+ }
418
+ function Tt(r, e) {
419
+ var t;
420
+ if (e === null)
421
+ return this.isReference && k(`null is not a valid ${this.name}`), this.isSmartPointer ? (t = this.rawConstructor(), r !== null && r.push(this.rawDestructor, t), t) : 0;
422
+ e.$$ || k(`Cannot pass "${Vr(e)}" as a ${this.name}`), e.$$.ptr || k(`Cannot pass deleted object as a pointer of type ${this.name}`), !this.isConst && e.$$.ptrType.isConst && k(`Cannot convert argument of type ${e.$$.smartPtrType ? e.$$.smartPtrType.name : e.$$.ptrType.name} to parameter type ${this.name}`);
423
+ var n = e.$$.ptrType.registeredClass;
424
+ if (t = Pr(e.$$.ptr, n, this.registeredClass), this.isSmartPointer)
425
+ switch (e.$$.smartPtr === void 0 && k("Passing raw pointer to smart pointer is illegal"), this.sharingPolicy) {
426
+ case 0:
427
+ e.$$.smartPtrType === this ? t = e.$$.smartPtr : k(`Cannot convert argument of type ${e.$$.smartPtrType ? e.$$.smartPtrType.name : e.$$.ptrType.name} to parameter type ${this.name}`);
428
+ break;
429
+ case 1:
430
+ t = e.$$.smartPtr;
431
+ break;
432
+ case 2:
433
+ if (e.$$.smartPtrType === this)
434
+ t = e.$$.smartPtr;
435
+ else {
436
+ var a = e.clone();
437
+ t = this.rawShare(t, Tr.toHandle(() => a.delete())), r !== null && r.push(this.rawDestructor, t);
438
+ }
439
+ break;
440
+ default:
441
+ k("Unsupporting sharing policy");
442
+ }
443
+ return t;
444
+ }
445
+ function Ft(r, e) {
446
+ if (e === null)
447
+ return this.isReference && k(`null is not a valid ${this.name}`), 0;
448
+ e.$$ || k(`Cannot pass "${Vr(e)}" as a ${this.name}`), e.$$.ptr || k(`Cannot pass deleted object as a pointer of type ${this.name}`), e.$$.ptrType.isConst && k(`Cannot convert argument of type ${e.$$.ptrType.name} to parameter type ${this.name}`);
449
+ var t = e.$$.ptrType.registeredClass, n = Pr(e.$$.ptr, t, this.registeredClass);
450
+ return n;
451
+ }
452
+ function be(r) {
453
+ return this.fromWireType(C[r >> 2]);
454
+ }
455
+ var Dt = () => {
456
+ Object.assign($r.prototype, { getPointee(r) {
457
+ return this.rawGetPointee && (r = this.rawGetPointee(r)), r;
458
+ }, destructor(r) {
459
+ this.rawDestructor && this.rawDestructor(r);
460
+ }, argPackAdvance: H, readValueFromPointer: be, deleteObject(r) {
461
+ r !== null && r.delete();
462
+ }, fromWireType: Et });
463
+ };
464
+ function $r(r, e, t, n, a, i, s, u, l, f, c) {
465
+ this.name = r, this.registeredClass = e, this.isReference = t, this.isConst = n, this.isSmartPointer = a, this.pointeeType = i, this.sharingPolicy = s, this.rawGetPointee = u, this.rawConstructor = l, this.rawShare = f, this.rawDestructor = c, !a && e.baseClass === void 0 ? n ? (this.toWireType = Ct, this.destructorFunction = null) : (this.toWireType = Ft, this.destructorFunction = null) : this.toWireType = Tt;
466
+ }
467
+ var ke = (r, e, t) => {
468
+ d.hasOwnProperty(r) || wr("Replacing nonexistant public symbol"), d[r].overloadTable !== void 0 && t !== void 0 ? d[r].overloadTable[t] = e : (d[r] = e, d[r].argCount = t);
469
+ }, St = (r, e, t) => {
470
+ var n = d["dynCall_" + r];
471
+ return t && t.length ? n.apply(null, [e].concat(t)) : n.call(null, e);
472
+ }, Cr = [], Pe, $e = (r) => {
473
+ var e = Cr[r];
474
+ return e || (r >= Cr.length && (Cr.length = r + 1), Cr[r] = e = Pe.get(r)), e;
475
+ }, At = (r, e, t) => {
476
+ if (r.includes("j"))
477
+ return St(r, e, t);
478
+ var n = $e(e).apply(null, t);
479
+ return n;
480
+ }, Rt = (r, e) => {
481
+ var t = [];
482
+ return function() {
483
+ return t.length = 0, Object.assign(t, arguments), At(r, e, t);
484
+ };
485
+ }, j = (r, e) => {
486
+ r = A(r);
487
+ function t() {
488
+ return r.includes("j") ? Rt(r, e) : $e(e);
489
+ }
490
+ var n = t();
491
+ return typeof n != "function" && k(`unknown function pointer with signature ${r}: ${e}`), n;
492
+ }, Mt = (r, e) => {
493
+ var t = kr(e, function(n) {
494
+ this.name = e, this.message = n;
495
+ var a = new Error(n).stack;
496
+ a !== void 0 && (this.stack = this.toString() + `
497
+ ` + a.replace(/^Error(:[^\n]*)?\n/, ""));
498
+ });
499
+ return t.prototype = Object.create(r.prototype), t.prototype.constructor = t, t.prototype.toString = function() {
500
+ return this.message === void 0 ? this.name : `${this.name}: ${this.message}`;
501
+ }, t;
502
+ }, Ce, Te = (r) => {
503
+ var e = xe(r), t = A(e);
504
+ return N(e), t;
505
+ }, er = (r, e) => {
506
+ var t = [], n = {};
507
+ function a(i) {
508
+ if (!n[i] && !X[i]) {
509
+ if (yr[i]) {
510
+ yr[i].forEach(a);
511
+ return;
512
+ }
513
+ t.push(i), n[i] = !0;
514
+ }
515
+ }
516
+ throw e.forEach(a), new Ce(`${r}: ` + t.map(Te).join([", "]));
517
+ }, Ot = (r, e, t, n, a, i, s, u, l, f, c, m, p) => {
518
+ c = A(c), i = j(a, i), u && (u = j(s, u)), f && (f = j(l, f)), p = j(m, p);
519
+ var h = xr(c);
520
+ Ir(h, function() {
521
+ er(`Cannot construct ${c} due to unbound types`, [n]);
522
+ }), L([r, e, t], n ? [n] : [], function(y) {
523
+ y = y[0];
524
+ var _, P;
525
+ n ? (_ = y.registeredClass, P = _.instancePrototype) : P = br.prototype;
526
+ var $ = kr(h, function() {
527
+ if (Object.getPrototypeOf(this) !== v)
528
+ throw new rr("Use 'new' to construct " + c);
529
+ if (g.constructor_body === void 0)
530
+ throw new rr(c + " has no accessible constructor");
531
+ var D = g.constructor_body[arguments.length];
532
+ if (D === void 0)
533
+ throw new rr(`Tried to invoke ctor of ${c} with invalid number of parameters (${arguments.length}) - expected (${Object.keys(g.constructor_body).toString()}) parameters instead!`);
534
+ return D.apply(this, arguments);
535
+ }), v = Object.create(P, { constructor: { value: $ } });
536
+ $.prototype = v;
537
+ var g = new $t(c, $, v, p, _, i, u, f);
538
+ g.baseClass && (g.baseClass.__derivedClasses === void 0 && (g.baseClass.__derivedClasses = []), g.baseClass.__derivedClasses.push(g));
539
+ var S = new $r(c, g, !0, !1, !1), F = new $r(c + "*", g, !1, !1, !1), U = new $r(c + " const*", g, !1, !0, !1);
540
+ return _e[r] = { pointerType: F, constPointerType: U }, ke(h, $), [S, F, U];
541
+ });
542
+ }, Br = (r, e) => {
543
+ for (var t = [], n = 0; n < r; n++)
544
+ t.push(C[e + n * 4 >> 2]);
545
+ return t;
546
+ };
547
+ function jt(r, e) {
548
+ if (!(r instanceof Function))
549
+ throw new TypeError(`new_ called with constructor type ${typeof r} which is not a function`);
550
+ var t = kr(r.name || "unknownFunctionName", function() {
551
+ });
552
+ t.prototype = r.prototype;
553
+ var n = new t(), a = r.apply(n, e);
554
+ return a instanceof Object ? a : n;
555
+ }
556
+ function Nr(r, e, t, n, a, i) {
557
+ var s = e.length;
558
+ s < 2 && k("argTypes array size mismatch! Must at least get return value and 'this' types!");
559
+ for (var u = e[1] !== null && t !== null, l = !1, f = 1; f < e.length; ++f)
560
+ if (e[f] !== null && e[f].destructorFunction === void 0) {
561
+ l = !0;
562
+ break;
563
+ }
564
+ for (var c = e[0].name !== "void", m = "", p = "", f = 0; f < s - 2; ++f)
565
+ m += (f !== 0 ? ", " : "") + "arg" + f, p += (f !== 0 ? ", " : "") + "arg" + f + "Wired";
566
+ var h = `
567
+ return function ${xr(r)}(${m}) {
568
+ if (arguments.length !== ${s - 2}) {
569
+ throwBindingError('function ${r} called with ' + arguments.length + ' arguments, expected ${s - 2}');
570
+ }`;
571
+ l && (h += `var destructors = [];
572
+ `);
573
+ var y = l ? "destructors" : "null", _ = ["throwBindingError", "invoker", "fn", "runDestructors", "retType", "classParam"], P = [k, n, a, mr, e[0], e[1]];
574
+ u && (h += "var thisWired = classParam.toWireType(" + y + `, this);
575
+ `);
576
+ for (var f = 0; f < s - 2; ++f)
577
+ h += "var arg" + f + "Wired = argType" + f + ".toWireType(" + y + ", arg" + f + "); // " + e[f + 2].name + `
578
+ `, _.push("argType" + f), P.push(e[f + 2]);
579
+ if (u && (p = "thisWired" + (p.length > 0 ? ", " : "") + p), h += (c || i ? "var rv = " : "") + "invoker(fn" + (p.length > 0 ? ", " : "") + p + `);
580
+ `, l)
581
+ h += `runDestructors(destructors);
582
+ `;
583
+ else
584
+ for (var f = u ? 1 : 2; f < e.length; ++f) {
585
+ var $ = f === 1 ? "thisWired" : "arg" + (f - 2) + "Wired";
586
+ e[f].destructorFunction !== null && (h += $ + "_dtor(" + $ + "); // " + e[f].name + `
587
+ `, _.push($ + "_dtor"), P.push(e[f].destructorFunction));
588
+ }
589
+ return c && (h += `var ret = retType.fromWireType(rv);
590
+ return ret;
591
+ `), h += `}
592
+ `, _.push(h), jt(Function, _).apply(null, P);
593
+ }
594
+ var Wt = (r, e, t, n, a, i) => {
595
+ var s = Br(e, t);
596
+ a = j(n, a), L([], [r], function(u) {
597
+ u = u[0];
598
+ var l = `constructor ${u.name}`;
599
+ if (u.registeredClass.constructor_body === void 0 && (u.registeredClass.constructor_body = []), u.registeredClass.constructor_body[e - 1] !== void 0)
600
+ throw new rr(`Cannot register multiple constructors with identical number of parameters (${e - 1}) for class '${u.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);
601
+ return u.registeredClass.constructor_body[e - 1] = () => {
602
+ er(`Cannot construct ${u.name} due to unbound types`, s);
603
+ }, L([], s, (f) => (f.splice(1, 0, null), u.registeredClass.constructor_body[e - 1] = Nr(l, f, null, a, i), [])), [];
604
+ });
605
+ }, Ut = (r, e, t, n, a, i, s, u, l) => {
606
+ var f = Br(t, n);
607
+ e = A(e), i = j(a, i), L([], [r], function(c) {
608
+ c = c[0];
609
+ var m = `${c.name}.${e}`;
610
+ e.startsWith("@@") && (e = Symbol[e.substring(2)]), u && c.registeredClass.pureVirtualFunctions.push(e);
611
+ function p() {
612
+ er(`Cannot call ${m} due to unbound types`, f);
613
+ }
614
+ var h = c.registeredClass.instancePrototype, y = h[e];
615
+ return y === void 0 || y.overloadTable === void 0 && y.className !== c.name && y.argCount === t - 2 ? (p.argCount = t - 2, p.className = c.name, h[e] = p) : (Ee(h, e, m), h[e].overloadTable[t - 2] = p), L([], f, function(_) {
616
+ var P = Nr(m, _, c, i, s, l);
617
+ return h[e].overloadTable === void 0 ? (P.argCount = t - 2, h[e] = P) : h[e].overloadTable[t - 2] = P, [];
618
+ }), [];
619
+ });
620
+ }, Fe = (r, e, t) => (r instanceof Object || k(`${t} with invalid "this": ${r}`), r instanceof e.registeredClass.constructor || k(`${t} incompatible with "this" of type ${r.constructor.name}`), r.$$.ptr || k(`cannot call emscripten binding method ${t} on deleted object`), Pr(r.$$.ptr, r.$$.ptrType.registeredClass, e.registeredClass)), zt = (r, e, t, n, a, i, s, u, l, f) => {
621
+ e = A(e), a = j(n, a), L([], [r], function(c) {
622
+ c = c[0];
623
+ var m = `${c.name}.${e}`, p = { get() {
624
+ er(`Cannot access ${m} due to unbound types`, [t, s]);
625
+ }, enumerable: !0, configurable: !0 };
626
+ return l ? p.set = () => er(`Cannot access ${m} due to unbound types`, [t, s]) : p.set = (h) => k(m + " is a read-only property"), Object.defineProperty(c.registeredClass.instancePrototype, e, p), L([], l ? [t, s] : [t], function(h) {
627
+ var y = h[0], _ = { get() {
628
+ var $ = Fe(this, c, m + " getter");
629
+ return y.fromWireType(a(i, $));
630
+ }, enumerable: !0 };
631
+ if (l) {
632
+ l = j(u, l);
633
+ var P = h[1];
634
+ _.set = function($) {
635
+ var v = Fe(this, c, m + " setter"), g = [];
636
+ l(f, v, P.toWireType(g, $)), mr(g);
637
+ };
638
+ }
639
+ return Object.defineProperty(c.registeredClass.instancePrototype, e, _), [];
640
+ }), [];
641
+ });
642
+ };
643
+ function Ht() {
644
+ Object.assign(De.prototype, { get(r) {
645
+ return this.allocated[r];
646
+ }, has(r) {
647
+ return this.allocated[r] !== void 0;
648
+ }, allocate(r) {
649
+ var e = this.freelist.pop() || this.allocated.length;
650
+ return this.allocated[e] = r, e;
651
+ }, free(r) {
652
+ this.allocated[r] = void 0, this.freelist.push(r);
653
+ } });
654
+ }
655
+ function De() {
656
+ this.allocated = [void 0], this.freelist = [];
657
+ }
658
+ var z = new De(), Se = (r) => {
659
+ r >= z.reserved && --z.get(r).refcount === 0 && z.free(r);
660
+ }, Lt = () => {
661
+ for (var r = 0, e = z.reserved; e < z.allocated.length; ++e)
662
+ z.allocated[e] !== void 0 && ++r;
663
+ return r;
664
+ }, xt = () => {
665
+ z.allocated.push({ value: void 0 }, { value: null }, { value: !0 }, { value: !1 }), z.reserved = z.allocated.length, d.count_emval_handles = Lt;
666
+ }, Tr = { toValue: (r) => (r || k("Cannot use deleted val. handle = " + r), z.get(r).value), toHandle: (r) => {
667
+ switch (r) {
668
+ case void 0:
669
+ return 1;
670
+ case null:
671
+ return 2;
672
+ case !0:
673
+ return 3;
674
+ case !1:
675
+ return 4;
676
+ default:
677
+ return z.allocate({ refcount: 1, value: r });
678
+ }
679
+ } }, It = (r, e) => {
680
+ e = A(e), x(r, { name: e, fromWireType: (t) => {
681
+ var n = Tr.toValue(t);
682
+ return Se(t), n;
683
+ }, toWireType: (t, n) => Tr.toHandle(n), argPackAdvance: H, readValueFromPointer: gr, destructorFunction: null });
684
+ }, Bt = (r, e, t) => {
685
+ switch (e) {
686
+ case 1:
687
+ return t ? function(n) {
688
+ return this.fromWireType(O[n >> 0]);
689
+ } : function(n) {
690
+ return this.fromWireType(W[n >> 0]);
691
+ };
692
+ case 2:
693
+ return t ? function(n) {
694
+ return this.fromWireType(K[n >> 1]);
695
+ } : function(n) {
696
+ return this.fromWireType(or[n >> 1]);
697
+ };
698
+ case 4:
699
+ return t ? function(n) {
700
+ return this.fromWireType(E[n >> 2]);
701
+ } : function(n) {
702
+ return this.fromWireType(C[n >> 2]);
703
+ };
704
+ default:
705
+ throw new TypeError(`invalid integer width (${e}): ${r}`);
706
+ }
707
+ }, Nt = (r, e, t, n) => {
708
+ e = A(e);
709
+ function a() {
710
+ }
711
+ a.values = {}, x(r, { name: e, constructor: a, fromWireType: function(i) {
712
+ return this.constructor.values[i];
713
+ }, toWireType: (i, s) => s.value, argPackAdvance: H, readValueFromPointer: Bt(e, t, n), destructorFunction: null }), Ir(e, a);
714
+ }, Ae = (r, e) => {
715
+ var t = X[r];
716
+ return t === void 0 && k(e + " has unknown type " + Te(r)), t;
717
+ }, Vt = (r, e, t) => {
718
+ var n = Ae(r, "enum");
719
+ e = A(e);
720
+ var a = n.constructor, i = Object.create(n.constructor.prototype, { value: { value: t }, constructor: { value: kr(`${n.name}_${e}`, function() {
721
+ }) } });
722
+ a.values[t] = i, a[e] = i;
723
+ }, Vr = (r) => {
724
+ if (r === null)
725
+ return "null";
726
+ var e = typeof r;
727
+ return e === "object" || e === "array" || e === "function" ? r.toString() : "" + r;
728
+ }, Yt = (r, e) => {
729
+ switch (e) {
730
+ case 4:
731
+ return function(t) {
732
+ return this.fromWireType(ae[t >> 2]);
733
+ };
734
+ case 8:
735
+ return function(t) {
736
+ return this.fromWireType(ie[t >> 3]);
737
+ };
738
+ default:
739
+ throw new TypeError(`invalid float width (${e}): ${r}`);
740
+ }
741
+ }, qt = (r, e, t) => {
742
+ e = A(e), x(r, { name: e, fromWireType: (n) => n, toWireType: (n, a) => a, argPackAdvance: H, readValueFromPointer: Yt(e, t), destructorFunction: null });
743
+ }, Xt = (r, e, t, n, a, i, s) => {
744
+ var u = Br(e, t);
745
+ r = A(r), a = j(n, a), Ir(r, function() {
746
+ er(`Cannot call ${r} due to unbound types`, u);
747
+ }, e - 1), L([], u, function(l) {
748
+ var f = [l[0], null].concat(l.slice(1));
749
+ return ke(r, Nr(r, f, null, a, i, s), e - 1), [];
750
+ });
751
+ }, Gt = (r, e, t) => {
752
+ switch (e) {
753
+ case 1:
754
+ return t ? (n) => O[n >> 0] : (n) => W[n >> 0];
755
+ case 2:
756
+ return t ? (n) => K[n >> 1] : (n) => or[n >> 1];
757
+ case 4:
758
+ return t ? (n) => E[n >> 2] : (n) => C[n >> 2];
759
+ default:
760
+ throw new TypeError(`invalid integer width (${e}): ${r}`);
761
+ }
762
+ }, Kt = (r, e, t, n, a) => {
763
+ e = A(e);
764
+ var i = (c) => c;
765
+ if (n === 0) {
766
+ var s = 32 - 8 * t;
767
+ i = (c) => c << s >>> s;
768
+ }
769
+ var u = e.includes("unsigned"), l = (c, m) => {
770
+ }, f;
771
+ u ? f = function(c, m) {
772
+ return l(m, this.name), m >>> 0;
773
+ } : f = function(c, m) {
774
+ return l(m, this.name), m;
775
+ }, x(r, { name: e, fromWireType: i, toWireType: f, argPackAdvance: H, readValueFromPointer: Gt(e, t, n !== 0), destructorFunction: null });
776
+ }, Jt = (r, e, t) => {
777
+ var n = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array], a = n[e];
778
+ function i(s) {
779
+ var u = C[s >> 2], l = C[s + 4 >> 2];
780
+ return new a(O.buffer, l, u);
781
+ }
782
+ t = A(t), x(r, { name: t, fromWireType: i, argPackAdvance: H, readValueFromPointer: i }, { ignoreDuplicateRegistrations: !0 });
783
+ }, Yr = (r, e, t, n) => {
784
+ if (!(n > 0)) return 0;
785
+ for (var a = t, i = t + n - 1, s = 0; s < r.length; ++s) {
786
+ var u = r.charCodeAt(s);
787
+ if (u >= 55296 && u <= 57343) {
788
+ var l = r.charCodeAt(++s);
789
+ u = 65536 + ((u & 1023) << 10) | l & 1023;
790
+ }
791
+ if (u <= 127) {
792
+ if (t >= i) break;
793
+ e[t++] = u;
794
+ } else if (u <= 2047) {
795
+ if (t + 1 >= i) break;
796
+ e[t++] = 192 | u >> 6, e[t++] = 128 | u & 63;
797
+ } else if (u <= 65535) {
798
+ if (t + 2 >= i) break;
799
+ e[t++] = 224 | u >> 12, e[t++] = 128 | u >> 6 & 63, e[t++] = 128 | u & 63;
800
+ } else {
801
+ if (t + 3 >= i) break;
802
+ e[t++] = 240 | u >> 18, e[t++] = 128 | u >> 12 & 63, e[t++] = 128 | u >> 6 & 63, e[t++] = 128 | u & 63;
803
+ }
804
+ }
805
+ return e[t] = 0, t - a;
806
+ }, Re = (r, e, t) => Yr(r, W, e, t), Fr = (r) => {
807
+ for (var e = 0, t = 0; t < r.length; ++t) {
808
+ var n = r.charCodeAt(t);
809
+ n <= 127 ? e++ : n <= 2047 ? e += 2 : n >= 55296 && n <= 57343 ? (e += 4, ++t) : e += 3;
810
+ }
811
+ return e;
812
+ }, Me = typeof TextDecoder < "u" ? new TextDecoder("utf8") : void 0, tr = (r, e, t) => {
813
+ for (var n = e + t, a = e; r[a] && !(a >= n); ) ++a;
814
+ if (a - e > 16 && r.buffer && Me)
815
+ return Me.decode(r.subarray(e, a));
816
+ for (var i = ""; e < a; ) {
817
+ var s = r[e++];
818
+ if (!(s & 128)) {
819
+ i += String.fromCharCode(s);
820
+ continue;
821
+ }
822
+ var u = r[e++] & 63;
823
+ if ((s & 224) == 192) {
824
+ i += String.fromCharCode((s & 31) << 6 | u);
825
+ continue;
826
+ }
827
+ var l = r[e++] & 63;
828
+ if ((s & 240) == 224 ? s = (s & 15) << 12 | u << 6 | l : s = (s & 7) << 18 | u << 12 | l << 6 | r[e++] & 63, s < 65536)
829
+ i += String.fromCharCode(s);
830
+ else {
831
+ var f = s - 65536;
832
+ i += String.fromCharCode(55296 | f >> 10, 56320 | f & 1023);
833
+ }
834
+ }
835
+ return i;
836
+ }, fr = (r, e) => r ? tr(W, r, e) : "", Zt = (r, e) => {
837
+ e = A(e);
838
+ var t = e === "std::string";
839
+ x(r, { name: e, fromWireType(n) {
840
+ var a = C[n >> 2], i = n + 4, s;
841
+ if (t)
842
+ for (var u = i, l = 0; l <= a; ++l) {
843
+ var f = i + l;
844
+ if (l == a || W[f] == 0) {
845
+ var c = f - u, m = fr(u, c);
846
+ s === void 0 ? s = m : (s += "\0", s += m), u = f + 1;
847
+ }
848
+ }
849
+ else {
850
+ for (var p = new Array(a), l = 0; l < a; ++l)
851
+ p[l] = String.fromCharCode(W[i + l]);
852
+ s = p.join("");
853
+ }
854
+ return N(n), s;
855
+ }, toWireType(n, a) {
856
+ a instanceof ArrayBuffer && (a = new Uint8Array(a));
857
+ var i, s = typeof a == "string";
858
+ s || a instanceof Uint8Array || a instanceof Uint8ClampedArray || a instanceof Int8Array || k("Cannot pass non-string to std::string"), t && s ? i = Fr(a) : i = a.length;
859
+ var u = Kr(4 + i + 1), l = u + 4;
860
+ if (C[u >> 2] = i, t && s)
861
+ Re(a, l, i + 1);
862
+ else if (s)
863
+ for (var f = 0; f < i; ++f) {
864
+ var c = a.charCodeAt(f);
865
+ c > 255 && (N(l), k("String has UTF-16 code units that do not fit in 8 bits")), W[l + f] = c;
866
+ }
867
+ else
868
+ for (var f = 0; f < i; ++f)
869
+ W[l + f] = a[f];
870
+ return n !== null && n.push(N, u), u;
871
+ }, argPackAdvance: H, readValueFromPointer: be, destructorFunction(n) {
872
+ N(n);
873
+ } });
874
+ }, Oe = typeof TextDecoder < "u" ? new TextDecoder("utf-16le") : void 0, Qt = (r, e) => {
875
+ for (var t = r, n = t >> 1, a = n + e / 2; !(n >= a) && or[n]; ) ++n;
876
+ if (t = n << 1, t - r > 32 && Oe) return Oe.decode(W.subarray(r, t));
877
+ for (var i = "", s = 0; !(s >= e / 2); ++s) {
878
+ var u = K[r + s * 2 >> 1];
879
+ if (u == 0) break;
880
+ i += String.fromCharCode(u);
881
+ }
882
+ return i;
883
+ }, rn = (r, e, t) => {
884
+ if (t === void 0 && (t = 2147483647), t < 2) return 0;
885
+ t -= 2;
886
+ for (var n = e, a = t < r.length * 2 ? t / 2 : r.length, i = 0; i < a; ++i) {
887
+ var s = r.charCodeAt(i);
888
+ K[e >> 1] = s, e += 2;
889
+ }
890
+ return K[e >> 1] = 0, e - n;
891
+ }, en = (r) => r.length * 2, tn = (r, e) => {
892
+ for (var t = 0, n = ""; !(t >= e / 4); ) {
893
+ var a = E[r + t * 4 >> 2];
894
+ if (a == 0) break;
895
+ if (++t, a >= 65536) {
896
+ var i = a - 65536;
897
+ n += String.fromCharCode(55296 | i >> 10, 56320 | i & 1023);
898
+ } else
899
+ n += String.fromCharCode(a);
900
+ }
901
+ return n;
902
+ }, nn = (r, e, t) => {
903
+ if (t === void 0 && (t = 2147483647), t < 4) return 0;
904
+ for (var n = e, a = n + t - 4, i = 0; i < r.length; ++i) {
905
+ var s = r.charCodeAt(i);
906
+ if (s >= 55296 && s <= 57343) {
907
+ var u = r.charCodeAt(++i);
908
+ s = 65536 + ((s & 1023) << 10) | u & 1023;
909
+ }
910
+ if (E[e >> 2] = s, e += 4, e + 4 > a) break;
911
+ }
912
+ return E[e >> 2] = 0, e - n;
913
+ }, on = (r) => {
914
+ for (var e = 0, t = 0; t < r.length; ++t) {
915
+ var n = r.charCodeAt(t);
916
+ n >= 55296 && n <= 57343 && ++t, e += 4;
917
+ }
918
+ return e;
919
+ }, an = (r, e, t) => {
920
+ t = A(t);
921
+ var n, a, i, s, u;
922
+ e === 2 ? (n = Qt, a = rn, s = en, i = () => or, u = 1) : e === 4 && (n = tn, a = nn, s = on, i = () => C, u = 2), x(r, { name: t, fromWireType: (l) => {
923
+ for (var f = C[l >> 2], c = i(), m, p = l + 4, h = 0; h <= f; ++h) {
924
+ var y = l + 4 + h * e;
925
+ if (h == f || c[y >> u] == 0) {
926
+ var _ = y - p, P = n(p, _);
927
+ m === void 0 ? m = P : (m += "\0", m += P), p = y + e;
928
+ }
929
+ }
930
+ return N(l), m;
931
+ }, toWireType: (l, f) => {
932
+ typeof f != "string" && k(`Cannot pass non-string to C++ string type ${t}`);
933
+ var c = s(f), m = Kr(4 + c + e);
934
+ return C[m >> 2] = c >> u, a(f, m + 4, c + e), l !== null && l.push(N, m), m;
935
+ }, argPackAdvance: H, readValueFromPointer: gr, destructorFunction(l) {
936
+ N(l);
937
+ } });
938
+ }, sn = (r, e, t, n, a, i) => {
939
+ pr[r] = { name: A(e), rawConstructor: j(t, n), rawDestructor: j(a, i), elements: [] };
940
+ }, un = (r, e, t, n, a, i, s, u, l) => {
941
+ pr[r].elements.push({ getterReturnType: e, getter: j(t, n), getterContext: a, setterArgumentType: i, setter: j(s, u), setterContext: l });
942
+ }, ln = (r, e, t, n, a, i) => {
943
+ _r[r] = { name: A(e), rawConstructor: j(t, n), rawDestructor: j(a, i), fields: [] };
944
+ }, fn = (r, e, t, n, a, i, s, u, l, f) => {
945
+ _r[r].fields.push({ fieldName: A(e), getterReturnType: t, getter: j(n, a), getterContext: i, setterArgumentType: s, setter: j(u, l), setterContext: f });
946
+ }, dn = (r, e) => {
947
+ e = A(e), x(r, { isVoid: !0, name: e, argPackAdvance: 0, fromWireType: () => {
948
+ }, toWireType: (t, n) => {
949
+ } });
950
+ }, cn = (r) => {
951
+ r > 4 && (z.get(r).refcount += 1);
952
+ }, vn = (r, e) => {
953
+ r = Ae(r, "_emval_take_value");
954
+ var t = r.readValueFromPointer(e);
955
+ return Tr.toHandle(t);
956
+ }, hn = () => {
957
+ J("");
958
+ }, pn = (r, e, t) => W.copyWithin(r, e, e + t), mn = () => 2147483648, gn = (r) => {
959
+ var e = vr.buffer, t = (r - e.byteLength + 65535) / 65536;
960
+ try {
961
+ return vr.grow(t), se(), 1;
962
+ } catch {
963
+ }
964
+ }, yn = (r) => {
965
+ var e = W.length;
966
+ r >>>= 0;
967
+ var t = mn();
968
+ if (r > t)
969
+ return !1;
970
+ for (var n = (l, f) => l + (f - l % f) % f, a = 1; a <= 4; a *= 2) {
971
+ var i = e * (1 + 0.2 / a);
972
+ i = Math.min(i, r + 100663296);
973
+ var s = Math.min(t, n(Math.max(r, i), 65536)), u = gn(s);
974
+ if (u)
975
+ return !0;
976
+ }
977
+ return !1;
978
+ }, qr = {}, wn = () => te || "./this.program", dr = () => {
979
+ if (!dr.strings) {
980
+ var r = (typeof navigator == "object" && navigator.languages && navigator.languages[0] || "C").replace("-", "_") + ".UTF-8", e = { USER: "web_user", LOGNAME: "web_user", PATH: "/", PWD: "/", HOME: "/home/web_user", LANG: r, _: wn() };
981
+ for (var t in qr)
982
+ qr[t] === void 0 ? delete e[t] : e[t] = qr[t];
983
+ var n = [];
984
+ for (var t in e)
985
+ n.push(`${t}=${e[t]}`);
986
+ dr.strings = n;
987
+ }
988
+ return dr.strings;
989
+ }, _n = (r, e) => {
990
+ for (var t = 0; t < r.length; ++t)
991
+ O[e++ >> 0] = r.charCodeAt(t);
992
+ O[e >> 0] = 0;
993
+ }, T = { isAbs: (r) => r.charAt(0) === "/", splitPath: (r) => {
994
+ var e = /^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;
995
+ return e.exec(r).slice(1);
996
+ }, normalizeArray: (r, e) => {
997
+ for (var t = 0, n = r.length - 1; n >= 0; n--) {
998
+ var a = r[n];
999
+ a === "." ? r.splice(n, 1) : a === ".." ? (r.splice(n, 1), t++) : t && (r.splice(n, 1), t--);
1000
+ }
1001
+ if (e)
1002
+ for (; t; t--)
1003
+ r.unshift("..");
1004
+ return r;
1005
+ }, normalize: (r) => {
1006
+ var e = T.isAbs(r), t = r.substr(-1) === "/";
1007
+ return r = T.normalizeArray(r.split("/").filter((n) => !!n), !e).join("/"), !r && !e && (r = "."), r && t && (r += "/"), (e ? "/" : "") + r;
1008
+ }, dirname: (r) => {
1009
+ var e = T.splitPath(r), t = e[0], n = e[1];
1010
+ return !t && !n ? "." : (n && (n = n.substr(0, n.length - 1)), t + n);
1011
+ }, basename: (r) => {
1012
+ if (r === "/") return "/";
1013
+ r = T.normalize(r), r = r.replace(/\/$/, "");
1014
+ var e = r.lastIndexOf("/");
1015
+ return e === -1 ? r : r.substr(e + 1);
1016
+ }, join: function() {
1017
+ var r = Array.prototype.slice.call(arguments);
1018
+ return T.normalize(r.join("/"));
1019
+ }, join2: (r, e) => T.normalize(r + "/" + e) }, En = () => {
1020
+ if (typeof crypto == "object" && typeof crypto.getRandomValues == "function")
1021
+ return (r) => crypto.getRandomValues(r);
1022
+ J("initRandomDevice");
1023
+ }, je = (r) => (je = En())(r), B = { resolve: function() {
1024
+ for (var r = "", e = !1, t = arguments.length - 1; t >= -1 && !e; t--) {
1025
+ var n = t >= 0 ? arguments[t] : o.cwd();
1026
+ if (typeof n != "string")
1027
+ throw new TypeError("Arguments to path.resolve must be strings");
1028
+ if (!n)
1029
+ return "";
1030
+ r = n + "/" + r, e = T.isAbs(n);
1031
+ }
1032
+ return r = T.normalizeArray(r.split("/").filter((a) => !!a), !e).join("/"), (e ? "/" : "") + r || ".";
1033
+ }, relative: (r, e) => {
1034
+ r = B.resolve(r).substr(1), e = B.resolve(e).substr(1);
1035
+ function t(f) {
1036
+ for (var c = 0; c < f.length && f[c] === ""; c++)
1037
+ ;
1038
+ for (var m = f.length - 1; m >= 0 && f[m] === ""; m--)
1039
+ ;
1040
+ return c > m ? [] : f.slice(c, m - c + 1);
1041
+ }
1042
+ for (var n = t(r.split("/")), a = t(e.split("/")), i = Math.min(n.length, a.length), s = i, u = 0; u < i; u++)
1043
+ if (n[u] !== a[u]) {
1044
+ s = u;
1045
+ break;
1046
+ }
1047
+ for (var l = [], u = s; u < n.length; u++)
1048
+ l.push("..");
1049
+ return l = l.concat(a.slice(s)), l.join("/");
1050
+ } }, Xr = [];
1051
+ function Dr(r, e, t) {
1052
+ var n = Fr(r) + 1, a = new Array(n), i = Yr(r, a, 0, a.length);
1053
+ return e && (a.length = i), a;
1054
+ }
1055
+ var bn = () => {
1056
+ if (!Xr.length) {
1057
+ var r = null;
1058
+ if (typeof window < "u" && typeof window.prompt == "function" ? (r = window.prompt("Input: "), r !== null && (r += `
1059
+ `)) : typeof readline == "function" && (r = readline(), r !== null && (r += `
1060
+ `)), !r)
1061
+ return null;
1062
+ Xr = Dr(r, !0);
1063
+ }
1064
+ return Xr.shift();
1065
+ }, G = { ttys: [], init() {
1066
+ }, shutdown() {
1067
+ }, register(r, e) {
1068
+ G.ttys[r] = { input: [], output: [], ops: e }, o.registerDevice(r, G.stream_ops);
1069
+ }, stream_ops: { open(r) {
1070
+ var e = G.ttys[r.node.rdev];
1071
+ if (!e)
1072
+ throw new o.ErrnoError(43);
1073
+ r.tty = e, r.seekable = !1;
1074
+ }, close(r) {
1075
+ r.tty.ops.fsync(r.tty);
1076
+ }, fsync(r) {
1077
+ r.tty.ops.fsync(r.tty);
1078
+ }, read(r, e, t, n, a) {
1079
+ if (!r.tty || !r.tty.ops.get_char)
1080
+ throw new o.ErrnoError(60);
1081
+ for (var i = 0, s = 0; s < n; s++) {
1082
+ var u;
1083
+ try {
1084
+ u = r.tty.ops.get_char(r.tty);
1085
+ } catch {
1086
+ throw new o.ErrnoError(29);
1087
+ }
1088
+ if (u === void 0 && i === 0)
1089
+ throw new o.ErrnoError(6);
1090
+ if (u == null) break;
1091
+ i++, e[t + s] = u;
1092
+ }
1093
+ return i && (r.node.timestamp = Date.now()), i;
1094
+ }, write(r, e, t, n, a) {
1095
+ if (!r.tty || !r.tty.ops.put_char)
1096
+ throw new o.ErrnoError(60);
1097
+ try {
1098
+ for (var i = 0; i < n; i++)
1099
+ r.tty.ops.put_char(r.tty, e[t + i]);
1100
+ } catch {
1101
+ throw new o.ErrnoError(29);
1102
+ }
1103
+ return n && (r.node.timestamp = Date.now()), i;
1104
+ } }, default_tty_ops: { get_char(r) {
1105
+ return bn();
1106
+ }, put_char(r, e) {
1107
+ e === null || e === 10 ? (jr(tr(r.output, 0)), r.output = []) : e != 0 && r.output.push(e);
1108
+ }, fsync(r) {
1109
+ r.output && r.output.length > 0 && (jr(tr(r.output, 0)), r.output = []);
1110
+ }, ioctl_tcgets(r) {
1111
+ return { c_iflag: 25856, c_oflag: 5, c_cflag: 191, c_lflag: 35387, c_cc: [3, 28, 127, 21, 4, 0, 1, 0, 17, 19, 26, 0, 18, 15, 23, 22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] };
1112
+ }, ioctl_tcsets(r, e, t) {
1113
+ return 0;
1114
+ }, ioctl_tiocgwinsz(r) {
1115
+ return [24, 80];
1116
+ } }, default_tty1_ops: { put_char(r, e) {
1117
+ e === null || e === 10 ? (V(tr(r.output, 0)), r.output = []) : e != 0 && r.output.push(e);
1118
+ }, fsync(r) {
1119
+ r.output && r.output.length > 0 && (V(tr(r.output, 0)), r.output = []);
1120
+ } } }, We = (r) => {
1121
+ J();
1122
+ }, w = { ops_table: null, mount(r) {
1123
+ return w.createNode(null, "/", 16895, 0);
1124
+ }, createNode(r, e, t, n) {
1125
+ if (o.isBlkdev(t) || o.isFIFO(t))
1126
+ throw new o.ErrnoError(63);
1127
+ w.ops_table || (w.ops_table = { dir: { node: { getattr: w.node_ops.getattr, setattr: w.node_ops.setattr, lookup: w.node_ops.lookup, mknod: w.node_ops.mknod, rename: w.node_ops.rename, unlink: w.node_ops.unlink, rmdir: w.node_ops.rmdir, readdir: w.node_ops.readdir, symlink: w.node_ops.symlink }, stream: { llseek: w.stream_ops.llseek } }, file: { node: { getattr: w.node_ops.getattr, setattr: w.node_ops.setattr }, stream: { llseek: w.stream_ops.llseek, read: w.stream_ops.read, write: w.stream_ops.write, allocate: w.stream_ops.allocate, mmap: w.stream_ops.mmap, msync: w.stream_ops.msync } }, link: { node: { getattr: w.node_ops.getattr, setattr: w.node_ops.setattr, readlink: w.node_ops.readlink }, stream: {} }, chrdev: { node: { getattr: w.node_ops.getattr, setattr: w.node_ops.setattr }, stream: o.chrdev_stream_ops } });
1128
+ var a = o.createNode(r, e, t, n);
1129
+ return o.isDir(a.mode) ? (a.node_ops = w.ops_table.dir.node, a.stream_ops = w.ops_table.dir.stream, a.contents = {}) : o.isFile(a.mode) ? (a.node_ops = w.ops_table.file.node, a.stream_ops = w.ops_table.file.stream, a.usedBytes = 0, a.contents = null) : o.isLink(a.mode) ? (a.node_ops = w.ops_table.link.node, a.stream_ops = w.ops_table.link.stream) : o.isChrdev(a.mode) && (a.node_ops = w.ops_table.chrdev.node, a.stream_ops = w.ops_table.chrdev.stream), a.timestamp = Date.now(), r && (r.contents[e] = a, r.timestamp = a.timestamp), a;
1130
+ }, getFileDataAsTypedArray(r) {
1131
+ return r.contents ? r.contents.subarray ? r.contents.subarray(0, r.usedBytes) : new Uint8Array(r.contents) : new Uint8Array(0);
1132
+ }, expandFileStorage(r, e) {
1133
+ var t = r.contents ? r.contents.length : 0;
1134
+ if (!(t >= e)) {
1135
+ var n = 1024 * 1024;
1136
+ e = Math.max(e, t * (t < n ? 2 : 1.125) >>> 0), t != 0 && (e = Math.max(e, 256));
1137
+ var a = r.contents;
1138
+ r.contents = new Uint8Array(e), r.usedBytes > 0 && r.contents.set(a.subarray(0, r.usedBytes), 0);
1139
+ }
1140
+ }, resizeFileStorage(r, e) {
1141
+ if (r.usedBytes != e)
1142
+ if (e == 0)
1143
+ r.contents = null, r.usedBytes = 0;
1144
+ else {
1145
+ var t = r.contents;
1146
+ r.contents = new Uint8Array(e), t && r.contents.set(t.subarray(0, Math.min(e, r.usedBytes))), r.usedBytes = e;
1147
+ }
1148
+ }, node_ops: { getattr(r) {
1149
+ var e = {};
1150
+ return e.dev = o.isChrdev(r.mode) ? r.id : 1, e.ino = r.id, e.mode = r.mode, e.nlink = 1, e.uid = 0, e.gid = 0, e.rdev = r.rdev, o.isDir(r.mode) ? e.size = 4096 : o.isFile(r.mode) ? e.size = r.usedBytes : o.isLink(r.mode) ? e.size = r.link.length : e.size = 0, e.atime = new Date(r.timestamp), e.mtime = new Date(r.timestamp), e.ctime = new Date(r.timestamp), e.blksize = 4096, e.blocks = Math.ceil(e.size / e.blksize), e;
1151
+ }, setattr(r, e) {
1152
+ e.mode !== void 0 && (r.mode = e.mode), e.timestamp !== void 0 && (r.timestamp = e.timestamp), e.size !== void 0 && w.resizeFileStorage(r, e.size);
1153
+ }, lookup(r, e) {
1154
+ throw o.genericErrors[44];
1155
+ }, mknod(r, e, t, n) {
1156
+ return w.createNode(r, e, t, n);
1157
+ }, rename(r, e, t) {
1158
+ if (o.isDir(r.mode)) {
1159
+ var n;
1160
+ try {
1161
+ n = o.lookupNode(e, t);
1162
+ } catch {
1163
+ }
1164
+ if (n)
1165
+ for (var a in n.contents)
1166
+ throw new o.ErrnoError(55);
1167
+ }
1168
+ delete r.parent.contents[r.name], r.parent.timestamp = Date.now(), r.name = t, e.contents[t] = r, e.timestamp = r.parent.timestamp, r.parent = e;
1169
+ }, unlink(r, e) {
1170
+ delete r.contents[e], r.timestamp = Date.now();
1171
+ }, rmdir(r, e) {
1172
+ var t = o.lookupNode(r, e);
1173
+ for (var n in t.contents)
1174
+ throw new o.ErrnoError(55);
1175
+ delete r.contents[e], r.timestamp = Date.now();
1176
+ }, readdir(r) {
1177
+ var e = [".", ".."];
1178
+ for (var t in r.contents)
1179
+ r.contents.hasOwnProperty(t) && e.push(t);
1180
+ return e;
1181
+ }, symlink(r, e, t) {
1182
+ var n = w.createNode(r, e, 41471, 0);
1183
+ return n.link = t, n;
1184
+ }, readlink(r) {
1185
+ if (!o.isLink(r.mode))
1186
+ throw new o.ErrnoError(28);
1187
+ return r.link;
1188
+ } }, stream_ops: { read(r, e, t, n, a) {
1189
+ var i = r.node.contents;
1190
+ if (a >= r.node.usedBytes) return 0;
1191
+ var s = Math.min(r.node.usedBytes - a, n);
1192
+ if (s > 8 && i.subarray)
1193
+ e.set(i.subarray(a, a + s), t);
1194
+ else
1195
+ for (var u = 0; u < s; u++) e[t + u] = i[a + u];
1196
+ return s;
1197
+ }, write(r, e, t, n, a, i) {
1198
+ if (e.buffer === O.buffer && (i = !1), !n) return 0;
1199
+ var s = r.node;
1200
+ if (s.timestamp = Date.now(), e.subarray && (!s.contents || s.contents.subarray)) {
1201
+ if (i)
1202
+ return s.contents = e.subarray(t, t + n), s.usedBytes = n, n;
1203
+ if (s.usedBytes === 0 && a === 0)
1204
+ return s.contents = e.slice(t, t + n), s.usedBytes = n, n;
1205
+ if (a + n <= s.usedBytes)
1206
+ return s.contents.set(e.subarray(t, t + n), a), n;
1207
+ }
1208
+ if (w.expandFileStorage(s, a + n), s.contents.subarray && e.subarray)
1209
+ s.contents.set(e.subarray(t, t + n), a);
1210
+ else
1211
+ for (var u = 0; u < n; u++)
1212
+ s.contents[a + u] = e[t + u];
1213
+ return s.usedBytes = Math.max(s.usedBytes, a + n), n;
1214
+ }, llseek(r, e, t) {
1215
+ var n = e;
1216
+ if (t === 1 ? n += r.position : t === 2 && o.isFile(r.node.mode) && (n += r.node.usedBytes), n < 0)
1217
+ throw new o.ErrnoError(28);
1218
+ return n;
1219
+ }, allocate(r, e, t) {
1220
+ w.expandFileStorage(r.node, e + t), r.node.usedBytes = Math.max(r.node.usedBytes, e + t);
1221
+ }, mmap(r, e, t, n, a) {
1222
+ if (!o.isFile(r.node.mode))
1223
+ throw new o.ErrnoError(43);
1224
+ var i, s, u = r.node.contents;
1225
+ if (!(a & 2) && u.buffer === O.buffer)
1226
+ s = !1, i = u.byteOffset;
1227
+ else {
1228
+ if ((t > 0 || t + e < u.length) && (u.subarray ? u = u.subarray(t, t + e) : u = Array.prototype.slice.call(u, t, t + e)), s = !0, i = We(), !i)
1229
+ throw new o.ErrnoError(48);
1230
+ O.set(u, i);
1231
+ }
1232
+ return { ptr: i, allocated: s };
1233
+ }, msync(r, e, t, n, a) {
1234
+ return w.stream_ops.write(r, e, 0, n, t, !1), 0;
1235
+ } } }, kn = (r, e, t, n) => {
1236
+ var a = `al ${r}`;
1237
+ ne(r, (i) => {
1238
+ Xe(i, `Loading data file "${r}" failed (no arrayBuffer).`), e(new Uint8Array(i)), a && hr();
1239
+ }, (i) => {
1240
+ if (t)
1241
+ t();
1242
+ else
1243
+ throw `Loading data file "${r}" failed.`;
1244
+ }), a && Wr();
1245
+ }, Pn = (r, e, t, n, a, i) => o.createDataFile(r, e, t, n, a, i), $n = d.preloadPlugins || [], Cn = (r, e, t, n) => {
1246
+ typeof Browser < "u" && Browser.init();
1247
+ var a = !1;
1248
+ return $n.forEach((i) => {
1249
+ a || i.canHandle(e) && (i.handle(r, e, t, n), a = !0);
1250
+ }), a;
1251
+ }, Tn = (r, e, t, n, a, i, s, u, l, f) => {
1252
+ var c = e ? B.resolve(T.join2(r, e)) : r;
1253
+ function m(p) {
1254
+ function h(y) {
1255
+ f && f(), u || Pn(r, e, y, n, a, l), i && i(), hr();
1256
+ }
1257
+ Cn(p, c, h, () => {
1258
+ s && s(), hr();
1259
+ }) || h(p);
1260
+ }
1261
+ Wr(), typeof t == "string" ? kn(t, (p) => m(p), s) : m(t);
1262
+ }, Fn = (r) => {
1263
+ var e = { r: 0, "r+": 2, w: 577, "w+": 578, a: 1089, "a+": 1090 }, t = e[r];
1264
+ if (typeof t > "u")
1265
+ throw new Error(`Unknown file open mode: ${r}`);
1266
+ return t;
1267
+ }, Gr = (r, e) => {
1268
+ var t = 0;
1269
+ return r && (t |= 365), e && (t |= 146), t;
1270
+ }, o = { root: null, mounts: [], devices: {}, streams: [], nextInode: 1, nameTable: null, currentPath: "/", initialized: !1, ignorePermissions: !0, ErrnoError: null, genericErrors: {}, filesystems: null, syncFSRequests: 0, lookupPath(r, e = {}) {
1271
+ if (r = B.resolve(r), !r) return { path: "", node: null };
1272
+ var t = { follow_mount: !0, recurse_count: 0 };
1273
+ if (e = Object.assign(t, e), e.recurse_count > 8)
1274
+ throw new o.ErrnoError(32);
1275
+ for (var n = r.split("/").filter((m) => !!m), a = o.root, i = "/", s = 0; s < n.length; s++) {
1276
+ var u = s === n.length - 1;
1277
+ if (u && e.parent)
1278
+ break;
1279
+ if (a = o.lookupNode(a, n[s]), i = T.join2(i, n[s]), o.isMountpoint(a) && (!u || u && e.follow_mount) && (a = a.mounted.root), !u || e.follow)
1280
+ for (var l = 0; o.isLink(a.mode); ) {
1281
+ var f = o.readlink(i);
1282
+ i = B.resolve(T.dirname(i), f);
1283
+ var c = o.lookupPath(i, { recurse_count: e.recurse_count + 1 });
1284
+ if (a = c.node, l++ > 40)
1285
+ throw new o.ErrnoError(32);
1286
+ }
1287
+ }
1288
+ return { path: i, node: a };
1289
+ }, getPath(r) {
1290
+ for (var e; ; ) {
1291
+ if (o.isRoot(r)) {
1292
+ var t = r.mount.mountpoint;
1293
+ return e ? t[t.length - 1] !== "/" ? `${t}/${e}` : t + e : t;
1294
+ }
1295
+ e = e ? `${r.name}/${e}` : r.name, r = r.parent;
1296
+ }
1297
+ }, hashName(r, e) {
1298
+ for (var t = 0, n = 0; n < e.length; n++)
1299
+ t = (t << 5) - t + e.charCodeAt(n) | 0;
1300
+ return (r + t >>> 0) % o.nameTable.length;
1301
+ }, hashAddNode(r) {
1302
+ var e = o.hashName(r.parent.id, r.name);
1303
+ r.name_next = o.nameTable[e], o.nameTable[e] = r;
1304
+ }, hashRemoveNode(r) {
1305
+ var e = o.hashName(r.parent.id, r.name);
1306
+ if (o.nameTable[e] === r)
1307
+ o.nameTable[e] = r.name_next;
1308
+ else
1309
+ for (var t = o.nameTable[e]; t; ) {
1310
+ if (t.name_next === r) {
1311
+ t.name_next = r.name_next;
1312
+ break;
1313
+ }
1314
+ t = t.name_next;
1315
+ }
1316
+ }, lookupNode(r, e) {
1317
+ var t = o.mayLookup(r);
1318
+ if (t)
1319
+ throw new o.ErrnoError(t, r);
1320
+ for (var n = o.hashName(r.id, e), a = o.nameTable[n]; a; a = a.name_next) {
1321
+ var i = a.name;
1322
+ if (a.parent.id === r.id && i === e)
1323
+ return a;
1324
+ }
1325
+ return o.lookup(r, e);
1326
+ }, createNode(r, e, t, n) {
1327
+ var a = new o.FSNode(r, e, t, n);
1328
+ return o.hashAddNode(a), a;
1329
+ }, destroyNode(r) {
1330
+ o.hashRemoveNode(r);
1331
+ }, isRoot(r) {
1332
+ return r === r.parent;
1333
+ }, isMountpoint(r) {
1334
+ return !!r.mounted;
1335
+ }, isFile(r) {
1336
+ return (r & 61440) === 32768;
1337
+ }, isDir(r) {
1338
+ return (r & 61440) === 16384;
1339
+ }, isLink(r) {
1340
+ return (r & 61440) === 40960;
1341
+ }, isChrdev(r) {
1342
+ return (r & 61440) === 8192;
1343
+ }, isBlkdev(r) {
1344
+ return (r & 61440) === 24576;
1345
+ }, isFIFO(r) {
1346
+ return (r & 61440) === 4096;
1347
+ }, isSocket(r) {
1348
+ return (r & 49152) === 49152;
1349
+ }, flagsToPermissionString(r) {
1350
+ var e = ["r", "w", "rw"][r & 3];
1351
+ return r & 512 && (e += "w"), e;
1352
+ }, nodePermissions(r, e) {
1353
+ return o.ignorePermissions ? 0 : e.includes("r") && !(r.mode & 292) || e.includes("w") && !(r.mode & 146) || e.includes("x") && !(r.mode & 73) ? 2 : 0;
1354
+ }, mayLookup(r) {
1355
+ var e = o.nodePermissions(r, "x");
1356
+ return e || (r.node_ops.lookup ? 0 : 2);
1357
+ }, mayCreate(r, e) {
1358
+ try {
1359
+ var t = o.lookupNode(r, e);
1360
+ return 20;
1361
+ } catch {
1362
+ }
1363
+ return o.nodePermissions(r, "wx");
1364
+ }, mayDelete(r, e, t) {
1365
+ var n;
1366
+ try {
1367
+ n = o.lookupNode(r, e);
1368
+ } catch (i) {
1369
+ return i.errno;
1370
+ }
1371
+ var a = o.nodePermissions(r, "wx");
1372
+ if (a)
1373
+ return a;
1374
+ if (t) {
1375
+ if (!o.isDir(n.mode))
1376
+ return 54;
1377
+ if (o.isRoot(n) || o.getPath(n) === o.cwd())
1378
+ return 10;
1379
+ } else if (o.isDir(n.mode))
1380
+ return 31;
1381
+ return 0;
1382
+ }, mayOpen(r, e) {
1383
+ return r ? o.isLink(r.mode) ? 32 : o.isDir(r.mode) && (o.flagsToPermissionString(e) !== "r" || e & 512) ? 31 : o.nodePermissions(r, o.flagsToPermissionString(e)) : 44;
1384
+ }, MAX_OPEN_FDS: 4096, nextfd() {
1385
+ for (var r = 0; r <= o.MAX_OPEN_FDS; r++)
1386
+ if (!o.streams[r])
1387
+ return r;
1388
+ throw new o.ErrnoError(33);
1389
+ }, getStreamChecked(r) {
1390
+ var e = o.getStream(r);
1391
+ if (!e)
1392
+ throw new o.ErrnoError(8);
1393
+ return e;
1394
+ }, getStream: (r) => o.streams[r], createStream(r, e = -1) {
1395
+ return o.FSStream || (o.FSStream = function() {
1396
+ this.shared = {};
1397
+ }, o.FSStream.prototype = {}, Object.defineProperties(o.FSStream.prototype, { object: { get() {
1398
+ return this.node;
1399
+ }, set(t) {
1400
+ this.node = t;
1401
+ } }, isRead: { get() {
1402
+ return (this.flags & 2097155) !== 1;
1403
+ } }, isWrite: { get() {
1404
+ return (this.flags & 2097155) !== 0;
1405
+ } }, isAppend: { get() {
1406
+ return this.flags & 1024;
1407
+ } }, flags: { get() {
1408
+ return this.shared.flags;
1409
+ }, set(t) {
1410
+ this.shared.flags = t;
1411
+ } }, position: { get() {
1412
+ return this.shared.position;
1413
+ }, set(t) {
1414
+ this.shared.position = t;
1415
+ } } })), r = Object.assign(new o.FSStream(), r), e == -1 && (e = o.nextfd()), r.fd = e, o.streams[e] = r, r;
1416
+ }, closeStream(r) {
1417
+ o.streams[r] = null;
1418
+ }, chrdev_stream_ops: { open(r) {
1419
+ var e = o.getDevice(r.node.rdev);
1420
+ r.stream_ops = e.stream_ops, r.stream_ops.open && r.stream_ops.open(r);
1421
+ }, llseek() {
1422
+ throw new o.ErrnoError(70);
1423
+ } }, major: (r) => r >> 8, minor: (r) => r & 255, makedev: (r, e) => r << 8 | e, registerDevice(r, e) {
1424
+ o.devices[r] = { stream_ops: e };
1425
+ }, getDevice: (r) => o.devices[r], getMounts(r) {
1426
+ for (var e = [], t = [r]; t.length; ) {
1427
+ var n = t.pop();
1428
+ e.push(n), t.push.apply(t, n.mounts);
1429
+ }
1430
+ return e;
1431
+ }, syncfs(r, e) {
1432
+ typeof r == "function" && (e = r, r = !1), o.syncFSRequests++, o.syncFSRequests > 1 && V(`warning: ${o.syncFSRequests} FS.syncfs operations in flight at once, probably just doing extra work`);
1433
+ var t = o.getMounts(o.root.mount), n = 0;
1434
+ function a(s) {
1435
+ return o.syncFSRequests--, e(s);
1436
+ }
1437
+ function i(s) {
1438
+ if (s)
1439
+ return i.errored ? void 0 : (i.errored = !0, a(s));
1440
+ ++n >= t.length && a(null);
1441
+ }
1442
+ t.forEach((s) => {
1443
+ if (!s.type.syncfs)
1444
+ return i(null);
1445
+ s.type.syncfs(s, r, i);
1446
+ });
1447
+ }, mount(r, e, t) {
1448
+ var n = t === "/", a = !t, i;
1449
+ if (n && o.root)
1450
+ throw new o.ErrnoError(10);
1451
+ if (!n && !a) {
1452
+ var s = o.lookupPath(t, { follow_mount: !1 });
1453
+ if (t = s.path, i = s.node, o.isMountpoint(i))
1454
+ throw new o.ErrnoError(10);
1455
+ if (!o.isDir(i.mode))
1456
+ throw new o.ErrnoError(54);
1457
+ }
1458
+ var u = { type: r, opts: e, mountpoint: t, mounts: [] }, l = r.mount(u);
1459
+ return l.mount = u, u.root = l, n ? o.root = l : i && (i.mounted = u, i.mount && i.mount.mounts.push(u)), l;
1460
+ }, unmount(r) {
1461
+ var e = o.lookupPath(r, { follow_mount: !1 });
1462
+ if (!o.isMountpoint(e.node))
1463
+ throw new o.ErrnoError(28);
1464
+ var t = e.node, n = t.mounted, a = o.getMounts(n);
1465
+ Object.keys(o.nameTable).forEach((s) => {
1466
+ for (var u = o.nameTable[s]; u; ) {
1467
+ var l = u.name_next;
1468
+ a.includes(u.mount) && o.destroyNode(u), u = l;
1469
+ }
1470
+ }), t.mounted = null;
1471
+ var i = t.mount.mounts.indexOf(n);
1472
+ t.mount.mounts.splice(i, 1);
1473
+ }, lookup(r, e) {
1474
+ return r.node_ops.lookup(r, e);
1475
+ }, mknod(r, e, t) {
1476
+ var n = o.lookupPath(r, { parent: !0 }), a = n.node, i = T.basename(r);
1477
+ if (!i || i === "." || i === "..")
1478
+ throw new o.ErrnoError(28);
1479
+ var s = o.mayCreate(a, i);
1480
+ if (s)
1481
+ throw new o.ErrnoError(s);
1482
+ if (!a.node_ops.mknod)
1483
+ throw new o.ErrnoError(63);
1484
+ return a.node_ops.mknod(a, i, e, t);
1485
+ }, create(r, e) {
1486
+ return e = e !== void 0 ? e : 438, e &= 4095, e |= 32768, o.mknod(r, e, 0);
1487
+ }, mkdir(r, e) {
1488
+ return e = e !== void 0 ? e : 511, e &= 1023, e |= 16384, o.mknod(r, e, 0);
1489
+ }, mkdirTree(r, e) {
1490
+ for (var t = r.split("/"), n = "", a = 0; a < t.length; ++a)
1491
+ if (t[a]) {
1492
+ n += "/" + t[a];
1493
+ try {
1494
+ o.mkdir(n, e);
1495
+ } catch (i) {
1496
+ if (i.errno != 20) throw i;
1497
+ }
1498
+ }
1499
+ }, mkdev(r, e, t) {
1500
+ return typeof t > "u" && (t = e, e = 438), e |= 8192, o.mknod(r, e, t);
1501
+ }, symlink(r, e) {
1502
+ if (!B.resolve(r))
1503
+ throw new o.ErrnoError(44);
1504
+ var t = o.lookupPath(e, { parent: !0 }), n = t.node;
1505
+ if (!n)
1506
+ throw new o.ErrnoError(44);
1507
+ var a = T.basename(e), i = o.mayCreate(n, a);
1508
+ if (i)
1509
+ throw new o.ErrnoError(i);
1510
+ if (!n.node_ops.symlink)
1511
+ throw new o.ErrnoError(63);
1512
+ return n.node_ops.symlink(n, a, r);
1513
+ }, rename(r, e) {
1514
+ var t = T.dirname(r), n = T.dirname(e), a = T.basename(r), i = T.basename(e), s, u, l;
1515
+ if (s = o.lookupPath(r, { parent: !0 }), u = s.node, s = o.lookupPath(e, { parent: !0 }), l = s.node, !u || !l) throw new o.ErrnoError(44);
1516
+ if (u.mount !== l.mount)
1517
+ throw new o.ErrnoError(75);
1518
+ var f = o.lookupNode(u, a), c = B.relative(r, n);
1519
+ if (c.charAt(0) !== ".")
1520
+ throw new o.ErrnoError(28);
1521
+ if (c = B.relative(e, t), c.charAt(0) !== ".")
1522
+ throw new o.ErrnoError(55);
1523
+ var m;
1524
+ try {
1525
+ m = o.lookupNode(l, i);
1526
+ } catch {
1527
+ }
1528
+ if (f !== m) {
1529
+ var p = o.isDir(f.mode), h = o.mayDelete(u, a, p);
1530
+ if (h)
1531
+ throw new o.ErrnoError(h);
1532
+ if (h = m ? o.mayDelete(l, i, p) : o.mayCreate(l, i), h)
1533
+ throw new o.ErrnoError(h);
1534
+ if (!u.node_ops.rename)
1535
+ throw new o.ErrnoError(63);
1536
+ if (o.isMountpoint(f) || m && o.isMountpoint(m))
1537
+ throw new o.ErrnoError(10);
1538
+ if (l !== u && (h = o.nodePermissions(u, "w"), h))
1539
+ throw new o.ErrnoError(h);
1540
+ o.hashRemoveNode(f);
1541
+ try {
1542
+ u.node_ops.rename(f, l, i);
1543
+ } catch (y) {
1544
+ throw y;
1545
+ } finally {
1546
+ o.hashAddNode(f);
1547
+ }
1548
+ }
1549
+ }, rmdir(r) {
1550
+ var e = o.lookupPath(r, { parent: !0 }), t = e.node, n = T.basename(r), a = o.lookupNode(t, n), i = o.mayDelete(t, n, !0);
1551
+ if (i)
1552
+ throw new o.ErrnoError(i);
1553
+ if (!t.node_ops.rmdir)
1554
+ throw new o.ErrnoError(63);
1555
+ if (o.isMountpoint(a))
1556
+ throw new o.ErrnoError(10);
1557
+ t.node_ops.rmdir(t, n), o.destroyNode(a);
1558
+ }, readdir(r) {
1559
+ var e = o.lookupPath(r, { follow: !0 }), t = e.node;
1560
+ if (!t.node_ops.readdir)
1561
+ throw new o.ErrnoError(54);
1562
+ return t.node_ops.readdir(t);
1563
+ }, unlink(r) {
1564
+ var e = o.lookupPath(r, { parent: !0 }), t = e.node;
1565
+ if (!t)
1566
+ throw new o.ErrnoError(44);
1567
+ var n = T.basename(r), a = o.lookupNode(t, n), i = o.mayDelete(t, n, !1);
1568
+ if (i)
1569
+ throw new o.ErrnoError(i);
1570
+ if (!t.node_ops.unlink)
1571
+ throw new o.ErrnoError(63);
1572
+ if (o.isMountpoint(a))
1573
+ throw new o.ErrnoError(10);
1574
+ t.node_ops.unlink(t, n), o.destroyNode(a);
1575
+ }, readlink(r) {
1576
+ var e = o.lookupPath(r), t = e.node;
1577
+ if (!t)
1578
+ throw new o.ErrnoError(44);
1579
+ if (!t.node_ops.readlink)
1580
+ throw new o.ErrnoError(28);
1581
+ return B.resolve(o.getPath(t.parent), t.node_ops.readlink(t));
1582
+ }, stat(r, e) {
1583
+ var t = o.lookupPath(r, { follow: !e }), n = t.node;
1584
+ if (!n)
1585
+ throw new o.ErrnoError(44);
1586
+ if (!n.node_ops.getattr)
1587
+ throw new o.ErrnoError(63);
1588
+ return n.node_ops.getattr(n);
1589
+ }, lstat(r) {
1590
+ return o.stat(r, !0);
1591
+ }, chmod(r, e, t) {
1592
+ var n;
1593
+ if (typeof r == "string") {
1594
+ var a = o.lookupPath(r, { follow: !t });
1595
+ n = a.node;
1596
+ } else
1597
+ n = r;
1598
+ if (!n.node_ops.setattr)
1599
+ throw new o.ErrnoError(63);
1600
+ n.node_ops.setattr(n, { mode: e & 4095 | n.mode & -4096, timestamp: Date.now() });
1601
+ }, lchmod(r, e) {
1602
+ o.chmod(r, e, !0);
1603
+ }, fchmod(r, e) {
1604
+ var t = o.getStreamChecked(r);
1605
+ o.chmod(t.node, e);
1606
+ }, chown(r, e, t, n) {
1607
+ var a;
1608
+ if (typeof r == "string") {
1609
+ var i = o.lookupPath(r, { follow: !n });
1610
+ a = i.node;
1611
+ } else
1612
+ a = r;
1613
+ if (!a.node_ops.setattr)
1614
+ throw new o.ErrnoError(63);
1615
+ a.node_ops.setattr(a, { timestamp: Date.now() });
1616
+ }, lchown(r, e, t) {
1617
+ o.chown(r, e, t, !0);
1618
+ }, fchown(r, e, t) {
1619
+ var n = o.getStreamChecked(r);
1620
+ o.chown(n.node, e, t);
1621
+ }, truncate(r, e) {
1622
+ if (e < 0)
1623
+ throw new o.ErrnoError(28);
1624
+ var t;
1625
+ if (typeof r == "string") {
1626
+ var n = o.lookupPath(r, { follow: !0 });
1627
+ t = n.node;
1628
+ } else
1629
+ t = r;
1630
+ if (!t.node_ops.setattr)
1631
+ throw new o.ErrnoError(63);
1632
+ if (o.isDir(t.mode))
1633
+ throw new o.ErrnoError(31);
1634
+ if (!o.isFile(t.mode))
1635
+ throw new o.ErrnoError(28);
1636
+ var a = o.nodePermissions(t, "w");
1637
+ if (a)
1638
+ throw new o.ErrnoError(a);
1639
+ t.node_ops.setattr(t, { size: e, timestamp: Date.now() });
1640
+ }, ftruncate(r, e) {
1641
+ var t = o.getStreamChecked(r);
1642
+ if (!(t.flags & 2097155))
1643
+ throw new o.ErrnoError(28);
1644
+ o.truncate(t.node, e);
1645
+ }, utime(r, e, t) {
1646
+ var n = o.lookupPath(r, { follow: !0 }), a = n.node;
1647
+ a.node_ops.setattr(a, { timestamp: Math.max(e, t) });
1648
+ }, open(r, e, t) {
1649
+ if (r === "")
1650
+ throw new o.ErrnoError(44);
1651
+ e = typeof e == "string" ? Fn(e) : e, t = typeof t > "u" ? 438 : t, e & 64 ? t = t & 4095 | 32768 : t = 0;
1652
+ var n;
1653
+ if (typeof r == "object")
1654
+ n = r;
1655
+ else {
1656
+ r = T.normalize(r);
1657
+ try {
1658
+ var a = o.lookupPath(r, { follow: !(e & 131072) });
1659
+ n = a.node;
1660
+ } catch {
1661
+ }
1662
+ }
1663
+ var i = !1;
1664
+ if (e & 64)
1665
+ if (n) {
1666
+ if (e & 128)
1667
+ throw new o.ErrnoError(20);
1668
+ } else
1669
+ n = o.mknod(r, t, 0), i = !0;
1670
+ if (!n)
1671
+ throw new o.ErrnoError(44);
1672
+ if (o.isChrdev(n.mode) && (e &= -513), e & 65536 && !o.isDir(n.mode))
1673
+ throw new o.ErrnoError(54);
1674
+ if (!i) {
1675
+ var s = o.mayOpen(n, e);
1676
+ if (s)
1677
+ throw new o.ErrnoError(s);
1678
+ }
1679
+ e & 512 && !i && o.truncate(n, 0), e &= -131713;
1680
+ var u = o.createStream({ node: n, path: o.getPath(n), flags: e, seekable: !0, position: 0, stream_ops: n.stream_ops, ungotten: [], error: !1 });
1681
+ return u.stream_ops.open && u.stream_ops.open(u), d.logReadFiles && !(e & 1) && (o.readFiles || (o.readFiles = {}), r in o.readFiles || (o.readFiles[r] = 1)), u;
1682
+ }, close(r) {
1683
+ if (o.isClosed(r))
1684
+ throw new o.ErrnoError(8);
1685
+ r.getdents && (r.getdents = null);
1686
+ try {
1687
+ r.stream_ops.close && r.stream_ops.close(r);
1688
+ } catch (e) {
1689
+ throw e;
1690
+ } finally {
1691
+ o.closeStream(r.fd);
1692
+ }
1693
+ r.fd = null;
1694
+ }, isClosed(r) {
1695
+ return r.fd === null;
1696
+ }, llseek(r, e, t) {
1697
+ if (o.isClosed(r))
1698
+ throw new o.ErrnoError(8);
1699
+ if (!r.seekable || !r.stream_ops.llseek)
1700
+ throw new o.ErrnoError(70);
1701
+ if (t != 0 && t != 1 && t != 2)
1702
+ throw new o.ErrnoError(28);
1703
+ return r.position = r.stream_ops.llseek(r, e, t), r.ungotten = [], r.position;
1704
+ }, read(r, e, t, n, a) {
1705
+ if (n < 0 || a < 0)
1706
+ throw new o.ErrnoError(28);
1707
+ if (o.isClosed(r))
1708
+ throw new o.ErrnoError(8);
1709
+ if ((r.flags & 2097155) === 1)
1710
+ throw new o.ErrnoError(8);
1711
+ if (o.isDir(r.node.mode))
1712
+ throw new o.ErrnoError(31);
1713
+ if (!r.stream_ops.read)
1714
+ throw new o.ErrnoError(28);
1715
+ var i = typeof a < "u";
1716
+ if (!i)
1717
+ a = r.position;
1718
+ else if (!r.seekable)
1719
+ throw new o.ErrnoError(70);
1720
+ var s = r.stream_ops.read(r, e, t, n, a);
1721
+ return i || (r.position += s), s;
1722
+ }, write(r, e, t, n, a, i) {
1723
+ if (n < 0 || a < 0)
1724
+ throw new o.ErrnoError(28);
1725
+ if (o.isClosed(r))
1726
+ throw new o.ErrnoError(8);
1727
+ if (!(r.flags & 2097155))
1728
+ throw new o.ErrnoError(8);
1729
+ if (o.isDir(r.node.mode))
1730
+ throw new o.ErrnoError(31);
1731
+ if (!r.stream_ops.write)
1732
+ throw new o.ErrnoError(28);
1733
+ r.seekable && r.flags & 1024 && o.llseek(r, 0, 2);
1734
+ var s = typeof a < "u";
1735
+ if (!s)
1736
+ a = r.position;
1737
+ else if (!r.seekable)
1738
+ throw new o.ErrnoError(70);
1739
+ var u = r.stream_ops.write(r, e, t, n, a, i);
1740
+ return s || (r.position += u), u;
1741
+ }, allocate(r, e, t) {
1742
+ if (o.isClosed(r))
1743
+ throw new o.ErrnoError(8);
1744
+ if (e < 0 || t <= 0)
1745
+ throw new o.ErrnoError(28);
1746
+ if (!(r.flags & 2097155))
1747
+ throw new o.ErrnoError(8);
1748
+ if (!o.isFile(r.node.mode) && !o.isDir(r.node.mode))
1749
+ throw new o.ErrnoError(43);
1750
+ if (!r.stream_ops.allocate)
1751
+ throw new o.ErrnoError(138);
1752
+ r.stream_ops.allocate(r, e, t);
1753
+ }, mmap(r, e, t, n, a) {
1754
+ if (n & 2 && !(a & 2) && (r.flags & 2097155) !== 2)
1755
+ throw new o.ErrnoError(2);
1756
+ if ((r.flags & 2097155) === 1)
1757
+ throw new o.ErrnoError(2);
1758
+ if (!r.stream_ops.mmap)
1759
+ throw new o.ErrnoError(43);
1760
+ return r.stream_ops.mmap(r, e, t, n, a);
1761
+ }, msync(r, e, t, n, a) {
1762
+ return r.stream_ops.msync ? r.stream_ops.msync(r, e, t, n, a) : 0;
1763
+ }, munmap: (r) => 0, ioctl(r, e, t) {
1764
+ if (!r.stream_ops.ioctl)
1765
+ throw new o.ErrnoError(59);
1766
+ return r.stream_ops.ioctl(r, e, t);
1767
+ }, readFile(r, e = {}) {
1768
+ if (e.flags = e.flags || 0, e.encoding = e.encoding || "binary", e.encoding !== "utf8" && e.encoding !== "binary")
1769
+ throw new Error(`Invalid encoding type "${e.encoding}"`);
1770
+ var t, n = o.open(r, e.flags), a = o.stat(r), i = a.size, s = new Uint8Array(i);
1771
+ return o.read(n, s, 0, i, 0), e.encoding === "utf8" ? t = tr(s, 0) : e.encoding === "binary" && (t = s), o.close(n), t;
1772
+ }, writeFile(r, e, t = {}) {
1773
+ t.flags = t.flags || 577;
1774
+ var n = o.open(r, t.flags, t.mode);
1775
+ if (typeof e == "string") {
1776
+ var a = new Uint8Array(Fr(e) + 1), i = Yr(e, a, 0, a.length);
1777
+ o.write(n, a, 0, i, void 0, t.canOwn);
1778
+ } else if (ArrayBuffer.isView(e))
1779
+ o.write(n, e, 0, e.byteLength, void 0, t.canOwn);
1780
+ else
1781
+ throw new Error("Unsupported data type");
1782
+ o.close(n);
1783
+ }, cwd: () => o.currentPath, chdir(r) {
1784
+ var e = o.lookupPath(r, { follow: !0 });
1785
+ if (e.node === null)
1786
+ throw new o.ErrnoError(44);
1787
+ if (!o.isDir(e.node.mode))
1788
+ throw new o.ErrnoError(54);
1789
+ var t = o.nodePermissions(e.node, "x");
1790
+ if (t)
1791
+ throw new o.ErrnoError(t);
1792
+ o.currentPath = e.path;
1793
+ }, createDefaultDirectories() {
1794
+ o.mkdir("/tmp"), o.mkdir("/home"), o.mkdir("/home/web_user");
1795
+ }, createDefaultDevices() {
1796
+ o.mkdir("/dev"), o.registerDevice(o.makedev(1, 3), { read: () => 0, write: (n, a, i, s, u) => s }), o.mkdev("/dev/null", o.makedev(1, 3)), G.register(o.makedev(5, 0), G.default_tty_ops), G.register(o.makedev(6, 0), G.default_tty1_ops), o.mkdev("/dev/tty", o.makedev(5, 0)), o.mkdev("/dev/tty1", o.makedev(6, 0));
1797
+ var r = new Uint8Array(1024), e = 0, t = () => (e === 0 && (e = je(r).byteLength), r[--e]);
1798
+ o.createDevice("/dev", "random", t), o.createDevice("/dev", "urandom", t), o.mkdir("/dev/shm"), o.mkdir("/dev/shm/tmp");
1799
+ }, createSpecialDirectories() {
1800
+ o.mkdir("/proc");
1801
+ var r = o.mkdir("/proc/self");
1802
+ o.mkdir("/proc/self/fd"), o.mount({ mount() {
1803
+ var e = o.createNode(r, "fd", 16895, 73);
1804
+ return e.node_ops = { lookup(t, n) {
1805
+ var a = +n, i = o.getStreamChecked(a), s = { parent: null, mount: { mountpoint: "fake" }, node_ops: { readlink: () => i.path } };
1806
+ return s.parent = s, s;
1807
+ } }, e;
1808
+ } }, {}, "/proc/self/fd");
1809
+ }, createStandardStreams() {
1810
+ d.stdin ? o.createDevice("/dev", "stdin", d.stdin) : o.symlink("/dev/tty", "/dev/stdin"), d.stdout ? o.createDevice("/dev", "stdout", null, d.stdout) : o.symlink("/dev/tty", "/dev/stdout"), d.stderr ? o.createDevice("/dev", "stderr", null, d.stderr) : o.symlink("/dev/tty1", "/dev/stderr"), o.open("/dev/stdin", 0), o.open("/dev/stdout", 1), o.open("/dev/stderr", 1);
1811
+ }, ensureErrnoError() {
1812
+ o.ErrnoError || (o.ErrnoError = function(e, t) {
1813
+ this.name = "ErrnoError", this.node = t, this.setErrno = function(n) {
1814
+ this.errno = n;
1815
+ }, this.setErrno(e), this.message = "FS error";
1816
+ }, o.ErrnoError.prototype = new Error(), o.ErrnoError.prototype.constructor = o.ErrnoError, [44].forEach((r) => {
1817
+ o.genericErrors[r] = new o.ErrnoError(r), o.genericErrors[r].stack = "<generic error, no stack>";
1818
+ }));
1819
+ }, staticInit() {
1820
+ o.ensureErrnoError(), o.nameTable = new Array(4096), o.mount(w, {}, "/"), o.createDefaultDirectories(), o.createDefaultDevices(), o.createSpecialDirectories(), o.filesystems = { MEMFS: w };
1821
+ }, init(r, e, t) {
1822
+ o.init.initialized = !0, o.ensureErrnoError(), d.stdin = r || d.stdin, d.stdout = e || d.stdout, d.stderr = t || d.stderr, o.createStandardStreams();
1823
+ }, quit() {
1824
+ o.init.initialized = !1;
1825
+ for (var r = 0; r < o.streams.length; r++) {
1826
+ var e = o.streams[r];
1827
+ e && o.close(e);
1828
+ }
1829
+ }, findObject(r, e) {
1830
+ var t = o.analyzePath(r, e);
1831
+ return t.exists ? t.object : null;
1832
+ }, analyzePath(r, e) {
1833
+ try {
1834
+ var t = o.lookupPath(r, { follow: !e });
1835
+ r = t.path;
1836
+ } catch {
1837
+ }
1838
+ var n = { isRoot: !1, exists: !1, error: 0, name: null, path: null, object: null, parentExists: !1, parentPath: null, parentObject: null };
1839
+ try {
1840
+ var t = o.lookupPath(r, { parent: !0 });
1841
+ n.parentExists = !0, n.parentPath = t.path, n.parentObject = t.node, n.name = T.basename(r), t = o.lookupPath(r, { follow: !e }), n.exists = !0, n.path = t.path, n.object = t.node, n.name = t.node.name, n.isRoot = t.path === "/";
1842
+ } catch (a) {
1843
+ n.error = a.errno;
1844
+ }
1845
+ return n;
1846
+ }, createPath(r, e, t, n) {
1847
+ r = typeof r == "string" ? r : o.getPath(r);
1848
+ for (var a = e.split("/").reverse(); a.length; ) {
1849
+ var i = a.pop();
1850
+ if (i) {
1851
+ var s = T.join2(r, i);
1852
+ try {
1853
+ o.mkdir(s);
1854
+ } catch {
1855
+ }
1856
+ r = s;
1857
+ }
1858
+ }
1859
+ return s;
1860
+ }, createFile(r, e, t, n, a) {
1861
+ var i = T.join2(typeof r == "string" ? r : o.getPath(r), e), s = Gr(n, a);
1862
+ return o.create(i, s);
1863
+ }, createDataFile(r, e, t, n, a, i) {
1864
+ var s = e;
1865
+ r && (r = typeof r == "string" ? r : o.getPath(r), s = e ? T.join2(r, e) : r);
1866
+ var u = Gr(n, a), l = o.create(s, u);
1867
+ if (t) {
1868
+ if (typeof t == "string") {
1869
+ for (var f = new Array(t.length), c = 0, m = t.length; c < m; ++c) f[c] = t.charCodeAt(c);
1870
+ t = f;
1871
+ }
1872
+ o.chmod(l, u | 146);
1873
+ var p = o.open(l, 577);
1874
+ o.write(p, t, 0, t.length, 0, i), o.close(p), o.chmod(l, u);
1875
+ }
1876
+ return l;
1877
+ }, createDevice(r, e, t, n) {
1878
+ var a = T.join2(typeof r == "string" ? r : o.getPath(r), e), i = Gr(!!t, !!n);
1879
+ o.createDevice.major || (o.createDevice.major = 64);
1880
+ var s = o.makedev(o.createDevice.major++, 0);
1881
+ return o.registerDevice(s, { open(u) {
1882
+ u.seekable = !1;
1883
+ }, close(u) {
1884
+ n && n.buffer && n.buffer.length && n(10);
1885
+ }, read(u, l, f, c, m) {
1886
+ for (var p = 0, h = 0; h < c; h++) {
1887
+ var y;
1888
+ try {
1889
+ y = t();
1890
+ } catch {
1891
+ throw new o.ErrnoError(29);
1892
+ }
1893
+ if (y === void 0 && p === 0)
1894
+ throw new o.ErrnoError(6);
1895
+ if (y == null) break;
1896
+ p++, l[f + h] = y;
1897
+ }
1898
+ return p && (u.node.timestamp = Date.now()), p;
1899
+ }, write(u, l, f, c, m) {
1900
+ for (var p = 0; p < c; p++)
1901
+ try {
1902
+ n(l[f + p]);
1903
+ } catch {
1904
+ throw new o.ErrnoError(29);
1905
+ }
1906
+ return c && (u.node.timestamp = Date.now()), p;
1907
+ } }), o.mkdev(a, i, s);
1908
+ }, forceLoadFile(r) {
1909
+ if (r.isDevice || r.isFolder || r.link || r.contents) return !0;
1910
+ if (typeof XMLHttpRequest < "u")
1911
+ throw new Error("Lazy loading should have been performed (contents set) in createLazyFile, but it was not. Lazy loading only works in web workers. Use --embed-file or --preload-file in emcc on the main thread.");
1912
+ if (Or)
1913
+ try {
1914
+ r.contents = Dr(Or(r.url), !0), r.usedBytes = r.contents.length;
1915
+ } catch {
1916
+ throw new o.ErrnoError(29);
1917
+ }
1918
+ else
1919
+ throw new Error("Cannot load without read() or XMLHttpRequest.");
1920
+ }, createLazyFile(r, e, t, n, a) {
1921
+ function i() {
1922
+ this.lengthKnown = !1, this.chunks = [];
1923
+ }
1924
+ if (i.prototype.get = function(h) {
1925
+ if (!(h > this.length - 1 || h < 0)) {
1926
+ var y = h % this.chunkSize, _ = h / this.chunkSize | 0;
1927
+ return this.getter(_)[y];
1928
+ }
1929
+ }, i.prototype.setDataGetter = function(h) {
1930
+ this.getter = h;
1931
+ }, i.prototype.cacheLength = function() {
1932
+ var h = new XMLHttpRequest();
1933
+ if (h.open("HEAD", t, !1), h.send(null), !(h.status >= 200 && h.status < 300 || h.status === 304)) throw new Error("Couldn't load " + t + ". Status: " + h.status);
1934
+ var y = Number(h.getResponseHeader("Content-length")), _, P = (_ = h.getResponseHeader("Accept-Ranges")) && _ === "bytes", $ = (_ = h.getResponseHeader("Content-Encoding")) && _ === "gzip", v = 1024 * 1024;
1935
+ P || (v = y);
1936
+ var g = (F, U) => {
1937
+ if (F > U) throw new Error("invalid range (" + F + ", " + U + ") or no bytes requested!");
1938
+ if (U > y - 1) throw new Error("only " + y + " bytes available! programmer error!");
1939
+ var D = new XMLHttpRequest();
1940
+ if (D.open("GET", t, !1), y !== v && D.setRequestHeader("Range", "bytes=" + F + "-" + U), D.responseType = "arraybuffer", D.overrideMimeType && D.overrideMimeType("text/plain; charset=x-user-defined"), D.send(null), !(D.status >= 200 && D.status < 300 || D.status === 304)) throw new Error("Couldn't load " + t + ". Status: " + D.status);
1941
+ return D.response !== void 0 ? new Uint8Array(D.response || []) : Dr(D.responseText || "", !0);
1942
+ }, S = this;
1943
+ S.setDataGetter((F) => {
1944
+ var U = F * v, D = (F + 1) * v - 1;
1945
+ if (D = Math.min(D, y - 1), typeof S.chunks[F] > "u" && (S.chunks[F] = g(U, D)), typeof S.chunks[F] > "u") throw new Error("doXHR failed!");
1946
+ return S.chunks[F];
1947
+ }), ($ || !y) && (v = y = 1, y = this.getter(0).length, v = y, jr("LazyFiles on gzip forces download of the whole file when length is accessed")), this._length = y, this._chunkSize = v, this.lengthKnown = !0;
1948
+ }, typeof XMLHttpRequest < "u") {
1949
+ throw "Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";
1950
+ var s, u;
1951
+ } else
1952
+ var u = { isDevice: !1, url: t };
1953
+ var l = o.createFile(r, e, u, n, a);
1954
+ u.contents ? l.contents = u.contents : u.url && (l.contents = null, l.url = u.url), Object.defineProperties(l, { usedBytes: { get: function() {
1955
+ return this.contents.length;
1956
+ } } });
1957
+ var f = {}, c = Object.keys(l.stream_ops);
1958
+ c.forEach((p) => {
1959
+ var h = l.stream_ops[p];
1960
+ f[p] = function() {
1961
+ return o.forceLoadFile(l), h.apply(null, arguments);
1962
+ };
1963
+ });
1964
+ function m(p, h, y, _, P) {
1965
+ var $ = p.node.contents;
1966
+ if (P >= $.length) return 0;
1967
+ var v = Math.min($.length - P, _);
1968
+ if ($.slice)
1969
+ for (var g = 0; g < v; g++)
1970
+ h[y + g] = $[P + g];
1971
+ else
1972
+ for (var g = 0; g < v; g++)
1973
+ h[y + g] = $.get(P + g);
1974
+ return v;
1975
+ }
1976
+ return f.read = (p, h, y, _, P) => (o.forceLoadFile(l), m(p, h, y, _, P)), f.mmap = (p, h, y, _, P) => {
1977
+ o.forceLoadFile(l);
1978
+ var $ = We();
1979
+ if (!$)
1980
+ throw new o.ErrnoError(48);
1981
+ return m(p, O, $, h, y), { ptr: $, allocated: !0 };
1982
+ }, l.stream_ops = f, l;
1983
+ } }, Y = { DEFAULT_POLLMASK: 5, calculateAt(r, e, t) {
1984
+ if (T.isAbs(e))
1985
+ return e;
1986
+ var n;
1987
+ if (r === -100)
1988
+ n = o.cwd();
1989
+ else {
1990
+ var a = Y.getStreamFromFD(r);
1991
+ n = a.path;
1992
+ }
1993
+ if (e.length == 0) {
1994
+ if (!t)
1995
+ throw new o.ErrnoError(44);
1996
+ return n;
1997
+ }
1998
+ return T.join2(n, e);
1999
+ }, doStat(r, e, t) {
2000
+ try {
2001
+ var n = r(e);
2002
+ } catch (u) {
2003
+ if (u && u.node && T.normalize(e) !== T.normalize(o.getPath(u.node)))
2004
+ return -54;
2005
+ throw u;
2006
+ }
2007
+ E[t >> 2] = n.dev, E[t + 4 >> 2] = n.mode, C[t + 8 >> 2] = n.nlink, E[t + 12 >> 2] = n.uid, E[t + 16 >> 2] = n.gid, E[t + 20 >> 2] = n.rdev, R = [n.size >>> 0, (b = n.size, +Math.abs(b) >= 1 ? b > 0 ? +Math.floor(b / 4294967296) >>> 0 : ~~+Math.ceil((b - +(~~b >>> 0)) / 4294967296) >>> 0 : 0)], E[t + 24 >> 2] = R[0], E[t + 28 >> 2] = R[1], E[t + 32 >> 2] = 4096, E[t + 36 >> 2] = n.blocks;
2008
+ var a = n.atime.getTime(), i = n.mtime.getTime(), s = n.ctime.getTime();
2009
+ return R = [Math.floor(a / 1e3) >>> 0, (b = Math.floor(a / 1e3), +Math.abs(b) >= 1 ? b > 0 ? +Math.floor(b / 4294967296) >>> 0 : ~~+Math.ceil((b - +(~~b >>> 0)) / 4294967296) >>> 0 : 0)], E[t + 40 >> 2] = R[0], E[t + 44 >> 2] = R[1], C[t + 48 >> 2] = a % 1e3 * 1e3, R = [Math.floor(i / 1e3) >>> 0, (b = Math.floor(i / 1e3), +Math.abs(b) >= 1 ? b > 0 ? +Math.floor(b / 4294967296) >>> 0 : ~~+Math.ceil((b - +(~~b >>> 0)) / 4294967296) >>> 0 : 0)], E[t + 56 >> 2] = R[0], E[t + 60 >> 2] = R[1], C[t + 64 >> 2] = i % 1e3 * 1e3, R = [Math.floor(s / 1e3) >>> 0, (b = Math.floor(s / 1e3), +Math.abs(b) >= 1 ? b > 0 ? +Math.floor(b / 4294967296) >>> 0 : ~~+Math.ceil((b - +(~~b >>> 0)) / 4294967296) >>> 0 : 0)], E[t + 72 >> 2] = R[0], E[t + 76 >> 2] = R[1], C[t + 80 >> 2] = s % 1e3 * 1e3, R = [n.ino >>> 0, (b = n.ino, +Math.abs(b) >= 1 ? b > 0 ? +Math.floor(b / 4294967296) >>> 0 : ~~+Math.ceil((b - +(~~b >>> 0)) / 4294967296) >>> 0 : 0)], E[t + 88 >> 2] = R[0], E[t + 92 >> 2] = R[1], 0;
2010
+ }, doMsync(r, e, t, n, a) {
2011
+ if (!o.isFile(e.node.mode))
2012
+ throw new o.ErrnoError(43);
2013
+ if (n & 2)
2014
+ return 0;
2015
+ var i = W.slice(r, r + t);
2016
+ o.msync(e, i, a, t, n);
2017
+ }, varargs: void 0, get() {
2018
+ var r = E[+Y.varargs >> 2];
2019
+ return Y.varargs += 4, r;
2020
+ }, getp() {
2021
+ return Y.get();
2022
+ }, getStr(r) {
2023
+ var e = fr(r);
2024
+ return e;
2025
+ }, getStreamFromFD(r) {
2026
+ var e = o.getStreamChecked(r);
2027
+ return e;
2028
+ } }, Dn = (r, e) => {
2029
+ var t = 0;
2030
+ return dr().forEach((n, a) => {
2031
+ var i = e + t;
2032
+ C[r + a * 4 >> 2] = i, _n(n, i), t += n.length + 1;
2033
+ }), 0;
2034
+ }, Sn = (r, e) => {
2035
+ var t = dr();
2036
+ C[r >> 2] = t.length;
2037
+ var n = 0;
2038
+ return t.forEach((a) => n += a.length + 1), C[e >> 2] = n, 0;
2039
+ };
2040
+ function An(r) {
2041
+ try {
2042
+ var e = Y.getStreamFromFD(r);
2043
+ return o.close(e), 0;
2044
+ } catch (t) {
2045
+ if (typeof o > "u" || t.name !== "ErrnoError") throw t;
2046
+ return t.errno;
2047
+ }
2048
+ }
2049
+ var Rn = (r, e, t, n) => {
2050
+ for (var a = 0, i = 0; i < t; i++) {
2051
+ var s = C[e >> 2], u = C[e + 4 >> 2];
2052
+ e += 8;
2053
+ var l = o.read(r, O, s, u, n);
2054
+ if (l < 0) return -1;
2055
+ if (a += l, l < u) break;
2056
+ }
2057
+ return a;
2058
+ };
2059
+ function Mn(r, e, t, n) {
2060
+ try {
2061
+ var a = Y.getStreamFromFD(r), i = Rn(a, e, t);
2062
+ return C[n >> 2] = i, 0;
2063
+ } catch (s) {
2064
+ if (typeof o > "u" || s.name !== "ErrnoError") throw s;
2065
+ return s.errno;
2066
+ }
2067
+ }
2068
+ var On = (r, e) => e + 2097152 >>> 0 < 4194305 - !!r ? (r >>> 0) + e * 4294967296 : NaN;
2069
+ function jn(r, e, t, n, a) {
2070
+ var i = On(e, t);
2071
+ try {
2072
+ if (isNaN(i)) return 61;
2073
+ var s = Y.getStreamFromFD(r);
2074
+ return o.llseek(s, i, n), R = [s.position >>> 0, (b = s.position, +Math.abs(b) >= 1 ? b > 0 ? +Math.floor(b / 4294967296) >>> 0 : ~~+Math.ceil((b - +(~~b >>> 0)) / 4294967296) >>> 0 : 0)], E[a >> 2] = R[0], E[a + 4 >> 2] = R[1], s.getdents && i === 0 && n === 0 && (s.getdents = null), 0;
2075
+ } catch (u) {
2076
+ if (typeof o > "u" || u.name !== "ErrnoError") throw u;
2077
+ return u.errno;
2078
+ }
2079
+ }
2080
+ var Wn = (r, e, t, n) => {
2081
+ for (var a = 0, i = 0; i < t; i++) {
2082
+ var s = C[e >> 2], u = C[e + 4 >> 2];
2083
+ e += 8;
2084
+ var l = o.write(r, O, s, u, n);
2085
+ if (l < 0) return -1;
2086
+ a += l;
2087
+ }
2088
+ return a;
2089
+ };
2090
+ function Un(r, e, t, n) {
2091
+ try {
2092
+ var a = Y.getStreamFromFD(r), i = Wn(a, e, t);
2093
+ return C[n >> 2] = i, 0;
2094
+ } catch (s) {
2095
+ if (typeof o > "u" || s.name !== "ErrnoError") throw s;
2096
+ return s.errno;
2097
+ }
2098
+ }
2099
+ var Sr = (r) => r % 4 === 0 && (r % 100 !== 0 || r % 400 === 0), zn = (r, e) => {
2100
+ for (var t = 0, n = 0; n <= e; t += r[n++])
2101
+ ;
2102
+ return t;
2103
+ }, Ue = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], ze = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Hn = (r, e) => {
2104
+ for (var t = new Date(r.getTime()); e > 0; ) {
2105
+ var n = Sr(t.getFullYear()), a = t.getMonth(), i = (n ? Ue : ze)[a];
2106
+ if (e > i - t.getDate())
2107
+ e -= i - t.getDate() + 1, t.setDate(1), a < 11 ? t.setMonth(a + 1) : (t.setMonth(0), t.setFullYear(t.getFullYear() + 1));
2108
+ else
2109
+ return t.setDate(t.getDate() + e), t;
2110
+ }
2111
+ return t;
2112
+ }, He = (r, e) => {
2113
+ O.set(r, e);
2114
+ }, Ln = (r, e, t, n) => {
2115
+ var a = C[n + 40 >> 2], i = { tm_sec: E[n >> 2], tm_min: E[n + 4 >> 2], tm_hour: E[n + 8 >> 2], tm_mday: E[n + 12 >> 2], tm_mon: E[n + 16 >> 2], tm_year: E[n + 20 >> 2], tm_wday: E[n + 24 >> 2], tm_yday: E[n + 28 >> 2], tm_isdst: E[n + 32 >> 2], tm_gmtoff: E[n + 36 >> 2], tm_zone: a ? fr(a) : "" }, s = fr(t), u = { "%c": "%a %b %d %H:%M:%S %Y", "%D": "%m/%d/%y", "%F": "%Y-%m-%d", "%h": "%b", "%r": "%I:%M:%S %p", "%R": "%H:%M", "%T": "%H:%M:%S", "%x": "%m/%d/%y", "%X": "%H:%M:%S", "%Ec": "%c", "%EC": "%C", "%Ex": "%m/%d/%y", "%EX": "%H:%M:%S", "%Ey": "%y", "%EY": "%Y", "%Od": "%d", "%Oe": "%e", "%OH": "%H", "%OI": "%I", "%Om": "%m", "%OM": "%M", "%OS": "%S", "%Ou": "%u", "%OU": "%U", "%OV": "%V", "%Ow": "%w", "%OW": "%W", "%Oy": "%y" };
2116
+ for (var l in u)
2117
+ s = s.replace(new RegExp(l, "g"), u[l]);
2118
+ var f = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], c = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
2119
+ function m(v, g, S) {
2120
+ for (var F = typeof v == "number" ? v.toString() : v || ""; F.length < g; )
2121
+ F = S[0] + F;
2122
+ return F;
2123
+ }
2124
+ function p(v, g) {
2125
+ return m(v, g, "0");
2126
+ }
2127
+ function h(v, g) {
2128
+ function S(U) {
2129
+ return U < 0 ? -1 : U > 0 ? 1 : 0;
2130
+ }
2131
+ var F;
2132
+ return (F = S(v.getFullYear() - g.getFullYear())) === 0 && (F = S(v.getMonth() - g.getMonth())) === 0 && (F = S(v.getDate() - g.getDate())), F;
2133
+ }
2134
+ function y(v) {
2135
+ switch (v.getDay()) {
2136
+ case 0:
2137
+ return new Date(v.getFullYear() - 1, 11, 29);
2138
+ case 1:
2139
+ return v;
2140
+ case 2:
2141
+ return new Date(v.getFullYear(), 0, 3);
2142
+ case 3:
2143
+ return new Date(v.getFullYear(), 0, 2);
2144
+ case 4:
2145
+ return new Date(v.getFullYear(), 0, 1);
2146
+ case 5:
2147
+ return new Date(v.getFullYear() - 1, 11, 31);
2148
+ case 6:
2149
+ return new Date(v.getFullYear() - 1, 11, 30);
2150
+ }
2151
+ }
2152
+ function _(v) {
2153
+ var g = Hn(new Date(v.tm_year + 1900, 0, 1), v.tm_yday), S = new Date(g.getFullYear(), 0, 4), F = new Date(g.getFullYear() + 1, 0, 4), U = y(S), D = y(F);
2154
+ return h(U, g) <= 0 ? h(D, g) <= 0 ? g.getFullYear() + 1 : g.getFullYear() : g.getFullYear() - 1;
2155
+ }
2156
+ var P = { "%a": (v) => f[v.tm_wday].substring(0, 3), "%A": (v) => f[v.tm_wday], "%b": (v) => c[v.tm_mon].substring(0, 3), "%B": (v) => c[v.tm_mon], "%C": (v) => {
2157
+ var g = v.tm_year + 1900;
2158
+ return p(g / 100 | 0, 2);
2159
+ }, "%d": (v) => p(v.tm_mday, 2), "%e": (v) => m(v.tm_mday, 2, " "), "%g": (v) => _(v).toString().substring(2), "%G": (v) => _(v), "%H": (v) => p(v.tm_hour, 2), "%I": (v) => {
2160
+ var g = v.tm_hour;
2161
+ return g == 0 ? g = 12 : g > 12 && (g -= 12), p(g, 2);
2162
+ }, "%j": (v) => p(v.tm_mday + zn(Sr(v.tm_year + 1900) ? Ue : ze, v.tm_mon - 1), 3), "%m": (v) => p(v.tm_mon + 1, 2), "%M": (v) => p(v.tm_min, 2), "%n": () => `
2163
+ `, "%p": (v) => v.tm_hour >= 0 && v.tm_hour < 12 ? "AM" : "PM", "%S": (v) => p(v.tm_sec, 2), "%t": () => " ", "%u": (v) => v.tm_wday || 7, "%U": (v) => {
2164
+ var g = v.tm_yday + 7 - v.tm_wday;
2165
+ return p(Math.floor(g / 7), 2);
2166
+ }, "%V": (v) => {
2167
+ var g = Math.floor((v.tm_yday + 7 - (v.tm_wday + 6) % 7) / 7);
2168
+ if ((v.tm_wday + 371 - v.tm_yday - 2) % 7 <= 2 && g++, g) {
2169
+ if (g == 53) {
2170
+ var F = (v.tm_wday + 371 - v.tm_yday) % 7;
2171
+ F != 4 && (F != 3 || !Sr(v.tm_year)) && (g = 1);
2172
+ }
2173
+ } else {
2174
+ g = 52;
2175
+ var S = (v.tm_wday + 7 - v.tm_yday - 1) % 7;
2176
+ (S == 4 || S == 5 && Sr(v.tm_year % 400 - 1)) && g++;
2177
+ }
2178
+ return p(g, 2);
2179
+ }, "%w": (v) => v.tm_wday, "%W": (v) => {
2180
+ var g = v.tm_yday + 7 - (v.tm_wday + 6) % 7;
2181
+ return p(Math.floor(g / 7), 2);
2182
+ }, "%y": (v) => (v.tm_year + 1900).toString().substring(2), "%Y": (v) => v.tm_year + 1900, "%z": (v) => {
2183
+ var g = v.tm_gmtoff, S = g >= 0;
2184
+ return g = Math.abs(g) / 60, g = g / 60 * 100 + g % 60, (S ? "+" : "-") + ("0000" + g).slice(-4);
2185
+ }, "%Z": (v) => v.tm_zone, "%%": () => "%" };
2186
+ s = s.replace(/%%/g, "\0\0");
2187
+ for (var l in P)
2188
+ s.includes(l) && (s = s.replace(new RegExp(l, "g"), P[l](i)));
2189
+ s = s.replace(/\0\0/g, "%");
2190
+ var $ = Dr(s, !1);
2191
+ return $.length > e ? 0 : (He($, r), $.length - 1);
2192
+ }, xn = (r, e, t, n, a) => Ln(r, e, t, n), In = (r) => {
2193
+ var e = d["_" + r];
2194
+ return e;
2195
+ }, Bn = (r) => {
2196
+ var e = Fr(r) + 1, t = Jr(e);
2197
+ return Re(r, t, e), t;
2198
+ }, Nn = (r, e, t, n, a) => {
2199
+ var i = { string: (y) => {
2200
+ var _ = 0;
2201
+ return y != null && y !== 0 && (_ = Bn(y)), _;
2202
+ }, array: (y) => {
2203
+ var _ = Jr(y.length);
2204
+ return He(y, _), _;
2205
+ } };
2206
+ function s(y) {
2207
+ return e === "string" ? fr(y) : e === "boolean" ? !!y : y;
2208
+ }
2209
+ var u = In(r), l = [], f = 0;
2210
+ if (n)
2211
+ for (var c = 0; c < n.length; c++) {
2212
+ var m = i[t[c]];
2213
+ m ? (f === 0 && (f = Ie()), l[c] = m(n[c])) : l[c] = n[c];
2214
+ }
2215
+ var p = u.apply(null, l);
2216
+ function h(y) {
2217
+ return f !== 0 && Be(f), s(y);
2218
+ }
2219
+ return p = h(p), p;
2220
+ };
2221
+ pe = d.InternalError = class extends Error {
2222
+ constructor(e) {
2223
+ super(e), this.name = "InternalError";
2224
+ }
2225
+ }, ft(), rr = d.BindingError = class extends Error {
2226
+ constructor(e) {
2227
+ super(e), this.name = "BindingError";
2228
+ }
2229
+ }, bt(), yt(), Dt(), Ce = d.UnboundTypeError = Mt(Error, "UnboundTypeError"), Ht(), xt();
2230
+ var Le = function(r, e, t, n) {
2231
+ r || (r = this), this.parent = r, this.mount = r.mount, this.mounted = null, this.id = o.nextInode++, this.name = e, this.mode = t, this.node_ops = {}, this.stream_ops = {}, this.rdev = n;
2232
+ }, Ar = 365, Rr = 146;
2233
+ Object.defineProperties(Le.prototype, { read: { get: function() {
2234
+ return (this.mode & Ar) === Ar;
2235
+ }, set: function(r) {
2236
+ r ? this.mode |= Ar : this.mode &= ~Ar;
2237
+ } }, write: { get: function() {
2238
+ return (this.mode & Rr) === Rr;
2239
+ }, set: function(r) {
2240
+ r ? this.mode |= Rr : this.mode &= ~Rr;
2241
+ } }, isFolder: { get: function() {
2242
+ return o.isDir(this.mode);
2243
+ } }, isDevice: { get: function() {
2244
+ return o.isChrdev(this.mode);
2245
+ } } }), o.FSNode = Le, o.createPreloadedFile = Tn, o.staticInit();
2246
+ var Vn = { d: it, n: st, l: ut, w: lt, G: ct, h: Ot, g: Wt, c: Ut, q: zt, F: It, p: Nt, i: Vt, t: qt, a: Xt, j: Kt, e: Jt, u: Zt, r: an, o: sn, b: un, m: ln, f: fn, H: dn, I: Se, J: cn, k: vn, s: hn, E: pn, y: yn, z: Dn, A: Sn, B: An, D: Mn, v: jn, C: Un, x: xn }, M = ot(), Kr = d._malloc = (r) => (Kr = d._malloc = M.M)(r), N = d._free = (r) => (N = d._free = M.N)(r), xe = (r) => (xe = M.P)(r);
2247
+ d.__embind_initialize_bindings = () => (d.__embind_initialize_bindings = M.Q)();
2248
+ var Ie = () => (Ie = M.R)(), Be = (r) => (Be = M.S)(r), Jr = (r) => (Jr = M.T)(r), Ne = (r) => (Ne = M.U)(r);
2249
+ d.dynCall_jiji = (r, e, t, n, a) => (d.dynCall_jiji = M.V)(r, e, t, n, a), d.dynCall_viijii = (r, e, t, n, a, i, s) => (d.dynCall_viijii = M.W)(r, e, t, n, a, i, s), d.dynCall_iiiiij = (r, e, t, n, a, i, s) => (d.dynCall_iiiiij = M.X)(r, e, t, n, a, i, s), d.dynCall_iiiiijj = (r, e, t, n, a, i, s, u, l) => (d.dynCall_iiiiijj = M.Y)(r, e, t, n, a, i, s, u, l), d.dynCall_iiiiiijj = (r, e, t, n, a, i, s, u, l, f) => (d.dynCall_iiiiiijj = M.Z)(r, e, t, n, a, i, s, u, l, f), d.ccall = Nn;
2250
+ var Mr;
2251
+ ar = function r() {
2252
+ Mr || Ve(), Mr || (ar = r);
2253
+ };
2254
+ function Ve() {
2255
+ if (q > 0 || (Ge(), q > 0))
2256
+ return;
2257
+ function r() {
2258
+ Mr || (Mr = !0, d.calledRun = !0, !oe && (Ke(), re(d), d.onRuntimeInitialized && d.onRuntimeInitialized(), Je()));
2259
+ }
2260
+ d.setStatus ? (d.setStatus("Running..."), setTimeout(function() {
2261
+ setTimeout(function() {
2262
+ d.setStatus("");
2263
+ }, 1), r();
2264
+ }, 1)) : r();
2265
+ }
2266
+ if (d.preInit)
2267
+ for (typeof d.preInit == "function" && (d.preInit = [d.preInit]); d.preInit.length > 0; )
2268
+ d.preInit.pop()();
2269
+ return Ve(), Qr.ready;
2270
+ };
2271
+ })();
2272
+ export {
2273
+ qn as default
2274
+ };