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Wo;return U=new As({}),G=new Qa({props:{code:"aW1wb3J0JTIwJTdCJTIwZW52JTIwJTdEJTIwZnJvbSUyMCclNDB4ZW5vdmElMkZ0cmFuc2Zvcm1lcnMnJTNCJTBBZW52LmFsbG93UmVtb3RlTW9kZWxzJTIwJTNEJTIwZmFsc2UlM0I=",highlighted:`<span class="hljs-keyword">import</span> { env } <span class="hljs-keyword">from</span> <span class="hljs-string">&#x27;@xenova/transformers&#x27;</span>;
env.<span class="hljs-property">allowRemoteModels</span> = <span class="hljs-literal">false</span>;`}}),L=new Qa({props:{code:"aW1wb3J0JTIwJTdCJTIwZW52JTIwJTdEJTIwZnJvbSUyMCclNDB4ZW5vdmElMkZ0cmFuc2Zvcm1lcnMnJTNCJTBBZW52LmxvY2FsTW9kZWxQYXRoJTIwJTNEJTIwJyUyRnBhdGglMkZ0byUyRmxvY2FsJTJGbW9kZWxzJTJGJyUzQg==",highlighted:`<span class="hljs-keyword">import</span> { env } <span class="hljs-keyword">from</span> <span class="hljs-string">&#x27;@xenova/transformers&#x27;</span>;
env.<span class="hljs-property">localModelPath</span> = <span class="hljs-string">&#x27;/path/to/local/models/&#x27;</span>;`}}),Y=new Qa({props:{code:"aW1wb3J0JTIwJTdCJTIwZW52JTIwJTdEJTIwZnJvbSUyMCclNDB4ZW5vdmElMkZ0cmFuc2Zvcm1lcnMnJTNCJTBBZW52LmNhY2hlRGlyJTIwJTNEJTIwJyUyRnBhdGglMkZ0byUyRmNhY2hlJTJGZGlyZWN0b3J5JTJGJyUzQg==",highlighted:`<span class="hljs-keyword">import</span> { env } <span class="hljs-keyword">from</span> <span class="hljs-string">&#x27;@xenova/transformers&#x27;</span>;
env.<span class="hljs-property">cacheDir</span> = <span class="hljs-string">&#x27;/path/to/cache/directory/&#x27;</span>;`}}),Q=new As({}),{c(){u=o("meta"),Eo=n(),A=o("a"),mo=n(),T=o("h1"),C=o("a"),ie=o("span"),no(U.$$.fragment),Fo=n(),ve=o("span"),Lo=s("env"),_o=n(),se=o("p"),zo=s("Module used to configure Transformers.js."),uo=n(),H=o("p"),pe=o("strong"),Yo=s("Example:"),qo=s(" Disable remote models."),To=n(),no(G.$$.fragment),Do=n(),F=o("p"),Ee=o("strong"),Qo=s("Example:"),Ko=s(" Set local model path."),bo=n(),no(L.$$.fragment),wo=n(),z=o("p"),me=o("strong"),Vo=s("Example:"),Xo=s(" Set cache directory."),yo=n(),no(Y.$$.fragment),Co=n(),Jo=o("hr"),Po=n(),q=o("a"),go=n(),D=o("h2"),J=o("a"),_e=o("span"),no(Q.$$.fragment),el=n(),ue=o("span"),Te=o("code"),tl=s("env.env"),Oo=n(),de=o("p"),ol=s("Global variable used to control execution. This provides users a simple way to configure Transformers.js."),$o=n(),m=o("p"),De=o("strong"),ll=s("Kind"),al=s(": static constant of "),ce=o("a"),be=o("code"),rl=s("env"),sl=o("br"),dl=n(),we=o("strong"),cl=s("Properties"),ko=n(),P=o("table"),ye=o("thead"),K=o("tr"),Ce=o("th"),nl=s("Name"),Je=o("th"),fl=s("Type"),Pe=o("th"),hl=s("Description"),il=n(),i=o("tbody"),g=o("tr"),ge=o("td"),vl=s("backends"),Oe=o("td"),$e=o("code"),pl=s("Object"),ke=o("td"),xe=o("p"),El=s(`Expose environment variables of different backends,
allowing users to set these variables if they want to.`),ml=n(),O=o("tr"),Re=o("td"),_l=s("__dirname"),We=o("td"),Ie=o("code"),ul=s("string"),je=o("td"),Se=o("p"),Tl=s("Directory name of module. Useful for resolving local paths."),Dl=n(),$=o("tr"),Be=o("td"),bl=s("version"),Ne=o("td"),Ze=o("code"),wl=s("string"),Me=o("td"),Ae=o("p"),yl=s("This version of Transformers.js."),Cl=n(),k=o("tr"),Ue=o("td"),Jl=s("allowRemoteModels"),He=o("td"),Ge=o("code"),Pl=s("boolean"),Fe=o("td"),_=o("p"),gl=s("Whether to allow loading of remote files, defaults to "),Le=o("code"),Ol=s("true"),$l=s(`.
If set to `),ze=o("code"),kl=s("false"),xl=s(", it will have the same effect as setting "),Ye=o("code"),Rl=s("local_files_only=true"),Wl=s(" when loading pipelines, models, tokenizers, processors, etc."),Il=n(),x=o("tr"),qe=o("td"),jl=s("remoteHost"),Qe=o("td"),Ke=o("code"),Sl=s("string"),Ve=o("td"),Xe=o("p"),Bl=s("Host URL to load models from. Defaults to the Hugging Face Hub."),Nl=n(),R=o("tr"),et=o("td"),Zl=s("remotePathTemplate"),tt=o("td"),ot=o("code"),Ml=s("string"),lt=o("td"),V=o("p"),Al=s("Path template to fill in and append to "),at=o("code"),Ul=s("remoteHost"),Hl=s(" when loading models."),Gl=n(),W=o("tr"),rt=o("td"),Fl=s("allowLocalModels"),st=o("td"),dt=o("code"),Ll=s("boolean"),ct=o("td"),b=o("p"),zl=s("Whether to allow loading of local files, defaults to "),nt=o("code"),Yl=s("true"),ql=s(`.
If set to `),ft=o("code"),Ql=s("false"),Kl=s(", it will skip the local file check and try to load the model from the remote host."),Vl=n(),I=o("tr"),ht=o("td"),Xl=s("localModelPath"),it=o("td"),vt=o("code"),ea=s("string"),pt=o("td"),X=o("p"),ta=s("Path to load local models from. Defaults to "),Et=o("code"),oa=s("/models/"),la=s("."),aa=n(),j=o("tr"),mt=o("td"),ra=s("useFS"),_t=o("td"),ut=o("code"),sa=s("boolean"),Tt=o("td"),ee=o("p"),da=s("Whether to use the file system to load files. By default, it is "),Dt=o("code"),ca=s("true"),na=s(" if available."),fa=n(),S=o("tr"),bt=o("td"),ha=s("useBrowserCache"),wt=o("td"),yt=o("code"),ia=s("boolean"),Ct=o("td"),te=o("p"),va=s("Whether to use Cache API to cache models. By default, it is "),Jt=o("code"),pa=s("true"),Ea=s(" if available."),ma=n(),B=o("tr"),Pt=o("td"),_a=s("useFSCache"),gt=o("td"),Ot=o("code"),ua=s("boolean"),$t=o("td"),oe=o("p"),Ta=s("Whether to use the file system to cache files. By default, it is "),kt=o("code"),Da=s("true"),ba=s(" if available."),wa=n(),N=o("tr"),xt=o("td"),ya=s("cacheDir"),Rt=o("td"),Wt=o("code"),Ca=s("string"),It=o("td"),le=o("p"),Ja=s("The directory to use for caching files with the file system. By default, it is "),jt=o("code"),Pa=s("./.cache"),ga=s("."),Oa=n(),Z=o("tr"),St=o("td"),$a=s("useCustomCache"),Bt=o("td"),Nt=o("code"),ka=s("boolean"),Zt=o("td"),w=o("p"),xa=s("Whether to use a custom cache system (defined by "),Mt=o("code"),Ra=s("customCache"),Wa=s("), defaults to "),At=o("code"),Ia=s("false"),ja=s("."),Sa=n(),ae=o("tr"),Ut=o("td"),Ba=s("customCache"),Ht=o("td"),Gt=o("code"),Na=s("Object"),Ft=o("td"),E=o("p"),Za=s("The custom cache to use. Defaults to "),Lt=o("code"),Ma=s("null"),Aa=s(`. Note: this must be an object which
implements the `),zt=o("code"),Ua=s("match"),Ha=s(" and "),Yt=o("code"),Ga=s("put"),Fa=s(" functions of the Web Cache API. For more information, see "),ne=o("a"),La=s("https://developer.mozilla.org/en-US/docs/Web/API/Cache"),xo=n(),Ro=o("hr"),this.h()},l(r){const c=Fs('[data-svelte="svelte-1phssyn"]',document.head);u=l(c,"META",{name:!0,content:!0}),c.forEach(t),Eo=f(r),A=l(r,"A",{id:!0,class:!0}),a(A).forEach(t),mo=f(r),T=l(r,"H1",{class:!0});var Io=a(T);C=l(Io,"A",{id:!0,class:!0,href:!0});var Va=a(C);ie=l(Va,"SPAN",{});var Xa=a(ie);fo(U.$$.fragment,Xa),Xa.forEach(t),Va.forEach(t),Fo=f(Io),ve=l(Io,"SPAN",{});var er=a(ve);Lo=d(er,"env"),er.forEach(t),Io.forEach(t),_o=f(r),se=l(r,"P",{});var tr=a(se);zo=d(tr,"Module used to configure Transformers.js."),tr.forEach(t),uo=f(r),H=l(r,"P",{});var za=a(H);pe=l(za,"STRONG",{});var or=a(pe);Yo=d(or,"Example:"),or.forEach(t),qo=d(za," Disable remote models."),za.forEach(t),To=f(r),fo(G.$$.fragment,r),Do=f(r),F=l(r,"P",{});var Ya=a(F);Ee=l(Ya,"STRONG",{});var lr=a(Ee);Qo=d(lr,"Example:"),lr.forEach(t),Ko=d(Ya," Set local model path."),Ya.forEach(t),bo=f(r),fo(L.$$.fragment,r),wo=f(r),z=l(r,"P",{});var qa=a(z);me=l(qa,"STRONG",{});var ar=a(me);Vo=d(ar,"Example:"),ar.forEach(t),Xo=d(qa," Set cache directory."),qa.forEach(t),yo=f(r),fo(Y.$$.fragment,r),Co=f(r),Jo=l(r,"HR",{}),Po=f(r),q=l(r,"A",{id:!0,class:!0}),a(q).forEach(t),go=f(r),D=l(r,"H2",{class:!0});var jo=a(D);J=l(jo,"A",{id:!0,class:!0,href:!0});var rr=a(J);_e=l(rr,"SPAN",{});var sr=a(_e);fo(Q.$$.fragment,sr),sr.forEach(t),rr.forEach(t),el=f(jo),ue=l(jo,"SPAN",{});var dr=a(ue);Te=l(dr,"CODE",{});var cr=a(Te);tl=d(cr,"env.env"),cr.forEach(t),dr.forEach(t),jo.forEach(t),Oo=f(r),de=l(r,"P",{});var nr=a(de);ol=d(nr,"Global variable used to control execution. This provides users a simple way to configure Transformers.js."),nr.forEach(t),$o=f(r),m=l(r,"P",{});var re=a(m);De=l(re,"STRONG",{});var fr=a(De);ll=d(fr,"Kind"),fr.forEach(t),al=d(re,": static constant of "),ce=l(re,"A",{href:!0});var hr=a(ce);be=l(hr,"CODE",{});var ir=a(be);rl=d(ir,"env"),ir.forEach(t),hr.forEach(t),sl=l(re,"BR",{}),dl=f(re),we=l(re,"STRONG",{});var vr=a(we);cl=d(vr,"Properties"),vr.forEach(t),re.forEach(t),ko=f(r),P=l(r,"TABLE",{});var So=a(P);ye=l(So,"THEAD",{});var pr=a(ye);K=l(pr,"TR",{});var Bo=a(K);Ce=l(Bo,"TH",{});var Er=a(Ce);nl=d(Er,"Name"),Er.forEach(t),Je=l(Bo,"TH",{});var mr=a(Je);fl=d(mr,"Type"),mr.forEach(t),Pe=l(Bo,"TH",{});var _r=a(Pe);hl=d(_r,"Description"),_r.forEach(t),Bo.forEach(t),pr.forEach(t),il=f(So),i=l(So,"TBODY",{});var p=a(i);g=l(p,"TR",{});var qt=a(g);ge=l(qt,"TD",{});var ur=a(ge);vl=d(ur,"backends"),ur.forEach(t),Oe=l(qt,"TD",{});var Tr=a(Oe);$e=l(Tr,"CODE",{});var Dr=a($e);pl=d(Dr,"Object"),Dr.forEach(t),Tr.forEach(t),ke=l(qt,"TD",{});var br=a(ke);xe=l(br,"P",{});var wr=a(xe);El=d(wr,`Expose environment variables of different backends,
allowing users to set these variables if they want to.`),wr.forEach(t),br.forEach(t),ml=f(qt),qt.forEach(t),O=l(p,"TR",{});var Qt=a(O);Re=l(Qt,"TD",{});var yr=a(Re);_l=d(yr,"__dirname"),yr.forEach(t),We=l(Qt,"TD",{});var Cr=a(We);Ie=l(Cr,"CODE",{});var Jr=a(Ie);ul=d(Jr,"string"),Jr.forEach(t),Cr.forEach(t),je=l(Qt,"TD",{});var Pr=a(je);Se=l(Pr,"P",{});var gr=a(Se);Tl=d(gr,"Directory name of module. Useful for resolving local paths."),gr.forEach(t),Pr.forEach(t),Dl=f(Qt),Qt.forEach(t),$=l(p,"TR",{});var Kt=a($);Be=l(Kt,"TD",{});var Or=a(Be);bl=d(Or,"version"),Or.forEach(t),Ne=l(Kt,"TD",{});var $r=a(Ne);Ze=l($r,"CODE",{});var kr=a(Ze);wl=d(kr,"string"),kr.forEach(t),$r.forEach(t),Me=l(Kt,"TD",{});var xr=a(Me);Ae=l(xr,"P",{});var Rr=a(Ae);yl=d(Rr,"This version of Transformers.js."),Rr.forEach(t),xr.forEach(t),Cl=f(Kt),Kt.forEach(t),k=l(p,"TR",{});var Vt=a(k);Ue=l(Vt,"TD",{});var Wr=a(Ue);Jl=d(Wr,"allowRemoteModels"),Wr.forEach(t),He=l(Vt,"TD",{});var Ir=a(He);Ge=l(Ir,"CODE",{});var jr=a(Ge);Pl=d(jr,"boolean"),jr.forEach(t),Ir.forEach(t),Fe=l(Vt,"TD",{});var Sr=a(Fe);_=l(Sr,"P",{});var M=a(_);gl=d(M,"Whether to allow loading of remote files, defaults to "),Le=l(M,"CODE",{});var Br=a(Le);Ol=d(Br,"true"),Br.forEach(t),$l=d(M,`.
If set to `),ze=l(M,"CODE",{});var Nr=a(ze);kl=d(Nr,"false"),Nr.forEach(t),xl=d(M,", it will have the same effect as setting "),Ye=l(M,"CODE",{});var Zr=a(Ye);Rl=d(Zr,"local_files_only=true"),Zr.forEach(t),Wl=d(M," when loading pipelines, models, tokenizers, processors, etc."),M.forEach(t),Sr.forEach(t),Il=f(Vt),Vt.forEach(t),x=l(p,"TR",{});var Xt=a(x);qe=l(Xt,"TD",{});var Mr=a(qe);jl=d(Mr,"remoteHost"),Mr.forEach(t),Qe=l(Xt,"TD",{});var Ar=a(Qe);Ke=l(Ar,"CODE",{});var Ur=a(Ke);Sl=d(Ur,"string"),Ur.forEach(t),Ar.forEach(t),Ve=l(Xt,"TD",{});var Hr=a(Ve);Xe=l(Hr,"P",{});var Gr=a(Xe);Bl=d(Gr,"Host URL to load models from. Defaults to the Hugging Face Hub."),Gr.forEach(t),Hr.forEach(t),Nl=f(Xt),Xt.forEach(t),R=l(p,"TR",{});var eo=a(R);et=l(eo,"TD",{});var Fr=a(et);Zl=d(Fr,"remotePathTemplate"),Fr.forEach(t),tt=l(eo,"TD",{});var Lr=a(tt);ot=l(Lr,"CODE",{});var zr=a(ot);Ml=d(zr,"string"),zr.forEach(t),Lr.forEach(t),lt=l(eo,"TD",{});var Yr=a(lt);V=l(Yr,"P",{});var No=a(V);Al=d(No,"Path template to fill in and append to "),at=l(No,"CODE",{});var qr=a(at);Ul=d(qr,"remoteHost"),qr.forEach(t),Hl=d(No," when loading models."),No.forEach(t),Yr.forEach(t),Gl=f(eo),eo.forEach(t),W=l(p,"TR",{});var to=a(W);rt=l(to,"TD",{});var Qr=a(rt);Fl=d(Qr,"allowLocalModels"),Qr.forEach(t),st=l(to,"TD",{});var Kr=a(st);dt=l(Kr,"CODE",{});var Vr=a(dt);Ll=d(Vr,"boolean"),Vr.forEach(t),Kr.forEach(t),ct=l(to,"TD",{});var Xr=a(ct);b=l(Xr,"P",{});var fe=a(b);zl=d(fe,"Whether to allow loading of local files, defaults to "),nt=l(fe,"CODE",{});var es=a(nt);Yl=d(es,"true"),es.forEach(t),ql=d(fe,`.
If set to `),ft=l(fe,"CODE",{});var ts=a(ft);Ql=d(ts,"false"),ts.forEach(t),Kl=d(fe,", it will skip the local file check and try to load the model from the remote host."),fe.forEach(t),Xr.forEach(t),Vl=f(to),to.forEach(t),I=l(p,"TR",{});var oo=a(I);ht=l(oo,"TD",{});var os=a(ht);Xl=d(os,"localModelPath"),os.forEach(t),it=l(oo,"TD",{});var ls=a(it);vt=l(ls,"CODE",{});var as=a(vt);ea=d(as,"string"),as.forEach(t),ls.forEach(t),pt=l(oo,"TD",{});var rs=a(pt);X=l(rs,"P",{});var Zo=a(X);ta=d(Zo,"Path to load local models from. Defaults to "),Et=l(Zo,"CODE",{});var ss=a(Et);oa=d(ss,"/models/"),ss.forEach(t),la=d(Zo,"."),Zo.forEach(t),rs.forEach(t),aa=f(oo),oo.forEach(t),j=l(p,"TR",{});var lo=a(j);mt=l(lo,"TD",{});var ds=a(mt);ra=d(ds,"useFS"),ds.forEach(t),_t=l(lo,"TD",{});var cs=a(_t);ut=l(cs,"CODE",{});var ns=a(ut);sa=d(ns,"boolean"),ns.forEach(t),cs.forEach(t),Tt=l(lo,"TD",{});var fs=a(Tt);ee=l(fs,"P",{});var Mo=a(ee);da=d(Mo,"Whether to use the file system to load files. By default, it is "),Dt=l(Mo,"CODE",{});var hs=a(Dt);ca=d(hs,"true"),hs.forEach(t),na=d(Mo," if available."),Mo.forEach(t),fs.forEach(t),fa=f(lo),lo.forEach(t),S=l(p,"TR",{});var ao=a(S);bt=l(ao,"TD",{});var is=a(bt);ha=d(is,"useBrowserCache"),is.forEach(t),wt=l(ao,"TD",{});var vs=a(wt);yt=l(vs,"CODE",{});var ps=a(yt);ia=d(ps,"boolean"),ps.forEach(t),vs.forEach(t),Ct=l(ao,"TD",{});var Es=a(Ct);te=l(Es,"P",{});var Ao=a(te);va=d(Ao,"Whether to use Cache API to cache models. By default, it is "),Jt=l(Ao,"CODE",{});var ms=a(Jt);pa=d(ms,"true"),ms.forEach(t),Ea=d(Ao," if available."),Ao.forEach(t),Es.forEach(t),ma=f(ao),ao.forEach(t),B=l(p,"TR",{});var ro=a(B);Pt=l(ro,"TD",{});var _s=a(Pt);_a=d(_s,"useFSCache"),_s.forEach(t),gt=l(ro,"TD",{});var us=a(gt);Ot=l(us,"CODE",{});var Ts=a(Ot);ua=d(Ts,"boolean"),Ts.forEach(t),us.forEach(t),$t=l(ro,"TD",{});var Ds=a($t);oe=l(Ds,"P",{});var Uo=a(oe);Ta=d(Uo,"Whether to use the file system to cache files. By default, it is "),kt=l(Uo,"CODE",{});var bs=a(kt);Da=d(bs,"true"),bs.forEach(t),ba=d(Uo," if available."),Uo.forEach(t),Ds.forEach(t),wa=f(ro),ro.forEach(t),N=l(p,"TR",{});var so=a(N);xt=l(so,"TD",{});var ws=a(xt);ya=d(ws,"cacheDir"),ws.forEach(t),Rt=l(so,"TD",{});var ys=a(Rt);Wt=l(ys,"CODE",{});var Cs=a(Wt);Ca=d(Cs,"string"),Cs.forEach(t),ys.forEach(t),It=l(so,"TD",{});var Js=a(It);le=l(Js,"P",{});var Ho=a(le);Ja=d(Ho,"The directory to use for caching files with the file system. By default, it is "),jt=l(Ho,"CODE",{});var Ps=a(jt);Pa=d(Ps,"./.cache"),Ps.forEach(t),ga=d(Ho,"."),Ho.forEach(t),Js.forEach(t),Oa=f(so),so.forEach(t),Z=l(p,"TR",{});var co=a(Z);St=l(co,"TD",{});var gs=a(St);$a=d(gs,"useCustomCache"),gs.forEach(t),Bt=l(co,"TD",{});var Os=a(Bt);Nt=l(Os,"CODE",{});var $s=a(Nt);ka=d($s,"boolean"),$s.forEach(t),Os.forEach(t),Zt=l(co,"TD",{});var ks=a(Zt);w=l(ks,"P",{});var he=a(w);xa=d(he,"Whether to use a custom cache system (defined by "),Mt=l(he,"CODE",{});var xs=a(Mt);Ra=d(xs,"customCache"),xs.forEach(t),Wa=d(he,"), defaults to "),At=l(he,"CODE",{});var Rs=a(At);Ia=d(Rs,"false"),Rs.forEach(t),ja=d(he,"."),he.forEach(t),ks.forEach(t),Sa=f(co),co.forEach(t),ae=l(p,"TR",{});var Go=a(ae);Ut=l(Go,"TD",{});var Ws=a(Ut);Ba=d(Ws,"customCache"),Ws.forEach(t),Ht=l(Go,"TD",{});var Is=a(Ht);Gt=l(Is,"CODE",{});var js=a(Gt);Na=d(js,"Object"),js.forEach(t),Is.forEach(t),Ft=l(Go,"TD",{});var Ss=a(Ft);E=l(Ss,"P",{});var y=a(E);Za=d(y,"The custom cache to use. Defaults to "),Lt=l(y,"CODE",{});var Bs=a(Lt);Ma=d(Bs,"null"),Bs.forEach(t),Aa=d(y,`. Note: this must be an object which
implements the `),zt=l(y,"CODE",{});var Ns=a(zt);Ua=d(Ns,"match"),Ns.forEach(t),Ha=d(y," and "),Yt=l(y,"CODE",{});var Zs=a(Yt);Ga=d(Zs,"put"),Zs.forEach(t),Fa=d(y," functions of the Web Cache API. For more information, see "),ne=l(y,"A",{href:!0});var Ms=a(ne);La=d(Ms,"https://developer.mozilla.org/en-US/docs/Web/API/Cache"),Ms.forEach(t),y.forEach(t),Ss.forEach(t),Go.forEach(t),p.forEach(t),So.forEach(t),xo=f(r),Ro=l(r,"HR",{}),this.h()},h(){v(u,"name","hf:doc:metadata"),v(u,"content",JSON.stringify(qs)),v(A,"id","module_env"),v(A,"class","group"),v(C,"id","env"),v(C,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),v(C,"href","#env"),v(T,"class","relative group"),v(q,"id","module_env.env"),v(q,"class","group"),v(J,"id","envenv"),v(J,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),v(J,"href","#envenv"),v(D,"class","relative group"),v(ce,"href","#module_env"),v(ne,"href","https://developer.mozilla.org/en-US/docs/Web/API/Cache")},m(r,c){e(document.head,u),h(r,Eo,c),h(r,A,c),h(r,mo,c),h(r,T,c),e(T,C),e(C,ie),ho(U,ie,null),e(T,Fo),e(T,ve),e(ve,Lo),h(r,_o,c),h(r,se,c),e(se,zo),h(r,uo,c),h(r,H,c),e(H,pe),e(pe,Yo),e(H,qo),h(r,To,c),ho(G,r,c),h(r,Do,c),h(r,F,c),e(F,Ee),e(Ee,Qo),e(F,Ko),h(r,bo,c),ho(L,r,c),h(r,wo,c),h(r,z,c),e(z,me),e(me,Vo),e(z,Xo),h(r,yo,c),ho(Y,r,c),h(r,Co,c),h(r,Jo,c),h(r,Po,c),h(r,q,c),h(r,go,c),h(r,D,c),e(D,J),e(J,_e),ho(Q,_e,null),e(D,el),e(D,ue),e(ue,Te),e(Te,tl),h(r,Oo,c),h(r,de,c),e(de,ol),h(r,$o,c),h(r,m,c),e(m,De),e(De,ll),e(m,al),e(m,ce),e(ce,be),e(be,rl),e(m,sl),e(m,dl),e(m,we),e(we,cl),h(r,ko,c),h(r,P,c),e(P,ye),e(ye,K),e(K,Ce),e(Ce,nl),e(K,Je),e(Je,fl),e(K,Pe),e(Pe,hl),e(P,il),e(P,i),e(i,g),e(g,ge),e(ge,vl),e(g,Oe),e(Oe,$e),e($e,pl),e(g,ke),e(ke,xe),e(xe,El),e(g,ml),e(i,O),e(O,Re),e(Re,_l),e(O,We),e(We,Ie),e(Ie,ul),e(O,je),e(je,Se),e(Se,Tl),e(O,Dl),e(i,$),e($,Be),e(Be,bl),e($,Ne),e(Ne,Ze),e(Ze,wl),e($,Me),e(Me,Ae),e(Ae,yl),e($,Cl),e(i,k),e(k,Ue),e(Ue,Jl),e(k,He),e(He,Ge),e(Ge,Pl),e(k,Fe),e(Fe,_),e(_,gl),e(_,Le),e(Le,Ol),e(_,$l),e(_,ze),e(ze,kl),e(_,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ft,E),e(E,Za),e(E,Lt),e(Lt,Ma),e(E,Aa),e(E,zt),e(zt,Ua),e(E,Ha),e(E,Yt),e(Yt,Ga),e(E,Fa),e(E,ne),e(ne,La),h(r,xo,c),h(r,Ro,c),Wo=!0},p:Ls,i(r){Wo||(io(U.$$.fragment,r),io(G.$$.fragment,r),io(L.$$.fragment,r),io(Y.$$.fragment,r),io(Q.$$.fragment,r),Wo=!0)},o(r){vo(U.$$.fragment,r),vo(G.$$.fragment,r),vo(L.$$.fragment,r),vo(Y.$$.fragment,r),vo(Q.$$.fragment,r),Wo=!1},d(r){t(u),r&&t(Eo),r&&t(A),r&&t(mo),r&&t(T),po(U),r&&t(_o),r&&t(se),r&&t(uo),r&&t(H),r&&t(To),po(G,r),r&&t(Do),r&&t(F),r&&t(bo),po(L,r),r&&t(wo),r&&t(z),r&&t(yo),po(Y,r),r&&t(Co),r&&t(Jo),r&&t(Po),r&&t(q),r&&t(go),r&&t(D),po(Q),r&&t(Oo),r&&t(de),r&&t($o),r&&t(m),r&&t(ko),r&&t(P),r&&t(xo),r&&t(Ro)}}}const qs={local:"env",sections:[{local:"envenv",title:"`env.env`"}],title:"env"};function Qs(Ka){return zs(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class ed extends Us{constructor(u){super();Hs(this,u,Qs,Ys,Gs,{})}}export{ed as default,qs as metadata};
