Files
INTUIA/Programa final/_internal/jupyterlab/static/8778.3f97d9d872573f0ccd2f.js
T

1 line
48 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([[8778,5606],{69749:(e,t,r)=>{"use strict";const n=r(28799);const s=Symbol("max");const i=Symbol("length");const o=Symbol("lengthCalculator");const a=Symbol("allowStale");const l=Symbol("maxAge");const c=Symbol("dispose");const u=Symbol("noDisposeOnSet");const h=Symbol("lruList");const f=Symbol("cache");const p=Symbol("updateAgeOnGet");const m=()=>1;class v{constructor(e){if(typeof e==="number")e={max:e};if(!e)e={};if(e.max&&(typeof e.max!=="number"||e.max<0))throw new TypeError("max must be a non-negative number");const t=this[s]=e.max||Infinity;const r=e.length||m;this[o]=typeof r!=="function"?m:r;this[a]=e.stale||false;if(e.maxAge&&typeof e.maxAge!=="number")throw new TypeError("maxAge must be a number");this[l]=e.maxAge||0;this[c]=e.dispose;this[u]=e.noDisposeOnSet||false;this[p]=e.updateAgeOnGet||false;this.reset()}set max(e){if(typeof e!=="number"||e<0)throw new TypeError("max must be a non-negative number");this[s]=e||Infinity;g(this)}get max(){return this[s]}set allowStale(e){this[a]=!!e}get allowStale(){return this[a]}set maxAge(e){if(typeof e!=="number")throw new TypeError("maxAge must be a non-negative number");this[l]=e;g(this)}get maxAge(){return this[l]}set lengthCalculator(e){if(typeof e!=="function")e=m;if(e!==this[o]){this[o]=e;this[i]=0;this[h].forEach((e=>{e.length=this[o](e.value,e.key);this[i]+=e.length}))}g(this)}get lengthCalculator(){return this[o]}get length(){return this[i]}get itemCount(){return this[h].length}rforEach(e,t){t=t||this;for(let r=this[h].tail;r!==null;){const n=r.prev;N(this,e,r,t);r=n}}forEach(e,t){t=t||this;for(let r=this[h].head;r!==null;){const n=r.next;N(this,e,r,t);r=n}}keys(){return this[h].toArray().map((e=>e.key))}values(){return this[h].toArray().map((e=>e.value))}reset(){if(this[c]&&this[h]&&this[h].length){this[h].forEach((e=>this[c](e.key,e.value)))}this[f]=new Map;this[h]=new n;this[i]=0}dump(){return this[h].map((e=>d(this,e)?false:{k:e.key,v:e.value,e:e.now+(e.maxAge||0)})).toArray().filter((e=>e))}dumpLru(){return this[h]}set(e,t,r){r=r||this[l];if(r&&typeof r!=="number")throw new TypeError("maxAge must be a number");const n=r?Date.now():0;const a=this[o](t,e);if(this[f].has(e)){if(a>this[s]){y(this,this[f].get(e));return false}const o=this[f].get(e);const l=o.value;if(this[c]){if(!this[u])this[c](e,l.value)}l.now=n;l.maxAge=r;l.value=t;this[i]+=a-l.length;l.length=a;this.get(e);g(this);return true}const p=new b(e,t,a,n,r);if(p.length>this[s]){if(this[c])this[c](e,t);return false}this[i]+=p.length;this[h].unshift(p);this[f].set(e,this[h].head);g(this);return true}has(e){if(!this[f].has(e))return false;const t=this[f].get(e).value;return!d(this,t)}get(e){return E(this,e,true)}peek(e){return E(this,e,false)}pop(){const e=this[h].tail;if(!e)return null;y(this,e);return e.value}del(e){y(this,this[f].get(e))}load(e){this.reset();const t=Date.now();for(let r=e.length-1;r>=0;r--){const n=e[r];const s=n.e||0;if(s===0)this.set(n.k,n.v);else{const e=s-t;if(e>0){this.set(n.k,n.v,e)}}}}prune(){this[f].forEach(((e,t)=>E(this,t,false)))}}const E=(e,t,r)=>{const n=e[f].get(t);if(n){const t=n.value;if(d(e,t)){y(e,n);if(!e[a])return undefined}else{if(r){if(e[p])n.value.now=Date.now();e[h].unshiftNode(n)}}return t.value}};const d=(e,t)=>{if(!t||!t.maxAge&&!e[l])return false;const r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[l]&&r>e[l]};const g=e=>{if(e[i]>e[s]){for(let t=e[h].tail;e[i]>e[s]&&t!==null;){const r=t.prev;y(e,t);t=r}}};const y=(e,t)=>{if(t){const r=t.value;if(e[c])e[c](r.key,r.value);e[i]-=r.length;e[f].delete(r.key);e[h].removeNode(t)}};class b{constructor(e,t,r,n,s){this.key=e;this.value=t;this.length=r;this.now=n;this.maxAge=s||0}}const N=(e,t,r,n)=>{let s=r.value;if(d(e,s)){y(e,r);if(!e[a])s=undefined}if(s)t.call(n,s.value,s.key,e)};e.exports=v},65606:e=>{var t=e.exports={};var r;var n;function s(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}(function(){try{if(typeof setTimeout==="func