plan-assistant 1.2.0 → 1.2.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.
- package/build/client/_app/immutable/chunks/{BfL8uxRT.js → 1uq0WVax.js} +1 -1
- package/build/client/_app/immutable/chunks/2wZlHG5k.js +1 -0
- package/build/client/_app/immutable/chunks/{CH1NEzX7.js → 66S44dU2.js} +1 -1
- package/build/client/_app/immutable/chunks/{DwHVGAim.js → 9io9WUbM.js} +1 -1
- package/build/client/_app/immutable/chunks/B1KfJkVF.js +1 -0
- package/build/client/_app/immutable/chunks/{CZeFIBGi.js → B5wH4gxC.js} +1 -1
- package/build/client/_app/immutable/chunks/{DPzlQiZI.js → BEd52Y9t.js} +4 -4
- package/build/client/_app/immutable/chunks/{BvRgs-2L.js → BPiLmQNn.js} +1 -1
- package/build/client/_app/immutable/chunks/{DNr4wguO.js → BQLlh6rw.js} +1 -1
- package/build/client/_app/immutable/chunks/{DR7ejmzS.js → B_m78aJo.js} +1 -1
- package/build/client/_app/immutable/chunks/{ChU2oOcg.js → BcL-TGiq.js} +1 -1
- package/build/client/_app/immutable/chunks/{DgjsH1_4.js → BfABZbDO.js} +1 -1
- package/build/client/_app/immutable/chunks/{CDR3Z56Y.js → BgWVd2JH.js} +1 -1
- package/build/client/_app/immutable/chunks/{nJJiC0ez.js → BlhCArX0.js} +1 -1
- package/build/client/_app/immutable/chunks/{BRTrrN0X.js → BwE1zFLP.js} +1 -1
- package/build/client/_app/immutable/chunks/{Cm6RxuVQ.js → C40UEiDa.js} +1 -1
- package/build/client/_app/immutable/chunks/{C0InBf-O.js → C6G9eLNg.js} +1 -1
- package/build/client/_app/immutable/chunks/{BmGLb1qu.js → C7_sUGKI.js} +1 -1
- package/build/client/_app/immutable/chunks/{DRKSCzuI.js → C9sq1NiT.js} +1 -1
- package/build/client/_app/immutable/chunks/{CWVRzsQP.js → CAs7BFgw.js} +1 -1
- package/build/client/_app/immutable/chunks/{s2OkNNj0.js → CCvUv5wO.js} +1 -1
- package/build/client/_app/immutable/chunks/CD_kQCcy.js +1 -0
- package/build/client/_app/immutable/chunks/{swCs98qy.js → CEkljthY.js} +1 -1
- package/build/client/_app/immutable/chunks/{Bl7iZqEb.js → CZDB-NCS.js} +1 -1
- package/build/client/_app/immutable/chunks/{CSL7tjoH.js → CdWYTPbj.js} +1 -1
- package/build/client/_app/immutable/chunks/{httJDHb6.js → Cfu7LlTl.js} +1 -1
- package/build/client/_app/immutable/chunks/{b5WVI7KI.js → ChXJ3_8d.js} +1 -1
- package/build/client/_app/immutable/chunks/{C3BJCczD.js → CjU8zlr4.js} +1 -1
- package/build/client/_app/immutable/chunks/{CZuHz6os.js → Cnk3veQv.js} +1 -1
- package/build/client/_app/immutable/chunks/{OE8RTdkZ.js → CptLmxn7.js} +1 -1
- package/build/client/_app/immutable/chunks/{CZGqo-pw.js → CpzGW5sx.js} +1 -1
- package/build/client/_app/immutable/chunks/{t6MaPXGX.js → D1smdH78.js} +1 -1
- package/build/client/_app/immutable/chunks/D5TNeoIz.js +1 -0
- package/build/client/_app/immutable/chunks/{BurTWprE.js → D6mQqXUs.js} +1 -1
- package/build/client/_app/immutable/chunks/{By7NnKnP.js → D7AzvARu.js} +1 -1
- package/build/client/_app/immutable/chunks/{L9EQWNkl.js → DJPNFy2Z.js} +1 -1
- package/build/client/_app/immutable/chunks/{DwEmC87d.js → DK1EzMSE.js} +1 -1
- package/build/client/_app/immutable/chunks/{Dt4UxPZ4.js → DV6acRrl.js} +1 -1
- package/build/client/_app/immutable/chunks/{CtHD3qrr.js → DYmr2Cu_.js} +1 -1
- package/build/client/_app/immutable/chunks/{DhVzpyVX.js → De3MB1l1.js} +1 -1
- package/build/client/_app/immutable/chunks/{DolVEyKl.js → Dl-inTne.js} +1 -1
- package/build/client/_app/immutable/chunks/{InDR_gmx.js → Ds2Jk9YM.js} +1 -1
- package/build/client/_app/immutable/chunks/{BJwHAATM.js → DtRnjJCq.js} +1 -1
- package/build/client/_app/immutable/chunks/DteI5BLO.js +1 -0
- package/build/client/_app/immutable/chunks/DtlciwlI.js +3 -0
- package/build/client/_app/immutable/chunks/{Cnn0E3YZ.js → QOziFLFL.js} +1 -1
- package/build/client/_app/immutable/chunks/{CvhcLZiP.js → Rt06R0BH.js} +1 -1
- package/build/client/_app/immutable/chunks/{zskmS_aP.js → SLcsOks0.js} +1 -1
- package/build/client/_app/immutable/chunks/{6b0HSL6Z.js → Zl01-BCk.js} +1 -1
- package/build/client/_app/immutable/chunks/{DJQzf1x2.js → _8lNgEhN.js} +1 -1
- package/build/client/_app/immutable/chunks/{BRkVe5gO.js → enKT794F.js} +1 -1
- package/build/client/_app/immutable/chunks/{BBxk7dOU.js → et9SQoBt.js} +3 -3
- package/build/client/_app/immutable/chunks/{Crb4tJFd.js → wOfVBGZS.js} +2 -2
- package/build/client/_app/immutable/chunks/{DatA5hJq.js → yJkIcB-2.js} +1 -1
- package/build/client/_app/immutable/chunks/{Ckj5JRjL.js → zzrVTw61.js} +1 -1
- package/build/client/_app/immutable/entry/{app.B2C74vct.js → app.drqszXmO.js} +2 -2
- package/build/client/_app/immutable/entry/start.C0P0in9X.js +1 -0
- package/build/client/_app/immutable/nodes/0.DJ6Q_WzM.js +1 -0
- package/build/client/_app/immutable/nodes/{1.Dkd5hfRh.js → 1.BLhKeqW1.js} +1 -1
- package/build/client/_app/immutable/nodes/{2.C9ThxHzK.js → 2.CNfAa1lN.js} +1 -1
- package/build/client/_app/immutable/nodes/3.nevoqbPf.js +1 -0
- package/build/client/_app/version.json +1 -1
- package/build/server/chunks/{0-FIjyGrw5.js → 0-FD3Yst2W.js} +2 -2
- package/build/server/chunks/{0-FIjyGrw5.js.map → 0-FD3Yst2W.js.map} +1 -1
- package/build/server/chunks/1-DPyxh1rx.js +9 -0
- package/build/server/chunks/{1-Bkky1G1I.js.map → 1-DPyxh1rx.js.map} +1 -1
- package/build/server/chunks/{2-B3cRP7wL.js → 2-C9Pr1aKN.js} +3 -3
- package/build/server/chunks/{2-B3cRP7wL.js.map → 2-C9Pr1aKN.js.map} +1 -1
- package/build/server/chunks/{3-CHdqnsU5.js → 3-CsZto47z.js} +3 -3
- package/build/server/chunks/{3-CHdqnsU5.js.map → 3-CsZto47z.js.map} +1 -1
- package/build/server/chunks/{_page.svelte-CBlXk81L.js → _page.svelte-C-jd6GOL.js} +2 -2
- package/build/server/chunks/{_page.svelte-CBlXk81L.js.map → _page.svelte-C-jd6GOL.js.map} +1 -1
- package/build/server/chunks/{_page.svelte-DPEQWNmX.js → _page.svelte-CWIhxW51.js} +2 -2
- package/build/server/chunks/{_page.svelte-DPEQWNmX.js.map → _page.svelte-CWIhxW51.js.map} +1 -1
- package/build/server/chunks/{error.svelte-BzphGO21.js → error.svelte-DItLqhaS.js} +3 -3
- package/build/server/chunks/{error.svelte-BzphGO21.js.map → error.svelte-DItLqhaS.js.map} +1 -1
- package/build/server/chunks/{exports-Dm0JsGQ-.js → exports-Bfa9AaJ4.js} +45 -35
- package/build/server/chunks/exports-Bfa9AaJ4.js.map +1 -0
- package/build/server/chunks/{index-CR1Ji1kt.js → index-DzKdq15H.js} +23 -11
- package/build/server/chunks/index-DzKdq15H.js.map +1 -0
- package/build/server/index.js +3 -3
- package/build/server/index.js.map +1 -1
- package/build/server/manifest.js +5 -5
- package/build/server/manifest.js.map +1 -1
- package/package.json +1 -1
- package/build/client/_app/immutable/chunks/C2-rKeYx.js +0 -1
- package/build/client/_app/immutable/chunks/C3DTNv0i.js +0 -1
- package/build/client/_app/immutable/chunks/CUfXrgXj.js +0 -1
- package/build/client/_app/immutable/chunks/CXKO628o.js +0 -1
- package/build/client/_app/immutable/chunks/CiHc4XuG.js +0 -1
- package/build/client/_app/immutable/chunks/cUUj7sxC.js +0 -3
- package/build/client/_app/immutable/entry/start.D2e-hus4.js +0 -1
- package/build/client/_app/immutable/nodes/0.DZgBb5Pb.js +0 -1
- package/build/client/_app/immutable/nodes/3.CuHRbCUZ.js +0 -1
- package/build/server/chunks/1-Bkky1G1I.js +0 -9
- package/build/server/chunks/exports-Dm0JsGQ-.js.map +0 -1
- package/build/server/chunks/index-CR1Ji1kt.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{I as T,J as B,F as b,K as D,S as A,L as U,M as Y,P as $,g as m,N as q,b as C,O as N,Q as j,R as k,T as x,D as W,U as Z,V as z,W as F,X as G,Y as J,Z as K}from"./
|
|
1
|
+
import{I as T,J as B,F as b,K as D,S as A,L as U,M as Y,P as $,g as m,N as q,b as C,O as N,Q as j,R as k,T as x,D as W,U as Z,V as z,W as F,X as G,Y as J,Z as K}from"./CD_kQCcy.js";function y(e,r){return e===r||(e==null?void 0:e[A])===r}function H(e={},r,f,d){return T(()=>{var u,i;return B(()=>{u=i,i=[],b(()=>{e!==f(...i)&&(r(e,...i),u&&y(f(...u),e)&&r(null,...u))})}),()=>{D(()=>{i&&y(f(...i),e)&&r(null,...i)})}}),e}let E=!1;function M(e){var r=E;try{return E=!1,[e(),E]}finally{E=r}}function p(e,r,f,d){var I;var u=!W||(f&Z)!==0,i=(f&x)!==0,v=(f&J)!==0,n=d,c=!0,S=()=>(c&&(c=!1,n=v?b(d):d),n),t;if(i){var o=A in e||K in e;t=((I=U(e,r))==null?void 0:I.set)??(o&&r in e?a=>e[r]=a:void 0)}var l,R=!1;i?[l,R]=M(()=>e[r]):l=e[r],l===void 0&&d!==void 0&&(l=S(),t&&(u&&Y(),t(l)));var s;if(u?s=()=>{var a=e[r];return a===void 0?S():(c=!0,a)}:s=()=>{var a=e[r];return a!==void 0&&(n=void 0),a===void 0?n:a},u&&(f&$)===0)return s;if(t){var h=e.$$legacy;return(function(a,g){return arguments.length>0?((!u||!g||h||R)&&t(g?s():a),a):s()})}var _=!1,P=((f&z)!==0?F:G)(()=>(_=!1,s()));i&&m(P);var w=j;return(function(a,g){if(arguments.length>0){const L=g?m(P):u&&i?q(a):a;return C(P,L),_=!0,n!==void 0&&(n=L),a}return N&&_||(w.f&k)!==0?P.v:m(P)})}const Q="modulepreload",V=function(e,r){return new URL(e,r).href},O={},ee=function(r,f,d){let u=Promise.resolve();if(f&&f.length>0){let v=function(t){return Promise.all(t.map(o=>Promise.resolve(o).then(l=>({status:"fulfilled",value:l}),l=>({status:"rejected",reason:l}))))};const n=document.getElementsByTagName("link"),c=document.querySelector("meta[property=csp-nonce]"),S=(c==null?void 0:c.nonce)||(c==null?void 0:c.getAttribute("nonce"));u=v(f.map(t=>{if(t=V(t,d),t in O)return;O[t]=!0;const o=t.endsWith(".css"),l=o?'[rel="stylesheet"]':"";if(!!d)for(let h=n.length-1;h>=0;h--){const _=n[h];if(_.href===t&&(!o||_.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${t}"]${l}`))return;const s=document.createElement("link");if(s.rel=o?"stylesheet":Q,o||(s.as="script"),s.crossOrigin="",s.href=t,S&&s.setAttribute("nonce",S),document.head.appendChild(s),o)return new Promise((h,_)=>{s.addEventListener("load",h),s.addEventListener("error",()=>_(new Error(`Unable to preload CSS for ${t}`)))})}))}function i(v){const n=new Event("vite:preloadError",{cancelable:!0});if(n.payload=v,window.dispatchEvent(n),!n.defaultPrevented)throw v}return u.then(v=>{for(const n of v||[])n.status==="rejected"&&i(n.reason);return r().catch(i)})};export{ee as _,H as b,p};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var B=Object.defineProperty;var g=i=>{throw TypeError(i)};var D=(i,e,s)=>e in i?B(i,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):i[e]=s;var w=(i,e,s)=>D(i,typeof e!="symbol"?e+"":e,s),y=(i,e,s)=>e.has(i)||g("Cannot "+s);var t=(i,e,s)=>(y(i,e,"read from private field"),s?s.call(i):e.get(i)),l=(i,e,s)=>e.has(i)?g("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,s),M=(i,e,s,a)=>(y(i,e,"write to private field"),a?a.call(i,s):e.set(i,s),s);import{o as F,q as b,v as q,w as x,x as A,y as z,h as C,n as S,z as j,A as E}from"./CD_kQCcy.js";var h,n,r,u,p,_,v;class I{constructor(e,s=!0){w(this,"anchor");l(this,h,new Map);l(this,n,new Map);l(this,r,new Map);l(this,u,new Set);l(this,p,!0);l(this,_,e=>{if(t(this,h).has(e)){var s=t(this,h).get(e),a=t(this,n).get(s);if(a)F(a),t(this,u).delete(s);else{var c=t(this,r).get(s);c&&(t(this,n).set(s,c.effect),t(this,r).delete(s),c.fragment.lastChild.remove(),this.anchor.before(c.fragment),a=c.effect)}for(const[f,o]of t(this,h)){if(t(this,h).delete(f),f===e)break;const d=t(this,r).get(o);d&&(b(d.effect),t(this,r).delete(o))}for(const[f,o]of t(this,n)){if(f===s||t(this,u).has(f))continue;const d=()=>{if(Array.from(t(this,h).values()).includes(f)){var k=document.createDocumentFragment();j(o,k),k.append(x()),t(this,r).set(f,{effect:o,fragment:k})}else b(o);t(this,u).delete(f),t(this,n).delete(f)};t(this,p)||!a?(t(this,u).add(f),q(o,d,!1)):d()}}});l(this,v,e=>{t(this,h).delete(e);const s=Array.from(t(this,h).values());for(const[a,c]of t(this,r))s.includes(a)||(b(c.effect),t(this,r).delete(a))});this.anchor=e,M(this,p,s)}ensure(e,s){var a=z,c=E();if(s&&!t(this,n).has(e)&&!t(this,r).has(e))if(c){var f=document.createDocumentFragment(),o=x();f.append(o),t(this,r).set(e,{effect:A(()=>s(o)),fragment:f})}else t(this,n).set(e,A(()=>s(this.anchor)));if(t(this,h).set(a,e),c){for(const[d,m]of t(this,n))d===e?a.unskip_effect(m):a.skip_effect(m);for(const[d,m]of t(this,r))d===e?a.unskip_effect(m.effect):a.skip_effect(m.effect);a.oncommit(t(this,_)),a.ondiscard(t(this,v))}else C&&(this.anchor=S),t(this,_).call(this,a)}}h=new WeakMap,n=new WeakMap,r=new WeakMap,u=new WeakMap,p=new WeakMap,_=new WeakMap,v=new WeakMap;export{I as B};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as w,D as te,F as ae,H as he,e as ue,l as K,aZ as P,d as Y,b as pe,a as fe,p as ge,q as me,g as ye,s as Se,E as ve,a_ as xe,y as be}from"./DPzlQiZI.js";import{s as we}from"./b5WVI7KI.js";import{p as Ce}from"./ChU2oOcg.js";import{p as Te}from"./Cm6RxuVQ.js";import{b as O}from"./DX6XiGOO.js";import{o as J}from"./CmKTTxBW.js";function Le(t){var a=0,l=t.children,n=l&&l.length;if(!n)a=1;else for(;--n>=0;)a+=l[n].value;t.value=a}function $e(){return this.eachAfter(Le)}function Ae(t,a){let l=-1;for(const n of this)t.call(a,n,++l,this);return this}function Fe(t,a){for(var l=this,n=[l],o,s,d=-1;l=n.pop();)if(t.call(a,l,++d,this),o=l.children)for(s=o.length-1;s>=0;--s)n.push(o[s]);return this}function ke(t,a){for(var l=this,n=[l],o=[],s,d,h,g=-1;l=n.pop();)if(o.push(l),s=l.children)for(d=0,h=s.length;d<h;++d)n.push(s[d]);for(;l=o.pop();)t.call(a,l,++g,this);return this}function Ne(t,a){let l=-1;for(const n of this)if(t.call(a,n,++l,this))return n}function Me(t){return this.eachAfter(function(a){for(var l=+t(a.data)||0,n=a.children,o=n&&n.length;--o>=0;)l+=n[o].value;a.value=l})}function _e(t){return this.eachBefore(function(a){a.children&&a.children.sort(t)})}function ze(t){for(var a=this,l=Ve(a,t),n=[a];a!==l;)a=a.parent,n.push(a);for(var o=n.length;t!==l;)n.splice(o,0,t),t=t.parent;return n}function Ve(t,a){if(t===a)return t;var l=t.ancestors(),n=a.ancestors(),o=null;for(t=l.pop(),a=n.pop();t===a;)o=t,t=l.pop(),a=n.pop();return o}function De(){for(var t=this,a=[t];t=t.parent;)a.push(t);return a}function Pe(){return Array.from(this)}function Be(){var t=[];return this.eachBefore(function(a){a.children||t.push(a)}),t}function Ee(){var t=this,a=[];return t.each(function(l){l!==t&&a.push({source:l.parent,target:l})}),a}function*Re(){var t=this,a,l=[t],n,o,s;do for(a=l.reverse(),l=[];t=a.pop();)if(yield t,n=t.children)for(o=0,s=n.length;o<s;++o)l.push(n[o]);while(l.length)}function Q(t,a){t instanceof Map?(t=[void 0,t],a===void 0&&(a=Ie)):a===void 0&&(a=He);for(var l=new Z(t),n,o=[l],s,d,h,g;n=o.pop();)if((d=a(n.data))&&(g=(d=Array.from(d)).length))for(n.children=d,h=g-1;h>=0;--h)o.push(s=d[h]=new Z(d[h])),s.parent=n,s.depth=n.depth+1;return l.eachBefore(qe)}function We(){return Q(this).eachBefore(Oe)}function He(t){return t.children}function Ie(t){return Array.isArray(t)?t[1]:null}function Oe(t){t.data.value!==void 0&&(t.value=t.data.value),t.data=t.data.data}function qe(t){var a=0;do t.height=a;while((t=t.parent)&&t.height<++a)}function Z(t){this.data=t,this.depth=this.height=0,this.parent=null}Z.prototype=Q.prototype={constructor:Z,count:$e,each:Ae,eachAfter:ke,eachBefore:Fe,find:Ne,sum:Me,sort:_e,path:ze,ancestors:De,descendants:Pe,leaves:Be,links:Ee,copy:We,[Symbol.iterator]:Re};function Ge(t){if(typeof t!="function")throw new Error;return t}function q(){return 0}function G(t){return function(){return t}}function Xe(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function je(t,a,l,n,o){for(var s=t.children,d,h=-1,g=s.length,c=t.value&&(n-a)/t.value;++h<g;)d=s[h],d.y0=l,d.y1=o,d.x0=a,d.x1=a+=d.value*c}function Ye(t,a,l,n,o){for(var s=t.children,d,h=-1,g=s.length,c=t.value&&(o-l)/t.value;++h<g;)d=s[h],d.x0=a,d.x1=n,d.y0=l,d.y1=l+=d.value*c}var Ze=(1+Math.sqrt(5))/2;function Ue(t,a,l,n,o,s){for(var d=[],h=a.children,g,c,u=0,b=0,r=h.length,x,S,v=a.value,p,m,N,k,V,R,M;u<r;){x=o-l,S=s-n;do p=h[b++].value;while(!p&&b<r);for(m=N=p,R=Math.max(S/x,x/S)/(v*t),M=p*p*R,V=Math.max(N/M,M/m);b<r;++b){if(p+=c=h[b].value,c<m&&(m=c),c>N&&(N=c),M=p*p*R,k=Math.max(N/M,M/m),k>V){p-=c;break}V=k}d.push(g={value:p,dice:x<S,children:h.slice(u,b)}),g.dice?je(g,l,n,o,v?n+=S*p/v:s):Ye(g,l,n,v?l+=x*p/v:o,s),v-=p,u=b}return d}const Je=(function t(a){function l(n,o,s,d,h){Ue(a,n,o,s,d,h)}return l.ratio=function(n){return t((n=+n)>1?n:1)},l})(Ze);function Ke(){var t=Je,a=!1,l=1,n=1,o=[0],s=q,d=q,h=q,g=q,c=q;function u(r){return r.x0=r.y0=0,r.x1=l,r.y1=n,r.eachBefore(b),o=[0],a&&r.eachBefore(Xe),r}function b(r){var x=o[r.depth],S=r.x0+x,v=r.y0+x,p=r.x1-x,m=r.y1-x;p<S&&(S=p=(S+p)/2),m<v&&(v=m=(v+m)/2),r.x0=S,r.y0=v,r.x1=p,r.y1=m,r.children&&(x=o[r.depth+1]=s(r)/2,S+=c(r)-x,v+=d(r)-x,p-=h(r)-x,m-=g(r)-x,p<S&&(S=p=(S+p)/2),m<v&&(v=m=(v+m)/2),t(r,S,v,p,m))}return u.round=function(r){return arguments.length?(a=!!r,u):a},u.size=function(r){return arguments.length?(l=+r[0],n=+r[1],u):[l,n]},u.tile=function(r){return arguments.length?(t=Ge(r),u):t},u.padding=function(r){return arguments.length?u.paddingInner(r).paddingOuter(r):u.paddingInner()},u.paddingInner=function(r){return arguments.length?(s=typeof r=="function"?r:G(+r),u):s},u.paddingOuter=function(r){return arguments.length?u.paddingTop(r).paddingRight(r).paddingBottom(r).paddingLeft(r):u.paddingTop()},u.paddingTop=function(r){return arguments.length?(d=typeof r=="function"?r:G(+r),u):d},u.paddingRight=function(r){return arguments.length?(h=typeof r=="function"?r:G(+r),u):h},u.paddingBottom=function(r){return arguments.length?(g=typeof r=="function"?r:G(+r),u):g},u.paddingLeft=function(r){return arguments.length?(c=typeof r=="function"?r:G(+r),u):c},u}var E,ne=(E=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=pe,this.getAccTitle=fe,this.setDiagramTitle=ge,this.getDiagramTitle=me,this.getAccDescription=ye,this.setAccDescription=Se}getNodes(){return this.nodes}getConfig(){const a=ve,l=ae();return te({...a.treemap,...l.treemap??{}})}addNode(a,l){this.nodes.push(a),this.levels.set(a,l),l===0&&(this.outerNodes.push(a),this.root??(this.root=a))}getRoot(){return{name:"",children:this.outerNodes}}addClass(a,l){const n=this.classes.get(a)??{id:a,styles:[],textStyles:[]},o=l.replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");o&&o.forEach(s=>{xe(s)&&(n!=null&&n.textStyles?n.textStyles.push(s):n.textStyles=[s]),n!=null&&n.styles?n.styles.push(s):n.styles=[s]}),this.classes.set(a,n)}getClasses(){return this.classes}getStylesForClass(a){var l;return((l=this.classes.get(a))==null?void 0:l.styles)??[]}clear(){be(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}},w(E,"TreeMapDB"),E);function le(t){if(!t.length)return[];const a=[],l=[];return t.forEach(n=>{const o={name:n.name,children:n.type==="Leaf"?void 0:[]};for(o.classSelector=n==null?void 0:n.classSelector,n!=null&&n.cssCompiledStyles&&(o.cssCompiledStyles=[n.cssCompiledStyles]),n.type==="Leaf"&&n.value!==void 0&&(o.value=n.value);l.length>0&&l[l.length-1].level>=n.level;)l.pop();if(l.length===0)a.push(o);else{const s=l[l.length-1].node;s.children?s.children.push(o):s.children=[o]}n.type!=="Leaf"&&l.push({node:o,level:n.level})}),a}w(le,"buildHierarchy");var Qe=w((t,a)=>{Ce(t,a);const l=[];for(const s of t.TreemapRows??[])s.$type==="ClassDefStatement"&&a.addClass(s.className??"",s.styleText??"");for(const s of t.TreemapRows??[]){const d=s.item;if(!d)continue;const h=s.indent?parseInt(s.indent):0,g=et(d),c=d.classSelector?a.getStylesForClass(d.classSelector):[],u=c.length>0?c.join(";"):void 0,b={level:h,name:g,type:d.$type,value:d.value,classSelector:d.classSelector,cssCompiledStyles:u};l.push(b)}const n=le(l),o=w((s,d)=>{for(const h of s)a.addNode(h,d),h.children&&h.children.length>0&&o(h.children,d+1)},"addNodesRecursively");o(n,0)},"populate"),et=w(t=>t.name?String(t.name):"","getItemName"),re={parser:{yy:void 0},parse:w(async t=>{var a;try{const n=await Te("treemap",t);K.debug("Treemap AST:",n);const o=(a=re.parser)==null?void 0:a.yy;if(!(o instanceof ne))throw new Error("parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");Qe(n,o)}catch(l){throw K.error("Error parsing treemap:",l),l}},"parse")},tt=10,B=10,X=25,at=w((t,a,l,n)=>{const o=n.db,s=o.getConfig(),d=s.padding??tt,h=o.getDiagramTitle(),g=o.getRoot(),{themeVariables:c}=ae();if(!g)return;const u=h?30:0,b=he(a),r=s.nodeWidth?s.nodeWidth*B:960,x=s.nodeHeight?s.nodeHeight*B:500,S=r,v=x+u;b.attr("viewBox",`0 0 ${S} ${v}`),ue(b,v,S,s.useMaxWidth);let p;try{const e=s.valueFormat||",";if(e==="$0,0")p=w(i=>"$"+O(",")(i),"valueFormat");else if(e.startsWith("$")&&e.includes(",")){const i=/\.\d+/.exec(e),f=i?i[0]:"";p=w(C=>"$"+O(","+f)(C),"valueFormat")}else if(e.startsWith("$")){const i=e.substring(1);p=w(f=>"$"+O(i||"")(f),"valueFormat")}else p=O(e)}catch(e){K.error("Error creating format function:",e),p=O(",")}const m=J().range(["transparent",c.cScale0,c.cScale1,c.cScale2,c.cScale3,c.cScale4,c.cScale5,c.cScale6,c.cScale7,c.cScale8,c.cScale9,c.cScale10,c.cScale11]),N=J().range(["transparent",c.cScalePeer0,c.cScalePeer1,c.cScalePeer2,c.cScalePeer3,c.cScalePeer4,c.cScalePeer5,c.cScalePeer6,c.cScalePeer7,c.cScalePeer8,c.cScalePeer9,c.cScalePeer10,c.cScalePeer11]),k=J().range([c.cScaleLabel0,c.cScaleLabel1,c.cScaleLabel2,c.cScaleLabel3,c.cScaleLabel4,c.cScaleLabel5,c.cScaleLabel6,c.cScaleLabel7,c.cScaleLabel8,c.cScaleLabel9,c.cScaleLabel10,c.cScaleLabel11]);h&&b.append("text").attr("x",S/2).attr("y",u/2).attr("class","treemapTitle").attr("text-anchor","middle").attr("dominant-baseline","middle").text(h);const V=b.append("g").attr("transform",`translate(0, ${u})`).attr("class","treemapContainer"),R=Q(g).sum(e=>e.value??0).sort((e,i)=>(i.value??0)-(e.value??0)),ee=Ke().size([r,x]).paddingTop(e=>e.children&&e.children.length>0?X+B:0).paddingInner(d).paddingLeft(e=>e.children&&e.children.length>0?B:0).paddingRight(e=>e.children&&e.children.length>0?B:0).paddingBottom(e=>e.children&&e.children.length>0?B:0).round(!0)(R),se=ee.descendants().filter(e=>e.children&&e.children.length>0),W=V.selectAll(".treemapSection").data(se).enter().append("g").attr("class","treemapSection").attr("transform",e=>`translate(${e.x0},${e.y0})`);W.append("rect").attr("width",e=>e.x1-e.x0).attr("height",X).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",.6).attr("stroke-width",.6).attr("style",e=>e.depth===0?"display: none;":""),W.append("clipPath").attr("id",(e,i)=>`clip-section-${a}-${i}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-12)).attr("height",X),W.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class",(e,i)=>`treemapSection section${i}`).attr("fill",e=>m(e.data.name)).attr("fill-opacity",.6).attr("stroke",e=>N(e.data.name)).attr("stroke-width",2).attr("stroke-opacity",.4).attr("style",e=>{if(e.depth===0)return"display: none;";const i=P({cssCompiledStyles:e.data.cssCompiledStyles});return i.nodeStyles+";"+i.borderStyles.join(";")}),W.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",X/2).attr("dominant-baseline","middle").text(e=>e.depth===0?"":e.data.name).attr("font-weight","bold").attr("style",e=>{if(e.depth===0)return"display: none;";const i="dominant-baseline: middle; font-size: 12px; fill:"+k(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",f=P({cssCompiledStyles:e.data.cssCompiledStyles});return i+f.labelStyles.replace("color:","fill:")}).each(function(e){if(e.depth===0)return;const i=Y(this),f=e.data.name;i.text(f);const C=e.x1-e.x0,L=6;let $;s.showValues!==!1&&e.value?$=C-10-30-10-L:$=C-L-6;const A=Math.max(15,$),y=i.node();if(y.getComputedTextLength()>A){let T=f;for(;T.length>0;){if(T=f.substring(0,T.length-1),T.length===0){i.text("..."),y.getComputedTextLength()>A&&i.text("");break}if(i.text(T+"..."),y.getComputedTextLength()<=A)break}}}),s.showValues!==!1&&W.append("text").attr("class","treemapSectionValue").attr("x",e=>e.x1-e.x0-10).attr("y",X/2).attr("text-anchor","end").attr("dominant-baseline","middle").text(e=>e.value?p(e.value):"").attr("font-style","italic").attr("style",e=>{if(e.depth===0)return"display: none;";const i="text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:"+k(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",f=P({cssCompiledStyles:e.data.cssCompiledStyles});return i+f.labelStyles.replace("color:","fill:")});const ie=ee.leaves(),j=V.selectAll(".treemapLeafGroup").data(ie).enter().append("g").attr("class",(e,i)=>`treemapNode treemapLeafGroup leaf${i}${e.data.classSelector?` ${e.data.classSelector}`:""}x`).attr("transform",e=>`translate(${e.x0},${e.y0})`);j.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class","treemapLeaf").attr("fill",e=>e.parent?m(e.parent.data.name):m(e.data.name)).attr("style",e=>P({cssCompiledStyles:e.data.cssCompiledStyles}).nodeStyles).attr("fill-opacity",.3).attr("stroke",e=>e.parent?m(e.parent.data.name):m(e.data.name)).attr("stroke-width",3),j.append("clipPath").attr("id",(e,i)=>`clip-${a}-${i}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-4)).attr("height",e=>Math.max(0,e.y1-e.y0-4)),j.append("text").attr("class","treemapLabel").attr("x",e=>(e.x1-e.x0)/2).attr("y",e=>(e.y1-e.y0)/2).attr("style",e=>{const i="text-anchor: middle; dominant-baseline: middle; font-size: 38px;fill:"+k(e.data.name)+";",f=P({cssCompiledStyles:e.data.cssCompiledStyles});return i+f.labelStyles.replace("color:","fill:")}).attr("clip-path",(e,i)=>`url(#clip-${a}-${i})`).text(e=>e.data.name).each(function(e){const i=Y(this),f=e.x1-e.x0,C=e.y1-e.y0,L=i.node(),$=4,D=f-2*$,A=C-2*$;if(D<10||A<10){i.style("display","none");return}let y=parseInt(i.style("font-size"),10);const _=8,F=28,T=.6,z=6,H=2;for(;L.getComputedTextLength()>D&&y>_;)y--,i.style("font-size",`${y}px`);let I=Math.max(z,Math.min(F,Math.round(y*T))),U=y+H+I;for(;U>A&&y>_&&(y--,I=Math.max(z,Math.min(F,Math.round(y*T))),!(I<z&&y===_));)i.style("font-size",`${y}px`),U=y+H+I;i.style("font-size",`${y}px`),(L.getComputedTextLength()>D||y<_||A<y)&&i.style("display","none")}),s.showValues!==!1&&j.append("text").attr("class","treemapValue").attr("x",i=>(i.x1-i.x0)/2).attr("y",function(i){return(i.y1-i.y0)/2}).attr("style",i=>{const f="text-anchor: middle; dominant-baseline: hanging; font-size: 28px;fill:"+k(i.data.name)+";",C=P({cssCompiledStyles:i.data.cssCompiledStyles});return f+C.labelStyles.replace("color:","fill:")}).attr("clip-path",(i,f)=>`url(#clip-${a}-${f})`).text(i=>i.value?p(i.value):"").each(function(i){const f=Y(this),C=this.parentNode;if(!C){f.style("display","none");return}const L=Y(C).select(".treemapLabel");if(L.empty()||L.style("display")==="none"){f.style("display","none");return}const $=parseFloat(L.style("font-size")),D=28,A=.6,y=6,_=2,F=Math.max(y,Math.min(D,Math.round($*A)));f.style("font-size",`${F}px`);const z=(i.y1-i.y0)/2+$/2+_;f.attr("y",z);const H=i.x1-i.x0,ce=i.y1-i.y0-4,de=H-8;f.node().getComputedTextLength()>de||z+F>ce||F<y?f.style("display","none"):f.style("display",null)});const oe=s.diagramPadding??8;we(b,oe,"flowchart",(s==null?void 0:s.useMaxWidth)||!1)},"draw"),nt=w(function(t,a){return a.db.getClasses()},"getClasses"),lt={draw:at,getClasses:nt},rt={sectionStrokeColor:"black",sectionStrokeWidth:"1",sectionFillColor:"#efefef",leafStrokeColor:"black",leafStrokeWidth:"1",leafFillColor:"#efefef",labelColor:"black",labelFontSize:"12px",valueFontSize:"10px",valueColor:"black",titleColor:"black",titleFontSize:"14px"},st=w(({treemap:t}={})=>{const a=te(rt,t);return`
|
|
1
|
+
import{_ as w,D as te,F as ae,H as he,e as ue,l as K,aZ as P,d as Y,b as pe,a as fe,p as ge,q as me,g as ye,s as Se,E as ve,a_ as xe,y as be}from"./BEd52Y9t.js";import{s as we}from"./ChXJ3_8d.js";import{p as Ce}from"./BcL-TGiq.js";import{p as Te}from"./C40UEiDa.js";import{b as O}from"./DX6XiGOO.js";import{o as J}from"./CmKTTxBW.js";function Le(t){var a=0,l=t.children,n=l&&l.length;if(!n)a=1;else for(;--n>=0;)a+=l[n].value;t.value=a}function $e(){return this.eachAfter(Le)}function Ae(t,a){let l=-1;for(const n of this)t.call(a,n,++l,this);return this}function Fe(t,a){for(var l=this,n=[l],o,s,d=-1;l=n.pop();)if(t.call(a,l,++d,this),o=l.children)for(s=o.length-1;s>=0;--s)n.push(o[s]);return this}function ke(t,a){for(var l=this,n=[l],o=[],s,d,h,g=-1;l=n.pop();)if(o.push(l),s=l.children)for(d=0,h=s.length;d<h;++d)n.push(s[d]);for(;l=o.pop();)t.call(a,l,++g,this);return this}function Ne(t,a){let l=-1;for(const n of this)if(t.call(a,n,++l,this))return n}function Me(t){return this.eachAfter(function(a){for(var l=+t(a.data)||0,n=a.children,o=n&&n.length;--o>=0;)l+=n[o].value;a.value=l})}function _e(t){return this.eachBefore(function(a){a.children&&a.children.sort(t)})}function ze(t){for(var a=this,l=Ve(a,t),n=[a];a!==l;)a=a.parent,n.push(a);for(var o=n.length;t!==l;)n.splice(o,0,t),t=t.parent;return n}function Ve(t,a){if(t===a)return t;var l=t.ancestors(),n=a.ancestors(),o=null;for(t=l.pop(),a=n.pop();t===a;)o=t,t=l.pop(),a=n.pop();return o}function De(){for(var t=this,a=[t];t=t.parent;)a.push(t);return a}function Pe(){return Array.from(this)}function Be(){var t=[];return this.eachBefore(function(a){a.children||t.push(a)}),t}function Ee(){var t=this,a=[];return t.each(function(l){l!==t&&a.push({source:l.parent,target:l})}),a}function*Re(){var t=this,a,l=[t],n,o,s;do for(a=l.reverse(),l=[];t=a.pop();)if(yield t,n=t.children)for(o=0,s=n.length;o<s;++o)l.push(n[o]);while(l.length)}function Q(t,a){t instanceof Map?(t=[void 0,t],a===void 0&&(a=Ie)):a===void 0&&(a=He);for(var l=new Z(t),n,o=[l],s,d,h,g;n=o.pop();)if((d=a(n.data))&&(g=(d=Array.from(d)).length))for(n.children=d,h=g-1;h>=0;--h)o.push(s=d[h]=new Z(d[h])),s.parent=n,s.depth=n.depth+1;return l.eachBefore(qe)}function We(){return Q(this).eachBefore(Oe)}function He(t){return t.children}function Ie(t){return Array.isArray(t)?t[1]:null}function Oe(t){t.data.value!==void 0&&(t.value=t.data.value),t.data=t.data.data}function qe(t){var a=0;do t.height=a;while((t=t.parent)&&t.height<++a)}function Z(t){this.data=t,this.depth=this.height=0,this.parent=null}Z.prototype=Q.prototype={constructor:Z,count:$e,each:Ae,eachAfter:ke,eachBefore:Fe,find:Ne,sum:Me,sort:_e,path:ze,ancestors:De,descendants:Pe,leaves:Be,links:Ee,copy:We,[Symbol.iterator]:Re};function Ge(t){if(typeof t!="function")throw new Error;return t}function q(){return 0}function G(t){return function(){return t}}function Xe(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function je(t,a,l,n,o){for(var s=t.children,d,h=-1,g=s.length,c=t.value&&(n-a)/t.value;++h<g;)d=s[h],d.y0=l,d.y1=o,d.x0=a,d.x1=a+=d.value*c}function Ye(t,a,l,n,o){for(var s=t.children,d,h=-1,g=s.length,c=t.value&&(o-l)/t.value;++h<g;)d=s[h],d.x0=a,d.x1=n,d.y0=l,d.y1=l+=d.value*c}var Ze=(1+Math.sqrt(5))/2;function Ue(t,a,l,n,o,s){for(var d=[],h=a.children,g,c,u=0,b=0,r=h.length,x,S,v=a.value,p,m,N,k,V,R,M;u<r;){x=o-l,S=s-n;do p=h[b++].value;while(!p&&b<r);for(m=N=p,R=Math.max(S/x,x/S)/(v*t),M=p*p*R,V=Math.max(N/M,M/m);b<r;++b){if(p+=c=h[b].value,c<m&&(m=c),c>N&&(N=c),M=p*p*R,k=Math.max(N/M,M/m),k>V){p-=c;break}V=k}d.push(g={value:p,dice:x<S,children:h.slice(u,b)}),g.dice?je(g,l,n,o,v?n+=S*p/v:s):Ye(g,l,n,v?l+=x*p/v:o,s),v-=p,u=b}return d}const Je=(function t(a){function l(n,o,s,d,h){Ue(a,n,o,s,d,h)}return l.ratio=function(n){return t((n=+n)>1?n:1)},l})(Ze);function Ke(){var t=Je,a=!1,l=1,n=1,o=[0],s=q,d=q,h=q,g=q,c=q;function u(r){return r.x0=r.y0=0,r.x1=l,r.y1=n,r.eachBefore(b),o=[0],a&&r.eachBefore(Xe),r}function b(r){var x=o[r.depth],S=r.x0+x,v=r.y0+x,p=r.x1-x,m=r.y1-x;p<S&&(S=p=(S+p)/2),m<v&&(v=m=(v+m)/2),r.x0=S,r.y0=v,r.x1=p,r.y1=m,r.children&&(x=o[r.depth+1]=s(r)/2,S+=c(r)-x,v+=d(r)-x,p-=h(r)-x,m-=g(r)-x,p<S&&(S=p=(S+p)/2),m<v&&(v=m=(v+m)/2),t(r,S,v,p,m))}return u.round=function(r){return arguments.length?(a=!!r,u):a},u.size=function(r){return arguments.length?(l=+r[0],n=+r[1],u):[l,n]},u.tile=function(r){return arguments.length?(t=Ge(r),u):t},u.padding=function(r){return arguments.length?u.paddingInner(r).paddingOuter(r):u.paddingInner()},u.paddingInner=function(r){return arguments.length?(s=typeof r=="function"?r:G(+r),u):s},u.paddingOuter=function(r){return arguments.length?u.paddingTop(r).paddingRight(r).paddingBottom(r).paddingLeft(r):u.paddingTop()},u.paddingTop=function(r){return arguments.length?(d=typeof r=="function"?r:G(+r),u):d},u.paddingRight=function(r){return arguments.length?(h=typeof r=="function"?r:G(+r),u):h},u.paddingBottom=function(r){return arguments.length?(g=typeof r=="function"?r:G(+r),u):g},u.paddingLeft=function(r){return arguments.length?(c=typeof r=="function"?r:G(+r),u):c},u}var E,ne=(E=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=pe,this.getAccTitle=fe,this.setDiagramTitle=ge,this.getDiagramTitle=me,this.getAccDescription=ye,this.setAccDescription=Se}getNodes(){return this.nodes}getConfig(){const a=ve,l=ae();return te({...a.treemap,...l.treemap??{}})}addNode(a,l){this.nodes.push(a),this.levels.set(a,l),l===0&&(this.outerNodes.push(a),this.root??(this.root=a))}getRoot(){return{name:"",children:this.outerNodes}}addClass(a,l){const n=this.classes.get(a)??{id:a,styles:[],textStyles:[]},o=l.replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");o&&o.forEach(s=>{xe(s)&&(n!=null&&n.textStyles?n.textStyles.push(s):n.textStyles=[s]),n!=null&&n.styles?n.styles.push(s):n.styles=[s]}),this.classes.set(a,n)}getClasses(){return this.classes}getStylesForClass(a){var l;return((l=this.classes.get(a))==null?void 0:l.styles)??[]}clear(){be(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}},w(E,"TreeMapDB"),E);function le(t){if(!t.length)return[];const a=[],l=[];return t.forEach(n=>{const o={name:n.name,children:n.type==="Leaf"?void 0:[]};for(o.classSelector=n==null?void 0:n.classSelector,n!=null&&n.cssCompiledStyles&&(o.cssCompiledStyles=[n.cssCompiledStyles]),n.type==="Leaf"&&n.value!==void 0&&(o.value=n.value);l.length>0&&l[l.length-1].level>=n.level;)l.pop();if(l.length===0)a.push(o);else{const s=l[l.length-1].node;s.children?s.children.push(o):s.children=[o]}n.type!=="Leaf"&&l.push({node:o,level:n.level})}),a}w(le,"buildHierarchy");var Qe=w((t,a)=>{Ce(t,a);const l=[];for(const s of t.TreemapRows??[])s.$type==="ClassDefStatement"&&a.addClass(s.className??"",s.styleText??"");for(const s of t.TreemapRows??[]){const d=s.item;if(!d)continue;const h=s.indent?parseInt(s.indent):0,g=et(d),c=d.classSelector?a.getStylesForClass(d.classSelector):[],u=c.length>0?c.join(";"):void 0,b={level:h,name:g,type:d.$type,value:d.value,classSelector:d.classSelector,cssCompiledStyles:u};l.push(b)}const n=le(l),o=w((s,d)=>{for(const h of s)a.addNode(h,d),h.children&&h.children.length>0&&o(h.children,d+1)},"addNodesRecursively");o(n,0)},"populate"),et=w(t=>t.name?String(t.name):"","getItemName"),re={parser:{yy:void 0},parse:w(async t=>{var a;try{const n=await Te("treemap",t);K.debug("Treemap AST:",n);const o=(a=re.parser)==null?void 0:a.yy;if(!(o instanceof ne))throw new Error("parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");Qe(n,o)}catch(l){throw K.error("Error parsing treemap:",l),l}},"parse")},tt=10,B=10,X=25,at=w((t,a,l,n)=>{const o=n.db,s=o.getConfig(),d=s.padding??tt,h=o.getDiagramTitle(),g=o.getRoot(),{themeVariables:c}=ae();if(!g)return;const u=h?30:0,b=he(a),r=s.nodeWidth?s.nodeWidth*B:960,x=s.nodeHeight?s.nodeHeight*B:500,S=r,v=x+u;b.attr("viewBox",`0 0 ${S} ${v}`),ue(b,v,S,s.useMaxWidth);let p;try{const e=s.valueFormat||",";if(e==="$0,0")p=w(i=>"$"+O(",")(i),"valueFormat");else if(e.startsWith("$")&&e.includes(",")){const i=/\.\d+/.exec(e),f=i?i[0]:"";p=w(C=>"$"+O(","+f)(C),"valueFormat")}else if(e.startsWith("$")){const i=e.substring(1);p=w(f=>"$"+O(i||"")(f),"valueFormat")}else p=O(e)}catch(e){K.error("Error creating format function:",e),p=O(",")}const m=J().range(["transparent",c.cScale0,c.cScale1,c.cScale2,c.cScale3,c.cScale4,c.cScale5,c.cScale6,c.cScale7,c.cScale8,c.cScale9,c.cScale10,c.cScale11]),N=J().range(["transparent",c.cScalePeer0,c.cScalePeer1,c.cScalePeer2,c.cScalePeer3,c.cScalePeer4,c.cScalePeer5,c.cScalePeer6,c.cScalePeer7,c.cScalePeer8,c.cScalePeer9,c.cScalePeer10,c.cScalePeer11]),k=J().range([c.cScaleLabel0,c.cScaleLabel1,c.cScaleLabel2,c.cScaleLabel3,c.cScaleLabel4,c.cScaleLabel5,c.cScaleLabel6,c.cScaleLabel7,c.cScaleLabel8,c.cScaleLabel9,c.cScaleLabel10,c.cScaleLabel11]);h&&b.append("text").attr("x",S/2).attr("y",u/2).attr("class","treemapTitle").attr("text-anchor","middle").attr("dominant-baseline","middle").text(h);const V=b.append("g").attr("transform",`translate(0, ${u})`).attr("class","treemapContainer"),R=Q(g).sum(e=>e.value??0).sort((e,i)=>(i.value??0)-(e.value??0)),ee=Ke().size([r,x]).paddingTop(e=>e.children&&e.children.length>0?X+B:0).paddingInner(d).paddingLeft(e=>e.children&&e.children.length>0?B:0).paddingRight(e=>e.children&&e.children.length>0?B:0).paddingBottom(e=>e.children&&e.children.length>0?B:0).round(!0)(R),se=ee.descendants().filter(e=>e.children&&e.children.length>0),W=V.selectAll(".treemapSection").data(se).enter().append("g").attr("class","treemapSection").attr("transform",e=>`translate(${e.x0},${e.y0})`);W.append("rect").attr("width",e=>e.x1-e.x0).attr("height",X).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",.6).attr("stroke-width",.6).attr("style",e=>e.depth===0?"display: none;":""),W.append("clipPath").attr("id",(e,i)=>`clip-section-${a}-${i}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-12)).attr("height",X),W.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class",(e,i)=>`treemapSection section${i}`).attr("fill",e=>m(e.data.name)).attr("fill-opacity",.6).attr("stroke",e=>N(e.data.name)).attr("stroke-width",2).attr("stroke-opacity",.4).attr("style",e=>{if(e.depth===0)return"display: none;";const i=P({cssCompiledStyles:e.data.cssCompiledStyles});return i.nodeStyles+";"+i.borderStyles.join(";")}),W.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",X/2).attr("dominant-baseline","middle").text(e=>e.depth===0?"":e.data.name).attr("font-weight","bold").attr("style",e=>{if(e.depth===0)return"display: none;";const i="dominant-baseline: middle; font-size: 12px; fill:"+k(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",f=P({cssCompiledStyles:e.data.cssCompiledStyles});return i+f.labelStyles.replace("color:","fill:")}).each(function(e){if(e.depth===0)return;const i=Y(this),f=e.data.name;i.text(f);const C=e.x1-e.x0,L=6;let $;s.showValues!==!1&&e.value?$=C-10-30-10-L:$=C-L-6;const A=Math.max(15,$),y=i.node();if(y.getComputedTextLength()>A){let T=f;for(;T.length>0;){if(T=f.substring(0,T.length-1),T.length===0){i.text("..."),y.getComputedTextLength()>A&&i.text("");break}if(i.text(T+"..."),y.getComputedTextLength()<=A)break}}}),s.showValues!==!1&&W.append("text").attr("class","treemapSectionValue").attr("x",e=>e.x1-e.x0-10).attr("y",X/2).attr("text-anchor","end").attr("dominant-baseline","middle").text(e=>e.value?p(e.value):"").attr("font-style","italic").attr("style",e=>{if(e.depth===0)return"display: none;";const i="text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:"+k(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",f=P({cssCompiledStyles:e.data.cssCompiledStyles});return i+f.labelStyles.replace("color:","fill:")});const ie=ee.leaves(),j=V.selectAll(".treemapLeafGroup").data(ie).enter().append("g").attr("class",(e,i)=>`treemapNode treemapLeafGroup leaf${i}${e.data.classSelector?` ${e.data.classSelector}`:""}x`).attr("transform",e=>`translate(${e.x0},${e.y0})`);j.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class","treemapLeaf").attr("fill",e=>e.parent?m(e.parent.data.name):m(e.data.name)).attr("style",e=>P({cssCompiledStyles:e.data.cssCompiledStyles}).nodeStyles).attr("fill-opacity",.3).attr("stroke",e=>e.parent?m(e.parent.data.name):m(e.data.name)).attr("stroke-width",3),j.append("clipPath").attr("id",(e,i)=>`clip-${a}-${i}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-4)).attr("height",e=>Math.max(0,e.y1-e.y0-4)),j.append("text").attr("class","treemapLabel").attr("x",e=>(e.x1-e.x0)/2).attr("y",e=>(e.y1-e.y0)/2).attr("style",e=>{const i="text-anchor: middle; dominant-baseline: middle; font-size: 38px;fill:"+k(e.data.name)+";",f=P({cssCompiledStyles:e.data.cssCompiledStyles});return i+f.labelStyles.replace("color:","fill:")}).attr("clip-path",(e,i)=>`url(#clip-${a}-${i})`).text(e=>e.data.name).each(function(e){const i=Y(this),f=e.x1-e.x0,C=e.y1-e.y0,L=i.node(),$=4,D=f-2*$,A=C-2*$;if(D<10||A<10){i.style("display","none");return}let y=parseInt(i.style("font-size"),10);const _=8,F=28,T=.6,z=6,H=2;for(;L.getComputedTextLength()>D&&y>_;)y--,i.style("font-size",`${y}px`);let I=Math.max(z,Math.min(F,Math.round(y*T))),U=y+H+I;for(;U>A&&y>_&&(y--,I=Math.max(z,Math.min(F,Math.round(y*T))),!(I<z&&y===_));)i.style("font-size",`${y}px`),U=y+H+I;i.style("font-size",`${y}px`),(L.getComputedTextLength()>D||y<_||A<y)&&i.style("display","none")}),s.showValues!==!1&&j.append("text").attr("class","treemapValue").attr("x",i=>(i.x1-i.x0)/2).attr("y",function(i){return(i.y1-i.y0)/2}).attr("style",i=>{const f="text-anchor: middle; dominant-baseline: hanging; font-size: 28px;fill:"+k(i.data.name)+";",C=P({cssCompiledStyles:i.data.cssCompiledStyles});return f+C.labelStyles.replace("color:","fill:")}).attr("clip-path",(i,f)=>`url(#clip-${a}-${f})`).text(i=>i.value?p(i.value):"").each(function(i){const f=Y(this),C=this.parentNode;if(!C){f.style("display","none");return}const L=Y(C).select(".treemapLabel");if(L.empty()||L.style("display")==="none"){f.style("display","none");return}const $=parseFloat(L.style("font-size")),D=28,A=.6,y=6,_=2,F=Math.max(y,Math.min(D,Math.round($*A)));f.style("font-size",`${F}px`);const z=(i.y1-i.y0)/2+$/2+_;f.attr("y",z);const H=i.x1-i.x0,ce=i.y1-i.y0-4,de=H-8;f.node().getComputedTextLength()>de||z+F>ce||F<y?f.style("display","none"):f.style("display",null)});const oe=s.diagramPadding??8;we(b,oe,"flowchart",(s==null?void 0:s.useMaxWidth)||!1)},"draw"),nt=w(function(t,a){return a.db.getClasses()},"getClasses"),lt={draw:at,getClasses:nt},rt={sectionStrokeColor:"black",sectionStrokeWidth:"1",sectionFillColor:"#efefef",leafStrokeColor:"black",leafStrokeWidth:"1",leafFillColor:"#efefef",labelColor:"black",labelFontSize:"12px",valueFontSize:"10px",valueColor:"black",titleColor:"black",titleFontSize:"14px"},st=w(({treemap:t}={})=>{const a=te(rt,t);return`
|
|
2
2
|
.treemapNode.section {
|
|
3
3
|
stroke: ${a.sectionStrokeColor};
|
|
4
4
|
stroke-width: ${a.sectionStrokeWidth};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{h as A,l as B,$ as se,w as F,f as ue,e as oe,g as W,i as le,j as ce,k as Z,m as k,
|
|
1
|
+
import{h as A,l as B,$ as se,w as F,f as ue,e as oe,g as W,i as le,j as ce,k as Z,m as k,n as D,aB as de,aI as ge,ar as J,y as ve,x as U,aN as pe,A as _e,X as he,aO as Ee,aH as Y,aP as be,ac as j,aQ as Ae,aR as Se,aL as Te,aS as S,aT as ae,o as fe,v as ie,aU as z,K as Ne,aV as me,aW as we,aF as xe,q as Ce,aC as Ie,aX as Me,aY as Le,aZ as Oe,a_ as He,a$ as Re}from"./CD_kQCcy.js";function Ve(e,r){return r}function ye(e,r,n){for(var a=[],t=r.length,u,i=r.length,c=0;c<t;c++){let E=r[c];ie(E,()=>{if(u){if(u.pending.delete(E),u.done.add(E),u.pending.size===0){var g=e.outrogroups;X(Y(u.done)),g.delete(u),g.size===0&&(e.outrogroups=null)}}else i-=1},!1)}if(i===0){var s=a.length===0&&n!==null;if(s){var d=n,o=d.parentNode;xe(o),o.append(d),e.items.clear()}X(r,!s)}else u={pending:new Set(r),done:new Set},(e.outrogroups??(e.outrogroups=new Set)).add(u)}function X(e,r=!0){for(var n=0;n<e.length;n++)Ce(e[n],r)}var ee;function $e(e,r,n,a,t,u=null){var i=e,c=new Map,s=(r&ae)!==0;if(s){var d=e;i=A?B(se(d)):d.appendChild(F())}A&&ue();var o=null,E=he(()=>{var l=n();return Ee(l)?l:l==null?[]:Y(l)}),g,v=!0;function N(){f.fallback=o,De(f,g,i,r,a),o!==null&&(g.length===0?(o.f&S)===0?fe(o):(o.f^=S,H(o,null,i)):ie(o,()=>{o=null}))}var x=oe(()=>{g=W(E);var l=g.length;let C=!1;if(A){var I=le(i)===ce;I!==(l===0)&&(i=Z(),B(i),k(!1),C=!0)}for(var _=new Set,m=ve,M=_e(),p=0;p<l;p+=1){A&&D.nodeType===de&&D.data===ge&&(i=D,C=!0,k(!1));var w=g[p],L=a(w,p),h=v?null:c.get(L);h?(h.v&&J(h.v,w),h.i&&J(h.i,p),M&&m.unskip_effect(h.e)):(h=Be(c,v?i:ee??(ee=F()),w,L,p,t,r,n),v||(h.e.f|=S),c.set(L,h)),_.add(L)}if(l===0&&u&&!o&&(v?o=U(()=>u(i)):(o=U(()=>u(ee??(ee=F()))),o.f|=S)),l>_.size&&pe(),A&&l>0&&B(Z()),!v)if(M){for(const[R,y]of c)_.has(R)||m.skip_effect(y.e);m.oncommit(N),m.ondiscard(()=>{})}else N();C&&k(!0),W(E)}),f={effect:x,items:c,outrogroups:null,fallback:o};v=!1,A&&(i=D)}function O(e){for(;e!==null&&(e.f&me)===0;)e=e.next;return e}function De(e,r,n,a,t){var h,R,y,q,K,V,$,G,P;var u=(a&we)!==0,i=r.length,c=e.items,s=O(e.effect.first),d,o=null,E,g=[],v=[],N,x,f,l;if(u)for(l=0;l<i;l+=1)N=r[l],x=t(N,l),f=c.get(x).e,(f.f&S)===0&&((R=(h=f.nodes)==null?void 0:h.a)==null||R.measure(),(E??(E=new Set)).add(f));for(l=0;l<i;l+=1){if(N=r[l],x=t(N,l),f=c.get(x).e,e.outrogroups!==null)for(const b of e.outrogroups)b.pending.delete(f),b.done.delete(f);if((f.f&S)!==0)if(f.f^=S,f===s)H(f,null,n);else{var C=o?o.next:s;f===e.effect.last&&(e.effect.last=f.prev),f.prev&&(f.prev.next=f.next),f.next&&(f.next.prev=f.prev),T(e,o,f),T(e,f,C),H(f,C,n),o=f,g=[],v=[],s=O(o.next);continue}if((f.f&z)!==0&&(fe(f),u&&((q=(y=f.nodes)==null?void 0:y.a)==null||q.unfix(),(E??(E=new Set)).delete(f))),f!==s){if(d!==void 0&&d.has(f)){if(g.length<v.length){var I=v[0],_;o=I.prev;var m=g[0],M=g[g.length-1];for(_=0;_<g.length;_+=1)H(g[_],I,n);for(_=0;_<v.length;_+=1)d.delete(v[_]);T(e,m.prev,M.next),T(e,o,m),T(e,M,I),s=I,o=M,l-=1,g=[],v=[]}else d.delete(f),H(f,s,n),T(e,f.prev,f.next),T(e,f,o===null?e.effect.first:o.next),T(e,o,f),o=f;continue}for(g=[],v=[];s!==null&&s!==f;)(d??(d=new Set)).add(s),v.push(s),s=O(s.next);if(s===null)continue}(f.f&S)===0&&g.push(f),o=f,s=O(f.next)}if(e.outrogroups!==null){for(const b of e.outrogroups)b.pending.size===0&&(X(Y(b.done)),(K=e.outrogroups)==null||K.delete(b));e.outrogroups.size===0&&(e.outrogroups=null)}if(s!==null||d!==void 0){var p=[];if(d!==void 0)for(f of d)(f.f&z)===0&&p.push(f);for(;s!==null;)(s.f&z)===0&&s!==e.fallback&&p.push(s),s=O(s.next);var w=p.length;if(w>0){var L=(a&ae)!==0&&i===0?n:null;if(u){for(l=0;l<w;l+=1)($=(V=p[l].nodes)==null?void 0:V.a)==null||$.measure();for(l=0;l<w;l+=1)(P=(G=p[l].nodes)==null?void 0:G.a)==null||P.fix()}ye(e,p,L)}}u&&Ne(()=>{var b,Q;if(E!==void 0)for(f of E)(Q=(b=f.nodes)==null?void 0:b.a)==null||Q.apply()})}function Be(e,r,n,a,t,u,i,c){var s=(i&Ae)!==0?(i&Se)===0?Te(n,!1,!1):j(n):null,d=(i&be)!==0?j(t):null;return{v:s,i:d,e:U(()=>(u(r,s??n,d??t,c),()=>{e.delete(a)}))}}function H(e,r,n){if(e.nodes)for(var a=e.nodes.start,t=e.nodes.end,u=r&&(r.f&S)===0?r.nodes.start:n;a!==null;){var i=Ie(a);if(u.before(a),a===t)return;a=i}}function T(e,r,n){r===null?e.effect.first=n:r.next=n,n===null?e.effect.last=r:n.prev=r}function te(e){var r,n,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var t=e.length;for(r=0;r<t;r++)e[r]&&(n=te(e[r]))&&(a&&(a+=" "),a+=n)}else for(n in e)e[n]&&(a&&(a+=" "),a+=n);return a}function Fe(){for(var e,r,n=0,a="",t=arguments.length;n<t;n++)(e=arguments[n])&&(r=te(e))&&(a&&(a+=" "),a+=r);return a}function Ge(e){return typeof e=="object"?Fe(e):e??""}const re=[...`
|
|
2
2
|
\r\f \v\uFEFF`];function ke(e,r,n){var a=e==null?"":""+e;if(r&&(a=a?a+" "+r:r),n){for(var t of Object.keys(n))if(n[t])a=a?a+" "+t:t;else if(a.length)for(var u=t.length,i=0;(i=a.indexOf(t,i))>=0;){var c=i+u;(i===0||re.includes(a[i-1]))&&(c===a.length||re.includes(a[c]))?a=(i===0?"":a.substring(0,i))+a.substring(c+1):i=c}}return a===""?null:a}function Pe(e,r){return e==null?null:String(e)}function Qe(e,r,n,a,t,u){var i=e.__className;if(A||i!==n||i===void 0){var c=ke(n,a,u);(!A||c!==e.getAttribute("class"))&&(c==null?e.removeAttribute("class"):e.className=c),e.__className=n}else if(u&&t!==u)for(var s in u){var d=!!u[s];(t==null||d!==!!t[s])&&e.classList.toggle(s,d)}return u}const ze=Symbol("is custom element"),Ue=Symbol("is html"),Xe=Le?"link":"LINK";function We(e,r,n,a){var t=Ye(e);A&&(t[r]=e.getAttribute(r),r==="src"||r==="srcset"||r==="href"&&e.nodeName===Xe)||t[r]!==(t[r]=n)&&(r==="loading"&&(e[He]=n),n==null?e.removeAttribute(r):typeof n!="string"&&qe(e).includes(r)?e[r]=n:e.setAttribute(r,n))}function Ye(e){return e.__attributes??(e.__attributes={[ze]:e.nodeName.includes("-"),[Ue]:e.namespaceURI===Me})}var ne=new Map;function qe(e){var r=e.getAttribute("is")||e.nodeName,n=ne.get(r);if(n)return n;ne.set(r,n=[]);for(var a,t=e,u=Element.prototype;u!==t;){a=Re(t);for(var i in a)a[i].set&&n.push(i);t=Oe(t)}return n}function Ze(e){switch(e){case"approved":return"bg-green/15 text-green";case"needs-work":return"bg-orange/15 text-orange";default:return"bg-accent/15 text-accent"}}function Je(e){switch(e){case"approved":return"bg-green/15 text-green";case"archived":return"bg-text-dim/15 text-text-dim";case"active":default:return"bg-accent/15 text-accent"}}function je(e){switch(e){case"added":return"border-l-green bg-green/5";case"removed":return"border-l-red bg-red/5";case"changed":return"border-l-orange bg-orange/5";default:return"border-l-border"}}function er(e){switch(e){case"added":return"bg-green/15 text-green";case"removed":return"bg-red/15 text-red";case"changed":return"bg-orange/15 text-orange";default:return"bg-text-dim/15 text-text-dim"}}export{We as a,Qe as b,Ze as c,Ge as d,$e as e,je as f,er as g,Ve as i,Je as s,Pe as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as r}from"./CpzGW5sx.js";var e=4;function a(o){return r(o,e)}export{a as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as s}from"./
|
|
1
|
+
import{_ as s}from"./BEd52Y9t.js";var t,e=(t=class{constructor(i){this.init=i,this.records=this.init()}reset(){this.records=this.init()}},s(t,"ImperativeState"),t);export{e as I};
|