@data-client/rest 0.18.0 → 0.18.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +198 -1
- package/dist/index.js +16 -7
- package/dist/index.umd.min.js +1 -1
- package/legacy/RestEndpoint.js +6 -5
- package/legacy/RestEndpointTypes.js +1 -1
- package/legacy/extractCollection.js +3 -1
- package/legacy/paramsToString.js +1 -1
- package/legacy/paramsToString.native.js +1 -1
- package/legacy/pathTypes.js +1 -1
- package/legacy/resource.js +10 -4
- package/legacy/resourceExtendable.js +1 -1
- package/legacy/resourceExtensionTypes.js +1 -1
- package/legacy/resourceTypes.js +1 -1
- package/lib/NetworkError.d.ts.map +1 -1
- package/lib/RestEndpoint.js +6 -5
- package/lib/RestEndpointTypes.d.ts +49 -20
- package/lib/RestEndpointTypes.d.ts.map +1 -1
- package/lib/RestEndpointTypes.js +1 -1
- package/lib/extractCollection.d.ts +8 -1
- package/lib/extractCollection.d.ts.map +1 -1
- package/lib/extractCollection.js +3 -1
- package/lib/paramsToString.d.ts.map +1 -1
- package/lib/paramsToString.js +1 -1
- package/lib/paramsToString.native.d.ts.map +1 -1
- package/lib/paramsToString.native.js +1 -1
- package/lib/pathTypes.d.ts +33 -7
- package/lib/pathTypes.d.ts.map +1 -1
- package/lib/pathTypes.js +1 -1
- package/lib/resource.d.ts +1 -1
- package/lib/resource.d.ts.map +1 -1
- package/lib/resource.js +10 -4
- package/lib/resourceExtendable.d.ts +4 -4
- package/lib/resourceExtendable.d.ts.map +1 -1
- package/lib/resourceExtendable.js +1 -1
- package/lib/resourceExtensionTypes.d.ts +7 -7
- package/lib/resourceExtensionTypes.d.ts.map +1 -1
- package/lib/resourceExtensionTypes.js +1 -1
- package/lib/resourceTypes.d.ts +8 -2
- package/lib/resourceTypes.d.ts.map +1 -1
- package/lib/resourceTypes.js +1 -1
- package/lib/test-fixtures.d.ts +7 -7
- package/lib/test-fixtures.d.ts.map +1 -1
- package/package.json +7 -7
- package/src/RestEndpoint.js +8 -7
- package/src/RestEndpointTypes.ts +116 -53
- package/src/__tests__/RestEndpoint.ts +23 -7
- package/src/__tests__/__snapshots__/RestEndpoint.ts.snap +1 -1
- package/src/__tests__/resource-construction.test.ts +47 -0
- package/src/extractCollection.ts +3 -0
- package/src/paramsToString.native.ts +1 -5
- package/src/paramsToString.ts +1 -5
- package/src/pathTypes.ts +105 -31
- package/src/resource.ts +11 -6
- package/src/resourceExtendable.ts +15 -11
- package/src/resourceExtensionTypes.ts +16 -10
- package/src/resourceTypes.ts +6 -4
- package/ts4.0/RestEndpointTypes.d.ts +57 -22
- package/ts4.0/extractCollection.d.ts +8 -1
- package/ts4.0/mapCollection.d.ts +11 -16
- package/ts4.0/resource.d.ts +1 -1
- package/ts4.0/resourceExtendable.d.ts +4 -4
- package/ts4.0/resourceExtensionTypes.d.ts +7 -7
- package/ts4.0/resourceTypes.d.ts +8 -2
- package/ts4.0/test-fixtures.d.ts +7 -7
- package/ts4.1/RestEndpointTypes.d.ts +57 -22
- package/ts4.1/extractCollection.d.ts +8 -1
- package/ts4.1/mapCollection.d.ts +11 -16
- package/ts4.1/pathTypes.d.ts +33 -7
- package/ts4.1/resource.d.ts +1 -1
- package/ts4.1/resourceExtendable.d.ts +4 -4
- package/ts4.1/resourceExtensionTypes.d.ts +7 -7
- package/ts4.1/resourceTypes.d.ts +8 -2
- package/ts4.1/test-fixtures.d.ts +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,202 @@
|
|
|
1
1
|
# @data-client/rest
|
|
2
2
|
|
|
3
|
+
## 0.18.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#4149](https://github.com/reactive/data-client/pull/4149) [`cc57a77`](https://github.com/reactive/data-client/commit/cc57a77d2e563071926f50cb9054516d2ab9101e) - Fix Entity classes not assignable to `EntityInterface`
|
|
8
|
+
|
|
9
|
+
[Entity.pk()](https://dataclient.io/rest/api/Entity#pk)'s static `args` parameter is now `readonly any[]`, matching `EntityInterface`. Entity classes can be passed where an `EntityInterface` is expected.
|
|
10
|
+
|
|
11
|
+
```ts
|
|
12
|
+
import type { EntityInterface } from '@data-client/react';
|
|
13
|
+
|
|
14
|
+
// Before: TypeScript error (args is readonly in EntityInterface)
|
|
15
|
+
// After: typechecks
|
|
16
|
+
const schema: EntityInterface = User;
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Overrides of `static pk()` that type `args` as a mutable array still compile, but a future breaking release will require `readonly any[]`, so update them now:
|
|
20
|
+
|
|
21
|
+
```ts
|
|
22
|
+
class User extends Entity {
|
|
23
|
+
static pk(value: any, parent?: any, key?: string, args?: readonly any[]) {
|
|
24
|
+
return `${value.id}-${args?.[0]?.org}`;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
- [#4183](https://github.com/reactive/data-client/pull/4183) [`a73b437`](https://github.com/reactive/data-client/commit/a73b437c8f60ef8c64266874ea82e5119dfe4874) - Type the `params` and `body` that `process()` receives in `RestEndpoint` options
|
|
30
|
+
|
|
31
|
+
A `process(value, params)` method passed to `new RestEndpoint()`, `RestEndpoint.extend()` or `resource().extend()` used to get `params` typed as `any`, so a typo or a wrong assumption about a path parameter went unnoticed until runtime. They are now typed from the endpoint's `path`, `searchParams` and `body`, including a `path` set in the same `.extend()` call.
|
|
32
|
+
|
|
33
|
+
```ts
|
|
34
|
+
const getUser = new RestEndpoint({ path: '/users/:id' });
|
|
35
|
+
|
|
36
|
+
const getUserById = getUser.extend({
|
|
37
|
+
path: '/users/by-id/:userId',
|
|
38
|
+
process(value, params) {
|
|
39
|
+
params.userId; // string | number
|
|
40
|
+
params.id; // TypeScript error: 'id' is not a param of '/users/by-id/:userId'
|
|
41
|
+
return value;
|
|
42
|
+
},
|
|
43
|
+
});
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
Endpoints whose params are optional pass `params` as possibly `undefined`, so read it with `params?.page`.
|
|
47
|
+
|
|
48
|
+
This can surface new TypeScript errors in existing `process()` methods that read a param the endpoint doesn't have, or that read optional `params` without a check. Each is a read that could be `undefined` or throw at runtime, so fix the param name or add the check.
|
|
49
|
+
|
|
50
|
+
On TypeScript 5.x and earlier, `process(value, params)` in an `.extend()` that also sets `path` no longer fails with "implicitly has an 'any' type" under `strict`.
|
|
51
|
+
|
|
52
|
+
- [#4173](https://github.com/reactive/data-client/pull/4173) [`022f449`](https://github.com/reactive/data-client/commit/022f44950bf687b61f2d349e42ab906071c6fce7) - Speed up TypeScript checking of `RestEndpoint`, `resource()` and `.extend()`
|
|
53
|
+
|
|
54
|
+
Editors and `tsc` check code that defines or calls endpoints faster and with less memory. In our stress tests, a file of 150 RestEndpoints with long paths, `.extend()` and `.paginated()` checked in about half the time (3.1s → 1.6s) and memory (345MB → 207MB). Files that use `resource()` with React or Vue hooks did 22-25% less type work. TypeScript reports the same errors as before.
|
|
55
|
+
|
|
56
|
+
On TypeScript 5.x and earlier, a `process(value, params)` method passed to `.extend()` no longer fails with "implicitly has an 'any' type" under `strict`, matching TypeScript 6+. TypeScript 4.0 also accepts a chained `.extend().extend()`.
|
|
57
|
+
|
|
58
|
+
```ts
|
|
59
|
+
const getUser = new RestEndpoint({ path: '/users/:id', schema: User });
|
|
60
|
+
|
|
61
|
+
// Before (TypeScript 5.x and earlier): error TS7006: Parameter 'value' implicitly has an 'any' type.
|
|
62
|
+
// After: no error
|
|
63
|
+
const getUserName = getUser.extend({
|
|
64
|
+
process(value, params) {
|
|
65
|
+
return value.name;
|
|
66
|
+
},
|
|
67
|
+
});
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
- [#4122](https://github.com/reactive/data-client/pull/4122) [`b4b502d`](https://github.com/reactive/data-client/commit/b4b502d545aab0cf75bf030f3de4607a2e3ab7dc) - Fix more TypeScript 4.x errors when `skipLibCheck` is off
|
|
71
|
+
|
|
72
|
+
[Entity](https://dataclient.io/rest/api/Entity), [Endpoint](https://dataclient.io/rest/api/Endpoint), [Union](https://dataclient.io/rest/api/Union) and [RestEndpoint](https://dataclient.io/rest/api/RestEndpoint) declarations no longer report errors on TypeScript 4.0 through 4.5. On TypeScript 4.0 and 4.1, an `Entity` can be an `Endpoint` schema again.
|
|
73
|
+
|
|
74
|
+
```ts
|
|
75
|
+
import { Endpoint, Entity, schema } from '@data-client/endpoint';
|
|
76
|
+
|
|
77
|
+
class User extends Entity {
|
|
78
|
+
id = '';
|
|
79
|
+
type = 'users';
|
|
80
|
+
}
|
|
81
|
+
const getUser = new Endpoint(
|
|
82
|
+
(id: string) => fetch(`/users/${id}`).then(res => res.json()),
|
|
83
|
+
{ schema: User },
|
|
84
|
+
);
|
|
85
|
+
const feed = new schema.Union({ users: User }, 'type');
|
|
86
|
+
|
|
87
|
+
// Before (TypeScript 4.0, skipLibCheck: false):
|
|
88
|
+
// error TS2456: Type alias 'RemoveArray' circularly references itself.
|
|
89
|
+
// error TS2322: Type 'typeof User' is not assignable to type 'EntityInterface<any>'.
|
|
90
|
+
// Before (TypeScript 4.2):
|
|
91
|
+
// error TS2344: Type 'TBase' does not satisfy the constraint 'new (...args: any) => any'.
|
|
92
|
+
// After: no errors
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
- [#4122](https://github.com/reactive/data-client/pull/4122) [`b4b502d`](https://github.com/reactive/data-client/commit/b4b502d545aab0cf75bf030f3de4607a2e3ab7dc) - Fix types for TypeScript 4.x when `skipLibCheck` is off
|
|
96
|
+
|
|
97
|
+
TypeScript 4.0 through 4.7 no longer report `Cannot find name 'NoInfer'` from `@data-client/endpoint` or `@data-client/normalizr`, and TypeScript 4.0 through 4.9 no longer report `Only named exports may use 'export type'` from `@data-client/normalizr`.
|
|
98
|
+
|
|
99
|
+
```ts
|
|
100
|
+
import { Entity } from '@data-client/endpoint';
|
|
101
|
+
import { normalize } from '@data-client/normalizr';
|
|
102
|
+
|
|
103
|
+
// Before (TypeScript 4.7, skipLibCheck: false):
|
|
104
|
+
// error TS2304: Cannot find name 'NoInfer'.
|
|
105
|
+
// error TS1383: Only named exports may use 'export type'.
|
|
106
|
+
// After: no errors
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
- [#4224](https://github.com/reactive/data-client/pull/4224) [`a403df8`](https://github.com/reactive/data-client/commit/a403df8f22dadb0dbd9a6cf72a65f9187ae63176) - Fix `Entity.maxEntityDepth` docs: the default is 64, not 128
|
|
110
|
+
|
|
111
|
+
Editor hover docs for `static maxEntityDepth` now show the real default. Runtime behavior is unchanged; set `maxEntityDepth` explicitly if you relied on 128.
|
|
112
|
+
|
|
113
|
+
- [#4226](https://github.com/reactive/data-client/pull/4226) [`643d818`](https://github.com/reactive/data-client/commit/643d818ac757a0218e91d9523879e25024c5e61f) - Fix `RestEndpoint.push`, `unshift` and `remove` body types when a `Query` or `Lazy` wraps the endpoint's `Collection`
|
|
114
|
+
|
|
115
|
+
Sorting or filtering a list with a [Query](https://dataclient.io/rest/api/Query) around its [Collection](https://dataclient.io/rest/api/Collection) made `getPosts.push` reject every body except `FormData`, though it adds to the list at runtime. The body is now typed from the Collection's Entity, so a correct body compiles and a wrong field is a TypeScript error. The same applies to a Collection wrapped in [Lazy](https://dataclient.io/rest/api/Lazy).
|
|
116
|
+
|
|
117
|
+
```ts
|
|
118
|
+
const getPosts = new RestEndpoint({
|
|
119
|
+
path: '/:group/posts',
|
|
120
|
+
searchParams: {} as { orderBy?: string },
|
|
121
|
+
schema: new Query(
|
|
122
|
+
new Collection([Post], { nonFilterArgumentKeys: /orderBy/ }),
|
|
123
|
+
(posts, { orderBy } = {}) => sortBy(posts, orderBy),
|
|
124
|
+
),
|
|
125
|
+
});
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
If you cast the body to get past this error, the cast can go:
|
|
129
|
+
|
|
130
|
+
```ts
|
|
131
|
+
// Before
|
|
132
|
+
ctrl.fetch(getPosts.push, { group: 'react' }, { title, author } as any);
|
|
133
|
+
// After
|
|
134
|
+
ctrl.fetch(getPosts.push, { group: 'react' }, { title, author });
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
- [#4235](https://github.com/reactive/data-client/pull/4235) [`588a558`](https://github.com/reactive/data-client/commit/588a558332d9d2bc6a313b2f4b6700bb3ff017f2) - Fix TypeScript error passing `FormData` to `resource().create`
|
|
138
|
+
|
|
139
|
+
`resource().create` sends a `FormData` body as-is, the same as `update`, `partialUpdate` and
|
|
140
|
+
`getList.push`, but its type only allowed an object, so submitting a form needed a cast. This now typechecks,
|
|
141
|
+
and you can drop the cast. `create` is deprecated, and its replacement `getList.push` takes `FormData` too.
|
|
142
|
+
|
|
143
|
+
```tsx
|
|
144
|
+
<form
|
|
145
|
+
onSubmit={e => {
|
|
146
|
+
e.preventDefault();
|
|
147
|
+
// Before: TypeScript error, so you had to cast
|
|
148
|
+
ctrl.fetch(PostResource.create, new FormData(e.currentTarget) as any);
|
|
149
|
+
// After
|
|
150
|
+
ctrl.fetch(PostResource.create, new FormData(e.currentTarget));
|
|
151
|
+
}}
|
|
152
|
+
>
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
- [#4184](https://github.com/reactive/data-client/pull/4184) [`bf377f4`](https://github.com/reactive/data-client/commit/bf377f46a2c916d8e808472645f1da9704ffaf91) - Fix `resource().extend({ get: ... })` dropping endpoints added earlier from its type
|
|
156
|
+
|
|
157
|
+
Customizing a resource's standard endpoints with `.extend({ ... })` kept every endpoint at runtime, but TypeScript lost the ones added before it with `.extend('name', options)`, and the deprecated `create`. Using them was a type error even though they worked.
|
|
158
|
+
|
|
159
|
+
```ts
|
|
160
|
+
const UserResource = resource({ path: '/users/:id', schema: User })
|
|
161
|
+
.extend('current', { path: '/user' })
|
|
162
|
+
.extend({ get: { dataExpiryLength: 60000 } });
|
|
163
|
+
|
|
164
|
+
// Before: Property 'current' does not exist
|
|
165
|
+
// After: no error
|
|
166
|
+
const me = await ctrl.fetch(UserResource.current);
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
- [#4262](https://github.com/reactive/data-client/pull/4262) [`ae7080d`](https://github.com/reactive/data-client/commit/ae7080de64ca8621833a71267ec84d2a9d5e19dd) - Fix pushing several items at once sending `"[object Object]"` instead of JSON
|
|
170
|
+
|
|
171
|
+
[RestEndpoint.push](https://dataclient.io/rest/api/RestEndpoint#push), `unshift` and `remove` accept an array of items,
|
|
172
|
+
but sent it to `fetch()` as-is, so the server received `"[object Object],[object Object]"` with no JSON `Content-Type`. Arrays are
|
|
173
|
+
now JSON-encoded like objects, with `Content-Type: application/json`. `FormData`, `Blob`, `URLSearchParams` and strings
|
|
174
|
+
still go to `fetch()` unchanged.
|
|
175
|
+
|
|
176
|
+
`resource().create` takes the same bodies as `getList.push`, including an array.
|
|
177
|
+
|
|
178
|
+
```ts
|
|
179
|
+
// Before: the server received "[object Object],[object Object]"
|
|
180
|
+
// After: the server receives [{"title":"Buy milk"},{"title":"Walk dog"}]
|
|
181
|
+
await ctrl.fetch(TodoResource.getList.push, [
|
|
182
|
+
{ title: 'Buy milk' },
|
|
183
|
+
{ title: 'Walk dog' },
|
|
184
|
+
]);
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
- [#4019](https://github.com/reactive/data-client/pull/4019) [`aa15f29`](https://github.com/reactive/data-client/commit/aa15f29f6b0a3b4ae655e2d114a419a3fc94ac7e) Thanks [@renovate](https://github.com/apps/renovate)! - Fix TypeScript 7 module resolution for package exports
|
|
188
|
+
|
|
189
|
+
TypeScript 7 requires a `types` condition in `package.json` `exports`. Without it, imports resolved to runtime entrypoints like `node.mjs` and lost declaration files.
|
|
190
|
+
|
|
191
|
+
- Updated dependencies [[`cc57a77`](https://github.com/reactive/data-client/commit/cc57a77d2e563071926f50cb9054516d2ab9101e), [`022f449`](https://github.com/reactive/data-client/commit/022f44950bf687b61f2d349e42ab906071c6fce7), [`b4b502d`](https://github.com/reactive/data-client/commit/b4b502d545aab0cf75bf030f3de4607a2e3ab7dc), [`b4b502d`](https://github.com/reactive/data-client/commit/b4b502d545aab0cf75bf030f3de4607a2e3ab7dc), [`a403df8`](https://github.com/reactive/data-client/commit/a403df8f22dadb0dbd9a6cf72a65f9187ae63176), [`aa15f29`](https://github.com/reactive/data-client/commit/aa15f29f6b0a3b4ae655e2d114a419a3fc94ac7e)]:
|
|
192
|
+
- @data-client/endpoint@0.18.2
|
|
193
|
+
|
|
194
|
+
## 0.18.1
|
|
195
|
+
|
|
196
|
+
### Patch Changes
|
|
197
|
+
|
|
198
|
+
- [`adb82f1`](https://github.com/reactive/data-client/commit/adb82f15c1959ecfc09565a519d2672a2d63178c) - RestEndpoint.remove.name is 'partialUpdate' since it uses 'PATCH'
|
|
199
|
+
|
|
3
200
|
## 0.18.0
|
|
4
201
|
|
|
5
202
|
### Minor Changes
|
|
@@ -34,7 +231,7 @@
|
|
|
34
231
|
}
|
|
35
232
|
```
|
|
36
233
|
|
|
37
|
-
The new [`IDenormalizeDelegate`](https://dataclient.io/rest/api/
|
|
234
|
+
The new [`IDenormalizeDelegate`](https://dataclient.io/rest/api/SchemaSimple)
|
|
38
235
|
exposes `unvisit`, `args`, and a new `argsKey(fn)` helper that registers
|
|
39
236
|
a memoization dimension when output varies with endpoint args. Reading
|
|
40
237
|
`delegate.args` directly does _not_ contribute to cache invalidation —
|
package/dist/index.js
CHANGED
|
@@ -18,6 +18,8 @@ function extractCollection(s, mapper) {
|
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
+
/** Searches wrappers like Query and Lazy through their `schema` (Entity classes have a `prototype`) */
|
|
22
|
+
|
|
21
23
|
function mapCollection(s, mapper) {
|
|
22
24
|
if (typeof s !== 'object' || s === undefined) return s;
|
|
23
25
|
if (s instanceof endpoint.schema.Collection) {
|
|
@@ -225,8 +227,9 @@ class RestEndpoint extends endpoint.Endpoint {
|
|
|
225
227
|
|
|
226
228
|
/** Init options for fetch - run at fetch */
|
|
227
229
|
async getRequestInit(body) {
|
|
228
|
-
|
|
229
|
-
|
|
230
|
+
// plain objects and arrays are JSON; FormData, Blob, strings, etc pass through to fetch
|
|
231
|
+
const bodyIsJSON = isPojo(body) || Array.isArray(body);
|
|
232
|
+
if (bodyIsJSON) {
|
|
230
233
|
body = JSON.stringify(body);
|
|
231
234
|
}
|
|
232
235
|
const init = {
|
|
@@ -235,7 +238,7 @@ class RestEndpoint extends endpoint.Endpoint {
|
|
|
235
238
|
signal: this.signal,
|
|
236
239
|
body
|
|
237
240
|
};
|
|
238
|
-
if (!body ||
|
|
241
|
+
if (!body || bodyIsJSON) {
|
|
239
242
|
init.headers = {
|
|
240
243
|
// default to application/json but allow user explicit overrides
|
|
241
244
|
'Content-Type': 'application/json',
|
|
@@ -396,7 +399,7 @@ Response (first 300 characters): ${text.substring(0, 300)}`;
|
|
|
396
399
|
return this.extend({
|
|
397
400
|
method: 'PATCH',
|
|
398
401
|
schema: extractCollection(this.schema, s => s.remove),
|
|
399
|
-
name: this.name + '.
|
|
402
|
+
name: this.name + '.partialUpdate'
|
|
400
403
|
});
|
|
401
404
|
}
|
|
402
405
|
get move() {
|
|
@@ -461,14 +464,20 @@ This warning will not show in production.`);
|
|
|
461
464
|
function extendMember(extended, key, options) {
|
|
462
465
|
extended[key] = extended[key].extend(options);
|
|
463
466
|
}
|
|
467
|
+
|
|
468
|
+
// Loosely typed: the public signature infers O from the naked `O` position,
|
|
469
|
+
// so spreading the generic rest into `new Endpoint()` would otherwise leave
|
|
470
|
+
// ContentSchemaGuard<O> as an unresolvable (deferred) conditional.
|
|
471
|
+
// Retype this if a future TypeScript resolves that conditional here.
|
|
472
|
+
const extraBaseOptions = extraOptions;
|
|
464
473
|
const extraMutateOptions = {
|
|
465
|
-
...
|
|
474
|
+
...extraBaseOptions
|
|
466
475
|
};
|
|
467
476
|
const extraPartialOptions = {
|
|
468
|
-
...
|
|
477
|
+
...extraBaseOptions
|
|
469
478
|
};
|
|
470
479
|
const get = new Endpoint({
|
|
471
|
-
...
|
|
480
|
+
...extraBaseOptions,
|
|
472
481
|
path,
|
|
473
482
|
schema,
|
|
474
483
|
name: getName('get')
|
package/dist/index.umd.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(u,D){"object"==typeof exports&&"undefined"!=typeof module?D(exports):"function"==typeof define&&define.amd?define(["exports"],D):D((u="undefined"!=typeof globalThis?globalThis:u||self).Rest={})}(this,(function(u){"use strict";function D(){return D=Object.assign?Object.assign.bind():function(u){for(var D=1;D<arguments.length;D++){var e=arguments[D];for(var F in e)({}).hasOwnProperty.call(e,F)&&(u[F]=e[F])}return u},D.apply(null,arguments)}function e(u,D){if(!{}.hasOwnProperty.call(u,D))throw new TypeError("attempted to use private field on non-instance");return u}var F=0;function t(u){return"__private_"+F+++"_"+u}function C(u){return!("function"!=typeof u.hasOwnProperty||!(Object.hasOwnProperty.call(u,"__ownerID")||u._map&&Object.hasOwnProperty.call(u._map,"__ownerID")))}class E{constructor(u,D){this.schema=void 0,D&&(this._schemaAttribute="string"==typeof D?u=>u[D]:D),this.define(u)}get isSingleSchema(){return!this._schemaAttribute}define(u){u._hoistable&&!this._schemaAttribute?(this.schema=u.schema,this._schemaAttribute=u._schemaAttribute):this.schema=u}getSchemaAttribute(u,D,e){return!this.isSingleSchema&&this._schemaAttribute(u,D,e)}inferSchema(u,D,e){if(this.isSingleSchema)return this.schema;const F=this.getSchemaAttribute(u,D,e);return this.schema[F]}schemaKey(){return this.isSingleSchema?this.schema.key:Object.values(this.schema).join(";")}normalizeValue(u,D,e,F){if(!u)return u;const t=this.isSingleSchema,C=t?this.schema:this.schema[this._schemaAttribute(u,D,e)];if(!C)return u;const E=F.visit(C,u,D,e);return t||null==E?E:{id:E,schema:this._schemaAttribute(u,D,e)}}denormalizeValue(u,D){const e=this.isSingleSchema,F=!e&&u&&(C(u)?u.get("schema"):u.schema);if(!e&&!F){if("object"==typeof u&&null!==u){const e=this.inferSchema(u,void 0,void 0);if(e)return D(e,u)}return u}const t=e?void 0:C(u)?u.get("id"):u.id;return D(e?this.schema:this.schema[F],t||u)}}class A extends E{constructor(u,D){if(!D)throw new Error('Expected option "schemaAttribute" not found on UnionSchema.');super(u,D),this._hoistable=!0}normalize(u,D,e,F){return this.normalizeValue(u,D,e,F)}denormalize(u,D){return this.denormalizeValue(u,D.unvisit)}queryKey(u,D){if(!u[0])return;const e=this.getSchemaAttribute(u[0],void 0,""),F=this.schema[e];if(F){const t=D(F,u);if(void 0===t)return;return{id:t,schema:e}}for(const e in this.schema){const F=D(this.schema[e],u);if(void 0!==F)return{id:F,schema:e}}}}class n extends E{normalize(u,D,e,F){const t={},C=Object.keys(u);for(let D=0;D<C.length;D++){const e=C[D],E=u[e];null!=E&&(t[e]=this.normalizeValue(E,u,e,F))}return t}denormalize(u,D){const e={},F=Object.keys(u);for(let t=0;t<F.length;t++){const C=F[t],E=u[C],A=this.denormalizeValue(E,D.unvisit);A&&"symbol"!=typeof A&&(e[C]=A)}return e}queryKey(u,D,e){}}const r=u=>void 0!==u&&"symbol"!=typeof u;class s extends E{normalize(u,D,e,F){const t=(u=>Array.isArray(u)?u:Object.keys(u).map((D=>u[D])))(u);return t.map((u=>this.normalizeValue(u,D,e,F)))}denormalize(u,D){return u.map?u.map((u=>this.denormalizeValue(u,D.unvisit))).filter(r):u}queryKey(u,D,e){}toJSON(){return[this.schema]}}class i extends s{constructor(u,D){super(u,D)}normalize(u,D,e,F){super.normalize(u,D,e,F)}queryKey(u,D,e){if(this.isSingleSchema){const u=e.getEntities(this.schema.key);return u?[...u.keys()]:e.INVALID}let F=!1;const t=Object.values(this.schema).flatMap((u=>{const D=e.getEntities(u.key);if(!D)return[];F=!0;const t=[];for(const[e,F]of D.entries())F&&"symbol"!=typeof F&&t.push({id:u.pk(F,void 0,e,[]),schema:this.getSchemaAttribute(F,void 0,e)});return t}));return F?t:e.INVALID}}function o(u,e,F){if(C(e))return function(u,D,e){let F;const t=Object.keys(u).reduce(((D,t)=>{const C=`${t}`,E=e(u[C],D.get(C));return"symbol"==typeof E&&(F=E),D.has(C)?D.set(C,E):D}),D);return null!=F?F:t}(u,e,F.unvisit);const t=D({},e),E=Object.keys(u);for(let D=0;D<E.length;D++){const e=E[D],C=F.unvisit(u[e],t[e]);if(void 0!==t[e]&&(t[e]=C),"symbol"==typeof C)return C}return t}class B{constructor(u){this.schema=void 0,this.define(u)}define(u){this.schema=Object.keys(u).reduce(((e,F)=>{const t=u[F];return D({},e,{[F]:t})}),this.schema||{})}normalize(...u){return((u,e,F,t,C)=>{const E=D({},e),A=Object.keys(u);for(let D=0;D<A.length;D++){const F=A[D],t=C.visit(u[F],e[F],e,F);void 0===t?delete E[F]:E[F]=t}return E})(this.schema,...u)}denormalize(u,D){return o(this.schema,u,D)}queryKey(u,D){return function(u,D,e){const F={},t=Object.keys(u);for(let C=0;C<t.length;C++){const E=t[C];F[E]=e(u[E],D)}return F}(this.schema,u,D)}}let a=class extends E{constructor(u,D){super(u,D)}get key(){return this.schemaKey()}normalize(u,D,e,F){const t=F.args,C=this.inferSchema(u,D,e);if(!C)return u;let E;if("string"==typeof u||"number"==typeof u)E=u;else{const F=C.process(u,D,e,t);E=C.pk(null!=F?F:u,D,e,t)}return E=`${E}`,F.invalidate(C,E),this.isSingleSchema?E:{id:E,schema:this.getSchemaAttribute(u,D,e)}}queryKey(u,D,e){}denormalize(u,D){return this.denormalizeValue(u,D.unvisit)}_denormalizeNullable(){return{}}_normalizeNullable(){return{}}};const c=(u,D)=>[...u,...D],h=(u,D)=>[...D,...u],l=(u,e)=>D({},u,e),f=(u,D)=>"object"==typeof u&&"object"==typeof D?u.id===D.id&&u.schema===D.schema:u===D,m=(u,D)=>u.filter((u=>!D.some((D=>f(u,D))))),d=(u,D)=>{const e=Object.values(D),F={};for(const[D,t]of Object.entries(u))e.some((u=>f(t,u)))||(F[D]=t);return F},y=u=>[...u],p=u=>D({},u);class g{addWith(u,D){return b(this,u,D)}moveWith(u){return w(this,u,this.schema instanceof s?m:d)}createCollectionFilter(...u){return D=>Object.entries(D).every((([D,e])=>{var F;return this.nonFilterArgumentKeys(D)||`${u[0][D]}`===e||`${null==(F=u[1])?void 0:F[D]}`===e}))}nonFilterArgumentKeys(u){return u.startsWith("order")}constructor(u,e){var F;if(this.schema=Array.isArray(u)?new s(u[0]):u,this.argsKey=null!=(F=null==e?void 0:e.argsKey)?F:u=>D({},u),null!=e&&e.nestKey&&(this.nestKey=e.nestKey),this.key=function(u){if(u instanceof s)return`[${u.schemaKey()}]`;if(u instanceof n)return`{${u.schemaKey()}}`;return`(${u.schemaKey()})`}(this.schema),null!=e&&e.nonFilterArgumentKeys){const{nonFilterArgumentKeys:u}=e;"function"==typeof u?this.nonFilterArgumentKeys=u:u instanceof RegExp?this.nonFilterArgumentKeys=D=>u.test(D):this.nonFilterArgumentKeys=D=>u.includes(D)}else null!=e&&e.createCollectionFilter&&(this.createCollectionFilter=e.createCollectionFilter.bind(this));this.schema instanceof s?(this.createIfValid=y,this.push=b(this,c),this.unshift=b(this,h),this.remove=b(this,m),this.move=w(this,c,m)):u instanceof n&&(this.createIfValid=p,this.assign=b(this,l),this.remove=b(this,d),this.move=w(this,l,d))}get cacheWith(){return this.schema.schema}toString(){return this.key}toJSON(){return{key:this.key,schema:this.schema.schema}}pk(u,D,e,F,t){const C=t&&this.nestKey?this.nestKey(D,e):this.argsKey(...F);for(const u in C)["number","boolean"].includes(typeof C[u])&&(C[u]=`${C[u]}`);return function(u){const D=Object.keys(u).sort(),e={};for(const F of D)e[F]=u[F];return JSON.stringify(e)}(C)}normalize(u,D,e,F,t){const C=F.args,E=this.schema.normalize(u,D,e,F),A=this.pk(E,D,e,C,t);return F.mergeEntity(this,A,E),A}merge(u,D){return D}shouldReorder(u,D,e,F){return D.fetchedAt<u.fetchedAt}mergeWithStore(u,D,e,F){return this.shouldReorder(u,D,e,F)?this.merge(F,e):this.merge(e,F)}mergeMetaWithStore(u,D,e,F){return this.shouldReorder(u,D,e,F)?u:D}queryKey(u,D,e){const F=this.pk(void 0,void 0,"",u);if(e.getEntity(this.key,F))return F}denormalize(u,D){return this.schema.denormalize(u,D)}}function v(u,D,e){const F={merge:{value:D},normalize:{value:e},queryKey:{value:k}};return u.schema instanceof s&&(F.createIfValid={value:$},F.denormalize={value:S}),F}function b(u,D,e){const F=v(u,D,x);return e&&(F.createCollectionFilter={value:e}),Object.create(u,F)}function k(){}function x(u,D,e,F,t){const C=F.args;F.visit;const E=this.schema.normalize(this.schema instanceof s&&!Array.isArray(u)?[u]:u,D,e,F),A=this.createCollectionFilter(...C),n=F.getEntities(this.key);if(n)for(const u of n.keys())A(JSON.parse(u))&&F.mergeEntity(this,u,E);return E}function w(u,D,e){const F=Object.create(u,v(u,D,(function(u,D,e,F,t){return O.call(this,this._removeSchema,u,D,e,F,t)})));return F._removeSchema=Object.create(F,{merge:{value:e}}),F}function O(u,e,F,t,C,E){const A=C.args,n=this.schema instanceof s,r=this.schema.schema,i=(n&&Array.isArray(e)?e:[e]).map((u=>{const D=r.process(u,F,t,A),e=`${r.pk(D,F,t,A)}`;return{pk:e,processed:D,existingEntity:e?C.getEntity(r.key,e):void 0}})),o=n?Array.isArray(e)?e:[e]:i[0].pk?{[i[0].pk]:e}:e,B=this.schema.normalize(o,F,t,C),a=A[A.length-1],c=C.getEntities(this.key);if(c)for(let e=0;e<i.length;e++){const{processed:F,existingEntity:t}=i[e],E=n?[B[e]]:B,r=n?D({},a,F):a,s=t?D({},t,r):r,o=t?this.createCollectionFilter(D({},A[0],t),t):void 0,h=this.createCollectionFilter(D({},A[0],r),s);for(const D of c.keys()){const e=JSON.parse(D),F=null==o?void 0:o(e),t=h(e);F&&!t?C.mergeEntity(u,D,E):t&&!F&&C.mergeEntity(this,D,E)}}return B}function $(u){return Array.isArray(u)?[...u]:D({},u)}function S(u,D){return Array.isArray(u)?this.schema.denormalize(u,D):this.schema.denormalize([u],D)[0]}function j(u,D){if(null==u)return{};var e={};for(var F in u)if({}.hasOwnProperty.call(u,F)){if(-1!==D.indexOf(F))continue;e[F]=u[F]}return e}const P=["pk","schema","key"];function _(u,e={}){class F extends u{static toString(){return this.key}static toJSON(){return{key:this.key,schema:this.schema}}static pk(u,D,e,F){return this.prototype.pk.call(u,D,e,F)}static shouldUpdate(u,D,e,F){return!0}static shouldReorder(u,D,e,F){return D.fetchedAt<u.fetchedAt}static merge(u,e){return D({},u,e)}static mergeWithStore(u,D,e,F){return this.shouldUpdate(u,D,e,F)?typeof F!=typeof e?F:this.shouldReorder(u,D,e,F)?this.merge(F,e):this.merge(e,F):e}static mergeMetaWithStore(u,D,e,F){return this.shouldReorder(u,D,e,F)?u:D}static fromJS(u={}){const D=new this(u);return Object.assign(D,u),D}static createIfValid(u){if(!this.validate(u))return this.fromJS(u)}static process(u,e,F,t){return D({},u)}static normalize(u,D,e,F){const t=F.args,C=F.visit,E=this.process(u,D,e,t);let A;if(void 0===E)return A=`${this.pk(u,D,e,t)}`,F.invalidate(this,A),A;if(A=this.pk(E,D,e,t),A=void 0===A||""===A||"undefined"===A?`MISS-${Math.random()}`:`${A}`,F.checkLoop(this.key,A,u))return A;!function(u){if(u){const D=new Error(u);throw D.status=400,D}}(this.validate(E));const n=Object.keys(this.schema);for(let u=0;u<n.length;u++){const D=n[u];Object.hasOwn(E,D)&&(E[D]=C(this.schema[D],E[D],E,D))}return F.mergeEntity(this,A,E),A}static validate(u){}static queryKey(u,D,e){if(!u[0])return;const F=function(u,D,e){if(["string","number"].includes(typeof D[0]))return`${D[0]}`;const F=u.pk(D[0],void 0,"",D);if(void 0!==F&&""!==F)return F;const t=(C=D[0],E=u.indexes,E?E.find((u=>Object.hasOwn(C,u))):void 0);var C,E;if(!t)return;const A=D[0][t];return e.getIndex(u.key,t,A)}(this,u,e);return F&&e.getEntity(this.key,F)?F:void 0}static denormalize(u,D){if("symbol"==typeof u)return u;for(const e of Object.keys(this.schema)){const F=this.schema[e],t=D.unvisit(F,u[e]);if("symbol"==typeof t){if(this.defaults[e])return t;u[e]=void 0}else u[e]=t}return u}static get defaults(){return Object.hasOwn(this,"__defaults")||Object.defineProperty(this,"__defaults",{value:new this,writable:!0,configurable:!0}),this.__defaults}}const t=j(e,P);if(Object.assign(F,t),"schema"in e?F.schema=e.schema:u.schema||(F.schema={}),"pk"in e?"function"==typeof e.pk?F.prototype.pk=function(u,D){return e.pk(this,u,D)}:F.prototype.pk=function(){return this[e.pk]}:"function"!=typeof u.prototype.pk&&(F.prototype.pk=function(){return this.id}),"key"in e)Object.defineProperty(F,"key",{value:e.key,configurable:!0,writable:!0,enumerable:!0});else if(!("key"in u)){function C(u){Object.defineProperty(this,"key",{value:u,writable:!0,enumerable:!0,configurable:!0})}const E=function(){return"EntityMixin"===this.name?u.name:this.name},A="undefined"!=typeof document&&document.CLS_MANGLE?function(){return null==document.CLS_MANGLE||document.CLS_MANGLE(this),Object.defineProperty(F,"key",{get:E,set:C,enumerable:!0,configurable:!0}),E.call(this)}:E;Object.defineProperty(F,"key",{get:A,set:C,enumerable:!0,configurable:!0})}return F}class z{constructor(u,D){this.schema=u,this.process=D}normalize(...u){return this.schema.normalize(...u)}denormalize(u,D){const e=D.unvisit(this.schema,u);return"symbol"==typeof e?e:this.process(e,...D.args)}queryKey(u,D){return D(this.schema,u)}}class K{constructor(u){this._query=void 0,this.schema=u}normalize(u,D,e,F){return F.visit(this.schema,u,D,e)}denormalize(u,D){return u}queryKey(u,D,e){}get query(){return this._query||(this._query=new T(this.schema)),this._query}}class T{constructor(u){this.schema=u}denormalize(u,D){return D.unvisit(this.schema,u)}queryKey(u,D,e){const F=this.schema;return"function"==typeof F.queryKey&&F.key?F.queryKey(u,D,e):u[0]}}class R{constructor(u){var D;this.key=void 0,this.lensSelector=void 0,this.entity=void 0,this.entityKey=void 0,this.acceptsPrimitives=!0,this.key=`Scalar(${u.key})`,this.lensSelector=u.lens,this.entity=u.entity,this.entityKey=null==(D=u.entity)?void 0:D.key}entityPk(u,D,e,F){var t;return void 0!==e&&null!=D&&D[e]===u?e:null==(t=this.entity)||null==t.pk?void 0:t.pk(u,D,e,F)}createIfValid(u){return D({},u)}merge(u,e){return D({},u,e)}shouldReorder(u,D,e,F){return D.fetchedAt<u.fetchedAt}mergeWithStore(u,D,e,F){return this.shouldReorder(u,D,e,F)?this.merge(F,e):this.merge(e,F)}mergeMetaWithStore(u,D,e,F){return this.shouldReorder(u,D,e,F)?u:D}normalize(u,e,F,t,C){const E=t.args,A=this.lensSelector(E);if(void 0===A)throw new Error(`${this.key}: lens returned undefined during normalize. Ensure endpoint args contain the lens value.`);if("function"==typeof C&&C.pk){const D=C.key,n=`${C.pk(e,void 0,void 0,E)}`;return t.mergeEntity(this,`${D}|${n}|${A}`,{[F]:u}),[n,F,D]}if(void 0===this.entityKey)throw new Error("Scalar used standalone (e.g. inside `schema.Values`) requires an `entity` option to bind it to an Entity class.");const n=this.entityPk(u,e,F,E);if(void 0===n)throw new Error(`${this.key}: cannot derive entity pk for cell. Provide items with an \`id\` field, a pk-keyed map key, or override Scalar.entityPk().`);const r=`${this.entityKey}|${n}|${A}`;return t.mergeEntity(this,r,D({},u)),r}denormalize(u,D){if(!u||"object"!=typeof u&&"string"!=typeof u)return u;if(Array.isArray(u)){const e=D.argsKey(this.lensSelector);if(void 0===e)return;const F=D.unvisit(this,`${u[2]}|${u[0]}|${e}`);return F&&"symbol"!=typeof F?F[u[1]]:void 0}return"object"==typeof u?u:D.unvisit(this,u)}queryKey(u,D,e){const F=this.lensSelector(u);if(void 0===F)return;const t=e.getEntities(this.key);if(!t)return;const C=[];for(const[u,D]of t.entries()){if(!D||"symbol"==typeof D)continue;const e=u.lastIndexOf("|");-1!==e&&u.slice(e+1)===F&&C.push(u)}return C.length?C:void 0}}var q=Object.freeze({__proto__:null,All:i,Array:s,Collection:g,Entity:_,EntityMixin:_,Invalidate:a,Lazy:K,Object:B,Query:z,Scalar:R,Union:A,Values:n,unshift:h});const I=class{};class N extends(_(I)){static process(u,D,e,F){return super.process(u,D,e,F)}}var U;const M="undefined"!=typeof document;let L=M&&!(null!=(U=document.querySelector("meta[http-equiv='Content-Security-Policy']"))&&U.getAttribute("content"));try{L||Function()}catch(u){L=!0,M&&console.error("Content Security Policy: The previous CSP log can be safely ignored - @data-client/endpoint will use setPrototypeOf instead")}var V;class J extends Function{constructor(u,D){let e,F;return L?(e=(...u)=>e.fetch(...u),Object.setPrototypeOf(e,new.target.prototype)):(super("return arguments.callee.fetch.apply(arguments.callee, arguments)"),e=this),u&&(e.fetch=u),D&&"name"in D||!u||!u.name||"anonymous"===u.name||(F=u.name),Object.defineProperty(e,"name",{get(){return F||this.__name},set(u){this.__name=u}}),Object.assign(e,D),e}key(...u){return`${this.name} ${JSON.stringify(u)}`}testKey(u){return u.startsWith(this.name)}bind(u,...D){const e=this.fetch,F=this.key;return this.extend({fetch(){return e.apply(null!=u?u:this,D)},key(){return F.apply(this,D)}})}extend(u){class D extends this.constructor{}return Object.assign(D.prototype,this),new D(u.fetch,u)}}V=J,(()=>{if("undefined"!=typeof document&&document.FUNC_MANGLE){const u=V.prototype.key;V.prototype.key=function(...D){return null==document.FUNC_MANGLE||document.FUNC_MANGLE(this),this.prototype.key=u,u.call(this,...D)}}})();const W=J;function G(u,e){if("object"!=typeof u||void 0===u||Array.isArray(u))return;if(u instanceof g)return e(u);const F=D({},u instanceof B?u.schema:u);for(const u in F){if(!F[u])continue;const D=G(F[u],e);if(D)return D}}function H(u,e){if("object"!=typeof u||void 0===u)return u;if(u instanceof g)return e(u);const F=D({},u instanceof B?u.schema:u);for(const u in F)F[u]&&(F[u]=H(F[u],e));return F}Object.hasOwn=Object.hasOwn||function(u,D){return Object.prototype.hasOwnProperty.call(u,D)};class Z extends Error{constructor(u){super(`${u.url}: ${u.statusText||`Status not 'ok': ${u.status}`}`),this.name="NetworkError",this.status=u.status,this.response=u}toJSON(){return{name:this.name,status:this.status,message:this.message,url:this.response.url}}}function Q(u,D){const e=new Set(u),F=[...u];for(const u of D)e.has(u)||F.push(u);return F}var X,Y={};var uu=function(){if(X)return Y;X=1,Object.defineProperty(Y,"__esModule",{value:!0}),Y.PathError=Y.TokenData=void 0,Y.parse=n,Y.compile=function(D,e={}){const{encode:F=encodeURIComponent,delimiter:t=u}=e,C=r(("object"==typeof D?D:n(D,e)).tokens,t,F);return function(u={}){const D=[],e=C(u,D);if(D.length)throw new TypeError(`Missing parameters: ${D.join(", ")}`);return e}},Y.match=function(e,F={}){const{decode:t=decodeURIComponent,delimiter:C=u}=F,{regexp:E,keys:A}=s(e,F),n=A.map((u=>!1===t?D:"param"===u.type?t:u=>u.split(C).map(t)));return function(u){const D=E.exec(u);if(!D)return!1;const e=D[0],F=Object.create(null);for(let u=1;u<D.length;u++){if(void 0===D[u])continue;const e=A[u-1],t=n[u-1];F[e.name]=t(D[u])}return{path:e,params:F}}},Y.pathToRegexp=s,Y.stringify=function(u){return B(u.tokens,0)};const u="/",D=u=>u,e=/^(?:[\$A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088F\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC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uDE2B\uDE3F\uDE40\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61\uDF80-\uDF89\uDF8B\uDF8E\uDF90-\uDFB5\uDFB7\uDFD1\uDFD3]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8\uDFC0-\uDFE0]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDB0-\uDDDB\uDEE0-\uDEF2\uDF02\uDF04-\uDF10\uDF12-\uDF33\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD80E\uD80F\uD81C-\uD822\uD840-\uD868\uD86A-\uD86D\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD88C][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC41-\uDC46\uDC60-\uDFFF]|\uD810[\uDC00-\uDFFA]|\uD811[\uDC00-\uDE46]|\uD818[\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FE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEAD\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD88D[\uDC00-\uDC79])$/,F=/^(?:[\$0-9A-Z_a-z\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05EF-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u07FD\u0800-\u082D\u0840-\u085B\u0860-\u086A\u0870-\u0887\u0889-\u088F\u0897-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u09FE\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3C-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C5C\u0C5D\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDC-\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1-\u0CF3\u0D00-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D81-\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECE\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1715\u171F-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u1820-\u1878\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1ABF-\u1ADD\u1AE0-\u1AEB\u1B00-\u1B4C\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CD0-\u1CD2\u1CD4-\u1CFA\u1D00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA827\uA82C\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF65-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDF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91\uDD93-\uDD98\uDDA0-\uDDA9\uDDB0-\uDDDB\uDDE0-\uDDE9\uDEE0-\uDEF6\uDF00-\uDF10\uDF12-\uDF3A\uDF3E-\uDF42\uDF50-\uDF5A\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD80E\uD80F\uD81C-\uD822\uD840-\uD868\uD86A-\uD86D\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD88C][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC40-\uDC55\uDC60-\uDFFF]|\uD810[\uDC00-\uDFFA]|\uD811[\uDC00-\uDE46]|\uD818[\uDD00-\uDD39]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDE70-\uDEBE\uDEC0-\uDEC9\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDD40-\uDD6C\uDD70-\uDD79\uDE40-\uDE7F\uDEA0-\uDEB8\uDEBB-\uDED3\uDF00-\uDF4A\uDF4F-\uDF87\uDF8F-\uDF9F\uDFE0\uDFE1\uDFE3\uDFE4\uDFF0-\uDFF6]|\uD823[\uDC00-\uDCD5\uDCFF-\uDD1E\uDD80-\uDDF2]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD833[\uDCF0-\uDCF9\uDF00-\uDF2D\uDF30-\uDF46]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00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\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEAD\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD88D[\uDC00-\uDC79]|\uDB40[\uDD00-\uDDEF])$/,t=/^(?:[\$A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088F\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF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\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61\uDF80-\uDF89\uDF8B\uDF8E\uDF90-\uDFB5\uDFB7\uDFD1\uDFD3]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8\uDFC0-\uDFE0]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDB0-\uDDDB\uDEE0-\uDEF2\uDF02\uDF04-\uDF10\uDF12-\uDF33\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD80E\uD80F\uD81C-\uD822\uD840-\uD868\uD86A-\uD86D\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD88C][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC41-\uDC46\uDC60-\uDFFF]|\uD810[\uDC00-\uDFFA]|\uD811[\uDC00-\uDE46]|\uD818[\uDD00-\uDD1D]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED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\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEAD\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD88D[\uDC00-\uDC79])(?:[\$0-9A-Z_a-z\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05EF-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u07FD\u0800-\u082D\u0840-\u085B\u0860-\u086A\u0870-\u0887\u0889-\u088F\u0897-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-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DC-\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1-\u0CF3\u0D00-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D81-\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECE\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1715\u171F-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u1820-\u1878\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1ABF-\u1ADD\u1AE0-\u1AEB\u1B00-\u1B4C\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CD0-\u1CD2\u1CD4-\u1CFA\u1D00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71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DF10\uDF12-\uDF3A\uDF3E-\uDF42\uDF50-\uDF5A\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD80E\uD80F\uD81C-\uD822\uD840-\uD868\uD86A-\uD86D\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD88C][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC40-\uDC55\uDC60-\uDFFF]|\uD810[\uDC00-\uDFFA]|\uD811[\uDC00-\uDE46]|\uD818[\uDD00-\uDD39]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDE70-\uDEBE\uDEC0-\uDEC9\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDD40-\uDD6C\uDD70-\uDD79\uDE40-\uDE7F\uDEA0-\uDEB8\uDEBB-\uDED3\uDF00-\uDF4A\uDF4F-\uDF87\uDF8F-\uDF9F\uDFE0\uDFE1\uDFE3\uDFE4\uDFF0-\uDFF6]|\uD823[\uDC00-\uDCD5\uDCFF-\uDD1E\uDD80-\uDDF2]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD833[\uDCF0-\uDCF9\uDF00-\uDF2D\uDF30-\uDF46]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDC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[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEAD\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD88D[\uDC00-\uDC79]|\uDB40[\uDD00-\uDDEF])*$/;function C(u){return u.replace(/[.+*?^${}()[\]|/\\]/g,"\\$&")}class E{constructor(u,D){this.tokens=u,this.originalPath=D}}Y.TokenData=E;class A extends TypeError{constructor(u,D){let e=u;D&&(e+=`: ${D}`),e+="; visit https://git.new/pathToRegexpError for info",super(e),this.originalPath=D}}function n(u,t={}){const{encodePath:C=D}=t,n=[...u];let r=0;return new E(function D(t){const E=[];let s="";function i(){s&&(E.push({type:"text",value:C(s)}),s="")}for(;r<n.length;){const C=n[r++];if(C===t)return i(),E;if("\\"!==C)if(":"!==C&&"*"!==C)if("{"!==C){if("}"===C||"("===C||")"===C||"["===C||"]"===C||"+"===C||"?"===C||"!"===C)throw new A(`Unexpected ${C} at index ${r-1}`,u);s+=C}else i(),E.push({type:"group",tokens:D("}")});else{const D=":"===C?"param":"wildcard";let t="";if(e.test(n[r]))do{t+=n[r++]}while(F.test(n[r]));else if('"'===n[r]){let D=r;for(;r<n.length;){if('"'===n[++r]){r++,D=0;break}"\\"===n[r]&&r++,t+=n[r]}if(D)throw new A(`Unterminated quote at index ${D}`,u)}if(!t)throw new A(`Missing parameter name at index ${r}`,u);i(),E.push({type:D,name:t})}else{if(r===n.length)throw new A(`Unexpected end after \\ at index ${r}`,u);s+=n[r++]}}if(t)throw new A(`Unexpected end at index ${r}, expected ${t}`,u);return i(),E}(""),u)}function r(u,e,F){const t=u.map((u=>function(u,e,F){if("text"===u.type)return()=>u.value;if("group"===u.type){const D=r(u.tokens,e,F);return(u,e)=>{const F=e.length,t=D(u,e);return e.length===F?t:(e.length=F,"")}}const t=F||D;if("wildcard"===u.type&&!1!==F)return(D,F)=>{const C=D[u.name];if(null==C)return F.push(u.name),"";if(!Array.isArray(C)||0===C.length)throw new TypeError(`Expected "${u.name}" to be a non-empty array`);let E="";for(let D=0;D<C.length;D++){if("string"!=typeof C[D])throw new TypeError(`Expected "${u.name}/${D}" to be a string`);D>0&&(E+=e),E+=t(C[D])}return E};return(D,e)=>{const F=D[u.name];if(null==F)return e.push(u.name),"";if("string"!=typeof F)throw new TypeError(`Expected "${u.name}" to be a string`);return t(F)}}(u,e,F)));return(u,D)=>{let e="";for(const F of t)e+=F(u,D);return e}}function s(D,e={}){const{delimiter:F=u,end:t=!0,sensitive:E=!1,trailing:r=!0}=e,s=[];let B="",a=0;!function u(D){if(Array.isArray(D)){for(const e of D)u(e);return}const t="object"==typeof D?D:n(D,e);i(t.tokens,0,[],(u=>{if(a>=256)throw new A("Too many path combinations",t.originalPath);a>0&&(B+="|"),B+=function(u,D,e,F){let t="",E="",n="",r=0,s=0,i=0;function B(e,F){for(;e<u.length;){const t=u[e++];if(t.type===F)return!0;if("text"===t.type&&t.value.includes(D))break}return!1}function a(D){let e="";for(;D<u.length;){const F=u[D++];if("text"!==F.type)break;e+=F.value}return e}for(;i<u.length;){const c=u[i++];if("text"!==c.type){if("param"!==c.type&&"wildcard"!==c.type)throw new TypeError(`Unknown token type: ${c.type}`);if(r&&!E)throw new A(`Missing text before "${c.name}" ${c.type}`,F);"param"===c.type?(t+=2&s?`(${o(D,E)}+)`:B(i,"wildcard")?`(${o(D,a(i))}+)`:1&s?`(${o(D,E)}+|${C(E)})`:`(${o(D,"")}+)`,s|=r=1):(t+=2&s?`(${o(E,"")}+)`:n?`(${o(n,"")}+|${o(D,"")}+)`:"([^]+)",n="",s|=r=2),e.push(c),E=""}else t+=C(c.value),E+=c.value,2===r&&(n+=c.value),c.value.includes(D)&&(s=0)}return t}(u,F,s,t.originalPath),a++}))}(D);let c=`^(?:${B})`;return r&&(c+="(?:"+C(F)+"$)?"),c+=t?"$":"(?="+C(F)+"|$)",{regexp:new RegExp(c,E?"":"i"),keys:s}}function i(u,D,e,F){for(;D<u.length;){const t=u[D++];if("group"!==t.type)e.push(t);else{const C=e.length;i(t.tokens,0,e,(e=>i(u,D,e,F))),e.length=C}}F(e)}function o(u,D){return D.length>u.length?o(D,u):(u===D&&(D=""),D.length>1?`(?:(?!${C(u)}|${C(D)})[^])`:u.length>1?`(?:(?!${C(u)})[^${C(D)}])`:`[^${C(u+D)}]`)}function B(u,D){let e="";for(;D<u.length;){const F=u[D++];if("text"!==F.type)if("group"!==F.type)if("param"!==F.type){if("wildcard"!==F.type)throw new TypeError(`Unknown token type: ${F.type}`);e+="*"+a(F.name,u[D])}else e+=":"+a(F.name,u[D]);else e+="{"+B(F.tokens,0)+"}";else e+=F.value.replace(/[{}()\[\]+?!:*\\]/g,"\\$&")}return e}function a(u,D){return t.test(u)?"text"===(null==D?void 0:D.type)&&F.test(D.value[0])?JSON.stringify(u):u:JSON.stringify(u)}return Y.PathError=A,Y}();const Du=Object.create(null);function eu(u){return u in Du||(Du[u]=uu.compile(u)),Du[u]}const Fu=Object.create(null);function tu(u){return u in Fu||(Fu[u]=Eu(uu.parse(u).tokens)),Fu[u]}const Cu=Object.create(null);function Eu(u){const D=new Set;for(const e of u)switch(e.type){case"param":case"wildcard":D.add(e.name);break;case"group":for(const u of Eu(e.tokens))D.add(u)}return D}const Au=Object.prototype,nu=Object.getPrototypeOf;const ru=/\btext\b|\bxml\b|\bhtml\b|\bjavascript\b|\bcss\b|\bcsv\b|\burlencoded\b/;function su(u){return u.json().catch((u=>{throw u.status=400,u}))}var iu=t("hasBody");class ou extends J{constructor(u){var D;super(null!=(D=u.fetch)?D:async function(...u){const D=e(this,iu)[iu]&&u.length<2?{}:u[0]||{},F=e(this,iu)[iu]?u[u.length-1]:void 0;return this.fetchResponse(this.url(D),await this.getRequestInit(F)).then((u=>this.parseResponse(u))).then((D=>this.process(D,...u)))},u),Object.defineProperty(this,iu,{writable:!0,value:void 0}),(!("sideEffect"in this)||"method"in u&&!("sideEffect"in u))&&(this.sideEffect="GET"!==u.method&&void 0!==u.method||void 0),void 0===this.method&&(this.method=this.sideEffect?"POST":"GET"),void 0===this.urlPrefix&&(this.urlPrefix=""),e(this,iu)[iu]=!("body"in this&&void 0===this.body||["GET","DELETE"].includes(this.method)),Object.defineProperty(this,"name",{get(){return"__name"in this?this.__name:this.urlPrefix+this.path}})}key(...u){return`${this.method} ${this.url(e(this,iu)[iu]&&u.length<2?{}:u[0]||{})}`}url(u={}){const D=tu(this.path),e={},F={};Object.keys(u).forEach((t=>{D.has(t)?void 0!==u[t]&&(e[t]=Array.isArray(u[t])?u[t].map(String):String(u[t])):F[t]=u[t]}));const t=eu(this.path)(e);return Object.keys(F).length?`${this.urlPrefix}${t}?${this.searchToString(F)}`:`${this.urlPrefix}${t}`}searchToString(u){return function(u){const D=new URLSearchParams(u);return D.sort(),D.toString()}(u)}getHeaders(u){return u}async getRequestInit(u){const e=null!==(F=u)&&"object"==typeof F&&nu(F)===Au;var F;e&&(u=JSON.stringify(u));const t=D({},this.requestInit,{method:this.method,signal:this.signal,body:u});return u&&!e||(t.headers=D({"Content-Type":"application/json"},t.headers)),t.headers=await this.getHeaders(t.headers),t}fetchResponse(u,D){return fetch(u,D).then((u=>{if(!u.ok)throw new Z(u);return u})).catch((u=>{throw u instanceof TypeError&&(u.status=500),u}))}parseResponse(u){if(204===u.status)return Promise.resolve(null);if(this.content)return"stream"===this.content?Promise.resolve(u.body):"json"===this.content?su(u):u[this.content]();const D=u.headers.get("content-type");if(null!=D&&D.includes("json"))return su(u);const e=D&&!ru.test(D);if("string"==typeof this.schema||void 0===this.schema||null===this.schema||this.process!==ou.prototype.process)return e?u.blob():u.text();if(e){const D=new Z(u);throw D.status=400,D.message=`Unexpected binary content-type for schema ${this.schema}`,D}return u.text().then((D=>{const e=new Z(u);throw e.status=404,e.message=`Unexpected text response for schema ${this.schema}`,e}))}process(u){return u}errorPolicy(u){return u.status>=500?"soft":void 0}get pathRegex(){return(u=this.path)in Cu||(Cu[u]=uu.pathToRegexp(u).regexp),Cu[u];var u}testKey(u){const D=this.method+" "+this.urlPrefix;if(!u.startsWith(D))return!1;let e=u.lastIndexOf("?");return-1===e&&(e=void 0),this.pathRegex.test(u.substring(D.length,e))}extend(u){class e extends this.constructor{}return Object.assign(e.prototype,this),new e(D({fetch:this.fetch},u))}paginated(u){if("string"==typeof u){const e=u;u=u=>{let F=D({},(function(u){if(null==u)throw new TypeError("Cannot destructure "+u)}(u),u));return delete F[e],[F]}}let e=!1;const F=H(this.schema,(D=>(e=!0,function(u,D){return Object.create(D,{name:{value:`Pagination(${D.schema})`},merge:{value:Q},pk:{value:function(e,F,t,C){return D.pk.call(this,e,F,t,u(...C))}}})}(u,D))));if(!e)throw new Error("Missing Collection");const t=this;return this.extend({schema:F,key(...D){return t.key.call(this,...u(...D))},name:this.name+".getPage"})}get getPage(){return this.paginated(this.paginationField)}get push(){return this.extend({method:"POST",schema:G(this.schema,(u=>u.push)),name:this.name+".create"})}get unshift(){return this.extend({method:"POST",schema:G(this.schema,(u=>u.unshift)),name:this.name+".create"})}get assign(){return this.extend({method:"POST",schema:G(this.schema,(u=>u.assign)),name:this.name+".create"})}get remove(){return this.extend({method:"PATCH",schema:G(this.schema,(u=>u.remove)),name:this.name+".remove"})}get move(){const u={method:"PATCH",schema:G(this.schema,(u=>u.move)),searchParams:void 0,name:this.name+".partialUpdate"};return this.movePath&&(u.path=this.movePath),this.extend(u)}}const Bu=["path","schema","Endpoint","Collection","nonFilterArgumentKeys","optimistic","paginationField"],{Invalidate:au,Collection:cu}=q;function hu(u){let{path:e,schema:F,Endpoint:t=ou,Collection:C=cu,nonFilterArgumentKeys:E,optimistic:A,paginationField:n}=u,r=j(u,Bu);const s=function(u){const D=Math.max(u.lastIndexOf(":"),u.lastIndexOf("*"));if(-1===D)throw new Error("Resource path requires at least one :parameter or *wildcard");let e=u.substring(0,D);return"/"===e[e.length-1]&&(e=e.substring(0,e.length-1)),e}(e),i=u=>`${null==F?void 0:F.name}.${u}`;function o(u,D,e){u[D]=u[D].extend(e)}const B=D({},r),a=D({},r),c=new t(D({},r,{path:e,schema:F,name:i("get")}));A&&(B.getOptimisticResponse=lu,a.getOptimisticResponse=function(u){return function(e,F,t){const C=e.get(u,F);if(!C)throw e.abort;return D({},F,C,mu(t))}}(F));const h=new t(D({},B,{paginationField:n,movePath:e,path:s,schema:new C([F],void 0===E?void 0:{nonFilterArgumentKeys:E}),name:i("getList")}));return{get:c,getList:h,create:h.push.extend({name:i("create")}),update:new t(D({},B,{path:e,schema:F,method:"PUT",name:i("update")})),partialUpdate:new t(D({},a,{path:e,schema:F,method:"PATCH",name:i("partialUpdate")})),delete:new t(D({},B,{path:e,schema:F.process||F._hoistable?new au(F):F,method:"DELETE",name:i("delete"),process:(u,D)=>u&&Object.keys(u).length?u:D,getOptimisticResponse:A?fu:void 0})),extend(...u){if("string"==typeof u[0]){const[e,F]=u;if(e in this){const u=D({},this);return o(u,e,F),u}return D({},this,{[e]:this.get.extend(F)})}if("function"==typeof u[0]){return D({},this,u[0](this))}const e=u[0],F=D({},this);for(const u in e)o(F,u,e[u]);return F}}}function lu(u,e,F){return D({},e,mu(F))}function fu(u,D){return D}function mu(u){return u instanceof FormData?Object.fromEntries(u.entries()):u}u.All=i,u.Collection=g,u.Endpoint=J,u.Entity=N,u.EntityMixin=_,u.ExtendableEndpoint=W,u.Invalidate=a,u.Lazy=K,u.NetworkError=Z,u.Query=z,u.RestEndpoint=ou,u.Scalar=R,u.Union=A,u.Values=n,u.createResource=hu,u.getUrlBase=eu,u.getUrlTokens=tu,u.hookifyResource=function(u,D){const e={};return Object.keys(u).forEach((F=>{const t=u[F];var C;void 0!==t.extend&&(e[`use${C=F,C.charAt(0).toUpperCase()+C.slice(1)}`]=()=>{const u=D();return t.extend({requestInit:u})})})),e},u.resource=hu,u.schema=q,u.unshift=h,u.validateRequired=function(u,D){let e="";if(Object.keys(D).some((D=>!Object.hasOwn(u,D)&&(e=D,!0))))return`Missing key ${e}`}}));
|
|
1
|
+
!function(u,D){"object"==typeof exports&&"undefined"!=typeof module?D(exports):"function"==typeof define&&define.amd?define(["exports"],D):D((u="undefined"!=typeof globalThis?globalThis:u||self).Rest={})}(this,(function(u){"use strict";function D(){return D=Object.assign?Object.assign.bind():function(u){for(var D=1;D<arguments.length;D++){var e=arguments[D];for(var F in e)({}).hasOwnProperty.call(e,F)&&(u[F]=e[F])}return u},D.apply(null,arguments)}function e(u,D){if(!{}.hasOwnProperty.call(u,D))throw new TypeError("attempted to use private field on non-instance");return u}var F=0;function t(u){return"__private_"+F+++"_"+u}function C(u){return!("function"!=typeof u.hasOwnProperty||!(Object.hasOwnProperty.call(u,"__ownerID")||u._map&&Object.hasOwnProperty.call(u._map,"__ownerID")))}class E{constructor(u,D){this.schema=void 0,D&&(this._schemaAttribute="string"==typeof D?u=>u[D]:D),this.define(u)}get isSingleSchema(){return!this._schemaAttribute}define(u){u._hoistable&&!this._schemaAttribute?(this.schema=u.schema,this._schemaAttribute=u._schemaAttribute):this.schema=u}getSchemaAttribute(u,D,e){return!this.isSingleSchema&&this._schemaAttribute(u,D,e)}inferSchema(u,D,e){if(this.isSingleSchema)return this.schema;const F=this.getSchemaAttribute(u,D,e);return this.schema[F]}schemaKey(){return this.isSingleSchema?this.schema.key:Object.values(this.schema).join(";")}normalizeValue(u,D,e,F){if(!u)return u;const t=this.isSingleSchema,C=t?this.schema:this.schema[this._schemaAttribute(u,D,e)];if(!C)return u;const E=F.visit(C,u,D,e);return t||null==E?E:{id:E,schema:this._schemaAttribute(u,D,e)}}denormalizeValue(u,D){const e=this.isSingleSchema,F=!e&&u&&(C(u)?u.get("schema"):u.schema);if(!e&&!F){if("object"==typeof u&&null!==u){const e=this.inferSchema(u,void 0,void 0);if(e)return D(e,u)}return u}const t=e?void 0:C(u)?u.get("id"):u.id;return D(e?this.schema:this.schema[F],t||u)}}class A extends E{constructor(u,D){if(!D)throw new Error('Expected option "schemaAttribute" not found on UnionSchema.');super(u,D),this._hoistable=!0}normalize(u,D,e,F){return this.normalizeValue(u,D,e,F)}denormalize(u,D){return this.denormalizeValue(u,D.unvisit)}queryKey(u,D){if(!u[0])return;const e=this.getSchemaAttribute(u[0],void 0,""),F=this.schema[e];if(F){const t=D(F,u);if(void 0===t)return;return{id:t,schema:e}}for(const e in this.schema){const F=D(this.schema[e],u);if(void 0!==F)return{id:F,schema:e}}}}class n extends E{normalize(u,D,e,F){const t={},C=Object.keys(u);for(let D=0;D<C.length;D++){const e=C[D],E=u[e];null!=E&&(t[e]=this.normalizeValue(E,u,e,F))}return t}denormalize(u,D){const e={},F=Object.keys(u);for(let t=0;t<F.length;t++){const C=F[t],E=u[C],A=this.denormalizeValue(E,D.unvisit);A&&"symbol"!=typeof A&&(e[C]=A)}return e}queryKey(u,D,e){}}const r=u=>void 0!==u&&"symbol"!=typeof u;class s extends E{normalize(u,D,e,F){const t=(u=>Array.isArray(u)?u:Object.keys(u).map((D=>u[D])))(u);return t.map((u=>this.normalizeValue(u,D,e,F)))}denormalize(u,D){return u.map?u.map((u=>this.denormalizeValue(u,D.unvisit))).filter(r):u}queryKey(u,D,e){}toJSON(){return[this.schema]}}class i extends s{constructor(u,D){super(u,D)}normalize(u,D,e,F){super.normalize(u,D,e,F)}queryKey(u,D,e){if(this.isSingleSchema){const u=e.getEntities(this.schema.key);return u?[...u.keys()]:e.INVALID}let F=!1;const t=Object.values(this.schema).flatMap((u=>{const D=e.getEntities(u.key);if(!D)return[];F=!0;const t=[];for(const[e,F]of D.entries())F&&"symbol"!=typeof F&&t.push({id:u.pk(F,void 0,e,[]),schema:this.getSchemaAttribute(F,void 0,e)});return t}));return F?t:e.INVALID}}function o(u,e,F){if(C(e))return function(u,D,e){let F;const t=Object.keys(u).reduce(((D,t)=>{const C=`${t}`,E=e(u[C],D.get(C));return"symbol"==typeof E&&(F=E),D.has(C)?D.set(C,E):D}),D);return null!=F?F:t}(u,e,F.unvisit);const t=D({},e),E=Object.keys(u);for(let D=0;D<E.length;D++){const e=E[D],C=F.unvisit(u[e],t[e]);if(void 0!==t[e]&&(t[e]=C),"symbol"==typeof C)return C}return t}class B{constructor(u){this.schema=void 0,this.define(u)}define(u){this.schema=Object.keys(u).reduce(((e,F)=>{const t=u[F];return D({},e,{[F]:t})}),this.schema||{})}normalize(...u){return((u,e,F,t,C)=>{const E=D({},e),A=Object.keys(u);for(let D=0;D<A.length;D++){const F=A[D],t=C.visit(u[F],e[F],e,F);void 0===t?delete E[F]:E[F]=t}return E})(this.schema,...u)}denormalize(u,D){return o(this.schema,u,D)}queryKey(u,D){return function(u,D,e){const F={},t=Object.keys(u);for(let C=0;C<t.length;C++){const E=t[C];F[E]=e(u[E],D)}return F}(this.schema,u,D)}}let a=class extends E{constructor(u,D){super(u,D)}get key(){return this.schemaKey()}normalize(u,D,e,F){const t=F.args,C=this.inferSchema(u,D,e);if(!C)return u;let E;if("string"==typeof u||"number"==typeof u)E=u;else{const F=C.process(u,D,e,t);E=C.pk(null!=F?F:u,D,e,t)}return E=`${E}`,F.invalidate(C,E),this.isSingleSchema?E:{id:E,schema:this.getSchemaAttribute(u,D,e)}}queryKey(u,D,e){}denormalize(u,D){return this.denormalizeValue(u,D.unvisit)}_denormalizeNullable(){return{}}_normalizeNullable(){return{}}};const c=(u,D)=>[...u,...D],h=(u,D)=>[...D,...u],l=(u,e)=>D({},u,e),f=(u,D)=>"object"==typeof u&&"object"==typeof D?u.id===D.id&&u.schema===D.schema:u===D,m=(u,D)=>u.filter((u=>!D.some((D=>f(u,D))))),d=(u,D)=>{const e=Object.values(D),F={};for(const[D,t]of Object.entries(u))e.some((u=>f(t,u)))||(F[D]=t);return F},y=u=>[...u],p=u=>D({},u);class g{addWith(u,D){return b(this,u,D)}moveWith(u){return w(this,u,this.schema instanceof s?m:d)}createCollectionFilter(...u){return D=>Object.entries(D).every((([D,e])=>{var F;return this.nonFilterArgumentKeys(D)||`${u[0][D]}`===e||`${null==(F=u[1])?void 0:F[D]}`===e}))}nonFilterArgumentKeys(u){return u.startsWith("order")}constructor(u,e){var F;if(this.schema=Array.isArray(u)?new s(u[0]):u,this.argsKey=null!=(F=null==e?void 0:e.argsKey)?F:u=>D({},u),null!=e&&e.nestKey&&(this.nestKey=e.nestKey),this.key=function(u){if(u instanceof s)return`[${u.schemaKey()}]`;if(u instanceof n)return`{${u.schemaKey()}}`;return`(${u.schemaKey()})`}(this.schema),null!=e&&e.nonFilterArgumentKeys){const{nonFilterArgumentKeys:u}=e;"function"==typeof u?this.nonFilterArgumentKeys=u:u instanceof RegExp?this.nonFilterArgumentKeys=D=>u.test(D):this.nonFilterArgumentKeys=D=>u.includes(D)}else null!=e&&e.createCollectionFilter&&(this.createCollectionFilter=e.createCollectionFilter.bind(this));this.schema instanceof s?(this.createIfValid=y,this.push=b(this,c),this.unshift=b(this,h),this.remove=b(this,m),this.move=w(this,c,m)):u instanceof n&&(this.createIfValid=p,this.assign=b(this,l),this.remove=b(this,d),this.move=w(this,l,d))}get cacheWith(){return this.schema.schema}toString(){return this.key}toJSON(){return{key:this.key,schema:this.schema.schema}}pk(u,D,e,F,t){const C=t&&this.nestKey?this.nestKey(D,e):this.argsKey(...F);for(const u in C)["number","boolean"].includes(typeof C[u])&&(C[u]=`${C[u]}`);return function(u){const D=Object.keys(u).sort(),e={};for(const F of D)e[F]=u[F];return JSON.stringify(e)}(C)}normalize(u,D,e,F,t){const C=F.args,E=this.schema.normalize(u,D,e,F),A=this.pk(E,D,e,C,t);return F.mergeEntity(this,A,E),A}merge(u,D){return D}shouldReorder(u,D,e,F){return D.fetchedAt<u.fetchedAt}mergeWithStore(u,D,e,F){return this.shouldReorder(u,D,e,F)?this.merge(F,e):this.merge(e,F)}mergeMetaWithStore(u,D,e,F){return this.shouldReorder(u,D,e,F)?u:D}queryKey(u,D,e){const F=this.pk(void 0,void 0,"",u);if(e.getEntity(this.key,F))return F}denormalize(u,D){return this.schema.denormalize(u,D)}}function v(u,D,e){const F={merge:{value:D},normalize:{value:e},queryKey:{value:k}};return u.schema instanceof s&&(F.createIfValid={value:$},F.denormalize={value:S}),F}function b(u,D,e){const F=v(u,D,x);return e&&(F.createCollectionFilter={value:e}),Object.create(u,F)}function k(){}function x(u,D,e,F,t){const C=F.args;F.visit;const E=this.schema.normalize(this.schema instanceof s&&!Array.isArray(u)?[u]:u,D,e,F),A=this.createCollectionFilter(...C),n=F.getEntities(this.key);if(n)for(const u of n.keys())A(JSON.parse(u))&&F.mergeEntity(this,u,E);return E}function w(u,D,e){const F=Object.create(u,v(u,D,(function(u,D,e,F,t){return O.call(this,this._removeSchema,u,D,e,F,t)})));return F._removeSchema=Object.create(F,{merge:{value:e}}),F}function O(u,e,F,t,C,E){const A=C.args,n=this.schema instanceof s,r=this.schema.schema,i=(n&&Array.isArray(e)?e:[e]).map((u=>{const D=r.process(u,F,t,A),e=`${r.pk(D,F,t,A)}`;return{pk:e,processed:D,existingEntity:e?C.getEntity(r.key,e):void 0}})),o=n?Array.isArray(e)?e:[e]:i[0].pk?{[i[0].pk]:e}:e,B=this.schema.normalize(o,F,t,C),a=A[A.length-1],c=C.getEntities(this.key);if(c)for(let e=0;e<i.length;e++){const{processed:F,existingEntity:t}=i[e],E=n?[B[e]]:B,r=n?D({},a,F):a,s=t?D({},t,r):r,o=t?this.createCollectionFilter(D({},A[0],t),t):void 0,h=this.createCollectionFilter(D({},A[0],r),s);for(const D of c.keys()){const e=JSON.parse(D),F=null==o?void 0:o(e),t=h(e);F&&!t?C.mergeEntity(u,D,E):t&&!F&&C.mergeEntity(this,D,E)}}return B}function $(u){return Array.isArray(u)?[...u]:D({},u)}function S(u,D){return Array.isArray(u)?this.schema.denormalize(u,D):this.schema.denormalize([u],D)[0]}function j(u,D){if(null==u)return{};var e={};for(var F in u)if({}.hasOwnProperty.call(u,F)){if(-1!==D.indexOf(F))continue;e[F]=u[F]}return e}const P=["pk","schema","key"];function _(u,e={}){class F extends u{static toString(){return this.key}static toJSON(){return{key:this.key,schema:this.schema}}static pk(u,D,e,F){return this.prototype.pk.call(u,D,e,F)}static shouldUpdate(u,D,e,F){return!0}static shouldReorder(u,D,e,F){return D.fetchedAt<u.fetchedAt}static merge(u,e){return D({},u,e)}static mergeWithStore(u,D,e,F){return this.shouldUpdate(u,D,e,F)?typeof F!=typeof e?F:this.shouldReorder(u,D,e,F)?this.merge(F,e):this.merge(e,F):e}static mergeMetaWithStore(u,D,e,F){return this.shouldReorder(u,D,e,F)?u:D}static fromJS(u={}){const D=new this(u);return Object.assign(D,u),D}static createIfValid(u){if(!this.validate(u))return this.fromJS(u)}static process(u,e,F,t){return D({},u)}static normalize(u,D,e,F){const t=F.args,C=F.visit,E=this.process(u,D,e,t);let A;if(void 0===E)return A=`${this.pk(u,D,e,t)}`,F.invalidate(this,A),A;if(A=this.pk(E,D,e,t),A=void 0===A||""===A||"undefined"===A?`MISS-${Math.random()}`:`${A}`,F.checkLoop(this.key,A,u))return A;!function(u){if(u){const D=new Error(u);throw D.status=400,D}}(this.validate(E));const n=Object.keys(this.schema);for(let u=0;u<n.length;u++){const D=n[u];Object.hasOwn(E,D)&&(E[D]=C(this.schema[D],E[D],E,D))}return F.mergeEntity(this,A,E),A}static validate(u){}static queryKey(u,D,e){if(!u[0])return;const F=function(u,D,e){if(["string","number"].includes(typeof D[0]))return`${D[0]}`;const F=u.pk(D[0],void 0,"",D);if(void 0!==F&&""!==F)return F;const t=(C=D[0],E=u.indexes,E?E.find((u=>Object.hasOwn(C,u))):void 0);var C,E;if(!t)return;const A=D[0][t];return e.getIndex(u.key,t,A)}(this,u,e);return F&&e.getEntity(this.key,F)?F:void 0}static denormalize(u,D){if("symbol"==typeof u)return u;for(const e of Object.keys(this.schema)){const F=this.schema[e],t=D.unvisit(F,u[e]);if("symbol"==typeof t){if(this.defaults[e])return t;u[e]=void 0}else u[e]=t}return u}static get defaults(){return Object.hasOwn(this,"__defaults")||Object.defineProperty(this,"__defaults",{value:new this,writable:!0,configurable:!0}),this.__defaults}}const t=j(e,P);if(Object.assign(F,t),"schema"in e?F.schema=e.schema:u.schema||(F.schema={}),"pk"in e?"function"==typeof e.pk?F.prototype.pk=function(u,D){return e.pk(this,u,D)}:F.prototype.pk=function(){return this[e.pk]}:"function"!=typeof u.prototype.pk&&(F.prototype.pk=function(){return this.id}),"key"in e)Object.defineProperty(F,"key",{value:e.key,configurable:!0,writable:!0,enumerable:!0});else if(!("key"in u)){function C(u){Object.defineProperty(this,"key",{value:u,writable:!0,enumerable:!0,configurable:!0})}const E=function(){return"EntityMixin"===this.name?u.name:this.name},A="undefined"!=typeof document&&document.CLS_MANGLE?function(){return null==document.CLS_MANGLE||document.CLS_MANGLE(this),Object.defineProperty(F,"key",{get:E,set:C,enumerable:!0,configurable:!0}),E.call(this)}:E;Object.defineProperty(F,"key",{get:A,set:C,enumerable:!0,configurable:!0})}return F}class z{constructor(u,D){this.schema=u,this.process=D}normalize(...u){return this.schema.normalize(...u)}denormalize(u,D){const e=D.unvisit(this.schema,u);return"symbol"==typeof e?e:this.process(e,...D.args)}queryKey(u,D){return D(this.schema,u)}}class K{constructor(u){this._query=void 0,this.schema=u}normalize(u,D,e,F){return F.visit(this.schema,u,D,e)}denormalize(u,D){return u}queryKey(u,D,e){}get query(){return this._query||(this._query=new T(this.schema)),this._query}}class T{constructor(u){this.schema=u}denormalize(u,D){return D.unvisit(this.schema,u)}queryKey(u,D,e){const F=this.schema;return"function"==typeof F.queryKey&&F.key?F.queryKey(u,D,e):u[0]}}class R{constructor(u){var D;this.key=void 0,this.lensSelector=void 0,this.entity=void 0,this.entityKey=void 0,this.acceptsPrimitives=!0,this.key=`Scalar(${u.key})`,this.lensSelector=u.lens,this.entity=u.entity,this.entityKey=null==(D=u.entity)?void 0:D.key}entityPk(u,D,e,F){var t;return void 0!==e&&null!=D&&D[e]===u?e:null==(t=this.entity)||null==t.pk?void 0:t.pk(u,D,e,F)}createIfValid(u){return D({},u)}merge(u,e){return D({},u,e)}shouldReorder(u,D,e,F){return D.fetchedAt<u.fetchedAt}mergeWithStore(u,D,e,F){return this.shouldReorder(u,D,e,F)?this.merge(F,e):this.merge(e,F)}mergeMetaWithStore(u,D,e,F){return this.shouldReorder(u,D,e,F)?u:D}normalize(u,e,F,t,C){const E=t.args,A=this.lensSelector(E);if(void 0===A)throw new Error(`${this.key}: lens returned undefined during normalize. Ensure endpoint args contain the lens value.`);if("function"==typeof C&&C.pk){const D=C.key,n=`${C.pk(e,void 0,void 0,E)}`;return t.mergeEntity(this,`${D}|${n}|${A}`,{[F]:u}),[n,F,D]}if(void 0===this.entityKey)throw new Error("Scalar used standalone (e.g. inside `schema.Values`) requires an `entity` option to bind it to an Entity class.");const n=this.entityPk(u,e,F,E);if(void 0===n)throw new Error(`${this.key}: cannot derive entity pk for cell. Provide items with an \`id\` field, a pk-keyed map key, or override Scalar.entityPk().`);const r=`${this.entityKey}|${n}|${A}`;return t.mergeEntity(this,r,D({},u)),r}denormalize(u,D){if(!u||"object"!=typeof u&&"string"!=typeof u)return u;if(Array.isArray(u)){const e=D.argsKey(this.lensSelector);if(void 0===e)return;const F=D.unvisit(this,`${u[2]}|${u[0]}|${e}`);return F&&"symbol"!=typeof F?F[u[1]]:void 0}return"object"==typeof u?u:D.unvisit(this,u)}queryKey(u,D,e){const F=this.lensSelector(u);if(void 0===F)return;const t=e.getEntities(this.key);if(!t)return;const C=[];for(const[u,D]of t.entries()){if(!D||"symbol"==typeof D)continue;const e=u.lastIndexOf("|");-1!==e&&u.slice(e+1)===F&&C.push(u)}return C.length?C:void 0}}var q=Object.freeze({__proto__:null,All:i,Array:s,Collection:g,Entity:_,EntityMixin:_,Invalidate:a,Lazy:K,Object:B,Query:z,Scalar:R,Union:A,Values:n,unshift:h});const U=class{};class I extends(_(U)){static process(u,D,e,F){return super.process(u,D,e,F)}}var N;const M="undefined"!=typeof document;let L=M&&!(null!=(N=document.querySelector("meta[http-equiv='Content-Security-Policy']"))&&N.getAttribute("content"));try{L||Function()}catch(u){L=!0,M&&console.error("Content Security Policy: The previous CSP log can be safely ignored - @data-client/endpoint will use setPrototypeOf instead")}var V;class J extends Function{constructor(u,D){let e,F;return L?(e=(...u)=>e.fetch(...u),Object.setPrototypeOf(e,new.target.prototype)):(super("return arguments.callee.fetch.apply(arguments.callee, arguments)"),e=this),u&&(e.fetch=u),D&&"name"in D||!u||!u.name||"anonymous"===u.name||(F=u.name),Object.defineProperty(e,"name",{get(){return F||this.__name},set(u){this.__name=u}}),Object.assign(e,D),e}key(...u){return`${this.name} ${JSON.stringify(u)}`}testKey(u){return u.startsWith(this.name)}bind(u,...D){const e=this.fetch,F=this.key;return this.extend({fetch(){return e.apply(null!=u?u:this,D)},key(){return F.apply(this,D)}})}extend(u){class D extends this.constructor{}return Object.assign(D.prototype,this),new D(u.fetch,u)}}V=J,(()=>{if("undefined"!=typeof document&&document.FUNC_MANGLE){const u=V.prototype.key;V.prototype.key=function(...D){return null==document.FUNC_MANGLE||document.FUNC_MANGLE(this),this.prototype.key=u,u.call(this,...D)}}})();const W=J;function G(u,e){if("object"!=typeof u||void 0===u||Array.isArray(u))return;if(u instanceof g)return e(u);const F=D({},u instanceof B?u.schema:u);for(const u in F){if(!F[u])continue;const D=G(F[u],e);if(D)return D}}function H(u,e){if("object"!=typeof u||void 0===u)return u;if(u instanceof g)return e(u);const F=D({},u instanceof B?u.schema:u);for(const u in F)F[u]&&(F[u]=H(F[u],e));return F}Object.hasOwn=Object.hasOwn||function(u,D){return Object.prototype.hasOwnProperty.call(u,D)};class Z extends Error{constructor(u){super(`${u.url}: ${u.statusText||`Status not 'ok': ${u.status}`}`),this.name="NetworkError",this.status=u.status,this.response=u}toJSON(){return{name:this.name,status:this.status,message:this.message,url:this.response.url}}}function Q(u,D){const e=new Set(u),F=[...u];for(const u of D)e.has(u)||F.push(u);return F}var X,Y={};var uu=function(){if(X)return Y;X=1,Object.defineProperty(Y,"__esModule",{value:!0}),Y.PathError=Y.TokenData=void 0,Y.parse=n,Y.compile=function(D,e={}){const{encode:F=encodeURIComponent,delimiter:t=u}=e,C=r(("object"==typeof D?D:n(D,e)).tokens,t,F);return function(u={}){const D=[],e=C(u,D);if(D.length)throw new TypeError(`Missing parameters: ${D.join(", ")}`);return e}},Y.match=function(e,F={}){const{decode:t=decodeURIComponent,delimiter:C=u}=F,{regexp:E,keys:A}=s(e,F),n=A.map((u=>!1===t?D:"param"===u.type?t:u=>u.split(C).map(t)));return function(u){const D=E.exec(u);if(!D)return!1;const e=D[0],F=Object.create(null);for(let u=1;u<D.length;u++){if(void 0===D[u])continue;const e=A[u-1],t=n[u-1];F[e.name]=t(D[u])}return{path:e,params:F}}},Y.pathToRegexp=s,Y.stringify=function(u){return B(u.tokens,0)};const u="/",D=u=>u,e=/^(?:[\$A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088F\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50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DE3F\uDE40\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61\uDF80-\uDF89\uDF8B\uDF8E\uDF90-\uDFB5\uDFB7\uDFD1\uDFD3]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8\uDFC0-\uDFE0]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDB0-\uDDDB\uDEE0-\uDEF2\uDF02\uDF04-\uDF10\uDF12-\uDF33\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD80E\uD80F\uD81C-\uD822\uD840-\uD868\uD86A-\uD86D\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD88C][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC41-\uDC46\uDC60-\uDFFF]|\uD810[\uDC00-\uDFFA]|\uD811[\uDC00-\uDE46]|\uD818[\uDD00-\u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FEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEAD\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD88D[\uDC00-\uDC79])$/,F=/^(?:[\$0-9A-Z_a-z\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05EF-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u07FD\u0800-\u082D\u0840-\u085B\u0860-\u086A\u0870-\u0887\u0889-\u088F\u0897-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u09FE\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3C-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C5C\u0C5D\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDC-\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1-\u0CF3\u0D00-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D81-\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECE\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1715\u171F-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u1820-\u1878\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1ABF-\u1ADD\u1AE0-\u1AEB\u1B00-\u1B4C\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CD0-\u1CD2\u1CD4-\u1CFA\u1D00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA827\uA82C\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF65-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDF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\uDD98\uDDA0-\uDDA9\uDDB0-\uDDDB\uDDE0-\uDDE9\uDEE0-\uDEF6\uDF00-\uDF10\uDF12-\uDF3A\uDF3E-\uDF42\uDF50-\uDF5A\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD80E\uD80F\uD81C-\uD822\uD840-\uD868\uD86A-\uD86D\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD88C][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC40-\uDC55\uDC60-\uDFFF]|\uD810[\uDC00-\uDFFA]|\uD811[\uDC00-\uDE46]|\uD818[\uDD00-\uDD39]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDE70-\uDEBE\uDEC0-\uDEC9\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDD40-\uDD6C\uDD70-\uDD79\uDE40-\uDE7F\uDEA0-\uDEB8\uDEBB-\uDED3\uDF00-\uDF4A\uDF4F-\uDF87\uDF8F-\uDF9F\uDFE0\uDFE1\uDFE3\uDFE4\uDFF0-\uDFF6]|\uD823[\uDC00-\uDCD5\uDCFF-\uDD1E\uDD80-\uDDF2]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD833[\uDCF0-\uDCF9\uDF00-\uDF2D\uDF30-\uDF46]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\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uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEAD\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD88D[\uDC00-\uDC79]|\uDB40[\uDD00-\uDDEF])$/,t=/^(?:[\$A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088F\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1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uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61\uDF80-\uDF89\uDF8B\uDF8E\uDF90-\uDFB5\uDFB7\uDFD1\uDFD3]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8\uDFC0-\uDFE0]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDB0-\uDDDB\uDEE0-\uDEF2\uDF02\uDF04-\uDF10\uDF12-\uDF33\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD80E\uD80F\uD81C-\uD822\uD840-\uD868\uD86A-\uD86D\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD88C][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC41-\uDC46\uDC60-\uDFFF]|\uD810[\uDC00-\uDFFA]|\uD811[\uDC00-\uDE46]|\uD818[\uDD00-\uDD1D]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\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|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEAD\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD88D[\uDC00-\uDC79])(?:[\$0-9A-Z_a-z\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05EF-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u07FD\u0800-\u082D\u0840-\u085B\u0860-\u086A\u0870-\u0887\u0889-\u088F\u0897-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u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DE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1-\u0CF3\u0D00-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D81-\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECE\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1715\u171F-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u1820-\u1878\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1ABF-\u1ADD\u1AE0-\u1AEB\u1B00-\u1B4C\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CD0-\u1CD2\u1CD4-\u1CFA\u1D00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\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12-\uDF3A\uDF3E-\uDF42\uDF50-\uDF5A\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD80E\uD80F\uD81C-\uD822\uD840-\uD868\uD86A-\uD86D\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD88C][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC40-\uDC55\uDC60-\uDFFF]|\uD810[\uDC00-\uDFFA]|\uD811[\uDC00-\uDE46]|\uD818[\uDD00-\uDD39]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDE70-\uDEBE\uDEC0-\uDEC9\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDD40-\uDD6C\uDD70-\uDD79\uDE40-\uDE7F\uDEA0-\uDEB8\uDEBB-\uDED3\uDF00-\uDF4A\uDF4F-\uDF87\uDF8F-\uDF9F\uDFE0\uDFE1\uDFE3\uDFE4\uDFF0-\uDFF6]|\uD823[\uDC00-\uDCD5\uDCFF-\uDD1E\uDD80-\uDDF2]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD833[\uDCF0-\uDCF9\uDF00-\uDF2D\uDF30-\uDF46]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCB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\uDEDF\uDF00-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEAD\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD88D[\uDC00-\uDC79]|\uDB40[\uDD00-\uDDEF])*$/;function C(u){return u.replace(/[.+*?^${}()[\]|/\\]/g,"\\$&")}class E{constructor(u,D){this.tokens=u,this.originalPath=D}}Y.TokenData=E;class A extends TypeError{constructor(u,D){let e=u;D&&(e+=`: ${D}`),e+="; visit https://git.new/pathToRegexpError for info",super(e),this.originalPath=D}}function n(u,t={}){const{encodePath:C=D}=t,n=[...u];let r=0;return new E(function D(t){const E=[];let s="";function i(){s&&(E.push({type:"text",value:C(s)}),s="")}for(;r<n.length;){const C=n[r++];if(C===t)return i(),E;if("\\"!==C)if(":"!==C&&"*"!==C)if("{"!==C){if("}"===C||"("===C||")"===C||"["===C||"]"===C||"+"===C||"?"===C||"!"===C)throw new A(`Unexpected ${C} at index ${r-1}`,u);s+=C}else i(),E.push({type:"group",tokens:D("}")});else{const D=":"===C?"param":"wildcard";let t="";if(e.test(n[r]))do{t+=n[r++]}while(F.test(n[r]));else if('"'===n[r]){let D=r;for(;r<n.length;){if('"'===n[++r]){r++,D=0;break}"\\"===n[r]&&r++,t+=n[r]}if(D)throw new A(`Unterminated quote at index ${D}`,u)}if(!t)throw new A(`Missing parameter name at index ${r}`,u);i(),E.push({type:D,name:t})}else{if(r===n.length)throw new A(`Unexpected end after \\ at index ${r}`,u);s+=n[r++]}}if(t)throw new A(`Unexpected end at index ${r}, expected ${t}`,u);return i(),E}(""),u)}function r(u,e,F){const t=u.map((u=>function(u,e,F){if("text"===u.type)return()=>u.value;if("group"===u.type){const D=r(u.tokens,e,F);return(u,e)=>{const F=e.length,t=D(u,e);return e.length===F?t:(e.length=F,"")}}const t=F||D;if("wildcard"===u.type&&!1!==F)return(D,F)=>{const C=D[u.name];if(null==C)return F.push(u.name),"";if(!Array.isArray(C)||0===C.length)throw new TypeError(`Expected "${u.name}" to be a non-empty array`);let E="";for(let D=0;D<C.length;D++){if("string"!=typeof C[D])throw new TypeError(`Expected "${u.name}/${D}" to be a string`);D>0&&(E+=e),E+=t(C[D])}return E};return(D,e)=>{const F=D[u.name];if(null==F)return e.push(u.name),"";if("string"!=typeof F)throw new TypeError(`Expected "${u.name}" to be a string`);return t(F)}}(u,e,F)));return(u,D)=>{let e="";for(const F of t)e+=F(u,D);return e}}function s(D,e={}){const{delimiter:F=u,end:t=!0,sensitive:E=!1,trailing:r=!0}=e,s=[];let B="",a=0;!function u(D){if(Array.isArray(D)){for(const e of D)u(e);return}const t="object"==typeof D?D:n(D,e);i(t.tokens,0,[],(u=>{if(a>=256)throw new A("Too many path combinations",t.originalPath);a>0&&(B+="|"),B+=function(u,D,e,F){let t="",E="",n="",r=0,s=0,i=0;function B(e,F){for(;e<u.length;){const t=u[e++];if(t.type===F)return!0;if("text"===t.type&&t.value.includes(D))break}return!1}function a(D){let e="";for(;D<u.length;){const F=u[D++];if("text"!==F.type)break;e+=F.value}return e}for(;i<u.length;){const c=u[i++];if("text"!==c.type){if("param"!==c.type&&"wildcard"!==c.type)throw new TypeError(`Unknown token type: ${c.type}`);if(r&&!E)throw new A(`Missing text before "${c.name}" ${c.type}`,F);"param"===c.type?(t+=2&s?`(${o(D,E)}+)`:B(i,"wildcard")?`(${o(D,a(i))}+)`:1&s?`(${o(D,E)}+|${C(E)})`:`(${o(D,"")}+)`,s|=r=1):(t+=2&s?`(${o(E,"")}+)`:n?`(${o(n,"")}+|${o(D,"")}+)`:"([^]+)",n="",s|=r=2),e.push(c),E=""}else t+=C(c.value),E+=c.value,2===r&&(n+=c.value),c.value.includes(D)&&(s=0)}return t}(u,F,s,t.originalPath),a++}))}(D);let c=`^(?:${B})`;return r&&(c+="(?:"+C(F)+"$)?"),c+=t?"$":"(?="+C(F)+"|$)",{regexp:new RegExp(c,E?"":"i"),keys:s}}function i(u,D,e,F){for(;D<u.length;){const t=u[D++];if("group"!==t.type)e.push(t);else{const C=e.length;i(t.tokens,0,e,(e=>i(u,D,e,F))),e.length=C}}F(e)}function o(u,D){return D.length>u.length?o(D,u):(u===D&&(D=""),D.length>1?`(?:(?!${C(u)}|${C(D)})[^])`:u.length>1?`(?:(?!${C(u)})[^${C(D)}])`:`[^${C(u+D)}]`)}function B(u,D){let e="";for(;D<u.length;){const F=u[D++];if("text"!==F.type)if("group"!==F.type)if("param"!==F.type){if("wildcard"!==F.type)throw new TypeError(`Unknown token type: ${F.type}`);e+="*"+a(F.name,u[D])}else e+=":"+a(F.name,u[D]);else e+="{"+B(F.tokens,0)+"}";else e+=F.value.replace(/[{}()\[\]+?!:*\\]/g,"\\$&")}return e}function a(u,D){return t.test(u)?"text"===(null==D?void 0:D.type)&&F.test(D.value[0])?JSON.stringify(u):u:JSON.stringify(u)}return Y.PathError=A,Y}();const Du=Object.create(null);function eu(u){return u in Du||(Du[u]=uu.compile(u)),Du[u]}const Fu=Object.create(null);function tu(u){return u in Fu||(Fu[u]=Eu(uu.parse(u).tokens)),Fu[u]}const Cu=Object.create(null);function Eu(u){const D=new Set;for(const e of u)switch(e.type){case"param":case"wildcard":D.add(e.name);break;case"group":for(const u of Eu(e.tokens))D.add(u)}return D}const Au=Object.prototype,nu=Object.getPrototypeOf;const ru=/\btext\b|\bxml\b|\bhtml\b|\bjavascript\b|\bcss\b|\bcsv\b|\burlencoded\b/;function su(u){return u.json().catch((u=>{throw u.status=400,u}))}var iu=t("hasBody");class ou extends J{constructor(u){var D;super(null!=(D=u.fetch)?D:async function(...u){const D=e(this,iu)[iu]&&u.length<2?{}:u[0]||{},F=e(this,iu)[iu]?u[u.length-1]:void 0;return this.fetchResponse(this.url(D),await this.getRequestInit(F)).then((u=>this.parseResponse(u))).then((D=>this.process(D,...u)))},u),Object.defineProperty(this,iu,{writable:!0,value:void 0}),(!("sideEffect"in this)||"method"in u&&!("sideEffect"in u))&&(this.sideEffect="GET"!==u.method&&void 0!==u.method||void 0),void 0===this.method&&(this.method=this.sideEffect?"POST":"GET"),void 0===this.urlPrefix&&(this.urlPrefix=""),e(this,iu)[iu]=!("body"in this&&void 0===this.body||["GET","DELETE"].includes(this.method)),Object.defineProperty(this,"name",{get(){return"__name"in this?this.__name:this.urlPrefix+this.path}})}key(...u){return`${this.method} ${this.url(e(this,iu)[iu]&&u.length<2?{}:u[0]||{})}`}url(u={}){const D=tu(this.path),e={},F={};Object.keys(u).forEach((t=>{D.has(t)?void 0!==u[t]&&(e[t]=Array.isArray(u[t])?u[t].map(String):String(u[t])):F[t]=u[t]}));const t=eu(this.path)(e);return Object.keys(F).length?`${this.urlPrefix}${t}?${this.searchToString(F)}`:`${this.urlPrefix}${t}`}searchToString(u){return function(u){const D=new URLSearchParams(u);return D.sort(),D.toString()}(u)}getHeaders(u){return u}async getRequestInit(u){const e=null!==(F=u)&&"object"==typeof F&&nu(F)===Au||Array.isArray(u);var F;e&&(u=JSON.stringify(u));const t=D({},this.requestInit,{method:this.method,signal:this.signal,body:u});return u&&!e||(t.headers=D({"Content-Type":"application/json"},t.headers)),t.headers=await this.getHeaders(t.headers),t}fetchResponse(u,D){return fetch(u,D).then((u=>{if(!u.ok)throw new Z(u);return u})).catch((u=>{throw u instanceof TypeError&&(u.status=500),u}))}parseResponse(u){if(204===u.status)return Promise.resolve(null);if(this.content)return"stream"===this.content?Promise.resolve(u.body):"json"===this.content?su(u):u[this.content]();const D=u.headers.get("content-type");if(null!=D&&D.includes("json"))return su(u);const e=D&&!ru.test(D);if("string"==typeof this.schema||void 0===this.schema||null===this.schema||this.process!==ou.prototype.process)return e?u.blob():u.text();if(e){const D=new Z(u);throw D.status=400,D.message=`Unexpected binary content-type for schema ${this.schema}`,D}return u.text().then((D=>{const e=new Z(u);throw e.status=404,e.message=`Unexpected text response for schema ${this.schema}`,e}))}process(u){return u}errorPolicy(u){return u.status>=500?"soft":void 0}get pathRegex(){return(u=this.path)in Cu||(Cu[u]=uu.pathToRegexp(u).regexp),Cu[u];var u}testKey(u){const D=this.method+" "+this.urlPrefix;if(!u.startsWith(D))return!1;let e=u.lastIndexOf("?");return-1===e&&(e=void 0),this.pathRegex.test(u.substring(D.length,e))}extend(u){class e extends this.constructor{}return Object.assign(e.prototype,this),new e(D({fetch:this.fetch},u))}paginated(u){if("string"==typeof u){const e=u;u=u=>{let F=D({},(function(u){if(null==u)throw new TypeError("Cannot destructure "+u)}(u),u));return delete F[e],[F]}}let e=!1;const F=H(this.schema,(D=>(e=!0,function(u,D){return Object.create(D,{name:{value:`Pagination(${D.schema})`},merge:{value:Q},pk:{value:function(e,F,t,C){return D.pk.call(this,e,F,t,u(...C))}}})}(u,D))));if(!e)throw new Error("Missing Collection");const t=this;return this.extend({schema:F,key(...D){return t.key.call(this,...u(...D))},name:this.name+".getPage"})}get getPage(){return this.paginated(this.paginationField)}get push(){return this.extend({method:"POST",schema:G(this.schema,(u=>u.push)),name:this.name+".create"})}get unshift(){return this.extend({method:"POST",schema:G(this.schema,(u=>u.unshift)),name:this.name+".create"})}get assign(){return this.extend({method:"POST",schema:G(this.schema,(u=>u.assign)),name:this.name+".create"})}get remove(){return this.extend({method:"PATCH",schema:G(this.schema,(u=>u.remove)),name:this.name+".partialUpdate"})}get move(){const u={method:"PATCH",schema:G(this.schema,(u=>u.move)),searchParams:void 0,name:this.name+".partialUpdate"};return this.movePath&&(u.path=this.movePath),this.extend(u)}}const Bu=["path","schema","Endpoint","Collection","nonFilterArgumentKeys","optimistic","paginationField"],{Invalidate:au,Collection:cu}=q;function hu(u){let{path:e,schema:F,Endpoint:t=ou,Collection:C=cu,nonFilterArgumentKeys:E,optimistic:A,paginationField:n}=u,r=j(u,Bu);const s=function(u){const D=Math.max(u.lastIndexOf(":"),u.lastIndexOf("*"));if(-1===D)throw new Error("Resource path requires at least one :parameter or *wildcard");let e=u.substring(0,D);return"/"===e[e.length-1]&&(e=e.substring(0,e.length-1)),e}(e),i=u=>`${null==F?void 0:F.name}.${u}`;function o(u,D,e){u[D]=u[D].extend(e)}const B=r,a=D({},B),c=D({},B),h=new t(D({},B,{path:e,schema:F,name:i("get")}));A&&(a.getOptimisticResponse=lu,c.getOptimisticResponse=function(u){return function(e,F,t){const C=e.get(u,F);if(!C)throw e.abort;return D({},F,C,mu(t))}}(F));const l=new t(D({},a,{paginationField:n,movePath:e,path:s,schema:new C([F],void 0===E?void 0:{nonFilterArgumentKeys:E}),name:i("getList")}));return{get:h,getList:l,create:l.push.extend({name:i("create")}),update:new t(D({},a,{path:e,schema:F,method:"PUT",name:i("update")})),partialUpdate:new t(D({},c,{path:e,schema:F,method:"PATCH",name:i("partialUpdate")})),delete:new t(D({},a,{path:e,schema:F.process||F._hoistable?new au(F):F,method:"DELETE",name:i("delete"),process:(u,D)=>u&&Object.keys(u).length?u:D,getOptimisticResponse:A?fu:void 0})),extend(...u){if("string"==typeof u[0]){const[e,F]=u;if(e in this){const u=D({},this);return o(u,e,F),u}return D({},this,{[e]:this.get.extend(F)})}if("function"==typeof u[0]){return D({},this,u[0](this))}const e=u[0],F=D({},this);for(const u in e)o(F,u,e[u]);return F}}}function lu(u,e,F){return D({},e,mu(F))}function fu(u,D){return D}function mu(u){return u instanceof FormData?Object.fromEntries(u.entries()):u}u.All=i,u.Collection=g,u.Endpoint=J,u.Entity=I,u.EntityMixin=_,u.ExtendableEndpoint=W,u.Invalidate=a,u.Lazy=K,u.NetworkError=Z,u.Query=z,u.RestEndpoint=ou,u.Scalar=R,u.Union=A,u.Values=n,u.createResource=hu,u.getUrlBase=eu,u.getUrlTokens=tu,u.hookifyResource=function(u,D){const e={};return Object.keys(u).forEach((F=>{const t=u[F];var C;void 0!==t.extend&&(e[`use${C=F,C.charAt(0).toUpperCase()+C.slice(1)}`]=()=>{const u=D();return t.extend({requestInit:u})})})),e},u.resource=hu,u.schema=q,u.unshift=h,u.validateRequired=function(u,D){let e="";if(Object.keys(D).some((D=>!Object.hasOwn(u,D)&&(e=D,!0))))return`Missing key ${e}`}}));
|