@rjsf/utils
Advanced tools
Comparing version 5.6.0 to 5.6.2
@@ -1,2 +0,2 @@ | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("lodash/isPlainObject"),r=require("lodash/isEqualWith"),t=require("lodash/get"),n=require("lodash/isEmpty"),i=require("jsonpointer"),o=require("lodash/omit"),a=require("lodash/has"),u=require("lodash/isObject"),s=require("lodash/isString"),f=require("lodash/reduce"),d=require("lodash/times"),l=require("lodash/set"),c=require("json-schema-merge-allof"),p=require("lodash/union"),v=require("lodash/isEqual"),m=require("lodash/cloneDeep"),y=require("react/jsx-runtime"),h=require("react"),g=require("react-is"),b=require("lodash/toPath");function O(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var x=O(e),A=O(r),S=O(t),E=O(n),_=O(i),I=O(o),w=O(a),j=O(u),T=O(s),P=O(f),W=O(d),D=O(l),N=O(c),F=O(p),U=O(v),C=O(m),R=O(g),k=O(b);function q(e){return!("undefined"!=typeof File&&e instanceof File||"undefined"!=typeof Date&&e instanceof Date||"object"!=typeof e||null===e||Array.isArray(e))}function $(){return $=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},$.apply(this,arguments)}function L(e){if(null==e)throw new TypeError("Cannot destructure "+e)}function M(e,r){if(null==e)return{};var t,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r.indexOf(t=o[n])>=0||(i[t]=e[t]);return i}function Y(e,r){return void 0===e&&(e={}),void 0===r&&(r={}),Object.keys(e).filter((function(e){return 0===e.indexOf("ui:")})).reduce((function(r,t){var n,i=e[t];return"ui:widget"===t&&q(i)?(console.error("Setting options via ui:widget object is no longer supported, use ui:options instead"),r):"ui:options"===t&&q(i)?$({},r,i):$({},r,((n={})[t.substring(3)]=i,n))}),$({},r))}function K(e,r){return A.default(e,r,(function(e,r){if("function"==typeof e&&"function"==typeof r)return!0}))}function B(e,r){var t=r[e];return[I.default(r,[e]),t]}function V(e,r){void 0===r&&(r={});var t=e||"";if(!t.startsWith("#"))throw new Error("Could not find a definition for "+e+".");t=decodeURIComponent(t.substring(1));var n=_.default.get(r,t);if(void 0===n)throw new Error("Could not find a definition for "+e+".");if(n.$ref){var i=B("$ref",n),o=i[0],a=V(i[1],r);return Object.keys(o).length>0?$({},o,a):a}return n}function H(e,r,t,n,i){if(void 0===r)return 0;for(var o=0;o<t.length;o++){var a=t[o];if(i&&w.default(a,["properties",i])){var u=S.default(r,i),s=S.default(a,["properties",i],{});if(e.isValid(s,u,n))return o}else if(a.properties){var f={anyOf:Object.keys(a.properties).map((function(e){return{required:[e]}}))},d=void 0;if(a.anyOf){var l=$({},(L(a),a));l.allOf=l.allOf?l.allOf.slice():[],l.allOf.push(f),d=l}else d=Object.assign({},a,f);if(delete d.required,e.isValid(d,r,n))return o}else if(e.isValid(a,r,n))return o}return 0}function G(e,r,t,n,i){return H(e,r,t,n,i)}function z(e){return Array.isArray(e)?"array":"string"==typeof e?"string":null==e?"null":"boolean"==typeof e?"boolean":isNaN(e)?"object"==typeof e?"object":"string":"number"}function J(e){var r=e.type;return!r&&e.const?z(e.const):!r&&e.enum?"string":r||!e.properties&&!e.additionalProperties?(Array.isArray(r)&&2===r.length&&r.includes("null")&&(r=r.find((function(e){return"null"!==e}))),r):"object"}function Q(e,r){var t=Object.assign({},e);return Object.keys(r).reduce((function(t,n){var i=e?e[n]:{},o=r[n];return t[n]=e&&n in e&&q(o)?Q(i,o):e&&r&&("object"===J(e)||"object"===J(r))&&"required"===n&&Array.isArray(i)&&Array.isArray(o)?F.default(i,o):o,t}),t)}var X=["if","then","else"],Z=["$ref"],ee=["allOf"],re=["dependencies"],te=["oneOf"];function ne(e,r,t,n){return ie(e,$({},V(r.$ref,t),M(r,Z)),t,n)}function ie(e,r,t,n){if(void 0===t&&(t={}),!q(r))return{};var i=function(e,r,t,n){if(void 0===t&&(t={}),"$ref"in r)return ne(e,r,t,n);if("dependencies"in r){var i=oe(e,r,t,n);return ie(e,i,t,n)}return"allOf"in r?$({},r,{allOf:r.allOf.map((function(r){return ie(e,r,t,n)}))}):r}(e,r,t,n);if("if"in r)return function(e,r,t,n){var i=r.if,o=r.then,a=r.else,u=M(r,X),s=e.isValid(i,n,t)?o:a;return ie(e,s&&"boolean"!=typeof s?Q(u,ie(e,s,t,n)):u,t,n)}(e,r,t,n);var o=n||{};if("allOf"in r)try{i=N.default(i,{deep:!1})}catch(e){return console.warn("could not merge subschemas in allOf:\n",e),M(i,ee)}return"additionalProperties"in i&&!1!==i.additionalProperties?function(e,r,t,n){var i=$({},r,{properties:$({},r.properties)}),o=n&&q(n)?n:{};return Object.keys(o).forEach((function(r){var n;r in i.properties||(n="boolean"!=typeof i.additionalProperties?"$ref"in i.additionalProperties?ie(e,{$ref:S.default(i.additionalProperties,["$ref"])},t,o):"type"in i.additionalProperties?$({},i.additionalProperties):"anyOf"in i.additionalProperties||"oneOf"in i.additionalProperties?$({type:"object"},i.additionalProperties):{type:z(S.default(o,[r]))}:{type:z(S.default(o,[r]))},i.properties[r]=n,D.default(i.properties,[r,"__additional_property"],!0))})),i}(e,i,t,o):i}function oe(e,r,t,n){var i=r.dependencies,o=M(r,re);return Array.isArray(o.oneOf)?o=o.oneOf[G(e,n,o.oneOf,t)]:Array.isArray(o.anyOf)&&(o=o.anyOf[G(e,n,o.anyOf,t)]),ae(e,i,o,t,n)}function ae(e,r,t,n,i){var o=t;for(var a in r)if(void 0!==S.default(i,[a])&&(!o.properties||a in o.properties)){var u=B(a,r),s=u[0],f=u[1];return Array.isArray(f)?o=ue(o,f):q(f)&&(o=se(e,o,n,a,f,i)),ae(e,s,o,n,i)}return o}function ue(e,r){return r?$({},e,{required:Array.isArray(e.required)?Array.from(new Set([].concat(e.required,r))):r}):e}function se(e,r,t,n,i,o){var a=ie(e,i,t,o),u=a.oneOf;if(r=Q(r,M(a,te)),void 0===u)return r;var s=u.map((function(r){return"boolean"!=typeof r&&"$ref"in r?ne(e,r,t,o):r}));return function(e,r,t,n,i,o){var a=i.filter((function(r){if("boolean"==typeof r||!r||!r.properties)return!1;var i=r.properties[n];if(i){var a,u={type:"object",properties:(a={},a[n]=i,a)};return e.isValid(u,o,t)}return!1}));if(1!==a.length)return console.warn("ignoring oneOf in dependencies because there isn't exactly one subschema that is valid"),r;var u=a[0],s=$({},u,{properties:B(n,u.properties)[0]});return Q(r,ie(e,s,t,o))}(e,r,t,n,s,o)}var fe,de={type:"object",properties:{__not_really_there__:{type:"number"}}};function le(e,r,t,n){void 0===n&&(n={});var i=0;return t&&(j.default(t.properties)?i+=P.default(t.properties,(function(t,i,o){var a=S.default(n,o);if("boolean"==typeof i)return t;if(w.default(i,"$ref")){var u=ie(e,i,r,a);return t+le(e,r,u,a||{})}if(w.default(i,"oneOf")&&a)return t+ce(e,r,a,S.default(i,"oneOf"));if("object"===i.type)return t+le(e,r,i,a||{});if(i.type===z(a)){var s=t+1;return i.default?s+=a===i.default?1:-1:i.const&&(s+=a===i.const?1:-1),s}return t}),0):T.default(t.type)&&t.type===z(n)&&(i+=1)),i}function ce(e,r,t,n,i,o){void 0===i&&(i=-1);var a=n.reduce((function(n,i,a){return 1===G(e,t,[de,i],r,o)&&n.push(a),n}),[]);return 1===a.length?a[0]:(a.length||W.default(n.length,(function(e){return a.push(e)})),a.reduce((function(i,o){var a=i.bestScore,u=n[o];w.default(u,"$ref")&&(u=ie(e,u,r,t));var s=le(e,r,u,t);return s>a?{bestIndex:o,bestScore:s}:i}),{bestIndex:i,bestScore:0}).bestIndex)}function pe(e){return Array.isArray(e.items)&&e.items.length>0&&e.items.every((function(e){return q(e)}))}function ve(e,r){if(Array.isArray(r)){var t=Array.isArray(e)?e:[];return r.map((function(e,r){return t[r]?ve(t[r],e):e}))}if(q(r)){var n=Object.assign({},e);return Object.keys(r).reduce((function(t,n){return t[n]=ve(e?S.default(e,n):{},S.default(r,n)),t}),n)}return r}function me(e,r,t){return void 0===t&&(t=!1),Object.keys(r).reduce((function(n,i){var o=e?e[i]:{},a=r[i];if(e&&i in e&&q(a))n[i]=me(o,a,t);else if(t&&Array.isArray(o)&&Array.isArray(a)){var u=a;"preventDuplicates"===t&&(u=a.reduce((function(e,r){return o.includes(r)||e.push(r),e}),[])),n[i]=o.concat(u)}else n[i]=a;return n}),Object.assign({},e))}function ye(e){return Array.isArray(e.enum)&&1===e.enum.length||"const"in e}function he(e,r,t){void 0===t&&(t={});var n=ie(e,r,t,void 0),i=n.oneOf||n.anyOf;return!!Array.isArray(n.enum)||!!Array.isArray(i)&&i.every((function(e){return"boolean"!=typeof e&&ye(e)}))}function ge(e,r,t){return!(!r.uniqueItems||!r.items||"boolean"==typeof r.items)&&he(e,r.items,t)}function be(e,r,t){if(void 0===r&&(r=fe.Ignore),void 0===t&&(t=-1),t>=0){if(Array.isArray(e.items)&&t<e.items.length){var n=e.items[t];if("boolean"!=typeof n)return n}}else if(e.items&&!Array.isArray(e.items)&&"boolean"!=typeof e.items)return e.items;return r!==fe.Ignore&&q(e.additionalItems)?e.additionalItems:{}}function Oe(e,r,t,n,i){void 0===i&&(i=[]),n?e[r]=t:q(t)?E.default(t)&&!i.includes(r)||(e[r]=t):void 0!==t&&(e[r]=t)}function xe(e,r,t,n,i,o,a){void 0===n&&(n={}),void 0===o&&(o=!1),void 0===a&&(a=[]);var u=q(i)?i:{},s=q(r)?r:{},f=t;if(q(f)&&q(s.default))f=me(f,s.default);else if("default"in s)f=s.default;else if("$ref"in s){var d=s.$ref;if(!a.includes(d)){var l=V(d,n);return xe(e,l,f,n,u,o,a.concat(d))}}else{if("dependencies"in s){var c=oe(e,s,n,u);return xe(e,c,f,n,u,o,a)}if(pe(s))f=s.items.map((function(r,i){return xe(e,r,Array.isArray(t)?t[i]:void 0,n,u,o,a)}));else if("oneOf"in s){if(0===s.oneOf.length)return;s=s.oneOf[ce(e,n,E.default(u)?void 0:u,s.oneOf,0)]}else if("anyOf"in s){if(0===s.anyOf.length)return;s=s.anyOf[ce(e,n,E.default(u)?void 0:u,s.anyOf,0)]}}switch(void 0===f&&(f=s.default),J(s)){case"object":var p=Object.keys(s.properties||{}).reduce((function(r,t){return Oe(r,t,xe(e,S.default(s,["properties",t]),S.default(f,[t]),n,S.default(u,[t]),!0===o,a),o,s.required),r}),{});if(s.additionalProperties){var v=q(s.additionalProperties)?s.additionalProperties:{},m=new Set;q(f)&&Object.keys(f).filter((function(e){return!s.properties||!s.properties[e]})).forEach((function(e){return m.add(e)})),q(u)&&Object.keys(u).filter((function(e){return!s.properties||!s.properties[e]})).forEach((function(e){return m.add(e)})),m.forEach((function(r){var t=xe(e,v,S.default(f,[r]),n,S.default(u,[r]),!0===o,a);Oe(p,r,t,o)}))}return p;case"array":if(Array.isArray(f)&&(f=f.map((function(r,t){var i=be(s,fe.Fallback,t);return xe(e,i,r,n,void 0,void 0,a)}))),Array.isArray(i)){var y=be(s);f=i.map((function(r,t){return xe(e,y,S.default(f,[t]),n,r,void 0,a)}))}if(s.minItems){if(!ge(e,s,n)){var h=Array.isArray(f)?f.length:0;if(s.minItems>h){var g=f||[],b=be(s,fe.Invert),O=b.default,x=new Array(s.minItems-h).fill(xe(e,b,O,n,void 0,void 0,a));return g.concat(x)}}return f||[]}}return f}function Ae(e,r,t,n,i){if(void 0===i&&(i=!1),!q(r))throw new Error("Invalid schema: "+r);var o=xe(e,ie(e,r,n,t),void 0,n,t,i);return null==t||"number"==typeof t&&isNaN(t)?o:q(t)||Array.isArray(t)?ve(o,t):t}function Se(e){return void 0===e&&(e={}),"widget"in Y(e)&&"hidden"!==Y(e).widget}function Ee(e,r,t,n){if(void 0===t&&(t={}),"files"===t["ui:widget"])return!0;if(r.items){var i=ie(e,r.items,n);return"string"===i.type&&"data-url"===i.format}return!1}function _e(e,r,t,n,i){void 0===t&&(t={});var o=Y(t,i).label,a=!(void 0!==o&&!o),u=J(r);return"array"===u&&(a=ge(e,r,n)||Ee(e,r,t,n)||Se(t)),"object"===u&&(a=!1),"boolean"!==u||t["ui:widget"]||(a=!1),t["ui:field"]&&(a=!1),a}function Ie(e,r,t){if(!t)return r;var n=r.errors,i=r.errorSchema,o=e.toErrorList(t),a=t;return E.default(i)||(a=me(i,t,!0),o=[].concat(n).concat(o)),{errorSchema:a,errors:o}}!function(e){e[e.Ignore=0]="Ignore",e[e.Invert=1]="Invert",e[e.Fallback=2]="Fallback"}(fe||(fe={}));var we=Symbol("no Value");function je(e,r,t,n,i){var o;if(void 0===i&&(i={}),w.default(t,"properties")){var a={};if(w.default(n,"properties")){var u=S.default(n,"properties",{});Object.keys(u).forEach((function(e){w.default(i,e)&&(a[e]=void 0)}))}var s=Object.keys(S.default(t,"properties",{})),f={};s.forEach((function(o){var u=S.default(i,o),s=S.default(n,["properties",o],{}),d=S.default(t,["properties",o],{});w.default(s,"$ref")&&(s=ie(e,s,r,u)),w.default(d,"$ref")&&(d=ie(e,d,r,u));var l=S.default(s,"type"),c=S.default(d,"type");if(!l||l===c)if(w.default(a,o)&&delete a[o],"object"===c||"array"===c&&Array.isArray(u)){var p=je(e,r,d,s,u);void 0===p&&"array"!==c||(f[o]=p)}else{var v=S.default(d,"default",we),m=S.default(s,"default",we);v!==we&&v!==u&&(m===u?a[o]=v:!0===S.default(d,"readOnly")&&(a[o]=void 0));var y=S.default(d,"const",we),h=S.default(s,"const",we);y!==we&&y!==u&&(a[o]=h===u?y:void 0)}})),o=$({},i,a,f)}else if("array"===S.default(n,"type")&&"array"===S.default(t,"type")&&Array.isArray(i)){var d=S.default(n,"items"),l=S.default(t,"items");if("object"!=typeof d||"object"!=typeof l||Array.isArray(d)||Array.isArray(l))"boolean"==typeof d&&"boolean"==typeof l&&d===l&&(o=i);else{w.default(d,"$ref")&&(d=ie(e,d,r,i)),w.default(l,"$ref")&&(l=ie(e,l,r,i));var c=S.default(d,"type"),p=S.default(l,"type");if(!c||c===p){var v=S.default(t,"maxItems",-1);o="object"===p?i.reduce((function(t,n){var i=je(e,r,l,d,n);return void 0!==i&&(v<0||t.length<v)&&t.push(i),t}),[]):v>0&&i.length>v?i.slice(0,v):i}}}return o}function Te(e,r,t,n,i,o,a,u){if(void 0===u&&(u=[]),"$ref"in r||"dependencies"in r||"allOf"in r){var s=ie(e,r,o,a);if(-1===u.findIndex((function(e){return U.default(e,s)})))return Te(e,s,t,n,i,o,a,u.concat(s))}if("items"in r&&!S.default(r,["items","$ref"]))return Te(e,S.default(r,"items"),t,n,i,o,a,u);var f={$id:i||t};if("object"===J(r)&&"properties"in r)for(var d in r.properties){var l=S.default(r,["properties",d]),c=f.$id+n+d;f[d]=Te(e,q(l)?l:{},t,n,c,o,S.default(a,[d]),u)}return f}function Pe(e,r,t,n,i,o,a){return void 0===o&&(o="root"),void 0===a&&(a="_"),Te(e,r,o,a,t,n,i)}function We(e,r,t,n,i,o){var a;if(void 0===o&&(o=[]),"$ref"in r||"dependencies"in r||"allOf"in r){var u=ie(e,r,n,i);if(-1===o.findIndex((function(e){return U.default(e,u)})))return We(e,u,t,n,i,o.concat(u))}var s=((a={}).$name=t.replace(/^\./,""),a);if("oneOf"in r){var f=ce(e,n,i,r.oneOf,0);return We(e,r.oneOf[f],t,n,i,o)}if("anyOf"in r){var d=ce(e,n,i,r.anyOf,0);return We(e,r.anyOf[d],t,n,i,o)}if("additionalProperties"in r&&!1!==r.additionalProperties&&D.default(s,"__rjsf_additionalProperties",!0),"items"in r&&Array.isArray(i))i.forEach((function(i,a){s[a]=We(e,r.items,t+"."+a,n,i,o)}));else if("properties"in r)for(var l in r.properties){var c=S.default(r,["properties",l]);s[l]=We(e,c,t+"."+l,n,S.default(i,[l]),o)}return s}function De(e,r,t,n,i){return void 0===t&&(t=""),We(e,r,t,n,i)}var Ne=function(){function e(e,r){this.rootSchema=void 0,this.validator=void 0,this.rootSchema=r,this.validator=e}var r=e.prototype;return r.getValidator=function(){return this.validator},r.doesSchemaUtilsDiffer=function(e,r){return!(!e||!r||this.validator===e&&K(this.rootSchema,r))},r.getDefaultFormState=function(e,r,t){return void 0===t&&(t=!1),Ae(this.validator,e,r,this.rootSchema,t)},r.getDisplayLabel=function(e,r,t){return _e(this.validator,e,r,this.rootSchema,t)},r.getClosestMatchingOption=function(e,r,t,n){return ce(this.validator,this.rootSchema,e,r,t,n)},r.getFirstMatchingOption=function(e,r,t){return G(this.validator,e,r,this.rootSchema,t)},r.getMatchingOption=function(e,r,t){return H(this.validator,e,r,this.rootSchema,t)},r.isFilesArray=function(e,r){return Ee(this.validator,e,r,this.rootSchema)},r.isMultiSelect=function(e){return ge(this.validator,e,this.rootSchema)},r.isSelect=function(e){return he(this.validator,e,this.rootSchema)},r.mergeValidationData=function(e,r){return Ie(this.validator,e,r)},r.retrieveSchema=function(e,r){return ie(this.validator,e,this.rootSchema,r)},r.sanitizeDataForNewSchema=function(e,r,t){return je(this.validator,this.rootSchema,e,r,t)},r.toIdSchema=function(e,r,t,n,i){return void 0===n&&(n="root"),void 0===i&&(i="_"),Pe(this.validator,e,r,this.rootSchema,t,n,i)},r.toPathSchema=function(e,r,t){return De(this.validator,e,r,this.rootSchema,t)},e}();function Fe(e,r){var t=e;if(Array.isArray(r)){var n=t.split(/(%\d)/);r.forEach((function(e,r){var t=n.findIndex((function(e){return e==="%"+(r+1)}));t>=0&&(n[t]=e)})),t=n.join("")}return t}function Ue(e,r,t){if(void 0===r&&(r=[]),Array.isArray(e))return e.map((function(e){return Ue(e,r)})).filter((function(e){return e}));var n=""===e||null===e?-1:Number(e),i=r[n];return i?i.value:t}function Ce(e,r){return Array.isArray(r)?r.some((function(r){return U.default(r,e)})):U.default(r,e)}var Re=function(){function e(e){this.errorSchema={},this.resetAllErrors(e)}var r,t,n=e.prototype;return n.getOrCreateErrorBlock=function(e){var r=Array.isArray(e)&&e.length>0||"string"==typeof e?S.default(this.errorSchema,e):this.errorSchema;return!r&&e&&D.default(this.errorSchema,e,r={}),r},n.resetAllErrors=function(e){return this.errorSchema=e?C.default(e):{},this},n.addErrors=function(e,r){var t,n=this.getOrCreateErrorBlock(r),i=S.default(n,"__errors");return Array.isArray(i)||(n.__errors=i=[]),Array.isArray(e)?(t=i).push.apply(t,e):i.push(e),this},n.setErrors=function(e,r){var t=this.getOrCreateErrorBlock(r),n=Array.isArray(e)?[].concat(e):[e];return D.default(t,"__errors",n),this},n.clearErrors=function(e){var r=this.getOrCreateErrorBlock(e);return D.default(r,"__errors",[]),this},r=e,(t=[{key:"ErrorSchema",get:function(){return this.errorSchema}}])&&function(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,"symbol"==typeof(i=function(e,r){if("object"!=typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(n.key))?i:String(i),n)}var i}(r.prototype,t),Object.defineProperty(r,"prototype",{writable:!1}),e}();function ke(e){var r={};return e.multipleOf&&(r.step=e.multipleOf),(e.minimum||0===e.minimum)&&(r.min=e.minimum),(e.maximum||0===e.maximum)&&(r.max=e.maximum),r}var qe,$e={props:{disabled:!1},submitText:"Submit",norender:!1},Le=["options"],Me={boolean:{checkbox:"CheckboxWidget",radio:"RadioWidget",select:"SelectWidget",hidden:"HiddenWidget"},string:{text:"TextWidget",password:"PasswordWidget",email:"EmailWidget",hostname:"TextWidget",ipv4:"TextWidget",ipv6:"TextWidget",uri:"URLWidget","data-url":"FileWidget",radio:"RadioWidget",select:"SelectWidget",textarea:"TextareaWidget",hidden:"HiddenWidget",date:"DateWidget",datetime:"DateTimeWidget","date-time":"DateTimeWidget","alt-date":"AltDateWidget","alt-datetime":"AltDateTimeWidget",time:"TimeWidget",color:"ColorWidget",file:"FileWidget"},number:{text:"TextWidget",select:"SelectWidget",updown:"UpDownWidget",range:"RangeWidget",radio:"RadioWidget",hidden:"HiddenWidget"},integer:{text:"TextWidget",select:"SelectWidget",updown:"UpDownWidget",range:"RangeWidget",radio:"RadioWidget",hidden:"HiddenWidget"},array:{select:"SelectWidget",checkboxes:"CheckboxesWidget",files:"FileWidget",hidden:"HiddenWidget"}};function Ye(e,r,t){void 0===t&&(t={});var n=J(e);if("function"==typeof r||r&&R.default.isForwardRef(h.createElement(r))||R.default.isMemo(r))return function(e){var r=S.default(e,"MergedWidget");if(!r){var t=e.defaultProps&&e.defaultProps.options||{};D.default(e,"MergedWidget",r=function(r){var n=r.options,i=M(r,Le);return y.jsx(e,$({options:$({},t,n)},i))})}return r}(r);if("string"!=typeof r)throw new Error("Unsupported widget definition: "+typeof r);if(r in t)return Ye(e,t[r],t);if("string"==typeof n){if(!(n in Me))throw new Error("No widget for type '"+n+"'");if(r in Me[n])return Ye(e,t[Me[n][r]],t)}throw new Error("No widget '"+r+"' for type '"+n+"'")}function Ke(e,r){return(T.default(e)?e:e.$id)+"__"+r}function Be(e){return Ke(e,"description")}function Ve(e){return Ke(e,"error")}function He(e){return Ke(e,"examples")}function Ge(e){return Ke(e,"help")}function ze(e){if("enum"in e&&Array.isArray(e.enum)&&1===e.enum.length)return e.enum[0];if("const"in e)return e.const;throw new Error("schema cannot be inferred as a constant")}function Je(e,r){for(var t=String(e);t.length<r;)t="0"+t;return t}function Qe(e,r){if(void 0===r&&(r=[]),!e)return[];var t=[];return"__errors"in e&&(t=t.concat(e.__errors.map((function(e){var t="."+r.join(".");return{property:t,message:e,stack:t+" "+e}})))),Object.keys(e).reduce((function(t,n){if("__errors"!==n){var i=e[n];x.default(i)&&(t=t.concat(Qe(i,[].concat(r,[n]))))}return t}),t)}exports.TranslatableString=void 0,(qe=exports.TranslatableString||(exports.TranslatableString={})).ArrayItemTitle="Item",qe.MissingItems="Missing items definition",qe.YesLabel="Yes",qe.NoLabel="No",qe.CloseLabel="Close",qe.ErrorsLabel="Errors",qe.NewStringDefault="New Value",qe.AddButton="Add",qe.AddItemButton="Add Item",qe.CopyButton="Copy",qe.MoveDownButton="Move down",qe.MoveUpButton="Move up",qe.RemoveButton="Remove",qe.NowLabel="Now",qe.ClearLabel="Clear",qe.AriaDateLabel="Select a date",qe.PreviewLabel="Preview",qe.DecrementAriaLabel="Decrease value by 1",qe.IncrementAriaLabel="Increase value by 1",qe.UnknownFieldType="Unknown field type %1",qe.OptionPrefix="Option %1",qe.TitleOptionPrefix="%1 option %2",qe.KeyLabel="%1 Key",qe.InvalidObjectField='Invalid "%1" object field configuration: <em>%2</em>.',qe.UnsupportedField="Unsupported field schema.",qe.UnsupportedFieldWithId="Unsupported field schema for field <code>%1</code>.",qe.UnsupportedFieldWithReason="Unsupported field schema: <em>%1</em>.",qe.UnsupportedFieldWithIdAndReason="Unsupported field schema for field <code>%1</code>: <em>%2</em>.",qe.FilesInfo="<strong>%1</strong> (%2, %3 bytes)",exports.ADDITIONAL_PROPERTIES_KEY="additionalProperties",exports.ADDITIONAL_PROPERTY_FLAG="__additional_property",exports.ALL_OF_KEY="allOf",exports.ANY_OF_KEY="anyOf",exports.CONST_KEY="const",exports.DEFAULT_KEY="default",exports.DEFINITIONS_KEY="definitions",exports.DEPENDENCIES_KEY="dependencies",exports.ENUM_KEY="enum",exports.ERRORS_KEY="__errors",exports.ErrorSchemaBuilder=Re,exports.ID_KEY="$id",exports.ITEMS_KEY="items",exports.NAME_KEY="$name",exports.ONE_OF_KEY="oneOf",exports.PROPERTIES_KEY="properties",exports.REF_KEY="$ref",exports.REQUIRED_KEY="required",exports.RJSF_ADDITONAL_PROPERTIES_FLAG="__rjsf_additionalProperties",exports.ROOT_SCHEMA_PREFIX="__rjsf_rootSchema",exports.SUBMIT_BTN_OPTIONS_KEY="submitButtonOptions",exports.UI_FIELD_KEY="ui:field",exports.UI_GLOBAL_OPTIONS_KEY="ui:globalOptions",exports.UI_OPTIONS_KEY="ui:options",exports.UI_WIDGET_KEY="ui:widget",exports.allowAdditionalItems=function(e){return!0===e.additionalItems&&console.warn("additionalItems=true is currently not supported"),q(e.additionalItems)},exports.ariaDescribedByIds=function(e,r){void 0===r&&(r=!1);var t=r?" "+He(e):"";return Ve(e)+" "+Be(e)+" "+Ge(e)+t},exports.asNumber=function(e){if(""!==e){if(null===e)return null;if(/\.$/.test(e))return e;if(/\.0$/.test(e))return e;if(/\.\d*0$/.test(e))return e;var r=Number(e);return"number"!=typeof r||Number.isNaN(r)?e:r}},exports.canExpand=function(e,r,t){if(void 0===r&&(r={}),!e.additionalProperties)return!1;var n=Y(r).expandable,i=void 0===n||n;return!1===i?i:void 0===e.maxProperties||!t||Object.keys(t).length<e.maxProperties},exports.createErrorHandler=function e(r){var t,n=((t={}).__errors=[],t.addError=function(e){this.__errors.push(e)},t);if(Array.isArray(r))return r.reduce((function(r,t,n){var i;return $({},r,((i={})[n]=e(t),i))}),n);if(x.default(r)){var i=r;return Object.keys(i).reduce((function(r,t){var n;return $({},r,((n={})[t]=e(i[t]),n))}),n)}return n},exports.createSchemaUtils=function(e,r){return new Ne(e,r)},exports.dataURItoBlob=function(e){var r,t=e.split(","),n=t[0].split(";"),i=n[0].replace("data:",""),o=n.filter((function(e){return"name"===e.split("=")[0]}));r=1!==o.length?"unknown":decodeURI(o[0].split("=")[1]);try{for(var a=atob(t[1]),u=[],s=0;s<a.length;s++)u.push(a.charCodeAt(s));return{blob:new window.Blob([new Uint8Array(u)],{type:i}),name:r}}catch(r){return{blob:{size:0,type:r.message},name:e}}},exports.deepEquals=K,exports.descriptionId=Be,exports.englishStringTranslator=function(e,r){return Fe(e,r)},exports.enumOptionsDeselectValue=function(e,r,t){void 0===t&&(t=[]);var n=Ue(e,t);return Array.isArray(r)?r.filter((function(e){return!U.default(e,n)})):U.default(n,r)?void 0:r},exports.enumOptionsIndexForValue=function(e,r,t){void 0===r&&(r=[]),void 0===t&&(t=!1);var n=r.map((function(r,t){return Ce(r.value,e)?String(t):void 0})).filter((function(e){return void 0!==e}));return t?n:n[0]},exports.enumOptionsIsSelected=Ce,exports.enumOptionsSelectValue=function(e,r,t){void 0===t&&(t=[]);var n=Ue(e,t);if(n){var i=t.findIndex((function(e){return n===e.value})),o=t.map((function(e){return e.value}));return r.slice(0,i).concat(n,r.slice(i)).sort((function(e,r){return Number(o.indexOf(e)>o.indexOf(r))}))}return r},exports.enumOptionsValueForIndex=Ue,exports.errorId=Ve,exports.examplesId=He,exports.findSchemaDefinition=V,exports.getClosestMatchingOption=ce,exports.getDefaultFormState=Ae,exports.getDisplayLabel=_e,exports.getFirstMatchingOption=G,exports.getInputProps=function(e,r,t,n){void 0===t&&(t={}),void 0===n&&(n=!0);var i=$({type:r||"text"},ke(e));return t.inputType?i.type=t.inputType:r||("number"===e.type?(i.type="number",n&&void 0===i.step&&(i.step="any")):"integer"===e.type&&(i.type="number",void 0===i.step&&(i.step=1))),t.autocomplete&&(i.autoComplete=t.autocomplete),i},exports.getMatchingOption=H,exports.getSchemaType=J,exports.getSubmitButtonOptions=function(e){void 0===e&&(e={});var r=Y(e);return r&&r.submitButtonOptions?$({},$e,r.submitButtonOptions):$e},exports.getTemplate=function(e,r,t){void 0===t&&(t={});var n=r.templates;return"ButtonTemplates"===e?n[e]:t[e]||n[e]},exports.getUiOptions=Y,exports.getWidget=Ye,exports.guessType=z,exports.hasWidget=function(e,r,t){void 0===t&&(t={});try{return Ye(e,r,t),!0}catch(e){var n=e;if(n.message&&(n.message.startsWith("No widget")||n.message.startsWith("Unsupported widget")))return!1;throw e}},exports.helpId=Ge,exports.isConstant=ye,exports.isCustomWidget=Se,exports.isFilesArray=Ee,exports.isFixedItems=pe,exports.isMultiSelect=ge,exports.isObject=q,exports.isSelect=he,exports.labelValue=function(e,r,t){return r?t:e},exports.localToUTC=function(e){return e?new Date(e).toJSON():void 0},exports.mergeDefaultsWithFormData=ve,exports.mergeObjects=me,exports.mergeSchemas=Q,exports.mergeValidationData=Ie,exports.optionId=function(e,r){return e+"-"+r},exports.optionsList=function(e){var r=e;if(e.enum)return e.enum.map((function(e,t){return{label:r.enumNames&&r.enumNames[t]||String(e),value:e}}));var t=e.oneOf||e.anyOf;return t&&t.map((function(e){var r=e,t=ze(r);return{schema:r,label:r.title||String(t),value:t}}))},exports.orderProperties=function(e,r){if(!Array.isArray(r))return e;var t,n=function(e){return e.reduce((function(e,r){return e[r]=!0,e}),{})},i=n(e),o=r.filter((function(e){return"*"===e||i[e]})),a=n(o),u=e.filter((function(e){return!a[e]})),s=o.indexOf("*");if(-1===s){if(u.length)throw new Error("uiSchema order list does not contain "+((t=u).length>1?"properties '"+t.join("', '")+"'":"property '"+t[0]+"'"));return o}if(s!==o.lastIndexOf("*"))throw new Error("uiSchema order list contains more than one wildcard item");var f=[].concat(o);return f.splice.apply(f,[s,1].concat(u)),f},exports.pad=Je,exports.parseDateString=function(e,r){if(void 0===r&&(r=!0),!e)return{year:-1,month:-1,day:-1,hour:r?-1:0,minute:r?-1:0,second:r?-1:0};var t=new Date(e);if(Number.isNaN(t.getTime()))throw new Error("Unable to parse date "+e);return{year:t.getUTCFullYear(),month:t.getUTCMonth()+1,day:t.getUTCDate(),hour:r?t.getUTCHours():0,minute:r?t.getUTCMinutes():0,second:r?t.getUTCSeconds():0}},exports.rangeSpec=ke,exports.replaceStringParameters=Fe,exports.retrieveSchema=ie,exports.sanitizeDataForNewSchema=je,exports.schemaRequiresTrueValue=function e(r){return!!r.const||!(!r.enum||1!==r.enum.length||!0!==r.enum[0])||(r.anyOf&&1===r.anyOf.length?e(r.anyOf[0]):r.oneOf&&1===r.oneOf.length?e(r.oneOf[0]):!!r.allOf&&r.allOf.some((function(r){return e(r)})))},exports.shouldRender=function(e,r,t){var n=e.state;return!K(e.props,r)||!K(n,t)},exports.titleId=function(e){return Ke(e,"title")},exports.toConstant=ze,exports.toDateString=function(e,r){void 0===r&&(r=!0);var t=e.hour,n=e.minute,i=e.second,o=Date.UTC(e.year,e.month-1,e.day,void 0===t?0:t,void 0===n?0:n,void 0===i?0:i),a=new Date(o).toJSON();return r?a:a.slice(0,10)},exports.toErrorList=Qe,exports.toErrorSchema=function(e){var r=new Re;return e.length&&e.forEach((function(e){var t=e.property,n=e.message,i="."===t?[]:k.default(t);i.length>0&&""===i[0]&&i.splice(0,1),n&&r.addErrors(n,i)})),r.ErrorSchema},exports.toIdSchema=Pe,exports.toPathSchema=De,exports.unwrapErrorHandler=function e(r){return Object.keys(r).reduce((function(t,n){if("addError"===n)return t;var i,o,a=r[n];return x.default(a)?$({},t,((o={})[n]=e(a),o)):$({},t,((i={})[n]=a,i))}),{})},exports.utcToLocal=function(e){if(!e)return"";var r=new Date(e);return Je(r.getFullYear(),4)+"-"+Je(r.getMonth()+1,2)+"-"+Je(r.getDate(),2)+"T"+Je(r.getHours(),2)+":"+Je(r.getMinutes(),2)+":"+Je(r.getSeconds(),2)+"."+Je(r.getMilliseconds(),3)},exports.validationDataMerge=function(e,r){if(!r)return e;var t=e.errors,n=e.errorSchema,i=Qe(r),o=r;return E.default(n)||(o=me(n,r,!0),i=[].concat(t).concat(i)),{errorSchema:o,errors:i}},exports.withIdRefPrefix=function e(r){return r.constructor===Object?function(r){for(var t in r){var n=r[t];r[t]="$ref"===t&&"string"==typeof n&&n.startsWith("#")?"__rjsf_rootSchema"+n:e(n)}return r}($({},r)):Array.isArray(r)?function(r){for(var t=0;t<r.length;t++)r[t]=e(r[t]);return r}([].concat(r)):r}; | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("lodash/isPlainObject"),r=require("lodash/isEqualWith"),t=require("lodash/get"),n=require("lodash/isEmpty"),i=require("jsonpointer"),o=require("lodash/omit"),a=require("lodash/has"),u=require("lodash/isObject"),s=require("lodash/isString"),f=require("lodash/reduce"),d=require("lodash/times"),l=require("lodash/set"),c=require("json-schema-merge-allof"),p=require("lodash/union"),v=require("lodash/isEqual"),m=require("lodash/cloneDeep"),y=require("react/jsx-runtime"),h=require("react"),g=require("react-is"),b=require("lodash/toPath");function x(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var O=x(e),A=x(r),S=x(t),E=x(n),I=x(i),w=x(o),j=x(a),_=x(u),T=x(s),W=x(f),D=x(d),P=x(l),N=x(c),F=x(p),U=x(v),C=x(m),R=x(g),k=x(b);function q(e){return!("undefined"!=typeof File&&e instanceof File||"undefined"!=typeof Date&&e instanceof Date||"object"!=typeof e||null===e||Array.isArray(e))}function L(){return L=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},L.apply(this,arguments)}function M(e){if(null==e)throw new TypeError("Cannot destructure "+e)}function Y(e,r){if(null==e)return{};var t,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r.indexOf(t=o[n])>=0||(i[t]=e[t]);return i}var K="__additional_property",B="additionalProperties",V="allOf",H="anyOf",$="const",G="default",z="dependencies",J="enum",Q="__errors",X="$id",Z="items",ee="$name",re="oneOf",te="properties",ne="required",ie="submitButtonOptions",oe="$ref",ae="__rjsf_additionalProperties",ue="__rjsf_rootSchema",se="ui:field",fe="ui:widget",de="ui:options";function le(e,r){return void 0===e&&(e={}),void 0===r&&(r={}),Object.keys(e).filter((function(e){return 0===e.indexOf("ui:")})).reduce((function(r,t){var n,i=e[t];return t===fe&&q(i)?(console.error("Setting options via ui:widget object is no longer supported, use ui:options instead"),r):t===de&&q(i)?L({},r,i):L({},r,((n={})[t.substring(3)]=i,n))}),L({},r))}function ce(e,r){return A.default(e,r,(function(e,r){if("function"==typeof e&&"function"==typeof r)return!0}))}function pe(e,r){var t=r[e];return[w.default(r,[e]),t]}function ve(e,r){void 0===r&&(r={});var t=e||"";if(!t.startsWith("#"))throw new Error("Could not find a definition for "+e+".");t=decodeURIComponent(t.substring(1));var n=I.default.get(r,t);if(void 0===n)throw new Error("Could not find a definition for "+e+".");if(n[oe]){var i=pe(oe,n),o=i[0],a=ve(i[1],r);return Object.keys(o).length>0?L({},o,a):a}return n}function me(e,r,t,n,i){if(void 0===r)return 0;for(var o=0;o<t.length;o++){var a=t[o];if(i&&j.default(a,[te,i])){var u=S.default(r,i),s=S.default(a,[te,i],{});if(e.isValid(s,u,n))return o}else if(a[te]){var f={anyOf:Object.keys(a[te]).map((function(e){return{required:[e]}}))},d=void 0;if(a.anyOf){var l=L({},(M(a),a));l.allOf=l.allOf?l.allOf.slice():[],l.allOf.push(f),d=l}else d=Object.assign({},a,f);if(delete d.required,e.isValid(d,r,n))return o}else if(e.isValid(a,r,n))return o}return 0}function ye(e,r,t,n,i){return me(e,r,t,n,i)}function he(e){return Array.isArray(e)?"array":"string"==typeof e?"string":null==e?"null":"boolean"==typeof e?"boolean":isNaN(e)?"object"==typeof e?"object":"string":"number"}function ge(e){var r=e.type;return!r&&e.const?he(e.const):!r&&e.enum?"string":r||!e.properties&&!e.additionalProperties?(Array.isArray(r)&&2===r.length&&r.includes("null")&&(r=r.find((function(e){return"null"!==e}))),r):"object"}function be(e,r){var t=Object.assign({},e);return Object.keys(r).reduce((function(t,n){var i=e?e[n]:{},o=r[n];return t[n]=e&&n in e&&q(o)?be(i,o):e&&r&&("object"===ge(e)||"object"===ge(r))&&n===ne&&Array.isArray(i)&&Array.isArray(o)?F.default(i,o):o,t}),t)}var xe=["if","then","else"],Oe=["$ref"],Ae=["allOf"],Se=["dependencies"],Ee=["oneOf"];function Ie(e,r,t,n){return we(e,L({},ve(r.$ref,t),Y(r,Oe)),t,n)}function we(e,r,t,n){if(void 0===t&&(t={}),!q(r))return{};var i=function(e,r,t,n){if(void 0===t&&(t={}),oe in r)return Ie(e,r,t,n);if(z in r){var i=je(e,r,t,n);return we(e,i,t,n)}return V in r?L({},r,{allOf:r.allOf.map((function(r){return we(e,r,t,n)}))}):r}(e,r,t,n);if("if"in r)return function(e,r,t,n){var i=r.if,o=r.then,a=r.else,u=Y(r,xe),s=e.isValid(i,n,t)?o:a;return we(e,s&&"boolean"!=typeof s?be(u,we(e,s,t,n)):u,t,n)}(e,r,t,n);var o=n||{};if(V in r)try{i=N.default(i,{deep:!1})}catch(e){return console.warn("could not merge subschemas in allOf:\n",e),Y(i,Ae)}return B in i&&!1!==i.additionalProperties?function(e,r,t,n){var i=L({},r,{properties:L({},r.properties)}),o=n&&q(n)?n:{};return Object.keys(o).forEach((function(r){var n;r in i.properties||(n="boolean"!=typeof i.additionalProperties?oe in i.additionalProperties?we(e,{$ref:S.default(i.additionalProperties,[oe])},t,o):"type"in i.additionalProperties?L({},i.additionalProperties):H in i.additionalProperties||re in i.additionalProperties?L({type:"object"},i.additionalProperties):{type:he(S.default(o,[r]))}:{type:he(S.default(o,[r]))},i.properties[r]=n,P.default(i.properties,[r,K],!0))})),i}(e,i,t,o):i}function je(e,r,t,n){var i=r.dependencies,o=Y(r,Se);return Array.isArray(o.oneOf)?o=o.oneOf[ye(e,n,o.oneOf,t)]:Array.isArray(o.anyOf)&&(o=o.anyOf[ye(e,n,o.anyOf,t)]),_e(e,i,o,t,n)}function _e(e,r,t,n,i){var o=t;for(var a in r)if(void 0!==S.default(i,[a])&&(!o.properties||a in o.properties)){var u=pe(a,r),s=u[0],f=u[1];return Array.isArray(f)?o=Te(o,f):q(f)&&(o=We(e,o,n,a,f,i)),_e(e,s,o,n,i)}return o}function Te(e,r){return r?L({},e,{required:Array.isArray(e.required)?Array.from(new Set([].concat(e.required,r))):r}):e}function We(e,r,t,n,i,o){var a=we(e,i,t,o),u=a.oneOf;if(r=be(r,Y(a,Ee)),void 0===u)return r;var s=u.map((function(r){return"boolean"!=typeof r&&oe in r?Ie(e,r,t,o):r}));return function(e,r,t,n,i,o){var a=i.filter((function(r){if("boolean"==typeof r||!r||!r.properties)return!1;var i=r.properties[n];if(i){var a,u={type:"object",properties:(a={},a[n]=i,a)};return e.isValid(u,o,t)}return!1}));if(1!==a.length)return console.warn("ignoring oneOf in dependencies because there isn't exactly one subschema that is valid"),r;var u=a[0],s=L({},u,{properties:pe(n,u.properties)[0]});return be(r,we(e,s,t,o))}(e,r,t,n,s,o)}var De,Pe={type:"object",properties:{__not_really_there__:{type:"number"}}};function Ne(e,r,t,n){void 0===n&&(n={});var i=0;return t&&(_.default(t.properties)?i+=W.default(t.properties,(function(t,i,o){var a=S.default(n,o);if("boolean"==typeof i)return t;if(j.default(i,oe)){var u=we(e,i,r,a);return t+Ne(e,r,u,a||{})}if(j.default(i,re)&&a)return t+Fe(e,r,a,S.default(i,re));if("object"===i.type)return t+Ne(e,r,i,a||{});if(i.type===he(a)){var s=t+1;return i.default?s+=a===i.default?1:-1:i.const&&(s+=a===i.const?1:-1),s}return t}),0):T.default(t.type)&&t.type===he(n)&&(i+=1)),i}function Fe(e,r,t,n,i,o){void 0===i&&(i=-1);var a=n.reduce((function(n,i,a){return 1===ye(e,t,[Pe,i],r,o)&&n.push(a),n}),[]);return 1===a.length?a[0]:(a.length||D.default(n.length,(function(e){return a.push(e)})),a.reduce((function(i,o){var a=i.bestScore,u=n[o];j.default(u,oe)&&(u=we(e,u,r,t));var s=Ne(e,r,u,t);return s>a?{bestIndex:o,bestScore:s}:i}),{bestIndex:i,bestScore:0}).bestIndex)}function Ue(e){return Array.isArray(e.items)&&e.items.length>0&&e.items.every((function(e){return q(e)}))}function Ce(e,r){if(Array.isArray(r)){var t=Array.isArray(e)?e:[];return r.map((function(e,r){return t[r]?Ce(t[r],e):e}))}if(q(r)){var n=Object.assign({},e);return Object.keys(r).reduce((function(t,n){return t[n]=Ce(e?S.default(e,n):{},S.default(r,n)),t}),n)}return r}function Re(e,r,t){return void 0===t&&(t=!1),Object.keys(r).reduce((function(n,i){var o=e?e[i]:{},a=r[i];if(e&&i in e&&q(a))n[i]=Re(o,a,t);else if(t&&Array.isArray(o)&&Array.isArray(a)){var u=a;"preventDuplicates"===t&&(u=a.reduce((function(e,r){return o.includes(r)||e.push(r),e}),[])),n[i]=o.concat(u)}else n[i]=a;return n}),Object.assign({},e))}function ke(e){return Array.isArray(e.enum)&&1===e.enum.length||$ in e}function qe(e,r,t){void 0===t&&(t={});var n=we(e,r,t,void 0),i=n.oneOf||n.anyOf;return!!Array.isArray(n.enum)||!!Array.isArray(i)&&i.every((function(e){return"boolean"!=typeof e&&ke(e)}))}function Le(e,r,t){return!(!r.uniqueItems||!r.items||"boolean"==typeof r.items)&&qe(e,r.items,t)}function Me(e,r,t){if(void 0===r&&(r=De.Ignore),void 0===t&&(t=-1),t>=0){if(Array.isArray(e.items)&&t<e.items.length){var n=e.items[t];if("boolean"!=typeof n)return n}}else if(e.items&&!Array.isArray(e.items)&&"boolean"!=typeof e.items)return e.items;return r!==De.Ignore&&q(e.additionalItems)?e.additionalItems:{}}function Ye(e,r,t,n,i){void 0===i&&(i=[]),n?e[r]=t:q(t)?E.default(t)&&!i.includes(r)||(e[r]=t):void 0!==t&&(e[r]=t)}function Ke(e,r,t,n,i,o,a){void 0===n&&(n={}),void 0===o&&(o=!1),void 0===a&&(a=[]);var u=q(i)?i:{},s=q(r)?r:{},f=t;if(q(f)&&q(s.default))f=Re(f,s.default);else if(G in s)f=s.default;else if(oe in s){var d=s[oe];if(!a.includes(d)){var l=ve(d,n);return Ke(e,l,f,n,u,o,a.concat(d))}}else{if(z in s){var c=je(e,s,n,u);return Ke(e,c,f,n,u,o,a)}if(Ue(s))f=s.items.map((function(r,i){return Ke(e,r,Array.isArray(t)?t[i]:void 0,n,u,o,a)}));else if(re in s){if(0===s.oneOf.length)return;s=s.oneOf[Fe(e,n,E.default(u)?void 0:u,s.oneOf,0)]}else if(H in s){if(0===s.anyOf.length)return;s=s.anyOf[Fe(e,n,E.default(u)?void 0:u,s.anyOf,0)]}}switch(void 0===f&&(f=s.default),ge(s)){case"object":var p=Object.keys(s.properties||{}).reduce((function(r,t){return Ye(r,t,Ke(e,S.default(s,[te,t]),S.default(f,[t]),n,S.default(u,[t]),!0===o,a),o,s.required),r}),{});if(s.additionalProperties){var v=q(s.additionalProperties)?s.additionalProperties:{},m=new Set;q(f)&&Object.keys(f).filter((function(e){return!s.properties||!s.properties[e]})).forEach((function(e){return m.add(e)})),q(u)&&Object.keys(u).filter((function(e){return!s.properties||!s.properties[e]})).forEach((function(e){return m.add(e)})),m.forEach((function(r){var t=Ke(e,v,S.default(f,[r]),n,S.default(u,[r]),!0===o,a);Ye(p,r,t,o)}))}return p;case"array":if(Array.isArray(f)&&(f=f.map((function(r,t){var i=Me(s,De.Fallback,t);return Ke(e,i,r,n,void 0,void 0,a)}))),Array.isArray(i)){var y=Me(s);f=i.map((function(r,t){return Ke(e,y,S.default(f,[t]),n,r,void 0,a)}))}if(s.minItems){if(!Le(e,s,n)){var h=Array.isArray(f)?f.length:0;if(s.minItems>h){var g=f||[],b=Me(s,De.Invert),x=b.default,O=new Array(s.minItems-h).fill(Ke(e,b,x,n,void 0,void 0,a));return g.concat(O)}}return f||[]}}return f}function Be(e,r,t,n,i){if(void 0===i&&(i=!1),!q(r))throw new Error("Invalid schema: "+r);var o=Ke(e,we(e,r,n,t),void 0,n,t,i);return null==t||"number"==typeof t&&isNaN(t)?o:q(t)||Array.isArray(t)?Ce(o,t):t}function Ve(e){return void 0===e&&(e={}),"widget"in le(e)&&"hidden"!==le(e).widget}function He(e,r,t,n){if(void 0===t&&(t={}),"files"===t[fe])return!0;if(r.items){var i=we(e,r.items,n);return"string"===i.type&&"data-url"===i.format}return!1}function $e(e,r,t,n,i){void 0===t&&(t={});var o=le(t,i).label,a=!(void 0!==o&&!o),u=ge(r);return"array"===u&&(a=Le(e,r,n)||He(e,r,t,n)||Ve(t)),"object"===u&&(a=!1),"boolean"!==u||t[fe]||(a=!1),t[se]&&(a=!1),a}function Ge(e,r,t){if(!t)return r;var n=r.errors,i=r.errorSchema,o=e.toErrorList(t),a=t;return E.default(i)||(a=Re(i,t,!0),o=[].concat(n).concat(o)),{errorSchema:a,errors:o}}!function(e){e[e.Ignore=0]="Ignore",e[e.Invert=1]="Invert",e[e.Fallback=2]="Fallback"}(De||(De={}));var ze=Symbol("no Value");function Je(e,r,t,n,i){var o;if(void 0===i&&(i={}),j.default(t,te)){var a={};if(j.default(n,te)){var u=S.default(n,te,{});Object.keys(u).forEach((function(e){j.default(i,e)&&(a[e]=void 0)}))}var s=Object.keys(S.default(t,te,{})),f={};s.forEach((function(o){var u=S.default(i,o),s=S.default(n,[te,o],{}),d=S.default(t,[te,o],{});j.default(s,oe)&&(s=we(e,s,r,u)),j.default(d,oe)&&(d=we(e,d,r,u));var l=S.default(s,"type"),c=S.default(d,"type");if(!l||l===c)if(j.default(a,o)&&delete a[o],"object"===c||"array"===c&&Array.isArray(u)){var p=Je(e,r,d,s,u);void 0===p&&"array"!==c||(f[o]=p)}else{var v=S.default(d,"default",ze),m=S.default(s,"default",ze);v!==ze&&v!==u&&(m===u?a[o]=v:!0===S.default(d,"readOnly")&&(a[o]=void 0));var y=S.default(d,"const",ze),h=S.default(s,"const",ze);y!==ze&&y!==u&&(a[o]=h===u?y:void 0)}})),o=L({},i,a,f)}else if("array"===S.default(n,"type")&&"array"===S.default(t,"type")&&Array.isArray(i)){var d=S.default(n,"items"),l=S.default(t,"items");if("object"!=typeof d||"object"!=typeof l||Array.isArray(d)||Array.isArray(l))"boolean"==typeof d&&"boolean"==typeof l&&d===l&&(o=i);else{j.default(d,oe)&&(d=we(e,d,r,i)),j.default(l,oe)&&(l=we(e,l,r,i));var c=S.default(d,"type"),p=S.default(l,"type");if(!c||c===p){var v=S.default(t,"maxItems",-1);o="object"===p?i.reduce((function(t,n){var i=Je(e,r,l,d,n);return void 0!==i&&(v<0||t.length<v)&&t.push(i),t}),[]):v>0&&i.length>v?i.slice(0,v):i}}}return o}function Qe(e,r,t,n,i,o,a,u){if(void 0===u&&(u=[]),oe in r||z in r||V in r){var s=we(e,r,o,a);if(-1===u.findIndex((function(e){return U.default(e,s)})))return Qe(e,s,t,n,i,o,a,u.concat(s))}if(Z in r&&!S.default(r,[Z,oe]))return Qe(e,S.default(r,Z),t,n,i,o,a,u);var f={$id:i||t};if("object"===ge(r)&&te in r)for(var d in r.properties){var l=S.default(r,[te,d]),c=f[X]+n+d;f[d]=Qe(e,q(l)?l:{},t,n,c,o,S.default(a,[d]),u)}return f}function Xe(e,r,t,n,i,o,a){return void 0===o&&(o="root"),void 0===a&&(a="_"),Qe(e,r,o,a,t,n,i)}function Ze(e,r,t,n,i,o){var a;if(void 0===o&&(o=[]),oe in r||z in r||V in r){var u=we(e,r,n,i);if(-1===o.findIndex((function(e){return U.default(e,u)})))return Ze(e,u,t,n,i,o.concat(u))}var s=((a={})[ee]=t.replace(/^\./,""),a);if(re in r){var f=Fe(e,n,i,r.oneOf,0);return Ze(e,r.oneOf[f],t,n,i,o)}if(H in r){var d=Fe(e,n,i,r.anyOf,0);return Ze(e,r.anyOf[d],t,n,i,o)}if(B in r&&!1!==r[B]&&P.default(s,ae,!0),Z in r&&Array.isArray(i))i.forEach((function(i,a){s[a]=Ze(e,r.items,t+"."+a,n,i,o)}));else if(te in r)for(var l in r.properties){var c=S.default(r,[te,l]);s[l]=Ze(e,c,t+"."+l,n,S.default(i,[l]),o)}return s}function er(e,r,t,n,i){return void 0===t&&(t=""),Ze(e,r,t,n,i)}var rr=function(){function e(e,r){this.rootSchema=void 0,this.validator=void 0,this.rootSchema=r,this.validator=e}var r=e.prototype;return r.getValidator=function(){return this.validator},r.doesSchemaUtilsDiffer=function(e,r){return!(!e||!r||this.validator===e&&ce(this.rootSchema,r))},r.getDefaultFormState=function(e,r,t){return void 0===t&&(t=!1),Be(this.validator,e,r,this.rootSchema,t)},r.getDisplayLabel=function(e,r,t){return $e(this.validator,e,r,this.rootSchema,t)},r.getClosestMatchingOption=function(e,r,t,n){return Fe(this.validator,this.rootSchema,e,r,t,n)},r.getFirstMatchingOption=function(e,r,t){return ye(this.validator,e,r,this.rootSchema,t)},r.getMatchingOption=function(e,r,t){return me(this.validator,e,r,this.rootSchema,t)},r.isFilesArray=function(e,r){return He(this.validator,e,r,this.rootSchema)},r.isMultiSelect=function(e){return Le(this.validator,e,this.rootSchema)},r.isSelect=function(e){return qe(this.validator,e,this.rootSchema)},r.mergeValidationData=function(e,r){return Ge(this.validator,e,r)},r.retrieveSchema=function(e,r){return we(this.validator,e,this.rootSchema,r)},r.sanitizeDataForNewSchema=function(e,r,t){return Je(this.validator,this.rootSchema,e,r,t)},r.toIdSchema=function(e,r,t,n,i){return void 0===n&&(n="root"),void 0===i&&(i="_"),Xe(this.validator,e,r,this.rootSchema,t,n,i)},r.toPathSchema=function(e,r,t){return er(this.validator,e,r,this.rootSchema,t)},e}();function tr(e,r){var t=e;if(Array.isArray(r)){var n=t.split(/(%\d)/);r.forEach((function(e,r){var t=n.findIndex((function(e){return e==="%"+(r+1)}));t>=0&&(n[t]=e)})),t=n.join("")}return t}function nr(e,r,t){if(void 0===r&&(r=[]),Array.isArray(e))return e.map((function(e){return nr(e,r)})).filter((function(e){return e}));var n=""===e||null===e?-1:Number(e),i=r[n];return i?i.value:t}function ir(e,r){return Array.isArray(r)?r.some((function(r){return U.default(r,e)})):U.default(r,e)}var or=function(){function e(e){this.errorSchema={},this.resetAllErrors(e)}var r,t,n=e.prototype;return n.getOrCreateErrorBlock=function(e){var r=Array.isArray(e)&&e.length>0||"string"==typeof e?S.default(this.errorSchema,e):this.errorSchema;return!r&&e&&P.default(this.errorSchema,e,r={}),r},n.resetAllErrors=function(e){return this.errorSchema=e?C.default(e):{},this},n.addErrors=function(e,r){var t,n=this.getOrCreateErrorBlock(r),i=S.default(n,Q);return Array.isArray(i)||(n[Q]=i=[]),Array.isArray(e)?(t=i).push.apply(t,e):i.push(e),this},n.setErrors=function(e,r){var t=this.getOrCreateErrorBlock(r),n=Array.isArray(e)?[].concat(e):[e];return P.default(t,Q,n),this},n.clearErrors=function(e){var r=this.getOrCreateErrorBlock(e);return P.default(r,Q,[]),this},r=e,(t=[{key:"ErrorSchema",get:function(){return this.errorSchema}}])&&function(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,"symbol"==typeof(i=function(e,r){if("object"!=typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(n.key))?i:String(i),n)}var i}(r.prototype,t),Object.defineProperty(r,"prototype",{writable:!1}),e}();function ar(e){var r={};return e.multipleOf&&(r.step=e.multipleOf),(e.minimum||0===e.minimum)&&(r.min=e.minimum),(e.maximum||0===e.maximum)&&(r.max=e.maximum),r}var ur,sr={props:{disabled:!1},submitText:"Submit",norender:!1},fr=["options"],dr={boolean:{checkbox:"CheckboxWidget",radio:"RadioWidget",select:"SelectWidget",hidden:"HiddenWidget"},string:{text:"TextWidget",password:"PasswordWidget",email:"EmailWidget",hostname:"TextWidget",ipv4:"TextWidget",ipv6:"TextWidget",uri:"URLWidget","data-url":"FileWidget",radio:"RadioWidget",select:"SelectWidget",textarea:"TextareaWidget",hidden:"HiddenWidget",date:"DateWidget",datetime:"DateTimeWidget","date-time":"DateTimeWidget","alt-date":"AltDateWidget","alt-datetime":"AltDateTimeWidget",time:"TimeWidget",color:"ColorWidget",file:"FileWidget"},number:{text:"TextWidget",select:"SelectWidget",updown:"UpDownWidget",range:"RangeWidget",radio:"RadioWidget",hidden:"HiddenWidget"},integer:{text:"TextWidget",select:"SelectWidget",updown:"UpDownWidget",range:"RangeWidget",radio:"RadioWidget",hidden:"HiddenWidget"},array:{select:"SelectWidget",checkboxes:"CheckboxesWidget",files:"FileWidget",hidden:"HiddenWidget"}};function lr(e,r,t){void 0===t&&(t={});var n=ge(e);if("function"==typeof r||r&&R.default.isForwardRef(h.createElement(r))||R.default.isMemo(r))return function(e){var r=S.default(e,"MergedWidget");if(!r){var t=e.defaultProps&&e.defaultProps.options||{};P.default(e,"MergedWidget",r=function(r){var n=r.options,i=Y(r,fr);return y.jsx(e,L({options:L({},t,n)},i))})}return r}(r);if("string"!=typeof r)throw new Error("Unsupported widget definition: "+typeof r);if(r in t)return lr(e,t[r],t);if("string"==typeof n){if(!(n in dr))throw new Error("No widget for type '"+n+"'");if(r in dr[n])return lr(e,t[dr[n][r]],t)}throw new Error("No widget '"+r+"' for type '"+n+"'")}function cr(e,r){return(T.default(e)?e:e[X])+"__"+r}function pr(e){return cr(e,"description")}function vr(e){return cr(e,"error")}function mr(e){return cr(e,"examples")}function yr(e){return cr(e,"help")}function hr(e){if(J in e&&Array.isArray(e.enum)&&1===e.enum.length)return e.enum[0];if($ in e)return e.const;throw new Error("schema cannot be inferred as a constant")}function gr(e,r){for(var t=String(e);t.length<r;)t="0"+t;return t}function br(e,r){if(void 0===r&&(r=[]),!e)return[];var t=[];return Q in e&&(t=t.concat(e[Q].map((function(e){var t="."+r.join(".");return{property:t,message:e,stack:t+" "+e}})))),Object.keys(e).reduce((function(t,n){if(n!==Q){var i=e[n];O.default(i)&&(t=t.concat(br(i,[].concat(r,[n]))))}return t}),t)}exports.TranslatableString=void 0,(ur=exports.TranslatableString||(exports.TranslatableString={})).ArrayItemTitle="Item",ur.MissingItems="Missing items definition",ur.YesLabel="Yes",ur.NoLabel="No",ur.CloseLabel="Close",ur.ErrorsLabel="Errors",ur.NewStringDefault="New Value",ur.AddButton="Add",ur.AddItemButton="Add Item",ur.CopyButton="Copy",ur.MoveDownButton="Move down",ur.MoveUpButton="Move up",ur.RemoveButton="Remove",ur.NowLabel="Now",ur.ClearLabel="Clear",ur.AriaDateLabel="Select a date",ur.PreviewLabel="Preview",ur.DecrementAriaLabel="Decrease value by 1",ur.IncrementAriaLabel="Increase value by 1",ur.UnknownFieldType="Unknown field type %1",ur.OptionPrefix="Option %1",ur.TitleOptionPrefix="%1 option %2",ur.KeyLabel="%1 Key",ur.InvalidObjectField='Invalid "%1" object field configuration: <em>%2</em>.',ur.UnsupportedField="Unsupported field schema.",ur.UnsupportedFieldWithId="Unsupported field schema for field <code>%1</code>.",ur.UnsupportedFieldWithReason="Unsupported field schema: <em>%1</em>.",ur.UnsupportedFieldWithIdAndReason="Unsupported field schema for field <code>%1</code>: <em>%2</em>.",ur.FilesInfo="<strong>%1</strong> (%2, %3 bytes)",exports.ADDITIONAL_PROPERTIES_KEY=B,exports.ADDITIONAL_PROPERTY_FLAG=K,exports.ALL_OF_KEY=V,exports.ANY_OF_KEY=H,exports.CONST_KEY=$,exports.DEFAULT_KEY=G,exports.DEFINITIONS_KEY="definitions",exports.DEPENDENCIES_KEY=z,exports.ENUM_KEY=J,exports.ERRORS_KEY=Q,exports.ErrorSchemaBuilder=or,exports.ID_KEY=X,exports.ITEMS_KEY=Z,exports.NAME_KEY=ee,exports.ONE_OF_KEY=re,exports.PROPERTIES_KEY=te,exports.REF_KEY=oe,exports.REQUIRED_KEY=ne,exports.RJSF_ADDITONAL_PROPERTIES_FLAG=ae,exports.ROOT_SCHEMA_PREFIX=ue,exports.SUBMIT_BTN_OPTIONS_KEY=ie,exports.UI_FIELD_KEY=se,exports.UI_GLOBAL_OPTIONS_KEY="ui:globalOptions",exports.UI_OPTIONS_KEY=de,exports.UI_WIDGET_KEY=fe,exports.allowAdditionalItems=function(e){return!0===e.additionalItems&&console.warn("additionalItems=true is currently not supported"),q(e.additionalItems)},exports.ariaDescribedByIds=function(e,r){void 0===r&&(r=!1);var t=r?" "+mr(e):"";return vr(e)+" "+pr(e)+" "+yr(e)+t},exports.asNumber=function(e){if(""!==e){if(null===e)return null;if(/\.$/.test(e))return e;if(/\.0$/.test(e))return e;if(/\.\d*0$/.test(e))return e;var r=Number(e);return"number"!=typeof r||Number.isNaN(r)?e:r}},exports.canExpand=function(e,r,t){if(void 0===r&&(r={}),!e.additionalProperties)return!1;var n=le(r).expandable,i=void 0===n||n;return!1===i?i:void 0===e.maxProperties||!t||Object.keys(t).length<e.maxProperties},exports.createErrorHandler=function e(r){var t,n=((t={})[Q]=[],t.addError=function(e){this[Q].push(e)},t);if(Array.isArray(r))return r.reduce((function(r,t,n){var i;return L({},r,((i={})[n]=e(t),i))}),n);if(O.default(r)){var i=r;return Object.keys(i).reduce((function(r,t){var n;return L({},r,((n={})[t]=e(i[t]),n))}),n)}return n},exports.createSchemaUtils=function(e,r){return new rr(e,r)},exports.dataURItoBlob=function(e){var r,t=e.split(","),n=t[0].split(";"),i=n[0].replace("data:",""),o=n.filter((function(e){return"name"===e.split("=")[0]}));r=1!==o.length?"unknown":decodeURI(o[0].split("=")[1]);try{for(var a=atob(t[1]),u=[],s=0;s<a.length;s++)u.push(a.charCodeAt(s));return{blob:new window.Blob([new Uint8Array(u)],{type:i}),name:r}}catch(r){return{blob:{size:0,type:r.message},name:e}}},exports.deepEquals=ce,exports.descriptionId=pr,exports.englishStringTranslator=function(e,r){return tr(e,r)},exports.enumOptionsDeselectValue=function(e,r,t){void 0===t&&(t=[]);var n=nr(e,t);return Array.isArray(r)?r.filter((function(e){return!U.default(e,n)})):U.default(n,r)?void 0:r},exports.enumOptionsIndexForValue=function(e,r,t){void 0===r&&(r=[]),void 0===t&&(t=!1);var n=r.map((function(r,t){return ir(r.value,e)?String(t):void 0})).filter((function(e){return void 0!==e}));return t?n:n[0]},exports.enumOptionsIsSelected=ir,exports.enumOptionsSelectValue=function(e,r,t){void 0===t&&(t=[]);var n=nr(e,t);if(n){var i=t.findIndex((function(e){return n===e.value})),o=t.map((function(e){return e.value}));return r.slice(0,i).concat(n,r.slice(i)).sort((function(e,r){return Number(o.indexOf(e)>o.indexOf(r))}))}return r},exports.enumOptionsValueForIndex=nr,exports.errorId=vr,exports.examplesId=mr,exports.findSchemaDefinition=ve,exports.getClosestMatchingOption=Fe,exports.getDefaultFormState=Be,exports.getDisplayLabel=$e,exports.getFirstMatchingOption=ye,exports.getInputProps=function(e,r,t,n){void 0===t&&(t={}),void 0===n&&(n=!0);var i=L({type:r||"text"},ar(e));return t.inputType?i.type=t.inputType:r||("number"===e.type?(i.type="number",n&&void 0===i.step&&(i.step="any")):"integer"===e.type&&(i.type="number",void 0===i.step&&(i.step=1))),t.autocomplete&&(i.autoComplete=t.autocomplete),i},exports.getMatchingOption=me,exports.getSchemaType=ge,exports.getSubmitButtonOptions=function(e){void 0===e&&(e={});var r=le(e);return r&&r[ie]?L({},sr,r[ie]):sr},exports.getTemplate=function(e,r,t){void 0===t&&(t={});var n=r.templates;return"ButtonTemplates"===e?n[e]:t[e]||n[e]},exports.getUiOptions=le,exports.getWidget=lr,exports.guessType=he,exports.hasWidget=function(e,r,t){void 0===t&&(t={});try{return lr(e,r,t),!0}catch(e){var n=e;if(n.message&&(n.message.startsWith("No widget")||n.message.startsWith("Unsupported widget")))return!1;throw e}},exports.helpId=yr,exports.isConstant=ke,exports.isCustomWidget=Ve,exports.isFilesArray=He,exports.isFixedItems=Ue,exports.isMultiSelect=Le,exports.isObject=q,exports.isSelect=qe,exports.labelValue=function(e,r,t){return r?t:e},exports.localToUTC=function(e){return e?new Date(e).toJSON():void 0},exports.mergeDefaultsWithFormData=Ce,exports.mergeObjects=Re,exports.mergeSchemas=be,exports.mergeValidationData=Ge,exports.optionId=function(e,r){return e+"-"+r},exports.optionsList=function(e){var r=e;if(e.enum)return e.enum.map((function(e,t){return{label:r.enumNames&&r.enumNames[t]||String(e),value:e}}));var t=e.oneOf||e.anyOf;return t&&t.map((function(e){var r=e,t=hr(r);return{schema:r,label:r.title||String(t),value:t}}))},exports.orderProperties=function(e,r){if(!Array.isArray(r))return e;var t,n=function(e){return e.reduce((function(e,r){return e[r]=!0,e}),{})},i=n(e),o=r.filter((function(e){return"*"===e||i[e]})),a=n(o),u=e.filter((function(e){return!a[e]})),s=o.indexOf("*");if(-1===s){if(u.length)throw new Error("uiSchema order list does not contain "+((t=u).length>1?"properties '"+t.join("', '")+"'":"property '"+t[0]+"'"));return o}if(s!==o.lastIndexOf("*"))throw new Error("uiSchema order list contains more than one wildcard item");var f=[].concat(o);return f.splice.apply(f,[s,1].concat(u)),f},exports.pad=gr,exports.parseDateString=function(e,r){if(void 0===r&&(r=!0),!e)return{year:-1,month:-1,day:-1,hour:r?-1:0,minute:r?-1:0,second:r?-1:0};var t=new Date(e);if(Number.isNaN(t.getTime()))throw new Error("Unable to parse date "+e);return{year:t.getUTCFullYear(),month:t.getUTCMonth()+1,day:t.getUTCDate(),hour:r?t.getUTCHours():0,minute:r?t.getUTCMinutes():0,second:r?t.getUTCSeconds():0}},exports.rangeSpec=ar,exports.replaceStringParameters=tr,exports.retrieveSchema=we,exports.sanitizeDataForNewSchema=Je,exports.schemaRequiresTrueValue=function e(r){return!!r.const||!(!r.enum||1!==r.enum.length||!0!==r.enum[0])||(r.anyOf&&1===r.anyOf.length?e(r.anyOf[0]):r.oneOf&&1===r.oneOf.length?e(r.oneOf[0]):!!r.allOf&&r.allOf.some((function(r){return e(r)})))},exports.shouldRender=function(e,r,t){var n=e.state;return!ce(e.props,r)||!ce(n,t)},exports.titleId=function(e){return cr(e,"title")},exports.toConstant=hr,exports.toDateString=function(e,r){void 0===r&&(r=!0);var t=e.hour,n=e.minute,i=e.second,o=Date.UTC(e.year,e.month-1,e.day,void 0===t?0:t,void 0===n?0:n,void 0===i?0:i),a=new Date(o).toJSON();return r?a:a.slice(0,10)},exports.toErrorList=br,exports.toErrorSchema=function(e){var r=new or;return e.length&&e.forEach((function(e){var t=e.property,n=e.message,i="."===t?[]:k.default(t);i.length>0&&""===i[0]&&i.splice(0,1),n&&r.addErrors(n,i)})),r.ErrorSchema},exports.toIdSchema=Xe,exports.toPathSchema=er,exports.unwrapErrorHandler=function e(r){return Object.keys(r).reduce((function(t,n){if("addError"===n)return t;var i,o,a=r[n];return O.default(a)?L({},t,((o={})[n]=e(a),o)):L({},t,((i={})[n]=a,i))}),{})},exports.utcToLocal=function(e){if(!e)return"";var r=new Date(e);return gr(r.getFullYear(),4)+"-"+gr(r.getMonth()+1,2)+"-"+gr(r.getDate(),2)+"T"+gr(r.getHours(),2)+":"+gr(r.getMinutes(),2)+":"+gr(r.getSeconds(),2)+"."+gr(r.getMilliseconds(),3)},exports.validationDataMerge=function(e,r){if(!r)return e;var t=e.errors,n=e.errorSchema,i=br(r),o=r;return E.default(n)||(o=Re(n,r,!0),i=[].concat(t).concat(i)),{errorSchema:o,errors:i}},exports.withIdRefPrefix=function e(r){return r.constructor===Object?function(r){for(var t in r){var n=r[t];r[t]=t===oe&&"string"==typeof n&&n.startsWith("#")?ue+n:e(n)}return r}(L({},r)):Array.isArray(r)?function(r){for(var t=0;t<r.length;t++)r[t]=e(r[t]);return r}([].concat(r)):r}; | ||
//# sourceMappingURL=utils.cjs.production.min.js.map |
@@ -1,2 +0,2 @@ | ||
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports,require("lodash-es/isPlainObject"),require("lodash-es/isEqualWith"),require("lodash-es/get"),require("lodash-es/isEmpty"),require("jsonpointer"),require("lodash-es/omit"),require("lodash-es/has"),require("lodash-es/isObject"),require("lodash-es/isString"),require("lodash-es/reduce"),require("lodash-es/times"),require("lodash-es/set"),require("json-schema-merge-allof"),require("lodash-es/union"),require("lodash-es/isEqual"),require("lodash-es/cloneDeep"),require("react/jsx-runtime"),require("react"),require("react-is"),require("lodash-es/toPath")):"function"==typeof define&&define.amd?define(["exports","lodash-es/isPlainObject","lodash-es/isEqualWith","lodash-es/get","lodash-es/isEmpty","jsonpointer","lodash-es/omit","lodash-es/has","lodash-es/isObject","lodash-es/isString","lodash-es/reduce","lodash-es/times","lodash-es/set","json-schema-merge-allof","lodash-es/union","lodash-es/isEqual","lodash-es/cloneDeep","react/jsx-runtime","react","react-is","lodash-es/toPath"],r):r((e="undefined"!=typeof globalThis?globalThis:e||self)["@rjsf/utils"]={},e.isPlainObject,e.isEqualWith,e.get,e.isEmpty,e.jsonpointer,e.omit,e.has,e.isObject$1,e.isString,e.reduce,e.times,e.set,e.mergeAllOf,e.union,e.isEqual,e.cloneDeep,e.jsxRuntime,e.React,e.ReactIs,e.toPath)}(this,(function(e,r,t,n,i,o,a,u,s,d,f,l,c,p,v,m,h,y,g,b,O){"use strict";function A(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var S=A(r),E=A(t),I=A(n),w=A(i),j=A(o),_=A(a),T=A(u),P=A(s),W=A(d),D=A(f),x=A(l),N=A(c),F=A(p),U=A(v),R=A(m),q=A(h),C=A(b),k=A(O);function L(e){return!("undefined"!=typeof File&&e instanceof File||"undefined"!=typeof Date&&e instanceof Date||"object"!=typeof e||null===e||Array.isArray(e))}function M(){return M=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},M.apply(this,arguments)}function Y(e){if(null==e)throw new TypeError("Cannot destructure "+e)}function K(e,r){if(null==e)return{};var t,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r.indexOf(t=o[n])>=0||(i[t]=e[t]);return i}var B="__additional_property",V="additionalProperties",$="allOf",H="anyOf",G="const",z="default",J="dependencies",Q="enum",X="__errors",Z="items",ee="oneOf",re="properties",te="required",ne="$ref",ie="__rjsf_additionalProperties",oe="__rjsf_rootSchema",ae="ui:widget",ue="ui:options";function se(e,r){return void 0===e&&(e={}),void 0===r&&(r={}),Object.keys(e).filter((function(e){return 0===e.indexOf("ui:")})).reduce((function(r,t){var n,i=e[t];return t===ae&&L(i)?(console.error("Setting options via ui:widget object is no longer supported, use ui:options instead"),r):t===ue&&L(i)?M({},r,i):M({},r,((n={})[t.substring(3)]=i,n))}),M({},r))}function de(e,r){return E.default(e,r,(function(e,r){if("function"==typeof e&&"function"==typeof r)return!0}))}function fe(e,r){var t=r[e];return[_.default(r,[e]),t]}function le(e,r){void 0===r&&(r={});var t=e||"";if(!t.startsWith("#"))throw new Error("Could not find a definition for "+e+".");t=decodeURIComponent(t.substring(1));var n=j.default.get(r,t);if(void 0===n)throw new Error("Could not find a definition for "+e+".");if(n.$ref){var i=fe(ne,n),o=i[0],a=le(i[1],r);return Object.keys(o).length>0?M({},o,a):a}return n}function ce(e,r,t,n,i){if(void 0===r)return 0;for(var o=0;o<t.length;o++){var a=t[o];if(i&&T.default(a,[re,i])){var u=I.default(r,i),s=I.default(a,[re,i],{});if(e.isValid(s,u,n))return o}else if(a.properties){var d={anyOf:Object.keys(a.properties).map((function(e){return{required:[e]}}))},f=void 0;if(a.anyOf){var l=M({},(Y(a),a));l.allOf=l.allOf?l.allOf.slice():[],l.allOf.push(d),f=l}else f=Object.assign({},a,d);if(delete f.required,e.isValid(f,r,n))return o}else if(e.isValid(a,r,n))return o}return 0}function pe(e,r,t,n,i){return ce(e,r,t,n,i)}function ve(e){return Array.isArray(e)?"array":"string"==typeof e?"string":null==e?"null":"boolean"==typeof e?"boolean":isNaN(e)?"object"==typeof e?"object":"string":"number"}function me(e){var r=e.type;return!r&&e.const?ve(e.const):!r&&e.enum?"string":r||!e.properties&&!e.additionalProperties?(Array.isArray(r)&&2===r.length&&r.includes("null")&&(r=r.find((function(e){return"null"!==e}))),r):"object"}function he(e,r){var t=Object.assign({},e);return Object.keys(r).reduce((function(t,n){var i=e?e[n]:{},o=r[n];return t[n]=e&&n in e&&L(o)?he(i,o):e&&r&&("object"===me(e)||"object"===me(r))&&n===te&&Array.isArray(i)&&Array.isArray(o)?U.default(i,o):o,t}),t)}var ye=["if","then","else"],ge=["$ref"],be=["allOf"],Oe=["dependencies"],Ae=["oneOf"];function Se(e,r,t,n){return Ee(e,M({},le(r.$ref,t),K(r,ge)),t,n)}function Ee(e,r,t,n){if(void 0===t&&(t={}),!L(r))return{};var i=function(e,r,t,n){if(void 0===t&&(t={}),ne in r)return Se(e,r,t,n);if(J in r){var i=Ie(e,r,t,n);return Ee(e,i,t,n)}return $ in r?M({},r,{allOf:r.allOf.map((function(r){return Ee(e,r,t,n)}))}):r}(e,r,t,n);if("if"in r)return function(e,r,t,n){var i=r.if,o=r.then,a=r.else,u=K(r,ye),s=e.isValid(i,n,t)?o:a;return Ee(e,s&&"boolean"!=typeof s?he(u,Ee(e,s,t,n)):u,t,n)}(e,r,t,n);var o=n||{};if($ in r)try{i=F.default(i,{deep:!1})}catch(e){return console.warn("could not merge subschemas in allOf:\n",e),K(i,be)}return V in i&&!1!==i.additionalProperties?function(e,r,t,n){var i=M({},r,{properties:M({},r.properties)}),o=n&&L(n)?n:{};return Object.keys(o).forEach((function(r){var n;r in i.properties||(n="boolean"!=typeof i.additionalProperties?ne in i.additionalProperties?Ee(e,{$ref:I.default(i.additionalProperties,[ne])},t,o):"type"in i.additionalProperties?M({},i.additionalProperties):H in i.additionalProperties||ee in i.additionalProperties?M({type:"object"},i.additionalProperties):{type:ve(I.default(o,[r]))}:{type:ve(I.default(o,[r]))},i.properties[r]=n,N.default(i.properties,[r,B],!0))})),i}(e,i,t,o):i}function Ie(e,r,t,n){var i=r.dependencies,o=K(r,Oe);return Array.isArray(o.oneOf)?o=o.oneOf[pe(e,n,o.oneOf,t)]:Array.isArray(o.anyOf)&&(o=o.anyOf[pe(e,n,o.anyOf,t)]),we(e,i,o,t,n)}function we(e,r,t,n,i){var o=t;for(var a in r)if(void 0!==I.default(i,[a])&&(!o.properties||a in o.properties)){var u=fe(a,r),s=u[0],d=u[1];return Array.isArray(d)?o=je(o,d):L(d)&&(o=_e(e,o,n,a,d,i)),we(e,s,o,n,i)}return o}function je(e,r){return r?M({},e,{required:Array.isArray(e.required)?Array.from(new Set([].concat(e.required,r))):r}):e}function _e(e,r,t,n,i,o){var a=Ee(e,i,t,o),u=a.oneOf;if(r=he(r,K(a,Ae)),void 0===u)return r;var s=u.map((function(r){return"boolean"!=typeof r&&ne in r?Se(e,r,t,o):r}));return function(e,r,t,n,i,o){var a=i.filter((function(r){if("boolean"==typeof r||!r||!r.properties)return!1;var i=r.properties[n];if(i){var a,u={type:"object",properties:(a={},a[n]=i,a)};return e.isValid(u,o,t)}return!1}));if(1!==a.length)return console.warn("ignoring oneOf in dependencies because there isn't exactly one subschema that is valid"),r;var u=a[0],s=M({},u,{properties:fe(n,u.properties)[0]});return he(r,Ee(e,s,t,o))}(e,r,t,n,s,o)}var Te,Pe={type:"object",properties:{__not_really_there__:{type:"number"}}};function We(e,r,t,n){void 0===n&&(n={});var i=0;return t&&(P.default(t.properties)?i+=D.default(t.properties,(function(t,i,o){var a=I.default(n,o);if("boolean"==typeof i)return t;if(T.default(i,ne)){var u=Ee(e,i,r,a);return t+We(e,r,u,a||{})}if(T.default(i,ee)&&a)return t+De(e,r,a,I.default(i,ee));if("object"===i.type)return t+We(e,r,i,a||{});if(i.type===ve(a)){var s=t+1;return i.default?s+=a===i.default?1:-1:i.const&&(s+=a===i.const?1:-1),s}return t}),0):W.default(t.type)&&t.type===ve(n)&&(i+=1)),i}function De(e,r,t,n,i,o){void 0===i&&(i=-1);var a=n.reduce((function(n,i,a){return 1===pe(e,t,[Pe,i],r,o)&&n.push(a),n}),[]);return 1===a.length?a[0]:(a.length||x.default(n.length,(function(e){return a.push(e)})),a.reduce((function(i,o){var a=i.bestScore,u=n[o];T.default(u,ne)&&(u=Ee(e,u,r,t));var s=We(e,r,u,t);return s>a?{bestIndex:o,bestScore:s}:i}),{bestIndex:i,bestScore:0}).bestIndex)}function xe(e){return Array.isArray(e.items)&&e.items.length>0&&e.items.every((function(e){return L(e)}))}function Ne(e,r){if(Array.isArray(r)){var t=Array.isArray(e)?e:[];return r.map((function(e,r){return t[r]?Ne(t[r],e):e}))}if(L(r)){var n=Object.assign({},e);return Object.keys(r).reduce((function(t,n){return t[n]=Ne(e?I.default(e,n):{},I.default(r,n)),t}),n)}return r}function Fe(e,r,t){return void 0===t&&(t=!1),Object.keys(r).reduce((function(n,i){var o=e?e[i]:{},a=r[i];if(e&&i in e&&L(a))n[i]=Fe(o,a,t);else if(t&&Array.isArray(o)&&Array.isArray(a)){var u=a;"preventDuplicates"===t&&(u=a.reduce((function(e,r){return o.includes(r)||e.push(r),e}),[])),n[i]=o.concat(u)}else n[i]=a;return n}),Object.assign({},e))}function Ue(e){return Array.isArray(e.enum)&&1===e.enum.length||G in e}function Re(e,r,t){void 0===t&&(t={});var n=Ee(e,r,t,void 0),i=n.oneOf||n.anyOf;return!!Array.isArray(n.enum)||!!Array.isArray(i)&&i.every((function(e){return"boolean"!=typeof e&&Ue(e)}))}function qe(e,r,t){return!(!r.uniqueItems||!r.items||"boolean"==typeof r.items)&&Re(e,r.items,t)}function Ce(e,r,t){if(void 0===r&&(r=Te.Ignore),void 0===t&&(t=-1),t>=0){if(Array.isArray(e.items)&&t<e.items.length){var n=e.items[t];if("boolean"!=typeof n)return n}}else if(e.items&&!Array.isArray(e.items)&&"boolean"!=typeof e.items)return e.items;return r!==Te.Ignore&&L(e.additionalItems)?e.additionalItems:{}}function ke(e,r,t,n,i){void 0===i&&(i=[]),n?e[r]=t:L(t)?w.default(t)&&!i.includes(r)||(e[r]=t):void 0!==t&&(e[r]=t)}function Le(e,r,t,n,i,o,a){void 0===n&&(n={}),void 0===o&&(o=!1),void 0===a&&(a=[]);var u=L(i)?i:{},s=L(r)?r:{},d=t;if(L(d)&&L(s.default))d=Fe(d,s.default);else if(z in s)d=s.default;else if(ne in s){var f=s.$ref;if(!a.includes(f)){var l=le(f,n);return Le(e,l,d,n,u,o,a.concat(f))}}else{if(J in s){var c=Ie(e,s,n,u);return Le(e,c,d,n,u,o,a)}if(xe(s))d=s.items.map((function(r,i){return Le(e,r,Array.isArray(t)?t[i]:void 0,n,u,o,a)}));else if(ee in s){if(0===s.oneOf.length)return;s=s.oneOf[De(e,n,w.default(u)?void 0:u,s.oneOf,0)]}else if(H in s){if(0===s.anyOf.length)return;s=s.anyOf[De(e,n,w.default(u)?void 0:u,s.anyOf,0)]}}switch(void 0===d&&(d=s.default),me(s)){case"object":var p=Object.keys(s.properties||{}).reduce((function(r,t){return ke(r,t,Le(e,I.default(s,[re,t]),I.default(d,[t]),n,I.default(u,[t]),!0===o,a),o,s.required),r}),{});if(s.additionalProperties){var v=L(s.additionalProperties)?s.additionalProperties:{},m=new Set;L(d)&&Object.keys(d).filter((function(e){return!s.properties||!s.properties[e]})).forEach((function(e){return m.add(e)})),L(u)&&Object.keys(u).filter((function(e){return!s.properties||!s.properties[e]})).forEach((function(e){return m.add(e)})),m.forEach((function(r){var t=Le(e,v,I.default(d,[r]),n,I.default(u,[r]),!0===o,a);ke(p,r,t,o)}))}return p;case"array":if(Array.isArray(d)&&(d=d.map((function(r,t){var i=Ce(s,Te.Fallback,t);return Le(e,i,r,n,void 0,void 0,a)}))),Array.isArray(i)){var h=Ce(s);d=i.map((function(r,t){return Le(e,h,I.default(d,[t]),n,r,void 0,a)}))}if(s.minItems){if(!qe(e,s,n)){var y=Array.isArray(d)?d.length:0;if(s.minItems>y){var g=d||[],b=Ce(s,Te.Invert),O=b.default,A=new Array(s.minItems-y).fill(Le(e,b,O,n,void 0,void 0,a));return g.concat(A)}}return d||[]}}return d}function Me(e,r,t,n,i){if(void 0===i&&(i=!1),!L(r))throw new Error("Invalid schema: "+r);var o=Le(e,Ee(e,r,n,t),void 0,n,t,i);return null==t||"number"==typeof t&&isNaN(t)?o:L(t)||Array.isArray(t)?Ne(o,t):t}function Ye(e){return void 0===e&&(e={}),"widget"in se(e)&&"hidden"!==se(e).widget}function Ke(e,r,t,n){if(void 0===t&&(t={}),"files"===t["ui:widget"])return!0;if(r.items){var i=Ee(e,r.items,n);return"string"===i.type&&"data-url"===i.format}return!1}function Be(e,r,t,n,i){void 0===t&&(t={});var o=se(t,i).label,a=!(void 0!==o&&!o),u=me(r);return"array"===u&&(a=qe(e,r,n)||Ke(e,r,t,n)||Ye(t)),"object"===u&&(a=!1),"boolean"!==u||t["ui:widget"]||(a=!1),t["ui:field"]&&(a=!1),a}function Ve(e,r,t){if(!t)return r;var n=r.errors,i=r.errorSchema,o=e.toErrorList(t),a=t;return w.default(i)||(a=Fe(i,t,!0),o=[].concat(n).concat(o)),{errorSchema:a,errors:o}}!function(e){e[e.Ignore=0]="Ignore",e[e.Invert=1]="Invert",e[e.Fallback=2]="Fallback"}(Te||(Te={}));var $e=Symbol("no Value");function He(e,r,t,n,i){var o;if(void 0===i&&(i={}),T.default(t,re)){var a={};if(T.default(n,re)){var u=I.default(n,re,{});Object.keys(u).forEach((function(e){T.default(i,e)&&(a[e]=void 0)}))}var s=Object.keys(I.default(t,re,{})),d={};s.forEach((function(o){var u=I.default(i,o),s=I.default(n,[re,o],{}),f=I.default(t,[re,o],{});T.default(s,ne)&&(s=Ee(e,s,r,u)),T.default(f,ne)&&(f=Ee(e,f,r,u));var l=I.default(s,"type"),c=I.default(f,"type");if(!l||l===c)if(T.default(a,o)&&delete a[o],"object"===c||"array"===c&&Array.isArray(u)){var p=He(e,r,f,s,u);void 0===p&&"array"!==c||(d[o]=p)}else{var v=I.default(f,"default",$e),m=I.default(s,"default",$e);v!==$e&&v!==u&&(m===u?a[o]=v:!0===I.default(f,"readOnly")&&(a[o]=void 0));var h=I.default(f,"const",$e),y=I.default(s,"const",$e);h!==$e&&h!==u&&(a[o]=y===u?h:void 0)}})),o=M({},i,a,d)}else if("array"===I.default(n,"type")&&"array"===I.default(t,"type")&&Array.isArray(i)){var f=I.default(n,"items"),l=I.default(t,"items");if("object"!=typeof f||"object"!=typeof l||Array.isArray(f)||Array.isArray(l))"boolean"==typeof f&&"boolean"==typeof l&&f===l&&(o=i);else{T.default(f,ne)&&(f=Ee(e,f,r,i)),T.default(l,ne)&&(l=Ee(e,l,r,i));var c=I.default(f,"type"),p=I.default(l,"type");if(!c||c===p){var v=I.default(t,"maxItems",-1);o="object"===p?i.reduce((function(t,n){var i=He(e,r,l,f,n);return void 0!==i&&(v<0||t.length<v)&&t.push(i),t}),[]):v>0&&i.length>v?i.slice(0,v):i}}}return o}function Ge(e,r,t,n,i,o,a,u){if(void 0===u&&(u=[]),ne in r||J in r||$ in r){var s=Ee(e,r,o,a);if(-1===u.findIndex((function(e){return R.default(e,s)})))return Ge(e,s,t,n,i,o,a,u.concat(s))}if(Z in r&&!I.default(r,[Z,ne]))return Ge(e,I.default(r,Z),t,n,i,o,a,u);var d={$id:i||t};if("object"===me(r)&&re in r)for(var f in r.properties){var l=I.default(r,[re,f]),c=d.$id+n+f;d[f]=Ge(e,L(l)?l:{},t,n,c,o,I.default(a,[f]),u)}return d}function ze(e,r,t,n,i,o,a){return void 0===o&&(o="root"),void 0===a&&(a="_"),Ge(e,r,o,a,t,n,i)}function Je(e,r,t,n,i,o){var a;if(void 0===o&&(o=[]),ne in r||J in r||$ in r){var u=Ee(e,r,n,i);if(-1===o.findIndex((function(e){return R.default(e,u)})))return Je(e,u,t,n,i,o.concat(u))}var s=((a={}).$name=t.replace(/^\./,""),a);if(ee in r){var d=De(e,n,i,r.oneOf,0);return Je(e,r.oneOf[d],t,n,i,o)}if(H in r){var f=De(e,n,i,r.anyOf,0);return Je(e,r.anyOf[f],t,n,i,o)}if(V in r&&!1!==r.additionalProperties&&N.default(s,ie,!0),Z in r&&Array.isArray(i))i.forEach((function(i,a){s[a]=Je(e,r.items,t+"."+a,n,i,o)}));else if(re in r)for(var l in r.properties){var c=I.default(r,[re,l]);s[l]=Je(e,c,t+"."+l,n,I.default(i,[l]),o)}return s}function Qe(e,r,t,n,i){return void 0===t&&(t=""),Je(e,r,t,n,i)}var Xe=function(){function e(e,r){this.rootSchema=void 0,this.validator=void 0,this.rootSchema=r,this.validator=e}var r=e.prototype;return r.getValidator=function(){return this.validator},r.doesSchemaUtilsDiffer=function(e,r){return!(!e||!r||this.validator===e&&de(this.rootSchema,r))},r.getDefaultFormState=function(e,r,t){return void 0===t&&(t=!1),Me(this.validator,e,r,this.rootSchema,t)},r.getDisplayLabel=function(e,r,t){return Be(this.validator,e,r,this.rootSchema,t)},r.getClosestMatchingOption=function(e,r,t,n){return De(this.validator,this.rootSchema,e,r,t,n)},r.getFirstMatchingOption=function(e,r,t){return pe(this.validator,e,r,this.rootSchema,t)},r.getMatchingOption=function(e,r,t){return ce(this.validator,e,r,this.rootSchema,t)},r.isFilesArray=function(e,r){return Ke(this.validator,e,r,this.rootSchema)},r.isMultiSelect=function(e){return qe(this.validator,e,this.rootSchema)},r.isSelect=function(e){return Re(this.validator,e,this.rootSchema)},r.mergeValidationData=function(e,r){return Ve(this.validator,e,r)},r.retrieveSchema=function(e,r){return Ee(this.validator,e,this.rootSchema,r)},r.sanitizeDataForNewSchema=function(e,r,t){return He(this.validator,this.rootSchema,e,r,t)},r.toIdSchema=function(e,r,t,n,i){return void 0===n&&(n="root"),void 0===i&&(i="_"),ze(this.validator,e,r,this.rootSchema,t,n,i)},r.toPathSchema=function(e,r,t){return Qe(this.validator,e,r,this.rootSchema,t)},e}();function Ze(e,r){var t=e;if(Array.isArray(r)){var n=t.split(/(%\d)/);r.forEach((function(e,r){var t=n.findIndex((function(e){return e==="%"+(r+1)}));t>=0&&(n[t]=e)})),t=n.join("")}return t}function er(e,r,t){if(void 0===r&&(r=[]),Array.isArray(e))return e.map((function(e){return er(e,r)})).filter((function(e){return e}));var n=""===e||null===e?-1:Number(e),i=r[n];return i?i.value:t}function rr(e,r){return Array.isArray(r)?r.some((function(r){return R.default(r,e)})):R.default(r,e)}var tr=function(){function e(e){this.errorSchema={},this.resetAllErrors(e)}var r,t,n=e.prototype;return n.getOrCreateErrorBlock=function(e){var r=Array.isArray(e)&&e.length>0||"string"==typeof e?I.default(this.errorSchema,e):this.errorSchema;return!r&&e&&N.default(this.errorSchema,e,r={}),r},n.resetAllErrors=function(e){return this.errorSchema=e?q.default(e):{},this},n.addErrors=function(e,r){var t,n=this.getOrCreateErrorBlock(r),i=I.default(n,X);return Array.isArray(i)||(n.__errors=i=[]),Array.isArray(e)?(t=i).push.apply(t,e):i.push(e),this},n.setErrors=function(e,r){var t=this.getOrCreateErrorBlock(r),n=Array.isArray(e)?[].concat(e):[e];return N.default(t,X,n),this},n.clearErrors=function(e){var r=this.getOrCreateErrorBlock(e);return N.default(r,X,[]),this},r=e,(t=[{key:"ErrorSchema",get:function(){return this.errorSchema}}])&&function(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,"symbol"==typeof(i=function(e,r){if("object"!=typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(n.key))?i:String(i),n)}var i}(r.prototype,t),Object.defineProperty(r,"prototype",{writable:!1}),e}();function nr(e){var r={};return e.multipleOf&&(r.step=e.multipleOf),(e.minimum||0===e.minimum)&&(r.min=e.minimum),(e.maximum||0===e.maximum)&&(r.max=e.maximum),r}var ir,or={props:{disabled:!1},submitText:"Submit",norender:!1},ar=["options"],ur={boolean:{checkbox:"CheckboxWidget",radio:"RadioWidget",select:"SelectWidget",hidden:"HiddenWidget"},string:{text:"TextWidget",password:"PasswordWidget",email:"EmailWidget",hostname:"TextWidget",ipv4:"TextWidget",ipv6:"TextWidget",uri:"URLWidget","data-url":"FileWidget",radio:"RadioWidget",select:"SelectWidget",textarea:"TextareaWidget",hidden:"HiddenWidget",date:"DateWidget",datetime:"DateTimeWidget","date-time":"DateTimeWidget","alt-date":"AltDateWidget","alt-datetime":"AltDateTimeWidget",time:"TimeWidget",color:"ColorWidget",file:"FileWidget"},number:{text:"TextWidget",select:"SelectWidget",updown:"UpDownWidget",range:"RangeWidget",radio:"RadioWidget",hidden:"HiddenWidget"},integer:{text:"TextWidget",select:"SelectWidget",updown:"UpDownWidget",range:"RangeWidget",radio:"RadioWidget",hidden:"HiddenWidget"},array:{select:"SelectWidget",checkboxes:"CheckboxesWidget",files:"FileWidget",hidden:"HiddenWidget"}};function sr(e,r,t){void 0===t&&(t={});var n=me(e);if("function"==typeof r||r&&C.default.isForwardRef(g.createElement(r))||C.default.isMemo(r))return function(e){var r=I.default(e,"MergedWidget");if(!r){var t=e.defaultProps&&e.defaultProps.options||{};N.default(e,"MergedWidget",r=function(r){var n=r.options,i=K(r,ar);return y.jsx(e,M({options:M({},t,n)},i))})}return r}(r);if("string"!=typeof r)throw new Error("Unsupported widget definition: "+typeof r);if(r in t)return sr(e,t[r],t);if("string"==typeof n){if(!(n in ur))throw new Error("No widget for type '"+n+"'");if(r in ur[n])return sr(e,t[ur[n][r]],t)}throw new Error("No widget '"+r+"' for type '"+n+"'")}function dr(e,r){return(W.default(e)?e:e.$id)+"__"+r}function fr(e){return dr(e,"description")}function lr(e){return dr(e,"error")}function cr(e){return dr(e,"examples")}function pr(e){return dr(e,"help")}function vr(e){if(Q in e&&Array.isArray(e.enum)&&1===e.enum.length)return e.enum[0];if(G in e)return e.const;throw new Error("schema cannot be inferred as a constant")}function mr(e,r){for(var t=String(e);t.length<r;)t="0"+t;return t}function hr(e,r){if(void 0===r&&(r=[]),!e)return[];var t=[];return X in e&&(t=t.concat(e.__errors.map((function(e){var t="."+r.join(".");return{property:t,message:e,stack:t+" "+e}})))),Object.keys(e).reduce((function(t,n){if(n!==X){var i=e[n];S.default(i)&&(t=t.concat(hr(i,[].concat(r,[n]))))}return t}),t)}e.TranslatableString=void 0,(ir=e.TranslatableString||(e.TranslatableString={})).ArrayItemTitle="Item",ir.MissingItems="Missing items definition",ir.YesLabel="Yes",ir.NoLabel="No",ir.CloseLabel="Close",ir.ErrorsLabel="Errors",ir.NewStringDefault="New Value",ir.AddButton="Add",ir.AddItemButton="Add Item",ir.CopyButton="Copy",ir.MoveDownButton="Move down",ir.MoveUpButton="Move up",ir.RemoveButton="Remove",ir.NowLabel="Now",ir.ClearLabel="Clear",ir.AriaDateLabel="Select a date",ir.PreviewLabel="Preview",ir.DecrementAriaLabel="Decrease value by 1",ir.IncrementAriaLabel="Increase value by 1",ir.UnknownFieldType="Unknown field type %1",ir.OptionPrefix="Option %1",ir.TitleOptionPrefix="%1 option %2",ir.KeyLabel="%1 Key",ir.InvalidObjectField='Invalid "%1" object field configuration: <em>%2</em>.',ir.UnsupportedField="Unsupported field schema.",ir.UnsupportedFieldWithId="Unsupported field schema for field <code>%1</code>.",ir.UnsupportedFieldWithReason="Unsupported field schema: <em>%1</em>.",ir.UnsupportedFieldWithIdAndReason="Unsupported field schema for field <code>%1</code>: <em>%2</em>.",ir.FilesInfo="<strong>%1</strong> (%2, %3 bytes)",e.ADDITIONAL_PROPERTIES_KEY=V,e.ADDITIONAL_PROPERTY_FLAG=B,e.ALL_OF_KEY=$,e.ANY_OF_KEY=H,e.CONST_KEY=G,e.DEFAULT_KEY=z,e.DEFINITIONS_KEY="definitions",e.DEPENDENCIES_KEY=J,e.ENUM_KEY=Q,e.ERRORS_KEY=X,e.ErrorSchemaBuilder=tr,e.ID_KEY="$id",e.ITEMS_KEY=Z,e.NAME_KEY="$name",e.ONE_OF_KEY=ee,e.PROPERTIES_KEY=re,e.REF_KEY=ne,e.REQUIRED_KEY=te,e.RJSF_ADDITONAL_PROPERTIES_FLAG=ie,e.ROOT_SCHEMA_PREFIX=oe,e.SUBMIT_BTN_OPTIONS_KEY="submitButtonOptions",e.UI_FIELD_KEY="ui:field",e.UI_GLOBAL_OPTIONS_KEY="ui:globalOptions",e.UI_OPTIONS_KEY=ue,e.UI_WIDGET_KEY=ae,e.allowAdditionalItems=function(e){return!0===e.additionalItems&&console.warn("additionalItems=true is currently not supported"),L(e.additionalItems)},e.ariaDescribedByIds=function(e,r){void 0===r&&(r=!1);var t=r?" "+cr(e):"";return lr(e)+" "+fr(e)+" "+pr(e)+t},e.asNumber=function(e){if(""!==e){if(null===e)return null;if(/\.$/.test(e))return e;if(/\.0$/.test(e))return e;if(/\.\d*0$/.test(e))return e;var r=Number(e);return"number"!=typeof r||Number.isNaN(r)?e:r}},e.canExpand=function(e,r,t){if(void 0===r&&(r={}),!e.additionalProperties)return!1;var n=se(r).expandable,i=void 0===n||n;return!1===i?i:void 0===e.maxProperties||!t||Object.keys(t).length<e.maxProperties},e.createErrorHandler=function e(r){var t,n=((t={}).__errors=[],t.addError=function(e){this.__errors.push(e)},t);if(Array.isArray(r))return r.reduce((function(r,t,n){var i;return M({},r,((i={})[n]=e(t),i))}),n);if(S.default(r)){var i=r;return Object.keys(i).reduce((function(r,t){var n;return M({},r,((n={})[t]=e(i[t]),n))}),n)}return n},e.createSchemaUtils=function(e,r){return new Xe(e,r)},e.dataURItoBlob=function(e){var r,t=e.split(","),n=t[0].split(";"),i=n[0].replace("data:",""),o=n.filter((function(e){return"name"===e.split("=")[0]}));r=1!==o.length?"unknown":decodeURI(o[0].split("=")[1]);try{for(var a=atob(t[1]),u=[],s=0;s<a.length;s++)u.push(a.charCodeAt(s));return{blob:new window.Blob([new Uint8Array(u)],{type:i}),name:r}}catch(r){return{blob:{size:0,type:r.message},name:e}}},e.deepEquals=de,e.descriptionId=fr,e.englishStringTranslator=function(e,r){return Ze(e,r)},e.enumOptionsDeselectValue=function(e,r,t){void 0===t&&(t=[]);var n=er(e,t);return Array.isArray(r)?r.filter((function(e){return!R.default(e,n)})):R.default(n,r)?void 0:r},e.enumOptionsIndexForValue=function(e,r,t){void 0===r&&(r=[]),void 0===t&&(t=!1);var n=r.map((function(r,t){return rr(r.value,e)?String(t):void 0})).filter((function(e){return void 0!==e}));return t?n:n[0]},e.enumOptionsIsSelected=rr,e.enumOptionsSelectValue=function(e,r,t){void 0===t&&(t=[]);var n=er(e,t);if(n){var i=t.findIndex((function(e){return n===e.value})),o=t.map((function(e){return e.value}));return r.slice(0,i).concat(n,r.slice(i)).sort((function(e,r){return Number(o.indexOf(e)>o.indexOf(r))}))}return r},e.enumOptionsValueForIndex=er,e.errorId=lr,e.examplesId=cr,e.findSchemaDefinition=le,e.getClosestMatchingOption=De,e.getDefaultFormState=Me,e.getDisplayLabel=Be,e.getFirstMatchingOption=pe,e.getInputProps=function(e,r,t,n){void 0===t&&(t={}),void 0===n&&(n=!0);var i=M({type:r||"text"},nr(e));return t.inputType?i.type=t.inputType:r||("number"===e.type?(i.type="number",n&&void 0===i.step&&(i.step="any")):"integer"===e.type&&(i.type="number",void 0===i.step&&(i.step=1))),t.autocomplete&&(i.autoComplete=t.autocomplete),i},e.getMatchingOption=ce,e.getSchemaType=me,e.getSubmitButtonOptions=function(e){void 0===e&&(e={});var r=se(e);return r&&r.submitButtonOptions?M({},or,r.submitButtonOptions):or},e.getTemplate=function(e,r,t){void 0===t&&(t={});var n=r.templates;return"ButtonTemplates"===e?n[e]:t[e]||n[e]},e.getUiOptions=se,e.getWidget=sr,e.guessType=ve,e.hasWidget=function(e,r,t){void 0===t&&(t={});try{return sr(e,r,t),!0}catch(e){var n=e;if(n.message&&(n.message.startsWith("No widget")||n.message.startsWith("Unsupported widget")))return!1;throw e}},e.helpId=pr,e.isConstant=Ue,e.isCustomWidget=Ye,e.isFilesArray=Ke,e.isFixedItems=xe,e.isMultiSelect=qe,e.isObject=L,e.isSelect=Re,e.labelValue=function(e,r,t){return r?t:e},e.localToUTC=function(e){return e?new Date(e).toJSON():void 0},e.mergeDefaultsWithFormData=Ne,e.mergeObjects=Fe,e.mergeSchemas=he,e.mergeValidationData=Ve,e.optionId=function(e,r){return e+"-"+r},e.optionsList=function(e){var r=e;if(e.enum)return e.enum.map((function(e,t){return{label:r.enumNames&&r.enumNames[t]||String(e),value:e}}));var t=e.oneOf||e.anyOf;return t&&t.map((function(e){var r=e,t=vr(r);return{schema:r,label:r.title||String(t),value:t}}))},e.orderProperties=function(e,r){if(!Array.isArray(r))return e;var t,n=function(e){return e.reduce((function(e,r){return e[r]=!0,e}),{})},i=n(e),o=r.filter((function(e){return"*"===e||i[e]})),a=n(o),u=e.filter((function(e){return!a[e]})),s=o.indexOf("*");if(-1===s){if(u.length)throw new Error("uiSchema order list does not contain "+((t=u).length>1?"properties '"+t.join("', '")+"'":"property '"+t[0]+"'"));return o}if(s!==o.lastIndexOf("*"))throw new Error("uiSchema order list contains more than one wildcard item");var d=[].concat(o);return d.splice.apply(d,[s,1].concat(u)),d},e.pad=mr,e.parseDateString=function(e,r){if(void 0===r&&(r=!0),!e)return{year:-1,month:-1,day:-1,hour:r?-1:0,minute:r?-1:0,second:r?-1:0};var t=new Date(e);if(Number.isNaN(t.getTime()))throw new Error("Unable to parse date "+e);return{year:t.getUTCFullYear(),month:t.getUTCMonth()+1,day:t.getUTCDate(),hour:r?t.getUTCHours():0,minute:r?t.getUTCMinutes():0,second:r?t.getUTCSeconds():0}},e.rangeSpec=nr,e.replaceStringParameters=Ze,e.retrieveSchema=Ee,e.sanitizeDataForNewSchema=He,e.schemaRequiresTrueValue=function e(r){return!!r.const||!(!r.enum||1!==r.enum.length||!0!==r.enum[0])||(r.anyOf&&1===r.anyOf.length?e(r.anyOf[0]):r.oneOf&&1===r.oneOf.length?e(r.oneOf[0]):!!r.allOf&&r.allOf.some((function(r){return e(r)})))},e.shouldRender=function(e,r,t){var n=e.state;return!de(e.props,r)||!de(n,t)},e.titleId=function(e){return dr(e,"title")},e.toConstant=vr,e.toDateString=function(e,r){void 0===r&&(r=!0);var t=e.hour,n=e.minute,i=e.second,o=Date.UTC(e.year,e.month-1,e.day,void 0===t?0:t,void 0===n?0:n,void 0===i?0:i),a=new Date(o).toJSON();return r?a:a.slice(0,10)},e.toErrorList=hr,e.toErrorSchema=function(e){var r=new tr;return e.length&&e.forEach((function(e){var t=e.property,n=e.message,i="."===t?[]:k.default(t);i.length>0&&""===i[0]&&i.splice(0,1),n&&r.addErrors(n,i)})),r.ErrorSchema},e.toIdSchema=ze,e.toPathSchema=Qe,e.unwrapErrorHandler=function e(r){return Object.keys(r).reduce((function(t,n){if("addError"===n)return t;var i,o,a=r[n];return S.default(a)?M({},t,((o={})[n]=e(a),o)):M({},t,((i={})[n]=a,i))}),{})},e.utcToLocal=function(e){if(!e)return"";var r=new Date(e);return mr(r.getFullYear(),4)+"-"+mr(r.getMonth()+1,2)+"-"+mr(r.getDate(),2)+"T"+mr(r.getHours(),2)+":"+mr(r.getMinutes(),2)+":"+mr(r.getSeconds(),2)+"."+mr(r.getMilliseconds(),3)},e.validationDataMerge=function(e,r){if(!r)return e;var t=e.errors,n=e.errorSchema,i=hr(r),o=r;return w.default(n)||(o=Fe(n,r,!0),i=[].concat(t).concat(i)),{errorSchema:o,errors:i}},e.withIdRefPrefix=function e(r){return r.constructor===Object?function(r){for(var t in r){var n=r[t];r[t]=t===ne&&"string"==typeof n&&n.startsWith("#")?oe+n:e(n)}return r}(M({},r)):Array.isArray(r)?function(r){for(var t=0;t<r.length;t++)r[t]=e(r[t]);return r}([].concat(r)):r},Object.defineProperty(e,"__esModule",{value:!0})})); | ||
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports,require("lodash-es/isPlainObject"),require("lodash-es/isEqualWith"),require("lodash-es/get"),require("lodash-es/isEmpty"),require("jsonpointer"),require("lodash-es/omit"),require("lodash-es/has"),require("lodash-es/isObject"),require("lodash-es/isString"),require("lodash-es/reduce"),require("lodash-es/times"),require("lodash-es/set"),require("json-schema-merge-allof"),require("lodash-es/union"),require("lodash-es/isEqual"),require("lodash-es/cloneDeep"),require("react/jsx-runtime"),require("react"),require("react-is"),require("lodash-es/toPath")):"function"==typeof define&&define.amd?define(["exports","lodash-es/isPlainObject","lodash-es/isEqualWith","lodash-es/get","lodash-es/isEmpty","jsonpointer","lodash-es/omit","lodash-es/has","lodash-es/isObject","lodash-es/isString","lodash-es/reduce","lodash-es/times","lodash-es/set","json-schema-merge-allof","lodash-es/union","lodash-es/isEqual","lodash-es/cloneDeep","react/jsx-runtime","react","react-is","lodash-es/toPath"],r):r((e="undefined"!=typeof globalThis?globalThis:e||self)["@rjsf/utils"]={},e.isPlainObject,e.isEqualWith,e.get,e.isEmpty,e.jsonpointer,e.omit,e.has,e.isObject$1,e.isString,e.reduce,e.times,e.set,e.mergeAllOf,e.union,e.isEqual,e.cloneDeep,e.jsxRuntime,e.React,e.ReactIs,e.toPath)}(this,(function(e,r,t,n,i,o,a,u,s,f,d,l,c,p,v,m,h,y,g,b,O){"use strict";function A(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var S=A(r),E=A(t),I=A(n),w=A(i),j=A(o),_=A(a),T=A(u),W=A(s),D=A(f),P=A(d),x=A(l),N=A(c),F=A(p),U=A(v),R=A(m),q=A(h),C=A(b),k=A(O);function L(e){return!("undefined"!=typeof File&&e instanceof File||"undefined"!=typeof Date&&e instanceof Date||"object"!=typeof e||null===e||Array.isArray(e))}function M(){return M=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},M.apply(this,arguments)}function Y(e){if(null==e)throw new TypeError("Cannot destructure "+e)}function K(e,r){if(null==e)return{};var t,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r.indexOf(t=o[n])>=0||(i[t]=e[t]);return i}var B="__additional_property",V="additionalProperties",$="allOf",H="anyOf",G="const",z="default",J="dependencies",Q="enum",X="__errors",Z="$id",ee="items",re="$name",te="oneOf",ne="properties",ie="required",oe="submitButtonOptions",ae="$ref",ue="__rjsf_additionalProperties",se="__rjsf_rootSchema",fe="ui:field",de="ui:widget",le="ui:options";function ce(e,r){return void 0===e&&(e={}),void 0===r&&(r={}),Object.keys(e).filter((function(e){return 0===e.indexOf("ui:")})).reduce((function(r,t){var n,i=e[t];return t===de&&L(i)?(console.error("Setting options via ui:widget object is no longer supported, use ui:options instead"),r):t===le&&L(i)?M({},r,i):M({},r,((n={})[t.substring(3)]=i,n))}),M({},r))}function pe(e,r){return E.default(e,r,(function(e,r){if("function"==typeof e&&"function"==typeof r)return!0}))}function ve(e,r){var t=r[e];return[_.default(r,[e]),t]}function me(e,r){void 0===r&&(r={});var t=e||"";if(!t.startsWith("#"))throw new Error("Could not find a definition for "+e+".");t=decodeURIComponent(t.substring(1));var n=j.default.get(r,t);if(void 0===n)throw new Error("Could not find a definition for "+e+".");if(n[ae]){var i=ve(ae,n),o=i[0],a=me(i[1],r);return Object.keys(o).length>0?M({},o,a):a}return n}function he(e,r,t,n,i){if(void 0===r)return 0;for(var o=0;o<t.length;o++){var a=t[o];if(i&&T.default(a,[ne,i])){var u=I.default(r,i),s=I.default(a,[ne,i],{});if(e.isValid(s,u,n))return o}else if(a[ne]){var f={anyOf:Object.keys(a[ne]).map((function(e){return{required:[e]}}))},d=void 0;if(a.anyOf){var l=M({},(Y(a),a));l.allOf=l.allOf?l.allOf.slice():[],l.allOf.push(f),d=l}else d=Object.assign({},a,f);if(delete d.required,e.isValid(d,r,n))return o}else if(e.isValid(a,r,n))return o}return 0}function ye(e,r,t,n,i){return he(e,r,t,n,i)}function ge(e){return Array.isArray(e)?"array":"string"==typeof e?"string":null==e?"null":"boolean"==typeof e?"boolean":isNaN(e)?"object"==typeof e?"object":"string":"number"}function be(e){var r=e.type;return!r&&e.const?ge(e.const):!r&&e.enum?"string":r||!e.properties&&!e.additionalProperties?(Array.isArray(r)&&2===r.length&&r.includes("null")&&(r=r.find((function(e){return"null"!==e}))),r):"object"}function Oe(e,r){var t=Object.assign({},e);return Object.keys(r).reduce((function(t,n){var i=e?e[n]:{},o=r[n];return t[n]=e&&n in e&&L(o)?Oe(i,o):e&&r&&("object"===be(e)||"object"===be(r))&&n===ie&&Array.isArray(i)&&Array.isArray(o)?U.default(i,o):o,t}),t)}var Ae=["if","then","else"],Se=["$ref"],Ee=["allOf"],Ie=["dependencies"],we=["oneOf"];function je(e,r,t,n){return _e(e,M({},me(r.$ref,t),K(r,Se)),t,n)}function _e(e,r,t,n){if(void 0===t&&(t={}),!L(r))return{};var i=function(e,r,t,n){if(void 0===t&&(t={}),ae in r)return je(e,r,t,n);if(J in r){var i=Te(e,r,t,n);return _e(e,i,t,n)}return $ in r?M({},r,{allOf:r.allOf.map((function(r){return _e(e,r,t,n)}))}):r}(e,r,t,n);if("if"in r)return function(e,r,t,n){var i=r.if,o=r.then,a=r.else,u=K(r,Ae),s=e.isValid(i,n,t)?o:a;return _e(e,s&&"boolean"!=typeof s?Oe(u,_e(e,s,t,n)):u,t,n)}(e,r,t,n);var o=n||{};if($ in r)try{i=F.default(i,{deep:!1})}catch(e){return console.warn("could not merge subschemas in allOf:\n",e),K(i,Ee)}return V in i&&!1!==i.additionalProperties?function(e,r,t,n){var i=M({},r,{properties:M({},r.properties)}),o=n&&L(n)?n:{};return Object.keys(o).forEach((function(r){var n;r in i.properties||(n="boolean"!=typeof i.additionalProperties?ae in i.additionalProperties?_e(e,{$ref:I.default(i.additionalProperties,[ae])},t,o):"type"in i.additionalProperties?M({},i.additionalProperties):H in i.additionalProperties||te in i.additionalProperties?M({type:"object"},i.additionalProperties):{type:ge(I.default(o,[r]))}:{type:ge(I.default(o,[r]))},i.properties[r]=n,N.default(i.properties,[r,B],!0))})),i}(e,i,t,o):i}function Te(e,r,t,n){var i=r.dependencies,o=K(r,Ie);return Array.isArray(o.oneOf)?o=o.oneOf[ye(e,n,o.oneOf,t)]:Array.isArray(o.anyOf)&&(o=o.anyOf[ye(e,n,o.anyOf,t)]),We(e,i,o,t,n)}function We(e,r,t,n,i){var o=t;for(var a in r)if(void 0!==I.default(i,[a])&&(!o.properties||a in o.properties)){var u=ve(a,r),s=u[0],f=u[1];return Array.isArray(f)?o=De(o,f):L(f)&&(o=Pe(e,o,n,a,f,i)),We(e,s,o,n,i)}return o}function De(e,r){return r?M({},e,{required:Array.isArray(e.required)?Array.from(new Set([].concat(e.required,r))):r}):e}function Pe(e,r,t,n,i,o){var a=_e(e,i,t,o),u=a.oneOf;if(r=Oe(r,K(a,we)),void 0===u)return r;var s=u.map((function(r){return"boolean"!=typeof r&&ae in r?je(e,r,t,o):r}));return function(e,r,t,n,i,o){var a=i.filter((function(r){if("boolean"==typeof r||!r||!r.properties)return!1;var i=r.properties[n];if(i){var a,u={type:"object",properties:(a={},a[n]=i,a)};return e.isValid(u,o,t)}return!1}));if(1!==a.length)return console.warn("ignoring oneOf in dependencies because there isn't exactly one subschema that is valid"),r;var u=a[0],s=M({},u,{properties:ve(n,u.properties)[0]});return Oe(r,_e(e,s,t,o))}(e,r,t,n,s,o)}var xe,Ne={type:"object",properties:{__not_really_there__:{type:"number"}}};function Fe(e,r,t,n){void 0===n&&(n={});var i=0;return t&&(W.default(t.properties)?i+=P.default(t.properties,(function(t,i,o){var a=I.default(n,o);if("boolean"==typeof i)return t;if(T.default(i,ae)){var u=_e(e,i,r,a);return t+Fe(e,r,u,a||{})}if(T.default(i,te)&&a)return t+Ue(e,r,a,I.default(i,te));if("object"===i.type)return t+Fe(e,r,i,a||{});if(i.type===ge(a)){var s=t+1;return i.default?s+=a===i.default?1:-1:i.const&&(s+=a===i.const?1:-1),s}return t}),0):D.default(t.type)&&t.type===ge(n)&&(i+=1)),i}function Ue(e,r,t,n,i,o){void 0===i&&(i=-1);var a=n.reduce((function(n,i,a){return 1===ye(e,t,[Ne,i],r,o)&&n.push(a),n}),[]);return 1===a.length?a[0]:(a.length||x.default(n.length,(function(e){return a.push(e)})),a.reduce((function(i,o){var a=i.bestScore,u=n[o];T.default(u,ae)&&(u=_e(e,u,r,t));var s=Fe(e,r,u,t);return s>a?{bestIndex:o,bestScore:s}:i}),{bestIndex:i,bestScore:0}).bestIndex)}function Re(e){return Array.isArray(e.items)&&e.items.length>0&&e.items.every((function(e){return L(e)}))}function qe(e,r){if(Array.isArray(r)){var t=Array.isArray(e)?e:[];return r.map((function(e,r){return t[r]?qe(t[r],e):e}))}if(L(r)){var n=Object.assign({},e);return Object.keys(r).reduce((function(t,n){return t[n]=qe(e?I.default(e,n):{},I.default(r,n)),t}),n)}return r}function Ce(e,r,t){return void 0===t&&(t=!1),Object.keys(r).reduce((function(n,i){var o=e?e[i]:{},a=r[i];if(e&&i in e&&L(a))n[i]=Ce(o,a,t);else if(t&&Array.isArray(o)&&Array.isArray(a)){var u=a;"preventDuplicates"===t&&(u=a.reduce((function(e,r){return o.includes(r)||e.push(r),e}),[])),n[i]=o.concat(u)}else n[i]=a;return n}),Object.assign({},e))}function ke(e){return Array.isArray(e.enum)&&1===e.enum.length||G in e}function Le(e,r,t){void 0===t&&(t={});var n=_e(e,r,t,void 0),i=n.oneOf||n.anyOf;return!!Array.isArray(n.enum)||!!Array.isArray(i)&&i.every((function(e){return"boolean"!=typeof e&&ke(e)}))}function Me(e,r,t){return!(!r.uniqueItems||!r.items||"boolean"==typeof r.items)&&Le(e,r.items,t)}function Ye(e,r,t){if(void 0===r&&(r=xe.Ignore),void 0===t&&(t=-1),t>=0){if(Array.isArray(e.items)&&t<e.items.length){var n=e.items[t];if("boolean"!=typeof n)return n}}else if(e.items&&!Array.isArray(e.items)&&"boolean"!=typeof e.items)return e.items;return r!==xe.Ignore&&L(e.additionalItems)?e.additionalItems:{}}function Ke(e,r,t,n,i){void 0===i&&(i=[]),n?e[r]=t:L(t)?w.default(t)&&!i.includes(r)||(e[r]=t):void 0!==t&&(e[r]=t)}function Be(e,r,t,n,i,o,a){void 0===n&&(n={}),void 0===o&&(o=!1),void 0===a&&(a=[]);var u=L(i)?i:{},s=L(r)?r:{},f=t;if(L(f)&&L(s.default))f=Ce(f,s.default);else if(z in s)f=s.default;else if(ae in s){var d=s[ae];if(!a.includes(d)){var l=me(d,n);return Be(e,l,f,n,u,o,a.concat(d))}}else{if(J in s){var c=Te(e,s,n,u);return Be(e,c,f,n,u,o,a)}if(Re(s))f=s.items.map((function(r,i){return Be(e,r,Array.isArray(t)?t[i]:void 0,n,u,o,a)}));else if(te in s){if(0===s.oneOf.length)return;s=s.oneOf[Ue(e,n,w.default(u)?void 0:u,s.oneOf,0)]}else if(H in s){if(0===s.anyOf.length)return;s=s.anyOf[Ue(e,n,w.default(u)?void 0:u,s.anyOf,0)]}}switch(void 0===f&&(f=s.default),be(s)){case"object":var p=Object.keys(s.properties||{}).reduce((function(r,t){return Ke(r,t,Be(e,I.default(s,[ne,t]),I.default(f,[t]),n,I.default(u,[t]),!0===o,a),o,s.required),r}),{});if(s.additionalProperties){var v=L(s.additionalProperties)?s.additionalProperties:{},m=new Set;L(f)&&Object.keys(f).filter((function(e){return!s.properties||!s.properties[e]})).forEach((function(e){return m.add(e)})),L(u)&&Object.keys(u).filter((function(e){return!s.properties||!s.properties[e]})).forEach((function(e){return m.add(e)})),m.forEach((function(r){var t=Be(e,v,I.default(f,[r]),n,I.default(u,[r]),!0===o,a);Ke(p,r,t,o)}))}return p;case"array":if(Array.isArray(f)&&(f=f.map((function(r,t){var i=Ye(s,xe.Fallback,t);return Be(e,i,r,n,void 0,void 0,a)}))),Array.isArray(i)){var h=Ye(s);f=i.map((function(r,t){return Be(e,h,I.default(f,[t]),n,r,void 0,a)}))}if(s.minItems){if(!Me(e,s,n)){var y=Array.isArray(f)?f.length:0;if(s.minItems>y){var g=f||[],b=Ye(s,xe.Invert),O=b.default,A=new Array(s.minItems-y).fill(Be(e,b,O,n,void 0,void 0,a));return g.concat(A)}}return f||[]}}return f}function Ve(e,r,t,n,i){if(void 0===i&&(i=!1),!L(r))throw new Error("Invalid schema: "+r);var o=Be(e,_e(e,r,n,t),void 0,n,t,i);return null==t||"number"==typeof t&&isNaN(t)?o:L(t)||Array.isArray(t)?qe(o,t):t}function $e(e){return void 0===e&&(e={}),"widget"in ce(e)&&"hidden"!==ce(e).widget}function He(e,r,t,n){if(void 0===t&&(t={}),"files"===t[de])return!0;if(r.items){var i=_e(e,r.items,n);return"string"===i.type&&"data-url"===i.format}return!1}function Ge(e,r,t,n,i){void 0===t&&(t={});var o=ce(t,i).label,a=!(void 0!==o&&!o),u=be(r);return"array"===u&&(a=Me(e,r,n)||He(e,r,t,n)||$e(t)),"object"===u&&(a=!1),"boolean"!==u||t[de]||(a=!1),t[fe]&&(a=!1),a}function ze(e,r,t){if(!t)return r;var n=r.errors,i=r.errorSchema,o=e.toErrorList(t),a=t;return w.default(i)||(a=Ce(i,t,!0),o=[].concat(n).concat(o)),{errorSchema:a,errors:o}}!function(e){e[e.Ignore=0]="Ignore",e[e.Invert=1]="Invert",e[e.Fallback=2]="Fallback"}(xe||(xe={}));var Je=Symbol("no Value");function Qe(e,r,t,n,i){var o;if(void 0===i&&(i={}),T.default(t,ne)){var a={};if(T.default(n,ne)){var u=I.default(n,ne,{});Object.keys(u).forEach((function(e){T.default(i,e)&&(a[e]=void 0)}))}var s=Object.keys(I.default(t,ne,{})),f={};s.forEach((function(o){var u=I.default(i,o),s=I.default(n,[ne,o],{}),d=I.default(t,[ne,o],{});T.default(s,ae)&&(s=_e(e,s,r,u)),T.default(d,ae)&&(d=_e(e,d,r,u));var l=I.default(s,"type"),c=I.default(d,"type");if(!l||l===c)if(T.default(a,o)&&delete a[o],"object"===c||"array"===c&&Array.isArray(u)){var p=Qe(e,r,d,s,u);void 0===p&&"array"!==c||(f[o]=p)}else{var v=I.default(d,"default",Je),m=I.default(s,"default",Je);v!==Je&&v!==u&&(m===u?a[o]=v:!0===I.default(d,"readOnly")&&(a[o]=void 0));var h=I.default(d,"const",Je),y=I.default(s,"const",Je);h!==Je&&h!==u&&(a[o]=y===u?h:void 0)}})),o=M({},i,a,f)}else if("array"===I.default(n,"type")&&"array"===I.default(t,"type")&&Array.isArray(i)){var d=I.default(n,"items"),l=I.default(t,"items");if("object"!=typeof d||"object"!=typeof l||Array.isArray(d)||Array.isArray(l))"boolean"==typeof d&&"boolean"==typeof l&&d===l&&(o=i);else{T.default(d,ae)&&(d=_e(e,d,r,i)),T.default(l,ae)&&(l=_e(e,l,r,i));var c=I.default(d,"type"),p=I.default(l,"type");if(!c||c===p){var v=I.default(t,"maxItems",-1);o="object"===p?i.reduce((function(t,n){var i=Qe(e,r,l,d,n);return void 0!==i&&(v<0||t.length<v)&&t.push(i),t}),[]):v>0&&i.length>v?i.slice(0,v):i}}}return o}function Xe(e,r,t,n,i,o,a,u){if(void 0===u&&(u=[]),ae in r||J in r||$ in r){var s=_e(e,r,o,a);if(-1===u.findIndex((function(e){return R.default(e,s)})))return Xe(e,s,t,n,i,o,a,u.concat(s))}if(ee in r&&!I.default(r,[ee,ae]))return Xe(e,I.default(r,ee),t,n,i,o,a,u);var f={$id:i||t};if("object"===be(r)&&ne in r)for(var d in r.properties){var l=I.default(r,[ne,d]),c=f[Z]+n+d;f[d]=Xe(e,L(l)?l:{},t,n,c,o,I.default(a,[d]),u)}return f}function Ze(e,r,t,n,i,o,a){return void 0===o&&(o="root"),void 0===a&&(a="_"),Xe(e,r,o,a,t,n,i)}function er(e,r,t,n,i,o){var a;if(void 0===o&&(o=[]),ae in r||J in r||$ in r){var u=_e(e,r,n,i);if(-1===o.findIndex((function(e){return R.default(e,u)})))return er(e,u,t,n,i,o.concat(u))}var s=((a={})[re]=t.replace(/^\./,""),a);if(te in r){var f=Ue(e,n,i,r.oneOf,0);return er(e,r.oneOf[f],t,n,i,o)}if(H in r){var d=Ue(e,n,i,r.anyOf,0);return er(e,r.anyOf[d],t,n,i,o)}if(V in r&&!1!==r[V]&&N.default(s,ue,!0),ee in r&&Array.isArray(i))i.forEach((function(i,a){s[a]=er(e,r.items,t+"."+a,n,i,o)}));else if(ne in r)for(var l in r.properties){var c=I.default(r,[ne,l]);s[l]=er(e,c,t+"."+l,n,I.default(i,[l]),o)}return s}function rr(e,r,t,n,i){return void 0===t&&(t=""),er(e,r,t,n,i)}var tr=function(){function e(e,r){this.rootSchema=void 0,this.validator=void 0,this.rootSchema=r,this.validator=e}var r=e.prototype;return r.getValidator=function(){return this.validator},r.doesSchemaUtilsDiffer=function(e,r){return!(!e||!r||this.validator===e&&pe(this.rootSchema,r))},r.getDefaultFormState=function(e,r,t){return void 0===t&&(t=!1),Ve(this.validator,e,r,this.rootSchema,t)},r.getDisplayLabel=function(e,r,t){return Ge(this.validator,e,r,this.rootSchema,t)},r.getClosestMatchingOption=function(e,r,t,n){return Ue(this.validator,this.rootSchema,e,r,t,n)},r.getFirstMatchingOption=function(e,r,t){return ye(this.validator,e,r,this.rootSchema,t)},r.getMatchingOption=function(e,r,t){return he(this.validator,e,r,this.rootSchema,t)},r.isFilesArray=function(e,r){return He(this.validator,e,r,this.rootSchema)},r.isMultiSelect=function(e){return Me(this.validator,e,this.rootSchema)},r.isSelect=function(e){return Le(this.validator,e,this.rootSchema)},r.mergeValidationData=function(e,r){return ze(this.validator,e,r)},r.retrieveSchema=function(e,r){return _e(this.validator,e,this.rootSchema,r)},r.sanitizeDataForNewSchema=function(e,r,t){return Qe(this.validator,this.rootSchema,e,r,t)},r.toIdSchema=function(e,r,t,n,i){return void 0===n&&(n="root"),void 0===i&&(i="_"),Ze(this.validator,e,r,this.rootSchema,t,n,i)},r.toPathSchema=function(e,r,t){return rr(this.validator,e,r,this.rootSchema,t)},e}();function nr(e,r){var t=e;if(Array.isArray(r)){var n=t.split(/(%\d)/);r.forEach((function(e,r){var t=n.findIndex((function(e){return e==="%"+(r+1)}));t>=0&&(n[t]=e)})),t=n.join("")}return t}function ir(e,r,t){if(void 0===r&&(r=[]),Array.isArray(e))return e.map((function(e){return ir(e,r)})).filter((function(e){return e}));var n=""===e||null===e?-1:Number(e),i=r[n];return i?i.value:t}function or(e,r){return Array.isArray(r)?r.some((function(r){return R.default(r,e)})):R.default(r,e)}var ar=function(){function e(e){this.errorSchema={},this.resetAllErrors(e)}var r,t,n=e.prototype;return n.getOrCreateErrorBlock=function(e){var r=Array.isArray(e)&&e.length>0||"string"==typeof e?I.default(this.errorSchema,e):this.errorSchema;return!r&&e&&N.default(this.errorSchema,e,r={}),r},n.resetAllErrors=function(e){return this.errorSchema=e?q.default(e):{},this},n.addErrors=function(e,r){var t,n=this.getOrCreateErrorBlock(r),i=I.default(n,X);return Array.isArray(i)||(n[X]=i=[]),Array.isArray(e)?(t=i).push.apply(t,e):i.push(e),this},n.setErrors=function(e,r){var t=this.getOrCreateErrorBlock(r),n=Array.isArray(e)?[].concat(e):[e];return N.default(t,X,n),this},n.clearErrors=function(e){var r=this.getOrCreateErrorBlock(e);return N.default(r,X,[]),this},r=e,(t=[{key:"ErrorSchema",get:function(){return this.errorSchema}}])&&function(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,"symbol"==typeof(i=function(e,r){if("object"!=typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(n.key))?i:String(i),n)}var i}(r.prototype,t),Object.defineProperty(r,"prototype",{writable:!1}),e}();function ur(e){var r={};return e.multipleOf&&(r.step=e.multipleOf),(e.minimum||0===e.minimum)&&(r.min=e.minimum),(e.maximum||0===e.maximum)&&(r.max=e.maximum),r}var sr,fr={props:{disabled:!1},submitText:"Submit",norender:!1},dr=["options"],lr={boolean:{checkbox:"CheckboxWidget",radio:"RadioWidget",select:"SelectWidget",hidden:"HiddenWidget"},string:{text:"TextWidget",password:"PasswordWidget",email:"EmailWidget",hostname:"TextWidget",ipv4:"TextWidget",ipv6:"TextWidget",uri:"URLWidget","data-url":"FileWidget",radio:"RadioWidget",select:"SelectWidget",textarea:"TextareaWidget",hidden:"HiddenWidget",date:"DateWidget",datetime:"DateTimeWidget","date-time":"DateTimeWidget","alt-date":"AltDateWidget","alt-datetime":"AltDateTimeWidget",time:"TimeWidget",color:"ColorWidget",file:"FileWidget"},number:{text:"TextWidget",select:"SelectWidget",updown:"UpDownWidget",range:"RangeWidget",radio:"RadioWidget",hidden:"HiddenWidget"},integer:{text:"TextWidget",select:"SelectWidget",updown:"UpDownWidget",range:"RangeWidget",radio:"RadioWidget",hidden:"HiddenWidget"},array:{select:"SelectWidget",checkboxes:"CheckboxesWidget",files:"FileWidget",hidden:"HiddenWidget"}};function cr(e,r,t){void 0===t&&(t={});var n=be(e);if("function"==typeof r||r&&C.default.isForwardRef(g.createElement(r))||C.default.isMemo(r))return function(e){var r=I.default(e,"MergedWidget");if(!r){var t=e.defaultProps&&e.defaultProps.options||{};N.default(e,"MergedWidget",r=function(r){var n=r.options,i=K(r,dr);return y.jsx(e,M({options:M({},t,n)},i))})}return r}(r);if("string"!=typeof r)throw new Error("Unsupported widget definition: "+typeof r);if(r in t)return cr(e,t[r],t);if("string"==typeof n){if(!(n in lr))throw new Error("No widget for type '"+n+"'");if(r in lr[n])return cr(e,t[lr[n][r]],t)}throw new Error("No widget '"+r+"' for type '"+n+"'")}function pr(e,r){return(D.default(e)?e:e[Z])+"__"+r}function vr(e){return pr(e,"description")}function mr(e){return pr(e,"error")}function hr(e){return pr(e,"examples")}function yr(e){return pr(e,"help")}function gr(e){if(Q in e&&Array.isArray(e.enum)&&1===e.enum.length)return e.enum[0];if(G in e)return e.const;throw new Error("schema cannot be inferred as a constant")}function br(e,r){for(var t=String(e);t.length<r;)t="0"+t;return t}function Or(e,r){if(void 0===r&&(r=[]),!e)return[];var t=[];return X in e&&(t=t.concat(e[X].map((function(e){var t="."+r.join(".");return{property:t,message:e,stack:t+" "+e}})))),Object.keys(e).reduce((function(t,n){if(n!==X){var i=e[n];S.default(i)&&(t=t.concat(Or(i,[].concat(r,[n]))))}return t}),t)}e.TranslatableString=void 0,(sr=e.TranslatableString||(e.TranslatableString={})).ArrayItemTitle="Item",sr.MissingItems="Missing items definition",sr.YesLabel="Yes",sr.NoLabel="No",sr.CloseLabel="Close",sr.ErrorsLabel="Errors",sr.NewStringDefault="New Value",sr.AddButton="Add",sr.AddItemButton="Add Item",sr.CopyButton="Copy",sr.MoveDownButton="Move down",sr.MoveUpButton="Move up",sr.RemoveButton="Remove",sr.NowLabel="Now",sr.ClearLabel="Clear",sr.AriaDateLabel="Select a date",sr.PreviewLabel="Preview",sr.DecrementAriaLabel="Decrease value by 1",sr.IncrementAriaLabel="Increase value by 1",sr.UnknownFieldType="Unknown field type %1",sr.OptionPrefix="Option %1",sr.TitleOptionPrefix="%1 option %2",sr.KeyLabel="%1 Key",sr.InvalidObjectField='Invalid "%1" object field configuration: <em>%2</em>.',sr.UnsupportedField="Unsupported field schema.",sr.UnsupportedFieldWithId="Unsupported field schema for field <code>%1</code>.",sr.UnsupportedFieldWithReason="Unsupported field schema: <em>%1</em>.",sr.UnsupportedFieldWithIdAndReason="Unsupported field schema for field <code>%1</code>: <em>%2</em>.",sr.FilesInfo="<strong>%1</strong> (%2, %3 bytes)",e.ADDITIONAL_PROPERTIES_KEY=V,e.ADDITIONAL_PROPERTY_FLAG=B,e.ALL_OF_KEY=$,e.ANY_OF_KEY=H,e.CONST_KEY=G,e.DEFAULT_KEY=z,e.DEFINITIONS_KEY="definitions",e.DEPENDENCIES_KEY=J,e.ENUM_KEY=Q,e.ERRORS_KEY=X,e.ErrorSchemaBuilder=ar,e.ID_KEY=Z,e.ITEMS_KEY=ee,e.NAME_KEY=re,e.ONE_OF_KEY=te,e.PROPERTIES_KEY=ne,e.REF_KEY=ae,e.REQUIRED_KEY=ie,e.RJSF_ADDITONAL_PROPERTIES_FLAG=ue,e.ROOT_SCHEMA_PREFIX=se,e.SUBMIT_BTN_OPTIONS_KEY=oe,e.UI_FIELD_KEY=fe,e.UI_GLOBAL_OPTIONS_KEY="ui:globalOptions",e.UI_OPTIONS_KEY=le,e.UI_WIDGET_KEY=de,e.allowAdditionalItems=function(e){return!0===e.additionalItems&&console.warn("additionalItems=true is currently not supported"),L(e.additionalItems)},e.ariaDescribedByIds=function(e,r){void 0===r&&(r=!1);var t=r?" "+hr(e):"";return mr(e)+" "+vr(e)+" "+yr(e)+t},e.asNumber=function(e){if(""!==e){if(null===e)return null;if(/\.$/.test(e))return e;if(/\.0$/.test(e))return e;if(/\.\d*0$/.test(e))return e;var r=Number(e);return"number"!=typeof r||Number.isNaN(r)?e:r}},e.canExpand=function(e,r,t){if(void 0===r&&(r={}),!e.additionalProperties)return!1;var n=ce(r).expandable,i=void 0===n||n;return!1===i?i:void 0===e.maxProperties||!t||Object.keys(t).length<e.maxProperties},e.createErrorHandler=function e(r){var t,n=((t={})[X]=[],t.addError=function(e){this[X].push(e)},t);if(Array.isArray(r))return r.reduce((function(r,t,n){var i;return M({},r,((i={})[n]=e(t),i))}),n);if(S.default(r)){var i=r;return Object.keys(i).reduce((function(r,t){var n;return M({},r,((n={})[t]=e(i[t]),n))}),n)}return n},e.createSchemaUtils=function(e,r){return new tr(e,r)},e.dataURItoBlob=function(e){var r,t=e.split(","),n=t[0].split(";"),i=n[0].replace("data:",""),o=n.filter((function(e){return"name"===e.split("=")[0]}));r=1!==o.length?"unknown":decodeURI(o[0].split("=")[1]);try{for(var a=atob(t[1]),u=[],s=0;s<a.length;s++)u.push(a.charCodeAt(s));return{blob:new window.Blob([new Uint8Array(u)],{type:i}),name:r}}catch(r){return{blob:{size:0,type:r.message},name:e}}},e.deepEquals=pe,e.descriptionId=vr,e.englishStringTranslator=function(e,r){return nr(e,r)},e.enumOptionsDeselectValue=function(e,r,t){void 0===t&&(t=[]);var n=ir(e,t);return Array.isArray(r)?r.filter((function(e){return!R.default(e,n)})):R.default(n,r)?void 0:r},e.enumOptionsIndexForValue=function(e,r,t){void 0===r&&(r=[]),void 0===t&&(t=!1);var n=r.map((function(r,t){return or(r.value,e)?String(t):void 0})).filter((function(e){return void 0!==e}));return t?n:n[0]},e.enumOptionsIsSelected=or,e.enumOptionsSelectValue=function(e,r,t){void 0===t&&(t=[]);var n=ir(e,t);if(n){var i=t.findIndex((function(e){return n===e.value})),o=t.map((function(e){return e.value}));return r.slice(0,i).concat(n,r.slice(i)).sort((function(e,r){return Number(o.indexOf(e)>o.indexOf(r))}))}return r},e.enumOptionsValueForIndex=ir,e.errorId=mr,e.examplesId=hr,e.findSchemaDefinition=me,e.getClosestMatchingOption=Ue,e.getDefaultFormState=Ve,e.getDisplayLabel=Ge,e.getFirstMatchingOption=ye,e.getInputProps=function(e,r,t,n){void 0===t&&(t={}),void 0===n&&(n=!0);var i=M({type:r||"text"},ur(e));return t.inputType?i.type=t.inputType:r||("number"===e.type?(i.type="number",n&&void 0===i.step&&(i.step="any")):"integer"===e.type&&(i.type="number",void 0===i.step&&(i.step=1))),t.autocomplete&&(i.autoComplete=t.autocomplete),i},e.getMatchingOption=he,e.getSchemaType=be,e.getSubmitButtonOptions=function(e){void 0===e&&(e={});var r=ce(e);return r&&r[oe]?M({},fr,r[oe]):fr},e.getTemplate=function(e,r,t){void 0===t&&(t={});var n=r.templates;return"ButtonTemplates"===e?n[e]:t[e]||n[e]},e.getUiOptions=ce,e.getWidget=cr,e.guessType=ge,e.hasWidget=function(e,r,t){void 0===t&&(t={});try{return cr(e,r,t),!0}catch(e){var n=e;if(n.message&&(n.message.startsWith("No widget")||n.message.startsWith("Unsupported widget")))return!1;throw e}},e.helpId=yr,e.isConstant=ke,e.isCustomWidget=$e,e.isFilesArray=He,e.isFixedItems=Re,e.isMultiSelect=Me,e.isObject=L,e.isSelect=Le,e.labelValue=function(e,r,t){return r?t:e},e.localToUTC=function(e){return e?new Date(e).toJSON():void 0},e.mergeDefaultsWithFormData=qe,e.mergeObjects=Ce,e.mergeSchemas=Oe,e.mergeValidationData=ze,e.optionId=function(e,r){return e+"-"+r},e.optionsList=function(e){var r=e;if(e.enum)return e.enum.map((function(e,t){return{label:r.enumNames&&r.enumNames[t]||String(e),value:e}}));var t=e.oneOf||e.anyOf;return t&&t.map((function(e){var r=e,t=gr(r);return{schema:r,label:r.title||String(t),value:t}}))},e.orderProperties=function(e,r){if(!Array.isArray(r))return e;var t,n=function(e){return e.reduce((function(e,r){return e[r]=!0,e}),{})},i=n(e),o=r.filter((function(e){return"*"===e||i[e]})),a=n(o),u=e.filter((function(e){return!a[e]})),s=o.indexOf("*");if(-1===s){if(u.length)throw new Error("uiSchema order list does not contain "+((t=u).length>1?"properties '"+t.join("', '")+"'":"property '"+t[0]+"'"));return o}if(s!==o.lastIndexOf("*"))throw new Error("uiSchema order list contains more than one wildcard item");var f=[].concat(o);return f.splice.apply(f,[s,1].concat(u)),f},e.pad=br,e.parseDateString=function(e,r){if(void 0===r&&(r=!0),!e)return{year:-1,month:-1,day:-1,hour:r?-1:0,minute:r?-1:0,second:r?-1:0};var t=new Date(e);if(Number.isNaN(t.getTime()))throw new Error("Unable to parse date "+e);return{year:t.getUTCFullYear(),month:t.getUTCMonth()+1,day:t.getUTCDate(),hour:r?t.getUTCHours():0,minute:r?t.getUTCMinutes():0,second:r?t.getUTCSeconds():0}},e.rangeSpec=ur,e.replaceStringParameters=nr,e.retrieveSchema=_e,e.sanitizeDataForNewSchema=Qe,e.schemaRequiresTrueValue=function e(r){return!!r.const||!(!r.enum||1!==r.enum.length||!0!==r.enum[0])||(r.anyOf&&1===r.anyOf.length?e(r.anyOf[0]):r.oneOf&&1===r.oneOf.length?e(r.oneOf[0]):!!r.allOf&&r.allOf.some((function(r){return e(r)})))},e.shouldRender=function(e,r,t){var n=e.state;return!pe(e.props,r)||!pe(n,t)},e.titleId=function(e){return pr(e,"title")},e.toConstant=gr,e.toDateString=function(e,r){void 0===r&&(r=!0);var t=e.hour,n=e.minute,i=e.second,o=Date.UTC(e.year,e.month-1,e.day,void 0===t?0:t,void 0===n?0:n,void 0===i?0:i),a=new Date(o).toJSON();return r?a:a.slice(0,10)},e.toErrorList=Or,e.toErrorSchema=function(e){var r=new ar;return e.length&&e.forEach((function(e){var t=e.property,n=e.message,i="."===t?[]:k.default(t);i.length>0&&""===i[0]&&i.splice(0,1),n&&r.addErrors(n,i)})),r.ErrorSchema},e.toIdSchema=Ze,e.toPathSchema=rr,e.unwrapErrorHandler=function e(r){return Object.keys(r).reduce((function(t,n){if("addError"===n)return t;var i,o,a=r[n];return S.default(a)?M({},t,((o={})[n]=e(a),o)):M({},t,((i={})[n]=a,i))}),{})},e.utcToLocal=function(e){if(!e)return"";var r=new Date(e);return br(r.getFullYear(),4)+"-"+br(r.getMonth()+1,2)+"-"+br(r.getDate(),2)+"T"+br(r.getHours(),2)+":"+br(r.getMinutes(),2)+":"+br(r.getSeconds(),2)+"."+br(r.getMilliseconds(),3)},e.validationDataMerge=function(e,r){if(!r)return e;var t=e.errors,n=e.errorSchema,i=Or(r),o=r;return w.default(n)||(o=Ce(n,r,!0),i=[].concat(t).concat(i)),{errorSchema:o,errors:i}},e.withIdRefPrefix=function e(r){return r.constructor===Object?function(r){for(var t in r){var n=r[t];r[t]=t===ae&&"string"==typeof n&&n.startsWith("#")?se+n:e(n)}return r}(M({},r)):Array.isArray(r)?function(r){for(var t=0;t<r.length;t++)r[t]=e(r[t]);return r}([].concat(r)):r},Object.defineProperty(e,"__esModule",{value:!0})})); | ||
//# sourceMappingURL=utils.umd.production.min.js.map |
{ | ||
"name": "@rjsf/utils", | ||
"version": "5.6.0", | ||
"version": "5.6.2", | ||
"main": "dist/index.js", | ||
@@ -22,3 +22,4 @@ "module": "dist/utils.esm.js", | ||
"test": "dts test", | ||
"test:debug": "node --inspect-brk node_modules/.bin/dts test" | ||
"test:debug": "node --inspect-brk node_modules/.bin/dts test", | ||
"bump-packages": "npm update --save --lockfile-version 2" | ||
}, | ||
@@ -37,4 +38,4 @@ "lint-staged": { | ||
"jsonpointer": "^5.0.1", | ||
"lodash": "^4.17.15", | ||
"lodash-es": "^4.17.15", | ||
"lodash": "^4.17.21", | ||
"lodash-es": "^4.17.21", | ||
"react-is": "^18.2.0" | ||
@@ -50,6 +51,6 @@ }, | ||
"@types/jest-expect-message": "^1.1.0", | ||
"@types/json-schema": "^7.0.9", | ||
"@types/json-schema": "^7.0.11", | ||
"@types/json-schema-merge-allof": "^0.6.1", | ||
"@types/lodash": "^4.14.192", | ||
"@types/react": "^17.0.48", | ||
"@types/lodash": "^4.14.194", | ||
"@types/react": "^17.0.58", | ||
"@types/react-is": "^17.0.3", | ||
@@ -82,3 +83,3 @@ "@types/react-test-renderer": "^17.0.2", | ||
"license": "Apache-2.0", | ||
"gitHead": "1caa67c7dcafa76eecf938c7668b9ee799d34789" | ||
"gitHead": "efe9d2b6a447569b1090b5eddc4b9b23dc5b2df8" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1804078
11290
Updatedlodash@^4.17.21
Updatedlodash-es@^4.17.21