randome-games commited on
Commit
dbcdc7c
·
0 Parent(s):

fresh deploy with fixes

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .dockerignore +6 -0
  2. .env +2 -0
  3. .gitattributes +3 -0
  4. .github/FUNDING.yml +1 -0
  5. .github/workflows/docker-image.yml +54 -0
  6. .gitignore +30 -0
  7. .prettierrc +13 -0
  8. Checkfailed.html +43 -0
  9. Dockerfile +47 -0
  10. LICENSE +661 -0
  11. README.md +250 -0
  12. copy.env +14 -0
  13. dist/BRwJe-3z.js +2 -0
  14. dist/assets/BEVGhU8i.css +1 -0
  15. dist/assets/BuigefS6.css +1 -0
  16. dist/assets/CPidMX-2.css +1 -0
  17. dist/assets/LUKF6wGO.css +1 -0
  18. dist/baremod/BareTypes.d.ts +43 -0
  19. dist/baremod/Client.d.ts +29 -0
  20. dist/baremod/V3.d.ts +15 -0
  21. dist/baremod/index.d.ts +2 -0
  22. dist/baremod/index.js +541 -0
  23. dist/baremod/index.js.map +1 -0
  24. dist/baremod/index.mjs +530 -0
  25. dist/baremod/index.mjs.map +1 -0
  26. dist/baremod/md5.d.ts +11 -0
  27. dist/baremod/remoteUtil.d.ts +9 -0
  28. dist/baremod/snapshot.d.ts +38 -0
  29. dist/baremod/splitHeaderUtil.d.ts +13 -0
  30. dist/baremod/webSocket.d.ts +1 -0
  31. dist/baremux/baretypes.d.ts +22 -0
  32. dist/baremux/client.d.ts +35 -0
  33. dist/baremux/connection.d.ts +42 -0
  34. dist/baremux/index.d.ts +10 -0
  35. dist/baremux/index.js +2 -0
  36. dist/baremux/index.js.map +1 -0
  37. dist/baremux/index.mjs +2 -0
  38. dist/baremux/index.mjs.map +1 -0
  39. dist/baremux/snapshot.d.ts +28 -0
  40. dist/baremux/websocket.d.ts +11 -0
  41. dist/baremux/worker.d.ts +1 -0
  42. dist/baremux/worker.js +2 -0
  43. dist/baremux/worker.js.map +1 -0
  44. dist/baremux/workerHandlers.d.ts +5 -0
  45. dist/chunks/Apps.D-KJr-8K.js +2 -0
  46. dist/chunks/Apps2.D28fohTr.js +2 -0
  47. dist/chunks/Home.BJzwmpo-.js +2 -0
  48. dist/chunks/Nav.BP8Isd6k.js +1 -0
  49. dist/chunks/Player.DqC_tdPp.js +1 -0
  50. dist/chunks/Settings.vTVUOmcD.js +2 -0
.dockerignore ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ node_modules
2
+ dist
3
+ .git
4
+ .github
5
+ *.log
6
+ .env
.env ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ PORT=7860
2
+ BARE=false
.gitattributes ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ *.wasm filter=lfs diff=lfs merge=lfs -text
2
+ *.js filter=lfs diff=lfs merge=lfs -text
3
+ *.css filter=lfs diff=lfs merge=lfs -text
.github/FUNDING.yml ADDED
@@ -0,0 +1 @@
 
 
1
+ ko_fi: I3I81MF4CH
.github/workflows/docker-image.yml ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Build & Push Docker image (GHCR)
2
+
3
+ on:
4
+ push:
5
+ branches: ["main"]
6
+ workflow_dispatch:
7
+
8
+ permissions:
9
+ contents: read
10
+ packages: write
11
+
12
+ jobs:
13
+ build:
14
+ runs-on: ubuntu-latest
15
+ steps:
16
+ - name: Checkout
17
+ uses: actions/checkout@v4
18
+
19
+ - name: Set up QEMU (optional, for multi-arch)
20
+ uses: docker/setup-qemu-action@v3
21
+
22
+ - name: Set up Docker Buildx
23
+ uses: docker/setup-buildx-action@v3
24
+
25
+ - name: Login to GHCR
26
+ uses: docker/login-action@v3
27
+ with:
28
+ registry: ghcr.io
29
+ username: ${{ github.actor }}
30
+ password: ${{ secrets.GITHUB_TOKEN }}
31
+
32
+ - name: Extract Docker metadata
33
+ id: meta
34
+ uses: docker/metadata-action@v5
35
+ with:
36
+ images: ghcr.io/${{ github.repository }}
37
+ tags: |
38
+ type=raw,value=latest
39
+ type=sha
40
+
41
+ - name: Build and push
42
+ uses: docker/build-push-action@v6
43
+ with:
44
+ context: .
45
+ file: ./Dockerfile
46
+ push: true
47
+ tags: ${{ steps.meta.outputs.tags }}
48
+ labels: ${{ steps.meta.outputs.labels }}
49
+ cache-from: type=gha
50
+ cache-to: type=gha,mode=max
51
+ # If you only need one architecture, keep it simple:
52
+ platforms: linux/amd64
53
+ # If your server is ARM (e.g., Raspberry Pi), use:
54
+ # platforms: linux/amd64,linux/arm64
.gitignore ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Logs
2
+ logs
3
+ *.log
4
+ npm-debug.log*
5
+ yarn-debug.log*
6
+ yarn-error.log*
7
+ pnpm-debug.log*
8
+ lerna-debug.log*
9
+
10
+ node_modules
11
+ dist
12
+ dist-ssr
13
+ *.local
14
+
15
+ # fowntain's Python dev utils
16
+ tools
17
+
18
+ # Editor directories and files
19
+ .vscode/*
20
+ !.vscode/extensions.json
21
+ .idea
22
+ .DS_Store
23
+ *.suo
24
+ *.ntvs*
25
+ *.njsproj
26
+ *.sln
27
+ *.sw?
28
+
29
+ .env
30
+ package-lock.json
.prettierrc ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "printWidth": 100,
3
+ "tabWidth": 2,
4
+ "useTabs": false,
5
+ "semi": true,
6
+ "singleQuote": true,
7
+ "trailingComma": "all",
8
+ "bracketSpacing": true,
9
+ "bracketSameLine": false,
10
+ "arrowParens": "always",
11
+ "endOfLine": "auto",
12
+ "embeddedLanguageFormatting": "auto"
13
+ }
Checkfailed.html ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!doctype html>
2
+ <html lang="en" thinksproutedu-theme="auto">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Access Denied</title>
7
+ <style>
8
+ body {
9
+ margin: 0;
10
+ display: flex;
11
+ align-items: center;
12
+ justify-content: center;
13
+ height: 100vh;
14
+ font-family: sans-serif;
15
+ background: #e1e3e6;
16
+ color: #1f2937;
17
+ text-align: center;
18
+ }
19
+ a button {
20
+ background: #2563eb;
21
+ color: white;
22
+ padding: 0.5rem 1rem;
23
+ border: none;
24
+ cursor: pointer;
25
+ }
26
+ a button:hover { background: #1d4ed8; }
27
+ </style>
28
+ </head>
29
+ <body>
30
+ <div>
31
+ <h1>Access Denied</h1>
32
+ <p>You don't have access to this website. Please stay on task.</p>
33
+ <a href="/" id="btn"><button>Refresh</button></a>
34
+ </div>
35
+
36
+ <script>
37
+ if(!localStorage.auth && new URL(document.all.btn.href).password){
38
+ localStorage.auth=1;
39
+ location.reload();
40
+ }
41
+ </script>
42
+ </body>
43
+ </html>
Dockerfile ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # syntax=docker/dockerfile:1.6
2
+
3
+ ########################
4
+ # 1) Build stage
5
+ ########################
6
+ # Use full Debian-based Node image for builds (has more tooling available)
7
+ FROM node:20-bookworm AS build
8
+ WORKDIR /app
9
+
10
+ # Install deps (cached layer)
11
+ COPY package*.json ./
12
+ RUN npm ci
13
+
14
+ # Copy source and build frontend
15
+ COPY . .
16
+ RUN npm run build
17
+
18
+ ########################
19
+ # 2) Runtime stage (Debian slim)
20
+ ########################
21
+ # Slim runtime image (Debian bookworm-slim variant)
22
+ FROM node:20-bookworm-slim AS runtime
23
+ WORKDIR /app
24
+
25
+ ENV NODE_ENV=production
26
+ # DogeUB documents PORT via env in copy.env
27
+ ENV PORT=3000
28
+
29
+ # Install only production deps
30
+ COPY package*.json ./
31
+ RUN npm ci --omit=dev && npm cache clean --force
32
+
33
+ # Copy only what runtime needs:
34
+ COPY --from=build /app/dist ./dist
35
+ COPY --from=build /app/public ./public
36
+ COPY --from=build /app/server.js ./server.js
37
+
38
+ # Optional files seen in repo root (safe to include)
39
+ COPY --from=build /app/masqr.js ./masqr.js
40
+ COPY --from=build /app/Checkfailed.html ./Checkfailed.html
41
+ COPY --from=build /app/placeholder.svg ./placeholder.svg
42
+
43
+ # Run as non-root (the official node image defines a 'node' user)
44
+ USER node
45
+
46
+ EXPOSE 3000
47
+ CMD ["node", "server.js"]
LICENSE ADDED
@@ -0,0 +1,661 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ GNU AFFERO GENERAL PUBLIC LICENSE
2
+ Version 3, 19 November 2007
3
+
4
+ Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
5
+ Everyone is permitted to copy and distribute verbatim copies
6
+ of this license document, but changing it is not allowed.
7
+
8
+ Preamble
9
+
10
+ The GNU Affero General Public License is a free, copyleft license for
11
+ software and other kinds of works, specifically designed to ensure
12
+ cooperation with the community in the case of network server software.
13
+
14
+ The licenses for most software and other practical works are designed
15
+ to take away your freedom to share and change the works. By contrast,
16
+ our General Public Licenses are intended to guarantee your freedom to
17
+ share and change all versions of a program--to make sure it remains free
18
+ software for all its users.
19
+
20
+ When we speak of free software, we are referring to freedom, not
21
+ price. Our General Public Licenses are designed to make sure that you
22
+ have the freedom to distribute copies of free software (and charge for
23
+ them if you wish), that you receive source code or can get it if you
24
+ want it, that you can change the software or use pieces of it in new
25
+ free programs, and that you know you can do these things.
26
+
27
+ Developers that use our General Public Licenses protect your rights
28
+ with two steps: (1) assert copyright on the software, and (2) offer
29
+ you this License which gives you legal permission to copy, distribute
30
+ and/or modify the software.
31
+
32
+ A secondary benefit of defending all users' freedom is that
33
+ improvements made in alternate versions of the program, if they
34
+ receive widespread use, become available for other developers to
35
+ incorporate. Many developers of free software are heartened and
36
+ encouraged by the resulting cooperation. However, in the case of
37
+ software used on network servers, this result may fail to come about.
38
+ The GNU General Public License permits making a modified version and
39
+ letting the public access it on a server without ever releasing its
40
+ source code to the public.
41
+
42
+ The GNU Affero General Public License is designed specifically to
43
+ ensure that, in such cases, the modified source code becomes available
44
+ to the community. It requires the operator of a network server to
45
+ provide the source code of the modified version running there to the
46
+ users of that server. Therefore, public use of a modified version, on
47
+ a publicly accessible server, gives the public access to the source
48
+ code of the modified version.
49
+
50
+ An older license, called the Affero General Public License and
51
+ published by Affero, was designed to accomplish similar goals. This is
52
+ a different license, not a version of the Affero GPL, but Affero has
53
+ released a new version of the Affero GPL which permits relicensing under
54
+ this license.
55
+
56
+ The precise terms and conditions for copying, distribution and
57
+ modification follow.
58
+
59
+ TERMS AND CONDITIONS
60
+
61
+ 0. Definitions.
62
+
63
+ "This License" refers to version 3 of the GNU Affero General Public License.
64
+
65
+ "Copyright" also means copyright-like laws that apply to other kinds of
66
+ works, such as semiconductor masks.
67
+
68
+ "The Program" refers to any copyrightable work licensed under this
69
+ License. Each licensee is addressed as "you". "Licensees" and
70
+ "recipients" may be individuals or organizations.
71
+
72
+ To "modify" a work means to copy from or adapt all or part of the work
73
+ in a fashion requiring copyright permission, other than the making of an
74
+ exact copy. The resulting work is called a "modified version" of the
75
+ earlier work or a work "based on" the earlier work.
76
+
77
+ A "covered work" means either the unmodified Program or a work based
78
+ on the Program.
79
+
80
+ To "propagate" a work means to do anything with it that, without
81
+ permission, would make you directly or secondarily liable for
82
+ infringement under applicable copyright law, except executing it on a
83
+ computer or modifying a private copy. Propagation includes copying,
84
+ distribution (with or without modification), making available to the
85
+ public, and in some countries other activities as well.
86
+
87
+ To "convey" a work means any kind of propagation that enables other
88
+ parties to make or receive copies. Mere interaction with a user through
89
+ a computer network, with no transfer of a copy, is not conveying.
90
+
91
+ An interactive user interface displays "Appropriate Legal Notices"
92
+ to the extent that it includes a convenient and prominently visible
93
+ feature that (1) displays an appropriate copyright notice, and (2)
94
+ tells the user that there is no warranty for the work (except to the
95
+ extent that warranties are provided), that licensees may convey the
96
+ work under this License, and how to view a copy of this License. If
97
+ the interface presents a list of user commands or options, such as a
98
+ menu, a prominent item in the list meets this criterion.
99
+
100
+ 1. Source Code.
101
+
102
+ The "source code" for a work means the preferred form of the work
103
+ for making modifications to it. "Object code" means any non-source
104
+ form of a work.
105
+
106
+ A "Standard Interface" means an interface that either is an official
107
+ standard defined by a recognized standards body, or, in the case of
108
+ interfaces specified for a particular programming language, one that
109
+ is widely used among developers working in that language.
110
+
111
+ The "System Libraries" of an executable work include anything, other
112
+ than the work as a whole, that (a) is included in the normal form of
113
+ packaging a Major Component, but which is not part of that Major
114
+ Component, and (b) serves only to enable use of the work with that
115
+ Major Component, or to implement a Standard Interface for which an
116
+ implementation is available to the public in source code form. A
117
+ "Major Component", in this context, means a major essential component
118
+ (kernel, window system, and so on) of the specific operating system
119
+ (if any) on which the executable work runs, or a compiler used to
120
+ produce the work, or an object code interpreter used to run it.
121
+
122
+ The "Corresponding Source" for a work in object code form means all
123
+ the source code needed to generate, install, and (for an executable
124
+ work) run the object code and to modify the work, including scripts to
125
+ control those activities. However, it does not include the work's
126
+ System Libraries, or general-purpose tools or generally available free
127
+ programs which are used unmodified in performing those activities but
128
+ which are not part of the work. For example, Corresponding Source
129
+ includes interface definition files associated with source files for
130
+ the work, and the source code for shared libraries and dynamically
131
+ linked subprograms that the work is specifically designed to require,
132
+ such as by intimate data communication or control flow between those
133
+ subprograms and other parts of the work.
134
+
135
+ The Corresponding Source need not include anything that users
136
+ can regenerate automatically from other parts of the Corresponding
137
+ Source.
138
+
139
+ The Corresponding Source for a work in source code form is that
140
+ same work.
141
+
142
+ 2. Basic Permissions.
143
+
144
+ All rights granted under this License are granted for the term of
145
+ copyright on the Program, and are irrevocable provided the stated
146
+ conditions are met. This License explicitly affirms your unlimited
147
+ permission to run the unmodified Program. The output from running a
148
+ covered work is covered by this License only if the output, given its
149
+ content, constitutes a covered work. This License acknowledges your
150
+ rights of fair use or other equivalent, as provided by copyright law.
151
+
152
+ You may make, run and propagate covered works that you do not
153
+ convey, without conditions so long as your license otherwise remains
154
+ in force. You may convey covered works to others for the sole purpose
155
+ of having them make modifications exclusively for you, or provide you
156
+ with facilities for running those works, provided that you comply with
157
+ the terms of this License in conveying all material for which you do
158
+ not control copyright. Those thus making or running the covered works
159
+ for you must do so exclusively on your behalf, under your direction
160
+ and control, on terms that prohibit them from making any copies of
161
+ your copyrighted material outside their relationship with you.
162
+
163
+ Conveying under any other circumstances is permitted solely under
164
+ the conditions stated below. Sublicensing is not allowed; section 10
165
+ makes it unnecessary.
166
+
167
+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
168
+
169
+ No covered work shall be deemed part of an effective technological
170
+ measure under any applicable law fulfilling obligations under article
171
+ 11 of the WIPO copyright treaty adopted on 20 December 1996, or
172
+ similar laws prohibiting or restricting circumvention of such
173
+ measures.
174
+
175
+ When you convey a covered work, you waive any legal power to forbid
176
+ circumvention of technological measures to the extent such circumvention
177
+ is effected by exercising rights under this License with respect to
178
+ the covered work, and you disclaim any intention to limit operation or
179
+ modification of the work as a means of enforcing, against the work's
180
+ users, your or third parties' legal rights to forbid circumvention of
181
+ technological measures.
182
+
183
+ 4. Conveying Verbatim Copies.
184
+
185
+ You may convey verbatim copies of the Program's source code as you
186
+ receive it, in any medium, provided that you conspicuously and
187
+ appropriately publish on each copy an appropriate copyright notice;
188
+ keep intact all notices stating that this License and any
189
+ non-permissive terms added in accord with section 7 apply to the code;
190
+ keep intact all notices of the absence of any warranty; and give all
191
+ recipients a copy of this License along with the Program.
192
+
193
+ You may charge any price or no price for each copy that you convey,
194
+ and you may offer support or warranty protection for a fee.
195
+
196
+ 5. Conveying Modified Source Versions.
197
+
198
+ You may convey a work based on the Program, or the modifications to
199
+ produce it from the Program, in the form of source code under the
200
+ terms of section 4, provided that you also meet all of these conditions:
201
+
202
+ a) The work must carry prominent notices stating that you modified
203
+ it, and giving a relevant date.
204
+
205
+ b) The work must carry prominent notices stating that it is
206
+ released under this License and any conditions added under section
207
+ 7. This requirement modifies the requirement in section 4 to
208
+ "keep intact all notices".
209
+
210
+ c) You must license the entire work, as a whole, under this
211
+ License to anyone who comes into possession of a copy. This
212
+ License will therefore apply, along with any applicable section 7
213
+ additional terms, to the whole of the work, and all its parts,
214
+ regardless of how they are packaged. This License gives no
215
+ permission to license the work in any other way, but it does not
216
+ invalidate such permission if you have separately received it.
217
+
218
+ d) If the work has interactive user interfaces, each must display
219
+ Appropriate Legal Notices; however, if the Program has interactive
220
+ interfaces that do not display Appropriate Legal Notices, your
221
+ work need not make them do so.
222
+
223
+ A compilation of a covered work with other separate and independent
224
+ works, which are not by their nature extensions of the covered work,
225
+ and which are not combined with it such as to form a larger program,
226
+ in or on a volume of a storage or distribution medium, is called an
227
+ "aggregate" if the compilation and its resulting copyright are not
228
+ used to limit the access or legal rights of the compilation's users
229
+ beyond what the individual works permit. Inclusion of a covered work
230
+ in an aggregate does not cause this License to apply to the other
231
+ parts of the aggregate.
232
+
233
+ 6. Conveying Non-Source Forms.
234
+
235
+ You may convey a covered work in object code form under the terms
236
+ of sections 4 and 5, provided that you also convey the
237
+ machine-readable Corresponding Source under the terms of this License,
238
+ in one of these ways:
239
+
240
+ a) Convey the object code in, or embodied in, a physical product
241
+ (including a physical distribution medium), accompanied by the
242
+ Corresponding Source fixed on a durable physical medium
243
+ customarily used for software interchange.
244
+
245
+ b) Convey the object code in, or embodied in, a physical product
246
+ (including a physical distribution medium), accompanied by a
247
+ written offer, valid for at least three years and valid for as
248
+ long as you offer spare parts or customer support for that product
249
+ model, to give anyone who possesses the object code either (1) a
250
+ copy of the Corresponding Source for all the software in the
251
+ product that is covered by this License, on a durable physical
252
+ medium customarily used for software interchange, for a price no
253
+ more than your reasonable cost of physically performing this
254
+ conveying of source, or (2) access to copy the
255
+ Corresponding Source from a network server at no charge.
256
+
257
+ c) Convey individual copies of the object code with a copy of the
258
+ written offer to provide the Corresponding Source. This
259
+ alternative is allowed only occasionally and noncommercially, and
260
+ only if you received the object code with such an offer, in accord
261
+ with subsection 6b.
262
+
263
+ d) Convey the object code by offering access from a designated
264
+ place (gratis or for a charge), and offer equivalent access to the
265
+ Corresponding Source in the same way through the same place at no
266
+ further charge. You need not require recipients to copy the
267
+ Corresponding Source along with the object code. If the place to
268
+ copy the object code is a network server, the Corresponding Source
269
+ may be on a different server (operated by you or a third party)
270
+ that supports equivalent copying facilities, provided you maintain
271
+ clear directions next to the object code saying where to find the
272
+ Corresponding Source. Regardless of what server hosts the
273
+ Corresponding Source, you remain obligated to ensure that it is
274
+ available for as long as needed to satisfy these requirements.
275
+
276
+ e) Convey the object code using peer-to-peer transmission, provided
277
+ you inform other peers where the object code and Corresponding
278
+ Source of the work are being offered to the general public at no
279
+ charge under subsection 6d.
280
+
281
+ A separable portion of the object code, whose source code is excluded
282
+ from the Corresponding Source as a System Library, need not be
283
+ included in conveying the object code work.
284
+
285
+ A "User Product" is either (1) a "consumer product", which means any
286
+ tangible personal property which is normally used for personal, family,
287
+ or household purposes, or (2) anything designed or sold for incorporation
288
+ into a dwelling. In determining whether a product is a consumer product,
289
+ doubtful cases shall be resolved in favor of coverage. For a particular
290
+ product received by a particular user, "normally used" refers to a
291
+ typical or common use of that class of product, regardless of the status
292
+ of the particular user or of the way in which the particular user
293
+ actually uses, or expects or is expected to use, the product. A product
294
+ is a consumer product regardless of whether the product has substantial
295
+ commercial, industrial or non-consumer uses, unless such uses represent
296
+ the only significant mode of use of the product.
297
+
298
+ "Installation Information" for a User Product means any methods,
299
+ procedures, authorization keys, or other information required to install
300
+ and execute modified versions of a covered work in that User Product from
301
+ a modified version of its Corresponding Source. The information must
302
+ suffice to ensure that the continued functioning of the modified object
303
+ code is in no case prevented or interfered with solely because
304
+ modification has been made.
305
+
306
+ If you convey an object code work under this section in, or with, or
307
+ specifically for use in, a User Product, and the conveying occurs as
308
+ part of a transaction in which the right of possession and use of the
309
+ User Product is transferred to the recipient in perpetuity or for a
310
+ fixed term (regardless of how the transaction is characterized), the
311
+ Corresponding Source conveyed under this section must be accompanied
312
+ by the Installation Information. But this requirement does not apply
313
+ if neither you nor any third party retains the ability to install
314
+ modified object code on the User Product (for example, the work has
315
+ been installed in ROM).
316
+
317
+ The requirement to provide Installation Information does not include a
318
+ requirement to continue to provide support service, warranty, or updates
319
+ for a work that has been modified or installed by the recipient, or for
320
+ the User Product in which it has been modified or installed. Access to a
321
+ network may be denied when the modification itself materially and
322
+ adversely affects the operation of the network or violates the rules and
323
+ protocols for communication across the network.
324
+
325
+ Corresponding Source conveyed, and Installation Information provided,
326
+ in accord with this section must be in a format that is publicly
327
+ documented (and with an implementation available to the public in
328
+ source code form), and must require no special password or key for
329
+ unpacking, reading or copying.
330
+
331
+ 7. Additional Terms.
332
+
333
+ "Additional permissions" are terms that supplement the terms of this
334
+ License by making exceptions from one or more of its conditions.
335
+ Additional permissions that are applicable to the entire Program shall
336
+ be treated as though they were included in this License, to the extent
337
+ that they are valid under applicable law. If additional permissions
338
+ apply only to part of the Program, that part may be used separately
339
+ under those permissions, but the entire Program remains governed by
340
+ this License without regard to the additional permissions.
341
+
342
+ When you convey a copy of a covered work, you may at your option
343
+ remove any additional permissions from that copy, or from any part of
344
+ it. (Additional permissions may be written to require their own
345
+ removal in certain cases when you modify the work.) You may place
346
+ additional permissions on material, added by you to a covered work,
347
+ for which you have or can give appropriate copyright permission.
348
+
349
+ Notwithstanding any other provision of this License, for material you
350
+ add to a covered work, you may (if authorized by the copyright holders of
351
+ that material) supplement the terms of this License with terms:
352
+
353
+ a) Disclaiming warranty or limiting liability differently from the
354
+ terms of sections 15 and 16 of this License; or
355
+
356
+ b) Requiring preservation of specified reasonable legal notices or
357
+ author attributions in that material or in the Appropriate Legal
358
+ Notices displayed by works containing it; or
359
+
360
+ c) Prohibiting misrepresentation of the origin of that material, or
361
+ requiring that modified versions of such material be marked in
362
+ reasonable ways as different from the original version; or
363
+
364
+ d) Limiting the use for publicity purposes of names of licensors or
365
+ authors of the material; or
366
+
367
+ e) Declining to grant rights under trademark law for use of some
368
+ trade names, trademarks, or service marks; or
369
+
370
+ f) Requiring indemnification of licensors and authors of that
371
+ material by anyone who conveys the material (or modified versions of
372
+ it) with contractual assumptions of liability to the recipient, for
373
+ any liability that these contractual assumptions directly impose on
374
+ those licensors and authors.
375
+
376
+ All other non-permissive additional terms are considered "further
377
+ restrictions" within the meaning of section 10. If the Program as you
378
+ received it, or any part of it, contains a notice stating that it is
379
+ governed by this License along with a term that is a further
380
+ restriction, you may remove that term. If a license document contains
381
+ a further restriction but permits relicensing or conveying under this
382
+ License, you may add to a covered work material governed by the terms
383
+ of that license document, provided that the further restriction does
384
+ not survive such relicensing or conveying.
385
+
386
+ If you add terms to a covered work in accord with this section, you
387
+ must place, in the relevant source files, a statement of the
388
+ additional terms that apply to those files, or a notice indicating
389
+ where to find the applicable terms.
390
+
391
+ Additional terms, permissive or non-permissive, may be stated in the
392
+ form of a separately written license, or stated as exceptions;
393
+ the above requirements apply either way.
394
+
395
+ 8. Termination.
396
+
397
+ You may not propagate or modify a covered work except as expressly
398
+ provided under this License. Any attempt otherwise to propagate or
399
+ modify it is void, and will automatically terminate your rights under
400
+ this License (including any patent licenses granted under the third
401
+ paragraph of section 11).
402
+
403
+ However, if you cease all violation of this License, then your
404
+ license from a particular copyright holder is reinstated (a)
405
+ provisionally, unless and until the copyright holder explicitly and
406
+ finally terminates your license, and (b) permanently, if the copyright
407
+ holder fails to notify you of the violation by some reasonable means
408
+ prior to 60 days after the cessation.
409
+
410
+ Moreover, your license from a particular copyright holder is
411
+ reinstated permanently if the copyright holder notifies you of the
412
+ violation by some reasonable means, this is the first time you have
413
+ received notice of violation of this License (for any work) from that
414
+ copyright holder, and you cure the violation prior to 30 days after
415
+ your receipt of the notice.
416
+
417
+ Termination of your rights under this section does not terminate the
418
+ licenses of parties who have received copies or rights from you under
419
+ this License. If your rights have been terminated and not permanently
420
+ reinstated, you do not qualify to receive new licenses for the same
421
+ material under section 10.
422
+
423
+ 9. Acceptance Not Required for Having Copies.
424
+
425
+ You are not required to accept this License in order to receive or
426
+ run a copy of the Program. Ancillary propagation of a covered work
427
+ occurring solely as a consequence of using peer-to-peer transmission
428
+ to receive a copy likewise does not require acceptance. However,
429
+ nothing other than this License grants you permission to propagate or
430
+ modify any covered work. These actions infringe copyright if you do
431
+ not accept this License. Therefore, by modifying or propagating a
432
+ covered work, you indicate your acceptance of this License to do so.
433
+
434
+ 10. Automatic Licensing of Downstream Recipients.
435
+
436
+ Each time you convey a covered work, the recipient automatically
437
+ receives a license from the original licensors, to run, modify and
438
+ propagate that work, subject to this License. You are not responsible
439
+ for enforcing compliance by third parties with this License.
440
+
441
+ An "entity transaction" is a transaction transferring control of an
442
+ organization, or substantially all assets of one, or subdividing an
443
+ organization, or merging organizations. If propagation of a covered
444
+ work results from an entity transaction, each party to that
445
+ transaction who receives a copy of the work also receives whatever
446
+ licenses to the work the party's predecessor in interest had or could
447
+ give under the previous paragraph, plus a right to possession of the
448
+ Corresponding Source of the work from the predecessor in interest, if
449
+ the predecessor has it or can get it with reasonable efforts.
450
+
451
+ You may not impose any further restrictions on the exercise of the
452
+ rights granted or affirmed under this License. For example, you may
453
+ not impose a license fee, royalty, or other charge for exercise of
454
+ rights granted under this License, and you may not initiate litigation
455
+ (including a cross-claim or counterclaim in a lawsuit) alleging that
456
+ any patent claim is infringed by making, using, selling, offering for
457
+ sale, or importing the Program or any portion of it.
458
+
459
+ 11. Patents.
460
+
461
+ A "contributor" is a copyright holder who authorizes use under this
462
+ License of the Program or a work on which the Program is based. The
463
+ work thus licensed is called the contributor's "contributor version".
464
+
465
+ A contributor's "essential patent claims" are all patent claims
466
+ owned or controlled by the contributor, whether already acquired or
467
+ hereafter acquired, that would be infringed by some manner, permitted
468
+ by this License, of making, using, or selling its contributor version,
469
+ but do not include claims that would be infringed only as a
470
+ consequence of further modification of the contributor version. For
471
+ purposes of this definition, "control" includes the right to grant
472
+ patent sublicenses in a manner consistent with the requirements of
473
+ this License.
474
+
475
+ Each contributor grants you a non-exclusive, worldwide, royalty-free
476
+ patent license under the contributor's essential patent claims, to
477
+ make, use, sell, offer for sale, import and otherwise run, modify and
478
+ propagate the contents of its contributor version.
479
+
480
+ In the following three paragraphs, a "patent license" is any express
481
+ agreement or commitment, however denominated, not to enforce a patent
482
+ (such as an express permission to practice a patent or covenant not to
483
+ sue for patent infringement). To "grant" such a patent license to a
484
+ party means to make such an agreement or commitment not to enforce a
485
+ patent against the party.
486
+
487
+ If you convey a covered work, knowingly relying on a patent license,
488
+ and the Corresponding Source of the work is not available for anyone
489
+ to copy, free of charge and under the terms of this License, through a
490
+ publicly available network server or other readily accessible means,
491
+ then you must either (1) cause the Corresponding Source to be so
492
+ available, or (2) arrange to deprive yourself of the benefit of the
493
+ patent license for this particular work, or (3) arrange, in a manner
494
+ consistent with the requirements of this License, to extend the patent
495
+ license to downstream recipients. "Knowingly relying" means you have
496
+ actual knowledge that, but for the patent license, your conveying the
497
+ covered work in a country, or your recipient's use of the covered work
498
+ in a country, would infringe one or more identifiable patents in that
499
+ country that you have reason to believe are valid.
500
+
501
+ If, pursuant to or in connection with a single transaction or
502
+ arrangement, you convey, or propagate by procuring conveyance of, a
503
+ covered work, and grant a patent license to some of the parties
504
+ receiving the covered work authorizing them to use, propagate, modify
505
+ or convey a specific copy of the covered work, then the patent license
506
+ you grant is automatically extended to all recipients of the covered
507
+ work and works based on it.
508
+
509
+ A patent license is "discriminatory" if it does not include within
510
+ the scope of its coverage, prohibits the exercise of, or is
511
+ conditioned on the non-exercise of one or more of the rights that are
512
+ specifically granted under this License. You may not convey a covered
513
+ work if you are a party to an arrangement with a third party that is
514
+ in the business of distributing software, under which you make payment
515
+ to the third party based on the extent of your activity of conveying
516
+ the work, and under which the third party grants, to any of the
517
+ parties who would receive the covered work from you, a discriminatory
518
+ patent license (a) in connection with copies of the covered work
519
+ conveyed by you (or copies made from those copies), or (b) primarily
520
+ for and in connection with specific products or compilations that
521
+ contain the covered work, unless you entered into that arrangement,
522
+ or that patent license was granted, prior to 28 March 2007.
523
+
524
+ Nothing in this License shall be construed as excluding or limiting
525
+ any implied license or other defenses to infringement that may
526
+ otherwise be available to you under applicable patent law.
527
+
528
+ 12. No Surrender of Others' Freedom.
529
+
530
+ If conditions are imposed on you (whether by court order, agreement or
531
+ otherwise) that contradict the conditions of this License, they do not
532
+ excuse you from the conditions of this License. If you cannot convey a
533
+ covered work so as to satisfy simultaneously your obligations under this
534
+ License and any other pertinent obligations, then as a consequence you may
535
+ not convey it at all. For example, if you agree to terms that obligate you
536
+ to collect a royalty for further conveying from those to whom you convey
537
+ the Program, the only way you could satisfy both those terms and this
538
+ License would be to refrain entirely from conveying the Program.
539
+
540
+ 13. Remote Network Interaction; Use with the GNU General Public License.
541
+
542
+ Notwithstanding any other provision of this License, if you modify the
543
+ Program, your modified version must prominently offer all users
544
+ interacting with it remotely through a computer network (if your version
545
+ supports such interaction) an opportunity to receive the Corresponding
546
+ Source of your version by providing access to the Corresponding Source
547
+ from a network server at no charge, through some standard or customary
548
+ means of facilitating copying of software. This Corresponding Source
549
+ shall include the Corresponding Source for any work covered by version 3
550
+ of the GNU General Public License that is incorporated pursuant to the
551
+ following paragraph.
552
+
553
+ Notwithstanding any other provision of this License, you have
554
+ permission to link or combine any covered work with a work licensed
555
+ under version 3 of the GNU General Public License into a single
556
+ combined work, and to convey the resulting work. The terms of this
557
+ License will continue to apply to the part which is the covered work,
558
+ but the work with which it is combined will remain governed by version
559
+ 3 of the GNU General Public License.
560
+
561
+ 14. Revised Versions of this License.
562
+
563
+ The Free Software Foundation may publish revised and/or new versions of
564
+ the GNU Affero General Public License from time to time. Such new versions
565
+ will be similar in spirit to the present version, but may differ in detail to
566
+ address new problems or concerns.
567
+
568
+ Each version is given a distinguishing version number. If the
569
+ Program specifies that a certain numbered version of the GNU Affero General
570
+ Public License "or any later version" applies to it, you have the
571
+ option of following the terms and conditions either of that numbered
572
+ version or of any later version published by the Free Software
573
+ Foundation. If the Program does not specify a version number of the
574
+ GNU Affero General Public License, you may choose any version ever published
575
+ by the Free Software Foundation.
576
+
577
+ If the Program specifies that a proxy can decide which future
578
+ versions of the GNU Affero General Public License can be used, that proxy's
579
+ public statement of acceptance of a version permanently authorizes you
580
+ to choose that version for the Program.
581
+
582
+ Later license versions may give you additional or different
583
+ permissions. However, no additional obligations are imposed on any
584
+ author or copyright holder as a result of your choosing to follow a
585
+ later version.
586
+
587
+ 15. Disclaimer of Warranty.
588
+
589
+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
590
+ APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
591
+ HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
592
+ OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
593
+ THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
594
+ PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
595
+ IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
596
+ ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
597
+
598
+ 16. Limitation of Liability.
599
+
600
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
601
+ WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
602
+ THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
603
+ GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
604
+ USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
605
+ DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
606
+ PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
607
+ EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
608
+ SUCH DAMAGES.
609
+
610
+ 17. Interpretation of Sections 15 and 16.
611
+
612
+ If the disclaimer of warranty and limitation of liability provided
613
+ above cannot be given local legal effect according to their terms,
614
+ reviewing courts shall apply local law that most closely approximates
615
+ an absolute waiver of all civil liability in connection with the
616
+ Program, unless a warranty or assumption of liability accompanies a
617
+ copy of the Program in return for a fee.
618
+
619
+ END OF TERMS AND CONDITIONS
620
+
621
+ How to Apply These Terms to Your New Programs
622
+
623
+ If you develop a new program, and you want it to be of the greatest
624
+ possible use to the public, the best way to achieve this is to make it
625
+ free software which everyone can redistribute and change under these terms.
626
+
627
+ To do so, attach the following notices to the program. It is safest
628
+ to attach them to the start of each source file to most effectively
629
+ state the exclusion of warranty; and each file should have at least
630
+ the "copyright" line and a pointer to where the full notice is found.
631
+
632
+ <one line to give the program's name and a brief idea of what it does.>
633
+ Copyright (C) <year> <name of author>
634
+
635
+ This program is free software: you can redistribute it and/or modify
636
+ it under the terms of the GNU Affero General Public License as published by
637
+ the Free Software Foundation, either version 3 of the License, or
638
+ (at your option) any later version.
639
+
640
+ This program is distributed in the hope that it will be useful,
641
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
642
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
643
+ GNU Affero General Public License for more details.
644
+
645
+ You should have received a copy of the GNU Affero General Public License
646
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
647
+
648
+ Also add information on how to contact you by electronic and paper mail.
649
+
650
+ If your software can interact with users remotely through a computer
651
+ network, you should also make sure that it provides a way for users to
652
+ get its source. For example, if your program is a web application, its
653
+ interface could display a "Source" link that leads users to an archive
654
+ of the code. There are many ways you could offer source, and different
655
+ solutions will be better for different programs; see section 13 for the
656
+ specific requirements.
657
+
658
+ You should also get your employer (if you work as a programmer) or school,
659
+ if any, to sign a "copyright disclaimer" for the program, if necessary.
660
+ For more information on this, and how to apply and follow the GNU AGPL, see
661
+ <https://www.gnu.org/licenses/>.
README.md ADDED
@@ -0,0 +1,250 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <div align="center">
2
+
3
+ <img src="https://github.com/DogeNetwork/dogeub/blob/main/public/logo.svg" width="322" />
4
+ <br />
5
+
6
+ [![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/I3I81MF4CH) ![](https://dcbadge.limes.pink/api/server/https://discord.gg/unblocking?compact=true)
7
+
8
+
9
+ <hr />
10
+ DogeUB version 5 is finally here!
11
+
12
+
13
+ <br />
14
+ <br />
15
+
16
+ <img width="1278" height="628" alt="image" src="preview.png" />
17
+
18
+
19
+ </div>
20
+
21
+ ## Overview
22
+
23
+ DogeUB is a browser-in-browser style internet hub that brings together web apps, tools, and games in one place, built with [React](https://github.com/facebook/react).
24
+
25
+ > [!IMPORTANT]
26
+ > Please consider starring our repository if you are forking it!
27
+
28
+ ### List of features:
29
+
30
+ | Feature | Implemented |
31
+ |---------|-------------|
32
+ | Web Proxy | Yes |
33
+ | Browser-like UI | Yes |
34
+ | App player UI | Yes |
35
+ | Cloak features | Partially |
36
+ | Game Downloader | Yes |
37
+ | Quick Links | Yes |
38
+ | DuckDuckGo Search API | Yes |
39
+ | Apps & Games | Yes |
40
+ | Search Engine Switcher | Yes |
41
+ | Themes/Site Customization | Yes |
42
+
43
+ ---
44
+
45
+ ### Development & Building
46
+
47
+ #### Production:
48
+ ```bash
49
+ git clone https://github.com/DogeNetwork/dogeub.git
50
+ cd dogeub
51
+ npm i
52
+ npm run build
53
+ node server.js
54
+ ```
55
+
56
+ #### Development:
57
+
58
+ ```bash
59
+ git clone https://github.com/DogeNetwork/dogeub.git
60
+ cd dogeub
61
+ npm i
62
+ npm run dev
63
+ ```
64
+ ---
65
+
66
+
67
+ ### Run on your own machine
68
+
69
+ You only need a few things installed:
70
+ - **Node.js 20+** (recommended: latest LTS)
71
+ - **npm** (comes with Node.js)
72
+ - **git**
73
+
74
+ Quick start (production-style run):
75
+ ```bash
76
+ git clone https://github.com/DogeNetwork/dogeub.git
77
+ cd dogeub
78
+ npm install
79
+ npm run build
80
+ node server.js
81
+ ```
82
+ Then open: `http://localhost:2345` (or your configured `PORT`).
83
+
84
+ Local development mode (hot reload):
85
+ ```bash
86
+ npm install
87
+ npm run dev
88
+ ```
89
+ Then open the Vite URL shown in terminal (usually `http://localhost:5173`).
90
+
91
+
92
+ > [!TIP]
93
+ > If your environment is on Node.js 16 (common in older/dev containers), switch to Node 20 before installing deps:
94
+ > ```bash
95
+ > nvm install 20
96
+ > nvm use 20
97
+ > node -v
98
+ > ```
99
+
100
+ ### Troubleshooting (Codespaces / CAPTCHA / "Robot" detections)
101
+
102
+ #### Change proxy mode (UI)
103
+
104
+ 1. Open **Settings**.
105
+ 2. Go to **Browsing** settings.
106
+ 3. Find **Backend Engine**.
107
+ 4. Choose:
108
+ - **Scramjet only** (default)
109
+ - **Ultraviolet only**
110
+ - **Automatic**
111
+
112
+ ### Troubleshooting (Codespaces / CAPTCHA / "Robot" detections)
113
+
114
+ If you run DogeUB inside **GitHub Codespaces**, some sites may repeatedly show bot checks or a reCAPTCHA spinner that never finishes.
115
+
116
+ Common reasons:
117
+ - **Datacenter IP reputation**: Codespaces egress IPs are often flagged by anti-bot systems.
118
+ - **Strict browser integrity checks**: Some providers detect proxy/service-worker flows and block challenge completion.
119
+ - **Cookie/storage restrictions**: CAPTCHA flows can fail if required storage/cookies are blocked or partitioned.
120
+ - **TLS / origin issues**: Make sure you are using the HTTPS URL provided by Codespaces port forwarding.
121
+
122
+ What to try:
123
+ 1. Open the app from the forwarded **HTTPS** Codespaces URL (not plain localhost in another device/browser).
124
+ 2. In Codespaces Port Forwarding, set the app port visibility to **Public** (or required mode for your usage).
125
+ 3. Test in a clean browser profile with extensions/ad blockers disabled.
126
+ 4. If CAPTCHA still loops, run on a different host/network with better IP reputation (self-hosted VPS/reverse proxy or local network).
127
+
128
+ > [!IMPORTANT]
129
+ > Some anti-bot pages are intentionally difficult or impossible to complete through proxy contexts. This is an upstream site security behavior, not always a build/runtime bug in DogeUB.
130
+
131
+ #### Where to test (recommended)
132
+
133
+ Use a two-environment check:
134
+ 1. **Codespaces (repro check):** confirm whether the issue appears on `*.app.github.dev`.
135
+ 2. **Non-Codespaces host (control check):** run the same build on local machine/VPS/custom domain to compare behavior.
136
+
137
+ If it fails only in Codespaces but works elsewhere, the root cause is usually platform/network reputation or Codespaces auth/cross-origin behavior rather than your project build.
138
+
139
+ ### Put DogeUB on your own website
140
+
141
+ For a games site, the safest setup is a **separate subdomain** (recommended), e.g. `hub.yoursite.com`.
142
+
143
+ Why subdomain is better than a subpath:
144
+ - The app and service workers use root-style paths (e.g. `/portal/...`, `/ham/...`, `/sw.js`).
145
+ - Hosting under a subpath like `/games/dogeub/` usually requires extra rewrite work.
146
+
147
+ Recommended deployment pattern:
148
+ 1. Build the app:
149
+ ```bash
150
+ npm install
151
+ npm run build
152
+ ```
153
+ 2. Run the server behind a reverse proxy:
154
+ ```bash
155
+ PORT=2345 node server.js
156
+ ```
157
+ 3. Point a subdomain to your server and terminate HTTPS in Nginx/Caddy.
158
+
159
+ Example Nginx site block:
160
+ ```nginx
161
+ server {
162
+ listen 443 ssl http2;
163
+ server_name hub.yoursite.com;
164
+
165
+ location / {
166
+ proxy_pass http://127.0.0.1:2345;
167
+ proxy_set_header Host $host;
168
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
169
+ proxy_set_header X-Forwarded-Proto $scheme;
170
+ }
171
+ }
172
+ ```
173
+
174
+ Then link to it from your main site with a normal link or iframe (link is usually more reliable).
175
+
176
+ #### CORS / CORP / COEP notes (Render)
177
+
178
+ Short answer: you usually **do not** need to add strict cross-origin policies for this proxy app.
179
+
180
+ Recommended for Render deploys:
181
+ - Keep default CORS behavior unless you have a specific API requirement.
182
+ - Do **not** force `Cross-Origin-Resource-Policy: same-origin` globally.
183
+ - Do **not** force `Cross-Origin-Embedder-Policy: require-corp` globally.
184
+ - Do **not** force `Cross-Origin-Opener-Policy: same-origin` globally.
185
+
186
+ Those strict headers can break proxied scripts/assets and challenge flows.
187
+
188
+ #### Deploying with Docker:
189
+
190
+ ```bash
191
+ docker run -d \
192
+ --name dogeub \
193
+ --restart unless-stopped \
194
+ -p 3000:3000 \
195
+ -e NODE_ENV=production \
196
+ -e PORT=3000 \
197
+ ghcr.io/dogenetwork/dogeub:latest
198
+ ```
199
+
200
+ > [!NOTE]
201
+ > If accessing over a network instead of localhost, you will need to provide a valid SSL certificate (e.g., using a reverse proxy like Nginx or Caddy). This is required for the built-in service worker to function properly.
202
+
203
+ #### HTTPS requirements (important)
204
+
205
+ - **`localhost` is OK without custom certs** for local testing.
206
+ - **Any non-localhost host** (LAN IP, VPS domain, school/work domain, etc.) should be served over valid **HTTPS** for reliable service-worker behavior.
207
+ - **Codespaces URLs are already HTTPS**, but can still hit platform auth/bot checks unrelated to your build.
208
+
209
+ Example Caddy reverse proxy (auto HTTPS):
210
+ ```caddyfile
211
+ your-domain.example.com {
212
+ reverse_proxy 127.0.0.1:2345
213
+ }
214
+ ```
215
+
216
+ Then run DogeUB on localhost and let Caddy terminate TLS:
217
+ ```bash
218
+ PORT=2345 node server.js
219
+ ```
220
+
221
+ ---
222
+
223
+ ### Contributors / Developers
224
+
225
+ | Name | Role | GitHub |
226
+ | ------------- | ------------------ | ------ |
227
+ | Derpman | Lead Developer | [@qerionx](https://github.com/qerionx) |
228
+ | Fowntain | Project Manager | [@fowntain](https://github.com/fowntain) |
229
+ | Akane | Contributor | [@genericness](https://github.com/genericness) |
230
+ | DJshelfmushroom | Contributor | [@DJshelfmushroom](https://github.com/DJshelfmushroom) |
231
+
232
+
233
+ > [!NOTE]
234
+ > Want to be on this list? Make a few pull requests!
235
+
236
+ ---
237
+
238
+ ### Made possible thanks to:
239
+
240
+ * [MercuryWorkshop/wisp-server-node](https://github.com/MercuryWorkshop/wisp-server-node)
241
+ * [MercuryWorkshop/scramjet](https://github.com/MercuryWorkshop/scramjet)
242
+ * [titaniumnetwork-dev/Ultraviolet](https://github.com/titaniumnetwork-dev/Ultraviolet)
243
+ * [lucide-icons/lucide](https://github.com/lucide-icons/lucide)
244
+ * [pmndrs/zustand](https://github.com/pmndrs/zustand)
245
+ * [Stuk/jszip](https://github.com/Stuk/jszip)
246
+
247
+ ## License
248
+
249
+ This project is licensed under the **GNU Affero GPL v3**.
250
+ See the [LICENSE](LICENSE) file for more details.
copy.env ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Set the port on which Doge V5 will run on.
2
+ # PORT=2345
3
+
4
+ # Choose whether or not to use the Bare Server.
5
+ # Set to true or leave it alone if using Vercel.
6
+ # BARE="false"
7
+
8
+ # Choose whether or not you want to enable MASQR.
9
+ # Separate licensing server required for this to work.
10
+ # https://github.com/titaniumnetwork-dev/MasqrProject
11
+ # MASQR="false"
12
+
13
+ # Enable static hosting mode for things like Github Pages.
14
+ # STATIC="true"
dist/BRwJe-3z.js ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["chunks/Home.BJzwmpo-.js","chunks/vendor-modules.CdZshF6A.js","assets/BuigefS6.css","chunks/Nav.BP8Isd6k.js","assets/LUKF6wGO.css","chunks/Apps.D-KJr-8K.js","chunks/apps.module.BjBTeXNv.js","assets/CPidMX-2.css","chunks/Apps2.D28fohTr.js","chunks/Settings.vTVUOmcD.js","chunks/Player.DqC_tdPp.js","chunks/localGmLoader.CRV_4jHG.js"])))=>i.map(i=>d[i]);
2
+ const bd=f;(function(a,b){const b0=f,c=a();while(!![]){try{const af=parseInt(b0(0x136))/0x1+-parseInt(b0(0x1d2))/0x2+parseInt(b0(0x235))/0x3+parseInt(b0(0x199))/0x4+-parseInt(b0(0x1fe))/0x5+parseInt(b0(0x152))/0x6+-parseInt(b0(0x134))/0x7;if(af===b)break;else c['push'](c['shift']());}catch(ag){c['push'](c['shift']());}}}(e,0xb1e79));import{j as g,r as h,R as i,a as j,c as k,G as l,L as m,X as n,b as o,P as p,I as q,u as r,d as s,A as u,e as w,f as x,S as y,g as z,F as B,M as C,h as I,E as L,i as N,z as O,Q as P,k as S,W as T,Z as U,l as V,C as a0,B as a1,m as a2,T as a3,n as a4,o as a5,p as a6,q as a7,s as a8,N as a9,t as aa,v as ab,w as ac,x as ad}from'./chunks/vendor-modules.CdZshF6A.js';(function(){const b1=f,a={'uSoJX':function(ai,aj){return ai===aj;},'rPjjK':b1(0x347),'tVLeY':'anonymous','rgaHY':b1(0x249),'tXIqs':b1(0x343),'iofEX':b1(0x2e8),'EEfJY':b1(0x1ae),'TFJlf':function(ai,aj,ak){return ai(aj,ak);},'PPQMH':function(ai){return ai();},'TrKon':function(ai,aj,ak){return ai(aj,ak);}},b=(function(){let ai=!![];return function(aj,ak){const al=ai?function(){const b2=f;if(ak){const am=ak[b2(0x24f)](aj,arguments);return ak=null,am;}}:function(){};return ai=![],al;};}()),af=document['createElement']('link')[b1(0x171)];if(af&&af['supports']&&af['supports'](b1(0x1f8)))return;for(const ai of document['querySelectorAll'](b1(0x32b)))ah(ai);new MutationObserver(aj=>{const b3=b1;for(const ak of aj)if(a['uSoJX'](ak[b3(0x187)],b3(0x300))){for(const al of ak['addedNodes'])al[b3(0xdf)]===b3(0x1ec)&&al['rel']===b3(0x1f8)&&ah(al);}})['observe'](document,{'childList':!0x0,'subtree':!0x0});function ag(aj){const b4=b1,ak={};return aj['integrity']&&(ak[b4(0x333)]=aj[b4(0x333)]),aj[b4(0x1ea)]&&(ak[b4(0x1ea)]=aj['referrerPolicy']),a['uSoJX'](aj[b4(0x1f0)],a[b4(0x34d)])?ak['credentials']=b4(0x14c):aj['crossOrigin']===a[b4(0x202)]?ak[b4(0x34c)]=a['rgaHY']:ak[b4(0x34c)]=b4(0x366),ak;}function ah(aj){const b6=b1,ak={'viiSp':a['tXIqs'],'oDSXE':a['iofEX'],'sHgJr':a['EEfJY'],'lZWhP':function(an,ap){return an<ap;}},al=a['TFJlf'](b,this,function(){const b5=f;let an;try{const ar=Function('return\x20(function()\x20'+'{}.constructor(\x22return\x20this\x22)(\x20)'+');');an=ar();}catch(as){an=window;}const ap=an['console']=an[b5(0x2e3)]||{},aq=['log',ak[b5(0x350)],b5(0x2da),'error',ak[b5(0x35e)],'table',ak[b5(0x2c7)]];for(let au=0x0;ak['lZWhP'](au,aq['length']);au++){const av=b[b5(0x14f)]['prototype'][b5(0x167)](b),aw=aq[au],ax=ap[aw]||av;av[b5(0x26a)]=b[b5(0x167)](b),av['toString']=ax[b5(0x117)]['bind'](ax),ap[aw]=av;}});a[b6(0x101)](al);if(aj['ep'])return;aj['ep']=!0x0;const am=ag(aj);a[b6(0x28a)](fetch,aj[b6(0x2f2)],am);}}());const mt='modulepreload',pt=function(a){const b={'XmTXU':function(c,af){return c+af;}};return b['XmTXU']('/',a);},pe={},$=function(b,c,af){const b7=f,ag={'Eqbvx':b7(0x1d8),'Biqeq':'link','jslGJ':function(aj,ak){return aj(ak);},'SXrQr':'meta[property=csp-nonce]','JwRxB':function(aj,ak){return aj(ak);}};let ah=Promise[b7(0x1c0)]();if(c&&c[b7(0x1e5)]>0x0){let aj=function(am){const b8=b7;return Promise['all'](am['map'](an=>Promise[b8(0x1c0)](an)['then'](ap=>({'status':b8(0x318),'value':ap}),ap=>({'status':b8(0x298),'reason':ap}))));};document['getElementsByTagName']('link');const ak=document[b7(0x32c)](ag['SXrQr']),al=ak?.['nonce']||ak?.['getAttribute'](b7(0x231));ah=ag[b7(0x145)](aj,c['map'](am=>{const b9=b7;if(am=pt(am),am in pe)return;pe[am]=!0x0;const an=am['endsWith'](b9(0x110)),ap=an?b9(0x1f3):'';if(document[b9(0x32c)]('link[href=\x22'+am+'\x22]'+ap))return;const aq=document[b9(0xe0)](ag[b9(0x25d)]);if(aq[b9(0x321)]=an?'stylesheet':mt,an||(aq['as']=b9(0x234)),aq[b9(0x1f0)]='',aq[b9(0x2f2)]=am,al&&aq[b9(0x21b)](b9(0x231),al),document[b9(0x24a)][b9(0x10a)](aq),an)return new Promise((ar,as)=>{const ba=b9;aq[ba(0xe6)]('load',ar),aq['addEventListener'](ag['Eqbvx'],()=>as(new Error('Unable\x20to\x20preload\x20CSS\x20for\x20'+am)));});}));}function ai(am){const bb=b7,an=new Event(bb(0x339),{'cancelable':!0x0});if(an[bb(0x19c)]=am,window['dispatchEvent'](an),!an[bb(0x18c)])throw am;}return ah['then'](am=>{const bc=b7;for(const an of am||[])an['status']===bc(0x298)&&ag[bc(0x35d)](ai,an[bc(0x2ec)]);return b()[bc(0x33f)](ai);});},gt=bd(0x2de),Ee={'version':gt};let W,_,F;const ht=()=>{const bf=bd;bf(0xdd)in navigator&&navigator['serviceWorker'][bf(0x328)]()['then'](a=>a[bf(0x281)](b=>b['unregister']())),'caches'in window&&caches[bf(0x12f)]()['then'](a=>a[bf(0x281)](b=>caches['delete'](b))),localStorage[bf(0x22d)](),sessionStorage[bf(0x22d)](),location[bf(0x2f2)]='/';},Te=()=>{const bg=bd,a={'GSDAb':bg(0x2ac),'yBPCh':'focus','oMuZH':function(c,af,ag){return c(af,ag);},'jZtyr':function(c,af,ag){return c(af,ag);}},b=JSON['parse'](localStorage['options']||'{}');$(async()=>{const bh=bg,{meta:c}=await Promise[bh(0x1c0)]()[bh(0x2ce)](()=>Jt);return{'meta':c};},void 0)[bg(0x2ce)](({meta:c})=>{const bi=bg,af={'IcMmw':a[bi(0x2cd)],'TTxPP':'href'},{tabName:ag,tabIcon:ah}=b,{tabName:ai,tabIcon:aj}=c[0x0]['value'],ak=(al,am)=>{const bj=bi;document[bj(0x1df)]=al,document[bj(0x32c)](af['IcMmw'])?.[bj(0x21b)](af[bj(0x151)],am);};W&&window[bi(0x2e7)]('blur',W),_&&window['removeEventListener'](a[bi(0x2d2)],_),b[bi(0x2b0)]?(a[bi(0x209)](ak,ag,ah),W=()=>{const bk=bi,al=JSON['parse'](localStorage[bk(0x147)]||'{}');ak(al[bk(0x327)]||ai,al[bk(0x29d)]||aj);},_=()=>ak(ai,aj),window['addEventListener']('blur',W),window[bi(0xe6)]('focus',_),a[bi(0x217)](ak,ai,aj)):(ak(ag||ai,ah||aj),W=_=null);});},Le=()=>{const bl=bd,a={'ASogW':bl(0x1f6),'OANAw':function(af,ag){return af===ag;}},b=JSON['parse'](localStorage[bl(0x147)]||'{}'),c=b['panic'];F&&(window['removeEventListener'](bl(0x27c),F),F=null),c?.['key']&&c?.['url']&&b[bl(0x311)]&&(F=af=>{const bm=bl,ag=[];af['ctrlKey']&&ag['push']('Ctrl'),af[bm(0x200)]&&ag['push'](a[bm(0x1fc)]),af['shiftKey']&&ag['push']('Shift'),af['metaKey']&&ag['push']('Meta'),ag['push'](af['key']['length']===0x1?af[bm(0x1ef)]['toUpperCase']():af[bm(0x1ef)]),a['OANAw'](ag['join']('+'),c['key'])&&(af['preventDefault'](),window[bm(0x2ed)][bm(0x2f2)]=c[bm(0x2dd)]);},window[bl(0xe6)](bl(0x27c),F));},Be=(b=!0x0)=>{const bn=bd,c={'eZpwc':'iframe','vNYiw':bn(0x1a6),'nzWVW':bn(0x119),'YcBpY':'icon','XStsr':'script'},af=open('about:blank');if(!af||af[bn(0x30e)])return alert('Popup\x20was\x20blocked.\x20Allow\x20popups\x20for\x20this\x20site\x20and\x20try\x20again.'),!0x1;const ag=af['window']['document'],ah=ag[bn(0xe0)](c['eZpwc']);Object['assign'](ah,{'src':location[bn(0x2f2)]}),Object['assign'](ah[bn(0x12d)],{'width':'100%','height':'100%','border':bn(0x1e3)}),Object[bn(0x35b)](ag[bn(0x31f)][bn(0x12d)],{'margin':0x0,'height':c['vNYiw']}),ag[bn(0x1b9)]['style'][bn(0x29a)]=c['nzWVW'],ag['head']['appendChild'](Object[bn(0x35b)](document[bn(0xe0)]('link'),{'rel':c['YcBpY'],'href':''})),ag[bn(0x31f)]['append'](ah);const ai=ag['createElement'](c[bn(0x31c)]);return ai['textContent']='\x0a\x20\x20\x20\x20const\x20d\x20=\x20document;\x0a\x20\x20\x20\x20setInterval(()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20const\x20op\x20=\x20JSON.parse(localStorage.getItem(\x27options\x27)\x20||\x20\x27{}\x27);\x0a\x20\x20\x20\x20\x20\x20d.title\x20=\x20op.tabName\x20||\x20\x27\x27;\x0a\x20\x20\x20\x20\x20\x20let\x20icon\x20=\x20d.querySelector(\x22link[rel~=\x27icon\x27]\x22);\x0a\x20\x20\x20\x20\x20\x20if\x20(!icon)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20icon\x20=\x20d.createElement(\x27link\x27);\x0a\x20\x20\x20\x20\x20\x20\x20\x20icon.rel\x20=\x20\x27icon\x27;\x0a\x20\x20\x20\x20\x20\x20\x20\x20d.head.appendChild(icon);\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20icon.href\x20=\x20op.tabIcon\x20||\x20\x27\x27;\x0a\x20\x20\x20\x20},\x20800);\x0a\x20\x20',ag[bn(0x24a)][bn(0x10a)](ai),b&&window[bn(0x2ed)]['replace']('https://google.com'),!0x0;};((()=>{const bo=bd,a={'cbSOF':bo(0x147),'pFAIV':bo(0x260),'jbCEC':function(af,ag){return af===ag;}},b=JSON[bo(0x2c9)](localStorage[bo(0x147)]||'{}');!b['version']&&localStorage['setItem'](a[bo(0x279)],JSON['stringify']({'version':Ee['version']})),b[bo(0x210)]&&window['addEventListener'](a['pFAIV'],af=>{const bp=bo;af[bp(0x15f)](),af['returnValue']='';});const c=b[bo(0x325)]===!0x0||b[bo(0x15c)]&&b['aboutBlankAutoOpen']!==!0x1;a[bo(0x236)](window[bo(0xef)],window[bo(0x2f8)])&&c&&Be(!0x0),Te(),Le();})());const co=Object[bd(0x25c)](Object[bd(0x1c1)]({'__proto__':null,'ckOff':Te,'openAboutBlankPopup':Be,'panic':Le,'resetInstance':ht},Symbol[bd(0x163)],{'value':'Module'}));function wt(){const bq=bd,a={'qJuEP':'div'};return g[bq(0x194)](a['qJuEP'],{'className':'fixed\x20inset-0\x20z-9999\x20flex\x20items-center\x20justify-center\x20bg-inherit','children':g['jsx']('h1',{'className':'text-2xl\x20font-semibold\x20text-gray-300','children':bq(0x19b)})});}const Re=h[bd(0xf1)](({pages:a})=>g[bd(0x194)](h['Suspense'],{'fallback':g[bd(0x194)](wt,{}),'children':g[bd(0x194)](i,{'children':a['map']((b,c)=>g['jsx'](j,{'path':b['path'],'element':b['element']},b[bd(0x1b3)]+'-'+c))})}));Re['displayName']=bd(0x1cd);const E=k(a=>({'tabs':[{'title':bd(0x1d3),'id':crypto['randomUUID'](),'url':bd(0x1d0),'active':!0x0,'history':[bd(0x1d0)],'historyIndex':0x0,'isLoading':!0x1}],'frameRefs':null,'showTabs':!0x1,'showMenu':!0x1,'iframeUrls':{},'activeFrameRef':null,'showUI':!0x0,'zoomLevels':{},'wispStatus':null,'setWispStatus':b=>a({'wispStatus':b}),'toggleUI':()=>a(b=>({'showUI':!b['showUI']})),'setZoom':(b,c,af)=>{const br=bd,ag={'pHSnp':function(ai,aj){return ai/aj;}},ah=af?.['current'];ah&&(ah['style'][br(0x2f7)]='scale('+c/0x64+')',ah[br(0x12d)]['transformOrigin']='top\x20left',ah['style'][br(0x11f)]=0x64/ag[br(0x289)](c,0x64)+'%',ah[br(0x12d)][br(0x29a)]=0x64/(c/0x64)+'%'),a(ai=>({'zoomLevels':{...ai['zoomLevels'],[b]:c}}));},'resetZoom':(b,c)=>{const bs=bd,af=c?.['current'];af&&(af[bs(0x12d)]['transform']='',af['style'][bs(0x11f)]='',af['style'][bs(0x29a)]=''),a(ag=>({'zoomLevels':{...ag['zoomLevels'],[b]:0x64}}));},'setShowTabs':b=>a({'showTabs':b}),'toggleTabs':()=>a(b=>({'showTabs':!b['showTabs']})),'toggleMenu':()=>a(b=>({'showMenu':!b['showMenu']})),'setFrameRefs':b=>a({'frameRefs':b}),'addTab':b=>a(c=>({'tabs':[...c['tabs'],{...b,'history':[b[bd(0x2dd)]||bd(0x1d0)],'historyIndex':0x0,'isLoading':!0x1}]})),'removeTab':b=>a(c=>({'tabs':c['tabs'][bd(0xfa)](({id:af})=>af!=b)})),'setActive':b=>a(c=>({'tabs':c['tabs']['map'](af=>({...af,'active':af['id']===b}))})),'setLastActive':b=>a(c=>{const bu=bd,af=c[bu(0x28e)][bu(0x12e)](ah=>ah['id']===b),ag=af>0x0?af-0x1:af+0x1;return{'tabs':c['tabs'][bu(0x2be)]((ah,ai)=>({...ah,'active':ai===ag}))};}),'updateUrl':(b,c,af=!0x0)=>a(ag=>({'tabs':ag[bd(0x28e)]['map'](ah=>{const bv=bd,ai={'WFpNF':function(aj,ak){return aj!==ak;},'EWyER':function(aj,ak){return aj===ak;},'OMbZa':function(aj,ak){return aj+ak;},'hlzdI':bv(0x1d0)};if(ai[bv(0x230)](ah['id'],b)||!c||typeof c==bv(0xed)&&ai[bv(0x1a1)](c['trim'](),''))return ah;if(af){const aj=[...ah[bv(0x278)]['slice'](0x0,ai[bv(0x28b)](ah[bv(0x359)],0x1)),c];return{...ah,'url':c,'history':aj,'historyIndex':aj['length']-0x1,'isLoading':c!=='tabs://new'};}return{...ah,'url':c,'isLoading':c!==ai[bv(0x348)]};})})),'updateTitle':(b,c)=>a(af=>({'tabs':af[bd(0x28e)][bd(0x2be)](ag=>ag['id']===b?{...ag,'title':c}:ag)})),'setLoading':(b,c)=>a(af=>({'tabs':af['tabs']['map'](ag=>ag['id']===b?{...ag,'isLoading':c}:ag)})),'refreshTab':b=>{const bw=bd,c=E[bw(0x125)]()['frameRefs']?.['current']?.[b];c?.['contentWindow']&&c['contentWindow'][bw(0x2ed)]['reload']();},'goBack':(b,c)=>{a(af=>{const bx=f,ag={'pBhwe':function(ak,al){return ak<=al;},'VlVOJ':function(ak,al){return ak===al;}},ah=af[bx(0x28e)]['map'](ak=>{const by=bx;if(ak['id']!==b||ag[by(0x14a)](ak[by(0x359)],0x0))return ak;const al=ak[by(0x359)]-0x1,am=ak['history'][al];return ag[by(0x223)](am,by(0x1d0))&&c&&c(),{...ak,'url':am,'historyIndex':al,'isLoading':!0x0};}),ai=ah['find'](ak=>ak['id']===b),aj=ai?{...af[bx(0x335)],[b]:ai[bx(0x2dd)]}:af[bx(0x335)];return{'tabs':ah,'iframeUrls':aj};});},'goForward':b=>{const bz=bd,c={'AJpyM':function(af,ag){return af!==ag;},'PGxMt':function(af,ag){return af-ag;},'yXvww':function(af,ag){return af+ag;},'RvDjy':function(af,ag){return af(ag);}};c[bz(0x244)](a,af=>{const bA=bz,ag=af[bA(0x28e)][bA(0x2be)](aj=>{const bB=bA;if(c[bB(0x15e)](aj['id'],b)||aj[bB(0x359)]>=c['PGxMt'](aj[bB(0x278)][bB(0x1e5)],0x1))return aj;const ak=c['yXvww'](aj[bB(0x359)],0x1);return{...aj,'url':aj['history'][ak],'historyIndex':ak,'isLoading':!0x0};}),ah=ag[bA(0x17a)](aj=>aj['id']===b),ai=ah?{...af[bA(0x335)],[b]:ah['url']}:af[bA(0x335)];return{'tabs':ag,'iframeUrls':ai};});},'setIframeUrl':(b,c)=>a(af=>({'iframeUrls':{...af['iframeUrls'],[b]:c}})),'updateActiveFrameRef':b=>a({'activeFrameRef':b}),'clearStore':({showTb:b})=>a(()=>({'tabs':[{'title':'New\x20Tab','id':crypto[bd(0x316)](),'url':bd(0x1d0),'active':!0x0,'history':['tabs://new'],'historyIndex':0x0,'isLoading':!0x1}],'frameRefs':null,'showTabs':b,'iframeUrls':{}}))})),Ue=h['createContext'](),ge=()=>{const bC=bd;try{return JSON['parse'](localStorage[bC(0x2fb)](bC(0x147))||'{}');}catch{return{};}},bt=({children:a})=>{const bD=bd,b={'spvja':bD(0x147),'EsLRW':function(ai,aj){return ai!=aj;},'EfJHi':function(ai,aj){return ai(aj);}},[c,af]=h['useState'](ge);h['useEffect'](()=>{const bE=bD;try{localStorage[bE(0x2df)](b[bE(0x1a2)],JSON[bE(0x2f6)](c));}catch{}},[c]);const ag=h[bD(0x255)]((ai,aj=!0x0)=>{const bF=bD;if(!ai||b['EsLRW'](typeof ai,'object'))return;const ak={...ge(),...ai};try{localStorage[bF(0x2df)](b[bF(0x1a2)],JSON[bF(0x2f6)](ak));}catch{}aj&&b['EfJHi'](af,al=>({...al,...ai}));},[]),ah=h['useMemo'](()=>({'options':c,'updateOption':ag}),[c,ag]);return g['jsx'](Ue[bD(0x26b)],{'value':ah,'children':a});},R=()=>{const bG=bd,a=h['useContext'](Ue);if(!a)throw new Error(bG(0x21d));return a;},xt=()=>{const bH=bd,b={'LdlPO':'flex\x20flex-1\x20flex-shrink\x20px-2\x20h-[calc(100%-7px)]\x20min-w-[60px]\x20max-w-[200px]','PwIds':'#111e2fb0','ayyIc':bH(0x1b2),'eiGKF':function(am,an){return am===an;},'Lkhdw':'cursor-pointer','AIUsi':function(am,an){return am(an);},'EeuNQ':'tabs://new','CFOUg':'div','UUvVq':function(am,an,ap){return am(an,ap);},'KkIpm':bH(0x118),'Fcxbk':'hidden','GMpfD':bH(0x13c),'GwPcU':bH(0x22b),'DsisB':function(am,an){return am>=an;},'OFQQz':bH(0x218)},{tabs:c,addTab:af,removeTab:ag,setActive:ah,showTabs:ai,setLastActive:aj,showUI:ak}=E(),{options:al}=R();return g[bH(0x137)](b[bH(0x2a1)],{'className':b['UUvVq'](o,'h-10\x20items-center\x20overflow-hidden\x20gap-1\x20px-1',ai&&ak?b[bH(0x1c5)]:b['Fcxbk']),'style':{'backgroundColor':al['tabBarColor']||'#070e15'},'children':[c['map'](({title:am,id:an,active:ap,isLoading:aq,url:ar})=>{const bI=bH,as={'BLeDb':function(av,aw){return av(aw);}},au=ar==='tabs://new'||!aq;return g['jsxs'](bI(0x2b4),{'className':o(b[bI(0xf7)],bI(0x1c6)),'onClick':()=>ah(an),'style':{'backgroundColor':ap?al[bI(0x2d9)]||b[bI(0x17b)]:'','borderColor':ap?al[bI(0x1b4)]||bI(0x2c5):'#ffffff0c'},'children':[au?g['jsx'](l,{'size':0xf,'className':'flex-shrink-0'}):g['jsx'](m,{'size':0xf,'className':b['ayyIc']}),g[bI(0x194)]('span',{'className':'truncate\x20text-[0.79rem]\x20ml-1\x20min-w-0','children':b[bI(0xf0)](ar,'tabs://new')?bI(0x1d3):am}),g['jsx'](n,{'size':0xd,'className':o(bI(0x20c),c['length']<0x2?'cursor-not-allowed\x20opacity-50':b['Lkhdw']),'onClick':av=>{const bJ=bI;av[bJ(0x2f9)](),c[bJ(0x1e5)]>0x1&&(ap&&as[bJ(0x247)](aj,an),ag(an));}})]},an);}),g['jsx'](bH(0x256),{'disabled':c[bH(0x1e5)]>=0x14,'className':o('flex-none\x20mx-1\x20w-6\x20h-6','flex\x20items-center\x20justify-center',b['GMpfD'],al[bH(0x187)]!=b[bH(0x183)]?bH(0x144):bH(0x176),b['DsisB'](c[bH(0x1e5)],0x14)?b[bH(0x193)]:''),'onClick':()=>{const bK=bH;if(c['length']<0x14){let am=crypto['randomUUID']();b[bK(0x1ad)](af,{'title':'New\x20Tab','id':am,'url':b['EeuNQ']}),ah(am);}},'children':g[bH(0x194)](p,{'size':0xf})})]});},he=new TextEncoder()['encode'](btoa(new Date()[bd(0x2d3)]()['slice'](0x0,0xa)+location[bd(0x14b)])[bd(0x276)]('')['reverse']()[bd(0x23e)]('')['slice'](6.7)),J={'enc':a=>{const bL=bd,b={'QGOZW':function(c,af){return c^af;}};if(!a)return a;try{const c=new TextEncoder()['encode'](a),af=new Uint8Array(c[bL(0x1e5)]);for(let ag=0x0;ag<c[bL(0x1e5)];ag++)af[ag]=b['QGOZW'](c[ag],he[ag%0x8]);return Array['from'](af,ah=>ah['toString'](0x10)['padStart'](0x2,'0'))['join']('');}catch{return a;}},'dnc':b=>{const bM=bd,c={'MmrSs':function(af,ag){return af-ag;},'wTQaz':function(af,ag){return af+ag;},'xAPMi':function(af,ag){return af<=ag;},'VNvgj':function(af,ag){return af<ag;},'PTsOv':function(af,ag){return af<<ag;},'HSDAa':function(af,ag){return af+ag;}};if(!b)return b;try{const af=c[bM(0x340)](Math['min'](b['indexOf']('?')+0x1||b[bM(0x1e5)]+0x1,c[bM(0x30b)](b[bM(0x19d)]('#'),0x1)||b[bM(0x1e5)]+0x1,b['indexOf']('&')+0x1||b['length']+0x1),0x1);let ag=0x0;for(let aj=0x0;aj<af&&aj<b[bM(0x1e5)];aj++){const ak=b[bM(0x1e8)](aj);if(!(ak>=0x30&&ak<=0x39||ak>=0x41&&c[bM(0x27a)](ak,0x46)||ak>=0x61&&ak<=0x66))break;ag=aj+0x1;}if(c[bM(0x254)](ag,0x2)||ag%0x2)return decodeURIComponent(b);const ah=ag>>0x1,ai=new Uint8Array(ah);for(let al=0x0;al<ah;al++){const am=c[bM(0x2a0)](al,0x1);ai[al]=parseInt(b[am]+b[am+0x1],0x10)^he[al%0x8];}return c['HSDAa'](new TextDecoder()[bM(0x1e6)](ai),b['slice'](ag));}catch{return decodeURIComponent(b);}}},vt=()=>({'encode':'(s)\x20=>\x20{\x0a\x20\x20\x20\x20if\x20(!s)\x20return\x20s;\x0a\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20const\x20k\x20=\x20new\x20TextEncoder().encode(\x0a\x20\x20\x20\x20\x20\x20\x20\x20btoa(new\x20Date().toISOString().slice(0,\x2010)\x20+\x20location.host)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.split(\x27\x27)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.reverse()\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.join(\x27\x27)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.slice(6.7)\x0a\x20\x20\x20\x20\x20\x20);\x0a\x20\x20\x20\x20\x20\x20const\x20d\x20=\x20new\x20TextEncoder().encode(s),\x0a\x20\x20\x20\x20\x20\x20\x20\x20o\x20=\x20new\x20Uint8Array(d.length);\x0a\x20\x20\x20\x20\x20\x20for\x20(let\x20i\x20=\x200;\x20i\x20<\x20d.length;\x20i++)\x20o[i]\x20=\x20d[i]\x20^\x20k[i\x20%\x208];\x0a\x20\x20\x20\x20\x20\x20return\x20Array.from(o,\x20(b)\x20=>\x20b.toString(16).padStart(2,\x20\x270\x27)).join(\x27\x27);\x0a\x20\x20\x20\x20}\x20catch\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20s;\x0a\x20\x20\x20\x20}\x0a\x20\x20}','decode':bd(0x24d)}),yt=(a,b)=>{const bN=bd,c={'BTvuM':'localhost','FdcrW':function(ag,ah){return ag+ah;}},af=a['trim']();return af?/^https?:\/\//i['test'](af)||/^[\w-]+\.[\w.-]+/i[bN(0x1c2)](af)||af['startsWith'](c['BTvuM'])?af[bN(0x103)]('http')?af:bN(0xe2)+af:c[bN(0x367)](b,encodeURIComponent(af)):'';},A=(b,c=!0x1,af,ag='https://www.google.com/search?q=')=>{const bO=bd,ah={'KVoEh':'/ham/','BhACa':'scr'},ai='/portal/k12/',aj=ah[bO(0x2e0)];let ak;switch(af){case'uv':ak=ai;break;case ah[bO(0x160)]:ak=aj;break;default:ak=aj;}if(c){const al=b['split'](ai)[0x1],am=b[bO(0x276)](aj)[0x1],an=al?J[bO(0x11e)](al):am?J['dnc'](am):b;return an[bO(0x124)]('/')?an['slice'](0x0,-0x1):an;}else{const ap=yt(b,ag);if(!ap||ap['trim']()==='')return null;const aq=J['enc'](ap);return location['protocol']+'//'+location['host']+ak+aq;}};function Ct(a){const bP=bd,b={'rTkkI':'iframe','wRbYM':bP(0x119)};var c=window[bP(0x273)]();c[bP(0x19e)]['body']['style']['margin']='0',c['document'][bP(0x31f)][bP(0x12d)]['height']=bP(0x1a6);var af=c['document'][bP(0xe0)](b['rTkkI']);af['style']['border']='none',af[bP(0x12d)]['width']=b[bP(0x14e)],af[bP(0x12d)][bP(0x29a)]=b[bP(0x14e)],af['style']['margin']='0',af['src']=a,c[bP(0x19e)][bP(0x31f)]['appendChild'](af);}const D=({Icon:a,size:b=0xf,action:c=()=>alert('nothing\x20here\x20yet'),disabled:af=!0x1})=>{const bQ=bd,ag={'HfOTZ':function(ai){return ai();},'RESlI':bQ(0x256),'HaeRE':'light'},{options:ah}=ag[bQ(0x156)](R);return g['jsx'](ag[bQ(0x2fc)],{'className':o(bQ(0x198),'h-6\x20w-7\x20rounded-md',af?'cursor-not-allowed\x20opacity-70':'',ah[bQ(0x187)]!=ag[bQ(0xeb)]?bQ(0x2ea):'hover:bg-[#97979773]'),'onClick':ai=>{af||c(ai);},'children':g[bQ(0x194)](a,{'size':b})});},kt=()=>{const bR=bd,c={'RkthL':'scr','DtSCS':function(aC,aD){return aC(aD);},'eOEMZ':bR(0xe2),'MtYYv':function(aC,aD){return aC===aD;},'fqiqZ':function(aC,aD,aE,aF,aG){return aC(aD,aE,aF,aG);},'hrsda':function(aC){return aC();},'FyZDL':function(aC){return aC();},'bEHhn':'#06080d8f','MqCvi':'Search\x20with\x20Google\x20or\x20enter\x20address'},[af,ag]=h[bR(0x195)](q),ah=E(aC=>aC['tabs']['find'](aD=>aD[bR(0x1fd)])),{updateUrl:ai,refreshTab:aj,goBack:ak,goForward:al,toggleTabs:am,toggleMenu:an,showUI:ap}=E(),aq=h['useRef'](null),{options:ar}=c[bR(0x162)](R),{state:as}=r(),au=s(),{iframeUrls:av}=E(),aw=aC=>aC?.['includes']('portal/k12/')||aC?.['includes']('ham/'),ax=aC=>!aC||aC==='tabs://new'||aC['endsWith'](bR(0x283)),ay=aC=>{const bS=bR;if(ax(aC))ag(q);else{if(aw(aC)){const aD=A(aC,!0x0,ar['prType']||c[bS(0x2dc)],ar['engine']||void 0x0);ag(aD[bS(0x103)]('https://')?I:q);}else c[bS(0x2a5)](ag,q);}},az=aC=>{const bT=bR;if(c[bT(0x2a5)](ax,aC))return'';if(aw(aC)){const aD=A(aC,!0x0,ar[bT(0x246)]||bT(0x21e),ar['engine']||void 0x0);return aD['startsWith'](c['eOEMZ'])?aD[bT(0x358)](0x8):aD;}return aC;},[aA,aB]=h['useState'](c[bR(0x2a5)](az,ah?.['url']));return h[bR(0xf3)](()=>{const bU=bR,aC=av[ah?.['id']];c[bU(0x253)](ah?.[bU(0x2dd)],'tabs://new')?aB(''):aC&&aC!=='about:blank'&&(aB(az(aC)),ay(aC));},[av,ah?.['id']]),h[bR(0xf3)](()=>{const bV=bR;if(as?.[bV(0x2dd)]&&ah){const aC=A(as['url'],!0x1,ar[bV(0x246)]||bV(0x21e),ar['engine']||void 0x0);aC&&ai(ah['id'],aC),au('.',{'replace':!0x0,'state':{}});}},[as?.['url'],ah?.['id']]),h[bR(0xf3)](()=>{ah&&ay(ah['url']);},[ah]),g[bR(0x137)]('div',{'className':o('h-10\x20flex\x20items-center\x20overflow-hidden\x20gap-1\x20px-2',ap?'':'hidden'),'children':[g[bR(0x194)](D,{'Icon':u,'size':'17','action':()=>ah&&ak(ah['id'],()=>{aB('');})}),g[bR(0x194)](D,{'Icon':w,'size':'17','action':()=>ah&&al(ah['id'])}),g['jsx'](D,{'Icon':x,'size':'16','action':()=>ah&&aj(ah['id'])}),g[bR(0x137)](bR(0x2b4),{'className':o('\x20h-[calc(100%-8px)]\x20w-full',bR(0x364)),'style':{'backgroundColor':ar[bR(0x1ca)]||c['bEHhn'],'borderColor':ar['type']==bR(0x22b)?'#a1a1a173':bR(0x206)},'children':[g['jsx'](af,{'size':'15'}),g[bR(0x194)](bR(0xf8),{'className':bR(0x225),'placeholder':c['MqCvi'],'onSelect':()=>ag(y),'onBlur':()=>ay(av[ah?.['id']]),'value':aA,'ref':aq,'onChange':aC=>aB(aC[bR(0x2c4)]['value']),'onKeyDown':aC=>{const bW=bR;if(aC['key']===bW(0x142)&&ah&&aA['length']!==0x0){const aD=c['fqiqZ'](A,aA,!0x1,ar['prType']||c[bW(0x2dc)],ar[bW(0xf2)]||void 0x0);aD&&ai(ah['id'],aD),aq[bW(0x18b)]['blur']();}}})]}),g[bR(0x194)](D,{'Icon':z,'size':'15','action':()=>Ct(ah?.[bR(0x2dd)]),'disabled':ah?.['url']==bR(0x1d0)}),g['jsx'](D,{'Icon':B,'size':'17','action':am}),g[bR(0x194)](D,{'Icon':C,'size':'17','action':aC=>{const bX=bR;aC?.[bX(0x2f9)](),c['hrsda'](an);}})]});},jt=(a,b)=>{let c;return(...af)=>{c||(a['apply'](void 0x0,af),c=!0x0,setTimeout(()=>c=!0x1,b));};},Nt={'color':bd(0x211),'size':0x96,'blur':0x14,'opacity':0.4,'transition':0xc8};function St(b={}){const bY=bd,c={'STUrr':function(ar,as){return ar-as;},'aaXRS':bY(0x159),'wxhxQ':function(ar,as,au){return ar(as,au);},'pXxHa':'div'},af=h[bY(0x35c)](null),ag=h[bY(0x35c)](null),[ah,ai]=h[bY(0x195)](!0x1),aj=h[bY(0x35c)](!0x1),ak=h[bY(0x267)](()=>({...Nt,...b}),[b]),al=h[bY(0x267)](()=>({'position':'absolute','pointerEvents':bY(0x1e3),'zIndex':0xa,'width':ak['size']+'px','height':ak['size']+'px','background':'radial-gradient(circle,\x20rgba('+ak['color']+',\x20'+ak[bY(0x203)]+')\x200%,\x20rgba('+ak[bY(0x277)]+',\x20'+ak['opacity']*0.5+bY(0x239),'borderRadius':'50%','filter':'blur('+ak[bY(0x13b)]+bY(0x304),'transition':bY(0x28c)+ak['transition']+bY(0x2ae),'willChange':bY(0x25a),'transform':bY(0x1e2)}),[ak[bY(0x2f4)],ak[bY(0x277)],ak['opacity'],ak[bY(0x13b)],ak[bY(0x2a9)]]),am=h['useCallback'](c['wxhxQ'](jt,ar=>{const bZ=bY;if(!af[bZ(0x18b)]||!ag['current']||!aj[bZ(0x18b)])return;const as=af['current']['getBoundingClientRect'](),au=ar[bZ(0x1bf)]-as[bZ(0x363)],av=c['STUrr'](ar[bZ(0x263)],as['top']);ag[bZ(0x18b)]['style'][bZ(0x2f7)]='translate3d('+(au-ak[bZ(0x2f4)]/0x2)+bZ(0x2b8)+(av-ak[bZ(0x2f4)]/0x2)+'px,\x200)';},0x8),[ak[bY(0x2f4)]]),an=h['useCallback'](()=>{ai(!0x0),aj['current']=!0x0;},[]),ap=h['useCallback'](()=>{ai(!0x1),aj['current']=!0x1;},[]);h['useEffect'](()=>{const c0=bY,ar=af['current'];if(ar)return ar['addEventListener'](c['aaXRS'],an,{'passive':!0x0}),ar['addEventListener'](c0(0x319),ap,{'passive':!0x0}),ar['addEventListener'](c0(0x2e5),am,{'passive':!0x0}),()=>{const c1=c0;ar[c1(0x2e7)](c[c1(0x274)],an),ar['removeEventListener']('mouseleave',ap),ar[c1(0x2e7)]('mousemove',am);};},[an,ap,am]);const aq=g['jsx'](c['pXxHa'],{'ref':ag,'style':{...al,'opacity':ah?0x1:0x0}});return{'elementRef':af,'glowElement':aq,'isHovering':ah};}function It({children:b,className:c='',glowOptions:af={},as:ag=bd(0x2b4),style:ah={},...ai}){const c2=bd,{elementRef:aj,glowElement:ak}=St(af),al=h['useMemo'](()=>({'position':'relative','overflow':'hidden','isolation':'isolate','contain':c2(0x361),...ah}),[ah]);return g['jsxs'](ag,{'ref':aj,'className':c,'style':al,...ai,'children':[ak,b]});}const de=h['memo'](({options:b,action:c,width:af,height:ag})=>{const c3=bd,ah={'nXXll':function(al,am){return al===am;},'NRyVU':function(al,am){return al&&am;},'uIyjc':function(al){return al();},'ruLqh':c3(0x2aa),'DZwML':c3(0x1c7)},{options:ai}=ah[c3(0x169)](R),aj=h['useMemo'](()=>{const c4=c3,al=ah[c4(0x148)](ai['type'],'light')?{'filter':'invert(80%)'}:{},am={...ah['NRyVU'](af,{'width':af}),...ah[c4(0x285)](ag,{'height':ag})};return{...al,...am};},[ai['type'],af,ag]),ak=h['useMemo'](()=>o(b,c&&c3(0x342),c3(0x245)),[b,c]);return g[c3(0x194)](ah['ruLqh'],{'src':ah[c3(0x284)],'className':ak,'id':'btn-logo','draggable':c3(0x131),'alt':c3(0x1bb),'onClick':c,'style':aj});});de['displayName']='Logo';const Et=bd(0x338),Tt=bd(0xe4),Lt='n41p11g\x20o0gsndl\x20gkg691q\x20adrf5bz\x20qgh5ttg\x20gqudx43',Bt=bd(0x1b8),Z={'nav-backgroundColor':bd(0x25b),'searchBarColor':Et,'searchResultStyle':Tt,'settings-panelColor':'pybsoze\x20ipkhodn','settings-contentColor':'eksfati','appsSearchColor':Lt,'appItemColor':Bt,'theme-default':bd(0x114),'theme-mocha':'qbdlwh5','theme-dark':'a3c346o','theme-light':'fchm60m','theme-forest':'h9g93nb','theme-stellar':bd(0x2fd),'theme-paper':bd(0x11d)},Rt=h[bd(0xf1)](function({logo:c=!0x0,cls:af,nav:ag=!0x0,navigating:ah}){const c5=bd,ai={'oRPXn':function(aA,aB){return aA(aB);},'wJQYl':function(aA,aB){return aA+aB;},'ybNDZ':c5(0x258),'cPVZR':function(aA,aB){return aA(aB);},'rRejt':c5(0x2e4),'qoVcL':function(aA,aB){return aA&&aB;},'aFcfL':c5(0x24e),'wMUMp':'255,\x20255,\x20255','xgabq':c5(0x205),'obqOF':function(aA,aB,aC,aD,aE){return aA(aB,aC,aD,aE);},'gPMKT':'rounded-[14px]','ovNcp':c5(0x122),'VCiTo':c5(0x32e),'ZQaND':'input','CSoIE':c5(0x154),'RMlXE':c5(0x2a4),'jYXzk':'div'},[aj,ak]=h[c5(0x195)](''),[al,am]=h[c5(0x195)]([]),an=h['useRef'](null),ap=h[c5(0x35c)](''),aq=s(),{options:ar}=R(),as=h[c5(0x255)](async aA=>{const c6=c5;if(!aA[c6(0x2bd)]()){am([]);return;}ap[c6(0x18b)]=aA;try{const aB=await ai[c6(0x1de)](fetch,ai['wJQYl'](ai['ybNDZ'],ai['oRPXn'](encodeURIComponent,aA)));if(!aB['ok'])return am([]);const aC=await aB['json']();if(ap[c6(0x18b)]!==aA)return;const aD=Array[c6(0x168)](aC)?aC['filter'](aE=>aE[c6(0x1cf)])['slice'](0x0,0x4):[];h['startTransition'](()=>am(aD));}catch{ap[c6(0x18b)]===aA&&am([]);}},[]),au=aA=>{const c7=c5;if(ag)aq(c7(0x27b),{'state':{'url':aA}});else{const aB=ah[c7(0x150)](aA);aB&&ah['go'](ah['id'],aB);}},av=h['useCallback'](aA=>{const c8=c5,aB=aA['target'][c8(0x293)];if(ak(aB),an[c8(0x18b)]&&clearTimeout(an['current']),!aB[c8(0x2bd)]()){ap[c8(0x18b)]='',am([]);return;}an['current']=setTimeout(()=>as(aB),0x12c);},[as]),aw=h['useCallback'](aA=>{const c9=c5;if(aA['key']!=='Enter')return;const aB=aj[c9(0x2bd)]();aB&&au(aB);},[aj,au]),ax=h['useCallback'](aA=>{au(aA);},[au]);h['useEffect'](()=>()=>an[c5(0x18b)]&&clearTimeout(an[c5(0x18b)]),[]);const ay=h[c5(0x267)](()=>'Search\x20'+(ar['engineName']||c5(0x10b))+'\x20or\x20type\x20URL',[ar['engineName']]),az=h['useMemo'](()=>ar['engineIcon']??c5(0x141),[ar['engineIcon']]);return g['jsxs'](c5(0x2b4),{'className':ai[c5(0x157)](o,af||ai['rRejt']),'data-m':!af&&c5(0x11c),'data-m-duration':ai['qoVcL'](!af,'0.8'),'children':[c&&g[c5(0x194)](de,{'options':ai['aFcfL']}),g['jsx'](It,{'glowOptions':{'color':ar['glowWrapperColor']||ai[c5(0x175)],'size':0x46,'opacity':0.2},'children':g[c5(0x137)]('div',{'className':'w-[40.625rem]','children':[g['jsxs'](c5(0x2b4),{'id':ai['xgabq'],'className':ai[c5(0x164)](o,c5(0x26c),al['length']?'rounded-t-[14px]\x20rounded-b-none':ai[c5(0x2fa)],Z[c5(0x26d)],Z['theme-'+(ar[c5(0xee)]||'default')]),'children':[az?g['jsx']('img',{'src':az,'className':ai['ovNcp'],'alt':c5(0x2ba),'loading':ai[c5(0x2ab)]}):g['jsx'](L,{'size':0x16}),g['jsx'](ai[c5(0x30f)],{'type':ai['CSoIE'],'placeholder':ay,'className':c5(0x2b5),'autoComplete':c5(0x257),'value':aj,'onChange':av,'onKeyDown':aw}),g['jsx'](y,{'className':ai[c5(0x301)]})]}),al['length']>0x0&&g['jsx'](ai[c5(0x323)],{'className':o(c5(0xe9),Z[c5(0x22a)],Z['theme-'+(ar[c5(0xee)]||c5(0x208))]),'children':al[c5(0x2be)](aA=>g[c5(0x137)]('div',{'className':'rounded-[9px]\x20w-full\x20h-11\x20hover:bg-[#d4d4d418]\x20cursor-pointer\x20duration-100\x20ease-in\x20px-3\x20pl-2.5\x20flex\x20items-center','onClick':()=>ax(aA[c5(0x1cf)]),'children':[g['jsxs']('svg',{'xmlns':c5(0x357),'width':'16','height':'16','viewBox':'0\x200\x2024\x2024','fill':c5(0x1e3),'stroke':c5(0x1a3),'strokeWidth':'2','strokeLinecap':'round','strokeLinejoin':'round','style':{'marginRight':c5(0x26f)},'children':[g['jsx'](c5(0x332),{'cx':'11','cy':'11','r':'8'}),g[c5(0x194)]('path',{'d':'m21\x2021-4.3-4.3'})]}),g['jsx']('span',{'className':'text-[15px]','children':aA['phrase']})]},aA[c5(0x1cf)]))})]})})]});}),se=({name:b,type:c,state:af})=>{const ca=bd,{options:ag}=R(),[ah,ai]=af;return g['jsxs'](T,{'children':[g['jsx'](U,{'className':ca(0x322),'children':b}),g['jsx'](V,{'className':o(ca(0x22f),ag[ca(0x187)]=='light'?'bg-black/15':ca(0x1e7)),'value':ah[c],'onChange':aj=>ai({...ah,[c]:aj['target'][ca(0x293)]})})]});},Ut=({state:b,set:c,update:af})=>{const cb=bd,ag={'xoYsB':function(ap,aq){return ap(aq);},'suVJr':'fixed\x20inset-0\x20bg-black/40\x20z-50','dejoT':cb(0x2b4),'LQfMY':cb(0x262),'vzlOR':cb(0x238),'BvZUR':cb(0x1eb),'cuqhn':function(ap,aq,ar){return ap(aq,ar);},'PHoFa':'cursor-not-allowed\x20opacity-70'},{options:ah}=R(),[ai,aj]=h[cb(0x195)]({'name':'','icon':'','link':''}),ak=ap=>/^(https?:)?\/\//[cb(0x1c2)](ap)?ap:'https://'+ap,al=()=>aj({'name':'','icon':'','link':''}),am=()=>{const cc=cb;c(!0x1),af({...ai,'link':ag[cc(0x20a)](ak,ai['link'][cc(0x2bd)]()),'icon':ak(ai[cc(0x238)][cc(0x2bd)]())}),al();},an=()=>!!(ai[cb(0x10e)]&&ai['link']);return g['jsx'](g['Fragment'],{'children':g[cb(0x194)](N,{'open':b,'onClose':()=>c(!0x1),'className':ag[cb(0x2a7)],'children':g['jsx'](ag['dejoT'],{'className':'flex\x20justify-center\x20items-center\x20h-full','children':g['jsxs'](O,{'className':cb(0x324),'style':{'backgroundColor':ah['quickModalBgColor']||cb(0x306)},'children':[g['jsx'](P,{'className':'text-[1rem]\x20mb-1','children':cb(0x28f)}),g[cb(0x194)](se,{'name':cb(0x2d5),'type':'name','state':[ai,aj]}),g[cb(0x194)](se,{'name':'URL','type':cb(0x326),'state':[ai,aj]}),g['jsx'](se,{'name':ag[cb(0x2eb)],'type':ag['vzlOR'],'state':[ai,aj]}),g['jsxs'](cb(0x2b4),{'className':ag[cb(0x133)],'children':[g[cb(0x194)](S,{'onClick':()=>{c(!0x1),al();},'className':'cursor-pointer\x20duration-150\x20hover:opacity-80','children':'Cancel'}),g[cb(0x194)](S,{'onClick':an()&&(()=>am()),'className':ag['cuqhn'](o,an()?'cursor-pointer\x20hover:opacity-80':ag['PHoFa'],'duration-150'),'children':cb(0x271)})]})]})})})});},re=({name:b,type:c,state:af})=>{const cd=bd,ag={'jhHRg':'text-[0.7rem]','JJeTI':function(ak,al){return ak==al;},'DWhZT':'light','HzEun':'bg-black/35'},{options:ah}=R(),[ai,aj]=af;return g['jsxs'](T,{'children':[g[cd(0x194)](U,{'className':ag[cd(0x355)],'children':b}),g[cd(0x194)](V,{'className':o('w-full\x20h-10\x20pl-3\x20rounded-lg\x20outline-0\x20border',ag['JJeTI'](ah['type'],ag['DWhZT'])?'bg-black/15':ag['HzEun']),'value':ai[c],'onChange':ak=>aj({...ai,[c]:ak[cd(0x2c4)]['value']})})]});},Pt=({state:b,set:c,update:af,initialData:ag})=>{const cf=bd,ah={'dwlCI':function(aq,ar){return aq(ar);},'nqKow':function(aq,ar){return aq(ar);},'btAhY':function(aq){return aq();},'bkYRd':'text-[1rem]\x20mb-1','VTKqL':cf(0x2d5),'AnsyH':cf(0x17e),'CWmZq':'link','NNpdc':'Icon\x20URL','EJWre':cf(0x2b4),'KEVth':'cursor-pointer\x20duration-150\x20hover:opacity-80','KyxIC':'cursor-pointer\x20hover:opacity-80','UXlIe':cf(0x1a5)},{options:ai}=ah[cf(0x165)](R),[aj,ak]=h['useState']({'name':'','icon':'','link':''});h['useEffect'](()=>{const cg=cf;ag&&b&&ak({'name':ag[cg(0x10e)]||'','icon':ag['icon']||'','link':ag['link']||''});},[ag,b]);const al=aq=>/^(https?:)?\/\//[cf(0x1c2)](aq)?aq:'https://'+aq,am=()=>{ak({'name':'','icon':'','link':''});},an=()=>{const ch=cf;ah['dwlCI'](c,!0x1),af({...aj,'link':ah[ch(0x1c8)](al,aj['link']['trim']()),'icon':ah[ch(0x31b)](al,aj['icon'][ch(0x2bd)]())}),ah['btAhY'](am);},ap=()=>aj['name']&&aj[cf(0x326)];return g['jsx'](N,{'open':b,'onClose':()=>c(!0x1),'className':'fixed\x20inset-0\x20bg-black/40\x20z-50','children':g['jsx']('div',{'className':cf(0x1bc),'children':g['jsxs'](O,{'className':cf(0x324),'style':{'backgroundColor':ai['quickModalBgColor']||cf(0x306)},'children':[g['jsx'](P,{'className':ah['bkYRd'],'children':'Edit\x20shortcut'}),g['jsx'](re,{'name':ah['VTKqL'],'type':'name','state':[aj,ak]}),g['jsx'](re,{'name':ah['AnsyH'],'type':ah[cf(0x161)],'state':[aj,ak]}),g[cf(0x194)](re,{'name':ah['NNpdc'],'type':'icon','state':[aj,ak]}),g[cf(0x137)](ah['EJWre'],{'className':cf(0x1eb),'children':[g['jsx'](S,{'onClick':()=>{const ci=cf;ah[ci(0x31b)](c,!0x1),am();},'className':ah['KEVth'],'children':cf(0x15a)}),g['jsx'](S,{'onClick':ap()&&(()=>an()),'className':o(ap()?ah[cf(0x2ee)]:ah['UXlIe'],'duration-150'),'children':'Save'})]})]})})});},Pe=({cls:c,nav:af=!0x0,navigating:ag})=>{const cj=bd,ah={'Kbeio':cj(0x31a),'Ntxkz':cj(0x2f3),'NmEsW':function(aC,aD){return aC===aD;},'jAXSm':'/assets/img/fyhn.ico','TIzqr':'hover:backdrop-blur','eXGUj':function(aC,aD,aE){return aC(aD,aE);},'bjMkQ':cj(0x352),'AHcdl':cj(0x2b4),'XsLjR':function(aC,aD){return aC!=aD;}},{options:ai,updateOption:aj}=R(),ak=s(),[al,am]=h['useState']({}),[an,ap]=h['useState'](null),[aq,ar]=h['useState']({'add':!0x1,'edit':!0x1,'index':null}),[as,au]=h['useState'](!0x1),av=h[cj(0x35c)](null),aw=[{'link':cj(0x2c3),'icon':'https://google.com/favicon.ico','name':cj(0x10b)},{'link':cj(0x1c9),'icon':ah['jAXSm'],'name':cj(0x288)},{'link':'https://discord.com','icon':cj(0x17d),'name':'Discord'},{'link':'https://github.com','icon':'/assets/img/icogh.ico','name':'GitHub'}],[ax,ay]=h[cj(0x195)](()=>{try{return JSON['parse'](localStorage['getItem']('options'))?.['quickLinks']||aw;}catch{return aw;}}),az=aC=>{const ck=cj;if(af)ak(ck(0x27b),{'state':{'url':aC}});else{const aD=ag['process'](aC);aD&&ag['go'](ag['id'],aD);}};h[cj(0xf3)](()=>{const cl=cj,aC=aF=>!av[cl(0x18b)]?.['contains'](aF['target'])&&ap(null),aD=aF=>aF[cl(0x1ef)]===cl(0x1a9)&&au(!0x0),aE=aF=>aF['key']===cl(0x1a9)&&au(!0x1);return document['addEventListener'](ah['Kbeio'],aC),document[cl(0xe6)](cl(0x27c),aD),document['addEventListener']('keyup',aE),()=>{const cm=cl;document[cm(0x2e7)](ah['Kbeio'],aC),document[cm(0x2e7)](cm(0x27c),aD),document['removeEventListener'](ah[cm(0x251)],aE);};},[]),h['useEffect'](()=>aj({'quickLinks':ax}),[ax]),h['useEffect'](()=>{am({});},[ax]);const aA=o(cj(0x2c0),ah['NmEsW'](ai['type'],cj(0x290))?cj(0x237):'border-2\x20hover:border-[#4f4f4f1c]',ah['TIzqr']),aB=cj(0x16e);return g[cj(0x137)](cj(0x2b4),{'className':ah['eXGUj'](o,cj(0x22c),c||cj(0x242)),'children':[ax['map']((aC,aD)=>g[cj(0x137)]('div',{'className':aA,'onClick':()=>az(aC[cj(0x326)]),'children':[g[cj(0x137)]('div',{'ref':an===aD?av:null,'onClick':aE=>{const cn=cj;aE[cn(0x2f9)](),as?ay(ax[cn(0xfa)]((aF,aG)=>aG!==aD)):ap(ah['NmEsW'](an,aD)?null:aD);},'className':o(cj(0x344),an===aD?'opacity-100':'opacity-0\x20group-hover:opacity-100'),'children':[as?g[cj(0x194)](a0,{'size':'16','className':cj(0x186)}):g['jsx'](a1,{'size':'16','className':'opacity-50'}),an===aD&&g[cj(0x137)](cj(0x2b4),{'className':'absolute\x20top-5\x20right-0\x20rounded-md\x20shadow-lg\x20border\x20border-white/10\x20py-1\x20w-[101px]\x20z-50','style':{'backgroundColor':ai['quickModalBgColor']||'#252f3e'},'onClick':aE=>aE[cj(0x2f9)](),'children':[g[cj(0x137)](cj(0x256),{'onClick':()=>ar({'add':!0x1,'edit':!0x0,'index':aD})||ap(null),'className':'w-full\x20px-3\x20py-1.5\x20text-[0.74rem]\x20flex\x20items-center\x20gap-2\x20hover:bg-white/10\x20duration-150\x20text-left','children':[g['jsx'](a2,{'size':'14'}),'\x20Edit']}),g[cj(0x137)]('button',{'onClick':()=>ay(ax[cj(0xfa)]((aE,aF)=>aF!==aD))||ap(null),'className':'w-full\x20px-3\x20py-1.5\x20text-[0.74rem]\x20flex\x20items-center\x20gap-2\x20hover:bg-white/10\x20duration-150\x20text-left\x20text-red-400','children':[g[cj(0x194)](a3,{'size':'14'}),cj(0x337)]})]})]}),g['jsx'](cj(0x2b4),{'className':aB,'children':al[aD]?g[cj(0x194)](l,{'className':cj(0x352)}):g[cj(0x194)](cj(0x2aa),{'src':aC[cj(0x238)],'alt':aC[cj(0x10e)],'className':'w-7\x20h-7\x20object-contain','loading':cj(0x32e),'onError':()=>am(aE=>({...aE,[aD]:!0x0}))},aC['icon'])}),g[cj(0x194)]('div',{'className':cj(0x181),'children':aC[cj(0x10e)]})]},aD)),g[cj(0x137)]('div',{'className':aA,'onClick':()=>ar({'add':!0x0,'edit':!0x1,'index':null}),'children':[g[cj(0x194)]('div',{'className':aB,'children':g[cj(0x194)](p,{'className':ah['bjMkQ']})}),g[cj(0x194)](ah[cj(0xf4)],{'className':cj(0x269),'children':'New'})]}),g['jsx'](Ut,{'state':aq[cj(0x123)],'set':aC=>ar({...aq,'add':aC}),'update':aC=>ay([...ax,aC])}),g[cj(0x194)](Pt,{'state':aq[cj(0x108)],'set':aC=>ar({...aq,'edit':aC}),'initialData':ah['XsLjR'](aq[cj(0x265)],null)?ax[aq['index']]:null,'update':aC=>{const cp=cj,aD=[...ax];aD[aq[cp(0x265)]]=aC,ay(aD);}})]});};Pe[bd(0x22e)]=bd(0x149);const zt=({id:a,updateFn:b,options:c={}})=>{const cq=bd,af={'eaqNC':'div','WjyUl':'flex\x20justify-center\x20w-full','ZwyeS':cq(0x297),'rpvCJ':'mt-16'},ag={'id':a,'go':b,'process':ah=>A(ah,!0x1,c[cq(0x246)]||'scr',c[cq(0xf2)]||void 0x0)};return g[cq(0x194)]('div',{'className':'h-[calc(100%-100px)]\x20flex\x20flex-col\x20items-center\x20justify-center\x20p-6\x20gap-8','children':g[cq(0x137)]('div',{'className':cq(0x2f5),'children':[g[cq(0x194)](af['eaqNC'],{'className':af[cq(0x32a)],'children':g['jsx'](de,{'options':'w-[15.8rem]\x20h-30\x20mr-5\x20mb-2'})}),g[cq(0x194)](Rt,{'nav':!0x1,'logo':!0x1,'cls':af['ZwyeS'],'navigating':ag}),g['jsx'](Pe,{'cls':af[cq(0x2d7)],'nav':!0x1,'navigating':ag})]})});},Ot=({conf:b={}})=>{const cr=bd,c={'BbjjC':function(ay,az){return ay(az);},'VKSGP':'tabs://new','TPjHR':function(ay,az){return ay(az);},'ZSJbD':function(ay,az){return ay(az);},'MrEiA':function(ay,az){return ay(az);},'ZkQJF':function(ay){return ay();},'rDLlH':cr(0x2b4),'hfSsx':'absolute\x20inset-0\x20w-full\x20h-full'},af=c[cr(0x30c)](E,ay=>ay[cr(0x28e)]),ag=E(ay=>ay['updateUrl']),ah=E(ay=>ay['updateTitle']),ai=c[cr(0x128)](E,ay=>ay['setLoading']),aj=E(ay=>ay['setFrameRefs']);c['MrEiA'](E,ay=>ay[cr(0x106)]);const {iframeUrls:ak,setIframeUrl:al,showMenu:am,toggleMenu:an}=c[cr(0x34f)](E),ap=h['useRef']({}),aq=h['useRef']({}),ar=h['useRef']({}),{options:as}=R(),au=E(ay=>ay['updateActiveFrameRef']),av=E(ay=>ay[cr(0x28d)]),aw=b[cr(0x2f0)]??!0x0;h['useEffect'](()=>{const cs=cr;c['BbjjC'](aj,ap);const ay=new Set(af['map'](az=>az['id']));Object[cs(0x12f)](ap['current'])[cs(0x281)](az=>{const cu=cs;ay['has'](az)||delete ap[cu(0x18b)][az];});},[aj,af]),h[cr(0xf3)](()=>{const cv=cr,ay={'yAwNu':'about:blank','tGXIa':cv(0x1f2),'DbzKd':function(aB,aC){return aB(aC);}},az=[];af[cv(0x281)](aB=>{const cw=cv;if(aB[cw(0x2dd)]===cw(0x1d0))return;const aC=ap['current'][aB['id']];if(!aC)return;const aD=()=>{const cx=cw;ai(aB['id'],!0x1);try{const aF=aC[cx(0x182)]?.[cx(0x19e)];(aF?.[cx(0x219)](cx(0x221))||aF?.['getElementById']('uvHostname'))&&aC['contentWindow']['location'][cx(0x185)](aB[cx(0x2dd)]),!aw&&aC['contentWindow']&&(aC['contentWindow']['alert']=()=>{});}catch{}},aE=()=>{const cy=cw;try{const aF=aC['contentWindow']['location'][cy(0x2f2)],aG=aC[cy(0x182)][cy(0x19e)][cy(0x1df)];if(aF===ay[cy(0x307)])return;!aB['isLoading']&&aF!==aq['current'][aB['id']]&&aF!==aB['url']&&(aq[cy(0x18b)][aB['id']]=aF,ag(aB['id'],aF)),aG&&aG!==ar['current'][aB['id']]&&aG!==aB['title']&&(ar['current'][aB['id']]=aG,ah(aB['id'],aG));}catch{}};if(aC['addEventListener'](cw(0x1f2),aD),aC['addEventListener'](ay['tGXIa'],aE),az[cw(0xff)]({'iframe':aC,'handleLoad':aD,'checkState':aE,'tabId':aB['id']}),!aw)try{aC['contentWindow']&&(aC[cw(0x182)]['alert']=()=>{});}catch{}});const aA=setInterval(()=>{const cz=cv,aB={'QJbCO':cz(0x268)};af[cz(0x281)](aC=>{const cA=cz;if(aC['url']===cA(0x1d0))return;const aD=ap[cA(0x18b)][aC['id']];if(aD)try{const aE=aD[cA(0x182)][cA(0x2ed)][cA(0x2f2)],aF=aD['contentWindow'][cA(0x19e)]['title'];if(aE===aB[cA(0x341)])return;const aG=aD[cA(0x182)]?.[cA(0x19e)];if(aG?.[cA(0x219)](cA(0x221))||aG?.['getElementById']('uvHostname')){aD[cA(0x182)]['location'][cA(0x185)](aC[cA(0x2dd)]);return;}!aw&&aD['contentWindow']&&(aD[cA(0x182)]['alert']=()=>{}),!aC['isLoading']&&aE!==aq[cA(0x18b)][aC['id']]&&aE!==aC[cA(0x2dd)]&&(aq[cA(0x18b)][aC['id']]=aE,al(aC['id'],aE)),aF&&aF!==ar[cA(0x18b)][aC['id']]&&aF!==aC[cA(0x1df)]&&(ar[cA(0x18b)][aC['id']]=aF,ah(aC['id'],aF));}catch{}});},0x32);return()=>{const cB=cv,aB={'aTTLm':ay[cB(0x2cc)]};az['forEach'](({iframe:aC,handleLoad:aD,checkState:aE})=>{const cC=cB;aC['removeEventListener']('load',aD),aC[cC(0x2e7)](aB['aTTLm'],aE);}),ay[cB(0x2bc)](clearInterval,aA);};},[af,ai,ah,al,aw]),h[cr(0xf3)](()=>{const ay=setInterval(()=>{const cD=f,az={'sZAbC':c[cD(0x1a8)]};af[cD(0x281)](aA=>{const cE=cD;if(aA[cE(0x2dd)]===az['sZAbC'])return;const aB=ap['current'][aA['id']];if(aB)try{const aC=aB['contentWindow']['location']['href'];aC!==ak[aA['id']]&&al(aA['id'],aC);}catch{}});},0x1f4);return()=>clearInterval(ay);},[af,ak,al]),h['useEffect'](()=>{const cF=cr;if(av?.[cF(0x18b)])try{av[cF(0x18b)][cF(0x182)][cF(0x19e)][cF(0x31f)][cF(0x12d)]['zoom']=b[cF(0x17c)];}catch{}},[av,b['zoom']]),h['useEffect'](()=>{af['forEach'](ay=>{const cG=f;if(ay['active']){const az={'current':ap[cG(0x18b)][ay['id']]};au(az);}});},[af]);const ax=af[cr(0x17a)](ay=>ay[cr(0x2dd)]===cr(0x1d0)&&ay[cr(0x1fd)]);return g[cr(0x137)](c['rDLlH'],{'className':'relative\x20w-full\x20h-full','children':[af['map'](({id:ay,url:az,active:aA})=>az==='tabs://new'?null:g[cr(0x137)]('div',{'className':o('absolute\x20inset-0\x20w-full\x20h-full',aA?cr(0x16b):cr(0x116)),'children':[aA&&g['jsx']('div',{'className':cr(0x1e4),'style':{'backgroundColor':as[cr(0x1a0)]||'#070e15'},'children':g['jsx'](m,{'size':0x20,'className':cr(0x17f)})}),g[cr(0x194)]('iframe',{'ref':aB=>ap['current'][ay]=aB,'src':az,'style':{'display':'block','width':'100%','height':cr(0x119)},'className':cr(0x170)}),am&&g['jsx']('div',{'className':'absolute\x20inset-0\x20w-full\x20h-full\x20z-50','onClick':()=>an()})]},ay)),ax&&g[cr(0x194)](cr(0x2b4),{'className':o(c[cr(0x345)],cr(0x16b)),'children':g[cr(0x194)](zt,{'id':ax['id'],'updateFn':ag,'options':as})},ax['id'])]});},At=()=>{const cH=bd,b={'IiDOZ':function(as,au,av,aw){return as(au,av,aw);},'JjcHe':function(as,au){return as(au);},'xlALv':function(as,au){return as===au;},'KPIlv':'tabs://new','UoJgd':'Zoom','wuygr':'div','sTuTR':cH(0x309),'oaVlU':function(as,au){return as===au;},'QvTSN':cH(0x2db),'iRGAP':'hover:bg-[#ffffff0c]','MAorZ':cH(0x22b),'ZUdnG':'opacity-50\x20cursor-not-allowed','xYCTM':function(as,au){return as>=au;}},{tabs:c,zoomLevels:af,setZoom:ag,resetZoom:ah}=E(),ai=b['JjcHe'](E,as=>as[cH(0x28d)]),{options:aj}=R(),ak=c[cH(0x17a)](as=>as['active']),al=ak&&af[ak['id']]||0x64,am=b['xlALv'](ak?.[cH(0x2dd)],b[cH(0x354)]),an=ak&&!am&&ai?.[cH(0x18b)],ap=h['useCallback'](()=>{const cI=cH;an&&al<0xc8&&b[cI(0x312)](ag,ak['id'],Math['min'](al+0xa,0xc8),ai);},[an,ak,al,ag,ai]),aq=h[cH(0x255)](()=>{const cJ=cH;an&&al>0x32&&b[cJ(0x312)](ag,ak['id'],Math[cJ(0x252)](al-0xa,0x32),ai);},[an,ak,al,ag,ai]),ar=h[cH(0x255)](()=>{an&&ah(ak['id'],ai);},[an,ak,ah,ai]);return g[cH(0x137)]('div',{'className':cH(0x365),'children':[g['jsx']('span',{'className':o('text-[0.8rem]',an?void 0x0:'opacity-50'),'children':b[cH(0x188)]}),g['jsxs'](b[cH(0x21c)],{'className':cH(0x220),'children':[g['jsx']('button',{'type':'button','onClick':aq,'disabled':!an||al<=0x32,'className':o(b['sTuTR'],b[cH(0x351)](aj['type'],cH(0x22b))?b['QvTSN']:b['iRGAP'],!an||al<=0x32?'opacity-50\x20cursor-not-allowed':''),'children':g[cH(0x194)](a4,{'size':0xe})}),g[cH(0x137)](cH(0x256),{'type':'button','onClick':ar,'disabled':!an,'className':o('text-[0.75rem]\x20min-w-[3rem]\x20text-center\x20px-2\x20py-0.5\x20rounded',aj['type']===b[cH(0x2b7)]?b[cH(0x34a)]:b[cH(0x127)],an?'':b['ZUdnG']),'children':[al,'%']}),g[cH(0x194)](cH(0x256),{'type':'button','onClick':ap,'disabled':!an||al>=0xc8,'className':o(b[cH(0x305)],b['xlALv'](aj[cH(0x187)],cH(0x22b))?'hover:bg-gray-100':b[cH(0x127)],!an||b[cH(0x184)](al,0xc8)?cH(0x113):''),'children':g['jsx'](p,{'size':0xe})})]})]});},Dt=({isOpen:af,onClose:ag,inLoader:ah=!0x1})=>{const cK=bd,ai={'HxeyU':function(aU,aV,aW){return aU(aV,aW);},'gewFc':function(aU,aV){return aU(aV);},'URfME':function(aU,aV){return aU(aV);},'sWKLf':function(aU,aV){return aU(aV);},'ZImhD':function(aU,aV){return aU(aV);},'SwpCX':cK(0x23a),'jTZnU':function(aU,aV){return aU(aV);},'UKPJr':function(aU,aV){return aU(aV);},'zRMxn':function(aU,aV){return aU(aV);},'AsqGT':function(aU,aV){return aU(aV);},'ZNfCi':function(aU){return aU();},'Fjnil':cK(0x22b),'MKzLP':function(aU,aV,aW){return aU(aV,aW);},'gJcQu':'fixed\x20inset-0\x20z-[9999]\x20flex\x20items-center\x20justify-center\x20p-4\x20transition-opacity','mIYzs':'opacity-100','XgJOF':'opacity-0','klXpD':cK(0x1f7),'MjkzS':cK(0x2b4),'OyFIo':cK(0x264),'FPUpM':cK(0x10d),'sRlse':cK(0x294),'GCAYy':cK(0x177),'uocFl':cK(0x1bd),'MShVf':cK(0x241),'zDucn':cK(0x34e),'TnZDb':cK(0x2e6),'UQZNl':'button','yorMx':'px-3\x20py-2\x20text-sm\x20rounded-md','npwBb':'Cancel','ArZJh':cK(0x105)},{options:aj,updateOption:ak}=ai['ZNfCi'](R),al=s(),{tabs:am,updateUrl:an,setLoading:ap}=E(),[aq,ar]=h['useState']([]),[as,au]=h[cK(0x195)](''),[av,aw]=h[cK(0x195)](''),[ax,ay]=h['useState'](''),[az,aA]=h[cK(0x195)](null),[aB,aC]=h['useState'](!0x1),[aD,aE]=h[cK(0x195)](!0x1),[aF,aG]=h[cK(0x195)](!0x1),[aH,aI]=h[cK(0x195)](new Set()),[aJ,aK]=h[cK(0x195)](new Set());h['useEffect'](()=>{af?(aG(!0x0),ai['HxeyU'](setTimeout,()=>aE(!0x0),0xa)):(aE(!0x1),setTimeout(()=>aG(!0x1),0xc8));},[af]),h['useEffect'](()=>ar(aj[cK(0x139)]||[]),[aj['bookmarks']]);const aL=aU=>{ar(aU),ak({'bookmarks':aU});},aM=(aU,aV)=>{const cL=cK;let aW=0x1,aX=aU;const aY=aq[cL(0xfa)](aZ=>aZ['id']!==aV)[cL(0x2be)](aZ=>aZ[cL(0x10e)]);for(;aY[cL(0x334)](aX);)aX=aU+'\x20('+aW++ +')';return aX;},aN=()=>{const cM=cK;ai[cM(0x1ed)](au,''),aw(''),ay(''),ai['URfME'](aA,null),ai['sWKLf'](aC,!0x1);},aO=()=>{const cN=cK;if(!as[cN(0x2bd)]())return;const aU=aV=>/^(https?:)?\/\//['test'](aV)?aV:cN(0xe2)+aV;ai[cN(0x204)](aL,[...aq,{'id':crypto['randomUUID'](),'name':aM(av[cN(0x2bd)]()||ai[cN(0x1b0)]),'url':ai[cN(0x192)](aU,as['trim']()),'icon':ax['trim']()?aU(ax['trim']()):null}]),aN();},aP=()=>{const cP=cK;if(!as['trim']()||!az)return;const aU=aX=>/^(https?:)?\/\//['test'](aX)?aX:'https://'+aX,aV=aq['find'](aX=>aX['id']===az),aW=ax['trim']()?aU(ax['trim']()):null;aV&&aV['icon']!==aW&&(aK(aX=>{const aY=new Set(aX);return aY['delete'](az),aY;}),ai['sWKLf'](aI,aX=>{const cO=f,aY=new Set(aX);return aY[cO(0x111)](az),aY;})),aL(aq[cP(0x2be)](aX=>aX['id']===az?{...aX,'name':aM(av[cP(0x2bd)]()||cP(0x23a),az),'url':aU(as[cP(0x2bd)]()),'icon':aW}:aX)),aN();},aQ=aU=>{const cQ=cK;aA(aU['id']),au(aU['url']),aw(aU['name']),ai['UKPJr'](ay,aU[cQ(0x238)]||''),aC(!0x0);},aR=aU=>aL(aq['filter'](aV=>aV['id']!==aU)),aS=aU=>/^(https?:)?\/\//[cK(0x1c2)](aU)?aU:cK(0xe2)+aU;if(!aF)return null;const aT=aj[cK(0x187)]===ai['Fjnil'];return a5['createPortal'](g[cK(0x137)]('div',{'className':ai['MKzLP'](o,ai['gJcQu'],aD?ai['mIYzs']:ai['XgJOF']),'children':[g['jsx']('div',{'className':ai['klXpD'],'onClick':ag}),g[cK(0x137)](ai[cK(0x25f)],{'className':o(cK(0x115),aD?ai['OyFIo']:ai['FPUpM']),'style':{'backgroundColor':aj[cK(0x2a3)]||'#1a252f'},'children':[g['jsxs'](cK(0x2b4),{'className':ai[cK(0x303)],'style':{'borderColor':aT?'#e5e7eb':cK(0x16c)},'children':[g[cK(0x137)](ai['MjkzS'],{'className':cK(0x220),'children':[g[cK(0x194)]('h2',{'className':ai[cK(0x11a)],'children':aB?az?'Edit\x20Bookmark':cK(0x1db):cK(0x2ef)}),!aB&&g[cK(0x194)](cK(0x256),{'onClick':()=>aC(!0x0),'className':o('p-1\x20rounded-md',aT?cK(0x2db):'hover:bg-[#ffffff0c]'),'children':g[cK(0x194)](p,{'size':0x12})})]}),g['jsx'](cK(0x256),{'onClick':ag,'className':o('p-1\x20rounded-md',aT?'hover:bg-gray-100':'hover:bg-[#ffffff0c]'),'children':g[cK(0x194)](n,{'size':0x14})})]}),g[cK(0x194)](cK(0x2b4),{'className':ai[cK(0x1af)],'children':aB?g[cK(0x137)](cK(0x2b4),{'className':'space-y-2','children':[[['Bookmark\x20Name',av,aw,a6],[cK(0x129),as,au,l],[ai['MShVf'],ax,ay,a7]][cK(0x2be)](([aU,aV,aW,aX],aY)=>g[cK(0x137)](cK(0x2b4),{'className':o(cK(0x2cb),aT?'bg-gray-50\x20border-gray-300':'bg-[#ffffff0c]\x20border-gray-700'),'children':[g['jsx'](aX,{'size':0x10}),g['jsx']('input',{'value':aV,'onChange':aZ=>aW(aZ['target']['value']),'placeholder':aU,'className':'w-full\x20py-2\x20text-sm\x20bg-transparent\x20outline-none'})]},aY)),g['jsxs'](cK(0x2b4),{'className':ai['zDucn'],'children':[g['jsxs']('button',{'onClick':az?aP:aO,'disabled':!as[cK(0x2bd)](),'className':o('flex-1\x20px-3\x20py-2\x20text-sm\x20rounded-md\x20flex\x20items-center\x20justify-center\x20gap-2',aT?cK(0x2e2):cK(0x1dc),!as[cK(0x2bd)]()&&cK(0x113)),'children':[az?g['jsx'](a8,{'size':0x10}):g['jsx'](p,{'size':0x10}),az?'Save\x20Changes':ai[cK(0xea)]]}),g['jsx'](ai['UQZNl'],{'onClick':aN,'className':o(ai['yorMx'],aT?'bg-gray-200\x20hover:bg-gray-300':'bg-[#ffffff0c]\x20hover:bg-[#ffffff15]'),'children':ai[cK(0x331)]})]})]}):aq['length']===0x0?g[cK(0x194)]('p',{'className':'text-sm\x20text-gray-500','children':'No\x20bookmarks\x20yet.'}):g['jsx']('div',{'className':ai['ArZJh'],'children':aq['map'](aU=>g['jsxs'](cK(0x2b4),{'onClick':()=>{const cR=cK;if(ah){const aV=am['find'](aW=>aW['active']);if(aV){const aW=A(ai['zRMxn'](aS,aU['url']),!0x1,aj[cR(0x246)]||'scr',aj[cR(0xf2)]||null);aW&&(ap(aV['id'],!0x0),ai[cR(0x25e)](an,aV['id'],aW)),ag();}}else al('/search',{'state':{'url':ai['UKPJr'](aS,aU['url'])}});},'className':o(cK(0x191),aT?'hover:bg-gray-100':'hover:bg-[#ffffff0c]'),'children':[g['jsx']('div',{'className':'w-5\x20h-5\x20relative\x20flex-shrink-0','children':aU['icon']&&!aH['has'](aU['id'])?g[cK(0x137)](g[cK(0x2af)],{'children':[!aJ['has'](aU['id'])&&g[cK(0x194)]('div',{'className':'absolute\x20inset-0\x20bg-gray-600\x20rounded\x20animate-pulse'}),g[cK(0x194)](cK(0x2aa),{'src':aU[cK(0x238)],'className':cK(0x292),'onLoad':()=>aK(aV=>new Set(aV)['add'](aU['id'])),'onError':()=>aI(aV=>new Set(aV)[cK(0x123)](aU['id']))})]}):g['jsx'](l,{'size':0x14})}),g['jsxs'](cK(0x2b4),{'className':'flex-1\x20min-w-0','children':[g[cK(0x194)]('div',{'className':'text-sm\x20font-medium\x20truncate','children':aU['name']}),g[cK(0x194)](cK(0x2b4),{'className':'text-xs\x20text-gray-500\x20truncate','children':aU['url']})]}),g['jsx']('button',{'onClick':aV=>{const cS=cK;aV[cS(0x2f9)](),aQ(aU);},'className':o('p-1.5\x20rounded-md',aT?cK(0x100):cK(0x19a)),'children':g['jsx'](a2,{'size':0x10})}),g['jsx']('button',{'onClick':aV=>{const cT=cK;aV[cT(0x2f9)](),ai['AsqGT'](aR,aU['id']);},'className':o(cK(0x224),aT?'hover:bg-gray-200':'hover:bg-[#ffffff15]'),'children':g['jsx'](a3,{'size':0x10})})]},aU['id']))})})]})]}),document['body']);},Mt=a=>{const cU=bd,b={'UAbSo':cU(0x29c),'jtwJI':cU(0x35f),'jIgVv':cU(0x12b)};if(!(!a?.[cU(0x182)]||!a?.['contentDocument']))try{const c=a[cU(0x261)],af=a['contentWindow'];if(c['getElementById'](cU(0x29c))?.['shadowRoot']){af[cU(0x29c)]?.[cU(0x23b)]();return;}const ag=c['createElement'](cU(0x234));ag[cU(0x302)]='https://cdn.jsdelivr.net/npm/eruda',ag['onload']=()=>{const cV=cU;af['eruda']?.[cV(0xe7)](),af['eruda']?.['show'](),af[cV(0x29c)]?.['show'](b['jIgVv']),setTimeout(()=>{const cW=cV;c['getElementById'](b[cW(0x21a)])?.[cW(0x30d)]?.[cW(0x32c)](b['jtwJI'])?.['remove']();},0x64);},c['body'][cU(0x10a)](ag);}catch(ah){console[cU(0x1d8)](ah);}};function $t(){const cX=bd,c={'fnbfS':function(aB,aC){return aB<aC;},'vFNFl':cX(0x1d0),'GPDED':function(aB,aC){return aB(aC);},'TrBHh':cX(0x27c),'xuKzR':function(aB){return aB();},'cuoSS':'Bookmarks','vFyOW':cX(0x2c1),'srohR':'Hide\x20UI','qJSwH':cX(0x24c),'Fmpfy':function(aB,aC,aD,aE,aF){return aB(aC,aD,aE,aF);},'wxZhN':cX(0x313),'rhNxg':cX(0x24b),'kchEd':'scale-95\x20opacity-0\x20pointer-events-none','XQeHD':cX(0x2b4),'iInnf':cX(0x314)},{showMenu:af,toggleMenu:ag,tabs:ah,addTab:ai,setActive:aj,removeTab:ak,showTabs:al,activeFrameRef:am,toggleUI:an}=E(),{options:ap}=R(),aq=c[cX(0x20b)](s),[ar,as]=h[cX(0x195)](!0x1),au=h[cX(0x255)](()=>{const cY=cX;if(c['fnbfS'](ah['length'],0x14)){let aB=crypto['randomUUID']();ai({'title':cY(0x1d3),'id':aB,'url':c[cY(0x2ad)]}),aj(aB);}},[ah['length']]),av=h['useCallback'](()=>{const cZ=cX;am?.['current']&&am[cZ(0x18b)]?.[cZ(0x146)]?.();},[am]),aw=h['useCallback'](()=>{ah['forEach'](aB=>ak(aB['id'])),au();},[ah,ak,au]),ax=h[cX(0x255)](()=>{const d0=cX;am?.['current']&&c[d0(0x33b)](Mt,am[d0(0x18b)]);},[am]),ay=[{'name':'New\x20Tab','shortcut':'alt\x20+\x20n','fn':au},{'name':'Clear\x20Tabs','shortcut':cX(0x282),'fn':aw},{'name':c[cX(0x138)],'shortcut':'alt\x20+\x20b','fn':()=>as(!0x0)},{'name':'Fullscreen','shortcut':c[cX(0xf9)],'fn':av,'disabled':!am?.['current']},{'name':'zoom-cmpn','isComponent':!0x0,'divider':!0x0},{'name':c['srohR'],'shortcut':cX(0x196),'fn':an},{'name':'DevTools','shortcut':c['qJSwH'],'fn':ax,'disabled':!am?.['current'],'divider':!0x0},{'name':'Return\x20Home','fn':()=>aq('/')}];h[cX(0xf3)](()=>{const d2=cX,aB={'alt+n':au,'alt+c':aw,'shift+F':()=>am?.['current']&&av(),'alt+z':an,'alt+i':ax,'alt+b':()=>as(!0x0)},aC=aD=>{const d1=f,aE=''+(aD['altKey']?d1(0xde):'')+(aD[d1(0x329)]?'shift+':'')+aD['key'],aF=aB[aE];aF&&(aD[d1(0x15f)](),aF());};return window['addEventListener'](c['TrBHh'],aC),()=>window['removeEventListener'](d2(0x27c),aC);},[au,aw,av,am,an,ax]);const az=c[cX(0x172)](o,c['wxZhN'],c[cX(0xf6)],al?'mt-21':'mt-11',af?'scale-100\x20opacity-100\x20pointer-events-auto':c['kchEd']),aA=o('w-full\x20flex\x20justify-between\x20items-center\x20text-left\x20text-[0.8rem]\x20px-3\x20py-2\x20focus:outline-none',ap['type']===cX(0x22b)?'hover:bg-gray-100':cX(0x201));return g['jsxs'](g['Fragment'],{'children':[g['jsx'](Dt,{'isOpen':ar,'onClose':()=>as(!0x1),'inLoader':!0x0}),g[cX(0x194)](c[cX(0x120)],{'className':az,'style':{'backgroundColor':ap['menuColor']||c['iInnf']},'children':ay[cX(0x2be)](({name:aB,shortcut:aC=null,divider:aD=null,fn:aE=null,disabled:aF=!0x1,isComponent:aG=!0x1},aH)=>g[cX(0x137)]('div',{'disabled':aF,'className':o(aF?cX(0x18f):''),'children':[aG?g['jsx'](At,{}):g['jsxs'](cX(0x256),{'type':'button','onClick':()=>{const d3=cX;!aF&&aE(),af&&c[d3(0x20b)](ag);},'className':aA,'children':[g['jsx']('span',{'children':aB}),aC&&g['jsx']('span',{'className':'text-[0.7rem]\x20text-gray-500\x20dark:text-gray-400','children':aC})]}),aD&&g[cX(0x194)]('hr',{'className':o('border-t',ap['type']==='light'?'border-gray-300':'border-gray-700')})]},aH))})]});}function e(){const dn=['tGXIa','GSDAb','then','https://kagi.com/search?q=','scramjet.wasm.wasm','mochaTheme','yBPCh','toISOString','createRoot','Name','#d0d0d0','rpvCJ','#cdcdcd','tabColor','info','hover:bg-gray-100','RkthL','url','5.0.42','setItem','KVoEh','232,\x20255,\x20243','bg-gray-200\x20hover:bg-gray-300','console','absolute\x20w-full\x20px-20\x20py-4\x20flex\x20flex-col\x20items-center\x20mt-8\x20z-50','mousemove','Add\x20Bookmark','removeEventListener','exception','#858585','hover:bg-[#fff3]','LQfMY','reason','location','KyxIC','Bookmarks','alerts','xxgWW','href','keyup','size','w-full\x20max-w-2xl','stringify','transform','self','stopPropagation','gPMKT','getItem','RESlI','g3ep2zx','dots','#1d221d','childList','RMlXE','src','sRlse','px)','sTuTR','#252f3e','yAwNu','Default','w-6\x20h-6\x20rounded\x20flex\x20items-center\x20justify-center','cursor-pointer\x20underline','wTQaz','TPjHR','shadowRoot','closed','ZQaND','barColor','panicToggleEnabled','IiDOZ','absolute\x20right-2\x20w-56\x20rounded-lg\x20shadow-lg\x20overflow-hidden\x20text-sm\x20z-50','#1a252f','startTransition','randomUUID','Yandex','fulfilled','mouseleave','mousedown','nqKow','XStsr','#2d3e28','get','body','/materials','rel','text-[0.7rem]','jYXzk','w-[30rem]\x20h-[20.8rem]\x20p-5\x20rounded-xl\x20relative\x20flex\x20flex-col\x20gap-3\x20shadow-2xl','aboutBlankAutoOpen','link','tabName','getRegistrations','shiftKey','WjyUl','link[rel=\x22modulepreload\x22]','querySelector','#312929','lazy','You.com','wss:','npwBb','circle','integrity','includes','iframeUrls','#d4f3e1','\x20Remove','pjdo4c6\x20dzo1688\x20fr69i0c\x20ap75dwb\x20op4nsqs','vite:preloadError','\x0a\x20\x20\x20\x20\x20\x20\x20\x20linear-gradient(to\x20right,\x20rgba(','GPDED',',0.15),\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20rgba(','set','YaCy\x20(p2p)','catch','MmrSs','QJbCO','cursor-pointer\x20duration-300\x20ease-out\x20scale-[1.12]\x20hover:scale-[1.15]','warn','absolute\x20-top-2\x20-right-2\x20duration-200\x20ease','hfSsx','https://www.bing.com/search?q=','use-credentials','hlzdI','#111827','QvTSN','DuckDuckGo','credentials','rPjjK','flex\x20gap-2','ZkQJF','viiSp','oaVlU','w-7\x20h-7','#282323','KPIlv','jhHRg','flex-1\x20w-full','http://www.w3.org/2000/svg','slice','historyIndex','pathname','assign','useRef','jslGJ','oDSXE','div.eruda-entry-btn','#0d0d0d','layout\x20style\x20paint','function','left','rounded-lg\x20border-1\x20flex\x20items-center\x20px-2\x20ml-1\x20mr-1','w-full\x20flex\x20justify-between\x20items-center\x20px-3\x20py-2','same-origin','FdcrW','Swisscows','130%','done','serviceWorker','alt+','tagName','createElement','ntlGg','https://','#c1d4f1','nyneoik\x20mfnhl58','Big\x20Ideas\x20Math','addEventListener','init','tyVQg','shadow-xl\x20mt-0\x20p-2\x20text-[14px]\x20w-full\x20rounded-b-[14px]\x20space-y-1','TnZDb','HaeRE','Qwant','string','theme','top','eiGKF','memo','engine','useEffect','AHcdl','/assets/img/bigideasmath.ico','rhNxg','LdlPO','input','vFyOW','filter','#956f6f','Whoops,\x20something\x20broke!','siteTextColor','#1a1b29','push','hover:bg-gray-200','PPQMH','https://www.google.com/search?q=','startsWith','Automatic','space-y-2','wispStatus','bgDesign','edit','#e5e7eb','appendChild','Google',',0.2)\x201px,\x20transparent\x201px),\x0a\x20\x20\x20\x20\x20\x20\x20\x20linear-gradient(to\x20bottom,\x20rgba(','scale-95\x20opacity-0','name','FymNy','.css','delete','#4c4c4c','opacity-50\x20cursor-not-allowed','h49vsbz','relative\x20w-full\x20max-w-2xl\x20max-h-[80vh]\x20rounded-lg\x20border\x20shadow-lg\x20overflow-hidden\x20transition-all','opacity-0\x20z-0\x20pointer-events-none','toString','flex','100%','GCAYy','155,\x20150,\x20132','bounce-up','bw9skel','dnc','width','XQeHD','#fff','w-5\x20h-5\x20shrink-0','add','endsWith','getState','#25273a','iRGAP','ZSJbD','Bookmark\x20URL','Hbvqh','elements','Gmail','style','findIndex','keys','/portal/k12/','false','#494436b8','BvZUR','18913202sHPaXO','Forest','1253366QvcEUK','jsxs','cuoSS','bookmarks','/libcurl/index.mjs','blur','duration-100\x20rounded-lg','120%','Dogpile','has','HosyV','https://upload.wikimedia.org/wikipedia/commons/thumb/3/3c/Google_Favicon_2025.svg/120px-Google_Favicon_2025.svg.png','Enter','#1f1f23','hover:bg-[#ffffff1e]','JwRxB','requestFullscreen','options','nXXll','QuickLinks','pBhwe','host','include','Bing','wRbYM','constructor','process','TTxPP','7455474ulHzjf','ham/','text','#1a1a1a','HfOTZ','cPVZR','lightTheme','mouseenter','Cancel','#9ca3af','aboutBlank','initialize','AJpyM','preventDefault','BhACa','CWmZq','FyZDL','toStringTag','obqOF','btAhY','showMenu','bind','isArray','uIyjc','https://search.yahoo.com/search?p=','opacity-100\x20z-10\x20pointer-events-auto','#374151','forest','w-[2.5rem]\x20h-[2.5rem]\x20flex\x20items-center\x20justify-center\x20rounded-full\x20bg-[#6d6d6d73]',',0.112)\x203px,\x20transparent\x201px)','absolute\x20inset-0\x20w-full\x20h-full\x20transition-opacity\x20duration-200','relList','Fmpfy','v5-stable-','#bfe5cf','wMUMp','hover:bg-[#a7a7a7]','text-lg\x20font-medium','#1a1514','#fffbeb','find','PwIds','zoom','/assets/img/dsci.ico','URL','animate-spin','30\x20apps','mt-3\x20text-sm\x20font-medium\x20text-center\x20w-full\x20px-1\x20overflow-hidden\x20whitespace-nowrap\x20text-ellipsis','contentWindow','GwPcU','xYCTM','replace','opacity-70\x20text-red-500','type','UoJgd','qVTPx','/assets/img/schoology.ico','current','defaultPrevented','Gigablast','#f3f4f6','opacity-50\x20pointer-events-none','onerror','flex\x20items-center\x20gap-3\x20px-3\x20py-2\x20rounded-md\x20cursor-pointer','jTZnU','OFQQz','jsx','useState','alt\x20+\x20z','bgColor','flex\x20justify-center\x20items-center','3350056mPyJZX','hover:bg-[#ffffff15]','Loading...','payload','indexOf','document','render','tabBarColor','EWyER','spvja','currentColor','pageview','cursor-not-allowed\x20opacity-70','100vh','start','VKSGP','Shift','#221a1a','Dark','#5560a4','AIUsi','trace','uocFl','SwpCX','version','flex-shrink-0\x20animate-spin','path','tabOutline','#18283e','80%','root','bcct122\x20kw70iq3','documentElement','SFProText,\x20system-ui,\x20sans-serif','logo','flex\x20justify-center\x20items-center\x20h-full','p-4\x20overflow-y-auto\x20max-h-[calc(80vh-4rem)]','#c5c8e6','clientX','resolve','defineProperty','test','https://search.lycos.com/web/?q=','https://www.sogou.com/web?query=','KkIpm','items-center\x20border\x20rounded-md\x20duration-150','/logo.svg','dwlCI','https://cineby.gd','omninputColor','KHViz','#a0b0c8','Routing','register','phrase','tabs://new','reload','1144436Loutbf','New\x20Tab','YaCy','/wisp/','https://you.com/search?q=','textMuted','error','scramjet.sync.js','Yahoo','Create\x20Bookmark','bg-[#ffffff0c]\x20hover:bg-[#ffffff15]','paperTheme','oRPXn','title','Wikipedia','#c7bfa8','translate3d(-50%,\x20-50%,\x200)','none','absolute\x20inset-0\x20w-full\x20h-full\x20flex\x20items-center\x20justify-center\x20-z-20','length','decode','bg-black/35','charCodeAt','ClassLink','referrerPolicy','absolute\x20bottom-5\x20right-5\x20flex\x20flex-row\x20gap-5','LINK','gewFc','Ask','key','crossOrigin','#c6c6c68f','load','[rel=\x22stylesheet\x22]','Dashboard\x20|\x20Khan\x20Academy',';\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20','Alt','fixed\x20inset-0\x20bg-black/50','modulepreload','https://petalsearch.com/search?query=','#f9fafb','#1f2937','ASogW','active','1130645eSfoUi','toggleMenu','altKey','hover:bg-[#ffffff0c]','tVLeY','opacity','ZImhD','search-div','#efefef30','#3d2a2a','default','oMuZH','xoYsB','xuKzR','ml-auto\x20flex-shrink-0\x20duration-200','Light','#797979b8','#09121e','beforeUnload','59,\x20130,\x20246','Khan\x20Academy','https://duckduckgo.com/favicon.ico','Quizlet:\x20Study\x20Tools\x20&\x20Learning\x20Resources\x20for\x20Students\x20and\x20Teachers\x20|\x20Quizlet','__routePreload','/docs/r','jZtyr','cursor-not-allowed\x20opacity-50\x20hover:bg-transparent','getElementById','UAbSo','setAttribute','wuygr','useOptions\x20must\x20be\x20used\x20within\x20an\x20OptionsProvider','scr','getCSS','flex\x20items-center\x20gap-2','errorTrace-wrapper','cLbCs','VlVOJ','p-1.5\x20rounded-md','h-full\x20w-full\x20outline-0\x20text-[0.8rem]\x20ml-2','#7c5f5f','#ebe3cd','Mojeek','Ecosia','searchResultStyle','light','flex\x20flex-wrap\x20justify-center\x20gap-4','clear','displayName','w-full\x20h-10\x20pl-3\x20rounded-lg\x20outline-0\x20border','WFpNF','nonce','#06080d8f','#7f89d9','script','2686413psUtlw','jbCEC','border\x20hover:border-[#ffffff1c]','icon',')\x2050%,\x20transparent\x2070%)','New\x20Bookmark','destroy','100\x20apps','#ffffff','join','All','#141620','Bookmark\x20Icon\x20(URL)','w-full\x20max-w-[40rem]\x20mx-auto\x20mt-[16rem]','Midnight','RvDjy','select-none','prType','BLeDb','Lycos','omit','head','border\x20transition-all\x20duration-200\x20origin-top-right','alt\x20+\x20i','(s)\x20=>\x20{\x0a\x20\x20\x20\x20if\x20(!s)\x20return\x20s;\x0a\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20const\x20k\x20=\x20new\x20TextEncoder().encode(\x0a\x20\x20\x20\x20\x20\x20\x20\x20btoa(new\x20Date().toISOString().slice(0,\x2010)\x20+\x20location.host)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.split(\x27\x27)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.reverse()\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.join(\x27\x27)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.slice(6.7)\x0a\x20\x20\x20\x20\x20\x20);\x0a\x20\x20\x20\x20\x20\x20const\x20n\x20=\x0a\x20\x20\x20\x20\x20\x20\x20\x20Math.min(\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20s.indexOf(\x27?\x27)\x20+\x201\x20||\x20s.length\x20+\x201,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20s.indexOf(\x27#\x27)\x20+\x201\x20||\x20s.length\x20+\x201,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20s.indexOf(\x27&\x27)\x20+\x201\x20||\x20s.length\x20+\x201,\x0a\x20\x20\x20\x20\x20\x20\x20\x20)\x20-\x201;\x0a\x20\x20\x20\x20\x20\x20let\x20h\x20=\x200;\x0a\x20\x20\x20\x20\x20\x20for\x20(let\x20i\x20=\x200;\x20i\x20<\x20n\x20&&\x20i\x20<\x20s.length;\x20i++)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20const\x20c\x20=\x20s.charCodeAt(i);\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(!((c\x20>=\x2048\x20&&\x20c\x20<=\x2057)\x20||\x20(c\x20>=\x2065\x20&&\x20c\x20<=\x2070)\x20||\x20(c\x20>=\x2097\x20&&\x20c\x20<=\x20102)))\x20break;\x0a\x20\x20\x20\x20\x20\x20\x20\x20h\x20=\x20i\x20+\x201;\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20if\x20(h\x20<\x202\x20||\x20h\x20%\x202)\x20return\x20decodeURIComponent(s);\x0a\x20\x20\x20\x20\x20\x20const\x20l\x20=\x20h\x20>>\x201,\x0a\x20\x20\x20\x20\x20\x20\x20\x20o\x20=\x20new\x20Uint8Array(l);\x0a\x20\x20\x20\x20\x20\x20for\x20(let\x20i\x20=\x200;\x20i\x20<\x20l;\x20i++)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20const\x20x\x20=\x20i\x20<<\x201;\x0a\x20\x20\x20\x20\x20\x20\x20\x20o[i]\x20=\x20parseInt(s[x]\x20+\x20s[x\x20+\x201],\x2016)\x20^\x20k[i\x20%\x208];\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20return\x20new\x20TextDecoder().decode(o)\x20+\x20s.slice(h);\x0a\x20\x20\x20\x20}\x20catch\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20decodeURIComponent(s);\x0a\x20\x20\x20\x20}\x0a\x20\x20}','w-[15.8rem]\x20h-30','apply','#c7bab8','Ntxkz','max','MtYYv','VNvgj','useCallback','button','off','/return?q=','225,\x20225,\x2073','transform,\x20opacity','fsbixcg\x20gu4logg','freeze','Biqeq','HxeyU','MjkzS','beforeunload','contentDocument','Icon\x20URL','clientY','scale-100\x20opacity-100','index','Google\x20Classroom','useMemo','about:blank','mt-3\x20text-sm\x20font-medium\x20text-center','__proto__','Provider','flex\x20items-center\x20gap-3\x20shadow-xl\x20pl-4\x20pr-4\x20w-full\x20h-[3.41rem]','searchBarColor','#405a77','12px','#111e2fb0','Confirm','wServer','open','aaXRS','#315b45','split','color','history','cbSOF','xAPMi','/search','keydown','G-HWLK0PZVBM','https://yacy.searchlab.eu/yacysearch.json?query=','Brave','Petal','forEach','alt\x20+\x20c','/new','DZwML','NRyVU','/settings','#15261c','Movies','pHSnp','TrKon','OMbZa','opacity\x20','activeFrameRef','tabs','Add\x20shortcut','dark','#16161c','w-5\x20h-5\x20relative','value','flex\x20items-center\x20justify-between\x20px-4\x20py-3\x20border-b','#fffaea','https://www.ecosia.org/search?q=','-mt-3\x20absolute\x20z-50','rejected','Scramjet\x20only','height','#1d2d22','eruda','tabIcon','portal/k12/','forestTheme','PTsOv','CFOUg','Baidu','menuColor','w-[1.08rem]\x20h-[1.08rem]\x20shrink-0','DtSCS','/docs','suVJr','None','transition','img','VCiTo','link[rel~=\x27icon\x27]','vFNFl','ms\x20ease-out','Fragment','clkOff','Startpage','\x0a\x20\x20\x20\x20\x20\x20\x20\x20repeating-linear-gradient(\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x2045deg,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20rgba(','#162218','div','flex-1\x20bg-transparent\x20outline-hidden\x20text-[16.5px]\x20leading-[20px]\x20placeholder:font-[Inter]\x20placeholder:font-medium','requestIdleCallback','MAorZ','px,\x20','bgDesignColor','Search\x20icon','#ffffff1c','DbzKd','trim','map','https://www.gigablast.com/search?q=','flex\x20flex-col\x20items-center\x20justify-center\x20relative\x20group\x20w-20\x20h-[5.5rem]\x20rounded-md\x20border-transparent\x20cursor-pointer\x20duration-200\x20ease-in-out','shift\x20+\x20f','stellarTheme','https://google.com','target','#344646','50\x20apps','sHgJr','#162337','parse','/s_sw.js','flex\x20items-center\x20gap-2\x20px-3\x20rounded-md\x20border'];e=function(){return dn;};return e();}function qt({config:b={}}){const d4=bd,c={'xxgWW':function(an,ap){return an>ap;},'iWXbP':function(an,ap,aq,ar,as){return an(ap,aq,ar,as);},'HosyV':'flex\x20flex-col\x20w-full'},{url:af,ui:ag=!0x0,zoom:ah,alerts:ai=!0x1}=b,{options:aj}=R(),ak=E(an=>an[d4(0x28e)]),al=E(an=>an['updateUrl']),am={'backgroundColor':aj[d4(0x310)]||'#09121e'};return h['useEffect'](()=>{const d5=d4;if(af&&c[d5(0x2f1)](ak['length'],0x0)){const an=ak[0x0],ap=c['iWXbP'](A,af,!0x1,aj[d5(0x246)]||d5(0x21e),aj[d5(0xf2)]||null);ap&&an[d5(0x2dd)]!==ap&&al(an['id'],ap);}},[af,ak,al,aj[d4(0x246)]]),h[d4(0xf3)](()=>{const d6=d4;E[d6(0x125)]()['clearStore']({'showTb':aj['showTb']??!0x0});},[]),g[d4(0x137)](d4(0x2b4),{'className':'flex\x20flex-col\x20w-full\x20h-screen','children':[ag&&g['jsxs'](g[d4(0x2af)],{'children':[g[d4(0x137)](d4(0x2b4),{'className':c[d4(0x140)],'style':am,'onClick':()=>E['getState']()[d4(0x166)]&&E[d4(0x125)]()[d4(0x1ff)](),'children':[g[d4(0x194)](xt,{}),g['jsx'](kt,{})]}),g['jsx']($t,{})]}),g[d4(0x194)]('div',{'className':d4(0x356),'onClick':()=>E['getState']()['showMenu']&&E[d4(0x125)]()[d4(0x1ff)](),'children':g['jsx'](Ot,{'conf':{'zoom':ah,'alerts':ai}})})]});}const K=a=>h['lazy'](()=>(a9[bd(0x1a7)](),a()[bd(0x2ce)](b=>(a9[bd(0xdc)](),b))[bd(0x33f)](b=>{const d7=bd;throw a9['done'](),console[d7(0x1d8)]('Lazy\x20loading\x20failed:',b),b;}))),Wt=(a,b=0.5)=>{const d8=bd,[c,af,ag]=a['match'](/\w\w/g)[d8(0x2be)](ah=>parseInt(ah,0x10));return'rgba('+c+','+af+','+ag+','+b+')';},ae=()=>{const d9=bd,a={'JadhH':d9(0x153),'cLbCs':'portal/k12/','xogDa':function(ai,aj,ak){return ai(aj,ak);},'RrrfA':'min-h-screen\x20flex\x20flex-col\x20items-center\x20justify-center\x20p-6','ntlGg':d9(0xfc),'FCVcX':d9(0x30a)},b=r(),c=s(),{options:af}=R(),ag=af[d9(0xfd)]??d9(0x1cc),ah={'text':ag,'textMuted':a['xogDa'](Wt,ag,0.5)};return h['useEffect'](()=>{const da=d9;b[da(0x35a)][da(0x334)](a['JadhH'])||b['pathname']['includes'](a[da(0x222)])||c('/');},[b,c]),b['pathname']['includes']('ham/')||b['pathname'][d9(0x334)](d9(0x29e))?g[d9(0x137)](d9(0x2b4),{'className':a['RrrfA'],'style':{'fontFamily':d9(0x1ba)},'children':[g[d9(0x194)]('h1',{'className':'text-2xl\x20font-medium\x20mb-2','style':{'color':ah[d9(0x154)]},'children':a[d9(0xe1)]}),g['jsx']('p',{'onClick':()=>location[d9(0x1d1)](),'className':a['FCVcX'],'style':{'color':ah[d9(0x1d7)]},'children':'Please\x20refresh\x20here'})]}):null;},ze=new Map(),Y=new Map();function H(a,b){const db=bd,c={'XzsRN':function(af,ag){return af==ag;},'FymNy':db(0x362)};c['XzsRN'](typeof b,c[db(0x10f)])&&ze[db(0x33d)](a,b);}function _t(a){const dc=bd;if(Y[dc(0x13f)](a))return Y[dc(0x31e)](a);const b=ze['get'](a);if(b)try{const c=b();return c&&typeof c[dc(0x2ce)]==dc(0x362)&&(Y[dc(0x33d)](a,c),c['catch'](()=>Y['delete'](a))),c;}catch(af){console['warn']('Preload\x20failed\x20for:',a,af);}}typeof window<'u'&&(window[bd(0x215)]={'preload':_t,'initPreload':H});const Ft=[{'option':bd(0x243),'value':{'theme':'default','type':bd(0x290),'settingsContainerColor':bd(0x1b5),'navItemActive':bd(0xe3),'settingsSearchBar':'#3c475a','settingsPanelItemBackgroundColor':bd(0x26e),'settingsDropdownColor':bd(0x2c8),'siteTextColor':'#a0b0c8','bgDesignColor':'66,\x2069,\x2073','glowWrapperColor':'255,\x20255,\x20255','switchColor':'#ffffff1a','switchEnabledColor':'#4c6c91','bgColor':'#111827','quickModalBgColor':bd(0x306),'paginationTextColor':'#9baec8','paginationBorderColor':bd(0x2bb),'paginationBgColor':'#141d2b','paginationSelectedColor':'#75b3e8','themeName':'defaultTheme','tabColor':bd(0x270),'tabOutline':'#344646','barColor':bd(0x20f),'tabBarColor':'#070e15','omninputColor':bd(0x232),'menuColor':'#1a252f'}},{'option':'Mocha','value':{'theme':'mocha','type':bd(0x290),'settingsContainerColor':'#312222','navItemActive':'#fdedea','settingsSearchBar':bd(0x32d),'settingsPanelItemBackgroundColor':bd(0x207),'settingsDropdownColor':'#291c1c','siteTextColor':bd(0x250),'bgDesignColor':'65,\x2047,\x2047','glowWrapperColor':'255,\x20255,\x20255','switchColor':'#463131','switchEnabledColor':bd(0x226),'bgColor':bd(0x178),'quickModalBgColor':'#362c2c','paginationTextColor':'#c3b6b6','paginationBorderColor':'#ffffff1c','paginationBgColor':'#231b15','paginationSelectedColor':bd(0xfb),'themeName':bd(0x2d1),'tabColor':bd(0x1aa),'tabOutline':'#3e3b3b','barColor':bd(0x1aa),'tabBarColor':'#151313','omninputColor':'#1714148f','menuColor':bd(0x353)}},{'option':bd(0x135),'value':{'theme':bd(0x16d),'type':bd(0x290),'settingsContainerColor':'#17281f','navItemActive':bd(0x336),'settingsSearchBar':'#274233','settingsPanelItemBackgroundColor':bd(0x275),'settingsDropdownColor':bd(0x287),'siteTextColor':bd(0x174),'bgDesignColor':'46,\x2066,\x2054','glowWrapperColor':bd(0x2e1),'switchColor':'#375644','switchEnabledColor':'#3f7a5a','bgColor':'#0c1711','quickModalBgColor':'#15261c','paginationTextColor':'#cbe9cf','paginationBorderColor':'#ffffff1c','paginationBgColor':bd(0x29b),'paginationSelectedColor':'#7ca387c4','themeName':bd(0x29f),'tabColor':bd(0x2b3),'tabOutline':bd(0x31d),'barColor':bd(0x2b3),'tabBarColor':'#131513','omninputColor':'#1714148f','menuColor':bd(0x2ff)}},{'option':bd(0x1ab),'value':{'theme':'dark','type':'dark','settingsContainerColor':'#18181c','navItemActive':'#f3f4f6','settingsSearchBar':bd(0x143),'settingsPanelItemBackgroundColor':'#2e2e34','settingsDropdownColor':'#151519','siteTextColor':'#fff','bgDesignColor':'73,\x2073,\x2073','glowWrapperColor':'255,\x20255,\x20255','switchColor':bd(0x143),'switchEnabledColor':'#3b3b44','bgColor':'#0b0b0e','quickModalBgColor':'#2d2d30','paginationTextColor':'#c9c9c9','paginationBorderColor':bd(0x2bb),'paginationBgColor':bd(0x155),'paginationSelectedColor':bd(0x2e9),'themeName':'darkTheme','tabColor':'#1a1a1a','tabOutline':'#353535','barColor':'#191a19','tabBarColor':bd(0x360),'omninputColor':'#0b0a0a8f','menuColor':'#1c1c1c'}},{'option':'Stellar','value':{'theme':'stellar','type':bd(0x290),'settingsContainerColor':bd(0x240),'navItemActive':'#9db4ff','settingsSearchBar':'#232538','settingsPanelItemBackgroundColor':'#2d2f44','settingsDropdownColor':'#181a26','siteTextColor':'#d6daff','bgDesignColor':'127,\x20127,\x20127','glowWrapperColor':'136,\x20169,\x20255','switchColor':bd(0x126),'switchEnabledColor':bd(0x1ac),'bgColor':'#0a0b14','quickModalBgColor':'#24263a','paginationTextColor':bd(0x1be),'paginationBorderColor':bd(0x2bb),'paginationBgColor':bd(0xfe),'paginationSelectedColor':bd(0x233),'themeName':bd(0x2c2),'tabColor':bd(0x291),'tabOutline':'#343540','barColor':'#14141a','tabBarColor':'#0e0e13','omninputColor':'#0a0b0f8f','menuColor':'#18151c'}},{'option':bd(0x20d),'value':{'theme':bd(0x22b),'type':bd(0x22b),'settingsContainerColor':'#e4e4e5','navItemActive':bd(0x349),'settingsSearchBar':bd(0x109),'settingsPanelItemBackgroundColor':bd(0x109),'settingsDropdownColor':bd(0x23d),'siteTextColor':bd(0x16c),'bgDesignColor':'209,\x20213,\x20219','glowWrapperColor':'17,\x2024,\x2039','switchColor':bd(0x2d8),'switchEnabledColor':bd(0x15b),'bgColor':bd(0x1fa),'quickModalBgColor':bd(0x18e),'paginationTextColor':bd(0x112),'paginationBorderColor':'#d1d1d170','paginationBgColor':bd(0x23d),'paginationSelectedColor':bd(0x20e),'themeName':bd(0x158),'tabColor':bd(0x23d),'tabOutline':'#b2b2b2','barColor':bd(0x23d),'tabBarColor':bd(0x2d6),'omninputColor':bd(0x1f1),'menuColor':'#fff'}},{'option':'Paper','value':{'theme':'paper','type':'light','settingsContainerColor':'#e6dec7','navItemActive':bd(0x1fb),'settingsSearchBar':bd(0x227),'settingsPanelItemBackgroundColor':'#efe7cf','settingsDropdownColor':bd(0x179),'siteTextColor':'#474b52','bgDesignColor':bd(0x11b),'glowWrapperColor':bd(0x259),'switchColor':'#c3baa6','switchEnabledColor':bd(0x1e1),'bgColor':'#fefbf5','quickModalBgColor':'#fffbeb','paginationTextColor':bd(0x112),'paginationBorderColor':'#d1d1d1','paginationBgColor':bd(0x295),'paginationSelectedColor':bd(0x132),'themeName':bd(0x1dd),'tabColor':'#ffffff','tabOutline':'#b2b2b2','barColor':'#ffffff','tabBarColor':bd(0x2d6),'omninputColor':bd(0x1f1),'menuColor':bd(0x121)}}],Gt=[{'option':bd(0x308),'value':{'tabName':bd(0x173)+Ee[bd(0x1b1)],'tabIcon':'./icon.svg'}},{'option':'Google','value':{'tabName':bd(0x10b),'tabIcon':'https://google.com/favicon.ico'}},{'option':'Bing','value':{'tabName':bd(0x14d),'tabIcon':'https://bing.com/favicon.ico'}},{'option':'Gmail','value':{'tabName':bd(0x12c),'tabIcon':'/assets/img/gmail.ico'}},{'option':bd(0x1e0),'value':{'tabName':bd(0x1e0),'tabIcon':'/assets/img/wikipedia.ico'}},{'option':'Schoology','value':{'tabName':'Home\x20|\x20Schoology','tabIcon':bd(0x18a)}},{'option':bd(0x266),'value':{'tabName':'Home','tabIcon':'/assets/img/classroom.png'}},{'option':bd(0x1e9),'value':{'tabName':bd(0x1e9),'tabIcon':'/assets/img/classlink.ico'}},{'option':'Quizlet','value':{'tabName':bd(0x214),'tabIcon':'/assets/img/quizlet.png'}},{'option':bd(0xe5),'value':{'tabName':'Big\x20Ideas\x20Math','tabIcon':bd(0xf5)}},{'option':bd(0x212),'value':{'tabName':bd(0x1f4),'tabIcon':'/assets/img/khan.png'}}],Kt=[{'option':'Google','value':{'engineName':'Google','engine':bd(0x102),'engineIcon':'https://upload.wikimedia.org/wikipedia/commons/thumb/3/3c/Google_Favicon_2025.svg/120px-Google_Favicon_2025.svg.png'}},{'option':bd(0x34b),'value':{'engineName':'DuckDuckGo','engine':'https://duckduckgo.com/?q=','engineIcon':bd(0x213)}},{'option':'Bing','value':{'engineName':bd(0x14d),'engine':bd(0x346),'engineIcon':'https://www.bing.com/favicon.ico'}},{'option':bd(0x27f),'value':{'engineName':bd(0x27f),'engine':'https://search.brave.com/search?q=','engineIcon':'https://brave.com/static-assets/images/brave-logo-sans-text.svg'}},{'option':'Yahoo','value':{'engineName':bd(0x1da),'engine':bd(0x16a),'engineIcon':''}},{'option':bd(0x2b1),'value':{'engineName':bd(0x2b1),'engine':'https://www.startpage.com/sp/search?q=','engineIcon':''}},{'option':bd(0x229),'value':{'engineName':bd(0x229),'engine':bd(0x296),'engineIcon':''}},{'option':bd(0x1ee),'value':{'engineName':bd(0x1ee),'engine':'https://www.ask.com/web?q=','engineIcon':''}},{'option':'Baidu','value':{'engineName':bd(0x2a2),'engine':'https://www.baidu.com/s?wd=','engineIcon':''}},{'option':'Dogpile','value':{'engineName':bd(0x13e),'engine':'https://www.dogpile.com/serp?q=','engineIcon':''}},{'option':'Kagi','value':{'engineName':'Kagi','engine':bd(0x2cf),'engineIcon':''}},{'option':'Lycos','value':{'engineName':bd(0x248),'engine':bd(0x1c3),'engineIcon':''}},{'option':bd(0x228),'value':{'engineName':'Mojeek','engine':'https://www.mojeek.com/search?q=','engineIcon':''}},{'option':bd(0xec),'value':{'engineName':bd(0xec),'engine':'https://www.qwant.com/?q=','engineIcon':''}},{'option':bd(0xda),'value':{'engineName':bd(0xda),'engine':'https://swisscows.com/web?query=','engineIcon':''}},{'option':bd(0x317),'value':{'engineName':'Yandex','engine':'https://yandex.com/search/?text=','engineIcon':''}},{'option':bd(0x32f),'value':{'engineName':bd(0x32f),'engine':bd(0x1d6),'engineIcon':''}},{'option':'SearXNG\x20(metasearch)','value':{'engineName':'SearXNG','engine':'https://searx.be/search?q=','engineIcon':''}},{'option':'Presearch','value':{'engineName':'Presearch','engine':'https://presearch.com/search?q=','engineIcon':''}},{'option':'Petal','value':{'engineName':bd(0x280),'engine':bd(0x1f9),'engineIcon':''}},{'option':'Sogou','value':{'engineName':'Sogou','engine':bd(0x1c4),'engineIcon':''}},{'option':bd(0x18d),'value':{'engineName':'Gigablast','engine':bd(0x2bf),'engineIcon':''}},{'option':bd(0x33e),'value':{'engineName':bd(0x1d4),'engine':bd(0x27e),'engineIcon':''}},{'option':'WebCrawler','value':{'engineName':'WebCrawler','engine':'https://www.webcrawler.com/serp?q=','engineIcon':''}}],Ht=[{'option':'20\x20apps','value':{'itemsPerPage':0x14}},{'option':bd(0x180),'value':{'itemsPerPage':0x1e}},{'option':'40\x20apps','value':{'itemsPerPage':0x28}},{'option':bd(0x2c6),'value':{'itemsPerPage':0x32}},{'option':'75\x20apps','value':{'itemsPerPage':0x4b}},{'option':bd(0x23c),'value':{'itemsPerPage':0x64}},{'option':bd(0x23f),'value':{'itemsPerPage':0x2710}}],Vt=[{'option':'50%','value':{'navScale':0.5}},{'option':bd(0x1b6),'value':{'navScale':0.8}},{'option':'90%','value':{'navScale':0.9}},{'option':'100%','value':{'navScale':0x1}},{'option':'110%','value':{'navScale':1.1}},{'option':bd(0x13d),'value':{'navScale':1.2}},{'option':bd(0xdb),'value':{'navScale':1.3}}],Qt=[{'option':bd(0x299),'value':{'prType':'scr'}},{'option':bd(0x104),'value':{'prType':'auto'}},{'option':'Ultraviolet\x20only','value':{'prType':'uv'}}],ce=[{'option':'Dots','value':{'bgDesign':bd(0x2fe),'getCSS':a=>'radial-gradient(circle,\x20rgba('+a+bd(0x16f)}},{'option':'Stripes','value':{'bgDesign':'diagonalStripes','getCSS':a=>bd(0x2b2)+a+bd(0x33c)+a+',0.15)\x202px,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20transparent\x202px,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20transparent\x208px\x0a\x20\x20\x20\x20\x20\x20\x20\x20)'}},{'option':'Griddy','value':{'bgDesign':'grid','getCSS':a=>bd(0x33a)+a+bd(0x10c)+a+',0.2)\x201px,\x20transparent\x201px)\x0a\x20\x20\x20\x20\x20\x20'}},{'option':'None','value':{'bgDesign':bd(0x1e3)}}],Jt=Object[bd(0x25c)](Object['defineProperty']({'__proto__':null,'appsPerPageConfig':Ht,'designConfig':ce,'meta':Gt,'navScaleConfig':Vt,'prConfig':Qt,'searchConfig':Kt,'themeConfig':Ft},Symbol[bd(0x163)],{'value':'Module'}));function Zt(){const dd=bd,a={'tyVQg':function(ag,ah){return ag+ah;},'CburJ':'/sw.js','LCNod':dd(0x130),'OlIoV':dd(0x2ca)},{options:b}=R(),c=(location['protocol']=='http:'?'ws:':dd(0x330))+'//'+location[dd(0x14b)]+dd(0x1d5),af=[{'path':new URL(a['CburJ'],location['origin'])[dd(0x2f2)],'scope':new URL(a['LCNod'],location['origin'])[dd(0x2f2)]},{'path':new URL(a['OlIoV'],location['origin'])[dd(0x2f2)],'scope':new URL('/ham/',location['origin'])[dd(0x2f2)]}];E(ag=>ag['setWispStatus']),h['useEffect'](()=>{const ag={'tBiLg':'/ham/','hTPdX':function(ah,ai){const df=f;return a[df(0xe8)](ah,ai);},'aBXtU':'none','KHViz':function(ah,ai){return ah!=ai;},'Hbvqh':function(ah,ai){return ah!==ai;}};((async()=>{const dg=f;if(!window['scr']){const an=document['createElement']('script');an[dg(0x302)]='/eggs/scramjet.all.js',await new Promise((ap,aq)=>{const dh=dg;an['onload']=ap,an[dh(0x190)]=aq,document['head'][dh(0x10a)](an);});}const {ScramjetController:ah}=$scramjetLoadController(),ai=ag['tBiLg'],aj='/eggs/';window['scr']=new ah({'prefix':ai,'files':{'wasm':ag['hTPdX'](aj,dg(0x2d0)),'all':aj+'scramjet.all.js','sync':aj+dg(0x1d9)},'flags':{'rewriterLogs':!0x1,'scramitize':!0x1,'cleanErrors':!0x0,'sourcemaps':!0x0},'codec':vt()}),window['scr'][dg(0xe7)]();for(const ap of af)try{const aq=ap['scope']?{'scope':ap['scope'],'updateViaCache':ag['aBXtU']}:{'updateViaCache':dg(0x1e3)};await(await navigator['serviceWorker'][dg(0x1ce)](ap[dg(0x1b3)],aq))['update']();}catch(ar){console['warn']('SW\x20reg\x20err\x20('+ap[dg(0x1b3)]+'):',ar);}const ak=new URL('/baremux/worker.js',location['origin'])['href'],al=new aa(ak);let am=null;try{am=null;}catch{am=null;}ag[dg(0x1cb)](b[dg(0x272)],null)&&ag[dg(0x12a)](b[dg(0x272)],'')&&b[dg(0x272)],await al['setTransport'](dg(0x13a),[{'wisp':c}]);})());},[b[dd(0x272)]]);}const Oe=()=>$(()=>import('./chunks/Home.BJzwmpo-.js'),__vite__mapDeps([0,1,2,3,4])),Ae=()=>$(()=>import('./chunks/Apps.D-KJr-8K.js'),__vite__mapDeps([5,1,2,3,4,6,7])),De=()=>$(()=>import('./chunks/Apps2.D28fohTr.js'),__vite__mapDeps([8,1,2,3,4,6,7])),Me=()=>$(()=>import('./chunks/Settings.vTVUOmcD.js'),__vite__mapDeps([9,1,2,3,4])),Yt=K(Oe),Xt=K(Ae),eo=K(De),to=K(Me),oo=K(()=>$(()=>import('./chunks/Player.DqC_tdPp.js'),__vite__mapDeps([10,1,2,3,4,11])));H('/materials',Ae),H(bd(0x2a6),De),H('/settings',Me),H('/',Oe);function no(){const di=bd,a={'qVTPx':di(0x1a4)},b=r();h['useEffect'](()=>{const dj=di;ab['send']({'hitType':a[dj(0x189)],'page':b[dj(0x35a)]});},[b]);}const $e=h[bd(0xf1)](()=>{const dk=bd,a={'XqVXW':function(ag,ah){return ag===ah;},'cIyyo':function(ag){return ag();},'peBWI':dk(0x12d)},{options:b}=R();Zt(),a['cIyyo'](no);const c=h[dk(0x267)](()=>[{'path':'/','element':g['jsx'](Yt,{})},{'path':dk(0x320),'element':g['jsx'](Xt,{})},{'path':dk(0x2a6),'element':g[dk(0x194)](eo,{})},{'path':dk(0x216),'element':g['jsx'](oo,{})},{'path':dk(0x27b),'element':g[dk(0x194)](qt,{})},{'path':dk(0x286),'element':g['jsx'](to,{})},{'path':'/portal/k12/*','element':g[dk(0x194)](ae,{})},{'path':'/ham/*','element':g['jsx'](ae,{})},{'path':'*','element':g['jsx'](ae,{})}],[]),af=h[dk(0x267)](()=>{const dl=dk,ag=a['XqVXW'](b[dl(0x107)],dl(0x2a8))?'none':(ce['find'](ah=>ah['value']['bgDesign']===b[dl(0x107)])||ce[0x0])['value'][dl(0x21f)]?.(b['bgDesignColor']||'102,\x20105,\x20109')||dl(0x1e3);return'\x0a\x20\x20\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20color:\x20'+(b[dl(0xfd)]||dl(0x1cc))+';\x0a\x20\x20\x20\x20\x20\x20\x20\x20background-image:\x20'+ag+';\x0a\x20\x20\x20\x20\x20\x20\x20\x20background-color:\x20'+(b[dl(0x197)]||dl(0x349))+dl(0x1f5);},[b[dk(0xfd)],b['bgDesign'],b[dk(0x2b9)],b[dk(0x197)]]);return g[dk(0x137)](g[dk(0x2af)],{'children':[g['jsx'](Re,{'pages':c}),g[dk(0x194)](a['peBWI'],{'children':af})]});});$e['displayName']='ThemedApp';const so=()=>g['jsx'](bt,{'children':g['jsx']($e,{})});function f(a,b){a=a-0xda;const c=e();let d=c[a];return d;}typeof window<'u'&&(bd(0x2b6)in window?requestIdleCallback(()=>ab['initialize']('G-HWLK0PZVBM')):setTimeout(()=>ab[bd(0x15d)](bd(0x27d)),0x0));const ro=ac[bd(0x2d4)](document['getElementById'](bd(0x1b7))),ao=ad;h[bd(0x315)](()=>{const dm=bd;ro[dm(0x19f)](g['jsx'](ao,{'children':g['jsx'](so,{})}));});export{Dt as B,qt as L,Pe as Q,Rt as S,$ as _,Ht as a,Ft as b,E as c,ce as d,_t as e,de as f,Ee as g,co as h,Gt as m,Vt as n,Qt as p,Kt as s,Z as t,R as u};
dist/assets/BEVGhU8i.css ADDED
@@ -0,0 +1 @@
 
 
1
+ @import"https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap";@import"https://fonts.googleapis.com/css2?family=Geist:wght@100..900&display=swap";.fsbixcg,.pjdo4c6,.nyneoik,.pybsoze,.eksfati,.n41p11g,.bcct122{transition:all .1s ease-in-out,box-shadow .1s ease-in-out}.dzo1688 input::placeholder,.o0gsndl input::placeholder{transition:color .1s ease-in-out}.gkg691q input{transition:color .1s ease-in-out}.h49vsbz{--nav-bg: #0a141bb7;--nav-border: #17253ac5;--search-border: #1f324e;--search-bg: #141d2b;--search-ph: #9baec8;--search-color: #ecf6ff;--settings-panel: #141d2b;--settings-border: #233046;--apps-bg: #141d2b;--apps-border: #1f324e;--apps-text: #ecf6ff;--apps-ph: #9baec8;--item-bg: #141d2b;--item-border: #1f324e}.qbdlwh5{--nav-bg: #141313b7;--nav-border: #2b2222c5;--search-border: #362f2f;--search-bg: #241e1e;--search-ph: #b8abab;--search-color: #ecf6ff;--settings-panel: #1f1817;--settings-border: #362f2f;--apps-bg: #291e1e;--apps-border: #3b2e2e;--apps-text: #ecf6ff;--apps-ph: #bea4a4;--item-bg: #271c1c;--item-border: #443535}.a3c346o{--nav-bg: #0e0e10cc;--nav-border: #22232a;--search-border: #2a2a2f;--search-bg: #151517;--search-ph: #9ca3af;--search-color: #ecf6ff;--settings-panel: #121214;--settings-border: #27272a;--apps-bg: #151519;--apps-border: #2a2a2f;--apps-text: #f8fafc;--apps-ph: #9ca3af;--item-bg: #151519;--item-border: #2a2a2f}.fchm60m{--nav-bg: #ffffffcc;--nav-border: #e5e7eb;--search-border: #d1d5db;--search-bg: #ffffff;--search-ph: #374151;--search-color: #1a1a1a;--settings-panel: #f8fafc;--settings-border: #e5e7eb;--apps-bg: #ffffffb3;--apps-border: #e5e7eb;--apps-text: #111827;--apps-ph: #374151;--item-bg: #ffffff;--item-border: #e5e7eb}.h9g93nb{--nav-bg: #0f1a13b7;--nav-border: #1e2e24c5;--search-border: #2a4937;--search-bg: #14221a;--search-ph: #a9cbb6;--search-color: #ecf6ff;--settings-panel: #121d16;--settings-border: #2a4937;--apps-bg: #15261c;--apps-border: #2f4f3c;--apps-text: #ecfff3;--apps-ph: #a9cbb6;--item-bg: #15261c;--item-border: #2f4f3c}.g3ep2zx{--nav-bg: #02030ecc;--nav-border: #2f3350;--search-border: #232538;--search-bg: #171927;--search-ph: #adb2e1;--search-color: #e2e5ff;--settings-panel: #151624;--settings-border: #2d2f44;--apps-bg: #181a26;--apps-border: #2d2f44;--apps-text: #d6daff;--apps-ph: #acb0d1;--item-bg: #1d1f2d;--item-border: #08090f}.bw9skel{--nav-bg: #fff9ece6;--nav-border: #e8e2cf;--search-border: #e6dec7;--search-bg: #fffaf2;--search-ph: #4b5563;--search-color: #1a1a1a;--settings-panel: #faf4e6;--settings-border: #ebe3cd;--apps-bg: #fffcf3;--apps-border: #eae1ca;--apps-text: #1f2937;--apps-ph: #4b5563;--item-bg: #fffbef;--item-border: #e6dec7}.gu4logg{background-color:var(--nav-bg);border-bottom:1px solid var(--nav-border)}.fr69i0c{border:1px solid var(--search-border);box-shadow:0 1px 0 0 var(--search-border);background-color:var(--search-bg)}.ap75dwb input{color:var(--search-color)}.op4nsqs input::placeholder{color:var(--search-ph)}.mfnhl58{background-color:var(--search-bg);border:1px solid var(--search-border);border-top:0}.ipkhodn{background-color:var(--settings-panel);border-right:1px solid var(--settings-border)}.adrf5bz{background-color:var(--apps-bg);border:1px solid var(--apps-border)}.qgh5ttg input{color:var(--apps-text);border:none}.gqudx43 input::placeholder{color:var(--apps-ph)}.kw70iq3{background-color:var(--item-bg);border:1px solid var(--item-border);box-shadow:0 4px 20px -9px #00000040}@layer properties,theme,base,components,utilities;@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-2xl:42rem;--container-7xl:80rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75 / 1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2 / 1.5);--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--leading-snug:1.375;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--ease-in:cubic-bezier(.4, 0, 1, 1);--ease-out:cubic-bezier(0, 0, .2, 1);--ease-in-out:cubic-bezier(.4, 0, .2, 1);--animate-spin:spin 1s linear infinite;--animate-pulse:pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}*,:after,:before,::backdrop{border-color:#ffffff1c}::file-selector-button{border-color:#ffffff1c}:root{--ui-scale:1;--nav-scale:1}*{scrollbar-color:initial;scrollbar-width:initial}}@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.inset-0{inset:calc(var(--spacing) * 0)}.start{inset-inline-start:var(--spacing)}.-top-2{top:calc(var(--spacing) * -2)}.top-5{top:calc(var(--spacing) * 5)}.top-full{top:100%}.-right-2{right:calc(var(--spacing) * -2)}.right-0{right:calc(var(--spacing) * 0)}.right-2{right:calc(var(--spacing) * 2)}.right-5{right:calc(var(--spacing) * 5)}.bottom-0{bottom:calc(var(--spacing) * 0)}.bottom-5{bottom:calc(var(--spacing) * 5)}.left-0{left:calc(var(--spacing) * 0)}.left-10{left:calc(var(--spacing) * 10)}.isolate{isolation:isolate}.-z-20{z-index:-20}.z-0{z-index:0}.z-10{z-index:10}.z-50{z-index:50}.z-9999,.z-\[9999\]{z-index:9999}.mx-1{margin-inline:calc(var(--spacing) * 1)}.mx-4{margin-inline:calc(var(--spacing) * 4)}.mx-auto{margin-inline:auto}.-mt-3{margin-top:calc(var(--spacing) * -3)}.mt-0{margin-top:calc(var(--spacing) * 0)}.mt-1{margin-top:calc(var(--spacing) * 1)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-3{margin-top:calc(var(--spacing) * 3)}.mt-4{margin-top:calc(var(--spacing) * 4)}.mt-5{margin-top:calc(var(--spacing) * 5)}.mt-8{margin-top:calc(var(--spacing) * 8)}.mt-11{margin-top:calc(var(--spacing) * 11)}.mt-16{margin-top:calc(var(--spacing) * 16)}.mt-21{margin-top:calc(var(--spacing) * 21)}.mt-\[16rem\]{margin-top:16rem}.mt-auto{margin-top:auto}.mr-1{margin-right:calc(var(--spacing) * 1)}.mr-1\.5{margin-right:calc(var(--spacing) * 1.5)}.mr-5{margin-right:calc(var(--spacing) * 5)}.mb-0\.5{margin-bottom:calc(var(--spacing) * .5)}.mb-1{margin-bottom:calc(var(--spacing) * 1)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.mb-8{margin-bottom:calc(var(--spacing) * 8)}.-ml-3{margin-left:calc(var(--spacing) * -3)}.ml-1{margin-left:calc(var(--spacing) * 1)}.ml-2{margin-left:calc(var(--spacing) * 2)}.ml-4{margin-left:calc(var(--spacing) * 4)}.ml-9{margin-left:calc(var(--spacing) * 9)}.ml-auto{margin-left:auto}.scrollbar::-webkit-scrollbar-track{background-color:var(--scrollbar-track);border-radius:var(--scrollbar-track-radius)}.scrollbar::-webkit-scrollbar-thumb{background-color:var(--scrollbar-thumb);border-radius:var(--scrollbar-thumb-radius)}.scrollbar::-webkit-scrollbar-corner{background-color:var(--scrollbar-corner);border-radius:var(--scrollbar-corner-radius)}.scrollbar{scrollbar-width:auto;scrollbar-color:var(--scrollbar-thumb,initial) var(--scrollbar-track,initial)}.scrollbar::-webkit-scrollbar{width:var(--scrollbar-width,16px);height:var(--scrollbar-height,16px);display:block}.scrollbar-thin::-webkit-scrollbar-track{background-color:var(--scrollbar-track);border-radius:var(--scrollbar-track-radius)}.scrollbar-thin::-webkit-scrollbar-thumb{background-color:var(--scrollbar-thumb);border-radius:var(--scrollbar-thumb-radius)}.scrollbar-thin::-webkit-scrollbar-corner{background-color:var(--scrollbar-corner);border-radius:var(--scrollbar-corner-radius)}.scrollbar-thin{scrollbar-width:thin;scrollbar-color:var(--scrollbar-thumb,initial) var(--scrollbar-track,initial)}.scrollbar-thin::-webkit-scrollbar{width:8px;height:8px;display:block}.line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline-block{display:inline-block}.size-5{width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.h-2{height:calc(var(--spacing) * 2)}.h-4{height:calc(var(--spacing) * 4)}.h-5{height:calc(var(--spacing) * 5)}.h-6{height:calc(var(--spacing) * 6)}.h-7{height:calc(var(--spacing) * 7)}.h-10{height:calc(var(--spacing) * 10)}.h-11{height:calc(var(--spacing) * 11)}.h-12{height:calc(var(--spacing) * 12)}.h-13{height:calc(var(--spacing) * 13)}.h-20{height:calc(var(--spacing) * 20)}.h-30{height:calc(var(--spacing) * 30)}.h-64{height:calc(var(--spacing) * 64)}.h-\[1\.08rem\]{height:1.08rem}.h-\[2\.5rem\]{height:2.5rem}.h-\[3\.41rem\]{height:3.41rem}.h-\[5\.5rem\]{height:5.5rem}.h-\[20\.8rem\]{height:20.8rem}.h-\[calc\(100\%-7px\)\]{height:calc(100% - 7px)}.h-\[calc\(100\%-8px\)\]{height:calc(100% - 8px)}.h-\[calc\(100\%-100px\)\]{height:calc(100% - 100px)}.h-\[calc\(100vh-38px\)\]{height:calc(100vh - 38px)}.h-full{height:100%}.h-screen{height:100vh}.max-h-60{max-height:calc(var(--spacing) * 60)}.max-h-\[80vh\]{max-height:80vh}.max-h-\[calc\(80vh-4rem\)\]{max-height:calc(80vh - 4rem)}.min-h-screen{min-height:100vh}.w-4{width:calc(var(--spacing) * 4)}.w-5{width:calc(var(--spacing) * 5)}.w-6{width:calc(var(--spacing) * 6)}.w-7{width:calc(var(--spacing) * 7)}.w-12{width:calc(var(--spacing) * 12)}.w-14{width:calc(var(--spacing) * 14)}.w-20{width:calc(var(--spacing) * 20)}.w-56{width:calc(var(--spacing) * 56)}.w-60{width:calc(var(--spacing) * 60)}.w-\[1\.08rem\]{width:1.08rem}.w-\[2\.5rem\]{width:2.5rem}.w-\[15\.8rem\]{width:15.8rem}.w-\[20px\]{width:20px}.w-\[29rem\]{width:29rem}.w-\[30rem\]{width:30rem}.w-\[40\.625rem\]{width:40.625rem}.w-\[80\%\]{width:80%}.w-\[101px\]{width:101px}.w-\[600px\]{width:600px}.w-fit{width:fit-content}.w-full{width:100%}.max-w-2xl{max-width:var(--container-2xl)}.max-w-7xl{max-width:var(--container-7xl)}.max-w-52{max-width:calc(var(--spacing) * 52)}.max-w-72{max-width:calc(var(--spacing) * 72)}.max-w-\[40rem\]{max-width:40rem}.max-w-\[200px\]{max-width:200px}.min-w-0{min-width:calc(var(--spacing) * 0)}.min-w-7{min-width:calc(var(--spacing) * 7)}.min-w-\[3rem\]{min-width:3rem}.min-w-\[60px\]{min-width:60px}.flex-1{flex:1}.flex-none{flex:none}.flex-shrink{flex-shrink:1}.flex-shrink-0,.shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.origin-top-right{transform-origin:100% 0}.translate-x-0{--tw-translate-x:calc(var(--spacing) * 0);translate:var(--tw-translate-x) var(--tw-translate-y)}.scale-95{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x) var(--tw-scale-y)}.scale-100{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x) var(--tw-scale-y)}.scale-\[1\.12\]{scale:1.12}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.animate-pulse{animation:var(--animate-pulse)}.animate-spin{animation:var(--animate-spin)}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.resize{resize:both}.flex-col{flex-direction:column}.flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-end{align-items:flex-end}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-1{gap:calc(var(--spacing) * 1)}.gap-1\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-2\.5{gap:calc(var(--spacing) * 2.5)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-5{gap:calc(var(--spacing) * 5)}.gap-8{gap:calc(var(--spacing) * 8)}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 1) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 1) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 2) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-y-reverse)))}.self-start{align-self:flex-start}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-\[0\.8rem\]{border-radius:.8rem}.rounded-\[9px\]{border-radius:9px}.rounded-\[10px\]{border-radius:10px}.rounded-\[12px\]{border-radius:12px}.rounded-\[14px\]{border-radius:14px}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-xl{border-radius:var(--radius-xl)}.rounded-t-\[14px\]{border-top-left-radius:14px;border-top-right-radius:14px}.rounded-t-xl{border-top-left-radius:var(--radius-xl);border-top-right-radius:var(--radius-xl)}.rounded-b-\[14px\]{border-bottom-right-radius:14px;border-bottom-left-radius:14px}.rounded-b-none{border-bottom-right-radius:0;border-bottom-left-radius:0}.rounded-b-xl{border-bottom-right-radius:var(--radius-xl);border-bottom-left-radius:var(--radius-xl)}.border,.border-1{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-gray-300{border-color:var(--color-gray-300)}.border-gray-700{border-color:var(--color-gray-700)}.border-transparent{border-color:#0000}.border-white\/5{border-color:#ffffff0d}@supports (color:color-mix(in lab,red,red)){.border-white\/5{border-color:color-mix(in oklab,var(--color-white) 5%,transparent)}}.border-white\/10{border-color:#ffffff1a}@supports (color:color-mix(in lab,red,red)){.border-white\/10{border-color:color-mix(in oklab,var(--color-white) 10%,transparent)}}.bg-\[\#6d6d6d73\]{background-color:#6d6d6d73}.bg-\[\#ffffff0c\]{background-color:#ffffff0c}.bg-\[\#ffffff10\]{background-color:#ffffff10}.bg-\[\#ffffff15\]{background-color:#ffffff15}.bg-black\/15{background-color:#00000026}@supports (color:color-mix(in lab,red,red)){.bg-black\/15{background-color:color-mix(in oklab,var(--color-black) 15%,transparent)}}.bg-black\/35{background-color:#00000059}@supports (color:color-mix(in lab,red,red)){.bg-black\/35{background-color:color-mix(in oklab,var(--color-black) 35%,transparent)}}.bg-black\/40{background-color:#0006}@supports (color:color-mix(in lab,red,red)){.bg-black\/40{background-color:color-mix(in oklab,var(--color-black) 40%,transparent)}}.bg-black\/50{background-color:#00000080}@supports (color:color-mix(in lab,red,red)){.bg-black\/50{background-color:color-mix(in oklab,var(--color-black) 50%,transparent)}}.bg-gray-50{background-color:var(--color-gray-50)}.bg-gray-200{background-color:var(--color-gray-200)}.bg-gray-600{background-color:var(--color-gray-600)}.bg-gray-700{background-color:var(--color-gray-700)}.bg-inherit{background-color:inherit}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.p-1{padding:calc(var(--spacing) * 1)}.p-1\.5{padding:calc(var(--spacing) * 1.5)}.p-2{padding:calc(var(--spacing) * 2)}.p-2\.5{padding:calc(var(--spacing) * 2.5)}.p-4{padding:calc(var(--spacing) * 4)}.p-5{padding:calc(var(--spacing) * 5)}.p-6{padding:calc(var(--spacing) * 6)}.p-\[0\.4rem\]{padding:.4rem}.px-1{padding-inline:calc(var(--spacing) * 1)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-5{padding-inline:calc(var(--spacing) * 5)}.px-9{padding-inline:calc(var(--spacing) * 9)}.px-20{padding-inline:calc(var(--spacing) * 20)}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:calc(var(--spacing) * 1)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-6{padding-block:calc(var(--spacing) * 6)}.py-7{padding-block:calc(var(--spacing) * 7)}.pt-3{padding-top:calc(var(--spacing) * 3)}.pr-4{padding-right:calc(var(--spacing) * 4)}.pr-5{padding-right:calc(var(--spacing) * 5)}.pb-1{padding-bottom:calc(var(--spacing) * 1)}.pb-2{padding-bottom:calc(var(--spacing) * 2)}.pb-7{padding-bottom:calc(var(--spacing) * 7)}.pl-1{padding-left:calc(var(--spacing) * 1)}.pl-2\.5{padding-left:calc(var(--spacing) * 2.5)}.pl-3{padding-left:calc(var(--spacing) * 3)}.pl-4{padding-left:calc(var(--spacing) * 4)}.pl-5{padding-left:calc(var(--spacing) * 5)}.pl-6{padding-left:calc(var(--spacing) * 6)}.text-center{text-align:center}.text-left{text-align:left}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\[0\.7rem\]{font-size:.7rem}.text-\[0\.8rem\]{font-size:.8rem}.text-\[0\.9rem\]{font-size:.9rem}.text-\[0\.74rem\]{font-size:.74rem}.text-\[0\.75rem\]{font-size:.75rem}.text-\[0\.79rem\]{font-size:.79rem}.text-\[0\.88rem\]{font-size:.88rem}.text-\[0\.8125rem\]{font-size:.8125rem}.text-\[0\.9375rem\]{font-size:.9375rem}.text-\[1\.05rem\]{font-size:1.05rem}.text-\[1rem\]{font-size:1rem}.text-\[14px\]{font-size:14px}.text-\[15px\]{font-size:15px}.text-\[16\.5px\]{font-size:16.5px}.leading-\[20px\]{--tw-leading:20px;line-height:20px}.leading-snug{--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.text-gray-300{color:var(--color-gray-300)}.text-gray-400{color:var(--color-gray-400)}.text-gray-500{color:var(--color-gray-500)}.text-red-400{color:var(--color-red-400)}.text-red-500{color:var(--color-red-500)}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.opacity-80{opacity:.8}.opacity-100{opacity:1}.shadow-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a), 0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-0{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.outline-hidden{--tw-outline-style:none;outline-style:none}@media(forced-colors:active){.outline-hidden{outline-offset:2px;outline:2px solid #0000}}.outline-0{outline-style:var(--tw-outline-style);outline-width:0}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-75{--tw-duration:75ms;transition-duration:75ms}.duration-100{--tw-duration:.1s;transition-duration:.1s}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.ease-in{--tw-ease:var(--ease-in);transition-timing-function:var(--ease-in)}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.scrollbar-thumb-gray-500{--scrollbar-thumb:oklch(55.1% .027 264.364)}.scrollbar-thumb-gray-600{--scrollbar-thumb:oklch(44.6% .03 256.802)}.scrollbar-track-transparent{--scrollbar-track:transparent}@media(hover:hover){.group-hover\:opacity-100:is(:where(.group):hover *){opacity:1}}.group-data-checked\:translate-x-7:is(:where(.group)[data-checked] *){--tw-translate-x:calc(var(--spacing) * 7);translate:var(--tw-translate-x) var(--tw-translate-y)}.placeholder\:font-\[Inter\]::placeholder{font-family:Inter}.placeholder\:font-medium::placeholder{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}@media(hover:hover){.hover\:-translate-y-0\.5:hover{--tw-translate-y:calc(var(--spacing) * -.5);translate:var(--tw-translate-x) var(--tw-translate-y)}.hover\:scale-\[1\.15\]:hover{scale:1.15}.hover\:border-\[\#4f4f4f1c\]:hover{border-color:#4f4f4f1c}.hover\:border-\[\#ffffff1c\]:hover{border-color:#ffffff1c}.hover\:bg-\[\#97979773\]:hover{background-color:#97979773}.hover\:bg-\[\#a7a7a7\]:hover{background-color:#a7a7a7}.hover\:bg-\[\#d4d4d418\]:hover{background-color:#d4d4d418}.hover\:bg-\[\#fff3\]:hover{background-color:#fff3}.hover\:bg-\[\#ffffff0c\]:hover{background-color:#ffffff0c}.hover\:bg-\[\#ffffff1e\]:hover{background-color:#ffffff1e}.hover\:bg-\[\#ffffff15\]:hover{background-color:#ffffff15}.hover\:bg-\[\#ffffff18\]:hover{background-color:#ffffff18}.hover\:bg-\[\#ffffff23\]:hover{background-color:#ffffff23}.hover\:bg-\[\#ffffff25\]:hover{background-color:#ffffff25}.hover\:bg-gray-100:hover{background-color:var(--color-gray-100)}.hover\:bg-gray-200:hover{background-color:var(--color-gray-200)}.hover\:bg-gray-300:hover{background-color:var(--color-gray-300)}.hover\:bg-transparent:hover{background-color:#0000}.hover\:bg-white\/10:hover{background-color:#ffffff1a}@supports (color:color-mix(in lab,red,red)){.hover\:bg-white\/10:hover{background-color:color-mix(in oklab,var(--color-white) 10%,transparent)}}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-60:hover{opacity:.6}.hover\:opacity-80:hover{opacity:.8}.hover\:backdrop-blur:hover{--tw-backdrop-blur:blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}.active\:opacity-90:active{opacity:.9}@media(min-width:40rem){.sm\:px-8{padding-inline:calc(var(--spacing) * 8)}}@media(min-width:48rem){.md\:px-16{padding-inline:calc(var(--spacing) * 16)}}@media(prefers-color-scheme:dark){.dark\:text-gray-400{color:var(--color-gray-400)}}}@font-face{font-family:SFProText;src:url(https://cdn.jsdelivr.net/gh/nerocdn/assets-8bH2k/subset-SFProText-Semibold.woff2)format("woff2"),url(https://cdn.jsdelivr.net/gh/nerocdn/assets-8bH2k/subset-SFProText-Semibold.woff)format("woff");font-weight:600;font-style:normal;font-display:swap}body{-webkit-user-select:none;user-select:none;font-family:Geist,Inter,SF Pro Text,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:14px;font-weight:500}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.5}}@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-ease:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial}}}
dist/assets/BuigefS6.css ADDED
@@ -0,0 +1 @@
 
 
1
+ html [data-m]{animation-fill-mode:forwards;animation-duration:1.5s;animation-delay:0;animation-timing-function:ease-out}@keyframes bounce-up{0%{opacity:0;transform:translateY(2rem)}to{opacity:1;transform:translateY(0)}}html [data-m=bounce-up]{animation-timing-function:cubic-bezier(.34,1.56,.64,1);animation-name:bounce-up;transform:translateY(2rem);opacity:0}@keyframes bounce-down{0%{opacity:0;transform:translateY(-2rem)}to{opacity:1;transform:translateY(0)}}html [data-m=bounce-down]{animation-timing-function:cubic-bezier(.34,1.56,.64,1);animation-name:bounce-down;transform:translateY(-2rem);opacity:0}@keyframes bounce-right{0%{opacity:0;transform:translate(-2rem)}to{opacity:1;transform:translate(0)}}html [data-m=bounce-right]{animation-timing-function:cubic-bezier(.34,1.56,.64,1);animation-name:bounce-right;transform:translate(-2rem);opacity:0}@keyframes bounce-left{0%{opacity:0;transform:translate(2rem)}to{opacity:1;transform:translate(0)}}html [data-m=bounce-left]{animation-timing-function:cubic-bezier(.34,1.56,.64,1);animation-name:bounce-left;transform:translate(2rem);opacity:0}@keyframes reveal{0%{clip-path:circle(0% at 50% 50%)}to{clip-path:circle(150% at 50% 50%)}}html [data-m=reveal]{animation-name:reveal;clip-path:circle(0% at 50% 50%)}@keyframes reveal-up{0%{clip-path:polygon(0 100%,100% 100%,100% 100%,0% 100%)}to{clip-path:polygon(0 0,100% 0,100% 100%,0% 100%)}}html [data-m=reveal-up]{animation-name:reveal-up;clip-path:polygon(0 100%,100% 100%,100% 100%,0% 100%)}@keyframes reveal-down{0%{clip-path:polygon(0 0,100% 0,100% 0,0 0)}to{clip-path:polygon(0 0,100% 0,100% 100%,0% 100%)}}html [data-m=reveal-down]{animation-name:reveal-down;clip-path:polygon(0 0,100% 0,100% 0,0 0)}@keyframes reveal-right{0%{clip-path:polygon(0 0,0 0,0 100%,0% 100%)}to{clip-path:polygon(0 0,100% 0,100% 100%,0% 100%)}}html [data-m=reveal-right]{animation-name:reveal-right;clip-path:polygon(0 0,0 0,0 100%,0% 100%)}@keyframes reveal-left{0%{clip-path:polygon(100% 0,100% 0,100% 100%,100% 100%)}to{clip-path:polygon(0 0,100% 0,100% 100%,0% 100%)}}html [data-m=reveal-left]{animation-name:reveal-left;clip-path:polygon(100% 0,100% 0,100% 100%,100% 100%)}@keyframes scale{0%{transform:scale(.5);opacity:0}to{transform:scale(1);opacity:1}}html [data-m=scale]{animation-name:scale;transform:scale(.5);opacity:0}@keyframes scale-up{0%{transform:translateY(3rem) scale(.5);opacity:0}to{transform:translateY(0) scale(1);opacity:1}}html [data-m=scale-up]{animation-name:scale-up;transform:translateY(3rem) scale(.5);opacity:0}@keyframes scale-down{0%{transform:translateY(-3rem) scale(.5);opacity:0}to{transform:translateY(0) scale(1);opacity:1}}html [data-m=scale-down]{animation-name:scale-down;transform:translateY(-3rem) scale(.5);opacity:0}@keyframes scale-left{0%{transform:rotate(10deg) translateY(3rem) scale(.5);opacity:0}to{transform:rotate(0) translateY(0) scale(1);opacity:1}}html [data-m=scale-left]{animation-name:scale-left;transform:rotate(10deg) translateY(3rem) scale(.5);opacity:0}@keyframes scale-right{0%{transform:rotate(-10deg) translateY(3rem) scale(.5);opacity:0}to{transform:rotate(0) translateY(0) scale(1);opacity:1}}html [data-m=scale-right]{animation-name:scale-right;transform:rotate(-10deg) translateY(3rem) scale(.5);opacity:0}@keyframes scale-down-left{0%{transform:rotate(10deg) translateY(-3rem) scale(.5);opacity:0}to{transform:rotate(0) translateY(0) scale(1);opacity:1}}html [data-m=scale-down-left]{animation-name:scale-down-left;transform:rotate(10deg) translateY(-3rem) scale(.5);opacity:0}@keyframes scale-down-right{0%{transform:rotate(-10deg) translateY(-3rem) scale(.5);opacity:0}to{transform:rotate(0) translateY(0) scale(1);opacity:1}}html [data-m=scale-down-right]{animation-name:scale-down-right;transform:rotate(-10deg) translateY(-3rem) scale(.5);opacity:0}@keyframes flip{0%{transform:perspective(2500px) rotateX(100deg)}to{transform:perspective(2500px) rotateX(0)}}html [data-m=flip]{animation-timing-function:cubic-bezier(.34,1.56,.64,1);animation-name:flip;transform:perspective(2500px) rotateX(90deg)}@keyframes flip-right{0%{transform:perspective(2500px) rotateY(-90deg)}to{transform:perspective(2500px) rotateY(0)}}html [data-m=flip-right]{animation-timing-function:cubic-bezier(.34,1.56,.64,1);animation-name:flip-right;transform:perspective(2500px) rotateX(-90deg)}@keyframes flip-left{0%{transform:perspective(2500px) rotateY(90deg)}to{transform:perspective(2500px) rotateY(0)}}html [data-m=flip-left]{animation-timing-function:cubic-bezier(.34,1.56,.64,1);animation-name:flip-left;transform:perspective(2500px) rotateX(90deg)}@keyframes drop{0%{clip-path:polygon(calc(50% - 1px) 0,calc(50% + 1px) 0,calc(50% + 1px) 0,calc(50% - 1px) 0)}30%{clip-path:polygon(calc(50% - 1px) 0,calc(50% + 1px) 0,calc(50% + 1px) 100%,calc(50% - 1px) 100%)}to{clip-path:polygon(0 0,100% 0,100% 100%,0% 100%)}}html [data-m=drop]{animation-timing-function:cubic-bezier(.34,1.56,.64,1);animation-name:drop;clip-path:polygon(calc(50% - 1px) 0,calc(50% + 1px) 0,calc(50% + 1px) 0,calc(50% - 1px) 0)}@keyframes glitch{0%{font-weight:300;clip-path:polygon(70% 0,100% 0,100% 100%,70% 100%);transform:translate(5%,-5%)}10%{filter:invert(20%) blur(3px);opacity:0;transform:translate(-5%,-5%)}20%{font-weight:700;clip-path:polygon(0 0,28% 0,28% 80%,0 100%)}30%{filter:invert(60%) blur(6px);opacity:.3;transform:translate(-5%,5%)}40%{font-weight:500;clip-path:polygon(0 63%,100% 80%,30% 100%,0 100%);transform:translate(-5%,-5%)}50%{filter:invert(5%) blur(3px);opacity:.1;transform:translate(5%,5%)}60%{font-weight:400;clip-path:polygon(70% 20%,100% 52%,100% 100%,70% 100%);transform:translate(5%,-5%)}70%{filter:invert(70%) blur(0);opacity:.8;transform:translate(5%,5%)}80%{font-weight:600;clip-path:polygon(0 0,50% 0,70% 100%,0% 90%)}90%{filter:invert(100%) blur(1px);opacity:.5;transform:translate(5%,-5%)}to{font-weight:inherit;clip-path:polygon(0 0,100% 0,100% 100%,0% 100%);filter:invert(0%) blur(0);opacity:1;transform:translate(0)}}html [data-m=glitch]{animation-name:glitch;opacity:0}@keyframes blur{0%{filter:blur(1rem)}to{filter:blur(0)}}html [data-m=blur]{animation-name:blur;filter:blur(1rem)}body[data-m-duration="0.1"] [data-m],[data-m][data-m][data-m-duration="0.1"]{animation-duration:.1s}body[data-m-delay="0.1"] [data-m],[data-m][data-m][data-m-delay="0.1"]{animation-delay:.1s}body[data-m-duration="0.2"] [data-m],[data-m][data-m][data-m-duration="0.2"]{animation-duration:.2s}body[data-m-delay="0.2"] [data-m],[data-m][data-m][data-m-delay="0.2"]{animation-delay:.2s}body[data-m-duration="0.3"] [data-m],[data-m][data-m][data-m-duration="0.3"]{animation-duration:.3s}body[data-m-delay="0.3"] [data-m],[data-m][data-m][data-m-delay="0.3"]{animation-delay:.3s}body[data-m-duration="0.4"] [data-m],[data-m][data-m][data-m-duration="0.4"]{animation-duration:.4s}body[data-m-delay="0.4"] [data-m],[data-m][data-m][data-m-delay="0.4"]{animation-delay:.4s}body[data-m-duration="0.5"] [data-m],[data-m][data-m][data-m-duration="0.5"]{animation-duration:.5s}body[data-m-delay="0.5"] [data-m],[data-m][data-m][data-m-delay="0.5"]{animation-delay:.5s}body[data-m-duration="0.6"] [data-m],[data-m][data-m][data-m-duration="0.6"]{animation-duration:.6s}body[data-m-delay="0.6"] [data-m],[data-m][data-m][data-m-delay="0.6"]{animation-delay:.6s}body[data-m-duration="0.7"] [data-m],[data-m][data-m][data-m-duration="0.7"]{animation-duration:.7s}body[data-m-delay="0.7"] [data-m],[data-m][data-m][data-m-delay="0.7"]{animation-delay:.7s}body[data-m-duration="0.8"] [data-m],[data-m][data-m][data-m-duration="0.8"]{animation-duration:.8s}body[data-m-delay="0.8"] [data-m],[data-m][data-m][data-m-delay="0.8"]{animation-delay:.8s}body[data-m-duration="0.9"] [data-m],[data-m][data-m][data-m-duration="0.9"]{animation-duration:.9s}body[data-m-delay="0.9"] [data-m],[data-m][data-m][data-m-delay="0.9"]{animation-delay:.9s}body[data-m-duration="1"] [data-m],[data-m][data-m][data-m-duration="1"]{animation-duration:1s}body[data-m-delay="1"] [data-m],[data-m][data-m][data-m-delay="1"]{animation-delay:1s}body[data-m-duration="1.1"] [data-m],[data-m][data-m][data-m-duration="1.1"]{animation-duration:1.1s}body[data-m-delay="1.1"] [data-m],[data-m][data-m][data-m-delay="1.1"]{animation-delay:1.1s}body[data-m-duration="1.2"] [data-m],[data-m][data-m][data-m-duration="1.2"]{animation-duration:1.2s}body[data-m-delay="1.2"] [data-m],[data-m][data-m][data-m-delay="1.2"]{animation-delay:1.2s}body[data-m-duration="1.3"] [data-m],[data-m][data-m][data-m-duration="1.3"]{animation-duration:1.3s}body[data-m-delay="1.3"] [data-m],[data-m][data-m][data-m-delay="1.3"]{animation-delay:1.3s}body[data-m-duration="1.4"] [data-m],[data-m][data-m][data-m-duration="1.4"]{animation-duration:1.4s}body[data-m-delay="1.4"] [data-m],[data-m][data-m][data-m-delay="1.4"]{animation-delay:1.4s}body[data-m-duration="1.5"] [data-m],[data-m][data-m][data-m-duration="1.5"]{animation-duration:1.5s}body[data-m-delay="1.5"] [data-m],[data-m][data-m][data-m-delay="1.5"]{animation-delay:1.5s}body[data-m-duration="1.6"] [data-m],[data-m][data-m][data-m-duration="1.6"]{animation-duration:1.6s}body[data-m-delay="1.6"] [data-m],[data-m][data-m][data-m-delay="1.6"]{animation-delay:1.6s}body[data-m-duration="1.7"] [data-m],[data-m][data-m][data-m-duration="1.7"]{animation-duration:1.7s}body[data-m-delay="1.7"] [data-m],[data-m][data-m][data-m-delay="1.7"]{animation-delay:1.7s}body[data-m-duration="1.8"] [data-m],[data-m][data-m][data-m-duration="1.8"]{animation-duration:1.8s}body[data-m-delay="1.8"] [data-m],[data-m][data-m][data-m-delay="1.8"]{animation-delay:1.8s}body[data-m-duration="1.9"] [data-m],[data-m][data-m][data-m-duration="1.9"]{animation-duration:1.9s}body[data-m-delay="1.9"] [data-m],[data-m][data-m][data-m-delay="1.9"]{animation-delay:1.9s}body[data-m-duration="2"] [data-m],[data-m][data-m][data-m-duration="2"]{animation-duration:2s}body[data-m-delay="2"] [data-m],[data-m][data-m][data-m-delay="2"]{animation-delay:2s}body[data-m-duration="2.1"] [data-m],[data-m][data-m][data-m-duration="2.1"]{animation-duration:2.1s}body[data-m-delay="2.1"] [data-m],[data-m][data-m][data-m-delay="2.1"]{animation-delay:2.1s}body[data-m-duration="2.2"] [data-m],[data-m][data-m][data-m-duration="2.2"]{animation-duration:2.2s}body[data-m-delay="2.2"] [data-m],[data-m][data-m][data-m-delay="2.2"]{animation-delay:2.2s}body[data-m-duration="2.3"] [data-m],[data-m][data-m][data-m-duration="2.3"]{animation-duration:2.3s}body[data-m-delay="2.3"] [data-m],[data-m][data-m][data-m-delay="2.3"]{animation-delay:2.3s}body[data-m-duration="2.4"] [data-m],[data-m][data-m][data-m-duration="2.4"]{animation-duration:2.4s}body[data-m-delay="2.4"] [data-m],[data-m][data-m][data-m-delay="2.4"]{animation-delay:2.4s}body[data-m-duration="2.5"] [data-m],[data-m][data-m][data-m-duration="2.5"]{animation-duration:2.5s}body[data-m-delay="2.5"] [data-m],[data-m][data-m][data-m-delay="2.5"]{animation-delay:2.5s}body[data-m-duration="2.6"] [data-m],[data-m][data-m][data-m-duration="2.6"]{animation-duration:2.6s}body[data-m-delay="2.6"] [data-m],[data-m][data-m][data-m-delay="2.6"]{animation-delay:2.6s}body[data-m-duration="2.7"] [data-m],[data-m][data-m][data-m-duration="2.7"]{animation-duration:2.7s}body[data-m-delay="2.7"] [data-m],[data-m][data-m][data-m-delay="2.7"]{animation-delay:2.7s}body[data-m-duration="2.8"] [data-m],[data-m][data-m][data-m-duration="2.8"]{animation-duration:2.8s}body[data-m-delay="2.8"] [data-m],[data-m][data-m][data-m-delay="2.8"]{animation-delay:2.8s}body[data-m-duration="2.9"] [data-m],[data-m][data-m][data-m-duration="2.9"]{animation-duration:2.9s}body[data-m-delay="2.9"] [data-m],[data-m][data-m][data-m-delay="2.9"]{animation-delay:2.9s}body[data-m-duration="3"] [data-m],[data-m][data-m][data-m-duration="3"]{animation-duration:3s}body[data-m-delay="3"] [data-m],[data-m][data-m][data-m-delay="3"]{animation-delay:3s}body[data-m-duration="3.1"] [data-m],[data-m][data-m][data-m-duration="3.1"]{animation-duration:3.1s}body[data-m-delay="3.1"] [data-m],[data-m][data-m][data-m-delay="3.1"]{animation-delay:3.1s}body[data-m-duration="3.2"] [data-m],[data-m][data-m][data-m-duration="3.2"]{animation-duration:3.2s}body[data-m-delay="3.2"] [data-m],[data-m][data-m][data-m-delay="3.2"]{animation-delay:3.2s}body[data-m-duration="3.3"] [data-m],[data-m][data-m][data-m-duration="3.3"]{animation-duration:3.3s}body[data-m-delay="3.3"] [data-m],[data-m][data-m][data-m-delay="3.3"]{animation-delay:3.3s}body[data-m-duration="3.4"] [data-m],[data-m][data-m][data-m-duration="3.4"]{animation-duration:3.4s}body[data-m-delay="3.4"] [data-m],[data-m][data-m][data-m-delay="3.4"]{animation-delay:3.4s}body[data-m-duration="3.5"] [data-m],[data-m][data-m][data-m-duration="3.5"]{animation-duration:3.5s}body[data-m-delay="3.5"] [data-m],[data-m][data-m][data-m-delay="3.5"]{animation-delay:3.5s}body[data-m-duration="3.6"] [data-m],[data-m][data-m][data-m-duration="3.6"]{animation-duration:3.6s}body[data-m-delay="3.6"] [data-m],[data-m][data-m][data-m-delay="3.6"]{animation-delay:3.6s}body[data-m-duration="3.7"] [data-m],[data-m][data-m][data-m-duration="3.7"]{animation-duration:3.7s}body[data-m-delay="3.7"] [data-m],[data-m][data-m][data-m-delay="3.7"]{animation-delay:3.7s}body[data-m-duration="3.8"] [data-m],[data-m][data-m][data-m-duration="3.8"]{animation-duration:3.8s}body[data-m-delay="3.8"] [data-m],[data-m][data-m][data-m-delay="3.8"]{animation-delay:3.8s}body[data-m-duration="3.9"] [data-m],[data-m][data-m][data-m-duration="3.9"]{animation-duration:3.9s}body[data-m-delay="3.9"] [data-m],[data-m][data-m][data-m-delay="3.9"]{animation-delay:3.9s}body[data-m-duration="4"] [data-m],[data-m][data-m][data-m-duration="4"]{animation-duration:4s}body[data-m-delay="4"] [data-m],[data-m][data-m][data-m-delay="4"]{animation-delay:4s}body[data-m-duration="4.1"] [data-m],[data-m][data-m][data-m-duration="4.1"]{animation-duration:4.1s}body[data-m-delay="4.1"] [data-m],[data-m][data-m][data-m-delay="4.1"]{animation-delay:4.1s}body[data-m-duration="4.2"] [data-m],[data-m][data-m][data-m-duration="4.2"]{animation-duration:4.2s}body[data-m-delay="4.2"] [data-m],[data-m][data-m][data-m-delay="4.2"]{animation-delay:4.2s}body[data-m-duration="4.3"] [data-m],[data-m][data-m][data-m-duration="4.3"]{animation-duration:4.3s}body[data-m-delay="4.3"] [data-m],[data-m][data-m][data-m-delay="4.3"]{animation-delay:4.3s}body[data-m-duration="4.4"] [data-m],[data-m][data-m][data-m-duration="4.4"]{animation-duration:4.4s}body[data-m-delay="4.4"] [data-m],[data-m][data-m][data-m-delay="4.4"]{animation-delay:4.4s}body[data-m-duration="4.5"] [data-m],[data-m][data-m][data-m-duration="4.5"]{animation-duration:4.5s}body[data-m-delay="4.5"] [data-m],[data-m][data-m][data-m-delay="4.5"]{animation-delay:4.5s}body[data-m-duration="4.6"] [data-m],[data-m][data-m][data-m-duration="4.6"]{animation-duration:4.6s}body[data-m-delay="4.6"] [data-m],[data-m][data-m][data-m-delay="4.6"]{animation-delay:4.6s}body[data-m-duration="4.7"] [data-m],[data-m][data-m][data-m-duration="4.7"]{animation-duration:4.7s}body[data-m-delay="4.7"] [data-m],[data-m][data-m][data-m-delay="4.7"]{animation-delay:4.7s}body[data-m-duration="4.8"] [data-m],[data-m][data-m][data-m-duration="4.8"]{animation-duration:4.8s}body[data-m-delay="4.8"] [data-m],[data-m][data-m][data-m-delay="4.8"]{animation-delay:4.8s}body[data-m-duration="4.9"] [data-m],[data-m][data-m][data-m-duration="4.9"]{animation-duration:4.9s}body[data-m-delay="4.9"] [data-m],[data-m][data-m][data-m-delay="4.9"]{animation-delay:4.9s}body[data-m-duration="5"] [data-m],[data-m][data-m][data-m-duration="5"]{animation-duration:5s}body[data-m-delay="5"] [data-m],[data-m][data-m][data-m-delay="5"]{animation-delay:5s}body[data-m-duration="5.1"] [data-m],[data-m][data-m][data-m-duration="5.1"]{animation-duration:5.1s}body[data-m-delay="5.1"] [data-m],[data-m][data-m][data-m-delay="5.1"]{animation-delay:5.1s}body[data-m-duration="5.2"] [data-m],[data-m][data-m][data-m-duration="5.2"]{animation-duration:5.2s}body[data-m-delay="5.2"] [data-m],[data-m][data-m][data-m-delay="5.2"]{animation-delay:5.2s}body[data-m-duration="5.3"] [data-m],[data-m][data-m][data-m-duration="5.3"]{animation-duration:5.3s}body[data-m-delay="5.3"] [data-m],[data-m][data-m][data-m-delay="5.3"]{animation-delay:5.3s}body[data-m-duration="5.4"] [data-m],[data-m][data-m][data-m-duration="5.4"]{animation-duration:5.4s}body[data-m-delay="5.4"] [data-m],[data-m][data-m][data-m-delay="5.4"]{animation-delay:5.4s}body[data-m-duration="5.5"] [data-m],[data-m][data-m][data-m-duration="5.5"]{animation-duration:5.5s}body[data-m-delay="5.5"] [data-m],[data-m][data-m][data-m-delay="5.5"]{animation-delay:5.5s}body[data-m-duration="5.6"] [data-m],[data-m][data-m][data-m-duration="5.6"]{animation-duration:5.6s}body[data-m-delay="5.6"] [data-m],[data-m][data-m][data-m-delay="5.6"]{animation-delay:5.6s}body[data-m-duration="5.7"] [data-m],[data-m][data-m][data-m-duration="5.7"]{animation-duration:5.7s}body[data-m-delay="5.7"] [data-m],[data-m][data-m][data-m-delay="5.7"]{animation-delay:5.7s}body[data-m-duration="5.8"] [data-m],[data-m][data-m][data-m-duration="5.8"]{animation-duration:5.8s}body[data-m-delay="5.8"] [data-m],[data-m][data-m][data-m-delay="5.8"]{animation-delay:5.8s}body[data-m-duration="5.9"] [data-m],[data-m][data-m][data-m-duration="5.9"]{animation-duration:5.9s}body[data-m-delay="5.9"] [data-m],[data-m][data-m][data-m-delay="5.9"]{animation-delay:5.9s}body[data-m-duration="6"] [data-m],[data-m][data-m][data-m-duration="6"]{animation-duration:6s}body[data-m-delay="6"] [data-m],[data-m][data-m][data-m-delay="6"]{animation-delay:6s}body[data-m-duration="6.1"] [data-m],[data-m][data-m][data-m-duration="6.1"]{animation-duration:6.1s}body[data-m-delay="6.1"] [data-m],[data-m][data-m][data-m-delay="6.1"]{animation-delay:6.1s}body[data-m-duration="6.2"] [data-m],[data-m][data-m][data-m-duration="6.2"]{animation-duration:6.2s}body[data-m-delay="6.2"] [data-m],[data-m][data-m][data-m-delay="6.2"]{animation-delay:6.2s}body[data-m-duration="6.3"] [data-m],[data-m][data-m][data-m-duration="6.3"]{animation-duration:6.3s}body[data-m-delay="6.3"] [data-m],[data-m][data-m][data-m-delay="6.3"]{animation-delay:6.3s}body[data-m-duration="6.4"] [data-m],[data-m][data-m][data-m-duration="6.4"]{animation-duration:6.4s}body[data-m-delay="6.4"] [data-m],[data-m][data-m][data-m-delay="6.4"]{animation-delay:6.4s}body[data-m-duration="6.5"] [data-m],[data-m][data-m][data-m-duration="6.5"]{animation-duration:6.5s}body[data-m-delay="6.5"] [data-m],[data-m][data-m][data-m-delay="6.5"]{animation-delay:6.5s}body[data-m-duration="6.6"] [data-m],[data-m][data-m][data-m-duration="6.6"]{animation-duration:6.6s}body[data-m-delay="6.6"] [data-m],[data-m][data-m][data-m-delay="6.6"]{animation-delay:6.6s}body[data-m-duration="6.7"] [data-m],[data-m][data-m][data-m-duration="6.7"]{animation-duration:6.7s}body[data-m-delay="6.7"] [data-m],[data-m][data-m][data-m-delay="6.7"]{animation-delay:6.7s}body[data-m-duration="6.8"] [data-m],[data-m][data-m][data-m-duration="6.8"]{animation-duration:6.8s}body[data-m-delay="6.8"] [data-m],[data-m][data-m][data-m-delay="6.8"]{animation-delay:6.8s}body[data-m-duration="6.9"] [data-m],[data-m][data-m][data-m-duration="6.9"]{animation-duration:6.9s}body[data-m-delay="6.9"] [data-m],[data-m][data-m][data-m-delay="6.9"]{animation-delay:6.9s}body[data-m-duration="7"] [data-m],[data-m][data-m][data-m-duration="7"]{animation-duration:7s}body[data-m-delay="7"] [data-m],[data-m][data-m][data-m-delay="7"]{animation-delay:7s}body[data-m-duration="7.1"] [data-m],[data-m][data-m][data-m-duration="7.1"]{animation-duration:7.1s}body[data-m-delay="7.1"] [data-m],[data-m][data-m][data-m-delay="7.1"]{animation-delay:7.1s}body[data-m-duration="7.2"] [data-m],[data-m][data-m][data-m-duration="7.2"]{animation-duration:7.2s}body[data-m-delay="7.2"] [data-m],[data-m][data-m][data-m-delay="7.2"]{animation-delay:7.2s}body[data-m-duration="7.3"] [data-m],[data-m][data-m][data-m-duration="7.3"]{animation-duration:7.3s}body[data-m-delay="7.3"] [data-m],[data-m][data-m][data-m-delay="7.3"]{animation-delay:7.3s}body[data-m-duration="7.4"] [data-m],[data-m][data-m][data-m-duration="7.4"]{animation-duration:7.4s}body[data-m-delay="7.4"] [data-m],[data-m][data-m][data-m-delay="7.4"]{animation-delay:7.4s}body[data-m-duration="7.5"] [data-m],[data-m][data-m][data-m-duration="7.5"]{animation-duration:7.5s}body[data-m-delay="7.5"] [data-m],[data-m][data-m][data-m-delay="7.5"]{animation-delay:7.5s}body[data-m-duration="7.6"] [data-m],[data-m][data-m][data-m-duration="7.6"]{animation-duration:7.6s}body[data-m-delay="7.6"] [data-m],[data-m][data-m][data-m-delay="7.6"]{animation-delay:7.6s}body[data-m-duration="7.7"] [data-m],[data-m][data-m][data-m-duration="7.7"]{animation-duration:7.7s}body[data-m-delay="7.7"] [data-m],[data-m][data-m][data-m-delay="7.7"]{animation-delay:7.7s}body[data-m-duration="7.8"] [data-m],[data-m][data-m][data-m-duration="7.8"]{animation-duration:7.8s}body[data-m-delay="7.8"] [data-m],[data-m][data-m][data-m-delay="7.8"]{animation-delay:7.8s}body[data-m-duration="7.9"] [data-m],[data-m][data-m][data-m-duration="7.9"]{animation-duration:7.9s}body[data-m-delay="7.9"] [data-m],[data-m][data-m][data-m-delay="7.9"]{animation-delay:7.9s}body[data-m-duration="8"] [data-m],[data-m][data-m][data-m-duration="8"]{animation-duration:8s}body[data-m-delay="8"] [data-m],[data-m][data-m][data-m-delay="8"]{animation-delay:8s}body[data-m-duration="8.1"] [data-m],[data-m][data-m][data-m-duration="8.1"]{animation-duration:8.1s}body[data-m-delay="8.1"] [data-m],[data-m][data-m][data-m-delay="8.1"]{animation-delay:8.1s}body[data-m-duration="8.2"] [data-m],[data-m][data-m][data-m-duration="8.2"]{animation-duration:8.2s}body[data-m-delay="8.2"] [data-m],[data-m][data-m][data-m-delay="8.2"]{animation-delay:8.2s}body[data-m-duration="8.3"] [data-m],[data-m][data-m][data-m-duration="8.3"]{animation-duration:8.3s}body[data-m-delay="8.3"] [data-m],[data-m][data-m][data-m-delay="8.3"]{animation-delay:8.3s}body[data-m-duration="8.4"] [data-m],[data-m][data-m][data-m-duration="8.4"]{animation-duration:8.4s}body[data-m-delay="8.4"] [data-m],[data-m][data-m][data-m-delay="8.4"]{animation-delay:8.4s}body[data-m-duration="8.5"] [data-m],[data-m][data-m][data-m-duration="8.5"]{animation-duration:8.5s}body[data-m-delay="8.5"] [data-m],[data-m][data-m][data-m-delay="8.5"]{animation-delay:8.5s}body[data-m-duration="8.6"] [data-m],[data-m][data-m][data-m-duration="8.6"]{animation-duration:8.6s}body[data-m-delay="8.6"] [data-m],[data-m][data-m][data-m-delay="8.6"]{animation-delay:8.6s}body[data-m-duration="8.7"] [data-m],[data-m][data-m][data-m-duration="8.7"]{animation-duration:8.7s}body[data-m-delay="8.7"] [data-m],[data-m][data-m][data-m-delay="8.7"]{animation-delay:8.7s}body[data-m-duration="8.8"] [data-m],[data-m][data-m][data-m-duration="8.8"]{animation-duration:8.8s}body[data-m-delay="8.8"] [data-m],[data-m][data-m][data-m-delay="8.8"]{animation-delay:8.8s}body[data-m-duration="8.9"] [data-m],[data-m][data-m][data-m-duration="8.9"]{animation-duration:8.9s}body[data-m-delay="8.9"] [data-m],[data-m][data-m][data-m-delay="8.9"]{animation-delay:8.9s}body[data-m-duration="9"] [data-m],[data-m][data-m][data-m-duration="9"]{animation-duration:9s}body[data-m-delay="9"] [data-m],[data-m][data-m][data-m-delay="9"]{animation-delay:9s}body[data-m-duration="9.1"] [data-m],[data-m][data-m][data-m-duration="9.1"]{animation-duration:9.1s}body[data-m-delay="9.1"] [data-m],[data-m][data-m][data-m-delay="9.1"]{animation-delay:9.1s}body[data-m-duration="9.2"] [data-m],[data-m][data-m][data-m-duration="9.2"]{animation-duration:9.2s}body[data-m-delay="9.2"] [data-m],[data-m][data-m][data-m-delay="9.2"]{animation-delay:9.2s}body[data-m-duration="9.3"] [data-m],[data-m][data-m][data-m-duration="9.3"]{animation-duration:9.3s}body[data-m-delay="9.3"] [data-m],[data-m][data-m][data-m-delay="9.3"]{animation-delay:9.3s}body[data-m-duration="9.4"] [data-m],[data-m][data-m][data-m-duration="9.4"]{animation-duration:9.4s}body[data-m-delay="9.4"] [data-m],[data-m][data-m][data-m-delay="9.4"]{animation-delay:9.4s}body[data-m-duration="9.5"] [data-m],[data-m][data-m][data-m-duration="9.5"]{animation-duration:9.5s}body[data-m-delay="9.5"] [data-m],[data-m][data-m][data-m-delay="9.5"]{animation-delay:9.5s}body[data-m-duration="9.6"] [data-m],[data-m][data-m][data-m-duration="9.6"]{animation-duration:9.6s}body[data-m-delay="9.6"] [data-m],[data-m][data-m][data-m-delay="9.6"]{animation-delay:9.6s}body[data-m-duration="9.7"] [data-m],[data-m][data-m][data-m-duration="9.7"]{animation-duration:9.7s}body[data-m-delay="9.7"] [data-m],[data-m][data-m][data-m-delay="9.7"]{animation-delay:9.7s}body[data-m-duration="9.8"] [data-m],[data-m][data-m][data-m-duration="9.8"]{animation-duration:9.8s}body[data-m-delay="9.8"] [data-m],[data-m][data-m][data-m-delay="9.8"]{animation-delay:9.8s}body[data-m-duration="9.9"] [data-m],[data-m][data-m][data-m-duration="9.9"]{animation-duration:9.9s}body[data-m-delay="9.9"] [data-m],[data-m][data-m][data-m-delay="9.9"]{animation-delay:9.9s}body[data-m-duration="10"] [data-m],[data-m][data-m][data-m-duration="10"]{animation-duration:10s}body[data-m-delay="10"] [data-m],[data-m][data-m][data-m-delay="10"]{animation-delay:10s}body[data-m-duration="0.75"] [data-m],[data-m][data-m][data-m-duration="0.35"]{animation-duration:.35s}body[data-m-delay="0.35"] [data-m],[data-m][data-m][data-m-delay="0.35"]{animation-delay:.35s}body[data-m-duration="1.25"] [data-m],[data-m][data-m][data-m-duration="0.45"]{animation-duration:.45s}body[data-m-delay="0.45"] [data-m],[data-m][data-m][data-m-delay="0.45"]{animation-delay:.45s}body[data-m-duration="1.75"] [data-m],[data-m][data-m][data-m-duration="0.55"]{animation-duration:.55s}body[data-m-delay="0.55"] [data-m],[data-m][data-m][data-m-delay="0.55"]{animation-delay:.55s}body[data-m-duration="2.25"] [data-m],[data-m][data-m][data-m-duration="0.65"]{animation-duration:.65s}body[data-m-delay="0.65"] [data-m],[data-m][data-m][data-m-delay="0.65"]{animation-delay:.65s}body[data-m-duration="2.75"] [data-m],[data-m][data-m][data-m-duration="0.75"]{animation-duration:.75s}body[data-m-delay="0.75"] [data-m],[data-m][data-m][data-m-delay="0.75"]{animation-delay:.75s}body[data-m-duration="3.25"] [data-m],[data-m][data-m][data-m-duration="0.85"]{animation-duration:.85s}body[data-m-delay="0.85"] [data-m],[data-m][data-m][data-m-delay="0.85"]{animation-delay:.85s}body[data-m-duration="3.75"] [data-m],[data-m][data-m][data-m-duration="0.95"]{animation-duration:.95s}body[data-m-delay="0.95"] [data-m],[data-m][data-m][data-m-delay="0.95"]{animation-delay:.95s}body[data-m-duration="4.25"] [data-m],[data-m][data-m][data-m-duration="1.05"]{animation-duration:1.05s}body[data-m-delay="1.05"] [data-m],[data-m][data-m][data-m-delay="1.05"]{animation-delay:1.05s}body[data-m-duration="4.75"] [data-m],[data-m][data-m][data-m-duration="1.15"]{animation-duration:1.15s}body[data-m-delay="1.15"] [data-m],[data-m][data-m][data-m-delay="1.15"]{animation-delay:1.15s}body[data-m-duration="5.25"] [data-m],[data-m][data-m][data-m-duration="1.25"]{animation-duration:1.25s}body[data-m-delay="1.25"] [data-m],[data-m][data-m][data-m-delay="1.25"]{animation-delay:1.25s}body[data-m-duration="5.75"] [data-m],[data-m][data-m][data-m-duration="1.35"]{animation-duration:1.35s}body[data-m-delay="1.35"] [data-m],[data-m][data-m][data-m-delay="1.35"]{animation-delay:1.35s}body[data-m-duration="6.25"] [data-m],[data-m][data-m][data-m-duration="1.45"]{animation-duration:1.45s}body[data-m-delay="1.45"] [data-m],[data-m][data-m][data-m-delay="1.45"]{animation-delay:1.45s}body[data-m-duration="6.75"] [data-m],[data-m][data-m][data-m-duration="1.55"]{animation-duration:1.55s}body[data-m-delay="1.55"] [data-m],[data-m][data-m][data-m-delay="1.55"]{animation-delay:1.55s}body[data-m-duration="7.25"] [data-m],[data-m][data-m][data-m-duration="1.65"]{animation-duration:1.65s}body[data-m-delay="1.65"] [data-m],[data-m][data-m][data-m-delay="1.65"]{animation-delay:1.65s}body[data-m-duration="7.75"] [data-m],[data-m][data-m][data-m-duration="1.75"]{animation-duration:1.75s}body[data-m-delay="1.75"] [data-m],[data-m][data-m][data-m-delay="1.75"]{animation-delay:1.75s}body[data-m-duration="8.25"] [data-m],[data-m][data-m][data-m-duration="1.85"]{animation-duration:1.85s}body[data-m-delay="1.85"] [data-m],[data-m][data-m][data-m-delay="1.85"]{animation-delay:1.85s}body[data-m-duration="8.75"] [data-m],[data-m][data-m][data-m-duration="1.95"]{animation-duration:1.95s}body[data-m-delay="1.95"] [data-m],[data-m][data-m][data-m-delay="1.95"]{animation-delay:1.95s}body[data-m-duration="9.25"] [data-m],[data-m][data-m][data-m-duration="2.05"]{animation-duration:2.05s}body[data-m-delay="2.05"] [data-m],[data-m][data-m][data-m-delay="2.05"]{animation-delay:2.05s}body[data-m-duration="9.75"] [data-m],[data-m][data-m][data-m-duration="2.15"]{animation-duration:2.15s}body[data-m-delay="2.15"] [data-m],[data-m][data-m][data-m-delay="2.15"]{animation-delay:2.15s}body[data-m-duration="10.25"] [data-m],[data-m][data-m][data-m-duration="2.25"]{animation-duration:2.25s}body[data-m-delay="2.25"] [data-m],[data-m][data-m][data-m-delay="2.25"]{animation-delay:2.25s}body[data-m-duration="10.75"] [data-m],[data-m][data-m][data-m-duration="2.35"]{animation-duration:2.35s}body[data-m-delay="2.35"] [data-m],[data-m][data-m][data-m-delay="2.35"]{animation-delay:2.35s}body[data-m-duration="11.25"] [data-m],[data-m][data-m][data-m-duration="2.45"]{animation-duration:2.45s}body[data-m-delay="2.45"] [data-m],[data-m][data-m][data-m-delay="2.45"]{animation-delay:2.45s}body[data-m-duration="11.75"] [data-m],[data-m][data-m][data-m-duration="2.55"]{animation-duration:2.55s}body[data-m-delay="2.55"] [data-m],[data-m][data-m][data-m-delay="2.55"]{animation-delay:2.55s}body[data-m-duration="12.25"] [data-m],[data-m][data-m][data-m-duration="2.65"]{animation-duration:2.65s}body[data-m-delay="2.65"] [data-m],[data-m][data-m][data-m-delay="2.65"]{animation-delay:2.65s}body[data-m-duration="12.75"] [data-m],[data-m][data-m][data-m-duration="2.75"]{animation-duration:2.75s}body[data-m-delay="2.75"] [data-m],[data-m][data-m][data-m-delay="2.75"]{animation-delay:2.75s}body[data-m-duration="13.25"] [data-m],[data-m][data-m][data-m-duration="2.85"]{animation-duration:2.85s}body[data-m-delay="2.85"] [data-m],[data-m][data-m][data-m-delay="2.85"]{animation-delay:2.85s}body[data-m-duration="13.75"] [data-m],[data-m][data-m][data-m-duration="2.95"]{animation-duration:2.95s}body[data-m-delay="2.95"] [data-m],[data-m][data-m][data-m-delay="2.95"]{animation-delay:2.95s}body[data-m-duration="14.25"] [data-m],[data-m][data-m][data-m-duration="3.05"]{animation-duration:3.05s}body[data-m-delay="3.05"] [data-m],[data-m][data-m][data-m-delay="3.05"]{animation-delay:3.05s}body[data-m-duration="14.75"] [data-m],[data-m][data-m][data-m-duration="3.15"]{animation-duration:3.15s}body[data-m-delay="3.15"] [data-m],[data-m][data-m][data-m-delay="3.15"]{animation-delay:3.15s}body[data-m-duration="15.25"] [data-m],[data-m][data-m][data-m-duration="3.25"]{animation-duration:3.25s}body[data-m-delay="3.25"] [data-m],[data-m][data-m][data-m-delay="3.25"]{animation-delay:3.25s}body[data-m-duration="15.75"] [data-m],[data-m][data-m][data-m-duration="3.35"]{animation-duration:3.35s}body[data-m-delay="3.35"] [data-m],[data-m][data-m][data-m-delay="3.35"]{animation-delay:3.35s}body[data-m-duration="16.25"] [data-m],[data-m][data-m][data-m-duration="3.45"]{animation-duration:3.45s}body[data-m-delay="3.45"] [data-m],[data-m][data-m][data-m-delay="3.45"]{animation-delay:3.45s}body[data-m-duration="16.75"] [data-m],[data-m][data-m][data-m-duration="3.55"]{animation-duration:3.55s}body[data-m-delay="3.55"] [data-m],[data-m][data-m][data-m-delay="3.55"]{animation-delay:3.55s}body[data-m-duration="17.25"] [data-m],[data-m][data-m][data-m-duration="3.65"]{animation-duration:3.65s}body[data-m-delay="3.65"] [data-m],[data-m][data-m][data-m-delay="3.65"]{animation-delay:3.65s}body[data-m-duration="17.75"] [data-m],[data-m][data-m][data-m-duration="3.75"]{animation-duration:3.75s}body[data-m-delay="3.75"] [data-m],[data-m][data-m][data-m-delay="3.75"]{animation-delay:3.75s}body[data-m-duration="18.25"] [data-m],[data-m][data-m][data-m-duration="3.85"]{animation-duration:3.85s}body[data-m-delay="3.85"] [data-m],[data-m][data-m][data-m-delay="3.85"]{animation-delay:3.85s}body[data-m-duration="18.75"] [data-m],[data-m][data-m][data-m-duration="3.95"]{animation-duration:3.95s}body[data-m-delay="3.95"] [data-m],[data-m][data-m][data-m-delay="3.95"]{animation-delay:3.95s}body[data-m-duration="19.25"] [data-m],[data-m][data-m][data-m-duration="4.05"]{animation-duration:4.05s}body[data-m-delay="4.05"] [data-m],[data-m][data-m][data-m-delay="4.05"]{animation-delay:4.05s}body[data-m-duration="19.75"] [data-m],[data-m][data-m][data-m-duration="4.15"]{animation-duration:4.15s}body[data-m-delay="4.15"] [data-m],[data-m][data-m][data-m-delay="4.15"]{animation-delay:4.15s}body[data-m-duration="20.25"] [data-m],[data-m][data-m][data-m-duration="4.25"]{animation-duration:4.25s}body[data-m-delay="4.25"] [data-m],[data-m][data-m][data-m-delay="4.25"]{animation-delay:4.25s}body[data-m-duration="20.75"] [data-m],[data-m][data-m][data-m-duration="4.35"]{animation-duration:4.35s}body[data-m-delay="4.35"] [data-m],[data-m][data-m][data-m-delay="4.35"]{animation-delay:4.35s}body[data-m-duration="21.25"] [data-m],[data-m][data-m][data-m-duration="4.45"]{animation-duration:4.45s}body[data-m-delay="4.45"] [data-m],[data-m][data-m][data-m-delay="4.45"]{animation-delay:4.45s}body[data-m-duration="21.75"] [data-m],[data-m][data-m][data-m-duration="4.55"]{animation-duration:4.55s}body[data-m-delay="4.55"] [data-m],[data-m][data-m][data-m-delay="4.55"]{animation-delay:4.55s}body[data-m-duration="22.25"] [data-m],[data-m][data-m][data-m-duration="4.65"]{animation-duration:4.65s}body[data-m-delay="4.65"] [data-m],[data-m][data-m][data-m-delay="4.65"]{animation-delay:4.65s}body[data-m-duration="22.75"] [data-m],[data-m][data-m][data-m-duration="4.75"]{animation-duration:4.75s}body[data-m-delay="4.75"] [data-m],[data-m][data-m][data-m-delay="4.75"]{animation-delay:4.75s}body[data-m-duration="23.25"] [data-m],[data-m][data-m][data-m-duration="4.85"]{animation-duration:4.85s}body[data-m-delay="4.85"] [data-m],[data-m][data-m][data-m-delay="4.85"]{animation-delay:4.85s}body[data-m-duration="23.75"] [data-m],[data-m][data-m][data-m-duration="4.95"]{animation-duration:4.95s}body[data-m-delay="4.95"] [data-m],[data-m][data-m][data-m-delay="4.95"]{animation-delay:4.95s}body[data-m-duration="24.25"] [data-m],[data-m][data-m][data-m-duration="5.05"]{animation-duration:5.05s}body[data-m-delay="5.05"] [data-m],[data-m][data-m][data-m-delay="5.05"]{animation-delay:5.05s}body[data-m-duration="24.75"] [data-m],[data-m][data-m][data-m-duration="5.15"]{animation-duration:5.15s}body[data-m-delay="5.15"] [data-m],[data-m][data-m][data-m-delay="5.15"]{animation-delay:5.15s}body[data-m-duration="25.25"] [data-m],[data-m][data-m][data-m-duration="5.25"]{animation-duration:5.25s}body[data-m-delay="5.25"] [data-m],[data-m][data-m][data-m-delay="5.25"]{animation-delay:5.25s}body[data-m-duration="25.75"] [data-m],[data-m][data-m][data-m-duration="5.35"]{animation-duration:5.35s}body[data-m-delay="5.35"] [data-m],[data-m][data-m][data-m-delay="5.35"]{animation-delay:5.35s}body[data-m-duration="26.25"] [data-m],[data-m][data-m][data-m-duration="5.45"]{animation-duration:5.45s}body[data-m-delay="5.45"] [data-m],[data-m][data-m][data-m-delay="5.45"]{animation-delay:5.45s}body[data-m-duration="26.75"] [data-m],[data-m][data-m][data-m-duration="5.55"]{animation-duration:5.55s}body[data-m-delay="5.55"] [data-m],[data-m][data-m][data-m-delay="5.55"]{animation-delay:5.55s}body[data-m-duration="27.25"] [data-m],[data-m][data-m][data-m-duration="5.65"]{animation-duration:5.65s}body[data-m-delay="5.65"] [data-m],[data-m][data-m][data-m-delay="5.65"]{animation-delay:5.65s}body[data-m-duration="27.75"] [data-m],[data-m][data-m][data-m-duration="5.75"]{animation-duration:5.75s}body[data-m-delay="5.75"] [data-m],[data-m][data-m][data-m-delay="5.75"]{animation-delay:5.75s}body[data-m-duration="28.25"] [data-m],[data-m][data-m][data-m-duration="5.85"]{animation-duration:5.85s}body[data-m-delay="5.85"] [data-m],[data-m][data-m][data-m-delay="5.85"]{animation-delay:5.85s}body[data-m-duration="28.75"] [data-m],[data-m][data-m][data-m-duration="5.95"]{animation-duration:5.95s}body[data-m-delay="5.95"] [data-m],[data-m][data-m][data-m-delay="5.95"]{animation-delay:5.95s}body[data-m-duration="29.25"] [data-m],[data-m][data-m][data-m-duration="6.05"]{animation-duration:6.05s}body[data-m-delay="6.05"] [data-m],[data-m][data-m][data-m-delay="6.05"]{animation-delay:6.05s}body[data-m-duration="29.75"] [data-m],[data-m][data-m][data-m-duration="6.15"]{animation-duration:6.15s}body[data-m-delay="6.15"] [data-m],[data-m][data-m][data-m-delay="6.15"]{animation-delay:6.15s}body[data-m-duration="30.25"] [data-m],[data-m][data-m][data-m-duration="6.25"]{animation-duration:6.25s}body[data-m-delay="6.25"] [data-m],[data-m][data-m][data-m-delay="6.25"]{animation-delay:6.25s}body[data-m-duration="30.75"] [data-m],[data-m][data-m][data-m-duration="6.35"]{animation-duration:6.35s}body[data-m-delay="6.35"] [data-m],[data-m][data-m][data-m-delay="6.35"]{animation-delay:6.35s}body[data-m-duration="31.25"] [data-m],[data-m][data-m][data-m-duration="6.45"]{animation-duration:6.45s}body[data-m-delay="6.45"] [data-m],[data-m][data-m][data-m-delay="6.45"]{animation-delay:6.45s}body[data-m-duration="31.75"] [data-m],[data-m][data-m][data-m-duration="6.55"]{animation-duration:6.55s}body[data-m-delay="6.55"] [data-m],[data-m][data-m][data-m-delay="6.55"]{animation-delay:6.55s}body[data-m-duration="32.25"] [data-m],[data-m][data-m][data-m-duration="6.65"]{animation-duration:6.65s}body[data-m-delay="6.65"] [data-m],[data-m][data-m][data-m-delay="6.65"]{animation-delay:6.65s}body[data-m-duration="32.75"] [data-m],[data-m][data-m][data-m-duration="6.75"]{animation-duration:6.75s}body[data-m-delay="6.75"] [data-m],[data-m][data-m][data-m-delay="6.75"]{animation-delay:6.75s}body[data-m-duration="33.25"] [data-m],[data-m][data-m][data-m-duration="6.85"]{animation-duration:6.85s}body[data-m-delay="6.85"] [data-m],[data-m][data-m][data-m-delay="6.85"]{animation-delay:6.85s}body[data-m-duration="33.75"] [data-m],[data-m][data-m][data-m-duration="6.95"]{animation-duration:6.95s}body[data-m-delay="6.95"] [data-m],[data-m][data-m][data-m-delay="6.95"]{animation-delay:6.95s}body[data-m-duration="34.25"] [data-m],[data-m][data-m][data-m-duration="7.05"]{animation-duration:7.05s}body[data-m-delay="7.05"] [data-m],[data-m][data-m][data-m-delay="7.05"]{animation-delay:7.05s}body[data-m-duration="34.75"] [data-m],[data-m][data-m][data-m-duration="7.15"]{animation-duration:7.15s}body[data-m-delay="7.15"] [data-m],[data-m][data-m][data-m-delay="7.15"]{animation-delay:7.15s}body[data-m-duration="35.25"] [data-m],[data-m][data-m][data-m-duration="7.25"]{animation-duration:7.25s}body[data-m-delay="7.25"] [data-m],[data-m][data-m][data-m-delay="7.25"]{animation-delay:7.25s}body[data-m-duration="35.75"] [data-m],[data-m][data-m][data-m-duration="7.35"]{animation-duration:7.35s}body[data-m-delay="7.35"] [data-m],[data-m][data-m][data-m-delay="7.35"]{animation-delay:7.35s}body[data-m-duration="36.25"] [data-m],[data-m][data-m][data-m-duration="7.45"]{animation-duration:7.45s}body[data-m-delay="7.45"] [data-m],[data-m][data-m][data-m-delay="7.45"]{animation-delay:7.45s}body[data-m-duration="36.75"] [data-m],[data-m][data-m][data-m-duration="7.55"]{animation-duration:7.55s}body[data-m-delay="7.55"] [data-m],[data-m][data-m][data-m-delay="7.55"]{animation-delay:7.55s}body[data-m-duration="37.25"] [data-m],[data-m][data-m][data-m-duration="7.65"]{animation-duration:7.65s}body[data-m-delay="7.65"] [data-m],[data-m][data-m][data-m-delay="7.65"]{animation-delay:7.65s}body[data-m-duration="37.75"] [data-m],[data-m][data-m][data-m-duration="7.75"]{animation-duration:7.75s}body[data-m-delay="7.75"] [data-m],[data-m][data-m][data-m-delay="7.75"]{animation-delay:7.75s}body[data-m-duration="38.25"] [data-m],[data-m][data-m][data-m-duration="7.85"]{animation-duration:7.85s}body[data-m-delay="7.85"] [data-m],[data-m][data-m][data-m-delay="7.85"]{animation-delay:7.85s}body[data-m-duration="38.75"] [data-m],[data-m][data-m][data-m-duration="7.95"]{animation-duration:7.95s}body[data-m-delay="7.95"] [data-m],[data-m][data-m][data-m-delay="7.95"]{animation-delay:7.95s}body[data-m-duration="39.25"] [data-m],[data-m][data-m][data-m-duration="8.05"]{animation-duration:8.05s}body[data-m-delay="8.05"] [data-m],[data-m][data-m][data-m-delay="8.05"]{animation-delay:8.05s}body[data-m-duration="39.75"] [data-m],[data-m][data-m][data-m-duration="8.15"]{animation-duration:8.15s}body[data-m-delay="8.15"] [data-m],[data-m][data-m][data-m-delay="8.15"]{animation-delay:8.15s}body[data-m-duration="40.25"] [data-m],[data-m][data-m][data-m-duration="8.25"]{animation-duration:8.25s}body[data-m-delay="8.25"] [data-m],[data-m][data-m][data-m-delay="8.25"]{animation-delay:8.25s}body[data-m-duration="40.75"] [data-m],[data-m][data-m][data-m-duration="8.35"]{animation-duration:8.35s}body[data-m-delay="8.35"] [data-m],[data-m][data-m][data-m-delay="8.35"]{animation-delay:8.35s}body[data-m-duration="41.25"] [data-m],[data-m][data-m][data-m-duration="8.45"]{animation-duration:8.45s}body[data-m-delay="8.45"] [data-m],[data-m][data-m][data-m-delay="8.45"]{animation-delay:8.45s}body[data-m-duration="41.75"] [data-m],[data-m][data-m][data-m-duration="8.55"]{animation-duration:8.55s}body[data-m-delay="8.55"] [data-m],[data-m][data-m][data-m-delay="8.55"]{animation-delay:8.55s}body[data-m-duration="42.25"] [data-m],[data-m][data-m][data-m-duration="8.65"]{animation-duration:8.65s}body[data-m-delay="8.65"] [data-m],[data-m][data-m][data-m-delay="8.65"]{animation-delay:8.65s}body[data-m-duration="42.75"] [data-m],[data-m][data-m][data-m-duration="8.75"]{animation-duration:8.75s}body[data-m-delay="8.75"] [data-m],[data-m][data-m][data-m-delay="8.75"]{animation-delay:8.75s}body[data-m-duration="43.25"] [data-m],[data-m][data-m][data-m-duration="8.85"]{animation-duration:8.85s}body[data-m-delay="8.85"] [data-m],[data-m][data-m][data-m-delay="8.85"]{animation-delay:8.85s}body[data-m-duration="43.75"] [data-m],[data-m][data-m][data-m-duration="8.95"]{animation-duration:8.95s}body[data-m-delay="8.95"] [data-m],[data-m][data-m][data-m-delay="8.95"]{animation-delay:8.95s}body[data-m-duration="44.25"] [data-m],[data-m][data-m][data-m-duration="9.05"]{animation-duration:9.05s}body[data-m-delay="9.05"] [data-m],[data-m][data-m][data-m-delay="9.05"]{animation-delay:9.05s}body[data-m-duration="44.75"] [data-m],[data-m][data-m][data-m-duration="9.15"]{animation-duration:9.15s}body[data-m-delay="9.15"] [data-m],[data-m][data-m][data-m-delay="9.15"]{animation-delay:9.15s}body[data-m-duration="45.25"] [data-m],[data-m][data-m][data-m-duration="9.25"]{animation-duration:9.25s}body[data-m-delay="9.25"] [data-m],[data-m][data-m][data-m-delay="9.25"]{animation-delay:9.25s}body[data-m-duration="45.75"] [data-m],[data-m][data-m][data-m-duration="9.35"]{animation-duration:9.35s}body[data-m-delay="9.35"] [data-m],[data-m][data-m][data-m-delay="9.35"]{animation-delay:9.35s}body[data-m-duration="46.25"] [data-m],[data-m][data-m][data-m-duration="9.45"]{animation-duration:9.45s}body[data-m-delay="9.45"] [data-m],[data-m][data-m][data-m-delay="9.45"]{animation-delay:9.45s}body[data-m-duration="46.75"] [data-m],[data-m][data-m][data-m-duration="9.55"]{animation-duration:9.55s}body[data-m-delay="9.55"] [data-m],[data-m][data-m][data-m-delay="9.55"]{animation-delay:9.55s}body[data-m-duration="47.25"] [data-m],[data-m][data-m][data-m-duration="9.65"]{animation-duration:9.65s}body[data-m-delay="9.65"] [data-m],[data-m][data-m][data-m-delay="9.65"]{animation-delay:9.65s}body[data-m-duration="47.75"] [data-m],[data-m][data-m][data-m-duration="9.75"]{animation-duration:9.75s}body[data-m-delay="9.75"] [data-m],[data-m][data-m][data-m-delay="9.75"]{animation-delay:9.75s}body[data-m-duration="48.25"] [data-m],[data-m][data-m][data-m-duration="9.85"]{animation-duration:9.85s}body[data-m-delay="9.85"] [data-m],[data-m][data-m][data-m-delay="9.85"]{animation-delay:9.85s}body[data-m-duration="48.75"] [data-m],[data-m][data-m][data-m-duration="9.95"]{animation-duration:9.95s}body[data-m-delay="9.95"] [data-m],[data-m][data-m][data-m-delay="9.95"]{animation-delay:9.95s}body[data-m-duration="49.25"] [data-m],[data-m][data-m][data-m-duration="10.05"]{animation-duration:10.05s}body[data-m-delay="10.05"] [data-m],[data-m][data-m][data-m-delay="10.05"]{animation-delay:10.05s}body[data-m-duration="49.75"] [data-m],[data-m][data-m][data-m-duration="10.15"]{animation-duration:10.15s}body[data-m-delay="10.15"] [data-m],[data-m][data-m][data-m-delay="10.15"]{animation-delay:10.15s}body[data-m-duration="50.25"] [data-m],[data-m][data-m][data-m-duration="10.25"]{animation-duration:10.25s}body[data-m-delay="10.25"] [data-m],[data-m][data-m][data-m-delay="10.25"]{animation-delay:10.25s}#nprogress{pointer-events:none}#nprogress .bar{background:#29d;position:fixed;z-index:1031;top:0;left:0;width:100%;height:2px}#nprogress .peg{display:block;position:absolute;right:0;width:100px;height:100%;box-shadow:0 0 10px #29d,0 0 5px #29d;opacity:1;-webkit-transform:rotate(3deg) translate(0px,-4px);-ms-transform:rotate(3deg) translate(0px,-4px);transform:rotate(3deg) translateY(-4px)}#nprogress .spinner{display:block;position:fixed;z-index:1031;top:15px;right:15px}#nprogress .spinner-icon{width:18px;height:18px;box-sizing:border-box;border:solid 2px transparent;border-top-color:#29d;border-left-color:#29d;border-radius:50%;-webkit-animation:nprogress-spinner .4s linear infinite;animation:nprogress-spinner .4s linear infinite}.nprogress-custom-parent{overflow:hidden;position:relative}.nprogress-custom-parent #nprogress .spinner,.nprogress-custom-parent #nprogress .bar{position:absolute}@-webkit-keyframes nprogress-spinner{0%{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(360deg)}}@keyframes nprogress-spinner{0%{transform:rotate(0)}to{transform:rotate(360deg)}}
dist/assets/CPidMX-2.css ADDED
@@ -0,0 +1 @@
 
 
1
+ .groy6mw{font-family:SFProText,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif}.i8w6wxk p,input{font-family:Geist,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif}.mlh03ao{margin:.75rem;width:15rem;height:13.5rem;border-radius:25px;font-size:16px;padding:1.25rem;display:flex;flex-direction:column}.pabvvub:hover{transform:scale(1.02)}
dist/assets/LUKF6wGO.css ADDED
@@ -0,0 +1 @@
 
 
1
+ .dv40q3d{font-family:Geist,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif;font-weight:550;font-size:21px}.p0pdx5n{position:relative;display:inline-flex;align-items:center;height:100%}
dist/baremod/BareTypes.d.ts ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ export type BareMethod = "GET" | "POST" | "DELETE" | "OPTIONS" | "PUT" | "PATCH" | "UPDATE" | string;
2
+ export type BareCache = "default" | "no-store" | "reload" | "no-cache" | "force-cache" | "only-if-cached" | string;
3
+ export interface BareWebSocketMeta {
4
+ protocol: string;
5
+ setCookies: string[];
6
+ }
7
+ export type BareHTTPProtocol = "blob:" | "http:" | "https:" | string;
8
+ export type BareWSProtocol = "ws:" | "wss:" | string;
9
+ export declare const maxRedirects = 20;
10
+ export type BareHeaders = Record<string, string | string[]>;
11
+ /**
12
+ * A Response with additional properties.
13
+ */
14
+ export interface BareResponse extends Response {
15
+ rawResponse: Response;
16
+ rawHeaders: BareHeaders;
17
+ }
18
+ /**
19
+ * A BareResponse with additional properties.
20
+ */
21
+ export interface BareResponseFetch extends BareResponse {
22
+ finalURL: string;
23
+ }
24
+ export interface BareMaintainer {
25
+ email?: string;
26
+ website?: string;
27
+ }
28
+ export interface BareProject {
29
+ name?: string;
30
+ description?: string;
31
+ email?: string;
32
+ website?: string;
33
+ repository?: string;
34
+ version?: string;
35
+ }
36
+ export type BareLanguage = "NodeJS" | "ServiceWorker" | "Deno" | "Java" | "PHP" | "Rust" | "C" | "C++" | "C#" | "Ruby" | "Go" | "Crystal" | "Shell" | string;
37
+ export interface BareManifest {
38
+ maintainer?: BareMaintainer;
39
+ project?: BareProject;
40
+ versions: string[];
41
+ language: BareLanguage;
42
+ memoryUsage?: number;
43
+ }
dist/baremod/Client.d.ts ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import type { BareHeaders, BareWebSocketMeta } from "./BareTypes.js";
2
+ export declare const statusEmpty: number[];
3
+ export declare const statusRedirect: number[];
4
+ export interface BareErrorBody {
5
+ code: string;
6
+ id: string;
7
+ message?: string;
8
+ stack?: string;
9
+ }
10
+ export declare class BareError extends Error {
11
+ status: number;
12
+ body: BareErrorBody;
13
+ constructor(status: number, body: BareErrorBody);
14
+ }
15
+ export type MetaCallback = (meta: BareWebSocketMeta) => void;
16
+ export type ReadyStateCallback = (readyState: number) => void;
17
+ export type WebSocketImpl = {
18
+ new (...args: ConstructorParameters<typeof WebSocket>): WebSocket;
19
+ };
20
+ export type GetRequestHeadersCallback = () => Promise<BareHeaders>;
21
+ export declare abstract class Client {
22
+ protected base: URL;
23
+ /**
24
+ *
25
+ * @param version Version provided by extension
26
+ * @param server Bare Server URL provided by BareClient
27
+ */
28
+ constructor(version: number, server: URL);
29
+ }
dist/baremod/V3.d.ts ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import type { BareHeaders, BareMethod } from "./BareTypes.js";
2
+ import { Client } from "./Client.js";
3
+ import type { BareTransport, TransferrableResponse } from "@mercuryworkshop/bare-mux";
4
+ export default class ClientV3 extends Client implements BareTransport {
5
+ ws: URL;
6
+ http: URL;
7
+ meta(): {};
8
+ constructor(server: URL);
9
+ ready: boolean;
10
+ init(): Promise<void>;
11
+ connect(url: URL, protocols: string[], requestHeaders: BareHeaders, onopen: (protocol: string) => void, onmessage: (data: Blob | ArrayBuffer | string) => void, onclose: (code: number, reason: string) => void, onerror: (error: string) => void): [(data: Blob | ArrayBuffer | string) => void, (code: number, reason: string) => void];
12
+ request(remote: URL, method: BareMethod, body: BodyInit | null, headers: BareHeaders, signal: AbortSignal | undefined): Promise<TransferrableResponse>;
13
+ private readBareResponse;
14
+ createBareHeaders(remote: URL, bareHeaders: BareHeaders, forwardHeaders?: string[], passHeaders?: string[], passStatus?: number[]): Headers;
15
+ }
dist/baremod/index.d.ts ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ export { default as default } from "./V3";
2
+ export { default as BareClient } from "./V3";
dist/baremod/index.js ADDED
@@ -0,0 +1,541 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 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3
+ typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.BareMod = {}));
5
+ })(this, (function (exports) { 'use strict';
6
+
7
+ // The user likely has overwritten all networking functions after importing bare-client
8
+ // It is our responsibility to make sure components of Bare-Client are using native networking functions
9
+ // These exports are provided to plugins by @rollup/plugin-inject
10
+ const fetch = globalThis.fetch;
11
+ const WebSocket = globalThis.WebSocket;
12
+ const WebSocketFields = {
13
+ prototype: {
14
+ send: WebSocket.prototype.send,
15
+ },
16
+ CLOSED: WebSocket.CLOSED,
17
+ CLOSING: WebSocket.CLOSING,
18
+ CONNECTING: WebSocket.CONNECTING,
19
+ OPEN: WebSocket.OPEN,
20
+ };
21
+
22
+ class BareError extends Error {
23
+ status;
24
+ body;
25
+ constructor(status, body) {
26
+ super(body.message || body.code);
27
+ this.status = status;
28
+ this.body = body;
29
+ }
30
+ }
31
+ class Client {
32
+ base;
33
+ /**
34
+ *
35
+ * @param version Version provided by extension
36
+ * @param server Bare Server URL provided by BareClient
37
+ */
38
+ constructor(version, server) {
39
+ this.base = new URL(`./v${version}/`, server);
40
+ }
41
+ }
42
+
43
+ /*
44
+ * JavaScript MD5
45
+ * Adopted from https://github.com/blueimp/JavaScript-MD5
46
+ *
47
+ * Copyright 2011, Sebastian Tschan
48
+ * https://blueimp.net
49
+ *
50
+ * Licensed under the MIT license:
51
+ * https://opensource.org/licenses/MIT
52
+ *
53
+ * Based on
54
+ * A JavaScript implementation of the RSA Data Security, Inc. MD5 Message
55
+ * Digest Algorithm, as defined in RFC 1321.
56
+ * Version 2.2 Copyright (C) Paul Johnston 1999 - 2009
57
+ * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet
58
+ * Distributed under the BSD License
59
+ * See http://pajhome.org.uk/crypt/md5 for more info.
60
+ */
61
+ /**
62
+ * Add integers, wrapping at 2^32.
63
+ * This uses 16-bit operations internally to work around bugs in interpreters.
64
+ *
65
+ * @param x First integer
66
+ * @param y Second integer
67
+ * @returns Sum
68
+ */
69
+ function safeAdd(x, y) {
70
+ const lsw = (x & 0xffff) + (y & 0xffff);
71
+ const msw = (x >> 16) + (y >> 16) + (lsw >> 16);
72
+ return (msw << 16) | (lsw & 0xffff);
73
+ }
74
+ /**
75
+ * Bitwise rotate a 32-bit number to the left.
76
+ *
77
+ * @param num 32-bit number
78
+ * @param cnt Rotation count
79
+ * @returns Rotated number
80
+ */
81
+ function bitRotateLeft(num, cnt) {
82
+ return (num << cnt) | (num >>> (32 - cnt));
83
+ }
84
+ /**
85
+ * Basic operation the algorithm uses.
86
+ *
87
+ * @param q q
88
+ * @param a a
89
+ * @param b b
90
+ * @param x x
91
+ * @param s s
92
+ * @param t t
93
+ * @returns Result
94
+ */
95
+ function md5cmn(q, a, b, x, s, t) {
96
+ return safeAdd(bitRotateLeft(safeAdd(safeAdd(a, q), safeAdd(x, t)), s), b);
97
+ }
98
+ /**
99
+ * Basic operation the algorithm uses.
100
+ *
101
+ * @param a a
102
+ * @param b b
103
+ * @param c c
104
+ * @param d d
105
+ * @param x x
106
+ * @param s s
107
+ * @param t t
108
+ * @returns Result
109
+ */
110
+ function md5ff(a, b, c, d, x, s, t) {
111
+ return md5cmn((b & c) | (~b & d), a, b, x, s, t);
112
+ }
113
+ /**
114
+ * Basic operation the algorithm uses.
115
+ *
116
+ * @param a a
117
+ * @param b b
118
+ * @param c c
119
+ * @param d d
120
+ * @param x x
121
+ * @param s s
122
+ * @param t t
123
+ * @returns Result
124
+ */
125
+ function md5gg(a, b, c, d, x, s, t) {
126
+ return md5cmn((b & d) | (c & ~d), a, b, x, s, t);
127
+ }
128
+ /**
129
+ * Basic operation the algorithm uses.
130
+ *
131
+ * @param a a
132
+ * @param b b
133
+ * @param c c
134
+ * @param d d
135
+ * @param x x
136
+ * @param s s
137
+ * @param t t
138
+ * @returns Result
139
+ */
140
+ function md5hh(a, b, c, d, x, s, t) {
141
+ return md5cmn(b ^ c ^ d, a, b, x, s, t);
142
+ }
143
+ /**
144
+ * Basic operation the algorithm uses.
145
+ *
146
+ * @param a a
147
+ * @param b b
148
+ * @param c c
149
+ * @param d d
150
+ * @param x x
151
+ * @param s s
152
+ * @param t t
153
+ * @returns Result
154
+ */
155
+ function md5ii(a, b, c, d, x, s, t) {
156
+ return md5cmn(c ^ (b | ~d), a, b, x, s, t);
157
+ }
158
+ /**
159
+ * Calculate the MD5 of an array of little-endian words, and a bit length.
160
+ *
161
+ * @param x Array of little-endian words
162
+ * @param len Bit length
163
+ * @returns MD5 Array
164
+ */
165
+ function binlMD5(x, len) {
166
+ /* append padding */
167
+ x[len >> 5] |= 0x80 << len % 32;
168
+ x[(((len + 64) >>> 9) << 4) + 14] = len;
169
+ let a = 1732584193;
170
+ let b = -271733879;
171
+ let c = -1732584194;
172
+ let d = 271733878;
173
+ for (let i = 0; i < x.length; i += 16) {
174
+ const olda = a;
175
+ const oldb = b;
176
+ const oldc = c;
177
+ const oldd = d;
178
+ a = md5ff(a, b, c, d, x[i], 7, -680876936);
179
+ d = md5ff(d, a, b, c, x[i + 1], 12, -389564586);
180
+ c = md5ff(c, d, a, b, x[i + 2], 17, 606105819);
181
+ b = md5ff(b, c, d, a, x[i + 3], 22, -1044525330);
182
+ a = md5ff(a, b, c, d, x[i + 4], 7, -176418897);
183
+ d = md5ff(d, a, b, c, x[i + 5], 12, 1200080426);
184
+ c = md5ff(c, d, a, b, x[i + 6], 17, -1473231341);
185
+ b = md5ff(b, c, d, a, x[i + 7], 22, -45705983);
186
+ a = md5ff(a, b, c, d, x[i + 8], 7, 1770035416);
187
+ d = md5ff(d, a, b, c, x[i + 9], 12, -1958414417);
188
+ c = md5ff(c, d, a, b, x[i + 10], 17, -42063);
189
+ b = md5ff(b, c, d, a, x[i + 11], 22, -1990404162);
190
+ a = md5ff(a, b, c, d, x[i + 12], 7, 1804603682);
191
+ d = md5ff(d, a, b, c, x[i + 13], 12, -40341101);
192
+ c = md5ff(c, d, a, b, x[i + 14], 17, -1502002290);
193
+ b = md5ff(b, c, d, a, x[i + 15], 22, 1236535329);
194
+ a = md5gg(a, b, c, d, x[i + 1], 5, -165796510);
195
+ d = md5gg(d, a, b, c, x[i + 6], 9, -1069501632);
196
+ c = md5gg(c, d, a, b, x[i + 11], 14, 643717713);
197
+ b = md5gg(b, c, d, a, x[i], 20, -373897302);
198
+ a = md5gg(a, b, c, d, x[i + 5], 5, -701558691);
199
+ d = md5gg(d, a, b, c, x[i + 10], 9, 38016083);
200
+ c = md5gg(c, d, a, b, x[i + 15], 14, -660478335);
201
+ b = md5gg(b, c, d, a, x[i + 4], 20, -405537848);
202
+ a = md5gg(a, b, c, d, x[i + 9], 5, 568446438);
203
+ d = md5gg(d, a, b, c, x[i + 14], 9, -1019803690);
204
+ c = md5gg(c, d, a, b, x[i + 3], 14, -187363961);
205
+ b = md5gg(b, c, d, a, x[i + 8], 20, 1163531501);
206
+ a = md5gg(a, b, c, d, x[i + 13], 5, -1444681467);
207
+ d = md5gg(d, a, b, c, x[i + 2], 9, -51403784);
208
+ c = md5gg(c, d, a, b, x[i + 7], 14, 1735328473);
209
+ b = md5gg(b, c, d, a, x[i + 12], 20, -1926607734);
210
+ a = md5hh(a, b, c, d, x[i + 5], 4, -378558);
211
+ d = md5hh(d, a, b, c, x[i + 8], 11, -2022574463);
212
+ c = md5hh(c, d, a, b, x[i + 11], 16, 1839030562);
213
+ b = md5hh(b, c, d, a, x[i + 14], 23, -35309556);
214
+ a = md5hh(a, b, c, d, x[i + 1], 4, -1530992060);
215
+ d = md5hh(d, a, b, c, x[i + 4], 11, 1272893353);
216
+ c = md5hh(c, d, a, b, x[i + 7], 16, -155497632);
217
+ b = md5hh(b, c, d, a, x[i + 10], 23, -1094730640);
218
+ a = md5hh(a, b, c, d, x[i + 13], 4, 681279174);
219
+ d = md5hh(d, a, b, c, x[i], 11, -358537222);
220
+ c = md5hh(c, d, a, b, x[i + 3], 16, -722521979);
221
+ b = md5hh(b, c, d, a, x[i + 6], 23, 76029189);
222
+ a = md5hh(a, b, c, d, x[i + 9], 4, -640364487);
223
+ d = md5hh(d, a, b, c, x[i + 12], 11, -421815835);
224
+ c = md5hh(c, d, a, b, x[i + 15], 16, 530742520);
225
+ b = md5hh(b, c, d, a, x[i + 2], 23, -995338651);
226
+ a = md5ii(a, b, c, d, x[i], 6, -198630844);
227
+ d = md5ii(d, a, b, c, x[i + 7], 10, 1126891415);
228
+ c = md5ii(c, d, a, b, x[i + 14], 15, -1416354905);
229
+ b = md5ii(b, c, d, a, x[i + 5], 21, -57434055);
230
+ a = md5ii(a, b, c, d, x[i + 12], 6, 1700485571);
231
+ d = md5ii(d, a, b, c, x[i + 3], 10, -1894986606);
232
+ c = md5ii(c, d, a, b, x[i + 10], 15, -1051523);
233
+ b = md5ii(b, c, d, a, x[i + 1], 21, -2054922799);
234
+ a = md5ii(a, b, c, d, x[i + 8], 6, 1873313359);
235
+ d = md5ii(d, a, b, c, x[i + 15], 10, -30611744);
236
+ c = md5ii(c, d, a, b, x[i + 6], 15, -1560198380);
237
+ b = md5ii(b, c, d, a, x[i + 13], 21, 1309151649);
238
+ a = md5ii(a, b, c, d, x[i + 4], 6, -145523070);
239
+ d = md5ii(d, a, b, c, x[i + 11], 10, -1120210379);
240
+ c = md5ii(c, d, a, b, x[i + 2], 15, 718787259);
241
+ b = md5ii(b, c, d, a, x[i + 9], 21, -343485551);
242
+ a = safeAdd(a, olda);
243
+ b = safeAdd(b, oldb);
244
+ c = safeAdd(c, oldc);
245
+ d = safeAdd(d, oldd);
246
+ }
247
+ return [a, b, c, d];
248
+ }
249
+ /**
250
+ * Convert an array of little-endian words to a string
251
+ *
252
+ * @param input MD5 Array
253
+ * @returns MD5 string
254
+ */
255
+ function binl2rstr(input) {
256
+ let output = "";
257
+ const length32 = input.length * 32;
258
+ for (let i = 0; i < length32; i += 8) {
259
+ output += String.fromCharCode((input[i >> 5] >>> i % 32) & 0xff);
260
+ }
261
+ return output;
262
+ }
263
+ /**
264
+ * Convert a raw string to an array of little-endian words
265
+ * Characters >255 have their high-byte silently ignored.
266
+ *
267
+ * @param input Raw input string
268
+ * @returns Array of little-endian words
269
+ */
270
+ function rstr2binl(input) {
271
+ const output = [];
272
+ const outputLen = input.length >> 2;
273
+ for (let i = 0; i < outputLen; i += 1) {
274
+ output[i] = 0;
275
+ }
276
+ const length8 = input.length * 8;
277
+ for (let i = 0; i < length8; i += 8) {
278
+ output[i >> 5] |= (input.charCodeAt(i / 8) & 0xff) << i % 32;
279
+ }
280
+ return output;
281
+ }
282
+ /**
283
+ * Calculate the MD5 of a raw string
284
+ *
285
+ * @param s Input string
286
+ * @returns Raw MD5 string
287
+ */
288
+ function rstrMD5(s) {
289
+ return binl2rstr(binlMD5(rstr2binl(s), s.length * 8));
290
+ }
291
+ /**
292
+ * Convert a raw string to a hex string
293
+ *
294
+ * @param input Raw input string
295
+ * @returns Hex encoded string
296
+ */
297
+ function rstr2hex(input) {
298
+ const hexTab = "0123456789abcdef";
299
+ let output = "";
300
+ for (let i = 0; i < input.length; i += 1) {
301
+ const x = input.charCodeAt(i);
302
+ output += hexTab.charAt((x >>> 4) & 0x0f) + hexTab.charAt(x & 0x0f);
303
+ }
304
+ return output;
305
+ }
306
+ /**
307
+ * Encode a string as UTF-8
308
+ *
309
+ * @param input Input string
310
+ * @returns UTF8 string
311
+ */
312
+ function str2rstrUTF8(input) {
313
+ return unescape(encodeURIComponent(input));
314
+ }
315
+ /**
316
+ * Encodes input string as raw MD5 string
317
+ *
318
+ * @param s Input string
319
+ * @returns Raw MD5 string
320
+ */
321
+ function rawMD5(s) {
322
+ return rstrMD5(str2rstrUTF8(s));
323
+ }
324
+ /**
325
+ * Encodes input string as Hex encoded string
326
+ *
327
+ * @param s Input string
328
+ * @returns Hex encoded string
329
+ */
330
+ function hexMD5(s) {
331
+ return rstr2hex(rawMD5(s));
332
+ }
333
+ /**
334
+ * Calculates MD5 value for a given string.
335
+ * If a key is provided, calculates the HMAC-MD5 value.
336
+ * Returns a Hex encoded string unless the raw argument is given.
337
+ *
338
+ * @param string Input string
339
+ * @param key HMAC key
340
+ * @param raw Raw output switch
341
+ * @returns MD5 output
342
+ */
343
+ function md5(string, key, raw) {
344
+ {
345
+ {
346
+ return hexMD5(string);
347
+ }
348
+ }
349
+ }
350
+
351
+ const MAX_HEADER_VALUE = 3072;
352
+ /**
353
+ *
354
+ * Splits headers according to spec
355
+ * @param headers
356
+ * @returns Split headers
357
+ */
358
+ function splitHeaders(headers) {
359
+ const output = new Headers(headers);
360
+ if (headers.has("x-bare-headers")) {
361
+ const value = headers.get("x-bare-headers");
362
+ if (value.length > MAX_HEADER_VALUE) {
363
+ output.delete("x-bare-headers");
364
+ let split = 0;
365
+ for (let i = 0; i < value.length; i += MAX_HEADER_VALUE) {
366
+ const part = value.slice(i, i + MAX_HEADER_VALUE);
367
+ const id = split++;
368
+ output.set(`x-bare-headers-${id}`, `;${part}`);
369
+ }
370
+ }
371
+ }
372
+ return output;
373
+ }
374
+ /**
375
+ * Joins headers according to spec
376
+ * @param headers
377
+ * @returns Joined headers
378
+ */
379
+ function joinHeaders(headers) {
380
+ const output = new Headers(headers);
381
+ const prefix = "x-bare-headers";
382
+ if (headers.has(`${prefix}-0`)) {
383
+ const join = [];
384
+ for (const [header, value] of headers) {
385
+ if (!header.startsWith(prefix)) {
386
+ continue;
387
+ }
388
+ if (!value.startsWith(";")) {
389
+ throw new BareError(400, {
390
+ code: "INVALID_BARE_HEADER",
391
+ id: `request.headers.${header}`,
392
+ message: "Value didn't begin with semi-colon.",
393
+ });
394
+ }
395
+ const id = parseInt(header.slice(prefix.length + 1));
396
+ join[id] = value.slice(1);
397
+ output.delete(header);
398
+ }
399
+ output.set(prefix, join.join(""));
400
+ }
401
+ return output;
402
+ }
403
+
404
+ class ClientV3 extends Client {
405
+ ws;
406
+ http;
407
+ meta() {
408
+ return {};
409
+ }
410
+ constructor(server) {
411
+ super(3, server);
412
+ this.ws = new URL(this.base);
413
+ this.http = new URL(this.base);
414
+ if (this.ws.protocol === "https:") {
415
+ this.ws.protocol = "wss:";
416
+ }
417
+ else {
418
+ this.ws.protocol = "ws:";
419
+ }
420
+ }
421
+ ready = true;
422
+ async init() {
423
+ this.ready = true;
424
+ }
425
+ connect(url, protocols, requestHeaders, onopen, onmessage, onclose, onerror) {
426
+ const ws = new WebSocket(this.ws);
427
+ requestHeaders["Host"] = url.host;
428
+ requestHeaders["Upgrade"] = "websocket";
429
+ requestHeaders["Connection"] = "Upgrade";
430
+ const cleanup = () => {
431
+ ws.removeEventListener("close", closeListener);
432
+ ws.removeEventListener("message", messageListener);
433
+ };
434
+ const messageListener = (event) => {
435
+ cleanup();
436
+ // ws.binaryType is irrelevant when sending text
437
+ if (typeof event.data !== "string")
438
+ throw new TypeError("the first websocket message was not a text frame");
439
+ const message = JSON.parse(event.data);
440
+ // finally
441
+ if (message.type !== "open")
442
+ throw new TypeError("message was not of open type");
443
+ // onMeta({
444
+ // protocol: message.protocol,
445
+ // setCookies: message.setCookies,
446
+ // });
447
+ onopen(message.protocol);
448
+ ws.addEventListener("message", (ev) => {
449
+ onmessage(ev.data);
450
+ });
451
+ ws.addEventListener("close", (ev) => {
452
+ onclose(ev.code, ev.reason);
453
+ });
454
+ };
455
+ const closeListener = (event) => {
456
+ onclose(event.code, event.reason);
457
+ cleanup();
458
+ };
459
+ ws.addEventListener("message", messageListener);
460
+ ws.addEventListener("close", closeListener);
461
+ // CONNECTED TO THE BARE SERVER, NOT THE REMOTE
462
+ ws.addEventListener("open", (event) => {
463
+ WebSocketFields.prototype.send.call(ws, JSON.stringify({
464
+ type: "connect",
465
+ remote: url.toString(),
466
+ protocols,
467
+ headers: requestHeaders,
468
+ forwardHeaders: [],
469
+ }));
470
+ },
471
+ // only block the open event once
472
+ { once: true });
473
+ return [ws.send.bind(ws), ws.close.bind(ws)];
474
+ }
475
+ async request(remote, method, body, headers, signal) {
476
+ const options = {
477
+ credentials: "omit",
478
+ method: method,
479
+ signal,
480
+ //@ts-expect-error this exists but isnt typed ig
481
+ duplex: "half"
482
+ };
483
+ if (body !== undefined) {
484
+ options.body = body;
485
+ }
486
+ if ("host" in headers)
487
+ headers.host = remote.host;
488
+ else
489
+ headers.Host = remote.host;
490
+ options.headers = this.createBareHeaders(remote, headers);
491
+ const response = await fetch(this.http + "?cache=" + md5(remote.toString()), options);
492
+ const readResponse = await this.readBareResponse(response);
493
+ return {
494
+ body: response.body,
495
+ headers: readResponse.headers,
496
+ status: readResponse.status,
497
+ statusText: readResponse.statusText,
498
+ };
499
+ }
500
+ async readBareResponse(response) {
501
+ if (!response.ok) {
502
+ throw new BareError(response.status, await response.json());
503
+ }
504
+ const responseHeaders = joinHeaders(response.headers);
505
+ const result = {};
506
+ const xBareStatus = responseHeaders.get("x-bare-status");
507
+ if (xBareStatus !== null)
508
+ result.status = parseInt(xBareStatus);
509
+ const xBareStatusText = responseHeaders.get("x-bare-status-text");
510
+ if (xBareStatusText !== null)
511
+ result.statusText = xBareStatusText;
512
+ const xBareHeaders = responseHeaders.get("x-bare-headers");
513
+ if (xBareHeaders !== null)
514
+ result.headers = JSON.parse(xBareHeaders);
515
+ return result;
516
+ }
517
+ createBareHeaders(remote, bareHeaders, forwardHeaders = [], passHeaders = [], passStatus = []) {
518
+ const headers = new Headers();
519
+ headers.set("x-bare-url", remote.toString());
520
+ headers.set("x-bare-headers", JSON.stringify(bareHeaders));
521
+ for (const header of forwardHeaders) {
522
+ headers.append("x-bare-forward-headers", header);
523
+ }
524
+ for (const header of passHeaders) {
525
+ headers.append("x-bare-pass-headers", header);
526
+ }
527
+ for (const status of passStatus) {
528
+ headers.append("x-bare-pass-status", status.toString());
529
+ }
530
+ splitHeaders(headers);
531
+ return headers;
532
+ }
533
+ }
534
+
535
+ exports.BareClient = ClientV3;
536
+ exports.default = ClientV3;
537
+
538
+ Object.defineProperty(exports, '__esModule', { value: true });
539
+
540
+ }));
541
+ //# sourceMappingURL=index.js.map
dist/baremod/index.js.map ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":3,"file":"index.js","sources":["../src/snapshot.ts","../src/Client.ts","../src/md5.ts","../src/splitHeaderUtil.ts","../src/V3.ts"],"sourcesContent":["// The user likely has overwritten all networking functions after importing bare-client\n// It is our responsibility to make sure components of Bare-Client are using native networking functions\n\n// These exports are provided to plugins by @rollup/plugin-inject\n\nexport const fetch = globalThis.fetch;\nexport const WebSocket = globalThis.WebSocket;\nexport const Request = globalThis.Request;\nexport const Response = globalThis.Response;\nexport const XMLHttpRequest = globalThis.XMLHttpRequest;\n\nexport const WebSocketFields = {\n\tprototype: {\n\t\tsend: WebSocket.prototype.send,\n\t},\n\tCLOSED: WebSocket.CLOSED,\n\tCLOSING: WebSocket.CLOSING,\n\tCONNECTING: WebSocket.CONNECTING,\n\tOPEN: WebSocket.OPEN,\n};\n","import type {\n\tBareCache,\n\tBareHeaders,\n\tBareMethod,\n\tBareResponse,\n\tBareWebSocketMeta,\n} from \"./BareTypes.js\";\n\nexport const statusEmpty = [101, 204, 205, 304];\nexport const statusRedirect = [301, 302, 303, 307, 308];\n\nexport interface BareErrorBody {\n\tcode: string;\n\tid: string;\n\tmessage?: string;\n\tstack?: string;\n}\n\nexport class BareError extends Error {\n\tstatus: number;\n\tbody: BareErrorBody;\n\tconstructor(status: number, body: BareErrorBody) {\n\t\tsuper(body.message || body.code);\n\t\tthis.status = status;\n\t\tthis.body = body;\n\t}\n}\n\nexport type MetaCallback = (meta: BareWebSocketMeta) => void;\nexport type ReadyStateCallback = (readyState: number) => void;\nexport type WebSocketImpl = {\n\tnew(...args: ConstructorParameters<typeof WebSocket>): WebSocket;\n};\nexport type GetRequestHeadersCallback = () => Promise<BareHeaders>;\n\nexport abstract class Client {\n\tprotected base: URL;\n\t/**\n\t *\n\t * @param version Version provided by extension\n\t * @param server Bare Server URL provided by BareClient\n\t */\n\tconstructor(version: number, server: URL) {\n\t\tthis.base = new URL(`./v${version}/`, server);\n\t}\n}\n","/*\n * JavaScript MD5\n * Adopted from https://github.com/blueimp/JavaScript-MD5\n *\n * Copyright 2011, Sebastian Tschan\n * https://blueimp.net\n *\n * Licensed under the MIT license:\n * https://opensource.org/licenses/MIT\n *\n * Based on\n * A JavaScript implementation of the RSA Data Security, Inc. MD5 Message\n * Digest Algorithm, as defined in RFC 1321.\n * Version 2.2 Copyright (C) Paul Johnston 1999 - 2009\n * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet\n * Distributed under the BSD License\n * See http://pajhome.org.uk/crypt/md5 for more info.\n */\n\n/**\n * Add integers, wrapping at 2^32.\n * This uses 16-bit operations internally to work around bugs in interpreters.\n *\n * @param x First integer\n * @param y Second integer\n * @returns Sum\n */\nfunction safeAdd(x: number, y: number): number {\n\tconst lsw = (x & 0xffff) + (y & 0xffff);\n\tconst msw = (x >> 16) + (y >> 16) + (lsw >> 16);\n\t\nreturn (msw << 16) | (lsw & 0xffff);\n}\n\n/**\n * Bitwise rotate a 32-bit number to the left.\n *\n * @param num 32-bit number\n * @param cnt Rotation count\n * @returns Rotated number\n */\nfunction bitRotateLeft(num: number, cnt: number): number {\n\treturn (num << cnt) | (num >>> (32 - cnt));\n}\n\n/**\n * Basic operation the algorithm uses.\n *\n * @param q q\n * @param a a\n * @param b b\n * @param x x\n * @param s s\n * @param t t\n * @returns Result\n */\nfunction md5cmn(\n\tq: number,\n\ta: number,\n\tb: number,\n\tx: number,\n\ts: number,\n\tt: number\n): number {\n\treturn safeAdd(bitRotateLeft(safeAdd(safeAdd(a, q), safeAdd(x, t)), s), b);\n}\n/**\n * Basic operation the algorithm uses.\n *\n * @param a a\n * @param b b\n * @param c c\n * @param d d\n * @param x x\n * @param s s\n * @param t t\n * @returns Result\n */\nfunction md5ff(\n\ta: number,\n\tb: number,\n\tc: number,\n\td: number,\n\tx: number,\n\ts: number,\n\tt: number\n): number {\n\treturn md5cmn((b & c) | (~b & d), a, b, x, s, t);\n}\n/**\n * Basic operation the algorithm uses.\n *\n * @param a a\n * @param b b\n * @param c c\n * @param d d\n * @param x x\n * @param s s\n * @param t t\n * @returns Result\n */\nfunction md5gg(\n\ta: number,\n\tb: number,\n\tc: number,\n\td: number,\n\tx: number,\n\ts: number,\n\tt: number\n): number {\n\treturn md5cmn((b & d) | (c & ~d), a, b, x, s, t);\n}\n/**\n * Basic operation the algorithm uses.\n *\n * @param a a\n * @param b b\n * @param c c\n * @param d d\n * @param x x\n * @param s s\n * @param t t\n * @returns Result\n */\nfunction md5hh(\n\ta: number,\n\tb: number,\n\tc: number,\n\td: number,\n\tx: number,\n\ts: number,\n\tt: number\n): number {\n\treturn md5cmn(b ^ c ^ d, a, b, x, s, t);\n}\n/**\n * Basic operation the algorithm uses.\n *\n * @param a a\n * @param b b\n * @param c c\n * @param d d\n * @param x x\n * @param s s\n * @param t t\n * @returns Result\n */\nfunction md5ii(\n\ta: number,\n\tb: number,\n\tc: number,\n\td: number,\n\tx: number,\n\ts: number,\n\tt: number\n): number {\n\treturn md5cmn(c ^ (b | ~d), a, b, x, s, t);\n}\n\n/**\n * Calculate the MD5 of an array of little-endian words, and a bit length.\n *\n * @param x Array of little-endian words\n * @param len Bit length\n * @returns MD5 Array\n */\nfunction binlMD5(x: number[], len: number): number[] {\n\t/* append padding */\n\tx[len >> 5] |= 0x80 << len % 32;\n\tx[(((len + 64) >>> 9) << 4) + 14] = len;\n\n\tlet a = 1732584193;\n\tlet b = -271733879;\n\tlet c = -1732584194;\n\tlet d = 271733878;\n\n\tfor (let i = 0; i < x.length; i += 16) {\n\t\tconst olda = a;\n\t\tconst oldb = b;\n\t\tconst oldc = c;\n\t\tconst oldd = d;\n\n\t\ta = md5ff(a, b, c, d, x[i], 7, -680876936);\n\t\td = md5ff(d, a, b, c, x[i + 1], 12, -389564586);\n\t\tc = md5ff(c, d, a, b, x[i + 2], 17, 606105819);\n\t\tb = md5ff(b, c, d, a, x[i + 3], 22, -1044525330);\n\t\ta = md5ff(a, b, c, d, x[i + 4], 7, -176418897);\n\t\td = md5ff(d, a, b, c, x[i + 5], 12, 1200080426);\n\t\tc = md5ff(c, d, a, b, x[i + 6], 17, -1473231341);\n\t\tb = md5ff(b, c, d, a, x[i + 7], 22, -45705983);\n\t\ta = md5ff(a, b, c, d, x[i + 8], 7, 1770035416);\n\t\td = md5ff(d, a, b, c, x[i + 9], 12, -1958414417);\n\t\tc = md5ff(c, d, a, b, x[i + 10], 17, -42063);\n\t\tb = md5ff(b, c, d, a, x[i + 11], 22, -1990404162);\n\t\ta = md5ff(a, b, c, d, x[i + 12], 7, 1804603682);\n\t\td = md5ff(d, a, b, c, x[i + 13], 12, -40341101);\n\t\tc = md5ff(c, d, a, b, x[i + 14], 17, -1502002290);\n\t\tb = md5ff(b, c, d, a, x[i + 15], 22, 1236535329);\n\n\t\ta = md5gg(a, b, c, d, x[i + 1], 5, -165796510);\n\t\td = md5gg(d, a, b, c, x[i + 6], 9, -1069501632);\n\t\tc = md5gg(c, d, a, b, x[i + 11], 14, 643717713);\n\t\tb = md5gg(b, c, d, a, x[i], 20, -373897302);\n\t\ta = md5gg(a, b, c, d, x[i + 5], 5, -701558691);\n\t\td = md5gg(d, a, b, c, x[i + 10], 9, 38016083);\n\t\tc = md5gg(c, d, a, b, x[i + 15], 14, -660478335);\n\t\tb = md5gg(b, c, d, a, x[i + 4], 20, -405537848);\n\t\ta = md5gg(a, b, c, d, x[i + 9], 5, 568446438);\n\t\td = md5gg(d, a, b, c, x[i + 14], 9, -1019803690);\n\t\tc = md5gg(c, d, a, b, x[i + 3], 14, -187363961);\n\t\tb = md5gg(b, c, d, a, x[i + 8], 20, 1163531501);\n\t\ta = md5gg(a, b, c, d, x[i + 13], 5, -1444681467);\n\t\td = md5gg(d, a, b, c, x[i + 2], 9, -51403784);\n\t\tc = md5gg(c, d, a, b, x[i + 7], 14, 1735328473);\n\t\tb = md5gg(b, c, d, a, x[i + 12], 20, -1926607734);\n\n\t\ta = md5hh(a, b, c, d, x[i + 5], 4, -378558);\n\t\td = md5hh(d, a, b, c, x[i + 8], 11, -2022574463);\n\t\tc = md5hh(c, d, a, b, x[i + 11], 16, 1839030562);\n\t\tb = md5hh(b, c, d, a, x[i + 14], 23, -35309556);\n\t\ta = md5hh(a, b, c, d, x[i + 1], 4, -1530992060);\n\t\td = md5hh(d, a, b, c, x[i + 4], 11, 1272893353);\n\t\tc = md5hh(c, d, a, b, x[i + 7], 16, -155497632);\n\t\tb = md5hh(b, c, d, a, x[i + 10], 23, -1094730640);\n\t\ta = md5hh(a, b, c, d, x[i + 13], 4, 681279174);\n\t\td = md5hh(d, a, b, c, x[i], 11, -358537222);\n\t\tc = md5hh(c, d, a, b, x[i + 3], 16, -722521979);\n\t\tb = md5hh(b, c, d, a, x[i + 6], 23, 76029189);\n\t\ta = md5hh(a, b, c, d, x[i + 9], 4, -640364487);\n\t\td = md5hh(d, a, b, c, x[i + 12], 11, -421815835);\n\t\tc = md5hh(c, d, a, b, x[i + 15], 16, 530742520);\n\t\tb = md5hh(b, c, d, a, x[i + 2], 23, -995338651);\n\n\t\ta = md5ii(a, b, c, d, x[i], 6, -198630844);\n\t\td = md5ii(d, a, b, c, x[i + 7], 10, 1126891415);\n\t\tc = md5ii(c, d, a, b, x[i + 14], 15, -1416354905);\n\t\tb = md5ii(b, c, d, a, x[i + 5], 21, -57434055);\n\t\ta = md5ii(a, b, c, d, x[i + 12], 6, 1700485571);\n\t\td = md5ii(d, a, b, c, x[i + 3], 10, -1894986606);\n\t\tc = md5ii(c, d, a, b, x[i + 10], 15, -1051523);\n\t\tb = md5ii(b, c, d, a, x[i + 1], 21, -2054922799);\n\t\ta = md5ii(a, b, c, d, x[i + 8], 6, 1873313359);\n\t\td = md5ii(d, a, b, c, x[i + 15], 10, -30611744);\n\t\tc = md5ii(c, d, a, b, x[i + 6], 15, -1560198380);\n\t\tb = md5ii(b, c, d, a, x[i + 13], 21, 1309151649);\n\t\ta = md5ii(a, b, c, d, x[i + 4], 6, -145523070);\n\t\td = md5ii(d, a, b, c, x[i + 11], 10, -1120210379);\n\t\tc = md5ii(c, d, a, b, x[i + 2], 15, 718787259);\n\t\tb = md5ii(b, c, d, a, x[i + 9], 21, -343485551);\n\n\t\ta = safeAdd(a, olda);\n\t\tb = safeAdd(b, oldb);\n\t\tc = safeAdd(c, oldc);\n\t\td = safeAdd(d, oldd);\n\t}\n\t\nreturn [a, b, c, d];\n}\n\n/**\n * Convert an array of little-endian words to a string\n *\n * @param input MD5 Array\n * @returns MD5 string\n */\nfunction binl2rstr(input: number[]): string {\n\tlet output = \"\";\n\tconst length32 = input.length * 32;\n\tfor (let i = 0; i < length32; i += 8) {\n\t\toutput += String.fromCharCode((input[i >> 5] >>> i % 32) & 0xff);\n\t}\n\t\nreturn output;\n}\n\n/**\n * Convert a raw string to an array of little-endian words\n * Characters >255 have their high-byte silently ignored.\n *\n * @param input Raw input string\n * @returns Array of little-endian words\n */\nfunction rstr2binl(input: string): number[] {\n\tconst output: number[] = [];\n\tconst outputLen = input.length >> 2;\n\tfor (let i = 0; i < outputLen; i += 1) {\n\t\toutput[i] = 0;\n\t}\n\tconst length8 = input.length * 8;\n\tfor (let i = 0; i < length8; i += 8) {\n\t\toutput[i >> 5]! |= (input.charCodeAt(i / 8) & 0xff) << i % 32;\n\t}\n\t\nreturn <number[]>output;\n}\n\n/**\n * Calculate the MD5 of a raw string\n *\n * @param s Input string\n * @returns Raw MD5 string\n */\nfunction rstrMD5(s: string): string {\n\treturn binl2rstr(binlMD5(rstr2binl(s), s.length * 8));\n}\n\n/**\n * Calculates the HMAC-MD5 of a key and some data (raw strings)\n *\n * @param key HMAC key\n * @param data Raw input string\n * @returns Raw MD5 string\n */\nfunction rstrHMACMD5(key: string, data: string): string {\n\tlet bkey = rstr2binl(key);\n\tconst ipad: number[] = [];\n\tconst opad: number[] = [];\n\tif (bkey.length > 16) {\n\t\tbkey = binlMD5(bkey, key.length * 8);\n\t}\n\tfor (let i = 0; i < 16; i += 1) {\n\t\tipad[i] = bkey[i] ^ 0x36363636;\n\t\topad[i] = bkey[i] ^ 0x5c5c5c5c;\n\t}\n\tconst hash = binlMD5(ipad.concat(rstr2binl(data)), 512 + data.length * 8);\n\t\nreturn binl2rstr(binlMD5(opad.concat(hash), 512 + 128));\n}\n\n/**\n * Convert a raw string to a hex string\n *\n * @param input Raw input string\n * @returns Hex encoded string\n */\nfunction rstr2hex(input: string): string {\n\tconst hexTab = \"0123456789abcdef\";\n\tlet output = \"\";\n\tfor (let i = 0; i < input.length; i += 1) {\n\t\tconst x = input.charCodeAt(i);\n\t\toutput += hexTab.charAt((x >>> 4) & 0x0f) + hexTab.charAt(x & 0x0f);\n\t}\n\t\nreturn output;\n}\n\n/**\n * Encode a string as UTF-8\n *\n * @param input Input string\n * @returns UTF8 string\n */\nfunction str2rstrUTF8(input: string): string {\n\treturn unescape(encodeURIComponent(input));\n}\n\n/**\n * Encodes input string as raw MD5 string\n *\n * @param s Input string\n * @returns Raw MD5 string\n */\nfunction rawMD5(s: string): string {\n\treturn rstrMD5(str2rstrUTF8(s));\n}\n/**\n * Encodes input string as Hex encoded string\n *\n * @param s Input string\n * @returns Hex encoded string\n */\nfunction hexMD5(s: string): string {\n\treturn rstr2hex(rawMD5(s));\n}\n/**\n * Calculates the raw HMAC-MD5 for the given key and data\n *\n * @param k HMAC key\n * @param d Input string\n * @returns Raw MD5 string\n */\nfunction rawHMACMD5(k: string, d: string): string {\n\treturn rstrHMACMD5(str2rstrUTF8(k), str2rstrUTF8(d));\n}\n/**\n * Calculates the Hex encoded HMAC-MD5 for the given key and data\n *\n * @param k HMAC key\n * @param d Input string\n * @returns Raw MD5 string\n */\nfunction hexHMACMD5(k: string, d: string): string {\n\treturn rstr2hex(rawHMACMD5(k, d));\n}\n\n/**\n * Calculates MD5 value for a given string.\n * If a key is provided, calculates the HMAC-MD5 value.\n * Returns a Hex encoded string unless the raw argument is given.\n *\n * @param string Input string\n * @param key HMAC key\n * @param raw Raw output switch\n * @returns MD5 output\n */\nexport default function md5(\n\tstring: string,\n\tkey?: string,\n\traw?: boolean\n): string {\n\tif (!key) {\n\t\tif (!raw) {\n\t\t\treturn hexMD5(string);\n\t\t}\n\t\t\nreturn rawMD5(string);\n\t}\n\tif (!raw) {\n\t\treturn hexHMACMD5(key, string);\n\t}\n\t\nreturn rawHMACMD5(key, string);\n}\n","import { BareError } from \"./Client\";\n\nconst MAX_HEADER_VALUE = 3072;\n\n/**\n *\n * Splits headers according to spec\n * @param headers\n * @returns Split headers\n */\nexport function splitHeaders(headers: Headers): Headers {\n\tconst output = new Headers(headers);\n\n\tif (headers.has(\"x-bare-headers\")) {\n\t\tconst value = headers.get(\"x-bare-headers\")!;\n\n\t\tif (value.length > MAX_HEADER_VALUE) {\n\t\t\toutput.delete(\"x-bare-headers\");\n\n\t\t\tlet split = 0;\n\n\t\t\tfor (let i = 0; i < value.length; i += MAX_HEADER_VALUE) {\n\t\t\t\tconst part = value.slice(i, i + MAX_HEADER_VALUE);\n\n\t\t\t\tconst id = split++;\n\t\t\t\toutput.set(`x-bare-headers-${id}`, `;${part}`);\n\t\t\t}\n\t\t}\n\t}\n\n\treturn output;\n}\n\n/**\n * Joins headers according to spec\n * @param headers\n * @returns Joined headers\n */\nexport function joinHeaders(headers: Headers): Headers {\n\tconst output = new Headers(headers);\n\n\tconst prefix = \"x-bare-headers\";\n\n\tif (headers.has(`${prefix}-0`)) {\n\t\tconst join: string[] = [];\n\n\t\tfor (const [header, value] of headers) {\n\t\t\tif (!header.startsWith(prefix)) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif (!value.startsWith(\";\")) {\n\t\t\t\tthrow new BareError(400, {\n\t\t\t\t\tcode: \"INVALID_BARE_HEADER\",\n\t\t\t\t\tid: `request.headers.${header}`,\n\t\t\t\t\tmessage: \"Value didn't begin with semi-colon.\",\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tconst id = parseInt(header.slice(prefix.length + 1));\n\n\t\t\tjoin[id] = value.slice(1);\n\n\t\t\toutput.delete(header);\n\t\t}\n\n\t\toutput.set(prefix, join.join(\"\"));\n\t}\n\n\treturn output;\n}\n","import type {\n\tBareCache,\n\tBareHeaders,\n\tBareMethod,\n\tBareResponse,\n} from \"./BareTypes.js\";\nimport { BareError, Client, statusEmpty } from \"./Client.js\";\nimport type {\n\tReadyStateCallback,\n\tMetaCallback,\n\tGetRequestHeadersCallback,\n} from \"./Client.js\";\nimport type {\n\tBareResponseHeaders,\n\tSocketClientToServer,\n\tSocketServerToClient,\n} from \"./V3Types.js\";\nimport md5 from \"./md5.js\";\nimport { WebSocketFields } from \"./snapshot.js\";\nimport { joinHeaders, splitHeaders } from \"./splitHeaderUtil.js\";\nimport type { BareTransport, TransferrableResponse } from \"@mercuryworkshop/bare-mux\";\n\nexport default class ClientV3 extends Client implements BareTransport {\n\tws: URL;\n\thttp: URL;\n\n\tmeta() {\n\t\treturn {};\n\t}\n\tconstructor(server: URL) {\n\t\tsuper(3, server);\n\n\t\tthis.ws = new URL(this.base);\n\t\tthis.http = new URL(this.base);\n\n\t\tif (this.ws.protocol === \"https:\") {\n\t\t\tthis.ws.protocol = \"wss:\";\n\t\t} else {\n\t\t\tthis.ws.protocol = \"ws:\";\n\t\t}\n\t}\n\tready = true;\n\tasync init() {\n\t\tthis.ready = true;\n\t}\n\tconnect(\n\t\turl: URL,\n\t\tprotocols: string[],\n\t\trequestHeaders: BareHeaders,\n\t\tonopen: (protocol: string) => void,\n\t\tonmessage: (data: Blob | ArrayBuffer | string) => void,\n\t\tonclose: (code: number, reason: string) => void,\n\t\tonerror: (error: string) => void,\n\t): [ (data: Blob | ArrayBuffer | string) => void, (code: number, reason: string) => void ] {\n\t\tconst ws = new WebSocket(this.ws);\n\n\t\trequestHeaders[\"Host\"] = url.host; \n\t\trequestHeaders[\"Upgrade\"] = \"websocket\";\n\t\trequestHeaders[\"Connection\"] = \"Upgrade\";\n\n\t\tconst cleanup = () => {\n\t\t\tws.removeEventListener(\"close\", closeListener);\n\t\t\tws.removeEventListener(\"message\", messageListener);\n\t\t};\n\n\t\tconst messageListener = (event: MessageEvent) => {\n\t\t\tcleanup();\n\n\t\t\t// ws.binaryType is irrelevant when sending text\n\t\t\tif (typeof event.data !== \"string\")\n\t\t\t\tthrow new TypeError(\"the first websocket message was not a text frame\");\n\n\t\t\tconst message = JSON.parse(event.data) as SocketServerToClient;\n\n\t\t\t// finally\n\t\t\tif (message.type !== \"open\")\n\t\t\t\tthrow new TypeError(\"message was not of open type\");\n\n\t\t\t// onMeta({\n\t\t\t// \tprotocol: message.protocol,\n\t\t\t// \tsetCookies: message.setCookies,\n\t\t\t// });\n\n\n\t\t\tonopen(message.protocol);\n\n\t\t\tws.addEventListener(\"message\", (ev) => {\n\t\t\t\tonmessage(ev.data);\n\t\t\t});\n\n\t\t\tws.addEventListener(\"close\", (ev) => {\n\t\t\t\tonclose(ev.code, ev.reason)\n\t\t\t});\n\t\t};\n\n\t\tconst closeListener = (event: CloseEvent) => {\n\t\t\tonclose(event.code, event.reason)\n\t\t\tcleanup();\n\t\t};\n\n\t\tws.addEventListener(\"message\", messageListener);\n\t\tws.addEventListener(\"close\", closeListener);\n\n\t\t// CONNECTED TO THE BARE SERVER, NOT THE REMOTE\n\t\tws.addEventListener(\n\t\t\t\"open\",\n\t\t\t(event) => {\n\t\t\t\tWebSocketFields.prototype.send.call(\n\t\t\t\t\tws,\n\t\t\t\t\tJSON.stringify({\n\t\t\t\t\t\ttype: \"connect\",\n\t\t\t\t\t\tremote: url.toString(),\n\t\t\t\t\t\tprotocols,\n\t\t\t\t\t\theaders: requestHeaders,\n\t\t\t\t\t\tforwardHeaders: [],\n\t\t\t\t\t} as unknown as SocketClientToServer)\n\t\t\t\t)\n\t\t\t},\n\t\t\t// only block the open event once\n\t\t\t{ once: true }\n\t\t);\n\n\n\t\treturn [ ws.send.bind(ws), ws.close.bind(ws) ]\n\t}\n\tasync request(\n\t\tremote: URL,\n\t\tmethod: BareMethod,\n\t\tbody: BodyInit | null,\n\t\theaders: BareHeaders,\n\t\tsignal: AbortSignal | undefined\n\t): Promise<TransferrableResponse> {\n\t\tconst options: RequestInit = {\n\t\t\tcredentials: \"omit\",\n\t\t\tmethod: method,\n\t\t\tsignal,\n\t\t\t//@ts-expect-error this exists but isnt typed ig\n\t\t\tduplex: \"half\"\n\t\t};\n\n\n\t\tif (body !== undefined) {\n\t\t\toptions.body = body;\n\t\t}\n\n\t\tif (\"host\" in headers) headers.host = remote.host;\n\t\telse headers.Host = remote.host;\n\t\toptions.headers = this.createBareHeaders(remote, headers);\n\n\t\tconst response = await fetch(\n\t\t\tthis.http + \"?cache=\" + md5(remote.toString()),\n\t\t\toptions\n\t\t);\n\n\t\tconst readResponse = await this.readBareResponse(response);\n\t\t\n\t\treturn {\n\t\t\tbody: response.body!,\n\t\t\theaders: readResponse.headers,\n\t\t\tstatus: readResponse.status,\n\t\t\tstatusText: readResponse.statusText,\n\t\t};\n\t}\n\n\tprivate async readBareResponse(response: Response) {\n\t\tif (!response.ok) {\n\t\t\tthrow new BareError(response.status, await response.json());\n\t\t}\n\n\t\tconst responseHeaders = joinHeaders(response.headers);\n\n\t\tconst result: Partial<BareResponseHeaders> = {};\n\n\t\tconst xBareStatus = responseHeaders.get(\"x-bare-status\");\n\t\tif (xBareStatus !== null) result.status = parseInt(xBareStatus);\n\n\t\tconst xBareStatusText = responseHeaders.get(\"x-bare-status-text\");\n\t\tif (xBareStatusText !== null) result.statusText = xBareStatusText;\n\n\t\tconst xBareHeaders = responseHeaders.get(\"x-bare-headers\");\n\t\tif (xBareHeaders !== null) result.headers = JSON.parse(xBareHeaders);\n\n\t\treturn result as BareResponseHeaders;\n\t}\n\tcreateBareHeaders(\n\t\tremote: URL,\n\t\tbareHeaders: BareHeaders,\n\t\tforwardHeaders: string[] = [],\n\t\tpassHeaders: string[] = [],\n\t\tpassStatus: number[] = []\n\t) {\n\t\tconst headers = new Headers();\n\n\t\theaders.set(\"x-bare-url\", remote.toString());\n\t\theaders.set(\"x-bare-headers\", JSON.stringify(bareHeaders));\n\n\t\tfor (const header of forwardHeaders) {\n\t\t\theaders.append(\"x-bare-forward-headers\", header);\n\t\t}\n\n\t\tfor (const header of passHeaders) {\n\t\t\theaders.append(\"x-bare-pass-headers\", header);\n\t\t}\n\n\t\tfor (const status of passStatus) {\n\t\t\theaders.append(\"x-bare-pass-status\", status.toString());\n\t\t}\n\n\t\tsplitHeaders(headers);\n\n\t\treturn headers;\n\t}\n}\n"],"names":[],"mappings":";;;;;;CAAA;CACA;CAEA;CAEO,MAAM,KAAK,GAAG,UAAU,CAAC,KAAK,CAAA;CAC9B,MAAM,SAAS,GAAG,UAAU,CAAC,SAAS,CAAA;CAKtC,MAAM,eAAe,GAAG;CAC9B,IAAA,SAAS,EAAE;CACV,QAAA,IAAI,EAAE,SAAS,CAAC,SAAS,CAAC,IAAI;CAC9B,KAAA;KACD,MAAM,EAAE,SAAS,CAAC,MAAM;KACxB,OAAO,EAAE,SAAS,CAAC,OAAO;KAC1B,UAAU,EAAE,SAAS,CAAC,UAAU;KAChC,IAAI,EAAE,SAAS,CAAC,IAAI;EACpB;;CCDK,MAAO,SAAU,SAAQ,KAAK,CAAA;CACnC,IAAA,MAAM,CAAS;CACf,IAAA,IAAI,CAAgB;KACpB,WAAY,CAAA,MAAc,EAAE,IAAmB,EAAA;SAC9C,KAAK,CAAC,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,IAAI,CAAC,CAAC;CACjC,QAAA,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;CACrB,QAAA,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;MACjB;CACD,CAAA;OASqB,MAAM,CAAA;CACjB,IAAA,IAAI,CAAM;CACpB;;;;CAIG;KACH,WAAY,CAAA,OAAe,EAAE,MAAW,EAAA;CACvC,QAAA,IAAI,CAAC,IAAI,GAAG,IAAI,GAAG,CAAC,CAAM,GAAA,EAAA,OAAO,CAAG,CAAA,CAAA,EAAE,MAAM,CAAC,CAAC;MAC9C;CACD;;CC7CD;;;;;;;;;;;;;;;;;CAiBG;CAEH;;;;;;;CAOG;CACH,SAAS,OAAO,CAAC,CAAS,EAAE,CAAS,EAAA;CACpC,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 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // The user likely has overwritten all networking functions after importing bare-client
2
+ // It is our responsibility to make sure components of Bare-Client are using native networking functions
3
+ // These exports are provided to plugins by @rollup/plugin-inject
4
+ const fetch = globalThis.fetch;
5
+ const WebSocket = globalThis.WebSocket;
6
+ const WebSocketFields = {
7
+ prototype: {
8
+ send: WebSocket.prototype.send,
9
+ },
10
+ CLOSED: WebSocket.CLOSED,
11
+ CLOSING: WebSocket.CLOSING,
12
+ CONNECTING: WebSocket.CONNECTING,
13
+ OPEN: WebSocket.OPEN,
14
+ };
15
+
16
+ class BareError extends Error {
17
+ status;
18
+ body;
19
+ constructor(status, body) {
20
+ super(body.message || body.code);
21
+ this.status = status;
22
+ this.body = body;
23
+ }
24
+ }
25
+ class Client {
26
+ base;
27
+ /**
28
+ *
29
+ * @param version Version provided by extension
30
+ * @param server Bare Server URL provided by BareClient
31
+ */
32
+ constructor(version, server) {
33
+ this.base = new URL(`./v${version}/`, server);
34
+ }
35
+ }
36
+
37
+ /*
38
+ * JavaScript MD5
39
+ * Adopted from https://github.com/blueimp/JavaScript-MD5
40
+ *
41
+ * Copyright 2011, Sebastian Tschan
42
+ * https://blueimp.net
43
+ *
44
+ * Licensed under the MIT license:
45
+ * https://opensource.org/licenses/MIT
46
+ *
47
+ * Based on
48
+ * A JavaScript implementation of the RSA Data Security, Inc. MD5 Message
49
+ * Digest Algorithm, as defined in RFC 1321.
50
+ * Version 2.2 Copyright (C) Paul Johnston 1999 - 2009
51
+ * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet
52
+ * Distributed under the BSD License
53
+ * See http://pajhome.org.uk/crypt/md5 for more info.
54
+ */
55
+ /**
56
+ * Add integers, wrapping at 2^32.
57
+ * This uses 16-bit operations internally to work around bugs in interpreters.
58
+ *
59
+ * @param x First integer
60
+ * @param y Second integer
61
+ * @returns Sum
62
+ */
63
+ function safeAdd(x, y) {
64
+ const lsw = (x & 0xffff) + (y & 0xffff);
65
+ const msw = (x >> 16) + (y >> 16) + (lsw >> 16);
66
+ return (msw << 16) | (lsw & 0xffff);
67
+ }
68
+ /**
69
+ * Bitwise rotate a 32-bit number to the left.
70
+ *
71
+ * @param num 32-bit number
72
+ * @param cnt Rotation count
73
+ * @returns Rotated number
74
+ */
75
+ function bitRotateLeft(num, cnt) {
76
+ return (num << cnt) | (num >>> (32 - cnt));
77
+ }
78
+ /**
79
+ * Basic operation the algorithm uses.
80
+ *
81
+ * @param q q
82
+ * @param a a
83
+ * @param b b
84
+ * @param x x
85
+ * @param s s
86
+ * @param t t
87
+ * @returns Result
88
+ */
89
+ function md5cmn(q, a, b, x, s, t) {
90
+ return safeAdd(bitRotateLeft(safeAdd(safeAdd(a, q), safeAdd(x, t)), s), b);
91
+ }
92
+ /**
93
+ * Basic operation the algorithm uses.
94
+ *
95
+ * @param a a
96
+ * @param b b
97
+ * @param c c
98
+ * @param d d
99
+ * @param x x
100
+ * @param s s
101
+ * @param t t
102
+ * @returns Result
103
+ */
104
+ function md5ff(a, b, c, d, x, s, t) {
105
+ return md5cmn((b & c) | (~b & d), a, b, x, s, t);
106
+ }
107
+ /**
108
+ * Basic operation the algorithm uses.
109
+ *
110
+ * @param a a
111
+ * @param b b
112
+ * @param c c
113
+ * @param d d
114
+ * @param x x
115
+ * @param s s
116
+ * @param t t
117
+ * @returns Result
118
+ */
119
+ function md5gg(a, b, c, d, x, s, t) {
120
+ return md5cmn((b & d) | (c & ~d), a, b, x, s, t);
121
+ }
122
+ /**
123
+ * Basic operation the algorithm uses.
124
+ *
125
+ * @param a a
126
+ * @param b b
127
+ * @param c c
128
+ * @param d d
129
+ * @param x x
130
+ * @param s s
131
+ * @param t t
132
+ * @returns Result
133
+ */
134
+ function md5hh(a, b, c, d, x, s, t) {
135
+ return md5cmn(b ^ c ^ d, a, b, x, s, t);
136
+ }
137
+ /**
138
+ * Basic operation the algorithm uses.
139
+ *
140
+ * @param a a
141
+ * @param b b
142
+ * @param c c
143
+ * @param d d
144
+ * @param x x
145
+ * @param s s
146
+ * @param t t
147
+ * @returns Result
148
+ */
149
+ function md5ii(a, b, c, d, x, s, t) {
150
+ return md5cmn(c ^ (b | ~d), a, b, x, s, t);
151
+ }
152
+ /**
153
+ * Calculate the MD5 of an array of little-endian words, and a bit length.
154
+ *
155
+ * @param x Array of little-endian words
156
+ * @param len Bit length
157
+ * @returns MD5 Array
158
+ */
159
+ function binlMD5(x, len) {
160
+ /* append padding */
161
+ x[len >> 5] |= 0x80 << len % 32;
162
+ x[(((len + 64) >>> 9) << 4) + 14] = len;
163
+ let a = 1732584193;
164
+ let b = -271733879;
165
+ let c = -1732584194;
166
+ let d = 271733878;
167
+ for (let i = 0; i < x.length; i += 16) {
168
+ const olda = a;
169
+ const oldb = b;
170
+ const oldc = c;
171
+ const oldd = d;
172
+ a = md5ff(a, b, c, d, x[i], 7, -680876936);
173
+ d = md5ff(d, a, b, c, x[i + 1], 12, -389564586);
174
+ c = md5ff(c, d, a, b, x[i + 2], 17, 606105819);
175
+ b = md5ff(b, c, d, a, x[i + 3], 22, -1044525330);
176
+ a = md5ff(a, b, c, d, x[i + 4], 7, -176418897);
177
+ d = md5ff(d, a, b, c, x[i + 5], 12, 1200080426);
178
+ c = md5ff(c, d, a, b, x[i + 6], 17, -1473231341);
179
+ b = md5ff(b, c, d, a, x[i + 7], 22, -45705983);
180
+ a = md5ff(a, b, c, d, x[i + 8], 7, 1770035416);
181
+ d = md5ff(d, a, b, c, x[i + 9], 12, -1958414417);
182
+ c = md5ff(c, d, a, b, x[i + 10], 17, -42063);
183
+ b = md5ff(b, c, d, a, x[i + 11], 22, -1990404162);
184
+ a = md5ff(a, b, c, d, x[i + 12], 7, 1804603682);
185
+ d = md5ff(d, a, b, c, x[i + 13], 12, -40341101);
186
+ c = md5ff(c, d, a, b, x[i + 14], 17, -1502002290);
187
+ b = md5ff(b, c, d, a, x[i + 15], 22, 1236535329);
188
+ a = md5gg(a, b, c, d, x[i + 1], 5, -165796510);
189
+ d = md5gg(d, a, b, c, x[i + 6], 9, -1069501632);
190
+ c = md5gg(c, d, a, b, x[i + 11], 14, 643717713);
191
+ b = md5gg(b, c, d, a, x[i], 20, -373897302);
192
+ a = md5gg(a, b, c, d, x[i + 5], 5, -701558691);
193
+ d = md5gg(d, a, b, c, x[i + 10], 9, 38016083);
194
+ c = md5gg(c, d, a, b, x[i + 15], 14, -660478335);
195
+ b = md5gg(b, c, d, a, x[i + 4], 20, -405537848);
196
+ a = md5gg(a, b, c, d, x[i + 9], 5, 568446438);
197
+ d = md5gg(d, a, b, c, x[i + 14], 9, -1019803690);
198
+ c = md5gg(c, d, a, b, x[i + 3], 14, -187363961);
199
+ b = md5gg(b, c, d, a, x[i + 8], 20, 1163531501);
200
+ a = md5gg(a, b, c, d, x[i + 13], 5, -1444681467);
201
+ d = md5gg(d, a, b, c, x[i + 2], 9, -51403784);
202
+ c = md5gg(c, d, a, b, x[i + 7], 14, 1735328473);
203
+ b = md5gg(b, c, d, a, x[i + 12], 20, -1926607734);
204
+ a = md5hh(a, b, c, d, x[i + 5], 4, -378558);
205
+ d = md5hh(d, a, b, c, x[i + 8], 11, -2022574463);
206
+ c = md5hh(c, d, a, b, x[i + 11], 16, 1839030562);
207
+ b = md5hh(b, c, d, a, x[i + 14], 23, -35309556);
208
+ a = md5hh(a, b, c, d, x[i + 1], 4, -1530992060);
209
+ d = md5hh(d, a, b, c, x[i + 4], 11, 1272893353);
210
+ c = md5hh(c, d, a, b, x[i + 7], 16, -155497632);
211
+ b = md5hh(b, c, d, a, x[i + 10], 23, -1094730640);
212
+ a = md5hh(a, b, c, d, x[i + 13], 4, 681279174);
213
+ d = md5hh(d, a, b, c, x[i], 11, -358537222);
214
+ c = md5hh(c, d, a, b, x[i + 3], 16, -722521979);
215
+ b = md5hh(b, c, d, a, x[i + 6], 23, 76029189);
216
+ a = md5hh(a, b, c, d, x[i + 9], 4, -640364487);
217
+ d = md5hh(d, a, b, c, x[i + 12], 11, -421815835);
218
+ c = md5hh(c, d, a, b, x[i + 15], 16, 530742520);
219
+ b = md5hh(b, c, d, a, x[i + 2], 23, -995338651);
220
+ a = md5ii(a, b, c, d, x[i], 6, -198630844);
221
+ d = md5ii(d, a, b, c, x[i + 7], 10, 1126891415);
222
+ c = md5ii(c, d, a, b, x[i + 14], 15, -1416354905);
223
+ b = md5ii(b, c, d, a, x[i + 5], 21, -57434055);
224
+ a = md5ii(a, b, c, d, x[i + 12], 6, 1700485571);
225
+ d = md5ii(d, a, b, c, x[i + 3], 10, -1894986606);
226
+ c = md5ii(c, d, a, b, x[i + 10], 15, -1051523);
227
+ b = md5ii(b, c, d, a, x[i + 1], 21, -2054922799);
228
+ a = md5ii(a, b, c, d, x[i + 8], 6, 1873313359);
229
+ d = md5ii(d, a, b, c, x[i + 15], 10, -30611744);
230
+ c = md5ii(c, d, a, b, x[i + 6], 15, -1560198380);
231
+ b = md5ii(b, c, d, a, x[i + 13], 21, 1309151649);
232
+ a = md5ii(a, b, c, d, x[i + 4], 6, -145523070);
233
+ d = md5ii(d, a, b, c, x[i + 11], 10, -1120210379);
234
+ c = md5ii(c, d, a, b, x[i + 2], 15, 718787259);
235
+ b = md5ii(b, c, d, a, x[i + 9], 21, -343485551);
236
+ a = safeAdd(a, olda);
237
+ b = safeAdd(b, oldb);
238
+ c = safeAdd(c, oldc);
239
+ d = safeAdd(d, oldd);
240
+ }
241
+ return [a, b, c, d];
242
+ }
243
+ /**
244
+ * Convert an array of little-endian words to a string
245
+ *
246
+ * @param input MD5 Array
247
+ * @returns MD5 string
248
+ */
249
+ function binl2rstr(input) {
250
+ let output = "";
251
+ const length32 = input.length * 32;
252
+ for (let i = 0; i < length32; i += 8) {
253
+ output += String.fromCharCode((input[i >> 5] >>> i % 32) & 0xff);
254
+ }
255
+ return output;
256
+ }
257
+ /**
258
+ * Convert a raw string to an array of little-endian words
259
+ * Characters >255 have their high-byte silently ignored.
260
+ *
261
+ * @param input Raw input string
262
+ * @returns Array of little-endian words
263
+ */
264
+ function rstr2binl(input) {
265
+ const output = [];
266
+ const outputLen = input.length >> 2;
267
+ for (let i = 0; i < outputLen; i += 1) {
268
+ output[i] = 0;
269
+ }
270
+ const length8 = input.length * 8;
271
+ for (let i = 0; i < length8; i += 8) {
272
+ output[i >> 5] |= (input.charCodeAt(i / 8) & 0xff) << i % 32;
273
+ }
274
+ return output;
275
+ }
276
+ /**
277
+ * Calculate the MD5 of a raw string
278
+ *
279
+ * @param s Input string
280
+ * @returns Raw MD5 string
281
+ */
282
+ function rstrMD5(s) {
283
+ return binl2rstr(binlMD5(rstr2binl(s), s.length * 8));
284
+ }
285
+ /**
286
+ * Convert a raw string to a hex string
287
+ *
288
+ * @param input Raw input string
289
+ * @returns Hex encoded string
290
+ */
291
+ function rstr2hex(input) {
292
+ const hexTab = "0123456789abcdef";
293
+ let output = "";
294
+ for (let i = 0; i < input.length; i += 1) {
295
+ const x = input.charCodeAt(i);
296
+ output += hexTab.charAt((x >>> 4) & 0x0f) + hexTab.charAt(x & 0x0f);
297
+ }
298
+ return output;
299
+ }
300
+ /**
301
+ * Encode a string as UTF-8
302
+ *
303
+ * @param input Input string
304
+ * @returns UTF8 string
305
+ */
306
+ function str2rstrUTF8(input) {
307
+ return unescape(encodeURIComponent(input));
308
+ }
309
+ /**
310
+ * Encodes input string as raw MD5 string
311
+ *
312
+ * @param s Input string
313
+ * @returns Raw MD5 string
314
+ */
315
+ function rawMD5(s) {
316
+ return rstrMD5(str2rstrUTF8(s));
317
+ }
318
+ /**
319
+ * Encodes input string as Hex encoded string
320
+ *
321
+ * @param s Input string
322
+ * @returns Hex encoded string
323
+ */
324
+ function hexMD5(s) {
325
+ return rstr2hex(rawMD5(s));
326
+ }
327
+ /**
328
+ * Calculates MD5 value for a given string.
329
+ * If a key is provided, calculates the HMAC-MD5 value.
330
+ * Returns a Hex encoded string unless the raw argument is given.
331
+ *
332
+ * @param string Input string
333
+ * @param key HMAC key
334
+ * @param raw Raw output switch
335
+ * @returns MD5 output
336
+ */
337
+ function md5(string, key, raw) {
338
+ {
339
+ {
340
+ return hexMD5(string);
341
+ }
342
+ }
343
+ }
344
+
345
+ const MAX_HEADER_VALUE = 3072;
346
+ /**
347
+ *
348
+ * Splits headers according to spec
349
+ * @param headers
350
+ * @returns Split headers
351
+ */
352
+ function splitHeaders(headers) {
353
+ const output = new Headers(headers);
354
+ if (headers.has("x-bare-headers")) {
355
+ const value = headers.get("x-bare-headers");
356
+ if (value.length > MAX_HEADER_VALUE) {
357
+ output.delete("x-bare-headers");
358
+ let split = 0;
359
+ for (let i = 0; i < value.length; i += MAX_HEADER_VALUE) {
360
+ const part = value.slice(i, i + MAX_HEADER_VALUE);
361
+ const id = split++;
362
+ output.set(`x-bare-headers-${id}`, `;${part}`);
363
+ }
364
+ }
365
+ }
366
+ return output;
367
+ }
368
+ /**
369
+ * Joins headers according to spec
370
+ * @param headers
371
+ * @returns Joined headers
372
+ */
373
+ function joinHeaders(headers) {
374
+ const output = new Headers(headers);
375
+ const prefix = "x-bare-headers";
376
+ if (headers.has(`${prefix}-0`)) {
377
+ const join = [];
378
+ for (const [header, value] of headers) {
379
+ if (!header.startsWith(prefix)) {
380
+ continue;
381
+ }
382
+ if (!value.startsWith(";")) {
383
+ throw new BareError(400, {
384
+ code: "INVALID_BARE_HEADER",
385
+ id: `request.headers.${header}`,
386
+ message: "Value didn't begin with semi-colon.",
387
+ });
388
+ }
389
+ const id = parseInt(header.slice(prefix.length + 1));
390
+ join[id] = value.slice(1);
391
+ output.delete(header);
392
+ }
393
+ output.set(prefix, join.join(""));
394
+ }
395
+ return output;
396
+ }
397
+
398
+ class ClientV3 extends Client {
399
+ ws;
400
+ http;
401
+ meta() {
402
+ return {};
403
+ }
404
+ constructor(server) {
405
+ super(3, server);
406
+ this.ws = new URL(this.base);
407
+ this.http = new URL(this.base);
408
+ if (this.ws.protocol === "https:") {
409
+ this.ws.protocol = "wss:";
410
+ }
411
+ else {
412
+ this.ws.protocol = "ws:";
413
+ }
414
+ }
415
+ ready = true;
416
+ async init() {
417
+ this.ready = true;
418
+ }
419
+ connect(url, protocols, requestHeaders, onopen, onmessage, onclose, onerror) {
420
+ const ws = new WebSocket(this.ws);
421
+ requestHeaders["Host"] = url.host;
422
+ requestHeaders["Upgrade"] = "websocket";
423
+ requestHeaders["Connection"] = "Upgrade";
424
+ const cleanup = () => {
425
+ ws.removeEventListener("close", closeListener);
426
+ ws.removeEventListener("message", messageListener);
427
+ };
428
+ const messageListener = (event) => {
429
+ cleanup();
430
+ // ws.binaryType is irrelevant when sending text
431
+ if (typeof event.data !== "string")
432
+ throw new TypeError("the first websocket message was not a text frame");
433
+ const message = JSON.parse(event.data);
434
+ // finally
435
+ if (message.type !== "open")
436
+ throw new TypeError("message was not of open type");
437
+ // onMeta({
438
+ // protocol: message.protocol,
439
+ // setCookies: message.setCookies,
440
+ // });
441
+ onopen(message.protocol);
442
+ ws.addEventListener("message", (ev) => {
443
+ onmessage(ev.data);
444
+ });
445
+ ws.addEventListener("close", (ev) => {
446
+ onclose(ev.code, ev.reason);
447
+ });
448
+ };
449
+ const closeListener = (event) => {
450
+ onclose(event.code, event.reason);
451
+ cleanup();
452
+ };
453
+ ws.addEventListener("message", messageListener);
454
+ ws.addEventListener("close", closeListener);
455
+ // CONNECTED TO THE BARE SERVER, NOT THE REMOTE
456
+ ws.addEventListener("open", (event) => {
457
+ WebSocketFields.prototype.send.call(ws, JSON.stringify({
458
+ type: "connect",
459
+ remote: url.toString(),
460
+ protocols,
461
+ headers: requestHeaders,
462
+ forwardHeaders: [],
463
+ }));
464
+ },
465
+ // only block the open event once
466
+ { once: true });
467
+ return [ws.send.bind(ws), ws.close.bind(ws)];
468
+ }
469
+ async request(remote, method, body, headers, signal) {
470
+ const options = {
471
+ credentials: "omit",
472
+ method: method,
473
+ signal,
474
+ //@ts-expect-error this exists but isnt typed ig
475
+ duplex: "half"
476
+ };
477
+ if (body !== undefined) {
478
+ options.body = body;
479
+ }
480
+ if ("host" in headers)
481
+ headers.host = remote.host;
482
+ else
483
+ headers.Host = remote.host;
484
+ options.headers = this.createBareHeaders(remote, headers);
485
+ const response = await fetch(this.http + "?cache=" + md5(remote.toString()), options);
486
+ const readResponse = await this.readBareResponse(response);
487
+ return {
488
+ body: response.body,
489
+ headers: readResponse.headers,
490
+ status: readResponse.status,
491
+ statusText: readResponse.statusText,
492
+ };
493
+ }
494
+ async readBareResponse(response) {
495
+ if (!response.ok) {
496
+ throw new BareError(response.status, await response.json());
497
+ }
498
+ const responseHeaders = joinHeaders(response.headers);
499
+ const result = {};
500
+ const xBareStatus = responseHeaders.get("x-bare-status");
501
+ if (xBareStatus !== null)
502
+ result.status = parseInt(xBareStatus);
503
+ const xBareStatusText = responseHeaders.get("x-bare-status-text");
504
+ if (xBareStatusText !== null)
505
+ result.statusText = xBareStatusText;
506
+ const xBareHeaders = responseHeaders.get("x-bare-headers");
507
+ if (xBareHeaders !== null)
508
+ result.headers = JSON.parse(xBareHeaders);
509
+ return result;
510
+ }
511
+ createBareHeaders(remote, bareHeaders, forwardHeaders = [], passHeaders = [], passStatus = []) {
512
+ const headers = new Headers();
513
+ headers.set("x-bare-url", remote.toString());
514
+ headers.set("x-bare-headers", JSON.stringify(bareHeaders));
515
+ for (const header of forwardHeaders) {
516
+ headers.append("x-bare-forward-headers", header);
517
+ }
518
+ for (const header of passHeaders) {
519
+ headers.append("x-bare-pass-headers", header);
520
+ }
521
+ for (const status of passStatus) {
522
+ headers.append("x-bare-pass-status", status.toString());
523
+ }
524
+ splitHeaders(headers);
525
+ return headers;
526
+ }
527
+ }
528
+
529
+ export { ClientV3 as BareClient, ClientV3 as default };
530
+ //# sourceMappingURL=index.mjs.map
dist/baremod/index.mjs.map ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":3,"file":"index.mjs","sources":["../src/snapshot.ts","../src/Client.ts","../src/md5.ts","../src/splitHeaderUtil.ts","../src/V3.ts"],"sourcesContent":["// The user likely has overwritten all networking functions after importing bare-client\n// It is our responsibility to make sure components of Bare-Client are using native networking functions\n\n// These exports are provided to plugins by @rollup/plugin-inject\n\nexport const fetch = globalThis.fetch;\nexport const WebSocket = globalThis.WebSocket;\nexport const Request = globalThis.Request;\nexport const Response = globalThis.Response;\nexport const XMLHttpRequest = globalThis.XMLHttpRequest;\n\nexport const WebSocketFields = {\n\tprototype: {\n\t\tsend: WebSocket.prototype.send,\n\t},\n\tCLOSED: WebSocket.CLOSED,\n\tCLOSING: WebSocket.CLOSING,\n\tCONNECTING: WebSocket.CONNECTING,\n\tOPEN: WebSocket.OPEN,\n};\n","import type {\n\tBareCache,\n\tBareHeaders,\n\tBareMethod,\n\tBareResponse,\n\tBareWebSocketMeta,\n} from \"./BareTypes.js\";\n\nexport const statusEmpty = [101, 204, 205, 304];\nexport const statusRedirect = [301, 302, 303, 307, 308];\n\nexport interface BareErrorBody {\n\tcode: string;\n\tid: string;\n\tmessage?: string;\n\tstack?: string;\n}\n\nexport class BareError extends Error {\n\tstatus: number;\n\tbody: BareErrorBody;\n\tconstructor(status: number, body: BareErrorBody) {\n\t\tsuper(body.message || body.code);\n\t\tthis.status = status;\n\t\tthis.body = body;\n\t}\n}\n\nexport type MetaCallback = (meta: BareWebSocketMeta) => void;\nexport type ReadyStateCallback = (readyState: number) => void;\nexport type WebSocketImpl = {\n\tnew(...args: ConstructorParameters<typeof WebSocket>): WebSocket;\n};\nexport type GetRequestHeadersCallback = () => Promise<BareHeaders>;\n\nexport abstract class Client {\n\tprotected base: URL;\n\t/**\n\t *\n\t * @param version Version provided by extension\n\t * @param server Bare Server URL provided by BareClient\n\t */\n\tconstructor(version: number, server: URL) {\n\t\tthis.base = new URL(`./v${version}/`, server);\n\t}\n}\n","/*\n * JavaScript MD5\n * Adopted from https://github.com/blueimp/JavaScript-MD5\n *\n * Copyright 2011, Sebastian Tschan\n * https://blueimp.net\n *\n * Licensed under the MIT license:\n * https://opensource.org/licenses/MIT\n *\n * Based on\n * A JavaScript implementation of the RSA Data Security, Inc. MD5 Message\n * Digest Algorithm, as defined in RFC 1321.\n * Version 2.2 Copyright (C) Paul Johnston 1999 - 2009\n * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet\n * Distributed under the BSD License\n * See http://pajhome.org.uk/crypt/md5 for more info.\n */\n\n/**\n * Add integers, wrapping at 2^32.\n * This uses 16-bit operations internally to work around bugs in interpreters.\n *\n * @param x First integer\n * @param y Second integer\n * @returns Sum\n */\nfunction safeAdd(x: number, y: number): number {\n\tconst lsw = (x & 0xffff) + (y & 0xffff);\n\tconst msw = (x >> 16) + (y >> 16) + (lsw >> 16);\n\t\nreturn (msw << 16) | (lsw & 0xffff);\n}\n\n/**\n * Bitwise rotate a 32-bit number to the left.\n *\n * @param num 32-bit number\n * @param cnt Rotation count\n * @returns Rotated number\n */\nfunction bitRotateLeft(num: number, cnt: number): number {\n\treturn (num << cnt) | (num >>> (32 - cnt));\n}\n\n/**\n * Basic operation the algorithm uses.\n *\n * @param q q\n * @param a a\n * @param b b\n * @param x x\n * @param s s\n * @param t t\n * @returns Result\n */\nfunction md5cmn(\n\tq: number,\n\ta: number,\n\tb: number,\n\tx: number,\n\ts: number,\n\tt: number\n): number {\n\treturn safeAdd(bitRotateLeft(safeAdd(safeAdd(a, q), safeAdd(x, t)), s), b);\n}\n/**\n * Basic operation the algorithm uses.\n *\n * @param a a\n * @param b b\n * @param c c\n * @param d d\n * @param x x\n * @param s s\n * @param t t\n * @returns Result\n */\nfunction md5ff(\n\ta: number,\n\tb: number,\n\tc: number,\n\td: number,\n\tx: number,\n\ts: number,\n\tt: number\n): number {\n\treturn md5cmn((b & c) | (~b & d), a, b, x, s, t);\n}\n/**\n * Basic operation the algorithm uses.\n *\n * @param a a\n * @param b b\n * @param c c\n * @param d d\n * @param x x\n * @param s s\n * @param t t\n * @returns Result\n */\nfunction md5gg(\n\ta: number,\n\tb: number,\n\tc: number,\n\td: number,\n\tx: number,\n\ts: number,\n\tt: number\n): number {\n\treturn md5cmn((b & d) | (c & ~d), a, b, x, s, t);\n}\n/**\n * Basic operation the algorithm uses.\n *\n * @param a a\n * @param b b\n * @param c c\n * @param d d\n * @param x x\n * @param s s\n * @param t t\n * @returns Result\n */\nfunction md5hh(\n\ta: number,\n\tb: number,\n\tc: number,\n\td: number,\n\tx: number,\n\ts: number,\n\tt: number\n): number {\n\treturn md5cmn(b ^ c ^ d, a, b, x, s, t);\n}\n/**\n * Basic operation the algorithm uses.\n *\n * @param a a\n * @param b b\n * @param c c\n * @param d d\n * @param x x\n * @param s s\n * @param t t\n * @returns Result\n */\nfunction md5ii(\n\ta: number,\n\tb: number,\n\tc: number,\n\td: number,\n\tx: number,\n\ts: number,\n\tt: number\n): number {\n\treturn md5cmn(c ^ (b | ~d), a, b, x, s, t);\n}\n\n/**\n * Calculate the MD5 of an array of little-endian words, and a bit length.\n *\n * @param x Array of little-endian words\n * @param len Bit length\n * @returns MD5 Array\n */\nfunction binlMD5(x: number[], len: number): number[] {\n\t/* append padding */\n\tx[len >> 5] |= 0x80 << len % 32;\n\tx[(((len + 64) >>> 9) << 4) + 14] = len;\n\n\tlet a = 1732584193;\n\tlet b = -271733879;\n\tlet c = -1732584194;\n\tlet d = 271733878;\n\n\tfor (let i = 0; i < x.length; i += 16) {\n\t\tconst olda = a;\n\t\tconst oldb = b;\n\t\tconst oldc = c;\n\t\tconst oldd = d;\n\n\t\ta = md5ff(a, b, c, d, x[i], 7, -680876936);\n\t\td = md5ff(d, a, b, c, x[i + 1], 12, -389564586);\n\t\tc = md5ff(c, d, a, b, x[i + 2], 17, 606105819);\n\t\tb = md5ff(b, c, d, a, x[i + 3], 22, -1044525330);\n\t\ta = md5ff(a, b, c, d, x[i + 4], 7, -176418897);\n\t\td = md5ff(d, a, b, c, x[i + 5], 12, 1200080426);\n\t\tc = md5ff(c, d, a, b, x[i + 6], 17, -1473231341);\n\t\tb = md5ff(b, c, d, a, x[i + 7], 22, -45705983);\n\t\ta = md5ff(a, b, c, d, x[i + 8], 7, 1770035416);\n\t\td = md5ff(d, a, b, c, x[i + 9], 12, -1958414417);\n\t\tc = md5ff(c, d, a, b, x[i + 10], 17, -42063);\n\t\tb = md5ff(b, c, d, a, x[i + 11], 22, -1990404162);\n\t\ta = md5ff(a, b, c, d, x[i + 12], 7, 1804603682);\n\t\td = md5ff(d, a, b, c, x[i + 13], 12, -40341101);\n\t\tc = md5ff(c, d, a, b, x[i + 14], 17, -1502002290);\n\t\tb = md5ff(b, c, d, a, x[i + 15], 22, 1236535329);\n\n\t\ta = md5gg(a, b, c, d, x[i + 1], 5, -165796510);\n\t\td = md5gg(d, a, b, c, x[i + 6], 9, -1069501632);\n\t\tc = md5gg(c, d, a, b, x[i + 11], 14, 643717713);\n\t\tb = md5gg(b, c, d, a, x[i], 20, -373897302);\n\t\ta = md5gg(a, b, c, d, x[i + 5], 5, -701558691);\n\t\td = md5gg(d, a, b, c, x[i + 10], 9, 38016083);\n\t\tc = md5gg(c, d, a, b, x[i + 15], 14, -660478335);\n\t\tb = md5gg(b, c, d, a, x[i + 4], 20, -405537848);\n\t\ta = md5gg(a, b, c, d, x[i + 9], 5, 568446438);\n\t\td = md5gg(d, a, b, c, x[i + 14], 9, -1019803690);\n\t\tc = md5gg(c, d, a, b, x[i + 3], 14, -187363961);\n\t\tb = md5gg(b, c, d, a, x[i + 8], 20, 1163531501);\n\t\ta = md5gg(a, b, c, d, x[i + 13], 5, -1444681467);\n\t\td = md5gg(d, a, b, c, x[i + 2], 9, -51403784);\n\t\tc = md5gg(c, d, a, b, x[i + 7], 14, 1735328473);\n\t\tb = md5gg(b, c, d, a, x[i + 12], 20, -1926607734);\n\n\t\ta = md5hh(a, b, c, d, x[i + 5], 4, -378558);\n\t\td = md5hh(d, a, b, c, x[i + 8], 11, -2022574463);\n\t\tc = md5hh(c, d, a, b, x[i + 11], 16, 1839030562);\n\t\tb = md5hh(b, c, d, a, x[i + 14], 23, -35309556);\n\t\ta = md5hh(a, b, c, d, x[i + 1], 4, -1530992060);\n\t\td = md5hh(d, a, b, c, x[i + 4], 11, 1272893353);\n\t\tc = md5hh(c, d, a, b, x[i + 7], 16, -155497632);\n\t\tb = md5hh(b, c, d, a, x[i + 10], 23, -1094730640);\n\t\ta = md5hh(a, b, c, d, x[i + 13], 4, 681279174);\n\t\td = md5hh(d, a, b, c, x[i], 11, -358537222);\n\t\tc = md5hh(c, d, a, b, x[i + 3], 16, -722521979);\n\t\tb = md5hh(b, c, d, a, x[i + 6], 23, 76029189);\n\t\ta = md5hh(a, b, c, d, x[i + 9], 4, -640364487);\n\t\td = md5hh(d, a, b, c, x[i + 12], 11, -421815835);\n\t\tc = md5hh(c, d, a, b, x[i + 15], 16, 530742520);\n\t\tb = md5hh(b, c, d, a, x[i + 2], 23, -995338651);\n\n\t\ta = md5ii(a, b, c, d, x[i], 6, -198630844);\n\t\td = md5ii(d, a, b, c, x[i + 7], 10, 1126891415);\n\t\tc = md5ii(c, d, a, b, x[i + 14], 15, -1416354905);\n\t\tb = md5ii(b, c, d, a, x[i + 5], 21, -57434055);\n\t\ta = md5ii(a, b, c, d, x[i + 12], 6, 1700485571);\n\t\td = md5ii(d, a, b, c, x[i + 3], 10, -1894986606);\n\t\tc = md5ii(c, d, a, b, x[i + 10], 15, -1051523);\n\t\tb = md5ii(b, c, d, a, x[i + 1], 21, -2054922799);\n\t\ta = md5ii(a, b, c, d, x[i + 8], 6, 1873313359);\n\t\td = md5ii(d, a, b, c, x[i + 15], 10, -30611744);\n\t\tc = md5ii(c, d, a, b, x[i + 6], 15, -1560198380);\n\t\tb = md5ii(b, c, d, a, x[i + 13], 21, 1309151649);\n\t\ta = md5ii(a, b, c, d, x[i + 4], 6, -145523070);\n\t\td = md5ii(d, a, b, c, x[i + 11], 10, -1120210379);\n\t\tc = md5ii(c, d, a, b, x[i + 2], 15, 718787259);\n\t\tb = md5ii(b, c, d, a, x[i + 9], 21, -343485551);\n\n\t\ta = safeAdd(a, olda);\n\t\tb = safeAdd(b, oldb);\n\t\tc = safeAdd(c, oldc);\n\t\td = safeAdd(d, oldd);\n\t}\n\t\nreturn [a, b, c, d];\n}\n\n/**\n * Convert an array of little-endian words to a string\n *\n * @param input MD5 Array\n * @returns MD5 string\n */\nfunction binl2rstr(input: number[]): string {\n\tlet output = \"\";\n\tconst length32 = input.length * 32;\n\tfor (let i = 0; i < length32; i += 8) {\n\t\toutput += String.fromCharCode((input[i >> 5] >>> i % 32) & 0xff);\n\t}\n\t\nreturn output;\n}\n\n/**\n * Convert a raw string to an array of little-endian words\n * Characters >255 have their high-byte silently ignored.\n *\n * @param input Raw input string\n * @returns Array of little-endian words\n */\nfunction rstr2binl(input: string): number[] {\n\tconst output: number[] = [];\n\tconst outputLen = input.length >> 2;\n\tfor (let i = 0; i < outputLen; i += 1) {\n\t\toutput[i] = 0;\n\t}\n\tconst length8 = input.length * 8;\n\tfor (let i = 0; i < length8; i += 8) {\n\t\toutput[i >> 5]! |= (input.charCodeAt(i / 8) & 0xff) << i % 32;\n\t}\n\t\nreturn <number[]>output;\n}\n\n/**\n * Calculate the MD5 of a raw string\n *\n * @param s Input string\n * @returns Raw MD5 string\n */\nfunction rstrMD5(s: string): string {\n\treturn binl2rstr(binlMD5(rstr2binl(s), s.length * 8));\n}\n\n/**\n * Calculates the HMAC-MD5 of a key and some data (raw strings)\n *\n * @param key HMAC key\n * @param data Raw input string\n * @returns Raw MD5 string\n */\nfunction rstrHMACMD5(key: string, data: string): string {\n\tlet bkey = rstr2binl(key);\n\tconst ipad: number[] = [];\n\tconst opad: number[] = [];\n\tif (bkey.length > 16) {\n\t\tbkey = binlMD5(bkey, key.length * 8);\n\t}\n\tfor (let i = 0; i < 16; i += 1) {\n\t\tipad[i] = bkey[i] ^ 0x36363636;\n\t\topad[i] = bkey[i] ^ 0x5c5c5c5c;\n\t}\n\tconst hash = binlMD5(ipad.concat(rstr2binl(data)), 512 + data.length * 8);\n\t\nreturn binl2rstr(binlMD5(opad.concat(hash), 512 + 128));\n}\n\n/**\n * Convert a raw string to a hex string\n *\n * @param input Raw input string\n * @returns Hex encoded string\n */\nfunction rstr2hex(input: string): string {\n\tconst hexTab = \"0123456789abcdef\";\n\tlet output = \"\";\n\tfor (let i = 0; i < input.length; i += 1) {\n\t\tconst x = input.charCodeAt(i);\n\t\toutput += hexTab.charAt((x >>> 4) & 0x0f) + hexTab.charAt(x & 0x0f);\n\t}\n\t\nreturn output;\n}\n\n/**\n * Encode a string as UTF-8\n *\n * @param input Input string\n * @returns UTF8 string\n */\nfunction str2rstrUTF8(input: string): string {\n\treturn unescape(encodeURIComponent(input));\n}\n\n/**\n * Encodes input string as raw MD5 string\n *\n * @param s Input string\n * @returns Raw MD5 string\n */\nfunction rawMD5(s: string): string {\n\treturn rstrMD5(str2rstrUTF8(s));\n}\n/**\n * Encodes input string as Hex encoded string\n *\n * @param s Input string\n * @returns Hex encoded string\n */\nfunction hexMD5(s: string): string {\n\treturn rstr2hex(rawMD5(s));\n}\n/**\n * Calculates the raw HMAC-MD5 for the given key and data\n *\n * @param k HMAC key\n * @param d Input string\n * @returns Raw MD5 string\n */\nfunction rawHMACMD5(k: string, d: string): string {\n\treturn rstrHMACMD5(str2rstrUTF8(k), str2rstrUTF8(d));\n}\n/**\n * Calculates the Hex encoded HMAC-MD5 for the given key and data\n *\n * @param k HMAC key\n * @param d Input string\n * @returns Raw MD5 string\n */\nfunction hexHMACMD5(k: string, d: string): string {\n\treturn rstr2hex(rawHMACMD5(k, d));\n}\n\n/**\n * Calculates MD5 value for a given string.\n * If a key is provided, calculates the HMAC-MD5 value.\n * Returns a Hex encoded string unless the raw argument is given.\n *\n * @param string Input string\n * @param key HMAC key\n * @param raw Raw output switch\n * @returns MD5 output\n */\nexport default function md5(\n\tstring: string,\n\tkey?: string,\n\traw?: boolean\n): string {\n\tif (!key) {\n\t\tif (!raw) {\n\t\t\treturn hexMD5(string);\n\t\t}\n\t\t\nreturn rawMD5(string);\n\t}\n\tif (!raw) {\n\t\treturn hexHMACMD5(key, string);\n\t}\n\t\nreturn rawHMACMD5(key, string);\n}\n","import { BareError } from \"./Client\";\n\nconst MAX_HEADER_VALUE = 3072;\n\n/**\n *\n * Splits headers according to spec\n * @param headers\n * @returns Split headers\n */\nexport function splitHeaders(headers: Headers): Headers {\n\tconst output = new Headers(headers);\n\n\tif (headers.has(\"x-bare-headers\")) {\n\t\tconst value = headers.get(\"x-bare-headers\")!;\n\n\t\tif (value.length > MAX_HEADER_VALUE) {\n\t\t\toutput.delete(\"x-bare-headers\");\n\n\t\t\tlet split = 0;\n\n\t\t\tfor (let i = 0; i < value.length; i += MAX_HEADER_VALUE) {\n\t\t\t\tconst part = value.slice(i, i + MAX_HEADER_VALUE);\n\n\t\t\t\tconst id = split++;\n\t\t\t\toutput.set(`x-bare-headers-${id}`, `;${part}`);\n\t\t\t}\n\t\t}\n\t}\n\n\treturn output;\n}\n\n/**\n * Joins headers according to spec\n * @param headers\n * @returns Joined headers\n */\nexport function joinHeaders(headers: Headers): Headers {\n\tconst output = new Headers(headers);\n\n\tconst prefix = \"x-bare-headers\";\n\n\tif (headers.has(`${prefix}-0`)) {\n\t\tconst join: string[] = [];\n\n\t\tfor (const [header, value] of headers) {\n\t\t\tif (!header.startsWith(prefix)) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif (!value.startsWith(\";\")) {\n\t\t\t\tthrow new BareError(400, {\n\t\t\t\t\tcode: \"INVALID_BARE_HEADER\",\n\t\t\t\t\tid: `request.headers.${header}`,\n\t\t\t\t\tmessage: \"Value didn't begin with semi-colon.\",\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tconst id = parseInt(header.slice(prefix.length + 1));\n\n\t\t\tjoin[id] = value.slice(1);\n\n\t\t\toutput.delete(header);\n\t\t}\n\n\t\toutput.set(prefix, join.join(\"\"));\n\t}\n\n\treturn output;\n}\n","import type {\n\tBareCache,\n\tBareHeaders,\n\tBareMethod,\n\tBareResponse,\n} from \"./BareTypes.js\";\nimport { BareError, Client, statusEmpty } from \"./Client.js\";\nimport type {\n\tReadyStateCallback,\n\tMetaCallback,\n\tGetRequestHeadersCallback,\n} from \"./Client.js\";\nimport type {\n\tBareResponseHeaders,\n\tSocketClientToServer,\n\tSocketServerToClient,\n} from \"./V3Types.js\";\nimport md5 from \"./md5.js\";\nimport { WebSocketFields } from \"./snapshot.js\";\nimport { joinHeaders, splitHeaders } from \"./splitHeaderUtil.js\";\nimport type { BareTransport, TransferrableResponse } from \"@mercuryworkshop/bare-mux\";\n\nexport default class ClientV3 extends Client implements BareTransport {\n\tws: URL;\n\thttp: URL;\n\n\tmeta() {\n\t\treturn {};\n\t}\n\tconstructor(server: URL) {\n\t\tsuper(3, server);\n\n\t\tthis.ws = new URL(this.base);\n\t\tthis.http = new URL(this.base);\n\n\t\tif (this.ws.protocol === \"https:\") {\n\t\t\tthis.ws.protocol = \"wss:\";\n\t\t} else {\n\t\t\tthis.ws.protocol = \"ws:\";\n\t\t}\n\t}\n\tready = true;\n\tasync init() {\n\t\tthis.ready = true;\n\t}\n\tconnect(\n\t\turl: URL,\n\t\tprotocols: string[],\n\t\trequestHeaders: BareHeaders,\n\t\tonopen: (protocol: string) => void,\n\t\tonmessage: (data: Blob | ArrayBuffer | string) => void,\n\t\tonclose: (code: number, reason: string) => void,\n\t\tonerror: (error: string) => void,\n\t): [ (data: Blob | ArrayBuffer | string) => void, (code: number, reason: string) => void ] {\n\t\tconst ws = new WebSocket(this.ws);\n\n\t\trequestHeaders[\"Host\"] = url.host; \n\t\trequestHeaders[\"Upgrade\"] = \"websocket\";\n\t\trequestHeaders[\"Connection\"] = \"Upgrade\";\n\n\t\tconst cleanup = () => {\n\t\t\tws.removeEventListener(\"close\", closeListener);\n\t\t\tws.removeEventListener(\"message\", messageListener);\n\t\t};\n\n\t\tconst messageListener = (event: MessageEvent) => {\n\t\t\tcleanup();\n\n\t\t\t// ws.binaryType is irrelevant when sending text\n\t\t\tif (typeof event.data !== \"string\")\n\t\t\t\tthrow new TypeError(\"the first websocket message was not a text frame\");\n\n\t\t\tconst message = JSON.parse(event.data) as SocketServerToClient;\n\n\t\t\t// finally\n\t\t\tif (message.type !== \"open\")\n\t\t\t\tthrow new TypeError(\"message was not of open type\");\n\n\t\t\t// onMeta({\n\t\t\t// \tprotocol: message.protocol,\n\t\t\t// \tsetCookies: message.setCookies,\n\t\t\t// });\n\n\n\t\t\tonopen(message.protocol);\n\n\t\t\tws.addEventListener(\"message\", (ev) => {\n\t\t\t\tonmessage(ev.data);\n\t\t\t});\n\n\t\t\tws.addEventListener(\"close\", (ev) => {\n\t\t\t\tonclose(ev.code, ev.reason)\n\t\t\t});\n\t\t};\n\n\t\tconst closeListener = (event: CloseEvent) => {\n\t\t\tonclose(event.code, event.reason)\n\t\t\tcleanup();\n\t\t};\n\n\t\tws.addEventListener(\"message\", messageListener);\n\t\tws.addEventListener(\"close\", closeListener);\n\n\t\t// CONNECTED TO THE BARE SERVER, NOT THE REMOTE\n\t\tws.addEventListener(\n\t\t\t\"open\",\n\t\t\t(event) => {\n\t\t\t\tWebSocketFields.prototype.send.call(\n\t\t\t\t\tws,\n\t\t\t\t\tJSON.stringify({\n\t\t\t\t\t\ttype: \"connect\",\n\t\t\t\t\t\tremote: url.toString(),\n\t\t\t\t\t\tprotocols,\n\t\t\t\t\t\theaders: requestHeaders,\n\t\t\t\t\t\tforwardHeaders: [],\n\t\t\t\t\t} as unknown as SocketClientToServer)\n\t\t\t\t)\n\t\t\t},\n\t\t\t// only block the open event once\n\t\t\t{ once: true }\n\t\t);\n\n\n\t\treturn [ ws.send.bind(ws), ws.close.bind(ws) ]\n\t}\n\tasync request(\n\t\tremote: URL,\n\t\tmethod: BareMethod,\n\t\tbody: BodyInit | null,\n\t\theaders: BareHeaders,\n\t\tsignal: AbortSignal | undefined\n\t): Promise<TransferrableResponse> {\n\t\tconst options: RequestInit = {\n\t\t\tcredentials: \"omit\",\n\t\t\tmethod: method,\n\t\t\tsignal,\n\t\t\t//@ts-expect-error this exists but isnt typed ig\n\t\t\tduplex: \"half\"\n\t\t};\n\n\n\t\tif (body !== undefined) {\n\t\t\toptions.body = body;\n\t\t}\n\n\t\tif (\"host\" in headers) headers.host = remote.host;\n\t\telse headers.Host = remote.host;\n\t\toptions.headers = this.createBareHeaders(remote, headers);\n\n\t\tconst response = await fetch(\n\t\t\tthis.http + \"?cache=\" + md5(remote.toString()),\n\t\t\toptions\n\t\t);\n\n\t\tconst readResponse = await this.readBareResponse(response);\n\t\t\n\t\treturn {\n\t\t\tbody: response.body!,\n\t\t\theaders: readResponse.headers,\n\t\t\tstatus: readResponse.status,\n\t\t\tstatusText: readResponse.statusText,\n\t\t};\n\t}\n\n\tprivate async readBareResponse(response: Response) {\n\t\tif (!response.ok) {\n\t\t\tthrow new BareError(response.status, await response.json());\n\t\t}\n\n\t\tconst responseHeaders = joinHeaders(response.headers);\n\n\t\tconst result: Partial<BareResponseHeaders> = {};\n\n\t\tconst xBareStatus = responseHeaders.get(\"x-bare-status\");\n\t\tif (xBareStatus !== null) result.status = parseInt(xBareStatus);\n\n\t\tconst xBareStatusText = responseHeaders.get(\"x-bare-status-text\");\n\t\tif (xBareStatusText !== null) result.statusText = xBareStatusText;\n\n\t\tconst xBareHeaders = responseHeaders.get(\"x-bare-headers\");\n\t\tif (xBareHeaders !== null) result.headers = JSON.parse(xBareHeaders);\n\n\t\treturn result as BareResponseHeaders;\n\t}\n\tcreateBareHeaders(\n\t\tremote: URL,\n\t\tbareHeaders: BareHeaders,\n\t\tforwardHeaders: string[] = [],\n\t\tpassHeaders: string[] = [],\n\t\tpassStatus: number[] = []\n\t) {\n\t\tconst headers = new Headers();\n\n\t\theaders.set(\"x-bare-url\", remote.toString());\n\t\theaders.set(\"x-bare-headers\", JSON.stringify(bareHeaders));\n\n\t\tfor (const header of forwardHeaders) {\n\t\t\theaders.append(\"x-bare-forward-headers\", header);\n\t\t}\n\n\t\tfor (const header of passHeaders) {\n\t\t\theaders.append(\"x-bare-pass-headers\", header);\n\t\t}\n\n\t\tfor (const status of passStatus) {\n\t\t\theaders.append(\"x-bare-pass-status\", status.toString());\n\t\t}\n\n\t\tsplitHeaders(headers);\n\n\t\treturn headers;\n\t}\n}\n"],"names":[],"mappings":"AAAA;AACA;AAEA;AAEO,MAAM,KAAK,GAAG,UAAU,CAAC,KAAK,CAAA;AAC9B,MAAM,SAAS,GAAG,UAAU,CAAC,SAAS,CAAA;AAKtC,MAAM,eAAe,GAAG;AAC9B,IAAA,SAAS,EAAE;AACV,QAAA,IAAI,EAAE,SAAS,CAAC,SAAS,CAAC,IAAI;AAC9B,KAAA;IACD,MAAM,EAAE,SAAS,CAAC,MAAM;IACxB,OAAO,EAAE,SAAS,CAAC,OAAO;IAC1B,UAAU,EAAE,SAAS,CAAC,UAAU;IAChC,IAAI,EAAE,SAAS,CAAC,IAAI;CACpB;;ACDK,MAAO,SAAU,SAAQ,KAAK,CAAA;AACnC,IAAA,MAAM,CAAS;AACf,IAAA,IAAI,CAAgB;IACpB,WAAY,CAAA,MAAc,EAAE,IAAmB,EAAA;QAC9C,KAAK,CAAC,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,IAAI,CAAC,CAAC;AACjC,QAAA,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;AACrB,QAAA,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;KACjB;AACD,CAAA;MASqB,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,WAAwB,GAAA,EAAE,EAC1B,UAAA,GAAuB,EAAE,EAAA;AAEzB,QAAA,MAAM,OAAO,GAAG,IAAI,OAAO,EAAE,CAAA;QAE7B,OAAO,CAAC,GAAG,CAAC,YAAY,EAAE,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAA;AAC5C,QAAA,OAAO,CAAC,GAAG,CAAC,gBAAgB,EAAE,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC,CAAA;AAE1D,QAAA,KAAK,MAAM,MAAM,IAAI,cAAc,EAAE;AACpC,YAAA,OAAO,CAAC,MAAM,CAAC,wBAAwB,EAAE,MAAM,CAAC,CAAA;SACjD;AAEA,QAAA,KAAK,MAAM,MAAM,IAAI,WAAW,EAAE;AACjC,YAAA,OAAO,CAAC,MAAM,CAAC,qBAAqB,EAAE,MAAM,CAAC,CAAA;SAC9C;AAEA,QAAA,KAAK,MAAM,MAAM,IAAI,UAAU,EAAE;YAChC,OAAO,CAAC,MAAM,CAAC,oBAAoB,EAAE,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAA;SACxD;QAEA,YAAY,CAAC,OAAO,CAAC,CAAA;AAErB,QAAA,OAAO,OAAO,CAAA;KACf;AACA;;;;"}
dist/baremod/md5.d.ts ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Calculates MD5 value for a given string.
3
+ * If a key is provided, calculates the HMAC-MD5 value.
4
+ * Returns a Hex encoded string unless the raw argument is given.
5
+ *
6
+ * @param string Input string
7
+ * @param key HMAC key
8
+ * @param raw Raw output switch
9
+ * @returns MD5 output
10
+ */
11
+ export default function md5(string: string, key?: string, raw?: boolean): string;
dist/baremod/remoteUtil.d.ts ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ export interface BareRemote {
2
+ host: string;
3
+ port: number | string;
4
+ path: string;
5
+ protocol: string;
6
+ }
7
+ export declare function remoteToURL(remote: BareRemote): URL;
8
+ export declare function resolvePort(url: URL): number;
9
+ export declare function urlToRemote(url: URL): BareRemote;
dist/baremod/snapshot.d.ts ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ export declare const fetch: typeof globalThis.fetch;
2
+ export declare const WebSocket: {
3
+ new (url: string | URL, protocols?: string | string[]): WebSocket;
4
+ prototype: WebSocket;
5
+ readonly CONNECTING: 0;
6
+ readonly OPEN: 1;
7
+ readonly CLOSING: 2;
8
+ readonly CLOSED: 3;
9
+ };
10
+ export declare const Request: {
11
+ new (input: RequestInfo | URL, init?: RequestInit): Request;
12
+ prototype: Request;
13
+ };
14
+ export declare const Response: {
15
+ new (body?: BodyInit | null, init?: ResponseInit): Response;
16
+ prototype: Response;
17
+ error(): Response;
18
+ json(data: any, init?: ResponseInit): Response;
19
+ redirect(url: string | URL, status?: number): Response;
20
+ };
21
+ export declare const XMLHttpRequest: {
22
+ new (): XMLHttpRequest;
23
+ prototype: XMLHttpRequest;
24
+ readonly UNSENT: 0;
25
+ readonly OPENED: 1;
26
+ readonly HEADERS_RECEIVED: 2;
27
+ readonly LOADING: 3;
28
+ readonly DONE: 4;
29
+ };
30
+ export declare const WebSocketFields: {
31
+ prototype: {
32
+ send: (data: string | ArrayBufferLike | Blob | ArrayBufferView) => void;
33
+ };
34
+ CLOSED: 3;
35
+ CLOSING: 2;
36
+ CONNECTING: 0;
37
+ OPEN: 1;
38
+ };
dist/baremod/splitHeaderUtil.d.ts ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ *
3
+ * Splits headers according to spec
4
+ * @param headers
5
+ * @returns Split headers
6
+ */
7
+ export declare function splitHeaders(headers: Headers): Headers;
8
+ /**
9
+ * Joins headers according to spec
10
+ * @param headers
11
+ * @returns Joined headers
12
+ */
13
+ export declare function joinHeaders(headers: Headers): Headers;
dist/baremod/webSocket.d.ts ADDED
@@ -0,0 +1 @@
 
 
1
+ export declare function validProtocol(protocol: string): boolean;
dist/baremux/baretypes.d.ts ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ export type BareHeaders = Record<string, string | string[]>;
2
+ export type BareMeta = {};
3
+ export type TransferrableResponse = {
4
+ body: ReadableStream | ArrayBuffer | Blob | string;
5
+ headers: BareHeaders;
6
+ status: number;
7
+ statusText: string;
8
+ };
9
+ export interface BareTransport {
10
+ init: () => Promise<void>;
11
+ ready: boolean;
12
+ connect: (url: URL, protocols: string[], requestHeaders: BareHeaders, onopen: (protocol: string) => void, onmessage: (data: Blob | ArrayBuffer | string) => void, onclose: (code: number, reason: string) => void, onerror: (error: string) => void) => [(data: Blob | ArrayBuffer | string) => void, (code: number, reason: string) => void];
13
+ request: (remote: URL, method: string, body: BodyInit | null, headers: BareHeaders, signal: AbortSignal | undefined) => Promise<TransferrableResponse>;
14
+ meta: () => BareMeta;
15
+ }
16
+ export interface BareWebSocketMeta {
17
+ protocol: string;
18
+ setCookies: string[];
19
+ }
20
+ export type BareHTTPProtocol = 'blob:' | 'http:' | 'https:' | string;
21
+ export type BareWSProtocol = 'ws:' | 'wss:' | string;
22
+ export declare const maxRedirects = 20;
dist/baremux/client.d.ts ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { BareHeaders, BareTransport, TransferrableResponse } from './baretypes';
2
+ import { WorkerConnection } from './connection';
3
+ import { BareWebSocket } from './websocket';
4
+ export declare function validProtocol(protocol: string): boolean;
5
+ /**
6
+ * A Response with additional properties.
7
+ */
8
+ export interface BareResponse extends Response {
9
+ rawResponse: TransferrableResponse;
10
+ rawHeaders: BareHeaders;
11
+ }
12
+ /**
13
+ * A BareResponse with additional properties.
14
+ */
15
+ export interface BareResponseFetch extends BareResponse {
16
+ finalURL: string;
17
+ }
18
+ export declare class BareMuxConnection {
19
+ worker: WorkerConnection;
20
+ constructor(worker?: string | Promise<MessagePort> | MessagePort);
21
+ getTransport(): Promise<string>;
22
+ setTransport(path: string, options: any[], transferables?: Transferable[]): Promise<void>;
23
+ setManualTransport(functionBody: string, options: any[], transferables?: Transferable[]): Promise<void>;
24
+ setRemoteTransport(transport: BareTransport, name: string): Promise<void>;
25
+ getInnerPort(): MessagePort | Promise<MessagePort>;
26
+ }
27
+ export declare class BareClient {
28
+ worker: WorkerConnection;
29
+ /**
30
+ * Create a BareClient. Calls to fetch and connect will wait for an implementation to be ready.
31
+ */
32
+ constructor(worker?: string | Promise<MessagePort> | MessagePort);
33
+ createWebSocket(remote: string | URL, protocols?: string | string[] | undefined, __deprecated_donotuse_websocket?: any, requestHeaders?: BareHeaders): BareWebSocket;
34
+ fetch(url: string | URL, init?: RequestInit): Promise<BareResponseFetch>;
35
+ }
dist/baremux/connection.d.ts ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { BareHeaders, TransferrableResponse } from "./baretypes";
2
+ export type WorkerMessage = {
3
+ type: "fetch" | "websocket" | "set" | "get" | "ping";
4
+ fetch?: {
5
+ remote: string;
6
+ method: string;
7
+ headers: BareHeaders;
8
+ body: ReadableStream | ArrayBuffer | undefined;
9
+ };
10
+ websocket?: {
11
+ url: string;
12
+ protocols: string[];
13
+ requestHeaders: BareHeaders;
14
+ channel: MessagePort;
15
+ };
16
+ client?: {
17
+ function: string;
18
+ args: any[];
19
+ };
20
+ };
21
+ export type WorkerRequest = {
22
+ message: WorkerMessage;
23
+ port: MessagePort;
24
+ };
25
+ export type WorkerResponse = {
26
+ type: "fetch" | "websocket" | "set" | "get" | "pong" | "error";
27
+ fetch?: TransferrableResponse;
28
+ name?: string;
29
+ error?: Error;
30
+ };
31
+ export type BroadcastMessage = {
32
+ type: "refreshPort";
33
+ };
34
+ export declare function browserSupportsTransferringStreams(): boolean;
35
+ export declare class WorkerConnection {
36
+ channel: BroadcastChannel;
37
+ port: MessagePort | Promise<MessagePort>;
38
+ workerPath: string;
39
+ constructor(worker?: string | Promise<MessagePort> | MessagePort);
40
+ createChannel(workerPath?: string, inInit?: boolean): void;
41
+ sendMessage(message: WorkerMessage, transferable?: Transferable[]): Promise<WorkerResponse>;
42
+ }
dist/baremux/index.d.ts ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ export * from './baretypes';
2
+ export * from './client';
3
+ export * from './connection';
4
+ export { BareClient as default } from './client';
5
+ export { WebSocketFields } from "./snapshot";
6
+ export { BareWebSocket } from "./websocket";
7
+ export type * from './baretypes';
8
+ export type * from './client';
9
+ export type * from './connection';
10
+ export type * from "./snapshot";
dist/baremux/index.js ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).BareMux={})}(this,function(e){"use strict";const t=globalThis.fetch,s=globalThis.SharedWorker,r=globalThis.localStorage,a=globalThis.navigator.serviceWorker,o=MessagePort.prototype.postMessage,n={prototype:{send:WebSocket.prototype.send},CLOSED:WebSocket.CLOSED,CLOSING:WebSocket.CLOSING,CONNECTING:WebSocket.CONNECTING,OPEN:WebSocket.OPEN};async function c(){const e=(await self.clients.matchAll({type:"window",includeUncontrolled:!0})).map(async e=>{const t=await function(e){let t=new MessageChannel;return new Promise(s=>{e.postMessage({type:"getPort",port:t.port2},[t.port2]),t.port1.onmessage=e=>{s(e.data)}})}(e);return await i(t),t}),t=Promise.race([Promise.any(e),new Promise((e,t)=>setTimeout(t,1e3,new TypeError("timeout")))]);try{return await t}catch(e){if(e instanceof AggregateError)throw new Error("All clients returned an invalid MessagePort.");return await c()}}function i(e){const t=new MessageChannel,s=new Promise((e,s)=>{t.port1.onmessage=t=>{"pong"===t.data.type&&e()},setTimeout(s,1500)});return o.call(e,{message:{type:"ping"},port:t.port2},[t.port2]),s}function l(e,t){const r=new s(e,"bare-mux-worker");return t&&a.addEventListener("message",t=>{if("getPort"===t.data.type&&t.data.port){const r=new s(e,"bare-mux-worker");o.call(t.data.port,r.port,[r.port])}}),r.port}let h=null;function d(){if(null===h){const e=new MessageChannel,t=new ReadableStream;let s;try{o.call(e.port1,t,[t]),s=!0}catch(e){s=!1}return h=s,s}return h}class p{constructor(e){this.channel=new BroadcastChannel("bare-mux"),e instanceof MessagePort||e instanceof Promise?this.port=e:this.createChannel(e,!0)}createChannel(e,t){if(self.clients)this.port=c(),this.channel.onmessage=e=>{"refreshPort"===e.data.type&&(this.port=c())};else if(e&&SharedWorker){if(!e.startsWith("/")&&!e.includes(":"))throw new Error("Invalid URL. Must be absolute or start at the root.");this.port=l(e,t),r["bare-mux-path"]=e}else{if(!SharedWorker)throw new Error("Unable to get a channel to the SharedWorker.");{const e=r["bare-mux-path"];if(!e)throw new Error("Unable to get bare-mux workerPath from localStorage.");this.port=l(e,t)}}}async sendMessage(e,t){this.port instanceof Promise&&(this.port=await this.port);try{await i(this.port)}catch{return this.createChannel(),await this.sendMessage(e,t)}const s=new MessageChannel,r=[s.port2,...t||[]],a=new Promise((e,t)=>{s.port1.onmessage=s=>{const r=s.data;"error"===r.type?t(r.error):e(r)}});return o.call(this.port,{message:e,port:s.port2},r),await a}}class w extends EventTarget{constructor(e,t=[],s,r){super(),this.protocols=t,this.readyState=n.CONNECTING,this.url=e.toString(),this.protocols=t;const a=e=>{this.protocols=e,this.readyState=n.OPEN;const t=new Event("open");this.dispatchEvent(t)},o=async e=>{const t=new MessageEvent("message",{data:e});this.dispatchEvent(t)},c=(e,t)=>{this.readyState=n.CLOSED;const s=new CloseEvent("close",{code:e,reason:t});this.dispatchEvent(s)},i=()=>{this.readyState=n.CLOSED;const e=new Event("error");this.dispatchEvent(e)};this.channel=new MessageChannel,this.channel.port1.onmessage=e=>{"open"===e.data.type?a(e.data.args[0]):"message"===e.data.type?o(e.data.args[0]):"close"===e.data.type?c(e.data.args[0],e.data.args[1]):"error"===e.data.type&&i()},s.sendMessage({type:"websocket",websocket:{url:e.toString(),protocols:t,requestHeaders:r,channel:this.channel.port2}},[this.channel.port2])}send(...e){if(this.readyState===n.CONNECTING)throw new DOMException("Failed to execute 'send' on 'WebSocket': Still in CONNECTING state.");let t=e[0];t.buffer&&(t=t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength)),o.call(this.channel.port1,{type:"data",data:t},t instanceof ArrayBuffer?[t]:[])}close(e,t){o.call(this.channel.port1,{type:"close",closeCode:e,closeReason:t})}}function u(e,t,s){e.postMessage({type:"error",error:t})}function f(e){for(let t=0;t<e.length;t++){const s=e[t];if(!"!#$%&'*+-.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ^_`abcdefghijklmnopqrstuvwxyz|~".includes(s))return!1}return!0}const y=["ws:","wss:"],g=[101,204,205,304],b=[301,302,303,307,308];class m{constructor(e){this.worker=new p(e)}createWebSocket(e,t=[],s,r){try{e=new URL(e)}catch(t){throw new DOMException(`Faiiled to construct 'WebSocket': The URL '${e}' is invalid.`)}if(!y.includes(e.protocol))throw new DOMException(`Failed to construct 'WebSocket': The URL's scheme must be either 'ws' or 'wss'. '${e.protocol}' is not allowed.`);Array.isArray(t)||(t=[t]),t=t.map(String);for(const e of t)if(!f(e))throw new DOMException(`Failed to construct 'WebSocket': The subprotocol '${e}' is invalid.`);r=r||{};return new w(e,t,this.worker,r)}async fetch(e,s){const r=new Request(e,s),a=s?.headers||r.headers,o=a instanceof Headers?Object.fromEntries(a):a,n=r.body;let c=new URL(r.url);if(c.protocol.startsWith("blob:")){const e=await t(c),s=new Response(e.body,e);return s.rawHeaders=Object.fromEntries(e.headers),s.rawResponse={body:e.body,headers:Object.fromEntries(e.headers),status:e.status,statusText:e.statusText},s.finalURL=c.toString(),s}for(let e=0;;e++){let t=(await this.worker.sendMessage({type:"fetch",fetch:{remote:c.toString(),method:r.method,headers:o,body:n||void 0}},n?[n]:[])).fetch,a=new Response(g.includes(t.status)?void 0:t.body,{headers:new Headers(t.headers),status:t.status,statusText:t.statusText});a.rawHeaders=t.headers,a.rawResponse=t,a.finalURL=c.toString();const i=s?.redirect||r.redirect;if(!b.includes(a.status))return a;switch(i){case"follow":{const t=a.headers.get("location");if(20>e&&null!==t){c=new URL(t,c);continue}throw new TypeError("Failed to fetch")}case"error":throw new TypeError("Failed to fetch");case"manual":return a}}}}e.BareClient=m,e.BareMuxConnection=class{constructor(e){this.worker=new p(e)}async getTransport(){return(await this.worker.sendMessage({type:"get"})).name}async setTransport(e,t,s){await this.setManualTransport(`\n\t\t\tconst { default: BareTransport } = await import("${e}");\n\t\t\treturn [BareTransport, "${e}"];\n\t\t`,t,s)}async setManualTransport(e,t,s){if("bare-mux-remote"===e)throw new Error("Use setRemoteTransport.");await this.worker.sendMessage({type:"set",client:{function:e,args:t}},s)}async setRemoteTransport(e,t){const s=new MessageChannel;s.port1.onmessage=async t=>{const s=t.data.port,r=t.data.message;if("fetch"===r.type)try{e.ready||await e.init(),await async function(e,t,s){const r=await s.request(new URL(e.fetch.remote),e.fetch.method,e.fetch.body,e.fetch.headers,null);if(!d()&&r.body instanceof ReadableStream){const e=new Response(r.body);r.body=await e.arrayBuffer()}r.body instanceof ReadableStream||r.body instanceof ArrayBuffer?o.call(t,{type:"fetch",fetch:r},[r.body]):o.call(t,{type:"fetch",fetch:r})}(r,s,e)}catch(e){u(s,e)}else if("websocket"===r.type)try{e.ready||await e.init(),await async function(e,t,s){const[r,a]=s.connect(new URL(e.websocket.url),e.websocket.protocols,e.websocket.requestHeaders,t=>{o.call(e.websocket.channel,{type:"open",args:[t]})},t=>{t instanceof ArrayBuffer?o.call(e.websocket.channel,{type:"message",args:[t]},[t]):o.call(e.websocket.channel,{type:"message",args:[t]})},(t,s)=>{o.call(e.websocket.channel,{type:"close",args:[t,s]})},t=>{o.call(e.websocket.channel,{type:"error",args:[t]})});e.websocket.channel.onmessage=e=>{"data"===e.data.type?r(e.data.data):"close"===e.data.type&&a(e.data.closeCode,e.data.closeReason)},o.call(t,{type:"websocket"})}(r,s,e)}catch(e){u(s,e)}},await this.worker.sendMessage({type:"set",client:{function:"bare-mux-remote",args:[s.port2,t]}},[s.port2])}getInnerPort(){return this.worker.port}},e.BareWebSocket=w,e.WebSocketFields=n,e.WorkerConnection=p,e.browserSupportsTransferringStreams=d,e.default=m,e.maxRedirects=20,e.validProtocol=f,Object.defineProperty(e,"__esModule",{value:!0})});
2
+ //# sourceMappingURL=index.js.map
dist/baremux/index.js.map ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
dist/baremux/index.mjs ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ const e=20,t=globalThis.fetch,s=globalThis.SharedWorker,a=globalThis.localStorage,r=globalThis.navigator.serviceWorker,o=MessagePort.prototype.postMessage,n={prototype:{send:WebSocket.prototype.send},CLOSED:WebSocket.CLOSED,CLOSING:WebSocket.CLOSING,CONNECTING:WebSocket.CONNECTING,OPEN:WebSocket.OPEN};async function c(){const e=(await self.clients.matchAll({type:"window",includeUncontrolled:!0})).map(async e=>{const t=await function(e){let t=new MessageChannel;return new Promise(s=>{e.postMessage({type:"getPort",port:t.port2},[t.port2]),t.port1.onmessage=e=>{s(e.data)}})}(e);return await i(t),t}),t=Promise.race([Promise.any(e),new Promise((e,t)=>setTimeout(t,1e3,new TypeError("timeout")))]);try{return await t}catch(e){if(e instanceof AggregateError)throw new Error("All clients returned an invalid MessagePort.");return await c()}}function i(e){const t=new MessageChannel,s=new Promise((e,s)=>{t.port1.onmessage=t=>{"pong"===t.data.type&&e()},setTimeout(s,1500)});return o.call(e,{message:{type:"ping"},port:t.port2},[t.port2]),s}function l(e,t){const a=new s(e,"bare-mux-worker");return t&&r.addEventListener("message",t=>{if("getPort"===t.data.type&&t.data.port){const a=new s(e,"bare-mux-worker");o.call(t.data.port,a.port,[a.port])}}),a.port}let h=null;function p(){if(null===h){const e=new MessageChannel,t=new ReadableStream;let s;try{o.call(e.port1,t,[t]),s=!0}catch(e){s=!1}return h=s,s}return h}class d{constructor(e){this.channel=new BroadcastChannel("bare-mux"),e instanceof MessagePort||e instanceof Promise?this.port=e:this.createChannel(e,!0)}createChannel(e,t){if(self.clients)this.port=c(),this.channel.onmessage=e=>{"refreshPort"===e.data.type&&(this.port=c())};else if(e&&SharedWorker){if(!e.startsWith("/")&&!e.includes(":"))throw new Error("Invalid URL. Must be absolute or start at the root.");this.port=l(e,t),a["bare-mux-path"]=e}else{if(!SharedWorker)throw new Error("Unable to get a channel to the SharedWorker.");{const e=a["bare-mux-path"];if(!e)throw new Error("Unable to get bare-mux workerPath from localStorage.");this.port=l(e,t)}}}async sendMessage(e,t){this.port instanceof Promise&&(this.port=await this.port);try{await i(this.port)}catch{return this.createChannel(),await this.sendMessage(e,t)}const s=new MessageChannel,a=[s.port2,...t||[]],r=new Promise((e,t)=>{s.port1.onmessage=s=>{const a=s.data;"error"===a.type?t(a.error):e(a)}});return o.call(this.port,{message:e,port:s.port2},a),await r}}class w extends EventTarget{constructor(e,t=[],s,a){super(),this.protocols=t,this.readyState=n.CONNECTING,this.url=e.toString(),this.protocols=t;const r=e=>{this.protocols=e,this.readyState=n.OPEN;const t=new Event("open");this.dispatchEvent(t)},o=async e=>{const t=new MessageEvent("message",{data:e});this.dispatchEvent(t)},c=(e,t)=>{this.readyState=n.CLOSED;const s=new CloseEvent("close",{code:e,reason:t});this.dispatchEvent(s)},i=()=>{this.readyState=n.CLOSED;const e=new Event("error");this.dispatchEvent(e)};this.channel=new MessageChannel,this.channel.port1.onmessage=e=>{"open"===e.data.type?r(e.data.args[0]):"message"===e.data.type?o(e.data.args[0]):"close"===e.data.type?c(e.data.args[0],e.data.args[1]):"error"===e.data.type&&i()},s.sendMessage({type:"websocket",websocket:{url:e.toString(),protocols:t,requestHeaders:a,channel:this.channel.port2}},[this.channel.port2])}send(...e){if(this.readyState===n.CONNECTING)throw new DOMException("Failed to execute 'send' on 'WebSocket': Still in CONNECTING state.");let t=e[0];t.buffer&&(t=t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength)),o.call(this.channel.port1,{type:"data",data:t},t instanceof ArrayBuffer?[t]:[])}close(e,t){o.call(this.channel.port1,{type:"close",closeCode:e,closeReason:t})}}function u(e,t,s){e.postMessage({type:"error",error:t})}function f(e){for(let t=0;t<e.length;t++){const s=e[t];if(!"!#$%&'*+-.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ^_`abcdefghijklmnopqrstuvwxyz|~".includes(s))return!1}return!0}const y=["ws:","wss:"],g=[101,204,205,304],b=[301,302,303,307,308];class m{constructor(e){this.worker=new d(e)}async getTransport(){return(await this.worker.sendMessage({type:"get"})).name}async setTransport(e,t,s){await this.setManualTransport(`\n\t\t\tconst { default: BareTransport } = await import("${e}");\n\t\t\treturn [BareTransport, "${e}"];\n\t\t`,t,s)}async setManualTransport(e,t,s){if("bare-mux-remote"===e)throw new Error("Use setRemoteTransport.");await this.worker.sendMessage({type:"set",client:{function:e,args:t}},s)}async setRemoteTransport(e,t){const s=new MessageChannel;s.port1.onmessage=async t=>{const s=t.data.port,a=t.data.message;if("fetch"===a.type)try{e.ready||await e.init(),await async function(e,t,s){const a=await s.request(new URL(e.fetch.remote),e.fetch.method,e.fetch.body,e.fetch.headers,null);if(!p()&&a.body instanceof ReadableStream){const e=new Response(a.body);a.body=await e.arrayBuffer()}a.body instanceof ReadableStream||a.body instanceof ArrayBuffer?o.call(t,{type:"fetch",fetch:a},[a.body]):o.call(t,{type:"fetch",fetch:a})}(a,s,e)}catch(e){u(s,e)}else if("websocket"===a.type)try{e.ready||await e.init(),await async function(e,t,s){const[a,r]=s.connect(new URL(e.websocket.url),e.websocket.protocols,e.websocket.requestHeaders,t=>{o.call(e.websocket.channel,{type:"open",args:[t]})},t=>{t instanceof ArrayBuffer?o.call(e.websocket.channel,{type:"message",args:[t]},[t]):o.call(e.websocket.channel,{type:"message",args:[t]})},(t,s)=>{o.call(e.websocket.channel,{type:"close",args:[t,s]})},t=>{o.call(e.websocket.channel,{type:"error",args:[t]})});e.websocket.channel.onmessage=e=>{"data"===e.data.type?a(e.data.data):"close"===e.data.type&&r(e.data.closeCode,e.data.closeReason)},o.call(t,{type:"websocket"})}(a,s,e)}catch(e){u(s,e)}},await this.worker.sendMessage({type:"set",client:{function:"bare-mux-remote",args:[s.port2,t]}},[s.port2])}getInnerPort(){return this.worker.port}}class k{constructor(e){this.worker=new d(e)}createWebSocket(e,t=[],s,a){try{e=new URL(e)}catch(t){throw new DOMException(`Faiiled to construct 'WebSocket': The URL '${e}' is invalid.`)}if(!y.includes(e.protocol))throw new DOMException(`Failed to construct 'WebSocket': The URL's scheme must be either 'ws' or 'wss'. '${e.protocol}' is not allowed.`);Array.isArray(t)||(t=[t]),t=t.map(String);for(const e of t)if(!f(e))throw new DOMException(`Failed to construct 'WebSocket': The subprotocol '${e}' is invalid.`);a=a||{};return new w(e,t,this.worker,a)}async fetch(e,s){const a=new Request(e,s),r=s?.headers||a.headers,o=r instanceof Headers?Object.fromEntries(r):r,n=a.body;let c=new URL(a.url);if(c.protocol.startsWith("blob:")){const e=await t(c),s=new Response(e.body,e);return s.rawHeaders=Object.fromEntries(e.headers),s.rawResponse={body:e.body,headers:Object.fromEntries(e.headers),status:e.status,statusText:e.statusText},s.finalURL=c.toString(),s}for(let e=0;;e++){let t=(await this.worker.sendMessage({type:"fetch",fetch:{remote:c.toString(),method:a.method,headers:o,body:n||void 0}},n?[n]:[])).fetch,r=new Response(g.includes(t.status)?void 0:t.body,{headers:new Headers(t.headers),status:t.status,statusText:t.statusText});r.rawHeaders=t.headers,r.rawResponse=t,r.finalURL=c.toString();const i=s?.redirect||a.redirect;if(!b.includes(r.status))return r;switch(i){case"follow":{const t=r.headers.get("location");if(20>e&&null!==t){c=new URL(t,c);continue}throw new TypeError("Failed to fetch")}case"error":throw new TypeError("Failed to fetch");case"manual":return r}}}}export{k as BareClient,m as BareMuxConnection,w as BareWebSocket,n as WebSocketFields,d as WorkerConnection,p as browserSupportsTransferringStreams,k as default,e as maxRedirects,f as validProtocol};
2
+ //# sourceMappingURL=index.mjs.map
dist/baremux/index.mjs.map ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
dist/baremux/snapshot.d.ts ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ export declare const nativeFetch: typeof fetch;
2
+ export declare const nativeWebSocket: {
3
+ new (url: string | URL, protocols?: string | string[]): WebSocket;
4
+ prototype: WebSocket;
5
+ readonly CONNECTING: 0;
6
+ readonly OPEN: 1;
7
+ readonly CLOSING: 2;
8
+ readonly CLOSED: 3;
9
+ };
10
+ export declare const nativeSharedWorker: {
11
+ new (scriptURL: string | URL, options?: string | WorkerOptions): SharedWorker;
12
+ prototype: SharedWorker;
13
+ };
14
+ export declare const nativeLocalStorage: Storage;
15
+ export declare const nativeServiceWorker: ServiceWorkerContainer;
16
+ export declare const nativePostMessage: {
17
+ (message: any, transfer: Transferable[]): void;
18
+ (message: any, options?: StructuredSerializeOptions): void;
19
+ };
20
+ export declare const WebSocketFields: {
21
+ prototype: {
22
+ send: (data: string | ArrayBufferLike | Blob | ArrayBufferView) => void;
23
+ };
24
+ CLOSED: 3;
25
+ CLOSING: 2;
26
+ CONNECTING: 0;
27
+ OPEN: 1;
28
+ };
dist/baremux/websocket.d.ts ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import type { WorkerConnection } from "./connection";
2
+ import { BareHeaders } from "./baretypes";
3
+ export declare class BareWebSocket extends EventTarget {
4
+ protocols: string | string[] | undefined;
5
+ url: string;
6
+ readyState: number;
7
+ channel: MessageChannel;
8
+ constructor(remote: string | URL, protocols: string | string[] | undefined, worker: WorkerConnection, requestHeaders?: BareHeaders);
9
+ send(...args: any[]): void;
10
+ close(code: any, reason: any): void;
11
+ }
dist/baremux/worker.d.ts ADDED
@@ -0,0 +1 @@
 
 
1
+ export {};
dist/baremux/worker.js ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ !function(){"use strict";const e=MessagePort.prototype.postMessage;let t=null;function a(e,t,a){e.postMessage({type:"error",error:t})}async function n(a,n,s){const o=await s.request(new URL(a.fetch.remote),a.fetch.method,a.fetch.body,a.fetch.headers,null);if(!function(){if(null===t){const a=new MessageChannel,n=new ReadableStream;let s;try{e.call(a.port1,n,[n]),s=!0}catch(e){s=!1}return t=s,s}return t}()&&o.body instanceof ReadableStream){const e=new Response(o.body);o.body=await e.arrayBuffer()}o.body instanceof ReadableStream||o.body instanceof ArrayBuffer?e.call(n,{type:"fetch",fetch:o},[o.body]):e.call(n,{type:"fetch",fetch:o})}let s=null,o="";function c(){return new Error("there are no bare clients",{cause:"No BareTransport was set. Try creating a BareMuxConnection and calling `setTransport()` or `setManualTransport()` on it before using BareClient."})}function r(t,a){const n=s;let o=[a];t.fetch?.body&&o.push(t.fetch.body),t.websocket?.channel&&o.push(t.websocket.channel),e.call(n,{message:t,port:a},o)}function l(t){t.onmessage=async t=>{const l=t.data.port,i=t.data.message;if("ping"===i.type)e.call(l,{type:"pong"});else if("set"===i.type)try{const t=async function(){}.constructor;if("bare-mux-remote"===i.client.function)s=i.client.args[0],o=`bare-mux-remote (${i.client.args[1]})`;else try{const e=new t(i.client.function),[a,n]=await e();s=new a(...i.client.args),o=n}catch(e){throw e.cause="The BareTransport provided was invalid. Common causes of this are a default export that is not a class that implements BareTransport if you are using `setTransport()`",e}e.call(l,{type:"set"})}catch(e){a(l,e)}else if("get"===i.type)l.postMessage({type:"get",name:o});else if("fetch"===i.type)try{if(!s)throw c();if(s instanceof MessagePort)return void r(i,l);s.ready||await s.init(),await n(i,l,s)}catch(e){a(l,e)}else if("websocket"===i.type)try{if(!s)throw c();if(s instanceof MessagePort)return void r(i,l);s.ready||await s.init(),await async function(t,a,n){const[s,o]=n.connect(new URL(t.websocket.url),t.websocket.protocols,t.websocket.requestHeaders,a=>{e.call(t.websocket.channel,{type:"open",args:[a]})},a=>{a instanceof ArrayBuffer?e.call(t.websocket.channel,{type:"message",args:[a]},[a]):e.call(t.websocket.channel,{type:"message",args:[a]})},(a,n)=>{e.call(t.websocket.channel,{type:"close",args:[a,n]})},a=>{e.call(t.websocket.channel,{type:"error",args:[a]})});t.websocket.channel.onmessage=e=>{"data"===e.data.type?s(e.data.data):"close"===e.data.type&&o(e.data.closeCode,e.data.closeReason)},e.call(a,{type:"websocket"})}(i,l,s)}catch(e){a(l,e)}}}new BroadcastChannel("bare-mux").postMessage({type:"refreshPort"}),self.onconnect=e=>{l(e.ports[0])}}();
2
+ //# sourceMappingURL=worker.js.map
dist/baremux/worker.js.map ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":3,"file":"worker.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
dist/baremux/workerHandlers.d.ts ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ import { BareTransport } from "./baretypes";
2
+ import { WorkerMessage } from "./connection";
3
+ export declare function sendError(port: MessagePort, err: Error, name: string): void;
4
+ export declare function handleFetch(message: WorkerMessage, port: MessagePort, transport: BareTransport): Promise<void>;
5
+ export declare function handleWebsocket(message: WorkerMessage, port: MessagePort, transport: BareTransport): Promise<void>;
dist/chunks/Apps.D-KJr-8K.js ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["chunks/vendor-modules.CdZshF6A.js","assets/BuigefS6.css"])))=>i.map(i=>d[i]);
2
+ const an=d;(function(v,x){const aj=d,y=v();while(!![]){try{const A=-parseInt(aj(0x214))/0x1*(-parseInt(aj(0x1fb))/0x2)+-parseInt(aj(0x1ff))/0x3*(parseInt(aj(0x23b))/0x4)+parseInt(aj(0x22c))/0x5+parseInt(aj(0x23c))/0x6+-parseInt(aj(0x216))/0x7+-parseInt(aj(0x23a))/0x8*(-parseInt(aj(0x1f3))/0x9)+-parseInt(aj(0x1e7))/0xa;if(A===x)break;else y['push'](y['shift']());}catch(E){y['push'](y['shift']());}}}(c,0xac82a));const b=(function(){let v=!![];return function(x,y){const A=v?function(){const ak=d;if(y){const E=y[ak(0x220)](x,arguments);return y=null,E;}}:function(){};return v=![],A;};}()),a=b(this,function(){const al=d,v={'HkjKm':function(G){return G();},'cJVgu':al(0x1de),'xsBWG':al(0x1ed),'yUapw':al(0x1e6),'Fewhk':function(G,H){return G<H;}},x=function(){let G;try{G=Function('return\x20(function()\x20'+'{}.constructor(\x22return\x20this\x22)(\x20)'+');')();}catch(H){G=window;}return G;},y=v[al(0x20c)](x),A=y['console']=y[al(0x1e9)]||{},E=['log',al(0x237),v['cJVgu'],v[al(0x1fe)],v['yUapw'],al(0x21f),al(0x21b)];for(let G=0x0;v['Fewhk'](G,E[al(0x232)]);G++){const H=b['constructor']['prototype'][al(0x217)](b),I=E[G],J=A[I]||H;H[al(0x21e)]=b[al(0x217)](b),H['toString']=J[al(0x236)]['bind'](J),A[I]=H;}});function c(){const aw=['trace','w-full\x20h-full','default','__proto__','table','apply','desc','addEventListener','sFoyG','join','categorical','useMemo','toLowerCase','disabled','pointerdown','relative\x20flex\x20items-center\x20gap-2.5\x20rounded-[10px]\x20px-3\x20w-[600px]\x20h-11','newest','5473585GIgizA','WuyLf','slice','replace','flex\x20flex-col\x20h-screen\x20overflow-hidden','jsx','length','useEffect','wDbGQ','CxJqR','toString','warn','theme','base','112136lcaXXr','2614480DXhRYg','3399408qwTeCJ','afLdM','SFProText','info','false','then','w-4\x20h-4\x20shrink-0','sort','text-m\x20font-semibold','memo','useState','exception','4384770BQyhRp','paginationBorderColor','console','displayName','dark','flex-1\x20overflow-y-auto','error','itemsPerPage','outlined','w-20\x20h-20\x20rounded-[12px]\x20mb-4\x20overflow-hidden\x20relative','\x20apps','text','36vatlyX','absolute\x20inset-0\x20bg-gray-700\x20animate-pulse','map','jsxs','Apps','flex\x20flex-col\x20items-center\x20pb-7','#fff\x20!important','theme-','677002qJYQCP','UdFEu','Suspense','xsBWG','3WVpncJ','FnAdU','paginationSelectedColor','target','appItemColor','cursor-pointer','LCXgK','appContainer','useCallback','scrollbar-thumb-gray-500','FoaNo','rtsil','localeCompare','HkjKm','lazy','DLycy','totalPages','#ffffff1c','#141d2b','appName','div','3CqReqw','UrtQB','6539099jPKFDd','bind','split','paginationBgColor','current'];c=function(){return aw;};return c();}a();import{b as e,j as f,r as h,d as i,S as k,D as l}from'./vendor-modules.CdZshF6A.js';import{u as n,_ as o,t as p}from'../BRwJe-3z.js';import{N as r}from'./Nav.BP8Isd6k.js';function d(a,b){a=a-0x1dd;const e=c();let f=e[a];return f;}import{s as u}from'./apps.module.BjBTeXNv.js';const T=h['lazy'](()=>o(()=>import('./vendor-modules.CdZshF6A.js').then(v=>v['ag']),__vite__mapDeps([0,1]))),q=h['memo'](({app:x,onClick:y,fallbackMap:A,onImgError:E,itemTheme:G,itemStyles:H})=>{const am=d,I={'wHaoX':'disabled\x20cursor-not-allowed','LCXgK':'img','rtsil':am(0x1df),'Ffryz':am(0x1e3)},[J,K]=h[am(0x1e5)](!0x1);return f['jsxs']('div',{'className':e(H['app'],G[am(0x203)],G[am(0x1fa)+(G[am(0x21a)]||am(0x21d))],x[am(0x228)]?I['wHaoX']:am(0x204)),'onClick':x['disabled']?void 0x0:()=>y(x),'children':[f[am(0x1f6)]('div',{'className':am(0x1f0),'children':[!J&&!A[x['appName']]&&f['jsx']('div',{'className':am(0x1f4)}),A[x['appName']]?f[am(0x231)](l,{'className':am(0x21c)}):f['jsx'](I[am(0x205)],{'src':x['icon'],'draggable':I[am(0x20a)],'loading':am(0x20d),'className':'w-full\x20h-full\x20object-cover','onLoad':()=>K(!0x0),'onError':()=>E(x[am(0x212)])})]}),f['jsx']('p',{'className':I['Ffryz'],'children':x['appName'][am(0x218)]('')[am(0x224)]('​')}),f['jsx']('p',{'className':'text-sm\x20mt-2','children':(x['desc']||'')['split']('')[am(0x224)]('​')})]},x['appName']);}),w=h[an(0x1e4)](()=>{const ao=an,H={'afLdM':function(ae,af,ag){return ae(af,ag);},'ZVMVB':'alphabetical','DLycy':ao(0x225),'wpSii':function(ae,af){return ae>af;},'UdFEu':function(ae,af){return ae(af);},'OAsSx':'/search','CxJqR':function(ae,af,ag){return ae(af,ag);},'WuyLf':ao(0x1e1),'FnAdU':ao(0x1f2),'ZUZry':'#9baec8','sFoyG':ao(0x1dd)},I=i(),{options:J}=n(),[K,Q]=h['useState']([]);h[ao(0x233)](()=>{const ap=ao;let ae=!0x0;return H[ap(0x23d)](o,()=>import('./apps.Ci7z_X_L.js'),[])[ap(0x1e0)](af=>ae&&Q(af[ap(0x21d)]?.['apps']||[])),()=>{ae=!0x1;};},[]);const [R,U]=h['useState'](''),[W,X]=h['useState'](H[ao(0x20e)]),[Y,Z]=h['useState'](0x1),[a0,a1]=h['useState'](!0x1),a2=h['useRef'](null),[a3,a4]=h[ao(0x1e5)]({}),a5=J[ao(0x1ee)]||0x14;h[ao(0x233)](()=>{const aq=ao,ae=af=>!a2[aq(0x21a)]?.['contains'](af[aq(0x202)])&&a1(!0x1);return window[aq(0x222)]('pointerdown',ae),()=>window['removeEventListener'](aq(0x229),ae);},[]);const a6=h['useMemo'](()=>K['map']((ae,af)=>({...ae,'__i':af})),[K]),a7=h[ao(0x226)](()=>{const ar=ao;switch(W){case H['ZVMVB']:return[...a6][ar(0x1e2)]((ae,af)=>ae['appName']['localeCompare'](af[ar(0x212)],void 0x0,{'sensitivity':'base'}));case H[ar(0x20e)]:return[...a6][ar(0x1e2)]((ae,af)=>(ae['desc']||'')['localeCompare'](af[ar(0x221)]||'',void 0x0,{'sensitivity':'base'})||ae['appName'][ar(0x20b)](af[ar(0x212)],void 0x0,{'sensitivity':ar(0x239)}));case ar(0x22b):return[...a6][ar(0x1e2)]((ae,af)=>af['__i']-ae['__i']);default:return a6;}},[a6,W]),a8=h['useMemo'](()=>{const as=ao,ae=R[as(0x227)]()[as(0x22f)](/\s/g,''),af=a7['filter'](ai=>ai[as(0x212)]['toLowerCase']()[as(0x22f)](/\s/g,'')['includes'](ae)),ag=Math['ceil'](af['length']/a5),ah=af[as(0x22e)]((Y-0x1)*a5,Y*a5);return{'filteredApps':af,'paged':ah,'totalPages':ag};},[a7,R,Y,a5]);h['useEffect'](()=>{const at=ao;Y>a8['totalPages']&&H['wpSii'](a8[at(0x20f)],0x0)&&H[at(0x1fc)](Z,0x1);},[Y,a8['totalPages']]);const a9=h['useCallback'](ae=>{ae&&I(H['OAsSx'],{'state':{'url':ae['url']}});},[I]),aa=h['useCallback'](ae=>{const au=ao;U(ae[au(0x202)]['value']),Z(0x1);},[]),ab=h[ao(0x207)](ae=>a4(af=>({...af,[ae]:!0x0})),[]),ac=h['useMemo'](()=>e(p['appsSearchColor'],p['theme-'+(J[ao(0x238)]||ao(0x21d))]),[J[ao(0x238)]]),ad=h[ao(0x226)](()=>'Search\x20'+K[ao(0x232)]+ao(0x1f1),[K['length']]);return f[ao(0x1f6)](ao(0x213),{'className':u[ao(0x206)]+'\x20w-full\x20mx-auto','children':[f[ao(0x231)]('div',{'className':'w-full\x20px-4\x20py-4\x20flex\x20justify-center\x20mt-3','children':f['jsxs'](ao(0x213),{'className':H[ao(0x235)](e,ao(0x22a),ac),'children':[f[ao(0x231)](k,{'className':H[ao(0x22d)]}),f[ao(0x231)]('input',{'type':H[ao(0x200)],'placeholder':ad,'value':R,'onChange':aa,'className':'flex-1\x20bg-transparent\x20outline-none\x20text-sm'})]})}),f[ao(0x231)](ao(0x213),{'className':'flex\x20flex-wrap\x20justify-center\x20pb-2','children':a8['paged'][ao(0x1f5)](ae=>f['jsx'](q,{'app':ae,'onClick':a9,'fallbackMap':a3,'onImgError':ab,'itemTheme':{...p,'current':J[ao(0x238)]||ao(0x21d)},'itemStyles':u},ae['appName']))}),a8['filteredApps'][ao(0x232)]>a5&&f[ao(0x231)]('div',{'className':ao(0x1f8),'children':f[ao(0x231)](h[ao(0x1fd)],{'children':f['jsx'](T,{'count':a8[ao(0x20f)],'page':Y,'onChange':(ae,af)=>Z(af),'shape':'rounded','variant':ao(0x1ef),'sx':{'&\x20.MuiPaginationItem-root':{'color':J['paginationTextColor']||H['ZUZry'],'borderColor':J[ao(0x1e8)]||ao(0x210),'backgroundColor':J[ao(0x219)]||ao(0x211),'fontFamily':H[ao(0x223)]},'&\x20.Mui-selected':{'backgroundColor':(J[ao(0x201)]||'#75b3e8')+'\x20!important','color':ao(0x1f9)}}})})})]});});w[an(0x1ea)]='Apps';const z=()=>{const av=an,v={'UrtQB':function(A){return A();},'FoaNo':function(A,E){return A===E;},'wDbGQ':function(A,E,G){return A(E,G);}},{options:x}=v[av(0x215)](n),y=e('scrollbar\x20scrollbar-thin\x20scrollbar-track-transparent',!x?.['type']||v[av(0x209)](x['type'],av(0x1eb))?'scrollbar-thumb-gray-600':av(0x208));return f['jsxs']('div',{'className':av(0x230),'children':[f[av(0x231)](r,{}),f['jsx']('div',{'className':v[av(0x234)](e,av(0x1ec),y),'children':f['jsx'](w,{})})]});},V=h['memo'](()=>f['jsx'](z,{}));V[an(0x1ea)]=an(0x1f7);export{V as default};
dist/chunks/Apps2.D28fohTr.js ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["chunks/vendor-modules.CdZshF6A.js","assets/BuigefS6.css","chunks/localGmLoader.CRV_4jHG.js"])))=>i.map(i=>d[i]);
2
+ const aD=d;(function(x,z){const ay=d,A=x();while(!![]){try{const B=-parseInt(ay(0x15a))/0x1+-parseInt(ay(0x189))/0x2+parseInt(ay(0x143))/0x3*(-parseInt(ay(0x17d))/0x4)+parseInt(ay(0x18a))/0x5+parseInt(ay(0x148))/0x6*(-parseInt(ay(0x191))/0x7)+parseInt(ay(0x186))/0x8+-parseInt(ay(0x15c))/0x9*(-parseInt(ay(0x167))/0xa);if(B===z)break;else A['push'](A['shift']());}catch(C){A['push'](A['shift']());}}}(c,0x23166));const b=(function(){let x=!![];return function(z,A){const B=x?function(){if(A){const C=A['apply'](z,arguments);return A=null,C;}}:function(){};return x=![],B;};}()),a=b(this,function(){const az=d,x={'qsypD':function(C,D){return C+D;},'OhOAR':az(0x180),'ZRgPY':'table'};let z;try{const C=Function(x['qsypD'](x['qsypD']('return\x20(function()\x20','{}.constructor(\x22return\x20this\x22)(\x20)'),');'));z=C();}catch(D){z=window;}const A=z['console']=z['console']||{},B=['log','warn',x['OhOAR'],'error',az(0x161),x[az(0x166)],az(0x15e)];for(let E=0x0;E<B['length'];E++){const F=b['constructor']['prototype']['bind'](b),G=B[E],I=A[G]||F;F['__proto__']=b['bind'](b),F[az(0x18f)]=I[az(0x18f)][az(0x188)](I),A[G]=F;}});a();import{b as f,j as g,r as h,d as i,S as j,D as l,J as m,K as n,O as o}from'./vendor-modules.CdZshF6A.js';import{u as p,_ as q,t as r}from'../BRwJe-3z.js';import{N as s}from'./Nav.BP8Isd6k.js';import{s as u}from'./apps.module.BjBTeXNv.js';const Y=h['lazy'](()=>q(()=>import('./vendor-modules.CdZshF6A.js').then(x=>x['ag']),__vite__mapDeps([0,1]))),M=h['memo'](({app:x,onClick:z,fallbackMap:A,onImgError:B,itemTheme:C,itemStyles:D})=>{const aA=d,E={'XgxNI':'flex-shrink-0','efiLO':'div','LcJWE':'img','BzLvv':aA(0x151),'EOqRX':aA(0x17c),'LgLpA':aA(0x160),'OOOPc':'currentColor','KwiMP':'Play'},[F,G]=h['useState'](!0x1);return g[aA(0x14a)]('div',{'className':f(E['XgxNI'],D['app'],C['appItemColor'],C['theme-'+(C['current']||'default')],x['disabled']?aA(0x147):'cursor-pointer'),'onClick':x[aA(0x165)]?void 0x0:()=>z(x),'children':[g['jsxs']('div',{'className':'w-20\x20h-20\x20rounded-[12px]\x20mb-4\x20overflow-hidden\x20relative','children':[!F&&!A[x[aA(0x17e)]]&&g[aA(0x14e)](E[aA(0x168)],{'className':'absolute\x20inset-0\x20bg-gray-700\x20animate-pulse'}),A[x['appName']]?g['jsx'](l,{'className':'w-full\x20h-full'}):g['jsx'](E[aA(0x162)],{'src':x[aA(0x16f)],'draggable':aA(0x176),'loading':E[aA(0x14d)],'className':aA(0x150),'onLoad':()=>G(!0x0),'onError':()=>B(x[aA(0x17e)])})]}),g[aA(0x14e)]('p',{'className':E['EOqRX'],'children':x[aA(0x17e)][aA(0x18e)]('')[aA(0x16c)]('​')}),g[aA(0x14a)](E['LgLpA'],{'className':aA(0x197),'children':[g[aA(0x14e)](m,{'size':0x10,'fill':E['OOOPc']}),E['KwiMP']]})]},x[aA(0x17e)]);}),Z=h['memo'](({category:x,games:z,onClick:A,onViewMore:B,fallback:C,onImgError:D,theme:E,styles:F})=>{const aB=d,G={'acYOL':function(P,R){return P===R;},'RRfDu':'smooth','QuAHk':aB(0x177),'dCkCI':'text-xs\x20px-3\x20py-1\x20rounded-full\x20bg-[#ffffff10]\x20hover:bg-[#ffffff18]\x20transition-colors','pTDKt':'Scroll\x20right','LIiMr':aB(0x195)},I=h[aB(0x144)](null),N=P=>{const aC=aB;I['current']&&I['current']['scrollBy']({'left':G[aC(0x14c)](P,aC(0x152))?-0x190:0x190,'behavior':G[aC(0x159)]});};return g[aB(0x14a)]('div',{'className':G['QuAHk'],'children':[g[aB(0x14a)](aB(0x174),{'className':'flex\x20items-center\x20justify-between\x20mb-1','children':[g['jsxs']('div',{'className':'flex\x20items-center\x20gap-3','children':[g[aB(0x14e)]('h2',{'className':aB(0x18b),'children':x}),g['jsx'](aB(0x160),{'onClick':()=>B(x),'className':G['dCkCI'],'children':'View\x20more'})]}),g['jsxs'](aB(0x174),{'className':'flex\x20gap-2','children':[g[aB(0x14e)](aB(0x160),{'onClick':()=>N(aB(0x152)),'className':'p-2\x20rounded-full\x20bg-[#ffffff10]\x20hover:bg-[#ffffff18]\x20transition-colors','aria-label':aB(0x199),'children':g[aB(0x14e)](n,{'size':0x14})}),g[aB(0x14e)](aB(0x160),{'onClick':()=>N('right'),'className':'p-2\x20rounded-full\x20bg-[#ffffff10]\x20hover:bg-[#ffffff18]\x20transition-colors','aria-label':G['pTDKt'],'children':g[aB(0x14e)](o,{'size':0x14})})]})]}),g[aB(0x14e)](aB(0x174),{'ref':I,'className':'flex\x20gap-1\x20overflow-x-auto\x20pb-2\x20-ml-3\x20scrollbar-hide','style':{'scrollbarWidth':G['LIiMr'],'msOverflowStyle':'none'},'children':z[aB(0x169)](P=>g[aB(0x14e)](M,{'app':P,'onClick':A,'fallbackMap':C,'onImgError':D,'itemTheme':E,'itemStyles':F},P[aB(0x17e)]))})]});}),O=h[aD(0x16e)](()=>{const aE=aD,C={'yQayJ':function(ar,as,at){return ar(as,at);},'wQonI':function(ar,as){return ar/as;},'CqgXt':function(ar,as){return ar*as;},'rVSgw':function(ar,as,at){return ar(as,at);},'kwFYi':function(ar,as){return ar(as);},'PmlTB':function(ar,as){return ar(as);},'VTspG':aE(0x174),'SQJxM':aE(0x196),'Sdkgd':function(ar,as){return ar>as;},'wnJAY':'w-full\x20flex\x20justify-center\x20pb-1','gkHWQ':aE(0x158),'cTtXJ':'flex\x20flex-col\x20items-center\x20pb-7','GIxUx':'#9baec8','FKMHp':'#141d2b','SGqCA':'#75b3e8'},D=i(),{options:N}=p(),[a0,a1]=h[aE(0x18c)]({});h['useEffect'](()=>{const aF=aE;let ar=!0x0;return q(()=>import('./apps.Ci7z_X_L.js'),[])['then'](as=>ar&&a1(as[aF(0x19a)]?.[aF(0x163)]||{})),()=>{ar=!0x1;};},[]);const [a2,a3]=h[aE(0x18c)](''),[a4,a5]=h['useState'](0x1),[a6,a7]=h[aE(0x18c)](null),[a8,a9]=h[aE(0x18c)]({}),[aa,ab]=h[aE(0x18c)](0x0),[ac,ad]=h['useState'](!0x1),[ae,af]=h['useState']([]);h['useEffect'](()=>{const ar={'wtpcw':function(as,at){return as(at);}};C['yQayJ'](q,()=>import('./localGmLoader.CRV_4jHG.js'),__vite__mapDeps([2,0,1]))['then'](async as=>{const aG=d,at=new as[(aG(0x19a))]();await at[aG(0x141)]();const au=await at[aG(0x187)]();ab(au['length']),ar[aG(0x146)](af,au);})['catch'](()=>{});},[]);const ag=N['itemsPerPage']||0x14,ah=h['useMemo'](()=>{const aH=aE,ar=[];return Object['values'](a0)[aH(0x198)](as=>{ar['push'](...as);}),ar;},[a0]),ai=h[aE(0x179)](()=>{const aI=aE,ar={'ualrI':aI(0x181)};let as=ah;if(ac){const av=new Set(ae['map'](aw=>aw[aI(0x184)]));as=ah['filter'](aw=>{const aJ=aI,ax=(Array['isArray'](aw['url'])?aw['url'][0x0]:aw['url'])?.['split']('/')['pop']()?.[aJ(0x182)](ar['ualrI'],'');return ax&&av[aJ(0x19b)](ax);});}else a6&&(as=a0[a6]||[]);if(a2){const aw=a2['toLowerCase']()['trim']()[aI(0x182)](/\s/g,'');as=as[aI(0x13f)](ax=>ax[aI(0x17e)][aI(0x194)]()['replace'](/\s/g,'')['includes'](aw));}const at=Math['ceil'](C[aI(0x17f)](as[aI(0x16d)],ag)),au=as[aI(0x145)](C[aI(0x157)](a4-0x1,ag),a4*ag);return{'filteredGames':as,'paged':au,'totalPages':at};},[ah,a0,a6,ac,ae,a2,a4,ag]);h['useEffect'](()=>{const aK=aE;a4>ai[aK(0x17b)]&&ai[aK(0x17b)]>0x0&&a5(0x1);},[a4,ai[aE(0x17b)]]);const aj=h[aE(0x19d)](ar=>{ar&&C['rVSgw'](D,'/docs/r/',{'state':{'app':ar}});},[D]),ak=h['useCallback'](ar=>{const aL=aE;a3(ar[aL(0x173)]['value']),a7(null),C[aL(0x13d)](a5,0x1);},[]),al=h['useCallback'](ar=>{C['kwFYi'](a7,ar),a3(''),a5(0x1);},[]),am=h[aE(0x19d)](()=>{a7(null),ad(!0x1),a3(''),a5(0x1);},[]),an=h['useCallback'](()=>{const aM=aE;C[aM(0x14f)](ad,!0x0),a7(null),a3(''),C[aM(0x13d)](a5,0x1);},[]),ao=h['useCallback'](ar=>a9(as=>({...as,[ar]:!0x0})),[]),ap=h[aE(0x179)](()=>f(r[aE(0x15d)],r['theme-'+(N[aE(0x14b)]||'default')]),[N[aE(0x14b)]]),aq=h[aE(0x179)](()=>'Search\x20'+ah[aE(0x16d)]+'\x20games',[ah['length']]);return g['jsxs'](C['VTspG'],{'className':u['appContainer']+'\x20w-full\x20mx-auto','children':[g[aE(0x14a)](C['VTspG'],{'className':aE(0x190),'children':[(a6||ac)&&g[aE(0x14e)]('button',{'onClick':am,'className':aE(0x15f),'children':aE(0x149)}),g['jsxs'](aE(0x174),{'className':f(C['SQJxM'],ap),'children':[g['jsx'](j,{'className':aE(0x193)}),g[aE(0x14e)](aE(0x175),{'type':aE(0x13b),'placeholder':aq,'value':a2,'onChange':ak,'className':aE(0x155)})]})]}),ac&&g['jsx']('div',{'className':'text-center\x20text-xs\x20opacity-60\x20pb-2','children':'Local\x20games\x20not\x20played\x20for\x203+\x20days\x20are\x20automatically\x20removed'}),!a6&&!ac&&C[aE(0x18d)](aa,0x0)&&g['jsx'](C[aE(0x153)],{'className':C['wnJAY'],'children':g[aE(0x14a)](aE(0x160),{'onClick':an,'className':'cursor-pointer\x20text-xs\x20hover:opacity-80\x20transition-opacity\x20whitespace-nowrap','children':[aE(0x156),aa,')']})}),a2||a6||ac?g[aE(0x14a)](g[aE(0x183)],{'children':[g[aE(0x14e)](aE(0x174),{'className':C['gkHWQ'],'children':ai[aE(0x172)]['map'](ar=>g[aE(0x14e)](M,{'app':ar,'onClick':aj,'fallbackMap':a8,'onImgError':ao,'itemTheme':{...r,'current':N[aE(0x14b)]||'default'},'itemStyles':u},ar[aE(0x17e)]))}),ai['filteredGames']['length']>ag&&g[aE(0x14e)]('div',{'className':C['cTtXJ'],'children':g['jsx'](h[aE(0x15b)],{'children':g[aE(0x14e)](Y,{'count':ai[aE(0x17b)],'page':a4,'onChange':(ar,as)=>a5(as),'shape':'rounded','variant':'outlined','sx':{'&\x20.MuiPaginationItem-root':{'color':N[aE(0x16a)]||C['GIxUx'],'borderColor':N['paginationBorderColor']||'#ffffff1c','backgroundColor':N['paginationBgColor']||C[aE(0x140)],'fontFamily':'SFProText'},'&\x20.Mui-selected':{'backgroundColor':(N[aE(0x17a)]||C[aE(0x19c)])+'\x20!important','color':aE(0x164)}}})})})]}):g['jsx'](aE(0x174),{'className':aE(0x192),'children':Object[aE(0x142)](a0)['map'](([ar,as])=>g[aE(0x14e)](Z,{'category':ar,'games':as,'onClick':aj,'onViewMore':al,'fallback':a8,'onImgError':ao,'theme':{...r,'current':N[aE(0x14b)]||'default'},'styles':u},ar))})]});});O[aD(0x170)]='Games';const ee=()=>{const aN=aD,x={'SNNyU':function(B,C,D){return B(C,D);},'NilxT':'scrollbar\x20scrollbar-thin\x20scrollbar-track-transparent','lPmEN':'scrollbar-thumb-gray-500'},{options:z}=p(),A=x['SNNyU'](f,x[aN(0x185)],!z?.['type']||z[aN(0x13e)]===aN(0x178)?'scrollbar-thumb-gray-600':x[aN(0x171)]);return g['jsxs']('div',{'className':aN(0x13c),'children':[g['jsx'](s,{}),g[aN(0x14e)](aN(0x174),{'className':f(aN(0x154),A),'children':g['jsx'](O,{})})]});},se=h[aD(0x16e)](()=>g[aD(0x14e)](ee,{}));function d(a,b){a=a-0x13b;const e=c();let f=e[a];return f;}function c(){const aO=['View\x20Downloaded\x20Games\x20(','CqgXt','flex\x20flex-wrap\x20justify-center\x20pb-2','RRfDu','95576WYhZyc','Suspense','2332413eUKNRs','appsSearchColor','trace','absolute\x20cursor-pointer\x20left-10\x20text-sm\x20hover:opacity-80\x20transition-opacity\x20whitespace-nowrap','button','exception','LcJWE','games','#fff\x20!important','disabled','ZRgPY','10XTAoaZ','efiLO','map','paginationTextColor','Games','join','length','memo','icon','displayName','lPmEN','paged','target','div','input','false','mb-3\x20max-w-7xl\x20mx-auto\x20px-9','dark','useMemo','paginationSelectedColor','totalPages','text-m\x20font-semibold\x20mb-3\x20flex-grow\x20line-clamp-2','1860pStNhw','appName','wQonI','info','.zip','replace','Fragment','name','NilxT','2258032xyPCmz','getAllGms','bind','444836sLKXgC','1089775tJGDYP','text-2xl\x20font-bold','useState','Sdkgd','split','toString','w-full\x20px-4\x20py-4\x20flex\x20justify-center\x20mt-3\x20relative','75243WNSLAV','space-y-2','w-4\x20h-4\x20shrink-0','toLowerCase','none','relative\x20flex\x20items-center\x20gap-2.5\x20rounded-[10px]\x20px-3\x20w-[600px]\x20h-11','flex\x20items-center\x20gap-1.5\x20px-3\x20py-1.5\x20rounded-lg\x20bg-[#ffffff15]\x20hover:bg-[#ffffff25]\x20transition-colors\x20text-sm\x20font-medium\x20mt-auto\x20self-start','forEach','Scroll\x20left','default','has','SGqCA','useCallback','text','flex\x20flex-col\x20h-screen\x20overflow-hidden','kwFYi','type','filter','FKMHp','cleanupOld','entries','1851LwXeAK','useRef','slice','wtpcw','disabled\x20cursor-not-allowed','6HOibzS','←\x20Back\x20to\x20all','jsxs','theme','acYOL','BzLvv','jsx','PmlTB','w-full\x20h-full\x20object-cover','lazy','left','VTspG','flex-1\x20overflow-y-auto','flex-1\x20bg-transparent\x20outline-none\x20text-sm'];c=function(){return aO;};return c();}se[aD(0x170)]=aD(0x16b);export{se as default};
dist/chunks/Home.BJzwmpo-.js ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["BRwJe-3z.js","chunks/vendor-modules.CdZshF6A.js","assets/BuigefS6.css","assets/BEVGhU8i.css"])))=>i.map(i=>d[i]);
2
+ function g(a,b){a=a-0x6a;const d=c();let e=d[a];return e;}function c(){const R=['cJmRs','span','9814RYnIvY','prototype','13302270UFvtxg','flex\x20gap-2\x20items-center','path','9vfvIbv','w-full\x20fixed\x20bottom-0\x20flex\x20items-end\x20justify-between\x20p-2','2875503kNvVNS','aCoWv','useState','return\x20(function()\x20','__proto__','DjBhR','M13.545\x202.907a13.2\x2013.2\x200\x200\x200-3.257-1.011.05.05\x200\x200\x200-.052.025c-.141.25-.297.577-.406.833a12.2\x2012.2\x200\x200\x200-3.658\x200\x208\x208\x200\x200\x200-.412-.833.05.05\x200\x200\x200-.052-.025c-1.125.194-2.22.534-3.257\x201.011a.04.04\x200\x200\x200-.021.018C.356\x206.024-.213\x209.047.066\x2012.032q.003.022.021.037a13.3\x2013.3\x200\x200\x200\x203.995\x202.02.05.05\x200\x200\x200\x20.056-.019q.463-.63.818-1.329a.05.05\x200\x200\x200-.01-.059l-.018-.011a9\x209\x200\x200\x201-1.248-.595.05.05\x200\x200\x201-.02-.066l.015-.019q.127-.095.248-.195a.05.05\x200\x200\x201\x20.051-.007c2.619\x201.196\x205.454\x201.196\x208.041\x200a.05.05\x200\x200\x201\x20.053.007q.121.1.248.195a.05.05\x200\x200\x201-.004.085\x208\x208\x200\x200\x201-1.249.594.05.05\x200\x200\x200-.03.03.05.05\x200\x200\x200\x20.003.041c.24.465.515.909.817\x201.329a.05.05\x200\x200\x200\x20.056.019\x2013.2\x2013.2\x200\x200\x200\x204.001-2.02.05.05\x200\x200\x200\x20.021-.037c.334-3.451-.559-6.449-2.366-9.106a.03.03\x200\x200\x200-.02-.019m-8.198\x207.307c-.789\x200-1.438-.724-1.438-1.612s.637-1.613\x201.438-1.613c.807\x200\x201.45.73\x201.438\x201.613\x200\x20.888-.637\x201.612-1.438\x201.612m5.316\x200c-.788\x200-1.438-.724-1.438-1.612s.637-1.613\x201.438-1.613c.807\x200\x201.451.73\x201.438\x201.613\x200\x20.888-.631\x201.612-1.438\x201.612','5617997XQLoIC','displayName','124vEuQPd','http://www.w3.org/2000/svg','8qFjjRm','Fragment','hover:-translate-y-0.5\x20duration-200','apply','useCallback','warn','toString','flex\x20gap-1\x20items-center\x20cursor-pointer','https://ko-fi.com/I3I81MF4CH','div','EzRsK','length','text-gray-500','2KhAUig','10069507ceFuFg','jsx','_blank','bind','UVksI','w-4','bVZMY','siteTextColor','bi\x20bi-discord','constructor','Bookmarks','8620332paojZl','Home','jsxs','139735bgJrxq','console'];c=function(){return R;};return c();}const P=g;(function(B,C){const L=g,D=B();while(!![]){try{const E=-parseInt(L(0x78))/0x1+parseInt(L(0x97))/0x2*(-parseInt(L(0x7f))/0x3)+parseInt(L(0x88))/0x4*(parseInt(L(0x74))/0x5)+-parseInt(L(0x71))/0x6+parseInt(L(0x98))/0x7*(parseInt(L(0x8a))/0x8)+parseInt(L(0x7d))/0x9*(parseInt(L(0x7a))/0xa)+-parseInt(L(0x86))/0xb;if(E===C)break;else D['push'](D['shift']());}catch(F){D['push'](D['shift']());}}}(c,0xaf9d9));const b=(function(){let B=!![];return function(C,D){const E=B?function(){const M=g;if(D){const F=D[M(0x8d)](C,arguments);return D=null,F;}}:function(){};return B=![],E;};}()),a=b(this,function(){const O=g,B={'kXuwN':'info'};let C;try{const F=Function(O(0x82)+'{}.constructor(\x22return\x20this\x22)(\x20)'+');');C=F();}catch(G){C=window;}const D=C[O(0x75)]=C['console']||{},E=['log',O(0x8f),B['kXuwN'],'error','exception','table','trace'];for(let H=0x0;H<E[O(0x95)];H++){const I=b[O(0x6f)][O(0x79)][O(0x9b)](b),J=E[H],K=D[J]||I;I[O(0x83)]=b[O(0x9b)](b),I[O(0x90)]=K['toString'][O(0x9b)](K),D[J]=I;}});a();import{j as i,r as l,H as m,b as o,y as q}from'./vendor-modules.CdZshF6A.js';import{N as r}from'./Nav.BP8Isd6k.js';import{u,_ as w,B as y,S as z,Q as A}from'../BRwJe-3z.js';const N=({fill:B})=>i[P(0x99)]('svg',{'xmlns':P(0x89),'width':'16','height':'16','fill':B,'className':P(0x6e),'viewBox':'0\x200\x2016\x2016','children':i['jsx'](P(0x7c),{'d':P(0x85)})}),n=l['memo'](()=>{const Q=P,B={'EzRsK':Q(0x9a),'sQxFv':function(H){return H();},'UVksI':function(H,I){return H!==I;},'ZPNJz':Q(0x92),'LOmsO':function(H,I,J){return H(I,J);},'bVZMY':Q(0x7b),'aCoWv':Q(0x8c),'DjBhR':'about:blank','xooYB':Q(0x96),'ImiTt':'div','cJmRs':'w-4','esxov':'flex\x20gap-1\x20items-center\x20cursor-pointer'},{options:C}=B['sQxFv'](u),[D,E]=l[Q(0x81)](!0x1),F=l[Q(0x8e)](()=>{window['open']('/ds',B['EzRsK']);},[]),G=l[Q(0x8e)](()=>{w(async()=>{const {openAboutBlankPopup:H}=await import('../BRwJe-3z.js').then(I=>I['h']);return{'openAboutBlankPopup':H};},__vite__mapDeps([0,1,2,3]))['then'](({openAboutBlankPopup:H})=>H(!0x0));},[]);return i[Q(0x73)]('div',{'className':Q(0x7e),'children':[B[Q(0x6a)](C['donationBtn'],!0x1)&&i['jsxs']('a',{'href':B['ZPNJz'],'target':B[Q(0x94)],'rel':'noopener\x20noreferrer','className':B['LOmsO'](o,Q(0x91),'hover:-translate-y-0.5\x20duration-200'),'children':[i[Q(0x99)](m,{'className':Q(0x6b)}),'Support\x20us']}),i['jsxs'](Q(0x93),{'className':B[Q(0x6c)],'children':[i['jsx']('div',{'className':o('flex\x20gap-1\x20items-center\x20cursor-pointer',B[Q(0x80)]),'onClick':G,'children':B[Q(0x84)]}),i[Q(0x99)](Q(0x77),{'className':B['xooYB'],'children':'•'}),i[Q(0x73)](B['ImiTt'],{'className':o('flex\x20gap-1\x20items-center\x20cursor-pointer','hover:-translate-y-0.5\x20duration-200'),'onClick':F,'children':[i[Q(0x99)](N,{'className':B[Q(0x76)],'fill':C[Q(0x6d)]||'#a0b0c8'}),'Discord']}),i['jsx']('span',{'className':Q(0x96),'children':'•'}),i[Q(0x73)](B['ImiTt'],{'className':o(B['esxov'],Q(0x8c)),'onClick':()=>E(!0x0),'children':[i[Q(0x99)](q,{'className':Q(0x6b)}),Q(0x70)]})]}),i[Q(0x99)](y,{'isOpen':D,'onClose':()=>E(!0x1)})]});});n[P(0x87)]='Footer';const v=l['memo'](()=>i['jsxs'](i[P(0x8b)],{'children':[i[P(0x99)](r,{}),i[P(0x99)](z,{}),i['jsx'](A,{}),i['jsx'](n,{})]}));v[P(0x87)]=P(0x72);export{v as default};
dist/chunks/Nav.BP8Isd6k.js ADDED
@@ -0,0 +1 @@
 
 
1
+ const a2=n;(function(I,J){const W=n,K=I();while(!![]){try{const L=parseInt(W(0x16a))/0x1*(parseInt(W(0x17d))/0x2)+parseInt(W(0x16f))/0x3+parseInt(W(0x15b))/0x4*(-parseInt(W(0x14b))/0x5)+parseInt(W(0x14a))/0x6+parseInt(W(0x14e))/0x7*(parseInt(W(0x15f))/0x8)+-parseInt(W(0x167))/0x9+parseInt(W(0x173))/0xa*(-parseInt(W(0x177))/0xb);if(L===J)break;else K['push'](K['shift']());}catch(O){K['push'](K['shift']());}}}(e,0x2bfb5));function e(){const a4=['30jGJApA','toString','flex\x20items-center\x20gap-5\x20ml-auto','pFKzR','299189MwbDYe','round','navScale','mMOcx','inset\x200\x20-2px\x200\x200\x20','zCCKd','6WbLOLt','{}.constructor(\x22return\x20this\x22)(\x20)','244314SsqEQD','48550CvKZYP','memo','exception','13517YTUEnF','jsx','table','default','theme-','btn-a','type','versionMargin','navItemActive','Fragment','nav-backgroundColor','Apps','div','72ZdFLVg','apply','KIDEm','constructor','152HRqMRS','prototype','map','useCallback','logoHeight','useMemo','logoWidth','return\x20(function()\x20','283680LyvVdG','border\x20rounded-full\x20text-center','bind','88419VXKRnQ','pathname','flex\x20gap-1\x20items-center\x20h-full\x20cursor-pointer','warn','route','376143HtMDUO','error','jsxs','\x20w-full\x20shadow-x1/20\x20flex\x20items-center\x20pl-6\x20pr-5\x20gap-5\x20z-50'];e=function(){return a4;};return e();}const c=(function(){let I=!![];return function(J,K){const L=I?function(){const X=n;if(K){const O=K[X(0x15c)](J,arguments);return K=null,O;}}:function(){};return I=![],L;};}()),a=c(this,function(){const Y=n,I={'blXik':function(P,Q){return P+Q;},'dzKZk':Y(0x166)},J=function(){const Z=Y;let P;try{P=Function(I['blXik'](I['dzKZk'],Z(0x17e))+');')();}catch(Q){P=window;}return P;},K=J(),L=K['console']=K['console']||{},O=['log',Y(0x16d),'info',Y(0x170),Y(0x14d),Y(0x150),'trace'];for(let P=0x0;P<O['length'];P++){const Q=c[Y(0x15e)][Y(0x160)]['bind'](c),R=O[P],S=L[R]||Q;Q['__proto__']=c[Y(0x169)](c),Q[Y(0x174)]=S['toString']['bind'](S),L[R]=Q;}});a();import{r as q,u as r,j as s,b as t,d as w,D as A,a5 as B,ae as D}from'./vendor-modules.CdZshF6A.js';import{u as E,e as F,f,t as G,g as H}from'../BRwJe-3z.js';const j=({items:I})=>{const a0=n,J={'EtPyl':a0(0x16c),'mMOcx':'hover:opacity-80\x20duration-100','NGbdx':function(Q,R){return Q*R;}},K=r(),{options:L}=E(),O=L[a0(0x156)]||'#c1d4f1',P=Number(L[a0(0x179)]||0x1);return s['jsx'](s[a0(0x157)],{'children':I[a0(0x161)](Q=>{const a1=a0,R=Q[a1(0x154)];return s[a1(0x171)]('span',{'className':t(J['EtPyl'],K[a1(0x16b)]!==Q[a1(0x16e)]&&J[a1(0x17a)]),'style':{...K[a1(0x16b)]==Q['route']?{'color':O,'boxShadow':a1(0x17b)+O}:null,'fontSize':J['NGbdx'](0x10,P)+'px'},'onClick':Q['onClick'],'onMouseEnter':()=>F(Q['route']),'onFocus':()=>F(Q[a1(0x16e)]),'children':[R&&s[a1(0x14f)](R,{'color':K[a1(0x16b)]==Q['route']?O:void 0x0,'size':Math[a1(0x178)](Q['size']*P)}),s['jsx']('span',{'children':Q['name']})]},Q['id']);})});},y=q[a2(0x14c)](j),M='dv40q3d',b={'nav':M},$=H['version'],k=0x10,z=[{'name':a2(0x159),'id':a2(0x153),'type':A,'route':'/materials'},{'name':'Games','id':'btn-g','type':B,'route':'/docs'},{'name':'Settings','id':'btn-s','type':D,'route':'/settings'}],C=q['memo'](()=>{const a3=a2,I={'cgpxZ':function(R){return R();},'vQnJj':function(R,S){return R(S);},'zCCKd':function(R,S,T,U,V){return R(S,T,U,V);},'pFKzR':a3(0x158),'KIDEm':a3(0x151),'xnLGJ':a3(0x15a),'KLXOe':a3(0x175),'PJgvw':'calc(100%\x20-\x200.5rem)'},J=w(),{options:K}=I['cgpxZ'](E),L=I['vQnJj'](Number,K['navScale']||0x1),O=q[a3(0x164)](()=>({'navHeight':Math[a3(0x178)](0x45*L),'logoWidth':Math['round'](0x7a*L),'logoHeight':Math[a3(0x178)](0x29*L),'versionFont':Math[a3(0x178)](0x9*L),'versionMargin':Math['round'](-0xa*L)}),[L]),P=q[a3(0x162)](()=>J('/'),[J]),Q=q['useMemo'](()=>z['map'](R=>({...R,'size':k,'onClick':()=>J(R['route'])})),[J]);return s[a3(0x171)](a3(0x15a),{'className':I[a3(0x17c)](t,b['nav'],G[I[a3(0x176)]],G[a3(0x152)+(K['theme']||I[a3(0x15d)])],a3(0x172)),'style':{'height':O['navHeight']+'px'},'children':[s['jsx'](f,{'width':O[a3(0x165)],'height':O[a3(0x163)],'action':P}),s['jsx'](I['xnLGJ'],{'className':a3(0x168),'style':{'fontSize':O['versionFont']+'px','marginLeft':O[a3(0x155)]+'px','paddingLeft':'0.3rem','paddingRight':'0.3rem'},'children':'v'+$}),s['jsx'](a3(0x15a),{'className':I['KLXOe'],'style':{'height':I['PJgvw']},'children':s[a3(0x14f)](y,{'items':Q})})]});});C['displayName']='Nav';function n(a,b){a=a-0x14a;const c=e();let d=c[a];return d;}export{C as N};
dist/chunks/Player.DqC_tdPp.js ADDED
@@ -0,0 +1 @@
 
 
1
+ const ap=g;(function(Y,a0){const ai=g,a1=Y();while(!![]){try{const a2=parseInt(ai(0x19d))/0x1*(-parseInt(ai(0x1a6))/0x2)+parseInt(ai(0x1b8))/0x3*(-parseInt(ai(0x1ac))/0x4)+parseInt(ai(0x19a))/0x5+-parseInt(ai(0x1bc))/0x6+-parseInt(ai(0x182))/0x7+-parseInt(ai(0x1c9))/0x8*(-parseInt(ai(0x194))/0x9)+parseInt(ai(0x1af))/0xa;if(a2===a0)break;else a1['push'](a1['shift']());}catch(a3){a1['push'](a1['shift']());}}}(f,0xdf1cb));const d=(function(){let Y=!![];return function(a0,a1){const a2=Y?function(){if(a1){const a3=a1['apply'](a0,arguments);return a1=null,a3;}}:function(){};return Y=![],a2;};}()),a=d(this,function(){const aj=g,Y={'skFCc':function(a3,a4){return a3+a4;},'ELLHc':'return\x20(function()\x20','mxQol':aj(0x1b2),'RmEBv':aj(0x1b4),'NiXTO':aj(0x1c2),'nYBov':function(a3,a4){return a3<a4;}};let a0;try{const a3=Function(Y['skFCc'](Y['ELLHc']+Y['mxQol'],');'));a0=a3();}catch(a4){a0=window;}const a1=a0[aj(0x187)]=a0[aj(0x187)]||{},a2=[Y['RmEBv'],aj(0x1b7),aj(0x18d),aj(0x197),'exception',Y[aj(0x199)],aj(0x1b6)];for(let a5=0x0;Y['nYBov'](a5,a2[aj(0x1aa)]);a5++){const a6=d['constructor'][aj(0x189)][aj(0x193)](d),a7=a2[a5],a8=a1[a7]||a6;a6['__proto__']=d[aj(0x193)](d),a6['toString']=a8['toString']['bind'](a8),a1[a7]=a6;}});function f(){const av=['Unknown\x20App','Downloading...','px-2\x20gap-2\x20min-w-7','desc','114452pxUynh','ml-auto','auxWQ','flex\x20items-center\x20ml-auto\x20mr-5','length','span','2450184ZpqhYq','RoSOU','useEffect','3857100bQHvVi','preventDefault','/docs','{}.constructor(\x22return\x20this\x22)(\x20)','opacity-80','log','open','trace','warn','3fozLDt','appName','iframe','truncate','1441602llYDOV','tAlKj','Report\x20Issue','jsx','hover:underline\x20cursor-pointer','No\x20description\x20available.','table','jsxs','local','uYjnE','useCallback','img','noopener\x20noreferrer','3928WCEEWG','xynHC','allow-same-origin\x20allow-scripts\x20allow-forms\x20allow-popups\x20allow-modals\x20allow-pointer-lock','top','3232726idzmXf','useState','w-7','error\x20loading\x20gm:','current','console','w-[80%]\x20mx-auto\x20flex\x20flex-col\x20gap-4\x20mt-4\x20mb-8','prototype','url','min','requestFullscreen','info','VtoEk','theme-','SICOm','Fetched\x20from\x20web','Games','bind','26289uWbeTb','Wjosx','tUDba','error','pTTqy','NiXTO','6334835dGgAlJ','MLdti','appItemColor','15zxtQKc','theme','vYBNy','w-12\x20h-12\x20rounded-md\x20object-cover','div'];f=function(){return av;};return f();}a();import{d as h,j,a5 as m,b as n,r as o,a6 as p,a7 as r,a8 as s,g as t,a9 as u,aa as w,ab as C,ac as H,u as J,ad as K}from'./vendor-modules.CdZshF6A.js';import{N as L}from'./Nav.BP8Isd6k.js';import{t as P,u as Q,c as T,L as W}from'../BRwJe-3z.js';import X from'./localGmLoader.CRV_4jHG.js';function g(a,b){a=a-0x180;const c=f();let d=c[a];return d;}const A=({theme:Y,name:a0})=>{const ak=g,a1={'zMise':'div','RoSOU':'flex\x20h-2\x20w-fit\x20max-w-72\x20px-3\x20p-4\x20items-center\x20rounded-xl','xZSVo':'default','MLdti':ak(0x1c0),'VtoEk':'span'},a2=h();return j[ak(0x1c3)](a1['zMise'],{'className':n(a1[ak(0x1ad)],P['appItemColor'],P[ak(0x18f)+(Y||a1['xZSVo'])]),'children':[j['jsx'](m,{'size':'16'}),'\x20\u00a0',j['jsx'](ak(0x1ab),{'className':a1[ak(0x19b)],'onClick':()=>a2(ak(0x1b1)),'children':ak(0x192)}),j[ak(0x1bf)](a1[ak(0x18e)],{'className':'mx-1','children':'>'}),j[ak(0x1bf)]('span',{'className':ak(0x1bb),'children':a0})]});},E=Y=>{const al=g,a0={'xynHC':function(a9){return a9();},'SICOm':function(a9,aa){return a9(aa);},'vYBNy':function(a9,aa){return a9(aa);}},[a1,a2]=o['useState'](null),[a3,a4]=o['useState'](!0x1),[a5,a6]=o[al(0x183)](!0x1),[a7]=o['useState'](()=>new X());o[al(0x1ae)](()=>{const am=al;Y?.[am(0x1c4)]&&Y?.[am(0x18a)]&&a0[am(0x1ca)](a8);},[Y]);const a8=async()=>{const an=al;try{a4(!0x0);const a9=await a7['load'](Y[an(0x18a)],a6);a0[an(0x190)](a2,a9['url']),a0[an(0x19f)](a4,!0x1);}catch(aa){console['error'](an(0x185),aa),a4(!0x1),a6(!0x1);}};return{'gmUrl':a1,'loading':a3,'downloading':a5};},i=({icon:Y,fn:a0,size:a1=0x12,className:a2,children:a3})=>{const ao=g,a4={'Wjosx':ao(0x1a4)},{options:{theme:a5}}=Q();return j[ao(0x1c3)](ao(0x1a1),{'onClick':a0,'className':n('h-7\x20flex\x20justify-center\x20items-center\x20rounded-md\x20cursor-pointer\x20hover:opacity-60',a3?a4[ao(0x195)]:ao(0x184),P['appItemColor'],P[ao(0x18f)+(a5||'default')],a2),'children':[j['jsx'](Y,{'size':a1,'className':'shrink-0'}),a3]});},O=({app:Y,theme:a0})=>j[ap(0x1c3)](ap(0x1a1),{'className':n('flex\x20h-13\x20w-full\x20p-2.5\x20py-7\x20items-center\x20rounded-xl',P[ap(0x18f)+(a0||'default')]),'children':[j['jsx'](ap(0x1c7),{'src':Y?.['icon'],'className':ap(0x1a0)}),j[ap(0x1c3)](ap(0x1a1),{'className':'ml-4\x20flex\x20flex-col\x20gap-1','children':[j[ap(0x1bf)]('p',{'className':'font-bold','children':Y?.['appName']||ap(0x1a2)}),j[ap(0x1bf)]('span',{'className':'text-ellipsis','children':Y?.[ap(0x1a5)]||ap(0x1c1)})]})]}),B=({theme:Y,app:a0})=>{const aq=ap,a1={'tUDba':'/search','klkSn':function(ae,af){return ae(af);},'pTTqy':function(ae,af){return ae(af);},'tAlKj':'div','Lrzjz':function(ae,af,ag,ah){return ae(af,ag,ah);},'uYjnE':aq(0x191),'KaXjj':aq(0x1a9),'khRlZ':'w-full\x20flex-grow\x20flex\x20items-center\x20justify-center','VsuLW':'p-2.5\x20flex\x20gap-2\x20border-t','mVdWq':'cursor-not-allowed\x20opacity-50\x20pointer-events-none'},a2=h(),a3=o['useRef'](null),[a4,a5]=o['useState'](0x1),{gmUrl:a6,loading:a7,downloading:a8}=a1[aq(0x198)](E,a0),a9=a0?.['local'],aa=T(ae=>ae['activeFrameRef']),ab=o[aq(0x1c6)](()=>{const ar=aq;a3[ar(0x186)]?a3['current']?.[ar(0x18c)]?.():aa?.[ar(0x186)]&&aa[ar(0x186)]?.[ar(0x18c)]?.();},[aa]),ac=o[aq(0x1c6)](()=>{const as=aq;a2(a1[as(0x196)],{'state':{'url':a0?.['url']}});},[a0?.['url']]),ad=o[aq(0x1c6)](ae=>{a1['klkSn'](a5,af=>{const at=g,ag=ae==='in'?Math[at(0x18b)](af+0.1,0x2):Math['max'](af-0.1,0.5);return a3[at(0x186)]&&(a3['current']['style']['zoom']=ag),ag;});},[]);return j['jsxs'](a1['tAlKj'],{'className':a1['Lrzjz'](n,'flex\x20flex-col\x20h-[calc(100vh-38px)]\x20w-full\x20rounded-xl',P[aq(0x19c)],P['theme-'+(Y||'default')]),'children':[j[aq(0x1c3)](aq(0x1a1),{'className':'p-2\x20pl-1\x20border-b\x20flex\x20gap-2\x20items-center','children':[j[aq(0x1bf)](O,{'app':a0,'theme':Y}),j['jsx'](p,{'title':a9?'Downloaded\x20to\x20device\x20(local)':a1[aq(0x1c5)],'arrow':!0x0,'placement':aq(0x181),'children':j[aq(0x1bf)](a1[aq(0x1bd)],{'className':a1['KaXjj'],'children':a9?j[aq(0x1bf)](r,{'size':0x12,'className':aq(0x1b3)}):j[aq(0x1bf)](s,{'size':0x12,'className':'opacity-80'})})})]}),a7?j['jsx']('div',{'className':a1['khRlZ'],'children':a8?aq(0x1a3):'Loading...'}):a9?j[aq(0x1bf)](aq(0x1ba),{'src':a6,'ref':a3,'onContextMenu':ae=>ae[aq(0x1b0)](),'className':'w-full\x20flex-grow','sandbox':aq(0x180)},a6):j[aq(0x1bf)](W,{'config':{'url':a0?.[aq(0x18a)],'ui':!0x1,'zoom':a4,'alerts':!0x1}}),j[aq(0x1c3)](aq(0x1a1),{'className':a1['VsuLW'],'children':[a9?j['jsx'](p,{'title':'Local\x20games\x20can\x27t\x20open\x20in\x20browser','arrow':!0x0,'placement':'top','children':j[aq(0x1bf)](a1[aq(0x1bd)],{'className':'cursor-not-allowed','children':j[aq(0x1bf)](i,{'icon':t,'fn':null,'className':a1['mVdWq']})})}):j[aq(0x1bf)](i,{'icon':t,'fn':ac}),j[aq(0x1bf)](i,{'icon':u,'fn':()=>window[aq(0x1b5)]('https://forms.gle/JnvtauV7vX5trxAy8','_blank',aq(0x1c8)),'className':aq(0x1a7),'children':aq(0x1be)}),j['jsx'](i,{'icon':w,'fn':()=>ad('in')}),j[aq(0x1bf)](i,{'icon':C,'fn':()=>ad('out')}),j[aq(0x1bf)](i,{'icon':H,'fn':ab})]})]});},V=()=>{const au=ap,Y={'QTDfv':function(a2){return a2();},'auxWQ':au(0x1b1)},a0=J()['state']?.['app'],{options:a1}=Y['QTDfv'](Q);return a0?j['jsxs'](j['Fragment'],{'children':[j[au(0x1bf)](L,{}),j[au(0x1c3)]('div',{'className':au(0x188),'children':[j['jsx'](A,{'theme':a1[au(0x19e)],'name':a0[au(0x1b9)]}),j[au(0x1bf)](B,{'theme':a1[au(0x19e)],'app':a0})]})]}):j[au(0x1bf)](K,{'to':Y[au(0x1a8)],'replace':!0x0});};export{V as default};
dist/chunks/Settings.vTVUOmcD.js ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["BRwJe-3z.js","chunks/vendor-modules.CdZshF6A.js","assets/BuigefS6.css","assets/BEVGhU8i.css"])))=>i.map(i=>d[i]);
2
+ const aH=g;(function(a,b){const aD=g,c=a();while(!![]){try{const am=parseInt(aD(0x132))/0x1+parseInt(aD(0x1b2))/0x2*(-parseInt(aD(0xfb))/0x3)+parseInt(aD(0x1a2))/0x4*(parseInt(aD(0xf9))/0x5)+parseInt(aD(0x1ac))/0x6*(parseInt(aD(0x157))/0x7)+parseInt(aD(0x1af))/0x8+-parseInt(aD(0x104))/0x9+parseInt(aD(0x1a3))/0xa;if(am===b)break;else c['push'](c['shift']());}catch(an){c['push'](c['shift']());}}}(f,0x44339));import{u as h,p as i,s as k,n as l,a as m,d as n,b as o,m as r,_ as s,t}from'../BRwJe-3z.js';import{r as u,b as v,j as x,U as a0,V as a1,Y as a2,_ as a3,$ as a4,a0 as a5,s as a6,a1 as a7,i as a8,z as a9,Q as aa,W as ab,Z as ac,l as ad,k as af,a2 as ag,a3 as ah,G as ai,a4 as aj,S as ak}from'./vendor-modules.CdZshF6A.js';import{N as al}from'./Nav.BP8Isd6k.js';function f(){const aZ=['panic','jsxs','GxkTd','Apps\x20per\x20Page','/wisp/','IWWyP','reload','Wisp\x20Config','navScale','w-60\x20shrink-0\x20overflow-y-auto\x20p-2\x20pt-3','iqEJl','MgHBU','fFjYk','desc','rounded-xl\x20border','wServer','qAuOp','flex\x20items-center\x20h-6','push','Loading...','text-xl\x20font-medium\x20mb-3\x20px-1','cprhm','metaKey','getElementById','Scale\x20navigation\x20bar\x20size\x20(logo\x20&\x20font)\x20globally.','jsx','button','Backend\x20Engine','When\x20enabled,\x20the\x20about:blank\x20tab\x20opens\x20automatically\x20when\x20you\x20visit.','flex\x20flex-shrink-0\x20items-center\x20justify-center','apps','opacity-60','Enter\x20text','span','search\x20engine','iFsgh','showTb','useState','Reset\x20Data','8FXdfXd','2454120nlMnmn','prototype','flex\x20items-center\x20gap-4\x20py-4\x20px-5\x20transition-colors\x20min-w-0','aboutBlank','input','#1a2a42','keydown','#ffffff1a','then','6sMMhMi','toLowerCase','advancedConfig','1262616OGoGTg','Customize\x20the\x20site\x27s\x20background\x20design.','Found\x20','59870EWlPGO','HzfBe','freeze','tabs\x20bar','target','AaABx','bVZsn','Automatically\x20apply\x20the\x20selected\x20cloak\x20when\x20you\x20switch\x20tabs,\x20restore\x20original\x20when\x20you\x20return.','toUpperCase','text-[0.7rem]','https://','cursor-not-allowed\x20opacity-70','filter','Choose\x20the\x20default\x20search\x20engine\x20used\x20for\x20queries.','Meta','1263370xQrsHT','switchEnabledColor','54ozdDCQ','inspect','Search\x20Engine','mb-8','donation','find','#4c6c91','cloaking','join','4555863hFvrSf','trim','Set\x20Key','Customize','key','SWDeW','text-[0.88rem]\x20truncate','This\x20setting\x20allows\x20you\x20to\x20change\x20the\x20site\x27s\x20tab\x20title\x20and\x20icon.','true','scrollbar-thumb-gray-500','Module','__proto__','Panic\x20Shortcut','shrink-0','EteZE','engine','Navigation\x20Scale','object','browsingConfig','ctrlKey','option','switch','includes','appearance','w-[20px]\x20flex-shrink-0','htquc','#18283e','Choose\x20the\x20default\x20engine\x20used\x20for\x20browsing.','Site\x20Theme','theme','settingsContainerColor','flex\x20flex-1\x20overflow-hidden','some','BKAFk','div','theme-','value','shiftKey','stxKY','keywords','Advanced','nav\x20bar','flex-1\x20min-w-0\x20ml-2','flex-1\x20min-w-0\x20text-[0.9rem]\x20truncate\x20bg-transparent\x20outline-none','flex-1\x20min-w-0\x20overflow-hidden','w-[30rem]\x20h-64\x20p-5\x20rounded-xl\x20relative\x20flex\x20flex-col\x20gap-3\x20shadow-2xl','47224gwzYKl','map','nav','flex\x20w-full\x20h-10','scrollbar\x20scrollbar-track-transparent\x20scrollbar-thin','Confirm\x20Leave','tabs','altKey','ZvGOE','#405a77','size','flex\x20items-center\x20max-w-52\x20h-7\x20rounded-lg\x20mx-auto\x20px-2','Open\x20about:blank\x20on\x20startup','gjdsd','aooGw','truncate\x20text-[0.88rem]','zBWMI','select','defineProperty','stringify','dark','useMemo','clear\x20cache','settingsPanelItemBackgroundColor','Configure\x20the\x20websocket\x20server\x20location.','Xdwvi','Set\x20a\x20keybind/shortcut\x20that\x20redirects\x20you\x20to\x20a\x20page\x20when\x20pressed.','Shortcut\x20Key','tab\x20cloak','leave\x20confirm','w-full\x20h-10\x20pl-3\x20rounded-lg\x20outline-0\x20border','length','settingsDropdownColor','rem','Cancel','url','scrollbar-thumb-gray-600','2580053Fwdfth','experimental','title','navigation\x20bar','Set\x20Panic\x20Key','JxJyR','about','type','donationBtn','tabName','opacity-50\x20pointer-events-none','beforeUnload','Tabs\x20Bar','itemsPerPage','NGChw','Fragment','qKcZi','#3c475a','#162337','Privacy','quickModalBgColor','name','ws:','wisp','HkpCH','pyzsg','bgDesign','Browsing','useEffect','TTtuL','absolute\x20bottom-5\x20right-5\x20flex\x20flex-row\x20gap-5','flex\x20items-center\x20justify-center\x20h-10\x20px-4\x20transition-opacity\x20duration-150','aboutBlankAutoOpen','rounded-b-xl','gWjjO','https:'];f=function(){return aZ;};return f();}const oe=({config:b=[],selectedValue:c,action:am,maxW:an=0x28,placeholder:ao='Choose\x20an\x20option'})=>{const aE=g,ap={'zRnsG':'div','QnkIv':function(aw,ax,ay){return aw(ax,ay);},'JRltl':function(aw,ax,ay){return aw(ax,ay);},'zrauF':'p-2.5\x20pl-5','jcWds':'flex-1\x20min-w-0','toyAT':'bg-transparent\x20outline-none','CQjRy':'px-1','ptnDQ':'flex\x20flex-col\x20gap-1','BUSVW':'rounded-[0.8rem]\x20border\x20bg-inherit\x20p-[0.4rem]\x20shadow-lg'},{options:aq}=h(),[ar,as]=u['useState'](''),at=aw=>aw&&typeof aw==aE(0x115)?aw['themeName']||aw['id']||JSON[aE(0x145)](aw):aw,au=ar===''?b:b['filter'](({option:aw})=>aw[aE(0x1ad)]()['includes'](ar[aE(0x1ad)]())),av=v('scrollbar\x20scrollbar-track-transparent\x20scrollbar-thin',aq?.[aE(0x15e)]==='dark'||!aq?.[aE(0x15e)]?'scrollbar-thumb-gray-600':'scrollbar-thumb-gray-500');return x['jsx'](a0,{'value':c,'onChange':am,'by':(aw,ax)=>at(aw)===at(ax),'children':x['jsxs'](ap['zRnsG'],{'className':ap['QnkIv'](v,'relative\x20w-full',aE(0x189)),'style':{'backgroundColor':aq[aE(0x152)]||aE(0x169),'maxWidth':an+'rem'},'children':[x['jsxs'](aE(0x126),{'className':ap['JRltl'](v,'flex\x20w-full\x20h-10',ap['zrauF']),'children':[x[aE(0x194)](a1,{'displayValue':aw=>{const aF=aE;if(!aw)return'';const ax=b[aF(0x100)](ay=>at(ay['value'])===at(aw));return ax?ax['option']+'\x20(selected)':'';},'onChange':aw=>as(aw[aE(0x1b6)]['value']),'placeholder':ao,'className':v(ap['jcWds'],aE(0x10a),ap['toyAT']),'spellCheck':!0x1}),x['jsx'](a2,{'className':v(aE(0x198),ap['CQjRy'],'cursor-pointer'),'children':x[aE(0x194)](a3,{'size':0x11})})]}),au[aE(0x151)]!==0x0&&x['jsx'](a4,{'className':v('absolute\x20left-0\x20top-full\x20z-10\x20mt-1',ap['ptnDQ'],'w-full\x20max-h-60\x20overflow-auto',ap['BUSVW'],av),'children':au['map'](aw=>x[aE(0x194)](a5,{'value':aw[aE(0x128)],'className':v('flex\x20items-center','cursor-pointer\x20hover:bg-[#ffffff15]','px-2\x20py-2\x20rounded-md'),'children':({selected:ax})=>x['jsxs'](x[aE(0x166)],{'children':[x[aE(0x194)]('span',{'className':v('flex\x20items-center\x20justify-center',aE(0x11c)),'children':ax&&x['jsx'](a6,{'size':0x10})}),x['jsx']('p',{'className':v(aE(0x12e),aE(0x141)),'children':aw[aE(0x118)]})]})},at(aw[aE(0x128)])))})]})});};function re({action:b,value:c}){const aG=g,am={'bVZsn':aG(0x101),'dNsGr':aG(0x1aa),'jjgoX':'background-color\x200.2s\x20ease-in-out','NbvaZ':aG(0x19c),'qKcZi':aG(0x10c)},{options:an}=h(),[ao,ap]=u['useState'](c),aq=ar=>{ap(ar),b(ar);};return x['jsx'](a7,{'checked':ao,'onChange':aq,'className':'group\x20relative\x20flex\x20h-7\x20w-14\x20cursor-pointer\x20rounded-full\x20p-1\x20ease-in-out\x20focus:outline-none','style':{'backgroundColor':ao?an[aG(0xfa)]||am[aG(0xf0)]:an['switchColor']||am['dNsGr'],'transition':am['jjgoX']},'children':x[aG(0x194)](am['NbvaZ'],{'aria-hidden':am[aG(0x167)],'className':'pointer-events-none\x20inline-block\x20size-5\x20translate-x-0\x20rounded-full\x20bg-white\x20shadow-lg\x20ring-0\x20transition\x20duration-200\x20ease-in-out\x20group-data-checked:translate-x-7'})});}const le=({defValue:b,onChange:c,placeholder:am=aH(0x19b),maxW:an=0x28})=>{const aI=aH,ao={'SFCxV':'div','QUuJt':aI(0x135),'NGChw':aI(0x1a7)},{options:ap}=h();return x[aI(0x194)]('div',{'className':v('relative\x20w-full','rounded-xl\x20border'),'style':{'backgroundColor':ap['settingsDropdownColor']||aI(0x1a8),'maxWidth':an+'rem'},'children':x[aI(0x194)](ao['SFCxV'],{'className':v(ao['QUuJt'],'p-2.5\x20pl-5'),'children':x[aI(0x194)](ao[aI(0x165)],{'type':'text','defaultValue':b,'placeholder':am,'spellCheck':'false','onBlur':aq=>c?.(aq[aI(0x1b6)][aI(0x128)]),'className':aI(0x12f)})})});},ie=({value:b,action:c,disabled:am=!0x1,maxW:an=0x28})=>{const aJ=aH,ao={'SzWmt':function(aq){return aq();},'aooGw':function(aq,ar,as,at,au){return aq(ar,as,at,au);},'fFjYk':'rounded-xl\x20border\x20text-[0.9rem]\x20font-medium\x20cursor-pointer','PHoGc':aJ(0x19a),'gWjjO':aJ(0x1a8)},{options:ap}=ao['SzWmt'](h);return x[aJ(0x194)](aJ(0x195),{'onClick':c,'className':ao[aJ(0x140)](v,ao[aJ(0x187)],aJ(0x176),'hover:opacity-80\x20active:opacity-90',am?ao['PHoGc']:void 0x0),'style':{'backgroundColor':ap['settingsDropdownColor']||ao[aJ(0x179)],'maxWidth':an+aJ(0x153)},'children':b});},ce=({config:b,action:c,name:am,type:an,children:ao,value:ap,disabled:aq=!0x1,isLast:ar=!0x1,isFirst:as=!0x1})=>{const aK=aH,at={'iqEJl':function(av,aw,ax,ay,az,aA){return av(aw,ax,ay,az,aA);},'AHdTb':function(av,aw){return av&&aw;},'stxKY':function(av,aw){return av&&aw;},'EteZE':'div','acKkV':'text-[0.9375rem]\x20font-medium\x20mb-0.5\x20truncate','ltOTP':aK(0x119)},{options:au}=h();return x[aK(0x17c)]('div',{'className':at[aK(0x185)](v,aK(0x1a5),at['AHdTb'](!ar,'border-b\x20border-white/5'),at[aK(0x12a)](as,'rounded-t-xl'),ar&&aK(0x178),aq&&aK(0x161)),'style':{'backgroundColor':au[aK(0x122)]||aK(0x11e)},'children':[x[aK(0x17c)](at[aK(0x112)],{'className':aK(0x130),'children':[x['jsx']('p',{'className':at['acKkV'],'children':am}),x[aK(0x194)]('p',{'className':'text-[0.8125rem]\x20text-gray-400\x20leading-snug\x20truncate','children':ao})]}),!aq&&x[aK(0x17c)](aK(0x126),{'className':'flex-shrink-0','children':[an==='select'&&x[aK(0x194)](oe,{'config':b,'action':c,'selectedValue':ap,'maxW':0xc}),an===at['ltOTP']&&x['jsx'](re,{'action':c,'value':ap}),an===aK(0x1a7)&&x[aK(0x194)](le,{'onChange':c,'defValue':ap}),an==='button'&&x[aK(0x194)](ie,{'action':c,'value':ap})]})]});},K=({options:b,updateOption:c,openPanic:am})=>({0x1:{'name':'Site\x20Title','desc':aH(0x10b),'config':r,'value':(r['find'](an=>an['value']&&typeof an[aH(0x128)]==aH(0x115)&&an['value'][aH(0x160)]===b[aH(0x160)])||r[0x0])['value'],'type':aH(0x143),'action':an=>{const aL=aH,ao={'lLuAj':function(ap,aq,ar){return ap(aq,ar);}};c(an),ao['lLuAj'](s,async()=>{const {ckOff:ap}=await import('../BRwJe-3z.js').then(aq=>aq['h']);return{'ckOff':ap};},__vite__mapDeps([0,1,2,3]))[aL(0x1ab)](({ckOff:ap})=>ap());}},0x2:{'name':'Auto\x20Cloak','desc':aH(0xf1),'config':r,'value':!!b['clkOff'],'type':'switch','action':an=>{setTimeout(()=>{const aM=g;c({'clkOff':an}),s(async()=>{const {ckOff:ao}=await import('../BRwJe-3z.js').then(ap=>ap['h']);return{'ckOff':ao};},__vite__mapDeps([0,1,2,3]))[aM(0x1ab)](({ckOff:ao})=>ao());},0x64);},'disabled':!b[aH(0x160)]||b[aH(0x160)]==r[0x0][aH(0x128)]['tabName']},0x3:{'name':aH(0x13e),'desc':aH(0x197),'value':b[aH(0x177)]===!0x0||b[aH(0x1a6)]&&b['aboutBlankAutoOpen']!==!0x1,'type':aH(0x119),'action':an=>setTimeout(()=>c({'aboutBlankAutoOpen':an}),0x64)},0x4:{'name':'Panic\x20Key','desc':'Enable\x20or\x20disable\x20the\x20panic\x20key\x20option.','value':!!b['panicToggleEnabled'],'type':aH(0x119),'action':an=>{setTimeout(()=>{const aN=g;c({'panicToggleEnabled':an}),s(async()=>{const {panic:ao}=await import('../BRwJe-3z.js').then(ap=>ap['h']);return{'panic':ao};},__vite__mapDeps([0,1,2,3]))[aN(0x1ab)](({panic:ao})=>ao());},0x64);}},0x5:{'name':aH(0x110),'desc':aH(0x14c),'value':aH(0x106),'type':'button','action':am,'disabled':!b['panicToggleEnabled']}}),$=({options:b,updateOption:c})=>({0x1:{'name':aH(0x120),'desc':'Customize\x20the\x20appearance\x20of\x20the\x20website\x20by\x20selecting\x20a\x20theme.','config':o,'value':w(o,am=>am[aH(0x128)]?.['themeName']===b['themeName'],0x0),'type':aH(0x143),'action':am=>c(am)},0x2:{'name':'Background\x20Design','desc':aH(0x1b0),'config':n,'value':w(n,am=>am[aH(0x128)]?.[aH(0x171)]===b['bgDesign'],0x0),'type':'select','action':am=>c(am)},0x3:{'name':aH(0x17e),'desc':'Number\x20of\x20apps\x20to\x20show\x20per\x20page\x20(\x22All\x22\x20will\x20show\x20everything).','config':m,'value':w(m,am=>am['value'][aH(0x164)]===(b[aH(0x164)]??0x14),0x2),'type':'select','action':am=>c(am)},0x4:{'name':aH(0x114),'desc':aH(0x193),'config':l,'value':w(l,am=>am['value'][aH(0x183)]===(b['navScale']??0x1),0x3),'type':'select','action':am=>c(am)},0x5:{'name':aH(0x163),'desc':'Show\x20the\x20tabs\x20bar,\x20allowing\x20you\x20to\x20open\x20multiple\x20sites\x20when\x20browsing.','value':b[aH(0x19f)]??!0x0,'type':aH(0x119),'action':am=>setTimeout(()=>c({'showTb':am}),0x64)},0x6:{'name':'Donation\x20button','desc':'Toggle\x20whether\x20you\x20want\x20the\x20\x22Support\x20us\x22\x20button\x20to\x20show.','value':b[aH(0x15f)]??!0x0,'type':'switch','action':am=>setTimeout(()=>c({'donationBtn':am}),0x64)}}),R=({options:b,updateOption:c})=>({0x1:{'name':aH(0xfd),'desc':aH(0xf7),'config':k,'value':w(k,am=>am[aH(0x128)]?.[aH(0x113)]===b['engine'],0x0),'type':'select','action':am=>c(am)},0x2:{'name':aH(0x196),'desc':aH(0x11f),'config':i,'value':w(i,am=>am[aH(0x128)]?.['prType']===b['prType'],0x0),'type':aH(0x143),'action':am=>c(am)}}),V=({options:b,updateOption:c})=>({0x1:{'name':aH(0x137),'desc':'Show\x20a\x20confirmation\x20when\x20attempting\x20to\x20leave\x20the\x20site.','value':!!b[aH(0x162)],'type':'switch','action':am=>{const aO=aH;setTimeout(()=>c({'beforeUnload':am})),location[aO(0x181)]();}},0x2:{'name':aH(0x182),'desc':aH(0x14a),'value':b['wServer']?b[aH(0x18a)]:(location['protocol']===aH(0x17a)?'wss:':aH(0x16d))+'//'+location['host']+aH(0x17f),'type':'input','action':am=>c({'wServer':am||null})},0x3:{'name':'Reset\x20Instance','desc':'Clear\x20your\x20site\x20data\x20if\x20you\x20are\x20having\x20issues.','type':'button','value':aH(0x1a1),'action':()=>s(async()=>{const {resetInstance:am}=await import('../BRwJe-3z.js').then(an=>an['h']);return{'resetInstance':am};},__vite__mapDeps([0,1,2,3]))[aH(0x1ab)](({resetInstance:am})=>am())}});function w(am,an,ao=0x0){const aP=aH,ap={'SWDeW':function(at,au){return at(au);},'pyzsg':'log','Swjwh':'table','ZvGOE':'trace','GoLEr':function(at,au){return at<au;},'MgHBU':function(at,au,av){return at(au,av);},'zBWMI':function(at){return at();}},aq=(function(){let at=!![];return function(au,av){const aw=at?function(){if(av){const ax=av['apply'](au,arguments);return av=null,ax;}}:function(){};return at=![],aw;};}()),ar=ap[aP(0x186)](aq,this,function(){const aQ=aP;let at;try{const aw=ap[aQ(0x109)](Function,'return\x20(function()\x20'+'{}.constructor(\x22return\x20this\x22)(\x20)'+');');at=aw();}catch(ax){at=window;}const au=at['console']=at['console']||{},av=[ap[aQ(0x170)],'warn','info','error','exception',ap['Swjwh'],ap[aQ(0x13a)]];for(let ay=0x0;ap['GoLEr'](ay,av[aQ(0x151)]);ay++){const az=aq['constructor'][aQ(0x1a4)]['bind'](aq),aA=av[ay],aB=au[aA]||az;az[aQ(0x10f)]=aq['bind'](aq),az['toString']=aB['toString']['bind'](aB),au[aA]=az;}});ap[aP(0x142)](ar);const as=am['find'](an);return as?as[aP(0x128)]:am[ao]['value'];}const ue=Object[aH(0x1b4)](Object[aH(0x144)]({'__proto__':null,'advancedConfig':V,'browsingConfig':R,'customizeConfig':$,'privacyConfig':K},Symbol['toStringTag'],{'value':aH(0x10e)})),de=({state:b,set:c})=>{const aR=aH,am={'JCJOM':'fixed\x20inset-0\x20bg-black/40\x20z-50','cprhm':'flex\x20justify-center\x20items-center\x20h-full','JChMx':aR(0x131),'AaABx':'panic-key-input','iFsgh':aR(0x150),'GxMYK':'bg-black/40','SVGxr':'Redirect\x20URL','qAuOp':aR(0x146),'htquc':aR(0x175),'bTTvC':aR(0x154),'GxkTd':function(au,av,aw){return au(av,aw);}},{options:an,updateOption:ao}=h(),[ap,aq]=u[aR(0x1a0)]({'key':'','url':''});u[aR(0x173)](()=>{if(b){const au=an['panic']||{'key':'','url':''};aq(au);}},[b,an[aR(0x17b)]]),u['useEffect'](()=>{const aT=aR,au=aw=>{const aS=g;aw['preventDefault']();let ax=[];aw[aS(0x117)]&&ax['push']('Ctrl'),aw[aS(0x139)]&&ax['push']('Alt'),aw[aS(0x129)]&&ax['push']('Shift'),aw[aS(0x191)]&&ax[aS(0x18d)](aS(0xf8)),ax['push'](aw['key'][aS(0x151)]===0x1?aw[aS(0x108)][aS(0xf2)]():aw['key']),aq(ay=>({...ay,'key':ax[aS(0x103)]('+')}));},av=document[aT(0x192)]('panic-key-input');return av&&av['addEventListener'](aT(0x1a9),au),()=>{av&&av['removeEventListener']('keydown',au);};},[]);const ar=au=>/^(https?:)?\/\//['test'](au)?au:aR(0xf4)+au,as=()=>{const aU=aR;c(!0x1),ao({'panic':{'key':ap['key'],'url':ar(ap[aU(0x155)][aU(0x105)]())}}),location['reload']();},at=ap['key']&&ap[aR(0x155)];return x['jsx'](a8,{'open':b,'onClose':()=>c(!0x1),'className':am['JCJOM'],'children':x[aR(0x194)]('div',{'className':am[aR(0x190)],'children':x[aR(0x17c)](a9,{'className':am['JChMx'],'style':{'backgroundColor':an[aR(0x16b)]||'#252f3e'},'children':[x['jsx'](aa,{'className':'text-[1rem]\x20mb-1','children':aR(0x15b)}),x[aR(0x17c)](ab,{'children':[x['jsx'](ac,{'className':aR(0xf3),'children':aR(0x14d)}),x[aR(0x194)](ad,{'id':am[aR(0x1b7)],'className':v(am[aR(0x19e)],an['type']==='dark'?am['GxMYK']:'bg-black/15'),'value':ap['key'],'onChange':()=>{}})]}),x[aR(0x17c)](ab,{'children':[x['jsx'](ac,{'className':aR(0xf3),'children':am['SVGxr']}),x[aR(0x194)](ad,{'className':v('w-full\x20h-10\x20pl-3\x20rounded-md\x20outline-0\x20border',an[aR(0x15e)]===am[aR(0x18b)]?'bg-black/40':'bg-black/15'),'value':ap['url'],'onChange':au=>aq({...ap,'url':au[aR(0x1b6)][aR(0x128)]})})]}),x[aR(0x17c)](aR(0x126),{'className':am[aR(0x11d)],'children':[x['jsx'](af,{'onClick':()=>c(!0x1),'className':'cursor-pointer\x20duration-150\x20hover:opacity-80','children':am['bTTvC']}),x['jsx'](af,{'onClick':at?as:void 0x0,'className':am[aR(0x17d)](v,at?'cursor-pointer\x20hover:opacity-80':aR(0xf5),'duration-150'),'children':'Confirm'})]})]})})});},N=({type:b,title:c})=>{const aV=aH,am={'HzfBe':function(ar){return ar();},'IWWyP':aV(0xfe),'EGKaH':aV(0x18f)},{options:an,updateOption:ao}=am[aV(0x1b3)](h),ap=b({'options':an,'updateOption':ao}),aq=Object['entries'](ap);return x[aV(0x17c)](aV(0x126),{'className':am[aV(0x180)],'children':[x[aV(0x194)]('h2',{'className':am['EGKaH'],'children':c}),x[aV(0x194)](aV(0x126),{'className':'rounded-xl\x20overflow-visible','children':aq['map'](([ar,as],at)=>x[aV(0x194)](ce,{...as,'isFirst':at===0x0,'isLast':at===aq['length']-0x1,'children':as[aV(0x188)]},ar))})]});},me=({setting:b})=>{const aW=aH,c={'LQZsg':function(at,au){return at===au;},'gjdsd':aW(0x146),'DGHcj':aW(0x156),'iZedO':'Privacy','Jvomq':function(at,au){return at===au;},'QPaOY':aW(0x107),'jBXyZ':'Browsing'},{options:am,updateOption:an}=h(),[ao,ap]=u[aW(0x1a0)](!0x1),aq=K({'options':am,'updateOption':an,'openPanic':()=>ap(!0x0)}),ar=v(aW(0x136),c['LQZsg'](am?.[aW(0x15e)],c[aW(0x13f)])||!am?.['type']?c['DGHcj']:aW(0x10d)),as=({children:at})=>x['jsxs']('div',{'className':v(t[aW(0x127)+(am['theme']||'default')],'flex\x20flex-1\x20flex-col\x20overflow-y-auto\x20py-6\x20px-4\x20sm:px-8\x20md:px-16',ar),'children':[at,x[aW(0x194)](de,{'state':ao,'set':ap})]});return x[aW(0x17c)](as,{'children':[b===aW(0x16a)&&x['jsx'](N,{'type':()=>aq,'title':c['iZedO']}),c['Jvomq'](b,'Customize')&&x[aW(0x194)](N,{'type':$,'title':c['QPaOY']}),b===c['jBXyZ']&&x['jsx'](N,{'type':R,'title':aW(0x172)}),b==='Advanced'&&x[aW(0x194)](N,{'type':V,'title':'Advanced'})]});};let I=[];function g(a,b){a=a-0xf0;const c=f();let d=c[a];return d;}const he=[{'name':'Privacy','icon':ag,'keywords':[aH(0x159),'cloak',aH(0x102),aH(0x14e),aH(0x15d),'about:blank','blank'],'key':'privacyConfig'},{'name':aH(0x107),'icon':ah,'keywords':['theme','color',aH(0x11b),'ui','interface','games','pages',aH(0x199),'scale',aH(0x134),aH(0x15a),aH(0x12d),'navbar',aH(0x13c),'donate',aH(0xff),aH(0x1b5),'tab\x20bar'],'key':'customizeConfig'},{'name':'Browsing','icon':ai,'keywords':[aH(0x138),'tab',aH(0x15e),aH(0x19d)],'key':aH(0x116)},{'name':aH(0x12c),'icon':aj,'keywords':[aH(0x16e),'type','bare',aH(0x14f),'debug','reset\x20instance',aH(0x158),aH(0xfc),aH(0x148)],'key':aH(0x1ae)}],ge=()=>{const aX=aH,b={'HkpCH':aX(0x13b),'Xdwvi':aX(0x18c),'WUpEA':'w-5','BKAFk':'ml-9\x20text-xs\x20text-gray-400\x20truncate','ItnBr':function(ay){return ay();},'JxJyR':function(ay,az){return ay>az;},'TTtuL':'div','phVNQ':aX(0x13d),'yKWiF':aX(0x168),'BdEUd':'w-4\x20mr-1.5','eKCIa':'bg-transparent\x20outline-hidden\x20w-full\x20text-sm','aKvAN':'mt-2\x20text-xs\x20text-gray-400\x20text-center\x20px-2'},{options:c,updateOption:am}=b['ItnBr'](h),[an,ao]=u[aX(0x1a0)](''),[ap,aq]=u['useState']('Privacy'),[ar,as]=u[aX(0x1a0)](!0x1);u[aX(0x173)](()=>{let ay=!0x0;return s(()=>Promise['resolve']()['then'](()=>ue),void 0)['then'](az=>{ay&&(I=he['map'](aA=>({...aA,'fn':az[aA['key']]})),as(!0x0));}),()=>{ay=!0x1;};},[]);const at=u[aX(0x147)](()=>ar?I[aX(0x133)](({fn:ay,...az})=>({...az,'items':Object['values'](ay({'options':c,'updateOption':am}))['map'](({name:aA,desc:aB})=>({'name':aA,'desc':aB}))})):[],[c,am,ar]),au=an[aX(0x105)]()['toLowerCase'](),av=u[aX(0x147)](()=>au?at[aX(0xf6)](({name:ay,keywords:az,items:aA})=>ay['toLowerCase']()[aX(0x11a)](au)||az['some'](aB=>aB[aX(0x1ad)]()['includes'](au))||aA['some'](aB=>aB['name'][aX(0x1ad)]()['includes'](au))):at,[at,au]),aw=u['useMemo'](()=>at['reduce']((ay,az)=>ay+az['items'][aX(0xf6)](aA=>aA['name'][aX(0x1ad)]()[aX(0x11a)](au))['length'],0x0),[at,au]),ax=!!au&&b[aX(0x15c)](av[aX(0x151)],0x0)&&!av['some'](ay=>ay[aX(0x16c)]['toLowerCase']()['includes'](au))&&av[aX(0x124)](ay=>ay[aX(0x12b)][aX(0x124)](az=>az[aX(0x1ad)]()[aX(0x11a)](au)));return x[aX(0x17c)]('div',{'className':'flex\x20flex-col\x20h-screen','children':[x['jsx'](b['TTtuL'],{'className':aX(0x111),'children':x['jsx'](al,{})}),x['jsxs'](aX(0x126),{'className':aX(0x123),'children':[x['jsxs'](b[aX(0x174)],{'className':v(t['settings-panelColor'],t['theme-'+(c[aX(0x121)]||'default')],aX(0x184)),'children':[x[aX(0x17c)](aX(0x126),{'className':b['phVNQ'],'style':{'backgroundColor':c['settingsSearchBar']||b['yKWiF']},'children':[x[aX(0x194)](ak,{'className':b['BdEUd']}),x['jsx'](aX(0x1a7),{'type':'text','placeholder':'Filter\x20settings','className':b['eKCIa'],'value':an,'onChange':ay=>ao(ay[aX(0x1b6)][aX(0x128)])})]}),ax&&x[aX(0x194)](b[aX(0x174)],{'className':b['aKvAN'],'children':'May\x20contain\x20what\x20you\x27re\x20looking\x20for'}),au&&b[aX(0x15c)](aw,0x1)&&x[aX(0x17c)]('div',{'className':'mt-2\x20text-xs\x20text-gray-400\x20text-center\x20px-2','children':[aX(0x1b1),aw,'\x20matching\x20settings']}),x[aX(0x194)](b[aX(0x174)],{'className':'flex\x20flex-col\x20gap-3\x20mt-5','children':av['map'](({name:ay,icon:az,items:aA})=>{const aY=aX,aB=au?aA[aY(0xf6)](aC=>aC['name']['toLowerCase']()[aY(0x11a)](au)):[];return x[aY(0x17c)]('div',{'className':v('w-full\x20flex\x20flex-col\x20rounded-xl\x20duration-75\x20cursor-pointer\x20px-5\x20py-2',ap!==ay&&'bg-transparent\x20hover:bg-[#ffffff23]'),'style':{'backgroundColor':ap===ay?c[aY(0x149)]||b[aY(0x16f)]:void 0x0},'onClick':()=>aq(aC=>aC===ay?'':ay),'children':[x[aY(0x17c)]('div',{'className':b[aY(0x14b)],'children':[x['jsx'](az,{'className':b['WUpEA']}),x[aY(0x194)]('p',{'className':'mx-4','children':ay})]}),aB['length']>0x0&&x[aY(0x194)]('p',{'className':b[aY(0x125)],'children':aB[aY(0x133)](aC=>aC['name'])['join'](',\x20')})]},ay);})})]}),ar?x[aX(0x194)](me,{'setting':ap}):x[aX(0x194)]('div',{'className':'flex-1\x20flex\x20items-center\x20justify-center\x20text-sm','children':aX(0x18e)})]})]});};export{ge as default};