@flipova/foundation 1.9.0 → 1.10.1

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 (135) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/README.md +64 -1
  3. package/dist/{chunk-3PYMFFVP.mjs → chunk-32VWREEH.mjs} +2289 -7
  4. package/dist/chunk-32VWREEH.mjs.map +1 -0
  5. package/dist/{chunk-5ZDSYOFL.js → chunk-3RJREGCN.js} +2604 -309
  6. package/dist/chunk-3RJREGCN.js.map +1 -0
  7. package/dist/{chunk-MWRMHYW2.js → chunk-D4QJYQOK.js} +17 -17
  8. package/dist/{chunk-MWRMHYW2.js.map → chunk-D4QJYQOK.js.map} +1 -1
  9. package/dist/{chunk-GZPFYWMA.mjs → chunk-IKVONTJC.mjs} +10 -3
  10. package/dist/chunk-IKVONTJC.mjs.map +1 -0
  11. package/dist/{chunk-RRZSROIT.mjs → chunk-RRV2Q4SS.mjs} +3 -3
  12. package/dist/{chunk-RRZSROIT.mjs.map → chunk-RRV2Q4SS.mjs.map} +1 -1
  13. package/dist/chunk-RUZBEFDO.js +669 -0
  14. package/dist/{chunk-T7V6TILB.js.map → chunk-RUZBEFDO.js.map} +1 -1
  15. package/dist/{chunk-45NSZH5Z.js → chunk-UBZMVSIN.js} +10 -2
  16. package/dist/chunk-UBZMVSIN.js.map +1 -0
  17. package/dist/{chunk-SYHGZT2M.mjs → chunk-YTD4AWV2.mjs} +4 -4
  18. package/dist/{chunk-SYHGZT2M.mjs.map → chunk-YTD4AWV2.mjs.map} +1 -1
  19. package/dist/config/index.js +6 -6
  20. package/dist/config/index.mjs +1 -1
  21. package/dist/index.d.mts +1 -2
  22. package/dist/index.d.ts +1 -2
  23. package/dist/index.js +200 -201
  24. package/dist/index.mjs +4 -5
  25. package/dist/layout/index.d.mts +192 -3
  26. package/dist/layout/index.d.ts +192 -3
  27. package/dist/layout/index.js +159 -160
  28. package/dist/layout/index.mjs +1 -2
  29. package/dist/studio-v2/cli/index.js +96 -0
  30. package/dist/theme/index.js +14 -14
  31. package/dist/theme/index.mjs +1 -1
  32. package/dist/tokens/index.js +14 -14
  33. package/dist/tokens/index.mjs +1 -1
  34. package/dist/web/index.js +3639 -363
  35. package/dist/web/index.js.map +1 -1
  36. package/dist/web/index.mjs +3463 -61
  37. package/dist/web/index.mjs.map +1 -1
  38. package/package.json +15 -8
  39. package/studio-v2/apps/web/CHANGELOG.md +7 -0
  40. package/studio-v2/apps/web/LICENSE +21 -0
  41. package/studio-v2/apps/web/README.md +56 -0
  42. package/studio-v2/apps/web/dist/+not-found.html +793 -0
  43. package/studio-v2/apps/web/dist/_expo/.routes.json +3 -0
  44. package/studio-v2/apps/web/dist/_expo/static/css/global-a4717de456877faacb88ee482aa99653.css +1 -0
  45. package/{studio/app/dist/_expo/static/js/web/entry-77f601f6b9353e7b6e3b18cdbe63ac99.js → studio-v2/apps/web/dist/_expo/static/js/web/entry-5d96588cc8f2ee5c00754cef9ac6481d.js} +3707 -17257
  46. package/studio-v2/apps/web/dist/_expo/static/js/web/index-470f33f64d8c4f7b8d8da2632b2959c2.js +4 -0
  47. package/{studio/app/dist/_expo/static/js/web/index-ac88f7a39991e452f0b4323da9aa4367.js → studio-v2/apps/web/dist/_expo/static/js/web/index-f7fcd21ae9d8dacf4c88ea5796614af0.js} +3 -3
  48. package/studio-v2/apps/web/dist/_sitemap.html +793 -0
  49. package/studio-v2/apps/web/dist/assets/___node_modules/@react-navigation/drawer/lib/module/views/assets/toggle-drawer-icon.ae74bb20586a731af545e6b00fe14a09.png +0 -0
  50. package/studio-v2/apps/web/dist/assets/___node_modules/expo-router/assets/react-navigation/elements/back-icon-mask.0a328cd9c1afd0afe8e3b1ec5165b1b4.png +0 -0
  51. package/studio-v2/apps/web/dist/assets/___node_modules/expo-router/assets/react-navigation/elements/back-icon.35ba0eaec5a4f5ed12ca16fabeae451d.png +0 -0
  52. package/studio-v2/apps/web/dist/assets/___node_modules/expo-router/assets/react-navigation/elements/clear-icon.c94f6478e7ae0cdd9f15de1fcb9e5e55.png +0 -0
  53. package/studio-v2/apps/web/dist/assets/___node_modules/expo-router/assets/react-navigation/elements/clear-icon.c94f6478e7ae0cdd9f15de1fcb9e5e55@2x.png +0 -0
  54. package/studio-v2/apps/web/dist/assets/___node_modules/expo-router/assets/react-navigation/elements/clear-icon.c94f6478e7ae0cdd9f15de1fcb9e5e55@3x.png +0 -0
  55. package/studio-v2/apps/web/dist/assets/___node_modules/expo-router/assets/react-navigation/elements/clear-icon.c94f6478e7ae0cdd9f15de1fcb9e5e55@4x.png +0 -0
  56. package/studio-v2/apps/web/dist/assets/___node_modules/expo-router/assets/react-navigation/elements/close-icon.808e1b1b9b53114ec2838071a7e6daa7.png +0 -0
  57. package/studio-v2/apps/web/dist/assets/___node_modules/expo-router/assets/react-navigation/elements/close-icon.808e1b1b9b53114ec2838071a7e6daa7@2x.png +0 -0
  58. package/studio-v2/apps/web/dist/assets/___node_modules/expo-router/assets/react-navigation/elements/close-icon.808e1b1b9b53114ec2838071a7e6daa7@3x.png +0 -0
  59. package/studio-v2/apps/web/dist/assets/___node_modules/expo-router/assets/react-navigation/elements/close-icon.808e1b1b9b53114ec2838071a7e6daa7@4x.png +0 -0
  60. package/studio-v2/apps/web/dist/assets/___node_modules/expo-router/assets/react-navigation/elements/search-icon.286d67d3f74808a60a78d3ebf1a5fb57.png +0 -0
  61. package/studio-v2/apps/web/dist/index.html +793 -0
  62. package/dist/chunk-3PYMFFVP.mjs.map +0 -1
  63. package/dist/chunk-45NSZH5Z.js.map +0 -1
  64. package/dist/chunk-4QTEZKXE.mjs +0 -2287
  65. package/dist/chunk-4QTEZKXE.mjs.map +0 -1
  66. package/dist/chunk-5ZDSYOFL.js.map +0 -1
  67. package/dist/chunk-BJTO5JO5.mjs +0 -10
  68. package/dist/chunk-BJTO5JO5.mjs.map +0 -1
  69. package/dist/chunk-DGUM43GV.js +0 -12
  70. package/dist/chunk-DGUM43GV.js.map +0 -1
  71. package/dist/chunk-ECBM426M.mjs +0 -2647
  72. package/dist/chunk-ECBM426M.mjs.map +0 -1
  73. package/dist/chunk-EIWDEXBO.js +0 -2690
  74. package/dist/chunk-EIWDEXBO.js.map +0 -1
  75. package/dist/chunk-FLEEJX7L.js +0 -2301
  76. package/dist/chunk-FLEEJX7L.js.map +0 -1
  77. package/dist/chunk-GZPFYWMA.mjs.map +0 -1
  78. package/dist/chunk-T7V6TILB.js +0 -669
  79. package/dist/primitives-DVX2q5St.d.mts +0 -195
  80. package/dist/primitives-nj-4at-g.d.ts +0 -195
  81. package/dist/studio/cli/index.d.mts +0 -1
  82. package/dist/studio/cli/index.d.ts +0 -1
  83. package/dist/studio/cli/index.js +0 -42
  84. package/dist/studio/cli/index.js.map +0 -1
  85. package/dist/studio/cli/index.mjs +0 -35
  86. package/dist/studio/cli/index.mjs.map +0 -1
  87. package/dist/studio/index.d.mts +0 -441
  88. package/dist/studio/index.d.ts +0 -441
  89. package/dist/studio/index.js +0 -84
  90. package/dist/studio/index.js.map +0 -1
  91. package/dist/studio/index.mjs +0 -3
  92. package/dist/studio/index.mjs.map +0 -1
  93. package/dist/web/index.d.mts +0 -778
  94. package/dist/web/index.d.ts +0 -778
  95. package/studio/README.md +0 -154
  96. package/studio/app/dist/_expo/static/js/web/index-9587ee2e3c02826ac2da47e86fefe882.js +0 -4
  97. package/studio/app/dist/index.html +0 -37
  98. package/studio/app/dist/metadata.json +0 -1
  99. /package/{studio/app/dist/assets/__node_modules → studio-v2/apps/web/dist/assets/___node_modules}/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/AntDesign.3f78af31cca60105799838a1a7a59fbd.ttf +0 -0
  100. /package/{studio/app/dist/assets/__node_modules → studio-v2/apps/web/dist/assets/___node_modules}/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/Entypo.31b5ffea3daddc69dd01a1f3d6cf63c5.ttf +0 -0
  101. /package/{studio/app/dist/assets/__node_modules → studio-v2/apps/web/dist/assets/___node_modules}/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/EvilIcons.140c53a7643ea949007aa9a282153849.ttf +0 -0
  102. /package/{studio/app/dist/assets/__node_modules → studio-v2/apps/web/dist/assets/___node_modules}/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/Feather.ca4b48e04dc1ce10bfbddb262c8b835f.ttf +0 -0
  103. /package/{studio/app/dist/assets/__node_modules → studio-v2/apps/web/dist/assets/___node_modules}/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/FontAwesome.b06871f281fee6b241d60582ae9369b9.ttf +0 -0
  104. /package/{studio/app/dist/assets/__node_modules → studio-v2/apps/web/dist/assets/___node_modules}/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/FontAwesome5_Brands.3b89dd103490708d19a95adcae52210e.ttf +0 -0
  105. /package/{studio/app/dist/assets/__node_modules → studio-v2/apps/web/dist/assets/___node_modules}/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/FontAwesome5_Regular.1f77739ca9ff2188b539c36f30ffa2be.ttf +0 -0
  106. /package/{studio/app/dist/assets/__node_modules → studio-v2/apps/web/dist/assets/___node_modules}/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/FontAwesome5_Solid.605ed7926cf39a2ad5ec2d1f9d391d3d.ttf +0 -0
  107. /package/{studio/app/dist/assets/__node_modules → studio-v2/apps/web/dist/assets/___node_modules}/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/FontAwesome6_Brands.56c8d80832e37783f12c05db7c8849e2.ttf +0 -0
  108. /package/{studio/app/dist/assets/__node_modules → studio-v2/apps/web/dist/assets/___node_modules}/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/FontAwesome6_Regular.370dd5af19f8364907b6e2c41f45dbbf.ttf +0 -0
  109. /package/{studio/app/dist/assets/__node_modules → studio-v2/apps/web/dist/assets/___node_modules}/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/FontAwesome6_Solid.adec7d6f310bc577f05e8fe06a5daccf.ttf +0 -0
  110. /package/{studio/app/dist/assets/__node_modules → studio-v2/apps/web/dist/assets/___node_modules}/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/Fontisto.b49ae8ab2dbccb02c4d11caaacf09eab.ttf +0 -0
  111. /package/{studio/app/dist/assets/__node_modules → studio-v2/apps/web/dist/assets/___node_modules}/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/Foundation.e20945d7c929279ef7a6f1db184a4470.ttf +0 -0
  112. /package/{studio/app/dist/assets/__node_modules → studio-v2/apps/web/dist/assets/___node_modules}/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/Ionicons.b4eb097d35f44ed943676fd56f6bdc51.ttf +0 -0
  113. /package/{studio/app/dist/assets/__node_modules → studio-v2/apps/web/dist/assets/___node_modules}/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/MaterialCommunityIcons.6e435534bd35da5fef04168860a9b8fa.ttf +0 -0
  114. /package/{studio/app/dist/assets/__node_modules → studio-v2/apps/web/dist/assets/___node_modules}/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/MaterialIcons.4e85bc9ebe07e0340c9c4fc2f6c38908.ttf +0 -0
  115. /package/{studio/app/dist/assets/__node_modules → studio-v2/apps/web/dist/assets/___node_modules}/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/Octicons.871378c6eab492a3e689a9385dc45a12.ttf +0 -0
  116. /package/{studio/app/dist/assets/__node_modules → studio-v2/apps/web/dist/assets/___node_modules}/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/SimpleLineIcons.d2285965fe34b05465047401b8595dd0.ttf +0 -0
  117. /package/{studio/app/dist/assets/__node_modules → studio-v2/apps/web/dist/assets/___node_modules}/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/Zocial.1681f34aaca71b8dfb70756bca331eb2.ttf +0 -0
  118. /package/{studio/app/dist/assets/__node_modules/expo-router/assets/react-navigation/elements → studio-v2/apps/web/dist/assets/___node_modules/@react-navigation/elements/lib/module/assets}/back-icon-mask.0a328cd9c1afd0afe8e3b1ec5165b1b4.png +0 -0
  119. /package/{studio/app/dist/assets/__node_modules/expo-router/assets/react-navigation/elements → studio-v2/apps/web/dist/assets/___node_modules/@react-navigation/elements/lib/module/assets}/back-icon.35ba0eaec5a4f5ed12ca16fabeae451d.png +0 -0
  120. /package/{studio/app/dist/assets/__node_modules/expo-router/assets/react-navigation/elements → studio-v2/apps/web/dist/assets/___node_modules/@react-navigation/elements/lib/module/assets}/clear-icon.c94f6478e7ae0cdd9f15de1fcb9e5e55.png +0 -0
  121. /package/{studio/app/dist/assets/__node_modules/expo-router/assets/react-navigation/elements → studio-v2/apps/web/dist/assets/___node_modules/@react-navigation/elements/lib/module/assets}/clear-icon.c94f6478e7ae0cdd9f15de1fcb9e5e55@2x.png +0 -0
  122. /package/{studio/app/dist/assets/__node_modules/expo-router/assets/react-navigation/elements → studio-v2/apps/web/dist/assets/___node_modules/@react-navigation/elements/lib/module/assets}/clear-icon.c94f6478e7ae0cdd9f15de1fcb9e5e55@3x.png +0 -0
  123. /package/{studio/app/dist/assets/__node_modules/expo-router/assets/react-navigation/elements → studio-v2/apps/web/dist/assets/___node_modules/@react-navigation/elements/lib/module/assets}/clear-icon.c94f6478e7ae0cdd9f15de1fcb9e5e55@4x.png +0 -0
  124. /package/{studio/app/dist/assets/__node_modules/expo-router/assets/react-navigation/elements → studio-v2/apps/web/dist/assets/___node_modules/@react-navigation/elements/lib/module/assets}/close-icon.808e1b1b9b53114ec2838071a7e6daa7.png +0 -0
  125. /package/{studio/app/dist/assets/__node_modules/expo-router/assets/react-navigation/elements → studio-v2/apps/web/dist/assets/___node_modules/@react-navigation/elements/lib/module/assets}/close-icon.808e1b1b9b53114ec2838071a7e6daa7@2x.png +0 -0
  126. /package/{studio/app/dist/assets/__node_modules/expo-router/assets/react-navigation/elements → studio-v2/apps/web/dist/assets/___node_modules/@react-navigation/elements/lib/module/assets}/close-icon.808e1b1b9b53114ec2838071a7e6daa7@3x.png +0 -0
  127. /package/{studio/app/dist/assets/__node_modules/expo-router/assets/react-navigation/elements → studio-v2/apps/web/dist/assets/___node_modules/@react-navigation/elements/lib/module/assets}/close-icon.808e1b1b9b53114ec2838071a7e6daa7@4x.png +0 -0
  128. /package/{studio/app/dist/assets/__node_modules/expo-router/assets/react-navigation/elements → studio-v2/apps/web/dist/assets/___node_modules/@react-navigation/elements/lib/module/assets}/search-icon.286d67d3f74808a60a78d3ebf1a5fb57.png +0 -0
  129. /package/{studio/app/dist/assets/__node_modules → studio-v2/apps/web/dist/assets/___node_modules}/expo-router/assets/arrow_down.017bc6ba3fc25503e5eb5e53826d48a8.png +0 -0
  130. /package/{studio/app/dist/assets/__node_modules → studio-v2/apps/web/dist/assets/___node_modules}/expo-router/assets/error.d1ea1496f9057eb392d5bbf3732a61b7.png +0 -0
  131. /package/{studio/app/dist/assets/__node_modules → studio-v2/apps/web/dist/assets/___node_modules}/expo-router/assets/file.19eeb73b9593a38f8e9f418337fc7d10.png +0 -0
  132. /package/{studio/app/dist/assets/__node_modules → studio-v2/apps/web/dist/assets/___node_modules}/expo-router/assets/forward.d8b800c443b8972542883e0b9de2bdc6.png +0 -0
  133. /package/{studio/app/dist/assets/__node_modules → studio-v2/apps/web/dist/assets/___node_modules}/expo-router/assets/pkg.ab19f4cbc543357183a20571f68380a3.png +0 -0
  134. /package/{studio/app/dist/assets/__node_modules → studio-v2/apps/web/dist/assets/___node_modules}/expo-router/assets/sitemap.412dd9275b6b48ad28f5e3d81bb1f626.png +0 -0
  135. /package/{studio/app/dist/assets/__node_modules → studio-v2/apps/web/dist/assets/___node_modules}/expo-router/assets/unmatched.20e71bdf79e3a97bf55fd9e164041578.png +0 -0
package/studio/README.md DELETED
@@ -1,154 +0,0 @@
1
- # Flipova Studio
2
-
3
- Visual app builder for React Native. Drag & drop layouts, components, and blocks from the foundation registry. Configure props visually. Generate clean React Native code.
4
-
5
- ## Quick start
6
-
7
- ### Using npm (Recommended for development)
8
-
9
- ```bash
10
- npx flipova-studio
11
- ```
12
-
13
- This single command:
14
- 1. Builds the web UI if not already built
15
- 2. Starts the Express server on port 4200
16
- 3. Opens the builder at http://localhost:4200
17
-
18
- ### Using Docker (Recommended for production)
19
-
20
- ```bash
21
- docker-compose up -d
22
- ```
23
-
24
- This will:
25
- - Build the Docker image with Foundation and Studio
26
- - Start the Studio server on port 4200
27
- - Persist project data in a Docker volume
28
- - Mount generated code to a volume for easy access
29
-
30
- Access the Studio at http://localhost:4200
31
-
32
- See the main [README.md](../README.md) for detailed Docker setup instructions.
33
-
34
- ## Commands
35
-
36
- | Command | Description |
37
- |---------|-------------|
38
- | `npx flipova-studio` | Start the builder (auto-builds UI if needed) |
39
- | `npx flipova-studio --port 3000` | Start on a custom port |
40
- | `npx flipova-studio --dev` | Dev mode: API on 4200 + Vite HMR on 5173 |
41
- | `npx flipova-studio generate` | Generate code from the saved project |
42
-
43
- ## Development
44
-
45
- For working on the studio UI itself:
46
-
47
- ```bash
48
- npx flipova-studio --dev
49
- ```
50
-
51
- This starts:
52
- - Express API server on http://localhost:4200
53
- - Vite dev server on http://localhost:5173 (with hot reload and API proxy)
54
-
55
- Open http://localhost:5173 for the dev experience with instant updates.
56
-
57
- ## Architecture
58
-
59
- ```
60
- ┌─────────────────────────────────────────────────┐
61
- │ React Web UI (Vite + React + TypeScript) │
62
- │ studio/web/src/ │
63
- │ Built to studio/web/dist/ → served by Express │
64
- └──────────────────────┬──────────────────────────┘
65
- │ fetch /api/* + WebSocket /ws
66
- ┌──────────────────────▼──────────────────────────┐
67
- │ Express Server (studio/server/) │
68
- │ ├── /api/registry → foundation registries │
69
- │ ├── /api/project → project CRUD │
70
- │ ├── /api/pages/:id → page tree CRUD │
71
- │ └── /api/generate → code generation │
72
- └──────────────────────┬──────────────────────────┘
73
- │
74
- ┌──────────────────────▼──────────────────────────┐
75
- │ .flipova-studio/project.json │
76
- └──────────────────────┬──────────────────────────┘
77
- │ generate
78
- ┌──────────────────────▼──────────────────────────┐
79
- │ ./generated/ │
80
- │ ├── App.tsx │
81
- │ ├── screens/*.tsx │
82
- │ ├── navigation/index.tsx │
83
- │ ├── theme/index.ts │
84
- │ └── services/*.ts │
85
- └─────────────────────────────────────────────────┘
86
- ```
87
-
88
- ## REST API
89
-
90
- ### Registry (read-only)
91
-
92
- | Method | Endpoint | Description |
93
- |--------|----------|-------------|
94
- | GET | `/api/registry` | All registries (layouts, components, blocks) |
95
- | GET | `/api/registry/layouts` | Layout registry only |
96
- | GET | `/api/registry/components` | Component registry only |
97
- | GET | `/api/registry/blocks` | Block registry only |
98
-
99
- ### Project
100
-
101
- | Method | Endpoint | Description |
102
- |--------|----------|-------------|
103
- | GET | `/api/project` | Load the current project |
104
- | PUT | `/api/project` | Save the entire project |
105
- | PUT | `/api/project/theme` | Change the active theme |
106
- | PUT | `/api/project/navigation` | Update navigation config |
107
- | POST | `/api/project/services` | Add a service |
108
-
109
- ### Pages
110
-
111
- | Method | Endpoint | Description |
112
- |--------|----------|-------------|
113
- | POST | `/api/pages` | Create a new page |
114
- | PUT | `/api/pages/:id` | Update a page (tree, name, route) |
115
- | DELETE | `/api/pages/:id` | Delete a page |
116
-
117
- ### Code generation
118
-
119
- | Method | Endpoint | Description |
120
- |--------|----------|-------------|
121
- | POST | `/api/generate` | Generate full project to `./generated/` |
122
- | POST | `/api/generate/preview/:pageId` | Preview generated code for one page |
123
-
124
- ## WebSocket
125
-
126
- Connect to `ws://localhost:4200/ws` for live updates.
127
-
128
- | Event | Payload | When |
129
- |-------|---------|------|
130
- | `page:created` | PageDocument | New page created |
131
- | `page:updated` | PageDocument | Page tree modified |
132
- | `page:deleted` | `{ id }` | Page removed |
133
- | `theme:changed` | `{ theme }` | Theme switched |
134
-
135
- ## Project structure
136
-
137
- ```
138
- studio/
139
- ├── cli/index.ts CLI entry point (npx flipova-studio)
140
- ├── server/
141
- │ ├── index.ts Express + WebSocket server
142
- │ └── api.ts REST API routes (imports foundation registries)
143
- ├── engine/
144
- │ ├── tree/
145
- │ │ ├── types.ts TreeNode, PageDocument, ProjectDocument
146
- │ │ └── operations.ts Immutable tree operations
147
- │ └── codegen/
148
- │ ├── generator.ts Page → .tsx code
149
- │ └── project.ts Project → full app scaffold
150
- └── web/ React app (Vite + TypeScript)
151
- ├── src/ React components
152
- ├── dist/ Built statics (served by Express)
153
- └── package.json Separate deps (react, react-dom, vite)
154
- ```
@@ -1,4 +0,0 @@
1
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"BarcodeDetector",{enumerable:!0,get:function(){return t.t}}),Object.defineProperty(e,"ZXING_CPP_COMMIT",{enumerable:!0,get:function(){return t.s}}),Object.defineProperty(e,"ZXING_WASM_SHA256",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(e,"ZXING_WASM_VERSION",{enumerable:!0,get:function(){return t.o}}),Object.defineProperty(e,"prepareZXingModule",{enumerable:!0,get:function(){return t.r}}),Object.defineProperty(e,"purgeZXingModule",{enumerable:!0,get:function(){return t.a}}),Object.defineProperty(e,"setZXingModuleOverrides",{enumerable:!0,get:function(){return t.n}});var t=r(d[0]);r(d[1]),r(d[2])},5118,[5120,5121,5122]);
2
- __d(function(_g,_r2,_i,_a,_m,_e2,_d){"use strict";Object.defineProperty(_e2,'__esModule',{value:!0}),Object.defineProperty(_e2,"a",{enumerable:!0,get:function(){return A}}),Object.defineProperty(_e2,"i",{enumerable:!0,get:function(){return I}}),Object.defineProperty(_e2,"n",{enumerable:!0,get:function(){return S}}),Object.defineProperty(_e2,"o",{enumerable:!0,get:function(){return v}}),Object.defineProperty(_e2,"r",{enumerable:!0,get:function(){return _}}),Object.defineProperty(_e2,"s",{enumerable:!0,get:function(){return g}}),Object.defineProperty(_e2,"t",{enumerable:!0,get:function(){return dt}});var t=[["All","*","*"," ",0,"All"],["AllReadable","*","r"," ",0,"All Readable"],["AllCreatable","*","w"," ",0,"All Creatable"],["AllLinear","*","l"," ",0,"All Linear"],["AllMatrix","*","m"," ",0,"All Matrix"],["AllGS1","*","G"," ",0,"All GS1"],["AllRetail","*","R"," ",0,"All Retail"],["AllIndustrial","*","I"," ",0,"All Industrial"],["Codabar","F"," ","lrw ",18,"Codabar"],["Code39","A"," ","lrw I",8,"Code 39"],["Code39Std","A","s","lrw I",8,"Code 39 Standard"],["Code39Ext","A","e","lr I",9,"Code 39 Extended"],["Code32","A","2","lr I",129,"Code 32"],["PZN","A","p","lr I",52,"Pharmazentralnummer"],["Code93","G"," ","lrw I",25,"Code 93"],["Code128","C"," ","lrwGI",20,"Code 128"],["ITF","I"," ","lrw I",3,"ITF"],["ITF14","I","4","lr I",89,"ITF-14"],["DataBar","e"," ","lr GR",29,"DataBar"],["DataBarOmni","e","o","lr GR",29,"DataBar Omni"],["DataBarStk","e","s","lr GR",79,"DataBar Stacked"],["DataBarStkOmni","e","O","lr GR",80,"DataBar Stacked Omni"],["DataBarLtd","e","l","lr GR",30,"DataBar Limited"],["DataBarExp","e","e","lr GR",31,"DataBar Expanded"],["DataBarExpStk","e","E","lr GR",81,"DataBar Expanded Stacked"],["EANUPC","E"," ","lr R",15,"EAN/UPC"],["EAN13","E","1","lrw R",15,"EAN-13"],["EAN8","E","8","lrw R",10,"EAN-8"],["EAN5","E","5","l R",12,"EAN-5"],["EAN2","E","2","l R",11,"EAN-2"],["ISBN","E","i","lr R",69,"ISBN"],["UPCA","E","a","lrw R",34,"UPC-A"],["UPCE","E","e","lrw R",37,"UPC-E"],["OtherBarcode","X"," "," r ",0,"Other barcode"],["DXFilmEdge","X","x","lr ",147,"DX Film Edge"],["PDF417","L"," ","mrw ",55,"PDF417"],["CompactPDF417","L","c","mr ",56,"Compact PDF417"],["MicroPDF417","L","m","m ",84,"MicroPDF417"],["Aztec","z"," ","mr G ",92,"Aztec"],["AztecCode","z","c","mrwG ",92,"Aztec Code"],["AztecRune","z","r","mr ",128,"Aztec Rune"],["QRCode","Q"," ","mrwG ",58,"QR Code"],["QRCodeModel1","Q","1","mr ",0,"QR Code Model 1"],["QRCodeModel2","Q","2","mr ",58,"QR Code Model 2"],["MicroQRCode","Q","m","mr ",97,"Micro QR Code"],["RMQRCode","Q","r","mr G ",145,"rMQR Code"],["DataMatrix","d"," ","mrwG ",71,"Data Matrix"],["MaxiCode","U"," ","mr ",57,"MaxiCode"]],e={DataBarExpanded:"DataBarExp",DataBarLimited:"DataBarLtd","Linear-Codes":"AllLinear","Matrix-Codes":"AllMatrix",Any:"All",rMQRCode:"RMQRCode"};function r(t){var r;return null==(r=e[t])?t:r}function n(t){return t.map(r).join(",")}t.map(t=>t[5]),t.filter(t=>"*"===t[1]).map(t=>t[0]),t.filter(t=>"*"!==t[1]).map(t=>t[0]),t.filter(t=>" "===t[2]).map(t=>t[0]),t.filter(t=>"l"===t[3][0]).map(t=>t[0]),t.filter(t=>"m"===t[3][0]).map(t=>t[0]),t.filter(t=>"r"===t[3][1]).map(t=>t[0]),t.filter(t=>"w"===t[3][2]||0!==t[4]).map(t=>t[0]),t.filter(t=>"G"===t[3][3]).map(t=>t[0]),t.filter(t=>"R"===t[3][4]).map(t=>t[0]),t.filter(t=>"I"===t[3][4]).map(t=>t[0]);var a=["LocalAverage","GlobalHistogram","FixedThreshold","BoolCast"];function o(t){return a.indexOf(t)}var i="Unknown.ASCII.ISO8859_1.ISO8859_2.ISO8859_3.ISO8859_4.ISO8859_5.ISO8859_6.ISO8859_7.ISO8859_8.ISO8859_9.ISO8859_10.ISO8859_11.ISO8859_13.ISO8859_14.ISO8859_15.ISO8859_16.Cp437.Cp1250.Cp1251.Cp1252.Cp1256.Shift_JIS.Big5.GB2312.GB18030.EUC_JP.EUC_KR.UTF16BE.UTF8.UTF16LE.UTF32BE.UTF32LE.BINARY".split(".");function s(t){return"UnicodeBig"===t?i.indexOf("UTF16BE"):i.indexOf(t)}var l=["Text","Binary","Mixed","GS1","ISO15434","UnknownECI"];function u(t){return l[t]}var c=["Ignore","Read","Require"];function d(t){return c.indexOf(t)}var f=["Plain","ECI","HRI","Escaped","Hex","HexECI"];function h(t){return f.indexOf(t)}var p={formats:[],tryHarder:!0,tryRotate:!0,tryInvert:!0,tryDownscale:!0,tryDenoise:!1,binarizer:"LocalAverage",isPure:!1,downscaleFactor:3,downscaleThreshold:500,minLineCount:2,maxNumberOfSymbols:255,validateOptionalChecksum:!1,returnErrors:!1,eanAddOnSymbol:"Ignore",textMode:"HRI",characterSet:"Unknown",tryCode39ExtendedMode:!0};function y(t){var e;return Object.assign({},t,{formats:n(t.formats),binarizer:o(t.binarizer),eanAddOnSymbol:d(t.eanAddOnSymbol),textMode:h(t.textMode),characterSet:s(t.characterSet),tryCode39ExtendedMode:null==(e=t.tryCode39ExtendedMode)||e})}function m(t){return Object.assign({},t,{format:t.format,symbology:t.symbology,contentType:u(t.contentType)})}var v="3.0.2",g="b304f6656b865be11b00741d430b7d0027bc0ab4",w={locateFile:(t,e)=>{let r=t.match(/_(.+?)\.wasm$/);return r?`https://fastly.jsdelivr.net/npm/zxing-wasm@3.0.2/dist/${r[1]}/${t}`:e+t}},b=new WeakMap;function C(t,e){return Object.is(t,e)||Object.keys(t).length===Object.keys(e).length&&Object.keys(t).every(r=>Object.hasOwn(e,r)&&t[r]===e[r])}function $(t,{overrides:e,equalityFn:r=C,fireImmediately:n=!1}={}){var a,o;let i,[s,l]=null==(a=b.get(t))?[w]:a,u=null==e?s:e;if(n){if(l&&(i=r(s,u)))return l;let e=t(Object.assign({},u));return b.set(t,[u,e]),e}(null==(o=i)?r(s,u):o)||b.set(t,[u])}function T(t){b.delete(t)}function E(t){let e=t.byteLength>>2,r=new Uint8Array(e);for(let n=0;n<e;n++){let e=n<<2;r[n]=306*t[e]+601*t[e+1]+117*t[e+2]+512>>10}return r}async function P(t,e,r=p){let n,a,o=Object.assign({},p,r),i=await $(t,{fireImmediately:!0});if("width"in e&&"height"in e&&"data"in e){let{data:t,width:r,height:s}=e,l=E(t),u=l.byteLength;if(a=i._malloc(u),!a)throw Error(`Failed to allocate ${u} bytes in WASM memory`);try{i.HEAPU8.set(l,a),n=i.readBarcodesFromPixmap(a,r,s,y(o))}finally{i._free(a)}}else{let t,r;if("buffer"in e)[t,r]=[e.byteLength,e];else if("byteLength"in e)[t,r]=[e.byteLength,new Uint8Array(e)];else{if(!("size"in e))throw TypeError("Invalid input type");[t,r]=[e.size,new Uint8Array(await e.arrayBuffer())]}if(a=i._malloc(t),!a)throw Error(`Failed to allocate ${t} bytes in WASM memory`);try{i.HEAPU8.set(r,a),n=i.readBarcodesFromImage(a,t,y(o))}finally{i._free(a)}}let s=[];for(let t=0;t<n.size();++t)s.push(m(n.get(t)));return s}async function O(t={}){var e,r,n,a=t,o=!!globalThis.window,i=typeof Bun<"u",s=!!globalThis.WorkerGlobalScope;null!=(r=globalThis.process)&&null!=(r=r.versions)&&r.node&&(null==(n=globalThis.process)||n.type);var l,u,c="./this.program",d="";function f(t){return a.locateFile?a.locateFile(t,d):d+t}if(o||s||i){try{d=new URL(".",void 0).href}catch{}s&&(u=t=>{var e=new XMLHttpRequest;return e.open("GET",t,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)}),l=async t=>{var e=await fetch(t,{credentials:"same-origin"});if(e.ok)return e.arrayBuffer();throw Error(e.status+" : "+e.url)}}var h,p,y,m,v=console.log.bind(console),g=console.error.bind(console),w=!1,b=!1;function C(){var t=Ne.buffer;I=new Int8Array(t),S=new Int16Array(t),a.HEAPU8=j=new Uint8Array(t),M=new Uint16Array(t),x=new Int32Array(t),F=new Uint32Array(t),R=new Float32Array(t),D=new Float64Array(t)}function $(){if(a.preRun)for("function"==typeof a.preRun&&(a.preRun=[a.preRun]);a.preRun.length;)L(a.preRun.shift());B(W)}function T(){if(a.postRun)for("function"==typeof a.postRun&&(a.postRun=[a.postRun]);a.postRun.length;)U(a.postRun.shift());B(k)}function E(t){var e,r;null==(e=a.onAbort)||e.call(a,t),g(t="Aborted("+t+")"),w=!0,t+=". Build with -sASSERTIONS for more info.";var n=new WebAssembly.RuntimeError(t);throw null==(r=y)||r(n),n}function P(t){if(t==m&&h)return new Uint8Array(h);if(u)return u(t);throw"both async and sync fetching of the wasm failed"}async function O(t){if(!h)try{var e=await l(t);return new Uint8Array(e)}catch{}return P(t)}async function _(t,e){try{var r=await O(t);return await WebAssembly.instantiate(r,e)}catch(t){g(`failed to asynchronously prepare wasm: ${t}`),E(t)}}async function A(t,e,r){if(!t&&WebAssembly.instantiateStreaming)try{var n=fetch(e,{credentials:"same-origin"});return await WebAssembly.instantiateStreaming(n,r)}catch(t){g(`wasm streaming compile failed: ${t}`),g("falling back to ArrayBuffer instantiation")}return _(e,r)}var S,x,I,R,D,M,F,j,B=t=>{for(;t.length>0;)t.shift()(a)},k=[],U=t=>k.push(t),W=[],L=t=>W.push(t),V=t=>Ue(t),z=()=>We(),G=[],H=0,N=0;class Q{constructor(t){this.excPtr=t,this.ptr=t-24}set_type(t){F[this.ptr+4>>2]=t}get_type(){return F[this.ptr+4>>2]}set_destructor(t){F[this.ptr+8>>2]=t}get_destructor(){return F[this.ptr+8>>2]}set_caught(t){t=t?1:0,I[this.ptr+12]=t}get_caught(){return 0!=I[this.ptr+12]}set_rethrown(t){t=t?1:0,I[this.ptr+13]=t}get_rethrown(){return 0!=I[this.ptr+13]}init(t,e){this.set_adjusted_ptr(0),this.set_type(t),this.set_destructor(e)}set_adjusted_ptr(t){F[this.ptr+16>>2]=t}get_adjusted_ptr(){return F[this.ptr+16>>2]}}var q=t=>ke(t),X=t=>{var e=N;if(!e)return q(0),0;var r=new Q(e);r.set_adjusted_ptr(e);var n=r.get_type();if(!n)return q(0),e;for(var a of t){if(0===a||a===n)break;var o=r.ptr+16;if(ze(a,n,o))return q(a),e}return q(n),e},Z={},J=t=>{for(;t.length;){var e=t.pop();t.pop()(e)}};function Y(t){return this.fromWireType(F[t>>2])}var K={},tt={},et={},rt=class extends Error{constructor(t){super(t),this.name="InternalError"}},nt=t=>{throw new rt(t)},at=(t,e,r)=>{function n(e){var n=r(e);n.length!==t.length&&nt("Mismatched type converter count");for(var a=0;a<t.length;++a)ut(t[a],n[a])}t.forEach(t=>et[t]=e);var a=Array(e.length),o=[],i=0;{let t=e;for(let e=0;e<t.length;++e){let r=t[e];tt.hasOwnProperty(r)?a[e]=tt[r]:(o.push(r),K.hasOwnProperty(r)||(K[r]=[]),K[r].push(()=>{a[e]=tt[r],++i===o.length&&n(a)}))}}0===o.length&&n(a)},ot=t=>{for(var e="";;){var r=j[t++];if(!r)return e;e+=String.fromCharCode(r)}},it=class extends Error{constructor(t){super(t),this.name="BindingError"}},st=t=>{throw new it(t)};function lt(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};var n=e.name;if(t||st(`type "${n}" must have a positive integer typeid pointer`),tt.hasOwnProperty(t)){if(r.ignoreDuplicateRegistrations)return;st(`Cannot register type '${n}' twice`)}if(tt[t]=e,delete et[t],K.hasOwnProperty(t)){var a=K[t];delete K[t],a.forEach(t=>t())}}function ut(t,e){return lt(t,e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{})}var ct=t=>({count:t.count,deleteScheduled:t.deleteScheduled,preservePointerOnDelete:t.preservePointerOnDelete,ptr:t.ptr,ptrType:t.ptrType,smartPtr:t.smartPtr,smartPtrType:t.smartPtrType}),dt=t=>{st((function(t){return t.$$.ptrType.registeredClass.name})(t)+" instance already deleted")},ft=!1,ht=t=>{},pt=t=>{t.smartPtr?t.smartPtrType.rawDestructor(t.smartPtr):t.ptrType.registeredClass.rawDestructor(t.ptr)},yt=t=>{--t.count.value,0===t.count.value&&pt(t)},mt=t=>globalThis.FinalizationRegistry?(ft=new FinalizationRegistry(t=>{yt(t.$$)}),mt=t=>{var e=t.$$;if(e.smartPtr){var r={$$:e};ft.register(t,r,t)}return t},ht=t=>ft.unregister(t),mt(t)):(mt=t=>t,t),vt=[];function gt(){}var wt=(t,e)=>Object.defineProperty(e,"name",{value:t}),bt={},Ct=(t,e,r)=>{if(void 0===t[e].overloadTable){var n=t[e];t[e]=function(){var n=[...arguments];return t[e].overloadTable.hasOwnProperty(n.length)||st(`Function '${r}' called with an invalid number of arguments (${n.length}) - expects one of (${t[e].overloadTable})!`),t[e].overloadTable[n.length].apply(this,n)},t[e].overloadTable=[],t[e].overloadTable[n.argCount]=n}},$t=(t,e,r)=>{a.hasOwnProperty(t)?((void 0===r||void 0!==a[t].overloadTable&&void 0!==a[t].overloadTable[r])&&st(`Cannot register public name '${t}' twice`),Ct(a,t,t),a[t].overloadTable.hasOwnProperty(r)&&st(`Cannot register multiple overloads of a function with the same number of arguments (${r})!`),a[t].overloadTable[r]=e):(a[t]=e,a[t].argCount=r)},Tt=t=>{var e=(t=t.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return e>=48&&e<=57?`_${t}`:t};function Et(t,e,r,n,a,o,i,s){this.name=t,this.constructor=e,this.instancePrototype=r,this.rawDestructor=n,this.baseClass=a,this.getActualType=o,this.upcast=i,this.downcast=s,this.pureVirtualFunctions=[]}var Pt=(t,e,r)=>{for(;e!==r;)e.upcast||st(`Expected null or instance of ${r.name}, got an instance of ${e.name}`),t=e.upcast(t),e=e.baseClass;return t},Ot=t=>{if(null===t)return"null";var e=typeof t;return"object"===e||"array"===e||"function"===e?t.toString():""+t};function _t(t,e){if(null===e)return this.isReference&&st(`null is not a valid ${this.name}`),0;e.$$||st(`Cannot pass "${Ot(e)}" as a ${this.name}`),e.$$.ptr||st(`Cannot pass deleted object as a pointer of type ${this.name}`);var r=e.$$.ptrType.registeredClass;return Pt(e.$$.ptr,r,this.registeredClass)}function At(t,e){var r;if(null===e)return this.isReference&&st(`null is not a valid ${this.name}`),this.isSmartPointer?(r=this.rawConstructor(),null!==t&&t.push(this.rawDestructor,r),r):0;(!e||!e.$$)&&st(`Cannot pass "${Ot(e)}" as a ${this.name}`),e.$$.ptr||st(`Cannot pass deleted object as a pointer of type ${this.name}`),!this.isConst&&e.$$.ptrType.isConst&&st(`Cannot convert argument of type ${e.$$.smartPtrType?e.$$.smartPtrType.name:e.$$.ptrType.name} to parameter type ${this.name}`);var n=e.$$.ptrType.registeredClass;if(r=Pt(e.$$.ptr,n,this.registeredClass),this.isSmartPointer)switch(void 0===e.$$.smartPtr&&st("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:e.$$.smartPtrType===this?r=e.$$.smartPtr:st(`Cannot convert argument of type ${e.$$.smartPtrType?e.$$.smartPtrType.name:e.$$.ptrType.name} to parameter type ${this.name}`);break;case 1:r=e.$$.smartPtr;break;case 2:if(e.$$.smartPtrType===this)r=e.$$.smartPtr;else{var a=e.clone();r=this.rawShare(r,ee.toHandle(()=>a.delete())),null!==t&&t.push(this.rawDestructor,r)}break;default:st("Unsupported sharing policy")}return r}function St(t,e){if(null===e)return this.isReference&&st(`null is not a valid ${this.name}`),0;e.$$||st(`Cannot pass "${Ot(e)}" as a ${this.name}`),e.$$.ptr||st(`Cannot pass deleted object as a pointer of type ${this.name}`),e.$$.ptrType.isConst&&st(`Cannot convert argument of type ${e.$$.ptrType.name} to parameter type ${this.name}`);var r=e.$$.ptrType.registeredClass;return Pt(e.$$.ptr,r,this.registeredClass)}var xt=(t,e,r)=>{if(e===r)return t;if(void 0===r.baseClass)return null;var n=xt(t,e,r.baseClass);return null===n?null:r.downcast(n)},It={},Rt=(t,e)=>{for(void 0===e&&st("ptr should not be undefined");t.baseClass;)e=t.upcast(e),t=t.baseClass;return e},Dt=(t,e)=>(e=Rt(t,e),It[e]),Mt=(t,e)=>((!e.ptrType||!e.ptr)&&nt("makeClassHandle requires ptr and ptrType"),!!e.smartPtrType!=!!e.smartPtr&&nt("Both smartPtrType and smartPtr must be specified"),e.count={value:1},mt(Object.create(t,{$$:{value:e,writable:!0}})));function Ft(t){var e=this.getPointee(t);if(!e)return this.destructor(t),null;var r=Dt(this.registeredClass,e);if(void 0!==r){if(0===r.$$.count.value)return r.$$.ptr=e,r.$$.smartPtr=t,r.clone();var n=r.clone();return this.destructor(t),n}function a(){return this.isSmartPointer?Mt(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:e,smartPtrType:this,smartPtr:t}):Mt(this.registeredClass.instancePrototype,{ptrType:this,ptr:t})}var o=bt[this.registeredClass.getActualType(e)];if(!o)return a.call(this);var i=this.isConst?o.constPointerType:o.pointerType,s=xt(e,this.registeredClass,i.registeredClass);return null===s?a.call(this):this.isSmartPointer?Mt(i.registeredClass.instancePrototype,{ptrType:i,ptr:s,smartPtrType:this,smartPtr:t}):Mt(i.registeredClass.instancePrototype,{ptrType:i,ptr:s})}function jt(t,e,r,n,a,o,i,s,l,u,c){this.name=t,this.registeredClass=e,this.isReference=r,this.isConst=n,this.isSmartPointer=a,this.pointeeType=o,this.sharingPolicy=i,this.rawGetPointee=s,this.rawConstructor=l,this.rawShare=u,this.rawDestructor=c,a||void 0!==e.baseClass?this.toWireType=At:n?(this.toWireType=_t,this.destructorFunction=null):(this.toWireType=St,this.destructorFunction=null)}var Bt=(t,e,r)=>{a.hasOwnProperty(t)||nt("Replacing nonexistent public symbol"),void 0!==a[t].overloadTable&&void 0!==r?a[t].overloadTable[r]=e:(a[t]=e,a[t].argCount=r)},kt={},Ut=(t,e,r)=>(t=t.replace(/p/g,"i"),(0,kt[t])(e,...r)),Wt=[],Lt=t=>{var e=Wt[t];return e||(Wt[t]=e=Qe.get(t)),e},Vt=function(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(t.includes("j"))return Ut(t,e,r);return Lt(e)(...r)},zt=function(t,e){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(){return Vt(t,e,[...arguments],r)}},Gt=function(t,e){var r=(t=ot(t)).includes("j")?zt(t,e):Lt(e);return"function"!=typeof r&&st(`unknown function pointer with signature ${t}: ${e}`),r};class Ht extends Error{}var Nt=t=>{var e=De(t),r=ot(e);return Me(e),r},Qt=(t,e)=>{var r=[],n={};throw e.forEach(function t(e){if(!n[e]&&!tt[e]){if(et[e])return void et[e].forEach(t);r.push(e),n[e]=!0}}),new Ht(`${t}: `+r.map(Nt).join([", "]))},qt=(t,e)=>{for(var r=[],n=0;n<t;n++)r.push(F[e+4*n>>2]);return r};function Xt(t){for(var e=1;e<t.length;++e)if(null!==t[e]&&void 0===t[e].destructorFunction)return!0;return!1}function Zt(t,e,r,n,a,o){var i=e.length;i<2&&st("argTypes array size mismatch! Must at least get return value and 'this' types!");var s=null!==e[1]&&null!==r,l=Xt(e),u=!e[0].isVoid,c=i-2,d=Array(c),f=[],h=[];return wt(t,function(){var t;h.length=0,f.length=s?2:1,f[0]=a,s&&(t=e[1].toWireType(h,this),f[1]=t);for(var r=0;r<c;++r)d[r]=e[r+2].toWireType(h,r<0||arguments.length<=r?void 0:arguments[r]),f.push(d[r]);return(function(r){if(l)J(h);else for(var n=s?1:2;n<e.length;n++){var a=1===n?t:d[n-2];null!==e[n].destructorFunction&&e[n].destructorFunction(a)}if(u)return e[0].fromWireType(r)})(n(...f))})}var Jt=t=>{let e=(t=t.trim()).indexOf("(");return-1===e?t:t.slice(0,e)},Yt=[],Kt=[0,1,,1,null,1,!0,1,!1,1],te=t=>{t>9&&0===--Kt[t+1]&&(Kt[t]=void 0,Yt.push(t))},ee={toValue:t=>(t||st(`Cannot use deleted val. handle = ${t}`),Kt[t]),toHandle:t=>{switch(t){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:{let e=Yt.pop()||Kt.length;return Kt[e]=t,Kt[e+1]=1,e}}}},re={name:"emscripten::val",fromWireType:t=>{var e=ee.toValue(t);return te(t),e},toWireType:(t,e)=>ee.toHandle(e),readValueFromPointer:Y,destructorFunction:null},ne=(t,e)=>{switch(e){case 4:return function(t){return this.fromWireType(R[t>>2])};case 8:return function(t){return this.fromWireType(D[t>>3])};default:throw TypeError(`invalid float width (${e}): ${t}`)}},ae=(t,e,r)=>{switch(e){case 1:return r?t=>I[t]:t=>j[t];case 2:return r?t=>S[t>>1]:t=>M[t>>1];case 4:return r?t=>x[t>>2]:t=>F[t>>2];default:throw TypeError(`invalid integer width (${e}): ${t}`)}},oe=(t,e,r)=>{let n=(t,e)=>{let r=0;return{next(){if(r>=t)return{done:!0};let n=r;return r++,{value:e(n),done:!1}},[Symbol.iterator](){return this}}};t[Symbol.iterator]||(t[Symbol.iterator]=function(){return n(this[e](),t=>this[r](t))})},ie=Object.assign({optional:!0},re),se=(t,e,r,n)=>{if(!(n>0))return 0;for(var a=r,o=r+n-1,i=0;i<t.length;++i){var s=t.codePointAt(i);if(s<=127){if(r>=o)break;e[r++]=s}else if(s<=2047){if(r+1>=o)break;e[r++]=192|s>>6,e[r++]=128|63&s}else if(s<=65535){if(r+2>=o)break;e[r++]=224|s>>12,e[r++]=128|s>>6&63,e[r++]=128|63&s}else{if(r+3>=o)break;e[r++]=240|s>>18,e[r++]=128|s>>12&63,e[r++]=128|s>>6&63,e[r++]=128|63&s,i++}}return e[r]=0,r-a},le=(t,e,r)=>se(t,j,e,r),ue=t=>{for(var e=0,r=0;r<t.length;++r){var n=t.charCodeAt(r);n<=127?e++:n<=2047?e+=2:n>=55296&&n<=57343?(e+=4,++r):e+=3}return e},ce=globalThis.TextDecoder&&new TextDecoder,de=(t,e,r,n)=>{var a=e+r;if(n)return a;for(;t[e]&&!(e>=a);)++e;return e},fe=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;var r=de(t,e,arguments.length>2?arguments[2]:void 0,arguments.length>3?arguments[3]:void 0);if(r-e>16&&t.buffer&&ce)return ce.decode(t.subarray(e,r));for(var n="";e<r;){var a=t[e++];if(128&a){var o=63&t[e++];if(192!=(224&a)){var i=63&t[e++];if((a=224==(240&a)?(15&a)<<12|o<<6|i:(7&a)<<18|o<<12|i<<6|63&t[e++])<65536)n+=String.fromCharCode(a);else{var s=a-65536;n+=String.fromCharCode(55296|s>>10,56320|1023&s)}}else n+=String.fromCharCode((31&a)<<6|o)}else n+=String.fromCharCode(a)}return n},he=(t,e,r)=>t?fe(j,t,e,r):"",pe=globalThis.TextDecoder?new TextDecoder("utf-16le"):void 0,ye=(t,e,r)=>{var n=t>>1,a=de(M,n,e/2,r);if(a-n>16&&pe)return pe.decode(M.subarray(n,a));for(var o="",i=n;i<a;++i){var s=M[i];o+=String.fromCharCode(s)}return o},me=(t,e,r)=>{if(null!=r||(r=2147483647),r<2)return 0;for(var n=e,a=(r-=2)<2*t.length?r/2:t.length,o=0;o<a;++o){var i=t.charCodeAt(o);S[e>>1]=i,e+=2}return S[e>>1]=0,e-n},ve=t=>2*t.length,ge=(t,e,r)=>{for(var n="",a=t>>2,o=0;!(o>=e/4);o++){var i=F[a+o];if(!i&&!r)break;n+=String.fromCodePoint(i)}return n},we=(t,e,r)=>{if(null!=r||(r=2147483647),r<4)return 0;for(var n=e,a=n+r-4,o=0;o<t.length;++o){var i=t.codePointAt(o);if(i>65535&&o++,x[e>>2]=i,(e+=4)+4>a)break}return x[e>>2]=0,e-n},be=t=>{for(var e=0,r=0;r<t.length;++r)t.codePointAt(r)>65535&&r++,e+=4;return e},Ce=[],$e=t=>{var e=Ce.length;return Ce.push(t),e},Te=(t,e)=>{var r=tt[t];return void 0===r&&st(`${e} has unknown type ${Nt(t)}`),r},Ee=(t,e)=>{for(var r=Array(t),n=0;n<t;++n)r[n]=Te(F[e+4*n>>2],`parameter ${n}`);return r},Pe=(t,e,r)=>{var n=[],a=t(n,r);return n.length&&(F[e>>2]=ee.toHandle(n)),a},Oe={},_e=t=>{var e=Oe[t];return void 0===e?ot(t):e},Ae=(t,e)=>Math.ceil(t/e)*e,Se=t=>{var e=(t-Ne.buffer.byteLength+65535)/65536|0;try{return Ne.grow(e),C(),1}catch{}},xe={},Ie=()=>{if(!Ie.strings){var t,e,r={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:(null==(t=null==(e=globalThis.navigator)?void 0:e.language)?"C":t).replace("-","_")+".UTF-8",_:c||"./this.program"};for(var n in xe)void 0===xe[n]?delete r[n]:r[n]=xe[n];var a=[];for(var n in r)a.push(`${n}=${r[n]}`);Ie.strings=a}return Ie.strings},Re=(t,e)=>e+2097152>>>0<4194305-!!t?(t>>>0)+4294967296*e:NaN;var De,Me,Fe,je,Be,ke,Ue,We,Le,Ve,ze,Ge,He,Ne,Qe,qe=[null,[],[]],Xe=(t,e)=>{var r=qe[t];0===e||10===e?((1===t?v:g)(fe(r)),r.length=0):r.push(e)};if((()=>{let t=gt.prototype;Object.assign(t,{isAliasOf(t){if(!(this instanceof gt&&t instanceof gt))return!1;var e=this.$$.ptrType.registeredClass,r=this.$$.ptr;t.$$=t.$$;for(var n=t.$$.ptrType.registeredClass,a=t.$$.ptr;e.baseClass;)r=e.upcast(r),e=e.baseClass;for(;n.baseClass;)a=n.upcast(a),n=n.baseClass;return e===n&&r===a},clone(){if(this.$$.ptr||dt(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var t=mt(Object.create(Object.getPrototypeOf(this),{$$:{value:ct(this.$$)}}));return t.$$.count.value+=1,t.$$.deleteScheduled=!1,t},delete(){this.$$.ptr||dt(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&st("Object already scheduled for deletion"),ht(this),yt(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)},isDeleted(){return!this.$$.ptr},deleteLater(){return this.$$.ptr||dt(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&st("Object already scheduled for deletion"),vt.push(this),vt.length,this.$$.deleteScheduled=!0,this}});let e=Symbol.dispose;e&&(t[e]=t.delete)})(),Object.assign(jt.prototype,{getPointee(t){return this.rawGetPointee&&(t=this.rawGetPointee(t)),t},destructor(t){var e;null==(e=this.rawDestructor)||e.call(this,t)},readValueFromPointer:Y,fromWireType:Ft}),a.noExitRuntime&&a.noExitRuntime,a.print&&(v=a.print),a.printErr&&(g=a.printErr),a.wasmBinary&&(h=a.wasmBinary),a.arguments&&a.arguments,a.thisProgram&&(c=a.thisProgram),a.preInit)for("function"==typeof a.preInit&&(a.preInit=[a.preInit]);a.preInit.length>0;)a.preInit.shift()();function Ze(t){De=t.Ba,Me=a._free=t.Ca,Fe=a._malloc=t.Ea,je=t.Fa,Be=t.Ga,ke=t.Ha,Ue=t.Ia,We=t.Ja,Le=t.Ka,Ve=t.La,ze=t.Ma,kt.viijii=t.Na,Ge=kt.iiijj=t.Oa,kt.jiji=t.Pa,He=kt.jiiii=t.Qa,kt.iiiiij=t.Ra,kt.iiiiijj=t.Sa,kt.iiiiiijj=t.Ta,Ne=t.za,Qe=t.Da}var Je={s:t=>{var e=new Q(t);return e.get_caught()||(e.set_caught(!0),H--),e.set_rethrown(!1),G.push(e),je(t)},x:()=>{Be(0,0);var t=G.pop();Le(t.excPtr),N=0},a:()=>X([]),i:t=>X([t]),m:(t,e)=>X([t,e]),Q:()=>{var t=G.pop();t||E("no exception to throw");var e=t.excPtr;throw t.get_rethrown()||(G.push(t),t.set_rethrown(!0),t.set_caught(!1),H++),Ve(e),N=e},q:(t,e,r)=>{throw new Q(t).init(e,r),Ve(t),H++,N=t},fa:()=>H,d:t=>{throw N||(N=t),N},ba:()=>E(""),wa:t=>{var e=Z[t];delete Z[t];var r=e.rawConstructor,n=e.rawDestructor,a=e.fields,o=a.map(t=>t.getterReturnType).concat(a.map(t=>t.setterArgumentType));at([t],o,t=>{var o={};{let e=a;for(let r=0;r<e.length;++r){let n=e[r],i=t[r],s=n.getter,l=n.getterContext,u=t[r+a.length],c=n.setter,d=n.setterContext;o[n.fieldName]={read:t=>i.fromWireType(s(l,t)),write:(t,e)=>{var r=[];c(d,t,u.toWireType(r,e)),J(r)},optional:i.optional}}}return[{name:e.name,fromWireType:t=>{var e={};for(var r in o)e[r]=o[r].read(t);return n(t),e},toWireType:(t,e)=>{for(var a in o)if(!(a in e)&&!o[a].optional)throw TypeError(`Missing field: "${a}"`);var i=r();for(a in o)o[a].write(i,e[a]);return null!==t&&t.push(n,i),i},readValueFromPointer:Y,destructorFunction:n}]})},aa:(t,e,r,n,a)=>{},qa:(t,e,r,n)=>{ut(t,{name:e=ot(e),fromWireType:function(t){return!!t},toWireType:function(t,e){return e?r:n},readValueFromPointer:function(t){return this.fromWireType(j[t])},destructorFunction:null})},ua:(t,e,r,n,a,o,i,s,l,u,c,d,f)=>{c=ot(c),o=Gt(a,o),s&&(s=Gt(i,s)),u&&(u=Gt(l,u)),f=Gt(d,f);var h=Tt(c);$t(h,function(){Qt(`Cannot construct ${c} due to unbound types`,[n])}),at([t,e,r],n?[n]:[],e=>{var r,a;e=e[0],n?a=(r=e.registeredClass).instancePrototype:a=gt.prototype;var i=wt(c,function(){if(Object.getPrototypeOf(this)!==l)throw new it(`Use 'new' to construct ${c}`);if(void 0===p.constructor_body)throw new it(`${c} has no accessible constructor`);var t=[...arguments],e=p.constructor_body[t.length];if(void 0===e)throw new it(`Tried to invoke ctor of ${c} with invalid number of parameters (${t.length}) - expected (${Object.keys(p.constructor_body).toString()}) parameters instead!`);return e.apply(this,t)}),l=Object.create(a,{constructor:{value:i}});i.prototype=l;var d,p=new Et(c,i,l,f,r,o,s,u);p.baseClass&&(null!=(d=p.baseClass).__derivedClasses||(d.__derivedClasses=[]),p.baseClass.__derivedClasses.push(p));var y=new jt(c,p,!0,!1,!1),m=new jt(c+"*",p,!1,!1,!1),v=new jt(c+" const*",p,!1,!0,!1);return bt[t]={pointerType:m,constPointerType:v},Bt(h,i),[y,m,v]})},ta:(t,e,r,n,a,o)=>{var i=qt(e,r);a=Gt(n,a),at([],[t],t=>{var r=`constructor ${(t=t[0]).name}`;if(void 0===t.registeredClass.constructor_body&&(t.registeredClass.constructor_body=[]),void 0!==t.registeredClass.constructor_body[e-1])throw new it(`Cannot register multiple constructors with identical number of parameters (${e-1}) for class '${t.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return t.registeredClass.constructor_body[e-1]=()=>{Qt(`Cannot construct ${t.name} due to unbound types`,i)},at([],i,n=>(n.splice(1,0,null),t.registeredClass.constructor_body[e-1]=Zt(r,n,null,a,o),[])),[]})},F:(t,e,r,n,a,o,i,s,l,u)=>{var c=qt(r,n);e=ot(e),e=Jt(e),o=Gt(a,o,l),at([],[t],t=>{var n=`${(t=t[0]).name}.${e}`;function a(){Qt(`Cannot call ${n} due to unbound types`,c)}e.startsWith("@@")&&(e=Symbol[e.substring(2)]),s&&t.registeredClass.pureVirtualFunctions.push(e);var l=t.registeredClass.instancePrototype,u=l[e];return void 0===u||void 0===u.overloadTable&&u.className!==t.name&&u.argCount===r-2?(a.argCount=r-2,a.className=t.name,l[e]=a):(Ct(l,e,n),l[e].overloadTable[r-2]=a),at([],c,a=>{var s=Zt(n,a,t,o,i);return void 0===l[e].overloadTable?(s.argCount=r-2,l[e]=s):l[e].overloadTable[r-2]=s,[]}),[]})},oa:t=>ut(t,re),X:(t,e,r)=>{ut(t,{name:e=ot(e),fromWireType:t=>t,toWireType:(t,e)=>e,readValueFromPointer:ne(e,r),destructorFunction:null})},Y:(t,e,r,n,a,o,i,s)=>{var l=qt(e,r);t=ot(t),t=Jt(t),a=Gt(n,a,i),$t(t,function(){Qt(`Cannot call ${t} due to unbound types`,l)},e-1),at([],l,r=>{var n=[r[0],null].concat(r.slice(1));return Bt(t,Zt(t,n,null,a,o),e-1),[]})},A:(t,e,r,n,a)=>{e=ot(e);let o=t=>t;if(0===n){var i=32-8*r;o=t=>t<<i>>>i,a=o(a)}ut(t,{name:e,fromWireType:o,toWireType:(t,e)=>e,readValueFromPointer:ae(e,r,0!==n),destructorFunction:null})},sa:(t,e,r,n)=>{r=ot(r),n=ot(n),at([],[t,e],t=>{let e=t[0];return oe(e.registeredClass.instancePrototype,r,n),[]})},t:(t,e,r)=>{var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][e];function a(t){var e=F[t>>2],r=F[t+4>>2];return new n(I.buffer,r,e)}ut(t,{name:r=ot(r),fromWireType:a,readValueFromPointer:a},{ignoreDuplicateRegistrations:!0})},va:(t,e)=>{ut(t,ie)},pa:(t,e)=>{ut(t,{name:e=ot(e),fromWireType(t){var e,r=F[t>>2];return e=he(t+4,r,!0),Me(t),e},toWireType(t,e){e instanceof ArrayBuffer&&(e=new Uint8Array(e));var r,n="string"==typeof e;n||ArrayBuffer.isView(e)&&1==e.BYTES_PER_ELEMENT||st("Cannot pass non-string to std::string"),r=n?ue(e):e.length;var a=Fe(4+r+1),o=a+4;return F[a>>2]=r,n?le(e,o,r+1):j.set(e,o),null!==t&&t.push(Me,a),a},readValueFromPointer:Y,destructorFunction(t){Me(t)}})},S:(t,e,r)=>{var n,a,o;r=ot(r),2===e?(n=ye,a=me,o=ve):(n=ge,a=we,o=be),ut(t,{name:r,fromWireType:t=>{var r=F[t>>2],a=n(t+4,r*e,!0);return Me(t),a},toWireType:(t,n)=>{"string"!=typeof n&&st(`Cannot pass non-string to C++ string type ${r}`);var i=o(n),s=Fe(4+i+e);return F[s>>2]=i/e,a(n,s+4,i+e),null!==t&&t.push(Me,s),s},readValueFromPointer:Y,destructorFunction(t){Me(t)}})},G:(t,e,r,n,a,o)=>{Z[t]={name:ot(e),rawConstructor:Gt(r,n),rawDestructor:Gt(a,o),fields:[]}},xa:(t,e,r,n,a,o,i,s,l,u)=>{Z[t].fields.push({fieldName:ot(e),getterReturnType:r,getter:Gt(n,a),getterContext:o,setterArgumentType:i,setter:Gt(s,l),setterContext:u})},ra:(t,e)=>{ut(t,{isVoid:!0,name:e=ot(e),fromWireType:()=>{},toWireType:(t,e)=>{}})},N:(t,e,r)=>{var[n,...a]=Ee(t,e),o=n.toWireType.bind(n),i=a.map(t=>t.readValueFromPointer.bind(t));t--;var s=Array(t);return $e(wt(`methodCaller<(${a.map(t=>t.name)}) => ${n.name}>`,(e,n,a,l)=>{for(var u=0,c=0;c<t;++c)s[c]=i[c](l+u),u+=8;var d;switch(r){case 0:d=ee.toValue(e).apply(null,s);break;case 2:d=Reflect.construct(ee.toValue(e),s);break;case 3:d=s[0];break;case 1:d=ee.toValue(e)[_e(n)](...s)}return Pe(o,a,d)}))},ya:te,C:t=>t?(t=_e(t),ee.toHandle(globalThis[t])):ee.toHandle(globalThis),T:t=>{t>9&&(Kt[t+1]+=1)},M:(t,e,r,n,a)=>Ce[t](e,r,n,a),ka:t=>{J(ee.toValue(t)),te(t)},ca:(t,e,r,n)=>{var a=(new Date).getFullYear(),o=new Date(a,0,1),i=new Date(a,6,1),s=o.getTimezoneOffset(),l=i.getTimezoneOffset(),u=Math.max(s,l);F[t>>2]=60*u,x[e>>2]=Number(s!=l);var c=t=>{var e=t>=0?"-":"+",r=Math.abs(t);return`UTC${e}${String(Math.floor(r/60)).padStart(2,"0")}${String(r%60).padStart(2,"0")}`},d=c(s),f=c(l);l<s?(le(d,r,17),le(f,n,17)):(le(d,n,17),le(f,r,17))},ga:t=>{var e=j.length,r=2147483648;if((t>>>=0)>r)return!1;for(var n=1;n<=4;n*=2){var a=e*(1+.2/n);if(a=Math.min(a,t+100663296),Se(Math.min(r,Ae(Math.max(t,a),65536))))return!0}return!1},da:(t,e)=>{var r=0,n=0;for(var a of Ie()){var o=e+r;F[t+n>>2]=o,r+=le(a,o,1/0)+1,n+=4}return 0},ea:(t,e)=>{var r=Ie();F[t>>2]=r.length;var n=0;for(var a of r)n+=ue(a)+1;return F[e>>2]=n,0},ha:t=>52,_:function(t,e,r,n,a){return Re(e,r),70},V:(t,e,r,n)=>{for(var a=0,o=0;o<r;o++){var i=F[e>>2],s=F[e+4>>2];e+=8;for(var l=0;l<s;l++)Xe(t,j[i+l]);a+=s}return F[n>>2]=a,0},ma:function(t,e,r){var n=z();try{return Lt(t)(e,r)}catch(t){if(V(n),t!==t+0)throw t;Be(1,0)}},K:function(t,e,r,n){var a=z();try{return Lt(t)(e,r,n)}catch(t){if(V(a),t!==t+0)throw t;Be(1,0)}},B:function(t,e,r,n,a,o){var i=z();try{return Lt(t)(e,r,n,a,o)}catch(t){if(V(i),t!==t+0)throw t;Be(1,0)}},O:function(t,e,r,n,a,o){var i=z();try{return Lt(t)(e,r,n,a,o)}catch(t){if(V(i),t!==t+0)throw t;Be(1,0)}},U:function(t,e,r,n){var a=z();try{return Lt(t)(e,r,n)}catch(t){if(V(a),t!==t+0)throw t;Be(1,0)}},p:function(t){var e=z();try{return Lt(t)()}catch(t){if(V(e),t!==t+0)throw t;Be(1,0)}},b:function(t,e){var r=z();try{return Lt(t)(e)}catch(t){if(V(r),t!==t+0)throw t;Be(1,0)}},D:function(t,e,r,n){var a=z();try{return Lt(t)(e,r,n)}catch(t){if(V(a),t!==t+0)throw t;Be(1,0)}},ja:function(t,e,r){var n=z();try{return Lt(t)(e,r)}catch(t){if(V(n),t!==t+0)throw t;Be(1,0)}},c:function(t,e,r){var n=z();try{return Lt(t)(e,r)}catch(t){if(V(n),t!==t+0)throw t;Be(1,0)}},ia:function(t,e,r,n,a){var o=z();try{return Lt(t)(e,r,n,a)}catch(t){if(V(o),t!==t+0)throw t;Be(1,0)}},h:function(t,e,r,n){var a=z();try{return Lt(t)(e,r,n)}catch(t){if(V(a),t!==t+0)throw t;Be(1,0)}},j:function(t,e,r,n,a){var o=z();try{return Lt(t)(e,r,n,a)}catch(t){if(V(o),t!==t+0)throw t;Be(1,0)}},r:function(t,e,r,n,a,o){var i=z();try{return Lt(t)(e,r,n,a,o)}catch(t){if(V(i),t!==t+0)throw t;Be(1,0)}},P:function(t,e,r,n,a,o,i){var s=z();try{return Lt(t)(e,r,n,a,o,i)}catch(t){if(V(s),t!==t+0)throw t;Be(1,0)}},w:function(t,e,r,n,a,o,i){var s=z();try{return Lt(t)(e,r,n,a,o,i)}catch(t){if(V(s),t!==t+0)throw t;Be(1,0)}},E:function(t,e,r,n,a,o,i,s){var l=z();try{return Lt(t)(e,r,n,a,o,i,s)}catch(t){if(V(l),t!==t+0)throw t;Be(1,0)}},L:function(t,e,r,n,a,o,i,s,l){var u=z();try{return Lt(t)(e,r,n,a,o,i,s,l)}catch(t){if(V(u),t!==t+0)throw t;Be(1,0)}},I:function(t,e,r,n,a,o,i,s,l,u,c,d){var f=z();try{return Lt(t)(e,r,n,a,o,i,s,l,u,c,d)}catch(t){if(V(f),t!==t+0)throw t;Be(1,0)}},$:function(t,e,r,n,a,o,i){var s=z();try{return Ge(t,e,r,n,a,o,i)}catch(t){if(V(s),t!==t+0)throw t;Be(1,0)}},Z:function(t,e,r,n,a){var o=z();try{return He(t,e,r,n,a)}catch(t){if(V(o),t!==t+0)throw t;Be(1,0)}},f:function(t){var e=z();try{Lt(t)()}catch(t){if(V(e),t!==t+0)throw t;Be(1,0)}},l:function(t,e){var r=z();try{Lt(t)(e)}catch(t){if(V(r),t!==t+0)throw t;Be(1,0)}},e:function(t,e,r){var n=z();try{Lt(t)(e,r)}catch(t){if(V(n),t!==t+0)throw t;Be(1,0)}},W:function(t,e,r,n,a,o,i,s,l){var u=z();try{Lt(t)(e,r,n,a,o,i,s,l)}catch(t){if(V(u),t!==t+0)throw t;Be(1,0)}},g:function(t,e,r,n){var a=z();try{Lt(t)(e,r,n)}catch(t){if(V(a),t!==t+0)throw t;Be(1,0)}},J:function(t,e,r,n,a,o,i){var s=z();try{Lt(t)(e,r,n,a,o,i)}catch(t){if(V(s),t!==t+0)throw t;Be(1,0)}},k:function(t,e,r,n,a){var o=z();try{Lt(t)(e,r,n,a)}catch(t){if(V(o),t!==t+0)throw t;Be(1,0)}},la:function(t,e,r,n,a,o,i,s){var l=z();try{Lt(t)(e,r,n,a,o,i,s)}catch(t){if(V(l),t!==t+0)throw t;Be(1,0)}},o:function(t,e,r,n,a,o){var i=z();try{Lt(t)(e,r,n,a,o)}catch(t){if(V(i),t!==t+0)throw t;Be(1,0)}},y:function(t,e,r,n,a,o,i){var s=z();try{Lt(t)(e,r,n,a,o,i)}catch(t){if(V(s),t!==t+0)throw t;Be(1,0)}},u:function(t,e,r,n,a,o,i,s){var l=z();try{Lt(t)(e,r,n,a,o,i,s)}catch(t){if(V(l),t!==t+0)throw t;Be(1,0)}},R:function(t,e,r,n,a,o,i,s,l){var u=z();try{Lt(t)(e,r,n,a,o,i,s,l)}catch(t){if(V(u),t!==t+0)throw t;Be(1,0)}},v:function(t,e,r,n,a,o,i,s,l,u){var c=z();try{Lt(t)(e,r,n,a,o,i,s,l,u)}catch(t){if(V(c),t!==t+0)throw t;Be(1,0)}},n:function(t,e,r,n,a,o,i,s,l,u,c){var d=z();try{Lt(t)(e,r,n,a,o,i,s,l,u,c)}catch(t){if(V(d),t!==t+0)throw t;Be(1,0)}},H:function(t,e,r,n,a,o,i,s,l,u,c,d,f,h,p,y){var m=z();try{Lt(t)(e,r,n,a,o,i,s,l,u,c,d,f,h,p,y)}catch(t){if(V(m),t!==t+0)throw t;Be(1,0)}},na:function(t,e,r,n,a,o,i,s,l,u,c,d,f,h,p,y,m){var v=z();try{Lt(t)(e,r,n,a,o,i,s,l,u,c,d,f,h,p,y,m)}catch(t){if(V(v),t!==t+0)throw t;Be(1,0)}},z:t=>t};var Ye=await(async function(){function t(t,e){return Ze(Ye=t.exports),C(),Ye}var e={a:Je};return a.instantiateWasm?new Promise((r,n)=>{a.instantiateWasm(e,(e,n)=>{r(t(e))})}):(null!=m||(m=f("zxing_reader.wasm")),(function(e){return t(e.instance)})(await A(h,m,e)))})();return(function(){function t(){var t,e;a.calledRun=!0,!w&&(b=!0,Ye.Aa(),null==(t=p)||t(a),null==(e=a.onRuntimeInitialized)||e.call(a),T())}$(),a.setStatus?(a.setStatus("Running..."),setTimeout(()=>{setTimeout(()=>a.setStatus(""),1),t()},1)):t()})(),e=b?a:new Promise((t,e)=>{p=t,y=e}),e}function _(t){return $(O,t)}function A(){return T(O)}function S(t){_({overrides:t,equalityFn:Object.is,fireImmediately:!1})}async function x(t,e){return P(O,t,e)}Object.assign({},p),Object.assign({},{format:"QRCode",readerInit:!1,forceSquareDataMatrix:!1,ecLevel:"",scale:1,sizeHint:0,rotate:0,invert:!1,withHRT:!1,withQuietZones:!0,addHRT:!1,addQuietZones:!0,options:""});var I="98106d24a9bc2c4a24a6e6864e0f5729bd68cf73d6f5b45bb1c824521146370c",R=[["aztec","Aztec"],["aztec_code","AztecCode"],["aztec_rune","AztecRune"],["code_128","Code128"],["code_39","Code39"],["code_39_standard","Code39Std"],["code_39_extended","Code39Ext"],["code_32","Code32"],["pzn","PZN"],["code_93","Code93"],["codabar","Codabar"],["databar","DataBar"],["databar_omni","DataBarOmni"],["databar_stacked","DataBarStk"],["databar_stacked_omni","DataBarStkOmni"],["databar_expanded","DataBarExp"],["databar_expanded_stacked","DataBarExpStk"],["databar_limited","DataBarLtd"],["data_matrix","DataMatrix"],["dx_film_edge","DXFilmEdge"],["ean_13","EAN13"],["ean_upc","EANUPC"],["isbn","ISBN"],["ean_8","EAN8"],["itf","ITF"],["itf_14","ITF14"],["maxi_code","MaxiCode"],["micro_qr_code","MicroQRCode"],["pdf417","PDF417"],["compact_pdf417","CompactPDF417"],["qr_code","QRCode"],["qr_code_model_1","QRCodeModel1"],["qr_code_model_2","QRCodeModel2"],["rm_qr_code","RMQRCode"],["upc_a","UPCA"],["upc_e","UPCE"],["other_barcode","OtherBarcode"],["linear_codes","AllLinear"],["matrix_codes","AllMatrix"],["gs1_codes","AllGS1"],["retail_codes","AllRetail"],["industrial_codes","AllIndustrial"],["any","All"]],D=[...R,["unknown"]].map(t=>t[0]),M=new Map(R);function F(t){for(let[e,r]of M)if(t===r)return e;return"unknown"}function j(t){if(B(t))return{width:t.naturalWidth,height:t.naturalHeight};if(k(t))return{width:t.width.baseVal.value,height:t.height.baseVal.value};if(U(t))return{width:t.videoWidth,height:t.videoHeight};if(L(t))return{width:t.width,height:t.height};if(z(t))return{width:t.displayWidth,height:t.displayHeight};if(W(t)||V(t))return{width:t.width,height:t.height};throw TypeError("The provided value is not of type '(Blob or HTMLCanvasElement or HTMLImageElement or HTMLVideoElement or ImageBitmap or ImageData or OffscreenCanvas or SVGImageElement or VideoFrame)'.")}function B(t){try{var e;return t instanceof(null==t||null==(e=t.ownerDocument)||null==(e=e.defaultView)?void 0:e.HTMLImageElement)}catch{return!1}}function k(t){try{var e;return t instanceof(null==t||null==(e=t.ownerDocument)||null==(e=e.defaultView)?void 0:e.SVGImageElement)}catch{return!1}}function U(t){try{var e;return t instanceof(null==t||null==(e=t.ownerDocument)||null==(e=e.defaultView)?void 0:e.HTMLVideoElement)}catch{return!1}}function W(t){try{var e;return t instanceof(null==t||null==(e=t.ownerDocument)||null==(e=e.defaultView)?void 0:e.HTMLCanvasElement)}catch{return!1}}function L(t){try{return t instanceof ImageBitmap||"[object ImageBitmap]"===Object.prototype.toString.call(t)}catch{return!1}}function V(t){try{return t instanceof OffscreenCanvas||"[object OffscreenCanvas]"===Object.prototype.toString.call(t)}catch{return!1}}function z(t){try{return t instanceof VideoFrame||"[object VideoFrame]"===Object.prototype.toString.call(t)}catch{return!1}}function G(t){try{return t instanceof Blob||"[object Blob]"===Object.prototype.toString.call(t)}catch{return!1}}function H(t){try{return t instanceof ImageData||"[object ImageData]"===Object.prototype.toString.call(t)}catch{return!1}}function N(t,e){try{let r=new OffscreenCanvas(t,e);if(r.getContext("2d")instanceof OffscreenCanvasRenderingContext2D)return r;throw void 0}catch{let r=document.createElement("canvas");return r.width=t,r.height=e,r}}async function Q(t){if(B(t)&&!await J(t))throw new DOMException("Failed to load or decode HTMLImageElement.","InvalidStateError");if(k(t)&&!await Y(t))throw new DOMException("Failed to load or decode SVGImageElement.","InvalidStateError");if(z(t)&&K(t))throw new DOMException("VideoFrame is closed.","InvalidStateError");if(U(t)&&(0===t.readyState||1===t.readyState))throw new DOMException("Invalid element or state.","InvalidStateError");if(L(t)&&et(t))throw new DOMException("The image source is detached.","InvalidStateError");let{width:e,height:r}=j(t);if(0===e||0===r)return null;let n=N(e,r).getContext("2d");n.drawImage(t,0,0);try{return n.getImageData(0,0,e,r)}catch{throw new DOMException("Source would taint origin.","SecurityError")}}async function q(t){let e;try{e=await createImageBitmap(t)}catch{try{if(!globalThis.Image)return t;{e=new Image;let r="";try{r=URL.createObjectURL(t),e.src=r,await e.decode()}finally{URL.revokeObjectURL(r)}}}catch{throw new DOMException("Failed to load or decode Blob.","InvalidStateError")}}return await Q(e)}function X(t){let{width:e,height:r}=t;if(0===e||0===r)return null;let n=t.getContext("2d");try{return n.getImageData(0,0,e,r)}catch{throw new DOMException("Source would taint origin.","SecurityError")}}async function Z(t){if(G(t))return await q(t);if(H(t)){if(tt(t))throw new DOMException("The image data has been detached.","InvalidStateError");return t}return W(t)||V(t)?X(t):await Q(t)}async function J(t){try{return await t.decode(),!0}catch{return!1}}async function Y(t){try{var e;return await(null==(e=t.decode)?void 0:e.call(t)),!0}catch{return!1}}function K(t){return null===t.format}function tt(t){return 0===t.data.buffer.byteLength}function et(t){return 0===t.width&&0===t.height}function rt(t,e){return nt(t)?new DOMException(`${e}: ${t.message}`,t.name):at(t)?new t.constructor(`${e}: ${t.message}`):Error(`${e}: ${t}`)}function nt(t){return t instanceof DOMException||"[object DOMException]"===Object.prototype.toString.call(t)}function at(t){return t instanceof Error||"[object Error]"===Object.prototype.toString.call(t)}function ot(t,e){if(e.has(t))throw TypeError("Cannot initialize the same private elements twice on an object")}function it(t,e,r){ot(t,e),e.set(t,r)}function st(t,e,r){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:r;throw TypeError("Private element is not present on this object")}function lt(t,e,r){return t.set(st(t,e),r),r}function ut(t,e){return t.get(st(t,e))}var ct=new WeakMap,dt=class{constructor(t={}){it(this,ct,void 0);try{var e;let r=null==t||null==(e=t.formats)?void 0:e.filter(t=>"unknown"!==t);if(0===(null==r?void 0:r.length))throw TypeError("Hint option provided, but is empty.");for(let t of null==r?[]:r)if(!M.has(t))throw TypeError(`Failed to read the 'formats' property from 'BarcodeDetectorOptions': The provided value '${t}' is not a valid enum value of type BarcodeFormat.`);lt(ct,this,null==r?[]:r),_({fireImmediately:!0}).catch(()=>{})}catch(t){throw rt(t,"Failed to construct 'BarcodeDetector'")}}static async getSupportedFormats(){return D.filter(t=>"unknown"!==t)}async detect(t){try{let e=await Z(t);if(null===e)return[];let r,n={textMode:"Plain",formats:ut(ct,this).map(t=>M.get(t))};try{r=await x(e,n)}catch(t){throw console.error(t),new DOMException("Barcode detection service unavailable.","NotSupportedError")}return r.map(t=>{let{topLeft:{x:e,y:r},topRight:{x:n,y:a},bottomLeft:{x:o,y:i},bottomRight:{x:s,y:l}}=t.position,u=Math.min(e,n,o,s),c=Math.min(r,a,i,l),d=Math.max(e,n,o,s),f=Math.max(r,a,i,l);return{boundingBox:new DOMRectReadOnly(u,c,d-u,f-c),rawValue:t.text,format:F(t.format),cornerPoints:[{x:e,y:r},{x:n,y:a},{x:s,y:l},{x:o,y:i}]}})}catch(t){throw rt(t,"Failed to execute 'detect' on 'BarcodeDetector'")}}}},5120,[]);
3
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"ZXING_CPP_COMMIT",{enumerable:!0,get:function(){return n.s}}),Object.defineProperty(e,"ZXING_WASM_SHA256",{enumerable:!0,get:function(){return n.i}}),Object.defineProperty(e,"ZXING_WASM_VERSION",{enumerable:!0,get:function(){return n.o}}),Object.defineProperty(e,"prepareZXingModule",{enumerable:!0,get:function(){return n.r}}),Object.defineProperty(e,"purgeZXingModule",{enumerable:!0,get:function(){return n.a}}),Object.defineProperty(e,"setZXingModuleOverrides",{enumerable:!0,get:function(){return n.n}});var t,n=r(d[0]);null!=(t=globalThis).BarcodeDetector||(t.BarcodeDetector=n.t)},5121,[5120]);
4
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"BarcodeDetector",{enumerable:!0,get:function(){return t.t}}),Object.defineProperty(e,"ZXING_CPP_COMMIT",{enumerable:!0,get:function(){return t.s}}),Object.defineProperty(e,"ZXING_WASM_SHA256",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(e,"ZXING_WASM_VERSION",{enumerable:!0,get:function(){return t.o}}),Object.defineProperty(e,"prepareZXingModule",{enumerable:!0,get:function(){return t.r}}),Object.defineProperty(e,"purgeZXingModule",{enumerable:!0,get:function(){return t.a}}),Object.defineProperty(e,"setZXingModuleOverrides",{enumerable:!0,get:function(){return t.n}});var t=r(d[0])},5122,[5120]);
@@ -1,37 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta httpEquiv="X-UA-Compatible" content="IE=edge" />
6
- <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
7
- <title>Flipova Studio</title>
8
- <!-- The `react-native-web` recommended style reset: https://necolas.github.io/react-native-web/docs/setup/#root-element -->
9
- <style id="expo-reset">
10
- /* These styles make the body full-height */
11
- html,
12
- body {
13
- height: 100%;
14
- }
15
- /* These styles disable body scrolling if you are using <ScrollView> */
16
- body {
17
- overflow: hidden;
18
- }
19
- /* These styles make the root element full-height */
20
- #root {
21
- display: flex;
22
- height: 100%;
23
- flex: 1;
24
- }
25
- </style>
26
- </head>
27
-
28
- <body>
29
- <!-- Use static rendering with Expo Router to support running without JavaScript. -->
30
- <noscript>
31
- You need to enable JavaScript to run this app.
32
- </noscript>
33
- <!-- The root element for your Expo app. -->
34
- <div id="root"></div>
35
- <script src="/_expo/static/js/web/entry-77f601f6b9353e7b6e3b18cdbe63ac99.js" defer></script>
36
- </body>
37
- </html>
@@ -1 +0,0 @@
1
- {"version":0,"bundler":"metro","fileMetadata":{}}