"use strict";(self.webpackChunk_JUPYTERLAB_CORE_OUTPUT=self.webpackChunk_JUPYTERLAB_CORE_OUTPUT||[]).push([[5614],{15614:(t,e,n)=>{var r,o,i;function*f(...t){for(const e of t)yield*e}function*l(){}function*u(t,e=0){for(const n of t)yield[e++,n]}function*a(t,e){let n=0;for(const r of t)e(r,n++)&&(yield r)}function h(t,e){let n=0;for(const r of t)if(e(r,n++))return r}function c(t,e){let n=0;for(const r of t)if(e(r,n++))return n-1;return-1}function m(t,e){let n;for(const r of t)void 0!==n?e(r,n)<0&&(n=r):n=r;return n}function s(t,e){let n;for(const r of t)void 0!==n?e(r,n)>0&&(n=r):n=r;return n}function d(t,e){let n,r,o=!0;for(const i of t)o?(n=i,r=i,o=!1):e(i,n)<0?n=i:e(i,r)>0&&(r=i);return o?void 0:[n,r]}function M(t){return Array.from(t)}function x(t){const e={};for(const[n,r]of t)e[n]=r;return e}function g(t,e){let n=0;for(const r of t)if(!1===e(r,n++))return}function v(t,e){let n=0;for(const r of t)if(!1===e(r,n++))return!1;return!0}function p(t,e){let n=0;for(const r of t)if(e(r,n++))return!0;return!1}function*y(t,e){let n=0;for(const r of t)yield e(r,n++)}function*O(t,e,n){void 0===e?(e=t,t=0,n=1):void 0===n&&(n=1);const r=o.rangeLength(t,e,n);for(let e=0;e-1;e--)yield t[e]}function b(t){let e=[],n=new Set,r=new Map;for(const e of t)o(e);for(const[t]of r)i(t);return e;function o(t){let[e,n]=t,o=r.get(n);o?o.push(e):r.set(n,[e])}function i(t){if(n.has(t))return;n.add(t);let o=r.get(t);if(o)for(const t of o)i(t);e.push(t)}}function*L(t,e){let n=0;for(const r of t)0==n++%e&&(yield r)}function*T(t,e){if(e<1)return;const n=t[Symbol.iterator]();let r;for(;0t[Symbol.iterator]()));let n=e.map((t=>t.next()));for(;v(n,(t=>!t.done));n=e.map((t=>t.next())))yield n.map((t=>t.value))}n.r(e),n.d(e,{ArrayExt:()=>r,StringExt:()=>i,chain:()=>f,each:()=>g,empty:()=>l,enumerate:()=>u,every:()=>v,filter:()=>a,find:()=>h,findIndex:()=>c,map:()=>y,max:()=>s,min:()=>m,minmax:()=>d,once:()=>A,range:()=>O,reduce:()=>w,repeat:()=>S,retro:()=>E,some:()=>p,stride:()=>L,take:()=>T,toArray:()=>M,toObject:()=>x,topologicSort:()=>b,zip:()=>I}),function(t){function e(t,e,n=0,r=-1){let o,i=t.length;if(0===i)return-1;n=n<0?Math.max(0,n+i):Math.min(n,i-1),o=(r=r<0?Math.max(0,r+i):Math.min(r,i-1))=n)return;let r=t[e];for(let r=e+1;r0;){let r=l>>1,o=f+r;n(t[o],e)<0?(f=o+1,l-=r+1):l=r}return f},t.upperBound=function(t,e,n,r=0,o=-1){let i=t.length;if(0===i)return 0;let f=r=r<0?Math.max(0,r+i):Math.min(r,i-1),l=(o=o<0?Math.max(0,o+i):Math.min(o,i-1))-r+1;for(;l>0;){let r=l>>1,o=f+r;n(t[o],e)>0?l=r:(f=o+1,l-=r+1)}return f},t.shallowEqual=function(t,e,n){if(t===e)return!0;if(t.length!==e.length)return!1;for(let r=0,o=t.length;r=f&&(n=o<0?f-1:f),void 0===r?r=o<0?-1:f:r<0?r=Math.max(r+f,o<0?-1:0):r>=f&&(r=o<0?f-1:f),i=o<0&&r>=n||o>0&&n>=r?0:o<0?Math.floor((r-n+1)/o+1):Math.floor((r-n-1)/o+1);let l=[];for(let e=0;e=(r=r<0?Math.max(0,r+o):Math.min(r,o-1)))return;let f=r-n+1;if(e>0?e%=f:e<0&&(e=(e%f+f)%f),0===e)return;let l=n+e;i(t,n,l-1),i(t,l,r),i(t,n,r)},t.fill=function(t,e,n=0,r=-1){let o,i=t.length;if(0!==i){n=n<0?Math.max(0,n+i):Math.min(n,i-1),o=(r=r<0?Math.max(0,r+i):Math.min(r,i-1))e;--n)t[n]=t[n-1];t[e]=n},t.removeAt=f,t.removeFirstOf=function(t,n,r=0,o=-1){let i=e(t,n,r,o);return-1!==i&&f(t,i),i},t.removeLastOf=function(t,e,r=-1,o=0){let i=n(t,e,r,o);return-1!==i&&f(t,i),i},t.removeAllOf=function(t,e,n=0,r=-1){let o=t.length;if(0===o)return 0;n=n<0?Math.max(0,n+o):Math.min(n,o-1),r=r<0?Math.max(0,r+o):Math.min(r,o-1);let i=0;for(let f=0;f=n&&f<=r&&t[f]===e||r=n)&&t[f]===e?i++:i>0&&(t[f-i]=t[f]);return i>0&&(t.length=o-i),i},t.removeFirstWhere=function(t,e,n=0,o=-1){let i,l=r(t,e,n,o);return-1!==l&&(i=f(t,l)),{index:l,value:i}},t.removeLastWhere=function(t,e,n=-1,r=0){let i,l=o(t,e,n,r);return-1!==l&&(i=f(t,l)),{index:l,value:i}},t.removeAllWhere=function(t,e,n=0,r=-1){let o=t.length;if(0===o)return 0;n=n<0?Math.max(0,n+o):Math.min(n,o-1),r=r<0?Math.max(0,r+o):Math.min(r,o-1);let i=0;for(let f=0;f=n&&f<=r&&e(t[f],f)||r=n)&&e(t[f],f)?i++:i>0&&(t[f-i]=t[f]);return i>0&&(t.length=o-i),i}}(r||(r={})),function(t){t.rangeLength=function(t,e,n){return 0===n?1/0:t>e&&n>0||te?1:0}}(i||(i={}))}}]);