notebook 7.4.2__py3-none-any.whl → 7.5.0a0__py3-none-any.whl
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.
Potentially problematic release.
This version of notebook might be problematic. Click here for more details.
- notebook/_version.py +1 -1
- notebook/app.py +1 -1
- notebook/static/131.2d7644b406b0d9c7c44a.js +1421 -0
- notebook/static/131.2d7644b406b0d9c7c44a.js.map +1 -0
- notebook/static/{132.db5d3c22f078a7818fd1.js → 132.691a95a70c9fe7c1cc8f.js} +3 -3
- notebook/static/{132.db5d3c22f078a7818fd1.js.map → 132.691a95a70c9fe7c1cc8f.js.map} +1 -1
- notebook/static/{1650.3a6b263c6a1d9657528d.js → 1650.b2bf74f5a7cda92e3c47.js} +4 -4
- notebook/static/{1650.3a6b263c6a1d9657528d.js.map → 1650.b2bf74f5a7cda92e3c47.js.map} +1 -1
- notebook/static/{1684.fd08e2bcbbfdab7f4613.js → 1684.84aef14d83b41275e33f.js} +5 -5
- notebook/static/{1684.fd08e2bcbbfdab7f4613.js.map → 1684.84aef14d83b41275e33f.js.map} +1 -1
- notebook/static/{1715.fd1bcb796c0a9a9fa28d.js → 1715.31ca8e6a27554059ae6d.js} +4 -4
- notebook/static/{1715.fd1bcb796c0a9a9fa28d.js.map → 1715.31ca8e6a27554059ae6d.js.map} +1 -1
- notebook/static/{2228.5897a4ab53c9c224da5d.js → 2228.e21c6943709bcbca9f11.js} +2 -2
- notebook/static/{2228.5897a4ab53c9c224da5d.js.map → 2228.e21c6943709bcbca9f11.js.map} +1 -1
- notebook/static/{7328.eee17040775379f2ebf7.js → 2634.57bfa6d5c5ae1e42dd9f.js} +2 -2
- notebook/static/{7328.eee17040775379f2ebf7.js.map → 2634.57bfa6d5c5ae1e42dd9f.js.map} +1 -1
- notebook/static/{2913.bb0dfcafeee2f97377fc.js → 2913.274b19d8f201991f4a69.js} +3 -3
- notebook/static/{2913.bb0dfcafeee2f97377fc.js.map → 2913.274b19d8f201991f4a69.js.map} +1 -1
- notebook/static/{3146.255a8679aedb1427878a.js → 3146.696d2e174781e130c374.js} +3 -3
- notebook/static/{3146.255a8679aedb1427878a.js.map → 3146.696d2e174781e130c374.js.map} +1 -1
- notebook/static/{3197.679087d3d6e90032272a.js → 3197.8a84a7c958622566cb33.js} +37 -36
- notebook/static/3197.8a84a7c958622566cb33.js.map +1 -0
- notebook/static/{3619.2e4bf80097f9890aef49.js → 3619.94f58ca9f340882ec9c0.js} +2 -2
- notebook/static/{3619.2e4bf80097f9890aef49.js.map → 3619.94f58ca9f340882ec9c0.js.map} +1 -1
- notebook/static/{3768.ed31c6101d464610b011.js → 3768.3e9bd8411c9d7a4f6852.js} +19 -19
- notebook/static/{7302.c66e4aebda9a8718f63a.js.map → 3768.3e9bd8411c9d7a4f6852.js.map} +1 -1
- notebook/static/{4324.fa653693694bd924557b.js → 4324.45d34a932e3f27ce8b2a.js} +308 -308
- notebook/static/4324.45d34a932e3f27ce8b2a.js.map +1 -0
- notebook/static/{4382.55f6fbec80dc2cbc38c6.js → 4382.dc6ea85d32495ccfe078.js} +3 -3
- notebook/static/{4382.55f6fbec80dc2cbc38c6.js.map → 4382.dc6ea85d32495ccfe078.js.map} +1 -1
- notebook/static/{4406.c435ee1d9e07c37b46e4.js → 4406.ef5d96031cc78e1fd755.js} +4 -4
- notebook/static/{4406.c435ee1d9e07c37b46e4.js.map → 4406.ef5d96031cc78e1fd755.js.map} +1 -1
- notebook/static/{4645.621dcf760b2636ab6a32.js → 4645.a07af6b2ee3dae0c8672.js} +5 -5
- notebook/static/{4645.621dcf760b2636ab6a32.js.map → 4645.a07af6b2ee3dae0c8672.js.map} +1 -1
- notebook/static/{4837.d93fa1362a1755054b7e.js → 4837.22eaa3eee463019de513.js} +3 -3
- notebook/static/{4837.d93fa1362a1755054b7e.js.map → 4837.22eaa3eee463019de513.js.map} +1 -1
- notebook/static/{4926.07f857be253dfe2d9b64.js → 4926.21f2bcadbb0c72c87992.js} +4 -4
- notebook/static/{4926.07f857be253dfe2d9b64.js.map → 4926.21f2bcadbb0c72c87992.js.map} +1 -1
- notebook/static/{5135.68030d482ad6e7d2705f.js → 5135.b04715b9a20abf2d857f.js} +11 -11
- notebook/static/{5135.68030d482ad6e7d2705f.js.map → 5135.b04715b9a20abf2d857f.js.map} +1 -1
- notebook/static/{5573.110f5ccc7780d0607efe.js → 5573.062d8043aaaea888131c.js} +17 -17
- notebook/static/{5573.110f5ccc7780d0607efe.js.map → 5573.062d8043aaaea888131c.js.map} +1 -1
- notebook/static/{5601.0846bb0c153a39d95381.js → 5601.df72883a74cbec5a4187.js} +5 -5
- notebook/static/{5601.0846bb0c153a39d95381.js.map → 5601.df72883a74cbec5a4187.js.map} +1 -1
- notebook/static/{9442.e301e4179b7c69c125d7.js → 6080.56aefff013f4272b815c.js} +2 -2
- notebook/static/{9442.e301e4179b7c69c125d7.js.map → 6080.56aefff013f4272b815c.js.map} +1 -1
- notebook/static/{131.729c28b8323daf822cbe.js → 6236.ea8288f99f42bcff0039.js} +1050 -1583
- notebook/static/6236.ea8288f99f42bcff0039.js.map +1 -0
- notebook/static/{6345.4acc733484bbafac321b.js → 6345.dcba68ca03484d6fe94c.js} +5 -5
- notebook/static/{6345.4acc733484bbafac321b.js.map → 6345.dcba68ca03484d6fe94c.js.map} +1 -1
- notebook/static/{7302.c66e4aebda9a8718f63a.js → 7302.71fdd01bf0458ccfabb0.js} +19 -19
- notebook/static/{3768.ed31c6101d464610b011.js.map → 7302.71fdd01bf0458ccfabb0.js.map} +1 -1
- notebook/static/{7906.238c7960444b3299bc27.js → 7906.4ca9aa5889ff47b2d092.js} +3 -3
- notebook/static/{7906.238c7960444b3299bc27.js.map → 7906.4ca9aa5889ff47b2d092.js.map} +1 -1
- notebook/static/{7995.228c3c90da185c130d89.js → 7995.45be6443b704da1daafc.js} +3 -3
- notebook/static/{7995.228c3c90da185c130d89.js.map → 7995.45be6443b704da1daafc.js.map} +1 -1
- notebook/static/{8579.175d3ae6dffdbf0145eb.js → 8579.943b51e580fe5ba6ec85.js} +13 -13
- notebook/static/{8579.175d3ae6dffdbf0145eb.js.map → 8579.943b51e580fe5ba6ec85.js.map} +1 -1
- notebook/static/{8781.8d9955710c04c689f0cd.js → 8781.30d203631c8d44cac089.js} +60 -60
- notebook/static/{8781.8d9955710c04c689f0cd.js.map → 8781.30d203631c8d44cac089.js.map} +1 -1
- notebook/static/{8845.ac1c5acb78cea4acee08.js → 8845.639ebc34b4688cf4bf1c.js} +7 -7
- notebook/static/{8845.ac1c5acb78cea4acee08.js.map → 8845.639ebc34b4688cf4bf1c.js.map} +1 -1
- notebook/static/{8875.16a8a1fab0136d70a5f8.js → 8875.d30b4bdb849b1c6e8e48.js} +4 -4
- notebook/static/{8875.16a8a1fab0136d70a5f8.js.map → 8875.d30b4bdb849b1c6e8e48.js.map} +1 -1
- notebook/static/{9068.7c89844254ee24f35eee.js → 9068.035c74d3ac5947308e33.js} +3 -3
- notebook/static/{9068.7c89844254ee24f35eee.js.map → 9068.035c74d3ac5947308e33.js.map} +1 -1
- notebook/static/{9380.0b5d548d01ddba3e4378.js → 9380.50c0ce4765c95fdad134.js} +5 -5
- notebook/static/{9380.0b5d548d01ddba3e4378.js.map → 9380.50c0ce4765c95fdad134.js.map} +1 -1
- notebook/static/main.1d8650f7e0beb0a70c21.js +1180 -0
- notebook/static/main.1d8650f7e0beb0a70c21.js.map +1 -0
- notebook/static/{notebook_core.7213b2fe0eabee62279d.js → notebook_core.3a39fd35e3d3188d26bc.js} +875 -6570
- notebook/static/{notebook_core.7213b2fe0eabee62279d.js.map → notebook_core.3a39fd35e3d3188d26bc.js.map} +1 -1
- notebook/static/third-party-licenses.json +104 -104
- notebook/templates/consoles.html +1 -1
- notebook/templates/edit.html +1 -1
- notebook/templates/error.html +1 -1
- notebook/templates/notebooks.html +1 -1
- notebook/templates/terminals.html +1 -1
- notebook/templates/tree.html +1 -1
- {notebook-7.4.2.data → notebook-7.5.0a0.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/package.json.orig +14 -14
- {notebook-7.4.2.data → notebook-7.5.0a0.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/documentsearch-extension/package.json.orig +4 -4
- {notebook-7.4.2.data → notebook-7.5.0a0.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/help-extension/package.json.orig +6 -6
- {notebook-7.4.2.data → notebook-7.5.0a0.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/notebook-extension/package.json.orig +9 -9
- {notebook-7.4.2.data → notebook-7.5.0a0.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/tree-extension/package.json.orig +15 -15
- {notebook-7.4.2.data → notebook-7.5.0a0.data}/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/package.json +11 -11
- {notebook-7.4.2.data → notebook-7.5.0a0.data}/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/schemas/@jupyter-notebook/lab-extension/package.json.orig +10 -10
- notebook-7.5.0a0.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/568.062ba75f2f2f3a8e26d3.js +1 -0
- notebook-7.4.2.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/928.327ec9d7a9413375ec45.js → notebook-7.5.0a0.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/928.86d80b23f10dccd9fb98.js +1 -1
- notebook-7.4.2.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/93.eae3497dd223d842d198.js → notebook-7.5.0a0.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/93.dab87fbc078083780f2b.js +1 -1
- notebook-7.5.0a0.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/981.d00f62cb382e25262fa3.js +1 -0
- notebook-7.5.0a0.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/remoteEntry.2ef44fd0409252b4639d.js +1 -0
- {notebook-7.4.2.data → notebook-7.5.0a0.data}/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/third-party-licenses.json +2 -2
- {notebook-7.4.2.dist-info → notebook-7.5.0a0.dist-info}/METADATA +3 -3
- {notebook-7.4.2.dist-info → notebook-7.5.0a0.dist-info}/RECORD +117 -117
- notebook/static/131.729c28b8323daf822cbe.js.map +0 -1
- notebook/static/3197.679087d3d6e90032272a.js.map +0 -1
- notebook/static/4324.fa653693694bd924557b.js.map +0 -1
- notebook/static/5448.a9016133a2b9389ac102.js +0 -951
- notebook/static/5448.a9016133a2b9389ac102.js.map +0 -1
- notebook/static/main.4c52c91f103071190cb1.js +0 -1180
- notebook/static/main.4c52c91f103071190cb1.js.map +0 -1
- notebook-7.4.2.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/199.f16f9d1ce907d41fa0e1.js +0 -1
- notebook-7.4.2.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/568.4abd86605f9970bf2af0.js +0 -1
- notebook-7.4.2.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/remoteEntry.a7f6d6f20e99b7f1c604.js +0 -1
- {notebook-7.4.2.data → notebook-7.5.0a0.data}/data/etc/jupyter/jupyter_server_config.d/notebook.json +0 -0
- {notebook-7.4.2.data → notebook-7.5.0a0.data}/data/share/applications/jupyter-notebook.desktop +0 -0
- {notebook-7.4.2.data → notebook-7.5.0a0.data}/data/share/icons/hicolor/scalable/apps/notebook.svg +0 -0
- {notebook-7.4.2.data → notebook-7.5.0a0.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/menus.json +0 -0
- {notebook-7.4.2.data → notebook-7.5.0a0.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/pages.json +0 -0
- {notebook-7.4.2.data → notebook-7.5.0a0.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/shell.json +0 -0
- {notebook-7.4.2.data → notebook-7.5.0a0.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/title.json +0 -0
- {notebook-7.4.2.data → notebook-7.5.0a0.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/top.json +0 -0
- {notebook-7.4.2.data → notebook-7.5.0a0.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/zen.json +0 -0
- {notebook-7.4.2.data → notebook-7.5.0a0.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/help-extension/open.json +0 -0
- {notebook-7.4.2.data → notebook-7.5.0a0.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/notebook-extension/checkpoints.json +0 -0
- {notebook-7.4.2.data → notebook-7.5.0a0.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/notebook-extension/edit-notebook-metadata.json +0 -0
- {notebook-7.4.2.data → notebook-7.5.0a0.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/notebook-extension/full-width-notebook.json +0 -0
- {notebook-7.4.2.data → notebook-7.5.0a0.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/notebook-extension/kernel-logo.json +0 -0
- {notebook-7.4.2.data → notebook-7.5.0a0.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/notebook-extension/scroll-output.json +0 -0
- {notebook-7.4.2.data → notebook-7.5.0a0.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/tree-extension/file-actions.json +0 -0
- {notebook-7.4.2.data → notebook-7.5.0a0.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/tree-extension/widget.json +0 -0
- {notebook-7.4.2.data → notebook-7.5.0a0.data}/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/schemas/@jupyter-notebook/lab-extension/interface-switcher.json +0 -0
- {notebook-7.4.2.data → notebook-7.5.0a0.data}/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/schemas/@jupyter-notebook/lab-extension/launch-tree.json +0 -0
- {notebook-7.4.2.data → notebook-7.5.0a0.data}/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/style.js +0 -0
- {notebook-7.4.2.dist-info → notebook-7.5.0a0.dist-info}/WHEEL +0 -0
- {notebook-7.4.2.dist-info → notebook-7.5.0a0.dist-info}/entry_points.txt +0 -0
- {notebook-7.4.2.dist-info → notebook-7.5.0a0.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,778 +1,16 @@
|
|
|
1
|
-
(self["webpackChunk_JUPYTERLAB_CORE_OUTPUT"] = self["webpackChunk_JUPYTERLAB_CORE_OUTPUT"] || []).push([[131],{
|
|
2
|
-
|
|
3
|
-
/***/ 70131:
|
|
4
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
5
|
-
|
|
6
|
-
"use strict";
|
|
7
|
-
// ESM COMPAT FLAG
|
|
8
|
-
__webpack_require__.r(__webpack_exports__);
|
|
9
|
-
|
|
10
|
-
// EXPORTS
|
|
11
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
12
|
-
createPrecompiledValidator: () => (/* reexport */ createPrecompiledValidator),
|
|
13
|
-
customizeValidator: () => (/* reexport */ customizeValidator),
|
|
14
|
-
"default": () => (/* binding */ lib)
|
|
15
|
-
});
|
|
16
|
-
|
|
17
|
-
// EXTERNAL MODULE: consume shared module (default) @rjsf/utils@^5.13.4 (strict) (fallback: ../node_modules/@rjsf/utils/lib/index.js)
|
|
18
|
-
var index_js_ = __webpack_require__(24885);
|
|
19
|
-
// EXTERNAL MODULE: ../node_modules/@rjsf/validator-ajv8/node_modules/ajv/dist/ajv.js
|
|
20
|
-
var dist_ajv = __webpack_require__(20151);
|
|
21
|
-
var ajv_default = /*#__PURE__*/__webpack_require__.n(dist_ajv);
|
|
22
|
-
// EXTERNAL MODULE: ../node_modules/@rjsf/validator-ajv8/node_modules/ajv-formats/dist/index.js
|
|
23
|
-
var dist = __webpack_require__(58218);
|
|
24
|
-
var dist_default = /*#__PURE__*/__webpack_require__.n(dist);
|
|
25
|
-
// EXTERNAL MODULE: ../node_modules/lodash/isObject.js
|
|
26
|
-
var isObject = __webpack_require__(11611);
|
|
27
|
-
var isObject_default = /*#__PURE__*/__webpack_require__.n(isObject);
|
|
28
|
-
;// CONCATENATED MODULE: ../node_modules/@rjsf/validator-ajv8/lib/createAjvInstance.js
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
const AJV_CONFIG = {
|
|
34
|
-
allErrors: true,
|
|
35
|
-
multipleOfPrecision: 8,
|
|
36
|
-
strict: false,
|
|
37
|
-
verbose: true,
|
|
38
|
-
};
|
|
39
|
-
const COLOR_FORMAT_REGEX = /^(#?([0-9A-Fa-f]{3}){1,2}\b|aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow|(rgb\(\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*\))|(rgb\(\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*\)))$/;
|
|
40
|
-
const DATA_URL_FORMAT_REGEX = /^data:([a-z]+\/[a-z0-9-+.]+)?;(?:name=(.*);)?base64,(.*)$/;
|
|
41
|
-
/** Creates an Ajv version 8 implementation object with standard support for the 'color` and `data-url` custom formats.
|
|
42
|
-
* If `additionalMetaSchemas` are provided then the Ajv instance is modified to add each of the meta schemas in the
|
|
43
|
-
* list. If `customFormats` are provided then those additional formats are added to the list of supported formats. If
|
|
44
|
-
* `ajvOptionsOverrides` are provided then they are spread on top of the default `AJV_CONFIG` options when constructing
|
|
45
|
-
* the `Ajv` instance. With Ajv v8, the JSON Schema formats are not provided by default, but can be plugged in. By
|
|
46
|
-
* default, all formats from the `ajv-formats` library are added. To disable this capability, set the `ajvFormatOptions`
|
|
47
|
-
* parameter to `false`. Additionally, you can configure the `ajv-formats` by providing a custom set of
|
|
48
|
-
* [format options](https://github.com/ajv-validator/ajv-formats) to the `ajvFormatOptions` parameter.
|
|
49
|
-
*
|
|
50
|
-
* @param [additionalMetaSchemas] - The list of additional meta schemas that the validator can access
|
|
51
|
-
* @param [customFormats] - The set of additional custom formats that the validator will support
|
|
52
|
-
* @param [ajvOptionsOverrides={}] - The set of validator config override options
|
|
53
|
-
* @param [ajvFormatOptions] - The `ajv-format` options to use when adding formats to `ajv`; pass `false` to disable it
|
|
54
|
-
* @param [AjvClass] - The `Ajv` class to use when creating the validator instance
|
|
55
|
-
*/
|
|
56
|
-
function createAjvInstance(additionalMetaSchemas, customFormats, ajvOptionsOverrides = {}, ajvFormatOptions, AjvClass = (ajv_default())) {
|
|
57
|
-
const ajv = new AjvClass({ ...AJV_CONFIG, ...ajvOptionsOverrides });
|
|
58
|
-
if (ajvFormatOptions) {
|
|
59
|
-
dist_default()(ajv, ajvFormatOptions);
|
|
60
|
-
}
|
|
61
|
-
else if (ajvFormatOptions !== false) {
|
|
62
|
-
dist_default()(ajv);
|
|
63
|
-
}
|
|
64
|
-
// add custom formats
|
|
65
|
-
ajv.addFormat('data-url', DATA_URL_FORMAT_REGEX);
|
|
66
|
-
ajv.addFormat('color', COLOR_FORMAT_REGEX);
|
|
67
|
-
// Add RJSF-specific additional properties keywords so Ajv doesn't report errors if strict is enabled.
|
|
68
|
-
ajv.addKeyword(index_js_.ADDITIONAL_PROPERTY_FLAG);
|
|
69
|
-
ajv.addKeyword(index_js_.RJSF_ADDITONAL_PROPERTIES_FLAG);
|
|
70
|
-
// add more schemas to validate against
|
|
71
|
-
if (Array.isArray(additionalMetaSchemas)) {
|
|
72
|
-
ajv.addMetaSchema(additionalMetaSchemas);
|
|
73
|
-
}
|
|
74
|
-
// add more custom formats to validate against
|
|
75
|
-
if (isObject_default()(customFormats)) {
|
|
76
|
-
Object.keys(customFormats).forEach((formatName) => {
|
|
77
|
-
ajv.addFormat(formatName, customFormats[formatName]);
|
|
78
|
-
});
|
|
79
|
-
}
|
|
80
|
-
return ajv;
|
|
81
|
-
}
|
|
82
|
-
//# sourceMappingURL=createAjvInstance.js.map
|
|
83
|
-
// EXTERNAL MODULE: ../node_modules/lodash/get.js
|
|
84
|
-
var get = __webpack_require__(99729);
|
|
85
|
-
var get_default = /*#__PURE__*/__webpack_require__.n(get);
|
|
86
|
-
;// CONCATENATED MODULE: ../node_modules/@rjsf/validator-ajv8/lib/processRawValidationErrors.js
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
/** Transforming the error output from ajv to format used by @rjsf/utils.
|
|
90
|
-
* At some point, components should be updated to support ajv.
|
|
91
|
-
*
|
|
92
|
-
* @param errors - The list of AJV errors to convert to `RJSFValidationErrors`
|
|
93
|
-
* @param [uiSchema] - An optional uiSchema that is passed to `transformErrors` and `customValidate`
|
|
94
|
-
*/
|
|
95
|
-
function transformRJSFValidationErrors(errors = [], uiSchema) {
|
|
96
|
-
return errors.map((e) => {
|
|
97
|
-
const { instancePath, keyword, params, schemaPath, parentSchema, ...rest } = e;
|
|
98
|
-
let { message = '' } = rest;
|
|
99
|
-
let property = instancePath.replace(/\//g, '.');
|
|
100
|
-
let stack = `${property} ${message}`.trim();
|
|
101
|
-
if ('missingProperty' in params) {
|
|
102
|
-
property = property ? `${property}.${params.missingProperty}` : params.missingProperty;
|
|
103
|
-
const currentProperty = params.missingProperty;
|
|
104
|
-
const uiSchemaTitle = (0,index_js_.getUiOptions)(get_default()(uiSchema, `${property.replace(/^\./, '')}`)).title;
|
|
105
|
-
if (uiSchemaTitle) {
|
|
106
|
-
message = message.replace(currentProperty, uiSchemaTitle);
|
|
107
|
-
}
|
|
108
|
-
else {
|
|
109
|
-
const parentSchemaTitle = get_default()(parentSchema, [index_js_.PROPERTIES_KEY, currentProperty, 'title']);
|
|
110
|
-
if (parentSchemaTitle) {
|
|
111
|
-
message = message.replace(currentProperty, parentSchemaTitle);
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
stack = message;
|
|
115
|
-
}
|
|
116
|
-
else {
|
|
117
|
-
const uiSchemaTitle = (0,index_js_.getUiOptions)(get_default()(uiSchema, `${property.replace(/^\./, '')}`)).title;
|
|
118
|
-
if (uiSchemaTitle) {
|
|
119
|
-
stack = `'${uiSchemaTitle}' ${message}`.trim();
|
|
120
|
-
}
|
|
121
|
-
else {
|
|
122
|
-
const parentSchemaTitle = parentSchema === null || parentSchema === void 0 ? void 0 : parentSchema.title;
|
|
123
|
-
if (parentSchemaTitle) {
|
|
124
|
-
stack = `'${parentSchemaTitle}' ${message}`.trim();
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
// put data in expected format
|
|
129
|
-
return {
|
|
130
|
-
name: keyword,
|
|
131
|
-
property,
|
|
132
|
-
message,
|
|
133
|
-
params,
|
|
134
|
-
stack,
|
|
135
|
-
schemaPath,
|
|
136
|
-
};
|
|
137
|
-
});
|
|
138
|
-
}
|
|
139
|
-
/** This function processes the `formData` with an optional user contributed `customValidate` function, which receives
|
|
140
|
-
* the form data and a `errorHandler` function that will be used to add custom validation errors for each field. Also
|
|
141
|
-
* supports a `transformErrors` function that will take the raw AJV validation errors, prior to custom validation and
|
|
142
|
-
* transform them in what ever way it chooses.
|
|
143
|
-
*
|
|
144
|
-
* @param validator - The `ValidatorType` implementation used for the `getDefaultFormState()` call
|
|
145
|
-
* @param rawErrors - The list of raw `ErrorObject`s to process
|
|
146
|
-
* @param formData - The form data to validate
|
|
147
|
-
* @param schema - The schema against which to validate the form data
|
|
148
|
-
* @param [customValidate] - An optional function that is used to perform custom validation
|
|
149
|
-
* @param [transformErrors] - An optional function that is used to transform errors after AJV validation
|
|
150
|
-
* @param [uiSchema] - An optional uiSchema that is passed to `transformErrors` and `customValidate`
|
|
151
|
-
*/
|
|
152
|
-
function processRawValidationErrors(validator, rawErrors, formData, schema, customValidate, transformErrors, uiSchema) {
|
|
153
|
-
const { validationError: invalidSchemaError } = rawErrors;
|
|
154
|
-
let errors = transformRJSFValidationErrors(rawErrors.errors, uiSchema);
|
|
155
|
-
if (invalidSchemaError) {
|
|
156
|
-
errors = [...errors, { stack: invalidSchemaError.message }];
|
|
157
|
-
}
|
|
158
|
-
if (typeof transformErrors === 'function') {
|
|
159
|
-
errors = transformErrors(errors, uiSchema);
|
|
160
|
-
}
|
|
161
|
-
let errorSchema = (0,index_js_.toErrorSchema)(errors);
|
|
162
|
-
if (invalidSchemaError) {
|
|
163
|
-
errorSchema = {
|
|
164
|
-
...errorSchema,
|
|
165
|
-
$schema: {
|
|
166
|
-
__errors: [invalidSchemaError.message],
|
|
167
|
-
},
|
|
168
|
-
};
|
|
169
|
-
}
|
|
170
|
-
if (typeof customValidate !== 'function') {
|
|
171
|
-
return { errors, errorSchema };
|
|
172
|
-
}
|
|
173
|
-
// Include form data with undefined values, which is required for custom validation.
|
|
174
|
-
const newFormData = (0,index_js_.getDefaultFormState)(validator, schema, formData, schema, true);
|
|
175
|
-
const errorHandler = customValidate(newFormData, (0,index_js_.createErrorHandler)(newFormData), uiSchema);
|
|
176
|
-
const userErrorSchema = (0,index_js_.unwrapErrorHandler)(errorHandler);
|
|
177
|
-
return (0,index_js_.validationDataMerge)({ errors, errorSchema }, userErrorSchema);
|
|
178
|
-
}
|
|
179
|
-
//# sourceMappingURL=processRawValidationErrors.js.map
|
|
180
|
-
;// CONCATENATED MODULE: ../node_modules/@rjsf/validator-ajv8/lib/validator.js
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
/** `ValidatorType` implementation that uses the AJV 8 validation mechanism.
|
|
185
|
-
*/
|
|
186
|
-
class AJV8Validator {
|
|
187
|
-
/** Constructs an `AJV8Validator` instance using the `options`
|
|
188
|
-
*
|
|
189
|
-
* @param options - The `CustomValidatorOptionsType` options that are used to create the AJV instance
|
|
190
|
-
* @param [localizer] - If provided, is used to localize a list of Ajv `ErrorObject`s
|
|
191
|
-
*/
|
|
192
|
-
constructor(options, localizer) {
|
|
193
|
-
const { additionalMetaSchemas, customFormats, ajvOptionsOverrides, ajvFormatOptions, AjvClass } = options;
|
|
194
|
-
this.ajv = createAjvInstance(additionalMetaSchemas, customFormats, ajvOptionsOverrides, ajvFormatOptions, AjvClass);
|
|
195
|
-
this.localizer = localizer;
|
|
196
|
-
}
|
|
197
|
-
/** Converts an `errorSchema` into a list of `RJSFValidationErrors`
|
|
198
|
-
*
|
|
199
|
-
* @param errorSchema - The `ErrorSchema` instance to convert
|
|
200
|
-
* @param [fieldPath=[]] - The current field path, defaults to [] if not specified
|
|
201
|
-
* @deprecated - Use the `toErrorList()` function provided by `@rjsf/utils` instead. This function will be removed in
|
|
202
|
-
* the next major release.
|
|
203
|
-
*/
|
|
204
|
-
toErrorList(errorSchema, fieldPath = []) {
|
|
205
|
-
return (0,index_js_.toErrorList)(errorSchema, fieldPath);
|
|
206
|
-
}
|
|
207
|
-
/** Runs the pure validation of the `schema` and `formData` without any of the RJSF functionality. Provided for use
|
|
208
|
-
* by the playground. Returns the `errors` from the validation
|
|
209
|
-
*
|
|
210
|
-
* @param schema - The schema against which to validate the form data * @param schema
|
|
211
|
-
* @param formData - The form data to validate
|
|
212
|
-
*/
|
|
213
|
-
rawValidation(schema, formData) {
|
|
214
|
-
let compilationError = undefined;
|
|
215
|
-
let compiledValidator;
|
|
216
|
-
if (schema[index_js_.ID_KEY]) {
|
|
217
|
-
compiledValidator = this.ajv.getSchema(schema[index_js_.ID_KEY]);
|
|
218
|
-
}
|
|
219
|
-
try {
|
|
220
|
-
if (compiledValidator === undefined) {
|
|
221
|
-
compiledValidator = this.ajv.compile(schema);
|
|
222
|
-
}
|
|
223
|
-
compiledValidator(formData);
|
|
224
|
-
}
|
|
225
|
-
catch (err) {
|
|
226
|
-
compilationError = err;
|
|
227
|
-
}
|
|
228
|
-
let errors;
|
|
229
|
-
if (compiledValidator) {
|
|
230
|
-
if (typeof this.localizer === 'function') {
|
|
231
|
-
this.localizer(compiledValidator.errors);
|
|
232
|
-
}
|
|
233
|
-
errors = compiledValidator.errors || undefined;
|
|
234
|
-
// Clear errors to prevent persistent errors, see #1104
|
|
235
|
-
compiledValidator.errors = null;
|
|
236
|
-
}
|
|
237
|
-
return {
|
|
238
|
-
errors: errors,
|
|
239
|
-
validationError: compilationError,
|
|
240
|
-
};
|
|
241
|
-
}
|
|
242
|
-
/** This function processes the `formData` with an optional user contributed `customValidate` function, which receives
|
|
243
|
-
* the form data and a `errorHandler` function that will be used to add custom validation errors for each field. Also
|
|
244
|
-
* supports a `transformErrors` function that will take the raw AJV validation errors, prior to custom validation and
|
|
245
|
-
* transform them in what ever way it chooses.
|
|
246
|
-
*
|
|
247
|
-
* @param formData - The form data to validate
|
|
248
|
-
* @param schema - The schema against which to validate the form data
|
|
249
|
-
* @param [customValidate] - An optional function that is used to perform custom validation
|
|
250
|
-
* @param [transformErrors] - An optional function that is used to transform errors after AJV validation
|
|
251
|
-
* @param [uiSchema] - An optional uiSchema that is passed to `transformErrors` and `customValidate`
|
|
252
|
-
*/
|
|
253
|
-
validateFormData(formData, schema, customValidate, transformErrors, uiSchema) {
|
|
254
|
-
const rawErrors = this.rawValidation(schema, formData);
|
|
255
|
-
return processRawValidationErrors(this, rawErrors, formData, schema, customValidate, transformErrors, uiSchema);
|
|
256
|
-
}
|
|
257
|
-
/** Validates data against a schema, returning true if the data is valid, or
|
|
258
|
-
* false otherwise. If the schema is invalid, then this function will return
|
|
259
|
-
* false.
|
|
260
|
-
*
|
|
261
|
-
* @param schema - The schema against which to validate the form data
|
|
262
|
-
* @param formData - The form data to validate
|
|
263
|
-
* @param rootSchema - The root schema used to provide $ref resolutions
|
|
264
|
-
*/
|
|
265
|
-
isValid(schema, formData, rootSchema) {
|
|
266
|
-
var _a, _b;
|
|
267
|
-
const rootSchemaId = (_a = rootSchema[index_js_.ID_KEY]) !== null && _a !== void 0 ? _a : index_js_.ROOT_SCHEMA_PREFIX;
|
|
268
|
-
try {
|
|
269
|
-
// add the rootSchema ROOT_SCHEMA_PREFIX as id.
|
|
270
|
-
// then rewrite the schema ref's to point to the rootSchema
|
|
271
|
-
// this accounts for the case where schema have references to models
|
|
272
|
-
// that lives in the rootSchema but not in the schema in question.
|
|
273
|
-
// if (this.ajv.getSchema(rootSchemaId) === undefined) {
|
|
274
|
-
// TODO restore the commented out `if` above when the TODO in the `finally` is completed
|
|
275
|
-
this.ajv.addSchema(rootSchema, rootSchemaId);
|
|
276
|
-
// }
|
|
277
|
-
const schemaWithIdRefPrefix = (0,index_js_.withIdRefPrefix)(schema);
|
|
278
|
-
const schemaId = (_b = schemaWithIdRefPrefix[index_js_.ID_KEY]) !== null && _b !== void 0 ? _b : (0,index_js_.hashForSchema)(schemaWithIdRefPrefix);
|
|
279
|
-
let compiledValidator;
|
|
280
|
-
compiledValidator = this.ajv.getSchema(schemaId);
|
|
281
|
-
if (compiledValidator === undefined) {
|
|
282
|
-
// Add schema by an explicit ID so it can be fetched later
|
|
283
|
-
// Fall back to using compile if necessary
|
|
284
|
-
// https://ajv.js.org/guide/managing-schemas.html#pre-adding-all-schemas-vs-adding-on-demand
|
|
285
|
-
compiledValidator =
|
|
286
|
-
this.ajv.addSchema(schemaWithIdRefPrefix, schemaId).getSchema(schemaId) ||
|
|
287
|
-
this.ajv.compile(schemaWithIdRefPrefix);
|
|
288
|
-
}
|
|
289
|
-
const result = compiledValidator(formData);
|
|
290
|
-
return result;
|
|
291
|
-
}
|
|
292
|
-
catch (e) {
|
|
293
|
-
console.warn('Error encountered compiling schema:', e);
|
|
294
|
-
return false;
|
|
295
|
-
}
|
|
296
|
-
finally {
|
|
297
|
-
// TODO: A function should be called if the root schema changes so we don't have to remove and recompile the schema every run.
|
|
298
|
-
// make sure we remove the rootSchema from the global ajv instance
|
|
299
|
-
this.ajv.removeSchema(rootSchemaId);
|
|
300
|
-
}
|
|
301
|
-
}
|
|
302
|
-
}
|
|
303
|
-
//# sourceMappingURL=validator.js.map
|
|
304
|
-
;// CONCATENATED MODULE: ../node_modules/@rjsf/validator-ajv8/lib/customizeValidator.js
|
|
305
|
-
|
|
306
|
-
/** Creates and returns a customized implementation of the `ValidatorType` with the given customization `options` if
|
|
307
|
-
* provided. If a `localizer` is provided, it is used to translate the messages generated by the underlying AJV
|
|
308
|
-
* validation.
|
|
309
|
-
*
|
|
310
|
-
* @param [options={}] - The `CustomValidatorOptionsType` options that are used to create the `ValidatorType` instance
|
|
311
|
-
* @param [localizer] - If provided, is used to localize a list of Ajv `ErrorObject`s
|
|
312
|
-
* @returns - The custom validator implementation resulting from the set of parameters provided
|
|
313
|
-
*/
|
|
314
|
-
function customizeValidator(options = {}, localizer) {
|
|
315
|
-
return new AJV8Validator(options, localizer);
|
|
316
|
-
}
|
|
317
|
-
//# sourceMappingURL=customizeValidator.js.map
|
|
318
|
-
// EXTERNAL MODULE: ../node_modules/lodash/isEqual.js
|
|
319
|
-
var isEqual = __webpack_require__(56141);
|
|
320
|
-
var isEqual_default = /*#__PURE__*/__webpack_require__.n(isEqual);
|
|
321
|
-
;// CONCATENATED MODULE: ../node_modules/@rjsf/validator-ajv8/lib/precompiledValidator.js
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
/** `ValidatorType` implementation that uses an AJV 8 precompiled validator as created by the
|
|
327
|
-
* `compileSchemaValidators()` function provided by the `@rjsf/validator-ajv8` library.
|
|
328
|
-
*/
|
|
329
|
-
class AJV8PrecompiledValidator {
|
|
330
|
-
/** Constructs an `AJV8PrecompiledValidator` instance using the `validateFns` and `rootSchema`
|
|
331
|
-
*
|
|
332
|
-
* @param validateFns - The map of the validation functions that are generated by the `schemaCompile()` function
|
|
333
|
-
* @param rootSchema - The root schema that was used with the `compileSchema()` function
|
|
334
|
-
* @param [localizer] - If provided, is used to localize a list of Ajv `ErrorObject`s
|
|
335
|
-
* @throws - Error when the base schema of the precompiled validator does not have a matching validator function
|
|
336
|
-
*/
|
|
337
|
-
constructor(validateFns, rootSchema, localizer) {
|
|
338
|
-
this.rootSchema = rootSchema;
|
|
339
|
-
this.validateFns = validateFns;
|
|
340
|
-
this.localizer = localizer;
|
|
341
|
-
this.mainValidator = this.getValidator(rootSchema);
|
|
342
|
-
}
|
|
343
|
-
/** Returns the precompiled validator associated with the given `schema` from the map of precompiled validator
|
|
344
|
-
* functions.
|
|
345
|
-
*
|
|
346
|
-
* @param schema - The schema for which a precompiled validator function is desired
|
|
347
|
-
* @returns - The precompiled validator function associated with this schema
|
|
348
|
-
*/
|
|
349
|
-
getValidator(schema) {
|
|
350
|
-
const key = get_default()(schema, index_js_.ID_KEY) || (0,index_js_.hashForSchema)(schema);
|
|
351
|
-
const validator = this.validateFns[key];
|
|
352
|
-
if (!validator) {
|
|
353
|
-
throw new Error(`No precompiled validator function was found for the given schema for "${key}"`);
|
|
354
|
-
}
|
|
355
|
-
return validator;
|
|
356
|
-
}
|
|
357
|
-
/** Ensures that the validator is using the same schema as the root schema used to construct the precompiled
|
|
358
|
-
* validator. It first compares the given `schema` against the root schema and if they aren't the same, then it
|
|
359
|
-
* checks against the resolved root schema, on the chance that a resolved version of the root schema was passed in
|
|
360
|
-
* instead of the raw root schema.
|
|
361
|
-
*
|
|
362
|
-
* @param schema - The schema against which to validate the form data
|
|
363
|
-
* @param [formData] - The form data to validate if any
|
|
364
|
-
*/
|
|
365
|
-
ensureSameRootSchema(schema, formData) {
|
|
366
|
-
if (!isEqual_default()(schema, this.rootSchema)) {
|
|
367
|
-
// Resolve the root schema with the passed in form data since that may affect the resolution
|
|
368
|
-
const resolvedRootSchema = (0,index_js_.retrieveSchema)(this, this.rootSchema, this.rootSchema, formData);
|
|
369
|
-
if (!isEqual_default()(schema, resolvedRootSchema)) {
|
|
370
|
-
throw new Error('The schema associated with the precompiled validator differs from the rootSchema provided for validation');
|
|
371
|
-
}
|
|
372
|
-
}
|
|
373
|
-
return true;
|
|
374
|
-
}
|
|
375
|
-
/** Converts an `errorSchema` into a list of `RJSFValidationErrors`
|
|
376
|
-
*
|
|
377
|
-
* @param errorSchema - The `ErrorSchema` instance to convert
|
|
378
|
-
* @param [fieldPath=[]] - The current field path, defaults to [] if not specified
|
|
379
|
-
* @deprecated - Use the `toErrorList()` function provided by `@rjsf/utils` instead. This function will be removed in
|
|
380
|
-
* the next major release.
|
|
381
|
-
*/
|
|
382
|
-
toErrorList(errorSchema, fieldPath = []) {
|
|
383
|
-
return (0,index_js_.toErrorList)(errorSchema, fieldPath);
|
|
384
|
-
}
|
|
385
|
-
/** Runs the pure validation of the `schema` and `formData` without any of the RJSF functionality. Provided for use
|
|
386
|
-
* by the playground. Returns the `errors` from the validation
|
|
387
|
-
*
|
|
388
|
-
* @param schema - The schema against which to validate the form data
|
|
389
|
-
* @param [formData] - The form data to validate, if any
|
|
390
|
-
* @throws - Error when the schema provided does not match the base schema of the precompiled validator
|
|
391
|
-
*/
|
|
392
|
-
rawValidation(schema, formData) {
|
|
393
|
-
this.ensureSameRootSchema(schema, formData);
|
|
394
|
-
this.mainValidator(formData);
|
|
395
|
-
if (typeof this.localizer === 'function') {
|
|
396
|
-
this.localizer(this.mainValidator.errors);
|
|
397
|
-
}
|
|
398
|
-
const errors = this.mainValidator.errors || undefined;
|
|
399
|
-
// Clear errors to prevent persistent errors, see #1104
|
|
400
|
-
this.mainValidator.errors = null;
|
|
401
|
-
return { errors: errors };
|
|
402
|
-
}
|
|
403
|
-
/** This function processes the `formData` with an optional user contributed `customValidate` function, which receives
|
|
404
|
-
* the form data and a `errorHandler` function that will be used to add custom validation errors for each field. Also
|
|
405
|
-
* supports a `transformErrors` function that will take the raw AJV validation errors, prior to custom validation and
|
|
406
|
-
* transform them in what ever way it chooses.
|
|
407
|
-
*
|
|
408
|
-
* @param formData - The form data to validate
|
|
409
|
-
* @param schema - The schema against which to validate the form data
|
|
410
|
-
* @param [customValidate] - An optional function that is used to perform custom validation
|
|
411
|
-
* @param [transformErrors] - An optional function that is used to transform errors after AJV validation
|
|
412
|
-
* @param [uiSchema] - An optional uiSchema that is passed to `transformErrors` and `customValidate`
|
|
413
|
-
*/
|
|
414
|
-
validateFormData(formData, schema, customValidate, transformErrors, uiSchema) {
|
|
415
|
-
const rawErrors = this.rawValidation(schema, formData);
|
|
416
|
-
return processRawValidationErrors(this, rawErrors, formData, schema, customValidate, transformErrors, uiSchema);
|
|
417
|
-
}
|
|
418
|
-
/** Validates data against a schema, returning true if the data is valid, or false otherwise. If the schema is
|
|
419
|
-
* invalid, then this function will return false.
|
|
420
|
-
*
|
|
421
|
-
* @param schema - The schema against which to validate the form data
|
|
422
|
-
* @param formData - The form data to validate
|
|
423
|
-
* @param rootSchema - The root schema used to provide $ref resolutions
|
|
424
|
-
* @returns - true if the formData validates against the schema, false otherwise
|
|
425
|
-
* @throws - Error when the schema provided does not match the base schema of the precompiled validator OR if there
|
|
426
|
-
* isn't a precompiled validator function associated with the schema
|
|
427
|
-
*/
|
|
428
|
-
isValid(schema, formData, rootSchema) {
|
|
429
|
-
this.ensureSameRootSchema(rootSchema, formData);
|
|
430
|
-
if (get_default()(schema, index_js_.ID_KEY) === index_js_.JUNK_OPTION_ID) {
|
|
431
|
-
return false;
|
|
432
|
-
}
|
|
433
|
-
const validator = this.getValidator(schema);
|
|
434
|
-
return validator(formData);
|
|
435
|
-
}
|
|
436
|
-
}
|
|
437
|
-
//# sourceMappingURL=precompiledValidator.js.map
|
|
438
|
-
;// CONCATENATED MODULE: ../node_modules/@rjsf/validator-ajv8/lib/createPrecompiledValidator.js
|
|
439
|
-
|
|
440
|
-
/** Creates and returns a `ValidatorType` interface that is implemented with a precompiled validator. If a `localizer`
|
|
441
|
-
* is provided, it is used to translate the messages generated by the underlying AJV validation.
|
|
442
|
-
*
|
|
443
|
-
* NOTE: The `validateFns` parameter is an object obtained by importing from a precompiled validation file created via
|
|
444
|
-
* the `compileSchemaValidators()` function.
|
|
445
|
-
*
|
|
446
|
-
* @param validateFns - The map of the validation functions that are created by the `compileSchemaValidators()` function
|
|
447
|
-
* @param rootSchema - The root schema that was used with the `compileSchemaValidators()` function
|
|
448
|
-
* @param [localizer] - If provided, is used to localize a list of Ajv `ErrorObject`s
|
|
449
|
-
* @returns - The precompiled validator implementation resulting from the set of parameters provided
|
|
450
|
-
*/
|
|
451
|
-
function createPrecompiledValidator(validateFns, rootSchema, localizer) {
|
|
452
|
-
return new AJV8PrecompiledValidator(validateFns, rootSchema, localizer);
|
|
453
|
-
}
|
|
454
|
-
//# sourceMappingURL=createPrecompiledValidator.js.map
|
|
455
|
-
;// CONCATENATED MODULE: ../node_modules/@rjsf/validator-ajv8/lib/index.js
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
/* harmony default export */ const lib = (customizeValidator());
|
|
461
|
-
//# sourceMappingURL=index.js.map
|
|
462
|
-
|
|
463
|
-
/***/ }),
|
|
464
|
-
|
|
465
|
-
/***/ 67796:
|
|
466
|
-
/***/ ((__unused_webpack_module, exports) => {
|
|
467
|
-
|
|
468
|
-
"use strict";
|
|
469
|
-
|
|
470
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
471
|
-
exports.formatNames = exports.fastFormats = exports.fullFormats = void 0;
|
|
472
|
-
function fmtDef(validate, compare) {
|
|
473
|
-
return { validate, compare };
|
|
474
|
-
}
|
|
475
|
-
exports.fullFormats = {
|
|
476
|
-
// date: http://tools.ietf.org/html/rfc3339#section-5.6
|
|
477
|
-
date: fmtDef(date, compareDate),
|
|
478
|
-
// date-time: http://tools.ietf.org/html/rfc3339#section-5.6
|
|
479
|
-
time: fmtDef(time, compareTime),
|
|
480
|
-
"date-time": fmtDef(date_time, compareDateTime),
|
|
481
|
-
// duration: https://tools.ietf.org/html/rfc3339#appendix-A
|
|
482
|
-
duration: /^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,
|
|
483
|
-
uri,
|
|
484
|
-
"uri-reference": /^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,
|
|
485
|
-
// uri-template: https://tools.ietf.org/html/rfc6570
|
|
486
|
-
"uri-template": /^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,
|
|
487
|
-
// For the source: https://gist.github.com/dperini/729294
|
|
488
|
-
// For test cases: https://mathiasbynens.be/demo/url-regex
|
|
489
|
-
url: /^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,
|
|
490
|
-
email: /^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,
|
|
491
|
-
hostname: /^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,
|
|
492
|
-
// optimized https://www.safaribooksonline.com/library/view/regular-expressions-cookbook/9780596802837/ch07s16.html
|
|
493
|
-
ipv4: /^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,
|
|
494
|
-
ipv6: /^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,
|
|
495
|
-
regex,
|
|
496
|
-
// uuid: http://tools.ietf.org/html/rfc4122
|
|
497
|
-
uuid: /^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,
|
|
498
|
-
// JSON-pointer: https://tools.ietf.org/html/rfc6901
|
|
499
|
-
// uri fragment: https://tools.ietf.org/html/rfc3986#appendix-A
|
|
500
|
-
"json-pointer": /^(?:\/(?:[^~/]|~0|~1)*)*$/,
|
|
501
|
-
"json-pointer-uri-fragment": /^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,
|
|
502
|
-
// relative JSON-pointer: http://tools.ietf.org/html/draft-luff-relative-json-pointer-00
|
|
503
|
-
"relative-json-pointer": /^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,
|
|
504
|
-
// the following formats are used by the openapi specification: https://spec.openapis.org/oas/v3.0.0#data-types
|
|
505
|
-
// byte: https://github.com/miguelmota/is-base64
|
|
506
|
-
byte,
|
|
507
|
-
// signed 32 bit integer
|
|
508
|
-
int32: { type: "number", validate: validateInt32 },
|
|
509
|
-
// signed 64 bit integer
|
|
510
|
-
int64: { type: "number", validate: validateInt64 },
|
|
511
|
-
// C-type float
|
|
512
|
-
float: { type: "number", validate: validateNumber },
|
|
513
|
-
// C-type double
|
|
514
|
-
double: { type: "number", validate: validateNumber },
|
|
515
|
-
// hint to the UI to hide input strings
|
|
516
|
-
password: true,
|
|
517
|
-
// unchecked string payload
|
|
518
|
-
binary: true,
|
|
519
|
-
};
|
|
520
|
-
exports.fastFormats = {
|
|
521
|
-
...exports.fullFormats,
|
|
522
|
-
date: fmtDef(/^\d\d\d\d-[0-1]\d-[0-3]\d$/, compareDate),
|
|
523
|
-
time: fmtDef(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i, compareTime),
|
|
524
|
-
"date-time": fmtDef(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i, compareDateTime),
|
|
525
|
-
// uri: https://github.com/mafintosh/is-my-json-valid/blob/master/formats.js
|
|
526
|
-
uri: /^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,
|
|
527
|
-
"uri-reference": /^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,
|
|
528
|
-
// email (sources from jsen validator):
|
|
529
|
-
// http://stackoverflow.com/questions/201323/using-a-regular-expression-to-validate-an-email-address#answer-8829363
|
|
530
|
-
// http://www.w3.org/TR/html5/forms.html#valid-e-mail-address (search for 'wilful violation')
|
|
531
|
-
email: /^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,
|
|
532
|
-
};
|
|
533
|
-
exports.formatNames = Object.keys(exports.fullFormats);
|
|
534
|
-
function isLeapYear(year) {
|
|
535
|
-
// https://tools.ietf.org/html/rfc3339#appendix-C
|
|
536
|
-
return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0);
|
|
537
|
-
}
|
|
538
|
-
const DATE = /^(\d\d\d\d)-(\d\d)-(\d\d)$/;
|
|
539
|
-
const DAYS = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
540
|
-
function date(str) {
|
|
541
|
-
// full-date from http://tools.ietf.org/html/rfc3339#section-5.6
|
|
542
|
-
const matches = DATE.exec(str);
|
|
543
|
-
if (!matches)
|
|
544
|
-
return false;
|
|
545
|
-
const year = +matches[1];
|
|
546
|
-
const month = +matches[2];
|
|
547
|
-
const day = +matches[3];
|
|
548
|
-
return (month >= 1 &&
|
|
549
|
-
month <= 12 &&
|
|
550
|
-
day >= 1 &&
|
|
551
|
-
day <= (month === 2 && isLeapYear(year) ? 29 : DAYS[month]));
|
|
552
|
-
}
|
|
553
|
-
function compareDate(d1, d2) {
|
|
554
|
-
if (!(d1 && d2))
|
|
555
|
-
return undefined;
|
|
556
|
-
if (d1 > d2)
|
|
557
|
-
return 1;
|
|
558
|
-
if (d1 < d2)
|
|
559
|
-
return -1;
|
|
560
|
-
return 0;
|
|
561
|
-
}
|
|
562
|
-
const TIME = /^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;
|
|
563
|
-
function time(str, withTimeZone) {
|
|
564
|
-
const matches = TIME.exec(str);
|
|
565
|
-
if (!matches)
|
|
566
|
-
return false;
|
|
567
|
-
const hour = +matches[1];
|
|
568
|
-
const minute = +matches[2];
|
|
569
|
-
const second = +matches[3];
|
|
570
|
-
const timeZone = matches[5];
|
|
571
|
-
return (((hour <= 23 && minute <= 59 && second <= 59) ||
|
|
572
|
-
(hour === 23 && minute === 59 && second === 60)) &&
|
|
573
|
-
(!withTimeZone || timeZone !== ""));
|
|
574
|
-
}
|
|
575
|
-
function compareTime(t1, t2) {
|
|
576
|
-
if (!(t1 && t2))
|
|
577
|
-
return undefined;
|
|
578
|
-
const a1 = TIME.exec(t1);
|
|
579
|
-
const a2 = TIME.exec(t2);
|
|
580
|
-
if (!(a1 && a2))
|
|
581
|
-
return undefined;
|
|
582
|
-
t1 = a1[1] + a1[2] + a1[3] + (a1[4] || "");
|
|
583
|
-
t2 = a2[1] + a2[2] + a2[3] + (a2[4] || "");
|
|
584
|
-
if (t1 > t2)
|
|
585
|
-
return 1;
|
|
586
|
-
if (t1 < t2)
|
|
587
|
-
return -1;
|
|
588
|
-
return 0;
|
|
589
|
-
}
|
|
590
|
-
const DATE_TIME_SEPARATOR = /t|\s/i;
|
|
591
|
-
function date_time(str) {
|
|
592
|
-
// http://tools.ietf.org/html/rfc3339#section-5.6
|
|
593
|
-
const dateTime = str.split(DATE_TIME_SEPARATOR);
|
|
594
|
-
return dateTime.length === 2 && date(dateTime[0]) && time(dateTime[1], true);
|
|
595
|
-
}
|
|
596
|
-
function compareDateTime(dt1, dt2) {
|
|
597
|
-
if (!(dt1 && dt2))
|
|
598
|
-
return undefined;
|
|
599
|
-
const [d1, t1] = dt1.split(DATE_TIME_SEPARATOR);
|
|
600
|
-
const [d2, t2] = dt2.split(DATE_TIME_SEPARATOR);
|
|
601
|
-
const res = compareDate(d1, d2);
|
|
602
|
-
if (res === undefined)
|
|
603
|
-
return undefined;
|
|
604
|
-
return res || compareTime(t1, t2);
|
|
605
|
-
}
|
|
606
|
-
const NOT_URI_FRAGMENT = /\/|:/;
|
|
607
|
-
const URI = /^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;
|
|
608
|
-
function uri(str) {
|
|
609
|
-
// http://jmrware.com/articles/2009/uri_regexp/URI_regex.html + optional protocol + required "."
|
|
610
|
-
return NOT_URI_FRAGMENT.test(str) && URI.test(str);
|
|
611
|
-
}
|
|
612
|
-
const BYTE = /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;
|
|
613
|
-
function byte(str) {
|
|
614
|
-
BYTE.lastIndex = 0;
|
|
615
|
-
return BYTE.test(str);
|
|
616
|
-
}
|
|
617
|
-
const MIN_INT32 = -(2 ** 31);
|
|
618
|
-
const MAX_INT32 = 2 ** 31 - 1;
|
|
619
|
-
function validateInt32(value) {
|
|
620
|
-
return Number.isInteger(value) && value <= MAX_INT32 && value >= MIN_INT32;
|
|
621
|
-
}
|
|
622
|
-
function validateInt64(value) {
|
|
623
|
-
// JSON and javascript max Int is 2**53, so any int that passes isInteger is valid for Int64
|
|
624
|
-
return Number.isInteger(value);
|
|
625
|
-
}
|
|
626
|
-
function validateNumber() {
|
|
627
|
-
return true;
|
|
628
|
-
}
|
|
629
|
-
const Z_ANCHOR = /[^\\]\\Z/;
|
|
630
|
-
function regex(str) {
|
|
631
|
-
if (Z_ANCHOR.test(str))
|
|
632
|
-
return false;
|
|
633
|
-
try {
|
|
634
|
-
new RegExp(str);
|
|
635
|
-
return true;
|
|
636
|
-
}
|
|
637
|
-
catch (e) {
|
|
638
|
-
return false;
|
|
639
|
-
}
|
|
640
|
-
}
|
|
641
|
-
//# sourceMappingURL=formats.js.map
|
|
642
|
-
|
|
643
|
-
/***/ }),
|
|
644
|
-
|
|
645
|
-
/***/ 58218:
|
|
646
|
-
/***/ ((module, exports, __webpack_require__) => {
|
|
647
|
-
|
|
648
|
-
"use strict";
|
|
649
|
-
|
|
650
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
651
|
-
const formats_1 = __webpack_require__(67796);
|
|
652
|
-
const limit_1 = __webpack_require__(60891);
|
|
653
|
-
const codegen_1 = __webpack_require__(17231);
|
|
654
|
-
const fullName = new codegen_1.Name("fullFormats");
|
|
655
|
-
const fastName = new codegen_1.Name("fastFormats");
|
|
656
|
-
const formatsPlugin = (ajv, opts = { keywords: true }) => {
|
|
657
|
-
if (Array.isArray(opts)) {
|
|
658
|
-
addFormats(ajv, opts, formats_1.fullFormats, fullName);
|
|
659
|
-
return ajv;
|
|
660
|
-
}
|
|
661
|
-
const [formats, exportName] = opts.mode === "fast" ? [formats_1.fastFormats, fastName] : [formats_1.fullFormats, fullName];
|
|
662
|
-
const list = opts.formats || formats_1.formatNames;
|
|
663
|
-
addFormats(ajv, list, formats, exportName);
|
|
664
|
-
if (opts.keywords)
|
|
665
|
-
limit_1.default(ajv);
|
|
666
|
-
return ajv;
|
|
667
|
-
};
|
|
668
|
-
formatsPlugin.get = (name, mode = "full") => {
|
|
669
|
-
const formats = mode === "fast" ? formats_1.fastFormats : formats_1.fullFormats;
|
|
670
|
-
const f = formats[name];
|
|
671
|
-
if (!f)
|
|
672
|
-
throw new Error(`Unknown format "${name}"`);
|
|
673
|
-
return f;
|
|
674
|
-
};
|
|
675
|
-
function addFormats(ajv, list, fs, exportName) {
|
|
676
|
-
var _a;
|
|
677
|
-
var _b;
|
|
678
|
-
(_a = (_b = ajv.opts.code).formats) !== null && _a !== void 0 ? _a : (_b.formats = codegen_1._ `require("ajv-formats/dist/formats").${exportName}`);
|
|
679
|
-
for (const f of list)
|
|
680
|
-
ajv.addFormat(f, fs[f]);
|
|
681
|
-
}
|
|
682
|
-
module.exports = exports = formatsPlugin;
|
|
683
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
684
|
-
exports["default"] = formatsPlugin;
|
|
685
|
-
//# sourceMappingURL=index.js.map
|
|
686
|
-
|
|
687
|
-
/***/ }),
|
|
688
|
-
|
|
689
|
-
/***/ 60891:
|
|
690
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
691
|
-
|
|
692
1
|
"use strict";
|
|
2
|
+
(self["webpackChunk_JUPYTERLAB_CORE_OUTPUT"] = self["webpackChunk_JUPYTERLAB_CORE_OUTPUT"] || []).push([[6236],{
|
|
693
3
|
|
|
694
|
-
|
|
695
|
-
exports.formatLimitDefinition = void 0;
|
|
696
|
-
const ajv_1 = __webpack_require__(20151);
|
|
697
|
-
const codegen_1 = __webpack_require__(17231);
|
|
698
|
-
const ops = codegen_1.operators;
|
|
699
|
-
const KWDs = {
|
|
700
|
-
formatMaximum: { okStr: "<=", ok: ops.LTE, fail: ops.GT },
|
|
701
|
-
formatMinimum: { okStr: ">=", ok: ops.GTE, fail: ops.LT },
|
|
702
|
-
formatExclusiveMaximum: { okStr: "<", ok: ops.LT, fail: ops.GTE },
|
|
703
|
-
formatExclusiveMinimum: { okStr: ">", ok: ops.GT, fail: ops.LTE },
|
|
704
|
-
};
|
|
705
|
-
const error = {
|
|
706
|
-
message: ({ keyword, schemaCode }) => codegen_1.str `should be ${KWDs[keyword].okStr} ${schemaCode}`,
|
|
707
|
-
params: ({ keyword, schemaCode }) => codegen_1._ `{comparison: ${KWDs[keyword].okStr}, limit: ${schemaCode}}`,
|
|
708
|
-
};
|
|
709
|
-
exports.formatLimitDefinition = {
|
|
710
|
-
keyword: Object.keys(KWDs),
|
|
711
|
-
type: "string",
|
|
712
|
-
schemaType: "string",
|
|
713
|
-
$data: true,
|
|
714
|
-
error,
|
|
715
|
-
code(cxt) {
|
|
716
|
-
const { gen, data, schemaCode, keyword, it } = cxt;
|
|
717
|
-
const { opts, self } = it;
|
|
718
|
-
if (!opts.validateFormats)
|
|
719
|
-
return;
|
|
720
|
-
const fCxt = new ajv_1.KeywordCxt(it, self.RULES.all.format.definition, "format");
|
|
721
|
-
if (fCxt.$data)
|
|
722
|
-
validate$DataFormat();
|
|
723
|
-
else
|
|
724
|
-
validateFormat();
|
|
725
|
-
function validate$DataFormat() {
|
|
726
|
-
const fmts = gen.scopeValue("formats", {
|
|
727
|
-
ref: self.formats,
|
|
728
|
-
code: opts.code.formats,
|
|
729
|
-
});
|
|
730
|
-
const fmt = gen.const("fmt", codegen_1._ `${fmts}[${fCxt.schemaCode}]`);
|
|
731
|
-
cxt.fail$data(codegen_1.or(codegen_1._ `typeof ${fmt} != "object"`, codegen_1._ `${fmt} instanceof RegExp`, codegen_1._ `typeof ${fmt}.compare != "function"`, compareCode(fmt)));
|
|
732
|
-
}
|
|
733
|
-
function validateFormat() {
|
|
734
|
-
const format = fCxt.schema;
|
|
735
|
-
const fmtDef = self.formats[format];
|
|
736
|
-
if (!fmtDef || fmtDef === true)
|
|
737
|
-
return;
|
|
738
|
-
if (typeof fmtDef != "object" ||
|
|
739
|
-
fmtDef instanceof RegExp ||
|
|
740
|
-
typeof fmtDef.compare != "function") {
|
|
741
|
-
throw new Error(`"${keyword}": format "${format}" does not define "compare" function`);
|
|
742
|
-
}
|
|
743
|
-
const fmt = gen.scopeValue("formats", {
|
|
744
|
-
key: format,
|
|
745
|
-
ref: fmtDef,
|
|
746
|
-
code: opts.code.formats ? codegen_1._ `${opts.code.formats}${codegen_1.getProperty(format)}` : undefined,
|
|
747
|
-
});
|
|
748
|
-
cxt.fail$data(compareCode(fmt));
|
|
749
|
-
}
|
|
750
|
-
function compareCode(fmt) {
|
|
751
|
-
return codegen_1._ `${fmt}.compare(${data}, ${schemaCode}) ${KWDs[keyword].fail} 0`;
|
|
752
|
-
}
|
|
753
|
-
},
|
|
754
|
-
dependencies: ["format"],
|
|
755
|
-
};
|
|
756
|
-
const formatLimitPlugin = (ajv) => {
|
|
757
|
-
ajv.addKeyword(exports.formatLimitDefinition);
|
|
758
|
-
return ajv;
|
|
759
|
-
};
|
|
760
|
-
exports["default"] = formatLimitPlugin;
|
|
761
|
-
//# sourceMappingURL=limit.js.map
|
|
762
|
-
|
|
763
|
-
/***/ }),
|
|
764
|
-
|
|
765
|
-
/***/ 20151:
|
|
4
|
+
/***/ 86236:
|
|
766
5
|
/***/ ((module, exports, __webpack_require__) => {
|
|
767
6
|
|
|
768
|
-
"use strict";
|
|
769
7
|
|
|
770
8
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
771
9
|
exports.MissingRefError = exports.ValidationError = exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = exports.Ajv = void 0;
|
|
772
|
-
const core_1 = __webpack_require__(
|
|
773
|
-
const draft7_1 = __webpack_require__(
|
|
774
|
-
const discriminator_1 = __webpack_require__(
|
|
775
|
-
const draft7MetaSchema = __webpack_require__(
|
|
10
|
+
const core_1 = __webpack_require__(38355);
|
|
11
|
+
const draft7_1 = __webpack_require__(35671);
|
|
12
|
+
const discriminator_1 = __webpack_require__(30002);
|
|
13
|
+
const draft7MetaSchema = __webpack_require__(31512);
|
|
776
14
|
const META_SUPPORT_DATA = ["/properties"];
|
|
777
15
|
const META_SCHEMA_ID = "http://json-schema.org/draft-07/schema";
|
|
778
16
|
class Ajv extends core_1.default {
|
|
@@ -802,27 +40,26 @@ module.exports = exports = Ajv;
|
|
|
802
40
|
module.exports.Ajv = Ajv;
|
|
803
41
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
804
42
|
exports["default"] = Ajv;
|
|
805
|
-
var validate_1 = __webpack_require__(
|
|
43
|
+
var validate_1 = __webpack_require__(91686);
|
|
806
44
|
Object.defineProperty(exports, "KeywordCxt", ({ enumerable: true, get: function () { return validate_1.KeywordCxt; } }));
|
|
807
|
-
var codegen_1 = __webpack_require__(
|
|
45
|
+
var codegen_1 = __webpack_require__(15669);
|
|
808
46
|
Object.defineProperty(exports, "_", ({ enumerable: true, get: function () { return codegen_1._; } }));
|
|
809
47
|
Object.defineProperty(exports, "str", ({ enumerable: true, get: function () { return codegen_1.str; } }));
|
|
810
48
|
Object.defineProperty(exports, "stringify", ({ enumerable: true, get: function () { return codegen_1.stringify; } }));
|
|
811
49
|
Object.defineProperty(exports, "nil", ({ enumerable: true, get: function () { return codegen_1.nil; } }));
|
|
812
50
|
Object.defineProperty(exports, "Name", ({ enumerable: true, get: function () { return codegen_1.Name; } }));
|
|
813
51
|
Object.defineProperty(exports, "CodeGen", ({ enumerable: true, get: function () { return codegen_1.CodeGen; } }));
|
|
814
|
-
var validation_error_1 = __webpack_require__(
|
|
52
|
+
var validation_error_1 = __webpack_require__(46448);
|
|
815
53
|
Object.defineProperty(exports, "ValidationError", ({ enumerable: true, get: function () { return validation_error_1.default; } }));
|
|
816
|
-
var ref_error_1 = __webpack_require__(
|
|
54
|
+
var ref_error_1 = __webpack_require__(91578);
|
|
817
55
|
Object.defineProperty(exports, "MissingRefError", ({ enumerable: true, get: function () { return ref_error_1.default; } }));
|
|
818
56
|
//# sourceMappingURL=ajv.js.map
|
|
819
57
|
|
|
820
58
|
/***/ }),
|
|
821
59
|
|
|
822
|
-
/***/
|
|
60
|
+
/***/ 66545:
|
|
823
61
|
/***/ ((__unused_webpack_module, exports) => {
|
|
824
62
|
|
|
825
|
-
"use strict";
|
|
826
63
|
|
|
827
64
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
828
65
|
exports.regexpCode = exports.getEsmExportName = exports.getProperty = exports.safeStringify = exports.stringify = exports.strConcat = exports.addCodeArg = exports.str = exports._ = exports.nil = exports._Code = exports.Name = exports.IDENTIFIER = exports._CodeOrName = void 0;
|
|
@@ -982,16 +219,15 @@ exports.regexpCode = regexpCode;
|
|
|
982
219
|
|
|
983
220
|
/***/ }),
|
|
984
221
|
|
|
985
|
-
/***/
|
|
222
|
+
/***/ 15669:
|
|
986
223
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
987
224
|
|
|
988
|
-
"use strict";
|
|
989
225
|
|
|
990
226
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
991
227
|
exports.or = exports.and = exports.not = exports.CodeGen = exports.operators = exports.varKinds = exports.ValueScopeName = exports.ValueScope = exports.Scope = exports.Name = exports.regexpCode = exports.stringify = exports.getProperty = exports.nil = exports.strConcat = exports.str = exports._ = void 0;
|
|
992
|
-
const code_1 = __webpack_require__(
|
|
993
|
-
const scope_1 = __webpack_require__(
|
|
994
|
-
var code_2 = __webpack_require__(
|
|
228
|
+
const code_1 = __webpack_require__(66545);
|
|
229
|
+
const scope_1 = __webpack_require__(59187);
|
|
230
|
+
var code_2 = __webpack_require__(66545);
|
|
995
231
|
Object.defineProperty(exports, "_", ({ enumerable: true, get: function () { return code_2._; } }));
|
|
996
232
|
Object.defineProperty(exports, "str", ({ enumerable: true, get: function () { return code_2.str; } }));
|
|
997
233
|
Object.defineProperty(exports, "strConcat", ({ enumerable: true, get: function () { return code_2.strConcat; } }));
|
|
@@ -1000,7 +236,7 @@ Object.defineProperty(exports, "getProperty", ({ enumerable: true, get: function
|
|
|
1000
236
|
Object.defineProperty(exports, "stringify", ({ enumerable: true, get: function () { return code_2.stringify; } }));
|
|
1001
237
|
Object.defineProperty(exports, "regexpCode", ({ enumerable: true, get: function () { return code_2.regexpCode; } }));
|
|
1002
238
|
Object.defineProperty(exports, "Name", ({ enumerable: true, get: function () { return code_2.Name; } }));
|
|
1003
|
-
var scope_2 = __webpack_require__(
|
|
239
|
+
var scope_2 = __webpack_require__(59187);
|
|
1004
240
|
Object.defineProperty(exports, "Scope", ({ enumerable: true, get: function () { return scope_2.Scope; } }));
|
|
1005
241
|
Object.defineProperty(exports, "ValueScope", ({ enumerable: true, get: function () { return scope_2.ValueScope; } }));
|
|
1006
242
|
Object.defineProperty(exports, "ValueScopeName", ({ enumerable: true, get: function () { return scope_2.ValueScopeName; } }));
|
|
@@ -1686,14 +922,13 @@ function par(x) {
|
|
|
1686
922
|
|
|
1687
923
|
/***/ }),
|
|
1688
924
|
|
|
1689
|
-
/***/
|
|
925
|
+
/***/ 59187:
|
|
1690
926
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
1691
927
|
|
|
1692
|
-
"use strict";
|
|
1693
928
|
|
|
1694
929
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1695
930
|
exports.ValueScope = exports.ValueScopeName = exports.Scope = exports.varKinds = exports.UsedValueState = void 0;
|
|
1696
|
-
const code_1 = __webpack_require__(
|
|
931
|
+
const code_1 = __webpack_require__(66545);
|
|
1697
932
|
class ValueError extends Error {
|
|
1698
933
|
constructor(name) {
|
|
1699
934
|
super(`CodeGen: "code" for ${name} not defined`);
|
|
@@ -1836,16 +1071,15 @@ exports.ValueScope = ValueScope;
|
|
|
1836
1071
|
|
|
1837
1072
|
/***/ }),
|
|
1838
1073
|
|
|
1839
|
-
/***/
|
|
1074
|
+
/***/ 6930:
|
|
1840
1075
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
1841
1076
|
|
|
1842
|
-
"use strict";
|
|
1843
1077
|
|
|
1844
1078
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1845
1079
|
exports.extendErrors = exports.resetErrorsCount = exports.reportExtraError = exports.reportError = exports.keyword$DataError = exports.keywordError = void 0;
|
|
1846
|
-
const codegen_1 = __webpack_require__(
|
|
1847
|
-
const util_1 = __webpack_require__(
|
|
1848
|
-
const names_1 = __webpack_require__(
|
|
1080
|
+
const codegen_1 = __webpack_require__(15669);
|
|
1081
|
+
const util_1 = __webpack_require__(88936);
|
|
1082
|
+
const names_1 = __webpack_require__(17250);
|
|
1849
1083
|
exports.keywordError = {
|
|
1850
1084
|
message: ({ keyword }) => (0, codegen_1.str) `must pass "${keyword}" keyword validation`,
|
|
1851
1085
|
};
|
|
@@ -1966,19 +1200,18 @@ function extraErrorProps(cxt, { params, message }, keyValues) {
|
|
|
1966
1200
|
|
|
1967
1201
|
/***/ }),
|
|
1968
1202
|
|
|
1969
|
-
/***/
|
|
1203
|
+
/***/ 87382:
|
|
1970
1204
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
1971
1205
|
|
|
1972
|
-
"use strict";
|
|
1973
1206
|
|
|
1974
1207
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1975
1208
|
exports.resolveSchema = exports.getCompilingSchema = exports.resolveRef = exports.compileSchema = exports.SchemaEnv = void 0;
|
|
1976
|
-
const codegen_1 = __webpack_require__(
|
|
1977
|
-
const validation_error_1 = __webpack_require__(
|
|
1978
|
-
const names_1 = __webpack_require__(
|
|
1979
|
-
const resolve_1 = __webpack_require__(
|
|
1980
|
-
const util_1 = __webpack_require__(
|
|
1981
|
-
const validate_1 = __webpack_require__(
|
|
1209
|
+
const codegen_1 = __webpack_require__(15669);
|
|
1210
|
+
const validation_error_1 = __webpack_require__(46448);
|
|
1211
|
+
const names_1 = __webpack_require__(17250);
|
|
1212
|
+
const resolve_1 = __webpack_require__(96696);
|
|
1213
|
+
const util_1 = __webpack_require__(88936);
|
|
1214
|
+
const validate_1 = __webpack_require__(91686);
|
|
1982
1215
|
class SchemaEnv {
|
|
1983
1216
|
constructor(env) {
|
|
1984
1217
|
var _a;
|
|
@@ -2215,13 +1448,12 @@ function getJsonPointer(parsedRef, { baseId, schema, root }) {
|
|
|
2215
1448
|
|
|
2216
1449
|
/***/ }),
|
|
2217
1450
|
|
|
2218
|
-
/***/
|
|
1451
|
+
/***/ 17250:
|
|
2219
1452
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
2220
1453
|
|
|
2221
|
-
"use strict";
|
|
2222
1454
|
|
|
2223
1455
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
2224
|
-
const codegen_1 = __webpack_require__(
|
|
1456
|
+
const codegen_1 = __webpack_require__(15669);
|
|
2225
1457
|
const names = {
|
|
2226
1458
|
// validation function arguments
|
|
2227
1459
|
data: new codegen_1.Name("data"), // data passed to validation function
|
|
@@ -2250,13 +1482,12 @@ exports["default"] = names;
|
|
|
2250
1482
|
|
|
2251
1483
|
/***/ }),
|
|
2252
1484
|
|
|
2253
|
-
/***/
|
|
1485
|
+
/***/ 91578:
|
|
2254
1486
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
2255
1487
|
|
|
2256
|
-
"use strict";
|
|
2257
1488
|
|
|
2258
1489
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
2259
|
-
const resolve_1 = __webpack_require__(
|
|
1490
|
+
const resolve_1 = __webpack_require__(96696);
|
|
2260
1491
|
class MissingRefError extends Error {
|
|
2261
1492
|
constructor(resolver, baseId, ref, msg) {
|
|
2262
1493
|
super(msg || `can't resolve reference ${ref} from id ${baseId}`);
|
|
@@ -2269,14 +1500,13 @@ exports["default"] = MissingRefError;
|
|
|
2269
1500
|
|
|
2270
1501
|
/***/ }),
|
|
2271
1502
|
|
|
2272
|
-
/***/
|
|
1503
|
+
/***/ 96696:
|
|
2273
1504
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
2274
1505
|
|
|
2275
|
-
"use strict";
|
|
2276
1506
|
|
|
2277
1507
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
2278
1508
|
exports.getSchemaRefs = exports.resolveUrl = exports.normalizeId = exports._getFullPath = exports.getFullPath = exports.inlineRef = void 0;
|
|
2279
|
-
const util_1 = __webpack_require__(
|
|
1509
|
+
const util_1 = __webpack_require__(88936);
|
|
2280
1510
|
const equal = __webpack_require__(66471);
|
|
2281
1511
|
const traverse = __webpack_require__(25127);
|
|
2282
1512
|
// TODO refactor to use keyword definitions
|
|
@@ -2431,10 +1661,9 @@ exports.getSchemaRefs = getSchemaRefs;
|
|
|
2431
1661
|
|
|
2432
1662
|
/***/ }),
|
|
2433
1663
|
|
|
2434
|
-
/***/
|
|
1664
|
+
/***/ 82881:
|
|
2435
1665
|
/***/ ((__unused_webpack_module, exports) => {
|
|
2436
1666
|
|
|
2437
|
-
"use strict";
|
|
2438
1667
|
|
|
2439
1668
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
2440
1669
|
exports.getRules = exports.isJSONType = void 0;
|
|
@@ -2464,15 +1693,14 @@ exports.getRules = getRules;
|
|
|
2464
1693
|
|
|
2465
1694
|
/***/ }),
|
|
2466
1695
|
|
|
2467
|
-
/***/
|
|
1696
|
+
/***/ 88936:
|
|
2468
1697
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
2469
1698
|
|
|
2470
|
-
"use strict";
|
|
2471
1699
|
|
|
2472
1700
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
2473
1701
|
exports.checkStrictMode = exports.getErrorPath = exports.Type = exports.useFunc = exports.setEvaluated = exports.evaluatedPropsToName = exports.mergeEvaluated = exports.eachItem = exports.unescapeJsonPointer = exports.escapeJsonPointer = exports.escapeFragment = exports.unescapeFragment = exports.schemaRefOrVal = exports.schemaHasRulesButRef = exports.schemaHasRules = exports.checkUnknownRules = exports.alwaysValidSchema = exports.toHash = void 0;
|
|
2474
|
-
const codegen_1 = __webpack_require__(
|
|
2475
|
-
const code_1 = __webpack_require__(
|
|
1702
|
+
const codegen_1 = __webpack_require__(15669);
|
|
1703
|
+
const code_1 = __webpack_require__(66545);
|
|
2476
1704
|
// TODO refactor to use Set
|
|
2477
1705
|
function toHash(arr) {
|
|
2478
1706
|
const hash = {};
|
|
@@ -2649,10 +1877,9 @@ exports.checkStrictMode = checkStrictMode;
|
|
|
2649
1877
|
|
|
2650
1878
|
/***/ }),
|
|
2651
1879
|
|
|
2652
|
-
/***/
|
|
1880
|
+
/***/ 89073:
|
|
2653
1881
|
/***/ ((__unused_webpack_module, exports) => {
|
|
2654
1882
|
|
|
2655
|
-
"use strict";
|
|
2656
1883
|
|
|
2657
1884
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
2658
1885
|
exports.shouldUseRule = exports.shouldUseGroup = exports.schemaHasRulesForType = void 0;
|
|
@@ -2675,16 +1902,15 @@ exports.shouldUseRule = shouldUseRule;
|
|
|
2675
1902
|
|
|
2676
1903
|
/***/ }),
|
|
2677
1904
|
|
|
2678
|
-
/***/
|
|
1905
|
+
/***/ 12171:
|
|
2679
1906
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
2680
1907
|
|
|
2681
|
-
"use strict";
|
|
2682
1908
|
|
|
2683
1909
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
2684
1910
|
exports.boolOrEmptySchema = exports.topBoolOrEmptySchema = void 0;
|
|
2685
|
-
const errors_1 = __webpack_require__(
|
|
2686
|
-
const codegen_1 = __webpack_require__(
|
|
2687
|
-
const names_1 = __webpack_require__(
|
|
1911
|
+
const errors_1 = __webpack_require__(6930);
|
|
1912
|
+
const codegen_1 = __webpack_require__(15669);
|
|
1913
|
+
const names_1 = __webpack_require__(17250);
|
|
2688
1914
|
const boolError = {
|
|
2689
1915
|
message: "boolean schema is false",
|
|
2690
1916
|
};
|
|
@@ -2732,18 +1958,17 @@ function falseSchemaError(it, overrideAllErrors) {
|
|
|
2732
1958
|
|
|
2733
1959
|
/***/ }),
|
|
2734
1960
|
|
|
2735
|
-
/***/
|
|
1961
|
+
/***/ 97332:
|
|
2736
1962
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
2737
1963
|
|
|
2738
|
-
"use strict";
|
|
2739
1964
|
|
|
2740
1965
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
2741
1966
|
exports.reportTypeError = exports.checkDataTypes = exports.checkDataType = exports.coerceAndCheckDataType = exports.getJSONTypes = exports.getSchemaTypes = exports.DataType = void 0;
|
|
2742
|
-
const rules_1 = __webpack_require__(
|
|
2743
|
-
const applicability_1 = __webpack_require__(
|
|
2744
|
-
const errors_1 = __webpack_require__(
|
|
2745
|
-
const codegen_1 = __webpack_require__(
|
|
2746
|
-
const util_1 = __webpack_require__(
|
|
1967
|
+
const rules_1 = __webpack_require__(82881);
|
|
1968
|
+
const applicability_1 = __webpack_require__(89073);
|
|
1969
|
+
const errors_1 = __webpack_require__(6930);
|
|
1970
|
+
const codegen_1 = __webpack_require__(15669);
|
|
1971
|
+
const util_1 = __webpack_require__(88936);
|
|
2747
1972
|
var DataType;
|
|
2748
1973
|
(function (DataType) {
|
|
2749
1974
|
DataType[DataType["Correct"] = 0] = "Correct";
|
|
@@ -2942,15 +2167,14 @@ function getTypeErrorContext(it) {
|
|
|
2942
2167
|
|
|
2943
2168
|
/***/ }),
|
|
2944
2169
|
|
|
2945
|
-
/***/
|
|
2170
|
+
/***/ 91481:
|
|
2946
2171
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
2947
2172
|
|
|
2948
|
-
"use strict";
|
|
2949
2173
|
|
|
2950
2174
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
2951
2175
|
exports.assignDefaults = void 0;
|
|
2952
|
-
const codegen_1 = __webpack_require__(
|
|
2953
|
-
const util_1 = __webpack_require__(
|
|
2176
|
+
const codegen_1 = __webpack_require__(15669);
|
|
2177
|
+
const util_1 = __webpack_require__(88936);
|
|
2954
2178
|
function assignDefaults(it, ty) {
|
|
2955
2179
|
const { properties, items } = it.schema;
|
|
2956
2180
|
if (ty === "object" && properties) {
|
|
@@ -2984,25 +2208,24 @@ function assignDefault(it, prop, defaultValue) {
|
|
|
2984
2208
|
|
|
2985
2209
|
/***/ }),
|
|
2986
2210
|
|
|
2987
|
-
/***/
|
|
2211
|
+
/***/ 91686:
|
|
2988
2212
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
2989
2213
|
|
|
2990
|
-
"use strict";
|
|
2991
2214
|
|
|
2992
2215
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
2993
2216
|
exports.getData = exports.KeywordCxt = exports.validateFunctionCode = void 0;
|
|
2994
|
-
const boolSchema_1 = __webpack_require__(
|
|
2995
|
-
const dataType_1 = __webpack_require__(
|
|
2996
|
-
const applicability_1 = __webpack_require__(
|
|
2997
|
-
const dataType_2 = __webpack_require__(
|
|
2998
|
-
const defaults_1 = __webpack_require__(
|
|
2999
|
-
const keyword_1 = __webpack_require__(
|
|
3000
|
-
const subschema_1 = __webpack_require__(
|
|
3001
|
-
const codegen_1 = __webpack_require__(
|
|
3002
|
-
const names_1 = __webpack_require__(
|
|
3003
|
-
const resolve_1 = __webpack_require__(
|
|
3004
|
-
const util_1 = __webpack_require__(
|
|
3005
|
-
const errors_1 = __webpack_require__(
|
|
2217
|
+
const boolSchema_1 = __webpack_require__(12171);
|
|
2218
|
+
const dataType_1 = __webpack_require__(97332);
|
|
2219
|
+
const applicability_1 = __webpack_require__(89073);
|
|
2220
|
+
const dataType_2 = __webpack_require__(97332);
|
|
2221
|
+
const defaults_1 = __webpack_require__(91481);
|
|
2222
|
+
const keyword_1 = __webpack_require__(95782);
|
|
2223
|
+
const subschema_1 = __webpack_require__(38878);
|
|
2224
|
+
const codegen_1 = __webpack_require__(15669);
|
|
2225
|
+
const names_1 = __webpack_require__(17250);
|
|
2226
|
+
const resolve_1 = __webpack_require__(96696);
|
|
2227
|
+
const util_1 = __webpack_require__(88936);
|
|
2228
|
+
const errors_1 = __webpack_require__(6930);
|
|
3006
2229
|
// schema compilation - generates validation function, subschemaCode (below) is used for subschemas
|
|
3007
2230
|
function validateFunctionCode(it) {
|
|
3008
2231
|
if (isSchemaObj(it)) {
|
|
@@ -3511,17 +2734,16 @@ exports.getData = getData;
|
|
|
3511
2734
|
|
|
3512
2735
|
/***/ }),
|
|
3513
2736
|
|
|
3514
|
-
/***/
|
|
2737
|
+
/***/ 95782:
|
|
3515
2738
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
3516
2739
|
|
|
3517
|
-
"use strict";
|
|
3518
2740
|
|
|
3519
2741
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
3520
2742
|
exports.validateKeywordUsage = exports.validSchemaType = exports.funcKeywordCode = exports.macroKeywordCode = void 0;
|
|
3521
|
-
const codegen_1 = __webpack_require__(
|
|
3522
|
-
const names_1 = __webpack_require__(
|
|
3523
|
-
const code_1 = __webpack_require__(
|
|
3524
|
-
const errors_1 = __webpack_require__(
|
|
2743
|
+
const codegen_1 = __webpack_require__(15669);
|
|
2744
|
+
const names_1 = __webpack_require__(17250);
|
|
2745
|
+
const code_1 = __webpack_require__(3499);
|
|
2746
|
+
const errors_1 = __webpack_require__(6930);
|
|
3525
2747
|
function macroKeywordCode(cxt, def) {
|
|
3526
2748
|
const { gen, keyword, schema, parentSchema, it } = cxt;
|
|
3527
2749
|
const macroSchema = def.macro.call(it.self, schema, parentSchema, it);
|
|
@@ -3642,15 +2864,14 @@ exports.validateKeywordUsage = validateKeywordUsage;
|
|
|
3642
2864
|
|
|
3643
2865
|
/***/ }),
|
|
3644
2866
|
|
|
3645
|
-
/***/
|
|
2867
|
+
/***/ 38878:
|
|
3646
2868
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
3647
2869
|
|
|
3648
|
-
"use strict";
|
|
3649
2870
|
|
|
3650
2871
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
3651
2872
|
exports.extendSubschemaMode = exports.extendSubschemaData = exports.getSubschema = void 0;
|
|
3652
|
-
const codegen_1 = __webpack_require__(
|
|
3653
|
-
const util_1 = __webpack_require__(
|
|
2873
|
+
const codegen_1 = __webpack_require__(15669);
|
|
2874
|
+
const util_1 = __webpack_require__(88936);
|
|
3654
2875
|
function getSubschema(it, { keyword, schemaProp, schema, schemaPath, errSchemaPath, topSchemaRef }) {
|
|
3655
2876
|
if (keyword !== undefined && schema !== undefined) {
|
|
3656
2877
|
throw new Error('both "keyword" and "schema" passed, only one allowed');
|
|
@@ -3730,32 +2951,31 @@ exports.extendSubschemaMode = extendSubschemaMode;
|
|
|
3730
2951
|
|
|
3731
2952
|
/***/ }),
|
|
3732
2953
|
|
|
3733
|
-
/***/
|
|
2954
|
+
/***/ 38355:
|
|
3734
2955
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
3735
2956
|
|
|
3736
|
-
"use strict";
|
|
3737
2957
|
|
|
3738
2958
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
3739
2959
|
exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = void 0;
|
|
3740
|
-
var validate_1 = __webpack_require__(
|
|
2960
|
+
var validate_1 = __webpack_require__(91686);
|
|
3741
2961
|
Object.defineProperty(exports, "KeywordCxt", ({ enumerable: true, get: function () { return validate_1.KeywordCxt; } }));
|
|
3742
|
-
var codegen_1 = __webpack_require__(
|
|
2962
|
+
var codegen_1 = __webpack_require__(15669);
|
|
3743
2963
|
Object.defineProperty(exports, "_", ({ enumerable: true, get: function () { return codegen_1._; } }));
|
|
3744
2964
|
Object.defineProperty(exports, "str", ({ enumerable: true, get: function () { return codegen_1.str; } }));
|
|
3745
2965
|
Object.defineProperty(exports, "stringify", ({ enumerable: true, get: function () { return codegen_1.stringify; } }));
|
|
3746
2966
|
Object.defineProperty(exports, "nil", ({ enumerable: true, get: function () { return codegen_1.nil; } }));
|
|
3747
2967
|
Object.defineProperty(exports, "Name", ({ enumerable: true, get: function () { return codegen_1.Name; } }));
|
|
3748
2968
|
Object.defineProperty(exports, "CodeGen", ({ enumerable: true, get: function () { return codegen_1.CodeGen; } }));
|
|
3749
|
-
const validation_error_1 = __webpack_require__(
|
|
3750
|
-
const ref_error_1 = __webpack_require__(
|
|
3751
|
-
const rules_1 = __webpack_require__(
|
|
3752
|
-
const compile_1 = __webpack_require__(
|
|
3753
|
-
const codegen_2 = __webpack_require__(
|
|
3754
|
-
const resolve_1 = __webpack_require__(
|
|
3755
|
-
const dataType_1 = __webpack_require__(
|
|
3756
|
-
const util_1 = __webpack_require__(
|
|
3757
|
-
const $dataRefSchema = __webpack_require__(
|
|
3758
|
-
const uri_1 = __webpack_require__(
|
|
2969
|
+
const validation_error_1 = __webpack_require__(46448);
|
|
2970
|
+
const ref_error_1 = __webpack_require__(91578);
|
|
2971
|
+
const rules_1 = __webpack_require__(82881);
|
|
2972
|
+
const compile_1 = __webpack_require__(87382);
|
|
2973
|
+
const codegen_2 = __webpack_require__(15669);
|
|
2974
|
+
const resolve_1 = __webpack_require__(96696);
|
|
2975
|
+
const dataType_1 = __webpack_require__(97332);
|
|
2976
|
+
const util_1 = __webpack_require__(88936);
|
|
2977
|
+
const $dataRefSchema = __webpack_require__(71143);
|
|
2978
|
+
const uri_1 = __webpack_require__(10407);
|
|
3759
2979
|
const defaultRegExp = (str, flags) => new RegExp(str, flags);
|
|
3760
2980
|
defaultRegExp.code = "new RegExp";
|
|
3761
2981
|
const META_IGNORE_OPTIONS = ["removeAdditional", "useDefaults", "coerceTypes"];
|
|
@@ -4355,10 +3575,9 @@ function schemaOrData(schema) {
|
|
|
4355
3575
|
|
|
4356
3576
|
/***/ }),
|
|
4357
3577
|
|
|
4358
|
-
/***/
|
|
3578
|
+
/***/ 94285:
|
|
4359
3579
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
4360
3580
|
|
|
4361
|
-
"use strict";
|
|
4362
3581
|
|
|
4363
3582
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4364
3583
|
// https://github.com/ajv-validator/ajv/issues/889
|
|
@@ -4369,10 +3588,9 @@ exports["default"] = equal;
|
|
|
4369
3588
|
|
|
4370
3589
|
/***/ }),
|
|
4371
3590
|
|
|
4372
|
-
/***/
|
|
3591
|
+
/***/ 49161:
|
|
4373
3592
|
/***/ ((__unused_webpack_module, exports) => {
|
|
4374
3593
|
|
|
4375
|
-
"use strict";
|
|
4376
3594
|
|
|
4377
3595
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4378
3596
|
// https://mathiasbynens.be/notes/javascript-encoding
|
|
@@ -4400,10 +3618,9 @@ ucs2length.code = 'require("ajv/dist/runtime/ucs2length").default';
|
|
|
4400
3618
|
|
|
4401
3619
|
/***/ }),
|
|
4402
3620
|
|
|
4403
|
-
/***/
|
|
3621
|
+
/***/ 10407:
|
|
4404
3622
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
4405
3623
|
|
|
4406
|
-
"use strict";
|
|
4407
3624
|
|
|
4408
3625
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4409
3626
|
const uri = __webpack_require__(83745);
|
|
@@ -4413,10 +3630,9 @@ exports["default"] = uri;
|
|
|
4413
3630
|
|
|
4414
3631
|
/***/ }),
|
|
4415
3632
|
|
|
4416
|
-
/***/
|
|
3633
|
+
/***/ 46448:
|
|
4417
3634
|
/***/ ((__unused_webpack_module, exports) => {
|
|
4418
3635
|
|
|
4419
|
-
"use strict";
|
|
4420
3636
|
|
|
4421
3637
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4422
3638
|
class ValidationError extends Error {
|
|
@@ -4431,15 +3647,14 @@ exports["default"] = ValidationError;
|
|
|
4431
3647
|
|
|
4432
3648
|
/***/ }),
|
|
4433
3649
|
|
|
4434
|
-
/***/
|
|
3650
|
+
/***/ 78891:
|
|
4435
3651
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
4436
3652
|
|
|
4437
|
-
"use strict";
|
|
4438
3653
|
|
|
4439
3654
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4440
3655
|
exports.validateAdditionalItems = void 0;
|
|
4441
|
-
const codegen_1 = __webpack_require__(
|
|
4442
|
-
const util_1 = __webpack_require__(
|
|
3656
|
+
const codegen_1 = __webpack_require__(15669);
|
|
3657
|
+
const util_1 = __webpack_require__(88936);
|
|
4443
3658
|
const error = {
|
|
4444
3659
|
message: ({ params: { len } }) => (0, codegen_1.str) `must NOT have more than ${len} items`,
|
|
4445
3660
|
params: ({ params: { len } }) => (0, codegen_1._) `{limit: ${len}}`,
|
|
@@ -4487,16 +3702,15 @@ exports["default"] = def;
|
|
|
4487
3702
|
|
|
4488
3703
|
/***/ }),
|
|
4489
3704
|
|
|
4490
|
-
/***/
|
|
3705
|
+
/***/ 24943:
|
|
4491
3706
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
4492
3707
|
|
|
4493
|
-
"use strict";
|
|
4494
3708
|
|
|
4495
3709
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4496
|
-
const code_1 = __webpack_require__(
|
|
4497
|
-
const codegen_1 = __webpack_require__(
|
|
4498
|
-
const names_1 = __webpack_require__(
|
|
4499
|
-
const util_1 = __webpack_require__(
|
|
3710
|
+
const code_1 = __webpack_require__(3499);
|
|
3711
|
+
const codegen_1 = __webpack_require__(15669);
|
|
3712
|
+
const names_1 = __webpack_require__(17250);
|
|
3713
|
+
const util_1 = __webpack_require__(88936);
|
|
4500
3714
|
const error = {
|
|
4501
3715
|
message: "must NOT have additional properties",
|
|
4502
3716
|
params: ({ params }) => (0, codegen_1._) `{additionalProperty: ${params.additionalProperty}}`,
|
|
@@ -4600,13 +3814,12 @@ exports["default"] = def;
|
|
|
4600
3814
|
|
|
4601
3815
|
/***/ }),
|
|
4602
3816
|
|
|
4603
|
-
/***/
|
|
3817
|
+
/***/ 22609:
|
|
4604
3818
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
4605
3819
|
|
|
4606
|
-
"use strict";
|
|
4607
3820
|
|
|
4608
3821
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4609
|
-
const util_1 = __webpack_require__(
|
|
3822
|
+
const util_1 = __webpack_require__(88936);
|
|
4610
3823
|
const def = {
|
|
4611
3824
|
keyword: "allOf",
|
|
4612
3825
|
schemaType: "array",
|
|
@@ -4630,13 +3843,12 @@ exports["default"] = def;
|
|
|
4630
3843
|
|
|
4631
3844
|
/***/ }),
|
|
4632
3845
|
|
|
4633
|
-
/***/
|
|
3846
|
+
/***/ 54279:
|
|
4634
3847
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
4635
3848
|
|
|
4636
|
-
"use strict";
|
|
4637
3849
|
|
|
4638
3850
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4639
|
-
const code_1 = __webpack_require__(
|
|
3851
|
+
const code_1 = __webpack_require__(3499);
|
|
4640
3852
|
const def = {
|
|
4641
3853
|
keyword: "anyOf",
|
|
4642
3854
|
schemaType: "array",
|
|
@@ -4649,14 +3861,13 @@ exports["default"] = def;
|
|
|
4649
3861
|
|
|
4650
3862
|
/***/ }),
|
|
4651
3863
|
|
|
4652
|
-
/***/
|
|
3864
|
+
/***/ 95609:
|
|
4653
3865
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
4654
3866
|
|
|
4655
|
-
"use strict";
|
|
4656
3867
|
|
|
4657
3868
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4658
|
-
const codegen_1 = __webpack_require__(
|
|
4659
|
-
const util_1 = __webpack_require__(
|
|
3869
|
+
const codegen_1 = __webpack_require__(15669);
|
|
3870
|
+
const util_1 = __webpack_require__(88936);
|
|
4660
3871
|
const error = {
|
|
4661
3872
|
message: ({ params: { min, max } }) => max === undefined
|
|
4662
3873
|
? (0, codegen_1.str) `must contain at least ${min} valid item(s)`
|
|
@@ -4751,16 +3962,15 @@ exports["default"] = def;
|
|
|
4751
3962
|
|
|
4752
3963
|
/***/ }),
|
|
4753
3964
|
|
|
4754
|
-
/***/
|
|
3965
|
+
/***/ 5463:
|
|
4755
3966
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
4756
3967
|
|
|
4757
|
-
"use strict";
|
|
4758
3968
|
|
|
4759
3969
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4760
3970
|
exports.validateSchemaDeps = exports.validatePropertyDeps = exports.error = void 0;
|
|
4761
|
-
const codegen_1 = __webpack_require__(
|
|
4762
|
-
const util_1 = __webpack_require__(
|
|
4763
|
-
const code_1 = __webpack_require__(
|
|
3971
|
+
const codegen_1 = __webpack_require__(15669);
|
|
3972
|
+
const util_1 = __webpack_require__(88936);
|
|
3973
|
+
const code_1 = __webpack_require__(3499);
|
|
4764
3974
|
exports.error = {
|
|
4765
3975
|
message: ({ params: { property, depsCount, deps } }) => {
|
|
4766
3976
|
const property_ies = depsCount === 1 ? "property" : "properties";
|
|
@@ -4843,14 +4053,13 @@ exports["default"] = def;
|
|
|
4843
4053
|
|
|
4844
4054
|
/***/ }),
|
|
4845
4055
|
|
|
4846
|
-
/***/
|
|
4056
|
+
/***/ 50076:
|
|
4847
4057
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
4848
4058
|
|
|
4849
|
-
"use strict";
|
|
4850
4059
|
|
|
4851
4060
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4852
|
-
const codegen_1 = __webpack_require__(
|
|
4853
|
-
const util_1 = __webpack_require__(
|
|
4061
|
+
const codegen_1 = __webpack_require__(15669);
|
|
4062
|
+
const util_1 = __webpack_require__(88936);
|
|
4854
4063
|
const error = {
|
|
4855
4064
|
message: ({ params }) => (0, codegen_1.str) `must match "${params.ifClause}" schema`,
|
|
4856
4065
|
params: ({ params }) => (0, codegen_1._) `{failingKeyword: ${params.ifClause}}`,
|
|
@@ -4916,28 +4125,27 @@ exports["default"] = def;
|
|
|
4916
4125
|
|
|
4917
4126
|
/***/ }),
|
|
4918
4127
|
|
|
4919
|
-
/***/
|
|
4128
|
+
/***/ 46951:
|
|
4920
4129
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
4921
4130
|
|
|
4922
|
-
"use strict";
|
|
4923
4131
|
|
|
4924
4132
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4925
|
-
const additionalItems_1 = __webpack_require__(
|
|
4926
|
-
const prefixItems_1 = __webpack_require__(
|
|
4927
|
-
const items_1 = __webpack_require__(
|
|
4928
|
-
const items2020_1 = __webpack_require__(
|
|
4929
|
-
const contains_1 = __webpack_require__(
|
|
4930
|
-
const dependencies_1 = __webpack_require__(
|
|
4931
|
-
const propertyNames_1 = __webpack_require__(
|
|
4932
|
-
const additionalProperties_1 = __webpack_require__(
|
|
4933
|
-
const properties_1 = __webpack_require__(
|
|
4934
|
-
const patternProperties_1 = __webpack_require__(
|
|
4935
|
-
const not_1 = __webpack_require__(
|
|
4936
|
-
const anyOf_1 = __webpack_require__(
|
|
4937
|
-
const oneOf_1 = __webpack_require__(
|
|
4938
|
-
const allOf_1 = __webpack_require__(
|
|
4939
|
-
const if_1 = __webpack_require__(
|
|
4940
|
-
const thenElse_1 = __webpack_require__(
|
|
4133
|
+
const additionalItems_1 = __webpack_require__(78891);
|
|
4134
|
+
const prefixItems_1 = __webpack_require__(21162);
|
|
4135
|
+
const items_1 = __webpack_require__(98634);
|
|
4136
|
+
const items2020_1 = __webpack_require__(65151);
|
|
4137
|
+
const contains_1 = __webpack_require__(95609);
|
|
4138
|
+
const dependencies_1 = __webpack_require__(5463);
|
|
4139
|
+
const propertyNames_1 = __webpack_require__(53021);
|
|
4140
|
+
const additionalProperties_1 = __webpack_require__(24943);
|
|
4141
|
+
const properties_1 = __webpack_require__(34243);
|
|
4142
|
+
const patternProperties_1 = __webpack_require__(98103);
|
|
4143
|
+
const not_1 = __webpack_require__(72869);
|
|
4144
|
+
const anyOf_1 = __webpack_require__(54279);
|
|
4145
|
+
const oneOf_1 = __webpack_require__(14880);
|
|
4146
|
+
const allOf_1 = __webpack_require__(22609);
|
|
4147
|
+
const if_1 = __webpack_require__(50076);
|
|
4148
|
+
const thenElse_1 = __webpack_require__(25316);
|
|
4941
4149
|
function getApplicator(draft2020 = false) {
|
|
4942
4150
|
const applicator = [
|
|
4943
4151
|
// any
|
|
@@ -4967,16 +4175,15 @@ exports["default"] = getApplicator;
|
|
|
4967
4175
|
|
|
4968
4176
|
/***/ }),
|
|
4969
4177
|
|
|
4970
|
-
/***/
|
|
4178
|
+
/***/ 98634:
|
|
4971
4179
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
4972
4180
|
|
|
4973
|
-
"use strict";
|
|
4974
4181
|
|
|
4975
4182
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4976
4183
|
exports.validateTuple = void 0;
|
|
4977
|
-
const codegen_1 = __webpack_require__(
|
|
4978
|
-
const util_1 = __webpack_require__(
|
|
4979
|
-
const code_1 = __webpack_require__(
|
|
4184
|
+
const codegen_1 = __webpack_require__(15669);
|
|
4185
|
+
const util_1 = __webpack_require__(88936);
|
|
4186
|
+
const code_1 = __webpack_require__(3499);
|
|
4980
4187
|
const def = {
|
|
4981
4188
|
keyword: "items",
|
|
4982
4189
|
type: "array",
|
|
@@ -5026,16 +4233,15 @@ exports["default"] = def;
|
|
|
5026
4233
|
|
|
5027
4234
|
/***/ }),
|
|
5028
4235
|
|
|
5029
|
-
/***/
|
|
4236
|
+
/***/ 65151:
|
|
5030
4237
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
5031
4238
|
|
|
5032
|
-
"use strict";
|
|
5033
4239
|
|
|
5034
4240
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
5035
|
-
const codegen_1 = __webpack_require__(
|
|
5036
|
-
const util_1 = __webpack_require__(
|
|
5037
|
-
const code_1 = __webpack_require__(
|
|
5038
|
-
const additionalItems_1 = __webpack_require__(
|
|
4241
|
+
const codegen_1 = __webpack_require__(15669);
|
|
4242
|
+
const util_1 = __webpack_require__(88936);
|
|
4243
|
+
const code_1 = __webpack_require__(3499);
|
|
4244
|
+
const additionalItems_1 = __webpack_require__(78891);
|
|
5039
4245
|
const error = {
|
|
5040
4246
|
message: ({ params: { len } }) => (0, codegen_1.str) `must NOT have more than ${len} items`,
|
|
5041
4247
|
params: ({ params: { len } }) => (0, codegen_1._) `{limit: ${len}}`,
|
|
@@ -5063,13 +4269,12 @@ exports["default"] = def;
|
|
|
5063
4269
|
|
|
5064
4270
|
/***/ }),
|
|
5065
4271
|
|
|
5066
|
-
/***/
|
|
4272
|
+
/***/ 72869:
|
|
5067
4273
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
5068
4274
|
|
|
5069
|
-
"use strict";
|
|
5070
4275
|
|
|
5071
4276
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
5072
|
-
const util_1 = __webpack_require__(
|
|
4277
|
+
const util_1 = __webpack_require__(88936);
|
|
5073
4278
|
const def = {
|
|
5074
4279
|
keyword: "not",
|
|
5075
4280
|
schemaType: ["object", "boolean"],
|
|
@@ -5096,14 +4301,13 @@ exports["default"] = def;
|
|
|
5096
4301
|
|
|
5097
4302
|
/***/ }),
|
|
5098
4303
|
|
|
5099
|
-
/***/
|
|
4304
|
+
/***/ 14880:
|
|
5100
4305
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
5101
4306
|
|
|
5102
|
-
"use strict";
|
|
5103
4307
|
|
|
5104
4308
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
5105
|
-
const codegen_1 = __webpack_require__(
|
|
5106
|
-
const util_1 = __webpack_require__(
|
|
4309
|
+
const codegen_1 = __webpack_require__(15669);
|
|
4310
|
+
const util_1 = __webpack_require__(88936);
|
|
5107
4311
|
const error = {
|
|
5108
4312
|
message: "must match exactly one schema in oneOf",
|
|
5109
4313
|
params: ({ params }) => (0, codegen_1._) `{passingSchemas: ${params.passing}}`,
|
|
@@ -5163,16 +4367,15 @@ exports["default"] = def;
|
|
|
5163
4367
|
|
|
5164
4368
|
/***/ }),
|
|
5165
4369
|
|
|
5166
|
-
/***/
|
|
4370
|
+
/***/ 98103:
|
|
5167
4371
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
5168
4372
|
|
|
5169
|
-
"use strict";
|
|
5170
4373
|
|
|
5171
4374
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
5172
|
-
const code_1 = __webpack_require__(
|
|
5173
|
-
const codegen_1 = __webpack_require__(
|
|
5174
|
-
const util_1 = __webpack_require__(
|
|
5175
|
-
const util_2 = __webpack_require__(
|
|
4375
|
+
const code_1 = __webpack_require__(3499);
|
|
4376
|
+
const codegen_1 = __webpack_require__(15669);
|
|
4377
|
+
const util_1 = __webpack_require__(88936);
|
|
4378
|
+
const util_2 = __webpack_require__(88936);
|
|
5176
4379
|
const def = {
|
|
5177
4380
|
keyword: "patternProperties",
|
|
5178
4381
|
type: "object",
|
|
@@ -5245,13 +4448,12 @@ exports["default"] = def;
|
|
|
5245
4448
|
|
|
5246
4449
|
/***/ }),
|
|
5247
4450
|
|
|
5248
|
-
/***/
|
|
4451
|
+
/***/ 21162:
|
|
5249
4452
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
5250
4453
|
|
|
5251
|
-
"use strict";
|
|
5252
4454
|
|
|
5253
4455
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
5254
|
-
const items_1 = __webpack_require__(
|
|
4456
|
+
const items_1 = __webpack_require__(98634);
|
|
5255
4457
|
const def = {
|
|
5256
4458
|
keyword: "prefixItems",
|
|
5257
4459
|
type: "array",
|
|
@@ -5264,16 +4466,15 @@ exports["default"] = def;
|
|
|
5264
4466
|
|
|
5265
4467
|
/***/ }),
|
|
5266
4468
|
|
|
5267
|
-
/***/
|
|
4469
|
+
/***/ 34243:
|
|
5268
4470
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
5269
4471
|
|
|
5270
|
-
"use strict";
|
|
5271
4472
|
|
|
5272
4473
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
5273
|
-
const validate_1 = __webpack_require__(
|
|
5274
|
-
const code_1 = __webpack_require__(
|
|
5275
|
-
const util_1 = __webpack_require__(
|
|
5276
|
-
const additionalProperties_1 = __webpack_require__(
|
|
4474
|
+
const validate_1 = __webpack_require__(91686);
|
|
4475
|
+
const code_1 = __webpack_require__(3499);
|
|
4476
|
+
const util_1 = __webpack_require__(88936);
|
|
4477
|
+
const additionalProperties_1 = __webpack_require__(24943);
|
|
5277
4478
|
const def = {
|
|
5278
4479
|
keyword: "properties",
|
|
5279
4480
|
type: "object",
|
|
@@ -5325,14 +4526,13 @@ exports["default"] = def;
|
|
|
5325
4526
|
|
|
5326
4527
|
/***/ }),
|
|
5327
4528
|
|
|
5328
|
-
/***/
|
|
4529
|
+
/***/ 53021:
|
|
5329
4530
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
5330
4531
|
|
|
5331
|
-
"use strict";
|
|
5332
4532
|
|
|
5333
4533
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
5334
|
-
const codegen_1 = __webpack_require__(
|
|
5335
|
-
const util_1 = __webpack_require__(
|
|
4534
|
+
const codegen_1 = __webpack_require__(15669);
|
|
4535
|
+
const util_1 = __webpack_require__(88936);
|
|
5336
4536
|
const error = {
|
|
5337
4537
|
message: "property name must be valid",
|
|
5338
4538
|
params: ({ params }) => (0, codegen_1._) `{propertyName: ${params.propertyName}}`,
|
|
@@ -5370,13 +4570,12 @@ exports["default"] = def;
|
|
|
5370
4570
|
|
|
5371
4571
|
/***/ }),
|
|
5372
4572
|
|
|
5373
|
-
/***/
|
|
4573
|
+
/***/ 25316:
|
|
5374
4574
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
5375
4575
|
|
|
5376
|
-
"use strict";
|
|
5377
4576
|
|
|
5378
4577
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
5379
|
-
const util_1 = __webpack_require__(
|
|
4578
|
+
const util_1 = __webpack_require__(88936);
|
|
5380
4579
|
const def = {
|
|
5381
4580
|
keyword: ["then", "else"],
|
|
5382
4581
|
schemaType: ["object", "boolean"],
|
|
@@ -5390,17 +4589,16 @@ exports["default"] = def;
|
|
|
5390
4589
|
|
|
5391
4590
|
/***/ }),
|
|
5392
4591
|
|
|
5393
|
-
/***/
|
|
4592
|
+
/***/ 3499:
|
|
5394
4593
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
5395
4594
|
|
|
5396
|
-
"use strict";
|
|
5397
4595
|
|
|
5398
4596
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
5399
4597
|
exports.validateUnion = exports.validateArray = exports.usePattern = exports.callValidateCode = exports.schemaProperties = exports.allSchemaProperties = exports.noPropertyInData = exports.propertyInData = exports.isOwnProperty = exports.hasPropFunc = exports.reportMissingProp = exports.checkMissingProp = exports.checkReportMissingProp = void 0;
|
|
5400
|
-
const codegen_1 = __webpack_require__(
|
|
5401
|
-
const util_1 = __webpack_require__(
|
|
5402
|
-
const names_1 = __webpack_require__(
|
|
5403
|
-
const util_2 = __webpack_require__(
|
|
4598
|
+
const codegen_1 = __webpack_require__(15669);
|
|
4599
|
+
const util_1 = __webpack_require__(88936);
|
|
4600
|
+
const names_1 = __webpack_require__(17250);
|
|
4601
|
+
const util_2 = __webpack_require__(88936);
|
|
5404
4602
|
function checkReportMissingProp(cxt, prop) {
|
|
5405
4603
|
const { gen, data, it } = cxt;
|
|
5406
4604
|
gen.if(noPropertyInData(gen, data, prop, it.opts.ownProperties), () => {
|
|
@@ -5528,10 +4726,9 @@ exports.validateUnion = validateUnion;
|
|
|
5528
4726
|
|
|
5529
4727
|
/***/ }),
|
|
5530
4728
|
|
|
5531
|
-
/***/
|
|
4729
|
+
/***/ 71018:
|
|
5532
4730
|
/***/ ((__unused_webpack_module, exports) => {
|
|
5533
4731
|
|
|
5534
|
-
"use strict";
|
|
5535
4732
|
|
|
5536
4733
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
5537
4734
|
const def = {
|
|
@@ -5545,14 +4742,13 @@ exports["default"] = def;
|
|
|
5545
4742
|
|
|
5546
4743
|
/***/ }),
|
|
5547
4744
|
|
|
5548
|
-
/***/
|
|
4745
|
+
/***/ 32101:
|
|
5549
4746
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
5550
4747
|
|
|
5551
|
-
"use strict";
|
|
5552
4748
|
|
|
5553
4749
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
5554
|
-
const id_1 = __webpack_require__(
|
|
5555
|
-
const ref_1 = __webpack_require__(
|
|
4750
|
+
const id_1 = __webpack_require__(71018);
|
|
4751
|
+
const ref_1 = __webpack_require__(41939);
|
|
5556
4752
|
const core = [
|
|
5557
4753
|
"$schema",
|
|
5558
4754
|
"$id",
|
|
@@ -5568,19 +4764,18 @@ exports["default"] = core;
|
|
|
5568
4764
|
|
|
5569
4765
|
/***/ }),
|
|
5570
4766
|
|
|
5571
|
-
/***/
|
|
4767
|
+
/***/ 41939:
|
|
5572
4768
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
5573
4769
|
|
|
5574
|
-
"use strict";
|
|
5575
4770
|
|
|
5576
4771
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
5577
4772
|
exports.callRef = exports.getValidate = void 0;
|
|
5578
|
-
const ref_error_1 = __webpack_require__(
|
|
5579
|
-
const code_1 = __webpack_require__(
|
|
5580
|
-
const codegen_1 = __webpack_require__(
|
|
5581
|
-
const names_1 = __webpack_require__(
|
|
5582
|
-
const compile_1 = __webpack_require__(
|
|
5583
|
-
const util_1 = __webpack_require__(
|
|
4773
|
+
const ref_error_1 = __webpack_require__(91578);
|
|
4774
|
+
const code_1 = __webpack_require__(3499);
|
|
4775
|
+
const codegen_1 = __webpack_require__(15669);
|
|
4776
|
+
const names_1 = __webpack_require__(17250);
|
|
4777
|
+
const compile_1 = __webpack_require__(87382);
|
|
4778
|
+
const util_1 = __webpack_require__(88936);
|
|
5584
4779
|
const def = {
|
|
5585
4780
|
keyword: "$ref",
|
|
5586
4781
|
schemaType: "string",
|
|
@@ -5697,17 +4892,16 @@ exports["default"] = def;
|
|
|
5697
4892
|
|
|
5698
4893
|
/***/ }),
|
|
5699
4894
|
|
|
5700
|
-
/***/
|
|
4895
|
+
/***/ 30002:
|
|
5701
4896
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
5702
4897
|
|
|
5703
|
-
"use strict";
|
|
5704
4898
|
|
|
5705
4899
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
5706
|
-
const codegen_1 = __webpack_require__(
|
|
5707
|
-
const types_1 = __webpack_require__(
|
|
5708
|
-
const compile_1 = __webpack_require__(
|
|
5709
|
-
const ref_error_1 = __webpack_require__(
|
|
5710
|
-
const util_1 = __webpack_require__(
|
|
4900
|
+
const codegen_1 = __webpack_require__(15669);
|
|
4901
|
+
const types_1 = __webpack_require__(77421);
|
|
4902
|
+
const compile_1 = __webpack_require__(87382);
|
|
4903
|
+
const ref_error_1 = __webpack_require__(91578);
|
|
4904
|
+
const util_1 = __webpack_require__(88936);
|
|
5711
4905
|
const error = {
|
|
5712
4906
|
message: ({ params: { discrError, tagName } }) => discrError === types_1.DiscrError.Tag
|
|
5713
4907
|
? `tag "${tagName}" must be string`
|
|
@@ -5808,10 +5002,9 @@ exports["default"] = def;
|
|
|
5808
5002
|
|
|
5809
5003
|
/***/ }),
|
|
5810
5004
|
|
|
5811
|
-
/***/
|
|
5005
|
+
/***/ 77421:
|
|
5812
5006
|
/***/ ((__unused_webpack_module, exports) => {
|
|
5813
5007
|
|
|
5814
|
-
"use strict";
|
|
5815
5008
|
|
|
5816
5009
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
5817
5010
|
exports.DiscrError = void 0;
|
|
@@ -5824,17 +5017,16 @@ var DiscrError;
|
|
|
5824
5017
|
|
|
5825
5018
|
/***/ }),
|
|
5826
5019
|
|
|
5827
|
-
/***/
|
|
5020
|
+
/***/ 35671:
|
|
5828
5021
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
5829
5022
|
|
|
5830
|
-
"use strict";
|
|
5831
5023
|
|
|
5832
5024
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
5833
|
-
const core_1 = __webpack_require__(
|
|
5834
|
-
const validation_1 = __webpack_require__(
|
|
5835
|
-
const applicator_1 = __webpack_require__(
|
|
5836
|
-
const format_1 = __webpack_require__(
|
|
5837
|
-
const metadata_1 = __webpack_require__(
|
|
5025
|
+
const core_1 = __webpack_require__(32101);
|
|
5026
|
+
const validation_1 = __webpack_require__(37499);
|
|
5027
|
+
const applicator_1 = __webpack_require__(46951);
|
|
5028
|
+
const format_1 = __webpack_require__(4480);
|
|
5029
|
+
const metadata_1 = __webpack_require__(32480);
|
|
5838
5030
|
const draft7Vocabularies = [
|
|
5839
5031
|
core_1.default,
|
|
5840
5032
|
validation_1.default,
|
|
@@ -5848,13 +5040,12 @@ exports["default"] = draft7Vocabularies;
|
|
|
5848
5040
|
|
|
5849
5041
|
/***/ }),
|
|
5850
5042
|
|
|
5851
|
-
/***/
|
|
5043
|
+
/***/ 73599:
|
|
5852
5044
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
5853
5045
|
|
|
5854
|
-
"use strict";
|
|
5855
5046
|
|
|
5856
5047
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
5857
|
-
const codegen_1 = __webpack_require__(
|
|
5048
|
+
const codegen_1 = __webpack_require__(15669);
|
|
5858
5049
|
const error = {
|
|
5859
5050
|
message: ({ schemaCode }) => (0, codegen_1.str) `must match format "${schemaCode}"`,
|
|
5860
5051
|
params: ({ schemaCode }) => (0, codegen_1._) `{format: ${schemaCode}}`,
|
|
@@ -5947,23 +5138,21 @@ exports["default"] = def;
|
|
|
5947
5138
|
|
|
5948
5139
|
/***/ }),
|
|
5949
5140
|
|
|
5950
|
-
/***/
|
|
5141
|
+
/***/ 4480:
|
|
5951
5142
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
5952
5143
|
|
|
5953
|
-
"use strict";
|
|
5954
5144
|
|
|
5955
5145
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
5956
|
-
const format_1 = __webpack_require__(
|
|
5146
|
+
const format_1 = __webpack_require__(73599);
|
|
5957
5147
|
const format = [format_1.default];
|
|
5958
5148
|
exports["default"] = format;
|
|
5959
5149
|
//# sourceMappingURL=index.js.map
|
|
5960
5150
|
|
|
5961
5151
|
/***/ }),
|
|
5962
5152
|
|
|
5963
|
-
/***/
|
|
5153
|
+
/***/ 32480:
|
|
5964
5154
|
/***/ ((__unused_webpack_module, exports) => {
|
|
5965
5155
|
|
|
5966
|
-
"use strict";
|
|
5967
5156
|
|
|
5968
5157
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
5969
5158
|
exports.contentVocabulary = exports.metadataVocabulary = void 0;
|
|
@@ -5985,15 +5174,14 @@ exports.contentVocabulary = [
|
|
|
5985
5174
|
|
|
5986
5175
|
/***/ }),
|
|
5987
5176
|
|
|
5988
|
-
/***/
|
|
5177
|
+
/***/ 36577:
|
|
5989
5178
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
5990
5179
|
|
|
5991
|
-
"use strict";
|
|
5992
5180
|
|
|
5993
5181
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
5994
|
-
const codegen_1 = __webpack_require__(
|
|
5995
|
-
const util_1 = __webpack_require__(
|
|
5996
|
-
const equal_1 = __webpack_require__(
|
|
5182
|
+
const codegen_1 = __webpack_require__(15669);
|
|
5183
|
+
const util_1 = __webpack_require__(88936);
|
|
5184
|
+
const equal_1 = __webpack_require__(94285);
|
|
5997
5185
|
const error = {
|
|
5998
5186
|
message: "must be equal to constant",
|
|
5999
5187
|
params: ({ schemaCode }) => (0, codegen_1._) `{allowedValue: ${schemaCode}}`,
|
|
@@ -6017,15 +5205,14 @@ exports["default"] = def;
|
|
|
6017
5205
|
|
|
6018
5206
|
/***/ }),
|
|
6019
5207
|
|
|
6020
|
-
/***/
|
|
5208
|
+
/***/ 59450:
|
|
6021
5209
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
6022
5210
|
|
|
6023
|
-
"use strict";
|
|
6024
5211
|
|
|
6025
5212
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6026
|
-
const codegen_1 = __webpack_require__(
|
|
6027
|
-
const util_1 = __webpack_require__(
|
|
6028
|
-
const equal_1 = __webpack_require__(
|
|
5213
|
+
const codegen_1 = __webpack_require__(15669);
|
|
5214
|
+
const util_1 = __webpack_require__(88936);
|
|
5215
|
+
const equal_1 = __webpack_require__(94285);
|
|
6029
5216
|
const error = {
|
|
6030
5217
|
message: "must be equal to one of the allowed values",
|
|
6031
5218
|
params: ({ schemaCode }) => (0, codegen_1._) `{allowedValues: ${schemaCode}}`,
|
|
@@ -6072,22 +5259,21 @@ exports["default"] = def;
|
|
|
6072
5259
|
|
|
6073
5260
|
/***/ }),
|
|
6074
5261
|
|
|
6075
|
-
/***/
|
|
5262
|
+
/***/ 37499:
|
|
6076
5263
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
6077
5264
|
|
|
6078
|
-
"use strict";
|
|
6079
5265
|
|
|
6080
5266
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6081
|
-
const limitNumber_1 = __webpack_require__(
|
|
6082
|
-
const multipleOf_1 = __webpack_require__(
|
|
6083
|
-
const limitLength_1 = __webpack_require__(
|
|
6084
|
-
const pattern_1 = __webpack_require__(
|
|
6085
|
-
const limitProperties_1 = __webpack_require__(
|
|
6086
|
-
const required_1 = __webpack_require__(
|
|
6087
|
-
const limitItems_1 = __webpack_require__(
|
|
6088
|
-
const uniqueItems_1 = __webpack_require__(
|
|
6089
|
-
const const_1 = __webpack_require__(
|
|
6090
|
-
const enum_1 = __webpack_require__(
|
|
5267
|
+
const limitNumber_1 = __webpack_require__(31337);
|
|
5268
|
+
const multipleOf_1 = __webpack_require__(59706);
|
|
5269
|
+
const limitLength_1 = __webpack_require__(99507);
|
|
5270
|
+
const pattern_1 = __webpack_require__(51216);
|
|
5271
|
+
const limitProperties_1 = __webpack_require__(70034);
|
|
5272
|
+
const required_1 = __webpack_require__(96962);
|
|
5273
|
+
const limitItems_1 = __webpack_require__(61135);
|
|
5274
|
+
const uniqueItems_1 = __webpack_require__(10194);
|
|
5275
|
+
const const_1 = __webpack_require__(36577);
|
|
5276
|
+
const enum_1 = __webpack_require__(59450);
|
|
6091
5277
|
const validation = [
|
|
6092
5278
|
// number
|
|
6093
5279
|
limitNumber_1.default,
|
|
@@ -6112,13 +5298,12 @@ exports["default"] = validation;
|
|
|
6112
5298
|
|
|
6113
5299
|
/***/ }),
|
|
6114
5300
|
|
|
6115
|
-
/***/
|
|
5301
|
+
/***/ 61135:
|
|
6116
5302
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
6117
5303
|
|
|
6118
|
-
"use strict";
|
|
6119
5304
|
|
|
6120
5305
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6121
|
-
const codegen_1 = __webpack_require__(
|
|
5306
|
+
const codegen_1 = __webpack_require__(15669);
|
|
6122
5307
|
const error = {
|
|
6123
5308
|
message({ keyword, schemaCode }) {
|
|
6124
5309
|
const comp = keyword === "maxItems" ? "more" : "fewer";
|
|
@@ -6143,15 +5328,14 @@ exports["default"] = def;
|
|
|
6143
5328
|
|
|
6144
5329
|
/***/ }),
|
|
6145
5330
|
|
|
6146
|
-
/***/
|
|
5331
|
+
/***/ 99507:
|
|
6147
5332
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
6148
5333
|
|
|
6149
|
-
"use strict";
|
|
6150
5334
|
|
|
6151
5335
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6152
|
-
const codegen_1 = __webpack_require__(
|
|
6153
|
-
const util_1 = __webpack_require__(
|
|
6154
|
-
const ucs2length_1 = __webpack_require__(
|
|
5336
|
+
const codegen_1 = __webpack_require__(15669);
|
|
5337
|
+
const util_1 = __webpack_require__(88936);
|
|
5338
|
+
const ucs2length_1 = __webpack_require__(49161);
|
|
6155
5339
|
const error = {
|
|
6156
5340
|
message({ keyword, schemaCode }) {
|
|
6157
5341
|
const comp = keyword === "maxLength" ? "more" : "fewer";
|
|
@@ -6177,13 +5361,12 @@ exports["default"] = def;
|
|
|
6177
5361
|
|
|
6178
5362
|
/***/ }),
|
|
6179
5363
|
|
|
6180
|
-
/***/
|
|
5364
|
+
/***/ 31337:
|
|
6181
5365
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
6182
5366
|
|
|
6183
|
-
"use strict";
|
|
6184
5367
|
|
|
6185
5368
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6186
|
-
const codegen_1 = __webpack_require__(
|
|
5369
|
+
const codegen_1 = __webpack_require__(15669);
|
|
6187
5370
|
const ops = codegen_1.operators;
|
|
6188
5371
|
const KWDs = {
|
|
6189
5372
|
maximum: { okStr: "<=", ok: ops.LTE, fail: ops.GT },
|
|
@@ -6211,13 +5394,12 @@ exports["default"] = def;
|
|
|
6211
5394
|
|
|
6212
5395
|
/***/ }),
|
|
6213
5396
|
|
|
6214
|
-
/***/
|
|
5397
|
+
/***/ 70034:
|
|
6215
5398
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
6216
5399
|
|
|
6217
|
-
"use strict";
|
|
6218
5400
|
|
|
6219
5401
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6220
|
-
const codegen_1 = __webpack_require__(
|
|
5402
|
+
const codegen_1 = __webpack_require__(15669);
|
|
6221
5403
|
const error = {
|
|
6222
5404
|
message({ keyword, schemaCode }) {
|
|
6223
5405
|
const comp = keyword === "maxProperties" ? "more" : "fewer";
|
|
@@ -6242,13 +5424,12 @@ exports["default"] = def;
|
|
|
6242
5424
|
|
|
6243
5425
|
/***/ }),
|
|
6244
5426
|
|
|
6245
|
-
/***/
|
|
5427
|
+
/***/ 59706:
|
|
6246
5428
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
6247
5429
|
|
|
6248
|
-
"use strict";
|
|
6249
5430
|
|
|
6250
5431
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6251
|
-
const codegen_1 = __webpack_require__(
|
|
5432
|
+
const codegen_1 = __webpack_require__(15669);
|
|
6252
5433
|
const error = {
|
|
6253
5434
|
message: ({ schemaCode }) => (0, codegen_1.str) `must be multiple of ${schemaCode}`,
|
|
6254
5435
|
params: ({ schemaCode }) => (0, codegen_1._) `{multipleOf: ${schemaCode}}`,
|
|
@@ -6275,14 +5456,13 @@ exports["default"] = def;
|
|
|
6275
5456
|
|
|
6276
5457
|
/***/ }),
|
|
6277
5458
|
|
|
6278
|
-
/***/
|
|
5459
|
+
/***/ 51216:
|
|
6279
5460
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
6280
5461
|
|
|
6281
|
-
"use strict";
|
|
6282
5462
|
|
|
6283
5463
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6284
|
-
const code_1 = __webpack_require__(
|
|
6285
|
-
const codegen_1 = __webpack_require__(
|
|
5464
|
+
const code_1 = __webpack_require__(3499);
|
|
5465
|
+
const codegen_1 = __webpack_require__(15669);
|
|
6286
5466
|
const error = {
|
|
6287
5467
|
message: ({ schemaCode }) => (0, codegen_1.str) `must match pattern "${schemaCode}"`,
|
|
6288
5468
|
params: ({ schemaCode }) => (0, codegen_1._) `{pattern: ${schemaCode}}`,
|
|
@@ -6306,15 +5486,14 @@ exports["default"] = def;
|
|
|
6306
5486
|
|
|
6307
5487
|
/***/ }),
|
|
6308
5488
|
|
|
6309
|
-
/***/
|
|
5489
|
+
/***/ 96962:
|
|
6310
5490
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
6311
5491
|
|
|
6312
|
-
"use strict";
|
|
6313
5492
|
|
|
6314
5493
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6315
|
-
const code_1 = __webpack_require__(
|
|
6316
|
-
const codegen_1 = __webpack_require__(
|
|
6317
|
-
const util_1 = __webpack_require__(
|
|
5494
|
+
const code_1 = __webpack_require__(3499);
|
|
5495
|
+
const codegen_1 = __webpack_require__(15669);
|
|
5496
|
+
const util_1 = __webpack_require__(88936);
|
|
6318
5497
|
const error = {
|
|
6319
5498
|
message: ({ params: { missingProperty } }) => (0, codegen_1.str) `must have required property '${missingProperty}'`,
|
|
6320
5499
|
params: ({ params: { missingProperty } }) => (0, codegen_1._) `{missingProperty: ${missingProperty}}`,
|
|
@@ -6392,16 +5571,15 @@ exports["default"] = def;
|
|
|
6392
5571
|
|
|
6393
5572
|
/***/ }),
|
|
6394
5573
|
|
|
6395
|
-
/***/
|
|
5574
|
+
/***/ 10194:
|
|
6396
5575
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
6397
5576
|
|
|
6398
|
-
"use strict";
|
|
6399
5577
|
|
|
6400
5578
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6401
|
-
const dataType_1 = __webpack_require__(
|
|
6402
|
-
const codegen_1 = __webpack_require__(
|
|
6403
|
-
const util_1 = __webpack_require__(
|
|
6404
|
-
const equal_1 = __webpack_require__(
|
|
5579
|
+
const dataType_1 = __webpack_require__(97332);
|
|
5580
|
+
const codegen_1 = __webpack_require__(15669);
|
|
5581
|
+
const util_1 = __webpack_require__(88936);
|
|
5582
|
+
const equal_1 = __webpack_require__(94285);
|
|
6405
5583
|
const error = {
|
|
6406
5584
|
message: ({ params: { i, j } }) => (0, codegen_1.str) `must NOT have duplicate items (items ## ${j} and ${i} are identical)`,
|
|
6407
5585
|
params: ({ params: { i, j } }) => (0, codegen_1._) `{i: ${i}, j: ${j}}`,
|
|
@@ -6463,676 +5641,965 @@ exports["default"] = def;
|
|
|
6463
5641
|
|
|
6464
5642
|
/***/ }),
|
|
6465
5643
|
|
|
6466
|
-
/***/
|
|
6467
|
-
/***/ ((module
|
|
5644
|
+
/***/ 66471:
|
|
5645
|
+
/***/ ((module) => {
|
|
6468
5646
|
|
|
6469
|
-
var MapCache = __webpack_require__(74554),
|
|
6470
|
-
setCacheAdd = __webpack_require__(38639),
|
|
6471
|
-
setCacheHas = __webpack_require__(88379);
|
|
6472
5647
|
|
|
6473
|
-
/**
|
|
6474
|
-
*
|
|
6475
|
-
* Creates an array cache object to store unique values.
|
|
6476
|
-
*
|
|
6477
|
-
* @private
|
|
6478
|
-
* @constructor
|
|
6479
|
-
* @param {Array} [values] The values to cache.
|
|
6480
|
-
*/
|
|
6481
|
-
function SetCache(values) {
|
|
6482
|
-
var index = -1,
|
|
6483
|
-
length = values == null ? 0 : values.length;
|
|
6484
5648
|
|
|
6485
|
-
|
|
6486
|
-
while (++index < length) {
|
|
6487
|
-
this.add(values[index]);
|
|
6488
|
-
}
|
|
6489
|
-
}
|
|
5649
|
+
// do not edit .js files directly - edit src/index.jst
|
|
6490
5650
|
|
|
6491
|
-
// Add methods to `SetCache`.
|
|
6492
|
-
SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
|
|
6493
|
-
SetCache.prototype.has = setCacheHas;
|
|
6494
5651
|
|
|
6495
|
-
module.exports = SetCache;
|
|
6496
5652
|
|
|
5653
|
+
module.exports = function equal(a, b) {
|
|
5654
|
+
if (a === b) return true;
|
|
6497
5655
|
|
|
6498
|
-
|
|
5656
|
+
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
5657
|
+
if (a.constructor !== b.constructor) return false;
|
|
6499
5658
|
|
|
6500
|
-
|
|
6501
|
-
|
|
5659
|
+
var length, i, keys;
|
|
5660
|
+
if (Array.isArray(a)) {
|
|
5661
|
+
length = a.length;
|
|
5662
|
+
if (length != b.length) return false;
|
|
5663
|
+
for (i = length; i-- !== 0;)
|
|
5664
|
+
if (!equal(a[i], b[i])) return false;
|
|
5665
|
+
return true;
|
|
5666
|
+
}
|
|
6502
5667
|
|
|
6503
|
-
/**
|
|
6504
|
-
* A specialized version of `_.some` for arrays without support for iteratee
|
|
6505
|
-
* shorthands.
|
|
6506
|
-
*
|
|
6507
|
-
* @private
|
|
6508
|
-
* @param {Array} [array] The array to iterate over.
|
|
6509
|
-
* @param {Function} predicate The function invoked per iteration.
|
|
6510
|
-
* @returns {boolean} Returns `true` if any element passes the predicate check,
|
|
6511
|
-
* else `false`.
|
|
6512
|
-
*/
|
|
6513
|
-
function arraySome(array, predicate) {
|
|
6514
|
-
var index = -1,
|
|
6515
|
-
length = array == null ? 0 : array.length;
|
|
6516
5668
|
|
|
6517
|
-
|
|
6518
|
-
if (
|
|
6519
|
-
|
|
5669
|
+
|
|
5670
|
+
if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
|
|
5671
|
+
if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
|
|
5672
|
+
if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
|
|
5673
|
+
|
|
5674
|
+
keys = Object.keys(a);
|
|
5675
|
+
length = keys.length;
|
|
5676
|
+
if (length !== Object.keys(b).length) return false;
|
|
5677
|
+
|
|
5678
|
+
for (i = length; i-- !== 0;)
|
|
5679
|
+
if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
|
|
5680
|
+
|
|
5681
|
+
for (i = length; i-- !== 0;) {
|
|
5682
|
+
var key = keys[i];
|
|
5683
|
+
|
|
5684
|
+
if (!equal(a[key], b[key])) return false;
|
|
6520
5685
|
}
|
|
5686
|
+
|
|
5687
|
+
return true;
|
|
6521
5688
|
}
|
|
6522
|
-
return false;
|
|
6523
|
-
}
|
|
6524
5689
|
|
|
6525
|
-
|
|
5690
|
+
// true if both NaN, false otherwise
|
|
5691
|
+
return a!==a && b!==b;
|
|
5692
|
+
};
|
|
6526
5693
|
|
|
6527
5694
|
|
|
6528
5695
|
/***/ }),
|
|
6529
5696
|
|
|
6530
|
-
/***/
|
|
5697
|
+
/***/ 83745:
|
|
6531
5698
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
6532
5699
|
|
|
6533
|
-
var baseIsEqualDeep = __webpack_require__(12772),
|
|
6534
|
-
isObjectLike = __webpack_require__(92360);
|
|
6535
5700
|
|
|
6536
|
-
|
|
6537
|
-
|
|
6538
|
-
|
|
6539
|
-
|
|
6540
|
-
|
|
6541
|
-
|
|
6542
|
-
|
|
6543
|
-
|
|
6544
|
-
|
|
6545
|
-
* 2 - Partial comparison
|
|
6546
|
-
* @param {Function} [customizer] The function to customize comparisons.
|
|
6547
|
-
* @param {Object} [stack] Tracks traversed `value` and `other` objects.
|
|
6548
|
-
* @returns {boolean} Returns `true` if the values are equivalent, else `false`.
|
|
6549
|
-
*/
|
|
6550
|
-
function baseIsEqual(value, other, bitmask, customizer, stack) {
|
|
6551
|
-
if (value === other) {
|
|
6552
|
-
return true;
|
|
5701
|
+
|
|
5702
|
+
const { normalizeIPv6, normalizeIPv4, removeDotSegments, recomposeAuthority, normalizeComponentEncoding } = __webpack_require__(18607)
|
|
5703
|
+
const SCHEMES = __webpack_require__(76042)
|
|
5704
|
+
|
|
5705
|
+
function normalize (uri, options) {
|
|
5706
|
+
if (typeof uri === 'string') {
|
|
5707
|
+
uri = serialize(parse(uri, options), options)
|
|
5708
|
+
} else if (typeof uri === 'object') {
|
|
5709
|
+
uri = parse(serialize(uri, options), options)
|
|
6553
5710
|
}
|
|
6554
|
-
|
|
6555
|
-
|
|
5711
|
+
return uri
|
|
5712
|
+
}
|
|
5713
|
+
|
|
5714
|
+
function resolve (baseURI, relativeURI, options) {
|
|
5715
|
+
const schemelessOptions = Object.assign({ scheme: 'null' }, options)
|
|
5716
|
+
const resolved = resolveComponents(parse(baseURI, schemelessOptions), parse(relativeURI, schemelessOptions), schemelessOptions, true)
|
|
5717
|
+
return serialize(resolved, { ...schemelessOptions, skipEscape: true })
|
|
5718
|
+
}
|
|
5719
|
+
|
|
5720
|
+
function resolveComponents (base, relative, options, skipNormalization) {
|
|
5721
|
+
const target = {}
|
|
5722
|
+
if (!skipNormalization) {
|
|
5723
|
+
base = parse(serialize(base, options), options) // normalize base components
|
|
5724
|
+
relative = parse(serialize(relative, options), options) // normalize relative components
|
|
5725
|
+
}
|
|
5726
|
+
options = options || {}
|
|
5727
|
+
|
|
5728
|
+
if (!options.tolerant && relative.scheme) {
|
|
5729
|
+
target.scheme = relative.scheme
|
|
5730
|
+
// target.authority = relative.authority;
|
|
5731
|
+
target.userinfo = relative.userinfo
|
|
5732
|
+
target.host = relative.host
|
|
5733
|
+
target.port = relative.port
|
|
5734
|
+
target.path = removeDotSegments(relative.path || '')
|
|
5735
|
+
target.query = relative.query
|
|
5736
|
+
} else {
|
|
5737
|
+
if (relative.userinfo !== undefined || relative.host !== undefined || relative.port !== undefined) {
|
|
5738
|
+
// target.authority = relative.authority;
|
|
5739
|
+
target.userinfo = relative.userinfo
|
|
5740
|
+
target.host = relative.host
|
|
5741
|
+
target.port = relative.port
|
|
5742
|
+
target.path = removeDotSegments(relative.path || '')
|
|
5743
|
+
target.query = relative.query
|
|
5744
|
+
} else {
|
|
5745
|
+
if (!relative.path) {
|
|
5746
|
+
target.path = base.path
|
|
5747
|
+
if (relative.query !== undefined) {
|
|
5748
|
+
target.query = relative.query
|
|
5749
|
+
} else {
|
|
5750
|
+
target.query = base.query
|
|
5751
|
+
}
|
|
5752
|
+
} else {
|
|
5753
|
+
if (relative.path.charAt(0) === '/') {
|
|
5754
|
+
target.path = removeDotSegments(relative.path)
|
|
5755
|
+
} else {
|
|
5756
|
+
if ((base.userinfo !== undefined || base.host !== undefined || base.port !== undefined) && !base.path) {
|
|
5757
|
+
target.path = '/' + relative.path
|
|
5758
|
+
} else if (!base.path) {
|
|
5759
|
+
target.path = relative.path
|
|
5760
|
+
} else {
|
|
5761
|
+
target.path = base.path.slice(0, base.path.lastIndexOf('/') + 1) + relative.path
|
|
5762
|
+
}
|
|
5763
|
+
target.path = removeDotSegments(target.path)
|
|
5764
|
+
}
|
|
5765
|
+
target.query = relative.query
|
|
5766
|
+
}
|
|
5767
|
+
// target.authority = base.authority;
|
|
5768
|
+
target.userinfo = base.userinfo
|
|
5769
|
+
target.host = base.host
|
|
5770
|
+
target.port = base.port
|
|
5771
|
+
}
|
|
5772
|
+
target.scheme = base.scheme
|
|
6556
5773
|
}
|
|
6557
|
-
|
|
5774
|
+
|
|
5775
|
+
target.fragment = relative.fragment
|
|
5776
|
+
|
|
5777
|
+
return target
|
|
6558
5778
|
}
|
|
6559
5779
|
|
|
6560
|
-
|
|
5780
|
+
function equal (uriA, uriB, options) {
|
|
5781
|
+
if (typeof uriA === 'string') {
|
|
5782
|
+
uriA = unescape(uriA)
|
|
5783
|
+
uriA = serialize(normalizeComponentEncoding(parse(uriA, options), true), { ...options, skipEscape: true })
|
|
5784
|
+
} else if (typeof uriA === 'object') {
|
|
5785
|
+
uriA = serialize(normalizeComponentEncoding(uriA, true), { ...options, skipEscape: true })
|
|
5786
|
+
}
|
|
6561
5787
|
|
|
5788
|
+
if (typeof uriB === 'string') {
|
|
5789
|
+
uriB = unescape(uriB)
|
|
5790
|
+
uriB = serialize(normalizeComponentEncoding(parse(uriB, options), true), { ...options, skipEscape: true })
|
|
5791
|
+
} else if (typeof uriB === 'object') {
|
|
5792
|
+
uriB = serialize(normalizeComponentEncoding(uriB, true), { ...options, skipEscape: true })
|
|
5793
|
+
}
|
|
6562
5794
|
|
|
6563
|
-
|
|
5795
|
+
return uriA.toLowerCase() === uriB.toLowerCase()
|
|
5796
|
+
}
|
|
5797
|
+
|
|
5798
|
+
function serialize (cmpts, opts) {
|
|
5799
|
+
const components = {
|
|
5800
|
+
host: cmpts.host,
|
|
5801
|
+
scheme: cmpts.scheme,
|
|
5802
|
+
userinfo: cmpts.userinfo,
|
|
5803
|
+
port: cmpts.port,
|
|
5804
|
+
path: cmpts.path,
|
|
5805
|
+
query: cmpts.query,
|
|
5806
|
+
nid: cmpts.nid,
|
|
5807
|
+
nss: cmpts.nss,
|
|
5808
|
+
uuid: cmpts.uuid,
|
|
5809
|
+
fragment: cmpts.fragment,
|
|
5810
|
+
reference: cmpts.reference,
|
|
5811
|
+
resourceName: cmpts.resourceName,
|
|
5812
|
+
secure: cmpts.secure,
|
|
5813
|
+
error: ''
|
|
5814
|
+
}
|
|
5815
|
+
const options = Object.assign({}, opts)
|
|
5816
|
+
const uriTokens = []
|
|
6564
5817
|
|
|
6565
|
-
|
|
6566
|
-
|
|
5818
|
+
// find scheme handler
|
|
5819
|
+
const schemeHandler = SCHEMES[(options.scheme || components.scheme || '').toLowerCase()]
|
|
6567
5820
|
|
|
6568
|
-
|
|
6569
|
-
|
|
6570
|
-
equalByTag = __webpack_require__(370),
|
|
6571
|
-
equalObjects = __webpack_require__(39584),
|
|
6572
|
-
getTag = __webpack_require__(3533),
|
|
6573
|
-
isArray = __webpack_require__(19785),
|
|
6574
|
-
isBuffer = __webpack_require__(43854),
|
|
6575
|
-
isTypedArray = __webpack_require__(48519);
|
|
5821
|
+
// perform scheme specific serialization
|
|
5822
|
+
if (schemeHandler && schemeHandler.serialize) schemeHandler.serialize(components, options)
|
|
6576
5823
|
|
|
6577
|
-
|
|
6578
|
-
|
|
5824
|
+
if (components.path !== undefined) {
|
|
5825
|
+
if (!options.skipEscape) {
|
|
5826
|
+
components.path = escape(components.path)
|
|
6579
5827
|
|
|
6580
|
-
|
|
6581
|
-
|
|
6582
|
-
|
|
6583
|
-
|
|
5828
|
+
if (components.scheme !== undefined) {
|
|
5829
|
+
components.path = components.path.split('%3A').join(':')
|
|
5830
|
+
}
|
|
5831
|
+
} else {
|
|
5832
|
+
components.path = unescape(components.path)
|
|
5833
|
+
}
|
|
5834
|
+
}
|
|
6584
5835
|
|
|
6585
|
-
|
|
6586
|
-
|
|
5836
|
+
if (options.reference !== 'suffix' && components.scheme) {
|
|
5837
|
+
uriTokens.push(components.scheme, ':')
|
|
5838
|
+
}
|
|
6587
5839
|
|
|
6588
|
-
|
|
6589
|
-
|
|
5840
|
+
const authority = recomposeAuthority(components)
|
|
5841
|
+
if (authority !== undefined) {
|
|
5842
|
+
if (options.reference !== 'suffix') {
|
|
5843
|
+
uriTokens.push('//')
|
|
5844
|
+
}
|
|
6590
5845
|
|
|
6591
|
-
|
|
6592
|
-
* A specialized version of `baseIsEqual` for arrays and objects which performs
|
|
6593
|
-
* deep comparisons and tracks traversed objects enabling objects with circular
|
|
6594
|
-
* references to be compared.
|
|
6595
|
-
*
|
|
6596
|
-
* @private
|
|
6597
|
-
* @param {Object} object The object to compare.
|
|
6598
|
-
* @param {Object} other The other object to compare.
|
|
6599
|
-
* @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
|
|
6600
|
-
* @param {Function} customizer The function to customize comparisons.
|
|
6601
|
-
* @param {Function} equalFunc The function to determine equivalents of values.
|
|
6602
|
-
* @param {Object} [stack] Tracks traversed `object` and `other` objects.
|
|
6603
|
-
* @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
|
|
6604
|
-
*/
|
|
6605
|
-
function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
|
|
6606
|
-
var objIsArr = isArray(object),
|
|
6607
|
-
othIsArr = isArray(other),
|
|
6608
|
-
objTag = objIsArr ? arrayTag : getTag(object),
|
|
6609
|
-
othTag = othIsArr ? arrayTag : getTag(other);
|
|
5846
|
+
uriTokens.push(authority)
|
|
6610
5847
|
|
|
6611
|
-
|
|
6612
|
-
|
|
5848
|
+
if (components.path && components.path.charAt(0) !== '/') {
|
|
5849
|
+
uriTokens.push('/')
|
|
5850
|
+
}
|
|
5851
|
+
}
|
|
5852
|
+
if (components.path !== undefined) {
|
|
5853
|
+
let s = components.path
|
|
6613
5854
|
|
|
6614
|
-
|
|
6615
|
-
|
|
6616
|
-
|
|
5855
|
+
if (!options.absolutePath && (!schemeHandler || !schemeHandler.absolutePath)) {
|
|
5856
|
+
s = removeDotSegments(s)
|
|
5857
|
+
}
|
|
6617
5858
|
|
|
6618
|
-
|
|
6619
|
-
|
|
6620
|
-
return false;
|
|
5859
|
+
if (authority === undefined) {
|
|
5860
|
+
s = s.replace(/^\/\//u, '/%2F') // don't allow the path to start with "//"
|
|
6621
5861
|
}
|
|
6622
|
-
|
|
6623
|
-
|
|
5862
|
+
|
|
5863
|
+
uriTokens.push(s)
|
|
5864
|
+
}
|
|
5865
|
+
|
|
5866
|
+
if (components.query !== undefined) {
|
|
5867
|
+
uriTokens.push('?', components.query)
|
|
6624
5868
|
}
|
|
6625
|
-
|
|
6626
|
-
|
|
6627
|
-
|
|
6628
|
-
? equalArrays(object, other, bitmask, customizer, equalFunc, stack)
|
|
6629
|
-
: equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
|
|
5869
|
+
|
|
5870
|
+
if (components.fragment !== undefined) {
|
|
5871
|
+
uriTokens.push('#', components.fragment)
|
|
6630
5872
|
}
|
|
6631
|
-
|
|
6632
|
-
|
|
6633
|
-
othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');
|
|
5873
|
+
return uriTokens.join('')
|
|
5874
|
+
}
|
|
6634
5875
|
|
|
6635
|
-
|
|
6636
|
-
var objUnwrapped = objIsWrapped ? object.value() : object,
|
|
6637
|
-
othUnwrapped = othIsWrapped ? other.value() : other;
|
|
5876
|
+
const hexLookUp = Array.from({ length: 127 }, (_v, k) => /[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(k)))
|
|
6638
5877
|
|
|
6639
|
-
|
|
6640
|
-
|
|
5878
|
+
function nonSimpleDomain (value) {
|
|
5879
|
+
let code = 0
|
|
5880
|
+
for (let i = 0, len = value.length; i < len; ++i) {
|
|
5881
|
+
code = value.charCodeAt(i)
|
|
5882
|
+
if (code > 126 || hexLookUp[code]) {
|
|
5883
|
+
return true
|
|
6641
5884
|
}
|
|
6642
5885
|
}
|
|
6643
|
-
|
|
6644
|
-
|
|
5886
|
+
return false
|
|
5887
|
+
}
|
|
5888
|
+
|
|
5889
|
+
const URI_PARSE = /^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u
|
|
5890
|
+
|
|
5891
|
+
function parse (uri, opts) {
|
|
5892
|
+
const options = Object.assign({}, opts)
|
|
5893
|
+
const parsed = {
|
|
5894
|
+
scheme: undefined,
|
|
5895
|
+
userinfo: undefined,
|
|
5896
|
+
host: '',
|
|
5897
|
+
port: undefined,
|
|
5898
|
+
path: '',
|
|
5899
|
+
query: undefined,
|
|
5900
|
+
fragment: undefined
|
|
6645
5901
|
}
|
|
6646
|
-
|
|
6647
|
-
|
|
5902
|
+
const gotEncoding = uri.indexOf('%') !== -1
|
|
5903
|
+
let isIP = false
|
|
5904
|
+
if (options.reference === 'suffix') uri = (options.scheme ? options.scheme + ':' : '') + '//' + uri
|
|
5905
|
+
|
|
5906
|
+
const matches = uri.match(URI_PARSE)
|
|
5907
|
+
|
|
5908
|
+
if (matches) {
|
|
5909
|
+
// store each component
|
|
5910
|
+
parsed.scheme = matches[1]
|
|
5911
|
+
parsed.userinfo = matches[3]
|
|
5912
|
+
parsed.host = matches[4]
|
|
5913
|
+
parsed.port = parseInt(matches[5], 10)
|
|
5914
|
+
parsed.path = matches[6] || ''
|
|
5915
|
+
parsed.query = matches[7]
|
|
5916
|
+
parsed.fragment = matches[8]
|
|
5917
|
+
|
|
5918
|
+
// fix port number
|
|
5919
|
+
if (isNaN(parsed.port)) {
|
|
5920
|
+
parsed.port = matches[5]
|
|
5921
|
+
}
|
|
5922
|
+
if (parsed.host) {
|
|
5923
|
+
const ipv4result = normalizeIPv4(parsed.host)
|
|
5924
|
+
if (ipv4result.isIPV4 === false) {
|
|
5925
|
+
const ipv6result = normalizeIPv6(ipv4result.host)
|
|
5926
|
+
parsed.host = ipv6result.host.toLowerCase()
|
|
5927
|
+
isIP = ipv6result.isIPV6
|
|
5928
|
+
} else {
|
|
5929
|
+
parsed.host = ipv4result.host
|
|
5930
|
+
isIP = true
|
|
5931
|
+
}
|
|
5932
|
+
}
|
|
5933
|
+
if (parsed.scheme === undefined && parsed.userinfo === undefined && parsed.host === undefined && parsed.port === undefined && parsed.query === undefined && !parsed.path) {
|
|
5934
|
+
parsed.reference = 'same-document'
|
|
5935
|
+
} else if (parsed.scheme === undefined) {
|
|
5936
|
+
parsed.reference = 'relative'
|
|
5937
|
+
} else if (parsed.fragment === undefined) {
|
|
5938
|
+
parsed.reference = 'absolute'
|
|
5939
|
+
} else {
|
|
5940
|
+
parsed.reference = 'uri'
|
|
5941
|
+
}
|
|
5942
|
+
|
|
5943
|
+
// check for reference errors
|
|
5944
|
+
if (options.reference && options.reference !== 'suffix' && options.reference !== parsed.reference) {
|
|
5945
|
+
parsed.error = parsed.error || 'URI is not a ' + options.reference + ' reference.'
|
|
5946
|
+
}
|
|
5947
|
+
|
|
5948
|
+
// find scheme handler
|
|
5949
|
+
const schemeHandler = SCHEMES[(options.scheme || parsed.scheme || '').toLowerCase()]
|
|
5950
|
+
|
|
5951
|
+
// check if scheme can't handle IRIs
|
|
5952
|
+
if (!options.unicodeSupport && (!schemeHandler || !schemeHandler.unicodeSupport)) {
|
|
5953
|
+
// if host component is a domain name
|
|
5954
|
+
if (parsed.host && (options.domainHost || (schemeHandler && schemeHandler.domainHost)) && isIP === false && nonSimpleDomain(parsed.host)) {
|
|
5955
|
+
// convert Unicode IDN -> ASCII IDN
|
|
5956
|
+
try {
|
|
5957
|
+
parsed.host = URL.domainToASCII(parsed.host.toLowerCase())
|
|
5958
|
+
} catch (e) {
|
|
5959
|
+
parsed.error = parsed.error || "Host's domain name can not be converted to ASCII: " + e
|
|
5960
|
+
}
|
|
5961
|
+
}
|
|
5962
|
+
// convert IRI -> URI
|
|
5963
|
+
}
|
|
5964
|
+
|
|
5965
|
+
if (!schemeHandler || (schemeHandler && !schemeHandler.skipNormalize)) {
|
|
5966
|
+
if (gotEncoding && parsed.scheme !== undefined) {
|
|
5967
|
+
parsed.scheme = unescape(parsed.scheme)
|
|
5968
|
+
}
|
|
5969
|
+
if (gotEncoding && parsed.host !== undefined) {
|
|
5970
|
+
parsed.host = unescape(parsed.host)
|
|
5971
|
+
}
|
|
5972
|
+
if (parsed.path) {
|
|
5973
|
+
parsed.path = escape(unescape(parsed.path))
|
|
5974
|
+
}
|
|
5975
|
+
if (parsed.fragment) {
|
|
5976
|
+
parsed.fragment = encodeURI(decodeURIComponent(parsed.fragment))
|
|
5977
|
+
}
|
|
5978
|
+
}
|
|
5979
|
+
|
|
5980
|
+
// perform scheme specific parsing
|
|
5981
|
+
if (schemeHandler && schemeHandler.parse) {
|
|
5982
|
+
schemeHandler.parse(parsed, options)
|
|
5983
|
+
}
|
|
5984
|
+
} else {
|
|
5985
|
+
parsed.error = parsed.error || 'URI can not be parsed.'
|
|
5986
|
+
}
|
|
5987
|
+
return parsed
|
|
5988
|
+
}
|
|
5989
|
+
|
|
5990
|
+
const fastUri = {
|
|
5991
|
+
SCHEMES,
|
|
5992
|
+
normalize,
|
|
5993
|
+
resolve,
|
|
5994
|
+
resolveComponents,
|
|
5995
|
+
equal,
|
|
5996
|
+
serialize,
|
|
5997
|
+
parse
|
|
6648
5998
|
}
|
|
6649
5999
|
|
|
6650
|
-
module.exports =
|
|
6000
|
+
module.exports = fastUri
|
|
6001
|
+
module.exports["default"] = fastUri
|
|
6002
|
+
module.exports.fastUri = fastUri
|
|
6651
6003
|
|
|
6652
6004
|
|
|
6653
6005
|
/***/ }),
|
|
6654
6006
|
|
|
6655
|
-
/***/
|
|
6007
|
+
/***/ 76042:
|
|
6656
6008
|
/***/ ((module) => {
|
|
6657
6009
|
|
|
6658
|
-
|
|
6659
|
-
|
|
6660
|
-
|
|
6661
|
-
|
|
6662
|
-
|
|
6663
|
-
|
|
6664
|
-
|
|
6665
|
-
*/
|
|
6666
|
-
function cacheHas(cache, key) {
|
|
6667
|
-
return cache.has(key);
|
|
6010
|
+
|
|
6011
|
+
|
|
6012
|
+
const UUID_REG = /^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu
|
|
6013
|
+
const URN_REG = /([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu
|
|
6014
|
+
|
|
6015
|
+
function isSecure (wsComponents) {
|
|
6016
|
+
return typeof wsComponents.secure === 'boolean' ? wsComponents.secure : String(wsComponents.scheme).toLowerCase() === 'wss'
|
|
6668
6017
|
}
|
|
6669
6018
|
|
|
6670
|
-
|
|
6019
|
+
function httpParse (components) {
|
|
6020
|
+
if (!components.host) {
|
|
6021
|
+
components.error = components.error || 'HTTP URIs must have a host.'
|
|
6022
|
+
}
|
|
6671
6023
|
|
|
6024
|
+
return components
|
|
6025
|
+
}
|
|
6672
6026
|
|
|
6673
|
-
|
|
6027
|
+
function httpSerialize (components) {
|
|
6028
|
+
const secure = String(components.scheme).toLowerCase() === 'https'
|
|
6674
6029
|
|
|
6675
|
-
|
|
6676
|
-
|
|
6030
|
+
// normalize the default port
|
|
6031
|
+
if (components.port === (secure ? 443 : 80) || components.port === '') {
|
|
6032
|
+
components.port = undefined
|
|
6033
|
+
}
|
|
6677
6034
|
|
|
6678
|
-
|
|
6679
|
-
|
|
6680
|
-
|
|
6035
|
+
// normalize the empty path
|
|
6036
|
+
if (!components.path) {
|
|
6037
|
+
components.path = '/'
|
|
6038
|
+
}
|
|
6681
6039
|
|
|
6682
|
-
|
|
6683
|
-
|
|
6684
|
-
|
|
6040
|
+
// NOTE: We do not parse query strings for HTTP URIs
|
|
6041
|
+
// as WWW Form Url Encoded query strings are part of the HTML4+ spec,
|
|
6042
|
+
// and not the HTTP spec.
|
|
6685
6043
|
|
|
6686
|
-
|
|
6687
|
-
|
|
6688
|
-
* partial deep comparisons.
|
|
6689
|
-
*
|
|
6690
|
-
* @private
|
|
6691
|
-
* @param {Array} array The array to compare.
|
|
6692
|
-
* @param {Array} other The other array to compare.
|
|
6693
|
-
* @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
|
|
6694
|
-
* @param {Function} customizer The function to customize comparisons.
|
|
6695
|
-
* @param {Function} equalFunc The function to determine equivalents of values.
|
|
6696
|
-
* @param {Object} stack Tracks traversed `array` and `other` objects.
|
|
6697
|
-
* @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
|
|
6698
|
-
*/
|
|
6699
|
-
function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
|
|
6700
|
-
var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
|
|
6701
|
-
arrLength = array.length,
|
|
6702
|
-
othLength = other.length;
|
|
6044
|
+
return components
|
|
6045
|
+
}
|
|
6703
6046
|
|
|
6704
|
-
|
|
6705
|
-
|
|
6047
|
+
function wsParse (wsComponents) {
|
|
6048
|
+
// indicate if the secure flag is set
|
|
6049
|
+
wsComponents.secure = isSecure(wsComponents)
|
|
6050
|
+
|
|
6051
|
+
// construct resouce name
|
|
6052
|
+
wsComponents.resourceName = (wsComponents.path || '/') + (wsComponents.query ? '?' + wsComponents.query : '')
|
|
6053
|
+
wsComponents.path = undefined
|
|
6054
|
+
wsComponents.query = undefined
|
|
6055
|
+
|
|
6056
|
+
return wsComponents
|
|
6057
|
+
}
|
|
6058
|
+
|
|
6059
|
+
function wsSerialize (wsComponents) {
|
|
6060
|
+
// normalize the default port
|
|
6061
|
+
if (wsComponents.port === (isSecure(wsComponents) ? 443 : 80) || wsComponents.port === '') {
|
|
6062
|
+
wsComponents.port = undefined
|
|
6706
6063
|
}
|
|
6707
|
-
|
|
6708
|
-
|
|
6709
|
-
|
|
6710
|
-
|
|
6711
|
-
|
|
6064
|
+
|
|
6065
|
+
// ensure scheme matches secure flag
|
|
6066
|
+
if (typeof wsComponents.secure === 'boolean') {
|
|
6067
|
+
wsComponents.scheme = (wsComponents.secure ? 'wss' : 'ws')
|
|
6068
|
+
wsComponents.secure = undefined
|
|
6712
6069
|
}
|
|
6713
|
-
|
|
6714
|
-
|
|
6715
|
-
|
|
6716
|
-
|
|
6717
|
-
|
|
6718
|
-
|
|
6719
|
-
|
|
6720
|
-
// Ignore non-index properties.
|
|
6721
|
-
while (++index < arrLength) {
|
|
6722
|
-
var arrValue = array[index],
|
|
6723
|
-
othValue = other[index];
|
|
6724
|
-
|
|
6725
|
-
if (customizer) {
|
|
6726
|
-
var compared = isPartial
|
|
6727
|
-
? customizer(othValue, arrValue, index, other, array, stack)
|
|
6728
|
-
: customizer(arrValue, othValue, index, array, other, stack);
|
|
6729
|
-
}
|
|
6730
|
-
if (compared !== undefined) {
|
|
6731
|
-
if (compared) {
|
|
6732
|
-
continue;
|
|
6733
|
-
}
|
|
6734
|
-
result = false;
|
|
6735
|
-
break;
|
|
6736
|
-
}
|
|
6737
|
-
// Recursively compare arrays (susceptible to call stack limits).
|
|
6738
|
-
if (seen) {
|
|
6739
|
-
if (!arraySome(other, function(othValue, othIndex) {
|
|
6740
|
-
if (!cacheHas(seen, othIndex) &&
|
|
6741
|
-
(arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
|
|
6742
|
-
return seen.push(othIndex);
|
|
6743
|
-
}
|
|
6744
|
-
})) {
|
|
6745
|
-
result = false;
|
|
6746
|
-
break;
|
|
6747
|
-
}
|
|
6748
|
-
} else if (!(
|
|
6749
|
-
arrValue === othValue ||
|
|
6750
|
-
equalFunc(arrValue, othValue, bitmask, customizer, stack)
|
|
6751
|
-
)) {
|
|
6752
|
-
result = false;
|
|
6753
|
-
break;
|
|
6754
|
-
}
|
|
6070
|
+
|
|
6071
|
+
// reconstruct path from resource name
|
|
6072
|
+
if (wsComponents.resourceName) {
|
|
6073
|
+
const [path, query] = wsComponents.resourceName.split('?')
|
|
6074
|
+
wsComponents.path = (path && path !== '/' ? path : undefined)
|
|
6075
|
+
wsComponents.query = query
|
|
6076
|
+
wsComponents.resourceName = undefined
|
|
6755
6077
|
}
|
|
6756
|
-
|
|
6757
|
-
|
|
6758
|
-
|
|
6078
|
+
|
|
6079
|
+
// forbid fragment component
|
|
6080
|
+
wsComponents.fragment = undefined
|
|
6081
|
+
|
|
6082
|
+
return wsComponents
|
|
6759
6083
|
}
|
|
6760
6084
|
|
|
6761
|
-
|
|
6085
|
+
function urnParse (urnComponents, options) {
|
|
6086
|
+
if (!urnComponents.path) {
|
|
6087
|
+
urnComponents.error = 'URN can not be parsed'
|
|
6088
|
+
return urnComponents
|
|
6089
|
+
}
|
|
6090
|
+
const matches = urnComponents.path.match(URN_REG)
|
|
6091
|
+
if (matches) {
|
|
6092
|
+
const scheme = options.scheme || urnComponents.scheme || 'urn'
|
|
6093
|
+
urnComponents.nid = matches[1].toLowerCase()
|
|
6094
|
+
urnComponents.nss = matches[2]
|
|
6095
|
+
const urnScheme = `${scheme}:${options.nid || urnComponents.nid}`
|
|
6096
|
+
const schemeHandler = SCHEMES[urnScheme]
|
|
6097
|
+
urnComponents.path = undefined
|
|
6098
|
+
|
|
6099
|
+
if (schemeHandler) {
|
|
6100
|
+
urnComponents = schemeHandler.parse(urnComponents, options)
|
|
6101
|
+
}
|
|
6102
|
+
} else {
|
|
6103
|
+
urnComponents.error = urnComponents.error || 'URN can not be parsed.'
|
|
6104
|
+
}
|
|
6762
6105
|
|
|
6106
|
+
return urnComponents
|
|
6107
|
+
}
|
|
6763
6108
|
|
|
6764
|
-
|
|
6109
|
+
function urnSerialize (urnComponents, options) {
|
|
6110
|
+
const scheme = options.scheme || urnComponents.scheme || 'urn'
|
|
6111
|
+
const nid = urnComponents.nid.toLowerCase()
|
|
6112
|
+
const urnScheme = `${scheme}:${options.nid || nid}`
|
|
6113
|
+
const schemeHandler = SCHEMES[urnScheme]
|
|
6765
6114
|
|
|
6766
|
-
|
|
6767
|
-
|
|
6115
|
+
if (schemeHandler) {
|
|
6116
|
+
urnComponents = schemeHandler.serialize(urnComponents, options)
|
|
6117
|
+
}
|
|
6768
6118
|
|
|
6769
|
-
|
|
6770
|
-
|
|
6771
|
-
|
|
6772
|
-
equalArrays = __webpack_require__(27042),
|
|
6773
|
-
mapToArray = __webpack_require__(19383),
|
|
6774
|
-
setToArray = __webpack_require__(43735);
|
|
6775
|
-
|
|
6776
|
-
/** Used to compose bitmasks for value comparisons. */
|
|
6777
|
-
var COMPARE_PARTIAL_FLAG = 1,
|
|
6778
|
-
COMPARE_UNORDERED_FLAG = 2;
|
|
6779
|
-
|
|
6780
|
-
/** `Object#toString` result references. */
|
|
6781
|
-
var boolTag = '[object Boolean]',
|
|
6782
|
-
dateTag = '[object Date]',
|
|
6783
|
-
errorTag = '[object Error]',
|
|
6784
|
-
mapTag = '[object Map]',
|
|
6785
|
-
numberTag = '[object Number]',
|
|
6786
|
-
regexpTag = '[object RegExp]',
|
|
6787
|
-
setTag = '[object Set]',
|
|
6788
|
-
stringTag = '[object String]',
|
|
6789
|
-
symbolTag = '[object Symbol]';
|
|
6790
|
-
|
|
6791
|
-
var arrayBufferTag = '[object ArrayBuffer]',
|
|
6792
|
-
dataViewTag = '[object DataView]';
|
|
6793
|
-
|
|
6794
|
-
/** Used to convert symbols to primitives and strings. */
|
|
6795
|
-
var symbolProto = Symbol ? Symbol.prototype : undefined,
|
|
6796
|
-
symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;
|
|
6119
|
+
const uriComponents = urnComponents
|
|
6120
|
+
const nss = urnComponents.nss
|
|
6121
|
+
uriComponents.path = `${nid || options.nid}:${nss}`
|
|
6797
6122
|
|
|
6798
|
-
|
|
6799
|
-
|
|
6800
|
-
|
|
6801
|
-
*
|
|
6802
|
-
* **Note:** This function only supports comparing values with tags of
|
|
6803
|
-
* `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
|
|
6804
|
-
*
|
|
6805
|
-
* @private
|
|
6806
|
-
* @param {Object} object The object to compare.
|
|
6807
|
-
* @param {Object} other The other object to compare.
|
|
6808
|
-
* @param {string} tag The `toStringTag` of the objects to compare.
|
|
6809
|
-
* @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
|
|
6810
|
-
* @param {Function} customizer The function to customize comparisons.
|
|
6811
|
-
* @param {Function} equalFunc The function to determine equivalents of values.
|
|
6812
|
-
* @param {Object} stack Tracks traversed `object` and `other` objects.
|
|
6813
|
-
* @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
|
|
6814
|
-
*/
|
|
6815
|
-
function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
|
|
6816
|
-
switch (tag) {
|
|
6817
|
-
case dataViewTag:
|
|
6818
|
-
if ((object.byteLength != other.byteLength) ||
|
|
6819
|
-
(object.byteOffset != other.byteOffset)) {
|
|
6820
|
-
return false;
|
|
6821
|
-
}
|
|
6822
|
-
object = object.buffer;
|
|
6823
|
-
other = other.buffer;
|
|
6123
|
+
options.skipEscape = true
|
|
6124
|
+
return uriComponents
|
|
6125
|
+
}
|
|
6824
6126
|
|
|
6825
|
-
|
|
6826
|
-
|
|
6827
|
-
|
|
6828
|
-
|
|
6829
|
-
}
|
|
6830
|
-
return true;
|
|
6127
|
+
function urnuuidParse (urnComponents, options) {
|
|
6128
|
+
const uuidComponents = urnComponents
|
|
6129
|
+
uuidComponents.uuid = uuidComponents.nss
|
|
6130
|
+
uuidComponents.nss = undefined
|
|
6831
6131
|
|
|
6832
|
-
|
|
6833
|
-
|
|
6834
|
-
|
|
6835
|
-
// Coerce booleans to `1` or `0` and dates to milliseconds.
|
|
6836
|
-
// Invalid dates are coerced to `NaN`.
|
|
6837
|
-
return eq(+object, +other);
|
|
6132
|
+
if (!options.tolerant && (!uuidComponents.uuid || !UUID_REG.test(uuidComponents.uuid))) {
|
|
6133
|
+
uuidComponents.error = uuidComponents.error || 'UUID is not valid.'
|
|
6134
|
+
}
|
|
6838
6135
|
|
|
6839
|
-
|
|
6840
|
-
|
|
6136
|
+
return uuidComponents
|
|
6137
|
+
}
|
|
6841
6138
|
|
|
6842
|
-
|
|
6843
|
-
|
|
6844
|
-
|
|
6845
|
-
|
|
6846
|
-
|
|
6847
|
-
|
|
6139
|
+
function urnuuidSerialize (uuidComponents) {
|
|
6140
|
+
const urnComponents = uuidComponents
|
|
6141
|
+
// normalize UUID
|
|
6142
|
+
urnComponents.nss = (uuidComponents.uuid || '').toLowerCase()
|
|
6143
|
+
return urnComponents
|
|
6144
|
+
}
|
|
6848
6145
|
|
|
6849
|
-
|
|
6850
|
-
|
|
6146
|
+
const http = {
|
|
6147
|
+
scheme: 'http',
|
|
6148
|
+
domainHost: true,
|
|
6149
|
+
parse: httpParse,
|
|
6150
|
+
serialize: httpSerialize
|
|
6151
|
+
}
|
|
6851
6152
|
|
|
6852
|
-
|
|
6853
|
-
|
|
6854
|
-
|
|
6153
|
+
const https = {
|
|
6154
|
+
scheme: 'https',
|
|
6155
|
+
domainHost: http.domainHost,
|
|
6156
|
+
parse: httpParse,
|
|
6157
|
+
serialize: httpSerialize
|
|
6158
|
+
}
|
|
6855
6159
|
|
|
6856
|
-
|
|
6857
|
-
|
|
6858
|
-
|
|
6859
|
-
|
|
6860
|
-
|
|
6861
|
-
|
|
6862
|
-
return stacked == other;
|
|
6863
|
-
}
|
|
6864
|
-
bitmask |= COMPARE_UNORDERED_FLAG;
|
|
6160
|
+
const ws = {
|
|
6161
|
+
scheme: 'ws',
|
|
6162
|
+
domainHost: true,
|
|
6163
|
+
parse: wsParse,
|
|
6164
|
+
serialize: wsSerialize
|
|
6165
|
+
}
|
|
6865
6166
|
|
|
6866
|
-
|
|
6867
|
-
|
|
6868
|
-
|
|
6869
|
-
|
|
6870
|
-
|
|
6167
|
+
const wss = {
|
|
6168
|
+
scheme: 'wss',
|
|
6169
|
+
domainHost: ws.domainHost,
|
|
6170
|
+
parse: ws.parse,
|
|
6171
|
+
serialize: ws.serialize
|
|
6172
|
+
}
|
|
6871
6173
|
|
|
6872
|
-
|
|
6873
|
-
|
|
6874
|
-
|
|
6875
|
-
|
|
6876
|
-
|
|
6877
|
-
|
|
6174
|
+
const urn = {
|
|
6175
|
+
scheme: 'urn',
|
|
6176
|
+
parse: urnParse,
|
|
6177
|
+
serialize: urnSerialize,
|
|
6178
|
+
skipNormalize: true
|
|
6179
|
+
}
|
|
6180
|
+
|
|
6181
|
+
const urnuuid = {
|
|
6182
|
+
scheme: 'urn:uuid',
|
|
6183
|
+
parse: urnuuidParse,
|
|
6184
|
+
serialize: urnuuidSerialize,
|
|
6185
|
+
skipNormalize: true
|
|
6878
6186
|
}
|
|
6879
6187
|
|
|
6880
|
-
|
|
6188
|
+
const SCHEMES = {
|
|
6189
|
+
http,
|
|
6190
|
+
https,
|
|
6191
|
+
ws,
|
|
6192
|
+
wss,
|
|
6193
|
+
urn,
|
|
6194
|
+
'urn:uuid': urnuuid
|
|
6195
|
+
}
|
|
6196
|
+
|
|
6197
|
+
module.exports = SCHEMES
|
|
6881
6198
|
|
|
6882
6199
|
|
|
6883
6200
|
/***/ }),
|
|
6884
6201
|
|
|
6885
|
-
/***/
|
|
6202
|
+
/***/ 63085:
|
|
6203
|
+
/***/ ((module) => {
|
|
6204
|
+
|
|
6205
|
+
|
|
6206
|
+
|
|
6207
|
+
const HEX = {
|
|
6208
|
+
0: 0,
|
|
6209
|
+
1: 1,
|
|
6210
|
+
2: 2,
|
|
6211
|
+
3: 3,
|
|
6212
|
+
4: 4,
|
|
6213
|
+
5: 5,
|
|
6214
|
+
6: 6,
|
|
6215
|
+
7: 7,
|
|
6216
|
+
8: 8,
|
|
6217
|
+
9: 9,
|
|
6218
|
+
a: 10,
|
|
6219
|
+
A: 10,
|
|
6220
|
+
b: 11,
|
|
6221
|
+
B: 11,
|
|
6222
|
+
c: 12,
|
|
6223
|
+
C: 12,
|
|
6224
|
+
d: 13,
|
|
6225
|
+
D: 13,
|
|
6226
|
+
e: 14,
|
|
6227
|
+
E: 14,
|
|
6228
|
+
f: 15,
|
|
6229
|
+
F: 15
|
|
6230
|
+
}
|
|
6231
|
+
|
|
6232
|
+
module.exports = {
|
|
6233
|
+
HEX
|
|
6234
|
+
}
|
|
6235
|
+
|
|
6236
|
+
|
|
6237
|
+
/***/ }),
|
|
6238
|
+
|
|
6239
|
+
/***/ 18607:
|
|
6886
6240
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
6887
6241
|
|
|
6888
|
-
var getAllKeys = __webpack_require__(51385);
|
|
6889
6242
|
|
|
6890
|
-
/** Used to compose bitmasks for value comparisons. */
|
|
6891
|
-
var COMPARE_PARTIAL_FLAG = 1;
|
|
6892
6243
|
|
|
6893
|
-
|
|
6894
|
-
|
|
6244
|
+
const { HEX } = __webpack_require__(63085)
|
|
6245
|
+
|
|
6246
|
+
const IPV4_REG = /^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u
|
|
6895
6247
|
|
|
6896
|
-
|
|
6897
|
-
|
|
6248
|
+
function normalizeIPv4 (host) {
|
|
6249
|
+
if (findToken(host, '.') < 3) { return { host, isIPV4: false } }
|
|
6250
|
+
const matches = host.match(IPV4_REG) || []
|
|
6251
|
+
const [address] = matches
|
|
6252
|
+
if (address) {
|
|
6253
|
+
return { host: stripLeadingZeros(address, '.'), isIPV4: true }
|
|
6254
|
+
} else {
|
|
6255
|
+
return { host, isIPV4: false }
|
|
6256
|
+
}
|
|
6257
|
+
}
|
|
6898
6258
|
|
|
6899
6259
|
/**
|
|
6900
|
-
*
|
|
6901
|
-
*
|
|
6902
|
-
*
|
|
6903
|
-
* @private
|
|
6904
|
-
* @param {Object} object The object to compare.
|
|
6905
|
-
* @param {Object} other The other object to compare.
|
|
6906
|
-
* @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
|
|
6907
|
-
* @param {Function} customizer The function to customize comparisons.
|
|
6908
|
-
* @param {Function} equalFunc The function to determine equivalents of values.
|
|
6909
|
-
* @param {Object} stack Tracks traversed `object` and `other` objects.
|
|
6910
|
-
* @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
|
|
6260
|
+
* @param {string[]} input
|
|
6261
|
+
* @param {boolean} [keepZero=false]
|
|
6262
|
+
* @returns {string|undefined}
|
|
6911
6263
|
*/
|
|
6912
|
-
function
|
|
6913
|
-
|
|
6914
|
-
|
|
6915
|
-
|
|
6916
|
-
|
|
6917
|
-
|
|
6918
|
-
|
|
6919
|
-
if (objLength != othLength && !isPartial) {
|
|
6920
|
-
return false;
|
|
6264
|
+
function stringArrayToHexStripped (input, keepZero = false) {
|
|
6265
|
+
let acc = ''
|
|
6266
|
+
let strip = true
|
|
6267
|
+
for (const c of input) {
|
|
6268
|
+
if (HEX[c] === undefined) return undefined
|
|
6269
|
+
if (c !== '0' && strip === true) strip = false
|
|
6270
|
+
if (!strip) acc += c
|
|
6921
6271
|
}
|
|
6922
|
-
|
|
6923
|
-
|
|
6924
|
-
|
|
6925
|
-
|
|
6926
|
-
|
|
6272
|
+
if (keepZero && acc.length === 0) acc = '0'
|
|
6273
|
+
return acc
|
|
6274
|
+
}
|
|
6275
|
+
|
|
6276
|
+
function getIPV6 (input) {
|
|
6277
|
+
let tokenCount = 0
|
|
6278
|
+
const output = { error: false, address: '', zone: '' }
|
|
6279
|
+
const address = []
|
|
6280
|
+
const buffer = []
|
|
6281
|
+
let isZone = false
|
|
6282
|
+
let endipv6Encountered = false
|
|
6283
|
+
let endIpv6 = false
|
|
6284
|
+
|
|
6285
|
+
function consume () {
|
|
6286
|
+
if (buffer.length) {
|
|
6287
|
+
if (isZone === false) {
|
|
6288
|
+
const hex = stringArrayToHexStripped(buffer)
|
|
6289
|
+
if (hex !== undefined) {
|
|
6290
|
+
address.push(hex)
|
|
6291
|
+
} else {
|
|
6292
|
+
output.error = true
|
|
6293
|
+
return false
|
|
6294
|
+
}
|
|
6295
|
+
}
|
|
6296
|
+
buffer.length = 0
|
|
6927
6297
|
}
|
|
6298
|
+
return true
|
|
6928
6299
|
}
|
|
6929
|
-
// Check that cyclic values are equal.
|
|
6930
|
-
var objStacked = stack.get(object);
|
|
6931
|
-
var othStacked = stack.get(other);
|
|
6932
|
-
if (objStacked && othStacked) {
|
|
6933
|
-
return objStacked == other && othStacked == object;
|
|
6934
|
-
}
|
|
6935
|
-
var result = true;
|
|
6936
|
-
stack.set(object, other);
|
|
6937
|
-
stack.set(other, object);
|
|
6938
|
-
|
|
6939
|
-
var skipCtor = isPartial;
|
|
6940
|
-
while (++index < objLength) {
|
|
6941
|
-
key = objProps[index];
|
|
6942
|
-
var objValue = object[key],
|
|
6943
|
-
othValue = other[key];
|
|
6944
|
-
|
|
6945
|
-
if (customizer) {
|
|
6946
|
-
var compared = isPartial
|
|
6947
|
-
? customizer(othValue, objValue, key, other, object, stack)
|
|
6948
|
-
: customizer(objValue, othValue, key, object, other, stack);
|
|
6949
|
-
}
|
|
6950
|
-
// Recursively compare objects (susceptible to call stack limits).
|
|
6951
|
-
if (!(compared === undefined
|
|
6952
|
-
? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))
|
|
6953
|
-
: compared
|
|
6954
|
-
)) {
|
|
6955
|
-
result = false;
|
|
6956
|
-
break;
|
|
6957
|
-
}
|
|
6958
|
-
skipCtor || (skipCtor = key == 'constructor');
|
|
6959
|
-
}
|
|
6960
|
-
if (result && !skipCtor) {
|
|
6961
|
-
var objCtor = object.constructor,
|
|
6962
|
-
othCtor = other.constructor;
|
|
6963
6300
|
|
|
6964
|
-
|
|
6965
|
-
|
|
6966
|
-
|
|
6967
|
-
|
|
6968
|
-
|
|
6969
|
-
|
|
6301
|
+
for (let i = 0; i < input.length; i++) {
|
|
6302
|
+
const cursor = input[i]
|
|
6303
|
+
if (cursor === '[' || cursor === ']') { continue }
|
|
6304
|
+
if (cursor === ':') {
|
|
6305
|
+
if (endipv6Encountered === true) {
|
|
6306
|
+
endIpv6 = true
|
|
6307
|
+
}
|
|
6308
|
+
if (!consume()) { break }
|
|
6309
|
+
tokenCount++
|
|
6310
|
+
address.push(':')
|
|
6311
|
+
if (tokenCount > 7) {
|
|
6312
|
+
// not valid
|
|
6313
|
+
output.error = true
|
|
6314
|
+
break
|
|
6315
|
+
}
|
|
6316
|
+
if (i - 1 >= 0 && input[i - 1] === ':') {
|
|
6317
|
+
endipv6Encountered = true
|
|
6318
|
+
}
|
|
6319
|
+
continue
|
|
6320
|
+
} else if (cursor === '%') {
|
|
6321
|
+
if (!consume()) { break }
|
|
6322
|
+
// switch to zone detection
|
|
6323
|
+
isZone = true
|
|
6324
|
+
} else {
|
|
6325
|
+
buffer.push(cursor)
|
|
6326
|
+
continue
|
|
6970
6327
|
}
|
|
6971
6328
|
}
|
|
6972
|
-
|
|
6973
|
-
|
|
6974
|
-
|
|
6329
|
+
if (buffer.length) {
|
|
6330
|
+
if (isZone) {
|
|
6331
|
+
output.zone = buffer.join('')
|
|
6332
|
+
} else if (endIpv6) {
|
|
6333
|
+
address.push(buffer.join(''))
|
|
6334
|
+
} else {
|
|
6335
|
+
address.push(stringArrayToHexStripped(buffer))
|
|
6336
|
+
}
|
|
6337
|
+
}
|
|
6338
|
+
output.address = address.join('')
|
|
6339
|
+
return output
|
|
6975
6340
|
}
|
|
6976
6341
|
|
|
6977
|
-
|
|
6978
|
-
|
|
6342
|
+
function normalizeIPv6 (host) {
|
|
6343
|
+
if (findToken(host, ':') < 2) { return { host, isIPV6: false } }
|
|
6344
|
+
const ipv6 = getIPV6(host)
|
|
6979
6345
|
|
|
6980
|
-
|
|
6346
|
+
if (!ipv6.error) {
|
|
6347
|
+
let newHost = ipv6.address
|
|
6348
|
+
let escapedHost = ipv6.address
|
|
6349
|
+
if (ipv6.zone) {
|
|
6350
|
+
newHost += '%' + ipv6.zone
|
|
6351
|
+
escapedHost += '%25' + ipv6.zone
|
|
6352
|
+
}
|
|
6353
|
+
return { host: newHost, escapedHost, isIPV6: true }
|
|
6354
|
+
} else {
|
|
6355
|
+
return { host, isIPV6: false }
|
|
6356
|
+
}
|
|
6357
|
+
}
|
|
6981
6358
|
|
|
6982
|
-
|
|
6983
|
-
|
|
6359
|
+
function stripLeadingZeros (str, token) {
|
|
6360
|
+
let out = ''
|
|
6361
|
+
let skip = true
|
|
6362
|
+
const l = str.length
|
|
6363
|
+
for (let i = 0; i < l; i++) {
|
|
6364
|
+
const c = str[i]
|
|
6365
|
+
if (c === '0' && skip) {
|
|
6366
|
+
if ((i + 1 <= l && str[i + 1] === token) || i + 1 === l) {
|
|
6367
|
+
out += c
|
|
6368
|
+
skip = false
|
|
6369
|
+
}
|
|
6370
|
+
} else {
|
|
6371
|
+
if (c === token) {
|
|
6372
|
+
skip = true
|
|
6373
|
+
} else {
|
|
6374
|
+
skip = false
|
|
6375
|
+
}
|
|
6376
|
+
out += c
|
|
6377
|
+
}
|
|
6378
|
+
}
|
|
6379
|
+
return out
|
|
6380
|
+
}
|
|
6984
6381
|
|
|
6985
|
-
|
|
6986
|
-
|
|
6987
|
-
|
|
6988
|
-
|
|
6989
|
-
|
|
6990
|
-
|
|
6991
|
-
|
|
6992
|
-
|
|
6993
|
-
|
|
6994
|
-
|
|
6382
|
+
function findToken (str, token) {
|
|
6383
|
+
let ind = 0
|
|
6384
|
+
for (let i = 0; i < str.length; i++) {
|
|
6385
|
+
if (str[i] === token) ind++
|
|
6386
|
+
}
|
|
6387
|
+
return ind
|
|
6388
|
+
}
|
|
6389
|
+
|
|
6390
|
+
const RDS1 = /^\.\.?\//u
|
|
6391
|
+
const RDS2 = /^\/\.(?:\/|$)/u
|
|
6392
|
+
const RDS3 = /^\/\.\.(?:\/|$)/u
|
|
6393
|
+
const RDS5 = /^\/?(?:.|\n)*?(?=\/|$)/u
|
|
6394
|
+
|
|
6395
|
+
function removeDotSegments (input) {
|
|
6396
|
+
const output = []
|
|
6397
|
+
|
|
6398
|
+
while (input.length) {
|
|
6399
|
+
if (input.match(RDS1)) {
|
|
6400
|
+
input = input.replace(RDS1, '')
|
|
6401
|
+
} else if (input.match(RDS2)) {
|
|
6402
|
+
input = input.replace(RDS2, '/')
|
|
6403
|
+
} else if (input.match(RDS3)) {
|
|
6404
|
+
input = input.replace(RDS3, '/')
|
|
6405
|
+
output.pop()
|
|
6406
|
+
} else if (input === '.' || input === '..') {
|
|
6407
|
+
input = ''
|
|
6408
|
+
} else {
|
|
6409
|
+
const im = input.match(RDS5)
|
|
6410
|
+
if (im) {
|
|
6411
|
+
const s = im[0]
|
|
6412
|
+
input = input.slice(s.length)
|
|
6413
|
+
output.push(s)
|
|
6414
|
+
} else {
|
|
6415
|
+
throw new Error('Unexpected dot segment condition')
|
|
6416
|
+
}
|
|
6417
|
+
}
|
|
6418
|
+
}
|
|
6419
|
+
return output.join('')
|
|
6420
|
+
}
|
|
6995
6421
|
|
|
6996
|
-
|
|
6997
|
-
|
|
6998
|
-
|
|
6999
|
-
|
|
6422
|
+
function normalizeComponentEncoding (components, esc) {
|
|
6423
|
+
const func = esc !== true ? escape : unescape
|
|
6424
|
+
if (components.scheme !== undefined) {
|
|
6425
|
+
components.scheme = func(components.scheme)
|
|
6426
|
+
}
|
|
6427
|
+
if (components.userinfo !== undefined) {
|
|
6428
|
+
components.userinfo = func(components.userinfo)
|
|
6429
|
+
}
|
|
6430
|
+
if (components.host !== undefined) {
|
|
6431
|
+
components.host = func(components.host)
|
|
6432
|
+
}
|
|
6433
|
+
if (components.path !== undefined) {
|
|
6434
|
+
components.path = func(components.path)
|
|
6435
|
+
}
|
|
6436
|
+
if (components.query !== undefined) {
|
|
6437
|
+
components.query = func(components.query)
|
|
6438
|
+
}
|
|
6439
|
+
if (components.fragment !== undefined) {
|
|
6440
|
+
components.fragment = func(components.fragment)
|
|
6441
|
+
}
|
|
6442
|
+
return components
|
|
7000
6443
|
}
|
|
7001
6444
|
|
|
7002
|
-
|
|
6445
|
+
function recomposeAuthority (components) {
|
|
6446
|
+
const uriTokens = []
|
|
7003
6447
|
|
|
6448
|
+
if (components.userinfo !== undefined) {
|
|
6449
|
+
uriTokens.push(components.userinfo)
|
|
6450
|
+
uriTokens.push('@')
|
|
6451
|
+
}
|
|
7004
6452
|
|
|
7005
|
-
|
|
6453
|
+
if (components.host !== undefined) {
|
|
6454
|
+
let host = unescape(components.host)
|
|
6455
|
+
const ipV4res = normalizeIPv4(host)
|
|
6456
|
+
|
|
6457
|
+
if (ipV4res.isIPV4) {
|
|
6458
|
+
host = ipV4res.host
|
|
6459
|
+
} else {
|
|
6460
|
+
const ipV6res = normalizeIPv6(ipV4res.host)
|
|
6461
|
+
if (ipV6res.isIPV6 === true) {
|
|
6462
|
+
host = `[${ipV6res.escapedHost}]`
|
|
6463
|
+
} else {
|
|
6464
|
+
host = components.host
|
|
6465
|
+
}
|
|
6466
|
+
}
|
|
6467
|
+
uriTokens.push(host)
|
|
6468
|
+
}
|
|
7006
6469
|
|
|
7007
|
-
|
|
7008
|
-
|
|
6470
|
+
if (typeof components.port === 'number' || typeof components.port === 'string') {
|
|
6471
|
+
uriTokens.push(':')
|
|
6472
|
+
uriTokens.push(String(components.port))
|
|
6473
|
+
}
|
|
7009
6474
|
|
|
7010
|
-
|
|
7011
|
-
|
|
6475
|
+
return uriTokens.length ? uriTokens.join('') : undefined
|
|
6476
|
+
};
|
|
7012
6477
|
|
|
7013
|
-
|
|
7014
|
-
|
|
7015
|
-
|
|
7016
|
-
|
|
7017
|
-
|
|
7018
|
-
|
|
7019
|
-
|
|
7020
|
-
* @param {*} value The value to cache.
|
|
7021
|
-
* @returns {Object} Returns the cache instance.
|
|
7022
|
-
*/
|
|
7023
|
-
function setCacheAdd(value) {
|
|
7024
|
-
this.__data__.set(value, HASH_UNDEFINED);
|
|
7025
|
-
return this;
|
|
6478
|
+
module.exports = {
|
|
6479
|
+
recomposeAuthority,
|
|
6480
|
+
normalizeComponentEncoding,
|
|
6481
|
+
removeDotSegments,
|
|
6482
|
+
normalizeIPv4,
|
|
6483
|
+
normalizeIPv6,
|
|
6484
|
+
stringArrayToHexStripped
|
|
7026
6485
|
}
|
|
7027
6486
|
|
|
7028
|
-
module.exports = setCacheAdd;
|
|
7029
|
-
|
|
7030
6487
|
|
|
7031
6488
|
/***/ }),
|
|
7032
6489
|
|
|
7033
|
-
/***/
|
|
6490
|
+
/***/ 25127:
|
|
7034
6491
|
/***/ ((module) => {
|
|
7035
6492
|
|
|
7036
|
-
/**
|
|
7037
|
-
* Checks if `value` is in the array cache.
|
|
7038
|
-
*
|
|
7039
|
-
* @private
|
|
7040
|
-
* @name has
|
|
7041
|
-
* @memberOf SetCache
|
|
7042
|
-
* @param {*} value The value to search for.
|
|
7043
|
-
* @returns {number} Returns `true` if `value` is found, else `false`.
|
|
7044
|
-
*/
|
|
7045
|
-
function setCacheHas(value) {
|
|
7046
|
-
return this.__data__.has(value);
|
|
7047
|
-
}
|
|
7048
6493
|
|
|
7049
|
-
module.exports = setCacheHas;
|
|
7050
6494
|
|
|
6495
|
+
var traverse = module.exports = function (schema, opts, cb) {
|
|
6496
|
+
// Legacy support for v0.3.1 and earlier.
|
|
6497
|
+
if (typeof opts == 'function') {
|
|
6498
|
+
cb = opts;
|
|
6499
|
+
opts = {};
|
|
6500
|
+
}
|
|
7051
6501
|
|
|
7052
|
-
|
|
7053
|
-
|
|
7054
|
-
|
|
7055
|
-
/***/ ((module) => {
|
|
6502
|
+
cb = opts.cb || cb;
|
|
6503
|
+
var pre = (typeof cb == 'function') ? cb : cb.pre || function() {};
|
|
6504
|
+
var post = cb.post || function() {};
|
|
7056
6505
|
|
|
7057
|
-
|
|
7058
|
-
|
|
7059
|
-
*
|
|
7060
|
-
* @private
|
|
7061
|
-
* @param {Object} set The set to convert.
|
|
7062
|
-
* @returns {Array} Returns the values.
|
|
7063
|
-
*/
|
|
7064
|
-
function setToArray(set) {
|
|
7065
|
-
var index = -1,
|
|
7066
|
-
result = Array(set.size);
|
|
6506
|
+
_traverse(opts, pre, post, schema, '', schema);
|
|
6507
|
+
};
|
|
7067
6508
|
|
|
7068
|
-
set.forEach(function(value) {
|
|
7069
|
-
result[++index] = value;
|
|
7070
|
-
});
|
|
7071
|
-
return result;
|
|
7072
|
-
}
|
|
7073
6509
|
|
|
7074
|
-
|
|
6510
|
+
traverse.keywords = {
|
|
6511
|
+
additionalItems: true,
|
|
6512
|
+
items: true,
|
|
6513
|
+
contains: true,
|
|
6514
|
+
additionalProperties: true,
|
|
6515
|
+
propertyNames: true,
|
|
6516
|
+
not: true,
|
|
6517
|
+
if: true,
|
|
6518
|
+
then: true,
|
|
6519
|
+
else: true
|
|
6520
|
+
};
|
|
7075
6521
|
|
|
6522
|
+
traverse.arrayKeywords = {
|
|
6523
|
+
items: true,
|
|
6524
|
+
allOf: true,
|
|
6525
|
+
anyOf: true,
|
|
6526
|
+
oneOf: true
|
|
6527
|
+
};
|
|
7076
6528
|
|
|
7077
|
-
|
|
6529
|
+
traverse.propsKeywords = {
|
|
6530
|
+
$defs: true,
|
|
6531
|
+
definitions: true,
|
|
6532
|
+
properties: true,
|
|
6533
|
+
patternProperties: true,
|
|
6534
|
+
dependencies: true
|
|
6535
|
+
};
|
|
7078
6536
|
|
|
7079
|
-
|
|
7080
|
-
|
|
6537
|
+
traverse.skipKeywords = {
|
|
6538
|
+
default: true,
|
|
6539
|
+
enum: true,
|
|
6540
|
+
const: true,
|
|
6541
|
+
required: true,
|
|
6542
|
+
maximum: true,
|
|
6543
|
+
minimum: true,
|
|
6544
|
+
exclusiveMaximum: true,
|
|
6545
|
+
exclusiveMinimum: true,
|
|
6546
|
+
multipleOf: true,
|
|
6547
|
+
maxLength: true,
|
|
6548
|
+
minLength: true,
|
|
6549
|
+
pattern: true,
|
|
6550
|
+
format: true,
|
|
6551
|
+
maxItems: true,
|
|
6552
|
+
minItems: true,
|
|
6553
|
+
uniqueItems: true,
|
|
6554
|
+
maxProperties: true,
|
|
6555
|
+
minProperties: true
|
|
6556
|
+
};
|
|
7081
6557
|
|
|
7082
|
-
var baseIsEqual = __webpack_require__(32866);
|
|
7083
6558
|
|
|
7084
|
-
|
|
7085
|
-
|
|
7086
|
-
|
|
7087
|
-
|
|
7088
|
-
|
|
7089
|
-
|
|
7090
|
-
|
|
7091
|
-
|
|
7092
|
-
|
|
7093
|
-
|
|
7094
|
-
|
|
7095
|
-
|
|
7096
|
-
|
|
7097
|
-
|
|
7098
|
-
|
|
7099
|
-
|
|
7100
|
-
|
|
7101
|
-
|
|
7102
|
-
|
|
7103
|
-
|
|
7104
|
-
|
|
7105
|
-
*
|
|
7106
|
-
* _.isEqual(object, other);
|
|
7107
|
-
* // => true
|
|
7108
|
-
*
|
|
7109
|
-
* object === other;
|
|
7110
|
-
* // => false
|
|
7111
|
-
*/
|
|
7112
|
-
function isEqual(value, other) {
|
|
7113
|
-
return baseIsEqual(value, other);
|
|
6559
|
+
function _traverse(opts, pre, post, schema, jsonPtr, rootSchema, parentJsonPtr, parentKeyword, parentSchema, keyIndex) {
|
|
6560
|
+
if (schema && typeof schema == 'object' && !Array.isArray(schema)) {
|
|
6561
|
+
pre(schema, jsonPtr, rootSchema, parentJsonPtr, parentKeyword, parentSchema, keyIndex);
|
|
6562
|
+
for (var key in schema) {
|
|
6563
|
+
var sch = schema[key];
|
|
6564
|
+
if (Array.isArray(sch)) {
|
|
6565
|
+
if (key in traverse.arrayKeywords) {
|
|
6566
|
+
for (var i=0; i<sch.length; i++)
|
|
6567
|
+
_traverse(opts, pre, post, sch[i], jsonPtr + '/' + key + '/' + i, rootSchema, jsonPtr, key, schema, i);
|
|
6568
|
+
}
|
|
6569
|
+
} else if (key in traverse.propsKeywords) {
|
|
6570
|
+
if (sch && typeof sch == 'object') {
|
|
6571
|
+
for (var prop in sch)
|
|
6572
|
+
_traverse(opts, pre, post, sch[prop], jsonPtr + '/' + key + '/' + escapeJsonPtr(prop), rootSchema, jsonPtr, key, schema, prop);
|
|
6573
|
+
}
|
|
6574
|
+
} else if (key in traverse.keywords || (opts.allKeys && !(key in traverse.skipKeywords))) {
|
|
6575
|
+
_traverse(opts, pre, post, sch, jsonPtr + '/' + key, rootSchema, jsonPtr, key, schema);
|
|
6576
|
+
}
|
|
6577
|
+
}
|
|
6578
|
+
post(schema, jsonPtr, rootSchema, parentJsonPtr, parentKeyword, parentSchema, keyIndex);
|
|
6579
|
+
}
|
|
7114
6580
|
}
|
|
7115
6581
|
|
|
7116
|
-
|
|
6582
|
+
|
|
6583
|
+
function escapeJsonPtr(str) {
|
|
6584
|
+
return str.replace(/~/g, '~0').replace(/\//g, '~1');
|
|
6585
|
+
}
|
|
7117
6586
|
|
|
7118
6587
|
|
|
7119
6588
|
/***/ }),
|
|
7120
6589
|
|
|
7121
|
-
/***/
|
|
6590
|
+
/***/ 71143:
|
|
7122
6591
|
/***/ ((module) => {
|
|
7123
6592
|
|
|
7124
|
-
"use strict";
|
|
7125
6593
|
module.exports = JSON.parse('{"$id":"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#","description":"Meta-schema for $data reference (JSON AnySchema extension proposal)","type":"object","required":["$data"],"properties":{"$data":{"type":"string","anyOf":[{"format":"relative-json-pointer"},{"format":"json-pointer"}]}},"additionalProperties":false}');
|
|
7126
6594
|
|
|
7127
6595
|
/***/ }),
|
|
7128
6596
|
|
|
7129
|
-
/***/
|
|
6597
|
+
/***/ 31512:
|
|
7130
6598
|
/***/ ((module) => {
|
|
7131
6599
|
|
|
7132
|
-
"use strict";
|
|
7133
6600
|
module.exports = JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"http://json-schema.org/draft-07/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"$comment":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":true,"readOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"if":{"$ref":"#"},"then":{"$ref":"#"},"else":{"$ref":"#"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":true}');
|
|
7134
6601
|
|
|
7135
6602
|
/***/ })
|
|
7136
6603
|
|
|
7137
6604
|
}]);
|
|
7138
|
-
//# sourceMappingURL=
|
|
6605
|
+
//# sourceMappingURL=6236.ea8288f99f42bcff0039.js.map?v=ea8288f99f42bcff0039
|