notebook 7.4.0rc0__py3-none-any.whl → 7.4.1__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/static/{6236.ea8288f99f42bcff0039.js → 131.729c28b8323daf822cbe.js} +1583 -1050
- notebook/static/131.729c28b8323daf822cbe.js.map +1 -0
- notebook/static/{132.691a95a70c9fe7c1cc8f.js → 132.bbe0fd1e86fe078554cf.js} +2 -2
- notebook/static/{132.691a95a70c9fe7c1cc8f.js.map → 132.bbe0fd1e86fe078554cf.js.map} +1 -1
- notebook/static/{1650.5f86769d792e2f6834a2.js → 1650.bd3dea9432a7b69e4012.js} +4 -4
- notebook/static/{1650.5f86769d792e2f6834a2.js.map → 1650.bd3dea9432a7b69e4012.js.map} +1 -1
- notebook/static/{1684.83d8262288c722749256.js → 1684.469ee39cd97efd230d13.js} +5 -5
- notebook/static/{1684.83d8262288c722749256.js.map → 1684.469ee39cd97efd230d13.js.map} +1 -1
- notebook/static/{1715.31ca8e6a27554059ae6d.js → 1715.eb47d8a8fb23246d8368.js} +2 -2
- notebook/static/{1715.31ca8e6a27554059ae6d.js.map → 1715.eb47d8a8fb23246d8368.js.map} +1 -1
- notebook/static/{2228.4829c4be5d1369fc8c08.js → 2228.cda3deed71ac4d488b32.js} +2 -2
- notebook/static/{2228.4829c4be5d1369fc8c08.js.map → 2228.cda3deed71ac4d488b32.js.map} +1 -1
- notebook/static/{2913.5b676d091e1bc049840e.js → 2913.274b19d8f201991f4a69.js} +6 -6
- notebook/static/{2913.5b676d091e1bc049840e.js.map → 2913.274b19d8f201991f4a69.js.map} +1 -1
- notebook/static/{3146.0b943ef87caf8b2e0a25.js → 3146.b71b9d3886943ad605eb.js} +3 -3
- notebook/static/{3146.0b943ef87caf8b2e0a25.js.map → 3146.b71b9d3886943ad605eb.js.map} +1 -1
- notebook/static/{3197.9c2bb14fe784ee4c4642.js → 3197.c29a6f351f8c45adc2c5.js} +36 -37
- notebook/static/3197.c29a6f351f8c45adc2c5.js.map +1 -0
- notebook/static/{35.72c8a277c008cd943d91.js → 35.a486baf38b12aec5500f.js} +8 -22
- notebook/static/35.a486baf38b12aec5500f.js.map +1 -0
- notebook/static/{3619.94f58ca9f340882ec9c0.js → 3619.2e4bf80097f9890aef49.js} +2 -2
- notebook/static/{3619.94f58ca9f340882ec9c0.js.map → 3619.2e4bf80097f9890aef49.js.map} +1 -1
- notebook/static/{3768.d16e5254885f02885c3d.js → 3768.c850ec7880427e2d8e7f.js} +19 -19
- notebook/static/{7302.210ed2fce68cc9e56baf.js.map → 3768.c850ec7880427e2d8e7f.js.map} +1 -1
- notebook/static/{4324.efe0e7d5f17747588b74.js → 4324.fa653693694bd924557b.js} +308 -308
- notebook/static/4324.fa653693694bd924557b.js.map +1 -0
- notebook/static/{4382.f9db37f20cfcaaf6b192.js → 4382.d1360122785a038484e0.js} +3 -3
- notebook/static/{4382.f9db37f20cfcaaf6b192.js.map → 4382.d1360122785a038484e0.js.map} +1 -1
- notebook/static/{4406.8f272b06e8189d43ff5f.js → 4406.51814faad101884133fc.js} +5 -5
- notebook/static/{4406.8f272b06e8189d43ff5f.js.map → 4406.51814faad101884133fc.js.map} +1 -1
- notebook/static/{4645.f4ada6e941739ab9cfe7.js → 4645.9436fccf76f33495a266.js} +5 -5
- notebook/static/{4645.f4ada6e941739ab9cfe7.js.map → 4645.9436fccf76f33495a266.js.map} +1 -1
- notebook/static/{4837.87ff4e1392eeb22eab68.js → 4837.7d1b7cbf2f7bd5ff4274.js} +3 -3
- notebook/static/{4837.87ff4e1392eeb22eab68.js.map → 4837.7d1b7cbf2f7bd5ff4274.js.map} +1 -1
- notebook/static/{5135.9e823bbe23ab8fce7485.js → 5135.ca1cde8737ca87b8bf99.js} +11 -11
- notebook/static/{5135.9e823bbe23ab8fce7485.js.map → 5135.ca1cde8737ca87b8bf99.js.map} +1 -1
- notebook/static/5448.a9016133a2b9389ac102.js +951 -0
- notebook/static/5448.a9016133a2b9389ac102.js.map +1 -0
- notebook/static/{5573.4e4a07a102aa4b698ad9.js → 5573.99719d9cbf6ef3c79d1b.js} +17 -17
- notebook/static/{5573.4e4a07a102aa4b698ad9.js.map → 5573.99719d9cbf6ef3c79d1b.js.map} +1 -1
- notebook/static/{5601.46e8997c661be165fdbc.js → 5601.969b0f91318ba0d2c861.js} +5 -5
- notebook/static/{5601.46e8997c661be165fdbc.js.map → 5601.969b0f91318ba0d2c861.js.map} +1 -1
- notebook/static/{6345.d2829fcc732af2d87e50.js → 6345.fde2b9716946005d7b7e.js} +5 -5
- notebook/static/{6345.d2829fcc732af2d87e50.js.map → 6345.fde2b9716946005d7b7e.js.map} +1 -1
- notebook/static/{7302.210ed2fce68cc9e56baf.js → 7302.1028638d31004cdf54d7.js} +19 -19
- notebook/static/{3768.d16e5254885f02885c3d.js.map → 7302.1028638d31004cdf54d7.js.map} +1 -1
- notebook/static/{8218.983a3a002f016180aaab.js → 79.d9f6943863b1ed92fd09.js} +2 -2
- notebook/static/79.d9f6943863b1ed92fd09.js.map +1 -0
- notebook/static/{7906.2098cc1a1dc3238f8ad2.js → 7906.24a1d6f559e938f1f246.js} +3 -3
- notebook/static/{7906.2098cc1a1dc3238f8ad2.js.map → 7906.24a1d6f559e938f1f246.js.map} +1 -1
- notebook/static/{7995.d2f86b134a69be502c66.js → 7995.45be6443b704da1daafc.js} +3 -3
- notebook/static/{7995.d2f86b134a69be502c66.js.map → 7995.45be6443b704da1daafc.js.map} +1 -1
- notebook/static/{8579.ad02e595ead106b0b1ee.js → 8579.0f2ffb7e91b073333052.js} +13 -13
- notebook/static/{8579.ad02e595ead106b0b1ee.js.map → 8579.0f2ffb7e91b073333052.js.map} +1 -1
- notebook/static/{8781.d81d90b25d80ec2ab1fd.js → 8781.d22825cc38dd63ea198a.js} +60 -60
- notebook/static/{8781.d81d90b25d80ec2ab1fd.js.map → 8781.d22825cc38dd63ea198a.js.map} +1 -1
- notebook/static/{8845.639ebc34b4688cf4bf1c.js → 8845.ac1c5acb78cea4acee08.js} +7 -7
- notebook/static/{8845.639ebc34b4688cf4bf1c.js.map → 8845.ac1c5acb78cea4acee08.js.map} +1 -1
- notebook/static/{8875.079217ce5afa19dbc0f9.js → 8875.930af4f2d02cb069202b.js} +4 -4
- notebook/static/{8875.079217ce5afa19dbc0f9.js.map → 8875.930af4f2d02cb069202b.js.map} +1 -1
- notebook/static/{9068.82ae319a47d720f38db3.js → 9068.540551911cf35d92ccfa.js} +3 -3
- notebook/static/{9068.82ae319a47d720f38db3.js.map → 9068.540551911cf35d92ccfa.js.map} +1 -1
- notebook/static/{9380.ad0e839141388a05c188.js → 9380.2b805e488d46c14c20a1.js} +5 -5
- notebook/static/{9380.ad0e839141388a05c188.js.map → 9380.2b805e488d46c14c20a1.js.map} +1 -1
- notebook/static/{7789.3c3f5c1f233554a2add2.js → 9829.721a68fc1383b3bbff0c.js} +2 -2
- notebook/static/{7789.3c3f5c1f233554a2add2.js.map → 9829.721a68fc1383b3bbff0c.js.map} +1 -1
- notebook/static/main.e0796ccdb91661ecf6f0.js +1180 -0
- notebook/static/main.e0796ccdb91661ecf6f0.js.map +1 -0
- notebook/static/{notebook_core.9ad1da3c56e4826a4ef1.js → notebook_core.be06dafd0b7aa6754ffa.js} +6623 -856
- notebook/static/{notebook_core.9ad1da3c56e4826a4ef1.js.map → notebook_core.be06dafd0b7aa6754ffa.js.map} +1 -1
- notebook/static/third-party-licenses.json +105 -105
- 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.0rc0.data → notebook-7.4.1.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/package.json.orig +14 -14
- {notebook-7.4.0rc0.data → notebook-7.4.1.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/documentsearch-extension/package.json.orig +4 -4
- {notebook-7.4.0rc0.data → notebook-7.4.1.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/help-extension/package.json.orig +6 -6
- {notebook-7.4.0rc0.data → notebook-7.4.1.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/notebook-extension/package.json.orig +9 -9
- {notebook-7.4.0rc0.data → notebook-7.4.1.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/tree-extension/package.json.orig +15 -15
- {notebook-7.4.0rc0.data → notebook-7.4.1.data}/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/package.json +11 -11
- {notebook-7.4.0rc0.data → notebook-7.4.1.data}/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/schemas/@jupyter-notebook/lab-extension/package.json.orig +10 -10
- notebook-7.4.0rc0.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/568.1feb8bd10f19f8a92019.js → notebook-7.4.1.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/568.3cb448443af65777b224.js +1 -1
- notebook-7.4.0rc0.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/725.463c10ca93fb80504994.js → notebook-7.4.1.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/644.9e5b98f5332cc9dc3be5.js +1 -1
- notebook-7.4.0rc0.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/928.425dc0ea93c5e2c0f71b.js → notebook-7.4.1.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/928.daae2253ddb4a34b8e58.js +1 -1
- notebook-7.4.1.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/remoteEntry.642880ef752d818c35bb.js +1 -0
- {notebook-7.4.0rc0.data → notebook-7.4.1.data}/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/third-party-licenses.json +2 -2
- {notebook-7.4.0rc0.dist-info → notebook-7.4.1.dist-info}/METADATA +1 -1
- {notebook-7.4.0rc0.dist-info → notebook-7.4.1.dist-info}/RECORD +116 -116
- notebook/static/131.2d7644b406b0d9c7c44a.js +0 -1421
- notebook/static/131.2d7644b406b0d9c7c44a.js.map +0 -1
- notebook/static/3197.9c2bb14fe784ee4c4642.js.map +0 -1
- notebook/static/35.72c8a277c008cd943d91.js.map +0 -1
- notebook/static/4324.efe0e7d5f17747588b74.js.map +0 -1
- notebook/static/6236.ea8288f99f42bcff0039.js.map +0 -1
- notebook/static/8218.983a3a002f016180aaab.js.map +0 -1
- notebook/static/main.dad00688ccd4a81f2089.js +0 -1180
- notebook/static/main.dad00688ccd4a81f2089.js.map +0 -1
- notebook-7.4.0rc0.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/remoteEntry.e85e1e9e3320da7cee87.js +0 -1
- {notebook-7.4.0rc0.data → notebook-7.4.1.data}/data/etc/jupyter/jupyter_server_config.d/notebook.json +0 -0
- {notebook-7.4.0rc0.data → notebook-7.4.1.data}/data/share/applications/jupyter-notebook.desktop +0 -0
- {notebook-7.4.0rc0.data → notebook-7.4.1.data}/data/share/icons/hicolor/scalable/apps/notebook.svg +0 -0
- {notebook-7.4.0rc0.data → notebook-7.4.1.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/menus.json +0 -0
- {notebook-7.4.0rc0.data → notebook-7.4.1.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/pages.json +0 -0
- {notebook-7.4.0rc0.data → notebook-7.4.1.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/shell.json +0 -0
- {notebook-7.4.0rc0.data → notebook-7.4.1.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/title.json +0 -0
- {notebook-7.4.0rc0.data → notebook-7.4.1.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/top.json +0 -0
- {notebook-7.4.0rc0.data → notebook-7.4.1.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/zen.json +0 -0
- {notebook-7.4.0rc0.data → notebook-7.4.1.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/help-extension/open.json +0 -0
- {notebook-7.4.0rc0.data → notebook-7.4.1.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/notebook-extension/checkpoints.json +0 -0
- {notebook-7.4.0rc0.data → notebook-7.4.1.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/notebook-extension/edit-notebook-metadata.json +0 -0
- {notebook-7.4.0rc0.data → notebook-7.4.1.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/notebook-extension/full-width-notebook.json +0 -0
- {notebook-7.4.0rc0.data → notebook-7.4.1.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/notebook-extension/kernel-logo.json +0 -0
- {notebook-7.4.0rc0.data → notebook-7.4.1.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/notebook-extension/scroll-output.json +0 -0
- {notebook-7.4.0rc0.data → notebook-7.4.1.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/tree-extension/file-actions.json +0 -0
- {notebook-7.4.0rc0.data → notebook-7.4.1.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/tree-extension/widget.json +0 -0
- {notebook-7.4.0rc0.data → notebook-7.4.1.data}/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/schemas/@jupyter-notebook/lab-extension/interface-switcher.json +0 -0
- {notebook-7.4.0rc0.data → notebook-7.4.1.data}/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/schemas/@jupyter-notebook/lab-extension/launch-tree.json +0 -0
- {notebook-7.4.0rc0.data → notebook-7.4.1.data}/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/93.eae3497dd223d842d198.js +0 -0
- {notebook-7.4.0rc0.data → notebook-7.4.1.data}/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/style.js +0 -0
- {notebook-7.4.0rc0.dist-info → notebook-7.4.1.dist-info}/WHEEL +0 -0
- {notebook-7.4.0rc0.dist-info → notebook-7.4.1.dist-info}/entry_points.txt +0 -0
- {notebook-7.4.0rc0.dist-info → notebook-7.4.1.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,1421 +0,0 @@
|
|
|
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/ajv/dist/ajv.js
|
|
20
|
-
var dist_ajv = __webpack_require__(86236);
|
|
21
|
-
var ajv_default = /*#__PURE__*/__webpack_require__.n(dist_ajv);
|
|
22
|
-
// EXTERNAL MODULE: ../node_modules/ajv-formats/dist/index.js
|
|
23
|
-
var dist = __webpack_require__(38414);
|
|
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
|
-
/***/ 93747:
|
|
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
|
-
/***/ 38414:
|
|
646
|
-
/***/ ((module, exports, __webpack_require__) => {
|
|
647
|
-
|
|
648
|
-
"use strict";
|
|
649
|
-
|
|
650
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
651
|
-
const formats_1 = __webpack_require__(93747);
|
|
652
|
-
const limit_1 = __webpack_require__(79262);
|
|
653
|
-
const codegen_1 = __webpack_require__(15669);
|
|
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
|
-
/***/ 79262:
|
|
690
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
691
|
-
|
|
692
|
-
"use strict";
|
|
693
|
-
|
|
694
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
695
|
-
exports.formatLimitDefinition = void 0;
|
|
696
|
-
const ajv_1 = __webpack_require__(86236);
|
|
697
|
-
const codegen_1 = __webpack_require__(15669);
|
|
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
|
-
/***/ 52485:
|
|
766
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
767
|
-
|
|
768
|
-
var MapCache = __webpack_require__(74554),
|
|
769
|
-
setCacheAdd = __webpack_require__(38639),
|
|
770
|
-
setCacheHas = __webpack_require__(88379);
|
|
771
|
-
|
|
772
|
-
/**
|
|
773
|
-
*
|
|
774
|
-
* Creates an array cache object to store unique values.
|
|
775
|
-
*
|
|
776
|
-
* @private
|
|
777
|
-
* @constructor
|
|
778
|
-
* @param {Array} [values] The values to cache.
|
|
779
|
-
*/
|
|
780
|
-
function SetCache(values) {
|
|
781
|
-
var index = -1,
|
|
782
|
-
length = values == null ? 0 : values.length;
|
|
783
|
-
|
|
784
|
-
this.__data__ = new MapCache;
|
|
785
|
-
while (++index < length) {
|
|
786
|
-
this.add(values[index]);
|
|
787
|
-
}
|
|
788
|
-
}
|
|
789
|
-
|
|
790
|
-
// Add methods to `SetCache`.
|
|
791
|
-
SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
|
|
792
|
-
SetCache.prototype.has = setCacheHas;
|
|
793
|
-
|
|
794
|
-
module.exports = SetCache;
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
/***/ }),
|
|
798
|
-
|
|
799
|
-
/***/ 90756:
|
|
800
|
-
/***/ ((module) => {
|
|
801
|
-
|
|
802
|
-
/**
|
|
803
|
-
* A specialized version of `_.some` for arrays without support for iteratee
|
|
804
|
-
* shorthands.
|
|
805
|
-
*
|
|
806
|
-
* @private
|
|
807
|
-
* @param {Array} [array] The array to iterate over.
|
|
808
|
-
* @param {Function} predicate The function invoked per iteration.
|
|
809
|
-
* @returns {boolean} Returns `true` if any element passes the predicate check,
|
|
810
|
-
* else `false`.
|
|
811
|
-
*/
|
|
812
|
-
function arraySome(array, predicate) {
|
|
813
|
-
var index = -1,
|
|
814
|
-
length = array == null ? 0 : array.length;
|
|
815
|
-
|
|
816
|
-
while (++index < length) {
|
|
817
|
-
if (predicate(array[index], index, array)) {
|
|
818
|
-
return true;
|
|
819
|
-
}
|
|
820
|
-
}
|
|
821
|
-
return false;
|
|
822
|
-
}
|
|
823
|
-
|
|
824
|
-
module.exports = arraySome;
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
/***/ }),
|
|
828
|
-
|
|
829
|
-
/***/ 32866:
|
|
830
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
831
|
-
|
|
832
|
-
var baseIsEqualDeep = __webpack_require__(12772),
|
|
833
|
-
isObjectLike = __webpack_require__(92360);
|
|
834
|
-
|
|
835
|
-
/**
|
|
836
|
-
* The base implementation of `_.isEqual` which supports partial comparisons
|
|
837
|
-
* and tracks traversed objects.
|
|
838
|
-
*
|
|
839
|
-
* @private
|
|
840
|
-
* @param {*} value The value to compare.
|
|
841
|
-
* @param {*} other The other value to compare.
|
|
842
|
-
* @param {boolean} bitmask The bitmask flags.
|
|
843
|
-
* 1 - Unordered comparison
|
|
844
|
-
* 2 - Partial comparison
|
|
845
|
-
* @param {Function} [customizer] The function to customize comparisons.
|
|
846
|
-
* @param {Object} [stack] Tracks traversed `value` and `other` objects.
|
|
847
|
-
* @returns {boolean} Returns `true` if the values are equivalent, else `false`.
|
|
848
|
-
*/
|
|
849
|
-
function baseIsEqual(value, other, bitmask, customizer, stack) {
|
|
850
|
-
if (value === other) {
|
|
851
|
-
return true;
|
|
852
|
-
}
|
|
853
|
-
if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {
|
|
854
|
-
return value !== value && other !== other;
|
|
855
|
-
}
|
|
856
|
-
return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
|
|
857
|
-
}
|
|
858
|
-
|
|
859
|
-
module.exports = baseIsEqual;
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
/***/ }),
|
|
863
|
-
|
|
864
|
-
/***/ 12772:
|
|
865
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
866
|
-
|
|
867
|
-
var Stack = __webpack_require__(23694),
|
|
868
|
-
equalArrays = __webpack_require__(27042),
|
|
869
|
-
equalByTag = __webpack_require__(370),
|
|
870
|
-
equalObjects = __webpack_require__(39584),
|
|
871
|
-
getTag = __webpack_require__(3533),
|
|
872
|
-
isArray = __webpack_require__(19785),
|
|
873
|
-
isBuffer = __webpack_require__(43854),
|
|
874
|
-
isTypedArray = __webpack_require__(48519);
|
|
875
|
-
|
|
876
|
-
/** Used to compose bitmasks for value comparisons. */
|
|
877
|
-
var COMPARE_PARTIAL_FLAG = 1;
|
|
878
|
-
|
|
879
|
-
/** `Object#toString` result references. */
|
|
880
|
-
var argsTag = '[object Arguments]',
|
|
881
|
-
arrayTag = '[object Array]',
|
|
882
|
-
objectTag = '[object Object]';
|
|
883
|
-
|
|
884
|
-
/** Used for built-in method references. */
|
|
885
|
-
var objectProto = Object.prototype;
|
|
886
|
-
|
|
887
|
-
/** Used to check objects for own properties. */
|
|
888
|
-
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
889
|
-
|
|
890
|
-
/**
|
|
891
|
-
* A specialized version of `baseIsEqual` for arrays and objects which performs
|
|
892
|
-
* deep comparisons and tracks traversed objects enabling objects with circular
|
|
893
|
-
* references to be compared.
|
|
894
|
-
*
|
|
895
|
-
* @private
|
|
896
|
-
* @param {Object} object The object to compare.
|
|
897
|
-
* @param {Object} other The other object to compare.
|
|
898
|
-
* @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
|
|
899
|
-
* @param {Function} customizer The function to customize comparisons.
|
|
900
|
-
* @param {Function} equalFunc The function to determine equivalents of values.
|
|
901
|
-
* @param {Object} [stack] Tracks traversed `object` and `other` objects.
|
|
902
|
-
* @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
|
|
903
|
-
*/
|
|
904
|
-
function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
|
|
905
|
-
var objIsArr = isArray(object),
|
|
906
|
-
othIsArr = isArray(other),
|
|
907
|
-
objTag = objIsArr ? arrayTag : getTag(object),
|
|
908
|
-
othTag = othIsArr ? arrayTag : getTag(other);
|
|
909
|
-
|
|
910
|
-
objTag = objTag == argsTag ? objectTag : objTag;
|
|
911
|
-
othTag = othTag == argsTag ? objectTag : othTag;
|
|
912
|
-
|
|
913
|
-
var objIsObj = objTag == objectTag,
|
|
914
|
-
othIsObj = othTag == objectTag,
|
|
915
|
-
isSameTag = objTag == othTag;
|
|
916
|
-
|
|
917
|
-
if (isSameTag && isBuffer(object)) {
|
|
918
|
-
if (!isBuffer(other)) {
|
|
919
|
-
return false;
|
|
920
|
-
}
|
|
921
|
-
objIsArr = true;
|
|
922
|
-
objIsObj = false;
|
|
923
|
-
}
|
|
924
|
-
if (isSameTag && !objIsObj) {
|
|
925
|
-
stack || (stack = new Stack);
|
|
926
|
-
return (objIsArr || isTypedArray(object))
|
|
927
|
-
? equalArrays(object, other, bitmask, customizer, equalFunc, stack)
|
|
928
|
-
: equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
|
|
929
|
-
}
|
|
930
|
-
if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
|
|
931
|
-
var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),
|
|
932
|
-
othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');
|
|
933
|
-
|
|
934
|
-
if (objIsWrapped || othIsWrapped) {
|
|
935
|
-
var objUnwrapped = objIsWrapped ? object.value() : object,
|
|
936
|
-
othUnwrapped = othIsWrapped ? other.value() : other;
|
|
937
|
-
|
|
938
|
-
stack || (stack = new Stack);
|
|
939
|
-
return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
|
|
940
|
-
}
|
|
941
|
-
}
|
|
942
|
-
if (!isSameTag) {
|
|
943
|
-
return false;
|
|
944
|
-
}
|
|
945
|
-
stack || (stack = new Stack);
|
|
946
|
-
return equalObjects(object, other, bitmask, customizer, equalFunc, stack);
|
|
947
|
-
}
|
|
948
|
-
|
|
949
|
-
module.exports = baseIsEqualDeep;
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
/***/ }),
|
|
953
|
-
|
|
954
|
-
/***/ 65581:
|
|
955
|
-
/***/ ((module) => {
|
|
956
|
-
|
|
957
|
-
/**
|
|
958
|
-
* Checks if a `cache` value for `key` exists.
|
|
959
|
-
*
|
|
960
|
-
* @private
|
|
961
|
-
* @param {Object} cache The cache to query.
|
|
962
|
-
* @param {string} key The key of the entry to check.
|
|
963
|
-
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
964
|
-
*/
|
|
965
|
-
function cacheHas(cache, key) {
|
|
966
|
-
return cache.has(key);
|
|
967
|
-
}
|
|
968
|
-
|
|
969
|
-
module.exports = cacheHas;
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
/***/ }),
|
|
973
|
-
|
|
974
|
-
/***/ 27042:
|
|
975
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
976
|
-
|
|
977
|
-
var SetCache = __webpack_require__(52485),
|
|
978
|
-
arraySome = __webpack_require__(90756),
|
|
979
|
-
cacheHas = __webpack_require__(65581);
|
|
980
|
-
|
|
981
|
-
/** Used to compose bitmasks for value comparisons. */
|
|
982
|
-
var COMPARE_PARTIAL_FLAG = 1,
|
|
983
|
-
COMPARE_UNORDERED_FLAG = 2;
|
|
984
|
-
|
|
985
|
-
/**
|
|
986
|
-
* A specialized version of `baseIsEqualDeep` for arrays with support for
|
|
987
|
-
* partial deep comparisons.
|
|
988
|
-
*
|
|
989
|
-
* @private
|
|
990
|
-
* @param {Array} array The array to compare.
|
|
991
|
-
* @param {Array} other The other array to compare.
|
|
992
|
-
* @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
|
|
993
|
-
* @param {Function} customizer The function to customize comparisons.
|
|
994
|
-
* @param {Function} equalFunc The function to determine equivalents of values.
|
|
995
|
-
* @param {Object} stack Tracks traversed `array` and `other` objects.
|
|
996
|
-
* @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
|
|
997
|
-
*/
|
|
998
|
-
function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
|
|
999
|
-
var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
|
|
1000
|
-
arrLength = array.length,
|
|
1001
|
-
othLength = other.length;
|
|
1002
|
-
|
|
1003
|
-
if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
|
|
1004
|
-
return false;
|
|
1005
|
-
}
|
|
1006
|
-
// Check that cyclic values are equal.
|
|
1007
|
-
var arrStacked = stack.get(array);
|
|
1008
|
-
var othStacked = stack.get(other);
|
|
1009
|
-
if (arrStacked && othStacked) {
|
|
1010
|
-
return arrStacked == other && othStacked == array;
|
|
1011
|
-
}
|
|
1012
|
-
var index = -1,
|
|
1013
|
-
result = true,
|
|
1014
|
-
seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined;
|
|
1015
|
-
|
|
1016
|
-
stack.set(array, other);
|
|
1017
|
-
stack.set(other, array);
|
|
1018
|
-
|
|
1019
|
-
// Ignore non-index properties.
|
|
1020
|
-
while (++index < arrLength) {
|
|
1021
|
-
var arrValue = array[index],
|
|
1022
|
-
othValue = other[index];
|
|
1023
|
-
|
|
1024
|
-
if (customizer) {
|
|
1025
|
-
var compared = isPartial
|
|
1026
|
-
? customizer(othValue, arrValue, index, other, array, stack)
|
|
1027
|
-
: customizer(arrValue, othValue, index, array, other, stack);
|
|
1028
|
-
}
|
|
1029
|
-
if (compared !== undefined) {
|
|
1030
|
-
if (compared) {
|
|
1031
|
-
continue;
|
|
1032
|
-
}
|
|
1033
|
-
result = false;
|
|
1034
|
-
break;
|
|
1035
|
-
}
|
|
1036
|
-
// Recursively compare arrays (susceptible to call stack limits).
|
|
1037
|
-
if (seen) {
|
|
1038
|
-
if (!arraySome(other, function(othValue, othIndex) {
|
|
1039
|
-
if (!cacheHas(seen, othIndex) &&
|
|
1040
|
-
(arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
|
|
1041
|
-
return seen.push(othIndex);
|
|
1042
|
-
}
|
|
1043
|
-
})) {
|
|
1044
|
-
result = false;
|
|
1045
|
-
break;
|
|
1046
|
-
}
|
|
1047
|
-
} else if (!(
|
|
1048
|
-
arrValue === othValue ||
|
|
1049
|
-
equalFunc(arrValue, othValue, bitmask, customizer, stack)
|
|
1050
|
-
)) {
|
|
1051
|
-
result = false;
|
|
1052
|
-
break;
|
|
1053
|
-
}
|
|
1054
|
-
}
|
|
1055
|
-
stack['delete'](array);
|
|
1056
|
-
stack['delete'](other);
|
|
1057
|
-
return result;
|
|
1058
|
-
}
|
|
1059
|
-
|
|
1060
|
-
module.exports = equalArrays;
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
/***/ }),
|
|
1064
|
-
|
|
1065
|
-
/***/ 370:
|
|
1066
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
1067
|
-
|
|
1068
|
-
var Symbol = __webpack_require__(96539),
|
|
1069
|
-
Uint8Array = __webpack_require__(59942),
|
|
1070
|
-
eq = __webpack_require__(85638),
|
|
1071
|
-
equalArrays = __webpack_require__(27042),
|
|
1072
|
-
mapToArray = __webpack_require__(19383),
|
|
1073
|
-
setToArray = __webpack_require__(43735);
|
|
1074
|
-
|
|
1075
|
-
/** Used to compose bitmasks for value comparisons. */
|
|
1076
|
-
var COMPARE_PARTIAL_FLAG = 1,
|
|
1077
|
-
COMPARE_UNORDERED_FLAG = 2;
|
|
1078
|
-
|
|
1079
|
-
/** `Object#toString` result references. */
|
|
1080
|
-
var boolTag = '[object Boolean]',
|
|
1081
|
-
dateTag = '[object Date]',
|
|
1082
|
-
errorTag = '[object Error]',
|
|
1083
|
-
mapTag = '[object Map]',
|
|
1084
|
-
numberTag = '[object Number]',
|
|
1085
|
-
regexpTag = '[object RegExp]',
|
|
1086
|
-
setTag = '[object Set]',
|
|
1087
|
-
stringTag = '[object String]',
|
|
1088
|
-
symbolTag = '[object Symbol]';
|
|
1089
|
-
|
|
1090
|
-
var arrayBufferTag = '[object ArrayBuffer]',
|
|
1091
|
-
dataViewTag = '[object DataView]';
|
|
1092
|
-
|
|
1093
|
-
/** Used to convert symbols to primitives and strings. */
|
|
1094
|
-
var symbolProto = Symbol ? Symbol.prototype : undefined,
|
|
1095
|
-
symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;
|
|
1096
|
-
|
|
1097
|
-
/**
|
|
1098
|
-
* A specialized version of `baseIsEqualDeep` for comparing objects of
|
|
1099
|
-
* the same `toStringTag`.
|
|
1100
|
-
*
|
|
1101
|
-
* **Note:** This function only supports comparing values with tags of
|
|
1102
|
-
* `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
|
|
1103
|
-
*
|
|
1104
|
-
* @private
|
|
1105
|
-
* @param {Object} object The object to compare.
|
|
1106
|
-
* @param {Object} other The other object to compare.
|
|
1107
|
-
* @param {string} tag The `toStringTag` of the objects to compare.
|
|
1108
|
-
* @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
|
|
1109
|
-
* @param {Function} customizer The function to customize comparisons.
|
|
1110
|
-
* @param {Function} equalFunc The function to determine equivalents of values.
|
|
1111
|
-
* @param {Object} stack Tracks traversed `object` and `other` objects.
|
|
1112
|
-
* @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
|
|
1113
|
-
*/
|
|
1114
|
-
function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
|
|
1115
|
-
switch (tag) {
|
|
1116
|
-
case dataViewTag:
|
|
1117
|
-
if ((object.byteLength != other.byteLength) ||
|
|
1118
|
-
(object.byteOffset != other.byteOffset)) {
|
|
1119
|
-
return false;
|
|
1120
|
-
}
|
|
1121
|
-
object = object.buffer;
|
|
1122
|
-
other = other.buffer;
|
|
1123
|
-
|
|
1124
|
-
case arrayBufferTag:
|
|
1125
|
-
if ((object.byteLength != other.byteLength) ||
|
|
1126
|
-
!equalFunc(new Uint8Array(object), new Uint8Array(other))) {
|
|
1127
|
-
return false;
|
|
1128
|
-
}
|
|
1129
|
-
return true;
|
|
1130
|
-
|
|
1131
|
-
case boolTag:
|
|
1132
|
-
case dateTag:
|
|
1133
|
-
case numberTag:
|
|
1134
|
-
// Coerce booleans to `1` or `0` and dates to milliseconds.
|
|
1135
|
-
// Invalid dates are coerced to `NaN`.
|
|
1136
|
-
return eq(+object, +other);
|
|
1137
|
-
|
|
1138
|
-
case errorTag:
|
|
1139
|
-
return object.name == other.name && object.message == other.message;
|
|
1140
|
-
|
|
1141
|
-
case regexpTag:
|
|
1142
|
-
case stringTag:
|
|
1143
|
-
// Coerce regexes to strings and treat strings, primitives and objects,
|
|
1144
|
-
// as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring
|
|
1145
|
-
// for more details.
|
|
1146
|
-
return object == (other + '');
|
|
1147
|
-
|
|
1148
|
-
case mapTag:
|
|
1149
|
-
var convert = mapToArray;
|
|
1150
|
-
|
|
1151
|
-
case setTag:
|
|
1152
|
-
var isPartial = bitmask & COMPARE_PARTIAL_FLAG;
|
|
1153
|
-
convert || (convert = setToArray);
|
|
1154
|
-
|
|
1155
|
-
if (object.size != other.size && !isPartial) {
|
|
1156
|
-
return false;
|
|
1157
|
-
}
|
|
1158
|
-
// Assume cyclic values are equal.
|
|
1159
|
-
var stacked = stack.get(object);
|
|
1160
|
-
if (stacked) {
|
|
1161
|
-
return stacked == other;
|
|
1162
|
-
}
|
|
1163
|
-
bitmask |= COMPARE_UNORDERED_FLAG;
|
|
1164
|
-
|
|
1165
|
-
// Recursively compare objects (susceptible to call stack limits).
|
|
1166
|
-
stack.set(object, other);
|
|
1167
|
-
var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
|
|
1168
|
-
stack['delete'](object);
|
|
1169
|
-
return result;
|
|
1170
|
-
|
|
1171
|
-
case symbolTag:
|
|
1172
|
-
if (symbolValueOf) {
|
|
1173
|
-
return symbolValueOf.call(object) == symbolValueOf.call(other);
|
|
1174
|
-
}
|
|
1175
|
-
}
|
|
1176
|
-
return false;
|
|
1177
|
-
}
|
|
1178
|
-
|
|
1179
|
-
module.exports = equalByTag;
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
/***/ }),
|
|
1183
|
-
|
|
1184
|
-
/***/ 39584:
|
|
1185
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
1186
|
-
|
|
1187
|
-
var getAllKeys = __webpack_require__(51385);
|
|
1188
|
-
|
|
1189
|
-
/** Used to compose bitmasks for value comparisons. */
|
|
1190
|
-
var COMPARE_PARTIAL_FLAG = 1;
|
|
1191
|
-
|
|
1192
|
-
/** Used for built-in method references. */
|
|
1193
|
-
var objectProto = Object.prototype;
|
|
1194
|
-
|
|
1195
|
-
/** Used to check objects for own properties. */
|
|
1196
|
-
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
1197
|
-
|
|
1198
|
-
/**
|
|
1199
|
-
* A specialized version of `baseIsEqualDeep` for objects with support for
|
|
1200
|
-
* partial deep comparisons.
|
|
1201
|
-
*
|
|
1202
|
-
* @private
|
|
1203
|
-
* @param {Object} object The object to compare.
|
|
1204
|
-
* @param {Object} other The other object to compare.
|
|
1205
|
-
* @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
|
|
1206
|
-
* @param {Function} customizer The function to customize comparisons.
|
|
1207
|
-
* @param {Function} equalFunc The function to determine equivalents of values.
|
|
1208
|
-
* @param {Object} stack Tracks traversed `object` and `other` objects.
|
|
1209
|
-
* @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
|
|
1210
|
-
*/
|
|
1211
|
-
function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
|
|
1212
|
-
var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
|
|
1213
|
-
objProps = getAllKeys(object),
|
|
1214
|
-
objLength = objProps.length,
|
|
1215
|
-
othProps = getAllKeys(other),
|
|
1216
|
-
othLength = othProps.length;
|
|
1217
|
-
|
|
1218
|
-
if (objLength != othLength && !isPartial) {
|
|
1219
|
-
return false;
|
|
1220
|
-
}
|
|
1221
|
-
var index = objLength;
|
|
1222
|
-
while (index--) {
|
|
1223
|
-
var key = objProps[index];
|
|
1224
|
-
if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {
|
|
1225
|
-
return false;
|
|
1226
|
-
}
|
|
1227
|
-
}
|
|
1228
|
-
// Check that cyclic values are equal.
|
|
1229
|
-
var objStacked = stack.get(object);
|
|
1230
|
-
var othStacked = stack.get(other);
|
|
1231
|
-
if (objStacked && othStacked) {
|
|
1232
|
-
return objStacked == other && othStacked == object;
|
|
1233
|
-
}
|
|
1234
|
-
var result = true;
|
|
1235
|
-
stack.set(object, other);
|
|
1236
|
-
stack.set(other, object);
|
|
1237
|
-
|
|
1238
|
-
var skipCtor = isPartial;
|
|
1239
|
-
while (++index < objLength) {
|
|
1240
|
-
key = objProps[index];
|
|
1241
|
-
var objValue = object[key],
|
|
1242
|
-
othValue = other[key];
|
|
1243
|
-
|
|
1244
|
-
if (customizer) {
|
|
1245
|
-
var compared = isPartial
|
|
1246
|
-
? customizer(othValue, objValue, key, other, object, stack)
|
|
1247
|
-
: customizer(objValue, othValue, key, object, other, stack);
|
|
1248
|
-
}
|
|
1249
|
-
// Recursively compare objects (susceptible to call stack limits).
|
|
1250
|
-
if (!(compared === undefined
|
|
1251
|
-
? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))
|
|
1252
|
-
: compared
|
|
1253
|
-
)) {
|
|
1254
|
-
result = false;
|
|
1255
|
-
break;
|
|
1256
|
-
}
|
|
1257
|
-
skipCtor || (skipCtor = key == 'constructor');
|
|
1258
|
-
}
|
|
1259
|
-
if (result && !skipCtor) {
|
|
1260
|
-
var objCtor = object.constructor,
|
|
1261
|
-
othCtor = other.constructor;
|
|
1262
|
-
|
|
1263
|
-
// Non `Object` object instances with different constructors are not equal.
|
|
1264
|
-
if (objCtor != othCtor &&
|
|
1265
|
-
('constructor' in object && 'constructor' in other) &&
|
|
1266
|
-
!(typeof objCtor == 'function' && objCtor instanceof objCtor &&
|
|
1267
|
-
typeof othCtor == 'function' && othCtor instanceof othCtor)) {
|
|
1268
|
-
result = false;
|
|
1269
|
-
}
|
|
1270
|
-
}
|
|
1271
|
-
stack['delete'](object);
|
|
1272
|
-
stack['delete'](other);
|
|
1273
|
-
return result;
|
|
1274
|
-
}
|
|
1275
|
-
|
|
1276
|
-
module.exports = equalObjects;
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
/***/ }),
|
|
1280
|
-
|
|
1281
|
-
/***/ 19383:
|
|
1282
|
-
/***/ ((module) => {
|
|
1283
|
-
|
|
1284
|
-
/**
|
|
1285
|
-
* Converts `map` to its key-value pairs.
|
|
1286
|
-
*
|
|
1287
|
-
* @private
|
|
1288
|
-
* @param {Object} map The map to convert.
|
|
1289
|
-
* @returns {Array} Returns the key-value pairs.
|
|
1290
|
-
*/
|
|
1291
|
-
function mapToArray(map) {
|
|
1292
|
-
var index = -1,
|
|
1293
|
-
result = Array(map.size);
|
|
1294
|
-
|
|
1295
|
-
map.forEach(function(value, key) {
|
|
1296
|
-
result[++index] = [key, value];
|
|
1297
|
-
});
|
|
1298
|
-
return result;
|
|
1299
|
-
}
|
|
1300
|
-
|
|
1301
|
-
module.exports = mapToArray;
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
/***/ }),
|
|
1305
|
-
|
|
1306
|
-
/***/ 38639:
|
|
1307
|
-
/***/ ((module) => {
|
|
1308
|
-
|
|
1309
|
-
/** Used to stand-in for `undefined` hash values. */
|
|
1310
|
-
var HASH_UNDEFINED = '__lodash_hash_undefined__';
|
|
1311
|
-
|
|
1312
|
-
/**
|
|
1313
|
-
* Adds `value` to the array cache.
|
|
1314
|
-
*
|
|
1315
|
-
* @private
|
|
1316
|
-
* @name add
|
|
1317
|
-
* @memberOf SetCache
|
|
1318
|
-
* @alias push
|
|
1319
|
-
* @param {*} value The value to cache.
|
|
1320
|
-
* @returns {Object} Returns the cache instance.
|
|
1321
|
-
*/
|
|
1322
|
-
function setCacheAdd(value) {
|
|
1323
|
-
this.__data__.set(value, HASH_UNDEFINED);
|
|
1324
|
-
return this;
|
|
1325
|
-
}
|
|
1326
|
-
|
|
1327
|
-
module.exports = setCacheAdd;
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
/***/ }),
|
|
1331
|
-
|
|
1332
|
-
/***/ 88379:
|
|
1333
|
-
/***/ ((module) => {
|
|
1334
|
-
|
|
1335
|
-
/**
|
|
1336
|
-
* Checks if `value` is in the array cache.
|
|
1337
|
-
*
|
|
1338
|
-
* @private
|
|
1339
|
-
* @name has
|
|
1340
|
-
* @memberOf SetCache
|
|
1341
|
-
* @param {*} value The value to search for.
|
|
1342
|
-
* @returns {number} Returns `true` if `value` is found, else `false`.
|
|
1343
|
-
*/
|
|
1344
|
-
function setCacheHas(value) {
|
|
1345
|
-
return this.__data__.has(value);
|
|
1346
|
-
}
|
|
1347
|
-
|
|
1348
|
-
module.exports = setCacheHas;
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
/***/ }),
|
|
1352
|
-
|
|
1353
|
-
/***/ 43735:
|
|
1354
|
-
/***/ ((module) => {
|
|
1355
|
-
|
|
1356
|
-
/**
|
|
1357
|
-
* Converts `set` to an array of its values.
|
|
1358
|
-
*
|
|
1359
|
-
* @private
|
|
1360
|
-
* @param {Object} set The set to convert.
|
|
1361
|
-
* @returns {Array} Returns the values.
|
|
1362
|
-
*/
|
|
1363
|
-
function setToArray(set) {
|
|
1364
|
-
var index = -1,
|
|
1365
|
-
result = Array(set.size);
|
|
1366
|
-
|
|
1367
|
-
set.forEach(function(value) {
|
|
1368
|
-
result[++index] = value;
|
|
1369
|
-
});
|
|
1370
|
-
return result;
|
|
1371
|
-
}
|
|
1372
|
-
|
|
1373
|
-
module.exports = setToArray;
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
/***/ }),
|
|
1377
|
-
|
|
1378
|
-
/***/ 56141:
|
|
1379
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
1380
|
-
|
|
1381
|
-
var baseIsEqual = __webpack_require__(32866);
|
|
1382
|
-
|
|
1383
|
-
/**
|
|
1384
|
-
* Performs a deep comparison between two values to determine if they are
|
|
1385
|
-
* equivalent.
|
|
1386
|
-
*
|
|
1387
|
-
* **Note:** This method supports comparing arrays, array buffers, booleans,
|
|
1388
|
-
* date objects, error objects, maps, numbers, `Object` objects, regexes,
|
|
1389
|
-
* sets, strings, symbols, and typed arrays. `Object` objects are compared
|
|
1390
|
-
* by their own, not inherited, enumerable properties. Functions and DOM
|
|
1391
|
-
* nodes are compared by strict equality, i.e. `===`.
|
|
1392
|
-
*
|
|
1393
|
-
* @static
|
|
1394
|
-
* @memberOf _
|
|
1395
|
-
* @since 0.1.0
|
|
1396
|
-
* @category Lang
|
|
1397
|
-
* @param {*} value The value to compare.
|
|
1398
|
-
* @param {*} other The other value to compare.
|
|
1399
|
-
* @returns {boolean} Returns `true` if the values are equivalent, else `false`.
|
|
1400
|
-
* @example
|
|
1401
|
-
*
|
|
1402
|
-
* var object = { 'a': 1 };
|
|
1403
|
-
* var other = { 'a': 1 };
|
|
1404
|
-
*
|
|
1405
|
-
* _.isEqual(object, other);
|
|
1406
|
-
* // => true
|
|
1407
|
-
*
|
|
1408
|
-
* object === other;
|
|
1409
|
-
* // => false
|
|
1410
|
-
*/
|
|
1411
|
-
function isEqual(value, other) {
|
|
1412
|
-
return baseIsEqual(value, other);
|
|
1413
|
-
}
|
|
1414
|
-
|
|
1415
|
-
module.exports = isEqual;
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
/***/ })
|
|
1419
|
-
|
|
1420
|
-
}]);
|
|
1421
|
-
//# sourceMappingURL=131.2d7644b406b0d9c7c44a.js.map?v=2d7644b406b0d9c7c44a
|