@everframe/react-native 1.1.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/EverframeRN.podspec +5 -1
- package/README.md +60 -10
- package/android/build.gradle.kts +7 -6
- package/android/src/main/java/dev/everframe/rn/EverframeModule.kt +49 -3
- package/dist/NativeEverframe.d.ts +24 -1
- package/dist/browser-4GHZL7XI.js +1 -0
- package/dist/index.d.ts +396 -66
- package/dist/index.js +32 -26
- package/ios/Sources/EverframeBridge.swift +53 -56
- package/ios/Sources/EverframeModule.mm +17 -4
- package/package.json +4 -4
- package/src/NativeEverframe.ts +25 -2
- package/dist/browser-ZQAY6B4M.js +0 -1
|
@@ -44,11 +44,15 @@ import EverframeReporterUI // tvOS slice present per Package.swift:12 (TV-03
|
|
|
44
44
|
|
|
45
45
|
// MARK: - configure
|
|
46
46
|
|
|
47
|
+
// Serialize the bridge's start/idempotence decision with synchronous health reservation.
|
|
48
|
+
private static let configureLock = NSRecursiveLock()
|
|
49
|
+
|
|
47
50
|
@objc public static func configure(
|
|
48
|
-
|
|
51
|
+
sdkKey: NSString,
|
|
49
52
|
endpoint: NSString,
|
|
50
53
|
networkBodiesDisabled: Bool,
|
|
51
54
|
installIdentifierDisabled: Bool,
|
|
55
|
+
crashReportingDisabled: Bool,
|
|
52
56
|
attachPinUi: NSString?,
|
|
53
57
|
companionDeviceId: NSString?,
|
|
54
58
|
companionBadgeEnabled: Bool,
|
|
@@ -57,21 +61,31 @@ import EverframeReporterUI // tvOS slice present per Package.swift:12 (TV-03
|
|
|
57
61
|
theme: NSDictionary?,
|
|
58
62
|
vitalsEnabled: NSNumber?,
|
|
59
63
|
vitalsSampleRate: NSNumber?,
|
|
60
|
-
vitalsCaptureSourceQuery: NSNumber
|
|
64
|
+
vitalsCaptureSourceQuery: NSNumber?,
|
|
65
|
+
debugBuild: NSNumber?,
|
|
66
|
+
releaseHealthEnabled: Bool,
|
|
67
|
+
releaseHealthLoadedBuildId: NSString?,
|
|
68
|
+
releaseHealthUserId: NSString?,
|
|
69
|
+
releaseHealthIncludeDebugBuilds: Bool
|
|
61
70
|
) throws {
|
|
71
|
+
configureLock.lock()
|
|
72
|
+
defer { configureLock.unlock() }
|
|
62
73
|
// `endpoint` arg is retained for ObjC ABI compatibility with the
|
|
63
74
|
// codegen .mm — value is ignored. The SDK bakes the ingest URL at
|
|
64
75
|
// compile time (sdk-ios IngestEndpoint).
|
|
65
76
|
_ = endpoint
|
|
66
|
-
os_log("[everframe] configure
|
|
77
|
+
os_log("[everframe] configure sdkKey=%{public}@", log: log, type: .info, sdkKey as String)
|
|
67
78
|
// Polarity flips exactly once, here: JS sends the veto
|
|
68
79
|
// (`networkBodiesDisabled`), native stores the permission.
|
|
69
|
-
var cfg = EverframeConfig(
|
|
80
|
+
var cfg = EverframeConfig(sdkKey: sdkKey as String)
|
|
70
81
|
cfg.capture.networkBodies = !networkBodiesDisabled
|
|
71
82
|
// Polarity flips exactly once, here: JS sends the veto
|
|
72
83
|
// (`installIdentifierDisabled`), native stores the permission —
|
|
73
84
|
// identical to `networkBodies` above.
|
|
74
85
|
cfg.installIdentifierEnabled = !installIdentifierDisabled
|
|
86
|
+
// Polarity flips exactly once, here: JS sends the veto
|
|
87
|
+
// (`crashReportingDisabled`), native stores the permission.
|
|
88
|
+
cfg.capture.crash = !crashReportingDisabled
|
|
75
89
|
// Explicit companion device-identity override (naming spec
|
|
76
90
|
// 2026-08-24) — read straight off the flat ConfigOpts field, same
|
|
77
91
|
// shape as attachPinUi below. nil/absent falls through to the
|
|
@@ -106,57 +120,40 @@ import EverframeReporterUI // tvOS slice present per Package.swift:12 (TV-03
|
|
|
106
120
|
if let vitalsEnabled { cfg.vitals.enabled = vitalsEnabled.boolValue }
|
|
107
121
|
if let vitalsSampleRate { cfg.vitals.sampleRate = vitalsSampleRate.doubleValue }
|
|
108
122
|
if let vitalsCaptureSourceQuery { cfg.vitals.captureSourceQuery = vitalsCaptureSourceQuery.boolValue }
|
|
123
|
+
// Absent stays nil, so the native SDK detects a debug build itself; present wins.
|
|
124
|
+
cfg.debugBuild = debugBuild?.boolValue
|
|
109
125
|
// The attach-PIN UI mode for startCompanion() to read (spec 2026-08-19). configure()
|
|
110
126
|
// precedes startCompanion() in every host's lifecycle, so this is the natural place to
|
|
111
127
|
// parse the flat ConfigOpts string into the native enum; startCompanion is where it is
|
|
112
128
|
// actually consumed (RelayWSClient's announce arg + the suppression seam), since a mode
|
|
113
|
-
// can't affect anything before a relay client exists.
|
|
114
|
-
//
|
|
129
|
+
// can't affect anything before a relay client exists. A changed value forces native
|
|
130
|
+
// reconfiguration even when the SDK configuration itself compares equal.
|
|
115
131
|
let newAttachPinUi = Self.parseAttachPinUi(attachPinUi as String?)
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
// nothing. An identical configuration installs identical state, so the cheapest correct
|
|
124
|
-
// answer is not to start at all.
|
|
125
|
-
//
|
|
126
|
-
// Round-5 kept a cached snapshot of the options it last started with, and a cache can
|
|
127
|
-
// disagree with the singleton it claims to describe: two overlapping configures (A then
|
|
128
|
-
// B) can interleave so the cache says A while the SDK runs B, and a native host calling
|
|
129
|
-
// `Everframe.shared.start(configB)` between two bridge configures of A reproduces it with
|
|
130
|
-
// no concurrency at all — the second A matches the stale cached A, skips, and leaves B
|
|
131
|
-
// installed under a JS host that believes it configured A. `currentConfig` cannot drift:
|
|
132
|
-
// it IS the installed state.
|
|
133
|
-
//
|
|
134
|
-
// `captureGate` is the second term: a killed SDK must be restarted even by an identical
|
|
135
|
-
// config, or the host is left with a dead SDK and no way to revive it.
|
|
136
|
-
//
|
|
137
|
-
// Codex round-7, I3 — the comparison is the WHOLE config (`EverframeConfig` is now
|
|
138
|
-
// `Equatable`, matching Android's `data class`), not a rendering of the fields this
|
|
139
|
-
// bridge happens to set. Round-6 hand-built a string snapshot here, which meant any
|
|
140
|
-
// config field the snapshot's author had not listed — a new one, or one a native host
|
|
141
|
-
// set directly — read as "unchanged" and silently suppressed a start that was needed.
|
|
142
|
-
// `attachPinUi` is the one term that is NOT part of the config (it lands in module
|
|
143
|
-
// state), so it is compared separately.
|
|
144
|
-
//
|
|
145
|
-
// Everything else this method does still runs on the skip path — the presenter-resolver
|
|
146
|
-
// install and the crash-metadata prime — because both are idempotent and neither
|
|
147
|
-
// depends on a fresh start. The attach-PIN stash is the exception, and only nominally:
|
|
148
|
-
// on the skip path it would write the value it already holds.
|
|
149
|
-
let unchanged = Everframe.shared.captureGate
|
|
150
|
-
&& Everframe.shared.currentConfig == cfg
|
|
151
|
-
&& companionAttachPinUi == newAttachPinUi
|
|
152
|
-
if unchanged {
|
|
153
|
-
os_log("[everframe] configure: SDK already running this exact config — skipping start()",
|
|
154
|
-
log: log, type: .debug)
|
|
132
|
+
let health: ReleaseHealthConfiguration?
|
|
133
|
+
if releaseHealthEnabled, let loaded = releaseHealthLoadedBuildId {
|
|
134
|
+
// The SDK reads the app version itself; the bridge carries the loaded bundle, the user ID and
|
|
135
|
+
// whether debug builds count. A nil value (disabled, no loaded bundle, or an invalid identity) is off.
|
|
136
|
+
health = try? ReleaseHealthConfiguration(userId: releaseHealthUserId as String?,
|
|
137
|
+
loadedBuildId: loaded as String, loadedBundleStatus: .known,
|
|
138
|
+
includeDebugBuilds: releaseHealthIncludeDebugBuilds)
|
|
155
139
|
} else {
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
140
|
+
health = nil
|
|
141
|
+
}
|
|
142
|
+
// The bridge owns release health through `health` alone: it needs the loaded Hermes bundle, and a new
|
|
143
|
+
// user ID must reconfigure health without restarting the SDK. The native default
|
|
144
|
+
// (`EverframeConfig.releaseHealth`, on) must not arm anonymous sessions at start or take part in
|
|
145
|
+
// the unchanged-configuration comparison.
|
|
146
|
+
cfg.releaseHealth = nil
|
|
147
|
+
// Native code atomically checks installed config and reserves its exact owner.
|
|
148
|
+
// An identical configure preserves the session; a changed attach-PIN mode still
|
|
149
|
+
// requires the same full restart as the other native configuration changes.
|
|
150
|
+
let applyHealth = try Everframe.shared.configureAndPrepareReleaseHealth(
|
|
151
|
+
config: cfg, health: health, forceRestart: companionAttachPinUi != newAttachPinUi)
|
|
152
|
+
companionAttachPinUi = newAttachPinUi
|
|
153
|
+
// Reservation is tied to this configure's exact native start generation. Later
|
|
154
|
+
// configure/disable or a native restart invalidates the asynchronous operation.
|
|
155
|
+
if let applyHealth {
|
|
156
|
+
Task { _ = await applyHealth() }
|
|
160
157
|
}
|
|
161
158
|
installPresenterResolverIfNeeded()
|
|
162
159
|
// Spec 2026-09-17 setExtra-resolver — installed unconditionally,
|
|
@@ -219,9 +216,9 @@ import EverframeReporterUI // tvOS slice present per Package.swift:12 (TV-03
|
|
|
219
216
|
/// Wires `EFReporterPresenter` as the resolver for `Everframe.shared.report
|
|
220
217
|
/// .open()`. Called from configure(); the first call installs, subsequent
|
|
221
218
|
/// calls no-op. tvOS has no on-device modal — reporting goes through the
|
|
222
|
-
/// phone-companion flow (QR → phone browser) — so
|
|
223
|
-
///
|
|
224
|
-
///
|
|
219
|
+
/// phone-companion flow (QR → phone browser) — so EverframeReporterUI's
|
|
220
|
+
/// tvOS `installResolver()` is a no-op. The gate here skips that call and
|
|
221
|
+
/// logs where tvOS reporting goes instead.
|
|
225
222
|
private static func installPresenterResolverIfNeeded() {
|
|
226
223
|
#if !os(tvOS)
|
|
227
224
|
resolverInstallLock.lock()
|
|
@@ -296,7 +293,7 @@ import EverframeReporterUI // tvOS slice present per Package.swift:12 (TV-03
|
|
|
296
293
|
/// ObjC-visible read of whichever generation is live RIGHT NOW — i.e.
|
|
297
294
|
/// whatever the most recent `installExtraResolveHook()` call minted.
|
|
298
295
|
/// `EverframeModule.mm`'s `-configure:` calls this immediately after
|
|
299
|
-
/// `
|
|
296
|
+
/// `configureWithSdkKey:...:error:` (which, on success or on the
|
|
300
297
|
/// already-running-unchanged skip path, calls `installExtraResolveHook()`
|
|
301
298
|
/// internally) and stashes the result on its own instance ivar for
|
|
302
299
|
/// `-invalidate` to hand back later. 0 means no `configure()` call has
|
|
@@ -853,10 +850,10 @@ import EverframeReporterUI // tvOS slice present per Package.swift:12 (TV-03
|
|
|
853
850
|
/// presence", never "no socket": RelayWSClient skips the announce hop
|
|
854
851
|
/// entirely on a nil key and reporting is unaffected.
|
|
855
852
|
private static func configuredSdkKey() -> String? {
|
|
856
|
-
guard let
|
|
857
|
-
!
|
|
853
|
+
guard let sdkKey = Everframe.shared.currentConfig?.sdkKey,
|
|
854
|
+
!sdkKey.trimmingCharacters(in: .whitespacesAndNewlines).isEmpty
|
|
858
855
|
else { return nil }
|
|
859
|
-
return
|
|
856
|
+
return sdkKey
|
|
860
857
|
}
|
|
861
858
|
|
|
862
859
|
/// Non-personal device label for the dashboard's device list — "Apple TV",
|
|
@@ -110,7 +110,7 @@ RCT_EXPORT_MODULE(Everframe)
|
|
|
110
110
|
|
|
111
111
|
// Signature MUST match the codegen-emitted protocol in EverframeSpec.h:
|
|
112
112
|
// - (void)configure:(JS::NativeEverframe::ConfigOpts &)opts;
|
|
113
|
-
// Field accessors (.
|
|
113
|
+
// Field accessors (.sdkKey(), .sdkVersion(), .captureScreenshot(),
|
|
114
114
|
// .networkBodiesDisabled()) are inline methods on the JS::NativeEverframe::
|
|
115
115
|
// ConfigOpts struct, generated from the TS spec in src/NativeEverframe.ts.
|
|
116
116
|
// The ingest URL is no longer JS-supplied — the native SDK bakes it at
|
|
@@ -121,15 +121,17 @@ RCT_EXPORT_MODULE(Everframe)
|
|
|
121
121
|
// silently dropped on iOS today. Task 9 (spec 2026-08-12) only wires
|
|
122
122
|
// `networkBodiesDisabled` through; see task-9-report.md.
|
|
123
123
|
- (void)configure:(JS::NativeEverframe::ConfigOpts &)opts {
|
|
124
|
-
NSString *
|
|
124
|
+
NSString *sdkKey = opts.sdkKey() ?: @"";
|
|
125
125
|
BOOL networkBodiesDisabled = opts.networkBodiesDisabled().value_or(false);
|
|
126
126
|
// `installIdentifierDisabled` (MAI meter spec 2026-08-27) — `std::optional
|
|
127
127
|
// <bool>`, same shape as `networkBodiesDisabled()` above. Absent means the
|
|
128
128
|
// host said nothing, which is "send it": the SDK default is ON.
|
|
129
129
|
BOOL installIdentifierDisabled = opts.installIdentifierDisabled().value_or(false);
|
|
130
|
+
// `crashReportingDisabled` — same `std::optional<bool>` shape. Absent keeps capture on.
|
|
131
|
+
BOOL crashReportingDisabled = opts.crashReportingDisabled().value_or(false);
|
|
130
132
|
// `attachPinUi` (spec 2026-08-19) is a plain optional STRING field —
|
|
131
133
|
// `opts.attachPinUi()` returns a nullable NSString*, same shape as
|
|
132
|
-
// `opts.
|
|
134
|
+
// `opts.sdkKey()` above, NOT the `std::optional<bool>` shape
|
|
133
135
|
// `networkBodiesDisabled()` uses. `EverframeBridge.configure` coerces a
|
|
134
136
|
// nil/unrecognised value to `.builtin`.
|
|
135
137
|
NSString *attachPinUi = opts.attachPinUi();
|
|
@@ -179,11 +181,17 @@ RCT_EXPORT_MODULE(Everframe)
|
|
|
179
181
|
NSNumber *vitalsEnabled = opts.vitalsEnabled().has_value() ? @(opts.vitalsEnabled().value()) : nil;
|
|
180
182
|
NSNumber *vitalsSampleRate = opts.vitalsSampleRate().has_value() ? @(opts.vitalsSampleRate().value()) : nil;
|
|
181
183
|
NSNumber *vitalsCaptureSourceQuery = opts.vitalsCaptureSourceQuery().has_value() ? @(opts.vitalsCaptureSourceQuery().value()) : nil;
|
|
184
|
+
// `debugBuild` stays nil when absent so the native SDK decides for itself; the JS facade always sends it.
|
|
185
|
+
NSNumber *debugBuild = opts.debugBuild().has_value() ? @(opts.debugBuild().value()) : nil;
|
|
186
|
+
// Release health is on by default: a missing `releaseHealthEnabled` is on and only an explicit NO is
|
|
187
|
+
// off. The JS facade always sends the flag, so a missing value can only come from another caller.
|
|
188
|
+
// `releaseHealthIncludeDebugBuilds` is false when missing, matching the native SDK default.
|
|
182
189
|
NSError *err = nil;
|
|
183
|
-
[EverframeBridge
|
|
190
|
+
[EverframeBridge configureWithSdkKey:sdkKey
|
|
184
191
|
endpoint:@""
|
|
185
192
|
networkBodiesDisabled:networkBodiesDisabled
|
|
186
193
|
installIdentifierDisabled:installIdentifierDisabled
|
|
194
|
+
crashReportingDisabled:crashReportingDisabled
|
|
187
195
|
attachPinUi:attachPinUi
|
|
188
196
|
companionDeviceId:companionDeviceId
|
|
189
197
|
companionBadgeEnabled:companionBadgeEnabled
|
|
@@ -193,6 +201,11 @@ RCT_EXPORT_MODULE(Everframe)
|
|
|
193
201
|
vitalsEnabled:vitalsEnabled
|
|
194
202
|
vitalsSampleRate:vitalsSampleRate
|
|
195
203
|
vitalsCaptureSourceQuery:vitalsCaptureSourceQuery
|
|
204
|
+
debugBuild:debugBuild
|
|
205
|
+
releaseHealthEnabled:opts.releaseHealthEnabled().value_or(true)
|
|
206
|
+
releaseHealthLoadedBuildId:opts.releaseHealthLoadedBuildId()
|
|
207
|
+
releaseHealthUserId:opts.releaseHealthUserId()
|
|
208
|
+
releaseHealthIncludeDebugBuilds:opts.releaseHealthIncludeDebugBuilds().value_or(false)
|
|
196
209
|
error:&err];
|
|
197
210
|
if (err != nil) {
|
|
198
211
|
// Configure is void-typed at the spec; we can't reject a promise here.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@everframe/react-native",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "React Native SDK for Everframe — AI-ready in-app bug reporting, bridging the native iOS and Android reporter to your RN app. Supports phone, Apple TV, and Android TV.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Scriptx, UAB",
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
"dependencies": {
|
|
101
101
|
"bippy": "^0.5.39",
|
|
102
102
|
"zod": "^4.3.0",
|
|
103
|
-
"@everframe/react": "^1.
|
|
103
|
+
"@everframe/react": "^1.2.0"
|
|
104
104
|
},
|
|
105
105
|
"devDependencies": {
|
|
106
106
|
"@arethetypeswrong/cli": "^0.18.0",
|
|
@@ -112,8 +112,8 @@
|
|
|
112
112
|
"publint": "^0.3.0",
|
|
113
113
|
"tsup": "^8.0.0",
|
|
114
114
|
"vitest": "^4.0.0",
|
|
115
|
-
"@everframe/
|
|
116
|
-
"@everframe/
|
|
115
|
+
"@everframe/protocol": "0.7.0",
|
|
116
|
+
"@everframe/sdk-core": "0.6.0"
|
|
117
117
|
},
|
|
118
118
|
"codegenConfig": {
|
|
119
119
|
"name": "EverframeSpec",
|
package/src/NativeEverframe.ts
CHANGED
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
// an absent field, which decodes as `undefined` and never reaches native
|
|
66
66
|
// at all — to `.builtin`/`BUILTIN`. This rides `configure()`, not a new
|
|
67
67
|
// bridge method: the flag is a startup-time preference, not a per-call
|
|
68
|
-
// argument, so it belongs beside `
|
|
68
|
+
// argument, so it belongs beside `sdkKey`/`networkBodiesDisabled` on
|
|
69
69
|
// `ConfigOpts` — see `companion.ts`'s `everframe.companion.attachChallenge`
|
|
70
70
|
// event, the JS-facing half of this same D-decision.
|
|
71
71
|
// Session Vitals (spec 2026-09-06) is the next D-decision after that —
|
|
@@ -105,7 +105,7 @@ export type Rect = {
|
|
|
105
105
|
* Rich variants (e.g., callbacks, function refs) MUST stay on the JS side.
|
|
106
106
|
*/
|
|
107
107
|
export type ConfigOpts = {
|
|
108
|
-
|
|
108
|
+
sdkKey?: string;
|
|
109
109
|
sdkVersion?: string;
|
|
110
110
|
/**
|
|
111
111
|
* If true, the native side captures a UIWindow/SurfaceFlinger screenshot
|
|
@@ -131,6 +131,14 @@ export type ConfigOpts = {
|
|
|
131
131
|
* once polarity is flipped.
|
|
132
132
|
*/
|
|
133
133
|
installIdentifierDisabled?: boolean;
|
|
134
|
+
/**
|
|
135
|
+
* Client veto for automatic crash capture. `true` turns off the native SDKs' crash capture
|
|
136
|
+
* (JVM, native crashes and ANRs on Android; native crashes on iOS) as well as the JS handlers:
|
|
137
|
+
* both natives store `capture.crash = !crashReportingDisabled`. Flat because RN codegen rejects
|
|
138
|
+
* nested objects; `extractBridgeConfig` flattens the host-facing `crashReporting: { disabled }`.
|
|
139
|
+
* Absent means capture stays on.
|
|
140
|
+
*/
|
|
141
|
+
crashReportingDisabled?: boolean;
|
|
134
142
|
/**
|
|
135
143
|
* Built-in attach-PIN surface mode (spec 2026-08-19): 'builtin' (default —
|
|
136
144
|
* the native SDK presents the code itself), 'custom' (host renders it from
|
|
@@ -210,6 +218,21 @@ export type ConfigOpts = {
|
|
|
210
218
|
vitalsEnabled?: boolean;
|
|
211
219
|
vitalsSampleRate?: number;
|
|
212
220
|
vitalsCaptureSourceQuery?: boolean;
|
|
221
|
+
/**
|
|
222
|
+
* Whether this is a debug build, which Everframe never makes a release out of. The JS facade always
|
|
223
|
+
* sends it (the config's `debugBuild`, else `__DEV__`). Absent means the native SDK decides for itself.
|
|
224
|
+
*/
|
|
225
|
+
debugBuild?: boolean;
|
|
226
|
+
/**
|
|
227
|
+
* Native foreground monitoring (release health). The JS facade always sends this flag: `true` with a
|
|
228
|
+
* validated loaded bundle, or `false` to revoke monitoring. A bridge that finds it missing treats it as
|
|
229
|
+
* on, and only an explicit `false` as off. The native SDK reads the app version.
|
|
230
|
+
*/
|
|
231
|
+
releaseHealthEnabled?: boolean;
|
|
232
|
+
releaseHealthLoadedBuildId?: string;
|
|
233
|
+
releaseHealthUserId?: string;
|
|
234
|
+
/** Count debug builds, which the native SDKs skip by default. Absent means false. */
|
|
235
|
+
releaseHealthIncludeDebugBuilds?: boolean;
|
|
213
236
|
};
|
|
214
237
|
|
|
215
238
|
/**
|
package/dist/browser-ZQAY6B4M.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as f}from"./chunk-XUSV3KOD.js";var pn={},Xn=f((function(n,r,t,e,i){var a=new Worker(pn[r]||(pn[r]=URL.createObjectURL(new Blob([n+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return a.onmessage=function(o){var s=o.data,v=s.$e$;if(v){var h=new Error(v[0]);h.code=v[1],h.stack=v[2],i(h,null)}else i(null,s)},a.postMessage(t,e),a}),"wk"),U=Uint8Array,J=Uint16Array,Zr=Int32Array,xr=new U([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),zr=new U([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Ir=new U([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Mn=f(function(n,r){for(var t=new J(31),e=0;e<31;++e)t[e]=r+=1<<n[e-1];for(var i=new Zr(t[30]),e=1;e<30;++e)for(var a=t[e];a<t[e+1];++a)i[a]=a-t[e]<<5|e;return{b:t,r:i}},"freb"),Sn=Mn(xr,2),an=Sn.b,Rr=Sn.r;an[28]=258,Rr[258]=28;var Un=Mn(zr,0),Fn=Un.b,kr=Un.r,Br=new J(32768);for(B=0;B<32768;++B)ir=(B&43690)>>1|(B&21845)<<1,ir=(ir&52428)>>2|(ir&13107)<<2,ir=(ir&61680)>>4|(ir&3855)<<4,Br[B]=((ir&65280)>>8|(ir&255)<<8)>>1;var ir,B,k=f((function(n,r,t){for(var e=n.length,i=0,a=new J(r);i<e;++i)n[i]&&++a[n[i]-1];var o=new J(r);for(i=1;i<r;++i)o[i]=o[i-1]+a[i-1]<<1;var s;if(t){s=new J(1<<r);var v=15-r;for(i=0;i<e;++i)if(n[i])for(var h=i<<4|n[i],u=r-n[i],l=o[n[i]-1]++<<u,c=l|(1<<u)-1;l<=c;++l)s[Br[l]>>v]=h}else for(s=new J(e),i=0;i<e;++i)n[i]&&(s[i]=Br[o[n[i]-1]++]>>15-n[i]);return s}),"hMap"),ar=new U(288);for(B=0;B<144;++B)ar[B]=8;var B;for(B=144;B<256;++B)ar[B]=9;var B;for(B=256;B<280;++B)ar[B]=7;var B;for(B=280;B<288;++B)ar[B]=8;var B,wr=new U(32);for(B=0;B<32;++B)wr[B]=5;var B,Dn=k(ar,9,0),Tn=k(ar,9,1),Cn=k(wr,5,0),In=k(wr,5,1),$r=f(function(n){for(var r=n[0],t=1;t<n.length;++t)n[t]>r&&(r=n[t]);return r},"max"),X=f(function(n,r,t){var e=r/8|0;return(n[e]|n[e+1]<<8)>>(r&7)&t},"bits"),Hr=f(function(n,r){var t=r/8|0;return(n[t]|n[t+1]<<8|n[t+2]<<16)>>(r&7)},"bits16"),Ar=f(function(n){return(n+7)/8|0},"shft"),d=f(function(n,r,t){return(r==null||r<0)&&(r=0),(t==null||t>n.length)&&(t=n.length),new U(n.subarray(r,t))},"slc"),it={UnexpectedEOF:0,InvalidBlockType:1,InvalidLengthLiteral:2,InvalidDistance:3,StreamFinished:4,NoStreamHandler:5,InvalidHeader:6,NoCallback:7,InvalidUTF8:8,ExtraFieldTooLong:9,InvalidDate:10,FilenameTooLong:11,StreamFinishing:12,InvalidZipData:13,UnknownCompressionMethod:14},Bn=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],p=f(function(n,r,t){var e=new Error(r||Bn[n]);if(e.code=n,Error.captureStackTrace&&Error.captureStackTrace(e,p),!t)throw e;return e},"err"),Er=f(function(n,r,t,e){var i=n.length,a=e?e.length:0;if(!i||r.f&&!r.l)return t||new U(0);var o=!t,s=o||r.i!=2,v=r.i;o&&(t=new U(i*3));var h=f(function(Tr){var Cr=t.length;if(Tr>Cr){var pr=new U(Math.max(Cr*2,Tr));pr.set(t),t=pr}},"cbuf"),u=r.f||0,l=r.p||0,c=r.b||0,S=r.l,x=r.d,M=r.m,g=r.n,z=i*8;do{if(!S){u=X(n,l,1);var F=X(n,l+1,3);if(l+=3,F)if(F==1)S=Tn,x=In,M=9,g=5;else if(F==2){var G=X(n,l,31)+257,D=X(n,l+10,15)+4,m=G+X(n,l+5,31)+1;l+=14;for(var y=new U(m),O=new U(19),C=0;C<D;++C)O[Ir[C]]=X(n,l+C*3,7);l+=D*3;for(var q=$r(O),R=(1<<q)-1,P=k(O,q,1),C=0;C<m;){var H=P[X(n,l,R)];l+=H&15;var A=H>>4;if(A<16)y[C++]=A;else{var E=0,T=0;for(A==16?(T=3+X(n,l,3),l+=2,E=y[C-1]):A==17?(T=3+X(n,l,7),l+=3):A==18&&(T=11+X(n,l,127),l+=7);T--;)y[C++]=E}}var V=y.subarray(0,G),N=y.subarray(G);M=$r(V),g=$r(N),S=k(V,M,1),x=k(N,g,1)}else p(1);else{var A=Ar(l)+4,w=n[A-4]|n[A-3]<<8,Z=A+w;if(Z>i){v&&p(0);break}s&&h(c+w),t.set(n.subarray(A,Z),c),r.b=c+=w,r.p=l=Z*8,r.f=u;continue}if(l>z){v&&p(0);break}}s&&h(c+131072);for(var or=(1<<M)-1,K=(1<<g)-1,_=l;;_=l){var E=S[Hr(n,l)&or],W=E>>4;if(l+=E&15,l>z){v&&p(0);break}if(E||p(2),W<256)t[c++]=W;else if(W==256){_=l,S=null;break}else{var Y=W-254;if(W>264){var C=W-257,$=xr[C];Y=X(n,l,(1<<$)-1)+an[C],l+=$}var nr=x[Hr(n,l)&K],vr=nr>>4;nr||p(3),l+=nr&15;var N=Fn[vr];if(vr>3){var $=zr[vr];N+=Hr(n,l)&(1<<$)-1,l+=$}if(l>z){v&&p(0);break}s&&h(c+131072);var cr=c+Y;if(c<N){var qr=a-N,Lr=Math.min(N,cr);for(qr+c<0&&p(3);c<Lr;++c)t[c]=e[qr+c]}for(;c<cr;++c)t[c]=t[c-N]}}r.l=S,r.p=_,r.b=c,r.f=u,S&&(u=1,r.m=M,r.d=x,r.n=g)}while(!u);return c!=t.length&&o?d(t,0,c):t.subarray(0,c)},"inflt"),tr=f(function(n,r,t){t<<=r&7;var e=r/8|0;n[e]|=t,n[e+1]|=t>>8},"wbits"),gr=f(function(n,r,t){t<<=r&7;var e=r/8|0;n[e]|=t,n[e+1]|=t>>8,n[e+2]|=t>>16},"wbits16"),Nr=f(function(n,r){for(var t=[],e=0;e<n.length;++e)n[e]&&t.push({s:e,f:n[e]});var i=t.length,a=t.slice();if(!i)return{t:er,l:0};if(i==1){var o=new U(t[0].s+1);return o[t[0].s]=1,{t:o,l:1}}t.sort(function(Z,G){return Z.f-G.f}),t.push({s:-1,f:25001});var s=t[0],v=t[1],h=0,u=1,l=2;for(t[0]={s:-1,f:s.f+v.f,l:s,r:v};u!=i-1;)s=t[t[h].f<t[l].f?h++:l++],v=t[h!=u&&t[h].f<t[l].f?h++:l++],t[u++]={s:-1,f:s.f+v.f,l:s,r:v};for(var c=a[0].s,e=1;e<i;++e)a[e].s>c&&(c=a[e].s);var S=new J(c+1),x=Vr(t[u-1],S,0);if(x>r){var e=0,M=0,g=x-r,z=1<<g;for(a.sort(function(G,D){return S[D.s]-S[G.s]||G.f-D.f});e<i;++e){var F=a[e].s;if(S[F]>r)M+=z-(1<<x-S[F]),S[F]=r;else break}for(M>>=g;M>0;){var A=a[e].s;S[A]<r?M-=1<<r-S[A]++-1:++e}for(;e>=0&&M;--e){var w=a[e].s;S[w]==r&&(--S[w],++M)}x=r}return{t:new U(S),l:x}},"hTree"),Vr=f(function(n,r,t){return n.s==-1?Math.max(Vr(n.l,r,t+1),Vr(n.r,r,t+1)):r[n.s]=t},"ln"),dr=f(function(n){for(var r=n.length;r&&!n[--r];);for(var t=new J(++r),e=0,i=n[0],a=1,o=f(function(v){t[e++]=v},"w"),s=1;s<=r;++s)if(n[s]==i&&s!=r)++a;else{if(!i&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(i),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(i);a=1,i=n[s]}return{c:t.subarray(0,e),n:r}},"lc"),yr=f(function(n,r){for(var t=0,e=0;e<r.length;++e)t+=n[e]*r[e];return t},"clen"),jr=f(function(n,r,t){var e=t.length,i=Ar(r+2);n[i]=e&255,n[i+1]=e>>8,n[i+2]=n[i]^255,n[i+3]=n[i+1]^255;for(var a=0;a<e;++a)n[i+a+4]=t[a];return(i+4+e)*8},"wfblk"),br=f(function(n,r,t,e,i,a,o,s,v,h,u){tr(r,u++,t),++i[256];for(var l=Nr(i,15),c=l.t,S=l.l,x=Nr(a,15),M=x.t,g=x.l,z=dr(c),F=z.c,A=z.n,w=dr(M),Z=w.c,G=w.n,D=new J(19),m=0;m<F.length;++m)++D[F[m]&31];for(var m=0;m<Z.length;++m)++D[Z[m]&31];for(var y=Nr(D,7),O=y.t,C=y.l,q=19;q>4&&!O[Ir[q-1]];--q);var R=h+5<<3,P=yr(i,ar)+yr(a,wr)+o,H=yr(i,c)+yr(a,M)+o+14+3*q+yr(D,O)+2*D[16]+3*D[17]+7*D[18];if(v>=0&&R<=P&&R<=H)return jr(r,u,n.subarray(v,v+h));var E,T,V,N;if(tr(r,u,1+(H<P)),u+=2,H<P){E=k(c,S,0),T=c,V=k(M,g,0),N=M;var or=k(O,C,0);tr(r,u,A-257),tr(r,u+5,G-1),tr(r,u+10,q-4),u+=14;for(var m=0;m<q;++m)tr(r,u+3*m,O[Ir[m]]);u+=3*q;for(var K=[F,Z],_=0;_<2;++_)for(var W=K[_],m=0;m<W.length;++m){var Y=W[m]&31;tr(r,u,or[Y]),u+=O[Y],Y>15&&(tr(r,u,W[m]>>5&127),u+=W[m]>>12)}}else E=Dn,T=ar,V=Cn,N=wr;for(var m=0;m<s;++m){var $=e[m];if($>255){var Y=$>>18&31;gr(r,u,E[Y+257]),u+=T[Y+257],Y>7&&(tr(r,u,$>>23&31),u+=xr[Y]);var nr=$&31;gr(r,u,V[nr]),u+=N[nr],nr>3&&(gr(r,u,$>>5&8191),u+=zr[nr])}else gr(r,u,E[$]),u+=T[$]}return gr(r,u,E[256]),u+T[256]},"wblk"),Zn=new Zr([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),er=new U(0),En=f(function(n,r,t,e,i,a){var o=a.z||n.length,s=new U(e+o+5*(1+Math.ceil(o/7e3))+i),v=s.subarray(e,s.length-i),h=a.l,u=(a.r||0)&7;if(r){u&&(v[0]=a.r>>3);for(var l=Zn[r-1],c=l>>13,S=l&8191,x=(1<<t)-1,M=a.p||new J(32768),g=a.h||new J(x+1),z=Math.ceil(t/3),F=2*z,A=f(function(Qr){return(n[Qr]^n[Qr+1]<<z^n[Qr+2]<<F)&x},"hsh"),w=new Zr(25e3),Z=new J(288),G=new J(32),D=0,m=0,y=a.i||0,O=0,C=a.w||0,q=0;y+2<o;++y){var R=A(y),P=y&32767,H=g[R];if(M[P]=H,g[R]=P,C<=y){var E=o-y;if((D>7e3||O>24576)&&(E>423||!h)){u=br(n,v,0,w,Z,G,m,O,q,y-q,u),O=D=m=0,q=y;for(var T=0;T<286;++T)Z[T]=0;for(var T=0;T<30;++T)G[T]=0}var V=2,N=0,or=S,K=P-H&32767;if(E>2&&R==A(y-K))for(var _=Math.min(c,E)-1,W=Math.min(32767,y),Y=Math.min(258,E);K<=W&&--or&&P!=H;){if(n[y+V]==n[y+V-K]){for(var $=0;$<Y&&n[y+$]==n[y+$-K];++$);if($>V){if(V=$,N=K,$>_)break;for(var nr=Math.min(K,$-2),vr=0,T=0;T<nr;++T){var cr=y-K+T&32767,qr=M[cr],Lr=cr-qr&32767;Lr>vr&&(vr=Lr,H=cr)}}}P=H,H=M[P],K+=P-H&32767}if(N){w[O++]=268435456|Rr[V]<<18|kr[N];var Tr=Rr[V]&31,Cr=kr[N]&31;m+=xr[Tr]+zr[Cr],++Z[257+Tr],++G[Cr],C=y+V,++D}else w[O++]=n[y],++Z[n[y]]}}for(y=Math.max(y,C);y<o;++y)w[O++]=n[y],++Z[n[y]];u=br(n,v,h,w,Z,G,m,O,q,y-q,u),h||(a.r=u&7|v[u/8|0]<<3,u-=7,a.h=g,a.p=M,a.i=y,a.w=C)}else{for(var y=a.w||0;y<o+h;y+=65535){var pr=y+65535;pr>=o&&(v[u/8|0]=h,pr=o),u=jr(v,u+1,n.subarray(y,pr))}a.i=o}return d(s,0,e+Ar(u)+i)},"dflt"),Gn=(function(){for(var n=new Int32Array(256),r=0;r<256;++r){for(var t=r,e=9;--e;)t=(t&1&&-306674912)^t>>>1;n[r]=t}return n})(),Mr=f(function(){var n=-1;return{p:f(function(r){for(var t=n,e=0;e<r.length;++e)t=Gn[t&255^r[e]]^t>>>8;n=t},"p"),d:f(function(){return~n},"d")}},"crc"),Jr=f(function(){var n=1,r=0;return{p:f(function(t){for(var e=n,i=r,a=t.length|0,o=0;o!=a;){for(var s=Math.min(o+2655,a);o<s;++o)i+=e+=t[o];e=(e&65535)+15*(e>>16),i=(i&65535)+15*(i>>16)}n=e,r=i},"p"),d:f(function(){return n%=65521,r%=65521,(n&255)<<24|(n&65280)<<8|(r&255)<<8|r>>8},"d")}},"adler"),ur=f(function(n,r,t,e,i){if(!i&&(i={l:1},r.dictionary)){var a=r.dictionary.subarray(-32768),o=new U(a.length+n.length);o.set(a),o.set(n,a.length),n=o,i.w=a.length}return En(n,r.level==null?6:r.level,r.mem==null?i.l?Math.ceil(Math.max(8,Math.min(13,Math.log(n.length)))*1.5):20:12+r.mem,t,e,i)},"dopt"),Gr=f(function(n,r){var t={};for(var e in n)t[e]=n[e];for(var e in r)t[e]=r[e];return t},"mrg"),gn=f(function(n,r,t){for(var e=n(),i=n.toString(),a=i.slice(i.indexOf("[")+1,i.lastIndexOf("]")).replace(/\s+/g,"").split(","),o=0;o<e.length;++o){var s=e[o],v=a[o];if(typeof s=="function"){r+=";"+v+"=";var h=s.toString();if(s.prototype)if(h.indexOf("[native code]")!=-1){var u=h.indexOf(" ",8)+1;r+=h.slice(u,h.indexOf("(",u))}else{r+=h;for(var l in s.prototype)r+=";"+v+".prototype."+l+"="+s.prototype[l].toString()}else r+=h}else t[v]=s}return r},"wcln"),Pr=[],kn=f(function(n){var r=[];for(var t in n)n[t].buffer&&r.push((n[t]=new n[t].constructor(n[t])).buffer);return r},"cbfs"),On=f(function(n,r,t,e){if(!Pr[t]){for(var i="",a={},o=n.length-1,s=0;s<o;++s)i=gn(n[s],i,a);Pr[t]={c:gn(n[o],i,a),e:a}}var v=Gr({},Pr[t].e);return Xn(Pr[t].c+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+r.toString()+"}",t,v,kn(v),e)},"wrkr"),Sr=f(function(){return[U,J,Zr,xr,zr,Ir,an,Fn,Tn,In,Br,Bn,k,$r,X,Hr,Ar,d,p,Er,Or,fr,on]},"bInflt"),Ur=f(function(){return[U,J,Zr,xr,zr,Ir,Rr,kr,Dn,ar,Cn,wr,Br,Zn,er,k,tr,gr,Nr,Vr,dr,yr,jr,br,Ar,d,En,ur,Kr,fr]},"bDflt"),qn=f(function(){return[sn,hn,I,Mr,Gn]},"gze"),Ln=f(function(){return[fn,Hn]},"guze"),Pn=f(function(){return[un,I,Jr]},"zle"),$n=f(function(){return[ln]},"zule"),fr=f(function(n){return postMessage(n,[n.buffer])},"pbf"),on=f(function(n){return n&&{out:n.size&&new U(n.size),dictionary:n.dictionary}},"gopt"),Fr=f(function(n,r,t,e,i,a){var o=On(t,e,i,function(s,v){o.terminate(),a(s,v)});return o.postMessage([n,r],r.consume?[n.buffer]:[]),function(){o.terminate()}},"cbify"),b=f(function(n){return n.ondata=function(r,t){return postMessage([r,t],[r.buffer])},function(r){r.data[0]?(n.push(r.data[0],r.data[1]),postMessage([r.data[0].length])):n.flush(r.data[1])}},"astrm"),Dr=f(function(n,r,t,e,i,a,o){var s,v=On(n,e,i,function(h,u){h?(v.terminate(),r.ondata.call(r,h)):Array.isArray(u)?u.length==1?(r.queuedSize-=u[0],r.ondrain&&r.ondrain(u[0])):(u[1]&&v.terminate(),r.ondata.call(r,h,u[0],u[1])):o(u)});v.postMessage(t),r.queuedSize=0,r.push=function(h,u){r.ondata||p(5),s&&r.ondata(p(4,0,1),null,!!u),r.queuedSize+=h.length,v.postMessage([h,s=u],h.buffer instanceof ArrayBuffer?[h.buffer]:[])},r.terminate=function(){v.terminate()},a&&(r.flush=function(h){v.postMessage([0,h])})},"astrmify"),j=f(function(n,r){return n[r]|n[r+1]<<8},"b2"),L=f(function(n,r){return(n[r]|n[r+1]<<8|n[r+2]<<16|n[r+3]<<24)>>>0},"b4"),Xr=f(function(n,r){return L(n,r)+L(n,r+4)*4294967296},"b8"),I=f(function(n,r,t){for(;t;++r)n[r]=t,t>>>=8},"wbytes"),sn=f(function(n,r){var t=r.filename;if(n[0]=31,n[1]=139,n[2]=8,n[8]=r.level<2?4:r.level==9?2:0,n[9]=3,r.mtime!=0&&I(n,4,Math.floor(new Date(r.mtime||Date.now())/1e3)),t){n[3]=8;for(var e=0;e<=t.length;++e)n[e+10]=t.charCodeAt(e)}},"gzh"),fn=f(function(n){(n[0]!=31||n[1]!=139||n[2]!=8)&&p(6,"invalid gzip data");var r=n[3],t=10;r&4&&(t+=(n[10]|n[11]<<8)+2);for(var e=(r>>3&1)+(r>>4&1);e>0;e-=!n[t++]);return t+(r&2)},"gzs"),Hn=f(function(n){var r=n.length;return(n[r-4]|n[r-3]<<8|n[r-2]<<16|n[r-1]<<24)>>>0},"gzl"),hn=f(function(n){return 10+(n.filename?n.filename.length+1:0)},"gzhl"),un=f(function(n,r){var t=r.level,e=t==0?0:t<6?1:t==9?3:2;if(n[0]=120,n[1]=e<<6|(r.dictionary&&32),n[1]|=31-(n[0]<<8|n[1])%31,r.dictionary){var i=Jr();i.p(r.dictionary),I(n,2,i.d())}},"zlh"),ln=f(function(n,r){return((n[0]&15)!=8||n[0]>>4>7||(n[0]<<8|n[1])%31)&&p(6,"invalid zlib data"),(n[1]>>5&1)==+!r&&p(6,"invalid zlib data: "+(n[1]&32?"need":"unexpected")+" dictionary"),(n[1]>>3&4)+2},"zls");function lr(n,r){return typeof n=="function"&&(r=n,n={}),this.ondata=r,n}f(lr,"StrmOpt");var rr=(function(){function n(r,t){if(typeof r=="function"&&(t=r,r={}),this.ondata=t,this.o=r||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new U(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return f(n,"Deflate"),n.prototype.p=function(r,t){this.ondata(ur(r,this.o,0,0,this.s),t)},n.prototype.push=function(r,t){this.ondata||p(5),this.s.l&&p(4);var e=r.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new U(e&-32768);i.set(this.b.subarray(0,this.s.z)),this.b=i}var a=this.b.length-this.s.z;this.b.set(r.subarray(0,a),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(r.subarray(a),32768),this.s.z=r.length-a+32768,this.s.i=32766,this.s.w=32768}else this.b.set(r,this.s.z),this.s.z+=r.length;this.s.l=t&1,(this.s.z>this.s.w+8191||t)&&(this.p(this.b,t||!1),this.s.w=this.s.i,this.s.i-=2),t&&(this.s=this.o={},this.b=er)},n.prototype.flush=function(r){if(this.ondata||p(5),this.s.l&&p(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2,r){var t=new U(6);t[0]=this.s.r>>3;var e=jr(t,this.s.r,er);this.s.r=0,this.ondata(t.subarray(0,e>>3),!1)}},n})();var dn=(function(){function n(r,t){Dr([Ur,function(){return[b,rr]}],this,lr.call(this,r,t),function(e){var i=new rr(e.data);onmessage=b(i)},6,1)}return f(n,"AsyncDeflate"),n})();function bn(n,r,t){return t||(t=r,r={}),typeof t!="function"&&p(7),Fr(n,r,[Ur],function(e){return fr(Kr(e.data[0],e.data[1]))},0,t)}f(bn,"deflate");function Kr(n,r){return ur(n,r||{},0,0)}f(Kr,"deflateSync");var Q=(function(){function n(r,t){typeof r=="function"&&(t=r,r={}),this.ondata=t;var e=r&&r.dictionary&&r.dictionary.subarray(-32768);this.s={i:0,b:e?e.length:0},this.o=new U(32768),this.p=new U(0),e&&this.o.set(e)}return f(n,"Inflate"),n.prototype.e=function(r){if(this.ondata||p(5),this.d&&p(4),!this.p.length)this.p=r;else if(r.length){var t=new U(this.p.length+r.length);t.set(this.p),t.set(r,this.p.length),this.p=t}},n.prototype.c=function(r){this.s.i=+(this.d=r||!1);var t=this.s.b,e=Er(this.p,this.s,this.o);this.ondata(d(e,t,this.s.b),this.d),this.o=d(e,this.s.b-32768),this.s.b=this.o.length,this.p=d(this.p,this.s.p/8|0),this.s.p&=7},n.prototype.push=function(r,t){this.e(r),this.c(t)},n})();var Nn=(function(){function n(r,t){Dr([Sr,function(){return[b,Q]}],this,lr.call(this,r,t),function(e){var i=new Q(e.data);onmessage=b(i)},7,0)}return f(n,"AsyncInflate"),n})();function Rn(n,r,t){return t||(t=r,r={}),typeof t!="function"&&p(7),Fr(n,r,[Sr],function(e){return fr(Or(e.data[0],on(e.data[1])))},1,t)}f(Rn,"inflate");function Or(n,r){return Er(n,{i:2},r&&r.out,r&&r.dictionary)}f(Or,"inflateSync");var yn=(function(){function n(r,t){this.c=Mr(),this.l=0,this.v=1,rr.call(this,r,t)}return f(n,"Gzip"),n.prototype.push=function(r,t){this.c.p(r),this.l+=r.length,rr.prototype.push.call(this,r,t)},n.prototype.p=function(r,t){var e=ur(r,this.o,this.v&&hn(this.o),t&&8,this.s);this.v&&(sn(e,this.o),this.v=0),t&&(I(e,e.length-8,this.c.d()),I(e,e.length-4,this.l)),this.ondata(e,t)},n.prototype.flush=function(r){rr.prototype.flush.call(this,r)},n})();var at=(function(){function n(r,t){Dr([Ur,qn,function(){return[b,rr,yn]}],this,lr.call(this,r,t),function(e){var i=new yn(e.data);onmessage=b(i)},8,1)}return f(n,"AsyncGzip"),n})();function ot(n,r,t){return t||(t=r,r={}),typeof t!="function"&&p(7),Fr(n,r,[Ur,qn,function(){return[wn]}],function(e){return fr(wn(e.data[0],e.data[1]))},2,t)}f(ot,"gzip");function wn(n,r){r||(r={});var t=Mr(),e=n.length;t.p(n);var i=ur(n,r,hn(r),8),a=i.length;return sn(i,r),I(i,a-8,t.d()),I(i,a-4,e),i}f(wn,"gzipSync");var _r=(function(){function n(r,t){this.v=1,this.r=0,Q.call(this,r,t)}return f(n,"Gunzip"),n.prototype.push=function(r,t){if(Q.prototype.e.call(this,r),this.r+=r.length,this.v){var e=this.p.subarray(this.v-1),i=e.length>3?fn(e):4;if(i>e.length){if(!t)return}else this.v>1&&this.onmember&&this.onmember(this.r-e.length);this.p=e.subarray(i),this.v=0}Q.prototype.c.call(this,0),this.s.f&&!this.s.l?(this.v=Ar(this.s.p)+9,this.s={i:0},this.o=new U(0),this.push(new U(0),t)):t&&Q.prototype.c.call(this,t)},n})();var _n=(function(){function n(r,t){var e=this;Dr([Sr,Ln,function(){return[b,Q,_r]}],this,lr.call(this,r,t),function(i){var a=new _r(i.data);a.onmember=function(o){return postMessage(o)},onmessage=b(a)},9,0,function(i){return e.onmember&&e.onmember(i)})}return f(n,"AsyncGunzip"),n})();function rt(n,r,t){return t||(t=r,r={}),typeof t!="function"&&p(7),Fr(n,r,[Sr,Ln,function(){return[rn]}],function(e){return fr(rn(e.data[0],e.data[1]))},3,t)}f(rt,"gunzip");function rn(n,r){var t=fn(n);return t+8>n.length&&p(6,"invalid gzip data"),Er(n.subarray(t,-8),{i:2},r&&r.out||new U(Hn(n)),r&&r.dictionary)}f(rn,"gunzipSync");var mn=(function(){function n(r,t){this.c=Jr(),this.v=1,rr.call(this,r,t)}return f(n,"Zlib"),n.prototype.push=function(r,t){this.c.p(r),rr.prototype.push.call(this,r,t)},n.prototype.p=function(r,t){var e=ur(r,this.o,this.v&&(this.o.dictionary?6:2),t&&4,this.s);this.v&&(un(e,this.o),this.v=0),t&&I(e,e.length-4,this.c.d()),this.ondata(e,t)},n.prototype.flush=function(r){rr.prototype.flush.call(this,r)},n})();var st=(function(){function n(r,t){Dr([Ur,Pn,function(){return[b,rr,mn]}],this,lr.call(this,r,t),function(e){var i=new mn(e.data);onmessage=b(i)},10,1)}return f(n,"AsyncZlib"),n})();function ft(n,r,t){return t||(t=r,r={}),typeof t!="function"&&p(7),Fr(n,r,[Ur,Pn,function(){return[xn]}],function(e){return fr(xn(e.data[0],e.data[1]))},4,t)}f(ft,"zlib");function xn(n,r){r||(r={});var t=Jr();t.p(n);var e=ur(n,r,r.dictionary?6:2,4);return un(e,r),I(e,e.length-4,t.d()),e}f(xn,"zlibSync");var nn=(function(){function n(r,t){Q.call(this,r,t),this.v=r&&r.dictionary?2:1}return f(n,"Unzlib"),n.prototype.push=function(r,t){if(Q.prototype.e.call(this,r),this.v){if(this.p.length<6&&!t)return;this.p=this.p.subarray(ln(this.p,this.v-1)),this.v=0}t&&(this.p.length<4&&p(6,"invalid zlib data"),this.p=this.p.subarray(0,-4)),Q.prototype.c.call(this,t)},n})();var nt=(function(){function n(r,t){Dr([Sr,$n,function(){return[b,Q,nn]}],this,lr.call(this,r,t),function(e){var i=new nn(e.data);onmessage=b(i)},11,0)}return f(n,"AsyncUnzlib"),n})();function tt(n,r,t){return t||(t=r,r={}),typeof t!="function"&&p(7),Fr(n,r,[Sr,$n,function(){return[tn]}],function(e){return fr(tn(e.data[0],on(e.data[1])))},5,t)}f(tt,"unzlib");function tn(n,r){return Er(n.subarray(ln(n,r&&r.dictionary),-4),{i:2},r&&r.out,r&&r.dictionary)}f(tn,"unzlibSync");var zn=(function(){function n(r,t){this.o=lr.call(this,r,t)||{},this.G=_r,this.I=Q,this.Z=nn}return f(n,"Decompress"),n.prototype.i=function(){var r=this;this.s.ondata=function(t,e){r.ondata(t,e)}},n.prototype.push=function(r,t){if(this.ondata||p(5),this.s)this.s.push(r,t);else{if(this.p&&this.p.length){var e=new U(this.p.length+r.length);e.set(this.p),e.set(r,this.p.length)}else this.p=r;this.p.length>2&&(this.s=this.p[0]==31&&this.p[1]==139&&this.p[2]==8?new this.G(this.o):(this.p[0]&15)!=8||this.p[0]>>4>7||(this.p[0]<<8|this.p[1])%31?new this.I(this.o):new this.Z(this.o),this.i(),this.s.push(this.p,t),this.p=null)}},n})();var ht=(function(){function n(r,t){zn.call(this,r,t),this.queuedSize=0,this.G=_n,this.I=Nn,this.Z=nt}return f(n,"AsyncDecompress"),n.prototype.i=function(){var r=this;this.s.ondata=function(t,e,i){r.ondata(t,e,i)},this.s.ondrain=function(t){r.queuedSize-=t,r.ondrain&&r.ondrain(t)}},n.prototype.push=function(r,t){this.queuedSize+=r.length,zn.prototype.push.call(this,r,t)},n})();function ut(n,r,t){return t||(t=r,r={}),typeof t!="function"&&p(7),n[0]==31&&n[1]==139&&n[2]==8?rt(n,r,t):(n[0]&15)!=8||n[0]>>4>7||(n[0]<<8|n[1])%31?Rn(n,r,t):tt(n,r,t)}f(ut,"decompress");function lt(n,r){return n[0]==31&&n[1]==139&&n[2]==8?rn(n,r):(n[0]&15)!=8||n[0]>>4>7||(n[0]<<8|n[1])%31?Or(n,r):tn(n,r)}f(lt,"decompressSync");var vn=f(function(n,r,t,e){for(var i in n){var a=n[i],o=r+i,s=e;Array.isArray(a)&&(s=Gr(e,a[1]),a=a[0]),ArrayBuffer.isView(a)?t[o]=[a,s]:(t[o+="/"]=[new U(0),s],vn(a,o,t,e))}},"fltn"),An=typeof TextEncoder<"u"&&new TextEncoder,en=typeof TextDecoder<"u"&&new TextDecoder,Vn=0;try{en.decode(er,{stream:!0}),Vn=1}catch{}var Wn=f(function(n){for(var r="",t=0;;){var e=n[t++],i=(e>127)+(e>223)+(e>239);if(t+i>n.length)return{s:r,r:d(n,t-1)};i?i==3?(e=((e&15)<<18|(n[t++]&63)<<12|(n[t++]&63)<<6|n[t++]&63)-65536,r+=String.fromCharCode(55296|e>>10,56320|e&1023)):i&1?r+=String.fromCharCode((e&31)<<6|n[t++]&63):r+=String.fromCharCode((e&15)<<12|(n[t++]&63)<<6|n[t++]&63):r+=String.fromCharCode(e)}},"dutf8"),vt=(function(){function n(r){this.ondata=r,Vn?this.t=new TextDecoder:this.p=er}return f(n,"DecodeUTF8"),n.prototype.push=function(r,t){if(this.ondata||p(5),t=!!t,this.t){this.ondata(this.t.decode(r,{stream:!0}),t),t&&(this.t.decode().length&&p(8),this.t=null);return}this.p||p(4);var e=new U(this.p.length+r.length);e.set(this.p),e.set(r,this.p.length);var i=Wn(e),a=i.s,o=i.r;t?(o.length&&p(8),this.p=null):this.p=o,this.ondata(a,t)},n})();var ct=(function(){function n(r){this.ondata=r}return f(n,"EncodeUTF8"),n.prototype.push=function(r,t){this.ondata||p(5),this.d&&p(4),this.ondata(hr(r),this.d=t||!1)},n})();function hr(n,r){if(r){for(var t=new U(n.length),e=0;e<n.length;++e)t[e]=n.charCodeAt(e);return t}if(An)return An.encode(n);for(var i=n.length,a=new U(n.length+(n.length>>1)),o=0,s=f(function(u){a[o++]=u},"w"),e=0;e<i;++e){if(o+5>a.length){var v=new U(o+8+(i-e<<1));v.set(a),a=v}var h=n.charCodeAt(e);h<128||r?s(h):h<2048?(s(192|h>>6),s(128|h&63)):h>55295&&h<57344?(h=65536+(h&1047552)|n.charCodeAt(++e)&1023,s(240|h>>18),s(128|h>>12&63),s(128|h>>6&63),s(128|h&63)):(s(224|h>>12),s(128|h>>6&63),s(128|h&63))}return d(a,0,o)}f(hr,"strToU8");function Yn(n,r){if(r){for(var t="",e=0;e<n.length;e+=16384)t+=String.fromCharCode.apply(null,n.subarray(e,e+16384));return t}else{if(en)return en.decode(n);var i=Wn(n),a=i.s,t=i.r;return t.length&&p(8),a}}f(Yn,"strFromU8");var jn=f(function(n){return n==1?3:n<6?2:n==9?1:0},"dbf"),Jn=f(function(n,r){return r+30+j(n,r+26)+j(n,r+28)},"slzh"),Kn=f(function(n,r,t){var e=j(n,r+28),i=j(n,r+30),a=Yn(n.subarray(r+46,r+46+e),!(j(n,r+8)&2048)),o=r+46+e,s=Qn(n,o,i,t,L(n,r+20),L(n,r+24),L(n,r+42)),v=s[0],h=s[1],u=s[2];return[j(n,r+10),v,h,a,o+i+j(n,r+32),u]},"zh"),Qn=f(function(n,r,t,e,i,a,o){var s=i==4294967295,v=a==4294967295,h=o==4294967295,u=r+t,l=s+v+h;if(e&&l){for(;r+4<u;r+=4+j(n,r+2))if(j(n,r)==1)return[s?Xr(n,r+4+8*v):i,v?Xr(n,r+4):a,h?Xr(n,r+4+8*(v+s)):o,1];e<2&&p(13)}return[i,a,o,0]},"z64hs"),sr=f(function(n){var r=0;if(n)for(var t in n){var e=n[t].length;e>65535&&p(9),r+=e+4}return r},"exfl"),mr=f(function(n,r,t,e,i,a,o,s){var v=e.length,h=t.extra,u=s&&s.length,l=sr(h);I(n,r,o!=null?33639248:67324752),r+=4,o!=null&&(n[r++]=20,n[r++]=t.os),n[r]=20,r+=2,n[r++]=t.flag<<1|(a<0&&8),n[r++]=i&&8,n[r++]=t.compression&255,n[r++]=t.compression>>8;var c=new Date(t.mtime==null?Date.now():t.mtime),S=c.getFullYear()-1980;if((S<0||S>119)&&p(10),I(n,r,S<<25|c.getMonth()+1<<21|c.getDate()<<16|c.getHours()<<11|c.getMinutes()<<5|c.getSeconds()>>1),r+=4,a!=-1&&(I(n,r,t.crc),I(n,r+4,a<0?-a-2:a),I(n,r+8,t.size)),I(n,r+12,v),I(n,r+14,l),r+=16,o!=null&&(I(n,r,u),I(n,r+6,t.attrs),I(n,r+10,o),r+=14),n.set(e,r),r+=v,l)for(var x in h){var M=h[x],g=M.length;I(n,r,+x),I(n,r+2,g),n.set(M,r+4),r+=4+g}return u&&(n.set(s,r),r+=u),r},"wzh"),cn=f(function(n,r,t,e,i){I(n,r,101010256),I(n,r+8,t),I(n,r+10,t),I(n,r+12,e),I(n,r+16,i)},"wzf"),Wr=(function(){function n(r){this.filename=r,this.c=Mr(),this.size=0,this.compression=0}return f(n,"ZipPassThrough"),n.prototype.process=function(r,t){this.ondata(null,r,t)},n.prototype.push=function(r,t){this.ondata||p(5),this.c.p(r),this.size+=r.length,t&&(this.crc=this.c.d()),this.process(r,t||!1)},n})();var pt=(function(){function n(r,t){var e=this;t||(t={}),Wr.call(this,r),this.d=new rr(t,function(i,a){e.ondata(null,i,a)}),this.compression=8,this.flag=jn(t.level)}return f(n,"ZipDeflate"),n.prototype.process=function(r,t){try{this.d.push(r,t)}catch(e){this.ondata(e,null,t)}},n.prototype.push=function(r,t){Wr.prototype.push.call(this,r,t)},n})();var gt=(function(){function n(r,t){var e=this;t||(t={}),Wr.call(this,r),this.d=new dn(t,function(i,a,o){e.ondata(i,a,o)}),this.compression=8,this.flag=jn(t.level),this.terminate=this.d.terminate}return f(n,"AsyncZipDeflate"),n.prototype.process=function(r,t){this.d.push(r,t)},n.prototype.push=function(r,t){Wr.prototype.push.call(this,r,t)},n})();var yt=(function(){function n(r){this.ondata=r,this.u=[],this.d=1}return f(n,"Zip"),n.prototype.add=function(r){var t=this;if(this.ondata||p(5),this.d&2)this.ondata(p(4+(this.d&1)*8,0,1),null,!1);else{var e=hr(r.filename),i=e.length,a=r.comment,o=a&&hr(a),s=i!=r.filename.length||o&&a.length!=o.length,v=i+sr(r.extra)+30;i>65535&&this.ondata(p(11,0,1),null,!1);var h=new U(v);mr(h,0,r,e,s,-1);var u=[h],l=f(function(){for(var g=0,z=u;g<z.length;g++){var F=z[g];t.ondata(null,F,!1)}u=[]},"pAll_1"),c=this.d;this.d=0;var S=this.u.length,x=Gr(r,{f:e,u:s,o,t:f(function(){r.terminate&&r.terminate()},"t"),r:f(function(){if(l(),c){var g=t.u[S+1];g?g.r():t.d=1}c=1},"r")}),M=0;r.ondata=function(g,z,F){if(g)t.ondata(g,z,F),t.terminate();else if(M+=z.length,u.push(z),F){var A=new U(16);I(A,0,134695760),I(A,4,r.crc),I(A,8,M),I(A,12,r.size),u.push(A),x.c=M,x.b=v+M+16,x.crc=r.crc,x.size=r.size,c&&x.r(),c=1}else c&&l()},this.u.push(x)}},n.prototype.end=function(){var r=this;if(this.d&2){this.ondata(p(4+(this.d&1)*8,0,1),null,!0);return}this.d?this.e():this.u.push({r:f(function(){r.d&1&&(r.u.splice(-1,1),r.e())},"r"),t:f(function(){},"t")}),this.d=3},n.prototype.e=function(){for(var r=0,t=0,e=0,i=0,a=this.u;i<a.length;i++){var o=a[i];e+=46+o.f.length+sr(o.extra)+(o.o?o.o.length:0)}for(var s=new U(e+22),v=0,h=this.u;v<h.length;v++){var o=h[v];mr(s,r,o,o.f,o.u,-o.c-2,t,o.o),r+=46+o.f.length+sr(o.extra)+(o.o?o.o.length:0),t+=o.b}cn(s,r,this.u.length,e,t),this.ondata(null,s,!0),this.d=2},n.prototype.terminate=function(){for(var r=0,t=this.u;r<t.length;r++){var e=t[r];e.t()}this.d=2},n})();function wt(n,r,t){t||(t=r,r={}),typeof t!="function"&&p(7);var e={};vn(n,"",e,r);var i=Object.keys(e),a=i.length,o=0,s=0,v=a,h=new Array(a),u=[],l=f(function(){for(var g=0;g<u.length;++g)u[g]()},"tAll"),c=f(function(g,z){Yr(function(){t(g,z)})},"cbd");Yr(function(){c=t});var S=f(function(){var g=new U(s+22),z=o,F=s-o;s=0;for(var A=0;A<v;++A){var w=h[A];try{var Z=w.c.length;mr(g,s,w,w.f,w.u,Z);var G=30+w.f.length+sr(w.extra),D=s+G;g.set(w.c,D),mr(g,o,w,w.f,w.u,Z,s,w.m),o+=16+G+(w.m?w.m.length:0),s=D+Z}catch(m){return c(m,null)}}cn(g,o,h.length,F,z),c(null,g)},"cbf");a||S();for(var x=f(function(g){var z=i[g],F=e[z],A=F[0],w=F[1],Z=Mr(),G=A.length;Z.p(A);var D=hr(z),m=D.length,y=w.comment,O=y&&hr(y),C=O&&O.length,q=sr(w.extra),R=w.level==0?0:8,P=f(function(H,E){if(H)l(),c(H,null);else{var T=E.length;h[g]=Gr(w,{size:G,crc:Z.d(),c:E,f:D,m:O,u:m!=z.length||O&&y.length!=C,compression:R}),o+=30+m+q+T,s+=76+2*(m+q)+(C||0)+T,--a||S()}},"cbl");if(m>65535&&P(p(11,0,1),null),!R)P(null,A);else if(G<16e4)try{P(null,Kr(A,w))}catch(H){P(H,null)}else u.push(bn(A,w,P))},"_loop_1"),M=0;M<v;++M)x(M);return l}f(wt,"zip");function mt(n,r){r||(r={});var t={},e=[];vn(n,"",t,r);var i=0,a=0;for(var o in t){var s=t[o],v=s[0],h=s[1],u=h.level==0?0:8,l=hr(o),c=l.length,S=h.comment,x=S&&hr(S),M=x&&x.length,g=sr(h.extra);c>65535&&p(11);var z=u?Kr(v,h):v,F=z.length,A=Mr();A.p(v),e.push(Gr(h,{size:v.length,crc:A.d(),c:z,f:l,m:x,u:c!=o.length||x&&S.length!=M,o:i,compression:u})),i+=30+c+g+F,a+=76+2*(c+g)+(M||0)+F}for(var w=new U(a+22),Z=i,G=a-i,D=0;D<e.length;++D){var l=e[D];mr(w,l.o,l,l.f,l.u,l.c.length);var m=30+l.f.length+sr(l.extra);w.set(l.c,l.o+m),mr(w,i,l,l.f,l.u,l.c.length,l.o,l.m),i+=16+m+(l.m?l.m.length:0)}return cn(w,i,e.length,G,Z),w}f(mt,"zipSync");var et=(function(){function n(){}return f(n,"UnzipPassThrough"),n.prototype.push=function(r,t){this.ondata(null,r,t)},n.compression=0,n})();var xt=(function(){function n(){var r=this;this.i=new Q(function(t,e){r.ondata(null,t,e)})}return f(n,"UnzipInflate"),n.prototype.push=function(r,t){try{this.i.push(r,t)}catch(e){this.ondata(e,null,t)}},n.compression=8,n})();var zt=(function(){function n(r,t){var e=this;t<32e4?this.i=new Q(function(i,a){e.ondata(null,i,a)}):(this.i=new Nn(function(i,a,o){e.ondata(i,a,o)}),this.terminate=this.i.terminate)}return f(n,"AsyncUnzipInflate"),n.prototype.push=function(r,t){this.i.terminate&&(r=d(r,0)),this.i.push(r,t)},n.compression=8,n})();var At=(function(){function n(r){this.onfile=r,this.k=[],this.o={0:et},this.p=er}return f(n,"Unzip"),n.prototype.push=function(r,t){var e=this;if(this.onfile||p(5),this.p||p(4),this.c>0){var i=Math.min(this.c,r.length),a=r.subarray(0,i);if(this.c-=i,this.d?this.d.push(a,!this.c):this.k[0].push(a),r=r.subarray(i),r.length)return this.push(r,t)}else{var o=0,s=0,v=void 0,h=void 0;this.p.length?r.length?(h=new U(this.p.length+r.length),h.set(this.p),h.set(r,this.p.length)):h=this.p:h=r;for(var u=h.length,l=this.c,c=l&&this.d,S=f(function(){var z=L(h,s);if(z==67324752){o=1,v=s,x.d=null,x.c=0;var F=j(h,s+6),A=j(h,s+8),w=F&2048,Z=F&8,G=j(h,s+26),D=j(h,s+28);if(u>s+30+G+D){var m=[];x.k.unshift(m),o=2;var y=L(h,s+18),O=L(h,s+22),C=Yn(h.subarray(s+30,s+=30+G),!w),q=Qn(h,s,D,2,y,O,0),R=q[0],P=q[1],H=q[3];Z&&(R=-1-H),s+=D,x.c=R;var E,T={name:C,compression:A,start:f(function(){if(T.ondata||p(5),!R)T.ondata(null,er,!0);else{var V=e.o[A];V||T.ondata(p(14,"unknown compression type "+A,1),null,!1),E=R<0?new V(C):new V(C,R,P),E.ondata=function(_,W,Y){T.ondata(_,W,Y)};for(var N=0,or=m;N<or.length;N++){var K=or[N];E.push(K,!1)}e.k[0]==m&&e.c?e.d=E:E.push(er,!0)}},"start"),terminate:f(function(){E&&E.terminate&&E.terminate()},"terminate")};R>=0&&(T.size=R,T.originalSize=P),x.onfile(T)}return"break"}else if(l){if(z==134695760)return v=s+=12+(l==-2&&8),o=3,x.c=0,"break";if(z==33639248)return v=s-=4,o=3,x.c=0,"break"}},"_loop_2"),x=this;s<u-4;++s){var M=S();if(M==="break")break}if(this.p=er,l<0){var g=o?h.subarray(0,v-12-(l==-2&&8)-(L(h,v-16)==134695760&&4)):h.subarray(0,s);c?c.push(g,!!o):this.k[+(o==2)].push(g)}if(o&2)return this.push(h.subarray(s),t);this.p=h.subarray(s)}t&&(this.c&&p(13),this.p=null)},n.prototype.register=function(r){this.o[r.compression]=r},n})();var Yr=typeof queueMicrotask=="function"?queueMicrotask:typeof setTimeout=="function"?setTimeout:function(n){n()};function Mt(n,r,t){t||(t=r,r={}),typeof t!="function"&&p(7);var e=[],i=f(function(){for(var g=0;g<e.length;++g)e[g]()},"tAll"),a={},o=f(function(g,z){Yr(function(){t(g,z)})},"cbd");Yr(function(){o=t});for(var s=n.length-22;L(n,s)!=101010256;--s)if(!s||n.length-s>65558)return o(p(13,0,1),null),i;var v=j(n,s+8);if(v){var h=v,u=L(n,s+16),l=L(n,s-20)==117853008;if(l){var c=L(n,s-12);l=L(n,c)==101075792,l&&(h=v=L(n,c+32),u=L(n,c+48))}for(var S=r&&r.filter,x=f(function(g){var z=Kn(n,u,l),F=z[0],A=z[1],w=z[2],Z=z[3],G=z[4],D=z[5],m=Jn(n,D);u=G;var y=f(function(C,q){C?(i(),o(C,null)):(q&&(a[Z]=q),--v||o(null,a))},"cbl");if(!S||S({name:Z,size:A,originalSize:w,compression:F}))if(!F)y(null,d(n,m,m+A));else if(F==8){var O=n.subarray(m,m+A);if(w<524288||A>.8*w)try{y(null,Or(O,{out:new U(w)}))}catch(C){y(C,null)}else e.push(Rn(O,{size:w},y))}else y(p(14,"unknown compression type "+F,1),null);else y(null,null)},"_loop_3"),M=0;M<h;++M)x(M)}else o(null,{});return i}f(Mt,"unzip");function St(n,r){for(var t={},e=n.length-22;L(n,e)!=101010256;--e)(!e||n.length-e>65558)&&p(13);var i=j(n,e+8);if(!i)return{};var a=L(n,e+16),o=L(n,e-20)==117853008;if(o){var s=L(n,e-12);o=L(n,s)==101075792,o&&(i=L(n,s+32),a=L(n,s+48))}for(var v=r&&r.filter,h=0;h<i;++h){var u=Kn(n,a,o),l=u[0],c=u[1],S=u[2],x=u[3],M=u[4],g=u[5],z=Jn(n,g);a=M,(!v||v({name:x,size:c,originalSize:S,compression:l}))&&(l?l==8?t[x]=Or(n.subarray(z,z+c),{out:new U(S)}):p(14,"unknown compression type "+l):t[x]=d(n,z,z+c))}return t}f(St,"unzipSync");export{at as AsyncCompress,ht as AsyncDecompress,dn as AsyncDeflate,_n as AsyncGunzip,at as AsyncGzip,Nn as AsyncInflate,zt as AsyncUnzipInflate,nt as AsyncUnzlib,gt as AsyncZipDeflate,st as AsyncZlib,yn as Compress,vt as DecodeUTF8,zn as Decompress,rr as Deflate,ct as EncodeUTF8,it as FlateErrorCode,_r as Gunzip,yn as Gzip,Q as Inflate,At as Unzip,xt as UnzipInflate,et as UnzipPassThrough,nn as Unzlib,yt as Zip,pt as ZipDeflate,Wr as ZipPassThrough,mn as Zlib,ot as compress,wn as compressSync,ut as decompress,lt as decompressSync,bn as deflate,Kr as deflateSync,rt as gunzip,rn as gunzipSync,ot as gzip,wn as gzipSync,Rn as inflate,Or as inflateSync,Yn as strFromU8,hr as strToU8,Mt as unzip,St as unzipSync,tt as unzlib,tn as unzlibSync,wt as zip,mt as zipSync,ft as zlib,xn as zlibSync};
|