@oliasoft-open-source/charts-library 5.7.2-beta-1 → 5.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{Color-6BZIO3FS-D_-B3AP0.js → Color-6BZIO3FS-BaAvX6Yp.js} +1 -1
- package/dist/assets/{DocsRenderer-LL677BLK-B5JDzNnk.js → DocsRenderer-LL677BLK-BK5C7Jzn.js} +4 -4
- package/dist/assets/{WithTooltip-65CFNBJE-8EEBhQo3.js → WithTooltip-65CFNBJE-BQ4nRetu.js} +1 -1
- package/dist/assets/{bar-chart.stories-CyxR49e_.js → bar-chart.stories-D5i9vPgt.js} +1 -1
- package/dist/assets/{chunk-YKABRMAI-DMt5fhxa.js → chunk-YKABRMAI-ChBkp0ra.js} +1 -1
- package/dist/assets/{components-BI9LhTRX.js → components-DgLnPVTi.js} +4 -4
- package/dist/assets/formatter-EIJCOSYU-By9veOc8.js +1 -0
- package/dist/assets/{get-draggableData-Bkm-vwbc.js → get-draggableData-C4qYyiBf.js} +1 -1
- package/dist/assets/{iframe-tFAZUsBl.js → iframe-DvGneWFZ.js} +4 -4
- package/dist/assets/{jsx-runtime-B8tE-sQF.js → jsx-runtime-S4TgXXQD.js} +1 -1
- package/dist/assets/{legend-CRQJe1eg.js → legend-DnGwExsY.js} +1 -1
- package/dist/assets/{legend-context-3AYFKhyL.js → legend-context-DrT75Hl_.js} +1 -1
- package/dist/assets/{line-chart-DKhU9zGy.js → line-chart-Ds2L0-Ky.js} +1 -1
- package/dist/assets/{line-chart.stories-PuUcD0iZ.js → line-chart.stories-8UAM62iU.js} +1 -1
- package/dist/assets/{line-chart.test-case.stories-DbsDVuff.js → line-chart.test-case.stories-BPzBXXrt.js} +1 -1
- package/dist/assets/{pie-chart.stories-g4__kC97.js → pie-chart.stories-qKjdYhwq.js} +1 -1
- package/dist/assets/{react-18-DdL6lJLC.js → react-18-CaPDGmKz.js} +1 -1
- package/dist/assets/{react-BAWznt4_.js → react-B3R5p1NM.js} +1 -1
- package/dist/assets/{react-dom-BYNB9LbF.js → react-dom-DuTm0_Xz.js} +1 -1
- package/dist/assets/{scatter-chart.stories-CgscIZkm.js → scatter-chart.stories-CzYwqOiR.js} +1 -1
- package/dist/assets/{syntaxhighlighter-ED5Y7EFY-DP_lnjjd.js → syntaxhighlighter-ED5Y7EFY-BHci-LOP.js} +1 -1
- package/dist/assets/{theming-Nni-mLA6.js → theming-Y5Cbkxro.js} +1 -1
- package/dist/iframe.html +1 -1
- package/dist/project.json +1 -1
- package/package.json +1 -1
- package/dist/assets/formatter-EIJCOSYU-CsgSjfB2.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{A as e,D as t,E as n,O as r,T as i,i as a,k as o}from"./iframe-tFAZUsBl.js";import{t as s}from"./react-dom-BYNB9LbF.js";import{t as c}from"./jsx-runtime-B8tE-sQF.js";import{$ as l,At as u,Cn as d,Ct as f,Dn as p,Dt as m,En as h,Et as g,Ft as _,It as v,Jt as y,Lt as b,Mt as x,Nt as S,On as C,P as w,Pt as T,Q as E,Sn as D,St as O,T as k,Tn as A,Tt as ee,U as j,Wt as te,X as ne,Xt as re,Y as ie,Yt as ae,Z as oe,_ as se,_n as M,_t as ce,an as le,bn as ue,bt as de,cn as fe,ct as pe,d as me,dn as he,dt as ge,et as _e,fn as ve,ft as ye,gn as be,gt as xe,hn as Se,ht as Ce,it as we,jt as Te,kn as Ee,kt as De,ln as Oe,lt as ke,mn as Ae,mt as je,nt as Me,on as Ne,ot as Pe,pn as Fe,pt as Ie,rt as Le,sn as Re,st as ze,t as Be,un as Ve,vn as He,vt as Ue,wn as We,wt as Ge,xn as Ke,xt as qe,yn as Je}from"./legend-context-3AYFKhyL.js";var Ye={modes:{point(e,t){return $e(e,t,{intersect:!0})},nearest(e,t,n){return et(e,t,n)},x(e,t,n){return $e(e,t,{intersect:n.intersect,axis:`x`})},y(e,t,n){return $e(e,t,{intersect:n.intersect,axis:`y`})}}};function Xe(e,t,n){return(Ye.modes[n.mode]||Ye.modes.nearest)(e,t,n)}function Ze(e,t,n){return n!==`x`&&n!==`y`?e.inRange(t.x,t.y,`x`,!0)||e.inRange(t.x,t.y,`y`,!0):e.inRange(t.x,t.y,n,!0)}function Qe(e,t,n){return n===`x`?{x:e.x,y:t.y}:n===`y`?{x:t.x,y:e.y}:t}function $e(e,t,n){return e.filter(e=>n.intersect?e.inRange(t.x,t.y):Ze(e,t,n.axis))}function et(e,t,n){let r=1/0;return $e(e,t,n).reduce((e,i)=>{let a=be(t,Qe(t,i.getCenterPoint(),n.axis));return a<r?(e=[i],r=a):a===r&&e.push(i),e},[]).sort((e,t)=>e._index-t._index).slice(0,1)}function tt(e,t,n){let r=Math.cos(n),i=Math.sin(n),a=t.x,o=t.y;return{x:a+r*(e.x-a)-i*(e.y-o),y:o+i*(e.x-a)+r*(e.y-o)}}var nt=(e,t)=>t>e||e.length>t.length&&e.slice(0,t.length)===t,rt=.001,it=(e,t,n)=>Math.min(n,Math.max(t,e)),at=(e,t)=>e.value>=e.start-t&&e.value<=e.end+t;function ot(e,t,n){for(let r of Object.keys(e))e[r]=it(e[r],t,n);return e}function st(e,t,n,r){return!e||!t||n<=0?!1:(e.x-t.x)**2+(e.y-t.y)**2<=(n+r)**2}function ct(e,{x:t,y:n,x2:r,y2:i},a,{borderWidth:o,hitTolerance:s}){let c=(o+s)/2,l=e.x>=t-c-rt&&e.x<=r+c+rt,u=e.y>=n-c-rt&&e.y<=i+c+rt;return a===`x`?l:(a===`y`||l)&&u}function lt(e,{rect:t,center:n},r,{rotation:i,borderWidth:a,hitTolerance:o}){return ct(tt(e,n,h(-i)),t,r,{borderWidth:a,hitTolerance:o})}function ut(e,t){let{centerX:n,centerY:r}=e.getProps([`centerX`,`centerY`],t);return{x:n,y:r}}function dt(e,t,n,r=!0){let i=n.split(`.`),a=0;for(let o of t.split(`.`)){let s=i[a++];if(parseInt(o,10)<parseInt(s,10))break;if(nt(s,o)){if(r)throw Error(`${e} v${n} is not supported. v${t} or newer is required.`);return!1}}return!0}var ft=e=>typeof e==`string`&&e.endsWith(`%`),pt=e=>parseFloat(e)/100,mt=e=>it(pt(e),0,1),ht=(e,t)=>({x:e,y:t,x2:e,y2:t,width:0,height:0}),eee={box:e=>ht(e.centerX,e.centerY),doughnutLabel:e=>ht(e.centerX,e.centerY),ellipse:e=>({centerX:e.centerX,centerY:e.centerX,radius:0,width:0,height:0}),label:e=>ht(e.centerX,e.centerY),line:e=>ht(e.x,e.y),point:e=>({centerX:e.centerX,centerY:e.centerY,radius:0,width:0,height:0}),polygon:e=>ht(e.centerX,e.centerY)};function gt(e,t){return t===`start`?0:t===`end`?e:ft(t)?mt(t)*e:e/2}function _t(e,t,n=!0){return typeof t==`number`?t:ft(t)?(n?mt(t):pt(t))*e:e}function tee(e,t){let{x:n,width:r}=e,i=t.textAlign;return i===`center`?n+r/2:i===`end`||i===`right`?n+r:n}function vt(e,t,{borderWidth:n,position:r,xAdjust:i,yAdjust:a},o){let s=D(o),c=t.width+(s?o.width:0)+n,l=t.height+(s?o.height:0)+n,u=yt(r),d=Ct(e.x,c,i,u.x),f=Ct(e.y,l,a,u.y);return{x:d,y:f,x2:d+c,y2:f+l,width:c,height:l,centerX:d+c/2,centerY:f+l/2}}function yt(e,t=`center`){return D(e)?{x:Ee(e.x,t),y:Ee(e.y,t)}:(e=Ee(e,t),{x:e,y:e})}var bt=(e,t)=>e&&e.autoFit&&t<1;function xt(e,t){let n=e.font,r=He(n)?n:[n];return bt(e,t)?r.map(function(e){let n=We(e);return n.size=Math.floor(e.size*t),n.lineHeight=e.lineHeight,We(n)}):r.map(e=>We(e))}function St(e){return e&&(Se(e.xValue)||Se(e.yValue))}function Ct(e,t,n=0,r){return e-gt(t,r)+n}function wt(e,t,n){let r=n.init;if(r)return r===!0?Et(t,n):Dt(e,t,n)}function Tt(e,t,n){let r=!1;return t.forEach(t=>{Je(e[t])?(r=!0,n[t]=e[t]):Se(n[t])&&delete n[t]}),r}function Et(e,t){return eee[t.type||`line`](e)}function Dt(e,t,n){let r=ve(n.init,[{chart:e,properties:t,options:n}]);if(r===!0)return Et(t,n);if(D(r))return r}var Ot=new Map,kt=e=>isNaN(e)||e<=0,At=e=>e.reduce(function(e,t){return e+=t.string,e},``);function jt(e){if(e&&typeof e==`object`){let t=e.toString();return t===`[object HTMLImageElement]`||t===`[object HTMLCanvasElement]`}}function Mt(e,{x:t,y:n},r){r&&(e.translate(t,n),e.rotate(h(r)),e.translate(-t,-n))}function Nt(e,t){if(t&&t.borderWidth)return e.lineCap=t.borderCapStyle||`butt`,e.setLineDash(t.borderDash),e.lineDashOffset=t.borderDashOffset,e.lineJoin=t.borderJoinStyle||`miter`,e.lineWidth=t.borderWidth,e.strokeStyle=t.borderColor,!0}function Pt(e,t){e.shadowColor=t.backgroundShadowColor,e.shadowBlur=t.shadowBlur,e.shadowOffsetX=t.shadowOffsetX,e.shadowOffsetY=t.shadowOffsetY}function Ft(e,t){let n=t.content;if(jt(n))return{width:_t(n.width,t.width),height:_t(n.height,t.height)};let r=xt(t),i=t.textStrokeWidth,a=He(n)?n:[n],o=a.join()+At(r)+i+(e._measureText?`-spriting`:``);return Ot.has(o)||Ot.set(o,Vt(e,a,r,i)),Ot.get(o)}function It(e,t,n){let{x:r,y:i,width:a,height:o}=t;e.save(),Pt(e,n);let s=Nt(e,n);e.fillStyle=n.backgroundColor,e.beginPath(),he(e,{x:r,y:i,w:a,h:o,radius:ot(p(n.borderRadius),0,Math.min(a,o)/2)}),e.closePath(),e.fill(),s&&(e.shadowColor=n.borderShadowColor,e.stroke()),e.restore()}function Lt(e,t,n,r){let i=n.content;if(jt(i)){e.save(),e.globalAlpha=Wt(n.opacity,i.style.opacity),e.drawImage(i,t.x,t.y,t.width,t.height),e.restore();return}let a=He(i)?i:[i],o=xt(n,r),s=n.color,c=He(s)?s:[s],l=tee(t,n),u=t.y+n.textStrokeWidth/2;e.save(),e.textBaseline=`middle`,e.textAlign=n.textAlign,Rt(e,n)&&Ht(e,{x:l,y:u},a,o),Ut(e,{x:l,y:u},a,{fonts:o,colors:c}),e.restore()}function Rt(e,t){if(t.textStrokeWidth>0)return e.lineJoin=`round`,e.miterLimit=2,e.lineWidth=t.textStrokeWidth,e.strokeStyle=t.textStrokeColor,!0}function zt(e,t,n,r){let{radius:i,options:a}=t,o=a.pointStyle,s=a.rotation,c=(s||0)*fe;if(jt(o)){e.save(),e.translate(n,r),e.rotate(c),e.drawImage(o,-o.width/2,-o.height/2,o.width,o.height),e.restore();return}kt(i)||Bt(e,{x:n,y:r,radius:i,rotation:s,style:o,rad:c})}function Bt(e,{x:t,y:n,radius:r,rotation:i,style:a,rad:o}){let s,c,l,u;switch(e.beginPath(),a){default:e.arc(t,n,r,0,Oe),e.closePath();break;case`triangle`:e.moveTo(t+Math.sin(o)*r,n-Math.cos(o)*r),o+=Ve,e.lineTo(t+Math.sin(o)*r,n-Math.cos(o)*r),o+=Ve,e.lineTo(t+Math.sin(o)*r,n-Math.cos(o)*r),e.closePath();break;case`rectRounded`:u=r*.516,l=r-u,s=Math.cos(o+Re)*l,c=Math.sin(o+Re)*l,e.arc(t-s,n-c,u,o-Ne,o-le),e.arc(t+c,n-s,u,o-le,o),e.arc(t+s,n+c,u,o,o+le),e.arc(t-c,n+s,u,o+le,o+Ne),e.closePath();break;case`rect`:if(!i){l=Math.SQRT1_2*r,e.rect(t-l,n-l,2*l,2*l);break}o+=Re;case`rectRot`:s=Math.cos(o)*r,c=Math.sin(o)*r,e.moveTo(t-s,n-c),e.lineTo(t+c,n-s),e.lineTo(t+s,n+c),e.lineTo(t-c,n+s),e.closePath();break;case`crossRot`:o+=Re;case`cross`:s=Math.cos(o)*r,c=Math.sin(o)*r,e.moveTo(t-s,n-c),e.lineTo(t+s,n+c),e.moveTo(t+c,n-s),e.lineTo(t-c,n+s);break;case`star`:s=Math.cos(o)*r,c=Math.sin(o)*r,e.moveTo(t-s,n-c),e.lineTo(t+s,n+c),e.moveTo(t+c,n-s),e.lineTo(t-c,n+s),o+=Re,s=Math.cos(o)*r,c=Math.sin(o)*r,e.moveTo(t-s,n-c),e.lineTo(t+s,n+c),e.moveTo(t+c,n-s),e.lineTo(t-c,n+s);break;case`line`:s=Math.cos(o)*r,c=Math.sin(o)*r,e.moveTo(t-s,n-c),e.lineTo(t+s,n+c);break;case`dash`:e.moveTo(t,n),e.lineTo(t+Math.cos(o)*r,n+Math.sin(o)*r);break}e.fill()}function Vt(e,t,n,r){e.save();let i=t.length,a=0,o=r;for(let s=0;s<i;s++){let i=n[Math.min(s,n.length-1)];e.font=i.string;let c=t[s];a=Math.max(a,e.measureText(c).width+r),o+=i.lineHeight}return e.restore(),{width:a,height:o}}function Ht(e,{x:t,y:n},r,i){e.beginPath();let a=0;r.forEach(function(r,o){let s=i[Math.min(o,i.length-1)],c=s.lineHeight;e.font=s.string,e.strokeText(r,t,n+c/2+a),a+=c}),e.stroke()}function Ut(e,{x:t,y:n},r,{fonts:i,colors:a}){let o=0;r.forEach(function(r,s){let c=a[Math.min(s,a.length-1)],l=i[Math.min(s,i.length-1)],u=l.lineHeight;e.beginPath(),e.font=l.string,e.fillStyle=c,e.fillText(r,t,n+u/2+o),o+=u,e.fill()})}function Wt(e,t){let n=ue(e)?e:t;return ue(n)?it(n,0,1):1}var Gt=[`left`,`bottom`,`top`,`right`];function Kt(e,t){let{pointX:n,pointY:r,options:i}=t,a=i.callout,o=a&&a.display&&Zt(t,a);if(!o||$t(t,a,o))return;if(e.save(),e.beginPath(),!Nt(e,a))return e.restore();let{separatorStart:s,separatorEnd:c}=qt(t,o),{sideStart:l,sideEnd:u}=Yt(t,o,s);(a.margin>0||i.borderWidth===0)&&(e.moveTo(s.x,s.y),e.lineTo(c.x,c.y)),e.moveTo(l.x,l.y),e.lineTo(u.x,u.y);let d=tt({x:n,y:r},t.getCenterPoint(),h(-t.rotation));e.lineTo(d.x,d.y),e.stroke(),e.restore()}function qt(e,t){let{x:n,y:r,x2:i,y2:a}=e,o=Jt(e,t),s,c;return t===`left`||t===`right`?(s={x:n+o,y:r},c={x:s.x,y:a}):(s={x:n,y:r+o},c={x:i,y:s.y}),{separatorStart:s,separatorEnd:c}}function Jt(e,t){let{width:n,height:r,options:i}=e,a=i.callout.margin+i.borderWidth/2;return t===`right`?n+a:t===`bottom`?r+a:-a}function Yt(e,t,n){let{y:r,width:i,height:a,options:o}=e,s=o.callout.start,c=Xt(t,o.callout),l,u;return t===`left`||t===`right`?(l={x:n.x,y:r+_t(a,s)},u={x:l.x+c,y:l.y}):(l={x:n.x+_t(i,s),y:n.y},u={x:l.x,y:l.y+c}),{sideStart:l,sideEnd:u}}function Xt(e,t){let n=t.side;return e===`left`||e===`top`?-n:n}function Zt(e,t){let n=t.position;return Gt.includes(n)?n:Qt(e,t)}function Qt(e,t){let{x:n,y:r,x2:i,y2:a,width:o,height:s,pointX:c,pointY:l,centerX:u,centerY:d,rotation:f}=e,p={x:u,y:d},m=t.start,g=_t(o,m),_=_t(s,m),v=[n,n+g,n+g,i],y=[r+_,a,r,a],b=[];for(let e=0;e<4;e++){let t=tt({x:v[e],y:y[e]},p,h(f));b.push({position:Gt[e],distance:be(t,{x:c,y:l})})}return b.sort((e,t)=>e.distance-t.distance)[0].position}function $t(e,t,n){let{pointX:r,pointY:i}=e,a=t.margin,o=r,s=i;return n===`left`?o+=a:n===`right`?o-=a:n===`top`?s+=a:n===`bottom`&&(s-=a),e.inRange(o,s)}var en={xScaleID:{min:`xMin`,max:`xMax`,start:`left`,end:`right`,startProp:`x`,endProp:`x2`},yScaleID:{min:`yMin`,max:`yMax`,start:`bottom`,end:`top`,startProp:`y`,endProp:`y2`}};function tn(e,t,n){return t=typeof t==`number`?t:e.parse(t),Ke(t)?e.getPixelForValue(t):n}function nn(e,t,n){let r=t[n];if(r||n===`scaleID`)return r;let i=n.charAt(0),a=Object.values(e).filter(e=>e.axis&&e.axis===i);return a.length?a[0].id:i}function rn(e,t){if(e){let n=e.options.reverse;return{start:tn(e,t.min,n?t.end:t.start),end:tn(e,t.max,n?t.start:t.end)}}}function an(e,t){let{chartArea:n,scales:r}=e,i=r[nn(r,t,`xScaleID`)],a=r[nn(r,t,`yScaleID`)],o=n.width/2,s=n.height/2;return i&&(o=tn(i,t.xValue,i.left+i.width/2)),a&&(s=tn(a,t.yValue,a.top+a.height/2)),{x:o,y:s}}function on(e,t){let n=e.scales,r=n[nn(n,t,`xScaleID`)],i=n[nn(n,t,`yScaleID`)];if(!r&&!i)return{};let{left:a,right:o}=r||e.chartArea,{top:s,bottom:c}=i||e.chartArea,l=dn(r,{min:t.xMin,max:t.xMax,start:a,end:o});a=l.start,o=l.end;let u=dn(i,{min:t.yMin,max:t.yMax,start:c,end:s});return s=u.start,c=u.end,{x:a,y:s,x2:o,y2:c,width:o-a,height:c-s,centerX:a+(o-a)/2,centerY:s+(c-s)/2}}function sn(e,t){if(!St(t)){let n=on(e,t),r=t.radius;(!r||isNaN(r))&&(r=Math.min(n.width,n.height)/2,t.radius=r);let i=r*2,a=n.centerX+t.xAdjust,o=n.centerY+t.yAdjust;return{x:a-r,y:o-r,x2:a+r,y2:o+r,centerX:a,centerY:o,width:i,height:i,radius:r}}return un(e,t)}function cn(e,t){let{scales:n,chartArea:r}=e,i=n[t.scaleID],a={x:r.left,y:r.top,x2:r.right,y2:r.bottom};return i?fn(i,a,t):pn(n,a,t),a}function ln(e,t){let n=on(e,t);return n.initProperties=wt(e,n,t),n.elements=[{type:`label`,optionScope:`label`,properties:ree(e,n,t),initProperties:n.initProperties}],n}function un(e,t){let n=an(e,t),r=t.radius*2;return{x:n.x-t.radius+t.xAdjust,y:n.y-t.radius+t.yAdjust,x2:n.x+t.radius+t.xAdjust,y2:n.y+t.radius+t.yAdjust,centerX:n.x+t.xAdjust,centerY:n.y+t.yAdjust,radius:t.radius,width:r,height:r}}function dn(e,t){let n=rn(e,t)||t;return{start:Math.min(n.start,n.end),end:Math.max(n.start,n.end)}}function fn(e,t,n){let r=tn(e,n.value,NaN),i=tn(e,n.endValue,r);e.isHorizontal()?(t.x=r,t.x2=i):(t.y=r,t.y2=i)}function pn(e,t,n){for(let r of Object.keys(en)){let i=e[nn(e,n,r)];if(i){let{min:e,max:a,start:o,end:s,startProp:c,endProp:l}=en[r],u=rn(i,{min:n[e],max:n[a],start:i[o],end:i[s]});t[c]=u.start,t[l]=u.end}}}function mn({properties:e,options:t},n,r,i){let{x:a,x2:o,width:s}=e;return hn({start:a,end:o,size:s,borderWidth:t.borderWidth},{position:r.x,padding:{start:i.left,end:i.right},adjust:t.label.xAdjust,size:n.width})}function nee({properties:e,options:t},n,r,i){let{y:a,y2:o,height:s}=e;return hn({start:a,end:o,size:s,borderWidth:t.borderWidth},{position:r.y,padding:{start:i.top,end:i.bottom},adjust:t.label.yAdjust,size:n.height})}function hn(e,t){let{start:n,end:r,borderWidth:i}=e,{position:a,padding:{start:o,end:s},adjust:c}=t,l=r-i-n-o-s-t.size;return n+i/2+c+gt(l,a)}function ree(e,t,n){let r=n.label;r.backgroundColor=`transparent`,r.callout.display=!1;let i=yt(r.position),a=A(r.padding),o=Ft(e.ctx,r),s=mn({properties:t,options:n},o,i,a),c=nee({properties:t,options:n},o,i,a),l=o.width+a.width,u=o.height+a.height;return{x:s,y:c,x2:s+l,y2:c+u,width:l,height:u,centerX:s+l/2,centerY:c+u/2,rotation:r.rotation}}var gn=[`enter`,`leave`],_n=gn.concat(`click`);function vn(e,t,n){t.listened=Tt(n,_n,t.listeners),t.moveListened=!1,gn.forEach(e=>{Je(n[e])&&(t.moveListened=!0)}),(!t.listened||!t.moveListened)&&t.annotations.forEach(e=>{!t.listened&&Je(e.click)&&(t.listened=!0),t.moveListened||gn.forEach(n=>{Je(e[n])&&(t.listened=!0,t.moveListened=!0)})})}function yn(e,t,n){if(e.listened)switch(t.type){case`mousemove`:case`mouseout`:return bn(e,t,n);case`click`:return iee(e,t,n)}}function bn(e,t,n){if(!e.moveListened)return;let r;r=t.type===`mousemove`?Xe(e.visibleElements,t,n.interaction):[];let i=e.hovered;e.hovered=r;let a={state:e,event:t},o=xn(a,`leave`,i,r);return xn(a,`enter`,r,i)||o}function xn({state:e,event:t},n,r,i){let a;for(let o of r)i.indexOf(o)<0&&(a=Sn(o.options[n]||e.listeners[n],o,t)||a);return a}function iee(e,t,n){let r=e.listeners,i=Xe(e.visibleElements,t,n.interaction),a;for(let e of i)a=Sn(e.options.click||r.click,e,t)||a;return a}function Sn(e,t,n){return ve(e,[t.$context,n])===!0}var Cn=[`afterDraw`,`beforeDraw`];function wn(e,t,n){let r=t.visibleElements;t.hooked=Tt(n,Cn,t.hooks),t.hooked||r.forEach(e=>{t.hooked||Cn.forEach(n=>{Je(e.options[n])&&(t.hooked=!0)})})}function Tn(e,t,n){if(e.hooked)return ve(t.options[n]||e.hooks[n],[t.$context])}function En(e,t,n){let r=Mn(e.scales,t,n),i=On(t,r,`min`,`suggestedMin`);i=On(t,r,`max`,`suggestedMax`)||i,i&&Je(t.handleTickRangeOptions)&&t.handleTickRangeOptions()}function Dn(e,t){for(let n of e)An(n,t)}function On(e,t,n,r){if(Ke(t[n])&&!kn(e.options,n,r)){let r=e[n]!==t[n];return e[n]=t[n],r}}function kn(e,t,n){return Se(e[t])||Se(e[n])}function An(e,t){for(let n of[`scaleID`,`xScaleID`,`yScaleID`]){let r=nn(t,e,n);r&&!t[r]&&jn(e,n)&&console.warn(`No scale found with id '${r}' for annotation '${e.id}'`)}}function jn(e,t){if(t===`scaleID`)return!0;let n=t.charAt(0);for(let t of[`Min`,`Max`,`Value`])if(Se(e[n+t]))return!0;return!1}function Mn(e,t,n){let r=t.axis,i=t.id,a=r+`ScaleID`,o={min:Ee(t.min,-1/0),max:Ee(t.max,1/0)};for(let s of n)s.scaleID===i?Nn(s,t,[`value`,`endValue`],o):nn(e,s,a)===i&&Nn(s,t,[r+`Min`,r+`Max`,r+`Value`],o);return o}function Nn(e,t,n,r){for(let i of n){let n=e[i];if(Se(n)){let e=t.parse(n);r.min=Math.min(r.min,e),r.max=Math.max(r.max,e)}}}var Pn=class extends re{inRange(e,t,n,r){let{x:i,y:a}=tt({x:e,y:t},this.getCenterPoint(r),h(-this.options.rotation));return ct({x:i,y:a},this.getProps([`x`,`y`,`x2`,`y2`],r),n,this.options)}getCenterPoint(e){return ut(this,e)}draw(e){e.save(),Mt(e,this.getCenterPoint(),this.options.rotation),It(e,this,this.options),e.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(e,t){return ln(e,t)}};Pn.id=`boxAnnotation`,Pn.defaults={adjustScaleRange:!0,backgroundShadowColor:`transparent`,borderCapStyle:`butt`,borderDash:[],borderDashOffset:0,borderJoinStyle:`miter`,borderRadius:0,borderShadowColor:`transparent`,borderWidth:1,display:!0,init:void 0,hitTolerance:0,label:{backgroundColor:`transparent`,borderWidth:0,callout:{display:!1},color:`black`,content:null,display:!1,drawTime:void 0,font:{family:void 0,lineHeight:void 0,size:void 0,style:void 0,weight:`bold`},height:void 0,hitTolerance:void 0,opacity:void 0,padding:6,position:`center`,rotation:void 0,textAlign:`start`,textStrokeColor:void 0,textStrokeWidth:0,width:void 0,xAdjust:0,yAdjust:0,z:void 0},rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,xMax:void 0,xMin:void 0,xScaleID:void 0,yMax:void 0,yMin:void 0,yScaleID:void 0,z:0},Pn.defaultRoutes={borderColor:`color`,backgroundColor:`color`},Pn.descriptors={label:{_fallback:!0}};var Fn=class extends re{inRange(e,t,n,r){return lt({x:e,y:t},{rect:this.getProps([`x`,`y`,`x2`,`y2`],r),center:this.getCenterPoint(r)},n,{rotation:this.rotation,borderWidth:0,hitTolerance:this.options.hitTolerance})}getCenterPoint(e){return ut(this,e)}draw(e){let t=this.options;!t.display||!t.content||(cee(e,this),e.save(),Mt(e,this.getCenterPoint(),this.rotation),Lt(e,this,t,this._fitRatio),e.restore())}resolveElementProperties(e,t){let n=In(e,t);if(!n)return{};let{controllerMeta:r,point:i,radius:a}=aee(e,t,n),o=Ft(e.ctx,t),s=oee(o,a);bt(t,s)&&(o={width:o.width*s,height:o.height*s});let{position:c,xAdjust:l,yAdjust:u}=t,d=vt(i,o,{borderWidth:0,position:c,xAdjust:l,yAdjust:u});return{initProperties:wt(e,d,t),...d,...r,rotation:t.rotation,_fitRatio:s}}};Fn.id=`doughnutLabelAnnotation`,Fn.defaults={autoFit:!0,autoHide:!0,backgroundColor:`transparent`,backgroundShadowColor:`transparent`,borderColor:`transparent`,borderDash:[],borderDashOffset:0,borderJoinStyle:`miter`,borderShadowColor:`transparent`,borderWidth:0,color:`black`,content:null,display:!0,font:{family:void 0,lineHeight:void 0,size:void 0,style:void 0,weight:void 0},height:void 0,hitTolerance:0,init:void 0,opacity:void 0,position:`center`,rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,spacing:1,textAlign:`center`,textStrokeColor:void 0,textStrokeWidth:0,width:void 0,xAdjust:0,yAdjust:0},Fn.defaultRoutes={};function In(e,t){return e.getSortedVisibleDatasetMetas().reduce(function(n,r){let i=r.controller;return i instanceof ae&&Ln(e,t,r.data)&&(!n||i.innerRadius<n.controller.innerRadius)&&i.options.circumference>=90?r:n},void 0)}function Ln(e,t,n){if(!t.autoHide)return!0;for(let t=0;t<n.length;t++)if(!n[t].hidden&&e.getDataVisibility(t))return!0}function aee({chartArea:e},t,n){let{left:r,top:i,right:a,bottom:o}=e,{innerRadius:s,offsetX:c,offsetY:l}=n.controller,u=(r+a)/2+c,d=(i+o)/2+l,f={left:Math.max(u-s,r),right:Math.min(u+s,a),top:Math.max(d-s,i),bottom:Math.min(d+s,o)},p={x:(f.left+f.right)/2,y:(f.top+f.bottom)/2},m=t.spacing+t.borderWidth/2,h=s-m,g=p.y>d;return{controllerMeta:{_centerX:u,_centerY:d,_radius:h,_counterclockwise:g,...see(g?i+m:o-m,u,d,h)},point:p,radius:Math.min(s,Math.min(f.right-f.left,f.bottom-f.top)/2)}}function oee({width:e,height:t},n){let r=Math.sqrt(e**2+t**2);return n*2/r}function see(e,t,n,r){let i=(n-e)**2,a=r**2,o=t*-2,s=t**2+i-a,c=o**2-4*s;if(c<=0)return{_startAngle:0,_endAngle:Oe};let l=(-o-Math.sqrt(c))/2,u=(-o+Math.sqrt(c))/2;return{_startAngle:M({x:t,y:n},{x:l,y:e}).angle,_endAngle:M({x:t,y:n},{x:u,y:e}).angle}}function cee(e,t){let{_centerX:n,_centerY:r,_radius:i,_startAngle:a,_endAngle:o,_counterclockwise:s,options:c}=t;e.save();let l=Nt(e,c);e.fillStyle=c.backgroundColor,e.beginPath(),e.arc(n,r,i,a,o,s),e.closePath(),e.fill(),l&&e.stroke(),e.restore()}var Rn=class extends re{inRange(e,t,n,r){return lt({x:e,y:t},{rect:this.getProps([`x`,`y`,`x2`,`y2`],r),center:this.getCenterPoint(r)},n,{rotation:this.rotation,borderWidth:this.options.borderWidth,hitTolerance:this.options.hitTolerance})}getCenterPoint(e){return ut(this,e)}draw(e){let t=this.options,n=!Se(this._visible)||this._visible;!t.display||!t.content||!n||(e.save(),Mt(e,this.getCenterPoint(),this.rotation),Kt(e,this),It(e,this,t),Lt(e,lee(this),t),e.restore())}resolveElementProperties(e,t){let n;if(St(t))n=an(e,t);else{let{centerX:r,centerY:i}=on(e,t);n={x:r,y:i}}let r=A(t.padding),i=Ft(e.ctx,t),a=vt(n,i,t,r);return{initProperties:wt(e,a,t),pointX:n.x,pointY:n.y,...a,rotation:t.rotation}}};Rn.id=`labelAnnotation`,Rn.defaults={adjustScaleRange:!0,backgroundColor:`transparent`,backgroundShadowColor:`transparent`,borderCapStyle:`butt`,borderDash:[],borderDashOffset:0,borderJoinStyle:`miter`,borderRadius:0,borderShadowColor:`transparent`,borderWidth:0,callout:{borderCapStyle:`butt`,borderColor:void 0,borderDash:[],borderDashOffset:0,borderJoinStyle:`miter`,borderWidth:1,display:!1,margin:5,position:`auto`,side:5,start:`50%`},color:`black`,content:null,display:!0,font:{family:void 0,lineHeight:void 0,size:void 0,style:void 0,weight:void 0},height:void 0,hitTolerance:0,init:void 0,opacity:void 0,padding:6,position:`center`,rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,textAlign:`center`,textStrokeColor:void 0,textStrokeWidth:0,width:void 0,xAdjust:0,xMax:void 0,xMin:void 0,xScaleID:void 0,xValue:void 0,yAdjust:0,yMax:void 0,yMin:void 0,yScaleID:void 0,yValue:void 0,z:0},Rn.defaultRoutes={borderColor:`color`};function lee({x:e,y:t,width:n,height:r,options:i}){let a=i.borderWidth/2,o=A(i.padding);return{x:e+o.left+a,y:t+o.top+a,width:n-o.left-o.right-i.borderWidth,height:r-o.top-o.bottom-i.borderWidth}}var zn=(e,t,n)=>({x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}),Bn=(e,t,n)=>zn(t,n,Math.abs((e-t.y)/(n.y-t.y))).x,Vn=(e,t,n)=>zn(t,n,Math.abs((e-t.x)/(n.x-t.x))).y,Hn=e=>e*e,Un=(e,t,{x:n,y:r,x2:i,y2:a},o)=>o===`y`?{start:Math.min(r,a),end:Math.max(r,a),value:t}:{start:Math.min(n,i),end:Math.max(n,i),value:e},Wn=(e,t,n,r)=>(1-r)*(1-r)*e+2*(1-r)*r*t+r*r*n,Gn=(e,t,n,r)=>({x:Wn(e.x,t.x,n.x,r),y:Wn(e.y,t.y,n.y,r)}),Kn=(e,t,n,r)=>2*(1-r)*(t-e)+2*r*(n-t),qn=(e,t,n,r)=>-Math.atan2(Kn(e.x,t.x,n.x,r),Kn(e.y,t.y,n.y,r))+.5*Ne,Jn=class extends re{inRange(e,t,n,r){let i=(this.options.borderWidth+this.options.hitTolerance)/2;if(n!==`x`&&n!==`y`){let n={mouseX:e,mouseY:t},{path:a,ctx:o}=this;if(a){Nt(o,this.options),o.lineWidth+=this.options.hitTolerance;let{chart:i}=this.$context,s=e*i.currentDevicePixelRatio,c=t*i.currentDevicePixelRatio,l=o.isPointInStroke(a,s,c)||Zn(this,n,r);return o.restore(),l}let s=Hn(i);return pee(this,n,s,r)||Zn(this,n,r)}return uee(this,{mouseX:e,mouseY:t},n,{hitSize:i,useFinalPosition:r})}getCenterPoint(e){return ut(this,e)}draw(e){let{x:t,y:n,x2:r,y2:i,cp:a,options:o}=this;if(e.save(),!Nt(e,o))return e.restore();Pt(e,o);let s=Math.sqrt((r-t)**2+(i-n)**2);if(o.curve&&a)return ir(e,this,a,s),e.restore();let{startOpts:c,endOpts:l,startAdjust:u,endAdjust:d}=er(this),f=Math.atan2(i-n,r-t);e.translate(t,n),e.rotate(f),e.beginPath(),e.moveTo(0+u,0),e.lineTo(s-d,0),e.shadowColor=o.borderShadowColor,e.stroke(),nr(e,0,u,c),nr(e,s,-d,l),e.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(e,t){let n=cn(e,t),{x:r,y:i,x2:a,y2:o}=n,s=dee(n,e.chartArea),c=s?fee({x:r,y:i},{x:a,y:o},e.chartArea):{x:r,y:i,x2:a,y2:o,width:Math.abs(a-r),height:Math.abs(o-i)};c.centerX=(a+r)/2,c.centerY=(o+i)/2,c.initProperties=wt(e,c,t),t.curve&&(c.cp=bee(c,t,be({x:c.x,y:c.y},{x:c.x2,y:c.y2})));let l=mee(e,c,t.label);return l._visible=s,c.elements=[{type:`label`,optionScope:`label`,properties:l,initProperties:c.initProperties}],c}};Jn.id=`lineAnnotation`;var Yn={backgroundColor:void 0,backgroundShadowColor:void 0,borderColor:void 0,borderDash:void 0,borderDashOffset:void 0,borderShadowColor:void 0,borderWidth:void 0,display:void 0,fill:void 0,length:void 0,shadowBlur:void 0,shadowOffsetX:void 0,shadowOffsetY:void 0,width:void 0};Jn.defaults={adjustScaleRange:!0,arrowHeads:{display:!1,end:Object.assign({},Yn),fill:!1,length:12,start:Object.assign({},Yn),width:6},borderDash:[],borderDashOffset:0,borderShadowColor:`transparent`,borderWidth:2,curve:!1,controlPoint:{y:`-50%`},display:!0,endValue:void 0,init:void 0,hitTolerance:0,label:{backgroundColor:`rgba(0,0,0,0.8)`,backgroundShadowColor:`transparent`,borderCapStyle:`butt`,borderColor:`black`,borderDash:[],borderDashOffset:0,borderJoinStyle:`miter`,borderRadius:6,borderShadowColor:`transparent`,borderWidth:0,callout:Object.assign({},Rn.defaults.callout),color:`#fff`,content:null,display:!1,drawTime:void 0,font:{family:void 0,lineHeight:void 0,size:void 0,style:void 0,weight:`bold`},height:void 0,hitTolerance:void 0,opacity:void 0,padding:6,position:`center`,rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,textAlign:`center`,textStrokeColor:void 0,textStrokeWidth:0,width:void 0,xAdjust:0,yAdjust:0,z:void 0},scaleID:void 0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,value:void 0,xMax:void 0,xMin:void 0,xScaleID:void 0,yMax:void 0,yMin:void 0,yScaleID:void 0,z:0},Jn.descriptors={arrowHeads:{start:{_fallback:!0},end:{_fallback:!0},_fallback:!0}},Jn.defaultRoutes={borderColor:`color`};function uee(e,{mouseX:t,mouseY:n},r,{hitSize:i,useFinalPosition:a}){return at(Un(t,n,e.getProps([`x`,`y`,`x2`,`y2`],a),r),i)||Zn(e,{mouseX:t,mouseY:n},a,r)}function dee({x:e,y:t,x2:n,y2:r},{top:i,right:a,bottom:o,left:s}){return!(e<s&&n<s||e>a&&n>a||t<i&&r<i||t>o&&r>o)}function Xn({x:e,y:t},n,{top:r,right:i,bottom:a,left:o}){return e<o&&(t=Vn(o,{x:e,y:t},n),e=o),e>i&&(t=Vn(i,{x:e,y:t},n),e=i),t<r&&(e=Bn(r,{x:e,y:t},n),t=r),t>a&&(e=Bn(a,{x:e,y:t},n),t=a),{x:e,y:t}}function fee(e,t,n){let{x:r,y:i}=Xn(e,t,n),{x:a,y:o}=Xn(t,e,n);return{x:r,y:i,x2:a,y2:o,width:Math.abs(a-r),height:Math.abs(o-i)}}function pee(e,{mouseX:t,mouseY:n},r=rt,i){let{x:a,y:o,x2:s,y2:c}=e.getProps([`x`,`y`,`x2`,`y2`],i),l=s-a,u=c-o,d=Hn(l)+Hn(u),f=d===0?-1:((t-a)*l+(n-o)*u)/d,p,m;return f<0?(p=a,m=o):f>1?(p=s,m=c):(p=a+f*l,m=o+f*u),Hn(t-p)+Hn(n-m)<=r}function Zn(e,{mouseX:t,mouseY:n},r,i){let a=e.label;return a.options.display&&a.inRange(t,n,i,r)}function mee(e,t,n){let r=n.borderWidth,i=A(n.padding),a=Ft(e.ctx,n);return gee(t,n,{width:a.width+i.width+r,height:a.height+i.height+r,padding:i},e.chartArea)}function hee(e){let{x:t,y:n,x2:r,y2:i}=e,a=Math.atan2(i-n,r-t);return a>Ne/2?a-Ne:a<Ne/-2?a+Ne:a}function gee(e,t,n,r){let{width:i,height:a,padding:o}=n,{xAdjust:s,yAdjust:c}=t,l={x:e.x,y:e.y},u={x:e.x2,y:e.y2},f=t.rotation===`auto`?hee(e):h(t.rotation),p=_ee(i,a,f),m=vee(e,t,{labelSize:p,padding:o},r),g=e.cp?Gn(l,e.cp,u,m):zn(l,u,m),_={size:p.w,min:r.left,max:r.right,padding:o.left},v={size:p.h,min:r.top,max:r.bottom,padding:o.top},y=$n(g.x,_)+s,b=$n(g.y,v)+c;return{x:y-i/2,y:b-a/2,x2:y+i/2,y2:b+a/2,centerX:y,centerY:b,pointX:g.x,pointY:g.y,width:i,height:a,rotation:d(f)}}function _ee(e,t,n){let r=Math.cos(n),i=Math.sin(n);return{w:Math.abs(e*r)+Math.abs(t*i),h:Math.abs(e*i)+Math.abs(t*r)}}function vee(e,t,n,r){let i,a=yee(e,r);return i=t.position===`start`?Qn({w:e.x2-e.x,h:e.y2-e.y},n,t,a):t.position===`end`?1-Qn({w:e.x-e.x2,h:e.y-e.y2},n,t,a):gt(1,t.position),i}function Qn(e,t,n,r){let{labelSize:i,padding:a}=t,o=e.w*r.dx,s=e.h*r.dy,c=o>0&&(i.w/2+a.left-r.x)/o,l=s>0&&(i.h/2+a.top-r.y)/s;return it(Math.max(c,l),0,.25)}function yee(e,t){let{x:n,x2:r,y:i,y2:a}=e,o=Math.min(i,a)-t.top,s=Math.min(n,r)-t.left,c=t.bottom-Math.max(i,a),l=t.right-Math.max(n,r);return{x:Math.min(s,l),y:Math.min(o,c),dx:s<=l?1:-1,dy:o<=c?1:-1}}function $n(e,t){let{size:n,min:r,max:i,padding:a}=t,o=n/2;return n>i-r?(i+r)/2:(r>=e-a-o&&(e=r+a+o),i<=e+a+o&&(e=i-a-o),e)}function er(e){let t=e.options,n=t.arrowHeads&&t.arrowHeads.start,r=t.arrowHeads&&t.arrowHeads.end;return{startOpts:n,endOpts:r,startAdjust:tr(e,n),endAdjust:tr(e,r)}}function tr(e,t){if(!t||!t.display)return 0;let{length:n,width:r}=t,i=e.options.borderWidth/2,a={x:n,y:r+i},o={x:0,y:i};return Math.abs(Bn(0,a,o))}function nr(e,t,n,r){if(!r||!r.display)return;let{length:i,width:a,fill:o,backgroundColor:s,borderColor:c}=r,l=Math.abs(t-i)+n;e.beginPath(),Pt(e,r),Nt(e,r),e.moveTo(l,-a),e.lineTo(t+n,0),e.lineTo(l,a),o===!0?(e.fillStyle=s||c,e.closePath(),e.fill(),e.shadowColor=`transparent`):e.shadowColor=r.borderShadowColor,e.stroke()}function bee(e,t,n){let{x:r,y:i,x2:a,y2:o,centerX:s,centerY:c}=e,l=Math.atan2(o-i,a-r),u=yt(t.controlPoint,0);return tt({x:s+_t(n,u.x,!1),y:c+_t(n,u.y,!1)},{x:s,y:c},l)}function rr(e,{x:t,y:n},{angle:r,adjust:i},a){!a||!a.display||(e.save(),e.translate(t,n),e.rotate(r),nr(e,0,-i,a),e.restore())}function ir(e,t,n,r){let{x:i,y:a,x2:o,y2:s,options:c}=t,{startOpts:l,endOpts:u,startAdjust:d,endAdjust:f}=er(t),p={x:i,y:a},m={x:o,y:s},h=qn(p,n,m,0),g=qn(p,n,m,1)-Ne,_=Gn(p,n,m,d/r),v=Gn(p,n,m,1-f/r),y=new Path2D;e.beginPath(),y.moveTo(_.x,_.y),y.quadraticCurveTo(n.x,n.y,v.x,v.y),e.shadowColor=c.borderShadowColor,e.stroke(y),t.path=y,t.ctx=e,rr(e,_,{angle:h,adjust:d},l),rr(e,v,{angle:g,adjust:f},u)}var ar=class extends re{inRange(e,t,n,r){let i=this.options.rotation,a=(this.options.borderWidth+this.options.hitTolerance)/2;if(n!==`x`&&n!==`y`)return or({x:e,y:t},this.getProps([`width`,`height`,`centerX`,`centerY`],r),i,a);let{x:o,y:s,x2:c,y2:l}=this.getProps([`x`,`y`,`x2`,`y2`],r),u=n===`y`?{start:s,end:l}:{start:o,end:c},d=tt({x:e,y:t},this.getCenterPoint(r),h(-i));return d[n]>=u.start-a-rt&&d[n]<=u.end+a+rt}getCenterPoint(e){return ut(this,e)}draw(e){let{width:t,height:n,centerX:r,centerY:i,options:a}=this;e.save(),Mt(e,this.getCenterPoint(),a.rotation),Pt(e,this.options),e.beginPath(),e.fillStyle=a.backgroundColor;let o=Nt(e,a);e.ellipse(r,i,n/2,t/2,Ne/2,0,2*Ne),e.fill(),o&&(e.shadowColor=a.borderShadowColor,e.stroke()),e.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(e,t){return ln(e,t)}};ar.id=`ellipseAnnotation`,ar.defaults={adjustScaleRange:!0,backgroundShadowColor:`transparent`,borderDash:[],borderDashOffset:0,borderShadowColor:`transparent`,borderWidth:1,display:!0,hitTolerance:0,init:void 0,label:Object.assign({},Pn.defaults.label),rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,xMax:void 0,xMin:void 0,xScaleID:void 0,yMax:void 0,yMin:void 0,yScaleID:void 0,z:0},ar.defaultRoutes={borderColor:`color`,backgroundColor:`color`},ar.descriptors={label:{_fallback:!0}};function or(e,t,n,r){let{width:i,height:a,centerX:o,centerY:s}=t,c=i/2,l=a/2;if(c<=0||l<=0)return!1;let u=h(n||0),d=Math.cos(u),f=Math.sin(u),p=(d*(e.x-o)+f*(e.y-s))**2,m=(f*(e.x-o)-d*(e.y-s))**2;return p/(c+r)**2+m/(l+r)**2<=1.0001}var sr=class extends re{inRange(e,t,n,r){let{x:i,y:a,x2:o,y2:s,width:c}=this.getProps([`x`,`y`,`x2`,`y2`,`width`],r),l=(this.options.borderWidth+this.options.hitTolerance)/2;return n!==`x`&&n!==`y`?st({x:e,y:t},this.getCenterPoint(r),c/2,l):at(n===`y`?{start:a,end:s,value:t}:{start:i,end:o,value:e},l)}getCenterPoint(e){return ut(this,e)}draw(e){let t=this.options,n=t.borderWidth;if(t.radius<.1)return;e.save(),e.fillStyle=t.backgroundColor,Pt(e,t);let r=Nt(e,t);zt(e,this,this.centerX,this.centerY),r&&!jt(t.pointStyle)&&(e.shadowColor=t.borderShadowColor,e.stroke()),e.restore(),t.borderWidth=n}resolveElementProperties(e,t){let n=sn(e,t);return n.initProperties=wt(e,n,t),n}};sr.id=`pointAnnotation`,sr.defaults={adjustScaleRange:!0,backgroundShadowColor:`transparent`,borderDash:[],borderDashOffset:0,borderShadowColor:`transparent`,borderWidth:1,display:!0,hitTolerance:0,init:void 0,pointStyle:`circle`,radius:10,rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,xAdjust:0,xMax:void 0,xMin:void 0,xScaleID:void 0,xValue:void 0,yAdjust:0,yMax:void 0,yMin:void 0,yScaleID:void 0,yValue:void 0,z:0},sr.defaultRoutes={borderColor:`color`,backgroundColor:`color`};var cr=class extends re{inRange(e,t,n,r){if(n!==`x`&&n!==`y`)return this.options.radius>=.1&&this.elements.length>1&&ur(this.elements,e,t,r);let i=tt({x:e,y:t},this.getCenterPoint(r),h(-this.options.rotation)),a=this.elements.map(e=>n===`y`?e.bY:e.bX),o=Math.min(...a),s=Math.max(...a);return i[n]>=o&&i[n]<=s}getCenterPoint(e){return ut(this,e)}draw(e){let{elements:t,options:n}=this;e.save(),e.beginPath(),e.fillStyle=n.backgroundColor,Pt(e,n);let r=Nt(e,n),i=!0;for(let n of t)i?(e.moveTo(n.x,n.y),i=!1):e.lineTo(n.x,n.y);e.closePath(),e.fill(),r&&(e.shadowColor=n.borderShadowColor,e.stroke()),e.restore()}resolveElementProperties(e,t){let n=sn(e,t),{sides:r,rotation:i}=t,a=[],o=2*Ne/r,s=i*fe;for(let i=0;i<r;i++,s+=o){let r=lr(n,t,s);r.initProperties=wt(e,n,t),a.push(r)}return n.elements=a,n}};cr.id=`polygonAnnotation`,cr.defaults={adjustScaleRange:!0,backgroundShadowColor:`transparent`,borderCapStyle:`butt`,borderDash:[],borderDashOffset:0,borderJoinStyle:`miter`,borderShadowColor:`transparent`,borderWidth:1,display:!0,hitTolerance:0,init:void 0,point:{radius:0},radius:10,rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,sides:3,xAdjust:0,xMax:void 0,xMin:void 0,xScaleID:void 0,xValue:void 0,yAdjust:0,yMax:void 0,yMin:void 0,yScaleID:void 0,yValue:void 0,z:0},cr.defaultRoutes={borderColor:`color`,backgroundColor:`color`};function lr({centerX:e,centerY:t},{radius:n,borderWidth:r,hitTolerance:i},a){let o=(r+i)/2,s=Math.sin(a),c=Math.cos(a),l={x:e+s*n,y:t-c*n};return{type:`point`,optionScope:`point`,properties:{x:l.x,y:l.y,centerX:l.x,centerY:l.y,bX:e+s*(n+o),bY:t-c*(n+o)}}}function ur(e,t,n,r){let i=!1,a=e[e.length-1].getProps([`bX`,`bY`],r);for(let o of e){let e=o.getProps([`bX`,`bY`],r);e.bY>n!=a.bY>n&&t<(a.bX-e.bX)*(n-e.bY)/(a.bY-e.bY)+e.bX&&(i=!i),a=e}return i}var dr={box:Pn,doughnutLabel:Fn,ellipse:ar,label:Rn,line:Jn,point:sr,polygon:cr};Object.keys(dr).forEach(e=>{Ae.describe(`elements.${dr[e].id}`,{_fallback:`plugins.annotation.common`})});var fr={update:Object.assign},pr=_n.concat(Cn),mr=(e,t)=>D(t)?Cr(e,t):e,hr=e=>e===`color`||e===`font`;function gr(e=`line`){return dr[e]?e:(console.warn(`Unknown annotation type: '${e}', defaulting to 'line'`),`line`)}function _r(e,t,n,r){let i=yr(e,n.animations,r),a=t.annotations,o=Tr(t.elements,a);for(let t=0;t<a.length;t++){let n=a[t],r=xr(o,t,n.type),s=n.setContext(wr(e,r,o,n)),c=r.resolveElementProperties(e,s);c.skip=vr(c),`elements`in c&&(br(r,c.elements,s,i),delete c.elements),Se(r.x)||Object.assign(r,c),Object.assign(r,c.initProperties),c.options=Sr(s),i.update(r,c)}}function vr(e){return isNaN(e.x)||isNaN(e.y)}function yr(e,t,n){return n===`reset`||n===`none`||n===`resize`?fr:new te(e,t)}function br(e,t,n,r){let i=e.elements||=[];i.length=t.length;for(let e=0;e<t.length;e++){let a=t[e],o=a.properties,s=xr(i,e,a.type,a.initProperties);o.options=Sr(n[a.optionScope].override(a)),r.update(s,o)}}function xr(e,t,n,r){let i=dr[gr(n)],a=e[t];return(!a||!(a instanceof i))&&(a=e[t]=new i,Object.assign(a,r)),a}function Sr(e){let t=dr[gr(e.type)],n={};n.id=e.id,n.type=e.type,n.drawTime=e.drawTime,Object.assign(n,Cr(e,t.defaults),Cr(e,t.defaultRoutes));for(let t of pr)n[t]=e[t];return n}function Cr(e,t){let n={};for(let r of Object.keys(t)){let i=t[r],a=e[r];hr(r)&&He(a)?n[r]=a.map(e=>mr(e,i)):n[r]=mr(a,i)}return n}function wr(e,t,n,r){return t.$context||=Object.assign(Object.create(e.getContext()),{element:t,get elements(){return n.filter(e=>e&&e.options)},id:r.id,type:`annotation`})}function Tr(e,t){let n=t.length,r=e.length;if(r<n){let t=n-r;e.splice(r,0,...Array(t))}else r>n&&e.splice(n,r-n);return e}var Er=`3.1.0`,Dr=new Map,Or=e=>e.type!==`doughnutLabel`,kr=_n.concat(Cn),Ar={id:`annotation`,version:Er,beforeRegister(){dt(`chart.js`,`4.0`,y.version)},afterRegister(){y.register(dr)},afterUnregister(){y.unregister(dr)},beforeInit(e){Dr.set(e,{annotations:[],elements:[],visibleElements:[],listeners:{},listened:!1,moveListened:!1,hooks:{},hooked:!1,hovered:[]})},beforeUpdate(e,t,n){let r=Dr.get(e),i=r.annotations=[],a=n.annotations;D(a)?Object.keys(a).forEach(e=>{let t=a[e];D(t)&&(t.id=e,i.push(t))}):He(a)&&i.push(...a),Dn(i.filter(Or),e.scales)},afterDataLimits(e,t){let n=Dr.get(e);En(e,t.scale,n.annotations.filter(Or).filter(e=>e.display&&e.adjustScaleRange))},afterUpdate(e,t,n){let r=Dr.get(e);vn(e,r,n),_r(e,r,n,t.mode),r.visibleElements=r.elements.filter(e=>!e.skip&&e.options.display),wn(e,r,n)},beforeDatasetsDraw(e,t,n){jr(e,`beforeDatasetsDraw`,n.clip)},afterDatasetsDraw(e,t,n){jr(e,`afterDatasetsDraw`,n.clip)},beforeDatasetDraw(e,t,n){jr(e,t.index,n.clip)},beforeDraw(e,t,n){jr(e,`beforeDraw`,n.clip)},afterDraw(e,t,n){jr(e,`afterDraw`,n.clip)},beforeEvent(e,t,n){yn(Dr.get(e),t.event,n)&&(t.changed=!0)},afterDestroy(e){Dr.delete(e)},getAnnotations(e){let t=Dr.get(e);return t?t.elements:[]},_getAnnotationElementsAtEventForMode(e,t,n){return Xe(e,t,n)},defaults:{animations:{numbers:{properties:[`x`,`y`,`x2`,`y2`,`width`,`height`,`centerX`,`centerY`,`pointX`,`pointY`,`radius`],type:`number`},colors:{properties:[`backgroundColor`,`borderColor`],type:`color`}},clip:!0,interaction:{mode:void 0,axis:void 0,intersect:void 0},common:{drawTime:`afterDatasetsDraw`,init:!1,label:{}}},descriptors:{_indexable:!1,_scriptable:e=>!kr.includes(e)&&e!==`init`,annotations:{_allKeys:!1,_fallback:(e,t)=>`elements.${dr[gr(t.type)].id}`},interaction:{_fallback:!0},common:{label:{_indexable:hr,_fallback:!0},_indexable:hr}},additionalOptionScopes:[``]};function jr(e,t,n){let{ctx:r,chartArea:i}=e,a=Dr.get(e);n&&Fe(r,i);let o=Mr(a.visibleElements,t).sort((e,t)=>e.element.options.z-t.element.options.z);for(let e of o)Nr(r,i,a,e);n&&C(r)}function Mr(e,t){let n=[];for(let r of e)if(r.options.drawTime===t&&n.push({element:r,main:!0}),r.elements&&r.elements.length)for(let e of r.elements)e.options.display&&e.options.drawTime===t&&n.push({element:e});return n}function Nr(e,t,n,r){let i=r.element;r.main?(Tn(n,i,`beforeDraw`),i.draw(e,t),Tn(n,i,`afterDraw`)):i.draw(e,t)}function Pr(e){let t=null;return()=>(t??=e(),t)}function Fr(e,t){return e.filter(e=>e!==t)}function Ir(e,t){let n=new Set,r=e=>n.add(e);e.forEach(r),t.forEach(r);let i=[];return n.forEach(e=>i.push(e)),i}var Lr=class{enter(e){let t=this.entered.length;return this.entered=Ir(this.entered.filter(t=>this.isNodeInDocument(t)&&(!t.contains||t.contains(e))),[e]),t===0&&this.entered.length>0}leave(e){let t=this.entered.length;return this.entered=Fr(this.entered.filter(this.isNodeInDocument),e),t>0&&this.entered.length===0}reset(){this.entered=[]}constructor(e){this.entered=[],this.isNodeInDocument=e}},Rr=class{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(e=>{Object.defineProperty(this.item,e,{configurable:!0,enumerable:!0,get(){return console.warn(`Browser doesn't allow reading "${e}" until the drop event.`),null}})})}loadDataTransfer(e){if(e){let t={};Object.keys(this.config.exposeProperties).forEach(n=>{let r=this.config.exposeProperties[n];r!=null&&(t[n]={value:r(e,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,t)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(e,t){return t===e.getSourceId()}endDrag(){}constructor(e){this.config=e,this.item={},this.initializeExposedProperties()}},zr=t({FILE:()=>Br,HTML:()=>Ur,TEXT:()=>Hr,URL:()=>Vr});const Br=`__NATIVE_FILE__`,Vr=`__NATIVE_URL__`,Hr=`__NATIVE_TEXT__`,Ur=`__NATIVE_HTML__`;function Wr(e,t,n){return t.reduce((t,n)=>t||e.getData(n),``)??n}const Gr={[Br]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:[`Files`]},[Ur]:{exposeProperties:{html:(e,t)=>Wr(e,t,``),dataTransfer:e=>e},matchesTypes:[`Html`,`text/html`]},[Vr]:{exposeProperties:{urls:(e,t)=>Wr(e,t,``).split(`
|
|
1
|
+
import{A as e,D as t,E as n,O as r,T as i,i as a,k as o}from"./iframe-DvGneWFZ.js";import{t as s}from"./react-dom-DuTm0_Xz.js";import{t as c}from"./jsx-runtime-S4TgXXQD.js";import{$ as l,At as u,Cn as d,Ct as f,Dn as p,Dt as m,En as h,Et as g,Ft as _,It as v,Jt as y,Lt as b,Mt as x,Nt as S,On as C,P as w,Pt as T,Q as E,Sn as D,St as O,T as k,Tn as A,Tt as ee,U as j,Wt as te,X as ne,Xt as re,Y as ie,Yt as ae,Z as oe,_ as se,_n as M,_t as ce,an as le,bn as ue,bt as de,cn as fe,ct as pe,d as me,dn as he,dt as ge,et as _e,fn as ve,ft as ye,gn as be,gt as xe,hn as Se,ht as Ce,it as we,jt as Te,kn as Ee,kt as De,ln as Oe,lt as ke,mn as Ae,mt as je,nt as Me,on as Ne,ot as Pe,pn as Fe,pt as Ie,rt as Le,sn as Re,st as ze,t as Be,un as Ve,vn as He,vt as Ue,wn as We,wt as Ge,xn as Ke,xt as qe,yn as Je}from"./legend-context-DrT75Hl_.js";var Ye={modes:{point(e,t){return $e(e,t,{intersect:!0})},nearest(e,t,n){return et(e,t,n)},x(e,t,n){return $e(e,t,{intersect:n.intersect,axis:`x`})},y(e,t,n){return $e(e,t,{intersect:n.intersect,axis:`y`})}}};function Xe(e,t,n){return(Ye.modes[n.mode]||Ye.modes.nearest)(e,t,n)}function Ze(e,t,n){return n!==`x`&&n!==`y`?e.inRange(t.x,t.y,`x`,!0)||e.inRange(t.x,t.y,`y`,!0):e.inRange(t.x,t.y,n,!0)}function Qe(e,t,n){return n===`x`?{x:e.x,y:t.y}:n===`y`?{x:t.x,y:e.y}:t}function $e(e,t,n){return e.filter(e=>n.intersect?e.inRange(t.x,t.y):Ze(e,t,n.axis))}function et(e,t,n){let r=1/0;return $e(e,t,n).reduce((e,i)=>{let a=be(t,Qe(t,i.getCenterPoint(),n.axis));return a<r?(e=[i],r=a):a===r&&e.push(i),e},[]).sort((e,t)=>e._index-t._index).slice(0,1)}function tt(e,t,n){let r=Math.cos(n),i=Math.sin(n),a=t.x,o=t.y;return{x:a+r*(e.x-a)-i*(e.y-o),y:o+i*(e.x-a)+r*(e.y-o)}}var nt=(e,t)=>t>e||e.length>t.length&&e.slice(0,t.length)===t,rt=.001,it=(e,t,n)=>Math.min(n,Math.max(t,e)),at=(e,t)=>e.value>=e.start-t&&e.value<=e.end+t;function ot(e,t,n){for(let r of Object.keys(e))e[r]=it(e[r],t,n);return e}function st(e,t,n,r){return!e||!t||n<=0?!1:(e.x-t.x)**2+(e.y-t.y)**2<=(n+r)**2}function ct(e,{x:t,y:n,x2:r,y2:i},a,{borderWidth:o,hitTolerance:s}){let c=(o+s)/2,l=e.x>=t-c-rt&&e.x<=r+c+rt,u=e.y>=n-c-rt&&e.y<=i+c+rt;return a===`x`?l:(a===`y`||l)&&u}function lt(e,{rect:t,center:n},r,{rotation:i,borderWidth:a,hitTolerance:o}){return ct(tt(e,n,h(-i)),t,r,{borderWidth:a,hitTolerance:o})}function ut(e,t){let{centerX:n,centerY:r}=e.getProps([`centerX`,`centerY`],t);return{x:n,y:r}}function dt(e,t,n,r=!0){let i=n.split(`.`),a=0;for(let o of t.split(`.`)){let s=i[a++];if(parseInt(o,10)<parseInt(s,10))break;if(nt(s,o)){if(r)throw Error(`${e} v${n} is not supported. v${t} or newer is required.`);return!1}}return!0}var ft=e=>typeof e==`string`&&e.endsWith(`%`),pt=e=>parseFloat(e)/100,mt=e=>it(pt(e),0,1),ht=(e,t)=>({x:e,y:t,x2:e,y2:t,width:0,height:0}),eee={box:e=>ht(e.centerX,e.centerY),doughnutLabel:e=>ht(e.centerX,e.centerY),ellipse:e=>({centerX:e.centerX,centerY:e.centerX,radius:0,width:0,height:0}),label:e=>ht(e.centerX,e.centerY),line:e=>ht(e.x,e.y),point:e=>({centerX:e.centerX,centerY:e.centerY,radius:0,width:0,height:0}),polygon:e=>ht(e.centerX,e.centerY)};function gt(e,t){return t===`start`?0:t===`end`?e:ft(t)?mt(t)*e:e/2}function _t(e,t,n=!0){return typeof t==`number`?t:ft(t)?(n?mt(t):pt(t))*e:e}function tee(e,t){let{x:n,width:r}=e,i=t.textAlign;return i===`center`?n+r/2:i===`end`||i===`right`?n+r:n}function vt(e,t,{borderWidth:n,position:r,xAdjust:i,yAdjust:a},o){let s=D(o),c=t.width+(s?o.width:0)+n,l=t.height+(s?o.height:0)+n,u=yt(r),d=Ct(e.x,c,i,u.x),f=Ct(e.y,l,a,u.y);return{x:d,y:f,x2:d+c,y2:f+l,width:c,height:l,centerX:d+c/2,centerY:f+l/2}}function yt(e,t=`center`){return D(e)?{x:Ee(e.x,t),y:Ee(e.y,t)}:(e=Ee(e,t),{x:e,y:e})}var bt=(e,t)=>e&&e.autoFit&&t<1;function xt(e,t){let n=e.font,r=He(n)?n:[n];return bt(e,t)?r.map(function(e){let n=We(e);return n.size=Math.floor(e.size*t),n.lineHeight=e.lineHeight,We(n)}):r.map(e=>We(e))}function St(e){return e&&(Se(e.xValue)||Se(e.yValue))}function Ct(e,t,n=0,r){return e-gt(t,r)+n}function wt(e,t,n){let r=n.init;if(r)return r===!0?Et(t,n):Dt(e,t,n)}function Tt(e,t,n){let r=!1;return t.forEach(t=>{Je(e[t])?(r=!0,n[t]=e[t]):Se(n[t])&&delete n[t]}),r}function Et(e,t){return eee[t.type||`line`](e)}function Dt(e,t,n){let r=ve(n.init,[{chart:e,properties:t,options:n}]);if(r===!0)return Et(t,n);if(D(r))return r}var Ot=new Map,kt=e=>isNaN(e)||e<=0,At=e=>e.reduce(function(e,t){return e+=t.string,e},``);function jt(e){if(e&&typeof e==`object`){let t=e.toString();return t===`[object HTMLImageElement]`||t===`[object HTMLCanvasElement]`}}function Mt(e,{x:t,y:n},r){r&&(e.translate(t,n),e.rotate(h(r)),e.translate(-t,-n))}function Nt(e,t){if(t&&t.borderWidth)return e.lineCap=t.borderCapStyle||`butt`,e.setLineDash(t.borderDash),e.lineDashOffset=t.borderDashOffset,e.lineJoin=t.borderJoinStyle||`miter`,e.lineWidth=t.borderWidth,e.strokeStyle=t.borderColor,!0}function Pt(e,t){e.shadowColor=t.backgroundShadowColor,e.shadowBlur=t.shadowBlur,e.shadowOffsetX=t.shadowOffsetX,e.shadowOffsetY=t.shadowOffsetY}function Ft(e,t){let n=t.content;if(jt(n))return{width:_t(n.width,t.width),height:_t(n.height,t.height)};let r=xt(t),i=t.textStrokeWidth,a=He(n)?n:[n],o=a.join()+At(r)+i+(e._measureText?`-spriting`:``);return Ot.has(o)||Ot.set(o,Vt(e,a,r,i)),Ot.get(o)}function It(e,t,n){let{x:r,y:i,width:a,height:o}=t;e.save(),Pt(e,n);let s=Nt(e,n);e.fillStyle=n.backgroundColor,e.beginPath(),he(e,{x:r,y:i,w:a,h:o,radius:ot(p(n.borderRadius),0,Math.min(a,o)/2)}),e.closePath(),e.fill(),s&&(e.shadowColor=n.borderShadowColor,e.stroke()),e.restore()}function Lt(e,t,n,r){let i=n.content;if(jt(i)){e.save(),e.globalAlpha=Wt(n.opacity,i.style.opacity),e.drawImage(i,t.x,t.y,t.width,t.height),e.restore();return}let a=He(i)?i:[i],o=xt(n,r),s=n.color,c=He(s)?s:[s],l=tee(t,n),u=t.y+n.textStrokeWidth/2;e.save(),e.textBaseline=`middle`,e.textAlign=n.textAlign,Rt(e,n)&&Ht(e,{x:l,y:u},a,o),Ut(e,{x:l,y:u},a,{fonts:o,colors:c}),e.restore()}function Rt(e,t){if(t.textStrokeWidth>0)return e.lineJoin=`round`,e.miterLimit=2,e.lineWidth=t.textStrokeWidth,e.strokeStyle=t.textStrokeColor,!0}function zt(e,t,n,r){let{radius:i,options:a}=t,o=a.pointStyle,s=a.rotation,c=(s||0)*fe;if(jt(o)){e.save(),e.translate(n,r),e.rotate(c),e.drawImage(o,-o.width/2,-o.height/2,o.width,o.height),e.restore();return}kt(i)||Bt(e,{x:n,y:r,radius:i,rotation:s,style:o,rad:c})}function Bt(e,{x:t,y:n,radius:r,rotation:i,style:a,rad:o}){let s,c,l,u;switch(e.beginPath(),a){default:e.arc(t,n,r,0,Oe),e.closePath();break;case`triangle`:e.moveTo(t+Math.sin(o)*r,n-Math.cos(o)*r),o+=Ve,e.lineTo(t+Math.sin(o)*r,n-Math.cos(o)*r),o+=Ve,e.lineTo(t+Math.sin(o)*r,n-Math.cos(o)*r),e.closePath();break;case`rectRounded`:u=r*.516,l=r-u,s=Math.cos(o+Re)*l,c=Math.sin(o+Re)*l,e.arc(t-s,n-c,u,o-Ne,o-le),e.arc(t+c,n-s,u,o-le,o),e.arc(t+s,n+c,u,o,o+le),e.arc(t-c,n+s,u,o+le,o+Ne),e.closePath();break;case`rect`:if(!i){l=Math.SQRT1_2*r,e.rect(t-l,n-l,2*l,2*l);break}o+=Re;case`rectRot`:s=Math.cos(o)*r,c=Math.sin(o)*r,e.moveTo(t-s,n-c),e.lineTo(t+c,n-s),e.lineTo(t+s,n+c),e.lineTo(t-c,n+s),e.closePath();break;case`crossRot`:o+=Re;case`cross`:s=Math.cos(o)*r,c=Math.sin(o)*r,e.moveTo(t-s,n-c),e.lineTo(t+s,n+c),e.moveTo(t+c,n-s),e.lineTo(t-c,n+s);break;case`star`:s=Math.cos(o)*r,c=Math.sin(o)*r,e.moveTo(t-s,n-c),e.lineTo(t+s,n+c),e.moveTo(t+c,n-s),e.lineTo(t-c,n+s),o+=Re,s=Math.cos(o)*r,c=Math.sin(o)*r,e.moveTo(t-s,n-c),e.lineTo(t+s,n+c),e.moveTo(t+c,n-s),e.lineTo(t-c,n+s);break;case`line`:s=Math.cos(o)*r,c=Math.sin(o)*r,e.moveTo(t-s,n-c),e.lineTo(t+s,n+c);break;case`dash`:e.moveTo(t,n),e.lineTo(t+Math.cos(o)*r,n+Math.sin(o)*r);break}e.fill()}function Vt(e,t,n,r){e.save();let i=t.length,a=0,o=r;for(let s=0;s<i;s++){let i=n[Math.min(s,n.length-1)];e.font=i.string;let c=t[s];a=Math.max(a,e.measureText(c).width+r),o+=i.lineHeight}return e.restore(),{width:a,height:o}}function Ht(e,{x:t,y:n},r,i){e.beginPath();let a=0;r.forEach(function(r,o){let s=i[Math.min(o,i.length-1)],c=s.lineHeight;e.font=s.string,e.strokeText(r,t,n+c/2+a),a+=c}),e.stroke()}function Ut(e,{x:t,y:n},r,{fonts:i,colors:a}){let o=0;r.forEach(function(r,s){let c=a[Math.min(s,a.length-1)],l=i[Math.min(s,i.length-1)],u=l.lineHeight;e.beginPath(),e.font=l.string,e.fillStyle=c,e.fillText(r,t,n+u/2+o),o+=u,e.fill()})}function Wt(e,t){let n=ue(e)?e:t;return ue(n)?it(n,0,1):1}var Gt=[`left`,`bottom`,`top`,`right`];function Kt(e,t){let{pointX:n,pointY:r,options:i}=t,a=i.callout,o=a&&a.display&&Zt(t,a);if(!o||$t(t,a,o))return;if(e.save(),e.beginPath(),!Nt(e,a))return e.restore();let{separatorStart:s,separatorEnd:c}=qt(t,o),{sideStart:l,sideEnd:u}=Yt(t,o,s);(a.margin>0||i.borderWidth===0)&&(e.moveTo(s.x,s.y),e.lineTo(c.x,c.y)),e.moveTo(l.x,l.y),e.lineTo(u.x,u.y);let d=tt({x:n,y:r},t.getCenterPoint(),h(-t.rotation));e.lineTo(d.x,d.y),e.stroke(),e.restore()}function qt(e,t){let{x:n,y:r,x2:i,y2:a}=e,o=Jt(e,t),s,c;return t===`left`||t===`right`?(s={x:n+o,y:r},c={x:s.x,y:a}):(s={x:n,y:r+o},c={x:i,y:s.y}),{separatorStart:s,separatorEnd:c}}function Jt(e,t){let{width:n,height:r,options:i}=e,a=i.callout.margin+i.borderWidth/2;return t===`right`?n+a:t===`bottom`?r+a:-a}function Yt(e,t,n){let{y:r,width:i,height:a,options:o}=e,s=o.callout.start,c=Xt(t,o.callout),l,u;return t===`left`||t===`right`?(l={x:n.x,y:r+_t(a,s)},u={x:l.x+c,y:l.y}):(l={x:n.x+_t(i,s),y:n.y},u={x:l.x,y:l.y+c}),{sideStart:l,sideEnd:u}}function Xt(e,t){let n=t.side;return e===`left`||e===`top`?-n:n}function Zt(e,t){let n=t.position;return Gt.includes(n)?n:Qt(e,t)}function Qt(e,t){let{x:n,y:r,x2:i,y2:a,width:o,height:s,pointX:c,pointY:l,centerX:u,centerY:d,rotation:f}=e,p={x:u,y:d},m=t.start,g=_t(o,m),_=_t(s,m),v=[n,n+g,n+g,i],y=[r+_,a,r,a],b=[];for(let e=0;e<4;e++){let t=tt({x:v[e],y:y[e]},p,h(f));b.push({position:Gt[e],distance:be(t,{x:c,y:l})})}return b.sort((e,t)=>e.distance-t.distance)[0].position}function $t(e,t,n){let{pointX:r,pointY:i}=e,a=t.margin,o=r,s=i;return n===`left`?o+=a:n===`right`?o-=a:n===`top`?s+=a:n===`bottom`&&(s-=a),e.inRange(o,s)}var en={xScaleID:{min:`xMin`,max:`xMax`,start:`left`,end:`right`,startProp:`x`,endProp:`x2`},yScaleID:{min:`yMin`,max:`yMax`,start:`bottom`,end:`top`,startProp:`y`,endProp:`y2`}};function tn(e,t,n){return t=typeof t==`number`?t:e.parse(t),Ke(t)?e.getPixelForValue(t):n}function nn(e,t,n){let r=t[n];if(r||n===`scaleID`)return r;let i=n.charAt(0),a=Object.values(e).filter(e=>e.axis&&e.axis===i);return a.length?a[0].id:i}function rn(e,t){if(e){let n=e.options.reverse;return{start:tn(e,t.min,n?t.end:t.start),end:tn(e,t.max,n?t.start:t.end)}}}function an(e,t){let{chartArea:n,scales:r}=e,i=r[nn(r,t,`xScaleID`)],a=r[nn(r,t,`yScaleID`)],o=n.width/2,s=n.height/2;return i&&(o=tn(i,t.xValue,i.left+i.width/2)),a&&(s=tn(a,t.yValue,a.top+a.height/2)),{x:o,y:s}}function on(e,t){let n=e.scales,r=n[nn(n,t,`xScaleID`)],i=n[nn(n,t,`yScaleID`)];if(!r&&!i)return{};let{left:a,right:o}=r||e.chartArea,{top:s,bottom:c}=i||e.chartArea,l=dn(r,{min:t.xMin,max:t.xMax,start:a,end:o});a=l.start,o=l.end;let u=dn(i,{min:t.yMin,max:t.yMax,start:c,end:s});return s=u.start,c=u.end,{x:a,y:s,x2:o,y2:c,width:o-a,height:c-s,centerX:a+(o-a)/2,centerY:s+(c-s)/2}}function sn(e,t){if(!St(t)){let n=on(e,t),r=t.radius;(!r||isNaN(r))&&(r=Math.min(n.width,n.height)/2,t.radius=r);let i=r*2,a=n.centerX+t.xAdjust,o=n.centerY+t.yAdjust;return{x:a-r,y:o-r,x2:a+r,y2:o+r,centerX:a,centerY:o,width:i,height:i,radius:r}}return un(e,t)}function cn(e,t){let{scales:n,chartArea:r}=e,i=n[t.scaleID],a={x:r.left,y:r.top,x2:r.right,y2:r.bottom};return i?fn(i,a,t):pn(n,a,t),a}function ln(e,t){let n=on(e,t);return n.initProperties=wt(e,n,t),n.elements=[{type:`label`,optionScope:`label`,properties:ree(e,n,t),initProperties:n.initProperties}],n}function un(e,t){let n=an(e,t),r=t.radius*2;return{x:n.x-t.radius+t.xAdjust,y:n.y-t.radius+t.yAdjust,x2:n.x+t.radius+t.xAdjust,y2:n.y+t.radius+t.yAdjust,centerX:n.x+t.xAdjust,centerY:n.y+t.yAdjust,radius:t.radius,width:r,height:r}}function dn(e,t){let n=rn(e,t)||t;return{start:Math.min(n.start,n.end),end:Math.max(n.start,n.end)}}function fn(e,t,n){let r=tn(e,n.value,NaN),i=tn(e,n.endValue,r);e.isHorizontal()?(t.x=r,t.x2=i):(t.y=r,t.y2=i)}function pn(e,t,n){for(let r of Object.keys(en)){let i=e[nn(e,n,r)];if(i){let{min:e,max:a,start:o,end:s,startProp:c,endProp:l}=en[r],u=rn(i,{min:n[e],max:n[a],start:i[o],end:i[s]});t[c]=u.start,t[l]=u.end}}}function mn({properties:e,options:t},n,r,i){let{x:a,x2:o,width:s}=e;return hn({start:a,end:o,size:s,borderWidth:t.borderWidth},{position:r.x,padding:{start:i.left,end:i.right},adjust:t.label.xAdjust,size:n.width})}function nee({properties:e,options:t},n,r,i){let{y:a,y2:o,height:s}=e;return hn({start:a,end:o,size:s,borderWidth:t.borderWidth},{position:r.y,padding:{start:i.top,end:i.bottom},adjust:t.label.yAdjust,size:n.height})}function hn(e,t){let{start:n,end:r,borderWidth:i}=e,{position:a,padding:{start:o,end:s},adjust:c}=t,l=r-i-n-o-s-t.size;return n+i/2+c+gt(l,a)}function ree(e,t,n){let r=n.label;r.backgroundColor=`transparent`,r.callout.display=!1;let i=yt(r.position),a=A(r.padding),o=Ft(e.ctx,r),s=mn({properties:t,options:n},o,i,a),c=nee({properties:t,options:n},o,i,a),l=o.width+a.width,u=o.height+a.height;return{x:s,y:c,x2:s+l,y2:c+u,width:l,height:u,centerX:s+l/2,centerY:c+u/2,rotation:r.rotation}}var gn=[`enter`,`leave`],_n=gn.concat(`click`);function vn(e,t,n){t.listened=Tt(n,_n,t.listeners),t.moveListened=!1,gn.forEach(e=>{Je(n[e])&&(t.moveListened=!0)}),(!t.listened||!t.moveListened)&&t.annotations.forEach(e=>{!t.listened&&Je(e.click)&&(t.listened=!0),t.moveListened||gn.forEach(n=>{Je(e[n])&&(t.listened=!0,t.moveListened=!0)})})}function yn(e,t,n){if(e.listened)switch(t.type){case`mousemove`:case`mouseout`:return bn(e,t,n);case`click`:return iee(e,t,n)}}function bn(e,t,n){if(!e.moveListened)return;let r;r=t.type===`mousemove`?Xe(e.visibleElements,t,n.interaction):[];let i=e.hovered;e.hovered=r;let a={state:e,event:t},o=xn(a,`leave`,i,r);return xn(a,`enter`,r,i)||o}function xn({state:e,event:t},n,r,i){let a;for(let o of r)i.indexOf(o)<0&&(a=Sn(o.options[n]||e.listeners[n],o,t)||a);return a}function iee(e,t,n){let r=e.listeners,i=Xe(e.visibleElements,t,n.interaction),a;for(let e of i)a=Sn(e.options.click||r.click,e,t)||a;return a}function Sn(e,t,n){return ve(e,[t.$context,n])===!0}var Cn=[`afterDraw`,`beforeDraw`];function wn(e,t,n){let r=t.visibleElements;t.hooked=Tt(n,Cn,t.hooks),t.hooked||r.forEach(e=>{t.hooked||Cn.forEach(n=>{Je(e.options[n])&&(t.hooked=!0)})})}function Tn(e,t,n){if(e.hooked)return ve(t.options[n]||e.hooks[n],[t.$context])}function En(e,t,n){let r=Mn(e.scales,t,n),i=On(t,r,`min`,`suggestedMin`);i=On(t,r,`max`,`suggestedMax`)||i,i&&Je(t.handleTickRangeOptions)&&t.handleTickRangeOptions()}function Dn(e,t){for(let n of e)An(n,t)}function On(e,t,n,r){if(Ke(t[n])&&!kn(e.options,n,r)){let r=e[n]!==t[n];return e[n]=t[n],r}}function kn(e,t,n){return Se(e[t])||Se(e[n])}function An(e,t){for(let n of[`scaleID`,`xScaleID`,`yScaleID`]){let r=nn(t,e,n);r&&!t[r]&&jn(e,n)&&console.warn(`No scale found with id '${r}' for annotation '${e.id}'`)}}function jn(e,t){if(t===`scaleID`)return!0;let n=t.charAt(0);for(let t of[`Min`,`Max`,`Value`])if(Se(e[n+t]))return!0;return!1}function Mn(e,t,n){let r=t.axis,i=t.id,a=r+`ScaleID`,o={min:Ee(t.min,-1/0),max:Ee(t.max,1/0)};for(let s of n)s.scaleID===i?Nn(s,t,[`value`,`endValue`],o):nn(e,s,a)===i&&Nn(s,t,[r+`Min`,r+`Max`,r+`Value`],o);return o}function Nn(e,t,n,r){for(let i of n){let n=e[i];if(Se(n)){let e=t.parse(n);r.min=Math.min(r.min,e),r.max=Math.max(r.max,e)}}}var Pn=class extends re{inRange(e,t,n,r){let{x:i,y:a}=tt({x:e,y:t},this.getCenterPoint(r),h(-this.options.rotation));return ct({x:i,y:a},this.getProps([`x`,`y`,`x2`,`y2`],r),n,this.options)}getCenterPoint(e){return ut(this,e)}draw(e){e.save(),Mt(e,this.getCenterPoint(),this.options.rotation),It(e,this,this.options),e.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(e,t){return ln(e,t)}};Pn.id=`boxAnnotation`,Pn.defaults={adjustScaleRange:!0,backgroundShadowColor:`transparent`,borderCapStyle:`butt`,borderDash:[],borderDashOffset:0,borderJoinStyle:`miter`,borderRadius:0,borderShadowColor:`transparent`,borderWidth:1,display:!0,init:void 0,hitTolerance:0,label:{backgroundColor:`transparent`,borderWidth:0,callout:{display:!1},color:`black`,content:null,display:!1,drawTime:void 0,font:{family:void 0,lineHeight:void 0,size:void 0,style:void 0,weight:`bold`},height:void 0,hitTolerance:void 0,opacity:void 0,padding:6,position:`center`,rotation:void 0,textAlign:`start`,textStrokeColor:void 0,textStrokeWidth:0,width:void 0,xAdjust:0,yAdjust:0,z:void 0},rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,xMax:void 0,xMin:void 0,xScaleID:void 0,yMax:void 0,yMin:void 0,yScaleID:void 0,z:0},Pn.defaultRoutes={borderColor:`color`,backgroundColor:`color`},Pn.descriptors={label:{_fallback:!0}};var Fn=class extends re{inRange(e,t,n,r){return lt({x:e,y:t},{rect:this.getProps([`x`,`y`,`x2`,`y2`],r),center:this.getCenterPoint(r)},n,{rotation:this.rotation,borderWidth:0,hitTolerance:this.options.hitTolerance})}getCenterPoint(e){return ut(this,e)}draw(e){let t=this.options;!t.display||!t.content||(cee(e,this),e.save(),Mt(e,this.getCenterPoint(),this.rotation),Lt(e,this,t,this._fitRatio),e.restore())}resolveElementProperties(e,t){let n=In(e,t);if(!n)return{};let{controllerMeta:r,point:i,radius:a}=aee(e,t,n),o=Ft(e.ctx,t),s=oee(o,a);bt(t,s)&&(o={width:o.width*s,height:o.height*s});let{position:c,xAdjust:l,yAdjust:u}=t,d=vt(i,o,{borderWidth:0,position:c,xAdjust:l,yAdjust:u});return{initProperties:wt(e,d,t),...d,...r,rotation:t.rotation,_fitRatio:s}}};Fn.id=`doughnutLabelAnnotation`,Fn.defaults={autoFit:!0,autoHide:!0,backgroundColor:`transparent`,backgroundShadowColor:`transparent`,borderColor:`transparent`,borderDash:[],borderDashOffset:0,borderJoinStyle:`miter`,borderShadowColor:`transparent`,borderWidth:0,color:`black`,content:null,display:!0,font:{family:void 0,lineHeight:void 0,size:void 0,style:void 0,weight:void 0},height:void 0,hitTolerance:0,init:void 0,opacity:void 0,position:`center`,rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,spacing:1,textAlign:`center`,textStrokeColor:void 0,textStrokeWidth:0,width:void 0,xAdjust:0,yAdjust:0},Fn.defaultRoutes={};function In(e,t){return e.getSortedVisibleDatasetMetas().reduce(function(n,r){let i=r.controller;return i instanceof ae&&Ln(e,t,r.data)&&(!n||i.innerRadius<n.controller.innerRadius)&&i.options.circumference>=90?r:n},void 0)}function Ln(e,t,n){if(!t.autoHide)return!0;for(let t=0;t<n.length;t++)if(!n[t].hidden&&e.getDataVisibility(t))return!0}function aee({chartArea:e},t,n){let{left:r,top:i,right:a,bottom:o}=e,{innerRadius:s,offsetX:c,offsetY:l}=n.controller,u=(r+a)/2+c,d=(i+o)/2+l,f={left:Math.max(u-s,r),right:Math.min(u+s,a),top:Math.max(d-s,i),bottom:Math.min(d+s,o)},p={x:(f.left+f.right)/2,y:(f.top+f.bottom)/2},m=t.spacing+t.borderWidth/2,h=s-m,g=p.y>d;return{controllerMeta:{_centerX:u,_centerY:d,_radius:h,_counterclockwise:g,...see(g?i+m:o-m,u,d,h)},point:p,radius:Math.min(s,Math.min(f.right-f.left,f.bottom-f.top)/2)}}function oee({width:e,height:t},n){let r=Math.sqrt(e**2+t**2);return n*2/r}function see(e,t,n,r){let i=(n-e)**2,a=r**2,o=t*-2,s=t**2+i-a,c=o**2-4*s;if(c<=0)return{_startAngle:0,_endAngle:Oe};let l=(-o-Math.sqrt(c))/2,u=(-o+Math.sqrt(c))/2;return{_startAngle:M({x:t,y:n},{x:l,y:e}).angle,_endAngle:M({x:t,y:n},{x:u,y:e}).angle}}function cee(e,t){let{_centerX:n,_centerY:r,_radius:i,_startAngle:a,_endAngle:o,_counterclockwise:s,options:c}=t;e.save();let l=Nt(e,c);e.fillStyle=c.backgroundColor,e.beginPath(),e.arc(n,r,i,a,o,s),e.closePath(),e.fill(),l&&e.stroke(),e.restore()}var Rn=class extends re{inRange(e,t,n,r){return lt({x:e,y:t},{rect:this.getProps([`x`,`y`,`x2`,`y2`],r),center:this.getCenterPoint(r)},n,{rotation:this.rotation,borderWidth:this.options.borderWidth,hitTolerance:this.options.hitTolerance})}getCenterPoint(e){return ut(this,e)}draw(e){let t=this.options,n=!Se(this._visible)||this._visible;!t.display||!t.content||!n||(e.save(),Mt(e,this.getCenterPoint(),this.rotation),Kt(e,this),It(e,this,t),Lt(e,lee(this),t),e.restore())}resolveElementProperties(e,t){let n;if(St(t))n=an(e,t);else{let{centerX:r,centerY:i}=on(e,t);n={x:r,y:i}}let r=A(t.padding),i=Ft(e.ctx,t),a=vt(n,i,t,r);return{initProperties:wt(e,a,t),pointX:n.x,pointY:n.y,...a,rotation:t.rotation}}};Rn.id=`labelAnnotation`,Rn.defaults={adjustScaleRange:!0,backgroundColor:`transparent`,backgroundShadowColor:`transparent`,borderCapStyle:`butt`,borderDash:[],borderDashOffset:0,borderJoinStyle:`miter`,borderRadius:0,borderShadowColor:`transparent`,borderWidth:0,callout:{borderCapStyle:`butt`,borderColor:void 0,borderDash:[],borderDashOffset:0,borderJoinStyle:`miter`,borderWidth:1,display:!1,margin:5,position:`auto`,side:5,start:`50%`},color:`black`,content:null,display:!0,font:{family:void 0,lineHeight:void 0,size:void 0,style:void 0,weight:void 0},height:void 0,hitTolerance:0,init:void 0,opacity:void 0,padding:6,position:`center`,rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,textAlign:`center`,textStrokeColor:void 0,textStrokeWidth:0,width:void 0,xAdjust:0,xMax:void 0,xMin:void 0,xScaleID:void 0,xValue:void 0,yAdjust:0,yMax:void 0,yMin:void 0,yScaleID:void 0,yValue:void 0,z:0},Rn.defaultRoutes={borderColor:`color`};function lee({x:e,y:t,width:n,height:r,options:i}){let a=i.borderWidth/2,o=A(i.padding);return{x:e+o.left+a,y:t+o.top+a,width:n-o.left-o.right-i.borderWidth,height:r-o.top-o.bottom-i.borderWidth}}var zn=(e,t,n)=>({x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}),Bn=(e,t,n)=>zn(t,n,Math.abs((e-t.y)/(n.y-t.y))).x,Vn=(e,t,n)=>zn(t,n,Math.abs((e-t.x)/(n.x-t.x))).y,Hn=e=>e*e,Un=(e,t,{x:n,y:r,x2:i,y2:a},o)=>o===`y`?{start:Math.min(r,a),end:Math.max(r,a),value:t}:{start:Math.min(n,i),end:Math.max(n,i),value:e},Wn=(e,t,n,r)=>(1-r)*(1-r)*e+2*(1-r)*r*t+r*r*n,Gn=(e,t,n,r)=>({x:Wn(e.x,t.x,n.x,r),y:Wn(e.y,t.y,n.y,r)}),Kn=(e,t,n,r)=>2*(1-r)*(t-e)+2*r*(n-t),qn=(e,t,n,r)=>-Math.atan2(Kn(e.x,t.x,n.x,r),Kn(e.y,t.y,n.y,r))+.5*Ne,Jn=class extends re{inRange(e,t,n,r){let i=(this.options.borderWidth+this.options.hitTolerance)/2;if(n!==`x`&&n!==`y`){let n={mouseX:e,mouseY:t},{path:a,ctx:o}=this;if(a){Nt(o,this.options),o.lineWidth+=this.options.hitTolerance;let{chart:i}=this.$context,s=e*i.currentDevicePixelRatio,c=t*i.currentDevicePixelRatio,l=o.isPointInStroke(a,s,c)||Zn(this,n,r);return o.restore(),l}let s=Hn(i);return pee(this,n,s,r)||Zn(this,n,r)}return uee(this,{mouseX:e,mouseY:t},n,{hitSize:i,useFinalPosition:r})}getCenterPoint(e){return ut(this,e)}draw(e){let{x:t,y:n,x2:r,y2:i,cp:a,options:o}=this;if(e.save(),!Nt(e,o))return e.restore();Pt(e,o);let s=Math.sqrt((r-t)**2+(i-n)**2);if(o.curve&&a)return ir(e,this,a,s),e.restore();let{startOpts:c,endOpts:l,startAdjust:u,endAdjust:d}=er(this),f=Math.atan2(i-n,r-t);e.translate(t,n),e.rotate(f),e.beginPath(),e.moveTo(0+u,0),e.lineTo(s-d,0),e.shadowColor=o.borderShadowColor,e.stroke(),nr(e,0,u,c),nr(e,s,-d,l),e.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(e,t){let n=cn(e,t),{x:r,y:i,x2:a,y2:o}=n,s=dee(n,e.chartArea),c=s?fee({x:r,y:i},{x:a,y:o},e.chartArea):{x:r,y:i,x2:a,y2:o,width:Math.abs(a-r),height:Math.abs(o-i)};c.centerX=(a+r)/2,c.centerY=(o+i)/2,c.initProperties=wt(e,c,t),t.curve&&(c.cp=bee(c,t,be({x:c.x,y:c.y},{x:c.x2,y:c.y2})));let l=mee(e,c,t.label);return l._visible=s,c.elements=[{type:`label`,optionScope:`label`,properties:l,initProperties:c.initProperties}],c}};Jn.id=`lineAnnotation`;var Yn={backgroundColor:void 0,backgroundShadowColor:void 0,borderColor:void 0,borderDash:void 0,borderDashOffset:void 0,borderShadowColor:void 0,borderWidth:void 0,display:void 0,fill:void 0,length:void 0,shadowBlur:void 0,shadowOffsetX:void 0,shadowOffsetY:void 0,width:void 0};Jn.defaults={adjustScaleRange:!0,arrowHeads:{display:!1,end:Object.assign({},Yn),fill:!1,length:12,start:Object.assign({},Yn),width:6},borderDash:[],borderDashOffset:0,borderShadowColor:`transparent`,borderWidth:2,curve:!1,controlPoint:{y:`-50%`},display:!0,endValue:void 0,init:void 0,hitTolerance:0,label:{backgroundColor:`rgba(0,0,0,0.8)`,backgroundShadowColor:`transparent`,borderCapStyle:`butt`,borderColor:`black`,borderDash:[],borderDashOffset:0,borderJoinStyle:`miter`,borderRadius:6,borderShadowColor:`transparent`,borderWidth:0,callout:Object.assign({},Rn.defaults.callout),color:`#fff`,content:null,display:!1,drawTime:void 0,font:{family:void 0,lineHeight:void 0,size:void 0,style:void 0,weight:`bold`},height:void 0,hitTolerance:void 0,opacity:void 0,padding:6,position:`center`,rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,textAlign:`center`,textStrokeColor:void 0,textStrokeWidth:0,width:void 0,xAdjust:0,yAdjust:0,z:void 0},scaleID:void 0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,value:void 0,xMax:void 0,xMin:void 0,xScaleID:void 0,yMax:void 0,yMin:void 0,yScaleID:void 0,z:0},Jn.descriptors={arrowHeads:{start:{_fallback:!0},end:{_fallback:!0},_fallback:!0}},Jn.defaultRoutes={borderColor:`color`};function uee(e,{mouseX:t,mouseY:n},r,{hitSize:i,useFinalPosition:a}){return at(Un(t,n,e.getProps([`x`,`y`,`x2`,`y2`],a),r),i)||Zn(e,{mouseX:t,mouseY:n},a,r)}function dee({x:e,y:t,x2:n,y2:r},{top:i,right:a,bottom:o,left:s}){return!(e<s&&n<s||e>a&&n>a||t<i&&r<i||t>o&&r>o)}function Xn({x:e,y:t},n,{top:r,right:i,bottom:a,left:o}){return e<o&&(t=Vn(o,{x:e,y:t},n),e=o),e>i&&(t=Vn(i,{x:e,y:t},n),e=i),t<r&&(e=Bn(r,{x:e,y:t},n),t=r),t>a&&(e=Bn(a,{x:e,y:t},n),t=a),{x:e,y:t}}function fee(e,t,n){let{x:r,y:i}=Xn(e,t,n),{x:a,y:o}=Xn(t,e,n);return{x:r,y:i,x2:a,y2:o,width:Math.abs(a-r),height:Math.abs(o-i)}}function pee(e,{mouseX:t,mouseY:n},r=rt,i){let{x:a,y:o,x2:s,y2:c}=e.getProps([`x`,`y`,`x2`,`y2`],i),l=s-a,u=c-o,d=Hn(l)+Hn(u),f=d===0?-1:((t-a)*l+(n-o)*u)/d,p,m;return f<0?(p=a,m=o):f>1?(p=s,m=c):(p=a+f*l,m=o+f*u),Hn(t-p)+Hn(n-m)<=r}function Zn(e,{mouseX:t,mouseY:n},r,i){let a=e.label;return a.options.display&&a.inRange(t,n,i,r)}function mee(e,t,n){let r=n.borderWidth,i=A(n.padding),a=Ft(e.ctx,n);return gee(t,n,{width:a.width+i.width+r,height:a.height+i.height+r,padding:i},e.chartArea)}function hee(e){let{x:t,y:n,x2:r,y2:i}=e,a=Math.atan2(i-n,r-t);return a>Ne/2?a-Ne:a<Ne/-2?a+Ne:a}function gee(e,t,n,r){let{width:i,height:a,padding:o}=n,{xAdjust:s,yAdjust:c}=t,l={x:e.x,y:e.y},u={x:e.x2,y:e.y2},f=t.rotation===`auto`?hee(e):h(t.rotation),p=_ee(i,a,f),m=vee(e,t,{labelSize:p,padding:o},r),g=e.cp?Gn(l,e.cp,u,m):zn(l,u,m),_={size:p.w,min:r.left,max:r.right,padding:o.left},v={size:p.h,min:r.top,max:r.bottom,padding:o.top},y=$n(g.x,_)+s,b=$n(g.y,v)+c;return{x:y-i/2,y:b-a/2,x2:y+i/2,y2:b+a/2,centerX:y,centerY:b,pointX:g.x,pointY:g.y,width:i,height:a,rotation:d(f)}}function _ee(e,t,n){let r=Math.cos(n),i=Math.sin(n);return{w:Math.abs(e*r)+Math.abs(t*i),h:Math.abs(e*i)+Math.abs(t*r)}}function vee(e,t,n,r){let i,a=yee(e,r);return i=t.position===`start`?Qn({w:e.x2-e.x,h:e.y2-e.y},n,t,a):t.position===`end`?1-Qn({w:e.x-e.x2,h:e.y-e.y2},n,t,a):gt(1,t.position),i}function Qn(e,t,n,r){let{labelSize:i,padding:a}=t,o=e.w*r.dx,s=e.h*r.dy,c=o>0&&(i.w/2+a.left-r.x)/o,l=s>0&&(i.h/2+a.top-r.y)/s;return it(Math.max(c,l),0,.25)}function yee(e,t){let{x:n,x2:r,y:i,y2:a}=e,o=Math.min(i,a)-t.top,s=Math.min(n,r)-t.left,c=t.bottom-Math.max(i,a),l=t.right-Math.max(n,r);return{x:Math.min(s,l),y:Math.min(o,c),dx:s<=l?1:-1,dy:o<=c?1:-1}}function $n(e,t){let{size:n,min:r,max:i,padding:a}=t,o=n/2;return n>i-r?(i+r)/2:(r>=e-a-o&&(e=r+a+o),i<=e+a+o&&(e=i-a-o),e)}function er(e){let t=e.options,n=t.arrowHeads&&t.arrowHeads.start,r=t.arrowHeads&&t.arrowHeads.end;return{startOpts:n,endOpts:r,startAdjust:tr(e,n),endAdjust:tr(e,r)}}function tr(e,t){if(!t||!t.display)return 0;let{length:n,width:r}=t,i=e.options.borderWidth/2,a={x:n,y:r+i},o={x:0,y:i};return Math.abs(Bn(0,a,o))}function nr(e,t,n,r){if(!r||!r.display)return;let{length:i,width:a,fill:o,backgroundColor:s,borderColor:c}=r,l=Math.abs(t-i)+n;e.beginPath(),Pt(e,r),Nt(e,r),e.moveTo(l,-a),e.lineTo(t+n,0),e.lineTo(l,a),o===!0?(e.fillStyle=s||c,e.closePath(),e.fill(),e.shadowColor=`transparent`):e.shadowColor=r.borderShadowColor,e.stroke()}function bee(e,t,n){let{x:r,y:i,x2:a,y2:o,centerX:s,centerY:c}=e,l=Math.atan2(o-i,a-r),u=yt(t.controlPoint,0);return tt({x:s+_t(n,u.x,!1),y:c+_t(n,u.y,!1)},{x:s,y:c},l)}function rr(e,{x:t,y:n},{angle:r,adjust:i},a){!a||!a.display||(e.save(),e.translate(t,n),e.rotate(r),nr(e,0,-i,a),e.restore())}function ir(e,t,n,r){let{x:i,y:a,x2:o,y2:s,options:c}=t,{startOpts:l,endOpts:u,startAdjust:d,endAdjust:f}=er(t),p={x:i,y:a},m={x:o,y:s},h=qn(p,n,m,0),g=qn(p,n,m,1)-Ne,_=Gn(p,n,m,d/r),v=Gn(p,n,m,1-f/r),y=new Path2D;e.beginPath(),y.moveTo(_.x,_.y),y.quadraticCurveTo(n.x,n.y,v.x,v.y),e.shadowColor=c.borderShadowColor,e.stroke(y),t.path=y,t.ctx=e,rr(e,_,{angle:h,adjust:d},l),rr(e,v,{angle:g,adjust:f},u)}var ar=class extends re{inRange(e,t,n,r){let i=this.options.rotation,a=(this.options.borderWidth+this.options.hitTolerance)/2;if(n!==`x`&&n!==`y`)return or({x:e,y:t},this.getProps([`width`,`height`,`centerX`,`centerY`],r),i,a);let{x:o,y:s,x2:c,y2:l}=this.getProps([`x`,`y`,`x2`,`y2`],r),u=n===`y`?{start:s,end:l}:{start:o,end:c},d=tt({x:e,y:t},this.getCenterPoint(r),h(-i));return d[n]>=u.start-a-rt&&d[n]<=u.end+a+rt}getCenterPoint(e){return ut(this,e)}draw(e){let{width:t,height:n,centerX:r,centerY:i,options:a}=this;e.save(),Mt(e,this.getCenterPoint(),a.rotation),Pt(e,this.options),e.beginPath(),e.fillStyle=a.backgroundColor;let o=Nt(e,a);e.ellipse(r,i,n/2,t/2,Ne/2,0,2*Ne),e.fill(),o&&(e.shadowColor=a.borderShadowColor,e.stroke()),e.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(e,t){return ln(e,t)}};ar.id=`ellipseAnnotation`,ar.defaults={adjustScaleRange:!0,backgroundShadowColor:`transparent`,borderDash:[],borderDashOffset:0,borderShadowColor:`transparent`,borderWidth:1,display:!0,hitTolerance:0,init:void 0,label:Object.assign({},Pn.defaults.label),rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,xMax:void 0,xMin:void 0,xScaleID:void 0,yMax:void 0,yMin:void 0,yScaleID:void 0,z:0},ar.defaultRoutes={borderColor:`color`,backgroundColor:`color`},ar.descriptors={label:{_fallback:!0}};function or(e,t,n,r){let{width:i,height:a,centerX:o,centerY:s}=t,c=i/2,l=a/2;if(c<=0||l<=0)return!1;let u=h(n||0),d=Math.cos(u),f=Math.sin(u),p=(d*(e.x-o)+f*(e.y-s))**2,m=(f*(e.x-o)-d*(e.y-s))**2;return p/(c+r)**2+m/(l+r)**2<=1.0001}var sr=class extends re{inRange(e,t,n,r){let{x:i,y:a,x2:o,y2:s,width:c}=this.getProps([`x`,`y`,`x2`,`y2`,`width`],r),l=(this.options.borderWidth+this.options.hitTolerance)/2;return n!==`x`&&n!==`y`?st({x:e,y:t},this.getCenterPoint(r),c/2,l):at(n===`y`?{start:a,end:s,value:t}:{start:i,end:o,value:e},l)}getCenterPoint(e){return ut(this,e)}draw(e){let t=this.options,n=t.borderWidth;if(t.radius<.1)return;e.save(),e.fillStyle=t.backgroundColor,Pt(e,t);let r=Nt(e,t);zt(e,this,this.centerX,this.centerY),r&&!jt(t.pointStyle)&&(e.shadowColor=t.borderShadowColor,e.stroke()),e.restore(),t.borderWidth=n}resolveElementProperties(e,t){let n=sn(e,t);return n.initProperties=wt(e,n,t),n}};sr.id=`pointAnnotation`,sr.defaults={adjustScaleRange:!0,backgroundShadowColor:`transparent`,borderDash:[],borderDashOffset:0,borderShadowColor:`transparent`,borderWidth:1,display:!0,hitTolerance:0,init:void 0,pointStyle:`circle`,radius:10,rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,xAdjust:0,xMax:void 0,xMin:void 0,xScaleID:void 0,xValue:void 0,yAdjust:0,yMax:void 0,yMin:void 0,yScaleID:void 0,yValue:void 0,z:0},sr.defaultRoutes={borderColor:`color`,backgroundColor:`color`};var cr=class extends re{inRange(e,t,n,r){if(n!==`x`&&n!==`y`)return this.options.radius>=.1&&this.elements.length>1&&ur(this.elements,e,t,r);let i=tt({x:e,y:t},this.getCenterPoint(r),h(-this.options.rotation)),a=this.elements.map(e=>n===`y`?e.bY:e.bX),o=Math.min(...a),s=Math.max(...a);return i[n]>=o&&i[n]<=s}getCenterPoint(e){return ut(this,e)}draw(e){let{elements:t,options:n}=this;e.save(),e.beginPath(),e.fillStyle=n.backgroundColor,Pt(e,n);let r=Nt(e,n),i=!0;for(let n of t)i?(e.moveTo(n.x,n.y),i=!1):e.lineTo(n.x,n.y);e.closePath(),e.fill(),r&&(e.shadowColor=n.borderShadowColor,e.stroke()),e.restore()}resolveElementProperties(e,t){let n=sn(e,t),{sides:r,rotation:i}=t,a=[],o=2*Ne/r,s=i*fe;for(let i=0;i<r;i++,s+=o){let r=lr(n,t,s);r.initProperties=wt(e,n,t),a.push(r)}return n.elements=a,n}};cr.id=`polygonAnnotation`,cr.defaults={adjustScaleRange:!0,backgroundShadowColor:`transparent`,borderCapStyle:`butt`,borderDash:[],borderDashOffset:0,borderJoinStyle:`miter`,borderShadowColor:`transparent`,borderWidth:1,display:!0,hitTolerance:0,init:void 0,point:{radius:0},radius:10,rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,sides:3,xAdjust:0,xMax:void 0,xMin:void 0,xScaleID:void 0,xValue:void 0,yAdjust:0,yMax:void 0,yMin:void 0,yScaleID:void 0,yValue:void 0,z:0},cr.defaultRoutes={borderColor:`color`,backgroundColor:`color`};function lr({centerX:e,centerY:t},{radius:n,borderWidth:r,hitTolerance:i},a){let o=(r+i)/2,s=Math.sin(a),c=Math.cos(a),l={x:e+s*n,y:t-c*n};return{type:`point`,optionScope:`point`,properties:{x:l.x,y:l.y,centerX:l.x,centerY:l.y,bX:e+s*(n+o),bY:t-c*(n+o)}}}function ur(e,t,n,r){let i=!1,a=e[e.length-1].getProps([`bX`,`bY`],r);for(let o of e){let e=o.getProps([`bX`,`bY`],r);e.bY>n!=a.bY>n&&t<(a.bX-e.bX)*(n-e.bY)/(a.bY-e.bY)+e.bX&&(i=!i),a=e}return i}var dr={box:Pn,doughnutLabel:Fn,ellipse:ar,label:Rn,line:Jn,point:sr,polygon:cr};Object.keys(dr).forEach(e=>{Ae.describe(`elements.${dr[e].id}`,{_fallback:`plugins.annotation.common`})});var fr={update:Object.assign},pr=_n.concat(Cn),mr=(e,t)=>D(t)?Cr(e,t):e,hr=e=>e===`color`||e===`font`;function gr(e=`line`){return dr[e]?e:(console.warn(`Unknown annotation type: '${e}', defaulting to 'line'`),`line`)}function _r(e,t,n,r){let i=yr(e,n.animations,r),a=t.annotations,o=Tr(t.elements,a);for(let t=0;t<a.length;t++){let n=a[t],r=xr(o,t,n.type),s=n.setContext(wr(e,r,o,n)),c=r.resolveElementProperties(e,s);c.skip=vr(c),`elements`in c&&(br(r,c.elements,s,i),delete c.elements),Se(r.x)||Object.assign(r,c),Object.assign(r,c.initProperties),c.options=Sr(s),i.update(r,c)}}function vr(e){return isNaN(e.x)||isNaN(e.y)}function yr(e,t,n){return n===`reset`||n===`none`||n===`resize`?fr:new te(e,t)}function br(e,t,n,r){let i=e.elements||=[];i.length=t.length;for(let e=0;e<t.length;e++){let a=t[e],o=a.properties,s=xr(i,e,a.type,a.initProperties);o.options=Sr(n[a.optionScope].override(a)),r.update(s,o)}}function xr(e,t,n,r){let i=dr[gr(n)],a=e[t];return(!a||!(a instanceof i))&&(a=e[t]=new i,Object.assign(a,r)),a}function Sr(e){let t=dr[gr(e.type)],n={};n.id=e.id,n.type=e.type,n.drawTime=e.drawTime,Object.assign(n,Cr(e,t.defaults),Cr(e,t.defaultRoutes));for(let t of pr)n[t]=e[t];return n}function Cr(e,t){let n={};for(let r of Object.keys(t)){let i=t[r],a=e[r];hr(r)&&He(a)?n[r]=a.map(e=>mr(e,i)):n[r]=mr(a,i)}return n}function wr(e,t,n,r){return t.$context||=Object.assign(Object.create(e.getContext()),{element:t,get elements(){return n.filter(e=>e&&e.options)},id:r.id,type:`annotation`})}function Tr(e,t){let n=t.length,r=e.length;if(r<n){let t=n-r;e.splice(r,0,...Array(t))}else r>n&&e.splice(n,r-n);return e}var Er=`3.1.0`,Dr=new Map,Or=e=>e.type!==`doughnutLabel`,kr=_n.concat(Cn),Ar={id:`annotation`,version:Er,beforeRegister(){dt(`chart.js`,`4.0`,y.version)},afterRegister(){y.register(dr)},afterUnregister(){y.unregister(dr)},beforeInit(e){Dr.set(e,{annotations:[],elements:[],visibleElements:[],listeners:{},listened:!1,moveListened:!1,hooks:{},hooked:!1,hovered:[]})},beforeUpdate(e,t,n){let r=Dr.get(e),i=r.annotations=[],a=n.annotations;D(a)?Object.keys(a).forEach(e=>{let t=a[e];D(t)&&(t.id=e,i.push(t))}):He(a)&&i.push(...a),Dn(i.filter(Or),e.scales)},afterDataLimits(e,t){let n=Dr.get(e);En(e,t.scale,n.annotations.filter(Or).filter(e=>e.display&&e.adjustScaleRange))},afterUpdate(e,t,n){let r=Dr.get(e);vn(e,r,n),_r(e,r,n,t.mode),r.visibleElements=r.elements.filter(e=>!e.skip&&e.options.display),wn(e,r,n)},beforeDatasetsDraw(e,t,n){jr(e,`beforeDatasetsDraw`,n.clip)},afterDatasetsDraw(e,t,n){jr(e,`afterDatasetsDraw`,n.clip)},beforeDatasetDraw(e,t,n){jr(e,t.index,n.clip)},beforeDraw(e,t,n){jr(e,`beforeDraw`,n.clip)},afterDraw(e,t,n){jr(e,`afterDraw`,n.clip)},beforeEvent(e,t,n){yn(Dr.get(e),t.event,n)&&(t.changed=!0)},afterDestroy(e){Dr.delete(e)},getAnnotations(e){let t=Dr.get(e);return t?t.elements:[]},_getAnnotationElementsAtEventForMode(e,t,n){return Xe(e,t,n)},defaults:{animations:{numbers:{properties:[`x`,`y`,`x2`,`y2`,`width`,`height`,`centerX`,`centerY`,`pointX`,`pointY`,`radius`],type:`number`},colors:{properties:[`backgroundColor`,`borderColor`],type:`color`}},clip:!0,interaction:{mode:void 0,axis:void 0,intersect:void 0},common:{drawTime:`afterDatasetsDraw`,init:!1,label:{}}},descriptors:{_indexable:!1,_scriptable:e=>!kr.includes(e)&&e!==`init`,annotations:{_allKeys:!1,_fallback:(e,t)=>`elements.${dr[gr(t.type)].id}`},interaction:{_fallback:!0},common:{label:{_indexable:hr,_fallback:!0},_indexable:hr}},additionalOptionScopes:[``]};function jr(e,t,n){let{ctx:r,chartArea:i}=e,a=Dr.get(e);n&&Fe(r,i);let o=Mr(a.visibleElements,t).sort((e,t)=>e.element.options.z-t.element.options.z);for(let e of o)Nr(r,i,a,e);n&&C(r)}function Mr(e,t){let n=[];for(let r of e)if(r.options.drawTime===t&&n.push({element:r,main:!0}),r.elements&&r.elements.length)for(let e of r.elements)e.options.display&&e.options.drawTime===t&&n.push({element:e});return n}function Nr(e,t,n,r){let i=r.element;r.main?(Tn(n,i,`beforeDraw`),i.draw(e,t),Tn(n,i,`afterDraw`)):i.draw(e,t)}function Pr(e){let t=null;return()=>(t??=e(),t)}function Fr(e,t){return e.filter(e=>e!==t)}function Ir(e,t){let n=new Set,r=e=>n.add(e);e.forEach(r),t.forEach(r);let i=[];return n.forEach(e=>i.push(e)),i}var Lr=class{enter(e){let t=this.entered.length;return this.entered=Ir(this.entered.filter(t=>this.isNodeInDocument(t)&&(!t.contains||t.contains(e))),[e]),t===0&&this.entered.length>0}leave(e){let t=this.entered.length;return this.entered=Fr(this.entered.filter(this.isNodeInDocument),e),t>0&&this.entered.length===0}reset(){this.entered=[]}constructor(e){this.entered=[],this.isNodeInDocument=e}},Rr=class{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(e=>{Object.defineProperty(this.item,e,{configurable:!0,enumerable:!0,get(){return console.warn(`Browser doesn't allow reading "${e}" until the drop event.`),null}})})}loadDataTransfer(e){if(e){let t={};Object.keys(this.config.exposeProperties).forEach(n=>{let r=this.config.exposeProperties[n];r!=null&&(t[n]={value:r(e,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,t)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(e,t){return t===e.getSourceId()}endDrag(){}constructor(e){this.config=e,this.item={},this.initializeExposedProperties()}},zr=t({FILE:()=>Br,HTML:()=>Ur,TEXT:()=>Hr,URL:()=>Vr});const Br=`__NATIVE_FILE__`,Vr=`__NATIVE_URL__`,Hr=`__NATIVE_TEXT__`,Ur=`__NATIVE_HTML__`;function Wr(e,t,n){return t.reduce((t,n)=>t||e.getData(n),``)??n}const Gr={[Br]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:[`Files`]},[Ur]:{exposeProperties:{html:(e,t)=>Wr(e,t,``),dataTransfer:e=>e},matchesTypes:[`Html`,`text/html`]},[Vr]:{exposeProperties:{urls:(e,t)=>Wr(e,t,``).split(`
|
|
2
2
|
`),dataTransfer:e=>e},matchesTypes:[`Url`,`text/uri-list`]},[Hr]:{exposeProperties:{text:(e,t)=>Wr(e,t,``),dataTransfer:e=>e},matchesTypes:[`Text`,`text/plain`]}};function Kr(e,t){let n=Gr[e];if(!n)throw Error(`native type ${e} has no configuration`);let r=new Rr(n);return r.loadDataTransfer(t),r}function qr(e){if(!e)return null;let t=Array.prototype.slice.call(e.types||[]);return Object.keys(Gr).filter(e=>{let n=Gr[e];return n?.matchesTypes?n.matchesTypes.some(e=>t.indexOf(e)>-1):!1})[0]||null}const Jr=Pr(()=>/firefox/i.test(navigator.userAgent)),Yr=Pr(()=>!!window.safari);var Xr=class{interpolate(e){let{xs:t,ys:n,c1s:r,c2s:i,c3s:a}=this,o=t.length-1;if(e===t[o])return n[o];let s=0,c=a.length-1,l;for(;s<=c;){l=Math.floor(.5*(s+c));let r=t[l];if(r<e)s=l+1;else if(r>e)c=l-1;else return n[l]}o=Math.max(0,c);let u=e-t[o],d=u*u;return n[o]+r[o]*u+i[o]*d+a[o]*u*d}constructor(e,t){let{length:n}=e,r=[];for(let e=0;e<n;e++)r.push(e);r.sort((t,n)=>e[t]<e[n]?-1:1);let i=[],a=[],o=[],s,c;for(let r=0;r<n-1;r++)s=e[r+1]-e[r],c=t[r+1]-t[r],a.push(s),i.push(c),o.push(c/s);let l=[o[0]];for(let e=0;e<a.length-1;e++){let t=o[e],n=o[e+1];if(t*n<=0)l.push(0);else{s=a[e];let r=a[e+1],i=s+r;l.push(3*i/((i+r)/t+(i+s)/n))}}l.push(o[o.length-1]);let u=[],d=[],f;for(let e=0;e<l.length-1;e++){f=o[e];let t=l[e],n=1/a[e],r=t+l[e+1]-f-f;u.push((f-t-r)*n),d.push(r*n*n)}this.xs=e,this.ys=t,this.c1s=l,this.c2s=u,this.c3s=d}},Zr=1;function Qr(e){let t=e.nodeType===Zr?e:e.parentElement;if(!t)return null;let{top:n,left:r}=t.getBoundingClientRect();return{x:r,y:n}}function $r(e){return{x:e.clientX,y:e.clientY}}function ei(e){return e.nodeName===`IMG`&&(Jr()||!document.documentElement?.contains(e))}function ti(e,t,n,r){let i=e?t.width:n,a=e?t.height:r;return Yr()&&e&&(a/=window.devicePixelRatio,i/=window.devicePixelRatio),{dragPreviewWidth:i,dragPreviewHeight:a}}function ni(e,t,n,r,i){let a=ei(t),o=Qr(a?e:t),s={x:n.x-o.x,y:n.y-o.y},{offsetWidth:c,offsetHeight:l}=e,{anchorX:u,anchorY:d}=r,{dragPreviewWidth:f,dragPreviewHeight:p}=ti(a,t,c,l),m=()=>{let e=new Xr([0,.5,1],[s.y,s.y/l*p,s.y+p-l]).interpolate(d);return Yr()&&a&&(e+=(window.devicePixelRatio-1)*p),e},h=()=>new Xr([0,.5,1],[s.x,s.x/c*f,s.x+f-c]).interpolate(u),{offsetX:g,offsetY:_}=i,v=g===0||g,y=_===0||_;return{x:v?g:h(),y:y?_:m()}}var ri=class{get window(){if(this.globalContext)return this.globalContext;if(typeof window<`u`)return window}get document(){if(this.globalContext?.document)return this.globalContext.document;if(this.window)return this.window.document}get rootElement(){return this.optionsArgs?.rootElement||this.window}constructor(e,t){this.ownerDocument=null,this.globalContext=e,this.optionsArgs=t}};function ii(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ai(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t],r=Object.keys(n);typeof Object.getOwnPropertySymbols==`function`&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){ii(e,t,n[t])})}return e}var oi=class{profile(){return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:this.dragStartSourceIds?.length||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:this.dragOverTargetIds?.length||0}}get window(){return this.options.window}get document(){return this.options.document}get rootElement(){return this.options.rootElement}setup(){let e=this.rootElement;if(e!==void 0){if(e.__isReactDndBackendSetUp)throw Error(`Cannot have two HTML5 backends at the same time.`);e.__isReactDndBackendSetUp=!0,this.addEventListeners(e)}}teardown(){let e=this.rootElement;if(e!==void 0&&(e.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId)){var t;(t=this.window)==null||t.cancelAnimationFrame(this.asyncEndDragFrameId)}}connectDragPreview(e,t,n){return this.sourcePreviewNodeOptions.set(e,n),this.sourcePreviewNodes.set(e,t),()=>{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDragSource(e,t,n){this.sourceNodes.set(e,t),this.sourceNodeOptions.set(e,n);let r=t=>this.handleDragStart(t,e),i=e=>this.handleSelectStart(e);return t.setAttribute(`draggable`,`true`),t.addEventListener(`dragstart`,r),t.addEventListener(`selectstart`,i),()=>{this.sourceNodes.delete(e),this.sourceNodeOptions.delete(e),t.removeEventListener(`dragstart`,r),t.removeEventListener(`selectstart`,i),t.setAttribute(`draggable`,`false`)}}connectDropTarget(e,t){let n=t=>this.handleDragEnter(t,e),r=t=>this.handleDragOver(t,e),i=t=>this.handleDrop(t,e);return t.addEventListener(`dragenter`,n),t.addEventListener(`dragover`,r),t.addEventListener(`drop`,i),()=>{t.removeEventListener(`dragenter`,n),t.removeEventListener(`dragover`,r),t.removeEventListener(`drop`,i)}}addEventListeners(e){e.addEventListener&&(e.addEventListener(`dragstart`,this.handleTopDragStart),e.addEventListener(`dragstart`,this.handleTopDragStartCapture,!0),e.addEventListener(`dragend`,this.handleTopDragEndCapture,!0),e.addEventListener(`dragenter`,this.handleTopDragEnter),e.addEventListener(`dragenter`,this.handleTopDragEnterCapture,!0),e.addEventListener(`dragleave`,this.handleTopDragLeaveCapture,!0),e.addEventListener(`dragover`,this.handleTopDragOver),e.addEventListener(`dragover`,this.handleTopDragOverCapture,!0),e.addEventListener(`drop`,this.handleTopDrop),e.addEventListener(`drop`,this.handleTopDropCapture,!0))}removeEventListeners(e){e.removeEventListener&&(e.removeEventListener(`dragstart`,this.handleTopDragStart),e.removeEventListener(`dragstart`,this.handleTopDragStartCapture,!0),e.removeEventListener(`dragend`,this.handleTopDragEndCapture,!0),e.removeEventListener(`dragenter`,this.handleTopDragEnter),e.removeEventListener(`dragenter`,this.handleTopDragEnterCapture,!0),e.removeEventListener(`dragleave`,this.handleTopDragLeaveCapture,!0),e.removeEventListener(`dragover`,this.handleTopDragOver),e.removeEventListener(`dragover`,this.handleTopDragOverCapture,!0),e.removeEventListener(`drop`,this.handleTopDrop),e.removeEventListener(`drop`,this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){let e=this.monitor.getSourceId(),t=this.sourceNodeOptions.get(e);return ai({dropEffect:this.altKeyPressed?`copy`:`move`},t||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?`copy`:this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){let e=this.monitor.getSourceId();return ai({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(e)||{})}isDraggingNativeItem(){let e=this.monitor.getItemType();return Object.keys(zr).some(t=>zr[t]===e)}beginDragNativeItem(e,t){this.clearCurrentDragSourceNode(),this.currentNativeSource=Kr(e,t),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(e){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e,this.mouseMoveTimeoutTimer=setTimeout(()=>this.rootElement?.addEventListener(`mousemove`,this.endDragIfSourceWasRemovedFromDOM,!0),1e3)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){if(this.currentDragSourceNode=null,this.rootElement){var e;(e=this.window)==null||e.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener(`mousemove`,this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(e,t){e.defaultPrevented||(this.dragStartSourceIds||=[],this.dragStartSourceIds.unshift(t))}handleDragEnter(e,t){this.dragEnterTargetIds.unshift(t)}handleDragOver(e,t){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(t)}handleDrop(e,t){this.dropTargetIds.unshift(t)}constructor(e,t,n){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=e=>{let t=this.sourceNodes.get(e);return t&&Qr(t)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=e=>!!(e&&this.document&&this.document.body&&this.document.body.contains(e)),this.endDragIfSourceWasRemovedFromDOM=()=>{let e=this.currentDragSourceNode;e==null||this.isNodeInDocument(e)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=e=>{this.hoverRafId===null&&typeof requestAnimationFrame<`u`&&(this.hoverRafId=requestAnimationFrame(()=>{this.monitor.isDragging()&&this.actions.hover(e||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null}))},this.cancelHover=()=>{this.hoverRafId!==null&&typeof cancelAnimationFrame<`u`&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=e=>{if(e.defaultPrevented)return;let{dragStartSourceIds:t}=this;this.dragStartSourceIds=null;let n=$r(e);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(t||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:n});let{dataTransfer:r}=e,i=qr(r);if(this.monitor.isDragging()){if(r&&typeof r.setDragImage==`function`){let e=this.monitor.getSourceId(),t=this.sourceNodes.get(e),i=this.sourcePreviewNodes.get(e)||t;if(i){let{anchorX:e,anchorY:a,offsetX:o,offsetY:s}=this.getCurrentSourcePreviewNodeOptions(),c=ni(t,i,n,{anchorX:e,anchorY:a},{offsetX:o,offsetY:s});r.setDragImage(i,c.x,c.y)}}try{r?.setData(`application/json`,{})}catch{}this.setCurrentDragSourceNode(e.target);let{captureDraggingState:t}=this.getCurrentSourcePreviewNodeOptions();t?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(i)this.beginDragNativeItem(i);else if(r&&!r.types&&(e.target&&!e.target.hasAttribute||!e.target.hasAttribute(`draggable`)))return;else e.preventDefault()},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=e=>{if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()){var t;(t=this.currentNativeSource)==null||t.loadDataTransfer(e.dataTransfer)}if(!this.enterLeaveCounter.enter(e.target)||this.monitor.isDragging())return;let{dataTransfer:n}=e,r=qr(n);r&&this.beginDragNativeItem(r,n)},this.handleTopDragEnter=e=>{let{dragEnterTargetIds:t}=this;this.dragEnterTargetIds=[],this.monitor.isDragging()&&(this.altKeyPressed=e.altKey,t.length>0&&this.actions.hover(t,{clientOffset:$r(e)}),t.some(e=>this.monitor.canDropOnTarget(e))&&(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=this.getCurrentDropEffect())))},this.handleTopDragOverCapture=e=>{if(this.dragOverTargetIds=[],this.isDraggingNativeItem()){var t;(t=this.currentNativeSource)==null||t.loadDataTransfer(e.dataTransfer)}},this.handleTopDragOver=e=>{let{dragOverTargetIds:t}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging()){e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=`none`);return}this.altKeyPressed=e.altKey,this.lastClientOffset=$r(e),this.scheduleHover(t),(t||[]).some(e=>this.monitor.canDropOnTarget(e))?(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?e.preventDefault():(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=`none`))},this.handleTopDragLeaveCapture=e=>{this.isDraggingNativeItem()&&e.preventDefault(),this.enterLeaveCounter.leave(e.target)&&(this.isDraggingNativeItem()&&setTimeout(()=>this.endDragNativeItem(),0),this.cancelHover())},this.handleTopDropCapture=e=>{if(this.dropTargetIds=[],this.isDraggingNativeItem()){var t;e.preventDefault(),(t=this.currentNativeSource)==null||t.loadDataTransfer(e.dataTransfer)}else qr(e.dataTransfer)&&e.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=e=>{let{dropTargetIds:t}=this;this.dropTargetIds=[],this.actions.hover(t,{clientOffset:$r(e)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=e=>{let t=e.target;typeof t.dragDrop==`function`&&(t.tagName===`INPUT`||t.tagName===`SELECT`||t.tagName===`TEXTAREA`||t.isContentEditable||(e.preventDefault(),t.dragDrop()))},this.options=new ri(t,n),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new Lr(this.isNodeInDocument)}},si;function ci(){return si||(si=new Image,si.src=`data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==`),si}const li=function(e,t,n){return new oi(e,t,n)};var N=e(a(),1);const ui=(0,N.createContext)({dragDropManager:void 0});function di(e){"@babel/helpers - typeof";return di=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},di(e)}function fi(e,t){if(di(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(di(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function pi(e){var t=fi(e,`string`);return di(t)==`symbol`?t:t+``}function mi(e,t,n){return(t=pi(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function gi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?hi(Object(n),!0).forEach(function(t){mi(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hi(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _i(e){return`Minified Redux error #`+e+`; visit https://redux.js.org/Errors?code=`+e+` for the full message or use the non-minified dev environment for full errors. `}var vi=(function(){return typeof Symbol==`function`&&Symbol.observable||`@@observable`})(),yi=function(){return Math.random().toString(36).substring(7).split(``).join(`.`)},bi={INIT:`@@redux/INIT`+yi(),REPLACE:`@@redux/REPLACE`+yi(),PROBE_UNKNOWN_ACTION:function(){return`@@redux/PROBE_UNKNOWN_ACTION`+yi()}};function xi(e){if(typeof e!=`object`||!e)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Si(e,t,n){var r;if(typeof t==`function`&&typeof n==`function`||typeof n==`function`&&typeof arguments[3]==`function`)throw Error(_i(0));if(typeof t==`function`&&n===void 0&&(n=t,t=void 0),n!==void 0){if(typeof n!=`function`)throw Error(_i(1));return n(Si)(e,t)}if(typeof e!=`function`)throw Error(_i(2));var i=e,a=t,o=[],s=o,c=!1;function l(){s===o&&(s=o.slice())}function u(){if(c)throw Error(_i(3));return a}function d(e){if(typeof e!=`function`)throw Error(_i(4));if(c)throw Error(_i(5));var t=!0;return l(),s.push(e),function(){if(t){if(c)throw Error(_i(6));t=!1,l();var n=s.indexOf(e);s.splice(n,1),o=null}}}function f(e){if(!xi(e))throw Error(_i(7));if(e.type===void 0)throw Error(_i(8));if(c)throw Error(_i(9));try{c=!0,a=i(a,e)}finally{c=!1}for(var t=o=s,n=0;n<t.length;n++){var r=t[n];r()}return e}function p(e){if(typeof e!=`function`)throw Error(_i(10));i=e,f({type:bi.REPLACE})}function m(){var e,t=d;return e={subscribe:function(e){if(typeof e!=`object`||!e)throw Error(_i(11));function n(){e.next&&e.next(u())}return n(),{unsubscribe:t(n)}}},e[vi]=function(){return this},e}return f({type:bi.INIT}),r={dispatch:f,subscribe:d,getState:u,replaceReducer:p},r[vi]=m,r}function Ci(e,t,...n){if(wi()&&t===void 0)throw Error(`invariant requires an error message argument`);if(!e){let e;if(t===void 0)e=Error(`Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.`);else{let r=0;e=Error(t.replace(/%s/g,function(){return n[r++]})),e.name=`Invariant Violation`}throw e.framesToPop=1,e}}function wi(){return typeof process<`u`&&!0}function Ti(e,t,n){return t.split(`.`).reduce((e,t)=>e&&e[t]?e[t]:n||null,e)}function Ei(e,t){return e.filter(e=>e!==t)}function Di(e){return typeof e==`object`}function Oi(e,t){let n=new Map,r=e=>{n.set(e,n.has(e)?n.get(e)+1:1)};e.forEach(r),t.forEach(r);let i=[];return n.forEach((e,t)=>{e===1&&i.push(t)}),i}function ki(e,t){return e.filter(e=>t.indexOf(e)>-1)}const Ai=`dnd-core/INIT_COORDS`,ji=`dnd-core/BEGIN_DRAG`,Mi=`dnd-core/PUBLISH_DRAG_SOURCE`,Ni=`dnd-core/HOVER`,Pi=`dnd-core/DROP`,Fi=`dnd-core/END_DRAG`;function Ii(e,t){return{type:Ai,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}var Li={type:Ai,payload:{clientOffset:null,sourceClientOffset:null}};function Ri(e){return function(t=[],n={publishSource:!0}){let{publishSource:r=!0,clientOffset:i,getSourceClientOffset:a}=n,o=e.getMonitor(),s=e.getRegistry();e.dispatch(Ii(i)),zi(t,o,s);let c=Hi(t,o);if(c==null){e.dispatch(Li);return}let l=null;if(i){if(!a)throw Error(`getSourceClientOffset must be defined`);Bi(a),l=a(c)}e.dispatch(Ii(i,l));let u=s.getSource(c).beginDrag(o,c);if(u!=null)return Vi(u),s.pinSource(c),{type:ji,payload:{itemType:s.getSourceType(c),item:u,sourceId:c,clientOffset:i||null,sourceClientOffset:l||null,isSourcePublic:!!r}}}}function zi(e,t,n){Ci(!t.isDragging(),`Cannot call beginDrag while dragging.`),e.forEach(function(e){Ci(n.getSource(e),`Expected sourceIds to be registered.`)})}function Bi(e){Ci(typeof e==`function`,`When clientOffset is provided, getSourceClientOffset must be a function.`)}function Vi(e){Ci(Di(e),`Item must be an object.`)}function Hi(e,t){let n=null;for(let r=e.length-1;r>=0;r--)if(t.canDragSource(e[r])){n=e[r];break}return n}function Ui(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t],r=Object.keys(n);typeof Object.getOwnPropertySymbols==`function`&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Ui(e,t,n[t])})}return e}function Gi(e){return function(t={}){let n=e.getMonitor(),r=e.getRegistry();Ki(n),Yi(n).forEach((i,a)=>{let o={type:Pi,payload:{dropResult:Wi({},t,qi(i,a,r,n))}};e.dispatch(o)})}}function Ki(e){Ci(e.isDragging(),`Cannot call drop while not dragging.`),Ci(!e.didDrop(),`Cannot call drop twice during one drag operation.`)}function qi(e,t,n,r){let i=n.getTarget(e),a=i?i.drop(r,e):void 0;return Ji(a),a===void 0&&(a=t===0?{}:r.getDropResult()),a}function Ji(e){Ci(e===void 0||Di(e),`Drop result must either be an object or undefined.`)}function Yi(e){let t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}function Xi(e){return function(){let t=e.getMonitor(),n=e.getRegistry();Zi(t);let r=t.getSourceId();return r!=null&&(n.getSource(r,!0).endDrag(t,r),n.unpinSource()),{type:Fi}}}function Zi(e){Ci(e.isDragging(),`Cannot call endDrag while not dragging.`)}function Qi(e,t){return t===null?e===null:Array.isArray(e)?e.some(e=>e===t):e===t}function $i(e){return function(t,{clientOffset:n}={}){ea(t);let r=t.slice(0),i=e.getMonitor(),a=e.getRegistry();return na(r,a,i.getItemType()),ta(r,i,a),ra(r,i,a),{type:Ni,payload:{targetIds:r,clientOffset:n||null}}}}function ea(e){Ci(Array.isArray(e),`Expected targetIds to be an array.`)}function ta(e,t,n){Ci(t.isDragging(),`Cannot call hover while not dragging.`),Ci(!t.didDrop(),`Cannot call hover after drop.`);for(let t=0;t<e.length;t++){let r=e[t];Ci(e.lastIndexOf(r)===t,`Expected targetIds to be unique in the passed array.`),Ci(n.getTarget(r),`Expected targetIds to be registered.`)}}function na(e,t,n){for(let r=e.length-1;r>=0;r--){let i=e[r];Qi(t.getTargetType(i),n)||e.splice(r,1)}}function ra(e,t,n){e.forEach(function(e){n.getTarget(e).hover(t,e)})}function ia(e){return function(){if(e.getMonitor().isDragging())return{type:Mi}}}function aa(e){return{beginDrag:Ri(e),publishDragSource:ia(e),hover:$i(e),drop:Gi(e),endDrag:Xi(e)}}var oa=class{receiveBackend(e){this.backend=e}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){let e=this,{dispatch:t}=this.store;function n(n){return(...r)=>{let i=n.apply(e,r);i!==void 0&&t(i)}}let r=aa(this);return Object.keys(r).reduce((e,t)=>{let i=r[t];return e[t]=n(i),e},{})}dispatch(e){this.store.dispatch(e)}constructor(e,t){this.isSetUp=!1,this.handleRefCountChange=()=>{let e=this.store.getState().refCount>0;this.backend&&(e&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!e&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=e,this.monitor=t,e.subscribe(this.handleRefCountChange)}};function sa(e,t){return{x:e.x+t.x,y:e.y+t.y}}function ca(e,t){return{x:e.x-t.x,y:e.y-t.y}}function la(e){let{clientOffset:t,initialClientOffset:n,initialSourceClientOffset:r}=e;return!t||!n||!r?null:ca(sa(t,r),n)}function ua(e){let{clientOffset:t,initialClientOffset:n}=e;return!t||!n?null:ca(t,n)}const da=[],fa=[];da.__IS_NONE__=!0,fa.__IS_ALL__=!0;function pa(e,t){return e===da?!1:e===fa||t===void 0?!0:ki(t,e).length>0}var ma=class{subscribeToStateChange(e,t={}){let{handlerIds:n}=t;Ci(typeof e==`function`,`listener must be a function.`),Ci(n===void 0||Array.isArray(n),`handlerIds, when specified, must be an array of strings.`);let r=this.store.getState().stateId;return this.store.subscribe(()=>{let t=this.store.getState(),i=t.stateId;try{i===r||i===r+1&&!pa(t.dirtyHandlerIds,n)||e()}finally{r=i}})}subscribeToOffsetChange(e){Ci(typeof e==`function`,`listener must be a function.`);let t=this.store.getState().dragOffset;return this.store.subscribe(()=>{let n=this.store.getState().dragOffset;n!==t&&(t=n,e())})}canDragSource(e){if(!e)return!1;let t=this.registry.getSource(e);return Ci(t,`Expected to find a valid source. sourceId=${e}`),this.isDragging()?!1:t.canDrag(this,e)}canDropOnTarget(e){if(!e)return!1;let t=this.registry.getTarget(e);return Ci(t,`Expected to find a valid target. targetId=${e}`),!this.isDragging()||this.didDrop()?!1:Qi(this.registry.getTargetType(e),this.getItemType())&&t.canDrop(this,e)}isDragging(){return!!this.getItemType()}isDraggingSource(e){if(!e)return!1;let t=this.registry.getSource(e,!0);return Ci(t,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()||!this.isSourcePublic()||this.registry.getSourceType(e)!==this.getItemType()?!1:t.isDragging(this,e)}isOverTarget(e,t={shallow:!1}){if(!e)return!1;let{shallow:n}=t;if(!this.isDragging())return!1;let r=this.registry.getTargetType(e),i=this.getItemType();if(i&&!Qi(r,i))return!1;let a=this.getTargetIds();if(!a.length)return!1;let o=a.indexOf(e);return n?o===a.length-1:o>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return!!this.store.getState().dragOperation.isSourcePublic}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return la(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return ua(this.store.getState().dragOffset)}constructor(e,t){this.store=e,this.registry=t}},ha=typeof global<`u`?global:self,ga=ha.MutationObserver||ha.WebKitMutationObserver;function _a(e){return function(){let t=setTimeout(r,0),n=setInterval(r,50);function r(){clearTimeout(t),clearInterval(n),e()}}}function va(e){let t=1,n=new ga(e),r=document.createTextNode(``);return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}const ya=typeof ga==`function`?va:_a;var ba=class{enqueueTask(e){let{queue:t,requestFlush:n}=this;t.length||(n(),this.flushing=!0),t[t.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{let{queue:e}=this;for(;this.index<e.length;){let t=this.index;if(this.index++,e[t].call(),this.index>this.capacity){for(let t=0,n=e.length-this.index;t<n;t++)e[t]=e[t+this.index];e.length-=this.index,this.index=0}}e.length=0,this.index=0,this.flushing=!1},this.registerPendingError=e=>{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=ya(this.flush),this.requestErrorThrow=_a(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}},xa=class{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,t){this.onError=e,this.release=t,this.task=null}},Sa=class{create(e){let t=this.freeTasks,n=t.length?t.pop():new xa(this.onError,e=>t[t.length]=e);return n.task=e,n}constructor(e){this.onError=e,this.freeTasks=[]}},Ca=new ba,wa=new Sa(Ca.registerPendingError);function Ta(e){Ca.enqueueTask(wa.create(e))}const Ea=`dnd-core/ADD_SOURCE`,Da=`dnd-core/ADD_TARGET`,Oa=`dnd-core/REMOVE_SOURCE`,ka=`dnd-core/REMOVE_TARGET`;function xee(e){return{type:Ea,payload:{sourceId:e}}}function See(e){return{type:Da,payload:{targetId:e}}}function Cee(e){return{type:Oa,payload:{sourceId:e}}}function wee(e){return{type:ka,payload:{targetId:e}}}function Tee(e){Ci(typeof e.canDrag==`function`,`Expected canDrag to be a function.`),Ci(typeof e.beginDrag==`function`,`Expected beginDrag to be a function.`),Ci(typeof e.endDrag==`function`,`Expected endDrag to be a function.`)}function Eee(e){Ci(typeof e.canDrop==`function`,`Expected canDrop to be a function.`),Ci(typeof e.hover==`function`,`Expected hover to be a function.`),Ci(typeof e.drop==`function`,`Expected beginDrag to be a function.`)}function Aa(e,t){if(t&&Array.isArray(e)){e.forEach(e=>Aa(e,!1));return}Ci(typeof e==`string`||typeof e==`symbol`,t?`Type can only be a string, a symbol, or an array of either.`:`Type can only be a string or a symbol.`)}var ja;(function(e){e.SOURCE=`SOURCE`,e.TARGET=`TARGET`})(ja||={});var Dee=0;function Oee(){return Dee++}function kee(e){let t=Oee().toString();switch(e){case ja.SOURCE:return`S${t}`;case ja.TARGET:return`T${t}`;default:throw Error(`Unknown Handler Role: ${e}`)}}function Ma(e){switch(e[0]){case`S`:return ja.SOURCE;case`T`:return ja.TARGET;default:throw Error(`Cannot parse handler ID: ${e}`)}}function Na(e,t){let n=e.entries(),r=!1;do{let{done:e,value:[,i]}=n.next();if(i===t)return!0;r=!!e}while(!r);return!1}var Aee=class{addSource(e,t){Aa(e),Tee(t);let n=this.addHandler(ja.SOURCE,e,t);return this.store.dispatch(xee(n)),n}addTarget(e,t){Aa(e,!0),Eee(t);let n=this.addHandler(ja.TARGET,e,t);return this.store.dispatch(See(n)),n}containsHandler(e){return Na(this.dragSources,e)||Na(this.dropTargets,e)}getSource(e,t=!1){return Ci(this.isSourceId(e),`Expected a valid source ID.`),t&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return Ci(this.isTargetId(e),`Expected a valid target ID.`),this.dropTargets.get(e)}getSourceType(e){return Ci(this.isSourceId(e),`Expected a valid source ID.`),this.types.get(e)}getTargetType(e){return Ci(this.isTargetId(e),`Expected a valid target ID.`),this.types.get(e)}isSourceId(e){return Ma(e)===ja.SOURCE}isTargetId(e){return Ma(e)===ja.TARGET}removeSource(e){Ci(this.getSource(e),`Expected an existing source.`),this.store.dispatch(Cee(e)),Ta(()=>{this.dragSources.delete(e),this.types.delete(e)})}removeTarget(e){Ci(this.getTarget(e),`Expected an existing target.`),this.store.dispatch(wee(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){let t=this.getSource(e);Ci(t,`Expected an existing source.`),this.pinnedSourceId=e,this.pinnedSource=t}unpinSource(){Ci(this.pinnedSource,`No source is pinned at the time.`),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,t,n){let r=kee(e);return this.types.set(r,t),e===ja.SOURCE?this.dragSources.set(r,n):e===ja.TARGET&&this.dropTargets.set(r,n),r}constructor(e){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=e}};const jee=(e,t)=>e===t;function Mee(e,t){return!e&&!t?!0:!e||!t?!1:e.x===t.x&&e.y===t.y}function Nee(e,t,n=jee){if(e.length!==t.length)return!1;for(let r=0;r<e.length;++r)if(!n(e[r],t[r]))return!1;return!0}function Pee(e=da,t){switch(t.type){case Ni:break;case Ea:case Da:case ka:case Oa:return da;case ji:case Mi:case Fi:case Pi:default:return fa}let{targetIds:n=[],prevTargetIds:r=[]}=t.payload,i=Oi(n,r);if(!(i.length>0||!Nee(n,r)))return da;let a=r[r.length-1],o=n[n.length-1];return a!==o&&(a&&i.push(a),o&&i.push(o)),i}function Pa(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fa(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t],r=Object.keys(n);typeof Object.getOwnPropertySymbols==`function`&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Pa(e,t,n[t])})}return e}var Ia={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function La(e=Ia,t){let{payload:n}=t;switch(t.type){case Ai:case ji:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case Ni:return Mee(e.clientOffset,n.clientOffset)?e:Fa({},e,{clientOffset:n.clientOffset});case Fi:case Pi:return Ia;default:return e}}function Ra(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function za(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t],r=Object.keys(n);typeof Object.getOwnPropertySymbols==`function`&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Ra(e,t,n[t])})}return e}var Ba={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function Va(e=Ba,t){let{payload:n}=t;switch(t.type){case ji:return za({},e,{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case Mi:return za({},e,{isSourcePublic:!0});case Ni:return za({},e,{targetIds:n.targetIds});case ka:return e.targetIds.indexOf(n.targetId)===-1?e:za({},e,{targetIds:Ei(e.targetIds,n.targetId)});case Pi:return za({},e,{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case Fi:return za({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}}function Ha(e=0,t){switch(t.type){case Ea:case Da:return e+1;case Oa:case ka:return e-1;default:return e}}function Fee(e=0){return e+1}function Ua(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wa(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t],r=Object.keys(n);typeof Object.getOwnPropertySymbols==`function`&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Ua(e,t,n[t])})}return e}function Ga(e={},t){return{dirtyHandlerIds:Pee(e.dirtyHandlerIds,{type:t.type,payload:Wa({},t.payload,{prevTargetIds:Ti(e,`dragOperation.targetIds`,[])})}),dragOffset:La(e.dragOffset,t),refCount:Ha(e.refCount,t),dragOperation:Va(e.dragOperation,t),stateId:Fee(e.stateId)}}function Ka(e,t=void 0,n={},r=!1){let i=qa(r),a=new oa(i,new ma(i,new Aee(i))),o=e(a,t,n);return a.receiveBackend(o),a}function qa(e){let t=typeof window<`u`&&window.__REDUX_DEVTOOLS_EXTENSION__;return Si(Ga,e&&t&&t({name:`dnd-core`,instanceId:`dnd-core`}))}var P=c();function Ja(e,t){if(e==null)return{};var n=Ya(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ya(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Xa=0,Za=Symbol.for(`__REACT_DND_CONTEXT_INSTANCE__`),Qa=(0,N.memo)(function(e){var{children:t}=e;let[n,r]=$a(Ja(e,[`children`]));return(0,N.useEffect)(()=>{if(r){let e=to();return++Xa,()=>{--Xa===0&&(e[Za]=null)}}},[]),(0,P.jsx)(ui.Provider,{value:n,children:t})});function $a(e){return`manager`in e?[{dragDropManager:e.manager},!1]:[eo(e.backend,e.context,e.options,e.debugMode),!e.context]}function eo(e,t=to(),n,r){let i=t;return i[Za]||(i[Za]={dragDropManager:Ka(e,t,n,r)}),i[Za]}function to(){return typeof global<`u`?global:window}const no=typeof window<`u`?N.useLayoutEffect:N.useEffect;var ro=e(b(),1);function io(e,t,n){let[r,i]=(0,N.useState)(()=>t(e)),a=(0,N.useCallback)(()=>{let a=t(e);(0,ro.default)(r,a)||(i(a),n&&n())},[r,e,n]);return no(a),[r,a]}function ao(e,t,n){let[r,i]=io(e,t,n);return no(function(){let t=e.getHandlerId();if(t!=null)return e.subscribeToStateChange(i,{handlerIds:[t]})},[e,i]),r}function oo(e,t,n){return ao(t,e||(()=>({})),()=>n.reconnect())}function so(e,t){let n=[...t||[]];return t==null&&typeof e!=`function`&&n.push(e),(0,N.useMemo)(()=>typeof e==`function`?e():e,n)}function Iee(e){return(0,N.useMemo)(()=>e.hooks.dragSource(),[e])}function Lee(e){return(0,N.useMemo)(()=>e.hooks.dragPreview(),[e])}var co=!1,lo=!1,Ree=class{receiveHandlerId(e){this.sourceId=e}getHandlerId(){return this.sourceId}canDrag(){Ci(!co,`You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor`);try{return co=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{co=!1}}isDragging(){if(!this.sourceId)return!1;Ci(!lo,`You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor`);try{return lo=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{lo=!1}}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}isDraggingSource(e){return this.internalMonitor.isDraggingSource(e)}isOverTarget(e,t){return this.internalMonitor.isOverTarget(e,t)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(e){return this.internalMonitor.subscribeToOffsetChange(e)}canDragSource(e){return this.internalMonitor.canDragSource(e)}canDropOnTarget(e){return this.internalMonitor.canDropOnTarget(e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.sourceId=null,this.internalMonitor=e.getMonitor()}},uo=!1,fo=class{receiveHandlerId(e){this.targetId=e}getHandlerId(){return this.targetId}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}canDrop(){if(!this.targetId)return!1;Ci(!uo,`You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor`);try{return uo=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{uo=!1}}isOver(e){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,e):!1}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.targetId=null,this.internalMonitor=e.getMonitor()}};function po(e,t,n){let r=n.getRegistry(),i=r.addTarget(e,t);return[i,()=>r.removeTarget(i)]}function mo(e,t,n){let r=n.getRegistry(),i=r.addSource(e,t);return[i,()=>r.removeSource(i)]}function ho(e,t,n,r){let i=n?n.call(r,e,t):void 0;if(i!==void 0)return!!i;if(e===t)return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;let a=Object.keys(e),o=Object.keys(t);if(a.length!==o.length)return!1;let s=Object.prototype.hasOwnProperty.bind(t);for(let o=0;o<a.length;o++){let c=a[o];if(!s(c))return!1;let l=e[c],u=t[c];if(i=n?n.call(r,l,u,c):void 0,i===!1||i===void 0&&l!==u)return!1}return!0}function go(e){return typeof e==`object`&&!!e&&Object.prototype.hasOwnProperty.call(e,`current`)}function _o(e){if(typeof e.type==`string`)return;let t=e.type.displayName||e.type.name||`the component`;throw Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${t} into a <div>, or turn it into a drag source or a drop target itself.`)}function vo(e){return(t=null,n=null)=>{if(!(0,N.isValidElement)(t)){let r=t;return e(r,n),r}let r=t;return _o(r),xo(r,n?t=>e(t,n):e)}}function yo(e){let t={};return Object.keys(e).forEach(n=>{let r=e[n];if(n.endsWith(`Ref`))t[n]=e[n];else{let e=vo(r);t[n]=()=>e}}),t}function bo(e,t){typeof e==`function`?e(t):e.current=t}function xo(e,t){let n=e.ref;return Ci(typeof n!=`string`,`Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs`),n?(0,N.cloneElement)(e,{ref:e=>{bo(n,e),bo(t,e)}}):(0,N.cloneElement)(e,{ref:t})}var So=class{receiveHandlerId(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(e){this.dragSourceOptionsInternal=e}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(e){this.dragPreviewOptionsInternal=e}reconnect(){let e=this.reconnectDragSource();this.reconnectDragPreview(e)}reconnectDragSource(){let e=this.dragSource,t=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return t&&this.disconnectDragSource(),this.handlerId?e?(t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)),t):(this.lastConnectedDragSource=e,t):t}reconnectDragPreview(e=!1){let t=this.dragPreview,n=e||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(n&&this.disconnectDragPreview(),this.handlerId){if(!t){this.lastConnectedDragPreview=t;return}n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=t,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,t,this.dragPreviewOptions))}}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!ho(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!ho(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&=(this.dragSourceUnsubscribe(),void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(e){this.hooks=yo({dragSource:(e,t)=>{this.clearDragSource(),this.dragSourceOptions=t||null,go(e)?this.dragSourceRef=e:this.dragSourceNode=e,this.reconnectDragSource()},dragPreview:(e,t)=>{this.clearDragPreview(),this.dragPreviewOptions=t||null,go(e)?this.dragPreviewRef=e:this.dragPreviewNode=e,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=e}},Co=class{get connectTarget(){return this.dropTarget}reconnect(){let e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();let t=this.dropTarget;if(this.handlerId){if(!t){this.lastConnectedDropTarget=t;return}e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=t,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,t,this.dropTargetOptions))}}receiveHandlerId(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(e){this.dropTargetOptionsInternal=e}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!ho(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&=(this.unsubscribeDropTarget(),void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(e){this.hooks=yo({dropTarget:(e,t)=>{this.clearDropTarget(),this.dropTargetOptions=t,go(e)?this.dropTargetRef=e:this.dropTargetNode=e,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=e}};function wo(){let{dragDropManager:e}=(0,N.useContext)(ui);return Ci(e!=null,`Expected drag drop context`),e}function To(e,t){let n=wo(),r=(0,N.useMemo)(()=>new So(n.getBackend()),[n]);return no(()=>(r.dragSourceOptions=e||null,r.reconnect(),()=>r.disconnectDragSource()),[r,e]),no(()=>(r.dragPreviewOptions=t||null,r.reconnect(),()=>r.disconnectDragPreview()),[r,t]),r}function Eo(){let e=wo();return(0,N.useMemo)(()=>new Ree(e),[e])}var Do=class{beginDrag(){let e=this.spec,t=this.monitor,n=null;return n=typeof e.item==`object`?e.item:typeof e.item==`function`?e.item(t):{},n??null}canDrag(){let e=this.spec,t=this.monitor;return typeof e.canDrag==`boolean`?e.canDrag:typeof e.canDrag==`function`?e.canDrag(t):!0}isDragging(e,t){let n=this.spec,r=this.monitor,{isDragging:i}=n;return i?i(r):t===e.getSourceId()}endDrag(){let e=this.spec,t=this.monitor,n=this.connector,{end:r}=e;r&&r(t.getItem(),t),n.reconnect()}constructor(e,t,n){this.spec=e,this.monitor=t,this.connector=n}};function Oo(e,t,n){let r=(0,N.useMemo)(()=>new Do(e,t,n),[t,n]);return(0,N.useEffect)(()=>{r.spec=e},[e]),r}function ko(e){return(0,N.useMemo)(()=>{let t=e.type;return Ci(t!=null,`spec.type must be defined`),t},[e])}function Ao(e,t,n){let r=wo(),i=Oo(e,t,n),a=ko(e);no(function(){if(a!=null){let[e,o]=mo(a,i,r);return t.receiveHandlerId(e),n.receiveHandlerId(e),o}},[r,t,n,i,a])}function jo(e,t){let n=so(e,t);Ci(!n.begin,`useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)`);let r=Eo(),i=To(n.options,n.previewOptions);return Ao(n,r,i),[oo(n.collect,r,i),Iee(i),Lee(i)]}function Mo(e){let t=wo().getMonitor(),[n,r]=io(t,e);return(0,N.useEffect)(()=>t.subscribeToOffsetChange(r)),(0,N.useEffect)(()=>t.subscribeToStateChange(r)),n}function No(e){return(0,N.useMemo)(()=>e.hooks.dropTarget(),[e])}function Po(e){let t=wo(),n=(0,N.useMemo)(()=>new Co(t.getBackend()),[t]);return no(()=>(n.dropTargetOptions=e||null,n.reconnect(),()=>n.disconnectDropTarget()),[e]),n}function Fo(){let e=wo();return(0,N.useMemo)(()=>new fo(e),[e])}function Io(e){let{accept:t}=e;return(0,N.useMemo)(()=>(Ci(e.accept!=null,`accept must be defined`),Array.isArray(t)?t:[t]),[t])}var Lo=class{canDrop(){let e=this.spec,t=this.monitor;return e.canDrop?e.canDrop(t.getItem(),t):!0}hover(){let e=this.spec,t=this.monitor;e.hover&&e.hover(t.getItem(),t)}drop(){let e=this.spec,t=this.monitor;if(e.drop)return e.drop(t.getItem(),t)}constructor(e,t){this.spec=e,this.monitor=t}};function Ro(e,t){let n=(0,N.useMemo)(()=>new Lo(e,t),[t]);return(0,N.useEffect)(()=>{n.spec=e},[e]),n}function zo(e,t,n){let r=wo(),i=Ro(e,t),a=Io(e);no(function(){let[e,o]=po(a,i,r);return t.receiveHandlerId(e),n.receiveHandlerId(e),o},[r,t,i,n,a.map(e=>e.toString()).join(`|`)])}function Bo(e,t){let n=so(e,t),r=Fo(),i=Po(n.options);return zo(n,r,i),[oo(n.collect,r,i),No(i)]}function Vo(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Ho=n((()=>{}));function Uo(){return Uo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Uo.apply(null,arguments)}var Wo=n((()=>{}));function Go(e,t){return Go=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Go(e,t)}function Ko(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Go(e,t)}function qo(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var Jo,Yo=n((()=>{Jo=function(){return Jo=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Jo.apply(this,arguments)}})),Xo=i((e=>{var t=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,n=/\\([\u000b\u0020-\u00ff])/g,r=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;e.parse=i;function i(e){if(!e)throw TypeError(`argument string is required`);var i=typeof e==`object`?a(e):e;if(typeof i!=`string`)throw TypeError(`argument string is required to be a string`);var s=i.indexOf(`;`),c=s===-1?i.trim():i.slice(0,s).trim();if(!r.test(c))throw TypeError(`invalid media type`);var l=new o(c.toLowerCase());if(s!==-1){var u,d,f;for(t.lastIndex=s;d=t.exec(i);){if(d.index!==s)throw TypeError(`invalid parameter format`);s+=d[0].length,u=d[1].toLowerCase(),f=d[2],f.charCodeAt(0)===34&&(f=f.slice(1,-1),f.indexOf(`\\`)!==-1&&(f=f.replace(n,`$1`))),l.parameters[u]=f}if(s!==i.length)throw TypeError(`invalid parameter format`)}return l}function a(e){var t;if(typeof e.getHeader==`function`?t=e.getHeader(`content-type`):typeof e.headers==`object`&&(t=e.headers&&e.headers[`content-type`]),typeof t!=`string`)throw TypeError(`content-type header is missing from object`);return t}function o(e){this.parameters=Object.create(null),this.type=e}}));Yo();var Zo=Xo(),Qo=new Map,$o=function(e){return e.cloneNode(!0)},es=function(){return window.location.protocol===`file:`},ts=function(e,t,n){var r=new XMLHttpRequest;r.onreadystatechange=function(){try{if(!/\.svg/i.test(e)&&r.readyState===2){var t=r.getResponseHeader(`Content-Type`);if(!t)throw Error(`Content type not found`);var i=(0,Zo.parse)(t).type;if(!(i===`image/svg+xml`||i===`text/plain`))throw Error(`Invalid content type: ${i}`)}if(r.readyState===4){if(r.status===404||r.responseXML===null)throw Error(es()?`Note: SVG injection ajax calls do not work locally without adjusting security settings in your browser. Or consider using a local webserver.`:`Unable to load SVG file: `+e);if(r.status===200||es()&&r.status===0)n(null,r);else throw Error(`There was a problem injecting the SVG: `+r.status+` `+r.statusText)}}catch(e){if(r.abort(),e instanceof Error)n(e,r);else throw e}},r.open(`GET`,e),r.withCredentials=t,r.overrideMimeType&&r.overrideMimeType(`text/xml`),r.send()},ns={},rs=function(e,t){ns[e]=ns[e]||[],ns[e].push(t)},is=function(e){for(var t=function(t,n){setTimeout(function(){if(Array.isArray(ns[e])){var n=Qo.get(e),r=ns[e][t];n instanceof SVGSVGElement&&r(null,$o(n)),n instanceof Error&&r(n),t===ns[e].length-1&&delete ns[e]}},0)},n=0,r=ns[e].length;n<r;n++)t(n)},as=function(e,t,n){if(Qo.has(e)){var r=Qo.get(e);if(r===void 0){rs(e,n);return}if(r instanceof SVGSVGElement){n(null,$o(r));return}}Qo.set(e,void 0),rs(e,n),ts(e,t,function(t,n){t?Qo.set(e,t):n.responseXML?.documentElement instanceof SVGSVGElement&&Qo.set(e,n.responseXML.documentElement),is(e)})},ss=function(e,t,n){ts(e,t,function(e,t){e?n(e):t.responseXML?.documentElement instanceof SVGSVGElement&&n(null,t.responseXML.documentElement)})},zee=0,Bee=function(){return++zee},cs=[],ls={},Vee=`http://www.w3.org/2000/svg`,us=`http://www.w3.org/1999/xlink`,ds=function(e,t,n,r,i,a,o){var s=e.getAttribute(`data-src`)||e.getAttribute(`src`);if(!s){o(Error(`Invalid data-src or src attribute`));return}if(cs.indexOf(e)!==-1){cs.splice(cs.indexOf(e),1),e=null;return}cs.push(e),e.setAttribute(`src`,``),(r?as:ss)(s,i,function(r,i){if(!i){cs.splice(cs.indexOf(e),1),e=null,o(r);return}var c=e.getAttribute(`id`);c&&i.setAttribute(`id`,c);var l=e.getAttribute(`title`);l&&i.setAttribute(`title`,l);var u=e.getAttribute(`width`);u&&i.setAttribute(`width`,u);var d=e.getAttribute(`height`);d&&i.setAttribute(`height`,d);var f=Array.from(new Set(qo(qo(qo([],(i.getAttribute(`class`)||``).split(` `),!0),[`injected-svg`],!1),(e.getAttribute(`class`)||``).split(` `),!0))).join(` `).trim();i.setAttribute(`class`,f);var p=e.getAttribute(`style`);p&&i.setAttribute(`style`,p),i.setAttribute(`data-src`,s);var m=[].filter.call(e.attributes,function(e){return/^data-\w[\w-]*$/.test(e.name)});if(Array.prototype.forEach.call(m,function(e){e.name&&e.value&&i.setAttribute(e.name,e.value)}),n){var h={clipPath:[`clip-path`],"color-profile":[`color-profile`],cursor:[`cursor`],filter:[`filter`],linearGradient:[`fill`,`stroke`],marker:[`marker`,`marker-start`,`marker-mid`,`marker-end`],mask:[`mask`],path:[],pattern:[`fill`,`stroke`],radialGradient:[`fill`,`stroke`]},g,_,v,y,b;Object.keys(h).forEach(function(e){g=e,v=h[e],_=i.querySelectorAll(g+`[id]`);for(var t=function(e,t){y=_[e].id,b=y+`-`+Bee();var n;Array.prototype.forEach.call(v,function(e){n=i.querySelectorAll(`[`+e+`*="`+y+`"]`);for(var t=0,r=n.length;t<r;t++){var a=n[t].getAttribute(e);a&&!a.match(RegExp(`url\\("?#`+y+`"?\\)`))||n[t].setAttribute(e,`url(#`+b+`)`)}});for(var r=i.querySelectorAll(`[*|href]`),a=[],o=0,s=r.length;o<s;o++){var c=r[o].getAttributeNS(us,`href`);c&&c.toString()===`#`+_[e].id&&a.push(r[o])}for(var l=0,u=a.length;l<u;l++)a[l].setAttributeNS(us,`href`,`#`+b);_[e].id=b},n=0,r=_.length;n<r;n++)t(n)})}i.removeAttribute(`xmlns:a`);for(var x=i.querySelectorAll(`script`),S=[],C,w,T=0,E=x.length;T<E;T++)w=x[T].getAttribute(`type`),(!w||w===`application/ecmascript`||w===`application/javascript`||w===`text/javascript`)&&(C=x[T].innerText||x[T].textContent,C&&S.push(C),i.removeChild(x[T]));if(S.length>0&&(t===`always`||t===`once`&&!ls[s])){for(var D=0,O=S.length;D<O;D++)Function(S[D])(window);ls[s]=!0}var k=i.querySelectorAll(`style`);if(Array.prototype.forEach.call(k,function(e){e.textContent+=``}),i.setAttribute(`xmlns`,Vee),i.setAttribute(`xmlns:xlink`,us),a(i),!e.parentNode){cs.splice(cs.indexOf(e),1),e=null,o(Error(`Parent node is null`));return}e.parentNode.replaceChild(i,e),cs.splice(cs.indexOf(e),1),e=null,o(null,i)})},Hee=function(e,t){var n=t===void 0?{}:t,r=n.afterAll,i=r===void 0?function(){}:r,a=n.afterEach,o=a===void 0?function(){}:a,s=n.beforeEach,c=s===void 0?function(){}:s,l=n.cacheRequests,u=l===void 0?!0:l,d=n.evalScripts,f=d===void 0?`never`:d,p=n.httpRequestWithCredentials,m=p===void 0?!1:p,h=n.renumerateIRIElements,g=h===void 0?!0:h;if(e&&`length`in e)for(var _=0,v=0,y=e.length;v<y;v++)ds(e[v],f,g,u,m,c,function(t,n){o(t,n),e&&`length`in e&&e.length===++_&&i(_)});else e?ds(e,f,g,u,m,c,function(t,n){o(t,n),i(1),e=null}):i(0)},Uee=i(((e,t)=>{t.exports=`SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED`})),Wee=i(((e,t)=>{var n=Uee();function r(){}function i(){}i.resetWarningCache=r,t.exports=function(){function e(e,t,r,i,a,o){if(o!==n){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name=`Invariant Violation`,s}}e.isRequired=e;function t(){return e}var a={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return a.PropTypes=a,a}})),fs=i(((e,t)=>{t.exports=Wee()()}));Ho(),Wo();var ps=e(fs()),Gee=function(e){return(e?.ownerDocument||document).defaultView||window},Kee=function(e,t){for(var n in e)if(!(n in t))return!0;for(var r in t)if(e[r]!==t[r])return!0;return!1},qee=[`afterInjection`,`beforeInjection`,`desc`,`evalScripts`,`fallback`,`httpRequestWithCredentials`,`loading`,`renumerateIRIElements`,`src`,`title`,`useRequestCache`,`wrapper`],ms=`http://www.w3.org/2000/svg`,hs=`http://www.w3.org/1999/xlink`,gs=function(e){function t(){var t,n=[...arguments];return t=e.call.apply(e,[this].concat(n))||this,t.initialState={hasError:!1,isLoading:!0},t.state=t.initialState,t._isMounted=!1,t.reactWrapper=void 0,t.nonReactWrapper=void 0,t.refCallback=function(e){t.reactWrapper=e},t}Ko(t,e);var n=t.prototype;return n.renderSVG=function(){var e=this;if(this.reactWrapper instanceof Gee(this.reactWrapper).Node){var t=this.props,n=t.desc,r=t.evalScripts,i=t.httpRequestWithCredentials,a=t.renumerateIRIElements,o=t.src,s=t.title,c=t.useRequestCache,l=this.props.onError,u=this.props.beforeInjection,d=this.props.afterInjection,f=this.props.wrapper,p,m;f===`svg`?(p=document.createElementNS(ms,f),p.setAttribute(`xmlns`,ms),p.setAttribute(`xmlns:xlink`,hs),m=document.createElementNS(ms,f)):(p=document.createElement(f),m=document.createElement(f)),p.appendChild(m),m.dataset.src=o,this.nonReactWrapper=this.reactWrapper.appendChild(p);var h=function(t){if(e.removeSVG(),!e._isMounted){l(t);return}e.setState(function(){return{hasError:!0,isLoading:!1}},function(){l(t)})};Hee(m,{afterEach:function(t,n){if(t){h(t);return}e._isMounted&&e.setState(function(){return{isLoading:!1}},function(){try{d(n)}catch(e){h(e)}})},beforeEach:function(e){if(e.setAttribute(`role`,`img`),n){var t=e.querySelector(`:scope > desc`);t&&e.removeChild(t);var r=document.createElement(`desc`);r.innerHTML=n,e.prepend(r)}if(s){var i=e.querySelector(`:scope > title`);i&&e.removeChild(i);var a=document.createElement(`title`);a.innerHTML=s,e.prepend(a)}try{u(e)}catch(e){h(e)}},cacheRequests:c,evalScripts:r,httpRequestWithCredentials:i,renumerateIRIElements:a})}},n.removeSVG=function(){var e;(e=this.nonReactWrapper)!=null&&e.parentNode&&(this.nonReactWrapper.parentNode.removeChild(this.nonReactWrapper),this.nonReactWrapper=null)},n.componentDidMount=function(){this._isMounted=!0,this.renderSVG()},n.componentDidUpdate=function(e){var t=this;Kee(Uo({},e),this.props)&&this.setState(function(){return t.initialState},function(){t.removeSVG(),t.renderSVG()})},n.componentWillUnmount=function(){this._isMounted=!1,this.removeSVG()},n.render=function(){var e=this.props;e.afterInjection,e.beforeInjection,e.desc,e.evalScripts;var t=e.fallback;e.httpRequestWithCredentials;var n=e.loading;e.renumerateIRIElements,e.src,e.title,e.useRequestCache;var r=e.wrapper,i=Vo(e,qee),a=r;return N.createElement(a,Uo({},i,{ref:this.refCallback},r===`svg`?{xmlns:ms,xmlnsXlink:hs}:{}),this.state.isLoading&&n&&N.createElement(n,null),this.state.hasError&&t&&N.createElement(t,null))},t}(N.Component);gs.defaultProps={afterInjection:function(){},beforeInjection:function(){},desc:``,evalScripts:`never`,fallback:null,httpRequestWithCredentials:!1,loading:null,onError:function(){},renumerateIRIElements:!0,title:``,useRequestCache:!0,wrapper:`div`},gs.propTypes={afterInjection:ps.func,beforeInjection:ps.func,desc:ps.string,evalScripts:ps.oneOf([`always`,`once`,`never`]),fallback:ps.oneOfType([ps.func,ps.object,ps.string]),httpRequestWithCredentials:ps.bool,loading:ps.oneOfType([ps.func,ps.object,ps.string]),onError:ps.func,renumerateIRIElements:ps.bool,src:ps.string.isRequired,title:ps.string,useRequestCache:ps.bool,wrapper:ps.oneOf([`div`,`span`,`svg`])};var _s={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},vs=N.createContext&&N.createContext(_s),ys=[`attr`,`size`,`title`];function bs(e,t){if(e==null)return{};var n=xs(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function xs(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Ss(){return Ss=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ss.apply(this,arguments)}function Cs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ws(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Cs(Object(n),!0).forEach(function(t){Ts(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cs(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ts(e,t,n){return t=Es(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Es(e){var t=Ds(e,`string`);return typeof t==`symbol`?t:t+``}function Ds(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Os(e){return e&&e.map((e,t)=>N.createElement(e.tag,ws({key:t},e.attr),Os(e.child)))}function F(e){return t=>N.createElement(ks,Ss({attr:ws({},e.attr)},t),Os(e.child))}function ks(e){var t=t=>{var{attr:n,size:r,title:i}=e,a=bs(e,ys),o=r||t.size||`1em`,s;return t.className&&(s=t.className),e.className&&(s=(s?s+` `:``)+e.className),N.createElement(`svg`,Ss({stroke:`currentColor`,fill:`currentColor`,strokeWidth:`0`},t.attr,n,a,{className:s,style:ws(ws({color:e.color||t.color},t.style),e.style),height:o,width:o,xmlns:`http://www.w3.org/2000/svg`}),i&&N.createElement(`title`,null,i),e.children)};return vs===void 0?t(_s):N.createElement(vs.Consumer,null,e=>t(e))}function As(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M12 9v4`},child:[]},{tag:`path`,attr:{d:`M10.363 3.591l-8.106 13.534a1.914 1.914 0 0 0 1.636 2.871h16.214a1.914 1.914 0 0 0 1.636 -2.87l-8.106 -13.536a1.914 1.914 0 0 0 -3.274 0z`},child:[]},{tag:`path`,attr:{d:`M12 16h.01`},child:[]}]})(e)}function js(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M12 5l0 14`},child:[]},{tag:`path`,attr:{d:`M18 13l-6 6`},child:[]},{tag:`path`,attr:{d:`M6 13l6 6`},child:[]}]})(e)}function Ms(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M5 12l14 0`},child:[]},{tag:`path`,attr:{d:`M5 12l6 6`},child:[]},{tag:`path`,attr:{d:`M5 12l6 -6`},child:[]}]})(e)}function Ns(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M5 12l14 0`},child:[]},{tag:`path`,attr:{d:`M13 18l6 -6`},child:[]},{tag:`path`,attr:{d:`M13 6l6 6`},child:[]}]})(e)}function Ps(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M12 5l0 14`},child:[]},{tag:`path`,attr:{d:`M18 11l-6 -6`},child:[]},{tag:`path`,attr:{d:`M6 11l6 -6`},child:[]}]})(e)}function Fs(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M16 4l4 0l0 4`},child:[]},{tag:`path`,attr:{d:`M14 10l6 -6`},child:[]},{tag:`path`,attr:{d:`M8 20l-4 0l0 -4`},child:[]},{tag:`path`,attr:{d:`M4 20l6 -6`},child:[]}]})(e)}function Is(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M16 4l4 0l0 4`},child:[]},{tag:`path`,attr:{d:`M14 10l6 -6`},child:[]},{tag:`path`,attr:{d:`M8 20l-4 0l0 -4`},child:[]},{tag:`path`,attr:{d:`M4 20l6 -6`},child:[]},{tag:`path`,attr:{d:`M16 20l4 0l0 -4`},child:[]},{tag:`path`,attr:{d:`M14 14l6 6`},child:[]},{tag:`path`,attr:{d:`M8 4l-4 0l0 4`},child:[]},{tag:`path`,attr:{d:`M4 4l6 6`},child:[]}]})(e)}function Ls(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M5 9l4 0l0 -4`},child:[]},{tag:`path`,attr:{d:`M3 3l6 6`},child:[]},{tag:`path`,attr:{d:`M5 15l4 0l0 4`},child:[]},{tag:`path`,attr:{d:`M3 21l6 -6`},child:[]},{tag:`path`,attr:{d:`M19 9l-4 0l0 -4`},child:[]},{tag:`path`,attr:{d:`M15 9l6 -6`},child:[]},{tag:`path`,attr:{d:`M19 15l-4 0l0 4`},child:[]},{tag:`path`,attr:{d:`M15 15l6 6`},child:[]}]})(e)}function Rs(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M18 9l3 3l-3 3`},child:[]},{tag:`path`,attr:{d:`M15 12h6`},child:[]},{tag:`path`,attr:{d:`M6 9l-3 3l3 3`},child:[]},{tag:`path`,attr:{d:`M3 12h6`},child:[]},{tag:`path`,attr:{d:`M9 18l3 3l3 -3`},child:[]},{tag:`path`,attr:{d:`M12 15v6`},child:[]},{tag:`path`,attr:{d:`M15 6l-3 -3l-3 3`},child:[]},{tag:`path`,attr:{d:`M12 3v6`},child:[]}]})(e)}function zs(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M21 17h-8l-3.5 -5h-6.5`},child:[]},{tag:`path`,attr:{d:`M21 7h-8l-3.495 5`},child:[]},{tag:`path`,attr:{d:`M18 10l3 -3l-3 -3`},child:[]},{tag:`path`,attr:{d:`M18 20l3 -3l-3 -3`},child:[]}]})(e)}function Bs(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M10 5a2 2 0 1 1 4 0a7 7 0 0 1 4 6v3a4 4 0 0 0 2 3h-16a4 4 0 0 0 2 -3v-3a7 7 0 0 1 4 -6`},child:[]},{tag:`path`,attr:{d:`M9 17v1a3 3 0 0 0 6 0v-1`},child:[]}]})(e)}function Vs(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M7 5h6a3.5 3.5 0 0 1 0 7h-6z`},child:[]},{tag:`path`,attr:{d:`M13 12h1a3.5 3.5 0 0 1 0 7h-7v-7`},child:[]}]})(e)}function Hs(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M13 3l0 7l6 0l-8 11l0 -7l-6 0l8 -11`},child:[]}]})(e)}function Us(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M19 4v16h-12a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2h12z`},child:[]},{tag:`path`,attr:{d:`M19 16h-12a2 2 0 0 0 -2 2`},child:[]},{tag:`path`,attr:{d:`M9 8h6`},child:[]}]})(e)}function Ws(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M3 21l18 0`},child:[]},{tag:`path`,attr:{d:`M5 21v-14l8 -4v18`},child:[]},{tag:`path`,attr:{d:`M19 21v-10l-6 -4`},child:[]},{tag:`path`,attr:{d:`M9 9l0 .01`},child:[]},{tag:`path`,attr:{d:`M9 12l0 .01`},child:[]},{tag:`path`,attr:{d:`M9 15l0 .01`},child:[]},{tag:`path`,attr:{d:`M9 18l0 .01`},child:[]}]})(e)}function Gs(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M5 7h1a2 2 0 0 0 2 -2a1 1 0 0 1 1 -1h6a1 1 0 0 1 1 1a2 2 0 0 0 2 2h1a2 2 0 0 1 2 2v9a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-9a2 2 0 0 1 2 -2`},child:[]},{tag:`path`,attr:{d:`M9 13a3 3 0 1 0 6 0a3 3 0 0 0 -6 0`},child:[]}]})(e)}function Ks(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M3 13a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v6a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z`},child:[]},{tag:`path`,attr:{d:`M15 9a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v10a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z`},child:[]},{tag:`path`,attr:{d:`M9 5a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v14a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z`},child:[]},{tag:`path`,attr:{d:`M4 20h14`},child:[]}]})(e)}function qs(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M4 19l16 0`},child:[]},{tag:`path`,attr:{d:`M4 15l4 -6l4 2l4 -5l4 4`},child:[]}]})(e)}function Js(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M12 3v9h9`},child:[]},{tag:`path`,attr:{d:`M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0`},child:[]}]})(e)}function Ys(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M5 12l5 5l10 -10`},child:[]}]})(e)}function Xs(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M6 9l6 6l6 -6`},child:[]}]})(e)}function Zs(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M15 6l-6 6l6 6`},child:[]}]})(e)}function Qs(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M9 6l6 6l-6 6`},child:[]}]})(e)}function $s(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M6 15l6 -6l6 6`},child:[]}]})(e)}function ec(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M11 7l-5 5l5 5`},child:[]},{tag:`path`,attr:{d:`M17 7l-5 5l5 5`},child:[]}]})(e)}function tc(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M7 7l5 5l-5 5`},child:[]},{tag:`path`,attr:{d:`M13 7l5 5l-5 5`},child:[]}]})(e)}function nc(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0`},child:[]},{tag:`path`,attr:{d:`M9 12l2 2l4 -4`},child:[]}]})(e)}function rc(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0`},child:[]},{tag:`path`,attr:{d:`M10 10l4 4m0 -4l-4 4`},child:[]}]})(e)}function ic(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0`},child:[]}]})(e)}function ac(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M9 5h-2a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-12a2 2 0 0 0 -2 -2h-2`},child:[]},{tag:`path`,attr:{d:`M9 3m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v0a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z`},child:[]}]})(e)}function oc(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0`},child:[]},{tag:`path`,attr:{d:`M12 7v5l3 3`},child:[]}]})(e)}function sc(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M7 8l-4 4l4 4`},child:[]},{tag:`path`,attr:{d:`M17 8l4 4l-4 4`},child:[]},{tag:`path`,attr:{d:`M14 4l-4 16`},child:[]}]})(e)}function cc(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M7 7m0 2.667a2.667 2.667 0 0 1 2.667 -2.667h8.666a2.667 2.667 0 0 1 2.667 2.667v8.666a2.667 2.667 0 0 1 -2.667 2.667h-8.666a2.667 2.667 0 0 1 -2.667 -2.667z`},child:[]},{tag:`path`,attr:{d:`M4.012 16.737a2.005 2.005 0 0 1 -1.012 -1.737v-10c0 -1.1 .9 -2 2 -2h10c.75 0 1.158 .385 1.5 1`},child:[]}]})(e)}function lc(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M6 6v6a3 3 0 0 0 3 3h10l-4 -4m0 8l4 -4`},child:[]}]})(e)}function uc(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M6 4h10l4 4v10a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2`},child:[]},{tag:`path`,attr:{d:`M12 14m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`},child:[]},{tag:`path`,attr:{d:`M14 4l0 4l-6 0l0 -4`},child:[]}]})(e)}function dc(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M3 19l18 0`},child:[]},{tag:`path`,attr:{d:`M5 6m0 1a1 1 0 0 1 1 -1h12a1 1 0 0 1 1 1v8a1 1 0 0 1 -1 1h-12a1 1 0 0 1 -1 -1z`},child:[]}]})(e)}function fc(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`},child:[]},{tag:`path`,attr:{d:`M12 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`},child:[]},{tag:`path`,attr:{d:`M12 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`},child:[]}]})(e)}function pc(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2`},child:[]},{tag:`path`,attr:{d:`M7 11l5 5l5 -5`},child:[]},{tag:`path`,attr:{d:`M12 4l0 12`},child:[]}]})(e)}function mc(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M7.502 19.423c2.602 2.105 6.395 2.105 8.996 0c2.602 -2.105 3.262 -5.708 1.566 -8.546l-4.89 -7.26c-.42 -.625 -1.287 -.803 -1.936 -.397a1.376 1.376 0 0 0 -.41 .397l-4.893 7.26c-1.695 2.838 -1.035 6.441 1.567 8.546z`},child:[]}]})(e)}function hc(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M12 19v.01`},child:[]},{tag:`path`,attr:{d:`M12 15v-10`},child:[]}]})(e)}function gc(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M12 6h-6a2 2 0 0 0 -2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-6`},child:[]},{tag:`path`,attr:{d:`M11 13l9 -9`},child:[]},{tag:`path`,attr:{d:`M15 4h5v5`},child:[]}]})(e)}function _c(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M10.585 10.587a2 2 0 0 0 2.829 2.828`},child:[]},{tag:`path`,attr:{d:`M16.681 16.673a8.717 8.717 0 0 1 -4.681 1.327c-3.6 0 -6.6 -2 -9 -6c1.272 -2.12 2.712 -3.678 4.32 -4.674m2.86 -1.146a9.055 9.055 0 0 1 1.82 -.18c3.6 0 6.6 2 9 6c-.666 1.11 -1.379 2.067 -2.138 2.87`},child:[]},{tag:`path`,attr:{d:`M3 3l18 18`},child:[]}]})(e)}function vc(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M10 12a2 2 0 1 0 4 0a2 2 0 0 0 -4 0`},child:[]},{tag:`path`,attr:{d:`M21 12c-2.4 4 -5.4 6 -9 6c-3.6 0 -6.6 -2 -9 -6c2.4 -4 5.4 -6 9 -6c3.6 0 6.6 2 9 6`},child:[]}]})(e)}function yc(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M14 3v4a1 1 0 0 0 1 1h4`},child:[]},{tag:`path`,attr:{d:`M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z`},child:[]}]})(e)}function bc(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M8 4h12v2.172a2 2 0 0 1 -.586 1.414l-3.914 3.914m-.5 3.5v4l-6 2v-8.5l-4.48 -4.928a2 2 0 0 1 -.52 -1.345v-2.227`},child:[]},{tag:`path`,attr:{d:`M3 3l18 18`},child:[]}]})(e)}function xc(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M4 4h16v2.172a2 2 0 0 1 -.586 1.414l-4.414 4.414v7l-6 2v-8.5l-4.48 -4.928a2 2 0 0 1 -.52 -1.345v-2.227z`},child:[]}]})(e)}function Sc(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`},child:[]},{tag:`path`,attr:{d:`M4 8v-2a2 2 0 0 1 2 -2h2`},child:[]},{tag:`path`,attr:{d:`M4 16v2a2 2 0 0 0 2 2h2`},child:[]},{tag:`path`,attr:{d:`M16 4h2a2 2 0 0 1 2 2v2`},child:[]},{tag:`path`,attr:{d:`M16 20h2a2 2 0 0 0 2 -2v-2`},child:[]}]})(e)}function Cc(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M11 19h-6a2 2 0 0 1 -2 -2v-11a2 2 0 0 1 2 -2h4l3 3h7a2 2 0 0 1 2 2v2.5`},child:[]},{tag:`path`,attr:{d:`M18 18m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0`},child:[]},{tag:`path`,attr:{d:`M20.2 20.2l1.8 1.8`},child:[]}]})(e)}function wc(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M5 4h4l3 3h7a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-11a2 2 0 0 1 2 -2`},child:[]}]})(e)}function Tc(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0`},child:[]},{tag:`path`,attr:{d:`M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`},child:[]},{tag:`path`,attr:{d:`M13.41 10.59l2.59 -2.59`},child:[]},{tag:`path`,attr:{d:`M7 12a5 5 0 0 1 5 -5`},child:[]}]})(e)}function Ec(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M12 18m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`},child:[]},{tag:`path`,attr:{d:`M7 6m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`},child:[]},{tag:`path`,attr:{d:`M17 6m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`},child:[]},{tag:`path`,attr:{d:`M7 8v2a2 2 0 0 0 2 2h6a2 2 0 0 0 2 -2v-2`},child:[]},{tag:`path`,attr:{d:`M12 12l0 4`},child:[]}]})(e)}function Dc(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M9 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`},child:[]},{tag:`path`,attr:{d:`M9 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`},child:[]},{tag:`path`,attr:{d:`M9 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`},child:[]},{tag:`path`,attr:{d:`M15 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`},child:[]},{tag:`path`,attr:{d:`M15 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`},child:[]},{tag:`path`,attr:{d:`M15 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`},child:[]}]})(e)}function Oc(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0`},child:[]},{tag:`path`,attr:{d:`M12 17l0 .01`},child:[]},{tag:`path`,attr:{d:`M12 13.5a1.5 1.5 0 0 1 1 -1.5a2.6 2.6 0 1 0 -3 -4`},child:[]}]})(e)}function kc(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0`},child:[]},{tag:`path`,attr:{d:`M12 9h.01`},child:[]},{tag:`path`,attr:{d:`M11 12h1v4h1`},child:[]}]})(e)}function Ac(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M11 5l6 0`},child:[]},{tag:`path`,attr:{d:`M7 19l6 0`},child:[]},{tag:`path`,attr:{d:`M14 5l-4 14`},child:[]}]})(e)}function jc(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M16.555 3.843l3.602 3.602a2.877 2.877 0 0 1 0 4.069l-2.643 2.643a2.877 2.877 0 0 1 -4.069 0l-.301 -.301l-6.558 6.558a2 2 0 0 1 -1.239 .578l-.175 .008h-1.172a1 1 0 0 1 -.993 -.883l-.007 -.117v-1.172a2 2 0 0 1 .467 -1.284l.119 -.13l.414 -.414h2v-2h2v-2l2.144 -2.144l-.301 -.301a2.877 2.877 0 0 1 0 -4.069l2.643 -2.643a2.877 2.877 0 0 1 4.069 0z`},child:[]},{tag:`path`,attr:{d:`M15 9h.01`},child:[]}]})(e)}function Mc(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z`},child:[]},{tag:`path`,attr:{d:`M12 4l0 16`},child:[]}]})(e)}function Nc(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z`},child:[]},{tag:`path`,attr:{d:`M4 12l16 0`},child:[]}]})(e)}function Pc(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M7 3m0 2.667a2.667 2.667 0 0 1 2.667 -2.667h8.666a2.667 2.667 0 0 1 2.667 2.667v8.666a2.667 2.667 0 0 1 -2.667 2.667h-8.666a2.667 2.667 0 0 1 -2.667 -2.667z`},child:[]},{tag:`path`,attr:{d:`M4.012 7.26a2.005 2.005 0 0 0 -1.012 1.737v10c0 1.1 .9 2 2 2h10c.75 0 1.158 -.385 1.5 -1`},child:[]},{tag:`path`,attr:{d:`M11 10h6`},child:[]}]})(e)}function Fc(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M7 3m0 2.667a2.667 2.667 0 0 1 2.667 -2.667h8.666a2.667 2.667 0 0 1 2.667 2.667v8.666a2.667 2.667 0 0 1 -2.667 2.667h-8.666a2.667 2.667 0 0 1 -2.667 -2.667z`},child:[]},{tag:`path`,attr:{d:`M4.012 7.26a2.005 2.005 0 0 0 -1.012 1.737v10c0 1.1 .9 2 2 2h10c.75 0 1.158 -.385 1.5 -1`},child:[]},{tag:`path`,attr:{d:`M11 10h6`},child:[]},{tag:`path`,attr:{d:`M14 7v6`},child:[]}]})(e)}function Ic(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M9 15l3 -3m2 -2l1 -1`},child:[]},{tag:`path`,attr:{d:`M11 6l.463 -.536a5 5 0 0 1 7.071 7.072l-.534 .464`},child:[]},{tag:`path`,attr:{d:`M3 3l18 18`},child:[]},{tag:`path`,attr:{d:`M13 18l-.397 .534a5.068 5.068 0 0 1 -7.127 0a4.972 4.972 0 0 1 0 -7.071l.524 -.463`},child:[]}]})(e)}function Lc(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M9 15l6 -6`},child:[]},{tag:`path`,attr:{d:`M11 6l.463 -.536a5 5 0 0 1 7.071 7.072l-.534 .464`},child:[]},{tag:`path`,attr:{d:`M13 18l-.397 .534a5.068 5.068 0 0 1 -7.127 0a4.972 4.972 0 0 1 0 -7.071l.524 -.463`},child:[]}]})(e)}function Rc(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M11 6h9`},child:[]},{tag:`path`,attr:{d:`M11 12h9`},child:[]},{tag:`path`,attr:{d:`M12 18h8`},child:[]},{tag:`path`,attr:{d:`M4 16a2 2 0 1 1 4 0c0 .591 -.5 1 -1 1.5l-3 2.5h4`},child:[]},{tag:`path`,attr:{d:`M6 10v-6l-2 2`},child:[]}]})(e)}function zc(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M9 6l11 0`},child:[]},{tag:`path`,attr:{d:`M9 12l11 0`},child:[]},{tag:`path`,attr:{d:`M9 18l11 0`},child:[]},{tag:`path`,attr:{d:`M5 6l0 .01`},child:[]},{tag:`path`,attr:{d:`M5 12l0 .01`},child:[]},{tag:`path`,attr:{d:`M5 18l0 .01`},child:[]}]})(e)}function Bc(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M12 3a9 9 0 1 0 9 9`},child:[]}]})(e)}function Vc(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M5 11m0 2a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v6a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2z`},child:[]},{tag:`path`,attr:{d:`M12 16m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`},child:[]},{tag:`path`,attr:{d:`M8 11v-5a4 4 0 0 1 8 0`},child:[]}]})(e)}function Hc(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M5 13a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v6a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-6z`},child:[]},{tag:`path`,attr:{d:`M11 16a1 1 0 1 0 2 0a1 1 0 0 0 -2 0`},child:[]},{tag:`path`,attr:{d:`M8 11v-4a4 4 0 1 1 8 0v4`},child:[]}]})(e)}function Uc(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M9 11a3 3 0 1 0 6 0a3 3 0 0 0 -6 0`},child:[]},{tag:`path`,attr:{d:`M17.657 16.657l-4.243 4.243a2 2 0 0 1 -2.827 0l-4.244 -4.243a8 8 0 1 1 11.314 0z`},child:[]}]})(e)}function Wc(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M3 20l1.3 -3.9c-2.324 -3.437 -1.426 -7.872 2.1 -10.374c3.526 -2.501 8.59 -2.296 11.845 .48c3.255 2.777 3.695 7.266 1.029 10.501c-2.666 3.235 -7.615 4.215 -11.574 2.293l-4.7 1`},child:[]}]})(e)}function Gc(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M5 12l14 0`},child:[]}]})(e)}function Kc(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M12 3c.132 0 .263 0 .393 0a7.5 7.5 0 0 0 7.92 12.446a9 9 0 1 1 -8.313 -12.454z`},child:[]}]})(e)}function qc(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z`},child:[]},{tag:`path`,attr:{d:`M8 4l0 16`},child:[]},{tag:`path`,attr:{d:`M16 4l0 16`},child:[]},{tag:`path`,attr:{d:`M4 8l4 0`},child:[]},{tag:`path`,attr:{d:`M4 16l4 0`},child:[]},{tag:`path`,attr:{d:`M4 12l16 0`},child:[]},{tag:`path`,attr:{d:`M16 8l4 0`},child:[]},{tag:`path`,attr:{d:`M16 16l4 0`},child:[]}]})(e)}function Jc(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M13 20l7 -7`},child:[]},{tag:`path`,attr:{d:`M13 20v-6a1 1 0 0 1 1 -1h6v-7a2 2 0 0 0 -2 -2h-12a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h7`},child:[]}]})(e)}function Yc(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M4 20h4l10.5 -10.5a2.828 2.828 0 1 0 -4 -4l-10.5 10.5v4`},child:[]},{tag:`path`,attr:{d:`M13.5 6.5l4 4`},child:[]}]})(e)}function Xc(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M6 5m0 1a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v12a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1z`},child:[]},{tag:`path`,attr:{d:`M14 5m0 1a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v12a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1z`},child:[]}]})(e)}function Zc(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M7 4v16l13 -8z`},child:[]}]})(e)}function Qc(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M20 5v14l-12 -7z`},child:[]},{tag:`path`,attr:{d:`M4 5l0 14`},child:[]}]})(e)}function $c(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M4 5v14l12 -7z`},child:[]},{tag:`path`,attr:{d:`M20 5l0 14`},child:[]}]})(e)}function el(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M5 5m0 2a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2z`},child:[]}]})(e)}function tl(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M3 5v14l8 -7z`},child:[]},{tag:`path`,attr:{d:`M14 5v14l8 -7z`},child:[]}]})(e)}function nl(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M21 5v14l-8 -7z`},child:[]},{tag:`path`,attr:{d:`M10 5v14l-8 -7z`},child:[]}]})(e)}function rl(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M12 5l0 14`},child:[]},{tag:`path`,attr:{d:`M5 12l14 0`},child:[]}]})(e)}function il(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M8 8a3.5 3 0 0 1 3.5 -3h1a3.5 3 0 0 1 3.5 3a3 3 0 0 1 -2 3a3 4 0 0 0 -2 4`},child:[]},{tag:`path`,attr:{d:`M12 19l0 .01`},child:[]}]})(e)}function al(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4`},child:[]},{tag:`path`,attr:{d:`M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4`},child:[]}]})(e)}function ol(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M19.933 13.041a8 8 0 1 1 -9.925 -8.788c3.899 -1 7.935 1.007 9.425 4.747`},child:[]},{tag:`path`,attr:{d:`M20 4v5h-5`},child:[]}]})(e)}function sl(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M19.95 11a8 8 0 1 0 -.5 4m.5 5v-5h-5`},child:[]}]})(e)}function cl(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M20 6v4a1 1 0 0 1 -1 1h-14a1 1 0 0 1 -1 -1v-4a1 1 0 0 1 1 -1h14a1 1 0 0 1 1 1z`},child:[]},{tag:`path`,attr:{d:`M12 15l0 4`},child:[]},{tag:`path`,attr:{d:`M14 17l-4 0`},child:[]}]})(e)}function ll(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M4 18v-4a1 1 0 0 1 1 -1h14a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-14a1 1 0 0 1 -1 -1z`},child:[]},{tag:`path`,attr:{d:`M12 9v-4`},child:[]},{tag:`path`,attr:{d:`M10 7l4 0`},child:[]}]})(e)}function ul(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M19.875 8c.621 0 1.125 .512 1.125 1.143v5.714c0 .631 -.504 1.143 -1.125 1.143h-15.875a1 1 0 0 1 -1 -1v-5.857c0 -.631 .504 -1.143 1.125 -1.143h15.75z`},child:[]},{tag:`path`,attr:{d:`M9 8v2`},child:[]},{tag:`path`,attr:{d:`M6 8v3`},child:[]},{tag:`path`,attr:{d:`M12 8v3`},child:[]},{tag:`path`,attr:{d:`M18 8v3`},child:[]},{tag:`path`,attr:{d:`M15 8v2`},child:[]}]})(e)}function dl(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M7 20l10 0`},child:[]},{tag:`path`,attr:{d:`M6 6l6 -1l6 1`},child:[]},{tag:`path`,attr:{d:`M12 3l0 17`},child:[]},{tag:`path`,attr:{d:`M9 12l-3 -6l-3 6a3 3 0 0 0 6 0`},child:[]},{tag:`path`,attr:{d:`M21 12l-3 -6l-3 6a3 3 0 0 0 6 0`},child:[]}]})(e)}function fl(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0`},child:[]},{tag:`path`,attr:{d:`M21 21l-6 -6`},child:[]}]})(e)}function pl(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M3 4m0 3a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v2a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3z`},child:[]},{tag:`path`,attr:{d:`M3 12m0 3a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v2a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3z`},child:[]},{tag:`path`,attr:{d:`M7 8l0 .01`},child:[]},{tag:`path`,attr:{d:`M7 16l0 .01`},child:[]}]})(e)}function ml(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M10.325 4.317c.426 -1.756 2.924 -1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543 -.94 3.31 .826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c1.756 .426 1.756 2.924 0 3.35a1.724 1.724 0 0 0 -1.066 2.573c.94 1.543 -.826 3.31 -2.37 2.37a1.724 1.724 0 0 0 -2.572 1.065c-.426 1.756 -2.924 1.756 -3.35 0a1.724 1.724 0 0 0 -2.573 -1.066c-1.543 .94 -3.31 -.826 -2.37 -2.37a1.724 1.724 0 0 0 -1.065 -2.572c-1.756 -.426 -1.756 -2.924 0 -3.35a1.724 1.724 0 0 0 1.066 -2.573c-.94 -1.543 .826 -3.31 2.37 -2.37c1 .608 2.296 .07 2.572 -1.065z`},child:[]},{tag:`path`,attr:{d:`M9 12a3 3 0 1 0 6 0a3 3 0 0 0 -6 0`},child:[]}]})(e)}function hl(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M4 6l7 0`},child:[]},{tag:`path`,attr:{d:`M4 12l7 0`},child:[]},{tag:`path`,attr:{d:`M4 18l9 0`},child:[]},{tag:`path`,attr:{d:`M15 9l3 -3l3 3`},child:[]},{tag:`path`,attr:{d:`M18 6l0 12`},child:[]}]})(e)}function gl(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M4 6l9 0`},child:[]},{tag:`path`,attr:{d:`M4 12l7 0`},child:[]},{tag:`path`,attr:{d:`M4 18l7 0`},child:[]},{tag:`path`,attr:{d:`M15 15l3 3l3 -3`},child:[]},{tag:`path`,attr:{d:`M18 6l0 12`},child:[]}]})(e)}function _l(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M9 12h6`},child:[]},{tag:`path`,attr:{d:`M12 9v6`},child:[]},{tag:`path`,attr:{d:`M3 5a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14z`},child:[]}]})(e)}function vl(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M12 17.75l-6.172 3.245l1.179 -6.873l-5 -4.867l6.9 -1l3.086 -6.253l3.086 6.253l6.9 1l-5 4.867l1.179 6.873z`},child:[]}]})(e)}function yl(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M12 12m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0`},child:[]},{tag:`path`,attr:{d:`M3 12h1m8 -9v1m8 8h1m-9 8v1m-6.4 -15.4l.7 .7m12.1 -.7l-.7 .7m0 11.4l.7 .7m-12.1 -.7l-.7 .7`},child:[]}]})(e)}function bl(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M3 5a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14z`},child:[]},{tag:`path`,attr:{d:`M3 10h18`},child:[]},{tag:`path`,attr:{d:`M10 3v18`},child:[]}]})(e)}function xl(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`},child:[]},{tag:`path`,attr:{d:`M12 12m-5 0a5 5 0 1 0 10 0a5 5 0 1 0 -10 0`},child:[]},{tag:`path`,attr:{d:`M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0`},child:[]}]})(e)}function Sl(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M4 7l16 0`},child:[]},{tag:`path`,attr:{d:`M10 11l0 6`},child:[]},{tag:`path`,attr:{d:`M14 11l0 6`},child:[]},{tag:`path`,attr:{d:`M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12`},child:[]},{tag:`path`,attr:{d:`M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3`},child:[]}]})(e)}function Cl(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2`},child:[]},{tag:`path`,attr:{d:`M7 9l5 -5l5 5`},child:[]},{tag:`path`,attr:{d:`M12 4l0 12`},child:[]}]})(e)}function wl(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0`},child:[]},{tag:`path`,attr:{d:`M6 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2`},child:[]}]})(e)}function Tl(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M9 7m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0`},child:[]},{tag:`path`,attr:{d:`M3 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2`},child:[]},{tag:`path`,attr:{d:`M16 3.13a4 4 0 0 1 0 7.75`},child:[]},{tag:`path`,attr:{d:`M21 21v-2a4 4 0 0 0 -3 -3.85`},child:[]}]})(e)}function El(e){return F({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M18 6l-12 12`},child:[]},{tag:`path`,attr:{d:`M6 6l12 12`},child:[]}]})(e)}function Dl(e,t){return e.classList?!!t&&e.classList.contains(t):(` `+(e.className.baseVal||e.className)+` `).indexOf(` `+t+` `)!==-1}function Ol(e,t){e.classList?e.classList.add(t):Dl(e,t)||(typeof e.className==`string`?e.className=e.className+` `+t:e.setAttribute(`class`,(e.className&&e.className.baseVal||``)+` `+t))}function kl(e,t){return e.replace(RegExp(`(^|\\s)`+t+`(?:\\s|$)`,`g`),`$1`).replace(/\s+/g,` `).replace(/^\s*|\s*$/g,``)}function Al(e,t){e.classList?e.classList.remove(t):typeof e.className==`string`?e.className=kl(e.className,t):e.setAttribute(`class`,kl(e.className&&e.className.baseVal||``,t))}var jl={disabled:!1},Ml=N.createContext(null),Nl=function(e){return e.scrollTop};Ho();var Pl=e(s()),Fl=`unmounted`,Il=`exited`,Ll=`entering`,Rl=`entered`,zl=`exiting`,Bl=function(e){Ko(t,e);function t(t,n){var r=e.call(this,t,n)||this,i=n,a=i&&!i.isMounting?t.enter:t.appear,o;return r.appearStatus=null,t.in?a?(o=Il,r.appearStatus=Ll):o=Rl:o=t.unmountOnExit||t.mountOnEnter?Fl:Il,r.state={status:o},r.nextCallback=null,r}t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===`unmounted`?{status:Il}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==`entering`&&n!==`entered`&&(t=Ll):(n===`entering`||n===`entered`)&&(t=zl)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e=this.props.timeout,t=n=r=e,n,r;return e!=null&&typeof e!=`number`&&(t=e.exit,n=e.enter,r=e.appear===void 0?n:e.appear),{exit:t,enter:n,appear:r}},n.updateStatus=function(e,t){if(e===void 0&&(e=!1),t!==null)if(this.cancelNextCallback(),t===`entering`){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:Pl.findDOMNode(this);n&&Nl(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===`exited`&&this.setState({status:Fl})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[Pl.findDOMNode(this),r],a=i[0],o=i[1],s=this.getTimeouts(),c=r?s.appear:s.enter;if(!e&&!n||jl.disabled){this.safeSetState({status:Rl},function(){t.props.onEntered(a)});return}this.props.onEnter(a,o),this.safeSetState({status:Ll},function(){t.props.onEntering(a,o),t.onTransitionEnd(c,function(){t.safeSetState({status:Rl},function(){t.props.onEntered(a,o)})})})},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:Pl.findDOMNode(this);if(!t||jl.disabled){this.safeSetState({status:Il},function(){e.props.onExited(r)});return}this.props.onExit(r),this.safeSetState({status:zl},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:Il},function(){e.props.onExited(r)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:Pl.findDOMNode(this),r=e==null&&!this.props.addEndListener;if(!n||r){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],a=i[0],o=i[1];this.props.addEndListener(a,o)}e!=null&&setTimeout(this.nextCallback,e)},n.render=function(){var e=this.state.status;if(e===`unmounted`)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=Vo(t,[`children`,`in`,`mountOnEnter`,`unmountOnExit`,`appear`,`enter`,`exit`,`timeout`,`addEndListener`,`onEnter`,`onEntering`,`onEntered`,`onExit`,`onExiting`,`onExited`,`nodeRef`]);return N.createElement(Ml.Provider,{value:null},typeof n==`function`?n(e,r):N.cloneElement(N.Children.only(n),r))},t}(N.Component);Bl.contextType=Ml,Bl.propTypes={};function Vl(){}Bl.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Vl,onEntering:Vl,onEntered:Vl,onExit:Vl,onExiting:Vl,onExited:Vl},Bl.UNMOUNTED=Fl,Bl.EXITED=Il,Bl.ENTERING=Ll,Bl.ENTERED=Rl,Bl.EXITING=zl,Wo(),Ho();var Jee=function(e,t){return e&&t&&t.split(` `).forEach(function(t){return Ol(e,t)})},Hl=function(e,t){return e&&t&&t.split(` `).forEach(function(t){return Al(e,t)})},Ul=function(e){Ko(t,e);function t(){var t,n=[...arguments];return t=e.call.apply(e,[this].concat(n))||this,t.appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),i=r[0],a=r[1];t.removeClasses(i,`exit`),t.addClass(i,a?`appear`:`enter`,`base`),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),i=r[0],a=r[1]?`appear`:`enter`;t.addClass(i,a,`active`),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),i=r[0],a=r[1]?`appear`:`enter`;t.removeClasses(i,a),t.addClass(i,a,`done`),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,`appear`),t.removeClasses(n,`enter`),t.addClass(n,`exit`,`base`),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,`exit`,`active`),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,`exit`),t.addClass(n,`exit`,`done`),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r=typeof n==`string`,i=r&&n?n+`-`:``,a=r?``+i+e:n[e];return{baseClassName:a,activeClassName:r?a+`-active`:n[e+`Active`],doneClassName:r?a+`-done`:n[e+`Done`]}},t}var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+`ClassName`],i=this.getClassNames(`enter`).doneClassName;t===`appear`&&n===`done`&&i&&(r+=` `+i),n===`active`&&e&&Nl(e),r&&(this.appliedClasses[t][n]=r,Jee(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,i=n.active,a=n.done;this.appliedClasses[t]={},r&&Hl(e,r),i&&Hl(e,i),a&&Hl(e,a)},n.render=function(){var e=this.props;e.classNames;var t=Vo(e,[`classNames`]);return N.createElement(Bl,Uo({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(N.Component);Ul.defaultProps={classNames:``},Ul.propTypes={};function Wl(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}var Gl=(function(){if(typeof Map<`u`)return Map;function e(e,t){var n=-1;return e.some(function(e,r){return e[0]===t?(n=r,!0):!1}),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,`size`,{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){t===void 0&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var i=r[n];e.call(t,i[1],i[0])}},t}()})(),Kl=typeof window<`u`&&typeof document<`u`&&window.document===document,ql=(function(){return typeof global<`u`&&global.Math===Math?global:typeof self<`u`&&self.Math===Math?self:typeof window<`u`&&window.Math===Math?window:Function(`return this`)()})(),Yee=(function(){return typeof requestAnimationFrame==`function`?requestAnimationFrame.bind(ql):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}})(),Xee=2;function Zee(e,t){var n=!1,r=!1,i=0;function a(){n&&(n=!1,e()),r&&s()}function o(){Yee(a)}function s(){var e=Date.now();if(n){if(e-i<Xee)return;r=!0}else n=!0,r=!1,setTimeout(o,t);i=e}return s}var Qee=20,$ee=[`top`,`right`,`bottom`,`left`,`width`,`height`,`size`,`weight`],ete=typeof MutationObserver<`u`,tte=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=Zee(this.refresh.bind(this),Qee)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter(function(e){return e.gatherActive(),e.hasActive()});return e.forEach(function(e){return e.broadcastActive()}),e.length>0},e.prototype.connect_=function(){!Kl||this.connected_||(document.addEventListener(`transitionend`,this.onTransitionEnd_),window.addEventListener(`resize`,this.refresh),ete?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener(`DOMSubtreeModified`,this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!Kl||!this.connected_||(document.removeEventListener(`transitionend`,this.onTransitionEnd_),window.removeEventListener(`resize`,this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener(`DOMSubtreeModified`,this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=t===void 0?``:t;$ee.some(function(e){return!!~n.indexOf(e)})&&this.refresh()},e.getInstance=function(){return this.instance_||=new e,this.instance_},e.instance_=null,e}(),Jl=(function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e}),Yl=(function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||ql}),Xl=$l(0,0,0,0);function Zl(e){return parseFloat(e)||0}function Ql(e){return[...arguments].slice(1).reduce(function(t,n){var r=e[`border-`+n+`-width`];return t+Zl(r)},0)}function nte(e){for(var t=[`top`,`right`,`bottom`,`left`],n={},r=0,i=t;r<i.length;r++){var a=i[r],o=e[`padding-`+a];n[a]=Zl(o)}return n}function rte(e){var t=e.getBBox();return $l(0,0,t.width,t.height)}function ite(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return Xl;var r=Yl(e).getComputedStyle(e),i=nte(r),a=i.left+i.right,o=i.top+i.bottom,s=Zl(r.width),c=Zl(r.height);if(r.boxSizing===`border-box`&&(Math.round(s+a)!==t&&(s-=Ql(r,`left`,`right`)+a),Math.round(c+o)!==n&&(c-=Ql(r,`top`,`bottom`)+o)),!ote(e)){var l=Math.round(s+a)-t,u=Math.round(c+o)-n;Math.abs(l)!==1&&(s-=l),Math.abs(u)!==1&&(c-=u)}return $l(i.left,i.top,s,c)}var ate=(function(){return typeof SVGGraphicsElement<`u`?function(e){return e instanceof Yl(e).SVGGraphicsElement}:function(e){return e instanceof Yl(e).SVGElement&&typeof e.getBBox==`function`}})();function ote(e){return e===Yl(e).document.documentElement}function ste(e){return Kl?ate(e)?rte(e):ite(e):Xl}function cte(e){var t=e.x,n=e.y,r=e.width,i=e.height,a=typeof DOMRectReadOnly<`u`?DOMRectReadOnly:Object,o=Object.create(a.prototype);return Jl(o,{x:t,y:n,width:r,height:i,top:n,right:t+r,bottom:i+n,left:t}),o}function $l(e,t,n,r){return{x:e,y:t,width:n,height:r}}var lte=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=$l(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=ste(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),ute=function(){function e(e,t){var n=cte(t);Jl(this,{target:e,contentRect:n})}return e}(),dte=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new Gl,typeof e!=`function`)throw TypeError(`The callback provided as parameter 1 is not a function.`);this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw TypeError(`1 argument required, but only 0 present.`);if(!(typeof Element>`u`||!(Element instanceof Object))){if(!(e instanceof Yl(e).Element))throw TypeError(`parameter 1 is not of type "Element".`);var t=this.observations_;t.has(e)||(t.set(e,new lte(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw TypeError(`1 argument required, but only 0 present.`);if(!(typeof Element>`u`||!(Element instanceof Object))){if(!(e instanceof Yl(e).Element))throw TypeError(`parameter 1 is not of type "Element".`);var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&e.activeObservations_.push(t)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map(function(e){return new ute(e.target,e.broadcastRect())});this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),eu=typeof WeakMap<`u`?new WeakMap:new Gl,tu=function(){function e(t){if(!(this instanceof e))throw TypeError(`Cannot call a class as a function.`);if(!arguments.length)throw TypeError(`1 argument required, but only 0 present.`);var n=new dte(t,tte.getInstance(),this);eu.set(this,n)}return e}();[`observe`,`unobserve`,`disconnect`].forEach(function(e){tu.prototype[e]=function(){var t;return(t=eu.get(this))[e].apply(t,arguments)}});var nu=(function(){return ql.ResizeObserver===void 0?tu:ql.ResizeObserver})(),fte=!0;function pte(e,t){if(!fte){if(e)return;var n=`Warning: `+t;typeof console<`u`&&console.warn(n);try{throw Error(n)}catch{}}}function ru(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function iu(e,t,n){return t&&ru(e.prototype,t),n&&ru(e,n),e}function au(){return au=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},au.apply(this,arguments)}function mte(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ou(e,t)}function ou(e,t){return ou=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ou(e,t)}function hte(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function gte(e,t){if(e){if(typeof e==`string`)return su(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return su(e,t)}}function su(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function cu(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=gte(e))||t&&e&&typeof e.length==`number`){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
3
3
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lu(e){var t=(0,N.useRef)(null);function n(n){!n||n===t.current||(t.current=n,e(n))}return n}function _te(e){var t=(0,N.useRef)(e);return(0,N.useMemo)(function(){function e(e){typeof e==`function`?t.current=e(t.current):t.current=e}function n(){return t.current}return[n,e]},[])}function vte(){var e=(0,N.useRef)([]);return(0,N.useMemo)(function(){function t(){return e.current.length>0}function n(){for(var t=cu(e.current),n;!(n=t()).done;){var r=n.value;r()}e.current=[]}function r(t){e.current.push(t)}return{hasEventSubscriptions:t,removeAllEventSubscriptions:n,addEventSubscription:r}},[])}var uu=typeof window<`u`?N.useLayoutEffect:N.useEffect;function yte(e,t){var n=(0,N.useRef)(e);return t?(n.current=e,n):(n.current=null,n)}var du={top:0,left:0,right:1,bottom:1,width:1,height:1};function bte(e){var t=e===void 0?{}:e,n=t.enabled,r=n===void 0?!0:n,i=t.preventDefault,a=i===void 0?!0:i,o=(0,N.useRef)(null),s=(0,N.useState)(du),c=s[0],l=s[1];function u(){l(du)}var d=c!==du;function f(e){if(r){a&&e.preventDefault();var t=e.clientX,n=e.clientY;l({top:n,left:t,width:1,height:1,right:t+1,bottom:n+1})}}return{hasMousePosition:d,resetMousePosition:u,handleMouseEvent:f,trigger:{getBounds:function(){return c},getParent:o.current?function(){return o.current}:void 0},parentRef:o}}function fu(e){return parseFloat(e.replace(`px`,``))}function pu(e,t,n){return e<t?t:e>n?n:e}function mu(e){return e!=null}function hu(){var e=[...arguments];return function(t){for(var n=cu(e),r;!(r=n()).done;){var i=r.value;i&&(typeof i==`function`?i(t):i.current=t)}}}function xte(e,t){if(e!==void 0)return t||e.ResizeObserver}function gu(e,t){var n=[];if(!e||!t||e===document.body)return n;var r=t.getComputedStyle(e);return[r.overflow,r.overflowX,r.overflowY].some(function(e){return[`auto`,`scroll`].includes(e)})&&n.push(e),[].concat(n,gu(e.parentElement,t))}function _u(e){return`react-laag: Could not find a valid reference for the `+e+` element. There might be 2 causes:
|
|
4
4
|
- Make sure that the 'ref' is set correctly on the `+e+` element when isOpen: true. Also make sure your component forwards the ref with "forwardRef()".
|