@oneclick.dev/cms-core-modules 0.0.105 → 0.0.106
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/dist/{Acquisition-CPlZzUBo.mjs → Acquisition-B2pM5vSp.mjs} +2 -2
- package/dist/{Acquisition-Br1Pfny3.js → Acquisition-Dt2rREU8.js} +1 -1
- package/dist/{Audience-BfkrmBuQ.js → Audience-Bs7b0TNm.js} +1 -1
- package/dist/{Audience-DTblSAiL.mjs → Audience-VLnUsQvW.mjs} +2 -2
- package/dist/{ContentEditor-B1nfKG_5.mjs → ContentEditor-BNLEv-qJ.mjs} +3119 -3098
- package/dist/{ContentEditor-DdFU8piH.js → ContentEditor-BUvvqfG1.js} +36 -36
- package/dist/{Create-qPeQxkdl.js → Create-89z41K73.js} +1 -1
- package/dist/{Create-BRBh0xjM.mjs → Create-Cn_Eufga.mjs} +5 -1
- package/dist/{Entries-C8UJkrVC.mjs → Entries-BdhUyJR5.mjs} +1 -1
- package/dist/{Entries-BaS6H6ak.js → Entries-CEXM_SkO.js} +1 -1
- package/dist/NewReservationDialog.vue_vue_type_script_setup_true_lang-Ceoje52V.js +1 -0
- package/dist/NewReservationDialog.vue_vue_type_script_setup_true_lang-DMGcRmm-.mjs +1255 -0
- package/dist/OrderDetailDialog.vue_vue_type_script_setup_true_lang-COrK1j0S.js +1 -0
- package/dist/OrderDetailDialog.vue_vue_type_script_setup_true_lang-Vb3q8EVv.mjs +330 -0
- package/dist/{Overview-CpHhuiaV.js → Overview-Bn1Xx3_j.js} +1 -1
- package/dist/{Overview-BrCwozey.js → Overview-DC9io1bk.js} +1 -1
- package/dist/Overview-Di84CsR5.mjs +476 -0
- package/dist/Overview-UoZHUMUz.js +1 -0
- package/dist/{Overview-kaMhsIUq.mjs → Overview-ejh4vUMT.mjs} +3 -3
- package/dist/{Overview-D_T3K6aq.mjs → Overview-lWAyyenp.mjs} +1 -1
- package/dist/ReservationDetailDialog.vue_vue_type_script_setup_true_lang-CuwREvXD.js +349 -0
- package/dist/ReservationDetailDialog.vue_vue_type_script_setup_true_lang-GYNZ_yhD.mjs +3077 -0
- package/dist/{SeoHealth-BzcWd_w7.mjs → SeoHealth-DsbVdd2l.mjs} +3 -3
- package/dist/SeoHealth-az1YuNF2.js +1 -0
- package/dist/{TableView-DXmEF6pY.mjs → TableView-Bm6HaRHm.mjs} +1 -1
- package/dist/{TableView-CPAw3h8g.js → TableView-DQW0A1oG.js} +1 -1
- package/dist/agenda-IOqtALWf.js +1 -0
- package/dist/agenda-neyeLWv-.mjs +1165 -0
- package/dist/cms-core-modules.css +1 -1
- package/dist/{index-C4YUVWzJ.js → index-A2kp8Isi.js} +6 -6
- package/dist/{index-BuzLn4Km.js → index-B5aBwdxY.js} +2 -2
- package/dist/{index-p5Uqu8c2.mjs → index-BRdCrvcz.mjs} +52 -47
- package/dist/{index-D3L8WAJI.js → index-BiT55eU0.js} +2 -2
- package/dist/{index-CMk3uhUt.mjs → index-Bvxc5xv_.mjs} +153 -147
- package/dist/{index-DQYBP8Js.js → index-G7cIlnGN.js} +4 -4
- package/dist/{index-DjDCYQ_6.mjs → index-X6LV64jK.mjs} +102 -101
- package/dist/{index-_2lRVt_k.mjs → index-uOkqO74I.mjs} +105 -107
- package/dist/index-unsDfNYv.mjs +1187 -0
- package/dist/index-vHmvbEwa.js +35 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.mjs +14 -14
- package/dist/interpolation-CHn59tIC.js +1 -0
- package/dist/interpolation-w7IRDJwK.mjs +180 -0
- package/dist/orders-C65SlpJy.mjs +618 -0
- package/dist/orders-XVzWAgG1.js +1 -0
- package/dist/src/appointments/components/edit/EventDialog/BookingsList.vue.d.ts +11 -2
- package/dist/src/appointments/components/edit/EventDialog/OrderDetailDialog.vue.d.ts +55 -0
- package/dist/src/appointments/components/edit/EventDialog/ReservationDetailDialog.vue.d.ts +6 -1
- package/dist/src/appointments/components/edit/NewReservationDialog/CustomerInformation.vue.d.ts +10 -0
- package/dist/src/appointments/components/edit/NewReservationDialog/NewReservationDialog.vue.d.ts +25 -1
- package/dist/src/appointments/components/edit/NewReservationDialog/QuickReservationAdder.vue.d.ts +26 -0
- package/dist/src/appointments/components/edit/NewReservationDialog/ReservationLines.vue.d.ts +31 -0
- package/dist/src/appointments/components/edit/dashboard/Timeline.vue.d.ts +3 -1
- package/dist/src/appointments/composables/useHorizontalScroll.d.ts +20 -0
- package/dist/src/lib/interpolation.d.ts +6 -0
- package/package.json +2 -2
- package/dist/NewReservationDialog.vue_vue_type_script_setup_true_lang-9Q7TMm4u.mjs +0 -401
- package/dist/NewReservationDialog.vue_vue_type_script_setup_true_lang-DiNzGl-q.js +0 -1
- package/dist/Overview-BYMrsZjM.mjs +0 -332
- package/dist/Overview-t0pG5xjA.js +0 -1
- package/dist/ReservationDetailDialog.vue_vue_type_script_setup_true_lang-Cz_22Oce.mjs +0 -2927
- package/dist/ReservationDetailDialog.vue_vue_type_script_setup_true_lang-DPPNc-Z5.js +0 -349
- package/dist/SeoHealth-09sEOu3G.js +0 -1
- package/dist/agenda-BNG05SAq.js +0 -1
- package/dist/agenda-D1RxMxBS.mjs +0 -1152
- package/dist/index-BtujSJeg.js +0 -35
- package/dist/index-dOdMm1pV.mjs +0 -1105
- package/dist/interpolation-DEDSLETn.mjs +0 -128
- package/dist/interpolation-DERg6Lwt.js +0 -1
- package/dist/orders-CzzcFQha.mjs +0 -559
- package/dist/orders-ETtbA4aQ.js +0 -1
- package/dist/src/appointments/components/edit/dashboard/BookingsList.vue.d.ts +0 -110
- package/dist/src/appointments/pages/edit/orders.vue.d.ts +0 -98
|
@@ -49,6 +49,6 @@
|
|
|
49
49
|
}
|
|
50
50
|
`)}
|
|
51
51
|
}
|
|
52
|
-
`;function Ye(t=window?.document.body){return t?+Uo("var(--vis-font-wh-ratio)",t):Sr}var fa={value:()=>{}};function $r(){for(var t=0,e=arguments.length,n={},r;t<e;++t){if(!(r=arguments[t]+"")||r in n||/[\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new Vt(n)}function Vt(t){this._=t}function la(t,e){return t.trim().split(/^|\s+/).map(function(n){var r="",i=n.indexOf(".");if(i>=0&&(r=n.slice(i+1),n=n.slice(0,i)),n&&!e.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}Vt.prototype=$r.prototype={constructor:Vt,on:function(t,e){var n=this._,r=la(t+"",n),i,s=-1,o=r.length;if(arguments.length<2){for(;++s<o;)if((i=(t=r[s]).type)&&(i=ha(n[i],t.name)))return i;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++s<o;)if(i=(t=r[s]).type)n[i]=On(n[i],t.name,e);else if(e==null)for(i in n)n[i]=On(n[i],t.name,null);return this},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new Vt(t)},call:function(t,e){if((i=arguments.length-2)>0)for(var n=new Array(i),r=0,i,s;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(s=this._[t],r=0,i=s.length;r<i;++r)s[r].value.apply(e,n)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,s=r.length;i<s;++i)r[i].value.apply(e,n)}};function ha(t,e){for(var n=0,r=t.length,i;n<r;++n)if((i=t[n]).name===e)return i.value}function On(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=fa,t=t.slice(0,r).concat(t.slice(r+1));break}return n!=null&&t.push({name:e,value:n}),t}var at=0,ht=0,ft=0,Rr=1e3,ne,dt,re=0,tt=0,he=0,St=typeof performance=="object"&&performance.now?performance:Date,Nr=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Ze(){return tt||(Nr(da),tt=St.now()+he)}function da(){tt=0}function ie(){this._call=this._time=this._next=null}ie.prototype=kr.prototype={constructor:ie,restart:function(t,e,n){if(typeof t!="function")throw new TypeError("callback is not a function");n=(n==null?Ze():+n)+(e==null?0:+e),!this._next&&dt!==this&&(dt?dt._next=this:ne=this,dt=this),this._call=t,this._time=n,Oe()},stop:function(){this._call&&(this._call=null,this._time=1/0,Oe())}};function kr(t,e,n){var r=new ie;return r.restart(t,e,n),r}function ga(){Ze(),++at;for(var t=ne,e;t;)(e=tt-t._time)>=0&&t._call.call(void 0,e),t=t._next;--at}function Mn(){tt=(re=St.now())+he,at=ht=0;try{ga()}finally{at=0,va(),tt=0}}function pa(){var t=St.now(),e=t-re;e>Rr&&(he-=e,re=t)}function va(){for(var t,e=ne,n,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:ne=n);dt=t,Oe(r)}function Oe(t){if(!at){ht&&(ht=clearTimeout(ht));var e=t-tt;e>24?(t<1/0&&(ht=setTimeout(Mn,t-St.now()-he)),ft&&(ft=clearInterval(ft))):(ft||(re=St.now(),ft=setInterval(pa,Rr)),at=1,Nr(Mn))}}function zn(t,e,n){var r=new ie;return e=e==null?0:+e,r.restart(i=>{r.stop(),t(i+e)},e,n),r}var ma=$r("start","end","cancel","interrupt"),ya=[],Or=0,Fn=1,Me=2,Pt=3,Dn=4,ze=5,Wt=6;function de(t,e,n,r,i,s){var o=t.__transition;if(!o)t.__transition={};else if(n in o)return;_a(t,n,{name:e,index:r,group:i,on:ma,tween:ya,time:s.time,delay:s.delay,duration:s.duration,ease:s.ease,timer:null,state:Or})}function Ke(t,e){var n=I(t,e);if(n.state>Or)throw new Error("too late; already scheduled");return n}function W(t,e){var n=I(t,e);if(n.state>Pt)throw new Error("too late; already running");return n}function I(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function _a(t,e,n){var r=t.__transition,i;r[e]=n,n.timer=kr(s,0,n.time);function s(u){n.state=Fn,n.timer.restart(o,n.delay,n.time),n.delay<=u&&o(u-n.delay)}function o(u){var f,l,h,p;if(n.state!==Fn)return c();for(f in r)if(p=r[f],p.name===n.name){if(p.state===Pt)return zn(o);p.state===Dn?(p.state=Wt,p.timer.stop(),p.on.call("interrupt",t,t.__data__,p.index,p.group),delete r[f]):+f<e&&(p.state=Wt,p.timer.stop(),p.on.call("cancel",t,t.__data__,p.index,p.group),delete r[f])}if(zn(function(){n.state===Pt&&(n.state=Dn,n.timer.restart(a,n.delay,n.time),a(u))}),n.state=Me,n.on.call("start",t,t.__data__,n.index,n.group),n.state===Me){for(n.state=Pt,i=new Array(h=n.tween.length),f=0,l=-1;f<h;++f)(p=n.tween[f].value.call(t,t.__data__,n.index,n.group))&&(i[++l]=p);i.length=l+1}}function a(u){for(var f=u<n.duration?n.ease.call(null,u/n.duration):(n.timer.restart(c),n.state=ze,1),l=-1,h=i.length;++l<h;)i[l].call(t,f);n.state===ze&&(n.on.call("end",t,t.__data__,n.index,n.group),c())}function c(){n.state=Wt,n.timer.stop(),delete r[e];for(var u in r)return;delete t.__transition}}function Je(t,e){var n=t.__transition,r,i,s=!0,o;if(n){e=e==null?null:e+"";for(o in n){if((r=n[o]).name!==e){s=!1;continue}i=r.state>Me&&r.state<ze,r.state=Wt,r.timer.stop(),r.on.call(i?"interrupt":"cancel",t,t.__data__,r.index,r.group),delete n[o]}s&&delete t.__transition}}function xa(t){return this.each(function(){Je(this,t)})}const Qe=t=>()=>t;function wa(t,e){return function(n){return t+n*e}}function ba(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}function Aa(t){return(t=+t)==1?Mr:function(e,n){return n-e?ba(e,n,t):Qe(isNaN(e)?n:e)}}function Mr(t,e){var n=e-t;return n?wa(t,n):Qe(isNaN(t)?e:t)}const se=(function t(e){var n=Aa(e);function r(i,s){var o=n((i=Re(i)).r,(s=Re(s)).r),a=n(i.g,s.g),c=n(i.b,s.b),u=Mr(i.opacity,s.opacity);return function(f){return i.r=o(f),i.g=a(f),i.b=c(f),i.opacity=u(f),i+""}}return r.gamma=t,r})(1);function Ta(t,e){e||(e=[]);var n=t?Math.min(e.length,t.length):0,r=e.slice(),i;return function(s){for(i=0;i<n;++i)r[i]=t[i]*(1-s)+e[i]*s;return r}}function Sa(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function Ea(t,e){var n=e?e.length:0,r=t?Math.min(n,t.length):0,i=new Array(r),s=new Array(n),o;for(o=0;o<r;++o)i[o]=je(t[o],e[o]);for(;o<n;++o)s[o]=e[o];return function(a){for(o=0;o<r;++o)s[o]=i[o](a);return s}}function Ca(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}function F(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function $a(t,e){var n={},r={},i;(t===null||typeof t!="object")&&(t={}),(e===null||typeof e!="object")&&(e={});for(i in e)i in t?n[i]=je(t[i],e[i]):r[i]=e[i];return function(s){for(i in n)r[i]=n[i](s);return r}}var Fe=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,_e=new RegExp(Fe.source,"g");function Ra(t){return function(){return t}}function Na(t){return function(e){return t(e)+""}}function zr(t,e){var n=Fe.lastIndex=_e.lastIndex=0,r,i,s,o=-1,a=[],c=[];for(t=t+"",e=e+"";(r=Fe.exec(t))&&(i=_e.exec(e));)(s=i.index)>n&&(s=e.slice(n,s),a[o]?a[o]+=s:a[++o]=s),(r=r[0])===(i=i[0])?a[o]?a[o]+=i:a[++o]=i:(a[++o]=null,c.push({i:o,x:F(r,i)})),n=_e.lastIndex;return n<e.length&&(s=e.slice(n),a[o]?a[o]+=s:a[++o]=s),a.length<2?c[0]?Na(c[0].x):Ra(e):(e=c.length,function(u){for(var f=0,l;f<e;++f)a[(l=c[f]).i]=l.x(u);return a.join("")})}function je(t,e){var n=typeof e,r;return e==null||n==="boolean"?Qe(e):(n==="number"?F:n==="string"?(r=j(e))?(e=r,se):zr:e instanceof j?se:e instanceof Date?Ca:Sa(e)?Ta:Array.isArray(e)?Ea:typeof e.valueOf!="function"&&typeof e.toString!="function"||isNaN(e)?$a:F)(t,e)}var In=180/Math.PI,De={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Fr(t,e,n,r,i,s){var o,a,c;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(c=t*n+e*r)&&(n-=t*c,r-=e*c),(a=Math.sqrt(n*n+r*r))&&(n/=a,r/=a,c/=a),t*r<e*n&&(t=-t,e=-e,c=-c,o=-o),{translateX:i,translateY:s,rotate:Math.atan2(e,t)*In,skewX:Math.atan(c)*In,scaleX:o,scaleY:a}}var Dt;function ka(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?De:Fr(e.a,e.b,e.c,e.d,e.e,e.f)}function Oa(t){return t==null||(Dt||(Dt=document.createElementNS("http://www.w3.org/2000/svg","g")),Dt.setAttribute("transform",t),!(t=Dt.transform.baseVal.consolidate()))?De:(t=t.matrix,Fr(t.a,t.b,t.c,t.d,t.e,t.f))}function Dr(t,e,n,r){function i(u){return u.length?u.pop()+" ":""}function s(u,f,l,h,p,g){if(u!==l||f!==h){var d=p.push("translate(",null,e,null,n);g.push({i:d-4,x:F(u,l)},{i:d-2,x:F(f,h)})}else(l||h)&&p.push("translate("+l+e+h+n)}function o(u,f,l,h){u!==f?(u-f>180?f+=360:f-u>180&&(u+=360),h.push({i:l.push(i(l)+"rotate(",null,r)-2,x:F(u,f)})):f&&l.push(i(l)+"rotate("+f+r)}function a(u,f,l,h){u!==f?h.push({i:l.push(i(l)+"skewX(",null,r)-2,x:F(u,f)}):f&&l.push(i(l)+"skewX("+f+r)}function c(u,f,l,h,p,g){if(u!==l||f!==h){var d=p.push(i(p)+"scale(",null,",",null,")");g.push({i:d-4,x:F(u,l)},{i:d-2,x:F(f,h)})}else(l!==1||h!==1)&&p.push(i(p)+"scale("+l+","+h+")")}return function(u,f){var l=[],h=[];return u=t(u),f=t(f),s(u.translateX,u.translateY,f.translateX,f.translateY,l,h),o(u.rotate,f.rotate,l,h),a(u.skewX,f.skewX,l,h),c(u.scaleX,u.scaleY,f.scaleX,f.scaleY,l,h),u=f=null,function(p){for(var g=-1,d=h.length,y;++g<d;)l[(y=h[g]).i]=y.x(p);return l.join("")}}}var Ma=Dr(ka,"px, ","px)","deg)"),za=Dr(Oa,", ",")",")");function Fa(t,e){var n,r;return function(){var i=W(this,t),s=i.tween;if(s!==n){r=n=s;for(var o=0,a=r.length;o<a;++o)if(r[o].name===e){r=r.slice(),r.splice(o,1);break}}i.tween=r}}function Da(t,e,n){var r,i;if(typeof n!="function")throw new Error;return function(){var s=W(this,t),o=s.tween;if(o!==r){i=(r=o).slice();for(var a={name:e,value:n},c=0,u=i.length;c<u;++c)if(i[c].name===e){i[c]=a;break}c===u&&i.push(a)}s.tween=i}}function Ia(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r=I(this.node(),n).tween,i=0,s=r.length,o;i<s;++i)if((o=r[i]).name===t)return o.value;return null}return this.each((e==null?Fa:Da)(n,t,e))}function tn(t,e,n){var r=t._id;return t.each(function(){var i=W(this,r);(i.value||(i.value={}))[e]=n.apply(this,arguments)}),function(i){return I(i,r).value[e]}}function Ir(t,e){var n;return(typeof e=="number"?F:e instanceof j?se:(n=j(e))?(e=n,se):zr)(t,e)}function La(t){return function(){this.removeAttribute(t)}}function Ba(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Ha(t,e,n){var r,i=n+"",s;return function(){var o=this.getAttribute(t);return o===i?null:o===r?s:s=e(r=o,n)}}function Va(t,e,n){var r,i=n+"",s;return function(){var o=this.getAttributeNS(t.space,t.local);return o===i?null:o===r?s:s=e(r=o,n)}}function Pa(t,e,n){var r,i,s;return function(){var o,a=n(this),c;return a==null?void this.removeAttribute(t):(o=this.getAttribute(t),c=a+"",o===c?null:o===r&&c===i?s:(i=c,s=e(r=o,a)))}}function Wa(t,e,n){var r,i,s;return function(){var o,a=n(this),c;return a==null?void this.removeAttributeNS(t.space,t.local):(o=this.getAttributeNS(t.space,t.local),c=a+"",o===c?null:o===r&&c===i?s:(i=c,s=e(r=o,a)))}}function qa(t,e){var n=oe(t),r=n==="transform"?za:Ir;return this.attrTween(t,typeof e=="function"?(n.local?Wa:Pa)(n,r,tn(this,"attr."+t,e)):e==null?(n.local?Ba:La)(n):(n.local?Va:Ha)(n,r,e))}function Ua(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function Ga(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function Xa(t,e){var n,r;function i(){var s=e.apply(this,arguments);return s!==r&&(n=(r=s)&&Ga(t,s)),n}return i._value=e,i}function Ya(t,e){var n,r;function i(){var s=e.apply(this,arguments);return s!==r&&(n=(r=s)&&Ua(t,s)),n}return i._value=e,i}function Za(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(e==null)return this.tween(n,null);if(typeof e!="function")throw new Error;var r=oe(t);return this.tween(n,(r.local?Xa:Ya)(r,e))}function Ka(t,e){return function(){Ke(this,t).delay=+e.apply(this,arguments)}}function Ja(t,e){return e=+e,function(){Ke(this,t).delay=e}}function Qa(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?Ka:Ja)(e,t)):I(this.node(),e).delay}function ja(t,e){return function(){W(this,t).duration=+e.apply(this,arguments)}}function tc(t,e){return e=+e,function(){W(this,t).duration=e}}function ec(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?ja:tc)(e,t)):I(this.node(),e).duration}function nc(t,e){if(typeof e!="function")throw new Error;return function(){W(this,t).ease=e}}function rc(t){var e=this._id;return arguments.length?this.each(nc(e,t)):I(this.node(),e).ease}function ic(t,e){return function(){var n=e.apply(this,arguments);if(typeof n!="function")throw new Error;W(this,t).ease=n}}function sc(t){if(typeof t!="function")throw new Error;return this.each(ic(this._id,t))}function oc(t){typeof t!="function"&&(t=Vn(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var s=e[i],o=s.length,a=r[i]=[],c,u=0;u<o;++u)(c=s[u])&&t.call(c,c.__data__,u,s)&&a.push(c);return new U(r,this._parents,this._name,this._id)}function ac(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,r=e.length,i=n.length,s=Math.min(r,i),o=new Array(r),a=0;a<s;++a)for(var c=e[a],u=n[a],f=c.length,l=o[a]=new Array(f),h,p=0;p<f;++p)(h=c[p]||u[p])&&(l[p]=h);for(;a<r;++a)o[a]=e[a];return new U(o,this._parents,this._name,this._id)}function cc(t){return(t+"").trim().split(/^|\s+/).every(function(e){var n=e.indexOf(".");return n>=0&&(e=e.slice(0,n)),!e||e==="start"})}function uc(t,e,n){var r,i,s=cc(e)?Ke:W;return function(){var o=s(this,t),a=o.on;a!==r&&(i=(r=a).copy()).on(e,n),o.on=i}}function fc(t,e){var n=this._id;return arguments.length<2?I(this.node(),n).on.on(t):this.each(uc(n,t,e))}function lc(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}function hc(){return this.on("end.remove",lc(this._id))}function dc(t){var e=this._name,n=this._id;typeof t!="function"&&(t=Ie(t));for(var r=this._groups,i=r.length,s=new Array(i),o=0;o<i;++o)for(var a=r[o],c=a.length,u=s[o]=new Array(c),f,l,h=0;h<c;++h)(f=a[h])&&(l=t.call(f,f.__data__,h,a))&&("__data__"in f&&(l.__data__=f.__data__),u[h]=l,de(u[h],e,n,h,u,I(f,n)));return new U(s,this._parents,e,n)}function gc(t){var e=this._name,n=this._id;typeof t!="function"&&(t=Hn(t));for(var r=this._groups,i=r.length,s=[],o=[],a=0;a<i;++a)for(var c=r[a],u=c.length,f,l=0;l<u;++l)if(f=c[l]){for(var h=t.call(f,f.__data__,l,c),p,g=I(f,n),d=0,y=h.length;d<y;++d)(p=h[d])&&de(p,e,n,d,h,g);s.push(h),o.push(f)}return new U(s,o,e,n)}var pc=Et.prototype.constructor;function vc(){return new pc(this._groups,this._parents)}function mc(t,e){var n,r,i;return function(){var s=it(this,t),o=(this.style.removeProperty(t),it(this,t));return s===o?null:s===n&&o===r?i:i=e(n=s,r=o)}}function Lr(t){return function(){this.style.removeProperty(t)}}function yc(t,e,n){var r,i=n+"",s;return function(){var o=it(this,t);return o===i?null:o===r?s:s=e(r=o,n)}}function _c(t,e,n){var r,i,s;return function(){var o=it(this,t),a=n(this),c=a+"";return a==null&&(c=a=(this.style.removeProperty(t),it(this,t))),o===c?null:o===r&&c===i?s:(i=c,s=e(r=o,a))}}function xc(t,e){var n,r,i,s="style."+e,o="end."+s,a;return function(){var c=W(this,t),u=c.on,f=c.value[s]==null?a||(a=Lr(e)):void 0;(u!==n||i!==f)&&(r=(n=u).copy()).on(o,i=f),c.on=r}}function wc(t,e,n){var r=(t+="")=="transform"?Ma:Ir;return e==null?this.styleTween(t,mc(t,r)).on("end.style."+t,Lr(t)):typeof e=="function"?this.styleTween(t,_c(t,r,tn(this,"style."+t,e))).each(xc(this._id,t)):this.styleTween(t,yc(t,r,e),n).on("end.style."+t,null)}function bc(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function Ac(t,e,n){var r,i;function s(){var o=e.apply(this,arguments);return o!==i&&(r=(i=o)&&bc(t,o,n)),r}return s._value=e,s}function Tc(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(e==null)return this.tween(r,null);if(typeof e!="function")throw new Error;return this.tween(r,Ac(t,e,n??""))}function Sc(t){return function(){this.textContent=t}}function Ec(t){return function(){var e=t(this);this.textContent=e??""}}function Cc(t){return this.tween("text",typeof t=="function"?Ec(tn(this,"text",t)):Sc(t==null?"":t+""))}function $c(t){return function(e){this.textContent=t.call(this,e)}}function Rc(t){var e,n;function r(){var i=t.apply(this,arguments);return i!==n&&(e=(n=i)&&$c(i)),e}return r._value=t,r}function Nc(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,Rc(t))}function kc(){for(var t=this._name,e=this._id,n=Br(),r=this._groups,i=r.length,s=0;s<i;++s)for(var o=r[s],a=o.length,c,u=0;u<a;++u)if(c=o[u]){var f=I(c,e);de(c,t,n,u,o,{time:f.time+f.delay+f.duration,delay:0,duration:f.duration,ease:f.ease})}return new U(r,this._parents,t,n)}function Oc(){var t,e,n=this,r=n._id,i=n.size();return new Promise(function(s,o){var a={value:o},c={value:function(){--i===0&&s()}};n.each(function(){var u=W(this,r),f=u.on;f!==t&&(e=(t=f).copy(),e._.cancel.push(a),e._.interrupt.push(a),e._.end.push(c)),u.on=e}),i===0&&s()})}var Mc=0;function U(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function Br(){return++Mc}var q=Et.prototype;U.prototype={constructor:U,select:dc,selectAll:gc,selectChild:q.selectChild,selectChildren:q.selectChildren,filter:oc,merge:ac,selection:vc,transition:kc,call:q.call,nodes:q.nodes,node:q.node,size:q.size,empty:q.empty,each:q.each,on:fc,attr:qa,attrTween:Za,style:wc,styleTween:Tc,text:Cc,textTween:Nc,remove:hc,tween:Ia,delay:Qa,duration:ec,ease:rc,easeVarying:sc,end:Oc,[Symbol.iterator]:q[Symbol.iterator]};function zc(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var Fc={time:null,delay:0,duration:250,ease:zc};function Dc(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return n}function Ic(t){var e,n;t instanceof U?(e=t._id,t=t._name):(e=Br(),(n=Fc).time=Ze(),t=t==null?null:t+"");for(var r=this._groups,i=r.length,s=0;s<i;++s)for(var o=r[s],a=o.length,c,u=0;u<a;++u)(c=o[u])&&de(c,t,e,u,o,n||Dc(c,e));return new U(r,this._parents,t,e)}Et.prototype.interrupt=xa;Et.prototype.transition=Ic;function Lc(t,e,n){if(t.nodes().forEach(r=>Je(r)),e){const r=t.transition().duration(e);return n&&r.ease(n),r}else return t}class en{constructor(e){this.data=e}get data(){return this._data}set data(e){this._data=e}}const Hr={duration:600,events:{},attributes:{}};class Bc{constructor(e=gt.SVG){var n,r;this.type=gt.SVG,this.datamodel=new en,this.sizing=exports.Sizing.Fit,this.events={},this._defaultConfig=Hr,this._width=400,this._height=200,this._containerWidth=void 0,this._containerHeight=void 0,this._containerMargin={top:0,bottom:0,left:0,right:0},this._setUpComponentEventsThrottled=Ae(this._setUpComponentEvents,500),this._setCustomAttributesThrottled=Ae(this._setCustomAttributes,500),e===gt.SVG?this.element=document.createElementNS("http://www.w3.org/2000/svg","g"):this.element=document.createElement("div"),this.uid=br(),this.g=Yt(this.element);const i=(r=(n=this.constructor)===null||n===void 0?void 0:n.selectors)===null||r===void 0?void 0:r.root;i&&this.g.attr("class",i)}setContainerMargin(e){this._containerMargin=e}setConfig(e){this.prevConfig=this.config,this.config=st(this._defaultConfig,e)}setData(e){this.datamodel.data=e}setSize(e,n,r,i){isFinite(e)&&(this._width=e),isFinite(n)&&(this._height=n),isFinite(r)&&(this._containerWidth=r),isFinite(i)&&(this._containerHeight=i)}render(e=this.config.duration){this._render(e);const n="animating";e&&(this.g.attr(n,""),this.g.transition(n).duration(e).on("end interrupt",()=>{this.g.attr(n,null)})),this._setUpComponentEventsThrottled(),this._setCustomAttributesThrottled()}get bleed(){return{top:0,bottom:0,left:0,right:0}}_render(e=this.config.duration){}_setCustomAttributes(){const e=this.config.attributes;Object.keys(e).forEach(n=>{Object.keys(e[n]).forEach(r=>{this.g.selectAll(`.${n}`).attr(r,e[n][r])})})}_setUpComponentEvents(){this._bindEvents(this.events),this._bindEvents(this.config.events,".user")}_bindEvents(e=this.events,n=""){Object.keys(e).forEach(r=>{Object.keys(e[r]).forEach(i=>{const s=this.g.selectAll(`.${r}`);s.on(i+n,(o,a)=>{const c=s.nodes(),u=c.indexOf(o.currentTarget),f=e[r][i];return f?.(a,o,u,c)})})})}destroy(){var e;(e=this.g)===null||e===void 0||e.remove(),this.element=void 0}isDestroyed(){return!this.element}}class Hc extends en{constructor(e){super(e)}get data(){var e;return(e=this._data)!==null&&e!==void 0?e:[]}set data(e){Array.isArray(e)&&(this._data=e)}}function Vc(t,e,n,r){return Array.isArray(e)&&isFinite(n)?e[n%e.length]:er(t,e,n)||(ae(n)?`var(${G(n)})`:null)}exports.TrimMode=void 0;(function(t){t.Start="start",t.Middle="middle",t.End="end"})(exports.TrimMode||(exports.TrimMode={}));exports.VerticalAlign=void 0;(function(t){t.Top="top",t.Middle="middle",t.Bottom="bottom"})(exports.VerticalAlign||(exports.VerticalAlign={}));exports.FitMode=void 0;(function(t){t.Wrap="wrap",t.Trim="trim"})(exports.FitMode||(exports.FitMode={}));exports.TextAlign=void 0;(function(t){t.Left="left",t.Center="center",t.Right="right"})(exports.TextAlign||(exports.TextAlign={}));function Pc(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var qt={exports:{}},Wc=qt.exports,Ln;function qc(){return Ln||(Ln=1,(function(t){(function(e){if(typeof n!="function"){var n=function(g){return g};n.nonNative=!0}const r=n("plaintext"),i=n("html"),s=n("comment"),o=/<(\w*)>/g,a=/<\/?([^\s\/>]+)/;function c(g,d,y){g=g||"",d=d||[],y=y||"";let m=f(d,y);return l(g,m)}function u(g,d){g=g||[],d=d||"";let y=f(g,d);return function(v){return l(v||"",y)}}c.init_streaming_mode=u;function f(g,d){return g=h(g),{allowable_tags:g,tag_replacement:d,state:r,tag_buffer:"",depth:0,in_quote_char:""}}function l(g,d){if(typeof g!="string")throw new TypeError("'html' parameter must be a string");let y=d.allowable_tags,m=d.tag_replacement,v=d.state,_=d.tag_buffer,S=d.depth,x=d.in_quote_char,b="";for(let w=0,L=g.length;w<L;w++){let C=g[w];if(v===r)C==="<"?(v=i,_+=C):b+=C;else if(v===i)switch(C){case"<":if(x)break;S++;break;case">":if(x)break;if(S){S--;break}x="",v=r,_+=">",y.has(p(_))?b+=_:b+=m,_="";break;case'"':case"'":C===x?x="":x=x||C,_+=C;break;case"-":_==="<!-"&&(v=s),_+=C;break;case" ":case`
|
|
52
|
+
`;function Ye(t=window?.document.body){return t?+Uo("var(--vis-font-wh-ratio)",t):Sr}var fa={value:()=>{}};function $r(){for(var t=0,e=arguments.length,n={},r;t<e;++t){if(!(r=arguments[t]+"")||r in n||/[\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new Vt(n)}function Vt(t){this._=t}function la(t,e){return t.trim().split(/^|\s+/).map(function(n){var r="",i=n.indexOf(".");if(i>=0&&(r=n.slice(i+1),n=n.slice(0,i)),n&&!e.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}Vt.prototype=$r.prototype={constructor:Vt,on:function(t,e){var n=this._,r=la(t+"",n),i,s=-1,o=r.length;if(arguments.length<2){for(;++s<o;)if((i=(t=r[s]).type)&&(i=ha(n[i],t.name)))return i;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++s<o;)if(i=(t=r[s]).type)n[i]=On(n[i],t.name,e);else if(e==null)for(i in n)n[i]=On(n[i],t.name,null);return this},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new Vt(t)},call:function(t,e){if((i=arguments.length-2)>0)for(var n=new Array(i),r=0,i,s;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(s=this._[t],r=0,i=s.length;r<i;++r)s[r].value.apply(e,n)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,s=r.length;i<s;++i)r[i].value.apply(e,n)}};function ha(t,e){for(var n=0,r=t.length,i;n<r;++n)if((i=t[n]).name===e)return i.value}function On(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=fa,t=t.slice(0,r).concat(t.slice(r+1));break}return n!=null&&t.push({name:e,value:n}),t}var at=0,ht=0,ft=0,Rr=1e3,ne,dt,re=0,tt=0,he=0,St=typeof performance=="object"&&performance.now?performance:Date,Nr=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Ze(){return tt||(Nr(da),tt=St.now()+he)}function da(){tt=0}function ie(){this._call=this._time=this._next=null}ie.prototype=kr.prototype={constructor:ie,restart:function(t,e,n){if(typeof t!="function")throw new TypeError("callback is not a function");n=(n==null?Ze():+n)+(e==null?0:+e),!this._next&&dt!==this&&(dt?dt._next=this:ne=this,dt=this),this._call=t,this._time=n,Oe()},stop:function(){this._call&&(this._call=null,this._time=1/0,Oe())}};function kr(t,e,n){var r=new ie;return r.restart(t,e,n),r}function ga(){Ze(),++at;for(var t=ne,e;t;)(e=tt-t._time)>=0&&t._call.call(void 0,e),t=t._next;--at}function Mn(){tt=(re=St.now())+he,at=ht=0;try{ga()}finally{at=0,va(),tt=0}}function pa(){var t=St.now(),e=t-re;e>Rr&&(he-=e,re=t)}function va(){for(var t,e=ne,n,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:ne=n);dt=t,Oe(r)}function Oe(t){if(!at){ht&&(ht=clearTimeout(ht));var e=t-tt;e>24?(t<1/0&&(ht=setTimeout(Mn,t-St.now()-he)),ft&&(ft=clearInterval(ft))):(ft||(re=St.now(),ft=setInterval(pa,Rr)),at=1,Nr(Mn))}}function zn(t,e,n){var r=new ie;return e=e==null?0:+e,r.restart(i=>{r.stop(),t(i+e)},e,n),r}var ma=$r("start","end","cancel","interrupt"),ya=[],Or=0,Fn=1,Me=2,Pt=3,Dn=4,ze=5,Wt=6;function de(t,e,n,r,i,s){var o=t.__transition;if(!o)t.__transition={};else if(n in o)return;_a(t,n,{name:e,index:r,group:i,on:ma,tween:ya,time:s.time,delay:s.delay,duration:s.duration,ease:s.ease,timer:null,state:Or})}function Ke(t,e){var n=I(t,e);if(n.state>Or)throw new Error("too late; already scheduled");return n}function W(t,e){var n=I(t,e);if(n.state>Pt)throw new Error("too late; already running");return n}function I(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function _a(t,e,n){var r=t.__transition,i;r[e]=n,n.timer=kr(s,0,n.time);function s(u){n.state=Fn,n.timer.restart(o,n.delay,n.time),n.delay<=u&&o(u-n.delay)}function o(u){var f,l,h,p;if(n.state!==Fn)return c();for(f in r)if(p=r[f],p.name===n.name){if(p.state===Pt)return zn(o);p.state===Dn?(p.state=Wt,p.timer.stop(),p.on.call("interrupt",t,t.__data__,p.index,p.group),delete r[f]):+f<e&&(p.state=Wt,p.timer.stop(),p.on.call("cancel",t,t.__data__,p.index,p.group),delete r[f])}if(zn(function(){n.state===Pt&&(n.state=Dn,n.timer.restart(a,n.delay,n.time),a(u))}),n.state=Me,n.on.call("start",t,t.__data__,n.index,n.group),n.state===Me){for(n.state=Pt,i=new Array(h=n.tween.length),f=0,l=-1;f<h;++f)(p=n.tween[f].value.call(t,t.__data__,n.index,n.group))&&(i[++l]=p);i.length=l+1}}function a(u){for(var f=u<n.duration?n.ease.call(null,u/n.duration):(n.timer.restart(c),n.state=ze,1),l=-1,h=i.length;++l<h;)i[l].call(t,f);n.state===ze&&(n.on.call("end",t,t.__data__,n.index,n.group),c())}function c(){n.state=Wt,n.timer.stop(),delete r[e];for(var u in r)return;delete t.__transition}}function Je(t,e){var n=t.__transition,r,i,s=!0,o;if(n){e=e==null?null:e+"";for(o in n){if((r=n[o]).name!==e){s=!1;continue}i=r.state>Me&&r.state<ze,r.state=Wt,r.timer.stop(),r.on.call(i?"interrupt":"cancel",t,t.__data__,r.index,r.group),delete n[o]}s&&delete t.__transition}}function xa(t){return this.each(function(){Je(this,t)})}const Qe=t=>()=>t;function wa(t,e){return function(n){return t+n*e}}function ba(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}function Aa(t){return(t=+t)==1?Mr:function(e,n){return n-e?ba(e,n,t):Qe(isNaN(e)?n:e)}}function Mr(t,e){var n=e-t;return n?wa(t,n):Qe(isNaN(t)?e:t)}const se=(function t(e){var n=Aa(e);function r(i,s){var o=n((i=Re(i)).r,(s=Re(s)).r),a=n(i.g,s.g),c=n(i.b,s.b),u=Mr(i.opacity,s.opacity);return function(f){return i.r=o(f),i.g=a(f),i.b=c(f),i.opacity=u(f),i+""}}return r.gamma=t,r})(1);function Ta(t,e){e||(e=[]);var n=t?Math.min(e.length,t.length):0,r=e.slice(),i;return function(s){for(i=0;i<n;++i)r[i]=t[i]*(1-s)+e[i]*s;return r}}function Sa(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function Ea(t,e){var n=e?e.length:0,r=t?Math.min(n,t.length):0,i=new Array(r),s=new Array(n),o;for(o=0;o<r;++o)i[o]=je(t[o],e[o]);for(;o<n;++o)s[o]=e[o];return function(a){for(o=0;o<r;++o)s[o]=i[o](a);return s}}function Ca(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}function F(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function $a(t,e){var n={},r={},i;(t===null||typeof t!="object")&&(t={}),(e===null||typeof e!="object")&&(e={});for(i in e)i in t?n[i]=je(t[i],e[i]):r[i]=e[i];return function(s){for(i in n)r[i]=n[i](s);return r}}var Fe=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,_e=new RegExp(Fe.source,"g");function Ra(t){return function(){return t}}function Na(t){return function(e){return t(e)+""}}function zr(t,e){var n=Fe.lastIndex=_e.lastIndex=0,r,i,s,o=-1,a=[],c=[];for(t=t+"",e=e+"";(r=Fe.exec(t))&&(i=_e.exec(e));)(s=i.index)>n&&(s=e.slice(n,s),a[o]?a[o]+=s:a[++o]=s),(r=r[0])===(i=i[0])?a[o]?a[o]+=i:a[++o]=i:(a[++o]=null,c.push({i:o,x:F(r,i)})),n=_e.lastIndex;return n<e.length&&(s=e.slice(n),a[o]?a[o]+=s:a[++o]=s),a.length<2?c[0]?Na(c[0].x):Ra(e):(e=c.length,function(u){for(var f=0,l;f<e;++f)a[(l=c[f]).i]=l.x(u);return a.join("")})}function je(t,e){var n=typeof e,r;return e==null||n==="boolean"?Qe(e):(n==="number"?F:n==="string"?(r=j(e))?(e=r,se):zr:e instanceof j?se:e instanceof Date?Ca:Sa(e)?Ta:Array.isArray(e)?Ea:typeof e.valueOf!="function"&&typeof e.toString!="function"||isNaN(e)?$a:F)(t,e)}var In=180/Math.PI,De={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Fr(t,e,n,r,i,s){var o,a,c;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(c=t*n+e*r)&&(n-=t*c,r-=e*c),(a=Math.sqrt(n*n+r*r))&&(n/=a,r/=a,c/=a),t*r<e*n&&(t=-t,e=-e,c=-c,o=-o),{translateX:i,translateY:s,rotate:Math.atan2(e,t)*In,skewX:Math.atan(c)*In,scaleX:o,scaleY:a}}var Dt;function ka(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?De:Fr(e.a,e.b,e.c,e.d,e.e,e.f)}function Oa(t){return t==null||(Dt||(Dt=document.createElementNS("http://www.w3.org/2000/svg","g")),Dt.setAttribute("transform",t),!(t=Dt.transform.baseVal.consolidate()))?De:(t=t.matrix,Fr(t.a,t.b,t.c,t.d,t.e,t.f))}function Dr(t,e,n,r){function i(u){return u.length?u.pop()+" ":""}function s(u,f,l,h,p,g){if(u!==l||f!==h){var d=p.push("translate(",null,e,null,n);g.push({i:d-4,x:F(u,l)},{i:d-2,x:F(f,h)})}else(l||h)&&p.push("translate("+l+e+h+n)}function o(u,f,l,h){u!==f?(u-f>180?f+=360:f-u>180&&(u+=360),h.push({i:l.push(i(l)+"rotate(",null,r)-2,x:F(u,f)})):f&&l.push(i(l)+"rotate("+f+r)}function a(u,f,l,h){u!==f?h.push({i:l.push(i(l)+"skewX(",null,r)-2,x:F(u,f)}):f&&l.push(i(l)+"skewX("+f+r)}function c(u,f,l,h,p,g){if(u!==l||f!==h){var d=p.push(i(p)+"scale(",null,",",null,")");g.push({i:d-4,x:F(u,l)},{i:d-2,x:F(f,h)})}else(l!==1||h!==1)&&p.push(i(p)+"scale("+l+","+h+")")}return function(u,f){var l=[],h=[];return u=t(u),f=t(f),s(u.translateX,u.translateY,f.translateX,f.translateY,l,h),o(u.rotate,f.rotate,l,h),a(u.skewX,f.skewX,l,h),c(u.scaleX,u.scaleY,f.scaleX,f.scaleY,l,h),u=f=null,function(p){for(var g=-1,d=h.length,y;++g<d;)l[(y=h[g]).i]=y.x(p);return l.join("")}}}var Ma=Dr(ka,"px, ","px)","deg)"),za=Dr(Oa,", ",")",")");function Fa(t,e){var n,r;return function(){var i=W(this,t),s=i.tween;if(s!==n){r=n=s;for(var o=0,a=r.length;o<a;++o)if(r[o].name===e){r=r.slice(),r.splice(o,1);break}}i.tween=r}}function Da(t,e,n){var r,i;if(typeof n!="function")throw new Error;return function(){var s=W(this,t),o=s.tween;if(o!==r){i=(r=o).slice();for(var a={name:e,value:n},c=0,u=i.length;c<u;++c)if(i[c].name===e){i[c]=a;break}c===u&&i.push(a)}s.tween=i}}function Ia(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r=I(this.node(),n).tween,i=0,s=r.length,o;i<s;++i)if((o=r[i]).name===t)return o.value;return null}return this.each((e==null?Fa:Da)(n,t,e))}function tn(t,e,n){var r=t._id;return t.each(function(){var i=W(this,r);(i.value||(i.value={}))[e]=n.apply(this,arguments)}),function(i){return I(i,r).value[e]}}function Ir(t,e){var n;return(typeof e=="number"?F:e instanceof j?se:(n=j(e))?(e=n,se):zr)(t,e)}function La(t){return function(){this.removeAttribute(t)}}function Ba(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Ha(t,e,n){var r,i=n+"",s;return function(){var o=this.getAttribute(t);return o===i?null:o===r?s:s=e(r=o,n)}}function Va(t,e,n){var r,i=n+"",s;return function(){var o=this.getAttributeNS(t.space,t.local);return o===i?null:o===r?s:s=e(r=o,n)}}function Pa(t,e,n){var r,i,s;return function(){var o,a=n(this),c;return a==null?void this.removeAttribute(t):(o=this.getAttribute(t),c=a+"",o===c?null:o===r&&c===i?s:(i=c,s=e(r=o,a)))}}function Wa(t,e,n){var r,i,s;return function(){var o,a=n(this),c;return a==null?void this.removeAttributeNS(t.space,t.local):(o=this.getAttributeNS(t.space,t.local),c=a+"",o===c?null:o===r&&c===i?s:(i=c,s=e(r=o,a)))}}function qa(t,e){var n=oe(t),r=n==="transform"?za:Ir;return this.attrTween(t,typeof e=="function"?(n.local?Wa:Pa)(n,r,tn(this,"attr."+t,e)):e==null?(n.local?Ba:La)(n):(n.local?Va:Ha)(n,r,e))}function Ua(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function Ga(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function Xa(t,e){var n,r;function i(){var s=e.apply(this,arguments);return s!==r&&(n=(r=s)&&Ga(t,s)),n}return i._value=e,i}function Ya(t,e){var n,r;function i(){var s=e.apply(this,arguments);return s!==r&&(n=(r=s)&&Ua(t,s)),n}return i._value=e,i}function Za(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(e==null)return this.tween(n,null);if(typeof e!="function")throw new Error;var r=oe(t);return this.tween(n,(r.local?Xa:Ya)(r,e))}function Ka(t,e){return function(){Ke(this,t).delay=+e.apply(this,arguments)}}function Ja(t,e){return e=+e,function(){Ke(this,t).delay=e}}function Qa(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?Ka:Ja)(e,t)):I(this.node(),e).delay}function ja(t,e){return function(){W(this,t).duration=+e.apply(this,arguments)}}function tc(t,e){return e=+e,function(){W(this,t).duration=e}}function ec(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?ja:tc)(e,t)):I(this.node(),e).duration}function nc(t,e){if(typeof e!="function")throw new Error;return function(){W(this,t).ease=e}}function rc(t){var e=this._id;return arguments.length?this.each(nc(e,t)):I(this.node(),e).ease}function ic(t,e){return function(){var n=e.apply(this,arguments);if(typeof n!="function")throw new Error;W(this,t).ease=n}}function sc(t){if(typeof t!="function")throw new Error;return this.each(ic(this._id,t))}function oc(t){typeof t!="function"&&(t=Vn(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var s=e[i],o=s.length,a=r[i]=[],c,u=0;u<o;++u)(c=s[u])&&t.call(c,c.__data__,u,s)&&a.push(c);return new U(r,this._parents,this._name,this._id)}function ac(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,r=e.length,i=n.length,s=Math.min(r,i),o=new Array(r),a=0;a<s;++a)for(var c=e[a],u=n[a],f=c.length,l=o[a]=new Array(f),h,p=0;p<f;++p)(h=c[p]||u[p])&&(l[p]=h);for(;a<r;++a)o[a]=e[a];return new U(o,this._parents,this._name,this._id)}function cc(t){return(t+"").trim().split(/^|\s+/).every(function(e){var n=e.indexOf(".");return n>=0&&(e=e.slice(0,n)),!e||e==="start"})}function uc(t,e,n){var r,i,s=cc(e)?Ke:W;return function(){var o=s(this,t),a=o.on;a!==r&&(i=(r=a).copy()).on(e,n),o.on=i}}function fc(t,e){var n=this._id;return arguments.length<2?I(this.node(),n).on.on(t):this.each(uc(n,t,e))}function lc(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}function hc(){return this.on("end.remove",lc(this._id))}function dc(t){var e=this._name,n=this._id;typeof t!="function"&&(t=Ie(t));for(var r=this._groups,i=r.length,s=new Array(i),o=0;o<i;++o)for(var a=r[o],c=a.length,u=s[o]=new Array(c),f,l,h=0;h<c;++h)(f=a[h])&&(l=t.call(f,f.__data__,h,a))&&("__data__"in f&&(l.__data__=f.__data__),u[h]=l,de(u[h],e,n,h,u,I(f,n)));return new U(s,this._parents,e,n)}function gc(t){var e=this._name,n=this._id;typeof t!="function"&&(t=Hn(t));for(var r=this._groups,i=r.length,s=[],o=[],a=0;a<i;++a)for(var c=r[a],u=c.length,f,l=0;l<u;++l)if(f=c[l]){for(var h=t.call(f,f.__data__,l,c),p,g=I(f,n),d=0,y=h.length;d<y;++d)(p=h[d])&&de(p,e,n,d,h,g);s.push(h),o.push(f)}return new U(s,o,e,n)}var pc=Et.prototype.constructor;function vc(){return new pc(this._groups,this._parents)}function mc(t,e){var n,r,i;return function(){var s=it(this,t),o=(this.style.removeProperty(t),it(this,t));return s===o?null:s===n&&o===r?i:i=e(n=s,r=o)}}function Lr(t){return function(){this.style.removeProperty(t)}}function yc(t,e,n){var r,i=n+"",s;return function(){var o=it(this,t);return o===i?null:o===r?s:s=e(r=o,n)}}function _c(t,e,n){var r,i,s;return function(){var o=it(this,t),a=n(this),c=a+"";return a==null&&(c=a=(this.style.removeProperty(t),it(this,t))),o===c?null:o===r&&c===i?s:(i=c,s=e(r=o,a))}}function xc(t,e){var n,r,i,s="style."+e,o="end."+s,a;return function(){var c=W(this,t),u=c.on,f=c.value[s]==null?a||(a=Lr(e)):void 0;(u!==n||i!==f)&&(r=(n=u).copy()).on(o,i=f),c.on=r}}function wc(t,e,n){var r=(t+="")=="transform"?Ma:Ir;return e==null?this.styleTween(t,mc(t,r)).on("end.style."+t,Lr(t)):typeof e=="function"?this.styleTween(t,_c(t,r,tn(this,"style."+t,e))).each(xc(this._id,t)):this.styleTween(t,yc(t,r,e),n).on("end.style."+t,null)}function bc(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function Ac(t,e,n){var r,i;function s(){var o=e.apply(this,arguments);return o!==i&&(r=(i=o)&&bc(t,o,n)),r}return s._value=e,s}function Tc(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(e==null)return this.tween(r,null);if(typeof e!="function")throw new Error;return this.tween(r,Ac(t,e,n??""))}function Sc(t){return function(){this.textContent=t}}function Ec(t){return function(){var e=t(this);this.textContent=e??""}}function Cc(t){return this.tween("text",typeof t=="function"?Ec(tn(this,"text",t)):Sc(t==null?"":t+""))}function $c(t){return function(e){this.textContent=t.call(this,e)}}function Rc(t){var e,n;function r(){var i=t.apply(this,arguments);return i!==n&&(e=(n=i)&&$c(i)),e}return r._value=t,r}function Nc(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,Rc(t))}function kc(){for(var t=this._name,e=this._id,n=Br(),r=this._groups,i=r.length,s=0;s<i;++s)for(var o=r[s],a=o.length,c,u=0;u<a;++u)if(c=o[u]){var f=I(c,e);de(c,t,n,u,o,{time:f.time+f.delay+f.duration,delay:0,duration:f.duration,ease:f.ease})}return new U(r,this._parents,t,n)}function Oc(){var t,e,n=this,r=n._id,i=n.size();return new Promise(function(s,o){var a={value:o},c={value:function(){--i===0&&s()}};n.each(function(){var u=W(this,r),f=u.on;f!==t&&(e=(t=f).copy(),e._.cancel.push(a),e._.interrupt.push(a),e._.end.push(c)),u.on=e}),i===0&&s()})}var Mc=0;function U(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function Br(){return++Mc}var q=Et.prototype;U.prototype={constructor:U,select:dc,selectAll:gc,selectChild:q.selectChild,selectChildren:q.selectChildren,filter:oc,merge:ac,selection:vc,transition:kc,call:q.call,nodes:q.nodes,node:q.node,size:q.size,empty:q.empty,each:q.each,on:fc,attr:qa,attrTween:Za,style:wc,styleTween:Tc,text:Cc,textTween:Nc,remove:hc,tween:Ia,delay:Qa,duration:ec,ease:rc,easeVarying:sc,end:Oc,[Symbol.iterator]:q[Symbol.iterator]};function zc(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var Fc={time:null,delay:0,duration:250,ease:zc};function Dc(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return n}function Ic(t){var e,n;t instanceof U?(e=t._id,t=t._name):(e=Br(),(n=Fc).time=Ze(),t=t==null?null:t+"");for(var r=this._groups,i=r.length,s=0;s<i;++s)for(var o=r[s],a=o.length,c,u=0;u<a;++u)(c=o[u])&&de(c,t,e,u,o,n||Dc(c,e));return new U(r,this._parents,t,e)}Et.prototype.interrupt=xa;Et.prototype.transition=Ic;function Lc(t,e,n){if(t.nodes().forEach(r=>Je(r)),e){const r=t.transition().duration(e);return n&&r.ease(n),r}else return t}class en{constructor(e){this.data=e}get data(){return this._data}set data(e){this._data=e}}const Hr={duration:600,events:{},attributes:{}};class Bc{constructor(e=gt.SVG){var n,r;this.type=gt.SVG,this.datamodel=new en,this.sizing=exports.Sizing.Fit,this.events={},this._defaultConfig=Hr,this._width=400,this._height=200,this._containerWidth=void 0,this._containerHeight=void 0,this._containerMargin={top:0,bottom:0,left:0,right:0},this._setUpComponentEventsThrottled=Ae(this._setUpComponentEvents,500),this._setCustomAttributesThrottled=Ae(this._setCustomAttributes,500),e===gt.SVG?this.element=document.createElementNS("http://www.w3.org/2000/svg","g"):this.element=document.createElement("div"),this.uid=br(),this.g=Yt(this.element);const i=(r=(n=this.constructor)===null||n===void 0?void 0:n.selectors)===null||r===void 0?void 0:r.root;i&&this.g.attr("class",i)}setContainerMargin(e){this._containerMargin=e}setConfig(e){this.prevConfig=this.config,this.config=st(this._defaultConfig,e)}setData(e){this.datamodel.data=e}setSize(e,n,r,i){isFinite(e)&&(this._width=e),isFinite(n)&&(this._height=n),isFinite(r)&&(this._containerWidth=r),isFinite(i)&&(this._containerHeight=i)}render(e=this.config.duration){this._render(e);const n="animating";e&&(this.g.attr(n,""),this.g.transition(n).duration(e).on("end interrupt",()=>{this.g.attr(n,null)})),this._setUpComponentEventsThrottled(),this._setCustomAttributesThrottled()}get bleed(){return{top:0,bottom:0,left:0,right:0}}_render(e=this.config.duration){}_setCustomAttributes(){const e=this.config.attributes;Object.keys(e).forEach(n=>{Object.keys(e[n]).forEach(r=>{this.g.selectAll(`.${n}`).attr(r,e[n][r])})})}_setUpComponentEvents(){this._bindEvents(this.events),this._bindEvents(this.config.events,".user")}_mapEventDatum(e){return e}_bindEvents(e=this.events,n=""){Object.keys(e).forEach(r=>{Object.keys(e[r]).forEach(i=>{const s=this.g.selectAll(`.${r}`);s.on(i+n,(o,a)=>{const c=s.nodes(),u=c.indexOf(o.currentTarget),f=e[r][i],l=this._mapEventDatum(a);return f?.(l,o,u,c)})})})}destroy(){var e;(e=this.g)===null||e===void 0||e.remove(),this.element=void 0}isDestroyed(){return!this.element}}class Hc extends en{constructor(e){super(e)}get data(){var e;return(e=this._data)!==null&&e!==void 0?e:[]}set data(e){Array.isArray(e)&&(this._data=e)}}function Vc(t,e,n,r){return Array.isArray(e)&&isFinite(n)?e[n%e.length]:er(t,e,n)||(ae(n)?`var(${G(n)})`:null)}exports.TrimMode=void 0;(function(t){t.Start="start",t.Middle="middle",t.End="end"})(exports.TrimMode||(exports.TrimMode={}));exports.VerticalAlign=void 0;(function(t){t.Top="top",t.Middle="middle",t.Bottom="bottom"})(exports.VerticalAlign||(exports.VerticalAlign={}));exports.FitMode=void 0;(function(t){t.Wrap="wrap",t.Trim="trim"})(exports.FitMode||(exports.FitMode={}));exports.TextAlign=void 0;(function(t){t.Left="left",t.Center="center",t.Right="right"})(exports.TextAlign||(exports.TextAlign={}));function Pc(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var qt={exports:{}},Wc=qt.exports,Ln;function qc(){return Ln||(Ln=1,(function(t){(function(e){if(typeof n!="function"){var n=function(g){return g};n.nonNative=!0}const r=n("plaintext"),i=n("html"),s=n("comment"),o=/<(\w*)>/g,a=/<\/?([^\s\/>]+)/;function c(g,d,y){g=g||"",d=d||[],y=y||"";let m=f(d,y);return l(g,m)}function u(g,d){g=g||[],d=d||"";let y=f(g,d);return function(v){return l(v||"",y)}}c.init_streaming_mode=u;function f(g,d){return g=h(g),{allowable_tags:g,tag_replacement:d,state:r,tag_buffer:"",depth:0,in_quote_char:""}}function l(g,d){if(typeof g!="string")throw new TypeError("'html' parameter must be a string");let y=d.allowable_tags,m=d.tag_replacement,v=d.state,_=d.tag_buffer,S=d.depth,x=d.in_quote_char,b="";for(let w=0,L=g.length;w<L;w++){let C=g[w];if(v===r)C==="<"?(v=i,_+=C):b+=C;else if(v===i)switch(C){case"<":if(x)break;S++;break;case">":if(x)break;if(S){S--;break}x="",v=r,_+=">",y.has(p(_))?b+=_:b+=m,_="";break;case'"':case"'":C===x?x="":x=x||C,_+=C;break;case"-":_==="<!-"&&(v=s),_+=C;break;case" ":case`
|
|
53
53
|
`:if(_==="<"){v=r,b+="< ",_="";break}_+=C;break;default:_+=C;break}else v===s&&(C===">"?(_.slice(-2)=="--"&&(v=r),_=""):_+=C)}return d.state=v,d.tag_buffer=_,d.depth=S,d.in_quote_char=x,b}function h(g){let d=new Set;if(typeof g=="string"){let y;for(;y=o.exec(g);)d.add(y[1])}else!n.nonNative&&typeof g[n.iterator]=="function"?d=new Set(g):typeof g.forEach=="function"&&g.forEach(d.add,d);return d}function p(g){let d=a.exec(g);return d?d[1].toLowerCase():null}t.exports?t.exports=c:e.striptags=c})(Wc)})(qt)),qt.exports}var Uc=qc();const Gc=Pc(Uc);function Xc(t){switch(t){case exports.TextAlign.Center:return"middle";case exports.TextAlign.Right:return"end";case exports.TextAlign.Left:default:return"start"}}const Yc=t=>{switch(t){case exports.TextAlign.Left:return"start";case exports.TextAlign.Right:return"end";case exports.TextAlign.Center:return"middle";default:return null}};function Zc(t){return t.replace(/-([a-z])/g,(e,n)=>n.toUpperCase())}function Kc(t){var e;return(e=t.match(/[A-Z]{2,}(?=[A-Z][a-z0-9]*|\b)|[A-Z]?[a-z0-9]*|[A-Z]|[0-9]+/g))===null||e===void 0?void 0:e.filter(Boolean).map(n=>n.toLowerCase()).join("-")}function Jc(t){return t.replace(/['"]/g,"'").replace(/\u0000/g,"\\0").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\v/g,"\\v").replace(/\t/g,"\\t").replace(/\f/g,"\\f")}function Qc(t,e=15){return t?t.length>e?`…${t.substr(t.length-e,e)}`:t:""}function jc(t,e=15){if(!t)return"";const n=Math.floor((e-3)/2);return t.length>e?`${t.substr(0,n)}…${t.substr(-n,n)}`:t}function tu(t,e=15){return t?t.length>e?`${t.substr(0,e)}…`:t:""}function eu(t,e=15,n=exports.TrimMode.Middle){if(!t)return"";let r=tu(t,e);return n===exports.TrimMode.Start?r=Qc(t,e):n===exports.TrimMode.Middle&&(r=jc(t,e)),r}function Vr(t,e=[" "]){let n=[t];for(let r=0;r<e.length;r++){const i=e[r];n.forEach((s,o)=>{const a=s.split(i),c=a.map((u,f)=>`${u}${f===a.length-1?"":i}`);n[o]=c}),n=tr(n)}return n}function nu(t,e,n=[" ","-",".",","]){const r=t.text();if(!r)return;const i=ce(n)?n:[n],s=Vr(r,i),o=parseFloat(t.attr("x"))||0;t.text("");let a=t.append("tspan").attr("x",o),c=`${s[0]}`;a.text(c),s.forEach((u,f)=>{if(f===0)return;const l=`${c}${u}`;a.text(l),a.node().getComputedTextLength()>e?(a.text(c.trim()),a=t.append("tspan").attr("x",o).attr("dy","1.2em").text(u),c=u):c+=u})}function ru(t,e,n,r,i,s){var o;e===void 0&&(e=50),n===void 0&&(n=exports.TrimMode.Middle),i===void 0&&(i=+((o=window.getComputedStyle(t.node()))===null||o===void 0?void 0:o.fontSize)||0),s===void 0&&(s=Ye());const a=t.text()||"",c=a.length,u=i*c*s,l=Math.ceil(c*e/(1.1*u));return l<c?(t.text(eu(a,l,n)),!0):!1}function Ut(t,e,n=Ye()){return t.length*e*n||0}function Gt(t,e,n){const r="http://www.w3.org/2000/svg",i=document.createElementNS(r,"svg"),s=document.createElementNS(r,"text");s.textContent=t,s.setAttribute("font-size",`${n}`),s.setAttribute("font-family",e),i.appendChild(s),document.body.appendChild(i);const o=s.getComputedTextLength();return document.body.removeChild(i),o}function iu(t,e=void 0,n=!0,r=Er,i=!1){var s,o,a;const c=`${t.text}`;if(!c)return[];const u=(s=t.fontSize)!==null&&s!==void 0?s:mt.fontSize,f=(o=t.fontFamily)!==null&&o!==void 0?o:mt.fontFamily,l=(a=t.fontWidthToHeightRatio)!==null&&a!==void 0?a:mt.fontWidthToHeightRatio,h=Array.isArray(r)?r:[r];return c.split(`
|
|
54
|
-
`).map(g=>{const d=[];if(!e)return[g];const y=Vr(g,h);let m="";for(let v=0;v<y.length;v+=1){(n?Ut(m+y[v],u,l):Gt(m+y[v],f,u))<e||v===0?m+=y[v]:(d.push(m.trim()),m=y[v]);const S=2;if(i)for(;m.trim().length>S&&(n?Ut(m,u,l):Gt(m,f,u))>e;){let b=m.trim().length-S;for(;b>0;){const w=`${m.substring(0,b)}${Cr}`;if((n?Ut(w,u,l):Gt(w,f,u))<=e||b===1){d.push(w.trim()),m=m.substring(b);break}b--}}}return m&&d.push(m.trim()),d}).flat()}function su(t,e=void 0,n=void 0,r=!0,i=Er,s=!1){const o=Array.isArray(t)?t.map(l=>st(mt,l)):[st(mt,t)],a=o.map(l=>iu(l,e,r,i,s)),c=o[0];let u=-c.fontSize*(c.lineHeight-1);const f=[];return o.forEach((l,h)=>{var p;let g=a[h];const d=h>0?f[h-1]:void 0,y=d?d.marginBottom:0,m=l.marginTop,v=Math.max(y,m);u+=v;const _=l.fontSize*l.lineHeight;let S=0;for(let x=0;x<g.length;x+=1){let b=g[x];u+=_;const w=`${b} …`,L=r?Ut(w,l.fontSize,l.fontWidthToHeightRatio):Gt(w,l.fontFamily,l.fontSize);if(S=Math.max(L,S),n&&u+_>n&&x!==g.length-1){b.charAt(b.length-1)===Cr&&(b=b.substr(0,g[x].length-1)),L<e?g[x]=w:g[x]=`${g[x].substr(0,g[x].length-2)}…`,g=g.slice(0,x+1);break}}f.push(Object.assign(Object.assign({},l),{_lines:g,_estimatedHeight:u-(d?._estimatedHeight||0),_maxWidth:Math.max(S,(p=d?._maxWidth)!==null&&p!==void 0?p:0)}))}),f}function ou(t,e=0,n,r){return t.map((i,s)=>{const o=s>0?t[s-1]:void 0,a=o?o.marginBottom/o.fontSize:0,c=i.marginTop/i.fontSize,u=Math.max(a,c),f={fontSize:i.fontSize,fontFamily:i.fontFamily,fontWeight:i.fontWeight,fill:i.color,y:s===0&&n};return`<tspan xmlns="http://www.w3.org/2000/svg" ${Object.entries(f).filter(([h,p])=>p).map(([h,p])=>`${Kc(h)}="${Jc(p.toString())}"`).join(" ")}>${i._lines.map((h,p)=>{let g;return s===0&&p===0?g=u:p===0?g=u+i.lineHeight:g=i.lineHeight,`<tspan x="${e}" dy="${g}em" dominant-baseline="${r??"auto"}">${h.length?h:" "}</tspan>`}).join("")}</tspan>`})}function au(t){return Es(t,e=>e._estimatedHeight)}const cu=["text","tspan","textPath","altGlyph","altGlyphDef","altGlyphItem","glyphRef","textRef","textArea"];function uu(t,e,n,r){var i,s;const o=su(e,n.width,void 0,n.fastMode,n.separator,n.wordBreak),a=(i=n.x)!==null&&i!==void 0?i:+t.getAttribute("x"),c=(s=n.y)!==null&&s!==void 0?s:+t.getAttribute("y"),u=a??0;let f=c??0;if(n.textAlign&&t.setAttribute("text-anchor",Xc(n.textAlign)),n.verticalAlign&&n.verticalAlign!==exports.VerticalAlign.Top){const h=au(o),p=n.verticalAlign===exports.VerticalAlign.Middle?-h/2:n.verticalAlign===exports.VerticalAlign.Bottom?-h:0;f+=p}n.textRotationAngle?t.setAttribute("transform",`rotate(${n.textRotationAngle===0||n.textRotationAngle?n.textRotationAngle:0} ${u} ${f})`):t.removeAttribute("transform");const l=new DOMParser;t.textContent="",o.forEach(h=>{const p=ou([h],u,f,r).join(""),g=Gc(p,cu),d=l.parseFromString(g,"image/svg+xml").firstChild;t.appendChild(d)})}
|
|
54
|
+
`).map(g=>{const d=[];if(!e)return[g];const y=Vr(g,h);let m="";for(let v=0;v<y.length;v+=1){(n?Ut(m+y[v],u,l):Gt(m+y[v],f,u))<e||v===0?m+=y[v]:(d.push(m.trim()),m=y[v]);const S=2;if(i)for(;m.trim().length>S&&(n?Ut(m,u,l):Gt(m,f,u))>e;){let b=m.trim().length-S;for(;b>0;){const w=`${m.substring(0,b)}${Cr}`;if((n?Ut(w,u,l):Gt(w,f,u))<=e||b===1){d.push(w.trim()),m=m.substring(b);break}b--}}}return m&&d.push(m.trim()),d}).flat()}function su(t,e=void 0,n=void 0,r=!0,i=Er,s=!1){const o=Array.isArray(t)?t.map(l=>st(mt,l)):[st(mt,t)],a=o.map(l=>iu(l,e,r,i,s)),c=o[0];let u=-c.fontSize*(c.lineHeight-1);const f=[];return o.forEach((l,h)=>{var p;let g=a[h];const d=h>0?f[h-1]:void 0,y=d?d.marginBottom:0,m=l.marginTop,v=Math.max(y,m);u+=v;const _=l.fontSize*l.lineHeight;let S=0;for(let x=0;x<g.length;x+=1){let b=g[x];u+=_;const w=`${b} …`,L=r?Ut(w,l.fontSize,l.fontWidthToHeightRatio):Gt(w,l.fontFamily,l.fontSize);if(S=Math.max(L,S),n&&u+_>n&&x!==g.length-1){b.charAt(b.length-1)===Cr&&(b=b.substr(0,g[x].length-1)),L<e?g[x]=w:g[x]=`${g[x].substr(0,g[x].length-2)}…`,g=g.slice(0,x+1);break}}f.push(Object.assign(Object.assign({},l),{_lines:g,_estimatedHeight:u-(d?._estimatedHeight||0),_maxWidth:Math.max(S,(p=d?._maxWidth)!==null&&p!==void 0?p:0)}))}),f}function ou(t,e=0,n,r){return t.map((i,s)=>{const o=s>0?t[s-1]:void 0,a=o?o.marginBottom/o.fontSize:0,c=i.marginTop/i.fontSize,u=Math.max(a,c),f={fontSize:i.fontSize,fontFamily:i.fontFamily,fontWeight:i.fontWeight,fill:i.color,y:s===0&&n};return`<tspan xmlns="http://www.w3.org/2000/svg" ${Object.entries(f).filter(([h,p])=>p).map(([h,p])=>`${Kc(h)}="${Jc(p.toString())}"`).join(" ")}>${i._lines.map((h,p)=>{let g;return s===0&&p===0?g=u:p===0?g=u+i.lineHeight:g=i.lineHeight,`<tspan x="${e}" dy="${g}em" dominant-baseline="${r??"auto"}">${h.length?h:" "}</tspan>`}).join("")}</tspan>`})}function au(t){return Es(t,e=>e._estimatedHeight)}const cu=["text","tspan","textPath","altGlyph","altGlyphDef","altGlyphItem","glyphRef","textRef","textArea"];function uu(t,e,n,r){var i,s;const o=su(e,n.width,void 0,n.fastMode,n.separator,n.wordBreak),a=(i=n.x)!==null&&i!==void 0?i:+t.getAttribute("x"),c=(s=n.y)!==null&&s!==void 0?s:+t.getAttribute("y"),u=a??0;let f=c??0;if(n.textAlign&&t.setAttribute("text-anchor",Xc(n.textAlign)),n.verticalAlign&&n.verticalAlign!==exports.VerticalAlign.Top){const h=au(o),p=n.verticalAlign===exports.VerticalAlign.Middle?-h/2:n.verticalAlign===exports.VerticalAlign.Bottom?-h:0;f+=p}n.textRotationAngle?t.setAttribute("transform",`rotate(${n.textRotationAngle===0||n.textRotationAngle?n.textRotationAngle:0} ${u} ${f})`):t.removeAttribute("transform");const l=new DOMParser;t.textContent="",o.forEach(h=>{const p=ou([h],u,f,r).join(""),g=Gc(p,cu),d=l.parseFromString(g,"image/svg+xml").firstChild;t.appendChild(d)})}function fu(t,e){return yt(t,e)}function lu(t){const e=Rt.getCurrentInstance(),n=e.attrs;return Rt.computed(()=>{const r={},i=e?.vnode.props??{};return Object.keys(i).forEach(s=>{r[Rt.camelize(s)]=t[Rt.camelize(s)]}),{...r,...n}})}const hu=Symbol("componentAccessorKey"),du=Symbol("tooltipAccessorKey"),gu=Symbol("crosshairAccessorKey"),pu=Symbol("axisAccessorKey"),vu=Symbol("annotationsAccessorKey");(function(){try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode("[data-vis-bullet-legend],[data-vis-flow-legend]{display:block}[data-vis-leaflet-flow-map],[data-vis-leaflet-map]{display:block;position:relative}[data-vis-rolling-pin-legend]{display:block}.unovis-single-container,.unovis-xy-container{display:block;position:relative;width:100%}")),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();exports.ComponentCore=Bc;exports.ComponentDefaultConfig=Hr;exports.ContainerCore=xt;exports.ContainerDefaultConfig=fr;exports.CoreDataModel=en;exports.SeriesDataModel=Hc;exports.ascending=pt;exports.bisectRight=jn;exports.bisector=Be;exports.c=gu;exports.clamp=Te;exports.clean=Ns;exports.css=qo;exports.e=pu;exports.f=fu;exports.filterDataByRange=Fs;exports.flatten=tr;exports.getColor=Vc;exports.getExtent=zs;exports.getFontWidthToHeightRatio=Ye;exports.getMax=rr;exports.getMin=nr;exports.getNearest=Se;exports.getNumber=z;exports.getStackedData=Ms;exports.getStackedExtent=ks;exports.getStackedValues=Os;exports.getString=er;exports.getValue=Ve;exports.guid=br;exports.injectGlobal=wr;exports.interpolate=je;exports.interpolateNumber=F;exports.interrupt=Je;exports.isArray=ce;exports.isEmpty=Rs;exports.isEqual=yt;exports.isFunction=He;exports.isNumber=ae;exports.kebabCaseToCamel=Zc;exports.m=lu;exports.max=we;exports.merge=st;exports.min=be;exports.number=Jn;exports.o=hu;exports.rectIntersect=Go;exports.renderTextToSvgTextElement=uu;exports.s=du;exports.select=Yt;exports.smartTransition=Lc;exports.t=vu;exports.textAlignToAnchor=Yc;exports.throttle=Ae;exports.trimSVGText=ru;exports.wrapSVGText=nu;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as wt, inject as Tt, computed as Nt, ref as Pt, onMounted as
|
|
2
|
-
import { h as S, t as jt, J as H, s as K, M as G, P as
|
|
3
|
-
import { X as
|
|
1
|
+
import { defineComponent as wt, inject as Tt, computed as Nt, ref as Pt, onMounted as At, nextTick as Ot, onUnmounted as Ct, watch as I, openBlock as Mt, createElementBlock as Dt } from "vue";
|
|
2
|
+
import { h as S, t as jt, J as H, s as K, M as G, P as O, _ as tt, v as et, $ as Et, y as C, a0 as ne, r as se, a1 as oe, Y as Rt, R as Bt, U as Ft } from "./index-Bvxc5xv_.mjs";
|
|
3
|
+
import { X as Lt, a as Ht, D } from "./index-uOkqO74I.mjs";
|
|
4
4
|
import { w as $t, c as k, a as It, e as yt } from "./array-CvmZXzxF.mjs";
|
|
5
5
|
function Gt(t) {
|
|
6
6
|
this._context = t;
|
|
@@ -505,10 +505,10 @@ const pe = (function t(e) {
|
|
|
505
505
|
return t(+n);
|
|
506
506
|
}, i;
|
|
507
507
|
})(0.5);
|
|
508
|
-
function
|
|
508
|
+
function Ut(t, e) {
|
|
509
509
|
this._context = t, this._alpha = e;
|
|
510
510
|
}
|
|
511
|
-
|
|
511
|
+
Ut.prototype = {
|
|
512
512
|
areaStart: T,
|
|
513
513
|
areaEnd: T,
|
|
514
514
|
lineStart: function() {
|
|
@@ -554,7 +554,7 @@ Qt.prototype = {
|
|
|
554
554
|
};
|
|
555
555
|
const ye = (function t(e) {
|
|
556
556
|
function i(n) {
|
|
557
|
-
return e ? new
|
|
557
|
+
return e ? new Ut(n, e) : new ut(n, 0);
|
|
558
558
|
}
|
|
559
559
|
return i.alpha = function(n) {
|
|
560
560
|
return t(+n);
|
|
@@ -609,10 +609,10 @@ const de = (function t(e) {
|
|
|
609
609
|
return t(+n);
|
|
610
610
|
}, i;
|
|
611
611
|
})(0.5);
|
|
612
|
-
function
|
|
612
|
+
function Qt(t) {
|
|
613
613
|
this._context = t;
|
|
614
614
|
}
|
|
615
|
-
|
|
615
|
+
Qt.prototype = {
|
|
616
616
|
areaStart: T,
|
|
617
617
|
areaEnd: T,
|
|
618
618
|
lineStart: function() {
|
|
@@ -626,7 +626,7 @@ Ut.prototype = {
|
|
|
626
626
|
}
|
|
627
627
|
};
|
|
628
628
|
function ve(t) {
|
|
629
|
-
return new
|
|
629
|
+
return new Qt(t);
|
|
630
630
|
}
|
|
631
631
|
function dt(t) {
|
|
632
632
|
return t < 0 ? -1 : 1;
|
|
@@ -755,10 +755,10 @@ function gt(t) {
|
|
|
755
755
|
function be(t) {
|
|
756
756
|
return new te(t);
|
|
757
757
|
}
|
|
758
|
-
function
|
|
758
|
+
function U(t, e) {
|
|
759
759
|
this._context = t, this._t = e;
|
|
760
760
|
}
|
|
761
|
-
|
|
761
|
+
U.prototype = {
|
|
762
762
|
areaStart: function() {
|
|
763
763
|
this._line = 0;
|
|
764
764
|
},
|
|
@@ -793,13 +793,13 @@ Q.prototype = {
|
|
|
793
793
|
}
|
|
794
794
|
};
|
|
795
795
|
function me(t) {
|
|
796
|
-
return new
|
|
796
|
+
return new U(t, 0.5);
|
|
797
797
|
}
|
|
798
798
|
function ke(t) {
|
|
799
|
-
return new
|
|
799
|
+
return new U(t, 0);
|
|
800
800
|
}
|
|
801
801
|
function Se(t) {
|
|
802
|
-
return new
|
|
802
|
+
return new U(t, 1);
|
|
803
803
|
}
|
|
804
804
|
function bt(t, e) {
|
|
805
805
|
var i = Object.keys(t);
|
|
@@ -924,11 +924,11 @@ function Pe(t, e) {
|
|
|
924
924
|
right: n.reverse()
|
|
925
925
|
};
|
|
926
926
|
}
|
|
927
|
-
function
|
|
927
|
+
function Ae(t) {
|
|
928
928
|
var e = {};
|
|
929
929
|
return t.length === 4 && (e.x2 = t[2][0], e.y2 = t[2][1]), t.length >= 3 && (e.x1 = t[1][0], e.y1 = t[1][1]), e.x = t[t.length - 1][0], e.y = t[t.length - 1][1], t.length === 4 ? e.type = "C" : t.length === 3 ? e.type = "Q" : e.type = "L", e;
|
|
930
930
|
}
|
|
931
|
-
function
|
|
931
|
+
function Oe(t, e) {
|
|
932
932
|
e = e || 2;
|
|
933
933
|
for (var i = [], n = t, s = 1 / e, o = 0; o < e - 1; o++) {
|
|
934
934
|
var l = s / (1 - s * o), r = Pe(n, l);
|
|
@@ -938,7 +938,7 @@ function Ae(t, e) {
|
|
|
938
938
|
}
|
|
939
939
|
function Ce(t, e, i) {
|
|
940
940
|
var n = [[t.x, t.y]];
|
|
941
|
-
return e.x1 != null && n.push([e.x1, e.y1]), e.x2 != null && n.push([e.x2, e.y2]), n.push([e.x, e.y]),
|
|
941
|
+
return e.x1 != null && n.push([e.x1, e.y1]), e.x2 != null && n.push([e.x2, e.y2]), n.push([e.x, e.y]), Oe(n, i).map(Ae);
|
|
942
942
|
}
|
|
943
943
|
var Me = /[MLCSTQAHVZmlcstqahv]|-?[\d.e+-]+/g, j = {
|
|
944
944
|
M: ["x", "y"],
|
|
@@ -1120,7 +1120,7 @@ const W = {
|
|
|
1120
1120
|
[m.Step]: me,
|
|
1121
1121
|
[m.StepAfter]: Se,
|
|
1122
1122
|
[m.StepBefore]: ke
|
|
1123
|
-
},
|
|
1123
|
+
}, Be = Object.assign(Object.assign({}, Lt), { curveType: m.MonotoneX, lineWidth: 2, lineDashArray: void 0, fallbackValue: void 0, highlightOnHover: !1, cursor: null, interpolateMissingData: !1 }), Fe = jt`
|
|
1124
1124
|
:root {
|
|
1125
1125
|
--vis-line-cursor: default;
|
|
1126
1126
|
--vis-line-stroke-dasharray: none;
|
|
@@ -1130,7 +1130,7 @@ const W = {
|
|
|
1130
1130
|
--vis-line-gapfill-stroke-opacity: 0.8;
|
|
1131
1131
|
--vis-line-gapfill-stroke-dashoffset: 0;
|
|
1132
1132
|
}
|
|
1133
|
-
`,
|
|
1133
|
+
`, Le = S`
|
|
1134
1134
|
label: line-component;
|
|
1135
1135
|
`, E = S`
|
|
1136
1136
|
label: line;
|
|
@@ -1162,11 +1162,11 @@ const W = {
|
|
|
1162
1162
|
line: E,
|
|
1163
1163
|
linePath: st,
|
|
1164
1164
|
lineSelectionHelper: ot,
|
|
1165
|
-
root:
|
|
1165
|
+
root: Le
|
|
1166
1166
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1167
1167
|
class q extends Ht {
|
|
1168
1168
|
constructor(e) {
|
|
1169
|
-
super(), this._defaultConfig =
|
|
1169
|
+
super(), this._defaultConfig = Be, this.config = this._defaultConfig, this.curve = W[m.MonotoneX], this.events = {
|
|
1170
1170
|
[q.selectors.line]: {
|
|
1171
1171
|
mouseover: this._highlight.bind(this),
|
|
1172
1172
|
mouseleave: this._resetHighlight.bind(this)
|
|
@@ -1209,16 +1209,16 @@ class q extends Ht {
|
|
|
1209
1209
|
visible: u
|
|
1210
1210
|
};
|
|
1211
1211
|
}), h = this.g.selectAll(`.${E}`).data(r), c = h.enter().append("g").attr("class", E);
|
|
1212
|
-
c.append("path").attr("class", st).attr("stroke", (a, _) =>
|
|
1212
|
+
c.append("path").attr("class", st).attr("stroke", (a, _) => O(n, i.color, _)).attr("stroke-opacity", 0).attr("stroke-width", i.lineWidth), c.append("path").attr("class", ot).attr("d", this._emptyPath()), c.append("path").attr("class", at).attr("d", this._emptyPath()).style("opacity", 0);
|
|
1213
1213
|
const y = c.merge(h);
|
|
1214
1214
|
y.style("cursor", (a, _) => tt(n, i.cursor, _)), y.each((a, _, g) => {
|
|
1215
1215
|
var d;
|
|
1216
|
-
const x = et(g[_]), u = x.select(`.${st}`), f = x.select(`.${ot}`), v = x.select(`.${at}`), p = a.visible, b = Et(n, i.lineDashArray, _), w = C(u, s).attr("stroke",
|
|
1216
|
+
const x = et(g[_]), u = x.select(`.${st}`), f = x.select(`.${ot}`), v = x.select(`.${at}`), p = a.visible, b = Et(n, i.lineDashArray, _), w = C(u, s).attr("stroke", O(n, i.color, _)).attr("stroke-width", i.lineWidth).attr("stroke-opacity", p ? 1 : 0).style("stroke-dasharray", (d = b?.join(" ")) !== null && d !== void 0 ? d : null), M = a.values.some((P) => !P.defined), N = this.lineGen(a.values);
|
|
1217
1217
|
if (s && !M) {
|
|
1218
|
-
const P = u.attr("d") || this._emptyPath(),
|
|
1219
|
-
w.attrTween("d", () => nt(P,
|
|
1218
|
+
const P = u.attr("d") || this._emptyPath(), A = N || this._emptyPath();
|
|
1219
|
+
w.attrTween("d", () => nt(P, A));
|
|
1220
1220
|
} else a.visible && w.attr("d", N);
|
|
1221
|
-
f.attr("d", N).attr("visibility", p ? null : "hidden"), M && i.interpolateMissingData ? C(v, s).attr("d", this.lineGen(a.gaps)).attr("stroke",
|
|
1221
|
+
f.attr("d", N).attr("visibility", p ? null : "hidden"), M && i.interpolateMissingData ? C(v, s).attr("d", this.lineGen(a.gaps)).attr("stroke", O(n, i.color, _)).attr("stroke-width", i.lineWidth - 1).style("opacity", 1) : v.transition().duration(s).style("opacity", 0);
|
|
1222
1222
|
}), C(h.exit(), s).style("opacity", 0).remove();
|
|
1223
1223
|
}
|
|
1224
1224
|
_emptyPath() {
|
|
@@ -1235,7 +1235,7 @@ class q extends Ht {
|
|
|
1235
1235
|
}
|
|
1236
1236
|
}
|
|
1237
1237
|
q.selectors = He;
|
|
1238
|
-
const $e = Object.assign(Object.assign({},
|
|
1238
|
+
const $e = Object.assign(Object.assign({}, Lt), { color: void 0, curveType: m.MonotoneX, baseline: () => 0, opacity: 1, cursor: null, line: !1, lineColor: void 0, lineWidth: 2, lineDashArray: void 0, minHeight1Px: !1, minHeight: void 0, stackMinHeight: !1 }), ie = S`
|
|
1239
1239
|
label: area-component;
|
|
1240
1240
|
`, Ie = jt`
|
|
1241
1241
|
:root {
|
|
@@ -1281,10 +1281,10 @@ const $e = Object.assign(Object.assign({}, Bt), { color: void 0, curveType: m.Mo
|
|
|
1281
1281
|
globalStyles: Ie,
|
|
1282
1282
|
root: ie
|
|
1283
1283
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1284
|
-
class
|
|
1284
|
+
class Q extends Ht {
|
|
1285
1285
|
constructor(e) {
|
|
1286
1286
|
super(), this._defaultConfig = $e, this.config = this._defaultConfig, this.stacked = !0, this.events = {
|
|
1287
|
-
[
|
|
1287
|
+
[Q.selectors.area]: {}
|
|
1288
1288
|
}, e && this.setConfig(e), this.stacked = Array.isArray(this.config.y);
|
|
1289
1289
|
}
|
|
1290
1290
|
get bleed() {
|
|
@@ -1307,14 +1307,14 @@ class U extends Ht {
|
|
|
1307
1307
|
this._prevNegative = h.map((u) => !!u.isMostlyNegative);
|
|
1308
1308
|
const c = [], y = h.map((u) => u.map((f, v) => {
|
|
1309
1309
|
var p, b;
|
|
1310
|
-
const w = r[v], M = this.yScale(f[0]), N = this.yScale(f[1]), P = N > M,
|
|
1311
|
-
let
|
|
1312
|
-
return (i.minHeight || i.minHeight1Px) && Math.abs(F -
|
|
1310
|
+
const w = r[v], M = this.yScale(f[0]), N = this.yScale(f[1]), P = N > M, A = i.stackMinHeight && c[v] || 0, B = P ? M + A : M - A, F = P ? N + A : N - A;
|
|
1311
|
+
let L = 0;
|
|
1312
|
+
return (i.minHeight || i.minHeight1Px) && Math.abs(F - B) < ((p = i.minHeight) !== null && p !== void 0 ? p : 1) && (L = ((b = i.minHeight) !== null && b !== void 0 ? b : 1) - Math.abs(F - B), i.stackMinHeight && (c[v] = A + L)), {
|
|
1313
1313
|
x: w,
|
|
1314
|
-
y0:
|
|
1315
|
-
y1: P ? F +
|
|
1314
|
+
y0: B,
|
|
1315
|
+
y1: P ? F + L : F - L
|
|
1316
1316
|
};
|
|
1317
|
-
})), a = y.length - 1, _ = [...y].reverse(), g = this.g.selectAll(`.${$}`).data(_), d = g.enter().append("path").attr("class", $).attr("d", (u) => this._areaGen(u) || this._emptyPath()).style("opacity", 0).style("fill", (u, f) =>
|
|
1317
|
+
})), a = y.length - 1, _ = [...y].reverse(), g = this.g.selectAll(`.${$}`).data(_), d = g.enter().append("path").attr("class", $).attr("d", (u) => this._areaGen(u) || this._emptyPath()).style("opacity", 0).style("fill", (u, f) => O(n, i.color, a - f)), x = C(d.merge(g), s).style("opacity", (u, f) => u.some((p) => p.y0 - p.y1 !== 0) ? G(n, i.opacity, a - f) : 0).style("fill", (u, f) => O(n, i.color, a - f)).style("cursor", (u, f) => tt(n, i.cursor, a - f));
|
|
1318
1318
|
s ? x.attrTween("d", (f, v, p) => {
|
|
1319
1319
|
const b = et(p[v]).attr("d"), w = this._areaGen(f) || this._emptyPath();
|
|
1320
1320
|
return nt(b, w);
|
|
@@ -1322,7 +1322,7 @@ class U extends Ht {
|
|
|
1322
1322
|
}
|
|
1323
1323
|
_renderLines(e, i) {
|
|
1324
1324
|
var n;
|
|
1325
|
-
const { config: s, datamodel: { data: o } } = this, l = i.length - 1, r = [...i].reverse(), h = (n = s.lineColor) !== null && n !== void 0 ? n : s.color, c = this.g.selectAll(`.${lt}`).data(r), y = this.g.selectAll(`.${$}`).nodes(), a = c.enter().insert("path", (d, x) => y[x + 1]).attr("class", lt).attr("stroke", (d, x) =>
|
|
1325
|
+
const { config: s, datamodel: { data: o } } = this, l = i.length - 1, r = [...i].reverse(), h = (n = s.lineColor) !== null && n !== void 0 ? n : s.color, c = this.g.selectAll(`.${lt}`).data(r), y = this.g.selectAll(`.${$}`).nodes(), a = c.enter().insert("path", (d, x) => y[x + 1]).attr("class", lt).attr("stroke", (d, x) => O(o, h, l - x)).attr("stroke-width", s.lineWidth).attr("stroke-opacity", 0), _ = C(a.merge(c), e).attr("stroke", (d, x) => O(o, h, l - x)).attr("stroke-width", s.lineWidth).attr("stroke-opacity", 1).attr("cursor", (d, x) => tt(o, s.cursor, l - x)).style("stroke-dasharray", (d, x) => {
|
|
1326
1326
|
var u, f;
|
|
1327
1327
|
return (f = (u = Et(o, s.lineDashArray, x)) === null || u === void 0 ? void 0 : u.join(" ")) !== null && f !== void 0 ? f : null;
|
|
1328
1328
|
}), g = W[s.curveType];
|
|
@@ -1347,8 +1347,8 @@ class U extends Ht {
|
|
|
1347
1347
|
return `M${e[0]},${i[0]} L${e[1]},${i[0]}`;
|
|
1348
1348
|
}
|
|
1349
1349
|
}
|
|
1350
|
-
|
|
1351
|
-
const Xe = { "data-vis-component": "" },
|
|
1350
|
+
Q.selectors = Ge;
|
|
1351
|
+
const Xe = { "data-vis-component": "" }, Ue = /* @__PURE__ */ wt({
|
|
1352
1352
|
__name: "index",
|
|
1353
1353
|
props: {
|
|
1354
1354
|
color: { type: [Function, String, Array, null] },
|
|
@@ -1356,8 +1356,13 @@ const Xe = { "data-vis-component": "" }, Qe = /* @__PURE__ */ wt({
|
|
|
1356
1356
|
baseline: { type: [Function, Number, null] },
|
|
1357
1357
|
opacity: { type: [Function, Number, null] },
|
|
1358
1358
|
cursor: { type: [Function, String, null] },
|
|
1359
|
+
line: { type: Boolean },
|
|
1360
|
+
lineColor: { type: [Function, String, Array, null] },
|
|
1361
|
+
lineWidth: {},
|
|
1362
|
+
lineDashArray: { type: [Function, Array, null] },
|
|
1359
1363
|
minHeight1Px: { type: Boolean },
|
|
1360
1364
|
minHeight: {},
|
|
1365
|
+
stackMinHeight: { type: Boolean },
|
|
1361
1366
|
x: { type: [Function, Number, null] },
|
|
1362
1367
|
y: { type: [Function, Number, null, Array] },
|
|
1363
1368
|
id: { type: Function },
|
|
@@ -1370,11 +1375,11 @@ const Xe = { "data-vis-component": "" }, Qe = /* @__PURE__ */ wt({
|
|
|
1370
1375
|
data: {}
|
|
1371
1376
|
},
|
|
1372
1377
|
setup(t, { expose: e }) {
|
|
1373
|
-
const i = Tt(Rt), n = t, s = Nt(() => i.data.value ?? n.data), o =
|
|
1374
|
-
return
|
|
1375
|
-
|
|
1378
|
+
const i = Tt(Rt), n = t, s = Nt(() => i.data.value ?? n.data), o = Bt(n), l = Pt();
|
|
1379
|
+
return At(() => {
|
|
1380
|
+
Ot(() => {
|
|
1376
1381
|
var r;
|
|
1377
|
-
l.value = new
|
|
1382
|
+
l.value = new Q(o.value), (r = l.value) == null || r.setData(s.value), i.update(l.value);
|
|
1378
1383
|
});
|
|
1379
1384
|
}), Ct(() => {
|
|
1380
1385
|
var r;
|
|
@@ -1412,9 +1417,9 @@ const Xe = { "data-vis-component": "" }, Qe = /* @__PURE__ */ wt({
|
|
|
1412
1417
|
data: {}
|
|
1413
1418
|
},
|
|
1414
1419
|
setup(t, { expose: e }) {
|
|
1415
|
-
const i = Tt(Rt), n = t, s = Nt(() => i.data.value ?? n.data), o =
|
|
1416
|
-
return
|
|
1417
|
-
|
|
1420
|
+
const i = Tt(Rt), n = t, s = Nt(() => i.data.value ?? n.data), o = Bt(n), l = Pt();
|
|
1421
|
+
return At(() => {
|
|
1422
|
+
Ot(() => {
|
|
1418
1423
|
var r;
|
|
1419
1424
|
l.value = new q(o.value), (r = l.value) == null || r.setData(s.value), i.update(l.value);
|
|
1420
1425
|
});
|
|
@@ -1433,6 +1438,6 @@ const Xe = { "data-vis-component": "" }, Qe = /* @__PURE__ */ wt({
|
|
|
1433
1438
|
}
|
|
1434
1439
|
});
|
|
1435
1440
|
export {
|
|
1436
|
-
|
|
1437
|
-
|
|
1441
|
+
qe as C,
|
|
1442
|
+
Ue as j
|
|
1438
1443
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const A=require("vue"),v=require("./index-
|
|
1
|
+
"use strict";const A=require("vue"),v=require("./index-B5aBwdxY.js"),n=require("./array-CbATeQbk.js"),st=Object.assign(Object.assign({},v.ContainerDefaultConfig),{tooltip:void 0,annotations:void 0});class lt extends v.ContainerCore{constructor(a,e,i){var s;super(a),this._defaultConfig=st,this.config=this._defaultConfig,e&&(this.updateContainer(e,!0),this.component=e.component),i&&this.setData(i,!0),!((s=this.component)===null||s===void 0)&&s.datamodel.data&&this.render()}setData(a,e){var i;const{config:s}=this;this.component&&this.component.setData(a),e||this.render(),(i=s.tooltip)===null||i===void 0||i.hide()}updateContainer(a,e){super.updateContainer(a),this._removeAllChildren(),this.component=a.component,a.sizing&&(this.component.sizing=a.sizing),this.element.appendChild(this.component.element);const i=a.tooltip;i&&(i.hasContainer()||i.setContainer(this._container),i.setComponents([this.component]));const s=a.annotations;s&&this.element.appendChild(s.element),this.element.appendChild(this._svgDefs.node()),this.element.appendChild(this._svgDefsExternal.node()),e||this.render()}updateComponent(a,e){this.component.setConfig(a),e||this.render()}update(a,e,i){a&&this.updateContainer(a,!0),e&&this.updateComponent(e,!0),i&&this.setData(i,!0),this.render()}getFitWidthScale(){const{config:a,component:e}=this,i=e;if(!i.getWidth)return 1;const s=i.getWidth()+a.margin.left+a.margin.right;return this.width/s}_preRender(){var a,e;super._preRender(),this.component.setSize(this.width,this.height,this.containerWidth,this.containerHeight),this.component.setContainerMargin(this.config.margin),(a=this.config.annotations)===null||a===void 0||a.setSize(this.width,this.height,this.containerWidth,this.containerHeight),(e=this.config.annotations)===null||e===void 0||e.setContainerMargin(this.config.margin)}_render(a){var e,i;const{config:s,component:g}=this;super._render(a),g.g.attr("transform",`translate(${s.margin.left},${s.margin.top})`),g.render(a),(e=s.annotations)===null||e===void 0||e.render(a),s.tooltip&&s.tooltip.update(),(i=s.onRenderComplete)===null||i===void 0||i.call(s,this.svg.node(),s.margin,this.containerWidth,this.containerHeight,this.width,this.height)}render(a=this.config.duration){const{config:e,component:i}=this;if(e.sizing===v.Sizing.Extend||e.sizing===v.Sizing.FitWidth){const s=e.sizing===v.Sizing.FitWidth,g=i,l=g.getWidth()+e.margin.left+e.margin.right,t=g.getHeight()+e.margin.top+e.margin.bottom,p=s?this.getFitWidthScale():1,r=this.svg.attr("width"),o=this.svg.attr("height"),R=l*p,h=t*p,m=r||o;v.smartTransition(this.svg,m?a:0).attr("width",R).attr("height",h).attr("viewBox",`0 0 ${l} ${s?h:t}`).attr("preserveAspectRatio","xMinYMin")}else this.svg.attr("width",this.config.width||this.containerWidth).attr("height",this.config.height||this.containerHeight);this._resizeObserver||this._setUpResizeObserver(),cancelAnimationFrame(this._renderAnimationFrameId),this._renderAnimationFrameId=requestAnimationFrame(()=>{this._preRender(),this._render(a)})}_onResize(){var a;const{config:e}=this;super._onResize(),(a=e.tooltip)===null||a===void 0||a.hide()}destroy(){var a,e;const{component:i,config:s}=this;super.destroy(),i?.destroy(),(a=s.tooltip)===null||a===void 0||a.destroy(),(e=s.annotations)===null||e===void 0||e.destroy()}}function rt(c){return c.innerRadius}function ut(c){return c.outerRadius}function ct(c){return c.startAngle}function dt(c){return c.endAngle}function gt(c){return c&&c.padAngle}function ht(c,a,e,i,s,g,l,t){var p=e-c,r=i-a,o=l-s,R=t-g,h=R*p-o*r;if(!(h*h<n.epsilon))return h=(o*(a-g)-R*(c-s))/h,[c+h*p,a+h*r]}function V(c,a,e,i,s,g,l){var t=c-e,p=a-i,r=(l?g:-g)/n.sqrt(t*t+p*p),o=r*p,R=-r*t,h=c+o,m=a+R,x=e+o,_=i+R,d=(h+x)/2,y=(m+_)/2,S=x-h,L=_-m,w=S*S+L*L,C=s-g,k=h*_-x*m,O=(L<0?-1:1)*n.sqrt(n.max(0,C*C*w-k*k)),z=(k*L-S*O)/w,F=(-k*S-L*O)/w,N=(k*L+S*O)/w,T=(-k*S+L*O)/w,E=z-d,u=F-y,b=N-d,H=T-y;return E*E+u*u>b*b+H*H&&(z=N,F=T),{cx:z,cy:F,x01:-o,y01:-R,x11:z*(s/C-1),y11:F*(s/C-1)}}function ft(){var c=rt,a=ut,e=n.constant(0),i=null,s=ct,g=dt,l=gt,t=null,p=n.withPath(r);function r(){var o,R,h=+c.apply(this,arguments),m=+a.apply(this,arguments),x=s.apply(this,arguments)-n.halfPi,_=g.apply(this,arguments)-n.halfPi,d=n.abs(_-x),y=_>x;if(t||(t=o=p()),m<h&&(R=m,m=h,h=R),!(m>n.epsilon))t.moveTo(0,0);else if(d>n.tau-n.epsilon)t.moveTo(m*n.cos(x),m*n.sin(x)),t.arc(0,0,m,x,_,!y),h>n.epsilon&&(t.moveTo(h*n.cos(_),h*n.sin(_)),t.arc(0,0,h,_,x,y));else{var S=x,L=_,w=x,C=_,k=d,O=d,z=l.apply(this,arguments)/2,F=z>n.epsilon&&(i?+i.apply(this,arguments):n.sqrt(h*h+m*m)),N=n.min(n.abs(m-h)/2,+e.apply(this,arguments)),T=N,E=N,u,b;if(F>n.epsilon){var H=n.asin(F/h*n.sin(z)),G=n.asin(F/m*n.sin(z));(k-=H*2)>n.epsilon?(H*=y?1:-1,w+=H,C-=H):(k=0,w=C=(x+_)/2),(O-=G*2)>n.epsilon?(G*=y?1:-1,S+=G,L-=G):(O=0,S=L=(x+_)/2)}var M=m*n.cos(S),P=m*n.sin(S),I=h*n.cos(C),B=h*n.sin(C);if(N>n.epsilon){var q=m*n.cos(L),$=m*n.sin(L),U=h*n.cos(w),X=h*n.sin(w),W;if(d<n.pi)if(W=ht(M,P,U,X,q,$,I,B)){var Y=M-W[0],f=P-W[1],D=q-W[0],j=$-W[1],K=1/n.sin(n.acos((Y*D+f*j)/(n.sqrt(Y*Y+f*f)*n.sqrt(D*D+j*j)))/2),Q=n.sqrt(W[0]*W[0]+W[1]*W[1]);T=n.min(N,(h-Q)/(K-1)),E=n.min(N,(m-Q)/(K+1))}else T=E=0}O>n.epsilon?E>n.epsilon?(u=V(U,X,M,P,m,E,y),b=V(q,$,I,B,m,E,y),t.moveTo(u.cx+u.x01,u.cy+u.y01),E<N?t.arc(u.cx,u.cy,E,n.atan2(u.y01,u.x01),n.atan2(b.y01,b.x01),!y):(t.arc(u.cx,u.cy,E,n.atan2(u.y01,u.x01),n.atan2(u.y11,u.x11),!y),t.arc(0,0,m,n.atan2(u.cy+u.y11,u.cx+u.x11),n.atan2(b.cy+b.y11,b.cx+b.x11),!y),t.arc(b.cx,b.cy,E,n.atan2(b.y11,b.x11),n.atan2(b.y01,b.x01),!y))):(t.moveTo(M,P),t.arc(0,0,m,S,L,!y)):t.moveTo(M,P),!(h>n.epsilon)||!(k>n.epsilon)?t.lineTo(I,B):T>n.epsilon?(u=V(I,B,q,$,h,-T,y),b=V(M,P,U,X,h,-T,y),t.lineTo(u.cx+u.x01,u.cy+u.y01),T<N?t.arc(u.cx,u.cy,T,n.atan2(u.y01,u.x01),n.atan2(b.y01,b.x01),!y):(t.arc(u.cx,u.cy,T,n.atan2(u.y01,u.x01),n.atan2(u.y11,u.x11),!y),t.arc(0,0,h,n.atan2(u.cy+u.y11,u.cx+u.x11),n.atan2(b.cy+b.y11,b.cx+b.x11),y),t.arc(b.cx,b.cy,T,n.atan2(b.y11,b.x11),n.atan2(b.y01,b.x01),!y))):t.arc(0,0,h,C,w,y)}if(t.closePath(),o)return t=null,o+""||null}return r.centroid=function(){var o=(+c.apply(this,arguments)+ +a.apply(this,arguments))/2,R=(+s.apply(this,arguments)+ +g.apply(this,arguments))/2-n.pi/2;return[n.cos(R)*o,n.sin(R)*o]},r.innerRadius=function(o){return arguments.length?(c=typeof o=="function"?o:n.constant(+o),r):c},r.outerRadius=function(o){return arguments.length?(a=typeof o=="function"?o:n.constant(+o),r):a},r.cornerRadius=function(o){return arguments.length?(e=typeof o=="function"?o:n.constant(+o),r):e},r.padRadius=function(o){return arguments.length?(i=o==null?null:typeof o=="function"?o:n.constant(+o),r):i},r.startAngle=function(o){return arguments.length?(s=typeof o=="function"?o:n.constant(+o),r):s},r.endAngle=function(o){return arguments.length?(g=typeof o=="function"?o:n.constant(+o),r):g},r.padAngle=function(o){return arguments.length?(l=typeof o=="function"?o:n.constant(+o),r):l},r.context=function(o){return arguments.length?(t=o??null,r):t},r}function pt(c,a){return a<c?-1:a>c?1:a>=c?0:NaN}function mt(c){return c}function vt(){var c=mt,a=pt,e=null,i=n.constant(0),s=n.constant(n.tau),g=n.constant(0);function l(t){var p,r=(t=n.array(t)).length,o,R,h=0,m=new Array(r),x=new Array(r),_=+i.apply(this,arguments),d=Math.min(n.tau,Math.max(-n.tau,s.apply(this,arguments)-_)),y,S=Math.min(Math.abs(d)/r,g.apply(this,arguments)),L=S*(d<0?-1:1),w;for(p=0;p<r;++p)(w=x[m[p]=p]=+c(t[p],p,t))>0&&(h+=w);for(a!=null?m.sort(function(C,k){return a(x[C],x[k])}):e!=null&&m.sort(function(C,k){return e(t[C],t[k])}),p=0,R=h?(d-r*L)/h:0;p<r;++p,_=y)o=m[p],w=x[o],y=_+(w>0?w*R:0)+L,x[o]={data:t[o],index:p,value:w,startAngle:_,endAngle:y,padAngle:S};return x}return l.value=function(t){return arguments.length?(c=typeof t=="function"?t:n.constant(+t),l):c},l.sortValues=function(t){return arguments.length?(a=t,e=null,l):a},l.sort=function(t){return arguments.length?(e=t,a=null,l):e},l.startAngle=function(t){return arguments.length?(i=typeof t=="function"?t:n.constant(+t),l):i},l.endAngle=function(t){return arguments.length?(s=typeof t=="function"?t:n.constant(+t),l):s},l.padAngle=function(t){return arguments.length?(g=typeof t=="function"?t:n.constant(+t),l):g},l}const bt=Object.assign(Object.assign({},v.ComponentDefaultConfig),{id:(c,a)=>{var e;return(e=c.id)!==null&&e!==void 0?e:a},value:void 0,angleRange:[0,2*Math.PI],padAngle:0,sortFunction:void 0,cornerRadius:0,color:void 0,radius:void 0,arcWidth:20,centralLabel:void 0,centralSubLabel:void 0,centralSubLabelWrap:!0,showEmptySegments:!1,emptySegmentAngle:.5*Math.PI/180,showBackground:!0,backgroundAngleRange:void 0,centralLabelOffsetX:void 0,centralLabelOffsetY:void 0});function yt(c,a){c.style("fill",e=>v.getColor(e.data,a.color,e.index)).style("opacity",0).each((e,i,s)=>{const g=s[i],l=(e.startAngle+e.endAngle)/2,t=(e.endAngle-e.startAngle)/2;g._animState={startAngle:l-t,endAngle:l+t,innerRadius:e.innerRadius,outerRadius:e.outerRadius,padAngle:e.padAngle}})}function At(c,a,e,i){c.style("transition",`fill ${i}ms`).style("fill",g=>v.getColor(g.data,a.color,g.index));const s=g=>a.showEmptySegments||g.value?1:0;i?v.smartTransition(c,i).style("opacity",s).attrTween("d",(l,t,p)=>{const r=p[t],o={startAngle:l.startAngle,endAngle:l.endAngle,innerRadius:l.innerRadius,outerRadius:l.outerRadius,padAngle:l.padAngle},R=v.interpolate(r._animState,o);return h=>(r._animState=R(h),e(r._animState))}):c.attr("d",e).style("opacity",s)}function xt(c,a){v.smartTransition(c,a).style("opacity",0).remove()}const Z=Array.from({length:4},(c,a)=>{const e=-Math.PI/2+a*Math.PI/2;return[e,e+Math.PI]}),[Ct,kt,Tt,Et]=Z,tt=v.css`
|
|
2
2
|
label: donut-component;
|
|
3
3
|
`,Rt=v.injectGlobal`
|
|
4
4
|
:root {
|
|
@@ -55,4 +55,4 @@
|
|
|
55
55
|
font-family: var(--vis-donut-central-sub-label-font-family, var(--vis-font-family));
|
|
56
56
|
font-weight: var(--vis-donut-central-sub-label-font-weight);
|
|
57
57
|
fill: var(--vis-donut-central-sub-label-text-color);
|
|
58
|
-
`,_t=Object.freeze(Object.defineProperty({__proto__:null,background:nt,centralLabel:at,centralSubLabel:it,root:tt,segment:J,segmentExit:et,variables:Rt},Symbol.toStringTag,{value:"Module"}));class ot extends v.ComponentCore{constructor(a){super(),this._defaultConfig=bt,this.config=this._defaultConfig,this.datamodel=new v.SeriesDataModel,this.arcGen=ft(),this.events={},a&&this.setConfig(a),this.arcBackground=this.g.append("path"),this.arcGroup=this.g.append("g"),this.centralLabel=this.g.append("text").attr("class",at),this.centralSubLabel=this.g.append("text").attr("class",it)}get bleed(){return{top:0,bottom:0,left:0,right:0}}_render(a){var e,i,s,g,l,t,p,r,o,R,h,m,x,_;const{config:d,datamodel:y,bleed:S}=this,L=y.data.map((f,D)=>({index:D,datum:f})).filter(f=>d.showEmptySegments||v.getNumber(f.datum,d.value,f.index)),w=v.isNumber(a)?a:d.duration,[C,k,O,z]=Z.map(f=>d.angleRange&&d.angleRange[0]===f[0]&&d.angleRange[1]===f[1]),F=C||O,N=k||z,T=this._width*(N?2:1),E=this._height*(F?2:1),u=d.radius||Math.min(T-S.left-S.right,E-S.top-S.bottom)/2,b=d.arcWidth===0?0:v.clamp(u-d.arcWidth,0,u-1),H=this._height/2+(C?u/2:O?-u/2:0),G=this._width/2+(z?u/2:k?-u/2:0),M=`translate(${G},${H})`;this.arcGroup.attr("transform",M),this.arcGen.startAngle(f=>f.startAngle).endAngle(f=>f.endAngle).innerRadius(f=>f.innerRadius).outerRadius(f=>f.outerRadius).padAngle(f=>f.padAngle).cornerRadius(d.cornerRadius);const I=vt().startAngle((i=(e=d.angleRange)===null||e===void 0?void 0:e[0])!==null&&i!==void 0?i:0).endAngle((g=(s=d.angleRange)===null||s===void 0?void 0:s[1])!==null&&g!==void 0?g:2*Math.PI).padAngle(d.padAngle).value(f=>v.getNumber(f.datum,d.value,f.index)||0).sort((f,D)=>{var j;return(j=d.sortFunction)===null||j===void 0?void 0:j.call(d,f.datum,D.datum)})(L).map(f=>{const D=Object.assign(Object.assign({},f),{data:f.data.datum,index:f.data.index,innerRadius:b,outerRadius:u});return d.showEmptySegments&&f.endAngle-f.startAngle-f.padAngle<=Number.EPSILON&&(D.endAngle=f.startAngle+Math.max(d.emptySegmentAngle,d.padAngle),D.padAngle=f.padAngle/2),D}),B=this.arcGroup.selectAll(`.${J}`).data(I,f=>d.id(f.data,f.index)),q=B.enter().append("path").attr("class",J).call(yt,d),$=B.merge(q);$.call(At,d,this.arcGen,w),$.sort((f,D)=>D.value-f.value),B.exit().attr("class",et).call(xt,w);const U=k?"start":z?"end":"middle";this.centralLabel.attr("dy",d.centralSubLabel?"-0.55em":null).style("text-anchor",U).text((l=d.centralLabel)!==null&&l!==void 0?l:null),this.centralSubLabel.attr("dy",d.centralLabel?"0.55em":null).style("text-anchor",U).text((t=d.centralSubLabel)!==null&&t!==void 0?t:null),d.centralSubLabelWrap&&v.wrapSVGText(this.centralSubLabel,b*1.9);const X=(d.centralLabelOffsetX||0)+G;let W=(d.centralLabelOffsetY||0)+H;F&&d.centralLabelOffsetX===void 0&&d.centralLabelOffsetY===void 0&&(W=(C?-this.centralSubLabel.node().getBoundingClientRect().height:O?this.centralLabel.node().getBoundingClientRect().height:0)+H);const Y=`translate(${X},${W})`;this.centralLabel.attr("transform",Y),this.centralSubLabel.attr("transform",Y),this.arcBackground.attr("class",nt).attr("visibility",d.showBackground?null:"hidden").attr("transform",M),v.smartTransition(this.arcBackground,w).attr("d",this.arcGen({startAngle:(R=(r=(p=d.backgroundAngleRange)===null||p===void 0?void 0:p[0])!==null&&r!==void 0?r:(o=d.angleRange)===null||o===void 0?void 0:o[0])!==null&&R!==void 0?R:0,endAngle:(_=(m=(h=d.backgroundAngleRange)===null||h===void 0?void 0:h[1])!==null&&m!==void 0?m:(x=d.angleRange)===null||x===void 0?void 0:x[1])!==null&&_!==void 0?_:2*Math.PI,innerRadius:b,outerRadius:u}))}}ot.selectors=_t;const wt=A.defineComponent({__name:"index",props:{component:{},tooltip:{},annotations:{},duration:{},margin:{},padding:{},sizing:{},width:{},height:{},svgDefs:{},ariaLabel:{},data:{}},setup(c,{expose:a}){const e=c,{data:i}=A.toRefs(e),s=v.m(e);let g;const l=A.reactive({component:void 0,tooltip:void 0,annotations:void 0}),t=A.ref(),p=()=>{g||t.value&&l.component&&(g=new lt(t.value,{...A.toRaw(l)},i.value))};return A.watchEffect(()=>{var r;p(),(r=l.component)==null||r.config,g?.updateContainer({...A.toRaw(s.value),...A.toRaw(l)})}),A.watch(i,()=>{g?g.setData(i.value,!0):p()}),A.onUnmounted(()=>g?.destroy()),A.provide(v.o,{data:i,update:r=>l.component=r,destroy:()=>l.component=void 0}),A.provide(v.s,{data:i,update:r=>l.tooltip=r,destroy:()=>{l.tooltip=void 0}}),A.provide(v.t,{data:i,update:r=>l.annotations=r,destroy:()=>{l.annotations=void 0}}),a({component:g}),(r,o)=>(A.openBlock(),A.createElementBlock("div",{"data-vis-single-container":"",ref_key:"elRef",ref:t,class:"unovis-single-container"},[A.renderSlot(r.$slots,"default")],512))}})
|
|
58
|
+
`,_t=Object.freeze(Object.defineProperty({__proto__:null,background:nt,centralLabel:at,centralSubLabel:it,root:tt,segment:J,segmentExit:et,variables:Rt},Symbol.toStringTag,{value:"Module"}));class ot extends v.ComponentCore{constructor(a){super(),this._defaultConfig=bt,this.config=this._defaultConfig,this.datamodel=new v.SeriesDataModel,this.arcGen=ft(),this.events={},a&&this.setConfig(a),this.arcBackground=this.g.append("path"),this.arcGroup=this.g.append("g"),this.centralLabel=this.g.append("text").attr("class",at),this.centralSubLabel=this.g.append("text").attr("class",it)}get bleed(){return{top:0,bottom:0,left:0,right:0}}_render(a){var e,i,s,g,l,t,p,r,o,R,h,m,x,_;const{config:d,datamodel:y,bleed:S}=this,L=y.data.map((f,D)=>({index:D,datum:f})).filter(f=>d.showEmptySegments||v.getNumber(f.datum,d.value,f.index)),w=v.isNumber(a)?a:d.duration,[C,k,O,z]=Z.map(f=>d.angleRange&&d.angleRange[0]===f[0]&&d.angleRange[1]===f[1]),F=C||O,N=k||z,T=this._width*(N?2:1),E=this._height*(F?2:1),u=d.radius||Math.min(T-S.left-S.right,E-S.top-S.bottom)/2,b=d.arcWidth===0?0:v.clamp(u-d.arcWidth,0,u-1),H=this._height/2+(C?u/2:O?-u/2:0),G=this._width/2+(z?u/2:k?-u/2:0),M=`translate(${G},${H})`;this.arcGroup.attr("transform",M),this.arcGen.startAngle(f=>f.startAngle).endAngle(f=>f.endAngle).innerRadius(f=>f.innerRadius).outerRadius(f=>f.outerRadius).padAngle(f=>f.padAngle).cornerRadius(d.cornerRadius);const I=vt().startAngle((i=(e=d.angleRange)===null||e===void 0?void 0:e[0])!==null&&i!==void 0?i:0).endAngle((g=(s=d.angleRange)===null||s===void 0?void 0:s[1])!==null&&g!==void 0?g:2*Math.PI).padAngle(d.padAngle).value(f=>v.getNumber(f.datum,d.value,f.index)||0).sort((f,D)=>{var j;return(j=d.sortFunction)===null||j===void 0?void 0:j.call(d,f.datum,D.datum)})(L).map(f=>{const D=Object.assign(Object.assign({},f),{data:f.data.datum,index:f.data.index,innerRadius:b,outerRadius:u});return d.showEmptySegments&&f.endAngle-f.startAngle-f.padAngle<=Number.EPSILON&&(D.endAngle=f.startAngle+Math.max(d.emptySegmentAngle,d.padAngle),D.padAngle=f.padAngle/2),D}),B=this.arcGroup.selectAll(`.${J}`).data(I,f=>d.id(f.data,f.index)),q=B.enter().append("path").attr("class",J).call(yt,d),$=B.merge(q);$.call(At,d,this.arcGen,w),$.sort((f,D)=>D.value-f.value),B.exit().attr("class",et).call(xt,w);const U=k?"start":z?"end":"middle";this.centralLabel.attr("dy",d.centralSubLabel?"-0.55em":null).style("text-anchor",U).text((l=d.centralLabel)!==null&&l!==void 0?l:null),this.centralSubLabel.attr("dy",d.centralLabel?"0.55em":null).style("text-anchor",U).text((t=d.centralSubLabel)!==null&&t!==void 0?t:null),d.centralSubLabelWrap&&v.wrapSVGText(this.centralSubLabel,b*1.9);const X=(d.centralLabelOffsetX||0)+G;let W=(d.centralLabelOffsetY||0)+H;F&&d.centralLabelOffsetX===void 0&&d.centralLabelOffsetY===void 0&&(W=(C?-this.centralSubLabel.node().getBoundingClientRect().height:O?this.centralLabel.node().getBoundingClientRect().height:0)+H);const Y=`translate(${X},${W})`;this.centralLabel.attr("transform",Y),this.centralSubLabel.attr("transform",Y),this.arcBackground.attr("class",nt).attr("visibility",d.showBackground?null:"hidden").attr("transform",M),v.smartTransition(this.arcBackground,w).attr("d",this.arcGen({startAngle:(R=(r=(p=d.backgroundAngleRange)===null||p===void 0?void 0:p[0])!==null&&r!==void 0?r:(o=d.angleRange)===null||o===void 0?void 0:o[0])!==null&&R!==void 0?R:0,endAngle:(_=(m=(h=d.backgroundAngleRange)===null||h===void 0?void 0:h[1])!==null&&m!==void 0?m:(x=d.angleRange)===null||x===void 0?void 0:x[1])!==null&&_!==void 0?_:2*Math.PI,innerRadius:b,outerRadius:u}))}}ot.selectors=_t;const wt={"data-vis-component":""},St=A.defineComponent({__name:"index",props:{id:{type:Function},value:{type:[Function,Number,null]},angleRange:{},padAngle:{},sortFunction:{type:Function},cornerRadius:{},color:{type:[Function,String,Array,null]},radius:{},arcWidth:{},centralLabel:{},centralSubLabel:{},centralSubLabelWrap:{type:Boolean},showEmptySegments:{type:Boolean},emptySegmentAngle:{},showBackground:{type:Boolean},backgroundAngleRange:{},centralLabelOffsetX:{},centralLabelOffsetY:{},duration:{},events:{},attributes:{},data:{}},setup(c,{expose:a}){const e=A.inject(v.o),i=c,s=A.computed(()=>e.data.value??i.data),g=v.m(i),l=A.ref();return A.onMounted(()=>{A.nextTick(()=>{var t;l.value=new ot(g.value),(t=l.value)==null||t.setData(s.value),e.update(l.value)})}),A.onUnmounted(()=>{var t;(t=l.value)==null||t.destroy(),e.destroy()}),A.watch(g,(t,p)=>{var r;v.f(t,p)||(r=l.value)==null||r.setConfig(g.value)}),A.watch(s,()=>{var t;(t=l.value)==null||t.setData(s.value)}),a({component:l}),(t,p)=>(A.openBlock(),A.createElementBlock("div",wt))}}),Lt=A.defineComponent({__name:"index",props:{component:{},tooltip:{},annotations:{},onRenderComplete:{type:Function},duration:{},margin:{},padding:{},sizing:{},width:{},height:{},svgDefs:{},ariaLabel:{},data:{}},setup(c,{expose:a}){const e=c,{data:i}=A.toRefs(e),s=v.m(e);let g;const l=A.reactive({component:void 0,tooltip:void 0,annotations:void 0}),t=A.ref(),p=()=>{g||t.value&&l.component&&(g=new lt(t.value,{...A.toRaw(l)},i.value))};return A.watchEffect(()=>{var r;p(),(r=l.component)==null||r.config,g?.updateContainer({...A.toRaw(s.value),...A.toRaw(l)})}),A.watch(i,()=>{g?g.setData(i.value,!0):p()}),A.onUnmounted(()=>g?.destroy()),A.provide(v.o,{data:i,update:r=>l.component=r,destroy:()=>l.component=void 0}),A.provide(v.s,{data:i,update:r=>l.tooltip=r,destroy:()=>{l.tooltip=void 0}}),A.provide(v.t,{data:i,update:r=>l.annotations=r,destroy:()=>{l.annotations=void 0}}),a({component:g}),(r,o)=>(A.openBlock(),A.createElementBlock("div",{"data-vis-single-container":"",ref_key:"elRef",ref:t,class:"unovis-single-container"},[A.renderSlot(r.$slots,"default")],512))}});exports.E=St;exports.S=Lt;
|