@qlover/fe-corekit 2.2.0 → 2.3.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 +20 -38
- package/dist/index.d.ts +297 -14
- package/dist/index.iife.js +20 -37
- package/dist/index.iife.min.js +1 -1
- package/dist/index.js +21 -36
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -2511,9 +2511,6 @@ __export(index_exports, {
|
|
|
2511
2511
|
KeyStorage: function() {
|
|
2512
2512
|
return KeyStorage;
|
|
2513
2513
|
},
|
|
2514
|
-
KeyStorageInterface: function() {
|
|
2515
|
-
return KeyStorageInterface;
|
|
2516
|
-
},
|
|
2517
2514
|
ObjectStorage: function() {
|
|
2518
2515
|
return ObjectStorage;
|
|
2519
2516
|
},
|
|
@@ -5982,19 +5979,28 @@ var Base64Serializer = /*#__PURE__*/ function() {
|
|
|
5982
5979
|
]);
|
|
5983
5980
|
return Base64Serializer;
|
|
5984
5981
|
}();
|
|
5985
|
-
// src/storage/
|
|
5986
|
-
var
|
|
5987
|
-
function
|
|
5982
|
+
// src/storage/impl/KeyStorage.ts
|
|
5983
|
+
var KeyStorage = /*#__PURE__*/ function() {
|
|
5984
|
+
function KeyStorage(key) {
|
|
5988
5985
|
var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
5989
|
-
_class_call_check(this,
|
|
5990
|
-
var _options_storage;
|
|
5986
|
+
_class_call_check(this, KeyStorage);
|
|
5991
5987
|
this.key = key;
|
|
5992
5988
|
this.options = options;
|
|
5993
|
-
|
|
5994
|
-
|
|
5995
|
-
|
|
5989
|
+
try {
|
|
5990
|
+
var _options_storage;
|
|
5991
|
+
var localValue = (_options_storage = options.storage) === null || _options_storage === void 0 ? void 0 : _options_storage.getItem(key);
|
|
5992
|
+
this.value = localValue !== null && localValue !== void 0 ? localValue : null;
|
|
5993
|
+
} catch (e) {
|
|
5994
|
+
this.value = null;
|
|
5995
|
+
}
|
|
5996
5996
|
}
|
|
5997
|
-
_create_class(
|
|
5997
|
+
_create_class(KeyStorage, [
|
|
5998
|
+
{
|
|
5999
|
+
key: "mergeOptions",
|
|
6000
|
+
value: function mergeOptions(options) {
|
|
6001
|
+
return _object_spread({}, this.options, options);
|
|
6002
|
+
}
|
|
6003
|
+
},
|
|
5998
6004
|
{
|
|
5999
6005
|
key: "getKey",
|
|
6000
6006
|
value: function getKey() {
|
|
@@ -6004,30 +6010,7 @@ var KeyStorageInterface = /*#__PURE__*/ function() {
|
|
|
6004
6010
|
{
|
|
6005
6011
|
key: "getValue",
|
|
6006
6012
|
value: function getValue() {
|
|
6007
|
-
return this.
|
|
6008
|
-
}
|
|
6009
|
-
}
|
|
6010
|
-
]);
|
|
6011
|
-
return KeyStorageInterface;
|
|
6012
|
-
}();
|
|
6013
|
-
// src/storage/impl/KeyStorage.ts
|
|
6014
|
-
var KeyStorage = /*#__PURE__*/ function(KeyStorageInterface) {
|
|
6015
|
-
_inherits(KeyStorage, KeyStorageInterface);
|
|
6016
|
-
var _super = _create_super(KeyStorage);
|
|
6017
|
-
function KeyStorage() {
|
|
6018
|
-
_class_call_check(this, KeyStorage);
|
|
6019
|
-
var _this;
|
|
6020
|
-
_this = _super.call.apply(_super, [
|
|
6021
|
-
this
|
|
6022
|
-
].concat(Array.prototype.slice.call(arguments)));
|
|
6023
|
-
_this.value = null;
|
|
6024
|
-
return _this;
|
|
6025
|
-
}
|
|
6026
|
-
_create_class(KeyStorage, [
|
|
6027
|
-
{
|
|
6028
|
-
key: "mergeOptions",
|
|
6029
|
-
value: function mergeOptions(options) {
|
|
6030
|
-
return _object_spread({}, this.options, options);
|
|
6013
|
+
return this.value;
|
|
6031
6014
|
}
|
|
6032
6015
|
},
|
|
6033
6016
|
{
|
|
@@ -6075,7 +6058,7 @@ var KeyStorage = /*#__PURE__*/ function(KeyStorageInterface) {
|
|
|
6075
6058
|
}
|
|
6076
6059
|
]);
|
|
6077
6060
|
return KeyStorage;
|
|
6078
|
-
}(
|
|
6061
|
+
}();
|
|
6079
6062
|
// src/storage/impl/ObjectStorage.ts
|
|
6080
6063
|
var ObjectStorage = /*#__PURE__*/ function() {
|
|
6081
6064
|
function ObjectStorage(serializer) {
|
|
@@ -6545,7 +6528,6 @@ var SyncStorage = /*#__PURE__*/ function() {
|
|
|
6545
6528
|
FetchURLPlugin: FetchURLPlugin,
|
|
6546
6529
|
JSONSerializer: JSONSerializer,
|
|
6547
6530
|
KeyStorage: KeyStorage,
|
|
6548
|
-
KeyStorageInterface: KeyStorageInterface,
|
|
6549
6531
|
ObjectStorage: ObjectStorage,
|
|
6550
6532
|
RequestAdapterAxios: RequestAdapterAxios,
|
|
6551
6533
|
RequestAdapterFetch: RequestAdapterFetch,
|
package/dist/index.d.ts
CHANGED
|
@@ -4246,6 +4246,296 @@ interface ExpireOptions {
|
|
|
4246
4246
|
expires?: unknown;
|
|
4247
4247
|
}
|
|
4248
4248
|
|
|
4249
|
+
/**
|
|
4250
|
+
* Key-value storage interface for managing a single value with persistence support
|
|
4251
|
+
*
|
|
4252
|
+
* Core concept:
|
|
4253
|
+
* Provides a unified interface for storing and retrieving a single value associated
|
|
4254
|
+
* with a specific key. Supports both in-memory and persistent storage backends,
|
|
4255
|
+
* enabling flexible storage strategies for different use cases.
|
|
4256
|
+
*
|
|
4257
|
+
* **v2.3.0 before this was an abstract class, now it is an interface**
|
|
4258
|
+
*
|
|
4259
|
+
* Main features:
|
|
4260
|
+
* - Single value storage: Store one value per key instance
|
|
4261
|
+
* - Key management: Retrieve the storage key associated with this instance
|
|
4262
|
+
* - Value retrieval: Get stored value from memory or persistent storage
|
|
4263
|
+
* - Value persistence: Save value to underlying storage backend
|
|
4264
|
+
* - Value removal: Clear value from both memory and persistent storage
|
|
4265
|
+
* - Options support: Flexible options parameter for storage-specific configurations
|
|
4266
|
+
*
|
|
4267
|
+
* Typical usage scenarios:
|
|
4268
|
+
* - Token storage: Store authentication tokens with persistence
|
|
4269
|
+
* - User info storage: Persist user information across sessions
|
|
4270
|
+
* - Configuration storage: Store application settings (theme, language, etc.)
|
|
4271
|
+
* - Session data: Manage temporary session-specific data
|
|
4272
|
+
*
|
|
4273
|
+
* Design decisions:
|
|
4274
|
+
* - Returns `null` when value is not found (explicit null handling)
|
|
4275
|
+
* - Options parameter is optional to support simple use cases
|
|
4276
|
+
* - Generic types allow type-safe storage of any value type
|
|
4277
|
+
* - Supports both synchronous and asynchronous storage backends through options
|
|
4278
|
+
*
|
|
4279
|
+
* @template Key - The type of the storage key (e.g., `string`, `number`, `symbol`)
|
|
4280
|
+
* @template Value - The type of value to store
|
|
4281
|
+
* @template Opt - The type of options for storage operations (defaults to `unknown`)
|
|
4282
|
+
*
|
|
4283
|
+
* @example Basic usage with localStorage
|
|
4284
|
+
* ```typescript
|
|
4285
|
+
* const tokenStorage: KeyStorageInterface<string, string> = new KeyStorage('token', {
|
|
4286
|
+
* storage: localStorage
|
|
4287
|
+
* });
|
|
4288
|
+
*
|
|
4289
|
+
* // Store token
|
|
4290
|
+
* tokenStorage.set('abc123token');
|
|
4291
|
+
*
|
|
4292
|
+
* // Retrieve token
|
|
4293
|
+
* const token = tokenStorage.get(); // Returns 'abc123token'
|
|
4294
|
+
*
|
|
4295
|
+
* // Get storage key
|
|
4296
|
+
* const key = tokenStorage.getKey(); // Returns 'token'
|
|
4297
|
+
*
|
|
4298
|
+
* // Remove token
|
|
4299
|
+
* tokenStorage.remove();
|
|
4300
|
+
* ```
|
|
4301
|
+
*
|
|
4302
|
+
* @example User information storage
|
|
4303
|
+
* ```typescript
|
|
4304
|
+
* interface User {
|
|
4305
|
+
* id: string;
|
|
4306
|
+
* name: string;
|
|
4307
|
+
* email: string;
|
|
4308
|
+
* }
|
|
4309
|
+
*
|
|
4310
|
+
* const userStorage: KeyStorageInterface<string, User> = new KeyStorage('user', {
|
|
4311
|
+
* storage: localStorage
|
|
4312
|
+
* });
|
|
4313
|
+
*
|
|
4314
|
+
* const user: User = {
|
|
4315
|
+
* id: '123',
|
|
4316
|
+
* name: 'John Doe',
|
|
4317
|
+
* email: 'john@example.com'
|
|
4318
|
+
* };
|
|
4319
|
+
*
|
|
4320
|
+
* userStorage.set(user);
|
|
4321
|
+
* const storedUser = userStorage.get(); // Returns User object
|
|
4322
|
+
* ```
|
|
4323
|
+
*
|
|
4324
|
+
* @example With custom options
|
|
4325
|
+
* ```typescript
|
|
4326
|
+
* interface StorageOptions {
|
|
4327
|
+
* encrypt?: boolean;
|
|
4328
|
+
* expires?: number;
|
|
4329
|
+
* }
|
|
4330
|
+
*
|
|
4331
|
+
* const secureStorage: KeyStorageInterface<string, string, StorageOptions> =
|
|
4332
|
+
* new KeyStorage('secret', {
|
|
4333
|
+
* storage: localStorage,
|
|
4334
|
+
* encrypt: true
|
|
4335
|
+
* });
|
|
4336
|
+
*
|
|
4337
|
+
* secureStorage.set('sensitive-data', { encrypt: true, expires: 3600 });
|
|
4338
|
+
* ```
|
|
4339
|
+
*/
|
|
4340
|
+
interface KeyStorageInterface<Key, Value, Opt = unknown> {
|
|
4341
|
+
/**
|
|
4342
|
+
* Get the storage key associated with this instance
|
|
4343
|
+
*
|
|
4344
|
+
* Returns the key that was used to initialize this storage instance.
|
|
4345
|
+
* This key is used to identify the storage location in the underlying
|
|
4346
|
+
* storage backend.
|
|
4347
|
+
*
|
|
4348
|
+
* @returns The storage key of type `Key`
|
|
4349
|
+
*
|
|
4350
|
+
* @example
|
|
4351
|
+
* ```typescript
|
|
4352
|
+
* const storage = new KeyStorage('my-key', { storage: localStorage });
|
|
4353
|
+
* const key = storage.getKey(); // Returns 'my-key'
|
|
4354
|
+
* ```
|
|
4355
|
+
*/
|
|
4356
|
+
getKey(): Key;
|
|
4357
|
+
/**
|
|
4358
|
+
* Get the current in-memory value without accessing persistent storage
|
|
4359
|
+
*
|
|
4360
|
+
* Returns the value currently stored in memory. This method does not
|
|
4361
|
+
* attempt to load from persistent storage. Use `get()` if you want
|
|
4362
|
+
* to retrieve from persistent storage when memory value is null.
|
|
4363
|
+
*
|
|
4364
|
+
* Returns `null` if:
|
|
4365
|
+
* - No value has been set yet
|
|
4366
|
+
* - Value was removed via `remove()`
|
|
4367
|
+
* - Value was never loaded from storage
|
|
4368
|
+
*
|
|
4369
|
+
* @returns The current in-memory value, or `null` if not available
|
|
4370
|
+
*
|
|
4371
|
+
* @example
|
|
4372
|
+
* ```typescript
|
|
4373
|
+
* const storage = new KeyStorage('token', { storage: localStorage });
|
|
4374
|
+
*
|
|
4375
|
+
* // Initially null (not loaded from storage yet)
|
|
4376
|
+
* const memValue = storage.getValue(); // Returns null
|
|
4377
|
+
*
|
|
4378
|
+
* // After setting
|
|
4379
|
+
* storage.set('abc123');
|
|
4380
|
+
* const memValue2 = storage.getValue(); // Returns 'abc123'
|
|
4381
|
+
*
|
|
4382
|
+
* // After removal
|
|
4383
|
+
* storage.remove();
|
|
4384
|
+
* const memValue3 = storage.getValue(); // Returns null
|
|
4385
|
+
* ```
|
|
4386
|
+
*/
|
|
4387
|
+
getValue(): Value | null;
|
|
4388
|
+
/**
|
|
4389
|
+
* Retrieve value from storage with optional configuration
|
|
4390
|
+
*
|
|
4391
|
+
* Retrieval strategy:
|
|
4392
|
+
* 1. First checks in-memory value (fast path)
|
|
4393
|
+
* 2. If memory value is null and persistent storage is available,
|
|
4394
|
+
* loads from persistent storage and updates memory cache
|
|
4395
|
+
* 3. Returns null if value doesn't exist in either location
|
|
4396
|
+
*
|
|
4397
|
+
* The `options` parameter allows passing storage-specific configuration
|
|
4398
|
+
* that may override default behavior (e.g., encryption settings, expiration checks).
|
|
4399
|
+
*
|
|
4400
|
+
* @param options - Optional storage operation configuration
|
|
4401
|
+
* @returns The stored value, or `null` if not found
|
|
4402
|
+
*
|
|
4403
|
+
* @example Basic retrieval
|
|
4404
|
+
* ```typescript
|
|
4405
|
+
* const storage = new KeyStorage('token', { storage: localStorage });
|
|
4406
|
+
* storage.set('abc123');
|
|
4407
|
+
* const token = storage.get(); // Returns 'abc123'
|
|
4408
|
+
* ```
|
|
4409
|
+
*
|
|
4410
|
+
* @example With options
|
|
4411
|
+
* ```typescript
|
|
4412
|
+
* interface Options {
|
|
4413
|
+
* decrypt?: boolean;
|
|
4414
|
+
* }
|
|
4415
|
+
*
|
|
4416
|
+
* const storage = new KeyStorage<string, string, Options>('secret', {
|
|
4417
|
+
* storage: localStorage
|
|
4418
|
+
* });
|
|
4419
|
+
*
|
|
4420
|
+
* // Retrieve with decryption
|
|
4421
|
+
* const value = storage.get({ decrypt: true });
|
|
4422
|
+
* ```
|
|
4423
|
+
*
|
|
4424
|
+
* @example Handling null values
|
|
4425
|
+
* ```typescript
|
|
4426
|
+
* const storage = new KeyStorage('data', { storage: localStorage });
|
|
4427
|
+
* const value = storage.get();
|
|
4428
|
+
*
|
|
4429
|
+
* if (value === null) {
|
|
4430
|
+
* console.log('No value stored');
|
|
4431
|
+
* } else {
|
|
4432
|
+
* console.log('Value:', value);
|
|
4433
|
+
* }
|
|
4434
|
+
* ```
|
|
4435
|
+
*/
|
|
4436
|
+
get(options?: Opt): Value | null;
|
|
4437
|
+
/**
|
|
4438
|
+
* Store a value with optional configuration
|
|
4439
|
+
*
|
|
4440
|
+
* Storage behavior:
|
|
4441
|
+
* - Updates in-memory value immediately
|
|
4442
|
+
* - Persists to underlying storage backend if available
|
|
4443
|
+
* - Merges provided options with default options
|
|
4444
|
+
* - Overwrites any existing value for this key
|
|
4445
|
+
*
|
|
4446
|
+
* The `options` parameter can be used to pass storage-specific settings
|
|
4447
|
+
* such as encryption, expiration, or other backend-specific configurations.
|
|
4448
|
+
*
|
|
4449
|
+
* @param value - The value to store (can be any type matching `Value`)
|
|
4450
|
+
* @param options - Optional storage operation configuration
|
|
4451
|
+
*
|
|
4452
|
+
* @example Basic storage
|
|
4453
|
+
* ```typescript
|
|
4454
|
+
* const storage = new KeyStorage('token', { storage: localStorage });
|
|
4455
|
+
* storage.set('abc123token');
|
|
4456
|
+
* ```
|
|
4457
|
+
*
|
|
4458
|
+
* @example Storing complex objects
|
|
4459
|
+
* ```typescript
|
|
4460
|
+
* interface User {
|
|
4461
|
+
* id: string;
|
|
4462
|
+
* name: string;
|
|
4463
|
+
* }
|
|
4464
|
+
*
|
|
4465
|
+
* const storage = new KeyStorage<string, User>('user', {
|
|
4466
|
+
* storage: localStorage
|
|
4467
|
+
* });
|
|
4468
|
+
*
|
|
4469
|
+
* storage.set({
|
|
4470
|
+
* id: '123',
|
|
4471
|
+
* name: 'John Doe'
|
|
4472
|
+
* });
|
|
4473
|
+
* ```
|
|
4474
|
+
*
|
|
4475
|
+
* @example With encryption options
|
|
4476
|
+
* ```typescript
|
|
4477
|
+
* interface Options {
|
|
4478
|
+
* encrypt?: boolean;
|
|
4479
|
+
* expires?: number;
|
|
4480
|
+
* }
|
|
4481
|
+
*
|
|
4482
|
+
* const storage = new KeyStorage<string, string, Options>('secret', {
|
|
4483
|
+
* storage: localStorage
|
|
4484
|
+
* });
|
|
4485
|
+
*
|
|
4486
|
+
* storage.set('sensitive-data', {
|
|
4487
|
+
* encrypt: true,
|
|
4488
|
+
* expires: Date.now() + 3600000 // 1 hour
|
|
4489
|
+
* });
|
|
4490
|
+
* ```
|
|
4491
|
+
*/
|
|
4492
|
+
set(value: Value, options?: Opt): void;
|
|
4493
|
+
/**
|
|
4494
|
+
* Remove the stored value from both memory and persistent storage
|
|
4495
|
+
*
|
|
4496
|
+
* Removal behavior:
|
|
4497
|
+
* - Clears in-memory value (sets to `null`)
|
|
4498
|
+
* - Removes value from persistent storage backend if available
|
|
4499
|
+
* - Applies any options-specific removal behavior
|
|
4500
|
+
*
|
|
4501
|
+
* After calling `remove()`, subsequent calls to `get()` will return `null`
|
|
4502
|
+
* until a new value is set via `set()`.
|
|
4503
|
+
*
|
|
4504
|
+
* @param options - Optional storage operation configuration
|
|
4505
|
+
*
|
|
4506
|
+
* @example Basic removal
|
|
4507
|
+
* ```typescript
|
|
4508
|
+
* const storage = new KeyStorage('token', { storage: localStorage });
|
|
4509
|
+
* storage.set('abc123');
|
|
4510
|
+
* storage.remove(); // Removes from both memory and localStorage
|
|
4511
|
+
* const token = storage.get(); // Returns null
|
|
4512
|
+
* ```
|
|
4513
|
+
*
|
|
4514
|
+
* @example With options
|
|
4515
|
+
* ```typescript
|
|
4516
|
+
* interface Options {
|
|
4517
|
+
* softDelete?: boolean;
|
|
4518
|
+
* }
|
|
4519
|
+
*
|
|
4520
|
+
* const storage = new KeyStorage<string, string, Options>('data', {
|
|
4521
|
+
* storage: localStorage
|
|
4522
|
+
* });
|
|
4523
|
+
*
|
|
4524
|
+
* // Remove with soft delete option
|
|
4525
|
+
* storage.remove({ softDelete: true });
|
|
4526
|
+
* ```
|
|
4527
|
+
*
|
|
4528
|
+
* @example Clearing user session
|
|
4529
|
+
* ```typescript
|
|
4530
|
+
* const userStorage = new KeyStorage('user', { storage: localStorage });
|
|
4531
|
+
*
|
|
4532
|
+
* // User logs out
|
|
4533
|
+
* userStorage.remove();
|
|
4534
|
+
* ```
|
|
4535
|
+
*/
|
|
4536
|
+
remove(options?: Opt): void;
|
|
4537
|
+
}
|
|
4538
|
+
|
|
4249
4539
|
/**
|
|
4250
4540
|
* Interface representing a synchronous storage mechanism.
|
|
4251
4541
|
*
|
|
@@ -4309,18 +4599,6 @@ interface KeyStorageOptions<Key, Sopt = unknown> extends ExpireOptions {
|
|
|
4309
4599
|
*/
|
|
4310
4600
|
storage?: SyncStorageInterface<Key, Sopt>;
|
|
4311
4601
|
}
|
|
4312
|
-
declare abstract class KeyStorageInterface<Key, Value, Opt extends KeyStorageOptions<Key> = KeyStorageOptions<Key>> {
|
|
4313
|
-
readonly key: Key;
|
|
4314
|
-
protected options: Opt;
|
|
4315
|
-
protected value: Value | null;
|
|
4316
|
-
constructor(key: Key, options?: Opt);
|
|
4317
|
-
getKey(): Key;
|
|
4318
|
-
getValue(): Value | null;
|
|
4319
|
-
abstract get(options?: Opt): Value | null;
|
|
4320
|
-
abstract set(value: Value, options?: Opt): void;
|
|
4321
|
-
abstract remove(options?: Opt): void;
|
|
4322
|
-
}
|
|
4323
|
-
|
|
4324
4602
|
/**
|
|
4325
4603
|
* KeyStorage is a storage that can be used to store a single value.
|
|
4326
4604
|
*
|
|
@@ -4358,9 +4636,14 @@ declare abstract class KeyStorageInterface<Key, Value, Opt extends KeyStorageOpt
|
|
|
4358
4636
|
* tokenStorage.remove(); // remove from localStorage
|
|
4359
4637
|
* ```
|
|
4360
4638
|
*/
|
|
4361
|
-
declare class KeyStorage<Key, Value, Opt extends KeyStorageOptions<Key> = KeyStorageOptions<Key>>
|
|
4639
|
+
declare class KeyStorage<Key, Value, Opt extends KeyStorageOptions<Key> = KeyStorageOptions<Key>> implements KeyStorageInterface<Key, Value, Opt> {
|
|
4640
|
+
readonly key: Key;
|
|
4641
|
+
protected options: Opt;
|
|
4362
4642
|
protected value: Value | null;
|
|
4643
|
+
constructor(key: Key, options?: Opt);
|
|
4363
4644
|
protected mergeOptions(options?: Opt): Opt;
|
|
4645
|
+
getKey(): Key;
|
|
4646
|
+
getValue(): Value | null;
|
|
4364
4647
|
get(options?: Opt): Value | null;
|
|
4365
4648
|
set(token: Value, options?: Opt): void;
|
|
4366
4649
|
remove(options?: Opt): void;
|
|
@@ -4723,4 +5006,4 @@ type Intersection<T1, T2> = {
|
|
|
4723
5006
|
[P in keyof T1 & keyof T2]: T1[P] | T2[P];
|
|
4724
5007
|
};
|
|
4725
5008
|
|
|
4726
|
-
export { ABORT_ERROR_ID, type AbortConfigExtractor, AbortError, AbortPlugin, type AbortPluginConfig, type AbortPluginOptions, AsyncExecutor, type AsyncStorageInterface, Base64Serializer, type Encryptor, Executor, type ExecutorConfigInterface, type ExecutorContext, ExecutorError, type ExecutorPlugin, type ExpireOptions, FetchAbortPlugin, FetchURLPlugin, type HookRuntimes, type HookType, type Intersection, JSONSerializer, type JSONSerializerOptions, KeyStorage, KeyStorageInterface, type KeyStorageOptions, ObjectStorage, type ObjectStorageOptions, type PipeArg, type PromiseTask, RequestAdapterAxios, type RequestAdapterConfig, RequestAdapterFetch, type RequestAdapterFetchConfig, type RequestAdapterInterface, type RequestAdapterResponse, RequestError, RequestErrorID, RequestManager, RequestScheduler, RequestTransaction, type RequestTransactionInterface, type RetryOptions, RetryPlugin, type SerializerIneterface, type StorageValue, SyncExecutor, SyncStorage, type SyncStorageInterface, type SyncTask, type Task, type ValueOf };
|
|
5009
|
+
export { ABORT_ERROR_ID, type AbortConfigExtractor, AbortError, AbortPlugin, type AbortPluginConfig, type AbortPluginOptions, AsyncExecutor, type AsyncStorageInterface, Base64Serializer, type Encryptor, Executor, type ExecutorConfigInterface, type ExecutorContext, ExecutorError, type ExecutorPlugin, type ExpireOptions, FetchAbortPlugin, FetchURLPlugin, type HookRuntimes, type HookType, type Intersection, JSONSerializer, type JSONSerializerOptions, KeyStorage, type KeyStorageInterface, type KeyStorageOptions, ObjectStorage, type ObjectStorageOptions, type PipeArg, type PromiseTask, RequestAdapterAxios, type RequestAdapterConfig, RequestAdapterFetch, type RequestAdapterFetchConfig, type RequestAdapterInterface, type RequestAdapterResponse, RequestError, RequestErrorID, RequestManager, RequestScheduler, RequestTransaction, type RequestTransactionInterface, type RetryOptions, RetryPlugin, type SerializerIneterface, type StorageValue, SyncExecutor, SyncStorage, type SyncStorageInterface, type SyncTask, type Task, type ValueOf };
|
package/dist/index.iife.js
CHANGED
|
@@ -2554,9 +2554,6 @@ var qloverFeCorekit = function() {
|
|
|
2554
2554
|
KeyStorage: function() {
|
|
2555
2555
|
return KeyStorage;
|
|
2556
2556
|
},
|
|
2557
|
-
KeyStorageInterface: function() {
|
|
2558
|
-
return KeyStorageInterface;
|
|
2559
|
-
},
|
|
2560
2557
|
ObjectStorage: function() {
|
|
2561
2558
|
return ObjectStorage;
|
|
2562
2559
|
},
|
|
@@ -6007,19 +6004,28 @@ var qloverFeCorekit = function() {
|
|
|
6007
6004
|
]);
|
|
6008
6005
|
return Base64Serializer;
|
|
6009
6006
|
}();
|
|
6010
|
-
// src/storage/
|
|
6011
|
-
var
|
|
6012
|
-
function
|
|
6007
|
+
// src/storage/impl/KeyStorage.ts
|
|
6008
|
+
var KeyStorage = /*#__PURE__*/ function() {
|
|
6009
|
+
function KeyStorage(key) {
|
|
6013
6010
|
var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
6014
|
-
_class_call_check(this,
|
|
6015
|
-
var _options_storage;
|
|
6011
|
+
_class_call_check(this, KeyStorage);
|
|
6016
6012
|
this.key = key;
|
|
6017
6013
|
this.options = options;
|
|
6018
|
-
|
|
6019
|
-
|
|
6020
|
-
|
|
6014
|
+
try {
|
|
6015
|
+
var _options_storage;
|
|
6016
|
+
var localValue = (_options_storage = options.storage) === null || _options_storage === void 0 ? void 0 : _options_storage.getItem(key);
|
|
6017
|
+
this.value = localValue !== null && localValue !== void 0 ? localValue : null;
|
|
6018
|
+
} catch (e) {
|
|
6019
|
+
this.value = null;
|
|
6020
|
+
}
|
|
6021
6021
|
}
|
|
6022
|
-
_create_class(
|
|
6022
|
+
_create_class(KeyStorage, [
|
|
6023
|
+
{
|
|
6024
|
+
key: "mergeOptions",
|
|
6025
|
+
value: function mergeOptions(options) {
|
|
6026
|
+
return _object_spread({}, this.options, options);
|
|
6027
|
+
}
|
|
6028
|
+
},
|
|
6023
6029
|
{
|
|
6024
6030
|
key: "getKey",
|
|
6025
6031
|
value: function getKey() {
|
|
@@ -6029,30 +6035,7 @@ var qloverFeCorekit = function() {
|
|
|
6029
6035
|
{
|
|
6030
6036
|
key: "getValue",
|
|
6031
6037
|
value: function getValue() {
|
|
6032
|
-
return this.
|
|
6033
|
-
}
|
|
6034
|
-
}
|
|
6035
|
-
]);
|
|
6036
|
-
return KeyStorageInterface;
|
|
6037
|
-
}();
|
|
6038
|
-
// src/storage/impl/KeyStorage.ts
|
|
6039
|
-
var KeyStorage = /*#__PURE__*/ function(KeyStorageInterface) {
|
|
6040
|
-
_inherits(KeyStorage, KeyStorageInterface);
|
|
6041
|
-
var _super = _create_super(KeyStorage);
|
|
6042
|
-
function KeyStorage() {
|
|
6043
|
-
_class_call_check(this, KeyStorage);
|
|
6044
|
-
var _this;
|
|
6045
|
-
_this = _super.call.apply(_super, [
|
|
6046
|
-
this
|
|
6047
|
-
].concat(Array.prototype.slice.call(arguments)));
|
|
6048
|
-
_this.value = null;
|
|
6049
|
-
return _this;
|
|
6050
|
-
}
|
|
6051
|
-
_create_class(KeyStorage, [
|
|
6052
|
-
{
|
|
6053
|
-
key: "mergeOptions",
|
|
6054
|
-
value: function mergeOptions(options) {
|
|
6055
|
-
return _object_spread({}, this.options, options);
|
|
6038
|
+
return this.value;
|
|
6056
6039
|
}
|
|
6057
6040
|
},
|
|
6058
6041
|
{
|
|
@@ -6100,7 +6083,7 @@ var qloverFeCorekit = function() {
|
|
|
6100
6083
|
}
|
|
6101
6084
|
]);
|
|
6102
6085
|
return KeyStorage;
|
|
6103
|
-
}(
|
|
6086
|
+
}();
|
|
6104
6087
|
// src/storage/impl/ObjectStorage.ts
|
|
6105
6088
|
var ObjectStorage = /*#__PURE__*/ function() {
|
|
6106
6089
|
function ObjectStorage(serializer) {
|
package/dist/index.iife.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";function t(t,e){if(e==null||e>t.length)e=t.length;for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function e(t){if(Array.isArray(t))return t}function r(e){if(Array.isArray(e))return t(e)}function n(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function o(t,e,r,n,o,i,u){try{var a=t[i](u);var s=a.value}catch(t){r(t);return}if(a.done){e(s)}else{Promise.resolve(s).then(n,o)}}function i(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var u=t.apply(e,r);function a(t){o(u,n,i,a,s,"next",t)}function s(t){o(u,n,i,a,s,"throw",t)}a(undefined)})}}function u(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function a(t,e,r){if(H()){a=Reflect.construct}else{a=function t(t,e,r){var n=[null];n.push.apply(n,e);var o=Function.bind.apply(t,n);var i=new o;if(r)E(i,r.prototype);return i}}return a.apply(null,arguments)}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(t,n.key,n)}}function c(t,e,r){if(e)s(t.prototype,e);if(r)s(t,r);return t}function l(t,e,r){if(e in t){Object.defineProperty(t,e,{value:r,enumerable:true,configurable:true,writable:true})}else{t[e]=r}return t}function f(t,e,r){if(typeof Reflect!=="undefined"&&Reflect.get){f=Reflect.get}else{f=function t(t,e,r){var n=S(t,e);if(!n)return;var o=Object.getOwnPropertyDescriptor(n,e);if(o.get){return o.get.call(r||t)}return o.value}}return f(t,e,r||t)}function v(t){v=Object.setPrototypeOf?Object.getPrototypeOf:function t(t){return t.__proto__||Object.getPrototypeOf(t)};return v(t)}function p(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});if(e)E(t,e)}function h(t,e){if(e!=null&&typeof Symbol!=="undefined"&&e[Symbol.hasInstance]){return!!e[Symbol.hasInstance](t)}else{return t instanceof e}}function y(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function d(t){if(typeof Symbol!=="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function g(t,e){var r=t==null?null:typeof Symbol!=="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(r==null)return;var n=[];var o=true;var i=false;var u,a;try{for(r=r.call(t);!(o=(u=r.next()).done);o=true){n.push(u.value);if(e&&n.length===e)break}}catch(t){i=true;a=t}finally{try{if(!o&&r["return"]!=null)r["return"]()}finally{if(i)throw a}}return n}function b(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function m(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function x(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};var n=Object.keys(r);if(typeof Object.getOwnPropertySymbols==="function"){n=n.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))}n.forEach(function(e){l(t,e,r[e])})}return t}function k(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);if(e){n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})}r.push.apply(r,n)}return r}function O(t,e){e=e!=null?e:{};if(Object.getOwnPropertyDescriptors){Object.defineProperties(t,Object.getOwnPropertyDescriptors(e))}else{k(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))})}return t}function _(t,e){if(t==null)return{};var r=w(t,e);var n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o<i.length;o++){n=i[o];if(e.indexOf(n)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(t,n))continue;r[n]=t[n]}}return r}function w(t,e){if(t==null)return{};var r={};var n=Object.keys(t);var o,i;for(i=0;i<n.length;i++){o=n[i];if(e.indexOf(o)>=0)continue;r[o]=t[o]}return r}function R(t,e){if(e&&(T(e)==="object"||typeof e==="function")){return e}return n(t)}function E(t,e){E=Object.setPrototypeOf||function t(t,e){t.__proto__=e;return t};return E(t,e)}function j(t,r){return e(t)||g(t,r)||P(t,r)||b()}function S(t,e){while(!Object.prototype.hasOwnProperty.call(t,e)){t=v(t);if(t===null)break}return t}function A(t){return r(t)||d(t)||P(t)||m()}function T(t){"@swc/helpers - typeof";return t&&typeof Symbol!=="undefined"&&t.constructor===Symbol?"symbol":typeof t}function P(e,r){if(!e)return;if(typeof e==="string")return t(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor)n=e.constructor.name;if(n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return t(e,r)}function N(t){var e=typeof Map==="function"?new Map:undefined;N=function t(t){if(t===null||!y(t))return t;if(typeof t!=="function"){throw new TypeError("Super expression must either be null or a function")}if(typeof e!=="undefined"){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return a(t,arguments,v(this).constructor)}r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:false,writable:true,configurable:true}});return E(r,t)};return N(t)}function H(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true}catch(t){return false}}function C(t){var e=H();return function r(){var r=v(t),n;if(e){var o=v(this).constructor;n=Reflect.construct(r,arguments,o)}else{n=r.apply(this,arguments)}return R(this,n)}}function q(t,e){var r,n,o,i,u={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),"throw":a(1),"return":a(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function a(t){return function(e){return s([t,e])}}function s(i){if(r)throw new TypeError("Generator is already executing.");while(u)try{if(r=1,n&&(o=i[0]&2?n["return"]:i[0]?n["throw"]||((o=n["return"])&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;if(n=0,o)i=[i[0]&2,o.value];switch(i[0]){case 0:case 1:o=i;break;case 4:u.label++;return{value:i[1],done:false};case 5:u.label++;n=i[1];i=[0];continue;case 7:i=u.ops.pop();u.trys.pop();continue;default:if(!(o=u.trys,o=o.length>0&&o[o.length-1])&&(i[0]===6||i[0]===2)){u=0;continue}if(i[0]===3&&(!o||i[1]>o[0]&&i[1]<o[3])){u.label=i[1];break}if(i[0]===6&&u.label<o[1]){u.label=o[1];o=i;break}if(o&&u.label<o[2]){u.label=o[2];u.ops.push(i);break}if(o[2])u.ops.pop();u.trys.pop();continue}i=e.call(t,u)}catch(t){i=[6,t];n=0}finally{r=o=0}if(i[0]&5)throw i[1];return{value:i[0]?i[1]:void 0,done:true}}}var qloverFeCorekit=function(){var t,e,r,o,a,s;var l=function t(t){return{parameters:t,returnValue:void 0,error:void 0,hooksRuntimes:{pluginName:"",hookName:"",returnValue:void 0,returnBreakChain:!1,times:0,breakChain:!1,index:void 0}}};var y=function t(t){return"type"in t&&"pipe"in t?t:"serialize"in t&&"deserialize"in t?{pipe:t,type:"serialize"}:"encrypt"in t&&"decrypt"in t?{pipe:t,type:"encrypt"}:"setItem"in t&&"getItem"in t&&"removeItem"in t&&"clear"in t?{pipe:t,type:"storage"}:null};var d=Object.create;var g=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var m=Object.getOwnPropertyNames;var k=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty;var E=function(t,e){return function(){return e||t((e={exports:{}}).exports,e),e.exports}},S=function(t,e){for(var r in e)g(t,r,{get:e[r],enumerable:!0})},P=function(t,e,r,n){var o=true,i=false,u=undefined;if(e&&(typeof e==="undefined"?"undefined":T(e))=="object"||typeof e=="function")try{var a=function(){var o=c.value;!w.call(t,o)&&o!==r&&g(t,o,{get:function(){return e[o]},enumerable:!(n=b(e,o))||n.enumerable})};for(var s=m(e)[Symbol.iterator](),c;!(o=(c=s.next()).done);o=true)a()}catch(t){i=true;u=t}finally{try{if(!o&&s.return!=null){s.return()}}finally{if(i){throw u}}}return t};var H=function(t,e,r){return r=t!=null?d(k(t)):{},P(e||!t||!t.__esModule?g(r,"default",{value:t,enumerable:!0}):r,t)},I=function(t){return P(g({},"__esModule",{value:!0}),t)};var z=E(function(t,e){"use strict";var r=function t(){this.__data__=[],this.size=0};e.exports=r});var U=E(function(t,e){"use strict";var r=function t(t,e){return t===e||t!==t&&e!==e};e.exports=r});var B=E(function(t,e){"use strict";var r=function t(t,e){for(var r=t.length;r--;)if(n(t[r][0],e))return r;return-1};var n=U();e.exports=r});var V=E(function(t,e){"use strict";var r=function t(t){var e=this.__data__,r=n(e,t);if(r<0)return!1;var o=e.length-1;return r==o?e.pop():i.call(e,r,1),--this.size,!0};var n=B(),o=Array.prototype,i=o.splice;e.exports=r});var F=E(function(t,e){"use strict";var r=function t(t){var e=this.__data__,r=n(e,t);return r<0?void 0:e[r][1]};var n=B();e.exports=r});var D=E(function(t,e){"use strict";var r=function t(t){return n(this.__data__,t)>-1};var n=B();e.exports=r});var K=E(function(t,e){"use strict";var r=function t(t,e){var r=this.__data__,o=n(r,t);return o<0?(++this.size,r.push([t,e])):r[o][1]=e,this};var n=B();e.exports=r});var M=E(function(t,e){"use strict";var r=function t(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}};var n=z(),o=V(),i=F(),u=D(),a=K();r.prototype.clear=n;r.prototype.delete=o;r.prototype.get=i;r.prototype.has=u;r.prototype.set=a;e.exports=r});var L=E(function(t,e){"use strict";var r=function t(){this.__data__=new n,this.size=0};var n=M();e.exports=r});var $=E(function(t,e){"use strict";var r=function t(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r};e.exports=r});var W=E(function(t,e){"use strict";var r=function t(t){return this.__data__.get(t)};e.exports=r});var J=E(function(t,e){"use strict";var r=function t(t){return this.__data__.has(t)};e.exports=r});var G=E(function(t,e){"use strict";var r=(typeof global==="undefined"?"undefined":T(global))=="object"&&global&&global.Object===Object&&global;e.exports=r});var Q=E(function(t,e){"use strict";var r=G(),n=(typeof self==="undefined"?"undefined":T(self))=="object"&&self&&self.Object===Object&&self,o=r||n||Function("return this")();e.exports=o});var Y=E(function(t,e){"use strict";var r=Q(),n=r.Symbol;e.exports=n});var Z=E(function(t,e){"use strict";var r=function t(t){var e=i.call(t,a),r=t[a];try{t[a]=void 0;var n=!0}catch(t){}var o=u.call(t);return n&&(e?t[a]=r:delete t[a]),o};var n=Y(),o=Object.prototype,i=o.hasOwnProperty,u=o.toString,a=n?n.toStringTag:void 0;e.exports=r});var X=E(function(t,e){"use strict";var r=function t(t){return o.call(t)};var n=Object.prototype,o=n.toString;e.exports=r});var tt=E(function(t,e){"use strict";var r=function t(t){return t==null?t===void 0?a:u:s&&s in Object(t)?o(t):i(t)};var n=Y(),o=Z(),i=X(),u="[object Null]",a="[object Undefined]",s=n?n.toStringTag:void 0;e.exports=r});var te=E(function(t,e){"use strict";var r=function t(t){var e=typeof t==="undefined"?"undefined":T(t);return t!=null&&(e=="object"||e=="function")};e.exports=r});var tr=E(function(t,e){"use strict";var r=function t(t){if(!o(t))return!1;var e=n(t);return e==u||e==a||e==i||e==s};var n=tt(),o=te(),i="[object AsyncFunction]",u="[object Function]",a="[object GeneratorFunction]",s="[object Proxy]";e.exports=r});var tn=E(function(t,e){"use strict";var r=Q(),n=r["__core-js_shared__"];e.exports=n});var to=E(function(t,e){"use strict";var r=function t(t){return!!o&&o in t};var n=tn(),o=function(){var t=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();e.exports=r});var ti=E(function(t,e){"use strict";var r=function t(t){if(t!=null){try{return o.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var n=Function.prototype,o=n.toString;e.exports=r});var tu=E(function(t,e){"use strict";var r=function t(t){if(!i(t)||o(t))return!1;var e=n(t)?p:s;return e.test(u(t))};var n=tr(),o=to(),i=te(),u=ti(),a=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,f=c.toString,v=l.hasOwnProperty,p=RegExp("^"+f.call(v).replace(a,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=r});var ta=E(function(t,e){"use strict";var r=function t(t,e){return t===null||t===void 0?void 0:t[e]};e.exports=r});var ts=E(function(t,e){"use strict";var r=function t(t,e){var r=o(t,e);return n(r)?r:void 0};var n=tu(),o=ta();e.exports=r});var tc=E(function(t,e){"use strict";var r=ts(),n=Q(),o=r(n,"Map");e.exports=o});var tl=E(function(t,e){"use strict";var r=ts(),n=r(Object,"create");e.exports=n});var tf=E(function(t,e){"use strict";var r=function t(){this.__data__=n?n(null):{},this.size=0};var n=tl();e.exports=r});var tv=E(function(t,e){"use strict";var r=function t(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};e.exports=r});var tp=E(function(t,e){"use strict";var r=function t(t){var e=this.__data__;if(n){var r=e[t];return r===o?void 0:r}return u.call(e,t)?e[t]:void 0};var n=tl(),o="__lodash_hash_undefined__",i=Object.prototype,u=i.hasOwnProperty;e.exports=r});var th=E(function(t,e){"use strict";var r=function t(t){var e=this.__data__;return n?e[t]!==void 0:i.call(e,t)};var n=tl(),o=Object.prototype,i=o.hasOwnProperty;e.exports=r});var ty=E(function(t,e){"use strict";var r=function t(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=n&&e===void 0?o:e,this};var n=tl(),o="__lodash_hash_undefined__";e.exports=r});var td=E(function(t,e){"use strict";var r=function t(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}};var n=tf(),o=tv(),i=tp(),u=th(),a=ty();r.prototype.clear=n;r.prototype.delete=o;r.prototype.get=i;r.prototype.has=u;r.prototype.set=a;e.exports=r});var tg=E(function(t,e){"use strict";var r=function t(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}};var n=td(),o=M(),i=tc();e.exports=r});var tb=E(function(t,e){"use strict";var r=function t(t){var e=typeof t==="undefined"?"undefined":T(t);return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null};e.exports=r});var tm=E(function(t,e){"use strict";var r=function t(t,e){var r=t.__data__;return n(e)?r[typeof e=="string"?"string":"hash"]:r.map};var n=tb();e.exports=r});var tx=E(function(t,e){"use strict";var r=function t(t){var e=n(this,t).delete(t);return this.size-=e?1:0,e};var n=tm();e.exports=r});var tk=E(function(t,e){"use strict";var r=function t(t){return n(this,t).get(t)};var n=tm();e.exports=r});var tO=E(function(t,e){"use strict";var r=function t(t){return n(this,t).has(t)};var n=tm();e.exports=r});var t_=E(function(t,e){"use strict";var r=function t(t,e){var r=n(this,t),o=r.size;return r.set(t,e),this.size+=r.size==o?0:1,this};var n=tm();e.exports=r});var tw=E(function(t,e){"use strict";var r=function t(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}};var n=tg(),o=tx(),i=tk(),u=tO(),a=t_();r.prototype.clear=n;r.prototype.delete=o;r.prototype.get=i;r.prototype.has=u;r.prototype.set=a;e.exports=r});var tR=E(function(t,e){"use strict";var r=function t(t,e){var r=this.__data__;if(h(r,n)){var a=r.__data__;if(!o||a.length<u-1)return a.push([t,e]),this.size=++r.size,this;r=this.__data__=new i(a)}return r.set(t,e),this.size=r.size,this};var n=M(),o=tc(),i=tw(),u=200;e.exports=r});var tE=E(function(t,e){"use strict";var r=function t(t){var e=this.__data__=new n(t);this.size=e.size};var n=M(),o=L(),i=$(),u=W(),a=J(),s=tR();r.prototype.clear=o;r.prototype.delete=i;r.prototype.get=u;r.prototype.has=a;r.prototype.set=s;e.exports=r});var tj=E(function(t,e){"use strict";var r=ts(),n=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();e.exports=n});var tS=E(function(t,e){"use strict";var r=function t(t,e,r){e=="__proto__"&&n?n(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r};var n=tj();e.exports=r});var tA=E(function(t,e){"use strict";var r=function t(t,e,r){(r!==void 0&&!o(t[e],r)||r===void 0&&!(e in t))&&n(t,e,r)};var n=tS(),o=U();e.exports=r});var tT=E(function(t,e){"use strict";var r=function t(t){return function(e,r,n){for(var o=-1,i=Object(e),u=n(e),a=u.length;a--;){var s=u[t?a:++o];if(r(i[s],s,i)===!1)break}return e}};e.exports=r});var tP=E(function(t,e){"use strict";var r=tT(),n=r();e.exports=n});var tN=E(function(t,e){"use strict";var r=function t(t,e){if(e)return t.slice();var r=t.length,n=s?s(r):new t.constructor(r);return t.copy(n),n};var n=Q(),o=(typeof t==="undefined"?"undefined":T(t))=="object"&&t&&!t.nodeType&&t,i=o&&(typeof e==="undefined"?"undefined":T(e))=="object"&&e&&!e.nodeType&&e,u=i&&i.exports===o,a=u?n.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=r});var tH=E(function(t,e){"use strict";var r=Q(),n=r.Uint8Array;e.exports=n});var tC=E(function(t,e){"use strict";var r=function t(t){var e=new t.constructor(t.byteLength);return new n(e).set(new n(t)),e};var n=tH();e.exports=r});var tq=E(function(t,e){"use strict";var r=function t(t,e){var r=e?n(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)};var n=tC();e.exports=r});var tI=E(function(t,e){"use strict";var r=function t(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e};e.exports=r});var tz=E(function(t,e){"use strict";var r=te(),n=Object.create,o=function(){function t(){}return function(e){if(!r(e))return{};if(n)return n(e);t.prototype=e;var o=new t;return t.prototype=void 0,o}}();e.exports=o});var tU=E(function(t,e){"use strict";var r=function t(t,e){return function(r){return t(e(r))}};e.exports=r});var tB=E(function(t,e){"use strict";var r=tU(),n=r(Object.getPrototypeOf,Object);e.exports=n});var tV=E(function(t,e){"use strict";var r=function t(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||n;return t===r};var n=Object.prototype;e.exports=r});var tF=E(function(t,e){"use strict";var r=function t(t){return typeof t.constructor=="function"&&!i(t)?n(o(t)):{}};var n=tz(),o=tB(),i=tV();e.exports=r});var tD=E(function(t,e){"use strict";var r=function t(t){return t!=null&&(typeof t==="undefined"?"undefined":T(t))=="object"};e.exports=r});var tK=E(function(t,e){"use strict";var r=function t(t){return o(t)&&n(t)==i};var n=tt(),o=tD(),i="[object Arguments]";e.exports=r});var tM=E(function(t,e){"use strict";var r=tK(),n=tD(),o=Object.prototype,i=o.hasOwnProperty,u=o.propertyIsEnumerable,a=r(function(){return arguments}())?r:function t(t){return n(t)&&i.call(t,"callee")&&!u.call(t,"callee")};e.exports=a});var tL=E(function(t,e){"use strict";var r=Array.isArray;e.exports=r});var t$=E(function(t,e){"use strict";var r=function t(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=n};var n=9007199254740991;e.exports=r});var tW=E(function(t,e){"use strict";var r=function t(t){return t!=null&&o(t.length)&&!n(t)};var n=tr(),o=t$();e.exports=r});var tJ=E(function(t,e){"use strict";var r=function t(t){return o(t)&&n(t)};var n=tW(),o=tD();e.exports=r});var tG=E(function(t,e){"use strict";var r=function t(){return!1};e.exports=r});var tQ=E(function(t,e){"use strict";var r=Q(),n=tG(),o=(typeof t==="undefined"?"undefined":T(t))=="object"&&t&&!t.nodeType&&t,i=o&&(typeof e==="undefined"?"undefined":T(e))=="object"&&e&&!e.nodeType&&e,u=i&&i.exports===o,a=u?r.Buffer:void 0,s=a?a.isBuffer:void 0,c=s||n;e.exports=c});var tY=E(function(t,e){"use strict";var r=function t(t){if(!i(t)||n(t)!=u)return!1;var e=o(t);if(e===null)return!0;var r=l.call(e,"constructor")&&e.constructor;return typeof r=="function"&&h(r,r)&&c.call(r)==f};var n=tt(),o=tB(),i=tD(),u="[object Object]",a=Function.prototype,s=Object.prototype,c=a.toString,l=s.hasOwnProperty,f=c.call(Object);e.exports=r});var tZ=E(function(t,e){"use strict";var r=function t(t){return i(t)&&o(t.length)&&!!T[n(t)]};var n=tt(),o=t$(),i=tD(),u="[object Arguments]",a="[object Array]",s="[object Boolean]",c="[object Date]",l="[object Error]",f="[object Function]",v="[object Map]",p="[object Number]",h="[object Object]",y="[object RegExp]",d="[object Set]",g="[object String]",b="[object WeakMap]",m="[object ArrayBuffer]",x="[object DataView]",k="[object Float32Array]",O="[object Float64Array]",_="[object Int8Array]",w="[object Int16Array]",R="[object Int32Array]",E="[object Uint8Array]",j="[object Uint8ClampedArray]",S="[object Uint16Array]",A="[object Uint32Array]",T={};T[k]=T[O]=T[_]=T[w]=T[R]=T[E]=T[j]=T[S]=T[A]=!0;T[u]=T[a]=T[m]=T[s]=T[x]=T[c]=T[l]=T[f]=T[v]=T[p]=T[h]=T[y]=T[d]=T[g]=T[b]=!1;e.exports=r});var tX=E(function(t,e){"use strict";var r=function t(t){return function(e){return t(e)}};e.exports=r});var t0=E(function(t,e){"use strict";var r=G(),n=(typeof t==="undefined"?"undefined":T(t))=="object"&&t&&!t.nodeType&&t,o=n&&(typeof e==="undefined"?"undefined":T(e))=="object"&&e&&!e.nodeType&&e,i=o&&o.exports===n,u=i&&r.process,a=function(){try{var t=o&&o.require&&o.require("util").types;return t||u&&u.binding&&u.binding("util")}catch(t){}}();e.exports=a});var t1=E(function(t,e){"use strict";var r=tZ(),n=tX(),o=t0(),i=o&&o.isTypedArray,u=i?n(i):r;e.exports=u});var t2=E(function(t,e){"use strict";var r=function t(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]};e.exports=r});var t3=E(function(t,e){"use strict";var r=function t(t,e,r){var i=t[e];(!(u.call(t,e)&&o(i,r))||r===void 0&&!(e in t))&&n(t,e,r)};var n=tS(),o=U(),i=Object.prototype,u=i.hasOwnProperty;e.exports=r});var t4=E(function(t,e){"use strict";var r=function t(t,e,r,i){var u=!r;r||(r={});for(var a=-1,s=e.length;++a<s;){var c=e[a],l=i?i(r[c],t[c],c,r,t):void 0;l===void 0&&(l=t[c]),u?o(r,c,l):n(r,c,l)}return r};var n=t3(),o=tS();e.exports=r});var t6=E(function(t,e){"use strict";var r=function t(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n};e.exports=r});var t8=E(function(t,e){"use strict";var r=function t(t,e){var r=typeof t==="undefined"?"undefined":T(t);return e=e!==null&&e!==void 0?e:n,!!e&&(r=="number"||r!="symbol"&&o.test(t))&&t>-1&&t%1==0&&t<e};var n=9007199254740991,o=/^(?:0|[1-9]\d*)$/;e.exports=r});var t7=E(function(t,e){"use strict";var r=function t(t,e){var r=i(t),c=!r&&o(t),f=!r&&!c&&u(t),v=!r&&!c&&!f&&s(t),p=r||c||f||v,h=p?n(t.length,String):[],y=h.length;for(var d in t)(e||l.call(t,d))&&!(p&&(d=="length"||f&&(d=="offset"||d=="parent")||v&&(d=="buffer"||d=="byteLength"||d=="byteOffset")||a(d,y)))&&h.push(d);return h};var n=t6(),o=tM(),i=tL(),u=tQ(),a=t8(),s=t1(),c=Object.prototype,l=c.hasOwnProperty;e.exports=r});var t5=E(function(t,e){"use strict";var r=function t(t){var e=[];if(t!=null)for(var r in Object(t))e.push(r);return e};e.exports=r});var t9=E(function(t,e){"use strict";var r=function t(t){if(!n(t))return i(t);var e=o(t),r=[];for(var u in t)u=="constructor"&&(e||!a.call(t,u))||r.push(u);return r};var n=te(),o=tV(),i=t5(),u=Object.prototype,a=u.hasOwnProperty;e.exports=r});var et=E(function(t,e){"use strict";var r=function t(t){return i(t)?n(t,!0):o(t)};var n=t7(),o=t9(),i=tW();e.exports=r});var ee=E(function(t,e){"use strict";var r=function t(t){return n(t,o(t))};var n=t4(),o=et();e.exports=r});var er=E(function(t,e){"use strict";var r=function t(t,e,r,b,m,x,k){var O=d(t,r),_=d(e,r),w=k.get(_);if(w){n(t,r,w);return}var R=x?x(O,_,r+"",t,e,k):void 0,E=R===void 0;if(E){var j=c(_),S=!j&&f(_),A=!j&&!S&&y(_);R=_,j||S||A?c(O)?R=O:l(O)?R=u(O):S?(E=!1,R=o(_,!0)):A?(E=!1,R=i(_,!0)):R=[]:h(_)||s(_)?(R=O,s(O)?R=g(O):(!p(O)||v(O))&&(R=a(_))):E=!1}E&&(k.set(_,R),m(R,_,b,x,k),k.delete(_)),n(t,r,R)};var n=tA(),o=tN(),i=tq(),u=tI(),a=tF(),s=tM(),c=tL(),l=tJ(),f=tQ(),v=tr(),p=te(),h=tY(),y=t1(),d=t2(),g=ee();e.exports=r});var en=E(function(t,e){"use strict";var r=tE(),n=tA(),o=tP(),i=er(),u=te(),a=et(),s=t2();function c(t,e,l,f,v){t!==e&&o(e,function(o,a){if(v||(v=new r),u(o))i(t,e,a,l,c,f,v);else{var p=f?f(s(t,a),o,a+"",t,e,v):void 0;p===void 0&&(p=o),n(t,a,p)}},a)}e.exports=c});var eo=E(function(t,e){"use strict";var r=function t(t){return t};e.exports=r});var ei=E(function(t,e){"use strict";var r=function t(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)};e.exports=r});var eu=E(function(t,e){"use strict";var r=function t(t,e,r){return e=o(e===void 0?t.length-1:e,0),function(){for(var i=arguments,u=-1,a=o(i.length-e,0),s=Array(a);++u<a;)s[u]=i[e+u];u=-1;for(var c=Array(e+1);++u<e;)c[u]=i[u];return c[e]=r(s),n(t,this,c)}};var n=ei(),o=Math.max;e.exports=r});var ea=E(function(t,e){"use strict";var r=function t(t){return function(){return t}};e.exports=r});var es=E(function(t,e){"use strict";var r=ea(),n=tj(),o=eo(),i=n?function t(t,e){return n(t,"toString",{configurable:!0,enumerable:!1,value:r(e),writable:!0})}:o;e.exports=i});var ec=E(function(t,e){"use strict";var r=function t(t){var e=0,r=0;return function(){var u=i(),a=o-(u-r);if(r=u,a>0){if(++e>=n)return arguments[0]}else e=0;return t.apply(void 0,arguments)}};var n=800,o=16,i=Date.now;e.exports=r});var el=E(function(t,e){"use strict";var r=es(),n=ec(),o=n(r);e.exports=o});var ef=E(function(t,e){"use strict";var r=function t(t,e){return i(o(t,e,n),t+"")};var n=eo(),o=eu(),i=el();e.exports=r});var ev=E(function(t,e){"use strict";var r=function t(t,e,r){if(!u(r))return!1;var a=typeof e==="undefined"?"undefined":T(e);return(a=="number"?o(r)&&i(e,r.length):a=="string"&&e in r)?n(r[e],t):!1};var n=U(),o=tW(),i=t8(),u=te();e.exports=r});var ep=E(function(t,e){"use strict";var r=function t(t){return n(function(e,r){var n=-1,i=r.length,u=i>1?r[i-1]:void 0,a=i>2?r[2]:void 0;for(u=t.length>3&&typeof u=="function"?(i--,u):void 0,a&&o(r[0],r[1],a)&&(u=i<3?void 0:u,i=1),e=Object(e);++n<i;){var s=r[n];s&&t(e,s,n,u)}return e})};var n=ef(),o=ev();e.exports=r});var eh=E(function(t,e){"use strict";var r=en(),n=ep(),o=n(function(t,e,n){r(t,e,n)});e.exports=o});var ey=E(function(t,e){"use strict";var r=function t(t){return(typeof t==="undefined"?"undefined":T(t))=="symbol"||o(t)&&n(t)==i};var n=tt(),o=tD(),i="[object Symbol]";e.exports=r});var ed=E(function(t,e){"use strict";var r=function t(t,e){if(n(t))return!1;var r=typeof t==="undefined"?"undefined":T(t);return r=="number"||r=="symbol"||r=="boolean"||t==null||o(t)?!0:u.test(t)||!i.test(t)||e!=null&&t in Object(e)};var n=tL(),o=ey(),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,u=/^\w*$/;e.exports=r});var eg=E(function(t,e){"use strict";var r=tw(),n="Expected a function";function o(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(n);var i=function r(){var r=arguments,n=e?e.apply(this,r):r[0],o=i.cache;if(o.has(n))return o.get(n);var u=t.apply(this,r);return i.cache=o.set(n,u)||o,u};return i.cache=new(o.Cache||r),i}o.Cache=r;e.exports=o});var eb=E(function(t,e){"use strict";var r=function t(t){var e=n(t,function(t){return r.size===o&&r.clear(),t}),r=e.cache;return e};var n=eg(),o=500;e.exports=r});var em=E(function(t,e){"use strict";var r=eb(),n=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,i=r(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(n,function(t,r,n,i){e.push(n?i.replace(o,"$1"):r||t)}),e});e.exports=i});var ex=E(function(t,e){"use strict";var r=function t(t,e){for(var r=-1,n=t==null?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o};e.exports=r});var ek=E(function(t,e){"use strict";var r=Y(),n=ex(),o=tL(),i=ey(),u=1/0,a=r?r.prototype:void 0,s=a?a.toString:void 0;function c(t){if(typeof t=="string")return t;if(o(t))return n(t,c)+"";if(i(t))return s?s.call(t):"";var e=t+"";return e=="0"&&1/t==-u?"-0":e}e.exports=c});var eO=E(function(t,e){"use strict";var r=function t(t){return t==null?"":n(t)};var n=ek();e.exports=r});var e_=E(function(t,e){"use strict";var r=function t(t,e){return n(t)?t:o(t,e)?[t]:i(u(t))};var n=tL(),o=ed(),i=em(),u=eO();e.exports=r});var ew=E(function(t,e){"use strict";var r=function t(t){if(typeof t=="string"||n(t))return t;var e=t+"";return e=="0"&&1/t==-o?"-0":e};var n=ey(),o=1/0;e.exports=r});var eR=E(function(t,e){"use strict";var r=function t(t,e){e=n(e,t);for(var r=0,i=e.length;t!=null&&r<i;)t=t[o(e[r++])];return r&&r==i?t:void 0};var n=e_(),o=ew();e.exports=r});var eE=E(function(t,e){"use strict";var r=function t(t,e,r,s){if(!u(t))return t;e=o(e,t);for(var c=-1,l=e.length,f=l-1,v=t;v!=null&&++c<l;){var p=a(e[c]),h=r;if(p==="__proto__"||p==="constructor"||p==="prototype")return t;if(c!=f){var y=v[p];h=s?s(y,p,v):void 0,h===void 0&&(h=u(y)?y:i(e[c+1])?[]:{})}n(v,p,h),v=v[p]}return t};var n=t3(),o=e_(),i=t8(),u=te(),a=ew();e.exports=r});var ej=E(function(t,e){"use strict";var r=function t(t,e,r){for(var u=-1,a=e.length,s={};++u<a;){var c=e[u],l=n(t,c);r(l,c)&&o(s,i(c,t),l)}return s};var n=eR(),o=eE(),i=e_();e.exports=r});var eS=E(function(t,e){"use strict";var r=function t(t,e){return t!=null&&e in Object(t)};e.exports=r});var eA=E(function(t,e){"use strict";var r=function t(t,e,r){e=n(e,t);for(var c=-1,l=e.length,f=!1;++c<l;){var v=s(e[c]);if(!(f=t!=null&&r(t,v)))break;t=t[v]}return f||++c!=l?f:(l=t==null?0:t.length,!!l&&a(l)&&u(v,l)&&(i(t)||o(t)))};var n=e_(),o=tM(),i=tL(),u=t8(),a=t$(),s=ew();e.exports=r});var eT=E(function(t,e){"use strict";var r=function t(t,e){return t!=null&&o(t,e,n)};var n=eS(),o=eA();e.exports=r});var eP=E(function(t,e){"use strict";var r=function t(t,e){return n(t,e,function(e,r){return o(t,r)})};var n=ej(),o=eT();e.exports=r});var eN=E(function(t,e){"use strict";var r=function t(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t};e.exports=r});var eH=E(function(t,e){"use strict";var r=function t(t){return i(t)||o(t)||!!(u&&t&&t[u])};var n=Y(),o=tM(),i=tL(),u=n?n.isConcatSpreadable:void 0;e.exports=r});var eC=E(function(t,e){"use strict";var r=eN(),n=eH();function o(t,e,i,u,a){var s=-1,c=t.length;for(i||(i=n),a||(a=[]);++s<c;){var l=t[s];e>0&&i(l)?e>1?o(l,e-1,i,u,a):r(a,l):u||(a[a.length]=l)}return a}e.exports=o});var eq=E(function(t,e){"use strict";var r=function t(t){var e=t==null?0:t.length;return e?n(t,1):[]};var n=eC();e.exports=r});var eI=E(function(t,e){"use strict";var r=function t(t){return i(o(t,void 0,n),t+"")};var n=eq(),o=eu(),i=el();e.exports=r});var ez=E(function(t,e){"use strict";var r=eP(),n=eI(),o=n(function(t,e){return t==null?{}:r(t,e)});e.exports=o});var eU={};S(eU,{ABORT_ERROR_ID:function(){return eM},AbortError:function(){return eL},AbortPlugin:function(){return e$},AsyncExecutor:function(){return eD},Base64Serializer:function(){return rr},Executor:function(){return eB},ExecutorError:function(){return eV},FetchAbortPlugin:function(){return e4},FetchURLPlugin:function(){return e6},JSONSerializer:function(){return re},KeyStorage:function(){return ro},KeyStorageInterface:function(){return rn},ObjectStorage:function(){return ri},RequestAdapterAxios:function(){return e3},RequestAdapterFetch:function(){return e2},RequestError:function(){return eY},RequestErrorID:function(){return eZ},RequestManager:function(){return e7},RequestScheduler:function(){return e5},RequestTransaction:function(){return e9},RetryPlugin:function(){return eQ},SyncExecutor:function(){return eK},SyncStorage:function(){return ra}});var eB=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};u(this,t);this.config=e;this.plugins=[]}c(t,[{key:"use",value:function t(t){if((typeof t==="undefined"?"undefined":T(t))!="object"||t===null)throw new Error("Plugin must be an object");if(this.plugins.find(function(e){return e===t||e.pluginName===t.pluginName||e.constructor===t.constructor})&&t.onlyOne){console.warn("Plugin ".concat(t.pluginName," is already used, skip adding"));return}this.plugins.push(t)}}]);return t}();var eV=function t(t){p(r,t);var e=C(r);function r(t,o){u(this,r);var i;i=e.call(this,h(o,Error)?o.message:o||t);i.id=t;h(o,Error)&&"stack"in o&&(i.stack=o.stack),Object.setPrototypeOf(n(i),(h(this,r)?this.constructor:void 0).prototype);return i}return r}(N(Error));var eF=function(){function t(){u(this,t)}c(t,[{key:"resetHooksRuntimes",value:function t(t){t.pluginName="",t.hookName="",t.returnValue=void 0,t.returnBreakChain=!1,t.times=0,t.breakChain=!1,t.index=void 0}},{key:"reset",value:function t(t){this.resetHooksRuntimes(t.hooksRuntimes),t.returnValue=void 0,t.error=void 0}},{key:"shouldSkipPluginHook",value:function t(t,e,r){return typeof t[e]!="function"||typeof t.enabled=="function"&&!t.enabled(e,r)}},{key:"runtimes",value:function t(t,e,r,n){t.hooksRuntimes.pluginName=e.pluginName,t.hooksRuntimes.hookName=r,t.hooksRuntimes.times=(t.hooksRuntimes.times||0)+1,t.hooksRuntimes.index=n}},{key:"runtimeReturnValue",value:function t(t,e){t.hooksRuntimes.returnValue=e}},{key:"shouldBreakChain",value:function t(t){var e;return!!((e=t.hooksRuntimes)===null||e===void 0?void 0:e.breakChain)}},{key:"shouldBreakChainOnReturn",value:function t(t){var e;return!!((e=t.hooksRuntimes)===null||e===void 0?void 0:e.returnBreakChain)}},{key:"setError",value:function t(t,e){t.error=e}}]);return t}();var eD=function(t){p(r,t);var e=C(r);function r(){u(this,r);var t;t=e.call.apply(e,[this].concat(Array.prototype.slice.call(arguments)));t.contextHandler=new eF;return t}c(r,[{key:"runHook",value:function t(t,e,r){for(var n=arguments.length,o=new Array(n>3?n-3:0),u=3;u<n;u++){o[u-3]=arguments[u]}var a=this;return i(function(){var n,i,u,s,c,f,v,p,h,y,d,g;return q(this,function(b){switch(b.label){case 0:n=-1,u=r||l({});a.contextHandler.resetHooksRuntimes(u.hooksRuntimes);s=true,c=false,f=undefined;b.label=1;case 1:b.trys.push([1,6,7,8]);v=t[Symbol.iterator]();b.label=2;case 2:if(!!(s=(p=v.next()).done))return[3,5];h=p.value;if(n++,a.contextHandler.shouldSkipPluginHook(h,e,u))return[3,4];if(a.contextHandler.shouldBreakChain(u))return[3,5];a.contextHandler.runtimes(u,h,e,n);return[4,(y=h)[e].apply(y,[u].concat(A(o)))];case 3:d=b.sent();if(d!==void 0&&(i=d,a.contextHandler.runtimeReturnValue(u,d),a.contextHandler.shouldBreakChainOnReturn(u)))return[2,i];b.label=4;case 4:s=true;return[3,2];case 5:return[3,8];case 6:g=b.sent();c=true;f=g;return[3,8];case 7:try{if(!s&&v.return!=null){v.return()}}finally{if(c){throw f}}return[7];case 8:return[2,i]}})})()}},{key:"runHooks",value:function t(t,e,r){for(var n=arguments.length,o=new Array(n>3?n-3:0),u=3;u<n;u++){o[u-3]=arguments[u]}var a=this;return i(function(){var n,i,u,s,c,l,f,v,p,h;return q(this,function(y){switch(y.label){case 0:n=Array.isArray(e)?e:[e];u=true,s=false,c=undefined;y.label=1;case 1:y.trys.push([1,6,7,8]);l=n[Symbol.iterator]();y.label=2;case 2:if(!!(u=(f=l.next()).done))return[3,5];v=f.value;return[4,a.runHook.apply(a,[t,v,r].concat(A(o)))];case 3:p=y.sent();if(p!==void 0&&(i=p),r&&a.contextHandler.shouldBreakChain(r))return[3,5];y.label=4;case 4:u=true;return[3,2];case 5:return[3,8];case 6:h=y.sent();s=true;c=h;return[3,8];case 7:try{if(!u&&l.return!=null){l.return()}}finally{if(s){throw c}}return[7];case 8:return[2,i]}})})()}},{key:"execNoError",value:function t(t,e){var r=this;return i(function(){var n;return q(this,function(o){switch(o.label){case 0:o.trys.push([0,2,,3]);return[4,r.exec(t,e)];case 1:return[2,o.sent()];case 2:n=o.sent();return[2,h(n,eV)?n:new eV("UNKNOWN_ASYNC_ERROR",n)];case 3:return[2]}})})()}},{key:"exec",value:function t(t,e){var r=e||t,n=e?t:void 0;if(typeof r!="function")throw new Error("Task must be a async function!");return this.run(n,r)}},{key:"runExec",value:function t(t,e){var r=this;return i(function(){var n,o,i;return q(this,function(u){switch(u.label){case 0:o=((n=r.config)===null||n===void 0?void 0:n.execHook)||"onExec";return[4,r.runHook(r.plugins,o,t,e)];case 1:u.sent();if(!t.hooksRuntimes.times)return[3,2];i=t.hooksRuntimes.returnValue;return[3,4];case 2:return[4,e(t)];case 3:i=u.sent();u.label=4;case 4:t.returnValue=i;return[2]}})})()}},{key:"run",value:function t(t,e){var r=this;return i(function(){var n,o,i,u,a,s;return q(this,function(c){switch(c.label){case 0:i=l(t),u=((n=r.config)===null||n===void 0?void 0:n.beforeHooks)||"onBefore",a=((o=r.config)===null||o===void 0?void 0:o.afterHooks)||"onSuccess";c.label=1;case 1:c.trys.push([1,5,7,8]);return[4,r.runHooks(r.plugins,u,i)];case 2:c.sent();return[4,r.runExec(i,e)];case 3:c.sent();return[4,r.runHooks(r.plugins,a,i)];case 4:return[2,(c.sent(),i.returnValue)];case 5:s=c.sent();r.contextHandler.setError(i,s);return[4,r.runHook(r.plugins,"onError",i)];case 6:throw c.sent(),i.hooksRuntimes.returnValue&&r.contextHandler.setError(i,i.hooksRuntimes.returnValue),h(i.error,eV)?i.error:new eV("UNKNOWN_ASYNC_ERROR",i.error);case 7:r.contextHandler.reset(i);return[7];case 8:return[2]}})})()}}]);return r}(eB);var eK=function(t){p(r,t);var e=C(r);function r(){u(this,r);var t;t=e.call.apply(e,[this].concat(Array.prototype.slice.call(arguments)));t.contextHandler=new eF;return t}c(r,[{key:"runHook",value:function t(t,e,r){for(var n=arguments.length,o=new Array(n>3?n-3:0),i=3;i<n;i++){o[i-3]=arguments[i]}var u=-1,a,s=r||l({});this.contextHandler.resetHooksRuntimes(s.hooksRuntimes);var c=true,f=false,v=undefined;try{for(var p=t[Symbol.iterator](),h;!(c=(h=p.next()).done);c=true){var y=h.value;var d;if(u++,this.contextHandler.shouldSkipPluginHook(y,e,s))continue;if(this.contextHandler.shouldBreakChain(s))break;this.contextHandler.runtimes(s,y,e,u);var g=(d=y)[e].apply(d,[s].concat(A(o)));if(g!==void 0&&(a=g,this.contextHandler.runtimeReturnValue(s,g),this.contextHandler.shouldBreakChainOnReturn(s)))return a}}catch(t){f=true;v=t}finally{try{if(!c&&p.return!=null){p.return()}}finally{if(f){throw v}}}return a}},{key:"runHooks",value:function t(t,e,r){for(var n=arguments.length,o=new Array(n>3?n-3:0),i=3;i<n;i++){o[i-3]=arguments[i]}var u=Array.isArray(e)?e:[e],a;var s=true,c=false,l=undefined;try{for(var f=u[Symbol.iterator](),v;!(s=(v=f.next()).done);s=true){var p=v.value;var h=this.runHook.apply(this,[t,p,r].concat(A(o)));if(h!==void 0&&(a=h),r&&this.contextHandler.shouldBreakChain(r))break}}catch(t){c=true;l=t}finally{try{if(!s&&f.return!=null){f.return()}}finally{if(c){throw l}}}return a}},{key:"execNoError",value:function t(t,e){try{return this.exec(t,e)}catch(t){return h(t,eV)?t:new eV("UNKNOWN_SYNC_ERROR",t)}}},{key:"exec",value:function t(t,e){var r=e||t,n=e?t:void 0;if(typeof r!="function")throw new Error("Task must be a function!");return this.run(n,r)}},{key:"runExec",value:function t(t,e){var r;var n=((r=this.config)===null||r===void 0?void 0:r.execHook)||"onExec";this.runHook(this.plugins,n,t,e),t.returnValue=t.hooksRuntimes.times?t.hooksRuntimes.returnValue:e(t)}},{key:"run",value:function t(t,e){var r,n;var o=l(t),i=((r=this.config)===null||r===void 0?void 0:r.beforeHooks)||"onBefore",u=((n=this.config)===null||n===void 0?void 0:n.afterHooks)||"onSuccess";try{return this.runHooks(this.plugins,i,o),this.runExec(o,e),this.runHooks(this.plugins,u,o),o.returnValue}catch(t){throw this.contextHandler.setError(o,t),this.runHook(this.plugins,"onError",o),o.hooksRuntimes.returnValue&&this.contextHandler.setError(o,o.hooksRuntimes.returnValue),h(o.error,eV)?o.error:new eV("UNKNOWN_SYNC_ERROR",o.error)}finally{this.contextHandler.reset(o)}}}]);return r}(eB);var eM="ABORT_ERROR",eL=function(t){p(r,t);var e=C(r);function r(t,n,o){u(this,r);var i;i=e.call(this,eM,t),i.abortId=n,i.timeout=o;return R(i)}c(r,[{key:"isTimeout",value:function t(){return this.timeout!==void 0&&this.timeout>0}},{key:"getDescription",value:function t(){var t=[];return this.abortId&&t.push("Request: ".concat(this.abortId)),this.isTimeout()&&t.push("Timeout: ".concat(this.timeout,"ms")),t.length>0?"".concat(this.message," (").concat(t.join(", "),")"):this.message}}]);return r}(eV),e$=function(){function t(e){u(this,t);this.pluginName="AbortPlugin";this.onlyOne=!0;this.requestCounter=0;this.controllers=new Map;this.timeouts=new Map;this.getConfig=(e===null||e===void 0?void 0:e.getConfig)||function(t){return t},this.logger=e===null||e===void 0?void 0:e.logger}c(t,[{key:"generateRequestKey",value:function t(t){var e=t.requestId,r=t.id;return e||r||"".concat(this.pluginName,"-").concat(++this.requestCounter)}},{key:"cleanup",value:function t(t){var e=typeof t=="string"?t:this.generateRequestKey(t),r=this.controllers.has(e),n=this.timeouts.has(e);if(r||n){var o;this.controllers.delete(e);var i=this.timeouts.get(e);i&&(clearTimeout(i),this.timeouts.delete(e)),(o=this.logger)===null||o===void 0?void 0:o.debug("[".concat(this.pluginName,"] cleanup: ").concat(e))}}},{key:"onBefore",value:function t(t){var e=this;var r;var n=this.getConfig(t.parameters),o=this.generateRequestKey(n),i=n.abortTimeout;if(this.controllers.has(o)&&((r=this.logger)===null||r===void 0?void 0:r.debug("[".concat(this.pluginName,"] aborting previous request: ").concat(o)),this.abort(o)),!n.signal){var u=new AbortController;if(this.controllers.set(o,u),n.signal=u.signal,i&&i>0){var a=setTimeout(function(){var t;var r=e.controllers.get(o);r&&(r.abort(new eL("The operation was aborted due to timeout",o,i)),(t=e.logger)===null||t===void 0?void 0:t.info("[".concat(e.pluginName,"] timeout abort: ").concat(o," (").concat(i,"ms)")),e.cleanup(o),typeof n.onAborted=="function"&&n.onAborted(O(x({},n),{onAborted:void 0})))},i);this.timeouts.set(o,a)}}}},{key:"onSuccess",value:function t(t){var e=t.parameters;if(e){var r=this.getConfig(e),n=this.generateRequestKey(r);this.cleanup(n)}}},{key:"onError",value:function e(e){var r=e.error,n=e.parameters;if(!n)return;var o=this.getConfig(n),i=this.generateRequestKey(o);if(t.isAbortError(r)){var u;var a=(u=this.controllers.get(i))===null||u===void 0?void 0:u.signal.reason;return this.cleanup(i),h(a,eL)?a:new eL((a===null||a===void 0?void 0:a.message)||(r===null||r===void 0?void 0:r.message)||"The operation was aborted",i)}else this.cleanup(i)}},{key:"abort",value:function t(t){var e;var r=typeof t=="string"?t:this.generateRequestKey(t),n=this.controllers.get(r);return n?(n.abort(new eL("The operation was aborted",r)),(e=this.logger)===null||e===void 0?void 0:e.info("[".concat(this.pluginName,"] manual abort: ").concat(r)),this.cleanup(r),typeof t!="string"&&typeof t.onAborted=="function"&&t.onAborted(O(x({},t),{onAborted:void 0})),!0):!1}},{key:"abortAll",value:function t(){var t;var e=this.controllers.size;e>0&&((t=this.logger)===null||t===void 0?void 0:t.debug("[".concat(this.pluginName,"] aborting all ").concat(e," requests"))),this.controllers.forEach(function(t,e){t.abort(new eL("All operations were aborted",e))}),this.controllers.clear(),this.timeouts.forEach(function(t){clearTimeout(t)}),this.timeouts.clear()}},{key:"createAbortPromise",value:function t(t){var e=function(){};return{promise:new Promise(function(r,n){if(t.aborted){n(t.reason||new eL("The operation was aborted"));return}var o=function(){n(t.reason||new eL("The operation was aborted"))};t.addEventListener("abort",o),e=function(){t.removeEventListener("abort",o)}}),cleanup:e}}},{key:"raceWithAbort",value:function t(t,e){if(!e)return t;var r=this.createAbortPromise(e),n=r.promise,o=r.cleanup;return Promise.race([t,n]).finally(function(){o()})}}],[{key:"isAbortError",value:function t(t){return h(t,eL)||h(t,Error)&&t.name==="AbortError"||h(t,eV)&&(t===null||t===void 0?void 0:t.id)===eM||h(t,DOMException)&&t.name==="AbortError"||h(t,Event)&&t.type==="abort"}}]);return t}();var eW=16,eJ=3,eG=function(){return!0},eQ=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};u(this,t);this.pluginName="RetryPlugin";this.onlyOne=!0;var r;this.options=O(x({retryDelay:1e3,useExponentialBackoff:!1,shouldRetry:eG},e),{maxRetries:Math.min(Math.max(1,(r=e.maxRetries)!==null&&r!==void 0?r:eJ),eW)})}c(t,[{key:"delay",value:function t(t){var e=this;return i(function(){var r;return q(this,function(n){r=e.options.useExponentialBackoff?e.options.retryDelay*Math.pow(2,t):e.options.retryDelay;return[2,new Promise(function(t){return setTimeout(t,r)})]})})()}},{key:"onExec",value:function t(t,e){var r=this;return i(function(){return q(this,function(n){return[2,r.options.maxRetries<1?e(t):r.retry(e,t,r.options,r.options.maxRetries)]})})()}},{key:"shouldRetry",value:function t(t){var e=t.error,r=t.retryCount;return r>0&&this.options.shouldRetry(e)}},{key:"retry",value:function t(t,e,r,n){var o=this;return i(function(){var i;return q(this,function(u){switch(u.label){case 0:u.trys.push([0,2,,4]);return[4,t(e)];case 1:return[2,u.sent()];case 2:i=u.sent();if(!o.shouldRetry({error:i,retryCount:n}))throw new eV("RETRY_ERROR","All ".concat(r.maxRetries," attempts failed: ").concat(i.message));return[4,o.delay(r.maxRetries-n)];case 3:return[2,(u.sent(),n--,o.retry(t,e,r,n))];case 4:return[2]}})})()}}]);return t}();var eY=function(t){p(r,t);var e=C(r);function r(){u(this,r);return e.apply(this,arguments)}return r}(eV),eZ=function(t){return t.REQUEST_ERROR="REQUEST_ERROR",t.ENV_FETCH_NOT_SUPPORT="ENV_FETCH_NOT_SUPPORT",t.FETCHER_NONE="FETCHER_NONE",t.RESPONSE_NOT_OK="RESPONSE_NOT_OK",t.ABORT_ERROR="ABORT_ERROR",t.URL_NONE="URL_NONE",t}(eZ||{});var eX=H(eh(),1),e0=H(ez(),1),e1=["cache","credentials","headers","integrity","keepalive","mode","priority","redirect","referrer","referrerPolicy","signal"],e2=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};u(this,t);if(!e.fetcher){if(typeof fetch!="function")throw new eV("ENV_FETCH_NOT_SUPPORT");e.fetcher=fetch}this.executor=new eD,this.config=e}c(t,[{key:"getConfig",value:function t(){return this.config}},{key:"usePlugin",value:function t(t){this.executor.use(t)}},{key:"request",value:function t(t){var e=this;return i(function(){var r,n,o,u,a;return q(this,function(s){r=e.getConfig(),n=(0,eX.default)({},r,t),o=n.fetcher,u=_(n,["fetcher"]);if(typeof o!="function")throw new eV("FETCHER_NONE");if(!u.url)throw new eV("URL_NONE");a=function(){var t=i(function(t){var r;return q(this,function(n){switch(n.label){case 0:return[4,o(e.parametersToRequest(t.parameters))];case 1:r=n.sent();return[2,e.toAdapterResponse(r,r,t.parameters)]}})});return function e(e){return t.apply(this,arguments)}}();return[2,e.executor.exec(u,a)]})})()}},{key:"parametersToRequest",value:function t(t){var e=t.url,r=e===void 0?"/":e,n=t.method,o=n===void 0?"GET":n,i=t.data,u=(0,e0.default)(t,e1);return new Request(r,Object.assign(u,{body:i,method:o.toUpperCase()}))}},{key:"toAdapterResponse",value:function t(t,e,r){return{data:t,status:e.status,statusText:e.statusText,headers:this.getResponseHeaders(e),config:r,response:e}}},{key:"getResponseHeaders",value:function t(t){var e={};return t.headers.forEach(function(t,r){e[r]=t}),e}}]);return t}();var e3=function(){function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};u(this,t);this.config=r;this.axiosInstance=e.create(r)}c(t,[{key:"getConfig",value:function t(){return this.config}},{key:"request",value:function t(t){var e=this;return i(function(){return q(this,function(r){return[2,e.axiosInstance.request(t)]})})()}}]);return t}();var e4=function(){function t(){u(this,t);this.pluginName="FetchAbortPlugin";this.onlyOne=!0;this.controllers=new Map}c(t,[{key:"generateRequestKey",value:function t(t){if(t.requestId)return t.requestId;var e=t.params?JSON.stringify(t.params):"",r=t.body?JSON.stringify(t.body):"";return"".concat(t.method||"GET","-").concat(t.url,"-").concat(e,"-").concat(r)}},{key:"onBefore",value:function t(t){var e=this.generateRequestKey(t.parameters);if(this.controllers.has(e)&&this.abort(t.parameters),!t.parameters.signal){var r=new AbortController;this.controllers.set(e,r),t.parameters.signal=r.signal}}},{key:"onSuccess",value:function t(t){var e=t.parameters;e&&this.controllers.delete(this.generateRequestKey(e))}},{key:"onError",value:function t(t){var e=t.error,r=t.parameters;if(this.isSameAbortError(e)&&r){var n=this.generateRequestKey(r),o=this.controllers.get(n);return this.controllers.delete(n),new eY("ABORT_ERROR",(o===null||o===void 0?void 0:o.signal.reason)||e)}}},{key:"isSameAbortError",value:function t(t){return h(t,Error)&&t.name==="AbortError"||h(t,DOMException)&&t.name==="AbortError"||h(t,Event)&&t.type==="abort"}},{key:"abort",value:function t(t){var e=typeof t=="string"?t:this.generateRequestKey(t),r=this.controllers.get(e);r&&(r.abort(new eY("ABORT_ERROR","The operation was aborted")),this.controllers.delete(e),typeof t!="string"&&typeof t.onAbort=="function"&&t.onAbort.call(t,t))}},{key:"abortAll",value:function t(){this.controllers.forEach(function(t){return t.abort()}),this.controllers.clear()}}]);return t}();var e6=function(){function t(){u(this,t);this.pluginName="FetchURLPlugin"}c(t,[{key:"isFullURL",value:function t(t){return t.startsWith("http://")||t.startsWith("https://")}},{key:"appendQueryParams",value:function t(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};var r=j(t.split("?"),2),n=r[0],o=r[1],i=o===void 0?"":o;i.split("&").forEach(function(t){var r=j(t.split("="),2),n=r[0],o=r[1];n&&o&&(e[n]=o)});var u=Object.entries(e).map(function(t){var e=j(t,2),r=e[0],n=e[1];return"".concat(r,"=").concat(n)}).join("&");return[n,u].join("?")}},{key:"connectBaseURL",value:function t(t,e){return"".concat(e,"/").concat(t)}},{key:"buildUrl",value:function t(t){var e=t.url,r=e===void 0?"":e,n=t.baseURL,o=n===void 0?"":n,i=t.params;if(!this.isFullURL(r)){var u=r.startsWith("/")?r.slice(1):r,a=o.endsWith("/")?o.slice(0,-1):o;r=this.connectBaseURL(u,a)}return i&&Object.keys(i).length>0&&(r=this.appendQueryParams(r,i)),r}},{key:"onBefore",value:function t(t){var e=t.parameters;e.url=this.buildUrl(e)}},{key:"onSuccess",value:function t(t){var e=t.returnValue;var r=e;if(!r.response.ok){var n=new eY("RESPONSE_NOT_OK","Request failed with status: ".concat(r.status," ").concat(r.statusText));throw n.response=r.response,n}}},{key:"onError",value:function t(t){var e=t.error;return h(e,eY)?e:new eY("REQUEST_ERROR",e)}}]);return t}();var e8=H(eh(),1),e7=function(){function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new eD;u(this,t);this.adapter=e;this.executor=r}c(t,[{key:"usePlugin",value:function t(t){var e=this;return Array.isArray(t)?t.forEach(function(t){return e.executor.use(t)}):this.executor.use(t),this}},{key:"request",value:function t(t){var e=this;var r=(0,e8.default)({},this.adapter.getConfig(),t);return this.executor.exec(r,function(t){return e.adapter.request(t.parameters)})}}]);return t}();var e5=function(t){p(r,t);var e=C(r);function r(){u(this,r);return e.apply(this,arguments)}c(r,[{key:"request",value:function t(t){return f(v(r.prototype),"request",this).call(this,t)}},{key:"get",value:function t(t,e){var r=this;return i(function(){return q(this,function(n){return[2,r.request(O(x({url:t},e),{method:"GET"}))]})})()}},{key:"post",value:function t(t,e){var r=this;return i(function(){return q(this,function(n){return[2,r.request(O(x({url:t},e),{method:"POST"}))]})})()}},{key:"put",value:function t(t,e){var r=this;return i(function(){return q(this,function(n){return[2,r.request(O(x({url:t},e),{method:"PUT"}))]})})()}},{key:"delete",value:function t(t,e){var r=this;return i(function(){return q(this,function(n){return[2,r.request(O(x({url:t},e),{method:"DELETE"}))]})})()}},{key:"patch",value:function t(t,e){var r=this;return i(function(){return q(this,function(n){return[2,r.request(O(x({url:t},e),{method:"PATCH"}))]})})()}},{key:"head",value:function t(t,e){var r=this;return i(function(){return q(this,function(n){return[2,r.request(O(x({url:t},e),{method:"HEAD"}))]})})()}},{key:"options",value:function t(t,e){var r=this;return i(function(){return q(this,function(n){return[2,r.request(O(x({url:t},e),{method:"OPTIONS"}))]})})()}},{key:"trace",value:function t(t,e){var r=this;return i(function(){return q(this,function(n){return[2,r.request(O(x({url:t},e),{method:"TRACE"}))]})})()}},{key:"connect",value:function t(t,e){var r=this;return i(function(){return q(this,function(n){return[2,r.request(O(x({url:t},e),{method:"CONNECT"}))]})})()}}]);return r}(e7);var e9=function(t){p(r,t);var e=C(r);function r(){u(this,r);return e.apply(this,arguments)}c(r,[{key:"request",value:function t(t){return f(v(r.prototype),"request",this).call(this,t)}},{key:"get",value:function t(t,e){return this.request(O(x({},e),{url:t,method:"GET"}))}},{key:"post",value:function t(t,e,r){return this.request(O(x({},r),{url:t,method:"POST",data:e}))}},{key:"put",value:function t(t,e,r){return this.request(O(x({},r),{url:t,method:"PUT",data:e}))}},{key:"delete",value:function t(t,e){return this.request(O(x({},e),{url:t,method:"DELETE"}))}},{key:"patch",value:function t(t,e,r){return this.request(O(x({},r),{url:t,method:"PATCH",data:e}))}}]);return r}(e7);var rt;rt=Symbol.toStringTag;var re=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};u(this,t);this.options=e;this[rt]="JSONSerializer"}c(t,[{key:"createReplacer",value:function t(t){return Array.isArray(t)?t:t===null?function(t,e){return typeof e=="string"?e.replace(/\r\n/g,"\n"):e}:typeof t=="function"?function(e,r){var n=typeof r=="string"?r.replace(/\r\n/g,"\n"):r;return t.call(this,e,n)}:function(t,e){return typeof e=="string"?e.replace(/\r\n/g,"\n"):e}}},{key:"stringify",value:function t(t,e,r){try{var n=this.createReplacer(e);return Array.isArray(n)?JSON.stringify(t,n,r):JSON.stringify(t,n,r!==null&&r!==void 0?r:this.options.pretty?this.options.indent||2:void 0)}catch(t){throw h(t,TypeError)&&t.message.includes("circular")?new TypeError("Cannot stringify data with circular references"):t}}},{key:"parse",value:function t(t,e){return JSON.parse(t,e)}},{key:"serialize",value:function t(t){return this.stringify(t,this.options.replacer||null,this.options.pretty?this.options.indent||2:void 0)}},{key:"deserialize",value:function t(t,e){try{return this.parse(t)}catch(t){return e}}},{key:"serializeArray",value:function t(t){return"["+t.map(function(t){return JSON.stringify(t)}).join(",")+"]"}}]);return t}();var rr=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};u(this,t);this.options=e}c(t,[{key:"isNodeEnvironment",value:function t(){return(typeof process==="undefined"?"undefined":T(process))<"u"&&process.versions&&!!process.versions.node}},{key:"isValidBase64",value:function t(t){try{if(!/^[A-Za-z0-9+/\-_]*={0,2}$/.test(t))return!1;var e=this.options.urlSafe?this.makeUrlUnsafe(t):t;return e.length%4!==0?!1:(this.isNodeEnvironment()?Buffer.from(e,"base64").toString("utf8"):atob(e),!0)}catch(t){return!1}}},{key:"serialize",value:function t(t){try{var e;if(this.isNodeEnvironment())e=Buffer.from(t,"utf8").toString("base64");else{var r=new TextEncoder().encode(t),n=Array.from(r,function(t){return String.fromCharCode(t)}).join("");e=btoa(n)}return this.options.urlSafe?this.makeUrlSafe(e):e}catch(t){return""}}},{key:"deserialize",value:function t(t,e){try{if(typeof t!="string")return e!==null&&e!==void 0?e:"";if(t.length===0)return"";if(!this.isValidBase64(t))return e!==null&&e!==void 0?e:"";var r=t;if(this.options.urlSafe&&(r=this.makeUrlUnsafe(t)),this.isNodeEnvironment())return Buffer.from(r,"base64").toString("utf8");{var n=atob(r),o=new Uint8Array(n.length);for(var i=0;i<n.length;i++)o[i]=n.charCodeAt(i);return new TextDecoder().decode(o)}}catch(t){return e!==null&&e!==void 0?e:""}}},{key:"makeUrlSafe",value:function t(t){return t.replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}},{key:"makeUrlUnsafe",value:function t(t){for(t=t.replace(/-/g,"+").replace(/_/g,"/");t.length%4;)t+="=";return t}}]);return t}();var rn=function(){function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};u(this,t);var n;this.key=e;this.options=r;this.value=null;var o=(n=r.storage)===null||n===void 0?void 0:n.getItem(e);this.value=o}c(t,[{key:"getKey",value:function t(){return this.key}},{key:"getValue",value:function t(){return this.get()}}]);return t}();var ro=function(t){p(r,t);var e=C(r);function r(){u(this,r);var t;t=e.call.apply(e,[this].concat(Array.prototype.slice.call(arguments)));t.value=null;return t}c(r,[{key:"mergeOptions",value:function t(t){return x({},this.options,t)}},{key:"get",value:function t(t){var e=this.mergeOptions(t),r=e.storage,n=_(e,["storage"]);if(this.value!=null)return this.value;if(r){var o=r.getItem(this.key,void 0,n);return o==null?(this.remove(),null):(this.value=o,o)}return this.value}},{key:"set",value:function t(t,e){var r=this.mergeOptions(e),n=r.storage,o=_(r,["storage"]);this.value=t,n&&n.setItem(this.key,t,o)}},{key:"remove",value:function t(t){var e=this.mergeOptions(t),r=e.storage,n=_(e,["storage"]);this.value=null,r===null||r===void 0?void 0:r.removeItem(this.key,n)}}]);return r}(rn);var ri=function(){function t(e){u(this,t);this.serializer=e;this.store=new Map}c(t,[{key:"length",get:function t(){return this.store.size}},{key:"setItem",value:function t(t,e,r){var n={key:t,value:e!==null&&e!==void 0?e:null};typeof(r===null||r===void 0?void 0:r.expires)=="number"&&r.expires>0&&(n.expires=r.expires);var o=this.serializer?this.serializer.serialize(n):n;return this.store.set(t,o),o}},{key:"getItem",value:function t(t,e){var r=this.store.get(t),n=e!==null&&e!==void 0?e:null;if(!r)return n;var o=this.serializer?this.serializer.deserialize(r,n):r;return this.getRawValue(o,n)}},{key:"getRawValue",value:function t(t,e){var r,n;return this.isStorageValue(t)?this.isExpired(t)?(this.removeItem(t.key),e!==null&&e!==void 0?e:null):(r=t===null||t===void 0?void 0:t.value)!==null&&r!==void 0?r:e:(n=t!==null&&t!==void 0?t:e)!==null&&n!==void 0?n:null}},{key:"removeItem",value:function t(t){this.store.delete(t)}},{key:"clear",value:function t(){this.store.clear()}},{key:"isExpired",value:function t(t){return typeof t.expires=="number"&&t.expires<Date.now()&&t.expires>0}},{key:"isStorageValue",value:function t(t){return(typeof t==="undefined"?"undefined":T(t))=="object"&&t!==null&&"key"in t&&"value"in t}},{key:"getSerializer",value:function t(){return this.serializer}}]);return t}();var ru={setItem:{serialize:function(e,r){return(t=e).serialize.apply(t,A(r))},encrypt:function(t,r){return(e=t).encrypt.apply(e,A(r))},storage:function(t,e){return(r=t).setItem.apply(r,A(e))}},getItem:{serialize:function(t,e){return(o=t).deserialize.apply(o,A(e))},encrypt:function(t,e){return(a=t).decrypt.apply(a,A(e))},storage:function(t,e){return(s=t).getItem.apply(s,A(e))}}},ra=function(){function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];u(this,t);this.storage=e;this.pipes=(Array.isArray(r)?r:[r]).map(function(t){return y(t)}).filter(function(t){return t!=null})}c(t,[{key:"length",get:function t(){return this.storage.length}},{key:"setItem",value:function t(t,e,r){var n=e;var o=true,i=false,u=undefined;try{for(var a=this.pipes[Symbol.iterator](),s;!(o=(s=a.next()).done);o=true){var c=s.value;var l=c.type,f=c.pipe;if(l==="storage")f.setItem(t,n,r);else{var v=ru.setItem[l](f,[n]);v!=null&&(n=v)}}}catch(t){i=true;u=t}finally{try{if(!o&&a.return!=null){a.return()}}finally{if(i){throw u}}}this.storage.setItem(t,n,r)}},{key:"getItem",value:function t(t,e,r){var n=this.storage.getItem(t,e,r);if(n==null){var o=A(this.pipes).reverse();var i=true,u=false,a=undefined;try{for(var s=o[Symbol.iterator](),c;!(i=(c=s.next()).done);i=true){var l=c.value;var f=l.type,v=l.pipe;if(f!=="storage")continue;var p=ru.getItem[f](v,[t,n,r]);if(p!=null){n=p;break}}}catch(t){u=true;a=t}finally{try{if(!i&&s.return!=null){s.return()}}finally{if(u){throw a}}}}if(n==null)return e!==null&&e!==void 0?e:null;var h=A(this.pipes).reverse();var y=true,d=false,g=undefined;try{for(var b=h[Symbol.iterator](),m;!(y=(m=b.next()).done);y=true){var x=m.value;var k=x.type,O=x.pipe;k!=="storage"&&(n=ru.getItem[k](O,[n]))}}catch(t){d=true;g=t}finally{try{if(!y&&b.return!=null){b.return()}}finally{if(d){throw g}}}return n!==null&&this.storage.getRawValue&&(n=this.storage.getRawValue(n,r)),n!==null&&n!==void 0?n:null}},{key:"removeItem",value:function t(t,e){this.storage.removeItem(t,e),this.pipes.filter(function(t){return t.type==="storage"}).forEach(function(r){r.pipe.removeItem(t,e)})}},{key:"clear",value:function t(){this.storage.clear(),this.pipes.filter(function(t){return t.type==="storage"}).forEach(function(t){t.pipe.clear()})}}]);return t}();return I(eU)}();
|
|
1
|
+
"use strict";function t(t,e){if(e==null||e>t.length)e=t.length;for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function e(t){if(Array.isArray(t))return t}function r(e){if(Array.isArray(e))return t(e)}function n(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function o(t,e,r,n,o,i,u){try{var a=t[i](u);var s=a.value}catch(t){r(t);return}if(a.done){e(s)}else{Promise.resolve(s).then(n,o)}}function i(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var u=t.apply(e,r);function a(t){o(u,n,i,a,s,"next",t)}function s(t){o(u,n,i,a,s,"throw",t)}a(undefined)})}}function u(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function a(t,e,r){if(H()){a=Reflect.construct}else{a=function t(t,e,r){var n=[null];n.push.apply(n,e);var o=Function.bind.apply(t,n);var i=new o;if(r)E(i,r.prototype);return i}}return a.apply(null,arguments)}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(t,n.key,n)}}function c(t,e,r){if(e)s(t.prototype,e);if(r)s(t,r);return t}function l(t,e,r){if(e in t){Object.defineProperty(t,e,{value:r,enumerable:true,configurable:true,writable:true})}else{t[e]=r}return t}function f(t,e,r){if(typeof Reflect!=="undefined"&&Reflect.get){f=Reflect.get}else{f=function t(t,e,r){var n=S(t,e);if(!n)return;var o=Object.getOwnPropertyDescriptor(n,e);if(o.get){return o.get.call(r||t)}return o.value}}return f(t,e,r||t)}function v(t){v=Object.setPrototypeOf?Object.getPrototypeOf:function t(t){return t.__proto__||Object.getPrototypeOf(t)};return v(t)}function p(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});if(e)E(t,e)}function h(t,e){if(e!=null&&typeof Symbol!=="undefined"&&e[Symbol.hasInstance]){return!!e[Symbol.hasInstance](t)}else{return t instanceof e}}function y(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function d(t){if(typeof Symbol!=="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function g(t,e){var r=t==null?null:typeof Symbol!=="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(r==null)return;var n=[];var o=true;var i=false;var u,a;try{for(r=r.call(t);!(o=(u=r.next()).done);o=true){n.push(u.value);if(e&&n.length===e)break}}catch(t){i=true;a=t}finally{try{if(!o&&r["return"]!=null)r["return"]()}finally{if(i)throw a}}return n}function b(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function m(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function x(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};var n=Object.keys(r);if(typeof Object.getOwnPropertySymbols==="function"){n=n.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))}n.forEach(function(e){l(t,e,r[e])})}return t}function k(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);if(e){n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})}r.push.apply(r,n)}return r}function O(t,e){e=e!=null?e:{};if(Object.getOwnPropertyDescriptors){Object.defineProperties(t,Object.getOwnPropertyDescriptors(e))}else{k(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))})}return t}function _(t,e){if(t==null)return{};var r=w(t,e);var n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o<i.length;o++){n=i[o];if(e.indexOf(n)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(t,n))continue;r[n]=t[n]}}return r}function w(t,e){if(t==null)return{};var r={};var n=Object.keys(t);var o,i;for(i=0;i<n.length;i++){o=n[i];if(e.indexOf(o)>=0)continue;r[o]=t[o]}return r}function R(t,e){if(e&&(T(e)==="object"||typeof e==="function")){return e}return n(t)}function E(t,e){E=Object.setPrototypeOf||function t(t,e){t.__proto__=e;return t};return E(t,e)}function j(t,r){return e(t)||g(t,r)||P(t,r)||b()}function S(t,e){while(!Object.prototype.hasOwnProperty.call(t,e)){t=v(t);if(t===null)break}return t}function A(t){return r(t)||d(t)||P(t)||m()}function T(t){"@swc/helpers - typeof";return t&&typeof Symbol!=="undefined"&&t.constructor===Symbol?"symbol":typeof t}function P(e,r){if(!e)return;if(typeof e==="string")return t(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor)n=e.constructor.name;if(n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return t(e,r)}function N(t){var e=typeof Map==="function"?new Map:undefined;N=function t(t){if(t===null||!y(t))return t;if(typeof t!=="function"){throw new TypeError("Super expression must either be null or a function")}if(typeof e!=="undefined"){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return a(t,arguments,v(this).constructor)}r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:false,writable:true,configurable:true}});return E(r,t)};return N(t)}function H(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true}catch(t){return false}}function C(t){var e=H();return function r(){var r=v(t),n;if(e){var o=v(this).constructor;n=Reflect.construct(r,arguments,o)}else{n=r.apply(this,arguments)}return R(this,n)}}function q(t,e){var r,n,o,i,u={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),"throw":a(1),"return":a(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function a(t){return function(e){return s([t,e])}}function s(i){if(r)throw new TypeError("Generator is already executing.");while(u)try{if(r=1,n&&(o=i[0]&2?n["return"]:i[0]?n["throw"]||((o=n["return"])&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;if(n=0,o)i=[i[0]&2,o.value];switch(i[0]){case 0:case 1:o=i;break;case 4:u.label++;return{value:i[1],done:false};case 5:u.label++;n=i[1];i=[0];continue;case 7:i=u.ops.pop();u.trys.pop();continue;default:if(!(o=u.trys,o=o.length>0&&o[o.length-1])&&(i[0]===6||i[0]===2)){u=0;continue}if(i[0]===3&&(!o||i[1]>o[0]&&i[1]<o[3])){u.label=i[1];break}if(i[0]===6&&u.label<o[1]){u.label=o[1];o=i;break}if(o&&u.label<o[2]){u.label=o[2];u.ops.push(i);break}if(o[2])u.ops.pop();u.trys.pop();continue}i=e.call(t,u)}catch(t){i=[6,t];n=0}finally{r=o=0}if(i[0]&5)throw i[1];return{value:i[0]?i[1]:void 0,done:true}}}var qloverFeCorekit=function(){var t,e,r,o,a,s;var l=function t(t){return{parameters:t,returnValue:void 0,error:void 0,hooksRuntimes:{pluginName:"",hookName:"",returnValue:void 0,returnBreakChain:!1,times:0,breakChain:!1,index:void 0}}};var y=function t(t){return"type"in t&&"pipe"in t?t:"serialize"in t&&"deserialize"in t?{pipe:t,type:"serialize"}:"encrypt"in t&&"decrypt"in t?{pipe:t,type:"encrypt"}:"setItem"in t&&"getItem"in t&&"removeItem"in t&&"clear"in t?{pipe:t,type:"storage"}:null};var d=Object.create;var g=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var m=Object.getOwnPropertyNames;var k=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty;var E=function(t,e){return function(){return e||t((e={exports:{}}).exports,e),e.exports}},S=function(t,e){for(var r in e)g(t,r,{get:e[r],enumerable:!0})},P=function(t,e,r,n){var o=true,i=false,u=undefined;if(e&&(typeof e==="undefined"?"undefined":T(e))=="object"||typeof e=="function")try{var a=function(){var o=c.value;!w.call(t,o)&&o!==r&&g(t,o,{get:function(){return e[o]},enumerable:!(n=b(e,o))||n.enumerable})};for(var s=m(e)[Symbol.iterator](),c;!(o=(c=s.next()).done);o=true)a()}catch(t){i=true;u=t}finally{try{if(!o&&s.return!=null){s.return()}}finally{if(i){throw u}}}return t};var H=function(t,e,r){return r=t!=null?d(k(t)):{},P(e||!t||!t.__esModule?g(r,"default",{value:t,enumerable:!0}):r,t)},I=function(t){return P(g({},"__esModule",{value:!0}),t)};var z=E(function(t,e){"use strict";var r=function t(){this.__data__=[],this.size=0};e.exports=r});var U=E(function(t,e){"use strict";var r=function t(t,e){return t===e||t!==t&&e!==e};e.exports=r});var B=E(function(t,e){"use strict";var r=function t(t,e){for(var r=t.length;r--;)if(n(t[r][0],e))return r;return-1};var n=U();e.exports=r});var V=E(function(t,e){"use strict";var r=function t(t){var e=this.__data__,r=n(e,t);if(r<0)return!1;var o=e.length-1;return r==o?e.pop():i.call(e,r,1),--this.size,!0};var n=B(),o=Array.prototype,i=o.splice;e.exports=r});var F=E(function(t,e){"use strict";var r=function t(t){var e=this.__data__,r=n(e,t);return r<0?void 0:e[r][1]};var n=B();e.exports=r});var D=E(function(t,e){"use strict";var r=function t(t){return n(this.__data__,t)>-1};var n=B();e.exports=r});var K=E(function(t,e){"use strict";var r=function t(t,e){var r=this.__data__,o=n(r,t);return o<0?(++this.size,r.push([t,e])):r[o][1]=e,this};var n=B();e.exports=r});var M=E(function(t,e){"use strict";var r=function t(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}};var n=z(),o=V(),i=F(),u=D(),a=K();r.prototype.clear=n;r.prototype.delete=o;r.prototype.get=i;r.prototype.has=u;r.prototype.set=a;e.exports=r});var L=E(function(t,e){"use strict";var r=function t(){this.__data__=new n,this.size=0};var n=M();e.exports=r});var $=E(function(t,e){"use strict";var r=function t(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r};e.exports=r});var W=E(function(t,e){"use strict";var r=function t(t){return this.__data__.get(t)};e.exports=r});var J=E(function(t,e){"use strict";var r=function t(t){return this.__data__.has(t)};e.exports=r});var G=E(function(t,e){"use strict";var r=(typeof global==="undefined"?"undefined":T(global))=="object"&&global&&global.Object===Object&&global;e.exports=r});var Q=E(function(t,e){"use strict";var r=G(),n=(typeof self==="undefined"?"undefined":T(self))=="object"&&self&&self.Object===Object&&self,o=r||n||Function("return this")();e.exports=o});var Y=E(function(t,e){"use strict";var r=Q(),n=r.Symbol;e.exports=n});var Z=E(function(t,e){"use strict";var r=function t(t){var e=i.call(t,a),r=t[a];try{t[a]=void 0;var n=!0}catch(t){}var o=u.call(t);return n&&(e?t[a]=r:delete t[a]),o};var n=Y(),o=Object.prototype,i=o.hasOwnProperty,u=o.toString,a=n?n.toStringTag:void 0;e.exports=r});var X=E(function(t,e){"use strict";var r=function t(t){return o.call(t)};var n=Object.prototype,o=n.toString;e.exports=r});var tt=E(function(t,e){"use strict";var r=function t(t){return t==null?t===void 0?a:u:s&&s in Object(t)?o(t):i(t)};var n=Y(),o=Z(),i=X(),u="[object Null]",a="[object Undefined]",s=n?n.toStringTag:void 0;e.exports=r});var te=E(function(t,e){"use strict";var r=function t(t){var e=typeof t==="undefined"?"undefined":T(t);return t!=null&&(e=="object"||e=="function")};e.exports=r});var tr=E(function(t,e){"use strict";var r=function t(t){if(!o(t))return!1;var e=n(t);return e==u||e==a||e==i||e==s};var n=tt(),o=te(),i="[object AsyncFunction]",u="[object Function]",a="[object GeneratorFunction]",s="[object Proxy]";e.exports=r});var tn=E(function(t,e){"use strict";var r=Q(),n=r["__core-js_shared__"];e.exports=n});var to=E(function(t,e){"use strict";var r=function t(t){return!!o&&o in t};var n=tn(),o=function(){var t=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();e.exports=r});var ti=E(function(t,e){"use strict";var r=function t(t){if(t!=null){try{return o.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var n=Function.prototype,o=n.toString;e.exports=r});var tu=E(function(t,e){"use strict";var r=function t(t){if(!i(t)||o(t))return!1;var e=n(t)?p:s;return e.test(u(t))};var n=tr(),o=to(),i=te(),u=ti(),a=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,f=c.toString,v=l.hasOwnProperty,p=RegExp("^"+f.call(v).replace(a,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=r});var ta=E(function(t,e){"use strict";var r=function t(t,e){return t===null||t===void 0?void 0:t[e]};e.exports=r});var ts=E(function(t,e){"use strict";var r=function t(t,e){var r=o(t,e);return n(r)?r:void 0};var n=tu(),o=ta();e.exports=r});var tc=E(function(t,e){"use strict";var r=ts(),n=Q(),o=r(n,"Map");e.exports=o});var tl=E(function(t,e){"use strict";var r=ts(),n=r(Object,"create");e.exports=n});var tf=E(function(t,e){"use strict";var r=function t(){this.__data__=n?n(null):{},this.size=0};var n=tl();e.exports=r});var tv=E(function(t,e){"use strict";var r=function t(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};e.exports=r});var tp=E(function(t,e){"use strict";var r=function t(t){var e=this.__data__;if(n){var r=e[t];return r===o?void 0:r}return u.call(e,t)?e[t]:void 0};var n=tl(),o="__lodash_hash_undefined__",i=Object.prototype,u=i.hasOwnProperty;e.exports=r});var th=E(function(t,e){"use strict";var r=function t(t){var e=this.__data__;return n?e[t]!==void 0:i.call(e,t)};var n=tl(),o=Object.prototype,i=o.hasOwnProperty;e.exports=r});var ty=E(function(t,e){"use strict";var r=function t(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=n&&e===void 0?o:e,this};var n=tl(),o="__lodash_hash_undefined__";e.exports=r});var td=E(function(t,e){"use strict";var r=function t(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}};var n=tf(),o=tv(),i=tp(),u=th(),a=ty();r.prototype.clear=n;r.prototype.delete=o;r.prototype.get=i;r.prototype.has=u;r.prototype.set=a;e.exports=r});var tg=E(function(t,e){"use strict";var r=function t(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}};var n=td(),o=M(),i=tc();e.exports=r});var tb=E(function(t,e){"use strict";var r=function t(t){var e=typeof t==="undefined"?"undefined":T(t);return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null};e.exports=r});var tm=E(function(t,e){"use strict";var r=function t(t,e){var r=t.__data__;return n(e)?r[typeof e=="string"?"string":"hash"]:r.map};var n=tb();e.exports=r});var tx=E(function(t,e){"use strict";var r=function t(t){var e=n(this,t).delete(t);return this.size-=e?1:0,e};var n=tm();e.exports=r});var tk=E(function(t,e){"use strict";var r=function t(t){return n(this,t).get(t)};var n=tm();e.exports=r});var tO=E(function(t,e){"use strict";var r=function t(t){return n(this,t).has(t)};var n=tm();e.exports=r});var t_=E(function(t,e){"use strict";var r=function t(t,e){var r=n(this,t),o=r.size;return r.set(t,e),this.size+=r.size==o?0:1,this};var n=tm();e.exports=r});var tw=E(function(t,e){"use strict";var r=function t(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}};var n=tg(),o=tx(),i=tk(),u=tO(),a=t_();r.prototype.clear=n;r.prototype.delete=o;r.prototype.get=i;r.prototype.has=u;r.prototype.set=a;e.exports=r});var tR=E(function(t,e){"use strict";var r=function t(t,e){var r=this.__data__;if(h(r,n)){var a=r.__data__;if(!o||a.length<u-1)return a.push([t,e]),this.size=++r.size,this;r=this.__data__=new i(a)}return r.set(t,e),this.size=r.size,this};var n=M(),o=tc(),i=tw(),u=200;e.exports=r});var tE=E(function(t,e){"use strict";var r=function t(t){var e=this.__data__=new n(t);this.size=e.size};var n=M(),o=L(),i=$(),u=W(),a=J(),s=tR();r.prototype.clear=o;r.prototype.delete=i;r.prototype.get=u;r.prototype.has=a;r.prototype.set=s;e.exports=r});var tj=E(function(t,e){"use strict";var r=ts(),n=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();e.exports=n});var tS=E(function(t,e){"use strict";var r=function t(t,e,r){e=="__proto__"&&n?n(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r};var n=tj();e.exports=r});var tA=E(function(t,e){"use strict";var r=function t(t,e,r){(r!==void 0&&!o(t[e],r)||r===void 0&&!(e in t))&&n(t,e,r)};var n=tS(),o=U();e.exports=r});var tT=E(function(t,e){"use strict";var r=function t(t){return function(e,r,n){for(var o=-1,i=Object(e),u=n(e),a=u.length;a--;){var s=u[t?a:++o];if(r(i[s],s,i)===!1)break}return e}};e.exports=r});var tP=E(function(t,e){"use strict";var r=tT(),n=r();e.exports=n});var tN=E(function(t,e){"use strict";var r=function t(t,e){if(e)return t.slice();var r=t.length,n=s?s(r):new t.constructor(r);return t.copy(n),n};var n=Q(),o=(typeof t==="undefined"?"undefined":T(t))=="object"&&t&&!t.nodeType&&t,i=o&&(typeof e==="undefined"?"undefined":T(e))=="object"&&e&&!e.nodeType&&e,u=i&&i.exports===o,a=u?n.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=r});var tH=E(function(t,e){"use strict";var r=Q(),n=r.Uint8Array;e.exports=n});var tC=E(function(t,e){"use strict";var r=function t(t){var e=new t.constructor(t.byteLength);return new n(e).set(new n(t)),e};var n=tH();e.exports=r});var tq=E(function(t,e){"use strict";var r=function t(t,e){var r=e?n(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)};var n=tC();e.exports=r});var tI=E(function(t,e){"use strict";var r=function t(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e};e.exports=r});var tz=E(function(t,e){"use strict";var r=te(),n=Object.create,o=function(){function t(){}return function(e){if(!r(e))return{};if(n)return n(e);t.prototype=e;var o=new t;return t.prototype=void 0,o}}();e.exports=o});var tU=E(function(t,e){"use strict";var r=function t(t,e){return function(r){return t(e(r))}};e.exports=r});var tB=E(function(t,e){"use strict";var r=tU(),n=r(Object.getPrototypeOf,Object);e.exports=n});var tV=E(function(t,e){"use strict";var r=function t(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||n;return t===r};var n=Object.prototype;e.exports=r});var tF=E(function(t,e){"use strict";var r=function t(t){return typeof t.constructor=="function"&&!i(t)?n(o(t)):{}};var n=tz(),o=tB(),i=tV();e.exports=r});var tD=E(function(t,e){"use strict";var r=function t(t){return t!=null&&(typeof t==="undefined"?"undefined":T(t))=="object"};e.exports=r});var tK=E(function(t,e){"use strict";var r=function t(t){return o(t)&&n(t)==i};var n=tt(),o=tD(),i="[object Arguments]";e.exports=r});var tM=E(function(t,e){"use strict";var r=tK(),n=tD(),o=Object.prototype,i=o.hasOwnProperty,u=o.propertyIsEnumerable,a=r(function(){return arguments}())?r:function t(t){return n(t)&&i.call(t,"callee")&&!u.call(t,"callee")};e.exports=a});var tL=E(function(t,e){"use strict";var r=Array.isArray;e.exports=r});var t$=E(function(t,e){"use strict";var r=function t(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=n};var n=9007199254740991;e.exports=r});var tW=E(function(t,e){"use strict";var r=function t(t){return t!=null&&o(t.length)&&!n(t)};var n=tr(),o=t$();e.exports=r});var tJ=E(function(t,e){"use strict";var r=function t(t){return o(t)&&n(t)};var n=tW(),o=tD();e.exports=r});var tG=E(function(t,e){"use strict";var r=function t(){return!1};e.exports=r});var tQ=E(function(t,e){"use strict";var r=Q(),n=tG(),o=(typeof t==="undefined"?"undefined":T(t))=="object"&&t&&!t.nodeType&&t,i=o&&(typeof e==="undefined"?"undefined":T(e))=="object"&&e&&!e.nodeType&&e,u=i&&i.exports===o,a=u?r.Buffer:void 0,s=a?a.isBuffer:void 0,c=s||n;e.exports=c});var tY=E(function(t,e){"use strict";var r=function t(t){if(!i(t)||n(t)!=u)return!1;var e=o(t);if(e===null)return!0;var r=l.call(e,"constructor")&&e.constructor;return typeof r=="function"&&h(r,r)&&c.call(r)==f};var n=tt(),o=tB(),i=tD(),u="[object Object]",a=Function.prototype,s=Object.prototype,c=a.toString,l=s.hasOwnProperty,f=c.call(Object);e.exports=r});var tZ=E(function(t,e){"use strict";var r=function t(t){return i(t)&&o(t.length)&&!!T[n(t)]};var n=tt(),o=t$(),i=tD(),u="[object Arguments]",a="[object Array]",s="[object Boolean]",c="[object Date]",l="[object Error]",f="[object Function]",v="[object Map]",p="[object Number]",h="[object Object]",y="[object RegExp]",d="[object Set]",g="[object String]",b="[object WeakMap]",m="[object ArrayBuffer]",x="[object DataView]",k="[object Float32Array]",O="[object Float64Array]",_="[object Int8Array]",w="[object Int16Array]",R="[object Int32Array]",E="[object Uint8Array]",j="[object Uint8ClampedArray]",S="[object Uint16Array]",A="[object Uint32Array]",T={};T[k]=T[O]=T[_]=T[w]=T[R]=T[E]=T[j]=T[S]=T[A]=!0;T[u]=T[a]=T[m]=T[s]=T[x]=T[c]=T[l]=T[f]=T[v]=T[p]=T[h]=T[y]=T[d]=T[g]=T[b]=!1;e.exports=r});var tX=E(function(t,e){"use strict";var r=function t(t){return function(e){return t(e)}};e.exports=r});var t0=E(function(t,e){"use strict";var r=G(),n=(typeof t==="undefined"?"undefined":T(t))=="object"&&t&&!t.nodeType&&t,o=n&&(typeof e==="undefined"?"undefined":T(e))=="object"&&e&&!e.nodeType&&e,i=o&&o.exports===n,u=i&&r.process,a=function(){try{var t=o&&o.require&&o.require("util").types;return t||u&&u.binding&&u.binding("util")}catch(t){}}();e.exports=a});var t1=E(function(t,e){"use strict";var r=tZ(),n=tX(),o=t0(),i=o&&o.isTypedArray,u=i?n(i):r;e.exports=u});var t2=E(function(t,e){"use strict";var r=function t(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]};e.exports=r});var t3=E(function(t,e){"use strict";var r=function t(t,e,r){var i=t[e];(!(u.call(t,e)&&o(i,r))||r===void 0&&!(e in t))&&n(t,e,r)};var n=tS(),o=U(),i=Object.prototype,u=i.hasOwnProperty;e.exports=r});var t4=E(function(t,e){"use strict";var r=function t(t,e,r,i){var u=!r;r||(r={});for(var a=-1,s=e.length;++a<s;){var c=e[a],l=i?i(r[c],t[c],c,r,t):void 0;l===void 0&&(l=t[c]),u?o(r,c,l):n(r,c,l)}return r};var n=t3(),o=tS();e.exports=r});var t6=E(function(t,e){"use strict";var r=function t(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n};e.exports=r});var t8=E(function(t,e){"use strict";var r=function t(t,e){var r=typeof t==="undefined"?"undefined":T(t);return e=e!==null&&e!==void 0?e:n,!!e&&(r=="number"||r!="symbol"&&o.test(t))&&t>-1&&t%1==0&&t<e};var n=9007199254740991,o=/^(?:0|[1-9]\d*)$/;e.exports=r});var t7=E(function(t,e){"use strict";var r=function t(t,e){var r=i(t),c=!r&&o(t),f=!r&&!c&&u(t),v=!r&&!c&&!f&&s(t),p=r||c||f||v,h=p?n(t.length,String):[],y=h.length;for(var d in t)(e||l.call(t,d))&&!(p&&(d=="length"||f&&(d=="offset"||d=="parent")||v&&(d=="buffer"||d=="byteLength"||d=="byteOffset")||a(d,y)))&&h.push(d);return h};var n=t6(),o=tM(),i=tL(),u=tQ(),a=t8(),s=t1(),c=Object.prototype,l=c.hasOwnProperty;e.exports=r});var t5=E(function(t,e){"use strict";var r=function t(t){var e=[];if(t!=null)for(var r in Object(t))e.push(r);return e};e.exports=r});var t9=E(function(t,e){"use strict";var r=function t(t){if(!n(t))return i(t);var e=o(t),r=[];for(var u in t)u=="constructor"&&(e||!a.call(t,u))||r.push(u);return r};var n=te(),o=tV(),i=t5(),u=Object.prototype,a=u.hasOwnProperty;e.exports=r});var et=E(function(t,e){"use strict";var r=function t(t){return i(t)?n(t,!0):o(t)};var n=t7(),o=t9(),i=tW();e.exports=r});var ee=E(function(t,e){"use strict";var r=function t(t){return n(t,o(t))};var n=t4(),o=et();e.exports=r});var er=E(function(t,e){"use strict";var r=function t(t,e,r,b,m,x,k){var O=d(t,r),_=d(e,r),w=k.get(_);if(w){n(t,r,w);return}var R=x?x(O,_,r+"",t,e,k):void 0,E=R===void 0;if(E){var j=c(_),S=!j&&f(_),A=!j&&!S&&y(_);R=_,j||S||A?c(O)?R=O:l(O)?R=u(O):S?(E=!1,R=o(_,!0)):A?(E=!1,R=i(_,!0)):R=[]:h(_)||s(_)?(R=O,s(O)?R=g(O):(!p(O)||v(O))&&(R=a(_))):E=!1}E&&(k.set(_,R),m(R,_,b,x,k),k.delete(_)),n(t,r,R)};var n=tA(),o=tN(),i=tq(),u=tI(),a=tF(),s=tM(),c=tL(),l=tJ(),f=tQ(),v=tr(),p=te(),h=tY(),y=t1(),d=t2(),g=ee();e.exports=r});var en=E(function(t,e){"use strict";var r=tE(),n=tA(),o=tP(),i=er(),u=te(),a=et(),s=t2();function c(t,e,l,f,v){t!==e&&o(e,function(o,a){if(v||(v=new r),u(o))i(t,e,a,l,c,f,v);else{var p=f?f(s(t,a),o,a+"",t,e,v):void 0;p===void 0&&(p=o),n(t,a,p)}},a)}e.exports=c});var eo=E(function(t,e){"use strict";var r=function t(t){return t};e.exports=r});var ei=E(function(t,e){"use strict";var r=function t(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)};e.exports=r});var eu=E(function(t,e){"use strict";var r=function t(t,e,r){return e=o(e===void 0?t.length-1:e,0),function(){for(var i=arguments,u=-1,a=o(i.length-e,0),s=Array(a);++u<a;)s[u]=i[e+u];u=-1;for(var c=Array(e+1);++u<e;)c[u]=i[u];return c[e]=r(s),n(t,this,c)}};var n=ei(),o=Math.max;e.exports=r});var ea=E(function(t,e){"use strict";var r=function t(t){return function(){return t}};e.exports=r});var es=E(function(t,e){"use strict";var r=ea(),n=tj(),o=eo(),i=n?function t(t,e){return n(t,"toString",{configurable:!0,enumerable:!1,value:r(e),writable:!0})}:o;e.exports=i});var ec=E(function(t,e){"use strict";var r=function t(t){var e=0,r=0;return function(){var u=i(),a=o-(u-r);if(r=u,a>0){if(++e>=n)return arguments[0]}else e=0;return t.apply(void 0,arguments)}};var n=800,o=16,i=Date.now;e.exports=r});var el=E(function(t,e){"use strict";var r=es(),n=ec(),o=n(r);e.exports=o});var ef=E(function(t,e){"use strict";var r=function t(t,e){return i(o(t,e,n),t+"")};var n=eo(),o=eu(),i=el();e.exports=r});var ev=E(function(t,e){"use strict";var r=function t(t,e,r){if(!u(r))return!1;var a=typeof e==="undefined"?"undefined":T(e);return(a=="number"?o(r)&&i(e,r.length):a=="string"&&e in r)?n(r[e],t):!1};var n=U(),o=tW(),i=t8(),u=te();e.exports=r});var ep=E(function(t,e){"use strict";var r=function t(t){return n(function(e,r){var n=-1,i=r.length,u=i>1?r[i-1]:void 0,a=i>2?r[2]:void 0;for(u=t.length>3&&typeof u=="function"?(i--,u):void 0,a&&o(r[0],r[1],a)&&(u=i<3?void 0:u,i=1),e=Object(e);++n<i;){var s=r[n];s&&t(e,s,n,u)}return e})};var n=ef(),o=ev();e.exports=r});var eh=E(function(t,e){"use strict";var r=en(),n=ep(),o=n(function(t,e,n){r(t,e,n)});e.exports=o});var ey=E(function(t,e){"use strict";var r=function t(t){return(typeof t==="undefined"?"undefined":T(t))=="symbol"||o(t)&&n(t)==i};var n=tt(),o=tD(),i="[object Symbol]";e.exports=r});var ed=E(function(t,e){"use strict";var r=function t(t,e){if(n(t))return!1;var r=typeof t==="undefined"?"undefined":T(t);return r=="number"||r=="symbol"||r=="boolean"||t==null||o(t)?!0:u.test(t)||!i.test(t)||e!=null&&t in Object(e)};var n=tL(),o=ey(),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,u=/^\w*$/;e.exports=r});var eg=E(function(t,e){"use strict";var r=tw(),n="Expected a function";function o(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(n);var i=function r(){var r=arguments,n=e?e.apply(this,r):r[0],o=i.cache;if(o.has(n))return o.get(n);var u=t.apply(this,r);return i.cache=o.set(n,u)||o,u};return i.cache=new(o.Cache||r),i}o.Cache=r;e.exports=o});var eb=E(function(t,e){"use strict";var r=function t(t){var e=n(t,function(t){return r.size===o&&r.clear(),t}),r=e.cache;return e};var n=eg(),o=500;e.exports=r});var em=E(function(t,e){"use strict";var r=eb(),n=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,i=r(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(n,function(t,r,n,i){e.push(n?i.replace(o,"$1"):r||t)}),e});e.exports=i});var ex=E(function(t,e){"use strict";var r=function t(t,e){for(var r=-1,n=t==null?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o};e.exports=r});var ek=E(function(t,e){"use strict";var r=Y(),n=ex(),o=tL(),i=ey(),u=1/0,a=r?r.prototype:void 0,s=a?a.toString:void 0;function c(t){if(typeof t=="string")return t;if(o(t))return n(t,c)+"";if(i(t))return s?s.call(t):"";var e=t+"";return e=="0"&&1/t==-u?"-0":e}e.exports=c});var eO=E(function(t,e){"use strict";var r=function t(t){return t==null?"":n(t)};var n=ek();e.exports=r});var e_=E(function(t,e){"use strict";var r=function t(t,e){return n(t)?t:o(t,e)?[t]:i(u(t))};var n=tL(),o=ed(),i=em(),u=eO();e.exports=r});var ew=E(function(t,e){"use strict";var r=function t(t){if(typeof t=="string"||n(t))return t;var e=t+"";return e=="0"&&1/t==-o?"-0":e};var n=ey(),o=1/0;e.exports=r});var eR=E(function(t,e){"use strict";var r=function t(t,e){e=n(e,t);for(var r=0,i=e.length;t!=null&&r<i;)t=t[o(e[r++])];return r&&r==i?t:void 0};var n=e_(),o=ew();e.exports=r});var eE=E(function(t,e){"use strict";var r=function t(t,e,r,s){if(!u(t))return t;e=o(e,t);for(var c=-1,l=e.length,f=l-1,v=t;v!=null&&++c<l;){var p=a(e[c]),h=r;if(p==="__proto__"||p==="constructor"||p==="prototype")return t;if(c!=f){var y=v[p];h=s?s(y,p,v):void 0,h===void 0&&(h=u(y)?y:i(e[c+1])?[]:{})}n(v,p,h),v=v[p]}return t};var n=t3(),o=e_(),i=t8(),u=te(),a=ew();e.exports=r});var ej=E(function(t,e){"use strict";var r=function t(t,e,r){for(var u=-1,a=e.length,s={};++u<a;){var c=e[u],l=n(t,c);r(l,c)&&o(s,i(c,t),l)}return s};var n=eR(),o=eE(),i=e_();e.exports=r});var eS=E(function(t,e){"use strict";var r=function t(t,e){return t!=null&&e in Object(t)};e.exports=r});var eA=E(function(t,e){"use strict";var r=function t(t,e,r){e=n(e,t);for(var c=-1,l=e.length,f=!1;++c<l;){var v=s(e[c]);if(!(f=t!=null&&r(t,v)))break;t=t[v]}return f||++c!=l?f:(l=t==null?0:t.length,!!l&&a(l)&&u(v,l)&&(i(t)||o(t)))};var n=e_(),o=tM(),i=tL(),u=t8(),a=t$(),s=ew();e.exports=r});var eT=E(function(t,e){"use strict";var r=function t(t,e){return t!=null&&o(t,e,n)};var n=eS(),o=eA();e.exports=r});var eP=E(function(t,e){"use strict";var r=function t(t,e){return n(t,e,function(e,r){return o(t,r)})};var n=ej(),o=eT();e.exports=r});var eN=E(function(t,e){"use strict";var r=function t(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t};e.exports=r});var eH=E(function(t,e){"use strict";var r=function t(t){return i(t)||o(t)||!!(u&&t&&t[u])};var n=Y(),o=tM(),i=tL(),u=n?n.isConcatSpreadable:void 0;e.exports=r});var eC=E(function(t,e){"use strict";var r=eN(),n=eH();function o(t,e,i,u,a){var s=-1,c=t.length;for(i||(i=n),a||(a=[]);++s<c;){var l=t[s];e>0&&i(l)?e>1?o(l,e-1,i,u,a):r(a,l):u||(a[a.length]=l)}return a}e.exports=o});var eq=E(function(t,e){"use strict";var r=function t(t){var e=t==null?0:t.length;return e?n(t,1):[]};var n=eC();e.exports=r});var eI=E(function(t,e){"use strict";var r=function t(t){return i(o(t,void 0,n),t+"")};var n=eq(),o=eu(),i=el();e.exports=r});var ez=E(function(t,e){"use strict";var r=eP(),n=eI(),o=n(function(t,e){return t==null?{}:r(t,e)});e.exports=o});var eU={};S(eU,{ABORT_ERROR_ID:function(){return eM},AbortError:function(){return eL},AbortPlugin:function(){return e$},AsyncExecutor:function(){return eD},Base64Serializer:function(){return rr},Executor:function(){return eB},ExecutorError:function(){return eV},FetchAbortPlugin:function(){return e4},FetchURLPlugin:function(){return e6},JSONSerializer:function(){return re},KeyStorage:function(){return rn},ObjectStorage:function(){return ro},RequestAdapterAxios:function(){return e3},RequestAdapterFetch:function(){return e2},RequestError:function(){return eY},RequestErrorID:function(){return eZ},RequestManager:function(){return e7},RequestScheduler:function(){return e5},RequestTransaction:function(){return e9},RetryPlugin:function(){return eQ},SyncExecutor:function(){return eK},SyncStorage:function(){return ru}});var eB=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};u(this,t);this.config=e;this.plugins=[]}c(t,[{key:"use",value:function t(t){if((typeof t==="undefined"?"undefined":T(t))!="object"||t===null)throw new Error("Plugin must be an object");if(this.plugins.find(function(e){return e===t||e.pluginName===t.pluginName||e.constructor===t.constructor})&&t.onlyOne){console.warn("Plugin ".concat(t.pluginName," is already used, skip adding"));return}this.plugins.push(t)}}]);return t}();var eV=function t(t){p(r,t);var e=C(r);function r(t,o){u(this,r);var i;i=e.call(this,h(o,Error)?o.message:o||t);i.id=t;h(o,Error)&&"stack"in o&&(i.stack=o.stack),Object.setPrototypeOf(n(i),(h(this,r)?this.constructor:void 0).prototype);return i}return r}(N(Error));var eF=function(){function t(){u(this,t)}c(t,[{key:"resetHooksRuntimes",value:function t(t){t.pluginName="",t.hookName="",t.returnValue=void 0,t.returnBreakChain=!1,t.times=0,t.breakChain=!1,t.index=void 0}},{key:"reset",value:function t(t){this.resetHooksRuntimes(t.hooksRuntimes),t.returnValue=void 0,t.error=void 0}},{key:"shouldSkipPluginHook",value:function t(t,e,r){return typeof t[e]!="function"||typeof t.enabled=="function"&&!t.enabled(e,r)}},{key:"runtimes",value:function t(t,e,r,n){t.hooksRuntimes.pluginName=e.pluginName,t.hooksRuntimes.hookName=r,t.hooksRuntimes.times=(t.hooksRuntimes.times||0)+1,t.hooksRuntimes.index=n}},{key:"runtimeReturnValue",value:function t(t,e){t.hooksRuntimes.returnValue=e}},{key:"shouldBreakChain",value:function t(t){var e;return!!((e=t.hooksRuntimes)===null||e===void 0?void 0:e.breakChain)}},{key:"shouldBreakChainOnReturn",value:function t(t){var e;return!!((e=t.hooksRuntimes)===null||e===void 0?void 0:e.returnBreakChain)}},{key:"setError",value:function t(t,e){t.error=e}}]);return t}();var eD=function(t){p(r,t);var e=C(r);function r(){u(this,r);var t;t=e.call.apply(e,[this].concat(Array.prototype.slice.call(arguments)));t.contextHandler=new eF;return t}c(r,[{key:"runHook",value:function t(t,e,r){for(var n=arguments.length,o=new Array(n>3?n-3:0),u=3;u<n;u++){o[u-3]=arguments[u]}var a=this;return i(function(){var n,i,u,s,c,f,v,p,h,y,d,g;return q(this,function(b){switch(b.label){case 0:n=-1,u=r||l({});a.contextHandler.resetHooksRuntimes(u.hooksRuntimes);s=true,c=false,f=undefined;b.label=1;case 1:b.trys.push([1,6,7,8]);v=t[Symbol.iterator]();b.label=2;case 2:if(!!(s=(p=v.next()).done))return[3,5];h=p.value;if(n++,a.contextHandler.shouldSkipPluginHook(h,e,u))return[3,4];if(a.contextHandler.shouldBreakChain(u))return[3,5];a.contextHandler.runtimes(u,h,e,n);return[4,(y=h)[e].apply(y,[u].concat(A(o)))];case 3:d=b.sent();if(d!==void 0&&(i=d,a.contextHandler.runtimeReturnValue(u,d),a.contextHandler.shouldBreakChainOnReturn(u)))return[2,i];b.label=4;case 4:s=true;return[3,2];case 5:return[3,8];case 6:g=b.sent();c=true;f=g;return[3,8];case 7:try{if(!s&&v.return!=null){v.return()}}finally{if(c){throw f}}return[7];case 8:return[2,i]}})})()}},{key:"runHooks",value:function t(t,e,r){for(var n=arguments.length,o=new Array(n>3?n-3:0),u=3;u<n;u++){o[u-3]=arguments[u]}var a=this;return i(function(){var n,i,u,s,c,l,f,v,p,h;return q(this,function(y){switch(y.label){case 0:n=Array.isArray(e)?e:[e];u=true,s=false,c=undefined;y.label=1;case 1:y.trys.push([1,6,7,8]);l=n[Symbol.iterator]();y.label=2;case 2:if(!!(u=(f=l.next()).done))return[3,5];v=f.value;return[4,a.runHook.apply(a,[t,v,r].concat(A(o)))];case 3:p=y.sent();if(p!==void 0&&(i=p),r&&a.contextHandler.shouldBreakChain(r))return[3,5];y.label=4;case 4:u=true;return[3,2];case 5:return[3,8];case 6:h=y.sent();s=true;c=h;return[3,8];case 7:try{if(!u&&l.return!=null){l.return()}}finally{if(s){throw c}}return[7];case 8:return[2,i]}})})()}},{key:"execNoError",value:function t(t,e){var r=this;return i(function(){var n;return q(this,function(o){switch(o.label){case 0:o.trys.push([0,2,,3]);return[4,r.exec(t,e)];case 1:return[2,o.sent()];case 2:n=o.sent();return[2,h(n,eV)?n:new eV("UNKNOWN_ASYNC_ERROR",n)];case 3:return[2]}})})()}},{key:"exec",value:function t(t,e){var r=e||t,n=e?t:void 0;if(typeof r!="function")throw new Error("Task must be a async function!");return this.run(n,r)}},{key:"runExec",value:function t(t,e){var r=this;return i(function(){var n,o,i;return q(this,function(u){switch(u.label){case 0:o=((n=r.config)===null||n===void 0?void 0:n.execHook)||"onExec";return[4,r.runHook(r.plugins,o,t,e)];case 1:u.sent();if(!t.hooksRuntimes.times)return[3,2];i=t.hooksRuntimes.returnValue;return[3,4];case 2:return[4,e(t)];case 3:i=u.sent();u.label=4;case 4:t.returnValue=i;return[2]}})})()}},{key:"run",value:function t(t,e){var r=this;return i(function(){var n,o,i,u,a,s;return q(this,function(c){switch(c.label){case 0:i=l(t),u=((n=r.config)===null||n===void 0?void 0:n.beforeHooks)||"onBefore",a=((o=r.config)===null||o===void 0?void 0:o.afterHooks)||"onSuccess";c.label=1;case 1:c.trys.push([1,5,7,8]);return[4,r.runHooks(r.plugins,u,i)];case 2:c.sent();return[4,r.runExec(i,e)];case 3:c.sent();return[4,r.runHooks(r.plugins,a,i)];case 4:return[2,(c.sent(),i.returnValue)];case 5:s=c.sent();r.contextHandler.setError(i,s);return[4,r.runHook(r.plugins,"onError",i)];case 6:throw c.sent(),i.hooksRuntimes.returnValue&&r.contextHandler.setError(i,i.hooksRuntimes.returnValue),h(i.error,eV)?i.error:new eV("UNKNOWN_ASYNC_ERROR",i.error);case 7:r.contextHandler.reset(i);return[7];case 8:return[2]}})})()}}]);return r}(eB);var eK=function(t){p(r,t);var e=C(r);function r(){u(this,r);var t;t=e.call.apply(e,[this].concat(Array.prototype.slice.call(arguments)));t.contextHandler=new eF;return t}c(r,[{key:"runHook",value:function t(t,e,r){for(var n=arguments.length,o=new Array(n>3?n-3:0),i=3;i<n;i++){o[i-3]=arguments[i]}var u=-1,a,s=r||l({});this.contextHandler.resetHooksRuntimes(s.hooksRuntimes);var c=true,f=false,v=undefined;try{for(var p=t[Symbol.iterator](),h;!(c=(h=p.next()).done);c=true){var y=h.value;var d;if(u++,this.contextHandler.shouldSkipPluginHook(y,e,s))continue;if(this.contextHandler.shouldBreakChain(s))break;this.contextHandler.runtimes(s,y,e,u);var g=(d=y)[e].apply(d,[s].concat(A(o)));if(g!==void 0&&(a=g,this.contextHandler.runtimeReturnValue(s,g),this.contextHandler.shouldBreakChainOnReturn(s)))return a}}catch(t){f=true;v=t}finally{try{if(!c&&p.return!=null){p.return()}}finally{if(f){throw v}}}return a}},{key:"runHooks",value:function t(t,e,r){for(var n=arguments.length,o=new Array(n>3?n-3:0),i=3;i<n;i++){o[i-3]=arguments[i]}var u=Array.isArray(e)?e:[e],a;var s=true,c=false,l=undefined;try{for(var f=u[Symbol.iterator](),v;!(s=(v=f.next()).done);s=true){var p=v.value;var h=this.runHook.apply(this,[t,p,r].concat(A(o)));if(h!==void 0&&(a=h),r&&this.contextHandler.shouldBreakChain(r))break}}catch(t){c=true;l=t}finally{try{if(!s&&f.return!=null){f.return()}}finally{if(c){throw l}}}return a}},{key:"execNoError",value:function t(t,e){try{return this.exec(t,e)}catch(t){return h(t,eV)?t:new eV("UNKNOWN_SYNC_ERROR",t)}}},{key:"exec",value:function t(t,e){var r=e||t,n=e?t:void 0;if(typeof r!="function")throw new Error("Task must be a function!");return this.run(n,r)}},{key:"runExec",value:function t(t,e){var r;var n=((r=this.config)===null||r===void 0?void 0:r.execHook)||"onExec";this.runHook(this.plugins,n,t,e),t.returnValue=t.hooksRuntimes.times?t.hooksRuntimes.returnValue:e(t)}},{key:"run",value:function t(t,e){var r,n;var o=l(t),i=((r=this.config)===null||r===void 0?void 0:r.beforeHooks)||"onBefore",u=((n=this.config)===null||n===void 0?void 0:n.afterHooks)||"onSuccess";try{return this.runHooks(this.plugins,i,o),this.runExec(o,e),this.runHooks(this.plugins,u,o),o.returnValue}catch(t){throw this.contextHandler.setError(o,t),this.runHook(this.plugins,"onError",o),o.hooksRuntimes.returnValue&&this.contextHandler.setError(o,o.hooksRuntimes.returnValue),h(o.error,eV)?o.error:new eV("UNKNOWN_SYNC_ERROR",o.error)}finally{this.contextHandler.reset(o)}}}]);return r}(eB);var eM="ABORT_ERROR",eL=function(t){p(r,t);var e=C(r);function r(t,n,o){u(this,r);var i;i=e.call(this,eM,t),i.abortId=n,i.timeout=o;return R(i)}c(r,[{key:"isTimeout",value:function t(){return this.timeout!==void 0&&this.timeout>0}},{key:"getDescription",value:function t(){var t=[];return this.abortId&&t.push("Request: ".concat(this.abortId)),this.isTimeout()&&t.push("Timeout: ".concat(this.timeout,"ms")),t.length>0?"".concat(this.message," (").concat(t.join(", "),")"):this.message}}]);return r}(eV),e$=function(){function t(e){u(this,t);this.pluginName="AbortPlugin";this.onlyOne=!0;this.requestCounter=0;this.controllers=new Map;this.timeouts=new Map;this.getConfig=(e===null||e===void 0?void 0:e.getConfig)||function(t){return t},this.logger=e===null||e===void 0?void 0:e.logger}c(t,[{key:"generateRequestKey",value:function t(t){var e=t.requestId,r=t.id;return e||r||"".concat(this.pluginName,"-").concat(++this.requestCounter)}},{key:"cleanup",value:function t(t){var e=typeof t=="string"?t:this.generateRequestKey(t),r=this.controllers.has(e),n=this.timeouts.has(e);if(r||n){var o;this.controllers.delete(e);var i=this.timeouts.get(e);i&&(clearTimeout(i),this.timeouts.delete(e)),(o=this.logger)===null||o===void 0?void 0:o.debug("[".concat(this.pluginName,"] cleanup: ").concat(e))}}},{key:"onBefore",value:function t(t){var e=this;var r;var n=this.getConfig(t.parameters),o=this.generateRequestKey(n),i=n.abortTimeout;if(this.controllers.has(o)&&((r=this.logger)===null||r===void 0?void 0:r.debug("[".concat(this.pluginName,"] aborting previous request: ").concat(o)),this.abort(o)),!n.signal){var u=new AbortController;if(this.controllers.set(o,u),n.signal=u.signal,i&&i>0){var a=setTimeout(function(){var t;var r=e.controllers.get(o);r&&(r.abort(new eL("The operation was aborted due to timeout",o,i)),(t=e.logger)===null||t===void 0?void 0:t.info("[".concat(e.pluginName,"] timeout abort: ").concat(o," (").concat(i,"ms)")),e.cleanup(o),typeof n.onAborted=="function"&&n.onAborted(O(x({},n),{onAborted:void 0})))},i);this.timeouts.set(o,a)}}}},{key:"onSuccess",value:function t(t){var e=t.parameters;if(e){var r=this.getConfig(e),n=this.generateRequestKey(r);this.cleanup(n)}}},{key:"onError",value:function e(e){var r=e.error,n=e.parameters;if(!n)return;var o=this.getConfig(n),i=this.generateRequestKey(o);if(t.isAbortError(r)){var u;var a=(u=this.controllers.get(i))===null||u===void 0?void 0:u.signal.reason;return this.cleanup(i),h(a,eL)?a:new eL((a===null||a===void 0?void 0:a.message)||(r===null||r===void 0?void 0:r.message)||"The operation was aborted",i)}else this.cleanup(i)}},{key:"abort",value:function t(t){var e;var r=typeof t=="string"?t:this.generateRequestKey(t),n=this.controllers.get(r);return n?(n.abort(new eL("The operation was aborted",r)),(e=this.logger)===null||e===void 0?void 0:e.info("[".concat(this.pluginName,"] manual abort: ").concat(r)),this.cleanup(r),typeof t!="string"&&typeof t.onAborted=="function"&&t.onAborted(O(x({},t),{onAborted:void 0})),!0):!1}},{key:"abortAll",value:function t(){var t;var e=this.controllers.size;e>0&&((t=this.logger)===null||t===void 0?void 0:t.debug("[".concat(this.pluginName,"] aborting all ").concat(e," requests"))),this.controllers.forEach(function(t,e){t.abort(new eL("All operations were aborted",e))}),this.controllers.clear(),this.timeouts.forEach(function(t){clearTimeout(t)}),this.timeouts.clear()}},{key:"createAbortPromise",value:function t(t){var e=function(){};return{promise:new Promise(function(r,n){if(t.aborted){n(t.reason||new eL("The operation was aborted"));return}var o=function(){n(t.reason||new eL("The operation was aborted"))};t.addEventListener("abort",o),e=function(){t.removeEventListener("abort",o)}}),cleanup:e}}},{key:"raceWithAbort",value:function t(t,e){if(!e)return t;var r=this.createAbortPromise(e),n=r.promise,o=r.cleanup;return Promise.race([t,n]).finally(function(){o()})}}],[{key:"isAbortError",value:function t(t){return h(t,eL)||h(t,Error)&&t.name==="AbortError"||h(t,eV)&&(t===null||t===void 0?void 0:t.id)===eM||h(t,DOMException)&&t.name==="AbortError"||h(t,Event)&&t.type==="abort"}}]);return t}();var eW=16,eJ=3,eG=function(){return!0},eQ=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};u(this,t);this.pluginName="RetryPlugin";this.onlyOne=!0;var r;this.options=O(x({retryDelay:1e3,useExponentialBackoff:!1,shouldRetry:eG},e),{maxRetries:Math.min(Math.max(1,(r=e.maxRetries)!==null&&r!==void 0?r:eJ),eW)})}c(t,[{key:"delay",value:function t(t){var e=this;return i(function(){var r;return q(this,function(n){r=e.options.useExponentialBackoff?e.options.retryDelay*Math.pow(2,t):e.options.retryDelay;return[2,new Promise(function(t){return setTimeout(t,r)})]})})()}},{key:"onExec",value:function t(t,e){var r=this;return i(function(){return q(this,function(n){return[2,r.options.maxRetries<1?e(t):r.retry(e,t,r.options,r.options.maxRetries)]})})()}},{key:"shouldRetry",value:function t(t){var e=t.error,r=t.retryCount;return r>0&&this.options.shouldRetry(e)}},{key:"retry",value:function t(t,e,r,n){var o=this;return i(function(){var i;return q(this,function(u){switch(u.label){case 0:u.trys.push([0,2,,4]);return[4,t(e)];case 1:return[2,u.sent()];case 2:i=u.sent();if(!o.shouldRetry({error:i,retryCount:n}))throw new eV("RETRY_ERROR","All ".concat(r.maxRetries," attempts failed: ").concat(i.message));return[4,o.delay(r.maxRetries-n)];case 3:return[2,(u.sent(),n--,o.retry(t,e,r,n))];case 4:return[2]}})})()}}]);return t}();var eY=function(t){p(r,t);var e=C(r);function r(){u(this,r);return e.apply(this,arguments)}return r}(eV),eZ=function(t){return t.REQUEST_ERROR="REQUEST_ERROR",t.ENV_FETCH_NOT_SUPPORT="ENV_FETCH_NOT_SUPPORT",t.FETCHER_NONE="FETCHER_NONE",t.RESPONSE_NOT_OK="RESPONSE_NOT_OK",t.ABORT_ERROR="ABORT_ERROR",t.URL_NONE="URL_NONE",t}(eZ||{});var eX=H(eh(),1),e0=H(ez(),1),e1=["cache","credentials","headers","integrity","keepalive","mode","priority","redirect","referrer","referrerPolicy","signal"],e2=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};u(this,t);if(!e.fetcher){if(typeof fetch!="function")throw new eV("ENV_FETCH_NOT_SUPPORT");e.fetcher=fetch}this.executor=new eD,this.config=e}c(t,[{key:"getConfig",value:function t(){return this.config}},{key:"usePlugin",value:function t(t){this.executor.use(t)}},{key:"request",value:function t(t){var e=this;return i(function(){var r,n,o,u,a;return q(this,function(s){r=e.getConfig(),n=(0,eX.default)({},r,t),o=n.fetcher,u=_(n,["fetcher"]);if(typeof o!="function")throw new eV("FETCHER_NONE");if(!u.url)throw new eV("URL_NONE");a=function(){var t=i(function(t){var r;return q(this,function(n){switch(n.label){case 0:return[4,o(e.parametersToRequest(t.parameters))];case 1:r=n.sent();return[2,e.toAdapterResponse(r,r,t.parameters)]}})});return function e(e){return t.apply(this,arguments)}}();return[2,e.executor.exec(u,a)]})})()}},{key:"parametersToRequest",value:function t(t){var e=t.url,r=e===void 0?"/":e,n=t.method,o=n===void 0?"GET":n,i=t.data,u=(0,e0.default)(t,e1);return new Request(r,Object.assign(u,{body:i,method:o.toUpperCase()}))}},{key:"toAdapterResponse",value:function t(t,e,r){return{data:t,status:e.status,statusText:e.statusText,headers:this.getResponseHeaders(e),config:r,response:e}}},{key:"getResponseHeaders",value:function t(t){var e={};return t.headers.forEach(function(t,r){e[r]=t}),e}}]);return t}();var e3=function(){function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};u(this,t);this.config=r;this.axiosInstance=e.create(r)}c(t,[{key:"getConfig",value:function t(){return this.config}},{key:"request",value:function t(t){var e=this;return i(function(){return q(this,function(r){return[2,e.axiosInstance.request(t)]})})()}}]);return t}();var e4=function(){function t(){u(this,t);this.pluginName="FetchAbortPlugin";this.onlyOne=!0;this.controllers=new Map}c(t,[{key:"generateRequestKey",value:function t(t){if(t.requestId)return t.requestId;var e=t.params?JSON.stringify(t.params):"",r=t.body?JSON.stringify(t.body):"";return"".concat(t.method||"GET","-").concat(t.url,"-").concat(e,"-").concat(r)}},{key:"onBefore",value:function t(t){var e=this.generateRequestKey(t.parameters);if(this.controllers.has(e)&&this.abort(t.parameters),!t.parameters.signal){var r=new AbortController;this.controllers.set(e,r),t.parameters.signal=r.signal}}},{key:"onSuccess",value:function t(t){var e=t.parameters;e&&this.controllers.delete(this.generateRequestKey(e))}},{key:"onError",value:function t(t){var e=t.error,r=t.parameters;if(this.isSameAbortError(e)&&r){var n=this.generateRequestKey(r),o=this.controllers.get(n);return this.controllers.delete(n),new eY("ABORT_ERROR",(o===null||o===void 0?void 0:o.signal.reason)||e)}}},{key:"isSameAbortError",value:function t(t){return h(t,Error)&&t.name==="AbortError"||h(t,DOMException)&&t.name==="AbortError"||h(t,Event)&&t.type==="abort"}},{key:"abort",value:function t(t){var e=typeof t=="string"?t:this.generateRequestKey(t),r=this.controllers.get(e);r&&(r.abort(new eY("ABORT_ERROR","The operation was aborted")),this.controllers.delete(e),typeof t!="string"&&typeof t.onAbort=="function"&&t.onAbort.call(t,t))}},{key:"abortAll",value:function t(){this.controllers.forEach(function(t){return t.abort()}),this.controllers.clear()}}]);return t}();var e6=function(){function t(){u(this,t);this.pluginName="FetchURLPlugin"}c(t,[{key:"isFullURL",value:function t(t){return t.startsWith("http://")||t.startsWith("https://")}},{key:"appendQueryParams",value:function t(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};var r=j(t.split("?"),2),n=r[0],o=r[1],i=o===void 0?"":o;i.split("&").forEach(function(t){var r=j(t.split("="),2),n=r[0],o=r[1];n&&o&&(e[n]=o)});var u=Object.entries(e).map(function(t){var e=j(t,2),r=e[0],n=e[1];return"".concat(r,"=").concat(n)}).join("&");return[n,u].join("?")}},{key:"connectBaseURL",value:function t(t,e){return"".concat(e,"/").concat(t)}},{key:"buildUrl",value:function t(t){var e=t.url,r=e===void 0?"":e,n=t.baseURL,o=n===void 0?"":n,i=t.params;if(!this.isFullURL(r)){var u=r.startsWith("/")?r.slice(1):r,a=o.endsWith("/")?o.slice(0,-1):o;r=this.connectBaseURL(u,a)}return i&&Object.keys(i).length>0&&(r=this.appendQueryParams(r,i)),r}},{key:"onBefore",value:function t(t){var e=t.parameters;e.url=this.buildUrl(e)}},{key:"onSuccess",value:function t(t){var e=t.returnValue;var r=e;if(!r.response.ok){var n=new eY("RESPONSE_NOT_OK","Request failed with status: ".concat(r.status," ").concat(r.statusText));throw n.response=r.response,n}}},{key:"onError",value:function t(t){var e=t.error;return h(e,eY)?e:new eY("REQUEST_ERROR",e)}}]);return t}();var e8=H(eh(),1),e7=function(){function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new eD;u(this,t);this.adapter=e;this.executor=r}c(t,[{key:"usePlugin",value:function t(t){var e=this;return Array.isArray(t)?t.forEach(function(t){return e.executor.use(t)}):this.executor.use(t),this}},{key:"request",value:function t(t){var e=this;var r=(0,e8.default)({},this.adapter.getConfig(),t);return this.executor.exec(r,function(t){return e.adapter.request(t.parameters)})}}]);return t}();var e5=function(t){p(r,t);var e=C(r);function r(){u(this,r);return e.apply(this,arguments)}c(r,[{key:"request",value:function t(t){return f(v(r.prototype),"request",this).call(this,t)}},{key:"get",value:function t(t,e){var r=this;return i(function(){return q(this,function(n){return[2,r.request(O(x({url:t},e),{method:"GET"}))]})})()}},{key:"post",value:function t(t,e){var r=this;return i(function(){return q(this,function(n){return[2,r.request(O(x({url:t},e),{method:"POST"}))]})})()}},{key:"put",value:function t(t,e){var r=this;return i(function(){return q(this,function(n){return[2,r.request(O(x({url:t},e),{method:"PUT"}))]})})()}},{key:"delete",value:function t(t,e){var r=this;return i(function(){return q(this,function(n){return[2,r.request(O(x({url:t},e),{method:"DELETE"}))]})})()}},{key:"patch",value:function t(t,e){var r=this;return i(function(){return q(this,function(n){return[2,r.request(O(x({url:t},e),{method:"PATCH"}))]})})()}},{key:"head",value:function t(t,e){var r=this;return i(function(){return q(this,function(n){return[2,r.request(O(x({url:t},e),{method:"HEAD"}))]})})()}},{key:"options",value:function t(t,e){var r=this;return i(function(){return q(this,function(n){return[2,r.request(O(x({url:t},e),{method:"OPTIONS"}))]})})()}},{key:"trace",value:function t(t,e){var r=this;return i(function(){return q(this,function(n){return[2,r.request(O(x({url:t},e),{method:"TRACE"}))]})})()}},{key:"connect",value:function t(t,e){var r=this;return i(function(){return q(this,function(n){return[2,r.request(O(x({url:t},e),{method:"CONNECT"}))]})})()}}]);return r}(e7);var e9=function(t){p(r,t);var e=C(r);function r(){u(this,r);return e.apply(this,arguments)}c(r,[{key:"request",value:function t(t){return f(v(r.prototype),"request",this).call(this,t)}},{key:"get",value:function t(t,e){return this.request(O(x({},e),{url:t,method:"GET"}))}},{key:"post",value:function t(t,e,r){return this.request(O(x({},r),{url:t,method:"POST",data:e}))}},{key:"put",value:function t(t,e,r){return this.request(O(x({},r),{url:t,method:"PUT",data:e}))}},{key:"delete",value:function t(t,e){return this.request(O(x({},e),{url:t,method:"DELETE"}))}},{key:"patch",value:function t(t,e,r){return this.request(O(x({},r),{url:t,method:"PATCH",data:e}))}}]);return r}(e7);var rt;rt=Symbol.toStringTag;var re=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};u(this,t);this.options=e;this[rt]="JSONSerializer"}c(t,[{key:"createReplacer",value:function t(t){return Array.isArray(t)?t:t===null?function(t,e){return typeof e=="string"?e.replace(/\r\n/g,"\n"):e}:typeof t=="function"?function(e,r){var n=typeof r=="string"?r.replace(/\r\n/g,"\n"):r;return t.call(this,e,n)}:function(t,e){return typeof e=="string"?e.replace(/\r\n/g,"\n"):e}}},{key:"stringify",value:function t(t,e,r){try{var n=this.createReplacer(e);return Array.isArray(n)?JSON.stringify(t,n,r):JSON.stringify(t,n,r!==null&&r!==void 0?r:this.options.pretty?this.options.indent||2:void 0)}catch(t){throw h(t,TypeError)&&t.message.includes("circular")?new TypeError("Cannot stringify data with circular references"):t}}},{key:"parse",value:function t(t,e){return JSON.parse(t,e)}},{key:"serialize",value:function t(t){return this.stringify(t,this.options.replacer||null,this.options.pretty?this.options.indent||2:void 0)}},{key:"deserialize",value:function t(t,e){try{return this.parse(t)}catch(t){return e}}},{key:"serializeArray",value:function t(t){return"["+t.map(function(t){return JSON.stringify(t)}).join(",")+"]"}}]);return t}();var rr=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};u(this,t);this.options=e}c(t,[{key:"isNodeEnvironment",value:function t(){return(typeof process==="undefined"?"undefined":T(process))<"u"&&process.versions&&!!process.versions.node}},{key:"isValidBase64",value:function t(t){try{if(!/^[A-Za-z0-9+/\-_]*={0,2}$/.test(t))return!1;var e=this.options.urlSafe?this.makeUrlUnsafe(t):t;return e.length%4!==0?!1:(this.isNodeEnvironment()?Buffer.from(e,"base64").toString("utf8"):atob(e),!0)}catch(t){return!1}}},{key:"serialize",value:function t(t){try{var e;if(this.isNodeEnvironment())e=Buffer.from(t,"utf8").toString("base64");else{var r=new TextEncoder().encode(t),n=Array.from(r,function(t){return String.fromCharCode(t)}).join("");e=btoa(n)}return this.options.urlSafe?this.makeUrlSafe(e):e}catch(t){return""}}},{key:"deserialize",value:function t(t,e){try{if(typeof t!="string")return e!==null&&e!==void 0?e:"";if(t.length===0)return"";if(!this.isValidBase64(t))return e!==null&&e!==void 0?e:"";var r=t;if(this.options.urlSafe&&(r=this.makeUrlUnsafe(t)),this.isNodeEnvironment())return Buffer.from(r,"base64").toString("utf8");{var n=atob(r),o=new Uint8Array(n.length);for(var i=0;i<n.length;i++)o[i]=n.charCodeAt(i);return new TextDecoder().decode(o)}}catch(t){return e!==null&&e!==void 0?e:""}}},{key:"makeUrlSafe",value:function t(t){return t.replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}},{key:"makeUrlUnsafe",value:function t(t){for(t=t.replace(/-/g,"+").replace(/_/g,"/");t.length%4;)t+="=";return t}}]);return t}();var rn=function(){function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};u(this,t);this.key=e;this.options=r;try{var n;var o=(n=r.storage)===null||n===void 0?void 0:n.getItem(e);this.value=o!==null&&o!==void 0?o:null}catch(t){this.value=null}}c(t,[{key:"mergeOptions",value:function t(t){return x({},this.options,t)}},{key:"getKey",value:function t(){return this.key}},{key:"getValue",value:function t(){return this.value}},{key:"get",value:function t(t){var e=this.mergeOptions(t),r=e.storage,n=_(e,["storage"]);if(this.value!=null)return this.value;if(r){var o=r.getItem(this.key,void 0,n);return o==null?(this.remove(),null):(this.value=o,o)}return this.value}},{key:"set",value:function t(t,e){var r=this.mergeOptions(e),n=r.storage,o=_(r,["storage"]);this.value=t,n&&n.setItem(this.key,t,o)}},{key:"remove",value:function t(t){var e=this.mergeOptions(t),r=e.storage,n=_(e,["storage"]);this.value=null,r===null||r===void 0?void 0:r.removeItem(this.key,n)}}]);return t}();var ro=function(){function t(e){u(this,t);this.serializer=e;this.store=new Map}c(t,[{key:"length",get:function t(){return this.store.size}},{key:"setItem",value:function t(t,e,r){var n={key:t,value:e!==null&&e!==void 0?e:null};typeof(r===null||r===void 0?void 0:r.expires)=="number"&&r.expires>0&&(n.expires=r.expires);var o=this.serializer?this.serializer.serialize(n):n;return this.store.set(t,o),o}},{key:"getItem",value:function t(t,e){var r=this.store.get(t),n=e!==null&&e!==void 0?e:null;if(!r)return n;var o=this.serializer?this.serializer.deserialize(r,n):r;return this.getRawValue(o,n)}},{key:"getRawValue",value:function t(t,e){var r,n;return this.isStorageValue(t)?this.isExpired(t)?(this.removeItem(t.key),e!==null&&e!==void 0?e:null):(r=t===null||t===void 0?void 0:t.value)!==null&&r!==void 0?r:e:(n=t!==null&&t!==void 0?t:e)!==null&&n!==void 0?n:null}},{key:"removeItem",value:function t(t){this.store.delete(t)}},{key:"clear",value:function t(){this.store.clear()}},{key:"isExpired",value:function t(t){return typeof t.expires=="number"&&t.expires<Date.now()&&t.expires>0}},{key:"isStorageValue",value:function t(t){return(typeof t==="undefined"?"undefined":T(t))=="object"&&t!==null&&"key"in t&&"value"in t}},{key:"getSerializer",value:function t(){return this.serializer}}]);return t}();var ri={setItem:{serialize:function(e,r){return(t=e).serialize.apply(t,A(r))},encrypt:function(t,r){return(e=t).encrypt.apply(e,A(r))},storage:function(t,e){return(r=t).setItem.apply(r,A(e))}},getItem:{serialize:function(t,e){return(o=t).deserialize.apply(o,A(e))},encrypt:function(t,e){return(a=t).decrypt.apply(a,A(e))},storage:function(t,e){return(s=t).getItem.apply(s,A(e))}}},ru=function(){function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];u(this,t);this.storage=e;this.pipes=(Array.isArray(r)?r:[r]).map(function(t){return y(t)}).filter(function(t){return t!=null})}c(t,[{key:"length",get:function t(){return this.storage.length}},{key:"setItem",value:function t(t,e,r){var n=e;var o=true,i=false,u=undefined;try{for(var a=this.pipes[Symbol.iterator](),s;!(o=(s=a.next()).done);o=true){var c=s.value;var l=c.type,f=c.pipe;if(l==="storage")f.setItem(t,n,r);else{var v=ri.setItem[l](f,[n]);v!=null&&(n=v)}}}catch(t){i=true;u=t}finally{try{if(!o&&a.return!=null){a.return()}}finally{if(i){throw u}}}this.storage.setItem(t,n,r)}},{key:"getItem",value:function t(t,e,r){var n=this.storage.getItem(t,e,r);if(n==null){var o=A(this.pipes).reverse();var i=true,u=false,a=undefined;try{for(var s=o[Symbol.iterator](),c;!(i=(c=s.next()).done);i=true){var l=c.value;var f=l.type,v=l.pipe;if(f!=="storage")continue;var p=ri.getItem[f](v,[t,n,r]);if(p!=null){n=p;break}}}catch(t){u=true;a=t}finally{try{if(!i&&s.return!=null){s.return()}}finally{if(u){throw a}}}}if(n==null)return e!==null&&e!==void 0?e:null;var h=A(this.pipes).reverse();var y=true,d=false,g=undefined;try{for(var b=h[Symbol.iterator](),m;!(y=(m=b.next()).done);y=true){var x=m.value;var k=x.type,O=x.pipe;k!=="storage"&&(n=ri.getItem[k](O,[n]))}}catch(t){d=true;g=t}finally{try{if(!y&&b.return!=null){b.return()}}finally{if(d){throw g}}}return n!==null&&this.storage.getRawValue&&(n=this.storage.getRawValue(n,r)),n!==null&&n!==void 0?n:null}},{key:"removeItem",value:function t(t,e){this.storage.removeItem(t,e),this.pipes.filter(function(t){return t.type==="storage"}).forEach(function(r){r.pipe.removeItem(t,e)})}},{key:"clear",value:function t(){this.storage.clear(),this.pipes.filter(function(t){return t.type==="storage"}).forEach(function(t){t.pipe.clear()})}}]);return t}();return I(eU)}();
|
package/dist/index.js
CHANGED
|
@@ -5914,20 +5914,29 @@ var Base64Serializer = /*#__PURE__*/ function() {
|
|
|
5914
5914
|
]);
|
|
5915
5915
|
return Base64Serializer;
|
|
5916
5916
|
}();
|
|
5917
|
-
// src/storage/
|
|
5918
|
-
var
|
|
5917
|
+
// src/storage/impl/KeyStorage.ts
|
|
5918
|
+
var KeyStorage = /*#__PURE__*/ function() {
|
|
5919
5919
|
"use strict";
|
|
5920
|
-
function
|
|
5920
|
+
function KeyStorage(key) {
|
|
5921
5921
|
var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
5922
|
-
_class_call_check(this,
|
|
5923
|
-
var _options_storage;
|
|
5922
|
+
_class_call_check(this, KeyStorage);
|
|
5924
5923
|
this.key = key;
|
|
5925
5924
|
this.options = options;
|
|
5926
|
-
|
|
5927
|
-
|
|
5928
|
-
|
|
5925
|
+
try {
|
|
5926
|
+
var _options_storage;
|
|
5927
|
+
var localValue = (_options_storage = options.storage) === null || _options_storage === void 0 ? void 0 : _options_storage.getItem(key);
|
|
5928
|
+
this.value = localValue !== null && localValue !== void 0 ? localValue : null;
|
|
5929
|
+
} catch (e) {
|
|
5930
|
+
this.value = null;
|
|
5931
|
+
}
|
|
5929
5932
|
}
|
|
5930
|
-
_create_class(
|
|
5933
|
+
_create_class(KeyStorage, [
|
|
5934
|
+
{
|
|
5935
|
+
key: "mergeOptions",
|
|
5936
|
+
value: function mergeOptions(options) {
|
|
5937
|
+
return _object_spread({}, this.options, options);
|
|
5938
|
+
}
|
|
5939
|
+
},
|
|
5931
5940
|
{
|
|
5932
5941
|
key: "getKey",
|
|
5933
5942
|
value: function getKey() {
|
|
@@ -5937,31 +5946,7 @@ var KeyStorageInterface = /*#__PURE__*/ function() {
|
|
|
5937
5946
|
{
|
|
5938
5947
|
key: "getValue",
|
|
5939
5948
|
value: function getValue() {
|
|
5940
|
-
return this.
|
|
5941
|
-
}
|
|
5942
|
-
}
|
|
5943
|
-
]);
|
|
5944
|
-
return KeyStorageInterface;
|
|
5945
|
-
}();
|
|
5946
|
-
// src/storage/impl/KeyStorage.ts
|
|
5947
|
-
var KeyStorage = /*#__PURE__*/ function(KeyStorageInterface) {
|
|
5948
|
-
"use strict";
|
|
5949
|
-
_inherits(KeyStorage, KeyStorageInterface);
|
|
5950
|
-
var _super = _create_super(KeyStorage);
|
|
5951
|
-
function KeyStorage() {
|
|
5952
|
-
_class_call_check(this, KeyStorage);
|
|
5953
|
-
var _this;
|
|
5954
|
-
_this = _super.call.apply(_super, [
|
|
5955
|
-
this
|
|
5956
|
-
].concat(Array.prototype.slice.call(arguments)));
|
|
5957
|
-
_this.value = null;
|
|
5958
|
-
return _this;
|
|
5959
|
-
}
|
|
5960
|
-
_create_class(KeyStorage, [
|
|
5961
|
-
{
|
|
5962
|
-
key: "mergeOptions",
|
|
5963
|
-
value: function mergeOptions(options) {
|
|
5964
|
-
return _object_spread({}, this.options, options);
|
|
5949
|
+
return this.value;
|
|
5965
5950
|
}
|
|
5966
5951
|
},
|
|
5967
5952
|
{
|
|
@@ -6009,7 +5994,7 @@ var KeyStorage = /*#__PURE__*/ function(KeyStorageInterface) {
|
|
|
6009
5994
|
}
|
|
6010
5995
|
]);
|
|
6011
5996
|
return KeyStorage;
|
|
6012
|
-
}(
|
|
5997
|
+
}();
|
|
6013
5998
|
// src/storage/impl/ObjectStorage.ts
|
|
6014
5999
|
var ObjectStorage = /*#__PURE__*/ function() {
|
|
6015
6000
|
"use strict";
|
|
@@ -6468,4 +6453,4 @@ var SyncStorage = /*#__PURE__*/ function() {
|
|
|
6468
6453
|
]);
|
|
6469
6454
|
return SyncStorage;
|
|
6470
6455
|
}();
|
|
6471
|
-
export { ABORT_ERROR_ID, AbortError, AbortPlugin, AsyncExecutor, Base64Serializer, Executor, ExecutorError, FetchAbortPlugin, FetchURLPlugin, JSONSerializer, KeyStorage,
|
|
6456
|
+
export { ABORT_ERROR_ID, AbortError, AbortPlugin, AsyncExecutor, Base64Serializer, Executor, ExecutorError, FetchAbortPlugin, FetchURLPlugin, JSONSerializer, KeyStorage, ObjectStorage, RequestAdapterAxios, RequestAdapterFetch, RequestError, RequestErrorID, RequestManager, RequestScheduler, RequestTransaction, RetryPlugin, SyncExecutor, SyncStorage };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qlover/fe-corekit",
|
|
3
3
|
"description": "A corekit for frontwork",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.3.0",
|
|
5
5
|
"private": false,
|
|
6
6
|
"type": "module",
|
|
7
7
|
"files": [
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@types/lodash": "^4.17.12",
|
|
45
45
|
"axios": "^1.7.9",
|
|
46
|
-
"@qlover/logger": "0.
|
|
46
|
+
"@qlover/logger": "0.3.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"lodash": "^4.17.21"
|