Files
INTUIA/Programa final/dist/PJM_IA/_internal/jupyterlab/static/6896.af1d649e0efae70b7b1a.js
T

1 line
18 KiB
JavaScript
Raw Normal View History

2026-03-15 13:27:50 +00:00
(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[6896],{6896:(e,t,r)=>{"use strict";r.r(t);r.d(t,{createPrecompiledValidator:()=>w,customizeValidator:()=>z,default:()=>E});var a=r(12776);var n=r(63282);var o=r.n(n);var i=r(68182);var s=r.n(i);var f=r(23805);var d=r.n(f);const c={allErrors:true,multipleOfPrecision:8,strict:false,verbose:true};const u=/^(#?([0-9A-Fa-f]{3}){1,2}\b|aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow|(rgb\(\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*\))|(rgb\(\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*\)))$/;const l=/^data:([a-z]+\/[a-z0-9-+.]+)?;(?:name=(.*);)?base64,(.*)$/;function m(e,t,r={},n,i=o()){const f=new i({...c,...r});if(n){s()(f,n)}else if(n!==false){s()(f)}f.addFormat("data-url",l);f.addFormat("color",u);f.addKeyword(a.ADDITIONAL_PROPERTY_FLAG);f.addKeyword(a.RJSF_ADDITONAL_PROPERTIES_FLAG);if(Array.isArray(e)){f.addMetaSchema(e)}if(d()(t)){Object.keys(t).forEach((e=>{f.addFormat(e,t[e])}))}return f}var h=r(58156);var p=r.n(h);function v(e=[],t){return e.map((e=>{const{instancePath:r,keyword:n,params:o,schemaPath:i,parentSchema:s,...f}=e;let{message:d=""}=f;let c=r.replace(/\//g,".");let u=`${c} ${d}`.trim();if("missingProperty"in o){c=c?`${c}.${o.missingProperty}`:o.missingProperty;const e=o.missingProperty;const r=(0,a.getUiOptions)(p()(t,`${c.replace(/^\./,"")}`)).title;if(r){d=d.replace(e,r)}else{const t=p()(s,[a.PROPERTIES_KEY,e,"title"]);if(t){d=d.replace(e,t)}}u=d}else{const e=(0,a.getUiOptions)(p()(t,`${c.replace(/^\./,"")}`)).title;if(e){u=`'${e}' ${d}`.trim()}else{const e=s===null||s===void 0?void 0:s.title;if(e){u=`'${e}' ${d}`.trim()}}}return{name:n,property:c,message:d,params:o,stack:u,schemaPath:i}}))}function _(e,t,r,n,o,i,s){const{validationError:f}=t;let d=v(t.errors,s);if(f){d=[...d,{stack:f.message}]}if(typeof i==="function"){d=i(d,s)}let c=(0,a.toErrorSchema)(d);if(f){c={...c,$schema:{__errors:[f.message]}}}if(typeof o!=="function"){return{errors:d,errorSchema:c}}const u=(0,a.getDefaultFormState)(e,n,r,n,true);const l=o(u,(0,a.createErrorHandler)(u),s);const m=(0,a.unwrapErrorHandler)(l);return(0,a.validationDataMerge)({errors:d,errorSchema:c},m)}class ${constructor(e,t){const{additionalMetaSchemas:r,customFormats:a,ajvOptionsOverrides:n,ajvFormatOptions:o,AjvClass:i}=e;this.ajv=m(r,a,n,o,i);this.localizer=t}toErrorList(e,t=[]){return(0,a.toErrorList)(e,t)}rawValidation(e,t){let r=undefined;let n;if(e[a.ID_KEY]){n=this.ajv.getSchema(e[a.ID_KEY])}try{if(n===undefined){n=this.ajv.compile(e)}n(t)}catch(i){r=i}let o;if(n){if(typeof this.localizer==="function"){this.localizer(n.errors)}o=n.errors||undefined;n.errors=null}return{errors:o,validationError:r}}validateFormData(e,t,r,a,n){const o=this.rawValidation(t,e);return _(this,o,e,t,r,a,n)}isValid(e,t,r){var n,o;const i=(n=r[a.ID_KEY])!==null&&n!==void 0?n:a.ROOT_SCHEMA_PREFIX;try{this.ajv.addSchema(r,i);const n=(0,a.withIdRefPrefix)(e);const s=(o=n[a.ID_KEY])!==null&&o!==void 0?o:(0,a.hashForSchema)(n);let f;f=this.ajv.getSchema(s);if(f===undefined){f=this.ajv.addSchema(n,s).getSchema(s)||this.ajv.compile(n)}const d=f(t);return d}catch(s){console.warn("Error encountered compiling schema:",s);return false}finally{this.ajv.removeSchema(i)}}}function z(e={},t){return new $(e,t)}var y=r(2404);var b=r.n(y);class g{constructor(e,t,r){this.rootSchema=t;this.validateFns=e;this.localizer=r;this.mainValidator=this.getValidator(t)}getValidator(e){const t=p()(e,a.ID_KEY)||(0,a.hashForSchema)(e);const r=this.validateFns[t];if(!r){throw new Error(`No precompiled validator function was found for the given schema for "${t}"`)}return r}ensureSameRootSchema(e,t){if(!b()(e,this.rootSchema)){const r=(0,a.retrieveSchema)(this,this.rootSchema,this.rootSchema,t);if(!b()(e,r)){throw new Error("The schema associated with the precompiled validator differs from the rootSchema