Local modifications to ClusterLabs/Anvil by Alteeve
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

4 lines
82 KiB

(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[264],{82175:function(e,t,r){"use strict";r.d(t,{TA:function(){return useFormik}});var n,i,a,isMergeableObject=function(e){var t;return!!e&&"object"==typeof e&&"[object RegExp]"!==(t=Object.prototype.toString.call(e))&&"[object Date]"!==t&&e.$$typeof!==s},s="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function cloneUnlessOtherwiseSpecified(e,t){return!1!==t.clone&&t.isMergeableObject(e)?deepmerge(Array.isArray(e)?[]:{},e,t):e}function defaultArrayMerge(e,t,r){return e.concat(t).map(function(e){return cloneUnlessOtherwiseSpecified(e,r)})}function deepmerge(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||defaultArrayMerge,r.isMergeableObject=r.isMergeableObject||isMergeableObject;var n,i,a=Array.isArray(t);return a!==Array.isArray(e)?cloneUnlessOtherwiseSpecified(t,r):a?r.arrayMerge(e,t,r):(i={},(n=r).isMergeableObject(e)&&Object.keys(e).forEach(function(t){i[t]=cloneUnlessOtherwiseSpecified(e[t],n)}),Object.keys(t).forEach(function(r){n.isMergeableObject(t[r])&&e[r]?i[r]=deepmerge(e[r],t[r],n):i[r]=cloneUnlessOtherwiseSpecified(t[r],n)}),i)}deepmerge.all=function(e,t){if(!Array.isArray(e))throw Error("first argument should be an array");return e.reduce(function(e,r){return deepmerge(e,r,t)},{})};var o=deepmerge,u="object"==typeof global&&global&&global.Object===Object&&global,c="object"==typeof self&&self&&self.Object===Object&&self,l=u||c||Function("return this")(),f=l.Symbol,p=Object.prototype,h=p.hasOwnProperty,d=p.toString,y=f?f.toStringTag:void 0,_getRawTag=function(e){var t=h.call(e,y),r=e[y];try{e[y]=void 0;var n=!0}catch(e){}var i=d.call(e);return n&&(t?e[y]=r:delete e[y]),i},v=Object.prototype.toString,_=f?f.toStringTag:void 0,_baseGetTag=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":_&&_ in Object(e)?_getRawTag(e):v.call(e)},_overArg=function(e,t){return function(r){return e(t(r))}},b=_overArg(Object.getPrototypeOf,Object),lodash_es_isObjectLike=function(e){return null!=e&&"object"==typeof e},m=Object.prototype,g=Function.prototype.toString,x=m.hasOwnProperty,j=g.call(Object),lodash_es_isPlainObject=function(e){if(!lodash_es_isObjectLike(e)||"[object Object]"!=_baseGetTag(e))return!1;var t=b(e);if(null===t)return!0;var r=x.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&g.call(r)==j},O=r(67294),S=r(69590),A=r.n(S),tiny_warning_esm=function(e,t){},lodash_es_eq=function(e,t){return e===t||e!=e&&t!=t},_assocIndexOf=function(e,t){for(var r=e.length;r--;)if(lodash_es_eq(e[r][0],t))return r;return -1},E=Array.prototype.splice;function ListCache(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ListCache.prototype.clear=function(){this.__data__=[],this.size=0},ListCache.prototype.delete=function(e){var t=this.__data__,r=_assocIndexOf(t,e);return!(r<0)&&(r==t.length-1?t.pop():E.call(t,r,1),--this.size,!0)},ListCache.prototype.get=function(e){var t=this.__data__,r=_assocIndexOf(t,e);return r<0?void 0:t[r][1]},ListCache.prototype.has=function(e){return _assocIndexOf(this.__data__,e)>-1},ListCache.prototype.set=function(e,t){var r=this.__data__,n=_assocIndexOf(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};var lodash_es_isObject=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},lodash_es_isFunction=function(e){if(!lodash_es_isObject(e))return!1;var t=_baseGetTag(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},F=l["__core-js_shared__"],w=(n=/[^.]+$/.exec(F&&F.keys&&F.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",k=Function.prototype.toString,_toSource=function(e){if(null!=e){try{return k.call(e)}catch(e){}try{return e+""}catch(e){}}return""},T=/^\[object .+?Constructor\]$/,C=Object.prototype,I=Function.prototype.toString,$=C.hasOwnProperty,D=RegExp("^"+I.call($).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),_getNative=function(e,t){var r,n=null==e?void 0:e[t];return lodash_es_isO
attempted value: ${a}
`+(s!==a?`result of cast: ${s}`:""))}return i}_cast(e,t){let r=void 0===e?e:this.transforms.reduce((t,r)=>r.call(this,t,e,this),e);return void 0===r&&(r=this.getDefault(t)),r}_validate(e,t={},r,n){let{path:i,originalValue:a=e,strict:s=this.spec.strict}=t,o=e;s||(o=this._cast(o,Object.assign({assert:!1},t)));let u=[];for(let e of Object.values(this.internalTests))e&&u.push(e);this.runTests({path:i,value:o,originalValue:a,options:t,tests:u},r,e=>{if(e.length)return n(e,o);this.runTests({path:i,value:o,originalValue:a,options:t,tests:this.tests},r,n)})}runTests(e,t,r){let n=!1,{tests:i,value:a,originalValue:s,path:o,options:u}=e,panicOnce=e=>{n||(n=!0,t(e,a))},nextOnce=e=>{n||(n=!0,r(e,a))},c=i.length,l=[];if(!c)return nextOnce([]);let f={value:a,originalValue:s,path:o,options:u,schema:this};for(let e=0;e<i.length;e++){let t=i[e];t(f,panicOnce,function(e){e&&(l=l.concat(e)),--c<=0&&nextOnce(l)})}}asNestedTest({key:e,index:t,parent:r,parentPath:n,originalParent:i,options:a}){let s=null!=e?e:t;if(null==s)throw TypeError("Must include `key` or `index` for nested validations");let o="number"==typeof s,u=r[s],c=Object.assign({},a,{strict:!0,parent:r,value:u,originalValue:i[s],key:void 0,[o?"index":"key"]:s,path:o||s.includes(".")?`${n||""}[${u?s:`"${s}"`}]`:(n?`${n}.`:"")+e});return(e,t,r)=>this.resolve(c)._validate(u,c,t,r)}validate(e,t){let r=this.resolve(Object.assign({},t,{value:e}));return new Promise((n,i)=>r._validate(e,t,(e,t)=>{ValidationError.isError(e)&&(e.value=t),i(e)},(e,t)=>{e.length?i(new ValidationError(e,t)):n(t)}))}validateSync(e,t){let r;return this.resolve(Object.assign({},t,{value:e}))._validate(e,Object.assign({},t,{sync:!0}),(e,t)=>{throw ValidationError.isError(e)&&(e.value=t),e},(t,n)=>{if(t.length)throw new ValidationError(t,e);r=n}),r}isValid(e,t){return this.validate(e,t).then(()=>!0,e=>{if(ValidationError.isError(e))return!1;throw e})}isValidSync(e,t){try{return this.validateSync(e,t),!0}catch(e){if(ValidationError.isError(e))return!1;throw e}}_getDefault(e){let t=this.spec.default;return null==t?t:"function"==typeof t?t.call(this,e):clone(t)}getDefault(e){return this.resolve(e||{})._getDefault(e)}default(e){return 0==arguments.length?this._getDefault():this.clone({default:e})}strict(e=!0){return this.clone({strict:e})}nullability(e,t){let r=this.clone({nullable:e});return r.internalTests.nullable=createValidation({message:t,name:"nullable",test(e){return null!==e||this.schema.spec.nullable}}),r}optionality(e,t){let r=this.clone({optional:e});return r.internalTests.optionality=createValidation({message:t,name:"optionality",test(e){return void 0!==e||this.schema.spec.optional}}),r}optional(){return this.optionality(!0)}defined(e=h.defined){return this.optionality(!1,e)}nullable(){return this.nullability(!0)}nonNullable(e=h.notNull){return this.nullability(!1,e)}required(e=h.required){return this.clone().withMutation(t=>t.nonNullable(e).defined(e))}notRequired(){return this.clone().withMutation(e=>e.nullable().optional())}transform(e){let t=this.clone();return t.transforms.push(e),t}test(...e){let t;if(void 0===(t=1===e.length?"function"==typeof e[0]?{test:e[0]}:e[0]:2===e.length?{name:e[0],test:e[1]}:{name:e[0],message:e[1],test:e[2]}).message&&(t.message=h.default),"function"!=typeof t.test)throw TypeError("`test` is a required parameters");let r=this.clone(),n=createValidation(t),i=t.exclusive||t.name&&!0===r.exclusiveTests[t.name];if(t.exclusive&&!t.name)throw TypeError("Exclusive tests must provide a unique `name` identifying the test");return t.name&&(r.exclusiveTests[t.name]=!!t.exclusive),r.tests=r.tests.filter(e=>e.OPTIONS.name!==t.name||!i&&e.OPTIONS.test!==n.OPTIONS.test),r.tests.push(n),r}when(e,t){Array.isArray(e)||"string"==typeof e||(t=e,e=".");let r=this.clone(),n=toArray(e).map(e=>new Reference(e));return n.forEach(e=>{e.isSibling&&r.deps.push(e.key)}),r.conditions.push("function"==typeof t?new Condition(n,t):Condition.fromOptions(n,t)),r}typeError(e){let t=this.clone();return t.internalTests.typeError=createValidation({message:e,name:"typeError",skipAbsent:!0,test(e){return!!this.sc