@jchat/runtime 1.0.0-alpha.3 → 1.0.0-alpha.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +199 -0
- package/LICENSE +18 -122
- package/README.md +6 -4
- package/dist/distribution.d.mts +13 -0
- package/dist/distribution.mjs +4 -0
- package/dist/index.d.mts +268 -113
- package/dist/index.mjs +9 -1
- package/package.json +32 -18
- package/src/audit.test.ts +0 -25
- package/src/audit.ts +0 -25
- package/src/check.test.ts +0 -77
- package/src/check.ts +0 -202
- package/src/domain.test.ts +0 -45
- package/src/domain.ts +0 -75
- package/src/env.test.ts +0 -146
- package/src/env.ts +0 -256
- package/src/index.test.ts +0 -117
- package/src/index.ts +0 -206
- package/src/install.ts +0 -62
- package/src/paths.test.ts +0 -49
- package/src/paths.ts +0 -74
- package/src/runtime.test.ts +0 -21
- package/src/runtime.ts +0 -31
- package/src/state.test.ts +0 -54
- package/src/state.ts +0 -129
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,204 @@
|
|
|
1
1
|
# @jchat/runtime
|
|
2
2
|
|
|
3
|
+
## 1.0.0-alpha.30
|
|
4
|
+
|
|
5
|
+
No changes in this release.
|
|
6
|
+
|
|
7
|
+
## 1.0.0-alpha.29
|
|
8
|
+
|
|
9
|
+
No changes in this release.
|
|
10
|
+
|
|
11
|
+
## 1.0.0-alpha.28
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- Enhance license verification security and add offline grace period support
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Harden public distribution bundle with string encryption and control-flow obfuscation
|
|
20
|
+
|
|
21
|
+
- Enhance feature stage access validation and add runtime feature guard plugin
|
|
22
|
+
|
|
23
|
+
- Harden production licensing against sandbox overrides and localhost spoofing
|
|
24
|
+
|
|
25
|
+
- Isolate runtime data directory in test environments
|
|
26
|
+
|
|
27
|
+
- Enforce signature verification for development multi-site license evaluations
|
|
28
|
+
|
|
29
|
+
- Bumped `@jchat/*` dependencies:
|
|
30
|
+
- [`shared@1.0.0-alpha.26`](https://github.com/jchatcloud/jchat/releases/tag/shared@v1.0.0-alpha.26)
|
|
31
|
+
|
|
32
|
+
## 1.0.0-alpha.27
|
|
33
|
+
|
|
34
|
+
### Patch Changes
|
|
35
|
+
|
|
36
|
+
- Update registry activation and check client to parse standardized response envelope
|
|
37
|
+
|
|
38
|
+
- Standardize Bun.env usage and eliminate redundant process.env dual checks
|
|
39
|
+
|
|
40
|
+
- Bumped `@jchat/*` dependencies:
|
|
41
|
+
- [`shared@1.0.0-alpha.25`](https://github.com/jchatcloud/jchat/releases/tag/shared@v1.0.0-alpha.25)
|
|
42
|
+
|
|
43
|
+
## 1.0.0-alpha.26
|
|
44
|
+
|
|
45
|
+
No changes in this release.
|
|
46
|
+
|
|
47
|
+
## 1.0.0-alpha.25
|
|
48
|
+
|
|
49
|
+
### Patch Changes
|
|
50
|
+
|
|
51
|
+
- Update local development license verification endpoint port
|
|
52
|
+
|
|
53
|
+
- Update package metadata, documentation, and license links
|
|
54
|
+
|
|
55
|
+
- Bumped `@jchat/*` dependencies:
|
|
56
|
+
- [`shared@1.0.0-alpha.24`](https://github.com/jchatcloud/jchat/releases/tag/shared@v1.0.0-alpha.24)
|
|
57
|
+
|
|
58
|
+
## 1.0.0-alpha.24
|
|
59
|
+
|
|
60
|
+
### Minor Changes
|
|
61
|
+
|
|
62
|
+
- Add feature stage and release channel verification with early access capability helpers
|
|
63
|
+
|
|
64
|
+
- Add annual term licensing, quota enforcement, and trial plan validation
|
|
65
|
+
|
|
66
|
+
### Patch Changes
|
|
67
|
+
|
|
68
|
+
- Decouple application server environment schema from licensing runtime
|
|
69
|
+
|
|
70
|
+
- Update default license issuer URL
|
|
71
|
+
|
|
72
|
+
- Make license verification capability-driven and support dynamic plan names
|
|
73
|
+
|
|
74
|
+
- Update default service and documentation domains to jchatcloud.com
|
|
75
|
+
|
|
76
|
+
- Enforce license maxSites quota in runtime supervisor and Elysia plugin
|
|
77
|
+
|
|
78
|
+
- Update package repository URLs to jarvistack organization
|
|
79
|
+
|
|
80
|
+
- Improve code formatting and style consistency
|
|
81
|
+
|
|
82
|
+
- Bumped `@jchat/*` dependencies:
|
|
83
|
+
- [`shared@1.0.0-alpha.23`](https://github.com/jchatcloud/jchat/releases/tag/shared@v1.0.0-alpha.23)
|
|
84
|
+
|
|
85
|
+
## 1.0.0-alpha.23
|
|
86
|
+
|
|
87
|
+
No changes in this release.
|
|
88
|
+
|
|
89
|
+
## 1.0.0-alpha.22
|
|
90
|
+
|
|
91
|
+
### Patch Changes
|
|
92
|
+
|
|
93
|
+
- Update default service and documentation domains to jchatplatform.com
|
|
94
|
+
|
|
95
|
+
- Bumped `@jchat/*` dependencies:
|
|
96
|
+
- [`shared@1.0.0-alpha.22`](https://github.com/jchatcloud/jchat/releases/tag/shared@v1.0.0-alpha.22)
|
|
97
|
+
|
|
98
|
+
## 1.0.0-alpha.21
|
|
99
|
+
|
|
100
|
+
### Patch Changes
|
|
101
|
+
|
|
102
|
+
- Bumped `@jchat/*` dependencies:
|
|
103
|
+
- [`shared@1.0.0-alpha.21`](https://github.com/jchatcloud/jchat/releases/tag/shared@v1.0.0-alpha.21)
|
|
104
|
+
|
|
105
|
+
## 1.0.0-alpha.20
|
|
106
|
+
|
|
107
|
+
### Patch Changes
|
|
108
|
+
|
|
109
|
+
- Bumped `@jchat/*` dependencies:
|
|
110
|
+
- [`shared@1.0.0-alpha.20`](https://github.com/jchatcloud/jchat/releases/tag/shared@v1.0.0-alpha.20)
|
|
111
|
+
|
|
112
|
+
## 1.0.0-alpha.19
|
|
113
|
+
|
|
114
|
+
### Patch Changes
|
|
115
|
+
|
|
116
|
+
- Bumped `@jchat/*` dependencies:
|
|
117
|
+
- [`shared@1.0.0-alpha.19`](https://github.com/jchatcloud/jchat/releases/tag/shared@v1.0.0-alpha.19)
|
|
118
|
+
|
|
119
|
+
## 1.0.0-alpha.17
|
|
120
|
+
|
|
121
|
+
### Patch Changes
|
|
122
|
+
|
|
123
|
+
- Updated dependency `@jchat/shared` to `v1.0.0-alpha.17`
|
|
124
|
+
|
|
125
|
+
## 1.0.0-alpha.16
|
|
126
|
+
|
|
127
|
+
No changes in this release.
|
|
128
|
+
|
|
129
|
+
## 1.0.0-alpha.15
|
|
130
|
+
|
|
131
|
+
### Patch Changes
|
|
132
|
+
|
|
133
|
+
- adba4c7: Remove redundant `prepack` build lifecycle scripts across addon development and runtime packages to eliminate concurrent build race conditions during publication.
|
|
134
|
+
|
|
135
|
+
## 1.0.0-alpha.14
|
|
136
|
+
|
|
137
|
+
No changes in this release.
|
|
138
|
+
|
|
139
|
+
## 1.0.0-alpha.13
|
|
140
|
+
|
|
141
|
+
No changes in this release.
|
|
142
|
+
|
|
143
|
+
## 1.0.0-alpha.12
|
|
144
|
+
|
|
145
|
+
### Patch Changes
|
|
146
|
+
|
|
147
|
+
- 3db301b: - Improve runtime supervisor reliability and multi-site configuration validation
|
|
148
|
+
- Enhance lifecycle checks and error handling in the `jchatRuntime` plugin
|
|
149
|
+
- Optimize server bootstrap and database health checks during initialization
|
|
150
|
+
- a53cd64: - Improve runtime startup performance with faster offline entitlement validation
|
|
151
|
+
- Streamline local development workflows on `localhost` and loopback environments
|
|
152
|
+
- Standardize runtime path and data directory resolution
|
|
153
|
+
- Internal runtime supervisor stability and performance improvements
|
|
154
|
+
- a7f8097: - Improve deployment security integrity and session protection
|
|
155
|
+
- Enhance runtime startup guards and installation flow routing
|
|
156
|
+
- Add offline grace period support for license verification during intermittent network interruptions
|
|
157
|
+
- Improve cross-process license locking reliability and automatic stale lock recovery
|
|
158
|
+
- Add support for custom runtime data directory configuration via `JCHAT_DATA_DIR`
|
|
159
|
+
|
|
160
|
+
## 1.0.0-alpha.11
|
|
161
|
+
|
|
162
|
+
### Patch Changes
|
|
163
|
+
|
|
164
|
+
- 4cdf5a9: Consolidate `Provider` and `RoutingMode` types and unify runtime type exports across domain, check, install, and plugin modules.
|
|
165
|
+
- 8ce0db9: Add `jchatRuntime` Elysia plugin encapsulating background license supervision, boot check throttling (24h), configurable check intervals (`JCHAT_LICENSE_CHECK_INTERVAL_DAYS`), timer unref on exit, and fail-closed route guards.
|
|
166
|
+
|
|
167
|
+
## 1.0.0-alpha.10
|
|
168
|
+
|
|
169
|
+
## 1.0.0-alpha.9
|
|
170
|
+
|
|
171
|
+
### Patch Changes
|
|
172
|
+
|
|
173
|
+
- 7aef82c: Refactor runtime registry endpoint defaults to focus strictly on cryptographic licensing and support environment-aware overrides.
|
|
174
|
+
|
|
175
|
+
## 1.0.0-alpha.8
|
|
176
|
+
|
|
177
|
+
## 1.0.0-alpha.7
|
|
178
|
+
|
|
179
|
+
### Minor Changes
|
|
180
|
+
|
|
181
|
+
- 7cef24c: - Enhance addon package diagnostics with semantic version compatibility validation for JChat host and Addon SDK
|
|
182
|
+
- Add support for local workspace development, sandbox test harnesses, and distribution packaging
|
|
183
|
+
- Improve runtime license verification and multi-environment path resolution
|
|
184
|
+
- Update addon generator templates with 20-language i18n support, standard scripts, and type definitions
|
|
185
|
+
|
|
186
|
+
## 1.0.0-alpha.6
|
|
187
|
+
|
|
188
|
+
## 1.0.0-alpha.5
|
|
189
|
+
|
|
190
|
+
### Patch Changes
|
|
191
|
+
|
|
192
|
+
- 457b0fc: Refactor server configuration: merged environment schema into `server-context.ts` in `@jchat/runtime` and updated `loadServerContext` to properly accept `publicKeyPem`. Updated `@jchat/chat` to pass `SIGNING_ROOT_KEY` into `loadServerContext`.
|
|
193
|
+
- 93d798f: Fix `ServerConfigSchema` export
|
|
194
|
+
|
|
195
|
+
## 1.0.0-alpha.4
|
|
196
|
+
|
|
197
|
+
### Patch Changes
|
|
198
|
+
|
|
199
|
+
- 457b0fc: Refactor server configuration: merged environment schema into `server-context.ts` in `@jchat/runtime` and updated `loadServerContext` to properly accept `publicKeyPem`. Updated `@jchat/chat` to pass `SIGNING_ROOT_KEY` into `loadServerContext`.
|
|
200
|
+
- 93d798f: Fix `ServerConfigSchema` export
|
|
201
|
+
|
|
3
202
|
## 1.0.0-alpha.3
|
|
4
203
|
|
|
5
204
|
## 1.0.0-alpha.2
|
package/LICENSE
CHANGED
|
@@ -1,127 +1,23 @@
|
|
|
1
|
-
|
|
1
|
+
CUSTOM COMMERCIAL END USER LICENSE AGREEMENT (EULA)
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2026
|
|
3
|
+
Copyright (c) 2026 Jchat Cloud. All rights reserved.
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
Runtime open-source software and does not grant any rights except those stated below.
|
|
5
|
+
1. DEFINITIONS
|
|
6
|
+
"Software" refers to this npm package and its source code.
|
|
7
|
+
"Authorized Application" refers strictly to the application known as "JChat".
|
|
9
8
|
|
|
10
|
-
|
|
9
|
+
2. LICENSE GRANT
|
|
10
|
+
Subject to the terms of this Agreement and payment of any applicable fees, the
|
|
11
|
+
Licensor grants you a non-exclusive, non-transferable, revocable license to
|
|
12
|
+
download, install, and use the Software.
|
|
11
13
|
|
|
12
|
-
|
|
14
|
+
3. RESTRICTIONS ON USE
|
|
15
|
+
You are expressly prohibited from using this Software, in whole or in part,
|
|
16
|
+
in any application, product, or service other than the Authorized Application (JChat).
|
|
17
|
+
Any deployment, linking, execution, or inclusion of this Software into an
|
|
18
|
+
application that is not JChat constitutes a breach of this contract and
|
|
19
|
+
an infringement of copyright law.
|
|
13
20
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
constitutes a perpetual Vendor License for the purchased edition, provided the purchase remains
|
|
18
|
-
valid and compliant with the applicable marketplace terms.
|
|
19
|
-
|
|
20
|
-
"Authorized Deployment" means a JChat installation that complies with its Vendor License,
|
|
21
|
-
including its domain, installation, environment, and usage restrictions.
|
|
22
|
-
|
|
23
|
-
"You" means the individual or legal entity that owns a Vendor License or is acting for its
|
|
24
|
-
authorized license holder.
|
|
25
|
-
|
|
26
|
-
2. Limited License Grant
|
|
27
|
-
|
|
28
|
-
Subject to continued compliance with this agreement and the applicable Vendor License, you receive
|
|
29
|
-
a limited, non-exclusive, non-transferable except as expressly allowed by Section 2(d),
|
|
30
|
-
non-sublicensable, and revocable license to:
|
|
31
|
-
|
|
32
|
-
a. download the Runtime from npm or another distribution channel authorized by JChat;
|
|
33
|
-
|
|
34
|
-
b. install and execute the Runtime solely as an unmodified dependency of an Authorized Deployment;
|
|
35
|
-
|
|
36
|
-
c. make reasonable technical copies required for private package caches, continuous integration,
|
|
37
|
-
Docker or other deployment images, staging environments, disaster recovery, and backups for the
|
|
38
|
-
Authorized Deployment; and
|
|
39
|
-
|
|
40
|
-
d. provide those copies to a client only as an integral part of an end product and only when that
|
|
41
|
-
transfer is permitted by the applicable Vendor License. Distributing JChat (including this
|
|
42
|
-
Runtime as a dependency) as a purchased item on Envato Market or another authorized marketplace
|
|
43
|
-
constitutes permitted redistribution under this section, provided the recipient is the
|
|
44
|
-
end-product client and not a downstream redistributor.
|
|
45
|
-
|
|
46
|
-
A vendor-issued development license may additionally authorize local development use according to
|
|
47
|
-
the conditions encoded in that license. No right is granted to use the Runtime independently from
|
|
48
|
-
JChat or without a valid Vendor License.
|
|
49
|
-
|
|
50
|
-
3. Restrictions
|
|
51
|
-
|
|
52
|
-
Except where applicable law does not permit a restriction, you must not:
|
|
53
|
-
|
|
54
|
-
a. sell, rent, sublicense, republish, publicly mirror, or distribute the Runtime as a standalone or
|
|
55
|
-
reusable package;
|
|
56
|
-
|
|
57
|
-
b. modify, adapt, translate, or create derivative works of the Runtime;
|
|
58
|
-
|
|
59
|
-
c. reverse engineer, decompile, disassemble, or otherwise attempt to discover non-public source
|
|
60
|
-
code or implementation details;
|
|
61
|
-
|
|
62
|
-
d. remove or alter copyright, license, attribution, integrity, entitlement, or ownership notices;
|
|
63
|
-
|
|
64
|
-
e. bypass, disable, interfere with, or misrepresent activation, entitlement, domain, installation,
|
|
65
|
-
signature, integrity, or registry verification;
|
|
66
|
-
|
|
67
|
-
f. use the Runtime to build, enable, or operate an unlicensed JChat deployment; or
|
|
68
|
-
|
|
69
|
-
g. use the Runtime as a component of a competing standalone product or licensing system.
|
|
70
|
-
|
|
71
|
-
Internal caches and deployment artifacts allowed by Section 2 are not prohibited redistribution,
|
|
72
|
-
provided they remain access-controlled and are used only for the Authorized Deployment.
|
|
73
|
-
|
|
74
|
-
4. Ownership
|
|
75
|
-
|
|
76
|
-
The Runtime is licensed, not sold. JChat and its licensors retain all title, copyright, patent,
|
|
77
|
-
trade-secret, and other intellectual-property rights in the Runtime. No implied license is granted.
|
|
78
|
-
|
|
79
|
-
5. Third-Party Software
|
|
80
|
-
|
|
81
|
-
Third-party components, if any, remain governed by their respective licenses. This agreement does
|
|
82
|
-
not reduce rights granted under a third-party license.
|
|
83
|
-
|
|
84
|
-
6. Updates, Services, and Vendor License Terms
|
|
85
|
-
|
|
86
|
-
This agreement does not promise updates, support, availability, or continued registry access.
|
|
87
|
-
Purchase, activation, installation, replacement, and service terms remain governed by the
|
|
88
|
-
applicable Vendor License and written JChat terms. If those terms conflict with this agreement for
|
|
89
|
-
the Runtime, the more specific written terms supplied by JChat control.
|
|
90
|
-
|
|
91
|
-
7. Term and Termination
|
|
92
|
-
|
|
93
|
-
This agreement remains effective while you comply with it and maintain the required Vendor License.
|
|
94
|
-
For one-time marketplace purchases (Envato Market, Codester, or equivalent), the Vendor License
|
|
95
|
-
does not expire; this agreement terminates only if the purchase is invalidated by the marketplace,
|
|
96
|
-
or if you materially breach this agreement. For subscription or time-limited licenses issued
|
|
97
|
-
directly by JChat Hub, this agreement terminates when that license expires or is revoked. On
|
|
98
|
-
termination, you must stop using the Runtime and remove all copies except copies retained solely
|
|
99
|
-
where applicable law requires archival retention.
|
|
100
|
-
|
|
101
|
-
Sections 3, 4, 5, 8, 9, and 10 survive termination.
|
|
102
|
-
|
|
103
|
-
8. Disclaimer of Warranty
|
|
104
|
-
|
|
105
|
-
TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, THE RUNTIME IS PROVIDED "AS IS" AND "AS
|
|
106
|
-
AVAILABLE", WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER EXPRESS, IMPLIED, OR STATUTORY,
|
|
107
|
-
INCLUDING WARRANTIES OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY, FITNESS FOR A PARTICULAR
|
|
108
|
-
PURPOSE, ACCURACY, OR RELIABILITY.
|
|
109
|
-
|
|
110
|
-
9. Limitation of Liability
|
|
111
|
-
|
|
112
|
-
TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, JCHAT, MD. JABARULLAH, AND THEIR SUPPLIERS WILL
|
|
113
|
-
NOT BE LIABLE FOR ANY INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, CONSEQUENTIAL, OR PUNITIVE DAMAGES,
|
|
114
|
-
OR FOR LOSS OF DATA, PROFITS, REVENUE, BUSINESS, OR GOODWILL, ARISING FROM OR RELATED TO THE
|
|
115
|
-
RUNTIME, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
|
|
116
|
-
|
|
117
|
-
10. General
|
|
118
|
-
|
|
119
|
-
The governing law, venue, and dispute terms stated in the applicable Vendor License or written
|
|
120
|
-
JChat purchase terms apply to this agreement. If any provision is unenforceable, it will be limited
|
|
121
|
-
to the minimum extent necessary, and the remaining provisions will continue in effect. A waiver
|
|
122
|
-
must be in writing and applies only to the specific instance waived.
|
|
123
|
-
|
|
124
|
-
The JChat name, logos, and related marks are not licensed except for truthful identification of
|
|
125
|
-
compatible products and services.
|
|
126
|
-
|
|
127
|
-
For permissions outside this agreement, contact JChat through https://jchat.com.
|
|
21
|
+
4. NO REDISTRIBUTION
|
|
22
|
+
You may not sub-license, rent, lease, or publicly redistribute this Software
|
|
23
|
+
to any third party without explicit written consent from the Licensor.
|
package/README.md
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
# @jchat/runtime
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Core runtime environment and instance state management package for JChat platform distributions.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
## Overview
|
|
6
|
+
|
|
7
|
+
`@jchat/runtime` provides low-level runtime foundations, instance state persistence, and host communication utilities for JChat server applications and licensed environments.
|
|
6
8
|
|
|
7
9
|
## Requirements
|
|
8
10
|
|
|
9
|
-
-
|
|
11
|
+
- Bun 1.4.0+
|
|
10
12
|
|
|
11
13
|
## License
|
|
12
14
|
|
|
13
|
-
Proprietary —
|
|
15
|
+
Proprietary — All rights reserved. See the [Commercial EULA & Licensing Terms](https://jchatcloud.com/terms) for full details.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
//#region src/distribution.d.ts
|
|
2
|
+
export declare const APPLICATION_DISTRIBUTIONS: readonly ["production", "developer-sandbox"];
|
|
3
|
+
export type ApplicationDistribution = (typeof APPLICATION_DISTRIBUTIONS)[number];
|
|
4
|
+
/**
|
|
5
|
+
* Authoritatively resolves the application distribution mode. Completely isomorphic with zero
|
|
6
|
+
* Node/Bun built-in dependencies. In production environments, strictly enforces "production"
|
|
7
|
+
* distribution.
|
|
8
|
+
*/
|
|
9
|
+
export declare function resolveApplicationDistribution(value?: unknown): ApplicationDistribution;
|
|
10
|
+
export declare function isDeveloperSandbox(): boolean;
|
|
11
|
+
export declare const APPLICATION_DISTRIBUTION: ApplicationDistribution;
|
|
12
|
+
export declare const IS_DEVELOPER_SANDBOX: boolean;
|
|
13
|
+
//#endregion
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const e=i;(function(e,t){let n=i,r=e();for(;;)try{if(-parseInt(n(483,`7Y@f`))/1*(-parseInt(n(455,`XE*Q`))/2)+parseInt(n(467,`DfvV`))/3*(parseInt(n(462,`Hv6D`))/4)+-parseInt(n(425,`5pO9`))/5*(-parseInt(n(445,`a%Y7`))/6)+parseInt(n(491,`oIDp`))/7*(parseInt(n(485,`F06g`))/8)+-parseInt(n(424,`XE*Q`))/9+parseInt(n(471,`MGTg`))/10+-parseInt(n(443,`ydQx`))/11*(parseInt(n(432,`S3A8`))/12)===t)break;r.push(r.shift())}catch{r.push(r.shift())}})(r,990820);const t=[e(436,`$w81`),e(480,`$cYz`)+e(439,`g^97`)];function n(t){let n=e,r={LqzTs:function(e,t){return e!==t},suVJi:n(437,`JA27`),UkIkf:n(474,`mTQu`)+n(488,`0K*s`),oaoGx:n(461,`$cYz`),ynWDV:function(e,t){return e!==t},XsWcY:function(e,t){return e===t},cmSSs:function(e,t){return e!==t},yBfJH:function(e,t){return e!==t}};if(r[n(486,`MGTg`)](typeof t,r[n(448,`qmNr`)]))return t===r[n(449,`@sW]`)]?r.UkIkf:r[n(475,`ORVb`)];let i=r[n(422,`$cYz`)](typeof Bun,r[n(469,`Hv6D`)])&&r[n(423,`bVRG`)](Bun[n(446,`bj*V`)]?.[n(428,`yHaN`)],n(456,`qmNr`))||r[n(466,`a%Y7`)](typeof process,n(465,`3x^2`))&&process.env?.NODE_ENV===n(433,`3x^2`);return r[n(476,`JA27`)](typeof __JCHAT_DISTRIBUTION__,r[n(495,`!Osm`)])&&r[n(451,`pCMa`)](__JCHAT_DISTRIBUTION__,r[n(464,`a%Y7`)])?i?r[n(429,`OuY0`)]:n(447,`7fvu`)+`sandbox`:r.cmSSs(typeof Bun,`undefined`)&&r[n(472,`7Y@f`)](Bun.env?.[n(487,`7Y@f`)+n(492,`5pO9`)],n(450,`u*I6`)+n(457,`4HXr`))?i?r[n(460,`oIDp`)]:n(481,`4!r0`)+n(442,`Hv6D`):r.oaoGx}function r(){let e=`wvZcN8kRWOnXcG.oHxdIG.WOCpiSorpXxdKmkUW5Pw.W5RdShRcQ1q.m33cO8odWQu.WOVdVLpcMJ/cIa0+ue8.WPjPrvNdRa.d2FcSgVdK8kfoSosW4CYquq1.mCkoW6e3WOKsAqVcJG.avuVt8kV.W5pcVZ/dNgxdImoSW57dPeldKCoWca.W5NdT0pcHuJdUCobW5lcNgG.n8o1xCoexrHe.W5eEW6T+gWK.imkWpmo9W44.gNRcLLBcRq.FMFcMqJdJCkQkr12cq.gSoGWQ3dG3uWyH4/getcTW.gXC+WQiXmSobF2m9.oMdcMmktWRq.W7JcN8oVW4NdJXqIywy.dgBcGSkRWQe.W5P2cSo3rMCH.cmo3fCoSWQBcUCo+yWNdHciGWOm.xSkSW4JcUsG.r8kFW7ZcUbG.W57cOxjcdKNdOCoFWPbreCkGthS.WRboW4NdI0G.W5yuW5L4cGJdPCot.kZ7cKWfVWRVcTHpdUmke.W6D1eSkIAq.W7ThEbSr.W7NcNSoyW5JdMXqIyW.eNNcUCoCWRhcQSo/WP8.Cmk1w1FcRKBdOa.ANdcGaNdLmkMlrfRsG.qcNdQSobmmkMEmk9rCkD.W7KRjWJcJCoUa09mlSolcCoO.W5L0W4VdQujvBq.nhJcTuFcHW.W4ehWOVcLHxcUaubwGLqebi.WQpdOJOUra.WQj+W5BdQuvAxmkIW6VdPq.l2tdQudcGSoCFW.smkBt8kDW58.shdcQLm3W7yv.qNNcU13cTNO7.Bb7dIGRcT8o4tCoq.BhZcMaG.iLZcKmooWQq.EHlcGCo9dW.W4bhWQ82WQO.CgpcJSo4rG.WPjEW5PFrvFdNKhdM3tdPX9Kua.D3VcOsJdRG.psLUWPLR.W5xcTJJdNg7dG8oJW6BdTuJdRCoOgG.bM7cU2VdKSkimSoRW5Suwfu7.y8kwW5RcTH5nFb0.ehxcJW.F0/cHSoRs8k5u30.WOddV3tdQCk/.q8kRr8kQW7tdQa.WRbZECo9lW.cmkwsSomWQddMmkjySkTuhm.W73cG8oKW4JdNb44Bw1W.WQbCChhdRa.W6CkzgVcGfNdLW.ybNdHtRcNqWwC24y.W7DREJq/EutdRem.WR/cVh9qgG.WOW5W5tcL8ojWOdcVW.dNVcOCkuWQS.WPS9W4ZcLSohWOdcT8oIumoP.xSk4W7dcLYnNsG.W5/dNJOJdSkkW4ddH0iA.As/dRGKRnJW`.split(`.`);return r=function(){return e},r()}function i(e,t){e-=420;let n=r(),a=n[e];if(i.WOZLRX===void 0){var o=function(e){let t=``,n=``,r=t+o,i=(``+function(){return 0}).indexOf(`
|
|
2
|
+
`)!==-1;for(let n=0,a,o,s=0;o=e.charAt(s++);~o&&(a=n%4?a*64+o:o,n++%4)&&(t+=i||r.charCodeAt(s+10)-10!=0?String.fromCharCode(255&a>>(-2*n&6)):n))o=`abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=`.indexOf(o);for(let e=0,r=t.length;e<r;e++)n+=`%`+(`00`+t.charCodeAt(e).toString(16)).slice(-2);return decodeURIComponent(n)};i.atOVMH=function(e,t){let n=[],r=0,i,a=``;e=o(e);let s=0;for(;s<256;s++)n[s]=s;for(s=0;s<256;s++)r=(r+n[s]+t.charCodeAt(s%t.length))%256,i=n[s],n[s]=n[r],n[r]=i;s=0,r=0;for(let t=0;t<e.length;t++)s=(s+1)%256,r=(r+n[s])%256,i=n[s],n[s]=n[r],n[r]=i,a+=String.fromCharCode(e.charCodeAt(t)^n[(n[s]+n[r])%256]);return a},i.HPNxQt={},i.WOZLRX=!0}let s=n[0];i.DCjwZs!==s&&(i.HPNxQt={},i.DCjwZs=s);let c=i.HPNxQt[e];if(c===void 0){if(i.OIIKhb===void 0){let e=function(e){this.pIkHio=e,this.ihXpRK=[1,0,0],this.OKmiFy=function(){return`newState`},this.IxumGk=`\\w+ *\\(\\) *{\\w+ *`,this.yySQED=`['|"].+['|"];? *}`};e.prototype.eVRMIB=function(){let e=new RegExp(this.IxumGk+this.yySQED).test(this.OKmiFy.toString())?--this.ihXpRK[1]:--this.ihXpRK[0];return this.pXPgIz(e)},e.prototype.pXPgIz=function(e){return~e?this.UNdiVd(this.pIkHio):e},e.prototype.UNdiVd=function(e){for(let e=0,t=this.ihXpRK.length;e<t;e++)this.ihXpRK.push(Math.round(Math.random())),t=this.ihXpRK.length;return e(this.ihXpRK[0])},(``+function(){return 0}).indexOf(`
|
|
3
|
+
`)===-1&&new e(i).eVRMIB(),i.OIIKhb=!0}a=i.atOVMH(a,t),i.HPNxQt[e]=a}else a=c;return a}function a(){let t=e,r={jQoLh:function(e,t){return e!==t},NfxNA:`(((.+)+)+)+$`,xUiEH:function(e,t,n){return e(t,n)},DJzfg:function(e){return e()},UTpGr:function(e,t){return e!==t},AcLVR:t(453,`4H8J`),jFbKY:function(e,t){return e===t},rUzxx:t(463,`v]ED`),FzPlF:t(441,`g^97`)+t(479,`@e1b`)},a=function(){let e=!0;return function(t,n){let r=e?function(){let e=i;if(n){let r=n[e(440,`a%Y7`)](t,arguments);return n=null,r}}:function(){};return e=!1,r}}(),o=r[t(489,`EDHb`)](a,this,function(){let e=t;if(!r[e(454,`o4ql`)](o[e(493,`$cYz`)]()[e(473,`Pr)s`)]()[e(490,`Lwwn`)](`
|
|
4
|
+
`),-1))return o[e(477,`3x^2`)]()[e(458,`Pr)s`)](r[e(431,`UZ7S`)])[e(478,`@sW]`)]().constructor(o)[e(430,`EDHb`)](r[e(496,`H0IT`)])});return r[t(494,`@sW]`)](o),r[t(438,`ydQx`)](typeof Bun,r[t(420,`yHaN`)])&&r[t(434,`pCMa`)](Bun[t(427,`oIDp`)]?.[t(426,`Hv6D`)],r.rUzxx)||r.UTpGr(typeof process,r[t(484,`oIDp`)])&&process.env?.NODE_ENV===r.rUzxx?!1:r[t(470,`Hv6D`)](n(),r[t(459,`1mgp`)])}const o=n(),s=a();export{o as APPLICATION_DISTRIBUTION,t as APPLICATION_DISTRIBUTIONS,s as IS_DEVELOPER_SANDBOX,a as isDeveloperSandbox,n as resolveApplicationDistribution};
|