diff --git a/google/colab/resources/tabbar_main.min.js b/google/colab/resources/tabbar_main.min.js index e8709e6..2dbd7b2 100755 --- a/google/colab/resources/tabbar_main.min.js +++ b/google/colab/resources/tabbar_main.min.js @@ -30,8 +30,8 @@ d=a.proxy;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEve "Listener can not be null.");if(typeof a==="function")return a;p(a.handleEvent,"An object listener must have handleEvent method.");a[Db]||(a[Db]=function(b){return a.handleEvent(b)});return a[Db]};var Eb=function(a){w.call(this);this.h=a;this.g={}};n(Eb,w); var Fb=[],B=function(a,b,c,d){Array.isArray(c)||(c&&(Fb[0]=c.toString()),c=Fb);for(var e=0;e=0;f--){var h=b.u=d[f];e=Ib(h,c,!0,b)&&e}b.A||(h=b.u=a,e=Ib(h,c,!0,b)&&e,b.A||(e=Ib(h,c,!1,b)&&e));if(d)for(f=0;!b.A&&f=0;f--){var h=b.u=d[f];e=Ib(h,c,!0,b)&&e}b.A||(h=b.u=a,e=Ib(h,c,!0,b)&&e,b.A||(e=Ib(h,c,!1,b)&&e));if(d)for(f=0;!b.A&&f=0&&b.charCode<63232&&bc(d)?b.charCode:0}else a.type=="keypress"?(jc&&(c=this.Da),b.keyCode==b.charCode?b.keyCode<32?(d=b.keyCode,e=0):(d=this.K,e=b.charCode):(d=b.keyCode||this.K,e=b.charCode||0)):(d=b.keyCode||this.K,e=b.charCode||0),v&&e==63&&d==224&&(d=191);var f=d=cc(d);d?d>=63232&&d in hc?f=hc[d]:d==25&&a.shiftKey&&(f=9):b.keyIdentifier&&b.keyIdentifier in ic&&(f=ic[b.keyIdentifier]); if(!t||a.type!="keypress"||dc(f,this.F,a.shiftKey,a.ctrlKey,c,a.metaKey))a=f==this.F,this.F=f,b=new fc(f,e,a,b),b.altKey=c,E(this,b)};J.prototype.i=function(){return this.R};var gc=function(a,b,c){a.ra&&kc(a);a.R=b;a.qa=ub(a.R,"keypress",a,c);a.Ja=ub(a.R,"keydown",a.g,c,a);a.ra=ub(a.R,"keyup",a.h,c,a)},kc=function(a){a.qa&&(A(a.qa),A(a.Ja),A(a.ra),a.qa=null,a.Ja=null,a.ra=null);a.R=null;a.F=-1;a.K=-1};J.prototype.C=function(){J.l.C.call(this);kc(this)};var K={ga:"mousedown",ha:"mouseup",fa:"mousecancel",sc:"mousemove",uc:"mouseover",tc:"mouseout",qc:"mouseenter",rc:"mouseleave"};var lc=function(a){return typeof a.className=="string"?a.className:a.getAttribute&&a.getAttribute("class")||""},L=function(a){return a.classList?a.classList:lc(a).match(/\S+/g)||[]},mc=function(a,b){typeof a.className=="string"?a.className=b:a.setAttribute&&a.setAttribute("class",b)},nc=function(a,b){a.classList?b=a.classList.contains(b):(a=L(a),b=va(a,b)>=0);return b},oc=function(a,b){if(a.classList)a.classList.add(b);else if(!nc(a,b)){var c=lc(a);mc(a,c+(c.length>0?" "+b:b))}},pc=function(a,b){if(a.classList)Array.prototype.forEach.call(b, function(e){oc(a,e)});else{var c={};Array.prototype.forEach.call(L(a),function(e){c[e]=!0});Array.prototype.forEach.call(b,function(e){c[e]=!0});b="";for(var d in c)b+=b.length>0?" "+d:d;mc(a,b)}},qc=function(a,b){a.classList?a.classList.remove(b):nc(a,b)&&mc(a,Array.prototype.filter.call(L(a),function(c){return c!=b}).join(" "))},rc=function(a,b){a.classList?Array.prototype.forEach.call(b,function(c){qc(a,c)}):mc(a,Array.prototype.filter.call(L(a),function(c){return!(va(b,c)>=0)}).join(" "))};var tc=function(a,b){if(!a)throw Error("Invalid class name "+a);if(typeof b!=="function")throw Error("Invalid decorator function "+b);sc[a]=b},uc={},sc={};var vc=function(a){this.A=a};ia(vc);var wc=function(a,b){a&&(a.tabIndex=b?0:-1)},yc=function(a,b,c){c.id&&Pb(b,c.id);var d=a.g(),e=!1,f=L(c);f&&Array.prototype.forEach.call(f,function(h){h==d?e=!0:h&&this.u(b,h,d)},a);e||oc(c,d);xc(b,c);return c};vc.prototype.u=function(a,b,c){b==c+"-disabled"?a.X(!1):b==c+"-horizontal"?zc(a,"horizontal"):b==c+"-vertical"&&zc(a,"vertical")}; -var xc=function(a,b){if(b)for(var c=b.firstChild,d;c&&c.parentNode==b;){d=c.nextSibling;if(c.nodeType==1){a:{var e=c;p(e);e=L(e);for(var f=0,h=e.length;fthis.o&&b<=this.o?this.o++:athis.o&&this.o--}; var zc=function(a,b){if(a.i())throw Error("Component already rendered");a.L=b};V.prototype.isVisible=function(){return this.S};var Vc=function(a,b){a.S=b;var c=a.i();c&&(c.style.display=b?"":"none",wc(Tc(a),a.T&&a.S))};V.prototype.isEnabled=function(){return this.T};V.prototype.X=function(a){this.T!=a&&E(this,a?"enable":"disable")&&(a?(this.T=!0,Tb(this,function(b){b.Ta?delete b.Ta:b.X(!0)})):(Tb(this,function(b){b.isEnabled()?b.X(!1):b.Ta=!0}),this.W=this.T=!1),wc(Tc(this),a&&this.S))}; -var Xc=function(a,b){(b=I(a,b))?P(b,!0):a.o>-1&&P(I(a,a.o),!1)},Zc=function(a){cd(a,function(b,c){return(b+1)%c},H(a)-1)},$c=function(a){cd(a,function(b,c){b--;return b<0?c-1:b},0)},bd=function(a){cd(a,function(b,c){return(b+1)%c},a.o)},ad=function(a){cd(a,function(b,c){b--;return b<0?c-1:b},a.o)},cd=function(a,b,c){c=c<0?Vb(a,a.B):c;var d=H(a);c=b.call(a,c,d);for(var e=0;e<=d;){var f=I(a,c),h;if(h=f)h=f.isVisible()&&f.isEnabled()&&!!(f.D&2);if(h){a.La(c);break}e++;c=b.call(a,c,d)}}; +var Xc=function(a,b){(b=I(a,b))?P(b,!0):a.o>-1&&P(I(a,a.o),!1)},Zc=function(a){cd(a,function(b,c){return(b+1)%c},H(a)-1)},$c=function(a){cd(a,function(b,c){b--;return b<0?c-1:b},0)},bd=function(a){cd(a,function(b,c){return(b+1)%c},a.o)},ad=function(a){cd(a,function(b,c){b--;return b<0?c-1:b},a.o)},cd=function(a,b,c){c=c<0?Vb(a,a.B):c;var d=H(a);c=b.call(a,c,d);for(var e=0;e<=d;){var f=I(a,c);if(f&&f.isVisible()&&f.isEnabled()&&f.D&2){a.La(c);break}e++;c=b.call(a,c,d)}}; V.prototype.La=function(a){Xc(this,a)};var dd=function(){};n(dd,M);ia(dd);g=dd.prototype;g.N=function(){return"goog-tab"};g.Na=function(){return"tab"};g.xa=function(a){var b=dd.l.xa.call(this,a);(a=a.Ga())&&this.Ma(b,a);return b};g.ya=function(a,b){b=dd.l.ya.call(this,a,b);var c=this.Ga(b);c&&(a.Ra=c);a.m&8&&(c=a.h)&&typeof c.J==="function"&&(T(a,8,!1),c.J(a));return b};g.Ga=function(a){return a.title||""};g.Ma=function(a,b){a&&(a.title=b||"")};var ed=function(a,b,c){N.call(this,a,b||dd.V(),c);Pc(this,8,!0);this.P|=9};n(ed,N);ed.prototype.Ga=function(){return this.Ra};ed.prototype.Ma=function(a){this.v.Ma(this.i(),a);this.Ra=a};tc("goog-tab",function(){return new ed(null)});var W=function(){this.A="tablist"};n(W,vc);ia(W);W.prototype.g=function(){return"goog-tab-bar"};W.prototype.u=function(a,b,c){this.v||(this.h||fd(this),this.v=Ea(this.h));var d=this.v[b];d?(zc(a,gd(d)),a.v=d):W.l.u.call(this,a,b,c)};W.prototype.j=function(a){var b=W.l.j.call(this,a);this.h||fd(this);b.push(this.h[a.v]);return b};var fd=function(a){var b=a.g();a.h={top:b+"-top",bottom:b+"-bottom",start:b+"-start",end:b+"-end"}};var X=function(a,b,c){a=a||"top";zc(this,gd(a));this.v=a;V.call(this,this.L,b||W.V(),c);hd(this)};n(X,V);g=X.prototype;g.H=null;g.I=function(){X.l.I.call(this);hd(this)};g.C=function(){X.l.C.call(this);this.H=null};g.La=function(a){X.l.La.call(this,a);this.J(I(this,a))};g.J=function(a){a?Nc(a,!0):this.H&&Nc(this.H,!1)}; var id=function(a,b){if(b&&b==a.H){for(var c=Vb(a,b),d=c-1;b=I(a,d);d--){var e=b;if(e.isVisible()&&e.isEnabled()){a.J(b);return}}for(c+=1;b=I(a,c);c++)if(d=b,d.isVisible()&&d.isEnabled()){a.J(b);return}a.J(null)}};g=X.prototype;g.jb=function(a){this.H&&this.H!=a.target&&Nc(this.H,!1);this.H=a.target};g.kb=function(a){a.target==this.H&&(this.H=null)};g.hb=function(a){id(this,a.target)};g.ib=function(a){id(this,a.target)};g.Pa=function(){I(this,this.o)||Xc(this,Vb(this,this.H||I(this,0)))}; var hd=function(a){B(B(B(B(Qb(a),a,"select",a.jb),a,"unselect",a.kb),a,"disable",a.hb),a,"hide",a.ib)},gd=function(a){return a=="start"||a=="end"?"vertical":"horizontal"};tc("goog-tab-bar",function(){return new X});function jd(a){var b={top:"bottom",bottom:"top",start:"right",end:"left"}[a.location],c=a.elementId,d=document.createElement("style");d.textContent="\n fieldset {\n padding: 10px;\n border: 1px solid #369;\n }\n\n #"+c+" .goog-tab-content {\n min-height: 3em;\n margin: 0;\n border: "+a.border+" solid "+a.borderColor+";\n border-top: 0;\n height: "+a.contentHeight+";\n padding: 4px 8px;\n margin-right: 4px;\n background: var(--colab-primary-surface-color);\n overflow: auto;\n }\n\n #"+