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