Buckets:
| import{r as u,d as h,p as g,c as _,b as p,a as b,h as d,e as m,m as k,s as y,f as $,g as w,E as j,i as x,j as A,k as C,l as v}from"./BrY_21Bg.js";function M(o){if(/^\/(docs|learn)/.test(o)){const e=o.slice(1).split("/"),t=e.shift(),s=e.shift(),n=(t==="learn"?/^(?:pr_\d+)$/:/^(?:(master|main)|v[\d.]+(rc\d+)?|pr_\d+)$/).test(e[0])?e.shift():"pr_13966",r=/^[a-z]{2}(-[A-Z]{2})?$/.test(e[0])?e.shift():"ja",f=e.join("/");if(s==="diffusers"&&n==="pr_13966"&&r==="ja")return`/docs/diffusers/pr_13966/ja/${f}`}}class F{anchor;#s=new Map;#t=new Map;#e=new Map;#r=new Set;#i=!0;constructor(e,t=!0){this.anchor=e,this.#i=t}#a=e=>{if(this.#s.has(e)){var t=this.#s.get(e),s=this.#t.get(t);if(s)u(s),this.#r.delete(t);else{var i=this.#e.get(t);i&&(u(i.effect),this.#t.set(t,i.effect),this.#e.delete(t),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),s=i.effect)}for(const[a,n]of this.#s){if(this.#s.delete(a),a===e)break;const r=this.#e.get(n);r&&(h(r.effect),this.#e.delete(n))}for(const[a,n]of this.#t){if(a===t||this.#r.has(a))continue;const r=()=>{if(Array.from(this.#s.values()).includes(a)){var c=document.createDocumentFragment();k(n,c),c.append(_()),this.#e.set(a,{effect:n,fragment:c})}else h(n);this.#r.delete(a),this.#t.delete(a)};this.#i||!s?(this.#r.add(a),g(n,r,!1)):r()}}};#n=e=>{this.#s.delete(e);const t=Array.from(this.#s.values());for(const[s,i]of this.#e)t.includes(s)||(h(i.effect),this.#e.delete(s))};ensure(e,t){var s=b,i=y();if(t&&!this.#t.has(e)&&!this.#e.has(e))if(i){var a=document.createDocumentFragment(),n=_();a.append(n),this.#e.set(e,{effect:p(()=>t(n)),fragment:a})}else this.#t.set(e,p(()=>t(this.anchor)));if(this.#s.set(s,e),i){for(const[r,f]of this.#t)r===e?s.unskip_effect(f):s.skip_effect(f);for(const[r,f]of this.#e)r===e?s.unskip_effect(f.effect):s.skip_effect(f.effect);s.oncommit(this.#a),s.ondiscard(this.#n)}else d&&(this.anchor=m),this.#a(s)}}function R(o,e,t=!1){var s;d&&(s=m,w());var i=new F(o),a=t?j:0;function n(r,f){if(d){var c=x(s);if(r!==parseInt(c.substring(1))){var l=A();C(l),i.anchor=l,v(!1),i.ensure(r,f),v(!0);return}}i.ensure(r,f)}$(()=>{var r=!1;e((f,c=0)=>{r=!0,n(c,f)}),r||n(-1,null)},a)}export{F as B,M as g,R as i}; | |
Xet Storage Details
- Size:
- 2.18 kB
- Xet hash:
- 2e559480158348d6f3297df79fb07ee787cf049c70bf5976b14afadcc6a44b14
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.