shinkansen-transmission 2.2.2 → 2.2.4

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.
@@ -0,0 +1,4 @@
1
+ #!/bin/sh
2
+ . "$(dirname "$0")/_/husky.sh"
3
+
4
+ npx cross-env DEBUG=@modernpoacher/hooks* node .husky/post-commit.mjs
@@ -0,0 +1,8 @@
1
+ module.exports = (
2
+ import('@modernpoacher/hooks')
3
+ .then(({
4
+ postCommit
5
+ }) => (
6
+ postCommit()
7
+ ))
8
+ )
@@ -0,0 +1,5 @@
1
+ import {
2
+ postCommit
3
+ } from '@modernpoacher/hooks'
4
+
5
+ export default postCommit()
package/.husky/pre-commit CHANGED
@@ -1,4 +1,5 @@
1
1
  #!/bin/sh
2
2
  . "$(dirname "$0")/_/husky.sh"
3
3
 
4
- npm run pre-commit
4
+ npm run lint
5
+ npm run coverage
@@ -0,0 +1,66 @@
1
+ const debug = require('debug')
2
+
3
+ const log = debug('shinkansen-transmission')
4
+
5
+ const {
6
+ env: {
7
+ NODE_ENV = 'development'
8
+ }
9
+ } = process
10
+
11
+ log('`shinkansen` is awake')
12
+
13
+ function env () {
14
+ log({ NODE_ENV })
15
+
16
+ return (
17
+ NODE_ENV === 'production'
18
+ )
19
+ }
20
+
21
+ const presets = [
22
+ [
23
+ '@babel/env', {
24
+ targets: {
25
+ node: 'current',
26
+ browsers: [
27
+ 'last 4 versions',
28
+ 'safari >= 9',
29
+ 'ios >= 8',
30
+ 'ie >= 9',
31
+ '> 2%'
32
+ ]
33
+ },
34
+ useBuiltIns: 'usage',
35
+ corejs: 3
36
+ }
37
+ ]
38
+ ]
39
+
40
+ const plugins = [
41
+ '@babel/proposal-export-default-from',
42
+ '@babel/proposal-export-namespace-from',
43
+ [
44
+ 'module-resolver', {
45
+ alias: {
46
+ 'shinkansen-transmission/transmission/common': './src/transmission/common/index.mjs',
47
+ 'shinkansen-transmission/transmission/from-document-to-hash': './src/transmission/from-document-to-hash/index.mjs',
48
+ 'shinkansen-transmission/transmission/from-hash-to-document': './src/transmission/from-hash-to-document/index.mjs',
49
+ 'shinkansen-transmission/transmission/to-zashiki/transform-root-schema': './src/transmission/to-zashiki/transform-root-schema.mjs',
50
+ 'shinkansen-transmission/transmission/to-zashiki/transform-schema': './src/transmission/to-zashiki/transform-schema.mjs',
51
+ 'shinkansen-transmission/transmission/to-zashiki': './src/transmission/to-zashiki/index.mjs',
52
+ 'shinkansen-transmission/transmission': './src/transmission/index.mjs',
53
+ 'shinkansen-transmission': './src/index.cjs'
54
+ }
55
+ }
56
+ ]
57
+ ]
58
+
59
+ module.exports = (api) => {
60
+ if (api) api.cache.using(env)
61
+
62
+ return {
63
+ presets,
64
+ plugins
65
+ }
66
+ }
package/nvm.sh ADDED
@@ -0,0 +1,43 @@
1
+ #!/bin/bash
2
+
3
+ NVM=~/.nvm
4
+
5
+ if [ -f "$NVM/nvm.sh" ];
6
+ then
7
+ unset npm_package_scripts_nvm
8
+ unset npm_config_prefix
9
+ unset npm_lifecycle_script
10
+
11
+ source $NVM/nvm.sh
12
+ else
13
+ NVM=$(brew --prefix nvm 2> /dev/null)
14
+
15
+ if [ -f "$NVM/nvm.sh" ];
16
+ then
17
+ unset npm_package_scripts_nvm
18
+ unset npm_config_prefix
19
+ unset npm_lifecycle_script
20
+
21
+ source $NVM/nvm.sh
22
+ fi
23
+ fi
24
+
25
+ VERSION=$(nvm --version 2> /dev/null)
26
+
27
+ if [ -z "$VERSION" ];
28
+ then
29
+ echo Environment does not have NVM installed
30
+ else
31
+ echo Environment has NVM version $VERSION installed
32
+
33
+ set -e
34
+
35
+ nvm use
36
+
37
+ if [[ $? != 0 ]];
38
+ then
39
+ echo Environment does not have NVM configured
40
+ else
41
+ echo Environment has NVM version $VERSION configured
42
+ fi
43
+ fi
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shinkansen-transmission",
3
- "version": "2.2.2",
3
+ "version": "2.2.4",
4
4
  "description": "Shinkansen Transmission",
5
5
  "keywords": [
6
6
  "Shinkansen",
@@ -9,56 +9,65 @@
9
9
  "Zashiki",
10
10
  "Karakuri"
11
11
  ],
12
- "main": "./index.js",
12
+ "main": "./src/index.cjs",
13
+ "type": "module",
13
14
  "author": "Jonathan Perry for Modern Poacher Limited <modernpoacher@modernpoacher.com>",
14
15
  "license": "MIT",
15
16
  "engines": {
16
- "node": ">=12.19.0"
17
+ "node": ">=18.5.0"
17
18
  },
18
19
  "repository": {
19
20
  "type": "git",
20
21
  "url": "git@github.com/modernpoacher/shinkansen-transmission.git"
21
22
  },
22
23
  "scripts": {
23
- "prepublishOnly": "cross-env NODE_ENV=production npm run build",
24
- "prebuild": "npm run clean",
25
- "build": "cross-env DEBUG=shinkansen-transmission npm run babel",
26
- "build:watch": "npm run babel:watch",
27
- "clean": "rimraf lib",
28
- "babel": "babel src -d lib",
29
- "babel:watch": "npm run babel -- -w",
30
- "lint": "eslint .",
24
+ "prelint": "npm run nvm",
25
+ "lint": "eslint . --ext .mjs --ext .cjs",
31
26
  "lint:fix": "npm run lint -- --fix",
32
- "test": "NODE_ENV=test mocha -r @babel/register test --recursive --verbose",
33
- "coverage": "nyc --reporter=lcov npm run test",
34
- "pre-commit": "npm run lint && npm run coverage && npm run build && git add lib"
27
+ "pretest": "npm run nvm",
28
+ "test": "cross-env NODE_ENV=test mocha test --recursive --verbose",
29
+ "nvm": "bash nvm.sh",
30
+ "coverage": "nyc --reporter=lcov npm run test"
35
31
  },
36
32
  "dependencies": {
37
- "debug": "^4.3.2",
33
+ "debug": "^4.3.4",
38
34
  "fast-deep-equal": "^3.1.3"
39
35
  },
40
36
  "devDependencies": {
41
- "@babel/cli": "^7.15.4",
42
- "@babel/core": "^7.15.5",
43
- "@babel/eslint-parser": "^7.15.4",
44
- "@babel/plugin-proposal-export-default-from": "^7.14.5",
45
- "@babel/plugin-proposal-export-namespace-from": "^7.14.5",
46
- "@babel/preset-env": "^7.15.6",
47
- "@babel/register": "^7.15.3",
48
- "babel-loader": "^8.2.2",
49
- "babel-plugin-module-resolver": "^4.1.0",
50
- "chai": "^4.3.4",
51
- "core-js": "^3.17.3",
37
+ "@babel/core": "^7.21.8",
38
+ "@babel/eslint-parser": "^7.21.8",
39
+ "@babel/plugin-proposal-export-default-from": "^7.18.10",
40
+ "@babel/plugin-proposal-export-namespace-from": "^7.18.9",
41
+ "@babel/preset-env": "^7.21.5",
42
+ "@babel/register": "^7.21.0",
43
+ "@modernpoacher/hooks": "^1.0.394",
44
+ "babel-loader": "^9.1.2",
45
+ "babel-plugin-module-resolver": "^5.0.0",
46
+ "chai": "^4.3.7",
47
+ "core-js": "^3.30.1",
52
48
  "cross-env": "^7.0.3",
53
- "eslint": "^7.32.0",
54
- "eslint-config-standard": "^16.0.3",
55
- "eslint-import-resolver-babel-module": "^5.3.1",
56
- "eslint-plugin-import": "^2.24.2",
49
+ "eslint": "^8.40.0",
50
+ "eslint-config-standard": "^17.0.0",
51
+ "eslint-import-resolver-babel-module": "^5.3.2",
52
+ "eslint-plugin-import": "^2.27.5",
57
53
  "eslint-plugin-node": "^11.1.0",
58
- "eslint-plugin-promise": "^5.1.0",
59
- "husky": "^7.0.2",
60
- "mocha": "^9.1.1",
54
+ "eslint-plugin-promise": "^6.1.1",
55
+ "husky": "^8.0.3",
56
+ "mocha": "^10.2.0",
61
57
  "nyc": "^15.1.0",
62
- "rimraf": "^3.0.2"
58
+ "rimraf": "^5.0.0"
59
+ },
60
+ "exports": {
61
+ ".": {
62
+ "require": "./src/index.cjs",
63
+ "import": "./src/index.mjs"
64
+ },
65
+ "./transmission/common": "./src/transmission/common/index.mjs",
66
+ "./transmission/from-document-to-hash": "./src/transmission/from-document-to-hash/index.mjs",
67
+ "./transmission/from-hash-to-document": "./src/transmission/from-hash-to-document/index.mjs",
68
+ "./transmission/to-zashiki/transform-root-schema": "./src/transmission/to-zashiki/transform-root-schema.mjs",
69
+ "./transmission/to-zashiki/transform-schema": "./src/transmission/to-zashiki/transform-schema.mjs",
70
+ "./transmission/to-zashiki": "./src/transmission/to-zashiki/index.mjs",
71
+ "./transmission": "./src/transmission/index.mjs"
63
72
  }
64
73
  }
package/src/index.cjs ADDED
@@ -0,0 +1,17 @@
1
+ require('@babel/register')({ ignore: [/node_modules/], configFile: require.resolve('../babel.config.cjs') })
2
+
3
+ const debug = require('debug')
4
+
5
+ const log = debug('shinkansen-transmission')
6
+
7
+ log('`shinkansen` is awake')
8
+
9
+ const common = require('./transmission/common/index.mjs')
10
+ const { default: fromDocumentToHash } = require('./transmission/from-document-to-hash/index.mjs')
11
+ const { default: fromHashToDocument } = require('./transmission/from-hash-to-document/index.mjs')
12
+ const { default: toZashiki } = require('./transmission/to-zashiki/index.mjs')
13
+
14
+ module.exports.common = common
15
+ module.exports.fromDocumentToHash = fromDocumentToHash
16
+ module.exports.fromHashToDocument = fromHashToDocument
17
+ module.exports.toZashiki = toZashiki
package/src/index.mjs ADDED
@@ -0,0 +1,10 @@
1
+ import debug from 'debug'
2
+
3
+ const log = debug('shinkansen-transmission')
4
+
5
+ log('`shinkansen` is awake')
6
+
7
+ export * as common from './transmission/common/index.mjs'
8
+ export { default as fromDocumentToHash } from './transmission/from-document-to-hash/index.mjs'
9
+ export { default as fromHashToDocument } from './transmission/from-hash-to-document/index.mjs'
10
+ export { default as toZashiki } from './transmission/to-zashiki/index.mjs'
@@ -1,8 +1,8 @@
1
- /*
2
- * import debug from 'debug'
3
- *
4
- * const log = debug('shinkansen-transmission:common')
5
- */
1
+ import debug from 'debug'
2
+
3
+ const log = debug('shinkansen-transmission/transmission/common')
4
+
5
+ log('`shinkansen` is awake')
6
6
 
7
7
  export const isObject = (v) => (v || false) instanceof Object && !isArray(v)
8
8
 
@@ -18,9 +18,9 @@ import {
18
18
  getUri
19
19
  } from 'shinkansen-transmission/transmission/common'
20
20
 
21
- const log = debug('shinkansen-transmission:from-document-to-hash')
21
+ const log = debug('shinkansen-transmission/from-document-to-hash')
22
22
 
23
- log('`shinkansen-transmission` is awake')
23
+ log('`shinkansen` is awake')
24
24
 
25
25
  function findByKey (parentUri, uri) {
26
26
  /*
@@ -16,9 +16,9 @@ import {
16
16
  getUri
17
17
  } from 'shinkansen-transmission/transmission/common'
18
18
 
19
- const log = debug('shinkansen-transmission:from-hash-to-document')
19
+ const log = debug('shinkansen-transmission/from-hash-to-document')
20
20
 
21
- log('`shinkansen-transmission` is awake')
21
+ log('`shinkansen` is awake')
22
22
 
23
23
  export function toNull (v) {
24
24
  if (v === null || v === 'null') return null
@@ -0,0 +1,10 @@
1
+ import debug from 'debug'
2
+
3
+ const log = debug('shinkansen-transmission')
4
+
5
+ log('`shinkansen` is awake')
6
+
7
+ export * as common from './common/index.mjs'
8
+ export { default as fromDocumentToHash } from './from-document-to-hash/index.mjs'
9
+ export { default as fromHashToDocument } from './from-hash-to-document/index.mjs'
10
+ export { default as toZashiki } from './to-zashiki/index.mjs'
@@ -0,0 +1 @@
1
+ export { default } from './transform-root-schema.mjs'
@@ -71,11 +71,11 @@ import {
71
71
  renderStringForOneOf,
72
72
  renderStringForAllOf,
73
73
  renderString
74
- } from './transform-schema'
74
+ } from './transform-schema.mjs'
75
75
 
76
- const log = debug('shinkansen-transmission:to-zashiki:root-schema')
76
+ const log = debug('shinkansen-transmission/to-zashiki:root-schema')
77
77
 
78
- log('`shinkansen-transmission` is awake')
78
+ log('`shinkansen` is awake')
79
79
 
80
80
  export function getRenderParamsForEnum (rootSchema, values, params) {
81
81
  /*
@@ -54,9 +54,9 @@ import {
54
54
  getElementsFieldValue
55
55
  } from 'shinkansen-transmission/transmission/common'
56
56
 
57
- const log = debug('shinkansen-transmission:to-zashiki:schema')
57
+ const log = debug('shinkansen-transmission/to-zashiki/schema')
58
58
 
59
- log('`shinkansen-transmission` is awake')
59
+ log('`shinkansen` is awake')
60
60
 
61
61
  export function mapTransformNullByIndex (rootSchema, values, params) {
62
62
  /*
package/babel.config.js DELETED
@@ -1,61 +0,0 @@
1
- const debug = require('debug')
2
-
3
- const log = debug('shinkansen-transmission')
4
-
5
- const {
6
- env: {
7
- NODE_ENV = 'development'
8
- }
9
- } = process
10
-
11
- log('`shinkansen` is awake')
12
-
13
- function env () {
14
- log({ NODE_ENV })
15
-
16
- return (
17
- NODE_ENV === 'production'
18
- )
19
- }
20
-
21
- const presets = [
22
- [
23
- '@babel/env', {
24
- targets: {
25
- node: '12.19.0',
26
- browsers: [
27
- 'last 4 versions',
28
- 'safari >= 9',
29
- 'ios >= 8',
30
- 'ie >= 9',
31
- '> 2%'
32
- ]
33
- },
34
- useBuiltIns: 'usage',
35
- corejs: 3
36
- }
37
- ]
38
- ]
39
-
40
- const plugins = [
41
- '@babel/proposal-export-default-from',
42
- '@babel/proposal-export-namespace-from',
43
- [
44
- 'module-resolver', {
45
- alias: {
46
- 'shinkansen-transmission': './src'
47
- }
48
- }
49
- ]
50
- ]
51
-
52
- module.exports = (api) => {
53
- if (api) api.cache.using(env)
54
-
55
- return {
56
- compact: true,
57
- comments: false,
58
- presets,
59
- plugins
60
- }
61
- }
package/index.js DELETED
@@ -1,7 +0,0 @@
1
- const debug = require('debug')
2
-
3
- const log = debug('shinkansen-transmission')
4
-
5
- log('`transmission` is awake')
6
-
7
- module.exports = require('./lib')
package/lib/index.js DELETED
@@ -1 +0,0 @@
1
- "use strict";function _typeof(obj){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){_typeof=function _typeof(obj){return typeof obj;};}else{_typeof=function _typeof(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};}return _typeof(obj);}require("core-js/modules/es.array.iterator.js");require("core-js/modules/es.object.to-string.js");require("core-js/modules/es.string.iterator.js");require("core-js/modules/es.weak-map.js");require("core-js/modules/web.dom-collections.iterator.js");require("core-js/modules/es.object.define-property.js");require("core-js/modules/es.object.get-own-property-descriptor.js");require("core-js/modules/es.symbol.js");require("core-js/modules/es.symbol.description.js");require("core-js/modules/es.symbol.iterator.js");Object.defineProperty(exports,"__esModule",{value:true});Object.defineProperty(exports,"fromDocumentToHash",{enumerable:true,get:function get(){return _fromDocumentToHash2["default"];}});Object.defineProperty(exports,"fromHashToDocument",{enumerable:true,get:function get(){return _fromHashToDocument2["default"];}});Object.defineProperty(exports,"toZashiki",{enumerable:true,get:function get(){return _toZashiki2["default"];}});exports.common=void 0;var _common=_interopRequireWildcard(require("./transmission/common"));exports.common=_common;var _fromDocumentToHash2=_interopRequireDefault(require("./transmission/from-document-to-hash"));var _fromHashToDocument2=_interopRequireDefault(require("./transmission/from-hash-to-document"));var _toZashiki2=_interopRequireDefault(require("./transmission/to-zashiki"));function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj};}function _getRequireWildcardCache(nodeInterop){if(typeof WeakMap!=="function")return null;var cacheBabelInterop=new WeakMap();var cacheNodeInterop=new WeakMap();return(_getRequireWildcardCache=function _getRequireWildcardCache(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop;})(nodeInterop);}function _interopRequireWildcard(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule){return obj;}if(obj===null||_typeof(obj)!=="object"&&typeof obj!=="function"){return{"default":obj};}var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj)){return cache.get(obj);}var newObj={};var hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj){if(key!=="default"&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;if(desc&&(desc.get||desc.set)){Object.defineProperty(newObj,key,desc);}else{newObj[key]=obj[key];}}}newObj["default"]=obj;if(cache){cache.set(obj,newObj);}return newObj;}
@@ -1 +0,0 @@
1
- "use strict";require("core-js/modules/es.object.to-string.js");require("core-js/modules/es.symbol.iterator.js");require("core-js/modules/es.array.iterator.js");require("core-js/modules/es.string.iterator.js");require("core-js/modules/web.dom-collections.iterator.js");require("core-js/modules/es.function.name.js");require("core-js/modules/es.array.from.js");require("core-js/modules/es.object.define-property.js");Object.defineProperty(exports,"__esModule",{value:true});exports.getSelectedItems=getSelectedItems;exports.isParentUri=isParentUri;exports.getMetaProps=getMetaProps;exports.getMetaDefaultValue=getMetaDefaultValue;exports.hasMetaValue=hasMetaValue;exports.getMetaValue=getMetaValue;exports.hasValue=hasValue;exports.getValue=getValue;exports.getValueForEnum=getValueForEnum;exports.getIndexForEnum=getIndexForEnum;exports.getValueForAnyOf=getValueForAnyOf;exports.getIndexForAnyOf=getIndexForAnyOf;exports.getValueForOneOf=getValueForOneOf;exports.getIndexForOneOf=getIndexForOneOf;exports.getElementsProps=getElementsProps;exports.getElementsTitleProps=getElementsTitleProps;exports.getElementsDescriptionProps=getElementsDescriptionProps;exports.getElementsFieldPropsForEnum=getElementsFieldPropsForEnum;exports.getElementsFieldPropsForOneOf=getElementsFieldPropsForOneOf;exports.getElementsFieldPropsForAnyOf=getElementsFieldPropsForAnyOf;exports.getElementsFieldPropsForAllOf=getElementsFieldPropsForAllOf;exports.getElementsFieldProps=getElementsFieldProps;exports.getElementsFieldValue=getElementsFieldValue;exports.getMin=getMin;exports.getMax=getMax;exports.getMinLength=getMinLength;exports.getMaxLength=getMaxLength;exports.getMinItems=getMinItems;exports.getMaxItems=getMaxItems;exports.getHasUniqueItems=getHasUniqueItems;exports.getMinContains=getMinContains;exports.getMaxContains=getMaxContains;exports.getMinProperties=getMinProperties;exports.getMaxProperties=getMaxProperties;exports.getIsExclusiveMin=getIsExclusiveMin;exports.getIsExclusiveMax=getIsExclusiveMax;exports.getStep=getStep;exports.getPattern=exports.normaliseUri=exports.getUri=exports.getAllOf=exports.hasAllOf=exports.getOneOf=exports.hasOneOf=exports.getAnyOf=exports.hasAnyOf=exports.getDefault=exports.hasDefault=exports.getConst=exports.hasConst=exports.getEnum=exports.hasEnum=exports.transformValue=exports.getIsWriteOnly=exports.getIsReadOnly=exports.getDescription=exports.getTitle=exports.isDefaultValue=exports.toDefaultValue=exports.isConstValue=exports.toConstValue=exports.isPrimitive=exports.isNullSchema=exports.isBooleanSchema=exports.isObjectSchema=exports.isArraySchema=exports.isNumberSchema=exports.isStringSchema=exports.isSchema=exports.isArray=exports.isObject=void 0;require("core-js/modules/es.array.is-array.js");require("core-js/modules/es.reflect.has.js");require("core-js/modules/es.reflect.get.js");require("core-js/modules/es.symbol.js");require("core-js/modules/es.symbol.description.js");require("core-js/modules/es.string.ends-with.js");require("core-js/modules/es.array.concat.js");require("core-js/modules/es.number.constructor.js");require("core-js/modules/es.array.map.js");require("core-js/modules/es.regexp.constructor.js");require("core-js/modules/es.regexp.exec.js");require("core-js/modules/es.regexp.to-string.js");require("core-js/modules/es.array.filter.js");require("core-js/modules/es.object.entries.js");require("core-js/modules/es.array.slice.js");require("core-js/modules/es.array.last-index-of.js");function _slicedToArray(arr,i){return _arrayWithHoles(arr)||_iterableToArrayLimit(arr,i)||_unsupportedIterableToArray(arr,i)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(o,minLen){if(!o)return;if(typeof o==="string")return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor)n=o.constructor.name;if(n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen);}function _arrayLikeToArray(arr,len){if(len==null||len>arr.length)len=arr.length;for(var i=0,arr2=new Array(len);i<len;i++){arr2[i]=arr[i];}return arr2;}function _iterableToArrayLimit(arr,i){var _i=arr==null?null:typeof Symbol!=="undefined"&&arr[Symbol.iterator]||arr["@@iterator"];if(_i==null)return;var _arr=[];var _n=true;var _d=false;var _s,_e;try{for(_i=_i.call(arr);!(_n=(_s=_i.next()).done);_n=true){_arr.push(_s.value);if(i&&_arr.length===i)break;}}catch(err){_d=true;_e=err;}finally{try{if(!_n&&_i["return"]!=null)_i["return"]();}finally{if(_d)throw _e;}}return _arr;}function _arrayWithHoles(arr){if(Array.isArray(arr))return arr;}var isObject=function isObject(v){return(v||false)instanceof Object&&!isArray(v);};exports.isObject=isObject;var isArray=function isArray(v){return Array.isArray(v);};exports.isArray=isArray;var isSchema=function isSchema(){var v=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};return Reflect.has(v,'type');};exports.isSchema=isSchema;var isStringSchema=function isStringSchema(){var _ref=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},type=_ref.type;return type==='string';};exports.isStringSchema=isStringSchema;var isNumberSchema=function isNumberSchema(){var _ref2=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},type=_ref2.type;return type==='number';};exports.isNumberSchema=isNumberSchema;var isArraySchema=function isArraySchema(){var _ref3=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},type=_ref3.type;return type==='array';};exports.isArraySchema=isArraySchema;var isObjectSchema=function isObjectSchema(){var _ref4=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},type=_ref4.type;return type==='object';};exports.isObjectSchema=isObjectSchema;var isBooleanSchema=function isBooleanSchema(){var _ref5=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},type=_ref5.type;return type==='boolean';};exports.isBooleanSchema=isBooleanSchema;var isNullSchema=function isNullSchema(){var _ref6=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},type=_ref6.type;return type==='null';};exports.isNullSchema=isNullSchema;var isPrimitive=function isPrimitive(v){return!isObject(v)&&!isArray(v);};exports.isPrimitive=isPrimitive;var toConstValue=function toConstValue(){var schema=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};return Reflect.get(schema,'const');};exports.toConstValue=toConstValue;var isConstValue=function isConstValue(){var schema=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};return Reflect.has(schema,'const');};exports.isConstValue=isConstValue;var toDefaultValue=function toDefaultValue(){var schema=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};return Reflect.get(schema,'default');};exports.toDefaultValue=toDefaultValue;var isDefaultValue=function isDefaultValue(){var schema=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};return Reflect.has(schema,'default');};exports.isDefaultValue=isDefaultValue;var getTitle=function getTitle(){var _ref7=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},title=_ref7.title;return title?{title:title}:{};};exports.getTitle=getTitle;var getDescription=function getDescription(){var _ref8=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},description=_ref8.description;return description?{description:description}:{};};exports.getDescription=getDescription;var getIsReadOnly=function getIsReadOnly(){var _ref9=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},_ref9$readOnly=_ref9.readOnly,readOnly=_ref9$readOnly===void 0?false:_ref9$readOnly;return readOnly?{readOnly:readOnly}:{};};exports.getIsReadOnly=getIsReadOnly;var getIsWriteOnly=function getIsWriteOnly(){var _ref10=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},_ref10$writeOnly=_ref10.writeOnly,writeOnly=_ref10$writeOnly===void 0?false:_ref10$writeOnly;return writeOnly?{writeOnly:writeOnly}:{};};exports.getIsWriteOnly=getIsWriteOnly;var getUriForRegExp=function getUriForRegExp(uri){return uri.endsWith('/')?uri:uri.concat('/');};function getSelectedItems(){var values=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var uri=arguments.length>1&&arguments[1]!==undefined?arguments[1]:'#';var u=normaliseUri(uri);if(Reflect.has(values,u)){var v=Reflect.get(values,u);if(isPrimitive(v)){var n=Number(v);return isNaN(n)?[v]:[n];}else{return v.map(function(v){var n=Number(v);return isNaN(n)?v:n;});}}var pattern=new RegExp("^".concat(getUriForRegExp(u),"\\d+$"));return Object.entries(values).filter(function(_ref11){var _ref12=_slicedToArray(_ref11,1),key=_ref12[0];return pattern.test(key);}).map(function(_ref13){var _ref14=_slicedToArray(_ref13,2),key=_ref14[0],value=_ref14[1];var i=Number(key.slice(key.lastIndexOf('/')+1));var v=isArray(value)?value[i]:value;var n=Number(v);if(!isNaN(n))return n;return v;});}function isParentUri(){var parentUri=arguments.length>0&&arguments[0]!==undefined?arguments[0]:'#';var uri=arguments.length>1&&arguments[1]!==undefined?arguments[1]:'#';return parentUri!=='#'&&parentUri!==uri;}function getMetaProps(){var params=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var uri=arguments.length>1&&arguments[1]!==undefined?arguments[1]:'#';var meta;if(Reflect.has(params,uri)){var _Reflect$get=Reflect.get(params,uri);meta=_Reflect$get.meta;}return meta||{};}function getMetaDefaultValue(){var schema=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};if(Reflect.has(schema,'default')){var defaultValue=Reflect.get(schema,'default');return{defaultValue:String(defaultValue)};}return{};}function hasMetaValue(){var values=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var uri=arguments.length>1&&arguments[1]!==undefined?arguments[1]:'#';var schema=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};if(Reflect.has(values,uri)){var value=Reflect.get(values,uri);return isPrimitive(value);}else{if(Reflect.has(schema,'const')){var constValue=Reflect.get(schema,'const');return isPrimitive(constValue);}}return false;}function getMetaValue(){var values=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var uri=arguments.length>1&&arguments[1]!==undefined?arguments[1]:'#';var schema=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};if(Reflect.has(values,uri)){var value=Reflect.get(values,uri);if(isPrimitive(value)){return{value:String(value)};}}else{if(Reflect.has(schema,'const')){var constValue=Reflect.get(schema,'const');if(isPrimitive(constValue)){return{value:String(constValue)};}}}return{};}var transformValue=function transformValue(schema){return isObject(schema)?isConstValue(schema)?toConstValue(schema):isDefaultValue(schema)?toDefaultValue(schema):schema:schema;};exports.transformValue=transformValue;function hasValue(){var values=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var uri=arguments.length>1&&arguments[1]!==undefined?arguments[1]:'#';var schema=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};if(Reflect.has(values,uri)){var value=Reflect.get(values,uri);return isPrimitive(value);}else{if(Reflect.has(schema,'const')){var constValue=Reflect.get(schema,'const');return isPrimitive(constValue);}}return false;}function getValue(){var values=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var uri=arguments.length>1&&arguments[1]!==undefined?arguments[1]:'#';var schema=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};if(Reflect.has(values,uri)){var value=Reflect.get(values,uri);if(isPrimitive(value)){return String(value);}}else{if(Reflect.has(schema,'const')){var constValue=Reflect.get(schema,'const');if(isPrimitive(constValue)){return String(constValue);}}}}function getValueForEnum(v){var _ref15=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},_ref15$enum=_ref15["enum"],items=_ref15$enum===void 0?[]:_ref15$enum;if(Reflect.has(items,v)){var enumValue=Reflect.get(items,v);return String(enumValue);}}function getIndexForEnum(){var values=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var parentUri=arguments.length>1&&arguments[1]!==undefined?arguments[1]:'#';var uri=arguments.length>2&&arguments[2]!==undefined?arguments[2]:'#';var schema=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};if(/\/\d+$/.test(uri)){return Number(uri.slice(uri.lastIndexOf('/')+1));}return NaN;}function getValueForAnyOf(v){var _ref16=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},_ref16$anyOf=_ref16.anyOf,items=_ref16$anyOf===void 0?[]:_ref16$anyOf;if(Reflect.has(items,v)){var anyOf=Reflect.get(items,v);var anyOfValue=transformValue(anyOf);if(isPrimitive(anyOfValue)){return String(anyOfValue);}}}function getIndexForAnyOf(){var values=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var parentUri=arguments.length>1&&arguments[1]!==undefined?arguments[1]:'#';var uri=arguments.length>2&&arguments[2]!==undefined?arguments[2]:'#';var schema=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};if(/\/\d+$/.test(uri)){return Number(uri.slice(uri.lastIndexOf('/')+1));}return NaN;}function getValueForOneOf(v){var _ref17=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},_ref17$oneOf=_ref17.oneOf,items=_ref17$oneOf===void 0?[]:_ref17$oneOf;if(Reflect.has(items,v)){var oneOf=Reflect.get(items,v);var oneOfValue=transformValue(oneOf);if(isPrimitive(oneOfValue)){return String(oneOfValue);}}}function getIndexForOneOf(){var values=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var parentUri=arguments.length>1&&arguments[1]!==undefined?arguments[1]:'#';var uri=arguments.length>2&&arguments[2]!==undefined?arguments[2]:'#';var schema=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};if(/\/\d+$/.test(uri)){return Number(uri.slice(uri.lastIndexOf('/')+1));}return NaN;}function getElementsProps(){var params=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var uri=arguments.length>1&&arguments[1]!==undefined?arguments[1]:'#';var elements;if(Reflect.has(params,uri)){var _Reflect$get2=Reflect.get(params,uri);var _Reflect$get2$element=_Reflect$get2.elements;elements=_Reflect$get2$element===void 0?{}:_Reflect$get2$element;}return elements||{};}function getElementsTitleProps(){var params=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var uri=arguments.length>1&&arguments[1]!==undefined?arguments[1]:'#';var title;if(Reflect.has(params,uri)){var _Reflect$get3=Reflect.get(params,uri);var _Reflect$get3$element=_Reflect$get3.elements;_Reflect$get3$element=_Reflect$get3$element===void 0?{}:_Reflect$get3$element;title=_Reflect$get3$element.title;}return title||{};}function getElementsDescriptionProps(){var params=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var uri=arguments.length>1&&arguments[1]!==undefined?arguments[1]:'#';var description;if(Reflect.has(params,uri)){var _Reflect$get4=Reflect.get(params,uri);var _Reflect$get4$element=_Reflect$get4.elements;_Reflect$get4$element=_Reflect$get4$element===void 0?{}:_Reflect$get4$element;description=_Reflect$get4$element.description;}return description||{};}function getElementsFieldPropsForEnum(){var params=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var uri=arguments.length>1&&arguments[1]!==undefined?arguments[1]:'#';var field;if(Reflect.has(params,uri)){var _Reflect$get5=Reflect.get(params,uri);var _Reflect$get5$element=_Reflect$get5.elements;_Reflect$get5$element=_Reflect$get5$element===void 0?{}:_Reflect$get5$element;field=_Reflect$get5$element["enum"];}return field||{};}function getElementsFieldPropsForOneOf(){var params=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var uri=arguments.length>1&&arguments[1]!==undefined?arguments[1]:'#';var field;if(Reflect.has(params,uri)){var _Reflect$get6=Reflect.get(params,uri);var _Reflect$get6$element=_Reflect$get6.elements;_Reflect$get6$element=_Reflect$get6$element===void 0?{}:_Reflect$get6$element;field=_Reflect$get6$element.oneOf;}return field||{};}function getElementsFieldPropsForAnyOf(){var params=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var uri=arguments.length>1&&arguments[1]!==undefined?arguments[1]:'#';var field;if(Reflect.has(params,uri)){var _Reflect$get7=Reflect.get(params,uri);var _Reflect$get7$element=_Reflect$get7.elements;_Reflect$get7$element=_Reflect$get7$element===void 0?{}:_Reflect$get7$element;field=_Reflect$get7$element.anyOf;}return field||{};}function getElementsFieldPropsForAllOf(){var params=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var uri=arguments.length>1&&arguments[1]!==undefined?arguments[1]:'#';var field;if(Reflect.has(params,uri)){var _Reflect$get8=Reflect.get(params,uri);var _Reflect$get8$element=_Reflect$get8.elements;_Reflect$get8$element=_Reflect$get8$element===void 0?{}:_Reflect$get8$element;field=_Reflect$get8$element.field;}return field||{};}function getElementsFieldProps(){var params=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var uri=arguments.length>1&&arguments[1]!==undefined?arguments[1]:'#';var field;if(Reflect.has(params,uri)){var _Reflect$get9=Reflect.get(params,uri);var _Reflect$get9$element=_Reflect$get9.elements;_Reflect$get9$element=_Reflect$get9$element===void 0?{}:_Reflect$get9$element;field=_Reflect$get9$element.field;}return field||{};}function getElementsFieldValue(){var values=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var uri=arguments.length>1&&arguments[1]!==undefined?arguments[1]:'#';var schema=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};if(Reflect.has(values,uri)){var value=Reflect.get(values,uri);if(isPrimitive(value)){return{value:String(value)};}}else{if(Reflect.has(schema,'const')){var constValue=Reflect.get(schema,'const');if(isPrimitive(constValue)){return{value:String(constValue)};}}else{if(Reflect.has(schema,'default')){var defaultValue=Reflect.get(schema,'default');if(isPrimitive(defaultValue)){return{value:String(defaultValue)};}}}}return{};}var hasEnum=function hasEnum(){var schema=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};return Reflect.has(schema,'enum');};exports.hasEnum=hasEnum;var getEnum=function getEnum(){var schema=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};return Reflect.get(schema,'enum');};exports.getEnum=getEnum;var hasConst=function hasConst(){var schema=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};return Reflect.has(schema,'const');};exports.hasConst=hasConst;var getConst=function getConst(){var schema=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};return Reflect.get(schema,'const');};exports.getConst=getConst;var hasDefault=function hasDefault(){var schema=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};return Reflect.has(schema,'default');};exports.hasDefault=hasDefault;var getDefault=function getDefault(){var schema=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};return Reflect.get(schema,'default');};exports.getDefault=getDefault;var hasAnyOf=function hasAnyOf(){var schema=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};return Reflect.has(schema,'anyOf');};exports.hasAnyOf=hasAnyOf;var getAnyOf=function getAnyOf(){var schema=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};return Reflect.get(schema,'anyOf');};exports.getAnyOf=getAnyOf;var hasOneOf=function hasOneOf(){var schema=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};return Reflect.has(schema,'oneOf');};exports.hasOneOf=hasOneOf;var getOneOf=function getOneOf(){var schema=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};return Reflect.get(schema,'oneOf');};exports.getOneOf=getOneOf;var hasAllOf=function hasAllOf(){var schema=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};return Reflect.has(schema,'allOf');};exports.hasAllOf=hasAllOf;var getAllOf=function getAllOf(){var schema=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};return Reflect.get(schema,'allOf');};exports.getAllOf=getAllOf;var getUri=function getUri(){var uri=arguments.length>0&&arguments[0]!==undefined?arguments[0]:'#';var resource=arguments.length>1&&arguments[1]!==undefined?arguments[1]:'';return(uri.endsWith('/')?uri:uri.concat('/')).concat(resource);};exports.getUri=getUri;var normaliseUri=function normaliseUri(){var uri=arguments.length>0&&arguments[0]!==undefined?arguments[0]:'#';return uri==='#'?'#/':uri;};exports.normaliseUri=normaliseUri;function getMin(){var _ref18=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},minimum=_ref18.minimum;var value=Number(minimum);return isNaN(value)?{}:{min:value};}function getMax(){var _ref19=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},maximum=_ref19.maximum;var value=Number(maximum);return isNaN(value)?{}:{max:value};}function getMinLength(){var _ref20=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},minLength=_ref20.minLength;var value=Number(minLength);return isNaN(value)?{}:{minLength:value};}function getMaxLength(){var _ref21=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},maxLength=_ref21.maxLength;var value=Number(maxLength);return isNaN(value)?{}:{maxLength:value};}function getMinItems(){var _ref22=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},minItems=_ref22.minItems;var value=Number(minItems);return isNaN(value)?{}:{minItems:value};}function getMaxItems(){var _ref23=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},maxItems=_ref23.maxItems;var value=Number(maxItems);return isNaN(value)?{}:{maxItems:value};}function getHasUniqueItems(){var schema=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};if(Reflect.has(schema,'uniqueItems')){var value=Reflect.get(schema,'uniqueItems');return typeof value==='boolean'?{hasUniqueItems:value}:{};}return{};}function getMinContains(){var _ref24=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},minContains=_ref24.minContains;var value=Number(minContains);return isNaN(value)?{}:{minContains:value};}function getMaxContains(){var _ref25=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},maxContains=_ref25.maxContains;var value=Number(maxContains);return isNaN(value)?{}:{maxContains:value};}function getMinProperties(){var _ref26=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},minProperties=_ref26.minProperties;var value=Number(minProperties);return isNaN(value)?{}:{minProperties:value};}function getMaxProperties(){var _ref27=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},maxProperties=_ref27.maxProperties;var value=Number(maxProperties);return isNaN(value)?{}:{maxProperties:value};}function getIsExclusiveMin(){var schema=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};if(Reflect.has(schema,'exclusiveMinimum')){var value=Reflect.get(schema,'exclusiveMinimum');return typeof value==='boolean'?{isExclusiveMin:value}:{};}return{};}function getIsExclusiveMax(){var schema=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};if(Reflect.has(schema,'exclusiveMaximum')){var value=Reflect.get(schema,'exclusiveMaximum');return typeof value==='boolean'?{isExclusiveMax:value}:{};}return{};}var getPattern=function getPattern(){var _ref28=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},pattern=_ref28.pattern;return pattern?{pattern:pattern}:{};};exports.getPattern=getPattern;function getStep(){var _ref29=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},multipleOf=_ref29.multipleOf;var value=Number(multipleOf);return isNaN(value)?{}:{step:value};}
@@ -1 +0,0 @@
1
- "use strict";require("core-js/modules/es.array.is-array.js");require("core-js/modules/es.symbol.js");require("core-js/modules/es.symbol.description.js");require("core-js/modules/es.object.to-string.js");require("core-js/modules/es.symbol.iterator.js");require("core-js/modules/es.array.iterator.js");require("core-js/modules/es.string.iterator.js");require("core-js/modules/web.dom-collections.iterator.js");require("core-js/modules/es.array.slice.js");require("core-js/modules/es.function.name.js");require("core-js/modules/es.array.from.js");require("core-js/modules/es.object.define-property.js");Object.defineProperty(exports,"__esModule",{value:true});exports.getObject=getObject;exports.getArray=getArray;exports.getSchema=getSchema;exports.transformValueIndexFor=transformValueIndexFor;exports.transformEqualIndexFor=transformEqualIndexFor;exports.transformArrayFor=transformArrayFor;exports.transformObjectFor=transformObjectFor;exports.transformArray=transformArray;exports.transformObject=transformObject;exports["default"]=transform;exports.transformValue=void 0;require("core-js/modules/es.array.find.js");require("core-js/modules/es.reflect.get.js");require("core-js/modules/es.object.keys.js");require("core-js/modules/es.array.some.js");require("core-js/modules/es.array.find-index.js");require("core-js/modules/es.array.reduce.js");require("core-js/modules/es.object.entries.js");require("core-js/modules/es.array.map.js");var _debug=_interopRequireDefault(require("debug"));var _fastDeepEqual=_interopRequireDefault(require("fast-deep-equal"));var _common=require("../common");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj};}function _slicedToArray(arr,i){return _arrayWithHoles(arr)||_iterableToArrayLimit(arr,i)||_unsupportedIterableToArray(arr,i)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(o,minLen){if(!o)return;if(typeof o==="string")return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor)n=o.constructor.name;if(n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen);}function _arrayLikeToArray(arr,len){if(len==null||len>arr.length)len=arr.length;for(var i=0,arr2=new Array(len);i<len;i++){arr2[i]=arr[i];}return arr2;}function _iterableToArrayLimit(arr,i){var _i=arr==null?null:typeof Symbol!=="undefined"&&arr[Symbol.iterator]||arr["@@iterator"];if(_i==null)return;var _arr=[];var _n=true;var _d=false;var _s,_e;try{for(_i=_i.call(arr);!(_n=(_s=_i.next()).done);_n=true){_arr.push(_s.value);if(i&&_arr.length===i)break;}}catch(err){_d=true;_e=err;}finally{try{if(!_n&&_i["return"]!=null)_i["return"]();}finally{if(_d)throw _e;}}return _arr;}function _arrayWithHoles(arr){if(Array.isArray(arr))return arr;}var log=(0,_debug["default"])('shinkansen-transmission:from-document-to-hash');log('`shinkansen-transmission` is awake');function findByKey(parentUri,uri){return function find(key){return(0,_common.getUri)(parentUri,key)===uri;};}function findByIndex(parentUri,uri){return function find(schema,index){if((0,_common.hasEnum)(schema)){return(0,_common.getUri)(parentUri,index)===uri;}else{if((0,_common.hasAnyOf)(schema)){var array=(0,_common.getAnyOf)(schema);return array.find(findByIndex(parentUri,uri));}else{if((0,_common.hasOneOf)(schema)){var _array=(0,_common.getOneOf)(schema);return _array.find(findByIndex(parentUri,uri));}}}return(0,_common.getUri)(parentUri,index)===uri;};}function findByValue(value){return function find(schema){return value===transformValue(schema);};}function findByEqual(value){return function find(schema){return(0,_fastDeepEqual["default"])(value,transformValue(schema));};}function toString(value){return value!==undefined?String(value):'';}function getObject(){var _ref=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},_ref$properties=_ref.properties,properties=_ref$properties===void 0?{}:_ref$properties;var parentUri=arguments.length>1&&arguments[1]!==undefined?arguments[1]:'';var uri=arguments.length>2&&arguments[2]!==undefined?arguments[2]:'';return Reflect.get(properties,Object.keys(properties).find(findByKey(parentUri,uri)));}function getArray(){var _ref2=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},_ref2$items=_ref2.items,items=_ref2$items===void 0?{}:_ref2$items;var parentUri=arguments.length>1&&arguments[1]!==undefined?arguments[1]:'';var uri=arguments.length>2&&arguments[2]!==undefined?arguments[2]:'';return(0,_common.isArray)(items)?items.find(findByIndex(parentUri,uri)):items;}function getSchema(){var schema=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var parentUri=arguments.length>1&&arguments[1]!==undefined?arguments[1]:'';var uri=arguments.length>2&&arguments[2]!==undefined?arguments[2]:'';var type=schema.type;switch(type){case'object':return getObject(schema,parentUri,uri);case'array':return getArray(schema,parentUri,uri);default:return schema;}}var transformValue=function transformValue(schema){return(0,_common.isObject)(schema)?(0,_common.isConstValue)(schema)?(0,_common.toConstValue)(schema):(0,_common.isDefaultValue)(schema)?(0,_common.toDefaultValue)(schema):schema:schema;};exports.transformValue=transformValue;function transformValueIndexFor(array,value){var find=findByValue(value);if(array.some(find)){var index=array.findIndex(find);return String(index);}return toString(value);}function transformEqualIndexFor(array,value){var find=findByEqual(value);if(array.some(find)){var index=array.findIndex(find);return String(index);}return toString(value);}function transformArrayFor(document,schema,values,params,parentUri,uri){return document.reduce(function(values,value,index){var schemaUri=(0,_common.getUri)(parentUri,index);return transform(value,getSchema(schema,parentUri,schemaUri),values,params,schemaUri,schemaUri);},values);}function transformObjectFor(document,schema,values,params,parentUri,uri){return Object.entries(document).reduce(function(values,_ref3){var _ref4=_slicedToArray(_ref3,2),key=_ref4[0],value=_ref4[1];var schemaUri=(0,_common.getUri)(parentUri,key);return transform(value,getSchema(schema,parentUri,schemaUri),values,params,schemaUri,schemaUri);},values);}function transformArray(document,schema,values,params,parentUri,uri){if((0,_common.hasEnum)(schema)){var array=(0,_common.getEnum)(schema);values[uri]=document.map(function(value){return transformValueIndexFor(array,value);});return values;}else{if((0,_common.hasAnyOf)(schema)){var _array2=(0,_common.getAnyOf)(schema);values[uri]=document.map(function(value){return transformValueIndexFor(_array2,value);});return values;}else{if((0,_common.hasOneOf)(schema)){var _array3=(0,_common.getOneOf)(schema);values[uri]=document.map(function(value){return transformValueIndexFor(_array3,value);});return values;}else{var _schema$items=schema.items,items=_schema$items===void 0?{}:_schema$items;if((0,_common.isArray)(items)){return transformArrayFor(document,schema,values,params,parentUri,uri);}else{if((0,_common.isObject)(items)){if((0,_common.hasEnum)(items)){var _array4=(0,_common.getEnum)(items);values[uri]=document.map(function(value){return transformValueIndexFor(_array4,value);});return values;}else{if((0,_common.hasAnyOf)(items)){var _array5=(0,_common.getAnyOf)(items);values[uri]=document.map(function(value){return transformValueIndexFor(_array5,value);});return values;}else{if((0,_common.hasOneOf)(items)){var _array6=(0,_common.getOneOf)(items);values[uri]=document.map(function(value){return transformValueIndexFor(_array6,value);});return values;}}}}}}}}return transformArrayFor(document,schema,values,params,parentUri,uri);}function transformObject(document,schema,values,params,parentUri,uri){if((0,_common.hasEnum)(schema)){var array=(0,_common.getEnum)(schema);values[uri]=transformEqualIndexFor(array,document);return values;}else{if((0,_common.hasAnyOf)(schema)){var _array7=(0,_common.getAnyOf)(schema);values[uri]=transformEqualIndexFor(_array7,document);return values;}else{if((0,_common.hasOneOf)(schema)){var _array8=(0,_common.getOneOf)(schema);values[uri]=transformEqualIndexFor(_array8,document);return values;}}}return transformObjectFor(document,schema,values,params,parentUri,uri);}function transform(document){var schema=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var values=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var params=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};var parentUri=arguments.length>4&&arguments[4]!==undefined?arguments[4]:'#';var uri=arguments.length>5&&arguments[5]!==undefined?arguments[5]:(0,_common.getUri)(parentUri);log('fromDocumentToHash');if((0,_common.isArray)(document)){return transformArray(document,schema,values,params,parentUri,uri);}else{if((0,_common.isObject)(document)){return transformObject(document,schema,values,params,parentUri,uri);}else{if((0,_common.hasEnum)(schema)){var items=(0,_common.getEnum)(schema);values[uri]=transformValueIndexFor(items,document);return values;}else{if((0,_common.hasAnyOf)(schema)){var _items=(0,_common.getAnyOf)(schema);values[uri]=transformValueIndexFor(_items,document);return values;}else{if((0,_common.hasOneOf)(schema)){var _items2=(0,_common.getOneOf)(schema);values[uri]=transformValueIndexFor(_items2,document);return values;}}}}}values[uri]=toString(document);return values;}
@@ -1 +0,0 @@
1
- "use strict";require("core-js/modules/es.array.is-array.js");require("core-js/modules/es.symbol.js");require("core-js/modules/es.symbol.description.js");require("core-js/modules/es.object.to-string.js");require("core-js/modules/es.symbol.iterator.js");require("core-js/modules/es.array.iterator.js");require("core-js/modules/es.string.iterator.js");require("core-js/modules/web.dom-collections.iterator.js");require("core-js/modules/es.function.name.js");require("core-js/modules/es.array.from.js");require("core-js/modules/es.object.define-property.js");require("core-js/modules/es.date.to-string.js");require("core-js/modules/es.regexp.to-string.js");Object.defineProperty(exports,"__esModule",{value:true});exports.toNull=toNull;exports.toBoolean=toBoolean;exports.toString=toString;exports.toNumber=toNumber;exports.transformValueFor=transformValueFor;exports.getArrayFor=getArrayFor;exports.transformArrayFor=transformArrayFor;exports.transformObjectFor=transformObjectFor;exports.transformItemsArrayFor=transformItemsArrayFor;exports.transformItemsObjectFor=transformItemsObjectFor;exports.transformObjectSchemaNull=transformObjectSchemaNull;exports.transformObjectSchemaBoolean=transformObjectSchemaBoolean;exports.transformObjectSchemaObject=transformObjectSchemaObject;exports.transformObjectSchemaArray=transformObjectSchemaArray;exports.transformObjectSchemaNumber=transformObjectSchemaNumber;exports.transformObjectSchemaString=transformObjectSchemaString;exports.transformObjectSchema=transformObjectSchema;exports.transformArraySchemaNull=transformArraySchemaNull;exports.transformArraySchemaBoolean=transformArraySchemaBoolean;exports.transformArraySchemaObject=transformArraySchemaObject;exports.transformArraySchemaArray=transformArraySchemaArray;exports.transformArraySchemaNumber=transformArraySchemaNumber;exports.transformArraySchemaString=transformArraySchemaString;exports.transformArraySchema=transformArraySchema;exports.transformNull=transformNull;exports.transformBoolean=transformBoolean;exports.transformObject=transformObject;exports.transformArray=transformArray;exports.transformNumber=transformNumber;exports.transformString=transformString;exports["default"]=transform;exports.transformValue=void 0;require("core-js/modules/es.number.constructor.js");require("core-js/modules/es.reflect.has.js");require("core-js/modules/es.reflect.get.js");require("core-js/modules/es.array.reduce.js");require("core-js/modules/es.object.entries.js");require("core-js/modules/es.array.filter.js");require("core-js/modules/es.object.keys.js");require("core-js/modules/es.string.starts-with.js");require("core-js/modules/es.string.ends-with.js");require("core-js/modules/es.array.slice.js");require("core-js/modules/es.array.includes.js");require("core-js/modules/es.string.includes.js");require("core-js/modules/es.array.index-of.js");require("core-js/modules/es.array.map.js");var _debug=_interopRequireDefault(require("debug"));var _common=require("../common");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj};}function _slicedToArray(arr,i){return _arrayWithHoles(arr)||_iterableToArrayLimit(arr,i)||_unsupportedIterableToArray(arr,i)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(o,minLen){if(!o)return;if(typeof o==="string")return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor)n=o.constructor.name;if(n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen);}function _arrayLikeToArray(arr,len){if(len==null||len>arr.length)len=arr.length;for(var i=0,arr2=new Array(len);i<len;i++){arr2[i]=arr[i];}return arr2;}function _iterableToArrayLimit(arr,i){var _i=arr==null?null:typeof Symbol!=="undefined"&&arr[Symbol.iterator]||arr["@@iterator"];if(_i==null)return;var _arr=[];var _n=true;var _d=false;var _s,_e;try{for(_i=_i.call(arr);!(_n=(_s=_i.next()).done);_n=true){_arr.push(_s.value);if(i&&_arr.length===i)break;}}catch(err){_d=true;_e=err;}finally{try{if(!_n&&_i["return"]!=null)_i["return"]();}finally{if(_d)throw _e;}}return _arr;}function _arrayWithHoles(arr){if(Array.isArray(arr))return arr;}var log=(0,_debug["default"])('shinkansen-transmission:from-hash-to-document');log('`shinkansen-transmission` is awake');function toNull(v){if(v===null||v==='null')return null;throw new Error('Invalid `null`');}function toBoolean(v){if(typeof v==='boolean')return v;if(v==='true')return true;if(v==='false')return false;throw new Error('Invalid `boolean`');}function toString(v){if(typeof v==='string')return v;if(typeof v==='number')return String(v);return JSON.stringify(v);}function toNumber(v){if(typeof v==='number')return v;if(v){var n=Number(v);if(!isNaN(n))return n;}throw new Error('Invalid `number`');}var transformValue=function transformValue(schema){return(0,_common.isObject)(schema)?(0,_common.isConstValue)(schema)?(0,_common.toConstValue)(schema):(0,_common.isDefaultValue)(schema)?(0,_common.toDefaultValue)(schema):schema:schema;};exports.transformValue=transformValue;function transformValueFor(value,array){try{var i=toNumber(value);if(Reflect.has(array,i)){var v=Reflect.get(array,i);return transformValue(v);}}catch(_ref){var _ref$message=_ref.message;var message=_ref$message===void 0?'No error message defined':_ref$message;log(message);}return value;}function getArrayFor(values){var array=arguments.length>1&&arguments[1]!==undefined?arguments[1]:[];var uri=arguments.length>2&&arguments[2]!==undefined?arguments[2]:'#';if(Reflect.has(values,uri)){var v=Reflect.get(values,uri);var i=Number(v);if(!isNaN(i))return array[i];}return[];}function transformArrayFor(values){var _ref2=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},_ref2$items=_ref2.items,items=_ref2$items===void 0?null:_ref2$items;var parentUri=arguments.length>2&&arguments[2]!==undefined?arguments[2]:'#';var uri=arguments.length>3&&arguments[3]!==undefined?arguments[3]:(0,_common.getUri)(parentUri);if((0,_common.isArray)(items)){return transformItemsArrayFor(values,items,parentUri,uri);}else{if((0,_common.isObject)(items)){return transformItemsObjectFor(values,items,parentUri,uri);}}return[];}function transformObjectFor(values){var _ref3=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},_ref3$properties=_ref3.properties,properties=_ref3$properties===void 0?null:_ref3$properties;var parentUri=arguments.length>2&&arguments[2]!==undefined?arguments[2]:'#';var uri=arguments.length>3&&arguments[3]!==undefined?arguments[3]:(0,_common.getUri)(parentUri);if((0,_common.isObject)(properties)){return Object.entries(properties).reduce(function(accumulator,_ref4){var _ref5=_slicedToArray(_ref4,2),key=_ref5[0],schema=_ref5[1];var schemaUri=(0,_common.getUri)(parentUri,key);accumulator[key]=transform(values,schema,schemaUri,schemaUri);return accumulator;},{});}return{};}function transformItemsArrayFor(values){var items=arguments.length>1&&arguments[1]!==undefined?arguments[1]:[];var parentUri=arguments.length>2&&arguments[2]!==undefined?arguments[2]:'#';var uri=arguments.length>3&&arguments[3]!==undefined?arguments[3]:(0,_common.getUri)(parentUri);if(Reflect.has(values,uri)){var value=Reflect.get(values,uri);if((0,_common.isArray)(value)){return transform(values,items,uri,uri);}}return Object.keys(values).filter(function(key){return key.startsWith(uri);}).reduce(function(accumulator,key){var v=uri.endsWith('/')?key.slice(uri.length):key.slice(uri.length+1);var i=v?Number(v.includes('/')?v.slice(0,v.indexOf('/')):v):NaN;if(!isNaN(i)){var schemaUri=(0,_common.getUri)(parentUri,i);accumulator[i]=transform(values,items[i],schemaUri,schemaUri);}return accumulator;},[]);}function transformItemsObjectFor(values){var items=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var parentUri=arguments.length>2&&arguments[2]!==undefined?arguments[2]:'#';var uri=arguments.length>3&&arguments[3]!==undefined?arguments[3]:(0,_common.getUri)(parentUri);if(Reflect.has(values,uri)){var value=Reflect.get(values,uri);if((0,_common.isArray)(value)){return transform(values,items,uri,uri);}}return Object.keys(values).filter(function(key){return key.startsWith(uri);}).reduce(function(accumulator,key){var v=uri.endsWith('/')?key.slice(uri.length):key.slice(uri.length+1);var i=v?Number(v.includes('/')?v.slice(0,v.indexOf('/')):v):NaN;if(!isNaN(i)){var schemaUri=(0,_common.getUri)(parentUri,i);accumulator[i]=transform(values,items,schemaUri,schemaUri);}return accumulator;},[]);}var handleError=function handleError(_ref6){var _ref6$message=_ref6.message,message=_ref6$message===void 0?'No error message defined':_ref6$message;return log(message);};function transformObjectSchemaNull(values,schema,_ref7){var parentUri=_ref7.uri,fieldKey=_ref7.key;var uri=arguments.length>3&&arguments[3]!==undefined?arguments[3]:(0,_common.getUri)(parentUri,fieldKey);return transformNull(values,schema,parentUri,uri);}function transformObjectSchemaBoolean(values,schema,_ref8){var parentUri=_ref8.uri,fieldKey=_ref8.key;var uri=arguments.length>3&&arguments[3]!==undefined?arguments[3]:(0,_common.getUri)(parentUri,fieldKey);return transformBoolean(values,schema,parentUri,uri);}function transformObjectSchemaObject(values,schema,_ref9){var parentUri=_ref9.uri,fieldKey=_ref9.key;var uri=arguments.length>3&&arguments[3]!==undefined?arguments[3]:(0,_common.getUri)(parentUri,fieldKey);return transformObject(values,schema,uri,uri);}function transformObjectSchemaArray(values,schema,_ref10){var parentUri=_ref10.uri,fieldKey=_ref10.key;var uri=arguments.length>3&&arguments[3]!==undefined?arguments[3]:(0,_common.getUri)(parentUri,fieldKey);return transformArray(values,schema,uri,uri);}function transformObjectSchemaNumber(values,schema,_ref11){var parentUri=_ref11.uri,fieldKey=_ref11.key;var uri=arguments.length>3&&arguments[3]!==undefined?arguments[3]:(0,_common.getUri)(parentUri,fieldKey);return transformNumber(values,schema,parentUri,uri);}function transformObjectSchemaString(values,schema,_ref12){var parentUri=_ref12.uri,fieldKey=_ref12.key;var uri=arguments.length>3&&arguments[3]!==undefined?arguments[3]:(0,_common.getUri)(parentUri,fieldKey);return transformString(values,schema,parentUri,uri);}function transformObjectSchema(){var values=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var schema=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var params=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var type=schema.type;switch(type){case'null':return transformObjectSchemaNull(values,schema,params);case'boolean':return transformObjectSchemaBoolean(values,schema,params);case'object':return transformObjectSchemaObject(values,schema,params);case'array':return transformObjectSchemaArray(values,schema,params);case'number':return transformObjectSchemaNumber(values,schema,params);case'string':return transformObjectSchemaString(values,schema,params);default:throw new Error('Schema does not conform to Instance Data Model, https://json-schema.org/draft/2019-09/json-schema-core.html#rfc.section.4.2.1');}}function transformArraySchemaNull(values,schema,_ref13){var parentUri=_ref13.uri,arrayIndex=_ref13.index;var uri=arguments.length>3&&arguments[3]!==undefined?arguments[3]:(0,_common.getUri)(parentUri,arrayIndex);return transformNull(values,schema,parentUri,uri);}function transformArraySchemaBoolean(values,schema,_ref14){var parentUri=_ref14.uri,arrayIndex=_ref14.index;var uri=arguments.length>3&&arguments[3]!==undefined?arguments[3]:(0,_common.getUri)(parentUri,arrayIndex);return transformBoolean(values,schema,parentUri,uri);}function transformArraySchemaObject(values,schema,_ref15){var parentUri=_ref15.uri,arrayIndex=_ref15.index;var uri=arguments.length>3&&arguments[3]!==undefined?arguments[3]:(0,_common.getUri)(parentUri,arrayIndex);return transformObject(values,schema,uri,uri);}function transformArraySchemaArray(values,schema,_ref16){var parentUri=_ref16.uri,arrayIndex=_ref16.index;var uri=arguments.length>3&&arguments[3]!==undefined?arguments[3]:(0,_common.getUri)(parentUri,arrayIndex);return transformArray(values,schema,uri,uri);}function transformArraySchemaNumber(values,schema,_ref17){var parentUri=_ref17.uri,arrayIndex=_ref17.index;var uri=arguments.length>3&&arguments[3]!==undefined?arguments[3]:(0,_common.getUri)(parentUri,arrayIndex);return transformNumber(values,schema,parentUri,uri);}function transformArraySchemaString(values,schema,_ref18){var parentUri=_ref18.uri,arrayIndex=_ref18.index;var uri=arguments.length>3&&arguments[3]!==undefined?arguments[3]:(0,_common.getUri)(parentUri,arrayIndex);return transformString(values,schema,parentUri,uri);}function transformArraySchema(){var values=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var schema=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var params=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var type=schema.type;switch(type){case'null':return transformArraySchemaNull(values,schema,params);case'boolean':return transformArraySchemaBoolean(values,schema,params);case'object':return transformArraySchemaObject(values,schema,params);case'array':return transformArraySchemaArray(values,schema,params);case'number':return transformArraySchemaNumber(values,schema,params);case'string':return transformArraySchemaString(values,schema,params);default:throw new Error('Schema does not conform to Instance Data Model, https://json-schema.org/draft/2019-09/json-schema-core.html#rfc.section.4.2.1');}}function transformNull(values,schema,parentUri,uri){if(Reflect.has(values,uri)){var value=Reflect.get(values,uri);if((0,_common.hasEnum)(schema)){var array=(0,_common.getEnum)(schema);if((0,_common.isArray)(value))return value.map(function(v){return transformValueFor(v,array);});return transformValueFor(value,array);}else{if((0,_common.hasAnyOf)(schema)){var _array=(0,_common.getAnyOf)(schema);if((0,_common.isArray)(value))return value.map(function(v){return transformValueFor(v,_array);});return transformValueFor(value,_array);}else{if((0,_common.hasOneOf)(schema)){var _array2=(0,_common.getOneOf)(schema);if((0,_common.isArray)(value))return value.map(function(v){return transformValueFor(v,_array2);});return transformValueFor(value,_array2);}}}try{if((0,_common.isArray)(value))return value.map(toNull);return toNull(value);}catch(e){handleError(e);}return value;}}function transformBoolean(values,schema,parentUri,uri){if(Reflect.has(values,uri)){var value=Reflect.get(values,uri);if((0,_common.hasEnum)(schema)){var array=(0,_common.getEnum)(schema);if((0,_common.isArray)(value))return value.map(function(v){return transformValueFor(v,array);});return transformValueFor(value,array);}else{if((0,_common.hasAnyOf)(schema)){var _array3=(0,_common.getAnyOf)(schema);if((0,_common.isArray)(value))return value.map(function(v){return transformValueFor(v,_array3);});return transformValueFor(value,_array3);}else{if((0,_common.hasOneOf)(schema)){var _array4=(0,_common.getOneOf)(schema);if((0,_common.isArray)(value))return value.map(function(v){return transformValueFor(v,_array4);});return transformValueFor(value,_array4);}}}try{if((0,_common.isArray)(value))return value.map(toBoolean);return toBoolean(value);}catch(e){handleError(e);}return value;}}function transformObject(values,schema,parentUri,uri){if((0,_common.hasEnum)(schema)){var array=(0,_common.getEnum)(schema);return getArrayFor(values,array,uri);}else{if((0,_common.hasAnyOf)(schema)){var _array5=(0,_common.getAnyOf)(schema);return getArrayFor(values,_array5,uri);}else{if((0,_common.hasOneOf)(schema)){var _array6=(0,_common.getOneOf)(schema);return getArrayFor(values,_array6,uri);}}}return transformObjectFor(values,schema,parentUri,uri);}function transformArray(values,schema,parentUri,uri){if((0,_common.hasEnum)(schema)){var array=(0,_common.getEnum)(schema);return getArrayFor(values,array,uri);}else{if((0,_common.hasAnyOf)(schema)){var _array7=(0,_common.getAnyOf)(schema);return getArrayFor(values,_array7,uri);}else{if((0,_common.hasOneOf)(schema)){var _array8=(0,_common.getOneOf)(schema);return getArrayFor(values,_array8,uri);}}}return transformArrayFor(values,schema,parentUri,uri);}function transformNumber(values,schema,parentUri,uri){if(Reflect.has(values,uri)){var value=Reflect.get(values,uri);if((0,_common.hasEnum)(schema)){var array=(0,_common.getEnum)(schema);if((0,_common.isArray)(value))return value.map(function(v){return transformValueFor(v,array);});return transformValueFor(value,array);}else{if((0,_common.hasAnyOf)(schema)){var _array9=(0,_common.getAnyOf)(schema);if((0,_common.isArray)(value))return value.map(function(v){return transformValueFor(v,_array9);});return transformValueFor(value,_array9);}else{if((0,_common.hasOneOf)(schema)){var _array10=(0,_common.getOneOf)(schema);if((0,_common.isArray)(value))return value.map(function(v){return transformValueFor(v,_array10);});return transformValueFor(value,_array10);}}}try{if((0,_common.isArray)(value))return value.map(toNumber);return toNumber(value);}catch(e){handleError(e);}return value;}}function transformString(values,schema,parentUri,uri){if(Reflect.has(values,uri)){var value=Reflect.get(values,uri);if((0,_common.hasEnum)(schema)){var array=(0,_common.getEnum)(schema);if((0,_common.isArray)(value))return value.map(function(v){return transformValueFor(v,array);});return transformValueFor(value,array);}else{if((0,_common.hasAnyOf)(schema)){var _array11=(0,_common.getAnyOf)(schema);if((0,_common.isArray)(value))return value.map(function(v){return transformValueFor(v,_array11);});return transformValueFor(value,_array11);}else{if((0,_common.hasOneOf)(schema)){var _array12=(0,_common.getOneOf)(schema);if((0,_common.isArray)(value))return value.map(function(v){return transformValueFor(v,_array12);});return transformValueFor(value,_array12);}}}try{if((0,_common.isArray)(value))return value.map(toString);return toString(value);}catch(e){handleError(e);}return value;}}function transform(){var values=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var rootSchema=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var parentUri=arguments.length>2&&arguments[2]!==undefined?arguments[2]:'#';var uri=arguments.length>3&&arguments[3]!==undefined?arguments[3]:(0,_common.getUri)(parentUri);log('fromHashToDocument');var type=rootSchema.type;switch(type){case'null':return transformNull(values,rootSchema,parentUri,uri);case'boolean':return transformBoolean(values,rootSchema,parentUri,uri);case'object':return transformObject(values,rootSchema,parentUri,uri);case'array':return transformArray(values,rootSchema,parentUri,uri);case'number':return transformNumber(values,rootSchema,parentUri,uri);case'string':return transformString(values,rootSchema,parentUri,uri);default:throw new Error('Schema does not conform to Instance Data Model, https://json-schema.org/draft/2019-09/json-schema-core.html#rfc.section.4.2.1');}}
@@ -1 +0,0 @@
1
- "use strict";function _typeof(obj){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){_typeof=function _typeof(obj){return typeof obj;};}else{_typeof=function _typeof(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};}return _typeof(obj);}require("core-js/modules/es.array.iterator.js");require("core-js/modules/es.object.to-string.js");require("core-js/modules/es.string.iterator.js");require("core-js/modules/es.weak-map.js");require("core-js/modules/web.dom-collections.iterator.js");require("core-js/modules/es.object.define-property.js");require("core-js/modules/es.object.get-own-property-descriptor.js");require("core-js/modules/es.symbol.js");require("core-js/modules/es.symbol.description.js");require("core-js/modules/es.symbol.iterator.js");Object.defineProperty(exports,"__esModule",{value:true});Object.defineProperty(exports,"fromDocumentToHash",{enumerable:true,get:function get(){return _fromDocumentToHash2["default"];}});Object.defineProperty(exports,"fromHashToDocument",{enumerable:true,get:function get(){return _fromHashToDocument2["default"];}});Object.defineProperty(exports,"toZashiki",{enumerable:true,get:function get(){return _toZashiki2["default"];}});exports.common=void 0;var _common=_interopRequireWildcard(require("./common"));exports.common=_common;var _fromDocumentToHash2=_interopRequireDefault(require("./from-document-to-hash"));var _fromHashToDocument2=_interopRequireDefault(require("./from-hash-to-document"));var _toZashiki2=_interopRequireDefault(require("./to-zashiki"));function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj};}function _getRequireWildcardCache(nodeInterop){if(typeof WeakMap!=="function")return null;var cacheBabelInterop=new WeakMap();var cacheNodeInterop=new WeakMap();return(_getRequireWildcardCache=function _getRequireWildcardCache(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop;})(nodeInterop);}function _interopRequireWildcard(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule){return obj;}if(obj===null||_typeof(obj)!=="object"&&typeof obj!=="function"){return{"default":obj};}var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj)){return cache.get(obj);}var newObj={};var hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj){if(key!=="default"&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;if(desc&&(desc.get||desc.set)){Object.defineProperty(newObj,key,desc);}else{newObj[key]=obj[key];}}}newObj["default"]=obj;if(cache){cache.set(obj,newObj);}return newObj;}
@@ -1 +0,0 @@
1
- "use strict";require("core-js/modules/es.object.define-property.js");Object.defineProperty(exports,"__esModule",{value:true});Object.defineProperty(exports,"default",{enumerable:true,get:function get(){return _transformRootSchema["default"];}});var _transformRootSchema=_interopRequireDefault(require("./transform-root-schema"));function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj};}
@@ -1 +0,0 @@
1
- "use strict";require("core-js/modules/es.object.define-property.js");require("core-js/modules/es.object.keys.js");require("core-js/modules/es.array.index-of.js");require("core-js/modules/es.symbol.js");Object.defineProperty(exports,"__esModule",{value:true});exports.getRenderParamsForEnum=getRenderParamsForEnum;exports.getRenderParamsForAnyOf=getRenderParamsForAnyOf;exports.getRenderParamsForOneOf=getRenderParamsForOneOf;exports.getRenderParamsForAllOf=getRenderParamsForAllOf;exports.getRenderParams=getRenderParams;exports.transformNullForEnum=transformNullForEnum;exports.transformNullForAnyOf=transformNullForAnyOf;exports.transformNullForOneOf=transformNullForOneOf;exports.transformNullForAllOf=transformNullForAllOf;exports.transformNull=transformNull;exports.transformBooleanForEnum=transformBooleanForEnum;exports.transformBooleanForAnyOf=transformBooleanForAnyOf;exports.transformBooleanForOneOf=transformBooleanForOneOf;exports.transformBooleanForAllOf=transformBooleanForAllOf;exports.transformBoolean=transformBoolean;exports.transformObjectForEnum=transformObjectForEnum;exports.transformObjectForAnyOf=transformObjectForAnyOf;exports.transformObjectForOneOf=transformObjectForOneOf;exports.transformObjectForAllOf=transformObjectForAllOf;exports.transformObject=transformObject;exports.transformArrayForEnum=transformArrayForEnum;exports.transformArrayForAnyOf=transformArrayForAnyOf;exports.transformArrayForOneOf=transformArrayForOneOf;exports.transformArrayForAllOf=transformArrayForAllOf;exports.transformArray=transformArray;exports.transformNumberForEnum=transformNumberForEnum;exports.transformNumberForAnyOf=transformNumberForAnyOf;exports.transformNumberForOneOf=transformNumberForOneOf;exports.transformNumberForAllOf=transformNumberForAllOf;exports.transformNumber=transformNumber;exports.transformStringForEnum=transformStringForEnum;exports.transformStringForAnyOf=transformStringForAnyOf;exports.transformStringForOneOf=transformStringForOneOf;exports.transformStringForAllOf=transformStringForAllOf;exports.transformString=transformString;exports["default"]=toZashiki;require("core-js/modules/es.object.assign.js");require("core-js/modules/es.array.map.js");require("core-js/modules/es.array.reduce.js");require("core-js/modules/es.object.entries.js");var _debug=_interopRequireDefault(require("debug"));var _common=require("../common");var _transformSchema=require("./transform-schema");var _excluded=["allOf"],_excluded2=["allOf"],_excluded3=["allOf"],_excluded4=["allOf"],_excluded5=["allOf"],_excluded6=["allOf"];function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj};}function _objectWithoutProperties(source,excluded){if(source==null)return{};var target=_objectWithoutPropertiesLoose(source,excluded);var key,i;if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i<sourceSymbolKeys.length;i++){key=sourceSymbolKeys[i];if(excluded.indexOf(key)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(source,key))continue;target[key]=source[key];}}return target;}function _objectWithoutPropertiesLoose(source,excluded){if(source==null)return{};var target={};var sourceKeys=Object.keys(source);var key,i;for(i=0;i<sourceKeys.length;i++){key=sourceKeys[i];if(excluded.indexOf(key)>=0)continue;target[key]=source[key];}return target;}function _defineProperty(obj,key,value){if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true});}else{obj[key]=value;}return obj;}var log=(0,_debug["default"])('shinkansen-transmission:to-zashiki:root-schema');log('`shinkansen-transmission` is awake');function getRenderParamsForEnum(rootSchema,values,params){var _params$parentUri=params.parentUri,parentUri=_params$parentUri===void 0?'#':_params$parentUri,_params$uri=params.uri,uri=_params$uri===void 0?'#/':_params$uri,_params$selectedItems=params.selectedItems,selectedItems=_params$selectedItems===void 0?[]:_params$selectedItems,_params$items=params.items,items=_params$items===void 0?[]:_params$items;var meta=Object.assign((0,_common.getMetaProps)(params,uri),{schema:rootSchema,selectedItems:selectedItems,items:items});var elements={"enum":Object.assign((0,_common.getElementsFieldPropsForEnum)(params,uri),{selectedItems:selectedItems,items:items})};return Object.assign(params,_defineProperty({parentUri:parentUri,uri:uri},uri,{meta:meta,elements:elements}));}function getRenderParamsForAnyOf(rootSchema,values,params){var _params$parentUri2=params.parentUri,parentUri=_params$parentUri2===void 0?'#':_params$parentUri2,_params$uri2=params.uri,uri=_params$uri2===void 0?'#/':_params$uri2,_params$selectedItems2=params.selectedItems,selectedItems=_params$selectedItems2===void 0?[]:_params$selectedItems2,_params$items2=params.items,items=_params$items2===void 0?[]:_params$items2;var meta=Object.assign((0,_common.getMetaProps)(params,uri),{schema:rootSchema,selectedItems:selectedItems,items:items});var elements={anyOf:Object.assign((0,_common.getElementsFieldPropsForAnyOf)(params,uri),{selectedItems:selectedItems,items:items})};return Object.assign(params,_defineProperty({parentUri:parentUri,uri:uri},uri,{meta:meta,elements:elements}));}function getRenderParamsForOneOf(rootSchema,values,params){var _params$parentUri3=params.parentUri,parentUri=_params$parentUri3===void 0?'#':_params$parentUri3,_params$uri3=params.uri,uri=_params$uri3===void 0?'#/':_params$uri3,_params$selectedItems3=params.selectedItems,selectedItems=_params$selectedItems3===void 0?[]:_params$selectedItems3,_params$items3=params.items,items=_params$items3===void 0?[]:_params$items3;var meta=Object.assign((0,_common.getMetaProps)(params,uri),{schema:rootSchema,selectedItems:selectedItems,items:items});var elements={oneOf:Object.assign((0,_common.getElementsFieldPropsForOneOf)(params,uri),{selectedItems:selectedItems,items:items})};return Object.assign(params,_defineProperty({parentUri:parentUri,uri:uri},uri,{meta:meta,elements:elements}));}function getRenderParamsForAllOf(rootSchema,values,params){var _params$parentUri4=params.parentUri,parentUri=_params$parentUri4===void 0?'#':_params$parentUri4,_params$uri4=params.uri,uri=_params$uri4===void 0?'#/':_params$uri4;var meta=Object.assign((0,_common.getMetaProps)(params,uri),{schema:rootSchema});var elements={field:(0,_common.getElementsFieldPropsForAllOf)(params,uri)};return Object.assign(params,_defineProperty({parentUri:parentUri,uri:uri},uri,{meta:meta,elements:elements}));}function getRenderParams(rootSchema,values,params){var _params$parentUri5=params.parentUri,parentUri=_params$parentUri5===void 0?'#':_params$parentUri5,_params$uri5=params.uri,uri=_params$uri5===void 0?'#/':_params$uri5,_params$fields=params.fields,fields=_params$fields===void 0?[]:_params$fields;var meta=Object.assign((0,_common.getMetaProps)(params,uri),{schema:rootSchema,parentUri:(0,_common.normaliseUri)(parentUri),uri:uri});var elements=Object.assign((0,_common.getElementsProps)(params,uri),{fields:fields});return Object.assign(params,_defineProperty({parentUri:parentUri,uri:uri},uri,{meta:meta,elements:elements}));}function transformNullForEnum(rootSchema,values,params){var _params$uri6=params.uri,uri=_params$uri6===void 0?'#/':_params$uri6;var _getMetaProps=(0,_common.getMetaProps)(params,uri),_getMetaProps$selecte=_getMetaProps.selectedItems,selectedItems=_getMetaProps$selecte===void 0?(0,_common.getSelectedItems)(values,uri):_getMetaProps$selecte;var items=(0,_common.getEnum)(rootSchema);return(0,_transformSchema.renderNullForEnum)(rootSchema,values,getRenderParamsForEnum(rootSchema,values,Object.assign(params,{selectedItems:selectedItems,items:items})));}function transformNullForAnyOf(rootSchema,values,params){var _params$uri7=params.uri,uri=_params$uri7===void 0?'#/':_params$uri7;var _getMetaProps2=(0,_common.getMetaProps)(params,uri),_getMetaProps2$select=_getMetaProps2.selectedItems,selectedItems=_getMetaProps2$select===void 0?(0,_common.getSelectedItems)(values,uri):_getMetaProps2$select;var _rootSchema$anyOf=rootSchema.anyOf,anyOf=_rootSchema$anyOf===void 0?[]:_rootSchema$anyOf;var items=anyOf.map((0,_transformSchema.mapTransformNullByIndex)(rootSchema,values,Object.assign(params,{selectedItems:selectedItems,parentUri:uri})));return(0,_transformSchema.renderNullForAnyOf)(rootSchema,values,getRenderParamsForAnyOf(rootSchema,values,Object.assign(params,{selectedItems:selectedItems,items:items})));}function transformNullForOneOf(rootSchema,values,params){var _params$uri8=params.uri,uri=_params$uri8===void 0?'#/':_params$uri8;var _getMetaProps3=(0,_common.getMetaProps)(params,uri),_getMetaProps3$select=_getMetaProps3.selectedItems,selectedItems=_getMetaProps3$select===void 0?(0,_common.getSelectedItems)(values,uri):_getMetaProps3$select;var _rootSchema$oneOf=rootSchema.oneOf,oneOf=_rootSchema$oneOf===void 0?[]:_rootSchema$oneOf;var items=oneOf.map((0,_transformSchema.mapTransformNullByIndex)(rootSchema,values,Object.assign(params,{selectedItems:selectedItems,parentUri:uri})));return(0,_transformSchema.renderNullForOneOf)(rootSchema,values,getRenderParamsForOneOf(rootSchema,values,Object.assign(params,{selectedItems:selectedItems,items:items})));}function transformNullForAllOf(rootSchema,values,params){var _rootSchema$allOf=rootSchema.allOf,allOf=_rootSchema$allOf===void 0?[]:_rootSchema$allOf,rest=_objectWithoutProperties(rootSchema,_excluded);var itemSchema=allOf.reduce(function(accumulator,schema){return Object.assign(accumulator,schema);},rest);return(0,_transformSchema.renderNullForAllOf)(itemSchema,values,getRenderParamsForAllOf(rootSchema,values,params));}function transformNull(rootSchema,values,params){if((0,_common.hasEnum)(rootSchema)){return transformNullForEnum(rootSchema,values,params);}else{if((0,_common.hasAnyOf)(rootSchema)){return transformNullForAnyOf(rootSchema,values,params);}else{if((0,_common.hasOneOf)(rootSchema)){return transformNullForOneOf(rootSchema,values,params);}else{if((0,_common.hasAllOf)(rootSchema)){return transformNullForAllOf(rootSchema,values,params);}}}}return(0,_transformSchema.renderNull)(rootSchema,values,getRenderParams(rootSchema,values,params));}function transformBooleanForEnum(rootSchema,values,params){var _params$uri9=params.uri,uri=_params$uri9===void 0?'#/':_params$uri9;var _getMetaProps4=(0,_common.getMetaProps)(params,uri),_getMetaProps4$select=_getMetaProps4.selectedItems,selectedItems=_getMetaProps4$select===void 0?(0,_common.getSelectedItems)(values,uri):_getMetaProps4$select;var items=(0,_common.getEnum)(rootSchema);return(0,_transformSchema.renderBooleanForEnum)(rootSchema,values,getRenderParamsForEnum(rootSchema,values,Object.assign(params,{selectedItems:selectedItems,items:items})));}function transformBooleanForAnyOf(rootSchema,values,params){var _params$uri10=params.uri,uri=_params$uri10===void 0?'#/':_params$uri10;var _getMetaProps5=(0,_common.getMetaProps)(params,uri),_getMetaProps5$select=_getMetaProps5.selectedItems,selectedItems=_getMetaProps5$select===void 0?(0,_common.getSelectedItems)(values,uri):_getMetaProps5$select;var _rootSchema$anyOf2=rootSchema.anyOf,anyOf=_rootSchema$anyOf2===void 0?[]:_rootSchema$anyOf2;var items=anyOf.map((0,_transformSchema.mapTransformBooleanByIndex)(rootSchema,values,Object.assign(params,{selectedItems:selectedItems,parentUri:uri})));return(0,_transformSchema.renderBooleanForAnyOf)(rootSchema,values,getRenderParamsForAnyOf(rootSchema,values,Object.assign(params,{selectedItems:selectedItems,items:items})));}function transformBooleanForOneOf(rootSchema,values,params){var _params$uri11=params.uri,uri=_params$uri11===void 0?'#/':_params$uri11;var _getMetaProps6=(0,_common.getMetaProps)(params,uri),_getMetaProps6$select=_getMetaProps6.selectedItems,selectedItems=_getMetaProps6$select===void 0?(0,_common.getSelectedItems)(values,uri):_getMetaProps6$select;var _rootSchema$oneOf2=rootSchema.oneOf,oneOf=_rootSchema$oneOf2===void 0?[]:_rootSchema$oneOf2;var items=oneOf.map((0,_transformSchema.mapTransformBooleanByIndex)(rootSchema,values,Object.assign(params,{selectedItems:selectedItems,parentUri:uri})));return(0,_transformSchema.renderBooleanForOneOf)(rootSchema,values,getRenderParamsForOneOf(rootSchema,values,Object.assign(params,{selectedItems:selectedItems,items:items})));}function transformBooleanForAllOf(rootSchema,values,params){var _rootSchema$allOf2=rootSchema.allOf,allOf=_rootSchema$allOf2===void 0?[]:_rootSchema$allOf2,rest=_objectWithoutProperties(rootSchema,_excluded2);var itemSchema=allOf.reduce(function(accumulator,schema){return Object.assign(accumulator,schema);},rest);return(0,_transformSchema.renderBooleanForAllOf)(itemSchema,values,getRenderParamsForAllOf(rootSchema,values,params));}function transformBoolean(rootSchema,values,params){if((0,_common.hasEnum)(rootSchema)){return transformBooleanForEnum(rootSchema,values,params);}else{if((0,_common.hasAnyOf)(rootSchema)){return transformBooleanForAnyOf(rootSchema,values,params);}else{if((0,_common.hasOneOf)(rootSchema)){return transformBooleanForOneOf(rootSchema,values,params);}else{if((0,_common.hasAllOf)(rootSchema)){return transformBooleanForAllOf(rootSchema,values,params);}}}}return(0,_transformSchema.renderBoolean)(rootSchema,values,getRenderParams(rootSchema,values,params));}function transformObjectForEnum(rootSchema,values,params){var _params$uri12=params.uri,uri=_params$uri12===void 0?'#/':_params$uri12;var _getMetaProps7=(0,_common.getMetaProps)(params,uri),_getMetaProps7$select=_getMetaProps7.selectedItems,selectedItems=_getMetaProps7$select===void 0?(0,_common.getSelectedItems)(values,uri):_getMetaProps7$select;var items=(0,_common.getEnum)(rootSchema);return(0,_transformSchema.renderObjectForEnum)(rootSchema,values,getRenderParamsForEnum(rootSchema,values,Object.assign(params,{selectedItems:selectedItems,items:items})));}function transformObjectForAnyOf(rootSchema,values,params){var _params$uri13=params.uri,uri=_params$uri13===void 0?'#/':_params$uri13;var _getMetaProps8=(0,_common.getMetaProps)(params,uri),_getMetaProps8$select=_getMetaProps8.selectedItems,selectedItems=_getMetaProps8$select===void 0?(0,_common.getSelectedItems)(values,uri):_getMetaProps8$select;var _rootSchema$anyOf3=rootSchema.anyOf,anyOf=_rootSchema$anyOf3===void 0?[]:_rootSchema$anyOf3;var items=anyOf.map((0,_transformSchema.mapTransformObjectByIndex)(rootSchema,values,Object.assign(params,{selectedItems:selectedItems,parentUri:uri})));return(0,_transformSchema.renderObjectForAnyOf)(rootSchema,values,getRenderParamsForAnyOf(rootSchema,values,Object.assign(params,{selectedItems:selectedItems,items:items})));}function transformObjectForOneOf(rootSchema,values,params){var _params$uri14=params.uri,uri=_params$uri14===void 0?'#/':_params$uri14;var _getMetaProps9=(0,_common.getMetaProps)(params,uri),_getMetaProps9$select=_getMetaProps9.selectedItems,selectedItems=_getMetaProps9$select===void 0?(0,_common.getSelectedItems)(values,uri):_getMetaProps9$select;var _rootSchema$oneOf3=rootSchema.oneOf,oneOf=_rootSchema$oneOf3===void 0?[]:_rootSchema$oneOf3;var items=oneOf.map((0,_transformSchema.mapTransformObjectByIndex)(rootSchema,values,Object.assign(params,{selectedItems:selectedItems,parentUri:uri})));return(0,_transformSchema.renderObjectForOneOf)(rootSchema,values,getRenderParamsForOneOf(rootSchema,values,Object.assign(params,{selectedItems:selectedItems,items:items})));}function transformObjectForAllOf(rootSchema,values,params){var _rootSchema$allOf3=rootSchema.allOf,allOf=_rootSchema$allOf3===void 0?[]:_rootSchema$allOf3,rest=_objectWithoutProperties(rootSchema,_excluded3);var itemSchema=allOf.reduce(function(accumulator,schema){return Object.assign(accumulator,schema);},rest);return(0,_transformSchema.renderObjectForAllOf)(itemSchema,values,getRenderParamsForAllOf(rootSchema,values,params));}function transformObject(rootSchema,values,params){if((0,_common.hasEnum)(rootSchema)){return transformObjectForEnum(rootSchema,values,params);}else{if((0,_common.hasAnyOf)(rootSchema)){return transformObjectForAnyOf(rootSchema,values,params);}else{if((0,_common.hasOneOf)(rootSchema)){return transformObjectForOneOf(rootSchema,values,params);}else{if((0,_common.hasAllOf)(rootSchema)){return transformObjectForAllOf(rootSchema,values,params);}}}}var _rootSchema$propertie=rootSchema.properties,properties=_rootSchema$propertie===void 0?{}:_rootSchema$propertie,_rootSchema$required=rootSchema.required,required=_rootSchema$required===void 0?[]:_rootSchema$required;var _params$uri15=params.uri,uri=_params$uri15===void 0?'#/':_params$uri15;var fields=Object.entries(properties).map((0,_transformSchema.mapTransformByKey)(rootSchema,values,Object.assign(params,{parentUri:uri,required:required})));return(0,_transformSchema.renderObject)(rootSchema,values,getRenderParams(rootSchema,values,Object.assign(params,{fields:fields})));}function transformArrayForEnum(rootSchema,values,params){var _params$uri16=params.uri,uri=_params$uri16===void 0?'#/':_params$uri16;var _getMetaProps10=(0,_common.getMetaProps)(params,uri),_getMetaProps10$selec=_getMetaProps10.selectedItems,selectedItems=_getMetaProps10$selec===void 0?(0,_common.getSelectedItems)(values,uri):_getMetaProps10$selec;var items=(0,_common.getEnum)(rootSchema);return(0,_transformSchema.renderArrayForEnum)(rootSchema,values,getRenderParamsForEnum(rootSchema,values,Object.assign(params,{selectedItems:selectedItems,items:items})));}function transformArrayForAnyOf(rootSchema,values,params){var _params$uri17=params.uri,uri=_params$uri17===void 0?'#/':_params$uri17;var _getMetaProps11=(0,_common.getMetaProps)(params,uri),_getMetaProps11$selec=_getMetaProps11.selectedItems,selectedItems=_getMetaProps11$selec===void 0?(0,_common.getSelectedItems)(values,uri):_getMetaProps11$selec;var _rootSchema$anyOf4=rootSchema.anyOf,anyOf=_rootSchema$anyOf4===void 0?[]:_rootSchema$anyOf4;var items=anyOf.map((0,_transformSchema.mapTransformArrayByIndex)(rootSchema,values,Object.assign(params,{selectedItems:selectedItems,parentUri:uri})));return(0,_transformSchema.renderArrayForAnyOf)(rootSchema,values,getRenderParamsForAnyOf(rootSchema,values,Object.assign(params,{selectedItems:selectedItems,items:items})));}function transformArrayForOneOf(rootSchema,values,params){var _params$uri18=params.uri,uri=_params$uri18===void 0?'#/':_params$uri18;var _getMetaProps12=(0,_common.getMetaProps)(params,uri),_getMetaProps12$selec=_getMetaProps12.selectedItems,selectedItems=_getMetaProps12$selec===void 0?(0,_common.getSelectedItems)(values,uri):_getMetaProps12$selec;var _rootSchema$oneOf4=rootSchema.oneOf,oneOf=_rootSchema$oneOf4===void 0?[]:_rootSchema$oneOf4;var items=oneOf.map((0,_transformSchema.mapTransformArrayByIndex)(rootSchema,values,Object.assign(params,{selectedItems:selectedItems,parentUri:uri})));return(0,_transformSchema.renderArrayForOneOf)(rootSchema,values,getRenderParamsForOneOf(rootSchema,values,Object.assign(params,{selectedItems:selectedItems,items:items})));}function transformArrayForAllOf(rootSchema,values,params){var _rootSchema$allOf4=rootSchema.allOf,allOf=_rootSchema$allOf4===void 0?[]:_rootSchema$allOf4,rest=_objectWithoutProperties(rootSchema,_excluded4);var itemSchema=allOf.reduce(function(accumulator,schema){return Object.assign(accumulator,schema);},rest);return(0,_transformSchema.renderArrayForAllOf)(itemSchema,values,getRenderParamsForAllOf(rootSchema,values,params));}function transformArray(rootSchema,values,params){if((0,_common.hasEnum)(rootSchema)){return transformArrayForEnum(rootSchema,values,params);}else{if((0,_common.hasAnyOf)(rootSchema)){return transformArrayForAnyOf(rootSchema,values,params);}else{if((0,_common.hasOneOf)(rootSchema)){return transformArrayForOneOf(rootSchema,values,params);}else{if((0,_common.hasAllOf)(rootSchema)){return transformArrayForAllOf(rootSchema,values,params);}}}}var _rootSchema$items=rootSchema.items,items=_rootSchema$items===void 0?[]:_rootSchema$items;if((0,_common.isArray)(items)){var fields=items.map((0,_transformSchema.mapTransformByIndex)(rootSchema,values,Object.assign(params,{parentUri:'#/'})));return(0,_transformSchema.renderArray)(rootSchema,values,getRenderParams(rootSchema,values,Object.assign(params,{fields:fields})));}else{if((0,_common.isObject)(items)){var _fields=[(0,_transformSchema.getTransformByIndex)(items,rootSchema,values,Object.assign(params,{parentUri:'#/'}))];return(0,_transformSchema.renderArray)(rootSchema,values,getRenderParams(rootSchema,values,Object.assign(params,{fields:_fields})));}}}function transformNumberForEnum(rootSchema,values,params){var _params$uri19=params.uri,uri=_params$uri19===void 0?'#/':_params$uri19;var _getMetaProps13=(0,_common.getMetaProps)(params,uri),_getMetaProps13$selec=_getMetaProps13.selectedItems,selectedItems=_getMetaProps13$selec===void 0?(0,_common.getSelectedItems)(values,uri):_getMetaProps13$selec;var items=(0,_common.getEnum)(rootSchema);return(0,_transformSchema.renderNumberForEnum)(rootSchema,values,getRenderParamsForEnum(rootSchema,values,Object.assign(params,{selectedItems:selectedItems,items:items})));}function transformNumberForAnyOf(rootSchema,values,params){var _params$uri20=params.uri,uri=_params$uri20===void 0?'#/':_params$uri20;var _getMetaProps14=(0,_common.getMetaProps)(params,uri),_getMetaProps14$selec=_getMetaProps14.selectedItems,selectedItems=_getMetaProps14$selec===void 0?(0,_common.getSelectedItems)(values,uri):_getMetaProps14$selec;var _rootSchema$anyOf5=rootSchema.anyOf,anyOf=_rootSchema$anyOf5===void 0?[]:_rootSchema$anyOf5;var items=anyOf.map((0,_transformSchema.mapTransformNumberByIndex)(rootSchema,values,Object.assign(params,{selectedItems:selectedItems,parentUri:uri})));return(0,_transformSchema.renderNumberForAnyOf)(rootSchema,values,getRenderParamsForAnyOf(rootSchema,values,Object.assign(params,{selectedItems:selectedItems,items:items})));}function transformNumberForOneOf(rootSchema,values,params){var _params$uri21=params.uri,uri=_params$uri21===void 0?'#/':_params$uri21;var _getMetaProps15=(0,_common.getMetaProps)(params,uri),_getMetaProps15$selec=_getMetaProps15.selectedItems,selectedItems=_getMetaProps15$selec===void 0?(0,_common.getSelectedItems)(values,uri):_getMetaProps15$selec;var _rootSchema$oneOf5=rootSchema.oneOf,oneOf=_rootSchema$oneOf5===void 0?[]:_rootSchema$oneOf5;var items=oneOf.map((0,_transformSchema.mapTransformNumberByIndex)(rootSchema,values,Object.assign(params,{selectedItems:selectedItems,parentUri:uri})));return(0,_transformSchema.renderNumberForOneOf)(rootSchema,values,getRenderParamsForOneOf(rootSchema,values,Object.assign(params,{selectedItems:selectedItems,items:items})));}function transformNumberForAllOf(rootSchema,values,params){var _rootSchema$allOf5=rootSchema.allOf,allOf=_rootSchema$allOf5===void 0?[]:_rootSchema$allOf5,rest=_objectWithoutProperties(rootSchema,_excluded5);var itemSchema=allOf.reduce(function(accumulator,schema){return Object.assign(accumulator,schema);},rest);return(0,_transformSchema.renderNumberForAllOf)(itemSchema,values,getRenderParamsForAllOf(rootSchema,values,params));}function transformNumber(rootSchema,values,params){if((0,_common.hasEnum)(rootSchema)){return transformNumberForEnum(rootSchema,values,params);}else{if((0,_common.hasAnyOf)(rootSchema)){return transformNumberForAnyOf(rootSchema,values,params);}else{if((0,_common.hasOneOf)(rootSchema)){return transformNumberForOneOf(rootSchema,values,params);}else{if((0,_common.hasAllOf)(rootSchema)){return transformNumberForAllOf(rootSchema,values,params);}}}}return(0,_transformSchema.renderNumber)(rootSchema,values,getRenderParams(rootSchema,values,params));}function transformStringForEnum(rootSchema,values,params){var _params$uri22=params.uri,uri=_params$uri22===void 0?'#/':_params$uri22;var _getMetaProps16=(0,_common.getMetaProps)(params,uri),_getMetaProps16$selec=_getMetaProps16.selectedItems,selectedItems=_getMetaProps16$selec===void 0?(0,_common.getSelectedItems)(values,uri):_getMetaProps16$selec;var items=(0,_common.getEnum)(rootSchema);return(0,_transformSchema.renderStringForEnum)(rootSchema,values,getRenderParamsForEnum(rootSchema,values,Object.assign(params,{selectedItems:selectedItems,items:items})));}function transformStringForAnyOf(rootSchema,values,params){var _params$uri23=params.uri,uri=_params$uri23===void 0?'#/':_params$uri23;var _getMetaProps17=(0,_common.getMetaProps)(params,uri),_getMetaProps17$selec=_getMetaProps17.selectedItems,selectedItems=_getMetaProps17$selec===void 0?(0,_common.getSelectedItems)(values,uri):_getMetaProps17$selec;var _rootSchema$anyOf6=rootSchema.anyOf,anyOf=_rootSchema$anyOf6===void 0?[]:_rootSchema$anyOf6;var items=anyOf.map((0,_transformSchema.mapTransformStringByIndex)(rootSchema,values,Object.assign(params,{selectedItems:selectedItems,parentUri:uri})));return(0,_transformSchema.renderStringForAnyOf)(rootSchema,values,getRenderParamsForAnyOf(rootSchema,values,Object.assign(params,{selectedItems:selectedItems,items:items})));}function transformStringForOneOf(rootSchema,values,params){var _params$uri24=params.uri,uri=_params$uri24===void 0?'#/':_params$uri24;var _getMetaProps18=(0,_common.getMetaProps)(params,uri),_getMetaProps18$selec=_getMetaProps18.selectedItems,selectedItems=_getMetaProps18$selec===void 0?(0,_common.getSelectedItems)(values,uri):_getMetaProps18$selec;var _rootSchema$oneOf6=rootSchema.oneOf,oneOf=_rootSchema$oneOf6===void 0?[]:_rootSchema$oneOf6;var items=oneOf.map((0,_transformSchema.mapTransformStringByIndex)(rootSchema,values,Object.assign(params,{selectedItems:selectedItems,parentUri:uri})));return(0,_transformSchema.renderStringForOneOf)(rootSchema,values,getRenderParamsForOneOf(rootSchema,values,Object.assign(params,{selectedItems:selectedItems,items:items})));}function transformStringForAllOf(rootSchema,values,params){var _rootSchema$allOf6=rootSchema.allOf,allOf=_rootSchema$allOf6===void 0?[]:_rootSchema$allOf6,rest=_objectWithoutProperties(rootSchema,_excluded6);var itemSchema=allOf.reduce(function(accumulator,schema){return Object.assign(accumulator,schema);},rest);return(0,_transformSchema.renderStringForAllOf)(itemSchema,values,getRenderParamsForAllOf(rootSchema,values,params));}function transformString(rootSchema,values,params){if((0,_common.hasEnum)(rootSchema)){return transformStringForEnum(rootSchema,values,params);}else{if((0,_common.hasAnyOf)(rootSchema)){return transformStringForAnyOf(rootSchema,values,params);}else{if((0,_common.hasOneOf)(rootSchema)){return transformStringForOneOf(rootSchema,values,params);}else{if((0,_common.hasAllOf)(rootSchema)){return transformStringForAllOf(rootSchema,values,params);}}}}return(0,_transformSchema.renderString)(rootSchema,values,getRenderParams(rootSchema,values,params));}function toZashiki(){var rootSchema=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var values=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var params=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};log('toZashiki');var type=rootSchema.type;switch(type){case'null':return transformNull(rootSchema,values,params);case'boolean':return transformBoolean(rootSchema,values,params);case'object':return transformObject(rootSchema,values,params);case'array':return transformArray(rootSchema,values,params);case'number':return transformNumber(rootSchema,values,params);case'string':return transformString(rootSchema,values,params);default:throw new Error('Schema does not conform to Instance Data Model, https://json-schema.org/draft/2019-09/json-schema-core.html#rfc.section.4.2.1');}}
@@ -1 +0,0 @@
1
- "use strict";require("core-js/modules/es.object.keys.js");require("core-js/modules/es.array.index-of.js");require("core-js/modules/es.symbol.js");require("core-js/modules/es.array.is-array.js");require("core-js/modules/es.symbol.description.js");require("core-js/modules/es.object.to-string.js");require("core-js/modules/es.symbol.iterator.js");require("core-js/modules/es.array.iterator.js");require("core-js/modules/es.string.iterator.js");require("core-js/modules/web.dom-collections.iterator.js");require("core-js/modules/es.array.slice.js");require("core-js/modules/es.function.name.js");require("core-js/modules/es.array.from.js");require("core-js/modules/es.object.define-property.js");require("core-js/modules/es.array.filter.js");require("core-js/modules/es.object.get-own-property-descriptor.js");require("core-js/modules/es.array.for-each.js");require("core-js/modules/web.dom-collections.for-each.js");require("core-js/modules/es.object.get-own-property-descriptors.js");require("core-js/modules/es.object.define-properties.js");Object.defineProperty(exports,"__esModule",{value:true});exports.mapTransformNullByIndex=mapTransformNullByIndex;exports.mapTransformBooleanByIndex=mapTransformBooleanByIndex;exports.mapTransformObjectByIndex=mapTransformObjectByIndex;exports.mapTransformArrayByIndex=mapTransformArrayByIndex;exports.mapTransformNumberByIndex=mapTransformNumberByIndex;exports.mapTransformStringByIndex=mapTransformStringByIndex;exports.mapTransformByIndex=mapTransformByIndex;exports.mapTransformByKey=mapTransformByKey;exports.getTransformByKey=getTransformByKey;exports.getTransformByIndex=getTransformByIndex;exports.getRenderParamsByKeyForEnum=getRenderParamsByKeyForEnum;exports.getRenderParamsByKeyForAnyOf=getRenderParamsByKeyForAnyOf;exports.getRenderParamsByKeyForOneOf=getRenderParamsByKeyForOneOf;exports.getRenderParamsByKeyForAllOf=getRenderParamsByKeyForAllOf;exports.getRenderParamsByKey=getRenderParamsByKey;exports.getRenderParamsByIndexForEnum=getRenderParamsByIndexForEnum;exports.getRenderParamsByIndexForAnyOf=getRenderParamsByIndexForAnyOf;exports.getRenderParamsByIndexForOneOf=getRenderParamsByIndexForOneOf;exports.getRenderParamsByIndexForAllOf=getRenderParamsByIndexForAllOf;exports.getRenderParamsByIndex=getRenderParamsByIndex;exports.getRenderParamsForEnum=getRenderParamsForEnum;exports.getRenderParamsForAnyOf=getRenderParamsForAnyOf;exports.getRenderParamsForOneOf=getRenderParamsForOneOf;exports.getRenderParamsForAllOf=getRenderParamsForAllOf;exports.getRenderParams=getRenderParams;exports.renderNullMetaForEnum=renderNullMetaForEnum;exports.renderNullMetaForAnyOf=renderNullMetaForAnyOf;exports.renderNullMetaForOneOf=renderNullMetaForOneOf;exports.renderNullMetaForAllOf=renderNullMetaForAllOf;exports.renderNullMeta=renderNullMeta;exports.getNullElementsFieldForEnum=getNullElementsFieldForEnum;exports.getNullElementsFieldForOneOf=getNullElementsFieldForOneOf;exports.getNullElementsFieldForAnyOf=getNullElementsFieldForAnyOf;exports.getNullElementsFieldForAllOf=getNullElementsFieldForAllOf;exports.getNullElementsField=getNullElementsField;exports.getNullElements=getNullElements;exports.renderNullElementsForEnum=renderNullElementsForEnum;exports.renderNullElementsForOneOf=renderNullElementsForOneOf;exports.renderNullElementsForAnyOf=renderNullElementsForAnyOf;exports.renderNullElementsForAllOf=renderNullElementsForAllOf;exports.renderNullElements=renderNullElements;exports.renderBooleanMetaForEnum=renderBooleanMetaForEnum;exports.renderBooleanMetaForAnyOf=renderBooleanMetaForAnyOf;exports.renderBooleanMetaForOneOf=renderBooleanMetaForOneOf;exports.renderBooleanMetaForAllOf=renderBooleanMetaForAllOf;exports.renderBooleanMeta=renderBooleanMeta;exports.getBooleanElementsFieldForEnum=getBooleanElementsFieldForEnum;exports.getBooleanElementsFieldForAnyOf=getBooleanElementsFieldForAnyOf;exports.getBooleanElementsFieldForOneOf=getBooleanElementsFieldForOneOf;exports.getBooleanElementsFieldForAllOf=getBooleanElementsFieldForAllOf;exports.getBooleanElementsField=getBooleanElementsField;exports.getBooleanElements=getBooleanElements;exports.renderBooleanElementsForEnum=renderBooleanElementsForEnum;exports.renderBooleanElementsForAnyOf=renderBooleanElementsForAnyOf;exports.renderBooleanElementsForOneOf=renderBooleanElementsForOneOf;exports.renderBooleanElementsForAllOf=renderBooleanElementsForAllOf;exports.renderBooleanElements=renderBooleanElements;exports.renderObjectMetaForEnum=renderObjectMetaForEnum;exports.renderObjectMetaForAnyOf=renderObjectMetaForAnyOf;exports.renderObjectMetaForOneOf=renderObjectMetaForOneOf;exports.renderObjectMetaForAllOf=renderObjectMetaForAllOf;exports.renderObjectMeta=renderObjectMeta;exports.getObjectElementsFieldForEnum=getObjectElementsFieldForEnum;exports.getObjectElementsFieldForAnyOf=getObjectElementsFieldForAnyOf;exports.getObjectElementsFieldForOneOf=getObjectElementsFieldForOneOf;exports.getObjectElementsFieldForAllOf=getObjectElementsFieldForAllOf;exports.getObjectElements=getObjectElements;exports.renderObjectElementsForEnum=renderObjectElementsForEnum;exports.renderObjectElementsForAnyOf=renderObjectElementsForAnyOf;exports.renderObjectElementsForOneOf=renderObjectElementsForOneOf;exports.renderObjectElementsForAllOf=renderObjectElementsForAllOf;exports.renderObjectElements=renderObjectElements;exports.renderArrayMetaForEnum=renderArrayMetaForEnum;exports.renderArrayMetaForAnyOf=renderArrayMetaForAnyOf;exports.renderArrayMetaForOneOf=renderArrayMetaForOneOf;exports.renderArrayMetaForAllOf=renderArrayMetaForAllOf;exports.renderArrayMeta=renderArrayMeta;exports.getArrayElementsFieldForEnum=getArrayElementsFieldForEnum;exports.getArrayElementsFieldForAnyOf=getArrayElementsFieldForAnyOf;exports.getArrayElementsFieldForOneOf=getArrayElementsFieldForOneOf;exports.getArrayElementsFieldForAllOf=getArrayElementsFieldForAllOf;exports.getArrayElements=getArrayElements;exports.renderArrayElementsForEnum=renderArrayElementsForEnum;exports.renderArrayElementsForAnyOf=renderArrayElementsForAnyOf;exports.renderArrayElementsForOneOf=renderArrayElementsForOneOf;exports.renderArrayElementsForAllOf=renderArrayElementsForAllOf;exports.renderArrayElements=renderArrayElements;exports.renderNumberMetaForEnum=renderNumberMetaForEnum;exports.renderNumberMetaForAnyOf=renderNumberMetaForAnyOf;exports.renderNumberMetaForOneOf=renderNumberMetaForOneOf;exports.renderNumberMetaForAllOf=renderNumberMetaForAllOf;exports.renderNumberMeta=renderNumberMeta;exports.getNumberElementsFieldForEnum=getNumberElementsFieldForEnum;exports.getNumberElementsFieldForAnyOf=getNumberElementsFieldForAnyOf;exports.getNumberElementsFieldForOneOf=getNumberElementsFieldForOneOf;exports.getNumberElementsFieldForAllOf=getNumberElementsFieldForAllOf;exports.getNumberElementsField=getNumberElementsField;exports.getNumberElements=getNumberElements;exports.renderNumberElementsForEnum=renderNumberElementsForEnum;exports.renderNumberElementsForAnyOf=renderNumberElementsForAnyOf;exports.renderNumberElementsForOneOf=renderNumberElementsForOneOf;exports.renderNumberElementsForAllOf=renderNumberElementsForAllOf;exports.renderNumberElements=renderNumberElements;exports.renderStringMetaForEnum=renderStringMetaForEnum;exports.renderStringMetaForAnyOf=renderStringMetaForAnyOf;exports.renderStringMetaForOneOf=renderStringMetaForOneOf;exports.renderStringMetaForAllOf=renderStringMetaForAllOf;exports.renderStringMeta=renderStringMeta;exports.getStringElementsFieldForEnum=getStringElementsFieldForEnum;exports.getStringElementsFieldForAnyOf=getStringElementsFieldForAnyOf;exports.getStringElementsFieldForOneOf=getStringElementsFieldForOneOf;exports.getStringElementsFieldForAllOf=getStringElementsFieldForAllOf;exports.getStringElementsField=getStringElementsField;exports.getStringElements=getStringElements;exports.renderStringElementsForEnum=renderStringElementsForEnum;exports.renderStringElementsForAnyOf=renderStringElementsForAnyOf;exports.renderStringElementsForOneOf=renderStringElementsForOneOf;exports.renderStringElementsForAllOf=renderStringElementsForAllOf;exports.renderStringElements=renderStringElements;exports.renderNullForEnum=renderNullForEnum;exports.renderNullForAnyOf=renderNullForAnyOf;exports.renderNullForOneOf=renderNullForOneOf;exports.renderNullForAllOf=renderNullForAllOf;exports.renderNull=renderNull;exports.renderBooleanForEnum=renderBooleanForEnum;exports.renderBooleanForAnyOf=renderBooleanForAnyOf;exports.renderBooleanForOneOf=renderBooleanForOneOf;exports.renderBooleanForAllOf=renderBooleanForAllOf;exports.renderBoolean=renderBoolean;exports.renderObjectForEnum=renderObjectForEnum;exports.renderObjectForAnyOf=renderObjectForAnyOf;exports.renderObjectForOneOf=renderObjectForOneOf;exports.renderObjectForAllOf=renderObjectForAllOf;exports.renderObject=renderObject;exports.renderArrayForEnum=renderArrayForEnum;exports.renderArrayForAnyOf=renderArrayForAnyOf;exports.renderArrayForOneOf=renderArrayForOneOf;exports.renderArrayForAllOf=renderArrayForAllOf;exports.renderArray=renderArray;exports.renderNumberForEnum=renderNumberForEnum;exports.renderNumberForAnyOf=renderNumberForAnyOf;exports.renderNumberForOneOf=renderNumberForOneOf;exports.renderNumberForAllOf=renderNumberForAllOf;exports.renderNumber=renderNumber;exports.renderStringForEnum=renderStringForEnum;exports.renderStringForAnyOf=renderStringForAnyOf;exports.renderStringForOneOf=renderStringForOneOf;exports.renderStringForAllOf=renderStringForAllOf;exports.renderString=renderString;exports.transformNullByKeyForEnum=transformNullByKeyForEnum;exports.transformNullByKeyForAnyOf=transformNullByKeyForAnyOf;exports.transformNullByKeyForOneOf=transformNullByKeyForOneOf;exports.transformNullByKeyForAllOf=transformNullByKeyForAllOf;exports.transformNullByIndexForEnum=transformNullByIndexForEnum;exports.transformNullByIndexForAnyOf=transformNullByIndexForAnyOf;exports.transformNullByIndexForOneOf=transformNullByIndexForOneOf;exports.transformNullByIndexForAllOf=transformNullByIndexForAllOf;exports.transformNullForEnum=transformNullForEnum;exports.transformNullForAnyOf=transformNullForAnyOf;exports.transformNullForOneOf=transformNullForOneOf;exports.transformNullForAllOf=transformNullForAllOf;exports.transformBooleanByKeyForEnum=transformBooleanByKeyForEnum;exports.transformBooleanByKeyForAnyOf=transformBooleanByKeyForAnyOf;exports.transformBooleanByKeyForOneOf=transformBooleanByKeyForOneOf;exports.transformBooleanByKeyForAllOf=transformBooleanByKeyForAllOf;exports.transformBooleanByIndexForEnum=transformBooleanByIndexForEnum;exports.transformBooleanByIndexForAnyOf=transformBooleanByIndexForAnyOf;exports.transformBooleanByIndexForOneOf=transformBooleanByIndexForOneOf;exports.transformBooleanByIndexForAllOf=transformBooleanByIndexForAllOf;exports.transformBooleanForEnum=transformBooleanForEnum;exports.transformBooleanForAnyOf=transformBooleanForAnyOf;exports.transformBooleanForOneOf=transformBooleanForOneOf;exports.transformBooleanForAllOf=transformBooleanForAllOf;exports.transformObjectByKeyForEnum=transformObjectByKeyForEnum;exports.transformObjectByKeyForAnyOf=transformObjectByKeyForAnyOf;exports.transformObjectByKeyForOneOf=transformObjectByKeyForOneOf;exports.transformObjectByKeyForAllOf=transformObjectByKeyForAllOf;exports.transformObjectByIndexForEnum=transformObjectByIndexForEnum;exports.transformObjectByIndexForAnyOf=transformObjectByIndexForAnyOf;exports.transformObjectByIndexForOneOf=transformObjectByIndexForOneOf;exports.transformObjectByIndexForAllOf=transformObjectByIndexForAllOf;exports.transformObjectForEnum=transformObjectForEnum;exports.transformObjectForAnyOf=transformObjectForAnyOf;exports.transformObjectForOneOf=transformObjectForOneOf;exports.transformObjectForAllOf=transformObjectForAllOf;exports.transformArrayByKeyForEnum=transformArrayByKeyForEnum;exports.transformArrayByKeyForAnyOf=transformArrayByKeyForAnyOf;exports.transformArrayByKeyForOneOf=transformArrayByKeyForOneOf;exports.transformArrayByKeyForAllOf=transformArrayByKeyForAllOf;exports.transformArrayByIndexForEnum=transformArrayByIndexForEnum;exports.transformArrayByIndexForAnyOf=transformArrayByIndexForAnyOf;exports.transformArrayByIndexForOneOf=transformArrayByIndexForOneOf;exports.transformArrayByIndexForAllOf=transformArrayByIndexForAllOf;exports.transformArrayForEnum=transformArrayForEnum;exports.transformArrayForAnyOf=transformArrayForAnyOf;exports.transformArrayForOneOf=transformArrayForOneOf;exports.transformArrayForAllOf=transformArrayForAllOf;exports.transformNumberByKeyForEnum=transformNumberByKeyForEnum;exports.transformNumberByKeyForAnyOf=transformNumberByKeyForAnyOf;exports.transformNumberByKeyForOneOf=transformNumberByKeyForOneOf;exports.transformNumberByKeyForAllOf=transformNumberByKeyForAllOf;exports.transformNumberByIndexForEnum=transformNumberByIndexForEnum;exports.transformNumberByIndexForAnyOf=transformNumberByIndexForAnyOf;exports.transformNumberByIndexForOneOf=transformNumberByIndexForOneOf;exports.transformNumberByIndexForAllOf=transformNumberByIndexForAllOf;exports.transformNumberForEnum=transformNumberForEnum;exports.transformNumberForAnyOf=transformNumberForAnyOf;exports.transformNumberForOneOf=transformNumberForOneOf;exports.transformNumberForAllOf=transformNumberForAllOf;exports.transformStringByKeyForEnum=transformStringByKeyForEnum;exports.transformStringByKeyForAnyOf=transformStringByKeyForAnyOf;exports.transformStringByKeyForOneOf=transformStringByKeyForOneOf;exports.transformStringByKeyForAllOf=transformStringByKeyForAllOf;exports.transformStringByIndexForEnum=transformStringByIndexForEnum;exports.transformStringByIndexForAnyOf=transformStringByIndexForAnyOf;exports.transformStringByIndexForOneOf=transformStringByIndexForOneOf;exports.transformStringByIndexForAllOf=transformStringByIndexForAllOf;exports.transformStringForEnum=transformStringForEnum;exports.transformStringForAnyOf=transformStringForAnyOf;exports.transformStringForOneOf=transformStringForOneOf;exports.transformStringForAllOf=transformStringForAllOf;exports.transformNullByKey=transformNullByKey;exports.transformNullByIndex=transformNullByIndex;exports.transformBooleanByKey=transformBooleanByKey;exports.transformBooleanByIndex=transformBooleanByIndex;exports.transformObjectByKey=transformObjectByKey;exports.transformObjectByIndex=transformObjectByIndex;exports.transformArrayByKey=transformArrayByKey;exports.transformArrayByIndex=transformArrayByIndex;exports.transformNumberByKey=transformNumberByKey;exports.transformNumberByIndex=transformNumberByIndex;exports.transformStringByKey=transformStringByKey;exports.transformStringByIndex=transformStringByIndex;exports.transformNull=transformNull;exports.transformBoolean=transformBoolean;exports.transformObject=transformObject;exports.transformArray=transformArray;exports.transformNumber=transformNumber;exports.transformString=transformString;exports.getParamsByKeyForEnum=getParamsByKeyForEnum;exports.getParamsByKeyForAnyOf=getParamsByKeyForAnyOf;exports.getParamsByKeyForOneOf=getParamsByKeyForOneOf;exports.getParamsByKey=getParamsByKey;exports.getParamsByIndexForEnum=getParamsByIndexForEnum;exports.getParamsByIndexForAnyOf=getParamsByIndexForAnyOf;exports.getParamsByIndexForOneOf=getParamsByIndexForOneOf;exports.getParamsByIndex=getParamsByIndex;exports.transformByKeyForEnum=transformByKeyForEnum;exports.transformByKeyForAnyOf=transformByKeyForAnyOf;exports.transformByKeyForOneOf=transformByKeyForOneOf;exports.transformByIndexForEnum=transformByIndexForEnum;exports.transformByIndexForAnyOf=transformByIndexForAnyOf;exports.transformByIndexForOneOf=transformByIndexForOneOf;exports.transformByKey=transformByKey;exports.transformByIndex=transformByIndex;exports["default"]=toZashiki;require("core-js/modules/es.object.assign.js");require("core-js/modules/es.array.includes.js");require("core-js/modules/es.string.includes.js");require("core-js/modules/es.reflect.has.js");require("core-js/modules/es.reflect.get.js");require("core-js/modules/es.array.map.js");require("core-js/modules/es.array.reduce.js");require("core-js/modules/es.object.entries.js");var _debug=_interopRequireDefault(require("debug"));var _common=require("../common");var _excluded=["required"],_excluded2=["parentUri","key","selectedItems","items"],_excluded3=["parentUri","key","selectedItems","items"],_excluded4=["parentUri","key","selectedItems","items"],_excluded5=["parentUri","key"],_excluded6=["parentUri","key"],_excluded7=["parentUri","index","selectedItems","items"],_excluded8=["parentUri","index","selectedItems","items"],_excluded9=["parentUri","index","selectedItems","items"],_excluded10=["parentUri","index"],_excluded11=["parentUri","index"],_excluded12=["parentUri","uri","selectedItems","items"],_excluded13=["parentUri","uri","selectedItems","items"],_excluded14=["parentUri","uri","selectedItems","items"],_excluded15=["parentUri","uri"],_excluded16=["parentUri","uri","fields"],_excluded17=["parentUri"],_excluded18=["parentUri"],_excluded19=["parentUri"],_excluded20=["parentUri"],_excluded21=["parentUri"],_excluded22=["parentUri"],_excluded23=["parentUri"],_excluded24=["parentUri"],_excluded25=["parentUri"],_excluded26=["parentUri"],_excluded27=["parentUri"],_excluded28=["parentUri"],_excluded29=["parentUri"],_excluded30=["parentUri"],_excluded31=["parentUri"],_excluded32=["parentUri"],_excluded33=["parentUri"],_excluded34=["parentUri"],_excluded35=["parentUri"],_excluded36=["parentUri"],_excluded37=["parentUri"],_excluded38=["parentUri"],_excluded39=["parentUri"],_excluded40=["parentUri"],_excluded41=["parentUri"],_excluded42=["parentUri"],_excluded43=["parentUri"],_excluded44=["parentUri"],_excluded45=["parentUri"],_excluded46=["parentUri"],_excluded47=["allOf"],_excluded48=["allOf"],_excluded49=["allOf"],_excluded50=["allOf"],_excluded51=["allOf"],_excluded52=["allOf"],_excluded53=["allOf"],_excluded54=["allOf"],_excluded55=["allOf"],_excluded56=["allOf"],_excluded57=["allOf"],_excluded58=["allOf"],_excluded59=["allOf"],_excluded60=["allOf"],_excluded61=["allOf"],_excluded62=["allOf"],_excluded63=["allOf"],_excluded64=["allOf"],_excluded65=["parentUri","key","isRequired"],_excluded66=["parentUri","key","isRequired"],_excluded67=["parentUri","key","isRequired"],_excluded68=["parentUri","key","isRequired"],_excluded69=["parentUri","index"],_excluded70=["selectedItems"],_excluded71=["parentUri","index"],_excluded72=["selectedItems"],_excluded73=["parentUri","index"],_excluded74=["selectedItems"],_excluded75=["parentUri","index"];function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj};}function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);if(enumerableOnly){symbols=symbols.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable;});}keys.push.apply(keys,symbols);}return keys;}function _objectSpread(target){for(var i=1;i<arguments.length;i++){var source=arguments[i]!=null?arguments[i]:{};if(i%2){ownKeys(Object(source),true).forEach(function(key){_defineProperty(target,key,source[key]);});}else if(Object.getOwnPropertyDescriptors){Object.defineProperties(target,Object.getOwnPropertyDescriptors(source));}else{ownKeys(Object(source)).forEach(function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key));});}}return target;}function _defineProperty(obj,key,value){if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true});}else{obj[key]=value;}return obj;}function _slicedToArray(arr,i){return _arrayWithHoles(arr)||_iterableToArrayLimit(arr,i)||_unsupportedIterableToArray(arr,i)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(o,minLen){if(!o)return;if(typeof o==="string")return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor)n=o.constructor.name;if(n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen);}function _arrayLikeToArray(arr,len){if(len==null||len>arr.length)len=arr.length;for(var i=0,arr2=new Array(len);i<len;i++){arr2[i]=arr[i];}return arr2;}function _iterableToArrayLimit(arr,i){var _i=arr==null?null:typeof Symbol!=="undefined"&&arr[Symbol.iterator]||arr["@@iterator"];if(_i==null)return;var _arr=[];var _n=true;var _d=false;var _s,_e;try{for(_i=_i.call(arr);!(_n=(_s=_i.next()).done);_n=true){_arr.push(_s.value);if(i&&_arr.length===i)break;}}catch(err){_d=true;_e=err;}finally{try{if(!_n&&_i["return"]!=null)_i["return"]();}finally{if(_d)throw _e;}}return _arr;}function _arrayWithHoles(arr){if(Array.isArray(arr))return arr;}function _objectWithoutProperties(source,excluded){if(source==null)return{};var target=_objectWithoutPropertiesLoose(source,excluded);var key,i;if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i<sourceSymbolKeys.length;i++){key=sourceSymbolKeys[i];if(excluded.indexOf(key)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(source,key))continue;target[key]=source[key];}}return target;}function _objectWithoutPropertiesLoose(source,excluded){if(source==null)return{};var target={};var sourceKeys=Object.keys(source);var key,i;for(i=0;i<sourceKeys.length;i++){key=sourceKeys[i];if(excluded.indexOf(key)>=0)continue;target[key]=source[key];}return target;}var log=(0,_debug["default"])('shinkansen-transmission:to-zashiki:schema');log('`shinkansen-transmission` is awake');function mapTransformNullByIndex(rootSchema,values,params){return function map(schema,index){return transformNullByIndex(schema,rootSchema,values,Object.assign(params,{index:index}));};}function mapTransformBooleanByIndex(rootSchema,values,params){return function map(schema,index){return transformBooleanByIndex(schema,rootSchema,values,Object.assign(params,{index:index}));};}function mapTransformObjectByIndex(rootSchema,values,params){return function map(schema,index){return transformObjectByIndex(schema,rootSchema,values,Object.assign(params,{index:index}));};}function mapTransformArrayByIndex(rootSchema,values,params){return function map(schema,index){return transformArrayByIndex(schema,rootSchema,values,Object.assign(params,{index:index}));};}function mapTransformNumberByIndex(rootSchema,values,params){return function map(schema,index){return transformNumberByIndex(schema,rootSchema,values,Object.assign(params,{index:index}));};}function mapTransformStringByIndex(rootSchema,values,params){return function map(schema,index){return transformStringByIndex(schema,rootSchema,values,Object.assign(params,{index:index}));};}function mapTransformByIndex(rootSchema,values,params){return function map(schema,index){return getTransformByIndex(schema,rootSchema,values,Object.assign(params,{index:index}));};}function mapTransformByKey(rootSchema,values,_ref){var _ref$required=_ref.required,required=_ref$required===void 0?[]:_ref$required,params=_objectWithoutProperties(_ref,_excluded);return function map(_ref2){var _ref3=_slicedToArray(_ref2,2),key=_ref3[0],schema=_ref3[1];return getTransformByKey(schema,rootSchema,values,Object.assign(params,{isRequired:required.includes(key),key:key}));};}function getTransformByKey(schema,rootSchema,values,params){if((0,_common.hasEnum)(schema)){return transformByKeyForEnum(schema,rootSchema,values,params);}else{if((0,_common.hasAnyOf)(schema)){return transformByKeyForAnyOf(schema,rootSchema,values,params);}else{if((0,_common.hasOneOf)(schema)){return transformByKeyForOneOf(schema,rootSchema,values,params);}}}return transformByKey(schema,rootSchema,values,getParamsByKey(schema,rootSchema,values,params));}function getTransformByIndex(schema,rootSchema,values,params){if((0,_common.hasEnum)(schema)){return transformByIndexForEnum(schema,rootSchema,values,params);}else{if((0,_common.hasAnyOf)(schema)){return transformByIndexForAnyOf(schema,rootSchema,values,params);}else{if((0,_common.hasOneOf)(schema)){return transformByIndexForOneOf(schema,rootSchema,values,params);}}}if((0,_common.isArraySchema)(schema)){return transformByIndex(schema,rootSchema,values,getParamsByIndex(schema,rootSchema,values,params));}else{if((0,_common.isObjectSchema)(schema)){return transformByIndex(schema,rootSchema,values,getParamsByIndex(schema,rootSchema,values,params));}else{var _params$parentUri=params.parentUri,parentUri=_params$parentUri===void 0?'#/':_params$parentUri;if(Reflect.has(values,parentUri)){var value=Reflect.get(values,parentUri);if((0,_common.isPrimitive)(value)){var _params$index=params.index,index=_params$index===void 0?0:_params$index;var uri=(0,_common.getUri)(parentUri,index);var meta=Object.assign((0,_common.getMetaProps)(params,uri),{parentUri:parentUri,uri:uri,value:String(value)});var elements={field:Object.assign((0,_common.getElementsFieldProps)(params,uri),{value:String(value)})};return transformByIndex(schema,rootSchema,values,_objectSpread(_objectSpread({},params),{},_defineProperty({parentUri:parentUri,uri:uri},uri,{meta:meta,elements:elements})));}else{var _params$index2=params.index,_index=_params$index2===void 0?0:_params$index2;if(Reflect.has(value,_index)){var v=Reflect.get(value,_index);var _uri=(0,_common.getUri)(parentUri,_index);var _meta=Object.assign((0,_common.getMetaProps)(params,_uri),{parentUri:parentUri,uri:_uri,value:String(v)});var _elements={field:Object.assign((0,_common.getElementsFieldProps)(params,_uri),{value:String(v)})};return transformByIndex(schema,rootSchema,values,_objectSpread(_objectSpread({},params),{},_defineProperty({parentUri:parentUri,uri:_uri},_uri,{meta:_meta,elements:_elements})));}}}}}return transformByIndex(schema,rootSchema,values,getParamsByIndex(schema,rootSchema,values,params));}function getRenderParamsByKeyForEnum(schema,rootSchema,values,_ref4){var _ref4$parentUri=_ref4.parentUri,fieldParentUri=_ref4$parentUri===void 0?'#':_ref4$parentUri,_ref4$key=_ref4.key,fieldKey=_ref4$key===void 0?'':_ref4$key,_ref4$selectedItems=_ref4.selectedItems,selectedItems=_ref4$selectedItems===void 0?[]:_ref4$selectedItems,_ref4$items=_ref4.items,items=_ref4$items===void 0?[]:_ref4$items,params=_objectWithoutProperties(_ref4,_excluded2);var parentUri=(0,_common.normaliseUri)(fieldParentUri);var uri=(0,_common.getUri)(fieldParentUri,fieldKey);var meta=Object.assign((0,_common.getMetaProps)(params,uri),{schema:schema,rootSchema:rootSchema,parentUri:parentUri,uri:uri,selectedItems:selectedItems,items:items,name:fieldKey});var elements={"enum":Object.assign((0,_common.getElementsFieldPropsForEnum)(params,uri),{selectedItems:selectedItems,items:items})};return Object.assign(params,_defineProperty({parentUri:parentUri,uri:uri},uri,{meta:meta,elements:elements}));}function getRenderParamsByKeyForAnyOf(schema,rootSchema,values,_ref5){var _ref5$parentUri=_ref5.parentUri,fieldParentUri=_ref5$parentUri===void 0?'#':_ref5$parentUri,_ref5$key=_ref5.key,fieldKey=_ref5$key===void 0?'':_ref5$key,_ref5$selectedItems=_ref5.selectedItems,selectedItems=_ref5$selectedItems===void 0?[]:_ref5$selectedItems,_ref5$items=_ref5.items,items=_ref5$items===void 0?[]:_ref5$items,params=_objectWithoutProperties(_ref5,_excluded3);var parentUri=(0,_common.normaliseUri)(fieldParentUri);var uri=(0,_common.getUri)(fieldParentUri,fieldKey);var meta=Object.assign((0,_common.getMetaProps)(params,uri),{schema:schema,rootSchema:rootSchema,parentUri:parentUri,uri:uri,selectedItems:selectedItems,items:items,name:fieldKey});var elements={anyOf:Object.assign((0,_common.getElementsFieldPropsForAnyOf)(params,uri),{selectedItems:selectedItems,items:items})};return Object.assign(params,_defineProperty({parentUri:parentUri,uri:uri},uri,{meta:meta,elements:elements}));}function getRenderParamsByKeyForOneOf(schema,rootSchema,values,_ref6){var _ref6$parentUri=_ref6.parentUri,fieldParentUri=_ref6$parentUri===void 0?'#':_ref6$parentUri,_ref6$key=_ref6.key,fieldKey=_ref6$key===void 0?'':_ref6$key,_ref6$selectedItems=_ref6.selectedItems,selectedItems=_ref6$selectedItems===void 0?[]:_ref6$selectedItems,_ref6$items=_ref6.items,items=_ref6$items===void 0?[]:_ref6$items,params=_objectWithoutProperties(_ref6,_excluded4);var parentUri=(0,_common.normaliseUri)(fieldParentUri);var uri=(0,_common.getUri)(fieldParentUri,fieldKey);var meta=Object.assign((0,_common.getMetaProps)(params,uri),{schema:schema,rootSchema:rootSchema,parentUri:parentUri,uri:uri,selectedItems:selectedItems,items:items,name:fieldKey});var elements={oneOf:Object.assign((0,_common.getElementsFieldPropsForOneOf)(params,uri),{selectedItems:selectedItems,items:items})};return Object.assign(params,_defineProperty({parentUri:parentUri,uri:uri},uri,{meta:meta,elements:elements}));}function getRenderParamsByKeyForAllOf(schema,rootSchema,values,_ref7){var _ref7$parentUri=_ref7.parentUri,fieldParentUri=_ref7$parentUri===void 0?'#':_ref7$parentUri,_ref7$key=_ref7.key,fieldKey=_ref7$key===void 0?'':_ref7$key,params=_objectWithoutProperties(_ref7,_excluded5);var parentUri=(0,_common.normaliseUri)(fieldParentUri);var uri=(0,_common.getUri)(fieldParentUri,fieldKey);var meta=Object.assign((0,_common.getMetaProps)(params,uri),{schema:schema,rootSchema:rootSchema,parentUri:parentUri,uri:uri,name:fieldKey});return Object.assign(params,_defineProperty({parentUri:parentUri,uri:uri},uri,{meta:meta,elements:(0,_common.getElementsProps)(params,uri)}));}function getRenderParamsByKey(schema,rootSchema,values,_ref8){var _ref8$parentUri=_ref8.parentUri,fieldParentUri=_ref8$parentUri===void 0?'#':_ref8$parentUri,_ref8$key=_ref8.key,fieldKey=_ref8$key===void 0?'':_ref8$key,params=_objectWithoutProperties(_ref8,_excluded6);var parentUri=(0,_common.normaliseUri)(fieldParentUri);var uri=(0,_common.getUri)(fieldParentUri,fieldKey);var meta=Object.assign((0,_common.getMetaProps)(params,uri),{schema:schema,rootSchema:rootSchema,parentUri:parentUri,uri:uri,name:fieldKey});var elements={field:(0,_common.getElementsFieldProps)(params,uri)};return Object.assign(params,_defineProperty({parentUri:parentUri,uri:uri},uri,{meta:meta,elements:elements}));}function getRenderParamsByIndexForEnum(schema,rootSchema,values,_ref9){var _ref9$parentUri=_ref9.parentUri,arrayParentUri=_ref9$parentUri===void 0?'#':_ref9$parentUri,_ref9$index=_ref9.index,arrayIndex=_ref9$index===void 0?0:_ref9$index,_ref9$selectedItems=_ref9.selectedItems,selectedItems=_ref9$selectedItems===void 0?[]:_ref9$selectedItems,_ref9$items=_ref9.items,items=_ref9$items===void 0?[]:_ref9$items,params=_objectWithoutProperties(_ref9,_excluded7);var parentUri=(0,_common.normaliseUri)(arrayParentUri);var uri=(0,_common.getUri)(arrayParentUri,arrayIndex);var meta=Object.assign((0,_common.getMetaProps)(params,uri),{schema:schema,rootSchema:rootSchema,parentUri:parentUri,uri:uri,selectedItems:selectedItems,items:items,item:arrayIndex});var elements={"enum":Object.assign((0,_common.getElementsFieldPropsForEnum)(params,uri),{selectedItems:selectedItems,items:items})};return Object.assign(params,_defineProperty({parentUri:parentUri,uri:uri},uri,{meta:meta,elements:elements}));}function getRenderParamsByIndexForAnyOf(schema,rootSchema,values,_ref10){var _ref10$parentUri=_ref10.parentUri,arrayParentUri=_ref10$parentUri===void 0?'#':_ref10$parentUri,_ref10$index=_ref10.index,arrayIndex=_ref10$index===void 0?0:_ref10$index,_ref10$selectedItems=_ref10.selectedItems,selectedItems=_ref10$selectedItems===void 0?[]:_ref10$selectedItems,_ref10$items=_ref10.items,items=_ref10$items===void 0?[]:_ref10$items,params=_objectWithoutProperties(_ref10,_excluded8);var parentUri=(0,_common.normaliseUri)(arrayParentUri);var uri=(0,_common.getUri)(arrayParentUri,arrayIndex);var meta=Object.assign((0,_common.getMetaProps)(params,uri),{schema:schema,rootSchema:rootSchema,parentUri:parentUri,uri:uri,selectedItems:selectedItems,items:items,item:arrayIndex});var elements={anyOf:Object.assign((0,_common.getElementsFieldPropsForAnyOf)(params,uri),{selectedItems:selectedItems,items:items})};return Object.assign(params,_defineProperty({parentUri:parentUri,uri:uri},uri,{meta:meta,elements:elements}));}function getRenderParamsByIndexForOneOf(schema,rootSchema,values,_ref11){var _ref11$parentUri=_ref11.parentUri,arrayParentUri=_ref11$parentUri===void 0?'#':_ref11$parentUri,_ref11$index=_ref11.index,arrayIndex=_ref11$index===void 0?0:_ref11$index,_ref11$selectedItems=_ref11.selectedItems,selectedItems=_ref11$selectedItems===void 0?[]:_ref11$selectedItems,_ref11$items=_ref11.items,items=_ref11$items===void 0?[]:_ref11$items,params=_objectWithoutProperties(_ref11,_excluded9);var parentUri=(0,_common.normaliseUri)(arrayParentUri);var uri=(0,_common.getUri)(arrayParentUri,arrayIndex);var meta=Object.assign((0,_common.getMetaProps)(params,uri),{schema:schema,rootSchema:rootSchema,parentUri:parentUri,uri:uri,selectedItems:selectedItems,items:items,item:arrayIndex});var elements={oneOf:Object.assign((0,_common.getElementsFieldPropsForOneOf)(params,uri),{selectedItems:selectedItems,items:items})};return Object.assign(params,_defineProperty({parentUri:parentUri,uri:uri},uri,{meta:meta,elements:elements}));}function getRenderParamsByIndexForAllOf(schema,rootSchema,values,_ref12){var _ref12$parentUri=_ref12.parentUri,arrayParentUri=_ref12$parentUri===void 0?'#':_ref12$parentUri,_ref12$index=_ref12.index,arrayIndex=_ref12$index===void 0?0:_ref12$index,params=_objectWithoutProperties(_ref12,_excluded10);var parentUri=(0,_common.normaliseUri)(arrayParentUri);var uri=(0,_common.getUri)(arrayParentUri,arrayIndex);var meta=Object.assign((0,_common.getMetaProps)(params,uri),{schema:schema,rootSchema:rootSchema,parentUri:parentUri,uri:uri,item:arrayIndex});var elements={field:(0,_common.getElementsFieldPropsForAllOf)(params,uri)};return Object.assign(params,_defineProperty({parentUri:parentUri,uri:uri},uri,{meta:meta,elements:elements}));}function getRenderParamsByIndex(schema,rootSchema,values,_ref13){var _ref13$parentUri=_ref13.parentUri,arrayParentUri=_ref13$parentUri===void 0?'#':_ref13$parentUri,_ref13$index=_ref13.index,arrayIndex=_ref13$index===void 0?0:_ref13$index,params=_objectWithoutProperties(_ref13,_excluded11);var parentUri=(0,_common.normaliseUri)(arrayParentUri);var uri=(0,_common.getUri)(arrayParentUri,arrayIndex);var meta=Object.assign((0,_common.getMetaProps)(params,uri),{schema:schema,rootSchema:rootSchema,parentUri:parentUri,uri:uri,item:arrayIndex});var elements={field:(0,_common.getElementsFieldProps)(params,uri)};return Object.assign(params,_defineProperty({parentUri:parentUri,uri:uri},uri,{meta:meta,elements:elements}));}function getRenderParamsForEnum(schema,rootSchema,values,_ref14){var _ref14$parentUri=_ref14.parentUri,parentUri=_ref14$parentUri===void 0?'#':_ref14$parentUri,_ref14$uri=_ref14.uri,uri=_ref14$uri===void 0?'#/':_ref14$uri,_ref14$selectedItems=_ref14.selectedItems,selectedItems=_ref14$selectedItems===void 0?[]:_ref14$selectedItems,_ref14$items=_ref14.items,items=_ref14$items===void 0?[]:_ref14$items,params=_objectWithoutProperties(_ref14,_excluded12);var meta=Object.assign((0,_common.getMetaProps)(params,uri),{schema:schema,rootSchema:rootSchema,parentUri:(0,_common.normaliseUri)(parentUri),uri:uri,selectedItems:selectedItems,items:items});var elements={"enum":Object.assign((0,_common.getElementsFieldPropsForEnum)(params,uri),{selectedItems:selectedItems,items:items})};return Object.assign(params,_defineProperty({parentUri:parentUri,uri:uri},uri,{meta:meta,elements:elements}));}function getRenderParamsForAnyOf(schema,rootSchema,values,_ref15){var _ref15$parentUri=_ref15.parentUri,parentUri=_ref15$parentUri===void 0?'#':_ref15$parentUri,_ref15$uri=_ref15.uri,uri=_ref15$uri===void 0?'#/':_ref15$uri,_ref15$selectedItems=_ref15.selectedItems,selectedItems=_ref15$selectedItems===void 0?[]:_ref15$selectedItems,_ref15$items=_ref15.items,items=_ref15$items===void 0?[]:_ref15$items,params=_objectWithoutProperties(_ref15,_excluded13);var meta=Object.assign((0,_common.getMetaProps)(params,uri),{schema:schema,rootSchema:rootSchema,parentUri:(0,_common.normaliseUri)(parentUri),uri:uri,selectedItems:selectedItems,items:items});var elements={anyOf:Object.assign((0,_common.getElementsFieldPropsForAnyOf)(params,uri),{selectedItems:selectedItems,items:items})};return Object.assign(params,_defineProperty({parentUri:parentUri,uri:uri},uri,{meta:meta,elements:elements}));}function getRenderParamsForOneOf(schema,rootSchema,values,_ref16){var _ref16$parentUri=_ref16.parentUri,parentUri=_ref16$parentUri===void 0?'#':_ref16$parentUri,_ref16$uri=_ref16.uri,uri=_ref16$uri===void 0?'#/':_ref16$uri,_ref16$selectedItems=_ref16.selectedItems,selectedItems=_ref16$selectedItems===void 0?[]:_ref16$selectedItems,_ref16$items=_ref16.items,items=_ref16$items===void 0?[]:_ref16$items,params=_objectWithoutProperties(_ref16,_excluded14);var meta=Object.assign((0,_common.getMetaProps)(params,uri),{schema:schema,rootSchema:rootSchema,parentUri:(0,_common.normaliseUri)(parentUri),uri:uri,selectedItems:selectedItems,items:items});var elements={oneOf:Object.assign((0,_common.getElementsFieldPropsForOneOf)(params,uri),{selectedItems:selectedItems,items:items})};return Object.assign(params,_defineProperty({parentUri:parentUri,uri:uri},uri,{meta:meta,elements:elements}));}function getRenderParamsForAllOf(schema,rootSchema,values,_ref17){var _ref17$parentUri=_ref17.parentUri,parentUri=_ref17$parentUri===void 0?'#':_ref17$parentUri,_ref17$uri=_ref17.uri,uri=_ref17$uri===void 0?'#/':_ref17$uri,params=_objectWithoutProperties(_ref17,_excluded15);var meta=Object.assign((0,_common.getMetaProps)(params,uri),{schema:schema,rootSchema:rootSchema,parentUri:(0,_common.normaliseUri)(parentUri),uri:uri});var elements={field:(0,_common.getElementsFieldPropsForAllOf)(params,uri)};return Object.assign(params,_defineProperty({parentUri:parentUri,uri:uri},uri,{meta:meta,elements:elements}));}function getRenderParams(schema,rootSchema,values,_ref18){var _ref18$parentUri=_ref18.parentUri,parentUri=_ref18$parentUri===void 0?'#':_ref18$parentUri,_ref18$uri=_ref18.uri,uri=_ref18$uri===void 0?'#/':_ref18$uri,_ref18$fields=_ref18.fields,fields=_ref18$fields===void 0?[]:_ref18$fields,params=_objectWithoutProperties(_ref18,_excluded16);var meta=Object.assign((0,_common.getMetaProps)(params,uri),{schema:schema,rootSchema:rootSchema,parentUri:(0,_common.normaliseUri)(parentUri),uri:uri});var elements=Object.assign((0,_common.getElementsFieldProps)(params,uri),{fields:fields});return Object.assign(params,{fields:fields},_defineProperty({parentUri:parentUri,uri:uri},uri,{meta:meta,elements:elements}));}function renderNullMetaForEnum(params,uri){var _getMetaProps=(0,_common.getMetaProps)(params,uri),_getMetaProps$parentU=_getMetaProps.parentUri,parentUri=_getMetaProps$parentU===void 0?'#':_getMetaProps$parentU,metaProps=_objectWithoutProperties(_getMetaProps,_excluded17);return Object.assign({uri:uri,type:'null'},(0,_common.isParentUri)(parentUri,uri)?{parentUri:parentUri}:{},metaProps);}function renderNullMetaForAnyOf(params,uri){var _getMetaProps2=(0,_common.getMetaProps)(params,uri),_getMetaProps2$parent=_getMetaProps2.parentUri,parentUri=_getMetaProps2$parent===void 0?'#':_getMetaProps2$parent,metaProps=_objectWithoutProperties(_getMetaProps2,_excluded18);return Object.assign({uri:uri,type:'null'},(0,_common.isParentUri)(parentUri,uri)?{parentUri:parentUri}:{},metaProps);}function renderNullMetaForOneOf(params,uri){var _getMetaProps3=(0,_common.getMetaProps)(params,uri),_getMetaProps3$parent=_getMetaProps3.parentUri,parentUri=_getMetaProps3$parent===void 0?'#':_getMetaProps3$parent,metaProps=_objectWithoutProperties(_getMetaProps3,_excluded19);return Object.assign({uri:uri,type:'null'},(0,_common.isParentUri)(parentUri,uri)?{parentUri:parentUri}:{},metaProps);}function renderNullMetaForAllOf(schema,values,params,uri){var metaDefaultValue=(0,_common.getMetaDefaultValue)(schema,uri);var metaValue=(0,_common.getMetaValue)(values,uri,schema);var _getMetaProps4=(0,_common.getMetaProps)(params,uri),_getMetaProps4$parent=_getMetaProps4.parentUri,parentUri=_getMetaProps4$parent===void 0?'#':_getMetaProps4$parent,metaProps=_objectWithoutProperties(_getMetaProps4,_excluded20);var selectedItems;if((0,_common.isParentUri)(parentUri,uri)){var _params$parentUri2=params[parentUri];_params$parentUri2=_params$parentUri2===void 0?{}:_params$parentUri2;var _params$parentUri2$me=_params$parentUri2.meta;_params$parentUri2$me=_params$parentUri2$me===void 0?{}:_params$parentUri2$me;selectedItems=_params$parentUri2$me.selectedItems;}return Object.assign({uri:uri,type:'null'},(0,_common.isParentUri)(parentUri,uri)?{parentUri:parentUri}:{},metaDefaultValue,metaValue,metaProps,(0,_common.isArray)(selectedItems)?{selectedItems:selectedItems}:{});}function renderNullMeta(schema,values,params,uri){var metaDefaultValue=(0,_common.getMetaDefaultValue)(schema,uri);var metaValue=(0,_common.getMetaValue)(values,uri,schema);var _getMetaProps5=(0,_common.getMetaProps)(params,uri),_getMetaProps5$parent=_getMetaProps5.parentUri,parentUri=_getMetaProps5$parent===void 0?'#':_getMetaProps5$parent,metaProps=_objectWithoutProperties(_getMetaProps5,_excluded21);var selectedItems;if((0,_common.isParentUri)(parentUri,uri)){var _params$parentUri3=params[parentUri];_params$parentUri3=_params$parentUri3===void 0?{}:_params$parentUri3;var _params$parentUri3$me=_params$parentUri3.meta;_params$parentUri3$me=_params$parentUri3$me===void 0?{}:_params$parentUri3$me;selectedItems=_params$parentUri3$me.selectedItems;}return Object.assign({uri:uri,type:'null'},(0,_common.isParentUri)(parentUri,uri)?{parentUri:parentUri}:{},metaDefaultValue,metaValue,metaProps,(0,_common.isArray)(selectedItems)?{selectedItems:selectedItems}:{});}function getNullElementsFieldForEnum(field,params,uri){return Object.assign(field,(0,_common.getElementsFieldPropsForEnum)(params,uri),{id:uri});}function getNullElementsFieldForOneOf(field,params,uri){return Object.assign(field,(0,_common.getElementsFieldPropsForOneOf)(params,uri),{id:uri});}function getNullElementsFieldForAnyOf(field,params,uri){return Object.assign(field,(0,_common.getElementsFieldPropsForAnyOf)(params,uri),{id:uri});}function getNullElementsFieldForAllOf(field,schema,values,params,uri){var _params$parentUri4=params.parentUri,parentUri=_params$parentUri4===void 0?'#':_params$parentUri4;var fieldValue=(0,_common.getElementsFieldValue)(values,uri,schema);var fieldProps=(0,_common.getElementsFieldProps)(params,uri);var selectedItems;if((0,_common.isParentUri)(parentUri,uri)){var _params$parentUri5=params[parentUri];_params$parentUri5=_params$parentUri5===void 0?{}:_params$parentUri5;var _params$parentUri5$me=_params$parentUri5.meta;_params$parentUri5$me=_params$parentUri5$me===void 0?{}:_params$parentUri5$me;selectedItems=_params$parentUri5$me.selectedItems;}return Object.assign(field,fieldValue,fieldProps,(0,_common.isArray)(selectedItems)?{selectedItems:selectedItems}:{},{id:uri});}function getNullElementsField(field,schema,values,params,uri){var _params$parentUri6=params.parentUri,parentUri=_params$parentUri6===void 0?'#':_params$parentUri6;var fieldValue=(0,_common.getElementsFieldValue)(values,uri,schema);var fieldProps=(0,_common.getElementsFieldProps)(params,uri);var selectedItems;if((0,_common.isParentUri)(parentUri,uri)){var _params$parentUri7=params[parentUri];_params$parentUri7=_params$parentUri7===void 0?{}:_params$parentUri7;var _params$parentUri7$me=_params$parentUri7.meta;_params$parentUri7$me=_params$parentUri7$me===void 0?{}:_params$parentUri7$me;selectedItems=_params$parentUri7$me.selectedItems;}return Object.assign(field,fieldValue,fieldProps,(0,_common.isArray)(selectedItems)?{selectedItems:selectedItems}:{},{id:uri});}function getNullElements(elements,schema){return Object.assign(elements,(0,_common.getTitle)(schema),(0,_common.getDescription)(schema));}function renderNullElementsForEnum(schema,params,uri){var elements={};var field={};return Object.assign(getNullElements(elements,schema),{"enum":getNullElementsFieldForEnum(field,params,uri)});}function renderNullElementsForOneOf(schema,params,uri){var elements={};var field={};return Object.assign(getNullElements(elements,schema),{oneOf:getNullElementsFieldForOneOf(field,params,uri)});}function renderNullElementsForAnyOf(schema,params,uri){var elements={};var field={};return Object.assign(getNullElements(elements,schema),{anyOf:getNullElementsFieldForAnyOf(field,params,uri)});}function renderNullElementsForAllOf(schema,values,params,uri){var elements={};var field={};return Object.assign(getNullElements(elements,schema),{field:getNullElementsFieldForAllOf(field,schema,values,params,uri)});}function renderNullElements(schema,values,params,uri){var elements={};var field={};return Object.assign(getNullElements(elements,schema),{field:getNullElementsField(field,schema,values,params,uri)});}function renderBooleanMetaForEnum(params,uri){var _getMetaProps6=(0,_common.getMetaProps)(params,uri),_getMetaProps6$parent=_getMetaProps6.parentUri,parentUri=_getMetaProps6$parent===void 0?'#':_getMetaProps6$parent,metaProps=_objectWithoutProperties(_getMetaProps6,_excluded22);return Object.assign({uri:uri,type:'boolean'},(0,_common.isParentUri)(parentUri,uri)?{parentUri:parentUri}:{},metaProps);}function renderBooleanMetaForAnyOf(params,uri){var _getMetaProps7=(0,_common.getMetaProps)(params,uri),_getMetaProps7$parent=_getMetaProps7.parentUri,parentUri=_getMetaProps7$parent===void 0?'#':_getMetaProps7$parent,metaProps=_objectWithoutProperties(_getMetaProps7,_excluded23);return Object.assign({uri:uri,type:'boolean'},(0,_common.isParentUri)(parentUri,uri)?{parentUri:parentUri}:{},metaProps);}function renderBooleanMetaForOneOf(params,uri){var _getMetaProps8=(0,_common.getMetaProps)(params,uri),_getMetaProps8$parent=_getMetaProps8.parentUri,parentUri=_getMetaProps8$parent===void 0?'#':_getMetaProps8$parent,metaProps=_objectWithoutProperties(_getMetaProps8,_excluded24);return Object.assign({uri:uri,type:'boolean'},(0,_common.isParentUri)(parentUri,uri)?{parentUri:parentUri}:{},metaProps);}function renderBooleanMetaForAllOf(schema,values,params,uri){var metaDefaultValue=(0,_common.getMetaDefaultValue)(schema,uri);var metaValue=(0,_common.getMetaValue)(values,uri,schema);var _getMetaProps9=(0,_common.getMetaProps)(params,uri),_getMetaProps9$parent=_getMetaProps9.parentUri,parentUri=_getMetaProps9$parent===void 0?'#':_getMetaProps9$parent,metaProps=_objectWithoutProperties(_getMetaProps9,_excluded25);var selectedItems;if((0,_common.isParentUri)(parentUri,uri)){var _params$parentUri8=params[parentUri];_params$parentUri8=_params$parentUri8===void 0?{}:_params$parentUri8;var _params$parentUri8$me=_params$parentUri8.meta;_params$parentUri8$me=_params$parentUri8$me===void 0?{}:_params$parentUri8$me;selectedItems=_params$parentUri8$me.selectedItems;}return Object.assign({uri:uri,type:'boolean'},(0,_common.isParentUri)(parentUri,uri)?{parentUri:parentUri}:{},metaDefaultValue,metaValue,metaProps,(0,_common.isArray)(selectedItems)?{selectedItems:selectedItems}:{});}function renderBooleanMeta(schema,values,params,uri){var metaDefaultValue=(0,_common.getMetaDefaultValue)(schema,uri);var metaValue=(0,_common.getMetaValue)(values,uri,schema);var _getMetaProps10=(0,_common.getMetaProps)(params,uri),_getMetaProps10$paren=_getMetaProps10.parentUri,parentUri=_getMetaProps10$paren===void 0?'#':_getMetaProps10$paren,metaProps=_objectWithoutProperties(_getMetaProps10,_excluded26);var selectedItems;if((0,_common.isParentUri)(parentUri,uri)){var _params$parentUri9=params[parentUri];_params$parentUri9=_params$parentUri9===void 0?{}:_params$parentUri9;var _params$parentUri9$me=_params$parentUri9.meta;_params$parentUri9$me=_params$parentUri9$me===void 0?{}:_params$parentUri9$me;selectedItems=_params$parentUri9$me.selectedItems;}return Object.assign({uri:uri,type:'boolean'},(0,_common.isParentUri)(parentUri,uri)?{parentUri:parentUri}:{},metaDefaultValue,metaValue,metaProps,(0,_common.isArray)(selectedItems)?{selectedItems:selectedItems}:{});}function getBooleanElementsFieldForEnum(field,params,uri){return Object.assign(field,(0,_common.getElementsFieldPropsForEnum)(params,uri),{id:uri});}function getBooleanElementsFieldForAnyOf(field,params,uri){return Object.assign(field,(0,_common.getElementsFieldPropsForAnyOf)(params,uri),{id:uri});}function getBooleanElementsFieldForOneOf(field,params,uri){return Object.assign(field,(0,_common.getElementsFieldPropsForOneOf)(params,uri),{id:uri});}function getBooleanElementsFieldForAllOf(field,schema,values,params,uri){var _params$parentUri10=params.parentUri,parentUri=_params$parentUri10===void 0?'#':_params$parentUri10;var fieldValue=(0,_common.getElementsFieldValue)(values,uri,schema);var fieldProps=(0,_common.getElementsFieldProps)(params,uri);var selectedItems;if((0,_common.isParentUri)(parentUri,uri)){var _params$parentUri11=params[parentUri];_params$parentUri11=_params$parentUri11===void 0?{}:_params$parentUri11;var _params$parentUri11$m=_params$parentUri11.meta;_params$parentUri11$m=_params$parentUri11$m===void 0?{}:_params$parentUri11$m;selectedItems=_params$parentUri11$m.selectedItems;}return Object.assign(field,fieldValue,fieldProps,(0,_common.isArray)(selectedItems)?{selectedItems:selectedItems}:{},{id:uri});}function getBooleanElementsField(field,schema,values,params,uri){var _params$parentUri12=params.parentUri,parentUri=_params$parentUri12===void 0?'#':_params$parentUri12;var fieldValue=(0,_common.getElementsFieldValue)(values,uri,schema);var fieldProps=(0,_common.getElementsFieldProps)(params,uri);var selectedItems;if((0,_common.isParentUri)(parentUri,uri)){var _params$parentUri13=params[parentUri];_params$parentUri13=_params$parentUri13===void 0?{}:_params$parentUri13;var _params$parentUri13$m=_params$parentUri13.meta;_params$parentUri13$m=_params$parentUri13$m===void 0?{}:_params$parentUri13$m;selectedItems=_params$parentUri13$m.selectedItems;}return Object.assign(field,fieldValue,fieldProps,(0,_common.isArray)(selectedItems)?{selectedItems:selectedItems}:{},{id:uri});}function getBooleanElements(elements,schema){return Object.assign(elements,(0,_common.getTitle)(schema),(0,_common.getDescription)(schema));}function renderBooleanElementsForEnum(schema,params,uri){var elements={};var field={};return Object.assign(getBooleanElements(elements,schema),{"enum":getBooleanElementsFieldForEnum(field,params,uri)});}function renderBooleanElementsForAnyOf(schema,params,uri){var elements={};var field={};return Object.assign(getBooleanElements(elements,schema),{anyOf:getBooleanElementsFieldForAnyOf(field,params,uri)});}function renderBooleanElementsForOneOf(schema,params,uri){var elements={};var field={};return Object.assign(getBooleanElements(elements,schema),{oneOf:getBooleanElementsFieldForOneOf(field,params,uri)});}function renderBooleanElementsForAllOf(schema,values,params,uri){var elements={};var field={};return Object.assign(getBooleanElements(elements,schema),{field:getBooleanElementsFieldForAllOf(field,schema,values,params,uri)});}function renderBooleanElements(schema,values,params,uri){var elements={};var field={};return Object.assign(getBooleanElements(elements,schema),{field:getBooleanElementsField(field,schema,values,params,uri)});}function renderObjectMetaForEnum(params,uri,minProperties,maxProperties){var _getMetaProps11=(0,_common.getMetaProps)(params,uri),_getMetaProps11$paren=_getMetaProps11.parentUri,parentUri=_getMetaProps11$paren===void 0?'#':_getMetaProps11$paren,metaProps=_objectWithoutProperties(_getMetaProps11,_excluded27);return Object.assign({uri:uri,type:'object'},(0,_common.isParentUri)(parentUri,uri)?{parentUri:parentUri}:{},minProperties,maxProperties,metaProps);}function renderObjectMetaForAnyOf(params,uri,minProperties,maxProperties){var _getMetaProps12=(0,_common.getMetaProps)(params,uri),_getMetaProps12$paren=_getMetaProps12.parentUri,parentUri=_getMetaProps12$paren===void 0?'#':_getMetaProps12$paren,metaProps=_objectWithoutProperties(_getMetaProps12,_excluded28);return Object.assign({uri:uri,type:'object'},(0,_common.isParentUri)(parentUri,uri)?{parentUri:parentUri}:{},minProperties,maxProperties,metaProps);}function renderObjectMetaForOneOf(params,uri,minProperties,maxProperties){var _getMetaProps13=(0,_common.getMetaProps)(params,uri),_getMetaProps13$paren=_getMetaProps13.parentUri,parentUri=_getMetaProps13$paren===void 0?'#':_getMetaProps13$paren,metaProps=_objectWithoutProperties(_getMetaProps13,_excluded29);return Object.assign({uri:uri,type:'object'},(0,_common.isParentUri)(parentUri,uri)?{parentUri:parentUri}:{},minProperties,maxProperties,metaProps);}function renderObjectMetaForAllOf(params,uri,minProperties,maxProperties){var _getMetaProps14=(0,_common.getMetaProps)(params,uri),_getMetaProps14$paren=_getMetaProps14.parentUri,parentUri=_getMetaProps14$paren===void 0?'#':_getMetaProps14$paren,metaProps=_objectWithoutProperties(_getMetaProps14,_excluded30);return Object.assign({uri:uri,type:'object'},(0,_common.isParentUri)(parentUri,uri)?{parentUri:parentUri}:{},minProperties,maxProperties,metaProps);}function renderObjectMeta(params,uri,minProperties,maxProperties){var _getMetaProps15=(0,_common.getMetaProps)(params,uri),_getMetaProps15$paren=_getMetaProps15.parentUri,parentUri=_getMetaProps15$paren===void 0?'#':_getMetaProps15$paren,metaProps=_objectWithoutProperties(_getMetaProps15,_excluded31);return Object.assign({uri:uri,type:'object'},(0,_common.isParentUri)(parentUri,uri)?{parentUri:parentUri}:{},minProperties,maxProperties,metaProps);}function getObjectElementsFieldForEnum(field,params,uri,minProperties,maxProperties){var fieldProps=(0,_common.getElementsFieldPropsForEnum)(params,uri);return Object.assign(field,minProperties,maxProperties,fieldProps,{id:uri});}function getObjectElementsFieldForAnyOf(field,params,uri,minProperties,maxProperties){var fieldProps=(0,_common.getElementsFieldPropsForAnyOf)(params,uri);return Object.assign(field,minProperties,maxProperties,fieldProps,{id:uri});}function getObjectElementsFieldForOneOf(field,params,uri,minProperties,maxProperties){var fieldProps=(0,_common.getElementsFieldPropsForOneOf)(params,uri);return Object.assign(field,minProperties,maxProperties,fieldProps,{id:uri});}function getObjectElementsFieldForAllOf(field,params,uri,minProperties,maxProperties){var fieldProps=(0,_common.getElementsFieldPropsForAllOf)(params,uri);return Object.assign(field,minProperties,maxProperties,fieldProps,{id:uri});}function getObjectElements(elements,schema){return Object.assign(elements,(0,_common.getTitle)(schema),(0,_common.getDescription)(schema));}function renderObjectElementsForEnum(schema,params,uri,minProperties,maxProperties){var elements={};var field={};return Object.assign(getObjectElements(elements,schema),{"enum":getObjectElementsFieldForEnum(field,params,uri,minProperties,maxProperties)});}function renderObjectElementsForAnyOf(schema,params,uri,minProperties,maxProperties){var elements={};var field={};return Object.assign(getObjectElements(elements,schema),{anyOf:getObjectElementsFieldForAnyOf(field,params,uri,minProperties,maxProperties)});}function renderObjectElementsForOneOf(schema,params,uri,minProperties,maxProperties){var elements={};var field={};return Object.assign(getObjectElements(elements,schema),{oneOf:getObjectElementsFieldForOneOf(field,params,uri,minProperties,maxProperties)});}function renderObjectElementsForAllOf(schema,params,uri,minProperties,maxProperties){var elements={};var field={};return Object.assign(getObjectElements(elements,schema),{field:getObjectElementsFieldForAllOf(field,params,uri,minProperties,maxProperties)});}function renderObjectElements(schema,params){var elements={};var _params$fields=params.fields,fields=_params$fields===void 0?[]:_params$fields;return Object.assign(getObjectElements(elements,schema),{fields:fields});}function renderArrayMetaForEnum(params,uri,minItems,maxItems,hasUniqueItems,maxContains,minContains){var _getMetaProps16=(0,_common.getMetaProps)(params,uri),_getMetaProps16$paren=_getMetaProps16.parentUri,parentUri=_getMetaProps16$paren===void 0?'#':_getMetaProps16$paren,metaProps=_objectWithoutProperties(_getMetaProps16,_excluded32);return Object.assign({uri:uri,type:'array'},(0,_common.isParentUri)(parentUri,uri)?{parentUri:parentUri}:{},minItems,maxItems,hasUniqueItems,maxContains,minContains,metaProps);}function renderArrayMetaForAnyOf(params,uri,minItems,maxItems,hasUniqueItems,maxContains,minContains){var _getMetaProps17=(0,_common.getMetaProps)(params,uri),_getMetaProps17$paren=_getMetaProps17.parentUri,parentUri=_getMetaProps17$paren===void 0?'#':_getMetaProps17$paren,metaProps=_objectWithoutProperties(_getMetaProps17,_excluded33);return Object.assign({uri:uri,type:'array'},(0,_common.isParentUri)(parentUri,uri)?{parentUri:parentUri}:{},minItems,maxItems,hasUniqueItems,maxContains,minContains,metaProps);}function renderArrayMetaForOneOf(params,uri,minItems,maxItems,hasUniqueItems,maxContains,minContains){var _getMetaProps18=(0,_common.getMetaProps)(params,uri),_getMetaProps18$paren=_getMetaProps18.parentUri,parentUri=_getMetaProps18$paren===void 0?'#':_getMetaProps18$paren,metaProps=_objectWithoutProperties(_getMetaProps18,_excluded34);return Object.assign({uri:uri,type:'array'},(0,_common.isParentUri)(parentUri,uri)?{parentUri:parentUri}:{},minItems,maxItems,hasUniqueItems,maxContains,minContains,metaProps);}function renderArrayMetaForAllOf(params,uri,minItems,maxItems,hasUniqueItems,maxContains,minContains){var _getMetaProps19=(0,_common.getMetaProps)(params,uri),_getMetaProps19$paren=_getMetaProps19.parentUri,parentUri=_getMetaProps19$paren===void 0?'#':_getMetaProps19$paren,metaProps=_objectWithoutProperties(_getMetaProps19,_excluded35);return Object.assign({uri:uri,type:'array'},(0,_common.isParentUri)(parentUri,uri)?{parentUri:parentUri}:{},minItems,maxItems,hasUniqueItems,maxContains,minContains,metaProps);}function renderArrayMeta(params,uri,minItems,maxItems,hasUniqueItems,maxContains,minContains){var _getMetaProps20=(0,_common.getMetaProps)(params,uri),_getMetaProps20$paren=_getMetaProps20.parentUri,parentUri=_getMetaProps20$paren===void 0?'#':_getMetaProps20$paren,metaProps=_objectWithoutProperties(_getMetaProps20,_excluded36);return Object.assign({uri:uri,type:'array'},(0,_common.isParentUri)(parentUri,uri)?{parentUri:parentUri}:{},minItems,maxItems,hasUniqueItems,maxContains,minContains,metaProps);}function getArrayElementsFieldForEnum(field,params,uri,minItems,maxItems,hasUniqueItems,maxContains,minContains){var fieldProps=(0,_common.getElementsFieldPropsForEnum)(params,uri);return Object.assign(field,minItems,maxItems,hasUniqueItems,maxContains,minContains,fieldProps,{id:uri});}function getArrayElementsFieldForAnyOf(field,params,uri,minItems,maxItems,hasUniqueItems,maxContains,minContains){var fieldProps=(0,_common.getElementsFieldPropsForAnyOf)(params,uri);return Object.assign(field,minItems,maxItems,hasUniqueItems,maxContains,minContains,fieldProps,{id:uri});}function getArrayElementsFieldForOneOf(field,params,uri,minItems,maxItems,hasUniqueItems,maxContains,minContains){var fieldProps=(0,_common.getElementsFieldPropsForOneOf)(params,uri);return Object.assign(field,minItems,maxItems,hasUniqueItems,maxContains,minContains,fieldProps,{id:uri});}function getArrayElementsFieldForAllOf(field,params,uri,minItems,maxItems,hasUniqueItems,maxContains,minContains){var fieldProps=(0,_common.getElementsFieldPropsForAllOf)(params,uri);return Object.assign(field,minItems,maxItems,hasUniqueItems,maxContains,minContains,fieldProps,{id:uri});}function getArrayElements(elements,schema){return Object.assign(elements,(0,_common.getTitle)(schema),(0,_common.getDescription)(schema));}function renderArrayElementsForEnum(schema,params,uri,minItems,maxItems,hasUniqueItems,maxContains,minContains){var elements={};var field={};return Object.assign(getArrayElements(elements,schema),{"enum":getArrayElementsFieldForEnum(field,params,uri,minItems,maxItems,hasUniqueItems,maxContains,minContains)});}function renderArrayElementsForAnyOf(schema,params,uri,minItems,maxItems,hasUniqueItems,maxContains,minContains){var elements={};var field={};return Object.assign(getArrayElements(elements,schema),{anyOf:getArrayElementsFieldForAnyOf(field,params,uri,minItems,maxItems,hasUniqueItems,maxContains,minContains)});}function renderArrayElementsForOneOf(schema,params,uri,minItems,maxItems,hasUniqueItems,maxContains,minContains){var elements={};var field={};return Object.assign(getArrayElements(elements,schema),{oneOf:getArrayElementsFieldForOneOf(field,params,uri,minItems,maxItems,hasUniqueItems,maxContains,minContains)});}function renderArrayElementsForAllOf(schema,params,uri,minItems,maxItems,hasUniqueItems,maxContains,minContains){var elements={};var field={};return Object.assign(getArrayElements(elements,schema),{field:getArrayElementsFieldForAllOf(field,params,uri,minItems,maxItems,hasUniqueItems,maxContains,minContains)});}function renderArrayElements(schema,params){var elements={};var _params$fields2=params.fields,fields=_params$fields2===void 0?[]:_params$fields2;return Object.assign(getArrayElements(elements,schema),{fields:fields});}function renderNumberMetaForEnum(schema,params,uri,min,max,step){var isExclusiveMin=(0,_common.getIsExclusiveMin)(schema);var isExclusiveMax=(0,_common.getIsExclusiveMax)(schema);var _getMetaProps21=(0,_common.getMetaProps)(params,uri),_getMetaProps21$paren=_getMetaProps21.parentUri,parentUri=_getMetaProps21$paren===void 0?'#':_getMetaProps21$paren,metaProps=_objectWithoutProperties(_getMetaProps21,_excluded37);return Object.assign({uri:uri,type:'number'},(0,_common.isParentUri)(parentUri,uri)?{parentUri:parentUri}:{},min,max,step,isExclusiveMin,isExclusiveMax,metaProps);}function renderNumberMetaForAnyOf(schema,params,uri,min,max,step){var isExclusiveMin=(0,_common.getIsExclusiveMin)(schema);var isExclusiveMax=(0,_common.getIsExclusiveMax)(schema);var _getMetaProps22=(0,_common.getMetaProps)(params,uri),_getMetaProps22$paren=_getMetaProps22.parentUri,parentUri=_getMetaProps22$paren===void 0?'#':_getMetaProps22$paren,metaProps=_objectWithoutProperties(_getMetaProps22,_excluded38);return Object.assign({uri:uri,type:'number'},(0,_common.isParentUri)(parentUri,uri)?{parentUri:parentUri}:{},min,max,step,isExclusiveMin,isExclusiveMax,metaProps);}function renderNumberMetaForOneOf(schema,params,uri,min,max,step){var isExclusiveMin=(0,_common.getIsExclusiveMin)(schema);var isExclusiveMax=(0,_common.getIsExclusiveMax)(schema);var _getMetaProps23=(0,_common.getMetaProps)(params,uri),_getMetaProps23$paren=_getMetaProps23.parentUri,parentUri=_getMetaProps23$paren===void 0?'#':_getMetaProps23$paren,metaProps=_objectWithoutProperties(_getMetaProps23,_excluded39);return Object.assign({uri:uri,type:'number'},(0,_common.isParentUri)(parentUri,uri)?{parentUri:parentUri}:{},min,max,step,isExclusiveMin,isExclusiveMax,metaProps);}function renderNumberMetaForAllOf(schema,values,params,uri,min,max,step){var isExclusiveMin=(0,_common.getIsExclusiveMin)(schema);var isExclusiveMax=(0,_common.getIsExclusiveMax)(schema);var metaDefaultValue=(0,_common.getMetaDefaultValue)(schema,uri);var metaValue=(0,_common.getMetaValue)(values,uri,schema);var _getMetaProps24=(0,_common.getMetaProps)(params,uri),_getMetaProps24$paren=_getMetaProps24.parentUri,parentUri=_getMetaProps24$paren===void 0?'#':_getMetaProps24$paren,metaProps=_objectWithoutProperties(_getMetaProps24,_excluded40);var selectedItems;if((0,_common.isParentUri)(parentUri,uri)){var _params$parentUri14=params[parentUri];_params$parentUri14=_params$parentUri14===void 0?{}:_params$parentUri14;var _params$parentUri14$m=_params$parentUri14.meta;_params$parentUri14$m=_params$parentUri14$m===void 0?{}:_params$parentUri14$m;selectedItems=_params$parentUri14$m.selectedItems;}return Object.assign({uri:uri,type:'number'},(0,_common.isParentUri)(parentUri,uri)?{parentUri:parentUri}:{},min,max,step,isExclusiveMin,isExclusiveMax,metaDefaultValue,metaValue,metaProps,(0,_common.isArray)(selectedItems)?{selectedItems:selectedItems}:{});}function renderNumberMeta(schema,values,params,uri,min,max,step){var isExclusiveMin=(0,_common.getIsExclusiveMin)(schema);var isExclusiveMax=(0,_common.getIsExclusiveMax)(schema);var metaDefaultValue=(0,_common.getMetaDefaultValue)(schema,uri);var metaValue=(0,_common.getMetaValue)(values,uri,schema);var _getMetaProps25=(0,_common.getMetaProps)(params,uri),_getMetaProps25$paren=_getMetaProps25.parentUri,parentUri=_getMetaProps25$paren===void 0?'#':_getMetaProps25$paren,metaProps=_objectWithoutProperties(_getMetaProps25,_excluded41);var selectedItems;if((0,_common.isParentUri)(parentUri,uri)){var _params$parentUri15=params[parentUri];_params$parentUri15=_params$parentUri15===void 0?{}:_params$parentUri15;var _params$parentUri15$m=_params$parentUri15.meta;_params$parentUri15$m=_params$parentUri15$m===void 0?{}:_params$parentUri15$m;selectedItems=_params$parentUri15$m.selectedItems;}return Object.assign({uri:uri,type:'number'},(0,_common.isParentUri)(parentUri,uri)?{parentUri:parentUri}:{},min,max,step,isExclusiveMin,isExclusiveMax,metaDefaultValue,metaValue,metaProps,(0,_common.isArray)(selectedItems)?{selectedItems:selectedItems}:{});}function getNumberElementsFieldForEnum(field,params,uri,min,max,step){var fieldProps=(0,_common.getElementsFieldPropsForEnum)(params,uri);return Object.assign(field,min,max,step,fieldProps,{id:uri});}function getNumberElementsFieldForAnyOf(field,params,uri,min,max,step){var fieldProps=(0,_common.getElementsFieldPropsForAnyOf)(params,uri);return Object.assign(field,min,max,step,fieldProps,{id:uri});}function getNumberElementsFieldForOneOf(field,params,uri,min,max,step){var fieldProps=(0,_common.getElementsFieldPropsForOneOf)(params,uri);return Object.assign(field,min,max,step,fieldProps,{id:uri});}function getNumberElementsFieldForAllOf(field,schema,values,params,uri,min,max,step){var _params$parentUri16=params.parentUri,parentUri=_params$parentUri16===void 0?'#':_params$parentUri16;var fieldValue=(0,_common.getElementsFieldValue)(values,uri,schema);var fieldProps=(0,_common.getElementsFieldProps)(params,uri);var selectedItems;if((0,_common.isParentUri)(parentUri,uri)){var _params$parentUri17=params[parentUri];_params$parentUri17=_params$parentUri17===void 0?{}:_params$parentUri17;var _params$parentUri17$m=_params$parentUri17.meta;_params$parentUri17$m=_params$parentUri17$m===void 0?{}:_params$parentUri17$m;selectedItems=_params$parentUri17$m.selectedItems;}return Object.assign(field,min,max,step,fieldValue,fieldProps,(0,_common.isArray)(selectedItems)?{selectedItems:selectedItems}:{},{id:uri});}function getNumberElementsField(field,schema,values,params,uri,min,max,step){var _params$parentUri18=params.parentUri,parentUri=_params$parentUri18===void 0?'#':_params$parentUri18;var fieldValue=(0,_common.getElementsFieldValue)(values,uri,schema);var fieldProps=(0,_common.getElementsFieldProps)(params,uri);var selectedItems;if((0,_common.isParentUri)(parentUri,uri)){var _params$parentUri19=params[parentUri];_params$parentUri19=_params$parentUri19===void 0?{}:_params$parentUri19;var _params$parentUri19$m=_params$parentUri19.meta;_params$parentUri19$m=_params$parentUri19$m===void 0?{}:_params$parentUri19$m;selectedItems=_params$parentUri19$m.selectedItems;}return Object.assign(field,min,max,step,fieldValue,fieldProps,(0,_common.isArray)(selectedItems)?{selectedItems:selectedItems}:{},{id:uri});}function getNumberElements(elements,schema){return Object.assign(elements,(0,_common.getTitle)(schema),(0,_common.getDescription)(schema));}function renderNumberElementsForEnum(schema,params,uri,min,max,step){var elements={};var field={};return Object.assign(getNumberElements(elements,schema),{"enum":getNumberElementsFieldForEnum(field,params,uri,min,max,step)});}function renderNumberElementsForAnyOf(schema,params,uri,min,max,step){var elements={};var field={};return Object.assign(getNumberElements(elements,schema),{anyOf:getNumberElementsFieldForAnyOf(field,params,uri,min,max,step)});}function renderNumberElementsForOneOf(schema,params,uri,min,max,step){var elements={};var field={};return Object.assign(getNumberElements(elements,schema),{oneOf:getNumberElementsFieldForOneOf(field,params,uri,min,max,step)});}function renderNumberElementsForAllOf(schema,values,params,uri,min,max,step){var elements={};var field={};return Object.assign(getNumberElements(elements,schema),{field:getNumberElementsFieldForAllOf(field,schema,values,params,uri,min,max,step)});}function renderNumberElements(schema,values,params,uri,min,max,step){var elements={};var field={};return Object.assign(getNumberElements(elements,schema),{field:getNumberElementsField(field,schema,values,params,uri,min,max,step)});}function renderStringMetaForEnum(params,uri,minLength,maxLength,pattern){var _getMetaProps26=(0,_common.getMetaProps)(params,uri),_getMetaProps26$paren=_getMetaProps26.parentUri,parentUri=_getMetaProps26$paren===void 0?'#':_getMetaProps26$paren,metaProps=_objectWithoutProperties(_getMetaProps26,_excluded42);return Object.assign({uri:uri,type:'string'},(0,_common.isParentUri)(parentUri,uri)?{parentUri:parentUri}:{},minLength,maxLength,pattern,metaProps);}function renderStringMetaForAnyOf(params,uri,minLength,maxLength,pattern){var _getMetaProps27=(0,_common.getMetaProps)(params,uri),_getMetaProps27$paren=_getMetaProps27.parentUri,parentUri=_getMetaProps27$paren===void 0?'#':_getMetaProps27$paren,metaProps=_objectWithoutProperties(_getMetaProps27,_excluded43);return Object.assign({uri:uri,type:'string'},(0,_common.isParentUri)(parentUri,uri)?{parentUri:parentUri}:{},minLength,maxLength,pattern,metaProps);}function renderStringMetaForOneOf(params,uri,minLength,maxLength,pattern){var _getMetaProps28=(0,_common.getMetaProps)(params,uri),_getMetaProps28$paren=_getMetaProps28.parentUri,parentUri=_getMetaProps28$paren===void 0?'#':_getMetaProps28$paren,metaProps=_objectWithoutProperties(_getMetaProps28,_excluded44);return Object.assign({uri:uri,type:'string'},(0,_common.isParentUri)(parentUri,uri)?{parentUri:parentUri}:{},minLength,maxLength,pattern,metaProps);}function renderStringMetaForAllOf(schema,values,params,uri,minLength,maxLength,pattern){var metaDefaultValue=(0,_common.getMetaDefaultValue)(schema,uri);var metaValue=(0,_common.getMetaValue)(values,uri,schema);var _getMetaProps29=(0,_common.getMetaProps)(params,uri),_getMetaProps29$paren=_getMetaProps29.parentUri,parentUri=_getMetaProps29$paren===void 0?'#':_getMetaProps29$paren,metaProps=_objectWithoutProperties(_getMetaProps29,_excluded45);var selectedItems;if((0,_common.isParentUri)(parentUri,uri)){var _params$parentUri20=params[parentUri];_params$parentUri20=_params$parentUri20===void 0?{}:_params$parentUri20;var _params$parentUri20$m=_params$parentUri20.meta;_params$parentUri20$m=_params$parentUri20$m===void 0?{}:_params$parentUri20$m;selectedItems=_params$parentUri20$m.selectedItems;}return Object.assign({uri:uri,type:'string'},(0,_common.isParentUri)(parentUri,uri)?{parentUri:parentUri}:{},minLength,maxLength,pattern,metaDefaultValue,metaValue,metaProps,(0,_common.isArray)(selectedItems)?{selectedItems:selectedItems}:{});}function renderStringMeta(schema,values,params,uri,minLength,maxLength,pattern){var metaDefaultValue=(0,_common.getMetaDefaultValue)(schema,uri);var metaValue=(0,_common.getMetaValue)(values,uri,schema);var _getMetaProps30=(0,_common.getMetaProps)(params,uri),_getMetaProps30$paren=_getMetaProps30.parentUri,parentUri=_getMetaProps30$paren===void 0?'#':_getMetaProps30$paren,metaProps=_objectWithoutProperties(_getMetaProps30,_excluded46);var selectedItems;if((0,_common.isParentUri)(parentUri,uri)){var _params$parentUri21=params[parentUri];_params$parentUri21=_params$parentUri21===void 0?{}:_params$parentUri21;var _params$parentUri21$m=_params$parentUri21.meta;_params$parentUri21$m=_params$parentUri21$m===void 0?{}:_params$parentUri21$m;selectedItems=_params$parentUri21$m.selectedItems;}return Object.assign({uri:uri,type:'string'},(0,_common.isParentUri)(parentUri,uri)?{parentUri:parentUri}:{},minLength,maxLength,pattern,metaDefaultValue,metaValue,metaProps,(0,_common.isArray)(selectedItems)?{selectedItems:selectedItems}:{});}function getStringElementsFieldForEnum(field,params,uri,minLength,maxLength,pattern){var fieldProps=(0,_common.getElementsFieldPropsForEnum)(params,uri);return Object.assign(field,minLength,maxLength,pattern,fieldProps,{id:uri});}function getStringElementsFieldForAnyOf(field,params,uri,minLength,maxLength,pattern){var fieldProps=(0,_common.getElementsFieldPropsForAnyOf)(params,uri);return Object.assign(field,minLength,maxLength,pattern,fieldProps,{id:uri});}function getStringElementsFieldForOneOf(field,params,uri,minLength,maxLength,pattern){var fieldProps=(0,_common.getElementsFieldPropsForOneOf)(params,uri);return Object.assign(field,minLength,maxLength,pattern,fieldProps,{id:uri});}function getStringElementsFieldForAllOf(field,schema,values,params,uri,minLength,maxLength,pattern){var _params$parentUri22=params.parentUri,parentUri=_params$parentUri22===void 0?'#':_params$parentUri22;var fieldValue=(0,_common.getElementsFieldValue)(values,uri,schema);var fieldProps=(0,_common.getElementsFieldProps)(params,uri);var selectedItems;if((0,_common.isParentUri)(parentUri,uri)){var _params$parentUri23=params[parentUri];_params$parentUri23=_params$parentUri23===void 0?{}:_params$parentUri23;var _params$parentUri23$m=_params$parentUri23.meta;_params$parentUri23$m=_params$parentUri23$m===void 0?{}:_params$parentUri23$m;selectedItems=_params$parentUri23$m.selectedItems;}return Object.assign(field,minLength,maxLength,pattern,fieldValue,fieldProps,(0,_common.isArray)(selectedItems)?{selectedItems:selectedItems}:{},{id:uri});}function getStringElementsField(field,schema,values,params,uri,minLength,maxLength,pattern){var _params$parentUri24=params.parentUri,parentUri=_params$parentUri24===void 0?'#':_params$parentUri24;var fieldValue=(0,_common.getElementsFieldValue)(values,uri,schema);var fieldProps=(0,_common.getElementsFieldProps)(params,uri);var selectedItems;if((0,_common.isParentUri)(parentUri,uri)){var _params$parentUri25=params[parentUri];_params$parentUri25=_params$parentUri25===void 0?{}:_params$parentUri25;var _params$parentUri25$m=_params$parentUri25.meta;_params$parentUri25$m=_params$parentUri25$m===void 0?{}:_params$parentUri25$m;selectedItems=_params$parentUri25$m.selectedItems;}return Object.assign(field,minLength,maxLength,pattern,fieldValue,fieldProps,(0,_common.isArray)(selectedItems)?{selectedItems:selectedItems}:{},{id:uri});}function getStringElements(elements,schema){return Object.assign(elements,(0,_common.getTitle)(schema),(0,_common.getDescription)(schema));}function renderStringElementsForEnum(schema,params,uri,minLength,maxLength,pattern){var elements={};var field={};return Object.assign(getStringElements(elements,schema),{"enum":getStringElementsFieldForEnum(field,params,uri,minLength,maxLength,pattern)});}function renderStringElementsForAnyOf(schema,params,uri,minLength,maxLength,pattern){var elements={};var field={};return Object.assign(getStringElements(elements,schema),{anyOf:getStringElementsFieldForAnyOf(field,params,uri,minLength,maxLength,pattern)});}function renderStringElementsForOneOf(schema,params,uri,minLength,maxLength,pattern){var elements={};var field={};return Object.assign(getStringElements(elements,schema),{oneOf:getStringElementsFieldForOneOf(field,params,uri,minLength,maxLength,pattern)});}function renderStringElementsForAllOf(schema,values,params,uri,minLength,maxLength,pattern){var elements={};var field={};return Object.assign(getStringElements(elements,schema),{field:getStringElementsFieldForAllOf(field,schema,values,params,uri,minLength,maxLength,pattern)});}function renderStringElements(schema,values,params,uri,minLength,maxLength,pattern){var elements={};var field={};return Object.assign(getStringElements(elements,schema),{field:getStringElementsField(field,schema,values,params,uri,minLength,maxLength,pattern)});}function renderNullForEnum(schema,values,params){var _params$uri=params.uri,uri=_params$uri===void 0?'#/':_params$uri;var meta=renderNullMetaForEnum(params,uri);var elements=renderNullElementsForEnum(schema,params,uri);return{meta:meta,elements:elements};}function renderNullForAnyOf(schema,values,params){var _params$uri2=params.uri,uri=_params$uri2===void 0?'#/':_params$uri2;var meta=renderNullMetaForAnyOf(params,uri);var elements=renderNullElementsForAnyOf(schema,params,uri);return{meta:meta,elements:elements};}function renderNullForOneOf(schema,values,params){var _params$uri3=params.uri,uri=_params$uri3===void 0?'#/':_params$uri3;var meta=renderNullMetaForOneOf(params,uri);var elements=renderNullElementsForOneOf(schema,params,uri);return{meta:meta,elements:elements};}function renderNullForAllOf(schema,values,params){var _params$uri4=params.uri,uri=_params$uri4===void 0?'#/':_params$uri4;var meta=renderNullMetaForAllOf(schema,values,params,uri);var elements=renderNullElementsForAllOf(schema,values,params,uri);return{meta:meta,elements:elements};}function renderNull(schema,values,params){var _params$uri5=params.uri,uri=_params$uri5===void 0?'#/':_params$uri5;var meta=renderNullMeta(schema,values,params,uri);var elements=renderNullElements(schema,values,params,uri);return{meta:meta,elements:elements};}function renderBooleanForEnum(schema,values,params){var _params$uri6=params.uri,uri=_params$uri6===void 0?'#/':_params$uri6;var meta=renderBooleanMetaForEnum(params,uri);var elements=renderBooleanElementsForEnum(schema,params,uri);return{meta:meta,elements:elements};}function renderBooleanForAnyOf(schema,values,params){var _params$uri7=params.uri,uri=_params$uri7===void 0?'#/':_params$uri7;var meta=renderBooleanMetaForAnyOf(params,uri);var elements=renderBooleanElementsForAnyOf(schema,params,uri);return{meta:meta,elements:elements};}function renderBooleanForOneOf(schema,values,params){var _params$uri8=params.uri,uri=_params$uri8===void 0?'#/':_params$uri8;var meta=renderBooleanMetaForOneOf(params,uri);var elements=renderBooleanElementsForOneOf(schema,params,uri);return{meta:meta,elements:elements};}function renderBooleanForAllOf(schema,values,params){var _params$uri9=params.uri,uri=_params$uri9===void 0?'#/':_params$uri9;var meta=renderBooleanMetaForAllOf(schema,values,params,uri);var elements=renderBooleanElementsForAllOf(schema,values,params,uri);return{meta:meta,elements:elements};}function renderBoolean(schema,values,params){var _params$uri10=params.uri,uri=_params$uri10===void 0?'#/':_params$uri10;var meta=renderBooleanMeta(schema,values,params,uri);var elements=renderBooleanElements(schema,values,params,uri);return{meta:meta,elements:elements};}function renderObjectForEnum(schema,values,params){var _params$uri11=params.uri,uri=_params$uri11===void 0?'#/':_params$uri11;var minProperties=(0,_common.getMinProperties)(schema);var maxProperties=(0,_common.getMaxProperties)(schema);var meta=renderObjectMetaForEnum(params,uri,minProperties,maxProperties);var elements=renderObjectElementsForEnum(schema,params,uri,minProperties,maxProperties);return{meta:meta,elements:elements};}function renderObjectForAnyOf(schema,values,params){var _params$uri12=params.uri,uri=_params$uri12===void 0?'#/':_params$uri12;var minProperties=(0,_common.getMinProperties)(schema);var maxProperties=(0,_common.getMaxProperties)(schema);var meta=renderObjectMetaForAnyOf(params,uri,minProperties,maxProperties);var elements=renderObjectElementsForAnyOf(schema,params,uri,minProperties,maxProperties);return{meta:meta,elements:elements};}function renderObjectForOneOf(schema,values,params){var _params$uri13=params.uri,uri=_params$uri13===void 0?'#/':_params$uri13;var minProperties=(0,_common.getMinProperties)(schema);var maxProperties=(0,_common.getMaxProperties)(schema);var meta=renderObjectMetaForOneOf(params,uri,minProperties,maxProperties);var elements=renderObjectElementsForOneOf(schema,params,uri,minProperties,maxProperties);return{meta:meta,elements:elements};}function renderObjectForAllOf(schema,values,params){var _params$uri14=params.uri,uri=_params$uri14===void 0?'#/':_params$uri14;var minProperties=(0,_common.getMinProperties)(schema);var maxProperties=(0,_common.getMaxProperties)(schema);var meta=renderObjectMetaForAllOf(params,uri,minProperties,maxProperties);var elements=renderObjectElementsForAllOf(schema,params,uri,minProperties,maxProperties);return{meta:meta,elements:elements};}function renderObject(schema,values,params){var _params$uri15=params.uri,uri=_params$uri15===void 0?'#/':_params$uri15;var minProperties=(0,_common.getMinProperties)(schema);var maxProperties=(0,_common.getMaxProperties)(schema);var meta=renderObjectMeta(params,uri,minProperties,maxProperties);var elements=renderObjectElements(schema,params);return{meta:meta,elements:elements};}function renderArrayForEnum(schema,values,params){var _params$uri16=params.uri,uri=_params$uri16===void 0?'#/':_params$uri16;var minItems=(0,_common.getMinItems)(schema);var maxItems=(0,_common.getMaxItems)(schema);var hasUniqueItems=(0,_common.getHasUniqueItems)(schema);var maxContains=(0,_common.getMaxContains)(schema);var minContains=(0,_common.getMinContains)(schema);var meta=renderArrayMetaForEnum(params,uri,minItems,maxItems,hasUniqueItems,maxContains,minContains);var elements=renderArrayElementsForEnum(schema,params,uri,minItems,maxItems,hasUniqueItems,maxContains,minContains);return{meta:meta,elements:elements};}function renderArrayForAnyOf(schema,values,params){var _params$uri17=params.uri,uri=_params$uri17===void 0?'#/':_params$uri17;var minItems=(0,_common.getMinItems)(schema);var maxItems=(0,_common.getMaxItems)(schema);var hasUniqueItems=(0,_common.getHasUniqueItems)(schema);var maxContains=(0,_common.getMaxContains)(schema);var minContains=(0,_common.getMinContains)(schema);var meta=renderArrayMetaForAnyOf(params,uri,minItems,maxItems,hasUniqueItems,maxContains,minContains);var elements=renderArrayElementsForAnyOf(schema,params,uri,minItems,maxItems,hasUniqueItems,maxContains,minContains);return{meta:meta,elements:elements};}function renderArrayForOneOf(schema,values,params){var _params$uri18=params.uri,uri=_params$uri18===void 0?'#/':_params$uri18;var minItems=(0,_common.getMinItems)(schema);var maxItems=(0,_common.getMaxItems)(schema);var hasUniqueItems=(0,_common.getHasUniqueItems)(schema);var maxContains=(0,_common.getMaxContains)(schema);var minContains=(0,_common.getMinContains)(schema);var meta=renderArrayMetaForOneOf(params,uri,minItems,maxItems,hasUniqueItems,maxContains,minContains);var elements=renderArrayElementsForOneOf(schema,params,uri,minItems,maxItems,hasUniqueItems,maxContains,minContains);return{meta:meta,elements:elements};}function renderArrayForAllOf(schema,values,params){var _params$uri19=params.uri,uri=_params$uri19===void 0?'#/':_params$uri19;var minItems=(0,_common.getMinItems)(schema);var maxItems=(0,_common.getMaxItems)(schema);var hasUniqueItems=(0,_common.getHasUniqueItems)(schema);var maxContains=(0,_common.getMaxContains)(schema);var minContains=(0,_common.getMinContains)(schema);var meta=renderArrayMetaForAllOf(params,uri,minItems,maxItems,hasUniqueItems,maxContains,minContains);var elements=renderArrayElementsForAllOf(schema,params,uri,minItems,maxItems,hasUniqueItems,maxContains,minContains);return{meta:meta,elements:elements};}function renderArray(schema,values,params){var _params$uri20=params.uri,uri=_params$uri20===void 0?'#/':_params$uri20;var minItems=(0,_common.getMinItems)(schema);var maxItems=(0,_common.getMaxItems)(schema);var hasUniqueItems=(0,_common.getHasUniqueItems)(schema);var maxContains=(0,_common.getMaxContains)(schema);var minContains=(0,_common.getMinContains)(schema);var meta=renderArrayMeta(params,uri,minItems,maxItems,hasUniqueItems,maxContains,minContains);var elements=renderArrayElements(schema,params);return{meta:meta,elements:elements};}function renderNumberForEnum(schema,values,params){var _params$uri21=params.uri,uri=_params$uri21===void 0?'#/':_params$uri21;var min=(0,_common.getMin)(schema);var max=(0,_common.getMax)(schema);var step=(0,_common.getStep)(schema);var meta=renderNumberMetaForEnum(schema,params,uri,min,max,step);var elements=renderNumberElementsForEnum(schema,params,uri,min,max,step);return{meta:meta,elements:elements};}function renderNumberForAnyOf(schema,values,params){var _params$uri22=params.uri,uri=_params$uri22===void 0?'#/':_params$uri22;var min=(0,_common.getMin)(schema);var max=(0,_common.getMax)(schema);var step=(0,_common.getStep)(schema);var meta=renderNumberMetaForAnyOf(schema,params,uri,min,max,step);var elements=renderNumberElementsForAnyOf(schema,params,uri,min,max,step);return{meta:meta,elements:elements};}function renderNumberForOneOf(schema,values,params){var _params$uri23=params.uri,uri=_params$uri23===void 0?'#/':_params$uri23;var min=(0,_common.getMin)(schema);var max=(0,_common.getMax)(schema);var step=(0,_common.getStep)(schema);var meta=renderNumberMetaForOneOf(schema,params,uri,min,max,step);var elements=renderNumberElementsForOneOf(schema,params,uri,min,max,step);return{meta:meta,elements:elements};}function renderNumberForAllOf(schema,values,params){var _params$uri24=params.uri,uri=_params$uri24===void 0?'#/':_params$uri24;var min=(0,_common.getMin)(schema);var max=(0,_common.getMax)(schema);var step=(0,_common.getStep)(schema);var meta=renderNumberMetaForAllOf(schema,values,params,uri,min,max,step);var elements=renderNumberElementsForAllOf(schema,values,params,uri,min,max,step);return{meta:meta,elements:elements};}function renderNumber(schema,values,params){var _params$uri25=params.uri,uri=_params$uri25===void 0?'#/':_params$uri25;var min=(0,_common.getMin)(schema);var max=(0,_common.getMax)(schema);var step=(0,_common.getStep)(schema);var meta=renderNumberMeta(schema,values,params,uri,min,max,step);var elements=renderNumberElements(schema,values,params,uri,min,max,step);return{meta:meta,elements:elements};}function renderStringForEnum(schema,values,params){var _params$uri26=params.uri,uri=_params$uri26===void 0?'#/':_params$uri26;var minLength=(0,_common.getMinLength)(schema);var maxLength=(0,_common.getMaxLength)(schema);var pattern=(0,_common.getPattern)(schema);var meta=renderStringMetaForEnum(params,uri,minLength,maxLength,pattern);var elements=renderStringElementsForEnum(schema,params,uri,minLength,maxLength,pattern);return{meta:meta,elements:elements};}function renderStringForAnyOf(schema,values,params){var _params$uri27=params.uri,uri=_params$uri27===void 0?'#/':_params$uri27;var minLength=(0,_common.getMinLength)(schema);var maxLength=(0,_common.getMaxLength)(schema);var pattern=(0,_common.getPattern)(schema);var meta=renderStringMetaForAnyOf(params,uri,minLength,maxLength,pattern);var elements=renderStringElementsForAnyOf(schema,params,uri,minLength,maxLength,pattern);return{meta:meta,elements:elements};}function renderStringForOneOf(schema,values,params){var _params$uri28=params.uri,uri=_params$uri28===void 0?'#/':_params$uri28;var minLength=(0,_common.getMinLength)(schema);var maxLength=(0,_common.getMaxLength)(schema);var pattern=(0,_common.getPattern)(schema);var meta=renderStringMetaForOneOf(params,uri,minLength,maxLength,pattern);var elements=renderStringElementsForOneOf(schema,params,uri,minLength,maxLength,pattern);return{meta:meta,elements:elements};}function renderStringForAllOf(schema,values,params){var _params$uri29=params.uri,uri=_params$uri29===void 0?'#/':_params$uri29;var minLength=(0,_common.getMinLength)(schema);var maxLength=(0,_common.getMaxLength)(schema);var pattern=(0,_common.getPattern)(schema);var meta=renderStringMetaForAllOf(schema,values,params,uri,minLength,maxLength,pattern);var elements=renderStringElementsForAllOf(schema,values,params,uri,minLength,maxLength,pattern);return{meta:meta,elements:elements};}function renderString(schema,values,params){var _params$uri30=params.uri,uri=_params$uri30===void 0?'#/':_params$uri30;var minLength=(0,_common.getMinLength)(schema);var maxLength=(0,_common.getMaxLength)(schema);var pattern=(0,_common.getPattern)(schema);var meta=renderStringMeta(schema,values,params,uri,minLength,maxLength,pattern);var elements=renderStringElements(schema,values,params,uri,minLength,maxLength,pattern);return{meta:meta,elements:elements};}function transformNullByKeyForEnum(schema,rootSchema,values,params){var _params$parentUri26=params.parentUri,fieldParentUri=_params$parentUri26===void 0?'#':_params$parentUri26,_params$key=params.key,fieldKey=_params$key===void 0?'':_params$key;var uri=(0,_common.getUri)(fieldParentUri,fieldKey);var _getMetaProps31=(0,_common.getMetaProps)(params,uri),_getMetaProps31$selec=_getMetaProps31.selectedItems,selectedItems=_getMetaProps31$selec===void 0?(0,_common.getSelectedItems)(values,uri):_getMetaProps31$selec;var items=(0,_common.getEnum)(schema);return renderNullForEnum(schema,values,getRenderParamsByKeyForEnum(schema,rootSchema,values,Object.assign(params,{selectedItems:selectedItems,items:items})));}function transformNullByKeyForAnyOf(schema,rootSchema,values,params){var _params$parentUri27=params.parentUri,fieldParentUri=_params$parentUri27===void 0?'#':_params$parentUri27,_params$key2=params.key,fieldKey=_params$key2===void 0?'':_params$key2;var uri=(0,_common.getUri)(fieldParentUri,fieldKey);var _getMetaProps32=(0,_common.getMetaProps)(params,uri),_getMetaProps32$selec=_getMetaProps32.selectedItems,selectedItems=_getMetaProps32$selec===void 0?(0,_common.getSelectedItems)(values,uri):_getMetaProps32$selec;var _schema$anyOf=schema.anyOf,anyOf=_schema$anyOf===void 0?[]:_schema$anyOf;var items=anyOf.map(mapTransformNullByIndex(rootSchema,values,_objectSpread(_objectSpread({},params),{},{parentUri:uri,selectedItems:selectedItems})));return renderNullForAnyOf(schema,values,getRenderParamsByKeyForAnyOf(schema,rootSchema,values,Object.assign(params,{selectedItems:selectedItems,items:items})));}function transformNullByKeyForOneOf(schema,rootSchema,values,params){var _params$parentUri28=params.parentUri,fieldParentUri=_params$parentUri28===void 0?'#':_params$parentUri28,_params$key3=params.key,fieldKey=_params$key3===void 0?'':_params$key3;var uri=(0,_common.getUri)(fieldParentUri,fieldKey);var _getMetaProps33=(0,_common.getMetaProps)(params,uri),_getMetaProps33$selec=_getMetaProps33.selectedItems,selectedItems=_getMetaProps33$selec===void 0?(0,_common.getSelectedItems)(values,uri):_getMetaProps33$selec;var _schema$oneOf=schema.oneOf,oneOf=_schema$oneOf===void 0?[]:_schema$oneOf;var items=oneOf.map(mapTransformNullByIndex(rootSchema,values,_objectSpread(_objectSpread({},params),{},{parentUri:uri,selectedItems:selectedItems})));return renderNullForOneOf(schema,values,getRenderParamsByKeyForOneOf(schema,rootSchema,values,Object.assign(params,{selectedItems:selectedItems,items:items})));}function transformNullByKeyForAllOf(schema,rootSchema,values,params){var _schema$allOf=schema.allOf,allOf=_schema$allOf===void 0?[]:_schema$allOf,rest=_objectWithoutProperties(schema,_excluded47);var itemSchema=allOf.reduce(function(accumulator,schema){return Object.assign(accumulator,schema);},rest);return renderNullForAllOf(itemSchema,values,getRenderParamsByKeyForAllOf(schema,rootSchema,values,params));}function transformNullByIndexForEnum(schema,rootSchema,values,params){var _params$parentUri29=params.parentUri,arrayParentUri=_params$parentUri29===void 0?'#':_params$parentUri29,_params$index3=params.index,arrayIndex=_params$index3===void 0?0:_params$index3;var uri=(0,_common.getUri)(arrayParentUri,arrayIndex);var _getMetaProps34=(0,_common.getMetaProps)(params,uri),_getMetaProps34$selec=_getMetaProps34.selectedItems,selectedItems=_getMetaProps34$selec===void 0?(0,_common.getSelectedItems)(values,uri):_getMetaProps34$selec;var items=(0,_common.getEnum)(schema);return renderNullForEnum(schema,values,getRenderParamsByIndexForEnum(schema,rootSchema,values,Object.assign(params,{selectedItems:selectedItems,items:items})));}function transformNullByIndexForAnyOf(schema,rootSchema,values,params){var _params$parentUri30=params.parentUri,arrayParentUri=_params$parentUri30===void 0?'#':_params$parentUri30,_params$index4=params.index,arrayIndex=_params$index4===void 0?0:_params$index4;var uri=(0,_common.getUri)(arrayParentUri,arrayIndex);var _getMetaProps35=(0,_common.getMetaProps)(params,uri),_getMetaProps35$selec=_getMetaProps35.selectedItems,selectedItems=_getMetaProps35$selec===void 0?(0,_common.getSelectedItems)(values,uri):_getMetaProps35$selec;var _schema$anyOf2=schema.anyOf,anyOf=_schema$anyOf2===void 0?[]:_schema$anyOf2;var items=anyOf.map(mapTransformNullByIndex(rootSchema,values,_objectSpread(_objectSpread({},params),{},{parentUri:uri,selectedItems:selectedItems})));return renderNullForAnyOf(schema,values,getRenderParamsByIndexForAnyOf(schema,rootSchema,values,Object.assign(params,{selectedItems:selectedItems,items:items})));}function transformNullByIndexForOneOf(schema,rootSchema,values,params){var _params$parentUri31=params.parentUri,arrayParentUri=_params$parentUri31===void 0?'#':_params$parentUri31,_params$index5=params.index,arrayIndex=_params$index5===void 0?0:_params$index5;var uri=(0,_common.getUri)(arrayParentUri,arrayIndex);var _getMetaProps36=(0,_common.getMetaProps)(params,uri),_getMetaProps36$selec=_getMetaProps36.selectedItems,selectedItems=_getMetaProps36$selec===void 0?(0,_common.getSelectedItems)(values,uri):_getMetaProps36$selec;var _schema$oneOf2=schema.oneOf,oneOf=_schema$oneOf2===void 0?[]:_schema$oneOf2;var items=oneOf.map(mapTransformNullByIndex(rootSchema,values,_objectSpread(_objectSpread({},params),{},{parentUri:uri,selectedItems:selectedItems})));return renderNullForOneOf(schema,values,getRenderParamsByIndexForOneOf(schema,rootSchema,values,Object.assign(params,{selectedItems:selectedItems,items:items})));}function transformNullByIndexForAllOf(schema,rootSchema,values,params){var _schema$allOf2=schema.allOf,allOf=_schema$allOf2===void 0?[]:_schema$allOf2,rest=_objectWithoutProperties(schema,_excluded48);var itemSchema=allOf.reduce(function(accumulator,schema){return Object.assign(accumulator,schema);},rest);return renderNullForAllOf(itemSchema,values,getRenderParamsByIndexForAllOf(schema,rootSchema,values,params));}function transformNullForEnum(schema,rootSchema,values,params){var _params$uri31=params.uri,uri=_params$uri31===void 0?'#/':_params$uri31;var _getMetaProps37=(0,_common.getMetaProps)(params,uri),_getMetaProps37$selec=_getMetaProps37.selectedItems,selectedItems=_getMetaProps37$selec===void 0?(0,_common.getSelectedItems)(values,uri):_getMetaProps37$selec;var items=(0,_common.getEnum)(schema);return renderNullForEnum(schema,values,getRenderParamsForEnum(schema,rootSchema,values,Object.assign(params,{selectedItems:selectedItems,items:items})));}function transformNullForAnyOf(schema,rootSchema,values,params){var _params$uri32=params.uri,uri=_params$uri32===void 0?'#/':_params$uri32;var _getMetaProps38=(0,_common.getMetaProps)(params,uri),_getMetaProps38$selec=_getMetaProps38.selectedItems,selectedItems=_getMetaProps38$selec===void 0?(0,_common.getSelectedItems)(values,uri):_getMetaProps38$selec;var _schema$anyOf3=schema.anyOf,anyOf=_schema$anyOf3===void 0?[]:_schema$anyOf3;var items=anyOf.map(mapTransformNullByIndex(rootSchema,values,_objectSpread(_objectSpread({},params),{},{parentUri:uri,selectedItems:selectedItems})));return renderNullForAnyOf(schema,values,getRenderParamsForAnyOf(schema,rootSchema,values,Object.assign(params,{selectedItems:selectedItems,items:items})));}function transformNullForOneOf(schema,rootSchema,values,params){var _params$uri33=params.uri,uri=_params$uri33===void 0?'#/':_params$uri33;var _getMetaProps39=(0,_common.getMetaProps)(params,uri),_getMetaProps39$selec=_getMetaProps39.selectedItems,selectedItems=_getMetaProps39$selec===void 0?(0,_common.getSelectedItems)(values,uri):_getMetaProps39$selec;var _schema$oneOf3=schema.oneOf,oneOf=_schema$oneOf3===void 0?[]:_schema$oneOf3;var items=oneOf.map(mapTransformNullByIndex(rootSchema,values,_objectSpread(_objectSpread({},params),{},{parentUri:uri,selectedItems:selectedItems})));return renderNullForOneOf(schema,values,getRenderParamsForOneOf(schema,rootSchema,values,Object.assign(params,{selectedItems:selectedItems,items:items})));}function transformNullForAllOf(schema,rootSchema,values,params){var _schema$allOf3=schema.allOf,allOf=_schema$allOf3===void 0?[]:_schema$allOf3,rest=_objectWithoutProperties(schema,_excluded49);var itemSchema=allOf.reduce(function(accumulator,schema){return Object.assign(accumulator,schema);},rest);return renderNullForAllOf(itemSchema,values,getRenderParamsForAllOf(schema,rootSchema,values,params));}function transformBooleanByKeyForEnum(schema,rootSchema,values,params){var _params$parentUri32=params.parentUri,fieldParentUri=_params$parentUri32===void 0?'#':_params$parentUri32,_params$key4=params.key,fieldKey=_params$key4===void 0?'':_params$key4;var uri=(0,_common.getUri)(fieldParentUri,fieldKey);var _getMetaProps40=(0,_common.getMetaProps)(params,uri),_getMetaProps40$selec=_getMetaProps40.selectedItems,selectedItems=_getMetaProps40$selec===void 0?(0,_common.getSelectedItems)(values,uri):_getMetaProps40$selec;var items=(0,_common.getEnum)(schema);return renderBooleanForEnum(schema,values,getRenderParamsByKeyForEnum(schema,rootSchema,values,Object.assign(params,{selectedItems:selectedItems,items:items})));}function transformBooleanByKeyForAnyOf(schema,rootSchema,values,params){var _params$parentUri33=params.parentUri,fieldParentUri=_params$parentUri33===void 0?'#':_params$parentUri33,_params$key5=params.key,fieldKey=_params$key5===void 0?'':_params$key5;var uri=(0,_common.getUri)(fieldParentUri,fieldKey);var _getMetaProps41=(0,_common.getMetaProps)(params,uri),_getMetaProps41$selec=_getMetaProps41.selectedItems,selectedItems=_getMetaProps41$selec===void 0?(0,_common.getSelectedItems)(values,uri):_getMetaProps41$selec;var _schema$anyOf4=schema.anyOf,anyOf=_schema$anyOf4===void 0?[]:_schema$anyOf4;var items=anyOf.map(mapTransformBooleanByIndex(rootSchema,values,_objectSpread(_objectSpread({},params),{},{parentUri:uri,selectedItems:selectedItems})));return renderBooleanForAnyOf(schema,values,getRenderParamsByKeyForAnyOf(schema,rootSchema,values,Object.assign(params,{selectedItems:selectedItems,items:items})));}function transformBooleanByKeyForOneOf(schema,rootSchema,values,params){var _params$parentUri34=params.parentUri,fieldParentUri=_params$parentUri34===void 0?'#':_params$parentUri34,_params$key6=params.key,fieldKey=_params$key6===void 0?'':_params$key6;var uri=(0,_common.getUri)(fieldParentUri,fieldKey);var _getMetaProps42=(0,_common.getMetaProps)(params,uri),_getMetaProps42$selec=_getMetaProps42.selectedItems,selectedItems=_getMetaProps42$selec===void 0?(0,_common.getSelectedItems)(values,uri):_getMetaProps42$selec;var _schema$oneOf4=schema.oneOf,oneOf=_schema$oneOf4===void 0?[]:_schema$oneOf4;var items=oneOf.map(mapTransformBooleanByIndex(rootSchema,values,_objectSpread(_objectSpread({},params),{},{parentUri:uri,selectedItems:selectedItems})));return renderBooleanForOneOf(schema,values,getRenderParamsByKeyForOneOf(schema,rootSchema,values,Object.assign(params,{selectedItems:selectedItems,items:items})));}function transformBooleanByKeyForAllOf(schema,rootSchema,values,params){var _schema$allOf4=schema.allOf,allOf=_schema$allOf4===void 0?[]:_schema$allOf4,rest=_objectWithoutProperties(schema,_excluded50);var itemSchema=allOf.reduce(function(accumulator,schema){return Object.assign(accumulator,schema);},rest);return renderBooleanForAllOf(itemSchema,values,getRenderParamsByKeyForAllOf(schema,rootSchema,values,params));}function transformBooleanByIndexForEnum(schema,rootSchema,values,params){var _params$parentUri35=params.parentUri,arrayParentUri=_params$parentUri35===void 0?'#':_params$parentUri35,_params$index6=params.index,arrayIndex=_params$index6===void 0?0:_params$index6;var uri=(0,_common.getUri)(arrayParentUri,arrayIndex);var _getMetaProps43=(0,_common.getMetaProps)(params,uri),_getMetaProps43$selec=_getMetaProps43.selectedItems,selectedItems=_getMetaProps43$selec===void 0?(0,_common.getSelectedItems)(values,uri):_getMetaProps43$selec;var items=(0,_common.getEnum)(schema);return renderBooleanForEnum(schema,values,getRenderParamsByIndexForEnum(schema,rootSchema,values,Object.assign(params,{selectedItems:selectedItems,items:items})));}function transformBooleanByIndexForAnyOf(schema,rootSchema,values,params){var _params$parentUri36=params.parentUri,arrayParentUri=_params$parentUri36===void 0?'#':_params$parentUri36,_params$index7=params.index,arrayIndex=_params$index7===void 0?0:_params$index7;var uri=(0,_common.getUri)(arrayParentUri,arrayIndex);var _getMetaProps44=(0,_common.getMetaProps)(params,uri),_getMetaProps44$selec=_getMetaProps44.selectedItems,selectedItems=_getMetaProps44$selec===void 0?(0,_common.getSelectedItems)(values,uri):_getMetaProps44$selec;var _schema$anyOf5=schema.anyOf,anyOf=_schema$anyOf5===void 0?[]:_schema$anyOf5;var items=anyOf.map(mapTransformBooleanByIndex(rootSchema,values,_objectSpread(_objectSpread({},params),{},{parentUri:uri,selectedItems:selectedItems})));return renderBooleanForAnyOf(schema,values,getRenderParamsByIndexForAnyOf(schema,rootSchema,values,Object.assign(params,{selectedItems:selectedItems,items:items})));}function transformBooleanByIndexForOneOf(schema,rootSchema,values,params){var _params$parentUri37=params.parentUri,arrayParentUri=_params$parentUri37===void 0?'#':_params$parentUri37,_params$index8=params.index,arrayIndex=_params$index8===void 0?0:_params$index8;var uri=(0,_common.getUri)(arrayParentUri,arrayIndex);var _getMetaProps45=(0,_common.getMetaProps)(params,uri),_getMetaProps45$selec=_getMetaProps45.selectedItems,selectedItems=_getMetaProps45$selec===void 0?(0,_common.getSelectedItems)(values,uri):_getMetaProps45$selec;var _schema$oneOf5=schema.oneOf,oneOf=_schema$oneOf5===void 0?[]:_schema$oneOf5;var items=oneOf.map(mapTransformBooleanByIndex(rootSchema,values,_objectSpread(_objectSpread({},params),{},{parentUri:uri,selectedItems:selectedItems})));return renderBooleanForOneOf(schema,values,getRenderParamsByIndexForOneOf(schema,rootSchema,values,Object.assign(params,{selectedItems:selectedItems,items:items})));}function transformBooleanByIndexForAllOf(schema,rootSchema,values,params){var _schema$allOf5=schema.allOf,allOf=_schema$allOf5===void 0?[]:_schema$allOf5,rest=_objectWithoutProperties(schema,_excluded51);var itemSchema=allOf.reduce(function(accumulator,schema){return Object.assign(accumulator,schema);},rest);return renderBooleanForAllOf(itemSchema,values,getRenderParamsByIndexForAllOf(schema,rootSchema,values,params));}function transformBooleanForEnum(schema,rootSchema,values,params){var _params$uri34=params.uri,uri=_params$uri34===void 0?'#/':_params$uri34;var _getMetaProps46=(0,_common.getMetaProps)(params,uri),_getMetaProps46$selec=_getMetaProps46.selectedItems,selectedItems=_getMetaProps46$selec===void 0?(0,_common.getSelectedItems)(values,uri):_getMetaProps46$selec;var items=(0,_common.getEnum)(schema);return renderBooleanForEnum(schema,values,getRenderParamsForEnum(schema,rootSchema,values,Object.assign(params,{selectedItems:selectedItems,items:items})));}function transformBooleanForAnyOf(schema,rootSchema,values,params){var _params$uri35=params.uri,uri=_params$uri35===void 0?'#/':_params$uri35;var _getMetaProps47=(0,_common.getMetaProps)(params,uri),_getMetaProps47$selec=_getMetaProps47.selectedItems,selectedItems=_getMetaProps47$selec===void 0?(0,_common.getSelectedItems)(values,uri):_getMetaProps47$selec;var _schema$anyOf6=schema.anyOf,anyOf=_schema$anyOf6===void 0?[]:_schema$anyOf6;var items=anyOf.map(mapTransformBooleanByIndex(rootSchema,values,_objectSpread(_objectSpread({},params),{},{parentUri:uri,selectedItems:selectedItems})));return renderBooleanForAnyOf(schema,values,getRenderParamsForAnyOf(schema,rootSchema,values,Object.assign(params,{selectedItems:selectedItems,items:items})));}function transformBooleanForOneOf(schema,rootSchema,values,params){var _params$uri36=params.uri,uri=_params$uri36===void 0?'#/':_params$uri36;var _getMetaProps48=(0,_common.getMetaProps)(params,uri),_getMetaProps48$selec=_getMetaProps48.selectedItems,selectedItems=_getMetaProps48$selec===void 0?(0,_common.getSelectedItems)(values,uri):_getMetaProps48$selec;var _schema$oneOf6=schema.oneOf,oneOf=_schema$oneOf6===void 0?[]:_schema$oneOf6;var items=oneOf.map(mapTransformBooleanByIndex(rootSchema,values,_objectSpread(_objectSpread({},params),{},{parentUri:uri,selectedItems:selectedItems})));return renderBooleanForOneOf(schema,values,getRenderParamsForOneOf(schema,rootSchema,values,Object.assign(params,{selectedItems:selectedItems,items:items})));}function transformBooleanForAllOf(schema,rootSchema,values,params){var _schema$allOf6=schema.allOf,allOf=_schema$allOf6===void 0?[]:_schema$allOf6,rest=_objectWithoutProperties(schema,_excluded52);var itemSchema=allOf.reduce(function(accumulator,schema){return Object.assign(accumulator,schema);},rest);return renderBooleanForAllOf(itemSchema,values,getRenderParamsForAllOf(schema,rootSchema,values,params));}function transformObjectByKeyForEnum(schema,rootSchema,values,params){var _params$parentUri38=params.parentUri,fieldParentUri=_params$parentUri38===void 0?'#':_params$parentUri38,_params$key7=params.key,fieldKey=_params$key7===void 0?'':_params$key7;var uri=(0,_common.getUri)(fieldParentUri,fieldKey);var _getMetaProps49=(0,_common.getMetaProps)(params,uri),_getMetaProps49$selec=_getMetaProps49.selectedItems,selectedItems=_getMetaProps49$selec===void 0?(0,_common.getSelectedItems)(values,uri):_getMetaProps49$selec;var items=(0,_common.getEnum)(schema);return renderObjectForEnum(schema,values,getRenderParamsByKeyForEnum(schema,rootSchema,values,Object.assign(params,{selectedItems:selectedItems,items:items})));}function transformObjectByKeyForAnyOf(schema,rootSchema,values,params){var _params$parentUri39=params.parentUri,fieldParentUri=_params$parentUri39===void 0?'#':_params$parentUri39,_params$key8=params.key,fieldKey=_params$key8===void 0?'':_params$key8;var uri=(0,_common.getUri)(fieldParentUri,fieldKey);var _getMetaProps50=(0,_common.getMetaProps)(params,uri),_getMetaProps50$selec=_getMetaProps50.selectedItems,selectedItems=_getMetaProps50$selec===void 0?(0,_common.getSelectedItems)(values,uri):_getMetaProps50$selec;var _schema$anyOf7=schema.anyOf,anyOf=_schema$anyOf7===void 0?[]:_schema$anyOf7;var items=anyOf.map(mapTransformObjectByIndex(rootSchema,values,_objectSpread(_objectSpread({},params),{},{parentUri:uri,selectedItems:selectedItems})));return renderObjectForAnyOf(schema,values,getRenderParamsByKeyForAnyOf(schema,rootSchema,values,Object.assign(params,{selectedItems:selectedItems,items:items})));}function transformObjectByKeyForOneOf(schema,rootSchema,values,params){var _params$parentUri40=params.parentUri,fieldParentUri=_params$parentUri40===void 0?'#':_params$parentUri40,_params$key9=params.key,fieldKey=_params$key9===void 0?'':_params$key9;var uri=(0,_common.getUri)(fieldParentUri,fieldKey);var _getMetaProps51=(0,_common.getMetaProps)(params,uri),_getMetaProps51$selec=_getMetaProps51.selectedItems,selectedItems=_getMetaProps51$selec===void 0?(0,_common.getSelectedItems)(values,uri):_getMetaProps51$selec;var _schema$oneOf7=schema.oneOf,oneOf=_schema$oneOf7===void 0?[]:_schema$oneOf7;var items=oneOf.map(mapTransformObjectByIndex(rootSchema,values,_objectSpread(_objectSpread({},params),{},{parentUri:uri,selectedItems:selectedItems})));return renderObjectForOneOf(schema,values,getRenderParamsByKeyForOneOf(schema,rootSchema,values,Object.assign(params,{selectedItems:selectedItems,items:items})));}function transformObjectByKeyForAllOf(schema,rootSchema,values,params){var _schema$allOf7=schema.allOf,allOf=_schema$allOf7===void 0?[]:_schema$allOf7,rest=_objectWithoutProperties(schema,_excluded53);var itemSchema=allOf.reduce(function(accumulator,schema){return Object.assign(accumulator,schema);},rest);return renderObjectForAllOf(itemSchema,values,getRenderParamsByKeyForAllOf(schema,rootSchema,values,params));}function transformObjectByIndexForEnum(schema,rootSchema,values,params){var _params$parentUri41=params.parentUri,arrayParentUri=_params$parentUri41===void 0?'#':_params$parentUri41,_params$index9=params.index,arrayIndex=_params$index9===void 0?0:_params$index9;var uri=(0,_common.getUri)(arrayParentUri,arrayIndex);var _getMetaProps52=(0,_common.getMetaProps)(params,uri),_getMetaProps52$selec=_getMetaProps52.selectedItems,selectedItems=_getMetaProps52$selec===void 0?(0,_common.getSelectedItems)(values,uri):_getMetaProps52$selec;var items=(0,_common.getEnum)(schema);return renderObjectForEnum(schema,values,getRenderParamsByIndexForEnum(schema,rootSchema,values,Object.assign(params,{selectedItems:selectedItems,items:items})));}function transformObjectByIndexForAnyOf(schema,rootSchema,values,params){var _params$parentUri42=params.parentUri,arrayParentUri=_params$parentUri42===void 0?'#':_params$parentUri42,_params$index10=params.index,arrayIndex=_params$index10===void 0?0:_params$index10;var uri=(0,_common.getUri)(arrayParentUri,arrayIndex);var _getMetaProps53=(0,_common.getMetaProps)(params,uri),_getMetaProps53$selec=_getMetaProps53.selectedItems,selectedItems=_getMetaProps53$selec===void 0?(0,_common.getSelectedItems)(values,uri):_getMetaProps53$selec;var _schema$anyOf8=schema.anyOf,anyOf=_schema$anyOf8===void 0?[]:_schema$anyOf8;var items=anyOf.map(mapTransformObjectByIndex(rootSchema,values,_objectSpread(_objectSpread({},params),{},{parentUri:uri,selectedItems:selectedItems})));return renderObjectForAnyOf(schema,values,getRenderParamsByIndexForAnyOf(schema,rootSchema,values,Object.assign(params,{selectedItems:selectedItems,items:items})));}function transformObjectByIndexForOneOf(schema,rootSchema,values,params){var _params$parentUri43=params.parentUri,arrayParentUri=_params$parentUri43===void 0?'#':_params$parentUri43,_params$index11=params.index,arrayIndex=_params$index11===void 0?0:_params$index11;var uri=(0,_common.getUri)(arrayParentUri,arrayIndex);var _getMetaProps54=(0,_common.getMetaProps)(params,uri),_getMetaProps54$selec=_getMetaProps54.selectedItems,selectedItems=_getMetaProps54$selec===void 0?(0,_common.getSelectedItems)(values,uri):_getMetaProps54$selec;var _schema$oneOf8=schema.oneOf,oneOf=_schema$oneOf8===void 0?[]:_schema$oneOf8;var items=oneOf.map(mapTransformObjectByIndex(rootSchema,values,_objectSpread(_objectSpread({},params),{},{parentUri:uri,selectedItems:selectedItems})));return renderObjectForOneOf(schema,values,getRenderParamsByIndexForOneOf(schema,rootSchema,values,Object.assign(params,{selectedItems:selectedItems,items:items})));}function transformObjectByIndexForAllOf(schema,rootSchema,values,params){var _schema$allOf8=schema.allOf,allOf=_schema$allOf8===void 0?[]:_schema$allOf8,rest=_objectWithoutProperties(schema,_excluded54);var itemSchema=allOf.reduce(function(accumulator,schema){return Object.assign(accumulator,schema);},rest);return renderObjectForAllOf(itemSchema,values,getRenderParamsByIndexForAllOf(schema,rootSchema,values,params));}function transformObjectForEnum(schema,rootSchema,values,params){var _params$uri37=params.uri,uri=_params$uri37===void 0?'#/':_params$uri37;var _getMetaProps55=(0,_common.getMetaProps)(params,uri),_getMetaProps55$selec=_getMetaProps55.selectedItems,selectedItems=_getMetaProps55$selec===void 0?(0,_common.getSelectedItems)(values,uri):_getMetaProps55$selec;var items=(0,_common.getEnum)(schema);return renderObjectForEnum(schema,values,getRenderParamsForEnum(schema,rootSchema,values,Object.assign(params,{selectedItems:selectedItems,items:items})));}function transformObjectForAnyOf(schema,rootSchema,values,params){var _params$uri38=params.uri,uri=_params$uri38===void 0?'#/':_params$uri38;var _getMetaProps56=(0,_common.getMetaProps)(params,uri),_getMetaProps56$selec=_getMetaProps56.selectedItems,selectedItems=_getMetaProps56$selec===void 0?(0,_common.getSelectedItems)(values,uri):_getMetaProps56$selec;var _schema$anyOf9=schema.anyOf,anyOf=_schema$anyOf9===void 0?[]:_schema$anyOf9;var items=anyOf.map(mapTransformObjectByIndex(rootSchema,values,_objectSpread(_objectSpread({},params),{},{parentUri:uri,selectedItems:selectedItems})));return renderObjectForAnyOf(schema,values,getRenderParamsForAnyOf(schema,rootSchema,values,Object.assign(params,{selectedItems:selectedItems,items:items})));}function transformObjectForOneOf(schema,rootSchema,values,params){var _params$uri39=params.uri,uri=_params$uri39===void 0?'#/':_params$uri39;var _getMetaProps57=(0,_common.getMetaProps)(params,uri),_getMetaProps57$selec=_getMetaProps57.selectedItems,selectedItems=_getMetaProps57$selec===void 0?(0,_common.getSelectedItems)(values,uri):_getMetaProps57$selec;var _schema$oneOf9=schema.oneOf,oneOf=_schema$oneOf9===void 0?[]:_schema$oneOf9;var items=oneOf.map(mapTransformObjectByIndex(rootSchema,values,_objectSpread(_objectSpread({},params),{},{parentUri:uri,selectedItems:selectedItems})));return renderObjectForOneOf(schema,values,getRenderParamsForOneOf(schema,rootSchema,values,Object.assign(params,{selectedItems:selectedItems,items:items})));}function transformObjectForAllOf(schema,rootSchema,values,params){var _schema$allOf9=schema.allOf,allOf=_schema$allOf9===void 0?[]:_schema$allOf9,rest=_objectWithoutProperties(schema,_excluded55);var itemSchema=allOf.reduce(function(accumulator,schema){return Object.assign(accumulator,schema);},rest);var _itemSchema$propertie=itemSchema.properties,properties=_itemSchema$propertie===void 0?{}:_itemSchema$propertie,_itemSchema$required=itemSchema.required,required=_itemSchema$required===void 0?[]:_itemSchema$required;var _params$uri40=params.uri,uri=_params$uri40===void 0?'#/':_params$uri40;var fields=Object.entries(properties).map(mapTransformByKey(rootSchema,values,_objectSpread(_objectSpread({},params),{},{parentUri:uri,required:required})));return renderObjectForAllOf(itemSchema,values,getRenderParamsForAllOf(schema,rootSchema,values,_objectSpread(_objectSpread({},params),{},{fields:fields})));}function transformArrayByKeyForEnum(schema,rootSchema,values,params){var _params$parentUri44=params.parentUri,fieldParentUri=_params$parentUri44===void 0?'#':_params$parentUri44,_params$key10=params.key,fieldKey=_params$key10===void 0?'':_params$key10;var uri=(0,_common.getUri)(fieldParentUri,fieldKey);var _getMetaProps58=(0,_common.getMetaProps)(params,uri),_getMetaProps58$selec=_getMetaProps58.selectedItems,selectedItems=_getMetaProps58$selec===void 0?(0,_common.getSelectedItems)(values,uri):_getMetaProps58$selec;var items=(0,_common.getEnum)(schema);return renderArrayForEnum(schema,values,getRenderParamsByKeyForEnum(schema,rootSchema,values,Object.assign(params,{selectedItems:selectedItems,items:items})));}function transformArrayByKeyForAnyOf(schema,rootSchema,values,params){var _params$parentUri45=params.parentUri,fieldParentUri=_params$parentUri45===void 0?'#':_params$parentUri45,_params$key11=params.key,fieldKey=_params$key11===void 0?'':_params$key11;var uri=(0,_common.getUri)(fieldParentUri,fieldKey);var _getMetaProps59=(0,_common.getMetaProps)(params,uri),_getMetaProps59$selec=_getMetaProps59.selectedItems,selectedItems=_getMetaProps59$selec===void 0?(0,_common.getSelectedItems)(values,uri):_getMetaProps59$selec;var _schema$anyOf10=schema.anyOf,anyOf=_schema$anyOf10===void 0?[]:_schema$anyOf10;var items=anyOf.map(mapTransformArrayByIndex(rootSchema,values,_objectSpread(_objectSpread({},params),{},{parentUri:uri,selectedItems:selectedItems})));return renderArrayForAnyOf(schema,values,getRenderParamsByKeyForAnyOf(schema,rootSchema,values,Object.assign(params,{selectedItems:selectedItems,items:items})));}function transformArrayByKeyForOneOf(schema,rootSchema,values,params){var _params$parentUri46=params.parentUri,fieldParentUri=_params$parentUri46===void 0?'#':_params$parentUri46,_params$key12=params.key,fieldKey=_params$key12===void 0?'':_params$key12;var uri=(0,_common.getUri)(fieldParentUri,fieldKey);var _getMetaProps60=(0,_common.getMetaProps)(params,uri),_getMetaProps60$selec=_getMetaProps60.selectedItems,selectedItems=_getMetaProps60$selec===void 0?(0,_common.getSelectedItems)(values,uri):_getMetaProps60$selec;var _schema$oneOf10=schema.oneOf,oneOf=_schema$oneOf10===void 0?[]:_schema$oneOf10;var items=oneOf.map(mapTransformArrayByIndex(rootSchema,values,_objectSpread(_objectSpread({},params),{},{parentUri:uri,selectedItems:selectedItems})));return renderArrayForOneOf(schema,values,getRenderParamsByKeyForOneOf(schema,rootSchema,values,Object.assign(params,{selectedItems:selectedItems,items:items})));}function transformArrayByKeyForAllOf(schema,rootSchema,values,params){var _schema$allOf10=schema.allOf,allOf=_schema$allOf10===void 0?[]:_schema$allOf10,rest=_objectWithoutProperties(schema,_excluded56);var itemSchema=allOf.reduce(function(accumulator,schema){return Object.assign(accumulator,schema);},rest);return renderArrayForAllOf(itemSchema,values,getRenderParamsByKeyForAllOf(schema,rootSchema,values,params));}function transformArrayByIndexForEnum(schema,rootSchema,values,params){var _params$parentUri47=params.parentUri,arrayParentUri=_params$parentUri47===void 0?'#':_params$parentUri47,_params$index12=params.index,arrayIndex=_params$index12===void 0?0:_params$index12;var uri=(0,_common.getUri)(arrayParentUri,arrayIndex);var _getMetaProps61=(0,_common.getMetaProps)(params,uri),_getMetaProps61$selec=_getMetaProps61.selectedItems,selectedItems=_getMetaProps61$selec===void 0?(0,_common.getSelectedItems)(values,uri):_getMetaProps61$selec;var items=(0,_common.getEnum)(schema);return renderArrayForEnum(schema,values,getRenderParamsByIndexForEnum(schema,rootSchema,values,Object.assign(params,{selectedItems:selectedItems,items:items})));}function transformArrayByIndexForAnyOf(schema,rootSchema,values,params){var _params$parentUri48=params.parentUri,arrayParentUri=_params$parentUri48===void 0?'#':_params$parentUri48,_params$index13=params.index,arrayIndex=_params$index13===void 0?0:_params$index13;var uri=(0,_common.getUri)(arrayParentUri,arrayIndex);var _getMetaProps62=(0,_common.getMetaProps)(params,uri),_getMetaProps62$selec=_getMetaProps62.selectedItems,selectedItems=_getMetaProps62$selec===void 0?(0,_common.getSelectedItems)(values,uri):_getMetaProps62$selec;var _schema$anyOf11=schema.anyOf,anyOf=_schema$anyOf11===void 0?[]:_schema$anyOf11;var items=anyOf.map(mapTransformArrayByIndex(rootSchema,values,_objectSpread(_objectSpread({},params),{},{parentUri:uri,selectedItems:selectedItems})));return renderArrayForAnyOf(schema,values,getRenderParamsByIndexForAnyOf(schema,rootSchema,values,Object.assign(params,{selectedItems:selectedItems,items:items})));}function transformArrayByIndexForOneOf(schema,rootSchema,values,params){var _params$parentUri49=params.parentUri,arrayParentUri=_params$parentUri49===void 0?'#':_params$parentUri49,_params$index14=params.index,arrayIndex=_params$index14===void 0?0:_params$index14;var uri=(0,_common.getUri)(arrayParentUri,arrayIndex);var _getMetaProps63=(0,_common.getMetaProps)(params,uri),_getMetaProps63$selec=_getMetaProps63.selectedItems,selectedItems=_getMetaProps63$selec===void 0?(0,_common.getSelectedItems)(values,uri):_getMetaProps63$selec;var _schema$oneOf11=schema.oneOf,oneOf=_schema$oneOf11===void 0?[]:_schema$oneOf11;var items=oneOf.map(mapTransformArrayByIndex(rootSchema,values,_objectSpread(_objectSpread({},params),{},{parentUri:uri,selectedItems:selectedItems})));return renderArrayForOneOf(schema,values,getRenderParamsByIndexForOneOf(schema,rootSchema,values,Object.assign(params,{selectedItems:selectedItems,items:items})));}function transformArrayByIndexForAllOf(schema,rootSchema,values,params){var _schema$allOf11=schema.allOf,allOf=_schema$allOf11===void 0?[]:_schema$allOf11,rest=_objectWithoutProperties(schema,_excluded57);var itemSchema=allOf.reduce(function(accumulator,schema){return Object.assign(accumulator,schema);},rest);return renderArrayForAllOf(itemSchema,values,getRenderParamsByIndexForAllOf(schema,rootSchema,values,params));}function transformArrayForEnum(schema,rootSchema,values,params){var _params$uri41=params.uri,uri=_params$uri41===void 0?'#/':_params$uri41;var _getMetaProps64=(0,_common.getMetaProps)(params,uri),_getMetaProps64$selec=_getMetaProps64.selectedItems,selectedItems=_getMetaProps64$selec===void 0?(0,_common.getSelectedItems)(values,uri):_getMetaProps64$selec;var items=(0,_common.getEnum)(schema);return renderArrayForEnum(schema,values,getRenderParamsForEnum(schema,rootSchema,values,Object.assign(params,{selectedItems:selectedItems,items:items})));}function transformArrayForAnyOf(schema,rootSchema,values,params){var _params$uri42=params.uri,uri=_params$uri42===void 0?'#/':_params$uri42;var _getMetaProps65=(0,_common.getMetaProps)(params,uri),_getMetaProps65$selec=_getMetaProps65.selectedItems,selectedItems=_getMetaProps65$selec===void 0?(0,_common.getSelectedItems)(values,uri):_getMetaProps65$selec;var _schema$anyOf12=schema.anyOf,anyOf=_schema$anyOf12===void 0?[]:_schema$anyOf12;var items=anyOf.map(mapTransformArrayByIndex(rootSchema,values,_objectSpread(_objectSpread({},params),{},{parentUri:uri,selectedItems:selectedItems})));return renderArrayForAnyOf(schema,values,getRenderParamsForAnyOf(schema,rootSchema,values,Object.assign(params,{selectedItems:selectedItems,items:items})));}function transformArrayForOneOf(schema,rootSchema,values,params){var _params$uri43=params.uri,uri=_params$uri43===void 0?'#/':_params$uri43;var _getMetaProps66=(0,_common.getMetaProps)(params,uri),_getMetaProps66$selec=_getMetaProps66.selectedItems,selectedItems=_getMetaProps66$selec===void 0?(0,_common.getSelectedItems)(values,uri):_getMetaProps66$selec;var _schema$oneOf12=schema.oneOf,oneOf=_schema$oneOf12===void 0?[]:_schema$oneOf12;var items=oneOf.map(mapTransformArrayByIndex(rootSchema,values,_objectSpread(_objectSpread({},params),{},{parentUri:uri,selectedItems:selectedItems})));return renderArrayForOneOf(schema,values,getRenderParamsForOneOf(schema,rootSchema,values,Object.assign(params,{selectedItems:selectedItems,items:items})));}function transformArrayForAllOf(schema,rootSchema,values,params){var _schema$allOf12=schema.allOf,allOf=_schema$allOf12===void 0?[]:_schema$allOf12,rest=_objectWithoutProperties(schema,_excluded58);var itemSchema=allOf.reduce(function(accumulator,schema){return Object.assign(accumulator,schema);},rest);var _itemSchema$items=itemSchema.items,items=_itemSchema$items===void 0?[]:_itemSchema$items;if((0,_common.isArray)(items)){var _params$uri44=params.uri,uri=_params$uri44===void 0?'#/':_params$uri44;var fields=items.map(mapTransformByIndex(rootSchema,values,_objectSpread(_objectSpread({},params),{},{parentUri:uri})));return renderArrayForAllOf(itemSchema,values,getRenderParamsForAllOf(schema,rootSchema,values,_objectSpread(_objectSpread({},params),{},{fields:fields})));}else{if((0,_common.isObject)(items)){var _params$uri45=params.uri,_uri2=_params$uri45===void 0?'#/':_params$uri45;var _fields=[getTransformByIndex(items,rootSchema,values,_objectSpread(_objectSpread({},params),{},{parentUri:_uri2}))];return renderArrayForAllOf(itemSchema,values,getRenderParamsForAllOf(schema,rootSchema,values,_objectSpread(_objectSpread({},params),{},{fields:_fields})));}}}function transformNumberByKeyForEnum(schema,rootSchema,values,params){var _params$parentUri50=params.parentUri,fieldParentUri=_params$parentUri50===void 0?'#':_params$parentUri50,_params$key13=params.key,fieldKey=_params$key13===void 0?'':_params$key13;var uri=(0,_common.getUri)(fieldParentUri,fieldKey);var _getMetaProps67=(0,_common.getMetaProps)(params,uri),_getMetaProps67$selec=_getMetaProps67.selectedItems,selectedItems=_getMetaProps67$selec===void 0?(0,_common.getSelectedItems)(values,uri):_getMetaProps67$selec;var items=(0,_common.getEnum)(schema);return renderNumberForEnum(schema,values,getRenderParamsByKeyForEnum(schema,rootSchema,values,Object.assign(params,{selectedItems:selectedItems,items:items})));}function transformNumberByKeyForAnyOf(schema,rootSchema,values,params){var _params$parentUri51=params.parentUri,fieldParentUri=_params$parentUri51===void 0?'#':_params$parentUri51,_params$key14=params.key,fieldKey=_params$key14===void 0?'':_params$key14;var uri=(0,_common.getUri)(fieldParentUri,fieldKey);var _getMetaProps68=(0,_common.getMetaProps)(params,uri),_getMetaProps68$selec=_getMetaProps68.selectedItems,selectedItems=_getMetaProps68$selec===void 0?(0,_common.getSelectedItems)(values,uri):_getMetaProps68$selec;var _schema$anyOf13=schema.anyOf,anyOf=_schema$anyOf13===void 0?[]:_schema$anyOf13;var items=anyOf.map(mapTransformNumberByIndex(rootSchema,values,_objectSpread(_objectSpread({},params),{},{parentUri:uri,selectedItems:selectedItems})));return renderNumberForAnyOf(schema,values,getRenderParamsByKeyForAnyOf(schema,rootSchema,values,Object.assign(params,{selectedItems:selectedItems,items:items})));}function transformNumberByKeyForOneOf(schema,rootSchema,values,params){var _params$parentUri52=params.parentUri,fieldParentUri=_params$parentUri52===void 0?'#':_params$parentUri52,_params$key15=params.key,fieldKey=_params$key15===void 0?'':_params$key15;var uri=(0,_common.getUri)(fieldParentUri,fieldKey);var _getMetaProps69=(0,_common.getMetaProps)(params,uri),_getMetaProps69$selec=_getMetaProps69.selectedItems,selectedItems=_getMetaProps69$selec===void 0?(0,_common.getSelectedItems)(values,uri):_getMetaProps69$selec;var _schema$oneOf13=schema.oneOf,oneOf=_schema$oneOf13===void 0?[]:_schema$oneOf13;var items=oneOf.map(mapTransformNumberByIndex(rootSchema,values,_objectSpread(_objectSpread({},params),{},{parentUri:uri,selectedItems:selectedItems})));return renderNumberForOneOf(schema,values,getRenderParamsByKeyForOneOf(schema,rootSchema,values,Object.assign(params,{selectedItems:selectedItems,items:items})));}function transformNumberByKeyForAllOf(schema,rootSchema,values,params){var _schema$allOf13=schema.allOf,allOf=_schema$allOf13===void 0?[]:_schema$allOf13,rest=_objectWithoutProperties(schema,_excluded59);var itemSchema=allOf.reduce(function(accumulator,schema){return Object.assign(accumulator,schema);},rest);return renderNumberForAllOf(itemSchema,values,getRenderParamsByKeyForAllOf(schema,rootSchema,values,params));}function transformNumberByIndexForEnum(schema,rootSchema,values,params){var _params$parentUri53=params.parentUri,arrayParentUri=_params$parentUri53===void 0?'#':_params$parentUri53,_params$index15=params.index,arrayIndex=_params$index15===void 0?0:_params$index15;var uri=(0,_common.getUri)(arrayParentUri,arrayIndex);var _getMetaProps70=(0,_common.getMetaProps)(params,uri),_getMetaProps70$selec=_getMetaProps70.selectedItems,selectedItems=_getMetaProps70$selec===void 0?(0,_common.getSelectedItems)(values,uri):_getMetaProps70$selec;var items=(0,_common.getEnum)(schema);return renderNumberForEnum(schema,values,getRenderParamsByIndexForEnum(schema,rootSchema,values,Object.assign(params,{selectedItems:selectedItems,items:items})));}function transformNumberByIndexForAnyOf(schema,rootSchema,values,params){var _params$parentUri54=params.parentUri,arrayParentUri=_params$parentUri54===void 0?'#':_params$parentUri54,_params$index16=params.index,arrayIndex=_params$index16===void 0?0:_params$index16;var uri=(0,_common.getUri)(arrayParentUri,arrayIndex);var _getMetaProps71=(0,_common.getMetaProps)(params,uri),_getMetaProps71$selec=_getMetaProps71.selectedItems,selectedItems=_getMetaProps71$selec===void 0?(0,_common.getSelectedItems)(values,uri):_getMetaProps71$selec;var _schema$anyOf14=schema.anyOf,anyOf=_schema$anyOf14===void 0?[]:_schema$anyOf14;var items=anyOf.map(mapTransformNumberByIndex(rootSchema,values,_objectSpread(_objectSpread({},params),{},{parentUri:uri,selectedItems:selectedItems})));return renderNumberForAnyOf(schema,values,getRenderParamsByIndexForAnyOf(schema,rootSchema,values,Object.assign(params,{selectedItems:selectedItems,items:items})));}function transformNumberByIndexForOneOf(schema,rootSchema,values,params){var _params$parentUri55=params.parentUri,arrayParentUri=_params$parentUri55===void 0?'#':_params$parentUri55,_params$index17=params.index,arrayIndex=_params$index17===void 0?0:_params$index17;var uri=(0,_common.getUri)(arrayParentUri,arrayIndex);var _getMetaProps72=(0,_common.getMetaProps)(params,uri),_getMetaProps72$selec=_getMetaProps72.selectedItems,selectedItems=_getMetaProps72$selec===void 0?(0,_common.getSelectedItems)(values,uri):_getMetaProps72$selec;var _schema$oneOf14=schema.oneOf,oneOf=_schema$oneOf14===void 0?[]:_schema$oneOf14;var items=oneOf.map(mapTransformNumberByIndex(rootSchema,values,_objectSpread(_objectSpread({},params),{},{parentUri:uri,selectedItems:selectedItems})));return renderNumberForOneOf(schema,values,getRenderParamsByIndexForOneOf(schema,rootSchema,values,Object.assign(params,{selectedItems:selectedItems,items:items})));}function transformNumberByIndexForAllOf(schema,rootSchema,values,params){var _schema$allOf14=schema.allOf,allOf=_schema$allOf14===void 0?[]:_schema$allOf14,rest=_objectWithoutProperties(schema,_excluded60);var itemSchema=allOf.reduce(function(accumulator,schema){return Object.assign(accumulator,schema);},rest);return renderNumberForAllOf(itemSchema,values,getRenderParamsByIndexForAllOf(schema,rootSchema,values,params));}function transformNumberForEnum(schema,rootSchema,values,params){var _params$uri46=params.uri,uri=_params$uri46===void 0?'#/':_params$uri46;var _getMetaProps73=(0,_common.getMetaProps)(params,uri),_getMetaProps73$selec=_getMetaProps73.selectedItems,selectedItems=_getMetaProps73$selec===void 0?(0,_common.getSelectedItems)(values,uri):_getMetaProps73$selec;var items=(0,_common.getEnum)(schema);return renderNumberForEnum(schema,values,getRenderParamsForEnum(schema,rootSchema,values,Object.assign(params,{selectedItems:selectedItems,items:items})));}function transformNumberForAnyOf(schema,rootSchema,values,params){var _params$uri47=params.uri,uri=_params$uri47===void 0?'#/':_params$uri47;var _getMetaProps74=(0,_common.getMetaProps)(params,uri),_getMetaProps74$selec=_getMetaProps74.selectedItems,selectedItems=_getMetaProps74$selec===void 0?(0,_common.getSelectedItems)(values,uri):_getMetaProps74$selec;var _schema$anyOf15=schema.anyOf,anyOf=_schema$anyOf15===void 0?[]:_schema$anyOf15;var items=anyOf.map(mapTransformNumberByIndex(rootSchema,values,_objectSpread(_objectSpread({},params),{},{parentUri:uri,selectedItems:selectedItems})));return renderNumberForAnyOf(schema,values,getRenderParamsForAnyOf(schema,rootSchema,values,Object.assign(params,{selectedItems:selectedItems,items:items})));}function transformNumberForOneOf(schema,rootSchema,values,params){var _params$uri48=params.uri,uri=_params$uri48===void 0?'#/':_params$uri48;var _getMetaProps75=(0,_common.getMetaProps)(params,uri),_getMetaProps75$selec=_getMetaProps75.selectedItems,selectedItems=_getMetaProps75$selec===void 0?(0,_common.getSelectedItems)(values,uri):_getMetaProps75$selec;var _schema$oneOf15=schema.oneOf,oneOf=_schema$oneOf15===void 0?[]:_schema$oneOf15;var items=oneOf.map(mapTransformNumberByIndex(rootSchema,values,_objectSpread(_objectSpread({},params),{},{parentUri:uri,selectedItems:selectedItems})));return renderNumberForOneOf(schema,values,getRenderParamsForOneOf(schema,rootSchema,values,Object.assign(params,{selectedItems:selectedItems,items:items})));}function transformNumberForAllOf(schema,rootSchema,values,params){var _schema$allOf15=schema.allOf,allOf=_schema$allOf15===void 0?[]:_schema$allOf15,rest=_objectWithoutProperties(schema,_excluded61);var itemSchema=allOf.reduce(function(accumulator,schema){return Object.assign(accumulator,schema);},rest);return renderNumberForAllOf(itemSchema,values,getRenderParamsForAllOf(schema,rootSchema,values,params));}function transformStringByKeyForEnum(schema,rootSchema,values,params){var _params$parentUri56=params.parentUri,fieldParentUri=_params$parentUri56===void 0?'#':_params$parentUri56,_params$key16=params.key,fieldKey=_params$key16===void 0?'':_params$key16;var uri=(0,_common.getUri)(fieldParentUri,fieldKey);var _getMetaProps76=(0,_common.getMetaProps)(params,uri),_getMetaProps76$selec=_getMetaProps76.selectedItems,selectedItems=_getMetaProps76$selec===void 0?(0,_common.getSelectedItems)(values,uri):_getMetaProps76$selec;var items=(0,_common.getEnum)(schema);return renderStringForEnum(schema,values,getRenderParamsByKeyForEnum(schema,rootSchema,values,Object.assign(params,{selectedItems:selectedItems,items:items})));}function transformStringByKeyForAnyOf(schema,rootSchema,values,params){var _params$parentUri57=params.parentUri,fieldParentUri=_params$parentUri57===void 0?'#':_params$parentUri57,_params$key17=params.key,fieldKey=_params$key17===void 0?'':_params$key17;var uri=(0,_common.getUri)(fieldParentUri,fieldKey);var _getMetaProps77=(0,_common.getMetaProps)(params,uri),_getMetaProps77$selec=_getMetaProps77.selectedItems,selectedItems=_getMetaProps77$selec===void 0?(0,_common.getSelectedItems)(values,uri):_getMetaProps77$selec;var _schema$anyOf16=schema.anyOf,anyOf=_schema$anyOf16===void 0?[]:_schema$anyOf16;var items=anyOf.map(mapTransformStringByIndex(rootSchema,values,_objectSpread(_objectSpread({},params),{},{parentUri:uri,selectedItems:selectedItems})));return renderStringForAnyOf(schema,values,getRenderParamsByKeyForAnyOf(schema,rootSchema,values,Object.assign(params,{selectedItems:selectedItems,items:items})));}function transformStringByKeyForOneOf(schema,rootSchema,values,params){var _params$parentUri58=params.parentUri,fieldParentUri=_params$parentUri58===void 0?'#':_params$parentUri58,_params$key18=params.key,fieldKey=_params$key18===void 0?'':_params$key18;var uri=(0,_common.getUri)(fieldParentUri,fieldKey);var _getMetaProps78=(0,_common.getMetaProps)(params,uri),_getMetaProps78$selec=_getMetaProps78.selectedItems,selectedItems=_getMetaProps78$selec===void 0?(0,_common.getSelectedItems)(values,uri):_getMetaProps78$selec;var _schema$oneOf16=schema.oneOf,oneOf=_schema$oneOf16===void 0?[]:_schema$oneOf16;var items=oneOf.map(mapTransformStringByIndex(rootSchema,values,_objectSpread(_objectSpread({},params),{},{parentUri:uri,selectedItems:selectedItems})));return renderStringForOneOf(schema,values,getRenderParamsByKeyForOneOf(schema,rootSchema,values,Object.assign(params,{selectedItems:selectedItems,items:items})));}function transformStringByKeyForAllOf(schema,rootSchema,values,params){var _schema$allOf16=schema.allOf,allOf=_schema$allOf16===void 0?[]:_schema$allOf16,rest=_objectWithoutProperties(schema,_excluded62);var itemSchema=allOf.reduce(function(accumulator,schema){return Object.assign(accumulator,schema);},rest);return renderStringForAllOf(itemSchema,values,getRenderParamsByKeyForAllOf(schema,rootSchema,values,params));}function transformStringByIndexForEnum(schema,rootSchema,values,params){var _params$parentUri59=params.parentUri,arrayParentUri=_params$parentUri59===void 0?'#':_params$parentUri59,_params$index18=params.index,arrayIndex=_params$index18===void 0?0:_params$index18;var uri=(0,_common.getUri)(arrayParentUri,arrayIndex);var _getMetaProps79=(0,_common.getMetaProps)(params,uri),_getMetaProps79$selec=_getMetaProps79.selectedItems,selectedItems=_getMetaProps79$selec===void 0?(0,_common.getSelectedItems)(values,uri):_getMetaProps79$selec;var items=(0,_common.getEnum)(schema);return renderStringForEnum(schema,values,getRenderParamsByIndexForEnum(schema,rootSchema,values,Object.assign(params,{selectedItems:selectedItems,items:items})));}function transformStringByIndexForAnyOf(schema,rootSchema,values,params){var _params$parentUri60=params.parentUri,arrayParentUri=_params$parentUri60===void 0?'#':_params$parentUri60,_params$index19=params.index,arrayIndex=_params$index19===void 0?0:_params$index19;var uri=(0,_common.getUri)(arrayParentUri,arrayIndex);var _getMetaProps80=(0,_common.getMetaProps)(params,uri),_getMetaProps80$selec=_getMetaProps80.selectedItems,selectedItems=_getMetaProps80$selec===void 0?(0,_common.getSelectedItems)(values,uri):_getMetaProps80$selec;var _schema$anyOf17=schema.anyOf,anyOf=_schema$anyOf17===void 0?[]:_schema$anyOf17;var items=anyOf.map(mapTransformStringByIndex(rootSchema,values,_objectSpread(_objectSpread({},params),{},{parentUri:uri,selectedItems:selectedItems})));return renderStringForAnyOf(schema,values,getRenderParamsByIndexForAnyOf(schema,rootSchema,values,Object.assign(params,{selectedItems:selectedItems,items:items})));}function transformStringByIndexForOneOf(schema,rootSchema,values,params){var _params$parentUri61=params.parentUri,arrayParentUri=_params$parentUri61===void 0?'#':_params$parentUri61,_params$index20=params.index,arrayIndex=_params$index20===void 0?0:_params$index20;var uri=(0,_common.getUri)(arrayParentUri,arrayIndex);var _getMetaProps81=(0,_common.getMetaProps)(params,uri),_getMetaProps81$selec=_getMetaProps81.selectedItems,selectedItems=_getMetaProps81$selec===void 0?(0,_common.getSelectedItems)(values,uri):_getMetaProps81$selec;var _schema$oneOf17=schema.oneOf,oneOf=_schema$oneOf17===void 0?[]:_schema$oneOf17;var items=oneOf.map(mapTransformStringByIndex(rootSchema,values,_objectSpread(_objectSpread({},params),{},{parentUri:uri})));return renderStringForOneOf(schema,values,getRenderParamsByIndexForOneOf(schema,rootSchema,values,Object.assign(params,{selectedItems:selectedItems,items:items})));}function transformStringByIndexForAllOf(schema,rootSchema,values,params){var _schema$allOf17=schema.allOf,allOf=_schema$allOf17===void 0?[]:_schema$allOf17,rest=_objectWithoutProperties(schema,_excluded63);var itemSchema=allOf.reduce(function(accumulator,schema){return Object.assign(accumulator,schema);},rest);return renderStringForAllOf(itemSchema,values,getRenderParamsByIndexForAllOf(schema,rootSchema,values,params));}function transformStringForEnum(schema,rootSchema,values,params){var _params$uri49=params.uri,uri=_params$uri49===void 0?'#/':_params$uri49;var _getMetaProps82=(0,_common.getMetaProps)(params,uri),_getMetaProps82$selec=_getMetaProps82.selectedItems,selectedItems=_getMetaProps82$selec===void 0?(0,_common.getSelectedItems)(values,uri):_getMetaProps82$selec;var items=(0,_common.getEnum)(schema);return renderStringForEnum(schema,values,getRenderParamsForEnum(schema,rootSchema,values,Object.assign(params,{selectedItems:selectedItems,items:items})));}function transformStringForAnyOf(schema,rootSchema,values,params){var _params$uri50=params.uri,uri=_params$uri50===void 0?'#/':_params$uri50;var _getMetaProps83=(0,_common.getMetaProps)(params,uri),_getMetaProps83$selec=_getMetaProps83.selectedItems,selectedItems=_getMetaProps83$selec===void 0?(0,_common.getSelectedItems)(values,uri):_getMetaProps83$selec;var _schema$anyOf18=schema.anyOf,anyOf=_schema$anyOf18===void 0?[]:_schema$anyOf18;var items=anyOf.map(mapTransformStringByIndex(rootSchema,values,_objectSpread(_objectSpread({},params),{},{parentUri:uri,selectedItems:selectedItems})));return renderStringForAnyOf(schema,values,getRenderParamsForAnyOf(schema,rootSchema,values,Object.assign(params,{selectedItems:selectedItems,items:items})));}function transformStringForOneOf(schema,rootSchema,values,params){var _params$uri51=params.uri,uri=_params$uri51===void 0?'#/':_params$uri51;var _getMetaProps84=(0,_common.getMetaProps)(params,uri),_getMetaProps84$selec=_getMetaProps84.selectedItems,selectedItems=_getMetaProps84$selec===void 0?(0,_common.getSelectedItems)(values,uri):_getMetaProps84$selec;var _schema$oneOf18=schema.oneOf,oneOf=_schema$oneOf18===void 0?[]:_schema$oneOf18;var items=oneOf.map(mapTransformStringByIndex(rootSchema,values,_objectSpread(_objectSpread({},params),{},{parentUri:uri,selectedItems:selectedItems})));return renderStringForOneOf(schema,values,getRenderParamsForOneOf(schema,rootSchema,values,Object.assign(params,{selectedItems:selectedItems,items:items})));}function transformStringForAllOf(schema,rootSchema,values,params){var _schema$allOf18=schema.allOf,allOf=_schema$allOf18===void 0?[]:_schema$allOf18,rest=_objectWithoutProperties(schema,_excluded64);var itemSchema=allOf.reduce(function(accumulator,schema){return Object.assign(accumulator,schema);},rest);return renderStringForAllOf(itemSchema,values,getRenderParamsForAllOf(schema,rootSchema,values,params));}function transformNullByKey(schema,rootSchema,values,params){if((0,_common.hasEnum)(schema)){return transformNullByKeyForEnum(schema,rootSchema,values,params);}else{if((0,_common.hasAnyOf)(schema)){return transformNullByKeyForAnyOf(schema,rootSchema,values,params);}else{if((0,_common.hasOneOf)(schema)){return transformNullByKeyForOneOf(schema,rootSchema,values,params);}else{if((0,_common.hasAllOf)(schema)){return transformNullByKeyForAllOf(schema,rootSchema,values,params);}}}}return renderNull(schema,values,getRenderParamsByKey(schema,rootSchema,values,params));}function transformNullByIndex(schema,rootSchema,values,params){if((0,_common.hasEnum)(schema)){return transformNullByIndexForEnum(schema,rootSchema,values,params);}else{if((0,_common.hasAnyOf)(schema)){return transformNullByIndexForAnyOf(schema,rootSchema,values,params);}else{if((0,_common.hasOneOf)(schema)){return transformNullByIndexForOneOf(schema,rootSchema,values,params);}else{if((0,_common.hasAllOf)(schema)){return transformNullByIndexForAllOf(schema,rootSchema,values,params);}}}}return renderNull(schema,values,getRenderParamsByIndex(schema,rootSchema,values,params));}function transformBooleanByKey(schema,rootSchema,values,params){if((0,_common.hasEnum)(schema)){return transformBooleanByKeyForEnum(schema,rootSchema,values,params);}else{if((0,_common.hasAnyOf)(schema)){return transformBooleanByKeyForAnyOf(schema,rootSchema,values,params);}else{if((0,_common.hasOneOf)(schema)){return transformBooleanByKeyForOneOf(schema,rootSchema,values,params);}else{if((0,_common.hasAllOf)(schema)){return transformBooleanByKeyForAllOf(schema,rootSchema,values,params);}}}}return renderBoolean(schema,values,getRenderParamsByKey(schema,rootSchema,values,params));}function transformBooleanByIndex(schema,rootSchema,values,params){if((0,_common.hasEnum)(schema)){return transformBooleanByIndexForEnum(schema,rootSchema,values,params);}else{if((0,_common.hasAnyOf)(schema)){return transformBooleanByIndexForAnyOf(schema,rootSchema,values,params);}else{if((0,_common.hasOneOf)(schema)){return transformBooleanByIndexForOneOf(schema,rootSchema,values,params);}else{if((0,_common.hasAllOf)(schema)){return transformBooleanByIndexForAllOf(schema,rootSchema,values,params);}}}}return renderBoolean(schema,values,getRenderParamsByIndex(schema,rootSchema,values,params));}function transformObjectByKey(schema,rootSchema,values,params){if((0,_common.hasEnum)(schema)){return transformObjectByKeyForEnum(schema,rootSchema,values,params);}else{if((0,_common.hasAnyOf)(schema)){return transformObjectByKeyForAnyOf(schema,rootSchema,values,params);}else{if((0,_common.hasOneOf)(schema)){return transformObjectByKeyForOneOf(schema,rootSchema,values,params);}else{if((0,_common.hasAllOf)(schema)){return transformObjectByKeyForAllOf(schema,rootSchema,values,params);}}}}var _schema$properties=schema.properties,properties=_schema$properties===void 0?{}:_schema$properties,_schema$required=schema.required,required=_schema$required===void 0?[]:_schema$required;var _params$parentUri62=params.parentUri,fieldParentUri=_params$parentUri62===void 0?'#':_params$parentUri62,fieldKey=params.key;var uri=(0,_common.getUri)(fieldParentUri,fieldKey);var fields=Object.entries(properties).map(mapTransformByKey(rootSchema,values,_objectSpread(_objectSpread({},params),{},{parentUri:uri,required:required})));return renderObject(schema,values,getRenderParamsByKey(schema,rootSchema,values,Object.assign(params,{fields:fields})));}function transformObjectByIndex(schema,rootSchema,values,params){if((0,_common.hasEnum)(schema)){return transformObjectByIndexForEnum(schema,rootSchema,values,params);}else{if((0,_common.hasAnyOf)(schema)){return transformObjectByIndexForAnyOf(schema,rootSchema,values,params);}else{if((0,_common.hasOneOf)(schema)){return transformObjectByIndexForOneOf(schema,rootSchema,values,params);}else{if((0,_common.hasAllOf)(schema)){return transformObjectByIndexForAllOf(schema,rootSchema,values,params);}}}}var _schema$properties2=schema.properties,properties=_schema$properties2===void 0?{}:_schema$properties2,_schema$required2=schema.required,required=_schema$required2===void 0?[]:_schema$required2;var _params$parentUri63=params.parentUri,arrayParentUri=_params$parentUri63===void 0?'#':_params$parentUri63,_params$index21=params.index,arrayIndex=_params$index21===void 0?0:_params$index21;var uri=(0,_common.getUri)(arrayParentUri,arrayIndex);var fields=Object.entries(properties).map(mapTransformByKey(rootSchema,values,_objectSpread(_objectSpread({},params),{},{parentUri:uri,required:required})));return renderObject(schema,values,getRenderParamsByIndex(schema,rootSchema,values,Object.assign(params,{fields:fields})));}function transformArrayByKey(schema,rootSchema,values,params){if((0,_common.hasEnum)(schema)){return transformArrayByKeyForEnum(schema,rootSchema,values,params);}else{if((0,_common.hasAnyOf)(schema)){return transformArrayByKeyForAnyOf(schema,rootSchema,values,params);}else{if((0,_common.hasOneOf)(schema)){return transformArrayByKeyForOneOf(schema,rootSchema,values,params);}else{if((0,_common.hasAllOf)(schema)){return transformArrayByKeyForAllOf(schema,rootSchema,values,params);}}}}var _schema$items=schema.items,items=_schema$items===void 0?[]:_schema$items;if((0,_common.isArray)(items)){var _params$parentUri64=params.parentUri,fieldParentUri=_params$parentUri64===void 0?'#':_params$parentUri64,_params$key19=params.key,fieldKey=_params$key19===void 0?'':_params$key19;var uri=(0,_common.getUri)(fieldParentUri,fieldKey);var fields=items.map(mapTransformByIndex(rootSchema,values,_objectSpread(_objectSpread({},params),{},{parentUri:uri})));return renderArray(schema,values,getRenderParamsByKey(schema,rootSchema,values,Object.assign(params,{fields:fields})));}else{if((0,_common.isObject)(items)){var _params$parentUri65=params.parentUri,_fieldParentUri=_params$parentUri65===void 0?'#':_params$parentUri65,_params$key20=params.key,_fieldKey=_params$key20===void 0?'':_params$key20;var _uri3=(0,_common.getUri)(_fieldParentUri,_fieldKey);var _fields2=[getTransformByIndex(items,rootSchema,values,_objectSpread(_objectSpread({},params),{},{parentUri:_uri3}))];return renderArray(schema,values,getRenderParamsByKey(schema,rootSchema,values,Object.assign(params,{fields:_fields2})));}}}function transformArrayByIndex(schema,rootSchema,values,params){if((0,_common.hasEnum)(schema)){return transformArrayByIndexForEnum(schema,rootSchema,values,params);}else{if((0,_common.hasAnyOf)(schema)){return transformArrayByIndexForAnyOf(schema,rootSchema,values,params);}else{if((0,_common.hasOneOf)(schema)){return transformArrayByIndexForOneOf(schema,rootSchema,values,params);}else{if((0,_common.hasAllOf)(schema)){return transformArrayByIndexForAllOf(schema,rootSchema,values,params);}}}}var _schema$items2=schema.items,items=_schema$items2===void 0?[]:_schema$items2;if((0,_common.isArray)(items)){var _params$parentUri66=params.parentUri,arrayParentUri=_params$parentUri66===void 0?'#/':_params$parentUri66,_params$index22=params.index,arrayIndex=_params$index22===void 0?0:_params$index22;var uri=(0,_common.getUri)(arrayParentUri,arrayIndex);var fields=items.map(mapTransformByIndex(rootSchema,values,_objectSpread(_objectSpread({},params),{},{parentUri:uri})));return renderArray(schema,values,getRenderParamsByIndex(schema,rootSchema,values,Object.assign(params,{fields:fields})));}else{if((0,_common.isObject)(items)){var _params$parentUri67=params.parentUri,_arrayParentUri=_params$parentUri67===void 0?'#':_params$parentUri67,_params$index23=params.index,_arrayIndex=_params$index23===void 0?0:_params$index23;var _uri4=(0,_common.getUri)(_arrayParentUri,_arrayIndex);var _fields3=[getTransformByIndex(items,rootSchema,values,_objectSpread(_objectSpread({},params),{},{parentUri:_uri4}))];return renderArray(schema,values,getRenderParamsByIndex(schema,rootSchema,values,Object.assign(params,{fields:_fields3})));}}}function transformNumberByKey(schema,rootSchema,values,params){if((0,_common.hasEnum)(schema)){return transformNumberByKeyForEnum(schema,rootSchema,values,params);}else{if((0,_common.hasAnyOf)(schema)){return transformNumberByKeyForAnyOf(schema,rootSchema,values,params);}else{if((0,_common.hasOneOf)(schema)){return transformNumberByKeyForOneOf(schema,rootSchema,values,params);}else{if((0,_common.hasAllOf)(schema)){return transformNumberByKeyForAllOf(schema,rootSchema,values,params);}}}}return renderNumber(schema,values,getRenderParamsByKey(schema,rootSchema,values,params));}function transformNumberByIndex(schema,rootSchema,values,params){if((0,_common.hasEnum)(schema)){return transformNumberByIndexForEnum(schema,rootSchema,values,params);}else{if((0,_common.hasAnyOf)(schema)){return transformNumberByIndexForAnyOf(schema,rootSchema,values,params);}else{if((0,_common.hasOneOf)(schema)){return transformNumberByIndexForOneOf(schema,rootSchema,values,params);}else{if((0,_common.hasAllOf)(schema)){return transformNumberByIndexForAllOf(schema,rootSchema,values,params);}}}}return renderNumber(schema,values,getRenderParamsByIndex(schema,rootSchema,values,params));}function transformStringByKey(schema,rootSchema,values,params){if((0,_common.hasEnum)(schema)){return transformStringByKeyForEnum(schema,rootSchema,values,params);}else{if((0,_common.hasAnyOf)(schema)){return transformStringByKeyForAnyOf(schema,rootSchema,values,params);}else{if((0,_common.hasOneOf)(schema)){return transformStringByKeyForOneOf(schema,rootSchema,values,params);}else{if((0,_common.hasAllOf)(schema)){return transformStringByKeyForAllOf(schema,rootSchema,values,params);}}}}return renderString(schema,values,getRenderParamsByKey(schema,rootSchema,values,params));}function transformStringByIndex(schema,rootSchema,values,params){if((0,_common.hasEnum)(schema)){return transformStringByIndexForEnum(schema,rootSchema,values,params);}else{if((0,_common.hasAnyOf)(schema)){return transformStringByIndexForAnyOf(schema,rootSchema,values,params);}else{if((0,_common.hasOneOf)(schema)){return transformStringByIndexForOneOf(schema,rootSchema,values,params);}else{if((0,_common.hasAllOf)(schema)){return transformStringByIndexForAllOf(schema,rootSchema,values,params);}}}}return renderString(schema,values,getRenderParamsByIndex(schema,rootSchema,values,params));}function transformNull(schema,rootSchema,values,params){if((0,_common.hasEnum)(schema)){return transformNullForEnum(schema,rootSchema,values,params);}else{if((0,_common.hasAnyOf)(schema)){return transformNullForAnyOf(schema,rootSchema,values,params);}else{if((0,_common.hasOneOf)(schema)){return transformNullForOneOf(schema,rootSchema,values,params);}else{if((0,_common.hasAllOf)(schema)){return transformNullForAllOf(schema,rootSchema,values,params);}}}}return renderNull(schema,values,getRenderParams(schema,rootSchema,values,params));}function transformBoolean(schema,rootSchema,values,params){if((0,_common.hasEnum)(schema)){return transformBooleanForEnum(schema,rootSchema,values,params);}else{if((0,_common.hasAnyOf)(schema)){return transformBooleanForAnyOf(schema,rootSchema,values,params);}else{if((0,_common.hasOneOf)(schema)){return transformBooleanForOneOf(schema,rootSchema,values,params);}else{if((0,_common.hasAllOf)(schema)){return transformBooleanForAllOf(schema,rootSchema,values,params);}}}}return renderBoolean(schema,values,getRenderParams(schema,rootSchema,values,params));}function transformObject(schema,rootSchema,values,params){if((0,_common.hasEnum)(schema)){return transformObjectForEnum(schema,rootSchema,values,params);}else{if((0,_common.hasAnyOf)(schema)){return transformObjectForAnyOf(schema,rootSchema,values,params);}else{if((0,_common.hasOneOf)(schema)){return transformObjectForOneOf(schema,rootSchema,values,params);}else{if((0,_common.hasAllOf)(schema)){return transformObjectForAllOf(schema,rootSchema,values,params);}}}}var _schema$properties3=schema.properties,properties=_schema$properties3===void 0?{}:_schema$properties3,_schema$required3=schema.required,required=_schema$required3===void 0?[]:_schema$required3;var _params$uri52=params.uri,uri=_params$uri52===void 0?'#/':_params$uri52;var fields=Object.entries(properties).map(mapTransformByKey(rootSchema,values,_objectSpread(_objectSpread({},params),{},{parentUri:uri,required:required})));return renderObject(schema,values,getRenderParams(schema,rootSchema,values,Object.assign(params,{fields:fields})));}function transformArray(schema,rootSchema,values,params){if((0,_common.hasEnum)(schema)){return transformArrayForEnum(schema,rootSchema,values,params);}else{if((0,_common.hasAnyOf)(schema)){return transformArrayForAnyOf(schema,rootSchema,values,params);}else{if((0,_common.hasOneOf)(schema)){return transformArrayForOneOf(schema,rootSchema,values,params);}else{if((0,_common.hasAllOf)(schema)){return transformArrayForAllOf(schema,rootSchema,values,params);}}}}var _schema$items3=schema.items,items=_schema$items3===void 0?[]:_schema$items3;if((0,_common.isArray)(items)){var _params$uri53=params.uri,uri=_params$uri53===void 0?'#/':_params$uri53;var fields=items.map(mapTransformByIndex(rootSchema,values,_objectSpread(_objectSpread({},params),{},{parentUri:uri})));return renderArray(schema,values,getRenderParams(schema,rootSchema,values,Object.assign(params,{fields:fields})));}else{if((0,_common.isObject)(items)){var _params$uri54=params.uri,_uri5=_params$uri54===void 0?'#/':_params$uri54;var _fields4=[getTransformByIndex(items,rootSchema,values,_objectSpread(_objectSpread({},params),{},{parentUri:_uri5}))];return renderArray(schema,values,getRenderParams(schema,rootSchema,values,Object.assign(params,{fields:_fields4})));}}}function transformNumber(schema,rootSchema,values,params){if((0,_common.hasEnum)(schema)){return transformNumberForEnum(schema,rootSchema,values,params);}else{if((0,_common.hasAnyOf)(schema)){return transformNumberForAnyOf(schema,rootSchema,values,params);}else{if((0,_common.hasOneOf)(schema)){return transformNumberForOneOf(schema,rootSchema,values,params);}else{if((0,_common.hasAllOf)(schema)){return transformNumberForAllOf(schema,rootSchema,values,params);}}}}return renderNumber(schema,values,getRenderParams(schema,rootSchema,values,params));}function transformString(schema,rootSchema,values,params){if((0,_common.hasEnum)(schema)){return transformStringForEnum(schema,rootSchema,values,params);}else{if((0,_common.hasAnyOf)(schema)){return transformStringForAnyOf(schema,rootSchema,values,params);}else{if((0,_common.hasOneOf)(schema)){return transformStringForOneOf(schema,rootSchema,values,params);}else{if((0,_common.hasAllOf)(schema)){return transformStringForAllOf(schema,rootSchema,values,params);}}}}return renderString(schema,values,getRenderParams(schema,rootSchema,values,params));}function getParamsByKeyForEnum(schema,rootSchema,values,_ref19){var _ref19$parentUri=_ref19.parentUri,parentUri=_ref19$parentUri===void 0?'#':_ref19$parentUri,_ref19$key=_ref19.key,key=_ref19$key===void 0?'':_ref19$key,_ref19$isRequired=_ref19.isRequired,isRequired=_ref19$isRequired===void 0?false:_ref19$isRequired,params=_objectWithoutProperties(_ref19,_excluded65);var uri=(0,_common.getUri)(parentUri,key);var _getMetaProps85=(0,_common.getMetaProps)(params,uri),_getMetaProps85$selec=_getMetaProps85.selectedItems,selectedItems=_getMetaProps85$selec===void 0?(0,_common.getSelectedItems)(values,uri):_getMetaProps85$selec;var meta=Object.assign((0,_common.getMetaProps)(params,uri),{schema:schema,rootSchema:rootSchema,parentUri:(0,_common.normaliseUri)(parentUri),uri:uri,selectedItems:selectedItems,isRequired:isRequired});var elements={"enum":Object.assign((0,_common.getElementsFieldPropsForEnum)(params,uri),{selectedItems:selectedItems,isRequired:isRequired})};return Object.assign(params,_defineProperty({parentUri:parentUri,uri:uri,key:key},uri,{meta:meta,elements:elements}));}function getParamsByKeyForAnyOf(schema,rootSchema,values,_ref20){var _ref20$parentUri=_ref20.parentUri,parentUri=_ref20$parentUri===void 0?'#':_ref20$parentUri,_ref20$key=_ref20.key,key=_ref20$key===void 0?'':_ref20$key,_ref20$isRequired=_ref20.isRequired,isRequired=_ref20$isRequired===void 0?false:_ref20$isRequired,params=_objectWithoutProperties(_ref20,_excluded66);var uri=(0,_common.getUri)(parentUri,key);var _getMetaProps86=(0,_common.getMetaProps)(params,uri),_getMetaProps86$selec=_getMetaProps86.selectedItems,selectedItems=_getMetaProps86$selec===void 0?(0,_common.getSelectedItems)(values,uri):_getMetaProps86$selec;var meta=Object.assign((0,_common.getMetaProps)(params,uri),{schema:schema,rootSchema:rootSchema,parentUri:(0,_common.normaliseUri)(parentUri),uri:uri,selectedItems:selectedItems,isRequired:isRequired});var elements={anyOf:Object.assign((0,_common.getElementsFieldPropsForAnyOf)(params,uri),{selectedItems:selectedItems,isRequired:isRequired})};return Object.assign(params,_defineProperty({parentUri:parentUri,uri:uri,key:key},uri,{meta:meta,elements:elements}));}function getParamsByKeyForOneOf(schema,rootSchema,values,_ref21){var _ref21$parentUri=_ref21.parentUri,parentUri=_ref21$parentUri===void 0?'#':_ref21$parentUri,_ref21$key=_ref21.key,key=_ref21$key===void 0?'':_ref21$key,_ref21$isRequired=_ref21.isRequired,isRequired=_ref21$isRequired===void 0?false:_ref21$isRequired,params=_objectWithoutProperties(_ref21,_excluded67);var uri=(0,_common.getUri)(parentUri,key);var _getMetaProps87=(0,_common.getMetaProps)(params,uri),_getMetaProps87$selec=_getMetaProps87.selectedItems,selectedItems=_getMetaProps87$selec===void 0?(0,_common.getSelectedItems)(values,uri):_getMetaProps87$selec;var meta=Object.assign((0,_common.getMetaProps)(params,uri),{schema:schema,rootSchema:rootSchema,parentUri:(0,_common.normaliseUri)(parentUri),uri:uri,selectedItems:selectedItems,isRequired:isRequired});var elements={oneOf:Object.assign((0,_common.getElementsFieldPropsForOneOf)(params,uri),{selectedItems:selectedItems,isRequired:isRequired})};return Object.assign(params,_defineProperty({parentUri:parentUri,uri:uri,key:key},uri,{meta:meta,elements:elements}));}function getParamsByKey(schema,rootSchema,values,_ref22){var _ref22$parentUri=_ref22.parentUri,parentUri=_ref22$parentUri===void 0?'#':_ref22$parentUri,_ref22$key=_ref22.key,key=_ref22$key===void 0?'':_ref22$key,_ref22$isRequired=_ref22.isRequired,isRequired=_ref22$isRequired===void 0?false:_ref22$isRequired,params=_objectWithoutProperties(_ref22,_excluded68);var uri=(0,_common.getUri)(parentUri,key);var meta=Object.assign((0,_common.getMetaProps)(params,uri),{schema:schema,rootSchema:rootSchema,parentUri:(0,_common.normaliseUri)(parentUri),uri:uri,isRequired:isRequired});var elements={field:Object.assign((0,_common.getElementsFieldPropsForAllOf)(params,uri),{isRequired:isRequired})};return Object.assign(params,_defineProperty({parentUri:parentUri,uri:uri,key:key},uri,{meta:meta,elements:elements}));}function getParamsByIndexForEnum(schema,rootSchema,values,_ref23){var _ref23$parentUri=_ref23.parentUri,parentUri=_ref23$parentUri===void 0?'#':_ref23$parentUri,_ref23$index=_ref23.index,index=_ref23$index===void 0?0:_ref23$index,params=_objectWithoutProperties(_ref23,_excluded69);var uri=(0,_common.getUri)(parentUri,index);var _getMetaProps88=(0,_common.getMetaProps)(params,uri),_getMetaProps88$selec=_getMetaProps88.selectedItems,selectedItems=_getMetaProps88$selec===void 0?(0,_common.getSelectedItems)(values,parentUri):_getMetaProps88$selec,metaProps=_objectWithoutProperties(_getMetaProps88,_excluded70);var meta=Object.assign(metaProps,{schema:schema,rootSchema:rootSchema,parentUri:(0,_common.normaliseUri)(parentUri),uri:uri,selectedItems:selectedItems});var elements={"enum":Object.assign((0,_common.getElementsFieldPropsForEnum)(params,uri),{selectedItems:selectedItems})};return Object.assign(params,_defineProperty({parentUri:parentUri,uri:uri,index:index},uri,{meta:meta,elements:elements}));}function getParamsByIndexForAnyOf(schema,rootSchema,values,_ref24){var _ref24$parentUri=_ref24.parentUri,parentUri=_ref24$parentUri===void 0?'#':_ref24$parentUri,_ref24$index=_ref24.index,index=_ref24$index===void 0?0:_ref24$index,params=_objectWithoutProperties(_ref24,_excluded71);var uri=(0,_common.getUri)(parentUri,index);var _getMetaProps89=(0,_common.getMetaProps)(params,uri),_getMetaProps89$selec=_getMetaProps89.selectedItems,selectedItems=_getMetaProps89$selec===void 0?(0,_common.getSelectedItems)(values,parentUri):_getMetaProps89$selec,metaProps=_objectWithoutProperties(_getMetaProps89,_excluded72);var meta=Object.assign(metaProps,{schema:schema,rootSchema:rootSchema,parentUri:(0,_common.normaliseUri)(parentUri),uri:uri,selectedItems:selectedItems});var elements={anyOf:Object.assign((0,_common.getElementsFieldPropsForAnyOf)(params,uri),{selectedItems:selectedItems})};return Object.assign(params,_defineProperty({parentUri:parentUri,uri:uri,index:index},uri,{meta:meta,elements:elements}));}function getParamsByIndexForOneOf(schema,rootSchema,values,_ref25){var _ref25$parentUri=_ref25.parentUri,parentUri=_ref25$parentUri===void 0?'#':_ref25$parentUri,_ref25$index=_ref25.index,index=_ref25$index===void 0?0:_ref25$index,params=_objectWithoutProperties(_ref25,_excluded73);var uri=(0,_common.getUri)(parentUri,index);var _getMetaProps90=(0,_common.getMetaProps)(params,uri),_getMetaProps90$selec=_getMetaProps90.selectedItems,selectedItems=_getMetaProps90$selec===void 0?(0,_common.getSelectedItems)(values,parentUri):_getMetaProps90$selec,metaProps=_objectWithoutProperties(_getMetaProps90,_excluded74);var meta=Object.assign(metaProps,{schema:schema,rootSchema:rootSchema,parentUri:(0,_common.normaliseUri)(parentUri),uri:uri,selectedItems:selectedItems});var elements={oneOf:Object.assign((0,_common.getElementsFieldPropsForOneOf)(params,uri),{selectedItems:selectedItems})};return Object.assign(params,_defineProperty({parentUri:parentUri,uri:uri,index:index},uri,{meta:meta,elements:elements}));}function getParamsByIndex(schema,rootSchema,values,_ref26){var _ref26$parentUri=_ref26.parentUri,parentUri=_ref26$parentUri===void 0?'#':_ref26$parentUri,_ref26$index=_ref26.index,index=_ref26$index===void 0?0:_ref26$index,params=_objectWithoutProperties(_ref26,_excluded75);var uri=(0,_common.getUri)(parentUri,index);var meta=Object.assign((0,_common.getMetaProps)(params,uri),{schema:schema,rootSchema:rootSchema,parentUri:(0,_common.normaliseUri)(parentUri),uri:uri});return Object.assign(params,_defineProperty({parentUri:parentUri,uri:uri,index:index},uri,{meta:meta,elements:(0,_common.getElementsProps)(params,uri)}));}function transformByKeyForEnum(schema,rootSchema,values,params){var type=schema.type;switch(type){case'null':return transformNullByKeyForEnum(schema,rootSchema,values,getParamsByKeyForEnum(schema,rootSchema,values,params));case'boolean':return transformBooleanByKeyForEnum(schema,rootSchema,values,getParamsByKeyForEnum(schema,rootSchema,values,params));case'object':return transformObjectByKeyForEnum(schema,rootSchema,values,getParamsByKeyForEnum(schema,rootSchema,values,params));case'array':return transformArrayByKeyForEnum(schema,rootSchema,values,getParamsByKeyForEnum(schema,rootSchema,values,params));case'number':return transformNumberByKeyForEnum(schema,rootSchema,values,getParamsByKeyForEnum(schema,rootSchema,values,params));case'string':return transformStringByKeyForEnum(schema,rootSchema,values,getParamsByKeyForEnum(schema,rootSchema,values,params));default:throw new Error('Schema does not conform to Instance Data Model, https://json-schema.org/draft/2019-09/json-schema-core.html#rfc.section.4.2.1');}}function transformByKeyForAnyOf(schema,rootSchema,values,params){var type=schema.type;switch(type){case'null':return transformNullByKeyForAnyOf(schema,rootSchema,values,getParamsByKeyForAnyOf(schema,rootSchema,values,params));case'boolean':return transformBooleanByKeyForAnyOf(schema,rootSchema,values,getParamsByKeyForAnyOf(schema,rootSchema,values,params));case'object':return transformObjectByKeyForAnyOf(schema,rootSchema,values,getParamsByKeyForAnyOf(schema,rootSchema,values,params));case'array':return transformArrayByKeyForAnyOf(schema,rootSchema,values,getParamsByKeyForAnyOf(schema,rootSchema,values,params));case'number':return transformNumberByKeyForAnyOf(schema,rootSchema,values,getParamsByKeyForAnyOf(schema,rootSchema,values,params));case'string':return transformStringByKeyForAnyOf(schema,rootSchema,values,getParamsByKeyForAnyOf(schema,rootSchema,values,params));default:throw new Error('Schema does not conform to Instance Data Model, https://json-schema.org/draft/2019-09/json-schema-core.html#rfc.section.4.2.1');}}function transformByKeyForOneOf(schema,rootSchema,values,params){var type=schema.type;switch(type){case'null':return transformNullByKeyForOneOf(schema,rootSchema,values,getParamsByKeyForOneOf(schema,rootSchema,values,params));case'boolean':return transformBooleanByKeyForOneOf(schema,rootSchema,values,getParamsByKeyForOneOf(schema,rootSchema,values,params));case'object':return transformObjectByKeyForOneOf(schema,rootSchema,values,getParamsByKeyForOneOf(schema,rootSchema,values,params));case'array':return transformArrayByKeyForOneOf(schema,rootSchema,values,getParamsByKeyForOneOf(schema,rootSchema,values,params));case'number':return transformNumberByKeyForOneOf(schema,rootSchema,values,getParamsByKeyForOneOf(schema,rootSchema,values,params));case'string':return transformStringByKeyForOneOf(schema,rootSchema,values,getParamsByKeyForOneOf(schema,rootSchema,values,params));default:throw new Error('Schema does not conform to Instance Data Model, https://json-schema.org/draft/2019-09/json-schema-core.html#rfc.section.4.2.1');}}function transformByIndexForEnum(schema,rootSchema,values,params){var type=schema.type;switch(type){case'null':return transformNullByIndexForEnum(schema,rootSchema,values,getParamsByIndexForEnum(schema,rootSchema,values,params));case'boolean':return transformBooleanByIndexForEnum(schema,rootSchema,values,getParamsByIndexForEnum(schema,rootSchema,values,params));case'object':return transformObjectByIndexForEnum(schema,rootSchema,values,getParamsByIndexForEnum(schema,rootSchema,values,params));case'array':return transformArrayByIndexForEnum(schema,rootSchema,values,getParamsByIndexForEnum(schema,rootSchema,values,params));case'number':return transformNumberByIndexForEnum(schema,rootSchema,values,getParamsByIndexForEnum(schema,rootSchema,values,params));case'string':return transformStringByIndexForEnum(schema,rootSchema,values,getParamsByIndexForEnum(schema,rootSchema,values,params));default:throw new Error('Schema does not conform to Instance Data Model, https://json-schema.org/draft/2019-09/json-schema-core.html#rfc.section.4.2.1');}}function transformByIndexForAnyOf(schema,rootSchema,values,params){var type=schema.type;switch(type){case'null':return transformNullByIndexForAnyOf(schema,rootSchema,values,getParamsByIndexForAnyOf(schema,rootSchema,values,params));case'boolean':return transformBooleanByIndexForAnyOf(schema,rootSchema,values,getParamsByIndexForAnyOf(schema,rootSchema,values,params));case'object':return transformObjectByIndexForAnyOf(schema,rootSchema,values,getParamsByIndexForAnyOf(schema,rootSchema,values,params));case'array':return transformArrayByIndexForAnyOf(schema,rootSchema,values,getParamsByIndexForAnyOf(schema,rootSchema,values,params));case'number':return transformNumberByIndexForAnyOf(schema,rootSchema,values,getParamsByIndexForAnyOf(schema,rootSchema,values,params));case'string':return transformStringByIndexForAnyOf(schema,rootSchema,values,getParamsByIndexForAnyOf(schema,rootSchema,values,params));default:throw new Error('Schema does not conform to Instance Data Model, https://json-schema.org/draft/2019-09/json-schema-core.html#rfc.section.4.2.1');}}function transformByIndexForOneOf(schema,rootSchema,values,params){var type=schema.type;switch(type){case'null':return transformNullByIndexForOneOf(schema,rootSchema,values,getParamsByIndexForOneOf(schema,rootSchema,values,params));case'boolean':return transformBooleanByIndexForOneOf(schema,rootSchema,values,getParamsByIndexForOneOf(schema,rootSchema,values,params));case'object':return transformObjectByIndexForOneOf(schema,rootSchema,values,getParamsByIndexForOneOf(schema,rootSchema,values,params));case'array':return transformArrayByIndexForOneOf(schema,rootSchema,values,getParamsByIndexForOneOf(schema,rootSchema,values,params));case'number':return transformNumberByIndexForOneOf(schema,rootSchema,values,getParamsByIndexForOneOf(schema,rootSchema,values,params));case'string':return transformStringByIndexForOneOf(schema,rootSchema,values,getParamsByIndexForOneOf(schema,rootSchema,values,params));default:throw new Error('Schema does not conform to Instance Data Model, https://json-schema.org/draft/2019-09/json-schema-core.html#rfc.section.4.2.1');}}function transformByKey(){var schema=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var rootSchema=arguments.length>1&&arguments[1]!==undefined?arguments[1]:schema;var values=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var params=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};var type=schema.type;switch(type){case'null':return transformNullByKey(schema,rootSchema,values,params);case'boolean':return transformBooleanByKey(schema,rootSchema,values,params);case'object':return transformObjectByKey(schema,rootSchema,values,params);case'array':return transformArrayByKey(schema,rootSchema,values,params);case'number':return transformNumberByKey(schema,rootSchema,values,params);case'string':return transformStringByKey(schema,rootSchema,values,params);default:throw new Error('Schema does not conform to Instance Data Model, https://json-schema.org/draft/2019-09/json-schema-core.html#rfc.section.4.2.1');}}function transformByIndex(){var schema=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var rootSchema=arguments.length>1&&arguments[1]!==undefined?arguments[1]:schema;var values=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var params=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};var type=schema.type;switch(type){case'null':return transformNullByIndex(schema,rootSchema,values,params);case'boolean':return transformBooleanByIndex(schema,rootSchema,values,params);case'object':return transformObjectByIndex(schema,rootSchema,values,params);case'array':return transformArrayByIndex(schema,rootSchema,values,params);case'number':return transformNumberByIndex(schema,rootSchema,values,params);case'string':return transformStringByIndex(schema,rootSchema,values,params);default:throw new Error('Schema does not conform to Instance Data Model, https://json-schema.org/draft/2019-09/json-schema-core.html#rfc.section.4.2.1');}}function toZashiki(){var schema=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var rootSchema=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var values=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var params=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};log('toZashiki');var type=schema.type;switch(type){case'null':return transformNull(schema,rootSchema,values,params);case'boolean':return transformBoolean(schema,rootSchema,values,params);case'object':return transformObject(schema,rootSchema,values,params);case'array':return transformArray(schema,rootSchema,values,params);case'number':return transformNumber(schema,rootSchema,values,params);case'string':return transformString(schema,rootSchema,values,params);default:throw new Error('Schema does not conform to Instance Data Model, https://json-schema.org/draft/2019-09/json-schema-core.html#rfc.section.4.2.1');}}
package/src/index.js DELETED
@@ -1,4 +0,0 @@
1
- export * as common from './transmission/common'
2
- export fromDocumentToHash from './transmission/from-document-to-hash'
3
- export fromHashToDocument from './transmission/from-hash-to-document'
4
- export toZashiki from './transmission/to-zashiki'
@@ -1,4 +0,0 @@
1
- export * as common from './common'
2
- export fromDocumentToHash from './from-document-to-hash'
3
- export fromHashToDocument from './from-hash-to-document'
4
- export toZashiki from './to-zashiki'
@@ -1 +0,0 @@
1
- export default from './transform-root-schema'