@amazon/vinyl-observable 1.0.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/dist/index.cjs +275 -0
- package/dist/index.cjs.map +7 -0
- package/dist/index.js +255 -0
- package/dist/index.js.map +7 -0
- package/dist/types/current/index.d.ts +4 -0
- package/dist/types/current/index.d.ts.map +1 -0
- package/dist/types/current/index.js +3 -0
- package/dist/types/current/observable/combineData.d.ts +11 -0
- package/dist/types/current/observable/combineData.d.ts.map +1 -0
- package/dist/types/current/observable/combineData.js +41 -0
- package/dist/types/current/observable/observableValue.d.ts +153 -0
- package/dist/types/current/observable/observableValue.d.ts.map +1 -0
- package/dist/types/current/observable/observableValue.js +224 -0
- package/dist/types/current/tsconfig.tsbuildinfo +1 -0
- package/dist/types/ts3.7/index.d.ts +4 -0
- package/dist/types/ts3.7/observable/combineData.d.ts +11 -0
- package/dist/types/ts3.7/observable/observableValue.d.ts +153 -0
- package/dist/types/ts4.1/index.d.ts +4 -0
- package/dist/types/ts4.1/observable/combineData.d.ts +11 -0
- package/dist/types/ts4.1/observable/observableValue.d.ts +153 -0
- package/dist/types/ts4.7/index.d.ts +4 -0
- package/dist/types/ts4.7/observable/combineData.d.ts +11 -0
- package/dist/types/ts4.7/observable/observableValue.d.ts +153 -0
- package/docs/OBSERVABLE.md +95 -0
- package/package.json +81 -0
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
*/
|
|
5
|
+
import { externalData } from './observableValue';
|
|
6
|
+
/**
|
|
7
|
+
* Combines a record of data providers into a single provider of a record of values.
|
|
8
|
+
*
|
|
9
|
+
* @param inputs A record of data providers.
|
|
10
|
+
*/
|
|
11
|
+
export function combineData(inputs) {
|
|
12
|
+
const keys = Object.keys(inputs);
|
|
13
|
+
const providers = {};
|
|
14
|
+
const current = {};
|
|
15
|
+
// Normalize all inputs to DataProviders and initialize current value
|
|
16
|
+
for (const key of keys) {
|
|
17
|
+
const provider = inputs[key];
|
|
18
|
+
providers[key] = provider;
|
|
19
|
+
current[key] = provider.value;
|
|
20
|
+
}
|
|
21
|
+
return externalData(current, (setData) => {
|
|
22
|
+
const subs = [];
|
|
23
|
+
for (const key of keys) {
|
|
24
|
+
const provider = providers[key];
|
|
25
|
+
let isFirst = true;
|
|
26
|
+
subs.push(provider.onData((value) => {
|
|
27
|
+
if (isFirst) {
|
|
28
|
+
isFirst = false;
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
current[key] = value;
|
|
32
|
+
setData({ ...current });
|
|
33
|
+
}));
|
|
34
|
+
}
|
|
35
|
+
setData(current);
|
|
36
|
+
return () => {
|
|
37
|
+
for (const unsub of subs)
|
|
38
|
+
unsub();
|
|
39
|
+
};
|
|
40
|
+
});
|
|
41
|
+
}
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import type { Maybe, Unsubscribe } from '@amazon/vinyl-util';
|
|
2
|
+
export interface ObservableValue<out T> {
|
|
3
|
+
/**
|
|
4
|
+
* Invokes a callback immediately and when data has changed.
|
|
5
|
+
* @param callback
|
|
6
|
+
*/
|
|
7
|
+
onData(callback: DataChangedCallback<T>): Unsubscribe;
|
|
8
|
+
/**
|
|
9
|
+
* Creates a data provider transforming this data.
|
|
10
|
+
*/
|
|
11
|
+
map<U>(transform: (value: T) => U): ObservableValue<U>;
|
|
12
|
+
/**
|
|
13
|
+
* Returns a data provider for a property of T.
|
|
14
|
+
*/
|
|
15
|
+
pick<K extends keyof NonNullable<T>>(prop: K): ObservableValue<Picked<T, K>>;
|
|
16
|
+
pick(prop: PropertyKey): ObservableValue<unknown>;
|
|
17
|
+
/**
|
|
18
|
+
* The current value.
|
|
19
|
+
*/
|
|
20
|
+
readonly value: T;
|
|
21
|
+
/**
|
|
22
|
+
* Gets the current value.
|
|
23
|
+
*/
|
|
24
|
+
getValue(): T;
|
|
25
|
+
/**
|
|
26
|
+
* A monotonically increasing id that increments before each change notification.
|
|
27
|
+
*/
|
|
28
|
+
readonly changeId: number;
|
|
29
|
+
}
|
|
30
|
+
export type MaybeObservableValue<T> = ObservableValue<T> | T;
|
|
31
|
+
/**
|
|
32
|
+
* Given an ObservableValue<ValueType>, infers ValueType.
|
|
33
|
+
*/
|
|
34
|
+
export type InferObservableValueType<T extends ObservableValue<any>> = T extends ObservableValue<infer U> ? U : never;
|
|
35
|
+
/**
|
|
36
|
+
* A mutable version of a data provider.
|
|
37
|
+
*/
|
|
38
|
+
export interface MutableValue<T> extends ObservableValue<T> {
|
|
39
|
+
/**
|
|
40
|
+
* The current value, may be set.
|
|
41
|
+
* `onData` callbacks will be invoked if value is not exactly equal to
|
|
42
|
+
* the current value.
|
|
43
|
+
*/
|
|
44
|
+
value: T;
|
|
45
|
+
/**
|
|
46
|
+
* Sets the current value.
|
|
47
|
+
*/
|
|
48
|
+
setValue(value: T): void;
|
|
49
|
+
/**
|
|
50
|
+
* Creates a readonly sub-controller for a transformed value.
|
|
51
|
+
*
|
|
52
|
+
* @param transform Applies a transformation to a single value using a provided function and returns the result.
|
|
53
|
+
* The returned sub controller will use this as its value.
|
|
54
|
+
*/
|
|
55
|
+
map<U>(transform: (value: T) => U): ObservableValue<U>;
|
|
56
|
+
/**
|
|
57
|
+
* Creates a writable sub-controller for a transformed value.
|
|
58
|
+
*
|
|
59
|
+
* @param transform Applies a transformation to a single value using a provided function and returns the result.
|
|
60
|
+
* The returned sub controller will use this as its value.
|
|
61
|
+
* @param setData The reverse of transform; When the sub-controller's data is set, this will convert the
|
|
62
|
+
* transformed value back to what can be saved on `this` controller.
|
|
63
|
+
*/
|
|
64
|
+
map<U>(transform: (value: T) => U, setData: (transformed: U, original: T) => T): MutableValue<U>;
|
|
65
|
+
/**
|
|
66
|
+
* Returns a data controller for a property of T.
|
|
67
|
+
*/
|
|
68
|
+
pick<K extends keyof NonNullable<T>>(prop: K): MutableValue<Picked<T, K>>;
|
|
69
|
+
pick(prop: PropertyKey): MutableValue<unknown>;
|
|
70
|
+
/**
|
|
71
|
+
* Invokes subscribers, can be used to indicate a change without setting
|
|
72
|
+
* a new value.
|
|
73
|
+
*/
|
|
74
|
+
invalidate(): void;
|
|
75
|
+
}
|
|
76
|
+
export type DataChangedCallback<T> = (
|
|
77
|
+
/**
|
|
78
|
+
* The current value.
|
|
79
|
+
*/
|
|
80
|
+
value: T,
|
|
81
|
+
/**
|
|
82
|
+
* The previous value, or undefined if this is the first time calling this callback.
|
|
83
|
+
*/
|
|
84
|
+
previousValue: T | undefined) => void;
|
|
85
|
+
export type Picked<T, K extends keyof NonNullable<T>> = T extends undefined | null ? NonNullable<T>[K] | undefined : NonNullable<T>[K];
|
|
86
|
+
declare abstract class MutableValueBase<T> implements MutableValue<T> {
|
|
87
|
+
abstract value: T;
|
|
88
|
+
abstract readonly changeId: number;
|
|
89
|
+
getValue(): T;
|
|
90
|
+
setValue(value: T): void;
|
|
91
|
+
abstract onData(callback: DataChangedCallback<T>): Unsubscribe;
|
|
92
|
+
map<U>(transform: {
|
|
93
|
+
(value: T): U;
|
|
94
|
+
}, setData?: Maybe<(transformed: U, original: T) => T>): MutableValue<U>;
|
|
95
|
+
pick<K extends keyof NonNullable<T>>(prop: K): MutableValue<Picked<T, K>>;
|
|
96
|
+
abstract invalidate(): void;
|
|
97
|
+
}
|
|
98
|
+
export declare class MutableValueImpl<T> extends MutableValueBase<T> {
|
|
99
|
+
private currentValue;
|
|
100
|
+
private _disposed;
|
|
101
|
+
private currentIndex;
|
|
102
|
+
private n;
|
|
103
|
+
private readonly callbacks;
|
|
104
|
+
private _changeId;
|
|
105
|
+
constructor(currentValue: T);
|
|
106
|
+
get changeId(): number;
|
|
107
|
+
hasAnyListeners(): boolean;
|
|
108
|
+
onData(callback: DataChangedCallback<T>): Unsubscribe;
|
|
109
|
+
get value(): T;
|
|
110
|
+
set value(value: T);
|
|
111
|
+
invalidate(): void;
|
|
112
|
+
get disposed(): boolean;
|
|
113
|
+
dispose(): void;
|
|
114
|
+
private notify;
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Returns true if the value is a ObservableValue.
|
|
118
|
+
* @param value
|
|
119
|
+
*/
|
|
120
|
+
export declare function isObservableValue(value: any): value is ObservableValue<any>;
|
|
121
|
+
/**
|
|
122
|
+
* Creates a data provider.
|
|
123
|
+
* @param value
|
|
124
|
+
*/
|
|
125
|
+
export declare function data<T>(value: T): MutableValueImpl<T>;
|
|
126
|
+
/**
|
|
127
|
+
* If the value is a ObservableValue, returns the data provider as is. Otherwise, wraps the value in
|
|
128
|
+
* provider.
|
|
129
|
+
*
|
|
130
|
+
* @param value
|
|
131
|
+
*/
|
|
132
|
+
export declare function asData<T>(value: MaybeObservableValue<T>): ObservableValue<T>;
|
|
133
|
+
export type OnDataRequested<T> = (setData: (value: T) => void) => Unsubscribe;
|
|
134
|
+
export declare class ExternalMutableValue<T> extends MutableValueBase<T> {
|
|
135
|
+
private readonly onDataRequested;
|
|
136
|
+
private _data;
|
|
137
|
+
private externalDataSub;
|
|
138
|
+
constructor(currentValue: T, onDataRequested: OnDataRequested<T>);
|
|
139
|
+
get value(): T;
|
|
140
|
+
get changeId(): number;
|
|
141
|
+
set value(_value: T);
|
|
142
|
+
onData(callback: DataChangedCallback<T>): Unsubscribe;
|
|
143
|
+
invalidate(): void;
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* Creates a data provider that can observe an external event system when onData is called.
|
|
147
|
+
*
|
|
148
|
+
* @param initialValue
|
|
149
|
+
* @param onDataRequested
|
|
150
|
+
*/
|
|
151
|
+
export declare function externalData<T>(initialValue: T, onDataRequested: (setData: (value: T) => void) => Unsubscribe): ObservableValue<T>;
|
|
152
|
+
export {};
|
|
153
|
+
//# sourceMappingURL=observableValue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"observableValue.d.ts","sourceRoot":"","sources":["../../../../src/observable/observableValue.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
*/
|
|
5
|
+
import { DisposedError } from '@amazon/vinyl-util';
|
|
6
|
+
class MutableValueBase {
|
|
7
|
+
getValue() {
|
|
8
|
+
return this.value;
|
|
9
|
+
}
|
|
10
|
+
setValue(value) {
|
|
11
|
+
this.value = value;
|
|
12
|
+
}
|
|
13
|
+
map(transform, setData) {
|
|
14
|
+
return new SubDataController(this, transform, setData ?? throwSaveNotProvidedError);
|
|
15
|
+
}
|
|
16
|
+
pick(prop) {
|
|
17
|
+
return new SubDataController(this, (value) => {
|
|
18
|
+
return (value == null ? undefined : value[prop]);
|
|
19
|
+
}, (subValue) => {
|
|
20
|
+
const current = this.value;
|
|
21
|
+
if (current == null)
|
|
22
|
+
return current;
|
|
23
|
+
const newValue = { ...current };
|
|
24
|
+
newValue[prop] = subValue;
|
|
25
|
+
return newValue;
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
export class MutableValueImpl extends MutableValueBase {
|
|
30
|
+
currentValue;
|
|
31
|
+
_disposed = false;
|
|
32
|
+
currentIndex = -1;
|
|
33
|
+
n = 0;
|
|
34
|
+
callbacks = [];
|
|
35
|
+
_changeId = 0;
|
|
36
|
+
constructor(currentValue) {
|
|
37
|
+
super();
|
|
38
|
+
this.currentValue = currentValue;
|
|
39
|
+
}
|
|
40
|
+
get changeId() {
|
|
41
|
+
return this._changeId;
|
|
42
|
+
}
|
|
43
|
+
hasAnyListeners() {
|
|
44
|
+
return this.callbacks.length > 0;
|
|
45
|
+
}
|
|
46
|
+
onData(callback) {
|
|
47
|
+
if (this._disposed)
|
|
48
|
+
throw new DisposedError();
|
|
49
|
+
this.callbacks.push(callback);
|
|
50
|
+
callback(this.currentValue, undefined);
|
|
51
|
+
return () => {
|
|
52
|
+
// Remove the callback.
|
|
53
|
+
const index = this.callbacks.indexOf(callback);
|
|
54
|
+
if (index !== -1) {
|
|
55
|
+
this.callbacks.splice(index, 1);
|
|
56
|
+
if (index <= this.currentIndex)
|
|
57
|
+
this.currentIndex--;
|
|
58
|
+
this.n--;
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
get value() {
|
|
63
|
+
return this.currentValue;
|
|
64
|
+
}
|
|
65
|
+
set value(value) {
|
|
66
|
+
if (this.currentIndex !== -1) {
|
|
67
|
+
throw new Error('data cannot be set from onData callback');
|
|
68
|
+
}
|
|
69
|
+
if (this._disposed)
|
|
70
|
+
throw new DisposedError();
|
|
71
|
+
const previousValue = this.currentValue;
|
|
72
|
+
if (value === previousValue)
|
|
73
|
+
return;
|
|
74
|
+
this.currentValue = value;
|
|
75
|
+
this.notify(value, previousValue);
|
|
76
|
+
}
|
|
77
|
+
invalidate() {
|
|
78
|
+
this.notify(this.currentValue, this.currentValue);
|
|
79
|
+
}
|
|
80
|
+
get disposed() {
|
|
81
|
+
return this._disposed;
|
|
82
|
+
}
|
|
83
|
+
dispose() {
|
|
84
|
+
this._disposed = true;
|
|
85
|
+
this.callbacks.length = 0;
|
|
86
|
+
}
|
|
87
|
+
notify(value, previousValue) {
|
|
88
|
+
this._changeId++;
|
|
89
|
+
this.n = this.callbacks.length;
|
|
90
|
+
try {
|
|
91
|
+
while (this.currentIndex < this.n - 1) {
|
|
92
|
+
this.callbacks[++this.currentIndex](value, previousValue);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
finally {
|
|
96
|
+
this.currentIndex = -1;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
class SubDataController extends MutableValueBase {
|
|
101
|
+
source;
|
|
102
|
+
getter;
|
|
103
|
+
setter;
|
|
104
|
+
needsValidation = false;
|
|
105
|
+
cachedChangeId = -1;
|
|
106
|
+
cachedValue;
|
|
107
|
+
constructor(source, getter, setter) {
|
|
108
|
+
super();
|
|
109
|
+
this.source = source;
|
|
110
|
+
this.getter = getter;
|
|
111
|
+
this.setter = setter;
|
|
112
|
+
}
|
|
113
|
+
get changeId() {
|
|
114
|
+
return this.source.changeId;
|
|
115
|
+
}
|
|
116
|
+
getTransformed() {
|
|
117
|
+
const id = this.source.changeId;
|
|
118
|
+
if (this.cachedChangeId === id)
|
|
119
|
+
return this.cachedValue;
|
|
120
|
+
const value = this.getter(this.source.value);
|
|
121
|
+
this.cachedChangeId = id;
|
|
122
|
+
this.cachedValue = value;
|
|
123
|
+
return value;
|
|
124
|
+
}
|
|
125
|
+
get value() {
|
|
126
|
+
return this.getTransformed();
|
|
127
|
+
}
|
|
128
|
+
set value(value) {
|
|
129
|
+
this.source.value = this.setter(value, this.source.value);
|
|
130
|
+
}
|
|
131
|
+
onData(callback) {
|
|
132
|
+
let previous;
|
|
133
|
+
let firstCall = true;
|
|
134
|
+
return this.source.onData(() => {
|
|
135
|
+
const newValue = this.getTransformed();
|
|
136
|
+
if (firstCall || this.needsValidation || newValue !== previous) {
|
|
137
|
+
callback(newValue, previous);
|
|
138
|
+
firstCall = false;
|
|
139
|
+
previous = newValue;
|
|
140
|
+
}
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
invalidate() {
|
|
144
|
+
this.needsValidation = true;
|
|
145
|
+
this.source.invalidate();
|
|
146
|
+
this.needsValidation = false;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* Returns true if the value is a ObservableValue.
|
|
151
|
+
* @param value
|
|
152
|
+
*/
|
|
153
|
+
export function isObservableValue(value) {
|
|
154
|
+
if (value == null)
|
|
155
|
+
return false;
|
|
156
|
+
return (typeof value === 'object' &&
|
|
157
|
+
'onData' in value &&
|
|
158
|
+
typeof value.onData === 'function');
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* Creates a data provider.
|
|
162
|
+
* @param value
|
|
163
|
+
*/
|
|
164
|
+
export function data(value) {
|
|
165
|
+
return new MutableValueImpl(value);
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* If the value is a ObservableValue, returns the data provider as is. Otherwise, wraps the value in
|
|
169
|
+
* provider.
|
|
170
|
+
*
|
|
171
|
+
* @param value
|
|
172
|
+
*/
|
|
173
|
+
export function asData(value) {
|
|
174
|
+
return isObservableValue(value) ? value : data(value);
|
|
175
|
+
}
|
|
176
|
+
function throwSaveNotProvidedError() {
|
|
177
|
+
throw new Error('data cannot be set, a `setData` function must be provided');
|
|
178
|
+
}
|
|
179
|
+
export class ExternalMutableValue extends MutableValueBase {
|
|
180
|
+
onDataRequested;
|
|
181
|
+
_data;
|
|
182
|
+
externalDataSub = null;
|
|
183
|
+
constructor(currentValue, onDataRequested) {
|
|
184
|
+
super();
|
|
185
|
+
this.onDataRequested = onDataRequested;
|
|
186
|
+
this._data = data(currentValue);
|
|
187
|
+
}
|
|
188
|
+
get value() {
|
|
189
|
+
return this._data.value;
|
|
190
|
+
}
|
|
191
|
+
get changeId() {
|
|
192
|
+
return this._data.changeId;
|
|
193
|
+
}
|
|
194
|
+
set value(_value) {
|
|
195
|
+
throw new Error('set value not supported');
|
|
196
|
+
}
|
|
197
|
+
onData(callback) {
|
|
198
|
+
if (!this._data.hasAnyListeners()) {
|
|
199
|
+
this.externalDataSub = this.onDataRequested((value) => {
|
|
200
|
+
this._data.value = value;
|
|
201
|
+
});
|
|
202
|
+
}
|
|
203
|
+
const sub = this._data.onData(callback);
|
|
204
|
+
return () => {
|
|
205
|
+
sub();
|
|
206
|
+
if (!this._data.hasAnyListeners()) {
|
|
207
|
+
this.externalDataSub?.();
|
|
208
|
+
this.externalDataSub = null;
|
|
209
|
+
}
|
|
210
|
+
};
|
|
211
|
+
}
|
|
212
|
+
invalidate() {
|
|
213
|
+
throw new Error('invalidate not supported');
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* Creates a data provider that can observe an external event system when onData is called.
|
|
218
|
+
*
|
|
219
|
+
* @param initialValue
|
|
220
|
+
* @param onDataRequested
|
|
221
|
+
*/
|
|
222
|
+
export function externalData(initialValue, onDataRequested) {
|
|
223
|
+
return new ExternalMutableValue(initialValue, onDataRequested);
|
|
224
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"fileNames":["../../../../../node_modules/typescript/lib/lib.es5.d.ts","../../../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../../../node_modules/typescript/lib/lib.es2020.d.ts","../../../../../node_modules/typescript/lib/lib.dom.d.ts","../../../../../node_modules/typescript/lib/lib.dom.iterable.d.ts","../../../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../../../node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../../../node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../../../node_modules/typescript/lib/lib.es2017.date.d.ts","../../../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../../../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../../../../node_modules/typescript/lib/lib.decorators.d.ts","../../../../../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../../vinyl-util/dist/types/current/util/type.d.ts","../../../../vinyl-util/dist/types/current/util/url/resolveurl.d.ts","../../../../vinyl-util/dist/types/current/util/string/uid.d.ts","../../../../vinyl-util/dist/types/current/util/object/readonlytype.d.ts","../../../../vinyl-util/dist/types/current/util/string/string.d.ts","../../../../vinyl-util/dist/types/current/util/serialization/json.d.ts","../../../../vinyl-util/dist/types/current/error/reportableerror.d.ts","../../../../vinyl-util/dist/types/current/util/serialization/parseerror.d.ts","../../../../vinyl-util/dist/types/current/util/string/stringreader.d.ts","../../../../vinyl-util/dist/types/current/util/set/set.d.ts","../../../../vinyl-util/dist/types/current/util/serialization/stringifyforprint.d.ts","../../../../vinyl-util/dist/types/current/util/serialization/primitives.d.ts","../../../../vinyl-util/dist/types/current/util/range/ranges.d.ts","../../../../vinyl-util/dist/types/current/util/range/timeranges.d.ts","../../../../vinyl-util/dist/types/current/util/range/unionranges.d.ts","../../../../vinyl-util/dist/types/current/util/range/intersectionranges.d.ts","../../../../vinyl-util/dist/types/current/util/object/object.d.ts","../../../../vinyl-util/dist/types/current/util/object/mutabletype.d.ts","../../../../vinyl-util/dist/types/current/util/collection/typedarray.d.ts","../../../../vinyl-util/dist/types/current/core/cloneable.d.ts","../../../../vinyl-util/dist/types/current/util/object/mergedeep.d.ts","../../../../vinyl-util/dist/types/current/util/object/merge.d.ts","../../../../vinyl-util/dist/types/current/error/illegalstateerror.d.ts","../../../../vinyl-util/dist/types/current/core/unsubscribe.d.ts","../../../../vinyl-util/dist/types/current/core/disposable.d.ts","../../../../vinyl-util/dist/types/current/util/object/lazy.d.ts","../../../../vinyl-util/dist/types/current/util/object/equaldeep.d.ts","../../../../vinyl-util/dist/types/current/util/object/clone.d.ts","../../../../vinyl-util/dist/types/current/util/network/request.d.ts","../../../../vinyl-util/dist/types/current/util/mpeg/parsesidxbox.d.ts","../../../../vinyl-util/dist/types/current/util/math/math.d.ts","../../../../vinyl-util/dist/types/current/util/map/map.d.ts","../../../../vinyl-util/dist/types/current/util/iteration/iterable.d.ts","../../../../vinyl-util/dist/types/current/util/fun/throttle.d.ts","../../../../vinyl-util/dist/types/current/util/fun/memoize.d.ts","../../../../vinyl-util/dist/types/current/util/fun/function.d.ts","../../../../vinyl-util/dist/types/current/util/fun/flow.d.ts","../../../../vinyl-util/dist/types/current/util/fun/debounce.d.ts","../../../../vinyl-util/dist/types/current/util/comparison/compare.d.ts","../../../../vinyl-util/dist/types/current/util/error/stack.d.ts","../../../../vinyl-util/dist/types/current/util/date/date.d.ts","../../../../vinyl-util/dist/types/current/util/config/valueprovider.d.ts","../../../../vinyl-util/dist/types/current/util/collection/array.d.ts","../../../../vinyl-util/dist/types/current/util/collection/cachemap.d.ts","../../../../vinyl-util/dist/types/current/util/collection/lrucache.d.ts","../../../../vinyl-util/dist/types/current/util/collection/linkedlist.d.ts","../../../../vinyl-util/dist/types/current/util/buffer/buffer.d.ts","../../../../vinyl-util/dist/types/current/util/buffer/bufferwriter.d.ts","../../../../vinyl-util/dist/types/current/util/buffer/bufferreader.d.ts","../../../../vinyl-util/dist/types/current/util/buffer/buffererror.d.ts","../../../../vinyl-util/dist/types/current/util/browser/searchparams.d.ts","../../../../vinyl-util/dist/types/current/event/signal.d.ts","../../../../vinyl-util/dist/types/current/logging/logtarget.d.ts","../../../../vinyl-util/dist/types/current/event/eventhost.d.ts","../../../../vinyl-util/dist/types/current/util/async/abort.d.ts","../../../../vinyl-util/dist/types/current/util/async/timeout.d.ts","../../../../vinyl-util/dist/types/current/util/async/sleep.d.ts","../../../../vinyl-util/dist/types/current/util/async/promise.d.ts","../../../../vinyl-util/dist/types/current/util/async/never.d.ts","../../../../vinyl-util/dist/types/current/util/async/abortutils.d.ts","../../../../vinyl-util/dist/types/current/util/async/timeoutslot.d.ts","../../../../vinyl-util/dist/types/current/util/async/timeoutcontroller.d.ts","../../../../vinyl-util/dist/types/current/util/async/taskqueue.d.ts","../../../../vinyl-util/dist/types/current/util/async/deferred.d.ts","../../../../vinyl-util/dist/types/current/persistence/keyvaluepersistence.d.ts","../../../../vinyl-util/dist/types/current/global/globalregistry.d.ts","../../../../vinyl-util/dist/types/current/persistence/persistenceref.d.ts","../../../../vinyl-util/dist/types/current/persistence/storagepersistence.d.ts","../../../../vinyl-util/dist/types/current/persistence/persistentitem.d.ts","../../../../vinyl-util/dist/types/current/patch/patchtarget.d.ts","../../../../vinyl-util/dist/types/current/network/requester.d.ts","../../../../vinyl-util/dist/types/current/patch/network/fetch.d.ts","../../../../vinyl-util/dist/types/current/network/requesterimpleventmap.d.ts","../../../../vinyl-util/dist/types/current/network/requesterror.d.ts","../../../../vinyl-util/dist/types/current/network/responseutil.d.ts","../../../../vinyl-util/dist/types/current/network/requesterutil.d.ts","../../../../vinyl-util/dist/types/current/network/requesterglobal.d.ts","../../../../vinyl-util/dist/types/current/event/domeventhost.d.ts","../../../../vinyl-util/dist/types/current/network/network.d.ts","../../../../vinyl-util/dist/types/current/network/metrics/networkmetricsmodel.d.ts","../../../../vinyl-util/dist/types/current/network/metrics/networkmetricscontroller.d.ts","../../../../vinyl-util/dist/types/current/network/requesterimpl.d.ts","../../../../vinyl-util/dist/types/current/network/createrequester.d.ts","../../../../vinyl-util/dist/types/current/network/requestinterceptor.d.ts","../../../../vinyl-util/dist/types/current/network/metrics/networkmetricsglobal.d.ts","../../../../vinyl-util/dist/types/current/network/browser/networkinformation.d.ts","../../../../vinyl-util/dist/types/current/network/metrics/networkmetricscontrollerimpl.d.ts","../../../../vinyl-util/dist/types/current/network/logging/networklogginghandler.d.ts","../../../../vinyl-util/dist/types/current/logging/logtimer.d.ts","../../../../vinyl-util/dist/types/current/logging/logger.d.ts","../../../../vinyl-util/dist/types/current/logging/getloglevelfromsearch.d.ts","../../../../vinyl-util/dist/types/current/logging/consoleloghandler.d.ts","../../../../vinyl-util/dist/types/current/logging/historyloghandler.d.ts","../../../../vinyl-util/dist/types/current/logging/vinyllogging.d.ts","../../../../vinyl-util/dist/types/current/global/globaltarget.d.ts","../../../../vinyl-util/dist/types/current/global/environment.d.ts","../../../../vinyl-util/dist/types/current/event/redispatchevents.d.ts","../../../../vinyl-util/dist/types/current/event/onany.d.ts","../../../../vinyl-util/dist/types/current/event/nexteventaspromise.d.ts","../../../../vinyl-util/dist/types/current/error/validationerror.d.ts","../../../../vinyl-util/dist/types/current/error/unreachablecodeerror.d.ts","../../../../vinyl-util/dist/types/current/error/timeouterror.d.ts","../../../../vinyl-util/dist/types/current/error/stackoverflowerror.d.ts","../../../../vinyl-util/dist/types/current/error/serviceresponseerror.d.ts","../../../../vinyl-util/dist/types/current/error/mediaunsupportederror.d.ts","../../../../vinyl-util/dist/types/current/error/illegalargumenterror.d.ts","../../../../vinyl-util/dist/types/current/error/errororigin.d.ts","../../../../vinyl-util/dist/types/current/error/aborterror.d.ts","../../../../vinyl-util/dist/types/current/core/clearable.d.ts","../../../../vinyl-util/dist/types/current/client/version.d.ts","../../../../vinyl-util/dist/types/current/client/useragent/useragentinfo.d.ts","../../../../vinyl-util/dist/types/current/client/useragent/tokenizeuseragent.d.ts","../../../../vinyl-util/dist/types/current/client/useragent/useragentrulehelpers.d.ts","../../../../vinyl-util/dist/types/current/client/useragent/parseuseragent.d.ts","../../../../vinyl-util/dist/types/current/client/useragent/defaultuseragentrules.d.ts","../../../../vinyl-util/dist/types/current/client/useragent/hasbrowser.d.ts","../../../../vinyl-util/dist/types/current/index.d.ts","../../../src/observable/observablevalue.ts","../../../src/observable/combinedata.ts","../../../src/index.ts","../../../../../node_modules/@types/node/compatibility/disposable.d.ts","../../../../../node_modules/@types/node/compatibility/indexable.d.ts","../../../../../node_modules/@types/node/compatibility/iterators.d.ts","../../../../../node_modules/@types/node/compatibility/index.d.ts","../../../../../node_modules/@types/node/globals.typedarray.d.ts","../../../../../node_modules/@types/node/buffer.buffer.d.ts","../../../../../node_modules/@types/node/globals.d.ts","../../../../../node_modules/@types/node/web-globals/abortcontroller.d.ts","../../../../../node_modules/@types/node/web-globals/domexception.d.ts","../../../../../node_modules/@types/node/web-globals/events.d.ts","../../../../../node_modules/buffer/index.d.ts","../../../../../node_modules/undici-types/header.d.ts","../../../../../node_modules/undici-types/readable.d.ts","../../../../../node_modules/undici-types/file.d.ts","../../../../../node_modules/undici-types/fetch.d.ts","../../../../../node_modules/undici-types/formdata.d.ts","../../../../../node_modules/undici-types/connector.d.ts","../../../../../node_modules/undici-types/client.d.ts","../../../../../node_modules/undici-types/errors.d.ts","../../../../../node_modules/undici-types/dispatcher.d.ts","../../../../../node_modules/undici-types/global-dispatcher.d.ts","../../../../../node_modules/undici-types/global-origin.d.ts","../../../../../node_modules/undici-types/pool-stats.d.ts","../../../../../node_modules/undici-types/pool.d.ts","../../../../../node_modules/undici-types/handlers.d.ts","../../../../../node_modules/undici-types/balanced-pool.d.ts","../../../../../node_modules/undici-types/agent.d.ts","../../../../../node_modules/undici-types/mock-interceptor.d.ts","../../../../../node_modules/undici-types/mock-agent.d.ts","../../../../../node_modules/undici-types/mock-client.d.ts","../../../../../node_modules/undici-types/mock-pool.d.ts","../../../../../node_modules/undici-types/mock-errors.d.ts","../../../../../node_modules/undici-types/proxy-agent.d.ts","../../../../../node_modules/undici-types/env-http-proxy-agent.d.ts","../../../../../node_modules/undici-types/retry-handler.d.ts","../../../../../node_modules/undici-types/retry-agent.d.ts","../../../../../node_modules/undici-types/api.d.ts","../../../../../node_modules/undici-types/interceptors.d.ts","../../../../../node_modules/undici-types/util.d.ts","../../../../../node_modules/undici-types/cookies.d.ts","../../../../../node_modules/undici-types/patch.d.ts","../../../../../node_modules/undici-types/websocket.d.ts","../../../../../node_modules/undici-types/eventsource.d.ts","../../../../../node_modules/undici-types/filereader.d.ts","../../../../../node_modules/undici-types/diagnostics-channel.d.ts","../../../../../node_modules/undici-types/content-type.d.ts","../../../../../node_modules/undici-types/cache.d.ts","../../../../../node_modules/undici-types/index.d.ts","../../../../../node_modules/@types/node/web-globals/fetch.d.ts","../../../../../node_modules/@types/node/assert.d.ts","../../../../../node_modules/@types/node/assert/strict.d.ts","../../../../../node_modules/@types/node/async_hooks.d.ts","../../../../../node_modules/@types/node/buffer.d.ts","../../../../../node_modules/@types/node/child_process.d.ts","../../../../../node_modules/@types/node/cluster.d.ts","../../../../../node_modules/@types/node/console.d.ts","../../../../../node_modules/@types/node/constants.d.ts","../../../../../node_modules/@types/node/crypto.d.ts","../../../../../node_modules/@types/node/dgram.d.ts","../../../../../node_modules/@types/node/diagnostics_channel.d.ts","../../../../../node_modules/@types/node/dns.d.ts","../../../../../node_modules/@types/node/dns/promises.d.ts","../../../../../node_modules/@types/node/domain.d.ts","../../../../../node_modules/@types/node/events.d.ts","../../../../../node_modules/@types/node/fs.d.ts","../../../../../node_modules/@types/node/fs/promises.d.ts","../../../../../node_modules/@types/node/http.d.ts","../../../../../node_modules/@types/node/http2.d.ts","../../../../../node_modules/@types/node/https.d.ts","../../../../../node_modules/@types/node/inspector.generated.d.ts","../../../../../node_modules/@types/node/module.d.ts","../../../../../node_modules/@types/node/net.d.ts","../../../../../node_modules/@types/node/os.d.ts","../../../../../node_modules/@types/node/path.d.ts","../../../../../node_modules/@types/node/perf_hooks.d.ts","../../../../../node_modules/@types/node/process.d.ts","../../../../../node_modules/@types/node/punycode.d.ts","../../../../../node_modules/@types/node/querystring.d.ts","../../../../../node_modules/@types/node/readline.d.ts","../../../../../node_modules/@types/node/readline/promises.d.ts","../../../../../node_modules/@types/node/repl.d.ts","../../../../../node_modules/@types/node/sea.d.ts","../../../../../node_modules/@types/node/stream.d.ts","../../../../../node_modules/@types/node/stream/promises.d.ts","../../../../../node_modules/@types/node/stream/consumers.d.ts","../../../../../node_modules/@types/node/stream/web.d.ts","../../../../../node_modules/@types/node/string_decoder.d.ts","../../../../../node_modules/@types/node/test.d.ts","../../../../../node_modules/@types/node/timers.d.ts","../../../../../node_modules/@types/node/timers/promises.d.ts","../../../../../node_modules/@types/node/tls.d.ts","../../../../../node_modules/@types/node/trace_events.d.ts","../../../../../node_modules/@types/node/tty.d.ts","../../../../../node_modules/@types/node/url.d.ts","../../../../../node_modules/@types/node/util.d.ts","../../../../../node_modules/@types/node/v8.d.ts","../../../../../node_modules/@types/node/vm.d.ts","../../../../../node_modules/@types/node/wasi.d.ts","../../../../../node_modules/@types/node/worker_threads.d.ts","../../../../../node_modules/@types/node/zlib.d.ts","../../../../../node_modules/@types/node/index.d.ts"],"fileIdsList":[[173,217,220],[173,219,220],[220],[173,220,225,253],[173,220,221,226,231,239,250,261],[173,220,221,222,231,239],[173,220],[168,169,170,173,220],[173,220,223,262],[173,220,224,225,232,240],[173,220,225,250,258],[173,220,226,228,231,239],[173,219,220,227],[173,220,228,229],[173,220,230,231],[173,219,220,231],[173,220,231,232,233,250,261],[173,220,231,232,233,246,250,253],[173,220,228,231,234,239,250,261],[173,220,231,232,234,235,239,250,258,261],[173,220,234,236,250,258,261],[171,172,173,174,175,176,177,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267],[173,220,231,237],[173,220,238,261,266],[173,220,228,231,239,250],[173,220,240],[173,220,241],[173,219,220,242],[173,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267],[173,220,244],[173,220,245],[173,220,231,246,247],[173,220,246,248,262,264],[173,220,231,250,251,253],[173,220,252,253],[173,220,250,251],[173,220,253],[173,220,254],[173,217,220,250,255],[173,220,231,256,257],[173,220,256,257],[173,220,225,239,250,258],[173,220,259],[173,220,239,260],[173,220,234,245,261],[173,220,225,262],[173,220,250,263],[173,220,238,264],[173,220,265],[173,215,220],[173,215,220,231,233,242,250,253,261,264,266],[173,220,250,267],[173,187,191,220,261],[173,187,220,250,261],[173,182,220],[173,184,187,220,258,261],[173,220,239,258],[173,220,268],[173,182,220,268],[173,184,187,220,239,261],[173,179,180,183,186,220,231,250,261],[173,187,194,220],[173,179,185,220],[173,187,208,209,220],[173,183,187,220,253,261,268],[173,208,220,268],[173,181,182,220,268],[173,187,220],[173,181,182,183,184,185,186,187,188,189,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,209,210,211,212,213,214,220],[173,187,202,220],[173,187,194,195,220],[173,185,187,195,196,220],[173,186,220],[173,179,182,187,220],[173,187,191,195,196,220],[173,191,220],[173,185,187,190,220,261],[173,179,184,187,194,220],[173,220,250],[173,182,187,208,220,266,268],[165,166,173,220],[164,165,173,220],[164,173,220],[159,173,220],[48,158,162,173,220],[48,113,158,159,173,220],[48,157,158,173,220],[157,173,220],[48,159,173,220],[48,86,173,220],[48,70,71,173,220],[54,173,220],[53,54,173,220],[53,173,220],[48,71,72,99,101,173,220],[48,71,72,99,100,173,220],[48,101,102,173,220],[71,99,101,173,220],[71,101,173,220],[71,72,173,220],[100,173,220],[48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,173,220],[72,101,137,173,220],[137,173,220],[51,72,101,137,173,220],[100,101,113,173,220],[113,139,140,173,220],[48,118,129,173,220],[72,100,101,120,173,220],[48,101,127,173,220],[48,51,88,101,127,128,133,173,220],[113,127,128,173,220],[48,51,88,173,220],[48,101,102,113,125,173,220],[48,102,173,220],[48,113,118,173,220],[48,101,113,118,120,128,173,220],[88,118,173,220],[53,54,120,173,220],[48,88,120,173,220],[120,121,173,220],[118,173,220],[112,113,173,220],[48,100,112,173,220],[48,112,173,220],[48,71,72,102,173,220],[102,173,220],[48,86,102,173,220],[54,102,173,220],[48,72,102,173,220],[72,173,220],[82,173,220],[48,173,220],[91,173,220],[51,173,220],[48,73,86,173,220],[65,68,173,220],[66,173,220],[54,66,67,173,220],[48,51,173,220],[48,60,173,220],[60,173,220],[53,54,55,173,220]],"fileInfos":[{"version":"c430d44666289dae81f30fa7b2edebf186ecc91a2d4c71266ea6ae76388792e1","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"080941d9f9ff9307f7e27a83bcd888b7c8270716c39af943532438932ec1d0b9","affectsGlobalScope":true,"impliedFormat":1},{"version":"2e80ee7a49e8ac312cc11b77f1475804bee36b3b2bc896bead8b6e1266befb43","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"fb0f136d372979348d59b3f5020b4cdb81b5504192b1cacff5d1fbba29378aa1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"a680117f487a4d2f30ea46f1b4b7f58bef1480456e18ba53ee85c2746eeca012","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},"3883612e983b1ac8848b0d51d33f55c072c8a22a462b00aec48c40cebb7a5a15","94f70edc19254aec0f2ae820dbd8471f7f608b12bfafcc1d07446288c23581b8","8fadf421c7b678613fa6de2b4481310eb164497a2edf5860a59aba4a0f2d2185","3af9786b2e9ecf735773eb5b9bcc5843ade56fe5f0f214a8138361341c0f8d5f","5522c6b330b412fde5a3ff11611fdcea33f8a4302e752bf4a6f6a8e54214bc2a","4df9ee0e142dc2195011aad2686bd0e574d81d0e2488a3e1b2640bbabdc979b8","241099b91a92851a743f9d63d60eada4caf005fca5f4ba8df760be096593a090","007bf2f85f4f6165d07b8e8ba8f83b39b76247a30c7a66b39ba067a1031ccd3f","ead3ad66f2cfa815199460614d7a1b50ae0b84ea0bb0c21f0fa7223aa10139e9","e4addb08d84ea420cbc709d8b1af1db02a4e8d2a58fa56c797370871a2df42c2","29a526123d517edb4a5de3d8cd1e660ec97c9b967a11389972bfa29b6960faaf","04dfb0ad2934418fd7bff6011febdb231f2558d65c0a6dad48635e8875ae90d0","b9d28b90f521adfc849d4f9b7483d0289316c195da9dc4dcb2d7059ff4c02a68","af57273f31194850625ffce39dcb99d1a6564d8907f3bb84daa772ef12cf0fff","242e0d6dc84190304f6614238e1eb931c558d04fa403a2d6b5bd9d90a02855bb","e94777367183913ee132f092650a2cd7ce74f09a892ae2a9f789d99a185e808e","702c14f8654799f9b54fe232a54239a6be34e450c342364366e1489609c20dc3","5f08f941ca373c66e7a947aa1a9d97ebc4b3efca2cedec70f87af132576479b4","4fab8a1b625779d0e35e0deb5625ab9f0e07fc25086e30ba56eb59f95628a26b","7cd32707d24344557e23ea4dc8f6d704b20ef838cbd64b8f1588a8095cb55a4a","0f5ab3c44399e5a0456b490b6bbad5e036da74a5faea3c1ae0f7b5d25f064026","62f1070fddcefebdc0da2fbfa18564bf1f363afc3c7a1ed03467f668c236d751","c1660310b02520f3187cdaf2e7a4e6f2c4c2ac1cd07923fe4a63e16ce38de313","61f712fd2f6af15886187afb6535e9dab3184306d79fd093baef354fceb25db1","b8f327f9d2450de36d56db8af5e8ed5caccb2657236577ae5aa7d998297b85aa","253a3ab3619c937991b5250adad2f149e85a11799998e8e83718fbb00cf984c6","6b2e288a7b0a32c1c33792d3abb9cf0bcba8ed4561524aeb133c1e0290bf5de1","8840279388c4c9463c224ae9b6c56998e12b34ed916239f0d2aa35f0f6f97545","15806a570cc48f543f52915c9753f1fe3524620a1b6e917509e8ccb91cbb6df9","086c31a6d1ac11504aed923c431658b37a140e343ec3821e58f7c75ff39c486c","7062699bece11d50b8950860598472cc04ef8dd5c40b6f1e2bd60484c935cb0a","96e9eda58abdfd7e92cd2f86b6fa0a8fb3d8f7d9a98539f6d96a3daada5d25e6","6881fe06e71d54c140b538c74a50a5d7abe761af378d704d57a55c006918cce0","48dde985842acabfd922a502e18184332f6614a46e7048d6d22ab3fcb4eb7d1a","b2d98e7aab04cb64a58aeaa3f0a24dd92798694c2aa7251f2057d3ff6f259234","bf59af1f09193279476e548848bc8ca9778326ca2c7d9b238d9dea413cea0968","e52a28b741aa6591440b876ed3f2f24fa71b430ed59e7053dd3b2411df5ef7ca","ac4fd89951a8a6bca9ad3259e1349d8cd36f450707ded667ffafcdeaa9f54b44","c98a76e9bc67050bcc006cbe77b12b33abee94954beee04f28b0a680be0dbf28","09f637a412eb4422a3d418607563ffea1e6861963c5209182f04d0ab0ffc9a50","5748b1ca8a4ca72b9c5aead580075a46dff3797cdcf25541e0054d06410f908d","fa732f1f9c3ade6a7761ab58eb286d028f8f48d2c06cbbc1b6020682483d5cd0","91726a7d6845d3aae0f75360276793770a13ece4a780c3b25910d539ab3006f0","13f312824e278b623a168cfcc6140390fc6875f16df9bcbf77b659556e343717","f59333527d9898690642b4ff96c844d5fbbbdf15f6d7e2ccfdd9b1c71d9bc64f","6d4cb0190f783a935e82c0840dbe894a206989c40c5adbc7bc75a53cb5bd2f1d","1e059acb88a0d7058f6476185e329c344ebf1a0a931a0bdade57abba28e1fca9","8fbadfe7c3bd658447c31a2f807975eb78e50f8cb2f844029530bc7b7dc5429c","258df9f5910b57175433c3980ce6aaa1b0febe500bcc61b5c9d8db3abdb045eb","4630e0b5f24aa79945cf967e7e9d0e60306e227b975e363cc1962f531243ced9","5873949a3a4b9766b8c35d3d4c3329b77da7055d3069df8d4ba75770480fbe30","284c54098674804e8610ced0739063ce233956c140c0b110288f42c02a8b4f69","1a869e3676a80cc1de3914517df641019151f4c2886890f6fee19b6435739a08","ce8d82a24629f463e2cbee755342ff42045b61edaf250f8613a3fb7bac4df280","1bbf9ead2b5d91cbe25f8ccb6a8896ab4d422bd5daeec9828f9eaf39fb7032ba","1c0f4e30552515904af24e7edb54056d2d77cfa2ab630da107264af65bdc669c","584e5b1a6477d765cace8c7448f73cbaa38e94145904c17cbe5d07b8be57f83f","777c3121360ea51189d186280ac7e46173040e6d502b4ee43f25f797883eb1ea","2313b87fead0c9b17b371ac0f9bf901dbcc02723b10dba190e9962c17a0bb93e","1f0ed8aa47f6da8b67beea1d96824b6640db628a3042984d03e60e26b05e706d","7dd841f9d6dff1bc1edabbaae51fccd28c52760db1102f22c5e80caa7a7442a0","e6afc61ba0c1973da35ae8c98f646bead94593ce46b4963e5f176b007b68d5aa","bb5c3e4392909f613b531f1003dd7fb87c6d535df6133404bc8d4c083142b086","278f29fe9bc5e798aac0bb545a67eb1d3fc87b53410ec73d7ba4e0cd7bb68fb1","f539248bb6bf047825d411f19ad7a85366b691fcbdd57c02e8437087c111a89f","3112a620e7a2fde5c3a7ff4908c598c463f1d8670c6eaed7502eecbc9e81b3c5","13ed7ed0e63040dbe65367ddd4ecb532433332799da50d0f43fc5bbe1dc60f0c","cf173c1ab4859e9bde6c12b14d2a008889e26de5c3b74718c001622314bfbee1","6f4ce23262f94618362d46a6aef6e99dfdd6e1aa79d98dd37c38c39aa9da9660","729b9d1071b4c3fbc583e7b6b4789183e0e786f6546c7e55e91ef1659e3a9e82","062120bb0128ecb8367b97a8b1f940f69c09ed9bbf9853a491b28671544c59cb","aa460de1fb508a228be6aec159d83c5d5ac42d163d73a97e89e94742007d92b7","9744aa658d64143772a3a3a2743b042790bcd208fc725169c21efd96a7701953","a336c9d0e7b22c78f479f5ad14e7e9ad44b8a6c4aace580e98657df1259b21c9","4b5cb6be28bdfad69853bc69cee08c0b44b3634b7d33ee1c904ed9759481e0ee","ea1cfe0cb5c8b10d500def7ca6d889fad4ad31a6a3f781ef790e52388ef89431","efa1d022af579bf2d953cea6fb0cb9c1a188643aa61012ed060306ec39b1a8d2","496b3289b6b79760f26af52e80201e38a796f48eda6cfde05f668578196911e5","ddd7821f1d119328acfca1030349b848d0e27c276672cd983ce7b64e67fb8977","1bb0bb8f06f7a2457246d84d1ba48522170a5e753dd82bd5499a1130c93572ab","cf7902e2e1c961f0f4d23cf82342e1463f284a617ef7eb4c45fc887d4bb27bd8","1622d218da3ab21743d9963ca2c13ba980734cdf978e865468c7f4f682515b99","ecaeb85ebaadab07adac888968a4695a2d196126de3692f0cea950f24b084e1f","65d45f62c37371c18720fd0e48c7ba1e13e5d3db18379df50ad11161124eac08","f5883afa69a75e225574890b5b102970a012b43cdfc9b30d0550abc73eb3977c","d6da78690ab4de436ee36996d416f7267689f2e81bc6797d146bc7b6163da546","fd6dd10c64e7509fead7ea5cfcd056cb9a29f9a9c466d172e2706e8297796bee","bf3f748fb472599692476c2caa368f344d2cd89a9a3ac2267cae821a67d93f21","96d45755009fa0cf55a14e0a3d4b80076b70a81b19e61ee4b1dc7f1e40eaeedc","476d292c67608e88dcc3c128e4b49a264d7f37ea84318f0d416f2d3134b4ce94","d1f66ed744acfe060e66b2879ea2c0890bf4cd22d8a49589cecb0e25c0256a15","0a252356615a37ca60f2c35df1d0b13ce5006075b70fa2dbc9f4e8e8e7ca99be","9675187baabbf8529440b2d914d9897e03ba39e00d9ea97eadd73496f34836f6","def8f8deb010cb839e568c05f85e5479072cdb379bc51cd4a800cbd469c4bdeb","dc41d46d51c55ccbec534de919fadb79f5d4c74e23a9483578ddb9586a4e8fe4","a71fa0cb6409dbd5dd3ad0819f2aa3102ad7e23b324724a85dce1f8e2dbd6aa2","9d237656738d440ec3570bb762b527a603f6d917cd1918af827927352ca9ed59","570d6cf58320056ff52a5386c6c8545487b6fe8a2ddd280336ba732508290043","8487886fb8c052413f341b1503d99e2d6f487036babfd2800eb7dcc0d021cbec","f5fcbbf9b87d3cc23a7b36836ee8ab9c2369e9e074d682452c4c91f8392d35d3","0cded3744204c1048a1cff51364a889d1c66e879601e631c4a34b6a47372f92a","fa69573d22a14f16cabad8790b4d79ffed4f7eb0d2c80e8003e0f8dcd4f7f59b","de43b1fa7b23f04642a6343baa123b061fb9e2a99bcfdd36e8b6eb6de6e8b1fd","9d3c460c38697c07327bf477a7c0e79a2010800a8cf9a507b6dd148cc5a1bb1a","88e64d9529fcd6a50cc670106cecdc79e8f68fe5f2636e7d4846afa454884ee9","43e40faf955b38f070de188a9dfe7e3e36b759963b6003a4050b97a2236ca104","d93defc47bd6beffd510f629546fc89abe2db62731b1282000cd2951c513e29d","db5909452d6d626c59a7d2456495c41c3add56e08cade839f030e71aa28da0c6","1029fb366046c3533ee894f9412586975849b0ebd059ef77442e34bd4b0bb895","8331ca6b5890aada460a787a2ca1012d2eda798a32a2fcb3120a4122e9636bb0","8032230c88507809a3d439fd6f03b31062fad2668944e3f2744c445b6ee647fd","e98f7509ef113df3035707635200fa4d593163edfb51d0990cba7897e3b4a71d","275da1d17e6ca9ca3db0b8f92192880818d968819ccdef8260a19a3bfe7ca12d","db73ce6470dbaecf4bfe84b72c03ed4bd4a68220141fbb103aa9fafedf87ffb2","9a2201e559019df7862b7cc34cc5951595ba4cc6e682c5b9b44e98a3c4198dac","a9460a1ab303aef75bd7b6ee6f1aeb49e67d043a828637b804f48129fbd4be25","8b4a423e8e442910a1ca27061270e259be1e1e49143043684e4f854ae1991254",{"version":"8a5fa6813a1e7ff308cb67754fc38b1e40e8f020db5eef13c6e009bc3289d8ba","signature":"f5b3db8712376df670612a76dc31341df2c4de04a68b7914894ca85167581d77"},{"version":"b4de8801ba70cf615343c9fd2b881c8f5d0d2b08da2dfae0fa90262be37c75d0","signature":"111e6379bba70b60a5cd7028faf704f2ea5db231b704050e33efd03cf2fcf43a"},{"version":"5853af1b9c7c8207242707ecfa559ab3421e47675dd28129a216860f5a4a8b85","signature":"5f66e99fefb0f42778e52c040e37f64e48a25ceddc7b8692bc787c7eaf8b9ebb"},{"version":"70521b6ab0dcba37539e5303104f29b721bfb2940b2776da4cc818c07e1fefc1","affectsGlobalScope":true,"impliedFormat":1},{"version":"ab41ef1f2cdafb8df48be20cd969d875602483859dc194e9c97c8a576892c052","affectsGlobalScope":true,"impliedFormat":1},{"version":"d153a11543fd884b596587ccd97aebbeed950b26933ee000f94009f1ab142848","affectsGlobalScope":true,"impliedFormat":1},{"version":"21d819c173c0cf7cc3ce57c3276e77fd9a8a01d35a06ad87158781515c9a438a","impliedFormat":1},{"version":"98cffbf06d6bab333473c70a893770dbe990783904002c4f1a960447b4b53dca","affectsGlobalScope":true,"impliedFormat":1},{"version":"ba481bca06f37d3f2c137ce343c7d5937029b2468f8e26111f3c9d9963d6568d","affectsGlobalScope":true,"impliedFormat":1},{"version":"6d9ef24f9a22a88e3e9b3b3d8c40ab1ddb0853f1bfbd5c843c37800138437b61","affectsGlobalScope":true,"impliedFormat":1},{"version":"1db0b7dca579049ca4193d034d835f6bfe73096c73663e5ef9a0b5779939f3d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"9798340ffb0d067d69b1ae5b32faa17ab31b82466a3fc00d8f2f2df0c8554aaa","affectsGlobalScope":true,"impliedFormat":1},{"version":"f26b11d8d8e4b8028f1c7d618b22274c892e4b0ef5b3678a8ccbad85419aef43","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e9c23ba78aabc2e0a27033f18737a6df754067731e69dc5f52823957d60a4b6","impliedFormat":1},{"version":"5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","impliedFormat":1},{"version":"763fe0f42b3d79b440a9b6e51e9ba3f3f91352469c1e4b3b67bfa4ff6352f3f4","impliedFormat":1},{"version":"25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","impliedFormat":1},{"version":"c464d66b20788266e5353b48dc4aa6bc0dc4a707276df1e7152ab0c9ae21fad8","impliedFormat":1},{"version":"78d0d27c130d35c60b5e5566c9f1e5be77caf39804636bc1a40133919a949f21","impliedFormat":1},{"version":"c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","impliedFormat":1},{"version":"1d6e127068ea8e104a912e42fc0a110e2aa5a66a356a917a163e8cf9a65e4a75","impliedFormat":1},{"version":"5ded6427296cdf3b9542de4471d2aa8d3983671d4cac0f4bf9c637208d1ced43","impliedFormat":1},{"version":"7f182617db458e98fc18dfb272d40aa2fff3a353c44a89b2c0ccb3937709bfb5","impliedFormat":1},{"version":"cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","impliedFormat":1},{"version":"385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","impliedFormat":1},{"version":"9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","impliedFormat":1},{"version":"0b8a9268adaf4da35e7fa830c8981cfa22adbbe5b3f6f5ab91f6658899e657a7","impliedFormat":1},{"version":"11396ed8a44c02ab9798b7dca436009f866e8dae3c9c25e8c1fbc396880bf1bb","impliedFormat":1},{"version":"ba7bc87d01492633cb5a0e5da8a4a42a1c86270e7b3d2dea5d156828a84e4882","impliedFormat":1},{"version":"4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","impliedFormat":1},{"version":"c21dc52e277bcfc75fac0436ccb75c204f9e1b3fa5e12729670910639f27343e","impliedFormat":1},{"version":"13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","impliedFormat":1},{"version":"9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","impliedFormat":1},{"version":"4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","impliedFormat":1},{"version":"24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","impliedFormat":1},{"version":"ea0148f897b45a76544ae179784c95af1bd6721b8610af9ffa467a518a086a43","impliedFormat":1},{"version":"24c6a117721e606c9984335f71711877293a9651e44f59f3d21c1ea0856f9cc9","impliedFormat":1},{"version":"dd3273ead9fbde62a72949c97dbec2247ea08e0c6952e701a483d74ef92d6a17","impliedFormat":1},{"version":"405822be75ad3e4d162e07439bac80c6bcc6dbae1929e179cf467ec0b9ee4e2e","impliedFormat":1},{"version":"0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","impliedFormat":1},{"version":"e61be3f894b41b7baa1fbd6a66893f2579bfad01d208b4ff61daef21493ef0a8","impliedFormat":1},{"version":"bd0532fd6556073727d28da0edfd1736417a3f9f394877b6d5ef6ad88fba1d1a","impliedFormat":1},{"version":"89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","impliedFormat":1},{"version":"615ba88d0128ed16bf83ef8ccbb6aff05c3ee2db1cc0f89ab50a4939bfc1943f","impliedFormat":1},{"version":"a4d551dbf8746780194d550c88f26cf937caf8d56f102969a110cfaed4b06656","impliedFormat":1},{"version":"8bd86b8e8f6a6aa6c49b71e14c4ffe1211a0e97c80f08d2c8cc98838006e4b88","impliedFormat":1},{"version":"317e63deeb21ac07f3992f5b50cdca8338f10acd4fbb7257ebf56735bf52ab00","impliedFormat":1},{"version":"4732aec92b20fb28c5fe9ad99521fb59974289ed1e45aecb282616202184064f","impliedFormat":1},{"version":"2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","impliedFormat":1},{"version":"c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","impliedFormat":1},{"version":"bf67d53d168abc1298888693338cb82854bdb2e69ef83f8a0092093c2d562107","impliedFormat":1},{"version":"b52476feb4a0cbcb25e5931b930fc73cb6643fb1a5060bf8a3dda0eeae5b4b68","affectsGlobalScope":true,"impliedFormat":1},{"version":"e2677634fe27e87348825bb041651e22d50a613e2fdf6a4a3ade971d71bac37e","impliedFormat":1},{"version":"7394959e5a741b185456e1ef5d64599c36c60a323207450991e7a42e08911419","impliedFormat":1},{"version":"8c0bcd6c6b67b4b503c11e91a1fb91522ed585900eab2ab1f61bba7d7caa9d6f","impliedFormat":1},{"version":"8cd19276b6590b3ebbeeb030ac271871b9ed0afc3074ac88a94ed2449174b776","affectsGlobalScope":true,"impliedFormat":1},{"version":"696eb8d28f5949b87d894b26dc97318ef944c794a9a4e4f62360cd1d1958014b","impliedFormat":1},{"version":"3f8fa3061bd7402970b399300880d55257953ee6d3cd408722cb9ac20126460c","impliedFormat":1},{"version":"35ec8b6760fd7138bbf5809b84551e31028fb2ba7b6dc91d95d098bf212ca8b4","affectsGlobalScope":true,"impliedFormat":1},{"version":"5524481e56c48ff486f42926778c0a3cce1cc85dc46683b92b1271865bcf015a","impliedFormat":1},{"version":"68bd56c92c2bd7d2339457eb84d63e7de3bd56a69b25f3576e1568d21a162398","affectsGlobalScope":true,"impliedFormat":1},{"version":"3e93b123f7c2944969d291b35fed2af79a6e9e27fdd5faa99748a51c07c02d28","impliedFormat":1},{"version":"9d19808c8c291a9010a6c788e8532a2da70f811adb431c97520803e0ec649991","impliedFormat":1},{"version":"87aad3dd9752067dc875cfaa466fc44246451c0c560b820796bdd528e29bef40","impliedFormat":1},{"version":"4aacb0dd020eeaef65426153686cc639a78ec2885dc72ad220be1d25f1a439df","impliedFormat":1},{"version":"f0bd7e6d931657b59605c44112eaf8b980ba7f957a5051ed21cb93d978cf2f45","impliedFormat":1},{"version":"8db0ae9cb14d9955b14c214f34dae1b9ef2baee2fe4ce794a4cd3ac2531e3255","affectsGlobalScope":true,"impliedFormat":1},{"version":"15fc6f7512c86810273af28f224251a5a879e4261b4d4c7e532abfbfc3983134","impliedFormat":1},{"version":"58adba1a8ab2d10b54dc1dced4e41f4e7c9772cbbac40939c0dc8ce2cdb1d442","impliedFormat":1},{"version":"641942a78f9063caa5d6b777c99304b7d1dc7328076038c6d94d8a0b81fc95c1","impliedFormat":1},{"version":"2de7636e6fbb9e54a61a38bcb7505b94ec5be61197fe9e840cff629ca920c4bc","impliedFormat":1},{"version":"855cd5f7eb396f5f1ab1bc0f8580339bff77b68a770f84c6b254e319bbfd1ac7","impliedFormat":1},{"version":"5650cf3dace09e7c25d384e3e6b818b938f68f4e8de96f52d9c5a1b3db068e86","impliedFormat":1},{"version":"1354ca5c38bd3fd3836a68e0f7c9f91f172582ba30ab15bb8c075891b91502b7","affectsGlobalScope":true,"impliedFormat":1},{"version":"7e20d899c28ca26a2a7afc98beaa69e63ff7fba0a8bc47b4e3bf3ede5e09e424","impliedFormat":1},{"version":"2d2fcaab481b31a5882065c7951255703ddbe1c0e507af56ea42d79ac3911201","impliedFormat":1},{"version":"a192fe8ec33f75edbc8d8f3ed79f768dfae11ff5735e7fe52bfa69956e46d78d","impliedFormat":1},{"version":"ca867399f7db82df981d6915bcbb2d81131d7d1ef683bc782b59f71dda59bc85","affectsGlobalScope":true,"impliedFormat":1},{"version":"372413016d17d804e1d139418aca0c68e47a83fb6669490857f4b318de8cccb3","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e043a1bc8fbf2a255bccf9bf27e0f1caf916c3b0518ea34aa72357c0afd42ec","impliedFormat":1},{"version":"b4f70ec656a11d570e1a9edce07d118cd58d9760239e2ece99306ee9dfe61d02","impliedFormat":1},{"version":"3bc2f1e2c95c04048212c569ed38e338873f6a8593930cf5a7ef24ffb38fc3b6","impliedFormat":1},{"version":"6e70e9570e98aae2b825b533aa6292b6abd542e8d9f6e9475e88e1d7ba17c866","impliedFormat":1},{"version":"f9d9d753d430ed050dc1bf2667a1bab711ccbb1c1507183d794cc195a5b085cc","impliedFormat":1},{"version":"9eece5e586312581ccd106d4853e861aaaa1a39f8e3ea672b8c3847eedd12f6e","impliedFormat":1},{"version":"085f552d005479e2e6a7311cdbbe5d8c55c497b4d19274285df161ee9684cd9c","impliedFormat":1},{"version":"37ba7b45141a45ce6e80e66f2a96c8a5ab1bcef0fc2d0f56bb58df96ec67e972","impliedFormat":1},{"version":"45650f47bfb376c8a8ed39d4bcda5902ab899a3150029684ee4c10676d9fbaee","impliedFormat":1},{"version":"007faacc9268357caa21d24169f3f3f2497af3e9241308df2d89f6e6d9bb3f2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"74cf591a0f63db318651e0e04cb55f8791385f86e987a67fd4d2eaab8191f730","impliedFormat":1},{"version":"5eab9b3dc9b34f185417342436ec3f106898da5f4801992d8ff38ab3aff346b5","impliedFormat":1},{"version":"12ed4559eba17cd977aa0db658d25c4047067444b51acfdcbf38470630642b23","affectsGlobalScope":true,"impliedFormat":1},{"version":"f3ffabc95802521e1e4bcba4c88d8615176dc6e09111d920c7a213bdda6e1d65","impliedFormat":1},{"version":"809821b8a065e3234a55b3a9d7846231ed18d66dd749f2494c66288d890daf7f","impliedFormat":1},{"version":"ae56f65caf3be91108707bd8dfbccc2a57a91feb5daabf7165a06a945545ed26","impliedFormat":1},{"version":"a136d5de521da20f31631a0a96bf712370779d1c05b7015d7019a9b2a0446ca9","impliedFormat":1},{"version":"c3b41e74b9a84b88b1dca61ec39eee25c0dbc8e7d519ba11bb070918cfacf656","affectsGlobalScope":true,"impliedFormat":1},{"version":"4737a9dc24d0e68b734e6cfbcea0c15a2cfafeb493485e27905f7856988c6b29","affectsGlobalScope":true,"impliedFormat":1},{"version":"36d8d3e7506b631c9582c251a2c0b8a28855af3f76719b12b534c6edf952748d","impliedFormat":1},{"version":"1ca69210cc42729e7ca97d3a9ad48f2e9cb0042bada4075b588ae5387debd318","impliedFormat":1},{"version":"f5ebe66baaf7c552cfa59d75f2bfba679f329204847db3cec385acda245e574e","impliedFormat":1},{"version":"ed59add13139f84da271cafd32e2171876b0a0af2f798d0c663e8eeb867732cf","affectsGlobalScope":true,"impliedFormat":1},{"version":"b7c5e2ea4a9749097c347454805e933844ed207b6eefec6b7cfd418b5f5f7b28","impliedFormat":1},{"version":"b1810689b76fd473bd12cc9ee219f8e62f54a7d08019a235d07424afbf074d25","impliedFormat":1}],"root":[[165,167]],"options":{"alwaysStrict":true,"composite":true,"declaration":true,"declarationMap":true,"esModuleInterop":true,"exactOptionalPropertyTypes":true,"module":99,"noImplicitAny":true,"noImplicitThis":true,"outDir":"./","skipLibCheck":true,"strict":true,"strictBindCallApply":true,"strictFunctionTypes":true,"strictNullChecks":true,"strictPropertyInitialization":true,"target":99,"useUnknownInCatchVariables":true},"referencedMap":[[217,1],[218,1],[219,2],[173,3],[220,4],[221,5],[222,6],[168,7],[171,8],[169,7],[170,7],[223,9],[224,10],[225,11],[226,12],[227,13],[228,14],[229,14],[230,15],[231,16],[232,17],[233,18],[174,7],[172,7],[234,19],[235,20],[236,21],[268,22],[237,23],[238,24],[239,25],[240,26],[241,27],[242,28],[243,29],[244,30],[245,31],[246,32],[247,32],[248,33],[249,7],[250,34],[252,35],[251,36],[253,37],[254,38],[255,39],[256,40],[257,41],[258,42],[259,43],[260,44],[261,45],[262,46],[263,47],[264,48],[265,49],[175,7],[176,7],[177,7],[216,50],[266,51],[267,52],[178,7],[46,7],[47,7],[8,7],[9,7],[11,7],[10,7],[2,7],[12,7],[13,7],[14,7],[15,7],[16,7],[17,7],[18,7],[19,7],[3,7],[20,7],[21,7],[4,7],[22,7],[26,7],[23,7],[24,7],[25,7],[27,7],[28,7],[29,7],[5,7],[30,7],[31,7],[32,7],[33,7],[6,7],[37,7],[34,7],[35,7],[36,7],[38,7],[7,7],[39,7],[44,7],[45,7],[40,7],[41,7],[42,7],[43,7],[1,7],[194,53],[204,54],[193,53],[214,55],[185,56],[184,57],[213,58],[207,59],[212,60],[187,61],[201,62],[186,63],[210,64],[182,65],[181,58],[211,66],[183,67],[188,68],[189,7],[192,68],[179,7],[215,69],[205,70],[196,71],[197,72],[199,73],[195,74],[198,75],[208,58],[190,76],[191,77],[200,78],[180,79],[203,70],[202,68],[206,7],[209,80],[167,81],[166,82],[165,83],[162,84],[163,85],[161,86],[159,87],[158,88],[160,89],[157,90],[156,7],[67,7],[72,91],[71,7],[155,92],[154,7],[153,92],[70,92],[152,93],[54,94],[151,93],[150,92],[149,92],[148,92],[147,93],[125,95],[101,96],[146,97],[145,98],[144,99],[99,100],[143,7],[113,7],[142,101],[164,102],[139,103],[138,104],[140,105],[137,106],[100,7],[136,101],[141,107],[133,7],[130,108],[135,109],[128,110],[134,111],[132,112],[127,113],[126,114],[118,115],[124,116],[129,117],[120,118],[121,119],[123,120],[131,7],[122,121],[119,122],[117,96],[112,7],[114,123],[116,124],[115,125],[102,99],[107,115],[111,7],[106,7],[105,126],[104,127],[110,128],[103,129],[109,130],[108,131],[98,132],[94,133],[97,92],[96,7],[95,7],[90,90],[91,7],[93,7],[92,134],[66,7],[86,133],[89,133],[88,135],[87,136],[85,131],[84,133],[83,7],[82,133],[81,131],[80,7],[79,7],[78,7],[77,7],[76,133],[75,137],[74,138],[73,131],[69,7],[68,139],[65,140],[64,7],[51,133],[63,141],[60,7],[61,142],[62,141],[53,133],[55,7],[59,133],[58,7],[57,7],[52,140],[56,143],[50,7],[48,7],[49,7]],"latestChangedDtsFile":"./index.d.ts","version":"5.9.3"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ObservableValue } from './observableValue';
|
|
2
|
+
import { ReadonlyRecord } from '@amazon/vinyl-util';
|
|
3
|
+
/**
|
|
4
|
+
* Combines a record of data providers into a single provider of a record of values.
|
|
5
|
+
*
|
|
6
|
+
* @param inputs A record of data providers.
|
|
7
|
+
*/
|
|
8
|
+
export declare function combineData<T extends ReadonlyRecord<string, ObservableValue<unknown>>>(inputs: T): ObservableValue<{
|
|
9
|
+
readonly [K in keyof T]: T[K] extends ObservableValue<infer U> ? U : T[K];
|
|
10
|
+
}>;
|
|
11
|
+
//# sourceMappingURL=combineData.d.ts.map
|