@sentropic/design-system-elements 0.2.0 → 0.3.2

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.
Files changed (93) hide show
  1. package/LICENSE.THIRD-PARTY.md +44 -1
  2. package/README.md +81 -13
  3. package/catalog.json +401 -7
  4. package/dist/browser/chunks/{Modeler-BfAmwsmK.js → Modeler-D87tL_OJ.js} +4 -4
  5. package/dist/browser/chunks/Viewer-D9zjRrp2.js +4 -0
  6. package/dist/browser/chunks/bpmn-canvas-BevbP_6a.js +1 -0
  7. package/dist/browser/chunks/bpmn-mount-BhO_zb0S.js +2202 -0
  8. package/dist/browser/chunks/dist-DRauAwm2.js +6 -0
  9. package/dist/browser/chunks/{entropic-CM5BHERN.js → entropic-MwNVEq6w.js} +639 -0
  10. package/dist/browser/chunks/focus-renderer-BWm7DlQD.js +55 -0
  11. package/dist/browser/chunks/{forge-B8hrW4lA.js → forge-CzwO8Hbe.js} +639 -0
  12. package/dist/browser/chunks/layout-T3X333Za.js +1 -0
  13. package/dist/browser/elements.js +671 -6
  14. package/dist/browser/sri.json +52 -45
  15. package/dist/contracts/bar-chart.js +2 -2
  16. package/dist/contracts/decision-dossier.d.ts +4 -8
  17. package/dist/contracts/decision-dossier.js +8 -12
  18. package/dist/contracts/index.d.ts +1 -0
  19. package/dist/contracts/index.js +2 -0
  20. package/dist/contracts/time-series-chart.d.ts +49 -0
  21. package/dist/contracts/time-series-chart.js +37 -0
  22. package/dist/dossier/dossier-mount.js +845 -0
  23. package/dist/dossier/renderer/dossier.css +2 -0
  24. package/dist/element/bpmn-mount.d.ts +11 -0
  25. package/dist/element/bpmn-mount.js +56 -0
  26. package/dist/element/bpmn-types.d.ts +27 -0
  27. package/dist/element/bpmn-types.js +12 -0
  28. package/dist/element/bpmn.d.ts +10 -0
  29. package/dist/element/bpmn.js +39 -0
  30. package/dist/element/dom/dossier-mount.d.ts +25 -0
  31. package/dist/element/dom/dossier-review-mount.d.ts +25 -0
  32. package/dist/element/dom/dossier-review-state.svelte.d.ts +13 -0
  33. package/dist/element/dom/engines/bpmn-canvas.d.ts +11 -0
  34. package/dist/element/dom/engines/bpmn-canvas.js +11 -0
  35. package/dist/element/dom/engines/dossier-diagrams.d.ts +5 -0
  36. package/dist/element/dom/engines/dossier-evidence.d.ts +9 -0
  37. package/dist/element/dom/engines/dossier-styles.d.ts +21 -0
  38. package/dist/element/dom/engines/focus-renderer.d.ts +60 -0
  39. package/dist/element/dom/engines/focus-snapshot.d.ts +3 -0
  40. package/dist/element/dom/intents.d.ts +20 -0
  41. package/dist/element/markdown/minimal-markdown.d.ts +1 -2
  42. package/dist/element/markdown/minimal-markdown.js +19 -1
  43. package/dist/element/validator.d.ts +26 -0
  44. package/dist/element/validator.js +54 -0
  45. package/dist/focus-diagrams/diagram-layout.d.ts +140 -0
  46. package/dist/focus-diagrams/diagram-layout.js +190 -0
  47. package/dist/focus-diagrams/diagram-source.d.ts +11 -0
  48. package/dist/focus-diagrams/diagram-source.js +147 -0
  49. package/dist/focus-diagrams/dossier-views.d.ts +21 -0
  50. package/dist/focus-diagrams/dossier-views.js +57 -0
  51. package/dist/focus-diagrams/ecosystem.json +853 -0
  52. package/dist/focus-kit/index.html +13 -0
  53. package/dist/focus-kit/renderer/dossier.css +2 -0
  54. package/dist/focus-kit/renderer/dossier.js +845 -0
  55. package/dist/focus-kit-manifest.json +1 -0
  56. package/dist/focus-kit.d.ts +9 -0
  57. package/dist/focus-kit.js +30 -0
  58. package/dist/format-time-series-markdown.d.ts +5 -0
  59. package/dist/format-time-series-markdown.js +24 -0
  60. package/dist/generator/parity.js +6 -1
  61. package/dist/index.d.ts +2 -0
  62. package/dist/index.js +1 -0
  63. package/dist/ports/dossier-views.d.ts +3 -0
  64. package/dist/ports/dossier-views.js +3 -0
  65. package/dist/ports/focus.d.ts +0 -1
  66. package/dist/ports/types.d.ts +0 -1
  67. package/dist/shells/BarChart.html +8494 -0
  68. package/dist/shells/BarChart.js +8482 -0
  69. package/dist/shells/DecisionDossier.html +8502 -0
  70. package/dist/shells/DecisionDossier.js +8490 -0
  71. package/dist/shells/TimeSeriesChart.html +8475 -0
  72. package/dist/shells/TimeSeriesChart.js +8463 -0
  73. package/dist/shells/manifest.json +108 -0
  74. package/dist/structure/interpreter.d.ts +1 -1
  75. package/dist/structure/interpreter.js +14 -4
  76. package/dist/time-series.d.ts +13 -0
  77. package/dist/time-series.js +15 -0
  78. package/dist/validate/envelope.js +5 -1
  79. package/dist/validate/time-series.d.ts +5 -0
  80. package/dist/validate/time-series.js +28 -0
  81. package/fixtures/time-series-multi.json +46 -0
  82. package/fixtures/time-series-single.json +28 -0
  83. package/fixtures/time-series-thresholds.json +52 -0
  84. package/package.json +40 -6
  85. package/schemas/BarChart.v1.json +2 -2
  86. package/schemas/DecisionDossier.v1.json +155 -5
  87. package/schemas/TimeSeriesChart.v1.json +287 -0
  88. package/skill/SKILL.md +27 -0
  89. package/dist/browser/chunks/Viewer-eYLzc3fD.js +0 -4
  90. package/dist/browser/chunks/bpmn-canvas-DeAWdJFy.js +0 -2207
  91. package/dist/browser/chunks/dist-O6_2ByYB.js +0 -1
  92. package/dist/browser/chunks/focus-renderer-0elVToA2.js +0 -10
  93. package/dist/browser/chunks/layout-q0TR9-aY.js +0 -1
@@ -1,6 +1,6 @@
1
- typeof window<`u`&&((window.__svelte??={}).v??=new Set).add(`5`);var e={},t=Symbol(),n=`http://www.w3.org/1999/xhtml`,r=Array.isArray,i=Array.prototype.indexOf,a=Array.prototype.includes,o=Array.from,s=Object.keys,c=Object.defineProperty,l=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyDescriptors,d=Object.prototype,f=Array.prototype,p=Object.getPrototypeOf,m=Object.isExtensible;function h(e){return typeof e==`function`}var g=()=>{};function _(e){for(var t=0;t<e.length;t++)e[t]()}function v(){var e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}var y=1024,b=2048,x=4096,S=8192,ee=16384,te=32768,ne=1<<25,re=65536,C=1<<19,ie=1<<20,ae=1<<25,w=65536,oe=1<<21,se=1<<22,T=1<<23,E=Symbol(`$state`),ce=Symbol(`legacy props`),le=Symbol(``),ue=Symbol(`attributes`),de=Symbol(`class`),fe=Symbol(`style`),pe=Symbol(`text`),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(){throw Error(`https://svelte.dev/e/hydration_failed`)}function we(e){throw Error(`https://svelte.dev/e/props_invalid_value`)}function Te(){throw Error(`https://svelte.dev/e/state_descriptors_fixed`)}function Ee(){throw Error(`https://svelte.dev/e/state_prototype_fixed`)}function De(){throw Error(`https://svelte.dev/e/state_unsafe_mutation`)}function Oe(){throw Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`)}function ke(){console.warn(`https://svelte.dev/e/derived_inert`)}function Ae(e){console.warn(`https://svelte.dev/e/hydration_mismatch`)}function je(){console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`)}var D=!1;function Me(e){D=e}var O;function k(t){if(t===null)throw Ae(),e;return O=t}function Ne(){return k(en(O))}function A(t){if(D){if(en(O)!==null)throw Ae(),e;O=t}}function Pe(e=1){if(D){for(var t=e,n=O;t--;)n=en(n);O=n}}function Fe(e=!0){for(var t=0,n=O;;){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=en(n);e&&n.remove(),n=i}}function Ie(t){if(!t||t.nodeType!==8)throw Ae(),e;return t.data}function Le(e){return e===this.v}function Re(e,t){return e==e?e!==t||typeof e==`object`&&!!e||typeof e==`function`:t==t}function ze(e){return!Re(e,this.v)}var j=null;function Be(e){j=e}function Ve(e,t=!1,n){j={p:j,i:!1,c:null,e:null,s:e,x:null,r:U,l:null}}function He(e){var t=j,n=t.e;if(n!==null){t.e=null;for(var r of n)pn(r)}return e!==void 0&&(t.x=e),t.i=!0,j=t.p,e??{}}function Ue(){return!0}var We=[];function Ge(){var e=We;We=[],_(e)}function Ke(e){if(We.length===0&&!ot){var t=We;queueMicrotask(()=>{t===We&&Ge()})}We.push(e)}function qe(){for(;We.length>0;)Ge()}function Je(e){var t=U;if(t===null)return H.f|=T,e;if(!(t.f&32768)&&!(t.f&4))throw e;Ye(e,t)}function Ye(e,t){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 Xe=~(b|x|y);function M(e,t){e.f=e.f&Xe|t}function Ze(e){e.f&512||e.deps===null?M(e,y):M(e,x)}function Qe(e){if(e!==null)for(let t of e)t.f&2&&t.f&65536&&(t.f^=w,Qe(t.deps))}function $e(e,t,n){e.f&2048?t.add(e):e.f&4096&&n.add(e),Qe(e.deps),M(e,y)}var et=!1;function tt(e){var t=et;try{return et=!1,[e(),et]}finally{et=t}}var nt=null,N=null,rt=null,it=null,at=null,ot=!1,st=!1,ct=null,lt=null,ut=0,dt=1,ft=class e{id=dt++;#e=!1;linked=!0;#t=null;#n=null;async_deriveds=new Map;current=new Map;previous=new Map;unblocked=new Set;#r=new Set;#i=new Set;#a=new Set;#o=0;#s=new Map;#c=null;#l=[];#u=[];#d=new Set;#f=new Set;#p=new Map;#m=new Set;is_fork=!1;#h=!1;#g(){if(this.is_fork)return!0;for(let n of this.#s.keys()){for(var e=n,t=!1;e.parent!==null;){if(this.#p.has(e)){t=!0;break}e=e.parent}if(!t)return!0}return!1}skip_effect(e){this.#p.has(e)||this.#p.set(e,{d:[],m:[]}),this.#m.delete(e)}unskip_effect(e,t=e=>this.schedule(e)){var n=this.#p.get(e);if(n){this.#p.delete(e);for(var r of n.d)M(r,b),t(r);for(r of n.m)M(r,x),t(r)}this.#m.add(e)}#_(){if(this.#e=!0,ut++>1e3&&(this.#C(),mt()),!this.#g()){for(let e of this.#d)this.#f.delete(e),M(e,b),this.schedule(e);for(let e of this.#f)M(e,x),this.schedule(e)}let t=this.#l;this.#l=[],this.apply();var n=ct=[],r=[],i=lt=[];for(let e of t)try{this.#v(e,n,r)}catch(t){throw yt(e),t}if(N=null,i.length>0){var a=e.ensure();for(let e of i)a.schedule(e)}if(ct=null,lt=null,this.#g()){this.#x(r),this.#x(n);for(let[e,t]of this.#p)vt(e,t);i.length>0&&N.#_();return}let o=this.#y();if(o)o.#b(this);else{this.#d.clear(),this.#f.clear();for(let e of this.#r)e(this);this.#r.clear(),rt=this,gt(r),gt(n),rt=null,this.#c?.resolve();var s=N;if(this.linked&&this.#o===0&&this.#C(),this.#l.length>0){s===null&&(s=this,this.#S());let e=s;e.#l.push(...this.#l.filter(t=>!e.#l.includes(t)))}s!==null&&s.#_()}}#v(e,t,n){e.f^=y;for(var r=e.first;r!==null;){var i=r.f,a=!!(i&96);if(!(a&&i&1024||i&8192||this.#p.has(r))&&r.fn!==null){a?r.f^=y:i&4?t.push(r):qn(r)&&(i&16&&this.#f.add(r),Qn(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}}}#y(){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}#b(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)}let t=e=>{var n=e.reactions;if(n!==null)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.#f.delete(i),M(i,b),this.schedule(i))}}};for(let e of this.current.keys())t(e);this.oncommit(()=>e.discard()),e.#C(),N=this,this.#_()}#x(e){for(var t=0;t<e.length;t+=1)$e(e[t],this.#d,this.#f)}capture(e,n,r=!1){e.v!==t&&!this.previous.has(e)&&this.previous.set(e,e.v),e.f&8388608||(this.current.set(e,[n,r]),it?.set(e,n)),this.is_fork||(e.v=n)}activate(){N=this}deactivate(){N=null,it=null}flush(){try{st=!0,N=this,this.#_()}finally{ut=0,at=null,ct=null,lt=null,st=!1,N=null,it=null,Rt.clear()}}discard(){for(let e of this.#i)e(this);this.#i.clear(),this.#a.clear(),this.#C()}register_created_effect(e){this.#u.push(e)}increment(e,t){if(this.#o+=1,e){let e=this.#s.get(t)??0;this.#s.set(t,e+1)}}decrement(e,t){if(--this.#o,e){let e=this.#s.get(t)??0;e===1?this.#s.delete(t):this.#s.set(t,e-1)}this.#h||(this.#h=!0,Ke(()=>{this.#h=!1,this.linked&&this.flush()}))}transfer_effects(e,t){for(let t of e)this.#d.add(t);for(let e of t)this.#f.add(e);e.clear(),t.clear()}oncommit(e){this.#r.add(e)}ondiscard(e){this.#i.add(e)}on_fork_commit(e){this.#a.add(e)}run_fork_commit_callbacks(){for(let e of this.#a)e(this);this.#a.clear()}settled(){return(this.#c??=v()).promise}static ensure(){if(N===null){let t=N=new e;t.#S(),!st&&!ot&&Ke(()=>{t.#e||t.flush()})}return N}apply(){it=null}schedule(e){if(at=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(ct!==null&&t===U&&(H===null||!(H.f&2)))return;if(n&96){if(!(n&1024))return;t.f^=y}}this.#l.push(t)}}#S(){nt===null?nt=this:(nt.#n=this,this.#t=nt),nt=this}#C(){var e=this.#t,t=this.#n;e===null||(e.#n=t),t===null?nt=e:t.#t=e,this.linked=!1}};function pt(e){var t=ot;ot=!0;try{var n;for(e&&(N!==null&&!N.is_fork&&N.flush(),n=e());;){if(qe(),N===null)return n;N.flush()}}finally{ot=t}}function mt(){try{Se()}catch(e){Ye(e,at)}}var ht=null;function gt(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&24576)&&qn(r)&&(ht=new Set,Qn(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&Tn(r),ht?.size>0)){Rt.clear();for(let e of ht){if(e.f&24576)continue;let t=[e],n=e.parent;for(;n!==null;)ht.has(n)&&(ht.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){let n=t[e];n.f&24576||Qn(n)}}ht.clear()}}ht=null}}function _t(e){N.schedule(e)}function vt(e,t){if(!(e.f&32&&e.f&1024)){e.f&2048?t.d.push(e):e.f&4096&&t.m.push(e),M(e,y);for(var n=e.first;n!==null;)vt(n,t),n=n.next}}function yt(e){M(e,y);for(var t=e.first;t!==null;)yt(t),t=t.next}function bt(e){let t=0,n=Bt(0),r;return()=>{un()&&(K(n),vn(()=>(t===0&&(r=tr(()=>e(()=>Wt(n)))),t+=1,()=>{Ke(()=>{--t,t===0&&(r?.(),r=void 0,Wt(n))})})))}}var xt=re|C;function St(e,t,n,r){new Ct(e,t,n,r)}var Ct=class{parent;is_pending=!1;transform_error;#e;#t=D?O: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=bt(()=>(this.#m=Bt(this.#l),()=>{this.#m=null}));constructor(e,t,n,r){this.#e=e,this.#n=t,this.#r=e=>{var t=U;t.b=this,t.f|=128,n(e)},this.parent=U.b,this.transform_error=r??this.parent?.transform_error??(e=>e),this.#i=yn(()=>{if(D){let e=this.#t;Ne();let t=e.data===`[!`;if(e.data.startsWith(`[?`)){let t=JSON.parse(e.data.slice(2));this.#_(t)}else t?this.#v():this.#g()}else this.#y()},xt),D&&(this.#e=O)}#g(){try{this.#a=bn(()=>this.#r(this.#e))}catch(e){this.error(e)}}#_(e){let t=this.#n.failed;t&&(this.#s=bn(()=>{t(this.#e,()=>e,()=>()=>{})}))}#v(){let e=this.#n.pending;e&&(this.is_pending=!0,this.#o=bn(()=>e(this.#e)),Ke(()=>{var e=this.#c=document.createDocumentFragment(),t=Qt();e.append(t),this.#a=this.#x(()=>bn(()=>this.#r(t))),this.#u===0&&(this.#e.before(e),this.#c=null,En(this.#o,()=>{this.#o=null}),this.#b(N))}))}#y(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#l=0,this.#a=bn(()=>{this.#r(this.#e)}),this.#u>0){var e=this.#c=document.createDocumentFragment();An(this.#a,e);let t=this.#n.pending;this.#o=bn(()=>t(this.#e))}else this.#b(N)}catch(e){this.error(e)}}#b(e){this.is_pending=!1,e.transfer_effects(this.#f,this.#p)}defer_effect(e){$e(e,this.#f,this.#p)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#n.pending}#x(e){var t=U,n=H,r=j;Ln(this.#i),In(this.#i),Be(this.#i.ctx);try{return ft.ensure(),e()}catch(e){return Je(e),null}finally{Ln(t),In(n),Be(r)}}#S(e,t){this.has_pending_snippet()?(this.#u+=e,this.#u===0&&(this.#b(t),this.#o&&En(this.#o,()=>{this.#o=null}),this.#c&&=(this.#e.before(this.#c),null))):this.parent&&this.parent.#S(e,t)}update_pending_count(e,t){this.#S(e,t),this.#l+=e,!(!this.#m||this.#d)&&(this.#d=!0,Ke(()=>{this.#d=!1,this.#m&&Ht(this.#m,this.#l)}))}get_effect_pending(){return this.#h(),K(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.on_fork_commit(()=>{this.#C(e)})):this.#C(e)}#C(e){this.#a&&=(V(this.#a),null),this.#o&&=(V(this.#o),null),this.#s&&=(V(this.#s),null),D&&(k(this.#t),Pe(),k(Fe()));var t=this.#n.onerror;let n=this.#n.failed;var r=!1,i=!1;let a=()=>{r?je():(r=!0,i&&Oe(),this.#s!==null&&En(this.#s,()=>{this.#s=null}),this.#x(()=>{this.#y()}))},o=e=>{try{i=!0,t?.(e,a),i=!1}catch(e){Ye(e,this.#i&&this.#i.parent)}n&&(this.#s=this.#x(()=>{try{return bn(()=>{var t=U;t.b=this,t.f|=128,n(this.#e,()=>e,()=>a)})}catch(e){return Ye(e,this.#i.parent),null}}))};Ke(()=>{var t;try{t=this.transform_error(e)}catch(e){Ye(e,this.#i&&this.#i.parent);return}typeof t==`object`&&t&&typeof t.then==`function`?t.then(o,e=>Ye(e,this.#i&&this.#i.parent)):o(t)})}};function wt(e,t,n,r){let i=Ue()?Ot:jt;var a=e.filter(e=>!e.settled);if(n.length===0&&a.length===0){r(t.map(i));return}var o=U,s=Tt(),c=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(e=>e.promise)):null;function l(e){if(!(o.f&16384)){s();try{r(e)}catch(e){Ye(e,o)}Et()}}var u=Dt();if(n.length===0){c.then(()=>l(t.map(i))).finally(u);return}function d(){Promise.all(n.map(e=>At(e))).then(e=>l([...t.map(i),...e])).catch(e=>Ye(e,o)).finally(u)}c?c.then(()=>{s(),d(),Et()}):d()}function Tt(){var e=U,t=H,n=j,r=N;return function(i=!0){Ln(e),In(t),Be(n),i&&!(e.f&16384)&&(r?.activate(),r?.apply())}}function Et(e=!0){Ln(null),In(null),Be(null),e&&N?.deactivate()}function Dt(){var e=U,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 Ot(e){var n=2|b;return U!==null&&(U.f|=C),{ctx:j,deps:null,effects:null,equals:Le,f:n,fn:e,reactions:null,rv:0,v:t,wv:0,parent:U,ac:null}}var kt=Symbol(`obsolete`);function At(e,n,r){let i=U;i===null&&_e();var a=void 0,o=Bt(t),s=!H,c=new Set;return _n(()=>{var t=U,n=v();a=n.promise;try{Promise.resolve(e()).then(n.resolve,e=>{e!==me&&n.reject(e)}).finally(Et)}catch(e){n.reject(e),Et()}var r=N;if(s){if(t.f&32768)var l=Dt();if(i.b.is_rendered())r.async_deriveds.get(t)?.reject(kt);else for(let e of c.values())e.reject(kt);c.add(n),r.async_deriveds.set(t,n)}let u=(e,t=void 0)=>{l?.(),c.delete(n),t!==kt&&(r.activate(),t?(o.f|=T,Ht(o,t)):(o.f&8388608&&(o.f^=T),Ht(o,e)),r.deactivate())};n.promise.then(u,e=>u(null,e||`unknown`))}),dn(()=>{for(let e of c)e.reject(kt)}),new Promise(e=>{function t(n){function r(){n===a?e(o):t(a)}n.then(r,r)}t(a)})}function P(e){let t=Ot(e);return zn(t),t}function jt(e){let t=Ot(e);return t.equals=ze,t}function Mt(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)V(t[n])}}function Nt(e){var t,n=U,r=e.parent;if(!Nn&&r!==null&&r.f&24576)return ke(),e.v;Ln(r);try{e.f&=~w,Mt(e),t=Yn(e)}finally{Ln(n)}return t}function Pt(e){var t=Nt(e);!e.equals(t)&&(e.wv=Kn(),(!N?.is_fork||e.deps===null)&&(N===null?e.v=t:(N.capture(e,t,!0),rt?.capture(e,t,!0)),e.deps===null))?M(e,y):Nn||(it===null?Ze(e):(un()||N?.is_fork)&&it.set(e,t))}function Ft(e){if(e.effects!==null)for(let t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(me),t.teardown=g,t.ac=null,Zn(t,0),Sn(t))}function It(e){if(e.effects!==null)for(let t of e.effects)t.teardown&&Qn(t)}var Lt=new Set,Rt=new Map,zt=!1;function Bt(e,t){return{f:0,v:e,reactions:null,equals:Le,rv:0,wv:0}}function F(e,t){let n=Bt(e,t);return zn(n),n}function Vt(e,t=!1,n=!0){let r=Bt(e);return t||(r.equals=ze),r}function I(e,t,n=!1){return H!==null&&(!Fn||H.f&131072)&&Ue()&&H.f&4325394&&(Rn===null||!a.call(Rn,e))&&De(),Ht(e,n?Kt(t):t,lt)}function Ht(e,t,n=null){if(!e.equals(t)){Rt.set(e,Nn?t:e.v);var r=ft.ensure();if(r.capture(e,t),e.f&2){let t=e;e.f&2048&&Nt(t),it===null&&Ze(t)}e.wv=Kn(),Gt(e,b,n),Ue()&&U!==null&&U.f&1024&&!(U.f&96)&&(Bn===null?Vn([e]):Bn.push(e)),!r.is_fork&&Lt.size>0&&!zt&&Ut()}return t}function Ut(){zt=!1;for(let e of Lt){e.f&1024&&M(e,x);let t;try{t=qn(e)}catch{t=!0}t&&Qn(e)}Lt.clear()}function Wt(e){I(e,e.v+1)}function Gt(e,t,n){var r=e.reactions;if(r!==null)for(var i=Ue(),a=r.length,o=0;o<a;o++){var s=r[o],c=s.f;if(i||s!==U){var l=(c&b)===0;if(l&&M(s,t),c&131072)Lt.add(s);else if(c&2){var u=s;it?.delete(u),c&65536||(c&512&&(U===null||!(U.f&2097152))&&(s.f|=w),Gt(u,x,n))}else if(l){var d=s;c&16&&ht!==null&&ht.add(d),n===null?_t(d):n.push(d)}}}}function Kt(e){if(typeof e!=`object`||!e||E in e)return e;let n=p(e);if(n!==d&&n!==f)return e;var i=new Map,a=r(e),o=F(0),s=null,c=Wn,u=e=>{if(Wn===c)return e();var t=H,n=Wn;In(null),Gn(c);var r=e();return In(t),Gn(n),r};return a&&i.set(`length`,F(e.length,s)),new Proxy(e,{defineProperty(e,t,n){(!(`value`in n)||n.configurable===!1||n.enumerable===!1||n.writable===!1)&&Te();var r=i.get(t);return r===void 0?u(()=>{var e=F(n.value,s);return i.set(t,e),e}):I(r,n.value,!0),!0},deleteProperty(e,n){var r=i.get(n);if(r===void 0){if(n in e){let e=u(()=>F(t,s));i.set(n,e),Wt(o)}}else I(r,t),Wt(o);return!0},get(n,r,a){if(r===E)return e;var o=i.get(r),c=r in n;if(o===void 0&&(!c||l(n,r)?.writable)&&(o=u(()=>F(Kt(c?n[r]:t),s)),i.set(r,o)),o!==void 0){var d=K(o);return d===t?void 0:d}return Reflect.get(n,r,a)},getOwnPropertyDescriptor(e,n){var r=Reflect.getOwnPropertyDescriptor(e,n);if(r&&`value`in r){var a=i.get(n);a&&(r.value=K(a))}else if(r===void 0){var o=i.get(n),s=o?.v;if(o!==void 0&&s!==t)return{enumerable:!0,configurable:!0,value:s,writable:!0}}return r},has(e,n){if(n===E)return!0;var r=i.get(n),a=r!==void 0&&r.v!==t||Reflect.has(e,n);return(r!==void 0||U!==null&&(!a||l(e,n)?.writable))&&(r===void 0&&(r=u(()=>F(a?Kt(e[n]):t,s)),i.set(n,r)),K(r)===t)?!1:a},set(e,n,r,c){var d=i.get(n),f=n in e;if(a&&n===`length`)for(var p=r;p<d.v;p+=1){var m=i.get(p+``);m===void 0?p in e&&(m=u(()=>F(t,s)),i.set(p+``,m)):I(m,t)}if(d===void 0)(!f||l(e,n)?.writable)&&(d=u(()=>F(void 0,s)),I(d,Kt(r)),i.set(n,d));else{f=d.v!==t;var h=u(()=>Kt(r));I(d,h)}var g=Reflect.getOwnPropertyDescriptor(e,n);if(g?.set&&g.set.call(c,r),!f){if(a&&typeof n==`string`){var _=i.get(`length`),v=Number(n);Number.isInteger(v)&&v>=_.v&&I(_,v+1)}Wt(o)}return!0},ownKeys(e){K(o);var n=Reflect.ownKeys(e).filter(e=>{var n=i.get(e);return n===void 0||n.v!==t});for(var[r,a]of i)a.v!==t&&!(r in e)&&n.push(r);return n},setPrototypeOf(){Ee()}})}var qt,Jt,Yt,Xt;function Zt(){if(qt===void 0){qt=window,Jt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Yt=l(t,`firstChild`).get,Xt=l(t,`nextSibling`).get,m(e)&&(e[de]=void 0,e[ue]=null,e[fe]=void 0,e.__e=void 0),m(n)&&(n[pe]=void 0)}}function Qt(e=``){return document.createTextNode(e)}function $t(e){return Yt.call(e)}function en(e){return Xt.call(e)}function L(e,t){if(!D)return $t(e);var n=$t(O);if(n===null)n=O.appendChild(Qt());else if(t&&n.nodeType!==3){var r=Qt();return n?.before(r),k(r),r}return t&&an(n),k(n),n}function R(e,t=!1){if(!D){var n=$t(e);return n instanceof Comment&&n.data===``?en(n):n}if(t){if(O?.nodeType!==3){var r=Qt();return O?.before(r),k(r),r}an(O)}return O}function z(e,t=1,n=!1){let r=D?O:e;for(var i;t--;)i=r,r=en(r);if(!D)return r;if(n){if(r?.nodeType!==3){var a=Qt();return r===null?i?.after(a):r.before(a),k(a),a}an(r)}return k(r),r}function tn(e){e.textContent=``}function nn(){return!1}function rn(e,t,n){let r=n?{is:n}:void 0;return document.createElementNS(t??`http://www.w3.org/1999/xhtml`,e,r)}function an(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 on(e){var t=H,n=U;In(null),Ln(null);try{return e()}finally{In(t),Ln(n)}}function sn(e){U===null&&(H===null&&xe(e),be()),Nn&&ye(e)}function cn(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function ln(e,t){var n=U;n!==null&&n.f&8192&&(e|=S);var r={ctx:j,deps:null,nodes:null,f:e|b|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)ct===null?ft.ensure().schedule(r):ct.push(r);else if(t!==null){try{Qn(r)}catch(e){throw V(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|=re))}if(i!==null&&(i.parent=n,n!==null&&cn(i,n),H!==null&&H.f&2&&!(e&64))){var a=H;(a.effects??=[]).push(i)}return r}function un(){return H!==null&&!Fn}function dn(e){let t=ln(8,null);return M(t,y),t.teardown=e,t}function fn(e){sn(`$effect`);var t=U.f;if(!H&&t&32&&!(t&32768)){var n=j;(n.e??=[]).push(e)}else return pn(e)}function pn(e){return ln(4|ie,e)}function mn(e){ft.ensure();let t=ln(64|C,e);return()=>{V(t)}}function hn(e){ft.ensure();let t=ln(64|C,e);return(e={})=>new Promise(n=>{e.outro?En(t,()=>{V(t),n(void 0)}):(V(t),n(void 0))})}function gn(e){return ln(4,e)}function _n(e){return ln(se|C,e)}function vn(e,t=0){return ln(8|t,e)}function B(e,t=[],n=[],r=[]){wt(r,t,n,t=>{ln(8,()=>e(...t.map(K)))})}function yn(e,t=0){return ln(16|t,e)}function bn(e){return ln(32|C,e)}function xn(e){var t=e.teardown;if(t!==null){let e=Nn,n=H;Pn(!0),In(null);try{t.call(null)}finally{Pn(e),In(n)}}}function Sn(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){let e=n.ac;e!==null&&on(()=>{e.abort(me)});var r=n.next;n.f&64?n.parent=null:V(n,t),n=r}}function Cn(e){for(var t=e.first;t!==null;){var n=t.next;t.f&32||V(t),t=n}}function V(e,t=!0){var n=!1;(t||e.f&262144)&&e.nodes!==null&&e.nodes.end!==null&&(wn(e.nodes.start,e.nodes.end),n=!0),M(e,ne),Sn(e,t&&!n),Zn(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)e.stop();xn(e),e.f^=ne,e.f|=ee;var i=e.parent;i!==null&&i.first!==null&&Tn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function wn(e,t){for(;e!==null;){var n=e===t?null:en(e);e.remove(),e=n}}function Tn(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 En(e,t,n=!0){var r=[];Dn(e,r,!0);var i=()=>{n&&V(e),t&&t()},a=r.length;if(a>0){var o=()=>--a||i();for(var s of r)s.out(o)}else i()}function Dn(e,t,n){if(!(e.f&8192)){e.f^=S;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);Dn(i,t,o?n:!1)}i=a}}}function On(e){kn(e,!0)}function kn(e,t){if(e.f&8192){e.f^=S,e.f&1024||(M(e,b),ft.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=!!(n.f&65536)||!!(n.f&32);kn(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 An(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:en(n);t.append(n),n=i}}var jn=null,Mn=!1,Nn=!1;function Pn(e){Nn=e}var H=null,Fn=!1;function In(e){H=e}var U=null;function Ln(e){U=e}var Rn=null;function zn(e){H!==null&&(Rn===null?Rn=[e]:Rn.push(e))}var W=null,G=0,Bn=null;function Vn(e){Bn=e}var Hn=1,Un=0,Wn=Un;function Gn(e){Wn=e}function Kn(){return++Hn}function qn(e){var t=e.f;if(t&2048)return!0;if(t&2&&(e.f&=~w),t&4096){for(var n=e.deps,r=n.length,i=0;i<r;i++){var a=n[i];if(qn(a)&&Pt(a),a.wv>e.wv)return!0}t&512&&it===null&&M(e,y)}return!1}function Jn(e,t,n=!0){var r=e.reactions;if(r!==null&&(Rn===null||!a.call(Rn,e)))for(var i=0;i<r.length;i++){var o=r[i];o.f&2?Jn(o,t,!1):t===o&&(n?M(o,b):o.f&1024&&M(o,x),_t(o))}}function Yn(e){var t=W,n=G,r=Bn,i=H,a=Rn,o=j,s=Fn,c=Wn,l=e.f;W=null,G=0,Bn=null,H=l&96?null:e,Rn=null,Be(e.ctx),Fn=!1,Wn=++Un,e.ac!==null&&(on(()=>{e.ac.abort(me)}),e.ac=null);try{e.f|=oe;var u=e.fn,d=u();e.f|=te;var f=e.deps,p=N?.is_fork;if(W!==null){var m;if(p||Zn(e,G),f!==null&&G>0)for(f.length=G+W.length,m=0;m<W.length;m++)f[G+m]=W[m];else e.deps=f=W;if(un()&&e.f&512)for(m=G;m<f.length;m++)(f[m].reactions??=[]).push(e)}else!p&&f!==null&&G<f.length&&(Zn(e,G),f.length=G);if(Ue()&&Bn!==null&&!Fn&&f!==null&&!(e.f&6146))for(m=0;m<Bn.length;m++)Jn(Bn[m],e);if(i!==null&&i!==e){if(Un++,i.deps!==null)for(let e=0;e<n;e+=1)i.deps[e].rv=Un;if(t!==null)for(let e of t)e.rv=Un;Bn!==null&&(r===null?r=Bn:r.push(...Bn))}return e.f&8388608&&(e.f^=T),d}catch(e){return Je(e)}finally{e.f^=oe,W=t,G=n,Bn=r,H=i,Rn=a,Be(o),Fn=s,Wn=c}}function Xn(e,n){let r=n.reactions;if(r!==null){var o=i.call(r,e);if(o!==-1){var s=r.length-1;s===0?r=n.reactions=null:(r[o]=r[s],r.pop())}}if(r===null&&n.f&2&&(W===null||!a.call(W,n))){var c=n;c.f&512&&(c.f^=512,c.f&=~w),c.v!==t&&Ze(c),Ft(c),Zn(c,0)}}function Zn(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Xn(e,n[r])}function Qn(e){var t=e.f;if(!(t&16384)){M(e,y);var n=U,r=Mn;U=e,Mn=!0;try{t&16777232?Cn(e):Sn(e),xn(e);var i=Yn(e);e.teardown=typeof i==`function`?i:null,e.wv=Hn}finally{Mn=r,U=n}}}function K(e){var t=!!(e.f&2);if(jn?.add(e),H!==null&&!Fn&&!(U!==null&&U.f&16384)&&(Rn===null||!a.call(Rn,e))){var n=H.deps;if(H.f&2097152)e.rv<Un&&(e.rv=Un,W===null&&n!==null&&n[G]===e?G++:W===null?W=[e]:W.push(e));else{(H.deps??=[]).push(e);var r=e.reactions;r===null?e.reactions=[H]:a.call(r,H)||r.push(H)}}if(Nn&&Rt.has(e))return Rt.get(e);if(t){var i=e;if(Nn){var o=i.v;return(!(i.f&1024)&&i.reactions!==null||er(i))&&(o=Nt(i)),Rt.set(i,o),o}var s=!(i.f&512)&&!Fn&&H!==null&&(Mn||!!(H.f&512)),c=(i.f&te)===0;qn(i)&&(s&&(i.f|=512),Pt(i)),s&&!c&&(It(i),$n(i))}if(it?.has(e))return it.get(e);if(e.f&8388608)throw e.v;return e.v}function $n(e){if(e.f|=512,e.deps!==null)for(let t of e.deps)(t.reactions??=[]).push(e),t.f&2&&!(t.f&512)&&(It(t),$n(t))}function er(e){if(e.v===t)return!0;if(e.deps===null)return!1;for(let t of e.deps)if(Rt.has(t)||t.f&2&&er(t))return!0;return!1}function tr(e){var t=Fn;try{return Fn=!0,e()}finally{Fn=t}}function nr(e){if(!(typeof e!=`object`||!e||e instanceof EventTarget)){if(E in e)rr(e);else if(!Array.isArray(e))for(let t in e){let n=e[t];typeof n==`object`&&n&&E in n&&rr(n)}}}function rr(e,t=new Set){if(typeof e==`object`&&e&&!(e instanceof EventTarget)&&!t.has(e)){t.add(e),e instanceof Date&&e.getTime();for(let n in e)try{rr(e[n],t)}catch{}let n=p(e);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){let t=u(n);for(let n in t){let r=t[n].get;if(r)try{r.call(e)}catch{}}}}}var ir=Symbol(`events`),ar=new Set,or=new Set;function sr(e,t,n,r={}){function i(e){if(r.capture||fr.call(t,e),!e.cancelBubble)return on(()=>n?.call(this,e))}return e.startsWith(`pointer`)||e.startsWith(`touch`)||e===`wheel`?Ke(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function cr(e,t,n,r,i){var a={capture:r,passive:i},o=sr(e,t,n,a);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&dn(()=>{t.removeEventListener(e,o,a)})}function lr(e,t,n){(t[ir]??={})[e]=n}function ur(e){for(var t=0;t<e.length;t++)ar.add(e[t]);for(var n of or)n(e)}var dr=null;function fr(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],a=i[0]||e.target;dr=e;var o=0,s=dr===e&&e[ir];if(s){var l=i.indexOf(s);if(l!==-1&&(t===document||t===window)){e[ir]=t;return}var u=i.indexOf(t);if(u===-1)return;l<=u&&(o=l)}if(a=i[o]||e.target,a!==t){c(e,`currentTarget`,{configurable:!0,get(){return a||n}});var d=H,f=U;In(null),Ln(null);try{for(var p,m=[];a!==null;){var h=a.assignedSlot||a.parentNode||a.host||null;try{var g=a[ir]?.[r];g!=null&&(!a.disabled||e.target===a)&&g.call(a,e)}catch(e){p?m.push(e):p=e}if(e.cancelBubble||h===t||h===null)break;a=h}if(p){for(let e of m)queueMicrotask(()=>{throw e});throw p}}finally{e[ir]=t,delete e.currentTarget,In(d),Ln(f)}}}var pr=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy(`svelte-trusted-html`,{createHTML:e=>e});function mr(e){return pr?.createHTML(e)??e}function hr(e){var t=rn(`template`);return t.innerHTML=mr(e.replaceAll(`<!>`,`<!---->`)),t.content}function gr(e,t){var n=U;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function _r(e,t){var n=!!(t&1),r=!!(t&2),i,a=!e.startsWith(`<!>`);return()=>{if(D)return gr(O,null),O;i===void 0&&(i=hr(a?e:`<!>`+e),n||(i=$t(i)));var t=r||Jt?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=$t(t),s=t.lastChild;gr(o,s)}else gr(t,t);return t}}function vr(e,t,n=`svg`){var r=!e.startsWith(`<!>`),i=!!(t&1),a=`<${n}>${r?e:`<!>`+e}</${n}>`,o;return()=>{if(D)return gr(O,null),O;if(!o){var e=$t(hr(a));if(i)for(o=document.createDocumentFragment();$t(e);)o.appendChild($t(e));else o=$t(e)}var t=o.cloneNode(!0);if(i){var n=$t(t),r=t.lastChild;gr(n,r)}else gr(t,t);return t}}function q(e,t){return vr(e,t,`svg`)}function yr(){if(D)return gr(O,null),O;var e=document.createDocumentFragment(),t=document.createComment(``),n=Qt();return e.append(t,n),gr(t,n),e}function J(e,t){if(D){var n=U;(!(n.f&32768)||n.nodes.end===null)&&(n.nodes.end=O),Ne()}else e!==null&&e.before(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 br=[`touchstart`,`touchmove`];function xr(e){return br.includes(e)}function Y(e,t){var n=t==null?``:typeof t==`object`?`${t}`:t;n!==(e[pe]??=e.nodeValue)&&(e[pe]=n,e.nodeValue=`${n}`)}function Sr(e,t){return Tr(e,t)}function Cr(t,n){Zt(),n.intro=n.intro??!1;let r=n.target,i=D,a=O;try{for(var o=$t(r);o&&(o.nodeType!==8||o.data!==`[`);)o=en(o);if(!o)throw e;Me(!0),k(o);let i=Tr(t,{...n,anchor:o});return Me(!1),i}catch(i){if(i instanceof Error&&i.message.split(`
2
- `).some(e=>e.startsWith(`https://svelte.dev/e/`)))throw i;return i!==e&&console.warn(`Failed to hydrate: `,i),n.recover===!1&&Ce(),Zt(),tn(r),Me(!1),Sr(t,n)}finally{Me(i),k(a)}}var wr=new Map;function Tr(t,{target:n,anchor:r,props:i={},events:a,context:s,intro:c=!0,transformError:l}){Zt();var u=void 0,d=hn(()=>{var c=r??n.appendChild(Qt());St(c,{pending:()=>{}},n=>{Ve({});var r=j;if(s&&(r.c=s),a&&(i.$$events=a),D&&gr(n,null),u=t(n,i)||{},D&&(U.nodes.end=O,O===null||O.nodeType!==8||O.data!==`]`))throw Ae(),e;He()},l);var d=new Set,f=e=>{for(var t=0;t<e.length;t++){var r=e[t];if(!d.has(r)){d.add(r);var i=xr(r);for(let e of[n,document]){var a=wr.get(e);a===void 0&&(a=new Map,wr.set(e,a));var o=a.get(r);o===void 0?(e.addEventListener(r,fr,{passive:i}),a.set(r,1)):a.set(r,o+1)}}}};return f(o(ar)),or.add(f),()=>{for(var e of d)for(let r of[n,document]){var t=wr.get(r),i=t.get(e);--i==0?(r.removeEventListener(e,fr),t.delete(e),t.size===0&&wr.delete(r)):t.set(e,i)}or.delete(f),c!==r&&c.parentNode?.removeChild(c)}});return Er.set(u,d),u}var Er=new WeakMap;function Dr(e,t){let n=Er.get(e);return n?(Er.delete(e),n(t)):Promise.resolve()}var Or=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)On(n),this.#r.delete(t);else{var r=this.#n.get(t);r&&(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&&(V(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();An(r,t),t.append(Qt()),this.#n.set(e,{effect:r,fragment:t})}else V(r);this.#r.delete(e),this.#t.delete(e)};this.#i||!n?(this.#r.add(e),En(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)||(V(n.effect),this.#n.delete(e))};ensure(e,t){var n=N,r=nn();if(t&&!this.#t.has(e)&&!this.#n.has(e)){if(r){var i=document.createDocumentFragment(),a=Qt();i.append(a),this.#n.set(e,{effect:bn(()=>t(a)),fragment:i})}else this.#t.set(e,bn(()=>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 D&&(this.anchor=O),this.#a(n)}};function kr(e){j===null&&ge(`onMount`),fn(()=>{let t=tr(e);if(typeof t==`function`)return t})}function X(e,t,n=!1){var r;D&&(r=O,Ne());var i=new Or(e),a=n?re:0;function o(e,t){if(D){var n=Ie(r);if(e!==parseInt(n.substring(1))){var a=Fe();k(a),i.anchor=a,Me(!1),i.ensure(e,t),Me(!0);return}}i.ensure(e,t)}yn(()=>{var e=!1;t((t,n=0)=>{e=!0,o(n,t)}),e||o(-1,null)},a)}function Ar(e,t){return t}function jr(e,t,n){for(var r=[],i=t.length,a,s=t.length,c=0;c<i;c++){let n=t[c];En(n,()=>{if(a){if(a.pending.delete(n),a.done.add(n),a.pending.size===0){var t=e.outrogroups;Mr(e,o(a.done)),t.delete(a),t.size===0&&(e.outrogroups=null)}}else--s},!1)}if(s===0){var l=r.length===0&&n!==null;if(l){var u=n,d=u.parentNode;tn(d),d.append(u),e.items.clear()}Mr(e,t,!l)}else a={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(a)}function Mr(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|=ae,An(a,document.createDocumentFragment())):V(t[i],n)}}var Nr;function Z(e,t,n,i,a,s=null){var c=e,l=new Map;if(t&4){var u=e;c=D?k($t(u)):u.appendChild(Qt())}D&&Ne();var d=null,f=jt(()=>{var e=n();return r(e)?e:e==null?[]:o(e)}),p,m=new Map,h=!0;function g(e){v.effect.f&16384||(v.pending.delete(e),v.fallback=d,Fr(v,p,c,t,i),d!==null&&(p.length===0?d.f&33554432?(d.f^=ae,Lr(d,null,c)):On(d):En(d,()=>{d=null})))}function _(e){v.pending.delete(e)}var v={effect:yn(()=>{p=K(f);var e=p.length;let r=!1;D&&Ie(c)===`[!`!=(e===0)&&(c=Fe(),k(c),Me(!1),r=!0);for(var o=new Set,u=N,v=nn(),y=0;y<e;y+=1){D&&O.nodeType===8&&O.data===`]`&&(c=O,r=!0,Me(!1));var b=p[y],x=i(b,y),S=h?null:l.get(x);S?(S.v&&Ht(S.v,b),S.i&&Ht(S.i,y),v&&u.unskip_effect(S.e)):(S=Ir(l,h?c:Nr??=Qt(),b,x,y,a,t,n),h||(S.e.f|=ae),l.set(x,S)),o.add(x)}if(e===0&&s&&!d&&(h?d=bn(()=>s(c)):(d=bn(()=>s(Nr??=Qt())),d.f|=ae)),e>o.size&&ve(``,``,``),D&&e>0&&k(Fe()),!h){if(m.set(u,o),v){for(let[e,t]of l)o.has(e)||u.skip_effect(t.e);u.oncommit(g),u.ondiscard(_)}else g(u)}r&&Me(!0),K(f)}),flags:t,items:l,pending:m,outrogroups:null,fallback:d};h=!1,D&&(c=O)}function Pr(e){for(;e!==null&&!(e.f&32);)e=e.next;return e}function Fr(e,t,n,r,i){var a=!!(r&8),s=t.length,c=e.items,l=Pr(e.effect.first),u,d=null,f,p=[],m=[],h,g,_,v;if(a)for(v=0;v<s;v+=1)h=t[v],g=i(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=i(h,v),_=c.get(g).e,e.outrogroups!==null)for(let t of e.outrogroups)t.pending.delete(_),t.done.delete(_);if(_.f&8192&&(On(_),a&&(_.nodes?.a?.unfix(),(f??=new Set).delete(_))),_.f&33554432){if(_.f^=ae,_===l)Lr(_,null,n);else{var y=d?d.next:l;_===e.effect.last&&(e.effect.last=_.prev),_.prev&&(_.prev.next=_.next),_.next&&(_.next.prev=_.prev),Rr(e,d,_),Rr(e,_,y),Lr(_,y,n),d=_,p=[],m=[],l=Pr(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)Lr(p[x],b,n);for(x=0;x<m.length;x+=1)u.delete(m[x]);Rr(e,S.prev,ee.next),Rr(e,d,S),Rr(e,ee,b),l=b,d=ee,--v,p=[],m=[]}else u.delete(_),Lr(_,l,n),Rr(e,_.prev,_.next),Rr(e,_,d===null?e.effect.first:d.next),Rr(e,d,_),d=_;continue}for(p=[],m=[];l!==null&&l!==_;)(u??=new Set).add(l),m.push(l),l=Pr(l.next);if(l===null)continue}_.f&33554432||p.push(_),d=_,l=Pr(_.next)}if(e.outrogroups!==null){for(let t of e.outrogroups)t.pending.size===0&&(Mr(e,o(t.done)),e.outrogroups?.delete(t));e.outrogroups.size===0&&(e.outrogroups=null)}if(l!==null||u!==void 0){var te=[];if(u!==void 0)for(_ of u)_.f&8192||te.push(_);for(;l!==null;)!(l.f&8192)&&l!==e.fallback&&te.push(l),l=Pr(l.next);var ne=te.length;if(ne>0){var re=r&4&&s===0?n:null;if(a){for(v=0;v<ne;v+=1)te[v].nodes?.a?.measure();for(v=0;v<ne;v+=1)te[v].nodes?.a?.fix()}jr(e,te,re)}}a&&Ke(()=>{if(f!==void 0)for(_ of f)_.nodes?.a?.apply()})}function Ir(e,t,n,r,i,a,o,s){var c=o&1?o&16?Bt(n):Vt(n,!1,!1):null,l=o&2?Bt(i):null;return{v:c,i:l,e:bn(()=>(a(t,c??n,l??i,s),()=>{e.delete(r)}))}}function Lr(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=en(r);if(a.before(r),r===i)return;r=o}}function Rr(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function zr(e,t){gn(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector(`#`+t.hash)){let e=rn(`style`);e.id=t.hash,e.textContent=t.code,r.appendChild(e)}})}function Br(e,t,n){gn(()=>{var r=tr(()=>t(e,n?.())||{});if(n&&r?.update){var i=!1,a={};vn(()=>{var e=n();nr(e),i&&Re(a,e)&&(a=e,r.update(e))}),i=!0}if(r?.destroy)return()=>r.destroy()})}function Vr(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=Vr(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function Hr(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Vr(e))&&(r&&(r+=` `),r+=t);return r}function Ur(e){return typeof e==`object`?Hr(e):e??``}var Wr=[...`
3
- \r\f\xA0\v`];function Gr(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||Wr.includes(r[o-1]))&&(s===r.length||Wr.includes(r[s]))?r=(o===0?``:r.substring(0,o))+r.substring(s+1):o=s}}return r===``?null:r}function Kr(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 qr(e){return e[0]!==`-`||e[1]!==`-`?e.toLowerCase():e}function Jr(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(/\s*\/\*.*?\*\/\s*/g,``).trim();var a=!1,o=0,s=!1,c=[];r&&c.push(...Object.keys(r).map(qr)),i&&c.push(...Object.keys(i).map(qr));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=qr(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+=Kr(r)),i&&(n+=Kr(i,!0)),n=n.trim(),n===``?null:n}return e==null?null:String(e)}function Yr(e,t,n,r,i,a){var o=e[de];if(D||o!==n||o===void 0){var s=Gr(n,r,a);(!D||s!==e.getAttribute(`class`))&&(s==null?e.removeAttribute(`class`):t?e.className=s:e.setAttribute(`class`,s)),e[de]=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 Xr(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 Zr(e,t,n,r){var i=e[fe];if(D||i!==t){var a=Jr(t,r);(!D||a!==e.getAttribute(`style`))&&(a==null?e.removeAttribute(`style`):e.style.cssText=a),e[fe]=t}else r&&(Array.isArray(r)?(Xr(e,n?.[0],r[0]),Xr(e,n?.[1],r[1],`important`)):Xr(e,n,r));return r}var Qr=Symbol(`is custom element`),$r=Symbol(`is html`),ei=he?`link`:`LINK`;function Q(e,t,n,r){var i=ti(e);D&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===ei)||i[t]!==(i[t]=n)&&(t===`loading`&&(e[le]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&ri(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function ti(e){return e[ue]??={[Qr]:e.nodeName.includes(`-`),[$r]:e.namespaceURI===n}}var ni=new Map;function ri(e){var t=e.getAttribute(`is`)||e.nodeName,n=ni.get(t);if(n)return n;ni.set(t,n=[]);for(var r,i=e,a=Element.prototype;a!==i;){for(var o in r=u(i),r)r[o].set&&o!==`innerHTML`&&o!==`textContent`&&o!==`innerText`&&n.push(o);i=p(i)}return n}function ii(e,t){return e===t||e?.[E]===t}function ai(e={},t,n,r){var i=j.r,a=U;return gn(()=>{var o,s;return vn(()=>{o=s,s=r?.()||[],tr(()=>{ii(n(...s),e)||(t(e,...s),o&&ii(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&&ii(n(...s),e)&&t(null,...s)},c=r.teardown;r.teardown=()=>{o(),c?.()}}}),e}var oi={get(e,t){let n=e.props.length;for(;n--;){let r=e.props[n];if(h(r)&&(r=r()),typeof r==`object`&&r&&t in r)return r[t]}},set(e,t,n){let r=e.props.length;for(;r--;){let i=e.props[r];h(i)&&(i=i());let a=l(i,t);if(a&&a.set)return a.set(n),!0}return!1},getOwnPropertyDescriptor(e,t){let n=e.props.length;for(;n--;){let r=e.props[n];if(h(r)&&(r=r()),typeof r==`object`&&r&&t in r){let e=l(r,t);return e&&!e.configurable&&(e.configurable=!0),e}}},has(e,t){if(t===E||t===ce)return!1;for(let n of e.props)if(h(n)&&(n=n()),n!=null&&t in n)return!0;return!1},ownKeys(e){let t=[];for(let n of e.props)if(h(n)&&(n=n()),n){for(let e in n)t.includes(e)||t.push(e);for(let e of Object.getOwnPropertySymbols(n))t.includes(e)||t.push(e)}return t}};function si(...e){return new Proxy({props:e},oi)}function ci(e,t,n,r){var i=!0,a=!!(n&8),o=!!(n&16),s=r,c=!0,u=void 0,d=()=>o&&i?(u??=Ot(r),K(u)):(c&&(c=!1,s=o?tr(r):r),s);let f;if(a){var p=E in e||ce in e;f=l(e,t)?.set??(p&&t in e?n=>e[t]=n:void 0)}var m,h=!1;a?[m,h]=tt(()=>e[t]):m=e[t],m===void 0&&r!==void 0&&(m=d(),f&&(i&&we(t),f(m)));var g=i?()=>{var n=e[t];return n===void 0?d():(c=!0,n)}:()=>{var n=e[t];return n!==void 0&&(s=void 0),n===void 0?s: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?Ot:jt)(()=>(v=!1,g()));a&&K(y);var b=U;return(function(e,t){if(arguments.length>0){let n=t?K(y):i&&a?Kt(e):e;return I(y,n),v=!0,s!==void 0&&(s=n),e}return Nn&&v||b.f&16384?y.v:K(y)})}function li(e){return new ui(e)}var ui=class{#e;#t;constructor(e){var t=new Map,n=(e,n)=>{var r=Vt(n,!1,!1);return t.set(e,r),r};let r=new Proxy({...e.props||{},$$events:{}},{get(e,r){return K(t.get(r)??n(r,Reflect.get(e,r)))},has(e,r){return r===ce||(K(t.get(r)??n(r,Reflect.get(e,r))),Reflect.has(e,r))},set(e,r,i){return I(t.get(r)??n(r,i),i),Reflect.set(e,r,i)}});this.#t=(e.hydrate?Cr:Sr)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError}),(!e?.props?.$$host||e.sync===!1)&&pt(),this.#e=r.$$events;for(let e of Object.keys(this.#t))e!==`$set`&&e!==`$destroy`&&e!==`$on`&&c(this,e,{get(){return this.#t[e]},set(t){this.#t[e]=t},enumerable:!0});this.#t.$set=e=>{Object.assign(r,e)},this.#t.$destroy=()=>{Dr(this.#t)}}$set(e){this.#t.$set(e)}$on(e,t){this.#e[e]=this.#e[e]||[];let n=(...e)=>t.call(this,...e);return this.#e[e].push(n),()=>{this.#e[e]=this.#e[e].filter(e=>e!==n)}}$destroy(){this.#t.$destroy()}},di;typeof HTMLElement==`function`&&(di=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let e=this.$$l_u.get(t);e&&(e(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){if(await Promise.resolve(),!this.$$cn||this.$$c)return;function e(e){return t=>{let n=rn(`slot`);e!=="default"&&(n.name=e),J(t,n)}}let t={},n=pi(this);for(let r of this.$$s)r in n&&(r==="default"&&!this.$$d.children?(this.$$d.children=e(r),t.default=!0):t[r]=e(r));for(let e of this.attributes){let t=this.$$g_p(e.name);t in this.$$d||(this.$$d[t]=fi(t,e.value,this.$$p_d,`toProp`))}for(let e in this.$$p_d)!(e in this.$$d)&&this[e]!==void 0&&(this.$$d[e]=this[e],delete this[e]);this.$$c=li({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=mn(()=>{vn(()=>{this.$$r=!0;for(let e of s(this.$$c)){if(!this.$$p_d[e]?.reflect)continue;this.$$d[e]=this.$$c[e];let t=fi(e,this.$$d[e],this.$$p_d,`toAttribute`);t==null?this.removeAttribute(this.$$p_d[e].attribute||e):this.setAttribute(this.$$p_d[e].attribute||e,t)}this.$$r=!1})});for(let e in this.$$l)for(let t of this.$$l[e]){let n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=fi(e,n,this.$$p_d,`toProp`),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return s(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function fi(e,t,n,r){let i=n[e]?.type;if(t=i===`Boolean`&&typeof t!=`boolean`?t!=null:t,!r||!n[e])return t;if(r===`toAttribute`)switch(i){case`Object`:case`Array`:return t==null?null:JSON.stringify(t);case`Boolean`:return t?``:null;case`Number`:return t??null;default:return t}else switch(i){case`Object`:case`Array`:return t&&JSON.parse(t);case`Boolean`:return t;case`Number`:return t==null?t:+t;default:return t}}function pi(e){let t={};return e.childNodes.forEach(e=>{t[e.slot||`default`]=!0}),t}function mi(e,t,n,r,i,a){let o=class extends di{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return s(t).map(e=>(t[e].attribute||e).toLowerCase())}};return s(t).forEach(e=>{c(o.prototype,e,{get(){return this.$$c&&e in this.$$c?this.$$c[e]:this.$$d[e]},set(n){n=fi(e,n,t),this.$$d[e]=n;var r=this.$$c;r&&(l(r,e)?.get?r[e]=n:r.$set({[e]:n}))}})}),r.forEach(e=>{c(o.prototype,e,{get(){return this.$$c?.[e]}})}),a&&(o=a(o)),e.element=o,o}var hi=_r(`<li> </li>`),gi=_r(`<ul></ul>`),_i={hash:`svelte-1qnylwo`,code:`.st-chartDataList.svelte-1qnylwo {border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px;}`};function vi(e,t){Ve(t,!0),zr(e,_i);let n=ci(t,`items`,19,()=>[]),r=()=>[`st-chartDataList`,t.class].filter(Boolean).join(` `);var i=yr(),a=R(i),o=e=>{var i=gi();Z(i,21,n,Ar,(e,t)=>{var n=hi(),r=L(n,!0);A(n),B(()=>Y(r,K(t))),J(e,n)}),A(i),B(e=>{Yr(i,1,e,`svelte-1qnylwo`),Q(i,`aria-label`,`Data values for ${t.label}`)},[()=>Ur(r())]),J(e,i)};X(a,e=>{n().length>0&&e(o)}),J(e,i),He()}var yi=e=>typeof e==`number`&&Number.isFinite(e);function bi(e,t){if(!e||e.length===0)return[];let{xScale:n,yScale:r,plotLeft:i,plotTop:a,plotWidth:o,plotHeight:s}=t,c=[];return e.forEach((e,t)=>{switch(e.kind){case`region`:if(!yi(e.from)||!yi(e.to))return;if(e.axis===`x`){let r=n(e.from),o=n(e.to);if(r===null||o===null)return;let l=i+Math.min(r,o);c.push({kind:`region`,key:t,axis:`x`,x:l,y:a,width:Math.max(Math.abs(o-r),.5),height:s,label:e.label})}else{let n=r(e.from),s=r(e.to);if(n===null||s===null)return;let l=a+Math.min(n,s);c.push({kind:`region`,key:t,axis:`y`,x:i,y:l,width:o,height:Math.max(Math.abs(s-n),.5),label:e.label})}return;case`line`:if(!yi(e.value))return;if(e.axis===`x`){let r=n(e.value);if(r===null)return;let o=i+r;c.push({kind:`line`,key:t,axis:`x`,x1:o,y1:a,x2:o,y2:a+s,label:e.label})}else{let n=r(e.value);if(n===null)return;let s=a+n;c.push({kind:`line`,key:t,axis:`y`,x1:i,y1:s,x2:i+o,y2:s,label:e.label})}return;case`shape`:{if(!e.points||e.points.length<2)return;let o=[];for(let t of e.points){let e=n(t.x),s=r(t.y);if(e===null||s===null)return;o.push({x:i+e,y:a+s})}let s=o.reduce((e,t)=>e+t.x,0)/o.length,l=o.reduce((e,t)=>e+t.y,0)/o.length;c.push({kind:`shape`,key:t,points:o,label:e.label,labelX:s,labelY:l});return}case`point`:{let o=n(e.x),s=r(e.y);if(o===null||s===null)return;c.push({kind:`point`,key:t,x:i+o,y:a+s,label:e.label,marker:e.marker??`circle`});return}case`label`:{let o=n(e.x),s=r(e.y);if(o===null||s===null)return;c.push({kind:`label`,key:t,x:i+o,y:a+s,text:e.text,anchor:e.anchor??`middle`});return}}}),c}function xi(e){if(!e||e.length===0)return[];let t=[];for(let n of e){let e=n.kind===`label`?n.text:n.label;e&&t.push(`Annotation: ${e}`)}return t}function Si(e){return e.map(e=>`${e.x.toFixed(2)},${e.y.toFixed(2)}`).join(` `)}function Ci(e){return e===!0?{enabled:!0}:e&&typeof e==`object`?{enabled:!0,format:e.format,position:e.position}:{enabled:!1}}function wi(e,t,n){return Number.isFinite(e)?t.format?t.format(e):n(e):``}function Ti(e,t){return e==null?-1:t.indexOf(e)}function Ei(e,t,n){return e===void 0?t??-1:Ti(e,n)}function Di(e,t,n){if(n<=0)return null;let r=e=>Math.min(n-1,Math.max(0,e));switch(e){case`ArrowRight`:case`ArrowDown`:return{kind:`move`,index:r(t+1)};case`ArrowLeft`:case`ArrowUp`:return{kind:`move`,index:r(t-1)};case`Home`:return{kind:`move`,index:0};case`End`:return{kind:`move`,index:n-1};case`Enter`:case` `:case`Spacebar`:return{kind:`select`};case`Escape`:case`Esc`:return{kind:`escape`};default:return null}}function Oi(e,t,n){return e===(t>=0&&t<n?t:0)?0:-1}function ki(e,t){return`${e}, ${t}`}var Ai=q(`<line class="st-barChart__grid svelte-14iupu9"></line><text class="st-barChart__tickLabel svelte-14iupu9" text-anchor="end" dominant-baseline="middle"> </text>`,1),ji=q(`<line class="st-barChart__grid svelte-14iupu9"></line><text class="st-barChart__tickLabel svelte-14iupu9" text-anchor="middle"> </text>`,1),Mi=q(`<text class="st-barChart__categoryLabel svelte-14iupu9" text-anchor="middle"> </text>`),Ni=q(`<text class="st-barChart__categoryLabel svelte-14iupu9" text-anchor="end" dominant-baseline="middle"> </text>`),Pi=q(`<text class="st-barChart__overlayLabel svelte-14iupu9"> </text>`),Fi=q(`<rect></rect><!>`,1),Ii=q(`<text class="st-barChart__overlayLabel svelte-14iupu9"> </text>`),Li=q(`<line></line><!>`,1),Ri=q(`<text class="st-barChart__annotationLabel svelte-14iupu9"> </text>`),zi=q(`<rect class="st-barChart__annotationRegion svelte-14iupu9"></rect><!>`,1),Bi=q(`<g class="st-barChart__annotations st-barChart__annotations--behind"></g>`),Vi=q(`<rect rx="2"></rect>`),Hi=q(`<g class="st-barChart__errorBar"><line class="st-barChart__errorStem svelte-14iupu9"></line><line class="st-barChart__errorCap svelte-14iupu9"></line><line class="st-barChart__errorCap svelte-14iupu9"></line></g>`),Ui=q(`<line class="st-barChart__goalLine svelte-14iupu9"></line>`),Wi=q(`<line class="st-barChart__goalLine svelte-14iupu9"></line>`),Gi=q(`<!><text class="st-barChart__goalLabel svelte-14iupu9"> </text>`,1),Ki=q(`<text class="st-barChart__annotationLabel svelte-14iupu9"> </text>`),qi=q(`<line class="st-barChart__annotationLine svelte-14iupu9"></line><!>`,1),Ji=q(`<text class="st-barChart__annotationLabel svelte-14iupu9" text-anchor="middle"> </text>`),Yi=q(`<polygon class="st-barChart__annotationShape svelte-14iupu9"></polygon><!>`,1),Xi=q(`<text class="st-barChart__annotationLabel svelte-14iupu9" text-anchor="middle"> </text>`),Zi=q(`<circle class="st-barChart__annotationPoint svelte-14iupu9" r="4.5"></circle><!>`,1),Qi=q(`<text class="st-barChart__annotationText svelte-14iupu9"> </text>`),$i=q(`<g class="st-barChart__annotations st-barChart__annotations--above"></g>`),ea=q(`<text class="st-barChart__dataLabel svelte-14iupu9"> </text>`),ta=q(`<g class="st-barChart__dataLabels" aria-hidden="true"></g>`),na=q(`<line class="st-barChart__crosshairLine svelte-14iupu9"></line>`),ra=q(`<line class="st-barChart__crosshairLine svelte-14iupu9"></line>`),ia=q(`<g class="st-barChart__crosshair" aria-hidden="true"><!></g>`),aa=q(`<rect class="st-barChart__navDatum" role="img"></rect>`),oa=q(`<svg class="st-barChart__navLayer svelte-14iupu9" preserveAspectRatio="xMidYMid meet" width="100%" height="100%" role="group"></svg>`),sa=_r(`<button type="button"><span class="st-barChart__filterSwatch svelte-14iupu9" aria-hidden="true"></span> </button>`),ca=_r(`<div class="st-barChart__filters svelte-14iupu9" role="group"></div>`),la=_r(`<div class="st-barChart__tooltip svelte-14iupu9" role="presentation"><span class="st-barChart__tooltipLabel svelte-14iupu9"> </span> <span class="st-barChart__tooltipValue svelte-14iupu9"> </span></div>`),ua=_r(`<div><div class="st-barChart__visual svelte-14iupu9" role="img"><svg preserveAspectRatio="xMidYMid meet" width="100%" height="100%" focusable="false" aria-hidden="true" class="svelte-14iupu9"><!><line class="st-barChart__axis svelte-14iupu9"></line><line class="st-barChart__axis svelte-14iupu9"></line><!><!><!><!><!><!><!><!><!><!></svg> <!></div> <!> <!> <!></div>`),da={hash:`svelte-14iupu9`,code:`.st-barChart.svelte-14iupu9 {color:var(--st-semantic-text-secondary);display:block;font-family:inherit;position:relative;width:100%;}.st-barChart.svelte-14iupu9 svg:where(.svelte-14iupu9) {display:block;overflow:visible;}.st-barChart__visual.svelte-14iupu9 {display:block;}.st-barChart__grid.svelte-14iupu9 {stroke:var(--st-component-barChart-gridStroke, var(--st-semantic-border-subtle));stroke-dasharray:2 3;stroke-width:1;opacity:0.7;}.st-barChart__axis.svelte-14iupu9 {stroke:var(--st-component-barChart-axisStroke, var(--st-semantic-border-subtle));stroke-width:1;}.st-barChart__tickLabel.svelte-14iupu9,
1
+ typeof window<`u`&&((window.__svelte??={}).v??=new Set).add(`5`);var e={},t=Symbol(),n=`http://www.w3.org/1999/xhtml`,r=Array.isArray,i=Array.prototype.indexOf,a=Array.prototype.includes,o=Array.from,s=Object.keys,c=Object.defineProperty,l=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyDescriptors,d=Object.prototype,f=Array.prototype,p=Object.getPrototypeOf,m=Object.isExtensible;function h(e){return typeof e==`function`}var g=()=>{};function _(e){for(var t=0;t<e.length;t++)e[t]()}function v(){var e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}var y=1024,b=2048,x=4096,S=8192,ee=16384,te=32768,ne=1<<25,re=65536,ie=1<<19,ae=1<<20,oe=1<<25,C=65536,se=1<<21,w=1<<22,T=1<<23,E=Symbol(`$state`),D=Symbol(`legacy props`),ce=Symbol(``),le=Symbol(`attributes`),ue=Symbol(`class`),de=Symbol(`style`),fe=Symbol(`text`),pe=new class extends Error{name=`StaleReactionError`;message="The reaction that called `getAbortSignal()` was re-run or destroyed"},O=!!globalThis.document?.contentType&&globalThis.document.contentType.includes(`xml`);function me(e){throw Error(`https://svelte.dev/e/lifecycle_outside_component`)}function he(){throw Error(`https://svelte.dev/e/async_derived_orphan`)}function ge(e,t,n){throw Error(`https://svelte.dev/e/each_key_duplicate`)}function _e(e){throw Error(`https://svelte.dev/e/effect_in_teardown`)}function ve(){throw Error(`https://svelte.dev/e/effect_in_unowned_derived`)}function ye(e){throw Error(`https://svelte.dev/e/effect_orphan`)}function be(){throw Error(`https://svelte.dev/e/effect_update_depth_exceeded`)}function xe(){throw Error(`https://svelte.dev/e/hydration_failed`)}function Se(e){throw Error(`https://svelte.dev/e/props_invalid_value`)}function Ce(){throw Error(`https://svelte.dev/e/state_descriptors_fixed`)}function we(){throw Error(`https://svelte.dev/e/state_prototype_fixed`)}function Te(){throw Error(`https://svelte.dev/e/state_unsafe_mutation`)}function Ee(){throw Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`)}function De(){console.warn(`https://svelte.dev/e/derived_inert`)}function Oe(e){console.warn(`https://svelte.dev/e/hydration_mismatch`)}function ke(){console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`)}var k=!1;function Ae(e){k=e}var A;function je(t){if(t===null)throw Oe(),e;return A=t}function Me(){return je($t(A))}function j(t){if(k){if($t(A)!==null)throw Oe(),e;A=t}}function Ne(e=1){if(k){for(var t=e,n=A;t--;)n=$t(n);A=n}}function Pe(e=!0){for(var t=0,n=A;;){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=$t(n);e&&n.remove(),n=i}}function Fe(t){if(!t||t.nodeType!==8)throw Oe(),e;return t.data}function Ie(e){return e===this.v}function Le(e,t){return e==e?e!==t||typeof e==`object`&&!!e||typeof e==`function`:t==t}function Re(e){return!Le(e,this.v)}var M=null;function ze(e){M=e}function Be(e,t=!1,n){M={p:M,i:!1,c:null,e:null,s:e,x:null,r:U,l:null}}function Ve(e){var t=M,n=t.e;if(n!==null){t.e=null;for(var r of n)fn(r)}return e!==void 0&&(t.x=e),t.i=!0,M=t.p,e??{}}function He(){return!0}var Ue=[];function We(){var e=Ue;Ue=[],_(e)}function Ge(e){if(Ue.length===0&&!at){var t=Ue;queueMicrotask(()=>{t===Ue&&We()})}Ue.push(e)}function Ke(){for(;Ue.length>0;)We()}function qe(e){var t=U;if(t===null)return H.f|=T,e;if(!(t.f&32768)&&!(t.f&4))throw e;Je(e,t)}function Je(e,t){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 Ye=~(b|x|y);function N(e,t){e.f=e.f&Ye|t}function Xe(e){e.f&512||e.deps===null?N(e,y):N(e,x)}function Ze(e){if(e!==null)for(let t of e)t.f&2&&t.f&65536&&(t.f^=C,Ze(t.deps))}function Qe(e,t,n){e.f&2048?t.add(e):e.f&4096&&n.add(e),Ze(e.deps),N(e,y)}var $e=!1;function et(e){var t=$e;try{return $e=!1,[e(),$e]}finally{$e=t}}var tt=null,P=null,nt=null,rt=null,it=null,at=!1,ot=!1,st=null,ct=null,lt=0,ut=1,dt=class e{id=ut++;#e=!1;linked=!0;#t=null;#n=null;async_deriveds=new Map;current=new Map;previous=new Map;unblocked=new Set;#r=new Set;#i=new Set;#a=new Set;#o=0;#s=new Map;#c=null;#l=[];#u=[];#d=new Set;#f=new Set;#p=new Map;#m=new Set;is_fork=!1;#h=!1;#g(){if(this.is_fork)return!0;for(let n of this.#s.keys()){for(var e=n,t=!1;e.parent!==null;){if(this.#p.has(e)){t=!0;break}e=e.parent}if(!t)return!0}return!1}skip_effect(e){this.#p.has(e)||this.#p.set(e,{d:[],m:[]}),this.#m.delete(e)}unskip_effect(e,t=e=>this.schedule(e)){var n=this.#p.get(e);if(n){this.#p.delete(e);for(var r of n.d)N(r,b),t(r);for(r of n.m)N(r,x),t(r)}this.#m.add(e)}#_(){if(this.#e=!0,lt++>1e3&&(this.#C(),pt()),!this.#g()){for(let e of this.#d)this.#f.delete(e),N(e,b),this.schedule(e);for(let e of this.#f)N(e,x),this.schedule(e)}let t=this.#l;this.#l=[],this.apply();var n=st=[],r=[],i=ct=[];for(let e of t)try{this.#v(e,n,r)}catch(t){throw vt(e),t}if(P=null,i.length>0){var a=e.ensure();for(let e of i)a.schedule(e)}if(st=null,ct=null,this.#g()){this.#x(r),this.#x(n);for(let[e,t]of this.#p)_t(e,t);i.length>0&&P.#_();return}let o=this.#y();if(o)o.#b(this);else{this.#d.clear(),this.#f.clear();for(let e of this.#r)e(this);this.#r.clear(),nt=this,ht(r),ht(n),nt=null,this.#c?.resolve();var s=P;if(this.linked&&this.#o===0&&this.#C(),this.#l.length>0){s===null&&(s=this,this.#S());let e=s;e.#l.push(...this.#l.filter(t=>!e.#l.includes(t)))}s!==null&&s.#_()}}#v(e,t,n){e.f^=y;for(var r=e.first;r!==null;){var i=r.f,a=!!(i&96);if(!(a&&i&1024||i&8192||this.#p.has(r))&&r.fn!==null){a?r.f^=y:i&4?t.push(r):Yn(r)&&(i&16&&this.#f.add(r),er(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}}}#y(){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}#b(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)}let t=e=>{var n=e.reactions;if(n!==null)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.#f.delete(i),N(i,b),this.schedule(i))}}};for(let e of this.current.keys())t(e);this.oncommit(()=>e.discard()),e.#C(),P=this,this.#_()}#x(e){for(var t=0;t<e.length;t+=1)Qe(e[t],this.#d,this.#f)}capture(e,n,r=!1){e.v!==t&&!this.previous.has(e)&&this.previous.set(e,e.v),e.f&8388608||(this.current.set(e,[n,r]),rt?.set(e,n)),this.is_fork||(e.v=n)}activate(){P=this}deactivate(){P=null,rt=null}flush(){try{ot=!0,P=this,this.#_()}finally{lt=0,it=null,st=null,ct=null,ot=!1,P=null,rt=null,Lt.clear()}}discard(){for(let e of this.#i)e(this);this.#i.clear(),this.#a.clear(),this.#C()}register_created_effect(e){this.#u.push(e)}increment(e,t){if(this.#o+=1,e){let e=this.#s.get(t)??0;this.#s.set(t,e+1)}}decrement(e,t){if(--this.#o,e){let e=this.#s.get(t)??0;e===1?this.#s.delete(t):this.#s.set(t,e-1)}this.#h||(this.#h=!0,Ge(()=>{this.#h=!1,this.linked&&this.flush()}))}transfer_effects(e,t){for(let t of e)this.#d.add(t);for(let e of t)this.#f.add(e);e.clear(),t.clear()}oncommit(e){this.#r.add(e)}ondiscard(e){this.#i.add(e)}on_fork_commit(e){this.#a.add(e)}run_fork_commit_callbacks(){for(let e of this.#a)e(this);this.#a.clear()}settled(){return(this.#c??=v()).promise}static ensure(){if(P===null){let t=P=new e;t.#S(),!ot&&!at&&Ge(()=>{t.#e||t.flush()})}return P}apply(){rt=null}schedule(e){if(it=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(st!==null&&t===U&&(H===null||!(H.f&2)))return;if(n&96){if(!(n&1024))return;t.f^=y}}this.#l.push(t)}}#S(){tt===null?tt=this:(tt.#n=this,this.#t=tt),tt=this}#C(){var e=this.#t,t=this.#n;e===null||(e.#n=t),t===null?tt=e:t.#t=e,this.linked=!1}};function ft(e){var t=at;at=!0;try{var n;for(e&&(P!==null&&!P.is_fork&&P.flush(),n=e());;){if(Ke(),P===null)return n;P.flush()}}finally{at=t}}function pt(){try{be()}catch(e){Je(e,it)}}var mt=null;function ht(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&24576)&&Yn(r)&&(mt=new Set,er(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&Tn(r),mt?.size>0)){Lt.clear();for(let e of mt){if(e.f&24576)continue;let t=[e],n=e.parent;for(;n!==null;)mt.has(n)&&(mt.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){let n=t[e];n.f&24576||er(n)}}mt.clear()}}mt=null}}function gt(e){P.schedule(e)}function _t(e,t){if(!(e.f&32&&e.f&1024)){e.f&2048?t.d.push(e):e.f&4096&&t.m.push(e),N(e,y);for(var n=e.first;n!==null;)_t(n,t),n=n.next}}function vt(e){N(e,y);for(var t=e.first;t!==null;)vt(t),t=t.next}function yt(e){let t=0,n=zt(0),r;return()=>{ln()&&(W(n),_n(()=>(t===0&&(r=rr(()=>e(()=>Ut(n)))),t+=1,()=>{Ge(()=>{--t,t===0&&(r?.(),r=void 0,Ut(n))})})))}}var bt=re|ie;function xt(e,t,n,r){new St(e,t,n,r)}var St=class{parent;is_pending=!1;transform_error;#e;#t=k?A: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=yt(()=>(this.#m=zt(this.#l),()=>{this.#m=null}));constructor(e,t,n,r){this.#e=e,this.#n=t,this.#r=e=>{var t=U;t.b=this,t.f|=128,n(e)},this.parent=U.b,this.transform_error=r??this.parent?.transform_error??(e=>e),this.#i=vn(()=>{if(k){let e=this.#t;Me();let t=e.data===`[!`;if(e.data.startsWith(`[?`)){let t=JSON.parse(e.data.slice(2));this.#_(t)}else t?this.#v():this.#g()}else this.#y()},bt),k&&(this.#e=A)}#g(){try{this.#a=yn(()=>this.#r(this.#e))}catch(e){this.error(e)}}#_(e){let t=this.#n.failed;t&&(this.#s=yn(()=>{t(this.#e,()=>e,()=>()=>{})}))}#v(){let e=this.#n.pending;e&&(this.is_pending=!0,this.#o=yn(()=>e(this.#e)),Ge(()=>{var e=this.#c=document.createDocumentFragment(),t=Zt();e.append(t),this.#a=this.#x(()=>yn(()=>this.#r(t))),this.#u===0&&(this.#e.before(e),this.#c=null,En(this.#o,()=>{this.#o=null}),this.#b(P))}))}#y(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#l=0,this.#a=yn(()=>{this.#r(this.#e)}),this.#u>0){var e=this.#c=document.createDocumentFragment();An(this.#a,e);let t=this.#n.pending;this.#o=yn(()=>t(this.#e))}else this.#b(P)}catch(e){this.error(e)}}#b(e){this.is_pending=!1,e.transfer_effects(this.#f,this.#p)}defer_effect(e){Qe(e,this.#f,this.#p)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#n.pending}#x(e){var t=U,n=H,r=M;Ln(this.#i),In(this.#i),ze(this.#i.ctx);try{return dt.ensure(),e()}catch(e){return qe(e),null}finally{Ln(t),In(n),ze(r)}}#S(e,t){this.has_pending_snippet()?(this.#u+=e,this.#u===0&&(this.#b(t),this.#o&&En(this.#o,()=>{this.#o=null}),this.#c&&=(this.#e.before(this.#c),null))):this.parent&&this.parent.#S(e,t)}update_pending_count(e,t){this.#S(e,t),this.#l+=e,!(!this.#m||this.#d)&&(this.#d=!0,Ge(()=>{this.#d=!1,this.#m&&Vt(this.#m,this.#l)}))}get_effect_pending(){return this.#h(),W(this.#m)}error(e){if(!this.#n.onerror&&!this.#n.failed)throw e;P?.is_fork?(this.#a&&P.skip_effect(this.#a),this.#o&&P.skip_effect(this.#o),this.#s&&P.skip_effect(this.#s),P.on_fork_commit(()=>{this.#C(e)})):this.#C(e)}#C(e){this.#a&&=(Cn(this.#a),null),this.#o&&=(Cn(this.#o),null),this.#s&&=(Cn(this.#s),null),k&&(je(this.#t),Ne(),je(Pe()));var t=this.#n.onerror;let n=this.#n.failed;var r=!1,i=!1;let a=()=>{r?ke():(r=!0,i&&Ee(),this.#s!==null&&En(this.#s,()=>{this.#s=null}),this.#x(()=>{this.#y()}))},o=e=>{try{i=!0,t?.(e,a),i=!1}catch(e){Je(e,this.#i&&this.#i.parent)}n&&(this.#s=this.#x(()=>{try{return yn(()=>{var t=U;t.b=this,t.f|=128,n(this.#e,()=>e,()=>a)})}catch(e){return Je(e,this.#i.parent),null}}))};Ge(()=>{var t;try{t=this.transform_error(e)}catch(e){Je(e,this.#i&&this.#i.parent);return}typeof t==`object`&&t&&typeof t.then==`function`?t.then(o,e=>Je(e,this.#i&&this.#i.parent)):o(t)})}};function Ct(e,t,n,r){let i=He()?Dt:At;var a=e.filter(e=>!e.settled);if(n.length===0&&a.length===0){r(t.map(i));return}var o=U,s=wt(),c=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(e=>e.promise)):null;function l(e){if(!(o.f&16384)){s();try{r(e)}catch(e){Je(e,o)}Tt()}}var u=Et();if(n.length===0){c.then(()=>l(t.map(i))).finally(u);return}function d(){Promise.all(n.map(e=>kt(e))).then(e=>l([...t.map(i),...e])).catch(e=>Je(e,o)).finally(u)}c?c.then(()=>{s(),d(),Tt()}):d()}function wt(){var e=U,t=H,n=M,r=P;return function(i=!0){Ln(e),In(t),ze(n),i&&!(e.f&16384)&&(r?.activate(),r?.apply())}}function Tt(e=!0){Ln(null),In(null),ze(null),e&&P?.deactivate()}function Et(){var e=U,t=e.b,n=P,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 Dt(e){var n=2|b;return U!==null&&(U.f|=ie),{ctx:M,deps:null,effects:null,equals:Ie,f:n,fn:e,reactions:null,rv:0,v:t,wv:0,parent:U,ac:null}}var Ot=Symbol(`obsolete`);function kt(e,n,r){let i=U;i===null&&he();var a=void 0,o=zt(t),s=!H,c=new Set;return gn(()=>{var t=U,n=v();a=n.promise;try{Promise.resolve(e()).then(n.resolve,e=>{e!==pe&&n.reject(e)}).finally(Tt)}catch(e){n.reject(e),Tt()}var r=P;if(s){if(t.f&32768)var l=Et();if(i.b.is_rendered())r.async_deriveds.get(t)?.reject(Ot);else for(let e of c.values())e.reject(Ot);c.add(n),r.async_deriveds.set(t,n)}let u=(e,t=void 0)=>{l?.(),c.delete(n),t!==Ot&&(r.activate(),t?(o.f|=T,Vt(o,t)):(o.f&8388608&&(o.f^=T),Vt(o,e)),r.deactivate())};n.promise.then(u,e=>u(null,e||`unknown`))}),un(()=>{for(let e of c)e.reject(Ot)}),new Promise(e=>{function t(n){function r(){n===a?e(o):t(a)}n.then(r,r)}t(a)})}function F(e){let t=Dt(e);return zn(t),t}function At(e){let t=Dt(e);return t.equals=Re,t}function jt(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)Cn(t[n])}}function Mt(e){var t,n=U,r=e.parent;if(!Nn&&r!==null&&r.f&24576)return De(),e.v;Ln(r);try{e.f&=~C,jt(e),t=Zn(e)}finally{Ln(n)}return t}function Nt(e){var t=Mt(e);!e.equals(t)&&(e.wv=Jn(),(!P?.is_fork||e.deps===null)&&(P===null?e.v=t:(P.capture(e,t,!0),nt?.capture(e,t,!0)),e.deps===null))?N(e,y):Nn||(rt===null?Xe(e):(ln()||P?.is_fork)&&rt.set(e,t))}function Pt(e){if(e.effects!==null)for(let t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(pe),t.teardown=g,t.ac=null,$n(t,0),xn(t))}function Ft(e){if(e.effects!==null)for(let t of e.effects)t.teardown&&er(t)}var It=new Set,Lt=new Map,Rt=!1;function zt(e,t){return{f:0,v:e,reactions:null,equals:Ie,rv:0,wv:0}}function I(e,t){let n=zt(e,t);return zn(n),n}function Bt(e,t=!1,n=!0){let r=zt(e);return t||(r.equals=Re),r}function L(e,t,n=!1){return H!==null&&(!Fn||H.f&131072)&&He()&&H.f&4325394&&(Rn===null||!a.call(Rn,e))&&Te(),Vt(e,n?Gt(t):t,ct)}function Vt(e,t,n=null){if(!e.equals(t)){Lt.set(e,Nn?t:e.v);var r=dt.ensure();if(r.capture(e,t),e.f&2){let t=e;e.f&2048&&Mt(t),rt===null&&Xe(t)}e.wv=Jn(),Wt(e,b,n),He()&&U!==null&&U.f&1024&&!(U.f&96)&&(Hn===null?Un([e]):Hn.push(e)),!r.is_fork&&It.size>0&&!Rt&&Ht()}return t}function Ht(){Rt=!1;for(let e of It){e.f&1024&&N(e,x);let t;try{t=Yn(e)}catch{t=!0}t&&er(e)}It.clear()}function Ut(e){L(e,e.v+1)}function Wt(e,t,n){var r=e.reactions;if(r!==null)for(var i=He(),a=r.length,o=0;o<a;o++){var s=r[o],c=s.f;if(i||s!==U){var l=(c&b)===0;if(l&&N(s,t),c&131072)It.add(s);else if(c&2){var u=s;rt?.delete(u),c&65536||(c&512&&(U===null||!(U.f&2097152))&&(s.f|=C),Wt(u,x,n))}else if(l){var d=s;c&16&&mt!==null&&mt.add(d),n===null?gt(d):n.push(d)}}}}function Gt(e){if(typeof e!=`object`||!e||E in e)return e;let n=p(e);if(n!==d&&n!==f)return e;var i=new Map,a=r(e),o=I(0),s=null,c=Kn,u=e=>{if(Kn===c)return e();var t=H,n=Kn;In(null),qn(c);var r=e();return In(t),qn(n),r};return a&&i.set(`length`,I(e.length,s)),new Proxy(e,{defineProperty(e,t,n){(!(`value`in n)||n.configurable===!1||n.enumerable===!1||n.writable===!1)&&Ce();var r=i.get(t);return r===void 0?u(()=>{var e=I(n.value,s);return i.set(t,e),e}):L(r,n.value,!0),!0},deleteProperty(e,n){var r=i.get(n);if(r===void 0){if(n in e){let e=u(()=>I(t,s));i.set(n,e),Ut(o)}}else L(r,t),Ut(o);return!0},get(n,r,a){if(r===E)return e;var o=i.get(r),c=r in n;if(o===void 0&&(!c||l(n,r)?.writable)&&(o=u(()=>I(Gt(c?n[r]:t),s)),i.set(r,o)),o!==void 0){var d=W(o);return d===t?void 0:d}return Reflect.get(n,r,a)},getOwnPropertyDescriptor(e,n){var r=Reflect.getOwnPropertyDescriptor(e,n);if(r&&`value`in r){var a=i.get(n);a&&(r.value=W(a))}else if(r===void 0){var o=i.get(n),s=o?.v;if(o!==void 0&&s!==t)return{enumerable:!0,configurable:!0,value:s,writable:!0}}return r},has(e,n){if(n===E)return!0;var r=i.get(n),a=r!==void 0&&r.v!==t||Reflect.has(e,n);return(r!==void 0||U!==null&&(!a||l(e,n)?.writable))&&(r===void 0&&(r=u(()=>I(a?Gt(e[n]):t,s)),i.set(n,r)),W(r)===t)?!1:a},set(e,n,r,c){var d=i.get(n),f=n in e;if(a&&n===`length`)for(var p=r;p<d.v;p+=1){var m=i.get(p+``);m===void 0?p in e&&(m=u(()=>I(t,s)),i.set(p+``,m)):L(m,t)}if(d===void 0)(!f||l(e,n)?.writable)&&(d=u(()=>I(void 0,s)),L(d,Gt(r)),i.set(n,d));else{f=d.v!==t;var h=u(()=>Gt(r));L(d,h)}var g=Reflect.getOwnPropertyDescriptor(e,n);if(g?.set&&g.set.call(c,r),!f){if(a&&typeof n==`string`){var _=i.get(`length`),v=Number(n);Number.isInteger(v)&&v>=_.v&&L(_,v+1)}Ut(o)}return!0},ownKeys(e){W(o);var n=Reflect.ownKeys(e).filter(e=>{var n=i.get(e);return n===void 0||n.v!==t});for(var[r,a]of i)a.v!==t&&!(r in e)&&n.push(r);return n},setPrototypeOf(){we()}})}var Kt,qt,Jt,Yt;function Xt(){if(Kt===void 0){Kt=window,qt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Jt=l(t,`firstChild`).get,Yt=l(t,`nextSibling`).get,m(e)&&(e[ue]=void 0,e[le]=null,e[de]=void 0,e.__e=void 0),m(n)&&(n[fe]=void 0)}}function Zt(e=``){return document.createTextNode(e)}function Qt(e){return Jt.call(e)}function $t(e){return Yt.call(e)}function R(e,t){if(!k)return Qt(e);var n=Qt(A);if(n===null)n=A.appendChild(Zt());else if(t&&n.nodeType!==3){var r=Zt();return n?.before(r),je(r),r}return t&&rn(n),je(n),n}function z(e,t=!1){if(!k){var n=Qt(e);return n instanceof Comment&&n.data===``?$t(n):n}if(t){if(A?.nodeType!==3){var r=Zt();return A?.before(r),je(r),r}rn(A)}return A}function B(e,t=1,n=!1){let r=k?A:e;for(var i;t--;)i=r,r=$t(r);if(!k)return r;if(n){if(r?.nodeType!==3){var a=Zt();return r===null?i?.after(a):r.before(a),je(a),a}rn(r)}return je(r),r}function en(e){e.textContent=``}function tn(){return!1}function nn(e,t,n){let r=n?{is:n}:void 0;return document.createElementNS(t??`http://www.w3.org/1999/xhtml`,e,r)}function rn(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 an(e){var t=H,n=U;In(null),Ln(null);try{return e()}finally{In(t),Ln(n)}}function on(e){U===null&&(H===null&&ye(e),ve()),Nn&&_e(e)}function sn(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function cn(e,t){var n=U;n!==null&&n.f&8192&&(e|=S);var r={ctx:M,deps:null,nodes:null,f:e|b|512,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null};P?.register_created_effect(r);var i=r;if(e&4)st===null?dt.ensure().schedule(r):st.push(r);else if(t!==null){try{er(r)}catch(e){throw Cn(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|=re))}if(i!==null&&(i.parent=n,n!==null&&sn(i,n),H!==null&&H.f&2&&!(e&64))){var a=H;(a.effects??=[]).push(i)}return r}function ln(){return H!==null&&!Fn}function un(e){let t=cn(8,null);return N(t,y),t.teardown=e,t}function dn(e){on(`$effect`);var t=U.f;if(!H&&t&32&&!(t&32768)){var n=M;(n.e??=[]).push(e)}else return fn(e)}function fn(e){return cn(4|ae,e)}function pn(e){dt.ensure();let t=cn(64|ie,e);return()=>{Cn(t)}}function mn(e){dt.ensure();let t=cn(64|ie,e);return(e={})=>new Promise(n=>{e.outro?En(t,()=>{Cn(t),n(void 0)}):(Cn(t),n(void 0))})}function hn(e){return cn(4,e)}function gn(e){return cn(w|ie,e)}function _n(e,t=0){return cn(8|t,e)}function V(e,t=[],n=[],r=[]){Ct(r,t,n,t=>{cn(8,()=>e(...t.map(W)))})}function vn(e,t=0){return cn(16|t,e)}function yn(e){return cn(32|ie,e)}function bn(e){var t=e.teardown;if(t!==null){let e=Nn,n=H;Pn(!0),In(null);try{t.call(null)}finally{Pn(e),In(n)}}}function xn(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){let e=n.ac;e!==null&&an(()=>{e.abort(pe)});var r=n.next;n.f&64?n.parent=null:Cn(n,t),n=r}}function Sn(e){for(var t=e.first;t!==null;){var n=t.next;t.f&32||Cn(t),t=n}}function Cn(e,t=!0){var n=!1;(t||e.f&262144)&&e.nodes!==null&&e.nodes.end!==null&&(wn(e.nodes.start,e.nodes.end),n=!0),N(e,ne),xn(e,t&&!n),$n(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)e.stop();bn(e),e.f^=ne,e.f|=ee;var i=e.parent;i!==null&&i.first!==null&&Tn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function wn(e,t){for(;e!==null;){var n=e===t?null:$t(e);e.remove(),e=n}}function Tn(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 En(e,t,n=!0){var r=[];Dn(e,r,!0);var i=()=>{n&&Cn(e),t&&t()},a=r.length;if(a>0){var o=()=>--a||i();for(var s of r)s.out(o)}else i()}function Dn(e,t,n){if(!(e.f&8192)){e.f^=S;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);Dn(i,t,o?n:!1)}i=a}}}function On(e){kn(e,!0)}function kn(e,t){if(e.f&8192){e.f^=S,e.f&1024||(N(e,b),dt.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=!!(n.f&65536)||!!(n.f&32);kn(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 An(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:$t(n);t.append(n),n=i}}var jn=null,Mn=!1,Nn=!1;function Pn(e){Nn=e}var H=null,Fn=!1;function In(e){H=e}var U=null;function Ln(e){U=e}var Rn=null;function zn(e){H!==null&&(Rn===null?Rn=[e]:Rn.push(e))}var Bn=null,Vn=0,Hn=null;function Un(e){Hn=e}var Wn=1,Gn=0,Kn=Gn;function qn(e){Kn=e}function Jn(){return++Wn}function Yn(e){var t=e.f;if(t&2048)return!0;if(t&2&&(e.f&=~C),t&4096){for(var n=e.deps,r=n.length,i=0;i<r;i++){var a=n[i];if(Yn(a)&&Nt(a),a.wv>e.wv)return!0}t&512&&rt===null&&N(e,y)}return!1}function Xn(e,t,n=!0){var r=e.reactions;if(r!==null&&(Rn===null||!a.call(Rn,e)))for(var i=0;i<r.length;i++){var o=r[i];o.f&2?Xn(o,t,!1):t===o&&(n?N(o,b):o.f&1024&&N(o,x),gt(o))}}function Zn(e){var t=Bn,n=Vn,r=Hn,i=H,a=Rn,o=M,s=Fn,c=Kn,l=e.f;Bn=null,Vn=0,Hn=null,H=l&96?null:e,Rn=null,ze(e.ctx),Fn=!1,Kn=++Gn,e.ac!==null&&(an(()=>{e.ac.abort(pe)}),e.ac=null);try{e.f|=se;var u=e.fn,d=u();e.f|=te;var f=e.deps,p=P?.is_fork;if(Bn!==null){var m;if(p||$n(e,Vn),f!==null&&Vn>0)for(f.length=Vn+Bn.length,m=0;m<Bn.length;m++)f[Vn+m]=Bn[m];else e.deps=f=Bn;if(ln()&&e.f&512)for(m=Vn;m<f.length;m++)(f[m].reactions??=[]).push(e)}else!p&&f!==null&&Vn<f.length&&($n(e,Vn),f.length=Vn);if(He()&&Hn!==null&&!Fn&&f!==null&&!(e.f&6146))for(m=0;m<Hn.length;m++)Xn(Hn[m],e);if(i!==null&&i!==e){if(Gn++,i.deps!==null)for(let e=0;e<n;e+=1)i.deps[e].rv=Gn;if(t!==null)for(let e of t)e.rv=Gn;Hn!==null&&(r===null?r=Hn:r.push(...Hn))}return e.f&8388608&&(e.f^=T),d}catch(e){return qe(e)}finally{e.f^=se,Bn=t,Vn=n,Hn=r,H=i,Rn=a,ze(o),Fn=s,Kn=c}}function Qn(e,n){let r=n.reactions;if(r!==null){var o=i.call(r,e);if(o!==-1){var s=r.length-1;s===0?r=n.reactions=null:(r[o]=r[s],r.pop())}}if(r===null&&n.f&2&&(Bn===null||!a.call(Bn,n))){var c=n;c.f&512&&(c.f^=512,c.f&=~C),c.v!==t&&Xe(c),Pt(c),$n(c,0)}}function $n(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Qn(e,n[r])}function er(e){var t=e.f;if(!(t&16384)){N(e,y);var n=U,r=Mn;U=e,Mn=!0;try{t&16777232?Sn(e):xn(e),bn(e);var i=Zn(e);e.teardown=typeof i==`function`?i:null,e.wv=Wn}finally{Mn=r,U=n}}}function W(e){var t=!!(e.f&2);if(jn?.add(e),H!==null&&!Fn&&!(U!==null&&U.f&16384)&&(Rn===null||!a.call(Rn,e))){var n=H.deps;if(H.f&2097152)e.rv<Gn&&(e.rv=Gn,Bn===null&&n!==null&&n[Vn]===e?Vn++:Bn===null?Bn=[e]:Bn.push(e));else{(H.deps??=[]).push(e);var r=e.reactions;r===null?e.reactions=[H]:a.call(r,H)||r.push(H)}}if(Nn&&Lt.has(e))return Lt.get(e);if(t){var i=e;if(Nn){var o=i.v;return(!(i.f&1024)&&i.reactions!==null||nr(i))&&(o=Mt(i)),Lt.set(i,o),o}var s=!(i.f&512)&&!Fn&&H!==null&&(Mn||!!(H.f&512)),c=(i.f&te)===0;Yn(i)&&(s&&(i.f|=512),Nt(i)),s&&!c&&(Ft(i),tr(i))}if(rt?.has(e))return rt.get(e);if(e.f&8388608)throw e.v;return e.v}function tr(e){if(e.f|=512,e.deps!==null)for(let t of e.deps)(t.reactions??=[]).push(e),t.f&2&&!(t.f&512)&&(Ft(t),tr(t))}function nr(e){if(e.v===t)return!0;if(e.deps===null)return!1;for(let t of e.deps)if(Lt.has(t)||t.f&2&&nr(t))return!0;return!1}function rr(e){var t=Fn;try{return Fn=!0,e()}finally{Fn=t}}function ir(e){if(!(typeof e!=`object`||!e||e instanceof EventTarget)){if(E in e)ar(e);else if(!Array.isArray(e))for(let t in e){let n=e[t];typeof n==`object`&&n&&E in n&&ar(n)}}}function ar(e,t=new Set){if(typeof e==`object`&&e&&!(e instanceof EventTarget)&&!t.has(e)){t.add(e),e instanceof Date&&e.getTime();for(let n in e)try{ar(e[n],t)}catch{}let n=p(e);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){let t=u(n);for(let n in t){let r=t[n].get;if(r)try{r.call(e)}catch{}}}}}var or=Symbol(`events`),sr=new Set,cr=new Set;function lr(e,t,n,r={}){function i(e){if(r.capture||mr.call(t,e),!e.cancelBubble)return an(()=>n?.call(this,e))}return e.startsWith(`pointer`)||e.startsWith(`touch`)||e===`wheel`?Ge(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function ur(e,t,n,r,i){var a={capture:r,passive:i},o=lr(e,t,n,a);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&un(()=>{t.removeEventListener(e,o,a)})}function dr(e,t,n){(t[or]??={})[e]=n}function fr(e){for(var t=0;t<e.length;t++)sr.add(e[t]);for(var n of cr)n(e)}var pr=null;function mr(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],a=i[0]||e.target;pr=e;var o=0,s=pr===e&&e[or];if(s){var l=i.indexOf(s);if(l!==-1&&(t===document||t===window)){e[or]=t;return}var u=i.indexOf(t);if(u===-1)return;l<=u&&(o=l)}if(a=i[o]||e.target,a!==t){c(e,`currentTarget`,{configurable:!0,get(){return a||n}});var d=H,f=U;In(null),Ln(null);try{for(var p,m=[];a!==null;){var h=a.assignedSlot||a.parentNode||a.host||null;try{var g=a[or]?.[r];g!=null&&(!a.disabled||e.target===a)&&g.call(a,e)}catch(e){p?m.push(e):p=e}if(e.cancelBubble||h===t||h===null)break;a=h}if(p){for(let e of m)queueMicrotask(()=>{throw e});throw p}}finally{e[or]=t,delete e.currentTarget,In(d),Ln(f)}}}var hr=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy(`svelte-trusted-html`,{createHTML:e=>e});function gr(e){return hr?.createHTML(e)??e}function _r(e){var t=nn(`template`);return t.innerHTML=gr(e.replaceAll(`<!>`,`<!---->`)),t.content}function vr(e,t){var n=U;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(k)return vr(A,null),A;i===void 0&&(i=_r(a?e:`<!>`+e),n||(i=Qt(i)));var t=r||qt?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=Qt(t),s=t.lastChild;vr(o,s)}else vr(t,t);return t}}function yr(e,t,n=`svg`){var r=!e.startsWith(`<!>`),i=!!(t&1),a=`<${n}>${r?e:`<!>`+e}</${n}>`,o;return()=>{if(k)return vr(A,null),A;if(!o){var e=Qt(_r(a));if(i)for(o=document.createDocumentFragment();Qt(e);)o.appendChild(Qt(e));else o=Qt(e)}var t=o.cloneNode(!0);if(i){var n=Qt(t),r=t.lastChild;vr(n,r)}else vr(t,t);return t}}function K(e,t){return yr(e,t,`svg`)}function br(){if(k)return vr(A,null),A;var e=document.createDocumentFragment(),t=document.createComment(``),n=Zt();return e.append(t,n),vr(t,n),e}function q(e,t){if(k){var n=U;(!(n.f&32768)||n.nodes.end===null)&&(n.nodes.end=A),Me()}else e!==null&&e.before(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 xr=[`touchstart`,`touchmove`];function Sr(e){return xr.includes(e)}function J(e,t){var n=t==null?``:typeof t==`object`?`${t}`:t;n!==(e[fe]??=e.nodeValue)&&(e[fe]=n,e.nodeValue=`${n}`)}function Cr(e,t){return Er(e,t)}function wr(t,n){Xt(),n.intro=n.intro??!1;let r=n.target,i=k,a=A;try{for(var o=Qt(r);o&&(o.nodeType!==8||o.data!==`[`);)o=$t(o);if(!o)throw e;Ae(!0),je(o);let i=Er(t,{...n,anchor:o});return Ae(!1),i}catch(i){if(i instanceof Error&&i.message.split(`
2
+ `).some(e=>e.startsWith(`https://svelte.dev/e/`)))throw i;return i!==e&&console.warn(`Failed to hydrate: `,i),n.recover===!1&&xe(),Xt(),en(r),Ae(!1),Cr(t,n)}finally{Ae(i),je(a)}}var Tr=new Map;function Er(t,{target:n,anchor:r,props:i={},events:a,context:s,intro:c=!0,transformError:l}){Xt();var u=void 0,d=mn(()=>{var c=r??n.appendChild(Zt());xt(c,{pending:()=>{}},n=>{Be({});var r=M;if(s&&(r.c=s),a&&(i.$$events=a),k&&vr(n,null),u=t(n,i)||{},k&&(U.nodes.end=A,A===null||A.nodeType!==8||A.data!==`]`))throw Oe(),e;Ve()},l);var d=new Set,f=e=>{for(var t=0;t<e.length;t++){var r=e[t];if(!d.has(r)){d.add(r);var i=Sr(r);for(let e of[n,document]){var a=Tr.get(e);a===void 0&&(a=new Map,Tr.set(e,a));var o=a.get(r);o===void 0?(e.addEventListener(r,mr,{passive:i}),a.set(r,1)):a.set(r,o+1)}}}};return f(o(sr)),cr.add(f),()=>{for(var e of d)for(let r of[n,document]){var t=Tr.get(r),i=t.get(e);--i==0?(r.removeEventListener(e,mr),t.delete(e),t.size===0&&Tr.delete(r)):t.set(e,i)}cr.delete(f),c!==r&&c.parentNode?.removeChild(c)}});return Dr.set(u,d),u}var Dr=new WeakMap;function Or(e,t){let n=Dr.get(e);return n?(Dr.delete(e),n(t)):Promise.resolve()}var kr=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)On(n),this.#r.delete(t);else{var r=this.#n.get(t);r&&(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&&(Cn(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();An(r,t),t.append(Zt()),this.#n.set(e,{effect:r,fragment:t})}else Cn(r);this.#r.delete(e),this.#t.delete(e)};this.#i||!n?(this.#r.add(e),En(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)||(Cn(n.effect),this.#n.delete(e))};ensure(e,t){var n=P,r=tn();if(t&&!this.#t.has(e)&&!this.#n.has(e)){if(r){var i=document.createDocumentFragment(),a=Zt();i.append(a),this.#n.set(e,{effect:yn(()=>t(a)),fragment:i})}else this.#t.set(e,yn(()=>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 k&&(this.anchor=A),this.#a(n)}};function Ar(e){M===null&&me(`onMount`),dn(()=>{let t=rr(e);if(typeof t==`function`)return t})}function Y(e,t,n=!1){var r;k&&(r=A,Me());var i=new kr(e),a=n?re:0;function o(e,t){if(k){var n=Fe(r);if(e!==parseInt(n.substring(1))){var a=Pe();je(a),i.anchor=a,Ae(!1),i.ensure(e,t),Ae(!0);return}}i.ensure(e,t)}vn(()=>{var e=!1;t((t,n=0)=>{e=!0,o(n,t)}),e||o(-1,null)},a)}function jr(e,t){return t}function Mr(e,t,n){for(var r=[],i=t.length,a,s=t.length,c=0;c<i;c++){let n=t[c];En(n,()=>{if(a){if(a.pending.delete(n),a.done.add(n),a.pending.size===0){var t=e.outrogroups;Nr(e,o(a.done)),t.delete(a),t.size===0&&(e.outrogroups=null)}}else--s},!1)}if(s===0){var l=r.length===0&&n!==null;if(l){var u=n,d=u.parentNode;en(d),d.append(u),e.items.clear()}Nr(e,t,!l)}else a={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(a)}function Nr(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|=oe,An(a,document.createDocumentFragment())):Cn(t[i],n)}}var Pr;function X(e,t,n,i,a,s=null){var c=e,l=new Map;if(t&4){var u=e;c=k?je(Qt(u)):u.appendChild(Zt())}k&&Me();var d=null,f=At(()=>{var e=n();return r(e)?e:e==null?[]:o(e)}),p,m=new Map,h=!0;function g(e){v.effect.f&16384||(v.pending.delete(e),v.fallback=d,Ir(v,p,c,t,i),d!==null&&(p.length===0?d.f&33554432?(d.f^=oe,Rr(d,null,c)):On(d):En(d,()=>{d=null})))}function _(e){v.pending.delete(e)}var v={effect:vn(()=>{p=W(f);var e=p.length;let r=!1;k&&Fe(c)===`[!`!=(e===0)&&(c=Pe(),je(c),Ae(!1),r=!0);for(var o=new Set,u=P,v=tn(),y=0;y<e;y+=1){k&&A.nodeType===8&&A.data===`]`&&(c=A,r=!0,Ae(!1));var b=p[y],x=i(b,y),S=h?null:l.get(x);S?(S.v&&Vt(S.v,b),S.i&&Vt(S.i,y),v&&u.unskip_effect(S.e)):(S=Lr(l,h?c:Pr??=Zt(),b,x,y,a,t,n),h||(S.e.f|=oe),l.set(x,S)),o.add(x)}if(e===0&&s&&!d&&(h?d=yn(()=>s(c)):(d=yn(()=>s(Pr??=Zt())),d.f|=oe)),e>o.size&&ge(``,``,``),k&&e>0&&je(Pe()),!h){if(m.set(u,o),v){for(let[e,t]of l)o.has(e)||u.skip_effect(t.e);u.oncommit(g),u.ondiscard(_)}else g(u)}r&&Ae(!0),W(f)}),flags:t,items:l,pending:m,outrogroups:null,fallback:d};h=!1,k&&(c=A)}function Fr(e){for(;e!==null&&!(e.f&32);)e=e.next;return e}function Ir(e,t,n,r,i){var a=!!(r&8),s=t.length,c=e.items,l=Fr(e.effect.first),u,d=null,f,p=[],m=[],h,g,_,v;if(a)for(v=0;v<s;v+=1)h=t[v],g=i(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=i(h,v),_=c.get(g).e,e.outrogroups!==null)for(let t of e.outrogroups)t.pending.delete(_),t.done.delete(_);if(_.f&8192&&(On(_),a&&(_.nodes?.a?.unfix(),(f??=new Set).delete(_))),_.f&33554432){if(_.f^=oe,_===l)Rr(_,null,n);else{var y=d?d.next:l;_===e.effect.last&&(e.effect.last=_.prev),_.prev&&(_.prev.next=_.next),_.next&&(_.next.prev=_.prev),zr(e,d,_),zr(e,_,y),Rr(_,y,n),d=_,p=[],m=[],l=Fr(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)Rr(p[x],b,n);for(x=0;x<m.length;x+=1)u.delete(m[x]);zr(e,S.prev,ee.next),zr(e,d,S),zr(e,ee,b),l=b,d=ee,--v,p=[],m=[]}else u.delete(_),Rr(_,l,n),zr(e,_.prev,_.next),zr(e,_,d===null?e.effect.first:d.next),zr(e,d,_),d=_;continue}for(p=[],m=[];l!==null&&l!==_;)(u??=new Set).add(l),m.push(l),l=Fr(l.next);if(l===null)continue}_.f&33554432||p.push(_),d=_,l=Fr(_.next)}if(e.outrogroups!==null){for(let t of e.outrogroups)t.pending.size===0&&(Nr(e,o(t.done)),e.outrogroups?.delete(t));e.outrogroups.size===0&&(e.outrogroups=null)}if(l!==null||u!==void 0){var te=[];if(u!==void 0)for(_ of u)_.f&8192||te.push(_);for(;l!==null;)!(l.f&8192)&&l!==e.fallback&&te.push(l),l=Fr(l.next);var ne=te.length;if(ne>0){var re=r&4&&s===0?n:null;if(a){for(v=0;v<ne;v+=1)te[v].nodes?.a?.measure();for(v=0;v<ne;v+=1)te[v].nodes?.a?.fix()}Mr(e,te,re)}}a&&Ge(()=>{if(f!==void 0)for(_ of f)_.nodes?.a?.apply()})}function Lr(e,t,n,r,i,a,o,s){var c=o&1?o&16?zt(n):Bt(n,!1,!1):null,l=o&2?zt(i):null;return{v:c,i:l,e:yn(()=>(a(t,c??n,l??i,s),()=>{e.delete(r)}))}}function Rr(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=$t(r);if(a.before(r),r===i)return;r=o}}function zr(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function Br(e,t){hn(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector(`#`+t.hash)){let e=nn(`style`);e.id=t.hash,e.textContent=t.code,r.appendChild(e)}})}function Vr(e,t,n){hn(()=>{var r=rr(()=>t(e,n?.())||{});if(n&&r?.update){var i=!1,a={};_n(()=>{var e=n();ir(e),i&&Le(a,e)&&(a=e,r.update(e))}),i=!0}if(r?.destroy)return()=>r.destroy()})}function Hr(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=Hr(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function Ur(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Hr(e))&&(r&&(r+=` `),r+=t);return r}function Wr(e){return typeof e==`object`?Ur(e):e??``}var Gr=[...`
3
+ \r\f\xA0\v`];function Kr(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||Gr.includes(r[o-1]))&&(s===r.length||Gr.includes(r[s]))?r=(o===0?``:r.substring(0,o))+r.substring(s+1):o=s}}return r===``?null:r}function qr(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 Jr(e){return e[0]!==`-`||e[1]!==`-`?e.toLowerCase():e}function Yr(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(/\s*\/\*.*?\*\/\s*/g,``).trim();var a=!1,o=0,s=!1,c=[];r&&c.push(...Object.keys(r).map(Jr)),i&&c.push(...Object.keys(i).map(Jr));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=Jr(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+=qr(r)),i&&(n+=qr(i,!0)),n=n.trim(),n===``?null:n}return e==null?null:String(e)}function Xr(e,t,n,r,i,a){var o=e[ue];if(k||o!==n||o===void 0){var s=Kr(n,r,a);(!k||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 Zr(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 Qr(e,t,n,r){var i=e[de];if(k||i!==t){var a=Yr(t,r);(!k||a!==e.getAttribute(`style`))&&(a==null?e.removeAttribute(`style`):e.style.cssText=a),e[de]=t}else r&&(Array.isArray(r)?(Zr(e,n?.[0],r[0]),Zr(e,n?.[1],r[1],`important`)):Zr(e,n,r));return r}var $r=Symbol(`is custom element`),ei=Symbol(`is html`),ti=O?`link`:`LINK`;function Z(e,t,n,r){var i=ni(e);k&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===ti)||i[t]!==(i[t]=n)&&(t===`loading`&&(e[ce]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&ii(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function ni(e){return e[le]??={[$r]:e.nodeName.includes(`-`),[ei]:e.namespaceURI===n}}var ri=new Map;function ii(e){var t=e.getAttribute(`is`)||e.nodeName,n=ri.get(t);if(n)return n;ri.set(t,n=[]);for(var r,i=e,a=Element.prototype;a!==i;){for(var o in r=u(i),r)r[o].set&&o!==`innerHTML`&&o!==`textContent`&&o!==`innerText`&&n.push(o);i=p(i)}return n}function ai(e,t){return e===t||e?.[E]===t}function oi(e={},t,n,r){var i=M.r,a=U;return hn(()=>{var o,s;return _n(()=>{o=s,s=r?.()||[],rr(()=>{ai(n(...s),e)||(t(e,...s),o&&ai(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&&ai(n(...s),e)&&t(null,...s)},c=r.teardown;r.teardown=()=>{o(),c?.()}}}),e}var si={get(e,t){let n=e.props.length;for(;n--;){let r=e.props[n];if(h(r)&&(r=r()),typeof r==`object`&&r&&t in r)return r[t]}},set(e,t,n){let r=e.props.length;for(;r--;){let i=e.props[r];h(i)&&(i=i());let a=l(i,t);if(a&&a.set)return a.set(n),!0}return!1},getOwnPropertyDescriptor(e,t){let n=e.props.length;for(;n--;){let r=e.props[n];if(h(r)&&(r=r()),typeof r==`object`&&r&&t in r){let e=l(r,t);return e&&!e.configurable&&(e.configurable=!0),e}}},has(e,t){if(t===E||t===D)return!1;for(let n of e.props)if(h(n)&&(n=n()),n!=null&&t in n)return!0;return!1},ownKeys(e){let t=[];for(let n of e.props)if(h(n)&&(n=n()),n){for(let e in n)t.includes(e)||t.push(e);for(let e of Object.getOwnPropertySymbols(n))t.includes(e)||t.push(e)}return t}};function ci(...e){return new Proxy({props:e},si)}function Q(e,t,n,r){var i=!0,a=!!(n&8),o=!!(n&16),s=r,c=!0,u=void 0,d=()=>o&&i?(u??=Dt(r),W(u)):(c&&(c=!1,s=o?rr(r):r),s);let f;if(a){var p=E in e||D in e;f=l(e,t)?.set??(p&&t in e?n=>e[t]=n:void 0)}var m,h=!1;a?[m,h]=et(()=>e[t]):m=e[t],m===void 0&&r!==void 0&&(m=d(),f&&(i&&Se(t),f(m)));var g=i?()=>{var n=e[t];return n===void 0?d():(c=!0,n)}:()=>{var n=e[t];return n!==void 0&&(s=void 0),n===void 0?s: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?Dt:At)(()=>(v=!1,g()));a&&W(y);var b=U;return(function(e,t){if(arguments.length>0){let n=t?W(y):i&&a?Gt(e):e;return L(y,n),v=!0,s!==void 0&&(s=n),e}return Nn&&v||b.f&16384?y.v:W(y)})}function li(e){return new ui(e)}var ui=class{#e;#t;constructor(e){var t=new Map,n=(e,n)=>{var r=Bt(n,!1,!1);return t.set(e,r),r};let r=new Proxy({...e.props||{},$$events:{}},{get(e,r){return W(t.get(r)??n(r,Reflect.get(e,r)))},has(e,r){return r===D||(W(t.get(r)??n(r,Reflect.get(e,r))),Reflect.has(e,r))},set(e,r,i){return L(t.get(r)??n(r,i),i),Reflect.set(e,r,i)}});this.#t=(e.hydrate?wr:Cr)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError}),(!e?.props?.$$host||e.sync===!1)&&ft(),this.#e=r.$$events;for(let e of Object.keys(this.#t))e!==`$set`&&e!==`$destroy`&&e!==`$on`&&c(this,e,{get(){return this.#t[e]},set(t){this.#t[e]=t},enumerable:!0});this.#t.$set=e=>{Object.assign(r,e)},this.#t.$destroy=()=>{Or(this.#t)}}$set(e){this.#t.$set(e)}$on(e,t){this.#e[e]=this.#e[e]||[];let n=(...e)=>t.call(this,...e);return this.#e[e].push(n),()=>{this.#e[e]=this.#e[e].filter(e=>e!==n)}}$destroy(){this.#t.$destroy()}},di;typeof HTMLElement==`function`&&(di=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let e=this.$$l_u.get(t);e&&(e(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){if(await Promise.resolve(),!this.$$cn||this.$$c)return;function e(e){return t=>{let n=nn(`slot`);e!=="default"&&(n.name=e),q(t,n)}}let t={},n=pi(this);for(let r of this.$$s)r in n&&(r==="default"&&!this.$$d.children?(this.$$d.children=e(r),t.default=!0):t[r]=e(r));for(let e of this.attributes){let t=this.$$g_p(e.name);t in this.$$d||(this.$$d[t]=fi(t,e.value,this.$$p_d,`toProp`))}for(let e in this.$$p_d)!(e in this.$$d)&&this[e]!==void 0&&(this.$$d[e]=this[e],delete this[e]);this.$$c=li({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=pn(()=>{_n(()=>{this.$$r=!0;for(let e of s(this.$$c)){if(!this.$$p_d[e]?.reflect)continue;this.$$d[e]=this.$$c[e];let t=fi(e,this.$$d[e],this.$$p_d,`toAttribute`);t==null?this.removeAttribute(this.$$p_d[e].attribute||e):this.setAttribute(this.$$p_d[e].attribute||e,t)}this.$$r=!1})});for(let e in this.$$l)for(let t of this.$$l[e]){let n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=fi(e,n,this.$$p_d,`toProp`),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return s(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function fi(e,t,n,r){let i=n[e]?.type;if(t=i===`Boolean`&&typeof t!=`boolean`?t!=null:t,!r||!n[e])return t;if(r===`toAttribute`)switch(i){case`Object`:case`Array`:return t==null?null:JSON.stringify(t);case`Boolean`:return t?``:null;case`Number`:return t??null;default:return t}else switch(i){case`Object`:case`Array`:return t&&JSON.parse(t);case`Boolean`:return t;case`Number`:return t==null?t:+t;default:return t}}function pi(e){let t={};return e.childNodes.forEach(e=>{t[e.slot||`default`]=!0}),t}function mi(e,t,n,r,i,a){let o=class extends di{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return s(t).map(e=>(t[e].attribute||e).toLowerCase())}};return s(t).forEach(e=>{c(o.prototype,e,{get(){return this.$$c&&e in this.$$c?this.$$c[e]:this.$$d[e]},set(n){n=fi(e,n,t),this.$$d[e]=n;var r=this.$$c;r&&(l(r,e)?.get?r[e]=n:r.$set({[e]:n}))}})}),r.forEach(e=>{c(o.prototype,e,{get(){return this.$$c?.[e]}})}),a&&(o=a(o)),e.element=o,o}var hi=G(`<li> </li>`),gi=G(`<ul></ul>`),_i={hash:`svelte-1qnylwo`,code:`.st-chartDataList.svelte-1qnylwo {border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px;}`};function vi(e,t){Be(t,!0),Br(e,_i);let n=Q(t,`items`,19,()=>[]),r=()=>[`st-chartDataList`,t.class].filter(Boolean).join(` `);var i=br(),a=z(i),o=e=>{var i=gi();X(i,21,n,jr,(e,t)=>{var n=hi(),r=R(n,!0);j(n),V(()=>J(r,W(t))),q(e,n)}),j(i),V(e=>{Xr(i,1,e,`svelte-1qnylwo`),Z(i,`aria-label`,`Data values for ${t.label}`)},[()=>Wr(r())]),q(e,i)};Y(a,e=>{n().length>0&&e(o)}),q(e,i),Ve()}var yi=e=>typeof e==`number`&&Number.isFinite(e);function bi(e,t){if(!e||e.length===0)return[];let{xScale:n,yScale:r,plotLeft:i,plotTop:a,plotWidth:o,plotHeight:s}=t,c=[];return e.forEach((e,t)=>{switch(e.kind){case`region`:if(!yi(e.from)||!yi(e.to))return;if(e.axis===`x`){let r=n(e.from),o=n(e.to);if(r===null||o===null)return;let l=i+Math.min(r,o);c.push({kind:`region`,key:t,axis:`x`,x:l,y:a,width:Math.max(Math.abs(o-r),.5),height:s,label:e.label})}else{let n=r(e.from),s=r(e.to);if(n===null||s===null)return;let l=a+Math.min(n,s);c.push({kind:`region`,key:t,axis:`y`,x:i,y:l,width:o,height:Math.max(Math.abs(s-n),.5),label:e.label})}return;case`line`:if(!yi(e.value))return;if(e.axis===`x`){let r=n(e.value);if(r===null)return;let o=i+r;c.push({kind:`line`,key:t,axis:`x`,x1:o,y1:a,x2:o,y2:a+s,label:e.label})}else{let n=r(e.value);if(n===null)return;let s=a+n;c.push({kind:`line`,key:t,axis:`y`,x1:i,y1:s,x2:i+o,y2:s,label:e.label})}return;case`shape`:{if(!e.points||e.points.length<2)return;let o=[];for(let t of e.points){let e=n(t.x),s=r(t.y);if(e===null||s===null)return;o.push({x:i+e,y:a+s})}let s=o.reduce((e,t)=>e+t.x,0)/o.length,l=o.reduce((e,t)=>e+t.y,0)/o.length;c.push({kind:`shape`,key:t,points:o,label:e.label,labelX:s,labelY:l});return}case`point`:{let o=n(e.x),s=r(e.y);if(o===null||s===null)return;c.push({kind:`point`,key:t,x:i+o,y:a+s,label:e.label,marker:e.marker??`circle`});return}case`label`:{let o=n(e.x),s=r(e.y);if(o===null||s===null)return;c.push({kind:`label`,key:t,x:i+o,y:a+s,text:e.text,anchor:e.anchor??`middle`});return}}}),c}function xi(e){if(!e||e.length===0)return[];let t=[];for(let n of e){let e=n.kind===`label`?n.text:n.label;e&&t.push(`Annotation: ${e}`)}return t}function Si(e){return e.map(e=>`${e.x.toFixed(2)},${e.y.toFixed(2)}`).join(` `)}function Ci(e){return e===!0?{enabled:!0}:e&&typeof e==`object`?{enabled:!0,format:e.format,position:e.position}:{enabled:!1}}function wi(e,t,n){return Number.isFinite(e)?t.format?t.format(e):n(e):``}function Ti(e){return String(e)}function Ei(e,t){return e==null?-1:t.indexOf(e)}function Di(e,t,n){return e===void 0?t??-1:Ei(e,n)}function Oi(e,t,n){if(n<=0)return null;let r=e=>Math.min(n-1,Math.max(0,e));switch(e){case`ArrowRight`:case`ArrowDown`:return{kind:`move`,index:r(t+1)};case`ArrowLeft`:case`ArrowUp`:return{kind:`move`,index:r(t-1)};case`Home`:return{kind:`move`,index:0};case`End`:return{kind:`move`,index:n-1};case`Enter`:case` `:case`Spacebar`:return{kind:`select`};case`Escape`:case`Esc`:return{kind:`escape`};default:return null}}function ki(e,t,n){return e===(t>=0&&t<n?t:0)?0:-1}function Ai(e,t){return`${e}, ${t}`}var ji=K(`<line class="st-barChart__grid svelte-14iupu9"></line><text class="st-barChart__tickLabel svelte-14iupu9" text-anchor="end" dominant-baseline="middle"> </text>`,1),Mi=K(`<line class="st-barChart__grid svelte-14iupu9"></line><text class="st-barChart__tickLabel svelte-14iupu9" text-anchor="middle"> </text>`,1),Ni=K(`<text class="st-barChart__categoryLabel svelte-14iupu9" text-anchor="middle"> </text>`),Pi=K(`<text class="st-barChart__categoryLabel svelte-14iupu9" text-anchor="end" dominant-baseline="middle"> </text>`),Fi=K(`<text class="st-barChart__overlayLabel svelte-14iupu9"> </text>`),Ii=K(`<rect></rect><!>`,1),Li=K(`<text class="st-barChart__overlayLabel svelte-14iupu9"> </text>`),Ri=K(`<line></line><!>`,1),zi=K(`<text class="st-barChart__annotationLabel svelte-14iupu9"> </text>`),Bi=K(`<rect class="st-barChart__annotationRegion svelte-14iupu9"></rect><!>`,1),Vi=K(`<g class="st-barChart__annotations st-barChart__annotations--behind"></g>`),Hi=K(`<rect rx="2"></rect>`),Ui=K(`<g class="st-barChart__errorBar"><line class="st-barChart__errorStem svelte-14iupu9"></line><line class="st-barChart__errorCap svelte-14iupu9"></line><line class="st-barChart__errorCap svelte-14iupu9"></line></g>`),Wi=K(`<line class="st-barChart__goalLine svelte-14iupu9"></line>`),Gi=K(`<line class="st-barChart__goalLine svelte-14iupu9"></line>`),Ki=K(`<!><text class="st-barChart__goalLabel svelte-14iupu9"> </text>`,1),qi=K(`<text class="st-barChart__annotationLabel svelte-14iupu9"> </text>`),Ji=K(`<line class="st-barChart__annotationLine svelte-14iupu9"></line><!>`,1),Yi=K(`<text class="st-barChart__annotationLabel svelte-14iupu9" text-anchor="middle"> </text>`),Xi=K(`<polygon class="st-barChart__annotationShape svelte-14iupu9"></polygon><!>`,1),Zi=K(`<text class="st-barChart__annotationLabel svelte-14iupu9" text-anchor="middle"> </text>`),Qi=K(`<circle class="st-barChart__annotationPoint svelte-14iupu9" r="4.5"></circle><!>`,1),$i=K(`<text class="st-barChart__annotationText svelte-14iupu9"> </text>`),ea=K(`<g class="st-barChart__annotations st-barChart__annotations--above"></g>`),ta=K(`<text class="st-barChart__dataLabel svelte-14iupu9"> </text>`),na=K(`<g class="st-barChart__dataLabels" aria-hidden="true"></g>`),ra=K(`<line class="st-barChart__crosshairLine svelte-14iupu9"></line>`),ia=K(`<line class="st-barChart__crosshairLine svelte-14iupu9"></line>`),aa=K(`<g class="st-barChart__crosshair" aria-hidden="true"><!></g>`),oa=K(`<rect class="st-barChart__navDatum" role="img"></rect>`),sa=K(`<svg class="st-barChart__navLayer svelte-14iupu9" preserveAspectRatio="xMidYMid meet" width="100%" height="100%" role="group"></svg>`),ca=G(`<button type="button"><span class="st-barChart__filterSwatch svelte-14iupu9" aria-hidden="true"></span> </button>`),la=G(`<div class="st-barChart__filters svelte-14iupu9" role="group"></div>`),ua=G(`<div class="st-barChart__tooltip svelte-14iupu9" role="presentation"><span class="st-barChart__tooltipLabel svelte-14iupu9"> </span> <span class="st-barChart__tooltipValue svelte-14iupu9"> </span></div>`),da=G(`<div><div class="st-barChart__visual svelte-14iupu9" role="img"><svg preserveAspectRatio="xMidYMid meet" width="100%" height="100%" focusable="false" aria-hidden="true" class="svelte-14iupu9"><!><line class="st-barChart__axis svelte-14iupu9"></line><line class="st-barChart__axis svelte-14iupu9"></line><!><!><!><!><!><!><!><!><!><!></svg> <!></div> <!> <!> <!></div>`),fa={hash:`svelte-14iupu9`,code:`.st-barChart.svelte-14iupu9 {color:var(--st-semantic-text-secondary);display:block;font-family:inherit;position:relative;width:100%;}.st-barChart.svelte-14iupu9 svg:where(.svelte-14iupu9) {display:block;overflow:visible;}.st-barChart__visual.svelte-14iupu9 {display:block;}.st-barChart__grid.svelte-14iupu9 {stroke:var(--st-component-barChart-gridStroke, var(--st-semantic-border-subtle));stroke-dasharray:2 3;stroke-width:1;opacity:0.7;}.st-barChart__axis.svelte-14iupu9 {stroke:var(--st-component-barChart-axisStroke, var(--st-semantic-border-subtle));stroke-width:1;}.st-barChart__tickLabel.svelte-14iupu9,
4
4
  .st-barChart__categoryLabel.svelte-14iupu9 {fill:var(--st-component-barChart-labelColor, var(--st-semantic-text-secondary));font-size:0.6875rem;}.st-barChart__bar.svelte-14iupu9 {cursor:pointer;transition:opacity var(--st-motion-fast, 120ms) var(--st-motion-easing, ease);}.st-barChart__bar.svelte-14iupu9:hover {opacity:0.82;}
5
5
 
6
6
  /* Non-selected bars are dimmed while a selection is active. Floor kept high
@@ -45,7 +45,7 @@ typeof window<`u`&&((window.__svelte??={}).v??=new Set).add(`5`);var e={},t=Symb
45
45
 
46
46
  /* --- Crosshair layer (FR-3) ----------------------------------------------
47
47
  A tokenised dashed line on the CATEGORY axis at the active (hovered/
48
- controlled) bar. Decorative (aria-hidden). */.st-barChart__crosshairLine.svelte-14iupu9 {stroke:var(--st-semantic-border-strong);stroke-width:1;stroke-dasharray:3 3;opacity:0.7;}`};function fa(e,t){Ve(t,!0),zr(e,da);let n=ci(t,`width`,3,480),r=ci(t,`height`,3,240),i=ci(t,`orientation`,3,`vertical`),a=ci(t,`selectedKeys`,19,()=>[]),o=ci(t,`scale`,3,`linear`),s=ci(t,`invertAxis`,3,!1),c={top:12,right:16,bottom:32,left:44};function l(e,t,n=5){if(!Number.isFinite(e)||!Number.isFinite(t)||e===t)return[Number.isFinite(t)?t:0];let r=(t-e)/Math.max(n-1,1),i=10**Math.floor(Math.log10(r)),a=r/i,o;o=a<1.5?1*i:a<3?2*i:a<7?5*i:10*i;let s=Math.floor(e/o)*o,c=Math.ceil(t/o)*o,l=[];for(let e=s;e<=c+o/2;e+=o)l.push(Number(e.toFixed(10)));return l}let u=e=>Array.from(new Set(e.filter(Number.isFinite).map(e=>Number(e.toFixed(10))))).sort((e,t)=>e-t);function d(e,t,n=5){return!Number.isFinite(e)||!Number.isFinite(t)||e>=t?l(e,t,n):u([e,...l(e,t,n).filter(n=>n>e&&n<t),t])}function f(...e){let t=1/0;for(let n of e)Number.isFinite(n)&&n>0&&n<t&&(t=n);return Number.isFinite(t)?t:1}function p(e,t){let n=e>0?e:1,r=t>n?t:n*10,i=Math.floor(Math.log10(n)),a=Math.ceil(Math.log10(r)),o=[];for(let e=i;e<=a;e++)o.push(Number((10**e).toFixed(10)));return o.length?o:[n]}function m(e,t){return!Number.isFinite(e)||!Number.isFinite(t)||e<=0||e>=t?p(e,t):u([e,...p(e,t).filter(n=>n>e&&n<t),t])}function h(e){return e&&Number.isFinite(e[0])&&Number.isFinite(e[1])&&e[0]<e[1]?e:null}function g(e){return e&&Number.isFinite(e[0])&&Number.isFinite(e[1])&&e[0]>0&&e[0]<e[1]?e:null}function _(e){return Number.isFinite(e)?Math.min(1,Math.max(0,e)):0}function v(e){return Math.abs(e)>=1e3?`${(e/1e3).toFixed(e%1e3==0?0:1)}k`:Number.isInteger(e)?String(e):e.toFixed(1)}function y(e,t){return`${e}--${t??`neutral`}`}function b(e,t,n,r,i,a,o=`y`){let s=e,c=t,l=e=>{e!==void 0&&Number.isFinite(e)&&(e<s&&(s=e),e>c&&(c=e))};for(let e of n??[])(e.axis??`y`)===o&&l(e.value);for(let e of r??[])l(e.from),l(e.to);i&&l(i.value);for(let e of a)l(e);return[s,c]}function x(e,t,n){let r=[];for(let t of e??[])Number.isFinite(t.value)&&r.push(t.label?`Référence: ${t.label} = ${t.value}`:`Référence: ${t.value}`);for(let e of t??[]){if(!Number.isFinite(e.from)||!Number.isFinite(e.to))continue;let t=Math.min(e.from,e.to),n=Math.max(e.from,e.to);r.push(e.label?`Bande: ${e.label} (${t}–${n})`:`Bande: ${t}–${n}`)}return n&&Number.isFinite(n.value)&&r.push(n.label?`Objectif: ${n.label} = ${n.value}`:`Objectif: ${n.value}`),r}let S=F(null),ee=P(()=>new Set(a())),te=P(()=>K(ee).size>0),ne=P(()=>typeof t.onSelect==`function`),re=P(()=>o()===`log`),C=P(()=>K(re)?g(t.domain):h(t.domain)),ie=P(()=>t.goalLine&&Number.isFinite(t.goalLine.value)?t.goalLine:null),ae=P(()=>i()===`vertical`?`y`:`x`),w=P(()=>{let e=t.data.map(e=>e.value),i=t.data.flatMap(e=>[e.errorLow,e.errorHigh].filter(e=>e!==void 0&&Number.isFinite(e))),a,o;if(K(re)){let s=[...(t.referenceLines??[]).filter(e=>(e.axis??`y`)===K(ae)).map(e=>e.value),...(t.bands??[]).flatMap(e=>[e.from,e.to]),...K(ie)?[K(ie).value]:[],...i];K(C)?(a=K(C)[0],o=K(C)[1]):(a=f(...e,...s),o=Math.max(a,...e.filter(e=>e>0),...s.filter(e=>e>0)));let l=K(C)?m(a,o):p(a,o);return{ticks:l,domainMin:l[0],domainMax:l[l.length-1],plotWidth:Math.max(n()-c.left-c.right,1),plotHeight:Math.max(r()-c.top-c.bottom,1)}}a=K(C)?K(C)[0]:Math.min(0,...e),o=K(C)?K(C)[1]:Math.max(0,...e),K(C)||([a,o]=b(a,o,t.referenceLines,t.bands,K(ie),i,K(ae)));let s=K(C)?d(a,o,5):l(a,o,5);return{ticks:s,domainMin:s[0],domainMax:s[s.length-1],plotWidth:Math.max(n()-c.left-c.right,1),plotHeight:Math.max(r()-c.top-c.bottom,1)}}),oe=P(()=>e=>{let{domainMin:t,domainMax:n}=K(w),r;if(K(re)){let i=Math.log10(t),a=Math.log10(n);r=a===i?0:(Math.log10(e>0?e:t)-i)/(a-i)}else r=n===t?0:(e-t)/(n-t);return _(s()?1-r:r)}),se=P(()=>K(re)?K(w).domainMin:Math.min(K(w).domainMax,Math.max(K(w).domainMin,0))),T=P(()=>{let{plotWidth:e,plotHeight:n}=K(w);if(t.data.length===0)return[];if(i()===`vertical`){let r=e/t.data.length,i=r*.62,a=e=>n*(1-K(oe)(e)),o=a(K(se));return t.data.map((e,t)=>{let n=a(e.value),s=Math.min(n,o),l=Math.abs(o-n);return{x:c.left+r*t+(r-i)/2,y:c.top+s,width:i,height:Math.max(l,.5),cx:c.left+r*(t+.5),cy:c.top+n,datum:e,tone:e.tone??`category1`}})}let r=n/t.data.length,a=r*.62,o=t=>e*K(oe)(t),s=o(K(se));return t.data.map((e,t)=>{let n=o(e.value),i=Math.min(n,s),l=Math.abs(n-s),u=c.top+r*t+(r-a)/2;return{x:c.left+i,y:u,width:Math.max(l,.5),height:a,cx:c.left+n,cy:c.top+r*(t+.5),datum:e,tone:e.tone??`category1`}})}),E=P(()=>i()===`vertical`),ce=P(()=>e=>{let{plotWidth:t,plotHeight:n}=K(w);return K(E)?c.top+n*(1-K(oe)(e)):c.left+t*K(oe)(e)}),le=P(()=>(t.bands??[]).filter(e=>Number.isFinite(e.from)&&Number.isFinite(e.to)).map((e,t)=>{let n=K(ce)(e.from),r=K(ce)(e.to);return K(E)?{key:t,x:c.left,y:Math.min(n,r),width:K(w).plotWidth,height:Math.max(Math.abs(r-n),.5),label:e.label,tone:e.tone}:{key:t,x:Math.min(n,r),y:c.top,width:Math.max(Math.abs(r-n),.5),height:K(w).plotHeight,label:e.label,tone:e.tone}})),ue=P(()=>(t.referenceLines??[]).filter(e=>Number.isFinite(e.value)).map((e,t)=>{let n=K(ce)(e.value);return K(E)?{key:t,x1:c.left,x2:c.left+K(w).plotWidth,y1:n,y2:n,label:e.label,tone:e.tone}:{key:t,x1:n,x2:n,y1:c.top,y2:c.top+K(w).plotHeight,label:e.label,tone:e.tone}})),de=P(()=>K(ie)?{p:K(ce)(K(ie).value),label:K(ie).label,value:K(ie).value}:null),fe=P(()=>{let e=[];for(let t of K(T)){let{errorLow:n,errorHigh:r}=t.datum,i=n!==void 0&&Number.isFinite(n),a=r!==void 0&&Number.isFinite(r);if(!i&&!a)continue;let o=i?n:t.datum.value,s=a?r:t.datum.value,c=K(ce)(o),l=K(ce)(s);if(K(E)){let n=t.x+t.width/2;e.push({key:t.datum.label,stem:{x1:n,y1:c,x2:n,y2:l},capLow:{x1:n-4,y1:c,x2:n+4,y2:c},capHigh:{x1:n-4,y1:l,x2:n+4,y2:l}})}else{let n=t.y+t.height/2;e.push({key:t.datum.label,stem:{x1:c,y1:n,x2:l,y2:n},capLow:{x1:c,y1:n-4,x2:c,y2:n+4},capHigh:{x1:l,y1:n-4,x2:l,y2:n+4}})}}return e}),pe=P(()=>e=>{let t=K(T).find(t=>t.datum.label===String(e));return t?K(E)?t.cx-c.left:t.cy-c.top:null}),me=P(()=>e=>Number.isFinite(e)?K(ce)(e)-(K(E)?c.top:c.left):null),he=P(()=>e=>!e||K(E)?e:e.map(e=>{switch(e.kind){case`line`:return{...e,axis:e.axis===`x`?`y`:`x`};case`region`:return{...e,axis:e.axis===`x`?`y`:`x`};case`point`:return{...e,x:e.y,y:typeof e.x==`number`?e.x:NaN};case`label`:return{...e,x:e.y,y:typeof e.x==`number`?e.x:NaN};case`shape`:return{...e,points:e.points.map(e=>({x:e.y,y:typeof e.x==`number`?e.x:NaN}))}}})),ge=P(()=>e=>K(E)?K(pe)(e):typeof e==`number`?K(me)(e):null),_e=P(()=>e=>K(E)?K(me)(e):K(pe)(e)),ve=P(()=>bi(K(he)(t.annotations),{xScale:K(ge),yScale:K(_e),plotLeft:c.left,plotTop:c.top,plotWidth:K(w).plotWidth,plotHeight:K(w).plotHeight})),ye=P(()=>K(ve).filter(e=>e.kind===`region`)),be=P(()=>K(ve).filter(e=>e.kind!==`region`)),xe=P(()=>Ci(t.dataLabels)),Se=P(()=>K(xe).enabled?K(T).map(e=>{let t=wi(e.datum.value,K(xe),v),n=K(xe).position??`outside`,r=n===`inside`||n===`center`;if(K(E)){let n=e.cx,i=r?e.y+e.height/2:e.cy-6;return{key:e.datum.label,x:n,y:i,text:t,anchor:`middle`,baseline:r?`middle`:`auto`}}let i=e.cy,a=r?e.x+e.width/2:e.cx+4;return{key:e.datum.label,x:a,y:i,text:t,anchor:r?`middle`:`start`,baseline:`middle`}}):[]),Ce=P(()=>[...t.data.map(e=>`${e.label}: ${e.value}`),...x(t.referenceLines,t.bands,K(ie)),...xi(t.annotations)]),we=P(()=>{let{ticks:e,plotWidth:t,plotHeight:n}=K(w);return i()===`vertical`?e.map(e=>({value:e,x1:c.left,x2:c.left+t,y:c.top+n*(1-K(oe)(e)),x:void 0,y1:void 0,y2:void 0})):e.map(e=>({value:e,x:c.left+t*K(oe)(e),y1:c.top,y2:c.top+n,x1:void 0,x2:void 0,y:void 0}))}),Te=P(()=>K(T).map(e=>e.datum.label));function Ee(e){t.onHoverKeyChange?.(e==null?null:K(Te)[e]??null)}function De(){I(S,null),Ee(null)}function Oe(e){let t=e.target;if(!(t instanceof Element)){I(S,null),Ee(null);return}let n=Number(t.getAttribute(`data-chart-index`)),r=Number.isInteger(n)?n:null;I(S,r,!0),Ee(r)}let ke=P(()=>Ei(t.hoverKey,K(S),K(Te))),Ae=F(-1),je=[],D=P(()=>(t.keyboardNav===!0||t.onSelectKey!==void 0)&&K(T).length>0);function Me(e){I(Ae,e,!0),je[e]?.focus(),Ee(e)}function O(e,n){let r=Di(e.key,n,K(T).length);r&&(e.preventDefault(),r.kind===`move`?Me(r.index):r.kind===`select`?t.onSelectKey?.(K(T)[n].datum.label):(I(Ae,-1),Ee(null),t.onSelectKey?.(null),e.currentTarget.blur()))}let k=()=>[`st-barChart`,t.class].filter(Boolean).join(` `);var Ne=ua(),Pe=L(Ne),Fe=L(Pe),Ie=L(Fe),Le=e=>{var t=yr();Z(R(t),17,()=>K(we),e=>e.value,(e,t)=>{var n=Ai(),r=R(n),i=z(r),a=L(i,!0);A(i),B(e=>{Q(r,`x1`,K(t).x1),Q(r,`x2`,K(t).x2),Q(r,`y1`,K(t).y),Q(r,`y2`,K(t).y),Q(i,`x`,c.left-6),Q(i,`y`,K(t).y),Y(a,e)},[()=>v(K(t).value)]),J(e,n)}),J(e,t)},Re=e=>{var t=yr();Z(R(t),17,()=>K(we),e=>e.value,(e,t)=>{var n=ji(),i=R(n),a=z(i),o=L(a,!0);A(a),B(e=>{Q(i,`x1`,K(t).x),Q(i,`x2`,K(t).x),Q(i,`y1`,K(t).y1),Q(i,`y2`,K(t).y2),Q(a,`x`,K(t).x),Q(a,`y`,r()-c.bottom+16),Y(o,e)},[()=>v(K(t).value)]),J(e,n)}),J(e,t)};X(Ie,e=>{i()===`vertical`?e(Le):e(Re,-1)});var ze=z(Ie),j=z(ze),Be=z(j);Z(Be,19,()=>K(T),e=>e.datum.label,(e,t)=>{var n=yr(),a=R(n),o=e=>{var n=Mi(),i=L(n,!0);A(n),B(()=>{Q(n,`x`,K(t).x+K(t).width/2),Q(n,`y`,r()-c.bottom+16),Y(i,K(t).datum.label)}),J(e,n)},s=e=>{var n=Ni(),r=L(n,!0);A(n),B(()=>{Q(n,`x`,c.left-6),Q(n,`y`,K(t).y+K(t).height/2),Y(r,K(t).datum.label)}),J(e,n)};X(a,e=>{i()===`vertical`?e(o):e(s,-1)}),J(e,n)});var Ue=z(Be);Z(Ue,17,()=>K(le),e=>e.key,(e,t)=>{var n=Fi(),r=R(n),i=z(r),a=e=>{var n=Pi(),r=L(n,!0);A(n),B(()=>{Q(n,`x`,K(t).x+4),Q(n,`y`,K(t).y+11),Y(r,K(t).label)}),J(e,n)};X(i,e=>{K(t).label&&e(a)}),B(e=>{Yr(r,0,e,`svelte-14iupu9`),Q(r,`x`,K(t).x),Q(r,`y`,K(t).y),Q(r,`width`,K(t).width),Q(r,`height`,K(t).height)},[()=>`st-barChart__band ${y(`st-barChart__band`,K(t).tone)}`]),J(e,n)});var We=z(Ue);Z(We,17,()=>K(ue),e=>e.key,(e,t)=>{var n=Li(),r=R(n),i=z(r),a=e=>{var n=Ii(),r=L(n,!0);A(n),B(()=>{Q(n,`x`,K(E)?c.left+K(w).plotWidth-4:K(t).x1+4),Q(n,`y`,K(E)?K(t).y1-4:c.top+11),Q(n,`text-anchor`,K(E)?`end`:`start`),Y(r,K(t).label)}),J(e,n)};X(i,e=>{K(t).label&&e(a)}),B(e=>{Yr(r,0,e,`svelte-14iupu9`),Q(r,`x1`,K(t).x1),Q(r,`x2`,K(t).x2),Q(r,`y1`,K(t).y1),Q(r,`y2`,K(t).y2)},[()=>`st-barChart__refLine ${y(`st-barChart__refLine`,K(t).tone)}`]),J(e,n)});var Ge=z(We),Ke=e=>{var t=Bi();Z(t,21,()=>K(ye),e=>e.key,(e,t)=>{var n=yr(),r=R(n),i=e=>{var n=zi(),r=R(n),i=z(r),a=e=>{var n=Ri(),r=L(n,!0);A(n),B(()=>{Q(n,`x`,K(t).x+4),Q(n,`y`,K(t).y+11),Y(r,K(t).label)}),J(e,n)};X(i,e=>{K(t).label&&e(a)}),B(()=>{Q(r,`x`,K(t).x),Q(r,`y`,K(t).y),Q(r,`width`,K(t).width),Q(r,`height`,K(t).height)}),J(e,n)};X(r,e=>{K(t).kind===`region`&&e(i)}),J(e,n)}),A(t),J(e,t)};X(Ge,e=>{K(ye).length>0&&e(Ke)});var qe=z(Ge);Z(qe,19,()=>K(T),e=>e.datum.label,(e,n,r)=>{let i=P(()=>K(ee).has(K(n).datum.label));var a=Vi();let o;B(()=>{o=Yr(a,0,`st-barChart__bar st-barChart__bar--${K(n).tone??``}`,`svelte-14iupu9`,o,{"st-barChart__bar--selected":K(i),"st-barChart__bar--dim":K(te)&&!K(i),"st-barChart__bar--interactive":K(ne)}),Q(a,`x`,K(n).x),Q(a,`y`,K(n).y),Q(a,`width`,K(n).width),Q(a,`height`,K(n).height),Q(a,`data-chart-index`,K(r))}),lr(`click`,a,function(...e){(K(ne)?()=>t.onSelect?.(K(n).datum.label):void 0)?.apply(this,e)}),J(e,a)});var Je=z(qe);Z(Je,17,()=>K(fe),e=>e.key,(e,t)=>{var n=Hi(),r=L(n),i=z(r),a=z(i);A(n),B(()=>{Q(r,`x1`,K(t).stem.x1),Q(r,`y1`,K(t).stem.y1),Q(r,`x2`,K(t).stem.x2),Q(r,`y2`,K(t).stem.y2),Q(i,`x1`,K(t).capLow.x1),Q(i,`y1`,K(t).capLow.y1),Q(i,`x2`,K(t).capLow.x2),Q(i,`y2`,K(t).capLow.y2),Q(a,`x1`,K(t).capHigh.x1),Q(a,`y1`,K(t).capHigh.y1),Q(a,`x2`,K(t).capHigh.x2),Q(a,`y2`,K(t).capHigh.y2)}),J(e,n)});var Ye=z(Je),Xe=e=>{var t=Gi(),n=R(t),r=e=>{var t=Ui();B(()=>{Q(t,`x1`,c.left),Q(t,`x2`,c.left+K(w).plotWidth),Q(t,`y1`,K(de).p),Q(t,`y2`,K(de).p)}),J(e,t)},i=e=>{var t=Wi();B(()=>{Q(t,`x1`,K(de).p),Q(t,`x2`,K(de).p),Q(t,`y1`,c.top),Q(t,`y2`,c.top+K(w).plotHeight)}),J(e,t)};X(n,e=>{K(E)?e(r):e(i,-1)});var a=z(n),o=L(a,!0);A(a),B(()=>{Q(a,`x`,K(E)?c.left+K(w).plotWidth-4:K(de).p+4),Q(a,`y`,K(E)?K(de).p-4:c.top+11),Q(a,`text-anchor`,K(E)?`end`:`start`),Y(o,K(de).label??`Objectif ${K(de).value}`)}),J(e,t)};X(Ye,e=>{K(de)&&e(Xe)});var M=z(Ye),Ze=e=>{var t=$i();Z(t,21,()=>K(be),e=>e.key,(e,t)=>{var n=yr(),r=R(n),i=e=>{var n=qi(),r=R(n),i=z(r),a=e=>{var n=Ki(),r=L(n,!0);A(n),B(()=>{Q(n,`x`,K(t).axis===`x`?K(t).x1+4:c.left+K(w).plotWidth-4),Q(n,`y`,K(t).axis===`x`?c.top+11:K(t).y1-4),Q(n,`text-anchor`,K(t).axis===`x`?`start`:`end`),Y(r,K(t).label)}),J(e,n)};X(i,e=>{K(t).label&&e(a)}),B(()=>{Q(r,`x1`,K(t).x1),Q(r,`y1`,K(t).y1),Q(r,`x2`,K(t).x2),Q(r,`y2`,K(t).y2)}),J(e,n)},a=e=>{var n=Yi(),r=R(n),i=z(r),a=e=>{var n=Ji(),r=L(n,!0);A(n),B(()=>{Q(n,`x`,K(t).labelX),Q(n,`y`,K(t).labelY),Y(r,K(t).label)}),J(e,n)};X(i,e=>{K(t).label&&e(a)}),B(e=>Q(r,`points`,e),[()=>Si(K(t).points)]),J(e,n)},o=e=>{var n=Zi(),r=R(n),i=z(r),a=e=>{var n=Xi(),r=L(n,!0);A(n),B(()=>{Q(n,`x`,K(t).x),Q(n,`y`,K(t).y-8),Y(r,K(t).label)}),J(e,n)};X(i,e=>{K(t).label&&e(a)}),B(()=>{Q(r,`cx`,K(t).x),Q(r,`cy`,K(t).y)}),J(e,n)},s=e=>{var n=Qi(),r=L(n,!0);A(n),B(()=>{Q(n,`x`,K(t).x),Q(n,`y`,K(t).y),Q(n,`text-anchor`,K(t).anchor),Y(r,K(t).text)}),J(e,n)};X(r,e=>{K(t).kind===`line`?e(i):K(t).kind===`shape`?e(a,1):K(t).kind===`point`?e(o,2):e(s,-1)}),J(e,n)}),A(t),J(e,t)};X(M,e=>{K(be).length>0&&e(Ze)});var Qe=z(M),$e=e=>{var t=ta();Z(t,21,()=>K(Se),e=>e.key,(e,t)=>{var n=ea(),r=L(n,!0);A(n),B(()=>{Q(n,`x`,K(t).x),Q(n,`y`,K(t).y),Q(n,`text-anchor`,K(t).anchor),Q(n,`dominant-baseline`,K(t).baseline),Y(r,K(t).text)}),J(e,n)}),A(t),J(e,t)};X(Qe,e=>{K(Se).length>0&&e($e)});var et=z(Qe),tt=e=>{let t=P(()=>K(T)[K(ke)]);var n=ia(),r=L(n),i=e=>{var n=na();B(()=>{Q(n,`x1`,K(t).cx),Q(n,`x2`,K(t).cx),Q(n,`y1`,c.top),Q(n,`y2`,c.top+K(w).plotHeight)}),J(e,n)},a=e=>{var n=ra();B(()=>{Q(n,`x1`,c.left),Q(n,`x2`,c.left+K(w).plotWidth),Q(n,`y1`,K(t).cy),Q(n,`y2`,K(t).cy)}),J(e,n)};X(r,e=>{K(E)?e(i):e(a,-1)}),A(n),J(e,n)};X(et,e=>{K(ke)>=0&&K(T)[K(ke)]&&e(tt)}),A(Fe);var nt=z(Fe,2),N=e=>{var i=oa();Z(i,23,()=>K(T),e=>e.datum.label,(e,t,n)=>{var r=aa();ai(r,(e,t)=>je[t]=e,e=>je?.[e],()=>[K(n)]),B((e,n)=>{Q(r,`x`,K(t).x),Q(r,`y`,K(t).y),Q(r,`width`,K(t).width),Q(r,`height`,K(t).height),Q(r,`tabindex`,e),Q(r,`aria-label`,n)},[()=>Oi(K(n),K(Ae),K(T).length),()=>ki(K(t).datum.label,K(t).datum.value)]),lr(`keydown`,r,e=>O(e,K(n))),cr(`focus`,r,()=>{I(Ae,K(n),!0),Ee(K(n))}),J(e,r)}),A(i),B(()=>{Q(i,`viewBox`,`0 0 ${n()??``} ${r()??``}`),Q(i,`aria-label`,`${t.label} — points de données`)}),J(e,i)};X(nt,e=>{K(D)&&e(N)}),A(Pe);var rt=z(Pe,2),it=e=>{var n=ca();Z(n,21,()=>K(T),e=>e.datum.label,(e,n)=>{let r=P(()=>K(ee).has(K(n).datum.label));var i=sa();let a;var o=z(L(i));A(i),B(()=>{a=Yr(i,1,`st-barChart__filterChip st-barChart__filterChip--${K(n).tone??``}`,`svelte-14iupu9`,a,{"st-barChart__filterChip--selected":K(r)}),Q(i,`aria-pressed`,K(r)),Y(o,` ${K(n).datum.label??``}: ${K(n).datum.value??``}`)}),lr(`click`,i,()=>t.onSelect?.(K(n).datum.label)),J(e,i)}),A(n),B(()=>Q(n,`aria-label`,`Filtrer par ${t.label}`)),J(e,n)};X(rt,e=>{K(ne)&&e(it)});var at=z(rt,2);vi(at,{get label(){return t.label},get items(){return K(Ce)}});var ot=z(at,2),st=e=>{let t=P(()=>K(T)[K(ke)]);var i=la(),a=L(i),o=L(a,!0);A(a);var s=z(a,2),c=L(s,!0);A(s),A(i),B(()=>{Zr(i,`left: ${K(t).cx/n()*100}%; top: ${K(t).cy/r()*100}%`),Y(o,K(t).datum.label),Y(c,K(t).datum.value)}),J(e,i)};X(ot,e=>{K(ke)>=0&&K(T)[K(ke)]&&e(st)}),A(Ne),B(e=>{Yr(Ne,1,e,`svelte-14iupu9`),Q(Pe,`aria-label`,t.label),Q(Fe,`viewBox`,`0 0 ${n()??``} ${r()??``}`),Q(ze,`x1`,c.left),Q(ze,`x2`,c.left),Q(ze,`y1`,c.top),Q(ze,`y2`,r()-c.bottom),Q(j,`x1`,c.left),Q(j,`x2`,n()-c.right),Q(j,`y1`,r()-c.bottom),Q(j,`y2`,r()-c.bottom)},[()=>Ur(k())]),lr(`pointermove`,Pe,Oe),cr(`pointerleave`,Pe,De),J(e,Ne),He()}ur([`pointermove`,`click`,`keydown`]);function pa(e,t){return{code:`engine-load-failed`,path:``,message:`the ${e} engine failed to load: ${t}`,severity:`error`,source:`host`,detail:{chunk:e,cause:t}}}var ma=1048576,ha=`document`;function ga(e){return e.replace(/~/g,`~0`).replace(/\//g,`~1`)}function _a(e,t){return`${e}/${ga(t)}`}function va(e){let t;try{let n=JSON.stringify(e);if(typeof n!=`string`)return{ok:!1,kind:`not-json-value`,message:`the envelope is not a JSON value (§4.3)`};t=n}catch(e){return{ok:!1,kind:`not-serializable`,message:`the envelope is not JSON-serializable (§4.3): ${e instanceof Error?e.message:String(e)}`}}return{ok:!0,value:JSON.parse(t),text:t}}function ya(e){let t=0;for(let n=0;n<e.length;n+=1){let r=e.charCodeAt(n);r<=127?t+=1:r<=2047?t+=2:r>=55296&&r<=56319?(t+=4,n+=1):t+=3}return t}function ba(e){let t=/^([0-9]+)\.([0-9]+)$/.exec(e);if(t!=null)return{major:Number(t[1]),minor:Number(t[2])}}function xa(e,t){return e.map(e=>{let n=`${t}${e.pointer}`;return e.keyword===`required`&&e.missingProperty!==void 0?n=_a(n,e.missingProperty):(e.keyword===`unevaluatedProperties`||e.keyword===`additionalProperties`)&&e.additionalProperty!==void 0&&(n=_a(n,e.additionalProperty)),{code:`schema-violation`,path:n,message:e.message,severity:`error`,source:`catalog`,detail:{keyword:e.keyword}}})}function Sa(e){let{catalog:t,structure:n,ports:r}=e;return{validate(e){let i=va(e);if(!i.ok)return[{code:`schema-violation`,path:``,message:i.message,severity:`error`,source:`catalog`}];let a=i.text,o=ya(a);if(o>1048576)return[{code:`payload-too-large`,path:``,message:`the envelope is ${o} UTF-8 bytes, over the ${ma}-byte budget (§4.3 item 3)`,severity:`error`,source:`catalog`,detail:{limitBytes:ma,actualBytes:o}}];let s=n.validateEnvelope(i.value);if(s.length>0)return xa(s,``);let c=i.value,l=c.catalogId;if(l!==void 0&&l!==t.catalogId)return[{code:`schema-violation`,path:`/catalogId`,message:`the envelope must name its catalogue (${String(t.catalogId)})`,severity:`error`,source:`catalog`,detail:{expected:t.catalogId,found:l}}];if(c.mode===`preview`)return[{code:`unsupported-mode`,path:`/mode`,message:`mode "preview" is reserved and not rendered by this catalogue (§10.3)`,severity:`error`,source:`catalog`,detail:{mode:`preview`}}];let u=c.root,d=u.component;if(typeof d!=`string`||!(d in t.components))return[{code:`unknown-component`,path:`/root/component`,message:`no catalogued component is named ${String(d)}`,severity:`error`,source:`catalog`,detail:{component:d}}];let f=t.components[d];if(f===void 0)return[{code:`unknown-component`,path:`/root/component`,message:`no catalogued component is named ${d}`,severity:`error`,source:`catalog`,detail:{component:d}}];let p=f[`x-sentropic`];if(p?.status===`unknown`)return[{code:`component-unavailable`,path:`/root/component`,message:`${d} is catalogued as a placeholder (x-sentropic.status "unknown") and cannot render`,severity:`error`,source:`catalog`,detail:{component:d}}];let m=c.contract,h=p?.contract;if(typeof h!=`string`)return[{code:`schema-violation`,path:`/root/component`,message:`the catalogued entry for ${d} declares no x-sentropic contract`,severity:`error`,source:`catalog`}];let g=ba(h),_=typeof m==`string`?ba(m):void 0;if(g===void 0||_===void 0)return[{code:`schema-violation`,path:`/contract`,message:`contract versions are "major.minor" strings (§4.4): envelope ${String(m)}, entry ${h}`,severity:`error`,source:`catalog`}];if(_.major!==g.major||_.minor>g.minor)return[{code:`unsupported-contract`,path:`/contract`,message:`the envelope targets contract ${String(m)} but ${d} is at ${h} (§4.4: an envelope may be older, never newer)`,severity:`error`,source:`catalog`,detail:{expected:h,found:m}}];let v=n.validateComponent(d,u);if(v.length>0)return xa(v,`/root`);let y=p?.engine;if(typeof y!=`string`||!y.startsWith(`lazy:`))return[];let b=y.slice(5),x=r?.[b],S=`/root/${ha}`;if(x===void 0)return[{code:`host-capability-missing`,path:S,message:`the host did not inject the ${b} semantic port (engine ${y}); the owning runtime validates this payload (§4.3 item 2)`,severity:`error`,source:`host`,detail:{chunk:b,engine:y}}];let ee;try{ee=x.validate(u[ha])}catch(e){return[{...pa(b,e instanceof Error?e.message:String(e)),path:S}]}return ee.map(e=>({code:e.severity===`warning`?e.code:`semantic-invalid`,path:`${S}${e.pointer??``}`,message:e.message,severity:e.severity,source:x.source,detail:{code:e.code}}))}}}var Ca={$defs:{CatalogComponentCommon:{properties:{weight:{description:`The relative weight of this component within a Row or Column. This is similar to the CSS 'flex-grow' property. Note: this may ONLY be set when the component is a direct descendant of a Row or Column.`,type:`number`}},type:`object`},DecisionDossierDocument:{$defs:{amendmentStep:{additionalProperties:!1,properties:{at:{type:`string`},author:{type:`string`},summary:{type:`string`}},required:[`at`,`author`,`summary`],type:`object`},amendmentTraceNode:{additionalProperties:!1,properties:{id:{type:`string`},kind:{const:`amendmentTrace`},steps:{items:{$ref:`#/$defs/DecisionDossierDocument/$defs/amendmentStep`},type:`array`},targetRef:{type:`string`}},required:[`id`,`kind`,`steps`,`targetRef`],type:`object`},comprehensionEvidence:{additionalProperties:!1,properties:{dossierHash:{type:`string`},signature:{type:`string`},subject:{type:`string`}},required:[`dossierHash`,`subject`],type:`object`},diagramNode:{additionalProperties:!1,properties:{alt:{type:`string`},id:{type:`string`},kind:{const:`diagram`},scene:{description:`diagram-core SemanticDocument, profile generic@1, without views, geometry or layout hints. Opaque JSON until the design-system publishes its authoritative schema; no Focus-specific scene model.`,type:`object`},source:{type:`string`},syntax:{enum:[`mermaid`,`plantuml`]},targetRef:{type:`string`}},required:[`alt`,`id`,`kind`,`source`,`syntax`,`targetRef`],type:`object`},glossaryEntry:{additionalProperties:!1,properties:{definition:{type:`string`},term:{type:`string`}},required:[`definition`,`term`],type:`object`},interaction:{additionalProperties:!1,properties:{enabled:{const:!1},label:{type:`string`},name:{type:`string`},targetRef:{type:`string`}},required:[`enabled`,`label`,`name`,`targetRef`],type:`object`},optionNode:{additionalProperties:!1,properties:{annotation:{enum:[`accept`,`comment`,`none`,`reject`]},annotationComment:{type:`string`},body:{type:`string`},consequence:{type:`string`},id:{type:`string`},kind:{const:`option`},label:{type:`string`},targetRef:{type:`string`}},required:[`annotation`,`id`,`kind`,`label`,`targetRef`],type:`object`},optionSetNode:{additionalProperties:!1,properties:{id:{type:`string`},kind:{const:`optionSet`},options:{items:{$ref:`#/$defs/DecisionDossierDocument/$defs/optionNode`},type:`array`},questionId:{type:`string`},targetRef:{type:`string`},title:{type:`string`}},required:[`id`,`kind`,`options`,`targetRef`],type:`object`},outcomeNode:{additionalProperties:!1,properties:{id:{type:`string`},kind:{const:`outcome`},modality:{enum:[`amendment`,`comment`,`decision`,`orientation`]},questionId:{type:`string`},statement:{type:`string`},targetRef:{type:`string`}},required:[`id`,`kind`,`modality`,`statement`,`targetRef`],type:`object`},proseNode:{additionalProperties:!1,properties:{id:{type:`string`},kind:{const:`prose`},markdown:{type:`string`},questionId:{type:`string`},targetRef:{type:`string`}},required:[`id`,`kind`,`markdown`,`targetRef`],type:`object`},provenance:{additionalProperties:!1,properties:{comprehensionEvidence:{$ref:`#/$defs/DecisionDossierDocument/$defs/comprehensionEvidence`},readAt:{type:`string`},source:{type:`string`}},required:[`readAt`,`source`],type:`object`},questionNode:{additionalProperties:!1,properties:{answer:{type:`string`},context:{type:`string`},id:{type:`string`},kind:{const:`question`},question:{type:`string`},readingTimeMinutes:{type:`number`},recommendedAnswer:{type:`string`},recommendedOptionId:{type:`string`},state:{enum:[`answered`,`open`,`validated`]},targetRef:{type:`string`}},required:[`id`,`kind`,`question`,`state`,`targetRef`],type:`object`},readability:{additionalProperties:!1,properties:{glossary:{items:{$ref:`#/$defs/DecisionDossierDocument/$defs/glossaryEntry`},type:`array`},noOwnerRequest:{type:`boolean`},ownerRequestQuote:{type:`string`},readingBudgetMinutes:{type:`number`},stakes:{type:`string`},stakesLevel:{enum:[`high`,`low`,`medium`]}},type:`object`},section:{oneOf:[{$ref:`#/$defs/DecisionDossierDocument/$defs/proseNode`},{$ref:`#/$defs/DecisionDossierDocument/$defs/questionNode`},{$ref:`#/$defs/DecisionDossierDocument/$defs/optionSetNode`},{$ref:`#/$defs/DecisionDossierDocument/$defs/outcomeNode`},{$ref:`#/$defs/DecisionDossierDocument/$defs/amendmentTraceNode`},{$ref:`#/$defs/DecisionDossierDocument/$defs/diagramNode`}]}},$schema:`https://json-schema.org/draft/2020-12/schema`,additionalProperties:!1,description:`Read-only decision-dossier snapshot published by @sentropic/focus. Closed: unknown fields refuse. Snapshot interactions are disabled metadata (enabled:false); live decisions, signatures and amendments require separately qualified runtime capabilities.`,properties:{amendmentTrace:{items:{$ref:`#/$defs/DecisionDossierDocument/$defs/amendmentStep`},type:`array`},cursor:{type:`string`},hash:{type:`string`},interactions:{items:{$ref:`#/$defs/DecisionDossierDocument/$defs/interaction`},type:`array`},provenance:{$ref:`#/$defs/DecisionDossierDocument/$defs/provenance`},readability:{$ref:`#/$defs/DecisionDossierDocument/$defs/readability`},ref:{type:`string`},sections:{items:{$ref:`#/$defs/DecisionDossierDocument/$defs/section`},type:`array`},subject:{type:`string`},title:{type:`string`}},required:[`amendmentTrace`,`cursor`,`hash`,`interactions`,`provenance`,`ref`,`sections`,`subject`,`title`],title:`DecisionDossierDocument`,type:`object`},anyComponent:{oneOf:[{$ref:`#/components/BarChart`},{$ref:`#/components/BpmnCanvas`},{$ref:`#/components/DecisionDossier`}]},theme:{properties:{themeId:{type:`string`}},type:`object`}},$id:`https://design-system.sent-tech.ca/catalogs/elements/v1/catalog.json`,$schema:`https://json-schema.org/draft/2020-12/schema`,catalogId:`https://design-system.sent-tech.ca/catalogs/elements/v1/catalog.json`,components:JSON.parse(`{"BarChart":{"allOf":[{"$ref":"https://a2ui.org/specification/v0_9_1/common_types.json#/$defs/ComponentCommon"},{"$ref":"#/$defs/CatalogComponentCommon"},{"properties":{"accessibility":{"additionalProperties":false,"properties":{"description":{"type":"string"},"label":{"type":"string"}},"type":"object"},"annotations":{"description":"Annotation overlay in data space (see ChartAnnotation).","items":{"anyOf":[{"additionalProperties":false,"properties":{"kind":{"const":"point","type":"string"},"label":{"type":"string"},"marker":{"description":"Marker glyph for a point annotation.","enum":["circle","diamond","square"],"type":"string"},"x":{"type":["number","string"]},"y":{"type":"number"}},"required":["kind","x","y"],"type":"object"},{"additionalProperties":false,"properties":{"anchor":{"enum":["end","middle","start"],"type":"string"},"kind":{"const":"label","type":"string"},"text":{"type":"string"},"x":{"type":["number","string"]},"y":{"type":"number"}},"required":["kind","text","x","y"],"type":"object"},{"additionalProperties":false,"properties":{"axis":{"enum":["x","y"],"type":"string"},"kind":{"const":"line","type":"string"},"label":{"type":"string"},"value":{"type":"number"}},"required":["axis","kind","value"],"type":"object"},{"additionalProperties":false,"properties":{"axis":{"enum":["x","y"],"type":"string"},"from":{"type":"number"},"kind":{"const":"region","type":"string"},"label":{"type":"string"},"to":{"type":"number"}},"required":["axis","from","kind","to"],"type":"object"},{"additionalProperties":false,"properties":{"kind":{"const":"shape","type":"string"},"label":{"type":"string"},"points":{"items":{"additionalProperties":false,"properties":{"x":{"type":["number","string"]},"y":{"type":"number"}},"required":["x","y"],"type":"object"},"type":"array"}},"required":["kind","points"],"type":"object"}],"description":"Annotation overlay in data space, discriminated on \`kind\`. The \`x\` coordinate is categorical for this chart: it matches a bar by its \`label\` and is ignored otherwise; \`y\` and every value-axis number are numeric."},"type":"array"},"bands":{"description":"Shaded value-axis bands.","items":{"additionalProperties":false,"description":"A shaded band between two value-axis positions.","properties":{"from":{"description":"Band start in value-axis units.","type":"number"},"label":{"description":"Human-readable band label.","type":"string"},"to":{"description":"Band end in value-axis units.","type":"number"},"tone":{"description":"Feedback-token tone for the band.","enum":["error","info","neutral","success","warning"],"type":"string"}},"required":["from","to"],"type":"object"},"type":"array"},"component":{"const":"BarChart"},"data":{"description":"The bars, in draw order. Required.","items":{"additionalProperties":false,"description":"One bar: its label is also its selection key.","properties":{"errorHigh":{"description":"Upper error-bar extent (value-axis units). Drawn only when finite.","type":"number"},"errorLow":{"description":"Lower error-bar extent (value-axis units). Drawn only when finite.","type":"number"},"label":{"description":"The bar's category label; also its key for selection and hover.","type":"string"},"tone":{"description":"Explicit categorical tone; the palette default when absent.","enum":["category1","category2","category3","category4","category5","category6","category7","category8"],"type":"string"},"value":{"description":"The bar's value (value-axis units).","type":"number"}},"required":["label","value"],"type":"object"},"type":"array"},"dataLabels":{"anyOf":[{"type":"boolean"},{"additionalProperties":false,"properties":{"position":{"description":"Placement hint; the chart's default when absent.","enum":["auto","center","inside","outside","top"],"type":"string"}},"type":"object"}],"description":"Per-bar value labels; absent or false renders none."},"domain":{"description":"Fixed value-axis domain [min, max]; the auto data range when absent.","items":{"type":"number"},"maxItems":2,"minItems":2,"type":"array"},"goalLine":{"additionalProperties":false,"description":"A single goal line, emphasised above the bars.","properties":{"label":{"description":"Human-readable goal label.","type":"string"},"value":{"description":"Position of the goal line in value-axis units.","type":"number"}},"required":["value"],"type":"object"},"height":{"description":"Fixed pixel height; the component's default when absent.","type":"number"},"hoverKey":{"description":"Controlled synchronised hover key (a bar's label, or null for none).","type":["null","string"]},"invertAxis":{"description":"Inverts the value axis (high values toward the origin). Default false.","type":"boolean"},"keyboardNav":{"description":"Keyboard navigation of the data points (roving tabindex).","type":"boolean"},"label":{"description":"Human-readable chart label (also the accessible name). Required.","type":"string"},"orientation":{"description":"Bar direction; \\"vertical\\" by default.","enum":["horizontal","vertical"],"type":"string"},"referenceLines":{"description":"Reference lines on the value axis.","items":{"additionalProperties":false,"description":"A reference line on one axis (default axis: \\"y\\").","properties":{"axis":{"description":"Which axis the line spans; \\"y\\" by default.","enum":["x","y"],"type":"string"},"label":{"description":"Human-readable line label.","type":"string"},"tone":{"description":"Feedback-token tone for the line.","enum":["error","info","neutral","success","warning"],"type":"string"},"value":{"description":"Position of the line in value-axis units.","type":"number"}},"required":["value"],"type":"object"},"type":"array"},"scale":{"description":"Value-axis scale; \\"linear\\" by default, \\"log\\" needs positive values.","enum":["linear","log"],"type":"string"},"selectedKeys":{"description":"Keys of the currently selected bars (a bar's key is its label). Controlled.","items":{"type":"string"},"type":"array"},"showLegend":{"description":"Accepted for cross-chart parity; BarChart has no separate legend surface.","type":"boolean"},"width":{"description":"Fixed pixel width; the container's when absent.","type":"number"}},"required":["component","data","label"],"type":"object"}],"type":"object","unevaluatedProperties":false,"x-sentropic":{"contract":"1.0","element":"st-bar-chart","engine":"core","events":["select"],"example":{"component":"BarChart","data":[{"label":"Q1","value":12},{"label":"Q2","value":18},{"label":"Q3","value":9}],"dataLabels":true,"id":"root","label":"Revenue (M€)","referenceLines":[{"label":"Target","value":15}]},"fallback":"svg","parity":{"angular":{"comparedProps":17,"file":"packages/components-angular/src/BarChart.ts","status":"match","type":"BarChartProps"},"react":{"comparedProps":17,"file":"packages/components-react/src/BarChart.tsx","note":"Own members after subtracting React.HTMLAttributes<HTMLDivElement>; className is React's name for the class style hook.","status":"match","type":"BarChartProps"},"svelte":{"file":"packages/components-svelte/src/lib/BarChart.svelte","note":"Reference pilot (§3.1); not mechanically generatable (Svelte file), mirrored here member for member.","status":"source-of-truth","type":"BarChartProps"},"vue":{"comparedProps":17,"file":"packages/components-vue/src/BarChart.ts","status":"match","type":"BarChartProps"}},"schema":"https://design-system.sent-tech.ca/catalogs/elements/v1/components/BarChart.json"}},"BpmnCanvas":{"allOf":[{"$ref":"https://a2ui.org/specification/v0_9_1/common_types.json#/$defs/ComponentCommon"},{"$ref":"#/$defs/CatalogComponentCommon"},{"properties":{"accessibility":{"additionalProperties":false,"properties":{"description":{"type":"string"},"label":{"type":"string"}},"type":"object"},"component":{"const":"BpmnCanvas"},"document":{"additionalProperties":{},"description":"The F1 document to render: a structural envelope the engine's hydrate validates.","properties":{"$type":{"description":"F1 type discriminator, e.g. \\"bpmn:Definitions\\".","type":"string"}},"required":["$type"],"type":"object"}},"required":["component","document"],"type":"object"}],"type":"object","unevaluatedProperties":false,"x-sentropic":{"contract":"1.0","element":"st-bpmn-canvas","engine":"lazy:bpmn-canvas","events":[],"example":{"component":"BpmnCanvas","document":{"$type":"bpmn:Definitions","id":"definitions-1","targetNamespace":"https://example.com/bpmn"},"id":"root"},"fallback":"svg","parity":{"angular":{"file":"packages/components-angular","note":"No counterpart in this framework package (§5.1: components with no framework counterpart record that fact).","status":"no-counterpart"},"react":{"file":"packages/components-react","note":"No counterpart in this framework package (§5.1: components with no framework counterpart record that fact).","status":"no-counterpart"},"svelte":{"file":"packages/components-svelte","note":"No counterpart in this framework package (§5.1: components with no framework counterpart record that fact).","status":"no-counterpart"},"vue":{"file":"packages/components-vue","note":"No counterpart in this framework package (§5.1: components with no framework counterpart record that fact).","status":"no-counterpart"}},"schema":"https://design-system.sent-tech.ca/catalogs/elements/v1/components/BpmnCanvas.json","semantic":{"runtimePackage":"@sentropic/bpmn-canvas","source":"bpmn-canvas"}}},"DecisionDossier":{"allOf":[{"$ref":"https://a2ui.org/specification/v0_9_1/common_types.json#/$defs/ComponentCommon"},{"$ref":"#/$defs/CatalogComponentCommon"},{"properties":{"accessibility":{"additionalProperties":false,"properties":{"description":{"type":"string"},"label":{"type":"string"}},"type":"object"},"component":{"const":"DecisionDossier"},"document":{"$ref":"#/$defs/DecisionDossierDocument"}},"required":["component","document"],"type":"object"}],"type":"object","unevaluatedProperties":false,"x-sentropic":{"contract":"1.0","element":"st-decision-dossier","engine":"lazy:focus","events":["choose-option"],"example":{"component":"DecisionDossier","document":{"amendmentTrace":[],"cursor":"2026-10-30T10:00:00Z","hash":"b7d3f0c9","interactions":[],"provenance":{"readAt":"2026-10-30T10:00:00Z","source":"track"},"ref":"decision-1","sections":[{"id":"q1","kind":"question","question":"Which rendering contract do we adopt?","state":"open","targetRef":"decision-1"},{"id":"options-1","kind":"optionSet","options":[{"annotation":"none","id":"opt-json","kind":"option","label":"Adopt the JSON render standard","targetRef":"q1"},{"annotation":"none","id":"opt-status-quo","kind":"option","label":"Keep the status quo","targetRef":"q1"}],"targetRef":"q1","title":"Options"}],"subject":"Adopt the JSON render standard for design-system rendering","title":"Decision: adopt the JSON render standard"},"id":"root"},"fallback":"text","parity":{"angular":{"file":"packages/components-angular","note":"No counterpart in this framework package (§5.1: components with no framework counterpart record that fact).","status":"no-counterpart"},"react":{"file":"packages/components-react","note":"No counterpart in this framework package (§5.1: components with no framework counterpart record that fact).","status":"no-counterpart"},"svelte":{"file":"packages/components-svelte","note":"No counterpart in this framework package (§5.1: components with no framework counterpart record that fact).","status":"no-counterpart"},"vue":{"file":"packages/components-vue","note":"No counterpart in this framework package (§5.1: components with no framework counterpart record that fact).","status":"no-counterpart"}},"schema":"https://design-system.sent-tech.ca/catalogs/elements/v1/components/DecisionDossier.json","semantic":{"runtimePackage":"@sentropic/focus@0.5.0","schemaId":"urn:sentropic:focus:DecisionDossierDocument:1.0.0","schemaSubpath":"schemas/decision-dossier-document.v1.schema.json","sha256":"725bc07e7c6b6ad51a1f720cc9fb02649d8f31bc54e71c61c350fd20058c8852","source":"focus"}}}}`),description:`A2UI v0.9.1 basic catalogue of the Sentropic design system elements (JSON render standard, spec/SPEC_EVOL_DS_JSON_RENDER_STANDARD.md §5.2). Each component carries its x-sentropic contract version, element name, engine, events, fallback and standalone schema id; semantic documents are validated by their owning runtimes (§4.3).`,functions:{},title:`Sentropic design system elements catalogue`},wa={$id:`https://design-system.sent-tech.ca/catalogs/elements/v1/envelope.json`,$schema:`https://json-schema.org/draft/2020-12/schema`,description:"The render envelope of the JSON render standard (§4.2): one A2UI v0.9.1 component object under `root`, with the targeted component's contract version and an optional mode. The root interior is validated by the targeted component's catalogue entry, not by this schema.",properties:{catalogId:{type:`string`},contract:{pattern:`^[0-9]+\\.[0-9]+$`,type:`string`},mode:{enum:[`preview`,`snapshot`],type:`string`},root:{properties:{component:{type:`string`},id:{const:`root`}},required:[`component`,`id`],type:`object`}},required:[`contract`,`root`],title:`Sentropic render envelope`,type:`object`,unevaluatedProperties:!1},Ta={$defs:{AccessibilityAttributes:{description:`Attributes to enhance accessibility when using assistive technologies like screen readers.`,properties:{description:{$ref:`#/$defs/DynamicString`,description:`Additional information provided by assistive technologies about an element such as instructions, format requirements, or result of an action. For example, a mute button might have a label of 'Mute' and a description of 'Silences notifications about this conversation'.`},label:{$ref:`#/$defs/DynamicString`,description:`A short string, typically 1 to 3 words, used by assistive technologies to convey the purpose or intent of an element. For example, an input field might have an accessible label of 'User ID' or a button might be labeled 'Submit'.`}},type:`object`},Action:{description:`Defines an interaction handler that can either trigger a server-side event or execute a local client-side function.`,oneOf:[{additionalProperties:!1,description:`Triggers a server-side event.`,properties:{event:{additionalProperties:!1,description:`The event to dispatch to the server.`,properties:{context:{additionalProperties:{$ref:`#/$defs/DynamicValue`},description:`A JSON object containing the key-value pairs for the action context. Values can be literals or paths. Use literal values unless the value must be dynamically bound to the data model. Do NOT use paths for static IDs.`,type:`object`},name:{description:`The name of the action to be dispatched to the server.`,type:`string`}},required:[`name`],type:`object`}},required:[`event`],type:`object`},{additionalProperties:!1,description:`Executes a local client-side function.`,properties:{functionCall:{$ref:`#/$defs/FunctionCall`}},required:[`functionCall`],type:`object`}]},CheckRule:{additionalProperties:!1,description:`A single validation rule applied to an input component.`,properties:{condition:{$ref:`#/$defs/DynamicBoolean`},message:{description:`The error message to display if the check fails.`,type:`string`}},required:[`condition`,`message`],type:`object`},Checkable:{description:`Properties for components that support client-side checks.`,properties:{checks:{description:`A list of checks to perform. These are function calls that must return a boolean indicating validity.`,items:{$ref:`#/$defs/CheckRule`},type:`array`}},type:`object`},ChildList:{oneOf:[{description:`A static list of child component IDs.`,items:{$ref:`#/$defs/ComponentId`},type:`array`},{additionalProperties:!1,description:"A template for generating a dynamic list of children from a data model list. The `componentId` is the component to use as a template.",properties:{componentId:{$ref:`#/$defs/ComponentId`},path:{description:`The path to the list of component property objects in the data model.`,type:`string`}},required:[`componentId`,`path`],type:`object`}]},ComponentCommon:{properties:{accessibility:{$ref:`#/$defs/AccessibilityAttributes`},id:{$ref:`#/$defs/ComponentId`}},required:[`id`],type:`object`},ComponentId:{description:`The unique identifier for a component, used for both definitions and references within the same surface.`,type:`string`},DataBinding:{additionalProperties:!1,properties:{path:{description:`A JSON Pointer path to a value in the data model.`,type:`string`}},required:[`path`],type:`object`},DynamicBoolean:{description:`A boolean value that can be a literal, a path, or a function call returning a boolean.`,oneOf:[{type:`boolean`},{$ref:`#/$defs/DataBinding`},{allOf:[{$ref:`#/$defs/FunctionCall`},{properties:{returnType:{const:`boolean`}}}]}]},DynamicNumber:{description:`Represents a value that can be either a literal number, a path to a number in the data model, or a function call returning a number.`,oneOf:[{type:`number`},{$ref:`#/$defs/DataBinding`},{allOf:[{$ref:`#/$defs/FunctionCall`},{properties:{returnType:{const:`number`}}}]}]},DynamicString:{description:`Represents a string`,oneOf:[{type:`string`},{$ref:`#/$defs/DataBinding`},{allOf:[{$ref:`#/$defs/FunctionCall`},{properties:{returnType:{const:`string`}}}]}]},DynamicStringList:{description:`Represents a value that can be either a literal array of strings, a path to a string array in the data model, or a function call returning a string array.`,oneOf:[{items:{type:`string`},type:`array`},{$ref:`#/$defs/DataBinding`},{allOf:[{$ref:`#/$defs/FunctionCall`},{properties:{returnType:{const:`array`}}}]}]},DynamicValue:{description:`A value that can be a literal, a path, or a function call returning any type.`,oneOf:[{type:`string`},{type:`number`},{type:`boolean`},{type:`array`},{$ref:`#/$defs/DataBinding`},{$ref:`#/$defs/FunctionCall`}]},FunctionCall:{description:`Invokes a named function on the client.`,oneOf:[{$ref:`catalog.json#/$defs/anyFunction`}],properties:{args:{additionalProperties:{anyOf:[{$ref:`#/$defs/DynamicValue`},{description:`A literal object argument (e.g. configuration).`,type:`object`}]},description:`Arguments passed to the function.`,type:`object`},call:{description:`The name of the function to call.`,type:`string`},returnType:{default:`boolean`,description:`The expected return type of the function call.`,enum:[`any`,`array`,`boolean`,`number`,`object`,`string`,`void`],type:`string`}},required:[`call`],type:`object`}},$id:`https://a2ui.org/specification/v0_9_1/common_types.json`,$schema:`https://json-schema.org/draft/2020-12/schema`,description:`Common type definitions used across A2UI schemas.`,title:`A2UI Common Types`},Ea={$defs:{anyFunction:{not:{}}},$id:`https://a2ui.org/specification/v0_9_1/catalog.json`,$schema:`https://json-schema.org/draft/2020-12/schema`},Da=new Set([`$ref`,`type`,`enum`,`const`,`pattern`,`properties`,`required`,`additionalProperties`,`unevaluatedProperties`,`items`,`minItems`,`maxItems`,`allOf`,`anyOf`,`oneOf`,`not`]),Oa=new Set([`$schema`,`$id`,`$defs`,`$anchor`,`$dynamicAnchor`,`$comment`,`$vocabulary`,`title`,`description`,`default`,`examples`,`example`,`note`,`deprecated`,`readOnly`,`writeOnly`,`catalogId`,`components`,`functions`,`x-sentropic`]),ka=new Set([`multipleOf`,`maximum`,`exclusiveMaximum`,`minimum`,`exclusiveMinimum`,`maxLength`,`minLength`,`maxProperties`,`minProperties`,`uniqueItems`,`contains`,`maxContains`,`minContains`,`patternProperties`,`dependentRequired`,`dependentSchemas`,`propertyNames`,`prefixItems`,`unevaluatedItems`,`if`,`then`,`else`,`definitions`,`$dynamicRef`,`$recursiveRef`]);function $(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function Aa(e){return e.replace(/~/g,`~0`).replace(/\//g,`~1`)}function ja(e,t){if(e===t)return!0;if(!$(e)&&!Array.isArray(e))return!1;if(Array.isArray(e))return!Array.isArray(t)||e.length!==t.length?!1:e.every((e,n)=>ja(e,t[n]));if(!$(t))return!1;let n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(n=>Object.hasOwn(t,n)&&ja(e[n],t[n]))}function Ma(e,t){switch(e){case`object`:return $(t);case`array`:return Array.isArray(t);case`string`:return typeof t==`string`;case`number`:return typeof t==`number`;case`integer`:return typeof t==`number`&&Number.isInteger(t);case`boolean`:return typeof t==`boolean`;case`null`:return t===null;default:return!0}}var Na=class{#e=new Map;register(e,t){if(!$(e)||typeof e.$id!=`string`||e.$id.length===0)throw Error(`the ${t} must carry its $id so every $ref resolves without network access`);return this.#e.set(e.$id,e),e.$id}resolve(e,t){let n=e.indexOf(`#`),r=n===-1?e:e.slice(0,n),i=n===-1?``:e.slice(n+1),a=t;r.length>0&&(a=/^[a-z][a-z0-9+.-]*:/i.test(r)?r:Pa(t,r));let o=this.#e.get(a);if(o===void 0)throw Error(`the $ref "${e}" does not name a registered document (from ${t})`);return{schema:i.length===0?o:Fa(o,i,e),baseId:a}}};function Pa(e,t){let n=e.lastIndexOf(`/`);return n===-1?t:`${e.slice(0,n+1)}${t}`}function Fa(e,t,n){if(!t.startsWith(`/`))throw Error(`the $ref "${n}" must use a JSON pointer (URI fragments are not used by the registered documents)`);let r=e;for(let e of t.slice(1).split(`/`)){let t=e.replace(/~1/g,`/`).replace(/~0/g,`~`);if(Array.isArray(r)){let e=Number(t);if(!Number.isInteger(e)||e<0||e>=r.length)throw Error(`the $ref "${n}" does not resolve: no array item ${t}`);r=r[e]}else{if(!$(r)||!Object.hasOwn(r,t))throw Error(`the $ref "${n}" does not resolve: no property "${t}"`);r=r[t]}}return r}function Ia(e,t){if(typeof e==`boolean`)return;if(!$(e))throw Error(`the ${t} contains a schema that is neither a boolean nor an object`);for(let n of Object.keys(e))if(!(n.startsWith(`x-`)||Oa.has(n)||Da.has(n)))throw ka.has(n)?Error(`the ${t} uses "${n}", outside the browser structure interpreter's keyword set (§6.4): extend src/structure/interpreter.ts and its oracle test`):Error(`the ${t} uses unknown keyword "${n}": extend src/structure/interpreter.ts and its oracle test, or allowlist it as an annotation`);let n=e.items;if(Array.isArray(n))throw Error(`the ${t} uses "items" in its legacy tuple form, which the browser structure interpreter does not implement`);if(n!==void 0&&!$(n)&&typeof n!=`boolean`)throw Error(`the ${t} uses "items" in a non-schema form, which the browser structure interpreter does not implement`);for(let n of[`additionalProperties`,`unevaluatedProperties`,`not`]){let r=e[n];if(r!==void 0&&!$(r)&&typeof r!=`boolean`)throw Error(`the ${t} uses "${n}" in a non-schema form, which the browser structure interpreter does not implement`)}for(let n of[`allOf`,`anyOf`,`oneOf`]){let r=e[n];if(r!==void 0&&!Array.isArray(r))throw Error(`the ${t} uses "${n}" in a non-array form, which the browser structure interpreter does not implement`)}let r=[];for(let t of[`$defs`,`properties`,`components`]){let n=e[t];if($(n))for(let e of Object.values(n))r.push([`${t} entry`,e])}n!==void 0&&r.push([`items`,n]);for(let t of[`additionalProperties`,`unevaluatedProperties`,`not`]){let n=e[t];($(n)||typeof n==`boolean`)&&r.push([t,n])}for(let t of[`allOf`,`anyOf`,`oneOf`]){let n=e[t];if(Array.isArray(n))for(let e of n)r.push([t,e])}for(let[e,n]of r)Ia(n,`${t} (${e})`)}var La=new Set;function Ra(e,t,n,r,i,a){if(e===!0)return{ok:!0,evaluated:La};if(e===!1||e==null)return a.push({pointer:n,message:`the schema is false here`,keyword:`schema`}),{ok:!1,evaluated:La};if(!$(e))return a.push({pointer:n,message:`the schema node is neither a boolean nor an object`,keyword:`schema`}),{ok:!1,evaluated:La};let o=!0,s=new Set,c=e=>{o=!1,a.push(e)},l=e.$ref,u=r;if(typeof l==`string`){let e=i.resolve(l,r),c=Ra(e.schema,t,n,e.baseId,i,a);for(let e of c.evaluated)s.add(e);c.ok||(o=!1)}let d=e.type;if(d!==void 0){let e=Array.isArray(d)?d:[d],r=e.filter(e=>typeof e==`string`);e.length>0&&r.length===e.length&&!r.some(e=>Ma(e,t))&&c({pointer:n,message:`must be ${r.join(`,`)}`,keyword:`type`})}let f=e.enum;Array.isArray(f)&&!f.some(e=>ja(e,t))&&c({pointer:n,message:`must be equal to one of the allowed values`,keyword:`enum`}),Object.hasOwn(e,`const`)&&!ja(e.const,t)&&c({pointer:n,message:`must be equal to constant`,keyword:`const`});let p=e.pattern;if(typeof p==`string`&&typeof t==`string`&&!new RegExp(p,`u`).test(t)&&c({pointer:n,message:`must match pattern "${p}"`,keyword:`pattern`}),$(t)){let r=Object.keys(t),l=e.required;if(Array.isArray(l))for(let e of l)typeof e==`string`&&!Object.hasOwn(t,e)&&c({pointer:n,message:`must have required property '${e}'`,keyword:`required`,missingProperty:e});let d=$(e.properties)?e.properties:{};for(let[e,r]of Object.entries(d))Object.hasOwn(t,e)&&(s.add(e),Ra(r,t[e],`${n}/${Aa(e)}`,u,i,a).ok||(o=!1));let f=e.additionalProperties,p=new Set(Object.keys(d));if(f===!1)for(let e of r)p.has(e)||(s.add(e),c({pointer:n,message:`must NOT have additional properties`,keyword:`additionalProperties`,additionalProperty:e}));else if($(f)||f===!0){let e=$(f);for(let c of r)p.has(c)||(s.add(c),!e)||Ra(f,t[c],`${n}/${Aa(c)}`,u,i,a).ok||(o=!1)}}if(Array.isArray(t)){let r=e.minItems;typeof r==`number`&&t.length<r&&c({pointer:n,message:`must NOT have fewer than ${r} items`,keyword:`minItems`});let s=e.maxItems;typeof s==`number`&&t.length>s&&c({pointer:n,message:`must NOT have more than ${s} items`,keyword:`maxItems`});let l=e.items;l!==void 0&&!Array.isArray(l)&&t.forEach((e,t)=>{Ra(l,e,`${n}/${t}`,u,i,a).ok||(o=!1)})}let m=e.allOf;if(Array.isArray(m))for(let e of m){let r=Ra(e,t,n,u,i,a);for(let e of r.evaluated)s.add(e);r.ok||(o=!1)}let h=e.anyOf;if(Array.isArray(h)){let e=!1,r=[];for(let a of h){let o=[],c=Ra(a,t,n,u,i,o);if(r.push(o),c.ok){e=!0;for(let e of c.evaluated)s.add(e)}}if(!e){o=!1;for(let e of r)a.push(...e);a.push({pointer:n,message:`must match a schema in anyOf`,keyword:`anyOf`})}}let g=e.oneOf;if(Array.isArray(g)){let e=[],r=[],c=0,l=-1;if(g.forEach((a,o)=>{let s=[],d=Ra(a,t,n,u,i,s);e.push(s),r.push(d.evaluated),d.ok&&(c+=1,l=o)}),c===1&&l>=0)for(let e of r[l]??[])s.add(e);else{o=!1;for(let t of e)a.push(...t);a.push({pointer:n,message:`must match exactly one schema in oneOf`,keyword:`oneOf`})}}let _=e.not;if(_!==void 0&&Ra(_,t,n,u,i,[]).ok&&(a.push({pointer:n,message:`must NOT be valid`,keyword:`not`}),o=!1),$(t)){let r=e.unevaluatedProperties;if(r!==void 0){let e=Object.keys(t).filter(e=>!s.has(e));if(r===!1)for(let t of e)c({pointer:n,message:`must NOT have unevaluated properties`,keyword:`unevaluatedProperties`,additionalProperty:t});else if(($(r)||r===!0)&&$(r))for(let c of e)Ra(r,t[c],`${n}/${Aa(c)}`,u,i,a).ok?s.add(c):o=!1}}return{ok:o,evaluated:s}}function za(e){let t=new Na,n=t.register(e.catalog,`catalogue document`);if(typeof e.catalog.catalogId!=`string`||e.catalog.catalogId.length===0)throw Error(`the catalogue document must carry its catalogId (§5.2: $id = catalogId)`);let r=t.register(e.envelopeSchema,`envelope schema`);return t.register(e.commonTypes,`A2UI common types`),t.register(Ea,`built catalog.json stub`),Ia(e.catalog,`catalogue document`),Ia(e.envelopeSchema,`envelope schema`),Ia(e.commonTypes,`A2UI common types`),Ia(Ea,`built catalog.json stub`),{validateEnvelope(n){let i=[];return Ra(e.envelopeSchema,n,``,r,t,i),i},validateComponent(r,i){let a=e.catalog.components[r];if(a===void 0)return[{pointer:`/component`,message:`no catalogued component is named ${r}`,keyword:`$compile`}];let o=[];return Ra(a,i,``,n,t,o),o}}}var Ba=new Map;function Va(){return new Proxy({},{get(e,t){return Ba.get(t)}})}var Ha;function Ua(){return Ha===void 0&&(Ha=Sa({catalog:Ca,envelopeSchema:wa,commonTypes:Ta,ports:Va(),structure:za({catalog:Ca,envelopeSchema:wa,commonTypes:Ta})})),Ha}function Wa(e,t){Ba.set(e,t)}var Ga=(function(){let e=typeof document<`u`&&document.createElement(`link`).relList;return e&&e.supports&&e.supports(`modulepreload`)?`modulepreload`:`preload`})(),Ka=function(e){return`/`+e},qa={},Ja=function(e){return e.pathname.endsWith(`.css`)},Ya=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},Xa=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=Ka(t,n);let r=s(t),i=Ja(r);return Ya(qa,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`:Ga,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)})},Za={BpmnCanvas:`bpmn-canvas`,DecisionDossier:`focus`},Qa=new Map;async function $a(e){let t=Qa.get(e);if(t!==void 0)return t;let n=(e===`BpmnCanvas`?Xa(()=>import(`./chunks/bpmn-canvas-DeAWdJFy.js`).then(e=>e.t),[]):e===`DecisionDossier`?Xa(()=>import(`./chunks/focus-renderer-0elVToA2.js`),[]):Promise.reject(Error(`core components load no engine chunk`))).catch(t=>{throw Qa.delete(e),t});return Qa.set(e,n),n}function eo(e){return e.root??{}}function to(e,t){return{code:`unknown-component`,path:`/root/component`,message:`<${`st-${e.replace(/([a-z])([A-Z])/g,`$1-$2`).toLowerCase()}`}> requires root.component "${e}", got "${t}"`,severity:`error`,source:`catalog`,detail:{expected:e,found:t}}}function no(e,t){if(e===`BarChart`)return!1;let n=Za[e];return t.length>0&&t.every(e=>e.code===`host-capability-missing`&&e.detail?.chunk===n)}function ro(e){let t=e?.bpmn?.watermark;if(t===void 0)return;let{hidden:n,license:r}=t;if(n===!0&&typeof r==`string`&&r.trim()!==``)return{hidden:!0,license:r}}function io(e){let t=F(`idle`),n=F(Kt([])),r=F(null),i=new Set,a=!1,o=0;function s(e){if(I(t,e,!0),!a&&(e===`rendered`||e===`refused`)){a=!0;for(let e of i)e()}}function c(e){return a?e():i.add(e),()=>i.delete(e)}function l(...e){I(n,[...e],!0)}function u(e){K(n).some(t=>t.code===e.code&&t.path===e.path&&t.message===e.message)||I(n,[...K(n),e],!0)}async function d(i,a){let c=++o;I(t,`rendering`);try{let t=va(i),l=Ua().validate(t.ok?t.value:i);if(c!==o)return;let u=(t.ok?t.value:i)?.root?.component;if(typeof u==`string`&&u!==e){I(n,[to(e,u)],!0),I(r,null),s(`refused`);return}let d=l.filter(e=>e.severity===`error`);if(d.length>0&&!no(e,d)){I(n,[...l],!0),I(r,null),s(`refused`);return}if(e!==`BarChart`&&d.length>0){let a=await $a(e);if(Wa(Za[e],a.port),c!==o)return;let l=Ua().validate(t.ok?t.value:i);if(c!==o)return;if(l.filter(e=>e.severity===`error`).length>0){I(n,[...l],!0),I(r,null),s(`refused`);return}I(n,[...l],!0)}else I(n,[...l],!0);if(!t.ok){I(r,null),s(`refused`);return}let f=eo(t.value);if(e===`BarChart`){let{component:e,id:t,...n}=f;I(r,{kind:`bar-chart`,props:n},!0)}else if(e===`BpmnCanvas`){let{toXml:t}=await $a(e),i=await t(f.document);if(c!==o)return;if(!i.ok){I(n,[{code:`semantic-invalid`,path:`/root/document`,message:i.message,severity:`error`,source:`bpmn-canvas`,detail:{code:i.code}}],!0),I(r,null),s(`refused`);return}I(r,{kind:`bpmn`,xml:i.xml,assetBase:typeof a?.assetBase==`string`?a.assetBase:void 0,watermark:ro(a)},!0)}else I(r,{kind:`dossier`,document:f.document},!0);s(`rendered`)}catch(t){if(c!==o)return;let n=t instanceof Error?t.message:String(t),r=Za[e];l(r===void 0?{code:`semantic-invalid`,path:``,message:`the element failed to render the envelope: ${n}`,severity:`error`,source:`host`,detail:{cause:n}}:pa(r,n)),s(`refused`)}}return{get state(){return K(t)},get diagnostics(){return K(n)},get payload(){return K(r)},ingest:d,onSettle:c,noteEngineDiagnostic:u}}var ao=new WeakMap,oo=new WeakMap;function so(e){let t=oo.get(e);if(t===void 0){let n;t={promise:new Promise(e=>{n=e}),resolve:n},oo.set(e,t),ao.get(e)?.onSettle(n)}return t}function co(e,t){ao.set(e,t);let n=oo.get(e);n!==void 0&&t.onSettle(n.resolve)}function lo(e){let t=customElements.get(e);if(t===void 0)throw Error(`the ${e} element is not registered; import its module first`);let n=t.prototype;Object.defineProperty(n,"state",{get(){return ao.get(this)?.state??`idle`}}),Object.defineProperty(n,"diagnostics",{get(){return ao.get(this)?.diagnostics??[]}}),Object.defineProperty(n,"ready",{get(){return so(this).promise}})}var uo=`/* Generated by packages/themes/scripts/build-css.mjs. */
48
+ controlled) bar. Decorative (aria-hidden). */.st-barChart__crosshairLine.svelte-14iupu9 {stroke:var(--st-semantic-border-strong);stroke-width:1;stroke-dasharray:3 3;opacity:0.7;}`};function pa(e,t){Be(t,!0),Br(e,fa);let n=Q(t,`width`,3,480),r=Q(t,`height`,3,240),i=Q(t,`orientation`,3,`vertical`),a=Q(t,`selectedKeys`,19,()=>[]),o=Q(t,`scale`,3,`linear`),s=Q(t,`invertAxis`,3,!1),c={top:12,right:16,bottom:32,left:44};function l(e,t,n=5){if(!Number.isFinite(e)||!Number.isFinite(t)||e===t)return[Number.isFinite(t)?t:0];let r=(t-e)/Math.max(n-1,1),i=10**Math.floor(Math.log10(r)),a=r/i,o;o=a<1.5?1*i:a<3?2*i:a<7?5*i:10*i;let s=Math.floor(e/o)*o,c=Math.ceil(t/o)*o,l=[];for(let e=s;e<=c+o/2;e+=o)l.push(Number(e.toFixed(10)));return l}let u=e=>Array.from(new Set(e.filter(Number.isFinite).map(e=>Number(e.toFixed(10))))).sort((e,t)=>e-t);function d(e,t,n=5){return!Number.isFinite(e)||!Number.isFinite(t)||e>=t?l(e,t,n):u([e,...l(e,t,n).filter(n=>n>e&&n<t),t])}function f(...e){let t=1/0;for(let n of e)Number.isFinite(n)&&n>0&&n<t&&(t=n);return Number.isFinite(t)?t:1}function p(e,t){let n=e>0?e:1,r=t>n?t:n*10,i=Math.floor(Math.log10(n)),a=Math.ceil(Math.log10(r)),o=[];for(let e=i;e<=a;e++)o.push(Number((10**e).toFixed(10)));return o.length?o:[n]}function m(e,t){return!Number.isFinite(e)||!Number.isFinite(t)||e<=0||e>=t?p(e,t):u([e,...p(e,t).filter(n=>n>e&&n<t),t])}function h(e){return e&&Number.isFinite(e[0])&&Number.isFinite(e[1])&&e[0]<e[1]?e:null}function g(e){return e&&Number.isFinite(e[0])&&Number.isFinite(e[1])&&e[0]>0&&e[0]<e[1]?e:null}function _(e){return Number.isFinite(e)?Math.min(1,Math.max(0,e)):0}function v(e){return Math.abs(e)>=1e3?`${(e/1e3).toFixed(e%1e3==0?0:1)}k`:Number.isInteger(e)?String(e):e.toFixed(1)}function y(e,t){return`${e}--${t??`neutral`}`}function b(e,t,n,r,i,a,o=`y`){let s=e,c=t,l=e=>{e!==void 0&&Number.isFinite(e)&&(e<s&&(s=e),e>c&&(c=e))};for(let e of n??[])(e.axis??`y`)===o&&l(e.value);for(let e of r??[])l(e.from),l(e.to);i&&l(i.value);for(let e of a)l(e);return[s,c]}function x(e,t,n){let r=[];for(let t of e??[])Number.isFinite(t.value)&&r.push(t.label?`Référence: ${t.label} = ${t.value}`:`Référence: ${t.value}`);for(let e of t??[]){if(!Number.isFinite(e.from)||!Number.isFinite(e.to))continue;let t=Math.min(e.from,e.to),n=Math.max(e.from,e.to);r.push(e.label?`Bande: ${e.label} (${t}–${n})`:`Bande: ${t}–${n}`)}return n&&Number.isFinite(n.value)&&r.push(n.label?`Objectif: ${n.label} = ${n.value}`:`Objectif: ${n.value}`),r}let S=I(null),ee=F(()=>new Set(a())),te=F(()=>W(ee).size>0),ne=F(()=>typeof t.onSelect==`function`),re=F(()=>o()===`log`),ie=F(()=>W(re)?g(t.domain):h(t.domain)),ae=F(()=>t.goalLine&&Number.isFinite(t.goalLine.value)?t.goalLine:null),oe=F(()=>i()===`vertical`?`y`:`x`),C=F(()=>{let e=t.data.map(e=>e.value),i=t.data.flatMap(e=>[e.errorLow,e.errorHigh].filter(e=>e!==void 0&&Number.isFinite(e))),a,o;if(W(re)){let s=[...(t.referenceLines??[]).filter(e=>(e.axis??`y`)===W(oe)).map(e=>e.value),...(t.bands??[]).flatMap(e=>[e.from,e.to]),...W(ae)?[W(ae).value]:[],...i];W(ie)?(a=W(ie)[0],o=W(ie)[1]):(a=f(...e,...s),o=Math.max(a,...e.filter(e=>e>0),...s.filter(e=>e>0)));let l=W(ie)?m(a,o):p(a,o);return{ticks:l,domainMin:l[0],domainMax:l[l.length-1],plotWidth:Math.max(n()-c.left-c.right,1),plotHeight:Math.max(r()-c.top-c.bottom,1)}}a=W(ie)?W(ie)[0]:Math.min(0,...e),o=W(ie)?W(ie)[1]:Math.max(0,...e),W(ie)||([a,o]=b(a,o,t.referenceLines,t.bands,W(ae),i,W(oe)));let s=W(ie)?d(a,o,5):l(a,o,5);return{ticks:s,domainMin:s[0],domainMax:s[s.length-1],plotWidth:Math.max(n()-c.left-c.right,1),plotHeight:Math.max(r()-c.top-c.bottom,1)}}),se=F(()=>e=>{let{domainMin:t,domainMax:n}=W(C),r;if(W(re)){let i=Math.log10(t),a=Math.log10(n);r=a===i?0:(Math.log10(e>0?e:t)-i)/(a-i)}else r=n===t?0:(e-t)/(n-t);return _(s()?1-r:r)}),w=F(()=>W(re)?W(C).domainMin:Math.min(W(C).domainMax,Math.max(W(C).domainMin,0))),T=F(()=>{let{plotWidth:e,plotHeight:n}=W(C);if(t.data.length===0)return[];if(i()===`vertical`){let r=e/t.data.length,i=r*.62,a=e=>n*(1-W(se)(e)),o=a(W(w));return t.data.map((e,t)=>{let n=a(e.value),s=Math.min(n,o),l=Math.abs(o-n);return{x:c.left+r*t+(r-i)/2,y:c.top+s,width:i,height:Math.max(l,.5),cx:c.left+r*(t+.5),cy:c.top+n,datum:e,tone:e.tone??`category1`}})}let r=n/t.data.length,a=r*.62,o=t=>e*W(se)(t),s=o(W(w));return t.data.map((e,t)=>{let n=o(e.value),i=Math.min(n,s),l=Math.abs(n-s),u=c.top+r*t+(r-a)/2;return{x:c.left+i,y:u,width:Math.max(l,.5),height:a,cx:c.left+n,cy:c.top+r*(t+.5),datum:e,tone:e.tone??`category1`}})}),E=F(()=>i()===`vertical`),D=F(()=>e=>{let{plotWidth:t,plotHeight:n}=W(C);return W(E)?c.top+n*(1-W(se)(e)):c.left+t*W(se)(e)}),ce=F(()=>(t.bands??[]).filter(e=>Number.isFinite(e.from)&&Number.isFinite(e.to)).map((e,t)=>{let n=W(D)(e.from),r=W(D)(e.to);return W(E)?{key:t,x:c.left,y:Math.min(n,r),width:W(C).plotWidth,height:Math.max(Math.abs(r-n),.5),label:e.label,tone:e.tone}:{key:t,x:Math.min(n,r),y:c.top,width:Math.max(Math.abs(r-n),.5),height:W(C).plotHeight,label:e.label,tone:e.tone}})),le=F(()=>(t.referenceLines??[]).filter(e=>Number.isFinite(e.value)).map((e,t)=>{let n=W(D)(e.value);return W(E)?{key:t,x1:c.left,x2:c.left+W(C).plotWidth,y1:n,y2:n,label:e.label,tone:e.tone}:{key:t,x1:n,x2:n,y1:c.top,y2:c.top+W(C).plotHeight,label:e.label,tone:e.tone}})),ue=F(()=>W(ae)?{p:W(D)(W(ae).value),label:W(ae).label,value:W(ae).value}:null),de=F(()=>{let e=[];for(let t of W(T)){let{errorLow:n,errorHigh:r}=t.datum,i=n!==void 0&&Number.isFinite(n),a=r!==void 0&&Number.isFinite(r);if(!i&&!a)continue;let o=i?n:t.datum.value,s=a?r:t.datum.value,c=W(D)(o),l=W(D)(s);if(W(E)){let n=t.x+t.width/2;e.push({key:t.datum.label,stem:{x1:n,y1:c,x2:n,y2:l},capLow:{x1:n-4,y1:c,x2:n+4,y2:c},capHigh:{x1:n-4,y1:l,x2:n+4,y2:l}})}else{let n=t.y+t.height/2;e.push({key:t.datum.label,stem:{x1:c,y1:n,x2:l,y2:n},capLow:{x1:c,y1:n-4,x2:c,y2:n+4},capHigh:{x1:l,y1:n-4,x2:l,y2:n+4}})}}return e}),fe=F(()=>e=>{let t=W(T).find(t=>t.datum.label===String(e));return t?W(E)?t.cx-c.left:t.cy-c.top:null}),pe=F(()=>e=>Number.isFinite(e)?W(D)(e)-(W(E)?c.top:c.left):null),O=F(()=>e=>!e||W(E)?e:e.map(e=>{switch(e.kind){case`line`:return{...e,axis:e.axis===`x`?`y`:`x`};case`region`:return{...e,axis:e.axis===`x`?`y`:`x`};case`point`:return{...e,x:e.y,y:typeof e.x==`number`?e.x:NaN};case`label`:return{...e,x:e.y,y:typeof e.x==`number`?e.x:NaN};case`shape`:return{...e,points:e.points.map(e=>({x:e.y,y:typeof e.x==`number`?e.x:NaN}))}}})),me=F(()=>e=>W(E)?W(fe)(e):typeof e==`number`?W(pe)(e):null),he=F(()=>e=>W(E)?W(pe)(e):W(fe)(e)),ge=F(()=>bi(W(O)(t.annotations),{xScale:W(me),yScale:W(he),plotLeft:c.left,plotTop:c.top,plotWidth:W(C).plotWidth,plotHeight:W(C).plotHeight})),_e=F(()=>W(ge).filter(e=>e.kind===`region`)),ve=F(()=>W(ge).filter(e=>e.kind!==`region`)),ye=F(()=>Ci(t.dataLabels)),be=F(()=>W(ye).enabled?W(T).map(e=>{let t=wi(e.datum.value,W(ye),v),n=W(ye).position??`outside`,r=n===`inside`||n===`center`;if(W(E)){let n=e.cx,i=r?e.y+e.height/2:e.cy-6;return{key:e.datum.label,x:n,y:i,text:t,anchor:`middle`,baseline:r?`middle`:`auto`}}let i=e.cy,a=r?e.x+e.width/2:e.cx+4;return{key:e.datum.label,x:a,y:i,text:t,anchor:r?`middle`:`start`,baseline:`middle`}}):[]),xe=F(()=>[...t.data.map(e=>`${e.label}: ${e.value}`),...x(t.referenceLines,t.bands,W(ae)),...xi(t.annotations)]),Se=F(()=>{let{ticks:e,plotWidth:t,plotHeight:n}=W(C);return i()===`vertical`?e.map(e=>({value:e,x1:c.left,x2:c.left+t,y:c.top+n*(1-W(se)(e)),x:void 0,y1:void 0,y2:void 0})):e.map(e=>({value:e,x:c.left+t*W(se)(e),y1:c.top,y2:c.top+n,x1:void 0,x2:void 0,y:void 0}))}),Ce=F(()=>W(T).map(e=>e.datum.label));function we(e){t.onHoverKeyChange?.(e==null?null:W(Ce)[e]??null)}function Te(){L(S,null),we(null)}function Ee(e){let t=e.target;if(!(t instanceof Element)){L(S,null),we(null);return}let n=Number(t.getAttribute(`data-chart-index`)),r=Number.isInteger(n)?n:null;L(S,r,!0),we(r)}let De=F(()=>Di(t.hoverKey,W(S),W(Ce))),Oe=I(-1),ke=[],k=F(()=>(t.keyboardNav===!0||t.onSelectKey!==void 0)&&W(T).length>0);function Ae(e){L(Oe,e,!0),ke[e]?.focus(),we(e)}function A(e,n){let r=Oi(e.key,n,W(T).length);r&&(e.preventDefault(),r.kind===`move`?Ae(r.index):r.kind===`select`?t.onSelectKey?.(W(T)[n].datum.label):(L(Oe,-1),we(null),t.onSelectKey?.(null),e.currentTarget.blur()))}let je=()=>[`st-barChart`,t.class].filter(Boolean).join(` `);var Me=da(),Ne=R(Me),Pe=R(Ne),Fe=R(Pe),Ie=e=>{var t=br();X(z(t),17,()=>W(Se),e=>e.value,(e,t)=>{var n=ji(),r=z(n),i=B(r),a=R(i,!0);j(i),V(e=>{Z(r,`x1`,W(t).x1),Z(r,`x2`,W(t).x2),Z(r,`y1`,W(t).y),Z(r,`y2`,W(t).y),Z(i,`x`,c.left-6),Z(i,`y`,W(t).y),J(a,e)},[()=>v(W(t).value)]),q(e,n)}),q(e,t)},Le=e=>{var t=br();X(z(t),17,()=>W(Se),e=>e.value,(e,t)=>{var n=Mi(),i=z(n),a=B(i),o=R(a,!0);j(a),V(e=>{Z(i,`x1`,W(t).x),Z(i,`x2`,W(t).x),Z(i,`y1`,W(t).y1),Z(i,`y2`,W(t).y2),Z(a,`x`,W(t).x),Z(a,`y`,r()-c.bottom+16),J(o,e)},[()=>v(W(t).value)]),q(e,n)}),q(e,t)};Y(Fe,e=>{i()===`vertical`?e(Ie):e(Le,-1)});var Re=B(Fe),M=B(Re),ze=B(M);X(ze,19,()=>W(T),e=>e.datum.label,(e,t)=>{var n=br(),a=z(n),o=e=>{var n=Ni(),i=R(n,!0);j(n),V(()=>{Z(n,`x`,W(t).x+W(t).width/2),Z(n,`y`,r()-c.bottom+16),J(i,W(t).datum.label)}),q(e,n)},s=e=>{var n=Pi(),r=R(n,!0);j(n),V(()=>{Z(n,`x`,c.left-6),Z(n,`y`,W(t).y+W(t).height/2),J(r,W(t).datum.label)}),q(e,n)};Y(a,e=>{i()===`vertical`?e(o):e(s,-1)}),q(e,n)});var He=B(ze);X(He,17,()=>W(ce),e=>e.key,(e,t)=>{var n=Ii(),r=z(n),i=B(r),a=e=>{var n=Fi(),r=R(n,!0);j(n),V(()=>{Z(n,`x`,W(t).x+4),Z(n,`y`,W(t).y+11),J(r,W(t).label)}),q(e,n)};Y(i,e=>{W(t).label&&e(a)}),V(e=>{Xr(r,0,e,`svelte-14iupu9`),Z(r,`x`,W(t).x),Z(r,`y`,W(t).y),Z(r,`width`,W(t).width),Z(r,`height`,W(t).height)},[()=>`st-barChart__band ${y(`st-barChart__band`,W(t).tone)}`]),q(e,n)});var Ue=B(He);X(Ue,17,()=>W(le),e=>e.key,(e,t)=>{var n=Ri(),r=z(n),i=B(r),a=e=>{var n=Li(),r=R(n,!0);j(n),V(()=>{Z(n,`x`,W(E)?c.left+W(C).plotWidth-4:W(t).x1+4),Z(n,`y`,W(E)?W(t).y1-4:c.top+11),Z(n,`text-anchor`,W(E)?`end`:`start`),J(r,W(t).label)}),q(e,n)};Y(i,e=>{W(t).label&&e(a)}),V(e=>{Xr(r,0,e,`svelte-14iupu9`),Z(r,`x1`,W(t).x1),Z(r,`x2`,W(t).x2),Z(r,`y1`,W(t).y1),Z(r,`y2`,W(t).y2)},[()=>`st-barChart__refLine ${y(`st-barChart__refLine`,W(t).tone)}`]),q(e,n)});var We=B(Ue),Ge=e=>{var t=Vi();X(t,21,()=>W(_e),e=>e.key,(e,t)=>{var n=br(),r=z(n),i=e=>{var n=Bi(),r=z(n),i=B(r),a=e=>{var n=zi(),r=R(n,!0);j(n),V(()=>{Z(n,`x`,W(t).x+4),Z(n,`y`,W(t).y+11),J(r,W(t).label)}),q(e,n)};Y(i,e=>{W(t).label&&e(a)}),V(()=>{Z(r,`x`,W(t).x),Z(r,`y`,W(t).y),Z(r,`width`,W(t).width),Z(r,`height`,W(t).height)}),q(e,n)};Y(r,e=>{W(t).kind===`region`&&e(i)}),q(e,n)}),j(t),q(e,t)};Y(We,e=>{W(_e).length>0&&e(Ge)});var Ke=B(We);X(Ke,19,()=>W(T),e=>e.datum.label,(e,n,r)=>{let i=F(()=>W(ee).has(W(n).datum.label));var a=Hi();let o;V(()=>{o=Xr(a,0,`st-barChart__bar st-barChart__bar--${W(n).tone??``}`,`svelte-14iupu9`,o,{"st-barChart__bar--selected":W(i),"st-barChart__bar--dim":W(te)&&!W(i),"st-barChart__bar--interactive":W(ne)}),Z(a,`x`,W(n).x),Z(a,`y`,W(n).y),Z(a,`width`,W(n).width),Z(a,`height`,W(n).height),Z(a,`data-chart-index`,W(r))}),dr(`click`,a,function(...e){(W(ne)?()=>t.onSelect?.(W(n).datum.label):void 0)?.apply(this,e)}),q(e,a)});var qe=B(Ke);X(qe,17,()=>W(de),e=>e.key,(e,t)=>{var n=Ui(),r=R(n),i=B(r),a=B(i);j(n),V(()=>{Z(r,`x1`,W(t).stem.x1),Z(r,`y1`,W(t).stem.y1),Z(r,`x2`,W(t).stem.x2),Z(r,`y2`,W(t).stem.y2),Z(i,`x1`,W(t).capLow.x1),Z(i,`y1`,W(t).capLow.y1),Z(i,`x2`,W(t).capLow.x2),Z(i,`y2`,W(t).capLow.y2),Z(a,`x1`,W(t).capHigh.x1),Z(a,`y1`,W(t).capHigh.y1),Z(a,`x2`,W(t).capHigh.x2),Z(a,`y2`,W(t).capHigh.y2)}),q(e,n)});var Je=B(qe),Ye=e=>{var t=Ki(),n=z(t),r=e=>{var t=Wi();V(()=>{Z(t,`x1`,c.left),Z(t,`x2`,c.left+W(C).plotWidth),Z(t,`y1`,W(ue).p),Z(t,`y2`,W(ue).p)}),q(e,t)},i=e=>{var t=Gi();V(()=>{Z(t,`x1`,W(ue).p),Z(t,`x2`,W(ue).p),Z(t,`y1`,c.top),Z(t,`y2`,c.top+W(C).plotHeight)}),q(e,t)};Y(n,e=>{W(E)?e(r):e(i,-1)});var a=B(n),o=R(a,!0);j(a),V(()=>{Z(a,`x`,W(E)?c.left+W(C).plotWidth-4:W(ue).p+4),Z(a,`y`,W(E)?W(ue).p-4:c.top+11),Z(a,`text-anchor`,W(E)?`end`:`start`),J(o,W(ue).label??`Objectif ${W(ue).value}`)}),q(e,t)};Y(Je,e=>{W(ue)&&e(Ye)});var N=B(Je),Xe=e=>{var t=ea();X(t,21,()=>W(ve),e=>e.key,(e,t)=>{var n=br(),r=z(n),i=e=>{var n=Ji(),r=z(n),i=B(r),a=e=>{var n=qi(),r=R(n,!0);j(n),V(()=>{Z(n,`x`,W(t).axis===`x`?W(t).x1+4:c.left+W(C).plotWidth-4),Z(n,`y`,W(t).axis===`x`?c.top+11:W(t).y1-4),Z(n,`text-anchor`,W(t).axis===`x`?`start`:`end`),J(r,W(t).label)}),q(e,n)};Y(i,e=>{W(t).label&&e(a)}),V(()=>{Z(r,`x1`,W(t).x1),Z(r,`y1`,W(t).y1),Z(r,`x2`,W(t).x2),Z(r,`y2`,W(t).y2)}),q(e,n)},a=e=>{var n=Xi(),r=z(n),i=B(r),a=e=>{var n=Yi(),r=R(n,!0);j(n),V(()=>{Z(n,`x`,W(t).labelX),Z(n,`y`,W(t).labelY),J(r,W(t).label)}),q(e,n)};Y(i,e=>{W(t).label&&e(a)}),V(e=>Z(r,`points`,e),[()=>Si(W(t).points)]),q(e,n)},o=e=>{var n=Qi(),r=z(n),i=B(r),a=e=>{var n=Zi(),r=R(n,!0);j(n),V(()=>{Z(n,`x`,W(t).x),Z(n,`y`,W(t).y-8),J(r,W(t).label)}),q(e,n)};Y(i,e=>{W(t).label&&e(a)}),V(()=>{Z(r,`cx`,W(t).x),Z(r,`cy`,W(t).y)}),q(e,n)},s=e=>{var n=$i(),r=R(n,!0);j(n),V(()=>{Z(n,`x`,W(t).x),Z(n,`y`,W(t).y),Z(n,`text-anchor`,W(t).anchor),J(r,W(t).text)}),q(e,n)};Y(r,e=>{W(t).kind===`line`?e(i):W(t).kind===`shape`?e(a,1):W(t).kind===`point`?e(o,2):e(s,-1)}),q(e,n)}),j(t),q(e,t)};Y(N,e=>{W(ve).length>0&&e(Xe)});var Ze=B(N),Qe=e=>{var t=na();X(t,21,()=>W(be),e=>e.key,(e,t)=>{var n=ta(),r=R(n,!0);j(n),V(()=>{Z(n,`x`,W(t).x),Z(n,`y`,W(t).y),Z(n,`text-anchor`,W(t).anchor),Z(n,`dominant-baseline`,W(t).baseline),J(r,W(t).text)}),q(e,n)}),j(t),q(e,t)};Y(Ze,e=>{W(be).length>0&&e(Qe)});var $e=B(Ze),et=e=>{let t=F(()=>W(T)[W(De)]);var n=aa(),r=R(n),i=e=>{var n=ra();V(()=>{Z(n,`x1`,W(t).cx),Z(n,`x2`,W(t).cx),Z(n,`y1`,c.top),Z(n,`y2`,c.top+W(C).plotHeight)}),q(e,n)},a=e=>{var n=ia();V(()=>{Z(n,`x1`,c.left),Z(n,`x2`,c.left+W(C).plotWidth),Z(n,`y1`,W(t).cy),Z(n,`y2`,W(t).cy)}),q(e,n)};Y(r,e=>{W(E)?e(i):e(a,-1)}),j(n),q(e,n)};Y($e,e=>{W(De)>=0&&W(T)[W(De)]&&e(et)}),j(Pe);var tt=B(Pe,2),P=e=>{var i=sa();X(i,23,()=>W(T),e=>e.datum.label,(e,t,n)=>{var r=oa();oi(r,(e,t)=>ke[t]=e,e=>ke?.[e],()=>[W(n)]),V((e,n)=>{Z(r,`x`,W(t).x),Z(r,`y`,W(t).y),Z(r,`width`,W(t).width),Z(r,`height`,W(t).height),Z(r,`tabindex`,e),Z(r,`aria-label`,n)},[()=>ki(W(n),W(Oe),W(T).length),()=>Ai(W(t).datum.label,W(t).datum.value)]),dr(`keydown`,r,e=>A(e,W(n))),ur(`focus`,r,()=>{L(Oe,W(n),!0),we(W(n))}),q(e,r)}),j(i),V(()=>{Z(i,`viewBox`,`0 0 ${n()??``} ${r()??``}`),Z(i,`aria-label`,`${t.label} — points de données`)}),q(e,i)};Y(tt,e=>{W(k)&&e(P)}),j(Ne);var nt=B(Ne,2),rt=e=>{var n=la();X(n,21,()=>W(T),e=>e.datum.label,(e,n)=>{let r=F(()=>W(ee).has(W(n).datum.label));var i=ca();let a;var o=B(R(i));j(i),V(()=>{a=Xr(i,1,`st-barChart__filterChip st-barChart__filterChip--${W(n).tone??``}`,`svelte-14iupu9`,a,{"st-barChart__filterChip--selected":W(r)}),Z(i,`aria-pressed`,W(r)),J(o,` ${W(n).datum.label??``}: ${W(n).datum.value??``}`)}),dr(`click`,i,()=>t.onSelect?.(W(n).datum.label)),q(e,i)}),j(n),V(()=>Z(n,`aria-label`,`Filtrer par ${t.label}`)),q(e,n)};Y(nt,e=>{W(ne)&&e(rt)});var it=B(nt,2);vi(it,{get label(){return t.label},get items(){return W(xe)}});var at=B(it,2),ot=e=>{let t=F(()=>W(T)[W(De)]);var i=ua(),a=R(i),o=R(a,!0);j(a);var s=B(a,2),c=R(s,!0);j(s),j(i),V(()=>{Qr(i,`left: ${W(t).cx/n()*100}%; top: ${W(t).cy/r()*100}%`),J(o,W(t).datum.label),J(c,W(t).datum.value)}),q(e,i)};Y(at,e=>{W(De)>=0&&W(T)[W(De)]&&e(ot)}),j(Me),V(e=>{Xr(Me,1,e,`svelte-14iupu9`),Z(Ne,`aria-label`,t.label),Z(Pe,`viewBox`,`0 0 ${n()??``} ${r()??``}`),Z(Re,`x1`,c.left),Z(Re,`x2`,c.left),Z(Re,`y1`,c.top),Z(Re,`y2`,r()-c.bottom),Z(M,`x1`,c.left),Z(M,`x2`,n()-c.right),Z(M,`y1`,r()-c.bottom),Z(M,`y2`,r()-c.bottom)},[()=>Wr(je())]),dr(`pointermove`,Ne,Ee),ur(`pointerleave`,Ne,Te),q(e,Me),Ve()}fr([`pointermove`,`click`,`keydown`]);function ma(e,t){return{code:`engine-load-failed`,path:``,message:`the ${e} engine failed to load: ${t}`,severity:`error`,source:`host`,detail:{chunk:e,cause:t}}}function ha(e,t){return{code:`semantic-invalid`,path:e,message:t,severity:`error`,source:`catalog`}}function ga({series:e,referenceLines:t}){let n=new Set,r=[];for(let[t,i]of e.entries()){let e=`/root/series/${t}`;n.has(i.id)&&r.push(ha(`${e}/id`,`series id must be unique`)),n.add(i.id);let a=-1/0;for(let[t,{x:n}]of i.data.entries())n<=a&&r.push(ha(`${e}/data/${t}/x`,`timestamps must increase strictly within a series`)),a=n}for(let[e,n]of(t??[]).entries())n.axis===`x`&&(!Number.isInteger(n.value)||Math.abs(n.value)>864e13)&&r.push(ha(`/root/referenceLines/${e}/value`,`x-axis references require whole UTC epoch milliseconds`));return r}var _a=1048576,va=`document`;function ya(e){return e.replace(/~/g,`~0`).replace(/\//g,`~1`)}function ba(e,t){return`${e}/${ya(t)}`}function xa(e){let t;try{let n=JSON.stringify(e);if(typeof n!=`string`)return{ok:!1,kind:`not-json-value`,message:`the envelope is not a JSON value (§4.3)`};t=n}catch(e){return{ok:!1,kind:`not-serializable`,message:`the envelope is not JSON-serializable (§4.3): ${e instanceof Error?e.message:String(e)}`}}return{ok:!0,value:JSON.parse(t),text:t}}function Sa(e){let t=0;for(let n=0;n<e.length;n+=1){let r=e.charCodeAt(n);r<=127?t+=1:r<=2047?t+=2:r>=55296&&r<=56319&&e.charCodeAt(n+1)>=56320&&e.charCodeAt(n+1)<=57343?(t+=4,n+=1):t+=3}return t}function Ca(e){let t=/^([0-9]+)\.([0-9]+)$/.exec(e);if(t!=null)return{major:Number(t[1]),minor:Number(t[2])}}function wa(e,t){return e.map(e=>{let n=`${t}${e.pointer}`;return e.keyword===`required`&&e.missingProperty!==void 0?n=ba(n,e.missingProperty):(e.keyword===`unevaluatedProperties`||e.keyword===`additionalProperties`)&&e.additionalProperty!==void 0&&(n=ba(n,e.additionalProperty)),{code:`schema-violation`,path:n,message:e.message,severity:`error`,source:`catalog`,detail:{keyword:e.keyword}}})}function Ta(e){let{catalog:t,structure:n,ports:r}=e;return{validate(e){let i=xa(e);if(!i.ok)return[{code:`schema-violation`,path:``,message:i.message,severity:`error`,source:`catalog`}];let a=i.text,o=Sa(a);if(o>1048576)return[{code:`payload-too-large`,path:``,message:`the envelope is ${o} UTF-8 bytes, over the ${_a}-byte budget (§4.3 item 3)`,severity:`error`,source:`catalog`,detail:{limitBytes:_a,actualBytes:o}}];let s=n.validateEnvelope(i.value);if(s.length>0)return wa(s,``);let c=i.value,l=c.catalogId;if(l!==void 0&&l!==t.catalogId)return[{code:`schema-violation`,path:`/catalogId`,message:`the envelope must name its catalogue (${String(t.catalogId)})`,severity:`error`,source:`catalog`,detail:{expected:t.catalogId,found:l}}];if(c.mode===`preview`)return[{code:`unsupported-mode`,path:`/mode`,message:`mode "preview" is reserved and not rendered by this catalogue (§10.3)`,severity:`error`,source:`catalog`,detail:{mode:`preview`}}];let u=c.root,d=u.component;if(typeof d!=`string`||!(d in t.components))return[{code:`unknown-component`,path:`/root/component`,message:`no catalogued component is named ${String(d)}`,severity:`error`,source:`catalog`,detail:{component:d}}];let f=t.components[d];if(f===void 0)return[{code:`unknown-component`,path:`/root/component`,message:`no catalogued component is named ${d}`,severity:`error`,source:`catalog`,detail:{component:d}}];let p=f[`x-sentropic`];if(p?.status===`unknown`)return[{code:`component-unavailable`,path:`/root/component`,message:`${d} is catalogued as a placeholder (x-sentropic.status "unknown") and cannot render`,severity:`error`,source:`catalog`,detail:{component:d}}];let m=c.contract,h=p?.contract;if(typeof h!=`string`)return[{code:`schema-violation`,path:`/root/component`,message:`the catalogued entry for ${d} declares no x-sentropic contract`,severity:`error`,source:`catalog`}];let g=Ca(h),_=typeof m==`string`?Ca(m):void 0;if(g===void 0||_===void 0)return[{code:`schema-violation`,path:`/contract`,message:`contract versions are "major.minor" strings (§4.4): envelope ${String(m)}, entry ${h}`,severity:`error`,source:`catalog`}];if(_.major!==g.major||_.minor>g.minor)return[{code:`unsupported-contract`,path:`/contract`,message:`the envelope targets contract ${String(m)} but ${d} is at ${h} (§4.4: an envelope may be older, never newer)`,severity:`error`,source:`catalog`,detail:{expected:h,found:m}}];let v=n.validateComponent(d,u);if(v.length>0)return wa(v,`/root`);if(d===`TimeSeriesChart`)return ga(u);let y=p?.engine;if(typeof y!=`string`||!y.startsWith(`lazy:`))return[];let b=y.slice(5),x=r?.[b],S=`/root/${va}`;if(x===void 0)return[{code:`host-capability-missing`,path:S,message:`the host did not inject the ${b} semantic port (engine ${y}); the owning runtime validates this payload (§4.3 item 2)`,severity:`error`,source:`host`,detail:{chunk:b,engine:y}}];let ee;try{ee=x.validate(u[va])}catch(e){return[{...ma(b,e instanceof Error?e.message:String(e)),path:S}]}return ee.map(e=>({code:e.severity===`warning`?e.code:`semantic-invalid`,path:`${S}${e.pointer??``}`,message:e.message,severity:e.severity,source:x.source,detail:{code:e.code}}))}}}var Ea={$defs:{CatalogComponentCommon:{properties:{weight:{description:`The relative weight of this component within a Row or Column. This is similar to the CSS 'flex-grow' property. Note: this may ONLY be set when the component is a direct descendant of a Row or Column.`,type:`number`}},type:`object`},DecisionDossierDocument:{$defs:{amendmentStep:{additionalProperties:!1,properties:{at:{type:`string`},author:{type:`string`},summary:{type:`string`}},required:[`at`,`author`,`summary`],type:`object`},amendmentTraceNode:{additionalProperties:!1,properties:{id:{type:`string`},kind:{const:`amendmentTrace`},steps:{items:{$ref:`#/$defs/DecisionDossierDocument/$defs/amendmentStep`},type:`array`},targetRef:{type:`string`}},required:[`id`,`kind`,`steps`,`targetRef`],type:`object`},comprehensionEvidence:{additionalProperties:!1,properties:{dossierHash:{type:`string`},signature:{type:`string`},subject:{type:`string`}},required:[`dossierHash`,`subject`],type:`object`},diagramNode:{additionalProperties:!1,allOf:[{oneOf:[{required:[`source`]},{required:[`sourceRef`]}]},{not:{allOf:[{required:[`source`]},{not:{required:[`syntax`]}}]}},{not:{allOf:[{required:[`source`]},{required:[`renderComponent`]}]}},{not:{allOf:[{required:[`sourceRef`]},{not:{required:[`renderComponent`]}}]}},{not:{allOf:[{required:[`sourceRef`]},{required:[`syntax`]}]}},{not:{allOf:[{required:[`sourceRef`]},{required:[`scene`]}]}}],properties:{alt:{pattern:`^[\\s\\S]*\\S[\\s\\S]*$`,type:`string`},id:{type:`string`},kind:{const:`diagram`},renderComponent:{pattern:`^[A-Za-z][A-Za-z0-9-]*$`,type:`string`},scene:{description:`diagram-core SemanticDocument, profile generic@1, without views, geometry or layout hints. Opaque JSON until the design-system publishes its authoritative schema; no Focus-specific scene model.`,type:`object`},source:{pattern:`^[\\s\\S]*\\S[\\s\\S]*$`,type:`string`},sourceRef:{pattern:`^[A-Za-z][A-Za-z0-9+.-]*:\\S+$`,type:`string`},syntax:{enum:[`mermaid`,`plantuml`]},targetRef:{type:`string`}},required:[`alt`,`id`,`kind`,`targetRef`],type:`object`},glossaryEntry:{additionalProperties:!1,properties:{definition:{type:`string`},term:{type:`string`}},required:[`definition`,`term`],type:`object`},interaction:{additionalProperties:!1,properties:{enabled:{const:!1},label:{type:`string`},name:{type:`string`},targetRef:{type:`string`}},required:[`enabled`,`label`,`name`,`targetRef`],type:`object`},optionNode:{additionalProperties:!1,properties:{annotation:{enum:[`accept`,`comment`,`none`,`reject`]},annotationComment:{type:`string`},body:{type:`string`},consequence:{type:`string`},id:{type:`string`},kind:{const:`option`},label:{type:`string`},targetRef:{type:`string`}},required:[`annotation`,`id`,`kind`,`label`,`targetRef`],type:`object`},optionSetNode:{additionalProperties:!1,properties:{id:{type:`string`},kind:{const:`optionSet`},options:{items:{$ref:`#/$defs/DecisionDossierDocument/$defs/optionNode`},type:`array`},questionId:{type:`string`},targetRef:{type:`string`},title:{type:`string`}},required:[`id`,`kind`,`options`,`targetRef`],type:`object`},outcomeNode:{additionalProperties:!1,properties:{id:{type:`string`},kind:{const:`outcome`},modality:{enum:[`amendment`,`comment`,`decision`,`orientation`]},questionId:{type:`string`},statement:{type:`string`},targetRef:{type:`string`}},required:[`id`,`kind`,`modality`,`statement`,`targetRef`],type:`object`},proseNode:{additionalProperties:!1,properties:{completionCriterion:{pattern:`^[\\s\\S]*\\S[\\s\\S]*$`,type:`string`},id:{type:`string`},inputs:{items:{$ref:`#/$defs/DecisionDossierDocument/$defs/sectionInput`},type:`array`},kind:{const:`prose`},markdown:{type:`string`},questionId:{type:`string`},targetRef:{type:`string`}},required:[`id`,`kind`,`markdown`,`targetRef`],type:`object`},provenance:{additionalProperties:!1,properties:{comprehensionEvidence:{$ref:`#/$defs/DecisionDossierDocument/$defs/comprehensionEvidence`},readAt:{type:`string`},source:{type:`string`}},required:[`readAt`,`source`],type:`object`},questionNode:{additionalProperties:!1,properties:{answer:{type:`string`},completionCriterion:{pattern:`^[\\s\\S]*\\S[\\s\\S]*$`,type:`string`},context:{type:`string`},id:{type:`string`},inputs:{items:{$ref:`#/$defs/DecisionDossierDocument/$defs/sectionInput`},type:`array`},kind:{const:`question`},question:{type:`string`},readingTimeMinutes:{type:`number`},recommendedAnswer:{type:`string`},recommendedOptionId:{type:`string`},state:{enum:[`answered`,`open`,`validated`]},targetRef:{type:`string`}},required:[`id`,`kind`,`question`,`state`,`targetRef`],type:`object`},readability:{additionalProperties:!1,properties:{glossary:{items:{$ref:`#/$defs/DecisionDossierDocument/$defs/glossaryEntry`},type:`array`},noOwnerRequest:{type:`boolean`},ownerRequestQuote:{type:`string`},readingBudgetMinutes:{type:`number`},stakes:{type:`string`},stakesLevel:{enum:[`high`,`low`,`medium`]}},type:`object`},section:{oneOf:[{$ref:`#/$defs/DecisionDossierDocument/$defs/proseNode`},{$ref:`#/$defs/DecisionDossierDocument/$defs/questionNode`},{$ref:`#/$defs/DecisionDossierDocument/$defs/optionSetNode`},{$ref:`#/$defs/DecisionDossierDocument/$defs/outcomeNode`},{$ref:`#/$defs/DecisionDossierDocument/$defs/amendmentTraceNode`},{$ref:`#/$defs/DecisionDossierDocument/$defs/diagramNode`}]},sectionInput:{additionalProperties:!1,properties:{kind:{pattern:`^[\\s\\S]*\\S[\\s\\S]*$`,type:`string`},label:{pattern:`^[\\s\\S]*\\S[\\s\\S]*$`,type:`string`},ref:{pattern:`^[\\s\\S]*\\S[\\s\\S]*$`,type:`string`}},required:[`kind`,`ref`],type:`object`}},$schema:`https://json-schema.org/draft/2020-12/schema`,additionalProperties:!1,description:`Read-only decision-dossier snapshot published by @sentropic/focus. Closed: unknown fields refuse. Snapshot interactions are disabled metadata (enabled:false); live decisions, signatures and amendments require separately qualified runtime capabilities.`,properties:{amendmentTrace:{items:{$ref:`#/$defs/DecisionDossierDocument/$defs/amendmentStep`},type:`array`},cursor:{type:`string`},hash:{type:`string`},interactions:{items:{$ref:`#/$defs/DecisionDossierDocument/$defs/interaction`},type:`array`},provenance:{$ref:`#/$defs/DecisionDossierDocument/$defs/provenance`},readability:{$ref:`#/$defs/DecisionDossierDocument/$defs/readability`},ref:{type:`string`},sections:{items:{$ref:`#/$defs/DecisionDossierDocument/$defs/section`},type:`array`},subject:{type:`string`},title:{type:`string`}},required:[`amendmentTrace`,`cursor`,`hash`,`interactions`,`provenance`,`ref`,`sections`,`subject`,`title`],title:`DecisionDossierDocument`,type:`object`},anyComponent:{oneOf:[{$ref:`#/components/BarChart`},{$ref:`#/components/BpmnCanvas`},{$ref:`#/components/DecisionDossier`},{$ref:`#/components/TimeSeriesChart`}]},theme:{properties:{themeId:{type:`string`}},type:`object`}},$id:`https://design-system.sent-tech.ca/catalogs/elements/v1/catalog.json`,$schema:`https://json-schema.org/draft/2020-12/schema`,catalogId:`https://design-system.sent-tech.ca/catalogs/elements/v1/catalog.json`,components:JSON.parse(`{"BarChart":{"allOf":[{"$ref":"https://a2ui.org/specification/v0_9_1/common_types.json#/$defs/ComponentCommon"},{"$ref":"#/$defs/CatalogComponentCommon"},{"properties":{"accessibility":{"additionalProperties":false,"properties":{"description":{"type":"string"},"label":{"type":"string"}},"type":"object"},"annotations":{"description":"Annotation overlay in data space (see ChartAnnotation).","items":{"anyOf":[{"additionalProperties":false,"properties":{"kind":{"const":"point","type":"string"},"label":{"type":"string"},"marker":{"description":"Marker glyph for a point annotation.","enum":["circle","diamond","square"],"type":"string"},"x":{"type":["number","string"]},"y":{"type":"number"}},"required":["kind","x","y"],"type":"object"},{"additionalProperties":false,"properties":{"anchor":{"enum":["end","middle","start"],"type":"string"},"kind":{"const":"label","type":"string"},"text":{"type":"string"},"x":{"type":["number","string"]},"y":{"type":"number"}},"required":["kind","text","x","y"],"type":"object"},{"additionalProperties":false,"properties":{"axis":{"enum":["x","y"],"type":"string"},"kind":{"const":"line","type":"string"},"label":{"type":"string"},"value":{"type":"number"}},"required":["axis","kind","value"],"type":"object"},{"additionalProperties":false,"properties":{"axis":{"enum":["x","y"],"type":"string"},"from":{"type":"number"},"kind":{"const":"region","type":"string"},"label":{"type":"string"},"to":{"type":"number"}},"required":["axis","from","kind","to"],"type":"object"},{"additionalProperties":false,"properties":{"kind":{"const":"shape","type":"string"},"label":{"type":"string"},"points":{"items":{"additionalProperties":false,"properties":{"x":{"type":["number","string"]},"y":{"type":"number"}},"required":["x","y"],"type":"object"},"type":"array"}},"required":["kind","points"],"type":"object"}],"description":"Annotation overlay in data space, discriminated on \`kind\`. The \`x\` coordinate is categorical for this chart: it matches a bar by its \`label\` and is ignored otherwise; \`y\` and every value-axis number are numeric."},"type":"array"},"bands":{"description":"Shaded value-axis bands.","items":{"additionalProperties":false,"description":"A shaded band between two value-axis positions.","properties":{"from":{"description":"Band start in value-axis units.","type":"number"},"label":{"description":"Human-readable band label.","type":"string"},"to":{"description":"Band end in value-axis units.","type":"number"},"tone":{"description":"Feedback-token tone for the band.","enum":["error","info","neutral","success","warning"],"type":"string"}},"required":["from","to"],"type":"object"},"type":"array"},"component":{"const":"BarChart"},"data":{"description":"The bars, in draw order. Required.","items":{"additionalProperties":false,"description":"One bar: its label is also its selection key.","properties":{"errorHigh":{"description":"Upper error-bar extent (value-axis units). Drawn only when finite.","type":"number"},"errorLow":{"description":"Lower error-bar extent (value-axis units). Drawn only when finite.","type":"number"},"label":{"description":"The bar's category label; also its key for selection and hover.","type":"string"},"tone":{"description":"Explicit categorical tone; the palette default when absent.","enum":["category1","category2","category3","category4","category5","category6","category7","category8"],"type":"string"},"value":{"description":"The bar's value (value-axis units).","type":"number"}},"required":["label","value"],"type":"object"},"type":"array"},"dataLabels":{"anyOf":[{"type":"boolean"},{"additionalProperties":false,"properties":{"position":{"description":"Placement hint; the chart's default when absent.","enum":["auto","center","inside","outside","top"],"type":"string"}},"type":"object"}],"description":"Per-bar value labels; absent or false renders none."},"domain":{"description":"Fixed value-axis domain [min, max]; the auto data range when absent.","items":{"type":"number"},"maxItems":2,"minItems":2,"type":"array"},"goalLine":{"additionalProperties":false,"description":"A single goal line, emphasised above the bars.","properties":{"label":{"description":"Human-readable goal label.","type":"string"},"value":{"description":"Position of the goal line in value-axis units.","type":"number"}},"required":["value"],"type":"object"},"height":{"description":"Fixed pixel height; the component's default when absent.","type":"number"},"hoverKey":{"description":"Controlled synchronised hover key (a bar's label, or null for none).","type":["null","string"]},"invertAxis":{"description":"Inverts the value axis (high values toward the origin). Default false.","type":"boolean"},"keyboardNav":{"description":"Keyboard navigation of the data points (roving tabindex).","type":"boolean"},"label":{"description":"Human-readable chart label (also the accessible name). Required.","type":"string"},"orientation":{"description":"Bar direction; \\"vertical\\" by default.","enum":["horizontal","vertical"],"type":"string"},"referenceLines":{"description":"Reference lines on the value axis.","items":{"additionalProperties":false,"description":"A reference line on one axis (default axis: \\"y\\").","properties":{"axis":{"description":"Which axis the line spans; \\"y\\" by default.","enum":["x","y"],"type":"string"},"label":{"description":"Human-readable line label.","type":"string"},"tone":{"description":"Feedback-token tone for the line.","enum":["error","info","neutral","success","warning"],"type":"string"},"value":{"description":"Position of the line in value-axis units.","type":"number"}},"required":["value"],"type":"object"},"type":"array"},"scale":{"description":"Value-axis scale; \\"linear\\" by default, \\"log\\" needs positive values.","enum":["linear","log"],"type":"string"},"selectedKeys":{"description":"Keys of the currently selected bars (a bar's key is its label). Controlled.","items":{"type":"string"},"type":"array"},"showLegend":{"description":"Accepted for cross-chart parity; BarChart has no separate legend surface.","type":"boolean"},"width":{"description":"Fixed pixel width; the container's when absent.","type":"number"}},"required":["component","data","label"],"type":"object"}],"type":"object","unevaluatedProperties":false,"x-sentropic":{"contract":"1.0","element":"st-bar-chart","engine":"core","events":["select"],"example":{"component":"BarChart","data":[{"label":"Q1","value":12},{"label":"Q2","value":18},{"label":"Q3","value":9}],"dataLabels":true,"id":"root","label":"Revenue (M€)","referenceLines":[{"label":"Target","value":15}]},"fallback":"text","parity":{"angular":{"comparedProps":17,"file":"packages/components-angular/src/BarChart.ts","status":"match","type":"BarChartProps"},"react":{"comparedProps":17,"file":"packages/components-react/src/BarChart.tsx","note":"Own members after subtracting React.HTMLAttributes<HTMLDivElement>; className is React's name for the class style hook.","status":"match","type":"BarChartProps"},"svelte":{"file":"packages/components-svelte/src/lib/BarChart.svelte","note":"Reference pilot (§3.1); not mechanically generatable (Svelte file), mirrored here member for member.","status":"source-of-truth","type":"BarChartProps"},"vue":{"comparedProps":17,"file":"packages/components-vue/src/BarChart.vue","status":"match","type":"BarChartProps"}},"schema":"https://design-system.sent-tech.ca/catalogs/elements/v1/components/BarChart.json"}},"BpmnCanvas":{"allOf":[{"$ref":"https://a2ui.org/specification/v0_9_1/common_types.json#/$defs/ComponentCommon"},{"$ref":"#/$defs/CatalogComponentCommon"},{"properties":{"accessibility":{"additionalProperties":false,"properties":{"description":{"type":"string"},"label":{"type":"string"}},"type":"object"},"component":{"const":"BpmnCanvas"},"document":{"additionalProperties":{},"description":"The F1 document to render: a structural envelope the engine's hydrate validates.","properties":{"$type":{"description":"F1 type discriminator, e.g. \\"bpmn:Definitions\\".","type":"string"}},"required":["$type"],"type":"object"}},"required":["component","document"],"type":"object"}],"type":"object","unevaluatedProperties":false,"x-sentropic":{"contract":"1.0","element":"st-bpmn-canvas","engine":"lazy:bpmn-canvas","events":[],"example":{"component":"BpmnCanvas","document":{"$type":"bpmn:Definitions","id":"definitions-1","targetNamespace":"https://example.com/bpmn"},"id":"root"},"fallback":"svg","parity":{"angular":{"file":"packages/components-angular","note":"No counterpart in this framework package (§5.1: components with no framework counterpart record that fact).","status":"no-counterpart"},"react":{"file":"packages/components-react","note":"No counterpart in this framework package (§5.1: components with no framework counterpart record that fact).","status":"no-counterpart"},"svelte":{"file":"packages/components-svelte","note":"No counterpart in this framework package (§5.1: components with no framework counterpart record that fact).","status":"no-counterpart"},"vue":{"file":"packages/components-vue","note":"No counterpart in this framework package (§5.1: components with no framework counterpart record that fact).","status":"no-counterpart"}},"schema":"https://design-system.sent-tech.ca/catalogs/elements/v1/components/BpmnCanvas.json","semantic":{"runtimePackage":"@sentropic/bpmn-canvas","source":"bpmn-canvas"}}},"DecisionDossier":{"allOf":[{"$ref":"https://a2ui.org/specification/v0_9_1/common_types.json#/$defs/ComponentCommon"},{"$ref":"#/$defs/CatalogComponentCommon"},{"properties":{"accessibility":{"additionalProperties":false,"properties":{"description":{"type":"string"},"label":{"type":"string"}},"type":"object"},"component":{"const":"DecisionDossier"},"document":{"$ref":"#/$defs/DecisionDossierDocument"}},"required":["component","document"],"type":"object"}],"type":"object","unevaluatedProperties":false,"x-sentropic":{"contract":"1.0","element":"st-decision-dossier","engine":"lazy:focus","events":["choose-option"],"example":{"component":"DecisionDossier","document":{"amendmentTrace":[],"cursor":"2026-10-30T10:00:00Z","hash":"b7d3f0c9","interactions":[],"provenance":{"readAt":"2026-10-30T10:00:00Z","source":"track"},"ref":"decision-1","sections":[{"id":"q1","kind":"question","question":"Which rendering contract do we adopt?","state":"open","targetRef":"decision-1"},{"id":"options-1","kind":"optionSet","options":[{"annotation":"none","id":"opt-json","kind":"option","label":"Adopt the JSON render standard","targetRef":"q1"},{"annotation":"none","id":"opt-status-quo","kind":"option","label":"Keep the status quo","targetRef":"q1"}],"targetRef":"q1","title":"Options"}],"subject":"Adopt the JSON render standard for design-system rendering","title":"Decision: adopt the JSON render standard"},"id":"root"},"fallback":"text","parity":{"angular":{"file":"packages/components-angular","note":"No counterpart in this framework package (§5.1: components with no framework counterpart record that fact).","status":"no-counterpart"},"react":{"file":"packages/components-react","note":"No counterpart in this framework package (§5.1: components with no framework counterpart record that fact).","status":"no-counterpart"},"svelte":{"file":"packages/components-svelte","note":"No counterpart in this framework package (§5.1: components with no framework counterpart record that fact).","status":"no-counterpart"},"vue":{"file":"packages/components-vue","note":"No counterpart in this framework package (§5.1: components with no framework counterpart record that fact).","status":"no-counterpart"}},"schema":"https://design-system.sent-tech.ca/catalogs/elements/v1/components/DecisionDossier.json","semantic":{"runtimePackage":"@sentropic/focus@0.6.0","schemaId":"urn:sentropic:focus:DecisionDossierDocument:1.1.0","schemaSubpath":"schemas/decision-dossier-document.v1.schema.json","sha256":"f4b5247f025e99081c20fd9a8b0ed98b32a061c4a98597010be0264e5e564c6c","source":"focus"}}},"TimeSeriesChart":{"allOf":[{"$ref":"https://a2ui.org/specification/v0_9_1/common_types.json#/$defs/ComponentCommon"},{"$ref":"#/$defs/CatalogComponentCommon"},{"properties":{"accessibility":{"additionalProperties":false,"properties":{"description":{"type":"string"},"label":{"type":"string"}},"type":"object"},"bands":{"description":"Bands in value-axis units, applied to each series.","items":{"additionalProperties":false,"description":"A shaded band between two value-axis positions.","properties":{"from":{"description":"Band start in value-axis units.","type":"number"},"label":{"description":"Human-readable band label.","type":"string"},"to":{"description":"Band end in value-axis units.","type":"number"},"tone":{"description":"Feedback-token tone for the band.","enum":["error","info","neutral","success","warning"],"type":"string"}},"required":["from","to"],"type":"object"},"type":"array"},"component":{"const":"TimeSeriesChart"},"goalLine":{"additionalProperties":false,"description":"Goal in value-axis units, applied to each series.","properties":{"label":{"description":"Human-readable goal label.","type":"string"},"value":{"description":"Position of the goal line in value-axis units.","type":"number"}},"required":["value"],"type":"object"},"label":{"description":"Human-readable chart name.","minLength":1,"type":"string"},"referenceLines":{"description":"Reference lines. An x-axis value is in whole UTC epoch milliseconds.","items":{"additionalProperties":false,"description":"A reference line on one axis (default axis: \\"y\\").","properties":{"axis":{"description":"Which axis the line spans; \\"y\\" by default.","enum":["x","y"],"type":"string"},"label":{"description":"Human-readable line label.","type":"string"},"tone":{"description":"Feedback-token tone for the line.","enum":["error","info","neutral","success","warning"],"type":"string"},"value":{"description":"Position of the line in value-axis units.","type":"number"}},"required":["value"],"type":"object"},"type":"array"},"series":{"description":"Series in display order.","items":{"additionalProperties":false,"properties":{"data":{"description":"Observations in strictly increasing timestamp order.","items":{"additionalProperties":false,"properties":{"x":{"description":"Whole UTC Unix epoch milliseconds, in the ISO instant range.","maximum":8640000000000000,"minimum":-8640000000000000,"type":"integer"},"y":{"description":"Finite measured value.","type":"number"}},"required":["x","y"],"type":"object"},"type":"array"},"id":{"description":"Stable identifier, unique within the chart.","minLength":1,"type":"string"},"label":{"description":"Human-readable series name.","minLength":1,"type":"string"}},"required":["data","id","label"],"type":"object"},"minItems":1,"type":"array"}},"required":["component","label","series"],"type":"object"}],"type":"object","unevaluatedProperties":false,"x-sentropic":{"contract":"1.0","element":"st-time-series-chart","engine":"core","events":[],"example":{"component":"TimeSeriesChart","id":"root","label":"Queue depth","series":[{"data":[{"x":1767225600123,"y":4},{"x":1767225601123,"y":7}],"id":"jobs","label":"Jobs"}]},"fallback":"text","parity":{"angular":{"file":"packages/elements/src/element/dom/time-series-chart.svelte","note":"No counterpart in this framework package (§5.1: components with no framework counterpart record that fact).","status":"no-counterpart"},"react":{"file":"packages/elements/src/element/dom/time-series-chart.svelte","note":"No counterpart in this framework package (§5.1: components with no framework counterpart record that fact).","status":"no-counterpart"},"svelte":{"file":"packages/elements/src/element/dom/time-series-chart.svelte","note":"Reference pilot (§3.1); the catalogue is derived from it.","status":"source-of-truth","type":"TimeSeriesChartProps"},"vue":{"file":"packages/elements/src/element/dom/time-series-chart.svelte","note":"No counterpart in this framework package (§5.1: components with no framework counterpart record that fact).","status":"no-counterpart"}},"schema":"https://design-system.sent-tech.ca/catalogs/elements/v1/components/TimeSeriesChart.json"}}}`),description:`A2UI v0.9.1 basic catalogue of the Sentropic design system elements (JSON render standard, spec/SPEC_EVOL_DS_JSON_RENDER_STANDARD.md §5.2). Each component carries its x-sentropic contract version, element name, engine, events, fallback and standalone schema id; semantic documents are validated by their owning runtimes (§4.3).`,functions:{},title:`Sentropic design system elements catalogue`},Da={$id:`https://design-system.sent-tech.ca/catalogs/elements/v1/envelope.json`,$schema:`https://json-schema.org/draft/2020-12/schema`,description:"The render envelope of the JSON render standard (§4.2): one A2UI v0.9.1 component object under `root`, with the targeted component's contract version and an optional mode. The root interior is validated by the targeted component's catalogue entry, not by this schema.",properties:{catalogId:{type:`string`},contract:{pattern:`^[0-9]+\\.[0-9]+$`,type:`string`},mode:{enum:[`preview`,`snapshot`],type:`string`},root:{properties:{component:{type:`string`},id:{const:`root`}},required:[`component`,`id`],type:`object`}},required:[`contract`,`root`],title:`Sentropic render envelope`,type:`object`,unevaluatedProperties:!1},Oa={$defs:{AccessibilityAttributes:{description:`Attributes to enhance accessibility when using assistive technologies like screen readers.`,properties:{description:{$ref:`#/$defs/DynamicString`,description:`Additional information provided by assistive technologies about an element such as instructions, format requirements, or result of an action. For example, a mute button might have a label of 'Mute' and a description of 'Silences notifications about this conversation'.`},label:{$ref:`#/$defs/DynamicString`,description:`A short string, typically 1 to 3 words, used by assistive technologies to convey the purpose or intent of an element. For example, an input field might have an accessible label of 'User ID' or a button might be labeled 'Submit'.`}},type:`object`},Action:{description:`Defines an interaction handler that can either trigger a server-side event or execute a local client-side function.`,oneOf:[{additionalProperties:!1,description:`Triggers a server-side event.`,properties:{event:{additionalProperties:!1,description:`The event to dispatch to the server.`,properties:{context:{additionalProperties:{$ref:`#/$defs/DynamicValue`},description:`A JSON object containing the key-value pairs for the action context. Values can be literals or paths. Use literal values unless the value must be dynamically bound to the data model. Do NOT use paths for static IDs.`,type:`object`},name:{description:`The name of the action to be dispatched to the server.`,type:`string`}},required:[`name`],type:`object`}},required:[`event`],type:`object`},{additionalProperties:!1,description:`Executes a local client-side function.`,properties:{functionCall:{$ref:`#/$defs/FunctionCall`}},required:[`functionCall`],type:`object`}]},CheckRule:{additionalProperties:!1,description:`A single validation rule applied to an input component.`,properties:{condition:{$ref:`#/$defs/DynamicBoolean`},message:{description:`The error message to display if the check fails.`,type:`string`}},required:[`condition`,`message`],type:`object`},Checkable:{description:`Properties for components that support client-side checks.`,properties:{checks:{description:`A list of checks to perform. These are function calls that must return a boolean indicating validity.`,items:{$ref:`#/$defs/CheckRule`},type:`array`}},type:`object`},ChildList:{oneOf:[{description:`A static list of child component IDs.`,items:{$ref:`#/$defs/ComponentId`},type:`array`},{additionalProperties:!1,description:"A template for generating a dynamic list of children from a data model list. The `componentId` is the component to use as a template.",properties:{componentId:{$ref:`#/$defs/ComponentId`},path:{description:`The path to the list of component property objects in the data model.`,type:`string`}},required:[`componentId`,`path`],type:`object`}]},ComponentCommon:{properties:{accessibility:{$ref:`#/$defs/AccessibilityAttributes`},id:{$ref:`#/$defs/ComponentId`}},required:[`id`],type:`object`},ComponentId:{description:`The unique identifier for a component, used for both definitions and references within the same surface.`,type:`string`},DataBinding:{additionalProperties:!1,properties:{path:{description:`A JSON Pointer path to a value in the data model.`,type:`string`}},required:[`path`],type:`object`},DynamicBoolean:{description:`A boolean value that can be a literal, a path, or a function call returning a boolean.`,oneOf:[{type:`boolean`},{$ref:`#/$defs/DataBinding`},{allOf:[{$ref:`#/$defs/FunctionCall`},{properties:{returnType:{const:`boolean`}}}]}]},DynamicNumber:{description:`Represents a value that can be either a literal number, a path to a number in the data model, or a function call returning a number.`,oneOf:[{type:`number`},{$ref:`#/$defs/DataBinding`},{allOf:[{$ref:`#/$defs/FunctionCall`},{properties:{returnType:{const:`number`}}}]}]},DynamicString:{description:`Represents a string`,oneOf:[{type:`string`},{$ref:`#/$defs/DataBinding`},{allOf:[{$ref:`#/$defs/FunctionCall`},{properties:{returnType:{const:`string`}}}]}]},DynamicStringList:{description:`Represents a value that can be either a literal array of strings, a path to a string array in the data model, or a function call returning a string array.`,oneOf:[{items:{type:`string`},type:`array`},{$ref:`#/$defs/DataBinding`},{allOf:[{$ref:`#/$defs/FunctionCall`},{properties:{returnType:{const:`array`}}}]}]},DynamicValue:{description:`A value that can be a literal, a path, or a function call returning any type.`,oneOf:[{type:`string`},{type:`number`},{type:`boolean`},{type:`array`},{$ref:`#/$defs/DataBinding`},{$ref:`#/$defs/FunctionCall`}]},FunctionCall:{description:`Invokes a named function on the client.`,oneOf:[{$ref:`catalog.json#/$defs/anyFunction`}],properties:{args:{additionalProperties:{anyOf:[{$ref:`#/$defs/DynamicValue`},{description:`A literal object argument (e.g. configuration).`,type:`object`}]},description:`Arguments passed to the function.`,type:`object`},call:{description:`The name of the function to call.`,type:`string`},returnType:{default:`boolean`,description:`The expected return type of the function call.`,enum:[`any`,`array`,`boolean`,`number`,`object`,`string`,`void`],type:`string`}},required:[`call`],type:`object`}},$id:`https://a2ui.org/specification/v0_9_1/common_types.json`,$schema:`https://json-schema.org/draft/2020-12/schema`,description:`Common type definitions used across A2UI schemas.`,title:`A2UI Common Types`},ka={$defs:{anyFunction:{not:{}}},$id:`https://a2ui.org/specification/v0_9_1/catalog.json`,$schema:`https://json-schema.org/draft/2020-12/schema`},Aa=new Set([`$ref`,`type`,`enum`,`const`,`pattern`,`minLength`,`minimum`,`maximum`,`properties`,`required`,`additionalProperties`,`unevaluatedProperties`,`items`,`minItems`,`maxItems`,`allOf`,`anyOf`,`oneOf`,`not`]),ja=new Set([`$schema`,`$id`,`$defs`,`$anchor`,`$dynamicAnchor`,`$comment`,`$vocabulary`,`title`,`description`,`default`,`examples`,`example`,`note`,`deprecated`,`readOnly`,`writeOnly`,`catalogId`,`components`,`functions`,`x-sentropic`]),Ma=new Set([`multipleOf`,`exclusiveMaximum`,`exclusiveMinimum`,`maxLength`,`maxProperties`,`minProperties`,`uniqueItems`,`contains`,`maxContains`,`minContains`,`patternProperties`,`dependentRequired`,`dependentSchemas`,`propertyNames`,`prefixItems`,`unevaluatedItems`,`if`,`then`,`else`,`definitions`,`$dynamicRef`,`$recursiveRef`]);function $(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function Na(e){return e.replace(/~/g,`~0`).replace(/\//g,`~1`)}function Pa(e,t){if(e===t)return!0;if(!$(e)&&!Array.isArray(e))return!1;if(Array.isArray(e))return!Array.isArray(t)||e.length!==t.length?!1:e.every((e,n)=>Pa(e,t[n]));if(!$(t))return!1;let n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(n=>Object.hasOwn(t,n)&&Pa(e[n],t[n]))}function Fa(e,t){switch(e){case`object`:return $(t);case`array`:return Array.isArray(t);case`string`:return typeof t==`string`;case`number`:return typeof t==`number`;case`integer`:return typeof t==`number`&&Number.isInteger(t);case`boolean`:return typeof t==`boolean`;case`null`:return t===null;default:return!0}}var Ia=class{#e=new Map;register(e,t){if(!$(e)||typeof e.$id!=`string`||e.$id.length===0)throw Error(`the ${t} must carry its $id so every $ref resolves without network access`);return this.#e.set(e.$id,e),e.$id}resolve(e,t){let n=e.indexOf(`#`),r=n===-1?e:e.slice(0,n),i=n===-1?``:e.slice(n+1),a=t;r.length>0&&(a=/^[a-z][a-z0-9+.-]*:/i.test(r)?r:La(t,r));let o=this.#e.get(a);if(o===void 0)throw Error(`the $ref "${e}" does not name a registered document (from ${t})`);return{schema:i.length===0?o:Ra(o,i,e),baseId:a}}};function La(e,t){let n=e.lastIndexOf(`/`);return n===-1?t:`${e.slice(0,n+1)}${t}`}function Ra(e,t,n){if(!t.startsWith(`/`))throw Error(`the $ref "${n}" must use a JSON pointer (URI fragments are not used by the registered documents)`);let r=e;for(let e of t.slice(1).split(`/`)){let t=e.replace(/~1/g,`/`).replace(/~0/g,`~`);if(Array.isArray(r)){let e=Number(t);if(!Number.isInteger(e)||e<0||e>=r.length)throw Error(`the $ref "${n}" does not resolve: no array item ${t}`);r=r[e]}else{if(!$(r)||!Object.hasOwn(r,t))throw Error(`the $ref "${n}" does not resolve: no property "${t}"`);r=r[t]}}return r}function za(e,t){if(typeof e==`boolean`)return;if(!$(e))throw Error(`the ${t} contains a schema that is neither a boolean nor an object`);for(let n of Object.keys(e))if(!(n.startsWith(`x-`)||ja.has(n)||Aa.has(n)))throw Ma.has(n)?Error(`the ${t} uses "${n}", outside the browser structure interpreter's keyword set (§6.4): extend src/structure/interpreter.ts and its oracle test`):Error(`the ${t} uses unknown keyword "${n}": extend src/structure/interpreter.ts and its oracle test, or allowlist it as an annotation`);let n=e.items;if(Array.isArray(n))throw Error(`the ${t} uses "items" in its legacy tuple form, which the browser structure interpreter does not implement`);if(n!==void 0&&!$(n)&&typeof n!=`boolean`)throw Error(`the ${t} uses "items" in a non-schema form, which the browser structure interpreter does not implement`);for(let n of[`additionalProperties`,`unevaluatedProperties`,`not`]){let r=e[n];if(r!==void 0&&!$(r)&&typeof r!=`boolean`)throw Error(`the ${t} uses "${n}" in a non-schema form, which the browser structure interpreter does not implement`)}for(let n of[`allOf`,`anyOf`,`oneOf`]){let r=e[n];if(r!==void 0&&!Array.isArray(r))throw Error(`the ${t} uses "${n}" in a non-array form, which the browser structure interpreter does not implement`)}let r=[];for(let t of[`$defs`,`properties`,`components`]){let n=e[t];if($(n))for(let e of Object.values(n))r.push([`${t} entry`,e])}n!==void 0&&r.push([`items`,n]);for(let t of[`additionalProperties`,`unevaluatedProperties`,`not`]){let n=e[t];($(n)||typeof n==`boolean`)&&r.push([t,n])}for(let t of[`allOf`,`anyOf`,`oneOf`]){let n=e[t];if(Array.isArray(n))for(let e of n)r.push([t,e])}for(let[e,n]of r)za(n,`${t} (${e})`)}var Ba=new Set;function Va(e,t,n,r,i,a){if(e===!0)return{ok:!0,evaluated:Ba};if(e===!1||e==null)return a.push({pointer:n,message:`the schema is false here`,keyword:`schema`}),{ok:!1,evaluated:Ba};if(!$(e))return a.push({pointer:n,message:`the schema node is neither a boolean nor an object`,keyword:`schema`}),{ok:!1,evaluated:Ba};let o=!0,s=new Set,c=e=>{o=!1,a.push(e)},l=e.$ref,u=r;if(typeof l==`string`){let e=i.resolve(l,r),c=Va(e.schema,t,n,e.baseId,i,a);for(let e of c.evaluated)s.add(e);c.ok||(o=!1)}let d=e.type;if(d!==void 0){let e=Array.isArray(d)?d:[d],r=e.filter(e=>typeof e==`string`);e.length>0&&r.length===e.length&&!r.some(e=>Fa(e,t))&&c({pointer:n,message:`must be ${r.join(`,`)}`,keyword:`type`})}let f=e.enum;Array.isArray(f)&&!f.some(e=>Pa(e,t))&&c({pointer:n,message:`must be equal to one of the allowed values`,keyword:`enum`}),Object.hasOwn(e,`const`)&&!Pa(e.const,t)&&c({pointer:n,message:`must be equal to constant`,keyword:`const`});let p=e.pattern;typeof p==`string`&&typeof t==`string`&&!new RegExp(p,`u`).test(t)&&c({pointer:n,message:`must match pattern "${p}"`,keyword:`pattern`});let{minLength:m,minimum:h,maximum:g}=e;if(typeof t==`string`&&typeof m==`number`&&[...t].length<m&&c({pointer:n,message:`must NOT have fewer than ${m} characters`,keyword:`minLength`}),typeof t==`number`&&typeof g==`number`&&t>g&&c({pointer:n,message:`must be <= ${g}`,keyword:`maximum`}),typeof t==`number`&&typeof h==`number`&&t<h&&c({pointer:n,message:`must be >= ${h}`,keyword:`minimum`}),$(t)){let r=Object.keys(t),l=e.required;if(Array.isArray(l))for(let e of l)typeof e==`string`&&!Object.hasOwn(t,e)&&c({pointer:n,message:`must have required property '${e}'`,keyword:`required`,missingProperty:e});let d=$(e.properties)?e.properties:{};for(let[e,r]of Object.entries(d))Object.hasOwn(t,e)&&(s.add(e),Va(r,t[e],`${n}/${Na(e)}`,u,i,a).ok||(o=!1));let f=e.additionalProperties,p=new Set(Object.keys(d));if(f===!1)for(let e of r)p.has(e)||(s.add(e),c({pointer:n,message:`must NOT have additional properties`,keyword:`additionalProperties`,additionalProperty:e}));else if($(f)||f===!0){let e=$(f);for(let c of r)p.has(c)||(s.add(c),!e)||Va(f,t[c],`${n}/${Na(c)}`,u,i,a).ok||(o=!1)}}if(Array.isArray(t)){let r=e.minItems;typeof r==`number`&&t.length<r&&c({pointer:n,message:`must NOT have fewer than ${r} items`,keyword:`minItems`});let s=e.maxItems;typeof s==`number`&&t.length>s&&c({pointer:n,message:`must NOT have more than ${s} items`,keyword:`maxItems`});let l=e.items;l!==void 0&&!Array.isArray(l)&&t.forEach((e,t)=>{Va(l,e,`${n}/${t}`,u,i,a).ok||(o=!1)})}let _=e.allOf;if(Array.isArray(_))for(let e of _){let r=Va(e,t,n,u,i,a);for(let e of r.evaluated)s.add(e);r.ok||(o=!1)}let v=e.anyOf;if(Array.isArray(v)){let e=!1,r=[];for(let a of v){let o=[],c=Va(a,t,n,u,i,o);if(r.push(o),c.ok){e=!0;for(let e of c.evaluated)s.add(e)}}if(!e){o=!1;for(let e of r)a.push(...e);a.push({pointer:n,message:`must match a schema in anyOf`,keyword:`anyOf`})}}let y=e.oneOf;if(Array.isArray(y)){let e=[],r=[],c=0,l=-1;if(y.forEach((a,o)=>{let s=[],d=Va(a,t,n,u,i,s);e.push(s),r.push(d.evaluated),d.ok&&(c+=1,l=o)}),c===1&&l>=0)for(let e of r[l]??[])s.add(e);else{o=!1;for(let t of e)a.push(...t);a.push({pointer:n,message:`must match exactly one schema in oneOf`,keyword:`oneOf`})}}let b=e.not;if(b!==void 0&&Va(b,t,n,u,i,[]).ok&&(a.push({pointer:n,message:`must NOT be valid`,keyword:`not`}),o=!1),$(t)){let r=e.unevaluatedProperties;if(r!==void 0){let e=Object.keys(t).filter(e=>!s.has(e));if(r===!1)for(let t of e)c({pointer:n,message:`must NOT have unevaluated properties`,keyword:`unevaluatedProperties`,additionalProperty:t});else if(($(r)||r===!0)&&$(r))for(let c of e)Va(r,t[c],`${n}/${Na(c)}`,u,i,a).ok?s.add(c):o=!1}}return{ok:o,evaluated:s}}function Ha(e){let t=new Ia,n=t.register(e.catalog,`catalogue document`);if(typeof e.catalog.catalogId!=`string`||e.catalog.catalogId.length===0)throw Error(`the catalogue document must carry its catalogId (§5.2: $id = catalogId)`);let r=t.register(e.envelopeSchema,`envelope schema`);return t.register(e.commonTypes,`A2UI common types`),t.register(ka,`built catalog.json stub`),za(e.catalog,`catalogue document`),za(e.envelopeSchema,`envelope schema`),za(e.commonTypes,`A2UI common types`),za(ka,`built catalog.json stub`),{validateEnvelope(n){let i=[];return Va(e.envelopeSchema,n,``,r,t,i),i},validateComponent(r,i){let a=e.catalog.components[r];if(a===void 0)return[{pointer:`/component`,message:`no catalogued component is named ${r}`,keyword:`$compile`}];let o=[];return Va(a,i,``,n,t,o),o}}}var Ua=new Map;function Wa(){return new Proxy({},{get(e,t){return Ua.get(t)}})}var Ga;function Ka(){return Ga===void 0&&(Ga=Ta({catalog:Ea,envelopeSchema:Da,commonTypes:Oa,ports:Wa(),structure:Ha({catalog:Ea,envelopeSchema:Da,commonTypes:Oa})})),Ga}function qa(e,t){Ua.set(e,t)}function Ja(e){return e.root??{}}function Ya(e,t){return{code:`unknown-component`,path:`/root/component`,message:`<${`st-${e.replace(/([a-z])([A-Z])/g,`$1-$2`).toLowerCase()}`}> requires root.component "${e}", got "${t}"`,severity:`error`,source:`catalog`,detail:{expected:e,found:t}}}function Xa(e,t){return e!==void 0&&t.length>0&&t.every(t=>t.code===`host-capability-missing`&&t.detail?.chunk===e)}function Za(e,t){let n=I(`idle`),r=I(Gt([])),i=I(null),a=new Set,o=!1,s=0;function c(e){if(L(n,e,!0),!o&&(e===`rendered`||e===`refused`)){o=!0;for(let e of a)e()}}function l(e){return o?e():a.add(e),()=>a.delete(e)}function u(...e){L(r,[...e],!0)}function d(e){W(r).some(t=>t.code===e.code&&t.path===e.path&&t.message===e.message)||L(r,[...W(r),e],!0)}async function f(a,o){let l=++s;if(L(n,`rendering`),t?.chunk===`bpmn-canvas`){let e=await t.prepare(a,o);if(l!==s)return;L(r,[...e.diagnostics],!0),L(i,e.payload,!0),c(W(i)===null?`refused`:`rendered`)}else try{let n=xa(a),o=Ka().validate(n.ok?n.value:a);if(l!==s)return;let u=(n.ok?n.value:a)?.root?.component;if(typeof u==`string`&&u!==e){L(r,[Ya(e,u)],!0),L(i,null),c(`refused`);return}let d=o.filter(e=>e.severity===`error`);if(d.length>0&&!Xa(t?.chunk,d)){L(r,[...o],!0),L(i,null),c(`refused`);return}if(t!==void 0&&d.length>0){let{port:e}=await t.load();if(qa(t.chunk,e),l!==s)return;let o=Ka().validate(n.ok?n.value:a);if(l!==s)return;if(o.filter(e=>e.severity===`error`).length>0){L(r,[...o],!0),L(i,null),c(`refused`);return}L(r,[...o],!0)}else L(r,[...o],!0);if(!n.ok){L(i,null),c(`refused`);return}let f=Ja(n.value);if(e===`BarChart`){let{component:e,id:t,...n}=f;L(i,{kind:`bar-chart`,props:n},!0)}else if(e===`TimeSeriesChart`){let{component:e,id:t,...n}=f;L(i,{kind:`time-series-chart`,props:n},!0)}else L(i,{kind:`dossier`,document:f.document},!0);c(`rendered`)}catch(e){if(l!==s)return;let n=e instanceof Error?e.message:String(e),r=t?.chunk;u(r===void 0?{code:`semantic-invalid`,path:``,message:`the element failed to render the envelope: ${n}`,severity:`error`,source:`host`,detail:{cause:n}}:ma(r,n)),c(`refused`)}}return{get state(){return W(n)},get diagnostics(){return W(r)},get payload(){return W(i)},ingest:f,onSettle:l,noteEngineDiagnostic:d}}var Qa=new WeakMap,$a=new WeakMap;function eo(e){let t=$a.get(e);if(t===void 0){let n;t={promise:new Promise(e=>{n=e}),resolve:n},$a.set(e,t),Qa.get(e)?.onSettle(n)}return t}function to(e,t){Qa.set(e,t);let n=$a.get(e);n!==void 0&&t.onSettle(n.resolve)}function no(e){let t=customElements.get(e);if(t===void 0)throw Error(`the ${e} element is not registered; import its module first`);let n=t.prototype;Object.defineProperty(n,"state",{get(){return Qa.get(this)?.state??`idle`}}),Object.defineProperty(n,"diagnostics",{get(){return Qa.get(this)?.diagnostics??[]}}),Object.defineProperty(n,"ready",{get(){return eo(this).promise}})}var ro=`/* Generated by packages/themes/scripts/build-css.mjs. */
49
49
  /* Theme: Sent Tech (sent-tech) */
50
50
  /* Dark mode: 3 blocks (light + auto + explicit) */
51
51
  [data-st-theme="sent-tech"] {
@@ -768,6 +768,219 @@ typeof window<`u`&&((window.__svelte??={}).v??=new Set).add(`5`);var e={},t=Symb
768
768
  --st-component-graph-community2: #F28E2B;
769
769
  --st-component-graph-community3: #E15759;
770
770
  --st-component-graph-community4: #76B7B2;
771
+ --st-component-diagramErd-fontFamily: var(--st-font-mono);
772
+ --st-component-diagramErd-width: 460px;
773
+ --st-component-diagramErd-headerHeight: 64px;
774
+ --st-component-diagramErd-rowHeight: 32px;
775
+ --st-component-diagramErd-lineHeight: 24px;
776
+ --st-component-diagramErd-padding: 12px;
777
+ --st-component-diagramErd-keyWidth: 56px;
778
+ --st-component-diagramErd-nameWidth: 170px;
779
+ --st-component-diagramErd-typeWidth: 170px;
780
+ --st-component-diagramErd-fontSize: 18px;
781
+ --st-component-diagramErd-titleFontSize: 24px;
782
+ --st-component-diagramErd-markerLength: 24px;
783
+ --st-component-diagramErd-markerHalfWidth: 8px;
784
+ --st-component-diagramErd-markerRadius: 4px;
785
+ --st-component-diagramErd-markerGap: 4px;
786
+ --st-component-diagramErd-strokeWidth: 1.5px;
787
+ --st-component-diagramErd-gapInline: 160px;
788
+ --st-component-diagramErd-gapBlock: 120px;
789
+ --st-component-diagramErd-labelWidth: 240px;
790
+ --st-component-diagramCard-width: 460px;
791
+ --st-component-diagramCard-height: 200px;
792
+ --st-component-diagramCard-radius: 0;
793
+ --st-component-diagramCard-borderWidth: 2px;
794
+ --st-component-diagramCard-accentWidth: 8px;
795
+ --st-component-diagramCard-padding: 8px;
796
+ --st-component-diagramCard-headerInset: 16px;
797
+ --st-component-diagramCard-iconSize: 70px;
798
+ --st-component-diagramCard-iconTextGap: 6px;
799
+ --st-component-diagramCard-kickerFontSize: 22px;
800
+ --st-component-diagramCard-kickerFontWeight: 400;
801
+ --st-component-diagramCard-kickerLineHeight: 1.3;
802
+ --st-component-diagramCard-kickerLetterSpacing: 0.04em;
803
+ --st-component-diagramCard-kickerTextTransform: uppercase;
804
+ --st-component-diagramCard-titleFontSize: 32px;
805
+ --st-component-diagramCard-titleFontWeight: 700;
806
+ --st-component-diagramCard-titleLineHeight: 1.3;
807
+ --st-component-diagramCard-gap: 6px;
808
+ --st-component-diagramCard-bodyFontSize: 24px;
809
+ --st-component-diagramCard-bodyFontWeight: 400;
810
+ --st-component-diagramCard-bodyLineHeight: 1.3;
811
+ --st-component-diagramCard-bodyInsetFromBar: 14px;
812
+ --st-component-diagramCard-ruleHeight: 1px;
813
+ --st-component-diagramCard-ruleMargin: 4px;
814
+ --st-component-diagramCard-ruleInsetStart: 16px;
815
+ --st-component-diagramCard-ruleInsetEnd: 10px;
816
+ --st-component-diagramCard-footerFontSize: 24px;
817
+ --st-component-diagramCard-footerFontWeight: 700;
818
+ --st-component-diagramCard-footerLineHeight: 1.3;
819
+ --st-component-diagramCard-footerBottomInset: 9.25px;
820
+ --st-component-diagramCard-toggleAllocation: 66px;
821
+ --st-component-diagramCard-toggleBoxSize: 32px;
822
+ --st-component-diagramCard-toggleInset: 8px;
823
+ --st-component-diagramCard-foldedHeaderTextWidth: 290px;
824
+ --st-component-diagramCard-rootGapInline: var(--st-component-diagramZone-childGapInline);
825
+ --st-component-diagramCard-rootGapBlock: var(--st-component-diagramZone-childGapBlock);
826
+ --st-component-diagramCard-proposedDashArray: 4 5;
827
+ --st-component-diagramCard-fontFamily: var(--st-font-sans);
828
+ --st-component-diagramCard-border: #94a3b8;
829
+ --st-component-diagramCard-accent: #94a3b8;
830
+ --st-component-diagramCard-surface: #ffffff;
831
+ --st-component-diagramCard-text: #0f172a;
832
+ --st-component-diagramCard-secondaryText: #475569;
833
+ --st-component-diagramCard-rule: #e2e8f0;
834
+ --st-component-diagramCardCompact-width: 352px;
835
+ --st-component-diagramCardCompact-height: 154px;
836
+ --st-component-diagramCardCompact-radius: var(--st-component-diagramCard-radius);
837
+ --st-component-diagramCardCompact-borderWidth: var(--st-component-diagramCard-borderWidth);
838
+ --st-component-diagramCardCompact-accentWidth: 6px;
839
+ --st-component-diagramCardCompact-padding: 6px;
840
+ --st-component-diagramCardCompact-headerInset: 12px;
841
+ --st-component-diagramCardCompact-iconSize: 52px;
842
+ --st-component-diagramCardCompact-iconTextGap: 4px;
843
+ --st-component-diagramCardCompact-kickerFontSize: var(--st-component-diagramCard-kickerFontSize);
844
+ --st-component-diagramCardCompact-kickerFontWeight: var(--st-component-diagramCard-kickerFontWeight);
845
+ --st-component-diagramCardCompact-kickerLineHeight: var(--st-component-diagramCard-kickerLineHeight);
846
+ --st-component-diagramCardCompact-kickerLetterSpacing: var(--st-component-diagramCard-kickerLetterSpacing);
847
+ --st-component-diagramCardCompact-kickerTextTransform: var(--st-component-diagramCard-kickerTextTransform);
848
+ --st-component-diagramCardCompact-titleFontSize: var(--st-component-diagramCard-titleFontSize);
849
+ --st-component-diagramCardCompact-titleFontWeight: var(--st-component-diagramCard-titleFontWeight);
850
+ --st-component-diagramCardCompact-titleLineHeight: var(--st-component-diagramCard-titleLineHeight);
851
+ --st-component-diagramCardCompact-gap: var(--st-component-diagramCard-gap);
852
+ --st-component-diagramCardCompact-bodyFontSize: var(--st-component-diagramCard-bodyFontSize);
853
+ --st-component-diagramCardCompact-bodyFontWeight: var(--st-component-diagramCard-bodyFontWeight);
854
+ --st-component-diagramCardCompact-bodyLineHeight: var(--st-component-diagramCard-bodyLineHeight);
855
+ --st-component-diagramCardCompact-bodyInsetFromBar: 10px;
856
+ --st-component-diagramCardCompact-ruleHeight: var(--st-component-diagramCard-ruleHeight);
857
+ --st-component-diagramCardCompact-ruleMargin: var(--st-component-diagramCard-ruleMargin);
858
+ --st-component-diagramCardCompact-ruleInsetStart: var(--st-component-diagramCard-ruleInsetStart);
859
+ --st-component-diagramCardCompact-ruleInsetEnd: var(--st-component-diagramCard-ruleInsetEnd);
860
+ --st-component-diagramCardCompact-footerFontSize: var(--st-component-diagramCard-footerFontSize);
861
+ --st-component-diagramCardCompact-footerFontWeight: var(--st-component-diagramCard-footerFontWeight);
862
+ --st-component-diagramCardCompact-footerLineHeight: var(--st-component-diagramCard-footerLineHeight);
863
+ --st-component-diagramCardCompact-footerBottomInset: var(--st-component-diagramCard-footerBottomInset);
864
+ --st-component-diagramCardCompact-toggleAllocation: var(--st-component-diagramCard-toggleAllocation);
865
+ --st-component-diagramCardCompact-toggleBoxSize: var(--st-component-diagramCard-toggleBoxSize);
866
+ --st-component-diagramCardCompact-toggleInset: var(--st-component-diagramCard-toggleInset);
867
+ --st-component-diagramCardCompact-foldedHeaderTextWidth: 210px;
868
+ --st-component-diagramCardCompact-proposedDashArray: var(--st-component-diagramCard-proposedDashArray);
869
+ --st-component-diagramCardCompact-fontFamily: var(--st-component-diagramCard-fontFamily);
870
+ --st-component-diagramCardCompact-border: var(--st-component-diagramCard-border);
871
+ --st-component-diagramCardCompact-accent: var(--st-component-diagramCard-accent);
872
+ --st-component-diagramCardCompact-surface: var(--st-component-diagramCard-surface);
873
+ --st-component-diagramCardCompact-text: var(--st-component-diagramCard-text);
874
+ --st-component-diagramCardCompact-secondaryText: var(--st-component-diagramCard-secondaryText);
875
+ --st-component-diagramCardCompact-rule: var(--st-component-diagramCard-rule);
876
+ --st-component-diagramZone-toggleInset: 8px;
877
+ --st-component-diagramZone-radius: 0;
878
+ --st-component-diagramZone-borderWidth: 1.5px;
879
+ --st-component-diagramZone-headerInset: 16px;
880
+ --st-component-diagramZone-iconSize: 70px;
881
+ --st-component-diagramZone-iconTextGap: 6px;
882
+ --st-component-diagramZone-kickerFontSize: var(--st-component-diagramCard-kickerFontSize);
883
+ --st-component-diagramZone-kickerFontWeight: var(--st-component-diagramCard-kickerFontWeight);
884
+ --st-component-diagramZone-kickerLineHeight: var(--st-component-diagramCard-kickerLineHeight);
885
+ --st-component-diagramZone-kickerLetterSpacing: var(--st-component-diagramCard-kickerLetterSpacing);
886
+ --st-component-diagramZone-kickerTextTransform: var(--st-component-diagramCard-kickerTextTransform);
887
+ --st-component-diagramZone-titleFontSize: var(--st-component-diagramCard-titleFontSize);
888
+ --st-component-diagramZone-titleFontWeight: var(--st-component-diagramCard-titleFontWeight);
889
+ --st-component-diagramZone-titleLineHeight: var(--st-component-diagramCard-titleLineHeight);
890
+ --st-component-diagramZone-subtitleFontSize: 24px;
891
+ --st-component-diagramZone-subtitleFontWeight: 400;
892
+ --st-component-diagramZone-subtitleLineHeight: 1.3;
893
+ --st-component-diagramZone-subtitleGap: var(--st-component-diagramCard-gap);
894
+ --st-component-diagramZone-headerRuleGap: 4px;
895
+ --st-component-diagramZone-contentInsetTop: var(--st-component-diagramScene-containerPadding);
896
+ --st-component-diagramZone-contentInsetBottom: var(--st-component-diagramScene-containerPadding);
897
+ --st-component-diagramZone-contentInsetInline: var(--st-component-diagramScene-containerPadding);
898
+ --st-component-diagramZone-collapsedWidth: 460px;
899
+ --st-component-diagramZone-collapsedHeight: 200px;
900
+ --st-component-diagramZone-collapsedInset: 16px;
901
+ --st-component-diagramZone-collapsedSubtitleMarginInline: 16px;
902
+ --st-component-diagramZone-toggleAllocation: var(--st-component-diagramCard-toggleAllocation);
903
+ --st-component-diagramZone-toggleBoxSize: var(--st-component-diagramCard-toggleBoxSize);
904
+ --st-component-diagramZone-headerTextInset: 178px;
905
+ --st-component-diagramZone-toggleTopInset: var(--st-component-diagramZone-toggleInset);
906
+ --st-component-diagramZone-footerBottomInset: var(--st-component-diagramCard-footerBottomInset);
907
+ --st-component-diagramZone-proposedDashArray: 4 5;
908
+ --st-component-diagramZone-childGapInline: var(--st-component-diagramScene-gapMin);
909
+ --st-component-diagramZone-childGapBlock: var(--st-component-diagramScene-gapMinBlock);
910
+ --st-component-diagramZone-gapInlineMax: var(--st-component-diagramScene-gapMax);
911
+ --st-component-diagramZone-gapBlockMax: var(--st-component-diagramScene-gapMax);
912
+ --st-component-diagramZone-rowPackTargetAspect: 1.78;
913
+ --st-component-diagramZone-border: #94a3b8;
914
+ --st-component-diagramZone-surface: #ffffff;
915
+ --st-component-diagramZone-surface1: #ffffff;
916
+ --st-component-diagramZone-surface2: #f8fafc;
917
+ --st-component-diagramZone-text: #0f172a;
918
+ --st-component-diagramZone-secondaryText: #475569;
919
+ --st-component-diagramZone-rule: #e2e8f0;
920
+ --st-component-iconButton-smSize: 2rem;
921
+ --st-component-iconButton-mdSize: 2.25rem;
922
+ --st-component-iconButton-lgSize: 2.5rem;
923
+ --st-component-iconButton-radius: 0.375rem;
924
+ --st-component-iconButton-text: #0f172a;
925
+ --st-component-iconButton-focusRing: oklch(50% 0.134 242.749);
926
+ --st-component-diagramScene-containerPadding: 16px;
927
+ --st-component-diagramScene-gapMin: 96px;
928
+ --st-component-diagramScene-gapMinBlock: 72px;
929
+ --st-component-diagramScene-gapBase: 64px;
930
+ --st-component-diagramScene-gapBaseBlock: 8px;
931
+ --st-component-diagramScene-trackSpacing: 14px;
932
+ --st-component-diagramScene-trackSpacingBlock: 7px;
933
+ --st-component-diagramScene-labelBand: 30px;
934
+ --st-component-diagramScene-gapMax: 240px;
935
+ --st-component-diagramScene-bundleLabelMaxWidth: 320px;
936
+ --st-component-diagramScene-labelPadding: 4px;
937
+ --st-component-diagramScene-labelBorderWidth: 1px;
938
+ --st-component-diagramScene-bundleMarkerGap: 6px;
939
+ --st-component-diagramScene-edgeStroke: #64748b;
940
+ --st-component-diagramScene-labelSurface: #ffffff;
941
+ --st-component-diagramScene-labelBorder: #cbd5e1;
942
+ --st-component-diagramScene-labelText: #172033;
943
+ --st-component-diagramScene-maxDisplayScale: 0.62;
944
+ --st-component-diagramScene-minReadableScale: 0.30;
945
+ --st-component-diagramScene-transitionDuration: 240ms;
946
+ --st-component-diagramScene-edgeLabelFontSize: 18px;
947
+ --st-component-diagramScene-edgeLabelLineHeight: 22px;
948
+ --st-component-diagramScene-flowStroke: #191c1f;
949
+ --st-component-diagramScene-flowStrokeWidth: 1.5px;
950
+ --st-component-diagramScene-flowPrimaryStroke: #001f33;
951
+ --st-component-diagramScene-flowPrimaryStrokeWidth: 2.5px;
952
+ --st-component-diagramScene-flowRelatedStrokeWidth: 2px;
953
+ --st-component-diagramScene-flowOutlineWidth: 2px;
954
+ --st-component-diagramScene-flowFocusOutline: #001f33;
955
+ --st-component-diagramScene-flowDimOpacity: 0.6;
956
+ --st-component-diagramScene-flowFullOpacity: 1;
957
+ --st-component-diagramScene-flowHiddenOpacity: 0;
958
+ --st-component-diagramScene-flowHitStroke: transparent;
959
+ --st-component-diagramScene-flowHitWidth: 16px;
960
+ --st-component-diagramScene-flowTargetMinSize: 24;
961
+ --st-component-diagramScene-flowArrowPath: M0 0L10 5L0 10Z;
962
+ --st-component-diagramScene-flowArrowLength: 10;
963
+ --st-component-diagramScene-flowArrowWidth: 10;
964
+ --st-component-diagramScene-flowBadgeSize: 28;
965
+ --st-component-diagramScene-flowBadgePaddingX: 6;
966
+ --st-component-diagramScene-flowBadgeRadius: 999px;
967
+ --st-component-diagramScene-flowBadgeFontSize: 16px;
968
+ --st-component-diagramScene-flowBadgeLineHeight: 20px;
969
+ --st-component-diagramScene-flowBadgeBackground: #ffffff;
970
+ --st-component-diagramScene-flowBadgeBorder: #191c1f;
971
+ --st-component-diagramScene-flowBadgeText: #0f172a;
972
+ --st-component-diagramScene-flowFanOutMax: 4;
973
+ --st-component-diagramScene-readoutMinWidth: 4ch;
974
+ --st-component-bpmnCanvas-minHeight: 120px;
975
+ --st-component-diagramIcon-viewBox: 0 0 64 64;
976
+ --st-component-diagramIcon-basePath: M8 53L32 44L56 53L32 62Z;
977
+ --st-component-diagramIcon-faceStrokeWidth: 1.5;
978
+ --st-component-diagramIcon-lineStrokeWidth: 2.5;
979
+ --st-component-diagramIcon-baseFill: color-mix(in srgb, var(--st-semantic-feedback-info) 18%, var(--st-semantic-surface-raised));
980
+ --st-component-diagramIcon-faceFill: color-mix(in srgb, var(--st-semantic-feedback-info) 75%, var(--st-semantic-surface-raised));
981
+ --st-component-diagramIcon-faceStroke: var(--st-semantic-feedback-info);
982
+ --st-component-diagramIcon-lineStroke: var(--st-semantic-surface-raised);
983
+ --st-component-diagramIcon-lineDarkStroke: var(--st-semantic-feedback-info);
771
984
  }
772
985
 
773
986
 
@@ -1492,6 +1705,219 @@ typeof window<`u`&&((window.__svelte??={}).v??=new Set).add(`5`);var e={},t=Symb
1492
1705
  --st-component-graph-community2: oklch(75% 0.14 67);
1493
1706
  --st-component-graph-community3: oklch(68% 0.16 23);
1494
1707
  --st-component-graph-community4: oklch(73% 0.09 195);
1708
+ --st-component-diagramErd-fontFamily: var(--st-font-mono);
1709
+ --st-component-diagramErd-width: 460px;
1710
+ --st-component-diagramErd-headerHeight: 64px;
1711
+ --st-component-diagramErd-rowHeight: 32px;
1712
+ --st-component-diagramErd-lineHeight: 24px;
1713
+ --st-component-diagramErd-padding: 12px;
1714
+ --st-component-diagramErd-keyWidth: 56px;
1715
+ --st-component-diagramErd-nameWidth: 170px;
1716
+ --st-component-diagramErd-typeWidth: 170px;
1717
+ --st-component-diagramErd-fontSize: 18px;
1718
+ --st-component-diagramErd-titleFontSize: 24px;
1719
+ --st-component-diagramErd-markerLength: 24px;
1720
+ --st-component-diagramErd-markerHalfWidth: 8px;
1721
+ --st-component-diagramErd-markerRadius: 4px;
1722
+ --st-component-diagramErd-markerGap: 4px;
1723
+ --st-component-diagramErd-strokeWidth: 1.5px;
1724
+ --st-component-diagramErd-gapInline: 160px;
1725
+ --st-component-diagramErd-gapBlock: 120px;
1726
+ --st-component-diagramErd-labelWidth: 240px;
1727
+ --st-component-diagramCard-width: 460px;
1728
+ --st-component-diagramCard-height: 200px;
1729
+ --st-component-diagramCard-radius: 0;
1730
+ --st-component-diagramCard-borderWidth: 2px;
1731
+ --st-component-diagramCard-accentWidth: 8px;
1732
+ --st-component-diagramCard-padding: 8px;
1733
+ --st-component-diagramCard-headerInset: 16px;
1734
+ --st-component-diagramCard-iconSize: 70px;
1735
+ --st-component-diagramCard-iconTextGap: 6px;
1736
+ --st-component-diagramCard-kickerFontSize: 22px;
1737
+ --st-component-diagramCard-kickerFontWeight: 400;
1738
+ --st-component-diagramCard-kickerLineHeight: 1.3;
1739
+ --st-component-diagramCard-kickerLetterSpacing: 0.04em;
1740
+ --st-component-diagramCard-kickerTextTransform: uppercase;
1741
+ --st-component-diagramCard-titleFontSize: 32px;
1742
+ --st-component-diagramCard-titleFontWeight: 700;
1743
+ --st-component-diagramCard-titleLineHeight: 1.3;
1744
+ --st-component-diagramCard-gap: 6px;
1745
+ --st-component-diagramCard-bodyFontSize: 24px;
1746
+ --st-component-diagramCard-bodyFontWeight: 400;
1747
+ --st-component-diagramCard-bodyLineHeight: 1.3;
1748
+ --st-component-diagramCard-bodyInsetFromBar: 14px;
1749
+ --st-component-diagramCard-ruleHeight: 1px;
1750
+ --st-component-diagramCard-ruleMargin: 4px;
1751
+ --st-component-diagramCard-ruleInsetStart: 16px;
1752
+ --st-component-diagramCard-ruleInsetEnd: 10px;
1753
+ --st-component-diagramCard-footerFontSize: 24px;
1754
+ --st-component-diagramCard-footerFontWeight: 700;
1755
+ --st-component-diagramCard-footerLineHeight: 1.3;
1756
+ --st-component-diagramCard-footerBottomInset: 9.25px;
1757
+ --st-component-diagramCard-toggleAllocation: 66px;
1758
+ --st-component-diagramCard-toggleBoxSize: 32px;
1759
+ --st-component-diagramCard-toggleInset: 8px;
1760
+ --st-component-diagramCard-foldedHeaderTextWidth: 290px;
1761
+ --st-component-diagramCard-rootGapInline: var(--st-component-diagramZone-childGapInline);
1762
+ --st-component-diagramCard-rootGapBlock: var(--st-component-diagramZone-childGapBlock);
1763
+ --st-component-diagramCard-proposedDashArray: 4 5;
1764
+ --st-component-diagramCard-fontFamily: var(--st-font-sans);
1765
+ --st-component-diagramCard-border: oklch(42% 0.016 250);
1766
+ --st-component-diagramCard-accent: oklch(42% 0.016 250);
1767
+ --st-component-diagramCard-surface: oklch(21% 0.015 250);
1768
+ --st-component-diagramCard-text: oklch(96% 0.005 250);
1769
+ --st-component-diagramCard-secondaryText: oklch(78% 0.012 250);
1770
+ --st-component-diagramCard-rule: oklch(28% 0.014 250);
1771
+ --st-component-diagramCardCompact-width: 352px;
1772
+ --st-component-diagramCardCompact-height: 154px;
1773
+ --st-component-diagramCardCompact-radius: var(--st-component-diagramCard-radius);
1774
+ --st-component-diagramCardCompact-borderWidth: var(--st-component-diagramCard-borderWidth);
1775
+ --st-component-diagramCardCompact-accentWidth: 6px;
1776
+ --st-component-diagramCardCompact-padding: 6px;
1777
+ --st-component-diagramCardCompact-headerInset: 12px;
1778
+ --st-component-diagramCardCompact-iconSize: 52px;
1779
+ --st-component-diagramCardCompact-iconTextGap: 4px;
1780
+ --st-component-diagramCardCompact-kickerFontSize: var(--st-component-diagramCard-kickerFontSize);
1781
+ --st-component-diagramCardCompact-kickerFontWeight: var(--st-component-diagramCard-kickerFontWeight);
1782
+ --st-component-diagramCardCompact-kickerLineHeight: var(--st-component-diagramCard-kickerLineHeight);
1783
+ --st-component-diagramCardCompact-kickerLetterSpacing: var(--st-component-diagramCard-kickerLetterSpacing);
1784
+ --st-component-diagramCardCompact-kickerTextTransform: var(--st-component-diagramCard-kickerTextTransform);
1785
+ --st-component-diagramCardCompact-titleFontSize: var(--st-component-diagramCard-titleFontSize);
1786
+ --st-component-diagramCardCompact-titleFontWeight: var(--st-component-diagramCard-titleFontWeight);
1787
+ --st-component-diagramCardCompact-titleLineHeight: var(--st-component-diagramCard-titleLineHeight);
1788
+ --st-component-diagramCardCompact-gap: var(--st-component-diagramCard-gap);
1789
+ --st-component-diagramCardCompact-bodyFontSize: var(--st-component-diagramCard-bodyFontSize);
1790
+ --st-component-diagramCardCompact-bodyFontWeight: var(--st-component-diagramCard-bodyFontWeight);
1791
+ --st-component-diagramCardCompact-bodyLineHeight: var(--st-component-diagramCard-bodyLineHeight);
1792
+ --st-component-diagramCardCompact-bodyInsetFromBar: 10px;
1793
+ --st-component-diagramCardCompact-ruleHeight: var(--st-component-diagramCard-ruleHeight);
1794
+ --st-component-diagramCardCompact-ruleMargin: var(--st-component-diagramCard-ruleMargin);
1795
+ --st-component-diagramCardCompact-ruleInsetStart: var(--st-component-diagramCard-ruleInsetStart);
1796
+ --st-component-diagramCardCompact-ruleInsetEnd: var(--st-component-diagramCard-ruleInsetEnd);
1797
+ --st-component-diagramCardCompact-footerFontSize: var(--st-component-diagramCard-footerFontSize);
1798
+ --st-component-diagramCardCompact-footerFontWeight: var(--st-component-diagramCard-footerFontWeight);
1799
+ --st-component-diagramCardCompact-footerLineHeight: var(--st-component-diagramCard-footerLineHeight);
1800
+ --st-component-diagramCardCompact-footerBottomInset: var(--st-component-diagramCard-footerBottomInset);
1801
+ --st-component-diagramCardCompact-toggleAllocation: var(--st-component-diagramCard-toggleAllocation);
1802
+ --st-component-diagramCardCompact-toggleBoxSize: var(--st-component-diagramCard-toggleBoxSize);
1803
+ --st-component-diagramCardCompact-toggleInset: var(--st-component-diagramCard-toggleInset);
1804
+ --st-component-diagramCardCompact-foldedHeaderTextWidth: 210px;
1805
+ --st-component-diagramCardCompact-proposedDashArray: var(--st-component-diagramCard-proposedDashArray);
1806
+ --st-component-diagramCardCompact-fontFamily: var(--st-component-diagramCard-fontFamily);
1807
+ --st-component-diagramCardCompact-border: var(--st-component-diagramCard-border);
1808
+ --st-component-diagramCardCompact-accent: var(--st-component-diagramCard-accent);
1809
+ --st-component-diagramCardCompact-surface: var(--st-component-diagramCard-surface);
1810
+ --st-component-diagramCardCompact-text: var(--st-component-diagramCard-text);
1811
+ --st-component-diagramCardCompact-secondaryText: var(--st-component-diagramCard-secondaryText);
1812
+ --st-component-diagramCardCompact-rule: var(--st-component-diagramCard-rule);
1813
+ --st-component-diagramZone-toggleInset: 8px;
1814
+ --st-component-diagramZone-radius: 0;
1815
+ --st-component-diagramZone-borderWidth: 1.5px;
1816
+ --st-component-diagramZone-headerInset: 16px;
1817
+ --st-component-diagramZone-iconSize: 70px;
1818
+ --st-component-diagramZone-iconTextGap: 6px;
1819
+ --st-component-diagramZone-kickerFontSize: var(--st-component-diagramCard-kickerFontSize);
1820
+ --st-component-diagramZone-kickerFontWeight: var(--st-component-diagramCard-kickerFontWeight);
1821
+ --st-component-diagramZone-kickerLineHeight: var(--st-component-diagramCard-kickerLineHeight);
1822
+ --st-component-diagramZone-kickerLetterSpacing: var(--st-component-diagramCard-kickerLetterSpacing);
1823
+ --st-component-diagramZone-kickerTextTransform: var(--st-component-diagramCard-kickerTextTransform);
1824
+ --st-component-diagramZone-titleFontSize: var(--st-component-diagramCard-titleFontSize);
1825
+ --st-component-diagramZone-titleFontWeight: var(--st-component-diagramCard-titleFontWeight);
1826
+ --st-component-diagramZone-titleLineHeight: var(--st-component-diagramCard-titleLineHeight);
1827
+ --st-component-diagramZone-subtitleFontSize: 24px;
1828
+ --st-component-diagramZone-subtitleFontWeight: 400;
1829
+ --st-component-diagramZone-subtitleLineHeight: 1.3;
1830
+ --st-component-diagramZone-subtitleGap: var(--st-component-diagramCard-gap);
1831
+ --st-component-diagramZone-headerRuleGap: 4px;
1832
+ --st-component-diagramZone-contentInsetTop: var(--st-component-diagramScene-containerPadding);
1833
+ --st-component-diagramZone-contentInsetBottom: var(--st-component-diagramScene-containerPadding);
1834
+ --st-component-diagramZone-contentInsetInline: var(--st-component-diagramScene-containerPadding);
1835
+ --st-component-diagramZone-collapsedWidth: 460px;
1836
+ --st-component-diagramZone-collapsedHeight: 200px;
1837
+ --st-component-diagramZone-collapsedInset: 16px;
1838
+ --st-component-diagramZone-collapsedSubtitleMarginInline: 16px;
1839
+ --st-component-diagramZone-toggleAllocation: var(--st-component-diagramCard-toggleAllocation);
1840
+ --st-component-diagramZone-toggleBoxSize: var(--st-component-diagramCard-toggleBoxSize);
1841
+ --st-component-diagramZone-headerTextInset: 178px;
1842
+ --st-component-diagramZone-toggleTopInset: var(--st-component-diagramZone-toggleInset);
1843
+ --st-component-diagramZone-footerBottomInset: var(--st-component-diagramCard-footerBottomInset);
1844
+ --st-component-diagramZone-proposedDashArray: 4 5;
1845
+ --st-component-diagramZone-childGapInline: var(--st-component-diagramScene-gapMin);
1846
+ --st-component-diagramZone-childGapBlock: var(--st-component-diagramScene-gapMinBlock);
1847
+ --st-component-diagramZone-gapInlineMax: var(--st-component-diagramScene-gapMax);
1848
+ --st-component-diagramZone-gapBlockMax: var(--st-component-diagramScene-gapMax);
1849
+ --st-component-diagramZone-rowPackTargetAspect: 1.78;
1850
+ --st-component-diagramZone-border: oklch(42% 0.016 250);
1851
+ --st-component-diagramZone-surface: oklch(21% 0.015 250);
1852
+ --st-component-diagramZone-surface1: oklch(21% 0.015 250);
1853
+ --st-component-diagramZone-surface2: oklch(19% 0.014 250);
1854
+ --st-component-diagramZone-text: oklch(96% 0.005 250);
1855
+ --st-component-diagramZone-secondaryText: oklch(78% 0.012 250);
1856
+ --st-component-diagramZone-rule: oklch(28% 0.014 250);
1857
+ --st-component-iconButton-smSize: 2rem;
1858
+ --st-component-iconButton-mdSize: 2.25rem;
1859
+ --st-component-iconButton-lgSize: 2.5rem;
1860
+ --st-component-iconButton-radius: 0.375rem;
1861
+ --st-component-iconButton-text: oklch(96% 0.005 250);
1862
+ --st-component-iconButton-focusRing: oklch(72% 0.13 242);
1863
+ --st-component-diagramScene-containerPadding: 16px;
1864
+ --st-component-diagramScene-gapMin: 96px;
1865
+ --st-component-diagramScene-gapMinBlock: 72px;
1866
+ --st-component-diagramScene-gapBase: 64px;
1867
+ --st-component-diagramScene-gapBaseBlock: 8px;
1868
+ --st-component-diagramScene-trackSpacing: 14px;
1869
+ --st-component-diagramScene-trackSpacingBlock: 7px;
1870
+ --st-component-diagramScene-labelBand: 30px;
1871
+ --st-component-diagramScene-gapMax: 240px;
1872
+ --st-component-diagramScene-bundleLabelMaxWidth: 320px;
1873
+ --st-component-diagramScene-labelPadding: 4px;
1874
+ --st-component-diagramScene-labelBorderWidth: 1px;
1875
+ --st-component-diagramScene-bundleMarkerGap: 6px;
1876
+ --st-component-diagramScene-edgeStroke: #64748b;
1877
+ --st-component-diagramScene-labelSurface: #ffffff;
1878
+ --st-component-diagramScene-labelBorder: #cbd5e1;
1879
+ --st-component-diagramScene-labelText: #172033;
1880
+ --st-component-diagramScene-maxDisplayScale: 0.62;
1881
+ --st-component-diagramScene-minReadableScale: 0.30;
1882
+ --st-component-diagramScene-transitionDuration: 240ms;
1883
+ --st-component-diagramScene-edgeLabelFontSize: 18px;
1884
+ --st-component-diagramScene-edgeLabelLineHeight: 22px;
1885
+ --st-component-diagramScene-flowStroke: #c8cacc;
1886
+ --st-component-diagramScene-flowStrokeWidth: 1.5px;
1887
+ --st-component-diagramScene-flowPrimaryStroke: #99d0f5;
1888
+ --st-component-diagramScene-flowPrimaryStrokeWidth: 2.5px;
1889
+ --st-component-diagramScene-flowRelatedStrokeWidth: 2px;
1890
+ --st-component-diagramScene-flowOutlineWidth: 2px;
1891
+ --st-component-diagramScene-flowFocusOutline: #99d0f5;
1892
+ --st-component-diagramScene-flowDimOpacity: 0.6;
1893
+ --st-component-diagramScene-flowFullOpacity: 1;
1894
+ --st-component-diagramScene-flowHiddenOpacity: 0;
1895
+ --st-component-diagramScene-flowHitStroke: transparent;
1896
+ --st-component-diagramScene-flowHitWidth: 16px;
1897
+ --st-component-diagramScene-flowTargetMinSize: 24;
1898
+ --st-component-diagramScene-flowArrowPath: M0 0L10 5L0 10Z;
1899
+ --st-component-diagramScene-flowArrowLength: 10;
1900
+ --st-component-diagramScene-flowArrowWidth: 10;
1901
+ --st-component-diagramScene-flowBadgeSize: 28;
1902
+ --st-component-diagramScene-flowBadgePaddingX: 6;
1903
+ --st-component-diagramScene-flowBadgeRadius: 999px;
1904
+ --st-component-diagramScene-flowBadgeFontSize: 16px;
1905
+ --st-component-diagramScene-flowBadgeLineHeight: 20px;
1906
+ --st-component-diagramScene-flowBadgeBackground: oklch(21% 0.015 250);
1907
+ --st-component-diagramScene-flowBadgeBorder: #c8cacc;
1908
+ --st-component-diagramScene-flowBadgeText: oklch(96% 0.005 250);
1909
+ --st-component-diagramScene-flowFanOutMax: 4;
1910
+ --st-component-diagramScene-readoutMinWidth: 4ch;
1911
+ --st-component-bpmnCanvas-minHeight: 120px;
1912
+ --st-component-diagramIcon-viewBox: 0 0 64 64;
1913
+ --st-component-diagramIcon-basePath: M8 53L32 44L56 53L32 62Z;
1914
+ --st-component-diagramIcon-faceStrokeWidth: 1.5;
1915
+ --st-component-diagramIcon-lineStrokeWidth: 2.5;
1916
+ --st-component-diagramIcon-baseFill: color-mix(in srgb, var(--st-semantic-feedback-info) 18%, var(--st-semantic-surface-raised));
1917
+ --st-component-diagramIcon-faceFill: color-mix(in srgb, var(--st-semantic-feedback-info) 75%, var(--st-semantic-surface-raised));
1918
+ --st-component-diagramIcon-faceStroke: var(--st-semantic-feedback-info);
1919
+ --st-component-diagramIcon-lineStroke: var(--st-semantic-surface-raised);
1920
+ --st-component-diagramIcon-lineDarkStroke: var(--st-semantic-feedback-info);
1495
1921
  }
1496
1922
 
1497
1923
  }
@@ -2216,6 +2642,245 @@ typeof window<`u`&&((window.__svelte??={}).v??=new Set).add(`5`);var e={},t=Symb
2216
2642
  --st-component-graph-community2: oklch(75% 0.14 67);
2217
2643
  --st-component-graph-community3: oklch(68% 0.16 23);
2218
2644
  --st-component-graph-community4: oklch(73% 0.09 195);
2645
+ --st-component-diagramErd-fontFamily: var(--st-font-mono);
2646
+ --st-component-diagramErd-width: 460px;
2647
+ --st-component-diagramErd-headerHeight: 64px;
2648
+ --st-component-diagramErd-rowHeight: 32px;
2649
+ --st-component-diagramErd-lineHeight: 24px;
2650
+ --st-component-diagramErd-padding: 12px;
2651
+ --st-component-diagramErd-keyWidth: 56px;
2652
+ --st-component-diagramErd-nameWidth: 170px;
2653
+ --st-component-diagramErd-typeWidth: 170px;
2654
+ --st-component-diagramErd-fontSize: 18px;
2655
+ --st-component-diagramErd-titleFontSize: 24px;
2656
+ --st-component-diagramErd-markerLength: 24px;
2657
+ --st-component-diagramErd-markerHalfWidth: 8px;
2658
+ --st-component-diagramErd-markerRadius: 4px;
2659
+ --st-component-diagramErd-markerGap: 4px;
2660
+ --st-component-diagramErd-strokeWidth: 1.5px;
2661
+ --st-component-diagramErd-gapInline: 160px;
2662
+ --st-component-diagramErd-gapBlock: 120px;
2663
+ --st-component-diagramErd-labelWidth: 240px;
2664
+ --st-component-diagramCard-width: 460px;
2665
+ --st-component-diagramCard-height: 200px;
2666
+ --st-component-diagramCard-radius: 0;
2667
+ --st-component-diagramCard-borderWidth: 2px;
2668
+ --st-component-diagramCard-accentWidth: 8px;
2669
+ --st-component-diagramCard-padding: 8px;
2670
+ --st-component-diagramCard-headerInset: 16px;
2671
+ --st-component-diagramCard-iconSize: 70px;
2672
+ --st-component-diagramCard-iconTextGap: 6px;
2673
+ --st-component-diagramCard-kickerFontSize: 22px;
2674
+ --st-component-diagramCard-kickerFontWeight: 400;
2675
+ --st-component-diagramCard-kickerLineHeight: 1.3;
2676
+ --st-component-diagramCard-kickerLetterSpacing: 0.04em;
2677
+ --st-component-diagramCard-kickerTextTransform: uppercase;
2678
+ --st-component-diagramCard-titleFontSize: 32px;
2679
+ --st-component-diagramCard-titleFontWeight: 700;
2680
+ --st-component-diagramCard-titleLineHeight: 1.3;
2681
+ --st-component-diagramCard-gap: 6px;
2682
+ --st-component-diagramCard-bodyFontSize: 24px;
2683
+ --st-component-diagramCard-bodyFontWeight: 400;
2684
+ --st-component-diagramCard-bodyLineHeight: 1.3;
2685
+ --st-component-diagramCard-bodyInsetFromBar: 14px;
2686
+ --st-component-diagramCard-ruleHeight: 1px;
2687
+ --st-component-diagramCard-ruleMargin: 4px;
2688
+ --st-component-diagramCard-ruleInsetStart: 16px;
2689
+ --st-component-diagramCard-ruleInsetEnd: 10px;
2690
+ --st-component-diagramCard-footerFontSize: 24px;
2691
+ --st-component-diagramCard-footerFontWeight: 700;
2692
+ --st-component-diagramCard-footerLineHeight: 1.3;
2693
+ --st-component-diagramCard-footerBottomInset: 9.25px;
2694
+ --st-component-diagramCard-toggleAllocation: 66px;
2695
+ --st-component-diagramCard-toggleBoxSize: 32px;
2696
+ --st-component-diagramCard-toggleInset: 8px;
2697
+ --st-component-diagramCard-foldedHeaderTextWidth: 290px;
2698
+ --st-component-diagramCard-rootGapInline: var(--st-component-diagramZone-childGapInline);
2699
+ --st-component-diagramCard-rootGapBlock: var(--st-component-diagramZone-childGapBlock);
2700
+ --st-component-diagramCard-proposedDashArray: 4 5;
2701
+ --st-component-diagramCard-fontFamily: var(--st-font-sans);
2702
+ --st-component-diagramCard-border: oklch(42% 0.016 250);
2703
+ --st-component-diagramCard-accent: oklch(42% 0.016 250);
2704
+ --st-component-diagramCard-surface: oklch(21% 0.015 250);
2705
+ --st-component-diagramCard-text: oklch(96% 0.005 250);
2706
+ --st-component-diagramCard-secondaryText: oklch(78% 0.012 250);
2707
+ --st-component-diagramCard-rule: oklch(28% 0.014 250);
2708
+ --st-component-diagramCardCompact-width: 352px;
2709
+ --st-component-diagramCardCompact-height: 154px;
2710
+ --st-component-diagramCardCompact-radius: var(--st-component-diagramCard-radius);
2711
+ --st-component-diagramCardCompact-borderWidth: var(--st-component-diagramCard-borderWidth);
2712
+ --st-component-diagramCardCompact-accentWidth: 6px;
2713
+ --st-component-diagramCardCompact-padding: 6px;
2714
+ --st-component-diagramCardCompact-headerInset: 12px;
2715
+ --st-component-diagramCardCompact-iconSize: 52px;
2716
+ --st-component-diagramCardCompact-iconTextGap: 4px;
2717
+ --st-component-diagramCardCompact-kickerFontSize: var(--st-component-diagramCard-kickerFontSize);
2718
+ --st-component-diagramCardCompact-kickerFontWeight: var(--st-component-diagramCard-kickerFontWeight);
2719
+ --st-component-diagramCardCompact-kickerLineHeight: var(--st-component-diagramCard-kickerLineHeight);
2720
+ --st-component-diagramCardCompact-kickerLetterSpacing: var(--st-component-diagramCard-kickerLetterSpacing);
2721
+ --st-component-diagramCardCompact-kickerTextTransform: var(--st-component-diagramCard-kickerTextTransform);
2722
+ --st-component-diagramCardCompact-titleFontSize: var(--st-component-diagramCard-titleFontSize);
2723
+ --st-component-diagramCardCompact-titleFontWeight: var(--st-component-diagramCard-titleFontWeight);
2724
+ --st-component-diagramCardCompact-titleLineHeight: var(--st-component-diagramCard-titleLineHeight);
2725
+ --st-component-diagramCardCompact-gap: var(--st-component-diagramCard-gap);
2726
+ --st-component-diagramCardCompact-bodyFontSize: var(--st-component-diagramCard-bodyFontSize);
2727
+ --st-component-diagramCardCompact-bodyFontWeight: var(--st-component-diagramCard-bodyFontWeight);
2728
+ --st-component-diagramCardCompact-bodyLineHeight: var(--st-component-diagramCard-bodyLineHeight);
2729
+ --st-component-diagramCardCompact-bodyInsetFromBar: 10px;
2730
+ --st-component-diagramCardCompact-ruleHeight: var(--st-component-diagramCard-ruleHeight);
2731
+ --st-component-diagramCardCompact-ruleMargin: var(--st-component-diagramCard-ruleMargin);
2732
+ --st-component-diagramCardCompact-ruleInsetStart: var(--st-component-diagramCard-ruleInsetStart);
2733
+ --st-component-diagramCardCompact-ruleInsetEnd: var(--st-component-diagramCard-ruleInsetEnd);
2734
+ --st-component-diagramCardCompact-footerFontSize: var(--st-component-diagramCard-footerFontSize);
2735
+ --st-component-diagramCardCompact-footerFontWeight: var(--st-component-diagramCard-footerFontWeight);
2736
+ --st-component-diagramCardCompact-footerLineHeight: var(--st-component-diagramCard-footerLineHeight);
2737
+ --st-component-diagramCardCompact-footerBottomInset: var(--st-component-diagramCard-footerBottomInset);
2738
+ --st-component-diagramCardCompact-toggleAllocation: var(--st-component-diagramCard-toggleAllocation);
2739
+ --st-component-diagramCardCompact-toggleBoxSize: var(--st-component-diagramCard-toggleBoxSize);
2740
+ --st-component-diagramCardCompact-toggleInset: var(--st-component-diagramCard-toggleInset);
2741
+ --st-component-diagramCardCompact-foldedHeaderTextWidth: 210px;
2742
+ --st-component-diagramCardCompact-proposedDashArray: var(--st-component-diagramCard-proposedDashArray);
2743
+ --st-component-diagramCardCompact-fontFamily: var(--st-component-diagramCard-fontFamily);
2744
+ --st-component-diagramCardCompact-border: var(--st-component-diagramCard-border);
2745
+ --st-component-diagramCardCompact-accent: var(--st-component-diagramCard-accent);
2746
+ --st-component-diagramCardCompact-surface: var(--st-component-diagramCard-surface);
2747
+ --st-component-diagramCardCompact-text: var(--st-component-diagramCard-text);
2748
+ --st-component-diagramCardCompact-secondaryText: var(--st-component-diagramCard-secondaryText);
2749
+ --st-component-diagramCardCompact-rule: var(--st-component-diagramCard-rule);
2750
+ --st-component-diagramZone-toggleInset: 8px;
2751
+ --st-component-diagramZone-radius: 0;
2752
+ --st-component-diagramZone-borderWidth: 1.5px;
2753
+ --st-component-diagramZone-headerInset: 16px;
2754
+ --st-component-diagramZone-iconSize: 70px;
2755
+ --st-component-diagramZone-iconTextGap: 6px;
2756
+ --st-component-diagramZone-kickerFontSize: var(--st-component-diagramCard-kickerFontSize);
2757
+ --st-component-diagramZone-kickerFontWeight: var(--st-component-diagramCard-kickerFontWeight);
2758
+ --st-component-diagramZone-kickerLineHeight: var(--st-component-diagramCard-kickerLineHeight);
2759
+ --st-component-diagramZone-kickerLetterSpacing: var(--st-component-diagramCard-kickerLetterSpacing);
2760
+ --st-component-diagramZone-kickerTextTransform: var(--st-component-diagramCard-kickerTextTransform);
2761
+ --st-component-diagramZone-titleFontSize: var(--st-component-diagramCard-titleFontSize);
2762
+ --st-component-diagramZone-titleFontWeight: var(--st-component-diagramCard-titleFontWeight);
2763
+ --st-component-diagramZone-titleLineHeight: var(--st-component-diagramCard-titleLineHeight);
2764
+ --st-component-diagramZone-subtitleFontSize: 24px;
2765
+ --st-component-diagramZone-subtitleFontWeight: 400;
2766
+ --st-component-diagramZone-subtitleLineHeight: 1.3;
2767
+ --st-component-diagramZone-subtitleGap: var(--st-component-diagramCard-gap);
2768
+ --st-component-diagramZone-headerRuleGap: 4px;
2769
+ --st-component-diagramZone-contentInsetTop: var(--st-component-diagramScene-containerPadding);
2770
+ --st-component-diagramZone-contentInsetBottom: var(--st-component-diagramScene-containerPadding);
2771
+ --st-component-diagramZone-contentInsetInline: var(--st-component-diagramScene-containerPadding);
2772
+ --st-component-diagramZone-collapsedWidth: 460px;
2773
+ --st-component-diagramZone-collapsedHeight: 200px;
2774
+ --st-component-diagramZone-collapsedInset: 16px;
2775
+ --st-component-diagramZone-collapsedSubtitleMarginInline: 16px;
2776
+ --st-component-diagramZone-toggleAllocation: var(--st-component-diagramCard-toggleAllocation);
2777
+ --st-component-diagramZone-toggleBoxSize: var(--st-component-diagramCard-toggleBoxSize);
2778
+ --st-component-diagramZone-headerTextInset: 178px;
2779
+ --st-component-diagramZone-toggleTopInset: var(--st-component-diagramZone-toggleInset);
2780
+ --st-component-diagramZone-footerBottomInset: var(--st-component-diagramCard-footerBottomInset);
2781
+ --st-component-diagramZone-proposedDashArray: 4 5;
2782
+ --st-component-diagramZone-childGapInline: var(--st-component-diagramScene-gapMin);
2783
+ --st-component-diagramZone-childGapBlock: var(--st-component-diagramScene-gapMinBlock);
2784
+ --st-component-diagramZone-gapInlineMax: var(--st-component-diagramScene-gapMax);
2785
+ --st-component-diagramZone-gapBlockMax: var(--st-component-diagramScene-gapMax);
2786
+ --st-component-diagramZone-rowPackTargetAspect: 1.78;
2787
+ --st-component-diagramZone-border: oklch(42% 0.016 250);
2788
+ --st-component-diagramZone-surface: oklch(21% 0.015 250);
2789
+ --st-component-diagramZone-surface1: oklch(21% 0.015 250);
2790
+ --st-component-diagramZone-surface2: oklch(19% 0.014 250);
2791
+ --st-component-diagramZone-text: oklch(96% 0.005 250);
2792
+ --st-component-diagramZone-secondaryText: oklch(78% 0.012 250);
2793
+ --st-component-diagramZone-rule: oklch(28% 0.014 250);
2794
+ --st-component-iconButton-smSize: 2rem;
2795
+ --st-component-iconButton-mdSize: 2.25rem;
2796
+ --st-component-iconButton-lgSize: 2.5rem;
2797
+ --st-component-iconButton-radius: 0.375rem;
2798
+ --st-component-iconButton-text: oklch(96% 0.005 250);
2799
+ --st-component-iconButton-focusRing: oklch(72% 0.13 242);
2800
+ --st-component-diagramScene-containerPadding: 16px;
2801
+ --st-component-diagramScene-gapMin: 96px;
2802
+ --st-component-diagramScene-gapMinBlock: 72px;
2803
+ --st-component-diagramScene-gapBase: 64px;
2804
+ --st-component-diagramScene-gapBaseBlock: 8px;
2805
+ --st-component-diagramScene-trackSpacing: 14px;
2806
+ --st-component-diagramScene-trackSpacingBlock: 7px;
2807
+ --st-component-diagramScene-labelBand: 30px;
2808
+ --st-component-diagramScene-gapMax: 240px;
2809
+ --st-component-diagramScene-bundleLabelMaxWidth: 320px;
2810
+ --st-component-diagramScene-labelPadding: 4px;
2811
+ --st-component-diagramScene-labelBorderWidth: 1px;
2812
+ --st-component-diagramScene-bundleMarkerGap: 6px;
2813
+ --st-component-diagramScene-edgeStroke: #64748b;
2814
+ --st-component-diagramScene-labelSurface: #ffffff;
2815
+ --st-component-diagramScene-labelBorder: #cbd5e1;
2816
+ --st-component-diagramScene-labelText: #172033;
2817
+ --st-component-diagramScene-maxDisplayScale: 0.62;
2818
+ --st-component-diagramScene-minReadableScale: 0.30;
2819
+ --st-component-diagramScene-transitionDuration: 240ms;
2820
+ --st-component-diagramScene-edgeLabelFontSize: 18px;
2821
+ --st-component-diagramScene-edgeLabelLineHeight: 22px;
2822
+ --st-component-diagramScene-flowStroke: #c8cacc;
2823
+ --st-component-diagramScene-flowStrokeWidth: 1.5px;
2824
+ --st-component-diagramScene-flowPrimaryStroke: #99d0f5;
2825
+ --st-component-diagramScene-flowPrimaryStrokeWidth: 2.5px;
2826
+ --st-component-diagramScene-flowRelatedStrokeWidth: 2px;
2827
+ --st-component-diagramScene-flowOutlineWidth: 2px;
2828
+ --st-component-diagramScene-flowFocusOutline: #99d0f5;
2829
+ --st-component-diagramScene-flowDimOpacity: 0.6;
2830
+ --st-component-diagramScene-flowFullOpacity: 1;
2831
+ --st-component-diagramScene-flowHiddenOpacity: 0;
2832
+ --st-component-diagramScene-flowHitStroke: transparent;
2833
+ --st-component-diagramScene-flowHitWidth: 16px;
2834
+ --st-component-diagramScene-flowTargetMinSize: 24;
2835
+ --st-component-diagramScene-flowArrowPath: M0 0L10 5L0 10Z;
2836
+ --st-component-diagramScene-flowArrowLength: 10;
2837
+ --st-component-diagramScene-flowArrowWidth: 10;
2838
+ --st-component-diagramScene-flowBadgeSize: 28;
2839
+ --st-component-diagramScene-flowBadgePaddingX: 6;
2840
+ --st-component-diagramScene-flowBadgeRadius: 999px;
2841
+ --st-component-diagramScene-flowBadgeFontSize: 16px;
2842
+ --st-component-diagramScene-flowBadgeLineHeight: 20px;
2843
+ --st-component-diagramScene-flowBadgeBackground: oklch(21% 0.015 250);
2844
+ --st-component-diagramScene-flowBadgeBorder: #c8cacc;
2845
+ --st-component-diagramScene-flowBadgeText: oklch(96% 0.005 250);
2846
+ --st-component-diagramScene-flowFanOutMax: 4;
2847
+ --st-component-diagramScene-readoutMinWidth: 4ch;
2848
+ --st-component-bpmnCanvas-minHeight: 120px;
2849
+ --st-component-diagramIcon-viewBox: 0 0 64 64;
2850
+ --st-component-diagramIcon-basePath: M8 53L32 44L56 53L32 62Z;
2851
+ --st-component-diagramIcon-faceStrokeWidth: 1.5;
2852
+ --st-component-diagramIcon-lineStrokeWidth: 2.5;
2853
+ --st-component-diagramIcon-baseFill: color-mix(in srgb, var(--st-semantic-feedback-info) 18%, var(--st-semantic-surface-raised));
2854
+ --st-component-diagramIcon-faceFill: color-mix(in srgb, var(--st-semantic-feedback-info) 75%, var(--st-semantic-surface-raised));
2855
+ --st-component-diagramIcon-faceStroke: var(--st-semantic-feedback-info);
2856
+ --st-component-diagramIcon-lineStroke: var(--st-semantic-surface-raised);
2857
+ --st-component-diagramIcon-lineDarkStroke: var(--st-semantic-feedback-info);
2219
2858
  }
2220
- `;function fo(e){return`[data-st-theme="${e}"]`}function po(e,t){return e.replace(RegExp(`(^|[\\s,>+~])\\:root(?=\\[data-color-mode=)`,`g`),`$1${fo(t)}`).replace(RegExp(`(^|[\\s,>+~])\\:root(?=\\:not\\()`,`g`),`$1${fo(t)}`).replace(RegExp(`(^|[\\s,>+~])\\:root(?=[\\s,{])`,`g`),`$1${fo(t)}`)}var mo=[`sent-tech`,`forge`,`entropic`],ho={"sent-tech":async()=>uo,forge:async()=>(await Xa(async()=>{let{default:e}=await import(`./chunks/forge-B8hrW4lA.js`);return{default:e}},[])).default,entropic:async()=>(await Xa(async()=>{let{default:e}=await import(`./chunks/entropic-CM5BHERN.js`);return{default:e}},[])).default},go=new Map;function _o(e){return typeof e==`string`&&mo.includes(e)?e:`sent-tech`}async function vo(e){let t=go.get(e);if(t!==void 0)return t;let n=await ho[e](),r=new CSSStyleSheet;return r.replaceSync(po(n,e)),go.set(e,r),r}async function yo(e,t){let n=await vo(t);e.adoptedStyleSheets=[...e.adoptedStyleSheets.filter(e=>e!==n),n]}function bo(e,t){let n=go.get(t);e.adoptedStyleSheets=e.adoptedStyleSheets.filter(e=>e!==n)}function xo(e){return e===`light`||e===`dark`?e:void 0}function So(e){let t=()=>{for(let t of[...e.querySelectorAll(`style`)]){let n=t.textContent??``;try{let r=new CSSStyleSheet;r.replaceSync(n),e.adoptedStyleSheets=[...e.adoptedStyleSheets.filter(e=>e!==r),r],t.remove()}catch{}}};t();let n=new MutationObserver(t);return n.observe(e,{childList:!0}),()=>n.disconnect()}function Co(e,t){let n=e.getRootNode(),r=n instanceof ShadowRoot?n:void 0,i=r?.host;i instanceof HTMLElement&&co(i,t.runtime);let a=_o(t.theme),o;return r!==void 0&&(yo(r,a),o=So(r)),{update(e){let t=_o(e.theme);t!==a&&(r!==void 0&&(bo(r,a),yo(r,t)),a=t)},destroy(){o?.()}}}function wo(e){return _o(e)}function To(e){return xo(e)}function Eo(e){if(e===null||e.textContent===null)return;let t=e.textContent;try{return{value:JSON.parse(t),parsed:!0}}catch{return{value:t,parsed:!1}}}function Do(e){for(let t of e.children)if(t instanceof HTMLScriptElement&&t.type===`application/json`)return Eo(t)}function Oo(e){let t=e.getElementById(`st-host-config`);if(t===null)return;let n=Eo(t);return n!==void 0&&n.parsed?n.value:void 0}function ko(e,t){let n=new MutationObserver(()=>{t(Do(e))});return n.observe(e,{childList:!0,subtree:!1}),()=>n.disconnect()}function Ao(e,t){let n=e.getRootNode(),r=n instanceof ShadowRoot&&n.host instanceof HTMLElement?n.host:void 0,i;if(r!==void 0){let e=Do(r);e!==void 0&&t.apply(e.value),i=ko(r,e=>{t.apply(e===void 0?void 0:e.value)})}return{destroy(){i?.()}}}function jo(e,t,n,r={}){let i={event:`intent`,name:t,target:n,context:r};e.dispatchEvent(new CustomEvent(`st-intent`,{detail:i,bubbles:!0,composed:!0}))}var Mo=_r(`<li class="st-element__errorItem svelte-ia8wso" data-st-error-item=""><code class="st-element__errorCode svelte-ia8wso" data-st-error-code=""> </code> <span class="st-element__errorPath svelte-ia8wso" data-st-error-path=""> </span> <span class="st-element__errorMessage" data-st-error-message=""> </span></li>`),No=_r(`<div class="st-element__error svelte-ia8wso" role="alert" data-st-error=""><p class="st-element__errorTitle svelte-ia8wso" data-st-error-title=""> </p> <ul class="st-element__errorList svelte-ia8wso"></ul></div>`),Po={hash:`svelte-ia8wso`,code:`.st-element__error.svelte-ia8wso {border:1px solid var(--st-color-feedback-error-border, #dc2626);border-radius:8px;padding:12px;font-family:inherit;color:var(--st-color-feedback-error-text, #7f1d1d);background:var(--st-color-feedback-error-background, #fef2f2);}.st-element__errorTitle.svelte-ia8wso {margin:0 0 8px;font-weight:600;}.st-element__errorList.svelte-ia8wso {margin:0;padding:0;list-style:none;}.st-element__errorItem.svelte-ia8wso {display:grid;grid-template-columns:auto auto 1fr;gap:8px;margin:4px 0;font-size:0.875rem;}.st-element__errorCode.svelte-ia8wso {font-family:ui-monospace, monospace;}.st-element__errorPath.svelte-ia8wso {font-family:ui-monospace, monospace;opacity:0.8;}`};function Fo(e,t){Ve(t,!0),zr(e,Po);var n=No(),r=L(n),i=L(r);A(r);var a=z(r,2);Z(a,21,()=>t.diagnostics,e=>e.code+`|`+e.path+`|`+e.message,(e,t)=>{var n=Mo(),r=L(n),i=L(r,!0);A(r);var a=z(r,2),o=L(a,!0);A(a);var s=z(a,2),c=L(s,!0);A(s),A(n),B(()=>{Y(i,K(t).code),Y(o,K(t).path||`(envelope)`),Y(c,K(t).message)}),J(e,n)}),A(a),A(n),B(()=>Y(i,`The envelope does not render — ${t.diagnostics.length??``}
2221
- ${t.diagnostics.length===1?`diagnostic`:`diagnostics`}:`)),J(e,n),He()}var Io=_r(`<div class="st-element__root svelte-17allio"><!></div>`),Lo={hash:`svelte-17allio`,code:`.st-element__root.svelte-17allio {display:block;}`};function Ro(e,t){Ve(t,!0),zr(e,Lo);let n=ci(t,`envelope`,7),r=ci(t,`hostConfig`,7),i=io(`BarChart`),a=F(void 0),o=F(void 0),s=F(void 0),c=F(!1);kr(()=>{I(s,Oo(globalThis.document),!0),I(c,!0)});let l=P(()=>n()??K(o)),u=P(()=>r()??K(s));fn(()=>{(K(l)!==void 0||K(c))&&i.ingest(K(l),K(u))});var d={get envelope(){return n()},set envelope(e){n(e),pt()},get hostConfig(){return r()},set hostConfig(e){r(e),pt()}},f=Io(),p=L(f),m=e=>{Fo(e,{get diagnostics(){return i.diagnostics}})},h=e=>{fa(e,si(()=>i.payload.props,{onSelect:e=>{K(a)!==void 0&&jo(K(a),`select`,e)},onSelectKey:e=>{e!==null&&K(a)!==void 0&&jo(K(a),`select`,e)}}))};return X(p,e=>{i.state===`refused`?e(m):i.payload?.kind===`bar-chart`&&e(h,1)}),A(f),ai(f,e=>I(a,e),()=>K(a)),Br(f,(e,t)=>Co?.(e,t),()=>({runtime:i,theme:K(u)?.theme,colorScheme:K(u)?.colorScheme})),Br(f,(e,t)=>Ao?.(e,t),()=>({apply:e=>I(o,e,!0)})),B((e,t)=>{Q(f,`data-st-theme`,e),Q(f,`data-color-mode`,t)},[()=>wo(K(u)?.theme),()=>To(K(u)?.colorScheme)]),J(e,f),He(d)}customElements.define(`st-bar-chart`,mi(Ro,{envelope:{},hostConfig:{}},[],[],{mode:`open`}));function zo(e,t){let n=t,r=0,i;async function a(){let t=++r,a=n.runtime.payload;if(a===null||a.kind!==`bpmn`)return;let o=await Xa(()=>import(`./chunks/bpmn-canvas-DeAWdJFy.js`).then(e=>e.t),[]);t===r&&(i?.(),i=await o.renderBpmn(e,a,n.runtime.noteEngineDiagnostic),t!==r&&(i?.(),i=void 0))}return a(),{update(e){n=e,a()},destroy(){r++,i?.(),i=void 0}}}function Bo(e,t){let n=t,r=0,i;async function a(){let t=++r,a=n.runtime.payload;if(a===null||a.kind!==`dossier`)return;let o=await Xa(()=>import(`./chunks/focus-renderer-0elVToA2.js`),[]);t===r&&(i?.(),i=o.renderDossier(e,a.document,t=>{jo(e,`choose-option`,t)}),t!==r&&(i?.(),i=void 0))}return a(),{update(e){n=e,a()},destroy(){r++,i?.(),i=void 0}}}var Vo=_r(`<div class="st-element__body svelte-ji2uxk"></div>`),Ho=_r(`<div class="st-element__root svelte-ji2uxk"><!></div>`),Uo={hash:`svelte-ji2uxk`,code:`.st-element__root.svelte-ji2uxk {display:block;}.st-element__body.svelte-ji2uxk {min-height:120px;}`};function Wo(e,t){Ve(t,!0),zr(e,Uo);let n=ci(t,`envelope`,7),r=ci(t,`hostConfig`,7),i=io(`BpmnCanvas`),a=F(void 0),o=F(void 0),s=F(!1);kr(()=>{I(o,Oo(globalThis.document),!0),I(s,!0)});let c=P(()=>n()??K(a)),l=P(()=>r()??K(o));fn(()=>{(K(c)!==void 0||K(s))&&i.ingest(K(c),K(l))});var u={get envelope(){return n()},set envelope(e){n(e),pt()},get hostConfig(){return r()},set hostConfig(e){r(e),pt()}},d=Ho(),f=L(d),p=e=>{Fo(e,{get diagnostics(){return i.diagnostics}})},m=e=>{var t=Vo();Br(t,(e,t)=>zo?.(e,t),()=>({runtime:i})),J(e,t)};return X(f,e=>{i.state===`refused`?e(p):i.payload?.kind===`bpmn`&&e(m,1)}),A(d),Br(d,(e,t)=>Co?.(e,t),()=>({runtime:i,theme:K(l)?.theme,colorScheme:K(l)?.colorScheme})),Br(d,(e,t)=>Ao?.(e,t),()=>({apply:e=>I(a,e,!0)})),B((e,t)=>{Q(d,`data-st-theme`,e),Q(d,`data-color-mode`,t)},[()=>wo(K(l)?.theme),()=>To(K(l)?.colorScheme)]),J(e,d),He(u)}customElements.define(`st-bpmn-canvas`,mi(Wo,{envelope:{},hostConfig:{}},[],[],{mode:`open`}));var Go=_r(`<div class="st-element__body"></div>`),Ko=_r(`<div class="st-element__root svelte-2k2x7w"><!></div>`),qo={hash:`svelte-2k2x7w`,code:`.st-element__root.svelte-2k2x7w {display:block;}`};function Jo(e,t){Ve(t,!0),zr(e,qo);let n=ci(t,`envelope`,7),r=ci(t,`hostConfig`,7),i=io(`DecisionDossier`),a=F(void 0),o=F(void 0),s=F(!1);kr(()=>{I(o,Oo(globalThis.document),!0),I(s,!0)});let c=P(()=>n()??K(a)),l=P(()=>r()??K(o));fn(()=>{(K(c)!==void 0||K(s))&&i.ingest(K(c),K(l))});var u={get envelope(){return n()},set envelope(e){n(e),pt()},get hostConfig(){return r()},set hostConfig(e){r(e),pt()}},d=Ko(),f=L(d),p=e=>{Fo(e,{get diagnostics(){return i.diagnostics}})},m=e=>{var t=Go();Br(t,(e,t)=>Bo?.(e,t),()=>({runtime:i})),J(e,t)};return X(f,e=>{i.state===`refused`?e(p):i.payload?.kind===`dossier`&&e(m,1)}),A(d),Br(d,(e,t)=>Co?.(e,t),()=>({runtime:i,theme:K(l)?.theme,colorScheme:K(l)?.colorScheme})),Br(d,(e,t)=>Ao?.(e,t),()=>({apply:e=>I(a,e,!0)})),B((e,t)=>{Q(d,`data-st-theme`,e),Q(d,`data-color-mode`,t)},[()=>wo(K(l)?.theme),()=>To(K(l)?.colorScheme)]),J(e,d),He(u)}customElements.define(`st-decision-dossier`,mi(Jo,{envelope:{},hostConfig:{}},[],[],{mode:`open`})),lo(`st-bar-chart`),lo(`st-bpmn-canvas`),lo(`st-decision-dossier`);export{Hr as n,Xa as t};
2859
+ `;function io(e){return`[data-st-theme="${e}"]`}function ao(e,t){return e.replace(RegExp(`(^|[\\s,>+~])\\:root(?=\\[data-color-mode=)`,`g`),`$1${io(t)}`).replace(RegExp(`(^|[\\s,>+~])\\:root(?=\\:not\\()`,`g`),`$1${io(t)}`).replace(RegExp(`(^|[\\s,>+~])\\:root(?=[\\s,{])`,`g`),`$1${io(t)}`)}var oo=(function(){let e=typeof document<`u`&&document.createElement(`link`).relList;return e&&e.supports&&e.supports(`modulepreload`)?`modulepreload`:`preload`})(),so=function(e){return`/`+e},co={},lo=function(e){return e.pathname.endsWith(`.css`)},uo=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},fo=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=so(t,n);let r=s(t),i=lo(r);return uo(co,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`:oo,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)})},po=[`sent-tech`,`forge`,`entropic`],mo={"sent-tech":async()=>ro,forge:async()=>(await fo(async()=>{let{default:e}=await import(`./chunks/forge-CzwO8Hbe.js`);return{default:e}},[])).default,entropic:async()=>(await fo(async()=>{let{default:e}=await import(`./chunks/entropic-MwNVEq6w.js`);return{default:e}},[])).default},ho=new Map;function go(e){return typeof e==`string`&&po.includes(e)?e:`sent-tech`}async function _o(e){let t=ho.get(e);if(t!==void 0)return t;let n=await mo[e](),r=new CSSStyleSheet;return r.replaceSync(ao(n,e)),ho.set(e,r),r}async function vo(e,t){let n=await _o(t);e.adoptedStyleSheets=[...e.adoptedStyleSheets.filter(e=>e!==n),n]}function yo(e,t){let n=ho.get(t);e.adoptedStyleSheets=e.adoptedStyleSheets.filter(e=>e!==n)}function bo(e){return e===`light`||e===`dark`?e:void 0}function xo(e){let t=()=>{for(let t of[...e.querySelectorAll(`style`)]){let n=t.textContent??``;try{let r=new CSSStyleSheet;r.replaceSync(n),e.adoptedStyleSheets=[...e.adoptedStyleSheets.filter(e=>e!==r),r],t.remove()}catch{}}};t();let n=new MutationObserver(t);return n.observe(e,{childList:!0}),()=>n.disconnect()}function So(e,t){let n=e.getRootNode(),r=n instanceof ShadowRoot?n:void 0,i=r?.host;i instanceof HTMLElement&&to(i,t.runtime);let a=go(t.theme),o;return r!==void 0&&(vo(r,a),o=xo(r)),{update(e){let t=go(e.theme);t!==a&&(r!==void 0&&(yo(r,a),vo(r,t)),a=t)},destroy(){o?.()}}}function Co(e){return go(e)}function wo(e){return bo(e)}function To(e){if(e===null||e.textContent===null)return;let t=e.textContent;try{return{value:JSON.parse(t),parsed:!0}}catch{return{value:t,parsed:!1}}}function Eo(e){for(let t of e.children)if(t instanceof HTMLScriptElement&&t.type===`application/json`)return To(t)}function Do(e){let t=e.getElementById(`st-host-config`);if(t===null)return;let n=To(t);return n!==void 0&&n.parsed?n.value:void 0}function Oo(e,t){let n=new MutationObserver(()=>{t(Eo(e))});return n.observe(e,{childList:!0,subtree:!1}),()=>n.disconnect()}function ko(e,t){let n=e.getRootNode(),r=n instanceof ShadowRoot&&n.host instanceof HTMLElement?n.host:void 0,i;if(r!==void 0){let e=Eo(r);e!==void 0&&t.apply(e.value),i=Oo(r,e=>{t.apply(e===void 0?void 0:e.value)})}return{destroy(){i?.()}}}function Ao(e,t,n,r={}){let i={event:`intent`,name:t,target:n,context:r};e.dispatchEvent(new CustomEvent(`st-intent`,{detail:i,bubbles:!0,composed:!0}))}var jo=G(`<li class="st-element__errorItem svelte-ia8wso" data-st-error-item=""><code class="st-element__errorCode svelte-ia8wso" data-st-error-code=""> </code> <span class="st-element__errorPath svelte-ia8wso" data-st-error-path=""> </span> <span class="st-element__errorMessage" data-st-error-message=""> </span></li>`),Mo=G(`<div class="st-element__error svelte-ia8wso" role="alert" data-st-error=""><p class="st-element__errorTitle svelte-ia8wso" data-st-error-title=""> </p> <ul class="st-element__errorList svelte-ia8wso"></ul></div>`),No={hash:`svelte-ia8wso`,code:`.st-element__error.svelte-ia8wso {border:1px solid var(--st-color-feedback-error-border, #dc2626);border-radius:8px;padding:12px;font-family:inherit;color:var(--st-color-feedback-error-text, #7f1d1d);background:var(--st-color-feedback-error-background, #fef2f2);}.st-element__errorTitle.svelte-ia8wso {margin:0 0 8px;font-weight:600;}.st-element__errorList.svelte-ia8wso {margin:0;padding:0;list-style:none;}.st-element__errorItem.svelte-ia8wso {display:grid;grid-template-columns:auto auto 1fr;gap:8px;margin:4px 0;font-size:0.875rem;}.st-element__errorCode.svelte-ia8wso {font-family:ui-monospace, monospace;}.st-element__errorPath.svelte-ia8wso {font-family:ui-monospace, monospace;opacity:0.8;}`};function Po(e,t){Be(t,!0),Br(e,No);var n=Mo(),r=R(n),i=R(r);j(r);var a=B(r,2);X(a,21,()=>t.diagnostics,e=>e.code+`|`+e.path+`|`+e.message,(e,t)=>{var n=jo(),r=R(n),i=R(r,!0);j(r);var a=B(r,2),o=R(a,!0);j(a);var s=B(a,2),c=R(s,!0);j(s),j(n),V(()=>{J(i,W(t).code),J(o,W(t).path||`(envelope)`),J(c,W(t).message)}),q(e,n)}),j(a),j(n),V(()=>J(i,`The envelope does not render — ${t.diagnostics.length??``}
2860
+ ${t.diagnostics.length===1?`diagnostic`:`diagnostics`}:`)),q(e,n),Ve()}var Fo=G(`<div class="st-element__root svelte-17allio"><!></div>`),Io={hash:`svelte-17allio`,code:`.st-element__root.svelte-17allio {display:block;}`};function Lo(e,t){Be(t,!0),Br(e,Io);let n=Q(t,`envelope`,7),r=Q(t,`hostConfig`,7),i=Za(`BarChart`),a=I(void 0),o=I(void 0),s=I(void 0),c=I(!1);Ar(()=>{L(s,Do(globalThis.document),!0),L(c,!0)});let l=F(()=>n()??W(o)),u=F(()=>r()??W(s));dn(()=>{(W(l)!==void 0||W(c))&&i.ingest(W(l),W(u))});var d={get envelope(){return n()},set envelope(e){n(e),ft()},get hostConfig(){return r()},set hostConfig(e){r(e),ft()}},f=Fo(),p=R(f),m=e=>{Po(e,{get diagnostics(){return i.diagnostics}})},h=e=>{pa(e,ci(()=>i.payload.props,{onSelect:e=>{W(a)!==void 0&&Ao(W(a),`select`,e)},onSelectKey:e=>{e!==null&&W(a)!==void 0&&Ao(W(a),`select`,e)}}))};return Y(p,e=>{i.state===`refused`?e(m):i.payload?.kind===`bar-chart`&&e(h,1)}),j(f),oi(f,e=>L(a,e),()=>W(a)),Vr(f,(e,t)=>So?.(e,t),()=>({runtime:i,theme:W(u)?.theme,colorScheme:W(u)?.colorScheme})),Vr(f,(e,t)=>ko?.(e,t),()=>({apply:e=>L(o,e,!0)})),V((e,t)=>{Z(f,`data-st-theme`,e),Z(f,`data-color-mode`,t)},[()=>Co(W(u)?.theme),()=>wo(W(u)?.colorScheme)]),q(e,f),Ve(d)}customElements.define(`st-bar-chart`,mi(Lo,{envelope:{},hostConfig:{}},[],[],{mode:`open`}));function Ro(e){let t=e?.bpmn?.watermark;if(t===void 0)return;let{hidden:n,license:r}=t;if(n===!0&&typeof r==`string`&&r.trim()!==``)return{hidden:!0,license:r}}async function zo(e,t){try{let n=xa(e),r=n.ok?n.value:e,i=Ka().validate(r),a=r?.root?.component;if(typeof a==`string`&&a!==`BpmnCanvas`)return{payload:null,diagnostics:[{code:`unknown-component`,path:`/root/component`,message:`<st-bpmn-canvas> requires root.component "BpmnCanvas", got "${a}"`,severity:`error`,source:`catalog`,detail:{expected:`BpmnCanvas`,found:a}}]};let o=i.filter(e=>e.severity===`error`);if(!n.ok||o.length>0&&!o.every(e=>e.code===`host-capability-missing`&&e.detail?.chunk===`bpmn-canvas`))return{payload:null,diagnostics:i};let s=await fo(()=>import(`./chunks/bpmn-canvas-BevbP_6a.js`),[]);qa(`bpmn-canvas`,s.port);let c=Ka().validate(r);if(c.some(e=>e.severity===`error`))return{payload:null,diagnostics:c};let l=await s.toXml(r.root.document);return l.ok?{diagnostics:c,payload:{kind:`bpmn`,xml:l.xml,assetBase:typeof t?.assetBase==`string`?t.assetBase:void 0,watermark:Ro(t)}}:{payload:null,diagnostics:[{code:`semantic-invalid`,path:`/root/document`,message:l.message,severity:`error`,source:`bpmn-canvas`,detail:{code:l.code}}]}}catch(e){return{payload:null,diagnostics:[ma(`bpmn-canvas`,e instanceof Error?e.message:String(e))]}}}function Bo(e,t){let n;function r({runtime:t}){n?.abort();let r=t.payload;if(r?.kind!==`bpmn`)return;n=new AbortController;let{signal:i}=n;fo(async()=>{let{renderBpmn:e}=await import(`./chunks/bpmn-mount-BhO_zb0S.js`);return{renderBpmn:e}},[]).then(async({renderBpmn:n})=>{i.aborted||await n(e,r,t.noteEngineDiagnostic,i)}).catch(e=>{i.aborted||t.noteEngineDiagnostic(ma(`bpmn-canvas`,e instanceof Error?e.message:String(e)))})}return r(t),{update:r,destroy:()=>n?.abort()}}var Vo=G(`<div class="st-element__body svelte-ji2uxk"></div>`),Ho=G(`<div class="st-element__root svelte-ji2uxk"><!></div>`),Uo={hash:`svelte-ji2uxk`,code:`.st-element__root.svelte-ji2uxk {display:block;}.st-element__body.svelte-ji2uxk {min-height:120px;}`};function Wo(e,t){Be(t,!0),Br(e,Uo);let n=Q(t,`envelope`,7),r=Q(t,`hostConfig`,7),i=Za(`BpmnCanvas`,{chunk:`bpmn-canvas`,prepare:zo}),a=I(void 0),o=I(void 0),s=I(!1);Ar(()=>{L(o,Do(globalThis.document),!0),L(s,!0)});let c=F(()=>n()??W(a)),l=F(()=>r()??W(o));dn(()=>{(W(c)!==void 0||W(s))&&i.ingest(W(c),W(l))});var u={get envelope(){return n()},set envelope(e){n(e),ft()},get hostConfig(){return r()},set hostConfig(e){r(e),ft()}},d=Ho(),f=R(d),p=e=>{Po(e,{get diagnostics(){return i.diagnostics}})},m=e=>{var t=Vo();Vr(t,(e,t)=>Bo?.(e,t),()=>({runtime:i})),q(e,t)};return Y(f,e=>{i.state===`refused`?e(p):i.payload?.kind===`bpmn`&&e(m,1)}),j(d),Vr(d,(e,t)=>So?.(e,t),()=>({runtime:i,theme:W(l)?.theme,colorScheme:W(l)?.colorScheme})),Vr(d,(e,t)=>ko?.(e,t),()=>({apply:e=>L(a,e,!0)})),V((e,t)=>{Z(d,`data-st-theme`,e),Z(d,`data-color-mode`,t)},[()=>Co(W(l)?.theme),()=>wo(W(l)?.colorScheme)]),q(e,d),Ve(u)}customElements.define(`st-bpmn-canvas`,mi(Wo,{envelope:{},hostConfig:{}},[],[],{mode:`open`}));function Go(e,t){let n=t,r=0,i;async function a(){let t=++r,a=n.runtime.payload;if(a===null||a.kind!==`dossier`)return;let o=await fo(()=>import(`./chunks/focus-renderer-BWm7DlQD.js`),[]);t===r&&(i?.(),i=o.renderDossier(e,a.document,t=>{Ao(e,`choose-option`,t)}),t!==r&&(i?.(),i=void 0))}return a(),{update(e){n=e,a()},destroy(){r++,i?.(),i=void 0}}}var Ko=G(`<div class="st-element__body"></div>`),qo=G(`<div class="st-element__root svelte-2k2x7w"><!></div>`),Jo={hash:`svelte-2k2x7w`,code:`.st-element__root.svelte-2k2x7w {display:block;}`};function Yo(e,t){Be(t,!0),Br(e,Jo);let n=Q(t,`envelope`,7),r=Q(t,`hostConfig`,7),i=Za(`DecisionDossier`,{chunk:`focus`,load:()=>fo(()=>import(`./chunks/focus-renderer-BWm7DlQD.js`),[])}),a=I(void 0),o=I(void 0),s=I(!1);Ar(()=>{L(o,Do(globalThis.document),!0),L(s,!0)});let c=F(()=>n()??W(a)),l=F(()=>r()??W(o));dn(()=>{(W(c)!==void 0||W(s))&&i.ingest(W(c),W(l))});var u={get envelope(){return n()},set envelope(e){n(e),ft()},get hostConfig(){return r()},set hostConfig(e){r(e),ft()}},d=qo(),f=R(d),p=e=>{Po(e,{get diagnostics(){return i.diagnostics}})},m=e=>{var t=Ko();Vr(t,(e,t)=>Go?.(e,t),()=>({runtime:i})),q(e,t)};return Y(f,e=>{i.state===`refused`?e(p):i.payload?.kind===`dossier`&&e(m,1)}),j(d),Vr(d,(e,t)=>So?.(e,t),()=>({runtime:i,theme:W(l)?.theme,colorScheme:W(l)?.colorScheme})),Vr(d,(e,t)=>ko?.(e,t),()=>({apply:e=>L(a,e,!0)})),V((e,t)=>{Z(d,`data-st-theme`,e),Z(d,`data-color-mode`,t)},[()=>Co(W(l)?.theme),()=>wo(W(l)?.colorScheme)]),q(e,d),Ve(u)}customElements.define(`st-decision-dossier`,mi(Yo,{envelope:{},hostConfig:{}},[],[],{mode:`open`}));var Xo=K(`<line class="st-lineChart__grid svelte-1qlig4e"></line><text class="st-lineChart__tickLabel svelte-1qlig4e" text-anchor="end" dominant-baseline="middle"> </text>`,1),Zo=K(`<text class="st-lineChart__tickLabel svelte-1qlig4e"> </text>`),Qo=K(`<text class="st-lineChart__overlayLabel svelte-1qlig4e"> </text>`),$o=K(`<rect></rect><!>`,1),es=K(`<text class="st-lineChart__overlayLabel svelte-1qlig4e"> </text>`),ts=K(`<line></line><!>`,1),ns=K(`<line class="st-lineChart__trend svelte-1qlig4e"></line>`),rs=K(`<text class="st-lineChart__annotationLabel svelte-1qlig4e"> </text>`),is=K(`<rect class="st-lineChart__annotationRegion svelte-1qlig4e"></rect><!>`,1),as=K(`<g class="st-lineChart__annotations st-lineChart__annotations--behind"></g>`),os=K(`<path class="st-lineChart__area svelte-1qlig4e"></path>`),ss=K(`<path class="st-lineChart__line svelte-1qlig4e" fill="none" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path>`),cs=K(`<path class="st-lineChart__line st-lineChart__line--forecast svelte-1qlig4e" fill="none" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path>`),ls=K(`<circle r="4"></circle>`),us=K(`<line class="st-lineChart__goalLine svelte-1qlig4e"></line><text class="st-lineChart__goalLabel svelte-1qlig4e" text-anchor="end"> </text>`,1),ds=K(`<text class="st-lineChart__annotationLabel svelte-1qlig4e"> </text>`),fs=K(`<line class="st-lineChart__annotationLine svelte-1qlig4e"></line><!>`,1),ps=K(`<text class="st-lineChart__annotationLabel svelte-1qlig4e" text-anchor="middle"> </text>`),ms=K(`<polygon class="st-lineChart__annotationShape svelte-1qlig4e"></polygon><!>`,1),hs=K(`<text class="st-lineChart__annotationLabel svelte-1qlig4e" text-anchor="middle"> </text>`),gs=K(`<circle class="st-lineChart__annotationPoint svelte-1qlig4e" r="4.5"></circle><!>`,1),_s=K(`<text class="st-lineChart__annotationText svelte-1qlig4e"> </text>`),vs=K(`<g class="st-lineChart__annotations st-lineChart__annotations--above"></g>`),ys=K(`<text class="st-lineChart__dataLabel svelte-1qlig4e" text-anchor="middle"> </text>`),bs=K(`<g class="st-lineChart__dataLabels" aria-hidden="true"></g>`),xs=K(`<g class="st-lineChart__crosshair" aria-hidden="true"><line class="st-lineChart__crosshairLine svelte-1qlig4e"></line><circle class="st-lineChart__crosshairMarker svelte-1qlig4e" r="5"></circle></g>`),Ss=K(`<rect class="st-lineChart__navDatum" rx="3" role="img"></rect>`),Cs=K(`<svg class="st-lineChart__navLayer svelte-1qlig4e" preserveAspectRatio="xMidYMid meet" width="100%" height="100%" role="group"></svg>`),ws=G(`<div class="st-lineChart__tooltip svelte-1qlig4e" role="presentation"><span class="st-lineChart__tooltipLabel svelte-1qlig4e"> </span> <span class="st-lineChart__tooltipValue svelte-1qlig4e"> </span></div>`),Ts=G(`<div><div class="st-lineChart__visual svelte-1qlig4e" role="img"><svg preserveAspectRatio="xMidYMid meet" width="100%" height="100%" focusable="false" aria-hidden="true" class="svelte-1qlig4e"><!><line class="st-lineChart__axis svelte-1qlig4e"></line><line class="st-lineChart__axis svelte-1qlig4e"></line><!><!><!><!><!><!><!><!><!><!><!><!><!></svg> <!></div> <!> <!></div>`),Es={hash:`svelte-1qlig4e`,code:`.st-lineChart.svelte-1qlig4e {color:var(--st-semantic-data-category1);display:block;font-family:inherit;position:relative;width:100%;}.st-lineChart--category1.svelte-1qlig4e {color:var(--st-semantic-data-category1);}.st-lineChart--category2.svelte-1qlig4e {color:var(--st-semantic-data-category2);}.st-lineChart--category3.svelte-1qlig4e {color:var(--st-semantic-data-category3);}.st-lineChart--category4.svelte-1qlig4e {color:var(--st-semantic-data-category4);}.st-lineChart--category5.svelte-1qlig4e {color:var(--st-semantic-data-category5);}.st-lineChart--category6.svelte-1qlig4e {color:var(--st-semantic-data-category6);}.st-lineChart--category7.svelte-1qlig4e {color:var(--st-semantic-data-category7);}.st-lineChart--category8.svelte-1qlig4e {color:var(--st-semantic-data-category8);}.st-lineChart.svelte-1qlig4e svg:where(.svelte-1qlig4e) {display:block;overflow:visible;}.st-lineChart__visual.svelte-1qlig4e {display:block;position:relative;}.st-lineChart__grid.svelte-1qlig4e {stroke:var(--st-component-lineChart-gridStroke, var(--st-semantic-border-subtle));stroke-dasharray:2 3;stroke-width:1;opacity:0.7;}.st-lineChart__axis.svelte-1qlig4e {stroke:var(--st-component-lineChart-axisStroke, var(--st-semantic-border-subtle));stroke-width:1;}.st-lineChart__tickLabel.svelte-1qlig4e {fill:var(--st-component-lineChart-labelColor, var(--st-semantic-text-secondary));font-size:0.6875rem;}.st-lineChart__line.svelte-1qlig4e {stroke:currentColor;}
2861
+
2862
+ /* Forecast segment — dashed, dedicated tokenized tone (palette purple),
2863
+ mirrors the dataviz ForecastLineChart fallback (dasharray 5 4). */.st-lineChart__line--forecast.svelte-1qlig4e {stroke:var(--st-component-lineChart-forecastStroke, var(--st-semantic-data-category7));stroke-dasharray:5 4;}.st-lineChart__area.svelte-1qlig4e {fill:currentColor;opacity:0.18;stroke:none;}.st-lineChart__dot.svelte-1qlig4e {fill:currentColor;stroke:var(--st-semantic-surface-default);stroke-width:1.5;cursor:pointer;transition:r 120ms ease;}.st-lineChart__dot.svelte-1qlig4e:hover {r:5.5;}.st-lineChart__dot--forecast.svelte-1qlig4e {fill:var(--st-component-lineChart-forecastStroke, var(--st-semantic-data-category7));}
2864
+
2865
+ @media (prefers-reduced-motion: reduce) {.st-lineChart__dot.svelte-1qlig4e {transition:none;}
2866
+ }.st-lineChart__tooltip.svelte-1qlig4e {background:var(--st-component-lineChart-tooltipBackground, var(--st-semantic-surface-inverse));border-radius:var(--st-radius-sm, 0.25rem);color:var(--st-component-lineChart-tooltipText, var(--st-semantic-text-inverse));display:inline-flex;flex-direction:column;font-size:0.75rem;gap:0.125rem;line-height:1.2;padding:0.375rem 0.5rem;pointer-events:none;position:absolute;transform:translate(-50%, calc(-100% - 8px));white-space:nowrap;z-index:1;}.st-lineChart__tooltipLabel.svelte-1qlig4e {font-weight:600;}.st-lineChart__tooltipValue.svelte-1qlig4e {opacity:0.85;}
2867
+
2868
+ /* --- Analytical overlay layer --------------------------------------------
2869
+ Bands sit BELOW the data via render order; their fill uses color-mix (a
2870
+ semi-transparent tint of the tone token) rather than raw opacity, so the
2871
+ data series drawn on top keeps full contrast. */.st-lineChart__band.svelte-1qlig4e {fill:color-mix(in srgb, var(--st-overlay-tone, var(--st-semantic-border-strong)) 12%, transparent);stroke:none;}.st-lineChart__band--neutral.svelte-1qlig4e {--st-overlay-tone: var(--st-semantic-border-strong);}.st-lineChart__band--success.svelte-1qlig4e {--st-overlay-tone: var(--st-semantic-feedback-success);}.st-lineChart__band--warning.svelte-1qlig4e {--st-overlay-tone: var(--st-semantic-feedback-warning);}.st-lineChart__band--error.svelte-1qlig4e {--st-overlay-tone: var(--st-semantic-feedback-error);}.st-lineChart__band--info.svelte-1qlig4e {--st-overlay-tone: var(--st-semantic-feedback-info);}.st-lineChart__refLine.svelte-1qlig4e {stroke:var(--st-overlay-tone, var(--st-semantic-border-strong));stroke-width:1;stroke-dasharray:4 3;}.st-lineChart__refLine--neutral.svelte-1qlig4e {--st-overlay-tone: var(--st-semantic-border-strong);}.st-lineChart__refLine--success.svelte-1qlig4e {--st-overlay-tone: var(--st-semantic-feedback-success);}.st-lineChart__refLine--warning.svelte-1qlig4e {--st-overlay-tone: var(--st-semantic-feedback-warning);}.st-lineChart__refLine--error.svelte-1qlig4e {--st-overlay-tone: var(--st-semantic-feedback-error);}.st-lineChart__refLine--info.svelte-1qlig4e {--st-overlay-tone: var(--st-semantic-feedback-info);}.st-lineChart__overlayLabel.svelte-1qlig4e {fill:var(--st-semantic-text-secondary);font-size:0.625rem;}.st-lineChart__trend.svelte-1qlig4e {stroke:var(--st-semantic-text-secondary);stroke-width:1.5;stroke-dasharray:6 4;opacity:0.85;}
2872
+
2873
+ /* Goal line — drawn ABOVE the data, emphasised (thicker, solid accent). */.st-lineChart__goalLine.svelte-1qlig4e {stroke:var(--st-semantic-feedback-success);stroke-width:2.5;}.st-lineChart__goalLabel.svelte-1qlig4e {fill:var(--st-semantic-feedback-success);font-size:0.6875rem;font-weight:600;}
2874
+
2875
+ /* --- Annotation layer ----------------------------------------------------
2876
+ Regions render BEHIND the series; lines/shapes/points/labels render ABOVE. */.st-lineChart__annotationRegion.svelte-1qlig4e {fill:color-mix(in srgb, var(--st-semantic-feedback-info) 12%, transparent);stroke:none;}.st-lineChart__annotationLine.svelte-1qlig4e {stroke:var(--st-semantic-feedback-info);stroke-width:1.5;stroke-dasharray:4 3;}.st-lineChart__annotationShape.svelte-1qlig4e {fill:color-mix(in srgb, var(--st-semantic-feedback-info) 14%, transparent);stroke:var(--st-semantic-feedback-info);stroke-width:1.5;}.st-lineChart__annotationPoint.svelte-1qlig4e {fill:var(--st-semantic-feedback-info);stroke:var(--st-semantic-surface-default);stroke-width:1.5;}.st-lineChart__annotationLabel.svelte-1qlig4e,
2877
+ .st-lineChart__annotationText.svelte-1qlig4e {fill:var(--st-semantic-text-primary);font-size:0.625rem;font-weight:600;}
2878
+
2879
+ /* Data labels — per-point value, drawn on top. Token-only colour. */.st-lineChart__dataLabel.svelte-1qlig4e {fill:var(--st-semantic-text-primary);font-size:0.6875rem;font-weight:600;}
2880
+
2881
+ /* --- Crosshair layer (FR-3) ----------------------------------------------
2882
+ A tokenised dashed vertical line at the active (hovered/controlled) key,
2883
+ plus an emphasised marker on the point. Decorative (aria-hidden). */.st-lineChart__crosshairLine.svelte-1qlig4e {stroke:var(--st-semantic-border-strong);stroke-width:1;stroke-dasharray:3 3;opacity:0.7;}.st-lineChart__crosshairMarker.svelte-1qlig4e {fill:currentColor;stroke:var(--st-semantic-surface-default);stroke-width:2;}`};function Ds(e,t){Be(t,!0),Br(e,Es);let n=Q(t,`width`,3,480),r=Q(t,`height`,3,240),i=Q(t,`tone`,3,`category1`),a=Q(t,`smooth`,3,!1),o=Q(t,`area`,3,!1),s=Q(t,`trend`,3,!1),c=Q(t,`formatX`,3,String),l=Q(t,`showDataList`,3,!0),u=Q(t,`scale`,3,`linear`),d=Q(t,`invertAxis`,3,!1),f={top:12,right:16,bottom:32,left:44};function p(e,t,n=5){if(!Number.isFinite(e)||!Number.isFinite(t)||e===t)return[Number.isFinite(t)?t:0];let r=(t-e)/Math.max(n-1,1),i=10**Math.floor(Math.log10(r)),a=r/i,o;o=a<1.5?1*i:a<3?2*i:a<7?5*i:10*i;let s=Math.floor(e/o)*o,c=Math.ceil(t/o)*o;if(!Number.isFinite(s)||!Number.isFinite(c)||s+o<=s)return[e,t];let l=[],u=Math.round((c-s)/o);if(!Number.isFinite(u))return[e,t];for(let n=0;n<=u;n++){let r=s+n*o;if(!Number.isFinite(r))return[e,t];let i=o<1e-10?r:Number(r.toFixed(10));i!==l[l.length-1]&&l.push(i)}return l}let m=e=>Array.from(new Set(e.filter(Number.isFinite).map(e=>Number(e.toFixed(10))))).sort((e,t)=>e-t);function h(e,t,n=5){return!Number.isFinite(e)||!Number.isFinite(t)||e>=t?p(e,t,n):m([e,...p(e,t,n).filter(n=>n>e&&n<t),t])}function g(e,t,n,r,i){return n===t?r:r+(e-t)*(i-r)/(n-t)}function _(...e){let t=1/0;for(let n of e)Number.isFinite(n)&&n>0&&n<t&&(t=n);return Number.isFinite(t)?t:1}function v(e,t){let n=e>0?e:1,r=t>n?t:n*10,i=Math.floor(Math.log10(n)),a=Math.ceil(Math.log10(r)),o=[];for(let e=i;e<=a;e++)o.push(Number((10**e).toFixed(10)));return o.length?o:[n]}function y(e,t){return!Number.isFinite(e)||!Number.isFinite(t)||e<=0||e>=t?v(e,t):m([e,...v(e,t).filter(n=>n>e&&n<t),t])}function b(e){return e&&Number.isFinite(e[0])&&Number.isFinite(e[1])&&e[0]<e[1]?e:null}function x(e){return e&&Number.isFinite(e[0])&&Number.isFinite(e[1])&&e[0]>0&&e[0]<e[1]?e:null}function S(e){return Number.isFinite(e)?Math.min(1,Math.max(0,e)):0}function ee(e){return Math.abs(e)>=1e3?`${(e/1e3).toFixed(e%1e3==0?0:1)}k`:Number.isInteger(e)?String(e):e.toFixed(1)}function te(e){return typeof e==`number`&&Number.isFinite(e)}function ne(e,t){return`${e}--${t??`neutral`}`}function re(e){let t=e.filter(e=>Number.isFinite(e.x)&&Number.isFinite(e.y));if(t.length<2)return null;let n=t.length,r=0,i=0,a=0,o=0,s=1/0,c=-1/0;for(let e of t)r+=e.x,i+=e.y,a+=e.x*e.x,o+=e.x*e.y,e.x<s&&(s=e.x),e.x>c&&(c=e.x);let l=n*a-r*r;if(l===0)return null;let u=(n*o-r*i)/l,d=(i-u*r)/n;return!Number.isFinite(u)||!Number.isFinite(d)?null:{slope:u,intercept:d,minX:s,maxX:c}}function ie(e,t,n,r,i){let a=e,o=t,s=e=>{e!==void 0&&Number.isFinite(e)&&(e<a&&(a=e),e>o&&(o=e))};for(let e of n??[])(e.axis??`y`)===`y`&&s(e.value);for(let e of r??[])s(e.from),s(e.to);return i&&s(i.value),[a,o]}function ae(e,t,n,r){let i=[];for(let t of e??[])Number.isFinite(t.value)&&i.push(t.label?`Référence: ${t.label} = ${t.value}`:`Référence: ${t.value}`);for(let e of t??[]){if(!Number.isFinite(e.from)||!Number.isFinite(e.to))continue;let t=Math.min(e.from,e.to),n=Math.max(e.from,e.to);i.push(e.label?`Bande: ${e.label} (${t}–${n})`:`Bande: ${t}–${n}`)}return n&&Number.isFinite(n.value)&&i.push(n.label?`Objectif: ${n.label} = ${n.value}`:`Objectif: ${n.value}`),r&&i.push(`Tendance: pente ${r.slope.toFixed(2)}`),i}let oe=I(null),C=I(-1),se=[],w=F(()=>Math.max(n()-f.left-f.right,1)),T=F(()=>Math.max(r()-f.top-f.bottom,1)),E=F(()=>{if(t.xDomain)return{kind:`numeric`,min:t.xDomain[0],max:t.xDomain[1]};if(t.data.length===0)return{kind:`ordinal`,values:[]};if(t.data.every(e=>te(e.x))){let e=t.data.map(e=>e.x);return{kind:`numeric`,min:Math.min(...e),max:Math.max(...e)}}return{kind:`ordinal`,values:t.data.map(e=>e.x)}}),D=F(()=>t.goalLine&&Number.isFinite(t.goalLine.value)?t.goalLine:null),ce=F(()=>u()===`log`),le=F(()=>W(ce)?x(t.domain):b(t.domain)),ue=F(()=>{let e=t.data.map(e=>e.y).filter(e=>Number.isFinite(e));if(W(ce)){let n=[...(t.referenceLines??[]).filter(e=>(e.axis??`y`)===`y`).map(e=>e.value),...(t.bands??[]).flatMap(e=>[e.from,e.to]),...W(D)?[W(D).value]:[]],r,i;return W(le)?(r=W(le)[0],i=W(le)[1]):(r=_(...e,...n),i=Math.max(r,...e.filter(e=>e>0),...n.filter(e=>e>0))),W(le)?y(r,i):v(r,i)}if(W(le))return h(W(le)[0],W(le)[1],5);if(e.length===0&&!t.referenceLines?.length&&!t.bands?.length&&!W(D))return[0];let n=e.length?Math.min(...e):0,r=e.length?Math.max(...e):0;[n,r]=ie(n,r,t.referenceLines,t.bands,W(D));let i=r-n,a=(Number.isFinite(i)?i*.08:r*.08-n*.08)||Math.max(Math.abs(r),1)*.1;return p(Math.max(-Number.MAX_VALUE,n-a),Math.min(Number.MAX_VALUE,r+a),5)}),de=F(()=>W(ue).length===0?{min:0,max:1}:{min:W(ue)[0],max:W(ue)[W(ue).length-1]}),fe=F(()=>e=>{let t;if(W(ce)){let n=Math.log10(W(de).min),r=Math.log10(W(de).max),i=e>0?e:W(de).min;t=r===n?0:(Math.log10(i)-n)/(r-n)}else{let{min:n,max:r}=W(de),i=r-n;t=Number.isFinite(i)?i===0?0:(e-n)/i:(e/2-n/2)/(r/2-n/2)}return S(d()?1-t:t)}),pe=F(()=>e=>W(T)*(1-W(fe)(e))),O=F(()=>t.data.length===0?[]:t.data.map((e,n)=>{let r;if(W(E).kind===`numeric`)r=g(e.x,W(E).min,W(E).max,0,W(w));else{let e=Math.max(t.data.length-1,1);r=t.data.length===1?W(w)/2:n/e*W(w)}let i=W(pe)(e.y);return{x:f.left+r,y:f.top+i,datum:e,index:n}})),me=F(()=>(t.bands??[]).filter(e=>Number.isFinite(e.from)&&Number.isFinite(e.to)).map((e,t)=>{let n=f.top+W(pe)(e.from),r=f.top+W(pe)(e.to);return{key:t,x:f.left,y:Math.min(n,r),width:W(w),height:Math.max(Math.abs(r-n),.5),label:e.label,tone:e.tone}})),he=F(()=>(t.referenceLines??[]).filter(e=>Number.isFinite(e.value)).map((e,t)=>{let n=e.axis??`y`;if(n===`x`){if(W(E).kind!==`numeric`)return null;let r=f.left+g(e.value,W(E).min,W(E).max,0,W(w));return{key:t,axis:n,x1:r,x2:r,y1:f.top,y2:f.top+W(T),label:e.label,tone:e.tone}}let r=f.top+W(pe)(e.value);return{key:t,axis:n,x1:f.left,x2:f.left+W(w),y1:r,y2:r,label:e.label,tone:e.tone}}).filter(e=>e!==null)),ge=F(()=>W(D)?{y:f.top+W(pe)(W(D).value),label:W(D).label,value:W(D).value}:null),_e=F(()=>s()&&W(E).kind===`numeric`?re(t.data.map(e=>({x:e.x,y:e.y}))):null),ve=F(()=>!W(_e)||W(E).kind!==`numeric`?null:{x1:f.left+g(W(_e).minX,W(E).min,W(E).max,0,W(w)),y1:f.top+W(pe)(W(_e).slope*W(_e).minX+W(_e).intercept),x2:f.left+g(W(_e).maxX,W(E).min,W(E).max,0,W(w)),y2:f.top+W(pe)(W(_e).slope*W(_e).maxX+W(_e).intercept)}),ye=F(()=>e=>{if(W(E).kind===`numeric`)return typeof e!=`number`||!Number.isFinite(e)||e<W(E).min||e>W(E).max?null:g(e,W(E).min,W(E).max,0,W(w));let n=t.data.findIndex(t=>t.x===e);if(n<0)return null;let r=Math.max(t.data.length-1,1);return t.data.length===1?W(w)/2:n/r*W(w)}),be=F(()=>e=>Number.isFinite(e)?W(T)*(1-W(fe)(e)):null),xe=F(()=>bi(t.annotations,{xScale:W(ye),yScale:W(be),plotLeft:f.left,plotTop:f.top,plotWidth:W(w),plotHeight:W(T)})),Se=F(()=>W(xe).filter(e=>e.kind===`region`)),Ce=F(()=>W(xe).filter(e=>e.kind!==`region`)),we=F(()=>Ci(t.dataLabels)),Te=F(()=>W(we).enabled?W(O).map(e=>{let t=wi(e.datum.y,W(we),ee),n=W(we).position===`center`||W(we).position===`inside`;return{key:e.index,x:e.x,y:n?e.y:e.y-8,text:t,baseline:n?`middle`:`auto`}}):[]),Ee=F(()=>t.data.map(e=>e.forecast===!0)),De=F(()=>W(Ee).some(Boolean));function Oe(e){let t=[];for(let n=0;n<e.length-1;n++){let r=!!(e[n]||e[n+1]),i=t[t.length-1];i&&i.forecast===r?i.end=n+1:t.push({start:n,end:n+1,forecast:r})}return t}let ke=F(()=>[...t.data.map((e,t)=>W(Ee)[t]?`${e.x}: ${e.y} (prévision)`:`${e.x}: ${e.y}`),...ae(t.referenceLines,t.bands,W(D),W(_e)),...xi(t.annotations)]);function k(e){return e.map((e,t)=>`${t===0?`M`:`L`}${e.x.toFixed(2)},${e.y.toFixed(2)}`).join(` `)}function Ae(e){if(e.length<2)return k(e);let t=.18,n=`M${e[0].x.toFixed(2)},${e[0].y.toFixed(2)}`;for(let r=0;r<e.length-1;r++){let i=e[r-1]??e[r],a=e[r],o=e[r+1],s=e[r+2]??o,c=a.x+(o.x-i.x)*t,l=a.y+(o.y-i.y)*t,u=o.x-(s.x-a.x)*t,d=o.y-(s.y-a.y)*t;n+=` C${c.toFixed(2)},${l.toFixed(2)} ${u.toFixed(2)},${d.toFixed(2)} ${o.x.toFixed(2)},${o.y.toFixed(2)}`}return n}let A=F(()=>W(O).length===0?``:a()?Ae(W(O)):k(W(O))),je=F(()=>e=>{let t=W(O).slice(e.start,e.end+1);return a()?Ae(t):k(t)}),Me=F(()=>W(De)?Oe(W(Ee)):[]),Ne=F(()=>W(De)?W(Me).filter(e=>!e.forecast).map(W(je)):W(A)?[W(A)]:[]),Pe=F(()=>W(Me).filter(e=>e.forecast).map(W(je))),Fe=F(()=>{if(!o()||W(O).length===0)return``;let e=f.top+W(T),t=W(O)[0],n=W(O)[W(O).length-1];return`${W(A)} L${n.x.toFixed(2)},${e.toFixed(2)} L${t.x.toFixed(2)},${e.toFixed(2)} Z`}),Ie=F(()=>W(ue).map(e=>({value:e,y:f.top+W(pe)(e)}))),Le=F(()=>{if(t.xDomain){let[e,n]=t.xDomain;return e===n?[{x:f.left,label:c()(e),anchor:`start`}]:[{x:f.left,label:c()(e),anchor:`start`},{x:f.left+W(w),label:c()(n),anchor:`end`}]}if(t.data.length===0)return[];if(W(E).kind===`ordinal`)return W(O).map((e,n)=>({x:e.x,label:c()(t.data[n].x)}));let e=Math.min(5,t.data.length),n=Math.max(1,Math.round((t.data.length-1)/(e-1||1))),r=[];for(let e=0;e<t.data.length;e+=n)r.push({x:W(O)[e].x,label:c()(t.data[e].x)});let i=t.data.length-1;return r[r.length-1]?.label!==c()(t.data[i].x)&&r.push({x:W(O)[i].x,label:c()(t.data[i].x)}),r}),Re=F(()=>t.data.map(e=>Ti(e.x)));function M(e){t.onHoverKeyChange?.(e==null?null:W(Re)[e]??null)}function ze(){L(oe,null),M(null)}function He(e){let t=e.target;if(!(t instanceof Element)){L(oe,null),M(null);return}let n=Number(t.getAttribute(`data-chart-index`)),r=Number.isInteger(n)?n:null;L(oe,r,!0),M(r)}let Ue=F(()=>Di(t.hoverKey,W(oe),W(Re))),We=F(()=>(t.keyboardNav===!0||t.onSelectKey!==void 0)&&W(O).length>0);function Ge(e){L(C,e,!0),se[e]?.focus(),M(e)}function Ke(e,n){let r=Oi(e.key,n,W(O).length);r&&(e.preventDefault(),r.kind===`move`?Ge(r.index):r.kind===`select`?t.onSelectKey?.(W(Re)[n]??null):(L(C,-1),M(null),t.onSelectKey?.(null),e.currentTarget.blur()))}let qe=()=>[`st-lineChart`,`st-lineChart--${i()}`,t.class].filter(Boolean).join(` `);var Je=Ts(),Ye=R(Je),N=R(Ye),Xe=R(N);X(Xe,17,()=>W(Ie),e=>e.value,(e,t)=>{var r=Xo(),i=z(r),a=B(i),o=R(a,!0);j(a),V(e=>{Z(i,`x1`,f.left),Z(i,`x2`,n()-f.right),Z(i,`y1`,W(t).y),Z(i,`y2`,W(t).y),Z(a,`x`,f.left-6),Z(a,`y`,W(t).y),J(o,e)},[()=>ee(W(t).value)]),q(e,r)});var Ze=B(Xe),Qe=B(Ze),$e=B(Qe);X($e,17,()=>W(Le),jr,(e,t)=>{var n=Zo(),i=R(n,!0);j(n),V(()=>{Z(n,`x`,W(t).x),Z(n,`y`,r()-f.bottom+16),Z(n,`text-anchor`,W(t).anchor??`middle`),J(i,W(t).label)}),q(e,n)});var et=B($e);X(et,17,()=>W(me),e=>e.key,(e,t)=>{var n=$o(),r=z(n),i=B(r),a=e=>{var n=Qo(),r=R(n,!0);j(n),V(()=>{Z(n,`x`,W(t).x+4),Z(n,`y`,W(t).y+11),J(r,W(t).label)}),q(e,n)};Y(i,e=>{W(t).label&&e(a)}),V(e=>{Xr(r,0,e,`svelte-1qlig4e`),Z(r,`x`,W(t).x),Z(r,`y`,W(t).y),Z(r,`width`,W(t).width),Z(r,`height`,W(t).height)},[()=>`st-lineChart__band ${ne(`st-lineChart__band`,W(t).tone)}`]),q(e,n)});var tt=B(et);X(tt,17,()=>W(he),e=>e.key,(e,t)=>{var n=ts(),r=z(n),i=B(r),a=e=>{var n=es(),r=R(n,!0);j(n),V(()=>{Z(n,`x`,W(t).axis===`x`?W(t).x1+4:f.left+W(w)-4),Z(n,`y`,W(t).axis===`x`?f.top+11:W(t).y1-4),Z(n,`text-anchor`,W(t).axis===`x`?`start`:`end`),J(r,W(t).label)}),q(e,n)};Y(i,e=>{W(t).label&&e(a)}),V(e=>{Xr(r,0,e,`svelte-1qlig4e`),Z(r,`x1`,W(t).x1),Z(r,`x2`,W(t).x2),Z(r,`y1`,W(t).y1),Z(r,`y2`,W(t).y2)},[()=>`st-lineChart__refLine ${ne(`st-lineChart__refLine`,W(t).tone)}`]),q(e,n)});var P=B(tt),nt=e=>{var t=ns();V(()=>{Z(t,`x1`,W(ve).x1),Z(t,`y1`,W(ve).y1),Z(t,`x2`,W(ve).x2),Z(t,`y2`,W(ve).y2)}),q(e,t)};Y(P,e=>{W(ve)&&e(nt)});var rt=B(P),it=e=>{var t=as();X(t,21,()=>W(Se),e=>e.key,(e,t)=>{var n=br(),r=z(n),i=e=>{var n=is(),r=z(n),i=B(r),a=e=>{var n=rs(),r=R(n,!0);j(n),V(()=>{Z(n,`x`,W(t).x+4),Z(n,`y`,W(t).y+11),J(r,W(t).label)}),q(e,n)};Y(i,e=>{W(t).label&&e(a)}),V(()=>{Z(r,`x`,W(t).x),Z(r,`y`,W(t).y),Z(r,`width`,W(t).width),Z(r,`height`,W(t).height)}),q(e,n)};Y(r,e=>{W(t).kind===`region`&&e(i)}),q(e,n)}),j(t),q(e,t)};Y(rt,e=>{W(Se).length>0&&e(it)});var at=B(rt),ot=e=>{var t=os();V(()=>Z(t,`d`,W(Fe))),q(e,t)};Y(at,e=>{o()&&W(Fe)&&e(ot)});var st=B(at);X(st,17,()=>W(Ne),jr,(e,t)=>{var n=ss();V(()=>Z(n,`d`,W(t))),q(e,n)});var ct=B(st);X(ct,17,()=>W(Pe),jr,(e,t)=>{var n=cs();V(()=>Z(n,`d`,W(t))),q(e,n)});var lt=B(ct);X(lt,17,()=>W(O),e=>e.index,(e,t)=>{var n=ls();V(()=>{Xr(n,0,Wr(W(Ee)[W(t).index]?`st-lineChart__dot st-lineChart__dot--forecast`:`st-lineChart__dot`),`svelte-1qlig4e`),Z(n,`cx`,W(t).x),Z(n,`cy`,W(t).y),Z(n,`data-chart-index`,W(t).index)}),q(e,n)});var ut=B(lt),dt=e=>{var t=us(),n=z(t),r=B(n),i=R(r,!0);j(r),V(()=>{Z(n,`x1`,f.left),Z(n,`x2`,f.left+W(w)),Z(n,`y1`,W(ge).y),Z(n,`y2`,W(ge).y),Z(r,`x`,f.left+W(w)-4),Z(r,`y`,W(ge).y-4),J(i,W(ge).label??`Objectif ${W(ge).value}`)}),q(e,t)};Y(ut,e=>{W(ge)&&e(dt)});var ft=B(ut),pt=e=>{var t=vs();X(t,21,()=>W(Ce),e=>e.key,(e,t)=>{var n=br(),r=z(n),i=e=>{var n=fs(),r=z(n),i=B(r),a=e=>{var n=ds(),r=R(n,!0);j(n),V(()=>{Z(n,`x`,W(t).axis===`x`?W(t).x1+4:f.left+W(w)-4),Z(n,`y`,W(t).axis===`x`?f.top+11:W(t).y1-4),Z(n,`text-anchor`,W(t).axis===`x`?`start`:`end`),J(r,W(t).label)}),q(e,n)};Y(i,e=>{W(t).label&&e(a)}),V(()=>{Z(r,`x1`,W(t).x1),Z(r,`y1`,W(t).y1),Z(r,`x2`,W(t).x2),Z(r,`y2`,W(t).y2)}),q(e,n)},a=e=>{var n=ms(),r=z(n),i=B(r),a=e=>{var n=ps(),r=R(n,!0);j(n),V(()=>{Z(n,`x`,W(t).labelX),Z(n,`y`,W(t).labelY),J(r,W(t).label)}),q(e,n)};Y(i,e=>{W(t).label&&e(a)}),V(e=>Z(r,`points`,e),[()=>Si(W(t).points)]),q(e,n)},o=e=>{var n=gs(),r=z(n),i=B(r),a=e=>{var n=hs(),r=R(n,!0);j(n),V(()=>{Z(n,`x`,W(t).x),Z(n,`y`,W(t).y-8),J(r,W(t).label)}),q(e,n)};Y(i,e=>{W(t).label&&e(a)}),V(()=>{Z(r,`cx`,W(t).x),Z(r,`cy`,W(t).y)}),q(e,n)},s=e=>{var n=_s(),r=R(n,!0);j(n),V(()=>{Z(n,`x`,W(t).x),Z(n,`y`,W(t).y),Z(n,`text-anchor`,W(t).anchor),J(r,W(t).text)}),q(e,n)};Y(r,e=>{W(t).kind===`line`?e(i):W(t).kind===`shape`?e(a,1):W(t).kind===`point`?e(o,2):e(s,-1)}),q(e,n)}),j(t),q(e,t)};Y(ft,e=>{W(Ce).length>0&&e(pt)});var mt=B(ft),ht=e=>{var t=bs();X(t,21,()=>W(Te),e=>e.key,(e,t)=>{var n=ys(),r=R(n,!0);j(n),V(()=>{Z(n,`x`,W(t).x),Z(n,`y`,W(t).y),Z(n,`dominant-baseline`,W(t).baseline),J(r,W(t).text)}),q(e,n)}),j(t),q(e,t)};Y(mt,e=>{W(Te).length>0&&e(ht)});var gt=B(mt),_t=e=>{let t=F(()=>W(O)[W(Ue)]);var n=xs(),r=R(n),i=B(r);j(n),V(()=>{Z(r,`x1`,W(t).x),Z(r,`x2`,W(t).x),Z(r,`y1`,f.top),Z(r,`y2`,f.top+W(T)),Z(i,`cx`,W(t).x),Z(i,`cy`,W(t).y)}),q(e,n)};Y(gt,e=>{W(Ue)>=0&&W(O)[W(Ue)]&&e(_t)}),j(N);var vt=B(N,2),yt=e=>{var i=Cs();X(i,23,()=>W(O),e=>e.index,(e,t,n)=>{var r=Ss();Z(r,`width`,18),Z(r,`height`,18),oi(r,(e,t)=>se[t]=e,e=>se?.[e],()=>[W(n)]),V((e,n)=>{Z(r,`x`,W(t).x-9),Z(r,`y`,W(t).y-9),Z(r,`tabindex`,e),Z(r,`aria-label`,n)},[()=>ki(W(n),W(C),W(O).length),()=>Ai(W(t).datum.x,W(t).datum.y)]),dr(`keydown`,r,e=>Ke(e,W(n))),ur(`focus`,r,()=>{L(C,W(n),!0),M(W(n))}),q(e,r)}),j(i),V(()=>{Z(i,`viewBox`,`0 0 ${n()??``} ${r()??``}`),Z(i,`aria-label`,`${t.label} — points de données`)}),q(e,i)};Y(vt,e=>{W(We)&&e(yt)}),j(Ye);var bt=B(Ye,2),xt=e=>{vi(e,{get label(){return t.label},get items(){return W(ke)}})};Y(bt,e=>{l()&&e(xt)});var St=B(bt,2),Ct=e=>{let t=F(()=>W(O)[W(Ue)]);var i=ws(),a=R(i),o=R(a,!0);j(a);var s=B(a,2),l=R(s,!0);j(s),j(i),V(e=>{Qr(i,`left: ${W(t).x/n()*100}%; top: ${W(t).y/r()*100}%`),J(o,e),J(l,W(t).datum.y)},[()=>c()(W(t).datum.x)]),q(e,i)};Y(St,e=>{W(Ue)>=0&&W(O)[W(Ue)]&&e(Ct)}),j(Je),V(e=>{Xr(Je,1,e,`svelte-1qlig4e`),Z(Ye,`aria-label`,t.label),Z(N,`viewBox`,`0 0 ${n()??``} ${r()??``}`),Z(Ze,`x1`,f.left),Z(Ze,`x2`,f.left),Z(Ze,`y1`,f.top),Z(Ze,`y2`,r()-f.bottom),Z(Qe,`x1`,f.left),Z(Qe,`x2`,n()-f.right),Z(Qe,`y1`,r()-f.bottom),Z(Qe,`y2`,r()-f.bottom)},[()=>Wr(qe())]),dr(`pointermove`,Ye,He),ur(`pointerleave`,Ye,ze),q(e,Je),Ve()}fr([`pointermove`,`keydown`]);function Os({series:e}){return e.flatMap(({id:e,label:t,data:n})=>n.map(({x:n,y:r})=>({x:n,seriesId:e,seriesLabel:t,y:r}))).sort((e,t)=>e.x-t.x)}function ks(e){return new Date(e).toISOString()}function As(e){return e.replace(/\\(?=u)|[\s\p{Cc}\p{Cf}\p{Cs}]/gu,e=>e.split(``).map(e=>`\\u`+e.charCodeAt(0).toString(16).padStart(4,`0`)).join(``))}var js=G(`<h3> </h3> <!>`,1),Ms=G(`<tr><td class="svelte-1csgdff"><time> </time></td><td class="svelte-1csgdff"> </td><td class="svelte-1csgdff"> </td><td class="svelte-1csgdff"> </td></tr>`),Ns=G(`<section><!> <table class="svelte-1csgdff"><caption class="svelte-1csgdff"> </caption><thead><tr><th scope="col" class="svelte-1csgdff">Time (UTC)</th><th scope="col" class="svelte-1csgdff">Series</th><th scope="col" class="svelte-1csgdff">Series ID</th><th scope="col" class="svelte-1csgdff">Value</th></tr></thead><tbody></tbody></table></section>`),Ps={hash:`svelte-1csgdff`,code:`table.svelte-1csgdff {border-collapse:collapse;width:100%;}caption.svelte-1csgdff,
2884
+ th.svelte-1csgdff,
2885
+ td.svelte-1csgdff {padding:0.5rem;text-align:start;}th.svelte-1csgdff,
2886
+ td.svelte-1csgdff {border-block-end:1px solid var(--st-semantic-border-subtle);}`};function Fs(e,t){Be(t,!0),Br(e,Ps);let n=[`category1`,`category2`,`category3`,`category4`,`category5`,`category6`,`category7`,`category8`],r=F(()=>{let e=1/0,n=-1/0;for(let{data:r}of t.series)r.length!==0&&(e=Math.min(e,r[0].x),n=Math.max(n,r[r.length-1].x));for(let{axis:r,value:i}of t.referenceLines??[])r===`x`&&(e=Math.min(e,i),n=Math.max(n,i));return e===1/0?void 0:[e,n]}),i=F(()=>{let e=t.series.map(({label:e})=>e.trim().replace(/\s+/g,` `)),n=new Map;for(let t of e)n.set(t,(n.get(t)??0)+1);let r=new Set(n.keys());return t.series.map(({id:t,label:i},a)=>{let o=e[a];if(n.get(o)===1)return i;let s=`${o} [ID: ${As(t)}]`.trimStart(),c=s;for(let e=2;r.has(c);e+=1)c=`${s} (${e})`;return r.add(c),c})}),a=F(()=>Os({label:t.label,series:t.series}));var o=Ns(),s=R(o);X(s,19,()=>t.series,e=>e.id,(e,a,o)=>{let s=F(()=>W(i)[W(o)]);var c=js(),l=z(c),u=R(l,!0);j(l),Ds(B(l,2),{get label(){return W(s)},get data(){return W(a).data},get tone(){return n[W(o)%n.length]},get xDomain(){return W(r)},formatX:e=>ks(Number(e)),get referenceLines(){return t.referenceLines},get bands(){return t.bands},get goalLine(){return t.goalLine},showDataList:!1}),V(()=>J(u,W(s))),q(e,c)});var c=B(s,2),l=R(c),u=R(l,!0);j(l);var d=B(l,2);X(d,21,()=>W(a),e=>`${e.x}:${e.seriesId}`,(e,t)=>{let n=F(()=>ks(W(t).x));var r=Ms(),i=R(r),a=R(i),o=R(a,!0);j(a),j(i);var s=B(i),c=R(s,!0);j(s);var l=B(s),u=R(l,!0);j(l);var d=B(l),f=R(d,!0);j(d),j(r),V(()=>{Z(a,`datetime`,W(n)),J(o,W(n)),J(c,W(t).seriesLabel),J(u,W(t).seriesId),J(f,W(t).y)}),q(e,r)}),j(d),j(c),j(o),V(()=>{Z(o,`aria-label`,t.label),J(u,t.label)}),q(e,o),Ve()}var Is=G(`<div class="st-element__root svelte-cqy9m8"><!></div>`),Ls={hash:`svelte-cqy9m8`,code:`.st-element__root.svelte-cqy9m8 {display:block;}`};function Rs(e,t){Be(t,!0),Br(e,Ls);let n=Q(t,`envelope`,7),r=Q(t,`hostConfig`,7),i=Za(`TimeSeriesChart`),a=I(void 0),o=I(void 0),s=I(!1);Ar(()=>{L(o,Do(globalThis.document),!0),L(s,!0)});let c=F(()=>n()??W(a)),l=F(()=>r()??W(o));dn(()=>{(W(c)!==void 0||W(s))&&i.ingest(W(c),W(l))});var u={get envelope(){return n()},set envelope(e){n(e),ft()},get hostConfig(){return r()},set hostConfig(e){r(e),ft()}},d=Is(),f=R(d),p=e=>{Po(e,{get diagnostics(){return i.diagnostics}})},m=e=>{Fs(e,ci(()=>i.payload.props))};return Y(f,e=>{i.state===`refused`?e(p):i.payload?.kind===`time-series-chart`&&e(m,1)}),j(d),Vr(d,(e,t)=>So?.(e,t),()=>({runtime:i,theme:W(l)?.theme,colorScheme:W(l)?.colorScheme})),Vr(d,(e,t)=>ko?.(e,t),()=>({apply:e=>L(a,e,!0)})),V((e,t)=>{Z(d,`data-st-theme`,e),Z(d,`data-color-mode`,t)},[()=>Co(W(l)?.theme),()=>wo(W(l)?.colorScheme)]),q(e,d),Ve(u)}customElements.define(`st-time-series-chart`,mi(Rs,{envelope:{},hostConfig:{}},[],[],{mode:`open`})),no(`st-bar-chart`),no(`st-bpmn-canvas`),no(`st-decision-dossier`),no(`st-time-series-chart`);export{Ur as n,fo as t};