Buckets:
hf-doc-build/doc-dev / course /pr_1069 /th /_app /immutable /chunks /CourseFloatingBanner.6add7356.js
| import{s as Q,c as V,j as Me,u as W,g as U,d as F,o as Ne,b as $,n as Y,z as ke,t as Ie,f as R}from"./scheduler.37c15a92.js";import{S as Z,i as X,g as z,h as I,j as p,f as M,k as c,a as D,y as B,D as x,d,t as g,B as te,C as le,l as Se,s as P,c as J,p as T,b as G,r as y,u as H,v as E,w as A,m as Ce,e as O,n as Le,o as ve,q,z as De}from"./index.2bf4358c.js";import{e as K}from"./each.e59479a4.js";const pe=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;function ye(s){let e,n,l,t,a,o;const r=s[7].default,i=V(r,s,s[6],null);return{c(){e=z("div"),n=z("ul"),i&&i.c(),this.h()},l(u){e=I(u,"DIV",{class:!0});var h=p(e);n=I(h,"UL",{class:!0});var L=p(n);i&&i.l(L),L.forEach(M),h.forEach(M),this.h()},h(){c(n,"class","min-w-full w-auto"),c(e,"class",l="absolute top-full mt-1 min-w-full w-auto bg-white rounded-xl overflow-hidden shadow-lg z-10 border border-gray-100 "+(s[2]==="right"?"right-0":"left-0")+" "+s[0])},m(u,h){D(u,e,h),B(e,n),i&&i.m(n,null),s[8](e),t=!0,a||(o=x(e,"click",function(){Me(s[1])&&s[1].apply(this,arguments)}),a=!0)},p(u,[h]){s=u,i&&i.p&&(!t||h&64)&&W(i,r,s,s[6],t?F(r,s[6],h,null):U(s[6]),null),(!t||h&5&&l!==(l="absolute top-full mt-1 min-w-full w-auto bg-white rounded-xl overflow-hidden shadow-lg z-10 border border-gray-100 "+(s[2]==="right"?"right-0":"left-0")+" "+s[0]))&&c(e,"class",l)},i(u){t||(d(i,u),t=!0)},o(u){g(i,u),t=!1},d(u){u&&M(e),i&&i.d(u),s[8](null),a=!1,o()}}}function Ee(s,e,n){let{$$slots:l={},$$scope:t}=e,{classNames:a=""}=e,{dropdownElement:o=void 0}=e,{forceAlignement:r=void 0}=e,{onClose:i}=e,u=r??"left",h;Ne(()=>{if(document.addEventListener("click",L),!r){const m=document.documentElement.clientWidth,f=h==null?void 0:h.getBoundingClientRect(),_=(f==null?void 0:f.left)??0,w=(f==null?void 0:f.width)??0;n(2,u=_+w>m?"right":"left")}return()=>{document.removeEventListener("click",L)}});function L(m){const f=m.target;f!==o&&!(o!=null&&o.contains(f))&&i(m)}function N(m){$[m?"unshift":"push"](()=>{h=m,n(3,h)})}return s.$$set=m=>{"classNames"in m&&n(0,a=m.classNames),"dropdownElement"in m&&n(4,o=m.dropdownElement),"forceAlignement"in m&&n(5,r=m.forceAlignement),"onClose"in m&&n(1,i=m.onClose),"$$scope"in m&&n(6,t=m.$$scope)},[a,i,u,h,o,r,t,l,N]}class Ae extends Z{constructor(e){super(),X(this,e,Ee,ye,Q,{classNames:0,dropdownElement:4,forceAlignement:5,onClose:1})}}function Ye(s){let e,n;return{c(){e=te("svg"),n=te("path"),this.h()},l(l){e=le(l,"svg",{class:!0,xmlns:!0,"xmlns:xlink":!0,"aria-hidden":!0,focusable:!0,role:!0,width:!0,height:!0,preserveAspectRatio:!0,viewBox:!0,style:!0});var t=p(e);n=le(t,"path",{d:!0,fill:!0}),p(n).forEach(M),t.forEach(M),this.h()},h(){c(n,"d","M7 10l5 5l5-5z"),c(n,"fill","currentColor"),c(e,"class",s[0]),c(e,"xmlns","http://www.w3.org/2000/svg"),c(e,"xmlns:xlink","http://www.w3.org/1999/xlink"),c(e,"aria-hidden","true"),c(e,"focusable","false"),c(e,"role","img"),c(e,"width","1em"),c(e,"height","1em"),c(e,"preserveAspectRatio","xMidYMid meet"),c(e,"viewBox","0 0 24 24"),Se(e,"transform","rotate(360deg)")},m(l,t){D(l,e,t),B(e,n)},p(l,[t]){t&1&&c(e,"class",l[0])},i:Y,o:Y,d(l){l&&M(e)}}}function Be(s,e,n){let{classNames:l=""}=e;return s.$$set=t=>{"classNames"in t&&n(0,l=t.classNames)},[l]}class Te extends Z{constructor(e){super(),X(this,e,Be,Ye,Q,{classNames:0})}}const Ge=s=>({}),ne=s=>({}),Oe=s=>({}),se=s=>({});function Ve(s){let e,n,l,t,a,o=s[2]&&ae(s),r=s[9]&&oe();return{c(){o&&o.c(),e=P(),n=Ce(s[4]),l=P(),r&&r.c(),t=O()},l(i){o&&o.l(i),e=J(i),n=Le(i,s[4]),l=J(i),r&&r.l(i),t=O()},m(i,u){o&&o.m(i,u),D(i,e,u),D(i,n,u),D(i,l,u),r&&r.m(i,u),D(i,t,u),a=!0},p(i,u){i[2]?o?(o.p(i,u),u&4&&d(o,1)):(o=ae(i),o.c(),d(o,1),o.m(e.parentNode,e)):o&&(T(),g(o,1,1,()=>{o=null}),G()),(!a||u&16)&&ve(n,i[4]),i[9]?r?u&512&&d(r,1):(r=oe(),r.c(),d(r,1),r.m(t.parentNode,t)):r&&(T(),g(r,1,1,()=>{r=null}),G())},i(i){a||(d(o),d(r),a=!0)},o(i){g(o),g(r),a=!1},d(i){i&&(M(e),M(n),M(l),M(t)),o&&o.d(i),r&&r.d(i)}}}function We(s){let e;const n=s[15].button,l=V(n,s,s[18],se);return{c(){l&&l.c()},l(t){l&&l.l(t)},m(t,a){l&&l.m(t,a),e=!0},p(t,a){l&&l.p&&(!e||a&262144)&&W(l,n,t,t[18],e?F(n,t[18],a,Oe):U(t[18]),se)},i(t){e||(d(l,t),e=!0)},o(t){g(l,t),e=!1},d(t){l&&l.d(t)}}}function ae(s){let e,n,l;var t=s[2];function a(o,r){return{props:{classNames:"mr-1.5 "+o[3]}}}return t&&(e=q(t,a(s))),{c(){e&&y(e.$$.fragment),n=O()},l(o){e&&H(e.$$.fragment,o),n=O()},m(o,r){e&&E(e,o,r),D(o,n,r),l=!0},p(o,r){if(r&4&&t!==(t=o[2])){if(e){T();const i=e;g(i.$$.fragment,1,0,()=>{A(i,1)}),G()}t?(e=q(t,a(o)),y(e.$$.fragment),d(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else if(t){const i={};r&8&&(i.classNames="mr-1.5 "+o[3]),e.$set(i)}},i(o){l||(e&&d(e.$$.fragment,o),l=!0)},o(o){e&&g(e.$$.fragment,o),l=!1},d(o){o&&M(n),e&&A(e,o)}}}function oe(s){let e,n;return e=new Te({props:{classNames:"-mr-1 text-gray-500"}}),{c(){y(e.$$.fragment)},l(l){H(e.$$.fragment,l)},m(l,t){E(e,l,t),n=!0},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){A(e,l)}}}function ie(s){let e,n;return e=new Ae({props:{classNames:s[6]+" "+(s[8]?"v2-dropdown-menu hidden":""),dropdownElement:s[10],forceAlignement:s[5],onClose:s[12],$$slots:{default:[Ue]},$$scope:{ctx:s}}}),{c(){y(e.$$.fragment)},l(l){H(e.$$.fragment,l)},m(l,t){E(e,l,t),n=!0},p(l,t){const a={};t&320&&(a.classNames=l[6]+" "+(l[8]?"v2-dropdown-menu hidden":"")),t&1024&&(a.dropdownElement=l[10]),t&32&&(a.forceAlignement=l[5]),t&262144&&(a.$$scope={dirty:t,ctx:l}),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){A(e,l)}}}function Ue(s){let e;const n=s[15].menu,l=V(n,s,s[18],ne);return{c(){l&&l.c()},l(t){l&&l.l(t)},m(t,a){l&&l.m(t,a),e=!0},p(t,a){l&&l.p&&(!e||a&262144)&&W(l,n,t,t[18],e?F(n,t[18],a,Ge):U(t[18]),ne)},i(t){e||(d(l,t),e=!0)},o(t){g(l,t),e=!1},d(t){l&&l.d(t)}}}function Fe(s){let e,n,l,t,a,o,r,i,u,h;const L=[We,Ve],N=[];function m(_,w){return _[13].button?0:1}l=m(s),t=N[l]=L[l](s);let f=(s[11]||s[8])&&ie(s);return{c(){e=z("div"),n=z("button"),t.c(),o=P(),f&&f.c(),this.h()},l(_){e=I(_,"DIV",{class:!0});var w=p(e);n=I(w,"BUTTON",{class:!0,type:!0});var j=p(n);t.l(j),j.forEach(M),o=J(w),f&&f.l(w),w.forEach(M),this.h()},h(){c(n,"class",a=""+s[1]+" "+(s[7]?"":"cursor-pointer w-full btn text-sm")+" "+(s[8]?"v2-dropdown-button":"")),c(n,"type","button"),c(e,"class",r="relative "+s[0]+" "+(s[8]?"v2-dropdown":""))},m(_,w){D(_,e,w),B(e,n),N[l].m(n,null),B(e,o),f&&f.m(e,null),s[17](e),i=!0,u||(h=x(n,"click",s[16]),u=!0)},p(_,[w]){let j=l;l=m(_),l===j?N[l].p(_,w):(T(),g(N[j],1,1,()=>{N[j]=null}),G(),t=N[l],t?t.p(_,w):(t=N[l]=L[l](_),t.c()),d(t,1),t.m(n,null)),(!i||w&386&&a!==(a=""+_[1]+" "+(_[7]?"":"cursor-pointer w-full btn text-sm")+" "+(_[8]?"v2-dropdown-button":"")))&&c(n,"class",a),_[11]||_[8]?f?(f.p(_,w),w&2304&&d(f,1)):(f=ie(_),f.c(),d(f,1),f.m(e,null)):f&&(T(),g(f,1,1,()=>{f=null}),G()),(!i||w&257&&r!==(r="relative "+_[0]+" "+(_[8]?"v2-dropdown":"")))&&c(e,"class",r)},i(_){i||(d(t),d(f),i=!0)},o(_){g(t),g(f),i=!1},d(_){_&&M(e),N[l].d(),f&&f.d(),s[17](null),u=!1,h()}}}function He(s,e,n){let{$$slots:l={},$$scope:t}=e;const a=ke(l);let{classNames:o=""}=e,{btnClassNames:r=""}=e,{btnIcon:i=void 0}=e,{btnIconClassNames:u=""}=e,{btnLabel:h=""}=e,{forceMenuAlignement:L=void 0}=e,{menuClassNames:N=""}=e,{noBtnClass:m=void 0}=e,{selectedValue:f=void 0}=e,{useDeprecatedJS:_=!0}=e,{withBtnCaret:w=!1}=e,j,S=!1;function b(C){var ee;C.target&&(ee=C.target)!=null&&ee.className.includes("do-not-close-dropdown")||n(11,S=!1)}const k=()=>n(11,S=!S);function v(C){$[C?"unshift":"push"](()=>{j=C,n(10,j)})}return s.$$set=C=>{"classNames"in C&&n(0,o=C.classNames),"btnClassNames"in C&&n(1,r=C.btnClassNames),"btnIcon"in C&&n(2,i=C.btnIcon),"btnIconClassNames"in C&&n(3,u=C.btnIconClassNames),"btnLabel"in C&&n(4,h=C.btnLabel),"forceMenuAlignement"in C&&n(5,L=C.forceMenuAlignement),"menuClassNames"in C&&n(6,N=C.menuClassNames),"noBtnClass"in C&&n(7,m=C.noBtnClass),"selectedValue"in C&&n(14,f=C.selectedValue),"useDeprecatedJS"in C&&n(8,_=C.useDeprecatedJS),"withBtnCaret"in C&&n(9,w=C.withBtnCaret),"$$scope"in C&&n(18,t=C.$$scope)},[o,r,i,u,h,L,N,m,_,w,j,S,b,a,f,l,k,v,t]}class je extends Z{constructor(e){super(),X(this,e,He,Fe,Q,{classNames:0,btnClassNames:1,btnIcon:2,btnIconClassNames:3,btnLabel:4,forceMenuAlignement:5,menuClassNames:6,noBtnClass:7,selectedValue:14,useDeprecatedJS:8,withBtnCaret:9})}}function Pe(s){let e,n,l,t=s[5]&&re(s);return{c(){t&&t.c(),e=P(),n=Ce(s[7])},l(a){t&&t.l(a),e=J(a),n=Le(a,s[7])},m(a,o){t&&t.m(a,o),D(a,e,o),D(a,n,o),l=!0},p(a,o){a[5]?t?(t.p(a,o),o&32&&d(t,1)):(t=re(a),t.c(),d(t,1),t.m(e.parentNode,e)):t&&(T(),g(t,1,1,()=>{t=null}),G()),(!l||o&128)&&ve(n,a[7])},i(a){l||(d(t),l=!0)},o(a){g(t),l=!1},d(a){a&&(M(e),M(n)),t&&t.d(a)}}}function Je(s){let e;const n=s[15].default,l=V(n,s,s[14],null);return{c(){l&&l.c()},l(t){l&&l.l(t)},m(t,a){l&&l.m(t,a),e=!0},p(t,a){l&&l.p&&(!e||a&16384)&&W(l,n,t,t[14],e?F(n,t[14],a,null):U(t[14]),null)},i(t){e||(d(l,t),e=!0)},o(t){g(l,t),e=!1},d(t){l&&l.d(t)}}}function re(s){let e,n,l;var t=s[5];function a(o,r){return{props:{classNames:"mr-1.5 "+o[6]}}}return t&&(e=q(t,a(s))),{c(){e&&y(e.$$.fragment),n=O()},l(o){e&&H(e.$$.fragment,o),n=O()},m(o,r){e&&E(e,o,r),D(o,n,r),l=!0},p(o,r){if(r&32&&t!==(t=o[5])){if(e){T();const i=e;g(i.$$.fragment,1,0,()=>{A(i,1)}),G()}t?(e=q(t,a(o)),y(e.$$.fragment),d(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else if(t){const i={};r&64&&(i.classNames="mr-1.5 "+o[6]),e.$set(i)}},i(o){l||(e&&d(e.$$.fragment,o),l=!0)},o(o){e&&g(e.$$.fragment,o),l=!1},d(o){o&&M(n),e&&A(e,o)}}}function Qe(s){let e,n,l,t,a,o,r,i,u,h;const L=[Je,Pe],N=[];function m(f,_){return f[13].default?0:1}return l=m(s),t=N[l]=L[l](s),{c(){e=z("li"),n=z("a"),t.c(),this.h()},l(f){e=I(f,"LI",{class:!0});var _=p(e);n=I(_,"A",{class:!0,"data-label":!0,"data-url":!0,"data-value":!0,href:!0,rel:!0,target:!0});var w=p(n);t.l(w),w.forEach(M),_.forEach(M),this.h()},h(){c(n,"class",a="flex items-center hover:bg-gray-50 dark:hover:bg-gray-800 cursor-pointer px-3 py-1.5 whitespace-nowrap "+s[0]+" "+(s[9]?"hover:underline":"")+" "+(s[12]?"v2-dropdown-entry":"")),c(n,"data-label",s[1]),c(n,"data-url",s[2]),c(n,"data-value",s[3]),c(n,"href",s[4]),c(n,"rel",o=s[8]?"nofollow":void 0),c(n,"target",r=s[11]?"_blank":void 0),c(e,"class","not-prose")},m(f,_){D(f,e,_),B(e,n),N[l].m(n,null),i=!0,u||(h=x(n,"click",function(){Me(s[10])&&s[10].apply(this,arguments)}),u=!0)},p(f,[_]){s=f;let w=l;l=m(s),l===w?N[l].p(s,_):(T(),g(N[w],1,1,()=>{N[w]=null}),G(),t=N[l],t?t.p(s,_):(t=N[l]=L[l](s),t.c()),d(t,1),t.m(n,null)),(!i||_&4609&&a!==(a="flex items-center hover:bg-gray-50 dark:hover:bg-gray-800 cursor-pointer px-3 py-1.5 whitespace-nowrap "+s[0]+" "+(s[9]?"hover:underline":"")+" "+(s[12]?"v2-dropdown-entry":"")))&&c(n,"class",a),(!i||_&2)&&c(n,"data-label",s[1]),(!i||_&4)&&c(n,"data-url",s[2]),(!i||_&8)&&c(n,"data-value",s[3]),(!i||_&16)&&c(n,"href",s[4]),(!i||_&256&&o!==(o=s[8]?"nofollow":void 0))&&c(n,"rel",o),(!i||_&2048&&r!==(r=s[11]?"_blank":void 0))&&c(n,"target",r)},i(f){i||(d(t),i=!0)},o(f){g(t),i=!1},d(f){f&&M(e),N[l].d(),u=!1,h()}}}function Ze(s,e,n){let{$$slots:l={},$$scope:t}=e;const a=ke(l);let{classNames:o=""}=e,{dataLabel:r=void 0}=e,{dataUrl:i=void 0}=e,{dataValue:u=void 0}=e,{href:h=void 0}=e,{icon:L=void 0}=e,{iconClassNames:N=""}=e,{label:m=""}=e,{noFollow:f=!1}=e,{underline:_=!1}=e,{onClick:w=()=>{}}=e,{targetBlank:j=!1}=e,{useDeprecatedJS:S=!0}=e;return s.$$set=b=>{"classNames"in b&&n(0,o=b.classNames),"dataLabel"in b&&n(1,r=b.dataLabel),"dataUrl"in b&&n(2,i=b.dataUrl),"dataValue"in b&&n(3,u=b.dataValue),"href"in b&&n(4,h=b.href),"icon"in b&&n(5,L=b.icon),"iconClassNames"in b&&n(6,N=b.iconClassNames),"label"in b&&n(7,m=b.label),"noFollow"in b&&n(8,f=b.noFollow),"underline"in b&&n(9,_=b.underline),"onClick"in b&&n(10,w=b.onClick),"targetBlank"in b&&n(11,j=b.targetBlank),"useDeprecatedJS"in b&&n(12,S=b.useDeprecatedJS),"$$scope"in b&&n(14,t=b.$$scope)},[o,r,i,u,h,L,N,m,f,_,w,j,S,a,t,l]}class ze extends Z{constructor(e){super(),X(this,e,Ze,Qe,Q,{classNames:0,dataLabel:1,dataUrl:2,dataValue:3,href:4,icon:5,iconClassNames:6,label:7,noFollow:8,underline:9,onClick:10,targetBlank:11,useDeprecatedJS:12})}}const{window:Xe}=pe,Re=s=>({}),fe=s=>({slot:"button"});function ce(s,e,n){const l=s.slice();return l[11]=e[n].label,l[12]=e[n].value,l}const qe=s=>({}),ue=s=>({slot:"menu"}),Ke=s=>({}),_e=s=>({slot:"button"});function me(s,e,n){const l=s.slice();return l[11]=e[n].label,l[12]=e[n].value,l}const xe=s=>({}),de=s=>({slot:"menu"}),$e=s=>({}),ge=s=>({});function et(s){let e,n;return e=new je({props:{btnLabel:"",classNames:"colab-dropdown",noBtnClass:!0,useDeprecatedJS:!1,$$slots:{menu:[at],button:[nt]},$$scope:{ctx:s}}}),{c(){y(e.$$.fragment)},l(l){H(e.$$.fragment,l)},m(l,t){E(e,l,t),n=!0},p(l,t){const a={};t&1024&&(a.$$scope={dirty:t,ctx:l}),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){A(e,l)}}}function tt(s){let e,n,l;return{c(){e=z("a"),n=z("img"),this.h()},l(t){e=I(t,"A",{href:!0,target:!0});var a=p(e);n=I(a,"IMG",{alt:!0,class:!0,src:!0}),a.forEach(M),this.h()},h(){c(n,"alt","Open In Colab"),c(n,"class","!m-0"),R(n.src,l="https://colab.research.google.com/assets/colab-badge.svg")||c(n,"src",l),c(e,"href",s[2][0].value),c(e,"target","_blank")},m(t,a){D(t,e,a),B(e,n)},p:Y,i:Y,o:Y,d(t){t&&M(e)}}}function lt(s){let e,n;return{c(){e=z("img"),this.h()},l(l){e=I(l,"IMG",{alt:!0,class:!0,src:!0}),this.h()},h(){c(e,"alt","Open In Colab"),c(e,"class","!m-0"),R(e.src,n="https://colab.research.google.com/assets/colab-badge.svg")||c(e,"src",n)},m(l,t){D(l,e,t)},p:Y,d(l){l&&M(e)}}}function nt(s){let e;const n=s[6].default,l=V(n,s,s[10],_e),t=l||lt();return{c(){t&&t.c()},l(a){t&&t.l(a)},m(a,o){t&&t.m(a,o),e=!0},p(a,o){l&&l.p&&(!e||o&1024)&&W(l,n,a,a[10],e?F(n,a[10],o,Ke):U(a[10]),_e)},i(a){e||(d(t,a),e=!0)},o(a){g(t,a),e=!1},d(a){t&&t.d(a)}}}function he(s){let e,n;function l(){return s[7](s[12])}return e=new ze({props:{classNames:"text-sm !no-underline",iconClassNames:"text-gray-500",label:s[11],onClick:l,useDeprecatedJS:!1}}),{c(){y(e.$$.fragment)},l(t){H(e.$$.fragment,t)},m(t,a){E(e,t,a),n=!0},p(t,a){s=t},i(t){n||(d(e.$$.fragment,t),n=!0)},o(t){g(e.$$.fragment,t),n=!1},d(t){A(e,t)}}}function st(s){let e,n,l=K(s[2]),t=[];for(let o=0;o<l.length;o+=1)t[o]=he(me(s,l,o));const a=o=>g(t[o],1,1,()=>{t[o]=null});return{c(){for(let o=0;o<t.length;o+=1)t[o].c();e=O()},l(o){for(let r=0;r<t.length;r+=1)t[r].l(o);e=O()},m(o,r){for(let i=0;i<t.length;i+=1)t[i]&&t[i].m(o,r);D(o,e,r),n=!0},p(o,r){if(r&4){l=K(o[2]);let i;for(i=0;i<l.length;i+=1){const u=me(o,l,i);t[i]?(t[i].p(u,r),d(t[i],1)):(t[i]=he(u),t[i].c(),d(t[i],1),t[i].m(e.parentNode,e))}for(T(),i=l.length;i<t.length;i+=1)a(i);G()}},i(o){if(!n){for(let r=0;r<l.length;r+=1)d(t[r]);n=!0}},o(o){t=t.filter(Boolean);for(let r=0;r<t.length;r+=1)g(t[r]);n=!1},d(o){o&&M(e),De(t,o)}}}function at(s){let e;const n=s[6].default,l=V(n,s,s[10],de),t=l||st(s);return{c(){t&&t.c()},l(a){t&&t.l(a)},m(a,o){t&&t.m(a,o),e=!0},p(a,o){l&&l.p&&(!e||o&1024)&&W(l,n,a,a[10],e?F(n,a[10],o,xe):U(a[10]),de)},i(a){e||(d(t,a),e=!0)},o(a){g(t,a),e=!1},d(a){t&&t.d(a)}}}function ot(s){let e,n;return e=new je({props:{btnLabel:"",classNames:"colab-dropdown",noBtnClass:!0,useDeprecatedJS:!1,$$slots:{menu:[ut],button:[ft]},$$scope:{ctx:s}}}),{c(){y(e.$$.fragment)},l(l){H(e.$$.fragment,l)},m(l,t){E(e,l,t),n=!0},p(l,t){const a={};t&1024&&(a.$$scope={dirty:t,ctx:l}),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){A(e,l)}}}function it(s){let e,n,l;return{c(){e=z("a"),n=z("img"),this.h()},l(t){e=I(t,"A",{href:!0,target:!0});var a=p(e);n=I(a,"IMG",{alt:!0,class:!0,src:!0}),a.forEach(M),this.h()},h(){c(n,"alt","Open In Studio Lab"),c(n,"class","!m-0"),R(n.src,l="https://studiolab.sagemaker.aws/studiolab.svg")||c(n,"src",l),c(e,"href",s[3][0].value),c(e,"target","_blank")},m(t,a){D(t,e,a),B(e,n)},p:Y,i:Y,o:Y,d(t){t&&M(e)}}}function rt(s){let e,n;return{c(){e=z("img"),this.h()},l(l){e=I(l,"IMG",{alt:!0,class:!0,src:!0}),this.h()},h(){c(e,"alt","Open In Studio Lab"),c(e,"class","!m-0"),R(e.src,n="https://studiolab.sagemaker.aws/studiolab.svg")||c(e,"src",n)},m(l,t){D(l,e,t)},p:Y,d(l){l&&M(e)}}}function ft(s){let e;const n=s[6].default,l=V(n,s,s[10],fe),t=l||rt();return{c(){t&&t.c()},l(a){t&&t.l(a)},m(a,o){t&&t.m(a,o),e=!0},p(a,o){l&&l.p&&(!e||o&1024)&&W(l,n,a,a[10],e?F(n,a[10],o,Re):U(a[10]),fe)},i(a){e||(d(t,a),e=!0)},o(a){g(t,a),e=!1},d(a){t&&t.d(a)}}}function be(s){let e,n;function l(){return s[8](s[12])}return e=new ze({props:{classNames:"text-sm !no-underline",iconClassNames:"text-gray-500",label:s[11],onClick:l,useDeprecatedJS:!1}}),{c(){y(e.$$.fragment)},l(t){H(e.$$.fragment,t)},m(t,a){E(e,t,a),n=!0},p(t,a){s=t},i(t){n||(d(e.$$.fragment,t),n=!0)},o(t){g(e.$$.fragment,t),n=!1},d(t){A(e,t)}}}function ct(s){let e,n,l=K(s[3]),t=[];for(let o=0;o<l.length;o+=1)t[o]=be(ce(s,l,o));const a=o=>g(t[o],1,1,()=>{t[o]=null});return{c(){for(let o=0;o<t.length;o+=1)t[o].c();e=O()},l(o){for(let r=0;r<t.length;r+=1)t[r].l(o);e=O()},m(o,r){for(let i=0;i<t.length;i+=1)t[i]&&t[i].m(o,r);D(o,e,r),n=!0},p(o,r){if(r&8){l=K(o[3]);let i;for(i=0;i<l.length;i+=1){const u=ce(o,l,i);t[i]?(t[i].p(u,r),d(t[i],1)):(t[i]=be(u),t[i].c(),d(t[i],1),t[i].m(e.parentNode,e))}for(T(),i=l.length;i<t.length;i+=1)a(i);G()}},i(o){if(!n){for(let r=0;r<l.length;r+=1)d(t[r]);n=!0}},o(o){t=t.filter(Boolean);for(let r=0;r<t.length;r+=1)g(t[r]);n=!1},d(o){o&&M(e),De(t,o)}}}function ut(s){let e;const n=s[6].default,l=V(n,s,s[10],ue),t=l||ct(s);return{c(){t&&t.c()},l(a){t&&t.l(a)},m(a,o){t&&t.m(a,o),e=!0},p(a,o){l&&l.p&&(!e||o&1024)&&W(l,n,a,a[10],e?F(n,a[10],o,qe):U(a[10]),ue)},i(a){e||(d(t,a),e=!0)},o(a){g(t,a),e=!1},d(a){t&&t.d(a)}}}function _t(s){let e,n,l,t,a,o,r,i,u,h,L;const N=s[6].alwaysVisible,m=V(N,s,s[10],ge),f=[tt,et],_=[];function w(k,v){return k[2].length===1?0:k[2].length>1?1:-1}~(l=w(s))&&(t=_[l]=f[l](s));const j=[it,ot],S=[];function b(k,v){return k[3].length===1?0:k[3].length>1?1:-1}return~(o=b(s))&&(r=S[o]=j[o](s)),{c(){e=z("div"),m&&m.c(),n=P(),t&&t.c(),a=P(),r&&r.c(),this.h()},l(k){e=I(k,"DIV",{class:!0});var v=p(e);m&&m.l(v),n=J(v),t&&t.l(v),a=J(v),r&&r.l(v),v.forEach(M),this.h()},h(){c(e,"class",i="flex space-x-1 "+s[0])},m(k,v){D(k,e,v),m&&m.m(e,null),B(e,n),~l&&_[l].m(e,null),B(e,a),~o&&S[o].m(e,null),s[9](e),u=!0,h||(L=x(Xe,"resize",s[4]),h=!0)},p(k,[v]){m&&m.p&&(!u||v&1024)&&W(m,N,k,k[10],u?F(N,k[10],v,$e):U(k[10]),ge),t&&t.p(k,v),r&&r.p(k,v),(!u||v&1&&i!==(i="flex space-x-1 "+k[0]))&&c(e,"class",i)},i(k){u||(d(m,k),d(t),d(r),u=!0)},o(k){g(m,k),g(t),g(r),u=!1},d(k){k&&M(e),m&&m.d(k),~l&&_[l].d(),~o&&S[o].d(),s[9](null),h=!1,L()}}}function we(s){window.open(s)}function mt(s,e,n){let{$$slots:l={},$$scope:t}=e,{options:a=[]}=e,{classNames:o=""}=e,r;const i=a.filter(f=>f.value.includes("colab.research.google.com")),u=a.filter(f=>f.value.includes("studiolab.sagemaker.aws"));function h(){const f=document.querySelector(".prose-doc h1"),_=document.querySelector(".prose-doc h1 > span");if(f&&_){const{width:w}=f.getBoundingClientRect(),{width:j}=_.getBoundingClientRect();let S=0;for(let k=0;k<r.children.length;k++){const v=r.children.item(k);v&&(S+=v.clientWidth)}const b=20;w-j<S+b?r.classList.remove("absolute"):r.classList.add("absolute")}}Ne(()=>{(async()=>(await Ie(),h()))()});const L=f=>we(f),N=f=>we(f);function m(f){$[f?"unshift":"push"](()=>{r=f,n(1,r)})}return s.$$set=f=>{"options"in f&&n(5,a=f.options),"classNames"in f&&n(0,o=f.classNames),"$$scope"in f&&n(10,t=f.$$scope)},[o,r,i,u,h,a,l,L,N,m,t]}class dt extends Z{constructor(e){super(),X(this,e,mt,_t,Q,{options:5,classNames:0})}}function gt(s){let e,n,l;return{c(){e=z("a"),n=z("img"),this.h()},l(t){e=I(t,"A",{href:!0,target:!0});var a=p(e);n=I(a,"IMG",{alt:!0,class:!0,src:!0}),a.forEach(M),this.h()},h(){c(n,"alt","Ask a Question"),c(n,"class","!m-0"),R(n.src,l="https://img.shields.io/badge/Ask%20a%20question-ffcb4c.svg?logo=data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgLTEgMTA0IDEwNiI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOiMyMzFmMjA7fS5jbHMtMntmaWxsOiNmZmY5YWU7fS5jbHMtM3tmaWxsOiMwMGFlZWY7fS5jbHMtNHtmaWxsOiMwMGE5NGY7fS5jbHMtNXtmaWxsOiNmMTVkMjI7fS5jbHMtNntmaWxsOiNlMzFiMjM7fTwvc3R5bGU+PC9kZWZzPjx0aXRsZT5EaXNjb3Vyc2VfbG9nbzwvdGl0bGU+PGcgaWQ9IkxheWVyXzIiPjxnIGlkPSJMYXllcl8zIj48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik01MS44NywwQzIzLjcxLDAsMCwyMi44MywwLDUxYzAsLjkxLDAsNTIuODEsMCw1Mi44MWw1MS44Ni0uMDVjMjguMTYsMCw1MS0yMy43MSw1MS01MS44N1M4MCwwLDUxLjg3LDBaIi8+PHBhdGggY2xhc3M9ImNscy0yIiBkPSJNNTIuMzcsMTkuNzRBMzEuNjIsMzEuNjIsMCwwLDAsMjQuNTgsNjYuNDFsLTUuNzIsMTguNEwzOS40LDgwLjE3YTMxLjYxLDMxLjYxLDAsMSwwLDEzLTYwLjQzWiIvPjxwYXRoIGNsYXNzPSJjbHMtMyIgZD0iTTc3LjQ1LDMyLjEyYTMxLjYsMzEuNiwwLDAsMS0zOC4wNSw0OEwxOC44Niw4NC44MmwyMC45MS0yLjQ3QTMxLjYsMzEuNiwwLDAsMCw3Ny40NSwzMi4xMloiLz48cGF0aCBjbGFzcz0iY2xzLTQiIGQ9Ik03MS42MywyNi4yOUEzMS42LDMxLjYsMCwwLDEsMzguOCw3OEwxOC44Niw4NC44MiwzOS40LDgwLjE3QTMxLjYsMzEuNiwwLDAsMCw3MS42MywyNi4yOVoiLz48cGF0aCBjbGFzcz0iY2xzLTUiIGQ9Ik0yNi40Nyw2Ny4xMWEzMS42MSwzMS42MSwwLDAsMSw1MS0zNUEzMS42MSwzMS42MSwwLDAsMCwyNC41OCw2Ni40MWwtNS43MiwxOC40WiIvPjxwYXRoIGNsYXNzPSJjbHMtNiIgZD0iTTI0LjU4LDY2LjQxQTMxLjYxLDMxLjYxLDAsMCwxLDcxLjYzLDI2LjI5YTMxLjYxLDMxLjYxLDAsMCwwLTQ5LDM5LjYzbC0zLjc2LDE4LjlaIi8+PC9nPjwvZz48L3N2Zz4=")||c(n,"src",l),c(e,"href",s[2]),c(e,"target","_blank")},m(t,a){D(t,e,a),B(e,n)},p(t,a){a&4&&c(e,"href",t[2])},d(t){t&&M(e)}}}function ht(s){let e,n;return e=new dt({props:{options:s[0],classNames:s[1],$$slots:{alwaysVisible:[gt]},$$scope:{ctx:s}}}),{c(){y(e.$$.fragment)},l(l){H(e.$$.fragment,l)},m(l,t){E(e,l,t),n=!0},p(l,[t]){const a={};t&1&&(a.options=l[0]),t&2&&(a.classNames=l[1]),t&20&&(a.$$scope={dirty:t,ctx:l}),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){A(e,l)}}}function bt(s,e,n){let{chapter:l}=e,{notebooks:t=[]}=e,{classNames:a=""}=e,{askForHelpUrl:o=`https://discuss.huggingface.co/t/chapter-${l}-questions`}=e;return s.$$set=r=>{"chapter"in r&&n(3,l=r.chapter),"notebooks"in r&&n(0,t=r.notebooks),"classNames"in r&&n(1,a=r.classNames),"askForHelpUrl"in r&&n(2,o=r.askForHelpUrl)},[t,a,o,l]}class kt extends Z{constructor(e){super(),X(this,e,bt,ht,Q,{chapter:3,notebooks:0,classNames:1,askForHelpUrl:2})}}export{kt as C}; | |
Xet Storage Details
- Size:
- 22.2 kB
- Xet hash:
- 06c3eb6184b20b0a6f027a0facb8ec436e4a271a1f5b64ea80d267f7301180be
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.