@earthranger/react-native-jsonforms-formatter 1.0.6 → 2.0.0-beta.1

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/README.md CHANGED
@@ -4,7 +4,18 @@
4
4
 
5
5
  [ci-url]: https://github.com/PADAS/react-native-jsonforms-formatter/actions/workflows/npm-build.yml/badge.svg
6
6
 
7
- A Node.js library for validating JSONSchema and generating UISchema for a custom ReactNative JSONForms element.
7
+ A Node.js library for validating JSONSchema and generating UISchema for a custom ReactNative JSONForms element. Supports both v1 (legacy) and v2 (modern) schema formats with full backward compatibility.
8
+
9
+ ## Features
10
+
11
+ - ✅ **JSON Schema Validation**: Validates and sanitizes JSON schema strings
12
+ - 🎨 **UI Schema Generation**: Creates UI schemas compatible with JSONForms
13
+ - 📱 **React Native Ready**: Optimized for React Native applications
14
+ - 🔄 **Dual Version Support**: V1 (legacy) and V2 (modern) schema formats
15
+
16
+ ## Architecture
17
+
18
+ For detailed component information, see [component-diagram.md](./component-diagram.md).
8
19
 
9
20
  ## Installation
10
21
 
@@ -24,26 +35,67 @@ npm install --save react-native-jsonforms-formatter
24
35
 
25
36
  ## Usage
26
37
 
27
- The library provides two main functions: `validateJSONSchema` and `generateUISchema`.
38
+ The library supports two schema formats: **V1 (legacy)** and **V2 (modern)**. Choose the appropriate version based on your schema format.
39
+
40
+ ### Version Support
28
41
 
29
- ### Validating JSONSchema
42
+ - **V1 (Default/Legacy)**: Traditional JSONSchema format with `schema` and `definition` properties
43
+ - **V2 (Modern)**: New format with `json` and `ui` properties, following JSON Schema Draft 2020-12
44
+
45
+ ### Client Integration
46
+
47
+ #### Default Import (V1 - Backward Compatible)
48
+
49
+ ```typescript
50
+ import { validateJSONSchema, generateUISchema } from "react-native-jsonforms-formatter";
51
+ // Uses V1 implementation by default
52
+ ```
30
53
 
31
- You can use the `validateJSONSchema` function to validate a JSONSchema string:
54
+ #### Explicit Version Imports
55
+
56
+ ```typescript
57
+ // V1 specific imports
58
+ import { v1 } from "react-native-jsonforms-formatter";
59
+ const { validateJSONSchema, generateUISchema } = v1;
60
+
61
+ // V2 specific imports
62
+ import { v2 } from "react-native-jsonforms-formatter";
63
+ const { generateUISchema } = v2;
64
+
65
+ // Or direct imports
66
+ import { v1, v2 } from "react-native-jsonforms-formatter";
67
+ ```
68
+
69
+ ## V1 Schema Format (Legacy)
70
+
71
+ ### Validating V1 JSONSchema
32
72
 
33
73
  ```typescript
34
74
  import { validateJSONSchema } from "react-native-jsonforms-formatter";
35
75
 
36
76
  const stringSchema = `
37
77
  {
38
- "type": "object",
39
- "properties": {
78
+ "schema": {
79
+ "type": "object",
80
+ "properties": {
81
+ "name": {
82
+ "type": "string",
83
+ "title": "Name"
84
+ },
85
+ "age": {
86
+ "type": "integer",
87
+ "title": "Age"
88
+ }
89
+ }
90
+ },
91
+ "definition": {
40
92
  "name": {
41
- "type": "string",
42
- "title": "Name"
93
+ "inputType": "text",
94
+ "placeholder": "Enter your name"
43
95
  },
44
96
  "age": {
45
- "type": "integer",
46
- "title": "Age"
97
+ "inputType": "number",
98
+ "placeholder": "Enter your age"
47
99
  }
48
100
  }
49
101
  }
@@ -52,11 +104,9 @@ const stringSchema = `
52
104
  const jsonSchema = validateJSONSchema(stringSchema);
53
105
  ```
54
106
 
55
- The `validateJSONSchema` function returns a valid JSONSchema object if the input string is a valid JSONSchema. If the input is not valid, it will throw an error.
56
-
57
- ### Generating UISchema
107
+ **Returns**: A validated V1 schema object with normalized decimal separators and cleaned properties.
58
108
 
59
- You can use the `generateUISchema` function to generate a UISchema object from a valid JSONSchema:
109
+ ### Generating V1 UI Schema
60
110
 
61
111
  ```typescript
62
112
  import { generateUISchema } from "react-native-jsonforms-formatter";
@@ -64,11 +114,187 @@ import { generateUISchema } from "react-native-jsonforms-formatter";
64
114
  const uiSchema = generateUISchema(jsonSchema);
65
115
  ```
66
116
 
67
- The `generateUISchema` function returns a `UISchema` object that can be used with the ReactNative JSONForms library.
117
+ **Returns**: JSONForms-compatible UI schema optimized for React Native:
118
+
119
+ ```typescript
120
+ {
121
+ type: "VerticalLayout",
122
+ elements: [
123
+ {
124
+ type: "Control",
125
+ scope: "#/properties/name",
126
+ label: "Name",
127
+ options: {
128
+ placeholder: "Enter your name"
129
+ }
130
+ },
131
+ {
132
+ type: "Control",
133
+ scope: "#/properties/age",
134
+ label: "Age",
135
+ options: {
136
+ format: "number",
137
+ placeholder: "Enter your age"
138
+ }
139
+ }
140
+ ]
141
+ }
142
+ ```
143
+
144
+ ## V2 Schema Format
145
+
146
+ V2 schemas use a new format with `json` and `ui` properties, following JSON Schema Draft 2020-12.
147
+
148
+ ### Generating V2 UI Schema
149
+
150
+ ```typescript
151
+ import { v2 } from "react-native-jsonforms-formatter";
152
+
153
+ const v2Schema = {
154
+ "json": {
155
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
156
+ "additionalProperties": false,
157
+ "properties": {
158
+ "patrol_leader": {
159
+ "deprecated": false,
160
+ "description": "Name of the patrol leader",
161
+ "title": "Patrol Leader",
162
+ "type": "string"
163
+ },
164
+ "patrol_size": {
165
+ "deprecated": false,
166
+ "description": "Number of people in the patrol",
167
+ "title": "Patrol Size",
168
+ "type": "number",
169
+ "minimum": 1,
170
+ "maximum": 20
171
+ },
172
+ "patrol_location": {
173
+ "deprecated": false,
174
+ "description": "GPS coordinates of patrol location",
175
+ "title": "Patrol Location",
176
+ "type": "object",
177
+ "properties": {
178
+ "latitude": { "type": "number", "minimum": -90, "maximum": 90 },
179
+ "longitude": { "type": "number", "minimum": -180, "maximum": 180 }
180
+ }
181
+ }
182
+ },
183
+ "required": ["patrol_leader", "patrol_size"],
184
+ "type": "object"
185
+ },
186
+ "ui": {
187
+ "fields": {
188
+ "patrol_leader": {
189
+ "inputType": "SHORT_TEXT",
190
+ "parent": "section-details",
191
+ "placeholder": "Enter patrol leader name",
192
+ "type": "TEXT"
193
+ },
194
+ "patrol_size": {
195
+ "parent": "section-details",
196
+ "placeholder": "5",
197
+ "type": "NUMERIC"
198
+ },
199
+ "patrol_location": {
200
+ "parent": "section-location",
201
+ "type": "LOCATION"
202
+ }
203
+ },
204
+ "order": ["section-details", "section-location"],
205
+ "sections": {
206
+ "section-details": {
207
+ "columns": 1,
208
+ "isActive": true,
209
+ "label": "Patrol Details",
210
+ "leftColumn": [
211
+ { "name": "patrol_leader", "type": "field" },
212
+ { "name": "patrol_size", "type": "field" }
213
+ ],
214
+ "rightColumn": []
215
+ },
216
+ "section-location": {
217
+ "columns": 1,
218
+ "isActive": true,
219
+ "label": "Location",
220
+ "leftColumn": [
221
+ { "name": "patrol_location", "type": "field" }
222
+ ],
223
+ "rightColumn": []
224
+ }
225
+ }
226
+ }
227
+ };
228
+
229
+ const uiSchema = v2.generateUISchema(v2Schema);
230
+ ```
231
+
232
+ **Returns**: JSONForms-compatible UI schema with advanced field types and section management:
233
+
234
+ ```typescript
235
+ {
236
+ type: "VerticalLayout",
237
+ elements: [
238
+ {
239
+ type: "VerticalLayout",
240
+ label: "Patrol Details",
241
+ elements: [
242
+ {
243
+ type: "Control",
244
+ scope: "#/properties/patrol_leader",
245
+ label: "Patrol Leader",
246
+ options: {
247
+ placeholder: "Enter patrol leader name",
248
+ description: "Name of the patrol leader"
249
+ }
250
+ },
251
+ {
252
+ type: "Control",
253
+ scope: "#/properties/patrol_size",
254
+ label: "Patrol Size",
255
+ options: {
256
+ format: "number",
257
+ placeholder: "5",
258
+ description: "Number of people in the patrol"
259
+ }
260
+ }
261
+ ]
262
+ },
263
+ {
264
+ type: "VerticalLayout",
265
+ label: "Location",
266
+ elements: [
267
+ {
268
+ type: "Control",
269
+ scope: "#/properties/patrol_location",
270
+ label: "Patrol Location",
271
+ options: {
272
+ format: "location",
273
+ display: "map",
274
+ description: "GPS coordinates of patrol location"
275
+ }
276
+ }
277
+ ]
278
+ }
279
+ ]
280
+ }
281
+ ```
282
+
283
+ ### V2 Field Types
284
+
285
+ V2 supports advanced field types:
68
286
 
69
- ## Putting it all together
287
+ - **TEXT**: `SHORT_TEXT`, `LONG_TEXT` (multi-line)
288
+ - **NUMERIC**: Number fields with validation
289
+ - **CHOICE_LIST**: Dropdowns and list selections
290
+ - **DATE_TIME**: Date and time pickers
291
+ - **LOCATION**: GPS coordinate fields with map display
292
+ - **COLLECTION**: Arrays with nested field structures
293
+ - **ATTACHMENT**: File upload fields
70
294
 
71
- Here's an example of how you can use the library in a ReactNative application:
295
+ ## Complete React Native Examples
296
+
297
+ ### V1 Schema Example
72
298
 
73
299
  ```typescript
74
300
  import { JsonForms } from "@jsonforms/react-native";
@@ -79,31 +305,44 @@ import {
79
305
  validateJSONSchema,
80
306
  } from "react-native-jsonforms-formatter";
81
307
 
82
- const stringSchema = `
308
+ const v1StringSchema = `
83
309
  {
84
- "type": "object",
85
- "properties": {
310
+ "schema": {
311
+ "type": "object",
312
+ "properties": {
313
+ "name": {
314
+ "type": "string",
315
+ "title": "Name"
316
+ },
317
+ "age": {
318
+ "type": "integer",
319
+ "title": "Age"
320
+ }
321
+ }
322
+ },
323
+ "definition": {
86
324
  "name": {
87
- "type": "string",
88
- "title": "Name"
325
+ "inputType": "text",
326
+ "placeholder": "Enter your name"
89
327
  },
90
328
  "age": {
91
- "type": "integer",
92
- "title": "Age"
329
+ "inputType": "number",
330
+ "placeholder": "Enter your age"
93
331
  }
94
332
  }
95
333
  }
96
334
  `;
97
335
 
98
- const jsonSchema = validateJSONSchema(stringSchema);
99
- const uiSchema = generateUISchema(jsonSchema);
100
-
101
- const App = () => {
336
+ const V1App = () => {
102
337
  const [data, setData] = React.useState({ name: "John Doe", age: 30 });
338
+
339
+ // Validate and generate UI schema
340
+ const jsonSchema = validateJSONSchema(v1StringSchema);
341
+ const uiSchema = generateUISchema(jsonSchema);
103
342
 
104
343
  return (
105
344
  <JsonForms
106
- schema={jsonSchema}
345
+ schema={jsonSchema.schema}
107
346
  uischema={uiSchema}
108
347
  data={data}
109
348
  renderers={RNRenderers}
@@ -112,18 +351,91 @@ const App = () => {
112
351
  />
113
352
  );
114
353
  };
115
-
116
- export default App;
117
354
  ```
118
355
 
119
- ## Contributors
356
+ ### V2 Schema Example
120
357
 
121
- Contributions are welcome! If you find a bug or have a feature request, please open an issue.
358
+ ```typescript
359
+ import { JsonForms } from "@jsonforms/react-native";
360
+ import { RNCells, RNRenderers } from "@jsonforms/react-native-renderers";
361
+ import React from "react";
362
+ import { v2 } from "react-native-jsonforms-formatter";
363
+
364
+ const v2Schema = {
365
+ "json": {
366
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
367
+ "additionalProperties": false,
368
+ "properties": {
369
+ "patrol_leader": {
370
+ "deprecated": false,
371
+ "description": "Name of the patrol leader",
372
+ "title": "Patrol Leader",
373
+ "type": "string"
374
+ },
375
+ "patrol_size": {
376
+ "deprecated": false,
377
+ "description": "Number of people in the patrol",
378
+ "title": "Patrol Size",
379
+ "type": "number",
380
+ "minimum": 1,
381
+ "maximum": 20
382
+ }
383
+ },
384
+ "required": ["patrol_leader", "patrol_size"],
385
+ "type": "object"
386
+ },
387
+ "ui": {
388
+ "fields": {
389
+ "patrol_leader": {
390
+ "inputType": "SHORT_TEXT",
391
+ "parent": "section-details",
392
+ "placeholder": "Enter patrol leader name",
393
+ "type": "TEXT"
394
+ },
395
+ "patrol_size": {
396
+ "parent": "section-details",
397
+ "placeholder": "5",
398
+ "type": "NUMERIC"
399
+ }
400
+ },
401
+ "order": ["section-details"],
402
+ "sections": {
403
+ "section-details": {
404
+ "columns": 1,
405
+ "isActive": true,
406
+ "label": "Patrol Details",
407
+ "leftColumn": [
408
+ { "name": "patrol_leader", "type": "field" },
409
+ { "name": "patrol_size", "type": "field" }
410
+ ],
411
+ "rightColumn": []
412
+ }
413
+ }
414
+ }
415
+ };
122
416
 
123
- <a href="https://github.com/PADAS/react-native-jsonforms-formatter/graphs/contributors">
124
- <img src="https://contributors-img.web.app/image?repo=PADAS/react-native-jsonforms-formatter" />
125
- </a>
417
+ const V2App = () => {
418
+ const [data, setData] = React.useState({
419
+ patrol_leader: "John Smith",
420
+ patrol_size: 5
421
+ });
422
+
423
+ // Generate UI schema using V2
424
+ const uiSchema = v2.generateUISchema(v2Schema);
126
425
 
426
+ return (
427
+ <JsonForms
428
+ schema={v2Schema.json}
429
+ uischema={uiSchema}
430
+ data={data}
431
+ renderers={RNRenderers}
432
+ cells={RNCells}
433
+ onChange={(event) => setData(event.data)}
434
+ />
435
+ );
436
+ };
437
+ ```
127
438
  ## Licensing
128
439
 
129
440
  A copy of the license is available in the repository's [LICENSE](LICENSE) file.
441
+
package/dist/bundle.js CHANGED
@@ -1 +1,2 @@
1
- (()=>{"use strict";var e={d:(t,r)=>{for(var n in r)e.o(r,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:r[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{void 0!==f&&f.toStringTag&&Object.defineProperty(e,f.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{generateUISchema:()=>ze,v1:()=>r,validateJSONSchema:()=>ut});var r={};e.r(r),e.d(r,{generateUISchema:()=>ze,validateJSONSchema:()=>ut});var n=Object.prototype;const i=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)},o=(a=Object.keys,c=Object,function(e){return a(c(e))});var a,c,u=Object.prototype.hasOwnProperty;const s="object"==typeof global&&global&&global.Object===Object&&global;var l="object"==typeof self&&self&&self.Object===Object&&self;const p=s||l||Function("return this")();var f=p.Symbol;const m=f;var d=Object.prototype,h=d.hasOwnProperty,v=d.toString,y=m?m.toStringTag:void 0;var b=Object.prototype.toString;var j=m?m.toStringTag:void 0;const g=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":j&&j in Object(e)?function(e){var t=h.call(e,y),r=e[y];try{e[y]=void 0;var n=!0}catch(e){}var i=v.call(e);return n&&(t?e[y]=r:delete e[y]),i}(e):function(e){return b.call(e)}(e)},O=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},k=function(e){if(!O(e))return!1;var t=g(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},w=p["__core-js_shared__"];var S,A=(S=/[^.]+$/.exec(w&&w.keys&&w.keys.IE_PROTO||""))?"Symbol(src)_1."+S:"";var x=Function.prototype.toString;const _=function(e){if(null!=e){try{return x.call(e)}catch(e){}try{return e+""}catch(e){}}return""};var M=/^\[object .+?Constructor\]$/,E=Function.prototype,q=Object.prototype,N=E.toString,D=q.hasOwnProperty,F=RegExp("^"+N.call(D).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const P=function(e){return!(!O(e)||function(e){return!!A&&A in e}(e))&&(k(e)?F:M).test(_(e))},T=function(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return P(r)?r:void 0},C=T(p,"DataView"),H=T(p,"Map"),I=T(p,"Promise"),$=T(p,"Set"),R=T(p,"WeakMap");var U="[object Map]",B="[object Promise]",L="[object Set]",J="[object WeakMap]",V="[object DataView]",W=_(C),z=_(H),G=_(I),K=_($),Q=_(R),X=g;(C&&X(new C(new ArrayBuffer(1)))!=V||H&&X(new H)!=U||I&&X(I.resolve())!=B||$&&X(new $)!=L||R&&X(new R)!=J)&&(X=function(e){var t=g(e),r="[object Object]"==t?e.constructor:void 0,n=r?_(r):"";if(n)switch(n){case W:return V;case z:return U;case G:return B;case K:return L;case Q:return J}return t});const Y=X,Z=function(e){return null!=e&&"object"==typeof e},ee=function(e){return Z(e)&&"[object Arguments]"==g(e)};var te=Object.prototype,re=te.hasOwnProperty,ne=te.propertyIsEnumerable;const ie=ee(function(){return arguments}())?ee:function(e){return Z(e)&&re.call(e,"callee")&&!ne.call(e,"callee")},oe=Array.isArray,ae=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991};var ce="object"==typeof exports&&exports&&!exports.nodeType&&exports,ue=ce&&"object"==typeof module&&module&&!module.nodeType&&module,se=ue&&ue.exports===ce?p.Buffer:void 0;const le=(se?se.isBuffer:void 0)||function(){return!1};var pe={};pe["[object Float32Array]"]=pe["[object Float64Array]"]=pe["[object Int8Array]"]=pe["[object Int16Array]"]=pe["[object Int32Array]"]=pe["[object Uint8Array]"]=pe["[object Uint8ClampedArray]"]=pe["[object Uint16Array]"]=pe["[object Uint32Array]"]=!0,pe["[object Arguments]"]=pe["[object Array]"]=pe["[object ArrayBuffer]"]=pe["[object Boolean]"]=pe["[object DataView]"]=pe["[object Date]"]=pe["[object Error]"]=pe["[object Function]"]=pe["[object Map]"]=pe["[object Number]"]=pe["[object Object]"]=pe["[object RegExp]"]=pe["[object Set]"]=pe["[object String]"]=pe["[object WeakMap]"]=!1;var fe="object"==typeof exports&&exports&&!exports.nodeType&&exports,me=fe&&"object"==typeof module&&module&&!module.nodeType&&module,de=me&&me.exports===fe&&s.process,he=function(){try{return me&&me.require&&me.require("util").types||de&&de.binding&&de.binding("util")}catch(e){}}(),ve=he&&he.isTypedArray;const ye=ve?function(e){return function(t){return e(t)}}(ve):function(e){return Z(e)&&ae(e.length)&&!!pe[g(e)]};var be=Object.prototype.hasOwnProperty;const je=function(e){if(null==e)return!0;if(function(e){return null!=e&&ae(e.length)&&!k(e)}(e)&&(oe(e)||"string"==typeof e||"function"==typeof e.splice||le(e)||ye(e)||ie(e)))return!e.length;var t=Y(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(i(e))return!function(e){if(!i(e))return o(e);var t=[];for(var r in Object(e))u.call(e,r)&&"constructor"!=r&&t.push(r);return t}(e).length;for(var r in e)if(be.call(e,r))return!1;return!0};var ge,Oe,ke,we=function(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))},Se="fieldset",Ae="checkboxes",xe="string";!function(e){e.DateTime="date-time",e.Date="date"}(ge||(ge={})),function(e){e.DateTime="date-time",e.MultiSelect="multiselect",e.RepeatableField="repeatable-field",e.FormLabel="form-label"}(Oe||(Oe={})),function(e){e.Header="header"}(ke||(ke={}));var _e,Me=function(e){var t=e.toLowerCase().replace(/[\s\\/\\%]/gi,"_");return"fieldset__title_".concat(t)},Ee=function(e){return new Set(e).size!==e.length},qe=function(e){return null==e||0===e.trim().length},Ne=function(e){return Pe(e)&&e.type===Se&&!je(e.title)},De=function(e){return Pe(e)&&e.type===Se&&e.items.length>0},Fe=function(e){var t,r;return e.type===xe&&(null===(t=e.enum)||void 0===t?void 0:t.length)>0&&(null===(r=e.inactive_enum)||void 0===r?void 0:r.length)>0},Pe=function(e){return e instanceof Object},Te=function(e){return!je(e.key)},Ce=function(e){return 0!==e.length&&void 0!==e.find((function(e){return Pe(e)&&e&&(e.type||"")===Se}))},He=function(e){return typeof e===xe},Ie=function(e){if("number"==typeof e)return e;if("string"!=typeof e)return e;var t=e.trim();if(""===t)return e;if(/^-?\d+,\d+$/.test(t)){var r=t.replace(",","."),n=parseFloat(r);if(!isNaN(n))return r}return e},$e=function(e,t,r){void 0===r&&(r=[]),"object"==typeof e&&null!==e&&(t(e,r),Array.isArray(e)?e.forEach((function(e,n){return $e(e,t,we(we([],r,!0),[n.toString()],!1))})):Object.entries(e).forEach((function(e){var n=e[0],i=e[1];return $e(i,t,we(we([],r,!0),[n],!1))})))},Re=function(e){return e.includes(Ae)},Ue=function(e){return e.includes("inactive_enum")},Be=function(e){return e.includes("inactive_titleMap")},Le=function(e){return e.includes("enum")},Je=function(){return Je=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Je.apply(this,arguments)};!function(e){e.Number="number",e.String="string",e.Array="array"}(_e||(_e={}));var Ve=function(e,t,r){return void 0===r&&(r={}),Je({type:"Control",scope:"#/properties/".concat(e),label:t},r&&{options:r})},We=function(e,t,r){void 0===r&&(r=void 0);try{var n=r||t.definition.find((function(t){return t.key===e}));if("date-time-picker json-schema"===n.fieldHtmlClass||n&&"datetime"===(n.type||""))return"date"===t.schema.properties[e].format?ge.Date:ge.DateTime;if("date-picker json-schema"===n.fieldHtmlClass||"date"===t.schema.properties[e].format)return ge.Date}catch(e){return}},ze=function(e){var t=[];return Ce(e.definition)?t.push.apply(t,Ge(e)):Object.keys(e.schema.properties).forEach((function(r){var n=Qe(r,e);je(n)||t.push(n)})),{type:"Category",elements:t}},Ge=function(e){var t=[];return e.definition.forEach((function(r){if("string"==typeof r)t.push(Ve(r,e.schema.properties[r].title||""));else if(r instanceof Object)switch(!0){case function(e){return Pe(e)&&e.type===Se&&0===e.items.length&&!je(e.title)}(r):t.push(Ve(Me(r.title),r.title,Ke(Oe.FormLabel)));break;case De(r):r.title&&t.push(Ve(Me(r.title),r.title,Ke(Oe.FormLabel))),r.items.forEach((function(r){if(r instanceof Object){var n=Qe(r.key||"",e,r);n&&t.push(n)}else if("string"==typeof r){var i=Qe(r,e);i&&t.push(i)}}));break;case Te(r):var n=Qe(r.key,e);n&&t.push(n)}})),t},Ke=function(e,t){if(void 0===e&&(e=""),void 0===t&&(t=""),je(e))return{};var r={format:e};return je(t)||(r.display=t),r},Qe=function(e,t,r){void 0===r&&(r=void 0);var n={};switch(t.schema.properties[e].type){case _e.Number:return Ve(e,t.schema.properties[e].title||"");case _e.String:var i=We(e,t,r);return qe(i)?t.schema.properties[e].display&&t.schema.properties[e].display===ke.Header&&(n=Ke(Oe.FormLabel)):n=Ke(Oe.DateTime,i),Ve(e,t.schema.properties[e].title||"",n);case _e.Array:return t.schema.properties[e].items.enum&&t.schema.properties[e].items.enumNames?n=Ke(Oe.MultiSelect):t.schema.properties[e].items&&(n=Ke(Oe.RepeatableField)),Ve(e,t.schema.properties[e].title||"",n);case void 0:return i=We(e,t,r),qe(i)?void 0:(n=Ke(Oe.DateTime,i),Ve(e,t.schema.properties[e].title||"",n))}},Xe=function(){return Xe=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Xe.apply(this,arguments)},Ye=function(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))},Ze=/[^\w\n\s_"](?=[^:\n\s{}[]]*:[\t\n\s]*(\{|\[)+)/g,et=/"minimum"(?:[^\\"]|\\\\|\\")*"\d+\.*\d*"/g,tt=/"maximum"(?:[^\\"]|\\\\|\\")*"\d+\.*\d*"/g,rt=/"(?=[^"]*(?:"[^"]*)?$)/g,nt=function(e){return{type:"string",readOnly:!0,isHidden:!1,display:ke.Header,title:e}},it=function(e){return(null==e?void 0:e.isHidden)||!1},ot=function(e){return e.enum.filter((function(t){return!e.inactive_enum.includes(t)}))},at=function(e){return e.titleMap.filter((function(t){return!e.inactive_titleMap.includes(t.value)}))},ct=function(e,t,r,n){var i,o,a,c,u=e.hasCheckboxes,s=e.hasDisabledChoices;if(He(t)&&r.schema.properties[t])r.schema.properties[t].isHidden=it(r.schema.properties[t]);else{if((Pe(t)||Te(t))&&t.key&&r.schema.properties[t.key]&&(r.schema.properties[t.key].isHidden=it(r.schema.properties[t.key])),s&&function(e){var t,r;return Pe(e)&&e.type===Ae&&(null===(t=e.inactive_titleMap)||void 0===t?void 0:t.length)>0&&(null===(r=e.titleMap)||void 0===r?void 0:r.length)>0}(t))if(n){var l=r.definition.indexOf(n),p=r.definition[l].items.indexOf(t);r.definition[l].items[p].titleMap=at(t)}else r.definition[r.definition.indexOf(t)].titleMap=at(t);u&&function(e){return Pe(e)&&e.type===Ae}(t)&&(r.schema.properties[t.key]=(i=t,o=r.schema.properties[t.key].title||"",a=r.schema.properties[t.key].required||!1,c=r.schema.properties[t.key].default||!1,Xe(Xe(Xe({type:"array",uniqueItems:!0,isHidden:!1},a&&{required:a}),{title:o||i.title,items:{enum:i.titleMap.map((function(e){return e.value})),enumNames:i.titleMap.map((function(e){return e.name}))}}),c&&{default:c})))}},ut=function(e){var t;e=function(e){if(null!==e.match(Ze))throw Error("Special characters not supported in JSON Schema");return(e=(e=(e=(e=(e=e.replace(/([“”])/g,'"')).replace(new RegExp('\\"enum\\"\\n*\\s*\\:\\n*\\s*\\[\\n*\\s*\\]',"g"),'"enum": ["0"]')).replace(new RegExp('\\"enumNames\\"\\n*\\s*\\:\\n*\\s*\\{\\n*\\s*\\}',"g"),'"enumNames": {"0":"No Options"}')).replace(new RegExp('\\"titleMap\\"\\n*\\s*\\:\\n*\\s*\\[\\n*\\s*\\]',"g"),'"titleMap": [{"value":"no_option", "name":"No Option"}]')).replace(et,(function(e){return e.replace(rt,"")}))).replace(tt,(function(e){return e.replace(rt,"")}))}(e);var r=JSON.parse(e);delete r.schema.$schema,delete r.schema.id,function(e){if(e.schema.definition){var t=e.schema.definition;delete e.schema.definition,e.definition=t}}(r);var n=function(e){return{hasCheckboxes:Re(e),hasInactiveChoices:Ue(e),hasDisabledChoices:Be(e),hasEnums:Le(e)}}(e);if(function(e){$e(e,(function(e){"object"===e.type&&e.properties&&Object.entries(e.properties).forEach((function(e){var t=e[1];"number"===t.type&&(void 0!==t.default&&(t.default=Ie(t.default)),void 0!==t.minimum&&(t.minimum=Ie(t.minimum)),void 0!==t.maximum&&(t.maximum=Ie(t.maximum)))}))}))}(r.schema),function(e,t){var r=e.hasInactiveChoices,n=e.hasEnums;if(r)for(var i=0,o=Object.keys(t.schema.properties);i<o.length;i++){var a=o[i],c=t.schema.properties[a];Fe(c)&&(t.schema.properties[a].enum=ot(c),je(t.schema.properties[a].enum)&&(t.schema.properties[a].enum=["0"],t.schema.properties[a].enumNames={0:"No Options"}))}if(n)for(var u=0,s=Object.keys(t.schema.properties);u<s.length;u++)if(a=s[u],!je(t.schema.properties[a].enum)&&Ee(t.schema.properties[a].enum))throw new Error("Duplicated enum items")}(n,r),function(e,t){var r;if(Ce(t.definition))!function(e,t){for(var r=0,n=t.definition;r<n.length;r++){var i=n[r];switch(!0){case He(i):break;case Ne(i):var o=Me(i.title);t.schema.properties[o]=nt(i.title);break;case De(i):for(var a=0,c=i.items;a<c.length;a++){var u=c[a];ct(e,u,t,i)}}}}(e,t);else if((null===(r=t.definition)||void 0===r?void 0:r.length)>0)for(var n=0,i=t.definition;n<i.length;n++){var o=i[n];ct(e,o,t)}}(n,r),e.includes("helpvalue")&&function(e){for(var t={},r=0,n=0,i=e.definition;n<i.length;n++){var o=i[n];if(He(o))t[o]=e.schema.properties[o],delete e.schema.properties[o];else if(Pe(o))if(o.helpvalue){var a="help_value_".concat(r);r+=1,t[a]=nt((o.helpvalue||"").replace(/(<.+?>)/g,""))}else o.key&&(t[o.key]=e.schema.properties[o.key],delete e.schema.properties[o.key])}e.schema.properties=Object.assign(t,e.schema.properties)}(r),e.includes("required")){if((null===(t=r.schema.required)||void 0===t?void 0:t.length)>0&&Ee(r.schema.required))throw new Error("Duplicated required properties");r.schema=function(e){var t=Array.isArray(e.required)?Ye([],e.required,!0):null;return $e(e,(function(e,r){if("object"===e.type&&e.properties){var n=[];if(Object.entries(e.properties).forEach((function(e){var t=e[0],r=e[1];(function(e){return"true"===e.required||e.required>0})(r)&&(n.push(t),delete r.required)})),je(n))r.length>0&&e.required&&delete e.required;else if(0===r.length&&t){var i=Ye(Ye([],t,!0),n,!0);e.required=Array.from(new Set(i))}else e.required=n}})),e}(r.schema)}return r};module.exports=t})();
1
+ /*! For license information please see bundle.js.LICENSE.txt */
2
+ (()=>{"use strict";var t={729:function(t,e,n){var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&r(e,t,n);return i(e,t),e};Object.defineProperty(e,"__esModule",{value:!0}),e.v2=e.v1=e.validateJSONSchema=e.generateUISchema=void 0;var u=n(779);Object.defineProperty(e,"generateUISchema",{enumerable:!0,get:function(){return u.generateUISchema}}),Object.defineProperty(e,"validateJSONSchema",{enumerable:!0,get:function(){return u.validateJSONSchema}}),e.v1=o(n(779)),e.v2=o(n(486))},153:function(t,e,n){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.generateUISchema=void 0;var i,o=n(271),u=n(16);!function(t){t.Number="number",t.String="string",t.Array="array"}(i||(i={}));var a=function(t,e,n){return void 0===n&&(n={}),r({type:"Control",scope:"#/properties/".concat(t),label:e},n&&{options:n})},c=function(t,e,n){void 0===n&&(n=void 0);try{var r=n||e.definition.find((function(e){return e.key===t}));if("date-time-picker json-schema"===r.fieldHtmlClass||r&&"datetime"===(r.type||""))return"date"===e.schema.properties[t].format?u.DateTimeFormat.Date:u.DateTimeFormat.DateTime;if("date-picker json-schema"===r.fieldHtmlClass||"date"===e.schema.properties[t].format)return u.DateTimeFormat.Date}catch(t){return}};e.generateUISchema=function(t){var e=[];return(0,u.isSchemaFieldSet)(t.definition)?e.push.apply(e,s(t)):Object.keys(t.schema.properties).forEach((function(n){var r=l(n,t);(0,o.isEmpty)(r)||e.push(r)})),{type:"Category",elements:e}};var s=function(t){var e=[];return t.definition.forEach((function(n){if("string"==typeof n)e.push(a(n,t.schema.properties[n].title||""));else if(n instanceof Object)switch(!0){case(0,u.isFieldSetTitleWithoutItems)(n):e.push(a((0,u.getFieldSetTitleKey)(n.title),n.title,f(u.PropertyFormat.FormLabel)));break;case(0,u.isFieldSet)(n):n.title&&e.push(a((0,u.getFieldSetTitleKey)(n.title),n.title,f(u.PropertyFormat.FormLabel))),n.items.forEach((function(n){if(n instanceof Object){var r=l(n.key||"",t,n);r&&e.push(r)}else if("string"==typeof n){var i=l(n,t);i&&e.push(i)}}));break;case(0,u.isPropertyKey)(n):var r=l(n.key,t);r&&e.push(r)}})),e},f=function(t,e){if(void 0===t&&(t=""),void 0===e&&(e=""),(0,o.isEmpty)(t))return{};var n={format:t};return(0,o.isEmpty)(e)||(n.display=e),n},l=function(t,e,n){void 0===n&&(n=void 0);var r={};switch(e.schema.properties[t].type){case i.Number:return a(t,e.schema.properties[t].title||"");case i.String:var o=c(t,e,n);return(0,u.isEmptyString)(o)?e.schema.properties[t].display&&e.schema.properties[t].display===u.ElementDisplay.Header&&(r=f(u.PropertyFormat.FormLabel)):r=f(u.PropertyFormat.DateTime,o),a(t,e.schema.properties[t].title||"",r);case i.Array:return e.schema.properties[t].items.enum&&e.schema.properties[t].items.enumNames?r=f(u.PropertyFormat.MultiSelect):e.schema.properties[t].items&&(r=f(u.PropertyFormat.RepeatableField)),a(t,e.schema.properties[t].title||"",r);case void 0:var s=function(t,e){try{var n=e.definition.find((function(e){return e.key===t}));return"json-schema-checkbox-wrapper"===n.fieldHtmlClass||"checkboxes"===n.type?n:void 0}catch(t){return}}(t,e);return s?(r=f(u.PropertyFormat.MultiSelect),a(t,s.title||"",r)):(o=c(t,e,n),(0,u.isEmptyString)(o)?void 0:(r=f(u.PropertyFormat.DateTime,o),a(t,e.schema.properties[t].title||"",r)))}}},779:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.validateJSONSchema=e.generateUISchema=void 0;var r=n(153);Object.defineProperty(e,"generateUISchema",{enumerable:!0,get:function(){return r.generateUISchema}});var i=n(620);Object.defineProperty(e,"validateJSONSchema",{enumerable:!0,get:function(){return i.validateJSONSchema}})},16:function(t,e,n){var r=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.traverseSchema=e.normalizeDecimalSeparators=e.isString=e.isSchemaFieldSet=e.isRequiredProperty=e.isPropertyKey=e.isObject=e.isInactiveChoice=e.isFieldSet=e.isFieldSetTitleWithoutItems=e.isFieldSetTitle=e.isEmptyString=e.isDisabledChoice=e.isCheckbox=e.isArrayProperty=e.hasDuplicatedItems=e.getSchemaValidations=e.getFieldSetTitleKey=e.ElementDisplay=e.PropertyFormat=e.DateTimeFormat=e.ENUM=e.ARRAY_TYPE=e.STRING_TYPE=e.DISABLED_ENUM=e.INACTIVE_ENUM=e.CHECKBOXES=e.REQUIRED_PROPERTY=e.HELP_VALUE=e.FIELD_SET=void 0;var i,o,u,a=n(271);e.FIELD_SET="fieldset",e.HELP_VALUE="helpvalue",e.REQUIRED_PROPERTY="required",e.CHECKBOXES="checkboxes",e.INACTIVE_ENUM="inactive_enum",e.DISABLED_ENUM="inactive_titleMap",e.STRING_TYPE="string",e.ARRAY_TYPE="array",e.ENUM="enum",function(t){t.DateTime="date-time",t.Date="date"}(i||(e.DateTimeFormat=i={})),function(t){t.DateTime="date-time",t.MultiSelect="multiselect",t.RepeatableField="repeatable-field",t.FormLabel="form-label"}(o||(e.PropertyFormat=o={})),function(t){t.Header="header"}(u||(e.ElementDisplay=u={})),e.getFieldSetTitleKey=function(t){var e=t.toLowerCase().replace(/[\s\\/\\%]/gi,"_");return"fieldset__title_".concat(e)},e.getSchemaValidations=function(t){return{hasCheckboxes:c(t),hasInactiveChoices:s(t),hasDisabledChoices:f(t),hasEnums:l(t)}},e.hasDuplicatedItems=function(t){return new Set(t).size!==t.length},e.isArrayProperty=function(t){var n,r;return t.type===e.ARRAY_TYPE&&!(null===(n=t.items)||void 0===n?void 0:n.enum)&&!(null===(r=t.items)||void 0===r?void 0:r.enumNames)},e.isCheckbox=function(t){return(0,e.isObject)(t)&&t.type===e.CHECKBOXES},e.isDisabledChoice=function(t){var n,r;return(0,e.isObject)(t)&&t.type===e.CHECKBOXES&&(null===(n=t.inactive_titleMap)||void 0===n?void 0:n.length)>0&&(null===(r=t.titleMap)||void 0===r?void 0:r.length)>0},e.isEmptyString=function(t){return null==t||0===t.trim().length},e.isFieldSetTitle=function(t){return(0,e.isObject)(t)&&t.type===e.FIELD_SET&&!(0,a.isEmpty)(t.title)},e.isFieldSetTitleWithoutItems=function(t){return(0,e.isObject)(t)&&t.type===e.FIELD_SET&&0===t.items.length&&!(0,a.isEmpty)(t.title)},e.isFieldSet=function(t){return(0,e.isObject)(t)&&t.type===e.FIELD_SET&&t.items.length>0},e.isInactiveChoice=function(t){var n,r;return t.type===e.STRING_TYPE&&(null===(n=t.enum)||void 0===n?void 0:n.length)>0&&(null===(r=t.inactive_enum)||void 0===r?void 0:r.length)>0},e.isObject=function(t){return t instanceof Object},e.isPropertyKey=function(t){return!(0,a.isEmpty)(t.key)},e.isRequiredProperty=function(t){return"true"===t.required||t.required>0},e.isSchemaFieldSet=function(t){return 0!==t.length&&void 0!==t.find((function(t){return(0,e.isObject)(t)&&t&&(t.type||"")===e.FIELD_SET}))},e.isString=function(t){return typeof t===e.STRING_TYPE},e.normalizeDecimalSeparators=function(t){if("number"==typeof t)return t;if("string"!=typeof t)return t;var e=t.trim();if(""===e)return t;if(/^-?\d+,\d+$/.test(e)){var n=e.replace(",","."),r=parseFloat(n);if(!isNaN(r))return n}return t},e.traverseSchema=function(t,n,i){void 0===i&&(i=[]),"object"==typeof t&&null!==t&&(n(t,i),Array.isArray(t)?t.forEach((function(t,o){return(0,e.traverseSchema)(t,n,r(r([],i,!0),[o.toString()],!1))})):Object.entries(t).forEach((function(t){var o=t[0],u=t[1];return(0,e.traverseSchema)(u,n,r(r([],i,!0),[o],!1))})))};var c=function(t){return t.includes(e.CHECKBOXES)},s=function(t){return t.includes(e.INACTIVE_ENUM)},f=function(t){return t.includes(e.DISABLED_ENUM)},l=function(t){return t.includes(e.ENUM)}},620:function(t,e,n){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)},i=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.validateJSONSchema=void 0;var o=n(271),u=n(16),a=/[^\w\n\s_"](?=[^:\n\s{}[]]*:[\t\n\s]*(\{|\[)+)/g,c=/"minimum"(?:[^\\"]|\\\\|\\")*"\d+\.*\d*"/g,s=/"maximum"(?:[^\\"]|\\\\|\\")*"\d+\.*\d*"/g,f=/"(?=[^"]*(?:"[^"]*)?$)/g,l=function(t){return{type:"string",readOnly:!0,isHidden:!1,display:u.ElementDisplay.Header,title:t}},p=function(t){return(null==t?void 0:t.isHidden)||!1},h=function(t){return t.enum.filter((function(e){return!t.inactive_enum.includes(e)}))},v=function(t){return t.titleMap.filter((function(e){return!t.inactive_titleMap.includes(e.value)}))},d=function(t,e,n,i){var o,a,c,s,f=t.hasCheckboxes,l=t.hasDisabledChoices;if((0,u.isString)(e)&&n.schema.properties[e])n.schema.properties[e].isHidden=p(n.schema.properties[e]);else{if(((0,u.isObject)(e)||(0,u.isPropertyKey)(e))&&e.key&&n.schema.properties[e.key]&&(n.schema.properties[e.key].isHidden=p(n.schema.properties[e.key])),l&&(0,u.isDisabledChoice)(e))if(i){var h=n.definition.indexOf(i),d=n.definition[h].items.indexOf(e);n.definition[h].items[d].titleMap=v(e)}else n.definition[n.definition.indexOf(e)].titleMap=v(e);f&&(0,u.isCheckbox)(e)&&(n.schema.properties[e.key]=(o=e,a=n.schema.properties[e.key].title||"",c=n.schema.properties[e.key].required||!1,s=n.schema.properties[e.key].default||!1,r(r(r({type:"array",uniqueItems:!0,isHidden:!1},c&&{required:c}),{title:a||o.title,items:{enum:o.titleMap.map((function(t){return t.value})),enumNames:o.titleMap.map((function(t){return t.name}))}}),s&&{default:s})))}};e.validateJSONSchema=function(t){var e;t=function(t){if(null!==t.match(a))throw Error("Special characters not supported in JSON Schema");return(t=(t=(t=(t=(t=t.replace(/([“”])/g,'"')).replace(new RegExp('\\"enum\\"\\n*\\s*\\:\\n*\\s*\\[\\n*\\s*\\]',"g"),'"enum": ["0"]')).replace(new RegExp('\\"enumNames\\"\\n*\\s*\\:\\n*\\s*\\{\\n*\\s*\\}',"g"),'"enumNames": {"0":"No Options"}')).replace(new RegExp('\\"titleMap\\"\\n*\\s*\\:\\n*\\s*\\[\\n*\\s*\\]',"g"),'"titleMap": [{"value":"no_option", "name":"No Option"}]')).replace(c,(function(t){return t.replace(f,"")}))).replace(s,(function(t){return t.replace(f,"")}))}(t);var n=JSON.parse(t);delete n.schema.$schema,delete n.schema.id,function(t){if(t.schema.definition){var e=t.schema.definition;delete t.schema.definition,t.definition=e}}(n);var r=(0,u.getSchemaValidations)(t);if(function(t){(0,u.traverseSchema)(t,(function(t){"object"===t.type&&t.properties&&Object.entries(t.properties).forEach((function(t){var e=t[1];"number"===e.type&&(void 0!==e.default&&(e.default=(0,u.normalizeDecimalSeparators)(e.default)),void 0!==e.minimum&&(e.minimum=(0,u.normalizeDecimalSeparators)(e.minimum)),void 0!==e.maximum&&(e.maximum=(0,u.normalizeDecimalSeparators)(e.maximum)))}))}))}(n.schema),function(t,e){var n=t.hasInactiveChoices,r=t.hasEnums;if(n)for(var i=0,a=Object.keys(e.schema.properties);i<a.length;i++){var c=a[i],s=e.schema.properties[c];(0,u.isInactiveChoice)(s)&&(e.schema.properties[c].enum=h(s),(0,o.isEmpty)(e.schema.properties[c].enum)&&(e.schema.properties[c].enum=["0"],e.schema.properties[c].enumNames={0:"No Options"}))}if(r)for(var f=0,l=Object.keys(e.schema.properties);f<l.length;f++)if(c=l[f],!(0,o.isEmpty)(e.schema.properties[c].enum)&&(0,u.hasDuplicatedItems)(e.schema.properties[c].enum))throw new Error("Duplicated enum items")}(r,n),function(t,e){var n;if((0,u.isSchemaFieldSet)(e.definition))!function(t,e){for(var n=0,r=e.definition;n<r.length;n++){var i=r[n];switch(!0){case(0,u.isString)(i):break;case(0,u.isFieldSetTitle)(i):var o=(0,u.getFieldSetTitleKey)(i.title);e.schema.properties[o]=l(i.title);break;case(0,u.isFieldSet)(i):for(var a=0,c=i.items;a<c.length;a++){var s=c[a];d(t,s,e,i)}break;case(0,u.isCheckbox)(i):d(t,i,e)}}}(t,e);else if((null===(n=e.definition)||void 0===n?void 0:n.length)>0)for(var r=0,i=e.definition;r<i.length;r++){var o=i[r];d(t,o,e)}}(r,n),t.includes(u.HELP_VALUE)&&function(t){for(var e={},n=0,r=0,i=t.definition;r<i.length;r++){var o=i[r];if((0,u.isString)(o))e[o]=t.schema.properties[o],delete t.schema.properties[o];else if((0,u.isObject)(o))if(o.helpvalue){var a="help_value_".concat(n);n+=1,e[a]=l((o.helpvalue||"").replace(/(<.+?>)/g,""))}else o.key&&(e[o.key]=t.schema.properties[o.key],delete t.schema.properties[o.key])}t.schema.properties=Object.assign(e,t.schema.properties)}(n),t.includes(u.REQUIRED_PROPERTY)){if((null===(e=n.schema.required)||void 0===e?void 0:e.length)>0&&(0,u.hasDuplicatedItems)(n.schema.required))throw new Error("Duplicated required properties");n.schema=function(t){var e=Array.isArray(t.required)?i([],t.required,!0):null;return(0,u.traverseSchema)(t,(function(t,n){if("object"===t.type&&t.properties){var r=[];if(Object.entries(t.properties).forEach((function(t){var e=t[0],n=t[1];(0,u.isRequiredProperty)(n)&&(r.push(e),delete n.required)})),(0,o.isEmpty)(r))n.length>0&&t.required&&delete t.required;else if(0===n.length&&e){var a=i(i([],e,!0),r,!0);t.required=Array.from(new Set(a))}else t.required=r}})),t}(n.schema)}return n}},538:function(t,e,n){var r=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.generateUISchema=void 0;var i=n(43);e.generateUISchema=function(t){var e=(0,i.getVisibleFields)(t),n=(0,i.groupFieldsBySection)(e,t.ui.sections),o=[];return t.ui.order.forEach((function(e){var u=t.ui.sections[e],a=n[e]||[],c=a.length>0,s=r(r([],u.leftColumn,!0),u.rightColumn,!0).some((function(e){return"header"===e.type&&t.ui.headers[e.name]}));if((null==u?void 0:u.isActive)&&(c||s)){var f=a.map((function(t){var e=t.name,n=t.property,r=t.uiField;return(0,i.createControl)(e,n,r)})),l=(0,i.createSectionLayout)(e,u,f,t.ui.headers);o.push(l)}})),{type:"VerticalLayout",elements:o}}},486:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.generateUISchema=void 0;var r=n(538);Object.defineProperty(e,"generateUISchema",{enumerable:!0,get:function(){return r.generateUISchema}})},43:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.groupFieldsBySection=e.getVisibleFields=e.createSectionLayout=e.createHeaderLabel=e.createControl=e.isFieldVisible=void 0,e.isFieldVisible=function(t){return!t.deprecated},e.createControl=function(t,e,r){var i,o={type:"Control",scope:"#/properties/".concat(t),label:e.title,options:{}};switch(r.type){case"TEXT":"LONG_TEXT"===r.inputType&&(o.options.multi=!0),r.placeholder&&(o.options.placeholder=r.placeholder);break;case"NUMERIC":o.options.format="number",r.placeholder&&(o.options.placeholder=r.placeholder);break;case"DATE_TIME":e.format&&(o.options.format=e.format,o.options.display=e.format);break;case"CHOICE_LIST":"DROPDOWN"===r.inputType?(o.options.format="dropdown",r.placeholder&&(o.options.placeholder=r.placeholder)):"LIST"===r.inputType&&(o.options.format="radio"),"array"===e.type&&(o.options.multi=!0);break;case"LOCATION":o.options.format="location",o.options.display="map";break;case"COLLECTION":o.options.format="array",o.options.addButtonText=r.buttonText||"Add Item",r.itemIdentifier&&(o.options.itemIdentifier=r.itemIdentifier),void 0!==e.maxItems&&(o.options.maxItems=e.maxItems),void 0!==e.minItems&&(o.options.minItems=e.minItems),"array"===e.type&&(null===(i=e.items)||void 0===i?void 0:i.properties)&&(o.options.detail=n(e,r));break;case"ATTACHMENT":o.options.format="file",r.allowableFileTypes&&(o.options.accept=r.allowableFileTypes.join(","))}return e.description&&(o.options.description=e.description),o},e.createHeaderLabel=function(t,e){return{type:"Label",text:e.label,options:{size:e.size}}},e.createSectionLayout=function(t,n,r,i){var o={type:"VerticalLayout",label:n.label,elements:[]},u=[];return n.leftColumn.forEach((function(t){if("field"===t.type){var n=r.find((function(e){return e.scope==="#/properties/".concat(t.name)}));n&&u.push(n)}else if("header"===t.type){var o=i[t.name];if(o){var a=(0,e.createHeaderLabel)(t.name,o);u.push(a)}}})),n.rightColumn.forEach((function(t){if("field"===t.type){var n=r.find((function(e){return e.scope==="#/properties/".concat(t.name)}));n&&u.push(n)}else if("header"===t.type){var o=i[t.name];if(o){var a=(0,e.createHeaderLabel)(t.name,o);u.push(a)}}})),o.elements=u,o},e.getVisibleFields=function(t){var n=[];return Object.entries(t.json.properties).forEach((function(r){var i=r[0],o=r[1],u=t.ui.fields[i];(0,e.isFieldVisible)(o)&&u&&n.push({name:i,property:o,uiField:u})})),n},e.groupFieldsBySection=function(t,e){var n={};return t.forEach((function(t){var r=t.uiField.parent;e[r]&&(n[r]||(n[r]=[]),n[r].push(t))})),n};var n=function(t,e){var n;if("array"!==t.type||!(null===(n=t.items)||void 0===n?void 0:n.properties))throw new Error("Collection property must be an array with item properties");var r=t.items.properties,i=[],o=function(t,e){var n={type:"Control",scope:"#/properties/".concat(t),label:e.title||t,options:{}};switch(e.type){case"string":"uri"===e.format&&(n.options.format="file",n.options.accept="image/*");break;case"number":n.options.format="number"}return e.description&&(n.options.description=e.description),n};return e&&(e.leftColumn||e.rightColumn)?(e.leftColumn&&e.leftColumn.forEach((function(t){r[t]&&i.push(o(t,r[t]))})),e.rightColumn&&e.rightColumn.forEach((function(t){r[t]&&i.push(o(t,r[t]))}))):Object.entries(r).forEach((function(t){var e=t[0],n=t[1];i.push(o(e,n))})),{type:"VerticalLayout",elements:i}}},271:(t,e,n)=>{n.r(e),n.d(e,{add:()=>w,after:()=>L,ary:()=>ie,assign:()=>He,assignIn:()=>Xe,assignInWith:()=>tn,assignWith:()=>nn,at:()=>Dn,attempt:()=>Yn,before:()=>Jn,bind:()=>Zn,bindAll:()=>Xn,bindKey:()=>tr,camelCase:()=>ti,capitalize:()=>br,castArray:()=>ei,ceil:()=>oi,chain:()=>ui,chunk:()=>si,clamp:()=>li,clone:()=>co,cloneDeep:()=>so,cloneDeepWith:()=>fo,cloneWith:()=>lo,commit:()=>po,compact:()=>ho,concat:()=>vo,cond:()=>Ko,conforms:()=>$o,conformsTo:()=>Ho,constant:()=>Wt,countBy:()=>ru,create:()=>iu,curry:()=>uu,curryRight:()=>cu,debounce:()=>pu,deburr:()=>Sr,default:()=>lv,defaultTo:()=>hu,defaults:()=>gu,defaultsDeep:()=>Su,defer:()=>ku,delay:()=>Mu,difference:()=>Wu,differenceBy:()=>Cu,differenceWith:()=>Lu,divide:()=>Du,drop:()=>Fu,dropRight:()=>Nu,dropRightWhile:()=>Uu,dropWhile:()=>qu,each:()=>Vu,eachRight:()=>Gu,endsWith:()=>Zu,entries:()=>Qu,entriesIn:()=>ta,eq:()=>ue,escape:()=>ia,escapeRegExp:()=>aa,every:()=>fa,extend:()=>Xe,extendWith:()=>tn,fill:()=>pa,filter:()=>va,find:()=>ma,findIndex:()=>ga,findKey:()=>ba,findLast:()=>xa,findLastIndex:()=>wa,findLastKey:()=>Ea,first:()=>Sa,flatMap:()=>ka,flatMapDeep:()=>Ma,flatMapDepth:()=>Ba,flatten:()=>Cn,flattenDeep:()=>Wa,flattenDepth:()=>Ta,flip:()=>Ca,floor:()=>La,flow:()=>Fa,flowRight:()=>Na,forEach:()=>Vu,forEachRight:()=>Gu,forIn:()=>za,forInRight:()=>Ua,forOwn:()=>qa,forOwnRight:()=>Ka,fromPairs:()=>Va,functions:()=>Ha,functionsIn:()=>Ya,get:()=>Rn,groupBy:()=>Ga,gt:()=>Qa,gte:()=>tc,has:()=>rc,hasIn:()=>Fo,head:()=>Sa,identity:()=>D,inRange:()=>uc,includes:()=>lc,indexOf:()=>hc,initial:()=>vc,intersection:()=>mc,intersectionBy:()=>_c,intersectionWith:()=>bc,invert:()=>wc,invertBy:()=>Ac,invoke:()=>Rc,invokeMap:()=>Mc,isArguments:()=>xe,isArray:()=>m,isArrayBuffer:()=>Pc,isArrayLike:()=>ve,isArrayLikeObject:()=>_u,isBoolean:()=>Wc,isBuffer:()=>ke,isDate:()=>Cc,isElement:()=>Lc,isEmpty:()=>Fc,isEqual:()=>Nc,isEqualWith:()=>zc,isError:()=>$n,isFinite:()=>qc,isFunction:()=>F,isInteger:()=>Kc,isLength:()=>he,isMap:()=>to,isMatch:()=>Vc,isMatchWith:()=>$c,isNaN:()=>Yc,isNative:()=>Gc,isNil:()=>Zc,isNull:()=>Xc,isNumber:()=>Hc,isObject:()=>I,isObjectLike:()=>v,isPlainObject:()=>Vn,isRegExp:()=>ts,isSafeInteger:()=>es,isSet:()=>no,isString:()=>ac,isSymbol:()=>d,isTypedArray:()=>Le,isUndefined:()=>ns,isWeakMap:()=>rs,isWeakSet:()=>is,iteratee:()=>os,join:()=>as,kebabCase:()=>cs,keyBy:()=>ss,keys:()=>Ke,keysIn:()=>Ge,last:()=>Tu,lastIndexOf:()=>ps,lodash:()=>St,lowerCase:()=>hs,lowerFirst:()=>vs,lt:()=>ys,lte:()=>gs,map:()=>Ia,mapKeys:()=>ms,mapValues:()=>_s,matches:()=>bs,matchesProperty:()=>js,max:()=>ws,maxBy:()=>xs,mean:()=>As,meanBy:()=>Is,memoize:()=>jn,merge:()=>Rs,mergeWith:()=>Eu,method:()=>Ms,methodOf:()=>Bs,min:()=>Ps,minBy:()=>Ws,mixin:()=>Ts,multiply:()=>Cs,negate:()=>Ls,next:()=>Ns,noop:()=>vt,now:()=>su,nth:()=>Us,nthArg:()=>qs,omit:()=>$s,omitBy:()=>Gs,once:()=>Zs,orderBy:()=>tf,over:()=>nf,overArgs:()=>af,overEvery:()=>cf,overSome:()=>sf,pad:()=>Rf,padEnd:()=>Mf,padStart:()=>Bf,parseInt:()=>Tf,partial:()=>Lf,partialRight:()=>Ff,partition:()=>Nf,pick:()=>zf,pickBy:()=>Js,plant:()=>Uf,property:()=>Uo,propertyOf:()=>qf,pull:()=>Yf,pullAll:()=>Hf,pullAllBy:()=>Jf,pullAllWith:()=>Gf,pullAt:()=>Qf,random:()=>ul,range:()=>fl,rangeRight:()=>ll,rearg:()=>hl,reduce:()=>dl,reduceRight:()=>gl,reject:()=>ml,remove:()=>_l,repeat:()=>bl,replace:()=>jl,rest:()=>Ol,result:()=>wl,reverse:()=>El,round:()=>Sl,sample:()=>kl,sampleSize:()=>Pl,set:()=>Wl,setWith:()=>Tl,shuffle:()=>Dl,size:()=>Fl,slice:()=>Nl,snakeCase:()=>zl,some:()=>ql,sortBy:()=>Kl,sortedIndex:()=>Jl,sortedIndexBy:()=>Gl,sortedIndexOf:()=>Zl,sortedLastIndex:()=>Xl,sortedLastIndexBy:()=>Ql,sortedLastIndexOf:()=>tp,sortedUniq:()=>np,sortedUniqBy:()=>rp,split:()=>ip,spread:()=>up,startCase:()=>ap,startsWith:()=>cp,stubArray:()=>ji,stubFalse:()=>Ee,stubObject:()=>sp,stubString:()=>fp,stubTrue:()=>lp,subtract:()=>pp,sum:()=>hp,sumBy:()=>vp,tail:()=>dp,take:()=>yp,takeRight:()=>gp,takeRightWhile:()=>mp,takeWhile:()=>_p,tap:()=>bp,template:()=>Cp,templateSettings:()=>Ap,throttle:()=>Lp,thru:()=>Dp,times:()=>zp,toArray:()=>Fs,toFinite:()=>T,toInteger:()=>C,toIterator:()=>Up,toJSON:()=>Kp,toLength:()=>la,toLower:()=>Vp,toNumber:()=>P,toPairs:()=>Qu,toPairsIn:()=>ta,toPath:()=>$p,toPlainObject:()=>ju,toSafeInteger:()=>Hp,toString:()=>Sn,toUpper:()=>Yp,transform:()=>Jp,trim:()=>Xp,trimEnd:()=>Qp,trimStart:()=>eh,truncate:()=>rh,unary:()=>ih,unescape:()=>ch,union:()=>lh,unionBy:()=>ph,unionWith:()=>hh,uniq:()=>vh,uniqBy:()=>dh,uniqWith:()=>yh,uniqueId:()=>mh,unset:()=>_h,unzip:()=>jh,unzipWith:()=>Oh,update:()=>xh,updateWith:()=>Eh,upperCase:()=>Sh,upperFirst:()=>_r,value:()=>Kp,valueOf:()=>Kp,values:()=>sc,valuesIn:()=>Ah,without:()=>Ih,words:()=>Zr,wrap:()=>kh,wrapperAt:()=>Rh,wrapperChain:()=>Mh,wrapperCommit:()=>po,wrapperLodash:()=>St,wrapperNext:()=>Ns,wrapperPlant:()=>Uf,wrapperReverse:()=>Bh,wrapperToIterator:()=>Up,wrapperValue:()=>Kp,xor:()=>Wh,xorBy:()=>Th,xorWith:()=>Ch,zip:()=>Lh,zipObject:()=>Fh,zipObjectDeep:()=>Nh,zipWith:()=>zh});const r="object"==typeof global&&global&&global.Object===Object&&global;var i="object"==typeof self&&self&&self.Object===Object&&self;const o=r||i||Function("return this")(),u=o.Symbol;var a=Object.prototype,c=a.hasOwnProperty,s=a.toString,f=u?u.toStringTag:void 0;var l=Object.prototype.toString;var p=u?u.toStringTag:void 0;const h=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":p&&p in Object(t)?function(t){var e=c.call(t,f),n=t[f];try{t[f]=void 0;var r=!0}catch(t){}var i=s.call(t);return r&&(e?t[f]=n:delete t[f]),i}(t):function(t){return l.call(t)}(t)},v=function(t){return null!=t&&"object"==typeof t},d=function(t){return"symbol"==typeof t||v(t)&&"[object Symbol]"==h(t)},y=function(t){return"number"==typeof t?t:d(t)?NaN:+t},g=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i},m=Array.isArray;var _=u?u.prototype:void 0,b=_?_.toString:void 0;const j=function t(e){if("string"==typeof e)return e;if(m(e))return g(e,t)+"";if(d(e))return b?b.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n},O=function(t,e){return function(n,r){var i;if(void 0===n&&void 0===r)return e;if(void 0!==n&&(i=n),void 0!==r){if(void 0===i)return r;"string"==typeof n||"string"==typeof r?(n=j(n),r=j(r)):(n=y(n),r=y(r)),i=t(n,r)}return i}},w=O((function(t,e){return t+e}),0);var x=/\s/;const E=function(t){for(var e=t.length;e--&&x.test(t.charAt(e)););return e};var S=/^\s+/;const A=function(t){return t?t.slice(0,E(t)+1).replace(S,""):t},I=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};var k=/^[-+]0x[0-9a-f]+$/i,R=/^0b[01]+$/i,M=/^0o[0-7]+$/i,B=parseInt;const P=function(t){if("number"==typeof t)return t;if(d(t))return NaN;if(I(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=I(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=A(t);var n=R.test(t);return n||M.test(t)?B(t.slice(2),n?2:8):k.test(t)?NaN:+t};var W=1/0;const T=function(t){return t?(t=P(t))===W||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0},C=function(t){var e=T(t),n=e%1;return e==e?n?e-n:e:0},L=function(t,e){if("function"!=typeof e)throw new TypeError("Expected a function");return t=C(t),function(){if(--t<1)return e.apply(this,arguments)}},D=function(t){return t},F=function(t){if(!I(t))return!1;var e=h(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},N=o["__core-js_shared__"];var z,U=(z=/[^.]+$/.exec(N&&N.keys&&N.keys.IE_PROTO||""))?"Symbol(src)_1."+z:"";var q=Function.prototype.toString;const K=function(t){if(null!=t){try{return q.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var V=/^\[object .+?Constructor\]$/,$=Function.prototype,H=Object.prototype,Y=$.toString,J=H.hasOwnProperty,G=RegExp("^"+Y.call(J).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const Z=function(t){return!(!I(t)||function(t){return!!U&&U in t}(t))&&(F(t)?G:V).test(K(t))},X=function(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return Z(n)?n:void 0},Q=X(o,"WeakMap"),tt=Q&&new Q;var et=tt?function(t,e){return tt.set(t,e),t}:D;const nt=et;var rt=Object.create;const it=function(){function t(){}return function(e){if(!I(e))return{};if(rt)return rt(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}(),ot=function(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=it(t.prototype),r=t.apply(n,e);return I(r)?r:n}},ut=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)};var at=Math.max;const ct=function(t,e,n,r){for(var i=-1,o=t.length,u=n.length,a=-1,c=e.length,s=at(o-u,0),f=Array(c+s),l=!r;++a<c;)f[a]=e[a];for(;++i<u;)(l||i<o)&&(f[n[i]]=t[i]);for(;s--;)f[a++]=t[i++];return f};var st=Math.max;const ft=function(t,e,n,r){for(var i=-1,o=t.length,u=-1,a=n.length,c=-1,s=e.length,f=st(o-a,0),l=Array(f+s),p=!r;++i<f;)l[i]=t[i];for(var h=i;++c<s;)l[h+c]=e[c];for(;++u<a;)(p||i<o)&&(l[h+n[u]]=t[i++]);return l},lt=function(){};function pt(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}pt.prototype=it(lt.prototype),pt.prototype.constructor=pt;const ht=pt,vt=function(){};var dt=tt?function(t){return tt.get(t)}:vt;const yt=dt,gt={};var mt=Object.prototype.hasOwnProperty;const _t=function(t){for(var e=t.name+"",n=gt[e],r=mt.call(gt,e)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==t)return i.name}return e};function bt(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=void 0}bt.prototype=it(lt.prototype),bt.prototype.constructor=bt;const jt=bt,Ot=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e},wt=function(t){if(t instanceof ht)return t.clone();var e=new jt(t.__wrapped__,t.__chain__);return e.__actions__=Ot(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e};var xt=Object.prototype.hasOwnProperty;function Et(t){if(v(t)&&!m(t)&&!(t instanceof ht)){if(t instanceof jt)return t;if(xt.call(t,"__wrapped__"))return wt(t)}return new jt(t)}Et.prototype=lt.prototype,Et.prototype.constructor=Et;const St=Et,At=function(t){var e=_t(t),n=St[e];if("function"!=typeof n||!(e in ht.prototype))return!1;if(t===n)return!0;var r=yt(n);return!!r&&t===r[0]};var It=Date.now;const kt=function(t){var e=0,n=0;return function(){var r=It(),i=16-(r-n);if(n=r,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}},Rt=kt(nt);var Mt=/\{\n\/\* \[wrapped with (.+)\] \*/,Bt=/,? & /;var Pt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;const Wt=function(t){return function(){return t}};var Tt=function(){try{var t=X(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const Ct=Tt;var Lt=Ct?function(t,e){return Ct(t,"toString",{configurable:!0,enumerable:!1,value:Wt(e),writable:!0})}:D;const Dt=kt(Lt),Ft=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t},Nt=function(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o<i;)if(e(t[o],o,t))return o;return-1},zt=function(t){return t!=t},Ut=function(t,e,n){return e==e?function(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}(t,e,n):Nt(t,zt,n)},qt=function(t,e){return!(null==t||!t.length)&&Ut(t,e,0)>-1};var Kt=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];const Vt=function(t,e,n){var r=e+"";return Dt(t,function(t,e){var n=e.length;if(!n)return t;var r=n-1;return e[r]=(n>1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(Pt,"{\n/* [wrapped with "+e+"] */\n")}(r,function(t,e){return Ft(Kt,(function(n){var r="_."+n[0];e&n[1]&&!qt(t,r)&&t.push(r)})),t.sort()}(function(t){var e=t.match(Mt);return e?e[1].split(Bt):[]}(r),n)))},$t=function(t,e,n,r,i,o,u,a,c,s){var f=8&e;e|=f?32:64,4&(e&=~(f?64:32))||(e&=-4);var l=[t,e,i,f?o:void 0,f?u:void 0,f?void 0:o,f?void 0:u,a,c,s],p=n.apply(void 0,l);return At(t)&&Rt(p,l),p.placeholder=r,Vt(p,t,e)},Ht=function(t){return t.placeholder};var Yt=/^(?:0|[1-9]\d*)$/;const Jt=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Yt.test(t))&&t>-1&&t%1==0&&t<e};var Gt=Math.min;var Zt="__lodash_placeholder__";const Xt=function(t,e){for(var n=-1,r=t.length,i=0,o=[];++n<r;){var u=t[n];u!==e&&u!==Zt||(t[n]=Zt,o[i++]=n)}return o},Qt=function t(e,n,r,i,u,a,c,s,f,l){var p=128&n,h=1&n,v=2&n,d=24&n,y=512&n,g=v?void 0:ot(e);return function m(){for(var _=arguments.length,b=Array(_),j=_;j--;)b[j]=arguments[j];if(d)var O=Ht(m),w=function(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&++r;return r}(b,O);if(i&&(b=ct(b,i,u,d)),a&&(b=ft(b,a,c,d)),_-=w,d&&_<l){var x=Xt(b,O);return $t(e,n,t,m.placeholder,r,b,x,s,f,l-_)}var E=h?r:this,S=v?E[e]:e;return _=b.length,s?b=function(t,e){for(var n=t.length,r=Gt(e.length,n),i=Ot(t);r--;){var o=e[r];t[r]=Jt(o,n)?i[o]:void 0}return t}(b,s):y&&_>1&&b.reverse(),p&&f<_&&(b.length=f),this&&this!==o&&this instanceof m&&(S=g||ot(S)),S.apply(E,b)}};var te="__lodash_placeholder__",ee=Math.min;var ne=Math.max;const re=function(t,e,n,r,i,u,a,c){var s=2&e;if(!s&&"function"!=typeof t)throw new TypeError("Expected a function");var f=r?r.length:0;if(f||(e&=-97,r=i=void 0),a=void 0===a?a:ne(C(a),0),c=void 0===c?c:C(c),f-=i?i.length:0,64&e){var l=r,p=i;r=i=void 0}var h=s?void 0:yt(t),v=[t,e,n,r,i,l,p,u,a,c];if(h&&function(t,e){var n=t[1],r=e[1],i=n|r,o=i<131,u=128==r&&8==n||128==r&&256==n&&t[7].length<=e[8]||384==r&&e[7].length<=e[8]&&8==n;if(!o&&!u)return t;1&r&&(t[2]=e[2],i|=1&n?0:4);var a=e[3];if(a){var c=t[3];t[3]=c?ct(c,a,e[4]):a,t[4]=c?Xt(t[3],te):e[4]}(a=e[5])&&(c=t[5],t[5]=c?ft(c,a,e[6]):a,t[6]=c?Xt(t[5],te):e[6]),(a=e[7])&&(t[7]=a),128&r&&(t[8]=null==t[8]?e[8]:ee(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=i}(v,h),t=v[0],e=v[1],n=v[2],r=v[3],i=v[4],!(c=v[9]=void 0===v[9]?s?0:t.length:ne(v[9]-f,0))&&24&e&&(e&=-25),e&&1!=e)d=8==e||16==e?function(t,e,n){var r=ot(t);return function i(){for(var u=arguments.length,a=Array(u),c=u,s=Ht(i);c--;)a[c]=arguments[c];var f=u<3&&a[0]!==s&&a[u-1]!==s?[]:Xt(a,s);return(u-=f.length)<n?$t(t,e,Qt,i.placeholder,void 0,a,f,void 0,void 0,n-u):ut(this&&this!==o&&this instanceof i?r:t,this,a)}}(t,e,c):32!=e&&33!=e||i.length?Qt.apply(void 0,v):function(t,e,n,r){var i=1&e,u=ot(t);return function e(){for(var a=-1,c=arguments.length,s=-1,f=r.length,l=Array(f+c),p=this&&this!==o&&this instanceof e?u:t;++s<f;)l[s]=r[s];for(;c--;)l[s++]=arguments[++a];return ut(p,i?n:this,l)}}(t,e,n,r);else var d=function(t,e,n){var r=1&e,i=ot(t);return function e(){return(this&&this!==o&&this instanceof e?i:t).apply(r?n:this,arguments)}}(t,e,n);return Vt((h?nt:Rt)(d,v),t,e)},ie=function(t,e,n){return e=n?void 0:e,e=t&&null==e?t.length:e,re(t,128,void 0,void 0,void 0,void 0,e)},oe=function(t,e,n){"__proto__"==e&&Ct?Ct(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n},ue=function(t,e){return t===e||t!=t&&e!=e};var ae=Object.prototype.hasOwnProperty;const ce=function(t,e,n){var r=t[e];ae.call(t,e)&&ue(r,n)&&(void 0!==n||e in t)||oe(t,e,n)},se=function(t,e,n,r){var i=!n;n||(n={});for(var o=-1,u=e.length;++o<u;){var a=e[o],c=r?r(n[a],t[a],a,n,t):void 0;void 0===c&&(c=t[a]),i?oe(n,a,c):ce(n,a,c)}return n};var fe=Math.max;const le=function(t,e,n){return e=fe(void 0===e?t.length-1:e,0),function(){for(var r=arguments,i=-1,o=fe(r.length-e,0),u=Array(o);++i<o;)u[i]=r[e+i];i=-1;for(var a=Array(e+1);++i<e;)a[i]=r[i];return a[e]=n(u),ut(t,this,a)}},pe=function(t,e){return Dt(le(t,e,D),t+"")},he=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991},ve=function(t){return null!=t&&he(t.length)&&!F(t)},de=function(t,e,n){if(!I(n))return!1;var r=typeof e;return!!("number"==r?ve(n)&&Jt(e,n.length):"string"==r&&e in n)&&ue(n[e],t)},ye=function(t){return pe((function(e,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,u=i>2?n[2]:void 0;for(o=t.length>3&&"function"==typeof o?(i--,o):void 0,u&&de(n[0],n[1],u)&&(o=i<3?void 0:o,i=1),e=Object(e);++r<i;){var a=n[r];a&&t(e,a,r,o)}return e}))};var ge=Object.prototype;const me=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||ge)},_e=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r},be=function(t){return v(t)&&"[object Arguments]"==h(t)};var je=Object.prototype,Oe=je.hasOwnProperty,we=je.propertyIsEnumerable;const xe=be(function(){return arguments}())?be:function(t){return v(t)&&Oe.call(t,"callee")&&!we.call(t,"callee")},Ee=function(){return!1};var Se="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ae=Se&&"object"==typeof module&&module&&!module.nodeType&&module,Ie=Ae&&Ae.exports===Se?o.Buffer:void 0;const ke=(Ie?Ie.isBuffer:void 0)||Ee;var Re={};Re["[object Float32Array]"]=Re["[object Float64Array]"]=Re["[object Int8Array]"]=Re["[object Int16Array]"]=Re["[object Int32Array]"]=Re["[object Uint8Array]"]=Re["[object Uint8ClampedArray]"]=Re["[object Uint16Array]"]=Re["[object Uint32Array]"]=!0,Re["[object Arguments]"]=Re["[object Array]"]=Re["[object ArrayBuffer]"]=Re["[object Boolean]"]=Re["[object DataView]"]=Re["[object Date]"]=Re["[object Error]"]=Re["[object Function]"]=Re["[object Map]"]=Re["[object Number]"]=Re["[object Object]"]=Re["[object RegExp]"]=Re["[object Set]"]=Re["[object String]"]=Re["[object WeakMap]"]=!1;const Me=function(t){return function(e){return t(e)}};var Be="object"==typeof exports&&exports&&!exports.nodeType&&exports,Pe=Be&&"object"==typeof module&&module&&!module.nodeType&&module,We=Pe&&Pe.exports===Be&&r.process;const Te=function(){try{return Pe&&Pe.require&&Pe.require("util").types||We&&We.binding&&We.binding("util")}catch(t){}}();var Ce=Te&&Te.isTypedArray;const Le=Ce?Me(Ce):function(t){return v(t)&&he(t.length)&&!!Re[h(t)]};var De=Object.prototype.hasOwnProperty;const Fe=function(t,e){var n=m(t),r=!n&&xe(t),i=!n&&!r&&ke(t),o=!n&&!r&&!i&&Le(t),u=n||r||i||o,a=u?_e(t.length,String):[],c=a.length;for(var s in t)!e&&!De.call(t,s)||u&&("length"==s||i&&("offset"==s||"parent"==s)||o&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||Jt(s,c))||a.push(s);return a},Ne=function(t,e){return function(n){return t(e(n))}},ze=Ne(Object.keys,Object);var Ue=Object.prototype.hasOwnProperty;const qe=function(t){if(!me(t))return ze(t);var e=[];for(var n in Object(t))Ue.call(t,n)&&"constructor"!=n&&e.push(n);return e},Ke=function(t){return ve(t)?Fe(t):qe(t)};var Ve=Object.prototype.hasOwnProperty,$e=ye((function(t,e){if(me(e)||ve(e))se(e,Ke(e),t);else for(var n in e)Ve.call(e,n)&&ce(t,n,e[n])}));const He=$e;var Ye=Object.prototype.hasOwnProperty;const Je=function(t){if(!I(t))return function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}(t);var e=me(t),n=[];for(var r in t)("constructor"!=r||!e&&Ye.call(t,r))&&n.push(r);return n},Ge=function(t){return ve(t)?Fe(t,!0):Je(t)};var Ze=ye((function(t,e){se(e,Ge(e),t)}));const Xe=Ze;var Qe=ye((function(t,e,n,r){se(e,Ge(e),t,r)}));const tn=Qe;var en=ye((function(t,e,n,r){se(e,Ke(e),t,r)}));const nn=en;var rn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,on=/^\w*$/;const un=function(t,e){if(m(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!d(t))||on.test(t)||!rn.test(t)||null!=e&&t in Object(e)},an=X(Object,"create");var cn=Object.prototype.hasOwnProperty;var sn=Object.prototype.hasOwnProperty;function fn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}fn.prototype.clear=function(){this.__data__=an?an(null):{},this.size=0},fn.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},fn.prototype.get=function(t){var e=this.__data__;if(an){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return cn.call(e,t)?e[t]:void 0},fn.prototype.has=function(t){var e=this.__data__;return an?void 0!==e[t]:sn.call(e,t)},fn.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=an&&void 0===e?"__lodash_hash_undefined__":e,this};const ln=fn,pn=function(t,e){for(var n=t.length;n--;)if(ue(t[n][0],e))return n;return-1};var hn=Array.prototype.splice;function vn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}vn.prototype.clear=function(){this.__data__=[],this.size=0},vn.prototype.delete=function(t){var e=this.__data__,n=pn(e,t);return!(n<0||(n==e.length-1?e.pop():hn.call(e,n,1),--this.size,0))},vn.prototype.get=function(t){var e=this.__data__,n=pn(e,t);return n<0?void 0:e[n][1]},vn.prototype.has=function(t){return pn(this.__data__,t)>-1},vn.prototype.set=function(t,e){var n=this.__data__,r=pn(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};const dn=vn,yn=X(o,"Map"),gn=function(t,e){var n,r,i=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof e?"string":"hash"]:i.map};function mn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}mn.prototype.clear=function(){this.size=0,this.__data__={hash:new ln,map:new(yn||dn),string:new ln}},mn.prototype.delete=function(t){var e=gn(this,t).delete(t);return this.size-=e?1:0,e},mn.prototype.get=function(t){return gn(this,t).get(t)},mn.prototype.has=function(t){return gn(this,t).has(t)},mn.prototype.set=function(t,e){var n=gn(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};const _n=mn;function bn(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var u=t.apply(this,r);return n.cache=o.set(i,u)||o,u};return n.cache=new(bn.Cache||_n),n}bn.Cache=_n;const jn=bn;var On=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,wn=/\\(\\)?/g,xn=function(t){var e=jn(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(On,(function(t,n,r,i){e.push(r?i.replace(wn,"$1"):n||t)})),e}));const En=xn,Sn=function(t){return null==t?"":j(t)},An=function(t,e){return m(t)?t:un(t,e)?[t]:En(Sn(t))},In=function(t){if("string"==typeof t||d(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e},kn=function(t,e){for(var n=0,r=(e=An(e,t)).length;null!=t&&n<r;)t=t[In(e[n++])];return n&&n==r?t:void 0},Rn=function(t,e,n){var r=null==t?void 0:kn(t,e);return void 0===r?n:r},Mn=function(t,e){for(var n=-1,r=e.length,i=Array(r),o=null==t;++n<r;)i[n]=o?void 0:Rn(t,e[n]);return i},Bn=function(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t};var Pn=u?u.isConcatSpreadable:void 0;const Wn=function(t){return m(t)||xe(t)||!!(Pn&&t&&t[Pn])},Tn=function t(e,n,r,i,o){var u=-1,a=e.length;for(r||(r=Wn),o||(o=[]);++u<a;){var c=e[u];n>0&&r(c)?n>1?t(c,n-1,r,i,o):Bn(o,c):i||(o[o.length]=c)}return o},Cn=function(t){return null!=t&&t.length?Tn(t,1):[]},Ln=function(t){return Dt(le(t,void 0,Cn),t+"")},Dn=Ln(Mn),Fn=Ne(Object.getPrototypeOf,Object);var Nn=Function.prototype,zn=Object.prototype,Un=Nn.toString,qn=zn.hasOwnProperty,Kn=Un.call(Object);const Vn=function(t){if(!v(t)||"[object Object]"!=h(t))return!1;var e=Fn(t);if(null===e)return!0;var n=qn.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Un.call(n)==Kn},$n=function(t){if(!v(t))return!1;var e=h(t);return"[object Error]"==e||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!Vn(t)};var Hn=pe((function(t,e){try{return ut(t,void 0,e)}catch(t){return $n(t)?t:new Error(t)}}));const Yn=Hn,Jn=function(t,e){var n;if("function"!=typeof e)throw new TypeError("Expected a function");return t=C(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=void 0),n}};var Gn=pe((function(t,e,n){var r=1;if(n.length){var i=Xt(n,Ht(Gn));r|=32}return re(t,r,e,n,i)}));Gn.placeholder={};const Zn=Gn,Xn=Ln((function(t,e){return Ft(e,(function(e){e=In(e),oe(t,e,Zn(t[e],t))})),t}));var Qn=pe((function(t,e,n){var r=3;if(n.length){var i=Xt(n,Ht(Qn));r|=32}return re(e,r,t,n,i)}));Qn.placeholder={};const tr=Qn,er=function(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(i);++r<i;)o[r]=t[r+e];return o},nr=function(t,e,n){var r=t.length;return n=void 0===n?r:n,!e&&n>=r?t:er(t,e,n)};var rr=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");const ir=function(t){return rr.test(t)};var or="\\ud800-\\udfff",ur="["+or+"]",ar="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",cr="\\ud83c[\\udffb-\\udfff]",sr="[^"+or+"]",fr="(?:\\ud83c[\\udde6-\\uddff]){2}",lr="[\\ud800-\\udbff][\\udc00-\\udfff]",pr="(?:"+ar+"|"+cr+")?",hr="[\\ufe0e\\ufe0f]?",vr=hr+pr+"(?:\\u200d(?:"+[sr,fr,lr].join("|")+")"+hr+pr+")*",dr="(?:"+[sr+ar+"?",ar,fr,lr,ur].join("|")+")",yr=RegExp(cr+"(?="+cr+")|"+dr+vr,"g");const gr=function(t){return ir(t)?function(t){return t.match(yr)||[]}(t):function(t){return t.split("")}(t)},mr=function(t){return function(e){e=Sn(e);var n=ir(e)?gr(e):void 0,r=n?n[0]:e.charAt(0),i=n?nr(n,1).join(""):e.slice(1);return r[t]()+i}},_r=mr("toUpperCase"),br=function(t){return _r(Sn(t).toLowerCase())},jr=function(t,e,n,r){var i=-1,o=null==t?0:t.length;for(r&&o&&(n=t[++i]);++i<o;)n=e(n,t[i],i,t);return n},Or=function(t){return function(e){return null==t?void 0:t[e]}},wr=Or({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"});var xr=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Er=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");const Sr=function(t){return(t=Sn(t))&&t.replace(xr,wr).replace(Er,"")};var Ar=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;var Ir=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;var kr="\\ud800-\\udfff",Rr="\\u2700-\\u27bf",Mr="a-z\\xdf-\\xf6\\xf8-\\xff",Br="A-Z\\xc0-\\xd6\\xd8-\\xde",Pr="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Wr="["+Pr+"]",Tr="\\d+",Cr="["+Rr+"]",Lr="["+Mr+"]",Dr="[^"+kr+Pr+Tr+Rr+Mr+Br+"]",Fr="(?:\\ud83c[\\udde6-\\uddff]){2}",Nr="[\\ud800-\\udbff][\\udc00-\\udfff]",zr="["+Br+"]",Ur="(?:"+Lr+"|"+Dr+")",qr="(?:"+zr+"|"+Dr+")",Kr="(?:['’](?:d|ll|m|re|s|t|ve))?",Vr="(?:['’](?:D|LL|M|RE|S|T|VE))?",$r="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",Hr="[\\ufe0e\\ufe0f]?",Yr=Hr+$r+"(?:\\u200d(?:"+["[^"+kr+"]",Fr,Nr].join("|")+")"+Hr+$r+")*",Jr="(?:"+[Cr,Fr,Nr].join("|")+")"+Yr,Gr=RegExp([zr+"?"+Lr+"+"+Kr+"(?="+[Wr,zr,"$"].join("|")+")",qr+"+"+Vr+"(?="+[Wr,zr+Ur,"$"].join("|")+")",zr+"?"+Ur+"+"+Kr,zr+"+"+Vr,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Tr,Jr].join("|"),"g");const Zr=function(t,e,n){return t=Sn(t),void 0===(e=n?void 0:e)?function(t){return Ir.test(t)}(t)?function(t){return t.match(Gr)||[]}(t):function(t){return t.match(Ar)||[]}(t):t.match(e)||[]};var Xr=RegExp("['’]","g");const Qr=function(t){return function(e){return jr(Zr(Sr(e).replace(Xr,"")),t,"")}};const ti=Qr((function(t,e,n){return e=e.toLowerCase(),t+(n?br(e):e)})),ei=function(){if(!arguments.length)return[];var t=arguments[0];return m(t)?t:[t]};var ni=o.isFinite,ri=Math.min;const ii=function(t){var e=Math[t];return function(t,n){if(t=P(t),(n=null==n?0:ri(C(n),292))&&ni(t)){var r=(Sn(t)+"e").split("e"),i=e(r[0]+"e"+(+r[1]+n));return+((r=(Sn(i)+"e").split("e"))[0]+"e"+(+r[1]-n))}return e(t)}},oi=ii("ceil"),ui=function(t){var e=St(t);return e.__chain__=!0,e};var ai=Math.ceil,ci=Math.max;const si=function(t,e,n){e=(n?de(t,e,n):void 0===e)?1:ci(C(e),0);var r=null==t?0:t.length;if(!r||e<1)return[];for(var i=0,o=0,u=Array(ai(r/e));i<r;)u[o++]=er(t,i,i+=e);return u},fi=function(t,e,n){return t==t&&(void 0!==n&&(t=t<=n?t:n),void 0!==e&&(t=t>=e?t:e)),t},li=function(t,e,n){return void 0===n&&(n=e,e=void 0),void 0!==n&&(n=(n=P(n))==n?n:0),void 0!==e&&(e=(e=P(e))==e?e:0),fi(P(t),e,n)};function pi(t){var e=this.__data__=new dn(t);this.size=e.size}pi.prototype.clear=function(){this.__data__=new dn,this.size=0},pi.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},pi.prototype.get=function(t){return this.__data__.get(t)},pi.prototype.has=function(t){return this.__data__.has(t)},pi.prototype.set=function(t,e){var n=this.__data__;if(n instanceof dn){var r=n.__data__;if(!yn||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new _n(r)}return n.set(t,e),this.size=n.size,this};const hi=pi,vi=function(t,e){return t&&se(e,Ke(e),t)};var di="object"==typeof exports&&exports&&!exports.nodeType&&exports,yi=di&&"object"==typeof module&&module&&!module.nodeType&&module,gi=yi&&yi.exports===di?o.Buffer:void 0,mi=gi?gi.allocUnsafe:void 0;const _i=function(t,e){if(e)return t.slice();var n=t.length,r=mi?mi(n):new t.constructor(n);return t.copy(r),r},bi=function(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var u=t[n];e(u,n,t)&&(o[i++]=u)}return o},ji=function(){return[]};var Oi=Object.prototype.propertyIsEnumerable,wi=Object.getOwnPropertySymbols;const xi=wi?function(t){return null==t?[]:(t=Object(t),bi(wi(t),(function(e){return Oi.call(t,e)})))}:ji;const Ei=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)Bn(e,xi(t)),t=Fn(t);return e}:ji,Si=function(t,e,n){var r=e(t);return m(t)?r:Bn(r,n(t))},Ai=function(t){return Si(t,Ke,xi)},Ii=function(t){return Si(t,Ge,Ei)},ki=X(o,"DataView"),Ri=X(o,"Promise"),Mi=X(o,"Set");var Bi="[object Map]",Pi="[object Promise]",Wi="[object Set]",Ti="[object WeakMap]",Ci="[object DataView]",Li=K(ki),Di=K(yn),Fi=K(Ri),Ni=K(Mi),zi=K(Q),Ui=h;(ki&&Ui(new ki(new ArrayBuffer(1)))!=Ci||yn&&Ui(new yn)!=Bi||Ri&&Ui(Ri.resolve())!=Pi||Mi&&Ui(new Mi)!=Wi||Q&&Ui(new Q)!=Ti)&&(Ui=function(t){var e=h(t),n="[object Object]"==e?t.constructor:void 0,r=n?K(n):"";if(r)switch(r){case Li:return Ci;case Di:return Bi;case Fi:return Pi;case Ni:return Wi;case zi:return Ti}return e});const qi=Ui;var Ki=Object.prototype.hasOwnProperty;const Vi=o.Uint8Array,$i=function(t){var e=new t.constructor(t.byteLength);return new Vi(e).set(new Vi(t)),e};var Hi=/\w*$/;var Yi=u?u.prototype:void 0,Ji=Yi?Yi.valueOf:void 0;const Gi=function(t,e){var n=e?$i(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)},Zi=function(t,e,n){var r,i,o,u=t.constructor;switch(e){case"[object ArrayBuffer]":return $i(t);case"[object Boolean]":case"[object Date]":return new u(+t);case"[object DataView]":return function(t,e){var n=e?$i(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return Gi(t,n);case"[object Map]":case"[object Set]":return new u;case"[object Number]":case"[object String]":return new u(t);case"[object RegExp]":return(o=new(i=t).constructor(i.source,Hi.exec(i))).lastIndex=i.lastIndex,o;case"[object Symbol]":return r=t,Ji?Object(Ji.call(r)):{}}},Xi=function(t){return"function"!=typeof t.constructor||me(t)?{}:it(Fn(t))};var Qi=Te&&Te.isMap;const to=Qi?Me(Qi):function(t){return v(t)&&"[object Map]"==qi(t)};var eo=Te&&Te.isSet;const no=eo?Me(eo):function(t){return v(t)&&"[object Set]"==qi(t)};var ro="[object Arguments]",io="[object Function]",oo="[object Object]",uo={};uo[ro]=uo["[object Array]"]=uo["[object ArrayBuffer]"]=uo["[object DataView]"]=uo["[object Boolean]"]=uo["[object Date]"]=uo["[object Float32Array]"]=uo["[object Float64Array]"]=uo["[object Int8Array]"]=uo["[object Int16Array]"]=uo["[object Int32Array]"]=uo["[object Map]"]=uo["[object Number]"]=uo[oo]=uo["[object RegExp]"]=uo["[object Set]"]=uo["[object String]"]=uo["[object Symbol]"]=uo["[object Uint8Array]"]=uo["[object Uint8ClampedArray]"]=uo["[object Uint16Array]"]=uo["[object Uint32Array]"]=!0,uo["[object Error]"]=uo[io]=uo["[object WeakMap]"]=!1;const ao=function t(e,n,r,i,o,u){var a,c=1&n,s=2&n,f=4&n;if(r&&(a=o?r(e,i,o,u):r(e)),void 0!==a)return a;if(!I(e))return e;var l=m(e);if(l){if(a=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&Ki.call(t,"index")&&(n.index=t.index,n.input=t.input),n}(e),!c)return Ot(e,a)}else{var p=qi(e),h=p==io||"[object GeneratorFunction]"==p;if(ke(e))return _i(e,c);if(p==oo||p==ro||h&&!o){if(a=s||h?{}:Xi(e),!c)return s?function(t,e){return se(t,Ei(t),e)}(e,function(t,e){return t&&se(e,Ge(e),t)}(a,e)):function(t,e){return se(t,xi(t),e)}(e,vi(a,e))}else{if(!uo[p])return o?e:{};a=Zi(e,p,c)}}u||(u=new hi);var v=u.get(e);if(v)return v;u.set(e,a),no(e)?e.forEach((function(i){a.add(t(i,n,r,i,e,u))})):to(e)&&e.forEach((function(i,o){a.set(o,t(i,n,r,o,e,u))}));var d=l?void 0:(f?s?Ii:Ai:s?Ge:Ke)(e);return Ft(d||e,(function(i,o){d&&(i=e[o=i]),ce(a,o,t(i,n,r,o,e,u))})),a},co=function(t){return ao(t,4)},so=function(t){return ao(t,5)},fo=function(t,e){return ao(t,5,e="function"==typeof e?e:void 0)},lo=function(t,e){return ao(t,4,e="function"==typeof e?e:void 0)},po=function(){return new jt(this.value(),this.__chain__)},ho=function(t){for(var e=-1,n=null==t?0:t.length,r=0,i=[];++e<n;){var o=t[e];o&&(i[r++]=o)}return i},vo=function(){var t=arguments.length;if(!t)return[];for(var e=Array(t-1),n=arguments[0],r=t;r--;)e[r-1]=arguments[r];return Bn(m(n)?Ot(n):[n],Tn(e,1))};function yo(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new _n;++e<n;)this.add(t[e])}yo.prototype.add=yo.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},yo.prototype.has=function(t){return this.__data__.has(t)};const go=yo,mo=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1},_o=function(t,e){return t.has(e)},bo=function(t,e,n,r,i,o){var u=1&n,a=t.length,c=e.length;if(a!=c&&!(u&&c>a))return!1;var s=o.get(t),f=o.get(e);if(s&&f)return s==e&&f==t;var l=-1,p=!0,h=2&n?new go:void 0;for(o.set(t,e),o.set(e,t);++l<a;){var v=t[l],d=e[l];if(r)var y=u?r(d,v,l,e,t,o):r(v,d,l,t,e,o);if(void 0!==y){if(y)continue;p=!1;break}if(h){if(!mo(e,(function(t,e){if(!_o(h,e)&&(v===t||i(v,t,n,r,o)))return h.push(e)}))){p=!1;break}}else if(v!==d&&!i(v,d,n,r,o)){p=!1;break}}return o.delete(t),o.delete(e),p},jo=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n},Oo=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var wo=u?u.prototype:void 0,xo=wo?wo.valueOf:void 0;var Eo=Object.prototype.hasOwnProperty;var So="[object Arguments]",Ao="[object Array]",Io="[object Object]",ko=Object.prototype.hasOwnProperty;const Ro=function(t,e,n,r,i,o){var u=m(t),a=m(e),c=u?Ao:qi(t),s=a?Ao:qi(e),f=(c=c==So?Io:c)==Io,l=(s=s==So?Io:s)==Io,p=c==s;if(p&&ke(t)){if(!ke(e))return!1;u=!0,f=!1}if(p&&!f)return o||(o=new hi),u||Le(t)?bo(t,e,n,r,i,o):function(t,e,n,r,i,o,u){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!o(new Vi(t),new Vi(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return ue(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var a=jo;case"[object Set]":var c=1&r;if(a||(a=Oo),t.size!=e.size&&!c)return!1;var s=u.get(t);if(s)return s==e;r|=2,u.set(t,e);var f=bo(a(t),a(e),r,i,o,u);return u.delete(t),f;case"[object Symbol]":if(xo)return xo.call(t)==xo.call(e)}return!1}(t,e,c,n,r,i,o);if(!(1&n)){var h=f&&ko.call(t,"__wrapped__"),v=l&&ko.call(e,"__wrapped__");if(h||v){var d=h?t.value():t,y=v?e.value():e;return o||(o=new hi),i(d,y,n,r,o)}}return!!p&&(o||(o=new hi),function(t,e,n,r,i,o){var u=1&n,a=Ai(t),c=a.length;if(c!=Ai(e).length&&!u)return!1;for(var s=c;s--;){var f=a[s];if(!(u?f in e:Eo.call(e,f)))return!1}var l=o.get(t),p=o.get(e);if(l&&p)return l==e&&p==t;var h=!0;o.set(t,e),o.set(e,t);for(var v=u;++s<c;){var d=t[f=a[s]],y=e[f];if(r)var g=u?r(y,d,f,e,t,o):r(d,y,f,t,e,o);if(!(void 0===g?d===y||i(d,y,n,r,o):g)){h=!1;break}v||(v="constructor"==f)}if(h&&!v){var m=t.constructor,_=e.constructor;m==_||!("constructor"in t)||!("constructor"in e)||"function"==typeof m&&m instanceof m&&"function"==typeof _&&_ instanceof _||(h=!1)}return o.delete(t),o.delete(e),h}(t,e,n,r,i,o))},Mo=function t(e,n,r,i,o){return e===n||(null==e||null==n||!v(e)&&!v(n)?e!=e&&n!=n:Ro(e,n,r,i,t,o))},Bo=function(t,e,n,r){var i=n.length,o=i,u=!r;if(null==t)return!o;for(t=Object(t);i--;){var a=n[i];if(u&&a[2]?a[1]!==t[a[0]]:!(a[0]in t))return!1}for(;++i<o;){var c=(a=n[i])[0],s=t[c],f=a[1];if(u&&a[2]){if(void 0===s&&!(c in t))return!1}else{var l=new hi;if(r)var p=r(s,f,c,t,e,l);if(!(void 0===p?Mo(f,s,3,r,l):p))return!1}}return!0},Po=function(t){return t==t&&!I(t)},Wo=function(t){for(var e=Ke(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,Po(i)]}return e},To=function(t,e){return function(n){return null!=n&&n[t]===e&&(void 0!==e||t in Object(n))}},Co=function(t){var e=Wo(t);return 1==e.length&&e[0][2]?To(e[0][0],e[0][1]):function(n){return n===t||Bo(n,t,e)}},Lo=function(t,e){return null!=t&&e in Object(t)},Do=function(t,e,n){for(var r=-1,i=(e=An(e,t)).length,o=!1;++r<i;){var u=In(e[r]);if(!(o=null!=t&&n(t,u)))break;t=t[u]}return o||++r!=i?o:!!(i=null==t?0:t.length)&&he(i)&&Jt(u,i)&&(m(t)||xe(t))},Fo=function(t,e){return null!=t&&Do(t,e,Lo)},No=function(t,e){return un(t)&&Po(e)?To(In(t),e):function(n){var r=Rn(n,t);return void 0===r&&r===e?Fo(n,t):Mo(e,r,3)}},zo=function(t){return function(e){return null==e?void 0:e[t]}},Uo=function(t){return un(t)?zo(In(t)):function(t){return function(e){return kn(e,t)}}(t)},qo=function(t){return"function"==typeof t?t:null==t?D:"object"==typeof t?m(t)?No(t[0],t[1]):Co(t):Uo(t)},Ko=function(t){var e=null==t?0:t.length,n=qo;return t=e?g(t,(function(t){if("function"!=typeof t[1])throw new TypeError("Expected a function");return[n(t[0]),t[1]]})):[],pe((function(n){for(var r=-1;++r<e;){var i=t[r];if(ut(i[0],this,n))return ut(i[1],this,n)}}))},Vo=function(t,e,n){var r=n.length;if(null==t)return!r;for(t=Object(t);r--;){var i=n[r],o=e[i],u=t[i];if(void 0===u&&!(i in t)||!o(u))return!1}return!0},$o=function(t){return function(t){var e=Ke(t);return function(n){return Vo(n,t,e)}}(ao(t,1))},Ho=function(t,e){return null==e||Vo(t,e,Ke(e))},Yo=function(t,e,n,r){for(var i=-1,o=null==t?0:t.length;++i<o;){var u=t[i];e(r,u,n(u),t)}return r},Jo=function(t){return function(e,n,r){for(var i=-1,o=Object(e),u=r(e),a=u.length;a--;){var c=u[t?a:++i];if(!1===n(o[c],c,o))break}return e}},Go=Jo(),Zo=function(t,e){return t&&Go(t,e,Ke)},Xo=function(t,e){return function(n,r){if(null==n)return n;if(!ve(n))return t(n,r);for(var i=n.length,o=e?i:-1,u=Object(n);(e?o--:++o<i)&&!1!==r(u[o],o,u););return n}},Qo=Xo(Zo),tu=function(t,e,n,r){return Qo(t,(function(t,i,o){e(r,t,n(t),o)})),r},eu=function(t,e){return function(n,r){var i=m(n)?Yo:tu,o=e?e():{};return i(n,t,qo(r),o)}};var nu=Object.prototype.hasOwnProperty;const ru=eu((function(t,e,n){nu.call(t,n)?++t[n]:oe(t,n,1)})),iu=function(t,e){var n=it(t);return null==e?n:vi(n,e)};function ou(t,e,n){var r=re(t,8,void 0,void 0,void 0,void 0,void 0,e=n?void 0:e);return r.placeholder=ou.placeholder,r}ou.placeholder={};const uu=ou;function au(t,e,n){var r=re(t,16,void 0,void 0,void 0,void 0,void 0,e=n?void 0:e);return r.placeholder=au.placeholder,r}au.placeholder={};const cu=au,su=function(){return o.Date.now()};var fu=Math.max,lu=Math.min;const pu=function(t,e,n){var r,i,o,u,a,c,s=0,f=!1,l=!1,p=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function h(e){var n=r,o=i;return r=i=void 0,s=e,u=t.apply(o,n)}function v(t){var n=t-c;return void 0===c||n>=e||n<0||l&&t-s>=o}function d(){var t=su();if(v(t))return y(t);a=setTimeout(d,function(t){var n=e-(t-c);return l?lu(n,o-(t-s)):n}(t))}function y(t){return a=void 0,p&&r?h(t):(r=i=void 0,u)}function g(){var t=su(),n=v(t);if(r=arguments,i=this,c=t,n){if(void 0===a)return function(t){return s=t,a=setTimeout(d,e),f?h(t):u}(c);if(l)return clearTimeout(a),a=setTimeout(d,e),h(c)}return void 0===a&&(a=setTimeout(d,e)),u}return e=P(e)||0,I(n)&&(f=!!n.leading,o=(l="maxWait"in n)?fu(P(n.maxWait)||0,e):o,p="trailing"in n?!!n.trailing:p),g.cancel=function(){void 0!==a&&clearTimeout(a),s=0,r=c=i=a=void 0},g.flush=function(){return void 0===a?u:y(su())},g},hu=function(t,e){return null==t||t!=t?e:t};var vu=Object.prototype,du=vu.hasOwnProperty,yu=pe((function(t,e){t=Object(t);var n=-1,r=e.length,i=r>2?e[2]:void 0;for(i&&de(e[0],e[1],i)&&(r=1);++n<r;)for(var o=e[n],u=Ge(o),a=-1,c=u.length;++a<c;){var s=u[a],f=t[s];(void 0===f||ue(f,vu[s])&&!du.call(t,s))&&(t[s]=o[s])}return t}));const gu=yu,mu=function(t,e,n){(void 0!==n&&!ue(t[e],n)||void 0===n&&!(e in t))&&oe(t,e,n)},_u=function(t){return v(t)&&ve(t)},bu=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]},ju=function(t){return se(t,Ge(t))},Ou=function t(e,n,r,i,o){e!==n&&Go(n,(function(u,a){if(o||(o=new hi),I(u))!function(t,e,n,r,i,o,u){var a=bu(t,n),c=bu(e,n),s=u.get(c);if(s)mu(t,n,s);else{var f=o?o(a,c,n+"",t,e,u):void 0,l=void 0===f;if(l){var p=m(c),h=!p&&ke(c),v=!p&&!h&&Le(c);f=c,p||h||v?m(a)?f=a:_u(a)?f=Ot(a):h?(l=!1,f=_i(c,!0)):v?(l=!1,f=Gi(c,!0)):f=[]:Vn(c)||xe(c)?(f=a,xe(a)?f=ju(a):I(a)&&!F(a)||(f=Xi(c))):l=!1}l&&(u.set(c,f),i(f,c,r,o,u),u.delete(c)),mu(t,n,f)}}(e,n,a,r,t,i,o);else{var c=i?i(bu(e,a),u,a+"",e,n,o):void 0;void 0===c&&(c=u),mu(e,a,c)}}),Ge)},wu=function t(e,n,r,i,o,u){return I(e)&&I(n)&&(u.set(n,e),Ou(e,n,void 0,t,u),u.delete(n)),e};var xu=ye((function(t,e,n,r){Ou(t,e,n,r)}));const Eu=xu,Su=pe((function(t){return t.push(void 0,wu),ut(Eu,void 0,t)})),Au=function(t,e,n){if("function"!=typeof t)throw new TypeError("Expected a function");return setTimeout((function(){t.apply(void 0,n)}),e)};var Iu=pe((function(t,e){return Au(t,1,e)}));const ku=Iu;var Ru=pe((function(t,e,n){return Au(t,P(e)||0,n)}));const Mu=Ru,Bu=function(t,e,n){for(var r=-1,i=null==t?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1},Pu=function(t,e,n,r){var i=-1,o=qt,u=!0,a=t.length,c=[],s=e.length;if(!a)return c;n&&(e=g(e,Me(n))),r?(o=Bu,u=!1):e.length>=200&&(o=_o,u=!1,e=new go(e));t:for(;++i<a;){var f=t[i],l=null==n?f:n(f);if(f=r||0!==f?f:0,u&&l==l){for(var p=s;p--;)if(e[p]===l)continue t;c.push(f)}else o(e,l,r)||c.push(f)}return c};const Wu=pe((function(t,e){return _u(t)?Pu(t,Tn(e,1,_u,!0)):[]})),Tu=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const Cu=pe((function(t,e){var n=Tu(e);return _u(n)&&(n=void 0),_u(t)?Pu(t,Tn(e,1,_u,!0),qo(n)):[]}));const Lu=pe((function(t,e){var n=Tu(e);return _u(n)&&(n=void 0),_u(t)?Pu(t,Tn(e,1,_u,!0),void 0,n):[]})),Du=O((function(t,e){return t/e}),1),Fu=function(t,e,n){var r=null==t?0:t.length;return r?(e=n||void 0===e?1:C(e),er(t,e<0?0:e,r)):[]},Nu=function(t,e,n){var r=null==t?0:t.length;return r?(e=n||void 0===e?1:C(e),er(t,0,(e=r-e)<0?0:e)):[]},zu=function(t,e,n,r){for(var i=t.length,o=r?i:-1;(r?o--:++o<i)&&e(t[o],o,t););return n?er(t,r?0:o,r?o+1:i):er(t,r?o+1:0,r?i:o)},Uu=function(t,e){return t&&t.length?zu(t,qo(e),!0,!0):[]},qu=function(t,e){return t&&t.length?zu(t,qo(e),!0):[]},Ku=function(t){return"function"==typeof t?t:D},Vu=function(t,e){return(m(t)?Ft:Qo)(t,Ku(e))},$u=function(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t},Hu=Jo(!0),Yu=function(t,e){return t&&Hu(t,e,Ke)},Ju=Xo(Yu,!0),Gu=function(t,e){return(m(t)?$u:Ju)(t,Ku(e))},Zu=function(t,e,n){t=Sn(t),e=j(e);var r=t.length,i=n=void 0===n?r:fi(C(n),0,r);return(n-=e.length)>=0&&t.slice(n,i)==e},Xu=function(t){return function(e){var n,r,i,o=qi(e);return"[object Map]"==o?jo(e):"[object Set]"==o?(n=e,r=-1,i=Array(n.size),n.forEach((function(t){i[++r]=[t,t]})),i):function(t,e){return g(e,(function(e){return[e,t[e]]}))}(e,t(e))}},Qu=Xu(Ke),ta=Xu(Ge),ea=Or({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});var na=/[&<>"']/g,ra=RegExp(na.source);const ia=function(t){return(t=Sn(t))&&ra.test(t)?t.replace(na,ea):t};var oa=/[\\^$.*+?()[\]{}|]/g,ua=RegExp(oa.source);const aa=function(t){return(t=Sn(t))&&ua.test(t)?t.replace(oa,"\\$&"):t},ca=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(!e(t[n],n,t))return!1;return!0},sa=function(t,e){var n=!0;return Qo(t,(function(t,r,i){return n=!!e(t,r,i)})),n},fa=function(t,e,n){var r=m(t)?ca:sa;return n&&de(t,e,n)&&(e=void 0),r(t,qo(e))},la=function(t){return t?fi(C(t),0,4294967295):0},pa=function(t,e,n,r){var i=null==t?0:t.length;return i?(n&&"number"!=typeof n&&de(t,e,n)&&(n=0,r=i),function(t,e,n,r){var i=t.length;for((n=C(n))<0&&(n=-n>i?0:i+n),(r=void 0===r||r>i?i:C(r))<0&&(r+=i),r=n>r?0:la(r);n<r;)t[n++]=e;return t}(t,e,n,r)):[]},ha=function(t,e){var n=[];return Qo(t,(function(t,r,i){e(t,r,i)&&n.push(t)})),n},va=function(t,e){return(m(t)?bi:ha)(t,qo(e))},da=function(t){return function(e,n,r){var i=Object(e);if(!ve(e)){var o=qo(n);e=Ke(e),n=function(t){return o(i[t],t,i)}}var u=t(e,n,r);return u>-1?i[o?e[u]:u]:void 0}};var ya=Math.max;const ga=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:C(n);return i<0&&(i=ya(r+i,0)),Nt(t,qo(e),i)},ma=da(ga),_a=function(t,e,n){var r;return n(t,(function(t,n,i){if(e(t,n,i))return r=n,!1})),r},ba=function(t,e){return _a(t,qo(e),Zo)};var ja=Math.max,Oa=Math.min;const wa=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=r-1;return void 0!==n&&(i=C(n),i=n<0?ja(r+i,0):Oa(i,r-1)),Nt(t,qo(e),i,!0)},xa=da(wa),Ea=function(t,e){return _a(t,qo(e),Yu)},Sa=function(t){return t&&t.length?t[0]:void 0},Aa=function(t,e){var n=-1,r=ve(t)?Array(t.length):[];return Qo(t,(function(t,i,o){r[++n]=e(t,i,o)})),r},Ia=function(t,e){return(m(t)?g:Aa)(t,qo(e))},ka=function(t,e){return Tn(Ia(t,e),1)};var Ra=1/0;const Ma=function(t,e){return Tn(Ia(t,e),Ra)},Ba=function(t,e,n){return n=void 0===n?1:C(n),Tn(Ia(t,e),n)};var Pa=1/0;const Wa=function(t){return null!=t&&t.length?Tn(t,Pa):[]},Ta=function(t,e){return null!=t&&t.length?(e=void 0===e?1:C(e),Tn(t,e)):[]},Ca=function(t){return re(t,512)},La=ii("floor"),Da=function(t){return Ln((function(e){var n=e.length,r=n,i=jt.prototype.thru;for(t&&e.reverse();r--;){var o=e[r];if("function"!=typeof o)throw new TypeError("Expected a function");if(i&&!u&&"wrapper"==_t(o))var u=new jt([],!0)}for(r=u?r:n;++r<n;){o=e[r];var a=_t(o),c="wrapper"==a?yt(o):void 0;u=c&&At(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?u[_t(c[0])].apply(u,c[3]):1==o.length&&At(o)?u[a]():u.thru(o)}return function(){var t=arguments,r=t[0];if(u&&1==t.length&&m(r))return u.plant(r).value();for(var i=0,o=n?e[i].apply(this,t):r;++i<n;)o=e[i].call(this,o);return o}}))},Fa=Da(),Na=Da(!0),za=function(t,e){return null==t?t:Go(t,Ku(e),Ge)},Ua=function(t,e){return null==t?t:Hu(t,Ku(e),Ge)},qa=function(t,e){return t&&Zo(t,Ku(e))},Ka=function(t,e){return t&&Yu(t,Ku(e))},Va=function(t){for(var e=-1,n=null==t?0:t.length,r={};++e<n;){var i=t[e];r[i[0]]=i[1]}return r},$a=function(t,e){return bi(e,(function(e){return F(t[e])}))},Ha=function(t){return null==t?[]:$a(t,Ke(t))},Ya=function(t){return null==t?[]:$a(t,Ge(t))};var Ja=Object.prototype.hasOwnProperty;const Ga=eu((function(t,e,n){Ja.call(t,n)?t[n].push(e):oe(t,n,[e])})),Za=function(t,e){return t>e},Xa=function(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=P(e),n=P(n)),t(e,n)}},Qa=Xa(Za),tc=Xa((function(t,e){return t>=e}));var ec=Object.prototype.hasOwnProperty;const nc=function(t,e){return null!=t&&ec.call(t,e)},rc=function(t,e){return null!=t&&Do(t,e,nc)};var ic=Math.max,oc=Math.min;const uc=function(t,e,n){return e=T(e),void 0===n?(n=e,e=0):n=T(n),function(t,e,n){return t>=oc(e,n)&&t<ic(e,n)}(t=P(t),e,n)},ac=function(t){return"string"==typeof t||!m(t)&&v(t)&&"[object String]"==h(t)},cc=function(t,e){return g(e,(function(e){return t[e]}))},sc=function(t){return null==t?[]:cc(t,Ke(t))};var fc=Math.max;const lc=function(t,e,n,r){t=ve(t)?t:sc(t),n=n&&!r?C(n):0;var i=t.length;return n<0&&(n=fc(i+n,0)),ac(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&Ut(t,e,n)>-1};var pc=Math.max;const hc=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:C(n);return i<0&&(i=pc(r+i,0)),Ut(t,e,i)},vc=function(t){return null!=t&&t.length?er(t,0,-1):[]};var dc=Math.min;const yc=function(t,e,n){for(var r=n?Bu:qt,i=t[0].length,o=t.length,u=o,a=Array(o),c=1/0,s=[];u--;){var f=t[u];u&&e&&(f=g(f,Me(e))),c=dc(f.length,c),a[u]=!n&&(e||i>=120&&f.length>=120)?new go(u&&f):void 0}f=t[0];var l=-1,p=a[0];t:for(;++l<i&&s.length<c;){var h=f[l],v=e?e(h):h;if(h=n||0!==h?h:0,!(p?_o(p,v):r(s,v,n))){for(u=o;--u;){var d=a[u];if(!(d?_o(d,v):r(t[u],v,n)))continue t}p&&p.push(v),s.push(h)}}return s},gc=function(t){return _u(t)?t:[]},mc=pe((function(t){var e=g(t,gc);return e.length&&e[0]===t[0]?yc(e):[]}));const _c=pe((function(t){var e=Tu(t),n=g(t,gc);return e===Tu(n)?e=void 0:n.pop(),n.length&&n[0]===t[0]?yc(n,qo(e)):[]})),bc=pe((function(t){var e=Tu(t),n=g(t,gc);return(e="function"==typeof e?e:void 0)&&n.pop(),n.length&&n[0]===t[0]?yc(n,void 0,e):[]})),jc=function(t,e){return function(n,r){return function(t,e,n,r){return Zo(t,(function(t,i,o){e(r,n(t),i,o)})),r}(n,t,e(r),{})}};var Oc=Object.prototype.toString;const wc=jc((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Oc.call(e)),t[e]=n}),Wt(D));var xc=Object.prototype,Ec=xc.hasOwnProperty,Sc=xc.toString;const Ac=jc((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Sc.call(e)),Ec.call(t,e)?t[e].push(n):t[e]=[n]}),qo),Ic=function(t,e){return e.length<2?t:kn(t,er(e,0,-1))},kc=function(t,e,n){e=An(e,t);var r=null==(t=Ic(t,e))?t:t[In(Tu(e))];return null==r?void 0:ut(r,t,n)},Rc=pe(kc);const Mc=pe((function(t,e,n){var r=-1,i="function"==typeof e,o=ve(t)?Array(t.length):[];return Qo(t,(function(t){o[++r]=i?ut(e,t,n):kc(t,e,n)})),o}));var Bc=Te&&Te.isArrayBuffer;const Pc=Bc?Me(Bc):function(t){return v(t)&&"[object ArrayBuffer]"==h(t)},Wc=function(t){return!0===t||!1===t||v(t)&&"[object Boolean]"==h(t)};var Tc=Te&&Te.isDate;const Cc=Tc?Me(Tc):function(t){return v(t)&&"[object Date]"==h(t)},Lc=function(t){return v(t)&&1===t.nodeType&&!Vn(t)};var Dc=Object.prototype.hasOwnProperty;const Fc=function(t){if(null==t)return!0;if(ve(t)&&(m(t)||"string"==typeof t||"function"==typeof t.splice||ke(t)||Le(t)||xe(t)))return!t.length;var e=qi(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(me(t))return!qe(t).length;for(var n in t)if(Dc.call(t,n))return!1;return!0},Nc=function(t,e){return Mo(t,e)},zc=function(t,e,n){var r=(n="function"==typeof n?n:void 0)?n(t,e):void 0;return void 0===r?Mo(t,e,void 0,n):!!r};var Uc=o.isFinite;const qc=function(t){return"number"==typeof t&&Uc(t)},Kc=function(t){return"number"==typeof t&&t==C(t)},Vc=function(t,e){return t===e||Bo(t,e,Wo(e))},$c=function(t,e,n){return n="function"==typeof n?n:void 0,Bo(t,e,Wo(e),n)},Hc=function(t){return"number"==typeof t||v(t)&&"[object Number]"==h(t)},Yc=function(t){return Hc(t)&&t!=+t},Jc=N?F:Ee,Gc=function(t){if(Jc(t))throw new Error("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Z(t)},Zc=function(t){return null==t},Xc=function(t){return null===t};var Qc=Te&&Te.isRegExp;const ts=Qc?Me(Qc):function(t){return v(t)&&"[object RegExp]"==h(t)};const es=function(t){return Kc(t)&&t>=-9007199254740991&&t<=9007199254740991},ns=function(t){return void 0===t},rs=function(t){return v(t)&&"[object WeakMap]"==qi(t)},is=function(t){return v(t)&&"[object WeakSet]"==h(t)},os=function(t){return qo("function"==typeof t?t:ao(t,1))};var us=Array.prototype.join;const as=function(t,e){return null==t?"":us.call(t,e)};const cs=Qr((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()}));const ss=eu((function(t,e,n){oe(t,n,e)}));var fs=Math.max,ls=Math.min;const ps=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=r;return void 0!==n&&(i=(i=C(n))<0?fs(r+i,0):ls(i,r-1)),e==e?function(t,e,n){for(var r=n+1;r--;)if(t[r]===e)return r;return r}(t,e,i):Nt(t,zt,i,!0)};const hs=Qr((function(t,e,n){return t+(n?" ":"")+e.toLowerCase()})),vs=mr("toLowerCase"),ds=function(t,e){return t<e},ys=Xa(ds),gs=Xa((function(t,e){return t<=e})),ms=function(t,e){var n={};return e=qo(e),Zo(t,(function(t,r,i){oe(n,e(t,r,i),t)})),n},_s=function(t,e){var n={};return e=qo(e),Zo(t,(function(t,r,i){oe(n,r,e(t,r,i))})),n},bs=function(t){return Co(ao(t,1))},js=function(t,e){return No(t,ao(e,1))},Os=function(t,e,n){for(var r=-1,i=t.length;++r<i;){var o=t[r],u=e(o);if(null!=u&&(void 0===a?u==u&&!d(u):n(u,a)))var a=u,c=o}return c},ws=function(t){return t&&t.length?Os(t,D,Za):void 0},xs=function(t,e){return t&&t.length?Os(t,qo(e),Za):void 0},Es=function(t,e){for(var n,r=-1,i=t.length;++r<i;){var o=e(t[r]);void 0!==o&&(n=void 0===n?o:n+o)}return n},Ss=function(t,e){var n=null==t?0:t.length;return n?Es(t,e)/n:NaN},As=function(t){return Ss(t,D)},Is=function(t,e){return Ss(t,qo(e))};var ks=ye((function(t,e,n){Ou(t,e,n)}));const Rs=ks,Ms=pe((function(t,e){return function(n){return kc(n,t,e)}})),Bs=pe((function(t,e){return function(n){return kc(t,n,e)}})),Ps=function(t){return t&&t.length?Os(t,D,ds):void 0},Ws=function(t,e){return t&&t.length?Os(t,qo(e),ds):void 0},Ts=function(t,e,n){var r=Ke(e),i=$a(e,r),o=!(I(n)&&"chain"in n&&!n.chain),u=F(t);return Ft(i,(function(n){var r=e[n];t[n]=r,u&&(t.prototype[n]=function(){var e=this.__chain__;if(o||e){var n=t(this.__wrapped__);return(n.__actions__=Ot(this.__actions__)).push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,Bn([this.value()],arguments))})})),t},Cs=O((function(t,e){return t*e}),1),Ls=function(t){if("function"!=typeof t)throw new TypeError("Expected a function");return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}};var Ds=u?u.iterator:void 0;const Fs=function(t){if(!t)return[];if(ve(t))return ac(t)?gr(t):Ot(t);if(Ds&&t[Ds])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[Ds]());var e=qi(t);return("[object Map]"==e?jo:"[object Set]"==e?Oo:sc)(t)},Ns=function(){void 0===this.__values__&&(this.__values__=Fs(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?void 0:this.__values__[this.__index__++]}},zs=function(t,e){var n=t.length;if(n)return Jt(e+=e<0?n:0,n)?t[e]:void 0},Us=function(t,e){return t&&t.length?zs(t,C(e)):void 0},qs=function(t){return t=C(t),pe((function(e){return zs(e,t)}))},Ks=function(t,e){return e=An(e,t),null==(t=Ic(t,e))||delete t[In(Tu(e))]},Vs=function(t){return Vn(t)?void 0:t};const $s=Ln((function(t,e){var n={};if(null==t)return n;var r=!1;e=g(e,(function(e){return e=An(e,t),r||(r=e.length>1),e})),se(t,Ii(t),n),r&&(n=ao(n,7,Vs));for(var i=e.length;i--;)Ks(n,e[i]);return n})),Hs=function(t,e,n,r){if(!I(t))return t;for(var i=-1,o=(e=An(e,t)).length,u=o-1,a=t;null!=a&&++i<o;){var c=In(e[i]),s=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return t;if(i!=u){var f=a[c];void 0===(s=r?r(f,c,a):void 0)&&(s=I(f)?f:Jt(e[i+1])?[]:{})}ce(a,c,s),a=a[c]}return t},Ys=function(t,e,n){for(var r=-1,i=e.length,o={};++r<i;){var u=e[r],a=kn(t,u);n(a,u)&&Hs(o,An(u,t),a)}return o},Js=function(t,e){if(null==t)return{};var n=g(Ii(t),(function(t){return[t]}));return e=qo(e),Ys(t,n,(function(t,n){return e(t,n[0])}))},Gs=function(t,e){return Js(t,Ls(qo(e)))},Zs=function(t){return Jn(2,t)},Xs=function(t,e){if(t!==e){var n=void 0!==t,r=null===t,i=t==t,o=d(t),u=void 0!==e,a=null===e,c=e==e,s=d(e);if(!a&&!s&&!o&&t>e||o&&u&&c&&!a&&!s||r&&u&&c||!n&&c||!i)return 1;if(!r&&!o&&!s&&t<e||s&&n&&i&&!r&&!o||a&&n&&i||!u&&i||!c)return-1}return 0},Qs=function(t,e,n){e=e.length?g(e,(function(t){return m(t)?function(e){return kn(e,1===t.length?t[0]:t)}:t})):[D];var r=-1;return e=g(e,Me(qo)),function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}(Aa(t,(function(t,n,i){return{criteria:g(e,(function(e){return e(t)})),index:++r,value:t}})),(function(t,e){return function(t,e,n){for(var r=-1,i=t.criteria,o=e.criteria,u=i.length,a=n.length;++r<u;){var c=Xs(i[r],o[r]);if(c)return r>=a?c:c*("desc"==n[r]?-1:1)}return t.index-e.index}(t,e,n)}))},tf=function(t,e,n,r){return null==t?[]:(m(e)||(e=null==e?[]:[e]),m(n=r?void 0:n)||(n=null==n?[]:[n]),Qs(t,e,n))},ef=function(t){return Ln((function(e){return e=g(e,Me(qo)),pe((function(n){var r=this;return t(e,(function(t){return ut(t,r,n)}))}))}))},nf=ef(g),rf=pe;var of=Math.min,uf=rf((function(t,e){var n=(e=1==e.length&&m(e[0])?g(e[0],Me(qo)):g(Tn(e,1),Me(qo))).length;return pe((function(r){for(var i=-1,o=of(r.length,n);++i<o;)r[i]=e[i].call(this,r[i]);return ut(t,this,r)}))}));const af=uf,cf=ef(ca),sf=ef(mo);var ff=Math.floor;const lf=function(t,e){var n="";if(!t||e<1||e>9007199254740991)return n;do{e%2&&(n+=t),(e=ff(e/2))&&(t+=t)}while(e);return n},pf=zo("length");var hf="\\ud800-\\udfff",vf="["+hf+"]",df="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",yf="\\ud83c[\\udffb-\\udfff]",gf="[^"+hf+"]",mf="(?:\\ud83c[\\udde6-\\uddff]){2}",_f="[\\ud800-\\udbff][\\udc00-\\udfff]",bf="(?:"+df+"|"+yf+")?",jf="[\\ufe0e\\ufe0f]?",Of=jf+bf+"(?:\\u200d(?:"+[gf,mf,_f].join("|")+")"+jf+bf+")*",wf="(?:"+[gf+df+"?",df,mf,_f,vf].join("|")+")",xf=RegExp(yf+"(?="+yf+")|"+wf+Of,"g");const Ef=function(t){return ir(t)?function(t){for(var e=xf.lastIndex=0;xf.test(t);)++e;return e}(t):pf(t)};var Sf=Math.ceil;const Af=function(t,e){var n=(e=void 0===e?" ":j(e)).length;if(n<2)return n?lf(e,t):e;var r=lf(e,Sf(t/Ef(e)));return ir(e)?nr(gr(r),0,t).join(""):r.slice(0,t)};var If=Math.ceil,kf=Math.floor;const Rf=function(t,e,n){t=Sn(t);var r=(e=C(e))?Ef(t):0;if(!e||r>=e)return t;var i=(e-r)/2;return Af(kf(i),n)+t+Af(If(i),n)},Mf=function(t,e,n){t=Sn(t);var r=(e=C(e))?Ef(t):0;return e&&r<e?t+Af(e-r,n):t},Bf=function(t,e,n){t=Sn(t);var r=(e=C(e))?Ef(t):0;return e&&r<e?Af(e-r,n)+t:t};var Pf=/^\s+/,Wf=o.parseInt;const Tf=function(t,e,n){return n||null==e?e=0:e&&(e=+e),Wf(Sn(t).replace(Pf,""),e||0)};var Cf=pe((function(t,e){var n=Xt(e,Ht(Cf));return re(t,32,void 0,e,n)}));Cf.placeholder={};const Lf=Cf;var Df=pe((function(t,e){var n=Xt(e,Ht(Df));return re(t,64,void 0,e,n)}));Df.placeholder={};const Ff=Df;const Nf=eu((function(t,e,n){t[n?0:1].push(e)}),(function(){return[[],[]]})),zf=Ln((function(t,e){return null==t?{}:function(t,e){return Ys(t,e,(function(e,n){return Fo(t,n)}))}(t,e)})),Uf=function(t){for(var e,n=this;n instanceof lt;){var r=wt(n);r.__index__=0,r.__values__=void 0,e?i.__wrapped__=r:e=r;var i=r;n=n.__wrapped__}return i.__wrapped__=t,e},qf=function(t){return function(e){return null==t?void 0:kn(t,e)}},Kf=function(t,e,n,r){for(var i=n-1,o=t.length;++i<o;)if(r(t[i],e))return i;return-1};var Vf=Array.prototype.splice;const $f=function(t,e,n,r){var i=r?Kf:Ut,o=-1,u=e.length,a=t;for(t===e&&(e=Ot(e)),n&&(a=g(t,Me(n)));++o<u;)for(var c=0,s=e[o],f=n?n(s):s;(c=i(a,f,c,r))>-1;)a!==t&&Vf.call(a,c,1),Vf.call(t,c,1);return t},Hf=function(t,e){return t&&t.length&&e&&e.length?$f(t,e):t},Yf=pe(Hf),Jf=function(t,e,n){return t&&t.length&&e&&e.length?$f(t,e,qo(n)):t},Gf=function(t,e,n){return t&&t.length&&e&&e.length?$f(t,e,void 0,n):t};var Zf=Array.prototype.splice;const Xf=function(t,e){for(var n=t?e.length:0,r=n-1;n--;){var i=e[n];if(n==r||i!==o){var o=i;Jt(i)?Zf.call(t,i,1):Ks(t,i)}}return t};const Qf=Ln((function(t,e){var n=null==t?0:t.length,r=Mn(t,e);return Xf(t,g(e,(function(t){return Jt(t,n)?+t:t})).sort(Xs)),r}));var tl=Math.floor,el=Math.random;const nl=function(t,e){return t+tl(el()*(e-t+1))};var rl=parseFloat,il=Math.min,ol=Math.random;const ul=function(t,e,n){if(n&&"boolean"!=typeof n&&de(t,e,n)&&(e=n=void 0),void 0===n&&("boolean"==typeof e?(n=e,e=void 0):"boolean"==typeof t&&(n=t,t=void 0)),void 0===t&&void 0===e?(t=0,e=1):(t=T(t),void 0===e?(e=t,t=0):e=T(e)),t>e){var r=t;t=e,e=r}if(n||t%1||e%1){var i=ol();return il(t+i*(e-t+rl("1e-"+((i+"").length-1))),e)}return nl(t,e)};var al=Math.ceil,cl=Math.max;const sl=function(t){return function(e,n,r){return r&&"number"!=typeof r&&de(e,n,r)&&(n=r=void 0),e=T(e),void 0===n?(n=e,e=0):n=T(n),function(t,e,n,r){for(var i=-1,o=cl(al((e-t)/(n||1)),0),u=Array(o);o--;)u[r?o:++i]=t,t+=n;return u}(e,n,r=void 0===r?e<n?1:-1:T(r),t)}},fl=sl(),ll=sl(!0);var pl=Ln((function(t,e){return re(t,256,void 0,void 0,void 0,e)}));const hl=pl,vl=function(t,e,n,r,i){return i(t,(function(t,i,o){n=r?(r=!1,t):e(n,t,i,o)})),n},dl=function(t,e,n){var r=m(t)?jr:vl,i=arguments.length<3;return r(t,qo(e),n,i,Qo)},yl=function(t,e,n,r){var i=null==t?0:t.length;for(r&&i&&(n=t[--i]);i--;)n=e(n,t[i],i,t);return n},gl=function(t,e,n){var r=m(t)?yl:vl,i=arguments.length<3;return r(t,qo(e),n,i,Ju)},ml=function(t,e){return(m(t)?bi:ha)(t,Ls(qo(e)))},_l=function(t,e){var n=[];if(!t||!t.length)return n;var r=-1,i=[],o=t.length;for(e=qo(e);++r<o;){var u=t[r];e(u,r,t)&&(n.push(u),i.push(r))}return Xf(t,i),n},bl=function(t,e,n){return e=(n?de(t,e,n):void 0===e)?1:C(e),lf(Sn(t),e)},jl=function(){var t=arguments,e=Sn(t[0]);return t.length<3?e:e.replace(t[1],t[2])},Ol=function(t,e){if("function"!=typeof t)throw new TypeError("Expected a function");return e=void 0===e?e:C(e),pe(t,e)},wl=function(t,e,n){var r=-1,i=(e=An(e,t)).length;for(i||(i=1,t=void 0);++r<i;){var o=null==t?void 0:t[In(e[r])];void 0===o&&(r=i,o=n),t=F(o)?o.call(t):o}return t};var xl=Array.prototype.reverse;const El=function(t){return null==t?t:xl.call(t)},Sl=ii("round"),Al=function(t){var e=t.length;return e?t[nl(0,e-1)]:void 0},Il=function(t){return Al(sc(t))},kl=function(t){return(m(t)?Al:Il)(t)},Rl=function(t,e){var n=-1,r=t.length,i=r-1;for(e=void 0===e?r:e;++n<e;){var o=nl(n,i),u=t[o];t[o]=t[n],t[n]=u}return t.length=e,t},Ml=function(t,e){return Rl(Ot(t),fi(e,0,t.length))},Bl=function(t,e){var n=sc(t);return Rl(n,fi(e,0,n.length))},Pl=function(t,e,n){return e=(n?de(t,e,n):void 0===e)?1:C(e),(m(t)?Ml:Bl)(t,e)},Wl=function(t,e,n){return null==t?t:Hs(t,e,n)},Tl=function(t,e,n,r){return r="function"==typeof r?r:void 0,null==t?t:Hs(t,e,n,r)},Cl=function(t){return Rl(Ot(t))},Ll=function(t){return Rl(sc(t))},Dl=function(t){return(m(t)?Cl:Ll)(t)},Fl=function(t){if(null==t)return 0;if(ve(t))return ac(t)?Ef(t):t.length;var e=qi(t);return"[object Map]"==e||"[object Set]"==e?t.size:qe(t).length},Nl=function(t,e,n){var r=null==t?0:t.length;return r?(n&&"number"!=typeof n&&de(t,e,n)?(e=0,n=r):(e=null==e?0:C(e),n=void 0===n?r:C(n)),er(t,e,n)):[]};const zl=Qr((function(t,e,n){return t+(n?"_":"")+e.toLowerCase()})),Ul=function(t,e){var n;return Qo(t,(function(t,r,i){return!(n=e(t,r,i))})),!!n},ql=function(t,e,n){var r=m(t)?mo:Ul;return n&&de(t,e,n)&&(e=void 0),r(t,qo(e))},Kl=pe((function(t,e){if(null==t)return[];var n=e.length;return n>1&&de(t,e[0],e[1])?e=[]:n>2&&de(e[0],e[1],e[2])&&(e=[e[0]]),Qs(t,Tn(e,1),[])}));var Vl=Math.floor,$l=Math.min;const Hl=function(t,e,n,r){var i=0,o=null==t?0:t.length;if(0===o)return 0;for(var u=(e=n(e))!=e,a=null===e,c=d(e),s=void 0===e;i<o;){var f=Vl((i+o)/2),l=n(t[f]),p=void 0!==l,h=null===l,v=l==l,y=d(l);if(u)var g=r||v;else g=s?v&&(r||p):a?v&&p&&(r||!h):c?v&&p&&!h&&(r||!y):!h&&!y&&(r?l<=e:l<e);g?i=f+1:o=f}return $l(o,4294967294)},Yl=function(t,e,n){var r=0,i=null==t?r:t.length;if("number"==typeof e&&e==e&&i<=2147483647){for(;r<i;){var o=r+i>>>1,u=t[o];null!==u&&!d(u)&&(n?u<=e:u<e)?r=o+1:i=o}return i}return Hl(t,e,D,n)},Jl=function(t,e){return Yl(t,e)},Gl=function(t,e,n){return Hl(t,e,qo(n))},Zl=function(t,e){var n=null==t?0:t.length;if(n){var r=Yl(t,e);if(r<n&&ue(t[r],e))return r}return-1},Xl=function(t,e){return Yl(t,e,!0)},Ql=function(t,e,n){return Hl(t,e,qo(n),!0)},tp=function(t,e){if(null!=t&&t.length){var n=Yl(t,e,!0)-1;if(ue(t[n],e))return n}return-1},ep=function(t,e){for(var n=-1,r=t.length,i=0,o=[];++n<r;){var u=t[n],a=e?e(u):u;if(!n||!ue(a,c)){var c=a;o[i++]=0===u?0:u}}return o},np=function(t){return t&&t.length?ep(t):[]},rp=function(t,e){return t&&t.length?ep(t,qo(e)):[]},ip=function(t,e,n){return n&&"number"!=typeof n&&de(t,e,n)&&(e=n=void 0),(n=void 0===n?4294967295:n>>>0)?(t=Sn(t))&&("string"==typeof e||null!=e&&!ts(e))&&!(e=j(e))&&ir(t)?nr(gr(t),0,n):t.split(e,n):[]};var op=Math.max;const up=function(t,e){if("function"!=typeof t)throw new TypeError("Expected a function");return e=null==e?0:op(C(e),0),pe((function(n){var r=n[e],i=nr(n,0,e);return r&&Bn(i,r),ut(t,this,i)}))};const ap=Qr((function(t,e,n){return t+(n?" ":"")+_r(e)})),cp=function(t,e,n){return t=Sn(t),n=null==n?0:fi(C(n),0,t.length),e=j(e),t.slice(n,n+e.length)==e},sp=function(){return{}},fp=function(){return""},lp=function(){return!0},pp=O((function(t,e){return t-e}),0),hp=function(t){return t&&t.length?Es(t,D):0},vp=function(t,e){return t&&t.length?Es(t,qo(e)):0},dp=function(t){var e=null==t?0:t.length;return e?er(t,1,e):[]},yp=function(t,e,n){return t&&t.length?(e=n||void 0===e?1:C(e),er(t,0,e<0?0:e)):[]},gp=function(t,e,n){var r=null==t?0:t.length;return r?(e=n||void 0===e?1:C(e),er(t,(e=r-e)<0?0:e,r)):[]},mp=function(t,e){return t&&t.length?zu(t,qo(e),!1,!0):[]},_p=function(t,e){return t&&t.length?zu(t,qo(e)):[]},bp=function(t,e){return e(t),t};var jp=Object.prototype,Op=jp.hasOwnProperty;const wp=function(t,e,n,r){return void 0===t||ue(t,jp[n])&&!Op.call(r,n)?e:t};var xp={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};const Ep=function(t){return"\\"+xp[t]},Sp=/<%=([\s\S]+?)%>/g,Ap={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:Sp,variable:"",imports:{_:{escape:ia}}};var Ip=/\b__p \+= '';/g,kp=/\b(__p \+=) '' \+/g,Rp=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Mp=/[()=,{}\[\]\/\s]/,Bp=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Pp=/($^)/,Wp=/['\n\r\u2028\u2029\\]/g,Tp=Object.prototype.hasOwnProperty;const Cp=function(t,e,n){var r=Ap.imports._.templateSettings||Ap;n&&de(t,e,n)&&(e=void 0),t=Sn(t),e=tn({},e,r,wp);var i,o,u=tn({},e.imports,r.imports,wp),a=Ke(u),c=cc(u,a),s=0,f=e.interpolate||Pp,l="__p += '",p=RegExp((e.escape||Pp).source+"|"+f.source+"|"+(f===Sp?Bp:Pp).source+"|"+(e.evaluate||Pp).source+"|$","g"),h=Tp.call(e,"sourceURL")?"//# sourceURL="+(e.sourceURL+"").replace(/\s/g," ")+"\n":"";t.replace(p,(function(e,n,r,u,a,c){return r||(r=u),l+=t.slice(s,c).replace(Wp,Ep),n&&(i=!0,l+="' +\n__e("+n+") +\n'"),a&&(o=!0,l+="';\n"+a+";\n__p += '"),r&&(l+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),s=c+e.length,e})),l+="';\n";var v=Tp.call(e,"variable")&&e.variable;if(v){if(Mp.test(v))throw new Error("Invalid `variable` option passed into `_.template`")}else l="with (obj) {\n"+l+"\n}\n";l=(o?l.replace(Ip,""):l).replace(kp,"$1").replace(Rp,"$1;"),l="function("+(v||"obj")+") {\n"+(v?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+l+"return __p\n}";var d=Yn((function(){return Function(a,h+"return "+l).apply(void 0,c)}));if(d.source=l,$n(d))throw d;return d},Lp=function(t,e,n){var r=!0,i=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return I(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),pu(t,e,{leading:r,maxWait:e,trailing:i})},Dp=function(t,e){return e(t)};var Fp=4294967295,Np=Math.min;const zp=function(t,e){if((t=C(t))<1||t>9007199254740991)return[];var n=Fp,r=Np(t,Fp);e=Ku(e),t-=Fp;for(var i=_e(r,e);++n<t;)e(n);return i},Up=function(){return this},qp=function(t,e){var n=t;return n instanceof ht&&(n=n.value()),jr(e,(function(t,e){return e.func.apply(e.thisArg,Bn([t],e.args))}),n)},Kp=function(){return qp(this.__wrapped__,this.__actions__)},Vp=function(t){return Sn(t).toLowerCase()},$p=function(t){return m(t)?g(t,In):d(t)?[t]:Ot(En(Sn(t)))};const Hp=function(t){return t?fi(C(t),-9007199254740991,9007199254740991):0===t?t:0},Yp=function(t){return Sn(t).toUpperCase()},Jp=function(t,e,n){var r=m(t),i=r||ke(t)||Le(t);if(e=qo(e),null==n){var o=t&&t.constructor;n=i?r?new o:[]:I(t)&&F(o)?it(Fn(t)):{}}return(i?Ft:Zo)(t,(function(t,r,i){return e(n,t,r,i)})),n},Gp=function(t,e){for(var n=t.length;n--&&Ut(e,t[n],0)>-1;);return n},Zp=function(t,e){for(var n=-1,r=t.length;++n<r&&Ut(e,t[n],0)>-1;);return n},Xp=function(t,e,n){if((t=Sn(t))&&(n||void 0===e))return A(t);if(!t||!(e=j(e)))return t;var r=gr(t),i=gr(e),o=Zp(r,i),u=Gp(r,i)+1;return nr(r,o,u).join("")},Qp=function(t,e,n){if((t=Sn(t))&&(n||void 0===e))return t.slice(0,E(t)+1);if(!t||!(e=j(e)))return t;var r=gr(t),i=Gp(r,gr(e))+1;return nr(r,0,i).join("")};var th=/^\s+/;const eh=function(t,e,n){if((t=Sn(t))&&(n||void 0===e))return t.replace(th,"");if(!t||!(e=j(e)))return t;var r=gr(t),i=Zp(r,gr(e));return nr(r,i).join("")};var nh=/\w*$/;const rh=function(t,e){var n=30,r="...";if(I(e)){var i="separator"in e?e.separator:i;n="length"in e?C(e.length):n,r="omission"in e?j(e.omission):r}var o=(t=Sn(t)).length;if(ir(t)){var u=gr(t);o=u.length}if(n>=o)return t;var a=n-Ef(r);if(a<1)return r;var c=u?nr(u,0,a).join(""):t.slice(0,a);if(void 0===i)return c+r;if(u&&(a+=c.length-a),ts(i)){if(t.slice(a).search(i)){var s,f=c;for(i.global||(i=RegExp(i.source,Sn(nh.exec(i))+"g")),i.lastIndex=0;s=i.exec(f);)var l=s.index;c=c.slice(0,void 0===l?a:l)}}else if(t.indexOf(j(i),a)!=a){var p=c.lastIndexOf(i);p>-1&&(c=c.slice(0,p))}return c+r},ih=function(t){return ie(t,1)},oh=Or({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var uh=/&(?:amp|lt|gt|quot|#39);/g,ah=RegExp(uh.source);const ch=function(t){return(t=Sn(t))&&ah.test(t)?t.replace(uh,oh):t};const sh=Mi&&1/Oo(new Mi([,-0]))[1]==1/0?function(t){return new Mi(t)}:vt,fh=function(t,e,n){var r=-1,i=qt,o=t.length,u=!0,a=[],c=a;if(n)u=!1,i=Bu;else if(o>=200){var s=e?null:sh(t);if(s)return Oo(s);u=!1,i=_o,c=new go}else c=e?[]:a;t:for(;++r<o;){var f=t[r],l=e?e(f):f;if(f=n||0!==f?f:0,u&&l==l){for(var p=c.length;p--;)if(c[p]===l)continue t;e&&c.push(l),a.push(f)}else i(c,l,n)||(c!==a&&c.push(l),a.push(f))}return a},lh=pe((function(t){return fh(Tn(t,1,_u,!0))}));const ph=pe((function(t){var e=Tu(t);return _u(e)&&(e=void 0),fh(Tn(t,1,_u,!0),qo(e))})),hh=pe((function(t){var e=Tu(t);return e="function"==typeof e?e:void 0,fh(Tn(t,1,_u,!0),void 0,e)})),vh=function(t){return t&&t.length?fh(t):[]},dh=function(t,e){return t&&t.length?fh(t,qo(e)):[]},yh=function(t,e){return e="function"==typeof e?e:void 0,t&&t.length?fh(t,void 0,e):[]};var gh=0;const mh=function(t){var e=++gh;return Sn(t)+e},_h=function(t,e){return null==t||Ks(t,e)};var bh=Math.max;const jh=function(t){if(!t||!t.length)return[];var e=0;return t=bi(t,(function(t){if(_u(t))return e=bh(t.length,e),!0})),_e(e,(function(e){return g(t,zo(e))}))},Oh=function(t,e){if(!t||!t.length)return[];var n=jh(t);return null==e?n:g(n,(function(t){return ut(e,void 0,t)}))},wh=function(t,e,n,r){return Hs(t,e,n(kn(t,e)),r)},xh=function(t,e,n){return null==t?t:wh(t,e,Ku(n))},Eh=function(t,e,n,r){return r="function"==typeof r?r:void 0,null==t?t:wh(t,e,Ku(n),r)};const Sh=Qr((function(t,e,n){return t+(n?" ":"")+e.toUpperCase()})),Ah=function(t){return null==t?[]:cc(t,Ge(t))};const Ih=pe((function(t,e){return _u(t)?Pu(t,e):[]})),kh=function(t,e){return Lf(Ku(e),t)},Rh=Ln((function(t){var e=t.length,n=e?t[0]:0,r=this.__wrapped__,i=function(e){return Mn(e,t)};return!(e>1||this.__actions__.length)&&r instanceof ht&&Jt(n)?((r=r.slice(n,+n+(e?1:0))).__actions__.push({func:Dp,args:[i],thisArg:void 0}),new jt(r,this.__chain__).thru((function(t){return e&&!t.length&&t.push(void 0),t}))):this.thru(i)})),Mh=function(){return ui(this)},Bh=function(){var t=this.__wrapped__;if(t instanceof ht){var e=t;return this.__actions__.length&&(e=new ht(this)),(e=e.reverse()).__actions__.push({func:Dp,args:[El],thisArg:void 0}),new jt(e,this.__chain__)}return this.thru(El)},Ph=function(t,e,n){var r=t.length;if(r<2)return r?fh(t[0]):[];for(var i=-1,o=Array(r);++i<r;)for(var u=t[i],a=-1;++a<r;)a!=i&&(o[i]=Pu(o[i]||u,t[a],e,n));return fh(Tn(o,1),e,n)},Wh=pe((function(t){return Ph(bi(t,_u))}));const Th=pe((function(t){var e=Tu(t);return _u(e)&&(e=void 0),Ph(bi(t,_u),qo(e))})),Ch=pe((function(t){var e=Tu(t);return e="function"==typeof e?e:void 0,Ph(bi(t,_u),void 0,e)})),Lh=pe(jh),Dh=function(t,e,n){for(var r=-1,i=t.length,o=e.length,u={};++r<i;){var a=r<o?e[r]:void 0;n(u,t[r],a)}return u},Fh=function(t,e){return Dh(t||[],e||[],ce)},Nh=function(t,e){return Dh(t||[],e||[],Hs)};const zh=pe((function(t){var e=t.length,n=e>1?t[e-1]:void 0;return n="function"==typeof n?(t.pop(),n):void 0,Oh(t,n)})),Uh={chunk:si,compact:ho,concat:vo,difference:Wu,differenceBy:Cu,differenceWith:Lu,drop:Fu,dropRight:Nu,dropRightWhile:Uu,dropWhile:qu,fill:pa,findIndex:ga,findLastIndex:wa,first:Sa,flatten:Cn,flattenDeep:Wa,flattenDepth:Ta,fromPairs:Va,head:Sa,indexOf:hc,initial:vc,intersection:mc,intersectionBy:_c,intersectionWith:bc,join:as,last:Tu,lastIndexOf:ps,nth:Us,pull:Yf,pullAll:Hf,pullAllBy:Jf,pullAllWith:Gf,pullAt:Qf,remove:_l,reverse:El,slice:Nl,sortedIndex:Jl,sortedIndexBy:Gl,sortedIndexOf:Zl,sortedLastIndex:Xl,sortedLastIndexBy:Ql,sortedLastIndexOf:tp,sortedUniq:np,sortedUniqBy:rp,tail:dp,take:yp,takeRight:gp,takeRightWhile:mp,takeWhile:_p,union:lh,unionBy:ph,unionWith:hh,uniq:vh,uniqBy:dh,uniqWith:yh,unzip:jh,unzipWith:Oh,without:Ih,xor:Wh,xorBy:Th,xorWith:Ch,zip:Lh,zipObject:Fh,zipObjectDeep:Nh,zipWith:zh},qh={countBy:ru,each:Vu,eachRight:Gu,every:fa,filter:va,find:ma,findLast:xa,flatMap:ka,flatMapDeep:Ma,flatMapDepth:Ba,forEach:Vu,forEachRight:Gu,groupBy:Ga,includes:lc,invokeMap:Mc,keyBy:ss,map:Ia,orderBy:tf,partition:Nf,reduce:dl,reduceRight:gl,reject:ml,sample:kl,sampleSize:Pl,shuffle:Dl,size:Fl,some:ql,sortBy:Kl},Kh={now:su},Vh={after:L,ary:ie,before:Jn,bind:Zn,bindKey:tr,curry:uu,curryRight:cu,debounce:pu,defer:ku,delay:Mu,flip:Ca,memoize:jn,negate:Ls,once:Zs,overArgs:af,partial:Lf,partialRight:Ff,rearg:hl,rest:Ol,spread:up,throttle:Lp,unary:ih,wrap:kh},$h={castArray:ei,clone:co,cloneDeep:so,cloneDeepWith:fo,cloneWith:lo,conformsTo:Ho,eq:ue,gt:Qa,gte:tc,isArguments:xe,isArray:m,isArrayBuffer:Pc,isArrayLike:ve,isArrayLikeObject:_u,isBoolean:Wc,isBuffer:ke,isDate:Cc,isElement:Lc,isEmpty:Fc,isEqual:Nc,isEqualWith:zc,isError:$n,isFinite:qc,isFunction:F,isInteger:Kc,isLength:he,isMap:to,isMatch:Vc,isMatchWith:$c,isNaN:Yc,isNative:Gc,isNil:Zc,isNull:Xc,isNumber:Hc,isObject:I,isObjectLike:v,isPlainObject:Vn,isRegExp:ts,isSafeInteger:es,isSet:no,isString:ac,isSymbol:d,isTypedArray:Le,isUndefined:ns,isWeakMap:rs,isWeakSet:is,lt:ys,lte:gs,toArray:Fs,toFinite:T,toInteger:C,toLength:la,toNumber:P,toPlainObject:ju,toSafeInteger:Hp,toString:Sn},Hh={add:w,ceil:oi,divide:Du,floor:La,max:ws,maxBy:xs,mean:As,meanBy:Is,min:Ps,minBy:Ws,multiply:Cs,round:Sl,subtract:pp,sum:hp,sumBy:vp},Yh={clamp:li,inRange:uc,random:ul},Jh={assign:He,assignIn:Xe,assignInWith:tn,assignWith:nn,at:Dn,create:iu,defaults:gu,defaultsDeep:Su,entries:Qu,entriesIn:ta,extend:Xe,extendWith:tn,findKey:ba,findLastKey:Ea,forIn:za,forInRight:Ua,forOwn:qa,forOwnRight:Ka,functions:Ha,functionsIn:Ya,get:Rn,has:rc,hasIn:Fo,invert:wc,invertBy:Ac,invoke:Rc,keys:Ke,keysIn:Ge,mapKeys:ms,mapValues:_s,merge:Rs,mergeWith:Eu,omit:$s,omitBy:Gs,pick:zf,pickBy:Js,result:wl,set:Wl,setWith:Tl,toPairs:Qu,toPairsIn:ta,transform:Jp,unset:_h,update:xh,updateWith:Eh,values:sc,valuesIn:Ah},Gh={at:Rh,chain:ui,commit:po,lodash:St,next:Ns,plant:Uf,reverse:Bh,tap:bp,thru:Dp,toIterator:Up,toJSON:Kp,value:Kp,valueOf:Kp,wrapperChain:Mh},Zh={camelCase:ti,capitalize:br,deburr:Sr,endsWith:Zu,escape:ia,escapeRegExp:aa,kebabCase:cs,lowerCase:hs,lowerFirst:vs,pad:Rf,padEnd:Mf,padStart:Bf,parseInt:Tf,repeat:bl,replace:jl,snakeCase:zl,split:ip,startCase:ap,startsWith:cp,template:Cp,templateSettings:Ap,toLower:Vp,toUpper:Yp,trim:Xp,trimEnd:Qp,trimStart:eh,truncate:rh,unescape:ch,upperCase:Sh,upperFirst:_r,words:Zr},Xh={attempt:Yn,bindAll:Xn,cond:Ko,conforms:$o,constant:Wt,defaultTo:hu,flow:Fa,flowRight:Na,identity:D,iteratee:os,matches:bs,matchesProperty:js,method:Ms,methodOf:Bs,mixin:Ts,noop:vt,nthArg:qs,over:nf,overEvery:cf,overSome:sf,property:Uo,propertyOf:qf,range:fl,rangeRight:ll,stubArray:ji,stubFalse:Ee,stubObject:sp,stubString:fp,stubTrue:lp,times:zp,toPath:$p,uniqueId:mh};var Qh=Math.max,tv=Math.min;var ev=Math.min;var nv,rv,iv=4294967295,ov=Array.prototype,uv=Object.prototype.hasOwnProperty,av=u?u.iterator:void 0,cv=Math.max,sv=Math.min,fv=(nv=Ts,function(t,e,n){if(null==n){var r=I(e),i=r&&Ke(e),o=i&&i.length&&$a(e,i);(o?o.length:r)||(n=e,e=t,t=this)}return nv(t,e,n)});St.after=Vh.after,St.ary=Vh.ary,St.assign=Jh.assign,St.assignIn=Jh.assignIn,St.assignInWith=Jh.assignInWith,St.assignWith=Jh.assignWith,St.at=Jh.at,St.before=Vh.before,St.bind=Vh.bind,St.bindAll=Xh.bindAll,St.bindKey=Vh.bindKey,St.castArray=$h.castArray,St.chain=Gh.chain,St.chunk=Uh.chunk,St.compact=Uh.compact,St.concat=Uh.concat,St.cond=Xh.cond,St.conforms=Xh.conforms,St.constant=Xh.constant,St.countBy=qh.countBy,St.create=Jh.create,St.curry=Vh.curry,St.curryRight=Vh.curryRight,St.debounce=Vh.debounce,St.defaults=Jh.defaults,St.defaultsDeep=Jh.defaultsDeep,St.defer=Vh.defer,St.delay=Vh.delay,St.difference=Uh.difference,St.differenceBy=Uh.differenceBy,St.differenceWith=Uh.differenceWith,St.drop=Uh.drop,St.dropRight=Uh.dropRight,St.dropRightWhile=Uh.dropRightWhile,St.dropWhile=Uh.dropWhile,St.fill=Uh.fill,St.filter=qh.filter,St.flatMap=qh.flatMap,St.flatMapDeep=qh.flatMapDeep,St.flatMapDepth=qh.flatMapDepth,St.flatten=Uh.flatten,St.flattenDeep=Uh.flattenDeep,St.flattenDepth=Uh.flattenDepth,St.flip=Vh.flip,St.flow=Xh.flow,St.flowRight=Xh.flowRight,St.fromPairs=Uh.fromPairs,St.functions=Jh.functions,St.functionsIn=Jh.functionsIn,St.groupBy=qh.groupBy,St.initial=Uh.initial,St.intersection=Uh.intersection,St.intersectionBy=Uh.intersectionBy,St.intersectionWith=Uh.intersectionWith,St.invert=Jh.invert,St.invertBy=Jh.invertBy,St.invokeMap=qh.invokeMap,St.iteratee=Xh.iteratee,St.keyBy=qh.keyBy,St.keys=Ke,St.keysIn=Jh.keysIn,St.map=qh.map,St.mapKeys=Jh.mapKeys,St.mapValues=Jh.mapValues,St.matches=Xh.matches,St.matchesProperty=Xh.matchesProperty,St.memoize=Vh.memoize,St.merge=Jh.merge,St.mergeWith=Jh.mergeWith,St.method=Xh.method,St.methodOf=Xh.methodOf,St.mixin=fv,St.negate=Ls,St.nthArg=Xh.nthArg,St.omit=Jh.omit,St.omitBy=Jh.omitBy,St.once=Vh.once,St.orderBy=qh.orderBy,St.over=Xh.over,St.overArgs=Vh.overArgs,St.overEvery=Xh.overEvery,St.overSome=Xh.overSome,St.partial=Vh.partial,St.partialRight=Vh.partialRight,St.partition=qh.partition,St.pick=Jh.pick,St.pickBy=Jh.pickBy,St.property=Xh.property,St.propertyOf=Xh.propertyOf,St.pull=Uh.pull,St.pullAll=Uh.pullAll,St.pullAllBy=Uh.pullAllBy,St.pullAllWith=Uh.pullAllWith,St.pullAt=Uh.pullAt,St.range=Xh.range,St.rangeRight=Xh.rangeRight,St.rearg=Vh.rearg,St.reject=qh.reject,St.remove=Uh.remove,St.rest=Vh.rest,St.reverse=Uh.reverse,St.sampleSize=qh.sampleSize,St.set=Jh.set,St.setWith=Jh.setWith,St.shuffle=qh.shuffle,St.slice=Uh.slice,St.sortBy=qh.sortBy,St.sortedUniq=Uh.sortedUniq,St.sortedUniqBy=Uh.sortedUniqBy,St.split=Zh.split,St.spread=Vh.spread,St.tail=Uh.tail,St.take=Uh.take,St.takeRight=Uh.takeRight,St.takeRightWhile=Uh.takeRightWhile,St.takeWhile=Uh.takeWhile,St.tap=Gh.tap,St.throttle=Vh.throttle,St.thru=Dp,St.toArray=$h.toArray,St.toPairs=Jh.toPairs,St.toPairsIn=Jh.toPairsIn,St.toPath=Xh.toPath,St.toPlainObject=$h.toPlainObject,St.transform=Jh.transform,St.unary=Vh.unary,St.union=Uh.union,St.unionBy=Uh.unionBy,St.unionWith=Uh.unionWith,St.uniq=Uh.uniq,St.uniqBy=Uh.uniqBy,St.uniqWith=Uh.uniqWith,St.unset=Jh.unset,St.unzip=Uh.unzip,St.unzipWith=Uh.unzipWith,St.update=Jh.update,St.updateWith=Jh.updateWith,St.values=Jh.values,St.valuesIn=Jh.valuesIn,St.without=Uh.without,St.words=Zh.words,St.wrap=Vh.wrap,St.xor=Uh.xor,St.xorBy=Uh.xorBy,St.xorWith=Uh.xorWith,St.zip=Uh.zip,St.zipObject=Uh.zipObject,St.zipObjectDeep=Uh.zipObjectDeep,St.zipWith=Uh.zipWith,St.entries=Jh.toPairs,St.entriesIn=Jh.toPairsIn,St.extend=Jh.assignIn,St.extendWith=Jh.assignInWith,fv(St,St),St.add=Hh.add,St.attempt=Xh.attempt,St.camelCase=Zh.camelCase,St.capitalize=Zh.capitalize,St.ceil=Hh.ceil,St.clamp=Yh.clamp,St.clone=$h.clone,St.cloneDeep=$h.cloneDeep,St.cloneDeepWith=$h.cloneDeepWith,St.cloneWith=$h.cloneWith,St.conformsTo=$h.conformsTo,St.deburr=Zh.deburr,St.defaultTo=Xh.defaultTo,St.divide=Hh.divide,St.endsWith=Zh.endsWith,St.eq=$h.eq,St.escape=Zh.escape,St.escapeRegExp=Zh.escapeRegExp,St.every=qh.every,St.find=qh.find,St.findIndex=Uh.findIndex,St.findKey=Jh.findKey,St.findLast=qh.findLast,St.findLastIndex=Uh.findLastIndex,St.findLastKey=Jh.findLastKey,St.floor=Hh.floor,St.forEach=qh.forEach,St.forEachRight=qh.forEachRight,St.forIn=Jh.forIn,St.forInRight=Jh.forInRight,St.forOwn=Jh.forOwn,St.forOwnRight=Jh.forOwnRight,St.get=Jh.get,St.gt=$h.gt,St.gte=$h.gte,St.has=Jh.has,St.hasIn=Jh.hasIn,St.head=Uh.head,St.identity=D,St.includes=qh.includes,St.indexOf=Uh.indexOf,St.inRange=Yh.inRange,St.invoke=Jh.invoke,St.isArguments=$h.isArguments,St.isArray=m,St.isArrayBuffer=$h.isArrayBuffer,St.isArrayLike=$h.isArrayLike,St.isArrayLikeObject=$h.isArrayLikeObject,St.isBoolean=$h.isBoolean,St.isBuffer=$h.isBuffer,St.isDate=$h.isDate,St.isElement=$h.isElement,St.isEmpty=$h.isEmpty,St.isEqual=$h.isEqual,St.isEqualWith=$h.isEqualWith,St.isError=$h.isError,St.isFinite=$h.isFinite,St.isFunction=$h.isFunction,St.isInteger=$h.isInteger,St.isLength=$h.isLength,St.isMap=$h.isMap,St.isMatch=$h.isMatch,St.isMatchWith=$h.isMatchWith,St.isNaN=$h.isNaN,St.isNative=$h.isNative,St.isNil=$h.isNil,St.isNull=$h.isNull,St.isNumber=$h.isNumber,St.isObject=I,St.isObjectLike=$h.isObjectLike,St.isPlainObject=$h.isPlainObject,St.isRegExp=$h.isRegExp,St.isSafeInteger=$h.isSafeInteger,St.isSet=$h.isSet,St.isString=$h.isString,St.isSymbol=$h.isSymbol,St.isTypedArray=$h.isTypedArray,St.isUndefined=$h.isUndefined,St.isWeakMap=$h.isWeakMap,St.isWeakSet=$h.isWeakSet,St.join=Uh.join,St.kebabCase=Zh.kebabCase,St.last=Tu,St.lastIndexOf=Uh.lastIndexOf,St.lowerCase=Zh.lowerCase,St.lowerFirst=Zh.lowerFirst,St.lt=$h.lt,St.lte=$h.lte,St.max=Hh.max,St.maxBy=Hh.maxBy,St.mean=Hh.mean,St.meanBy=Hh.meanBy,St.min=Hh.min,St.minBy=Hh.minBy,St.stubArray=Xh.stubArray,St.stubFalse=Xh.stubFalse,St.stubObject=Xh.stubObject,St.stubString=Xh.stubString,St.stubTrue=Xh.stubTrue,St.multiply=Hh.multiply,St.nth=Uh.nth,St.noop=Xh.noop,St.now=Kh.now,St.pad=Zh.pad,St.padEnd=Zh.padEnd,St.padStart=Zh.padStart,St.parseInt=Zh.parseInt,St.random=Yh.random,St.reduce=qh.reduce,St.reduceRight=qh.reduceRight,St.repeat=Zh.repeat,St.replace=Zh.replace,St.result=Jh.result,St.round=Hh.round,St.sample=qh.sample,St.size=qh.size,St.snakeCase=Zh.snakeCase,St.some=qh.some,St.sortedIndex=Uh.sortedIndex,St.sortedIndexBy=Uh.sortedIndexBy,St.sortedIndexOf=Uh.sortedIndexOf,St.sortedLastIndex=Uh.sortedLastIndex,St.sortedLastIndexBy=Uh.sortedLastIndexBy,St.sortedLastIndexOf=Uh.sortedLastIndexOf,St.startCase=Zh.startCase,St.startsWith=Zh.startsWith,St.subtract=Hh.subtract,St.sum=Hh.sum,St.sumBy=Hh.sumBy,St.template=Zh.template,St.times=Xh.times,St.toFinite=$h.toFinite,St.toInteger=C,St.toLength=$h.toLength,St.toLower=Zh.toLower,St.toNumber=$h.toNumber,St.toSafeInteger=$h.toSafeInteger,St.toString=$h.toString,St.toUpper=Zh.toUpper,St.trim=Zh.trim,St.trimEnd=Zh.trimEnd,St.trimStart=Zh.trimStart,St.truncate=Zh.truncate,St.unescape=Zh.unescape,St.uniqueId=Xh.uniqueId,St.upperCase=Zh.upperCase,St.upperFirst=Zh.upperFirst,St.each=qh.forEach,St.eachRight=qh.forEachRight,St.first=Uh.head,fv(St,(rv={},Zo(St,(function(t,e){uv.call(St.prototype,e)||(rv[e]=t)})),rv),{chain:!1}),St.VERSION="4.17.21",(St.templateSettings=Zh.templateSettings).imports._=St,Ft(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){St[t].placeholder=St})),Ft(["drop","take"],(function(t,e){ht.prototype[t]=function(n){n=void 0===n?1:cv(C(n),0);var r=this.__filtered__&&!e?new ht(this):this.clone();return r.__filtered__?r.__takeCount__=sv(n,r.__takeCount__):r.__views__.push({size:sv(n,iv),type:t+(r.__dir__<0?"Right":"")}),r},ht.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),Ft(["filter","map","takeWhile"],(function(t,e){var n=e+1,r=1==n||3==n;ht.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:qo(t),type:n}),e.__filtered__=e.__filtered__||r,e}})),Ft(["head","last"],(function(t,e){var n="take"+(e?"Right":"");ht.prototype[t]=function(){return this[n](1).value()[0]}})),Ft(["initial","tail"],(function(t,e){var n="drop"+(e?"":"Right");ht.prototype[t]=function(){return this.__filtered__?new ht(this):this[n](1)}})),ht.prototype.compact=function(){return this.filter(D)},ht.prototype.find=function(t){return this.filter(t).head()},ht.prototype.findLast=function(t){return this.reverse().find(t)},ht.prototype.invokeMap=pe((function(t,e){return"function"==typeof t?new ht(this):this.map((function(n){return kc(n,t,e)}))})),ht.prototype.reject=function(t){return this.filter(Ls(qo(t)))},ht.prototype.slice=function(t,e){t=C(t);var n=this;return n.__filtered__&&(t>0||e<0)?new ht(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),void 0!==e&&(n=(e=C(e))<0?n.dropRight(-e):n.take(e-t)),n)},ht.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},ht.prototype.toArray=function(){return this.take(iv)},Zo(ht.prototype,(function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),i=St[r?"take"+("last"==e?"Right":""):e],o=r||/^find/.test(e);i&&(St.prototype[e]=function(){var e=this.__wrapped__,u=r?[1]:arguments,a=e instanceof ht,c=u[0],s=a||m(e),f=function(t){var e=i.apply(St,Bn([t],u));return r&&l?e[0]:e};s&&n&&"function"==typeof c&&1!=c.length&&(a=s=!1);var l=this.__chain__,p=!!this.__actions__.length,h=o&&!l,v=a&&!p;if(!o&&s){e=v?e:new ht(this);var d=t.apply(e,u);return d.__actions__.push({func:Dp,args:[f],thisArg:void 0}),new jt(d,l)}return h&&v?t.apply(this,u):(d=this.thru(f),h?r?d.value()[0]:d.value():d)})})),Ft(["pop","push","shift","sort","splice","unshift"],(function(t){var e=ov[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);St.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var i=this.value();return e.apply(m(i)?i:[],t)}return this[n]((function(n){return e.apply(m(n)?n:[],t)}))}})),Zo(ht.prototype,(function(t,e){var n=St[e];if(n){var r=n.name+"";uv.call(gt,r)||(gt[r]=[]),gt[r].push({name:e,func:n})}})),gt[Qt(void 0,2).name]=[{name:"wrapper",func:void 0}],ht.prototype.clone=function(){var t=new ht(this.__wrapped__);return t.__actions__=Ot(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Ot(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Ot(this.__views__),t},ht.prototype.reverse=function(){if(this.__filtered__){var t=new ht(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},ht.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=m(t),r=e<0,i=n?t.length:0,o=function(t,e,n){for(var r=-1,i=n.length;++r<i;){var o=n[r],u=o.size;switch(o.type){case"drop":t+=u;break;case"dropRight":e-=u;break;case"take":e=tv(e,t+u);break;case"takeRight":t=Qh(t,e-u)}}return{start:t,end:e}}(0,i,this.__views__),u=o.start,a=o.end,c=a-u,s=r?a:u-1,f=this.__iteratees__,l=f.length,p=0,h=ev(c,this.__takeCount__);if(!n||!r&&i==c&&h==c)return qp(t,this.__actions__);var v=[];t:for(;c--&&p<h;){for(var d=-1,y=t[s+=e];++d<l;){var g=f[d],_=g.iteratee,b=g.type,j=_(y);if(2==b)y=j;else if(!j){if(1==b)continue t;break t}}v[p++]=y}return v},St.prototype.at=Gh.at,St.prototype.chain=Gh.wrapperChain,St.prototype.commit=Gh.commit,St.prototype.next=Gh.next,St.prototype.plant=Gh.plant,St.prototype.reverse=Gh.reverse,St.prototype.toJSON=St.prototype.valueOf=St.prototype.value=Gh.value,St.prototype.first=St.prototype.head,av&&(St.prototype[av]=Gh.toIterator);const lv=St}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var o=e[r]={exports:{}};return t[r].call(o.exports,o,o.exports,n),o.exports}n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r=n(729);module.exports=r})();
@@ -0,0 +1,127 @@
1
+ export interface ValidationOptions {
2
+ version?: 'v1' | 'v2' | 'auto';
3
+ strictMode?: boolean;
4
+ locale?: string;
5
+ }
6
+ export interface V1Schema {
7
+ schema: {
8
+ type: string;
9
+ properties: Record<string, any>;
10
+ required?: string[];
11
+ [key: string]: any;
12
+ };
13
+ definition: any[];
14
+ }
15
+ export interface V2Schema {
16
+ json: {
17
+ $schema: string;
18
+ additionalProperties: boolean;
19
+ properties: Record<string, V2Property>;
20
+ required: string[];
21
+ type: string;
22
+ };
23
+ ui: {
24
+ fields: Record<string, V2UIField>;
25
+ headers: Record<string, V2Header>;
26
+ order: string[];
27
+ sections: Record<string, V2Section>;
28
+ };
29
+ }
30
+ export interface V2BaseProperty {
31
+ type: 'string' | 'number' | 'array' | 'object';
32
+ description?: string;
33
+ default?: any;
34
+ minimum?: number;
35
+ maximum?: number;
36
+ format?: 'date-time' | 'date' | 'time' | 'uri';
37
+ anyOf?: Array<{
38
+ $ref: string;
39
+ }>;
40
+ items?: V2BaseProperty;
41
+ properties?: Record<string, V2BaseProperty>;
42
+ required?: string[];
43
+ additionalProperties?: boolean;
44
+ unevaluatedItems?: boolean;
45
+ maxItems?: number;
46
+ minItems?: number;
47
+ uniqueItems?: boolean;
48
+ }
49
+ export interface V2Property extends V2BaseProperty {
50
+ deprecated: boolean;
51
+ title: string;
52
+ items?: V2BaseProperty;
53
+ properties?: Record<string, V2BaseProperty>;
54
+ }
55
+ export interface V2UIField {
56
+ type: 'TEXT' | 'NUMERIC' | 'CHOICE_LIST' | 'DATE_TIME' | 'LOCATION' | 'COLLECTION' | 'ATTACHMENT';
57
+ parent: string;
58
+ inputType?: 'SHORT_TEXT' | 'LONG_TEXT' | 'DROPDOWN' | 'LIST';
59
+ placeholder?: string;
60
+ choices?: V2Choices;
61
+ buttonText?: string;
62
+ columns?: number;
63
+ itemIdentifier?: string;
64
+ itemName?: string;
65
+ leftColumn?: string[];
66
+ rightColumn?: string[];
67
+ allowableFileTypes?: string[];
68
+ }
69
+ export interface V2Choices {
70
+ type: 'EXISTING_CHOICE_LIST' | 'MY_DATA';
71
+ eventTypeCategories: string[];
72
+ existingChoiceList: string[];
73
+ featureCategories: string[];
74
+ myDataType: string;
75
+ subjectGroups: string[];
76
+ subjectSubtypes: string[];
77
+ }
78
+ export interface V2Header {
79
+ label: string;
80
+ section: string;
81
+ size: 'LARGE' | 'MEDIUM' | 'SMALL';
82
+ }
83
+ export interface V2Section {
84
+ columns: 1 | 2;
85
+ isActive: boolean;
86
+ label: string;
87
+ leftColumn: V2ColumnItem[];
88
+ rightColumn: V2ColumnItem[];
89
+ }
90
+ export interface V2ColumnItem {
91
+ name: string;
92
+ type: 'field' | 'header';
93
+ }
94
+ export interface JSONFormsUIElement {
95
+ type: string;
96
+ scope?: string;
97
+ label?: string;
98
+ options?: Record<string, any>;
99
+ elements?: JSONFormsUIElement[];
100
+ }
101
+ export interface JSONFormsControl extends JSONFormsUIElement {
102
+ type: 'Control';
103
+ scope: string;
104
+ label: string;
105
+ options?: {
106
+ format?: string;
107
+ display?: string;
108
+ placeholder?: string;
109
+ multi?: boolean;
110
+ [key: string]: any;
111
+ };
112
+ }
113
+ export interface JSONFormsLayout extends JSONFormsUIElement {
114
+ type: 'VerticalLayout' | 'HorizontalLayout' | 'Group' | 'Categorization';
115
+ elements: JSONFormsUIElement[];
116
+ label?: string;
117
+ }
118
+ export interface JSONFormsLabel extends JSONFormsUIElement {
119
+ type: 'Label';
120
+ text: string;
121
+ options?: {
122
+ size?: 'LARGE' | 'MEDIUM' | 'SMALL';
123
+ [key: string]: any;
124
+ };
125
+ }
126
+ export type JSONFormsUISchema = JSONFormsUIElement;
127
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/common/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IAChC,OAAO,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,MAAM,CAAC;IAC/B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAGD,MAAM,WAAW,QAAQ;IACvB,MAAM,EAAE;QACN,IAAI,EAAE,MAAM,CAAC;QACb,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;QAChC,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;QACpB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;KACpB,CAAC;IACF,UAAU,EAAE,GAAG,EAAE,CAAC;CACnB;AAGD,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE;QACJ,OAAO,EAAE,MAAM,CAAC;QAChB,oBAAoB,EAAE,OAAO,CAAC;QAC9B,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;QACvC,QAAQ,EAAE,MAAM,EAAE,CAAC;QACnB,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;IACF,EAAE,EAAE;QACF,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;QAClC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QAClC,KAAK,EAAE,MAAM,EAAE,CAAC;QAChB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;KACrC,CAAC;CACH;AAGD,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,QAAQ,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAC;IAC/C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,WAAW,GAAG,MAAM,GAAG,MAAM,GAAG,KAAK,CAAC;IAC/C,KAAK,CAAC,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAChC,KAAK,CAAC,EAAE,cAAc,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;IAC5C,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAGD,MAAM,WAAW,UAAW,SAAQ,cAAc;IAChD,UAAU,EAAE,OAAO,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,cAAc,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;CAC7C;AAED,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,aAAa,GAAG,WAAW,GAAG,UAAU,GAAG,YAAY,GAAG,YAAY,CAAC;IAClG,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,YAAY,GAAG,WAAW,GAAG,UAAU,GAAG,MAAM,CAAC;IAC7D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAC;CAC/B;AAED,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,sBAAsB,GAAG,SAAS,CAAC;IACzC,mBAAmB,EAAE,MAAM,EAAE,CAAC;IAC9B,kBAAkB,EAAE,MAAM,EAAE,CAAC;IAC7B,iBAAiB,EAAE,MAAM,EAAE,CAAC;IAC5B,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,eAAe,EAAE,MAAM,EAAE,CAAC;CAC3B;AAED,MAAM,WAAW,QAAQ;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;CACpC;AAED,MAAM,WAAW,SAAS;IACxB,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;IACf,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,YAAY,EAAE,CAAC;IAC3B,WAAW,EAAE,YAAY,EAAE,CAAC;CAC7B;AAED,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,OAAO,GAAG,QAAQ,CAAC;CAC1B;AAGD,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC9B,QAAQ,CAAC,EAAE,kBAAkB,EAAE,CAAC;CACjC;AAED,MAAM,WAAW,gBAAiB,SAAQ,kBAAkB;IAC1D,IAAI,EAAE,SAAS,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE;QACR,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,KAAK,CAAC,EAAE,OAAO,CAAC;QAChB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;KACpB,CAAC;CACH;AAED,MAAM,WAAW,eAAgB,SAAQ,kBAAkB;IACzD,IAAI,EAAE,gBAAgB,GAAG,kBAAkB,GAAG,OAAO,GAAG,gBAAgB,CAAC;IACzE,QAAQ,EAAE,kBAAkB,EAAE,CAAC;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,cAAe,SAAQ,kBAAkB;IACxD,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE;QACR,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;QACpC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;KACpB,CAAC;CACH;AAED,MAAM,MAAM,iBAAiB,GAAG,kBAAkB,CAAC"}
@@ -1,3 +1,4 @@
1
1
  export { generateUISchema, validateJSONSchema } from './v1/index';
2
2
  export * as v1 from './v1/index';
3
+ export * as v2 from './v2/index';
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAGlE,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAGlE,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"generateUISchema.d.ts","sourceRoot":"","sources":["../../../src/v1/generateUISchema.ts"],"names":[],"mappings":"AAmDA,eAAO,MAAM,gBAAgB,WAAY,GAAG;;;CAiB3C,CAAC"}
1
+ {"version":3,"file":"generateUISchema.d.ts","sourceRoot":"","sources":["../../../src/v1/generateUISchema.ts"],"names":[],"mappings":"AAmEA,eAAO,MAAM,gBAAgB,WAAY,GAAG;;;CAiB3C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"validateJsonSchema.d.ts","sourceRoot":"","sources":["../../../src/v1/validateJsonSchema.ts"],"names":[],"mappings":"AA8RA,eAAO,MAAM,kBAAkB,iBAAkB,MAAM,QAmCtD,CAAC"}
1
+ {"version":3,"file":"validateJsonSchema.d.ts","sourceRoot":"","sources":["../../../src/v1/validateJsonSchema.ts"],"names":[],"mappings":"AAiSA,eAAO,MAAM,kBAAkB,iBAAkB,MAAM,QAmCtD,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { V2Schema, JSONFormsUISchema } from '../common/types';
2
+ /**
3
+ * Generates a JSONForms-compatible UI schema from a EarthRanger V2 schema format
4
+ *
5
+ * React Native Optimization:
6
+ * - All layouts are converted to single-column VerticalLayout
7
+ * - Multi-column sections are flattened: leftColumn fields first, then rightColumn fields
8
+ * - Optimized for mobile form rendering
9
+ *
10
+ * @param schema - EarthRanger V2 schema with json and ui properties
11
+ * @returns JSONForms UI schema with single-column VerticalLayout for React Native
12
+ */
13
+ export declare const generateUISchema: (schema: V2Schema) => JSONFormsUISchema;
14
+ //# sourceMappingURL=generateUISchema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generateUISchema.d.ts","sourceRoot":"","sources":["../../../src/v2/generateUISchema.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,iBAAiB,EAElB,MAAM,iBAAiB,CAAC;AASzB;;;;;;;;;;GAUG;AACH,eAAO,MAAM,gBAAgB,WAAY,QAAQ,KAAG,iBAoCnD,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { generateUISchema } from './generateUISchema';
2
+ export type { V2Schema, V2Property, V2UIField, V2Section, V2Header, JSONFormsUISchema } from '../common/types';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/v2/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAGtD,YAAY,EACV,QAAQ,EACR,UAAU,EACV,SAAS,EACT,SAAS,EACT,QAAQ,EACR,iBAAiB,EAClB,MAAM,iBAAiB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { V2Schema } from '../common/types';
2
+ export declare const mockV2Schema: V2Schema;
3
+ export declare const expectedUISchemaForMockV2: any;
4
+ //# sourceMappingURL=mockData.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mockData.d.ts","sourceRoot":"","sources":["../../../src/v2/mockData.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAE3C,eAAO,MAAM,YAAY,UA2OZ,CAAC;AAEd,eAAO,MAAM,yBAAyB,EAAE,GA+FvC,CAAC"}
@@ -0,0 +1,38 @@
1
+ import { V2Schema, V2UIField, V2Property, V2Header, JSONFormsControl, JSONFormsLayout, JSONFormsLabel } from '../common/types';
2
+ /**
3
+ * Determines if a field should be rendered based on deprecation status
4
+ */
5
+ export declare const isFieldVisible: (property: V2Property) => boolean;
6
+ /**
7
+ * Creates a JSONForms control element for a field
8
+ */
9
+ export declare const createControl: (fieldName: string, property: V2Property, uiField: V2UIField) => JSONFormsControl;
10
+ /**
11
+ * Creates a JSONForms label element for a header
12
+ */
13
+ export declare const createHeaderLabel: (headerId: string, header: V2Header) => JSONFormsLabel;
14
+ /**
15
+ * Creates a single-column vertical layout for a section
16
+ */
17
+ export declare const createSectionLayout: (sectionId: string, section: V2Schema['ui']['sections'][string], fieldControls: JSONFormsControl[], headers: Record<string, V2Header>) => JSONFormsLayout;
18
+ /**
19
+ * Gets all fields that should be rendered (non-deprecated, visible)
20
+ */
21
+ export declare const getVisibleFields: (schema: V2Schema) => Array<{
22
+ name: string;
23
+ property: V2Property;
24
+ uiField: V2UIField;
25
+ }>;
26
+ /**
27
+ * Groups fields by their parent section
28
+ */
29
+ export declare const groupFieldsBySection: (fields: Array<{
30
+ name: string;
31
+ property: V2Property;
32
+ uiField: V2UIField;
33
+ }>, sections: V2Schema['ui']['sections']) => Record<string, Array<{
34
+ name: string;
35
+ property: V2Property;
36
+ uiField: V2UIField;
37
+ }>>;
38
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/v2/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,SAAS,EACT,UAAU,EAEV,QAAQ,EACR,gBAAgB,EAChB,eAAe,EACf,cAAc,EAGf,MAAM,iBAAiB,CAAC;AAEzB;;GAEG;AACH,eAAO,MAAM,cAAc,aAAc,UAAU,KAAG,OAErD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa,cACb,MAAM,YACP,UAAU,WACX,SAAS,KACjB,gBAwFF,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,iBAAiB,aAClB,MAAM,UACR,QAAQ,KACf,cAQF,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,mBAAmB,cACnB,MAAM,WACR,QAAQ,CAAC,IAAI,CAAC,CAAC,UAAU,CAAC,CAAC,MAAM,CAAC,iBAC5B,gBAAgB,EAAE,WACxB,OAAO,MAAM,EAAE,QAAQ,CAAC,KAChC,eA4CF,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gBAAgB,WAAY,QAAQ,KAAG,MAAM;IAAE,MAAM,MAAM,CAAC;IAAC,QAAQ,EAAE,UAAU,CAAC;IAAC,OAAO,EAAE,SAAS,CAAA;CAAE,CAYnH,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,oBAAoB,WACvB,MAAM;IAAE,MAAM,MAAM,CAAC;IAAC,QAAQ,EAAE,UAAU,CAAC;IAAC,OAAO,EAAE,SAAS,CAAA;CAAE,CAAC,YAC/D,QAAQ,CAAC,IAAI,CAAC,CAAC,UAAU,CAAC,KACnC,OAAO,MAAM,EAAE,MAAM;IAAE,MAAM,MAAM,CAAC;IAAC,QAAQ,EAAE,UAAU,CAAC;IAAC,OAAO,EAAE,SAAS,CAAA;CAAE,CAAC,CAgBlF,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@earthranger/react-native-jsonforms-formatter",
3
- "version": "1.0.6",
3
+ "version": "2.0.0-beta.1",
4
4
  "description": "Converts JTD into JSON Schema ",
5
5
  "main": "./dist/bundle.js",
6
6
  "types": "./dist/src/index.d.ts",