@the-bearded-bear/claude-craft 8.23.2 → 8.23.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,4 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/BurndownView-BBl1LOfu.js","assets/BurndownView-B6D7QRcK.css","assets/DepsView-DXREli3v.js","assets/DepsView-D0N9Tg4d.css","assets/DocsView--bhcgCS3.js","assets/marked.esm-2LEqwveT.js","assets/purify.es-Dqk5qvad.js","assets/DocsView-CBBzt7Ru.css","assets/SprintsView-CLKf2BTm.js","assets/SprintsView-8AMci9M2.css"])))=>i.map(i=>d[i]);
2
+ (function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var e=Array.isArray,t=Array.prototype.indexOf,n=Array.prototype.includes,r=Array.from,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyDescriptors,s=Object.prototype,c=Array.prototype,l=Object.getPrototypeOf,u=Object.isExtensible,d=()=>{};function f(e){return typeof e?.then==`function`}function p(e){for(var t=0;t<e.length;t++)e[t]()}function m(){var e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}function h(e,t){if(Array.isArray(e))return e;if(t===void 0||!(Symbol.iterator in e))return Array.from(e);let n=[];for(let r of e)if(n.push(r),n.length===t)break;return n}var g=1024,_=2048,v=4096,y=8192,b=16384,x=32768,S=1<<25,ee=65536,C=1<<19,te=1<<20,ne=1<<25,re=65536,ie=1<<21,ae=1<<22,oe=1<<23,w=Symbol(`$state`),se=Symbol(`legacy props`),ce=Symbol(``),le=Symbol(`attributes`),ue=Symbol(`class`),de=Symbol(`style`),fe=Symbol(`text`),pe=Symbol(`form reset`),me=new class extends Error{name=`StaleReactionError`;message="The reaction that called `getAbortSignal()` was re-run or destroyed"},he=!!globalThis.document?.contentType&&globalThis.document.contentType.includes(`xml`);function ge(e){throw Error(`https://svelte.dev/e/lifecycle_outside_component`)}function _e(){throw Error(`https://svelte.dev/e/async_derived_orphan`)}function ve(e,t,n){throw Error(`https://svelte.dev/e/each_key_duplicate`)}function ye(e){throw Error(`https://svelte.dev/e/effect_in_teardown`)}function be(){throw Error(`https://svelte.dev/e/effect_in_unowned_derived`)}function xe(e){throw Error(`https://svelte.dev/e/effect_orphan`)}function Se(){throw Error(`https://svelte.dev/e/effect_update_depth_exceeded`)}function Ce(e){throw Error(`https://svelte.dev/e/props_invalid_value`)}function we(){throw Error(`https://svelte.dev/e/state_descriptors_fixed`)}function Te(){throw Error(`https://svelte.dev/e/state_prototype_fixed`)}function Ee(){throw Error(`https://svelte.dev/e/state_unsafe_mutation`)}function De(){throw Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`)}var Oe={},T=Symbol(`uninitialized`),ke=`http://www.w3.org/1999/xhtml`,Ae=`http://www.w3.org/2000/svg`,je=`http://www.w3.org/1998/Math/MathML`;function Me(){console.warn(`https://svelte.dev/e/derived_inert`)}function Ne(e){console.warn(`https://svelte.dev/e/hydration_mismatch`)}function Pe(){console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`)}var E=!1;function Fe(e){E=e}var D;function O(e){if(e===null)throw Ne(),Oe;return D=e}function Ie(){return O(sn(D))}function k(e){if(E){if(sn(D)!==null)throw Ne(),Oe;D=e}}function Le(e=1){if(E){for(var t=e,n=D;t--;)n=sn(n);D=n}}function Re(e=!0){for(var t=0,n=D;;){if(n.nodeType===8){var r=n.data;if(r===`]`){if(t===0)return n;--t}else(r===`[`||r===`[!`||r[0]===`[`&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=sn(n);e&&n.remove(),n=i}}function ze(e){if(!e||e.nodeType!==8)throw Ne(),Oe;return e.data}function Be(e){return e===this.v}function Ve(e,t){return e==e?e!==t||typeof e==`object`&&!!e||typeof e==`function`:t==t}function He(e){return!Ve(e,this.v)}var A=null;function Ue(e){A=e}function We(e,t=!1,n){A={p:A,i:!1,c:null,e:null,s:e,x:null,r:H,l:null}}function Ge(e){var t=A,n=t.e;if(n!==null){t.e=null;for(var r of n)vn(r)}return e!==void 0&&(t.x=e),t.i=!0,A=t.p,e??{}}function Ke(){return!0}var qe=[];function Je(){var e=qe;qe=[],p(e)}function Ye(e){if(qe.length===0&&!At){var t=qe;queueMicrotask(()=>{t===qe&&Je()})}qe.push(e)}function Xe(){for(;qe.length>0;)Je()}function Ze(e){var t=H;if(t===null)return V.f|=oe,e;if(!(t.f&32768)&&!(t.f&4))throw e;Qe(e,t)}function Qe(e,t){if(!(t!==null&&t.f&16384)){for(;t!==null;){if(t.f&128){if(!(t.f&32768))throw e;try{t.b.error(e);return}catch(t){e=t}}t=t.parent}throw e}}var $e=~(_|v|g);function j(e,t){e.f=e.f&$e|t}function et(e){e.f&512||e.deps===null?j(e,g):j(e,v)}function tt(e){if(e!==null)for(let t of e)t.f&2&&t.f&65536&&(t.f^=re,tt(t.deps))}function nt(e,t,n){e.f&2048?t.add(e):e.f&4096&&n.add(e),tt(e.deps),j(e,g)}var rt=!1;function it(e){var t=rt;try{return rt=!1,[e(),rt]}finally{rt=t}}var at=!1;function ot(){at||(at=!0,document.addEventListener(`reset`,e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(let t of e.target.elements)t[pe]?.()})},{capture:!0}))}function st(e){var t=V,n=H;Vn(null),Hn(null);try{return e()}finally{Vn(t),Hn(n)}}function ct(e,t,n,r=n){e.addEventListener(t,()=>st(n));let i=e[pe];e[pe]=i?()=>{i(),r(!0)}:()=>r(!0),ot()}function lt(e){let t=0,n=qt(0),r;return()=>{hn()&&(U(n),Sn(()=>(t===0&&(r=lr(()=>e(()=>Zt(n)))),t+=1,()=>{Ye(()=>{--t,t===0&&(r?.(),r=void 0,Zt(n))})})))}}var ut=ee|C;function dt(e,t,n,r){new ft(e,t,n,r)}var ft=class{parent;is_pending=!1;transform_error;#e;#t=E?D:null;#n;#r;#i;#a=null;#o=null;#s=null;#c=null;#l=0;#u=0;#d=!1;#f=new Set;#p=new Set;#m=null;#h=lt(()=>(this.#m=qt(this.#l),()=>{this.#m=null}));constructor(e,t,n,r){this.#e=e,this.#n=t,this.#r=e=>{var t=H;t.b=this,t.f|=128,n(e)},this.parent=H.b,this.transform_error=r??this.parent?.transform_error??(e=>e),this.#i=Cn(()=>{if(E){let e=this.#t;Ie();let t=e.data===`[!`;if(e.data.startsWith(`[?`)){let t=JSON.parse(e.data.slice(2));this.#_(t)}else t?this.#y():this.#g()}else this.#b()},ut),E&&(this.#e=D)}#g(){try{this.#a=wn(()=>this.#r(this.#e))}catch(e){this.error(e)}}#_(e){let t=this.#n.failed,{reset:n,invoke_onerror:r}=this.#v(e);Ye(r),t&&(this.#s=wn(()=>{t(this.#e,()=>e,()=>n)}))}#v(e){var t=!1,n=!1;let r=()=>{t?Pe():(t=!0,n&&De(),this.#s!==null&&jn(this.#s,()=>{this.#s=null}),this.#S(()=>{this.#b()}))};return{reset:r,invoke_onerror:()=>{try{n=!0,this.#n.onerror?.(e,r),n=!1}catch(e){Qe(e,this.#i&&this.#i.parent)}}}}#y(){let e=this.#n.pending;e&&(this.is_pending=!0,this.#o=wn(()=>e(this.#e)),Ye(()=>{var e=this.#c=document.createDocumentFragment(),t=on();e.append(t),this.#a=this.#S(()=>wn(()=>this.#r(t))),this.#u===0&&(this.#e.before(e),this.#c=null,jn(this.#o,()=>{this.#o=null}),this.#x(N))}))}#b(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#l=0,this.#a=wn(()=>{this.#r(this.#e)}),this.#u>0){var e=this.#c=document.createDocumentFragment();Fn(this.#a,e);let t=this.#n.pending;this.#o=wn(()=>t(this.#e))}else this.#x(N)}catch(e){this.error(e)}}#x(e){this.is_pending=!1,e.transfer_effects(this.#f,this.#p)}defer_effect(e){nt(e,this.#f,this.#p)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#n.pending}#S(e){var t=H,n=V,r=A;Hn(this.#i),Vn(this.#i),Ue(this.#i.ctx);try{return It.ensure(),e()}catch(e){return Ze(e),null}finally{Hn(t),Vn(n),Ue(r)}}#C(e,t){this.has_pending_snippet()?(this.#u+=e,this.#u===0&&(this.#x(t),this.#o&&jn(this.#o,()=>{this.#o=null}),this.#c&&=(this.#e.before(this.#c),null))):this.parent&&this.parent.#C(e,t)}update_pending_count(e,t){this.#C(e,t),this.#l+=e,!(!this.#m||this.#d)&&(this.#d=!0,Ye(()=>{this.#d=!1,this.#m&&Yt(this.#m,this.#l)}))}get_effect_pending(){return this.#h(),U(this.#m)}error(e){if(!this.#n.onerror&&!this.#n.failed)throw e;N?.is_fork?(this.#a&&N.skip_effect(this.#a),this.#o&&N.skip_effect(this.#o),this.#s&&N.skip_effect(this.#s),N.oncommit(()=>{this.#w(e)})):this.#w(e)}#w(e){this.#a&&=(On(this.#a),null),this.#o&&=(On(this.#o),null),this.#s&&=(On(this.#s),null),E&&(O(this.#t),Le(),O(Re()));let t=this.#n.failed,n=e=>{let{reset:n,invoke_onerror:r}=this.#v(e);r(),t&&(this.#s=this.#S(()=>{try{return wn(()=>{var r=H;r.b=this,r.f|=128,t(this.#e,()=>e,()=>n)})}catch(e){return Qe(e,this.#i.parent),null}}))};Ye(()=>{var t;try{t=this.transform_error(e)}catch(e){Qe(e,this.#i&&this.#i.parent);return}typeof t==`object`&&t&&typeof t.then==`function`?t.then(n,e=>Qe(e,this.#i&&this.#i.parent)):n(t)})}};function pt(e,t,n,r){let i=Ke()?_t:bt;var a=e.filter(e=>!e.settled),o=t.map(i);if(n.length===0&&a.length===0){r(o);return}var s=H,c=mt(),l=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(e=>e.promise)):null;function u(e){if(!(s.f&16384)){c();try{r([...o,...e])}catch(e){Qe(e,s)}ht()}}var d=gt();if(n.length===0){l.then(()=>u([])).finally(d);return}function f(){Promise.all(n.map(e=>yt(e))).then(u).catch(e=>Qe(e,s)).finally(d)}l?l.then(()=>{c(),f(),ht()}):f()}function mt(){var e=H,t=V,n=A,r=N;return function(i=!0){Hn(e),Vn(t),Ue(n),i&&!(e.f&16384)&&(r?.activate(),r?.apply())}}function ht(e=!0){Hn(null),Vn(null),Ue(null),e&&N?.deactivate()}function gt(){var e=H,t=e.b,n=N,r=!!t?.is_rendered();return t?.update_pending_count(1,n),n.increment(r,e),()=>{t?.update_pending_count(-1,n),n.decrement(r,e)}}function _t(e){var t=2|_;return H!==null&&(H.f|=C),{ctx:A,deps:null,effects:null,equals:Be,f:t,fn:e,reactions:null,rv:0,v:T,wv:0,parent:H,ac:null}}var vt=Symbol(`obsolete`);function yt(e,t,n){let r=H;r===null&&_e();var i=void 0,a=qt(T),o=!V,s=new Set;return xn(()=>{var t=H,n=m();i=n.promise;try{Promise.resolve(e()).then(n.resolve,e=>{e!==me&&n.reject(e)}).finally(ht)}catch(e){n.reject(e),ht()}var c=N;if(o){if(t.f&32768)var l=gt();if(r.b?.is_rendered())c.async_deriveds.get(t)?.reject(vt);else for(let e of s.values())e.reject(vt);s.add(n),c.async_deriveds.set(t,n)}let u=(e,t=void 0)=>{l?.(),s.delete(n),t!==vt&&(c.activate(),t?(a.f|=oe,Yt(a,t)):(a.f&8388608&&(a.f^=oe),Yt(a,e)),c.deactivate())};n.promise.then(u,e=>u(null,e||`unknown`))}),gn(()=>{for(let e of s)e.reject(vt)}),new Promise(e=>{function t(n){function r(){n===i?e(a):t(i)}n.then(r,r)}t(i)})}function M(e){let t=_t(e);return Wn(t),t}function bt(e){let t=_t(e);return t.equals=He,t}function xt(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)On(t[n])}}function St(e){var t,n=H,r=e.parent;if(!Rn&&r!==null&&e.v!==T&&r.f&24576)return Me(),e.v;Hn(r);try{e.f&=~re,xt(e),t=nr(e)}finally{Hn(n)}return t}function Ct(e){var t=St(e);!e.equals(t)&&(e.wv=$n(),(!N?.is_fork||e.deps===null)&&(N===null?e.v=t:(N.capture(e,t,!0),Dt?.capture(e,t,!0)),e.deps===null))?j(e,g):Rn||(Ot===null?et(e):(hn()||N?.is_fork)&&Ot.set(e,t))}function wt(e){if(e.effects!==null)for(let t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac!==null&&st(()=>{t.ac.abort(me),t.ac=null}),t.fn!==null&&(t.teardown=d),ir(t,0),En(t))}function Tt(e){if(e.effects!==null)for(let t of e.effects)t.teardown&&t.fn!==null&&ar(t)}var Et=null,N=null,Dt=null,Ot=null,kt=null,At=!1,jt=!1,Mt=null,Nt=null,Pt=0,Ft=1,It=class e{id=Ft++;#e=!1;linked=!0;#t=null;#n=null;async_deriveds=new Map;current=new Map;previous=new Map;#r=new Set;#i=new Set;#a=0;#o=new Map;#s=null;#c=[];#l=[];#u=new Set;#d=new Set;#f=new Map;#p=new Set;is_fork=!1;#m=!1;constructor(){Et===null?Et=this:(Et.#n=this,this.#t=Et),Et=this}#h(){if(this.is_fork)return!0;for(let n of this.#o.keys()){for(var e=n,t=!1;e.parent!==null;){if(this.#f.has(e)){t=!0;break}e=e.parent}if(!t)return!0}return!1}skip_effect(e){this.#f.has(e)||this.#f.set(e,{d:[],m:[]}),this.#p.delete(e)}unskip_effect(e,t=e=>this.schedule(e)){var n=this.#f.get(e);if(n){this.#f.delete(e);for(var r of n.d)j(r,_),t(r);for(r of n.m)j(r,v),t(r)}this.#p.add(e)}#g(){this.#e=!0,Pt++>1e3&&(this.#x(),Rt());for(let e of this.#u)this.#d.delete(e),j(e,_),this.schedule(e);for(let e of this.#d)j(e,v),this.schedule(e);let t=this.#c;this.#c=[],this.apply();var n=Mt=[],r=[],i=Nt=[];for(let e of t)try{this.#_(e,n,r)}catch(t){throw Ut(e),this.#h()||this.discard(),t}if(N=null,i.length>0){var a=e.ensure();for(let e of i)a.schedule(e)}if(Mt=null,Nt=null,this.#h()){this.#b(r),this.#b(n);for(let[e,t]of this.#f)Ht(e,t);i.length>0&&N.#g();return}let o=this.#v();if(o)this.#b(r),this.#b(n),o.#y(this);else{this.#u.clear(),this.#d.clear();for(let e of this.#r)e(this);this.#r.clear(),Dt=this,Bt(r),Bt(n),Dt=null,this.#s?.resolve();var s=N;if(this.#a===0&&(this.#c.length===0||s!==null)&&this.#x(),this.#c.length>0){if(s!==null){let e=s;e.#c.push(...this.#c.filter(t=>!e.#c.includes(t)))}else s=this}s!==null&&(Gt.clear(),s.#g())}}#_(e,t,n){e.f^=g;for(var r=e.first;r!==null;){var i=r.f,a=!!(i&96);if(!(a&&i&1024||i&8192||this.#f.has(r))&&r.fn!==null){a?r.f^=g:i&4?t.push(r):er(r)&&(i&16&&this.#d.add(r),ar(r));var o=r.first;if(o!==null){r=o;continue}}for(;r!==null;){var s=r.next;if(s!==null){r=s;break}r=r.parent}}}#v(){for(var e=this.#t;e!==null;){if(!e.is_fork){for(let[t,[,n]]of this.current)if(e.current.has(t)&&!n)return e}e=e.#t}return null}#y(e){for(let[t,n]of e.current)!this.previous.has(t)&&e.previous.has(t)&&this.previous.set(t,e.previous.get(t)),this.current.set(t,n);for(let[t,n]of e.async_deriveds){let e=this.async_deriveds.get(t);e&&n.promise.then(e.resolve).catch(e.reject)}e.async_deriveds.clear(),this.transfer_effects(e.#u,e.#d);let t=e=>{var n=e.reactions;if(n!==null&&!(e.f&2&&!(e.f&6144)))for(let e of n){var r=e.f;if(r&2)t(e);else{var i=e;r&4194320&&!this.async_deriveds.has(i)&&(this.#d.delete(i),j(i,_),this.schedule(i))}}};for(let e of this.current.keys())t(e);this.oncommit(()=>e.discard()),e.#x(),N=this,this.#g()}#b(e){for(var t=0;t<e.length;t+=1)nt(e[t],this.#u,this.#d)}capture(e,t,n=!1){e.v!==T&&!this.previous.has(e)&&this.previous.set(e,e.v),e.f&8388608||(this.current.set(e,[t,n]),Ot?.set(e,t)),this.is_fork||(e.v=t)}activate(){N=this}deactivate(){N=null,Ot=null}flush(){try{jt=!0,N=this,this.#g()}finally{Pt=0,kt=null,Mt=null,Nt=null,jt=!1,N=null,Ot=null,Gt.clear()}}discard(){for(let e of this.#i)e(this);this.#i.clear();for(let e of this.async_deriveds.values())e.reject(vt);this.#x(),this.#s?.resolve()}register_created_effect(e){this.#l.push(e)}increment(e,t){if(this.#a+=1,e){let e=this.#o.get(t)??0;this.#o.set(t,e+1)}}decrement(e,t){if(--this.#a,e){let e=this.#o.get(t)??0;e===1?this.#o.delete(t):this.#o.set(t,e-1)}this.#m||(this.#m=!0,Ye(()=>{this.#m=!1,this.linked&&this.flush()}))}transfer_effects(e,t){for(let t of e)this.#u.add(t);for(let e of t)this.#d.add(e);e.clear(),t.clear()}oncommit(e){this.#r.add(e)}ondiscard(e){this.#i.add(e)}settled(){return(this.#s??=m()).promise}static ensure(){if(N===null){let t=N=new e;!jt&&!At&&Ye(()=>{t.#e||t.flush()})}return N}apply(){Ot=null}schedule(e){if(kt=e,e.b?.is_pending&&e.f&16777228&&!(e.f&32768))e.b.defer_effect(e);else{for(var t=e;t.parent!==null;){t=t.parent;var n=t.f;if(Mt!==null&&t===H&&(V===null||!(V.f&2)))return;if(n&96){if(!(n&1024))return;t.f^=g}}this.#c.push(t)}}#x(){if(this.linked){var e=this.#t,t=this.#n;e===null||(e.#n=t),t===null?Et=e:t.#t=e,this.linked=!1}}};function Lt(e){var t=At;At=!0;try{var n;for(e&&(N!==null&&!N.is_fork&&N.flush(),n=e());;){if(Xe(),N===null)return n;N.flush()}}finally{At=t}}function Rt(){try{Se()}catch(e){Qe(e,kt)}}var zt=null;function Bt(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&24576)&&er(r)&&(zt=new Set,ar(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&An(r),zt?.size>0)){Gt.clear();for(let e of zt){if(e.f&24576)continue;let t=[e],n=e.parent;for(;n!==null;)zt.has(n)&&(zt.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){let n=t[e];n.f&24576||ar(n)}}zt.clear()}}zt=null}}function Vt(e){N.schedule(e)}function Ht(e,t){if(!(e.f&32&&e.f&1024)){e.f&2048?t.d.push(e):e.f&4096&&t.m.push(e),j(e,g);for(var n=e.first;n!==null;)Ht(n,t),n=n.next}}function Ut(e){j(e,g);for(var t=e.first;t!==null;)Ut(t),t=t.next}var Wt=new Set,Gt=new Map,Kt=!1;function qt(e,t){return{f:0,v:e,reactions:null,equals:Be,rv:0,wv:0}}function P(e,t){let n=qt(e,t);return Wn(n),n}function Jt(e,t=!1,n=!0){let r=qt(e);return t||(r.equals=He),r}function F(e,t,n=!1){return V!==null&&(!Bn||V.f&131072)&&Ke()&&V.f&4325394&&(Un===null||!Un.has(e))&&Ee(),Yt(e,n?$t(t):t,Nt)}function Yt(e,t,n=null){if(!e.equals(t)){Rn?Gt.set(e,t):Gt.has(e)||Gt.set(e,e.v);var r=It.ensure();if(r.capture(e,t),e.f&2){let t=e;e.f&2048&&St(t),Ot===null&&et(t)}e.wv=$n(),Qt(e,_,n),Ke()&&H!==null&&H.f&1024&&!(H.f&96)&&(qn===null?Jn([e]):qn.push(e)),!r.is_fork&&Wt.size>0&&!Kt&&Xt()}return t}function Xt(){Kt=!1;for(let e of Wt){e.f&1024&&j(e,v);let t;try{t=er(e)}catch{t=!0}t&&ar(e)}Wt.clear()}function Zt(e){F(e,e.v+1)}function Qt(e,t,n){var r=e.reactions;if(r!==null)for(var i=Ke(),a=r.length,o=0;o<a;o++){var s=r[o],c=s.f;if(i||s!==H){var l=(c&_)===0;if(l&&j(s,t),c&131072)Wt.add(s);else if(c&2){var u=s;Ot?.delete(u),c&65536||(c&512&&(H===null||!(H.f&2097152))&&(s.f|=re),Qt(u,v,n))}else if(l){var d=s;c&16&&zt!==null&&zt.add(d),n===null?Vt(d):n.push(d)}}}}function $t(t){if(typeof t!=`object`||!t||w in t)return t;let n=l(t);if(n!==s&&n!==c)return t;var r=new Map,i=e(t),o=P(0),u=null,d=Zn,f=e=>{if(Zn===d)return e();var t=V,n=Zn;Vn(null),Qn(d);var r=e();return Vn(t),Qn(n),r};return i&&r.set(`length`,P(t.length,u)),new Proxy(t,{defineProperty(e,t,n){`value`in n&&n.configurable!==!1&&n.enumerable!==!1&&n.writable!==!1||we();var i=r.get(t);return i===void 0?f(()=>{var e=P(n.value,u);return r.set(t,e),e}):F(i,n.value,!0),!0},deleteProperty(e,t){var n=r.get(t);if(n===void 0){if(t in e){let e=f(()=>P(T,u));r.set(t,e),Zt(o)}}else F(n,T),Zt(o);return!0},get(e,n,i){if(n===w)return t;var o=r.get(n),s=n in e;if(o===void 0&&(!s||a(e,n)?.writable)&&(o=f(()=>P($t(s?e[n]:T),u)),r.set(n,o)),o!==void 0){var c=U(o);return c===T?void 0:c}return Reflect.get(e,n,i)},getOwnPropertyDescriptor(e,t){var n=Reflect.getOwnPropertyDescriptor(e,t);if(n&&`value`in n){var i=r.get(t);i&&(n.value=U(i))}else if(n===void 0){var a=r.get(t),o=a?.v;if(a!==void 0&&o!==T)return{enumerable:!0,configurable:!0,value:o,writable:!0}}return n},has(e,t){if(t===w)return!0;var n=r.get(t),i=n!==void 0&&n.v!==T||Reflect.has(e,t);return(n!==void 0||H!==null&&(!i||a(e,t)?.writable))&&(n===void 0&&(n=f(()=>P(i?$t(e[t]):T,u)),r.set(t,n)),U(n)===T)?!1:i},set(e,t,n,s){var c=r.get(t),l=t in e;if(i&&t===`length`)for(var d=n;d<c.v;d+=1){var p=r.get(d+``);p===void 0?d in e&&(p=f(()=>P(T,u)),r.set(d+``,p)):F(p,T)}if(c===void 0)(!l||a(e,t)?.writable)&&(c=f(()=>P(void 0,u)),F(c,$t(n)),r.set(t,c));else{l=c.v!==T;var m=f(()=>$t(n));F(c,m)}var h=Reflect.getOwnPropertyDescriptor(e,t);if(h?.set&&h.set.call(s,n),!l){if(i&&typeof t==`string`){var g=r.get(`length`),_=Number(t);Number.isInteger(_)&&_>=g.v&&F(g,_+1)}Zt(o)}return!0},ownKeys(e){U(o);var t=Reflect.ownKeys(e).filter(e=>{var t=r.get(e);return t===void 0||t.v!==T});for(var[n,i]of r)i.v!==T&&!(n in e)&&t.push(n);return t},setPrototypeOf(){Te()}})}var en,tn,nn,rn;function an(){if(en===void 0){en=window,tn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;nn=a(t,`firstChild`).get,rn=a(t,`nextSibling`).get,u(e)&&(e[ue]=void 0,e[le]=null,e[de]=void 0,e.__e=void 0),u(n)&&(n[fe]=void 0)}}function on(e=``){return document.createTextNode(e)}function I(e){return nn.call(e)}function sn(e){return rn.call(e)}function L(e,t){if(!E)return I(e);var n=I(D);if(n===null)n=D.appendChild(on());else if(t&&n.nodeType!==3){var r=on();return n?.before(r),O(r),r}return t&&dn(n),O(n),n}function R(e,t=!1){if(!E){var n=I(e);return n instanceof Comment&&n.data===``?sn(n):n}if(t){if(D?.nodeType!==3){var r=on();return D?.before(r),O(r),r}dn(D)}return D}function z(e,t=1,n=!1){let r=E?D:e;for(var i;t--;)i=r,r=sn(r);if(!E)return r;if(n){if(r?.nodeType!==3){var a=on();return r===null?i?.after(a):r.before(a),O(a),a}dn(r)}return O(r),r}function cn(e){e.textContent=``}function ln(){return!1}function un(e,t,n){return t==null||t===`http://www.w3.org/1999/xhtml`?n?document.createElement(e,{is:n}):document.createElement(e):n?document.createElementNS(t,e,{is:n}):document.createElementNS(t,e)}function dn(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===3;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function fn(e){H===null&&(V===null&&xe(e),be()),Rn&&ye(e)}function pn(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function mn(e,t){var n=H;n!==null&&n.f&8192&&(e|=y);var r={ctx:A,deps:null,nodes:null,f:e|_|512,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null};N?.register_created_effect(r);var i=r;if(e&4)Mt===null?It.ensure().schedule(r):Mt.push(r);else if(t!==null){try{ar(r)}catch(e){throw On(r),e}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&524288)&&(i=i.first,e&16&&e&65536&&i!==null&&(i.f|=ee))}if(i!==null&&(i.parent=n,n!==null&&pn(i,n),V!==null&&V.f&2&&!(e&64))){var a=V;(a.effects??=[]).push(i)}return r}function hn(){return V!==null&&!Bn}function gn(e){let t=mn(8,null);return j(t,g),t.teardown=e,t}function _n(e){fn(`$effect`);var t=H.f;if(!V&&t&32&&A!==null&&!A.i){var n=A;(n.e??=[]).push(e)}else return vn(e)}function vn(e){return mn(4|te,e)}function yn(e){It.ensure();let t=mn(64|C,e);return(e={})=>new Promise(n=>{e.outro?jn(t,()=>{On(t),n(void 0)}):(On(t),n(void 0))})}function bn(e){return mn(4,e)}function xn(e){return mn(ae|C,e)}function Sn(e,t=0){return mn(8|t,e)}function B(e,t=[],n=[],r=[]){pt(r,t,n,t=>{mn(8,()=>{e(...t.map(U))})})}function Cn(e,t=0){return mn(16|t,e)}function wn(e){return mn(32|C,e)}function Tn(e){var t=e.teardown;if(t!==null){let e=Rn,n=V;zn(!0),Vn(null);try{t.call(null)}finally{zn(e),Vn(n)}}}function En(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){let e=n.ac;e!==null&&st(()=>{e.abort(me)});var r=n.next;n.f&64?n.parent=null:On(n,t),n=r}}function Dn(e){for(var t=e.first;t!==null;){var n=t.next;t.f&32||On(t),t=n}}function On(e,t=!0){var n=!1;(t||e.f&262144)&&e.nodes!==null&&e.nodes.end!==null&&(kn(e.nodes.start,e.nodes.end),n=!0),e.f|=S,En(e,t&&!n),ir(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)e.stop();Tn(e),e.f^=S,e.f|=b;var i=e.parent;i!==null&&i.first!==null&&An(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function kn(e,t){for(;e!==null;){var n=e===t?null:sn(e);e.remove(),e=n}}function An(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function jn(e,t,n=!0){var r=[];Mn(e,r,!0);var i=()=>{n&&On(e),t&&t()},a=r.length;if(a>0){var o=()=>--a||i();for(var s of r)s.out(o)}else i()}function Mn(e,t,n){if(!(e.f&8192)){e.f^=y;var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)(e.is_global||n)&&t.push(e);for(var i=e.first;i!==null;){var a=i.next;if(!(i.f&64)){var o=!!(i.f&65536)||!!(i.f&32)&&!!(e.f&16);Mn(i,t,o?n:!1)}i=a}}}function Nn(e){Pn(e,!0)}function Pn(e,t){if(e.f&8192){e.f^=y,e.f&1024||(j(e,_),It.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=!!(n.f&65536)||!!(n.f&32);Pn(n,i?t:!1),n=r}var a=e.nodes&&e.nodes.t;if(a!==null)for(let e of a)(e.is_global||t)&&e.in()}}function Fn(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:sn(n);t.append(n),n=i}}var In=null,Ln=!1,Rn=!1;function zn(e){Rn=e}var V=null,Bn=!1;function Vn(e){V=e}var H=null;function Hn(e){H=e}var Un=null;function Wn(e){V!==null&&(Un??=new Set).add(e)}var Gn=null,Kn=0,qn=null;function Jn(e){qn=e}var Yn=1,Xn=0,Zn=Xn;function Qn(e){Zn=e}function $n(){return++Yn}function er(e){var t=e.f;if(t&2048)return!0;if(t&2&&(e.f&=~re),t&4096){for(var n=e.deps,r=n.length,i=0;i<r;i++){var a=n[i];if(er(a)&&Ct(a),a.wv>e.wv)return!0}t&512&&Ot===null&&j(e,g)}return!1}function tr(e,t,n=!0){var r=e.reactions;if(r!==null&&!(Un!==null&&Un.has(e)))for(var i=0;i<r.length;i++){var a=r[i];a.f&2?tr(a,t,!1):t===a&&(n?j(a,_):a.f&1024&&j(a,v),Vt(a))}}function nr(e){var t=Gn,n=Kn,r=qn,i=V,a=Un,o=A,s=Bn,c=Zn,l=e.f;Gn=null,Kn=0,qn=null,V=l&96?null:e,Un=null,Ue(e.ctx),Bn=!1,Zn=++Xn,e.ac!==null&&(st(()=>{e.ac.abort(me)}),e.ac=null);try{e.f|=ie;var u=e.fn,d=u();e.f|=x;var f=e.deps,p=N?.is_fork;if(Gn!==null){var m;if(p||ir(e,Kn),f!==null&&Kn>0)for(f.length=Kn+Gn.length,m=0;m<Gn.length;m++)f[Kn+m]=Gn[m];else e.deps=f=Gn;if(hn()&&e.f&512)for(m=Kn;m<f.length;m++)(f[m].reactions??=[]).push(e)}else!p&&f!==null&&Kn<f.length&&(ir(e,Kn),f.length=Kn);if(Ke()&&qn!==null&&!Bn&&f!==null&&!(e.f&6146))for(m=0;m<qn.length;m++)tr(qn[m],e);if(i!==null&&i!==e){if(Xn++,i.deps!==null)for(let e=0;e<n;e+=1)i.deps[e].rv=Xn;if(t!==null)for(let e of t)e.rv=Xn;qn!==null&&(r===null?r=qn:r.push(...qn))}return e.f&8388608&&(e.f^=oe),d}catch(e){return Ze(e)}finally{e.f^=ie,Gn=t,Kn=n,qn=r,V=i,Un=a,Ue(o),Bn=s,Zn=c}}function rr(e,r){let i=r.reactions;if(i!==null){var a=t.call(i,e);if(a!==-1){var o=i.length-1;o===0?i=r.reactions=null:(i[a]=i[o],i.pop())}}if(i===null&&r.f&2&&(Gn===null||!n.call(Gn,r))){var s=r;s.f&512&&(s.f^=512,s.f&=~re),s.v!==T&&et(s),s.ac!==null&&st(()=>{s.ac.abort(me),s.ac=null,j(s,_)}),wt(s),ir(s,0)}}function ir(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)rr(e,n[r])}function ar(e){var t=e.f;if(!(t&16384)){j(e,g);var n=H,r=Ln;H=e,Ln=!(t&96);try{t&16777232?Dn(e):En(e),Tn(e);var i=nr(e);e.teardown=typeof i==`function`?i:null,e.wv=Yn}finally{Ln=r,H=n}}}async function or(){await Promise.resolve(),Lt()}function U(e){var t=!!(e.f&2);if(In?.add(e),V!==null&&!Bn&&!(H!==null&&H.f&16384)&&(Un===null||!Un.has(e))){var r=V.deps;if(V.f&2097152)e.rv<Xn&&(e.rv=Xn,Gn===null&&r!==null&&r[Kn]===e?Kn++:Gn===null?Gn=[e]:Gn.push(e));else{V.deps??=[],n.call(V.deps,e)||V.deps.push(e);var i=e.reactions;i===null?e.reactions=[V]:n.call(i,V)||i.push(V)}}if(Rn&&Gt.has(e))return Gt.get(e);if(t){var a=e;if(Rn){var o=a.v;return(!(a.f&1024)&&a.reactions!==null||cr(a))&&(o=St(a)),Gt.set(a,o),o}var s=!(a.f&512)&&!Bn&&V!==null&&(Ln||!!(V.f&512)),c=(a.f&x)===0;er(a)&&(s&&(a.f|=512),Ct(a)),s&&!c&&(Tt(a),sr(a))}if(Ot?.has(e))return Ot.get(e);if(e.f&8388608)throw e.v;return e.v}function sr(e){if(e.f|=512,e.deps!==null)for(let t of e.deps)(t.reactions??=[]).push(e),t.f&2&&!(t.f&512)&&(Tt(t),sr(t))}function cr(e){if(e.v===T)return!0;if(e.deps===null)return!1;for(let t of e.deps)if(Gt.has(t)||t.f&2&&cr(t))return!0;return!1}function lr(e){var t=Bn;try{return Bn=!0,e()}finally{Bn=t}}[...`allowfullscreen.async.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.webkitdirectory.defer.disablepictureinpicture.disableremoteplayback`.split(`.`)];var ur=[`touchstart`,`touchmove`];function dr(e){return ur.includes(e)}var fr=Symbol(`events`),pr=new Set,mr=new Set;function hr(e,t,n,r={}){function i(e){if(r.capture||br.call(t,e),!e.cancelBubble)return st(()=>n?.call(this,e))}return e.startsWith(`pointer`)||e.startsWith(`touch`)||e===`wheel`?Ye(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function gr(e,t,n,r,i){var a={capture:r,passive:i},o=hr(e,t,n,a);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&gn(()=>{t.removeEventListener(e,o,a)})}function W(e,t,n){(t[fr]??={})[e]=n}function _r(e){for(var t=0;t<e.length;t++)pr.add(e[t]);for(var n of mr)n(e)}var vr=null,yr=!1;function br(e){var t=this,n=t.ownerDocument,r=e.type,a=e.composedPath?.()||[],o=a[0]||e.target;vr=e,yr||(yr=!0,setTimeout(()=>{yr=!1,vr=null}));var s=0,c=vr===e&&e[fr];if(c){var l=a.indexOf(c);if(l!==-1&&(t===document||t===window)){e[fr]=t;return}var u=a.indexOf(t);if(u===-1)return;l<=u&&(s=l)}if(o=a[s]||e.target,o!==t){i(e,`currentTarget`,{configurable:!0,get(){return o||n}});var d=V,f=H;Vn(null),Hn(null);try{for(var p,m=[];o!==null&&o!==t;){try{var h=o[fr]?.[r];h==null||o.disabled&&e.target!==o||h.call(o,e)}catch(e){p?m.push(e):p=e}if(e.cancelBubble)break;s++,o=s<a.length?a[s]:null}if(p){for(let e of m)queueMicrotask(()=>{throw e});throw p}}finally{e[fr]=t,delete e.currentTarget,Vn(d),Hn(f)}}}var xr=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy(`svelte-trusted-html`,{createHTML:e=>e});function Sr(e){return xr?.createHTML(e)??e}function Cr(e){var t=un(`template`);return t.innerHTML=Sr(e.replaceAll(`<!>`,`<!---->`)),t.content}function wr(e,t){var n=H;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function G(e,t){var n=!!(t&1),r=!!(t&2),i,a=!e.startsWith(`<!>`);return()=>{if(E)return wr(D,null),D;i===void 0&&(i=Cr(a?e:`<!>`+e),n||(i=I(i)));var t=r||tn?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=I(t),s=t.lastChild;wr(o,s)}else wr(t,t);return t}}function Tr(e,t,n=`svg`){var r=!e.startsWith(`<!>`),i=!!(t&1),a=`<${n}>${r?e:`<!>`+e}</${n}>`,o;return()=>{if(E)return wr(D,null),D;if(!o){var e=I(Cr(a));if(i)for(o=document.createDocumentFragment();I(e);)o.appendChild(I(e));else o=I(e)}var t=o.cloneNode(!0);if(i){var n=I(t),r=t.lastChild;wr(n,r)}else wr(t,t);return t}}function Er(e,t){return Tr(e,t,`svg`)}function Dr(){if(E)return wr(D,null),D;var e=document.createDocumentFragment(),t=document.createComment(``),n=on();return e.append(t,n),wr(t,n),e}function K(e,t){if(E){var n=H;n.f&32768&&n.nodes.end!==null||(n.nodes.end=D),Ie()}else e!==null&&e.before(t)}function q(e,t){var n=t==null?``:typeof t==`object`?`${t}`:t;n!==(e[fe]??=e.nodeValue)&&(e[fe]=n,e.nodeValue=`${n}`)}function Or(e,t){return Ar(e,t)}var kr=new Map;function Ar(e,{target:t,anchor:n,props:i={},events:a,context:o,intro:s=!0,transformError:c}){an();var l=void 0,u=yn(()=>{var s=n??t.appendChild(on());dt(s,{pending:()=>{}},t=>{We({});var n=A;if(o&&(n.c=o),a&&(i.$$events=a),E&&wr(t,null),l=e(t,i)||{},E&&(H.nodes.end=D,D===null||D.nodeType!==8||D.data!==`]`))throw Ne(),Oe;Ge()},c);var u=new Set,d=e=>{for(var n=0;n<e.length;n++){var r=e[n];if(!u.has(r)){u.add(r);var i=dr(r);for(let e of[t,document]){var a=kr.get(e);a===void 0&&(a=new Map,kr.set(e,a));var o=a.get(r);o===void 0?(e.addEventListener(r,br,{passive:i}),a.set(r,1)):a.set(r,o+1)}}}};return d(r(pr)),mr.add(d),()=>{for(var e of u)for(let n of[t,document]){var r=kr.get(n),i=r.get(e);--i==0?(n.removeEventListener(e,br),r.delete(e),r.size===0&&kr.delete(n)):r.set(e,i)}mr.delete(d),s!==n&&s.parentNode?.removeChild(s)}});return jr.set(l,u),l}var jr=new WeakMap,Mr=class{anchor;#e=new Map;#t=new Map;#n=new Map;#r=new Set;#i=!0;constructor(e,t=!0){this.anchor=e,this.#i=t}#a=e=>{if(this.#e.has(e)){var t=this.#e.get(e),n=this.#t.get(t);if(n)Nn(n),this.#r.delete(t);else{var r=this.#n.get(t);r&&(Nn(r.effect),this.#t.set(t,r.effect),this.#n.delete(t),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),n=r.effect)}for(let[t,n]of this.#e){if(this.#e.delete(t),t===e)break;let r=this.#n.get(n);r&&(On(r.effect),this.#n.delete(n))}for(let[e,r]of this.#t){if(e===t||this.#r.has(e))continue;let i=()=>{if(Array.from(this.#e.values()).includes(e)){var t=document.createDocumentFragment();Fn(r,t),t.append(on()),this.#n.set(e,{effect:r,fragment:t})}else On(r);this.#r.delete(e),this.#t.delete(e)};this.#i||!n?(this.#r.add(e),jn(r,i,!1)):i()}}};#o=e=>{this.#e.delete(e);let t=Array.from(this.#e.values());for(let[e,n]of this.#n)t.includes(e)||(On(n.effect),this.#n.delete(e))};ensure(e,t){var n=N,r=ln();if(t&&!this.#t.has(e)&&!this.#n.has(e)){if(r){var i=document.createDocumentFragment(),a=on();i.append(a),this.#n.set(e,{effect:wn(()=>t(a)),fragment:i})}else this.#t.set(e,wn(()=>t(this.anchor)))}if(this.#e.set(n,e),r){for(let[t,r]of this.#t)t===e?n.unskip_effect(r):n.skip_effect(r);for(let[t,r]of this.#n)t===e?n.unskip_effect(r.effect):n.skip_effect(r.effect);n.oncommit(this.#a),n.ondiscard(this.#o)}else E&&(this.anchor=D),this.#a(n)}},Nr=0,Pr=1,Fr=2;function Ir(e,t,n,r,i){E&&Ie();var a=Ke(),o=T,s=a?qt(o):Jt(o,!1,!1),c=a?qt(o):Jt(o,!1,!1),l=new Mr(e);Cn(()=>{var a=N,o=t(),u=!1;let d=E&&f(o)===(e.data===`[!`);if(d&&(O(Re()),Fe(!1)),f(o)){var p=mt(),m=!1;let e=e=>{if(!u){m=!0,p(!1),N===a&&a.deactivate(),It.ensure();try{e()}finally{ht(!1),At||Lt()}}};o.then(t=>{e(()=>{Yt(s,t),l.ensure(Pr,r&&(e=>r(e,s)))})},t=>{e(()=>{if(Yt(c,t),l.ensure(Fr,i&&(e=>i(e,c))),!i)throw c.v})}),E?l.ensure(Nr,n):Ye(()=>{m||e(()=>{l.ensure(Nr,n)})})}else Yt(s,o),l.ensure(Pr,r&&(e=>r(e,s)));return d&&Fe(!0),()=>{u=!0}})}function J(e,t,n=!1){var r;E&&(r=D,Ie());var i=new Mr(e),a=n?ee:0;function o(e,t){if(E){var n=ze(r);if(e!==parseInt(n.substring(1))){var a=Re();O(a),i.anchor=a,Fe(!1),i.ensure(e,t),Fe(!0);return}}i.ensure(e,t)}Cn(()=>{var e=!1;t((t,n=0)=>{e=!0,o(n,t)}),e||o(-1,null)},a)}function Lr(e,t){return t}function Rr(e,t,n){for(var i=[],a=t.length,o,s=t.length,c=0;c<a;c++){let n=t[c];jn(n,()=>{if(o){if(o.pending.delete(n),o.done.add(n),o.pending.size===0){var t=e.outrogroups;zr(e,r(o.done)),t.delete(o),t.size===0&&(e.outrogroups=null)}}else--s},!1)}if(s===0){var l=i.length===0&&n!==null&&e.pending.size===0;if(l){var u=n,d=u.parentNode;cn(d),d.append(u),e.items.clear()}zr(e,t,!l)}else o={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(o)}function zr(e,t,n=!0){var r;if(e.pending.size>0){r=new Set;for(let t of e.pending.values())for(let n of t)r.add(e.items.get(n).e)}for(var i=0;i<t.length;i++){var a=t[i];r?.has(a)?(a.f|=ne,Fn(a,document.createDocumentFragment())):On(t[i],n)}}var Br;function Vr(t,n,i,a,o,s=null){var c=t,l=new Map;if(n&4){var u=t;c=E?O(I(u)):u.appendChild(on())}E&&Ie();var d=null,f=bt(()=>{var t=i();return e(t)?t:t==null?[]:r(t)}),p,m=new Map,h=!0;function g(e){v.effect.f&16384||(v.pending.delete(e),v.fallback=d,Ur(v,p,c,n,a),d!==null&&(p.length===0?d.f&33554432?(d.f^=ne,Gr(d,null,c)):Nn(d):jn(d,()=>{d=null})))}function _(e){v.pending.delete(e)}var v={effect:Cn(()=>{p=U(f);var e=p.length;let t=!1;E&&ze(c)===`[!`!=(e===0)&&(c=Re(),O(c),Fe(!1),t=!0);for(var r=new Set,u=N,v=ln(),y=0;y<e;y+=1){E&&D.nodeType===8&&D.data===`]`&&(c=D,t=!0,Fe(!1));var b=p[y],x=a(b,y),S=h?null:l.get(x);S?(S.v&&Yt(S.v,b),S.i&&Yt(S.i,y),v&&u.unskip_effect(S.e)):(S=Wr(l,h?c:Br??=on(),b,x,y,o,n,i),h||(S.e.f|=ne),l.set(x,S)),r.add(x)}if(e===0&&s&&!d&&(h?d=wn(()=>s(c)):(d=wn(()=>s(Br??=on())),d.f|=ne)),e>r.size&&ve(``,``,``),E&&e>0&&O(Re()),!h){if(m.set(u,r),v){for(let[e,t]of l)r.has(e)||u.skip_effect(t.e);u.oncommit(g),u.ondiscard(_)}else g(u)}t&&Fe(!0),U(f)}),flags:n,items:l,pending:m,outrogroups:null,fallback:d};h=!1,E&&(c=D)}function Hr(e){for(;e!==null&&!(e.f&32);)e=e.next;return e}function Ur(e,t,n,i,a){var o=!!(i&8),s=t.length,c=e.items,l=Hr(e.effect.first),u,d=null,f,p=[],m=[],h,g,_,v;if(o)for(v=0;v<s;v+=1)h=t[v],g=a(h,v),_=c.get(g).e,_.f&33554432||(_.nodes?.a?.measure(),(f??=new Set).add(_));for(v=0;v<s;v+=1){if(h=t[v],g=a(h,v),_=c.get(g).e,e.outrogroups!==null)for(let t of e.outrogroups)t.pending.delete(_),t.done.delete(_);if(_.f&8192&&(Nn(_),o&&(_.nodes?.a?.unfix(),(f??=new Set).delete(_))),_.f&33554432){if(_.f^=ne,_===l)Gr(_,null,n);else{var y=d?d.next:l;_===e.effect.last&&(e.effect.last=_.prev),_.prev&&(_.prev.next=_.next),_.next&&(_.next.prev=_.prev),Kr(e,d,_),Kr(e,_,y),Gr(_,y,n),d=_,p=[],m=[],l=Hr(d.next);continue}}if(_!==l){if(u!==void 0&&u.has(_)){if(p.length<m.length){var b=m[0],x;d=b.prev;var S=p[0],ee=p[p.length-1];for(x=0;x<p.length;x+=1)Gr(p[x],b,n);for(x=0;x<m.length;x+=1)u.delete(m[x]);Kr(e,S.prev,ee.next),Kr(e,d,S),Kr(e,ee,b),l=b,d=ee,--v,p=[],m=[]}else u.delete(_),Gr(_,l,n),Kr(e,_.prev,_.next),Kr(e,_,d===null?e.effect.first:d.next),Kr(e,d,_),d=_;continue}for(p=[],m=[];l!==null&&l!==_;)(u??=new Set).add(l),m.push(l),l=Hr(l.next);if(l===null)continue}_.f&33554432||p.push(_),d=_,l=Hr(_.next)}if(e.outrogroups!==null){for(let t of e.outrogroups)t.pending.size===0&&(zr(e,r(t.done)),e.outrogroups?.delete(t));e.outrogroups.size===0&&(e.outrogroups=null)}if(l!==null||u!==void 0){var C=[];if(u!==void 0)for(_ of u)_.f&8192||C.push(_);for(;l!==null;)!(l.f&8192)&&l!==e.fallback&&C.push(l),l=Hr(l.next);var te=C.length;if(te>0){var re=i&4&&s===0?n:null;if(o){for(v=0;v<te;v+=1)C[v].nodes?.a?.measure();for(v=0;v<te;v+=1)C[v].nodes?.a?.fix()}Rr(e,C,re)}}o&&Ye(()=>{if(f!==void 0)for(_ of f)_.nodes?.a?.apply()})}function Wr(e,t,n,r,i,a,o,s){var c=o&1?o&16?qt(n):Jt(n,!1,!1):null,l=o&2?qt(i):null;return{v:c,i:l,e:wn(()=>(a(t,c??n,l??i,s),()=>{e.delete(r)}))}}function Gr(e,t,n){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end,a=t&&!(t.f&33554432)?t.nodes.start:n;r!==null;){var o=sn(r);if(a.before(r),r===i)return;r=o}}function Kr(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function qr(e,t,n=!1,r=!1,i=!1,a=!1){var o=e,s=``;if(n){var c=e;E&&(o=O(I(c)))}B(()=>{var e=H;if(s===(s=t()??``))E&&Ie();else if(n&&!E)e.nodes=null,c.innerHTML=s,s!==``&&wr(I(c),c.lastChild);else if(e.nodes!==null&&(kn(e.nodes.start,e.nodes.end),e.nodes=null),s!==``){if(E){for(var a=D.data,l=Ie(),u=l;l!==null&&(l.nodeType!==8||l.data!==``);)u=l,l=sn(l);if(l===null)throw Ne(),Oe;wr(D,u),o=O(l)}else{var d=un(r?`svg`:i?`math`:`template`,r?Ae:i?je:void 0);d.innerHTML=s;var f=r||i?d:d.content;if(wr(I(f),f.lastChild),r||i)for(;I(f);)o.before(I(f));else o.before(f)}}})}function Jr(e,t,n){var r;E&&(r=D,Ie());var i=new Mr(e);Cn(()=>{var e=t()??null;if(E&&ze(r)===`[`!=(e!==null)){var a=Re();O(a),i.anchor=a,Fe(!1),i.ensure(e,e&&(t=>n(t,e))),Fe(!0)}else i.ensure(e,e&&(t=>n(t,e)))},ee)}function Yr(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`){if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Yr(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function Xr(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Yr(e))&&(r&&(r+=` `),r+=t);return r}function Zr(e){return typeof e==`object`?Xr(e):e??``}var Qr=[...`
3
+ \r\f\xA0\v`];function $r(e,t,n){var r=e==null?``:``+e;if(t&&(r=r?r+` `+t:t),n){for(var i of Object.keys(n))if(n[i])r=r?r+` `+i:i;else if(r.length)for(var a=i.length,o=0;(o=r.indexOf(i,o))>=0;){var s=o+a;(o===0||Qr.includes(r[o-1]))&&(s===r.length||Qr.includes(r[s]))?r=(o===0?``:r.substring(0,o))+r.substring(s+1):o=s}}return r===``?null:r}function ei(e,t=!1){var n=t?` !important;`:`;`,r=``;for(var i of Object.keys(e)){var a=e[i];a!=null&&a!==``&&(r+=` `+i+`: `+a+n)}return r}function ti(e){return e[0]!==`-`||e[1]!==`-`?e.toLowerCase():e}function ni(e,t){if(t){var n=``,r,i;if(Array.isArray(t)?(r=t[0],i=t[1]):r=t,e){e=String(e).replaceAll(/\/\*.*?\*\//g,``).trim();var a=!1,o=0,s=!1,c=[];r&&c.push(...Object.keys(r).map(ti)),i&&c.push(...Object.keys(i).map(ti));var l=0,u=-1;let t=e.length;for(var d=0;d<t;d++){var f=e[d];if(s?f===`/`&&e[d-1]===`*`&&(s=!1):a?a===f&&(a=!1):f===`/`&&e[d+1]===`*`?s=!0:f===`"`||f===`'`?a=f:f===`(`?o++:f===`)`&&o--,!s&&a===!1&&o===0){if(f===`:`&&u===-1)u=d;else if(f===`;`||d===t-1){if(u!==-1){var p=ti(e.substring(l,u).trim());if(!c.includes(p)){f!==`;`&&d++;var m=e.substring(l,d).trim();n+=` `+m+`;`}}l=d+1,u=-1}}}}return r&&(n+=ei(r)),i&&(n+=ei(i,!0)),n=n.trim(),n===``?null:n}return e==null?null:String(e)}function ri(e,t,n,r,i,a){var o=e[ue];if(E||o!==n||o===void 0){var s=$r(n,r,a);E&&s===e.getAttribute(`class`)||(s==null?e.removeAttribute(`class`):t?e.className=s:e.setAttribute(`class`,s)),e[ue]=n}else if(a&&i!==a)for(var c in a){var l=!!a[c];(i==null||l!==!!i[c])&&e.classList.toggle(c,l)}return a}function ii(e,t={},n,r){for(var i in n){var a=n[i];t[i]!==a&&(n[i]==null?e.style.removeProperty(i):e.style.setProperty(i,a,r))}}function Y(e,t,n,r){var i=e[de];if(E||i!==t){var a=ni(t,r);E&&a===e.getAttribute(`style`)||(a==null?e.removeAttribute(`style`):e.style.cssText=a),e[de]=t}else r&&(Array.isArray(r)?(ii(e,n?.[0],r[0]),ii(e,n?.[1],r[1],`important`)):ii(e,n,r));return r}var ai=Symbol(`is custom element`),oi=Symbol(`is html`),si=he?`link`:`LINK`;function ci(e){if(E){var t=!1,n=()=>{if(!t){if(t=!0,e.hasAttribute(`value`)){var n=e.value;X(e,`value`,null),e.value=n}if(e.hasAttribute(`checked`)){var r=e.checked;X(e,`checked`,null),e.checked=r}}};e[pe]=n,Ye(n),ot()}}function X(e,t,n,r){var i=li(e);E&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===si)||i[t]!==(i[t]=n)&&(t===`loading`&&(e[ce]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&di(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function li(e){return e[le]??={[ai]:e.nodeName.includes(`-`),[oi]:e.namespaceURI===ke}}var ui=new Map;function di(e){var t=e.getAttribute(`is`)||e.nodeName,n=ui.get(t);if(n)return n;ui.set(t,n=[]);for(var r,i=e,a=Element.prototype;a!==i;){for(var s in r=o(i),r)r[s].set&&s!==`innerHTML`&&s!==`textContent`&&s!==`innerText`&&n.push(s);i=l(i)}return n}function fi(e,t,n=t){var r=new WeakSet;ct(e,`input`,async i=>{var a=i?e.defaultValue:e.value;if(a=pi(e)?mi(a):a,n(a),N!==null&&r.add(N),await or(),a!==(a=t())){var o=e.selectionStart,s=e.selectionEnd,c=e.value.length;if(e.value=a??``,s!==null){var l=e.value.length;o===s&&s===c&&l>c?(e.selectionStart=l,e.selectionEnd=l):(e.selectionStart=o,e.selectionEnd=Math.min(s,l))}}}),(E&&e.defaultValue!==e.value||lr(t)==null&&e.value)&&(n(pi(e)?mi(e.value):e.value),N!==null&&r.add(N)),Sn(()=>{var n=t();if(e===document.activeElement){var i=N;if(r.has(i))return}pi(e)&&n===mi(e.value)||(e.type!==`date`||n||e.value)&&n!==e.value&&(e.value=n??``)})}function pi(e){var t=e.type;return t===`number`||t===`range`}function mi(e){return e===``?null:+e}function hi(e,t){return e===t||e?.[w]===t}function gi(e={},t,n,r){var i=A.r,a=H;return bn(()=>{var o,s;return Sn(()=>{o=s,s=r?.()||[],lr(()=>{hi(n(...s),e)||(t(e,...s),o&&hi(n(...o),e)&&t(null,...o))})}),()=>{let r=a;for(;r!==i&&r.parent!==null&&r.parent.f&33554432;)r=r.parent;let o=()=>{s&&hi(n(...s),e)&&t(null,...s)},c=r.teardown;r.teardown=()=>{o(),c?.()}}}),e}function _i(e,t,n,r){var i=!0,o=!!(n&8),s=!!(n&16),c=r,l=!0,u=void 0,d=()=>s&&i?(u??=_t(r),U(u)):(l&&(l=!1,c=s?lr(r):r),c);let f;if(o){var p=w in e||se in e;f=a(e,t)?.set??(p&&t in e?n=>e[t]=n:void 0)}var m,h=!1;o?[m,h]=it(()=>e[t]):m=e[t],m===void 0&&r!==void 0&&(m=d(),f&&(i&&Ce(t),f(m)));var g=i?()=>{var n=e[t];return n===void 0?d():(l=!0,n)}:()=>{var n=e[t];return n!==void 0&&(c=void 0),n===void 0?c:n};if(i&&!(n&4))return g;if(f){var _=e.$$legacy;return(function(e,t){return arguments.length>0?((!i||!t||_||h)&&f(t?g():e),e):g()})}var v=!1,y=(n&1?_t:bt)(()=>(v=!1,g()));o&&U(y);var b=H;return(function(e,t){if(arguments.length>0){let n=t?U(y):i&&o?$t(e):e;return F(y,n),v=!0,c!==void 0&&(c=n),e}return Rn&&v||b.f&16384?y.v:U(y)})}function vi(e){A===null&&ge(`onMount`),_n(()=>{let t=lr(e);if(typeof t==`function`)return t})}function yi(e){A===null&&ge(`onDestroy`),vi(()=>()=>lr(e))}typeof window<`u`&&((window.__svelte??={}).v??=new Set).add(`5`);function bi(){let[e,t=``]=(window.location.hash.slice(1)||`/kanban`).split(`?`);return{pathname:e,parts:e.split(`/`).filter(Boolean),query:t}}var xi=$t(bi());window.addEventListener(`hashchange`,()=>{Object.assign(xi,bi())});function Si(e){window.location.hash=e.startsWith(`#`)?e:`#${e}`}var Ci=new Set([`story`,`task`,`epic`]);function wi(e){let t=e?.event;return t===`story:updated`||t===`file:changed`&&Ci.has(e?.payload?.category)?{reloadStories:!0,reloadSprint:!0}:{reloadStories:!1,reloadSprint:!1}}var Z=$t({stories:[],epics:[],sprint:null,burndown:null,connected:!1,loading:!1,error:null,toasts:[]}),Ti=null,Ei=0;function Di({kind:e=`info`,message:t,ttl:n=3500}){let r=++Ei;Z.toasts.push({id:r,kind:e,message:t}),setTimeout(()=>{let e=Z.toasts.findIndex(e=>e.id===r);e>=0&&Z.toasts.splice(e,1)},n)}function Oi(e){let t=Z.toasts.findIndex(t=>t.id===e);t>=0&&Z.toasts.splice(t,1)}async function ki(e,t={}){let n=await fetch(e,{...t,headers:{"Content-Type":`application/json`,...t.headers??{}}});if(!n.ok){let e;try{e=await n.json()}catch{e={error:n.statusText}}let t=Error(e.error||`HTTP ${n.status}`);throw t.status=n.status,t.body=e,t}return n.json()}async function Ai(){Z.loading=!0;try{let e=await ki(`/api/stories`);Z.stories=e.stories,Z.epics=e.epics,Z.error=null}catch(e){Z.error=e.message,Di({kind:`error`,message:`Failed to load stories: ${e.message}`})}finally{Z.loading=!1}}async function ji(){try{let e=await ki(`/api/sprints/current`);Z.sprint=e.sprint,Z.burndown=e.burndown}catch(e){e.status!==404&&Di({kind:`error`,message:`Sprint load failed: ${e.message}`}),Z.sprint=null,Z.burndown=null}}async function Mi(e,t){let n=Z.stories.find(t=>t.id===e);if(!n)throw Error(`story not found`);let r=Z.stories.findIndex(t=>t.id===e),i={...n};Z.stories[r]={...n,status:t.status};try{let n=await ki(`/api/stories/${e}/status`,{method:`PATCH`,body:JSON.stringify(t)});return Z.stories[r]=n.story,Di({kind:`success`,message:`${e} -> ${n.story.status}`}),n.story}catch(e){Z.stories[r]=i;let t=e.body?.missing?.length?` (${e.body.missing.join(`, `)})`:``;throw Di({kind:`error`,message:`Transition failed: ${e.body?.reason??e.message}${t}`,ttl:5e3}),e}}function Ni(){if(Ti)return;Ti=new EventSource(`/api/events`),Ti.addEventListener(`open`,()=>{Z.connected=!0}),Ti.addEventListener(`error`,()=>{Z.connected=!1});let e=async({reloadStories:e,reloadSprint:t})=>{let n=[];e&&n.push(Ai()),t&&n.push(ji()),n.length&&await Promise.all(n)};Ti.addEventListener(`story:updated`,()=>e(wi({event:`story:updated`}))),Ti.addEventListener(`file:changed`,t=>{let n;try{({payload:n}=JSON.parse(t.data))}catch{n=void 0}return e(wi({event:`file:changed`,payload:n}))})}function Pi(){Ti&&(Ti.close(),Ti=null,Z.connected=!1)}var Fi={backlog:{label:`Backlog`,cssVar:`--st-backlog`},"ready-for-dev":{label:`Ready for Dev`,cssVar:`--st-ready`},"in-progress":{label:`In Progress`,cssVar:`--st-in-progress`},review:{label:`Review`,cssVar:`--st-review`},done:{label:`Done`,cssVar:`--st-done`},blocked:{label:`Blocked`,cssVar:`--st-blocked`}},Ii={must:{label:`Must`,cssVar:`--pri-must`},should:{label:`Should`,cssVar:`--pri-should`},could:{label:`Could`,cssVar:`--pri-could`},wont:{label:`Won't`,cssVar:`--pri-wont`}},Li={red:{label:`Red`,cssVar:`--tdd-red`},green:{label:`Green`,cssVar:`--tdd-green`},refactor:{label:`Refactor`,cssVar:`--tdd-refactor`},done:{label:`Done`,cssVar:`--success`}},Ri={DB:`oklch(0.74 0.13 300)`,BE:`oklch(0.74 0.13 236)`,"FE-WEB":`oklch(0.80 0.14 145)`,"FE-MOB":`oklch(0.80 0.14 175)`,TEST:`oklch(0.82 0.14 60)`,DOC:`oklch(0.70 0.02 264)`,OPS:`oklch(0.74 0.13 30)`,REV:`oklch(0.74 0.13 330)`},zi=[`status`,`priority`,`tdd`,`epic`];function Bi(e){let t=5381,n=String(e??``);for(let e=0;e<n.length;e++)t=(t<<5)+t+n.charCodeAt(e)>>>0;return t}function Vi(e){return e?`oklch(0.78 0.13 ${Bi(e)%360})`:`var(--fg-faint)`}function Hi(e,t){return e?t===`priority`?`var(${Ii[e.priority]?.cssVar||`--fg-faint`})`:t===`tdd`?`var(${Li[e.tdd_phase]?.cssVar||`--fg-faint`})`:t===`epic`?Vi(e.epic_id):`var(${Fi[e.status]?.cssVar||`--border`})`:`var(--border)`}function Ui(e){let t=String(e??``).trim();if(!t)return`?`;let n=t.split(/[\s._-]+/).filter(Boolean);return n.length>=2?(n[0][0]+n[1][0]).toUpperCase():t.slice(0,2).toUpperCase()}function Wi(e){return e?`oklch(0.78 0.12 ${Bi(e)%360})`:`var(--bg-inset)`}var Gi=`cc-kanban-tweaks`,Ki={lime:{a:`oklch(0.88 0.21 126)`,d:`oklch(0.72 0.16 126)`,f:`oklch(0.22 0.05 126)`,hex:`#bdf03d`},cyan:{a:`oklch(0.83 0.13 200)`,d:`oklch(0.68 0.11 200)`,f:`oklch(0.18 0.04 215)`,hex:`#3fd0e0`},violet:{a:`oklch(0.74 0.17 295)`,d:`oklch(0.62 0.16 295)`,f:`oklch(0.98 0.01 295)`,hex:`#a78bfa`},amber:{a:`oklch(0.84 0.15 75)`,d:`oklch(0.73 0.13 70)`,f:`oklch(0.24 0.05 70)`,hex:`#f5c44e`}},qi=[`comfortable`,`compact`],Q=$t({codingScheme:`status`,accent:`lime`,density:`comfortable`});function Ji(){if(typeof localStorage<`u`)try{let e=localStorage.getItem(Gi);if(!e)return;let t=JSON.parse(e);zi.includes(t.codingScheme)&&(Q.codingScheme=t.codingScheme),Ki[t.accent]&&(Q.accent=t.accent),qi.includes(t.density)&&(Q.density=t.density)}catch{}}function Yi(){if(typeof localStorage<`u`)try{localStorage.setItem(Gi,JSON.stringify({...Q}))}catch{}}function Xi(){if(typeof document>`u`)return;let e=Ki[Q.accent]||Ki.lime,t=document.documentElement.style;t.setProperty(`--accent`,e.a),t.setProperty(`--accent-dim`,e.d),t.setProperty(`--accent-fg`,e.f),t.setProperty(`--accent-soft`,`color-mix(in oklch, ${e.a} 13%, transparent)`),t.setProperty(`--accent-ring`,`color-mix(in oklch, ${e.a} 55%, transparent)`)}function Zi(e,t){e in Q&&(Q[e]=t,e===`accent`&&Xi(),Yi())}function Qi(){Ji(),Xi()}function $i(e,t){let n=t?(e??[]).filter(e=>e.sprint_id===t):[],r=n.reduce((e,t)=>e+(t.story_points??0),0),i=n.filter(e=>e.status===`done`).reduce((e,t)=>e+(t.story_points??0),0);return{totalPoints:r,donePoints:i,pct:r>0?Math.round(i/r*100):0}}var ea={board:`<rect x="3" y="3" width="6" height="18" rx="1.5"/><rect x="9.5" y="3" width="6" height="11" rx="1.5"/><rect x="16" y="3" width="5" height="15" rx="1.5"/>`,backlog:`<path d="M4 6h16M4 12h16M4 18h10"/>`,sprint:`<path d="M4 12a8 8 0 1 1 8 8"/><path d="M12 8v4l3 2"/><path d="M4 12l-2-2m2 2l2-2"/>`,burndown:`<path d="M4 4v16h16"/><path d="M20 7L13 13l-3-2-3 4"/>`,deps:`<circle cx="6" cy="6" r="2.4"/><circle cx="18" cy="9" r="2.4"/><circle cx="9" cy="18" r="2.4"/><path d="M8 7.2l7.8 1M8 16.4l8.6-6"/>`,docs:`<path d="M6 3h8l4 4v14a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1z"/><path d="M13 3v5h5M8 13h8M8 17h6"/>`,search:`<circle cx="11" cy="11" r="7"/><path d="m20 20-3.2-3.2"/>`,lock:`<rect x="5" y="11" width="14" height="9" rx="2"/><path d="M8 11V8a4 4 0 0 1 8 0v3"/>`,person:`<circle cx="12" cy="8" r="3.4"/><path d="M5.5 20a6.5 6.5 0 0 1 13 0"/>`,check:`<path d="M4 12.5 9 17.5 20 6.5"/>`,plus:`<path d="M12 5v14M5 12h14"/>`,close:`<path d="M6 6l12 12M18 6 6 18"/>`,chevron:`<path d="M9 6l6 6-6 6"/>`,down:`<path d="M6 9l6 6 6-6"/>`,settings:`<circle cx="12" cy="12" r="3"/><path d="M12 2v3M12 19v3M2 12h3M19 12h3M5 5l2 2M17 17l2 2M19 5l-2 2M7 17l-2 2"/>`,bell:`<path d="M6 9a6 6 0 0 1 12 0c0 5 2 6 2 6H4s2-1 2-6z"/><path d="M10 19a2 2 0 0 0 4 0"/>`,filter:`<path d="M3 5h18l-7 8v6l-4-2v-4z"/>`,warn:`<path d="M12 3 2 20h20z"/><path d="M12 9v5M12 17h.01"/>`,arrowR:`<path d="M5 12h14M13 6l6 6-6 6"/>`,link:`<path d="M10 14a4 4 0 0 0 6 .5l2-2a4 4 0 0 0-6-6l-1 1"/><path d="M14 10a4 4 0 0 0-6-.5l-2 2a4 4 0 0 0 6 6l1-1"/>`,folder:`<path d="M3 7a1 1 0 0 1 1-1h5l2 2h8a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1z"/>`,file:`<path d="M7 3h7l4 4v14H7z"/><path d="M14 3v4h4"/>`,copy:`<rect x="9" y="9" width="11" height="11" rx="2"/><path d="M5 15V5a2 2 0 0 1 2-2h8"/>`},ta=Er(`<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"></svg>`);function na(e,t){We(t,!0);let n=_i(t,`size`,3,18),r=_i(t,`sw`,3,1.7),i=_i(t,`cls`,3,``),a=M(()=>ea[t.name]??``);var o=ta();qr(o,()=>U(a),!0),k(o),B(()=>{ri(o,0,Zr(i())),X(o,`width`,n()),X(o,`height`,n()),X(o,`stroke-width`,r())}),K(e,o),Ge()}var ra=G(`<button> </button>`),ia=G(`<button></button>`),aa=G(`<dialog class="tweaks-dialog svelte-10jqe86" aria-labelledby="tweaks-title"><div class="tweaks-inner svelte-10jqe86"><header class="tweaks-head svelte-10jqe86"><h2 id="tweaks-title" class="svelte-10jqe86">Réglages d'affichage</h2> <button class="icon-btn" aria-label="Fermer"><!></button></header> <section class="tweaks-section svelte-10jqe86"><div class="tweaks-label svelte-10jqe86">Code couleur des cartes</div> <div class="tweaks-grid svelte-10jqe86"></div> <p class="tweaks-hint svelte-10jqe86">Définit la couleur de la barre d'accent gauche de chaque carte du board.</p></section> <section class="tweaks-section svelte-10jqe86"><div class="tweaks-label svelte-10jqe86">Accent</div> <div class="tweaks-swatches svelte-10jqe86"></div></section> <section class="tweaks-section svelte-10jqe86"><div class="tweaks-label svelte-10jqe86">Densité</div> <div class="tweaks-grid two svelte-10jqe86"></div></section></div></dialog>`);function oa(e,t){We(t,!0);let n=P(null),r=P(null);function i(){F(r,document.activeElement,!0),U(n)?.showModal()}function a(){U(n)?.close()}function o(){U(r)&&(U(r).focus(),F(r,null))}let s=[[`status`,`Statut`],[`priority`,`Priorité`],[`tdd`,`Phase TDD`],[`epic`,`Epic`]];var c={open:i},l=aa(),u=L(l),d=L(u),f=z(L(d),2);na(L(f),{name:`close`,size:18}),k(f),k(d);var p=z(d,2),m=z(L(p),2);Vr(m,21,()=>s,Lr,(e,t)=>{var n=M(()=>h(U(t),2));let r=()=>U(n)[0],i=()=>U(n)[1];var a=ra();let o;var s=L(a,!0);k(a),B(()=>{o=ri(a,1,`tweak-opt svelte-10jqe86`,null,o,{selected:Q.codingScheme===r()}),X(a,`aria-pressed`,Q.codingScheme===r()),q(s,i())}),W(`click`,a,()=>Zi(`codingScheme`,r())),K(e,a)}),k(m),Le(2),k(p);var g=z(p,2),_=z(L(g),2);Vr(_,21,()=>Object.entries(Ki),Lr,(e,t)=>{var n=M(()=>h(U(t),2));let r=()=>U(n)[0],i=()=>U(n)[1];var a=ia();let o;B(()=>{o=ri(a,1,`swatch-btn svelte-10jqe86`,null,o,{selected:Q.accent===r()}),X(a,`aria-pressed`,Q.accent===r()),X(a,`aria-label`,`Accent ${r()}`),X(a,`title`,r()),Y(a,`--sw: ${i().a??``};`)}),W(`click`,a,()=>Zi(`accent`,r())),K(e,a)}),k(_),k(g);var v=z(g,2),y=z(L(v),2);return Vr(y,21,()=>qi,Lr,(e,t)=>{var n=ra();let r;var i=L(n,!0);k(n),B(()=>{r=ri(n,1,`tweak-opt svelte-10jqe86`,null,r,{selected:Q.density===U(t)}),X(n,`aria-pressed`,Q.density===U(t)),q(i,U(t)===`compact`?`Compacte`:`Confortable`)}),W(`click`,n,()=>Zi(`density`,U(t))),K(e,n)}),k(y),k(v),k(u),k(l),gi(l,e=>F(n,e),()=>U(n)),gr(`close`,l,o),W(`click`,l,e=>{e.target===U(n)&&a()}),W(`click`,f,a),K(e,l),Ge(c)}_r([`click`]);var sa=G(`<span class="avatar" role="img"> </span>`),ca=G(`<span class="avatar avatar-empty" role="img" title="Non assigné" aria-label="Non assigné"><!></span>`);function la(e,t){We(t,!0);let n=_i(t,`id`,3,``),r=_i(t,`size`,3,28);var i=Dr(),a=R(i),o=e=>{var t=sa(),i=L(t,!0);k(t),B((e,a)=>{X(t,`title`,n()),X(t,`aria-label`,`Assigné à : ${n()}`),Y(t,`width:${r()??``}px; height:${r()??``}px; background:${e??``}; font-size:${r()*.38}px;`),q(i,a)},[()=>Wi(n()),()=>Ui(n())]),K(e,t)},s=e=>{var t=ca(),n=L(t);{let e=M(()=>r()*.5);na(n,{name:`person`,get size(){return U(e)}})}k(t),B(()=>Y(t,`width:${r()??``}px; height:${r()??``}px;`)),K(e,t)};J(a,e=>{n()?e(o):e(s,-1)}),K(e,i),Ge()}var ua=G(`<span class="chip"> </span>`);function da(e,t){We(t,!0);let n=M(()=>Ii[t.priority]),r=M(()=>U(n)?`var(${U(n).cssVar})`:`var(--fg-faint)`);var i=Dr(),a=R(i),o=e=>{var t=ua(),i=L(t,!0);k(t),B(()=>{Y(t,`background: color-mix(in oklch, ${U(r)??``} 16%, transparent); color: ${U(r)??``}; border-color: color-mix(in oklch, ${U(r)??``} 32%, transparent);`),q(i,U(n).label)}),K(e,t)};J(a,e=>{U(n)&&e(o)}),K(e,i),Ge()}var fa=G(`<span class="tdd-pip"><i></i> </span>`);function pa(e,t){We(t,!0);let n=M(()=>Li[t.phase]),r=M(()=>U(n)?`var(${U(n).cssVar})`:null);var i=Dr(),a=R(i),o=e=>{var t=fa(),i=L(t),a=z(i,1,!0);k(t),B(()=>{X(t,`aria-label`,`Phase TDD : ${U(n).label}`),Y(t,`background: color-mix(in oklch, ${U(r)??``} 15%, transparent); color: ${U(r)??``};`),Y(i,`background: ${U(r)??``};`),q(a,U(n).label)}),K(e,t)};J(a,e=>{U(n)&&e(o)}),K(e,i),Ge()}function ma(e,t,n){for(let r=0;r<t.length;r++){let i=(e[t[r].key]??[]).findIndex(e=>e.id===n);if(i!==-1)return{columnIndex:r,cardIndex:i}}return null}function ha(e,t,n){return Math.max(t,Math.min(e,n))}var ga=e=>({state:e,action:null});function _a(e,t,n){let{columns:r,storiesByStatus:i}=n,{key:a,altKey:o}=t,s=e=>r[e]?.key,c=e=>i[s(e)]??[];if(o&&a===`m`){let t=c(e.focusedColumnIndex)[e.focusedCardIndex];return e.focusedCardIndex<0||!t?ga(e):e.showMoveMenu?{state:{...e,showMoveMenu:!1},action:{type:`close-menu`}}:{state:{...e,showMoveMenu:!0},action:{type:`open-menu`}}}if(a===`ArrowDown`||a===`ArrowUp`){let t=c(e.focusedColumnIndex);if(t.length===0)return ga(e);let n=ha(a===`ArrowDown`?e.focusedCardIndex+1:e.focusedCardIndex-1,0,t.length-1);return{state:{...e,focusedCardIndex:n},action:{type:`focus`,cardId:t[n].id}}}if(a===`ArrowRight`||a===`ArrowLeft`){let t=ha(a===`ArrowRight`?e.focusedColumnIndex+1:e.focusedColumnIndex-1,0,r.length-1),n=c(t),i=n.length>0?{type:`focus`,cardId:n[0].id}:null;return{state:{...e,focusedColumnIndex:t,focusedCardIndex:0},action:i}}if(e.showMoveMenu){if(/^[1-6]$/.test(a)){let t=r[parseInt(a,10)-1],n=c(e.focusedColumnIndex)[e.focusedCardIndex];return t&&n?n._writable===!1?{state:e,action:{type:`readonly`,cardId:n.id}}:{state:e,action:{type:`move`,cardId:n.id,targetStatus:t.key}}:ga(e)}if(a===`Escape`)return{state:{...e,showMoveMenu:!1},action:{type:`close-menu`}}}if(a===`Enter`&&!e.showMoveMenu){let t=c(e.focusedColumnIndex)[e.focusedCardIndex];return t?{state:e,action:{type:`details`,card:t}}:ga(e)}return ga(e)}function va(e){return{id:e.id,title:e.title??e.id,status:e.status??``,priority:e.priority??``,storyPoints:e.story_points??0,epicId:e.epic_id??null,persona:e.persona??``,assignedTo:e.assigned_to??``,tddPhase:e.tdd_phase??``,tasks:{total:e.tasks?.total??0,completed:e.tasks?.completed??0},blockedReason:e.blocked_reason??``,readOnly:e._writable===!1}}var ya=`modulepreload`,ba=function(e){return`/`+e},xa={},Sa=function(e){return e.pathname.endsWith(`.css`)},Ca=function(e,t,n){if(t in e)return e[t];let r=n();if(!r){e[t]=void 0;return}let i=r.then(()=>{e[t]=void 0},n=>{throw e[t]=void 0,n});return e[t]=i,i},wa=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e,i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?new URL(import.meta.resolve(e)):new URL(e,import.meta.url)}r=o(t.map(t=>{t=ba(t,n);let r=s(t),i=Sa(r);return Ca(xa,r.href,()=>{if(e===void 0){e={all:new Set,styles:new Set};let t=document.getElementsByTagName(`link`);for(let n=t.length-1;n>=0;n--){let r=t[n];e.all.add(r.href),r.rel===`stylesheet`&&e.styles.add(r.href)}}if((i?e.styles:e.all).has(r.href))return;let t=document.createElement(`link`);if(t.rel=i?`stylesheet`:ya,i||(t.as=`script`),t.crossOrigin=``,t.href=r.href,a&&t.setAttribute(`nonce`,a),document.head.appendChild(t),i)return new Promise((e,n)=>{t.addEventListener(`load`,e),t.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${r}`)))})})}).filter(e=>e!==void 0))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},$=$t({card:null,tasks:[],body:``,loading:!1}),Ta=null;async function Ea(e){e&&(Ta=typeof document<`u`?document.activeElement:null,$.card=e,$.tasks=[],$.body=``,await ka(e.id))}function Da(){$.card=null,$.tasks=[],$.body=``}function Oa(){let e=Ta;return Ta=null,e}async function ka(e){$.loading=!0;try{let t=await fetch(`/api/stories/${encodeURIComponent(e)}`);if(!t.ok)return;let n=await t.json();if($.card?.id!==e)return;if($.tasks=n.tasks??[],n.body){let[{marked:t},r]=await Promise.all([wa(()=>import(`./marked.esm-2LEqwveT.js`),[]),wa(()=>import(`./purify.es-Dqk5qvad.js`),[])]),i=r.default??r;$.card?.id===e&&($.body=i.sanitize(t.parse(n.body)))}}catch{}finally{$.loading=!1}}var Aa=G(`<span style="color: var(--fg-faint)">·</span> <span style="display:inline-flex; align-items:center; gap:7px; font-size:12.5px; color: var(--fg-dim)"><i aria-hidden="true"></i> </span>`,1),ja=G(`<span class="ro-lock" style="margin-left:8px"><!> read-only</span>`),Ma=G(`<!> `,1),Na=G(`<span style="color: var(--fg-faint)">—</span>`),Pa=G(`<div class="fm-cell"><div class="k">Heures est / réel</div><div class="v mono"> <span> </span></div></div>`),Fa=G(`<div class="modal-readonly-note" style="border-color: var(--danger); color: var(--danger)"> </div>`),Ia=G(`<tr><td><span class="t-type"> </span></td><td class="t-name"> </td><td> </td><td class="t-hrs"> </td><td> </td></tr>`),La=G(`<div class="section-h"><h3>Tâches</h3><span class="n mono"> </span><span class="line"></span></div> <table class="tasks"><thead><tr><th style="width:54px">Type</th><th>Tâche</th><th>Statut</th><th style="text-align:right">Est</th><th style="text-align:right">Réel</th></tr></thead><tbody></tbody></table>`,1),Ra=G(`<p aria-live="polite" style="color: var(--fg-faint); font-size:12px; margin-top:12px">Chargement des tâches…</p>`),za=G(`<div class="section-h"><h3>Description</h3><span class="line"></span></div> <div class="md-body"></div>`,1),Ba=G(`<p class="modal-readonly-note">Carte en lecture seule — gérée par <code>.bmad/sprint-status.yaml</code> (BMAD v6 single-writer).
4
+ Changez son statut via les commandes <code>team:</code> / <code>qa:</code>.</p>`),Va=G(`<dialog class="modal" aria-modal="true" aria-labelledby="detail-title"><div class="modal-inner"><header class="modal-head"><div class="row1"><span class="m-id mono"> </span> <!> <!> <button class="icon-btn m-close" aria-label="Fermer"><!></button></div> <h2 class="modal-title" id="detail-title"> </h2> <div class="modal-frontmatter"><span class="chip chip-soft"><i class="swatch"></i> </span> <!> <!></div></header> <div class="modal-body"><div class="fm-grid"><div class="fm-cell"><div class="k">Points</div><div class="v"><span class="points mono"> </span></div></div> <div class="fm-cell"><div class="k">Assigné</div><div class="v"><!></div></div> <div class="fm-cell"><div class="k">Persona</div><div class="v"> </div></div> <div class="fm-cell"><div class="k">Phase TDD</div><div class="v"><!><!></div></div> <div class="fm-cell"><div class="k">Tâches</div><div class="v mono"> </div></div> <!></div> <!> <!> <!> <!></div></div></dialog>`);function Ha(e,t){We(t,!0);let n=P(null);function r(){U(n)?.close()}function i(){let e=Oa();Da(),or().then(()=>e?.focus?.())}let a=xi.parts[0];_n(()=>{let e=xi.parts[0];e!==a&&(a=e,$.card&&r())});let o=M(()=>$.card?va($.card):null),s=M(()=>$.tasks.reduce((e,t)=>e+(t.estimation_hours||0),0)),c=M(()=>$.tasks.reduce((e,t)=>e+(t.actual_hours||0),0));_n(()=>{U(o)&&U(n)&&!U(n).open&&U(n).showModal()});var l=Dr(),u=R(l),d=e=>{var t=Va(),a=L(t),l=L(a),u=L(l),d=L(u),f=L(d,!0);k(d);var p=z(d,2),m=e=>{var t=Aa(),n=z(R(t),2),r=L(n),i=z(r);k(n),B(e=>{Y(r,`width:8px; height:8px; border-radius:50%; background: ${e??``}; display:inline-block`),q(i,` ${U(o).epicId??``}`)},[()=>Vi(U(o).epicId)]),K(e,t)};J(p,e=>{U(o).epicId&&e(m)});var h=z(p,2),g=e=>{var t=ja();na(L(t),{name:`lock`,size:13}),Le(),k(t),K(e,t)};J(h,e=>{U(o).readOnly&&e(g)});var _=z(h,2);na(L(_),{name:`close`,size:18}),k(_),k(u);var v=z(u,2),y=L(v,!0);k(v);var b=z(v,2),x=L(b),S=L(x),ee=z(S,1,!0);k(x);var C=z(x,2);da(C,{get priority(){return U(o).priority}}),pa(z(C,2),{get phase(){return U(o).tddPhase}}),k(b),k(l);var te=z(l,2),ne=L(te),re=L(ne),ie=z(L(re)),ae=L(ie),oe=L(ae,!0);k(ae),k(ie),k(re);var w=z(re,2),se=z(L(w)),ce=L(se),le=e=>{var t=Ma(),n=R(t);la(n,{get id(){return U(o).assignedTo},size:22});var r=z(n,1,!0);B(()=>q(r,U(o).assignedTo)),K(e,t)},ue=e=>{K(e,Na())};J(ce,e=>{U(o).assignedTo?e(le):e(ue,-1)}),k(se),k(w);var de=z(w,2),fe=z(L(de)),pe=L(fe,!0);k(fe),k(de);var me=z(de,2),he=z(L(me)),ge=L(he);pa(ge,{get phase(){return U(o).tddPhase}});var _e=z(ge),ve=e=>{K(e,Na())};J(_e,e=>{U(o).tddPhase&&Li[U(o).tddPhase]||e(ve)}),k(he),k(me);var ye=z(me,2),be=z(L(ye)),xe=L(be);k(be),k(ye);var Se=z(ye,2),Ce=e=>{var t=Pa(),n=z(L(t)),r=L(n),i=z(r),a=L(i,!0);k(i),k(n),k(t),B(()=>{q(r,`${U(s)??``} / `),ri(i,1,Zr(U(c)>U(s)?`t-over`:``)),q(a,U(c))}),K(e,t)};J(Se,e=>{U(s)>0&&e(Ce)}),k(ne);var we=z(ne,2),Te=e=>{var t=Fa(),n=L(t);k(t),B(()=>q(n,`⚠ Bloqué : ${U(o).blockedReason??``}`)),K(e,t)};J(we,e=>{U(o).blockedReason&&e(Te)});var Ee=z(we,2),De=e=>{var t=La(),n=R(t),r=z(L(n)),i=L(r);k(r),Le(),k(n);var a=z(n,2),s=z(L(a));Vr(s,21,()=>$.tasks,Lr,(e,t)=>{var n=Ia(),r=L(n),i=L(r),a=L(i,!0);k(i),k(r);var o=z(r),s=L(o,!0);k(o);var c=z(o),l=L(c,!0);k(c);var u=z(c),d=L(u,!0);k(u);var f=z(u),p=L(f,!0);k(f),k(n),B(()=>{Y(i,`background: color-mix(in oklch, ${(Ri[U(t).type]||`var(--fg-faint)`)??``} 16%, transparent); color: ${(Ri[U(t).type]||`var(--fg-dim)`)??``}`),q(a,U(t).type),q(s,U(t).id),q(l,U(t).status),q(d,U(t).estimation_hours??`—`),ri(f,1,`t-hrs ${(U(t).actual_hours||0)>(U(t).estimation_hours||0)?`t-over`:``}`),q(p,U(t).actual_hours??`—`)}),K(e,n)}),k(s),k(a),B(()=>q(i,`${U(o).tasks.completed??``}/${U(o).tasks.total??``}`)),K(e,t)},Oe=e=>{K(e,Ra())};J(Ee,e=>{$.tasks.length>0?e(De):$.loading&&e(Oe,1)});var T=z(Ee,2),ke=e=>{var t=za(),n=z(R(t),2);qr(n,()=>$.body,!0),k(n),K(e,t)};J(T,e=>{$.body&&e(ke)});var Ae=z(T,2),je=e=>{K(e,Ba())};J(Ae,e=>{U(o).readOnly&&e(je)}),k(te),k(a),k(t),gi(t,e=>F(n,e),()=>U(n)),B(()=>{q(f,U(o).id),q(y,U(o).title),Y(S,`background: var(${(Fi[U(o).status]?.cssVar||`--border`)??``})`),q(ee,Fi[U(o).status]?.label||U(o).status),q(oe,U(o).storyPoints),q(pe,U(o).persona||`—`),q(xe,`${U(o).tasks.completed??``}/${U(o).tasks.total??``}`)}),gr(`close`,t,i),W(`click`,t,e=>{e.target===U(n)&&r()}),W(`click`,_,()=>r()),K(e,t)};J(u,e=>{U(o)&&e(d)}),K(e,l),Ge()}_r([`click`]);var Ua=G(`<dialog aria-labelledby="prompt-dialog-title" aria-modal="true" class="svelte-e1h34p"><form method="dialog"><h2 id="prompt-dialog-title" class="dialog-title svelte-e1h34p"> </h2> <input type="text" class="dialog-input svelte-e1h34p"/> <div class="dialog-actions svelte-e1h34p"><button type="submit" value="cancel" class="btn-cancel svelte-e1h34p">Cancel</button> <button type="button" class="btn-confirm svelte-e1h34p">OK</button></div></form></dialog>`);function Wa(e,t){We(t,!0);let n=P(null),r=P(null),i=P(``),a=P(``),o=null;function s(e){return F(i,e,!0),F(a,``),U(n).showModal(),Promise.resolve().then(()=>U(r)?.focus()),new Promise(e=>{o=e})}function c(){let e=U(n).returnValue===`confirm`&&U(a).trim()?U(a):null;o?.(e),o=null}function l(e){e.key===`Enter`&&(e.preventDefault(),U(n).returnValue=`confirm`,U(n).close())}var u={prompt:s},d=Ua(),f=L(d),p=L(f),m=L(p,!0);k(p);var h=z(p,2);ci(h),gi(h,e=>F(r,e),()=>U(r));var g=z(h,2),_=z(L(g),2);return k(g),k(f),k(d),gi(d,e=>F(n,e),()=>U(n)),B(()=>{q(m,U(i)),X(h,`aria-label`,U(i))}),gr(`close`,d,c),W(`keydown`,h,l),fi(h,()=>U(a),e=>F(a,e)),W(`click`,_,()=>{U(n).returnValue=`confirm`,U(n).close()}),K(e,d),Ge(u)}_r([`keydown`,`click`]);var Ga=G(`<span class="points mono"> </span>`);function Ka(e,t){var n=Ga(),r=L(n,!0);k(n),B(()=>{X(n,`title`,`${t.value} story points`),q(r,t.value)}),K(e,n)}var qa=G(`<span class="task-prog" role="progressbar"><span class="bar"><span></span></span> </span>`);function Ja(e,t){We(t,!0);let n=_i(t,`status`,3,``),r=M(()=>t.tasks?.total??0),i=M(()=>n()===`done`&&U(r)>0?U(r):t.tasks?.completed??0),a=M(()=>U(r)?U(i)/U(r)*100:0);var o=Dr(),s=R(o),c=e=>{var t=qa();X(t,`aria-valuemin`,0);var n=L(t),o=L(n);k(n);var s=z(n);k(t),B(()=>{X(t,`aria-label`,`Tâches : ${U(i)} sur ${U(r)} complétées`),X(t,`aria-valuenow`,U(i)),X(t,`aria-valuemax`,U(r)),Y(o,`width: ${U(a)??``}%`),q(s,`${U(i)??``}/${U(r)??``}`)}),K(e,t)};J(s,e=>{U(r)>0&&e(c)}),K(e,o),Ge()}var Ya=G(`<button class="filter-chip"><i class="dot"></i> </button>`),Xa=G(`<button class="filter-chip" style="border:none">Clear</button>`),Za=G(`<span class="key"><i></i> </span>`),Qa=G(`<i class="card-epic-dot"></i>`),$a=G(`<span class="card-lock" aria-label="Lecture seule — gérée par .bmad/sprint-status.yaml" role="img">🔒</span>`),eo=G(`<span class="persona"><!> </span>`),to=G(`<span class="card-blocked">⚠ blocked</span>`),no=G(`<li tabindex="0" role="listitem" aria-describedby="keyboard-help"><div class="card-top"><!> <span class="card-id mono"> </span> <!> <span class="spacer"></span> <!> <!></div> <h3 class="card-title"> </h3> <div class="card-meta"><!> <!> <span class="spacer"></span> <!> <!> <!></div></li>`),ro=G(`<li class="col-empty" role="listitem"> </li>`),io=G(`<section><header class="col-head"><i class="col-dot"></i> <h2 class="col-title"> </h2> <span class="col-count mono"> </span> <span class="col-pts mono" title="story points dans la colonne"> </span></header> <ul class="col-body" role="list"></ul></section>`),ao=G(`<button class="svelte-1l5g889"> </button>`),oo=G(`<dialog class="move-menu-dialog svelte-1l5g889" aria-labelledby="move-menu-title"><div class="move-menu-content svelte-1l5g889"><h3 id="move-menu-title" class="svelte-1l5g889">Déplacer la carte vers :</h3> <!> <button class="svelte-1l5g889">Annuler (Échap)</button></div></dialog>`),so=G(`<div class="board-toolbar"><div class="filters"><!> <!></div> <span class="topbar-spacer"></span> <div class="coding-legend"><span class="lbl"> </span> <!></div></div> <div class="board"></div> <!> <div id="keyboard-help" class="sr-only">Flèches pour naviguer. Alt+M pour ouvrir le menu de déplacement. Chiffres 1 à 6 pour déplacer dans une colonne. Échap pour fermer. Entrée pour les détails.</div> <div aria-live="polite" aria-atomic="true" class="sr-only"> </div> <details class="keyboard-help-visible"><summary aria-label="Raccourcis clavier du tableau Kanban">⌨ Raccourcis</summary> <div class="keyboard-help-content"><kbd>↑↓</kbd> Naviguer &ensp;<kbd>←→</kbd> Colonne &ensp;<kbd>Alt+M</kbd> Déplacer &ensp;<kbd>1–6</kbd> Vers colonne &ensp;<kbd>Échap</kbd> Fermer &ensp;<kbd>Entrée</kbd> Détails</div></details> <!>`,1);function co(e,t){We(t,!0);let n=P(null),r=P(null),i=P(null),a=[{key:`backlog`,label:`Backlog`,emptyHint:`No stories — run /workflow:plan`},{key:`ready-for-dev`,label:`Ready for Dev`,emptyHint:`No stories ready — run /workflow:start`},{key:`in-progress`,label:`In Progress`,emptyHint:`Nothing in progress`},{key:`review`,label:`Review`,emptyHint:`Nothing to review`},{key:`done`,label:`Done`,emptyHint:`Nothing done yet`},{key:`blocked`,label:`Blocked`,emptyHint:``}],o=P(-1),s=P(0),c=P(!1),l=P(``),u=P(null),d=P(null),f=P($t([]));function p(e){F(f,U(f).includes(e)?U(f).filter(t=>t!==e):[...U(f),e],!0)}let m=e=>U(f).length===0||U(f).includes(e.priority),g=M(()=>Z.sprint?.sprint_id??null),_=M(()=>U(g)?Z.stories.filter(e=>e.sprint_id===U(g)):Z.stories),v=M(()=>{let e=Object.fromEntries(a.map(e=>[e.key,[]]));for(let t of U(_))m(t)&&(e[t.status]??=[]).push(t);return e}),y=e=>U(v)[e].reduce((e,t)=>e+(t.story_points||0),0),b=M(()=>{let e=Q.codingScheme;if(e===`priority`)return Object.values(Ii).map(e=>[e.label,`var(${e.cssVar})`]);if(e===`tdd`)return[[`Red`,`var(--tdd-red)`],[`Green`,`var(--tdd-green)`],[`Refactor`,`var(--tdd-refactor)`]];if(e===`epic`){let e=new Map;for(let t of U(_))t.epic_id&&!e.has(t.epic_id)&&e.set(t.epic_id,Vi(t.epic_id));return[...e.entries()]}return a.map(e=>[e.label,`var(${Fi[e.key].cssVar})`])});function x(e,t){F(u,t,!0),e.dataTransfer.effectAllowed=`move`,e.dataTransfer.setData(`text/plain`,t)}function S(e){e.preventDefault(),e.dataTransfer.dropEffect=`move`}async function ee(e,t){e.preventDefault(),F(d,null);let r=e.dataTransfer.getData(`text/plain`)||U(u);if(F(u,null),!r)return;let i=Z.stories.find(e=>e.id===r);if(!i||i.status===t)return;if(i._writable===!1){ie(i.id);return}let a={status:t};if(t===`blocked`){let e=await U(n).prompt(`Blocked reason?`);if(!e)return;a.blocked_reason=e}try{await Mi(r,a),re(i.id,t)}catch{}}vi(()=>{let e=new Set([`ArrowDown`,`ArrowUp`,`ArrowLeft`,`ArrowRight`,`Escape`,`Enter`]);function t(t){if(!document.activeElement?.closest(`.board`)&&!U(c))return;let n={columns:a,storiesByStatus:U(v)},{state:r,action:i}=_a({focusedColumnIndex:U(s),focusedCardIndex:U(o),showMoveMenu:U(c)},{key:t.key,altKey:t.altKey},n);if((e.has(t.key)||t.altKey&&t.key===`m`||U(c)&&/^[1-6]$/.test(t.key))&&t.preventDefault(),F(s,r.focusedColumnIndex,!0),F(o,r.focusedCardIndex,!0),F(c,r.showMoveMenu,!0),i)switch(i.type){case`focus`:C(i.cardId);break;case`open-menu`:oe();break;case`close-menu`:w();break;case`move`:{let e=Z.stories.find(e=>e.id===i.cardId);e&&ne(e,i.targetStatus);break}case`readonly`:ie(i.cardId),w();break;case`details`:se(i.card)}}return document.addEventListener(`keydown`,t),()=>document.removeEventListener(`keydown`,t)});function C(e){if(!e)return;let t=document.querySelector(`[data-card-id="${e}"]`);t&&t.focus()}function te(e){let t=ma(U(v),a,e);t&&(F(s,t.columnIndex,!0),F(o,t.cardIndex,!0))}async function ne(e,t){if(e._writable===!1){ie(e.id),w();return}let r={status:t};if(t===`blocked`){let e=await U(n).prompt(`Blocked reason?`);if(!e){w();return}r.blocked_reason=e}try{await Mi(e.id,r),w(),re(e.id,t)}catch{w()}}function re(e,t){let n=a.find(e=>e.key===t);F(l,`Card ${e} moved to ${n?.label||t}`),setTimeout(()=>F(l,``),2e3)}function ie(e){F(l,`Card ${e} is read-only (managed by .bmad/sprint-status.yaml — use team:/qa: commands)`),setTimeout(()=>F(l,``),3e3),Di({kind:`info`,message:`${e} en lecture seule — gérée par .bmad/sprint-status.yaml (commandes team:/qa:)`,ttl:5e3})}function ae(e){F(l,`Card ${e.id}: ${e.title}. Status: ${e.status}. Priority: ${e.priority}. ${e.story_points} story points.`),setTimeout(()=>F(l,``),3e3)}async function oe(){F(i,document.activeElement,!0),F(c,!0),await or(),U(r)?.showModal()}function w(){F(c,!1),U(r)?.close(),U(i)&&(U(i).focus(),F(i,null))}function se(e){ae(e),Ea(e)}var ce=so(),le=R(ce),ue=L(le),de=L(ue);Vr(de,17,()=>Object.entries(Ii),Lr,(e,t)=>{var n=M(()=>h(U(t),2));let r=()=>U(n)[0],i=()=>U(n)[1];var a=Ya(),o=L(a),s=z(o,1,!0);k(a),B(e=>{X(a,`aria-pressed`,e),Y(o,`background: var(${i().cssVar??``})`),q(s,i().label)},[()=>U(f).includes(r())]),W(`click`,a,()=>p(r())),K(e,a)});var fe=z(de,2),pe=e=>{var t=Xa();W(`click`,t,()=>F(f,[],!0)),K(e,t)};J(fe,e=>{U(f).length>0&&e(pe)}),k(ue);var me=z(ue,4),he=L(me),ge=L(he);k(he),Vr(z(he,2),17,()=>U(b),Lr,(e,t)=>{var n=M(()=>h(U(t),2));let r=()=>U(n)[0],i=()=>U(n)[1];var a=Za(),o=L(a),s=z(o,1,!0);k(a),B(()=>{Y(o,`background: ${i()??``}`),q(s,r())}),K(e,a)}),k(me),k(le);var _e=z(le,2);Vr(_e,21,()=>a,Lr,(e,t)=>{let n=M(()=>`var(${Fi[U(t).key].cssVar})`);var r=io();let i;var a=L(r),o=L(a),s=z(o,2),c=L(s,!0);k(s);var l=z(s,2),f=L(l,!0);k(l);var p=z(l,2),m=L(p);k(p),k(a);var h=z(a,2);Vr(h,21,()=>U(v)[U(t).key],e=>e.id,(e,t)=>{var n=no();let r;var i=L(n),a=L(i),o=e=>{var n=Qa();B(e=>{Y(n,`background: ${e??``}`),X(n,`title`,U(t).epic_id)},[()=>Vi(U(t).epic_id)]),K(e,n)};J(a,e=>{U(t).epic_id&&e(o)});var s=z(a,2),c=L(s,!0);k(s);var l=z(s,2),d=e=>{K(e,$a())};J(l,e=>{U(t)._writable===!1&&e(d)});var f=z(l,4);pa(f,{get phase(){return U(t).tdd_phase}}),da(z(f,2),{get priority(){return U(t).priority}}),k(i);var p=z(i,2),m=L(p,!0);k(p);var h=z(p,2),g=L(h);Ka(g,{get value(){return U(t).story_points}});var _=z(g,2),v=e=>{var n=eo(),r=L(n);na(r,{name:`person`,cls:`ico`,size:13});var i=z(r,1,!0);k(n),B(()=>q(i,U(t).persona)),K(e,n)};J(_,e=>{U(t).persona&&e(v)});var y=z(_,4),b=e=>{var n=to();B(()=>X(n,`title`,U(t).blocked_reason)),K(e,n)};J(y,e=>{U(t).status===`blocked`&&U(t).blocked_reason&&e(b)});var S=z(y,2);Ja(S,{get tasks(){return U(t).tasks},get status(){return U(t).status}}),la(z(S,2),{get id(){return U(t).assigned_to},size:24}),k(h),k(n),B(e=>{r=ri(n,1,`card`,null,r,{"read-only":U(t)._writable===!1,dragging:U(u)===U(t).id}),Y(n,`--code-color: ${e??``}`),X(n,`draggable`,U(t)._writable!==!1),X(n,`aria-label`,`${U(t).id??``} ${U(t).title??``}${U(t)._writable===!1?` (lecture seule)`:``}`),X(n,`data-card-id`,U(t).id),q(c,U(t).id),q(m,U(t).title)},[()=>Hi(U(t),Q.codingScheme)]),gr(`dragstart`,n,e=>x(e,U(t).id)),gr(`focus`,n,()=>te(U(t).id)),W(`click`,n,()=>se(U(t))),K(e,n)},e=>{var n=Dr(),r=R(n),i=e=>{var n=ro(),r=L(n,!0);k(n),B(()=>q(r,U(t).emptyHint)),K(e,n)};J(r,e=>{U(t).emptyHint&&e(i)}),K(e,n)}),k(h),k(r),B(e=>{i=ri(r,1,`column`,null,i,{"drop-target":U(d)===U(t).key}),X(r,`aria-labelledby`,`col-${U(t).key??``}`),Y(o,`background: ${U(n)??``}; color: ${U(n)??``}`),X(s,`id`,`col-${U(t).key??``}`),q(c,U(t).label),X(l,`aria-label`,`${U(v)[U(t).key].length??``} cartes`),q(f,U(v)[U(t).key].length),q(m,`${e??``} pts`)},[()=>y(U(t).key)]),gr(`dragover`,r,e=>{S(e),U(u)&&F(d,U(t).key,!0)}),gr(`dragleave`,r,e=>{e.currentTarget.contains(e.relatedTarget)||F(d,null)}),gr(`drop`,r,e=>ee(e,U(t).key)),K(e,r)}),k(_e);var ve=z(_e,2);gi(Wa(ve,{}),e=>F(n,e,!0),()=>U(n));var ye=z(ve,4),be=L(ye,!0);k(ye);var xe=z(ye,4),Se=e=>{var t=oo(),n=L(t),i=z(L(n),2);Vr(i,17,()=>a,Lr,(e,t,n)=>{var r=ao(),i=L(r);k(r),B(()=>q(i,`${n+1}. ${U(t).label??``}`)),W(`click`,r,()=>{let e=a[U(s)],n=U(v)[e.key][U(o)];n&&ne(n,U(t).key)}),K(e,r)});var l=z(i,2);k(n),k(t),gi(t,e=>F(r,e),()=>U(r)),gr(`close`,t,()=>{U(c)&&w()}),W(`click`,l,()=>w()),K(e,t)};J(xe,e=>{U(c)&&e(Se)}),B(()=>{X(me,`aria-label`,`Cartes colorées par ${Q.codingScheme}`),q(ge,`Codé par ${Q.codingScheme??``} :`),q(be,U(l))}),K(e,ce),Ge()}_r([`click`]);function lo(e,t){let n=new Map;for(let e of t)n.set(e.id,{epic:e,stories:[]});let r=[];for(let t of e){let e=t.epic_id;e?(n.has(e)||n.set(e,{epic:{id:e,title:e,business_value:``,status:``},stories:[]}),n.get(e).stories.push(t)):r.push(t)}let i=[...n.values()].sort((e,t)=>e.epic.id.localeCompare(t.epic.id));for(let e of i)e.stories.sort((e,t)=>e.id.localeCompare(t.id));return r.sort((e,t)=>e.id.localeCompare(t.id)),{groups:i,orphans:r}}var uo=G(`<span class="ring-wrap"><svg aria-hidden="true"><circle fill="none" stroke="var(--bg-inset)"></circle><circle fill="none" stroke-linecap="round" style="transition: stroke-dashoffset .5s ease;"></circle></svg> <span class="ring-txt"> </span></span>`);function fo(e,t){let n=_i(t,`pct`,3,0),r=_i(t,`size`,3,40),i=_i(t,`sw`,3,4),a=_i(t,`color`,3,`var(--accent)`),o=M(()=>(r()-i())/2),s=M(()=>2*Math.PI*U(o)),c=M(()=>U(s)*(1-Math.max(0,Math.min(100,n()))/100));var l=uo(),u=L(l),d=L(u),f=z(d);k(u);var p=z(u,2),m=L(p,!0);k(p),k(l),B(e=>{Y(l,`width:${r()??``}px; height:${r()??``}px;`),X(u,`width`,r()),X(u,`height`,r()),X(d,`cx`,r()/2),X(d,`cy`,r()/2),X(d,`r`,U(o)),X(d,`stroke-width`,i()),X(f,`cx`,r()/2),X(f,`cy`,r()/2),X(f,`r`,U(o)),X(f,`stroke`,a()),X(f,`stroke-width`,i()),X(f,`stroke-dasharray`,U(s)),X(f,`stroke-dashoffset`,U(c)),X(f,`transform`,`rotate(-90 ${r()/2} ${r()/2})`),Y(p,`color:${a()??``};`),q(m,e)},[()=>Math.round(n())]),K(e,l)}var po=G(`<div class="empty">No epics or stories yet</div>`),mo=G(`<span class="ro-lock"><!></span>`),ho=G(`<button type="button" class="story-row"><span class="s-id mono"> </span> <span class="s-title"> </span> <!> <!> <!> <span class="s-status"><i></i> </span> <!></button>`),go=G(`<div class="epic"><button class="epic-head"><!> <span class="epic-bar"></span> <div><div style="display:flex; align-items:center; gap:9px"><span class="epic-id mono"> </span> <span class="epic-title"> </span></div> <div class="epic-meta" style="margin-top:3px"> </div></div> <div class="epic-prog"><span class="epic-meta"> </span> <span class="ring"><!></span></div></button> <div class="epic-stories"><div></div></div></div>`),_o=G(`<div class="epic"><button class="epic-head"><!> <span class="epic-bar" style="background: var(--warning)"></span> <div><div style="display:flex; align-items:center; gap:9px"><span class="epic-title">No Epic</span></div> <div class="epic-meta" style="margin-top:3px">Stories sans epic</div></div> <div class="epic-prog"><span class="epic-meta"> </span></div></button> <div class="epic-stories"><div></div></div></div>`),vo=G(`<!> <!>`,1),yo=G(`<div class="view-pad"><div class="backlog"><!></div></div>`);function bo(e,t){We(t,!0);let n=M(()=>lo(Z.stories,Z.epics)),r=P($t(new Set));function i(e){let t=new Set(U(r));t.has(e)?t.delete(e):t.add(e),F(r,t,!0)}function a(e){let t=e.filter(e=>e.status===`done`).length,n=e.length;return{done:t,total:n,percent:n>0?Math.round(t/n*100):0}}let o=e=>e.reduce((e,t)=>e+(t.story_points||0),0);var s=yo(),c=L(s),l=L(c),u=e=>{K(e,po())},d=e=>{var t=vo(),s=R(t);Vr(s,17,()=>U(n).groups,({epic:e,stories:t})=>e.id,(e,t)=>{let n=()=>U(t).epic,s=()=>U(t).stories,c=M(()=>a(s())),l=M(()=>U(r).has(n().id)),u=M(()=>Vi(n().id));var d=go(),f=L(d),p=L(f);na(p,{name:`chevron`,cls:`epic-chevron`,size:16});var m=z(p,2),h=z(m,2),g=L(h),_=L(g),v=L(_,!0);k(_);var y=z(_,2),b=L(y,!0);k(y),k(g);var x=z(g,2),S=L(x);k(x),k(h);var ee=z(h,2),C=L(ee),te=L(C);k(C);var ne=z(C,2);fo(L(ne),{get pct(){return U(c).percent},size:42,get color(){return U(u)}}),k(ne),k(ee),k(f);var re=z(f,2),ie=L(re);Vr(ie,21,s,e=>e.id,(e,t)=>{var n=ho(),r=L(n),i=L(r,!0);k(r);var a=z(r,2),o=L(a,!0);k(a);var s=z(a,2),c=e=>{var t=mo();na(L(t),{name:`lock`,size:12}),k(t),K(e,t)};J(s,e=>{U(t)._writable===!1&&e(c)});var l=z(s,2);da(l,{get priority(){return U(t).priority}});var u=z(l,2);Ka(u,{get value(){return U(t).story_points}});var d=z(u,2),f=L(d),p=z(f,1,!0);k(d),la(z(d,2),{get id(){return U(t).assigned_to},size:24}),k(n),B(()=>{q(i,U(t).id),q(o,U(t).title),Y(f,`background: var(${(Fi[U(t).status]?.cssVar||`--fg-faint`)??``})`),q(p,Fi[U(t).status]?.label||U(t).status)}),W(`click`,n,()=>Ea(U(t))),K(e,n)}),k(ie),k(re),k(d),B(e=>{X(d,`data-open`,U(l)),X(f,`aria-expanded`,U(l)),Y(m,`background: ${U(u)??``}`),q(v,n().id),q(b,n().title),q(S,`${n().business_value?n().business_value+` value · `:``}${n().status??``}`),q(te,`${s().length??``} stories · ${e??``} pts`)},[()=>o(s())]),W(`click`,f,()=>i(n().id)),K(e,d)});var c=z(s,2),l=e=>{let t=M(()=>U(r).has(`__orphans__`));var a=_o(),s=L(a),c=L(s);na(c,{name:`chevron`,cls:`epic-chevron`,size:16});var l=z(c,6),u=L(l),d=L(u);k(u),k(l),k(s);var f=z(s,2),p=L(f);Vr(p,21,()=>U(n).orphans,e=>e.id,(e,t)=>{var n=ho(),r=L(n),i=L(r,!0);k(r);var a=z(r,2),o=L(a,!0);k(a);var s=z(a,2),c=e=>{var t=mo();na(L(t),{name:`lock`,size:12}),k(t),K(e,t)};J(s,e=>{U(t)._writable===!1&&e(c)});var l=z(s,2);da(l,{get priority(){return U(t).priority}});var u=z(l,2);Ka(u,{get value(){return U(t).story_points}});var d=z(u,2),f=L(d),p=z(f,1,!0);k(d),la(z(d,2),{get id(){return U(t).assigned_to},size:24}),k(n),B(()=>{q(i,U(t).id),q(o,U(t).title),Y(f,`background: var(${(Fi[U(t).status]?.cssVar||`--fg-faint`)??``})`),q(p,Fi[U(t).status]?.label||U(t).status)}),W(`click`,n,()=>Ea(U(t))),K(e,n)}),k(p),k(f),k(a),B(e=>{X(a,`data-open`,U(t)),X(s,`aria-expanded`,U(t)),q(d,`${U(n).orphans.length??``} stories · ${e??``} pts`)},[()=>o(U(n).orphans)]),W(`click`,s,()=>i(`__orphans__`)),K(e,a)};J(c,e=>{U(n).orphans.length>0&&e(l)}),K(e,t)};J(l,e=>{Z.epics.length===0&&Z.stories.length===0?e(u):e(d,-1)}),k(c),k(s),K(e,s),Ge()}_r([`click`]);var xo=G(`<span class="nav-count mono"> </span>`),So=G(`<a class="nav-item"><!> <!></a>`),Co=G(`<span class="si-state active">active</span>`),wo=G(`<span class="crumb mono"> </span>`),To=G(`<div class="sprint-pill"><span class="lbl">Sprint</span> <span class="val"> </span></div>`),Eo=G(`<div class="empty"><strong>Serveur injoignable.</strong><br/> </div>`),Do=G(`<div class="empty">Chargement…</div>`),Oo=G(`<div role="status"><span><!></span> <div class="t-msg"> </div></div>`),ko=G(`<a href="#main" class="skip-link">Skip to main content</a> <div class="app-shell"><aside class="sidebar" aria-label="Navigation"><div class="brand"><div class="brand-mark mono">cc</div> <div><div class="brand-name">claude-craft</div> <div class="brand-sub">BMAD v6</div></div></div> <nav class="nav" aria-label="Vues"><div class="nav-label">Workspace</div> <!></nav> <div class="sidebar-foot"><div class="proj-card"><div class="row"><div class="pname"> </div> <!></div> <div class="pmeta"> </div> <div class="proj-bar"><span></span></div></div></div></aside> <div class="main"><header class="topbar"><h1> </h1> <!> <div class="topbar-spacer"></div> <div class="search" role="search"><!> <input placeholder="Rechercher des stories…" aria-label="Rechercher des stories"/> <kbd class="mono">⌘K</kbd></div> <!> <div aria-live="polite"><span class="dot"></span> </div> <button class="icon-btn" aria-label="Réglages d'affichage"><!></button></header> <main class="view" id="main"><!></main></div></div> <div class="toast-region" aria-live="polite" aria-relevant="additions"></div> <!> <!>`,1);function Ao(e,t){We(t,!0);let n=()=>wa(()=>import(`./BurndownView-BBl1LOfu.js`),__vite__mapDeps([0,1])),r=()=>wa(()=>import(`./DepsView-DXREli3v.js`),__vite__mapDeps([2,3])),i=()=>wa(()=>import(`./DocsView--bhcgCS3.js`),__vite__mapDeps([4,5,6,7])),a=()=>wa(()=>import(`./SprintsView-CLKf2BTm.js`),__vite__mapDeps([8,5,6,9])),o=P(null);vi(async()=>{Qi(),await Promise.all([Ai(),ji()]),Ni()}),yi(()=>Pi());let s=[{path:`/kanban`,label:`Board`,icon:`board`},{path:`/backlog`,label:`Backlog`,icon:`backlog`},{path:`/sprints`,label:`Sprints`,icon:`sprint`},{path:`/burndown`,label:`Burndown`,icon:`burndown`},{path:`/deps`,label:`Dependencies`,icon:`deps`},{path:`/docs`,label:`Docs`,icon:`docs`}],c={"/kanban":`Board`,"/backlog":`Backlog`,"/sprints":`Sprints`,"/burndown":`Burndown`,"/deps":`Dependencies`,"/docs":`Docs`},l=M(()=>`/`+(xi.parts[0]??`kanban`)),u=M(()=>c[U(l)]??`Board`),d=M(()=>$i(Z.stories,Z.sprint?.sprint_id)),f=M(()=>U(d).totalPoints),p=M(()=>U(d).donePoints),m=M(()=>U(d).pct),h=M(()=>Z.sprint?Z.sprint.name:null),g=M(()=>Z.sprint?.sprint_id?Z.stories.filter(e=>e.sprint_id===Z.sprint.sprint_id).length:Z.stories.length);var _=ko(),v=z(R(_),2),y=L(v),b=z(L(y),2);Vr(z(L(b),2),17,()=>s,Lr,(e,t)=>{var n=So(),r=L(n);na(r,{get name(){return U(t).icon},cls:`ico`,size:18});var i=z(r),a=z(i),o=e=>{var t=xo(),n=L(t,!0);k(t),B(()=>q(n,U(g))),K(e,t)};J(a,e=>{U(t).path===`/kanban`&&e(o)}),k(n),B(()=>{X(n,`href`,`#`+U(t).path),X(n,`aria-current`,U(l)===U(t).path?`page`:void 0),q(i,` ${U(t).label??``} `)}),K(e,n)}),k(b);var x=z(b,2),S=L(x),ee=L(S),C=L(ee),te=L(C,!0);k(C);var ne=z(C,2),re=e=>{K(e,Co())};J(ne,e=>{Z.sprint&&e(re)}),k(ee);var ie=z(ee,2),ae=L(ie);k(ie);var oe=z(ie,2),w=L(oe);k(oe),k(S),k(x),k(y);var se=z(y,2),ce=L(se),le=L(ce),ue=L(le,!0);k(le);var de=z(le,2),fe=e=>{var t=wo(),n=L(t);k(t),B(()=>q(n,`/ ${U(h)??``}`)),K(e,t)};J(de,e=>{U(h)&&e(fe)});var pe=z(de,4);na(L(pe),{name:`search`,size:15}),Le(4),k(pe);var me=z(pe,2),he=e=>{var t=To(),n=z(L(t),2),r=L(n,!0);k(n),k(t),B(()=>q(r,Z.sprint.sprint_id??Z.sprint.name)),K(e,t)};J(me,e=>{Z.sprint&&e(he)});var ge=z(me,2),_e=z(L(ge),1,!0);k(ge);var ve=z(ge,2);na(L(ve),{name:`settings`,size:18}),k(ve),k(ce);var ye=z(ce,2),be=L(ye),xe=e=>{var t=Eo(),n=z(L(t),2);k(t),B(()=>q(n,` ${Z.error??``}`)),K(e,t)},Se=e=>{co(e,{})},Ce=e=>{bo(e,{})},we=e=>{var t=Dr();Ir(R(t),a,e=>{K(e,Do())},(e,t)=>{let n=M(()=>U(t).default);var r=Dr();Jr(R(r),()=>U(n),(e,t)=>{t(e,{})}),K(e,r)}),K(e,t)},Te=e=>{var t=Dr();Ir(R(t),n,e=>{K(e,Do())},(e,t)=>{let n=M(()=>U(t).default);var r=Dr();Jr(R(r),()=>U(n),(e,t)=>{t(e,{})}),K(e,r)}),K(e,t)},Ee=e=>{var t=Dr();Ir(R(t),r,e=>{K(e,Do())},(e,t)=>{let n=M(()=>U(t).default);var r=Dr();Jr(R(r),()=>U(n),(e,t)=>{t(e,{})}),K(e,r)}),K(e,t)},De=e=>{var t=Dr();Ir(R(t),i,e=>{K(e,Do())},(e,t)=>{let n=M(()=>U(t).default);var r=Dr();Jr(R(r),()=>U(n),(e,t)=>{t(e,{})}),K(e,r)}),K(e,t)};J(be,e=>{Z.error&&Z.stories.length===0?e(xe):U(l)===`/kanban`?e(Se,1):U(l)===`/backlog`?e(Ce,2):U(l)===`/sprints`?e(we,3):U(l)===`/burndown`?e(Te,4):U(l)===`/deps`?e(Ee,5):U(l)===`/docs`&&e(De,6)}),k(ye),k(se),k(v);var Oe=z(v,2);Vr(Oe,21,()=>Z.toasts,e=>e.id,(e,t)=>{var n=Oo(),r=L(n),i=L(r);{let e=M(()=>U(t).kind===`error`?`warn`:U(t).kind===`success`?`check`:`arrowR`);na(i,{get name(){return U(e)},size:16})}k(r);var a=z(r,2),o=L(a,!0);k(a),k(n),B(()=>{ri(n,1,`toast ${U(t).kind??``}`),ri(r,1,`t-ico ${U(t).kind??``}`),q(o,U(t).message)}),W(`click`,n,()=>Oi(U(t).id)),K(e,n)}),k(Oe);var T=z(Oe,2);gi(oa(T,{}),e=>F(o,e,!0),()=>U(o)),Ha(z(T,2),{}),B(()=>{X(v,`data-density`,Q.density),q(te,U(h)??`Sprint`),q(ae,`${U(p)??``}/${U(f)??``} pts`),Y(w,`width: ${U(m)??``}%`),q(ue,U(u)),ri(ge,1,`live ${Z.connected?`live-on`:`live-off`}`),X(ge,`title`,Z.connected?`Flux SSE connecté`:`Flux SSE déconnecté`),q(_e,Z.connected?`Live`:`Offline`)}),W(`click`,ve,()=>U(o)?.open()),K(e,_),Ge()}_r([`click`]),Or(Ao,{target:document.getElementById(`app`)});export{M as A,_n as C,$t as D,z as E,We as M,Le as N,F as O,k as P,B as S,R as T,Dr as _,Si as a,W as b,X as c,qr as d,Vr as f,K as g,q as h,Z as i,Ge as j,P as k,Y as l,J as m,na as n,xi as o,Lr as p,Fi as r,gi as s,wa as t,ri as u,G as v,L as w,U as x,_r as y};
@@ -7,7 +7,7 @@ function e(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedanti
7
7
  `),depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:`hr`,raw:H(t[0],`
8
8
  `)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=H(t[0],`
9
9
  `).split(`
10
- `),n=``,r=``,i=[];for(;e.length>0;){let t=!1,a=[],o;for(o=0;o<e.length;o++)if(this.rules.other.blockquoteStart.test(e[o]))a.push(e[o]),t=!0;else if(!t)a.push(e[o]);else break;e=e.slice(o);let s=a.join(`
10
+ `),n=``,r=``,i=[];for(;e.length>0;){let t=!1,a=[],o=0;for(;o<e.length;o++)if(this.rules.other.blockquoteStart.test(e[o]))a.push(e[o]),t=!0;else if(!t)a.push(e[o]);else break;e=e.slice(o);let s=a.join(`
11
11
  `),c=s.replace(this.rules.other.blockquoteSetextReplace,`
12
12
  $1`).replace(this.rules.other.blockquoteSetextReplace2,``);n=n?`${n}
13
13
  ${s}`:s,r=r?`${r}
@@ -16,7 +16,7 @@ ${c}`:c;let l=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTo
16
16
  `),o=this.blockquote(a);i[i.length-1]=o,n=n.substring(0,n.length-t.raw.length)+o.raw,r=r.substring(0,r.length-t.text.length)+o.text;break}if(u?.type===`list`){let t=u,a=t.raw+`
17
17
  `+e.join(`
18
18
  `),o=this.list(a);i[i.length-1]=o,n=n.substring(0,n.length-u.raw.length)+o.raw,r=r.substring(0,r.length-t.raw.length)+o.raw,e=a.substring(i.at(-1).raw.length).split(`
19
- `);continue}}return{type:`blockquote`,raw:n,tokens:i,text:r}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),r=n.length>1,i={type:`list`,raw:``,ordered:r,start:r?+n.slice(0,-1):``,loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:`[*+-]`);let a=this.rules.other.listItemRegex(n),o=!1;for(;e;){let n=!1,r=``,s=``;if(!(t=a.exec(e))||this.rules.block.hr.test(e))break;r=t[0],e=e.substring(r.length);let c=Ne(t[2].split(`
19
+ `)}}return{type:`blockquote`,raw:n,tokens:i,text:r}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),r=n.length>1,i={type:`list`,raw:``,ordered:r,start:r?+n.slice(0,-1):``,loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:`[*+-]`);let a=this.rules.other.listItemRegex(n),o=!1;for(;e;){let n=!1,r=``,s=``;if(!(t=a.exec(e))||this.rules.block.hr.test(e))break;r=t[0],e=e.substring(r.length);let c=Ne(t[2].split(`
20
20
  `,1)[0],t[1].length),l=e.split(`
21
21
  `,1)[0],u=!c.trim(),d=0;if(this.options.pedantic?(d=2,s=c.trimStart()):u?d=t[1].length+1:(d=c.search(this.rules.other.nonSpaceChar),d=d>4?1:d,s=c.slice(d),d+=t[1].length),u&&this.rules.other.blankLine.test(l)&&(r+=l+`
22
22
  `,e=e.substring(l.length+1),n=!0),!n){let t=this.rules.other.nextBulletRegex(d),n=this.rules.other.hrRegex(d),i=this.rules.other.fencesBeginRegex(d),a=this.rules.other.headingBeginRegex(d),o=this.rules.other.htmlBeginRegex(d),f=this.rules.other.blockquoteBeginRegex(d);for(;e;){let p=e.split(`
@@ -33,16 +33,16 @@ ${c}`:c;let l=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTo
33
33
  `:t.push(i);continue}if(i=this.tokenizer.code(e)){e=e.substring(i.raw.length);let n=t.at(-1);n?.type===`paragraph`||n?.type===`text`?(n.raw+=(n.raw.endsWith(`
34
34
  `)?``:`
35
35
  `)+i.raw,n.text+=`
36
- `+i.text,this.inlineQueue.at(-1).src=n.text):t.push(i);continue}if(i=this.tokenizer.fences(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.heading(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.hr(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.blockquote(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.list(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.html(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.def(e)){e=e.substring(i.raw.length);let n=t.at(-1);n?.type===`paragraph`||n?.type===`text`?(n.raw+=(n.raw.endsWith(`
36
+ `+i.text,this.inlineQueue.at(-1).src=n.text):t.push(i);continue}if((i=this.tokenizer.fences(e))||(i=this.tokenizer.heading(e))||(i=this.tokenizer.hr(e))||(i=this.tokenizer.blockquote(e))||(i=this.tokenizer.list(e))||(i=this.tokenizer.html(e))){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.def(e)){e=e.substring(i.raw.length);let n=t.at(-1);n?.type===`paragraph`||n?.type===`text`?(n.raw+=(n.raw.endsWith(`
37
37
  `)?``:`
38
38
  `)+i.raw,n.text+=`
39
- `+i.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title},t.push(i));continue}if(i=this.tokenizer.table(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.lheading(e)){e=e.substring(i.raw.length),t.push(i);continue}let a=e;if(this.options.extensions?.startBlock){let t=1/0,n=e.slice(1),r;this.options.extensions.startBlock.forEach(e=>{r=e.call({lexer:this},n),typeof r==`number`&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(a=e.substring(0,t+1))}if(this.state.top&&(i=this.tokenizer.paragraph(a))){let r=t.at(-1);n&&r?.type===`paragraph`?(r.raw+=(r.raw.endsWith(`
39
+ `+i.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title},t.push(i));continue}if((i=this.tokenizer.table(e))||(i=this.tokenizer.lheading(e))){e=e.substring(i.raw.length),t.push(i);continue}let a=e;if(this.options.extensions?.startBlock){let t=1/0,n=e.slice(1),r;this.options.extensions.startBlock.forEach(e=>{r=e.call({lexer:this},n),typeof r==`number`&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(a=e.substring(0,t+1))}if(this.state.top&&(i=this.tokenizer.paragraph(a))){let r=t.at(-1);n&&r?.type===`paragraph`?(r.raw+=(r.raw.endsWith(`
40
40
  `)?``:`
41
41
  `)+i.raw,r.text+=`
42
- `+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=r.text):t.push(i),n=a.length!==e.length,e=e.substring(i.raw.length);continue}if(i=this.tokenizer.text(e)){e=e.substring(i.raw.length);let n=t.at(-1);n?.type===`text`?(n.raw+=(n.raw.endsWith(`
42
+ `+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=r.text):t.push(i),n=a.length!==e.length,e=e.substring(i.raw.length)}else if(i=this.tokenizer.text(e)){e=e.substring(i.raw.length);let n=t.at(-1);n?.type===`text`?(n.raw+=(n.raw.endsWith(`
43
43
  `)?``:`
44
44
  `)+i.raw,n.text+=`
45
- `+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(i);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){this.tokenizer.lexer=this;let n=e,r=null;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;(r=this.tokenizer.rules.inline.reflinkSearch.exec(n))!==null;)e.includes(r[0].slice(r[0].lastIndexOf(`[`)+1,-1))&&(n=n.slice(0,r.index)+`[`+`a`.repeat(r[0].length-2)+`]`+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(r=this.tokenizer.rules.inline.anyPunctuation.exec(n))!==null;)n=n.slice(0,r.index)+`++`+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let i;for(;(r=this.tokenizer.rules.inline.blockSkip.exec(n))!==null;)i=r[2]?r[2].length:0,n=n.slice(0,r.index+i)+`[`+`a`.repeat(r[0].length-i-2)+`]`+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);n=this.options.hooks?.emStrongMask?.call({lexer:this},n)??n;let a=!1,o=``,s=1/0;for(;e;){if(e.length<s)s=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}a||(o=``),a=!1;let r;if(this.options.extensions?.inline?.some(n=>(r=n.call({lexer:this},e,t))?(e=e.substring(r.raw.length),t.push(r),!0):!1))continue;if(r=this.tokenizer.escape(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.tag(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.link(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(r.raw.length);let n=t.at(-1);r.type===`text`&&n?.type===`text`?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(r=this.tokenizer.emStrong(e,n,o)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.codespan(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.br(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.del(e,n,o)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.autolink(e)){e=e.substring(r.raw.length),t.push(r);continue}if(!this.state.inLink&&(r=this.tokenizer.url(e))){e=e.substring(r.raw.length),t.push(r);continue}let i=e;if(this.options.extensions?.startInline){let t=1/0,n=e.slice(1),r;this.options.extensions.startInline.forEach(e=>{r=e.call({lexer:this},n),typeof r==`number`&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(i=e.substring(0,t+1))}if(r=this.tokenizer.inlineText(i)){e=e.substring(r.raw.length),r.raw.slice(-1)!==`_`&&(o=r.raw.slice(-1)),a=!0;let n=t.at(-1);n?.type===`text`?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return t}infiniteLoopError(e){let t=`Infinite loop on byte: `+e;if(this.options.silent)console.error(t);else throw Error(t)}},q=class{options;parser;constructor(e){this.options=e||t}space(e){return``}code({text:e,lang:t,escaped:n}){let r=(t||``).match(s.notSpaceStart)?.[0],i=e.replace(s.endingNewline,``)+`
45
+ `+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(i)}else if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){this.tokenizer.lexer=this;let n=e,r=null;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;(r=this.tokenizer.rules.inline.reflinkSearch.exec(n))!==null;)e.includes(r[0].slice(r[0].lastIndexOf(`[`)+1,-1))&&(n=n.slice(0,r.index)+`[`+`a`.repeat(r[0].length-2)+`]`+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(r=this.tokenizer.rules.inline.anyPunctuation.exec(n))!==null;)n=n.slice(0,r.index)+`++`+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let i;for(;(r=this.tokenizer.rules.inline.blockSkip.exec(n))!==null;)i=r[2]?r[2].length:0,n=n.slice(0,r.index+i)+`[`+`a`.repeat(r[0].length-i-2)+`]`+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);n=this.options.hooks?.emStrongMask?.call({lexer:this},n)??n;let a=!1,o=``,s=1/0;for(;e;){if(e.length<s)s=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}a||(o=``),a=!1;let r;if(this.options.extensions?.inline?.some(n=>(r=n.call({lexer:this},e,t))?(e=e.substring(r.raw.length),t.push(r),!0):!1))continue;if((r=this.tokenizer.escape(e))||(r=this.tokenizer.tag(e))||(r=this.tokenizer.link(e))){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(r.raw.length);let n=t.at(-1);r.type===`text`&&n?.type===`text`?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if((r=this.tokenizer.emStrong(e,n,o))||(r=this.tokenizer.codespan(e))||(r=this.tokenizer.br(e))||(r=this.tokenizer.del(e,n,o))||(r=this.tokenizer.autolink(e))||!this.state.inLink&&(r=this.tokenizer.url(e))){e=e.substring(r.raw.length),t.push(r);continue}let i=e;if(this.options.extensions?.startInline){let t=1/0,n=e.slice(1),r;this.options.extensions.startInline.forEach(e=>{r=e.call({lexer:this},n),typeof r==`number`&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(i=e.substring(0,t+1))}if(r=this.tokenizer.inlineText(i)){e=e.substring(r.raw.length),r.raw.slice(-1)!==`_`&&(o=r.raw.slice(-1)),a=!0;let n=t.at(-1);n?.type===`text`?(n.raw+=r.raw,n.text+=r.text):t.push(r)}else if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return t}infiniteLoopError(e){let t=`Infinite loop on byte: `+e;if(this.options.silent)console.error(t);else throw Error(t)}},q=class{options;parser;constructor(e){this.options=e||t}space(e){return``}code({text:e,lang:t,escaped:n}){let r=(t||``).match(s.notSpaceStart)?.[0],i=e.replace(s.endingNewline,``)+`
46
46
  `;return r?`<pre><code class="language-`+z(r)+`">`+(n?i:z(i,!0))+`</code></pre>
47
47
  `:`<pre><code>`+(n?i:z(i,!0))+`</code></pre>
48
48
  `}blockquote({tokens:e}){return`<blockquote>
@@ -0,0 +1,3 @@
1
+ function e(e,t){this.v=e,this.k=t}function t(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function n(e){if(Array.isArray(e))return e}function r(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function i(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
2
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function a(e,t){return n(e)||r(e,t)||o(e,t)||i()}function o(e,n){if(e){if(typeof e==`string`)return t(e,n);var r={}.toString.call(e).slice(8,-1);return r===`Object`&&e.constructor&&(r=e.constructor.name),r===`Map`||r===`Set`?Array.from(e):r===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,n):void 0}}function s(t){var n,r;function i(n,r){try{var o=t[n](r),s=o.value,c=s instanceof e;Promise.resolve(c?s.v:s).then(function(e){if(c){var r=n===`return`&&s.k?n:`next`;if(!s.k||e.done)return i(r,e);e=t[r](e).value}a(!!o.done,e)},function(e){i(`throw`,e)})}catch(e){a(2,e)}}function a(e,t){e===2?n.reject(t):n.resolve({value:t,done:e}),(n=n.next)?i(n.key,n.arg):r=null}this._invoke=function(e,t){return new Promise(function(a,o){var s={key:e,arg:t,resolve:a,reject:o,next:null};r?r=r.next=s:(n=r=s,i(e,t))})},typeof t.return!=`function`&&(this.return=void 0)}s.prototype[typeof Symbol==`function`&&Symbol.asyncIterator||`@@asyncIterator`]=function(){return this},s.prototype.next=function(e){return this._invoke(`next`,e)},s.prototype.throw=function(e){return this._invoke(`throw`,e)},s.prototype.return=function(e){return this._invoke(`return`,e)};var c=Object.entries,l=Object.setPrototypeOf,u=Object.isFrozen,d=Object.getPrototypeOf,f=Object.getOwnPropertyDescriptor,p=Object.freeze,m=Object.seal,h=Object.create,ee=typeof Reflect<`u`&&Reflect,te=ee.apply,ne=ee.construct;p||=function(e){return e},m||=function(e){return e},te||=function(e,t){var n=[...arguments].slice(2);return e.apply(t,n)},ne||=function(e){return new e(...[...arguments].slice(1))};var g=T(Array.prototype.forEach);Array.prototype.indexOf;var re=T(Array.prototype.lastIndexOf),ie=T(Array.prototype.pop),ae=T(Array.prototype.push),oe=T(Array.prototype.slice),se=T(Array.prototype.splice),_=Array.isArray,ce=E(Set),le=T(Set.prototype.add),ue=T(Set.prototype.has),v=T(String.prototype.toLowerCase),de=T(String.prototype.toString),fe=T(String.prototype.match),pe=T(String.prototype.replace),me=T(String.prototype.indexOf),he=T(String.prototype.trim),ge=T(Number.prototype.toString),y=T(Boolean.prototype.toString),b=typeof BigInt>`u`?null:T(BigInt.prototype.toString),_e=typeof Symbol>`u`?null:T(Symbol.prototype.toString),x=T(Object.prototype.hasOwnProperty),S=T(Object.prototype.toString),C=T(RegExp.prototype.test),w=E(TypeError);function T(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);var n=[...arguments].slice(1);return te(e,t,n)}}function E(e){return function(){return ne(e,[...arguments])}}function D(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:v;if(l&&l(e,null),!_(t))return e;let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&(u(t)||(t[r]=e),i=e)}e[i]=!0}return e}function ve(e){for(let t=0;t<e.length;t++)x(e,t)||(e[t]=null);return e}function O(e){let t=h(null);for(let r of c(e)){var n=a(r,2);let i=n[0],o=n[1];x(e,i)&&(t[i]=_(o)?ve(o):o&&typeof o==`object`&&o.constructor===Object?O(o):o)}return t}function ye(e){switch(typeof e){case`string`:return e;case`number`:return ge(e);case`boolean`:return y(e);case`bigint`:return b?b(e):`0`;case`symbol`:return _e?_e(e):`Symbol()`;case`undefined`:return S(e);case`function`:case`object`:{if(e===null)return S(e);let t=e,n=k(t,`toString`);if(typeof n==`function`){let e=n(t);return typeof e==`string`?e:S(e)}return S(e)}default:return S(e)}}function k(e,t){for(;e!==null;){let n=f(e,t);if(n){if(n.get)return T(n.get);if(typeof n.value==`function`)return T(n.value)}e=d(e)}function n(){return null}return n}function be(e,t){for(;e!==null;){let n=f(e,t);if(n)return n.get?T(n.get):null;e=d(e)}return null}function xe(e){try{return C(e,``),!0}catch{return!1}}var Se=p(`a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr`.split(`.`)),Ce=p(`svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern`.split(`.`)),we=p([`feBlend`,`feColorMatrix`,`feComponentTransfer`,`feComposite`,`feConvolveMatrix`,`feDiffuseLighting`,`feDisplacementMap`,`feDistantLight`,`feDropShadow`,`feFlood`,`feFuncA`,`feFuncB`,`feFuncG`,`feFuncR`,`feGaussianBlur`,`feImage`,`feMerge`,`feMergeNode`,`feMorphology`,`feOffset`,`fePointLight`,`feSpecularLighting`,`feSpotLight`,`feTile`,`feTurbulence`]),Te=p([`animate`,`color-profile`,`cursor`,`discard`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`foreignobject`,`hatch`,`hatchpath`,`mesh`,`meshgradient`,`meshpatch`,`meshrow`,`missing-glyph`,`script`,`set`,`solidcolor`,`unknown`,`use`]),Ee=p(`math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts`.split(`.`)),De=p([`maction`,`maligngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),Oe=p([`#text`]),ke=p(`accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns`.split(`.`)),Ae=p(`accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dominant-baseline.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.pointer-events.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-orientation.text-rendering.textlength.type.u1.u2.unicode.values.vector-effect.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan`.split(`.`)),je=p(`accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns`.split(`.`)),Me=p([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),Ne=m(/{{[\w\W]*|^[\w\W]*}}/g),Pe=m(/<%[\w\W]*|^[\w\W]*%>/g),Fe=m(/\${[\w\W]*/g),Ie=m(/^data-[\-\w.\u00B7-\uFFFF]+$/),Le=m(/^aria-[\-\w]+$/),Re=m(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ze=m(/^(?:\w+script|data):/i),Be=m(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Ve=m(/^html$/i),He=m(/^[a-z][.\w]*(-[.\w]+)+$/i),Ue=m(/<[/\w!]/g),We=m(/<[/\w]/g),Ge=m(/<\/no(script|embed|frames)/i),Ke=m(/\/>/i),A={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},qe=p(D({},[`style`,`script`,`xmp`,`iframe`,`noembed`,`noframes`,`plaintext`,`noscript`])),Je=function(){return typeof window>`u`?null:window},Ye=function(e,t){if(typeof e!=`object`||typeof e.createPolicy!=`function`)return null;let n=null,r=`data-tt-policy-suffix`;t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i=`dompurify`+(n?`#`+n:``);try{return e.createPolicy(i,{createHTML(e){return e},createScriptURL(e){return e}})}catch{return console.warn(`TrustedTypes policy `+i+` could not be created.`),null}},Xe=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},j=function(e,t,n,r){return x(e,t)&&_(e[t])?D(r.base?O(r.base):{},e[t],r.transform):n},Ze=function(e,t,n){let r=x(e,t)?e[t]:void 0;return r&&typeof r==`object`?O(r):n()};function Qe(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Je(),t=e=>Qe(e);if(t.version=`3.4.17`,t.removed=[],!e||!e.document||e.document.nodeType!==A.document||!e.Element)return t.isSupported=!1,t;let n=e.document,r=n,i=r.currentScript;e.DocumentFragment;let a=e.HTMLTemplateElement,o=e.Node,s=e.Element,l=e.NodeFilter;e.NamedNodeMap===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;let u=e.DOMParser,d=e.trustedTypes,f=s.prototype,ee=k(f,`cloneNode`),te=k(f,`remove`),ne=k(f,`removeAttributeNode`),ge=k(f,`nextSibling`),y=k(f,`childNodes`),b=k(f,`parentNode`),_e=k(f,`shadowRoot`),S=k(f,`attributes`),T=o&&o.prototype?k(o.prototype,`nodeType`):null,E=o&&o.prototype?k(o.prototype,`nodeName`):null,ve=o&&o.prototype?k(o.prototype,`ownerDocument`):null,M=function(e){return T?T(e):e.nodeType},$e=function(e){return E?E(e):e.nodeName},et=be(f,`namespaceURI`),tt=function(e){return et?et(e):e.namespaceURI};if(typeof a==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let N,P=``,nt,rt=!1,it=0,at=function(){if(it>0)throw w(`A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.`)},F=function(e){at(),it++;try{return N.createHTML(e)}finally{it--}},ot=function(e){at(),it++;try{return N.createScriptURL(e)}finally{it--}},st=function(){return rt||=(nt=Ye(d,i),!0),nt},ct=n,lt=ct.implementation,ut=ct.createNodeIterator,dt=ct.createDocumentFragment,ft=ct.getElementsByTagName,pt=r.importNode,I=Xe();t.isSupported=typeof c==`function`&&typeof b==`function`&&lt&&lt.createHTMLDocument!==void 0;let mt=Ne,ht=Pe,gt=Fe,_t=Ie,vt=Le,yt=ze,bt=Be,xt=He,St=Re,L=null,Ct=D({},[...Se,...Ce,...we,...Ee,...Oe]),R=null,wt=D({},[...ke,...Ae,...je,...Me]),z=Object.seal(h(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Tt=null,Et=null,B=Object.seal(h(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),Dt=!0,Ot=!0,kt=!1,At=!0,V=!1,H=!0,U=!1,jt=!1,Mt=null,Nt=null,Pt=!1,W=!1,Ft=!1,It=!1,Lt=!0,Rt=!1,zt=`user-content-`,Bt=!0,Vt=!1,G=null,K={},q=null,Ht=D({},`annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp`.split(`.`)),Ut=null,Wt=D({},[`audio`,`video`,`img`,`source`,`image`,`track`]),Gt=null,Kt=D({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),qt=`http://www.w3.org/1998/Math/MathML`,Jt=`http://www.w3.org/2000/svg`,J=`http://www.w3.org/1999/xhtml`,Y=J,Yt=!1,Xt=null,Zt=D({},[qt,Jt,J],de),Qt=p([`mi`,`mo`,`mn`,`ms`,`mtext`]),$t=D({},Qt),en=p([`annotation-xml`]),tn=D({},en),nn=D({},[`title`,`style`,`font`,`a`,`script`]),rn=null,an=[`application/xhtml+xml`,`text/html`],X=null,on=null,sn=n.createElement(`form`),cn=function(e){return e instanceof RegExp||e instanceof Function},ln=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(on&&on===e)return;e&&typeof e==`object`||(e={}),e=O(e),rn=an.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,X=rn===`application/xhtml+xml`?de:v,L=j(e,`ALLOWED_TAGS`,Ct,{transform:X}),R=j(e,`ALLOWED_ATTR`,wt,{transform:X}),Xt=j(e,`ALLOWED_NAMESPACES`,Zt,{transform:de}),Gt=j(e,`ADD_URI_SAFE_ATTR`,Kt,{transform:X,base:Kt}),Ut=j(e,`ADD_DATA_URI_TAGS`,Wt,{transform:X,base:Wt}),q=j(e,`FORBID_CONTENTS`,Ht,{transform:X}),Tt=j(e,`FORBID_TAGS`,O({}),{transform:X}),Et=j(e,`FORBID_ATTR`,O({}),{transform:X}),K=x(e,`USE_PROFILES`)?e.USE_PROFILES&&typeof e.USE_PROFILES==`object`?O(e.USE_PROFILES):e.USE_PROFILES:!1,Dt=e.ALLOW_ARIA_ATTR!==!1,Ot=e.ALLOW_DATA_ATTR!==!1,kt=e.ALLOW_UNKNOWN_PROTOCOLS||!1,At=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,V=e.SAFE_FOR_TEMPLATES||!1,H=e.SAFE_FOR_XML!==!1,U=e.WHOLE_DOCUMENT||!1,W=e.RETURN_DOM||!1,Ft=e.RETURN_DOM_FRAGMENT||!1,It=e.RETURN_TRUSTED_TYPE||!1,Pt=e.FORCE_BODY||!1,Lt=e.SANITIZE_DOM!==!1,Rt=e.SANITIZE_NAMED_PROPS||!1,Bt=e.KEEP_CONTENT!==!1,Vt=e.IN_PLACE||!1,St=xe(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:Re,Y=typeof e.NAMESPACE==`string`?e.NAMESPACE:J,$t=Ze(e,`MATHML_TEXT_INTEGRATION_POINTS`,()=>D({},Qt)),tn=Ze(e,`HTML_INTEGRATION_POINTS`,()=>D({},en));let t=Ze(e,`CUSTOM_ELEMENT_HANDLING`,()=>h(null));if(z=h(null),x(t,`tagNameCheck`)&&cn(t.tagNameCheck)&&(z.tagNameCheck=t.tagNameCheck),x(t,`attributeNameCheck`)&&cn(t.attributeNameCheck)&&(z.attributeNameCheck=t.attributeNameCheck),x(t,`allowCustomizedBuiltInElements`)&&typeof t.allowCustomizedBuiltInElements==`boolean`&&(z.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),m(z),V&&(Ot=!1),Ft&&(W=!0),K&&(L=D({},Oe),R=h(null),K.html===!0&&(D(L,Se),D(R,ke)),K.svg===!0&&(D(L,Ce),D(R,Ae),D(R,Me)),K.svgFilters===!0&&(D(L,we),D(R,Ae),D(R,Me)),K.mathMl===!0&&(D(L,Ee),D(R,je),D(R,Me))),B.tagCheck=null,B.attributeCheck=null,x(e,`ADD_TAGS`)&&(typeof e.ADD_TAGS==`function`?B.tagCheck=e.ADD_TAGS:_(e.ADD_TAGS)&&(L===Ct&&(L=O(L)),D(L,e.ADD_TAGS,X))),x(e,`ADD_ATTR`)&&(typeof e.ADD_ATTR==`function`?B.attributeCheck=e.ADD_ATTR:_(e.ADD_ATTR)&&(R===wt&&(R=O(R)),D(R,e.ADD_ATTR,X))),x(e,`ADD_FORBID_CONTENTS`)&&_(e.ADD_FORBID_CONTENTS)&&(q===Ht&&(q=O(q)),D(q,e.ADD_FORBID_CONTENTS,X)),Bt&&(L[`#text`]=!0),U&&D(L,[`html`,`head`,`body`]),L.table&&(D(L,[`tbody`]),delete Tt.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw w(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw w(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);let t=N;N=e.TRUSTED_TYPES_POLICY;try{P=F(``)}catch(e){throw N=t,e}}else e.TRUSTED_TYPES_POLICY===null?(N=void 0,P=``):(N===void 0&&(N=st()),N&&typeof P==`string`&&(P=F(``)));p&&p(e),on=e},un=D({},[...Ce,...we,...Te]),dn=D({},[...Ee,...De]),fn=function(e,t,n){return t.namespaceURI===J?e===`svg`:t.namespaceURI===qt?e===`svg`&&(n===`annotation-xml`||$t[n]):!!un[e]},pn=function(e,t,n){return t.namespaceURI===J?e===`math`:t.namespaceURI===Jt?e===`math`&&tn[n]:!!dn[e]},mn=function(e,t,n){return t.namespaceURI===Jt&&!tn[n]||t.namespaceURI===qt&&!$t[n]?!1:!dn[e]&&(nn[e]||!un[e])},hn=function(e){let t=tt(e),n=v($e(e)),r=b(e),i,a;return r&&M(r)===A.element?(i={namespaceURI:tt(r)},a=v($e(r))):(i={namespaceURI:Y},a=`template`),Xt[t]?t===Jt?fn(n,i,a):t===qt?pn(n,i,a):t===J?mn(n,i,a):!!(rn===`application/xhtml+xml`&&Xt[t]):!1},Z=function(e){ae(t.removed,{element:e});try{b(e).removeChild(e)}catch{if(te(e),!b(e))throw w(`a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place`)}},gn=function(e,t,n){try{ne(e,t)}catch{try{e.removeAttribute(n)}catch{}}},_n=function(e){xn(e);let t=y(e);t&&g(oe(t),e=>{try{te(e)}catch{}});let n=M(e)===A.element?S(e):null;if(n)for(let t=n.length-1;t>=0;--t){let r=n[t],i=r&&r.name;typeof i==`string`&&gn(e,r,i)}},vn=function(e,n,r){if(!r)try{r=n.getAttributeNode(e)}catch{r=null}ae(t.removed,{attribute:r||null,from:n});try{r?ne(n,r):n.removeAttribute(e)}catch{try{n.removeAttribute(e)}catch{}}if(e===`is`){if(W||Ft)try{Z(n)}catch{}else try{n.setAttribute(e,``)}catch{}}},yn=function(e){let t=S(e);if(t)for(let n=t.length-1;n>=0;--n){let r=t[n],i=r&&r.name;typeof i!=`string`||R[X(i)]||gn(e,r,i)}},bn=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0&&arguments[2],r=[e];for(;r.length>0;){let e=r.pop();if(t(e)===!1)continue;if(n&&M(e)===A.element){let t=_e(e);Q(t)&&r.push(t)}let i=y(e);if(i)for(let e=i.length-1;e>=0;--e)r.push(i[e])}},xn=function(e){bn(e,e=>{M(e)===A.element&&yn(e)})},Sn=function(e){let t=[];return bn(e,e=>{t.push(e)},!0),t},Cn=function(e,t){let n=ce();g(Sn(e),e=>{M(e)===A.element&&le(n,e)}),g(t,e=>{M(e)===A.element&&!ue(n,e)&&yn(e)})},wn=function(e,n){let r=!1;return g(t.removed,t=>{t.element&&(r||=t.element===e,xn(t.element))}),Cn(e,n),r},Tn=function(e,t){let n=G,r=null,i=()=>(r||(r=ce(),g(t,e=>{le(r,e)})),r);for(let t=0;;t++){let r=Sn(e),a=[e],o=!1;if(g(r,e=>{M(e)===A.documentFragment?ae(a,e):!o&&!ue(n,e)&&(o=ue(i(),e))}),!o)return;if(t>=8)throw w(`the tree kept changing during in-place sanitization; refusing to return it`);g(a,(t,n)=>{En(t,n>0,e,i())})}},En=function(e,t,n,r){let i=jn(e),a;for(;a=i.nextNode();)ue(r,a)&&!ue(G,a)&&(t&&$(I.uponSanitizeShadowNode,a,null),Hn(a,n),Yn(a,n),Q(a.content)&&Xn(a.content))},Dn=function(e){G&&le(G,e)},On=function(e,t){return H?e===`patchsrc`||e===`for`&&t!==`label`&&t!==`output`:!1},kn=function(e){H&&bn(e,e=>{let t=M(e);if(t===A.processingInstruction||t===A.comment&&C(We,e.data)){try{te(e)}catch{}return!1}if(t===A.element){let t=e,n=X($e(e));try{t.hasAttribute&&t.hasAttribute(`patchsrc`)&&t.removeAttribute(`patchsrc`),t.hasAttribute&&t.hasAttribute(`for`)&&On(`for`,n)&&t.removeAttribute(`for`)}catch{}}return!0})},An=function(e){let t=null,r=null;if(Pt)e=`<remove></remove>`+e;else{let t=fe(e,/^[\r\n\t ]+/);r=t&&t[0]}rn===`application/xhtml+xml`&&Y===J&&(e=`<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>`+e+`</body></html>`);let i=N?F(e):e;if(Y===J)try{t=new u().parseFromString(i,rn)}catch{}if(!t||!t.documentElement){t=lt.createDocument(Y,`template`,null);try{t.documentElement.innerHTML=Yt?P:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),Y===J?ft.call(t,U?`html`:`body`)[0]:U?t.documentElement:a},jn=function(e){let t=ve?ve(e):e.ownerDocument;return ut.call(t||e,e,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null)},Mn=function(e){return e=pe(e,mt,` `),e=pe(e,ht,` `),e=pe(e,gt,` `),e},Nn=function(e){Pn(e);let t=e.querySelectorAll?.call(e,`template`);t&&g(t,e=>{Q(e.content)&&Nn(e.content)})},Pn=function(e){e.normalize();let t=ve?ve(e):e.ownerDocument,n=ut.call(t||e,e,l.SHOW_TEXT|l.SHOW_COMMENT|l.SHOW_CDATA_SECTION|l.SHOW_PROCESSING_INSTRUCTION,null),r=n.nextNode();for(;r;)r.data=Mn(r.data),r=n.nextNode()},Fn=function(e){let t=E?E(e):null;return typeof t!=`string`||X(t)!==`form`?!1:typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||e.attributes!==S(e)||typeof e.removeAttribute!=`function`||typeof e.removeAttributeNode!=`function`||typeof e.getAttributeNode!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`||e.nodeType!==T(e)||e.childNodes!==y(e)},Q=function(e){if(!T||typeof e!=`object`||!e)return!1;try{return T(e)===A.documentFragment}catch{return!1}},In=function(e){if(!T||typeof e!=`object`||!e)return!1;try{return typeof T(e)==`number`}catch{return!1}};function $(e,n,r){e.length!==0&&g(e,e=>{e.call(t,n,r,on)})}let Ln=function(e,t){return!!(H&&e.hasChildNodes()&&!In(e.firstElementChild)&&C(Ue,e.textContent)&&C(Ue,e.innerHTML)||H&&qe[t]&&M(e)===A.element&&tt(e)===J&&(In(e.firstElementChild)||typeof e.textContent==`string`&&C(Ue,e.textContent))||e.nodeType===A.processingInstruction||H&&e.nodeType===A.comment&&C(We,e.data))},Rn=function(e,t){return e instanceof RegExp?C(e,t):e instanceof Function&&!!e(t,...[...arguments].slice(2))},zn=function(e,t,n){if(!Tt[t]&&Gn(t)&&Rn(z.tagNameCheck,t))return!1;if(Bt&&!q[t]&&!q[v(t)]){let t=b(e),r=y(e);if(r&&t){let i=r.length;for(let a=i-1;a>=0;--a){let i=e===n?ee(r[a],!0):r[a];t.insertBefore(i,ge(e))}}}return Z(e),!0},Bn=function(e,t,n,r){return e.length===0?t:t===n||t===r?O(t):t},Vn=function(e,t){return e===t||b(e)!==null?!1:(Vt&&xn(e),!0)},Hn=function(e,n){if(Dn(e),$(I.beforeSanitizeElements,e,null),Vn(e,n))return!0;if(Fn(e))return Z(e),!0;let r=X($e(e));if(L=Bn(I.uponSanitizeElement,L,Ct,Mt),$(I.uponSanitizeElement,e,{tagName:r,allowedTags:L}),Vn(e,n))return!0;if(Ln(e,r))return Z(e),!0;if(Tt[r]||!(B.tagCheck instanceof Function&&B.tagCheck(r))&&!L[r]){let t=zn(e,r,n);return t===!1&&($(I.afterSanitizeElements,e,null),Vn(e,n))?!0:t}if(M(e)===A.element&&!hn(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&C(Ge,e.innerHTML))return Z(e),!0;if(V&&e.nodeType===A.text){let n=Mn(e.textContent);e.textContent!==n&&(ae(t.removed,{element:e.cloneNode()}),e.textContent=n)}return $(I.afterSanitizeElements,e,null),Vn(e,n)},Un=function(e,t,r){if(Et[t]||On(t,e)||Lt&&(t===`id`||t===`name`)&&(r in n||r in sn))return!1;let i=R[t]||B.attributeCheck instanceof Function&&B.attributeCheck(t,e);return Ot&&C(_t,t)||Dt&&C(vt,t)?!0:i?Gt[t]||C(St,pe(r,bt,``))||(t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&me(r,`data:`)===0&&Ut[e]||kt&&!C(yt,pe(r,bt,``))?!0:!r:Gn(e)&&Rn(z.tagNameCheck,e)&&Rn(z.attributeNameCheck,t,e)||t===`is`&&z.allowCustomizedBuiltInElements&&Rn(z.tagNameCheck,r)},Wn=D({},[`annotation-xml`,`color-profile`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`missing-glyph`]),Gn=function(e){return!Wn[v(e)]&&C(xt,e)},Kn=function(e,t,n,r){if(N&&typeof d==`object`&&typeof d.getAttributeType==`function`&&!n)switch(d.getAttributeType(e,t)){case`TrustedHTML`:return F(r);case`TrustedScriptURL`:return ot(r)}return r},qn=function(e,t,n,r){try{return n?e.setAttributeNS(n,t,r):e.setAttribute(t,r),!Fn(e)||(Z(e),!1)}catch{return vn(t,e),!1}},Jn=function(e,t){return H&&C(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,t)?!0:v(e)===`attributename`&&fe(t,`href`)!==null},Yn=function(e,n){if($(I.beforeSanitizeAttributes,e,null),Vn(e,n))return;let r=e.attributes;if(!r||Fn(e))return;R=Bn(I.uponSanitizeAttribute,R,wt,Nt);let i={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:R,forceKeepAttr:void 0},a=r.length,o=X(e.nodeName);for(;a--;){let n=r[a],s=n.name,c=n.namespaceURI,l=n.value,u=X(s),d=l,f=s===`value`?d:he(d),p=!1;i.attrName=u,i.attrValue=f,i.keepAttr=!0,i.forceKeepAttr=void 0,$(I.uponSanitizeAttribute,e,i),f=i.attrValue,Rt&&(u===`id`||u===`name`)&&me(f,zt)!==0&&(vn(s,e,n),f=zt+f,p=!0),Jn(s,f)?vn(s,e,n):i.forceKeepAttr||(i.keepAttr?!At&&C(Ke,f)?vn(s,e,n):(V&&(f=Mn(f)),Un(o,u,f)?(f=Kn(o,u,c,f),f!==d&&qn(e,s,c,f)&&p&&ie(t.removed)):vn(s,e,n)):vn(s,e,n))}$(I.afterSanitizeAttributes,e,null),Vn(e,n)},Xn=function(e){let t=null,n=jn(e);for($(I.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if($(I.uponSanitizeShadowNode,t,null),Hn(t,e),Yn(t,e),Q(t.content)&&Xn(t.content),M(t)===A.element){let e=_e(t);Q(e)&&(Zn(e),Xn(e))}V&&Pn(e),$(I.afterSanitizeShadowDOM,e,null)},Zn=function(e){let t=[{node:e,shadow:null}];for(;t.length>0;){let e=t.pop();if(e.shadow){Xn(e.shadow);continue}let n=e.node,r=M(n)===A.element,i=y(n);if(i)for(let e=i.length-1;e>=0;--e)t.push({node:i[e],shadow:null});if(r){let e=E?E(n):null;if(typeof e==`string`&&X(e)===`template`){let e=n.content;Q(e)&&t.push({node:e,shadow:null})}}if(r){let e=_e(n);Q(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return t.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=null,a=null,o=null,s=null;if(Yt=!e,Yt&&(e=`<!-->`),typeof e!=`string`&&!In(e)&&(e=ye(e),typeof e!=`string`))throw w(`dirty is not a string, aborting`);if(!t.isSupported)return e;jt?(L=Mt,R=Nt):ln(n),(I.uponSanitizeElement.length>0||I.uponSanitizeAttribute.length>0)&&(L=O(L)),I.uponSanitizeAttribute.length>0&&(R=O(R)),t.removed=[];let c=Vt&&typeof e!=`string`&&In(e),l=[],u=G;if(c){kn(e);let t=$e(e);if(typeof t==`string`){let n=X(t);if(!L[n]||Tt[n])throw _n(e),w(`root node is forbidden and cannot be sanitized in-place`)}if(Fn(e))throw _n(e),w(`root node is clobbered and cannot be sanitized in-place`);l=Sn(e),G=ce()}else if(In(e))i=An(`<!---->`),a=i.ownerDocument.importNode(e,!0),a.nodeType===A.element&&a.nodeName===`BODY`||a.nodeName===`HTML`?i=a:i.appendChild(a),Zn(i);else{if(!W&&!V&&!U&&e.indexOf(`<`)===-1)return N&&It?F(e):e;if(i=An(e),!i)return W?null:It?P:``}i&&Pt&&Z(i.firstChild);let d=c?e:i;try{c&&Zn(e);let t=jn(d);for(;o=t.nextNode();)Hn(o,d),Yn(o,d),Q(o.content)&&Xn(o.content);c&&Tn(e,l)}catch(t){throw c&&(_n(e),wn(e,l)),t}finally{G=u}if(c){if(wn(e,l))throw w(`a node selected for removal could not be safely returned; refusing to sanitize in place`);return V&&Nn(e),e}if(W){if(V&&Nn(i),Ft)for(s=dt.call(i.ownerDocument);i.firstChild;)s.appendChild(i.firstChild);else s=i;return(R.shadowroot||R.shadowrootmode)&&(s=pt.call(r,s,!0)),s}let f=U?i.outerHTML:i.innerHTML;return U&&L[`!doctype`]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&C(Ve,i.ownerDocument.doctype.name)&&(f=`<!DOCTYPE `+i.ownerDocument.doctype.name+`>
3
+ `+f),V&&(f=Mn(f)),N&&It?F(f):f},t.setConfig=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ln(e),jt=!0,Mt=L,Nt=R},t.clearConfig=function(){on=null,jt=!1,Mt=null,Nt=null,N=nt,P=``},t.isValidAttribute=function(e,t,n){on||ln({});let r=X(e),i=X(t);return typeof n==`string`&&(Jn(t,n)||!At&&C(Ke,n))?!1:Un(r,i,n)},t.addHook=function(e,t){typeof t==`function`&&x(I,e)&&ae(I[e],t)},t.removeHook=function(e,t){if(x(I,e)){if(t!==void 0){let n=re(I[e],t);return n===-1?void 0:se(I[e],n,1)[0]}return ie(I[e])}},t.removeHooks=function(e){x(I,e)&&(I[e]=[])},t.removeAllHooks=function(){I=Xe()},t}var M=Qe();export{M as default};
@@ -17,7 +17,7 @@
17
17
  http-equiv="Content-Security-Policy"
18
18
  content="default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; font-src 'self'; connect-src 'self';"
19
19
  />
20
- <script type="module" crossorigin src="/assets/index-CI2O6JO9.js"></script>
20
+ <script type="module" crossorigin src="/assets/index-DI89vrQ2.js"></script>
21
21
  <link rel="stylesheet" crossorigin href="/assets/index-DRj2q7mf.css">
22
22
  </head>
23
23
  <body>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@the-bearded-bear/claude-craft",
3
- "version": "8.23.2",
3
+ "version": "8.23.3",
4
4
  "description": "A comprehensive framework for AI-assisted development with Claude Code. Install standardized rules, agents, and commands for your projects.",
5
5
  "type": "module",
6
6
  "main": "cli/index.js",
@@ -78,7 +78,7 @@
78
78
  "@stryker-mutator/core": "10.0.0",
79
79
  "@stryker-mutator/vitest-runner": "10.0.0",
80
80
  "@sveltejs/vite-plugin-svelte": "^7.1.2",
81
- "@vitest/coverage-v8": "4.1.11",
81
+ "@vitest/coverage-v8": "4.1.12",
82
82
  "cytoscape": "^3.33.2",
83
83
  "cytoscape-dagre": "^4.0.0",
84
84
  "dompurify": "^3.4.11",
@@ -89,7 +89,7 @@
89
89
  "svelte": "^5.55.4",
90
90
  "uplot": "^1.6.32",
91
91
  "vite": "^8.0.14",
92
- "vitest": "4.1.11"
92
+ "vitest": "4.1.12"
93
93
  },
94
94
  "files": [
95
95
  "bundles/",
@@ -1,3 +0,0 @@
1
- import{A as e,C as t,E as n,M as r,O as i,P as a,S as o,c as s,f as c,g as l,h as u,i as d,j as f,k as p,l as m,m as h,p as g,s as _,v,w as y,x as b}from"./index-CI2O6JO9.js";function x(e=[],t=[]){let n=new Map(e.map(e=>[e.date,e.points])),r=new Map(t.map(e=>[e.date,e.points]));return[...new Set([...n.keys(),...r.keys()])].sort((e,t)=>e.localeCompare(t)).map(e=>({date:e,ideal:n.has(e)?n.get(e):null,actual:r.has(e)?r.get(e):null}))}var S=!0,C=`uplot`,w=`u-hz`,T=`u-vt`,E=`u-title`,D=`u-wrap`,O=`u-under`,ee=`u-over`,te=`u-axis`,k=`u-off`,ne=`u-select`,re=`u-cursor-x`,ie=`u-cursor-y`,ae=`u-cursor-pt`,oe=`u-legend`,se=`u-live`,ce=`u-inline`,le=`u-series`,ue=`u-marker`,de=`u-label`,fe=`u-value`,A=`width`,pe=`height`,me=`top`,he=`bottom`,ge=`left`,_e=`right`,ve=`#000`,ye=`#0000`,be=`mousemove`,xe=`mousedown`,Se=`mouseup`,Ce=`mouseenter`,we=`mouseleave`,Te=`dblclick`,Ee=`resize`,De=`scroll`,Oe=`change`,ke=`dppxchange`,Ae=`--`,j=typeof window<`u`,je=j?document:null,Me=j?window:null,Ne=j?navigator:null,M,Pe;function Fe(){let e=devicePixelRatio;M!=e&&(M=e,Pe&&Je(Oe,Pe,Fe),Pe=matchMedia(`(min-resolution: ${M-.001}dppx) and (max-resolution: ${M+.001}dppx)`),qe(Oe,Pe,Fe),Me.dispatchEvent(new CustomEvent(ke)))}function Ie(e,t){if(t!=null){let n=e.classList;!n.contains(t)&&n.add(t)}}function Le(e,t){let n=e.classList;n.contains(t)&&n.remove(t)}function N(e,t,n){e.style[t]=n+`px`}function Re(e,t,n,r){let i=je.createElement(e);return t!=null&&Ie(i,t),n?.insertBefore(i,r),i}function ze(e,t){return Re(`div`,e,t)}var P=new WeakMap;function Be(e,t,n,r,i){let a=`translate(`+t+`px,`+n+`px)`;a!=P.get(e)&&(e.style.transform=a,P.set(e,a),t<0||n<0||t>r||n>i?Ie(e,k):Le(e,k))}var Ve=new WeakMap;function He(e,t,n){let r=t+n;r!=Ve.get(e)&&(Ve.set(e,r),e.style.background=t,e.style.borderColor=n)}var Ue=new WeakMap;function We(e,t,n,r){let i=t+``+n;i!=Ue.get(e)&&(Ue.set(e,i),e.style.height=n+`px`,e.style.width=t+`px`,e.style.marginLeft=r?-t/2+`px`:0,e.style.marginTop=r?-n/2+`px`:0)}var Ge={passive:!0},Ke={...Ge,capture:!0};function qe(e,t,n,r){t.addEventListener(e,n,r?Ke:Ge)}function Je(e,t,n,r){t.removeEventListener(e,n,Ge)}j&&Fe();function Ye(e,t,n,r){let i;n||=0,r||=t.length-1;let a=r<=2147483647;for(;r-n>1;)i=a?n+r>>1:ft((n+r)/2),t[i]<e?n=i:r=i;return e-t[n]<=t[r]-e?n:r}function Xe(e){return(t,n,r)=>{let i=-1,a=-1;for(let a=n;a<=r;a++)if(e(t[a])){i=a;break}for(let i=r;i>=n;i--)if(e(t[i])){a=i;break}return[i,a]}}var Ze=e=>e!=null,F=e=>e!=null&&e>0,I=Xe(Ze),Qe=Xe(F);function $e(e,t,n,r=0,i=!1){let a=i?Qe:I,o=i?F:Ze;[t,n]=a(e,t,n);let s=e[t],c=e[t];if(t>-1){if(r==1)s=e[t],c=e[n];else if(r==-1)s=e[n],c=e[t];else for(let r=t;r<=n;r++){let t=e[r];o(t)&&(t<s?s=t:t>c&&(c=t))}}return[s??V,c??-V]}function et(e,t,n,r){let i=_t(e),a=_t(t);e==t&&(i==-1?(e*=n,t/=n):(e/=n,t*=n));let o=n==10?vt:yt,s=i==1?ft:pt,c=a==1?pt:ft,l=s(o(z(e))),u=c(o(z(t))),d=gt(n,l),f=gt(n,u);return n==10&&(l<0&&(d=U(d,-l)),u<0&&(f=U(f,-u))),r||n==2?(e=d*i,t=f*a):(e=Ft(e,d),t=Pt(t,f)),[e,t]}function tt(e,t,n,r){let i=et(e,t,n,r);return e==0&&(i[0]=0),t==0&&(i[1]=0),i}var nt=.1,rt={mode:3,pad:nt},it={pad:0,soft:null,mode:0},at={min:it,max:it};function ot(e,t,n,r){return Kt(n)?ct(e,t,n):(it.pad=n,it.soft=r?0:null,it.mode=r?3:0,ct(e,t,at))}function L(e,t){return e??t}function st(e,t,n){for(t=L(t,0),n=L(n,e.length-1);t<=n;){if(e[t]!=null)return!0;t++}return!1}function ct(e,t,n){let r=n.min,i=n.max,a=L(r.pad,0),o=L(i.pad,0),s=L(r.hard,-V),c=L(i.hard,V),l=L(r.soft,V),u=L(i.soft,-V),d=L(r.mode,0),f=L(i.mode,0),p=t-e,m=vt(p),h=ht(z(e),z(t)),g=z(vt(h)-m);(p<1e-24||g>10)&&(p=0,(e==0||t==0)&&(p=1e-24,d==2&&l!=V&&(a=0),f==2&&u!=-V&&(o=0)));let _=p||h||1e3,v=gt(10,ft(vt(_))),y=U(Ft(e-_*(p==0?e==0?.1:1:a),v/10),24),b=e>=l&&(d==1||d==3&&y<=l||d==2&&y>=l)?l:V,x=ht(s,y<b&&e>=b?b:mt(b,y)),S=U(Pt(t+_*(p==0?t==0?.1:1:o),v/10),24),C=t<=u&&(f==1||f==3&&S>=u||f==2&&S<=u)?u:-V,w=mt(c,S>C&&t<=C?C:ht(C,S));return x==w&&x==0&&(w=100),[x,w]}var lt=new Intl.NumberFormat(j?Ne.language:`en-US`),ut=e=>lt.format(e),R=Math,dt=R.PI,z=R.abs,ft=R.floor,B=R.round,pt=R.ceil,mt=R.min,ht=R.max,gt=R.pow,_t=R.sign,vt=R.log10,yt=R.log2,bt=(e,t=1)=>R.sinh(e)*t,xt=(e,t=1)=>R.asinh(e/t),V=1/0;function St(e){return(vt((e^e>>31)-(e>>31))|0)+1}function Ct(e,t,n){return mt(ht(e,t),n)}function wt(e){return typeof e==`function`}function H(e){return wt(e)?e:()=>e}var Tt=()=>{},Et=e=>e,Dt=(e,t)=>t,Ot=e=>null,kt=e=>!0,At=(e,t)=>e==t,jt=/\.\d*?(?=9{6,}|0{6,})/gm,Mt=e=>{if(Ut(e)||It.has(e))return e;let t=`${e}`,n=t.match(jt);if(n==null)return e;let r=n[0].length-1;if(t.indexOf(`e-`)!=-1){let[e,n]=t.split(`e`);return+`${Mt(e)}e${n}`}return U(e,r)};function Nt(e,t){return Mt(U(Mt(e/t))*t)}function Pt(e,t){return Mt(pt(Mt(e/t))*t)}function Ft(e,t){return Mt(ft(Mt(e/t))*t)}function U(e,t=0){if(Ut(e))return e;let n=10**t;return B(e*n*(1+2**-52))/n}var It=new Map;function Lt(e){return((``+e).split(`.`)[1]||``).length}function Rt(e,t,n,r){let i=[],a=r.map(Lt);for(let o=t;o<n;o++){let t=z(o),n=U(gt(e,o),t);for(let s=0;s<r.length;s++){let c=e==10?+`${r[s]}e${o}`:r[s]*n,l=(o>=0?0:t)+(o>=a[s]?0:a[s]),u=e==10?c:U(c,l);i.push(u),It.set(u,l)}}return i}var zt={},Bt=[],Vt=[null,null],Ht=Array.isArray,Ut=Number.isInteger,Wt=e=>e===void 0;function Gt(e){return typeof e==`string`}function Kt(e){let t=!1;if(e!=null){let n=e.constructor;t=n==null||n==Object}return t}function qt(e){return typeof e==`object`&&!!e}var Jt=Object.getPrototypeOf(Uint8Array),W=`__proto__`;function Yt(e,t=Kt){let n;if(Ht(e)){let r=e.find(e=>e!=null);if(Ht(r)||t(r)){n=Array(e.length);for(let r=0;r<e.length;r++)n[r]=Yt(e[r],t)}else n=e.slice()}else if(e instanceof Jt)n=e.slice();else if(t(e)){n={};for(let r in e)r!=W&&(n[r]=Yt(e[r],t))}else n=e;return n}function G(e){let t=arguments;for(let n=1;n<t.length;n++){let r=t[n];for(let t in r)t!=W&&(Kt(e[t])?G(e[t],Yt(r[t])):e[t]=Yt(r[t]))}return e}var K=0,Xt=1,Zt=2;function Qt(e,t,n){for(let r=0,i,a=-1;r<t.length;r++){let o=t[r];if(o>a){for(i=o-1;i>=0&&e[i]==null;)e[i--]=null;for(i=o+1;i<n&&e[i]==null;)e[a=i++]=null}}}function $t(e,t){if(nn(e)){let t=e[0].slice();for(let n=1;n<e.length;n++)t.push(...e[n].slice(1));return rn(t[0])||(t=tn(t)),t}let n=new Set;for(let t=0;t<e.length;t++){let r=e[t][0],i=r.length;for(let e=0;e<i;e++)n.add(r[e])}let r=[Array.from(n).sort((e,t)=>e-t)],i=r[0].length,a=new Map;for(let e=0;e<i;e++)a.set(r[0][e],e);for(let n=0;n<e.length;n++){let o=e[n],s=o[0];for(let e=1;e<o.length;e++){let c=o[e],l=Array(i).fill(void 0),u=t?t[n][e]:Xt,d=[];for(let e=0;e<c.length;e++){let t=c[e],n=a.get(s[e]);t===null?u!=K&&(l[n]=t,u==Zt&&d.push(n)):l[n]=t}Qt(l,d,i),r.push(l)}}return r}var en=typeof queueMicrotask>`u`?e=>Promise.resolve().then(e):queueMicrotask;function tn(e){let t=e[0],n=t.length,r=Array(n);for(let e=0;e<r.length;e++)r[e]=e;r.sort((e,n)=>t[e]-t[n]);let i=[];for(let t=0;t<e.length;t++){let a=e[t],o=Array(n);for(let e=0;e<n;e++)o[e]=a[r[e]];i.push(o)}return i}function nn(e){let t=e[0][0],n=t.length;for(let r=1;r<e.length;r++){let i=e[r][0];if(i.length!=n)return!1;if(i!=t){for(let e=0;e<n;e++)if(i[e]!=t[e])return!1}}return!0}function rn(e,t=100){let n=e.length;if(n<=1)return!0;let r=0,i=n-1;for(;r<=i&&e[r]==null;)r++;for(;i>=r&&e[i]==null;)i--;if(i<=r)return!0;let a=ht(1,ft((i-r+1)/t));for(let t=e[r],n=r+a;n<=i;n+=a){let r=e[n];if(r!=null){if(r<=t)return!1;t=r}}return!0}var an=[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],on=[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`];function sn(e){return e.slice(0,3)}var cn=on.map(sn),ln={MMMM:an,MMM:an.map(sn),WWWW:on,WWW:cn};function un(e){return(e<10?`0`:``)+e}function dn(e){return(e<10?`00`:e<100?`0`:``)+e}var fn={YYYY:e=>e.getFullYear(),YY:e=>(e.getFullYear()+``).slice(2),MMMM:(e,t)=>t.MMMM[e.getMonth()],MMM:(e,t)=>t.MMM[e.getMonth()],MM:e=>un(e.getMonth()+1),M:e=>e.getMonth()+1,DD:e=>un(e.getDate()),D:e=>e.getDate(),WWWW:(e,t)=>t.WWWW[e.getDay()],WWW:(e,t)=>t.WWW[e.getDay()],HH:e=>un(e.getHours()),H:e=>e.getHours(),h:e=>{let t=e.getHours();return t==0?12:t>12?t-12:t},AA:e=>e.getHours()>=12?`PM`:`AM`,aa:e=>e.getHours()>=12?`pm`:`am`,a:e=>e.getHours()>=12?`p`:`a`,mm:e=>un(e.getMinutes()),m:e=>e.getMinutes(),ss:e=>un(e.getSeconds()),s:e=>e.getSeconds(),fff:e=>dn(e.getMilliseconds())};function pn(e,t){t||=ln;let n=[],r=/\{([a-z]+)\}|[^{]+/gi,i;for(;i=r.exec(e);)n.push(i[0][0]==`{`?fn[i[1]]:i[0]);return e=>{let r=``;for(let i=0;i<n.length;i++)r+=typeof n[i]==`string`?n[i]:n[i](e,t);return r}}var mn=new Intl.DateTimeFormat().resolvedOptions().timeZone;function hn(e,t){let n;return t==`UTC`||t==`Etc/UTC`?n=new Date(+e+e.getTimezoneOffset()*6e4):t==mn?n=e:(n=new Date(e.toLocaleString(`en-US`,{timeZone:t})),n.setMilliseconds(e.getMilliseconds())),n}var gn=e=>e%1==0,_n=[1,2,2.5,5],vn=Rt(10,-32,0,_n),yn=Rt(10,0,32,_n),bn=yn.filter(gn),xn=vn.concat(yn),Sn=`
2
- `,Cn=`{YYYY}`,wn=Sn+Cn,Tn=`{M}/{D}`,En=Sn+Tn,Dn=En+`/{YY}`,On=`{aa}`,kn=`{h}:{mm}`+On,An=Sn+kn,jn=`:{ss}`,q=null;function Mn(e){let t=e*1e3,n=t*60,r=n*60,i=r*24,a=i*30,o=i*365,s=(e==1?Rt(10,0,3,_n).filter(gn):Rt(10,-3,0,_n)).concat([t,t*5,t*10,t*15,t*30,n,n*5,n*10,n*15,n*30,r,r*2,r*3,r*4,r*6,r*8,r*12,i,i*2,i*3,i*4,i*5,i*6,i*7,i*8,i*9,i*10,i*15,a,a*2,a*3,a*4,a*6,o,o*2,o*5,o*10,o*25,o*50,o*100]),c=[[o,Cn,q,q,q,q,q,q,1],[i*28,`{MMM}`,wn,q,q,q,q,q,1],[i,Tn,wn,q,q,q,q,q,1],[r,`{h}`+On,Dn,q,En,q,q,q,1],[n,kn,Dn,q,En,q,q,q,1],[t,jn,Dn+` `+kn,q,En+` `+kn,q,An,q,1],[e,jn+`.{fff}`,Dn+` `+kn,q,En+` `+kn,q,An,q,1]];function l(t){return(s,c,l,u,d,f)=>{let p=[],m=d>=o,h=d>=a&&d<o,g=t(l),_=U(g*e,3),v=Hn(g.getFullYear(),m?0:g.getMonth(),h||m?1:g.getDate()),y=U(v*e,3);if(h||m){let n=h?d/a:0,r=m?d/o:0,i=_==y?_:U(Hn(v.getFullYear()+r,v.getMonth()+n,1)*e,3),s=new Date(B(i/e)),c=s.getFullYear(),l=s.getMonth();for(let a=0;i<=u;a++){let o=Hn(c+r*a,l+n*a,1),s=o-t(U(o*e,3));i=U((+o+s)*e,3),i<=u&&p.push(i)}}else{let a=d>=i?i:d,o=y+(ft(l)-ft(_))+Pt(_-y,a);p.push(o);let m=t(o),h=m.getHours()+m.getMinutes()/n+m.getSeconds()/r,g=d/r,v=f/s.axes[c]._space;for(;o=U(o+d,e==1?0:3),!(o>u);)if(g>1){let e=ft(U(h+g,6))%24,n=t(o).getHours()-e;n>1&&(n=-1),o-=n*r,h=(h+g)%24;let i=p[p.length-1];U((o-i)/d,3)*v>=.7&&p.push(o)}else p.push(o)}return p}}return[s,c,l]}var[Nn,Pn,Fn]=Mn(1),[In,Ln,Rn]=Mn(.001);Rt(2,-53,53,[1]);function zn(e,t){return e.map(e=>e.map((n,r)=>r==0||r==8||n==null?n:t(r==1||e[8]==0?n:e[1]+n)))}function Bn(e,t){return(n,r,i,a,o)=>{let s=t.find(e=>o>=e[0])||t[t.length-1],c,l,u,d,f,p;return r.map(t=>{let n=e(t),r=n.getFullYear(),i=n.getMonth(),a=n.getDate(),o=n.getHours(),m=n.getMinutes(),h=n.getSeconds(),g=r!=c&&s[2]||i!=l&&s[3]||a!=u&&s[4]||o!=d&&s[5]||m!=f&&s[6]||h!=p&&s[7]||s[1];return c=r,l=i,u=a,d=o,f=m,p=h,g(n)})}}function Vn(e,t){let n=pn(t);return(t,r,i,a,o)=>r.map(t=>n(e(t)))}function Hn(e,t,n){return new Date(e,t,n)}function Un(e,t){return t(e)}var Wn=`{YYYY}-{MM}-{DD} {h}:{mm}{aa}`;function Gn(e,t){return(n,r,i,a)=>a==null?Ae:t(e(r))}function Kn(e,t){let n=e.series[t];return n.width?n.stroke(e,t):n.points.width?n.points.stroke(e,t):null}function qn(e,t){return e.series[t].fill(e,t)}var Jn={show:!0,live:!0,isolate:!1,mount:Tt,markers:{show:!0,width:2,stroke:Kn,fill:qn,dash:`solid`},idx:null,idxs:null,values:[]};function Yn(e,t){let n=e.cursor.points,r=ze(),i=n.size(e,t);N(r,A,i),N(r,pe,i);let a=i/-2;N(r,`marginLeft`,a),N(r,`marginTop`,a);let o=n.width(e,t,i);return o&&N(r,`borderWidth`,o),r}function Xn(e,t){let n=e.series[t].points;return n._fill||n._stroke}function Zn(e,t){let n=e.series[t].points;return n._stroke||n._fill}function Qn(e,t){return e.series[t].points.size}var J=[0,0];function Y(e,t,n){return J[0]=t,J[1]=n,J}function $n(e,t,n,r=!0){return e=>{e.button==0&&(!r||e.target==t)&&n(e)}}function er(e,t,n,r=!0){return e=>{(!r||e.target==t)&&n(e)}}var tr={show:!0,x:!0,y:!0,lock:!1,move:Y,points:{one:!1,show:Yn,size:Qn,width:0,stroke:Zn,fill:Xn},bind:{mousedown:$n,mouseup:$n,click:$n,dblclick:$n,mousemove:er,mouseleave:er,mouseenter:er},drag:{setScale:!0,x:!0,y:!1,dist:0,uni:null,click:(e,t)=>{t.stopPropagation(),t.stopImmediatePropagation()},_x:!1,_y:!1},focus:{dist:(e,t,n,r,i)=>r-i,prox:-1,bias:0},hover:{skip:[void 0],prox:null,bias:0},left:-10,top:-10,idx:null,dataIdx:null,idxs:null,event:null},nr={show:!0,stroke:`rgba(0,0,0,0.07)`,width:2},rr=G({},nr,{filter:Dt}),ir=G({},rr,{size:10}),ar=G({},nr,{show:!1}),or=`12px system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"`,sr=`bold `+or,cr=1.5,lr={show:!0,scale:`x`,stroke:ve,space:50,gap:5,alignTo:1,size:50,labelGap:0,labelSize:30,labelFont:sr,side:2,grid:rr,ticks:ir,border:ar,font:or,lineGap:cr,rotate:0},ur=`Value`,dr=`Time`,fr={show:!0,scale:`x`,auto:!1,sorted:1,min:V,max:-1/0,idxs:[]};function pr(e,t,n,r,i){return t.map(e=>e==null?``:ut(e))}function mr(e,t,n,r,i,a,o){let s=[],c=It.get(i)||0;n=o?n:U(Pt(n,i),c);for(let e=n;e<=r;e=U(e+i,c))s.push(Object.is(e,-0)?0:e);return s}function hr(e,t,n,r,i,a,o){let s=[],c=e.scales[e.axes[t].scale].log;i=gt(c,ft((c==10?vt:yt)(n))),c==10&&(i=xn[Ye(i,xn)]);let l=n,u=i*c;c==10&&(u=xn[Ye(u,xn)]);do s.push(l),l+=i,c==10&&!It.has(l)&&(l=U(l,It.get(i))),l>=u&&(i=l,u=i*c,c==10&&(u=xn[Ye(u,xn)]));while(l<=r);return s}function gr(e,t,n,r,i,a,o){let s=e.scales[e.axes[t].scale].asinh,c=r>s?hr(e,t,ht(s,n),r,i):[s],l=r>=0&&n<=0?[0]:[];return(n<-s?hr(e,t,ht(s,-r),-n,i):[s]).reverse().map(e=>-e).concat(l,c)}var _r=/./,vr=/[12357]/,yr=/[125]/,br=/1/,xr=(e,t,n,r)=>e.map((e,i)=>t==4&&e==0||i%r==0&&n.test(e.toExponential()[+(e<0)])?e:null);function Sr(e,t,n,r,i){let a=e.axes[n],o=a.scale,s=e.scales[o],c=e.valToPos,l=a._space,u=c(10,o),d=c(9,o)-u>=l?_r:c(7,o)-u>=l?vr:c(5,o)-u>=l?yr:br;if(d==br){let e=z(c(1,o)-u);if(e<l)return xr(t.slice().reverse(),s.distr,d,pt(l/e)).reverse()}return xr(t,s.distr,d,1)}function Cr(e,t,n,r,i){let a=e.axes[n],o=a.scale,s=a._space,c=e.valToPos,l=z(c(1,o)-c(2,o));return l<s?xr(t.slice().reverse(),3,_r,pt(s/l)).reverse():t}function wr(e,t,n,r){return r==null?Ae:t==null?``:ut(t)}var Tr={show:!0,scale:`y`,stroke:ve,space:30,gap:5,alignTo:1,size:50,labelGap:0,labelSize:30,labelFont:sr,side:3,grid:rr,ticks:ir,border:ar,font:or,lineGap:cr,rotate:0};function Er(e,t){return U((3+(e||1)*2)*t,3)}function Dr(e,t){let{scale:n,idxs:r}=e.series[0],i=e._data[0],a=e.valToPos(i[r[0]],n,!0),o=z(e.valToPos(i[r[1]],n,!0)-a)/(e.series[t].points.space*M);return r[1]-r[0]<=o}var Or={scale:null,auto:!0,sorted:0,min:V,max:-1/0},kr=(e,t,n,r,i)=>i,Ar={show:!0,auto:!0,sorted:0,gaps:kr,alpha:1,facets:[G({},Or,{scale:`x`}),G({},Or,{scale:`y`})]},jr={scale:`y`,auto:!0,sorted:0,show:!0,spanGaps:!1,gaps:kr,alpha:1,points:{show:Dr,filter:null},values:null,min:V,max:-1/0,idxs:[],path:null,clip:null};function Mr(e,t,n,r,i){return n/10}var Nr={time:S,auto:!0,distr:1,log:10,asinh:1,min:null,max:null,dir:1,ori:0},Pr=G({},Nr,{time:!1,ori:1}),Fr={};function Ir(e,t){let n=Fr[e];return n||(n={key:e,plots:[],sub(e){n.plots.push(e)},unsub(e){n.plots=n.plots.filter(t=>t!=e)},pub(e,t,r,i,a,o,s){for(let c=0;c<n.plots.length;c++)n.plots[c]!=t&&n.plots[c].pub(e,t,r,i,a,o,s)}},e!=null&&(Fr[e]=n)),n}var Lr=1,Rr=2;function zr(e,t,n){let r=e.mode,i=e.series[t],a=r==2?e._data[t]:e._data,o=e.scales,s=e.bbox,c=a[0],l=r==2?a[1]:a[t],u=r==2?o[i.facets[0].scale]:o[e.series[0].scale],d=r==2?o[i.facets[1].scale]:o[i.scale],f=s.left,p=s.top,m=s.width,h=s.height,g=e.valToPosH,_=e.valToPosV;return u.ori==0?n(i,c,l,u,d,g,_,f,p,m,h,Jr,Xr,Qr,ei,ni):n(i,c,l,u,d,_,g,p,f,h,m,Yr,Zr,$r,ti,ri)}function Br(e,t){let n=0,r=0,i=L(e.bands,Bt);for(let e=0;e<i.length;e++){let a=i[e];a.series[0]==t?n=a.dir:a.series[1]==t&&(a.dir==1?r|=1:r|=2)}return[n,r==1?-1:r==2?1:r==3?2:0]}function Vr(e,t,n,r,i){let a=e.mode,o=e.series[t],s=a==2?o.facets[1].scale:o.scale,c=e.scales[s];return i==-1?c.min:i==1?c.max:c.distr==3?c.dir==1?c.min:c.max:0}function Hr(e,t,n,r,i,a){return zr(e,t,(e,t,o,s,c,l,u,d,f,p,m)=>{let h=e.pxRound,g=s.dir*(s.ori==0?1:-1),_=s.ori==0?Xr:Zr,v,y;g==1?(v=n,y=r):(v=r,y=n);let b=h(l(t[v],s,p,d)),x=h(u(o[v],c,m,f)),S=h(l(t[y],s,p,d)),C=h(u(a==1?c.max:c.min,c,m,f)),w=new Path2D(i);return _(w,S,C),_(w,b,C),_(w,b,x),w})}function Ur(e,t,n,r,i,a){let o=null;if(e.length>0){o=new Path2D;let s=t==0?Qr:$r,c=n;for(let t=0;t<e.length;t++){let n=e[t];if(n[1]>n[0]){let e=n[0]-c;e>0&&s(o,c,r,e,r+a),c=n[1]}}let l=n+i-c;l>0&&s(o,c,r-5,l,r+a+10)}return o}function Wr(e,t,n){let r=e[e.length-1];r&&r[0]==t?r[1]=n:e.push([t,n])}function Gr(e,t,n,r,i,a,o){let s=[],c=e.length;for(let l=i==1?n:r;l>=n&&l<=r;l+=i)if(t[l]===null){let u=l,d=l;if(i==1)for(;++l<=r&&t[l]===null;)d=l;else for(;--l>=n&&t[l]===null;)d=l;let f=a(e[u]),p=d==u?f:a(e[d]),m=u-i;f=o<=0&&m>=0&&m<c?a(e[m]):f;let h=d+i;p=o>=0&&h>=0&&h<c?a(e[h]):p,p>=f&&s.push([f,p])}return s}function Kr(e){return e==0?Et:e==1?B:t=>Nt(t,e)}function qr(e){let t=e==0?Jr:Yr,n=e==0?(e,t,n,r,i,a)=>{e.arcTo(t,n,r,i,a)}:(e,t,n,r,i,a)=>{e.arcTo(n,t,i,r,a)},r=e==0?(e,t,n,r,i)=>{e.rect(t,n,r,i)}:(e,t,n,r,i)=>{e.rect(n,t,i,r)};return(e,i,a,o,s,c=0,l=0)=>{c==0&&l==0?r(e,i,a,o,s):(c=mt(c,o/2,s/2),l=mt(l,o/2,s/2),t(e,i+c,a),n(e,i+o,a,i+o,a+s,c),n(e,i+o,a+s,i,a+s,l),n(e,i,a+s,i,a,l),n(e,i,a,i+o,a,c),e.closePath())}}var Jr=(e,t,n)=>{e.moveTo(t,n)},Yr=(e,t,n)=>{e.moveTo(n,t)},Xr=(e,t,n)=>{e.lineTo(t,n)},Zr=(e,t,n)=>{e.lineTo(n,t)},Qr=qr(0),$r=qr(1),ei=(e,t,n,r,i,a)=>{e.arc(t,n,r,i,a)},ti=(e,t,n,r,i,a)=>{e.arc(n,t,r,i,a)},ni=(e,t,n,r,i,a,o)=>{e.bezierCurveTo(t,n,r,i,a,o)},ri=(e,t,n,r,i,a,o)=>{e.bezierCurveTo(n,t,i,r,o,a)};function ii(e){return(e,t,n,r,i)=>zr(e,t,(t,a,o,s,c,l,u,d,f,p,m)=>{let{pxRound:h,points:g}=t,_,v;s.ori==0?(_=Jr,v=ei):(_=Yr,v=ti);let y=U(g.width*M,3),b=(g.size-g.width)/2*M,x=U(b*2,3),S=new Path2D,C=new Path2D,{left:w,top:T,width:E,height:D}=e.bbox;Qr(C,w-x,T-x,E+x*2,D+x*2);let O=e=>{if(o[e]!=null){let t=h(l(a[e],s,p,d)),n=h(u(o[e],c,m,f));_(S,t+b,n),v(S,t,n,b,0,dt*2)}};if(i)i.forEach(O);else for(let e=n;e<=r;e++)O(e);return{stroke:y>0?S:null,fill:S,clip:C,flags:3}})}function ai(e){return(t,n,r,i,a,o)=>{r!=i&&(a!=r&&o!=r&&e(t,n,r),a!=i&&o!=i&&e(t,n,i),e(t,n,o))}}var oi=ai(Xr),si=ai(Zr);function ci(e){let t=L(e?.alignGaps,0);return(e,n,r,i)=>zr(e,n,(a,o,s,c,l,u,d,f,p,m,h)=>{[r,i]=I(s,r,i);let g=a.pxRound,_=e=>g(u(e,c,m,f)),v=e=>g(d(e,l,h,p)),y,b;c.ori==0?(y=Xr,b=oi):(y=Zr,b=si);let x=c.dir*(c.ori==0?1:-1),S={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:Lr},C=S.stroke,w=!1;if(i-r>=m*4){let t=t=>e.posToVal(t,c.key,!0),n=null,a=null,l,u,d,f=_(o[x==1?r:i]),p=_(o[r]),m=_(o[i]),h=t(x==1?p+1:m-1);for(let e=x==1?r:i;e>=r&&e<=i;e+=x){let r=o[e],i=(x==1?r<h:r>h)?f:_(r),c=s[e];i==f?c==null?c===null&&(w=!0):(u=c,n==null?(y(C,i,v(u)),l=n=a=u):u<n?n=u:u>a&&(a=u)):(n!=null&&b(C,f,v(n),v(a),v(l),v(u)),c==null?(n=a=null,c===null&&(w=!0)):(u=c,y(C,i,v(u)),n=a=l=u),f=i,h=t(f+x))}n!=null&&n!=a&&d!=f&&b(C,f,v(n),v(a),v(l),v(u))}else for(let e=x==1?r:i;e>=r&&e<=i;e+=x){let t=s[e];t===null?w=!0:t!=null&&y(C,_(o[e]),v(t))}let[T,E]=Br(e,n);if(a.fill!=null||T!=0){let t=S.fill=new Path2D(C),s=v(a.fillTo(e,n,a.min,a.max,T)),c=_(o[r]),l=_(o[i]);x==-1&&([l,c]=[c,l]),y(t,l,s),y(t,c,s)}if(!a.spanGaps){let l=[];w&&l.push(...Gr(o,s,r,i,x,_,t)),S.gaps=l=a.gaps(e,n,r,i,l),S.clip=Ur(l,c.ori,f,p,m,h)}return E!=0&&(S.band=E==2?[Hr(e,n,r,i,C,-1),Hr(e,n,r,i,C,1)]:Hr(e,n,r,i,C,E)),S})}function li(e){let t=L(e.align,1),n=L(e.ascDesc,!1),r=L(e.alignGaps,0),i=L(e.extend,!1);return(e,a,o,s)=>zr(e,a,(c,l,u,d,f,p,m,h,g,_,v)=>{[o,s]=I(u,o,s);let y=c.pxRound,{left:b,width:x}=e.bbox,S=e=>y(p(e,d,_,h)),C=e=>y(m(e,f,v,g)),w=d.ori==0?Xr:Zr,T={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:Lr},E=T.stroke,D=d.dir*(d.ori==0?1:-1),O=C(u[D==1?o:s]),ee=S(l[D==1?o:s]),te=ee,k=ee;i&&t==-1&&(k=b,w(E,k,O)),w(E,ee,O);for(let e=D==1?o:s;e>=o&&e<=s;e+=D){let n=u[e];if(n==null)continue;let r=S(l[e]),i=C(n);t==1?w(E,r,O):w(E,te,i),w(E,r,i),O=i,te=r}let ne=te;i&&t==1&&(ne=b+x,w(E,ne,O));let[re,ie]=Br(e,a);if(c.fill!=null||re!=0){let t=T.fill=new Path2D(E),n=C(c.fillTo(e,a,c.min,c.max,re));w(t,ne,n),w(t,k,n)}if(!c.spanGaps){let i=[];i.push(...Gr(l,u,o,s,D,S,r));let f=c.width*M/2,p=n||t==1?f:-f,m=n||t==-1?-f:f;i.forEach(e=>{e[0]+=p,e[1]+=m}),T.gaps=i=c.gaps(e,a,o,s,i),T.clip=Ur(i,d.ori,h,g,_,v)}return ie!=0&&(T.band=ie==2?[Hr(e,a,o,s,E,-1),Hr(e,a,o,s,E,1)]:Hr(e,a,o,s,E,ie)),T})}function ui(e,t,n,r,i,a,o=V){if(e.length>1){let s=null;for(let c=0,l=1/0;c<e.length;c++)if(t[c]!==void 0){if(s!=null){let t=z(e[c]-e[s]);t<l&&(l=t,o=z(n(e[c],r,i,a)-n(e[s],r,i,a)))}s=c}}return o}function di(e){e||=zt;let t=L(e.size,[.6,V,1]),n=e.align||0,r=e.gap||0,i=e.radius;i=i==null?[0,0]:typeof i==`number`?[i,0]:i;let a=H(i),o=1-t[0],s=L(t[1],V),c=L(t[2],1),l=L(e.disp,zt),u=L(e.each,e=>{}),{fill:d,stroke:f}=l;return(e,t,i,p)=>zr(e,t,(m,h,g,_,v,y,b,x,S,C,w)=>{let T=m.pxRound,E=n,D=r*M,O=s*M,ee=c*M,te,k;_.ori==0?[te,k]=a(e,t):[k,te]=a(e,t);let ne=_.dir*(_.ori==0?1:-1),re=_.ori==0?Qr:$r,ie=_.ori==0?u:(e,t,n,r,i,a,o)=>{u(e,t,n,i,r,o,a)},ae=L(e.bands,Bt).find(e=>e.series[0]==t),oe=ae==null?0:ae.dir,se=m.fillTo(e,t,m.min,m.max,oe),ce=T(b(se,v,w,S)),le,ue,de,fe=C,A=T(m.width*M),pe=!1,me=null,he=null,ge=null,_e=null;d!=null&&(A==0||f!=null)&&(pe=!0,me=d.values(e,t,i,p),he=new Map,new Set(me).forEach(e=>{e!=null&&he.set(e,new Path2D)}),A>0&&(ge=f.values(e,t,i,p),_e=new Map,new Set(ge).forEach(e=>{e!=null&&_e.set(e,new Path2D)})));let{x0:ve,size:ye}=l;if(ve!=null&&ye!=null){E=1,h=ve.values(e,t,i,p),ve.unit==2&&(h=h.map(t=>e.posToVal(x+t*C,_.key,!0)));let n=ye.values(e,t,i,p);ue=ye.unit==2?n[0]*C:y(n[0],_,C,x)-y(0,_,C,x),fe=ui(h,g,y,_,C,x,fe),de=fe-ue+D}else fe=ui(h,g,y,_,C,x,fe),de=fe*o+D,ue=fe-de;de<1&&(de=0),A>=ue/2&&(A=0),de<5&&(T=Et);let be=de>0,xe=fe-de-(be?A:0);ue=T(Ct(xe,ee,O)),le=(E==0?ue/2:E==ne?0:ue)-E*ne*((E==0?D/2:0)+(be?A/2:0));let Se={stroke:null,fill:null,clip:null,band:null,gaps:null,flags:0},Ce=pe?null:new Path2D,we=null;if(ae!=null)we=e.data[ae.series[1]];else{let{y0:n,y1:r}=l;n!=null&&r!=null&&(g=r.values(e,t,i,p),we=n.values(e,t,i,p))}let Te=te*ue,Ee=k*ue;for(let n=ne==1?i:p;n>=i&&n<=p;n+=ne){let r=g[n];if(r==null)continue;if(we!=null){let e=we[n]??0;if(r-e==0)continue;ce=b(e,v,w,S)}let i=y(_.distr!=2||l!=null?h[n]:n,_,C,x),a=b(L(r,se),v,w,S),o=T(i-le),s=T(ht(a,ce)),c=T(mt(a,ce)),u=s-c;if(r!=null){let i=r<0?Ee:Te,a=r<0?Te:Ee;pe?(A>0&&ge[n]!=null&&re(_e.get(ge[n]),o,c+ft(A/2),ue,ht(0,u-A),i,a),me[n]!=null&&re(he.get(me[n]),o,c+ft(A/2),ue,ht(0,u-A),i,a)):re(Ce,o,c+ft(A/2),ue,ht(0,u-A),i,a),ie(e,t,n,o-A/2,c,ue+A,u)}}return A>0?Se.stroke=pe?_e:Ce:pe||(Se._fill=m.width==0?m._fill:m._stroke??m._fill,Se.width=0),Se.fill=pe?he:Ce,Se})}function fi(e,t){let n=L(t?.alignGaps,0);return(t,r,i,a)=>zr(t,r,(o,s,c,l,u,d,f,p,m,h,g)=>{[i,a]=I(c,i,a);let _=o.pxRound,v=e=>_(d(e,l,h,p)),y=e=>_(f(e,u,g,m)),b,x,S;l.ori==0?(b=Jr,S=Xr,x=ni):(b=Yr,S=Zr,x=ri);let C=l.dir*(l.ori==0?1:-1),w=v(s[C==1?i:a]),T=w,E=[],D=[];for(let e=C==1?i:a;e>=i&&e<=a;e+=C)if(c[e]!=null){let t=s[e],n=v(t);E.push(T=n),D.push(y(c[e]))}let O={stroke:e(E,D,b,S,x,_),fill:null,clip:null,band:null,gaps:null,flags:Lr},ee=O.stroke,[te,k]=Br(t,r);if(o.fill!=null||te!=0){let e=O.fill=new Path2D(ee),n=y(o.fillTo(t,r,o.min,o.max,te));S(e,T,n),S(e,w,n)}if(!o.spanGaps){let e=[];e.push(...Gr(s,c,i,a,C,v,n)),O.gaps=e=o.gaps(t,r,i,a,e),O.clip=Ur(e,l.ori,p,m,h,g)}return k!=0&&(O.band=k==2?[Hr(t,r,i,a,ee,-1),Hr(t,r,i,a,ee,1)]:Hr(t,r,i,a,ee,k)),O})}function pi(e){return fi(mi,e)}function mi(e,t,n,r,i,a){let o=e.length;if(o<2)return null;let s=new Path2D;if(n(s,e[0],t[0]),o==2)r(s,e[1],t[1]);else{let n=Array(o),r=Array(o-1),a=Array(o-1),c=Array(o-1);for(let n=0;n<o-1;n++)a[n]=t[n+1]-t[n],c[n]=e[n+1]-e[n],r[n]=a[n]/c[n];n[0]=r[0];for(let e=1;e<o-1;e++)r[e]===0||r[e-1]===0||r[e-1]>0!=r[e]>0?n[e]=0:(n[e]=3*(c[e-1]+c[e])/((2*c[e]+c[e-1])/r[e-1]+(c[e]+2*c[e-1])/r[e]),isFinite(n[e])||(n[e]=0));n[o-1]=r[o-2];for(let r=0;r<o-1;r++)i(s,e[r]+c[r]/3,t[r]+n[r]*c[r]/3,e[r+1]-c[r]/3,t[r+1]-n[r+1]*c[r]/3,e[r+1],t[r+1])}return s}var hi=new Set;function gi(){for(let e of hi)e.syncRect(!0)}j&&(qe(Ee,Me,gi),qe(De,Me,gi,!0),qe(ke,Me,()=>{Mi.pxRatio=M}));var _i=ci(),vi=ii();function yi(e,t,n,r){return(r?[e[0],e[1]].concat(e.slice(2)):[e[0]].concat(e.slice(1))).map((e,r)=>xi(e,r,t,n))}function bi(e,t){return e.map((e,n)=>n==0?{}:G({},t,e))}function xi(e,t,n,r){return G({},t==0?n:r,e)}function Si(e,t,n){return t==null?Vt:[t,n]}var Ci=Si;function wi(e,t,n){return t==null?Vt:ot(t,n,nt,!0)}function Ti(e,t,n,r){return t==null?Vt:et(t,n,e.scales[r].log,!1)}var Ei=Ti;function Di(e,t,n,r){return t==null?Vt:tt(t,n,e.scales[r].log,!1)}var Oi=Di;function ki(e,t,n,r,i){let a=ht(St(e),St(t)),o=t-e,s=Ye(i/r*o,n);do{let e=n[s],t=r*e/o;if(t>=i&&a+(e<5?It.get(e):0)<=17)return[e,t]}while(++s<n.length);return[0,0]}function Ai(e){let t,n;return e=e.replace(/(\d+)px/,(e,r)=>(t=B((n=+r)*M))+`px`),[e,t,n]}function ji(e){e.show&&[e.font,e.labelFont].forEach(e=>{let t=U(e[2]*M,1);e[0]=e[0].replace(/[0-9.]+px/,t+`px`),e[1]=t})}function Mi(e,t,n){let r={mode:L(e.mode,1)},i=r.mode;function a(e,t,n,r){let i=t.valToPct(e);return r+n*(t.dir==-1?1-i:i)}function o(e,t,n,r){let i=t.valToPct(e);return r+n*(t.dir==-1?i:1-i)}function s(e,t,n,r){return t.ori==0?a(e,t,n,r):o(e,t,n,r)}r.valToPosH=a,r.valToPosV=o;let c=!1;r.status=0;let l=r.root=ze(C);if(e.id!=null&&(l.id=e.id),Ie(l,e.class),e.title){let t=ze(E,l);t.textContent=e.title}let u=Re(`canvas`),d=r.ctx=u.getContext(`2d`),f=ze(D,l);qe(`click`,f,e=>{e.target===m&&(X!=Ni||Z!=Pi)&&Ri.click(r,e)},!0);let p=r.under=ze(O,f);f.appendChild(u);let m=r.over=ze(ee,f);e=Yt(e);let h=+L(e.pxAlign,1),g=Kr(h);(e.plugins||[]).forEach(t=>{t.opts&&(e=t.opts(r,e)||e)});let _=e.ms||.001,v=r.series=i==1?yi(e.series||[],fr,jr,!1):bi(e.series||[null],Ar),y=r.axes=yi(e.axes||[],lr,Tr,!0),b=r.scales={},x=r.bands=e.bands||[];x.forEach(e=>{e.fill=H(e.fill||null),e.dir=L(e.dir,-1)});let S=i==2?v[1].facets[0].scale:v[0].scale,ve={axes:ti,series:Ur},Ee=(e.drawOrder||[`axes`,`series`]).map(e=>ve[e]);function De(e){let t=e.distr==3?t=>vt(t>0?t:e.clamp(r,t,e.min,e.max,e.key)):e.distr==4?t=>xt(t,e.asinh):e.distr==100?t=>e.fwd(t):e=>e;return n=>{let r=t(n),{_min:i,_max:a}=e,o=a-i;return(r-i)/o}}function Oe(t){let n=b[t];if(n==null){let r=(e.scales||zt)[t]||zt;if(r.from!=null){Oe(r.from);let e=G({},b[r.from],r,{key:t});e.valToPct=De(e),b[t]=e}else{n=b[t]=G({},t==S?Nr:Pr,r),n.key=t;let e=n.time,a=n.range,o=Ht(a);if((t!=S||i==2&&!e)&&(o&&(a[0]==null||a[1]==null)&&(a={min:a[0]==null?rt:{mode:1,hard:a[0],soft:a[0]},max:a[1]==null?rt:{mode:1,hard:a[1],soft:a[1]}},o=!1),!o&&Kt(a))){let e=a;a=(t,n,r)=>n==null?Vt:ot(n,r,e)}n.range=H(a||(e?Ci:t==S?n.distr==3?Ei:n.distr==4?Oi:Si:n.distr==3?Ti:n.distr==4?Di:wi)),n.auto=H(!o&&n.auto),n.clamp=H(n.clamp||Mr),n._min=n._max=null,n.valToPct=De(n)}}}Oe(`x`),Oe(`y`),i==1&&v.forEach(e=>{Oe(e.scale)}),y.forEach(e=>{Oe(e.scale)});for(let t in e.scales)Oe(t);let j=b[S],Ne=j.distr,Pe,Fe;j.ori==0?(Ie(l,w),Pe=a,Fe=o):(Ie(l,T),Pe=o,Fe=a);let P={};for(let e in b){let t=b[e];(t.min!=null||t.max!=null)&&(P[e]={min:t.min,max:t.max},t.min=t.max=null)}let Ve=e.tzDate||(e=>new Date(B(e/_))),Ue=e.fmtDate||pn,Ge=_==1?Fn(Ve):Rn(Ve),Ke=Bn(Ve,zn(_==1?Pn:Ln,Ue)),Xe=Gn(Ve,Un(Wn,Ue)),Ze=[],F=r.legend=G({},Jn,e.legend),I=r.cursor=G({},tr,{drag:{y:i==2}},e.cursor),Qe=F.show,it=I.show,at=F.markers;F.idxs=Ze,at.width=H(at.width),at.dash=H(at.dash),at.stroke=H(at.stroke),at.fill=H(at.fill);let ct,lt,ut,R=[],ft=[],_t,yt=!1,St={};if(F.live){let e=v[1]?v[1].values:null;yt=e!=null,_t=yt?e(r,1,0):{_:0};for(let e in _t)St[e]=Ae}if(Qe){if(ct=Re(`table`,oe,l),ut=Re(`tbody`,null,ct),F.mount(r,ct),yt){lt=Re(`thead`,null,ct,ut);let e=Re(`tr`,null,lt);for(var Tt in Re(`th`,null,e),_t)Re(`th`,de,e).textContent=Tt}else Ie(ct,ce),F.live&&Ie(ct,se)}let Et={show:!0},jt={show:!1};function Mt(e,t){if(t==0&&(yt||!F.live||i==2))return Vt;let n=[],a=Re(`tr`,le,ut,ut.childNodes[t]);Ie(a,e.class),e.show||Ie(a,k);let o=Re(`th`,null,a);if(at.show){let e=ze(ue,o);if(t>0){let n=at.width(r,t);n&&(e.style.border=n+`px `+at.dash(r,t)+` `+at.stroke(r,t)),e.style.background=at.fill(r,t)}}let s=ze(de,o);for(var c in e.label instanceof HTMLElement?s.appendChild(e.label):s.textContent=e.label,t>0&&(at.show||(s.style.color=e.width>0?at.stroke(r,t):at.fill(r,t)),Ft(`click`,o,t=>{if(I._lock)return;Cn(t);let n=v.indexOf(e);if((t.ctrlKey||t.metaKey)!=F.isolate){let e=v.some((e,t)=>t>0&&t!=n&&e.show);v.forEach((t,r)=>{r>0&&Gi(r,e?r==n?Et:jt:Et,!0,$.setSeries)})}else Gi(n,{show:!e.show},!0,$.setSeries)},!1),En&&Ft(Ce,o,t=>{I._lock||(Cn(t),Gi(v.indexOf(e),$i,!0,$.setSeries))},!1)),_t){let e=Re(`td`,fe,a);e.textContent=`--`,n.push(e)}return[a,n]}let Pt=new Map;function Ft(e,t,n,i=!0){let a=Pt.get(t)||{},o=I.bind[e](r,t,n,i);o&&(qe(e,t,a[e]=o),Pt.set(t,a))}function Rt(e,t,n){let r=Pt.get(t)||{};for(let n in r)(e==null||n==e)&&(Je(n,t,r[n]),delete r[n]);e??Pt.delete(t)}let Ut=0,Jt=0,W=0,K=0,Xt=0,Zt=0,Qt=Xt,$t=Zt,tn=W,nn=K,rn=0,an=0,on=0,sn=0;r.bbox={};let cn=!1,ln=!1,un=!1,dn=!1,fn=!1,mn=!1;function hn(e,t,n){(n||e!=r.width||t!=r.height)&&gn(e,t),ni(!1),un=!0,ln=!0,si()}function gn(e,t){r.width=Ut=W=e,r.height=Jt=K=t,Xt=Zt=0,yn(),Sn();let n=r.bbox;rn=n.left=Nt(Xt*M,.5),an=n.top=Nt(Zt*M,.5),on=n.width=Nt(W*M,.5),sn=n.height=Nt(K*M,.5)}function _n(){let e=!1,t=0;for(;!e;){t++;let n=$r(t),i=ei(t);e=t==3||n&&i,e||(gn(r.width,r.height),ln=!0)}}function vn({width:e,height:t}){hn(e,t)}r.setSize=vn;function yn(){let e=!1,t=!1,n=!1,r=!1;y.forEach((i,a)=>{if(i.show&&i._show){let{side:a,_size:o}=i,s=a%2,c=o+(i.label==null?0:i.labelSize);c>0&&(s?(W-=c,a==3?(Xt+=c,r=!0):n=!0):(K-=c,a==0?(Zt+=c,e=!0):t=!0))}}),Kn[0]=e,Kn[1]=n,Kn[2]=t,Kn[3]=r,W-=Zn[1]+Zn[3],Xt+=Zn[3],K-=Zn[2]+Zn[0],Zt+=Zn[0]}function Sn(){let e=Xt+W,t=Zt+K,n=Xt,r=Zt;function i(i,a){switch(i){case 1:return e+=a,e-a;case 2:return t+=a,t-a;case 3:return n-=a,n+a;case 0:return r-=a,r+a}}y.forEach((e,t)=>{if(e.show&&e._show){let t=e.side;e._pos=i(t,e._size),e.label!=null&&(e._lpos=i(t,e.labelSize))}})}if(I.dataIdx==null){let e=I.hover,n=e.skip=new Set(e.skip??[]);n.add(void 0);let r=e.prox=H(e.prox),i=e.bias??=0;I.dataIdx=(e,a,o,s)=>{if(a==0)return o;let c=o,l=r(e,a,o,s)??V,u=l>=0&&l<V,d=j.ori==0?W:K,f=I.left,p=t[0],m=t[a];if(n.has(m[o])){c=null;let e=null,t=null,r;if(i==0||i==-1)for(r=o;e==null&&r-->0;)n.has(m[r])||(e=r);if(i==0||i==1)for(r=o;t==null&&r++<m.length;)n.has(m[r])||(t=r);if(e!=null||t!=null){if(u){let n=e==null?-1/0:Pe(p[e],j,d,0),r=t==null?1/0:Pe(p[t],j,d,0),i=f-n,a=r-f;i<=a?i<=l&&(c=e):a<=l&&(c=t)}else c=t==null?e:e==null?t:o-e<=t-o?e:t}}else u&&z(f-Pe(p[o],j,d,0))>l&&(c=null);return c}}let Cn=e=>{I.event=e};I.idxs=Ze,I._lock=!1;let wn=I.points;wn.show=H(wn.show),wn.size=H(wn.size),wn.stroke=H(wn.stroke),wn.width=H(wn.width),wn.fill=H(wn.fill);let Tn=r.focus=G({},e.focus||{alpha:.3},I.focus),En=Tn.prox>=0,Dn=En&&wn.one,On=[],kn=[],An=[];function jn(e,t){let n=wn.show(r,t);if(n instanceof HTMLElement)return Ie(n,ae),Ie(n,e.class),Be(n,-10,-10,W,K),m.insertBefore(n,On[t]),n}function q(e,t){if(i==1||t>0){let t=i==1&&b[e.scale].time,n=e.value;e.value=t?Gt(n)?Gn(Ve,Un(n,Ue)):n||Xe:n||wr,e.label=e.label||(t?dr:ur)}if(Dn||t>0){e.width=e.width==null?1:e.width,e.paths=e.paths||_i||Ot,e.fillTo=H(e.fillTo||Vr),e.pxAlign=+L(e.pxAlign,h),e.pxRound=Kr(e.pxAlign),e.stroke=H(e.stroke||null),e.fill=H(e.fill||null),e._stroke=e._fill=e._paths=e._focus=null;let t=Er(ht(1,e.width),1),n=e.points=G({},{size:t,width:ht(1,t*.2),stroke:e.stroke,space:t*2,paths:vi,_stroke:null,_fill:null},e.points);n.show=H(n.show),n.filter=H(n.filter),n.fill=H(n.fill),n.stroke=H(n.stroke),n.paths=H(n.paths),n.pxAlign=e.pxAlign}if(Qe){let n=Mt(e,t);R.splice(t,0,n[0]),ft.splice(t,0,n[1]),F.values.push(null)}if(it){Ze.splice(t,0,null);let n=null;Dn?t==0&&(n=jn(e,t)):t>0&&(n=jn(e,t)),On.splice(t,0,n),kn.splice(t,0,0),An.splice(t,0,0)}Oa(`addSeries`,t)}function Mn(e,t){t??=v.length,e=i==1?xi(e,t,fr,jr):xi(e,t,{},Ar),v.splice(t,0,e),q(v[t],t)}r.addSeries=Mn;function Hn(e){if(v.splice(e,1),Qe){F.values.splice(e,1),ft.splice(e,1);let t=R.splice(e,1)[0];Rt(null,t.firstChild),t.remove()}it&&(Ze.splice(e,1),On.splice(e,1)[0].remove(),kn.splice(e,1),An.splice(e,1)),Oa(`delSeries`,e)}r.delSeries=Hn;let Kn=[!1,!1,!1,!1];function qn(e,t){if(e._show=e.show,e.show){let n=e.side%2,i=b[e.scale];i??=(e.scale=n?v[1].scale:S,b[e.scale]);let a=i.time;e.size=H(e.size),e.space=H(e.space),e.rotate=H(e.rotate),Ht(e.incrs)&&e.incrs.forEach(e=>{!It.has(e)&&It.set(e,Lt(e))}),e.incrs=H(e.incrs||(i.distr==2?bn:a?_==1?Nn:In:xn)),e.splits=H(e.splits||(a&&i.distr==1?Ge:i.distr==3?hr:i.distr==4?gr:mr)),e.stroke=H(e.stroke),e.grid.stroke=H(e.grid.stroke),e.ticks.stroke=H(e.ticks.stroke),e.border.stroke=H(e.border.stroke);let o=e.values;e.values=Ht(o)&&!Ht(o[0])?H(o):a?Ht(o)?Bn(Ve,zn(o,Ue)):Gt(o)?Vn(Ve,o):o||Ke:o||pr,e.filter=H(e.filter||(i.distr>=3&&i.log==10?Sr:i.distr==3&&i.log==2?Cr:Dt)),e.font=Ai(e.font),e.labelFont=Ai(e.labelFont),e._size=e.size(r,null,t,0),e._space=e._rotate=e._incrs=e._found=e._splits=e._values=null,e._size>0&&(Kn[t]=!0,e._el=ze(te,f))}}function Yn(e,t,n,r){let[i,a,o,s]=n,c=t%2,l=0;return c==0&&(s||a)&&(l=t==0&&!i||t==2&&!o?B(lr.size/3):0),c==1&&(i||o)&&(l=t==1&&!a||t==3&&!s?B(Tr.size/2):0),l}let Xn=r.padding=(e.padding||[Yn,Yn,Yn,Yn]).map(e=>H(L(e,Yn))),Zn=r._padding=Xn.map((e,t)=>e(r,t,Kn,0)),Qn,J=null,Y=null,$n=i==1?v[0].idxs:null,er=null,nr=!1;function rr(e,n){if(t=e??[],r.data=r._data=t,i==2){Qn=0;for(let e=1;e<v.length;e++)Qn+=t[e][0].length}else{t.length==0&&(r.data=r._data=t=[[]]),er=t[0],Qn=er.length;let e=t;if(Ne==2){e=t.slice();let n=e[0]=Array(Qn);for(let e=0;e<Qn;e++)n[e]=e}r._data=t=e}if(ni(!0),Oa(`setData`),Ne==2&&(un=!0),n!==!1){let e=j;e.auto(r,nr)?ir():Wi(S,e.min,e.max),dn||=I.left>=0,mn=!0,si()}}r.setData=rr;function ir(){nr=!0;let e,n;i==1&&(Qn>0?(J=$n[0]=0,Y=$n[1]=Qn-1,e=t[0][J],n=t[0][Y],Ne==2?(e=J,n=Y):e==n&&(Ne==3?[e,n]=et(e,e,j.log,!1):Ne==4?[e,n]=tt(e,e,j.log,!1):j.time?n=e+B(86400/_):[e,n]=ot(e,n,nt,!0))):(J=$n[0]=e=null,Y=$n[1]=n=null)),Wi(S,e,n)}let ar,or,sr,cr,_r,vr,yr,br,xr,Dr;function Or(e,t,n,r,i,a){e??=ye,n??=Bt,r??=`butt`,i??=ye,a??=`round`,e!=ar&&(d.strokeStyle=ar=e),i!=or&&(d.fillStyle=or=i),t!=sr&&(d.lineWidth=sr=t),a!=_r&&(d.lineJoin=_r=a),r!=vr&&(d.lineCap=vr=r),n!=cr&&d.setLineDash(cr=n)}function kr(e,t,n,r){t!=or&&(d.fillStyle=or=t),e!=yr&&(d.font=yr=e),n!=br&&(d.textAlign=br=n),r!=xr&&(d.textBaseline=xr=r)}function Fr(e,t,n,i,a=0){if(i.length>0&&e.auto(r,nr)&&(t==null||t.min==null)){let t=L(J,0),r=L(Y,i.length-1),o=n.min==null?$e(i,t,r,a,e.distr==3):[n.min,n.max];e.min=mt(e.min,n.min=o[0]),e.max=ht(e.max,n.max=o[1])}}let zr={min:null,max:null};function Br(){for(let e in b){let t=b[e];P[e]==null&&(t.min==null||P[S]!=null&&t.auto(r,nr))&&(P[e]=zr)}for(let e in b){let t=b[e];P[e]==null&&t.from!=null&&P[t.from]!=null&&(P[e]=zr)}P[S]!=null&&ni(!0);let e={};for(let t in P){let n=P[t];if(n!=null){let a=e[t]=Yt(b[t],qt);if(n.min!=null)G(a,n);else if(t!=S||i==2){if(Qn==0&&a.from==null){let e=a.range(r,null,null,t);a.min=e[0],a.max=e[1]}else a.min=V,a.max=-1/0}}}if(Qn>0){v.forEach((n,a)=>{if(i==1){let i=n.scale,o=P[i];if(o==null)return;let s=e[i];if(a==0){let e=s.range(r,s.min,s.max,i);s.min=e[0],s.max=e[1],J=Ye(s.min,t[0]),Y=Ye(s.max,t[0]),Y-J>1&&(t[0][J]<s.min&&J++,t[0][Y]>s.max&&Y--),n.min=er[J],n.max=er[Y]}else n.show&&n.auto&&Fr(s,o,n,t[a],n.sorted);n.idxs[0]=J,n.idxs[1]=Y}else if(a>0&&n.show&&n.auto){let[r,i]=n.facets,o=r.scale,s=i.scale,[c,l]=t[a],u=e[o],d=e[s];u!=null&&Fr(u,P[o],r,c,r.sorted),d!=null&&Fr(d,P[s],i,l,i.sorted),n.min=i.min,n.max=i.max}});for(let t in e){let n=e[t],i=P[t];if(n.from==null&&(i==null||i.min==null)){let e=n.range(r,n.min==V?null:n.min,n.max==-1/0?null:n.max,t);n.min=e[0],n.max=e[1]}}}for(let t in e){let n=e[t];if(n.from!=null){let i=e[n.from];if(i.min==null)n.min=n.max=null;else{let e=n.range(r,i.min,i.max,t);n.min=e[0],n.max=e[1]}}}let n={},a=!1;for(let t in e){let r=e[t],i=b[t];if(i.min!=r.min||i.max!=r.max){i.min=r.min,i.max=r.max;let e=i.distr;i._min=e==3?vt(i.min):e==4?xt(i.min,i.asinh):e==100?i.fwd(i.min):i.min,i._max=e==3?vt(i.max):e==4?xt(i.max,i.asinh):e==100?i.fwd(i.max):i.max,n[t]=a=!0}}if(a){v.forEach((e,t)=>{i==2?t>0&&n.y&&(e._paths=null):n[e.scale]&&(e._paths=null)});for(let e in n)un=!0,Oa(`setScale`,e);it&&I.left>=0&&(dn=mn=!0)}for(let e in P)P[e]=null}function Hr(e){let t=Ct(J-1,0,Qn-1),n=Ct(Y+1,0,Qn-1);for(;e[t]==null&&t>0;)t--;for(;e[n]==null&&n<Qn-1;)n++;return[t,n]}function Ur(){if(Qn>0){let e=v.some(e=>e._focus)&&Dr!=Tn.alpha;e&&(d.globalAlpha=Dr=Tn.alpha),v.forEach((e,n)=>{if(n>0&&e.show&&(Wr(n,!1),Wr(n,!0),e._paths==null)){let a=Dr;Dr!=e.alpha&&(d.globalAlpha=Dr=e.alpha);let o=i==2?[0,t[n][0].length-1]:Hr(t[n]);e._paths=e.paths(r,n,o[0],o[1]),Dr!=a&&(d.globalAlpha=Dr=a)}}),v.forEach((e,t)=>{if(t>0&&e.show){let n=Dr;Dr!=e.alpha&&(d.globalAlpha=Dr=e.alpha),e._paths!=null&&Gr(t,!1);{let n=e._paths==null?null:e._paths.gaps,i=e.points.show(r,t,J,Y,n),a=e.points.filter(r,t,i,n);(i||a)&&(e.points._paths=e.points.paths(r,t,J,Y,a),Gr(t,!0))}Dr!=n&&(d.globalAlpha=Dr=n),Oa(`drawSeries`,t)}}),e&&(d.globalAlpha=Dr=1)}}function Wr(e,t){let n=t?v[e].points:v[e];n._stroke=n.stroke(r,e),n._fill=n.fill(r,e)}function Gr(e,t){let n=t?v[e].points:v[e],{stroke:r,fill:i,clip:a,flags:o,_stroke:s=n._stroke,_fill:c=n._fill,_width:l=n.width}=n._paths;l=U(l*M,3);let u=null,f=l%2/2;t&&c==null&&(c=l>0?`#fff`:s);let p=n.pxAlign==1&&f>0;if(p&&d.translate(f,f),!t){let e=rn-l/2,t=an-l/2,n=on+l,r=sn+l;u=new Path2D,u.rect(e,t,n,r)}t?Jr(s,l,n.dash,n.cap,c,r,i,o,a):qr(e,s,l,n.dash,n.cap,c,r,i,o,u,a),p&&d.translate(-f,-f)}function qr(e,n,i,a,o,s,c,l,u,d,f){let p=!1;u!=0&&x.forEach((m,h)=>{if(m.series[0]==e){let e=v[m.series[1]],g=t[m.series[1]],_=(e._paths||zt).band;Ht(_)&&(_=m.dir==1?_[0]:_[1]);let y,b=null;e.show&&_&&st(g,J,Y)?(b=m.fill(r,h)||s,y=e._paths.clip):_=null,Jr(n,i,a,o,b,c,l,u,d,f,y,_),p=!0}}),p||Jr(n,i,a,o,s,c,l,u,d,f)}function Jr(e,t,n,r,i,a,o,s,c,l,u,f){Or(e,t,n,r,i),(c||l||f)&&(d.save(),c&&d.clip(c),l&&d.clip(l)),f?(s&3)==3?(d.clip(f),u&&d.clip(u),Xr(i,o),Yr(e,a,t)):s&Rr?(Xr(i,o),d.clip(f),Yr(e,a,t)):s&Lr&&(d.save(),d.clip(f),u&&d.clip(u),Xr(i,o),d.restore(),Yr(e,a,t)):(Xr(i,o),Yr(e,a,t)),(c||l||f)&&d.restore()}function Yr(e,t,n){n>0&&(t instanceof Map?t.forEach((e,t)=>{d.strokeStyle=ar=t,d.stroke(e)}):t!=null&&e&&d.stroke(t))}function Xr(e,t){t instanceof Map?t.forEach((e,t)=>{d.fillStyle=or=t,d.fill(e)}):t!=null&&e&&d.fill(t)}function Zr(e,t,n,i){let a=y[e],o;if(i<=0)o=[0,0];else{let s=a._space=a.space(r,e,t,n,i);o=ki(t,n,a._incrs=a.incrs(r,e,t,n,i,s),i,s)}return a._found=o}function Qr(e,t,n,r,i,a,o,s,c,l){let u=o%2/2;h==1&&d.translate(u,u),Or(s,o,c,l,s),d.beginPath();let f,p,m,g,_=i+(r==0||r==3?-a:a);n==0?(p=i,g=_):(f=i,m=_);for(let r=0;r<e.length;r++)t[r]!=null&&(n==0?f=m=e[r]:p=g=e[r],d.moveTo(f,p),d.lineTo(m,g));d.stroke(),h==1&&d.translate(-u,-u)}function $r(e){let t=!0;return y.forEach((n,i)=>{if(!n.show)return;let a=b[n.scale];if(a.min==null){n._show&&(t=!1,n._show=!1,ni(!1));return}n._show||(t=!1,n._show=!0,ni(!1));let o=n.side,s=o%2,{min:c,max:l}=a,[u,d]=Zr(i,c,l,s==0?W:K);if(d==0)return;let f=a.distr==2,p=n._splits=n.splits(r,i,c,l,u,d,f),m=a.distr==2?p.map(e=>er[e]):p,h=a.distr==2?er[p[1]]-er[p[0]]:u,g=n._values=n.values(r,n.filter(r,m,i,d,h),i,d,h);n._rotate=o==2?n.rotate(r,g,i,d):0;let _=n._size;n._size=pt(n.size(r,g,i,e)),_!=null&&n._size!=_&&(t=!1)}),t}function ei(e){let t=!0;return Xn.forEach((n,i)=>{let a=n(r,i,Kn,e);a!=Zn[i]&&(t=!1),Zn[i]=a}),t}function ti(){for(let e=0;e<y.length;e++){let t=y[e];if(!t.show||!t._show)continue;let n=t.side,i=n%2,a,o,c=t.stroke(r,e),l=n==0||n==3?-1:1,[u,f]=t._found;if(t.label!=null){let s=t.labelGap*l,p=B((t._lpos+s)*M);kr(t.labelFont[0],c,`center`,n==2?me:he),d.save(),i==1?(a=o=0,d.translate(p,B(an+sn/2)),d.rotate((n==3?-dt:dt)/2)):(a=B(rn+on/2),o=p);let m=wt(t.label)?t.label(r,e,u,f):t.label;d.fillText(m,a,o),d.restore()}if(f==0)continue;let p=b[t.scale],m=i==0?on:sn,h=i==0?rn:an,_=t._splits,v=p.distr==2?_.map(e=>er[e]):_,x=p.distr==2?er[_[1]]-er[_[0]]:u,S=t.ticks,C=t.border,w=S.show?S.size:0,T=B(w*M),E=B((t.alignTo==2?t._size-w-t.gap:t.gap)*M),D=t._rotate*-dt/180,O=g(t._pos*M),ee=O+(T+E)*l;o=i==0?ee:0,a=i==1?ee:0;let te=t.font[0];kr(te,c,t.align==1?ge:t.align==2?_e:D>0?ge:D<0?_e:i==0?`center`:n==3?_e:ge,D||i==1?`middle`:n==2?me:he);let k=t.font[1]*t.lineGap,ne=_.map(e=>g(s(e,p,m,h))),re=t._values;for(let e=0;e<re.length;e++){let t=re[e];if(t!=null){i==0?a=ne[e]:o=ne[e],t=``+t;let n=t.indexOf(`
3
- `)==-1?[t]:t.split(/\n/gm);for(let e=0;e<n.length;e++){let t=n[e];D?(d.save(),d.translate(a,o+e*k),d.rotate(D),d.fillText(t,0,0),d.restore()):d.fillText(t,a,o+e*k)}}}S.show&&Qr(ne,S.filter(r,v,e,f,x),i,n,O,T,U(S.width*M,3),S.stroke(r,e),S.dash,S.cap);let ie=t.grid;ie.show&&Qr(ne,ie.filter(r,v,e,f,x),i,i==0?2:1,i==0?an:rn,i==0?sn:on,U(ie.width*M,3),ie.stroke(r,e),ie.dash,ie.cap),C.show&&Qr([O],[1],+(i==0),i==0?1:2,i==1?an:rn,i==1?sn:on,U(C.width*M,3),C.stroke(r,e),C.dash,C.cap)}Oa(`drawAxes`)}function ni(e){v.forEach((t,n)=>{n>0&&(t._paths=null,e&&(i==1?(t.min=null,t.max=null):t.facets.forEach(e=>{e.min=null,e.max=null})))})}let ri=!1,ii=!1,ai=[];function oi(){ii=!1;for(let e=0;e<ai.length;e++)Oa(...ai[e]);ai.length=0}function si(){ri||=(en(li),!0)}function ci(e,t=!1){ri=!0,ii=t,e(r),li(),t&&ai.length>0&&queueMicrotask(oi)}r.batch=ci;function li(){if(cn&&=(Br(),!1),un&&=(_n(),!1),ln){if(N(p,ge,Xt),N(p,me,Zt),N(p,A,W),N(p,pe,K),N(m,ge,Xt),N(m,me,Zt),N(m,A,W),N(m,pe,K),N(f,A,Ut),N(f,pe,Jt),u.width=B(Ut*M),u.height=B(Jt*M),y.forEach(({_el:e,_show:t,_size:n,_pos:r,side:i})=>{if(e!=null){if(t){let t=i===3||i===0?n:0,a=i%2==1;N(e,a?`left`:`top`,r-t),N(e,a?`width`:`height`,n),N(e,a?`top`:`left`,a?Zt:Xt),N(e,a?`height`:`width`,a?K:W),Le(e,k)}else Ie(e,k)}}),ar=or=sr=_r=vr=yr=br=xr=cr=null,Dr=1,fa(!0),Xt!=Qt||Zt!=$t||W!=tn||K!=nn){ni(!1);let e=W/tn,t=K/nn;if(it&&!dn&&I.left>=0){I.left*=e,I.top*=t,pi&&Be(pi,B(I.left),0,W,K),mi&&Be(mi,0,B(I.top),W,K);for(let n=0;n<On.length;n++){let r=On[n];r!=null&&(kn[n]*=e,An[n]*=t,Be(r,pt(kn[n]),pt(An[n]),W,K))}}if(Q.show&&!fn&&Q.left>=0&&Q.width>0){Q.left*=e,Q.width*=e,Q.top*=t,Q.height*=t;for(let e in ha)N(Vi,e,Q[e])}Qt=Xt,$t=Zt,tn=W,nn=K}Oa(`setSize`),ln=!1}Ut>0&&Jt>0&&(d.clearRect(0,0,u.width,u.height),Oa(`drawClear`),Ee.forEach(e=>e()),Oa(`draw`)),Q.show&&fn&&(Hi(Q),fn=!1),it&&dn&&(ua(null,!0,!1),dn=!1),F.show&&F.live&&mn&&(ca(),mn=!1),c||(c=!0,r.status=1,Oa(`ready`)),nr=!1,ri=!1}r.redraw=(e,t)=>{un=t||!1,e===!1?si():Wi(S,j.min,j.max)};function ui(e,n){let i=b[e];if(i.from==null){if(Qn==0){let t=i.range(r,n.min,n.max,e);n.min=t[0],n.max=t[1]}if(n.min>n.max){let e=n.min;n.min=n.max,n.max=e}if(Qn>1&&n.min!=null&&n.max!=null&&n.max-n.min<1e-16)return;e==S&&i.distr==2&&Qn>0&&(n.min=Ye(n.min,t[0]),n.max=Ye(n.max,t[0]),n.min==n.max&&n.max++),P[e]=n,cn=!0,si()}}r.setScale=ui;let di,fi,pi,mi,gi,Mi,Ni,Pi,Fi,Ii,X,Z,Li=!1,Ri=I.drag,zi=Ri.x,Bi=Ri.y;it&&(I.x&&(di=ze(re,m)),I.y&&(fi=ze(ie,m)),j.ori==0?(pi=di,mi=fi):(pi=fi,mi=di),X=I.left,Z=I.top);let Q=r.select=G({show:!0,over:!0,left:0,width:0,top:0,height:0},e.select),Vi=Q.show?ze(ne,Q.over?m:p):null;function Hi(e,t){if(Q.show){for(let t in e)Q[t]=e[t],t in ha&&N(Vi,t,e[t]);t!==!1&&Oa(`setSelect`)}}r.setSelect=Hi;function Ui(e){if(v[e].show)Qe&&Le(R[e],k);else if(Qe&&Ie(R[e],k),it){let t=Dn?On[0]:On[e];t!=null&&Be(t,-10,-10,W,K)}}function Wi(e,t,n){ui(e,{min:t,max:n})}function Gi(e,t,n,a){t.focus!=null&&ea(e),t.show!=null&&v.forEach((n,r)=>{r>0&&(e==r||e==null)&&(n.show=t.show,Ui(r),i==2?(Wi(n.facets[0].scale,null,null),Wi(n.facets[1].scale,null,null)):Wi(n.scale,null,null),si())}),n!==!1&&Oa(`setSeries`,e,t),a&&Ma(`setSeries`,r,e,t)}r.setSeries=Gi;function Ki(e,t){G(x[e],t)}function qi(e,t){e.fill=H(e.fill||null),e.dir=L(e.dir,-1),t??=x.length,x.splice(t,0,e)}function Ji(e){e==null?x.length=0:x.splice(e,1)}r.addBand=qi,r.setBand=Ki,r.delBand=Ji;function Yi(e,t){v[e].alpha=t,it&&On[e]!=null&&(On[e].style.opacity=t),Qe&&R[e]&&(R[e].style.opacity=t)}let Xi,Zi,Qi,$i={focus:!0};function ea(e){if(e!=Qi){let t=e==null,n=Tn.alpha!=1;v.forEach((r,a)=>{if(i==1||a>0){let i=t||a==0||a==e;r._focus=t?null:i,n&&Yi(a,i?1:Tn.alpha)}}),Qi=e,n&&si()}}Qe&&En&&Ft(we,ct,e=>{I._lock||(Cn(e),Qi!=null&&Gi(null,$i,!0,$.setSeries))});function ta(e,t,n){let r=b[t];n&&(e=e/M-(r.ori==1?Zt:Xt));let i=W;r.ori==1&&(i=K,e=i-e),r.dir==-1&&(e=i-e);let a=r._min,o=r._max,s=e/i,c=a+(o-a)*s,l=r.distr;return l==3?gt(10,c):l==4?bt(c,r.asinh):l==100?r.bwd(c):c}function na(e,n){return Ye(ta(e,S,n),t[0],J,Y)}r.valToIdx=e=>Ye(e,t[0]),r.posToIdx=na,r.posToVal=ta,r.valToPos=(e,t,n)=>b[t].ori==0?a(e,b[t],n?on:W,n?rn:0):o(e,b[t],n?sn:K,n?an:0),r.setCursor=(e,t,n)=>{X=e.left,Z=e.top,ua(null,t,n)};function ra(e,t){N(Vi,ge,Q.left=e),N(Vi,A,Q.width=t)}function ia(e,t){N(Vi,me,Q.top=e),N(Vi,pe,Q.height=t)}let aa=j.ori==0?ra:ia,oa=j.ori==1?ra:ia;function sa(){if(Qe&&F.live)for(let e=+(i==2);e<v.length;e++){if(e==0&&yt)continue;let t=F.values[e],n=0;for(let r in t)ft[e][n++].firstChild.nodeValue=t[r]}}function ca(e,t){if(e!=null&&(e.idxs?e.idxs.forEach((e,t)=>{Ze[t]=e}):Wt(e.idx)||Ze.fill(e.idx),F.idx=Ze[0]),Qe&&F.live){for(let e=0;e<v.length;e++)(e>0||i==1&&!yt)&&la(e,Ze[e]);sa()}mn=!1,t!==!1&&Oa(`setLegend`)}r.setLegend=ca;function la(e,n){let i=v[e],a=e==0&&Ne==2?er:t[e],o;yt?o=i.values(r,e,n)??St:(o=i.value(r,n==null?null:a[n],e,n),o=o==null?St:{_:o}),F.values[e]=o}function ua(e,n,a){Fi=X,Ii=Z,[X,Z]=I.move(r,X,Z),I.left=X,I.top=Z,it&&(pi&&Be(pi,B(X),0,W,K),mi&&Be(mi,0,B(Z),W,K));let o,s=J>Y;Xi=V,Zi=null;let c=j.ori==0?W:K,l=j.ori==1?W:K;if(X<0||Qn==0||s){o=I.idx=null;for(let e=0;e<v.length;e++){let t=On[e];t!=null&&Be(t,-10,-10,W,K)}En&&Gi(null,$i,!0,e==null&&$.setSeries),F.live&&(Ze.fill(o),mn=!0)}else{let e,n,a;i==1&&(e=j.ori==0?X:Z,n=ta(e,S),o=I.idx=Ye(n,t[0],J,Y),a=Pe(t[0][o],j,c,0));let s=-10,u=-10,d=0,f=0,p=!0,m=``,h=``;for(let e=+(i==2);e<v.length;e++){let g=v[e],_=Ze[e],y=_==null?null:i==1?t[e][_]:t[e][1][_],x=I.dataIdx(r,e,o,n),S=x==null?null:i==1?t[e][x]:t[e][1][x];if(mn=mn||S!=y||x!=_,Ze[e]=x,e>0&&g.show){let n=x==null?-10:x==o?a:Pe(i==1?t[0][x]:t[e][0][x],j,c,0),_=S==null?-10:Fe(S,i==1?b[g.scale]:b[g.facets[1].scale],l,0);if(En&&S!=null){let t=j.ori==1?X:Z,n=z(Tn.dist(r,e,x,_,t));if(n<Xi){let r=Tn.bias;if(r!=0){let i=ta(t,g.scale),a=S>=0?1:-1,o=i>=0?1:-1;o==a&&(o==1?r==1?S>=i:S<=i:r==1?S<=i:S>=i)&&(Xi=n,Zi=e)}else Xi=n,Zi=e}}if(mn||Dn){let t,i;j.ori==0?(t=n,i=_):(t=_,i=n);let a,o,c,l,g,v,y=!0,b=wn.bbox;if(b!=null){y=!1;let t=b(r,e);c=t.left,l=t.top,a=t.width,o=t.height}else c=t,l=i,a=o=wn.size(r,e);if(v=wn.fill(r,e),g=wn.stroke(r,e),Dn)e==Zi&&Xi<=Tn.prox&&(s=c,u=l,d=a,f=o,p=y,m=v,h=g);else{let t=On[e];t!=null&&(kn[e]=c,An[e]=l,We(t,a,o,y),He(t,v,g),Be(t,pt(c),pt(l),W,K))}}}}if(Dn){let e=Tn.prox;if(mn||(Qi==null?Xi<=e:Xi>e||Zi!=Qi)){let e=On[0];e!=null&&(kn[0]=s,An[0]=u,We(e,d,f,p),He(e,m,h),Be(e,pt(s),pt(u),W,K))}}}if(Q.show&&Li){if(e!=null){let[t,n]=$.scales,[r,i]=$.match,[a,o]=e.cursor.sync.scales,s=e.cursor.drag;if(zi=s._x,Bi=s._y,zi||Bi){let{left:s,top:u,width:d,height:f}=e.select,p=e.scales[a].ori,m=e.posToVal,h,g,_,v,y,x=t!=null&&r(t,a),S=n!=null&&i(n,o);x&&zi?(p==0?(h=s,g=d):(h=u,g=f),_=b[t],v=Pe(m(h,a),_,c,0),y=Pe(m(h+g,a),_,c,0),aa(mt(v,y),z(y-v))):aa(0,c),S&&Bi?(p==1?(h=s,g=d):(h=u,g=f),_=b[n],v=Fe(m(h,o),_,l,0),y=Fe(m(h+g,o),_,l,0),oa(mt(v,y),z(y-v))):oa(0,l)}else ga()}else{let e=z(Fi-gi),t=z(Ii-Mi);if(j.ori==1){let n=e;e=t,t=n}zi=Ri.x&&e>=Ri.dist,Bi=Ri.y&&t>=Ri.dist;let n=Ri.uni;n==null?Ri.x&&Ri.y&&(zi||Bi)&&(zi=Bi=!0):zi&&Bi&&(zi=e>=n,Bi=t>=n,!zi&&!Bi&&(t>e?Bi=!0:zi=!0));let r,i;zi&&(j.ori==0?(r=Ni,i=X):(r=Pi,i=Z),aa(mt(r,i),z(i-r)),Bi||oa(0,l)),Bi&&(j.ori==1?(r=Ni,i=X):(r=Pi,i=Z),oa(mt(r,i),z(i-r)),zi||aa(0,c)),!zi&&!Bi&&(aa(0,0),oa(0,0))}}if(Ri._x=zi,Ri._y=Bi,e==null){if(a){if(Aa!=null){let[e,t]=$.scales;$.values[0]=e==null?null:ta(j.ori==0?X:Z,e),$.values[1]=t==null?null:ta(j.ori==1?X:Z,t)}Ma(be,r,X,Z,W,K,o)}if(En){let e=a&&$.setSeries,t=Tn.prox;Qi==null?Xi<=t&&Gi(Zi,$i,!0,e):Xi>t?Gi(null,$i,!0,e):Zi!=Qi&&Gi(Zi,$i,!0,e)}}mn&&(F.idx=o,ca()),n!==!1&&Oa(`setCursor`)}let da=null;Object.defineProperty(r,"rect",{get(){return da??fa(!1),da}});function fa(e=!1){e?da=null:(da=m.getBoundingClientRect(),Oa(`syncRect`,da))}function pa(e,t,n,r,i,a,o){I._lock||Li&&e!=null&&e.movementX==0&&e.movementY==0||(ma(e,t,n,r,i,a,o,!1,e!=null),e==null?ua(t,!0,!1):ua(null,!0,!0))}function ma(e,t,n,i,a,o,c,l,u){if(da??fa(!1),Cn(e),e!=null)n=e.clientX-da.left,i=e.clientY-da.top;else{if(n<0||i<0){X=-10,Z=-10;return}let[e,r]=$.scales,c=t.cursor.sync,[l,u]=c.values,[d,f]=c.scales,[p,m]=$.match,h=t.axes[0].side%2==1,g=j.ori==0?W:K,_=j.ori==1?W:K,v=h?o:a,y=h?a:o,x=h?i:n,S=h?n:i;if(n=d==null?x/v*g:p(e,d)?s(l,b[e],g,0):-10,i=f==null?S/y*_:m(r,f)?s(u,b[r],_,0):-10,j.ori==1){let e=n;n=i,i=e}}u&&(t==null||t.cursor.event.type==be)&&((n<=1||n>=W-1)&&(n=Nt(n,W)),(i<=1||i>=K-1)&&(i=Nt(i,K))),l?(gi=n,Mi=i,[Ni,Pi]=I.move(r,n,i)):(X=n,Z=i)}let ha={width:0,height:0,left:0,top:0};function ga(){Hi(ha,!1)}let _a,va,ya,ba;function xa(e,t,n,i,a,o,s){Li=!0,zi=Bi=Ri._x=Ri._y=!1,ma(e,t,n,i,a,o,s,!0,!1),e!=null&&(Ft(Se,je,Sa,!1),Ma(xe,r,Ni,Pi,W,K,null));let{left:c,top:l,width:u,height:d}=Q;_a=c,va=l,ya=u,ba=d}function Sa(e,t,n,i,a,o,s){Li=Ri._x=Ri._y=!1,ma(e,t,n,i,a,o,s,!1,!0);let{left:c,top:l,width:u,height:d}=Q,f=u>0||d>0,p=_a!=c||va!=l||ya!=u||ba!=d;if(f&&p&&Hi(Q),Ri.setScale&&f&&p){let e=c,t=u,n=l,r=d;if(j.ori==1&&(e=l,t=d,n=c,r=u),zi&&Wi(S,ta(e,S),ta(e+t,S)),Bi)for(let e in b){let t=b[e];e!=S&&t.from==null&&t.min!=V&&Wi(e,ta(n+r,e),ta(n,e))}ga()}else I.lock&&(I._lock=!I._lock,ua(t,!0,e!=null));e!=null&&(Rt(Se,je),Ma(Se,r,X,Z,W,K,null))}function Ca(e,t,n,r,i,a,o){if(I._lock)return;Cn(e);let s=Li;if(Li){let e=!0,t=!0,n,r;j.ori==0?(n=zi,r=Bi):(n=Bi,r=zi),n&&r&&(e=X<=10||X>=W-10,t=Z<=10||Z>=K-10),n&&e&&(X=X<Ni?0:W),r&&t&&(Z=Z<Pi?0:K),ua(null,!0,!0),Li=!1}X=-10,Z=-10,Ze.fill(null),ua(null,!0,!0),s&&(Li=s)}function wa(e,t,n,i,a,o,s){I._lock||(Cn(e),ir(),ga(),e!=null&&Ma(Te,r,X,Z,W,K,null))}function Ta(){y.forEach(ji),hn(r.width,r.height,!0)}qe(ke,Me,Ta);let Ea={};Ea.mousedown=xa,Ea.mousemove=pa,Ea.mouseup=Sa,Ea.dblclick=wa,Ea.setSeries=(e,t,n,i)=>{let a=$.match[2];n=a(r,t,n),n!=-1&&Gi(n,i,!0,!1)},it&&(Ft(xe,m,xa),Ft(be,m,pa),Ft(Ce,m,e=>{Cn(e),fa(!1)}),Ft(we,m,Ca),Ft(Te,m,wa),hi.add(r),r.syncRect=fa);let Da=r.hooks=e.hooks||{};function Oa(e,t,n){ii?ai.push([e,t,n]):e in Da&&Da[e].forEach(e=>{e.call(null,r,t,n)})}(e.plugins||[]).forEach(e=>{for(let t in e.hooks)Da[t]=(Da[t]||[]).concat(e.hooks[t])});let ka=(e,t,n)=>n,$=G({key:null,setSeries:!1,filters:{pub:kt,sub:kt},scales:[S,v[1]?v[1].scale:null],match:[At,At,ka],values:[null,null]},I.sync);$.match.length==2&&$.match.push(ka),I.sync=$;let Aa=$.key,ja=Ir(Aa);function Ma(e,t,n,r,i,a,o){$.filters.pub(e,t,n,r,i,a,o)&&ja.pub(e,t,n,r,i,a,o)}ja.sub(r);function Na(e,t,n,r,i,a,o){$.filters.sub(e,t,n,r,i,a,o)&&Ea[e](null,t,n,r,i,a,o)}r.pub=Na;function Pa(){ja.unsub(r),hi.delete(r),Pt.clear(),Je(ke,Me,Ta),l.remove(),ct?.remove(),Oa(`destroy`)}r.destroy=Pa;function Fa(){Oa(`init`,e,t),rr(t||e.data,!1),P[S]?ui(S,P[S]):ir(),fn=Q.show&&(Q.width>0||Q.height>0),dn=mn=!0,hn(e.width,e.height)}return v.forEach(q),y.forEach(qn),n?n instanceof HTMLElement?(n.appendChild(l),Fa()):n(r,Fa):Fa(),r}Mi.assign=G,Mi.fmtNum=ut,Mi.rangeNum=ot,Mi.rangeLog=et,Mi.rangeAsinh=tt,Mi.orient=zr,Mi.pxRatio=M,Mi.join=$t,Mi.fmtDate=pn,Mi.tzDate=hn,Mi.sync=Ir;{Mi.addGap=Wr,Mi.clipGaps=Ur;let e=Mi.paths={points:ii};e.linear=ci,e.stepped=li,e.bars=di,e.spline=pi}var Ni=v(`<div class="empty">No burndown data (sprint not started or no start/end date)</div>`),Pi=v(`<tr><td> </td><td> </td><td> </td></tr>`),Fi=v(`<div class="burn-card"><header class="burn-header"><h2> </h2> <div class="meta"><span class="on-track-badge"> </span> <span> </span></div></header> <div class="burn-legend"><span class="k"><i style="background: var(--fg-faint)"></i> Idéal</span> <span class="k"><i style="background: var(--accent)"></i> Réel</span></div> <div class="chart-wrapper svelte-n2xgw7" role="img" aria-describedby="burndown-data-table"></div> <table class="sr-only" id="burndown-data-table" aria-label="Données du burndown"><caption>Burndown — idéal vs réel</caption><thead><tr><th scope="col">Date</th><th scope="col">Points idéal</th><th scope="col">Points réel</th></tr></thead><tbody></tbody></table></div>`),Ii=v(`<div class="view-pad"><div class="burn-wrap"><!></div></div>`);function X(v,S){r(S,!0);let C=e(()=>x(d.burndown?.ideal??[],d.burndown?.actual??[])),w=p(null),T=null,E=e(()=>d.burndown?.ideal?.length>0),D=e(()=>d.burndown?.on_track===`on-track`?`var(--success)`:d.burndown?.on_track===`at-risk`?`var(--warning)`:d.burndown?.on_track===`behind`?`var(--danger)`:`var(--fg-dim)`);t(()=>{if(!b(w)||!b(E)){T&&=(T.destroy(),null);return}let e=getComputedStyle(b(w)),t=(t,n)=>e.getPropertyValue(t).trim()||n,n=t(`--fg-faint`,`#888`),r=t(`--accent`,`#bdf03d`),i=t(`--border-faint`,`#333`),a=d.burndown.ideal.map(e=>({ts:Math.floor(Date.parse(e.date)/1e3),pts:e.points})),o=d.burndown.actual.map(e=>({ts:Math.floor(Date.parse(e.date)/1e3),pts:e.points})),s=new Set([...a.map(e=>e.ts),...o.map(e=>e.ts)]),c=Array.from(s).sort((e,t)=>e-t),l=[c,c.map(e=>a.find(t=>t.ts===e)?.pts??null),c.map(e=>o.find(t=>t.ts===e)?.pts??null)],u={width:b(w).clientWidth||800,height:320,scales:{x:{time:!0}},axes:[{stroke:n,grid:{stroke:i},ticks:{stroke:i},values:(e,t)=>t.map(e=>{let t=new Date(e*1e3);return`${String(t.getDate()).padStart(2,`0`)}/${String(t.getMonth()+1).padStart(2,`0`)}`})},{stroke:n,grid:{stroke:i},ticks:{stroke:i}}],series:[{label:`Date`},{label:`Ideal`,stroke:n,width:1.5,dash:[5,5],points:{show:!1}},{label:`Actual`,stroke:r,width:3,spanGaps:!0,points:{show:!0,size:6,fill:r,stroke:r}}],legend:{show:!0}};T&&T.destroy(),T=new Mi(u,l,b(w));let f=new ResizeObserver(()=>{T&&b(w)&&T.setSize({width:b(w).clientWidth,height:320})});return f.observe(b(w)),()=>{f.disconnect(),T&&=(T.destroy(),null)}});var O=Ii(),ee=y(O),te=y(ee),k=e=>{var t=Ni();l(e,t)},ne=e=>{var t=Fi(),r=y(t),f=y(r),p=y(f,!0);a(f);var h=n(f,2),v=y(h),x=y(v,!0);a(v);var S=n(v,2),T=y(S);a(S),a(h),a(r);var E=n(r,4);_(E,e=>i(w,e),()=>b(w));var O=n(E,2),ee=n(y(O),2);c(ee,21,()=>b(C),g,(e,t)=>{var r=Pi(),i=y(r),s=y(i,!0);a(i);var c=n(i),d=y(c,!0);a(c);var f=n(c),p=y(f,!0);a(f),a(r),o(()=>{u(s,b(t).date),u(d,b(t).ideal??`—`),u(p,b(t).actual??`—`)}),l(e,r)}),a(ee),a(O),a(t),o(()=>{u(p,d.sprint?.name||`Current Sprint`),m(v,`background: color-mix(in oklch, ${b(D)??``} 16%, transparent); color: ${b(D)??``}`),u(x,d.burndown.on_track||`unknown`),u(T,`${d.burndown.total_points??``}p total`),s(E,`aria-label`,`Graphique de burndown du sprint ${(d.sprint?.name||`courant`)??``} : idéal vs réel`)}),l(e,t)};h(te,e=>{!d.burndown||!b(E)?e(k):e(ne,-1)}),a(ee),a(O),l(v,O),f()}export{X as default};
@@ -1 +0,0 @@
1
- import{A as e,C as t,D as n,E as r,M as i,N as a,O as o,P as s,S as c,T as l,_ as u,a as d,b as f,c as p,d as m,f as h,g,h as _,j as v,k as y,l as ee,m as b,o as x,p as S,r as C,u as w,v as T,w as E,x as D,y as O}from"./index-CI2O6JO9.js";import{marked as k}from"./marked.esm-CYIZq5lG.js";import A from"./purify.es-ChwZkWde.js";function j(e){return[...e].sort((e,t)=>t.id.localeCompare(e.id,void 0,{numeric:!0,sensitivity:`base`}))}var M=T(`<div class="empty">Chargement…</div>`),N=T(`<div class="empty"> </div>`),P=T(`<div class="empty">Aucun sprint</div>`),F=T(`<span class="tag-mini svelte-1yxo9kf">goal</span>`),te=T(`<span class="tag-mini svelte-1yxo9kf">review</span>`),ne=T(`<span class="tag-mini svelte-1yxo9kf">retro</span>`),re=T(`<div class="si-tags svelte-1yxo9kf"><!> <!> <!></div>`),I=T(`<button class="sprint-item"><div class="si-top"><span class="si-name"> </span> <span> </span></div> <div class="si-stat"><span> </span> <span> </span></div> <div class="proj-bar" style="margin-top:9px"><span></span></div> <!></button>`),L=T(`<div class="empty">Sélectionnez un sprint</div>`),ie=T(`<span class="tag-mini svelte-1yxo9kf"> </span>`),R=T(`<span> </span>`),ae=T(`<div class="sd-panel"><h3>Goal</h3> <div class="md-body"></div></div>`),oe=T(`<p style="color: var(--fg-faint); font-size:13px">Aucune story dans ce sprint.</p>`),se=T(`<button class="toggle svelte-1yxo9kf"> </button>`),ce=T(`<span class="toggle-spacer svelte-1yxo9kf"></span>`),le=T(`<span class="s-assignee mono svelte-1yxo9kf"> </span>`),ue=T(`<tr><td class="t-name mono"> </td><td> </td><td> </td><td class="t-hrs"> </td><td class="t-hrs"> </td><td> </td></tr>`),de=T(`<table class="tasks sprint-tasks svelte-1yxo9kf"><thead><tr><th>Task</th><th>Type</th><th>Statut</th><th style="text-align:right">Est</th><th style="text-align:right">Réel</th><th>Assigné</th></tr></thead><tbody></tbody></table>`),fe=T(`<div class="sd-story-wrap"><div class="sd-story svelte-1yxo9kf"><!> <span class="s-id mono"> </span> <span class="s-t"> </span> <!> <span class="s-status"><i></i> </span> <span class="points mono svelte-1yxo9kf"> </span></div> <!></div>`),pe=T(`<div class="sd-panel"><h3>Review <span class="pill" style="background: var(--success-soft); color: var(--success)">review</span></h3> <div class="md-body review-md"></div></div>`),me=T(`<div class="sd-panel"><h3>Retro <span class="pill" style="background: var(--accent-soft); color: var(--accent)">team</span></h3> <div class="md-body review-md"></div></div>`),he=T(`<div class="sd-head"><div style="flex:1"><div style="display:flex; align-items:center; gap:11px"><h2> </h2> <span style="font-size:11px"> </span></div> <div class="sd-sub svelte-1yxo9kf"><span class="mono"> </span> <!> <!> <!></div></div></div> <div class="sd-metrics"><div class="metric"><div class="mk">Points</div><div class="mv"> <small>pts</small></div></div> <div class="metric"><div class="mk">Complétés</div><div class="mv"> <small>pts</small></div><div class="msub"> </div></div> <div class="metric"><div class="mk">Stories</div><div class="mv"> </div></div></div> <!> <div class="sd-panel"><h3>Stories &amp; Tasks <span class="pill" style="background: var(--accent-soft); color: var(--accent)"> </span></h3> <!></div> <!> <!>`,1),z=T(`<div class="view-pad"><div class="sprints-layout"><aside class="sprint-list" aria-label="Liste des sprints"><!></aside> <section class="sprint-detail" aria-label="Détail du sprint"><!></section></div></div>`);function B(T,O){i(O,!0);let B=y(n([])),V=y(!0),H=y(null),U=y(null),W=y(!1),G=y(null),K=e(()=>x.parts[1]??null);function ge(e){return e.total_points>0&&e.done_points>=e.total_points?`done`:e.done_points>0?`active`:`planned`}let q=e=>e.total_points?Math.round(e.done_points/e.total_points*100):0;async function _e(){o(V,!0),o(H,null);try{let e=await fetch(`/api/sprints`);if(!e.ok)throw Error(`HTTP ${e.status}`);let t=await e.json();o(B,j(t.sprints||[]),!0)}catch(e){o(H,e.message,!0)}finally{o(V,!1)}}async function ve(e){if(!e){o(U,null);return}o(W,!0),o(G,null);try{let t=await fetch(`/api/sprints/${encodeURIComponent(e)}`);if(!t.ok)throw Error(`HTTP ${t.status}`);o(U,await t.json(),!0)}catch(e){o(G,e.message,!0),o(U,null)}finally{o(W,!1)}}function ye(e){if(!e)return``;try{return A.sanitize(k.parse(e))}catch{return`<p>Error rendering markdown</p>`}}let be=e(()=>{let e={};for(let t of D(U)?.tasks??[])(e[t.us_id]??=[]).push(t);return e}),J=e(()=>{let e=D(U)?.stories??[],t=e.reduce((e,t)=>e+(t.story_points||0),0),n=e.filter(e=>e.status===`done`).reduce((e,t)=>e+(t.story_points||0),0);return{total:t,done:n,count:e.length,pct:t?Math.round(n/t*100):0}}),Y=y(n(new Set));function xe(e){D(Y).has(e)?D(Y).delete(e):D(Y).add(e),o(Y,new Set(D(Y)),!0)}t(()=>{_e()}),t(()=>{ve(D(K))});var X=z(),Se=E(X),Z=E(Se),Q=E(Z),Ce=e=>{var t=M();g(e,t)},we=e=>{var t=N(),n=E(t);s(t),c(()=>_(n,`Erreur : ${D(H)??``}`)),g(e,t)},Te=e=>{var t=P();g(e,t)},Ee=t=>{var n=u(),i=l(n);h(i,17,()=>D(B),S,(t,n)=>{let i=e(()=>ge(D(n)));var a=I(),o=E(a),l=E(o),u=E(l,!0);s(l);var m=r(l,2),h=E(m,!0);s(m),s(o);var v=r(o,2),y=E(v),x=E(y);s(y);var S=r(y,2),C=E(S);s(S),s(v);var T=r(v,2),O=E(T);s(T);var k=r(T,2),A=e=>{var t=re(),i=E(t),a=e=>{var t=F();g(e,t)};b(i,e=>{D(n).has_goal&&e(a)});var o=r(i,2),c=e=>{var t=te();g(e,t)};b(o,e=>{D(n).has_review&&e(c)});var l=r(o,2),u=e=>{var t=ne();g(e,t)};b(l,e=>{D(n).has_retro&&e(u)}),s(t),g(e,t)};b(k,e=>{(D(n).has_goal||D(n).has_review||D(n).has_retro)&&e(A)}),s(a),c(e=>{p(a,`aria-current`,D(K)===D(n).id),_(u,D(n).id),w(m,1,`si-state ${D(i)??``}`,`svelte-1yxo9kf`),_(h,D(i)),_(x,`${D(n).story_count??``} US`),_(C,`${D(n).done_points??``}/${D(n).total_points??``} pts`),ee(O,`width: ${e??``}%`)},[()=>q(D(n))]),f(`click`,a,()=>d(`/sprints/${D(n).id}`)),g(t,a)}),g(t,n)};b(Q,e=>{D(V)?e(Ce):D(H)?e(we,1):D(B).length===0?e(Te,2):e(Ee,-1)}),s(Z);var De=r(Z,2),$=E(De),Oe=e=>{var t=L();g(e,t)},ke=e=>{var t=M();g(e,t)},Ae=e=>{var t=N(),n=E(t);s(t),c(()=>_(n,`Erreur : ${D(G)??``}`)),g(e,t)},je=t=>{let n=e(()=>ge({total_points:D(J).total,done_points:D(J).done}));var i=he(),o=l(i),d=E(o),v=E(d),y=E(v),x=E(y,!0);s(y);var T=r(y,2),O=E(T,!0);s(T),s(v);var k=r(v,2),A=E(k),j=E(A,!0);s(A);var M=r(A,2),N=e=>{var t=ie(),n=E(t,!0);s(t),c(()=>_(n,D(U).sprint.epic)),g(e,t)};b(M,e=>{D(U).sprint.epic&&e(N)});var P=r(M,2),F=e=>{var t=R(),n=E(t);s(t),c(()=>_(n,`${D(U).sprint.start_date??``} → ${(D(U).sprint.end_date||`…`)??``}`)),g(e,t)},te=e=>{var t=R(),n=E(t);s(t),c(()=>_(n,`clôturé le ${D(U).sprint.end_date??``}`)),g(e,t)};b(P,e=>{D(U).sprint.start_date?e(F):D(U).sprint.end_date&&e(te,1)});var ne=r(P,2),re=e=>{var t=R(),n=E(t);s(t),c(()=>_(n,`${D(U).sprint.points_delivered??``} pts livrés`)),g(e,t)};b(ne,e=>{D(U).sprint.points_delivered!=null&&e(re)}),s(k),s(d),s(o);var I=r(o,2),L=E(I),z=r(E(L)),B=E(z,!0);a(),s(z),s(L);var V=r(L,2),H=r(E(V)),W=E(H,!0);a(),s(H);var G=r(H),K=E(G);s(G),s(V);var q=r(V,2),_e=r(E(q)),ve=E(_e,!0);s(_e),s(q),s(I);var X=r(I,2),Se=e=>{var t=ae(),n=r(E(t),2);m(n,()=>ye(D(U).goal),!0),s(n),s(t),g(e,t)};b(X,e=>{D(U).goal&&e(Se)});var Z=r(X,2),Q=E(Z),Ce=r(E(Q)),we=E(Ce,!0);s(Ce),s(Q);var Te=r(Q,2),Ee=e=>{var t=oe();g(e,t)},De=t=>{var n=u(),i=l(n);h(i,17,()=>D(U).stories,S,(t,n)=>{let i=e(()=>D(be)[D(n).id]??[]);var a=fe(),o=E(a),l=E(o),u=e=>{var t=se(),r=E(t,!0);s(t),c((e,i)=>{p(t,`aria-expanded`,e),p(t,`aria-label`,`Afficher les tâches de ${D(n).id??``}`),_(r,i)},[()=>D(Y).has(D(n).id),()=>D(Y).has(D(n).id)?`▼`:`▶`]),f(`click`,t,()=>xe(D(n).id)),g(e,t)},d=e=>{var t=ce();g(e,t)};b(l,e=>{D(i).length?e(u):e(d,-1)});var m=r(l,2),v=E(m,!0);s(m);var y=r(m,2),x=E(y,!0);s(y);var w=r(y,2),T=e=>{var t=le(),r=E(t,!0);s(t),c(()=>_(r,D(n).assigned_to)),g(e,t)};b(w,e=>{D(n).assigned_to&&e(T)});var O=r(w,2),k=E(O),A=r(k,1,!0);s(O);var j=r(O,2),M=E(j,!0);s(j),s(o);var N=r(o,2),P=e=>{var t=de(),n=r(E(t));h(n,21,()=>D(i),S,(e,t)=>{var n=ue(),i=E(n),a=E(i,!0);s(i);var o=r(i),l=E(o,!0);s(o);var u=r(o),d=E(u,!0);s(u);var f=r(u),p=E(f,!0);s(f);var m=r(f),h=E(m,!0);s(m);var v=r(m),y=E(v,!0);s(v),s(n),c(()=>{_(a,D(t).id),_(l,D(t).type),_(d,D(t).status),_(p,D(t).estimation_hours??`—`),_(h,D(t).actual_hours??`—`),_(y,D(t).assigned_to||`—`)}),g(e,n)}),s(n),s(t),g(e,t)},F=e(()=>D(Y).has(D(n).id)&&D(i).length);b(N,e=>{D(F)&&e(P)}),s(a),c(()=>{_(v,D(n).id),_(x,D(n).title),ee(k,`width:8px;height:8px;border-radius:50%;background: var(${(C[D(n).status]?.cssVar||`--fg-faint`)??``});display:inline-block`),_(A,C[D(n).status]?.label||D(n).status),_(M,D(n).story_points??`—`)}),g(t,a)}),g(t,n)};b(Te,e=>{D(U).stories.length===0?e(Ee):e(De,-1)}),s(Z);var $=r(Z,2),Oe=e=>{var t=pe(),n=r(E(t),2);m(n,()=>ye(D(U).review),!0),s(n),s(t),g(e,t)};b($,e=>{D(U).review&&e(Oe)});var ke=r($,2),Ae=e=>{var t=me(),n=r(E(t),2);m(n,()=>ye(D(U).retro),!0),s(n),s(t),g(e,t)};b(ke,e=>{D(U).retro&&e(Ae)}),c(()=>{_(x,D(U).sprint.name||D(U).sprint.id),w(T,1,`si-state ${D(n)??``}`,`svelte-1yxo9kf`),_(O,D(n)),_(j,D(U).sprint.id),_(B,D(J).total),_(W,D(J).done),_(K,`${D(J).pct??``}% du total`),_(ve,D(J).count),_(we,D(U).stories.length)}),g(t,i)};b($,e=>{D(K)?D(W)?e(ke,1):D(G)?e(Ae,2):D(U)&&e(je,3):e(Oe)}),s(De),s(Se),s(X),g(T,X),v()}O([`click`]);export{B as default};