@oliasoft-open-source/charts-library 5.5.0-beta-3 → 5.5.0-beta-5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/dist/assets/{Color-AVL7NMMY-Cvup177w.js → Color-AVL7NMMY-m0fFC0hS.js} +1 -1
  2. package/dist/assets/{DocsRenderer-PQXLIZUC-C8oenzCg.js → DocsRenderer-PQXLIZUC-BhZrnj-x.js} +2 -2
  3. package/dist/assets/bar-chart.stories-BFArxuxM.js +145 -0
  4. package/dist/assets/client-SlPkUNtY.js +1 -0
  5. package/dist/assets/{components-Bhnu9xjs.js → components-Bt9IMQSt.js} +1 -1
  6. package/dist/assets/{get-draggableData-Ci7DAhgp.js → get-draggableData-ByrVhmD5.js} +2 -2
  7. package/dist/assets/{iframe-DmiD_XLI.js → iframe-DW2UQNc3.js} +5 -5
  8. package/dist/assets/{legend-DLSpTR0Q.js → legend-C6YWwRpu.js} +7 -7
  9. package/dist/assets/{legend-context-0FoVt6TR.js → legend-context-C2Dt3PJx.js} +3 -3
  10. package/dist/assets/line-chart-CNmqtXk-.js +1 -0
  11. package/dist/assets/{line-chart.stories-SIfsugaw.js → line-chart.stories-Cnj5uyTo.js} +1 -1
  12. package/dist/assets/line-chart.test-case.stories-ClCgTJUJ.js +1545 -0
  13. package/dist/assets/pie-chart.stories-BVUTCp0_.js +45 -0
  14. package/dist/assets/{react-18-DVWhm1ZL.js → react-18-CFvwF0kt.js} +1 -1
  15. package/dist/assets/{react-CG8Fu59u.js → react-BLWr6Eyx.js} +1 -1
  16. package/dist/assets/scatter-chart.stories-CZod9JAT.js +41 -0
  17. package/dist/common/helpers/callout-helpers/callout-helpers.d.ts +2 -2
  18. package/dist/common/helpers/get-chart-from-ctx.d.ts +1 -0
  19. package/dist/common/plugins/annotation-dragger-plugin/annotation-position-storage.d.ts +7 -0
  20. package/dist/common/plugins/annotation-dragger-plugin/event-helpers.d.ts +1 -1
  21. package/dist/iframe.html +1 -1
  22. package/dist/index.js +114 -45
  23. package/dist/index.json +1 -1
  24. package/dist/line-chart/hooks/use-chart-options.d.ts +4 -1
  25. package/dist/project.json +1 -1
  26. package/dist/src/components/common/helpers/callout-helpers/callout-helpers.d.ts +2 -2
  27. package/dist/src/components/common/helpers/get-chart-from-ctx.d.ts +1 -0
  28. package/dist/src/components/common/plugins/annotation-dragger-plugin/annotation-position-storage.d.ts +7 -0
  29. package/dist/src/components/common/plugins/annotation-dragger-plugin/event-helpers.d.ts +1 -1
  30. package/dist/src/components/line-chart/hooks/use-chart-options.d.ts +4 -1
  31. package/package.json +1 -1
  32. package/dist/assets/bar-chart.stories-De78SDiD.js +0 -145
  33. package/dist/assets/client-DsbWhmXk.js +0 -1
  34. package/dist/assets/line-chart-VpvCvObG.js +0 -1
  35. package/dist/assets/line-chart.test-case.stories-B9eK7kjq.js +0 -430
  36. package/dist/assets/pie-chart.stories-CHMHYc28.js +0 -45
  37. package/dist/assets/scatter-chart.stories-HJi4Ssg8.js +0 -41
@@ -1,5 +1,5 @@
1
- import{_t as e,at as t,dt as n,ft as r,gt as i,ht as a,it as o,mt as s,pt as c}from"./iframe-DmiD_XLI.js";import{$ as l,$t as u,Bt as d,Et as f,Ft as p,Gt as m,Ht as h,It as g,Jt as _,Kt as v,Lt as y,Q as b,Qt as x,Rt as S,S as C,Tt as w,Ut as T,V as E,Vt as D,Wt as O,Xt as k,Yt as A,Zt as j,an as M,at as N,bt as P,c as F,ct as I,dt as L,en as ee,ft as te,in as R,it as ne,j as re,lt as ie,m as ae,nn as oe,nt as z,ot as se,pt as ce,qt as le,rn as B,st as ue,t as de,tn as V,wt as fe,zt as pe}from"./legend-context-0FoVt6TR.js";var me={modes:{point(e,t){return ve(e,t,{intersect:!0})},nearest(e,t,n){return ye(e,t,n)},x(e,t,n){return ve(e,t,{intersect:n.intersect,axis:`x`})},y(e,t,n){return ve(e,t,{intersect:n.intersect,axis:`y`})}}};function he(e,t,n){return(me.modes[n.mode]||me.modes.nearest)(e,t,n)}function ge(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 _e(e,t,n){return n===`x`?{x:e.x,y:t.y}:n===`y`?{x:t.x,y:e.y}:t}function ve(e,t,n){return e.filter(e=>n.intersect?e.inRange(t.x,t.y):ge(e,t,n.axis))}function ye(e,t,n){let r=1/0;return ve(e,t,n).reduce((e,i)=>{let a=v(t,_e(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 be(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 xe=(e,t)=>t>e||e.length>t.length&&e.slice(0,t.length)===t,Se=.001,Ce=(e,t,n)=>Math.min(n,Math.max(t,e)),we=(e,t)=>e.value>=e.start-t&&e.value<=e.end+t;function Te(e,t,n){for(let r of Object.keys(e))e[r]=Ce(e[r],t,n);return e}function Ee(e,t,n,r){return!e||!t||n<=0?!1:(e.x-t.x)**2+(e.y-t.y)**2<=(n+r)**2}function De(e,{x:t,y:n,x2:r,y2:i},a,{borderWidth:o,hitTolerance:s}){let c=(o+s)/2,l=e.x>=t-c-Se&&e.x<=r+c+Se,u=e.y>=n-c-Se&&e.y<=i+c+Se;return a===`x`?l:(a===`y`||l)&&u}function Oe(e,{rect:t,center:n},r,{rotation:i,borderWidth:a,hitTolerance:o}){return De(be(e,n,oe(-i)),t,r,{borderWidth:a,hitTolerance:o})}function ke(e,t){let{centerX:n,centerY:r}=e.getProps([`centerX`,`centerY`],t);return{x:n,y:r}}function Ae(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(xe(s,o)){if(r)throw Error(`${e} v${n} is not supported. v${t} or newer is required.`);return!1}}return!0}var je=e=>typeof e==`string`&&e.endsWith(`%`),Me=e=>parseFloat(e)/100,Ne=e=>Ce(Me(e),0,1),Pe=(e,t)=>({x:e,y:t,x2:e,y2:t,width:0,height:0}),Fe={box:e=>Pe(e.centerX,e.centerY),doughnutLabel:e=>Pe(e.centerX,e.centerY),ellipse:e=>({centerX:e.centerX,centerY:e.centerX,radius:0,width:0,height:0}),label:e=>Pe(e.centerX,e.centerY),line:e=>Pe(e.x,e.y),point:e=>({centerX:e.centerX,centerY:e.centerY,radius:0,width:0,height:0}),polygon:e=>Pe(e.centerX,e.centerY)};function Ie(e,t){return t===`start`?0:t===`end`?e:je(t)?Ne(t)*e:e/2}function Le(e,t,n=!0){return typeof t==`number`?t:je(t)?(n?Ne(t):Me(t))*e:e}function Re(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 ze(e,t,{borderWidth:n,position:r,xAdjust:i,yAdjust:a},o){let s=x(o),c=t.width+(s?o.width:0)+n,l=t.height+(s?o.height:0)+n,u=Be(r),d=We(e.x,c,i,u.x),f=We(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 Be(e,t=`center`){return x(e)?{x:M(e.x,t),y:M(e.y,t)}:(e=M(e,t),{x:e,y:e})}var Ve=(e,t)=>e&&e.autoFit&&t<1;function He(e,t){let n=e.font,r=_(n)?n:[n];return Ve(e,t)?r.map(function(e){let n=ee(e);return n.size=Math.floor(e.size*t),n.lineHeight=e.lineHeight,ee(n)}):r.map(e=>ee(e))}function Ue(e){return e&&(m(e.xValue)||m(e.yValue))}function We(e,t,n=0,r){return e-Ie(t,r)+n}function Ge(e,t,n){let r=n.init;if(r){if(r===!0)return qe(t,n)}else return;return Je(e,t,n)}function Ke(e,t,n){let r=!1;return t.forEach(t=>{A(e[t])?(r=!0,n[t]=e[t]):m(n[t])&&delete n[t]}),r}function qe(e,t){return Fe[t.type||`line`](e)}function Je(e,t,n){let r=h(n.init,[{chart:e,properties:t,options:n}]);if(r===!0)return qe(t,n);if(x(r))return r}var Ye=new Map,Xe=e=>isNaN(e)||e<=0,Ze=e=>e.reduce(function(e,t){return e+=t.string,e},``);function Qe(e){if(e&&typeof e==`object`){let t=e.toString();return t===`[object HTMLImageElement]`||t===`[object HTMLCanvasElement]`}}function $e(e,{x:t,y:n},r){r&&(e.translate(t,n),e.rotate(oe(r)),e.translate(-t,-n))}function et(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 tt(e,t){e.shadowColor=t.backgroundShadowColor,e.shadowBlur=t.shadowBlur,e.shadowOffsetX=t.shadowOffsetX,e.shadowOffsetY=t.shadowOffsetY}function nt(e,t){let n=t.content;if(Qe(n))return{width:Le(n.width,t.width),height:Le(n.height,t.height)};let r=He(t),i=t.textStrokeWidth,a=_(n)?n:[n],o=a.join()+Ze(r)+i+(e._measureText?`-spriting`:``);return Ye.has(o)||Ye.set(o,ct(e,a,r,i)),Ye.get(o)}function rt(e,t,n){let{x:r,y:i,width:a,height:o}=t;e.save(),tt(e,n);let s=et(e,n);e.fillStyle=n.backgroundColor,e.beginPath(),D(e,{x:r,y:i,w:a,h:o,radius:Te(B(n.borderRadius),0,Math.min(a,o)/2)}),e.closePath(),e.fill(),s&&(e.shadowColor=n.borderShadowColor,e.stroke()),e.restore()}function it(e,t,n,r){let i=n.content;if(Qe(i)){e.save(),e.globalAlpha=dt(n.opacity,i.style.opacity),e.drawImage(i,t.x,t.y,t.width,t.height),e.restore();return}let a=_(i)?i:[i],o=He(n,r),s=n.color,c=_(s)?s:[s],l=Re(t,n),u=t.y+n.textStrokeWidth/2;e.save(),e.textBaseline=`middle`,e.textAlign=n.textAlign,at(e,n)&&lt(e,{x:l,y:u},a,o),ut(e,{x:l,y:u},a,{fonts:o,colors:c}),e.restore()}function at(e,t){if(t.textStrokeWidth>0)return e.lineJoin=`round`,e.miterLimit=2,e.lineWidth=t.textStrokeWidth,e.strokeStyle=t.textStrokeColor,!0}function ot(e,t,n,r){let{radius:i,options:a}=t,o=a.pointStyle,s=a.rotation,c=(s||0)*S;if(Qe(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}Xe(i)||st(e,{x:n,y:r,radius:i,rotation:s,style:o,rad:c})}function st(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,pe),e.closePath();break;case`triangle`:e.moveTo(t+Math.sin(o)*r,n-Math.cos(o)*r),o+=d,e.lineTo(t+Math.sin(o)*r,n-Math.cos(o)*r),o+=d,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+y)*l,c=Math.sin(o+y)*l,e.arc(t-s,n-c,u,o-g,o-p),e.arc(t+c,n-s,u,o-p,o),e.arc(t+s,n+c,u,o,o+p),e.arc(t-c,n+s,u,o+p,o+g),e.closePath();break;case`rect`:if(!i){l=Math.SQRT1_2*r,e.rect(t-l,n-l,2*l,2*l);break}o+=y;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+=y;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+=y,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 ct(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 lt(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 dt(e,t){let n=k(e)?e:t;return k(n)?Ce(n,0,1):1}var ft=[`left`,`bottom`,`top`,`right`];function pt(e,t){let{pointX:n,pointY:r,options:i}=t,a=i.callout,o=a&&a.display&&vt(t,a);if(!o||bt(t,a,o))return;if(e.save(),e.beginPath(),!et(e,a))return e.restore();let{separatorStart:s,separatorEnd:c}=mt(t,o),{sideStart:l,sideEnd:u}=gt(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=be({x:n,y:r},t.getCenterPoint(),oe(-t.rotation));e.lineTo(d.x,d.y),e.stroke(),e.restore()}function mt(e,t){let{x:n,y:r,x2:i,y2:a}=e,o=ht(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 ht(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 gt(e,t,n){let{y:r,width:i,height:a,options:o}=e,s=o.callout.start,c=_t(t,o.callout),l,u;return t===`left`||t===`right`?(l={x:n.x,y:r+Le(a,s)},u={x:l.x+c,y:l.y}):(l={x:n.x+Le(i,s),y:n.y},u={x:l.x,y:l.y+c}),{sideStart:l,sideEnd:u}}function _t(e,t){let n=t.side;return e===`left`||e===`top`?-n:n}function vt(e,t){let n=t.position;return ft.includes(n)?n:yt(e,t)}function yt(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,h=Le(o,m),g=Le(s,m),_=[n,n+h,n+h,i],y=[r+g,a,r,a],b=[];for(let e=0;e<4;e++){let t=be({x:_[e],y:y[e]},p,oe(f));b.push({position:ft[e],distance:v(t,{x:c,y:l})})}return b.sort((e,t)=>e.distance-t.distance)[0].position}function bt(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 xt={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 St(e,t,n){return t=typeof t==`number`?t:e.parse(t),j(t)?e.getPixelForValue(t):n}function Ct(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 wt(e,t){if(e){let n=e.options.reverse;return{start:St(e,t.min,n?t.end:t.start),end:St(e,t.max,n?t.start:t.end)}}}function Tt(e,t){let{chartArea:n,scales:r}=e,i=r[Ct(r,t,`xScaleID`)],a=r[Ct(r,t,`yScaleID`)],o=n.width/2,s=n.height/2;return i&&(o=St(i,t.xValue,i.left+i.width/2)),a&&(s=St(a,t.yValue,a.top+a.height/2)),{x:o,y:s}}function Et(e,t){let n=e.scales,r=n[Ct(n,t,`xScaleID`)],i=n[Ct(n,t,`yScaleID`)];if(!r&&!i)return{};let{left:a,right:o}=r||e.chartArea,{top:s,bottom:c}=i||e.chartArea,l=jt(r,{min:t.xMin,max:t.xMax,start:a,end:o});a=l.start,o=l.end;let u=jt(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 Dt(e,t){if(!Ue(t)){let n=Et(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 At(e,t)}function Ot(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?Mt(i,a,t):Nt(n,a,t),a}function kt(e,t){let n=Et(e,t);return n.initProperties=Ge(e,n,t),n.elements=[{type:`label`,optionScope:`label`,properties:Lt(e,n,t),initProperties:n.initProperties}],n}function At(e,t){let n=Tt(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 jt(e,t){let n=wt(e,t)||t;return{start:Math.min(n.start,n.end),end:Math.max(n.start,n.end)}}function Mt(e,t,n){let r=St(e,n.value,NaN),i=St(e,n.endValue,r);e.isHorizontal()?(t.x=r,t.x2=i):(t.y=r,t.y2=i)}function Nt(e,t,n){for(let r of Object.keys(xt)){let i=e[Ct(e,n,r)];if(i){let{min:e,max:a,start:o,end:s,startProp:c,endProp:l}=xt[r],u=wt(i,{min:n[e],max:n[a],start:i[o],end:i[s]});t[c]=u.start,t[l]=u.end}}}function Pt({properties:e,options:t},n,r,i){let{x:a,x2:o,width:s}=e;return It({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 Ft({properties:e,options:t},n,r,i){let{y:a,y2:o,height:s}=e;return It({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 It(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+Ie(l,a)}function Lt(e,t,n){let r=n.label;r.backgroundColor=`transparent`,r.callout.display=!1;let i=Be(r.position),a=V(r.padding),o=nt(e.ctx,r),s=Pt({properties:t,options:n},o,i,a),c=Ft({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 Rt=[`enter`,`leave`],zt=Rt.concat(`click`);function Bt(e,t,n){t.listened=Ke(n,zt,t.listeners),t.moveListened=!1,Rt.forEach(e=>{A(n[e])&&(t.moveListened=!0)}),(!t.listened||!t.moveListened)&&t.annotations.forEach(e=>{!t.listened&&A(e.click)&&(t.listened=!0),t.moveListened||Rt.forEach(n=>{A(e[n])&&(t.listened=!0,t.moveListened=!0)})})}function Vt(e,t,n){if(e.listened)switch(t.type){case`mousemove`:case`mouseout`:return Ht(e,t,n);case`click`:return Wt(e,t,n)}}function Ht(e,t,n){if(!e.moveListened)return;let r;r=t.type===`mousemove`?he(e.visibleElements,t,n.interaction):[];let i=e.hovered;e.hovered=r;let a={state:e,event:t},o=Ut(a,`leave`,i,r);return Ut(a,`enter`,r,i)||o}function Ut({state:e,event:t},n,r,i){let a;for(let o of r)i.indexOf(o)<0&&(a=Gt(o.options[n]||e.listeners[n],o,t)||a);return a}function Wt(e,t,n){let r=e.listeners,i=he(e.visibleElements,t,n.interaction),a;for(let e of i)a=Gt(e.options.click||r.click,e,t)||a;return a}function Gt(e,t,n){return h(e,[t.$context,n])===!0}var Kt=[`afterDraw`,`beforeDraw`];function qt(e,t,n){let r=t.visibleElements;t.hooked=Ke(n,Kt,t.hooks),t.hooked||r.forEach(e=>{t.hooked||Kt.forEach(n=>{A(e.options[n])&&(t.hooked=!0)})})}function Jt(e,t,n){if(e.hooked)return h(t.options[n]||e.hooks[n],[t.$context])}function Yt(e,t,n){let r=tn(e.scales,t,n),i=Zt(t,r,`min`,`suggestedMin`);i=Zt(t,r,`max`,`suggestedMax`)||i,i&&A(t.handleTickRangeOptions)&&t.handleTickRangeOptions()}function Xt(e,t){for(let n of e)$t(n,t)}function Zt(e,t,n,r){if(j(t[n])&&!Qt(e.options,n,r)){let r=e[n]!==t[n];return e[n]=t[n],r}}function Qt(e,t,n){return m(e[t])||m(e[n])}function $t(e,t){for(let n of[`scaleID`,`xScaleID`,`yScaleID`]){let r=Ct(t,e,n);r&&!t[r]&&en(e,n)&&console.warn(`No scale found with id '${r}' for annotation '${e.id}'`)}}function en(e,t){if(t===`scaleID`)return!0;let n=t.charAt(0);for(let t of[`Min`,`Max`,`Value`])if(m(e[n+t]))return!0;return!1}function tn(e,t,n){let r=t.axis,i=t.id,a=r+`ScaleID`,o={min:M(t.min,-1/0),max:M(t.max,1/0)};for(let s of n)s.scaleID===i?nn(s,t,[`value`,`endValue`],o):Ct(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(m(n)){let e=t.parse(n);r.min=Math.min(r.min,e),r.max=Math.max(r.max,e)}}}var rn=class extends f{inRange(e,t,n,r){let{x:i,y:a}=be({x:e,y:t},this.getCenterPoint(r),oe(-this.options.rotation));return De({x:i,y:a},this.getProps([`x`,`y`,`x2`,`y2`],r),n,this.options)}getCenterPoint(e){return ke(this,e)}draw(e){e.save(),$e(e,this.getCenterPoint(),this.options.rotation),rt(e,this,this.options),e.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(e,t){return kt(e,t)}};rn.id=`boxAnnotation`,rn.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},rn.defaultRoutes={borderColor:`color`,backgroundColor:`color`},rn.descriptors={label:{_fallback:!0}};var an=class extends f{inRange(e,t,n,r){return Oe({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 ke(this,e)}draw(e){let t=this.options;!t.display||!t.content||(dn(e,this),e.save(),$e(e,this.getCenterPoint(),this.rotation),it(e,this,t,this._fitRatio),e.restore())}resolveElementProperties(e,t){let n=on(e,t);if(!n)return{};let{controllerMeta:r,point:i,radius:a}=cn(e,t,n),o=nt(e.ctx,t),s=ln(o,a);Ve(t,s)&&(o={width:o.width*s,height:o.height*s});let{position:c,xAdjust:l,yAdjust:u}=t,d=ze(i,o,{borderWidth:0,position:c,xAdjust:l,yAdjust:u});return{initProperties:Ge(e,d,t),...d,...r,rotation:t.rotation,_fitRatio:s}}};an.id=`doughnutLabelAnnotation`,an.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},an.defaultRoutes={};function on(e,t){return e.getSortedVisibleDatasetMetas().reduce(function(n,r){let i=r.controller;return i instanceof w&&sn(e,t,r.data)&&(!n||i.innerRadius<n.controller.innerRadius)&&i.options.circumference>=90?r:n},void 0)}function sn(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 cn({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,...un(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 ln({width:e,height:t},n){let r=Math.sqrt(e**2+t**2);return n*2/r}function un(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:pe};let l=(-o-Math.sqrt(c))/2,u=(-o+Math.sqrt(c))/2;return{_startAngle:le({x:t,y:n},{x:l,y:e}).angle,_endAngle:le({x:t,y:n},{x:u,y:e}).angle}}function dn(e,t){let{_centerX:n,_centerY:r,_radius:i,_startAngle:a,_endAngle:o,_counterclockwise:s,options:c}=t;e.save();let l=et(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 fn=class extends f{inRange(e,t,n,r){return Oe({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 ke(this,e)}draw(e){let t=this.options,n=!m(this._visible)||this._visible;!t.display||!t.content||!n||(e.save(),$e(e,this.getCenterPoint(),this.rotation),pt(e,this),rt(e,this,t),it(e,pn(this),t),e.restore())}resolveElementProperties(e,t){let n;if(Ue(t))n=Tt(e,t);else{let{centerX:r,centerY:i}=Et(e,t);n={x:r,y:i}}let r=V(t.padding),i=nt(e.ctx,t),a=ze(n,i,t,r);return{initProperties:Ge(e,a,t),pointX:n.x,pointY:n.y,...a,rotation:t.rotation}}};fn.id=`labelAnnotation`,fn.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},fn.defaultRoutes={borderColor:`color`};function pn({x:e,y:t,width:n,height:r,options:i}){let a=i.borderWidth/2,o=V(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 mn=(e,t,n)=>({x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}),hn=(e,t,n)=>mn(t,n,Math.abs((e-t.y)/(n.y-t.y))).x,gn=(e,t,n)=>mn(t,n,Math.abs((e-t.x)/(n.x-t.x))).y,_n=e=>e*e,vn=(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},yn=(e,t,n,r)=>(1-r)*(1-r)*e+2*(1-r)*r*t+r*r*n,bn=(e,t,n,r)=>({x:yn(e.x,t.x,n.x,r),y:yn(e.y,t.y,n.y,r)}),xn=(e,t,n,r)=>2*(1-r)*(t-e)+2*r*(n-t),Sn=(e,t,n,r)=>-Math.atan2(xn(e.x,t.x,n.x,r),xn(e.y,t.y,n.y,r))+.5*g,Cn=class extends f{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){et(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)||En(this,n,r);return o.restore(),l}let s=_n(i);return ree(this,n,s,r)||En(this,n,r)}return eee(this,{mouseX:e,mouseY:t},n,{hitSize:i,useFinalPosition:r})}getCenterPoint(e){return ke(this,e)}draw(e){let{x:t,y:n,x2:r,y2:i,cp:a,options:o}=this;if(e.save(),!et(e,o))return e.restore();tt(e,o);let s=Math.sqrt((r-t)**2+(i-n)**2);if(o.curve&&a)return dee(e,this,a,s),e.restore();let{startOpts:c,endOpts:l,startAdjust:u,endAdjust:d}=kn(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(),jn(e,0,u,c),jn(e,s,-d,l),e.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(e,t){let n=Ot(e,t),{x:r,y:i,x2:a,y2:o}=n,s=tee(n,e.chartArea),c=s?nee({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=Ge(e,c,t),t.curve&&(c.cp=uee(c,t,v({x:c.x,y:c.y},{x:c.x2,y:c.y2})));let l=iee(e,c,t.label);return l._visible=s,c.elements=[{type:`label`,optionScope:`label`,properties:l,initProperties:c.initProperties}],c}};Cn.id=`lineAnnotation`;var wn={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};Cn.defaults={adjustScaleRange:!0,arrowHeads:{display:!1,end:Object.assign({},wn),fill:!1,length:12,start:Object.assign({},wn),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({},fn.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},Cn.descriptors={arrowHeads:{start:{_fallback:!0},end:{_fallback:!0},_fallback:!0}},Cn.defaultRoutes={borderColor:`color`};function eee(e,{mouseX:t,mouseY:n},r,{hitSize:i,useFinalPosition:a}){return we(vn(t,n,e.getProps([`x`,`y`,`x2`,`y2`],a),r),i)||En(e,{mouseX:t,mouseY:n},a,r)}function tee({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 Tn({x:e,y:t},n,{top:r,right:i,bottom:a,left:o}){return e<o&&(t=gn(o,{x:e,y:t},n),e=o),e>i&&(t=gn(i,{x:e,y:t},n),e=i),t<r&&(e=hn(r,{x:e,y:t},n),t=r),t>a&&(e=hn(a,{x:e,y:t},n),t=a),{x:e,y:t}}function nee(e,t,n){let{x:r,y:i}=Tn(e,t,n),{x:a,y:o}=Tn(t,e,n);return{x:r,y:i,x2:a,y2:o,width:Math.abs(a-r),height:Math.abs(o-i)}}function ree(e,{mouseX:t,mouseY:n},r=Se,i){let{x:a,y:o,x2:s,y2:c}=e.getProps([`x`,`y`,`x2`,`y2`],i),l=s-a,u=c-o,d=_n(l)+_n(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),_n(t-p)+_n(n-m)<=r}function En(e,{mouseX:t,mouseY:n},r,i){let a=e.label;return a.options.display&&a.inRange(t,n,i,r)}function iee(e,t,n){let r=n.borderWidth,i=V(n.padding),a=nt(e.ctx,n);return oee(t,n,{width:a.width+i.width+r,height:a.height+i.height+r,padding:i},e.chartArea)}function aee(e){let{x:t,y:n,x2:r,y2:i}=e,a=Math.atan2(i-n,r-t);return a>g/2?a-g:a<g/-2?a+g:a}function oee(e,t,n,r){let{width:i,height:a,padding:o}=n,{xAdjust:s,yAdjust:c}=t,l={x:e.x,y:e.y},d={x:e.x2,y:e.y2},f=t.rotation===`auto`?aee(e):oe(t.rotation),p=see(i,a,f),m=cee(e,t,{labelSize:p,padding:o},r),h=e.cp?bn(l,e.cp,d,m):mn(l,d,m),g={size:p.w,min:r.left,max:r.right,padding:o.left},_={size:p.h,min:r.top,max:r.bottom,padding:o.top},v=On(h.x,g)+s,y=On(h.y,_)+c;return{x:v-i/2,y:y-a/2,x2:v+i/2,y2:y+a/2,centerX:v,centerY:y,pointX:h.x,pointY:h.y,width:i,height:a,rotation:u(f)}}function see(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 cee(e,t,n,r){let i,a=lee(e,r);return i=t.position===`start`?Dn({w:e.x2-e.x,h:e.y2-e.y},n,t,a):t.position===`end`?1-Dn({w:e.x-e.x2,h:e.y-e.y2},n,t,a):Ie(1,t.position),i}function Dn(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 Ce(Math.max(c,l),0,.25)}function lee(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 On(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 kn(e){let t=e.options,n=t.arrowHeads&&t.arrowHeads.start,r=t.arrowHeads&&t.arrowHeads.end;return{startOpts:n,endOpts:r,startAdjust:An(e,n),endAdjust:An(e,r)}}function An(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(hn(0,a,o))}function jn(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(),tt(e,r),et(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 uee(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=Be(t.controlPoint,0);return be({x:s+Le(n,u.x,!1),y:c+Le(n,u.y,!1)},{x:s,y:c},l)}function Mn(e,{x:t,y:n},{angle:r,adjust:i},a){!a||!a.display||(e.save(),e.translate(t,n),e.rotate(r),jn(e,0,-i,a),e.restore())}function dee(e,t,n,r){let{x:i,y:a,x2:o,y2:s,options:c}=t,{startOpts:l,endOpts:u,startAdjust:d,endAdjust:f}=kn(t),p={x:i,y:a},m={x:o,y:s},h=Sn(p,n,m,0),_=Sn(p,n,m,1)-g,v=bn(p,n,m,d/r),y=bn(p,n,m,1-f/r),b=new Path2D;e.beginPath(),b.moveTo(v.x,v.y),b.quadraticCurveTo(n.x,n.y,y.x,y.y),e.shadowColor=c.borderShadowColor,e.stroke(b),t.path=b,t.ctx=e,Mn(e,v,{angle:h,adjust:d},l),Mn(e,y,{angle:_,adjust:f},u)}var Nn=class extends f{inRange(e,t,n,r){let i=this.options.rotation,a=(this.options.borderWidth+this.options.hitTolerance)/2;if(n!==`x`&&n!==`y`)return fee({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=be({x:e,y:t},this.getCenterPoint(r),oe(-i));return d[n]>=u.start-a-Se&&d[n]<=u.end+a+Se}getCenterPoint(e){return ke(this,e)}draw(e){let{width:t,height:n,centerX:r,centerY:i,options:a}=this;e.save(),$e(e,this.getCenterPoint(),a.rotation),tt(e,this.options),e.beginPath(),e.fillStyle=a.backgroundColor;let o=et(e,a);e.ellipse(r,i,n/2,t/2,g/2,0,2*g),e.fill(),o&&(e.shadowColor=a.borderShadowColor,e.stroke()),e.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(e,t){return kt(e,t)}};Nn.id=`ellipseAnnotation`,Nn.defaults={adjustScaleRange:!0,backgroundShadowColor:`transparent`,borderDash:[],borderDashOffset:0,borderShadowColor:`transparent`,borderWidth:1,display:!0,hitTolerance:0,init:void 0,label:Object.assign({},rn.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},Nn.defaultRoutes={borderColor:`color`,backgroundColor:`color`},Nn.descriptors={label:{_fallback:!0}};function fee(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=oe(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 Pn=class extends f{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`?Ee({x:e,y:t},this.getCenterPoint(r),c/2,l):we(n===`y`?{start:a,end:s,value:t}:{start:i,end:o,value:e},l)}getCenterPoint(e){return ke(this,e)}draw(e){let t=this.options,n=t.borderWidth;if(t.radius<.1)return;e.save(),e.fillStyle=t.backgroundColor,tt(e,t);let r=et(e,t);ot(e,this,this.centerX,this.centerY),r&&!Qe(t.pointStyle)&&(e.shadowColor=t.borderShadowColor,e.stroke()),e.restore(),t.borderWidth=n}resolveElementProperties(e,t){let n=Dt(e,t);return n.initProperties=Ge(e,n,t),n}};Pn.id=`pointAnnotation`,Pn.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},Pn.defaultRoutes={borderColor:`color`,backgroundColor:`color`};var Fn=class extends f{inRange(e,t,n,r){if(n!==`x`&&n!==`y`)return this.options.radius>=.1&&this.elements.length>1&&mee(this.elements,e,t,r);let i=be({x:e,y:t},this.getCenterPoint(r),oe(-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 ke(this,e)}draw(e){let{elements:t,options:n}=this;e.save(),e.beginPath(),e.fillStyle=n.backgroundColor,tt(e,n);let r=et(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=Dt(e,t),{sides:r,rotation:i}=t,a=[],o=2*g/r,s=i*S;for(let i=0;i<r;i++,s+=o){let r=pee(n,t,s);r.initProperties=Ge(e,n,t),a.push(r)}return n.elements=a,n}};Fn.id=`polygonAnnotation`,Fn.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},Fn.defaultRoutes={borderColor:`color`,backgroundColor:`color`};function pee({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 mee(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 In={box:rn,doughnutLabel:an,ellipse:Nn,label:fn,line:Cn,point:Pn,polygon:Fn};Object.keys(In).forEach(e=>{O.describe(`elements.${In[e].id}`,{_fallback:`plugins.annotation.common`})});var hee={update:Object.assign},gee=zt.concat(Kt),Ln=(e,t)=>x(t)?Hn(e,t):e,Rn=e=>e===`color`||e===`font`;function zn(e=`line`){return In[e]?e:(console.warn(`Unknown annotation type: '${e}', defaulting to 'line'`),`line`)}function _ee(e,t,n,r){let i=yee(e,n.animations,r),a=t.annotations,o=See(t.elements,a);for(let t=0;t<a.length;t++){let n=a[t],r=Bn(o,t,n.type),s=n.setContext(xee(e,r,o,n)),c=r.resolveElementProperties(e,s);c.skip=vee(c),`elements`in c&&(bee(r,c.elements,s,i),delete c.elements),m(r.x)||Object.assign(r,c),Object.assign(r,c.initProperties),c.options=Vn(s),i.update(r,c)}}function vee(e){return isNaN(e.x)||isNaN(e.y)}function yee(e,t,n){return n===`reset`||n===`none`||n===`resize`?hee:new P(e,t)}function bee(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=Bn(i,e,a.type,a.initProperties);o.options=Vn(n[a.optionScope].override(a)),r.update(s,o)}}function Bn(e,t,n,r){let i=In[zn(n)],a=e[t];return(!a||!(a instanceof i))&&(a=e[t]=new i,Object.assign(a,r)),a}function Vn(e){let t=In[zn(e.type)],n={};n.id=e.id,n.type=e.type,n.drawTime=e.drawTime,Object.assign(n,Hn(e,t.defaults),Hn(e,t.defaultRoutes));for(let t of gee)n[t]=e[t];return n}function Hn(e,t){let n={};for(let r of Object.keys(t)){let i=t[r],a=e[r];Rn(r)&&_(a)?n[r]=a.map(e=>Ln(e,i)):n[r]=Ln(a,i)}return n}function xee(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 See(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 Cee=`3.1.0`,Un=new Map,Wn=e=>e.type!==`doughnutLabel`,wee=zt.concat(Kt),Tee={id:`annotation`,version:Cee,beforeRegister(){Ae(`chart.js`,`4.0`,fe.version)},afterRegister(){fe.register(In)},afterUnregister(){fe.unregister(In)},beforeInit(e){Un.set(e,{annotations:[],elements:[],visibleElements:[],listeners:{},listened:!1,moveListened:!1,hooks:{},hooked:!1,hovered:[]})},beforeUpdate(e,t,n){let r=Un.get(e),i=r.annotations=[],a=n.annotations;x(a)?Object.keys(a).forEach(e=>{let t=a[e];x(t)&&(t.id=e,i.push(t))}):_(a)&&i.push(...a),Xt(i.filter(Wn),e.scales)},afterDataLimits(e,t){let n=Un.get(e);Yt(e,t.scale,n.annotations.filter(Wn).filter(e=>e.display&&e.adjustScaleRange))},afterUpdate(e,t,n){let r=Un.get(e);Bt(e,r,n),_ee(e,r,n,t.mode),r.visibleElements=r.elements.filter(e=>!e.skip&&e.options.display),qt(e,r,n)},beforeDatasetsDraw(e,t,n){Gn(e,`beforeDatasetsDraw`,n.clip)},afterDatasetsDraw(e,t,n){Gn(e,`afterDatasetsDraw`,n.clip)},beforeDatasetDraw(e,t,n){Gn(e,t.index,n.clip)},beforeDraw(e,t,n){Gn(e,`beforeDraw`,n.clip)},afterDraw(e,t,n){Gn(e,`afterDraw`,n.clip)},beforeEvent(e,t,n){Vt(Un.get(e),t.event,n)&&(t.changed=!0)},afterDestroy(e){Un.delete(e)},getAnnotations(e){let t=Un.get(e);return t?t.elements:[]},_getAnnotationElementsAtEventForMode(e,t,n){return he(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=>!wee.includes(e)&&e!==`init`,annotations:{_allKeys:!1,_fallback:(e,t)=>`elements.${In[zn(t.type)].id}`},interaction:{_fallback:!0},common:{label:{_indexable:Rn,_fallback:!0},_indexable:Rn}},additionalOptionScopes:[``]};function Gn(e,t,n){let{ctx:r,chartArea:i}=e,a=Un.get(e);n&&T(r,i);let o=Eee(a.visibleElements,t).sort((e,t)=>e.element.options.z-t.element.options.z);for(let e of o)Dee(r,i,a,e);n&&R(r)}function Eee(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 Dee(e,t,n,r){let i=r.element;r.main?(Jt(n,i,`beforeDraw`),i.draw(e,t),Jt(n,i,`afterDraw`)):i.draw(e,t)}function Kn(e){let t=null;return()=>(t??=e(),t)}function Oee(e,t){return e.filter(e=>e!==t)}function kee(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 Aee=class{enter(e){let t=this.entered.length;return this.entered=kee(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=Oee(this.entered.filter(this.isNodeInDocument),e),t>0&&this.entered.length===0}reset(){this.entered=[]}constructor(e){this.entered=[],this.isNodeInDocument=e}},jee=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()}},qn=s({FILE:()=>Jn,HTML:()=>Zn,TEXT:()=>Xn,URL:()=>Yn});const Jn=`__NATIVE_FILE__`,Yn=`__NATIVE_URL__`,Xn=`__NATIVE_TEXT__`,Zn=`__NATIVE_HTML__`;function Qn(e,t,n){return t.reduce((t,n)=>t||e.getData(n),``)??n}const $n={[Jn]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:[`Files`]},[Zn]:{exposeProperties:{html:(e,t)=>Qn(e,t,``),dataTransfer:e=>e},matchesTypes:[`Html`,`text/html`]},[Yn]:{exposeProperties:{urls:(e,t)=>Qn(e,t,``).split(`
2
- `),dataTransfer:e=>e},matchesTypes:[`Url`,`text/uri-list`]},[Xn]:{exposeProperties:{text:(e,t)=>Qn(e,t,``),dataTransfer:e=>e},matchesTypes:[`Text`,`text/plain`]}};function Mee(e,t){let n=$n[e];if(!n)throw Error(`native type ${e} has no configuration`);let r=new jee(n);return r.loadDataTransfer(t),r}function er(e){if(!e)return null;let t=Array.prototype.slice.call(e.types||[]);return Object.keys($n).filter(e=>{let n=$n[e];return n?.matchesTypes?n.matchesTypes.some(e=>t.indexOf(e)>-1):!1})[0]||null}const Nee=Kn(()=>/firefox/i.test(navigator.userAgent)),tr=Kn(()=>!!window.safari);var nr=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}},Pee=1;function rr(e){let t=e.nodeType===Pee?e:e.parentElement;if(!t)return null;let{top:n,left:r}=t.getBoundingClientRect();return{x:r,y:n}}function ir(e){return{x:e.clientX,y:e.clientY}}function Fee(e){return e.nodeName===`IMG`&&(Nee()||!document.documentElement?.contains(e))}function Iee(e,t,n,r){let i=e?t.width:n,a=e?t.height:r;return tr()&&e&&(a/=window.devicePixelRatio,i/=window.devicePixelRatio),{dragPreviewWidth:i,dragPreviewHeight:a}}function Lee(e,t,n,r,i){let a=Fee(t),o=rr(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}=Iee(a,t,c,l),m=()=>{let e=new nr([0,.5,1],[s.y,s.y/l*p,s.y+p-l]).interpolate(d);return tr()&&a&&(e+=(window.devicePixelRatio-1)*p),e},h=()=>new nr([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 Ree=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 zee(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ar(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){zee(e,t,n[t])})}return e}var Bee=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 ar({dropEffect:this.altKeyPressed?`copy`:`move`},t||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?`copy`:this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){let e=this.monitor.getSourceId();return ar({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(e)||{})}isDraggingNativeItem(){let e=this.monitor.getItemType();return Object.keys(qn).some(t=>qn[t]===e)}beginDragNativeItem(e,t){this.clearCurrentDragSourceNode(),this.currentNativeSource=Mee(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&&rr(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=ir(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=er(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=Lee(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=er(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:ir(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=ir(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 er(e.dataTransfer)&&e.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=e=>{let{dropTargetIds:t}=this;this.dropTargetIds=[],this.actions.hover(t,{clientOffset:ir(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 Ree(t,n),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new Aee(this.isNodeInDocument)}};const Vee=function(e,t,n){return new Bee(e,t,n)};var H=e(n(),1);const or=(0,H.createContext)({dragDropManager:void 0});function sr(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 cr=(function(){return typeof Symbol==`function`&&Symbol.observable||`@@observable`})(),lr=function(){return Math.random().toString(36).substring(7).split(``).join(`.`)},ur={INIT:`@@redux/INIT`+lr(),REPLACE:`@@redux/REPLACE`+lr(),PROBE_UNKNOWN_ACTION:function(){return`@@redux/PROBE_UNKNOWN_ACTION`+lr()}};function Hee(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 dr(e,t,n){var r;if(typeof t==`function`&&typeof n==`function`||typeof n==`function`&&typeof arguments[3]==`function`)throw Error(sr(0));if(typeof t==`function`&&n===void 0&&(n=t,t=void 0),n!==void 0){if(typeof n!=`function`)throw Error(sr(1));return n(dr)(e,t)}if(typeof e!=`function`)throw Error(sr(2));var i=e,a=t,o=[],s=o,c=!1;function l(){s===o&&(s=o.slice())}function u(){if(c)throw Error(sr(3));return a}function d(e){if(typeof e!=`function`)throw Error(sr(4));if(c)throw Error(sr(5));var t=!0;return l(),s.push(e),function(){if(t){if(c)throw Error(sr(6));t=!1,l();var n=s.indexOf(e);s.splice(n,1),o=null}}}function f(e){if(!Hee(e))throw Error(sr(7));if(e.type===void 0)throw Error(sr(8));if(c)throw Error(sr(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(sr(10));i=e,f({type:ur.REPLACE})}function m(){var e,t=d;return e={subscribe:function(e){if(typeof e!=`object`||!e)throw Error(sr(11));function n(){e.next&&e.next(u())}return n(),{unsubscribe:t(n)}}},e[cr]=function(){return this},e}return f({type:ur.INIT}),r={dispatch:f,subscribe:d,getState:u,replaceReducer:p},r[cr]=m,r}function fr(e,t,...n){if(Uee()&&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 Uee(){return typeof process<`u`&&!0}function Wee(e,t,n){return t.split(`.`).reduce((e,t)=>e&&e[t]?e[t]:n||null,e)}function Gee(e,t){return e.filter(e=>e!==t)}function pr(e){return typeof e==`object`}function Kee(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 qee(e,t){return e.filter(e=>t.indexOf(e)>-1)}const mr=`dnd-core/INIT_COORDS`,hr=`dnd-core/BEGIN_DRAG`,gr=`dnd-core/PUBLISH_DRAG_SOURCE`,_r=`dnd-core/HOVER`,vr=`dnd-core/DROP`,yr=`dnd-core/END_DRAG`;function br(e,t){return{type:mr,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}var Jee={type:mr,payload:{clientOffset:null,sourceClientOffset:null}};function Yee(e){return function(t=[],n={publishSource:!0}){let{publishSource:r=!0,clientOffset:i,getSourceClientOffset:a}=n,o=e.getMonitor(),s=e.getRegistry();e.dispatch(br(i)),Xee(t,o,s);let c=$ee(t,o);if(c==null){e.dispatch(Jee);return}let l=null;if(i){if(!a)throw Error(`getSourceClientOffset must be defined`);Zee(a),l=a(c)}e.dispatch(br(i,l));let u=s.getSource(c).beginDrag(o,c);if(u!=null)return Qee(u),s.pinSource(c),{type:hr,payload:{itemType:s.getSourceType(c),item:u,sourceId:c,clientOffset:i||null,sourceClientOffset:l||null,isSourcePublic:!!r}}}}function Xee(e,t,n){fr(!t.isDragging(),`Cannot call beginDrag while dragging.`),e.forEach(function(e){fr(n.getSource(e),`Expected sourceIds to be registered.`)})}function Zee(e){fr(typeof e==`function`,`When clientOffset is provided, getSourceClientOffset must be a function.`)}function Qee(e){fr(pr(e),`Item must be an object.`)}function $ee(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 ete(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tte(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){ete(e,t,n[t])})}return e}function nte(e){return function(t={}){let n=e.getMonitor(),r=e.getRegistry();rte(n),ote(n).forEach((i,a)=>{let o={type:vr,payload:{dropResult:tte({},t,ite(i,a,r,n))}};e.dispatch(o)})}}function rte(e){fr(e.isDragging(),`Cannot call drop while not dragging.`),fr(!e.didDrop(),`Cannot call drop twice during one drag operation.`)}function ite(e,t,n,r){let i=n.getTarget(e),a=i?i.drop(r,e):void 0;return ate(a),a===void 0&&(a=t===0?{}:r.getDropResult()),a}function ate(e){fr(e===void 0||pr(e),`Drop result must either be an object or undefined.`)}function ote(e){let t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}function ste(e){return function(){let t=e.getMonitor(),n=e.getRegistry();cte(t);let r=t.getSourceId();return r!=null&&(n.getSource(r,!0).endDrag(t,r),n.unpinSource()),{type:yr}}}function cte(e){fr(e.isDragging(),`Cannot call endDrag while not dragging.`)}function xr(e,t){return t===null?e===null:Array.isArray(e)?e.some(e=>e===t):e===t}function lte(e){return function(t,{clientOffset:n}={}){ute(t);let r=t.slice(0),i=e.getMonitor(),a=e.getRegistry();return fte(r,a,i.getItemType()),dte(r,i,a),pte(r,i,a),{type:_r,payload:{targetIds:r,clientOffset:n||null}}}}function ute(e){fr(Array.isArray(e),`Expected targetIds to be an array.`)}function dte(e,t,n){fr(t.isDragging(),`Cannot call hover while not dragging.`),fr(!t.didDrop(),`Cannot call hover after drop.`);for(let t=0;t<e.length;t++){let r=e[t];fr(e.lastIndexOf(r)===t,`Expected targetIds to be unique in the passed array.`),fr(n.getTarget(r),`Expected targetIds to be registered.`)}}function fte(e,t,n){for(let r=e.length-1;r>=0;r--){let i=e[r];xr(t.getTargetType(i),n)||e.splice(r,1)}}function pte(e,t,n){e.forEach(function(e){n.getTarget(e).hover(t,e)})}function mte(e){return function(){if(e.getMonitor().isDragging())return{type:gr}}}function hte(e){return{beginDrag:Yee(e),publishDragSource:mte(e),hover:lte(e),drop:nte(e),endDrag:ste(e)}}var gte=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=hte(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 _te(e,t){return{x:e.x+t.x,y:e.y+t.y}}function Sr(e,t){return{x:e.x-t.x,y:e.y-t.y}}function vte(e){let{clientOffset:t,initialClientOffset:n,initialSourceClientOffset:r}=e;return!t||!n||!r?null:Sr(_te(t,r),n)}function yte(e){let{clientOffset:t,initialClientOffset:n}=e;return!t||!n?null:Sr(t,n)}const Cr=[],wr=[];Cr.__IS_NONE__=!0,wr.__IS_ALL__=!0;function bte(e,t){return e===Cr?!1:e===wr||t===void 0?!0:qee(t,e).length>0}var xte=class{subscribeToStateChange(e,t={}){let{handlerIds:n}=t;fr(typeof e==`function`,`listener must be a function.`),fr(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&&!bte(t.dirtyHandlerIds,n)||e()}finally{r=i}})}subscribeToOffsetChange(e){fr(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 fr(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 fr(t,`Expected to find a valid target. targetId=${e}`),!this.isDragging()||this.didDrop()?!1:xr(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 fr(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&&!xr(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 vte(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return yte(this.store.getState().dragOffset)}constructor(e,t){this.store=e,this.registry=t}},Tr=typeof global<`u`?global:self,Er=Tr.MutationObserver||Tr.WebKitMutationObserver;function Dr(e){return function(){let t=setTimeout(r,0),n=setInterval(r,50);function r(){clearTimeout(t),clearInterval(n),e()}}}function Ste(e){let t=1,n=new Er(e),r=document.createTextNode(``);return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}const Cte=typeof Er==`function`?Ste:Dr;var wte=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=Cte(this.flush),this.requestErrorThrow=Dr(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}},Tte=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}},Ete=class{create(e){let t=this.freeTasks,n=t.length?t.pop():new Tte(this.onError,e=>t[t.length]=e);return n.task=e,n}constructor(e){this.onError=e,this.freeTasks=[]}},Or=new wte,Dte=new Ete(Or.registerPendingError);function Ote(e){Or.enqueueTask(Dte.create(e))}const kr=`dnd-core/ADD_SOURCE`,Ar=`dnd-core/ADD_TARGET`,jr=`dnd-core/REMOVE_SOURCE`,Mr=`dnd-core/REMOVE_TARGET`;function kte(e){return{type:kr,payload:{sourceId:e}}}function Ate(e){return{type:Ar,payload:{targetId:e}}}function jte(e){return{type:jr,payload:{sourceId:e}}}function Mte(e){return{type:Mr,payload:{targetId:e}}}function Nte(e){fr(typeof e.canDrag==`function`,`Expected canDrag to be a function.`),fr(typeof e.beginDrag==`function`,`Expected beginDrag to be a function.`),fr(typeof e.endDrag==`function`,`Expected endDrag to be a function.`)}function Pte(e){fr(typeof e.canDrop==`function`,`Expected canDrop to be a function.`),fr(typeof e.hover==`function`,`Expected hover to be a function.`),fr(typeof e.drop==`function`,`Expected beginDrag to be a function.`)}function Nr(e,t){if(t&&Array.isArray(e)){e.forEach(e=>Nr(e,!1));return}fr(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 Pr;(function(e){e.SOURCE=`SOURCE`,e.TARGET=`TARGET`})(Pr||={});var Fte=0;function Ite(){return Fte++}function Lte(e){let t=Ite().toString();switch(e){case Pr.SOURCE:return`S${t}`;case Pr.TARGET:return`T${t}`;default:throw Error(`Unknown Handler Role: ${e}`)}}function Fr(e){switch(e[0]){case`S`:return Pr.SOURCE;case`T`:return Pr.TARGET;default:throw Error(`Cannot parse handler ID: ${e}`)}}function Ir(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 Rte=class{addSource(e,t){Nr(e),Nte(t);let n=this.addHandler(Pr.SOURCE,e,t);return this.store.dispatch(kte(n)),n}addTarget(e,t){Nr(e,!0),Pte(t);let n=this.addHandler(Pr.TARGET,e,t);return this.store.dispatch(Ate(n)),n}containsHandler(e){return Ir(this.dragSources,e)||Ir(this.dropTargets,e)}getSource(e,t=!1){return fr(this.isSourceId(e),`Expected a valid source ID.`),t&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return fr(this.isTargetId(e),`Expected a valid target ID.`),this.dropTargets.get(e)}getSourceType(e){return fr(this.isSourceId(e),`Expected a valid source ID.`),this.types.get(e)}getTargetType(e){return fr(this.isTargetId(e),`Expected a valid target ID.`),this.types.get(e)}isSourceId(e){return Fr(e)===Pr.SOURCE}isTargetId(e){return Fr(e)===Pr.TARGET}removeSource(e){fr(this.getSource(e),`Expected an existing source.`),this.store.dispatch(jte(e)),Ote(()=>{this.dragSources.delete(e),this.types.delete(e)})}removeTarget(e){fr(this.getTarget(e),`Expected an existing target.`),this.store.dispatch(Mte(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){let t=this.getSource(e);fr(t,`Expected an existing source.`),this.pinnedSourceId=e,this.pinnedSource=t}unpinSource(){fr(this.pinnedSource,`No source is pinned at the time.`),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,t,n){let r=Lte(e);return this.types.set(r,t),e===Pr.SOURCE?this.dragSources.set(r,n):e===Pr.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 zte=(e,t)=>e===t;function Bte(e,t){return!e&&!t?!0:!e||!t?!1:e.x===t.x&&e.y===t.y}function Vte(e,t,n=zte){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 Hte(e=Cr,t){switch(t.type){case _r:break;case kr:case Ar:case Mr:case jr:return Cr;case hr:case gr:case yr:case vr:default:return wr}let{targetIds:n=[],prevTargetIds:r=[]}=t.payload,i=Kee(n,r);if(!(i.length>0||!Vte(n,r)))return Cr;let a=r[r.length-1],o=n[n.length-1];return a!==o&&(a&&i.push(a),o&&i.push(o)),i}function Ute(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wte(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){Ute(e,t,n[t])})}return e}var Lr={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function Gte(e=Lr,t){let{payload:n}=t;switch(t.type){case mr:case hr:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case _r:return Bte(e.clientOffset,n.clientOffset)?e:Wte({},e,{clientOffset:n.clientOffset});case yr:case vr:return Lr;default:return e}}function Kte(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rr(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){Kte(e,t,n[t])})}return e}var qte={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function Jte(e=qte,t){let{payload:n}=t;switch(t.type){case hr:return Rr({},e,{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case gr:return Rr({},e,{isSourcePublic:!0});case _r:return Rr({},e,{targetIds:n.targetIds});case Mr:return e.targetIds.indexOf(n.targetId)===-1?e:Rr({},e,{targetIds:Gee(e.targetIds,n.targetId)});case vr:return Rr({},e,{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case yr:return Rr({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}}function Yte(e=0,t){switch(t.type){case kr:case Ar:return e+1;case jr:case Mr:return e-1;default:return e}}function Xte(e=0){return e+1}function Zte(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qte(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){Zte(e,t,n[t])})}return e}function $te(e={},t){return{dirtyHandlerIds:Hte(e.dirtyHandlerIds,{type:t.type,payload:Qte({},t.payload,{prevTargetIds:Wee(e,`dragOperation.targetIds`,[])})}),dragOffset:Gte(e.dragOffset,t),refCount:Yte(e.refCount,t),dragOperation:Jte(e.dragOperation,t),stateId:Xte(e.stateId)}}function ene(e,t=void 0,n={},r=!1){let i=tne(r),a=new gte(i,new xte(i,new Rte(i))),o=e(a,t,n);return a.receiveBackend(o),a}function tne(e){let t=typeof window<`u`&&window.__REDUX_DEVTOOLS_EXTENSION__;return dr($te,e&&t&&t({name:`dnd-core`,instanceId:`dnd-core`}))}var U=e(t(),1);function nne(e,t){if(e==null)return{};var n=rne(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 rne(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 zr=0,Br=Symbol.for(`__REACT_DND_CONTEXT_INSTANCE__`),ine=(0,H.memo)(function(e){var{children:t}=e;let[n,r]=ane(nne(e,[`children`]));return(0,H.useEffect)(()=>{if(r){let e=Vr();return++zr,()=>{--zr===0&&(e[Br]=null)}}},[]),(0,U.jsx)(or.Provider,{value:n,children:t})});function ane(e){return`manager`in e?[{dragDropManager:e.manager},!1]:[one(e.backend,e.context,e.options,e.debugMode),!e.context]}function one(e,t=Vr(),n,r){let i=t;return i[Br]||(i[Br]={dragDropManager:ene(e,t,n,r)}),i[Br]}function Vr(){return typeof global<`u`?global:window}const Hr=typeof window<`u`?H.useLayoutEffect:H.useEffect;var sne=e(ce(),1);function cne(e,t,n){let[r,i]=(0,H.useState)(()=>t(e)),a=(0,H.useCallback)(()=>{let a=t(e);(0,sne.default)(r,a)||(i(a),n&&n())},[r,e,n]);return Hr(a),[r,a]}function lne(e,t,n){let[r,i]=cne(e,t,n);return Hr(function(){let t=e.getHandlerId();if(t!=null)return e.subscribeToStateChange(i,{handlerIds:[t]})},[e,i]),r}function Ur(e,t,n){return lne(t,e||(()=>({})),()=>n.reconnect())}function Wr(e,t){let n=[...t||[]];return t==null&&typeof e!=`function`&&n.push(e),(0,H.useMemo)(()=>typeof e==`function`?e():e,n)}function une(e){return(0,H.useMemo)(()=>e.hooks.dragSource(),[e])}function dne(e){return(0,H.useMemo)(()=>e.hooks.dragPreview(),[e])}var Gr=!1,Kr=!1,fne=class{receiveHandlerId(e){this.sourceId=e}getHandlerId(){return this.sourceId}canDrag(){fr(!Gr,`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 Gr=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{Gr=!1}}isDragging(){if(!this.sourceId)return!1;fr(!Kr,`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 Kr=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{Kr=!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()}},qr=!1,pne=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;fr(!qr,`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 qr=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{qr=!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 mne(e,t,n){let r=n.getRegistry(),i=r.addTarget(e,t);return[i,()=>r.removeTarget(i)]}function hne(e,t,n){let r=n.getRegistry(),i=r.addSource(e,t);return[i,()=>r.removeSource(i)]}function Jr(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 Yr(e){return typeof e==`object`&&!!e&&Object.prototype.hasOwnProperty.call(e,`current`)}function gne(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 _ne(e){return(t=null,n=null)=>{if(!(0,H.isValidElement)(t)){let r=t;return e(r,n),r}let r=t;return gne(r),vne(r,n?t=>e(t,n):e)}}function Xr(e){let t={};return Object.keys(e).forEach(n=>{let r=e[n];if(n.endsWith(`Ref`))t[n]=e[n];else{let e=_ne(r);t[n]=()=>e}}),t}function Zr(e,t){typeof e==`function`?e(t):e.current=t}function vne(e,t){let n=e.ref;return fr(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,H.cloneElement)(e,{ref:e=>{Zr(n,e),Zr(t,e)}}):(0,H.cloneElement)(e,{ref:t})}var yne=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!Jr(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!Jr(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=Xr({dragSource:(e,t)=>{this.clearDragSource(),this.dragSourceOptions=t||null,Yr(e)?this.dragSourceRef=e:this.dragSourceNode=e,this.reconnectDragSource()},dragPreview:(e,t)=>{this.clearDragPreview(),this.dragPreviewOptions=t||null,Yr(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}},bne=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!Jr(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=Xr({dropTarget:(e,t)=>{this.clearDropTarget(),this.dropTargetOptions=t,Yr(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 Qr(){let{dragDropManager:e}=(0,H.useContext)(or);return fr(e!=null,`Expected drag drop context`),e}function xne(e,t){let n=Qr(),r=(0,H.useMemo)(()=>new yne(n.getBackend()),[n]);return Hr(()=>(r.dragSourceOptions=e||null,r.reconnect(),()=>r.disconnectDragSource()),[r,e]),Hr(()=>(r.dragPreviewOptions=t||null,r.reconnect(),()=>r.disconnectDragPreview()),[r,t]),r}function Sne(){let e=Qr();return(0,H.useMemo)(()=>new fne(e),[e])}var Cne=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 wne(e,t,n){let r=(0,H.useMemo)(()=>new Cne(e,t,n),[t,n]);return(0,H.useEffect)(()=>{r.spec=e},[e]),r}function Tne(e){return(0,H.useMemo)(()=>{let t=e.type;return fr(t!=null,`spec.type must be defined`),t},[e])}function Ene(e,t,n){let r=Qr(),i=wne(e,t,n),a=Tne(e);Hr(function(){if(a!=null){let[e,o]=hne(a,i,r);return t.receiveHandlerId(e),n.receiveHandlerId(e),o}},[r,t,n,i,a])}function Dne(e,t){let n=Wr(e,t);fr(!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=Sne(),i=xne(n.options,n.previewOptions);return Ene(n,r,i),[Ur(n.collect,r,i),une(i),dne(i)]}function One(e){return(0,H.useMemo)(()=>e.hooks.dropTarget(),[e])}function kne(e){let t=Qr(),n=(0,H.useMemo)(()=>new bne(t.getBackend()),[t]);return Hr(()=>(n.dropTargetOptions=e||null,n.reconnect(),()=>n.disconnectDropTarget()),[e]),n}function Ane(){let e=Qr();return(0,H.useMemo)(()=>new pne(e),[e])}function jne(e){let{accept:t}=e;return(0,H.useMemo)(()=>(fr(e.accept!=null,`accept must be defined`),Array.isArray(t)?t:[t]),[t])}var Mne=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 Nne(e,t){let n=(0,H.useMemo)(()=>new Mne(e,t),[t]);return(0,H.useEffect)(()=>{n.spec=e},[e]),n}function Pne(e,t,n){let r=Qr(),i=Nne(e,t),a=jne(e);Hr(function(){let[e,o]=mne(a,i,r);return t.receiveHandlerId(e),n.receiveHandlerId(e),o},[r,t,i,n,a.map(e=>e.toString()).join(`|`)])}function Fne(e,t){let n=Wr(e,t),r=Ane(),i=kne(n.options);return Pne(n,r,i),[Ur(n.collect,r,i),One(i)]}var Ine=r(((e,t)=>{t.exports=`SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED`})),Lne=r(((e,t)=>{var n=Ine();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}})),$r=r(((e,t)=>{t.exports=Lne()()}));function Rne(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var zne=c((()=>{})),Bne=s({default:()=>ti}),ei,ti,Vne=c((()=>{zne(),ei=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,ti=Rne(function(e){return ei.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91})})),ni=e($r(),1),ri=e($r(),1),ii=e(o(),1),ai=e(te(),1),Hne=Object.defineProperty,oi=e=>{throw TypeError(e)},Une=(e,t,n)=>t in e?Hne(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,si=(e,t,n)=>Une(e,typeof t==`symbol`?t:t+``,n),ci=(e,t,n)=>t.has(e)||oi(`Cannot `+n),li=(e,t,n)=>(ci(e,t,`read from private field`),n?n.call(e):t.get(e)),ui=(e,t,n)=>t.has(e)?oi(`Cannot add the same private member more than once`):t instanceof WeakSet?t.add(e):t.set(e,n),di=(e,t,n,r)=>(ci(e,t,`write to private field`),r?r.call(e,n):t.set(e,n),n),fi,pi,mi,hi,gi,_i,vi,yi,bi,xi,Si=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function Ci(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}function wi(e){if(e.__esModule)return e;var t=e.default;if(typeof t==`function`){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,`__esModule`,{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),n}var Ti={exports:{}},Ei;function Di(){return Ei?Ti.exports:(Ei=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var e=``,t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=i(e,r(n)))}return e}function r(e){if(typeof e==`string`||typeof e==`number`)return e;if(typeof e!=`object`)return``;if(Array.isArray(e))return n.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes(`[native code]`))return e.toString();var r=``;for(var a in e)t.call(e,a)&&e[a]&&(r=i(r,a));return r}function i(e,t){return t?e?e+` `+t:e+t:e}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Ti),Ti.exports)}var Oi=Ci(Di()),ki=(e=>(e.TEXT=`Text`,e.BUTTON=`Button`,e.DROP_DOWN_BUTTON=`DropDownButton`,e.COMPONENT=`Component`,e))(ki||{}),Ai=(e=>(e.FIRST=`first`,e.MIDDLE=`middle`,e.LAST=`last`,e))(Ai||{}),ji=(e=>(e.DANGER=`danger`,e.RED=`red`,e.WHITE=`white`,e.SUCCESS=`success`,e.GREEN=`green`,e.MUTED=`muted`,e))(ji||{}),Mi=(e=>(e.LEFT=`left`,e.RIGHT=`right`,e.CENTER=`center`,e))(Mi||{}),Ni=(e=>(e.TOP=`top`,e.BOTTOM=`bottom`,e))(Ni||{}),Pi=(e=>(e.LIBRARY=`library`,e.ADD=`add`,e.DRAG=`drag`,e.HELP=`help`,e.NOTIFICATION=`notification`,e.MENU=`menu`,e.EDIT=`edit`,e.FAST_FORWARD=`fast forward`,e.INDENT=`indent`,e.STAR=`star`,e.LIST=`list`,e.SETTINGS=`settings`,e.CHECK=`check`,e.LOCK=`lock`,e.UNLOCK=`unlock`,e.CLOSE=`close`,e.SUCCESS=`success`,e.WARNING=`warning`,e.ERROR=`error`,e.INFO=`info`,e.LEFT=`left`,e.COLLAPSE=`collapse`,e.EXPAND=`expand`,e.SORT_ASCENDING=`sort ascending`,e.SORT_DESCENDING=`sort descending`,e.FAST_BACKWARD=`fast backward`,e.CHEVRON_DOWN=`chevron down`,e.CHEVRON_RIGHT=`chevron right`,e.CHEVRON_LEFT=`chevron left`,e.CHEVRON_DOUBLE_LEFT=`chevron double left`,e.CHEVRON_DOUBLE_RIGHT=`chevron double right`,e))(Pi||{}),Fi=(e=>(e.TEXT=`text`,e.RADIO=`radio`,e.CHECKBOX=`checkbox`,e))(Fi||{});function Ii(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}function Li(){return Li=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},Li.apply(null,arguments)}function Ri(e,t){return Ri=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ri(e,t)}function zi(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ri(e,t)}function Bi(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 Vi={},Hi;function Wne(){if(Hi)return Vi;Hi=1;var e=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,t=/^[\u000b\u0020-\u007e\u0080-\u00ff]+$/,n=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,r=/\\([\u000b\u0020-\u00ff])/g,i=/([\\"])/g,a=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;Vi.format=o,Vi.parse=s;function o(e){if(!e||typeof e!=`object`)throw TypeError(`argument obj is required`);var t=e.parameters,r=e.type;if(!r||!a.test(r))throw TypeError(`invalid type`);var i=r;if(t&&typeof t==`object`)for(var o,s=Object.keys(t).sort(),c=0;c<s.length;c++){if(o=s[c],!n.test(o))throw TypeError(`invalid parameter name`);i+=`; `+o+`=`+l(t[o])}return i}function s(t){if(!t)throw TypeError(`argument string is required`);var n=typeof t==`object`?c(t):t;if(typeof n!=`string`)throw TypeError(`argument string is required to be a string`);var i=n.indexOf(`;`),o=i===-1?n.trim():n.slice(0,i).trim();if(!a.test(o))throw TypeError(`invalid media type`);var s=new u(o.toLowerCase());if(i!==-1){var l,d,f;for(e.lastIndex=i;d=e.exec(n);){if(d.index!==i)throw TypeError(`invalid parameter format`);i+=d[0].length,l=d[1].toLowerCase(),f=d[2],f.charCodeAt(0)===34&&(f=f.slice(1,-1),f.indexOf(`\\`)!==-1&&(f=f.replace(r,`$1`))),s.parameters[l]=f}if(i!==n.length)throw TypeError(`invalid parameter format`)}return s}function c(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 l(e){var r=String(e);if(n.test(r))return r;if(r.length>0&&!t.test(r))throw TypeError(`invalid parameter value`);return`"`+r.replace(i,`\\$1`)+`"`}function u(e){this.parameters=Object.create(null),this.type=e}return Vi}var Gne=Wne(),Ui=new Map,Wi=function(e){return e.cloneNode(!0)},Gi=function(){return window.location.protocol===`file:`},Ki=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=Gne.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(Gi()?`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||Gi()&&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()},qi={},Ji=function(e,t){qi[e]=qi[e]||[],qi[e].push(t)},Kne=function(e){for(var t=function(t,n){setTimeout(function(){if(Array.isArray(qi[e])){var n=Ui.get(e),r=qi[e][t];n instanceof SVGSVGElement&&r(null,Wi(n)),n instanceof Error&&r(n),t===qi[e].length-1&&delete qi[e]}},0)},n=0,r=qi[e].length;n<r;n++)t(n)},qne=function(e,t,n){if(Ui.has(e)){var r=Ui.get(e);if(r===void 0){Ji(e,n);return}if(r instanceof SVGSVGElement){n(null,Wi(r));return}}Ui.set(e,void 0),Ji(e,n),Ki(e,t,function(t,n){t?Ui.set(e,t):n.responseXML?.documentElement instanceof SVGSVGElement&&Ui.set(e,n.responseXML.documentElement),Kne(e)})},Jne=function(e,t,n){Ki(e,t,function(e,t){e?n(e):t.responseXML?.documentElement instanceof SVGSVGElement&&n(null,t.responseXML.documentElement)})},Yne=0,Xne=function(){return++Yne},Yi=[],Xi={},Zne=`http://www.w3.org/2000/svg`,Zi=`http://www.w3.org/1999/xlink`,Qi=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(Yi.indexOf(e)!==-1){Yi.splice(Yi.indexOf(e),1),e=null;return}Yi.push(e),e.setAttribute(`src`,``),(r?qne:Jne)(s,i,function(r,i){if(!i){Yi.splice(Yi.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(Bi(Bi(Bi([],(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+`-`+Xne();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(Zi,`href`);c&&c.toString()===`#`+_[e].id&&a.push(r[o])}for(var l=0,u=a.length;l<u;l++)a[l].setAttributeNS(Zi,`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`&&!Xi[s])){for(var D=0,O=S.length;D<O;D++)Function(S[D])(window);Xi[s]=!0}var k=i.querySelectorAll(`style`);if(Array.prototype.forEach.call(k,function(e){e.textContent+=``}),i.setAttribute(`xmlns`,Zne),i.setAttribute(`xmlns:xlink`,Zi),a(i),!e.parentNode){Yi.splice(Yi.indexOf(e),1),e=null,o(Error(`Parent node is null`));return}e.parentNode.replaceChild(i,e),Yi.splice(Yi.indexOf(e),1),e=null,o(null,i)})},Qne=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++)Qi(e[v],f,g,u,m,c,function(t,n){o(t,n),e&&`length`in e&&e.length===++_&&i(_)});else e?Qi(e,f,g,u,m,c,function(t,n){o(t,n),i(1),e=null}):i(0)},$ne=function(e){return(e?.ownerDocument||document).defaultView||window},ere=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},tre=[`afterInjection`,`beforeInjection`,`desc`,`evalScripts`,`fallback`,`httpRequestWithCredentials`,`loading`,`renumerateIRIElements`,`src`,`title`,`useRequestCache`,`wrapper`],$i=`http://www.w3.org/2000/svg`,ea=`http://www.w3.org/1999/xlink`,ta=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}zi(t,e);var n=t.prototype;return n.renderSVG=function(){var e=this;if(this.reactWrapper instanceof $ne(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($i,f),p.setAttribute(`xmlns`,$i),p.setAttribute(`xmlns:xlink`,ea),m=document.createElementNS($i,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)})};Qne(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;ere(Li({},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=Ii(e,tre),a=r;return H.createElement(a,Li({},i,{ref:this.refCallback},r===`svg`?{xmlns:$i,xmlnsXlink:ea}:{}),this.state.isLoading&&n&&H.createElement(n,null),this.state.hasError&&t&&H.createElement(t,null))},t}(H.Component);ta.defaultProps={afterInjection:function(){},beforeInjection:function(){},desc:``,evalScripts:`never`,fallback:null,httpRequestWithCredentials:!1,loading:null,onError:function(){},renumerateIRIElements:!0,title:``,useRequestCache:!0,wrapper:`div`},ta.propTypes={afterInjection:ni.func,beforeInjection:ni.func,desc:ni.string,evalScripts:ni.oneOf([`always`,`once`,`never`]),fallback:ni.oneOfType([ni.func,ni.object,ni.string]),httpRequestWithCredentials:ni.bool,loading:ni.oneOfType([ni.func,ni.object,ni.string]),onError:ni.func,renumerateIRIElements:ni.bool,src:ni.string.isRequired,title:ni.string,useRequestCache:ni.bool,wrapper:ni.oneOf([`div`,`span`,`svg`])};var na=H.createContext(!1),ra={wrapper:`_wrapper_18jt2_1`,customSvg:`_customSvg_18jt2_8`,customPng:`_customPng_18jt2_11`,clickable:`_clickable_18jt2_16`},ia={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},aa=H.createContext&&H.createContext(ia),oa=function(){return oa=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},oa.apply(this,arguments)},nre=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function sa(e){return e&&e.map(function(e,t){return H.createElement(e.tag,oa({key:t},e.attr),sa(e.child))})}function W(e){return function(t){return H.createElement(rre,oa({attr:oa({},e.attr)},t),sa(e.child))}}function rre(e){var t=function(t){var n=e.attr,r=e.size,i=e.title,a=nre(e,[`attr`,`size`,`title`]),o=r||t.size||`1em`,s;return t.className&&(s=t.className),e.className&&(s=(s?s+` `:``)+e.className),H.createElement(`svg`,oa({stroke:`currentColor`,fill:`currentColor`,strokeWidth:`0`},t.attr,n,a,{className:s,style:oa(oa({color:e.color||t.color},t.style),e.style),height:o,width:o,xmlns:`http://www.w3.org/2000/svg`}),i&&H.createElement(`title`,null,i),e.children)};return aa===void 0?t(ia):H.createElement(aa.Consumer,null,function(e){return t(e)})}function ire(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M12 9v4`}},{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`}},{tag:`path`,attr:{d:`M12 16h.01`}}]})(e)}function are(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M12 5l0 14`}},{tag:`path`,attr:{d:`M18 13l-6 6`}},{tag:`path`,attr:{d:`M6 13l6 6`}}]})(e)}function ore(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M5 12l14 0`}},{tag:`path`,attr:{d:`M5 12l6 6`}},{tag:`path`,attr:{d:`M5 12l6 -6`}}]})(e)}function sre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M5 12l14 0`}},{tag:`path`,attr:{d:`M13 18l6 -6`}},{tag:`path`,attr:{d:`M13 6l6 6`}}]})(e)}function cre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M12 5l0 14`}},{tag:`path`,attr:{d:`M18 11l-6 -6`}},{tag:`path`,attr:{d:`M6 11l6 -6`}}]})(e)}function lre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M16 4l4 0l0 4`}},{tag:`path`,attr:{d:`M14 10l6 -6`}},{tag:`path`,attr:{d:`M8 20l-4 0l0 -4`}},{tag:`path`,attr:{d:`M4 20l6 -6`}}]})(e)}function ure(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M16 4l4 0l0 4`}},{tag:`path`,attr:{d:`M14 10l6 -6`}},{tag:`path`,attr:{d:`M8 20l-4 0l0 -4`}},{tag:`path`,attr:{d:`M4 20l6 -6`}},{tag:`path`,attr:{d:`M16 20l4 0l0 -4`}},{tag:`path`,attr:{d:`M14 14l6 6`}},{tag:`path`,attr:{d:`M8 4l-4 0l0 4`}},{tag:`path`,attr:{d:`M4 4l6 6`}}]})(e)}function dre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M5 9l4 0l0 -4`}},{tag:`path`,attr:{d:`M3 3l6 6`}},{tag:`path`,attr:{d:`M5 15l4 0l0 4`}},{tag:`path`,attr:{d:`M3 21l6 -6`}},{tag:`path`,attr:{d:`M19 9l-4 0l0 -4`}},{tag:`path`,attr:{d:`M15 9l6 -6`}},{tag:`path`,attr:{d:`M19 15l-4 0l0 4`}},{tag:`path`,attr:{d:`M15 15l6 6`}}]})(e)}function fre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M18 9l3 3l-3 3`}},{tag:`path`,attr:{d:`M15 12h6`}},{tag:`path`,attr:{d:`M6 9l-3 3l3 3`}},{tag:`path`,attr:{d:`M3 12h6`}},{tag:`path`,attr:{d:`M9 18l3 3l3 -3`}},{tag:`path`,attr:{d:`M12 15v6`}},{tag:`path`,attr:{d:`M15 6l-3 -3l-3 3`}},{tag:`path`,attr:{d:`M12 3v6`}}]})(e)}function pre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M21 17h-8l-3.5 -5h-6.5`}},{tag:`path`,attr:{d:`M21 7h-8l-3.495 5`}},{tag:`path`,attr:{d:`M18 10l3 -3l-3 -3`}},{tag:`path`,attr:{d:`M18 20l3 -3l-3 -3`}}]})(e)}function mre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{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`}},{tag:`path`,attr:{d:`M9 17v1a3 3 0 0 0 6 0v-1`}}]})(e)}function hre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M7 5h6a3.5 3.5 0 0 1 0 7h-6z`}},{tag:`path`,attr:{d:`M13 12h1a3.5 3.5 0 0 1 0 7h-7v-7`}}]})(e)}function gre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M13 3l0 7l6 0l-8 11l0 -7l-6 0l8 -11`}}]})(e)}function _re(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M19 4v16h-12a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2h12z`}},{tag:`path`,attr:{d:`M19 16h-12a2 2 0 0 0 -2 2`}},{tag:`path`,attr:{d:`M9 8h6`}}]})(e)}function vre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M3 21l18 0`}},{tag:`path`,attr:{d:`M5 21v-14l8 -4v18`}},{tag:`path`,attr:{d:`M19 21v-10l-6 -4`}},{tag:`path`,attr:{d:`M9 9l0 .01`}},{tag:`path`,attr:{d:`M9 12l0 .01`}},{tag:`path`,attr:{d:`M9 15l0 .01`}},{tag:`path`,attr:{d:`M9 18l0 .01`}}]})(e)}function yre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{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`}},{tag:`path`,attr:{d:`M9 13a3 3 0 1 0 6 0a3 3 0 0 0 -6 0`}}]})(e)}function bre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M3 12m0 1a1 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`}},{tag:`path`,attr:{d:`M9 8m0 1a1 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`}},{tag:`path`,attr:{d:`M15 4m0 1a1 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`}},{tag:`path`,attr:{d:`M4 20l14 0`}}]})(e)}function xre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M4 19l16 0`}},{tag:`path`,attr:{d:`M4 15l4 -6l4 2l4 -5l4 4`}}]})(e)}function Sre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M12 3v9h9`}},{tag:`path`,attr:{d:`M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0`}}]})(e)}function Cre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M5 12l5 5l10 -10`}}]})(e)}function wre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M6 9l6 6l6 -6`}}]})(e)}function Tre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M15 6l-6 6l6 6`}}]})(e)}function Ere(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M9 6l6 6l-6 6`}}]})(e)}function Dre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M6 15l6 -6l6 6`}}]})(e)}function Ore(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M11 7l-5 5l5 5`}},{tag:`path`,attr:{d:`M17 7l-5 5l5 5`}}]})(e)}function kre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M7 7l5 5l-5 5`}},{tag:`path`,attr:{d:`M13 7l5 5l-5 5`}}]})(e)}function Are(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0`}},{tag:`path`,attr:{d:`M9 12l2 2l4 -4`}}]})(e)}function jre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0`}},{tag:`path`,attr:{d:`M10 10l4 4m0 -4l-4 4`}}]})(e)}function Mre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0`}}]})(e)}function Nre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{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`}},{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`}}]})(e)}function Pre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0`}},{tag:`path`,attr:{d:`M12 7v5l3 3`}}]})(e)}function Fre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M7 8l-4 4l4 4`}},{tag:`path`,attr:{d:`M17 8l4 4l-4 4`}},{tag:`path`,attr:{d:`M14 4l-4 16`}}]})(e)}function Ire(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M8 8m0 2a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-8a2 2 0 0 1 -2 -2z`}},{tag:`path`,attr:{d:`M16 8v-2a2 2 0 0 0 -2 -2h-8a2 2 0 0 0 -2 2v8a2 2 0 0 0 2 2h2`}}]})(e)}function Lre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M6 6v6a3 3 0 0 0 3 3h10l-4 -4m0 8l4 -4`}}]})(e)}function Rre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{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`}},{tag:`path`,attr:{d:`M12 14m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`}},{tag:`path`,attr:{d:`M14 4l0 4l-6 0l0 -4`}}]})(e)}function zre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M3 19l18 0`}},{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`}}]})(e)}function Bre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`}},{tag:`path`,attr:{d:`M12 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`}},{tag:`path`,attr:{d:`M12 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`}}]})(e)}function Vre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2`}},{tag:`path`,attr:{d:`M7 11l5 5l5 -5`}},{tag:`path`,attr:{d:`M12 4l0 12`}}]})(e)}function Hre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{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`}}]})(e)}function Ure(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M12 19v.01`}},{tag:`path`,attr:{d:`M12 15v-10`}}]})(e)}function Wre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{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`}},{tag:`path`,attr:{d:`M11 13l9 -9`}},{tag:`path`,attr:{d:`M15 4h5v5`}}]})(e)}function Gre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M10.585 10.587a2 2 0 0 0 2.829 2.828`}},{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`}},{tag:`path`,attr:{d:`M3 3l18 18`}}]})(e)}function Kre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M10 12a2 2 0 1 0 4 0a2 2 0 0 0 -4 0`}},{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`}}]})(e)}function qre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M14 3v4a1 1 0 0 0 1 1h4`}},{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`}}]})(e)}function Jre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{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`}},{tag:`path`,attr:{d:`M3 3l18 18`}}]})(e)}function Yre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{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`}}]})(e)}function Xre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`}},{tag:`path`,attr:{d:`M4 8v-2a2 2 0 0 1 2 -2h2`}},{tag:`path`,attr:{d:`M4 16v2a2 2 0 0 0 2 2h2`}},{tag:`path`,attr:{d:`M16 4h2a2 2 0 0 1 2 2v2`}},{tag:`path`,attr:{d:`M16 20h2a2 2 0 0 0 2 -2v-2`}}]})(e)}function Zre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{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`}},{tag:`path`,attr:{d:`M18 18m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0`}},{tag:`path`,attr:{d:`M20.2 20.2l1.8 1.8`}}]})(e)}function Qre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{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`}}]})(e)}function $re(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0`}},{tag:`path`,attr:{d:`M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`}},{tag:`path`,attr:{d:`M13.41 10.59l2.59 -2.59`}},{tag:`path`,attr:{d:`M7 12a5 5 0 0 1 5 -5`}}]})(e)}function eie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M12 18m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`}},{tag:`path`,attr:{d:`M7 6m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`}},{tag:`path`,attr:{d:`M17 6m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`}},{tag:`path`,attr:{d:`M7 8v2a2 2 0 0 0 2 2h6a2 2 0 0 0 2 -2v-2`}},{tag:`path`,attr:{d:`M12 12l0 4`}}]})(e)}function tie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M9 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`}},{tag:`path`,attr:{d:`M9 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`}},{tag:`path`,attr:{d:`M9 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`}},{tag:`path`,attr:{d:`M15 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`}},{tag:`path`,attr:{d:`M15 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`}},{tag:`path`,attr:{d:`M15 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`}}]})(e)}function nie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0`}},{tag:`path`,attr:{d:`M12 17l0 .01`}},{tag:`path`,attr:{d:`M12 13.5a1.5 1.5 0 0 1 1 -1.5a2.6 2.6 0 1 0 -3 -4`}}]})(e)}function rie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0`}},{tag:`path`,attr:{d:`M12 9h.01`}},{tag:`path`,attr:{d:`M11 12h1v4h1`}}]})(e)}function iie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M11 5l6 0`}},{tag:`path`,attr:{d:`M7 19l6 0`}},{tag:`path`,attr:{d:`M14 5l-4 14`}}]})(e)}function aie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{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`}},{tag:`path`,attr:{d:`M15 9h.01`}}]})(e)}function oie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{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`}},{tag:`path`,attr:{d:`M12 4l0 16`}}]})(e)}function sie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{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`}},{tag:`path`,attr:{d:`M4 12l16 0`}}]})(e)}function cie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M9 15l3 -3m2 -2l1 -1`}},{tag:`path`,attr:{d:`M11 6l.463 -.536a5 5 0 0 1 7.071 7.072l-.534 .464`}},{tag:`path`,attr:{d:`M3 3l18 18`}},{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`}}]})(e)}function lie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M9 15l6 -6`}},{tag:`path`,attr:{d:`M11 6l.463 -.536a5 5 0 0 1 7.071 7.072l-.534 .464`}},{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`}}]})(e)}function uie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M11 6h9`}},{tag:`path`,attr:{d:`M11 12h9`}},{tag:`path`,attr:{d:`M12 18h8`}},{tag:`path`,attr:{d:`M4 16a2 2 0 1 1 4 0c0 .591 -.5 1 -1 1.5l-3 2.5h4`}},{tag:`path`,attr:{d:`M6 10v-6l-2 2`}}]})(e)}function die(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M9 6l11 0`}},{tag:`path`,attr:{d:`M9 12l11 0`}},{tag:`path`,attr:{d:`M9 18l11 0`}},{tag:`path`,attr:{d:`M5 6l0 .01`}},{tag:`path`,attr:{d:`M5 12l0 .01`}},{tag:`path`,attr:{d:`M5 18l0 .01`}}]})(e)}function fie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M12 3a9 9 0 1 0 9 9`}}]})(e)}function pie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{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`}},{tag:`path`,attr:{d:`M12 16m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`}},{tag:`path`,attr:{d:`M8 11v-5a4 4 0 0 1 8 0`}}]})(e)}function mie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{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`}},{tag:`path`,attr:{d:`M11 16a1 1 0 1 0 2 0a1 1 0 0 0 -2 0`}},{tag:`path`,attr:{d:`M8 11v-4a4 4 0 1 1 8 0v4`}}]})(e)}function hie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M9 11a3 3 0 1 0 6 0a3 3 0 0 0 -6 0`}},{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`}}]})(e)}function gie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{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`}}]})(e)}function _ie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M5 12l14 0`}}]})(e)}function vie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{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`}}]})(e)}function yie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{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`}},{tag:`path`,attr:{d:`M8 4l0 16`}},{tag:`path`,attr:{d:`M16 4l0 16`}},{tag:`path`,attr:{d:`M4 8l4 0`}},{tag:`path`,attr:{d:`M4 16l4 0`}},{tag:`path`,attr:{d:`M4 12l16 0`}},{tag:`path`,attr:{d:`M16 8l4 0`}},{tag:`path`,attr:{d:`M16 16l4 0`}}]})(e)}function bie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M13 20l7 -7`}},{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`}}]})(e)}function xie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M4 20h4l10.5 -10.5a2.828 2.828 0 1 0 -4 -4l-10.5 10.5v4`}},{tag:`path`,attr:{d:`M13.5 6.5l4 4`}}]})(e)}function Sie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{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`}},{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`}}]})(e)}function Cie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M7 4v16l13 -8z`}}]})(e)}function wie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M20 5v14l-12 -7z`}},{tag:`path`,attr:{d:`M4 5l0 14`}}]})(e)}function Tie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M4 5v14l12 -7z`}},{tag:`path`,attr:{d:`M20 5l0 14`}}]})(e)}function Eie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{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`}}]})(e)}function Die(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M3 5v14l8 -7z`}},{tag:`path`,attr:{d:`M14 5v14l8 -7z`}}]})(e)}function Oie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M21 5v14l-8 -7z`}},{tag:`path`,attr:{d:`M10 5v14l-8 -7z`}}]})(e)}function kie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M12 5l0 14`}},{tag:`path`,attr:{d:`M5 12l14 0`}}]})(e)}function Aie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{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`}},{tag:`path`,attr:{d:`M12 19l0 .01`}}]})(e)}function jie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4`}},{tag:`path`,attr:{d:`M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4`}}]})(e)}function Mie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{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`}},{tag:`path`,attr:{d:`M20 4v5h-5`}}]})(e)}function Nie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M19.95 11a8 8 0 1 0 -.5 4m.5 5v-5h-5`}}]})(e)}function Pie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{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`}},{tag:`path`,attr:{d:`M12 15l0 4`}},{tag:`path`,attr:{d:`M14 17l-4 0`}}]})(e)}function Fie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{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`}},{tag:`path`,attr:{d:`M12 9v-4`}},{tag:`path`,attr:{d:`M10 7l4 0`}}]})(e)}function Iie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{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`}},{tag:`path`,attr:{d:`M9 8v2`}},{tag:`path`,attr:{d:`M6 8v3`}},{tag:`path`,attr:{d:`M12 8v3`}},{tag:`path`,attr:{d:`M18 8v3`}},{tag:`path`,attr:{d:`M15 8v2`}}]})(e)}function Lie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M7 20l10 0`}},{tag:`path`,attr:{d:`M6 6l6 -1l6 1`}},{tag:`path`,attr:{d:`M12 3l0 17`}},{tag:`path`,attr:{d:`M9 12l-3 -6l-3 6a3 3 0 0 0 6 0`}},{tag:`path`,attr:{d:`M21 12l-3 -6l-3 6a3 3 0 0 0 6 0`}}]})(e)}function Rie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0`}},{tag:`path`,attr:{d:`M21 21l-6 -6`}}]})(e)}function zie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{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`}},{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`}},{tag:`path`,attr:{d:`M7 8l0 .01`}},{tag:`path`,attr:{d:`M7 16l0 .01`}}]})(e)}function Bie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{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`}},{tag:`path`,attr:{d:`M9 12a3 3 0 1 0 6 0a3 3 0 0 0 -6 0`}}]})(e)}function Vie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M4 6l7 0`}},{tag:`path`,attr:{d:`M4 12l7 0`}},{tag:`path`,attr:{d:`M4 18l9 0`}},{tag:`path`,attr:{d:`M15 9l3 -3l3 3`}},{tag:`path`,attr:{d:`M18 6l0 12`}}]})(e)}function Hie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M4 6l9 0`}},{tag:`path`,attr:{d:`M4 12l7 0`}},{tag:`path`,attr:{d:`M4 18l7 0`}},{tag:`path`,attr:{d:`M15 15l3 3l3 -3`}},{tag:`path`,attr:{d:`M18 6l0 12`}}]})(e)}function Uie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{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`}}]})(e)}function Wie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M12 12m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0`}},{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`}}]})(e)}function Gie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{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`}},{tag:`path`,attr:{d:`M3 10h18`}},{tag:`path`,attr:{d:`M10 3v18`}}]})(e)}function Kie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`}},{tag:`path`,attr:{d:`M12 12m-5 0a5 5 0 1 0 10 0a5 5 0 1 0 -10 0`}},{tag:`path`,attr:{d:`M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0`}}]})(e)}function qie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M4 7l16 0`}},{tag:`path`,attr:{d:`M10 11l0 6`}},{tag:`path`,attr:{d:`M14 11l0 6`}},{tag:`path`,attr:{d:`M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12`}},{tag:`path`,attr:{d:`M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3`}}]})(e)}function Jie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2`}},{tag:`path`,attr:{d:`M7 9l5 -5l5 5`}},{tag:`path`,attr:{d:`M12 4l0 12`}}]})(e)}function Yie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0`}},{tag:`path`,attr:{d:`M6 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2`}}]})(e)}function Xie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M9 7m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0`}},{tag:`path`,attr:{d:`M3 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2`}},{tag:`path`,attr:{d:`M16 3.13a4 4 0 0 1 0 7.75`}},{tag:`path`,attr:{d:`M21 21v-2a4 4 0 0 0 -3 -3.85`}}]})(e)}function Zie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M18 6l-12 12`}},{tag:`path`,attr:{d:`M6 6l12 12`}}]})(e)}function Qie(e){return W({attr:{viewBox:`0 0 16 16`,fill:`currentColor`},child:[{tag:`path`,attr:{d:`M9 9H4v1h5V9z`}},{tag:`path`,attr:{fillRule:`evenodd`,clipRule:`evenodd`,d:`M5 3l1-1h7l1 1v7l-1 1h-2v2l-1 1H3l-1-1V6l1-1h2V3zm1 2h4l1 1v4h2V3H6v2zm4 1H3v7h7V6z`}}]})(e)}function $ie(e){return W({attr:{viewBox:`0 0 16 16`,fill:`currentColor`},child:[{tag:`path`,attr:{d:`M9 9H4v1h5V9z`}},{tag:`path`,attr:{d:`M7 12V7H6v5h1z`}},{tag:`path`,attr:{fillRule:`evenodd`,clipRule:`evenodd`,d:`M5 3l1-1h7l1 1v7l-1 1h-2v2l-1 1H3l-1-1V6l1-1h2V3zm1 2h4l1 1v4h2V3H6v2zm4 1H3v7h7V6z`}}]})(e)}function eae(e){return W({attr:{viewBox:`0 0 1024 1024`},child:[{tag:`path`,attr:{d:`M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z`}},{tag:`path`,attr:{d:`M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z`}}]})(e)}function tae(e){return W({attr:{viewBox:`0 0 1024 1024`},child:[{tag:`path`,attr:{d:`M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z`}},{tag:`path`,attr:{d:`M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z`}}]})(e)}var nae=`data:image/svg+xml,%3csvg%20width='1em'%20height='1em'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M18%204H6C4.89543%204%204%204.89543%204%206V18C4%2019.1046%204.89543%2020%206%2020H18C19.1046%2020%2020%2019.1046%2020%2018V6C20%204.89543%2019.1046%204%2018%204Z'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e`,rae=`data:image/svg+xml,%3csvg%20width='1em'%20height='1em'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M4%2012H20M12%204V12M18%2020H6C4.89543%2020%204%2019.1046%204%2018V6C4%204.8954%204.89543%204%206%204H18C19.1046%204%2020%204.8954%2020%206V18C20%2019.1046%2019.1046%2020%2018%2020Z'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e`,iae=`data:image/svg+xml,%3csvg%20width='1em'%20height='1em'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M4%2012H20M12%2020V12M18%204H6C4.89543%204%204%204.89543%204%206V18C4%2019.1046%204.89543%2020%206%2020H18C19.1046%2020%2020%2019.1046%2020%2018V6C20%204.89543%2019.1046%204%2018%204Z'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e`,aae=`data:image/svg+xml,%3csvg%20fill='none'%20height='1em'%20viewBox='0%200%2024%2024'%20width='1em'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='m12%2020v-16m-8%208h8m8-6v12c0%201.1046-.8954%202-2%202h-12c-1.1046%200-2-.8954-2-2v-12c0-1.1046.8954-2%202-2h12c1.1046%200%202%20.8954%202%202z'%20stroke='currentColor'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-width='2'/%3e%3c/svg%3e`,oae=`data:image/svg+xml,%3csvg%20width='1em'%20height='1em'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M12%204L12%2020M20%2012H12M4%2018L4%206C4%204.89543%204.89543%204%206%204L18%204C19.1046%204%2020%204.89543%2020%206V18C20%2019.1046%2019.1046%2020%2018%2020H6C4.89543%2020%204%2019.1046%204%2018Z'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e`,sae=`data:image/svg+xml,%3csvg%20width='1em'%20height='1em'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6%204C4.89543%204%204%204.89543%204%206V18C4%2019.1046%204.89543%2020%206%2020H18C19.1046%2020%2020%2019.1046%2020%2018V6C20%204.89543%2019.1046%204%2018%204M6%204H18M6%204H12M18%204H12M4%2012H20M12%204V20'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e`,cae=({icon:e})=>{switch(e){case`add`:case`plus`:return(0,U.jsx)(kie,{});case`add above`:return(0,U.jsx)(Fie,{});case`add below`:return(0,U.jsx)(Pie,{});case`arrow down`:case`down`:return(0,U.jsx)(are,{});case`arrow left`:case`left`:return(0,U.jsx)(ore,{});case`arrow right`:case`right`:return(0,U.jsx)(sre,{});case`arrow up`:case`up`:return(0,U.jsx)(cre,{});case`bold`:return(0,U.jsx)(hre,{});case`book`:case`library`:return(0,U.jsx)(_re,{});case`camera`:return(0,U.jsx)(yre,{});case`close`:case`clear`:case`times`:return(0,U.jsx)(Zie,{});case`chart`:case`chart line`:return(0,U.jsx)(xre,{});case`chart bar`:return(0,U.jsx)(bre,{});case`chart pie`:return(0,U.jsx)(Sre,{});case`chat`:return(0,U.jsx)(gie,{});case`check`:case`checkmark`:return(0,U.jsx)(Cre,{});case`chevron up`:return(0,U.jsx)(Dre,{});case`chevron down`:return(0,U.jsx)(wre,{});case`chevron left`:return(0,U.jsx)(Tre,{});case`chevron right`:return(0,U.jsx)(Ere,{});case`chevron double left`:return(0,U.jsx)(Ore,{});case`chevron double right`:return(0,U.jsx)(kre,{});case`clock`:return(0,U.jsx)(Pre,{});case`clone`:case`copy`:case`duplicate`:return(0,U.jsx)(Ire,{});case`code`:return(0,U.jsx)(Fre,{});case`collapse`:return(0,U.jsx)(eae,{});case`collapse all`:return(0,U.jsx)(Qie,{});case`company`:return(0,U.jsx)(vre,{});case`compare`:return(0,U.jsx)(Lie,{});case`delete`:case`trash`:return(0,U.jsx)(qie,{});case`depth`:return(0,U.jsx)(Iie,{style:{transform:`rotate(-90deg)`}});case`download`:case`export`:return(0,U.jsx)(Vre,{});case`drag`:return(0,U.jsx)(tie,{});case`edit`:case`pencil`:case`rename`:return(0,U.jsx)(xie,{});case`electricity`:return(0,U.jsx)(gre,{});case`error`:return(0,U.jsx)(jre,{});case`exclamation`:return(0,U.jsx)(Ure,{});case`expand`:return(0,U.jsx)(tae,{});case`expand all`:return(0,U.jsx)($ie,{});case`external`:return(0,U.jsx)(Wre,{});case`fast forward`:return(0,U.jsx)(Die,{});case`fast backward`:return(0,U.jsx)(Oie,{});case`file`:return(0,U.jsx)(qre,{});case`filter`:return(0,U.jsx)(Yre,{});case`focus`:return(0,U.jsx)(Xre,{});case`folder`:return(0,U.jsx)(Qre,{});case`folder search`:return(0,U.jsx)(Zre,{});case`fork`:return(0,U.jsx)(eie,{});case`gauge`:return(0,U.jsx)($re,{});case`help`:return(0,U.jsx)(nie,{});case`hide`:return(0,U.jsx)(Gre,{});case`indent`:return(0,U.jsx)(Lre,{});case`info`:return(0,U.jsx)(rie,{});case`italic`:return(0,U.jsx)(iie,{});case`key`:return(0,U.jsx)(aie,{});case`laptop`:return(0,U.jsx)(zre,{});case`layout columns`:case`columns`:return(0,U.jsx)(oie,{});case`layout grid`:case`grid`:return(0,U.jsx)(ta,{src:sae});case`layout rows`:case`rows`:return(0,U.jsx)(sie,{});case`layout single`:case`square`:return(0,U.jsx)(ta,{src:nae});case`layout 3 split top`:return(0,U.jsx)(ta,{src:rae});case`layout 3 split bottom`:return(0,U.jsx)(ta,{src:iae});case`layout 3 split left`:return(0,U.jsx)(ta,{src:aae});case`layout 3 split right`:return(0,U.jsx)(ta,{src:oae});case`link`:return(0,U.jsx)(lie,{});case`list`:case`legend`:case`ul`:return(0,U.jsx)(die,{});case`list numbers`:case`ol`:return(0,U.jsx)(uie,{});case`location`:return(0,U.jsx)(hie,{});case`lock`:return(0,U.jsx)(mie,{});case`maximize`:return(0,U.jsx)(ure,{});case`menu`:return(0,U.jsx)(Bre,{});case`minimize`:return(0,U.jsx)(dre,{});case`minus`:return(0,U.jsx)(_ie,{});case`moon`:return(0,U.jsx)(vie,{});case`move`:return(0,U.jsx)(fre,{});case`note`:return(0,U.jsx)(bie,{});case`notification`:case`bell`:return(0,U.jsx)(mre,{});case`paste`:return(0,U.jsx)(Nre,{});case`pause`:return(0,U.jsx)(Sie,{});case`play`:return(0,U.jsx)(Cie,{});case`question`:return(0,U.jsx)(Aie,{});case`redo`:case`rotate`:case`rotate right`:return(0,U.jsx)(Mie,{});case`refresh`:case`sync`:return(0,U.jsx)(jie,{});case`save`:return(0,U.jsx)(Rre,{});case`scale`:return(0,U.jsx)(lre,{});case`search`:return(0,U.jsx)(Rie,{});case`server`:return(0,U.jsx)(zie,{});case`settings`:return(0,U.jsx)(Bie,{});case`show`:case`eye`:return(0,U.jsx)(Kre,{});case`sort`:case`sort descending`:case`sort down`:case`sort amount down`:return(0,U.jsx)(Hie,{});case`sort ascending`:case`sort up`:case`sort amount up`:return(0,U.jsx)(Vie,{});case`spinner`:return(0,U.jsx)(fie,{});case`split`:return(0,U.jsx)(pre,{});case`star`:return(0,U.jsx)(Uie,{});case`step backward`:return(0,U.jsx)(wie,{});case`step forward`:return(0,U.jsx)(Tie,{});case`stop`:return(0,U.jsx)(Eie,{});case`success`:return(0,U.jsx)(Are,{});case`sun`:return(0,U.jsx)(Wie,{});case`table`:return(0,U.jsx)(Gie,{});case`target`:return(0,U.jsx)(Kie,{});case`undo`:case`rotate left`:return(0,U.jsx)(Nie,{});case`unfilter`:return(0,U.jsx)(Jre,{});case`unlink`:return(0,U.jsx)(cie,{});case`unlock`:return(0,U.jsx)(pie,{});case`upload`:case`import`:return(0,U.jsx)(Jie,{});case`user`:return(0,U.jsx)(Yie,{});case`users`:case`group`:return(0,U.jsx)(Xie,{});case`video`:return(0,U.jsx)(yie,{});case`warning`:case`alert`:return(0,U.jsx)(ire,{});case`water`:case`droplet`:return(0,U.jsx)(Hre,{});case``:return null;default:return(0,U.jsx)(Mre,{})}},ca=({icon:e,onClick:t,clickable:n=!1,color:r,size:i,testId:a})=>{let o=(0,H.useContext)(na),s={color:r,fill:r,fontSize:i||`inherit`,width:i||`auto`,height:i||`auto`};return(0,U.jsx)(`div`,{className:Oi(ra.wrapper,(n||t)&&!o?ra.clickable:``),style:s,onClick:e=>t&&!o?t(e):void 0,"data-testid":a,children:(0,H.isValidElement)(e)?e:typeof e==`string`&&(e.includes(`.svg`)||e.includes(`image/svg`))?(0,U.jsx)(ta,{className:ra.customSvg,beforeInjection:e=>{i&&(e.setAttribute(`width`,String(i)),e.setAttribute(`height`,String(i)))},src:e}):typeof e==`string`&&(e.includes(`.png`)||e.includes(`image/png`))?(0,U.jsx)(`img`,{alt:`icon`,className:ra.customPng,src:e}):typeof e==`string`?(0,U.jsx)(cae,{icon:e}):null})},la={checkbox:`_checkbox_oo4mp_1`,noLabel:`_noLabel_oo4mp_17`,small:`_small_oo4mp_20`,checkmark:`_checkmark_oo4mp_43`,disabled:`_disabled_oo4mp_82`,noMargin:`_noMargin_oo4mp_96`,isInTable:`_isInTable_oo4mp_99`,helpIconEnabled:`_helpIconEnabled_oo4mp_102`},ua=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}()}(),da=typeof window<`u`&&typeof document<`u`&&window.document===document,fa=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`)()}(),lae=function(){return typeof requestAnimationFrame==`function`?requestAnimationFrame.bind(fa):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),uae=2;function dae(e,t){var n=!1,r=!1,i=0;function a(){n&&(n=!1,e()),r&&s()}function o(){lae(a)}function s(){var e=Date.now();if(n){if(e-i<uae)return;r=!0}else n=!0,r=!1,setTimeout(o,t);i=e}return s}var fae=20,pae=[`top`,`right`,`bottom`,`left`,`width`,`height`,`size`,`weight`],mae=typeof MutationObserver<`u`,hae=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=dae(this.refresh.bind(this),fae)}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(){!da||this.connected_||(document.addEventListener(`transitionend`,this.onTransitionEnd_),window.addEventListener(`resize`,this.refresh),mae?(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(){!da||!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;pae.some(function(e){return!!~n.indexOf(e)})&&this.refresh()},e.getInstance=function(){return this.instance_||=new e,this.instance_},e.instance_=null,e}(),pa=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},ma=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||fa},ha=va(0,0,0,0);function ga(e){return parseFloat(e)||0}function _a(e){return[...arguments].slice(1).reduce(function(t,n){var r=e[`border-`+n+`-width`];return t+ga(r)},0)}function gae(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]=ga(o)}return n}function _ae(e){var t=e.getBBox();return va(0,0,t.width,t.height)}function vae(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return ha;var r=ma(e).getComputedStyle(e),i=gae(r),a=i.left+i.right,o=i.top+i.bottom,s=ga(r.width),c=ga(r.height);if(r.boxSizing===`border-box`&&(Math.round(s+a)!==t&&(s-=_a(r,`left`,`right`)+a),Math.round(c+o)!==n&&(c-=_a(r,`top`,`bottom`)+o)),!bae(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 va(i.left,i.top,s,c)}var yae=function(){return typeof SVGGraphicsElement<`u`?function(e){return e instanceof ma(e).SVGGraphicsElement}:function(e){return e instanceof ma(e).SVGElement&&typeof e.getBBox==`function`}}();function bae(e){return e===ma(e).document.documentElement}function xae(e){return da?yae(e)?_ae(e):vae(e):ha}function Sae(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 pa(o,{x:t,y:n,width:r,height:i,top:n,right:t+r,bottom:i+n,left:t}),o}function va(e,t,n,r){return{x:e,y:t,width:n,height:r}}var Cae=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=va(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=xae(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}(),wae=function(){function e(e,t){var n=Sae(t);pa(this,{target:e,contentRect:n})}return e}(),Tae=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new ua,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 ma(e).Element))throw TypeError(`parameter 1 is not of type "Element".`);var t=this.observations_;t.has(e)||(t.set(e,new Cae(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 ma(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 wae(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}(),ya=typeof WeakMap<`u`?new WeakMap:new ua,ba=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 Tae(t,hae.getInstance(),this);ya.set(this,n)}return e}();[`observe`,`unobserve`,`disconnect`].forEach(function(e){ba.prototype[e]=function(){var t;return(t=ya.get(this))[e].apply(t,arguments)}});var xa=function(){return fa.ResizeObserver===void 0?ba:fa.ResizeObserver}(),Eae=!0;function Dae(e,t){if(!Eae){if(e)return;var n=`Warning: `+t;typeof console<`u`&&console.warn(n);try{throw Error(n)}catch{}}}function Oae(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 Sa(e,t,n){return t&&Oae(e.prototype,t),e}function Ca(){return Ca=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},Ca.apply(this,arguments)}function kae(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,wa(e,t)}function wa(e,t){return wa=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},wa(e,t)}function Aae(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 jae(e,t){if(e){if(typeof e==`string`)return Ta(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 Ta(e,t)}}function Ta(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 Ea(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=jae(e))||t){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.
1
+ import{_t as e,at as t,dt as n,ft as r,gt as i,ht as a,it as o,mt as s,pt as c}from"./iframe-DW2UQNc3.js";import{$ as l,$t as u,Bt as d,C as f,Dt as p,Et as m,Gt as h,H as g,Ht as _,It as v,Jt as y,Kt as b,Lt as x,M as S,Qt as C,Rt as w,Tt as T,Ut as E,Vt as D,Wt as O,Xt as k,Yt as A,Zt as j,an as M,at as N,ct as P,en as F,et as I,ft as L,h as ee,in as te,l as R,lt as ne,mt as re,nn as ie,on as ae,ot as oe,pt as z,qt as se,rn as ce,rt as le,st as B,t as ue,tn as de,ut as V,xt as fe,zt as pe}from"./legend-context-C2Dt3PJx.js";var me={modes:{point(e,t){return ve(e,t,{intersect:!0})},nearest(e,t,n){return ye(e,t,n)},x(e,t,n){return ve(e,t,{intersect:n.intersect,axis:`x`})},y(e,t,n){return ve(e,t,{intersect:n.intersect,axis:`y`})}}};function he(e,t,n){return(me.modes[n.mode]||me.modes.nearest)(e,t,n)}function ge(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 _e(e,t,n){return n===`x`?{x:e.x,y:t.y}:n===`y`?{x:t.x,y:e.y}:t}function ve(e,t,n){return e.filter(e=>n.intersect?e.inRange(t.x,t.y):ge(e,t,n.axis))}function ye(e,t,n){let r=1/0;return ve(e,t,n).reduce((e,i)=>{let a=se(t,_e(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 be(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 xe=(e,t)=>t>e||e.length>t.length&&e.slice(0,t.length)===t,Se=.001,Ce=(e,t,n)=>Math.min(n,Math.max(t,e)),we=(e,t)=>e.value>=e.start-t&&e.value<=e.end+t;function Te(e,t,n){for(let r of Object.keys(e))e[r]=Ce(e[r],t,n);return e}function Ee(e,t,n,r){return!e||!t||n<=0?!1:(e.x-t.x)**2+(e.y-t.y)**2<=(n+r)**2}function De(e,{x:t,y:n,x2:r,y2:i},a,{borderWidth:o,hitTolerance:s}){let c=(o+s)/2,l=e.x>=t-c-Se&&e.x<=r+c+Se,u=e.y>=n-c-Se&&e.y<=i+c+Se;return a===`x`?l:(a===`y`||l)&&u}function Oe(e,{rect:t,center:n},r,{rotation:i,borderWidth:a,hitTolerance:o}){return De(be(e,n,ce(-i)),t,r,{borderWidth:a,hitTolerance:o})}function ke(e,t){let{centerX:n,centerY:r}=e.getProps([`centerX`,`centerY`],t);return{x:n,y:r}}function Ae(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(xe(s,o)){if(r)throw Error(`${e} v${n} is not supported. v${t} or newer is required.`);return!1}}return!0}var je=e=>typeof e==`string`&&e.endsWith(`%`),Me=e=>parseFloat(e)/100,Ne=e=>Ce(Me(e),0,1),Pe=(e,t)=>({x:e,y:t,x2:e,y2:t,width:0,height:0}),Fe={box:e=>Pe(e.centerX,e.centerY),doughnutLabel:e=>Pe(e.centerX,e.centerY),ellipse:e=>({centerX:e.centerX,centerY:e.centerX,radius:0,width:0,height:0}),label:e=>Pe(e.centerX,e.centerY),line:e=>Pe(e.x,e.y),point:e=>({centerX:e.centerX,centerY:e.centerY,radius:0,width:0,height:0}),polygon:e=>Pe(e.centerX,e.centerY)};function Ie(e,t){return t===`start`?0:t===`end`?e:je(t)?Ne(t)*e:e/2}function Le(e,t,n=!0){return typeof t==`number`?t:je(t)?(n?Ne(t):Me(t))*e:e}function Re(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 ze(e,t,{borderWidth:n,position:r,xAdjust:i,yAdjust:a},o){let s=u(o),c=t.width+(s?o.width:0)+n,l=t.height+(s?o.height:0)+n,d=Be(r),f=We(e.x,c,i,d.x),p=We(e.y,l,a,d.y);return{x:f,y:p,x2:f+c,y2:p+l,width:c,height:l,centerX:f+c/2,centerY:p+l/2}}function Be(e,t=`center`){return u(e)?{x:ae(e.x,t),y:ae(e.y,t)}:(e=ae(e,t),{x:e,y:e})}var Ve=(e,t)=>e&&e.autoFit&&t<1;function He(e,t){let n=e.font,r=A(n)?n:[n];return Ve(e,t)?r.map(function(e){let n=de(e);return n.size=Math.floor(e.size*t),n.lineHeight=e.lineHeight,de(n)}):r.map(e=>de(e))}function Ue(e){return e&&(b(e.xValue)||b(e.yValue))}function We(e,t,n=0,r){return e-Ie(t,r)+n}function Ge(e,t,n){let r=n.init;if(r){if(r===!0)return qe(t,n)}else return;return Je(e,t,n)}function Ke(e,t,n){let r=!1;return t.forEach(t=>{k(e[t])?(r=!0,n[t]=e[t]):b(n[t])&&delete n[t]}),r}function qe(e,t){return Fe[t.type||`line`](e)}function Je(e,t,n){let r=E(n.init,[{chart:e,properties:t,options:n}]);if(r===!0)return qe(t,n);if(u(r))return r}var Ye=new Map,Xe=e=>isNaN(e)||e<=0,Ze=e=>e.reduce(function(e,t){return e+=t.string,e},``);function Qe(e){if(e&&typeof e==`object`){let t=e.toString();return t===`[object HTMLImageElement]`||t===`[object HTMLCanvasElement]`}}function $e(e,{x:t,y:n},r){r&&(e.translate(t,n),e.rotate(ce(r)),e.translate(-t,-n))}function et(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 tt(e,t){e.shadowColor=t.backgroundShadowColor,e.shadowBlur=t.shadowBlur,e.shadowOffsetX=t.shadowOffsetX,e.shadowOffsetY=t.shadowOffsetY}function nt(e,t){let n=t.content;if(Qe(n))return{width:Le(n.width,t.width),height:Le(n.height,t.height)};let r=He(t),i=t.textStrokeWidth,a=A(n)?n:[n],o=a.join()+Ze(r)+i+(e._measureText?`-spriting`:``);return Ye.has(o)||Ye.set(o,ct(e,a,r,i)),Ye.get(o)}function rt(e,t,n){let{x:r,y:i,width:a,height:o}=t;e.save(),tt(e,n);let s=et(e,n);e.fillStyle=n.backgroundColor,e.beginPath(),_(e,{x:r,y:i,w:a,h:o,radius:Te(te(n.borderRadius),0,Math.min(a,o)/2)}),e.closePath(),e.fill(),s&&(e.shadowColor=n.borderShadowColor,e.stroke()),e.restore()}function it(e,t,n,r){let i=n.content;if(Qe(i)){e.save(),e.globalAlpha=dt(n.opacity,i.style.opacity),e.drawImage(i,t.x,t.y,t.width,t.height),e.restore();return}let a=A(i)?i:[i],o=He(n,r),s=n.color,c=A(s)?s:[s],l=Re(t,n),u=t.y+n.textStrokeWidth/2;e.save(),e.textBaseline=`middle`,e.textAlign=n.textAlign,at(e,n)&&lt(e,{x:l,y:u},a,o),ut(e,{x:l,y:u},a,{fonts:o,colors:c}),e.restore()}function at(e,t){if(t.textStrokeWidth>0)return e.lineJoin=`round`,e.miterLimit=2,e.lineWidth=t.textStrokeWidth,e.strokeStyle=t.textStrokeColor,!0}function ot(e,t,n,r){let{radius:i,options:a}=t,o=a.pointStyle,s=a.rotation,c=(s||0)*pe;if(Qe(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}Xe(i)||st(e,{x:n,y:r,radius:i,rotation:s,style:o,rad:c})}function st(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,d),e.closePath();break;case`triangle`:e.moveTo(t+Math.sin(o)*r,n-Math.cos(o)*r),o+=D,e.lineTo(t+Math.sin(o)*r,n-Math.cos(o)*r),o+=D,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+w)*l,c=Math.sin(o+w)*l,e.arc(t-s,n-c,u,o-x,o-v),e.arc(t+c,n-s,u,o-v,o),e.arc(t+s,n+c,u,o,o+v),e.arc(t-c,n+s,u,o+v,o+x),e.closePath();break;case`rect`:if(!i){l=Math.SQRT1_2*r,e.rect(t-l,n-l,2*l,2*l);break}o+=w;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+=w;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+=w,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 ct(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 lt(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 dt(e,t){let n=j(e)?e:t;return j(n)?Ce(n,0,1):1}var ft=[`left`,`bottom`,`top`,`right`];function pt(e,t){let{pointX:n,pointY:r,options:i}=t,a=i.callout,o=a&&a.display&&vt(t,a);if(!o||bt(t,a,o))return;if(e.save(),e.beginPath(),!et(e,a))return e.restore();let{separatorStart:s,separatorEnd:c}=mt(t,o),{sideStart:l,sideEnd:u}=gt(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=be({x:n,y:r},t.getCenterPoint(),ce(-t.rotation));e.lineTo(d.x,d.y),e.stroke(),e.restore()}function mt(e,t){let{x:n,y:r,x2:i,y2:a}=e,o=ht(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 ht(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 gt(e,t,n){let{y:r,width:i,height:a,options:o}=e,s=o.callout.start,c=_t(t,o.callout),l,u;return t===`left`||t===`right`?(l={x:n.x,y:r+Le(a,s)},u={x:l.x+c,y:l.y}):(l={x:n.x+Le(i,s),y:n.y},u={x:l.x,y:l.y+c}),{sideStart:l,sideEnd:u}}function _t(e,t){let n=t.side;return e===`left`||e===`top`?-n:n}function vt(e,t){let n=t.position;return ft.includes(n)?n:yt(e,t)}function yt(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,h=Le(o,m),g=Le(s,m),_=[n,n+h,n+h,i],v=[r+g,a,r,a],y=[];for(let e=0;e<4;e++){let t=be({x:_[e],y:v[e]},p,ce(f));y.push({position:ft[e],distance:se(t,{x:c,y:l})})}return y.sort((e,t)=>e.distance-t.distance)[0].position}function bt(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 xt={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 St(e,t,n){return t=typeof t==`number`?t:e.parse(t),C(t)?e.getPixelForValue(t):n}function Ct(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 wt(e,t){if(e){let n=e.options.reverse;return{start:St(e,t.min,n?t.end:t.start),end:St(e,t.max,n?t.start:t.end)}}}function Tt(e,t){let{chartArea:n,scales:r}=e,i=r[Ct(r,t,`xScaleID`)],a=r[Ct(r,t,`yScaleID`)],o=n.width/2,s=n.height/2;return i&&(o=St(i,t.xValue,i.left+i.width/2)),a&&(s=St(a,t.yValue,a.top+a.height/2)),{x:o,y:s}}function Et(e,t){let n=e.scales,r=n[Ct(n,t,`xScaleID`)],i=n[Ct(n,t,`yScaleID`)];if(!r&&!i)return{};let{left:a,right:o}=r||e.chartArea,{top:s,bottom:c}=i||e.chartArea,l=jt(r,{min:t.xMin,max:t.xMax,start:a,end:o});a=l.start,o=l.end;let u=jt(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 Dt(e,t){if(!Ue(t)){let n=Et(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 At(e,t)}function Ot(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?Mt(i,a,t):Nt(n,a,t),a}function kt(e,t){let n=Et(e,t);return n.initProperties=Ge(e,n,t),n.elements=[{type:`label`,optionScope:`label`,properties:Lt(e,n,t),initProperties:n.initProperties}],n}function At(e,t){let n=Tt(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 jt(e,t){let n=wt(e,t)||t;return{start:Math.min(n.start,n.end),end:Math.max(n.start,n.end)}}function Mt(e,t,n){let r=St(e,n.value,NaN),i=St(e,n.endValue,r);e.isHorizontal()?(t.x=r,t.x2=i):(t.y=r,t.y2=i)}function Nt(e,t,n){for(let r of Object.keys(xt)){let i=e[Ct(e,n,r)];if(i){let{min:e,max:a,start:o,end:s,startProp:c,endProp:l}=xt[r],u=wt(i,{min:n[e],max:n[a],start:i[o],end:i[s]});t[c]=u.start,t[l]=u.end}}}function Pt({properties:e,options:t},n,r,i){let{x:a,x2:o,width:s}=e;return It({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 Ft({properties:e,options:t},n,r,i){let{y:a,y2:o,height:s}=e;return It({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 It(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+Ie(l,a)}function Lt(e,t,n){let r=n.label;r.backgroundColor=`transparent`,r.callout.display=!1;let i=Be(r.position),a=ie(r.padding),o=nt(e.ctx,r),s=Pt({properties:t,options:n},o,i,a),c=Ft({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 Rt=[`enter`,`leave`],zt=Rt.concat(`click`);function Bt(e,t,n){t.listened=Ke(n,zt,t.listeners),t.moveListened=!1,Rt.forEach(e=>{k(n[e])&&(t.moveListened=!0)}),(!t.listened||!t.moveListened)&&t.annotations.forEach(e=>{!t.listened&&k(e.click)&&(t.listened=!0),t.moveListened||Rt.forEach(n=>{k(e[n])&&(t.listened=!0,t.moveListened=!0)})})}function Vt(e,t,n){if(e.listened)switch(t.type){case`mousemove`:case`mouseout`:return Ht(e,t,n);case`click`:return Wt(e,t,n)}}function Ht(e,t,n){if(!e.moveListened)return;let r;r=t.type===`mousemove`?he(e.visibleElements,t,n.interaction):[];let i=e.hovered;e.hovered=r;let a={state:e,event:t},o=Ut(a,`leave`,i,r);return Ut(a,`enter`,r,i)||o}function Ut({state:e,event:t},n,r,i){let a;for(let o of r)i.indexOf(o)<0&&(a=Gt(o.options[n]||e.listeners[n],o,t)||a);return a}function Wt(e,t,n){let r=e.listeners,i=he(e.visibleElements,t,n.interaction),a;for(let e of i)a=Gt(e.options.click||r.click,e,t)||a;return a}function Gt(e,t,n){return E(e,[t.$context,n])===!0}var Kt=[`afterDraw`,`beforeDraw`];function qt(e,t,n){let r=t.visibleElements;t.hooked=Ke(n,Kt,t.hooks),t.hooked||r.forEach(e=>{t.hooked||Kt.forEach(n=>{k(e.options[n])&&(t.hooked=!0)})})}function Jt(e,t,n){if(e.hooked)return E(t.options[n]||e.hooks[n],[t.$context])}function Yt(e,t,n){let r=tn(e.scales,t,n),i=Zt(t,r,`min`,`suggestedMin`);i=Zt(t,r,`max`,`suggestedMax`)||i,i&&k(t.handleTickRangeOptions)&&t.handleTickRangeOptions()}function Xt(e,t){for(let n of e)$t(n,t)}function Zt(e,t,n,r){if(C(t[n])&&!Qt(e.options,n,r)){let r=e[n]!==t[n];return e[n]=t[n],r}}function Qt(e,t,n){return b(e[t])||b(e[n])}function $t(e,t){for(let n of[`scaleID`,`xScaleID`,`yScaleID`]){let r=Ct(t,e,n);r&&!t[r]&&en(e,n)&&console.warn(`No scale found with id '${r}' for annotation '${e.id}'`)}}function en(e,t){if(t===`scaleID`)return!0;let n=t.charAt(0);for(let t of[`Min`,`Max`,`Value`])if(b(e[n+t]))return!0;return!1}function tn(e,t,n){let r=t.axis,i=t.id,a=r+`ScaleID`,o={min:ae(t.min,-1/0),max:ae(t.max,1/0)};for(let s of n)s.scaleID===i?nn(s,t,[`value`,`endValue`],o):Ct(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(b(n)){let e=t.parse(n);r.min=Math.min(r.min,e),r.max=Math.max(r.max,e)}}}var rn=class extends p{inRange(e,t,n,r){let{x:i,y:a}=be({x:e,y:t},this.getCenterPoint(r),ce(-this.options.rotation));return De({x:i,y:a},this.getProps([`x`,`y`,`x2`,`y2`],r),n,this.options)}getCenterPoint(e){return ke(this,e)}draw(e){e.save(),$e(e,this.getCenterPoint(),this.options.rotation),rt(e,this,this.options),e.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(e,t){return kt(e,t)}};rn.id=`boxAnnotation`,rn.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},rn.defaultRoutes={borderColor:`color`,backgroundColor:`color`},rn.descriptors={label:{_fallback:!0}};var an=class extends p{inRange(e,t,n,r){return Oe({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 ke(this,e)}draw(e){let t=this.options;!t.display||!t.content||(dn(e,this),e.save(),$e(e,this.getCenterPoint(),this.rotation),it(e,this,t,this._fitRatio),e.restore())}resolveElementProperties(e,t){let n=on(e,t);if(!n)return{};let{controllerMeta:r,point:i,radius:a}=cn(e,t,n),o=nt(e.ctx,t),s=ln(o,a);Ve(t,s)&&(o={width:o.width*s,height:o.height*s});let{position:c,xAdjust:l,yAdjust:u}=t,d=ze(i,o,{borderWidth:0,position:c,xAdjust:l,yAdjust:u});return{initProperties:Ge(e,d,t),...d,...r,rotation:t.rotation,_fitRatio:s}}};an.id=`doughnutLabelAnnotation`,an.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},an.defaultRoutes={};function on(e,t){return e.getSortedVisibleDatasetMetas().reduce(function(n,r){let i=r.controller;return i instanceof m&&sn(e,t,r.data)&&(!n||i.innerRadius<n.controller.innerRadius)&&i.options.circumference>=90?r:n},void 0)}function sn(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 cn({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,...un(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 ln({width:e,height:t},n){let r=Math.sqrt(e**2+t**2);return n*2/r}function un(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:d};let l=(-o-Math.sqrt(c))/2,u=(-o+Math.sqrt(c))/2;return{_startAngle:y({x:t,y:n},{x:l,y:e}).angle,_endAngle:y({x:t,y:n},{x:u,y:e}).angle}}function dn(e,t){let{_centerX:n,_centerY:r,_radius:i,_startAngle:a,_endAngle:o,_counterclockwise:s,options:c}=t;e.save();let l=et(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 fn=class extends p{inRange(e,t,n,r){return Oe({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 ke(this,e)}draw(e){let t=this.options,n=!b(this._visible)||this._visible;!t.display||!t.content||!n||(e.save(),$e(e,this.getCenterPoint(),this.rotation),pt(e,this),rt(e,this,t),it(e,pn(this),t),e.restore())}resolveElementProperties(e,t){let n;if(Ue(t))n=Tt(e,t);else{let{centerX:r,centerY:i}=Et(e,t);n={x:r,y:i}}let r=ie(t.padding),i=nt(e.ctx,t),a=ze(n,i,t,r);return{initProperties:Ge(e,a,t),pointX:n.x,pointY:n.y,...a,rotation:t.rotation}}};fn.id=`labelAnnotation`,fn.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},fn.defaultRoutes={borderColor:`color`};function pn({x:e,y:t,width:n,height:r,options:i}){let a=i.borderWidth/2,o=ie(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 mn=(e,t,n)=>({x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}),hn=(e,t,n)=>mn(t,n,Math.abs((e-t.y)/(n.y-t.y))).x,gn=(e,t,n)=>mn(t,n,Math.abs((e-t.x)/(n.x-t.x))).y,_n=e=>e*e,vn=(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},yn=(e,t,n,r)=>(1-r)*(1-r)*e+2*(1-r)*r*t+r*r*n,bn=(e,t,n,r)=>({x:yn(e.x,t.x,n.x,r),y:yn(e.y,t.y,n.y,r)}),xn=(e,t,n,r)=>2*(1-r)*(t-e)+2*r*(n-t),Sn=(e,t,n,r)=>-Math.atan2(xn(e.x,t.x,n.x,r),xn(e.y,t.y,n.y,r))+.5*x,Cn=class extends p{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){et(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)||En(this,n,r);return o.restore(),l}let s=_n(i);return ree(this,n,s,r)||En(this,n,r)}return eee(this,{mouseX:e,mouseY:t},n,{hitSize:i,useFinalPosition:r})}getCenterPoint(e){return ke(this,e)}draw(e){let{x:t,y:n,x2:r,y2:i,cp:a,options:o}=this;if(e.save(),!et(e,o))return e.restore();tt(e,o);let s=Math.sqrt((r-t)**2+(i-n)**2);if(o.curve&&a)return dee(e,this,a,s),e.restore();let{startOpts:c,endOpts:l,startAdjust:u,endAdjust:d}=kn(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(),jn(e,0,u,c),jn(e,s,-d,l),e.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(e,t){let n=Ot(e,t),{x:r,y:i,x2:a,y2:o}=n,s=tee(n,e.chartArea),c=s?nee({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=Ge(e,c,t),t.curve&&(c.cp=uee(c,t,se({x:c.x,y:c.y},{x:c.x2,y:c.y2})));let l=iee(e,c,t.label);return l._visible=s,c.elements=[{type:`label`,optionScope:`label`,properties:l,initProperties:c.initProperties}],c}};Cn.id=`lineAnnotation`;var wn={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};Cn.defaults={adjustScaleRange:!0,arrowHeads:{display:!1,end:Object.assign({},wn),fill:!1,length:12,start:Object.assign({},wn),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({},fn.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},Cn.descriptors={arrowHeads:{start:{_fallback:!0},end:{_fallback:!0},_fallback:!0}},Cn.defaultRoutes={borderColor:`color`};function eee(e,{mouseX:t,mouseY:n},r,{hitSize:i,useFinalPosition:a}){return we(vn(t,n,e.getProps([`x`,`y`,`x2`,`y2`],a),r),i)||En(e,{mouseX:t,mouseY:n},a,r)}function tee({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 Tn({x:e,y:t},n,{top:r,right:i,bottom:a,left:o}){return e<o&&(t=gn(o,{x:e,y:t},n),e=o),e>i&&(t=gn(i,{x:e,y:t},n),e=i),t<r&&(e=hn(r,{x:e,y:t},n),t=r),t>a&&(e=hn(a,{x:e,y:t},n),t=a),{x:e,y:t}}function nee(e,t,n){let{x:r,y:i}=Tn(e,t,n),{x:a,y:o}=Tn(t,e,n);return{x:r,y:i,x2:a,y2:o,width:Math.abs(a-r),height:Math.abs(o-i)}}function ree(e,{mouseX:t,mouseY:n},r=Se,i){let{x:a,y:o,x2:s,y2:c}=e.getProps([`x`,`y`,`x2`,`y2`],i),l=s-a,u=c-o,d=_n(l)+_n(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),_n(t-p)+_n(n-m)<=r}function En(e,{mouseX:t,mouseY:n},r,i){let a=e.label;return a.options.display&&a.inRange(t,n,i,r)}function iee(e,t,n){let r=n.borderWidth,i=ie(n.padding),a=nt(e.ctx,n);return oee(t,n,{width:a.width+i.width+r,height:a.height+i.height+r,padding:i},e.chartArea)}function aee(e){let{x:t,y:n,x2:r,y2:i}=e,a=Math.atan2(i-n,r-t);return a>x/2?a-x:a<x/-2?a+x:a}function oee(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},d=t.rotation===`auto`?aee(e):ce(t.rotation),f=see(i,a,d),p=cee(e,t,{labelSize:f,padding:o},r),m=e.cp?bn(l,e.cp,u,p):mn(l,u,p),h={size:f.w,min:r.left,max:r.right,padding:o.left},g={size:f.h,min:r.top,max:r.bottom,padding:o.top},_=On(m.x,h)+s,v=On(m.y,g)+c;return{x:_-i/2,y:v-a/2,x2:_+i/2,y2:v+a/2,centerX:_,centerY:v,pointX:m.x,pointY:m.y,width:i,height:a,rotation:F(d)}}function see(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 cee(e,t,n,r){let i,a=lee(e,r);return i=t.position===`start`?Dn({w:e.x2-e.x,h:e.y2-e.y},n,t,a):t.position===`end`?1-Dn({w:e.x-e.x2,h:e.y-e.y2},n,t,a):Ie(1,t.position),i}function Dn(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 Ce(Math.max(c,l),0,.25)}function lee(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 On(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 kn(e){let t=e.options,n=t.arrowHeads&&t.arrowHeads.start,r=t.arrowHeads&&t.arrowHeads.end;return{startOpts:n,endOpts:r,startAdjust:An(e,n),endAdjust:An(e,r)}}function An(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(hn(0,a,o))}function jn(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(),tt(e,r),et(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 uee(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=Be(t.controlPoint,0);return be({x:s+Le(n,u.x,!1),y:c+Le(n,u.y,!1)},{x:s,y:c},l)}function Mn(e,{x:t,y:n},{angle:r,adjust:i},a){!a||!a.display||(e.save(),e.translate(t,n),e.rotate(r),jn(e,0,-i,a),e.restore())}function dee(e,t,n,r){let{x:i,y:a,x2:o,y2:s,options:c}=t,{startOpts:l,endOpts:u,startAdjust:d,endAdjust:f}=kn(t),p={x:i,y:a},m={x:o,y:s},h=Sn(p,n,m,0),g=Sn(p,n,m,1)-x,_=bn(p,n,m,d/r),v=bn(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,Mn(e,_,{angle:h,adjust:d},l),Mn(e,v,{angle:g,adjust:f},u)}var Nn=class extends p{inRange(e,t,n,r){let i=this.options.rotation,a=(this.options.borderWidth+this.options.hitTolerance)/2;if(n!==`x`&&n!==`y`)return fee({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=be({x:e,y:t},this.getCenterPoint(r),ce(-i));return d[n]>=u.start-a-Se&&d[n]<=u.end+a+Se}getCenterPoint(e){return ke(this,e)}draw(e){let{width:t,height:n,centerX:r,centerY:i,options:a}=this;e.save(),$e(e,this.getCenterPoint(),a.rotation),tt(e,this.options),e.beginPath(),e.fillStyle=a.backgroundColor;let o=et(e,a);e.ellipse(r,i,n/2,t/2,x/2,0,2*x),e.fill(),o&&(e.shadowColor=a.borderShadowColor,e.stroke()),e.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(e,t){return kt(e,t)}};Nn.id=`ellipseAnnotation`,Nn.defaults={adjustScaleRange:!0,backgroundShadowColor:`transparent`,borderDash:[],borderDashOffset:0,borderShadowColor:`transparent`,borderWidth:1,display:!0,hitTolerance:0,init:void 0,label:Object.assign({},rn.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},Nn.defaultRoutes={borderColor:`color`,backgroundColor:`color`},Nn.descriptors={label:{_fallback:!0}};function fee(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=ce(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 Pn=class extends p{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`?Ee({x:e,y:t},this.getCenterPoint(r),c/2,l):we(n===`y`?{start:a,end:s,value:t}:{start:i,end:o,value:e},l)}getCenterPoint(e){return ke(this,e)}draw(e){let t=this.options,n=t.borderWidth;if(t.radius<.1)return;e.save(),e.fillStyle=t.backgroundColor,tt(e,t);let r=et(e,t);ot(e,this,this.centerX,this.centerY),r&&!Qe(t.pointStyle)&&(e.shadowColor=t.borderShadowColor,e.stroke()),e.restore(),t.borderWidth=n}resolveElementProperties(e,t){let n=Dt(e,t);return n.initProperties=Ge(e,n,t),n}};Pn.id=`pointAnnotation`,Pn.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},Pn.defaultRoutes={borderColor:`color`,backgroundColor:`color`};var Fn=class extends p{inRange(e,t,n,r){if(n!==`x`&&n!==`y`)return this.options.radius>=.1&&this.elements.length>1&&mee(this.elements,e,t,r);let i=be({x:e,y:t},this.getCenterPoint(r),ce(-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 ke(this,e)}draw(e){let{elements:t,options:n}=this;e.save(),e.beginPath(),e.fillStyle=n.backgroundColor,tt(e,n);let r=et(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=Dt(e,t),{sides:r,rotation:i}=t,a=[],o=2*x/r,s=i*pe;for(let i=0;i<r;i++,s+=o){let r=pee(n,t,s);r.initProperties=Ge(e,n,t),a.push(r)}return n.elements=a,n}};Fn.id=`polygonAnnotation`,Fn.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},Fn.defaultRoutes={borderColor:`color`,backgroundColor:`color`};function pee({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 mee(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 In={box:rn,doughnutLabel:an,ellipse:Nn,label:fn,line:Cn,point:Pn,polygon:Fn};Object.keys(In).forEach(e=>{h.describe(`elements.${In[e].id}`,{_fallback:`plugins.annotation.common`})});var hee={update:Object.assign},gee=zt.concat(Kt),Ln=(e,t)=>u(t)?Hn(e,t):e,Rn=e=>e===`color`||e===`font`;function zn(e=`line`){return In[e]?e:(console.warn(`Unknown annotation type: '${e}', defaulting to 'line'`),`line`)}function _ee(e,t,n,r){let i=yee(e,n.animations,r),a=t.annotations,o=See(t.elements,a);for(let t=0;t<a.length;t++){let n=a[t],r=Bn(o,t,n.type),s=n.setContext(xee(e,r,o,n)),c=r.resolveElementProperties(e,s);c.skip=vee(c),`elements`in c&&(bee(r,c.elements,s,i),delete c.elements),b(r.x)||Object.assign(r,c),Object.assign(r,c.initProperties),c.options=Vn(s),i.update(r,c)}}function vee(e){return isNaN(e.x)||isNaN(e.y)}function yee(e,t,n){return n===`reset`||n===`none`||n===`resize`?hee:new fe(e,t)}function bee(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=Bn(i,e,a.type,a.initProperties);o.options=Vn(n[a.optionScope].override(a)),r.update(s,o)}}function Bn(e,t,n,r){let i=In[zn(n)],a=e[t];return(!a||!(a instanceof i))&&(a=e[t]=new i,Object.assign(a,r)),a}function Vn(e){let t=In[zn(e.type)],n={};n.id=e.id,n.type=e.type,n.drawTime=e.drawTime,Object.assign(n,Hn(e,t.defaults),Hn(e,t.defaultRoutes));for(let t of gee)n[t]=e[t];return n}function Hn(e,t){let n={};for(let r of Object.keys(t)){let i=t[r],a=e[r];Rn(r)&&A(a)?n[r]=a.map(e=>Ln(e,i)):n[r]=Ln(a,i)}return n}function xee(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 See(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 Cee=`3.1.0`,Un=new Map,Wn=e=>e.type!==`doughnutLabel`,wee=zt.concat(Kt),Tee={id:`annotation`,version:Cee,beforeRegister(){Ae(`chart.js`,`4.0`,T.version)},afterRegister(){T.register(In)},afterUnregister(){T.unregister(In)},beforeInit(e){Un.set(e,{annotations:[],elements:[],visibleElements:[],listeners:{},listened:!1,moveListened:!1,hooks:{},hooked:!1,hovered:[]})},beforeUpdate(e,t,n){let r=Un.get(e),i=r.annotations=[],a=n.annotations;u(a)?Object.keys(a).forEach(e=>{let t=a[e];u(t)&&(t.id=e,i.push(t))}):A(a)&&i.push(...a),Xt(i.filter(Wn),e.scales)},afterDataLimits(e,t){let n=Un.get(e);Yt(e,t.scale,n.annotations.filter(Wn).filter(e=>e.display&&e.adjustScaleRange))},afterUpdate(e,t,n){let r=Un.get(e);Bt(e,r,n),_ee(e,r,n,t.mode),r.visibleElements=r.elements.filter(e=>!e.skip&&e.options.display),qt(e,r,n)},beforeDatasetsDraw(e,t,n){Gn(e,`beforeDatasetsDraw`,n.clip)},afterDatasetsDraw(e,t,n){Gn(e,`afterDatasetsDraw`,n.clip)},beforeDatasetDraw(e,t,n){Gn(e,t.index,n.clip)},beforeDraw(e,t,n){Gn(e,`beforeDraw`,n.clip)},afterDraw(e,t,n){Gn(e,`afterDraw`,n.clip)},beforeEvent(e,t,n){Vt(Un.get(e),t.event,n)&&(t.changed=!0)},afterDestroy(e){Un.delete(e)},getAnnotations(e){let t=Un.get(e);return t?t.elements:[]},_getAnnotationElementsAtEventForMode(e,t,n){return he(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=>!wee.includes(e)&&e!==`init`,annotations:{_allKeys:!1,_fallback:(e,t)=>`elements.${In[zn(t.type)].id}`},interaction:{_fallback:!0},common:{label:{_indexable:Rn,_fallback:!0},_indexable:Rn}},additionalOptionScopes:[``]};function Gn(e,t,n){let{ctx:r,chartArea:i}=e,a=Un.get(e);n&&O(r,i);let o=Eee(a.visibleElements,t).sort((e,t)=>e.element.options.z-t.element.options.z);for(let e of o)Dee(r,i,a,e);n&&M(r)}function Eee(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 Dee(e,t,n,r){let i=r.element;r.main?(Jt(n,i,`beforeDraw`),i.draw(e,t),Jt(n,i,`afterDraw`)):i.draw(e,t)}function Kn(e){let t=null;return()=>(t??=e(),t)}function Oee(e,t){return e.filter(e=>e!==t)}function kee(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 Aee=class{enter(e){let t=this.entered.length;return this.entered=kee(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=Oee(this.entered.filter(this.isNodeInDocument),e),t>0&&this.entered.length===0}reset(){this.entered=[]}constructor(e){this.entered=[],this.isNodeInDocument=e}},jee=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()}},qn=s({FILE:()=>Jn,HTML:()=>Zn,TEXT:()=>Xn,URL:()=>Yn});const Jn=`__NATIVE_FILE__`,Yn=`__NATIVE_URL__`,Xn=`__NATIVE_TEXT__`,Zn=`__NATIVE_HTML__`;function Qn(e,t,n){return t.reduce((t,n)=>t||e.getData(n),``)??n}const $n={[Jn]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:[`Files`]},[Zn]:{exposeProperties:{html:(e,t)=>Qn(e,t,``),dataTransfer:e=>e},matchesTypes:[`Html`,`text/html`]},[Yn]:{exposeProperties:{urls:(e,t)=>Qn(e,t,``).split(`
2
+ `),dataTransfer:e=>e},matchesTypes:[`Url`,`text/uri-list`]},[Xn]:{exposeProperties:{text:(e,t)=>Qn(e,t,``),dataTransfer:e=>e},matchesTypes:[`Text`,`text/plain`]}};function Mee(e,t){let n=$n[e];if(!n)throw Error(`native type ${e} has no configuration`);let r=new jee(n);return r.loadDataTransfer(t),r}function er(e){if(!e)return null;let t=Array.prototype.slice.call(e.types||[]);return Object.keys($n).filter(e=>{let n=$n[e];return n?.matchesTypes?n.matchesTypes.some(e=>t.indexOf(e)>-1):!1})[0]||null}const Nee=Kn(()=>/firefox/i.test(navigator.userAgent)),tr=Kn(()=>!!window.safari);var nr=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}},Pee=1;function rr(e){let t=e.nodeType===Pee?e:e.parentElement;if(!t)return null;let{top:n,left:r}=t.getBoundingClientRect();return{x:r,y:n}}function ir(e){return{x:e.clientX,y:e.clientY}}function Fee(e){return e.nodeName===`IMG`&&(Nee()||!document.documentElement?.contains(e))}function Iee(e,t,n,r){let i=e?t.width:n,a=e?t.height:r;return tr()&&e&&(a/=window.devicePixelRatio,i/=window.devicePixelRatio),{dragPreviewWidth:i,dragPreviewHeight:a}}function Lee(e,t,n,r,i){let a=Fee(t),o=rr(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}=Iee(a,t,c,l),m=()=>{let e=new nr([0,.5,1],[s.y,s.y/l*p,s.y+p-l]).interpolate(d);return tr()&&a&&(e+=(window.devicePixelRatio-1)*p),e},h=()=>new nr([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 Ree=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 zee(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ar(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){zee(e,t,n[t])})}return e}var Bee=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 ar({dropEffect:this.altKeyPressed?`copy`:`move`},t||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?`copy`:this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){let e=this.monitor.getSourceId();return ar({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(e)||{})}isDraggingNativeItem(){let e=this.monitor.getItemType();return Object.keys(qn).some(t=>qn[t]===e)}beginDragNativeItem(e,t){this.clearCurrentDragSourceNode(),this.currentNativeSource=Mee(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&&rr(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=ir(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=er(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=Lee(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=er(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:ir(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=ir(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 er(e.dataTransfer)&&e.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=e=>{let{dropTargetIds:t}=this;this.dropTargetIds=[],this.actions.hover(t,{clientOffset:ir(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 Ree(t,n),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new Aee(this.isNodeInDocument)}};const Vee=function(e,t,n){return new Bee(e,t,n)};var H=e(n(),1);const or=(0,H.createContext)({dragDropManager:void 0});function sr(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 cr=(function(){return typeof Symbol==`function`&&Symbol.observable||`@@observable`})(),lr=function(){return Math.random().toString(36).substring(7).split(``).join(`.`)},ur={INIT:`@@redux/INIT`+lr(),REPLACE:`@@redux/REPLACE`+lr(),PROBE_UNKNOWN_ACTION:function(){return`@@redux/PROBE_UNKNOWN_ACTION`+lr()}};function Hee(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 dr(e,t,n){var r;if(typeof t==`function`&&typeof n==`function`||typeof n==`function`&&typeof arguments[3]==`function`)throw Error(sr(0));if(typeof t==`function`&&n===void 0&&(n=t,t=void 0),n!==void 0){if(typeof n!=`function`)throw Error(sr(1));return n(dr)(e,t)}if(typeof e!=`function`)throw Error(sr(2));var i=e,a=t,o=[],s=o,c=!1;function l(){s===o&&(s=o.slice())}function u(){if(c)throw Error(sr(3));return a}function d(e){if(typeof e!=`function`)throw Error(sr(4));if(c)throw Error(sr(5));var t=!0;return l(),s.push(e),function(){if(t){if(c)throw Error(sr(6));t=!1,l();var n=s.indexOf(e);s.splice(n,1),o=null}}}function f(e){if(!Hee(e))throw Error(sr(7));if(e.type===void 0)throw Error(sr(8));if(c)throw Error(sr(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(sr(10));i=e,f({type:ur.REPLACE})}function m(){var e,t=d;return e={subscribe:function(e){if(typeof e!=`object`||!e)throw Error(sr(11));function n(){e.next&&e.next(u())}return n(),{unsubscribe:t(n)}}},e[cr]=function(){return this},e}return f({type:ur.INIT}),r={dispatch:f,subscribe:d,getState:u,replaceReducer:p},r[cr]=m,r}function fr(e,t,...n){if(Uee()&&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 Uee(){return typeof process<`u`&&!0}function Wee(e,t,n){return t.split(`.`).reduce((e,t)=>e&&e[t]?e[t]:n||null,e)}function Gee(e,t){return e.filter(e=>e!==t)}function pr(e){return typeof e==`object`}function Kee(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 qee(e,t){return e.filter(e=>t.indexOf(e)>-1)}const mr=`dnd-core/INIT_COORDS`,hr=`dnd-core/BEGIN_DRAG`,gr=`dnd-core/PUBLISH_DRAG_SOURCE`,_r=`dnd-core/HOVER`,vr=`dnd-core/DROP`,yr=`dnd-core/END_DRAG`;function br(e,t){return{type:mr,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}var Jee={type:mr,payload:{clientOffset:null,sourceClientOffset:null}};function Yee(e){return function(t=[],n={publishSource:!0}){let{publishSource:r=!0,clientOffset:i,getSourceClientOffset:a}=n,o=e.getMonitor(),s=e.getRegistry();e.dispatch(br(i)),Xee(t,o,s);let c=$ee(t,o);if(c==null){e.dispatch(Jee);return}let l=null;if(i){if(!a)throw Error(`getSourceClientOffset must be defined`);Zee(a),l=a(c)}e.dispatch(br(i,l));let u=s.getSource(c).beginDrag(o,c);if(u!=null)return Qee(u),s.pinSource(c),{type:hr,payload:{itemType:s.getSourceType(c),item:u,sourceId:c,clientOffset:i||null,sourceClientOffset:l||null,isSourcePublic:!!r}}}}function Xee(e,t,n){fr(!t.isDragging(),`Cannot call beginDrag while dragging.`),e.forEach(function(e){fr(n.getSource(e),`Expected sourceIds to be registered.`)})}function Zee(e){fr(typeof e==`function`,`When clientOffset is provided, getSourceClientOffset must be a function.`)}function Qee(e){fr(pr(e),`Item must be an object.`)}function $ee(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 ete(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tte(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){ete(e,t,n[t])})}return e}function nte(e){return function(t={}){let n=e.getMonitor(),r=e.getRegistry();rte(n),ote(n).forEach((i,a)=>{let o={type:vr,payload:{dropResult:tte({},t,ite(i,a,r,n))}};e.dispatch(o)})}}function rte(e){fr(e.isDragging(),`Cannot call drop while not dragging.`),fr(!e.didDrop(),`Cannot call drop twice during one drag operation.`)}function ite(e,t,n,r){let i=n.getTarget(e),a=i?i.drop(r,e):void 0;return ate(a),a===void 0&&(a=t===0?{}:r.getDropResult()),a}function ate(e){fr(e===void 0||pr(e),`Drop result must either be an object or undefined.`)}function ote(e){let t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}function ste(e){return function(){let t=e.getMonitor(),n=e.getRegistry();cte(t);let r=t.getSourceId();return r!=null&&(n.getSource(r,!0).endDrag(t,r),n.unpinSource()),{type:yr}}}function cte(e){fr(e.isDragging(),`Cannot call endDrag while not dragging.`)}function xr(e,t){return t===null?e===null:Array.isArray(e)?e.some(e=>e===t):e===t}function lte(e){return function(t,{clientOffset:n}={}){ute(t);let r=t.slice(0),i=e.getMonitor(),a=e.getRegistry();return fte(r,a,i.getItemType()),dte(r,i,a),pte(r,i,a),{type:_r,payload:{targetIds:r,clientOffset:n||null}}}}function ute(e){fr(Array.isArray(e),`Expected targetIds to be an array.`)}function dte(e,t,n){fr(t.isDragging(),`Cannot call hover while not dragging.`),fr(!t.didDrop(),`Cannot call hover after drop.`);for(let t=0;t<e.length;t++){let r=e[t];fr(e.lastIndexOf(r)===t,`Expected targetIds to be unique in the passed array.`),fr(n.getTarget(r),`Expected targetIds to be registered.`)}}function fte(e,t,n){for(let r=e.length-1;r>=0;r--){let i=e[r];xr(t.getTargetType(i),n)||e.splice(r,1)}}function pte(e,t,n){e.forEach(function(e){n.getTarget(e).hover(t,e)})}function mte(e){return function(){if(e.getMonitor().isDragging())return{type:gr}}}function hte(e){return{beginDrag:Yee(e),publishDragSource:mte(e),hover:lte(e),drop:nte(e),endDrag:ste(e)}}var gte=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=hte(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 _te(e,t){return{x:e.x+t.x,y:e.y+t.y}}function Sr(e,t){return{x:e.x-t.x,y:e.y-t.y}}function vte(e){let{clientOffset:t,initialClientOffset:n,initialSourceClientOffset:r}=e;return!t||!n||!r?null:Sr(_te(t,r),n)}function yte(e){let{clientOffset:t,initialClientOffset:n}=e;return!t||!n?null:Sr(t,n)}const Cr=[],wr=[];Cr.__IS_NONE__=!0,wr.__IS_ALL__=!0;function bte(e,t){return e===Cr?!1:e===wr||t===void 0?!0:qee(t,e).length>0}var xte=class{subscribeToStateChange(e,t={}){let{handlerIds:n}=t;fr(typeof e==`function`,`listener must be a function.`),fr(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&&!bte(t.dirtyHandlerIds,n)||e()}finally{r=i}})}subscribeToOffsetChange(e){fr(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 fr(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 fr(t,`Expected to find a valid target. targetId=${e}`),!this.isDragging()||this.didDrop()?!1:xr(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 fr(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&&!xr(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 vte(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return yte(this.store.getState().dragOffset)}constructor(e,t){this.store=e,this.registry=t}},Tr=typeof global<`u`?global:self,Er=Tr.MutationObserver||Tr.WebKitMutationObserver;function Dr(e){return function(){let t=setTimeout(r,0),n=setInterval(r,50);function r(){clearTimeout(t),clearInterval(n),e()}}}function Ste(e){let t=1,n=new Er(e),r=document.createTextNode(``);return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}const Cte=typeof Er==`function`?Ste:Dr;var wte=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=Cte(this.flush),this.requestErrorThrow=Dr(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}},Tte=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}},Ete=class{create(e){let t=this.freeTasks,n=t.length?t.pop():new Tte(this.onError,e=>t[t.length]=e);return n.task=e,n}constructor(e){this.onError=e,this.freeTasks=[]}},Or=new wte,Dte=new Ete(Or.registerPendingError);function Ote(e){Or.enqueueTask(Dte.create(e))}const kr=`dnd-core/ADD_SOURCE`,Ar=`dnd-core/ADD_TARGET`,jr=`dnd-core/REMOVE_SOURCE`,Mr=`dnd-core/REMOVE_TARGET`;function kte(e){return{type:kr,payload:{sourceId:e}}}function Ate(e){return{type:Ar,payload:{targetId:e}}}function jte(e){return{type:jr,payload:{sourceId:e}}}function Mte(e){return{type:Mr,payload:{targetId:e}}}function Nte(e){fr(typeof e.canDrag==`function`,`Expected canDrag to be a function.`),fr(typeof e.beginDrag==`function`,`Expected beginDrag to be a function.`),fr(typeof e.endDrag==`function`,`Expected endDrag to be a function.`)}function Pte(e){fr(typeof e.canDrop==`function`,`Expected canDrop to be a function.`),fr(typeof e.hover==`function`,`Expected hover to be a function.`),fr(typeof e.drop==`function`,`Expected beginDrag to be a function.`)}function Nr(e,t){if(t&&Array.isArray(e)){e.forEach(e=>Nr(e,!1));return}fr(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 Pr;(function(e){e.SOURCE=`SOURCE`,e.TARGET=`TARGET`})(Pr||={});var Fte=0;function Ite(){return Fte++}function Lte(e){let t=Ite().toString();switch(e){case Pr.SOURCE:return`S${t}`;case Pr.TARGET:return`T${t}`;default:throw Error(`Unknown Handler Role: ${e}`)}}function Fr(e){switch(e[0]){case`S`:return Pr.SOURCE;case`T`:return Pr.TARGET;default:throw Error(`Cannot parse handler ID: ${e}`)}}function Ir(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 Rte=class{addSource(e,t){Nr(e),Nte(t);let n=this.addHandler(Pr.SOURCE,e,t);return this.store.dispatch(kte(n)),n}addTarget(e,t){Nr(e,!0),Pte(t);let n=this.addHandler(Pr.TARGET,e,t);return this.store.dispatch(Ate(n)),n}containsHandler(e){return Ir(this.dragSources,e)||Ir(this.dropTargets,e)}getSource(e,t=!1){return fr(this.isSourceId(e),`Expected a valid source ID.`),t&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return fr(this.isTargetId(e),`Expected a valid target ID.`),this.dropTargets.get(e)}getSourceType(e){return fr(this.isSourceId(e),`Expected a valid source ID.`),this.types.get(e)}getTargetType(e){return fr(this.isTargetId(e),`Expected a valid target ID.`),this.types.get(e)}isSourceId(e){return Fr(e)===Pr.SOURCE}isTargetId(e){return Fr(e)===Pr.TARGET}removeSource(e){fr(this.getSource(e),`Expected an existing source.`),this.store.dispatch(jte(e)),Ote(()=>{this.dragSources.delete(e),this.types.delete(e)})}removeTarget(e){fr(this.getTarget(e),`Expected an existing target.`),this.store.dispatch(Mte(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){let t=this.getSource(e);fr(t,`Expected an existing source.`),this.pinnedSourceId=e,this.pinnedSource=t}unpinSource(){fr(this.pinnedSource,`No source is pinned at the time.`),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,t,n){let r=Lte(e);return this.types.set(r,t),e===Pr.SOURCE?this.dragSources.set(r,n):e===Pr.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 zte=(e,t)=>e===t;function Bte(e,t){return!e&&!t?!0:!e||!t?!1:e.x===t.x&&e.y===t.y}function Vte(e,t,n=zte){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 Hte(e=Cr,t){switch(t.type){case _r:break;case kr:case Ar:case Mr:case jr:return Cr;case hr:case gr:case yr:case vr:default:return wr}let{targetIds:n=[],prevTargetIds:r=[]}=t.payload,i=Kee(n,r);if(!(i.length>0||!Vte(n,r)))return Cr;let a=r[r.length-1],o=n[n.length-1];return a!==o&&(a&&i.push(a),o&&i.push(o)),i}function Ute(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wte(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){Ute(e,t,n[t])})}return e}var Lr={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function Gte(e=Lr,t){let{payload:n}=t;switch(t.type){case mr:case hr:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case _r:return Bte(e.clientOffset,n.clientOffset)?e:Wte({},e,{clientOffset:n.clientOffset});case yr:case vr:return Lr;default:return e}}function Kte(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rr(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){Kte(e,t,n[t])})}return e}var qte={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function Jte(e=qte,t){let{payload:n}=t;switch(t.type){case hr:return Rr({},e,{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case gr:return Rr({},e,{isSourcePublic:!0});case _r:return Rr({},e,{targetIds:n.targetIds});case Mr:return e.targetIds.indexOf(n.targetId)===-1?e:Rr({},e,{targetIds:Gee(e.targetIds,n.targetId)});case vr:return Rr({},e,{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case yr:return Rr({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}}function Yte(e=0,t){switch(t.type){case kr:case Ar:return e+1;case jr:case Mr:return e-1;default:return e}}function Xte(e=0){return e+1}function Zte(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qte(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){Zte(e,t,n[t])})}return e}function $te(e={},t){return{dirtyHandlerIds:Hte(e.dirtyHandlerIds,{type:t.type,payload:Qte({},t.payload,{prevTargetIds:Wee(e,`dragOperation.targetIds`,[])})}),dragOffset:Gte(e.dragOffset,t),refCount:Yte(e.refCount,t),dragOperation:Jte(e.dragOperation,t),stateId:Xte(e.stateId)}}function ene(e,t=void 0,n={},r=!1){let i=tne(r),a=new gte(i,new xte(i,new Rte(i))),o=e(a,t,n);return a.receiveBackend(o),a}function tne(e){let t=typeof window<`u`&&window.__REDUX_DEVTOOLS_EXTENSION__;return dr($te,e&&t&&t({name:`dnd-core`,instanceId:`dnd-core`}))}var U=e(t(),1);function nne(e,t){if(e==null)return{};var n=rne(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 rne(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 zr=0,Br=Symbol.for(`__REACT_DND_CONTEXT_INSTANCE__`),ine=(0,H.memo)(function(e){var{children:t}=e;let[n,r]=ane(nne(e,[`children`]));return(0,H.useEffect)(()=>{if(r){let e=Vr();return++zr,()=>{--zr===0&&(e[Br]=null)}}},[]),(0,U.jsx)(or.Provider,{value:n,children:t})});function ane(e){return`manager`in e?[{dragDropManager:e.manager},!1]:[one(e.backend,e.context,e.options,e.debugMode),!e.context]}function one(e,t=Vr(),n,r){let i=t;return i[Br]||(i[Br]={dragDropManager:ene(e,t,n,r)}),i[Br]}function Vr(){return typeof global<`u`?global:window}const Hr=typeof window<`u`?H.useLayoutEffect:H.useEffect;var sne=e(re(),1);function cne(e,t,n){let[r,i]=(0,H.useState)(()=>t(e)),a=(0,H.useCallback)(()=>{let a=t(e);(0,sne.default)(r,a)||(i(a),n&&n())},[r,e,n]);return Hr(a),[r,a]}function lne(e,t,n){let[r,i]=cne(e,t,n);return Hr(function(){let t=e.getHandlerId();if(t!=null)return e.subscribeToStateChange(i,{handlerIds:[t]})},[e,i]),r}function Ur(e,t,n){return lne(t,e||(()=>({})),()=>n.reconnect())}function Wr(e,t){let n=[...t||[]];return t==null&&typeof e!=`function`&&n.push(e),(0,H.useMemo)(()=>typeof e==`function`?e():e,n)}function une(e){return(0,H.useMemo)(()=>e.hooks.dragSource(),[e])}function dne(e){return(0,H.useMemo)(()=>e.hooks.dragPreview(),[e])}var Gr=!1,Kr=!1,fne=class{receiveHandlerId(e){this.sourceId=e}getHandlerId(){return this.sourceId}canDrag(){fr(!Gr,`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 Gr=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{Gr=!1}}isDragging(){if(!this.sourceId)return!1;fr(!Kr,`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 Kr=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{Kr=!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()}},qr=!1,pne=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;fr(!qr,`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 qr=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{qr=!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 mne(e,t,n){let r=n.getRegistry(),i=r.addTarget(e,t);return[i,()=>r.removeTarget(i)]}function hne(e,t,n){let r=n.getRegistry(),i=r.addSource(e,t);return[i,()=>r.removeSource(i)]}function Jr(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 Yr(e){return typeof e==`object`&&!!e&&Object.prototype.hasOwnProperty.call(e,`current`)}function gne(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 _ne(e){return(t=null,n=null)=>{if(!(0,H.isValidElement)(t)){let r=t;return e(r,n),r}let r=t;return gne(r),vne(r,n?t=>e(t,n):e)}}function Xr(e){let t={};return Object.keys(e).forEach(n=>{let r=e[n];if(n.endsWith(`Ref`))t[n]=e[n];else{let e=_ne(r);t[n]=()=>e}}),t}function Zr(e,t){typeof e==`function`?e(t):e.current=t}function vne(e,t){let n=e.ref;return fr(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,H.cloneElement)(e,{ref:e=>{Zr(n,e),Zr(t,e)}}):(0,H.cloneElement)(e,{ref:t})}var yne=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!Jr(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!Jr(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=Xr({dragSource:(e,t)=>{this.clearDragSource(),this.dragSourceOptions=t||null,Yr(e)?this.dragSourceRef=e:this.dragSourceNode=e,this.reconnectDragSource()},dragPreview:(e,t)=>{this.clearDragPreview(),this.dragPreviewOptions=t||null,Yr(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}},bne=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!Jr(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=Xr({dropTarget:(e,t)=>{this.clearDropTarget(),this.dropTargetOptions=t,Yr(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 Qr(){let{dragDropManager:e}=(0,H.useContext)(or);return fr(e!=null,`Expected drag drop context`),e}function xne(e,t){let n=Qr(),r=(0,H.useMemo)(()=>new yne(n.getBackend()),[n]);return Hr(()=>(r.dragSourceOptions=e||null,r.reconnect(),()=>r.disconnectDragSource()),[r,e]),Hr(()=>(r.dragPreviewOptions=t||null,r.reconnect(),()=>r.disconnectDragPreview()),[r,t]),r}function Sne(){let e=Qr();return(0,H.useMemo)(()=>new fne(e),[e])}var Cne=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 wne(e,t,n){let r=(0,H.useMemo)(()=>new Cne(e,t,n),[t,n]);return(0,H.useEffect)(()=>{r.spec=e},[e]),r}function Tne(e){return(0,H.useMemo)(()=>{let t=e.type;return fr(t!=null,`spec.type must be defined`),t},[e])}function Ene(e,t,n){let r=Qr(),i=wne(e,t,n),a=Tne(e);Hr(function(){if(a!=null){let[e,o]=hne(a,i,r);return t.receiveHandlerId(e),n.receiveHandlerId(e),o}},[r,t,n,i,a])}function Dne(e,t){let n=Wr(e,t);fr(!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=Sne(),i=xne(n.options,n.previewOptions);return Ene(n,r,i),[Ur(n.collect,r,i),une(i),dne(i)]}function One(e){return(0,H.useMemo)(()=>e.hooks.dropTarget(),[e])}function kne(e){let t=Qr(),n=(0,H.useMemo)(()=>new bne(t.getBackend()),[t]);return Hr(()=>(n.dropTargetOptions=e||null,n.reconnect(),()=>n.disconnectDropTarget()),[e]),n}function Ane(){let e=Qr();return(0,H.useMemo)(()=>new pne(e),[e])}function jne(e){let{accept:t}=e;return(0,H.useMemo)(()=>(fr(e.accept!=null,`accept must be defined`),Array.isArray(t)?t:[t]),[t])}var Mne=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 Nne(e,t){let n=(0,H.useMemo)(()=>new Mne(e,t),[t]);return(0,H.useEffect)(()=>{n.spec=e},[e]),n}function Pne(e,t,n){let r=Qr(),i=Nne(e,t),a=jne(e);Hr(function(){let[e,o]=mne(a,i,r);return t.receiveHandlerId(e),n.receiveHandlerId(e),o},[r,t,i,n,a.map(e=>e.toString()).join(`|`)])}function Fne(e,t){let n=Wr(e,t),r=Ane(),i=kne(n.options);return Pne(n,r,i),[Ur(n.collect,r,i),One(i)]}var Ine=r(((e,t)=>{t.exports=`SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED`})),Lne=r(((e,t)=>{var n=Ine();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}})),$r=r(((e,t)=>{t.exports=Lne()()}));function Rne(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var zne=c((()=>{})),Bne=s({default:()=>ti}),ei,ti,Vne=c((()=>{zne(),ei=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,ti=Rne(function(e){return ei.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91})})),ni=e($r(),1),ri=e($r(),1),ii=e(o(),1),ai=e(z(),1),Hne=Object.defineProperty,oi=e=>{throw TypeError(e)},Une=(e,t,n)=>t in e?Hne(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,si=(e,t,n)=>Une(e,typeof t==`symbol`?t:t+``,n),ci=(e,t,n)=>t.has(e)||oi(`Cannot `+n),li=(e,t,n)=>(ci(e,t,`read from private field`),n?n.call(e):t.get(e)),ui=(e,t,n)=>t.has(e)?oi(`Cannot add the same private member more than once`):t instanceof WeakSet?t.add(e):t.set(e,n),di=(e,t,n,r)=>(ci(e,t,`write to private field`),r?r.call(e,n):t.set(e,n),n),fi,pi,mi,hi,gi,_i,vi,yi,bi,xi,Si=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function Ci(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}function wi(e){if(e.__esModule)return e;var t=e.default;if(typeof t==`function`){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,`__esModule`,{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),n}var Ti={exports:{}},Ei;function Di(){return Ei?Ti.exports:(Ei=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var e=``,t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=i(e,r(n)))}return e}function r(e){if(typeof e==`string`||typeof e==`number`)return e;if(typeof e!=`object`)return``;if(Array.isArray(e))return n.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes(`[native code]`))return e.toString();var r=``;for(var a in e)t.call(e,a)&&e[a]&&(r=i(r,a));return r}function i(e,t){return t?e?e+` `+t:e+t:e}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Ti),Ti.exports)}var Oi=Ci(Di()),ki=(e=>(e.TEXT=`Text`,e.BUTTON=`Button`,e.DROP_DOWN_BUTTON=`DropDownButton`,e.COMPONENT=`Component`,e))(ki||{}),Ai=(e=>(e.FIRST=`first`,e.MIDDLE=`middle`,e.LAST=`last`,e))(Ai||{}),ji=(e=>(e.DANGER=`danger`,e.RED=`red`,e.WHITE=`white`,e.SUCCESS=`success`,e.GREEN=`green`,e.MUTED=`muted`,e))(ji||{}),Mi=(e=>(e.LEFT=`left`,e.RIGHT=`right`,e.CENTER=`center`,e))(Mi||{}),Ni=(e=>(e.TOP=`top`,e.BOTTOM=`bottom`,e))(Ni||{}),Pi=(e=>(e.LIBRARY=`library`,e.ADD=`add`,e.DRAG=`drag`,e.HELP=`help`,e.NOTIFICATION=`notification`,e.MENU=`menu`,e.EDIT=`edit`,e.FAST_FORWARD=`fast forward`,e.INDENT=`indent`,e.STAR=`star`,e.LIST=`list`,e.SETTINGS=`settings`,e.CHECK=`check`,e.LOCK=`lock`,e.UNLOCK=`unlock`,e.CLOSE=`close`,e.SUCCESS=`success`,e.WARNING=`warning`,e.ERROR=`error`,e.INFO=`info`,e.LEFT=`left`,e.COLLAPSE=`collapse`,e.EXPAND=`expand`,e.SORT_ASCENDING=`sort ascending`,e.SORT_DESCENDING=`sort descending`,e.FAST_BACKWARD=`fast backward`,e.CHEVRON_DOWN=`chevron down`,e.CHEVRON_RIGHT=`chevron right`,e.CHEVRON_LEFT=`chevron left`,e.CHEVRON_DOUBLE_LEFT=`chevron double left`,e.CHEVRON_DOUBLE_RIGHT=`chevron double right`,e))(Pi||{}),Fi=(e=>(e.TEXT=`text`,e.RADIO=`radio`,e.CHECKBOX=`checkbox`,e))(Fi||{});function Ii(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}function Li(){return Li=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},Li.apply(null,arguments)}function Ri(e,t){return Ri=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ri(e,t)}function zi(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ri(e,t)}function Bi(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 Vi={},Hi;function Wne(){if(Hi)return Vi;Hi=1;var e=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,t=/^[\u000b\u0020-\u007e\u0080-\u00ff]+$/,n=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,r=/\\([\u000b\u0020-\u00ff])/g,i=/([\\"])/g,a=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;Vi.format=o,Vi.parse=s;function o(e){if(!e||typeof e!=`object`)throw TypeError(`argument obj is required`);var t=e.parameters,r=e.type;if(!r||!a.test(r))throw TypeError(`invalid type`);var i=r;if(t&&typeof t==`object`)for(var o,s=Object.keys(t).sort(),c=0;c<s.length;c++){if(o=s[c],!n.test(o))throw TypeError(`invalid parameter name`);i+=`; `+o+`=`+l(t[o])}return i}function s(t){if(!t)throw TypeError(`argument string is required`);var n=typeof t==`object`?c(t):t;if(typeof n!=`string`)throw TypeError(`argument string is required to be a string`);var i=n.indexOf(`;`),o=i===-1?n.trim():n.slice(0,i).trim();if(!a.test(o))throw TypeError(`invalid media type`);var s=new u(o.toLowerCase());if(i!==-1){var l,d,f;for(e.lastIndex=i;d=e.exec(n);){if(d.index!==i)throw TypeError(`invalid parameter format`);i+=d[0].length,l=d[1].toLowerCase(),f=d[2],f.charCodeAt(0)===34&&(f=f.slice(1,-1),f.indexOf(`\\`)!==-1&&(f=f.replace(r,`$1`))),s.parameters[l]=f}if(i!==n.length)throw TypeError(`invalid parameter format`)}return s}function c(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 l(e){var r=String(e);if(n.test(r))return r;if(r.length>0&&!t.test(r))throw TypeError(`invalid parameter value`);return`"`+r.replace(i,`\\$1`)+`"`}function u(e){this.parameters=Object.create(null),this.type=e}return Vi}var Gne=Wne(),Ui=new Map,Wi=function(e){return e.cloneNode(!0)},Gi=function(){return window.location.protocol===`file:`},Ki=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=Gne.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(Gi()?`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||Gi()&&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()},qi={},Ji=function(e,t){qi[e]=qi[e]||[],qi[e].push(t)},Kne=function(e){for(var t=function(t,n){setTimeout(function(){if(Array.isArray(qi[e])){var n=Ui.get(e),r=qi[e][t];n instanceof SVGSVGElement&&r(null,Wi(n)),n instanceof Error&&r(n),t===qi[e].length-1&&delete qi[e]}},0)},n=0,r=qi[e].length;n<r;n++)t(n)},qne=function(e,t,n){if(Ui.has(e)){var r=Ui.get(e);if(r===void 0){Ji(e,n);return}if(r instanceof SVGSVGElement){n(null,Wi(r));return}}Ui.set(e,void 0),Ji(e,n),Ki(e,t,function(t,n){t?Ui.set(e,t):n.responseXML?.documentElement instanceof SVGSVGElement&&Ui.set(e,n.responseXML.documentElement),Kne(e)})},Jne=function(e,t,n){Ki(e,t,function(e,t){e?n(e):t.responseXML?.documentElement instanceof SVGSVGElement&&n(null,t.responseXML.documentElement)})},Yne=0,Xne=function(){return++Yne},Yi=[],Xi={},Zne=`http://www.w3.org/2000/svg`,Zi=`http://www.w3.org/1999/xlink`,Qi=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(Yi.indexOf(e)!==-1){Yi.splice(Yi.indexOf(e),1),e=null;return}Yi.push(e),e.setAttribute(`src`,``),(r?qne:Jne)(s,i,function(r,i){if(!i){Yi.splice(Yi.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(Bi(Bi(Bi([],(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+`-`+Xne();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(Zi,`href`);c&&c.toString()===`#`+_[e].id&&a.push(r[o])}for(var l=0,u=a.length;l<u;l++)a[l].setAttributeNS(Zi,`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`&&!Xi[s])){for(var D=0,O=S.length;D<O;D++)Function(S[D])(window);Xi[s]=!0}var k=i.querySelectorAll(`style`);if(Array.prototype.forEach.call(k,function(e){e.textContent+=``}),i.setAttribute(`xmlns`,Zne),i.setAttribute(`xmlns:xlink`,Zi),a(i),!e.parentNode){Yi.splice(Yi.indexOf(e),1),e=null,o(Error(`Parent node is null`));return}e.parentNode.replaceChild(i,e),Yi.splice(Yi.indexOf(e),1),e=null,o(null,i)})},Qne=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++)Qi(e[v],f,g,u,m,c,function(t,n){o(t,n),e&&`length`in e&&e.length===++_&&i(_)});else e?Qi(e,f,g,u,m,c,function(t,n){o(t,n),i(1),e=null}):i(0)},$ne=function(e){return(e?.ownerDocument||document).defaultView||window},ere=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},tre=[`afterInjection`,`beforeInjection`,`desc`,`evalScripts`,`fallback`,`httpRequestWithCredentials`,`loading`,`renumerateIRIElements`,`src`,`title`,`useRequestCache`,`wrapper`],$i=`http://www.w3.org/2000/svg`,ea=`http://www.w3.org/1999/xlink`,ta=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}zi(t,e);var n=t.prototype;return n.renderSVG=function(){var e=this;if(this.reactWrapper instanceof $ne(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($i,f),p.setAttribute(`xmlns`,$i),p.setAttribute(`xmlns:xlink`,ea),m=document.createElementNS($i,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)})};Qne(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;ere(Li({},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=Ii(e,tre),a=r;return H.createElement(a,Li({},i,{ref:this.refCallback},r===`svg`?{xmlns:$i,xmlnsXlink:ea}:{}),this.state.isLoading&&n&&H.createElement(n,null),this.state.hasError&&t&&H.createElement(t,null))},t}(H.Component);ta.defaultProps={afterInjection:function(){},beforeInjection:function(){},desc:``,evalScripts:`never`,fallback:null,httpRequestWithCredentials:!1,loading:null,onError:function(){},renumerateIRIElements:!0,title:``,useRequestCache:!0,wrapper:`div`},ta.propTypes={afterInjection:ni.func,beforeInjection:ni.func,desc:ni.string,evalScripts:ni.oneOf([`always`,`once`,`never`]),fallback:ni.oneOfType([ni.func,ni.object,ni.string]),httpRequestWithCredentials:ni.bool,loading:ni.oneOfType([ni.func,ni.object,ni.string]),onError:ni.func,renumerateIRIElements:ni.bool,src:ni.string.isRequired,title:ni.string,useRequestCache:ni.bool,wrapper:ni.oneOf([`div`,`span`,`svg`])};var na=H.createContext(!1),ra={wrapper:`_wrapper_18jt2_1`,customSvg:`_customSvg_18jt2_8`,customPng:`_customPng_18jt2_11`,clickable:`_clickable_18jt2_16`},ia={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},aa=H.createContext&&H.createContext(ia),oa=function(){return oa=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},oa.apply(this,arguments)},nre=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function sa(e){return e&&e.map(function(e,t){return H.createElement(e.tag,oa({key:t},e.attr),sa(e.child))})}function W(e){return function(t){return H.createElement(rre,oa({attr:oa({},e.attr)},t),sa(e.child))}}function rre(e){var t=function(t){var n=e.attr,r=e.size,i=e.title,a=nre(e,[`attr`,`size`,`title`]),o=r||t.size||`1em`,s;return t.className&&(s=t.className),e.className&&(s=(s?s+` `:``)+e.className),H.createElement(`svg`,oa({stroke:`currentColor`,fill:`currentColor`,strokeWidth:`0`},t.attr,n,a,{className:s,style:oa(oa({color:e.color||t.color},t.style),e.style),height:o,width:o,xmlns:`http://www.w3.org/2000/svg`}),i&&H.createElement(`title`,null,i),e.children)};return aa===void 0?t(ia):H.createElement(aa.Consumer,null,function(e){return t(e)})}function ire(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M12 9v4`}},{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`}},{tag:`path`,attr:{d:`M12 16h.01`}}]})(e)}function are(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M12 5l0 14`}},{tag:`path`,attr:{d:`M18 13l-6 6`}},{tag:`path`,attr:{d:`M6 13l6 6`}}]})(e)}function ore(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M5 12l14 0`}},{tag:`path`,attr:{d:`M5 12l6 6`}},{tag:`path`,attr:{d:`M5 12l6 -6`}}]})(e)}function sre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M5 12l14 0`}},{tag:`path`,attr:{d:`M13 18l6 -6`}},{tag:`path`,attr:{d:`M13 6l6 6`}}]})(e)}function cre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M12 5l0 14`}},{tag:`path`,attr:{d:`M18 11l-6 -6`}},{tag:`path`,attr:{d:`M6 11l6 -6`}}]})(e)}function lre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M16 4l4 0l0 4`}},{tag:`path`,attr:{d:`M14 10l6 -6`}},{tag:`path`,attr:{d:`M8 20l-4 0l0 -4`}},{tag:`path`,attr:{d:`M4 20l6 -6`}}]})(e)}function ure(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M16 4l4 0l0 4`}},{tag:`path`,attr:{d:`M14 10l6 -6`}},{tag:`path`,attr:{d:`M8 20l-4 0l0 -4`}},{tag:`path`,attr:{d:`M4 20l6 -6`}},{tag:`path`,attr:{d:`M16 20l4 0l0 -4`}},{tag:`path`,attr:{d:`M14 14l6 6`}},{tag:`path`,attr:{d:`M8 4l-4 0l0 4`}},{tag:`path`,attr:{d:`M4 4l6 6`}}]})(e)}function dre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M5 9l4 0l0 -4`}},{tag:`path`,attr:{d:`M3 3l6 6`}},{tag:`path`,attr:{d:`M5 15l4 0l0 4`}},{tag:`path`,attr:{d:`M3 21l6 -6`}},{tag:`path`,attr:{d:`M19 9l-4 0l0 -4`}},{tag:`path`,attr:{d:`M15 9l6 -6`}},{tag:`path`,attr:{d:`M19 15l-4 0l0 4`}},{tag:`path`,attr:{d:`M15 15l6 6`}}]})(e)}function fre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M18 9l3 3l-3 3`}},{tag:`path`,attr:{d:`M15 12h6`}},{tag:`path`,attr:{d:`M6 9l-3 3l3 3`}},{tag:`path`,attr:{d:`M3 12h6`}},{tag:`path`,attr:{d:`M9 18l3 3l3 -3`}},{tag:`path`,attr:{d:`M12 15v6`}},{tag:`path`,attr:{d:`M15 6l-3 -3l-3 3`}},{tag:`path`,attr:{d:`M12 3v6`}}]})(e)}function pre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M21 17h-8l-3.5 -5h-6.5`}},{tag:`path`,attr:{d:`M21 7h-8l-3.495 5`}},{tag:`path`,attr:{d:`M18 10l3 -3l-3 -3`}},{tag:`path`,attr:{d:`M18 20l3 -3l-3 -3`}}]})(e)}function mre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{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`}},{tag:`path`,attr:{d:`M9 17v1a3 3 0 0 0 6 0v-1`}}]})(e)}function hre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M7 5h6a3.5 3.5 0 0 1 0 7h-6z`}},{tag:`path`,attr:{d:`M13 12h1a3.5 3.5 0 0 1 0 7h-7v-7`}}]})(e)}function gre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M13 3l0 7l6 0l-8 11l0 -7l-6 0l8 -11`}}]})(e)}function _re(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M19 4v16h-12a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2h12z`}},{tag:`path`,attr:{d:`M19 16h-12a2 2 0 0 0 -2 2`}},{tag:`path`,attr:{d:`M9 8h6`}}]})(e)}function vre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M3 21l18 0`}},{tag:`path`,attr:{d:`M5 21v-14l8 -4v18`}},{tag:`path`,attr:{d:`M19 21v-10l-6 -4`}},{tag:`path`,attr:{d:`M9 9l0 .01`}},{tag:`path`,attr:{d:`M9 12l0 .01`}},{tag:`path`,attr:{d:`M9 15l0 .01`}},{tag:`path`,attr:{d:`M9 18l0 .01`}}]})(e)}function yre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{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`}},{tag:`path`,attr:{d:`M9 13a3 3 0 1 0 6 0a3 3 0 0 0 -6 0`}}]})(e)}function bre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M3 12m0 1a1 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`}},{tag:`path`,attr:{d:`M9 8m0 1a1 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`}},{tag:`path`,attr:{d:`M15 4m0 1a1 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`}},{tag:`path`,attr:{d:`M4 20l14 0`}}]})(e)}function xre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M4 19l16 0`}},{tag:`path`,attr:{d:`M4 15l4 -6l4 2l4 -5l4 4`}}]})(e)}function Sre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M12 3v9h9`}},{tag:`path`,attr:{d:`M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0`}}]})(e)}function Cre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M5 12l5 5l10 -10`}}]})(e)}function wre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M6 9l6 6l6 -6`}}]})(e)}function Tre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M15 6l-6 6l6 6`}}]})(e)}function Ere(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M9 6l6 6l-6 6`}}]})(e)}function Dre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M6 15l6 -6l6 6`}}]})(e)}function Ore(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M11 7l-5 5l5 5`}},{tag:`path`,attr:{d:`M17 7l-5 5l5 5`}}]})(e)}function kre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M7 7l5 5l-5 5`}},{tag:`path`,attr:{d:`M13 7l5 5l-5 5`}}]})(e)}function Are(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0`}},{tag:`path`,attr:{d:`M9 12l2 2l4 -4`}}]})(e)}function jre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0`}},{tag:`path`,attr:{d:`M10 10l4 4m0 -4l-4 4`}}]})(e)}function Mre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0`}}]})(e)}function Nre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{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`}},{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`}}]})(e)}function Pre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0`}},{tag:`path`,attr:{d:`M12 7v5l3 3`}}]})(e)}function Fre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M7 8l-4 4l4 4`}},{tag:`path`,attr:{d:`M17 8l4 4l-4 4`}},{tag:`path`,attr:{d:`M14 4l-4 16`}}]})(e)}function Ire(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M8 8m0 2a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-8a2 2 0 0 1 -2 -2z`}},{tag:`path`,attr:{d:`M16 8v-2a2 2 0 0 0 -2 -2h-8a2 2 0 0 0 -2 2v8a2 2 0 0 0 2 2h2`}}]})(e)}function Lre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M6 6v6a3 3 0 0 0 3 3h10l-4 -4m0 8l4 -4`}}]})(e)}function Rre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{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`}},{tag:`path`,attr:{d:`M12 14m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`}},{tag:`path`,attr:{d:`M14 4l0 4l-6 0l0 -4`}}]})(e)}function zre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M3 19l18 0`}},{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`}}]})(e)}function Bre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`}},{tag:`path`,attr:{d:`M12 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`}},{tag:`path`,attr:{d:`M12 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`}}]})(e)}function Vre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2`}},{tag:`path`,attr:{d:`M7 11l5 5l5 -5`}},{tag:`path`,attr:{d:`M12 4l0 12`}}]})(e)}function Hre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{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`}}]})(e)}function Ure(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M12 19v.01`}},{tag:`path`,attr:{d:`M12 15v-10`}}]})(e)}function Wre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{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`}},{tag:`path`,attr:{d:`M11 13l9 -9`}},{tag:`path`,attr:{d:`M15 4h5v5`}}]})(e)}function Gre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M10.585 10.587a2 2 0 0 0 2.829 2.828`}},{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`}},{tag:`path`,attr:{d:`M3 3l18 18`}}]})(e)}function Kre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M10 12a2 2 0 1 0 4 0a2 2 0 0 0 -4 0`}},{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`}}]})(e)}function qre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M14 3v4a1 1 0 0 0 1 1h4`}},{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`}}]})(e)}function Jre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{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`}},{tag:`path`,attr:{d:`M3 3l18 18`}}]})(e)}function Yre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{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`}}]})(e)}function Xre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`}},{tag:`path`,attr:{d:`M4 8v-2a2 2 0 0 1 2 -2h2`}},{tag:`path`,attr:{d:`M4 16v2a2 2 0 0 0 2 2h2`}},{tag:`path`,attr:{d:`M16 4h2a2 2 0 0 1 2 2v2`}},{tag:`path`,attr:{d:`M16 20h2a2 2 0 0 0 2 -2v-2`}}]})(e)}function Zre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{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`}},{tag:`path`,attr:{d:`M18 18m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0`}},{tag:`path`,attr:{d:`M20.2 20.2l1.8 1.8`}}]})(e)}function Qre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{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`}}]})(e)}function $re(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0`}},{tag:`path`,attr:{d:`M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`}},{tag:`path`,attr:{d:`M13.41 10.59l2.59 -2.59`}},{tag:`path`,attr:{d:`M7 12a5 5 0 0 1 5 -5`}}]})(e)}function eie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M12 18m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`}},{tag:`path`,attr:{d:`M7 6m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`}},{tag:`path`,attr:{d:`M17 6m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`}},{tag:`path`,attr:{d:`M7 8v2a2 2 0 0 0 2 2h6a2 2 0 0 0 2 -2v-2`}},{tag:`path`,attr:{d:`M12 12l0 4`}}]})(e)}function tie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M9 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`}},{tag:`path`,attr:{d:`M9 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`}},{tag:`path`,attr:{d:`M9 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`}},{tag:`path`,attr:{d:`M15 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`}},{tag:`path`,attr:{d:`M15 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`}},{tag:`path`,attr:{d:`M15 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`}}]})(e)}function nie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0`}},{tag:`path`,attr:{d:`M12 17l0 .01`}},{tag:`path`,attr:{d:`M12 13.5a1.5 1.5 0 0 1 1 -1.5a2.6 2.6 0 1 0 -3 -4`}}]})(e)}function rie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0`}},{tag:`path`,attr:{d:`M12 9h.01`}},{tag:`path`,attr:{d:`M11 12h1v4h1`}}]})(e)}function iie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M11 5l6 0`}},{tag:`path`,attr:{d:`M7 19l6 0`}},{tag:`path`,attr:{d:`M14 5l-4 14`}}]})(e)}function aie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{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`}},{tag:`path`,attr:{d:`M15 9h.01`}}]})(e)}function oie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{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`}},{tag:`path`,attr:{d:`M12 4l0 16`}}]})(e)}function sie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{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`}},{tag:`path`,attr:{d:`M4 12l16 0`}}]})(e)}function cie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M9 15l3 -3m2 -2l1 -1`}},{tag:`path`,attr:{d:`M11 6l.463 -.536a5 5 0 0 1 7.071 7.072l-.534 .464`}},{tag:`path`,attr:{d:`M3 3l18 18`}},{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`}}]})(e)}function lie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M9 15l6 -6`}},{tag:`path`,attr:{d:`M11 6l.463 -.536a5 5 0 0 1 7.071 7.072l-.534 .464`}},{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`}}]})(e)}function uie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M11 6h9`}},{tag:`path`,attr:{d:`M11 12h9`}},{tag:`path`,attr:{d:`M12 18h8`}},{tag:`path`,attr:{d:`M4 16a2 2 0 1 1 4 0c0 .591 -.5 1 -1 1.5l-3 2.5h4`}},{tag:`path`,attr:{d:`M6 10v-6l-2 2`}}]})(e)}function die(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M9 6l11 0`}},{tag:`path`,attr:{d:`M9 12l11 0`}},{tag:`path`,attr:{d:`M9 18l11 0`}},{tag:`path`,attr:{d:`M5 6l0 .01`}},{tag:`path`,attr:{d:`M5 12l0 .01`}},{tag:`path`,attr:{d:`M5 18l0 .01`}}]})(e)}function fie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M12 3a9 9 0 1 0 9 9`}}]})(e)}function pie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{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`}},{tag:`path`,attr:{d:`M12 16m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`}},{tag:`path`,attr:{d:`M8 11v-5a4 4 0 0 1 8 0`}}]})(e)}function mie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{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`}},{tag:`path`,attr:{d:`M11 16a1 1 0 1 0 2 0a1 1 0 0 0 -2 0`}},{tag:`path`,attr:{d:`M8 11v-4a4 4 0 1 1 8 0v4`}}]})(e)}function hie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M9 11a3 3 0 1 0 6 0a3 3 0 0 0 -6 0`}},{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`}}]})(e)}function gie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{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`}}]})(e)}function _ie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M5 12l14 0`}}]})(e)}function vie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{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`}}]})(e)}function yie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{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`}},{tag:`path`,attr:{d:`M8 4l0 16`}},{tag:`path`,attr:{d:`M16 4l0 16`}},{tag:`path`,attr:{d:`M4 8l4 0`}},{tag:`path`,attr:{d:`M4 16l4 0`}},{tag:`path`,attr:{d:`M4 12l16 0`}},{tag:`path`,attr:{d:`M16 8l4 0`}},{tag:`path`,attr:{d:`M16 16l4 0`}}]})(e)}function bie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M13 20l7 -7`}},{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`}}]})(e)}function xie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M4 20h4l10.5 -10.5a2.828 2.828 0 1 0 -4 -4l-10.5 10.5v4`}},{tag:`path`,attr:{d:`M13.5 6.5l4 4`}}]})(e)}function Sie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{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`}},{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`}}]})(e)}function Cie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M7 4v16l13 -8z`}}]})(e)}function wie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M20 5v14l-12 -7z`}},{tag:`path`,attr:{d:`M4 5l0 14`}}]})(e)}function Tie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M4 5v14l12 -7z`}},{tag:`path`,attr:{d:`M20 5l0 14`}}]})(e)}function Eie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{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`}}]})(e)}function Die(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M3 5v14l8 -7z`}},{tag:`path`,attr:{d:`M14 5v14l8 -7z`}}]})(e)}function Oie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M21 5v14l-8 -7z`}},{tag:`path`,attr:{d:`M10 5v14l-8 -7z`}}]})(e)}function kie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M12 5l0 14`}},{tag:`path`,attr:{d:`M5 12l14 0`}}]})(e)}function Aie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{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`}},{tag:`path`,attr:{d:`M12 19l0 .01`}}]})(e)}function jie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4`}},{tag:`path`,attr:{d:`M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4`}}]})(e)}function Mie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{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`}},{tag:`path`,attr:{d:`M20 4v5h-5`}}]})(e)}function Nie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M19.95 11a8 8 0 1 0 -.5 4m.5 5v-5h-5`}}]})(e)}function Pie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{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`}},{tag:`path`,attr:{d:`M12 15l0 4`}},{tag:`path`,attr:{d:`M14 17l-4 0`}}]})(e)}function Fie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{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`}},{tag:`path`,attr:{d:`M12 9v-4`}},{tag:`path`,attr:{d:`M10 7l4 0`}}]})(e)}function Iie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{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`}},{tag:`path`,attr:{d:`M9 8v2`}},{tag:`path`,attr:{d:`M6 8v3`}},{tag:`path`,attr:{d:`M12 8v3`}},{tag:`path`,attr:{d:`M18 8v3`}},{tag:`path`,attr:{d:`M15 8v2`}}]})(e)}function Lie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M7 20l10 0`}},{tag:`path`,attr:{d:`M6 6l6 -1l6 1`}},{tag:`path`,attr:{d:`M12 3l0 17`}},{tag:`path`,attr:{d:`M9 12l-3 -6l-3 6a3 3 0 0 0 6 0`}},{tag:`path`,attr:{d:`M21 12l-3 -6l-3 6a3 3 0 0 0 6 0`}}]})(e)}function Rie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0`}},{tag:`path`,attr:{d:`M21 21l-6 -6`}}]})(e)}function zie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{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`}},{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`}},{tag:`path`,attr:{d:`M7 8l0 .01`}},{tag:`path`,attr:{d:`M7 16l0 .01`}}]})(e)}function Bie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{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`}},{tag:`path`,attr:{d:`M9 12a3 3 0 1 0 6 0a3 3 0 0 0 -6 0`}}]})(e)}function Vie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M4 6l7 0`}},{tag:`path`,attr:{d:`M4 12l7 0`}},{tag:`path`,attr:{d:`M4 18l9 0`}},{tag:`path`,attr:{d:`M15 9l3 -3l3 3`}},{tag:`path`,attr:{d:`M18 6l0 12`}}]})(e)}function Hie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M4 6l9 0`}},{tag:`path`,attr:{d:`M4 12l7 0`}},{tag:`path`,attr:{d:`M4 18l7 0`}},{tag:`path`,attr:{d:`M15 15l3 3l3 -3`}},{tag:`path`,attr:{d:`M18 6l0 12`}}]})(e)}function Uie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{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`}}]})(e)}function Wie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M12 12m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0`}},{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`}}]})(e)}function Gie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{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`}},{tag:`path`,attr:{d:`M3 10h18`}},{tag:`path`,attr:{d:`M10 3v18`}}]})(e)}function Kie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`}},{tag:`path`,attr:{d:`M12 12m-5 0a5 5 0 1 0 10 0a5 5 0 1 0 -10 0`}},{tag:`path`,attr:{d:`M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0`}}]})(e)}function qie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M4 7l16 0`}},{tag:`path`,attr:{d:`M10 11l0 6`}},{tag:`path`,attr:{d:`M14 11l0 6`}},{tag:`path`,attr:{d:`M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12`}},{tag:`path`,attr:{d:`M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3`}}]})(e)}function Jie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2`}},{tag:`path`,attr:{d:`M7 9l5 -5l5 5`}},{tag:`path`,attr:{d:`M12 4l0 12`}}]})(e)}function Yie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0`}},{tag:`path`,attr:{d:`M6 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2`}}]})(e)}function Xie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M9 7m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0`}},{tag:`path`,attr:{d:`M3 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2`}},{tag:`path`,attr:{d:`M16 3.13a4 4 0 0 1 0 7.75`}},{tag:`path`,attr:{d:`M21 21v-2a4 4 0 0 0 -3 -3.85`}}]})(e)}function Zie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M18 6l-12 12`}},{tag:`path`,attr:{d:`M6 6l12 12`}}]})(e)}function Qie(e){return W({attr:{viewBox:`0 0 16 16`,fill:`currentColor`},child:[{tag:`path`,attr:{d:`M9 9H4v1h5V9z`}},{tag:`path`,attr:{fillRule:`evenodd`,clipRule:`evenodd`,d:`M5 3l1-1h7l1 1v7l-1 1h-2v2l-1 1H3l-1-1V6l1-1h2V3zm1 2h4l1 1v4h2V3H6v2zm4 1H3v7h7V6z`}}]})(e)}function $ie(e){return W({attr:{viewBox:`0 0 16 16`,fill:`currentColor`},child:[{tag:`path`,attr:{d:`M9 9H4v1h5V9z`}},{tag:`path`,attr:{d:`M7 12V7H6v5h1z`}},{tag:`path`,attr:{fillRule:`evenodd`,clipRule:`evenodd`,d:`M5 3l1-1h7l1 1v7l-1 1h-2v2l-1 1H3l-1-1V6l1-1h2V3zm1 2h4l1 1v4h2V3H6v2zm4 1H3v7h7V6z`}}]})(e)}function eae(e){return W({attr:{viewBox:`0 0 1024 1024`},child:[{tag:`path`,attr:{d:`M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z`}},{tag:`path`,attr:{d:`M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z`}}]})(e)}function tae(e){return W({attr:{viewBox:`0 0 1024 1024`},child:[{tag:`path`,attr:{d:`M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z`}},{tag:`path`,attr:{d:`M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z`}}]})(e)}var nae=`data:image/svg+xml,%3csvg%20width='1em'%20height='1em'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M18%204H6C4.89543%204%204%204.89543%204%206V18C4%2019.1046%204.89543%2020%206%2020H18C19.1046%2020%2020%2019.1046%2020%2018V6C20%204.89543%2019.1046%204%2018%204Z'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e`,rae=`data:image/svg+xml,%3csvg%20width='1em'%20height='1em'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M4%2012H20M12%204V12M18%2020H6C4.89543%2020%204%2019.1046%204%2018V6C4%204.8954%204.89543%204%206%204H18C19.1046%204%2020%204.8954%2020%206V18C20%2019.1046%2019.1046%2020%2018%2020Z'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e`,iae=`data:image/svg+xml,%3csvg%20width='1em'%20height='1em'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M4%2012H20M12%2020V12M18%204H6C4.89543%204%204%204.89543%204%206V18C4%2019.1046%204.89543%2020%206%2020H18C19.1046%2020%2020%2019.1046%2020%2018V6C20%204.89543%2019.1046%204%2018%204Z'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e`,aae=`data:image/svg+xml,%3csvg%20fill='none'%20height='1em'%20viewBox='0%200%2024%2024'%20width='1em'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='m12%2020v-16m-8%208h8m8-6v12c0%201.1046-.8954%202-2%202h-12c-1.1046%200-2-.8954-2-2v-12c0-1.1046.8954-2%202-2h12c1.1046%200%202%20.8954%202%202z'%20stroke='currentColor'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-width='2'/%3e%3c/svg%3e`,oae=`data:image/svg+xml,%3csvg%20width='1em'%20height='1em'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M12%204L12%2020M20%2012H12M4%2018L4%206C4%204.89543%204.89543%204%206%204L18%204C19.1046%204%2020%204.89543%2020%206V18C20%2019.1046%2019.1046%2020%2018%2020H6C4.89543%2020%204%2019.1046%204%2018Z'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e`,sae=`data:image/svg+xml,%3csvg%20width='1em'%20height='1em'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6%204C4.89543%204%204%204.89543%204%206V18C4%2019.1046%204.89543%2020%206%2020H18C19.1046%2020%2020%2019.1046%2020%2018V6C20%204.89543%2019.1046%204%2018%204M6%204H18M6%204H12M18%204H12M4%2012H20M12%204V20'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e`,cae=({icon:e})=>{switch(e){case`add`:case`plus`:return(0,U.jsx)(kie,{});case`add above`:return(0,U.jsx)(Fie,{});case`add below`:return(0,U.jsx)(Pie,{});case`arrow down`:case`down`:return(0,U.jsx)(are,{});case`arrow left`:case`left`:return(0,U.jsx)(ore,{});case`arrow right`:case`right`:return(0,U.jsx)(sre,{});case`arrow up`:case`up`:return(0,U.jsx)(cre,{});case`bold`:return(0,U.jsx)(hre,{});case`book`:case`library`:return(0,U.jsx)(_re,{});case`camera`:return(0,U.jsx)(yre,{});case`close`:case`clear`:case`times`:return(0,U.jsx)(Zie,{});case`chart`:case`chart line`:return(0,U.jsx)(xre,{});case`chart bar`:return(0,U.jsx)(bre,{});case`chart pie`:return(0,U.jsx)(Sre,{});case`chat`:return(0,U.jsx)(gie,{});case`check`:case`checkmark`:return(0,U.jsx)(Cre,{});case`chevron up`:return(0,U.jsx)(Dre,{});case`chevron down`:return(0,U.jsx)(wre,{});case`chevron left`:return(0,U.jsx)(Tre,{});case`chevron right`:return(0,U.jsx)(Ere,{});case`chevron double left`:return(0,U.jsx)(Ore,{});case`chevron double right`:return(0,U.jsx)(kre,{});case`clock`:return(0,U.jsx)(Pre,{});case`clone`:case`copy`:case`duplicate`:return(0,U.jsx)(Ire,{});case`code`:return(0,U.jsx)(Fre,{});case`collapse`:return(0,U.jsx)(eae,{});case`collapse all`:return(0,U.jsx)(Qie,{});case`company`:return(0,U.jsx)(vre,{});case`compare`:return(0,U.jsx)(Lie,{});case`delete`:case`trash`:return(0,U.jsx)(qie,{});case`depth`:return(0,U.jsx)(Iie,{style:{transform:`rotate(-90deg)`}});case`download`:case`export`:return(0,U.jsx)(Vre,{});case`drag`:return(0,U.jsx)(tie,{});case`edit`:case`pencil`:case`rename`:return(0,U.jsx)(xie,{});case`electricity`:return(0,U.jsx)(gre,{});case`error`:return(0,U.jsx)(jre,{});case`exclamation`:return(0,U.jsx)(Ure,{});case`expand`:return(0,U.jsx)(tae,{});case`expand all`:return(0,U.jsx)($ie,{});case`external`:return(0,U.jsx)(Wre,{});case`fast forward`:return(0,U.jsx)(Die,{});case`fast backward`:return(0,U.jsx)(Oie,{});case`file`:return(0,U.jsx)(qre,{});case`filter`:return(0,U.jsx)(Yre,{});case`focus`:return(0,U.jsx)(Xre,{});case`folder`:return(0,U.jsx)(Qre,{});case`folder search`:return(0,U.jsx)(Zre,{});case`fork`:return(0,U.jsx)(eie,{});case`gauge`:return(0,U.jsx)($re,{});case`help`:return(0,U.jsx)(nie,{});case`hide`:return(0,U.jsx)(Gre,{});case`indent`:return(0,U.jsx)(Lre,{});case`info`:return(0,U.jsx)(rie,{});case`italic`:return(0,U.jsx)(iie,{});case`key`:return(0,U.jsx)(aie,{});case`laptop`:return(0,U.jsx)(zre,{});case`layout columns`:case`columns`:return(0,U.jsx)(oie,{});case`layout grid`:case`grid`:return(0,U.jsx)(ta,{src:sae});case`layout rows`:case`rows`:return(0,U.jsx)(sie,{});case`layout single`:case`square`:return(0,U.jsx)(ta,{src:nae});case`layout 3 split top`:return(0,U.jsx)(ta,{src:rae});case`layout 3 split bottom`:return(0,U.jsx)(ta,{src:iae});case`layout 3 split left`:return(0,U.jsx)(ta,{src:aae});case`layout 3 split right`:return(0,U.jsx)(ta,{src:oae});case`link`:return(0,U.jsx)(lie,{});case`list`:case`legend`:case`ul`:return(0,U.jsx)(die,{});case`list numbers`:case`ol`:return(0,U.jsx)(uie,{});case`location`:return(0,U.jsx)(hie,{});case`lock`:return(0,U.jsx)(mie,{});case`maximize`:return(0,U.jsx)(ure,{});case`menu`:return(0,U.jsx)(Bre,{});case`minimize`:return(0,U.jsx)(dre,{});case`minus`:return(0,U.jsx)(_ie,{});case`moon`:return(0,U.jsx)(vie,{});case`move`:return(0,U.jsx)(fre,{});case`note`:return(0,U.jsx)(bie,{});case`notification`:case`bell`:return(0,U.jsx)(mre,{});case`paste`:return(0,U.jsx)(Nre,{});case`pause`:return(0,U.jsx)(Sie,{});case`play`:return(0,U.jsx)(Cie,{});case`question`:return(0,U.jsx)(Aie,{});case`redo`:case`rotate`:case`rotate right`:return(0,U.jsx)(Mie,{});case`refresh`:case`sync`:return(0,U.jsx)(jie,{});case`save`:return(0,U.jsx)(Rre,{});case`scale`:return(0,U.jsx)(lre,{});case`search`:return(0,U.jsx)(Rie,{});case`server`:return(0,U.jsx)(zie,{});case`settings`:return(0,U.jsx)(Bie,{});case`show`:case`eye`:return(0,U.jsx)(Kre,{});case`sort`:case`sort descending`:case`sort down`:case`sort amount down`:return(0,U.jsx)(Hie,{});case`sort ascending`:case`sort up`:case`sort amount up`:return(0,U.jsx)(Vie,{});case`spinner`:return(0,U.jsx)(fie,{});case`split`:return(0,U.jsx)(pre,{});case`star`:return(0,U.jsx)(Uie,{});case`step backward`:return(0,U.jsx)(wie,{});case`step forward`:return(0,U.jsx)(Tie,{});case`stop`:return(0,U.jsx)(Eie,{});case`success`:return(0,U.jsx)(Are,{});case`sun`:return(0,U.jsx)(Wie,{});case`table`:return(0,U.jsx)(Gie,{});case`target`:return(0,U.jsx)(Kie,{});case`undo`:case`rotate left`:return(0,U.jsx)(Nie,{});case`unfilter`:return(0,U.jsx)(Jre,{});case`unlink`:return(0,U.jsx)(cie,{});case`unlock`:return(0,U.jsx)(pie,{});case`upload`:case`import`:return(0,U.jsx)(Jie,{});case`user`:return(0,U.jsx)(Yie,{});case`users`:case`group`:return(0,U.jsx)(Xie,{});case`video`:return(0,U.jsx)(yie,{});case`warning`:case`alert`:return(0,U.jsx)(ire,{});case`water`:case`droplet`:return(0,U.jsx)(Hre,{});case``:return null;default:return(0,U.jsx)(Mre,{})}},ca=({icon:e,onClick:t,clickable:n=!1,color:r,size:i,testId:a})=>{let o=(0,H.useContext)(na),s={color:r,fill:r,fontSize:i||`inherit`,width:i||`auto`,height:i||`auto`};return(0,U.jsx)(`div`,{className:Oi(ra.wrapper,(n||t)&&!o?ra.clickable:``),style:s,onClick:e=>t&&!o?t(e):void 0,"data-testid":a,children:(0,H.isValidElement)(e)?e:typeof e==`string`&&(e.includes(`.svg`)||e.includes(`image/svg`))?(0,U.jsx)(ta,{className:ra.customSvg,beforeInjection:e=>{i&&(e.setAttribute(`width`,String(i)),e.setAttribute(`height`,String(i)))},src:e}):typeof e==`string`&&(e.includes(`.png`)||e.includes(`image/png`))?(0,U.jsx)(`img`,{alt:`icon`,className:ra.customPng,src:e}):typeof e==`string`?(0,U.jsx)(cae,{icon:e}):null})},la={checkbox:`_checkbox_oo4mp_1`,noLabel:`_noLabel_oo4mp_17`,small:`_small_oo4mp_20`,checkmark:`_checkmark_oo4mp_43`,disabled:`_disabled_oo4mp_82`,noMargin:`_noMargin_oo4mp_96`,isInTable:`_isInTable_oo4mp_99`,helpIconEnabled:`_helpIconEnabled_oo4mp_102`},ua=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}()}(),da=typeof window<`u`&&typeof document<`u`&&window.document===document,fa=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`)()}(),lae=function(){return typeof requestAnimationFrame==`function`?requestAnimationFrame.bind(fa):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),uae=2;function dae(e,t){var n=!1,r=!1,i=0;function a(){n&&(n=!1,e()),r&&s()}function o(){lae(a)}function s(){var e=Date.now();if(n){if(e-i<uae)return;r=!0}else n=!0,r=!1,setTimeout(o,t);i=e}return s}var fae=20,pae=[`top`,`right`,`bottom`,`left`,`width`,`height`,`size`,`weight`],mae=typeof MutationObserver<`u`,hae=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=dae(this.refresh.bind(this),fae)}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(){!da||this.connected_||(document.addEventListener(`transitionend`,this.onTransitionEnd_),window.addEventListener(`resize`,this.refresh),mae?(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(){!da||!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;pae.some(function(e){return!!~n.indexOf(e)})&&this.refresh()},e.getInstance=function(){return this.instance_||=new e,this.instance_},e.instance_=null,e}(),pa=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},ma=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||fa},ha=va(0,0,0,0);function ga(e){return parseFloat(e)||0}function _a(e){return[...arguments].slice(1).reduce(function(t,n){var r=e[`border-`+n+`-width`];return t+ga(r)},0)}function gae(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]=ga(o)}return n}function _ae(e){var t=e.getBBox();return va(0,0,t.width,t.height)}function vae(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return ha;var r=ma(e).getComputedStyle(e),i=gae(r),a=i.left+i.right,o=i.top+i.bottom,s=ga(r.width),c=ga(r.height);if(r.boxSizing===`border-box`&&(Math.round(s+a)!==t&&(s-=_a(r,`left`,`right`)+a),Math.round(c+o)!==n&&(c-=_a(r,`top`,`bottom`)+o)),!bae(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 va(i.left,i.top,s,c)}var yae=function(){return typeof SVGGraphicsElement<`u`?function(e){return e instanceof ma(e).SVGGraphicsElement}:function(e){return e instanceof ma(e).SVGElement&&typeof e.getBBox==`function`}}();function bae(e){return e===ma(e).document.documentElement}function xae(e){return da?yae(e)?_ae(e):vae(e):ha}function Sae(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 pa(o,{x:t,y:n,width:r,height:i,top:n,right:t+r,bottom:i+n,left:t}),o}function va(e,t,n,r){return{x:e,y:t,width:n,height:r}}var Cae=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=va(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=xae(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}(),wae=function(){function e(e,t){var n=Sae(t);pa(this,{target:e,contentRect:n})}return e}(),Tae=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new ua,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 ma(e).Element))throw TypeError(`parameter 1 is not of type "Element".`);var t=this.observations_;t.has(e)||(t.set(e,new Cae(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 ma(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 wae(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}(),ya=typeof WeakMap<`u`?new WeakMap:new ua,ba=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 Tae(t,hae.getInstance(),this);ya.set(this,n)}return e}();[`observe`,`unobserve`,`disconnect`].forEach(function(e){ba.prototype[e]=function(){var t;return(t=ya.get(this))[e].apply(t,arguments)}});var xa=function(){return fa.ResizeObserver===void 0?ba:fa.ResizeObserver}(),Eae=!0;function Dae(e,t){if(!Eae){if(e)return;var n=`Warning: `+t;typeof console<`u`&&console.warn(n);try{throw Error(n)}catch{}}}function Oae(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 Sa(e,t,n){return t&&Oae(e.prototype,t),e}function Ca(){return Ca=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},Ca.apply(this,arguments)}function kae(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,wa(e,t)}function wa(e,t){return wa=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},wa(e,t)}function Aae(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 jae(e,t){if(e){if(typeof e==`string`)return Ta(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 Ta(e,t)}}function Ta(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 Ea(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=jae(e))||t){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 Da(e){var t=(0,H.useRef)(null);function n(n){!n||n===t.current||(t.current=n,e(n))}return n}function Mae(e){var t=(0,H.useRef)(e);return(0,H.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 Nae(){var e=(0,H.useRef)([]);return(0,H.useMemo)(function(){function t(){return e.current.length>0}function n(){for(var t=Ea(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 Oa=typeof window<`u`?H.useLayoutEffect:H.useEffect;function Pae(e,t){var n=(0,H.useRef)(e);return t?(n.current=e,n):(n.current=null,n)}var ka={top:0,left:0,right:1,bottom:1,width:1,height:1};function Fae(e){var t={},n=t.enabled,r=n===void 0?!0:n,i=t.preventDefault,a=i===void 0?!0:i,o=(0,H.useRef)(null),s=(0,H.useState)(ka),c=s[0],l=s[1];function u(){l(ka)}var d=c!==ka;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 Aa(e){return parseFloat(e.replace(`px`,``))}function ja(e,t,n){return e<t?t:e>n?n:e}function Ma(e){return e!=null}function Na(){var e=[...arguments];return function(t){for(var n=Ea(e),r;!(r=n()).done;){var i=r.value;i&&(typeof i==`function`?i(t):i.current=t)}}}function Iae(e,t){if(e!==void 0)return t||e.ResizeObserver}function Pa(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,Pa(e.parentElement,t))}function Fa(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()".
5
5
  - Make sure that you are actually rendering the `+e+` when the isOpen prop is set to true`}function Lae(e){var t=e.enabled,n=e.onChange,r=e.environment,i=e.ResizeObserverPolyfill,a=e.overflowContainer,o=e.triggerOption,s=Iae(r,i);(0,H.useEffect)(function(){},[s]);var c=(0,H.useRef)(null),l=!!o,u=Mae({scrollContainers:[],trigger:null,layer:null}),d=u[0],f=u[1],p=Nae(),m=p.hasEventSubscriptions,h=p.addEventSubscription,g=p.removeAllEventSubscriptions,_=(0,H.useCallback)(function(){var e=d(),t=e.layer,i=e.trigger,a=e.scrollContainers,o=a[0];if(!t)throw Error(Fa(`layer`));if(!i&&!l)throw Error(Fa(`trigger`));var s={top:0,left:0};if(o){var u=o.scrollLeft;s={top:o.scrollTop,left:u}}else{var f=r.scrollX;s={top:r.scrollY,left:f}}var p={left:0,top:0};if(o){var m=r.getComputedStyle(o),h=m.borderLeftWidth,g=m.borderTopWidth;p={left:Aa(h)||0,top:Aa(g)||0}}n({layer:t,trigger:i,scrollContainers:a,arrow:c.current},s,p)},[d,n,r,c,l]),v=(0,H.useCallback)(function(){var e=d(),t=e.trigger,n=e.layer,i=e.scrollContainers;if(!n)throw Error(Fa(`layer`));if(!t&&!l)throw Error(Fa(`trigger`));if(s){for(var a=!1,o=new s(function(){if(!a){a=!0;return}_()}),c=0,u=[t,n,document.body];c<u.length;c++){var f=u[c];f&&o.observe(f)}h(function(){for(var e=0,r=[t,n,document.body];e<r.length;e++){var i=r[e];i&&o.unobserve(i)}o.disconnect()})}for(var p=[r].concat(i),m=function(){var e=v.value;e.addEventListener(`scroll`,_),h(function(){return e.removeEventListener(`scroll`,_)})},g=Ea(p),v;!(v=g()).done;)m()},[d,h,_,r,s,l]),y=(0,H.useCallback)(function(e,n){t&&e&&e!==n&&(g(),v(),_())},[g,v,_,t]),b=Da((0,H.useCallback)(function(e){var t=d().layer;f(function(t){return Ca({},t,{layer:e})}),y(t,e)},[d,f,y])),x=(0,H.useCallback)(function(e){var t=Pa(e,r),n=t[0];if(n){var i=r.getComputedStyle(n).position;[`relative`,`absolute`,`fixed`].includes(i)||a||(n.style.position=`relative`)}return t},[r,a]),S=Da((0,H.useCallback)(function(e){var t=x(e),n=d().trigger;f(function(n){return Ca({},n,{trigger:e,scrollContainers:t})}),y(n,e)},[d,f,y,x])),C=o==null||o.getParent==null?void 0:o.getParent();return Oa(function(){C&&f(function(e){return Ca({},e,{scrollContainers:x(C)})})},[C,f,x]),Oa(function(){return t&&(m()||v()),function(){m()&&g()}},[t,m,v,g]),Oa(function(){t&&_()}),{triggerRef:S,layerRef:b,arrowRef:c,closestScrollContainer:d().scrollContainers[0]||null}}var Ia=(0,H.createContext)({});function Rae(e){var t=e.children,n=e.registrations,r=(0,H.useCallback)(function(e){return n.current.add(e),function(){return n.current.delete(e)}},[n]);return(0,H.createElement)(Ia.Provider,{value:r},t)}function zae(e,t){for(var n=Ea(e),r;!(r=n()).done;){var i=r.value.shouldCloseWhenClickedOutside;if(!i(t))return!1}return!0}function Bae(e){var t=e.isOpen,n=e.onOutsideClick,r=e.onParentClose,i=(0,H.useRef)(null),a=(0,H.useRef)(null),o=(0,H.useRef)(new Set),s=(0,H.useContext)(Ia),c=(0,H.useCallback)(function(e){var t=e.target,n=i.current&&i.current.contains(t),r=a.current&&a.current.contains(t),s=zae(o.current,e);return r&&s&&o.current.forEach(function(e){var t=e.closeChild;return t()}),!n&&!r&&s},[i,a,o]);return(0,H.useEffect)(function(){if(typeof s==`function`)return s({shouldCloseWhenClickedOutside:c,closeChild:function(){r&&r()}})},[s,c,r,o]),(0,H.useEffect)(function(){if(!t||!n||typeof s==`function`)return;function e(e){c(e)&&n()}return document.addEventListener(`click`,e,!0),function(){return document.removeEventListener(`click`,e,!0)}},[t,n,c,s]),(0,H.useEffect)(function(){t||o.current.forEach(function(e){var t=e.closeChild;return t()})},[t]),{closeOnOutsideClickRefs:{trigger:i,layer:a},registrations:o}}var Vae=[`bottom-start`,`bottom-end`,`bottom-center`,`top-start`,`top-center`,`top-end`,`left-end`,`left-center`,`left-start`,`right-end`,`right-center`,`right-start`,`center`],Hae={top:`bottom`,left:`right`,bottom:`top`,right:`left`,center:`center`},Uae=function(){function e(e,t,n,r,i,a,o,s,c){this.prop=void 0,this.opposite=void 0,this.isHorizontal=void 0,this.sizeProp=void 0,this.oppositeSizeProp=void 0,this.cssProp=void 0,this.oppositeCssProp=void 0,this.isCenter=void 0,this.isPush=void 0,this.prop=e,this.opposite=t,this.isHorizontal=n,this.sizeProp=r,this.oppositeSizeProp=i,this.cssProp=a,this.oppositeCssProp=o,this.isCenter=s,this.isPush=c}var t=e.prototype;return t.factor=function(e){return e*(this.isPush?1:-1)},t.isOppositeDirection=function(e){return this.isHorizontal!==e.isHorizontal},e}();function La(e,t){t===void 0&&(t=!0);var n=[`left`,`right`].includes(e);return new Uae(e,t?La(Hae[e],!1):null,n,n?`width`:`height`,n?`height`:`width`,n?`left`:`top`,n?`top`:`left`,e===`center`,![`right`,`bottom`].includes(e))}var Ra={top:La(`top`),bottom:La(`bottom`),left:La(`left`),right:La(`right`)},za=Ca({},Ra,{center:La(`center`)}),Ba=[`top`,`left`,`bottom`,`right`],Va=function(){function e(e){return this.top=void 0,this.left=void 0,this.right=void 0,this.bottom=void 0,Object.assign(this,e)}return e.mergeSmallestSides=function(t){var n=t[0],r=t.slice(1);if(!n)throw Error(`Please provide at least 1 bounds objects in order to merge`);for(var i=Object.fromEntries(Ba.map(function(e){return[e,n[e]]})),a=Ea(r),o;!(o=a()).done;)for(var s=o.value,c=Ea(Ba),l;!(l=c()).done;){var u=l.value;i[u]=Math.min(i[u],s[u])}return new e(i)},Sa(e,[{key:`allSidesArePositive`,get:function(){var e=this;return Ba.every(function(t){return e[t]>=0})}},{key:`negativeSides`,get:function(){var e=this;return Object.fromEntries(Ba.filter(function(t){return e[t]<0}).map(function(t){return[t,e[t]]}))}}]),e}();function Ha(){return[...arguments].reduce(function(e,t){return e+(t?Aa(t):0)},0)}function Ua(e){return{top:e.top,left:e.left,right:e.right,bottom:e.bottom,width:e.width,height:e.height}}var Wae={top:0,left:0,right:0,bottom:0,width:0,height:0},Wa=function(){e.create=function(t){return new e(t)},e.fromElement=function(t,n){n===void 0&&(n={});var r=n,i=r.withTransform,a=i===void 0?!0:i,o=r.environment,s=o===void 0?window:o,c=r.withScrollbars,l=c===void 0?!0:c,u=new e(Ua(t.getBoundingClientRect()));if(!a){var d=s.getComputedStyle(t),f=d.width,p=d.height,m=d.boxSizing,h=d.borderLeft,g=d.borderRight,_=d.borderTop,v=d.borderBottom,y=d.paddingLeft,b=d.paddingRight,x=d.paddingTop,S=d.paddingBottom,C=m===`border-box`?Aa(f):Ha(f,h,g,y,b),w=m===`border-box`?Aa(p):Ha(p,_,v,x,S);u=new e(Ca({},u,{width:C,height:w}))}if(!l){var T=u.width-t.clientWidth,E=u.height-t.clientHeight;return u.substract({right:T,bottom:E})}return u},e.empty=function(){return new e},e.fromWindow=function(t){var n=t?.document.scrollingElement??t?.document.documentElement??{},r=n.clientWidth,i=r===void 0?0:r,a=n.clientHeight,o=a===void 0?0:a;return new e({width:i,height:o,right:i,bottom:o})};function e(e){return e===void 0&&(e={}),this.top=void 0,this.left=void 0,this.right=void 0,this.bottom=void 0,this.width=void 0,this.height=void 0,Object.assign(this,Wae,e)}var t=e.prototype;return t.toObject=function(){return Ua(this)},t.merge=function(t){var n=this.toObject();return new e(Ca({},n,typeof t==`function`?t(n):t))},t.substract=function(t){for(var n=this.toObject(),r=Object.entries(t),i=0,a=r;i<a.length;i++){var o=a[i],s=o[0],c=o[1];if(s in Ra){var l=Ra[s];n[s]+=l.factor(c),n[l.isHorizontal?`width`:`height`]-=c}else n[s]-=c||0}return new e(n)},t.offsetsTo=function(e){return new Va({top:e.top-this.top,bottom:this.bottom-e.bottom,left:e.left-this.left,right:this.right-e.right})},t.mapSides=function(t){for(var n=this.toObject(),r=Object.values(Ra),i=0,a=r;i<a.length;i++){var o=a[i];n[o.prop]=t(o,n[o.prop])}return new e(n)},Sa(e,[{key:`surface`,get:function(){return this.width*this.height}}]),e}(),Ga=function(){function e(e,t,n,r,i){this.primary=void 0,this.secondary=void 0,this.offsets=void 0,this.subjectsBounds=void 0,this._cachedLayerBounds=null,this._cachedContainerOffsets=null,this.primary=e,this.secondary=t,this.offsets=i,this.setSubjectsBounds(n,r)}var t=e.prototype;return t.setSubjectsBounds=function(e,t){if(!t){this.subjectsBounds=e;return}var n=typeof t==`function`?t(this.primary.prop):t;this.subjectsBounds=e.merge({layer:Ca({},e.layer,n)})},t.getLayerBounds=function(e){if(e===void 0&&(e=0),this._cachedLayerBounds&&e===0)return this._cachedLayerBounds;var t=this.primary,n=this.secondary,r=this.subjectsBounds,i=r.trigger,a=r.layer,o=r.arrow,s=t.isHorizontal,c=t.oppositeCssProp,l=t.oppositeSizeProp,u=t.prop,d=t.opposite,f=Wa.empty();f[d.prop]=i[u]-t.factor(this.offsets.trigger),f[u]=f[d.prop]-t.factor(a[t.sizeProp]);var p=this.offsets.arrow*2,m=i[c]-(a[l]-o[l])+p,h=i[c]+(i[l]-o[l])-p;if(n.isPush||(m+=a[l],h+=a[l]),n.isCenter){var g=(s?Ra.top:Ra.left).prop,_=(s?Ra.bottom:Ra.right).prop;f[g]=ja(i[g]+i[l]/2-a[l]/2+e,m,h),f[_]=f[g]+a[l]}else{var v=n,y=i[v.prop],b=y<m?m-y:y>h?h-y:0;f[v.prop]=ja(y+e+b,m,h),f[v.opposite.prop]=f[v.prop]+n.factor(a[l])}f.width=f.right-f.left,f.height=f.bottom-f.top;var x=Wa.create(f);return e===0&&(this._cachedLayerBounds=x),x},t.getLayerCollisionBounds=function(){var e=this.offsets.container;return this.getLayerBounds().mapSides(function(t,n){return n-=t.factor(e)}).merge(function(t){var n=t.width,r=t.height;return{width:n+e*2,height:r+e*2}})},t.getContainerOffsets=function(e){if(this._cachedContainerOffsets&&!e)return this._cachedContainerOffsets;var t=this.subjectsBounds.merge({layer:e||this.getLayerCollisionBounds()}),n=Va.mergeSmallestSides(t.layerOffsetsToScrollContainers);return e||(this._cachedContainerOffsets=n),n},Sa(e,[{key:`type`,get:function(){return this.primary.prop+`-`+(this.secondary.prop===`center`?`center`:[`bottom`,`right`].includes(this.secondary.prop)?`end`:`start`)}},{key:`triggerIsBigger`,get:function(){var e=this.secondary.isHorizontal,t=this.subjectsBounds,n=t.triggerHasBiggerWidth,r=t.triggerHasBiggerHeight;return e&&n||!e&&r}},{key:`fitsContainer`,get:function(){return this.getContainerOffsets().allSidesArePositive}},{key:`visibleSurface`,get:function(){var e=this.getLayerBounds(),t=this.getContainerOffsets(e).negativeSides;for(var n in t)t[n]=-t[n];return e.substract(t).surface}},{key:`secondaryOffsetSide`,get:function(){var e=this,t=this.getContainerOffsets();return(Object.entries(t.negativeSides).map(function(e){var t=e[0],n=e[1];return[Ra[t],n]}).filter(function(t){var n=t[0];return e.primary.isOppositeDirection(n)}).sort(function(e,t){var n=e[1];return t[1]-n})?.[0]??[])[0]||null}}]),e}(),Ka=function(e){kae(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.getLayerBounds=function(){var e=this.subjectsBounds,t=e.trigger,n=e.layer,r=Wa.empty();return r.top=t.top+t.height/2-n.height/2,r.bottom=r.top+n.height,r.left=t.left+t.width/2-n.width/2,r.right=r.left+n.width,r.width=r.right-r.left,r.height=r.bottom-r.top,r},t}(Ga);function Gae(e,t,n){var r=e.layer,i=e.trigger,a=e.arrow,o=t.primary.oppositeSizeProp,s=t.primary.isHorizontal?[`top`,`bottom`]:[`left`,`right`],c=s[0],l=s[1],u=r[c]+r[o]/2-i[c]-a[o]/2-n,d=r[l]-r[o]/2-i[l]+a[o]/2+n;return(u<0?-u:0)+(d>0?-d:0)}var qa={position:`absolute`,willChange:`top, left`,left:null,right:null,top:null,bottom:null};function Kae(e,t,n){var r;if(t.primary.isCenter)return qa;var i=e.layer,a=e.trigger,o=e.arrow,s=t.primary.oppositeSizeProp,c=a[s]>i[s],l=n+o[s]/2,u=i[s]-o[s]/2-n,d=Gae(e,t,n),f=t.primary.prop,p=t.primary.oppositeCssProp,m=c?i[s]/2+d:a[p]+a[s]/2-i[p];return Ca({},qa,(r={},r[f]=`100%`,r[p]=ja(m,l,u),r))}var Ja=function(){function e(e,t,n){this.placements=void 0,this.config=void 0,this.subjectsBounds=void 0,this.placements=e,this.config=t,this.subjectsBounds=n}e.getSidesFromPlacementType=function(e){var t=e.split(`-`),n=t[0],r=t[1],i=Ra[n];return[i,r===`center`?za.center:i.isHorizontal?r===`start`?za.top:za.bottom:r===`start`?za.left:za.right]},e.create=function(t,n){var r={arrow:n.arrowOffset,container:n.containerOffset,trigger:n.triggerOffset};function i(i){i===void 0&&(i=n.placement);var a=e.getSidesFromPlacementType(i),o=a[0],s=a[1],c=Ra[o.isHorizontal?n.preferY:n.preferX],l=!o.isHorizontal&&t.triggerHasBiggerWidth||o.isHorizontal&&t.triggerHasBiggerHeight;function u(e,i){return new Ga(e,i,t,n.layerDimensions,r)}var d=[];return d[0]=u(o,s),d[1]=u(o,s.isCenter?c:za.center),d[2]=u(o,za[(s.opposite.isCenter?c.opposite:s.opposite).prop]),d[3]=u(c,l?o:za[o.opposite.prop]),d[4]=u(c,za.center),d[5]=u(c,l?za[o.opposite.prop]:o),d[6]=u(Ra[c.opposite.prop],l?o:za[o.opposite.prop]),d[7]=u(Ra[c.opposite.prop],za.center),d[8]=u(Ra[c.opposite.prop],l?za[o.opposite.prop]:o),d[9]=u(Ra[o.opposite.prop],s),d[10]=u(Ra[o.opposite.prop],s.isCenter?c:za.center),d[11]=u(Ra[o.opposite.prop],za[(s.opposite.isCenter?c.opposite:s.opposite).prop]),d=d.filter(function(e){return e.type===n.placement||n.possiblePlacements.includes(e.type)}),d}return n.placement===`center`?new e([new Ka(za.center,za.center,t,n.layerDimensions,r)].concat(i(n.preferY+`-`+n.preferX)),n,t):new e(i(),n,t)};var t=e.prototype;return t.filterPlacementsBySide=function(e){return this.placements.filter(function(t){return t.primary===e})},t.findFirstPlacementThatFits=function(){return this.placements.find(function(e){return e.fitsContainer})},t.placementWithBiggestVisibleSurface=function(){return this.placements.map(function(e){return{placement:e,surface:e.visibleSurface}}).sort(function(e,t){return t.surface-e.surface})[0].placement},t.findSuitablePlacement=function(){return this.config.auto?this.findFirstPlacementThatFits()||this.placementWithBiggestVisibleSurface():this.placements[0]},t.getSecondaryOffset=function(e){var t=this.config,n=t.auto,r=t.snap;if(!n||r||e instanceof Ka)return 0;var i=this.filterPlacementsBySide(e.primary);if(i.indexOf(e)===0&&e.fitsContainer)return 0;var a=i.find(function(e){return!e.fitsContainer});if(!a)return 0;var o=a.secondaryOffsetSide;if(!o)return 0;var s=e.getContainerOffsets(),c=e.secondary,l=e.triggerIsBigger||a===e?o.isPush?-1:1:c===za.left||[za.top,za.center].includes(c)&&o.isPush?-1:1;return s[o.prop]*l},t.getStyles=function(e,t,n,r){var i={willChange:`top, left, width, height`};return{arrow:Kae(this.subjectsBounds.merge({layer:e}),t,this.config.arrowOffset),layer:this.config.overflowContainer?Ca({},i,{position:`fixed`,top:e.top,left:e.left}):Ca({},i,{position:`absolute`,top:e.top-this.subjectsBounds.parent.top+n.top-r.top,left:e.left-this.subjectsBounds.parent.left+n.left-r.left})}},t.getHasDisappeared=function(e){var t=this.config.overflowContainer?this.subjectsBounds.trigger:e,n=Va.mergeSmallestSides(this.subjectsBounds.offsetsToScrollContainers(t,!0));return Object.entries(n.negativeSides).some(function(e){var n=e[0];return e[1]<=-t[Ra[n].sizeProp]})?`full`:n.allSidesArePositive?null:`partial`},t.result=function(e,t){var n=this.findSuitablePlacement(),r=this.getSecondaryOffset(n),i=n.getLayerBounds(r);return{styles:this.getStyles(i,n,e,t),layerSide:n.primary.prop,placement:n,layerBounds:i,hasDisappeared:this.getHasDisappeared(i)}},e}(),qae=function(){function e(e,t){this.overflowContainer=void 0,this.trigger=void 0,this.layer=void 0,this.arrow=void 0,this.parent=void 0,this.window=void 0,this.scrollContainers=void 0,this.overflowContainer=t,Object.assign(this,e)}e.create=function(t,n,r,i,a,o,s,c){var l=Wa.fromWindow(t);return new e({layer:Wa.fromElement(n,{environment:t,withTransform:!1}),trigger:c?Wa.create(Ua(c())):Wa.fromElement(r),arrow:a?Wa.fromElement(a):Wa.empty(),parent:i?Wa.fromElement(i):l,window:l,scrollContainers:[l].concat(o.map(function(e){return Wa.fromElement(e,{withScrollbars:!1})}))},s)};var t=e.prototype;return t.merge=function(t){return new e(Ca({},this,t),this.overflowContainer)},t.offsetsToScrollContainers=function(e,t){return t===void 0&&(t=!1),(this.overflowContainer&&!t?[this.window]:this.scrollContainers).map(function(t){return t.offsetsTo(e)})},Sa(e,[{key:`layerOffsetsToScrollContainers`,get:function(){return this.offsetsToScrollContainers(this.layer)}},{key:`triggerHasBiggerWidth`,get:function(){return this.trigger.width>this.layer.width}},{key:`triggerHasBiggerHeight`,get:function(){return this.trigger.height>this.layer.height}}]),e}(),Ya=null,Xa={auto:!1,arrowOffset:0,containerOffset:10,triggerOffset:0,overflowContainer:!0,placement:`top-center`,possiblePlacements:Vae,preferX:`right`,preferY:`bottom`,snap:!1,container:void 0};function Za(e){var t=e.isOpen,n=t===void 0?!1:t,r=e.overflowContainer,i=r===void 0?Xa.overflowContainer:r,a=e.environment,o=a===void 0?typeof window<`u`?window:void 0:a,s=e.ResizeObserver,c=e.placement,l=c===void 0?Xa.placement:c,u=e.possiblePlacements,d=u===void 0?Xa.possiblePlacements:u,f=e.preferX,p=f===void 0?Xa.preferX:f,m=e.preferY,h=m===void 0?Xa.preferY:m,g=e.auto,_=g===void 0?Xa.auto:g,v=e.snap,y=v===void 0?Xa.snap:v,b=e.triggerOffset,x=b===void 0?Xa.triggerOffset:b,S=e.containerOffset,C=S===void 0?Xa.containerOffset:S,w=e.arrowOffset,T=w===void 0?Xa.arrowOffset:w,E=e.container,D=E===void 0?Xa.container:E,O=e.layerDimensions,k=O===void 0?null:O,A=e.onDisappear,j=e.onOutsideClick,M=e.onParentClose,N=e.trigger,P=(0,H.useState)(function(){return{layerSide:l===`center`?`center`:Ja.getSidesFromPlacementType(l)[0].prop,styles:{layer:{position:i?`fixed`:`absolute`,top:0,left:0},arrow:{position:`absolute`,top:0,left:0}}}}),F=P[0],I=P[1],L=(0,H.useRef)(null),ee=Pae(F,n),te=(0,H.useRef)({cancelled:!1});(0,H.useEffect)(function(){return function(){te.current.cancelled=!0}},[]);var R=Lae({ResizeObserverPolyfill:s,environment:o,enabled:n,overflowContainer:i,onChange:(0,H.useCallback)(function(e,t,n){var r=e.arrow,a=e.layer,s=e.scrollContainers,c=e.trigger,u=s[0],f=qae.create(o,a,c,u,r,s,i,N?.getBounds),m={placement:l,possiblePlacements:d,auto:_,layerDimensions:k,arrowOffset:T,containerOffset:C,triggerOffset:x,preferX:p,preferY:h,snap:y,overflowContainer:i},g=Ja.create(f,m).result(t,n),v=g.hasDisappeared,b={layerSide:g.layerSide,styles:g.styles};if(!ee.current||Jae(ee.current,b)){ee.current=b,te.current.cancelled=!0;var S={cancelled:!1};te.current=S,Promise.resolve().then(function(){S.cancelled||I(b)})}Ma(v)&&Ma(A)&&A(v)},[T,_,C,o,k,A,i,l,d,p,h,y,x,ee,N]),triggerOption:N}),ne=R.triggerRef,re=R.layerRef,ie=R.arrowRef,ae=R.closestScrollContainer,oe=Bae({isOpen:n,onOutsideClick:j,onParentClose:M}),z=oe.closeOnOutsideClickRefs,se=oe.registrations;return{triggerProps:N?{}:{ref:Na(ne,z.trigger,L)},layerProps:{ref:Na(re,z.layer),style:F.styles.layer},arrowProps:{ref:ie,style:F.styles.arrow,layerSide:F.layerSide},layerSide:F.layerSide,triggerBounds:n?N?N.getBounds():L.current?.getBoundingClientRect():null,renderLayer:function(e){return typeof document<`u`?(0,ii.createPortal)((0,H.createElement)(Rae,{registrations:se,children:e}),i||!ae?Xae(D):ae):null}}}function Jae(e,t){if(e.layerSide!==t.layerSide)return!0;for(var n=[`position`,`top`,`left`,`right`,`bottom`],r=0,i=n;r<i.length;r++){var a=i[r];if(e.styles.layer[a]!==t.styles.layer[a]||e.styles.arrow[a]!==t.styles.arrow[a])return!0}return!1}var Yae=`layers`;function Xae(e){var t;if(typeof e==`function`){if(t=e(),!t||!(t instanceof HTMLElement))throw Error(`react-laag: You've passed a function to the 'container' prop, but it returned no valid HTMLElement`)}else if(e instanceof HTMLElement)t=e;else if(typeof e==`string`){if(t=document.getElementById(e),!t)throw Error(`react-laag: You've passed element with id '`+e+`' to the 'container' prop, but it returned no valid HTMLElement`)}else if(Ya instanceof HTMLElement)return Ya;else t=document.getElementById(Yae),t||(t=document.createElement(`div`),t.id=Yae,t.style.cssText=`
@@ -1237,7 +1237,7 @@ You should wrap it with \`css\` like this:
1237
1237
 
1238
1238
  css\``+u+"`");break}var f=n;if(t==null)return f;var p=t[f];return p===void 0?f:p}function w(e,t,n){var r=``;if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=C(e,t,n[i])+`;`;else for(var a in n){var o=n[a];if(typeof o!=`object`){var c=o;t!=null&&t[c]!==void 0?r+=a+`{`+t[c]+`}`:p(c)&&(r+=m(a)+`:`+h(a,c)+`;`)}else{if(a===`NO_COMPONENT_SELECTOR`&&s)throw Error(S);if(Array.isArray(o)&&typeof o[0]==`string`&&(t==null||t[o[0]]===void 0))for(var u=0;u<o.length;u++)p(o[u])&&(r+=m(a)+`:`+h(a,o[u])+`;`);else{var d=C(e,t,o);switch(a){case`animation`:case`animationName`:r+=m(a)+`:`+d+`;`;break;default:a===`undefined`&&console.error(l),r+=a+`{`+d+`}`}}}}return r}var T=/label:\s*([^\s;{]+)\s*(;|$)/g,E;function D(e,t,n){if(e.length===1&&typeof e[0]==`object`&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,a=``;E=void 0;var o=e[0];if(o==null||o.raw===void 0)r=!1,a+=C(n,t,o);else{var s=o;s[0]===void 0&&console.error(c),a+=s[0]}for(var l=1;l<e.length;l++)if(a+=C(n,t,e[l]),r){var u=o;u[l]===void 0&&console.error(c),a+=u[l]}T.lastIndex=0;for(var d=``,f;(f=T.exec(a))!==null;)d+=`-`+f[1];return{name:i.default(a)+d,styles:a,next:E,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}}return i1.serializeStyles=D,i1}function f1(e){"@babel/helpers - typeof";return f1=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},f1(e)}function _Pe(e,t){if(f1(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(f1(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function vPe(e){var t=_Pe(e,`string`);return f1(t)==`symbol`?t:t+``}var p1={exports:{}},m1;function yPe(){return m1?p1.exports:(m1=1,(function(e){function t(e){return e&&e.__esModule?e:{default:e}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(p1),p1.exports)}var h1={},g1;function bPe(){return g1?h1:(g1=1,(function(e){Object.defineProperty(e,`__esModule`,{value:!0});var t=dPe(),n=gPe(),r=fPe();function i(e){return e&&e.__esModule?e:{default:e}}var a=i(t);function o(e,t){if(e.inserted[t.name]===void 0)return e.insert(``,t,e.sheet,!0)}function s(e,t,n){var i=[],a=r.getRegisteredStyles(e,i,n);return i.length<2?n:a+t(i)}var c=function(e){var t=a.default(e);t.sheet.speedy=function(e){if(this.ctr!==0)throw Error(`speedy must be changed before any rules are inserted`);this.isSpeedy=e},t.compat=!0;var i=function(){var e=[...arguments],i=n.serializeStyles(e,t.registered,void 0);return r.insertStyles(t,i,!1),t.key+`-`+i.name};return{css:i,cx:function(){var e=[...arguments];return s(t.registered,i,l(e))},injectGlobal:function(){var e=[...arguments];o(t,n.serializeStyles(e,t.registered))},keyframes:function(){var e=[...arguments],r=n.serializeStyles(e,t.registered),i=`animation-`+r.name;return o(t,{name:r.name,styles:`@keyframes `+i+`{`+r.styles+`}`}),i},hydrate:function(e){e.forEach(function(e){t.inserted[e]=!0})},flush:function(){t.registered={},t.inserted={},t.sheet.flush()},sheet:t.sheet,cache:t,getRegisteredStyles:r.getRegisteredStyles.bind(null,t.registered),merge:s.bind(null,t.registered,i)}},l=function e(t){for(var n=``,r=0;r<t.length;r++){var i=t[r];if(i!=null){var a=void 0;switch(typeof i){case`boolean`:break;case`object`:if(Array.isArray(i))a=e(i);else for(var o in a=``,i)i[o]&&o&&(a&&(a+=` `),a+=o);break;default:a=i}a&&(n&&(n+=` `),n+=a)}}return n};e.default=c})(h1),h1)}var _1={richTextToolbar:`_richTextToolbar_1gbkk_1`,richTextToolbarContainer:`_richTextToolbarContainer_1gbkk_5`},v1=(e=>(e.BOLD=`bold`,e.ITALIC=`italic`,e.CODE=`code`,e.UL=`ul`,e.OL=`ol`,e))(v1||{}),xPe=({disabled:e=!1,toolbarComponent:t=null})=>{let{focus:n,toggleBold:r,toggleBulletList:i,toggleCode:a,toggleItalic:o,toggleOrderedList:s}=GNe(),c=WNe(),l=[{icon:v1.BOLD,onClick:r,active:c.bold()},{icon:v1.ITALIC,onClick:o,active:c.italic()},{icon:v1.CODE,onClick:a,active:c.code()},{icon:v1.UL,onClick:i,active:c.bulletList()},{icon:v1.OL,onClick:s,active:c.orderedList()}];return(0,U.jsxs)(`div`,{className:_1.richTextToolbarContainer,children:[(0,U.jsx)(`div`,{className:_1.richTextToolbar,children:l.map((t,r)=>(0,U.jsx)(po,{small:!0,round:!0,basic:!0,icon:t.icon,colored:ji.MUTED,onClick:()=>{t.onClick(),n()},active:t.active,disabled:e},r))}),t]})},SPe={richTextInput:`_richTextInput_1fb4l_77`};(0,H.forwardRef)(({placeholder:e,onChange:t,value:n,disabled:r,toolbarComponent:i},a)=>{let o=(0,H.useContext)(na),s=r||o,{manager:c,state:l,setState:u,getContext:d}=tPe({extensions:()=>[new pX({}),new xZ({}),new hX,new oZ,new CQ({}),new SZ,new EQ({placeholder:e})],content:n,selection:`start`,stringHandler:`markdown`});return(0,H.useImperativeHandle)(a,()=>d(),[d]),(0,U.jsx)(`div`,{className:SPe.richTextInput,children:(0,U.jsxs)(rPe,{manager:c,state:l,placeholder:e,onChange:({helpers:e,state:n})=>{let r=e.getMarkdown(n);t&&t(r),u(n)},editable:!s,children:[(0,U.jsx)(xPe,{disabled:s,toolbarComponent:i}),(0,U.jsx)(R$,{})]})})});var y1,b1;function CPe(){if(b1)return y1;b1=1;var e=typeof Element<`u`,t=typeof Map==`function`,n=typeof Set==`function`,r=typeof ArrayBuffer==`function`&&!!ArrayBuffer.isView;function i(a,o){if(a===o)return!0;if(a&&o&&typeof a==`object`&&typeof o==`object`){if(a.constructor!==o.constructor)return!1;var s,c,l;if(Array.isArray(a)){if(s=a.length,s!=o.length)return!1;for(c=s;c--!==0;)if(!i(a[c],o[c]))return!1;return!0}var u;if(t&&a instanceof Map&&o instanceof Map){if(a.size!==o.size)return!1;for(u=a.entries();!(c=u.next()).done;)if(!o.has(c.value[0]))return!1;for(u=a.entries();!(c=u.next()).done;)if(!i(c.value[1],o.get(c.value[0])))return!1;return!0}if(n&&a instanceof Set&&o instanceof Set){if(a.size!==o.size)return!1;for(u=a.entries();!(c=u.next()).done;)if(!o.has(c.value[0]))return!1;return!0}if(r&&ArrayBuffer.isView(a)&&ArrayBuffer.isView(o)){if(s=a.length,s!=o.length)return!1;for(c=s;c--!==0;)if(a[c]!==o[c])return!1;return!0}if(a.constructor===RegExp)return a.source===o.source&&a.flags===o.flags;if(a.valueOf!==Object.prototype.valueOf&&typeof a.valueOf==`function`&&typeof o.valueOf==`function`)return a.valueOf()===o.valueOf();if(a.toString!==Object.prototype.toString&&typeof a.toString==`function`&&typeof o.toString==`function`)return a.toString()===o.toString();if(l=Object.keys(a),s=l.length,s!==Object.keys(o).length)return!1;for(c=s;c--!==0;)if(!Object.prototype.hasOwnProperty.call(o,l[c]))return!1;if(e&&a instanceof Element)return!1;for(c=s;c--!==0;)if(!((l[c]===`_owner`||l[c]===`__v`||l[c]===`__o`)&&a.$$typeof)&&!i(a[l[c]],o[l[c]]))return!1;return!0}return a!==a&&o!==o}return y1=function(e,t){try{return i(e,t)}catch(e){if((e.message||``).match(/stack|recursion/i))return console.warn(`react-fast-compare cannot handle circular refs`),!1;throw e}},y1}var x1=Ci(CPe()),S1={sidebar:`_sidebar_1oy1z_82`,inner:`_inner_1oy1z_93`,title:`_title_1oy1z_103`,subtitle:`_subtitle_1oy1z_104`,label:`_label_1oy1z_105`,collapsed:`_collapsed_1oy1z_109`,list:`_list_1oy1z_134`,item:`_item_1oy1z_140`,experimental:`_experimental_1oy1z_155`,active:`_active_1oy1z_159`,icon:`_icon_1oy1z_163`},wPe=(0,H.memo)(({isOpen:e,label:t,icon:n,invalid:r})=>(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(oo,{text:t,enabled:!e,placement:`right-center`,possiblePlacements:[`right-center`],fontSize:16,padding:`var(--padding-sm)`,display:`block`,children:(0,U.jsx)(`span`,{className:S1.icon,children:(0,U.jsx)(So,{small:!0,title:r?`!`:void 0,margin:4,children:(0,U.jsx)(ca,{icon:n})})})}),(0,U.jsx)(`span`,{className:S1.label,children:t})]}),(e,t)=>x1(e,t)),TPe=({isOpen:e,items:t,sectionIndex:n,onClick:r,testId:i})=>(0,U.jsx)(`div`,{className:S1.list,children:t.map((t,a)=>{let o=`${n}_${a}`;return(0,U.jsx)(`a`,{href:t.value,className:Oi(S1.item,t.isActive?S1.active:``,t.isExperimental?S1.experimental:``),onClick:e=>r(e,t.value,t.label,t.onClick),"data-testid":i,children:(0,U.jsx)(wPe,{label:t.label,icon:t.icon,invalid:t.invalid,isOpen:e},o)},o)})}),EPe=({isOpen:e,sections:t,onClick:n})=>(0,U.jsx)(U.Fragment,{children:t.map((t,r)=>(0,U.jsxs)(H.Fragment,{children:[(0,U.jsx)(`h5`,{className:S1.subtitle,children:t.heading.toUpperCase()}),(0,U.jsx)(TPe,{isOpen:e,items:t.items,sectionIndex:r,onClick:n,testId:t.testId})]},r))});(0,H.memo)(({options:e,startOpen:t=!1,onShiftClickToggleOpen:n=()=>{},top:r})=>{let[i,a]=(0,H.useState)(t),o=(e,t,n,r)=>{e.preventDefault(),typeof r==`function`&&(e.currentTarget.value=t,e.currentTarget.label=n,r(e)),a(!1)},s=e.sections.length>0;return(0,U.jsx)(kl,{fixed:!0,open:i,top:r,background:`var(--color-background-sidebar)`,closedWidth:`var(--size-sidebar)`,buttonPosition:Ni.BOTTOM,buttonAnimate:!0,button:s&&(0,U.jsx)(po,{onClick:e=>{e.shiftKey&&n&&n(e),a(!i)},colored:!0,round:!0,icon:Pi.LEFT}),children:(0,U.jsx)(`div`,{className:Oi(S1.sidebar,i?``:S1.collapsed),children:s&&(0,U.jsxs)(`div`,{className:S1.inner,children:[(0,U.jsx)(`h4`,{className:S1.title,children:e.title}),(0,U.jsx)(EPe,{isOpen:i,sections:e.sections,onClick:o})]})})})},(e,t)=>x1(e,t));function C1(e,t,n){return(t=vPe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w1(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 DPe(e){if(Array.isArray(e))return w1(e)}function OPe(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function T1(e,t){if(e){if(typeof e==`string`)return w1(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?w1(e,t):void 0}}function kPe(){throw TypeError(`Invalid attempt to spread non-iterable instance.
1239
1239
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function E1(e){return DPe(e)||OPe(e)||T1(e)||kPe()}function APe(e){if(Array.isArray(e))return e}function jPe(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function MPe(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
1240
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function D1(e,t){return APe(e)||jPe(e,t)||T1(e,t)||MPe()}var O1={},NPe=[],PPe=function(e){NPe.push(e)};function FPe(e,t){}function IPe(e,t){}function LPe(){O1={}}function k1(e,t,n){!t&&!O1[n]&&(e(!1,n),O1[n]=!0)}function A1(e,t){k1(FPe,e,t)}function RPe(e,t){k1(IPe,e,t)}A1.preMessage=PPe,A1.resetWarned=LPe,A1.noteOnce=RPe;function zPe(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function i(e,t){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,o=r.has(e);if(A1(!o,`Warning: There may be circular references`),o)return!1;if(e===t)return!0;if(n&&a>1)return!1;r.add(e);var s=a+1;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(var c=0;c<e.length;c++)if(!i(e[c],t[c],s))return!1;return!0}if(e&&t&&f1(e)===`object`&&f1(t)===`object`){var l=Object.keys(e);return l.length===Object.keys(t).length?l.every(function(n){return i(e[n],t[n],s)}):!1}return!1}return i(e,t)}function j1(e){var t=H.useRef();return t.current=e,H.useCallback(function(){var e,n=[...arguments];return(e=t.current)?.call.apply(e,[t].concat(n))},[])}function BPe(){return!!(typeof window<`u`&&window.document&&window.document.createElement)}var M1=BPe()?H.useLayoutEffect:H.useEffect,VPe=function(e,t){var n=H.useRef(!0);M1(function(){return e(n.current)},t),M1(function(){return n.current=!1,function(){n.current=!0}},[])},N1=function(e,t){VPe(function(t){if(!t)return e()},t)};function P1(e){var t=H.useRef(!1),n=D1(H.useState(e),2),r=n[0],i=n[1];H.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function a(e,n){n&&t.current||i(e)}return[r,a]}function F1(e){return e!==void 0}function HPe(e,t){var n=t||{},r=n.defaultValue,i=n.value,a=n.onChange,o=n.postState,s=D1(P1(function(){return F1(i)?i:F1(r)?typeof r==`function`?r():r:typeof e==`function`?e():e}),2),c=s[0],l=s[1],u=i===void 0?c:i,d=o?o(u):u,f=j1(a),p=D1(P1([u]),2),m=p[0],h=p[1];return N1(function(){var e=m[0];c!==e&&f(c,e)},[m]),N1(function(){F1(i)||l(i)},[i]),[d,j1(function(e,t){l(e,t),h([u],t)})]}function I1(e,t){if(e==null)return{};var n,r,i=Ii(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function L1(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 R1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?L1(Object(n),!0).forEach(function(t){C1(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L1(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var z1={PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40},B1=H.createContext({min:0,max:0,direction:`ltr`,step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0});function V1(e,t,n){return(e-t)/(n-t)}function H1(e,t,n,r){var i=V1(t,n,r),a={};switch(e){case`rtl`:a.right=`${i*100}%`,a.transform=`translateX(50%)`;break;case`btt`:a.bottom=`${i*100}%`,a.transform=`translateY(50%)`;break;case`ttb`:a.top=`${i*100}%`,a.transform=`translateY(-50%)`;break;default:a.left=`${i*100}%`,a.transform=`translateX(-50%)`;break}return a}function U1(e,t){return Array.isArray(e)?e[t]:e}var UPe=[`prefixCls`,`value`,`valueIndex`,`onStartMove`,`style`,`render`,`dragging`,`onOffsetChange`],WPe=H.forwardRef(function(e,t){var n,r=e.prefixCls,i=e.value,a=e.valueIndex,o=e.onStartMove,s=e.style,c=e.render,l=e.dragging,u=e.onOffsetChange,d=I1(e,UPe),f=H.useContext(B1),p=f.min,m=f.max,h=f.direction,g=f.disabled,_=f.keyboard,v=f.range,y=f.tabIndex,b=f.ariaLabelForHandle,x=f.ariaLabelledByForHandle,S=f.ariaValueTextFormatterForHandle,C=`${r}-handle`,w=function(e){g||o(e,a)},T=function(e){if(!g&&_){var t=null;switch(e.which||e.keyCode){case z1.LEFT:t=h===`ltr`||h===`btt`?-1:1;break;case z1.RIGHT:t=h===`ltr`||h===`btt`?1:-1;break;case z1.UP:t=h===`ttb`?-1:1;break;case z1.DOWN:t=h===`ttb`?1:-1;break;case z1.HOME:t=`min`;break;case z1.END:t=`max`;break;case z1.PAGE_UP:t=2;break;case z1.PAGE_DOWN:t=-2;break}t!==null&&(e.preventDefault(),u(t,a))}},E=H1(h,i,p,m),D=H.createElement(`div`,Li({ref:t,className:Oi(C,(n={},C1(n,`${C}-${a+1}`,v),C1(n,`${C}-dragging`,l),n)),style:R1(R1({},E),s),onMouseDown:w,onTouchStart:w,onKeyDown:T,tabIndex:g?null:U1(y,a),role:`slider`,"aria-valuemin":p,"aria-valuemax":m,"aria-valuenow":i,"aria-disabled":g,"aria-label":U1(b,a),"aria-labelledby":U1(x,a),"aria-valuetext":U1(S,a)?.(i),"aria-orientation":h===`ltr`||h===`rtl`?`horizontal`:`vertical`},d));return c&&(D=c(D,{index:a,prefixCls:r,value:i,dragging:l})),D}),GPe=[`prefixCls`,`style`,`onStartMove`,`onOffsetChange`,`values`,`handleRender`,`draggingIndex`],KPe=H.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,i=e.onStartMove,a=e.onOffsetChange,o=e.values,s=e.handleRender,c=e.draggingIndex,l=I1(e,GPe),u=H.useRef({});return H.useImperativeHandle(t,function(){return{focus:function(e){var t;(t=u.current[e])==null||t.focus()}}}),H.createElement(H.Fragment,null,o.map(function(e,t){return H.createElement(WPe,Li({ref:function(e){e?u.current[t]=e:delete u.current[t]},dragging:c===t,prefixCls:n,style:U1(r,t),key:t,value:e,valueIndex:t,onStartMove:i,onOffsetChange:a,render:s},l))}))});function W1(e){var t=`touches`in e?e.touches[0]:e;return{pageX:t.pageX,pageY:t.pageY}}function qPe(e,t,n,r,i,a,o,s,c){var l=D1(H.useState(null),2),u=l[0],d=l[1],f=D1(H.useState(-1),2),p=f[0],m=f[1],h=D1(H.useState(n),2),g=h[0],_=h[1],v=D1(H.useState(n),2),y=v[0],b=v[1],x=H.useRef(null),S=H.useRef(null);H.useEffect(function(){p===-1&&_(n)},[n,p]),H.useEffect(function(){return function(){document.removeEventListener(`mousemove`,x.current),document.removeEventListener(`mouseup`,S.current),document.removeEventListener(`touchmove`,x.current),document.removeEventListener(`touchend`,S.current)}},[]);var C=function(e,t){g.some(function(t,n){return t!==e[n]})&&(t!==void 0&&d(t),_(e),o(e))},w=function(e,t){if(e===-1){var n=y[0],o=y[y.length-1],s=r-n,l=i-o,u=t*(i-r);u=Math.max(u,s),u=Math.min(u,l),u=a(n+u)-n,C(y.map(function(e){return e+u}))}else{var d=(i-r)*t,f=E1(g);f[e]=y[e];var p=c(f,d,e,`dist`);C(p.values,p.value)}},T=H.useRef(w);return T.current=w,[p,u,H.useMemo(function(){var e=E1(n).sort(function(e,t){return e-t}),t=E1(g).sort(function(e,t){return e-t});return e.every(function(e,n){return e===t[n]})?g:n},[n,g]),function(r,i){r.stopPropagation();var a=n[i];m(i),d(a),b(n);var o=W1(r),c=o.pageX,l=o.pageY,u=function(n){n.preventDefault();var r=W1(n),a=r.pageX,o=r.pageY,s=a-c,u=o-l,d=e.current.getBoundingClientRect(),f=d.width,p=d.height,m;switch(t){case`btt`:m=-u/p;break;case`ttb`:m=u/p;break;case`rtl`:m=-s/f;break;default:m=s/f}T.current(i,m)},f=function e(t){t.preventDefault(),document.removeEventListener(`mouseup`,e),document.removeEventListener(`mousemove`,u),document.removeEventListener(`touchend`,e),document.removeEventListener(`touchmove`,u),x.current=null,S.current=null,m(-1),s()};document.addEventListener(`mouseup`,f),document.addEventListener(`mousemove`,u),document.addEventListener(`touchend`,f),document.addEventListener(`touchmove`,u),x.current=u,S.current=f}]}function JPe(e){var t,n=e.prefixCls,r=e.style,i=e.start,a=e.end,o=e.index,s=e.onStartMove,c=H.useContext(B1),l=c.direction,u=c.min,d=c.max,f=c.disabled,p=c.range,m=`${n}-track`,h=V1(i,u,d),g=V1(a,u,d),_=function(e){!f&&s&&s(e,-1)},v={};switch(l){case`rtl`:v.right=`${h*100}%`,v.width=`${g*100-h*100}%`;break;case`btt`:v.bottom=`${h*100}%`,v.height=`${g*100-h*100}%`;break;case`ttb`:v.top=`${h*100}%`,v.height=`${g*100-h*100}%`;break;default:v.left=`${h*100}%`,v.width=`${g*100-h*100}%`}return H.createElement(`div`,{className:Oi(m,(t={},C1(t,`${m}-${o+1}`,p),C1(t,`${n}-track-draggable`,s),t)),style:R1(R1({},v),r),onMouseDown:_,onTouchStart:_})}function YPe(e){var t=e.prefixCls,n=e.style,r=e.values,i=e.startPoint,a=e.onStartMove,o=H.useContext(B1),s=o.included,c=o.range,l=o.min,u=H.useMemo(function(){if(!c){if(r.length===0)return[];var e=i??l,t=r[0];return[{start:Math.min(e,t),end:Math.max(e,t)}]}for(var n=[],a=0;a<r.length-1;a+=1)n.push({start:r[a],end:r[a+1]});return n},[r,c,i,l]);return s?u.map(function(e,r){var i=e.start,o=e.end;return H.createElement(JPe,{index:r,prefixCls:t,style:U1(n,r),start:i,end:o,key:r,onStartMove:a})}):null}function XPe(e){var t=e.prefixCls,n=e.style,r=e.children,i=e.value,a=e.onClick,o=H.useContext(B1),s=o.min,c=o.max,l=o.direction,u=o.includedStart,d=o.includedEnd,f=o.included,p=`${t}-text`,m=H1(l,i,s,c);return H.createElement(`span`,{className:Oi(p,C1({},`${p}-active`,f&&u<=i&&i<=d)),style:R1(R1({},m),n),onMouseDown:function(e){e.stopPropagation()},onClick:function(){a(i)}},r)}function ZPe(e){var t=e.prefixCls,n=e.marks,r=e.onClick,i=`${t}-mark`;return n.length?H.createElement(`div`,{className:i},n.map(function(e){var t=e.value,n=e.style,a=e.label;return H.createElement(XPe,{key:t,prefixCls:i,style:n,value:t,onClick:r},a)})):null}function QPe(e){var t=e.prefixCls,n=e.value,r=e.style,i=e.activeStyle,a=H.useContext(B1),o=a.min,s=a.max,c=a.direction,l=a.included,u=a.includedStart,d=a.includedEnd,f=`${t}-dot`,p=l&&u<=n&&n<=d,m=R1(R1({},H1(c,n,o,s)),typeof r==`function`?r(n):r);return p&&(m=R1(R1({},m),typeof i==`function`?i(n):i)),H.createElement(`span`,{className:Oi(f,C1({},`${f}-active`,p)),style:m})}function $Pe(e){var t=e.prefixCls,n=e.marks,r=e.dots,i=e.style,a=e.activeStyle,o=H.useContext(B1),s=o.min,c=o.max,l=o.step,u=H.useMemo(function(){var e=new Set;if(n.forEach(function(t){e.add(t.value)}),r&&l!==null)for(var t=s;t<=c;)e.add(t),t+=l;return Array.from(e)},[s,c,l,r,n]);return H.createElement(`div`,{className:`${t}-step`},u.map(function(e){return H.createElement(QPe,{prefixCls:t,key:e,value:e,style:i,activeStyle:a})}))}function eFe(e,t,n,r,i,a){var o=H.useCallback(function(n){var r=isFinite(n)?n:e;return r=Math.min(t,n),r=Math.max(e,r),r},[e,t]),s=H.useCallback(function(r){if(n!==null){var i=e+Math.round((o(r)-e)/n)*n,a=function(e){return(String(e).split(`.`)[1]||``).length},s=Math.max(a(n),a(t),a(e)),c=Number(i.toFixed(s));return e<=c&&c<=t?c:null}return null},[n,e,t,o]),c=H.useCallback(function(i){var a=o(i),c=r.map(function(e){return e.value});n!==null&&c.push(s(i)),c.push(e,t);var l=c[0],u=t-e;return c.forEach(function(e){var t=Math.abs(a-e);t<=u&&(l=e,u=t)}),l},[e,t,r,n,o,s]),l=function i(a,o,c){var l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:`unit`;if(typeof o==`number`){var u,d=a[c],f=d+o,p=[];r.forEach(function(e){p.push(e.value)}),p.push(e,t),p.push(s(d));var m=o>0?1:-1;l===`unit`?p.push(s(d+m*n)):p.push(s(f)),p=p.filter(function(e){return e!==null}).filter(function(e){return o<0?e<=d:e>=d}),l===`unit`&&(p=p.filter(function(e){return e!==d}));var h=l===`unit`?d:f;u=p[0];var g=Math.abs(u-h);if(p.forEach(function(e){var t=Math.abs(e-h);t<g&&(u=e,g=t)}),u===void 0)return o<0?e:t;if(l===`dist`)return u;if(Math.abs(o)>1){var _=E1(a);return _[c]=u,i(_,o-m,c,l)}return u}else if(o===`min`)return e;else if(o===`max`)return t},u=function(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:`unit`,i=e[n],a=l(e,t,n,r);return{value:a,changed:a!==i}},d=function(e){return a===null&&e===0||typeof a==`number`&&e<a};return[c,function(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:`unit`,o=e.map(c),s=o[n];if(o[n]=l(o,t,n,r),i===!1){var f=a||0;n>0&&o[n-1]!==s&&(o[n]=Math.max(o[n],o[n-1]+f)),n<o.length-1&&o[n+1]!==s&&(o[n]=Math.min(o[n],o[n+1]-f))}else if(typeof a==`number`||a===null){for(var p=n+1;p<o.length;p+=1)for(var m=!0;d(o[p]-o[p-1])&&m;){var h=u(o,1,p);o[p]=h.value,m=h.changed}for(var g=n;g>0;--g)for(var _=!0;d(o[g]-o[g-1])&&_;){var v=u(o,-1,g-1);o[g-1]=v.value,_=v.changed}for(var y=o.length-1;y>0;--y)for(var b=!0;d(o[y]-o[y-1])&&b;){var x=u(o,-1,y-1);o[y-1]=x.value,b=x.changed}for(var S=0;S<o.length-1;S+=1)for(var C=!0;d(o[S+1]-o[S])&&C;){var w=u(o,1,S+1);o[S+1]=w.value,C=w.changed}}return{value:o[n],values:o}}]}var tFe=H.forwardRef(function(e,t){var n,r=e.prefixCls,i=r===void 0?`rc-slider`:r,a=e.className,o=e.style,s=e.disabled,c=s===void 0?!1:s,l=e.keyboard,u=l===void 0?!0:l,d=e.autoFocus,f=e.onFocus,p=e.onBlur,m=e.min,h=m===void 0?0:m,g=e.max,_=g===void 0?100:g,v=e.step,y=v===void 0?1:v,b=e.value,x=e.defaultValue,S=e.range,C=e.count,w=e.onChange,T=e.onBeforeChange,E=e.onAfterChange,D=e.allowCross,O=D===void 0?!0:D,k=e.pushable,A=k===void 0?!1:k,j=e.draggableTrack,M=e.reverse,N=e.vertical,P=e.included,F=P===void 0?!0:P,I=e.startPoint,L=e.trackStyle,ee=e.handleStyle,te=e.railStyle,R=e.dotStyle,ne=e.activeDotStyle,re=e.marks,ie=e.dots,ae=e.handleRender,oe=e.tabIndex,z=oe===void 0?0:oe,se=e.ariaLabelForHandle,ce=e.ariaLabelledByForHandle,le=e.ariaValueTextFormatterForHandle,B=H.useRef(),ue=H.useRef(),de=H.useMemo(function(){return N?M?`ttb`:`btt`:M?`rtl`:`ltr`},[M,N]),V=H.useMemo(function(){return isFinite(h)?h:0},[h]),fe=H.useMemo(function(){return isFinite(_)?_:100},[_]),pe=H.useMemo(function(){return y!==null&&y<=0?1:y},[y]),me=H.useMemo(function(){return typeof A==`boolean`?A?pe:!1:A>=0?A:!1},[A,pe]),he=H.useMemo(function(){return Object.keys(re||{}).map(function(e){var t=re[e],n={value:Number(e)};return t&&f1(t)===`object`&&!H.isValidElement(t)&&(`label`in t||`style`in t)?(n.style=t.style,n.label=t.label):n.label=t,n}).filter(function(e){var t=e.label;return t||typeof t==`number`}).sort(function(e,t){return e.value-t.value})},[re]),ge=D1(eFe(V,fe,pe,he,O,me),2),_e=ge[0],ve=ge[1],ye=D1(HPe(x,{value:b}),2),be=ye[0],xe=ye[1],Se=H.useMemo(function(){var e=be==null?[]:Array.isArray(be)?be:[be],t=D1(e,1)[0],n=be===null?[]:[t===void 0?V:t];if(S){if(n=E1(e),C||be===void 0){var r=C>=0?C+1:2;for(n=n.slice(0,r);n.length<r;)n.push(n[n.length-1]??V)}n.sort(function(e,t){return e-t})}return n.forEach(function(e,t){n[t]=_e(e)}),n},[be,S,V,C,_e]),Ce=H.useRef(Se);Ce.current=Se;var we=function(e){return S?e:e[0]},Te=function(e){var t=E1(e).sort(function(e,t){return e-t});w&&!zPe(t,Ce.current,!0)&&w(we(t)),xe(t)},Ee=function(e){if(!c){var t=0,n=fe-V;Se.forEach(function(r,i){var a=Math.abs(e-r);a<=n&&(n=a,t=i)});var r=E1(Se);r[t]=e,S&&!Se.length&&C===void 0&&r.push(e),T?.(we(r)),Te(r),E?.(we(r))}},De=function(e){e.preventDefault();var t=ue.current.getBoundingClientRect(),n=t.width,r=t.height,i=t.left,a=t.top,o=t.bottom,s=t.right,c=e.clientX,l=e.clientY,u;switch(de){case`btt`:u=(o-l)/r;break;case`ttb`:u=(l-a)/r;break;case`rtl`:u=(s-c)/n;break;default:u=(c-i)/n}Ee(_e(V+u*(fe-V)))},Oe=D1(H.useState(null),2),ke=Oe[0],Ae=Oe[1],je=function(e,t){if(!c){var n=ve(Se,e,t);T?.(we(Se)),Te(n.values),E?.(we(n.values)),Ae(n.value)}};H.useEffect(function(){if(ke!==null){var e=Se.indexOf(ke);e>=0&&B.current.focus(e)}Ae(null)},[ke]);var Me=H.useMemo(function(){return j&&pe===null?!1:j},[j,pe]),Ne=D1(qPe(ue,de,Se,V,fe,_e,Te,function(){E?.(we(Ce.current))},ve),4),Pe=Ne[0],Fe=Ne[1],Ie=Ne[2],Le=Ne[3],Re=function(e,t){Le(e,t),T?.(we(Ce.current))},ze=Pe!==-1;H.useEffect(function(){if(!ze){var e=Se.lastIndexOf(Fe);B.current.focus(e)}},[ze]);var Be=H.useMemo(function(){return E1(Ie).sort(function(e,t){return e-t})},[Ie]),Ve=D1(H.useMemo(function(){return S?[Be[0],Be[Be.length-1]]:[V,Be[0]]},[Be,S,V]),2),He=Ve[0],Ue=Ve[1];H.useImperativeHandle(t,function(){return{focus:function(){B.current.focus(0)},blur:function(){var e=document.activeElement;ue.current.contains(e)&&e?.blur()}}}),H.useEffect(function(){d&&B.current.focus(0)},[]);var We=H.useMemo(function(){return{min:V,max:fe,direction:de,disabled:c,keyboard:u,step:pe,included:F,includedStart:He,includedEnd:Ue,range:S,tabIndex:z,ariaLabelForHandle:se,ariaLabelledByForHandle:ce,ariaValueTextFormatterForHandle:le}},[V,fe,de,c,u,pe,F,He,Ue,S,z,se,ce,le]);return H.createElement(B1.Provider,{value:We},H.createElement(`div`,{ref:ue,className:Oi(i,a,(n={},C1(n,`${i}-disabled`,c),C1(n,`${i}-vertical`,N),C1(n,`${i}-horizontal`,!N),C1(n,`${i}-with-marks`,he.length),n)),style:o,onMouseDown:De},H.createElement(`div`,{className:`${i}-rail`,style:te}),H.createElement(YPe,{prefixCls:i,style:L,values:Be,startPoint:I,onStartMove:Me?Re:null}),H.createElement($Pe,{prefixCls:i,marks:he,dots:ie,style:R,activeStyle:ne}),H.createElement(KPe,{ref:B,prefixCls:i,style:ee,values:Ie,draggingIndex:Pe,onStartMove:Re,onOffsetChange:je,onFocus:f,onBlur:p,handleRender:ae}),H.createElement(ZPe,{prefixCls:i,marks:he,onClick:Ee})))}),G1={},K1={},q1;function nFe(){if(q1)return K1;q1=1,Object.defineProperty(K1,`__esModule`,{value:!0}),K1.default=void 0;var e={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(t){var n=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||n>=e.F1&&n<=e.F12)return!1;switch(n){case e.ALT:case e.CAPS_LOCK:case e.CONTEXT_MENU:case e.CTRL:case e.DOWN:case e.END:case e.ESC:case e.HOME:case e.INSERT:case e.LEFT:case e.MAC_FF_META:case e.META:case e.NUMLOCK:case e.NUM_CENTER:case e.PAGE_DOWN:case e.PAGE_UP:case e.PAUSE:case e.PRINT_SCREEN:case e.RIGHT:case e.SHIFT:case e.UP:case e.WIN_KEY:case e.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=e.ZERO&&t<=e.NINE||t>=e.NUM_ZERO&&t<=e.NUM_MULTIPLY||t>=e.A&&t<=e.Z||window.navigator.userAgent.indexOf(`WebKit`)!==-1&&t===0)return!0;switch(t){case e.SPACE:case e.QUESTION_MARK:case e.NUM_PLUS:case e.NUM_MINUS:case e.NUM_PERIOD:case e.NUM_DIVISION:case e.SEMICOLON:case e.DASH:case e.EQUALS:case e.COMMA:case e.PERIOD:case e.SLASH:case e.APOSTROPHE:case e.SINGLE_QUOTE:case e.OPEN_SQUARE_BRACKET:case e.BACKSLASH:case e.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};return K1.default=e,K1}var J1={},Y1;function rFe(){if(Y1)return J1;Y1=1;var e=BX();Object.defineProperty(J1,`__esModule`,{value:!0}),J1.default=void 0;var t=r(H.default);function n(e){if(typeof WeakMap!=`function`)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}function r(t,r){if(t&&t.__esModule)return t;if(t===null||e(t)!==`object`&&typeof t!=`function`)return{default:t};var i=n(r);if(i&&i.has(t))return i.get(t);var a={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!==`default`&&Object.prototype.hasOwnProperty.call(t,s)){var c=o?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(a,s,c):a[s]=t[s]}return a.default=t,i&&i.set(t,a),a}return J1.default=t.createContext({min:0,max:0,direction:`ltr`,step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0}),J1}var X1={},Z1;function iFe(){if(Z1)return X1;Z1=1,Object.defineProperty(X1,`__esModule`,{value:!0}),X1.getDirectionStyle=t,X1.getIndex=n,X1.getOffset=e;function e(e,t,n){return(e-t)/(n-t)}function t(t,n,r,i){var a=e(n,r,i),o={};switch(t){case`rtl`:o.right=`${a*100}%`,o.transform=`translateX(50%)`;break;case`btt`:o.bottom=`${a*100}%`,o.transform=`translateY(50%)`;break;case`ttb`:o.top=`${a*100}%`,o.transform=`translateY(-50%)`;break;default:o.left=`${a*100}%`,o.transform=`translateX(-50%)`;break}return o}function n(e,t){return Array.isArray(e)?e[t]:e}return X1}var Q1;function aFe(){if(Q1)return G1;Q1=1;var e=yPe(),t=BX();Object.defineProperty(G1,`__esModule`,{value:!0}),G1.default=void 0;var n=e(iPe()),r=e(XEe()),i=e(GX()),a=e(QEe()),o=p(H.default),s=e(Di()),c=e(nFe()),l=e(rFe()),u=iFe(),d=[`prefixCls`,`value`,`valueIndex`,`onStartMove`,`style`,`render`,`dragging`,`onOffsetChange`];function f(e){if(typeof WeakMap!=`function`)return null;var t=new WeakMap,n=new WeakMap;return(f=function(e){return e?n:t})(e)}function p(e,n){if(e&&e.__esModule)return e;if(e===null||t(e)!==`object`&&typeof e!=`function`)return{default:e};var r=f(n);if(r&&r.has(e))return r.get(e);var i={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!==`default`&&Object.prototype.hasOwnProperty.call(e,o)){var s=a?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(i,o,s):i[o]=e[o]}return i.default=e,r&&r.set(e,i),i}return G1.default=o.forwardRef(function(e,t){var f,p=e.prefixCls,m=e.value,h=e.valueIndex,g=e.onStartMove,_=e.style,v=e.render,y=e.dragging,b=e.onOffsetChange,x=(0,a.default)(e,d),S=o.useContext(l.default),C=S.min,w=S.max,T=S.direction,E=S.disabled,D=S.keyboard,O=S.range,k=S.tabIndex,A=S.ariaLabelForHandle,j=S.ariaLabelledByForHandle,M=S.ariaValueTextFormatterForHandle,N=`${p}-handle`,P=function(e){E||g(e,h)},F=function(e){if(!E&&D){var t=null;switch(e.which||e.keyCode){case c.default.LEFT:t=T===`ltr`||T===`btt`?-1:1;break;case c.default.RIGHT:t=T===`ltr`||T===`btt`?1:-1;break;case c.default.UP:t=T===`ttb`?-1:1;break;case c.default.DOWN:t=T===`ttb`?1:-1;break;case c.default.HOME:t=`min`;break;case c.default.END:t=`max`;break;case c.default.PAGE_UP:t=2;break;case c.default.PAGE_DOWN:t=-2;break}t!==null&&(e.preventDefault(),b(t,h))}},I=(0,u.getDirectionStyle)(T,m,C,w),L=o.createElement(`div`,(0,n.default)({ref:t,className:(0,s.default)(N,(f={},(0,i.default)(f,`${N}-${h+1}`,O),(0,i.default)(f,`${N}-dragging`,y),f)),style:(0,r.default)((0,r.default)({},I),_),onMouseDown:P,onTouchStart:P,onKeyDown:F,tabIndex:E?null:(0,u.getIndex)(k,h),role:`slider`,"aria-valuemin":C,"aria-valuemax":w,"aria-valuenow":m,"aria-disabled":E,"aria-label":(0,u.getIndex)(A,h),"aria-labelledby":(0,u.getIndex)(j,h),"aria-valuetext":(0,u.getIndex)(M,h)?.(m),"aria-orientation":T===`ltr`||T===`rtl`?`horizontal`:`vertical`},x));return v&&(L=v(L,{index:h,prefixCls:p,value:m,dragging:y})),L}),G1}var oFe=Ci(aFe()),$1={container:`_container_1bhdk_1`,small:`_small_1bhdk_7`,vertical:`_vertical_1bhdk_10`,hasArrows:`_hasArrows_1bhdk_14`,button:`_button_1bhdk_18`,label:`_label_1bhdk_21`,dot:`_dot_1bhdk_29`},sFe=Id(e=>e.reduce((e,{label:t,tooltip:n,value:r})=>(e[r]=(0,U.jsx)(oo,{text:(0,U.jsxs)(U.Fragment,{children:[n,n?`: `:``,t??r]}),children:(0,U.jsx)(`div`,{className:$1.dot})}),e),{}),x1),e0=({name:e,label:t,width:n=`100%`,labelWidth:r=`auto`,value:i,min:a,max:o,step:s=1,marks:c=[],showArrows:l=!1,showTooltip:u=!1,tooltipFormatter:d=e=>e,disabled:f=!1,range:p=!1,small:m=!1,vertical:h={enabled:!1,width:`100px`,height:`400px`},onChange:g=ai.noop})=>{let _=(0,H.useContext)(na),v=sFe(c),y=n=>{g({target:{name:e??``,value:n,label:typeof t==`string`?t:String(t)}})},b=()=>(0,U.jsx)(`div`,{className:$1.button,children:(0,U.jsx)(po,{basic:!0,small:!0,round:!0,onClick:()=>y(p?[a,i?.[1]]:a),disabled:f||i===a||_,icon:Pi.FAST_BACKWARD})}),x=()=>(0,U.jsx)(`div`,{className:$1.button,children:(0,U.jsx)(po,{basic:!0,small:!0,round:!0,onClick:()=>y(p?[i?.[0],o]:o),disabled:f||i===o||_,icon:Pi.FAST_FORWARD})});return(0,U.jsxs)(`div`,{className:Oi($1.container,m?$1.small:``,h.enabled?$1.vertical:``),style:h.enabled?{width:h.width,height:h.height}:{width:n},children:[l&&(h.enabled?(0,U.jsx)(x,{}):(0,U.jsx)(b,{})),(0,U.jsx)(tFe,{range:p,allowCross:!1,className:Oi((f||_)&&$1.rcSliderDisabled,l&&$1.hasArrows),value:i,max:o,min:a,step:s,marks:v,onChange:e=>y(e),disabled:f||_,vertical:h.enabled,handleRender:(e,t)=>{let n=u&&t.dragging;return(0,U.jsx)(oFe,{...e.props,...t,children:n&&(0,U.jsx)(oo,{display:`block`,text:d(i),forceOpen:!0,children:(0,U.jsx)(`div`,{style:{position:`absolute`,inset:0}})})})}}),l&&(h.enabled?(0,U.jsx)(b,{}):(0,U.jsx)(x,{})),t&&(0,U.jsx)(`label`,{className:$1.label,style:{width:r},children:t})]})},cFe=({height:e=`var(--padding)`,width:t=null,flex:n=!1})=>(0,U.jsx)(`div`,{style:{height:e,width:t||`auto`,flexGrow:n?1:0,flexShrink:0,display:t?`inline-block`:`block`}}),t0={wrapper:`_wrapper_kaesl_85`,bordered:`_bordered_kaesl_93`,scroll:`_scroll_kaesl_98`,table:`_table_kaesl_109`,dragOverlay:`_dragOverlay_kaesl_145`,virtualScroll:`_virtualScroll_kaesl_182`,striped:`_striped_kaesl_202`},lFe={title:`_title_zn5s7_1`},uFe=({name:e=null,actions:t=null,actionsRight:n=!1,testId:r})=>{let i=e!==null,a=t!==null;if(!i&&!a)return null;let o=()=>{if(!a)return null;let e=(0,U.jsx)(Do,{actions:t});return n?e:(0,U.jsx)(`div`,{children:e})};return(0,U.jsxs)(`div`,{className:lFe.title,children:[i?(0,U.jsx)(Wc,{children:(0,U.jsx)(`span`,{"data-testid":r,children:e})}):null,o()]})},n0={footer:`_footer_4sumy_1`,section:`_section_4sumy_7`},dFe=({colSpan:e,pagination:t,actions:n,content:r,testId:i})=>{let a=n&&n.length,o=r!=null,s=()=>{if(t){let{rowCount:e,rowsPerPage:n}=t;return e>Number(n?.options?.[0]?.value)}return!1};return a||o||s()?(0,U.jsxs)(`div`,{className:n0.footer,"data-testid":`${i??`pagination`}-footer`,children:[o?(0,U.jsx)(`div`,{className:n0.section,children:(0,U.jsx)(`div`,{children:r})}):null,a||s()?(0,U.jsxs)(`div`,{className:n0.section,children:[t&&s()?(0,U.jsx)(sde,{pagination:t}):(0,U.jsx)(`div`,{}),a&&(0,U.jsx)(`div`,{children:(0,U.jsx)(Do,{actions:n})})]}):null]}):null},r0=e=>{let t=Math.max(...e.reduce((e,t)=>{let n=t.cells.map(e=>e.colSpan?e.colSpan:1).reduce((e,t)=>e+t,0);return e.concat(n)},[]));return isNaN(t)?0:t},fFe=(e,t)=>{let n=[r0(t),r0(e)];return Math.max(...n)},i0=e=>e.reduce((e,t)=>t.actions&&t.actions.length>0?1:e,0),pFe=(e,t)=>i0(t)>0||i0(e)>0,a0={clickableRow:`_clickableRow_kqvtd_1`,hoverableRow:`_hoverableRow_kqvtd_4`,rowActive:`_rowActive_kqvtd_4`,expandableRow:`_expandableRow_kqvtd_8`,flush:`_flush_kqvtd_8`,dragIconCell:`_dragIconCell_kqvtd_34`,dragIcon:`_dragIcon_kqvtd_34`,dragIconDisabled:`_dragIconDisabled_kqvtd_55`},o0=({colSpan:e,children:t,flush:n})=>(0,U.jsx)(`tr`,{children:(0,U.jsx)(`td`,{colSpan:e,className:Oi(a0.expandableRow,n?a0.flush:``),children:t})}),s0=(e,t={leftAligned:``,rightAligned:``,centerAligned:``},n=!1)=>{if(!e)return null;let{bodyAlignment:r,headerAlignment:i,isHeader:a}=e;switch(a&&i?i:r){case Mi.LEFT:return n?Mi.LEFT:t.leftAligned;case Mi.RIGHT:return n?Mi.RIGHT:t.rightAligned;case Mi.CENTER:return n?Mi.CENTER:t.centerAligned;default:return n?Mi.LEFT:t.leftAligned}},mFe=(e,t=!1,n=0)=>{if(!e||e.length===0)return[];let r=e.every(e=>Array.isArray(e)),i=e.every(e=>typeof e==`string`);return r&&t?e[n]||[]:i?e:(console.warn(`getHeaderAlignment: alignments array contains a mix of strings and arrays, returning an empty array.`),[])},c0={cell:`_cell_ie6ng_77`,disabledLink:`_disabledLink_ie6ng_87`,inputWrapper:`_inputWrapper_ie6ng_91`,numberInputWrapper:`_numberInputWrapper_ie6ng_106`,breakWord:`_breakWord_ie6ng_113`,inputCell:`_inputCell_ie6ng_116`,sliderCell:`_sliderCell_ie6ng_119`,staticCell:`_staticCell_ie6ng_123`,staticCellContent:`_staticCellContent_ie6ng_126`,unit:`_unit_ie6ng_148`,sortingCell:`_sortingCell_ie6ng_151`,sortingCellIcon:`_sortingCellIcon_ie6ng_162`,icon:`_icon_ie6ng_173`,checkBoxCell:`_checkBoxCell_ie6ng_177`,iconCellWrapper:`_iconCellWrapper_ie6ng_181`,actionsCell:`_actionsCell_ie6ng_185`,rightAligned:`_rightAligned_ie6ng_193`,centerAligned:`_centerAligned_ie6ng_199`,leftAligned:`_leftAligned_ie6ng_205`,popover:`_popover_ie6ng_208`},l0=({cell:e,columnAlignment:t,testId:n,type:r})=>(0,U.jsx)(Ml,{name:e.name,value:e.value,onChange:t=>e.onChange?.call(e,t),onFocus:e.onFocus,onBlur:e.onBlur,onPaste:t=>e.onPaste?.call(e,t),placeholder:e.placeholder,error:e.error,warning:e.warning,disabled:e.disabled,isInTable:!0,maxTooltipWidth:e.maxTooltipWidth,right:t===Mi.RIGHT,selectOnFocus:e.selectOnFocus,testId:n,tabIndex:e.disabled?-1:0,tooltip:e.tooltip,type:r}),hFe=14,u0=e=>String(ie(e)),gFe=e=>z(e)?e:u0(se(I(e),hFe)),_Fe=e=>e?typeof e==`string`?e:(0,ai.isArray)(e)?e[0]:e.fieldName:``,d0=({name:e,placeholder:t=``,disabled:n=!1,error:r=!1,left:i=!1,small:a=!1,width:o=`100%`,value:s=``,onChange:c=()=>{},onFocus:u=()=>{},onBlur:d=()=>{},selectOnFocus:f,tabIndex:p=0,testId:m,tooltip:h=null,warning:g=!1,validationCallback:_=()=>{},allowEmpty:v=!1,isInTable:y,groupOrder:b,enableCosmeticRounding:x=!0,enableDisplayRounding:S=!1,roundDisplayValue:C,disableInternalErrorValidationMessages:w=!1})=>{let T=e=>{let n=L(e),r=t&&af(e);return[1/0,-1/0].includes(Number(e))||r?{valid:!0,errors:[]}:v&&e===``||n.valid?{...n,valid:!0,errors:void 0}:n},E=e=>{let t=!!e?.endsWith(`0`);return u0(x&&e&&!t&&T(e)?.valid?gFe(e):e)},D=(0,H.useRef)(null),[O,k]=(0,H.useState)(E(u0(s))),[A,j]=(0,H.useState)(!1),M=_Fe(e),{valid:P,errors:F}=T(O),ee=F&&F.length&&!w?F[0]:null;(0,H.useEffect)(()=>{let e=E(u0(s));I(O)!==I(e)&&k(e)},[s,x,S]),(0,H.useEffect)(()=>{!A&&!P?_(M,ee):_(M,null)},[A,P,r]);let te=e=>{let n=`key`in e?O:e?.target?.value,r=l(n.replaceAll(` `,``).replaceAll(`|`,``));k(r),(T(r)?.valid||t&&af(n))&&c({...e,target:{...e.target,value:ue(u0(r)),name:M}})};(0,H.useEffect)(()=>{if(D&&D?.current&&S&&A){let e=D.current;e&&!f&&setTimeout(()=>{let{length:t}=u0(O);e.setSelectionRange(t,t)},0)}},[A]);let R=e=>{j(!0),u(e)},re=e=>{j(!1),d(e)},ie=S&&!A&&P?C?u0(C(O)):(e=>y?N(e,2):ne(e,4))(s):O;return(0,U.jsx)(Ml,{type:`text`,name:M,testId:m,disabled:n,placeholder:t,value:ie,onChange:te,onFocus:R,onBlur:re,onKeyDown:e=>{e.key===rf.ENTER&&te(e)},error:ee||r,warning:g,right:!i,small:a,width:o,isInTable:y,groupOrder:b,selectOnFocus:f,tabIndex:p,tooltip:h,ref:D},M)},vFe=({cell:e,columnAlignment:t,testId:n})=>(0,U.jsx)(d0,{name:e.name,value:e.value,onChange:t=>e.onChange?.call(e,t),onFocus:e.onFocus,onBlur:e.onBlur,placeholder:e.placeholder,error:e.error,warning:e.warning,disabled:e.disabled,isInTable:!0,left:e.left??t===Mi.LEFT,selectOnFocus:e.selectOnFocus,tabIndex:e.disabled?-1:0,testId:n,tooltip:e.tooltip,validationCallback:e.validationCallback,allowEmpty:e.allowEmpty,enableCosmeticRounding:e.enableCosmeticRounding,enableDisplayRounding:e.enableDisplayRounding,roundDisplayValue:e.roundDisplayValue}),yFe=({cell:e,columnAlignment:t,testId:n})=>(0,U.jsx)(cf,{name:e.name,borderRadius:0,options:e.options,onChange:t=>e.onChange?.call(e,t),onCreate:e.onCreate?t=>e.onCreate&&e.onCreate(t):void 0,error:e.error,warning:e.warning,disabled:e.disabled,placeholder:e.placeholder,isInTable:!0,value:e.value,native:e.native,clearable:e.clearable,searchable:e.searchable,deprecatedEventHandler:e.deprecatedEventHandler,maxTooltipWidth:e.maxTooltipWidth,width:`100%`,autoLayerWidth:e.autoLayerWidth,multi:e.multi,right:t===Mi.RIGHT,testId:n,tabIndex:e.disabled?-1:0}),bFe=({cell:e,columnAlignment:t,testId:n})=>(0,U.jsx)(`div`,{className:Oi(c0.inputWrapper,e.type===`NumberInput`?c0.numberInputWrapper:``),children:e.type===`Input`?(0,U.jsx)(l0,{cell:e,columnAlignment:t,testId:n}):e.type===`NumberInput`?(0,U.jsx)(vFe,{cell:e,columnAlignment:t,testId:n}):e.type===`DateInput`?(0,U.jsx)(l0,{cell:e,testId:n,type:`date`}):e.type===`Select`?(0,U.jsx)(yFe,{cell:e,columnAlignment:t,testId:n}):null}),xFe=({cell:e,testId:t})=>{let n=(0,H.useContext)(na),{error:r,warning:i,tooltip:a,maxTooltipWidth:o}=e,s=e=>bo(e);return(0,U.jsx)(`div`,{className:c0.inputWrapper,children:(0,U.jsx)(oo,{error:!!r,warning:!!i,text:a||r||i,enabled:s(a)||s(r)||s(i)||!1,maxWidth:o,children:(0,U.jsx)(`div`,{className:c0.staticCellContent,"data-error":r||null,"data-warning":i||null,children:(0,U.jsx)(`a`,{className:Oi((e.disabled||n)&&c0.disabledLink),onClick:e.disabled||n?void 0:t=>{var n;t.stopPropagation(),(n=e.onClick)==null||n.call(e,t)},"data-testid":t,children:e.value})})})})},SFe=({cell:e,testId:t})=>(0,U.jsx)(lo,{label:e.label,checked:e.checked,isInTable:!0,disabled:e.disabled,onChange:t=>e.onChange(t),testId:t,tabIndex:e.disabled?-1:0,indeterminate:e.indeterminate}),CFe=({cell:e})=>(0,U.jsx)(`div`,{className:c0.inputWrapper,children:(0,U.jsx)(e0,{label:e.label,value:e.value,min:e.min,max:e.max,step:e.step,marks:e.marks,onChange:t=>e.onChange(t),showArrows:e.showArrows,showTooltip:e.showTooltip,tooltipFormatter:e.tooltipFormatter,disabled:e.disabled})}),wFe=({cell:e})=>{let{tooltip:t,icon:n}=e;return(0,U.jsx)(`div`,{className:c0.iconCellWrapper,children:(0,U.jsx)(oo,{text:t,enabled:!!t&&bo(t),display:`flex`,placement:`top-center`,children:(0,U.jsx)(ca,{icon:n})})})},TFe=({cell:e})=>(0,U.jsx)(Do,{actions:e.actions}),EFe=({cell:e})=>{let{helpIcon:t}=e;return t?(0,U.jsx)(`div`,{className:c0.icon,children:(0,U.jsx)(co,{onClick:t.onClick,text:t.tooltip})}):null},DFe=({cell:e})=>{let{libraryIcon:t}=e;return t?(0,U.jsx)(`div`,{className:c0.icon,children:(0,U.jsx)(co,{onClick:t.onClick,text:t.tooltip,icon:Pi.LIBRARY})}):null},OFe=({cell:e})=>{let{hasSort:t,sort:n,sortPriority:r}=e;return t?(0,U.jsxs)(`span`,{className:c0.sortingCellIcon,children:[n===`down`?(0,U.jsx)(Hc,{link:!0,children:(0,U.jsx)(ca,{icon:Pi.SORT_ASCENDING})}):n===`up`?(0,U.jsx)(Hc,{link:!0,children:(0,U.jsx)(ca,{icon:Pi.SORT_DESCENDING})}):(0,U.jsx)(Hc,{faint:!0,children:(0,U.jsx)(ca,{icon:Pi.SORT_DESCENDING})}),r&&n?(0,U.jsx)(`sup`,{children:r}):null]}):null},f0=({cell:e,isHeader:t,testId:n})=>{let{error:r,warning:i,tooltip:a,maxTooltipWidth:o,hasSort:s,onSort:c,type:l}=e,u=(0,U.jsxs)(`div`,{className:Oi(c0.staticCellContent,l===`Unit`?c0.unit:``),onClick:s?e=>c&&c(e):()=>{},"data-error":r||null,"data-warning":i||null,"data-testid":n,children:[e.value,t?(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(EFe,{cell:e}),(0,U.jsx)(DFe,{cell:e}),(0,U.jsx)(OFe,{cell:e})]}):null]});return(0,U.jsx)(`div`,{className:c0.inputWrapper,children:(0,U.jsx)(oo,{error:!!r,warning:!!i,text:a||r||i,enabled:a&&bo(a)||r&&bo(r)||i&&bo(i)||!1,maxWidth:o,display:`block`,children:u})})},kFe=({cell:e,testId:t})=>{let{content:n,fullWidth:r,closeOnOutsideClick:i,disabled:a}=e;return(0,U.jsx)(df,{content:n,fullWidth:r,closeOnOutsideClick:i,disabled:a,children:(0,U.jsx)(`div`,{className:c0.popover,children:(0,U.jsx)(f0,{cell:e,testId:t})})})},AFe=({cell:e,isHeader:t,columnAlignment:n,testId:r})=>{if(!e)return null;switch(e.type){case`Input`:case`NumberInput`:case`DateInput`:case`Select`:return(0,U.jsx)(bFe,{cell:e,columnAlignment:n,testId:r});case`Link`:return(0,U.jsx)(xFe,{cell:e,testId:r});case`CheckBox`:return(0,U.jsx)(SFe,{cell:e,testId:r});case`Slider`:return(0,U.jsx)(CFe,{cell:e});case`Icon`:return(0,U.jsx)(wFe,{cell:e});case`Actions`:return(0,U.jsx)(TFe,{cell:e});case`Popover`:return(0,U.jsx)(kFe,{cell:e});default:return(0,U.jsx)(f0,{cell:e,isHeader:t,testId:r})}},p0=(e=>(e.INPUT=`Input`,e.NUMBER_INPUT=`NumberInput`,e.SELECT=`Select`,e.POPOVER=`Popover`,e.SLIDER=`Slider`,e.CHECKBOX=`CheckBox`,e.ACTIONS=`Actions`,e.AUTO_UNIT=`AutoUnit`,e))(p0||{}),m0=({cell:e,isHeader:t,columnHeaderAlignment:n,columnAlignment:r=Mi.LEFT,width:i,testId:a})=>{if(!e)return null;let{style:o,colSpan:s,rowSpan:c,width:l}=e,u=(0,H.useRef)(null),d={bodyAlignment:r,headerAlignment:n,isHeader:t},f=s0(d,c0),p=s0(d,c0,!0),m=e.type===p0.INPUT||e.type===p0.NUMBER_INPUT||e.type===p0.SELECT||e.type===p0.POPOVER?c0.inputCell:e.type===p0.SLIDER?c0.sliderCell:e.type===p0.CHECKBOX?c0.checkBoxCell:e.type===p0.ACTIONS?c0.actionsCell:c0.staticCell,h=Oi(c0.cell,m,e.hasSort?c0.sortingCell:null,f,e.breakWord?c0.breakWord:``),g=l??i??void 0,_={width:g,minWidth:g,...o};return(0,U.jsx)(t?`th`:`td`,{ref:u,className:h,style:_,colSpan:s,rowSpan:c,children:(0,U.jsx)(AFe,{cell:e,columnAlignment:p??Mi.RIGHT,isHeader:t,testId:a})})},h0=({row:e,rowIndex:t,isHeader:n=!1,columnCount:r,colSpan:i,columnHeaderAlignments:a=[],columnAlignment:o=[],hasRowActions:s,draggableTable:c=!1,columnWidths:l,dropDisabled:u=!1,height:d,testId:f})=>{let p=mFe(a,n,t),{onRowClick:m,onRowFocus:h,onRowMouseEnter:g,onRowMouseLeave:_,expandedContent:v,error:y,warning:b,active:x}=e,S=e.cells.map((e,r)=>{let i=`${n?0:1}_${t}_${r}`;return(0,U.jsx)(m0,{cell:e,isHeader:n,columnAlignment:o[r],columnHeaderAlignment:p[r],width:l?l[r]:void 0,testId:e.testId},i)}),C=s&&(0,U.jsx)(m0,{cell:{type:p0.ACTIONS,actions:e.actions},isHeader:n},r),{attributes:w,listeners:T,setNodeRef:E,transform:D,transition:O,isDragging:k}=yd({id:t.toString(),animateLayoutChanges:()=>!1}),A={transform:u?void 0:ou.Translate.toString(D),height:d,transition:O,opacity:k?0:void 0},j=()=>e.noDrag?(0,U.jsx)(`td`,{"aria-labelledby":`unique-label-id`}):(0,U.jsx)(`td`,{className:a0.dragIconCell,children:(0,U.jsx)(`div`,{className:Oi(a0.dragIcon,u?a0.dragIconDisabled:``),...w,...T,children:(0,U.jsx)(ca,{icon:Pi.DRAG})})});return n?(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(`tr`,{onClick:m,onMouseEnter:g,onMouseLeave:_,onFocus:h,className:Oi(m?a0.clickableRow:null,g?a0.hoverableRow:null),children:[c?(0,U.jsx)(`th`,{}):null,S,C]},t),v&&v.content?(0,U.jsx)(o0,{colSpan:i,flush:v.flush===!0,children:v.content},`${t}_expanded_content`):null]}):(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(`tr`,{ref:e.noDrag?null:E,onClick:m,onMouseEnter:g,onMouseLeave:_,onFocus:h,className:Oi(m&&!m.noStyle?a0.clickableRow:null,g&&!g.noStyle?a0.hoverableRow:null,x?a0.rowActive:null),"data-error":y||null,"data-warning":b||null,"data-index":t,"data-even":t%2==0,style:A,children:[c?j():null,S,C]},t),v&&v.content?(0,U.jsx)(o0,{colSpan:i,flush:v.flush===!0,children:v.content},`${t}_expanded_content`):null]})},jFe=e=>{let{children:t,colSpan:n,columnAlignment:r,columnCount:i,draggable:a,onListReorder:o=()=>{},canListReorder:s=()=>!0,rowActions:c,rows:l=[],tbodyRef:u}=e,[d,f]=(0,H.useState)(null),[p,m]=(0,H.useState)(!1),h=(0,H.useMemo)(()=>l.map((e,t)=>t.toString()),[l]);return a?(0,U.jsxs)(_le,{collisionDetection:Cce,onDragStart:e=>{f(e.active.id)},onDragEnd:e=>{f(null),m(!1);let{active:t,over:n}=e;if(!t||!n||t.id===n.id)return;let r=Number(t.id),i=Number(n?.id);s({from:r,to:i})&&o({from:r,to:i})},onDragOver:e=>{let{active:t,over:n}=e,r=Number(t.id),i=Number(n?.id);m(r!==i&&!s({from:r,to:i}))},children:[(0,U.jsx)(Ble,{items:h,strategy:Rle,children:t({dropDisabled:p})}),!!d&&(0,ii.createPortal)((0,U.jsx)(Ple,{dropAnimation:null,children:(0,U.jsx)(`table`,{className:Oi(t0.table,t0.dragOverlay),children:(0,U.jsx)(`tbody`,{children:(0,U.jsx)(h0,{rowIndex:Number(d),row:l[Number(d)],columnCount:i,columnWidths:(()=>{if(!u?.current)return[];let e=u.current.querySelectorAll(`tr`)[Number(d)]?.querySelectorAll(`td`);if(!e)return[];let t=Array.from(e).map(e=>`${e.getBoundingClientRect().width}px`);return t.shift(),t})(),colSpan:n,hasRowActions:c,columnAlignment:r,draggableTable:a,dropDisabled:p})})})}),document.body)]}):t({})},MFe=({table:e,theadRef:t,children:n})=>{let r=(0,H.useRef)(null),i=lue({count:e?.rowCount??e.rows?.length??0,getScrollElement:()=>r.current,estimateSize:()=>31,overscan:10});return(0,U.jsx)(`div`,{id:`scrollWrapper`,className:Oi(t0.scroll,t0.virtualScroll),ref:r,children:n({virtualizer:i,tableStyle:(()=>{let e=t.current?.clientHeight??0,n=i.getTotalSize()+e,r=i.getVirtualItems(),a=r.length>0?r[0].start:0,o=r.length>0?i.getTotalSize()-r[r.length-1].end:0;return{"--virtualPaddingTop":a+`px`,"--virtualPaddingBottom":o+`px`,height:n}})()})})},NFe=({table:e,theadRef:t,children:n})=>{let{infiniteScroll:r=!1}=e;return r?(0,U.jsx)(MFe,{table:e,theadRef:t,children:({virtualizer:e,tableStyle:t})=>n({virtualizer:e,tableStyle:t})}):(0,U.jsx)(`div`,{id:`scrollWrapper`,className:t0.scroll,children:n({})})},PFe=e=>{let{onListReorder:t=()=>{},canListReorder:n=()=>!0,beforeRenderRow:r,table:i}=e,{columnWidths:a,footer:o,name:s,rows:c=[],actions:l,actionsRight:u,columnHeaderAlignments:d,columnAlignment:f,striped:p=!0,testId:m,draggable:h,defaultEmptyRow:g=null,onAddRow:_=null,bordered:v=!0,maxHeight:y,fixedWidth:b}=i,x=(0,H.useRef)(null),S=(0,H.useRef)(null),C=(0,ai.get)(e,`table.headers`,[]),w=fFe(c,C),T=pFe(c,C),E=w+(T?1:0),D=o?o?.pagination?.rowsPerPage?.value===0||Number(o?.pagination?.selectedPage)>=Number(o?.pagination?.rowCount)/Number(o?.pagination?.rowsPerPage?.value):!0,O=g?.cells?.length&&_&&D,k={cells:O?g.cells.map((e,t)=>e?.type===`Input`?{...e,onChange:e=>{let n=e?.target?.value;_({newRow:{...g,cells:g.cells.map((e,r)=>({...e,value:r===t?n:e?.value}))}})}}:{...e,disabled:!0}):null,testId:m?`${m}-last-empty-row`:void 0},A=O?c.concat(k):c,j={...i,rows:A};return(0,U.jsxs)(`div`,{className:Oi(t0.wrapper,v?t0.bordered:``),style:{maxHeight:y,width:b,display:b===`auto`?`inline-flex`:`flex`},children:[(0,U.jsx)(uFe,{actions:l,actionsRight:u,name:s,testId:m&&`${m}-title`}),(0,U.jsx)(jFe,{colSpan:E,columnAlignment:f,columnCount:w,draggable:h,onListReorder:t,rowActions:T,rows:A,tbodyRef:S,canListReorder:n,children:({dropDisabled:e})=>(0,U.jsx)(NFe,{table:j,theadRef:x,children:({virtualizer:t,tableStyle:n})=>(0,U.jsxs)(`table`,{className:Oi(t0.table,p?t0.striped:``),"data-testid":m,style:n,children:[(0,U.jsx)(`thead`,{ref:x,children:C.map((e,t)=>(0,U.jsx)(h0,{rowIndex:t,isHeader:!0,row:e,columnCount:w,columnWidths:a,colSpan:E,hasRowActions:T,columnAlignment:f,columnHeaderAlignments:d,draggableTable:h},`0_${t}`))}),(0,U.jsx)(`tbody`,{ref:S,children:t?t.getVirtualItems().map(t=>{let n=t.index,i=A[n];return(0,U.jsx)(h0,{rowIndex:n,row:r?r({row:i,rowIndex:n}):i,columnCount:w,columnWidths:a,colSpan:E,hasRowActions:T,columnAlignment:f,draggableTable:h,height:t.size,dropDisabled:e},`1_${n}`)}):A.map((t,n)=>(0,U.jsx)(h0,{rowIndex:n,row:r?r({row:t,rowIndex:n}):t,columnCount:w,columnWidths:a,colSpan:E,hasRowActions:T,columnAlignment:f,draggableTable:h,dropDisabled:e},`1_${n}`))})]})})}),o&&(0,U.jsx)(dFe,{pagination:o.pagination,actions:o.actions,content:o.content})]})};function g0(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=g0(e[t]))&&(r&&(r+=` `),r+=n);else for(t in e)e[t]&&(r&&(r+=` `),r+=t);return r}function _0(){for(var e,t,n=0,r=``;n<arguments.length;)(e=arguments[n++])&&(t=g0(e))&&(r&&(r+=` `),r+=t);return r}var v0=e=>typeof e==`number`&&!isNaN(e),y0=e=>typeof e==`string`,b0=e=>typeof e==`function`,x0=e=>y0(e)||b0(e)?e:null,S0=e=>(0,H.isValidElement)(e)||y0(e)||b0(e)||v0(e);function FFe(e,t,n){n===void 0&&(n=300);let{scrollHeight:r,style:i}=e;requestAnimationFrame(()=>{i.minHeight=`initial`,i.height=r+`px`,i.transition=`all ${n}ms`,requestAnimationFrame(()=>{i.height=`0`,i.padding=`0`,i.margin=`0`,setTimeout(t,n)})})}function C0(e){let{enter:t,exit:n,appendPosition:r=!1,collapse:i=!0,collapseDuration:a=300}=e;return function(e){let{children:o,position:s,preventExitTransition:c,done:l,nodeRef:u,isIn:d}=e,f=r?`${t}--${s}`:t,p=r?`${n}--${s}`:n,m=(0,H.useRef)(0);return(0,H.useLayoutEffect)(()=>{let e=u.current,t=f.split(` `),n=r=>{r.target===u.current&&(e.dispatchEvent(new Event(`d`)),e.removeEventListener(`animationend`,n),e.removeEventListener(`animationcancel`,n),m.current===0&&r.type!==`animationcancel`&&e.classList.remove(...t))};e.classList.add(...t),e.addEventListener(`animationend`,n),e.addEventListener(`animationcancel`,n)},[]),(0,H.useEffect)(()=>{let e=u.current,t=()=>{e.removeEventListener(`animationend`,t),i?FFe(e,l,a):l()};d||(c?t():(m.current=1,e.className+=` ${p}`,e.addEventListener(`animationend`,t)))},[d]),H.createElement(H.Fragment,null,o)}}function w0(e,t){return e==null?{}:{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}}var T0={list:new Map,emitQueue:new Map,on(e,t){return this.list.has(e)||this.list.set(e,[]),this.list.get(e).push(t),this},off(e,t){if(t){let n=this.list.get(e).filter(e=>e!==t);return this.list.set(e,n),this}return this.list.delete(e),this},cancelEmit(e){let t=this.emitQueue.get(e);return t&&(t.forEach(clearTimeout),this.emitQueue.delete(e)),this},emit(e){this.list.has(e)&&this.list.get(e).forEach(t=>{let n=setTimeout(()=>{t(...[].slice.call(arguments,1))},0);this.emitQueue.has(e)||this.emitQueue.set(e,[]),this.emitQueue.get(e).push(n)})}},E0=e=>{let{theme:t,type:n,...r}=e;return H.createElement(`svg`,{viewBox:`0 0 24 24`,width:`100%`,height:`100%`,fill:t===`colored`?`currentColor`:`var(--toastify-icon-color-${n})`,...r})},D0={info:function(e){return H.createElement(E0,{...e},H.createElement(`path`,{d:`M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z`}))},warning:function(e){return H.createElement(E0,{...e},H.createElement(`path`,{d:`M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z`}))},success:function(e){return H.createElement(E0,{...e},H.createElement(`path`,{d:`M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z`}))},error:function(e){return H.createElement(E0,{...e},H.createElement(`path`,{d:`M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z`}))},spinner:function(){return H.createElement(`div`,{className:`Toastify__spinner`})}};function IFe(e){let[,t]=(0,H.useReducer)(e=>e+1,0),[n,r]=(0,H.useState)([]),i=(0,H.useRef)(null),a=(0,H.useRef)(new Map).current,o=e=>n.indexOf(e)!==-1,s=(0,H.useRef)({toastKey:1,displayedToast:0,count:0,queue:[],props:e,containerId:null,isToastActive:o,getToast:e=>a.get(e)}).current;function c(e){let{containerId:t}=e,{limit:n}=s.props;!n||t&&s.containerId!==t||(s.count-=s.queue.length,s.queue=[])}function l(e){r(t=>e==null?[]:t.filter(t=>t!==e))}function u(){let{toastContent:e,toastProps:t,staleId:n}=s.queue.shift();f(e,t,n)}function d(e,n){let{delay:r,staleId:o,...c}=n;if(!S0(e)||function(e){return!i.current||s.props.enableMultiContainer&&e.containerId!==s.props.containerId||a.has(e.toastId)&&e.updateId==null}(c))return;let{toastId:d,updateId:p,data:m}=c,{props:h}=s,g=()=>l(d),_=p==null;_&&s.count++;let v={...h,style:h.toastStyle,key:s.toastKey++,...Object.fromEntries(Object.entries(c).filter(e=>{let[t,n]=e;return n!=null})),toastId:d,updateId:p,data:m,closeToast:g,isIn:!1,className:x0(c.className||h.toastClassName),bodyClassName:x0(c.bodyClassName||h.bodyClassName),progressClassName:x0(c.progressClassName||h.progressClassName),autoClose:!c.isLoading&&(y=c.autoClose,b=h.autoClose,!1===y||v0(y)&&y>0?y:b),deleteToast(){let e=w0(a.get(d),`removed`);a.delete(d),T0.emit(4,e);let n=s.queue.length;if(s.count=d==null?s.count-s.displayedToast:s.count-1,s.count<0&&(s.count=0),n>0){let e=d==null?s.props.limit:1;if(n===1||e===1)s.displayedToast++,u();else{let t=e>n?n:e;s.displayedToast=t;for(let e=0;e<t;e++)u()}}else t()}};var y,b;v.iconOut=function(e){let{theme:t,type:n,isLoading:r,icon:i}=e,a=null,o={theme:t,type:n};return!1===i||(b0(i)?a=i(o):(0,H.isValidElement)(i)?a=(0,H.cloneElement)(i,o):y0(i)||v0(i)?a=i:r?a=D0.spinner():(e=>e in D0)(n)&&(a=D0[n](o))),a}(v),b0(c.onOpen)&&(v.onOpen=c.onOpen),b0(c.onClose)&&(v.onClose=c.onClose),v.closeButton=h.closeButton,!1===c.closeButton||S0(c.closeButton)?v.closeButton=c.closeButton:!0===c.closeButton&&(v.closeButton=!S0(h.closeButton)||h.closeButton);let x=e;(0,H.isValidElement)(e)&&!y0(e.type)?x=(0,H.cloneElement)(e,{closeToast:g,toastProps:v,data:m}):b0(e)&&(x=e({closeToast:g,toastProps:v,data:m})),h.limit&&h.limit>0&&s.count>h.limit&&_?s.queue.push({toastContent:x,toastProps:v,staleId:o}):v0(r)?setTimeout(()=>{f(x,v,o)},r):f(x,v,o)}function f(e,t,n){let{toastId:i}=t;n&&a.delete(n);let o={content:e,props:t};a.set(i,o),r(e=>[...e,i].filter(e=>e!==n)),T0.emit(4,w0(o,o.props.updateId==null?`added`:`updated`))}return(0,H.useEffect)(()=>(s.containerId=e.containerId,T0.cancelEmit(3).on(0,d).on(1,e=>i.current&&l(e)).on(5,c).emit(2,s),()=>{a.clear(),T0.emit(3,s)}),[]),(0,H.useEffect)(()=>{s.props=e,s.isToastActive=o,s.displayedToast=n.length}),{getToastToRender:function(t){let n=new Map,r=Array.from(a.values());return e.newestOnTop&&r.reverse(),r.forEach(e=>{let{position:t}=e.props;n.has(t)||n.set(t,[]),n.get(t).push(e)}),Array.from(n,e=>t(e[0],e[1]))},containerRef:i,isToastActive:o}}function O0(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientX:e.clientX}function k0(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientY:e.clientY}function LFe(e){let[t,n]=(0,H.useState)(!1),[r,i]=(0,H.useState)(!1),a=(0,H.useRef)(null),o=(0,H.useRef)({start:0,x:0,y:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null,didMove:!1}).current,s=(0,H.useRef)(e),{autoClose:c,pauseOnHover:l,closeToast:u,onClick:d,closeOnClick:f}=e;function p(t){if(e.draggable){t.nativeEvent.type===`touchstart`&&t.nativeEvent.preventDefault(),o.didMove=!1,document.addEventListener(`mousemove`,_),document.addEventListener(`mouseup`,v),document.addEventListener(`touchmove`,_),document.addEventListener(`touchend`,v);let n=a.current;o.canCloseOnClick=!0,o.canDrag=!0,o.boundingRect=n.getBoundingClientRect(),n.style.transition=``,o.x=O0(t.nativeEvent),o.y=k0(t.nativeEvent),e.draggableDirection===`x`?(o.start=o.x,o.removalDistance=n.offsetWidth*(e.draggablePercent/100)):(o.start=o.y,o.removalDistance=n.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent/100))}}function m(t){if(o.boundingRect){let{top:n,bottom:r,left:i,right:a}=o.boundingRect;t.nativeEvent.type!==`touchend`&&e.pauseOnHover&&o.x>=i&&o.x<=a&&o.y>=n&&o.y<=r?g():h()}}function h(){n(!0)}function g(){n(!1)}function _(n){let r=a.current;o.canDrag&&r&&(o.didMove=!0,t&&g(),o.x=O0(n),o.y=k0(n),o.delta=e.draggableDirection===`x`?o.x-o.start:o.y-o.start,o.start!==o.x&&(o.canCloseOnClick=!1),r.style.transform=`translate${e.draggableDirection}(${o.delta}px)`,r.style.opacity=``+(1-Math.abs(o.delta/o.removalDistance)))}function v(){document.removeEventListener(`mousemove`,_),document.removeEventListener(`mouseup`,v),document.removeEventListener(`touchmove`,_),document.removeEventListener(`touchend`,v);let t=a.current;if(o.canDrag&&o.didMove&&t){if(o.canDrag=!1,Math.abs(o.delta)>o.removalDistance)return i(!0),void e.closeToast();t.style.transition=`transform 0.2s, opacity 0.2s`,t.style.transform=`translate${e.draggableDirection}(0)`,t.style.opacity=`1`}}(0,H.useEffect)(()=>{s.current=e}),(0,H.useEffect)(()=>(a.current&&a.current.addEventListener(`d`,h,{once:!0}),b0(e.onOpen)&&e.onOpen((0,H.isValidElement)(e.children)&&e.children.props),()=>{let e=s.current;b0(e.onClose)&&e.onClose((0,H.isValidElement)(e.children)&&e.children.props)}),[]),(0,H.useEffect)(()=>(e.pauseOnFocusLoss&&(document.hasFocus()||g(),window.addEventListener(`focus`,h),window.addEventListener(`blur`,g)),()=>{e.pauseOnFocusLoss&&(window.removeEventListener(`focus`,h),window.removeEventListener(`blur`,g))}),[e.pauseOnFocusLoss]);let y={onMouseDown:p,onTouchStart:p,onMouseUp:m,onTouchEnd:m};return c&&l&&(y.onMouseEnter=g,y.onMouseLeave=h),f&&(y.onClick=e=>{d&&d(e),o.canCloseOnClick&&u()}),{playToast:h,pauseToast:g,isRunning:t,preventExitTransition:r,toastRef:a,eventHandlers:y}}function A0(e){let{closeToast:t,theme:n,ariaLabel:r=`close`}=e;return H.createElement(`button`,{className:`Toastify__close-button Toastify__close-button--${n}`,type:`button`,onClick:e=>{e.stopPropagation(),t(e)},"aria-label":r},H.createElement(`svg`,{"aria-hidden":`true`,viewBox:`0 0 14 16`},H.createElement(`path`,{fillRule:`evenodd`,d:`M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z`})))}function RFe(e){let{delay:t,isRunning:n,closeToast:r,type:i=`default`,hide:a,className:o,style:s,controlledProgress:c,progress:l,rtl:u,isIn:d,theme:f}=e,p=a||c&&l===0,m={...s,animationDuration:`${t}ms`,animationPlayState:n?`running`:`paused`,opacity:p?0:1};c&&(m.transform=`scaleX(${l})`);let h=_0(`Toastify__progress-bar`,c?`Toastify__progress-bar--controlled`:`Toastify__progress-bar--animated`,`Toastify__progress-bar-theme--${f}`,`Toastify__progress-bar--${i}`,{"Toastify__progress-bar--rtl":u}),g=b0(o)?o({rtl:u,type:i,defaultClassName:h}):_0(h,o);return H.createElement(`div`,{role:`progressbar`,"aria-hidden":p?`true`:`false`,"aria-label":`notification timer`,className:g,style:m,[c&&l>=1?`onTransitionEnd`:`onAnimationEnd`]:c&&l<1?null:()=>{d&&r()}})}var zFe=e=>{let{isRunning:t,preventExitTransition:n,toastRef:r,eventHandlers:i}=LFe(e),{closeButton:a,children:o,autoClose:s,onClick:c,type:l,hideProgressBar:u,closeToast:d,transition:f,position:p,className:m,style:h,bodyClassName:g,bodyStyle:_,progressClassName:v,progressStyle:y,updateId:b,role:x,progress:S,rtl:C,toastId:w,deleteToast:T,isIn:E,isLoading:D,iconOut:O,closeOnClick:k,theme:A}=e,j=_0(`Toastify__toast`,`Toastify__toast-theme--${A}`,`Toastify__toast--${l}`,{"Toastify__toast--rtl":C},{"Toastify__toast--close-on-click":k}),M=b0(m)?m({rtl:C,position:p,type:l,defaultClassName:j}):_0(j,m),N=!!S||!s,P={closeToast:d,type:l,theme:A},F=null;return!1===a||(F=b0(a)?a(P):(0,H.isValidElement)(a)?(0,H.cloneElement)(a,P):A0(P)),H.createElement(f,{isIn:E,done:T,position:p,preventExitTransition:n,nodeRef:r},H.createElement(`div`,{id:w,onClick:c,className:M,...i,style:h,ref:r},H.createElement(`div`,{...E&&{role:x},className:b0(g)?g({type:l}):_0(`Toastify__toast-body`,g),style:_},O!=null&&H.createElement(`div`,{className:_0(`Toastify__toast-icon`,{"Toastify--animate-icon Toastify__zoom-enter":!D})},O),H.createElement(`div`,null,o)),F,H.createElement(RFe,{...b&&!N?{key:`pb-${b}`}:{},rtl:C,theme:A,delay:s,isRunning:t,isIn:E,closeToast:d,hide:u,type:l,style:y,className:v,controlledProgress:N,progress:S||0})))},j0=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},BFe=C0(j0(`bounce`,!0));C0(j0(`slide`,!0)),C0(j0(`zoom`)),C0(j0(`flip`));var M0=(0,H.forwardRef)((e,t)=>{let{getToastToRender:n,containerRef:r,isToastActive:i}=IFe(e),{className:a,style:o,rtl:s,containerId:c}=e;function l(e){let t=_0(`Toastify__toast-container`,`Toastify__toast-container--${e}`,{"Toastify__toast-container--rtl":s});return b0(a)?a({position:e,rtl:s,defaultClassName:t}):_0(t,x0(a))}return(0,H.useEffect)(()=>{t&&(t.current=r.current)},[]),H.createElement(`div`,{ref:r,className:`Toastify`,id:c},n((e,t)=>{let n=t.length?{...o}:{...o,pointerEvents:`none`};return H.createElement(`div`,{className:l(e),style:n,key:`container-${e}`},t.map((e,n)=>{let{content:r,props:a}=e;return H.createElement(zFe,{...a,isIn:i(a.toastId),style:{...a.style,"--nth":n+1,"--len":t.length},key:`toast-${a.key}`},r)}))}))});M0.displayName=`ToastContainer`,M0.defaultProps={position:`top-right`,transition:BFe,autoClose:5e3,closeButton:A0,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,draggable:!0,draggablePercent:80,draggableDirection:`x`,role:`alert`,theme:`light`};var N0,P0=new Map,F0=[],VFe=1;function I0(){return``+ VFe++}function HFe(e){return e&&(y0(e.toastId)||v0(e.toastId))?e.toastId:I0()}function L0(e,t){return P0.size>0?T0.emit(0,e,t):F0.push({content:e,options:t}),t.toastId}function R0(e,t){return{...t,type:t&&t.type||e,toastId:HFe(t)}}function z0(e){return(t,n)=>L0(t,R0(e,n))}function B0(e,t){return L0(e,R0(`default`,t))}B0.loading=(e,t)=>L0(e,R0(`default`,{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),B0.promise=function(e,t,n){let r,{pending:i,error:a,success:o}=t;i&&(r=y0(i)?B0.loading(i,n):B0.loading(i.render,{...n,...i}));let s={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},c=(e,t,i)=>{if(t==null)return void B0.dismiss(r);let a={type:e,...s,...n,data:i},o=y0(t)?{render:t}:t;return r?B0.update(r,{...a,...o}):B0(o.render,{...a,...o}),i},l=b0(e)?e():e;return l.then(e=>c(`success`,o,e)).catch(e=>c(`error`,a,e)),l},B0.success=z0(`success`),B0.info=z0(`info`),B0.error=z0(`error`),B0.warning=z0(`warning`),B0.warn=B0.warning,B0.dark=(e,t)=>L0(e,R0(`default`,{theme:`dark`,...t})),B0.dismiss=e=>{P0.size>0?T0.emit(1,e):F0=F0.filter(t=>e!=null&&t.options.toastId!==e)},B0.clearWaitingQueue=function(e){return e===void 0&&(e={}),T0.emit(5,e)},B0.isActive=e=>{let t=!1;return P0.forEach(n=>{n.isToastActive&&n.isToastActive(e)&&(t=!0)}),t},B0.update=function(e,t){t===void 0&&(t={}),setTimeout(()=>{let n=function(e,t){let{containerId:n}=t,r=P0.get(n||N0);return r&&r.getToast(e)}(e,t);if(n){let{props:r,content:i}=n,a={delay:100,...r,...t,toastId:t.toastId||e,updateId:I0()};a.toastId!==e&&(a.staleId=e);let o=a.render||i;delete a.render,L0(o,a)}},0)},B0.done=e=>{B0.update(e,{progress:1})},B0.onChange=e=>(T0.on(4,e),()=>{T0.off(4,e)}),B0.POSITION={TOP_LEFT:`top-left`,TOP_RIGHT:`top-right`,TOP_CENTER:`top-center`,BOTTOM_LEFT:`bottom-left`,BOTTOM_RIGHT:`bottom-right`,BOTTOM_CENTER:`bottom-center`},B0.TYPE={INFO:`info`,SUCCESS:`success`,WARNING:`warning`,ERROR:`error`,DEFAULT:`default`},T0.on(2,e=>{N0=e.containerId||e,P0.set(N0,e),F0.forEach(e=>{T0.emit(0,e.content,e.options)}),F0=[]}).on(3,e=>{P0.delete(e.containerId||e),P0.size===0&&T0.off(0).off(1).off(5)});var V0={toggle:`_toggle_1c9wf_9`,small:`_small_1c9wf_25`,disabled:`_disabled_1c9wf_102`,noMargin:`_noMargin_1c9wf_110`,helpIconEnabled:`_helpIconEnabled_1c9wf_113`},UFe=({name:e,label:t,checked:n=!1,disabled:r,display:i,small:a=!1,onChange:o,noMargin:s=!1,testId:c,helpText:l,onClickHelp:u})=>{let d=(0,H.useContext)(na),f=l||u,p=r||d;return(0,U.jsxs)(`div`,{className:Oi(V0.toggle,p?V0.disabled:null,a?V0.small:null,s?V0.noMargin:null),style:{display:i},onClick:t=>{p||(t.target.name=e,t.target.checked=!n,t.target.value=!n,o(t))},"data-testid":c,children:[(0,U.jsx)(`input`,{type:Fi.CHECKBOX,name:e,value:n?.toString(),disabled:p,checked:n,onChange:()=>{}}),(0,U.jsx)(`label`,{children:t}),f&&(0,U.jsx)(`div`,{className:V0.helpIconEnabled,onClick:u,children:(0,U.jsx)(co,{text:l})})]})},WFe=(0,H.createContext)({dragDropManager:void 0});(function(){return typeof Symbol==`function`&&Symbol.observable||`@@observable`})();var H0=function(){return Math.random().toString(36).substring(7).split(``).join(`.`)};``+H0(),``+H0();function U0(e,t,...n){if(GFe()&&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 GFe(){return typeof process<`u`&&!0}var KFe=[],qFe=[];KFe.__IS_NONE__=!0,qFe.__IS_ALL__=!0;var W0=typeof global<`u`?global:self,G0=W0.MutationObserver||W0.WebKitMutationObserver;function K0(e){return function(){let t=setTimeout(r,0),n=setInterval(r,50);function r(){clearTimeout(t),clearInterval(n),e()}}}function JFe(e){let t=1,n=new G0(e),r=document.createTextNode(``);return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}var YFe=typeof G0==`function`?JFe:K0,XFe=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=YFe(this.flush),this.requestErrorThrow=K0(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}},ZFe=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}};new class{create(e){let t=this.freeTasks,n=t.length?t.pop():new ZFe(this.onError,e=>t[t.length]=e);return n.task=e,n}constructor(e){this.onError=e,this.freeTasks=[]}}(new XFe().registerPendingError);var QFe;(function(e){e.SOURCE=`SOURCE`,e.TARGET=`TARGET`})(QFe||={});var q0=typeof window<`u`?H.useLayoutEffect:H.useEffect;function J0(e,t,n){let[r,i]=(0,H.useState)(()=>t(e)),a=(0,H.useCallback)(()=>{let a=t(e);fde(r,a)||(i(a),n&&n())},[r,e,n]);return q0(a),[r,a]}function $Fe(e,t,n){let[r,i]=J0(e,t,n);return q0(function(){let t=e.getHandlerId();if(t!=null)return e.subscribeToStateChange(i,{handlerIds:[t]})},[e,i]),r}function Y0(e,t,n){return $Fe(t,e||(()=>({})),()=>n.reconnect())}function X0(e,t){let n=[...[]];return typeof e!=`function`&&n.push(e),(0,H.useMemo)(()=>typeof e==`function`?e():e,n)}function eIe(e){return(0,H.useMemo)(()=>e.hooks.dragSource(),[e])}function tIe(e){return(0,H.useMemo)(()=>e.hooks.dragPreview(),[e])}var Z0=!1,Q0=!1,nIe=class{receiveHandlerId(e){this.sourceId=e}getHandlerId(){return this.sourceId}canDrag(){U0(!Z0,`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 Z0=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{Z0=!1}}isDragging(){if(!this.sourceId)return!1;U0(!Q0,`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 Q0=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{Q0=!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()}},$0=!1,rIe=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;U0(!$0,`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 $0=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{$0=!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 iIe(e,t,n){let r=n.getRegistry(),i=r.addTarget(e,t);return[i,()=>r.removeTarget(i)]}function aIe(e,t,n){let r=n.getRegistry(),i=r.addSource(e,t);return[i,()=>r.removeSource(i)]}function e2(e,t,n,r){let i;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 n=0;n<a.length;n++){let r=a[n];if(!s(r))return!1;let o=e[r],c=t[r];if(i=void 0,i===!1||i===void 0&&o!==c)return!1}return!0}function t2(e){return typeof e==`object`&&!!e&&Object.prototype.hasOwnProperty.call(e,`current`)}function oIe(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 sIe(e){return(t=null,n=null)=>{if(!(0,H.isValidElement)(t)){let r=t;return e(r,n),r}let r=t;return oIe(r),cIe(r,n?t=>e(t,n):e)}}function n2(e){let t={};return Object.keys(e).forEach(n=>{let r=e[n];if(n.endsWith(`Ref`))t[n]=e[n];else{let e=sIe(r);t[n]=()=>e}}),t}function r2(e,t){typeof e==`function`?e(t):e.current=t}function cIe(e,t){let n=e.ref;return U0(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,H.cloneElement)(e,{ref:e=>{r2(n,e),r2(t,e)}}):(0,H.cloneElement)(e,{ref:t})}var lIe=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!e2(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!e2(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=n2({dragSource:(e,t)=>{this.clearDragSource(),this.dragSourceOptions=t||null,t2(e)?this.dragSourceRef=e:this.dragSourceNode=e,this.reconnectDragSource()},dragPreview:(e,t)=>{this.clearDragPreview(),this.dragPreviewOptions=t||null,t2(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}},uIe=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!e2(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=n2({dropTarget:(e,t)=>{this.clearDropTarget(),this.dropTargetOptions=t,t2(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 i2(){let{dragDropManager:e}=(0,H.useContext)(WFe);return U0(e!=null,`Expected drag drop context`),e}function dIe(e,t){let n=i2(),r=(0,H.useMemo)(()=>new lIe(n.getBackend()),[n]);return q0(()=>(r.dragSourceOptions=e||null,r.reconnect(),()=>r.disconnectDragSource()),[r,e]),q0(()=>(r.dragPreviewOptions=t||null,r.reconnect(),()=>r.disconnectDragPreview()),[r,t]),r}function fIe(){let e=i2();return(0,H.useMemo)(()=>new nIe(e),[e])}var pIe=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 mIe(e,t,n){let r=(0,H.useMemo)(()=>new pIe(e,t,n),[t,n]);return(0,H.useEffect)(()=>{r.spec=e},[e]),r}function hIe(e){return(0,H.useMemo)(()=>{let t=e.type;return U0(t!=null,`spec.type must be defined`),t},[e])}function gIe(e,t,n){let r=i2(),i=mIe(e,t,n),a=hIe(e);q0(function(){if(a!=null){let[e,o]=aIe(a,i,r);return t.receiveHandlerId(e),n.receiveHandlerId(e),o}},[r,t,n,i,a])}function _Ie(e,t){let n=X0(e);U0(!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=fIe(),i=dIe(n.options,n.previewOptions);return gIe(n,r,i),[Y0(n.collect,r,i),eIe(i),tIe(i)]}function vIe(e){let t=i2().getMonitor(),[n,r]=J0(t,e);return(0,H.useEffect)(()=>t.subscribeToOffsetChange(r)),(0,H.useEffect)(()=>t.subscribeToStateChange(r)),n}function yIe(e){return(0,H.useMemo)(()=>e.hooks.dropTarget(),[e])}function bIe(e){let t=i2(),n=(0,H.useMemo)(()=>new uIe(t.getBackend()),[t]);return q0(()=>(n.dropTargetOptions=e||null,n.reconnect(),()=>n.disconnectDropTarget()),[e]),n}function xIe(){let e=i2();return(0,H.useMemo)(()=>new rIe(e),[e])}function SIe(e){let{accept:t}=e;return(0,H.useMemo)(()=>(U0(e.accept!=null,`accept must be defined`),Array.isArray(t)?t:[t]),[t])}var CIe=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 wIe(e,t){let n=(0,H.useMemo)(()=>new CIe(e,t),[t]);return(0,H.useEffect)(()=>{n.spec=e},[e]),n}function TIe(e,t,n){let r=i2(),i=wIe(e,t),a=SIe(e);q0(function(){let[e,o]=iIe(a,i,r);return t.receiveHandlerId(e),n.receiveHandlerId(e),o},[r,t,i,n,a.map(e=>e.toString()).join(`|`)])}function a2(e,t){let n=X0(e),r=xIe(),i=bIe(n.options);return TIe(n,r,i),[Y0(n.collect,r,i),yIe(i)]}var o2;function EIe(){return o2||(o2=new Image,o2.src=`data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==`),o2}var s2=[],DIe=function(){return s2.some(function(e){return e.activeTargets.length>0})},OIe=function(){return s2.some(function(e){return e.skippedTargets.length>0})},c2=`ResizeObserver loop completed with undelivered notifications.`,kIe=function(){var e;typeof ErrorEvent==`function`?e=new ErrorEvent(`error`,{message:c2}):(e=document.createEvent(`Event`),e.initEvent(`error`,!1,!1),e.message=c2),window.dispatchEvent(e)},l2;(function(e){e.BORDER_BOX=`border-box`,e.CONTENT_BOX=`content-box`,e.DEVICE_PIXEL_CONTENT_BOX=`device-pixel-content-box`})(l2||={});var u2=function(e){return Object.freeze(e)},AIe=function(){function e(e,t){this.inlineSize=e,this.blockSize=t,u2(this)}return e}(),d2=function(){function e(e,t,n,r){return this.x=e,this.y=t,this.width=n,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,u2(this)}return e.prototype.toJSON=function(){var e=this;return{x:e.x,y:e.y,top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),f2=function(e){return e instanceof SVGElement&&`getBBox`in e},p2=function(e){if(f2(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var i=e,a=i.offsetWidth,o=i.offsetHeight;return!(a||o||e.getClientRects().length)},m2=function(e){if(e instanceof Element)return!0;var t=e?.ownerDocument?.defaultView;return!!(t&&e instanceof t.Element)},jIe=function(e){switch(e.tagName){case`INPUT`:if(e.type!==`image`)break;case`VIDEO`:case`AUDIO`:case`EMBED`:case`OBJECT`:case`CANVAS`:case`IFRAME`:case`IMG`:return!0}return!1},h2=typeof window<`u`?window:{},g2=new WeakMap,_2=/auto|scroll/,MIe=/^tb|vertical/,NIe=/msie|trident/i.test(h2.navigator&&h2.navigator.userAgent),v2=function(e){return parseFloat(e||`0`)},y2=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new AIe((n?t:e)||0,(n?e:t)||0)},b2=u2({devicePixelContentBoxSize:y2(),borderBoxSize:y2(),contentBoxSize:y2(),contentRect:new d2(0,0,0,0)}),x2=function(e,t){if(t===void 0&&(t=!1),g2.has(e)&&!t)return g2.get(e);if(p2(e))return g2.set(e,b2),b2;var n=getComputedStyle(e),r=f2(e)&&e.ownerSVGElement&&e.getBBox(),i=!NIe&&n.boxSizing===`border-box`,a=MIe.test(n.writingMode||``),o=!r&&_2.test(n.overflowY||``),s=!r&&_2.test(n.overflowX||``),c=r?0:v2(n.paddingTop),l=r?0:v2(n.paddingRight),u=r?0:v2(n.paddingBottom),d=r?0:v2(n.paddingLeft),f=r?0:v2(n.borderTopWidth),p=r?0:v2(n.borderRightWidth),m=r?0:v2(n.borderBottomWidth),h=r?0:v2(n.borderLeftWidth),g=d+l,_=c+u,v=h+p,y=f+m,b=s?e.offsetHeight-y-e.clientHeight:0,x=o?e.offsetWidth-v-e.clientWidth:0,S=i?g+v:0,C=i?_+y:0,w=r?r.width:v2(n.width)-S-x,T=r?r.height:v2(n.height)-C-b,E=w+g+x+v,D=T+_+b+y,O=u2({devicePixelContentBoxSize:y2(Math.round(w*devicePixelRatio),Math.round(T*devicePixelRatio),a),borderBoxSize:y2(E,D,a),contentBoxSize:y2(w,T,a),contentRect:new d2(d,c,w,T)});return g2.set(e,O),O},S2=function(e,t,n){var r=x2(e,n),i=r.borderBoxSize,a=r.contentBoxSize,o=r.devicePixelContentBoxSize;switch(t){case l2.DEVICE_PIXEL_CONTENT_BOX:return o;case l2.BORDER_BOX:return i;default:return a}},PIe=function(){function e(e){var t=x2(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=u2([t.borderBoxSize]),this.contentBoxSize=u2([t.contentBoxSize]),this.devicePixelContentBoxSize=u2([t.devicePixelContentBoxSize])}return e}(),C2=function(e){if(p2(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},FIe=function(){var e=1/0,t=[];s2.forEach(function(n){if(n.activeTargets.length!==0){var r=[];n.activeTargets.forEach(function(t){var n=new PIe(t.target),i=C2(t.target);r.push(n),t.lastReportedSize=S2(t.target,t.observedBox),i<e&&(e=i)}),t.push(function(){n.callback.call(n.observer,r,n.observer)}),n.activeTargets.splice(0,n.activeTargets.length)}});for(var n=0,r=t;n<r.length;n++){var i=r[n];i()}return e},w2=function(e){s2.forEach(function(t){t.activeTargets.splice(0,t.activeTargets.length),t.skippedTargets.splice(0,t.skippedTargets.length),t.observationTargets.forEach(function(n){n.isActive()&&(C2(n.target)>e?t.activeTargets.push(n):t.skippedTargets.push(n))})})},IIe=function(){var e=0;for(w2(e);DIe();)e=FIe(),w2(e);return OIe()&&kIe(),e>0},T2,E2=[],LIe=function(){return E2.splice(0).forEach(function(e){return e()})},RIe=function(e){if(!T2){var t=0,n=document.createTextNode(``);new MutationObserver(function(){return LIe()}).observe(n,{characterData:!0}),T2=function(){n.textContent=`${t?t--:t++}`}}E2.push(e),T2()},zIe=function(e){RIe(function(){requestAnimationFrame(e)})},D2=0,BIe=function(){return!!D2},VIe=250,HIe={attributes:!0,characterData:!0,childList:!0,subtree:!0},O2=[`resize`,`load`,`transitionend`,`animationend`,`animationstart`,`animationiteration`,`keyup`,`keydown`,`mouseup`,`mousedown`,`mouseover`,`mouseout`,`blur`,`focus`],k2=function(e){return e===void 0&&(e=0),Date.now()+e},A2=!1,j2=new(function(){function e(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return e.prototype.run=function(e){var t=this;if(e===void 0&&(e=VIe),!A2){A2=!0;var n=k2(e);zIe(function(){var r=!1;try{r=IIe()}finally{if(A2=!1,e=n-k2(),!BIe())return;r?t.run(1e3):e>0?t.run(e):t.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var e=this,t=function(){return e.observer&&e.observer.observe(document.body,HIe)};document.body?t():h2.addEventListener(`DOMContentLoaded`,t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),O2.forEach(function(t){return h2.addEventListener(t,e.listener,!0)}))},e.prototype.stop=function(){var e=this;this.stopped||=(this.observer&&this.observer.disconnect(),O2.forEach(function(t){return h2.removeEventListener(t,e.listener,!0)}),!0)},e}()),M2=function(e){!D2&&e>0&&j2.start(),D2+=e,!D2&&j2.stop()},UIe=function(e){return!f2(e)&&!jIe(e)&&getComputedStyle(e).display===`inline`},WIe=function(){function e(e,t){this.target=e,this.observedBox=t||l2.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e=S2(this.target,this.observedBox,!0);return UIe(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},e}(),GIe=function(){function e(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t}return e}(),N2=new WeakMap,P2=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},F2=function(){function e(){}return e.connect=function(e,t){var n=new GIe(e,t);N2.set(e,n)},e.observe=function(e,t,n){var r=N2.get(e),i=r.observationTargets.length===0;P2(r.observationTargets,t)<0&&(i&&s2.push(r),r.observationTargets.push(new WIe(t,n&&n.box)),M2(1),j2.schedule())},e.unobserve=function(e,t){var n=N2.get(e),r=P2(n.observationTargets,t),i=n.observationTargets.length===1;r>=0&&(i&&s2.splice(s2.indexOf(n),1),n.observationTargets.splice(r,1),M2(-1))},e.disconnect=function(e){var t=this,n=N2.get(e);n.observationTargets.slice().forEach(function(n){return t.unobserve(e,n.target)}),n.activeTargets.splice(0,n.activeTargets.length)},e}(),KIe=function(){function e(e){if(arguments.length===0)throw TypeError(`Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.`);if(typeof e!=`function`)throw TypeError(`Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.`);F2.connect(this,e)}return e.prototype.observe=function(e,t){if(arguments.length===0)throw TypeError(`Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.`);if(!m2(e))throw TypeError(`Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element`);F2.observe(this,e,t)},e.prototype.unobserve=function(e){if(arguments.length===0)throw TypeError(`Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.`);if(!m2(e))throw TypeError(`Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element`);F2.unobserve(this,e)},e.prototype.disconnect=function(){F2.disconnect(this)},e.toString=function(){return`function ResizeObserver () { [polyfill code] }`},e}(),I2=(0,H.createContext)({});function qIe(e){let t=(0,H.useRef)(null);return t.current===null&&(t.current=e()),t.current}var L2=(0,H.createContext)(null),R2=(0,H.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`});function JIe(e=!0){let t=(0,H.useContext)(L2);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=(0,H.useId)();(0,H.useEffect)(()=>{e&&i(a)},[e]);let o=(0,H.useCallback)(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}var z2=typeof window<`u`,YIe=z2?H.useLayoutEffect:H.useEffect,B2=e=>e,V2=B2,H2=B2;function U2(e){let t;return()=>(t===void 0&&(t=e()),t)}var W2=(e,t,n)=>{let r=t-e;return r===0?1:(n-e)/r},G2=e=>e*1e3,K2=e=>e/1e3,XIe={useManualTiming:!1};function ZIe(e){let t=new Set,n=new Set,r=!1,i=!1,a=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1};function s(t){a.has(t)&&(c.schedule(t),e()),t(o)}let c={schedule:(e,i=!1,o=!1)=>{let s=o&&r?t:n;return i&&a.add(e),s.has(e)||s.add(e),e},cancel:e=>{n.delete(e),a.delete(e)},process:e=>{if(o=e,r){i=!0;return}r=!0,[t,n]=[n,t],t.forEach(s),t.clear(),r=!1,i&&(i=!1,c.process(e))}};return c}var q2=[`read`,`resolveKeyframes`,`update`,`preRender`,`render`,`postRender`],QIe=40;function J2(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=q2.reduce((e,t)=>(e[t]=ZIe(a),e),{}),{read:s,resolveKeyframes:c,update:l,preRender:u,render:d,postRender:f}=o,p=()=>{let a=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(a-i.timestamp,QIe),1),i.timestamp=a,i.isProcessing=!0,s.process(i),c.process(i),l.process(i),u.process(i),d.process(i),f.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(p))},m=()=>{n=!0,r=!0,i.isProcessing||e(p)};return{schedule:q2.reduce((e,t)=>{let r=o[t];return e[t]=(e,t=!1,i=!1)=>(n||m(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<q2.length;t++)o[q2[t]].cancel(e)},state:i,steps:o}}var{schedule:Y2,cancel:X2,state:Z2,steps:Q2}=J2(typeof requestAnimationFrame<`u`?requestAnimationFrame:B2,!0),$2=(0,H.createContext)({strict:!1}),e4={animation:[`animate`,`variants`,`whileHover`,`whileTap`,`exit`,`whileInView`,`whileFocus`,`whileDrag`],exit:[`exit`],drag:[`drag`,`dragControls`],focus:[`whileFocus`],hover:[`whileHover`,`onHoverStart`,`onHoverEnd`],tap:[`whileTap`,`onTap`,`onTapStart`,`onTapCancel`],pan:[`onPan`,`onPanStart`,`onPanSessionStart`,`onPanEnd`],inView:[`whileInView`,`onViewportEnter`,`onViewportLeave`],layout:[`layout`,`layoutId`]},t4={};for(let e in e4)t4[e]={isEnabled:t=>e4[e].some(e=>!!t[e])};function $Ie(e){for(let t in e)t4[t]={...t4[t],...e[t]}}var eLe=new Set(`animate.exit.variants.initial.style.values.variants.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.ignoreStrict.viewport`.split(`.`));function n4(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||eLe.has(e)}var r4=e=>!n4(e);function tLe(e){e&&(r4=t=>t.startsWith(`on`)?!n4(t):e(t))}try{tLe((Vne(),i(Bne)).default)}catch{}function nLe(e,t,n){let r={};for(let i in e)i===`values`&&typeof e.values==`object`||(r4(i)||n===!0&&n4(i)||!t&&!n4(i)||e.draggable&&i.startsWith(`onDrag`))&&(r[i]=e[i]);return r}function rLe(e){if(typeof Proxy>`u`)return e;let t=new Map;return new Proxy((...t)=>e(...t),{get:(n,r)=>r===`create`?e:(t.has(r)||t.set(r,e(r)),t.get(r))})}var i4=(0,H.createContext)({});function a4(e){return typeof e==`string`||Array.isArray(e)}function o4(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}var s4=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],c4=[`initial`,...s4];function l4(e){return o4(e.animate)||c4.some(t=>a4(e[t]))}function u4(e){return!!(l4(e)||e.variants)}function iLe(e,t){if(l4(e)){let{initial:t,animate:n}=e;return{initial:t===!1||a4(t)?t:void 0,animate:a4(n)?n:void 0}}return e.inherit===!1?{}:t}function aLe(e){let{initial:t,animate:n}=iLe(e,(0,H.useContext)(i4));return(0,H.useMemo)(()=>({initial:t,animate:n}),[d4(t),d4(n)])}function d4(e){return Array.isArray(e)?e.join(` `):e}var oLe=Symbol.for(`motionComponentSymbol`);function f4(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}function sLe(e,t,n){return(0,H.useCallback)(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n==`function`?n(r):f4(n)&&(n.current=r))},[t])}var p4=e=>e.replace(/([a-z])([A-Z])/gu,`$1-$2`).toLowerCase(),m4=`data-`+p4(`framerAppearId`),{schedule:h4}=J2(queueMicrotask,!1),g4=(0,H.createContext)({});function cLe(e,t,n,r,i){let{visualElement:a}=(0,H.useContext)(i4),o=(0,H.useContext)($2),s=(0,H.useContext)(L2),c=(0,H.useContext)(R2).reducedMotion,l=(0,H.useRef)(null);r||=o.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:a,props:n,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:c}));let u=l.current,d=(0,H.useContext)(g4);u&&!u.projection&&i&&(u.type===`html`||u.type===`svg`)&&lLe(l.current,n,i,d);let f=(0,H.useRef)(!1);(0,H.useInsertionEffect)(()=>{u&&f.current&&u.update(n,s)});let p=n[m4],m=(0,H.useRef)(!!p&&!window.MotionHandoffIsComplete?.call(window,p)&&window.MotionHasOptimisedAnimation?.call(window,p));return YIe(()=>{u&&(f.current=!0,window.MotionIsMounted=!0,u.updateFeatures(),h4.render(u.render),m.current&&u.animationState&&u.animationState.animateChanges())}),(0,H.useEffect)(()=>{u&&(!m.current&&u.animationState&&u.animationState.animateChanges(),m.current&&=(queueMicrotask(()=>{var e;(e=window.MotionHandoffMarkAsComplete)==null||e.call(window,p)}),!1))}),u}function lLe(e,t,n,r){let{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:c,layoutRoot:l}=t;e.projection=new n(e.latestValues,t[`data-framer-portal-id`]?void 0:_4(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&f4(s),visualElement:e,animationType:typeof a==`string`?a:`both`,initialPromotionConfig:r,layoutScroll:c,layoutRoot:l})}function _4(e){if(e)return e.options.allowProjection===!1?_4(e.parent):e.projection}function uLe({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&$Ie(e);function a(a,o){let s,c={...(0,H.useContext)(R2),...a,layoutId:dLe(a)},{isStatic:l}=c,u=aLe(a),d=r(a,l);if(!l&&z2){fLe(c,e);let n=pLe(c);s=n.MeasureLayout,u.visualElement=cLe(i,d,c,t,n.ProjectionNode)}return(0,U.jsxs)(i4.Provider,{value:u,children:[s&&u.visualElement?(0,U.jsx)(s,{visualElement:u.visualElement,...c}):null,n(i,a,sLe(d,u.visualElement,o),d,l,u.visualElement)]})}a.displayName=`motion.${typeof i==`string`?i:`create(${i.displayName??i.name??``})`}`;let o=(0,H.forwardRef)(a);return o[oLe]=i,o}function dLe({layoutId:e}){let t=(0,H.useContext)(I2).id;return t&&e!==void 0?t+`-`+e:e}function fLe(e,t){(0,H.useContext)($2).strict}function pLe(e){let{drag:t,layout:n}=t4;if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}var mLe=[`animate`,`circle`,`defs`,`desc`,`ellipse`,`g`,`image`,`line`,`filter`,`marker`,`mask`,`metadata`,`path`,`pattern`,`polygon`,`polyline`,`rect`,`stop`,`switch`,`symbol`,`svg`,`text`,`tspan`,`use`,`view`];function v4(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(mLe.indexOf(e)>-1||/[A-Z]/u.test(e))}function y4(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function b4(e,t,n,r){if(typeof t==`function`){let[i,a]=y4(r);t=t(n===void 0?e.custom:n,i,a)}if(typeof t==`string`&&(t=e.variants&&e.variants[t]),typeof t==`function`){let[i,a]=y4(r);t=t(n===void 0?e.custom:n,i,a)}return t}var x4=e=>Array.isArray(e),hLe=e=>!!(e&&typeof e==`object`&&e.mix&&e.toValue),gLe=e=>x4(e)?e[e.length-1]||0:e,S4=e=>!!(e&&e.getVelocity);function C4(e){let t=S4(e)?e.get():e;return hLe(t)?t.toValue():t}function _Le({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,a){let o={latestValues:vLe(r,i,a,e),renderState:t()};return n&&(o.onMount=e=>n({props:r,current:e,...o}),o.onUpdate=e=>n(e)),o}var w4=e=>(t,n)=>{let r=(0,H.useContext)(i4),i=(0,H.useContext)(L2),a=()=>_Le(e,t,r,i);return n?a():qIe(a)};function vLe(e,t,n,r){let i={},a=r(e,{});for(let e in a)i[e]=C4(a[e]);let{initial:o,animate:s}=e,c=l4(e),l=u4(e);t&&l&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let u=n?n.initial===!1:!1;u||=o===!1;let d=u?s:o;if(d&&typeof d!=`boolean`&&!o4(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=b4(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=u?t.length-1:0;t=t[e]}t!==null&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}var T4=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],E4=new Set(T4),D4=e=>t=>typeof t==`string`&&t.startsWith(e),O4=D4(`--`),yLe=D4(`var(--`),k4=e=>yLe(e)?bLe.test(e.split(`/*`)[0].trim()):!1,bLe=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,A4=(e,t)=>t&&typeof e==`number`?t.transform(e):e,j4=(e,t,n)=>n>t?t:n<e?e:n,M4={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},N4={...M4,transform:e=>j4(0,1,e)},P4={...M4,default:1},F4=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),I4=F4(`deg`),L4=F4(`%`),R4=F4(`px`),xLe=F4(`vh`),SLe=F4(`vw`),z4={...L4,parse:e=>L4.parse(e)/100,transform:e=>L4.transform(e*100)},CLe={borderWidth:R4,borderTopWidth:R4,borderRightWidth:R4,borderBottomWidth:R4,borderLeftWidth:R4,borderRadius:R4,radius:R4,borderTopLeftRadius:R4,borderTopRightRadius:R4,borderBottomRightRadius:R4,borderBottomLeftRadius:R4,width:R4,maxWidth:R4,height:R4,maxHeight:R4,top:R4,right:R4,bottom:R4,left:R4,padding:R4,paddingTop:R4,paddingRight:R4,paddingBottom:R4,paddingLeft:R4,margin:R4,marginTop:R4,marginRight:R4,marginBottom:R4,marginLeft:R4,backgroundPositionX:R4,backgroundPositionY:R4},wLe={rotate:I4,rotateX:I4,rotateY:I4,rotateZ:I4,scale:P4,scaleX:P4,scaleY:P4,scaleZ:P4,skew:I4,skewX:I4,skewY:I4,distance:R4,translateX:R4,translateY:R4,translateZ:R4,x:R4,y:R4,z:R4,perspective:R4,transformPerspective:R4,opacity:N4,originX:z4,originY:z4,originZ:R4},B4={...M4,transform:Math.round},V4={...CLe,...wLe,zIndex:B4,size:R4,fillOpacity:N4,strokeOpacity:N4,numOctaves:B4},TLe={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},ELe=T4.length;function DLe(e,t,n){let r=``,i=!0;for(let a=0;a<ELe;a++){let o=T4[a],s=e[o];if(s===void 0)continue;let c=!0;if(c=typeof s==`number`?s===(o.startsWith(`scale`)?1:0):parseFloat(s)===0,!c||n){let e=A4(s,V4[o]);if(!c){i=!1;let t=TLe[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}return r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}function H4(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let n=t[e];if(E4.has(e)){o=!0;continue}else if(O4(e)){i[e]=n;continue}else{let t=A4(n,V4[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=DLe(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}var OLe={offset:`stroke-dashoffset`,array:`stroke-dasharray`},kLe={offset:`strokeDashoffset`,array:`strokeDasharray`};function ALe(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?OLe:kLe;e[a.offset]=R4.transform(-r);let o=R4.transform(t),s=R4.transform(n);e[a.array]=`${o} ${s}`}function U4(e,t,n){return typeof e==`string`?e:R4.transform(t+n*e)}function jLe(e,t,n){return`${U4(t,e.x,e.width)} ${U4(n,e.y,e.height)}`}function W4(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:a,pathLength:o,pathSpacing:s=1,pathOffset:c=0,...l},u,d){if(H4(e,l,d),u){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:f,style:p,dimensions:m}=e;f.transform&&(m&&(p.transform=f.transform),delete f.transform),m&&(i!==void 0||a!==void 0||p.transform)&&(p.transformOrigin=jLe(m,i===void 0?.5:i,a===void 0?.5:a)),t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),r!==void 0&&(f.scale=r),o!==void 0&&ALe(f,o,s,c,!1)}var G4=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),K4=()=>({...G4(),attrs:{}}),q4=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function J4(e,{style:t,vars:n},r,i){for(let a in Object.assign(e.style,t,i&&i.getProjectionStyles(r)),n)e.style.setProperty(a,n[a])}var Y4=new Set([`baseFrequency`,`diffuseConstant`,`kernelMatrix`,`kernelUnitLength`,`keySplines`,`keyTimes`,`limitingConeAngle`,`markerHeight`,`markerWidth`,`numOctaves`,`targetX`,`targetY`,`surfaceScale`,`specularConstant`,`specularExponent`,`stdDeviation`,`tableValues`,`viewBox`,`gradientTransform`,`pathLength`,`startOffset`,`textLength`,`lengthAdjust`]);function X4(e,t,n,r){for(let n in J4(e,t,void 0,r),t.attrs)e.setAttribute(Y4.has(n)?n:p4(n),t.attrs[n])}var Z4={};function MLe(e){Object.assign(Z4,e)}function Q4(e,{layout:t,layoutId:n}){return E4.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!Z4[e]||e===`opacity`)}function $4(e,t,n){let{style:r}=e,i={};for(let a in r)(S4(r[a])||t.style&&S4(t.style[a])||Q4(a,e)||n?.getValue(a)?.liveStyle!==void 0)&&(i[a]=r[a]);return i}function e3(e,t,n){let r=$4(e,t,n);for(let n in e)if(S4(e[n])||S4(t[n])){let t=T4.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}function NLe(e,t){try{t.dimensions=typeof e.getBBox==`function`?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}var t3=[`x`,`y`,`width`,`height`,`cx`,`cy`,`r`],PLe={useVisualState:w4({scrapeMotionValuesFromProps:e3,createRenderState:K4,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:i})=>{if(!n)return;let a=!!e.drag;if(!a){for(let e in i)if(E4.has(e)){a=!0;break}}if(!a)return;let o=!t;if(t)for(let n=0;n<t3.length;n++){let r=t3[n];e[r]!==t[r]&&(o=!0)}o&&Y2.read(()=>{NLe(n,r),Y2.render(()=>{W4(r,i,q4(n.tagName),e.transformTemplate),X4(n,r)})})}})},FLe={useVisualState:w4({scrapeMotionValuesFromProps:$4,createRenderState:G4})};function n3(e,t,n){for(let r in t)!S4(t[r])&&!Q4(r,n)&&(e[r]=t[r])}function ILe({transformTemplate:e},t){return(0,H.useMemo)(()=>{let n=G4();return H4(n,t,e),Object.assign({},n.vars,n.style)},[t])}function LLe(e,t){let n=e.style||{},r={};return n3(r,n,e),Object.assign(r,ILe(e,t)),r}function RLe(e,t){let n={},r=LLe(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout=`none`,r.touchAction=e.drag===!0?`none`:`pan-${e.drag===`x`?`y`:`x`}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}function zLe(e,t,n,r){let i=(0,H.useMemo)(()=>{let n=K4();return W4(n,t,q4(r),e.transformTemplate),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};n3(t,e.style,e),i.style={...t,...i.style}}return i}function BLe(e=!1){return(t,n,r,{latestValues:i},a)=>{let o=(v4(t)?zLe:RLe)(n,i,a,t),s=nLe(n,typeof t==`string`,e),c=t===H.Fragment?{}:{...s,...o,ref:r},{children:l}=n,u=(0,H.useMemo)(()=>S4(l)?l.get():l,[l]);return(0,H.createElement)(t,{...c,children:u})}}function VLe(e,t){return function(n,{forwardMotionProps:r}={forwardMotionProps:!1}){return uLe({...v4(n)?PLe:FLe,preloadedFeatures:e,useRender:BLe(r),createVisualElement:t,Component:n})}}function r3(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function i3(e,t,n){let r=e.getProps();return b4(r,t,n===void 0?r.custom:n,e)}var HLe=U2(()=>window.ScrollTimeline!==void 0),ULe=class{constructor(e){this.stop=()=>this.runAll(`stop`),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>`finished`in e?e.finished:e))}getAll(e){return this.animations[0][e]}setAll(e,t){for(let n=0;n<this.animations.length;n++)this.animations[n][e]=t}attachTimeline(e,t){let n=this.animations.map(n=>{if(HLe()&&n.attachTimeline)return n.attachTimeline(e);if(typeof t==`function`)return t(n)});return()=>{n.forEach((e,t)=>{e&&e(),this.animations[t].stop()})}}get time(){return this.getAll(`time`)}set time(e){this.setAll(`time`,e)}get speed(){return this.getAll(`speed`)}set speed(e){this.setAll(`speed`,e)}get startTime(){return this.getAll(`startTime`)}get duration(){let e=0;for(let t=0;t<this.animations.length;t++)e=Math.max(e,this.animations[t].duration);return e}runAll(e){this.animations.forEach(t=>t[e]())}flatten(){this.runAll(`flatten`)}play(){this.runAll(`play`)}pause(){this.runAll(`pause`)}cancel(){this.runAll(`cancel`)}complete(){this.runAll(`complete`)}},WLe=class extends ULe{then(e,t){return Promise.all(this.animations).then(e).catch(t)}};function a3(e,t){return e?e[t]||e.default||e:void 0}var o3=2e4;function s3(e){let t=0,n=e.next(t);for(;!n.done&&t<o3;)t+=50,n=e.next(t);return t>=o3?1/0:t}function c3(e){return typeof e==`function`}function l3(e,t){e.timeline=t,e.onfinish=null}var u3=e=>Array.isArray(e)&&typeof e[0]==`number`,GLe={linearEasing:void 0};function KLe(e,t){let n=U2(e);return()=>GLe[t]??n()}var d3=KLe(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),f3=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=e(W2(0,i-1,t))+`, `;return`linear(${r.substring(0,r.length-2)})`};function p3(e){return!!(typeof e==`function`&&d3()||!e||typeof e==`string`&&(e in h3||d3())||u3(e)||Array.isArray(e)&&e.every(p3))}var m3=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,h3={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:m3([0,.65,.55,1]),circOut:m3([.55,0,1,.45]),backIn:m3([.31,.01,.66,-.59]),backOut:m3([.33,1.53,.69,.99])};function g3(e,t){if(e)return typeof e==`function`&&d3()?f3(e,t):u3(e)?m3(e):Array.isArray(e)?e.map(e=>g3(e,t)||h3.easeOut):h3[e]}var _3={x:!1,y:!1};function v3(){return _3.x||_3.y}function qLe(e,t,n){if(e instanceof Element)return[e];if(typeof e==`string`){let t=document.querySelectorAll(e);return t?Array.from(t):[]}return Array.from(e)}function y3(e,t){let n=qLe(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function b3(e){return t=>{t.pointerType===`touch`||v3()||e(t)}}function JLe(e,t,n={}){let[r,i,a]=y3(e,n),o=b3(e=>{let{target:n}=e,r=t(e);if(typeof r!=`function`||!n)return;let a=b3(e=>{r(e),n.removeEventListener(`pointerleave`,a)});n.addEventListener(`pointerleave`,a,i)});return r.forEach(e=>{e.addEventListener(`pointerenter`,o,i)}),a}var x3=(e,t)=>t?e===t?!0:x3(e,t.parentElement):!1,S3=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1,YLe=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function XLe(e){return YLe.has(e.tagName)||e.tabIndex!==-1}var C3=new WeakSet;function w3(e){return t=>{t.key===`Enter`&&e(t)}}function T3(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var ZLe=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=w3(()=>{if(C3.has(n))return;T3(n,`down`);let e=w3(()=>{T3(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>T3(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function E3(e){return S3(e)&&!v3()}function QLe(e,t,n={}){let[r,i,a]=y3(e,n),o=e=>{let r=e.currentTarget;if(!E3(e)||C3.has(r))return;C3.add(r);let a=t(e),o=(e,t)=>{window.removeEventListener(`pointerup`,s),window.removeEventListener(`pointercancel`,c),!(!E3(e)||!C3.has(r))&&(C3.delete(r),typeof a==`function`&&a(e,{success:t}))},s=e=>{o(e,n.useGlobalTarget||x3(r,e.target))},c=e=>{o(e,!1)};window.addEventListener(`pointerup`,s,i),window.addEventListener(`pointercancel`,c,i)};return r.forEach(e=>{!XLe(e)&&e.getAttribute(`tabindex`)===null&&(e.tabIndex=0),(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,o,i),e.addEventListener(`focus`,e=>ZLe(e,i),i)}),a}function $Le(e){return e===`x`||e===`y`?_3[e]?null:(_3[e]=!0,()=>{_3[e]=!1}):_3.x||_3.y?null:(_3.x=_3.y=!0,()=>{_3.x=_3.y=!1})}var D3=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...T4]),O3;function eRe(){O3=void 0}var k3={now:()=>(O3===void 0&&k3.set(Z2.isProcessing||XIe.useManualTiming?Z2.timestamp:performance.now()),O3),set:e=>{O3=e,queueMicrotask(eRe)}};function A3(e,t){e.indexOf(t)===-1&&e.push(t)}function j3(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var M3=class{constructor(){this.subscriptions=[]}add(e){return A3(this.subscriptions,e),()=>j3(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};function N3(e,t){return t?e*(1e3/t):0}var P3=30,tRe=e=>!isNaN(parseFloat(e)),nRe=class{constructor(e,t={}){this.version=`11.18.2`,this.canTrackVelocity=null,this.events={},this.updateAndNotify=(e,t=!0)=>{let n=k3.now();this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=k3.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=tRe(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on(`change`,e)}on(e,t){this.events[e]||(this.events[e]=new M3);let n=this.events[e].add(t);return e===`change`?()=>{n(),Y2.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){!t||!this.passiveEffect?this.updateAndNotify(e,t):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){let e=k3.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>P3)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,P3);return N3(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function F3(e,t){return new nRe(e,t)}function rRe(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,F3(n))}function iRe(e,t){let{transitionEnd:n={},transition:r={},...i}=i3(e,t)||{};for(let t in i={...i,...n},i)rRe(e,t,gLe(i[t]))}function aRe(e){return!!(S4(e)&&e.add)}function I3(e,t){let n=e.getValue(`willChange`);if(aRe(n))return n.add(t)}function L3(e){return e.props[m4]}var R3=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,oRe=1e-7,sRe=12;function cRe(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=R3(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>oRe&&++s<sRe);return o}function z3(e,t,n,r){if(e===t&&n===r)return B2;let i=t=>cRe(t,0,1,e,n);return e=>e===0||e===1?e:R3(i(e),t,r)}var B3=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,V3=e=>t=>1-e(1-t),H3=z3(.33,1.53,.69,.99),U3=V3(H3),W3=B3(U3),G3=e=>(e*=2)<1?.5*U3(e):.5*(2-2**(-10*(e-1))),K3=e=>1-Math.sin(Math.acos(e)),q3=V3(K3),J3=B3(K3),Y3=e=>/^0[^.\s]+$/u.test(e);function lRe(e){return typeof e==`number`?e===0:e===null?!0:e===`none`||e===`0`||Y3(e)}var X3=e=>Math.round(e*1e5)/1e5,Z3=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function uRe(e){return e==null}var dRe=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Q3=(e,t)=>n=>!!(typeof n==`string`&&dRe.test(n)&&n.startsWith(e)||t&&!uRe(n)&&Object.prototype.hasOwnProperty.call(n,t)),$3=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(Z3);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},fRe=e=>j4(0,255,e),e6={...M4,transform:e=>Math.round(fRe(e))},t6={test:Q3(`rgb`,`red`),parse:$3(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+e6.transform(e)+`, `+e6.transform(t)+`, `+e6.transform(n)+`, `+X3(N4.transform(r))+`)`};function pRe(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}var n6={test:Q3(`#`),parse:pRe,transform:t6.transform},r6={test:Q3(`hsl`,`hue`),parse:$3(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+L4.transform(X3(t))+`, `+L4.transform(X3(n))+`, `+X3(N4.transform(r))+`)`},i6={test:e=>t6.test(e)||n6.test(e)||r6.test(e),parse:e=>t6.test(e)?t6.parse(e):r6.test(e)?r6.parse(e):n6.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?t6.transform(e):r6.transform(e)},mRe=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function hRe(e){return isNaN(e)&&typeof e==`string`&&(e.match(Z3)?.length||0)+(e.match(mRe)?.length||0)>0}var a6=`number`,o6=`color`,gRe=`var`,_Re=`var(`,s6="${}",vRe=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function c6(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(vRe,e=>(i6.test(e)?(r.color.push(a),i.push(o6),n.push(i6.parse(e))):e.startsWith(_Re)?(r.var.push(a),i.push(gRe),n.push(e)):(r.number.push(a),i.push(a6),n.push(parseFloat(e))),++a,s6)).split(s6),indexes:r,types:i}}function l6(e){return c6(e).values}function u6(e){let{split:t,types:n}=c6(e),r=t.length;return e=>{let i=``;for(let a=0;a<r;a++)if(i+=t[a],e[a]!==void 0){let t=n[a];t===a6?i+=X3(e[a]):t===o6?i+=i6.transform(e[a]):i+=e[a]}return i}}var yRe=e=>typeof e==`number`?0:e;function bRe(e){let t=l6(e);return u6(e)(t.map(yRe))}var d6={test:hRe,parse:l6,createTransformer:u6,getAnimatableNone:bRe},xRe=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function SRe(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(Z3)||[];if(!r)return e;let i=n.replace(r,``),a=xRe.has(t)?1:0;return r!==n&&(a*=100),t+`(`+a+i+`)`}var CRe=/\b([a-z-]*)\(.*?\)/gu,f6={...d6,getAnimatableNone:e=>{let t=e.match(CRe);return t?t.map(SRe).join(` `):e}},wRe={...V4,color:i6,backgroundColor:i6,outlineColor:i6,fill:i6,stroke:i6,borderColor:i6,borderTopColor:i6,borderRightColor:i6,borderBottomColor:i6,borderLeftColor:i6,filter:f6,WebkitFilter:f6},p6=e=>wRe[e];function m6(e,t){let n=p6(e);return n!==f6&&(n=d6),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var TRe=new Set([`auto`,`none`,`0`]);function ERe(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!TRe.has(t)&&c6(t).values.length&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]=m6(n,i)}var h6=e=>e===M4||e===R4,g6=(e,t)=>parseFloat(e.split(`, `)[t]),_6=(e,t)=>(n,{transform:r})=>{if(r===`none`||!r)return 0;let i=r.match(/^matrix3d\((.+)\)$/u);if(i)return g6(i[1],t);{let t=r.match(/^matrix\((.+)\)$/u);return t?g6(t[1],e):0}},DRe=new Set([`x`,`y`,`z`]),ORe=T4.filter(e=>!DRe.has(e));function kRe(e){let t=[];return ORe.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith(`scale`)?1:0))}),t}var v6={width:({x:e},{paddingLeft:t=`0`,paddingRight:n=`0`})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t=`0`,paddingBottom:n=`0`})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:_6(4,13),y:_6(5,14)};v6.translateX=v6.x,v6.translateY=v6.y;var y6=new Set,b6=!1,x6=!1;function S6(){if(x6){let e=Array.from(y6).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=kRe(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{var r;(r=e.getValue(t))==null||r.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}x6=!1,b6=!1,y6.forEach(e=>e.complete()),y6.clear()}function C6(){y6.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(x6=!0)})}function ARe(){C6(),S6()}var w6=class{constructor(e,t,n,r,i,a=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(y6.add(this),b6||(b6=!0,Y2.read(C6),Y2.resolveKeyframes(S6))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;for(let i=0;i<e.length;i++)if(e[i]===null)if(i===0){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=n.readValue(t,a);r!=null&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}else e[i]=e[i-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),y6.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,y6.delete(this))}resume(){this.isComplete||this.scheduleResolve()}},T6=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),jRe=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function MRe(e){let t=jRe.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}var NRe=4;function E6(e,t,n=1){H2(n<=NRe,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[r,i]=MRe(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return T6(e)?parseFloat(e):e}return k4(i)?E6(i,t,n+1):i}var D6=e=>t=>t.test(e),O6=[M4,R4,L4,I4,SLe,xLe,{test:e=>e===`auto`,parse:e=>e}],k6=e=>O6.find(D6(e)),A6=class extends w6{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`string`&&(r=r.trim(),k4(r))){let i=E6(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!D3.has(n)||e.length!==2)return;let[r,i]=e,a=k6(r),o=k6(i);if(a!==o)if(h6(a)&&h6(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else this.needsMeasurement=!0}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)lRe(e[t])&&n.push(t);n.length&&ERe(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=v6[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,a=n[i];n[i]=v6[t](e.measureViewportBox(),window.getComputedStyle(e.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}},j6=(e,t)=>t===`zIndex`?!1:!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(d6.test(e)||e===`0`)&&!e.startsWith(`url(`));function PRe(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function FRe(e,t,n,r){let i=e[0];if(i===null)return!1;if(t===`display`||t===`visibility`)return!0;let a=e[e.length-1],o=j6(i,t),s=j6(a,t);return V2(o===s,`You are trying to animate ${t} from "${i}" to "${a}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${a} via the \`style\` property.`),!o||!s?!1:PRe(e)||(n===`spring`||c3(n))&&r}var IRe=e=>e!==null;function M6(e,{repeat:t,repeatType:n=`loop`},r){let i=e.filter(IRe),a=t&&n!==`loop`&&t%2==1?0:i.length-1;return!a||r===void 0?i[a]:r}var LRe=40,N6=class{constructor({autoplay:e=!0,delay:t=0,type:n=`keyframes`,repeat:r=0,repeatDelay:i=0,repeatType:a=`loop`,...o}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=k3.now(),this.options={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:a,...o},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>LRe?this.resolvedAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&ARe(),this._resolved}onKeyframesResolved(e,t){this.resolvedAt=k3.now(),this.hasAttemptedResolve=!0;let{name:n,type:r,velocity:i,delay:a,onComplete:o,onUpdate:s,isGenerator:c}=this.options;if(!c&&!FRe(e,n,r,i))if(a)this.options.duration=0;else{s&&s(M6(e,this.options,t)),o&&o(),this.resolveFinishedPromise();return}let l=this.initPlayback(e,t);l!==!1&&(this._resolved={keyframes:e,finalKeyframe:t,...l},this.onPostResolved())}onPostResolved(){}then(e,t){return this.currentFinishedPromise.then(e,t)}flatten(){this.options.type=`keyframes`,this.options.ease=`linear`}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}},P6=(e,t,n)=>e+(t-e)*n;function F6(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function RRe({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=F6(s,r,e+1/3),a=F6(s,r,e),o=F6(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function I6(e,t){return n=>n>0?t:e}var L6=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},zRe=[n6,t6,r6],BRe=e=>zRe.find(t=>t.test(e));function R6(e){let t=BRe(e);if(V2(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===r6&&(n=RRe(n)),n}var z6=(e,t)=>{let n=R6(e),r=R6(t);if(!n||!r)return I6(e,t);let i={...n};return e=>(i.red=L6(n.red,r.red,e),i.green=L6(n.green,r.green,e),i.blue=L6(n.blue,r.blue,e),i.alpha=P6(n.alpha,r.alpha,e),t6.transform(i))},VRe=(e,t)=>n=>t(e(n)),B6=(...e)=>e.reduce(VRe),V6=new Set([`none`,`hidden`]);function HRe(e,t){return V6.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function URe(e,t){return n=>P6(e,t,n)}function H6(e){return typeof e==`number`?URe:typeof e==`string`?k4(e)?I6:i6.test(e)?z6:KRe:Array.isArray(e)?U6:typeof e==`object`?i6.test(e)?z6:WRe:I6}function U6(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>H6(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function WRe(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=H6(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function GRe(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][r[a]];n[i]=e.values[o]??0,r[a]++}return n}var KRe=(e,t)=>{let n=d6.createTransformer(t),r=c6(e),i=c6(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?V6.has(e)&&!i.values.length||V6.has(t)&&!r.values.length?HRe(e,t):B6(U6(GRe(r,i),i.values),n):(V2(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),I6(e,t))};function W6(e,t,n){return typeof e==`number`&&typeof t==`number`&&typeof n==`number`?P6(e,t,n):H6(e)(e,t)}var qRe=5;function G6(e,t,n){let r=Math.max(t-qRe,0);return N3(n-e(r),t-r)}var K6={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},q6=.001;function JRe({duration:e=K6.duration,bounce:t=K6.bounce,velocity:n=K6.velocity,mass:r=K6.mass}){let i,a;V2(e<=G2(K6.maxDuration),`Spring duration must be 10 seconds or less`);let o=1-t;o=j4(K6.minDamping,K6.maxDamping,o),e=j4(K6.minDuration,K6.maxDuration,K2(e)),o<1?(i=t=>{let r=t*o,i=r*e,a=r-n,s=J6(t,o),c=Math.exp(-i);return q6-a/s*c},a=t=>{let r=t*o*e,a=r*n+n,s=o**2*t**2*e,c=Math.exp(-r),l=J6(t**2,o);return(-i(t)+q6>0?-1:1)*((a-s)*c)/l}):(i=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),a=t=>Math.exp(-t*e)*((n-t)*(e*e)));let s=5/e,c=XRe(i,a,s);if(e=G2(e),isNaN(c))return{stiffness:K6.stiffness,damping:K6.damping,duration:e};{let t=c**2*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}var YRe=12;function XRe(e,t,n){let r=n;for(let n=1;n<YRe;n++)r-=e(r)/t(r);return r}function J6(e,t){return e*Math.sqrt(1-t*t)}var ZRe=[`duration`,`bounce`],QRe=[`stiffness`,`damping`,`mass`];function Y6(e,t){return t.some(t=>e[t]!==void 0)}function $Re(e){let t={velocity:K6.velocity,stiffness:K6.stiffness,damping:K6.damping,mass:K6.mass,isResolvedFromDuration:!1,...e};if(!Y6(e,QRe)&&Y6(e,ZRe))if(e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*j4(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:K6.mass,stiffness:i,damping:a}}else{let n=JRe(e);t={...t,...n,mass:K6.mass},t.isResolvedFromDuration=!0}return t}function X6(e=K6.visualDuration,t=K6.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},{restSpeed:r,restDelta:i}=n,a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=$Re({...n,velocity:-K2(n.velocity||0)}),m=f||0,h=l/(2*Math.sqrt(c*u)),g=o-a,_=K2(Math.sqrt(c/u)),v=Math.abs(g)<5;r||=v?K6.restSpeed.granular:K6.restSpeed.default,i||=v?K6.restDelta.granular:K6.restDelta.default;let y;if(h<1){let e=J6(_,h);y=t=>o-Math.exp(-h*_*t)*((m+h*_*g)/e*Math.sin(e*t)+g*Math.cos(e*t))}else if(h===1)y=e=>o-Math.exp(-_*e)*(g+(m+_*g)*e);else{let e=_*Math.sqrt(h*h-1);y=t=>{let n=Math.exp(-h*_*t),r=Math.min(e*t,300);return o-n*((m+h*_*g)*Math.sinh(r)+e*g*Math.cosh(r))/e}}let b={calculatedDuration:p&&d||null,next:e=>{let t=y(e);if(p)s.done=e>=d;else{let n=0;h<1&&(n=e===0?G2(m):G6(y,e,t));let a=Math.abs(n)<=r,c=Math.abs(o-t)<=i;s.done=a&&c}return s.value=s.done?o:t,s},toString:()=>{let e=Math.min(s3(b),o3),t=f3(t=>b.next(e*t).value,e,30);return e+`ms `+t}};return b}function Z6({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>s!==void 0&&e<s||c!==void 0&&e>c,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)<Math.abs(c-e)?s:c,h=n*t,g=d+h,_=o===void 0?g:o(g);_!==g&&(h=_-d);let v=e=>-h*Math.exp(-e/r),y=e=>_+v(e),b=e=>{let t=v(e),n=y(e);f.done=Math.abs(t)<=l,f.value=f.done?_:n},x,S,C=e=>{p(f.value)&&(x=e,S=X6({keyframes:[f.value,m(f.value)],velocity:G6(y,e,f.value),damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return!S&&x===void 0&&(t=!0,b(e),C(e)),x!==void 0&&e>=x?S.next(e-x):(!t&&b(e),f)}}}var eze=z3(.42,0,1,1),tze=z3(0,0,.58,1),Q6=z3(.42,0,.58,1),nze=e=>Array.isArray(e)&&typeof e[0]!=`number`,$6={linear:B2,easeIn:eze,easeInOut:Q6,easeOut:tze,circIn:K3,circInOut:J3,circOut:q3,backIn:U3,backInOut:W3,backOut:H3,anticipate:G3},e8=e=>{if(u3(e)){H2(e.length===4,`Cubic bezier arrays must contain four numerical values.`);let[t,n,r,i]=e;return z3(t,n,r,i)}else if(typeof e==`string`)return H2($6[e]!==void 0,`Invalid easing type '${e}'`),$6[e];return e};function rze(e,t,n){let r=[],i=n||W6,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=B6(Array.isArray(t)?t[n]||B2:t,a)),r.push(a)}return r}function ize(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(H2(a===t.length,`Both input and output ranges must be the same length`),a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=rze(t,r,i),c=s.length,l=n=>{if(o&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=W2(e[r],e[r+1],n);return s[r](i)};return n?t=>l(j4(e[0],e[a-1],t)):l}function aze(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=W2(0,t,r);e.push(P6(n,1,i))}}function oze(e){let t=[0];return aze(t,e.length-1),t}function sze(e,t){return e.map(e=>e*t)}function cze(e,t){return e.map(()=>t||Q6).splice(0,e.length-1)}function t8({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=nze(r)?r.map(e8):e8(r),a={done:!1,value:t[0]},o=ize(sze(n&&n.length===t.length?n:oze(t),e),t,{ease:Array.isArray(i)?i:cze(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var lze=e=>{let t=({timestamp:t})=>e(t);return{start:()=>Y2.update(t,!0),stop:()=>X2(t),now:()=>Z2.isProcessing?Z2.timestamp:k3.now()}},uze={decay:Z6,inertia:Z6,tween:t8,keyframes:t8,spring:X6},dze=e=>e/100,n8=class extends N6{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState=`running`,this.startTime=null,this.state=`idle`,this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state===`idle`)return;this.teardown();let{onStop:e}=this.options;e&&e()};let{name:t,motionValue:n,element:r,keyframes:i}=this.options;this.resolver=new(r?.KeyframeResolver||w6)(i,(e,t)=>this.onKeyframesResolved(e,t),t,n,r),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){let{type:t=`keyframes`,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=this.options,o=c3(t)?t:uze[t]||t8,s,c;o!==t8&&typeof e[0]!=`number`&&(s=B6(dze,W6(e[0],e[1])),e=[0,100]);let l=o({...this.options,keyframes:e});i===`mirror`&&(c=o({...this.options,keyframes:[...e].reverse(),velocity:-a})),l.calculatedDuration===null&&(l.calculatedDuration=s3(l));let{calculatedDuration:u}=l,d=u+r,f=d*(n+1)-r;return{generator:l,mirroredGenerator:c,mapPercentToKeyframes:s,calculatedDuration:u,resolvedDuration:d,totalDuration:f}}onPostResolved(){let{autoplay:e=!0}=this.options;this.play(),this.pendingPlayState===`paused`||!e?this.pause():this.state=this.pendingPlayState}tick(e,t=!1){let{resolved:n}=this;if(!n){let{keyframes:e}=this.options;return{done:!0,value:e[e.length-1]}}let{finalKeyframe:r,generator:i,mirroredGenerator:a,mapPercentToKeyframes:o,keyframes:s,calculatedDuration:c,totalDuration:l,resolvedDuration:u}=n;if(this.startTime===null)return i.next(0);let{delay:d,repeat:f,repeatType:p,repeatDelay:m,onUpdate:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-l/this.speed,this.startTime)),t?this.currentTime=e:this.holdTime===null?this.currentTime=Math.round(e-this.startTime)*this.speed:this.currentTime=this.holdTime;let g=this.currentTime-d*(this.speed>=0?1:-1),_=this.speed>=0?g<0:g>l;this.currentTime=Math.max(g,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=l);let v=this.currentTime,y=i;if(f){let e=Math.min(this.currentTime,l)/u,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),n===1&&t--,t=Math.min(t,f+1),t%2&&(p===`reverse`?(n=1-n,m&&(n-=m/u)):p===`mirror`&&(y=a)),v=j4(0,1,n)*u}let b=_?{done:!1,value:s[0]}:y.next(v);o&&(b.value=o(b.value));let{done:x}=b;!_&&c!==null&&(x=this.speed>=0?this.currentTime>=l:this.currentTime<=0);let S=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&x);return S&&r!==void 0&&(b.value=M6(s,this.options,r)),h&&h(b.value),S&&this.finish(),b}get duration(){let{resolved:e}=this;return e?K2(e.calculatedDuration):0}get time(){return K2(this.currentTime)}set time(e){e=G2(e),this.currentTime=e,this.holdTime!==null||this.speed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=K2(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState=`running`;return}if(this.isStopped)return;let{driver:e=lze,onPlay:t,startTime:n}=this.options;this.driver||=e(e=>this.tick(e)),t&&t();let r=this.driver.now();this.holdTime===null?this.startTime?this.state===`finished`&&(this.startTime=r):this.startTime=n??this.calcStartTime():this.startTime=r-this.holdTime,this.state===`finished`&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state=`running`,this.driver.start()}pause(){if(!this._resolved){this.pendingPlayState=`paused`;return}this.state=`paused`,this.holdTime=this.currentTime??0}complete(){this.state!==`running`&&this.play(),this.pendingPlayState=this.state=`finished`,this.holdTime=null}finish(){this.teardown(),this.state=`finished`;let{onComplete:e}=this.options;e&&e()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state=`idle`,this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&=(this.driver.stop(),void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}},fze=new Set([`opacity`,`clipPath`,`filter`,`transform`]);function pze(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeInOut`,times:c}={}){let l={[t]:n};c&&(l.offset=c);let u=g3(s,i);return Array.isArray(u)&&(l.easing=u),e.animate(l,{delay:r,duration:i,easing:Array.isArray(u)?`linear`:u,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`})}var mze=U2(()=>Object.hasOwnProperty.call(Element.prototype,`animate`)),r8=10,hze=2e4;function gze(e){return c3(e.type)||e.type===`spring`||!p3(e.ease)}function _ze(e,t){let n=new n8({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0}),r={done:!1,value:e[0]},i=[],a=0;for(;!r.done&&a<hze;)r=n.sample(a),i.push(r.value),a+=r8;return{times:void 0,keyframes:i,duration:a-r8,ease:`linear`}}var i8={anticipate:G3,backInOut:W3,circInOut:J3};function vze(e){return e in i8}var a8=class extends N6{constructor(e){super(e);let{name:t,motionValue:n,element:r,keyframes:i}=this.options;this.resolver=new A6(i,(e,t)=>this.onKeyframesResolved(e,t),t,n,r),this.resolver.scheduleResolve()}initPlayback(e,t){let{duration:n=300,times:r,ease:i,type:a,motionValue:o,name:s,startTime:c}=this.options;if(!o.owner||!o.owner.current)return!1;if(typeof i==`string`&&d3()&&vze(i)&&(i=i8[i]),gze(this.options)){let{onComplete:t,onUpdate:o,motionValue:s,element:c,...l}=this.options,u=_ze(e,l);e=u.keyframes,e.length===1&&(e[1]=e[0]),n=u.duration,r=u.times,i=u.ease,a=`keyframes`}let l=pze(o.owner.current,s,e,{...this.options,duration:n,times:r,ease:i});return l.startTime=c??this.calcStartTime(),this.pendingTimeline?(l3(l,this.pendingTimeline),this.pendingTimeline=void 0):l.onfinish=()=>{let{onComplete:n}=this.options;o.set(M6(e,this.options,t)),n&&n(),this.cancel(),this.resolveFinishedPromise()},{animation:l,duration:n,times:r,type:a,ease:i,keyframes:e}}get duration(){let{resolved:e}=this;if(!e)return 0;let{duration:t}=e;return K2(t)}get time(){let{resolved:e}=this;if(!e)return 0;let{animation:t}=e;return K2(t.currentTime||0)}set time(e){let{resolved:t}=this;if(!t)return;let{animation:n}=t;n.currentTime=G2(e)}get speed(){let{resolved:e}=this;if(!e)return 1;let{animation:t}=e;return t.playbackRate}set speed(e){let{resolved:t}=this;if(!t)return;let{animation:n}=t;n.playbackRate=e}get state(){let{resolved:e}=this;if(!e)return`idle`;let{animation:t}=e;return t.playState}get startTime(){let{resolved:e}=this;if(!e)return null;let{animation:t}=e;return t.startTime}attachTimeline(e){if(!this._resolved)this.pendingTimeline=e;else{let{resolved:t}=this;if(!t)return B2;let{animation:n}=t;l3(n,e)}return B2}play(){if(this.isStopped)return;let{resolved:e}=this;if(!e)return;let{animation:t}=e;t.playState===`finished`&&this.updateFinishedPromise(),t.play()}pause(){let{resolved:e}=this;if(!e)return;let{animation:t}=e;t.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state===`idle`)return;this.resolveFinishedPromise(),this.updateFinishedPromise();let{resolved:e}=this;if(!e)return;let{animation:t,keyframes:n,duration:r,type:i,ease:a,times:o}=e;if(t.playState===`idle`||t.playState===`finished`)return;if(this.time){let{motionValue:e,onUpdate:t,onComplete:s,element:c,...l}=this.options,u=new n8({...l,keyframes:n,duration:r,type:i,ease:a,times:o,isGenerator:!0}),d=G2(this.time);e.setWithVelocity(u.sample(d-r8).value,u.sample(d).value,r8)}let{onStop:s}=this.options;s&&s(),this.cancel()}complete(){let{resolved:e}=this;e&&e.animation.finish()}cancel(){let{resolved:e}=this;e&&e.animation.cancel()}static supports(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o}=e;if(!t||!t.owner||!(t.owner.current instanceof HTMLElement))return!1;let{onUpdate:s,transformTemplate:c}=t.owner.getProps();return mze()&&n&&fze.has(n)&&!s&&!c&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}},yze={type:`spring`,stiffness:500,damping:25,restSpeed:10},bze=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),xze={type:`keyframes`,duration:.8},Sze={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},Cze=(e,{keyframes:t})=>t.length>2?xze:E4.has(e)?e.startsWith(`scale`)?bze(t[1]):yze:Sze;function wze({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:a,repeatType:o,repeatDelay:s,from:c,elapsed:l,...u}){return!!Object.keys(u).length}var o8=(e,t,n,r={},i,a)=>o=>{let s=a3(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=G2(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};wze(s)||(u={...u,...Cze(e,u)}),u.duration&&=G2(u.duration),u.repeatDelay&&=G2(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(u.duration=0,u.delay===0&&(d=!0)),d&&!a&&t.get()!==void 0){let e=M6(u.keyframes,s);if(e!==void 0)return Y2.update(()=>{u.onUpdate(e),u.onComplete()}),new WLe([])}return!a&&a8.supports(u)?new a8(u):new n8(u)};function Tze({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function s8(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a=e.getDefaultTransition(),transitionEnd:o,...s}=t;r&&(a=r);let c=[],l=i&&e.animationState&&e.animationState.getState()[i];for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||l&&Tze(l,t))continue;let o={delay:n,...a3(a||{},t)},u=!1;if(window.MotionHandoffAnimation){let n=L3(e);if(n){let e=window.MotionHandoffAnimation(n,t,Y2);e!==null&&(o.startTime=e,u=!0)}}I3(e,t),r.start(o8(t,r,i,e.shouldReduceMotion&&D3.has(t)?{type:!1}:o,e,u));let d=r.animation;d&&c.push(d)}return o&&Promise.all(c).then(()=>{Y2.update(()=>{o&&iRe(e,o)})}),c}function c8(e,t,n={}){let r=i3(e,t,n.type===`exit`?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let a=r?()=>Promise.all(s8(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return Eze(e,t,a+r,o,s,n)}:()=>Promise.resolve(),{when:s}=i;if(s){let[e,t]=s===`beforeChildren`?[a,o]:[o,a];return e().then(()=>t())}else return Promise.all([a(),o(n.delay)])}function Eze(e,t,n=0,r=0,i=1,a){let o=[],s=(e.variantChildren.size-1)*r,c=i===1?(e=0)=>e*r:(e=0)=>s-e*r;return Array.from(e.variantChildren).sort(Dze).forEach((e,r)=>{e.notify(`AnimationStart`,t),o.push(c8(e,t,{...a,delay:n+c(r)}).then(()=>e.notify(`AnimationComplete`,t)))}),Promise.all(o)}function Dze(e,t){return e.sortNodePosition(t)}function Oze(e,t,n={}){e.notify(`AnimationStart`,t);let r;if(Array.isArray(t)){let i=t.map(t=>c8(e,t,n));r=Promise.all(i)}else if(typeof t==`string`)r=c8(e,t,n);else{let i=typeof t==`function`?i3(e,t,n.custom):t;r=Promise.all(s8(e,i,n))}return r.then(()=>{e.notify(`AnimationComplete`,t)})}var kze=c4.length;function l8(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&l8(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<kze;n++){let r=c4[n],i=e.props[r];(a4(i)||i===!1)&&(t[r]=i)}return t}var Aze=[...s4].reverse(),jze=s4.length;function Mze(e){return t=>Promise.all(t.map(({animation:t,options:n})=>Oze(e,t,n)))}function Nze(e){let t=Mze(e),n=d8(),r=!0,i=t=>(n,r)=>{let i=i3(e,r,t===`exit`?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function a(n){t=n(e)}function o(a){let{props:o}=e,s=l8(e.parent)||{},c=[],l=new Set,u={},d=1/0;for(let t=0;t<jze;t++){let f=Aze[t],p=n[f],m=o[f]===void 0?s[f]:o[f],h=a4(m),g=f===a?p.isActive:null;g===!1&&(d=t);let _=m===s[f]&&m!==o[f]&&h;if(_&&r&&e.manuallyAnimateOnMount&&(_=!1),p.protectedKeys={...u},!p.isActive&&g===null||!m&&!p.prevProp||o4(m)||typeof m==`boolean`)continue;let v=Pze(p.prevProp,m),y=v||f===a&&p.isActive&&!_&&h||t>d&&h,b=!1,x=Array.isArray(m)?m:[m],S=x.reduce(i(f),{});g===!1&&(S={});let{prevResolvedValues:C={}}=p,w={...C,...S},T=t=>{y=!0,l.has(t)&&(b=!0,l.delete(t)),p.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in w){let t=S[e],n=C[e];if(u.hasOwnProperty(e))continue;let r=!1;r=x4(t)&&x4(n)?!r3(t,n):t!==n,r?t==null?l.add(e):T(e):t!==void 0&&l.has(e)?T(e):p.protectedKeys[e]=!0}p.prevProp=m,p.prevResolvedValues=S,p.isActive&&(u={...u,...S}),r&&e.blockInitialAnimation&&(y=!1),y&&(!(_&&v)||b)&&c.push(...x.map(e=>({animation:e,options:{type:f}})))}if(l.size){let t={};l.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),c.push({animation:t})}let f=!!c.length;return r&&(o.initial===!1||o.initial===o.animate)&&!e.manuallyAnimateOnMount&&(f=!1),r=!1,f?t(c):Promise.resolve()}function s(t,r){var i;if(n[t].isActive===r)return Promise.resolve();(i=e.variantChildren)==null||i.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let a=o(t);for(let e in n)n[e].protectedKeys={};return a}return{animateChanges:o,setActive:s,setAnimateFunction:a,getState:()=>n,reset:()=>{n=d8(),r=!0}}}function Pze(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!r3(t,e):!1}function u8(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function d8(){return{animate:u8(!0),whileInView:u8(),whileHover:u8(),whileTap:u8(),whileDrag:u8(),whileFocus:u8(),exit:u8()}}var f8=class{constructor(e){this.isMounted=!1,this.node=e}update(){}},Fze=class extends f8{constructor(e){super(e),e.animationState||=Nze(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();o4(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)==null||e.call(this)}},Ize=0,Lze={animation:{Feature:Fze},exit:{Feature:class extends f8{constructor(){super(...arguments),this.id=Ize++}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;let r=this.node.animationState.setActive(`exit`,!e);t&&!e&&r.then(()=>t(this.id))}mount(){let{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}}};function p8(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function m8(e){return{point:{x:e.pageX,y:e.pageY}}}var Rze=e=>t=>S3(t)&&e(t,m8(t));function h8(e,t,n,r){return p8(e,t,Rze(n),r)}var g8=(e,t)=>Math.abs(e-t);function zze(e,t){let n=g8(e.x,t.x),r=g8(e.y,t.y);return Math.sqrt(n**2+r**2)}var _8=class{constructor(e,t,{transformPagePoint:n,contextWindow:r,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let e=b8(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=zze(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=Z2;this.history.push({...r,timestamp:i});let{onStart:a,onMove:o}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=v8(t,this.transformPagePoint),Y2.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if(this.dragSnapToOrigin&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=b8(e.type===`pointercancel`?this.lastMoveEventInfo:v8(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!S3(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.contextWindow=r||window;let a=v8(m8(e),this.transformPagePoint),{point:o}=a,{timestamp:s}=Z2;this.history=[{...o,timestamp:s}];let{onSessionStart:c}=t;c&&c(e,b8(a,this.history)),this.removeListeners=B6(h8(this.contextWindow,`pointermove`,this.handlePointerMove),h8(this.contextWindow,`pointerup`,this.handlePointerUp),h8(this.contextWindow,`pointercancel`,this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),X2(this.updatePoint)}};function v8(e,t){return t?{point:t(e.point)}:e}function y8(e,t){return{x:e.x-t.x,y:e.y-t.y}}function b8({point:e},t){return{point:e,delta:y8(e,x8(t)),offset:y8(e,Bze(t)),velocity:Vze(t,.1)}}function Bze(e){return e[0]}function x8(e){return e[e.length-1]}function Vze(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=x8(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>G2(t)));)n--;if(!r)return{x:0,y:0};let a=K2(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};let o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}var S8=1e-4,Hze=1-S8,Uze=1+S8,C8=.01,Wze=0-C8,Gze=0+C8;function w8(e){return e.max-e.min}function Kze(e,t,n){return Math.abs(e-t)<=n}function T8(e,t,n,r=.5){e.origin=r,e.originPoint=P6(t.min,t.max,e.origin),e.scale=w8(n)/w8(t),e.translate=P6(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Hze&&e.scale<=Uze||isNaN(e.scale))&&(e.scale=1),(e.translate>=Wze&&e.translate<=Gze||isNaN(e.translate))&&(e.translate=0)}function E8(e,t,n,r){T8(e.x,t.x,n.x,r?r.originX:void 0),T8(e.y,t.y,n.y,r?r.originY:void 0)}function D8(e,t,n){e.min=n.min+t.min,e.max=e.min+w8(t)}function qze(e,t,n){D8(e.x,t.x,n.x),D8(e.y,t.y,n.y)}function O8(e,t,n){e.min=t.min-n.min,e.max=e.min+w8(t)}function k8(e,t,n){O8(e.x,t.x,n.x),O8(e.y,t.y,n.y)}function Jze(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?P6(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?P6(n,e,r.max):Math.min(e,n)),e}function A8(e,t,n){return{min:t===void 0?void 0:e.min+t,max:n===void 0?void 0:e.max+n-(e.max-e.min)}}function Yze(e,{top:t,left:n,bottom:r,right:i}){return{x:A8(e.x,n,i),y:A8(e.y,t,r)}}function j8(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function Xze(e,t){return{x:j8(e.x,t.x),y:j8(e.y,t.y)}}function Zze(e,t){let n=.5,r=w8(e),i=w8(t);return i>r?n=W2(t.min,t.max-r,e.min):r>i&&(n=W2(e.min,e.max-i,t.min)),j4(0,1,n)}function Qze(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}var M8=.35;function $ze(e=M8){return e===!1?e=0:e===!0&&(e=M8),{x:N8(e,`left`,`right`),y:N8(e,`top`,`bottom`)}}function N8(e,t,n){return{min:P8(e,t),max:P8(e,n)}}function P8(e,t){return typeof e==`number`?e:e[t]||0}var F8=()=>({translate:0,scale:1,origin:0,originPoint:0}),I8=()=>({x:F8(),y:F8()}),L8=()=>({min:0,max:0}),R8=()=>({x:L8(),y:L8()});function z8(e){return[e(`x`),e(`y`)]}function B8({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function eBe({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function tBe(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function V8(e){return e===void 0||e===1}function H8({scale:e,scaleX:t,scaleY:n}){return!V8(e)||!V8(t)||!V8(n)}function U8(e){return H8(e)||W8(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function W8(e){return G8(e.x)||G8(e.y)}function G8(e){return e&&e!==`0%`}function K8(e,t,n){return n+t*(e-n)}function q8(e,t,n,r,i){return i!==void 0&&(e=K8(e,i,r)),K8(e,n,r)+t}function J8(e,t=0,n=1,r,i){e.min=q8(e.min,t,n,r,i),e.max=q8(e.max,t,n,r,i)}function Y8(e,{x:t,y:n}){J8(e.x,t.translate,t.scale,t.originPoint),J8(e.y,n.translate,n.scale,n.originPoint)}var X8=.999999999999,Z8=1.0000000000001;function nBe(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;let{visualElement:i}=a.options;i&&i.props.style&&i.props.style.display===`contents`||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&e5(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,Y8(e,o)),r&&U8(a.latestValues)&&e5(e,a.latestValues))}t.x<Z8&&t.x>X8&&(t.x=1),t.y<Z8&&t.y>X8&&(t.y=1)}function Q8(e,t){e.min+=t,e.max+=t}function $8(e,t,n,r,i=.5){J8(e,t,n,P6(e.min,e.max,i),r)}function e5(e,t){$8(e.x,t.x,t.scaleX,t.scale,t.originX),$8(e.y,t.y,t.scaleY,t.scale,t.originY)}function t5(e,t){return B8(tBe(e.getBoundingClientRect(),t))}function rBe(e,t,n){let r=t5(e,n),{scroll:i}=t;return i&&(Q8(r.x,i.offset.x),Q8(r.y,i.offset.y)),r}var n5=({current:e})=>e?e.ownerDocument.defaultView:null,iBe=new WeakMap,aBe=class{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=R8(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){let{presenceContext:n}=this.visualElement;if(n&&n.isPresent===!1)return;let r=e=>{let{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(m8(e).point)},i=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=$Le(n),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),z8(e=>{let t=this.getAxisMotionValue(e).get()||0;if(L4.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=w8(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&Y2.postRender(()=>i(e,t)),I3(this.visualElement,`transform`);let{animationState:a}=this.visualElement;a&&a.setActive(`whileDrag`,!0)},a=(e,t)=>{let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:o}=t;if(r&&this.currentDirection===null){this.currentDirection=oBe(o),this.currentDirection!==null&&i&&i(this.currentDirection);return}this.updateAxis(`x`,t.point,o),this.updateAxis(`y`,t.point,o),this.visualElement.render(),a&&a(e,t)},o=(e,t)=>this.stop(e,t),s=()=>z8(e=>this.getAnimationState(e)===`paused`&&this.getAxisMotionValue(e).animation?.play()),{dragSnapToOrigin:c}=this.getProps();this.panSession=new _8(e,{onSessionStart:r,onStart:i,onMove:a,onSessionEnd:o,resumeAnimation:s},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,contextWindow:n5(this.visualElement)})}stop(e,t){let n=this.isDragging;if(this.cancel(),!n)return;let{velocity:r}=t;this.startAnimation(r);let{onDragEnd:i}=this.getProps();i&&Y2.postRender(()=>i(e,t))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive(`whileDrag`,!1)}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!r5(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=Jze(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&f4(e)?this.constraints||=this.resolveRefConstraints():e&&n?this.constraints=Yze(n.layoutBox,e):this.constraints=!1,this.elastic=$ze(t),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&z8(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=Qze(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!f4(e))return!1;let n=e.current;H2(n!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;let i=rBe(n,r.root,this.visualElement.getTransformPagePoint()),a=Xze(r.layout.layoutBox,i);if(t){let e=t(eBe(a));this.hasMutatedConstraints=!!e,e&&(a=B8(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=z8(o=>{if(!r5(o,t,this.currentDirection))return;let c=s&&s[o]||{};a&&(c={min:0,max:0});let l=r?200:1e6,u=r?40:1e7,d={type:`inertia`,velocity:n?e[o]:0,bounceStiffness:l,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...i,...c};return this.startAxisValueAnimation(o,d)});return Promise.all(c).then(o)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return I3(this.visualElement,e),n.start(o8(e,n,0,t,this.visualElement,!1))}stopAnimation(){z8(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){z8(e=>this.getAxisMotionValue(e).animation?.pause())}getAnimationState(e){return this.getAxisMotionValue(e).animation?.state}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps();return n[t]||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){z8(t=>{let{drag:n}=this.getProps();if(!r5(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:a}=r.layout.layoutBox[t];i.set(e[t]-P6(n,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!f4(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};z8(e=>{let t=this.getAxisMotionValue(e);if(t&&this.constraints!==!1){let n=t.get();r[e]=Zze({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},``):`none`,n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),z8(t=>{if(!r5(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:a}=this.constraints[t];n.set(P6(i,a,r[t]))})}addListeners(){if(!this.visualElement.current)return;iBe.set(this.visualElement,this);let e=this.visualElement.current,t=h8(e,`pointerdown`,e=>{let{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)}),n=()=>{let{dragConstraints:e}=this.getProps();f4(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,i=r.addEventListener(`measure`,n);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),Y2.read(n);let a=p8(window,`resize`,()=>this.scalePositionWithinConstraints()),o=r.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(z8(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{a(),t(),i(),o&&o()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=M8,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function r5(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function oBe(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}var sBe=class extends f8{constructor(e){super(e),this.removeGroupControls=B2,this.removeListeners=B2,this.controls=new aBe(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||B2}unmount(){this.removeGroupControls(),this.removeListeners()}},i5=e=>(t,n)=>{e&&Y2.postRender(()=>e(t,n))},cBe=class extends f8{constructor(){super(...arguments),this.removePointerDownListener=B2}onPointerDown(e){this.session=new _8(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:n5(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:i5(e),onStart:i5(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&Y2.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=h8(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}},a5={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function o5(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var s5={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`)if(R4.test(e))e=parseFloat(e);else return e;return`${o5(e,t.target.x)}% ${o5(e,t.target.y)}%`}},lBe={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=d6.parse(e);if(i.length>5)return r;let a=d6.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=P6(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},uBe=class extends H.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;MLe(dBe),i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),i.root.didUpdate(),i.addEventListener(`animationComplete`,()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),a5.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,a=n.projection;return a?(a.isPresent=i,r||e.layoutDependency!==t||t===void 0?a.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?a.promote():a.relegate()||Y2.postRender(()=>{let e=a.getStack();(!e||!e.members.length)&&this.safeToRemove()})),null):null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),h4.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}};function c5(e){let[t,n]=JIe(),r=(0,H.useContext)(I2);return(0,U.jsx)(uBe,{...e,layoutGroup:r,switchLayoutGroup:(0,H.useContext)(g4),isPresent:t,safeToRemove:n})}var dBe={borderRadius:{...s5,applyTo:[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`]},borderTopLeftRadius:s5,borderTopRightRadius:s5,borderBottomLeftRadius:s5,borderBottomRightRadius:s5,boxShadow:lBe};function fBe(e,t,n){let r=S4(e)?e:F3(e);return r.start(o8(``,r,t,n)),r.animation}function pBe(e){return e instanceof SVGElement&&e.tagName!==`svg`}var mBe=(e,t)=>e.depth-t.depth,hBe=class{constructor(){this.children=[],this.isDirty=!1}add(e){A3(this.children,e),this.isDirty=!0}remove(e){j3(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(mBe),this.isDirty=!1,this.children.forEach(e)}};function gBe(e,t){let n=k3.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(X2(r),e(a-t))};return Y2.read(r,!0),()=>X2(r)}var l5=[`TopLeft`,`TopRight`,`BottomLeft`,`BottomRight`],_Be=l5.length,u5=e=>typeof e==`string`?parseFloat(e):e,d5=e=>typeof e==`number`||R4.test(e);function vBe(e,t,n,r,i,a){i?(e.opacity=P6(0,n.opacity===void 0?1:n.opacity,yBe(r)),e.opacityExit=P6(t.opacity===void 0?1:t.opacity,0,bBe(r))):a&&(e.opacity=P6(t.opacity===void 0?1:t.opacity,n.opacity===void 0?1:n.opacity,r));for(let i=0;i<_Be;i++){let a=`border${l5[i]}Radius`,o=f5(t,a),s=f5(n,a);o===void 0&&s===void 0||(o||=0,s||=0,o===0||s===0||d5(o)===d5(s)?(e[a]=Math.max(P6(u5(o),u5(s),r),0),(L4.test(s)||L4.test(o))&&(e[a]+=`%`)):e[a]=s)}(t.rotate||n.rotate)&&(e.rotate=P6(t.rotate||0,n.rotate||0,r))}function f5(e,t){return e[t]===void 0?e.borderRadius:e[t]}var yBe=p5(0,.5,q3),bBe=p5(.5,.95,B2);function p5(e,t,n){return r=>r<e?0:r>t?1:n(W2(e,t,r))}function m5(e,t){e.min=t.min,e.max=t.max}function h5(e,t){m5(e.x,t.x),m5(e.y,t.y)}function g5(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function _5(e,t,n,r,i){return e-=t,e=K8(e,1/n,r),i!==void 0&&(e=K8(e,1/i,r)),e}function xBe(e,t=0,n=1,r=.5,i,a=e,o=e){if(L4.test(t)&&(t=parseFloat(t),t=P6(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=P6(a.min,a.max,r);e===a&&(s-=t),e.min=_5(e.min,t,n,s,i),e.max=_5(e.max,t,n,s,i)}function v5(e,t,[n,r,i],a,o){xBe(e,t[n],t[r],t[i],t.scale,a,o)}var SBe=[`x`,`scaleX`,`originX`],CBe=[`y`,`scaleY`,`originY`];function y5(e,t,n,r){v5(e.x,t,SBe,n?n.x:void 0,r?r.x:void 0),v5(e.y,t,CBe,n?n.y:void 0,r?r.y:void 0)}function b5(e){return e.translate===0&&e.scale===1}function x5(e){return b5(e.x)&&b5(e.y)}function S5(e,t){return e.min===t.min&&e.max===t.max}function wBe(e,t){return S5(e.x,t.x)&&S5(e.y,t.y)}function C5(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function w5(e,t){return C5(e.x,t.x)&&C5(e.y,t.y)}function T5(e){return w8(e.x)/w8(e.y)}function E5(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}var TBe=class{constructor(){this.members=[]}add(e){A3(this.members,e),e.scheduleRender()}remove(e){if(j3(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let t=this.members.findIndex(t=>e===t);if(t===0)return!1;let n;for(let e=t;e>=0;e--){let t=this.members[e];if(t.isPresent!==!1){n=t;break}}return n?(this.promote(n),!0):!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);let{crossfade:r}=e.options;r===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{let{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}};function EBe(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,rotateX:i,rotateY:a,skewX:o,skewY:s}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotateX(${i}deg) `),a&&(r+=`rotateY(${a}deg) `),o&&(r+=`skewX(${o}deg) `),s&&(r+=`skewY(${s}deg) `)}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||`none`}var D5={type:`projectionFrame`,totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},O5=typeof window<`u`&&window.MotionDebug!==void 0,k5=[``,`X`,`Y`,`Z`],DBe={visibility:`hidden`},A5=1e3,OBe=0;function j5(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function M5(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=L3(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,Y2,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&M5(r)}function N5({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=OBe++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,O5&&(D5.totalNodes=D5.resolvedTargetDeltas=D5.recalculatedProjection=0),this.nodes.forEach(jBe),this.nodes.forEach(IBe),this.nodes.forEach(LBe),this.nodes.forEach(MBe),O5&&window.MotionDebug.record(D5)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new hBe)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new M3),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t,n=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=pBe(t),this.instance=t;let{layoutId:r,layout:i,visualElement:a}=this.options;if(a&&!a.current&&a.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(i||r)&&(this.isLayoutDirty=!0),e){let n,r=()=>this.root.updateBlockedByResize=!1;e(t,()=>{this.root.updateBlockedByResize=!0,n&&n(),n=gBe(r,250),a5.hasAnimatedSinceResize&&(a5.hasAnimatedSinceResize=!1,this.nodes.forEach(F5))})}r&&this.root.registerSharedNode(r,this),this.options.animate!==!1&&a&&(r||i)&&this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let i=this.options.transition||a.getDefaultTransition()||HBe,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=a.getProps(),c=!this.targetLayout||!w5(this.targetLayout,r)||n,l=!t&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,l);let t={...a3(i,`layout`),onPlay:o,onComplete:s};(a.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||F5(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,X2(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(RBe),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&M5(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,t.updateScroll(`snapshot`),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(t===void 0&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,``):void 0,this.updateSnapshot(),e&&this.notifyListeners(`willUpdate`)}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(P5);return}this.isUpdating||this.nodes.forEach(PBe),this.isUpdating=!1,this.nodes.forEach(FBe),this.nodes.forEach(kBe),this.nodes.forEach(ABe),this.clearAllSnapshots();let e=k3.now();Z2.delta=j4(0,1e3/60,e-Z2.timestamp),Z2.timestamp=e,Z2.isProcessing=!0,Q2.update.process(Z2),Q2.preRender.process(Z2),Q2.render.process(Z2),Z2.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,h4.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(NBe),this.sharedNodes.forEach(zBe)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Y2.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Y2.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=R8(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners(`measure`,this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify(`LayoutMeasure`,this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e=`measure`){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!x5(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&(t||U8(this.latestValues)||a)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){let t=this.measurePageBox(),n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),UBe(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return R8();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(WBe))){let{scroll:e}=this.root;e&&(Q8(t.x,e.offset.x),Q8(t.y,e.offset.y))}return t}removeElementScroll(e){let t=R8();if(h5(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:a}=r;r!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&h5(t,e),Q8(t.x,i.offset.x),Q8(t.y,i.offset.y))}return t}applyTransform(e,t=!1){let n=R8();h5(n,e);for(let e=0;e<this.path.length;e++){let r=this.path[e];!t&&r.options.layoutScroll&&r.scroll&&r!==r.root&&e5(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),U8(r.latestValues)&&e5(n,r.latestValues)}return U8(this.latestValues)&&e5(n,this.latestValues),n}removeTransform(e){let t=R8();h5(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!n.instance||!U8(n.latestValues))continue;H8(n.latestValues)&&n.updateSnapshot();let r=R8();h5(r,n.measurePageBox()),y5(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return U8(this.latestValues)&&y5(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:e.crossfade===void 0?!0:e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Z2.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||=t.isProjectionDirty,this.isTransformDirty||=t.isTransformDirty,this.isSharedProjectionDirty||=t.isSharedProjectionDirty;let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;if(!(!this.layout||!(r||i))){if(this.resolvedRelativeTargetAt=Z2.timestamp,!this.targetDelta&&!this.relativeTarget){let e=this.getClosestProjectingParent();e&&e.layout&&this.animationProgress!==1?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=R8(),this.relativeTargetOrigin=R8(),k8(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),h5(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=R8(),this.targetWithTransforms=R8()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),qze(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):h5(this.target,this.layout.layoutBox),Y8(this.target,this.targetDelta)):h5(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let e=this.getClosestProjectingParent();e&&!!e.resumingFrom==!!this.resumingFrom&&!e.options.layoutScroll&&e.target&&this.animationProgress!==1?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=R8(),this.relativeTargetOrigin=R8(),k8(this.relativeTargetOrigin,this.target,e.target),h5(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}O5&&D5.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||H8(this.parent.latestValues)||W8(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===Z2.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;h5(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;nBe(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=R8());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(g5(this.prevProjectionDelta.x,this.projectionDelta.x),g5(this.prevProjectionDelta.y,this.projectionDelta.y)),E8(this.projectionDelta,this.layoutCorrected,s,this.latestValues),(this.treeScale.x!==a||this.treeScale.y!==o||!E5(this.projectionDelta.x,this.prevProjectionDelta.x)||!E5(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),O5&&D5.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){var t;if((t=this.options.visualElement)==null||t.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=I8(),this.projectionDelta=I8(),this.projectionDeltaWithTransform=I8()}setAnimationOrigin(e,t=!1){let n=this.snapshot,r=n?n.latestValues:{},i={...this.latestValues},a=I8();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let o=R8(),s=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),c=this.getStack(),l=!c||c.members.length<=1,u=!!(s&&!l&&this.options.crossfade===!0&&!this.path.some(VBe));this.animationProgress=0;let d;this.mixTargetDelta=t=>{let n=t/1e3;I5(a.x,e.x,n),I5(a.y,e.y,n),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(k8(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox),BBe(this.relativeTarget,this.relativeTargetOrigin,o,n),d&&wBe(this.relativeTarget,d)&&(this.isProjectionDirty=!1),d||=R8(),h5(d,this.relativeTarget)),s&&(this.animationValues=i,vBe(i,r,this.latestValues,n,u,l)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners(`animationStart`),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&=(X2(this.pendingAnimation),void 0),this.pendingAnimation=Y2.update(()=>{a5.hasAnimatedSinceResize=!0,this.currentAnimation=fBe(0,A5,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners(`animationComplete`)}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(A5),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(!(!t||!n||!r)){if(this!==e&&this.layout&&r&&V5(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||R8();let t=w8(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=w8(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}h5(t,n),e5(t,i),E8(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new TBe),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return e?e.lead===this:!0}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return e?e.relegate(this):!1}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&j5(`z`,e,r,this.animationValues);for(let t=0;t<k5.length;t++)j5(`rotate${k5[t]}`,e,r,this.animationValues),j5(`skew${k5[t]}`,e,r,this.animationValues);for(let t in e.render(),r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}getProjectionStyles(e){if(!this.instance||this.isSVG)return;if(!this.isVisible)return DBe;let t={visibility:``},n=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,t.opacity=``,t.pointerEvents=C4(e?.pointerEvents)||``,t.transform=n?n(this.latestValues,``):`none`,t;let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){let t={};return this.options.layoutId&&(t.opacity=this.latestValues.opacity===void 0?1:this.latestValues.opacity,t.pointerEvents=C4(e?.pointerEvents)||``),this.hasProjected&&!U8(this.latestValues)&&(t.transform=n?n({},``):`none`,this.hasProjected=!1),t}let i=r.animationValues||r.latestValues;this.applyTransformsToTarget(),t.transform=EBe(this.projectionDeltaWithTransform,this.treeScale,i),n&&(t.transform=n(i,t.transform));let{x:a,y:o}=this.projectionDelta;for(let e in t.transformOrigin=`${a.origin*100}% ${o.origin*100}% 0`,r.animationValues?t.opacity=r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:t.opacity=r===this?i.opacity===void 0?``:i.opacity:i.opacityExit===void 0?0:i.opacityExit,Z4){if(i[e]===void 0)continue;let{correct:n,applyTo:a}=Z4[e],o=t.transform===`none`?i[e]:n(i[e],r);if(a){let e=a.length;for(let n=0;n<e;n++)t[a[n]]=o}else t[e]=o}return this.options.layoutId&&(t.pointerEvents=r===this?C4(e?.pointerEvents)||``:`none`),t}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(P5),this.root.sharedNodes.clear()}}}function kBe(e){e.updateLayout()}function ABe(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners(`didUpdate`)){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;i===`size`?z8(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=w8(r);r.min=n[e].min,r.max=r.min+i}):V5(i,t.layoutBox,n)&&z8(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=w8(n[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=I8();E8(o,n,t.layoutBox);let s=I8();a?E8(s,e.applyTransform(r,!0),t.measuredBox):E8(s,n,t.layoutBox);let c=!x5(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let o=R8();k8(o,t.layoutBox,i.layoutBox);let s=R8();k8(s,n,a.layoutBox),w5(o,s)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=o,e.relativeParent=r)}}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:c,hasRelativeTargetChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function jBe(e){O5&&D5.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty),e.isTransformDirty||=e.parent.isTransformDirty)}function MBe(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function NBe(e){e.clearSnapshot()}function P5(e){e.clearMeasurements()}function PBe(e){e.isLayoutDirty=!1}function FBe(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function F5(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function IBe(e){e.resolveTargetDelta()}function LBe(e){e.calcProjection()}function RBe(e){e.resetSkewAndRotation()}function zBe(e){e.removeLeadSnapshot()}function I5(e,t,n){e.translate=P6(t.translate,0,n),e.scale=P6(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function L5(e,t,n,r){e.min=P6(t.min,n.min,r),e.max=P6(t.max,n.max,r)}function BBe(e,t,n,r){L5(e.x,t.x,n.x,r),L5(e.y,t.y,n.y,r)}function VBe(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var HBe={duration:.45,ease:[.4,0,.1,1]},R5=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),z5=R5(`applewebkit/`)&&!R5(`chrome/`)?Math.round:B2;function B5(e){e.min=z5(e.min),e.max=z5(e.max)}function UBe(e){B5(e.x),B5(e.y)}function V5(e,t,n){return e===`position`||e===`preserve-aspect`&&!Kze(T5(t),T5(n),.2)}function WBe(e){return e!==e.root&&e.scroll?.wasRoot}var GBe=N5({attachResizeListener:(e,t)=>p8(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),H5={current:void 0},U5=N5({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!H5.current){let e=new GBe({});e.mount(window),e.setOptions({layoutScroll:!0}),H5.current=e}return H5.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),KBe={pan:{Feature:cBe},drag:{Feature:sBe,ProjectionNode:U5,MeasureLayout:c5}};function W5(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive(`whileHover`,n===`Start`);let i=r[`onHover`+n];i&&Y2.postRender(()=>i(t,m8(t)))}var qBe=class extends f8{mount(){let{current:e}=this.node;e&&(this.unmount=JLe(e,e=>(W5(this.node,e,`Start`),e=>W5(this.node,e,`End`))))}unmount(){}},JBe=class extends f8{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(`:focus-visible`)}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive(`whileFocus`,!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive(`whileFocus`,!1),this.isActive=!1)}mount(){this.unmount=B6(p8(this.node.current,`focus`,()=>this.onFocus()),p8(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function G5(e,t,n){let{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive(`whileTap`,n===`Start`);let i=r[`onTap`+(n===`End`?``:n)];i&&Y2.postRender(()=>i(t,m8(t)))}var YBe=class extends f8{mount(){let{current:e}=this.node;e&&(this.unmount=QLe(e,e=>(G5(this.node,e,`Start`),(e,{success:t})=>G5(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}},K5=new WeakMap,q5=new WeakMap,XBe=e=>{let t=K5.get(e.target);t&&t(e)},ZBe=e=>{e.forEach(XBe)};function QBe({root:e,...t}){let n=e||document;q5.has(n)||q5.set(n,{});let r=q5.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(ZBe,{root:e,...t})),r[i]}function $Be(e,t,n){let r=QBe(t);return K5.set(e,n),r.observe(e),()=>{K5.delete(e),r.unobserve(e)}}var eVe={some:0,all:1},tVe=class extends f8{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r=`some`,once:i}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:typeof r==`number`?r:eVe[r]};return $Be(this.node.current,a,e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive(`whileInView`,t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),a=t?n:r;a&&a(e)})}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>`u`)return;let{props:e,prevProps:t}=this.node;[`amount`,`margin`,`root`].some(nVe(e,t))&&this.startObserver()}unmount(){}};function nVe({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var rVe={inView:{Feature:tVe},tap:{Feature:YBe},focus:{Feature:JBe},hover:{Feature:qBe}},iVe={layout:{ProjectionNode:U5,MeasureLayout:c5}},J5={current:null},Y5={current:!1};function aVe(){if(Y5.current=!0,z2)if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>J5.current=e.matches;e.addListener(t),t()}else J5.current=!1}var oVe=[...O6,i6,d6],sVe=e=>oVe.find(D6(e)),X5=new WeakMap;function cVe(e,t,n){for(let r in t){let i=t[r],a=n[r];if(S4(i))e.addValue(r,i);else if(S4(a))e.addValue(r,F3(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,F3(t===void 0?i:t,{owner:e}))}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var Z5=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],lVe=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,blockInitialAnimation:i,visualState:a},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=w6,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify(`Update`,this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=k3.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,Y2.render(this.render,!1,!0))};let{latestValues:s,renderState:c,onUpdate:l}=a;this.onUpdate=l,this.latestValues=s,this.baseTarget={...s},this.initialValues=t.initial?{...s}:{},this.renderState=c,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=o,this.blockInitialAnimation=!!i,this.isControllingVariants=l4(t),this.isVariantNode=u4(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in d){let t=d[e];s[e]!==void 0&&S4(t)&&t.set(s[e],!1)}}mount(e){this.current=e,X5.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),Y5.current||aVe(),this.shouldReduceMotion=this.reducedMotionConfig===`never`?!1:this.reducedMotionConfig===`always`?!0:J5.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let e in X5.delete(this.current),this.projection&&this.projection.unmount(),X2(this.notifyUpdate),X2(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}bindToMotionValue(e,t){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();let n=E4.has(e),r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&Y2.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),i=t.on(`renderRequest`,this.scheduleRender),a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i(),a&&a(),t.owner&&t.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e=`animation`;for(e in t4){let t=t4[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):R8()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<Z5.length;t++){let n=Z5[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e[`on`+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=cVe(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=F3(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n==`string`&&(T6(n)||Y3(n))?n=parseFloat(n):!sVe(n)&&d6.test(t)&&(n=m6(e,t)),this.setBaseTarget(e,S4(n)?n.get():n)),S4(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let{initial:t}=this.props,n;if(typeof t==`string`||typeof t==`object`){let r=b4(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&n!==void 0)return n;let r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!S4(r)?r:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new M3),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}},Q5=class extends lVe{constructor(){super(...arguments),this.KeyframeResolver=A6}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;S4(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}};function uVe(e){return window.getComputedStyle(e)}var dVe=class extends Q5{constructor(){super(...arguments),this.type=`html`,this.renderInstance=J4}readValueFromInstance(e,t){if(E4.has(t)){let e=p6(t);return e&&e.default||0}else{let n=uVe(e),r=(O4(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return t5(e,t)}build(e,t,n){H4(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return $4(e,t,n)}},fVe=class extends Q5{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=R8}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(E4.has(t)){let e=p6(t);return e&&e.default||0}return t=Y4.has(t)?t:p4(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return e3(e,t,n)}build(e,t,n){W4(e,t,this.isSVGTag,n.transformTemplate)}renderInstance(e,t,n,r){X4(e,t,n,r)}mount(e){this.isSVGTag=q4(e.tagName),super.mount(e)}},pVe=(e,t)=>v4(e)?new fVe(t):new dVe(t,{allowProjection:e!==H.Fragment}),mVe=rLe(VLe({...Lze,...rVe,...KBe,...iVe},pVe));function $5(e,t){let n;return(...r)=>{window.clearTimeout(n),n=window.setTimeout(()=>e(...r),t)}}function hVe({debounce:e,scroll:t,polyfill:n,offsetSize:r}={debounce:0,scroll:!1,offsetSize:!1}){let i=n||(typeof window>`u`?class{}:window.ResizeObserver);if(!i)throw Error(`This browser does not support ResizeObserver out of the box. See: https://github.com/react-spring/react-use-measure/#resize-observer-polyfills`);let[a,o]=(0,H.useState)({left:0,top:0,width:0,height:0,bottom:0,right:0,x:0,y:0}),s=(0,H.useRef)({element:null,scrollContainers:null,resizeObserver:null,lastBounds:a,orientationHandler:null}),c=e?typeof e==`number`?e:e.scroll:null,l=e?typeof e==`number`?e:e.resize:null,u=(0,H.useRef)(!1);(0,H.useEffect)(()=>(u.current=!0,()=>void(u.current=!1)));let[d,f,p]=(0,H.useMemo)(()=>{let e=()=>{if(!s.current.element)return;let{left:e,top:t,width:n,height:i,bottom:a,right:c,x:l,y:d}=s.current.element.getBoundingClientRect(),f={left:e,top:t,width:n,height:i,bottom:a,right:c,x:l,y:d};s.current.element instanceof HTMLElement&&r&&(f.height=s.current.element.offsetHeight,f.width=s.current.element.offsetWidth),Object.freeze(f),u.current&&!yVe(s.current.lastBounds,f)&&o(s.current.lastBounds=f)};return[e,l?$5(e,l):e,c?$5(e,c):e]},[o,r,c,l]);function m(){s.current.scrollContainers&&(s.current.scrollContainers.forEach(e=>e.removeEventListener(`scroll`,p,!0)),s.current.scrollContainers=null),s.current.resizeObserver&&(s.current.resizeObserver.disconnect(),s.current.resizeObserver=null),s.current.orientationHandler&&(`orientation`in screen&&`removeEventListener`in screen.orientation?screen.orientation.removeEventListener(`change`,s.current.orientationHandler):`onorientationchange`in window&&window.removeEventListener(`orientationchange`,s.current.orientationHandler))}function h(){s.current.element&&(s.current.resizeObserver=new i(p),s.current.resizeObserver.observe(s.current.element),t&&s.current.scrollContainers&&s.current.scrollContainers.forEach(e=>e.addEventListener(`scroll`,p,{capture:!0,passive:!0})),s.current.orientationHandler=()=>{p()},`orientation`in screen&&`addEventListener`in screen.orientation?screen.orientation.addEventListener(`change`,s.current.orientationHandler):`onorientationchange`in window&&window.addEventListener(`orientationchange`,s.current.orientationHandler))}return _Ve(p,!!t),gVe(f),(0,H.useEffect)(()=>{m(),h()},[t,p,f]),(0,H.useEffect)(()=>m,[]),[e=>{!e||e===s.current.element||(m(),s.current.element=e,s.current.scrollContainers=e7(e),h())},a,d]}function gVe(e){(0,H.useEffect)(()=>{let t=e;return window.addEventListener(`resize`,t),()=>void window.removeEventListener(`resize`,t)},[e])}function _Ve(e,t){(0,H.useEffect)(()=>{if(t){let t=e;return window.addEventListener(`scroll`,t,{capture:!0,passive:!0}),()=>void window.removeEventListener(`scroll`,t,!0)}},[e,t])}function e7(e){let t=[];if(!e||e===document.body)return t;let{overflow:n,overflowX:r,overflowY:i}=window.getComputedStyle(e);return[n,r,i].some(e=>e===`auto`||e===`scroll`)&&t.push(e),[...t,...e7(e.parentElement)]}var vVe=[`x`,`y`,`top`,`bottom`,`left`,`right`,`width`,`height`],yVe=(e,t)=>vVe.every(n=>e[n]===t[n]),t7=e=>{throw TypeError(e)},n7=(e,t,n)=>t.has(e)||t7(`Cannot `+n),r7=(e,t,n)=>(n7(e,t,`read from private field`),n?n.call(e):t.get(e)),i7=(e,t,n)=>t.has(e)?t7(`Cannot add the same private member more than once`):t instanceof WeakSet?t.add(e):t.set(e,n),a7=(e,t,n,r)=>(n7(e,t,`write to private field`),t.set(e,n),n),o7,bVe=class{constructor(){i7(this,o7),this.register=e=>{r7(this,o7).push(e)},this.unregister=e=>{for(;r7(this,o7).indexOf(e)!==-1;)r7(this,o7).splice(r7(this,o7).indexOf(e),1)},this.backendChanged=e=>{for(let t of r7(this,o7))t.backendChanged(e)},a7(this,o7,[])}};o7=new WeakMap;var s7,c7,l7,u7,d7,f7,p7,m7,h7,g7,_7,xVe=class e{constructor(t,n,r){if(i7(this,s7),i7(this,c7),i7(this,l7),i7(this,u7),i7(this,d7),i7(this,f7,(e,t,n)=>{if(!n.backend)throw Error(`You must specify a 'backend' property in your Backend entry: ${JSON.stringify(n)}`);let r=n.backend(e,t,n.options),i=n.id,a=!n.id&&r&&r.constructor;if(a&&(i=r.constructor.name),!i)throw Error(`You must specify an 'id' property in your Backend entry: ${JSON.stringify(n)}
1240
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function D1(e,t){return APe(e)||jPe(e,t)||T1(e,t)||MPe()}var O1={},NPe=[],PPe=function(e){NPe.push(e)};function FPe(e,t){}function IPe(e,t){}function LPe(){O1={}}function k1(e,t,n){!t&&!O1[n]&&(e(!1,n),O1[n]=!0)}function A1(e,t){k1(FPe,e,t)}function RPe(e,t){k1(IPe,e,t)}A1.preMessage=PPe,A1.resetWarned=LPe,A1.noteOnce=RPe;function zPe(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function i(e,t){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,o=r.has(e);if(A1(!o,`Warning: There may be circular references`),o)return!1;if(e===t)return!0;if(n&&a>1)return!1;r.add(e);var s=a+1;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(var c=0;c<e.length;c++)if(!i(e[c],t[c],s))return!1;return!0}if(e&&t&&f1(e)===`object`&&f1(t)===`object`){var l=Object.keys(e);return l.length===Object.keys(t).length?l.every(function(n){return i(e[n],t[n],s)}):!1}return!1}return i(e,t)}function j1(e){var t=H.useRef();return t.current=e,H.useCallback(function(){var e,n=[...arguments];return(e=t.current)?.call.apply(e,[t].concat(n))},[])}function BPe(){return!!(typeof window<`u`&&window.document&&window.document.createElement)}var M1=BPe()?H.useLayoutEffect:H.useEffect,VPe=function(e,t){var n=H.useRef(!0);M1(function(){return e(n.current)},t),M1(function(){return n.current=!1,function(){n.current=!0}},[])},N1=function(e,t){VPe(function(t){if(!t)return e()},t)};function P1(e){var t=H.useRef(!1),n=D1(H.useState(e),2),r=n[0],i=n[1];H.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function a(e,n){n&&t.current||i(e)}return[r,a]}function F1(e){return e!==void 0}function HPe(e,t){var n=t||{},r=n.defaultValue,i=n.value,a=n.onChange,o=n.postState,s=D1(P1(function(){return F1(i)?i:F1(r)?typeof r==`function`?r():r:typeof e==`function`?e():e}),2),c=s[0],l=s[1],u=i===void 0?c:i,d=o?o(u):u,f=j1(a),p=D1(P1([u]),2),m=p[0],h=p[1];return N1(function(){var e=m[0];c!==e&&f(c,e)},[m]),N1(function(){F1(i)||l(i)},[i]),[d,j1(function(e,t){l(e,t),h([u],t)})]}function I1(e,t){if(e==null)return{};var n,r,i=Ii(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function L1(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 R1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?L1(Object(n),!0).forEach(function(t){C1(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L1(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var z1={PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40},B1=H.createContext({min:0,max:0,direction:`ltr`,step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0});function V1(e,t,n){return(e-t)/(n-t)}function H1(e,t,n,r){var i=V1(t,n,r),a={};switch(e){case`rtl`:a.right=`${i*100}%`,a.transform=`translateX(50%)`;break;case`btt`:a.bottom=`${i*100}%`,a.transform=`translateY(50%)`;break;case`ttb`:a.top=`${i*100}%`,a.transform=`translateY(-50%)`;break;default:a.left=`${i*100}%`,a.transform=`translateX(-50%)`;break}return a}function U1(e,t){return Array.isArray(e)?e[t]:e}var UPe=[`prefixCls`,`value`,`valueIndex`,`onStartMove`,`style`,`render`,`dragging`,`onOffsetChange`],WPe=H.forwardRef(function(e,t){var n,r=e.prefixCls,i=e.value,a=e.valueIndex,o=e.onStartMove,s=e.style,c=e.render,l=e.dragging,u=e.onOffsetChange,d=I1(e,UPe),f=H.useContext(B1),p=f.min,m=f.max,h=f.direction,g=f.disabled,_=f.keyboard,v=f.range,y=f.tabIndex,b=f.ariaLabelForHandle,x=f.ariaLabelledByForHandle,S=f.ariaValueTextFormatterForHandle,C=`${r}-handle`,w=function(e){g||o(e,a)},T=function(e){if(!g&&_){var t=null;switch(e.which||e.keyCode){case z1.LEFT:t=h===`ltr`||h===`btt`?-1:1;break;case z1.RIGHT:t=h===`ltr`||h===`btt`?1:-1;break;case z1.UP:t=h===`ttb`?-1:1;break;case z1.DOWN:t=h===`ttb`?1:-1;break;case z1.HOME:t=`min`;break;case z1.END:t=`max`;break;case z1.PAGE_UP:t=2;break;case z1.PAGE_DOWN:t=-2;break}t!==null&&(e.preventDefault(),u(t,a))}},E=H1(h,i,p,m),D=H.createElement(`div`,Li({ref:t,className:Oi(C,(n={},C1(n,`${C}-${a+1}`,v),C1(n,`${C}-dragging`,l),n)),style:R1(R1({},E),s),onMouseDown:w,onTouchStart:w,onKeyDown:T,tabIndex:g?null:U1(y,a),role:`slider`,"aria-valuemin":p,"aria-valuemax":m,"aria-valuenow":i,"aria-disabled":g,"aria-label":U1(b,a),"aria-labelledby":U1(x,a),"aria-valuetext":U1(S,a)?.(i),"aria-orientation":h===`ltr`||h===`rtl`?`horizontal`:`vertical`},d));return c&&(D=c(D,{index:a,prefixCls:r,value:i,dragging:l})),D}),GPe=[`prefixCls`,`style`,`onStartMove`,`onOffsetChange`,`values`,`handleRender`,`draggingIndex`],KPe=H.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,i=e.onStartMove,a=e.onOffsetChange,o=e.values,s=e.handleRender,c=e.draggingIndex,l=I1(e,GPe),u=H.useRef({});return H.useImperativeHandle(t,function(){return{focus:function(e){var t;(t=u.current[e])==null||t.focus()}}}),H.createElement(H.Fragment,null,o.map(function(e,t){return H.createElement(WPe,Li({ref:function(e){e?u.current[t]=e:delete u.current[t]},dragging:c===t,prefixCls:n,style:U1(r,t),key:t,value:e,valueIndex:t,onStartMove:i,onOffsetChange:a,render:s},l))}))});function W1(e){var t=`touches`in e?e.touches[0]:e;return{pageX:t.pageX,pageY:t.pageY}}function qPe(e,t,n,r,i,a,o,s,c){var l=D1(H.useState(null),2),u=l[0],d=l[1],f=D1(H.useState(-1),2),p=f[0],m=f[1],h=D1(H.useState(n),2),g=h[0],_=h[1],v=D1(H.useState(n),2),y=v[0],b=v[1],x=H.useRef(null),S=H.useRef(null);H.useEffect(function(){p===-1&&_(n)},[n,p]),H.useEffect(function(){return function(){document.removeEventListener(`mousemove`,x.current),document.removeEventListener(`mouseup`,S.current),document.removeEventListener(`touchmove`,x.current),document.removeEventListener(`touchend`,S.current)}},[]);var C=function(e,t){g.some(function(t,n){return t!==e[n]})&&(t!==void 0&&d(t),_(e),o(e))},w=function(e,t){if(e===-1){var n=y[0],o=y[y.length-1],s=r-n,l=i-o,u=t*(i-r);u=Math.max(u,s),u=Math.min(u,l),u=a(n+u)-n,C(y.map(function(e){return e+u}))}else{var d=(i-r)*t,f=E1(g);f[e]=y[e];var p=c(f,d,e,`dist`);C(p.values,p.value)}},T=H.useRef(w);return T.current=w,[p,u,H.useMemo(function(){var e=E1(n).sort(function(e,t){return e-t}),t=E1(g).sort(function(e,t){return e-t});return e.every(function(e,n){return e===t[n]})?g:n},[n,g]),function(r,i){r.stopPropagation();var a=n[i];m(i),d(a),b(n);var o=W1(r),c=o.pageX,l=o.pageY,u=function(n){n.preventDefault();var r=W1(n),a=r.pageX,o=r.pageY,s=a-c,u=o-l,d=e.current.getBoundingClientRect(),f=d.width,p=d.height,m;switch(t){case`btt`:m=-u/p;break;case`ttb`:m=u/p;break;case`rtl`:m=-s/f;break;default:m=s/f}T.current(i,m)},f=function e(t){t.preventDefault(),document.removeEventListener(`mouseup`,e),document.removeEventListener(`mousemove`,u),document.removeEventListener(`touchend`,e),document.removeEventListener(`touchmove`,u),x.current=null,S.current=null,m(-1),s()};document.addEventListener(`mouseup`,f),document.addEventListener(`mousemove`,u),document.addEventListener(`touchend`,f),document.addEventListener(`touchmove`,u),x.current=u,S.current=f}]}function JPe(e){var t,n=e.prefixCls,r=e.style,i=e.start,a=e.end,o=e.index,s=e.onStartMove,c=H.useContext(B1),l=c.direction,u=c.min,d=c.max,f=c.disabled,p=c.range,m=`${n}-track`,h=V1(i,u,d),g=V1(a,u,d),_=function(e){!f&&s&&s(e,-1)},v={};switch(l){case`rtl`:v.right=`${h*100}%`,v.width=`${g*100-h*100}%`;break;case`btt`:v.bottom=`${h*100}%`,v.height=`${g*100-h*100}%`;break;case`ttb`:v.top=`${h*100}%`,v.height=`${g*100-h*100}%`;break;default:v.left=`${h*100}%`,v.width=`${g*100-h*100}%`}return H.createElement(`div`,{className:Oi(m,(t={},C1(t,`${m}-${o+1}`,p),C1(t,`${n}-track-draggable`,s),t)),style:R1(R1({},v),r),onMouseDown:_,onTouchStart:_})}function YPe(e){var t=e.prefixCls,n=e.style,r=e.values,i=e.startPoint,a=e.onStartMove,o=H.useContext(B1),s=o.included,c=o.range,l=o.min,u=H.useMemo(function(){if(!c){if(r.length===0)return[];var e=i??l,t=r[0];return[{start:Math.min(e,t),end:Math.max(e,t)}]}for(var n=[],a=0;a<r.length-1;a+=1)n.push({start:r[a],end:r[a+1]});return n},[r,c,i,l]);return s?u.map(function(e,r){var i=e.start,o=e.end;return H.createElement(JPe,{index:r,prefixCls:t,style:U1(n,r),start:i,end:o,key:r,onStartMove:a})}):null}function XPe(e){var t=e.prefixCls,n=e.style,r=e.children,i=e.value,a=e.onClick,o=H.useContext(B1),s=o.min,c=o.max,l=o.direction,u=o.includedStart,d=o.includedEnd,f=o.included,p=`${t}-text`,m=H1(l,i,s,c);return H.createElement(`span`,{className:Oi(p,C1({},`${p}-active`,f&&u<=i&&i<=d)),style:R1(R1({},m),n),onMouseDown:function(e){e.stopPropagation()},onClick:function(){a(i)}},r)}function ZPe(e){var t=e.prefixCls,n=e.marks,r=e.onClick,i=`${t}-mark`;return n.length?H.createElement(`div`,{className:i},n.map(function(e){var t=e.value,n=e.style,a=e.label;return H.createElement(XPe,{key:t,prefixCls:i,style:n,value:t,onClick:r},a)})):null}function QPe(e){var t=e.prefixCls,n=e.value,r=e.style,i=e.activeStyle,a=H.useContext(B1),o=a.min,s=a.max,c=a.direction,l=a.included,u=a.includedStart,d=a.includedEnd,f=`${t}-dot`,p=l&&u<=n&&n<=d,m=R1(R1({},H1(c,n,o,s)),typeof r==`function`?r(n):r);return p&&(m=R1(R1({},m),typeof i==`function`?i(n):i)),H.createElement(`span`,{className:Oi(f,C1({},`${f}-active`,p)),style:m})}function $Pe(e){var t=e.prefixCls,n=e.marks,r=e.dots,i=e.style,a=e.activeStyle,o=H.useContext(B1),s=o.min,c=o.max,l=o.step,u=H.useMemo(function(){var e=new Set;if(n.forEach(function(t){e.add(t.value)}),r&&l!==null)for(var t=s;t<=c;)e.add(t),t+=l;return Array.from(e)},[s,c,l,r,n]);return H.createElement(`div`,{className:`${t}-step`},u.map(function(e){return H.createElement(QPe,{prefixCls:t,key:e,value:e,style:i,activeStyle:a})}))}function eFe(e,t,n,r,i,a){var o=H.useCallback(function(n){var r=isFinite(n)?n:e;return r=Math.min(t,n),r=Math.max(e,r),r},[e,t]),s=H.useCallback(function(r){if(n!==null){var i=e+Math.round((o(r)-e)/n)*n,a=function(e){return(String(e).split(`.`)[1]||``).length},s=Math.max(a(n),a(t),a(e)),c=Number(i.toFixed(s));return e<=c&&c<=t?c:null}return null},[n,e,t,o]),c=H.useCallback(function(i){var a=o(i),c=r.map(function(e){return e.value});n!==null&&c.push(s(i)),c.push(e,t);var l=c[0],u=t-e;return c.forEach(function(e){var t=Math.abs(a-e);t<=u&&(l=e,u=t)}),l},[e,t,r,n,o,s]),l=function i(a,o,c){var l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:`unit`;if(typeof o==`number`){var u,d=a[c],f=d+o,p=[];r.forEach(function(e){p.push(e.value)}),p.push(e,t),p.push(s(d));var m=o>0?1:-1;l===`unit`?p.push(s(d+m*n)):p.push(s(f)),p=p.filter(function(e){return e!==null}).filter(function(e){return o<0?e<=d:e>=d}),l===`unit`&&(p=p.filter(function(e){return e!==d}));var h=l===`unit`?d:f;u=p[0];var g=Math.abs(u-h);if(p.forEach(function(e){var t=Math.abs(e-h);t<g&&(u=e,g=t)}),u===void 0)return o<0?e:t;if(l===`dist`)return u;if(Math.abs(o)>1){var _=E1(a);return _[c]=u,i(_,o-m,c,l)}return u}else if(o===`min`)return e;else if(o===`max`)return t},u=function(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:`unit`,i=e[n],a=l(e,t,n,r);return{value:a,changed:a!==i}},d=function(e){return a===null&&e===0||typeof a==`number`&&e<a};return[c,function(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:`unit`,o=e.map(c),s=o[n];if(o[n]=l(o,t,n,r),i===!1){var f=a||0;n>0&&o[n-1]!==s&&(o[n]=Math.max(o[n],o[n-1]+f)),n<o.length-1&&o[n+1]!==s&&(o[n]=Math.min(o[n],o[n+1]-f))}else if(typeof a==`number`||a===null){for(var p=n+1;p<o.length;p+=1)for(var m=!0;d(o[p]-o[p-1])&&m;){var h=u(o,1,p);o[p]=h.value,m=h.changed}for(var g=n;g>0;--g)for(var _=!0;d(o[g]-o[g-1])&&_;){var v=u(o,-1,g-1);o[g-1]=v.value,_=v.changed}for(var y=o.length-1;y>0;--y)for(var b=!0;d(o[y]-o[y-1])&&b;){var x=u(o,-1,y-1);o[y-1]=x.value,b=x.changed}for(var S=0;S<o.length-1;S+=1)for(var C=!0;d(o[S+1]-o[S])&&C;){var w=u(o,1,S+1);o[S+1]=w.value,C=w.changed}}return{value:o[n],values:o}}]}var tFe=H.forwardRef(function(e,t){var n,r=e.prefixCls,i=r===void 0?`rc-slider`:r,a=e.className,o=e.style,s=e.disabled,c=s===void 0?!1:s,l=e.keyboard,u=l===void 0?!0:l,d=e.autoFocus,f=e.onFocus,p=e.onBlur,m=e.min,h=m===void 0?0:m,g=e.max,_=g===void 0?100:g,v=e.step,y=v===void 0?1:v,b=e.value,x=e.defaultValue,S=e.range,C=e.count,w=e.onChange,T=e.onBeforeChange,E=e.onAfterChange,D=e.allowCross,O=D===void 0?!0:D,k=e.pushable,A=k===void 0?!1:k,j=e.draggableTrack,M=e.reverse,N=e.vertical,P=e.included,F=P===void 0?!0:P,I=e.startPoint,L=e.trackStyle,ee=e.handleStyle,te=e.railStyle,R=e.dotStyle,ne=e.activeDotStyle,re=e.marks,ie=e.dots,ae=e.handleRender,oe=e.tabIndex,z=oe===void 0?0:oe,se=e.ariaLabelForHandle,ce=e.ariaLabelledByForHandle,le=e.ariaValueTextFormatterForHandle,B=H.useRef(),ue=H.useRef(),de=H.useMemo(function(){return N?M?`ttb`:`btt`:M?`rtl`:`ltr`},[M,N]),V=H.useMemo(function(){return isFinite(h)?h:0},[h]),fe=H.useMemo(function(){return isFinite(_)?_:100},[_]),pe=H.useMemo(function(){return y!==null&&y<=0?1:y},[y]),me=H.useMemo(function(){return typeof A==`boolean`?A?pe:!1:A>=0?A:!1},[A,pe]),he=H.useMemo(function(){return Object.keys(re||{}).map(function(e){var t=re[e],n={value:Number(e)};return t&&f1(t)===`object`&&!H.isValidElement(t)&&(`label`in t||`style`in t)?(n.style=t.style,n.label=t.label):n.label=t,n}).filter(function(e){var t=e.label;return t||typeof t==`number`}).sort(function(e,t){return e.value-t.value})},[re]),ge=D1(eFe(V,fe,pe,he,O,me),2),_e=ge[0],ve=ge[1],ye=D1(HPe(x,{value:b}),2),be=ye[0],xe=ye[1],Se=H.useMemo(function(){var e=be==null?[]:Array.isArray(be)?be:[be],t=D1(e,1)[0],n=be===null?[]:[t===void 0?V:t];if(S){if(n=E1(e),C||be===void 0){var r=C>=0?C+1:2;for(n=n.slice(0,r);n.length<r;)n.push(n[n.length-1]??V)}n.sort(function(e,t){return e-t})}return n.forEach(function(e,t){n[t]=_e(e)}),n},[be,S,V,C,_e]),Ce=H.useRef(Se);Ce.current=Se;var we=function(e){return S?e:e[0]},Te=function(e){var t=E1(e).sort(function(e,t){return e-t});w&&!zPe(t,Ce.current,!0)&&w(we(t)),xe(t)},Ee=function(e){if(!c){var t=0,n=fe-V;Se.forEach(function(r,i){var a=Math.abs(e-r);a<=n&&(n=a,t=i)});var r=E1(Se);r[t]=e,S&&!Se.length&&C===void 0&&r.push(e),T?.(we(r)),Te(r),E?.(we(r))}},De=function(e){e.preventDefault();var t=ue.current.getBoundingClientRect(),n=t.width,r=t.height,i=t.left,a=t.top,o=t.bottom,s=t.right,c=e.clientX,l=e.clientY,u;switch(de){case`btt`:u=(o-l)/r;break;case`ttb`:u=(l-a)/r;break;case`rtl`:u=(s-c)/n;break;default:u=(c-i)/n}Ee(_e(V+u*(fe-V)))},Oe=D1(H.useState(null),2),ke=Oe[0],Ae=Oe[1],je=function(e,t){if(!c){var n=ve(Se,e,t);T?.(we(Se)),Te(n.values),E?.(we(n.values)),Ae(n.value)}};H.useEffect(function(){if(ke!==null){var e=Se.indexOf(ke);e>=0&&B.current.focus(e)}Ae(null)},[ke]);var Me=H.useMemo(function(){return j&&pe===null?!1:j},[j,pe]),Ne=D1(qPe(ue,de,Se,V,fe,_e,Te,function(){E?.(we(Ce.current))},ve),4),Pe=Ne[0],Fe=Ne[1],Ie=Ne[2],Le=Ne[3],Re=function(e,t){Le(e,t),T?.(we(Ce.current))},ze=Pe!==-1;H.useEffect(function(){if(!ze){var e=Se.lastIndexOf(Fe);B.current.focus(e)}},[ze]);var Be=H.useMemo(function(){return E1(Ie).sort(function(e,t){return e-t})},[Ie]),Ve=D1(H.useMemo(function(){return S?[Be[0],Be[Be.length-1]]:[V,Be[0]]},[Be,S,V]),2),He=Ve[0],Ue=Ve[1];H.useImperativeHandle(t,function(){return{focus:function(){B.current.focus(0)},blur:function(){var e=document.activeElement;ue.current.contains(e)&&e?.blur()}}}),H.useEffect(function(){d&&B.current.focus(0)},[]);var We=H.useMemo(function(){return{min:V,max:fe,direction:de,disabled:c,keyboard:u,step:pe,included:F,includedStart:He,includedEnd:Ue,range:S,tabIndex:z,ariaLabelForHandle:se,ariaLabelledByForHandle:ce,ariaValueTextFormatterForHandle:le}},[V,fe,de,c,u,pe,F,He,Ue,S,z,se,ce,le]);return H.createElement(B1.Provider,{value:We},H.createElement(`div`,{ref:ue,className:Oi(i,a,(n={},C1(n,`${i}-disabled`,c),C1(n,`${i}-vertical`,N),C1(n,`${i}-horizontal`,!N),C1(n,`${i}-with-marks`,he.length),n)),style:o,onMouseDown:De},H.createElement(`div`,{className:`${i}-rail`,style:te}),H.createElement(YPe,{prefixCls:i,style:L,values:Be,startPoint:I,onStartMove:Me?Re:null}),H.createElement($Pe,{prefixCls:i,marks:he,dots:ie,style:R,activeStyle:ne}),H.createElement(KPe,{ref:B,prefixCls:i,style:ee,values:Ie,draggingIndex:Pe,onStartMove:Re,onOffsetChange:je,onFocus:f,onBlur:p,handleRender:ae}),H.createElement(ZPe,{prefixCls:i,marks:he,onClick:Ee})))}),G1={},K1={},q1;function nFe(){if(q1)return K1;q1=1,Object.defineProperty(K1,`__esModule`,{value:!0}),K1.default=void 0;var e={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(t){var n=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||n>=e.F1&&n<=e.F12)return!1;switch(n){case e.ALT:case e.CAPS_LOCK:case e.CONTEXT_MENU:case e.CTRL:case e.DOWN:case e.END:case e.ESC:case e.HOME:case e.INSERT:case e.LEFT:case e.MAC_FF_META:case e.META:case e.NUMLOCK:case e.NUM_CENTER:case e.PAGE_DOWN:case e.PAGE_UP:case e.PAUSE:case e.PRINT_SCREEN:case e.RIGHT:case e.SHIFT:case e.UP:case e.WIN_KEY:case e.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=e.ZERO&&t<=e.NINE||t>=e.NUM_ZERO&&t<=e.NUM_MULTIPLY||t>=e.A&&t<=e.Z||window.navigator.userAgent.indexOf(`WebKit`)!==-1&&t===0)return!0;switch(t){case e.SPACE:case e.QUESTION_MARK:case e.NUM_PLUS:case e.NUM_MINUS:case e.NUM_PERIOD:case e.NUM_DIVISION:case e.SEMICOLON:case e.DASH:case e.EQUALS:case e.COMMA:case e.PERIOD:case e.SLASH:case e.APOSTROPHE:case e.SINGLE_QUOTE:case e.OPEN_SQUARE_BRACKET:case e.BACKSLASH:case e.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};return K1.default=e,K1}var J1={},Y1;function rFe(){if(Y1)return J1;Y1=1;var e=BX();Object.defineProperty(J1,`__esModule`,{value:!0}),J1.default=void 0;var t=r(H.default);function n(e){if(typeof WeakMap!=`function`)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}function r(t,r){if(t&&t.__esModule)return t;if(t===null||e(t)!==`object`&&typeof t!=`function`)return{default:t};var i=n(r);if(i&&i.has(t))return i.get(t);var a={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!==`default`&&Object.prototype.hasOwnProperty.call(t,s)){var c=o?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(a,s,c):a[s]=t[s]}return a.default=t,i&&i.set(t,a),a}return J1.default=t.createContext({min:0,max:0,direction:`ltr`,step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0}),J1}var X1={},Z1;function iFe(){if(Z1)return X1;Z1=1,Object.defineProperty(X1,`__esModule`,{value:!0}),X1.getDirectionStyle=t,X1.getIndex=n,X1.getOffset=e;function e(e,t,n){return(e-t)/(n-t)}function t(t,n,r,i){var a=e(n,r,i),o={};switch(t){case`rtl`:o.right=`${a*100}%`,o.transform=`translateX(50%)`;break;case`btt`:o.bottom=`${a*100}%`,o.transform=`translateY(50%)`;break;case`ttb`:o.top=`${a*100}%`,o.transform=`translateY(-50%)`;break;default:o.left=`${a*100}%`,o.transform=`translateX(-50%)`;break}return o}function n(e,t){return Array.isArray(e)?e[t]:e}return X1}var Q1;function aFe(){if(Q1)return G1;Q1=1;var e=yPe(),t=BX();Object.defineProperty(G1,`__esModule`,{value:!0}),G1.default=void 0;var n=e(iPe()),r=e(XEe()),i=e(GX()),a=e(QEe()),o=p(H.default),s=e(Di()),c=e(nFe()),l=e(rFe()),u=iFe(),d=[`prefixCls`,`value`,`valueIndex`,`onStartMove`,`style`,`render`,`dragging`,`onOffsetChange`];function f(e){if(typeof WeakMap!=`function`)return null;var t=new WeakMap,n=new WeakMap;return(f=function(e){return e?n:t})(e)}function p(e,n){if(e&&e.__esModule)return e;if(e===null||t(e)!==`object`&&typeof e!=`function`)return{default:e};var r=f(n);if(r&&r.has(e))return r.get(e);var i={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!==`default`&&Object.prototype.hasOwnProperty.call(e,o)){var s=a?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(i,o,s):i[o]=e[o]}return i.default=e,r&&r.set(e,i),i}return G1.default=o.forwardRef(function(e,t){var f,p=e.prefixCls,m=e.value,h=e.valueIndex,g=e.onStartMove,_=e.style,v=e.render,y=e.dragging,b=e.onOffsetChange,x=(0,a.default)(e,d),S=o.useContext(l.default),C=S.min,w=S.max,T=S.direction,E=S.disabled,D=S.keyboard,O=S.range,k=S.tabIndex,A=S.ariaLabelForHandle,j=S.ariaLabelledByForHandle,M=S.ariaValueTextFormatterForHandle,N=`${p}-handle`,P=function(e){E||g(e,h)},F=function(e){if(!E&&D){var t=null;switch(e.which||e.keyCode){case c.default.LEFT:t=T===`ltr`||T===`btt`?-1:1;break;case c.default.RIGHT:t=T===`ltr`||T===`btt`?1:-1;break;case c.default.UP:t=T===`ttb`?-1:1;break;case c.default.DOWN:t=T===`ttb`?1:-1;break;case c.default.HOME:t=`min`;break;case c.default.END:t=`max`;break;case c.default.PAGE_UP:t=2;break;case c.default.PAGE_DOWN:t=-2;break}t!==null&&(e.preventDefault(),b(t,h))}},I=(0,u.getDirectionStyle)(T,m,C,w),L=o.createElement(`div`,(0,n.default)({ref:t,className:(0,s.default)(N,(f={},(0,i.default)(f,`${N}-${h+1}`,O),(0,i.default)(f,`${N}-dragging`,y),f)),style:(0,r.default)((0,r.default)({},I),_),onMouseDown:P,onTouchStart:P,onKeyDown:F,tabIndex:E?null:(0,u.getIndex)(k,h),role:`slider`,"aria-valuemin":C,"aria-valuemax":w,"aria-valuenow":m,"aria-disabled":E,"aria-label":(0,u.getIndex)(A,h),"aria-labelledby":(0,u.getIndex)(j,h),"aria-valuetext":(0,u.getIndex)(M,h)?.(m),"aria-orientation":T===`ltr`||T===`rtl`?`horizontal`:`vertical`},x));return v&&(L=v(L,{index:h,prefixCls:p,value:m,dragging:y})),L}),G1}var oFe=Ci(aFe()),$1={container:`_container_1bhdk_1`,small:`_small_1bhdk_7`,vertical:`_vertical_1bhdk_10`,hasArrows:`_hasArrows_1bhdk_14`,button:`_button_1bhdk_18`,label:`_label_1bhdk_21`,dot:`_dot_1bhdk_29`},sFe=Id(e=>e.reduce((e,{label:t,tooltip:n,value:r})=>(e[r]=(0,U.jsx)(oo,{text:(0,U.jsxs)(U.Fragment,{children:[n,n?`: `:``,t??r]}),children:(0,U.jsx)(`div`,{className:$1.dot})}),e),{}),x1),e0=({name:e,label:t,width:n=`100%`,labelWidth:r=`auto`,value:i,min:a,max:o,step:s=1,marks:c=[],showArrows:l=!1,showTooltip:u=!1,tooltipFormatter:d=e=>e,disabled:f=!1,range:p=!1,small:m=!1,vertical:h={enabled:!1,width:`100px`,height:`400px`},onChange:g=ai.noop})=>{let _=(0,H.useContext)(na),v=sFe(c),y=n=>{g({target:{name:e??``,value:n,label:typeof t==`string`?t:String(t)}})},b=()=>(0,U.jsx)(`div`,{className:$1.button,children:(0,U.jsx)(po,{basic:!0,small:!0,round:!0,onClick:()=>y(p?[a,i?.[1]]:a),disabled:f||i===a||_,icon:Pi.FAST_BACKWARD})}),x=()=>(0,U.jsx)(`div`,{className:$1.button,children:(0,U.jsx)(po,{basic:!0,small:!0,round:!0,onClick:()=>y(p?[i?.[0],o]:o),disabled:f||i===o||_,icon:Pi.FAST_FORWARD})});return(0,U.jsxs)(`div`,{className:Oi($1.container,m?$1.small:``,h.enabled?$1.vertical:``),style:h.enabled?{width:h.width,height:h.height}:{width:n},children:[l&&(h.enabled?(0,U.jsx)(x,{}):(0,U.jsx)(b,{})),(0,U.jsx)(tFe,{range:p,allowCross:!1,className:Oi((f||_)&&$1.rcSliderDisabled,l&&$1.hasArrows),value:i,max:o,min:a,step:s,marks:v,onChange:e=>y(e),disabled:f||_,vertical:h.enabled,handleRender:(e,t)=>{let n=u&&t.dragging;return(0,U.jsx)(oFe,{...e.props,...t,children:n&&(0,U.jsx)(oo,{display:`block`,text:d(i),forceOpen:!0,children:(0,U.jsx)(`div`,{style:{position:`absolute`,inset:0}})})})}}),l&&(h.enabled?(0,U.jsx)(b,{}):(0,U.jsx)(x,{})),t&&(0,U.jsx)(`label`,{className:$1.label,style:{width:r},children:t})]})},cFe=({height:e=`var(--padding)`,width:t=null,flex:n=!1})=>(0,U.jsx)(`div`,{style:{height:e,width:t||`auto`,flexGrow:n?1:0,flexShrink:0,display:t?`inline-block`:`block`}}),t0={wrapper:`_wrapper_kaesl_85`,bordered:`_bordered_kaesl_93`,scroll:`_scroll_kaesl_98`,table:`_table_kaesl_109`,dragOverlay:`_dragOverlay_kaesl_145`,virtualScroll:`_virtualScroll_kaesl_182`,striped:`_striped_kaesl_202`},lFe={title:`_title_zn5s7_1`},uFe=({name:e=null,actions:t=null,actionsRight:n=!1,testId:r})=>{let i=e!==null,a=t!==null;if(!i&&!a)return null;let o=()=>{if(!a)return null;let e=(0,U.jsx)(Do,{actions:t});return n?e:(0,U.jsx)(`div`,{children:e})};return(0,U.jsxs)(`div`,{className:lFe.title,children:[i?(0,U.jsx)(Wc,{children:(0,U.jsx)(`span`,{"data-testid":r,children:e})}):null,o()]})},n0={footer:`_footer_4sumy_1`,section:`_section_4sumy_7`},dFe=({colSpan:e,pagination:t,actions:n,content:r,testId:i})=>{let a=n&&n.length,o=r!=null,s=()=>{if(t){let{rowCount:e,rowsPerPage:n}=t;return e>Number(n?.options?.[0]?.value)}return!1};return a||o||s()?(0,U.jsxs)(`div`,{className:n0.footer,"data-testid":`${i??`pagination`}-footer`,children:[o?(0,U.jsx)(`div`,{className:n0.section,children:(0,U.jsx)(`div`,{children:r})}):null,a||s()?(0,U.jsxs)(`div`,{className:n0.section,children:[t&&s()?(0,U.jsx)(sde,{pagination:t}):(0,U.jsx)(`div`,{}),a&&(0,U.jsx)(`div`,{children:(0,U.jsx)(Do,{actions:n})})]}):null]}):null},r0=e=>{let t=Math.max(...e.reduce((e,t)=>{let n=t.cells.map(e=>e.colSpan?e.colSpan:1).reduce((e,t)=>e+t,0);return e.concat(n)},[]));return isNaN(t)?0:t},fFe=(e,t)=>{let n=[r0(t),r0(e)];return Math.max(...n)},i0=e=>e.reduce((e,t)=>t.actions&&t.actions.length>0?1:e,0),pFe=(e,t)=>i0(t)>0||i0(e)>0,a0={clickableRow:`_clickableRow_kqvtd_1`,hoverableRow:`_hoverableRow_kqvtd_4`,rowActive:`_rowActive_kqvtd_4`,expandableRow:`_expandableRow_kqvtd_8`,flush:`_flush_kqvtd_8`,dragIconCell:`_dragIconCell_kqvtd_34`,dragIcon:`_dragIcon_kqvtd_34`,dragIconDisabled:`_dragIconDisabled_kqvtd_55`},o0=({colSpan:e,children:t,flush:n})=>(0,U.jsx)(`tr`,{children:(0,U.jsx)(`td`,{colSpan:e,className:Oi(a0.expandableRow,n?a0.flush:``),children:t})}),s0=(e,t={leftAligned:``,rightAligned:``,centerAligned:``},n=!1)=>{if(!e)return null;let{bodyAlignment:r,headerAlignment:i,isHeader:a}=e;switch(a&&i?i:r){case Mi.LEFT:return n?Mi.LEFT:t.leftAligned;case Mi.RIGHT:return n?Mi.RIGHT:t.rightAligned;case Mi.CENTER:return n?Mi.CENTER:t.centerAligned;default:return n?Mi.LEFT:t.leftAligned}},mFe=(e,t=!1,n=0)=>{if(!e||e.length===0)return[];let r=e.every(e=>Array.isArray(e)),i=e.every(e=>typeof e==`string`);return r&&t?e[n]||[]:i?e:(console.warn(`getHeaderAlignment: alignments array contains a mix of strings and arrays, returning an empty array.`),[])},c0={cell:`_cell_ie6ng_77`,disabledLink:`_disabledLink_ie6ng_87`,inputWrapper:`_inputWrapper_ie6ng_91`,numberInputWrapper:`_numberInputWrapper_ie6ng_106`,breakWord:`_breakWord_ie6ng_113`,inputCell:`_inputCell_ie6ng_116`,sliderCell:`_sliderCell_ie6ng_119`,staticCell:`_staticCell_ie6ng_123`,staticCellContent:`_staticCellContent_ie6ng_126`,unit:`_unit_ie6ng_148`,sortingCell:`_sortingCell_ie6ng_151`,sortingCellIcon:`_sortingCellIcon_ie6ng_162`,icon:`_icon_ie6ng_173`,checkBoxCell:`_checkBoxCell_ie6ng_177`,iconCellWrapper:`_iconCellWrapper_ie6ng_181`,actionsCell:`_actionsCell_ie6ng_185`,rightAligned:`_rightAligned_ie6ng_193`,centerAligned:`_centerAligned_ie6ng_199`,leftAligned:`_leftAligned_ie6ng_205`,popover:`_popover_ie6ng_208`},l0=({cell:e,columnAlignment:t,testId:n,type:r})=>(0,U.jsx)(Ml,{name:e.name,value:e.value,onChange:t=>e.onChange?.call(e,t),onFocus:e.onFocus,onBlur:e.onBlur,onPaste:t=>e.onPaste?.call(e,t),placeholder:e.placeholder,error:e.error,warning:e.warning,disabled:e.disabled,isInTable:!0,maxTooltipWidth:e.maxTooltipWidth,right:t===Mi.RIGHT,selectOnFocus:e.selectOnFocus,testId:n,tabIndex:e.disabled?-1:0,tooltip:e.tooltip,type:r}),hFe=14,u0=e=>String(V(e)),gFe=e=>le(e)?e:u0(B(ne(e),hFe)),_Fe=e=>e?typeof e==`string`?e:(0,ai.isArray)(e)?e[0]:e.fieldName:``,d0=({name:e,placeholder:t=``,disabled:n=!1,error:r=!1,left:i=!1,small:a=!1,width:o=`100%`,value:s=``,onChange:c=()=>{},onFocus:l=()=>{},onBlur:u=()=>{},selectOnFocus:d,tabIndex:f=0,testId:p,tooltip:m=null,warning:h=!1,validationCallback:g=()=>{},allowEmpty:_=!1,isInTable:v,groupOrder:y,enableCosmeticRounding:b=!0,enableDisplayRounding:x=!1,roundDisplayValue:S,disableInternalErrorValidationMessages:C=!1})=>{let w=e=>{let n=L(e),r=t&&af(e);return[1/0,-1/0].includes(Number(e))||r?{valid:!0,errors:[]}:_&&e===``||n.valid?{...n,valid:!0,errors:void 0}:n},T=e=>{let t=!!e?.endsWith(`0`);return u0(b&&e&&!t&&w(e)?.valid?gFe(e):e)},E=(0,H.useRef)(null),[D,O]=(0,H.useState)(T(u0(s))),[k,A]=(0,H.useState)(!1),j=_Fe(e),{valid:M,errors:F}=w(D),ee=F&&F.length&&!C?F[0]:null;(0,H.useEffect)(()=>{let e=T(u0(s));ne(D)!==ne(e)&&O(e)},[s,b,x]),(0,H.useEffect)(()=>{!k&&!M?g(j,ee):g(j,null)},[k,M,r]);let te=e=>{let n=`key`in e?D:e?.target?.value,r=I(n.replaceAll(` `,``).replaceAll(`|`,``));O(r),(w(r)?.valid||t&&af(n))&&c({...e,target:{...e.target,value:P(u0(r)),name:j}})};(0,H.useEffect)(()=>{if(E&&E?.current&&x&&k){let e=E.current;e&&!d&&setTimeout(()=>{let{length:t}=u0(D);e.setSelectionRange(t,t)},0)}},[k]);let R=e=>{A(!0),l(e)},re=e=>{A(!1),u(e)},ie=x&&!k&&M?S?u0(S(D)):(e=>v?oe(e,2):N(e,4))(s):D;return(0,U.jsx)(Ml,{type:`text`,name:j,testId:p,disabled:n,placeholder:t,value:ie,onChange:te,onFocus:R,onBlur:re,onKeyDown:e=>{e.key===rf.ENTER&&te(e)},error:ee||r,warning:h,right:!i,small:a,width:o,isInTable:v,groupOrder:y,selectOnFocus:d,tabIndex:f,tooltip:m,ref:E},j)},vFe=({cell:e,columnAlignment:t,testId:n})=>(0,U.jsx)(d0,{name:e.name,value:e.value,onChange:t=>e.onChange?.call(e,t),onFocus:e.onFocus,onBlur:e.onBlur,placeholder:e.placeholder,error:e.error,warning:e.warning,disabled:e.disabled,isInTable:!0,left:e.left??t===Mi.LEFT,selectOnFocus:e.selectOnFocus,tabIndex:e.disabled?-1:0,testId:n,tooltip:e.tooltip,validationCallback:e.validationCallback,allowEmpty:e.allowEmpty,enableCosmeticRounding:e.enableCosmeticRounding,enableDisplayRounding:e.enableDisplayRounding,roundDisplayValue:e.roundDisplayValue}),yFe=({cell:e,columnAlignment:t,testId:n})=>(0,U.jsx)(cf,{name:e.name,borderRadius:0,options:e.options,onChange:t=>e.onChange?.call(e,t),onCreate:e.onCreate?t=>e.onCreate&&e.onCreate(t):void 0,error:e.error,warning:e.warning,disabled:e.disabled,placeholder:e.placeholder,isInTable:!0,value:e.value,native:e.native,clearable:e.clearable,searchable:e.searchable,deprecatedEventHandler:e.deprecatedEventHandler,maxTooltipWidth:e.maxTooltipWidth,width:`100%`,autoLayerWidth:e.autoLayerWidth,multi:e.multi,right:t===Mi.RIGHT,testId:n,tabIndex:e.disabled?-1:0}),bFe=({cell:e,columnAlignment:t,testId:n})=>(0,U.jsx)(`div`,{className:Oi(c0.inputWrapper,e.type===`NumberInput`?c0.numberInputWrapper:``),children:e.type===`Input`?(0,U.jsx)(l0,{cell:e,columnAlignment:t,testId:n}):e.type===`NumberInput`?(0,U.jsx)(vFe,{cell:e,columnAlignment:t,testId:n}):e.type===`DateInput`?(0,U.jsx)(l0,{cell:e,testId:n,type:`date`}):e.type===`Select`?(0,U.jsx)(yFe,{cell:e,columnAlignment:t,testId:n}):null}),xFe=({cell:e,testId:t})=>{let n=(0,H.useContext)(na),{error:r,warning:i,tooltip:a,maxTooltipWidth:o}=e,s=e=>bo(e);return(0,U.jsx)(`div`,{className:c0.inputWrapper,children:(0,U.jsx)(oo,{error:!!r,warning:!!i,text:a||r||i,enabled:s(a)||s(r)||s(i)||!1,maxWidth:o,children:(0,U.jsx)(`div`,{className:c0.staticCellContent,"data-error":r||null,"data-warning":i||null,children:(0,U.jsx)(`a`,{className:Oi((e.disabled||n)&&c0.disabledLink),onClick:e.disabled||n?void 0:t=>{var n;t.stopPropagation(),(n=e.onClick)==null||n.call(e,t)},"data-testid":t,children:e.value})})})})},SFe=({cell:e,testId:t})=>(0,U.jsx)(lo,{label:e.label,checked:e.checked,isInTable:!0,disabled:e.disabled,onChange:t=>e.onChange(t),testId:t,tabIndex:e.disabled?-1:0,indeterminate:e.indeterminate}),CFe=({cell:e})=>(0,U.jsx)(`div`,{className:c0.inputWrapper,children:(0,U.jsx)(e0,{label:e.label,value:e.value,min:e.min,max:e.max,step:e.step,marks:e.marks,onChange:t=>e.onChange(t),showArrows:e.showArrows,showTooltip:e.showTooltip,tooltipFormatter:e.tooltipFormatter,disabled:e.disabled})}),wFe=({cell:e})=>{let{tooltip:t,icon:n}=e;return(0,U.jsx)(`div`,{className:c0.iconCellWrapper,children:(0,U.jsx)(oo,{text:t,enabled:!!t&&bo(t),display:`flex`,placement:`top-center`,children:(0,U.jsx)(ca,{icon:n})})})},TFe=({cell:e})=>(0,U.jsx)(Do,{actions:e.actions}),EFe=({cell:e})=>{let{helpIcon:t}=e;return t?(0,U.jsx)(`div`,{className:c0.icon,children:(0,U.jsx)(co,{onClick:t.onClick,text:t.tooltip})}):null},DFe=({cell:e})=>{let{libraryIcon:t}=e;return t?(0,U.jsx)(`div`,{className:c0.icon,children:(0,U.jsx)(co,{onClick:t.onClick,text:t.tooltip,icon:Pi.LIBRARY})}):null},OFe=({cell:e})=>{let{hasSort:t,sort:n,sortPriority:r}=e;return t?(0,U.jsxs)(`span`,{className:c0.sortingCellIcon,children:[n===`down`?(0,U.jsx)(Hc,{link:!0,children:(0,U.jsx)(ca,{icon:Pi.SORT_ASCENDING})}):n===`up`?(0,U.jsx)(Hc,{link:!0,children:(0,U.jsx)(ca,{icon:Pi.SORT_DESCENDING})}):(0,U.jsx)(Hc,{faint:!0,children:(0,U.jsx)(ca,{icon:Pi.SORT_DESCENDING})}),r&&n?(0,U.jsx)(`sup`,{children:r}):null]}):null},f0=({cell:e,isHeader:t,testId:n})=>{let{error:r,warning:i,tooltip:a,maxTooltipWidth:o,hasSort:s,onSort:c,type:l}=e,u=(0,U.jsxs)(`div`,{className:Oi(c0.staticCellContent,l===`Unit`?c0.unit:``),onClick:s?e=>c&&c(e):()=>{},"data-error":r||null,"data-warning":i||null,"data-testid":n,children:[e.value,t?(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(EFe,{cell:e}),(0,U.jsx)(DFe,{cell:e}),(0,U.jsx)(OFe,{cell:e})]}):null]});return(0,U.jsx)(`div`,{className:c0.inputWrapper,children:(0,U.jsx)(oo,{error:!!r,warning:!!i,text:a||r||i,enabled:a&&bo(a)||r&&bo(r)||i&&bo(i)||!1,maxWidth:o,display:`block`,children:u})})},kFe=({cell:e,testId:t})=>{let{content:n,fullWidth:r,closeOnOutsideClick:i,disabled:a}=e;return(0,U.jsx)(df,{content:n,fullWidth:r,closeOnOutsideClick:i,disabled:a,children:(0,U.jsx)(`div`,{className:c0.popover,children:(0,U.jsx)(f0,{cell:e,testId:t})})})},AFe=({cell:e,isHeader:t,columnAlignment:n,testId:r})=>{if(!e)return null;switch(e.type){case`Input`:case`NumberInput`:case`DateInput`:case`Select`:return(0,U.jsx)(bFe,{cell:e,columnAlignment:n,testId:r});case`Link`:return(0,U.jsx)(xFe,{cell:e,testId:r});case`CheckBox`:return(0,U.jsx)(SFe,{cell:e,testId:r});case`Slider`:return(0,U.jsx)(CFe,{cell:e});case`Icon`:return(0,U.jsx)(wFe,{cell:e});case`Actions`:return(0,U.jsx)(TFe,{cell:e});case`Popover`:return(0,U.jsx)(kFe,{cell:e});default:return(0,U.jsx)(f0,{cell:e,isHeader:t,testId:r})}},p0=(e=>(e.INPUT=`Input`,e.NUMBER_INPUT=`NumberInput`,e.SELECT=`Select`,e.POPOVER=`Popover`,e.SLIDER=`Slider`,e.CHECKBOX=`CheckBox`,e.ACTIONS=`Actions`,e.AUTO_UNIT=`AutoUnit`,e))(p0||{}),m0=({cell:e,isHeader:t,columnHeaderAlignment:n,columnAlignment:r=Mi.LEFT,width:i,testId:a})=>{if(!e)return null;let{style:o,colSpan:s,rowSpan:c,width:l}=e,u=(0,H.useRef)(null),d={bodyAlignment:r,headerAlignment:n,isHeader:t},f=s0(d,c0),p=s0(d,c0,!0),m=e.type===p0.INPUT||e.type===p0.NUMBER_INPUT||e.type===p0.SELECT||e.type===p0.POPOVER?c0.inputCell:e.type===p0.SLIDER?c0.sliderCell:e.type===p0.CHECKBOX?c0.checkBoxCell:e.type===p0.ACTIONS?c0.actionsCell:c0.staticCell,h=Oi(c0.cell,m,e.hasSort?c0.sortingCell:null,f,e.breakWord?c0.breakWord:``),g=l??i??void 0,_={width:g,minWidth:g,...o};return(0,U.jsx)(t?`th`:`td`,{ref:u,className:h,style:_,colSpan:s,rowSpan:c,children:(0,U.jsx)(AFe,{cell:e,columnAlignment:p??Mi.RIGHT,isHeader:t,testId:a})})},h0=({row:e,rowIndex:t,isHeader:n=!1,columnCount:r,colSpan:i,columnHeaderAlignments:a=[],columnAlignment:o=[],hasRowActions:s,draggableTable:c=!1,columnWidths:l,dropDisabled:u=!1,height:d,testId:f})=>{let p=mFe(a,n,t),{onRowClick:m,onRowFocus:h,onRowMouseEnter:g,onRowMouseLeave:_,expandedContent:v,error:y,warning:b,active:x}=e,S=e.cells.map((e,r)=>{let i=`${n?0:1}_${t}_${r}`;return(0,U.jsx)(m0,{cell:e,isHeader:n,columnAlignment:o[r],columnHeaderAlignment:p[r],width:l?l[r]:void 0,testId:e.testId},i)}),C=s&&(0,U.jsx)(m0,{cell:{type:p0.ACTIONS,actions:e.actions},isHeader:n},r),{attributes:w,listeners:T,setNodeRef:E,transform:D,transition:O,isDragging:k}=yd({id:t.toString(),animateLayoutChanges:()=>!1}),A={transform:u?void 0:ou.Translate.toString(D),height:d,transition:O,opacity:k?0:void 0},j=()=>e.noDrag?(0,U.jsx)(`td`,{"aria-labelledby":`unique-label-id`}):(0,U.jsx)(`td`,{className:a0.dragIconCell,children:(0,U.jsx)(`div`,{className:Oi(a0.dragIcon,u?a0.dragIconDisabled:``),...w,...T,children:(0,U.jsx)(ca,{icon:Pi.DRAG})})});return n?(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(`tr`,{onClick:m,onMouseEnter:g,onMouseLeave:_,onFocus:h,className:Oi(m?a0.clickableRow:null,g?a0.hoverableRow:null),children:[c?(0,U.jsx)(`th`,{}):null,S,C]},t),v&&v.content?(0,U.jsx)(o0,{colSpan:i,flush:v.flush===!0,children:v.content},`${t}_expanded_content`):null]}):(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(`tr`,{ref:e.noDrag?null:E,onClick:m,onMouseEnter:g,onMouseLeave:_,onFocus:h,className:Oi(m&&!m.noStyle?a0.clickableRow:null,g&&!g.noStyle?a0.hoverableRow:null,x?a0.rowActive:null),"data-error":y||null,"data-warning":b||null,"data-index":t,"data-even":t%2==0,style:A,children:[c?j():null,S,C]},t),v&&v.content?(0,U.jsx)(o0,{colSpan:i,flush:v.flush===!0,children:v.content},`${t}_expanded_content`):null]})},jFe=e=>{let{children:t,colSpan:n,columnAlignment:r,columnCount:i,draggable:a,onListReorder:o=()=>{},canListReorder:s=()=>!0,rowActions:c,rows:l=[],tbodyRef:u}=e,[d,f]=(0,H.useState)(null),[p,m]=(0,H.useState)(!1),h=(0,H.useMemo)(()=>l.map((e,t)=>t.toString()),[l]);return a?(0,U.jsxs)(_le,{collisionDetection:Cce,onDragStart:e=>{f(e.active.id)},onDragEnd:e=>{f(null),m(!1);let{active:t,over:n}=e;if(!t||!n||t.id===n.id)return;let r=Number(t.id),i=Number(n?.id);s({from:r,to:i})&&o({from:r,to:i})},onDragOver:e=>{let{active:t,over:n}=e,r=Number(t.id),i=Number(n?.id);m(r!==i&&!s({from:r,to:i}))},children:[(0,U.jsx)(Ble,{items:h,strategy:Rle,children:t({dropDisabled:p})}),!!d&&(0,ii.createPortal)((0,U.jsx)(Ple,{dropAnimation:null,children:(0,U.jsx)(`table`,{className:Oi(t0.table,t0.dragOverlay),children:(0,U.jsx)(`tbody`,{children:(0,U.jsx)(h0,{rowIndex:Number(d),row:l[Number(d)],columnCount:i,columnWidths:(()=>{if(!u?.current)return[];let e=u.current.querySelectorAll(`tr`)[Number(d)]?.querySelectorAll(`td`);if(!e)return[];let t=Array.from(e).map(e=>`${e.getBoundingClientRect().width}px`);return t.shift(),t})(),colSpan:n,hasRowActions:c,columnAlignment:r,draggableTable:a,dropDisabled:p})})})}),document.body)]}):t({})},MFe=({table:e,theadRef:t,children:n})=>{let r=(0,H.useRef)(null),i=lue({count:e?.rowCount??e.rows?.length??0,getScrollElement:()=>r.current,estimateSize:()=>31,overscan:10});return(0,U.jsx)(`div`,{id:`scrollWrapper`,className:Oi(t0.scroll,t0.virtualScroll),ref:r,children:n({virtualizer:i,tableStyle:(()=>{let e=t.current?.clientHeight??0,n=i.getTotalSize()+e,r=i.getVirtualItems(),a=r.length>0?r[0].start:0,o=r.length>0?i.getTotalSize()-r[r.length-1].end:0;return{"--virtualPaddingTop":a+`px`,"--virtualPaddingBottom":o+`px`,height:n}})()})})},NFe=({table:e,theadRef:t,children:n})=>{let{infiniteScroll:r=!1}=e;return r?(0,U.jsx)(MFe,{table:e,theadRef:t,children:({virtualizer:e,tableStyle:t})=>n({virtualizer:e,tableStyle:t})}):(0,U.jsx)(`div`,{id:`scrollWrapper`,className:t0.scroll,children:n({})})},PFe=e=>{let{onListReorder:t=()=>{},canListReorder:n=()=>!0,beforeRenderRow:r,table:i}=e,{columnWidths:a,footer:o,name:s,rows:c=[],actions:l,actionsRight:u,columnHeaderAlignments:d,columnAlignment:f,striped:p=!0,testId:m,draggable:h,defaultEmptyRow:g=null,onAddRow:_=null,bordered:v=!0,maxHeight:y,fixedWidth:b}=i,x=(0,H.useRef)(null),S=(0,H.useRef)(null),C=(0,ai.get)(e,`table.headers`,[]),w=fFe(c,C),T=pFe(c,C),E=w+(T?1:0),D=o?o?.pagination?.rowsPerPage?.value===0||Number(o?.pagination?.selectedPage)>=Number(o?.pagination?.rowCount)/Number(o?.pagination?.rowsPerPage?.value):!0,O=g?.cells?.length&&_&&D,k={cells:O?g.cells.map((e,t)=>e?.type===`Input`?{...e,onChange:e=>{let n=e?.target?.value;_({newRow:{...g,cells:g.cells.map((e,r)=>({...e,value:r===t?n:e?.value}))}})}}:{...e,disabled:!0}):null,testId:m?`${m}-last-empty-row`:void 0},A=O?c.concat(k):c,j={...i,rows:A};return(0,U.jsxs)(`div`,{className:Oi(t0.wrapper,v?t0.bordered:``),style:{maxHeight:y,width:b,display:b===`auto`?`inline-flex`:`flex`},children:[(0,U.jsx)(uFe,{actions:l,actionsRight:u,name:s,testId:m&&`${m}-title`}),(0,U.jsx)(jFe,{colSpan:E,columnAlignment:f,columnCount:w,draggable:h,onListReorder:t,rowActions:T,rows:A,tbodyRef:S,canListReorder:n,children:({dropDisabled:e})=>(0,U.jsx)(NFe,{table:j,theadRef:x,children:({virtualizer:t,tableStyle:n})=>(0,U.jsxs)(`table`,{className:Oi(t0.table,p?t0.striped:``),"data-testid":m,style:n,children:[(0,U.jsx)(`thead`,{ref:x,children:C.map((e,t)=>(0,U.jsx)(h0,{rowIndex:t,isHeader:!0,row:e,columnCount:w,columnWidths:a,colSpan:E,hasRowActions:T,columnAlignment:f,columnHeaderAlignments:d,draggableTable:h},`0_${t}`))}),(0,U.jsx)(`tbody`,{ref:S,children:t?t.getVirtualItems().map(t=>{let n=t.index,i=A[n];return(0,U.jsx)(h0,{rowIndex:n,row:r?r({row:i,rowIndex:n}):i,columnCount:w,columnWidths:a,colSpan:E,hasRowActions:T,columnAlignment:f,draggableTable:h,height:t.size,dropDisabled:e},`1_${n}`)}):A.map((t,n)=>(0,U.jsx)(h0,{rowIndex:n,row:r?r({row:t,rowIndex:n}):t,columnCount:w,columnWidths:a,colSpan:E,hasRowActions:T,columnAlignment:f,draggableTable:h,dropDisabled:e},`1_${n}`))})]})})}),o&&(0,U.jsx)(dFe,{pagination:o.pagination,actions:o.actions,content:o.content})]})};function g0(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=g0(e[t]))&&(r&&(r+=` `),r+=n);else for(t in e)e[t]&&(r&&(r+=` `),r+=t);return r}function _0(){for(var e,t,n=0,r=``;n<arguments.length;)(e=arguments[n++])&&(t=g0(e))&&(r&&(r+=` `),r+=t);return r}var v0=e=>typeof e==`number`&&!isNaN(e),y0=e=>typeof e==`string`,b0=e=>typeof e==`function`,x0=e=>y0(e)||b0(e)?e:null,S0=e=>(0,H.isValidElement)(e)||y0(e)||b0(e)||v0(e);function FFe(e,t,n){n===void 0&&(n=300);let{scrollHeight:r,style:i}=e;requestAnimationFrame(()=>{i.minHeight=`initial`,i.height=r+`px`,i.transition=`all ${n}ms`,requestAnimationFrame(()=>{i.height=`0`,i.padding=`0`,i.margin=`0`,setTimeout(t,n)})})}function C0(e){let{enter:t,exit:n,appendPosition:r=!1,collapse:i=!0,collapseDuration:a=300}=e;return function(e){let{children:o,position:s,preventExitTransition:c,done:l,nodeRef:u,isIn:d}=e,f=r?`${t}--${s}`:t,p=r?`${n}--${s}`:n,m=(0,H.useRef)(0);return(0,H.useLayoutEffect)(()=>{let e=u.current,t=f.split(` `),n=r=>{r.target===u.current&&(e.dispatchEvent(new Event(`d`)),e.removeEventListener(`animationend`,n),e.removeEventListener(`animationcancel`,n),m.current===0&&r.type!==`animationcancel`&&e.classList.remove(...t))};e.classList.add(...t),e.addEventListener(`animationend`,n),e.addEventListener(`animationcancel`,n)},[]),(0,H.useEffect)(()=>{let e=u.current,t=()=>{e.removeEventListener(`animationend`,t),i?FFe(e,l,a):l()};d||(c?t():(m.current=1,e.className+=` ${p}`,e.addEventListener(`animationend`,t)))},[d]),H.createElement(H.Fragment,null,o)}}function w0(e,t){return e==null?{}:{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}}var T0={list:new Map,emitQueue:new Map,on(e,t){return this.list.has(e)||this.list.set(e,[]),this.list.get(e).push(t),this},off(e,t){if(t){let n=this.list.get(e).filter(e=>e!==t);return this.list.set(e,n),this}return this.list.delete(e),this},cancelEmit(e){let t=this.emitQueue.get(e);return t&&(t.forEach(clearTimeout),this.emitQueue.delete(e)),this},emit(e){this.list.has(e)&&this.list.get(e).forEach(t=>{let n=setTimeout(()=>{t(...[].slice.call(arguments,1))},0);this.emitQueue.has(e)||this.emitQueue.set(e,[]),this.emitQueue.get(e).push(n)})}},E0=e=>{let{theme:t,type:n,...r}=e;return H.createElement(`svg`,{viewBox:`0 0 24 24`,width:`100%`,height:`100%`,fill:t===`colored`?`currentColor`:`var(--toastify-icon-color-${n})`,...r})},D0={info:function(e){return H.createElement(E0,{...e},H.createElement(`path`,{d:`M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z`}))},warning:function(e){return H.createElement(E0,{...e},H.createElement(`path`,{d:`M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z`}))},success:function(e){return H.createElement(E0,{...e},H.createElement(`path`,{d:`M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z`}))},error:function(e){return H.createElement(E0,{...e},H.createElement(`path`,{d:`M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z`}))},spinner:function(){return H.createElement(`div`,{className:`Toastify__spinner`})}};function IFe(e){let[,t]=(0,H.useReducer)(e=>e+1,0),[n,r]=(0,H.useState)([]),i=(0,H.useRef)(null),a=(0,H.useRef)(new Map).current,o=e=>n.indexOf(e)!==-1,s=(0,H.useRef)({toastKey:1,displayedToast:0,count:0,queue:[],props:e,containerId:null,isToastActive:o,getToast:e=>a.get(e)}).current;function c(e){let{containerId:t}=e,{limit:n}=s.props;!n||t&&s.containerId!==t||(s.count-=s.queue.length,s.queue=[])}function l(e){r(t=>e==null?[]:t.filter(t=>t!==e))}function u(){let{toastContent:e,toastProps:t,staleId:n}=s.queue.shift();f(e,t,n)}function d(e,n){let{delay:r,staleId:o,...c}=n;if(!S0(e)||function(e){return!i.current||s.props.enableMultiContainer&&e.containerId!==s.props.containerId||a.has(e.toastId)&&e.updateId==null}(c))return;let{toastId:d,updateId:p,data:m}=c,{props:h}=s,g=()=>l(d),_=p==null;_&&s.count++;let v={...h,style:h.toastStyle,key:s.toastKey++,...Object.fromEntries(Object.entries(c).filter(e=>{let[t,n]=e;return n!=null})),toastId:d,updateId:p,data:m,closeToast:g,isIn:!1,className:x0(c.className||h.toastClassName),bodyClassName:x0(c.bodyClassName||h.bodyClassName),progressClassName:x0(c.progressClassName||h.progressClassName),autoClose:!c.isLoading&&(y=c.autoClose,b=h.autoClose,!1===y||v0(y)&&y>0?y:b),deleteToast(){let e=w0(a.get(d),`removed`);a.delete(d),T0.emit(4,e);let n=s.queue.length;if(s.count=d==null?s.count-s.displayedToast:s.count-1,s.count<0&&(s.count=0),n>0){let e=d==null?s.props.limit:1;if(n===1||e===1)s.displayedToast++,u();else{let t=e>n?n:e;s.displayedToast=t;for(let e=0;e<t;e++)u()}}else t()}};var y,b;v.iconOut=function(e){let{theme:t,type:n,isLoading:r,icon:i}=e,a=null,o={theme:t,type:n};return!1===i||(b0(i)?a=i(o):(0,H.isValidElement)(i)?a=(0,H.cloneElement)(i,o):y0(i)||v0(i)?a=i:r?a=D0.spinner():(e=>e in D0)(n)&&(a=D0[n](o))),a}(v),b0(c.onOpen)&&(v.onOpen=c.onOpen),b0(c.onClose)&&(v.onClose=c.onClose),v.closeButton=h.closeButton,!1===c.closeButton||S0(c.closeButton)?v.closeButton=c.closeButton:!0===c.closeButton&&(v.closeButton=!S0(h.closeButton)||h.closeButton);let x=e;(0,H.isValidElement)(e)&&!y0(e.type)?x=(0,H.cloneElement)(e,{closeToast:g,toastProps:v,data:m}):b0(e)&&(x=e({closeToast:g,toastProps:v,data:m})),h.limit&&h.limit>0&&s.count>h.limit&&_?s.queue.push({toastContent:x,toastProps:v,staleId:o}):v0(r)?setTimeout(()=>{f(x,v,o)},r):f(x,v,o)}function f(e,t,n){let{toastId:i}=t;n&&a.delete(n);let o={content:e,props:t};a.set(i,o),r(e=>[...e,i].filter(e=>e!==n)),T0.emit(4,w0(o,o.props.updateId==null?`added`:`updated`))}return(0,H.useEffect)(()=>(s.containerId=e.containerId,T0.cancelEmit(3).on(0,d).on(1,e=>i.current&&l(e)).on(5,c).emit(2,s),()=>{a.clear(),T0.emit(3,s)}),[]),(0,H.useEffect)(()=>{s.props=e,s.isToastActive=o,s.displayedToast=n.length}),{getToastToRender:function(t){let n=new Map,r=Array.from(a.values());return e.newestOnTop&&r.reverse(),r.forEach(e=>{let{position:t}=e.props;n.has(t)||n.set(t,[]),n.get(t).push(e)}),Array.from(n,e=>t(e[0],e[1]))},containerRef:i,isToastActive:o}}function O0(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientX:e.clientX}function k0(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientY:e.clientY}function LFe(e){let[t,n]=(0,H.useState)(!1),[r,i]=(0,H.useState)(!1),a=(0,H.useRef)(null),o=(0,H.useRef)({start:0,x:0,y:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null,didMove:!1}).current,s=(0,H.useRef)(e),{autoClose:c,pauseOnHover:l,closeToast:u,onClick:d,closeOnClick:f}=e;function p(t){if(e.draggable){t.nativeEvent.type===`touchstart`&&t.nativeEvent.preventDefault(),o.didMove=!1,document.addEventListener(`mousemove`,_),document.addEventListener(`mouseup`,v),document.addEventListener(`touchmove`,_),document.addEventListener(`touchend`,v);let n=a.current;o.canCloseOnClick=!0,o.canDrag=!0,o.boundingRect=n.getBoundingClientRect(),n.style.transition=``,o.x=O0(t.nativeEvent),o.y=k0(t.nativeEvent),e.draggableDirection===`x`?(o.start=o.x,o.removalDistance=n.offsetWidth*(e.draggablePercent/100)):(o.start=o.y,o.removalDistance=n.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent/100))}}function m(t){if(o.boundingRect){let{top:n,bottom:r,left:i,right:a}=o.boundingRect;t.nativeEvent.type!==`touchend`&&e.pauseOnHover&&o.x>=i&&o.x<=a&&o.y>=n&&o.y<=r?g():h()}}function h(){n(!0)}function g(){n(!1)}function _(n){let r=a.current;o.canDrag&&r&&(o.didMove=!0,t&&g(),o.x=O0(n),o.y=k0(n),o.delta=e.draggableDirection===`x`?o.x-o.start:o.y-o.start,o.start!==o.x&&(o.canCloseOnClick=!1),r.style.transform=`translate${e.draggableDirection}(${o.delta}px)`,r.style.opacity=``+(1-Math.abs(o.delta/o.removalDistance)))}function v(){document.removeEventListener(`mousemove`,_),document.removeEventListener(`mouseup`,v),document.removeEventListener(`touchmove`,_),document.removeEventListener(`touchend`,v);let t=a.current;if(o.canDrag&&o.didMove&&t){if(o.canDrag=!1,Math.abs(o.delta)>o.removalDistance)return i(!0),void e.closeToast();t.style.transition=`transform 0.2s, opacity 0.2s`,t.style.transform=`translate${e.draggableDirection}(0)`,t.style.opacity=`1`}}(0,H.useEffect)(()=>{s.current=e}),(0,H.useEffect)(()=>(a.current&&a.current.addEventListener(`d`,h,{once:!0}),b0(e.onOpen)&&e.onOpen((0,H.isValidElement)(e.children)&&e.children.props),()=>{let e=s.current;b0(e.onClose)&&e.onClose((0,H.isValidElement)(e.children)&&e.children.props)}),[]),(0,H.useEffect)(()=>(e.pauseOnFocusLoss&&(document.hasFocus()||g(),window.addEventListener(`focus`,h),window.addEventListener(`blur`,g)),()=>{e.pauseOnFocusLoss&&(window.removeEventListener(`focus`,h),window.removeEventListener(`blur`,g))}),[e.pauseOnFocusLoss]);let y={onMouseDown:p,onTouchStart:p,onMouseUp:m,onTouchEnd:m};return c&&l&&(y.onMouseEnter=g,y.onMouseLeave=h),f&&(y.onClick=e=>{d&&d(e),o.canCloseOnClick&&u()}),{playToast:h,pauseToast:g,isRunning:t,preventExitTransition:r,toastRef:a,eventHandlers:y}}function A0(e){let{closeToast:t,theme:n,ariaLabel:r=`close`}=e;return H.createElement(`button`,{className:`Toastify__close-button Toastify__close-button--${n}`,type:`button`,onClick:e=>{e.stopPropagation(),t(e)},"aria-label":r},H.createElement(`svg`,{"aria-hidden":`true`,viewBox:`0 0 14 16`},H.createElement(`path`,{fillRule:`evenodd`,d:`M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z`})))}function RFe(e){let{delay:t,isRunning:n,closeToast:r,type:i=`default`,hide:a,className:o,style:s,controlledProgress:c,progress:l,rtl:u,isIn:d,theme:f}=e,p=a||c&&l===0,m={...s,animationDuration:`${t}ms`,animationPlayState:n?`running`:`paused`,opacity:p?0:1};c&&(m.transform=`scaleX(${l})`);let h=_0(`Toastify__progress-bar`,c?`Toastify__progress-bar--controlled`:`Toastify__progress-bar--animated`,`Toastify__progress-bar-theme--${f}`,`Toastify__progress-bar--${i}`,{"Toastify__progress-bar--rtl":u}),g=b0(o)?o({rtl:u,type:i,defaultClassName:h}):_0(h,o);return H.createElement(`div`,{role:`progressbar`,"aria-hidden":p?`true`:`false`,"aria-label":`notification timer`,className:g,style:m,[c&&l>=1?`onTransitionEnd`:`onAnimationEnd`]:c&&l<1?null:()=>{d&&r()}})}var zFe=e=>{let{isRunning:t,preventExitTransition:n,toastRef:r,eventHandlers:i}=LFe(e),{closeButton:a,children:o,autoClose:s,onClick:c,type:l,hideProgressBar:u,closeToast:d,transition:f,position:p,className:m,style:h,bodyClassName:g,bodyStyle:_,progressClassName:v,progressStyle:y,updateId:b,role:x,progress:S,rtl:C,toastId:w,deleteToast:T,isIn:E,isLoading:D,iconOut:O,closeOnClick:k,theme:A}=e,j=_0(`Toastify__toast`,`Toastify__toast-theme--${A}`,`Toastify__toast--${l}`,{"Toastify__toast--rtl":C},{"Toastify__toast--close-on-click":k}),M=b0(m)?m({rtl:C,position:p,type:l,defaultClassName:j}):_0(j,m),N=!!S||!s,P={closeToast:d,type:l,theme:A},F=null;return!1===a||(F=b0(a)?a(P):(0,H.isValidElement)(a)?(0,H.cloneElement)(a,P):A0(P)),H.createElement(f,{isIn:E,done:T,position:p,preventExitTransition:n,nodeRef:r},H.createElement(`div`,{id:w,onClick:c,className:M,...i,style:h,ref:r},H.createElement(`div`,{...E&&{role:x},className:b0(g)?g({type:l}):_0(`Toastify__toast-body`,g),style:_},O!=null&&H.createElement(`div`,{className:_0(`Toastify__toast-icon`,{"Toastify--animate-icon Toastify__zoom-enter":!D})},O),H.createElement(`div`,null,o)),F,H.createElement(RFe,{...b&&!N?{key:`pb-${b}`}:{},rtl:C,theme:A,delay:s,isRunning:t,isIn:E,closeToast:d,hide:u,type:l,style:y,className:v,controlledProgress:N,progress:S||0})))},j0=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},BFe=C0(j0(`bounce`,!0));C0(j0(`slide`,!0)),C0(j0(`zoom`)),C0(j0(`flip`));var M0=(0,H.forwardRef)((e,t)=>{let{getToastToRender:n,containerRef:r,isToastActive:i}=IFe(e),{className:a,style:o,rtl:s,containerId:c}=e;function l(e){let t=_0(`Toastify__toast-container`,`Toastify__toast-container--${e}`,{"Toastify__toast-container--rtl":s});return b0(a)?a({position:e,rtl:s,defaultClassName:t}):_0(t,x0(a))}return(0,H.useEffect)(()=>{t&&(t.current=r.current)},[]),H.createElement(`div`,{ref:r,className:`Toastify`,id:c},n((e,t)=>{let n=t.length?{...o}:{...o,pointerEvents:`none`};return H.createElement(`div`,{className:l(e),style:n,key:`container-${e}`},t.map((e,n)=>{let{content:r,props:a}=e;return H.createElement(zFe,{...a,isIn:i(a.toastId),style:{...a.style,"--nth":n+1,"--len":t.length},key:`toast-${a.key}`},r)}))}))});M0.displayName=`ToastContainer`,M0.defaultProps={position:`top-right`,transition:BFe,autoClose:5e3,closeButton:A0,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,draggable:!0,draggablePercent:80,draggableDirection:`x`,role:`alert`,theme:`light`};var N0,P0=new Map,F0=[],VFe=1;function I0(){return``+ VFe++}function HFe(e){return e&&(y0(e.toastId)||v0(e.toastId))?e.toastId:I0()}function L0(e,t){return P0.size>0?T0.emit(0,e,t):F0.push({content:e,options:t}),t.toastId}function R0(e,t){return{...t,type:t&&t.type||e,toastId:HFe(t)}}function z0(e){return(t,n)=>L0(t,R0(e,n))}function B0(e,t){return L0(e,R0(`default`,t))}B0.loading=(e,t)=>L0(e,R0(`default`,{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),B0.promise=function(e,t,n){let r,{pending:i,error:a,success:o}=t;i&&(r=y0(i)?B0.loading(i,n):B0.loading(i.render,{...n,...i}));let s={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},c=(e,t,i)=>{if(t==null)return void B0.dismiss(r);let a={type:e,...s,...n,data:i},o=y0(t)?{render:t}:t;return r?B0.update(r,{...a,...o}):B0(o.render,{...a,...o}),i},l=b0(e)?e():e;return l.then(e=>c(`success`,o,e)).catch(e=>c(`error`,a,e)),l},B0.success=z0(`success`),B0.info=z0(`info`),B0.error=z0(`error`),B0.warning=z0(`warning`),B0.warn=B0.warning,B0.dark=(e,t)=>L0(e,R0(`default`,{theme:`dark`,...t})),B0.dismiss=e=>{P0.size>0?T0.emit(1,e):F0=F0.filter(t=>e!=null&&t.options.toastId!==e)},B0.clearWaitingQueue=function(e){return e===void 0&&(e={}),T0.emit(5,e)},B0.isActive=e=>{let t=!1;return P0.forEach(n=>{n.isToastActive&&n.isToastActive(e)&&(t=!0)}),t},B0.update=function(e,t){t===void 0&&(t={}),setTimeout(()=>{let n=function(e,t){let{containerId:n}=t,r=P0.get(n||N0);return r&&r.getToast(e)}(e,t);if(n){let{props:r,content:i}=n,a={delay:100,...r,...t,toastId:t.toastId||e,updateId:I0()};a.toastId!==e&&(a.staleId=e);let o=a.render||i;delete a.render,L0(o,a)}},0)},B0.done=e=>{B0.update(e,{progress:1})},B0.onChange=e=>(T0.on(4,e),()=>{T0.off(4,e)}),B0.POSITION={TOP_LEFT:`top-left`,TOP_RIGHT:`top-right`,TOP_CENTER:`top-center`,BOTTOM_LEFT:`bottom-left`,BOTTOM_RIGHT:`bottom-right`,BOTTOM_CENTER:`bottom-center`},B0.TYPE={INFO:`info`,SUCCESS:`success`,WARNING:`warning`,ERROR:`error`,DEFAULT:`default`},T0.on(2,e=>{N0=e.containerId||e,P0.set(N0,e),F0.forEach(e=>{T0.emit(0,e.content,e.options)}),F0=[]}).on(3,e=>{P0.delete(e.containerId||e),P0.size===0&&T0.off(0).off(1).off(5)});var V0={toggle:`_toggle_1c9wf_9`,small:`_small_1c9wf_25`,disabled:`_disabled_1c9wf_102`,noMargin:`_noMargin_1c9wf_110`,helpIconEnabled:`_helpIconEnabled_1c9wf_113`},UFe=({name:e,label:t,checked:n=!1,disabled:r,display:i,small:a=!1,onChange:o,noMargin:s=!1,testId:c,helpText:l,onClickHelp:u})=>{let d=(0,H.useContext)(na),f=l||u,p=r||d;return(0,U.jsxs)(`div`,{className:Oi(V0.toggle,p?V0.disabled:null,a?V0.small:null,s?V0.noMargin:null),style:{display:i},onClick:t=>{p||(t.target.name=e,t.target.checked=!n,t.target.value=!n,o(t))},"data-testid":c,children:[(0,U.jsx)(`input`,{type:Fi.CHECKBOX,name:e,value:n?.toString(),disabled:p,checked:n,onChange:()=>{}}),(0,U.jsx)(`label`,{children:t}),f&&(0,U.jsx)(`div`,{className:V0.helpIconEnabled,onClick:u,children:(0,U.jsx)(co,{text:l})})]})},WFe=(0,H.createContext)({dragDropManager:void 0});(function(){return typeof Symbol==`function`&&Symbol.observable||`@@observable`})();var H0=function(){return Math.random().toString(36).substring(7).split(``).join(`.`)};``+H0(),``+H0();function U0(e,t,...n){if(GFe()&&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 GFe(){return typeof process<`u`&&!0}var KFe=[],qFe=[];KFe.__IS_NONE__=!0,qFe.__IS_ALL__=!0;var W0=typeof global<`u`?global:self,G0=W0.MutationObserver||W0.WebKitMutationObserver;function K0(e){return function(){let t=setTimeout(r,0),n=setInterval(r,50);function r(){clearTimeout(t),clearInterval(n),e()}}}function JFe(e){let t=1,n=new G0(e),r=document.createTextNode(``);return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}var YFe=typeof G0==`function`?JFe:K0,XFe=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=YFe(this.flush),this.requestErrorThrow=K0(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}},ZFe=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}};new class{create(e){let t=this.freeTasks,n=t.length?t.pop():new ZFe(this.onError,e=>t[t.length]=e);return n.task=e,n}constructor(e){this.onError=e,this.freeTasks=[]}}(new XFe().registerPendingError);var QFe;(function(e){e.SOURCE=`SOURCE`,e.TARGET=`TARGET`})(QFe||={});var q0=typeof window<`u`?H.useLayoutEffect:H.useEffect;function J0(e,t,n){let[r,i]=(0,H.useState)(()=>t(e)),a=(0,H.useCallback)(()=>{let a=t(e);fde(r,a)||(i(a),n&&n())},[r,e,n]);return q0(a),[r,a]}function $Fe(e,t,n){let[r,i]=J0(e,t,n);return q0(function(){let t=e.getHandlerId();if(t!=null)return e.subscribeToStateChange(i,{handlerIds:[t]})},[e,i]),r}function Y0(e,t,n){return $Fe(t,e||(()=>({})),()=>n.reconnect())}function X0(e,t){let n=[...[]];return typeof e!=`function`&&n.push(e),(0,H.useMemo)(()=>typeof e==`function`?e():e,n)}function eIe(e){return(0,H.useMemo)(()=>e.hooks.dragSource(),[e])}function tIe(e){return(0,H.useMemo)(()=>e.hooks.dragPreview(),[e])}var Z0=!1,Q0=!1,nIe=class{receiveHandlerId(e){this.sourceId=e}getHandlerId(){return this.sourceId}canDrag(){U0(!Z0,`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 Z0=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{Z0=!1}}isDragging(){if(!this.sourceId)return!1;U0(!Q0,`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 Q0=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{Q0=!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()}},$0=!1,rIe=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;U0(!$0,`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 $0=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{$0=!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 iIe(e,t,n){let r=n.getRegistry(),i=r.addTarget(e,t);return[i,()=>r.removeTarget(i)]}function aIe(e,t,n){let r=n.getRegistry(),i=r.addSource(e,t);return[i,()=>r.removeSource(i)]}function e2(e,t,n,r){let i;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 n=0;n<a.length;n++){let r=a[n];if(!s(r))return!1;let o=e[r],c=t[r];if(i=void 0,i===!1||i===void 0&&o!==c)return!1}return!0}function t2(e){return typeof e==`object`&&!!e&&Object.prototype.hasOwnProperty.call(e,`current`)}function oIe(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 sIe(e){return(t=null,n=null)=>{if(!(0,H.isValidElement)(t)){let r=t;return e(r,n),r}let r=t;return oIe(r),cIe(r,n?t=>e(t,n):e)}}function n2(e){let t={};return Object.keys(e).forEach(n=>{let r=e[n];if(n.endsWith(`Ref`))t[n]=e[n];else{let e=sIe(r);t[n]=()=>e}}),t}function r2(e,t){typeof e==`function`?e(t):e.current=t}function cIe(e,t){let n=e.ref;return U0(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,H.cloneElement)(e,{ref:e=>{r2(n,e),r2(t,e)}}):(0,H.cloneElement)(e,{ref:t})}var lIe=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!e2(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!e2(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=n2({dragSource:(e,t)=>{this.clearDragSource(),this.dragSourceOptions=t||null,t2(e)?this.dragSourceRef=e:this.dragSourceNode=e,this.reconnectDragSource()},dragPreview:(e,t)=>{this.clearDragPreview(),this.dragPreviewOptions=t||null,t2(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}},uIe=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!e2(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=n2({dropTarget:(e,t)=>{this.clearDropTarget(),this.dropTargetOptions=t,t2(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 i2(){let{dragDropManager:e}=(0,H.useContext)(WFe);return U0(e!=null,`Expected drag drop context`),e}function dIe(e,t){let n=i2(),r=(0,H.useMemo)(()=>new lIe(n.getBackend()),[n]);return q0(()=>(r.dragSourceOptions=e||null,r.reconnect(),()=>r.disconnectDragSource()),[r,e]),q0(()=>(r.dragPreviewOptions=t||null,r.reconnect(),()=>r.disconnectDragPreview()),[r,t]),r}function fIe(){let e=i2();return(0,H.useMemo)(()=>new nIe(e),[e])}var pIe=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 mIe(e,t,n){let r=(0,H.useMemo)(()=>new pIe(e,t,n),[t,n]);return(0,H.useEffect)(()=>{r.spec=e},[e]),r}function hIe(e){return(0,H.useMemo)(()=>{let t=e.type;return U0(t!=null,`spec.type must be defined`),t},[e])}function gIe(e,t,n){let r=i2(),i=mIe(e,t,n),a=hIe(e);q0(function(){if(a!=null){let[e,o]=aIe(a,i,r);return t.receiveHandlerId(e),n.receiveHandlerId(e),o}},[r,t,n,i,a])}function _Ie(e,t){let n=X0(e);U0(!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=fIe(),i=dIe(n.options,n.previewOptions);return gIe(n,r,i),[Y0(n.collect,r,i),eIe(i),tIe(i)]}function vIe(e){let t=i2().getMonitor(),[n,r]=J0(t,e);return(0,H.useEffect)(()=>t.subscribeToOffsetChange(r)),(0,H.useEffect)(()=>t.subscribeToStateChange(r)),n}function yIe(e){return(0,H.useMemo)(()=>e.hooks.dropTarget(),[e])}function bIe(e){let t=i2(),n=(0,H.useMemo)(()=>new uIe(t.getBackend()),[t]);return q0(()=>(n.dropTargetOptions=e||null,n.reconnect(),()=>n.disconnectDropTarget()),[e]),n}function xIe(){let e=i2();return(0,H.useMemo)(()=>new rIe(e),[e])}function SIe(e){let{accept:t}=e;return(0,H.useMemo)(()=>(U0(e.accept!=null,`accept must be defined`),Array.isArray(t)?t:[t]),[t])}var CIe=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 wIe(e,t){let n=(0,H.useMemo)(()=>new CIe(e,t),[t]);return(0,H.useEffect)(()=>{n.spec=e},[e]),n}function TIe(e,t,n){let r=i2(),i=wIe(e,t),a=SIe(e);q0(function(){let[e,o]=iIe(a,i,r);return t.receiveHandlerId(e),n.receiveHandlerId(e),o},[r,t,i,n,a.map(e=>e.toString()).join(`|`)])}function a2(e,t){let n=X0(e),r=xIe(),i=bIe(n.options);return TIe(n,r,i),[Y0(n.collect,r,i),yIe(i)]}var o2;function EIe(){return o2||(o2=new Image,o2.src=`data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==`),o2}var s2=[],DIe=function(){return s2.some(function(e){return e.activeTargets.length>0})},OIe=function(){return s2.some(function(e){return e.skippedTargets.length>0})},c2=`ResizeObserver loop completed with undelivered notifications.`,kIe=function(){var e;typeof ErrorEvent==`function`?e=new ErrorEvent(`error`,{message:c2}):(e=document.createEvent(`Event`),e.initEvent(`error`,!1,!1),e.message=c2),window.dispatchEvent(e)},l2;(function(e){e.BORDER_BOX=`border-box`,e.CONTENT_BOX=`content-box`,e.DEVICE_PIXEL_CONTENT_BOX=`device-pixel-content-box`})(l2||={});var u2=function(e){return Object.freeze(e)},AIe=function(){function e(e,t){this.inlineSize=e,this.blockSize=t,u2(this)}return e}(),d2=function(){function e(e,t,n,r){return this.x=e,this.y=t,this.width=n,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,u2(this)}return e.prototype.toJSON=function(){var e=this;return{x:e.x,y:e.y,top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),f2=function(e){return e instanceof SVGElement&&`getBBox`in e},p2=function(e){if(f2(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var i=e,a=i.offsetWidth,o=i.offsetHeight;return!(a||o||e.getClientRects().length)},m2=function(e){if(e instanceof Element)return!0;var t=e?.ownerDocument?.defaultView;return!!(t&&e instanceof t.Element)},jIe=function(e){switch(e.tagName){case`INPUT`:if(e.type!==`image`)break;case`VIDEO`:case`AUDIO`:case`EMBED`:case`OBJECT`:case`CANVAS`:case`IFRAME`:case`IMG`:return!0}return!1},h2=typeof window<`u`?window:{},g2=new WeakMap,_2=/auto|scroll/,MIe=/^tb|vertical/,NIe=/msie|trident/i.test(h2.navigator&&h2.navigator.userAgent),v2=function(e){return parseFloat(e||`0`)},y2=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new AIe((n?t:e)||0,(n?e:t)||0)},b2=u2({devicePixelContentBoxSize:y2(),borderBoxSize:y2(),contentBoxSize:y2(),contentRect:new d2(0,0,0,0)}),x2=function(e,t){if(t===void 0&&(t=!1),g2.has(e)&&!t)return g2.get(e);if(p2(e))return g2.set(e,b2),b2;var n=getComputedStyle(e),r=f2(e)&&e.ownerSVGElement&&e.getBBox(),i=!NIe&&n.boxSizing===`border-box`,a=MIe.test(n.writingMode||``),o=!r&&_2.test(n.overflowY||``),s=!r&&_2.test(n.overflowX||``),c=r?0:v2(n.paddingTop),l=r?0:v2(n.paddingRight),u=r?0:v2(n.paddingBottom),d=r?0:v2(n.paddingLeft),f=r?0:v2(n.borderTopWidth),p=r?0:v2(n.borderRightWidth),m=r?0:v2(n.borderBottomWidth),h=r?0:v2(n.borderLeftWidth),g=d+l,_=c+u,v=h+p,y=f+m,b=s?e.offsetHeight-y-e.clientHeight:0,x=o?e.offsetWidth-v-e.clientWidth:0,S=i?g+v:0,C=i?_+y:0,w=r?r.width:v2(n.width)-S-x,T=r?r.height:v2(n.height)-C-b,E=w+g+x+v,D=T+_+b+y,O=u2({devicePixelContentBoxSize:y2(Math.round(w*devicePixelRatio),Math.round(T*devicePixelRatio),a),borderBoxSize:y2(E,D,a),contentBoxSize:y2(w,T,a),contentRect:new d2(d,c,w,T)});return g2.set(e,O),O},S2=function(e,t,n){var r=x2(e,n),i=r.borderBoxSize,a=r.contentBoxSize,o=r.devicePixelContentBoxSize;switch(t){case l2.DEVICE_PIXEL_CONTENT_BOX:return o;case l2.BORDER_BOX:return i;default:return a}},PIe=function(){function e(e){var t=x2(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=u2([t.borderBoxSize]),this.contentBoxSize=u2([t.contentBoxSize]),this.devicePixelContentBoxSize=u2([t.devicePixelContentBoxSize])}return e}(),C2=function(e){if(p2(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},FIe=function(){var e=1/0,t=[];s2.forEach(function(n){if(n.activeTargets.length!==0){var r=[];n.activeTargets.forEach(function(t){var n=new PIe(t.target),i=C2(t.target);r.push(n),t.lastReportedSize=S2(t.target,t.observedBox),i<e&&(e=i)}),t.push(function(){n.callback.call(n.observer,r,n.observer)}),n.activeTargets.splice(0,n.activeTargets.length)}});for(var n=0,r=t;n<r.length;n++){var i=r[n];i()}return e},w2=function(e){s2.forEach(function(t){t.activeTargets.splice(0,t.activeTargets.length),t.skippedTargets.splice(0,t.skippedTargets.length),t.observationTargets.forEach(function(n){n.isActive()&&(C2(n.target)>e?t.activeTargets.push(n):t.skippedTargets.push(n))})})},IIe=function(){var e=0;for(w2(e);DIe();)e=FIe(),w2(e);return OIe()&&kIe(),e>0},T2,E2=[],LIe=function(){return E2.splice(0).forEach(function(e){return e()})},RIe=function(e){if(!T2){var t=0,n=document.createTextNode(``);new MutationObserver(function(){return LIe()}).observe(n,{characterData:!0}),T2=function(){n.textContent=`${t?t--:t++}`}}E2.push(e),T2()},zIe=function(e){RIe(function(){requestAnimationFrame(e)})},D2=0,BIe=function(){return!!D2},VIe=250,HIe={attributes:!0,characterData:!0,childList:!0,subtree:!0},O2=[`resize`,`load`,`transitionend`,`animationend`,`animationstart`,`animationiteration`,`keyup`,`keydown`,`mouseup`,`mousedown`,`mouseover`,`mouseout`,`blur`,`focus`],k2=function(e){return e===void 0&&(e=0),Date.now()+e},A2=!1,j2=new(function(){function e(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return e.prototype.run=function(e){var t=this;if(e===void 0&&(e=VIe),!A2){A2=!0;var n=k2(e);zIe(function(){var r=!1;try{r=IIe()}finally{if(A2=!1,e=n-k2(),!BIe())return;r?t.run(1e3):e>0?t.run(e):t.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var e=this,t=function(){return e.observer&&e.observer.observe(document.body,HIe)};document.body?t():h2.addEventListener(`DOMContentLoaded`,t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),O2.forEach(function(t){return h2.addEventListener(t,e.listener,!0)}))},e.prototype.stop=function(){var e=this;this.stopped||=(this.observer&&this.observer.disconnect(),O2.forEach(function(t){return h2.removeEventListener(t,e.listener,!0)}),!0)},e}()),M2=function(e){!D2&&e>0&&j2.start(),D2+=e,!D2&&j2.stop()},UIe=function(e){return!f2(e)&&!jIe(e)&&getComputedStyle(e).display===`inline`},WIe=function(){function e(e,t){this.target=e,this.observedBox=t||l2.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e=S2(this.target,this.observedBox,!0);return UIe(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},e}(),GIe=function(){function e(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t}return e}(),N2=new WeakMap,P2=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},F2=function(){function e(){}return e.connect=function(e,t){var n=new GIe(e,t);N2.set(e,n)},e.observe=function(e,t,n){var r=N2.get(e),i=r.observationTargets.length===0;P2(r.observationTargets,t)<0&&(i&&s2.push(r),r.observationTargets.push(new WIe(t,n&&n.box)),M2(1),j2.schedule())},e.unobserve=function(e,t){var n=N2.get(e),r=P2(n.observationTargets,t),i=n.observationTargets.length===1;r>=0&&(i&&s2.splice(s2.indexOf(n),1),n.observationTargets.splice(r,1),M2(-1))},e.disconnect=function(e){var t=this,n=N2.get(e);n.observationTargets.slice().forEach(function(n){return t.unobserve(e,n.target)}),n.activeTargets.splice(0,n.activeTargets.length)},e}(),KIe=function(){function e(e){if(arguments.length===0)throw TypeError(`Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.`);if(typeof e!=`function`)throw TypeError(`Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.`);F2.connect(this,e)}return e.prototype.observe=function(e,t){if(arguments.length===0)throw TypeError(`Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.`);if(!m2(e))throw TypeError(`Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element`);F2.observe(this,e,t)},e.prototype.unobserve=function(e){if(arguments.length===0)throw TypeError(`Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.`);if(!m2(e))throw TypeError(`Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element`);F2.unobserve(this,e)},e.prototype.disconnect=function(){F2.disconnect(this)},e.toString=function(){return`function ResizeObserver () { [polyfill code] }`},e}(),I2=(0,H.createContext)({});function qIe(e){let t=(0,H.useRef)(null);return t.current===null&&(t.current=e()),t.current}var L2=(0,H.createContext)(null),R2=(0,H.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`});function JIe(e=!0){let t=(0,H.useContext)(L2);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=(0,H.useId)();(0,H.useEffect)(()=>{e&&i(a)},[e]);let o=(0,H.useCallback)(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}var z2=typeof window<`u`,YIe=z2?H.useLayoutEffect:H.useEffect,B2=e=>e,V2=B2,H2=B2;function U2(e){let t;return()=>(t===void 0&&(t=e()),t)}var W2=(e,t,n)=>{let r=t-e;return r===0?1:(n-e)/r},G2=e=>e*1e3,K2=e=>e/1e3,XIe={useManualTiming:!1};function ZIe(e){let t=new Set,n=new Set,r=!1,i=!1,a=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1};function s(t){a.has(t)&&(c.schedule(t),e()),t(o)}let c={schedule:(e,i=!1,o=!1)=>{let s=o&&r?t:n;return i&&a.add(e),s.has(e)||s.add(e),e},cancel:e=>{n.delete(e),a.delete(e)},process:e=>{if(o=e,r){i=!0;return}r=!0,[t,n]=[n,t],t.forEach(s),t.clear(),r=!1,i&&(i=!1,c.process(e))}};return c}var q2=[`read`,`resolveKeyframes`,`update`,`preRender`,`render`,`postRender`],QIe=40;function J2(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=q2.reduce((e,t)=>(e[t]=ZIe(a),e),{}),{read:s,resolveKeyframes:c,update:l,preRender:u,render:d,postRender:f}=o,p=()=>{let a=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(a-i.timestamp,QIe),1),i.timestamp=a,i.isProcessing=!0,s.process(i),c.process(i),l.process(i),u.process(i),d.process(i),f.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(p))},m=()=>{n=!0,r=!0,i.isProcessing||e(p)};return{schedule:q2.reduce((e,t)=>{let r=o[t];return e[t]=(e,t=!1,i=!1)=>(n||m(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<q2.length;t++)o[q2[t]].cancel(e)},state:i,steps:o}}var{schedule:Y2,cancel:X2,state:Z2,steps:Q2}=J2(typeof requestAnimationFrame<`u`?requestAnimationFrame:B2,!0),$2=(0,H.createContext)({strict:!1}),e4={animation:[`animate`,`variants`,`whileHover`,`whileTap`,`exit`,`whileInView`,`whileFocus`,`whileDrag`],exit:[`exit`],drag:[`drag`,`dragControls`],focus:[`whileFocus`],hover:[`whileHover`,`onHoverStart`,`onHoverEnd`],tap:[`whileTap`,`onTap`,`onTapStart`,`onTapCancel`],pan:[`onPan`,`onPanStart`,`onPanSessionStart`,`onPanEnd`],inView:[`whileInView`,`onViewportEnter`,`onViewportLeave`],layout:[`layout`,`layoutId`]},t4={};for(let e in e4)t4[e]={isEnabled:t=>e4[e].some(e=>!!t[e])};function $Ie(e){for(let t in e)t4[t]={...t4[t],...e[t]}}var eLe=new Set(`animate.exit.variants.initial.style.values.variants.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.ignoreStrict.viewport`.split(`.`));function n4(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||eLe.has(e)}var r4=e=>!n4(e);function tLe(e){e&&(r4=t=>t.startsWith(`on`)?!n4(t):e(t))}try{tLe((Vne(),i(Bne)).default)}catch{}function nLe(e,t,n){let r={};for(let i in e)i===`values`&&typeof e.values==`object`||(r4(i)||n===!0&&n4(i)||!t&&!n4(i)||e.draggable&&i.startsWith(`onDrag`))&&(r[i]=e[i]);return r}function rLe(e){if(typeof Proxy>`u`)return e;let t=new Map;return new Proxy((...t)=>e(...t),{get:(n,r)=>r===`create`?e:(t.has(r)||t.set(r,e(r)),t.get(r))})}var i4=(0,H.createContext)({});function a4(e){return typeof e==`string`||Array.isArray(e)}function o4(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}var s4=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],c4=[`initial`,...s4];function l4(e){return o4(e.animate)||c4.some(t=>a4(e[t]))}function u4(e){return!!(l4(e)||e.variants)}function iLe(e,t){if(l4(e)){let{initial:t,animate:n}=e;return{initial:t===!1||a4(t)?t:void 0,animate:a4(n)?n:void 0}}return e.inherit===!1?{}:t}function aLe(e){let{initial:t,animate:n}=iLe(e,(0,H.useContext)(i4));return(0,H.useMemo)(()=>({initial:t,animate:n}),[d4(t),d4(n)])}function d4(e){return Array.isArray(e)?e.join(` `):e}var oLe=Symbol.for(`motionComponentSymbol`);function f4(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}function sLe(e,t,n){return(0,H.useCallback)(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n==`function`?n(r):f4(n)&&(n.current=r))},[t])}var p4=e=>e.replace(/([a-z])([A-Z])/gu,`$1-$2`).toLowerCase(),m4=`data-`+p4(`framerAppearId`),{schedule:h4}=J2(queueMicrotask,!1),g4=(0,H.createContext)({});function cLe(e,t,n,r,i){let{visualElement:a}=(0,H.useContext)(i4),o=(0,H.useContext)($2),s=(0,H.useContext)(L2),c=(0,H.useContext)(R2).reducedMotion,l=(0,H.useRef)(null);r||=o.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:a,props:n,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:c}));let u=l.current,d=(0,H.useContext)(g4);u&&!u.projection&&i&&(u.type===`html`||u.type===`svg`)&&lLe(l.current,n,i,d);let f=(0,H.useRef)(!1);(0,H.useInsertionEffect)(()=>{u&&f.current&&u.update(n,s)});let p=n[m4],m=(0,H.useRef)(!!p&&!window.MotionHandoffIsComplete?.call(window,p)&&window.MotionHasOptimisedAnimation?.call(window,p));return YIe(()=>{u&&(f.current=!0,window.MotionIsMounted=!0,u.updateFeatures(),h4.render(u.render),m.current&&u.animationState&&u.animationState.animateChanges())}),(0,H.useEffect)(()=>{u&&(!m.current&&u.animationState&&u.animationState.animateChanges(),m.current&&=(queueMicrotask(()=>{var e;(e=window.MotionHandoffMarkAsComplete)==null||e.call(window,p)}),!1))}),u}function lLe(e,t,n,r){let{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:c,layoutRoot:l}=t;e.projection=new n(e.latestValues,t[`data-framer-portal-id`]?void 0:_4(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&f4(s),visualElement:e,animationType:typeof a==`string`?a:`both`,initialPromotionConfig:r,layoutScroll:c,layoutRoot:l})}function _4(e){if(e)return e.options.allowProjection===!1?_4(e.parent):e.projection}function uLe({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&$Ie(e);function a(a,o){let s,c={...(0,H.useContext)(R2),...a,layoutId:dLe(a)},{isStatic:l}=c,u=aLe(a),d=r(a,l);if(!l&&z2){fLe(c,e);let n=pLe(c);s=n.MeasureLayout,u.visualElement=cLe(i,d,c,t,n.ProjectionNode)}return(0,U.jsxs)(i4.Provider,{value:u,children:[s&&u.visualElement?(0,U.jsx)(s,{visualElement:u.visualElement,...c}):null,n(i,a,sLe(d,u.visualElement,o),d,l,u.visualElement)]})}a.displayName=`motion.${typeof i==`string`?i:`create(${i.displayName??i.name??``})`}`;let o=(0,H.forwardRef)(a);return o[oLe]=i,o}function dLe({layoutId:e}){let t=(0,H.useContext)(I2).id;return t&&e!==void 0?t+`-`+e:e}function fLe(e,t){(0,H.useContext)($2).strict}function pLe(e){let{drag:t,layout:n}=t4;if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}var mLe=[`animate`,`circle`,`defs`,`desc`,`ellipse`,`g`,`image`,`line`,`filter`,`marker`,`mask`,`metadata`,`path`,`pattern`,`polygon`,`polyline`,`rect`,`stop`,`switch`,`symbol`,`svg`,`text`,`tspan`,`use`,`view`];function v4(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(mLe.indexOf(e)>-1||/[A-Z]/u.test(e))}function y4(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function b4(e,t,n,r){if(typeof t==`function`){let[i,a]=y4(r);t=t(n===void 0?e.custom:n,i,a)}if(typeof t==`string`&&(t=e.variants&&e.variants[t]),typeof t==`function`){let[i,a]=y4(r);t=t(n===void 0?e.custom:n,i,a)}return t}var x4=e=>Array.isArray(e),hLe=e=>!!(e&&typeof e==`object`&&e.mix&&e.toValue),gLe=e=>x4(e)?e[e.length-1]||0:e,S4=e=>!!(e&&e.getVelocity);function C4(e){let t=S4(e)?e.get():e;return hLe(t)?t.toValue():t}function _Le({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,a){let o={latestValues:vLe(r,i,a,e),renderState:t()};return n&&(o.onMount=e=>n({props:r,current:e,...o}),o.onUpdate=e=>n(e)),o}var w4=e=>(t,n)=>{let r=(0,H.useContext)(i4),i=(0,H.useContext)(L2),a=()=>_Le(e,t,r,i);return n?a():qIe(a)};function vLe(e,t,n,r){let i={},a=r(e,{});for(let e in a)i[e]=C4(a[e]);let{initial:o,animate:s}=e,c=l4(e),l=u4(e);t&&l&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let u=n?n.initial===!1:!1;u||=o===!1;let d=u?s:o;if(d&&typeof d!=`boolean`&&!o4(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=b4(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=u?t.length-1:0;t=t[e]}t!==null&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}var T4=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],E4=new Set(T4),D4=e=>t=>typeof t==`string`&&t.startsWith(e),O4=D4(`--`),yLe=D4(`var(--`),k4=e=>yLe(e)?bLe.test(e.split(`/*`)[0].trim()):!1,bLe=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,A4=(e,t)=>t&&typeof e==`number`?t.transform(e):e,j4=(e,t,n)=>n>t?t:n<e?e:n,M4={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},N4={...M4,transform:e=>j4(0,1,e)},P4={...M4,default:1},F4=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),I4=F4(`deg`),L4=F4(`%`),R4=F4(`px`),xLe=F4(`vh`),SLe=F4(`vw`),z4={...L4,parse:e=>L4.parse(e)/100,transform:e=>L4.transform(e*100)},CLe={borderWidth:R4,borderTopWidth:R4,borderRightWidth:R4,borderBottomWidth:R4,borderLeftWidth:R4,borderRadius:R4,radius:R4,borderTopLeftRadius:R4,borderTopRightRadius:R4,borderBottomRightRadius:R4,borderBottomLeftRadius:R4,width:R4,maxWidth:R4,height:R4,maxHeight:R4,top:R4,right:R4,bottom:R4,left:R4,padding:R4,paddingTop:R4,paddingRight:R4,paddingBottom:R4,paddingLeft:R4,margin:R4,marginTop:R4,marginRight:R4,marginBottom:R4,marginLeft:R4,backgroundPositionX:R4,backgroundPositionY:R4},wLe={rotate:I4,rotateX:I4,rotateY:I4,rotateZ:I4,scale:P4,scaleX:P4,scaleY:P4,scaleZ:P4,skew:I4,skewX:I4,skewY:I4,distance:R4,translateX:R4,translateY:R4,translateZ:R4,x:R4,y:R4,z:R4,perspective:R4,transformPerspective:R4,opacity:N4,originX:z4,originY:z4,originZ:R4},B4={...M4,transform:Math.round},V4={...CLe,...wLe,zIndex:B4,size:R4,fillOpacity:N4,strokeOpacity:N4,numOctaves:B4},TLe={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},ELe=T4.length;function DLe(e,t,n){let r=``,i=!0;for(let a=0;a<ELe;a++){let o=T4[a],s=e[o];if(s===void 0)continue;let c=!0;if(c=typeof s==`number`?s===(o.startsWith(`scale`)?1:0):parseFloat(s)===0,!c||n){let e=A4(s,V4[o]);if(!c){i=!1;let t=TLe[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}return r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}function H4(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let n=t[e];if(E4.has(e)){o=!0;continue}else if(O4(e)){i[e]=n;continue}else{let t=A4(n,V4[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=DLe(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}var OLe={offset:`stroke-dashoffset`,array:`stroke-dasharray`},kLe={offset:`strokeDashoffset`,array:`strokeDasharray`};function ALe(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?OLe:kLe;e[a.offset]=R4.transform(-r);let o=R4.transform(t),s=R4.transform(n);e[a.array]=`${o} ${s}`}function U4(e,t,n){return typeof e==`string`?e:R4.transform(t+n*e)}function jLe(e,t,n){return`${U4(t,e.x,e.width)} ${U4(n,e.y,e.height)}`}function W4(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:a,pathLength:o,pathSpacing:s=1,pathOffset:c=0,...l},u,d){if(H4(e,l,d),u){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:f,style:p,dimensions:m}=e;f.transform&&(m&&(p.transform=f.transform),delete f.transform),m&&(i!==void 0||a!==void 0||p.transform)&&(p.transformOrigin=jLe(m,i===void 0?.5:i,a===void 0?.5:a)),t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),r!==void 0&&(f.scale=r),o!==void 0&&ALe(f,o,s,c,!1)}var G4=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),K4=()=>({...G4(),attrs:{}}),q4=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function J4(e,{style:t,vars:n},r,i){for(let a in Object.assign(e.style,t,i&&i.getProjectionStyles(r)),n)e.style.setProperty(a,n[a])}var Y4=new Set([`baseFrequency`,`diffuseConstant`,`kernelMatrix`,`kernelUnitLength`,`keySplines`,`keyTimes`,`limitingConeAngle`,`markerHeight`,`markerWidth`,`numOctaves`,`targetX`,`targetY`,`surfaceScale`,`specularConstant`,`specularExponent`,`stdDeviation`,`tableValues`,`viewBox`,`gradientTransform`,`pathLength`,`startOffset`,`textLength`,`lengthAdjust`]);function X4(e,t,n,r){for(let n in J4(e,t,void 0,r),t.attrs)e.setAttribute(Y4.has(n)?n:p4(n),t.attrs[n])}var Z4={};function MLe(e){Object.assign(Z4,e)}function Q4(e,{layout:t,layoutId:n}){return E4.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!Z4[e]||e===`opacity`)}function $4(e,t,n){let{style:r}=e,i={};for(let a in r)(S4(r[a])||t.style&&S4(t.style[a])||Q4(a,e)||n?.getValue(a)?.liveStyle!==void 0)&&(i[a]=r[a]);return i}function e3(e,t,n){let r=$4(e,t,n);for(let n in e)if(S4(e[n])||S4(t[n])){let t=T4.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}function NLe(e,t){try{t.dimensions=typeof e.getBBox==`function`?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}var t3=[`x`,`y`,`width`,`height`,`cx`,`cy`,`r`],PLe={useVisualState:w4({scrapeMotionValuesFromProps:e3,createRenderState:K4,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:i})=>{if(!n)return;let a=!!e.drag;if(!a){for(let e in i)if(E4.has(e)){a=!0;break}}if(!a)return;let o=!t;if(t)for(let n=0;n<t3.length;n++){let r=t3[n];e[r]!==t[r]&&(o=!0)}o&&Y2.read(()=>{NLe(n,r),Y2.render(()=>{W4(r,i,q4(n.tagName),e.transformTemplate),X4(n,r)})})}})},FLe={useVisualState:w4({scrapeMotionValuesFromProps:$4,createRenderState:G4})};function n3(e,t,n){for(let r in t)!S4(t[r])&&!Q4(r,n)&&(e[r]=t[r])}function ILe({transformTemplate:e},t){return(0,H.useMemo)(()=>{let n=G4();return H4(n,t,e),Object.assign({},n.vars,n.style)},[t])}function LLe(e,t){let n=e.style||{},r={};return n3(r,n,e),Object.assign(r,ILe(e,t)),r}function RLe(e,t){let n={},r=LLe(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout=`none`,r.touchAction=e.drag===!0?`none`:`pan-${e.drag===`x`?`y`:`x`}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}function zLe(e,t,n,r){let i=(0,H.useMemo)(()=>{let n=K4();return W4(n,t,q4(r),e.transformTemplate),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};n3(t,e.style,e),i.style={...t,...i.style}}return i}function BLe(e=!1){return(t,n,r,{latestValues:i},a)=>{let o=(v4(t)?zLe:RLe)(n,i,a,t),s=nLe(n,typeof t==`string`,e),c=t===H.Fragment?{}:{...s,...o,ref:r},{children:l}=n,u=(0,H.useMemo)(()=>S4(l)?l.get():l,[l]);return(0,H.createElement)(t,{...c,children:u})}}function VLe(e,t){return function(n,{forwardMotionProps:r}={forwardMotionProps:!1}){return uLe({...v4(n)?PLe:FLe,preloadedFeatures:e,useRender:BLe(r),createVisualElement:t,Component:n})}}function r3(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function i3(e,t,n){let r=e.getProps();return b4(r,t,n===void 0?r.custom:n,e)}var HLe=U2(()=>window.ScrollTimeline!==void 0),ULe=class{constructor(e){this.stop=()=>this.runAll(`stop`),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>`finished`in e?e.finished:e))}getAll(e){return this.animations[0][e]}setAll(e,t){for(let n=0;n<this.animations.length;n++)this.animations[n][e]=t}attachTimeline(e,t){let n=this.animations.map(n=>{if(HLe()&&n.attachTimeline)return n.attachTimeline(e);if(typeof t==`function`)return t(n)});return()=>{n.forEach((e,t)=>{e&&e(),this.animations[t].stop()})}}get time(){return this.getAll(`time`)}set time(e){this.setAll(`time`,e)}get speed(){return this.getAll(`speed`)}set speed(e){this.setAll(`speed`,e)}get startTime(){return this.getAll(`startTime`)}get duration(){let e=0;for(let t=0;t<this.animations.length;t++)e=Math.max(e,this.animations[t].duration);return e}runAll(e){this.animations.forEach(t=>t[e]())}flatten(){this.runAll(`flatten`)}play(){this.runAll(`play`)}pause(){this.runAll(`pause`)}cancel(){this.runAll(`cancel`)}complete(){this.runAll(`complete`)}},WLe=class extends ULe{then(e,t){return Promise.all(this.animations).then(e).catch(t)}};function a3(e,t){return e?e[t]||e.default||e:void 0}var o3=2e4;function s3(e){let t=0,n=e.next(t);for(;!n.done&&t<o3;)t+=50,n=e.next(t);return t>=o3?1/0:t}function c3(e){return typeof e==`function`}function l3(e,t){e.timeline=t,e.onfinish=null}var u3=e=>Array.isArray(e)&&typeof e[0]==`number`,GLe={linearEasing:void 0};function KLe(e,t){let n=U2(e);return()=>GLe[t]??n()}var d3=KLe(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),f3=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=e(W2(0,i-1,t))+`, `;return`linear(${r.substring(0,r.length-2)})`};function p3(e){return!!(typeof e==`function`&&d3()||!e||typeof e==`string`&&(e in h3||d3())||u3(e)||Array.isArray(e)&&e.every(p3))}var m3=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,h3={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:m3([0,.65,.55,1]),circOut:m3([.55,0,1,.45]),backIn:m3([.31,.01,.66,-.59]),backOut:m3([.33,1.53,.69,.99])};function g3(e,t){if(e)return typeof e==`function`&&d3()?f3(e,t):u3(e)?m3(e):Array.isArray(e)?e.map(e=>g3(e,t)||h3.easeOut):h3[e]}var _3={x:!1,y:!1};function v3(){return _3.x||_3.y}function qLe(e,t,n){if(e instanceof Element)return[e];if(typeof e==`string`){let t=document.querySelectorAll(e);return t?Array.from(t):[]}return Array.from(e)}function y3(e,t){let n=qLe(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function b3(e){return t=>{t.pointerType===`touch`||v3()||e(t)}}function JLe(e,t,n={}){let[r,i,a]=y3(e,n),o=b3(e=>{let{target:n}=e,r=t(e);if(typeof r!=`function`||!n)return;let a=b3(e=>{r(e),n.removeEventListener(`pointerleave`,a)});n.addEventListener(`pointerleave`,a,i)});return r.forEach(e=>{e.addEventListener(`pointerenter`,o,i)}),a}var x3=(e,t)=>t?e===t?!0:x3(e,t.parentElement):!1,S3=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1,YLe=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function XLe(e){return YLe.has(e.tagName)||e.tabIndex!==-1}var C3=new WeakSet;function w3(e){return t=>{t.key===`Enter`&&e(t)}}function T3(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var ZLe=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=w3(()=>{if(C3.has(n))return;T3(n,`down`);let e=w3(()=>{T3(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>T3(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function E3(e){return S3(e)&&!v3()}function QLe(e,t,n={}){let[r,i,a]=y3(e,n),o=e=>{let r=e.currentTarget;if(!E3(e)||C3.has(r))return;C3.add(r);let a=t(e),o=(e,t)=>{window.removeEventListener(`pointerup`,s),window.removeEventListener(`pointercancel`,c),!(!E3(e)||!C3.has(r))&&(C3.delete(r),typeof a==`function`&&a(e,{success:t}))},s=e=>{o(e,n.useGlobalTarget||x3(r,e.target))},c=e=>{o(e,!1)};window.addEventListener(`pointerup`,s,i),window.addEventListener(`pointercancel`,c,i)};return r.forEach(e=>{!XLe(e)&&e.getAttribute(`tabindex`)===null&&(e.tabIndex=0),(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,o,i),e.addEventListener(`focus`,e=>ZLe(e,i),i)}),a}function $Le(e){return e===`x`||e===`y`?_3[e]?null:(_3[e]=!0,()=>{_3[e]=!1}):_3.x||_3.y?null:(_3.x=_3.y=!0,()=>{_3.x=_3.y=!1})}var D3=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...T4]),O3;function eRe(){O3=void 0}var k3={now:()=>(O3===void 0&&k3.set(Z2.isProcessing||XIe.useManualTiming?Z2.timestamp:performance.now()),O3),set:e=>{O3=e,queueMicrotask(eRe)}};function A3(e,t){e.indexOf(t)===-1&&e.push(t)}function j3(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var M3=class{constructor(){this.subscriptions=[]}add(e){return A3(this.subscriptions,e),()=>j3(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};function N3(e,t){return t?e*(1e3/t):0}var P3=30,tRe=e=>!isNaN(parseFloat(e)),nRe=class{constructor(e,t={}){this.version=`11.18.2`,this.canTrackVelocity=null,this.events={},this.updateAndNotify=(e,t=!0)=>{let n=k3.now();this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=k3.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=tRe(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on(`change`,e)}on(e,t){this.events[e]||(this.events[e]=new M3);let n=this.events[e].add(t);return e===`change`?()=>{n(),Y2.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){!t||!this.passiveEffect?this.updateAndNotify(e,t):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){let e=k3.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>P3)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,P3);return N3(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function F3(e,t){return new nRe(e,t)}function rRe(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,F3(n))}function iRe(e,t){let{transitionEnd:n={},transition:r={},...i}=i3(e,t)||{};for(let t in i={...i,...n},i)rRe(e,t,gLe(i[t]))}function aRe(e){return!!(S4(e)&&e.add)}function I3(e,t){let n=e.getValue(`willChange`);if(aRe(n))return n.add(t)}function L3(e){return e.props[m4]}var R3=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,oRe=1e-7,sRe=12;function cRe(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=R3(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>oRe&&++s<sRe);return o}function z3(e,t,n,r){if(e===t&&n===r)return B2;let i=t=>cRe(t,0,1,e,n);return e=>e===0||e===1?e:R3(i(e),t,r)}var B3=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,V3=e=>t=>1-e(1-t),H3=z3(.33,1.53,.69,.99),U3=V3(H3),W3=B3(U3),G3=e=>(e*=2)<1?.5*U3(e):.5*(2-2**(-10*(e-1))),K3=e=>1-Math.sin(Math.acos(e)),q3=V3(K3),J3=B3(K3),Y3=e=>/^0[^.\s]+$/u.test(e);function lRe(e){return typeof e==`number`?e===0:e===null?!0:e===`none`||e===`0`||Y3(e)}var X3=e=>Math.round(e*1e5)/1e5,Z3=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function uRe(e){return e==null}var dRe=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Q3=(e,t)=>n=>!!(typeof n==`string`&&dRe.test(n)&&n.startsWith(e)||t&&!uRe(n)&&Object.prototype.hasOwnProperty.call(n,t)),$3=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(Z3);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},fRe=e=>j4(0,255,e),e6={...M4,transform:e=>Math.round(fRe(e))},t6={test:Q3(`rgb`,`red`),parse:$3(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+e6.transform(e)+`, `+e6.transform(t)+`, `+e6.transform(n)+`, `+X3(N4.transform(r))+`)`};function pRe(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}var n6={test:Q3(`#`),parse:pRe,transform:t6.transform},r6={test:Q3(`hsl`,`hue`),parse:$3(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+L4.transform(X3(t))+`, `+L4.transform(X3(n))+`, `+X3(N4.transform(r))+`)`},i6={test:e=>t6.test(e)||n6.test(e)||r6.test(e),parse:e=>t6.test(e)?t6.parse(e):r6.test(e)?r6.parse(e):n6.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?t6.transform(e):r6.transform(e)},mRe=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function hRe(e){return isNaN(e)&&typeof e==`string`&&(e.match(Z3)?.length||0)+(e.match(mRe)?.length||0)>0}var a6=`number`,o6=`color`,gRe=`var`,_Re=`var(`,s6="${}",vRe=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function c6(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(vRe,e=>(i6.test(e)?(r.color.push(a),i.push(o6),n.push(i6.parse(e))):e.startsWith(_Re)?(r.var.push(a),i.push(gRe),n.push(e)):(r.number.push(a),i.push(a6),n.push(parseFloat(e))),++a,s6)).split(s6),indexes:r,types:i}}function l6(e){return c6(e).values}function u6(e){let{split:t,types:n}=c6(e),r=t.length;return e=>{let i=``;for(let a=0;a<r;a++)if(i+=t[a],e[a]!==void 0){let t=n[a];t===a6?i+=X3(e[a]):t===o6?i+=i6.transform(e[a]):i+=e[a]}return i}}var yRe=e=>typeof e==`number`?0:e;function bRe(e){let t=l6(e);return u6(e)(t.map(yRe))}var d6={test:hRe,parse:l6,createTransformer:u6,getAnimatableNone:bRe},xRe=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function SRe(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(Z3)||[];if(!r)return e;let i=n.replace(r,``),a=xRe.has(t)?1:0;return r!==n&&(a*=100),t+`(`+a+i+`)`}var CRe=/\b([a-z-]*)\(.*?\)/gu,f6={...d6,getAnimatableNone:e=>{let t=e.match(CRe);return t?t.map(SRe).join(` `):e}},wRe={...V4,color:i6,backgroundColor:i6,outlineColor:i6,fill:i6,stroke:i6,borderColor:i6,borderTopColor:i6,borderRightColor:i6,borderBottomColor:i6,borderLeftColor:i6,filter:f6,WebkitFilter:f6},p6=e=>wRe[e];function m6(e,t){let n=p6(e);return n!==f6&&(n=d6),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var TRe=new Set([`auto`,`none`,`0`]);function ERe(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!TRe.has(t)&&c6(t).values.length&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]=m6(n,i)}var h6=e=>e===M4||e===R4,g6=(e,t)=>parseFloat(e.split(`, `)[t]),_6=(e,t)=>(n,{transform:r})=>{if(r===`none`||!r)return 0;let i=r.match(/^matrix3d\((.+)\)$/u);if(i)return g6(i[1],t);{let t=r.match(/^matrix\((.+)\)$/u);return t?g6(t[1],e):0}},DRe=new Set([`x`,`y`,`z`]),ORe=T4.filter(e=>!DRe.has(e));function kRe(e){let t=[];return ORe.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith(`scale`)?1:0))}),t}var v6={width:({x:e},{paddingLeft:t=`0`,paddingRight:n=`0`})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t=`0`,paddingBottom:n=`0`})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:_6(4,13),y:_6(5,14)};v6.translateX=v6.x,v6.translateY=v6.y;var y6=new Set,b6=!1,x6=!1;function S6(){if(x6){let e=Array.from(y6).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=kRe(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{var r;(r=e.getValue(t))==null||r.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}x6=!1,b6=!1,y6.forEach(e=>e.complete()),y6.clear()}function C6(){y6.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(x6=!0)})}function ARe(){C6(),S6()}var w6=class{constructor(e,t,n,r,i,a=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(y6.add(this),b6||(b6=!0,Y2.read(C6),Y2.resolveKeyframes(S6))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;for(let i=0;i<e.length;i++)if(e[i]===null)if(i===0){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=n.readValue(t,a);r!=null&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}else e[i]=e[i-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),y6.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,y6.delete(this))}resume(){this.isComplete||this.scheduleResolve()}},T6=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),jRe=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function MRe(e){let t=jRe.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}var NRe=4;function E6(e,t,n=1){H2(n<=NRe,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[r,i]=MRe(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return T6(e)?parseFloat(e):e}return k4(i)?E6(i,t,n+1):i}var D6=e=>t=>t.test(e),O6=[M4,R4,L4,I4,SLe,xLe,{test:e=>e===`auto`,parse:e=>e}],k6=e=>O6.find(D6(e)),A6=class extends w6{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`string`&&(r=r.trim(),k4(r))){let i=E6(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!D3.has(n)||e.length!==2)return;let[r,i]=e,a=k6(r),o=k6(i);if(a!==o)if(h6(a)&&h6(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else this.needsMeasurement=!0}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)lRe(e[t])&&n.push(t);n.length&&ERe(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=v6[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,a=n[i];n[i]=v6[t](e.measureViewportBox(),window.getComputedStyle(e.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}},j6=(e,t)=>t===`zIndex`?!1:!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(d6.test(e)||e===`0`)&&!e.startsWith(`url(`));function PRe(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function FRe(e,t,n,r){let i=e[0];if(i===null)return!1;if(t===`display`||t===`visibility`)return!0;let a=e[e.length-1],o=j6(i,t),s=j6(a,t);return V2(o===s,`You are trying to animate ${t} from "${i}" to "${a}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${a} via the \`style\` property.`),!o||!s?!1:PRe(e)||(n===`spring`||c3(n))&&r}var IRe=e=>e!==null;function M6(e,{repeat:t,repeatType:n=`loop`},r){let i=e.filter(IRe),a=t&&n!==`loop`&&t%2==1?0:i.length-1;return!a||r===void 0?i[a]:r}var LRe=40,N6=class{constructor({autoplay:e=!0,delay:t=0,type:n=`keyframes`,repeat:r=0,repeatDelay:i=0,repeatType:a=`loop`,...o}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=k3.now(),this.options={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:a,...o},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>LRe?this.resolvedAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&ARe(),this._resolved}onKeyframesResolved(e,t){this.resolvedAt=k3.now(),this.hasAttemptedResolve=!0;let{name:n,type:r,velocity:i,delay:a,onComplete:o,onUpdate:s,isGenerator:c}=this.options;if(!c&&!FRe(e,n,r,i))if(a)this.options.duration=0;else{s&&s(M6(e,this.options,t)),o&&o(),this.resolveFinishedPromise();return}let l=this.initPlayback(e,t);l!==!1&&(this._resolved={keyframes:e,finalKeyframe:t,...l},this.onPostResolved())}onPostResolved(){}then(e,t){return this.currentFinishedPromise.then(e,t)}flatten(){this.options.type=`keyframes`,this.options.ease=`linear`}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}},P6=(e,t,n)=>e+(t-e)*n;function F6(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function RRe({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=F6(s,r,e+1/3),a=F6(s,r,e),o=F6(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function I6(e,t){return n=>n>0?t:e}var L6=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},zRe=[n6,t6,r6],BRe=e=>zRe.find(t=>t.test(e));function R6(e){let t=BRe(e);if(V2(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===r6&&(n=RRe(n)),n}var z6=(e,t)=>{let n=R6(e),r=R6(t);if(!n||!r)return I6(e,t);let i={...n};return e=>(i.red=L6(n.red,r.red,e),i.green=L6(n.green,r.green,e),i.blue=L6(n.blue,r.blue,e),i.alpha=P6(n.alpha,r.alpha,e),t6.transform(i))},VRe=(e,t)=>n=>t(e(n)),B6=(...e)=>e.reduce(VRe),V6=new Set([`none`,`hidden`]);function HRe(e,t){return V6.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function URe(e,t){return n=>P6(e,t,n)}function H6(e){return typeof e==`number`?URe:typeof e==`string`?k4(e)?I6:i6.test(e)?z6:KRe:Array.isArray(e)?U6:typeof e==`object`?i6.test(e)?z6:WRe:I6}function U6(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>H6(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function WRe(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=H6(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function GRe(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][r[a]];n[i]=e.values[o]??0,r[a]++}return n}var KRe=(e,t)=>{let n=d6.createTransformer(t),r=c6(e),i=c6(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?V6.has(e)&&!i.values.length||V6.has(t)&&!r.values.length?HRe(e,t):B6(U6(GRe(r,i),i.values),n):(V2(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),I6(e,t))};function W6(e,t,n){return typeof e==`number`&&typeof t==`number`&&typeof n==`number`?P6(e,t,n):H6(e)(e,t)}var qRe=5;function G6(e,t,n){let r=Math.max(t-qRe,0);return N3(n-e(r),t-r)}var K6={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},q6=.001;function JRe({duration:e=K6.duration,bounce:t=K6.bounce,velocity:n=K6.velocity,mass:r=K6.mass}){let i,a;V2(e<=G2(K6.maxDuration),`Spring duration must be 10 seconds or less`);let o=1-t;o=j4(K6.minDamping,K6.maxDamping,o),e=j4(K6.minDuration,K6.maxDuration,K2(e)),o<1?(i=t=>{let r=t*o,i=r*e,a=r-n,s=J6(t,o),c=Math.exp(-i);return q6-a/s*c},a=t=>{let r=t*o*e,a=r*n+n,s=o**2*t**2*e,c=Math.exp(-r),l=J6(t**2,o);return(-i(t)+q6>0?-1:1)*((a-s)*c)/l}):(i=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),a=t=>Math.exp(-t*e)*((n-t)*(e*e)));let s=5/e,c=XRe(i,a,s);if(e=G2(e),isNaN(c))return{stiffness:K6.stiffness,damping:K6.damping,duration:e};{let t=c**2*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}var YRe=12;function XRe(e,t,n){let r=n;for(let n=1;n<YRe;n++)r-=e(r)/t(r);return r}function J6(e,t){return e*Math.sqrt(1-t*t)}var ZRe=[`duration`,`bounce`],QRe=[`stiffness`,`damping`,`mass`];function Y6(e,t){return t.some(t=>e[t]!==void 0)}function $Re(e){let t={velocity:K6.velocity,stiffness:K6.stiffness,damping:K6.damping,mass:K6.mass,isResolvedFromDuration:!1,...e};if(!Y6(e,QRe)&&Y6(e,ZRe))if(e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*j4(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:K6.mass,stiffness:i,damping:a}}else{let n=JRe(e);t={...t,...n,mass:K6.mass},t.isResolvedFromDuration=!0}return t}function X6(e=K6.visualDuration,t=K6.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},{restSpeed:r,restDelta:i}=n,a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=$Re({...n,velocity:-K2(n.velocity||0)}),m=f||0,h=l/(2*Math.sqrt(c*u)),g=o-a,_=K2(Math.sqrt(c/u)),v=Math.abs(g)<5;r||=v?K6.restSpeed.granular:K6.restSpeed.default,i||=v?K6.restDelta.granular:K6.restDelta.default;let y;if(h<1){let e=J6(_,h);y=t=>o-Math.exp(-h*_*t)*((m+h*_*g)/e*Math.sin(e*t)+g*Math.cos(e*t))}else if(h===1)y=e=>o-Math.exp(-_*e)*(g+(m+_*g)*e);else{let e=_*Math.sqrt(h*h-1);y=t=>{let n=Math.exp(-h*_*t),r=Math.min(e*t,300);return o-n*((m+h*_*g)*Math.sinh(r)+e*g*Math.cosh(r))/e}}let b={calculatedDuration:p&&d||null,next:e=>{let t=y(e);if(p)s.done=e>=d;else{let n=0;h<1&&(n=e===0?G2(m):G6(y,e,t));let a=Math.abs(n)<=r,c=Math.abs(o-t)<=i;s.done=a&&c}return s.value=s.done?o:t,s},toString:()=>{let e=Math.min(s3(b),o3),t=f3(t=>b.next(e*t).value,e,30);return e+`ms `+t}};return b}function Z6({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>s!==void 0&&e<s||c!==void 0&&e>c,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)<Math.abs(c-e)?s:c,h=n*t,g=d+h,_=o===void 0?g:o(g);_!==g&&(h=_-d);let v=e=>-h*Math.exp(-e/r),y=e=>_+v(e),b=e=>{let t=v(e),n=y(e);f.done=Math.abs(t)<=l,f.value=f.done?_:n},x,S,C=e=>{p(f.value)&&(x=e,S=X6({keyframes:[f.value,m(f.value)],velocity:G6(y,e,f.value),damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return!S&&x===void 0&&(t=!0,b(e),C(e)),x!==void 0&&e>=x?S.next(e-x):(!t&&b(e),f)}}}var eze=z3(.42,0,1,1),tze=z3(0,0,.58,1),Q6=z3(.42,0,.58,1),nze=e=>Array.isArray(e)&&typeof e[0]!=`number`,$6={linear:B2,easeIn:eze,easeInOut:Q6,easeOut:tze,circIn:K3,circInOut:J3,circOut:q3,backIn:U3,backInOut:W3,backOut:H3,anticipate:G3},e8=e=>{if(u3(e)){H2(e.length===4,`Cubic bezier arrays must contain four numerical values.`);let[t,n,r,i]=e;return z3(t,n,r,i)}else if(typeof e==`string`)return H2($6[e]!==void 0,`Invalid easing type '${e}'`),$6[e];return e};function rze(e,t,n){let r=[],i=n||W6,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=B6(Array.isArray(t)?t[n]||B2:t,a)),r.push(a)}return r}function ize(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(H2(a===t.length,`Both input and output ranges must be the same length`),a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=rze(t,r,i),c=s.length,l=n=>{if(o&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=W2(e[r],e[r+1],n);return s[r](i)};return n?t=>l(j4(e[0],e[a-1],t)):l}function aze(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=W2(0,t,r);e.push(P6(n,1,i))}}function oze(e){let t=[0];return aze(t,e.length-1),t}function sze(e,t){return e.map(e=>e*t)}function cze(e,t){return e.map(()=>t||Q6).splice(0,e.length-1)}function t8({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=nze(r)?r.map(e8):e8(r),a={done:!1,value:t[0]},o=ize(sze(n&&n.length===t.length?n:oze(t),e),t,{ease:Array.isArray(i)?i:cze(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var lze=e=>{let t=({timestamp:t})=>e(t);return{start:()=>Y2.update(t,!0),stop:()=>X2(t),now:()=>Z2.isProcessing?Z2.timestamp:k3.now()}},uze={decay:Z6,inertia:Z6,tween:t8,keyframes:t8,spring:X6},dze=e=>e/100,n8=class extends N6{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState=`running`,this.startTime=null,this.state=`idle`,this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state===`idle`)return;this.teardown();let{onStop:e}=this.options;e&&e()};let{name:t,motionValue:n,element:r,keyframes:i}=this.options;this.resolver=new(r?.KeyframeResolver||w6)(i,(e,t)=>this.onKeyframesResolved(e,t),t,n,r),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){let{type:t=`keyframes`,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=this.options,o=c3(t)?t:uze[t]||t8,s,c;o!==t8&&typeof e[0]!=`number`&&(s=B6(dze,W6(e[0],e[1])),e=[0,100]);let l=o({...this.options,keyframes:e});i===`mirror`&&(c=o({...this.options,keyframes:[...e].reverse(),velocity:-a})),l.calculatedDuration===null&&(l.calculatedDuration=s3(l));let{calculatedDuration:u}=l,d=u+r,f=d*(n+1)-r;return{generator:l,mirroredGenerator:c,mapPercentToKeyframes:s,calculatedDuration:u,resolvedDuration:d,totalDuration:f}}onPostResolved(){let{autoplay:e=!0}=this.options;this.play(),this.pendingPlayState===`paused`||!e?this.pause():this.state=this.pendingPlayState}tick(e,t=!1){let{resolved:n}=this;if(!n){let{keyframes:e}=this.options;return{done:!0,value:e[e.length-1]}}let{finalKeyframe:r,generator:i,mirroredGenerator:a,mapPercentToKeyframes:o,keyframes:s,calculatedDuration:c,totalDuration:l,resolvedDuration:u}=n;if(this.startTime===null)return i.next(0);let{delay:d,repeat:f,repeatType:p,repeatDelay:m,onUpdate:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-l/this.speed,this.startTime)),t?this.currentTime=e:this.holdTime===null?this.currentTime=Math.round(e-this.startTime)*this.speed:this.currentTime=this.holdTime;let g=this.currentTime-d*(this.speed>=0?1:-1),_=this.speed>=0?g<0:g>l;this.currentTime=Math.max(g,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=l);let v=this.currentTime,y=i;if(f){let e=Math.min(this.currentTime,l)/u,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),n===1&&t--,t=Math.min(t,f+1),t%2&&(p===`reverse`?(n=1-n,m&&(n-=m/u)):p===`mirror`&&(y=a)),v=j4(0,1,n)*u}let b=_?{done:!1,value:s[0]}:y.next(v);o&&(b.value=o(b.value));let{done:x}=b;!_&&c!==null&&(x=this.speed>=0?this.currentTime>=l:this.currentTime<=0);let S=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&x);return S&&r!==void 0&&(b.value=M6(s,this.options,r)),h&&h(b.value),S&&this.finish(),b}get duration(){let{resolved:e}=this;return e?K2(e.calculatedDuration):0}get time(){return K2(this.currentTime)}set time(e){e=G2(e),this.currentTime=e,this.holdTime!==null||this.speed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=K2(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState=`running`;return}if(this.isStopped)return;let{driver:e=lze,onPlay:t,startTime:n}=this.options;this.driver||=e(e=>this.tick(e)),t&&t();let r=this.driver.now();this.holdTime===null?this.startTime?this.state===`finished`&&(this.startTime=r):this.startTime=n??this.calcStartTime():this.startTime=r-this.holdTime,this.state===`finished`&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state=`running`,this.driver.start()}pause(){if(!this._resolved){this.pendingPlayState=`paused`;return}this.state=`paused`,this.holdTime=this.currentTime??0}complete(){this.state!==`running`&&this.play(),this.pendingPlayState=this.state=`finished`,this.holdTime=null}finish(){this.teardown(),this.state=`finished`;let{onComplete:e}=this.options;e&&e()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state=`idle`,this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&=(this.driver.stop(),void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}},fze=new Set([`opacity`,`clipPath`,`filter`,`transform`]);function pze(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeInOut`,times:c}={}){let l={[t]:n};c&&(l.offset=c);let u=g3(s,i);return Array.isArray(u)&&(l.easing=u),e.animate(l,{delay:r,duration:i,easing:Array.isArray(u)?`linear`:u,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`})}var mze=U2(()=>Object.hasOwnProperty.call(Element.prototype,`animate`)),r8=10,hze=2e4;function gze(e){return c3(e.type)||e.type===`spring`||!p3(e.ease)}function _ze(e,t){let n=new n8({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0}),r={done:!1,value:e[0]},i=[],a=0;for(;!r.done&&a<hze;)r=n.sample(a),i.push(r.value),a+=r8;return{times:void 0,keyframes:i,duration:a-r8,ease:`linear`}}var i8={anticipate:G3,backInOut:W3,circInOut:J3};function vze(e){return e in i8}var a8=class extends N6{constructor(e){super(e);let{name:t,motionValue:n,element:r,keyframes:i}=this.options;this.resolver=new A6(i,(e,t)=>this.onKeyframesResolved(e,t),t,n,r),this.resolver.scheduleResolve()}initPlayback(e,t){let{duration:n=300,times:r,ease:i,type:a,motionValue:o,name:s,startTime:c}=this.options;if(!o.owner||!o.owner.current)return!1;if(typeof i==`string`&&d3()&&vze(i)&&(i=i8[i]),gze(this.options)){let{onComplete:t,onUpdate:o,motionValue:s,element:c,...l}=this.options,u=_ze(e,l);e=u.keyframes,e.length===1&&(e[1]=e[0]),n=u.duration,r=u.times,i=u.ease,a=`keyframes`}let l=pze(o.owner.current,s,e,{...this.options,duration:n,times:r,ease:i});return l.startTime=c??this.calcStartTime(),this.pendingTimeline?(l3(l,this.pendingTimeline),this.pendingTimeline=void 0):l.onfinish=()=>{let{onComplete:n}=this.options;o.set(M6(e,this.options,t)),n&&n(),this.cancel(),this.resolveFinishedPromise()},{animation:l,duration:n,times:r,type:a,ease:i,keyframes:e}}get duration(){let{resolved:e}=this;if(!e)return 0;let{duration:t}=e;return K2(t)}get time(){let{resolved:e}=this;if(!e)return 0;let{animation:t}=e;return K2(t.currentTime||0)}set time(e){let{resolved:t}=this;if(!t)return;let{animation:n}=t;n.currentTime=G2(e)}get speed(){let{resolved:e}=this;if(!e)return 1;let{animation:t}=e;return t.playbackRate}set speed(e){let{resolved:t}=this;if(!t)return;let{animation:n}=t;n.playbackRate=e}get state(){let{resolved:e}=this;if(!e)return`idle`;let{animation:t}=e;return t.playState}get startTime(){let{resolved:e}=this;if(!e)return null;let{animation:t}=e;return t.startTime}attachTimeline(e){if(!this._resolved)this.pendingTimeline=e;else{let{resolved:t}=this;if(!t)return B2;let{animation:n}=t;l3(n,e)}return B2}play(){if(this.isStopped)return;let{resolved:e}=this;if(!e)return;let{animation:t}=e;t.playState===`finished`&&this.updateFinishedPromise(),t.play()}pause(){let{resolved:e}=this;if(!e)return;let{animation:t}=e;t.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state===`idle`)return;this.resolveFinishedPromise(),this.updateFinishedPromise();let{resolved:e}=this;if(!e)return;let{animation:t,keyframes:n,duration:r,type:i,ease:a,times:o}=e;if(t.playState===`idle`||t.playState===`finished`)return;if(this.time){let{motionValue:e,onUpdate:t,onComplete:s,element:c,...l}=this.options,u=new n8({...l,keyframes:n,duration:r,type:i,ease:a,times:o,isGenerator:!0}),d=G2(this.time);e.setWithVelocity(u.sample(d-r8).value,u.sample(d).value,r8)}let{onStop:s}=this.options;s&&s(),this.cancel()}complete(){let{resolved:e}=this;e&&e.animation.finish()}cancel(){let{resolved:e}=this;e&&e.animation.cancel()}static supports(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o}=e;if(!t||!t.owner||!(t.owner.current instanceof HTMLElement))return!1;let{onUpdate:s,transformTemplate:c}=t.owner.getProps();return mze()&&n&&fze.has(n)&&!s&&!c&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}},yze={type:`spring`,stiffness:500,damping:25,restSpeed:10},bze=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),xze={type:`keyframes`,duration:.8},Sze={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},Cze=(e,{keyframes:t})=>t.length>2?xze:E4.has(e)?e.startsWith(`scale`)?bze(t[1]):yze:Sze;function wze({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:a,repeatType:o,repeatDelay:s,from:c,elapsed:l,...u}){return!!Object.keys(u).length}var o8=(e,t,n,r={},i,a)=>o=>{let s=a3(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=G2(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};wze(s)||(u={...u,...Cze(e,u)}),u.duration&&=G2(u.duration),u.repeatDelay&&=G2(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(u.duration=0,u.delay===0&&(d=!0)),d&&!a&&t.get()!==void 0){let e=M6(u.keyframes,s);if(e!==void 0)return Y2.update(()=>{u.onUpdate(e),u.onComplete()}),new WLe([])}return!a&&a8.supports(u)?new a8(u):new n8(u)};function Tze({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function s8(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a=e.getDefaultTransition(),transitionEnd:o,...s}=t;r&&(a=r);let c=[],l=i&&e.animationState&&e.animationState.getState()[i];for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||l&&Tze(l,t))continue;let o={delay:n,...a3(a||{},t)},u=!1;if(window.MotionHandoffAnimation){let n=L3(e);if(n){let e=window.MotionHandoffAnimation(n,t,Y2);e!==null&&(o.startTime=e,u=!0)}}I3(e,t),r.start(o8(t,r,i,e.shouldReduceMotion&&D3.has(t)?{type:!1}:o,e,u));let d=r.animation;d&&c.push(d)}return o&&Promise.all(c).then(()=>{Y2.update(()=>{o&&iRe(e,o)})}),c}function c8(e,t,n={}){let r=i3(e,t,n.type===`exit`?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let a=r?()=>Promise.all(s8(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return Eze(e,t,a+r,o,s,n)}:()=>Promise.resolve(),{when:s}=i;if(s){let[e,t]=s===`beforeChildren`?[a,o]:[o,a];return e().then(()=>t())}else return Promise.all([a(),o(n.delay)])}function Eze(e,t,n=0,r=0,i=1,a){let o=[],s=(e.variantChildren.size-1)*r,c=i===1?(e=0)=>e*r:(e=0)=>s-e*r;return Array.from(e.variantChildren).sort(Dze).forEach((e,r)=>{e.notify(`AnimationStart`,t),o.push(c8(e,t,{...a,delay:n+c(r)}).then(()=>e.notify(`AnimationComplete`,t)))}),Promise.all(o)}function Dze(e,t){return e.sortNodePosition(t)}function Oze(e,t,n={}){e.notify(`AnimationStart`,t);let r;if(Array.isArray(t)){let i=t.map(t=>c8(e,t,n));r=Promise.all(i)}else if(typeof t==`string`)r=c8(e,t,n);else{let i=typeof t==`function`?i3(e,t,n.custom):t;r=Promise.all(s8(e,i,n))}return r.then(()=>{e.notify(`AnimationComplete`,t)})}var kze=c4.length;function l8(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&l8(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<kze;n++){let r=c4[n],i=e.props[r];(a4(i)||i===!1)&&(t[r]=i)}return t}var Aze=[...s4].reverse(),jze=s4.length;function Mze(e){return t=>Promise.all(t.map(({animation:t,options:n})=>Oze(e,t,n)))}function Nze(e){let t=Mze(e),n=d8(),r=!0,i=t=>(n,r)=>{let i=i3(e,r,t===`exit`?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function a(n){t=n(e)}function o(a){let{props:o}=e,s=l8(e.parent)||{},c=[],l=new Set,u={},d=1/0;for(let t=0;t<jze;t++){let f=Aze[t],p=n[f],m=o[f]===void 0?s[f]:o[f],h=a4(m),g=f===a?p.isActive:null;g===!1&&(d=t);let _=m===s[f]&&m!==o[f]&&h;if(_&&r&&e.manuallyAnimateOnMount&&(_=!1),p.protectedKeys={...u},!p.isActive&&g===null||!m&&!p.prevProp||o4(m)||typeof m==`boolean`)continue;let v=Pze(p.prevProp,m),y=v||f===a&&p.isActive&&!_&&h||t>d&&h,b=!1,x=Array.isArray(m)?m:[m],S=x.reduce(i(f),{});g===!1&&(S={});let{prevResolvedValues:C={}}=p,w={...C,...S},T=t=>{y=!0,l.has(t)&&(b=!0,l.delete(t)),p.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in w){let t=S[e],n=C[e];if(u.hasOwnProperty(e))continue;let r=!1;r=x4(t)&&x4(n)?!r3(t,n):t!==n,r?t==null?l.add(e):T(e):t!==void 0&&l.has(e)?T(e):p.protectedKeys[e]=!0}p.prevProp=m,p.prevResolvedValues=S,p.isActive&&(u={...u,...S}),r&&e.blockInitialAnimation&&(y=!1),y&&(!(_&&v)||b)&&c.push(...x.map(e=>({animation:e,options:{type:f}})))}if(l.size){let t={};l.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),c.push({animation:t})}let f=!!c.length;return r&&(o.initial===!1||o.initial===o.animate)&&!e.manuallyAnimateOnMount&&(f=!1),r=!1,f?t(c):Promise.resolve()}function s(t,r){var i;if(n[t].isActive===r)return Promise.resolve();(i=e.variantChildren)==null||i.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let a=o(t);for(let e in n)n[e].protectedKeys={};return a}return{animateChanges:o,setActive:s,setAnimateFunction:a,getState:()=>n,reset:()=>{n=d8(),r=!0}}}function Pze(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!r3(t,e):!1}function u8(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function d8(){return{animate:u8(!0),whileInView:u8(),whileHover:u8(),whileTap:u8(),whileDrag:u8(),whileFocus:u8(),exit:u8()}}var f8=class{constructor(e){this.isMounted=!1,this.node=e}update(){}},Fze=class extends f8{constructor(e){super(e),e.animationState||=Nze(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();o4(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)==null||e.call(this)}},Ize=0,Lze={animation:{Feature:Fze},exit:{Feature:class extends f8{constructor(){super(...arguments),this.id=Ize++}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;let r=this.node.animationState.setActive(`exit`,!e);t&&!e&&r.then(()=>t(this.id))}mount(){let{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}}};function p8(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function m8(e){return{point:{x:e.pageX,y:e.pageY}}}var Rze=e=>t=>S3(t)&&e(t,m8(t));function h8(e,t,n,r){return p8(e,t,Rze(n),r)}var g8=(e,t)=>Math.abs(e-t);function zze(e,t){let n=g8(e.x,t.x),r=g8(e.y,t.y);return Math.sqrt(n**2+r**2)}var _8=class{constructor(e,t,{transformPagePoint:n,contextWindow:r,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let e=b8(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=zze(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=Z2;this.history.push({...r,timestamp:i});let{onStart:a,onMove:o}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=v8(t,this.transformPagePoint),Y2.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if(this.dragSnapToOrigin&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=b8(e.type===`pointercancel`?this.lastMoveEventInfo:v8(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!S3(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.contextWindow=r||window;let a=v8(m8(e),this.transformPagePoint),{point:o}=a,{timestamp:s}=Z2;this.history=[{...o,timestamp:s}];let{onSessionStart:c}=t;c&&c(e,b8(a,this.history)),this.removeListeners=B6(h8(this.contextWindow,`pointermove`,this.handlePointerMove),h8(this.contextWindow,`pointerup`,this.handlePointerUp),h8(this.contextWindow,`pointercancel`,this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),X2(this.updatePoint)}};function v8(e,t){return t?{point:t(e.point)}:e}function y8(e,t){return{x:e.x-t.x,y:e.y-t.y}}function b8({point:e},t){return{point:e,delta:y8(e,x8(t)),offset:y8(e,Bze(t)),velocity:Vze(t,.1)}}function Bze(e){return e[0]}function x8(e){return e[e.length-1]}function Vze(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=x8(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>G2(t)));)n--;if(!r)return{x:0,y:0};let a=K2(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};let o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}var S8=1e-4,Hze=1-S8,Uze=1+S8,C8=.01,Wze=0-C8,Gze=0+C8;function w8(e){return e.max-e.min}function Kze(e,t,n){return Math.abs(e-t)<=n}function T8(e,t,n,r=.5){e.origin=r,e.originPoint=P6(t.min,t.max,e.origin),e.scale=w8(n)/w8(t),e.translate=P6(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Hze&&e.scale<=Uze||isNaN(e.scale))&&(e.scale=1),(e.translate>=Wze&&e.translate<=Gze||isNaN(e.translate))&&(e.translate=0)}function E8(e,t,n,r){T8(e.x,t.x,n.x,r?r.originX:void 0),T8(e.y,t.y,n.y,r?r.originY:void 0)}function D8(e,t,n){e.min=n.min+t.min,e.max=e.min+w8(t)}function qze(e,t,n){D8(e.x,t.x,n.x),D8(e.y,t.y,n.y)}function O8(e,t,n){e.min=t.min-n.min,e.max=e.min+w8(t)}function k8(e,t,n){O8(e.x,t.x,n.x),O8(e.y,t.y,n.y)}function Jze(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?P6(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?P6(n,e,r.max):Math.min(e,n)),e}function A8(e,t,n){return{min:t===void 0?void 0:e.min+t,max:n===void 0?void 0:e.max+n-(e.max-e.min)}}function Yze(e,{top:t,left:n,bottom:r,right:i}){return{x:A8(e.x,n,i),y:A8(e.y,t,r)}}function j8(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function Xze(e,t){return{x:j8(e.x,t.x),y:j8(e.y,t.y)}}function Zze(e,t){let n=.5,r=w8(e),i=w8(t);return i>r?n=W2(t.min,t.max-r,e.min):r>i&&(n=W2(e.min,e.max-i,t.min)),j4(0,1,n)}function Qze(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}var M8=.35;function $ze(e=M8){return e===!1?e=0:e===!0&&(e=M8),{x:N8(e,`left`,`right`),y:N8(e,`top`,`bottom`)}}function N8(e,t,n){return{min:P8(e,t),max:P8(e,n)}}function P8(e,t){return typeof e==`number`?e:e[t]||0}var F8=()=>({translate:0,scale:1,origin:0,originPoint:0}),I8=()=>({x:F8(),y:F8()}),L8=()=>({min:0,max:0}),R8=()=>({x:L8(),y:L8()});function z8(e){return[e(`x`),e(`y`)]}function B8({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function eBe({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function tBe(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function V8(e){return e===void 0||e===1}function H8({scale:e,scaleX:t,scaleY:n}){return!V8(e)||!V8(t)||!V8(n)}function U8(e){return H8(e)||W8(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function W8(e){return G8(e.x)||G8(e.y)}function G8(e){return e&&e!==`0%`}function K8(e,t,n){return n+t*(e-n)}function q8(e,t,n,r,i){return i!==void 0&&(e=K8(e,i,r)),K8(e,n,r)+t}function J8(e,t=0,n=1,r,i){e.min=q8(e.min,t,n,r,i),e.max=q8(e.max,t,n,r,i)}function Y8(e,{x:t,y:n}){J8(e.x,t.translate,t.scale,t.originPoint),J8(e.y,n.translate,n.scale,n.originPoint)}var X8=.999999999999,Z8=1.0000000000001;function nBe(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;let{visualElement:i}=a.options;i&&i.props.style&&i.props.style.display===`contents`||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&e5(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,Y8(e,o)),r&&U8(a.latestValues)&&e5(e,a.latestValues))}t.x<Z8&&t.x>X8&&(t.x=1),t.y<Z8&&t.y>X8&&(t.y=1)}function Q8(e,t){e.min+=t,e.max+=t}function $8(e,t,n,r,i=.5){J8(e,t,n,P6(e.min,e.max,i),r)}function e5(e,t){$8(e.x,t.x,t.scaleX,t.scale,t.originX),$8(e.y,t.y,t.scaleY,t.scale,t.originY)}function t5(e,t){return B8(tBe(e.getBoundingClientRect(),t))}function rBe(e,t,n){let r=t5(e,n),{scroll:i}=t;return i&&(Q8(r.x,i.offset.x),Q8(r.y,i.offset.y)),r}var n5=({current:e})=>e?e.ownerDocument.defaultView:null,iBe=new WeakMap,aBe=class{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=R8(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){let{presenceContext:n}=this.visualElement;if(n&&n.isPresent===!1)return;let r=e=>{let{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(m8(e).point)},i=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=$Le(n),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),z8(e=>{let t=this.getAxisMotionValue(e).get()||0;if(L4.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=w8(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&Y2.postRender(()=>i(e,t)),I3(this.visualElement,`transform`);let{animationState:a}=this.visualElement;a&&a.setActive(`whileDrag`,!0)},a=(e,t)=>{let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:o}=t;if(r&&this.currentDirection===null){this.currentDirection=oBe(o),this.currentDirection!==null&&i&&i(this.currentDirection);return}this.updateAxis(`x`,t.point,o),this.updateAxis(`y`,t.point,o),this.visualElement.render(),a&&a(e,t)},o=(e,t)=>this.stop(e,t),s=()=>z8(e=>this.getAnimationState(e)===`paused`&&this.getAxisMotionValue(e).animation?.play()),{dragSnapToOrigin:c}=this.getProps();this.panSession=new _8(e,{onSessionStart:r,onStart:i,onMove:a,onSessionEnd:o,resumeAnimation:s},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,contextWindow:n5(this.visualElement)})}stop(e,t){let n=this.isDragging;if(this.cancel(),!n)return;let{velocity:r}=t;this.startAnimation(r);let{onDragEnd:i}=this.getProps();i&&Y2.postRender(()=>i(e,t))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive(`whileDrag`,!1)}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!r5(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=Jze(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&f4(e)?this.constraints||=this.resolveRefConstraints():e&&n?this.constraints=Yze(n.layoutBox,e):this.constraints=!1,this.elastic=$ze(t),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&z8(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=Qze(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!f4(e))return!1;let n=e.current;H2(n!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;let i=rBe(n,r.root,this.visualElement.getTransformPagePoint()),a=Xze(r.layout.layoutBox,i);if(t){let e=t(eBe(a));this.hasMutatedConstraints=!!e,e&&(a=B8(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=z8(o=>{if(!r5(o,t,this.currentDirection))return;let c=s&&s[o]||{};a&&(c={min:0,max:0});let l=r?200:1e6,u=r?40:1e7,d={type:`inertia`,velocity:n?e[o]:0,bounceStiffness:l,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...i,...c};return this.startAxisValueAnimation(o,d)});return Promise.all(c).then(o)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return I3(this.visualElement,e),n.start(o8(e,n,0,t,this.visualElement,!1))}stopAnimation(){z8(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){z8(e=>this.getAxisMotionValue(e).animation?.pause())}getAnimationState(e){return this.getAxisMotionValue(e).animation?.state}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps();return n[t]||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){z8(t=>{let{drag:n}=this.getProps();if(!r5(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:a}=r.layout.layoutBox[t];i.set(e[t]-P6(n,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!f4(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};z8(e=>{let t=this.getAxisMotionValue(e);if(t&&this.constraints!==!1){let n=t.get();r[e]=Zze({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},``):`none`,n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),z8(t=>{if(!r5(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:a}=this.constraints[t];n.set(P6(i,a,r[t]))})}addListeners(){if(!this.visualElement.current)return;iBe.set(this.visualElement,this);let e=this.visualElement.current,t=h8(e,`pointerdown`,e=>{let{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)}),n=()=>{let{dragConstraints:e}=this.getProps();f4(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,i=r.addEventListener(`measure`,n);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),Y2.read(n);let a=p8(window,`resize`,()=>this.scalePositionWithinConstraints()),o=r.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(z8(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{a(),t(),i(),o&&o()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=M8,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function r5(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function oBe(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}var sBe=class extends f8{constructor(e){super(e),this.removeGroupControls=B2,this.removeListeners=B2,this.controls=new aBe(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||B2}unmount(){this.removeGroupControls(),this.removeListeners()}},i5=e=>(t,n)=>{e&&Y2.postRender(()=>e(t,n))},cBe=class extends f8{constructor(){super(...arguments),this.removePointerDownListener=B2}onPointerDown(e){this.session=new _8(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:n5(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:i5(e),onStart:i5(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&Y2.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=h8(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}},a5={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function o5(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var s5={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`)if(R4.test(e))e=parseFloat(e);else return e;return`${o5(e,t.target.x)}% ${o5(e,t.target.y)}%`}},lBe={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=d6.parse(e);if(i.length>5)return r;let a=d6.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=P6(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},uBe=class extends H.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;MLe(dBe),i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),i.root.didUpdate(),i.addEventListener(`animationComplete`,()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),a5.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,a=n.projection;return a?(a.isPresent=i,r||e.layoutDependency!==t||t===void 0?a.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?a.promote():a.relegate()||Y2.postRender(()=>{let e=a.getStack();(!e||!e.members.length)&&this.safeToRemove()})),null):null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),h4.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}};function c5(e){let[t,n]=JIe(),r=(0,H.useContext)(I2);return(0,U.jsx)(uBe,{...e,layoutGroup:r,switchLayoutGroup:(0,H.useContext)(g4),isPresent:t,safeToRemove:n})}var dBe={borderRadius:{...s5,applyTo:[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`]},borderTopLeftRadius:s5,borderTopRightRadius:s5,borderBottomLeftRadius:s5,borderBottomRightRadius:s5,boxShadow:lBe};function fBe(e,t,n){let r=S4(e)?e:F3(e);return r.start(o8(``,r,t,n)),r.animation}function pBe(e){return e instanceof SVGElement&&e.tagName!==`svg`}var mBe=(e,t)=>e.depth-t.depth,hBe=class{constructor(){this.children=[],this.isDirty=!1}add(e){A3(this.children,e),this.isDirty=!0}remove(e){j3(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(mBe),this.isDirty=!1,this.children.forEach(e)}};function gBe(e,t){let n=k3.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(X2(r),e(a-t))};return Y2.read(r,!0),()=>X2(r)}var l5=[`TopLeft`,`TopRight`,`BottomLeft`,`BottomRight`],_Be=l5.length,u5=e=>typeof e==`string`?parseFloat(e):e,d5=e=>typeof e==`number`||R4.test(e);function vBe(e,t,n,r,i,a){i?(e.opacity=P6(0,n.opacity===void 0?1:n.opacity,yBe(r)),e.opacityExit=P6(t.opacity===void 0?1:t.opacity,0,bBe(r))):a&&(e.opacity=P6(t.opacity===void 0?1:t.opacity,n.opacity===void 0?1:n.opacity,r));for(let i=0;i<_Be;i++){let a=`border${l5[i]}Radius`,o=f5(t,a),s=f5(n,a);o===void 0&&s===void 0||(o||=0,s||=0,o===0||s===0||d5(o)===d5(s)?(e[a]=Math.max(P6(u5(o),u5(s),r),0),(L4.test(s)||L4.test(o))&&(e[a]+=`%`)):e[a]=s)}(t.rotate||n.rotate)&&(e.rotate=P6(t.rotate||0,n.rotate||0,r))}function f5(e,t){return e[t]===void 0?e.borderRadius:e[t]}var yBe=p5(0,.5,q3),bBe=p5(.5,.95,B2);function p5(e,t,n){return r=>r<e?0:r>t?1:n(W2(e,t,r))}function m5(e,t){e.min=t.min,e.max=t.max}function h5(e,t){m5(e.x,t.x),m5(e.y,t.y)}function g5(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function _5(e,t,n,r,i){return e-=t,e=K8(e,1/n,r),i!==void 0&&(e=K8(e,1/i,r)),e}function xBe(e,t=0,n=1,r=.5,i,a=e,o=e){if(L4.test(t)&&(t=parseFloat(t),t=P6(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=P6(a.min,a.max,r);e===a&&(s-=t),e.min=_5(e.min,t,n,s,i),e.max=_5(e.max,t,n,s,i)}function v5(e,t,[n,r,i],a,o){xBe(e,t[n],t[r],t[i],t.scale,a,o)}var SBe=[`x`,`scaleX`,`originX`],CBe=[`y`,`scaleY`,`originY`];function y5(e,t,n,r){v5(e.x,t,SBe,n?n.x:void 0,r?r.x:void 0),v5(e.y,t,CBe,n?n.y:void 0,r?r.y:void 0)}function b5(e){return e.translate===0&&e.scale===1}function x5(e){return b5(e.x)&&b5(e.y)}function S5(e,t){return e.min===t.min&&e.max===t.max}function wBe(e,t){return S5(e.x,t.x)&&S5(e.y,t.y)}function C5(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function w5(e,t){return C5(e.x,t.x)&&C5(e.y,t.y)}function T5(e){return w8(e.x)/w8(e.y)}function E5(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}var TBe=class{constructor(){this.members=[]}add(e){A3(this.members,e),e.scheduleRender()}remove(e){if(j3(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let t=this.members.findIndex(t=>e===t);if(t===0)return!1;let n;for(let e=t;e>=0;e--){let t=this.members[e];if(t.isPresent!==!1){n=t;break}}return n?(this.promote(n),!0):!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);let{crossfade:r}=e.options;r===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{let{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}};function EBe(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,rotateX:i,rotateY:a,skewX:o,skewY:s}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotateX(${i}deg) `),a&&(r+=`rotateY(${a}deg) `),o&&(r+=`skewX(${o}deg) `),s&&(r+=`skewY(${s}deg) `)}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||`none`}var D5={type:`projectionFrame`,totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},O5=typeof window<`u`&&window.MotionDebug!==void 0,k5=[``,`X`,`Y`,`Z`],DBe={visibility:`hidden`},A5=1e3,OBe=0;function j5(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function M5(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=L3(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,Y2,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&M5(r)}function N5({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=OBe++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,O5&&(D5.totalNodes=D5.resolvedTargetDeltas=D5.recalculatedProjection=0),this.nodes.forEach(jBe),this.nodes.forEach(IBe),this.nodes.forEach(LBe),this.nodes.forEach(MBe),O5&&window.MotionDebug.record(D5)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new hBe)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new M3),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t,n=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=pBe(t),this.instance=t;let{layoutId:r,layout:i,visualElement:a}=this.options;if(a&&!a.current&&a.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(i||r)&&(this.isLayoutDirty=!0),e){let n,r=()=>this.root.updateBlockedByResize=!1;e(t,()=>{this.root.updateBlockedByResize=!0,n&&n(),n=gBe(r,250),a5.hasAnimatedSinceResize&&(a5.hasAnimatedSinceResize=!1,this.nodes.forEach(F5))})}r&&this.root.registerSharedNode(r,this),this.options.animate!==!1&&a&&(r||i)&&this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let i=this.options.transition||a.getDefaultTransition()||HBe,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=a.getProps(),c=!this.targetLayout||!w5(this.targetLayout,r)||n,l=!t&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,l);let t={...a3(i,`layout`),onPlay:o,onComplete:s};(a.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||F5(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,X2(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(RBe),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&M5(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,t.updateScroll(`snapshot`),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(t===void 0&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,``):void 0,this.updateSnapshot(),e&&this.notifyListeners(`willUpdate`)}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(P5);return}this.isUpdating||this.nodes.forEach(PBe),this.isUpdating=!1,this.nodes.forEach(FBe),this.nodes.forEach(kBe),this.nodes.forEach(ABe),this.clearAllSnapshots();let e=k3.now();Z2.delta=j4(0,1e3/60,e-Z2.timestamp),Z2.timestamp=e,Z2.isProcessing=!0,Q2.update.process(Z2),Q2.preRender.process(Z2),Q2.render.process(Z2),Z2.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,h4.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(NBe),this.sharedNodes.forEach(zBe)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Y2.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Y2.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=R8(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners(`measure`,this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify(`LayoutMeasure`,this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e=`measure`){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!x5(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&(t||U8(this.latestValues)||a)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){let t=this.measurePageBox(),n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),UBe(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return R8();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(WBe))){let{scroll:e}=this.root;e&&(Q8(t.x,e.offset.x),Q8(t.y,e.offset.y))}return t}removeElementScroll(e){let t=R8();if(h5(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:a}=r;r!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&h5(t,e),Q8(t.x,i.offset.x),Q8(t.y,i.offset.y))}return t}applyTransform(e,t=!1){let n=R8();h5(n,e);for(let e=0;e<this.path.length;e++){let r=this.path[e];!t&&r.options.layoutScroll&&r.scroll&&r!==r.root&&e5(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),U8(r.latestValues)&&e5(n,r.latestValues)}return U8(this.latestValues)&&e5(n,this.latestValues),n}removeTransform(e){let t=R8();h5(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!n.instance||!U8(n.latestValues))continue;H8(n.latestValues)&&n.updateSnapshot();let r=R8();h5(r,n.measurePageBox()),y5(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return U8(this.latestValues)&&y5(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:e.crossfade===void 0?!0:e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Z2.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||=t.isProjectionDirty,this.isTransformDirty||=t.isTransformDirty,this.isSharedProjectionDirty||=t.isSharedProjectionDirty;let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;if(!(!this.layout||!(r||i))){if(this.resolvedRelativeTargetAt=Z2.timestamp,!this.targetDelta&&!this.relativeTarget){let e=this.getClosestProjectingParent();e&&e.layout&&this.animationProgress!==1?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=R8(),this.relativeTargetOrigin=R8(),k8(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),h5(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=R8(),this.targetWithTransforms=R8()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),qze(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):h5(this.target,this.layout.layoutBox),Y8(this.target,this.targetDelta)):h5(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let e=this.getClosestProjectingParent();e&&!!e.resumingFrom==!!this.resumingFrom&&!e.options.layoutScroll&&e.target&&this.animationProgress!==1?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=R8(),this.relativeTargetOrigin=R8(),k8(this.relativeTargetOrigin,this.target,e.target),h5(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}O5&&D5.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||H8(this.parent.latestValues)||W8(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===Z2.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;h5(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;nBe(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=R8());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(g5(this.prevProjectionDelta.x,this.projectionDelta.x),g5(this.prevProjectionDelta.y,this.projectionDelta.y)),E8(this.projectionDelta,this.layoutCorrected,s,this.latestValues),(this.treeScale.x!==a||this.treeScale.y!==o||!E5(this.projectionDelta.x,this.prevProjectionDelta.x)||!E5(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),O5&&D5.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){var t;if((t=this.options.visualElement)==null||t.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=I8(),this.projectionDelta=I8(),this.projectionDeltaWithTransform=I8()}setAnimationOrigin(e,t=!1){let n=this.snapshot,r=n?n.latestValues:{},i={...this.latestValues},a=I8();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let o=R8(),s=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),c=this.getStack(),l=!c||c.members.length<=1,u=!!(s&&!l&&this.options.crossfade===!0&&!this.path.some(VBe));this.animationProgress=0;let d;this.mixTargetDelta=t=>{let n=t/1e3;I5(a.x,e.x,n),I5(a.y,e.y,n),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(k8(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox),BBe(this.relativeTarget,this.relativeTargetOrigin,o,n),d&&wBe(this.relativeTarget,d)&&(this.isProjectionDirty=!1),d||=R8(),h5(d,this.relativeTarget)),s&&(this.animationValues=i,vBe(i,r,this.latestValues,n,u,l)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners(`animationStart`),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&=(X2(this.pendingAnimation),void 0),this.pendingAnimation=Y2.update(()=>{a5.hasAnimatedSinceResize=!0,this.currentAnimation=fBe(0,A5,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners(`animationComplete`)}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(A5),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(!(!t||!n||!r)){if(this!==e&&this.layout&&r&&V5(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||R8();let t=w8(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=w8(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}h5(t,n),e5(t,i),E8(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new TBe),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return e?e.lead===this:!0}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return e?e.relegate(this):!1}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&j5(`z`,e,r,this.animationValues);for(let t=0;t<k5.length;t++)j5(`rotate${k5[t]}`,e,r,this.animationValues),j5(`skew${k5[t]}`,e,r,this.animationValues);for(let t in e.render(),r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}getProjectionStyles(e){if(!this.instance||this.isSVG)return;if(!this.isVisible)return DBe;let t={visibility:``},n=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,t.opacity=``,t.pointerEvents=C4(e?.pointerEvents)||``,t.transform=n?n(this.latestValues,``):`none`,t;let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){let t={};return this.options.layoutId&&(t.opacity=this.latestValues.opacity===void 0?1:this.latestValues.opacity,t.pointerEvents=C4(e?.pointerEvents)||``),this.hasProjected&&!U8(this.latestValues)&&(t.transform=n?n({},``):`none`,this.hasProjected=!1),t}let i=r.animationValues||r.latestValues;this.applyTransformsToTarget(),t.transform=EBe(this.projectionDeltaWithTransform,this.treeScale,i),n&&(t.transform=n(i,t.transform));let{x:a,y:o}=this.projectionDelta;for(let e in t.transformOrigin=`${a.origin*100}% ${o.origin*100}% 0`,r.animationValues?t.opacity=r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:t.opacity=r===this?i.opacity===void 0?``:i.opacity:i.opacityExit===void 0?0:i.opacityExit,Z4){if(i[e]===void 0)continue;let{correct:n,applyTo:a}=Z4[e],o=t.transform===`none`?i[e]:n(i[e],r);if(a){let e=a.length;for(let n=0;n<e;n++)t[a[n]]=o}else t[e]=o}return this.options.layoutId&&(t.pointerEvents=r===this?C4(e?.pointerEvents)||``:`none`),t}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(P5),this.root.sharedNodes.clear()}}}function kBe(e){e.updateLayout()}function ABe(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners(`didUpdate`)){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;i===`size`?z8(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=w8(r);r.min=n[e].min,r.max=r.min+i}):V5(i,t.layoutBox,n)&&z8(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=w8(n[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=I8();E8(o,n,t.layoutBox);let s=I8();a?E8(s,e.applyTransform(r,!0),t.measuredBox):E8(s,n,t.layoutBox);let c=!x5(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let o=R8();k8(o,t.layoutBox,i.layoutBox);let s=R8();k8(s,n,a.layoutBox),w5(o,s)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=o,e.relativeParent=r)}}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:c,hasRelativeTargetChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function jBe(e){O5&&D5.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty),e.isTransformDirty||=e.parent.isTransformDirty)}function MBe(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function NBe(e){e.clearSnapshot()}function P5(e){e.clearMeasurements()}function PBe(e){e.isLayoutDirty=!1}function FBe(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function F5(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function IBe(e){e.resolveTargetDelta()}function LBe(e){e.calcProjection()}function RBe(e){e.resetSkewAndRotation()}function zBe(e){e.removeLeadSnapshot()}function I5(e,t,n){e.translate=P6(t.translate,0,n),e.scale=P6(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function L5(e,t,n,r){e.min=P6(t.min,n.min,r),e.max=P6(t.max,n.max,r)}function BBe(e,t,n,r){L5(e.x,t.x,n.x,r),L5(e.y,t.y,n.y,r)}function VBe(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var HBe={duration:.45,ease:[.4,0,.1,1]},R5=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),z5=R5(`applewebkit/`)&&!R5(`chrome/`)?Math.round:B2;function B5(e){e.min=z5(e.min),e.max=z5(e.max)}function UBe(e){B5(e.x),B5(e.y)}function V5(e,t,n){return e===`position`||e===`preserve-aspect`&&!Kze(T5(t),T5(n),.2)}function WBe(e){return e!==e.root&&e.scroll?.wasRoot}var GBe=N5({attachResizeListener:(e,t)=>p8(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),H5={current:void 0},U5=N5({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!H5.current){let e=new GBe({});e.mount(window),e.setOptions({layoutScroll:!0}),H5.current=e}return H5.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),KBe={pan:{Feature:cBe},drag:{Feature:sBe,ProjectionNode:U5,MeasureLayout:c5}};function W5(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive(`whileHover`,n===`Start`);let i=r[`onHover`+n];i&&Y2.postRender(()=>i(t,m8(t)))}var qBe=class extends f8{mount(){let{current:e}=this.node;e&&(this.unmount=JLe(e,e=>(W5(this.node,e,`Start`),e=>W5(this.node,e,`End`))))}unmount(){}},JBe=class extends f8{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(`:focus-visible`)}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive(`whileFocus`,!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive(`whileFocus`,!1),this.isActive=!1)}mount(){this.unmount=B6(p8(this.node.current,`focus`,()=>this.onFocus()),p8(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function G5(e,t,n){let{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive(`whileTap`,n===`Start`);let i=r[`onTap`+(n===`End`?``:n)];i&&Y2.postRender(()=>i(t,m8(t)))}var YBe=class extends f8{mount(){let{current:e}=this.node;e&&(this.unmount=QLe(e,e=>(G5(this.node,e,`Start`),(e,{success:t})=>G5(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}},K5=new WeakMap,q5=new WeakMap,XBe=e=>{let t=K5.get(e.target);t&&t(e)},ZBe=e=>{e.forEach(XBe)};function QBe({root:e,...t}){let n=e||document;q5.has(n)||q5.set(n,{});let r=q5.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(ZBe,{root:e,...t})),r[i]}function $Be(e,t,n){let r=QBe(t);return K5.set(e,n),r.observe(e),()=>{K5.delete(e),r.unobserve(e)}}var eVe={some:0,all:1},tVe=class extends f8{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r=`some`,once:i}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:typeof r==`number`?r:eVe[r]};return $Be(this.node.current,a,e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive(`whileInView`,t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),a=t?n:r;a&&a(e)})}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>`u`)return;let{props:e,prevProps:t}=this.node;[`amount`,`margin`,`root`].some(nVe(e,t))&&this.startObserver()}unmount(){}};function nVe({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var rVe={inView:{Feature:tVe},tap:{Feature:YBe},focus:{Feature:JBe},hover:{Feature:qBe}},iVe={layout:{ProjectionNode:U5,MeasureLayout:c5}},J5={current:null},Y5={current:!1};function aVe(){if(Y5.current=!0,z2)if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>J5.current=e.matches;e.addListener(t),t()}else J5.current=!1}var oVe=[...O6,i6,d6],sVe=e=>oVe.find(D6(e)),X5=new WeakMap;function cVe(e,t,n){for(let r in t){let i=t[r],a=n[r];if(S4(i))e.addValue(r,i);else if(S4(a))e.addValue(r,F3(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,F3(t===void 0?i:t,{owner:e}))}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var Z5=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],lVe=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,blockInitialAnimation:i,visualState:a},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=w6,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify(`Update`,this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=k3.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,Y2.render(this.render,!1,!0))};let{latestValues:s,renderState:c,onUpdate:l}=a;this.onUpdate=l,this.latestValues=s,this.baseTarget={...s},this.initialValues=t.initial?{...s}:{},this.renderState=c,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=o,this.blockInitialAnimation=!!i,this.isControllingVariants=l4(t),this.isVariantNode=u4(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in d){let t=d[e];s[e]!==void 0&&S4(t)&&t.set(s[e],!1)}}mount(e){this.current=e,X5.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),Y5.current||aVe(),this.shouldReduceMotion=this.reducedMotionConfig===`never`?!1:this.reducedMotionConfig===`always`?!0:J5.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let e in X5.delete(this.current),this.projection&&this.projection.unmount(),X2(this.notifyUpdate),X2(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}bindToMotionValue(e,t){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();let n=E4.has(e),r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&Y2.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),i=t.on(`renderRequest`,this.scheduleRender),a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i(),a&&a(),t.owner&&t.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e=`animation`;for(e in t4){let t=t4[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):R8()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<Z5.length;t++){let n=Z5[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e[`on`+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=cVe(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=F3(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n==`string`&&(T6(n)||Y3(n))?n=parseFloat(n):!sVe(n)&&d6.test(t)&&(n=m6(e,t)),this.setBaseTarget(e,S4(n)?n.get():n)),S4(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let{initial:t}=this.props,n;if(typeof t==`string`||typeof t==`object`){let r=b4(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&n!==void 0)return n;let r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!S4(r)?r:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new M3),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}},Q5=class extends lVe{constructor(){super(...arguments),this.KeyframeResolver=A6}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;S4(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}};function uVe(e){return window.getComputedStyle(e)}var dVe=class extends Q5{constructor(){super(...arguments),this.type=`html`,this.renderInstance=J4}readValueFromInstance(e,t){if(E4.has(t)){let e=p6(t);return e&&e.default||0}else{let n=uVe(e),r=(O4(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return t5(e,t)}build(e,t,n){H4(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return $4(e,t,n)}},fVe=class extends Q5{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=R8}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(E4.has(t)){let e=p6(t);return e&&e.default||0}return t=Y4.has(t)?t:p4(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return e3(e,t,n)}build(e,t,n){W4(e,t,this.isSVGTag,n.transformTemplate)}renderInstance(e,t,n,r){X4(e,t,n,r)}mount(e){this.isSVGTag=q4(e.tagName),super.mount(e)}},pVe=(e,t)=>v4(e)?new fVe(t):new dVe(t,{allowProjection:e!==H.Fragment}),mVe=rLe(VLe({...Lze,...rVe,...KBe,...iVe},pVe));function $5(e,t){let n;return(...r)=>{window.clearTimeout(n),n=window.setTimeout(()=>e(...r),t)}}function hVe({debounce:e,scroll:t,polyfill:n,offsetSize:r}={debounce:0,scroll:!1,offsetSize:!1}){let i=n||(typeof window>`u`?class{}:window.ResizeObserver);if(!i)throw Error(`This browser does not support ResizeObserver out of the box. See: https://github.com/react-spring/react-use-measure/#resize-observer-polyfills`);let[a,o]=(0,H.useState)({left:0,top:0,width:0,height:0,bottom:0,right:0,x:0,y:0}),s=(0,H.useRef)({element:null,scrollContainers:null,resizeObserver:null,lastBounds:a,orientationHandler:null}),c=e?typeof e==`number`?e:e.scroll:null,l=e?typeof e==`number`?e:e.resize:null,u=(0,H.useRef)(!1);(0,H.useEffect)(()=>(u.current=!0,()=>void(u.current=!1)));let[d,f,p]=(0,H.useMemo)(()=>{let e=()=>{if(!s.current.element)return;let{left:e,top:t,width:n,height:i,bottom:a,right:c,x:l,y:d}=s.current.element.getBoundingClientRect(),f={left:e,top:t,width:n,height:i,bottom:a,right:c,x:l,y:d};s.current.element instanceof HTMLElement&&r&&(f.height=s.current.element.offsetHeight,f.width=s.current.element.offsetWidth),Object.freeze(f),u.current&&!yVe(s.current.lastBounds,f)&&o(s.current.lastBounds=f)};return[e,l?$5(e,l):e,c?$5(e,c):e]},[o,r,c,l]);function m(){s.current.scrollContainers&&(s.current.scrollContainers.forEach(e=>e.removeEventListener(`scroll`,p,!0)),s.current.scrollContainers=null),s.current.resizeObserver&&(s.current.resizeObserver.disconnect(),s.current.resizeObserver=null),s.current.orientationHandler&&(`orientation`in screen&&`removeEventListener`in screen.orientation?screen.orientation.removeEventListener(`change`,s.current.orientationHandler):`onorientationchange`in window&&window.removeEventListener(`orientationchange`,s.current.orientationHandler))}function h(){s.current.element&&(s.current.resizeObserver=new i(p),s.current.resizeObserver.observe(s.current.element),t&&s.current.scrollContainers&&s.current.scrollContainers.forEach(e=>e.addEventListener(`scroll`,p,{capture:!0,passive:!0})),s.current.orientationHandler=()=>{p()},`orientation`in screen&&`addEventListener`in screen.orientation?screen.orientation.addEventListener(`change`,s.current.orientationHandler):`onorientationchange`in window&&window.addEventListener(`orientationchange`,s.current.orientationHandler))}return _Ve(p,!!t),gVe(f),(0,H.useEffect)(()=>{m(),h()},[t,p,f]),(0,H.useEffect)(()=>m,[]),[e=>{!e||e===s.current.element||(m(),s.current.element=e,s.current.scrollContainers=e7(e),h())},a,d]}function gVe(e){(0,H.useEffect)(()=>{let t=e;return window.addEventListener(`resize`,t),()=>void window.removeEventListener(`resize`,t)},[e])}function _Ve(e,t){(0,H.useEffect)(()=>{if(t){let t=e;return window.addEventListener(`scroll`,t,{capture:!0,passive:!0}),()=>void window.removeEventListener(`scroll`,t,!0)}},[e,t])}function e7(e){let t=[];if(!e||e===document.body)return t;let{overflow:n,overflowX:r,overflowY:i}=window.getComputedStyle(e);return[n,r,i].some(e=>e===`auto`||e===`scroll`)&&t.push(e),[...t,...e7(e.parentElement)]}var vVe=[`x`,`y`,`top`,`bottom`,`left`,`right`,`width`,`height`],yVe=(e,t)=>vVe.every(n=>e[n]===t[n]),t7=e=>{throw TypeError(e)},n7=(e,t,n)=>t.has(e)||t7(`Cannot `+n),r7=(e,t,n)=>(n7(e,t,`read from private field`),n?n.call(e):t.get(e)),i7=(e,t,n)=>t.has(e)?t7(`Cannot add the same private member more than once`):t instanceof WeakSet?t.add(e):t.set(e,n),a7=(e,t,n,r)=>(n7(e,t,`write to private field`),t.set(e,n),n),o7,bVe=class{constructor(){i7(this,o7),this.register=e=>{r7(this,o7).push(e)},this.unregister=e=>{for(;r7(this,o7).indexOf(e)!==-1;)r7(this,o7).splice(r7(this,o7).indexOf(e),1)},this.backendChanged=e=>{for(let t of r7(this,o7))t.backendChanged(e)},a7(this,o7,[])}};o7=new WeakMap;var s7,c7,l7,u7,d7,f7,p7,m7,h7,g7,_7,xVe=class e{constructor(t,n,r){if(i7(this,s7),i7(this,c7),i7(this,l7),i7(this,u7),i7(this,d7),i7(this,f7,(e,t,n)=>{if(!n.backend)throw Error(`You must specify a 'backend' property in your Backend entry: ${JSON.stringify(n)}`);let r=n.backend(e,t,n.options),i=n.id,a=!n.id&&r&&r.constructor;if(a&&(i=r.constructor.name),!i)throw Error(`You must specify an 'id' property in your Backend entry: ${JSON.stringify(n)}
1241
1241
  see this guide: https://github.com/louisbrunner/dnd-multi-backend/tree/master/packages/react-dnd-multi-backend#migrating-from-5xx`);if(a&&console.warn(`Deprecation notice: You are using a pipeline which doesn't include backends' 'id'.
1242
1242
  This might be unsupported in the future, please specify 'id' explicitely for every backend.`),r7(this,l7)[i])throw Error(`You must specify a unique 'id' property in your Backend entry:
1243
1243
  ${JSON.stringify(n)} (conflicts with: ${JSON.stringify(r7(this,l7)[i])})`);return{id:i,instance:r,preview:n.preview??!1,transition:n.transition,skipDispatchOnTransition:n.skipDispatchOnTransition??!1}}),this.setup=()=>{if(!(typeof window>`u`)){if(e.isSetUp)throw Error(`Cannot have two MultiBackends at the same time.`);e.isSetUp=!0,r7(this,p7).call(this,window),r7(this,l7)[r7(this,s7)].instance.setup()}},this.teardown=()=>{typeof window>`u`||(e.isSetUp=!1,r7(this,m7).call(this,window),r7(this,l7)[r7(this,s7)].instance.teardown())},this.connectDragSource=(e,t,n)=>r7(this,_7).call(this,`connectDragSource`,e,t,n),this.connectDragPreview=(e,t,n)=>r7(this,_7).call(this,`connectDragPreview`,e,t,n),this.connectDropTarget=(e,t,n)=>r7(this,_7).call(this,`connectDropTarget`,e,t,n),this.profile=()=>r7(this,l7)[r7(this,s7)].instance.profile(),this.previewEnabled=()=>r7(this,l7)[r7(this,s7)].preview,this.previewsList=()=>r7(this,c7),this.backendsList=()=>r7(this,u7),i7(this,p7,e=>{for(let t of r7(this,u7))t.transition&&e.addEventListener(t.transition.event,r7(this,h7))}),i7(this,m7,e=>{for(let t of r7(this,u7))t.transition&&e.removeEventListener(t.transition.event,r7(this,h7))}),i7(this,h7,e=>{var t;let n=r7(this,s7);if(r7(this,u7).some(t=>t.id!==r7(this,s7)&&t.transition&&t.transition.check(e)?(a7(this,s7,t.id),!0):!1),r7(this,s7)!==n){r7(this,l7)[n].instance.teardown();for(let[e,t]of Object.entries(r7(this,d7)))t.unsubscribe(),t.unsubscribe=r7(this,g7).call(this,t.func,...t.args);r7(this,c7).backendChanged(this);let r=r7(this,l7)[r7(this,s7)];if(r.instance.setup(),r.skipDispatchOnTransition)return;let i=e.constructor,a=new i(e.type,e);(t=e.target)==null||t.dispatchEvent(a)}}),i7(this,g7,(e,t,n,r)=>r7(this,l7)[r7(this,s7)].instance[e](t,n,r)),i7(this,_7,(e,t,n,r)=>{let i=`${e}_${t}`,a=r7(this,g7).call(this,e,t,n,r);return r7(this,d7)[i]={func:e,args:[t,n,r],unsubscribe:a},()=>{r7(this,d7)[i].unsubscribe(),delete r7(this,d7)[i]}}),!r||!r.backends||r.backends.length<1)throw Error(`You must specify at least one Backend, if you are coming from 2.x.x (or don't understand this error)
@@ -1252,15 +1252,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1252
1252
  `)+`
1253
1253
  `}function l(e,t,n,r,i,a,o){return c(s(e,t,n,r,i,a,o))}function u(e,t,n,r,i,a){return l(e,e,t,n,r,i,a)}return C9}var E9={},D9;function rHe(){if(D9)return E9;D9=1,Object.defineProperty(E9,`__esModule`,{value:!0}),E9.arrayEqual=e,E9.arrayStartsWith=t;function e(e,n){return e.length===n.length?t(e,n):!1}function t(e,t){if(t.length>e.length)return!1;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}return E9}var O9;function iHe(){if(O9)return S9;O9=1,Object.defineProperty(S9,`__esModule`,{value:!0}),S9.calcLineCount=l,S9.merge=u;var e=T9(),t=v9(),n=rHe();function r(e){return s(e)||o(e)||a(e)||i()}function i(){throw TypeError(`Invalid attempt to spread non-iterable instance.
1254
1254
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function a(e,t){if(e){if(typeof e==`string`)return c(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 c(e,t)}}function o(e){if(typeof Symbol<`u`&&Symbol.iterator in Object(e))return Array.from(e)}function s(e){if(Array.isArray(e))return c(e)}function c(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 l(e){var t=E(e.lines),n=t.oldLines,r=t.newLines;n===void 0?delete e.oldLines:e.oldLines=n,r===void 0?delete e.newLines:e.newLines=r}function u(e,t,n){e=d(e,n),t=d(t,n);var r={};(e.index||t.index)&&(r.index=e.index||t.index),(e.newFileName||t.newFileName)&&(f(e)?f(t)?(r.oldFileName=p(r,e.oldFileName,t.oldFileName),r.newFileName=p(r,e.newFileName,t.newFileName),r.oldHeader=p(r,e.oldHeader,t.oldHeader),r.newHeader=p(r,e.newHeader,t.newHeader)):(r.oldFileName=e.oldFileName,r.newFileName=e.newFileName,r.oldHeader=e.oldHeader,r.newHeader=e.newHeader):(r.oldFileName=t.oldFileName||e.oldFileName,r.newFileName=t.newFileName||e.newFileName,r.oldHeader=t.oldHeader||e.oldHeader,r.newHeader=t.newHeader||e.newHeader)),r.hunks=[];for(var i=0,a=0,o=0,s=0;i<e.hunks.length||a<t.hunks.length;){var c=e.hunks[i]||{oldStart:1/0},l=t.hunks[a]||{oldStart:1/0};if(m(c,l))r.hunks.push(h(c,o)),i++,s+=c.newLines-c.oldLines;else if(m(l,c))r.hunks.push(h(l,s)),a++,o+=l.newLines-l.oldLines;else{var u={oldStart:Math.min(c.oldStart,l.oldStart),oldLines:0,newStart:Math.min(c.newStart+o,l.oldStart+s),newLines:0,lines:[]};g(u,c.oldStart,c.lines,l.oldStart,l.lines),a++,i++,r.hunks.push(u)}}return r}function d(n,r){if(typeof n==`string`){if(/^@@/m.test(n)||/^Index:/m.test(n))return(0,t.parsePatch)(n)[0];if(!r)throw Error(`Must provide a base reference or pass in a patch`);return(0,e.structuredPatch)(void 0,void 0,r,n)}return n}function f(e){return e.newFileName&&e.newFileName!==e.oldFileName}function p(e,t,n){return t===n?t:(e.conflict=!0,{mine:t,theirs:n})}function m(e,t){return e.oldStart<t.oldStart&&e.oldStart+e.oldLines<t.oldStart}function h(e,t){return{oldStart:e.oldStart,oldLines:e.oldLines,newStart:e.newStart+t,newLines:e.newLines,lines:e.lines}}function g(e,t,n,i,a){var o={offset:t,lines:n,index:0},s={offset:i,lines:a,index:0};for(b(e,o,s),b(e,s,o);o.index<o.lines.length&&s.index<s.lines.length;){var c=o.lines[o.index],u=s.lines[s.index];if((c[0]===`-`||c[0]===`+`)&&(u[0]===`-`||u[0]===`+`))_(e,o,s);else if(c[0]===`+`&&u[0]===` `){var d;(d=e.lines).push.apply(d,r(S(o)))}else if(u[0]===`+`&&c[0]===` `){var f;(f=e.lines).push.apply(f,r(S(s)))}else c[0]===`-`&&u[0]===` `?v(e,o,s):u[0]===`-`&&c[0]===` `?v(e,s,o,!0):c===u?(e.lines.push(c),o.index++,s.index++):y(e,S(o),S(s))}x(e,o),x(e,s),l(e)}function _(e,t,i){var a=S(t),o=S(i);if(w(a)&&w(o)){if((0,n.arrayStartsWith)(a,o)&&T(i,a,a.length-o.length)){var s;(s=e.lines).push.apply(s,r(a));return}else if((0,n.arrayStartsWith)(o,a)&&T(t,o,o.length-a.length)){var c;(c=e.lines).push.apply(c,r(o));return}}else if((0,n.arrayEqual)(a,o)){var l;(l=e.lines).push.apply(l,r(a));return}y(e,a,o)}function v(e,t,n,i){var a=S(t),o=C(n,a);if(o.merged){var s;(s=e.lines).push.apply(s,r(o.merged))}else y(e,i?o:a,i?a:o)}function y(e,t,n){e.conflict=!0,e.lines.push({conflict:!0,mine:t,theirs:n})}function b(e,t,n){for(;t.offset<n.offset&&t.index<t.lines.length;){var r=t.lines[t.index++];e.lines.push(r),t.offset++}}function x(e,t){for(;t.index<t.lines.length;){var n=t.lines[t.index++];e.lines.push(n)}}function S(e){for(var t=[],n=e.lines[e.index][0];e.index<e.lines.length;){var r=e.lines[e.index];if(n===`-`&&r[0]===`+`&&(n=`+`),n===r[0])t.push(r),e.index++;else break}return t}function C(e,t){for(var n=[],r=[],i=0,a=!1,o=!1;i<t.length&&e.index<e.lines.length;){var s=e.lines[e.index],c=t[i];if(c[0]===`+`)break;if(a||=s[0]!==` `,r.push(c),i++,s[0]===`+`)for(o=!0;s[0]===`+`;)n.push(s),s=e.lines[++e.index];c.substr(1)===s.substr(1)?(n.push(s),e.index++):o=!0}if((t[i]||``)[0]===`+`&&a&&(o=!0),o)return n;for(;i<t.length;)r.push(t[i++]);return{merged:r,changes:n}}function w(e){return e.reduce(function(e,t){return e&&t[0]===`-`},!0)}function T(e,t,n){for(var r=0;r<n;r++){var i=t[t.length-n+r].substr(1);if(e.lines[e.index+r]!==` `+i)return!1}return e.index+=n,!0}function E(e){var t=0,n=0;return e.forEach(function(e){if(typeof e!=`string`){var r=E(e.mine),i=E(e.theirs);t!==void 0&&(r.oldLines===i.oldLines?t+=r.oldLines:t=void 0),n!==void 0&&(r.newLines===i.newLines?n+=r.newLines:n=void 0)}else n!==void 0&&(e[0]===`+`||e[0]===` `)&&n++,t!==void 0&&(e[0]===`-`||e[0]===` `)&&t++}),{oldLines:t,newLines:n}}return S9}var k9={},A9;function aHe(){if(A9)return k9;A9=1,Object.defineProperty(k9,`__esModule`,{value:!0}),k9.reversePatch=r;function e(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 t(t){for(var r=1;r<arguments.length;r++){var i=arguments[r]==null?{}:arguments[r];r%2?e(Object(i),!0).forEach(function(e){n(t,e,i[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):e(Object(i)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))})}return t}function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e){return Array.isArray(e)?e.map(r).reverse():t(t({},e),{},{oldFileName:e.newFileName,oldHeader:e.newHeader,newFileName:e.oldFileName,newHeader:e.oldHeader,hunks:e.hunks.map(function(e){return{oldLines:e.newLines,oldStart:e.newStart,newLines:e.oldLines,newStart:e.oldStart,linedelimiters:e.linedelimiters,lines:e.lines.map(function(e){return e.startsWith(`-`)?`+${e.slice(1)}`:e.startsWith(`+`)?`-${e.slice(1)}`:e})}})})}return k9}var j9={},M9;function oHe(){if(M9)return j9;M9=1,Object.defineProperty(j9,`__esModule`,{value:!0}),j9.convertChangesToDMP=e;function e(e){for(var t=[],n,r,i=0;i<e.length;i++)n=e[i],r=n.added?1:n.removed?-1:0,t.push([r,n.value]);return t}return j9}var N9={},P9;function sHe(){if(P9)return N9;P9=1,Object.defineProperty(N9,`__esModule`,{value:!0}),N9.convertChangesToXML=e;function e(e){for(var n=[],r=0;r<e.length;r++){var i=e[r];i.added?n.push(`<ins>`):i.removed&&n.push(`<del>`),n.push(t(i.value)),i.added?n.push(`</ins>`):i.removed&&n.push(`</del>`)}return n.join(``)}function t(e){var t=e;return t=t.replace(/&/g,`&amp;`),t=t.replace(/</g,`&lt;`),t=t.replace(/>/g,`&gt;`),t=t.replace(/"/g,`&quot;`),t}return N9}var F9;function cHe(){return F9?q7:(F9=1,(function(e){Object.defineProperty(e,`__esModule`,{value:!0}),Object.defineProperty(e,`Diff`,{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,`diffChars`,{enumerable:!0,get:function(){return n.diffChars}}),Object.defineProperty(e,`diffWords`,{enumerable:!0,get:function(){return r.diffWords}}),Object.defineProperty(e,`diffWordsWithSpace`,{enumerable:!0,get:function(){return r.diffWordsWithSpace}}),Object.defineProperty(e,`diffLines`,{enumerable:!0,get:function(){return i.diffLines}}),Object.defineProperty(e,`diffTrimmedLines`,{enumerable:!0,get:function(){return i.diffTrimmedLines}}),Object.defineProperty(e,`diffSentences`,{enumerable:!0,get:function(){return a.diffSentences}}),Object.defineProperty(e,`diffCss`,{enumerable:!0,get:function(){return o.diffCss}}),Object.defineProperty(e,`diffJson`,{enumerable:!0,get:function(){return s.diffJson}}),Object.defineProperty(e,`canonicalize`,{enumerable:!0,get:function(){return s.canonicalize}}),Object.defineProperty(e,`diffArrays`,{enumerable:!0,get:function(){return c.diffArrays}}),Object.defineProperty(e,`applyPatch`,{enumerable:!0,get:function(){return l.applyPatch}}),Object.defineProperty(e,`applyPatches`,{enumerable:!0,get:function(){return l.applyPatches}}),Object.defineProperty(e,`parsePatch`,{enumerable:!0,get:function(){return u.parsePatch}}),Object.defineProperty(e,`merge`,{enumerable:!0,get:function(){return d.merge}}),Object.defineProperty(e,`reversePatch`,{enumerable:!0,get:function(){return f.reversePatch}}),Object.defineProperty(e,`structuredPatch`,{enumerable:!0,get:function(){return p.structuredPatch}}),Object.defineProperty(e,`createTwoFilesPatch`,{enumerable:!0,get:function(){return p.createTwoFilesPatch}}),Object.defineProperty(e,`createPatch`,{enumerable:!0,get:function(){return p.createPatch}}),Object.defineProperty(e,`formatPatch`,{enumerable:!0,get:function(){return p.formatPatch}}),Object.defineProperty(e,`convertChangesToDMP`,{enumerable:!0,get:function(){return m.convertChangesToDMP}}),Object.defineProperty(e,`convertChangesToXML`,{enumerable:!0,get:function(){return h.convertChangesToXML}});var t=g(X7()),n=YVe(),r=XVe(),i=o9(),a=ZVe(),o=QVe(),s=$Ve(),c=eHe(),l=nHe(),u=v9(),d=iHe(),f=aHe(),p=T9(),m=oHe(),h=sHe();function g(e){return e&&e.__esModule?e:{default:e}}})(q7),q7)}var I9;function lHe(){if(I9)return K7;I9=1;var e=K7&&K7.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),t=K7&&K7.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=K7&&K7.__importStar||function(n){if(n&&n.__esModule)return n;var r={};if(n!=null)for(var i in n)i!==`default`&&Object.prototype.hasOwnProperty.call(n,i)&&e(r,n,i);return t(r,n),r};Object.defineProperty(K7,`__esModule`,{value:!0}),K7.computeLineInformation=K7.DiffMethod=K7.DiffType=void 0;let r=n(cHe()),i=r;var a;(function(e){e[e.DEFAULT=0]=`DEFAULT`,e[e.ADDED=1]=`ADDED`,e[e.REMOVED=2]=`REMOVED`,e[e.CHANGED=3]=`CHANGED`})(a||(K7.DiffType=a={}));var o;(function(e){e.CHARS=`diffChars`,e.WORDS=`diffWords`,e.WORDS_WITH_SPACE=`diffWordsWithSpace`,e.LINES=`diffLines`,e.TRIMMED_LINES=`diffTrimmedLines`,e.SENTENCES=`diffSentences`,e.CSS=`diffCss`,e.JSON=`diffJson`})(o||(K7.DiffMethod=o={}));let s=e=>e===``?[]:e.replace(/\n$/,``).split(`
1255
- `),c=(e,t,n=o.CHARS)=>{let r=i[n](e,t),s={left:[],right:[]};return r.forEach(({added:e,removed:t,value:n})=>{let r={};return e&&(r.type=a.ADDED,r.value=n,s.right.push(r)),t&&(r.type=a.REMOVED,r.value=n,s.left.push(r)),!t&&!e&&(r.type=a.DEFAULT,r.value=n,s.right.push(r),s.left.push(r)),r}),s};return K7.computeLineInformation=(e,t,n=!1,i=o.CHARS,l=0,u=[])=>{let d=[];d=typeof e==`string`&&typeof t==`string`?r.diffLines(e.trimRight(),t.trimRight(),{newlineIsToken:!1,ignoreWhitespace:!1,ignoreCase:!1}):r.diffJson(e,t);let f=l,p=l,m=[],h=0,g=[],_=[],v=(e,t,r,o,l)=>s(e).map((e,m)=>{let y={},b={};if(!(_.includes(`${t}-${m}`)||l&&m!==0)){if(r||o){let r=!0;if(o){p+=1,y.lineNumber=p,y.type=a.REMOVED,y.value=e||` `;let o=d[t+1];if(o&&o.added){let a=s(o.value)[m];if(a){let{value:o,lineNumber:s,type:l}=v(a,t,!0,!1,!0)[0].right;if(_.push(`${t+1}-${m}`),b.lineNumber=s,y.value===o)r=!1,b.type=0,y.type=0,b.value=o;else if(b.type=l,n)b.value=o;else{let t=c(e,o,i);b.value=t.right,y.value=t.left}}}}else f+=1,b.lineNumber=f,b.type=a.ADDED,b.value=e;r&&!l&&(g.includes(h)||g.push(h))}else p+=1,f+=1,y.lineNumber=p,y.type=a.DEFAULT,y.value=e,b.lineNumber=f,b.type=a.DEFAULT,b.value=e;return(u?.includes(`L-${y.lineNumber}`)||u?.includes(`R-${b.lineNumber}`)&&!g.includes(h))&&g.push(h),l||(h+=1),{right:b,left:y}}}).filter(Boolean);return d.forEach(({added:e,removed:t,value:n},r)=>{m=[...m,...v(n,r,e,t)]}),{lineInformation:m,diffLines:g}},K7}var L9={},R9;function uHe(){if(R9)return L9;R9=1;var e=L9&&L9.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},t=L9&&L9.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(L9,`__esModule`,{value:!0});let n=t(bPe());return L9.default=(t,r=!1,i=``)=>{let{variables:a={}}=t,o=e(t,[`variables`]),s={light:Object.assign({diffViewerBackground:`#fff`,diffViewerColor:`#212529`,addedBackground:`#e6ffed`,addedColor:`#24292e`,removedBackground:`#ffeef0`,removedColor:`#24292e`,changedBackground:`#fffbdd`,wordAddedBackground:`#acf2bd`,wordRemovedBackground:`#fdb8c0`,addedGutterBackground:`#cdffd8`,removedGutterBackground:`#ffdce0`,gutterBackground:`#f7f7f7`,gutterBackgroundDark:`#f3f1f1`,highlightBackground:`#fffbdd`,highlightGutterBackground:`#fff5b1`,codeFoldGutterBackground:`#dbedff`,codeFoldBackground:`#f1f8ff`,emptyLineBackground:`#fafbfc`,gutterColor:`#212529`,addedGutterColor:`#212529`,removedGutterColor:`#212529`,codeFoldContentColor:`#212529`,diffViewerTitleBackground:`#fafbfc`,diffViewerTitleColor:`#212529`,diffViewerTitleBorderColor:`#eee`},a.light||{}),dark:Object.assign({diffViewerBackground:`#2e303c`,diffViewerColor:`#FFF`,addedBackground:`#044B53`,addedColor:`white`,removedBackground:`#632F34`,removedColor:`white`,changedBackground:`#3e302c`,wordAddedBackground:`#055d67`,wordRemovedBackground:`#7d383f`,addedGutterBackground:`#034148`,removedGutterBackground:`#632b30`,gutterBackground:`#2c2f3a`,gutterBackgroundDark:`#262933`,highlightBackground:`#2a3967`,highlightGutterBackground:`#2d4077`,codeFoldGutterBackground:`#21232b`,codeFoldBackground:`#262831`,emptyLineBackground:`#363946`,gutterColor:`#666c87`,addedGutterColor:`#8c8c8c`,removedGutterColor:`#8c8c8c`,codeFoldContentColor:`#656a8b`,diffViewerTitleBackground:`#2f323e`,diffViewerTitleColor:`#555a7b`,diffViewerTitleBorderColor:`#353846`},a.dark||{})},c=r?s.dark:s.light,{css:l,cx:u}=(0,n.default)({key:`react-diff`,nonce:i}),d=l({width:`100%`,label:`content`}),f=l({[`.${d}`]:{width:`50%`},label:`split-view`}),p=l({width:`100%`,background:c.diffViewerBackground,pre:{margin:0,whiteSpace:`pre-wrap`,lineHeight:`25px`},label:`diff-container`,borderCollapse:`collapse`}),m=l({color:c.codeFoldContentColor,label:`code-fold-content`}),h=l({color:c.diffViewerColor,label:`content-text`}),g=l({background:c.diffViewerTitleBackground,padding:10,borderBottom:`1px solid ${c.diffViewerTitleBorderColor}`,label:`title-block`,":last-child":{borderLeft:`1px solid ${c.diffViewerTitleBorderColor}`},[`.${h}`]:{color:c.diffViewerTitleColor}}),_=l({color:c.gutterColor,label:`line-number`}),v=l({background:c.removedBackground,color:c.removedColor,pre:{color:c.removedColor},[`.${_}`]:{color:c.removedGutterColor},label:`diff-removed`}),y=l({background:c.addedBackground,color:c.addedColor,pre:{color:c.addedColor},[`.${_}`]:{color:c.addedGutterColor},label:`diff-added`}),b=l({background:c.changedBackground,[`.${_}`]:{color:c.gutterColor},label:`diff-changed`}),x=l({padding:2,display:`inline-flex`,borderRadius:4,wordBreak:`break-all`,label:`word-diff`}),S=l({background:c.wordAddedBackground,label:`word-added`}),C=l({background:c.wordRemovedBackground,label:`word-removed`}),w=l({backgroundColor:c.codeFoldGutterBackground,label:`code-fold-gutter`}),T=l({backgroundColor:c.codeFoldBackground,height:40,fontSize:14,fontWeight:700,label:`code-fold`,a:{textDecoration:`underline !important`,cursor:`pointer`,pre:{display:`inline`}}}),E=l({backgroundColor:c.emptyLineBackground,label:`empty-line`}),D=l({width:25,paddingLeft:10,paddingRight:10,userSelect:`none`,label:`marker`,[`&.${y}`]:{pre:{color:c.addedColor}},[`&.${v}`]:{pre:{color:c.removedColor}}}),O=l({background:c.highlightBackground,label:`highlighted-line`,[`.${S}, .${C}`]:{backgroundColor:`initial`}}),k=l({label:`highlighted-gutter`}),A=l({userSelect:`none`,minWidth:50,padding:`0 10px`,whiteSpace:`nowrap`,label:`gutter`,textAlign:`right`,background:c.gutterBackground,"&:hover":{cursor:`pointer`,background:c.gutterBackgroundDark,pre:{opacity:1}},pre:{opacity:.5},[`&.${y}`]:{background:c.addedGutterBackground},[`&.${v}`]:{background:c.removedGutterBackground},[`&.${k}`]:{background:c.highlightGutterBackground,"&:hover":{background:c.highlightGutterBackground}}}),j=l({"&:hover":{background:c.gutterBackground,cursor:`initial`},label:`empty-gutter`}),M={diffContainer:p,diffRemoved:v,diffAdded:y,diffChanged:b,splitView:f,marker:D,highlightedGutter:k,highlightedLine:O,gutter:A,line:l({verticalAlign:`baseline`,label:`line`}),wordDiff:x,wordAdded:S,wordRemoved:C,codeFoldGutter:w,codeFold:T,emptyGutter:j,emptyLine:E,lineNumber:_,contentText:h,content:d,codeFoldContent:m,titleBlock:g},N=Object.keys(o).reduce((e,t)=>Object.assign(Object.assign({},e),{[t]:l(o[t])}),{});return Object.keys(M).reduce((e,t)=>Object.assign(Object.assign({},e),{[t]:N[t]?u(M[t],N[t]):M[t]}),{})},L9}var z9={},B9;function dHe(){if(B9)return z9;B9=1,Object.defineProperty(z9,`__esModule`,{value:!0}),z9.computeHiddenBlocks=void 0;function e(e,t,n){let r=0,i,a={},o=[];return e.forEach((e,s)=>{let c=t.some(e=>e>=s-n&&e<=s+n);!c&&i==null?(i={index:r,startLine:s,endLine:s,lines:1},o.push(i),a[s]=i.index,r++):c?i=void 0:(i.endLine=s,i.lines++,a[s]=i.index)}),{lineBlocks:a,blocks:o}}return z9.computeHiddenBlocks=e,z9}var V9=Number.isNaN||function(e){return typeof e==`number`&&e!==e};function fHe(e,t){return!!(e===t||V9(e)&&V9(t))}function pHe(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!fHe(e[n],t[n]))return!1;return!0}function mHe(e,t){t===void 0&&(t=pHe);var n=null;function r(){var r=[...arguments];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var i=e.apply(this,r);return n={lastResult:i,lastArgs:r,lastThis:this},i}return r.clear=function(){n=null},r}var hHe=wi(Object.freeze(Object.defineProperty({__proto__:null,default:mHe},Symbol.toStringTag,{value:`Module`}))),H9;function gHe(){return H9?G7:(H9=1,(function(e){var t=G7&&G7.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),n=G7&&G7.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=G7&&G7.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)i!==`default`&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r},i=G7&&G7.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.DiffMethod=e.LineNumberPrefix=void 0;let a=U.default,o=r(H.default),s=i(Di()),c=lHe();Object.defineProperty(e,`DiffMethod`,{enumerable:!0,get:function(){return c.DiffMethod}});let l=i(uHe()),u=dHe(),d=hHe,f=d.default||d;var p;(function(e){e.LEFT=`L`,e.RIGHT=`R`})(p||(e.LineNumberPrefix=p={}));class m extends o.Component{constructor(e){super(e),this.resetCodeBlocks=()=>this.state.expandedBlocks.length>0?(this.setState({expandedBlocks:[]}),!0):!1,this.onBlockExpand=e=>{let t=this.state.expandedBlocks.slice();t.push(e),this.setState({expandedBlocks:t})},this.computeStyles=f(l.default),this.onLineNumberClickProxy=e=>this.props.onLineNumberClick?t=>this.props.onLineNumberClick(e,t):()=>{},this.renderWordDiff=(e,t)=>e.map((e,n)=>(0,a.jsx)(`span`,{className:(0,s.default)(this.styles.wordDiff,{[this.styles.wordAdded]:e.type===c.DiffType.ADDED,[this.styles.wordRemoved]:e.type===c.DiffType.REMOVED}),children:t?t(e.value):e.value},n)),this.renderLine=(e,t,n,r,i,l)=>{let u=`${n}-${e}`,d=`${l}-${i}`,f=this.props.highlightLines.includes(u)||this.props.highlightLines.includes(d),p=t===c.DiffType.ADDED,m=t===c.DiffType.REMOVED,h=t===c.DiffType.CHANGED,g;return g=Array.isArray(r)?this.renderWordDiff(r,this.props.renderContent):this.props.renderContent?this.props.renderContent(r):r,(0,a.jsxs)(o.Fragment,{children:[!this.props.hideLineNumbers&&(0,a.jsx)(`td`,{onClick:e&&this.onLineNumberClickProxy(u),className:(0,s.default)(this.styles.gutter,{[this.styles.emptyGutter]:!e,[this.styles.diffAdded]:p,[this.styles.diffRemoved]:m,[this.styles.diffChanged]:h,[this.styles.highlightedGutter]:f}),children:(0,a.jsx)(`pre`,{className:this.styles.lineNumber,children:e})}),!this.props.splitView&&!this.props.hideLineNumbers&&(0,a.jsx)(`td`,{onClick:i&&this.onLineNumberClickProxy(d),className:(0,s.default)(this.styles.gutter,{[this.styles.emptyGutter]:!i,[this.styles.diffAdded]:p,[this.styles.diffRemoved]:m,[this.styles.diffChanged]:h,[this.styles.highlightedGutter]:f}),children:(0,a.jsx)(`pre`,{className:this.styles.lineNumber,children:i})}),this.props.renderGutter?this.props.renderGutter({lineNumber:e,type:t,prefix:n,value:r,additionalLineNumber:i,additionalPrefix:l,styles:this.styles}):null,!this.props.hideMarkers&&(0,a.jsx)(`td`,{className:(0,s.default)(this.styles.marker,{[this.styles.emptyLine]:!g,[this.styles.diffAdded]:p,[this.styles.diffRemoved]:m,[this.styles.diffChanged]:h,[this.styles.highlightedLine]:f}),children:(0,a.jsxs)(`pre`,{children:[p&&`+`,m&&`-`]})}),(0,a.jsx)(`td`,{className:(0,s.default)(this.styles.content,{[this.styles.emptyLine]:!g,[this.styles.diffAdded]:p,[this.styles.diffRemoved]:m,[this.styles.diffChanged]:h,[this.styles.highlightedLine]:f}),children:(0,a.jsx)(`pre`,{className:this.styles.contentText,children:g})})]})},this.renderSplitView=({left:e,right:t},n)=>(0,a.jsxs)(`tr`,{className:this.styles.line,children:[this.renderLine(e.lineNumber,e.type,p.LEFT,e.value),this.renderLine(t.lineNumber,t.type,p.RIGHT,t.value)]},n),this.renderInlineView=({left:e,right:t},n)=>{let r;return e.type===c.DiffType.REMOVED&&t.type===c.DiffType.ADDED?(0,a.jsxs)(o.Fragment,{children:[(0,a.jsx)(`tr`,{className:this.styles.line,children:this.renderLine(e.lineNumber,e.type,p.LEFT,e.value,null)}),(0,a.jsx)(`tr`,{className:this.styles.line,children:this.renderLine(null,t.type,p.RIGHT,t.value,t.lineNumber)})]},n):(e.type===c.DiffType.REMOVED&&(r=this.renderLine(e.lineNumber,e.type,p.LEFT,e.value,null)),e.type===c.DiffType.DEFAULT&&(r=this.renderLine(e.lineNumber,e.type,p.LEFT,e.value,t.lineNumber,p.RIGHT)),t.type===c.DiffType.ADDED&&(r=this.renderLine(null,t.type,p.RIGHT,t.value,t.lineNumber)),(0,a.jsx)(`tr`,{className:this.styles.line,children:r},n))},this.onBlockClickProxy=e=>()=>this.onBlockExpand(e),this.renderSkippedLineIndicator=(e,t,n,r)=>{let{hideLineNumbers:i,splitView:c}=this.props,l=this.props.codeFoldMessageRenderer?this.props.codeFoldMessageRenderer(e,n,r):(0,a.jsxs)(`pre`,{className:this.styles.codeFoldContent,children:[`Expand `,e,` lines ...`]}),u=(0,a.jsx)(`td`,{children:(0,a.jsx)(`a`,{onClick:this.onBlockClickProxy(t),tabIndex:0,children:l})}),d=!c&&!i;return(0,a.jsxs)(`tr`,{className:this.styles.codeFold,children:[!i&&(0,a.jsx)(`td`,{className:this.styles.codeFoldGutter}),this.props.renderGutter?(0,a.jsx)(`td`,{className:this.styles.codeFoldGutter}):null,(0,a.jsx)(`td`,{className:(0,s.default)({[this.styles.codeFoldGutter]:d})}),d?(0,a.jsxs)(o.Fragment,{children:[(0,a.jsx)(`td`,{}),u]}):(0,a.jsxs)(o.Fragment,{children:[u,this.props.renderGutter?(0,a.jsx)(`td`,{}):null,(0,a.jsx)(`td`,{})]}),(0,a.jsx)(`td`,{}),(0,a.jsx)(`td`,{})]},`${n}-${r}`)},this.renderDiff=()=>{let{oldValue:e,newValue:t,splitView:n,disableWordDiff:r,compareMethod:i,linesOffset:s}=this.props,{lineInformation:l,diffLines:d}=(0,c.computeLineInformation)(e,t,r,i,s,this.props.alwaysShowLines),f=this.props.extraLinesSurroundingDiff<0?0:Math.round(this.props.extraLinesSurroundingDiff),{lineBlocks:p,blocks:m}=(0,u.computeHiddenBlocks)(l,d,f);return l.map((e,t)=>{if(this.props.showDiffOnly){let n=p[t];if(n!==void 0){let r=m[n].endLine===t;if(!this.state.expandedBlocks.includes(n)&&r)return(0,a.jsx)(o.Fragment,{children:this.renderSkippedLineIndicator(m[n].lines,n,e.left.lineNumber,e.right.lineNumber)},t);if(!this.state.expandedBlocks.includes(n))return null}}return n?this.renderSplitView(e,t):this.renderInlineView(e,t)})},this.render=()=>{let{oldValue:e,newValue:t,useDarkTheme:n,leftTitle:r,rightTitle:i,splitView:o,hideLineNumbers:l,hideMarkers:u,nonce:d}=this.props;if(this.props.compareMethod!==c.DiffMethod.JSON&&(typeof e!=`string`||typeof t!=`string`))throw Error(`"oldValue" and "newValue" should be strings`);this.styles=this.computeStyles(this.props.styles,n,d);let f=this.renderDiff(),p=l?2:3,m=l?2:4;u&&(--p,--m);let h=this.props.renderGutter?1:0,g=(r||i)&&(0,a.jsxs)(`tr`,{children:[(0,a.jsx)(`td`,{colSpan:(o?p:m)+h,className:this.styles.titleBlock,children:(0,a.jsx)(`pre`,{className:this.styles.contentText,children:r})}),o&&(0,a.jsx)(`td`,{colSpan:p+h,className:this.styles.titleBlock,children:(0,a.jsx)(`pre`,{className:this.styles.contentText,children:i})})]});return(0,a.jsx)(`table`,{className:(0,s.default)(this.styles.diffContainer,{[this.styles.splitView]:o}),children:(0,a.jsxs)(`tbody`,{children:[g,f]})})},this.state={expandedBlocks:[]}}}m.defaultProps={oldValue:``,newValue:``,splitView:!0,highlightLines:[],disableWordDiff:!1,compareMethod:c.DiffMethod.CHARS,styles:{},hideLineNumbers:!1,hideMarkers:!1,extraLinesSurroundingDiff:3,showDiffOnly:!0,useDarkTheme:!1,linesOffset:0,nonce:``},e.default=m})(G7),G7)}gHe();const _He=2,vHe=5,yHe=1,bHe=`round`,xHe=`transparent`,SHe=`rgba(0, 0, 0, 0.1)`,CHe=`dblclick`,wHe={TRANSLATIONS:`translations`,LANGUAGE_KEY:`languageKey`},THe=1e-4,EHe=1e7,U9=()=>{let e=(0,H.useContext)(de);if(e===void 0)throw Error(`useLegend must be used within a LegendProvider`);return e},W9=({chartRef:e,options:t})=>{let{state:n,dispatch:r}=U9()??{},{annotations:i,interactions:{onLegendClick:a},legend:{customLegend:o}}=t??{};(0,H.useEffect)(()=>{n?.datasets?.forEach((t,n)=>{let r=t?.hidden??!1;e?.current?.setDatasetVisibility(Number(n),!r),e?.current?.update(`none`)})},[n]);let s=(0,H.useCallback)((t,n)=>{let{datasetIndex:o=-1}=n??{},s=null,c=e?.current,l=c?.data?.datasets??[],u=l?.[o]??{};if(i?.controlAnnotation&&u?.isAnnotation&&(s=u?.annotationIndex??null),a){let e=n?.hidden??!1;a(n?.text,e)}r({type:F,payload:{chartInstance:c,dsConfig:{datasetIndex:o,datasets:l,dataset:u},annotationConfig:{annotationIndex:s}}}),c?.update()},[e,i,r]),c=(0,H.useMemo)(()=>ae(t,s),[t,s]),l=(0,H.useMemo)(()=>({[E]:o?.customLegendPlugin&&{containerID:o?.customLegendContainerID}}),[o]);return{legendClick:s,annotation:n?.annotation,legend:c,customLegendPlugin:l}},DHe=(e=[])=>{let t={};return e.length&&(t=e.reduce((e,t,n)=>{let r=t?.id??`annotation${n+1}`;return e[r]={...t,id:r},e},{})),{annotations:t}};var OHe=function(){},G9=typeof window<`u`,kHe=G9?H.useLayoutEffect:H.useEffect,AHe={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};function jHe(){var e=(0,H.useState)(null),t=e[0],n=e[1],r=(0,H.useState)(AHe),i=r[0],a=r[1],o=(0,H.useMemo)(function(){return new window.ResizeObserver(function(e){if(e[0]){var t=e[0].contentRect,n=t.x,r=t.y,i=t.width,o=t.height,s=t.top,c=t.left,l=t.bottom,u=t.right;a({x:n,y:r,width:i,height:o,top:s,left:c,bottom:l,right:u})}})},[]);return kHe(function(){if(t)return o.observe(t),function(){o.disconnect()}},[t]),[n,i]}var MHe=G9&&window.ResizeObserver!==void 0?jHe:(function(){return[OHe,AHe]}),NHe={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},PHe=H.createContext&&H.createContext(NHe),K9=function(){return K9=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},K9.apply(this,arguments)},FHe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function IHe(e){return e&&e.map(function(e,t){return H.createElement(e.tag,K9({key:t},e.attr),IHe(e.child))})}function q9(e){return function(t){return H.createElement(LHe,K9({attr:K9({},e.attr)},t),IHe(e.child))}}function LHe(e){var t=function(t){var n=e.attr,r=e.size,i=e.title,a=FHe(e,[`attr`,`size`,`title`]),o=r||t.size||`1em`,s;return t.className&&(s=t.className),e.className&&(s=(s?s+` `:``)+e.className),H.createElement(`svg`,K9({stroke:`currentColor`,fill:`currentColor`,strokeWidth:`0`},t.attr,n,a,{className:s,style:K9(K9({color:e.color||t.color},t.style),e.style),height:o,width:o,xmlns:`http://www.w3.org/2000/svg`}),i&&H.createElement(`title`,null,i),e.children)};return PHe===void 0?t(NHe):H.createElement(PHe.Consumer,null,function(e){return t(e)})}function RHe(e){return q9({tag:`svg`,attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M18 9l3 3l-3 3`}},{tag:`path`,attr:{d:`M15 12h6`}},{tag:`path`,attr:{d:`M6 9l-3 3l3 3`}},{tag:`path`,attr:{d:`M3 12h6`}},{tag:`path`,attr:{d:`M9 18l3 3l3 -3`}},{tag:`path`,attr:{d:`M12 15v6`}},{tag:`path`,attr:{d:`M15 6l-3 -3l-3 3`}},{tag:`path`,attr:{d:`M12 3v6`}}]})(e)}function zHe(e){return q9({tag:`svg`,attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0`}},{tag:`path`,attr:{d:`M5.7 5.7l12.6 12.6`}}]})(e)}function BHe(e){return q9({tag:`svg`,attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M7 3.34a10 10 0 1 1 -4.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 4.995 -8.336z`,strokeWidth:`0`,fill:`currentColor`}}]})(e)}function VHe(e){return q9({tag:`svg`,attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M8 13v-7.5a1.5 1.5 0 0 1 3 0v6.5`}},{tag:`path`,attr:{d:`M11 5.5v-2a1.5 1.5 0 1 1 3 0v8.5`}},{tag:`path`,attr:{d:`M14 5.5a1.5 1.5 0 0 1 3 0v6.5`}},{tag:`path`,attr:{d:`M17 7.5a1.5 1.5 0 0 1 3 0v8.5a6 6 0 0 1 -6 6h-2h.208a6 6 0 0 1 -5.012 -2.7a69.74 69.74 0 0 1 -.196 -.3c-.312 -.479 -1.407 -2.388 -3.286 -5.728a1.5 1.5 0 0 1 .536 -2.022a1.867 1.867 0 0 1 2.28 .28l1.47 1.47`}}]})(e)}function HHe(e){return q9({tag:`svg`,attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M9 6l11 0`}},{tag:`path`,attr:{d:`M9 12l11 0`}},{tag:`path`,attr:{d:`M9 18l11 0`}},{tag:`path`,attr:{d:`M5 6l0 .01`}},{tag:`path`,attr:{d:`M5 12l0 .01`}},{tag:`path`,attr:{d:`M5 18l0 .01`}}]})(e)}function UHe(e){return q9({tag:`svg`,attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M5 4h14a1 1 0 0 1 1 1v5a1 1 0 0 1 -1 1h-7a1 1 0 0 0 -1 1v7a1 1 0 0 1 -1 1h-5a1 1 0 0 1 -1 -1v-14a1 1 0 0 1 1 -1`}},{tag:`path`,attr:{d:`M4 8l2 0`}},{tag:`path`,attr:{d:`M4 12l3 0`}},{tag:`path`,attr:{d:`M4 16l2 0`}},{tag:`path`,attr:{d:`M8 4l0 2`}},{tag:`path`,attr:{d:`M12 4l0 3`}},{tag:`path`,attr:{d:`M16 4l0 2`}}]})(e)}function WHe(e){return q9({tag:`svg`,attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M19 2h-14a3 3 0 0 0 -3 3v14a3 3 0 0 0 3 3h14a3 3 0 0 0 3 -3v-14a3 3 0 0 0 -3 -3z`,strokeWidth:`0`,fill:`currentColor`}}]})(e)}function GHe(e){return q9({tag:`svg`,attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M18 6l-12 12`}},{tag:`path`,attr:{d:`M6 6l12 12`}}]})(e)}function KHe(e){return q9({tag:`svg`,attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0`}},{tag:`path`,attr:{d:`M7 10l6 0`}},{tag:`path`,attr:{d:`M10 7l0 6`}},{tag:`path`,attr:{d:`M21 21l-6 -6`}}]})(e)}var J9={legend:`_legend_wpro0_1`,isDragging:`_isDragging_wpro0_8`,legendItems:`_legendItems_wpro0_11`,isHidden:`_isHidden_wpro0_47`,legendToggle:`_legendToggle_wpro0_50`,legendItem:`_legendItem_wpro0_11`,legendItemSymbol:`_legendItemSymbol_wpro0_80`,legendItemBox:`_legendItemBox_wpro0_90`,legendItemLine:`_legendItemLine_wpro0_95`,legendItemPoint:`_legendItemPoint_wpro0_103`,legendItemText:`_legendItemText_wpro0_110`,scrollbars:`_scrollbars_wpro0_113`,dropzoneContainer:`_dropzoneContainer_wpro0_140`,dropzone:`_dropzone_wpro0_140`,left:`_left_wpro0_149`,right:`_right_wpro0_153`,top:`_top_wpro0_157`,bottom:`_bottom_wpro0_161`,dropzonePlaceholder:`_dropzonePlaceholder_wpro0_165`,isActive:`_isActive_wpro0_173`,resizeContainer:`_resizeContainer_wpro0_176`},Y9=e=>(0,U.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,width:`1em`,height:`1em`,...e,children:(0,U.jsx)(`circle`,{cx:12,cy:12,r:12,fill:`currentColor`})});let X9=function(e){return e.LINE=`line`,e.BAR=`bar`,e.PIE=`pie`,e.SCATTER=`scatter`,e}({}),qHe=function(e){return e.VERTICAL=`vertical`,e.HORIZONTAL=`horizontal`,e}({});var JHe=e=>(0,U.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,width:`1em`,height:`1em`,...e,children:(0,U.jsx)(`rect`,{x:2,y:2,width:20,height:20,fill:`currentColor`})}),YHe=e=>(0,U.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,width:`1em`,height:`1em`,...e,children:(0,U.jsx)(`rect`,{x:3,y:3,width:18,height:18,fill:`currentColor`,transform:`rotate(45 12 12)`})}),XHe=e=>(0,U.jsx)(`svg`,{height:`1em`,viewBox:`0 0 24 24`,width:`1em`,xmlns:`http://www.w3.org/2000/svg`,xmlnsXlink:`http://www.w3.org/1999/xlink`,...e,children:(0,U.jsx)(`path`,{d:`m22.7998 22.0623h-21.5996c-.21066.0001-.417617-.0554-.600067-.1607-.182451-.1053-.333965-.2567-.439311-.4392-.1053464-.1824-.16081228-.3893-.160822-.6s.0554372-.4176.160767-.6l10.799833-18.70518c.1139-.17137.2684-.31191.4497-.40913.1814-.09722.3839-.14809.5897-.14809s.4083.05087.5897.14809c.1813.09722.3358.23776.4497.40913l10.7998 18.70518c.1054.1824.1608.3893.1608.6s-.0555.4176-.1608.6c-.1054.1825-.2569.3339-.4393.4392-.1825.1053-.3894.1608-.6001.1607z`,fill:`currentColor`})}),Z9=16,ZHe=({dataset:e})=>{let{borderColor:t,borderDash:n,borderWidth:r}=e??{},[i,a]=n??[],o=i&&a?(Z9-i)/2%(i+a)*-1:0,s=e?.borderDash?.join(` `)||``;return(0,U.jsx)(`span`,{className:J9.legendItemLine,children:(0,U.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 ${Z9} ${Z9}`,width:`100%`,height:`100%`,children:(0,U.jsx)(`line`,{x1:`0`,y1:`50%`,x2:`100%`,y2:`50%`,stroke:t,strokeWidth:r,strokeDasharray:s,strokeDashoffset:o})})})},QHe=({dataset:e})=>{let{pointBackgroundColor:t,pointRadius:n,pointStyle:r=``}=e??{};if(!n)return null;let i=n*2,a={circle:(0,U.jsx)(Y9,{}),triangle:(0,U.jsx)(XHe,{}),rectRot:(0,U.jsx)(YHe,{}),rect:(0,U.jsx)(JHe,{})};return(0,U.jsx)(`span`,{className:J9.legendItemPoint,children:(0,U.jsx)(ca,{icon:a?.[r]??(0,U.jsx)(Y9,{}),size:i,color:t})})},$He=({dataset:e})=>{let{backgroundColor:t}=e??{},n={backgroundColor:t};return(0,U.jsx)(`span`,{className:J9.legendItemBox,style:n})};const eUe=({dataset:e})=>{let{annotationType:t,showLine:n}=e??{};switch(t){case C.Box:case C.Ellipse:return(0,U.jsx)($He,{dataset:e});case C.Line:return(0,U.jsx)(ZHe,{dataset:e});default:return(0,U.jsxs)(U.Fragment,{children:[n&&(0,U.jsx)(ZHe,{dataset:e}),(0,U.jsx)(QHe,{dataset:e})]})}};eUe.__docgenInfo={description:``,methods:[],displayName:`LegendItemLine`};var tUe=e(b(),1),nUe=16,rUe=(e,t,n)=>{switch(t){case X9.LINE:return(0,U.jsx)(eUe,{dataset:e});case X9.BAR:{let{backgroundColor:t}=e??{},r=t instanceof Array?t?.[n]:t;return(0,U.jsx)(`span`,{className:J9.legendItemBox,children:(0,U.jsx)(WHe,{color:r})})}case X9.PIE:return(0,U.jsx)(`span`,{className:J9.legendItemPoint,children:(0,U.jsx)(ca,{icon:(0,U.jsx)(Y9,{})})});case X9.SCATTER:{let{backgroundColor:t,borderColor:r}=e??{},i=t instanceof Array?t?.[n]:t;return(0,U.jsx)(`span`,{className:J9.legendItemPoint,children:(0,U.jsx)(BHe,{color:i??r})})}default:return null}},iUe=({hidden:e,dataset:t,handleClick:n,chartType:r,index:i})=>(0,U.jsxs)(`div`,{className:(0,tUe.default)(J9?.legendItem,e&&J9?.isHidden),onClick:n,children:[(0,U.jsx)(`span`,{className:J9.legendItemSymbol,style:{width:nUe},children:rUe(t,r,i)}),(0,U.jsx)(`span`,{className:J9.legendItemText,children:t?.label})]}),aUe=iUe;iUe.__docgenInfo={description:``,methods:[],displayName:`LegendItem`,props:{hidden:{required:!0,tsType:{name:`boolean`},description:``},dataset:{required:!0,tsType:{name:`union`,raw:`| IGeneratedLineChartDataset
1255
+ `),c=(e,t,n=o.CHARS)=>{let r=i[n](e,t),s={left:[],right:[]};return r.forEach(({added:e,removed:t,value:n})=>{let r={};return e&&(r.type=a.ADDED,r.value=n,s.right.push(r)),t&&(r.type=a.REMOVED,r.value=n,s.left.push(r)),!t&&!e&&(r.type=a.DEFAULT,r.value=n,s.right.push(r),s.left.push(r)),r}),s};return K7.computeLineInformation=(e,t,n=!1,i=o.CHARS,l=0,u=[])=>{let d=[];d=typeof e==`string`&&typeof t==`string`?r.diffLines(e.trimRight(),t.trimRight(),{newlineIsToken:!1,ignoreWhitespace:!1,ignoreCase:!1}):r.diffJson(e,t);let f=l,p=l,m=[],h=0,g=[],_=[],v=(e,t,r,o,l)=>s(e).map((e,m)=>{let y={},b={};if(!(_.includes(`${t}-${m}`)||l&&m!==0)){if(r||o){let r=!0;if(o){p+=1,y.lineNumber=p,y.type=a.REMOVED,y.value=e||` `;let o=d[t+1];if(o&&o.added){let a=s(o.value)[m];if(a){let{value:o,lineNumber:s,type:l}=v(a,t,!0,!1,!0)[0].right;if(_.push(`${t+1}-${m}`),b.lineNumber=s,y.value===o)r=!1,b.type=0,y.type=0,b.value=o;else if(b.type=l,n)b.value=o;else{let t=c(e,o,i);b.value=t.right,y.value=t.left}}}}else f+=1,b.lineNumber=f,b.type=a.ADDED,b.value=e;r&&!l&&(g.includes(h)||g.push(h))}else p+=1,f+=1,y.lineNumber=p,y.type=a.DEFAULT,y.value=e,b.lineNumber=f,b.type=a.DEFAULT,b.value=e;return(u?.includes(`L-${y.lineNumber}`)||u?.includes(`R-${b.lineNumber}`)&&!g.includes(h))&&g.push(h),l||(h+=1),{right:b,left:y}}}).filter(Boolean);return d.forEach(({added:e,removed:t,value:n},r)=>{m=[...m,...v(n,r,e,t)]}),{lineInformation:m,diffLines:g}},K7}var L9={},R9;function uHe(){if(R9)return L9;R9=1;var e=L9&&L9.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},t=L9&&L9.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(L9,`__esModule`,{value:!0});let n=t(bPe());return L9.default=(t,r=!1,i=``)=>{let{variables:a={}}=t,o=e(t,[`variables`]),s={light:Object.assign({diffViewerBackground:`#fff`,diffViewerColor:`#212529`,addedBackground:`#e6ffed`,addedColor:`#24292e`,removedBackground:`#ffeef0`,removedColor:`#24292e`,changedBackground:`#fffbdd`,wordAddedBackground:`#acf2bd`,wordRemovedBackground:`#fdb8c0`,addedGutterBackground:`#cdffd8`,removedGutterBackground:`#ffdce0`,gutterBackground:`#f7f7f7`,gutterBackgroundDark:`#f3f1f1`,highlightBackground:`#fffbdd`,highlightGutterBackground:`#fff5b1`,codeFoldGutterBackground:`#dbedff`,codeFoldBackground:`#f1f8ff`,emptyLineBackground:`#fafbfc`,gutterColor:`#212529`,addedGutterColor:`#212529`,removedGutterColor:`#212529`,codeFoldContentColor:`#212529`,diffViewerTitleBackground:`#fafbfc`,diffViewerTitleColor:`#212529`,diffViewerTitleBorderColor:`#eee`},a.light||{}),dark:Object.assign({diffViewerBackground:`#2e303c`,diffViewerColor:`#FFF`,addedBackground:`#044B53`,addedColor:`white`,removedBackground:`#632F34`,removedColor:`white`,changedBackground:`#3e302c`,wordAddedBackground:`#055d67`,wordRemovedBackground:`#7d383f`,addedGutterBackground:`#034148`,removedGutterBackground:`#632b30`,gutterBackground:`#2c2f3a`,gutterBackgroundDark:`#262933`,highlightBackground:`#2a3967`,highlightGutterBackground:`#2d4077`,codeFoldGutterBackground:`#21232b`,codeFoldBackground:`#262831`,emptyLineBackground:`#363946`,gutterColor:`#666c87`,addedGutterColor:`#8c8c8c`,removedGutterColor:`#8c8c8c`,codeFoldContentColor:`#656a8b`,diffViewerTitleBackground:`#2f323e`,diffViewerTitleColor:`#555a7b`,diffViewerTitleBorderColor:`#353846`},a.dark||{})},c=r?s.dark:s.light,{css:l,cx:u}=(0,n.default)({key:`react-diff`,nonce:i}),d=l({width:`100%`,label:`content`}),f=l({[`.${d}`]:{width:`50%`},label:`split-view`}),p=l({width:`100%`,background:c.diffViewerBackground,pre:{margin:0,whiteSpace:`pre-wrap`,lineHeight:`25px`},label:`diff-container`,borderCollapse:`collapse`}),m=l({color:c.codeFoldContentColor,label:`code-fold-content`}),h=l({color:c.diffViewerColor,label:`content-text`}),g=l({background:c.diffViewerTitleBackground,padding:10,borderBottom:`1px solid ${c.diffViewerTitleBorderColor}`,label:`title-block`,":last-child":{borderLeft:`1px solid ${c.diffViewerTitleBorderColor}`},[`.${h}`]:{color:c.diffViewerTitleColor}}),_=l({color:c.gutterColor,label:`line-number`}),v=l({background:c.removedBackground,color:c.removedColor,pre:{color:c.removedColor},[`.${_}`]:{color:c.removedGutterColor},label:`diff-removed`}),y=l({background:c.addedBackground,color:c.addedColor,pre:{color:c.addedColor},[`.${_}`]:{color:c.addedGutterColor},label:`diff-added`}),b=l({background:c.changedBackground,[`.${_}`]:{color:c.gutterColor},label:`diff-changed`}),x=l({padding:2,display:`inline-flex`,borderRadius:4,wordBreak:`break-all`,label:`word-diff`}),S=l({background:c.wordAddedBackground,label:`word-added`}),C=l({background:c.wordRemovedBackground,label:`word-removed`}),w=l({backgroundColor:c.codeFoldGutterBackground,label:`code-fold-gutter`}),T=l({backgroundColor:c.codeFoldBackground,height:40,fontSize:14,fontWeight:700,label:`code-fold`,a:{textDecoration:`underline !important`,cursor:`pointer`,pre:{display:`inline`}}}),E=l({backgroundColor:c.emptyLineBackground,label:`empty-line`}),D=l({width:25,paddingLeft:10,paddingRight:10,userSelect:`none`,label:`marker`,[`&.${y}`]:{pre:{color:c.addedColor}},[`&.${v}`]:{pre:{color:c.removedColor}}}),O=l({background:c.highlightBackground,label:`highlighted-line`,[`.${S}, .${C}`]:{backgroundColor:`initial`}}),k=l({label:`highlighted-gutter`}),A=l({userSelect:`none`,minWidth:50,padding:`0 10px`,whiteSpace:`nowrap`,label:`gutter`,textAlign:`right`,background:c.gutterBackground,"&:hover":{cursor:`pointer`,background:c.gutterBackgroundDark,pre:{opacity:1}},pre:{opacity:.5},[`&.${y}`]:{background:c.addedGutterBackground},[`&.${v}`]:{background:c.removedGutterBackground},[`&.${k}`]:{background:c.highlightGutterBackground,"&:hover":{background:c.highlightGutterBackground}}}),j=l({"&:hover":{background:c.gutterBackground,cursor:`initial`},label:`empty-gutter`}),M={diffContainer:p,diffRemoved:v,diffAdded:y,diffChanged:b,splitView:f,marker:D,highlightedGutter:k,highlightedLine:O,gutter:A,line:l({verticalAlign:`baseline`,label:`line`}),wordDiff:x,wordAdded:S,wordRemoved:C,codeFoldGutter:w,codeFold:T,emptyGutter:j,emptyLine:E,lineNumber:_,contentText:h,content:d,codeFoldContent:m,titleBlock:g},N=Object.keys(o).reduce((e,t)=>Object.assign(Object.assign({},e),{[t]:l(o[t])}),{});return Object.keys(M).reduce((e,t)=>Object.assign(Object.assign({},e),{[t]:N[t]?u(M[t],N[t]):M[t]}),{})},L9}var z9={},B9;function dHe(){if(B9)return z9;B9=1,Object.defineProperty(z9,`__esModule`,{value:!0}),z9.computeHiddenBlocks=void 0;function e(e,t,n){let r=0,i,a={},o=[];return e.forEach((e,s)=>{let c=t.some(e=>e>=s-n&&e<=s+n);!c&&i==null?(i={index:r,startLine:s,endLine:s,lines:1},o.push(i),a[s]=i.index,r++):c?i=void 0:(i.endLine=s,i.lines++,a[s]=i.index)}),{lineBlocks:a,blocks:o}}return z9.computeHiddenBlocks=e,z9}var V9=Number.isNaN||function(e){return typeof e==`number`&&e!==e};function fHe(e,t){return!!(e===t||V9(e)&&V9(t))}function pHe(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!fHe(e[n],t[n]))return!1;return!0}function mHe(e,t){t===void 0&&(t=pHe);var n=null;function r(){var r=[...arguments];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var i=e.apply(this,r);return n={lastResult:i,lastArgs:r,lastThis:this},i}return r.clear=function(){n=null},r}var hHe=wi(Object.freeze(Object.defineProperty({__proto__:null,default:mHe},Symbol.toStringTag,{value:`Module`}))),H9;function gHe(){return H9?G7:(H9=1,(function(e){var t=G7&&G7.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),n=G7&&G7.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=G7&&G7.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)i!==`default`&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r},i=G7&&G7.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.DiffMethod=e.LineNumberPrefix=void 0;let a=U.default,o=r(H.default),s=i(Di()),c=lHe();Object.defineProperty(e,`DiffMethod`,{enumerable:!0,get:function(){return c.DiffMethod}});let l=i(uHe()),u=dHe(),d=hHe,f=d.default||d;var p;(function(e){e.LEFT=`L`,e.RIGHT=`R`})(p||(e.LineNumberPrefix=p={}));class m extends o.Component{constructor(e){super(e),this.resetCodeBlocks=()=>this.state.expandedBlocks.length>0?(this.setState({expandedBlocks:[]}),!0):!1,this.onBlockExpand=e=>{let t=this.state.expandedBlocks.slice();t.push(e),this.setState({expandedBlocks:t})},this.computeStyles=f(l.default),this.onLineNumberClickProxy=e=>this.props.onLineNumberClick?t=>this.props.onLineNumberClick(e,t):()=>{},this.renderWordDiff=(e,t)=>e.map((e,n)=>(0,a.jsx)(`span`,{className:(0,s.default)(this.styles.wordDiff,{[this.styles.wordAdded]:e.type===c.DiffType.ADDED,[this.styles.wordRemoved]:e.type===c.DiffType.REMOVED}),children:t?t(e.value):e.value},n)),this.renderLine=(e,t,n,r,i,l)=>{let u=`${n}-${e}`,d=`${l}-${i}`,f=this.props.highlightLines.includes(u)||this.props.highlightLines.includes(d),p=t===c.DiffType.ADDED,m=t===c.DiffType.REMOVED,h=t===c.DiffType.CHANGED,g;return g=Array.isArray(r)?this.renderWordDiff(r,this.props.renderContent):this.props.renderContent?this.props.renderContent(r):r,(0,a.jsxs)(o.Fragment,{children:[!this.props.hideLineNumbers&&(0,a.jsx)(`td`,{onClick:e&&this.onLineNumberClickProxy(u),className:(0,s.default)(this.styles.gutter,{[this.styles.emptyGutter]:!e,[this.styles.diffAdded]:p,[this.styles.diffRemoved]:m,[this.styles.diffChanged]:h,[this.styles.highlightedGutter]:f}),children:(0,a.jsx)(`pre`,{className:this.styles.lineNumber,children:e})}),!this.props.splitView&&!this.props.hideLineNumbers&&(0,a.jsx)(`td`,{onClick:i&&this.onLineNumberClickProxy(d),className:(0,s.default)(this.styles.gutter,{[this.styles.emptyGutter]:!i,[this.styles.diffAdded]:p,[this.styles.diffRemoved]:m,[this.styles.diffChanged]:h,[this.styles.highlightedGutter]:f}),children:(0,a.jsx)(`pre`,{className:this.styles.lineNumber,children:i})}),this.props.renderGutter?this.props.renderGutter({lineNumber:e,type:t,prefix:n,value:r,additionalLineNumber:i,additionalPrefix:l,styles:this.styles}):null,!this.props.hideMarkers&&(0,a.jsx)(`td`,{className:(0,s.default)(this.styles.marker,{[this.styles.emptyLine]:!g,[this.styles.diffAdded]:p,[this.styles.diffRemoved]:m,[this.styles.diffChanged]:h,[this.styles.highlightedLine]:f}),children:(0,a.jsxs)(`pre`,{children:[p&&`+`,m&&`-`]})}),(0,a.jsx)(`td`,{className:(0,s.default)(this.styles.content,{[this.styles.emptyLine]:!g,[this.styles.diffAdded]:p,[this.styles.diffRemoved]:m,[this.styles.diffChanged]:h,[this.styles.highlightedLine]:f}),children:(0,a.jsx)(`pre`,{className:this.styles.contentText,children:g})})]})},this.renderSplitView=({left:e,right:t},n)=>(0,a.jsxs)(`tr`,{className:this.styles.line,children:[this.renderLine(e.lineNumber,e.type,p.LEFT,e.value),this.renderLine(t.lineNumber,t.type,p.RIGHT,t.value)]},n),this.renderInlineView=({left:e,right:t},n)=>{let r;return e.type===c.DiffType.REMOVED&&t.type===c.DiffType.ADDED?(0,a.jsxs)(o.Fragment,{children:[(0,a.jsx)(`tr`,{className:this.styles.line,children:this.renderLine(e.lineNumber,e.type,p.LEFT,e.value,null)}),(0,a.jsx)(`tr`,{className:this.styles.line,children:this.renderLine(null,t.type,p.RIGHT,t.value,t.lineNumber)})]},n):(e.type===c.DiffType.REMOVED&&(r=this.renderLine(e.lineNumber,e.type,p.LEFT,e.value,null)),e.type===c.DiffType.DEFAULT&&(r=this.renderLine(e.lineNumber,e.type,p.LEFT,e.value,t.lineNumber,p.RIGHT)),t.type===c.DiffType.ADDED&&(r=this.renderLine(null,t.type,p.RIGHT,t.value,t.lineNumber)),(0,a.jsx)(`tr`,{className:this.styles.line,children:r},n))},this.onBlockClickProxy=e=>()=>this.onBlockExpand(e),this.renderSkippedLineIndicator=(e,t,n,r)=>{let{hideLineNumbers:i,splitView:c}=this.props,l=this.props.codeFoldMessageRenderer?this.props.codeFoldMessageRenderer(e,n,r):(0,a.jsxs)(`pre`,{className:this.styles.codeFoldContent,children:[`Expand `,e,` lines ...`]}),u=(0,a.jsx)(`td`,{children:(0,a.jsx)(`a`,{onClick:this.onBlockClickProxy(t),tabIndex:0,children:l})}),d=!c&&!i;return(0,a.jsxs)(`tr`,{className:this.styles.codeFold,children:[!i&&(0,a.jsx)(`td`,{className:this.styles.codeFoldGutter}),this.props.renderGutter?(0,a.jsx)(`td`,{className:this.styles.codeFoldGutter}):null,(0,a.jsx)(`td`,{className:(0,s.default)({[this.styles.codeFoldGutter]:d})}),d?(0,a.jsxs)(o.Fragment,{children:[(0,a.jsx)(`td`,{}),u]}):(0,a.jsxs)(o.Fragment,{children:[u,this.props.renderGutter?(0,a.jsx)(`td`,{}):null,(0,a.jsx)(`td`,{})]}),(0,a.jsx)(`td`,{}),(0,a.jsx)(`td`,{})]},`${n}-${r}`)},this.renderDiff=()=>{let{oldValue:e,newValue:t,splitView:n,disableWordDiff:r,compareMethod:i,linesOffset:s}=this.props,{lineInformation:l,diffLines:d}=(0,c.computeLineInformation)(e,t,r,i,s,this.props.alwaysShowLines),f=this.props.extraLinesSurroundingDiff<0?0:Math.round(this.props.extraLinesSurroundingDiff),{lineBlocks:p,blocks:m}=(0,u.computeHiddenBlocks)(l,d,f);return l.map((e,t)=>{if(this.props.showDiffOnly){let n=p[t];if(n!==void 0){let r=m[n].endLine===t;if(!this.state.expandedBlocks.includes(n)&&r)return(0,a.jsx)(o.Fragment,{children:this.renderSkippedLineIndicator(m[n].lines,n,e.left.lineNumber,e.right.lineNumber)},t);if(!this.state.expandedBlocks.includes(n))return null}}return n?this.renderSplitView(e,t):this.renderInlineView(e,t)})},this.render=()=>{let{oldValue:e,newValue:t,useDarkTheme:n,leftTitle:r,rightTitle:i,splitView:o,hideLineNumbers:l,hideMarkers:u,nonce:d}=this.props;if(this.props.compareMethod!==c.DiffMethod.JSON&&(typeof e!=`string`||typeof t!=`string`))throw Error(`"oldValue" and "newValue" should be strings`);this.styles=this.computeStyles(this.props.styles,n,d);let f=this.renderDiff(),p=l?2:3,m=l?2:4;u&&(--p,--m);let h=this.props.renderGutter?1:0,g=(r||i)&&(0,a.jsxs)(`tr`,{children:[(0,a.jsx)(`td`,{colSpan:(o?p:m)+h,className:this.styles.titleBlock,children:(0,a.jsx)(`pre`,{className:this.styles.contentText,children:r})}),o&&(0,a.jsx)(`td`,{colSpan:p+h,className:this.styles.titleBlock,children:(0,a.jsx)(`pre`,{className:this.styles.contentText,children:i})})]});return(0,a.jsx)(`table`,{className:(0,s.default)(this.styles.diffContainer,{[this.styles.splitView]:o}),children:(0,a.jsxs)(`tbody`,{children:[g,f]})})},this.state={expandedBlocks:[]}}}m.defaultProps={oldValue:``,newValue:``,splitView:!0,highlightLines:[],disableWordDiff:!1,compareMethod:c.DiffMethod.CHARS,styles:{},hideLineNumbers:!1,hideMarkers:!1,extraLinesSurroundingDiff:3,showDiffOnly:!0,useDarkTheme:!1,linesOffset:0,nonce:``},e.default=m})(G7),G7)}gHe();const _He=2,vHe=5,yHe=1,bHe=`round`,xHe=`transparent`,SHe=`rgba(0, 0, 0, 0.1)`,CHe=`dblclick`,wHe={TRANSLATIONS:`translations`,LANGUAGE_KEY:`languageKey`},THe=1e-4,EHe=1e7,U9=()=>{let e=(0,H.useContext)(ue);if(e===void 0)throw Error(`useLegend must be used within a LegendProvider`);return e},W9=({chartRef:e,options:t})=>{let{state:n,dispatch:r}=U9()??{},{annotations:i,interactions:{onLegendClick:a},legend:{customLegend:o}}=t??{};(0,H.useEffect)(()=>{n?.datasets?.forEach((t,n)=>{let r=t?.hidden??!1;e?.current?.setDatasetVisibility(Number(n),!r),e?.current?.update(`none`)})},[n]);let s=(0,H.useCallback)((t,n)=>{let{datasetIndex:o=-1}=n??{},s=null,c=e?.current,l=c?.data?.datasets??[],u=l?.[o]??{};if(i?.controlAnnotation&&u?.isAnnotation&&(s=u?.annotationIndex??null),a){let e=n?.hidden??!1;a(n?.text,e)}r({type:R,payload:{chartInstance:c,dsConfig:{datasetIndex:o,datasets:l,dataset:u},annotationConfig:{annotationIndex:s}}}),c?.update()},[e,i,r]),c=(0,H.useMemo)(()=>ee(t,s),[t,s]),l=(0,H.useMemo)(()=>({[g]:o?.customLegendPlugin&&{containerID:o?.customLegendContainerID}}),[o]);return{legendClick:s,annotation:n?.annotation,legend:c,customLegendPlugin:l}},DHe=(e=[])=>{let t={};return e.length&&(t=e.reduce((e,t,n)=>{let r=t?.id??`annotation${n+1}`;return e[r]={...t,id:r},e},{})),{annotations:t}};var OHe=function(){},G9=typeof window<`u`,kHe=G9?H.useLayoutEffect:H.useEffect,AHe={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};function jHe(){var e=(0,H.useState)(null),t=e[0],n=e[1],r=(0,H.useState)(AHe),i=r[0],a=r[1],o=(0,H.useMemo)(function(){return new window.ResizeObserver(function(e){if(e[0]){var t=e[0].contentRect,n=t.x,r=t.y,i=t.width,o=t.height,s=t.top,c=t.left,l=t.bottom,u=t.right;a({x:n,y:r,width:i,height:o,top:s,left:c,bottom:l,right:u})}})},[]);return kHe(function(){if(t)return o.observe(t),function(){o.disconnect()}},[t]),[n,i]}var MHe=G9&&window.ResizeObserver!==void 0?jHe:(function(){return[OHe,AHe]}),NHe={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},PHe=H.createContext&&H.createContext(NHe),K9=function(){return K9=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},K9.apply(this,arguments)},FHe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function IHe(e){return e&&e.map(function(e,t){return H.createElement(e.tag,K9({key:t},e.attr),IHe(e.child))})}function q9(e){return function(t){return H.createElement(LHe,K9({attr:K9({},e.attr)},t),IHe(e.child))}}function LHe(e){var t=function(t){var n=e.attr,r=e.size,i=e.title,a=FHe(e,[`attr`,`size`,`title`]),o=r||t.size||`1em`,s;return t.className&&(s=t.className),e.className&&(s=(s?s+` `:``)+e.className),H.createElement(`svg`,K9({stroke:`currentColor`,fill:`currentColor`,strokeWidth:`0`},t.attr,n,a,{className:s,style:K9(K9({color:e.color||t.color},t.style),e.style),height:o,width:o,xmlns:`http://www.w3.org/2000/svg`}),i&&H.createElement(`title`,null,i),e.children)};return PHe===void 0?t(NHe):H.createElement(PHe.Consumer,null,function(e){return t(e)})}function RHe(e){return q9({tag:`svg`,attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M18 9l3 3l-3 3`}},{tag:`path`,attr:{d:`M15 12h6`}},{tag:`path`,attr:{d:`M6 9l-3 3l3 3`}},{tag:`path`,attr:{d:`M3 12h6`}},{tag:`path`,attr:{d:`M9 18l3 3l3 -3`}},{tag:`path`,attr:{d:`M12 15v6`}},{tag:`path`,attr:{d:`M15 6l-3 -3l-3 3`}},{tag:`path`,attr:{d:`M12 3v6`}}]})(e)}function zHe(e){return q9({tag:`svg`,attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0`}},{tag:`path`,attr:{d:`M5.7 5.7l12.6 12.6`}}]})(e)}function BHe(e){return q9({tag:`svg`,attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M7 3.34a10 10 0 1 1 -4.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 4.995 -8.336z`,strokeWidth:`0`,fill:`currentColor`}}]})(e)}function VHe(e){return q9({tag:`svg`,attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M8 13v-7.5a1.5 1.5 0 0 1 3 0v6.5`}},{tag:`path`,attr:{d:`M11 5.5v-2a1.5 1.5 0 1 1 3 0v8.5`}},{tag:`path`,attr:{d:`M14 5.5a1.5 1.5 0 0 1 3 0v6.5`}},{tag:`path`,attr:{d:`M17 7.5a1.5 1.5 0 0 1 3 0v8.5a6 6 0 0 1 -6 6h-2h.208a6 6 0 0 1 -5.012 -2.7a69.74 69.74 0 0 1 -.196 -.3c-.312 -.479 -1.407 -2.388 -3.286 -5.728a1.5 1.5 0 0 1 .536 -2.022a1.867 1.867 0 0 1 2.28 .28l1.47 1.47`}}]})(e)}function HHe(e){return q9({tag:`svg`,attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M9 6l11 0`}},{tag:`path`,attr:{d:`M9 12l11 0`}},{tag:`path`,attr:{d:`M9 18l11 0`}},{tag:`path`,attr:{d:`M5 6l0 .01`}},{tag:`path`,attr:{d:`M5 12l0 .01`}},{tag:`path`,attr:{d:`M5 18l0 .01`}}]})(e)}function UHe(e){return q9({tag:`svg`,attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M5 4h14a1 1 0 0 1 1 1v5a1 1 0 0 1 -1 1h-7a1 1 0 0 0 -1 1v7a1 1 0 0 1 -1 1h-5a1 1 0 0 1 -1 -1v-14a1 1 0 0 1 1 -1`}},{tag:`path`,attr:{d:`M4 8l2 0`}},{tag:`path`,attr:{d:`M4 12l3 0`}},{tag:`path`,attr:{d:`M4 16l2 0`}},{tag:`path`,attr:{d:`M8 4l0 2`}},{tag:`path`,attr:{d:`M12 4l0 3`}},{tag:`path`,attr:{d:`M16 4l0 2`}}]})(e)}function WHe(e){return q9({tag:`svg`,attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M19 2h-14a3 3 0 0 0 -3 3v14a3 3 0 0 0 3 3h14a3 3 0 0 0 3 -3v-14a3 3 0 0 0 -3 -3z`,strokeWidth:`0`,fill:`currentColor`}}]})(e)}function GHe(e){return q9({tag:`svg`,attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M18 6l-12 12`}},{tag:`path`,attr:{d:`M6 6l12 12`}}]})(e)}function KHe(e){return q9({tag:`svg`,attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0`}},{tag:`path`,attr:{d:`M7 10l6 0`}},{tag:`path`,attr:{d:`M10 7l0 6`}},{tag:`path`,attr:{d:`M21 21l-6 -6`}}]})(e)}var J9={legend:`_legend_wpro0_1`,isDragging:`_isDragging_wpro0_8`,legendItems:`_legendItems_wpro0_11`,isHidden:`_isHidden_wpro0_47`,legendToggle:`_legendToggle_wpro0_50`,legendItem:`_legendItem_wpro0_11`,legendItemSymbol:`_legendItemSymbol_wpro0_80`,legendItemBox:`_legendItemBox_wpro0_90`,legendItemLine:`_legendItemLine_wpro0_95`,legendItemPoint:`_legendItemPoint_wpro0_103`,legendItemText:`_legendItemText_wpro0_110`,scrollbars:`_scrollbars_wpro0_113`,dropzoneContainer:`_dropzoneContainer_wpro0_140`,dropzone:`_dropzone_wpro0_140`,left:`_left_wpro0_149`,right:`_right_wpro0_153`,top:`_top_wpro0_157`,bottom:`_bottom_wpro0_161`,dropzonePlaceholder:`_dropzonePlaceholder_wpro0_165`,isActive:`_isActive_wpro0_173`,resizeContainer:`_resizeContainer_wpro0_176`},Y9=e=>(0,U.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,width:`1em`,height:`1em`,...e,children:(0,U.jsx)(`circle`,{cx:12,cy:12,r:12,fill:`currentColor`})});let X9=function(e){return e.LINE=`line`,e.BAR=`bar`,e.PIE=`pie`,e.SCATTER=`scatter`,e}({}),qHe=function(e){return e.VERTICAL=`vertical`,e.HORIZONTAL=`horizontal`,e}({});var JHe=e=>(0,U.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,width:`1em`,height:`1em`,...e,children:(0,U.jsx)(`rect`,{x:2,y:2,width:20,height:20,fill:`currentColor`})}),YHe=e=>(0,U.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,width:`1em`,height:`1em`,...e,children:(0,U.jsx)(`rect`,{x:3,y:3,width:18,height:18,fill:`currentColor`,transform:`rotate(45 12 12)`})}),XHe=e=>(0,U.jsx)(`svg`,{height:`1em`,viewBox:`0 0 24 24`,width:`1em`,xmlns:`http://www.w3.org/2000/svg`,xmlnsXlink:`http://www.w3.org/1999/xlink`,...e,children:(0,U.jsx)(`path`,{d:`m22.7998 22.0623h-21.5996c-.21066.0001-.417617-.0554-.600067-.1607-.182451-.1053-.333965-.2567-.439311-.4392-.1053464-.1824-.16081228-.3893-.160822-.6s.0554372-.4176.160767-.6l10.799833-18.70518c.1139-.17137.2684-.31191.4497-.40913.1814-.09722.3839-.14809.5897-.14809s.4083.05087.5897.14809c.1813.09722.3358.23776.4497.40913l10.7998 18.70518c.1054.1824.1608.3893.1608.6s-.0555.4176-.1608.6c-.1054.1825-.2569.3339-.4393.4392-.1825.1053-.3894.1608-.6001.1607z`,fill:`currentColor`})}),Z9=16,ZHe=({dataset:e})=>{let{borderColor:t,borderDash:n,borderWidth:r}=e??{},[i,a]=n??[],o=i&&a?(Z9-i)/2%(i+a)*-1:0,s=e?.borderDash?.join(` `)||``;return(0,U.jsx)(`span`,{className:J9.legendItemLine,children:(0,U.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 ${Z9} ${Z9}`,width:`100%`,height:`100%`,children:(0,U.jsx)(`line`,{x1:`0`,y1:`50%`,x2:`100%`,y2:`50%`,stroke:t,strokeWidth:r,strokeDasharray:s,strokeDashoffset:o})})})},QHe=({dataset:e})=>{let{pointBackgroundColor:t,pointRadius:n,pointStyle:r=``}=e??{};if(!n)return null;let i=n*2,a={circle:(0,U.jsx)(Y9,{}),triangle:(0,U.jsx)(XHe,{}),rectRot:(0,U.jsx)(YHe,{}),rect:(0,U.jsx)(JHe,{})};return(0,U.jsx)(`span`,{className:J9.legendItemPoint,children:(0,U.jsx)(ca,{icon:a?.[r]??(0,U.jsx)(Y9,{}),size:i,color:t})})},$He=({dataset:e})=>{let{backgroundColor:t}=e??{},n={backgroundColor:t};return(0,U.jsx)(`span`,{className:J9.legendItemBox,style:n})};const eUe=({dataset:e})=>{let{annotationType:t,showLine:n}=e??{};switch(t){case f.Box:case f.Ellipse:return(0,U.jsx)($He,{dataset:e});case f.Line:return(0,U.jsx)(ZHe,{dataset:e});default:return(0,U.jsxs)(U.Fragment,{children:[n&&(0,U.jsx)(ZHe,{dataset:e}),(0,U.jsx)(QHe,{dataset:e})]})}};eUe.__docgenInfo={description:``,methods:[],displayName:`LegendItemLine`};var tUe=e(l(),1),nUe=16,rUe=(e,t,n)=>{switch(t){case X9.LINE:return(0,U.jsx)(eUe,{dataset:e});case X9.BAR:{let{backgroundColor:t}=e??{},r=t instanceof Array?t?.[n]:t;return(0,U.jsx)(`span`,{className:J9.legendItemBox,children:(0,U.jsx)(WHe,{color:r})})}case X9.PIE:return(0,U.jsx)(`span`,{className:J9.legendItemPoint,children:(0,U.jsx)(ca,{icon:(0,U.jsx)(Y9,{})})});case X9.SCATTER:{let{backgroundColor:t,borderColor:r}=e??{},i=t instanceof Array?t?.[n]:t;return(0,U.jsx)(`span`,{className:J9.legendItemPoint,children:(0,U.jsx)(BHe,{color:i??r})})}default:return null}},iUe=({hidden:e,dataset:t,handleClick:n,chartType:r,index:i})=>(0,U.jsxs)(`div`,{className:(0,tUe.default)(J9?.legendItem,e&&J9?.isHidden),onClick:n,children:[(0,U.jsx)(`span`,{className:J9.legendItemSymbol,style:{width:nUe},children:rUe(t,r,i)}),(0,U.jsx)(`span`,{className:J9.legendItemText,children:t?.label})]}),aUe=iUe;iUe.__docgenInfo={description:``,methods:[],displayName:`LegendItem`,props:{hidden:{required:!0,tsType:{name:`boolean`},description:``},dataset:{required:!0,tsType:{name:`union`,raw:`| IGeneratedLineChartDataset
1256
1256
  | IGenerateBarChartDataset
1257
1257
  | IGeneratedPieChartDataset
1258
- | IGeneratedScatterChartDataset`,elements:[{name:`IGeneratedLineChartDataset`},{name:`IGenerateBarChartDataset`},{name:`IGeneratedPieChartDataset`},{name:`IGeneratedScatterChartDataset`}]},description:``},handleClick:{required:!0,tsType:{name:`MouseEventHandler`,elements:[{name:`HTMLDivElement`}],raw:`MouseEventHandler<HTMLDivElement>`},description:``},chartType:{required:!0,tsType:{name:`ChartType`},description:``},index:{required:!0,tsType:{name:`number`},description:``}}};var Q9=e(te(),1),oUe=e=>{let t=(0,Q9.get)(e,`options.plugins.annotation.annotations`,null);return!t||!Object.keys(t).length?[]:Object.values(t)},sUe=e=>(0,Q9.cloneDeep)(e?.options?.plugins?.legend?.labels?.generateLabels?.(e))??[];const cUe=e=>{let t=sUe(e),n=oUe(e);return(0,Q9.map)(t,e=>{let t=(0,Q9.find)(n,t=>e.text===t?.label?.content);return t?{...e,hidden:!t?.display}:e})};var lUe=r(((e,t)=>{(function(n){var r;typeof e==`object`?t.exports=n():typeof define==`function`&&define.amd?define(n):(typeof window<`u`?r=window:typeof global<`u`?r=global:typeof self<`u`&&(r=self),r.objectHash=n())})(function(){return function e(t,n,r){function i(s,c){if(!n[s]){if(!t[s]){var l=typeof a==`function`&&a;if(!c&&l)return l(s,!0);if(o)return o(s,!0);throw Error(`Cannot find module '`+s+`'`)}c=n[s]={exports:{}},t[s][0].call(c.exports,function(e){var n=t[s][1][e];return i(n||e)},c,c.exports,e,t,n,r)}return n[s].exports}for(var o=typeof a==`function`&&a,s=0;s<r.length;s++)i(r[s]);return i}({1:[function(e,t,n){(function(r,i,a,o,s,c,l,u,d){var f=e(`crypto`);function p(e,t){t=g(e,t);var n;return(n=t.algorithm===`passthrough`?new y:f.createHash(t.algorithm)).write===void 0&&(n.write=n.update,n.end=n.update),v(t,n).dispatch(e),n.update||n.end(``),n.digest?n.digest(t.encoding===`buffer`?void 0:t.encoding):(e=n.read(),t.encoding===`buffer`?e:e.toString(t.encoding))}(n=t.exports=p).sha1=function(e){return p(e)},n.keys=function(e){return p(e,{excludeValues:!0,algorithm:`sha1`,encoding:`hex`})},n.MD5=function(e){return p(e,{algorithm:`md5`,encoding:`hex`})},n.keysMD5=function(e){return p(e,{algorithm:`md5`,encoding:`hex`,excludeValues:!0})};var m=f.getHashes?f.getHashes().slice():[`sha1`,`md5`],h=(m.push(`passthrough`),[`buffer`,`hex`,`binary`,`base64`]);function g(e,t){var n={};if(n.algorithm=(t||={}).algorithm||`sha1`,n.encoding=t.encoding||`hex`,n.excludeValues=!!t.excludeValues,n.algorithm=n.algorithm.toLowerCase(),n.encoding=n.encoding.toLowerCase(),n.ignoreUnknown=!0===t.ignoreUnknown,n.respectType=!1!==t.respectType,n.respectFunctionNames=!1!==t.respectFunctionNames,n.respectFunctionProperties=!1!==t.respectFunctionProperties,n.unorderedArrays=!0===t.unorderedArrays,n.unorderedSets=!1!==t.unorderedSets,n.unorderedObjects=!1!==t.unorderedObjects,n.replacer=t.replacer||void 0,n.excludeKeys=t.excludeKeys||void 0,e===void 0)throw Error(`Object argument required.`);for(var r=0;r<m.length;++r)m[r].toLowerCase()===n.algorithm.toLowerCase()&&(n.algorithm=m[r]);if(m.indexOf(n.algorithm)===-1)throw Error(`Algorithm "`+n.algorithm+`" not supported. supported values: `+m.join(`, `));if(h.indexOf(n.encoding)===-1&&n.algorithm!==`passthrough`)throw Error(`Encoding "`+n.encoding+`" not supported. supported values: `+h.join(`, `));return n}function _(e){if(typeof e==`function`)return/^function\s+\w*\s*\(\s*\)\s*{\s+\[native code\]\s+}$/i.exec(Function.prototype.toString.call(e))!=null}function v(e,t,n){n||=[];function r(e){return t.update?t.update(e,`utf8`):t.write(e,`utf8`)}return{dispatch:function(t){return this[`_`+((t=e.replacer?e.replacer(t):t)===null?`null`:typeof t)](t)},_object:function(t){var i,o=Object.prototype.toString.call(t),s=/\[object (.*)\]/i.exec(o);if(s=(s=s?s[1]:`unknown:[`+o+`]`).toLowerCase(),0<=(o=n.indexOf(t)))return this.dispatch(`[CIRCULAR:`+o+`]`);if(n.push(t),a!==void 0&&a.isBuffer&&a.isBuffer(t))return r(`buffer:`),r(t);if(s===`object`||s===`function`||s===`asyncfunction`)return o=Object.keys(t),e.unorderedObjects&&(o=o.sort()),!1===e.respectType||_(t)||o.splice(0,0,`prototype`,`__proto__`,`constructor`),e.excludeKeys&&(o=o.filter(function(t){return!e.excludeKeys(t)})),r(`object:`+o.length+`:`),i=this,o.forEach(function(n){i.dispatch(n),r(`:`),e.excludeValues||i.dispatch(t[n]),r(`,`)});if(!this[`_`+s]){if(e.ignoreUnknown)return r(`[`+s+`]`);throw Error(`Unknown object type "`+s+`"`)}this[`_`+s](t)},_array:function(t,i){i=i===void 0?!1!==e.unorderedArrays:i;var a=this;if(r(`array:`+t.length+`:`),!i||t.length<=1)return t.forEach(function(e){return a.dispatch(e)});var o=[],i=t.map(function(t){var r=new y,i=n.slice();return v(e,r,i).dispatch(t),o=o.concat(i.slice(n.length)),r.read().toString()});return n=n.concat(o),i.sort(),this._array(i,!1)},_date:function(e){return r(`date:`+e.toJSON())},_symbol:function(e){return r(`symbol:`+e.toString())},_error:function(e){return r(`error:`+e.toString())},_boolean:function(e){return r(`bool:`+e.toString())},_string:function(e){r(`string:`+e.length+`:`),r(e.toString())},_function:function(t){r(`fn:`),_(t)?this.dispatch(`[native]`):this.dispatch(t.toString()),!1!==e.respectFunctionNames&&this.dispatch(`function-name:`+String(t.name)),e.respectFunctionProperties&&this._object(t)},_number:function(e){return r(`number:`+e.toString())},_xml:function(e){return r(`xml:`+e.toString())},_null:function(){return r(`Null`)},_undefined:function(){return r(`Undefined`)},_regexp:function(e){return r(`regex:`+e.toString())},_uint8array:function(e){return r(`uint8array:`),this.dispatch(Array.prototype.slice.call(e))},_uint8clampedarray:function(e){return r(`uint8clampedarray:`),this.dispatch(Array.prototype.slice.call(e))},_int8array:function(e){return r(`int8array:`),this.dispatch(Array.prototype.slice.call(e))},_uint16array:function(e){return r(`uint16array:`),this.dispatch(Array.prototype.slice.call(e))},_int16array:function(e){return r(`int16array:`),this.dispatch(Array.prototype.slice.call(e))},_uint32array:function(e){return r(`uint32array:`),this.dispatch(Array.prototype.slice.call(e))},_int32array:function(e){return r(`int32array:`),this.dispatch(Array.prototype.slice.call(e))},_float32array:function(e){return r(`float32array:`),this.dispatch(Array.prototype.slice.call(e))},_float64array:function(e){return r(`float64array:`),this.dispatch(Array.prototype.slice.call(e))},_arraybuffer:function(e){return r(`arraybuffer:`),this.dispatch(new Uint8Array(e))},_url:function(e){return r(`url:`+e.toString())},_map:function(t){return r(`map:`),t=Array.from(t),this._array(t,!1!==e.unorderedSets)},_set:function(t){return r(`set:`),t=Array.from(t),this._array(t,!1!==e.unorderedSets)},_file:function(e){return r(`file:`),this.dispatch([e.name,e.size,e.type,e.lastModfied])},_blob:function(){if(e.ignoreUnknown)return r(`[blob]`);throw Error(`Hashing Blob objects is currently not supported
1258
+ | IGeneratedScatterChartDataset`,elements:[{name:`IGeneratedLineChartDataset`},{name:`IGenerateBarChartDataset`},{name:`IGeneratedPieChartDataset`},{name:`IGeneratedScatterChartDataset`}]},description:``},handleClick:{required:!0,tsType:{name:`MouseEventHandler`,elements:[{name:`HTMLDivElement`}],raw:`MouseEventHandler<HTMLDivElement>`},description:``},chartType:{required:!0,tsType:{name:`ChartType`},description:``},index:{required:!0,tsType:{name:`number`},description:``}}};var Q9=e(z(),1),oUe=e=>{let t=(0,Q9.get)(e,`options.plugins.annotation.annotations`,null);return!t||!Object.keys(t).length?[]:Object.values(t)},sUe=e=>(0,Q9.cloneDeep)(e?.options?.plugins?.legend?.labels?.generateLabels?.(e))??[];const cUe=e=>{let t=sUe(e),n=oUe(e);return(0,Q9.map)(t,e=>{let t=(0,Q9.find)(n,t=>e.text===t?.label?.content);return t?{...e,hidden:!t?.display}:e})};var lUe=r(((e,t)=>{(function(n){var r;typeof e==`object`?t.exports=n():typeof define==`function`&&define.amd?define(n):(typeof window<`u`?r=window:typeof global<`u`?r=global:typeof self<`u`&&(r=self),r.objectHash=n())})(function(){return function e(t,n,r){function i(s,c){if(!n[s]){if(!t[s]){var l=typeof a==`function`&&a;if(!c&&l)return l(s,!0);if(o)return o(s,!0);throw Error(`Cannot find module '`+s+`'`)}c=n[s]={exports:{}},t[s][0].call(c.exports,function(e){var n=t[s][1][e];return i(n||e)},c,c.exports,e,t,n,r)}return n[s].exports}for(var o=typeof a==`function`&&a,s=0;s<r.length;s++)i(r[s]);return i}({1:[function(e,t,n){(function(r,i,a,o,s,c,l,u,d){var f=e(`crypto`);function p(e,t){t=g(e,t);var n;return(n=t.algorithm===`passthrough`?new y:f.createHash(t.algorithm)).write===void 0&&(n.write=n.update,n.end=n.update),v(t,n).dispatch(e),n.update||n.end(``),n.digest?n.digest(t.encoding===`buffer`?void 0:t.encoding):(e=n.read(),t.encoding===`buffer`?e:e.toString(t.encoding))}(n=t.exports=p).sha1=function(e){return p(e)},n.keys=function(e){return p(e,{excludeValues:!0,algorithm:`sha1`,encoding:`hex`})},n.MD5=function(e){return p(e,{algorithm:`md5`,encoding:`hex`})},n.keysMD5=function(e){return p(e,{algorithm:`md5`,encoding:`hex`,excludeValues:!0})};var m=f.getHashes?f.getHashes().slice():[`sha1`,`md5`],h=(m.push(`passthrough`),[`buffer`,`hex`,`binary`,`base64`]);function g(e,t){var n={};if(n.algorithm=(t||={}).algorithm||`sha1`,n.encoding=t.encoding||`hex`,n.excludeValues=!!t.excludeValues,n.algorithm=n.algorithm.toLowerCase(),n.encoding=n.encoding.toLowerCase(),n.ignoreUnknown=!0===t.ignoreUnknown,n.respectType=!1!==t.respectType,n.respectFunctionNames=!1!==t.respectFunctionNames,n.respectFunctionProperties=!1!==t.respectFunctionProperties,n.unorderedArrays=!0===t.unorderedArrays,n.unorderedSets=!1!==t.unorderedSets,n.unorderedObjects=!1!==t.unorderedObjects,n.replacer=t.replacer||void 0,n.excludeKeys=t.excludeKeys||void 0,e===void 0)throw Error(`Object argument required.`);for(var r=0;r<m.length;++r)m[r].toLowerCase()===n.algorithm.toLowerCase()&&(n.algorithm=m[r]);if(m.indexOf(n.algorithm)===-1)throw Error(`Algorithm "`+n.algorithm+`" not supported. supported values: `+m.join(`, `));if(h.indexOf(n.encoding)===-1&&n.algorithm!==`passthrough`)throw Error(`Encoding "`+n.encoding+`" not supported. supported values: `+h.join(`, `));return n}function _(e){if(typeof e==`function`)return/^function\s+\w*\s*\(\s*\)\s*{\s+\[native code\]\s+}$/i.exec(Function.prototype.toString.call(e))!=null}function v(e,t,n){n||=[];function r(e){return t.update?t.update(e,`utf8`):t.write(e,`utf8`)}return{dispatch:function(t){return this[`_`+((t=e.replacer?e.replacer(t):t)===null?`null`:typeof t)](t)},_object:function(t){var i,o=Object.prototype.toString.call(t),s=/\[object (.*)\]/i.exec(o);if(s=(s=s?s[1]:`unknown:[`+o+`]`).toLowerCase(),0<=(o=n.indexOf(t)))return this.dispatch(`[CIRCULAR:`+o+`]`);if(n.push(t),a!==void 0&&a.isBuffer&&a.isBuffer(t))return r(`buffer:`),r(t);if(s===`object`||s===`function`||s===`asyncfunction`)return o=Object.keys(t),e.unorderedObjects&&(o=o.sort()),!1===e.respectType||_(t)||o.splice(0,0,`prototype`,`__proto__`,`constructor`),e.excludeKeys&&(o=o.filter(function(t){return!e.excludeKeys(t)})),r(`object:`+o.length+`:`),i=this,o.forEach(function(n){i.dispatch(n),r(`:`),e.excludeValues||i.dispatch(t[n]),r(`,`)});if(!this[`_`+s]){if(e.ignoreUnknown)return r(`[`+s+`]`);throw Error(`Unknown object type "`+s+`"`)}this[`_`+s](t)},_array:function(t,i){i=i===void 0?!1!==e.unorderedArrays:i;var a=this;if(r(`array:`+t.length+`:`),!i||t.length<=1)return t.forEach(function(e){return a.dispatch(e)});var o=[],i=t.map(function(t){var r=new y,i=n.slice();return v(e,r,i).dispatch(t),o=o.concat(i.slice(n.length)),r.read().toString()});return n=n.concat(o),i.sort(),this._array(i,!1)},_date:function(e){return r(`date:`+e.toJSON())},_symbol:function(e){return r(`symbol:`+e.toString())},_error:function(e){return r(`error:`+e.toString())},_boolean:function(e){return r(`bool:`+e.toString())},_string:function(e){r(`string:`+e.length+`:`),r(e.toString())},_function:function(t){r(`fn:`),_(t)?this.dispatch(`[native]`):this.dispatch(t.toString()),!1!==e.respectFunctionNames&&this.dispatch(`function-name:`+String(t.name)),e.respectFunctionProperties&&this._object(t)},_number:function(e){return r(`number:`+e.toString())},_xml:function(e){return r(`xml:`+e.toString())},_null:function(){return r(`Null`)},_undefined:function(){return r(`Undefined`)},_regexp:function(e){return r(`regex:`+e.toString())},_uint8array:function(e){return r(`uint8array:`),this.dispatch(Array.prototype.slice.call(e))},_uint8clampedarray:function(e){return r(`uint8clampedarray:`),this.dispatch(Array.prototype.slice.call(e))},_int8array:function(e){return r(`int8array:`),this.dispatch(Array.prototype.slice.call(e))},_uint16array:function(e){return r(`uint16array:`),this.dispatch(Array.prototype.slice.call(e))},_int16array:function(e){return r(`int16array:`),this.dispatch(Array.prototype.slice.call(e))},_uint32array:function(e){return r(`uint32array:`),this.dispatch(Array.prototype.slice.call(e))},_int32array:function(e){return r(`int32array:`),this.dispatch(Array.prototype.slice.call(e))},_float32array:function(e){return r(`float32array:`),this.dispatch(Array.prototype.slice.call(e))},_float64array:function(e){return r(`float64array:`),this.dispatch(Array.prototype.slice.call(e))},_arraybuffer:function(e){return r(`arraybuffer:`),this.dispatch(new Uint8Array(e))},_url:function(e){return r(`url:`+e.toString())},_map:function(t){return r(`map:`),t=Array.from(t),this._array(t,!1!==e.unorderedSets)},_set:function(t){return r(`set:`),t=Array.from(t),this._array(t,!1!==e.unorderedSets)},_file:function(e){return r(`file:`),this.dispatch([e.name,e.size,e.type,e.lastModfied])},_blob:function(){if(e.ignoreUnknown)return r(`[blob]`);throw Error(`Hashing Blob objects is currently not supported
1259
1259
  (see https://github.com/puleos/object-hash/issues/26)
1260
1260
  Use "options.replacer" or "options.ignoreUnknown"
1261
1261
  `)},_domwindow:function(){return r(`domwindow`)},_bigint:function(e){return r(`bigint:`+e.toString())},_process:function(){return r(`process`)},_timer:function(){return r(`timer`)},_pipe:function(){return r(`pipe`)},_tcp:function(){return r(`tcp`)},_udp:function(){return r(`udp`)},_tty:function(){return r(`tty`)},_statwatcher:function(){return r(`statwatcher`)},_securecontext:function(){return r(`securecontext`)},_connection:function(){return r(`connection`)},_zlib:function(){return r(`zlib`)},_context:function(){return r(`context`)},_nodescript:function(){return r(`nodescript`)},_httpparser:function(){return r(`httpparser`)},_dataview:function(){return r(`dataview`)},_signal:function(){return r(`signal`)},_fsevent:function(){return r(`fsevent`)},_tlswrap:function(){return r(`tlswrap`)}}}function y(){return{buf:``,write:function(e){this.buf+=e},end:function(e){this.buf+=e},read:function(){return this.buf}}}n.writeToStream=function(e,t,n){return n===void 0&&(n=t,t={}),v(t=g(e,t),n).dispatch(e)}}).call(this,e(`lYpoI2`),typeof self<`u`?self:typeof window<`u`?window:{},e(`buffer`).Buffer,arguments[3],arguments[4],arguments[5],arguments[6],`/fake_9a5aa49d.js`,`/`)},{buffer:3,crypto:5,lYpoI2:11}],2:[function(e,t,n){(function(e,t,r,i,a,o,s,c,l){(function(e){var t=typeof Uint8Array<`u`?Uint8Array:Array,n=43,r=47,i=48,a=97,o=65,s=45,c=95;function l(e){return e=e.charCodeAt(0),e===n||e===s?62:e===r||e===c?63:e<i?-1:e<i+10?e-i+26+26:e<o+26?e-o:e<a+26?e-a+26:void 0}e.toByteArray=function(e){var n,r;if(0<e.length%4)throw Error(`Invalid string. Length must be a multiple of 4`);var i=e.length,i=e.charAt(i-2)===`=`?2:e.charAt(i-1)===`=`?1:0,a=new t(3*e.length/4-i),o=0<i?e.length-4:e.length,s=0;function c(e){a[s++]=e}for(n=0;n<o;n+=4)c((16711680&(r=l(e.charAt(n))<<18|l(e.charAt(n+1))<<12|l(e.charAt(n+2))<<6|l(e.charAt(n+3))))>>16),c((65280&r)>>8),c(255&r);return i==2?c(255&(r=l(e.charAt(n))<<2|l(e.charAt(n+1))>>4)):i==1&&(c((r=l(e.charAt(n))<<10|l(e.charAt(n+1))<<4|l(e.charAt(n+2))>>2)>>8&255),c(255&r)),a},e.fromByteArray=function(e){var t,n,r,i,a=e.length%3,o=``;function s(e){return`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`.charAt(e)}for(t=0,r=e.length-a;t<r;t+=3)n=(e[t]<<16)+(e[t+1]<<8)+e[t+2],o+=s((i=n)>>18&63)+s(i>>12&63)+s(i>>6&63)+s(63&i);switch(a){case 1:o=(o+=s((n=e[e.length-1])>>2))+s(n<<4&63)+`==`;break;case 2:o=(o=(o+=s((n=(e[e.length-2]<<8)+e[e.length-1])>>10))+s(n>>4&63))+s(n<<2&63)+`=`}return o}})(n===void 0?this.base64js={}:n)}).call(this,e(`lYpoI2`),typeof self<`u`?self:typeof window<`u`?window:{},e(`buffer`).Buffer,arguments[3],arguments[4],arguments[5],arguments[6],`/node_modules/gulp-browserify/node_modules/base64-js/lib/b64.js`,`/node_modules/gulp-browserify/node_modules/base64-js/lib`)},{buffer:3,lYpoI2:11}],3:[function(e,t,n){(function(t,r,i,a,o,s,c,l,u){var d=e(`base64-js`),f=e(`ieee754`);function i(e,t,n){if(!(this instanceof i))return new i(e,t,n);var r,a,o,s,c=typeof e;if(t===`base64`&&c==`string`)for(e=(s=e).trim?s.trim():s.replace(/^\s+|\s+$/g,``);e.length%4!=0;)e+=`=`;if(c==`number`)r=A(e);else if(c==`string`)r=i.byteLength(e,t);else{if(c!=`object`)throw Error(`First argument needs to be a number, array or string.`);r=A(e.length)}if(i._useTypedArrays?a=i._augment(new Uint8Array(r)):((a=this).length=r,a._isBuffer=!0),i._useTypedArrays&&typeof e.byteLength==`number`)a._set(e);else if(j(s=e)||i.isBuffer(s)||s&&typeof s==`object`&&typeof s.length==`number`)for(o=0;o<r;o++)i.isBuffer(e)?a[o]=e.readUInt8(o):a[o]=e[o];else if(c==`string`)a.write(e,0,t);else if(c==`number`&&!i._useTypedArrays&&!n)for(o=0;o<r;o++)a[o]=0;return a}function p(e,t,n,r){return i._charsWritten=F(function(e){for(var t=[],n=0;n<e.length;n++)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function m(e,t,n,r){return i._charsWritten=F(function(e){for(var t,n,r=[],i=0;i<e.length;i++)n=e.charCodeAt(i),t=n>>8,n%=256,r.push(n),r.push(t);return r}(t),e,n,r)}function h(e,t,n){var r=``;n=Math.min(e.length,n);for(var i=t;i<n;i++)r+=String.fromCharCode(e[i]);return r}function g(e,t,n,r){r||(R(typeof n==`boolean`,`missing or invalid endian`),R(t!=null,`missing offset`),R(t+1<e.length,`Trying to read beyond buffer length`));var i,r=e.length;if(!(r<=t))return n?(i=e[t],t+1<r&&(i|=e[t+1]<<8)):(i=e[t]<<8,t+1<r&&(i|=e[t+1])),i}function _(e,t,n,r){r||(R(typeof n==`boolean`,`missing or invalid endian`),R(t!=null,`missing offset`),R(t+3<e.length,`Trying to read beyond buffer length`));var i,r=e.length;if(!(r<=t))return n?(t+2<r&&(i=e[t+2]<<16),t+1<r&&(i|=e[t+1]<<8),i|=e[t],t+3<r&&(i+=e[t+3]<<24>>>0)):(t+1<r&&(i=e[t+1]<<16),t+2<r&&(i|=e[t+2]<<8),t+3<r&&(i|=e[t+3]),i+=e[t]<<24>>>0),i}function v(e,t,n,r){if(r||(R(typeof n==`boolean`,`missing or invalid endian`),R(t!=null,`missing offset`),R(t+1<e.length,`Trying to read beyond buffer length`)),!(e.length<=t))return r=g(e,t,n,!0),32768&r?-1*(65535-r+1):r}function y(e,t,n,r){if(r||(R(typeof n==`boolean`,`missing or invalid endian`),R(t!=null,`missing offset`),R(t+3<e.length,`Trying to read beyond buffer length`)),!(e.length<=t))return r=_(e,t,n,!0),2147483648&r?-1*(4294967295-r+1):r}function b(e,t,n,r){return r||(R(typeof n==`boolean`,`missing or invalid endian`),R(t+3<e.length,`Trying to read beyond buffer length`)),f.read(e,t,n,23,4)}function x(e,t,n,r){return r||(R(typeof n==`boolean`,`missing or invalid endian`),R(t+7<e.length,`Trying to read beyond buffer length`)),f.read(e,t,n,52,8)}function S(e,t,n,r,i){if(i||(R(t!=null,`missing value`),R(typeof r==`boolean`,`missing or invalid endian`),R(n!=null,`missing offset`),R(n+1<e.length,`trying to write beyond buffer length`),L(t,65535)),i=e.length,!(i<=n))for(var a=0,o=Math.min(i-n,2);a<o;a++)e[n+a]=(t&255<<8*(r?a:1-a))>>>8*(r?a:1-a)}function C(e,t,n,r,i){if(i||(R(t!=null,`missing value`),R(typeof r==`boolean`,`missing or invalid endian`),R(n!=null,`missing offset`),R(n+3<e.length,`trying to write beyond buffer length`),L(t,4294967295)),i=e.length,!(i<=n))for(var a=0,o=Math.min(i-n,4);a<o;a++)e[n+a]=t>>>8*(r?a:3-a)&255}function w(e,t,n,r,i){i||(R(t!=null,`missing value`),R(typeof r==`boolean`,`missing or invalid endian`),R(n!=null,`missing offset`),R(n+1<e.length,`Trying to write beyond buffer length`),ee(t,32767,-32768)),e.length<=n||S(e,0<=t?t:65535+t+1,n,r,i)}function T(e,t,n,r,i){i||(R(t!=null,`missing value`),R(typeof r==`boolean`,`missing or invalid endian`),R(n!=null,`missing offset`),R(n+3<e.length,`Trying to write beyond buffer length`),ee(t,2147483647,-2147483648)),e.length<=n||C(e,0<=t?t:4294967295+t+1,n,r,i)}function E(e,t,n,r,i){i||(R(t!=null,`missing value`),R(typeof r==`boolean`,`missing or invalid endian`),R(n!=null,`missing offset`),R(n+3<e.length,`Trying to write beyond buffer length`),te(t,34028234663852886e22,-34028234663852886e22)),e.length<=n||f.write(e,t,n,r,23,4)}function D(e,t,n,r,i){i||(R(t!=null,`missing value`),R(typeof r==`boolean`,`missing or invalid endian`),R(n!=null,`missing offset`),R(n+7<e.length,`Trying to write beyond buffer length`),te(t,17976931348623157e292,-17976931348623157e292)),e.length<=n||f.write(e,t,n,r,52,8)}n.Buffer=i,n.SlowBuffer=i,n.INSPECT_MAX_BYTES=50,i.poolSize=8192,i._useTypedArrays=function(){try{var e=new ArrayBuffer(0),t=new Uint8Array(e);return t.foo=function(){return 42},t.foo()===42&&typeof t.subarray==`function`}catch{return!1}}(),i.isEncoding=function(e){switch(String(e).toLowerCase()){case`hex`:case`utf8`:case`utf-8`:case`ascii`:case`binary`:case`base64`:case`raw`:case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return!0;default:return!1}},i.isBuffer=function(e){return!(e==null||!e._isBuffer)},i.byteLength=function(e,t){var n;switch(e+=``,t||`utf8`){case`hex`:n=e.length/2;break;case`utf8`:case`utf-8`:n=N(e).length;break;case`ascii`:case`binary`:case`raw`:n=e.length;break;case`base64`:n=P(e).length;break;case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:n=2*e.length;break;default:throw Error(`Unknown encoding`)}return n},i.concat=function(e,t){if(R(j(e),`Usage: Buffer.concat(list, [totalLength])
1262
1262
  list should be an Array.`),e.length===0)return new i(0);if(e.length===1)return e[0];if(typeof t!=`number`)for(a=t=0;a<e.length;a++)t+=e[a].length;for(var n=new i(t),r=0,a=0;a<e.length;a++){var o=e[a];o.copy(n,r),r+=o.length}return n},i.prototype.write=function(e,t,n,r){isFinite(t)?isFinite(n)||(r=n,n=void 0):(l=r,r=t,t=n,n=l),t=Number(t)||0;var a,o,s,c,l=this.length-t;switch((!n||l<(n=Number(n)))&&(n=l),r=String(r||`utf8`).toLowerCase()){case`hex`:a=function(e,t,n,r){n=Number(n)||0;var a=e.length-n;(!r||a<(r=Number(r)))&&(r=a),R((a=t.length)%2==0,`Invalid hex string`),a/2<r&&(r=a/2);for(var o=0;o<r;o++){var s=parseInt(t.substr(2*o,2),16);R(!isNaN(s),`Invalid hex string`),e[n+o]=s}return i._charsWritten=2*o,o}(this,e,t,n);break;case`utf8`:case`utf-8`:o=this,s=t,c=n,a=i._charsWritten=F(N(e),o,s,c);break;case`ascii`:case`binary`:a=p(this,e,t,n);break;case`base64`:o=this,s=t,c=n,a=i._charsWritten=F(P(e),o,s,c);break;case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:a=m(this,e,t,n);break;default:throw Error(`Unknown encoding`)}return a},i.prototype.toString=function(e,t,n){var r,i,a,o,s=this;if(e=String(e||`utf8`).toLowerCase(),t=Number(t)||0,(n=n===void 0?s.length:Number(n))===t)return``;switch(e){case`hex`:r=function(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||r<n)&&(n=r);for(var i=``,a=t;a<n;a++)i+=M(e[a]);return i}(s,t,n);break;case`utf8`:case`utf-8`:r=function(e,t,n){var r=``,i=``;n=Math.min(e.length,n);for(var a=t;a<n;a++)e[a]<=127?(r+=I(i)+String.fromCharCode(e[a]),i=``):i+=`%`+e[a].toString(16);return r+I(i)}(s,t,n);break;case`ascii`:case`binary`:r=h(s,t,n);break;case`base64`:i=s,o=n,r=(a=t)===0&&o===i.length?d.fromByteArray(i):d.fromByteArray(i.slice(a,o));break;case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:r=function(e,t,n){for(var r=e.slice(t,n),i=``,a=0;a<r.length;a+=2)i+=String.fromCharCode(r[a]+256*r[a+1]);return i}(s,t,n);break;default:throw Error(`Unknown encoding`)}return r},i.prototype.toJSON=function(){return{type:`Buffer`,data:Array.prototype.slice.call(this._arr||this,0)}},i.prototype.copy=function(e,t,n,r){if(t||=0,(r=r||r===0?r:this.length)!==(n||=0)&&e.length!==0&&this.length!==0){R(n<=r,`sourceEnd < sourceStart`),R(0<=t&&t<e.length,`targetStart out of bounds`),R(0<=n&&n<this.length,`sourceStart out of bounds`),R(0<=r&&r<=this.length,`sourceEnd out of bounds`),r>this.length&&(r=this.length);var a=(r=e.length-t<r-n?e.length-t+n:r)-n;if(a<100||!i._useTypedArrays)for(var o=0;o<a;o++)e[o+t]=this[o+n];else e._set(this.subarray(n,n+a),t)}},i.prototype.slice=function(e,t){var n=this.length;if(e=k(e,n,0),t=k(t,n,n),i._useTypedArrays)return i._augment(this.subarray(e,t));for(var r=t-e,a=new i(r,void 0,!0),o=0;o<r;o++)a[o]=this[o+e];return a},i.prototype.get=function(e){return console.log(`.get() is deprecated. Access using array indexes instead.`),this.readUInt8(e)},i.prototype.set=function(e,t){return console.log(`.set() is deprecated. Access using array indexes instead.`),this.writeUInt8(e,t)},i.prototype.readUInt8=function(e,t){if(t||(R(e!=null,`missing offset`),R(e<this.length,`Trying to read beyond buffer length`)),!(e>=this.length))return this[e]},i.prototype.readUInt16LE=function(e,t){return g(this,e,!0,t)},i.prototype.readUInt16BE=function(e,t){return g(this,e,!1,t)},i.prototype.readUInt32LE=function(e,t){return _(this,e,!0,t)},i.prototype.readUInt32BE=function(e,t){return _(this,e,!1,t)},i.prototype.readInt8=function(e,t){if(t||(R(e!=null,`missing offset`),R(e<this.length,`Trying to read beyond buffer length`)),!(e>=this.length))return 128&this[e]?-1*(255-this[e]+1):this[e]},i.prototype.readInt16LE=function(e,t){return v(this,e,!0,t)},i.prototype.readInt16BE=function(e,t){return v(this,e,!1,t)},i.prototype.readInt32LE=function(e,t){return y(this,e,!0,t)},i.prototype.readInt32BE=function(e,t){return y(this,e,!1,t)},i.prototype.readFloatLE=function(e,t){return b(this,e,!0,t)},i.prototype.readFloatBE=function(e,t){return b(this,e,!1,t)},i.prototype.readDoubleLE=function(e,t){return x(this,e,!0,t)},i.prototype.readDoubleBE=function(e,t){return x(this,e,!1,t)},i.prototype.writeUInt8=function(e,t,n){n||(R(e!=null,`missing value`),R(t!=null,`missing offset`),R(t<this.length,`trying to write beyond buffer length`),L(e,255)),t>=this.length||(this[t]=e)},i.prototype.writeUInt16LE=function(e,t,n){S(this,e,t,!0,n)},i.prototype.writeUInt16BE=function(e,t,n){S(this,e,t,!1,n)},i.prototype.writeUInt32LE=function(e,t,n){C(this,e,t,!0,n)},i.prototype.writeUInt32BE=function(e,t,n){C(this,e,t,!1,n)},i.prototype.writeInt8=function(e,t,n){n||(R(e!=null,`missing value`),R(t!=null,`missing offset`),R(t<this.length,`Trying to write beyond buffer length`),ee(e,127,-128)),t>=this.length||(0<=e?this.writeUInt8(e,t,n):this.writeUInt8(255+e+1,t,n))},i.prototype.writeInt16LE=function(e,t,n){w(this,e,t,!0,n)},i.prototype.writeInt16BE=function(e,t,n){w(this,e,t,!1,n)},i.prototype.writeInt32LE=function(e,t,n){T(this,e,t,!0,n)},i.prototype.writeInt32BE=function(e,t,n){T(this,e,t,!1,n)},i.prototype.writeFloatLE=function(e,t,n){E(this,e,t,!0,n)},i.prototype.writeFloatBE=function(e,t,n){E(this,e,t,!1,n)},i.prototype.writeDoubleLE=function(e,t,n){D(this,e,t,!0,n)},i.prototype.writeDoubleBE=function(e,t,n){D(this,e,t,!1,n)},i.prototype.fill=function(e,t,n){if(t||=0,n||=this.length,R(typeof(e=typeof(e||=0)==`string`?e.charCodeAt(0):e)==`number`&&!isNaN(e),`value is not a number`),R(t<=n,`end < start`),n!==t&&this.length!==0){R(0<=t&&t<this.length,`start out of bounds`),R(0<=n&&n<=this.length,`end out of bounds`);for(var r=t;r<n;r++)this[r]=e}},i.prototype.inspect=function(){for(var e=[],t=this.length,r=0;r<t;r++)if(e[r]=M(this[r]),r===n.INSPECT_MAX_BYTES){e[r+1]=`...`;break}return`<Buffer `+e.join(` `)+`>`},i.prototype.toArrayBuffer=function(){if(typeof Uint8Array>`u`)throw Error(`Buffer.toArrayBuffer not supported in this browser`);if(i._useTypedArrays)return new i(this).buffer;for(var e=new Uint8Array(this.length),t=0,n=e.length;t<n;t+=1)e[t]=this[t];return e.buffer};var O=i.prototype;function k(e,t,n){return typeof e==`number`?t<=(e=~~e)?t:0<=e||0<=(e+=t)?e:0:n}function A(e){return(e=~~Math.ceil(+e))<0?0:e}function j(e){return(Array.isArray||function(e){return Object.prototype.toString.call(e)===`[object Array]`})(e)}function M(e){return e<16?`0`+e.toString(16):e.toString(16)}function N(e){for(var t=[],n=0;n<e.length;n++){var r=e.charCodeAt(n);if(r<=127)t.push(e.charCodeAt(n));else for(var i=n,a=(55296<=r&&r<=57343&&n++,encodeURIComponent(e.slice(i,n+1)).substr(1).split(`%`)),o=0;o<a.length;o++)t.push(parseInt(a[o],16))}return t}function P(e){return d.toByteArray(e)}function F(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);i++)t[i+n]=e[i];return i}function I(e){try{return decodeURIComponent(e)}catch{return`�`}}function L(e,t){R(typeof e==`number`,`cannot write a non-number as a number`),R(0<=e,`specified a negative value for writing an unsigned value`),R(e<=t,`value is larger than maximum value for type`),R(Math.floor(e)===e,`value has a fractional component`)}function ee(e,t,n){R(typeof e==`number`,`cannot write a non-number as a number`),R(e<=t,`value larger than maximum allowed value`),R(n<=e,`value smaller than minimum allowed value`),R(Math.floor(e)===e,`value has a fractional component`)}function te(e,t,n){R(typeof e==`number`,`cannot write a non-number as a number`),R(e<=t,`value larger than maximum allowed value`),R(n<=e,`value smaller than minimum allowed value`)}function R(e,t){if(!e)throw Error(t||`Failed assertion`)}i._augment=function(e){return e._isBuffer=!0,e._get=e.get,e._set=e.set,e.get=O.get,e.set=O.set,e.write=O.write,e.toString=O.toString,e.toLocaleString=O.toString,e.toJSON=O.toJSON,e.copy=O.copy,e.slice=O.slice,e.readUInt8=O.readUInt8,e.readUInt16LE=O.readUInt16LE,e.readUInt16BE=O.readUInt16BE,e.readUInt32LE=O.readUInt32LE,e.readUInt32BE=O.readUInt32BE,e.readInt8=O.readInt8,e.readInt16LE=O.readInt16LE,e.readInt16BE=O.readInt16BE,e.readInt32LE=O.readInt32LE,e.readInt32BE=O.readInt32BE,e.readFloatLE=O.readFloatLE,e.readFloatBE=O.readFloatBE,e.readDoubleLE=O.readDoubleLE,e.readDoubleBE=O.readDoubleBE,e.writeUInt8=O.writeUInt8,e.writeUInt16LE=O.writeUInt16LE,e.writeUInt16BE=O.writeUInt16BE,e.writeUInt32LE=O.writeUInt32LE,e.writeUInt32BE=O.writeUInt32BE,e.writeInt8=O.writeInt8,e.writeInt16LE=O.writeInt16LE,e.writeInt16BE=O.writeInt16BE,e.writeInt32LE=O.writeInt32LE,e.writeInt32BE=O.writeInt32BE,e.writeFloatLE=O.writeFloatLE,e.writeFloatBE=O.writeFloatBE,e.writeDoubleLE=O.writeDoubleLE,e.writeDoubleBE=O.writeDoubleBE,e.fill=O.fill,e.inspect=O.inspect,e.toArrayBuffer=O.toArrayBuffer,e}}).call(this,e(`lYpoI2`),typeof self<`u`?self:typeof window<`u`?window:{},e(`buffer`).Buffer,arguments[3],arguments[4],arguments[5],arguments[6],`/node_modules/gulp-browserify/node_modules/buffer/index.js`,`/node_modules/gulp-browserify/node_modules/buffer`)},{"base64-js":2,buffer:3,ieee754:10,lYpoI2:11}],4:[function(e,t,n){(function(n,r,i,a,o,s,c,l,u){var i=e(`buffer`).Buffer,d=4,f=new i(d);f.fill(0),t.exports={hash:function(e,t,n,r){for(var a=t(function(e,t){e.length%d!=0&&(n=e.length+(d-e.length%d),e=i.concat([e,f],n));for(var n,r=[],a=t?e.readInt32BE:e.readInt32LE,o=0;o<e.length;o+=d)r.push(a.call(e,o));return r}(e=i.isBuffer(e)?e:new i(e),r),8*e.length),t=r,o=new i(n),s=t?o.writeInt32BE:o.writeInt32LE,c=0;c<a.length;c++)s.call(o,a[c],4*c,!0);return o}}}).call(this,e(`lYpoI2`),typeof self<`u`?self:typeof window<`u`?window:{},e(`buffer`).Buffer,arguments[3],arguments[4],arguments[5],arguments[6],`/node_modules/gulp-browserify/node_modules/crypto-browserify/helpers.js`,`/node_modules/gulp-browserify/node_modules/crypto-browserify`)},{buffer:3,lYpoI2:11}],5:[function(e,t,n){(function(t,r,i,a,o,s,c,l,u){var i=e(`buffer`).Buffer,d=e(`./sha`),f=e(`./sha256`),p=e(`./rng`),m={sha1:d,sha256:f,md5:e(`./md5`)},h=64,g=new i(h);function _(e,t){var n=m[e||=`sha1`],r=[];return n||v(`algorithm:`,e,`is not yet supported`),{update:function(e){return i.isBuffer(e)||(e=new i(e)),r.push(e),e.length,this},digest:function(e){var a=i.concat(r),a=t?function(e,t,n){i.isBuffer(t)||(t=new i(t)),i.isBuffer(n)||(n=new i(n)),t.length>h?t=e(t):t.length<h&&(t=i.concat([t,g],h));for(var r=new i(h),a=new i(h),o=0;o<h;o++)r[o]=54^t[o],a[o]=92^t[o];return n=e(i.concat([r,n])),e(i.concat([a,n]))}(n,t,a):n(a);return r=null,e?a.toString(e):a}}}function v(){var e=[].slice.call(arguments).join(` `);throw Error([e,`we accept pull requests`,`http://github.com/dominictarr/crypto-browserify`].join(`
1263
- `))}g.fill(0),n.createHash=function(e){return _(e)},n.createHmac=_,n.randomBytes=function(e,t){if(!t||!t.call)return new i(p(e));try{t.call(this,void 0,new i(p(e)))}catch(e){t(e)}};var y,b=[`createCredentials`,`createCipher`,`createCipheriv`,`createDecipher`,`createDecipheriv`,`createSign`,`createVerify`,`createDiffieHellman`,`pbkdf2`],x=function(e){n[e]=function(){v(`sorry,`,e,`is not implemented yet`)}};for(y in b)x(b[y],y)}).call(this,e(`lYpoI2`),typeof self<`u`?self:typeof window<`u`?window:{},e(`buffer`).Buffer,arguments[3],arguments[4],arguments[5],arguments[6],`/node_modules/gulp-browserify/node_modules/crypto-browserify/index.js`,`/node_modules/gulp-browserify/node_modules/crypto-browserify`)},{"./md5":6,"./rng":7,"./sha":8,"./sha256":9,buffer:3,lYpoI2:11}],6:[function(e,t,n){(function(n,r,i,a,o,s,c,l,u){var d=e(`./helpers`);function f(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;for(var n=1732584193,r=-271733879,i=-1732584194,a=271733878,o=0;o<e.length;o+=16){var s=n,c=r,l=i,u=a,n=m(n,r,i,a,e[o+0],7,-680876936),a=m(a,n,r,i,e[o+1],12,-389564586),i=m(i,a,n,r,e[o+2],17,606105819),r=m(r,i,a,n,e[o+3],22,-1044525330);n=m(n,r,i,a,e[o+4],7,-176418897),a=m(a,n,r,i,e[o+5],12,1200080426),i=m(i,a,n,r,e[o+6],17,-1473231341),r=m(r,i,a,n,e[o+7],22,-45705983),n=m(n,r,i,a,e[o+8],7,1770035416),a=m(a,n,r,i,e[o+9],12,-1958414417),i=m(i,a,n,r,e[o+10],17,-42063),r=m(r,i,a,n,e[o+11],22,-1990404162),n=m(n,r,i,a,e[o+12],7,1804603682),a=m(a,n,r,i,e[o+13],12,-40341101),i=m(i,a,n,r,e[o+14],17,-1502002290),n=h(n,r=m(r,i,a,n,e[o+15],22,1236535329),i,a,e[o+1],5,-165796510),a=h(a,n,r,i,e[o+6],9,-1069501632),i=h(i,a,n,r,e[o+11],14,643717713),r=h(r,i,a,n,e[o+0],20,-373897302),n=h(n,r,i,a,e[o+5],5,-701558691),a=h(a,n,r,i,e[o+10],9,38016083),i=h(i,a,n,r,e[o+15],14,-660478335),r=h(r,i,a,n,e[o+4],20,-405537848),n=h(n,r,i,a,e[o+9],5,568446438),a=h(a,n,r,i,e[o+14],9,-1019803690),i=h(i,a,n,r,e[o+3],14,-187363961),r=h(r,i,a,n,e[o+8],20,1163531501),n=h(n,r,i,a,e[o+13],5,-1444681467),a=h(a,n,r,i,e[o+2],9,-51403784),i=h(i,a,n,r,e[o+7],14,1735328473),n=g(n,r=h(r,i,a,n,e[o+12],20,-1926607734),i,a,e[o+5],4,-378558),a=g(a,n,r,i,e[o+8],11,-2022574463),i=g(i,a,n,r,e[o+11],16,1839030562),r=g(r,i,a,n,e[o+14],23,-35309556),n=g(n,r,i,a,e[o+1],4,-1530992060),a=g(a,n,r,i,e[o+4],11,1272893353),i=g(i,a,n,r,e[o+7],16,-155497632),r=g(r,i,a,n,e[o+10],23,-1094730640),n=g(n,r,i,a,e[o+13],4,681279174),a=g(a,n,r,i,e[o+0],11,-358537222),i=g(i,a,n,r,e[o+3],16,-722521979),r=g(r,i,a,n,e[o+6],23,76029189),n=g(n,r,i,a,e[o+9],4,-640364487),a=g(a,n,r,i,e[o+12],11,-421815835),i=g(i,a,n,r,e[o+15],16,530742520),n=_(n,r=g(r,i,a,n,e[o+2],23,-995338651),i,a,e[o+0],6,-198630844),a=_(a,n,r,i,e[o+7],10,1126891415),i=_(i,a,n,r,e[o+14],15,-1416354905),r=_(r,i,a,n,e[o+5],21,-57434055),n=_(n,r,i,a,e[o+12],6,1700485571),a=_(a,n,r,i,e[o+3],10,-1894986606),i=_(i,a,n,r,e[o+10],15,-1051523),r=_(r,i,a,n,e[o+1],21,-2054922799),n=_(n,r,i,a,e[o+8],6,1873313359),a=_(a,n,r,i,e[o+15],10,-30611744),i=_(i,a,n,r,e[o+6],15,-1560198380),r=_(r,i,a,n,e[o+13],21,1309151649),n=_(n,r,i,a,e[o+4],6,-145523070),a=_(a,n,r,i,e[o+11],10,-1120210379),i=_(i,a,n,r,e[o+2],15,718787259),r=_(r,i,a,n,e[o+9],21,-343485551),n=v(n,s),r=v(r,c),i=v(i,l),a=v(a,u)}return[n,r,i,a]}function p(e,t,n,r,i,a){return v((t=v(v(t,e),v(r,a)))<<i|t>>>32-i,n)}function m(e,t,n,r,i,a,o){return p(t&n|~t&r,e,t,i,a,o)}function h(e,t,n,r,i,a,o){return p(t&r|n&~r,e,t,i,a,o)}function g(e,t,n,r,i,a,o){return p(t^n^r,e,t,i,a,o)}function _(e,t,n,r,i,a,o){return p(n^(t|~r),e,t,i,a,o)}function v(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}t.exports=function(e){return d.hash(e,f,16)}}).call(this,e(`lYpoI2`),typeof self<`u`?self:typeof window<`u`?window:{},e(`buffer`).Buffer,arguments[3],arguments[4],arguments[5],arguments[6],`/node_modules/gulp-browserify/node_modules/crypto-browserify/md5.js`,`/node_modules/gulp-browserify/node_modules/crypto-browserify`)},{"./helpers":4,buffer:3,lYpoI2:11}],7:[function(e,t,n){(function(e,n,r,i,a,o,s,c,l){var u;t.exports=u||function(e){for(var t,n=Array(e),r=0;r<e;r++)!(3&r)&&(t=4294967296*Math.random()),n[r]=t>>>((3&r)<<3)&255;return n}}).call(this,e(`lYpoI2`),typeof self<`u`?self:typeof window<`u`?window:{},e(`buffer`).Buffer,arguments[3],arguments[4],arguments[5],arguments[6],`/node_modules/gulp-browserify/node_modules/crypto-browserify/rng.js`,`/node_modules/gulp-browserify/node_modules/crypto-browserify`)},{buffer:3,lYpoI2:11}],8:[function(e,t,n){(function(n,r,i,a,o,s,c,l,u){var d=e(`./helpers`);function f(e,t){e[t>>5]|=128<<24-t%32,e[15+(t+64>>9<<4)]=t;for(var n,r,i,a=Array(80),o=1732584193,s=-271733879,c=-1732584194,l=271733878,u=-1009589776,d=0;d<e.length;d+=16){for(var f=o,h=s,g=c,_=l,v=u,y=0;y<80;y++){a[y]=y<16?e[d+y]:m(a[y-3]^a[y-8]^a[y-14]^a[y-16],1);var b=p(p(m(o,5),(b=s,r=c,i=l,(n=y)<20?b&r|~b&i:!(n<40)&&n<60?b&r|b&i|r&i:b^r^i)),p(p(u,a[y]),(n=y)<20?1518500249:n<40?1859775393:n<60?-1894007588:-899497514)),u=l,l=c,c=m(s,30),s=o,o=b}o=p(o,f),s=p(s,h),c=p(c,g),l=p(l,_),u=p(u,v)}return[o,s,c,l,u]}function p(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function m(e,t){return e<<t|e>>>32-t}t.exports=function(e){return d.hash(e,f,20,!0)}}).call(this,e(`lYpoI2`),typeof self<`u`?self:typeof window<`u`?window:{},e(`buffer`).Buffer,arguments[3],arguments[4],arguments[5],arguments[6],`/node_modules/gulp-browserify/node_modules/crypto-browserify/sha.js`,`/node_modules/gulp-browserify/node_modules/crypto-browserify`)},{"./helpers":4,buffer:3,lYpoI2:11}],9:[function(e,t,n){(function(n,r,i,a,o,s,c,l,u){function d(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function f(e,t){var n,r=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],i=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],a=Array(64);e[t>>5]|=128<<24-t%32,e[15+(t+64>>9<<4)]=t;for(var o,s,c=0;c<e.length;c+=16){for(var l=i[0],u=i[1],f=i[2],p=i[3],g=i[4],_=i[5],v=i[6],y=i[7],b=0;b<64;b++)a[b]=b<16?e[b+c]:d(d(d((s=a[b-2],m(s,17)^m(s,19)^h(s,10)),a[b-7]),(s=a[b-15],m(s,7)^m(s,18)^h(s,3))),a[b-16]),n=d(d(d(d(y,m(s=g,6)^m(s,11)^m(s,25)),g&_^~g&v),r[b]),a[b]),o=d(m(o=l,2)^m(o,13)^m(o,22),l&u^l&f^u&f),y=v,v=_,_=g,g=d(p,n),p=f,f=u,u=l,l=d(n,o);i[0]=d(l,i[0]),i[1]=d(u,i[1]),i[2]=d(f,i[2]),i[3]=d(p,i[3]),i[4]=d(g,i[4]),i[5]=d(_,i[5]),i[6]=d(v,i[6]),i[7]=d(y,i[7])}return i}var p=e(`./helpers`),m=function(e,t){return e>>>t|e<<32-t},h=function(e,t){return e>>>t};t.exports=function(e){return p.hash(e,f,32,!0)}}).call(this,e(`lYpoI2`),typeof self<`u`?self:typeof window<`u`?window:{},e(`buffer`).Buffer,arguments[3],arguments[4],arguments[5],arguments[6],`/node_modules/gulp-browserify/node_modules/crypto-browserify/sha256.js`,`/node_modules/gulp-browserify/node_modules/crypto-browserify`)},{"./helpers":4,buffer:3,lYpoI2:11}],10:[function(e,t,n){(function(e,t,r,i,a,o,s,c,l){n.read=function(e,t,n,r,i){var a,o,s=8*i-r-1,c=(1<<s)-1,l=c>>1,u=-7,d=n?i-1:0,f=n?-1:1,i=e[t+d];for(d+=f,a=i&(1<<-u)-1,i>>=-u,u+=s;0<u;a=256*a+e[t+d],d+=f,u-=8);for(o=a&(1<<-u)-1,a>>=-u,u+=r;0<u;o=256*o+e[t+d],d+=f,u-=8);if(a===0)a=1-l;else{if(a===c)return o?NaN:1/0*(i?-1:1);o+=2**r,a-=l}return(i?-1:1)*o*2**(a-r)},n.write=function(e,t,n,r,i,a){var o,s,c=8*a-i-1,l=(1<<c)-1,u=l>>1,d=i===23?2**-24-2**-77:0,f=r?0:a-1,p=r?1:-1,a=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=l):(o=Math.floor(Math.log(t)/Math.LN2),t*(r=2**-o)<1&&(o--,r*=2),2<=(t+=1<=o+u?d/r:d*2**(1-u))*r&&(o++,r/=2),l<=o+u?(s=0,o=l):1<=o+u?(s=(t*r-1)*2**i,o+=u):(s=t*2**(u-1)*2**i,o=0));8<=i;e[n+f]=255&s,f+=p,s/=256,i-=8);for(o=o<<i|s,c+=i;0<c;e[n+f]=255&o,f+=p,o/=256,c-=8);e[n+f-p]|=128*a}}).call(this,e(`lYpoI2`),typeof self<`u`?self:typeof window<`u`?window:{},e(`buffer`).Buffer,arguments[3],arguments[4],arguments[5],arguments[6],`/node_modules/gulp-browserify/node_modules/ieee754/index.js`,`/node_modules/gulp-browserify/node_modules/ieee754`)},{buffer:3,lYpoI2:11}],11:[function(e,t,n){(function(e,n,r,i,a,o,s,c,l){var u,d,f;function p(){}(e=t.exports={}).nextTick=(d=typeof window<`u`&&window.setImmediate,f=typeof window<`u`&&window.postMessage&&window.addEventListener,d?function(e){return window.setImmediate(e)}:f?(u=[],window.addEventListener(`message`,function(e){var t=e.source;t!==window&&t!==null||e.data!==`process-tick`||(e.stopPropagation(),0<u.length&&u.shift()())},!0),function(e){u.push(e),window.postMessage(`process-tick`,`*`)}):function(e){setTimeout(e,0)}),e.title=`browser`,e.browser=!0,e.env={},e.argv=[],e.on=p,e.addListener=p,e.once=p,e.off=p,e.removeListener=p,e.removeAllListeners=p,e.emit=p,e.binding=function(e){throw Error(`process.binding is not supported`)},e.cwd=function(){return`/`},e.chdir=function(e){throw Error(`process.chdir is not supported`)}}).call(this,e(`lYpoI2`),typeof self<`u`?self:typeof window<`u`?window:{},e(`buffer`).Buffer,arguments[3],arguments[4],arguments[5],arguments[6],`/node_modules/gulp-browserify/node_modules/process/browser.js`,`/node_modules/gulp-browserify/node_modules/process`)},{buffer:3,lYpoI2:11}]},{},[1])(1)})})),uUe=e(lUe(),1),dUe=new Set([`data`,`_meta`,`_parsed`,`_chart`,`_ctx`]);const fUe=(e,t)=>{let[n,r]=(0,H.useState)([]);return(0,H.useEffect)(()=>{let t=e?.current;t&&r(cUe(t))},[(0,H.useMemo)(()=>t?.length?(0,uUe.default)(t,{excludeKeys:e=>dUe.has(e),unorderedObjects:!0,unorderedArrays:!1,respectType:!1}):``,[t]),e]),n},pUe=(e,t)=>{let{height:n=0,width:r=0,chartArea:i}=t??{},{top:a=0,left:o=0,bottom:s=0,right:c=0}=i??{};return{left:e?.includes(`left`)?o:void 0,right:e?.includes(`right`)?r-c:void 0,top:e?.includes(`top`)?a:void 0,bottom:e?.includes(`bottom`)?n-s:void 0,maxHeight:.5*(s-a-8),maxWidth:.9*(c-o-8),margin:4}};var mUe=e(b(),1),hUe=({items:e,legendState:t,datasets:n,legendClick:r,chartType:i})=>(0,U.jsx)(`div`,{className:J9.legendItems,children:e?.map((e,a)=>{if(n?.[e?.datasetIndex]?.hideLegend)return null;let o=t?.datasets?.[e?.datasetIndex]?.hidden;return(0,U.jsx)(aUe,{index:a,hidden:o??e?.hidden,dataset:n?.[e?.datasetIndex],handleClick:t=>r(t,e),chartType:i},`${e?.datasetIndex}-hidden-${e?.hidden}`)})}),gUe=(0,H.forwardRef)(({legendPosition:e,chartRef:t,isDragging:n,legendConfig:r},i)=>{let a=t?.current,{options:o,generatedDatasets:s,chartType:c}=r??{},l=a?.data?.datasets,{legend:u,legendClick:d}=W9({chartRef:t,options:o}),{state:f}=U9()??{},[p,m]=(0,H.useState)(u?.display??!0),h=fUe(t,s),g=pUe(e,a);return(0,U.jsxs)(`div`,{ref:i,className:(0,mUe.default)(J9.legend,!p&&J9.isHidden,n&&J9.isDragging),style:g,children:[(0,U.jsx)(`div`,{className:J9.legendToggle,children:(0,U.jsx)(po,{onClick:()=>m(!p),small:!0,round:!0,icon:p?(0,U.jsx)(GHe,{}):(0,U.jsx)(HHe,{})})}),(0,U.jsx)(hUe,{items:h,legendState:f,datasets:l,legendClick:d,chartType:c})]})}),_Ue=gUe;gUe.__docgenInfo={description:``,methods:[],displayName:`LegendPanel`,props:{chartRef:{required:!0,tsType:{name:`RefObject`,elements:[{name:`Chart`}],raw:`RefObject<Chart>`},description:``},legendConfig:{required:!0,tsType:{name:`ILegendConfig`},description:``},legendPosition:{required:!0,tsType:{name:`Position`},description:``},isDragging:{required:!0,tsType:{name:`boolean`},description:``}}};var vUe=e(b(),1),yUe=e(te(),1),bUe=e=>{let{position:t=``,onDrop:n=yUe.noop,placeholderSize:r={}}=e??{},[{isOver:i,canDrop:a},o]=Fne(()=>({accept:`legend`,drop:n,collect:e=>({isOver:e?.isOver(),canDrop:e?.canDrop()})})),s=i&&a;return(0,U.jsx)(`div`,{ref:o,className:(0,vUe.default)(J9.dropzone,s&&J9.isActive,t?.includes(`left`)&&J9.left,t?.includes(`right`)&&J9.right,t?.includes(`top`)&&J9.top,t?.includes(`bottom`)&&J9.bottom),children:(0,U.jsx)(`div`,{className:J9.dropzonePlaceholder,style:{...r,margin:4}})})},xUe=e=>{let{chartArea:t,setLegendPosition:n,isDragging:r,placeholderSize:i}=e??{},a=[re.TopLeft,re.TopRight,re.BottomLeft,re.BottomRight],{top:o,left:s,width:c,height:l}=t??{};return(0,U.jsx)(`div`,{className:J9.dropzoneContainer,style:{top:o,left:s,width:c,height:l,zIndex:r?0:-1},children:a?.map(e=>(0,U.jsx)(bUe,{position:e,onDrop:()=>n(e),placeholderSize:i},e))})},SUe=xUe;xUe.__docgenInfo={description:``,methods:[],displayName:`LegendDropZones`,props:{chartArea:{required:!1,tsType:{name:`ChartArea`},description:``},setLegendPosition:{required:!0,tsType:{name:`signature`,type:`function`,raw:`(position: Position) => void`,signature:{arguments:[{type:{name:`Position`},name:`position`}],return:{name:`void`}}},description:``},isDragging:{required:!0,tsType:{name:`boolean`},description:``},placeholderSize:{required:!1,tsType:{name:`signature`,type:`object`,raw:`{
1263
+ `))}g.fill(0),n.createHash=function(e){return _(e)},n.createHmac=_,n.randomBytes=function(e,t){if(!t||!t.call)return new i(p(e));try{t.call(this,void 0,new i(p(e)))}catch(e){t(e)}};var y,b=[`createCredentials`,`createCipher`,`createCipheriv`,`createDecipher`,`createDecipheriv`,`createSign`,`createVerify`,`createDiffieHellman`,`pbkdf2`],x=function(e){n[e]=function(){v(`sorry,`,e,`is not implemented yet`)}};for(y in b)x(b[y],y)}).call(this,e(`lYpoI2`),typeof self<`u`?self:typeof window<`u`?window:{},e(`buffer`).Buffer,arguments[3],arguments[4],arguments[5],arguments[6],`/node_modules/gulp-browserify/node_modules/crypto-browserify/index.js`,`/node_modules/gulp-browserify/node_modules/crypto-browserify`)},{"./md5":6,"./rng":7,"./sha":8,"./sha256":9,buffer:3,lYpoI2:11}],6:[function(e,t,n){(function(n,r,i,a,o,s,c,l,u){var d=e(`./helpers`);function f(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;for(var n=1732584193,r=-271733879,i=-1732584194,a=271733878,o=0;o<e.length;o+=16){var s=n,c=r,l=i,u=a,n=m(n,r,i,a,e[o+0],7,-680876936),a=m(a,n,r,i,e[o+1],12,-389564586),i=m(i,a,n,r,e[o+2],17,606105819),r=m(r,i,a,n,e[o+3],22,-1044525330);n=m(n,r,i,a,e[o+4],7,-176418897),a=m(a,n,r,i,e[o+5],12,1200080426),i=m(i,a,n,r,e[o+6],17,-1473231341),r=m(r,i,a,n,e[o+7],22,-45705983),n=m(n,r,i,a,e[o+8],7,1770035416),a=m(a,n,r,i,e[o+9],12,-1958414417),i=m(i,a,n,r,e[o+10],17,-42063),r=m(r,i,a,n,e[o+11],22,-1990404162),n=m(n,r,i,a,e[o+12],7,1804603682),a=m(a,n,r,i,e[o+13],12,-40341101),i=m(i,a,n,r,e[o+14],17,-1502002290),n=h(n,r=m(r,i,a,n,e[o+15],22,1236535329),i,a,e[o+1],5,-165796510),a=h(a,n,r,i,e[o+6],9,-1069501632),i=h(i,a,n,r,e[o+11],14,643717713),r=h(r,i,a,n,e[o+0],20,-373897302),n=h(n,r,i,a,e[o+5],5,-701558691),a=h(a,n,r,i,e[o+10],9,38016083),i=h(i,a,n,r,e[o+15],14,-660478335),r=h(r,i,a,n,e[o+4],20,-405537848),n=h(n,r,i,a,e[o+9],5,568446438),a=h(a,n,r,i,e[o+14],9,-1019803690),i=h(i,a,n,r,e[o+3],14,-187363961),r=h(r,i,a,n,e[o+8],20,1163531501),n=h(n,r,i,a,e[o+13],5,-1444681467),a=h(a,n,r,i,e[o+2],9,-51403784),i=h(i,a,n,r,e[o+7],14,1735328473),n=g(n,r=h(r,i,a,n,e[o+12],20,-1926607734),i,a,e[o+5],4,-378558),a=g(a,n,r,i,e[o+8],11,-2022574463),i=g(i,a,n,r,e[o+11],16,1839030562),r=g(r,i,a,n,e[o+14],23,-35309556),n=g(n,r,i,a,e[o+1],4,-1530992060),a=g(a,n,r,i,e[o+4],11,1272893353),i=g(i,a,n,r,e[o+7],16,-155497632),r=g(r,i,a,n,e[o+10],23,-1094730640),n=g(n,r,i,a,e[o+13],4,681279174),a=g(a,n,r,i,e[o+0],11,-358537222),i=g(i,a,n,r,e[o+3],16,-722521979),r=g(r,i,a,n,e[o+6],23,76029189),n=g(n,r,i,a,e[o+9],4,-640364487),a=g(a,n,r,i,e[o+12],11,-421815835),i=g(i,a,n,r,e[o+15],16,530742520),n=_(n,r=g(r,i,a,n,e[o+2],23,-995338651),i,a,e[o+0],6,-198630844),a=_(a,n,r,i,e[o+7],10,1126891415),i=_(i,a,n,r,e[o+14],15,-1416354905),r=_(r,i,a,n,e[o+5],21,-57434055),n=_(n,r,i,a,e[o+12],6,1700485571),a=_(a,n,r,i,e[o+3],10,-1894986606),i=_(i,a,n,r,e[o+10],15,-1051523),r=_(r,i,a,n,e[o+1],21,-2054922799),n=_(n,r,i,a,e[o+8],6,1873313359),a=_(a,n,r,i,e[o+15],10,-30611744),i=_(i,a,n,r,e[o+6],15,-1560198380),r=_(r,i,a,n,e[o+13],21,1309151649),n=_(n,r,i,a,e[o+4],6,-145523070),a=_(a,n,r,i,e[o+11],10,-1120210379),i=_(i,a,n,r,e[o+2],15,718787259),r=_(r,i,a,n,e[o+9],21,-343485551),n=v(n,s),r=v(r,c),i=v(i,l),a=v(a,u)}return[n,r,i,a]}function p(e,t,n,r,i,a){return v((t=v(v(t,e),v(r,a)))<<i|t>>>32-i,n)}function m(e,t,n,r,i,a,o){return p(t&n|~t&r,e,t,i,a,o)}function h(e,t,n,r,i,a,o){return p(t&r|n&~r,e,t,i,a,o)}function g(e,t,n,r,i,a,o){return p(t^n^r,e,t,i,a,o)}function _(e,t,n,r,i,a,o){return p(n^(t|~r),e,t,i,a,o)}function v(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}t.exports=function(e){return d.hash(e,f,16)}}).call(this,e(`lYpoI2`),typeof self<`u`?self:typeof window<`u`?window:{},e(`buffer`).Buffer,arguments[3],arguments[4],arguments[5],arguments[6],`/node_modules/gulp-browserify/node_modules/crypto-browserify/md5.js`,`/node_modules/gulp-browserify/node_modules/crypto-browserify`)},{"./helpers":4,buffer:3,lYpoI2:11}],7:[function(e,t,n){(function(e,n,r,i,a,o,s,c,l){var u;t.exports=u||function(e){for(var t,n=Array(e),r=0;r<e;r++)!(3&r)&&(t=4294967296*Math.random()),n[r]=t>>>((3&r)<<3)&255;return n}}).call(this,e(`lYpoI2`),typeof self<`u`?self:typeof window<`u`?window:{},e(`buffer`).Buffer,arguments[3],arguments[4],arguments[5],arguments[6],`/node_modules/gulp-browserify/node_modules/crypto-browserify/rng.js`,`/node_modules/gulp-browserify/node_modules/crypto-browserify`)},{buffer:3,lYpoI2:11}],8:[function(e,t,n){(function(n,r,i,a,o,s,c,l,u){var d=e(`./helpers`);function f(e,t){e[t>>5]|=128<<24-t%32,e[15+(t+64>>9<<4)]=t;for(var n,r,i,a=Array(80),o=1732584193,s=-271733879,c=-1732584194,l=271733878,u=-1009589776,d=0;d<e.length;d+=16){for(var f=o,h=s,g=c,_=l,v=u,y=0;y<80;y++){a[y]=y<16?e[d+y]:m(a[y-3]^a[y-8]^a[y-14]^a[y-16],1);var b=p(p(m(o,5),(b=s,r=c,i=l,(n=y)<20?b&r|~b&i:!(n<40)&&n<60?b&r|b&i|r&i:b^r^i)),p(p(u,a[y]),(n=y)<20?1518500249:n<40?1859775393:n<60?-1894007588:-899497514)),u=l,l=c,c=m(s,30),s=o,o=b}o=p(o,f),s=p(s,h),c=p(c,g),l=p(l,_),u=p(u,v)}return[o,s,c,l,u]}function p(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function m(e,t){return e<<t|e>>>32-t}t.exports=function(e){return d.hash(e,f,20,!0)}}).call(this,e(`lYpoI2`),typeof self<`u`?self:typeof window<`u`?window:{},e(`buffer`).Buffer,arguments[3],arguments[4],arguments[5],arguments[6],`/node_modules/gulp-browserify/node_modules/crypto-browserify/sha.js`,`/node_modules/gulp-browserify/node_modules/crypto-browserify`)},{"./helpers":4,buffer:3,lYpoI2:11}],9:[function(e,t,n){(function(n,r,i,a,o,s,c,l,u){function d(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function f(e,t){var n,r=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],i=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],a=Array(64);e[t>>5]|=128<<24-t%32,e[15+(t+64>>9<<4)]=t;for(var o,s,c=0;c<e.length;c+=16){for(var l=i[0],u=i[1],f=i[2],p=i[3],g=i[4],_=i[5],v=i[6],y=i[7],b=0;b<64;b++)a[b]=b<16?e[b+c]:d(d(d((s=a[b-2],m(s,17)^m(s,19)^h(s,10)),a[b-7]),(s=a[b-15],m(s,7)^m(s,18)^h(s,3))),a[b-16]),n=d(d(d(d(y,m(s=g,6)^m(s,11)^m(s,25)),g&_^~g&v),r[b]),a[b]),o=d(m(o=l,2)^m(o,13)^m(o,22),l&u^l&f^u&f),y=v,v=_,_=g,g=d(p,n),p=f,f=u,u=l,l=d(n,o);i[0]=d(l,i[0]),i[1]=d(u,i[1]),i[2]=d(f,i[2]),i[3]=d(p,i[3]),i[4]=d(g,i[4]),i[5]=d(_,i[5]),i[6]=d(v,i[6]),i[7]=d(y,i[7])}return i}var p=e(`./helpers`),m=function(e,t){return e>>>t|e<<32-t},h=function(e,t){return e>>>t};t.exports=function(e){return p.hash(e,f,32,!0)}}).call(this,e(`lYpoI2`),typeof self<`u`?self:typeof window<`u`?window:{},e(`buffer`).Buffer,arguments[3],arguments[4],arguments[5],arguments[6],`/node_modules/gulp-browserify/node_modules/crypto-browserify/sha256.js`,`/node_modules/gulp-browserify/node_modules/crypto-browserify`)},{"./helpers":4,buffer:3,lYpoI2:11}],10:[function(e,t,n){(function(e,t,r,i,a,o,s,c,l){n.read=function(e,t,n,r,i){var a,o,s=8*i-r-1,c=(1<<s)-1,l=c>>1,u=-7,d=n?i-1:0,f=n?-1:1,i=e[t+d];for(d+=f,a=i&(1<<-u)-1,i>>=-u,u+=s;0<u;a=256*a+e[t+d],d+=f,u-=8);for(o=a&(1<<-u)-1,a>>=-u,u+=r;0<u;o=256*o+e[t+d],d+=f,u-=8);if(a===0)a=1-l;else{if(a===c)return o?NaN:1/0*(i?-1:1);o+=2**r,a-=l}return(i?-1:1)*o*2**(a-r)},n.write=function(e,t,n,r,i,a){var o,s,c=8*a-i-1,l=(1<<c)-1,u=l>>1,d=i===23?2**-24-2**-77:0,f=r?0:a-1,p=r?1:-1,a=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=l):(o=Math.floor(Math.log(t)/Math.LN2),t*(r=2**-o)<1&&(o--,r*=2),2<=(t+=1<=o+u?d/r:d*2**(1-u))*r&&(o++,r/=2),l<=o+u?(s=0,o=l):1<=o+u?(s=(t*r-1)*2**i,o+=u):(s=t*2**(u-1)*2**i,o=0));8<=i;e[n+f]=255&s,f+=p,s/=256,i-=8);for(o=o<<i|s,c+=i;0<c;e[n+f]=255&o,f+=p,o/=256,c-=8);e[n+f-p]|=128*a}}).call(this,e(`lYpoI2`),typeof self<`u`?self:typeof window<`u`?window:{},e(`buffer`).Buffer,arguments[3],arguments[4],arguments[5],arguments[6],`/node_modules/gulp-browserify/node_modules/ieee754/index.js`,`/node_modules/gulp-browserify/node_modules/ieee754`)},{buffer:3,lYpoI2:11}],11:[function(e,t,n){(function(e,n,r,i,a,o,s,c,l){var u,d,f;function p(){}(e=t.exports={}).nextTick=(d=typeof window<`u`&&window.setImmediate,f=typeof window<`u`&&window.postMessage&&window.addEventListener,d?function(e){return window.setImmediate(e)}:f?(u=[],window.addEventListener(`message`,function(e){var t=e.source;t!==window&&t!==null||e.data!==`process-tick`||(e.stopPropagation(),0<u.length&&u.shift()())},!0),function(e){u.push(e),window.postMessage(`process-tick`,`*`)}):function(e){setTimeout(e,0)}),e.title=`browser`,e.browser=!0,e.env={},e.argv=[],e.on=p,e.addListener=p,e.once=p,e.off=p,e.removeListener=p,e.removeAllListeners=p,e.emit=p,e.binding=function(e){throw Error(`process.binding is not supported`)},e.cwd=function(){return`/`},e.chdir=function(e){throw Error(`process.chdir is not supported`)}}).call(this,e(`lYpoI2`),typeof self<`u`?self:typeof window<`u`?window:{},e(`buffer`).Buffer,arguments[3],arguments[4],arguments[5],arguments[6],`/node_modules/gulp-browserify/node_modules/process/browser.js`,`/node_modules/gulp-browserify/node_modules/process`)},{buffer:3,lYpoI2:11}]},{},[1])(1)})})),uUe=e(lUe(),1),dUe=new Set([`data`,`_meta`,`_parsed`,`_chart`,`_ctx`]);const fUe=(e,t)=>{let[n,r]=(0,H.useState)([]);return(0,H.useEffect)(()=>{let t=e?.current;t&&r(cUe(t))},[(0,H.useMemo)(()=>t?.length?(0,uUe.default)(t,{excludeKeys:e=>dUe.has(e),unorderedObjects:!0,unorderedArrays:!1,respectType:!1}):``,[t]),e]),n},pUe=(e,t)=>{let{height:n=0,width:r=0,chartArea:i}=t??{},{top:a=0,left:o=0,bottom:s=0,right:c=0}=i??{};return{left:e?.includes(`left`)?o:void 0,right:e?.includes(`right`)?r-c:void 0,top:e?.includes(`top`)?a:void 0,bottom:e?.includes(`bottom`)?n-s:void 0,maxHeight:.5*(s-a-8),maxWidth:.9*(c-o-8),margin:4}};var mUe=e(l(),1),hUe=({items:e,legendState:t,datasets:n,legendClick:r,chartType:i})=>(0,U.jsx)(`div`,{className:J9.legendItems,children:e?.map((e,a)=>{if(n?.[e?.datasetIndex]?.hideLegend)return null;let o=t?.datasets?.[e?.datasetIndex]?.hidden;return(0,U.jsx)(aUe,{index:a,hidden:o??e?.hidden,dataset:n?.[e?.datasetIndex],handleClick:t=>r(t,e),chartType:i},`${e?.datasetIndex}-hidden-${e?.hidden}`)})}),gUe=(0,H.forwardRef)(({legendPosition:e,chartRef:t,isDragging:n,legendConfig:r},i)=>{let a=t?.current,{options:o,generatedDatasets:s,chartType:c}=r??{},l=a?.data?.datasets,{legend:u,legendClick:d}=W9({chartRef:t,options:o}),{state:f}=U9()??{},[p,m]=(0,H.useState)(u?.display??!0),h=fUe(t,s),g=pUe(e,a);return(0,U.jsxs)(`div`,{ref:i,className:(0,mUe.default)(J9.legend,!p&&J9.isHidden,n&&J9.isDragging),style:g,children:[(0,U.jsx)(`div`,{className:J9.legendToggle,children:(0,U.jsx)(po,{onClick:()=>m(!p),small:!0,round:!0,icon:p?(0,U.jsx)(GHe,{}):(0,U.jsx)(HHe,{})})}),(0,U.jsx)(hUe,{items:h,legendState:f,datasets:l,legendClick:d,chartType:c})]})}),_Ue=gUe;gUe.__docgenInfo={description:``,methods:[],displayName:`LegendPanel`,props:{chartRef:{required:!0,tsType:{name:`RefObject`,elements:[{name:`Chart`}],raw:`RefObject<Chart>`},description:``},legendConfig:{required:!0,tsType:{name:`ILegendConfig`},description:``},legendPosition:{required:!0,tsType:{name:`Position`},description:``},isDragging:{required:!0,tsType:{name:`boolean`},description:``}}};var vUe=e(l(),1),yUe=e(z(),1),bUe=e=>{let{position:t=``,onDrop:n=yUe.noop,placeholderSize:r={}}=e??{},[{isOver:i,canDrop:a},o]=Fne(()=>({accept:`legend`,drop:n,collect:e=>({isOver:e?.isOver(),canDrop:e?.canDrop()})})),s=i&&a;return(0,U.jsx)(`div`,{ref:o,className:(0,vUe.default)(J9.dropzone,s&&J9.isActive,t?.includes(`left`)&&J9.left,t?.includes(`right`)&&J9.right,t?.includes(`top`)&&J9.top,t?.includes(`bottom`)&&J9.bottom),children:(0,U.jsx)(`div`,{className:J9.dropzonePlaceholder,style:{...r,margin:4}})})},xUe=e=>{let{chartArea:t,setLegendPosition:n,isDragging:r,placeholderSize:i}=e??{},a=[S.TopLeft,S.TopRight,S.BottomLeft,S.BottomRight],{top:o,left:s,width:c,height:l}=t??{};return(0,U.jsx)(`div`,{className:J9.dropzoneContainer,style:{top:o,left:s,width:c,height:l,zIndex:r?0:-1},children:a?.map(e=>(0,U.jsx)(bUe,{position:e,onDrop:()=>n(e),placeholderSize:i},e))})},SUe=xUe;xUe.__docgenInfo={description:``,methods:[],displayName:`LegendDropZones`,props:{chartArea:{required:!1,tsType:{name:`ChartArea`},description:``},setLegendPosition:{required:!0,tsType:{name:`signature`,type:`function`,raw:`(position: Position) => void`,signature:{arguments:[{type:{name:`Position`},name:`position`}],return:{name:`void`}}},description:``},isDragging:{required:!0,tsType:{name:`boolean`},description:``},placeholderSize:{required:!1,tsType:{name:`signature`,type:`object`,raw:`{
1264
1264
  width?: number;
1265
1265
  height?: number;
1266
- }`,signature:{properties:[{key:`width`,value:{name:`number`,required:!1}},{key:`height`,value:{name:`number`,required:!1}}]}},description:``}}};var CUe=e(te(),1),$9=({chartRef:e,legendConfig:t})=>{let n=e?.current,[r,i]=(0,H.useState)(n?.chartArea),{options:{legend:a}}=t??{},[o,s]=MHe(),c=o,l=(0,H.useRef)(null),[u,d]=(0,H.useState)(a?.position||re.BottomLeft),f=l?.current?l.current.getBoundingClientRect():null,p={width:f?.width,height:f?.height},[{isDragging:m=!1},h=CUe.noop]=Dne(()=>({type:`legend`,collect:e=>({isDragging:e.isDragging()})}));return(0,H.useEffect)(()=>{let e=setTimeout(()=>{i(n?.chartArea)},20);return()=>clearTimeout(e)},[s]),(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`div`,{ref:c,className:J9.resizeContainer}),(0,U.jsx)(_Ue,{chartRef:e,legendPosition:u,isDragging:m,ref:e=>{h(e),l.current=e},legendConfig:t}),(0,U.jsx)(SUe,{chartArea:r,setLegendPosition:e=>d(e),isDragging:m,placeholderSize:p},s.width)]})},wUe=$9;$9.__docgenInfo={description:``,methods:[],displayName:`Legend`,props:{chartRef:{required:!0,tsType:{name:`RefObject`,elements:[{name:`Chart`}],raw:`RefObject<Chart>`},description:``},legendConfig:{required:!0,tsType:{name:`ILegendConfig`},description:``}}};export{$se as A,cf as B,SHe as C,Fse as D,lo as E,Eo as F,UFe as G,cFe as H,mue as I,Vee as J,oo as K,d0 as L,ca as M,Al as N,kl as O,Ll as P,df as R,EHe as S,Toe as T,PFe as U,e0 as V,Hc as W,Tee as Y,vHe as _,RHe as a,wHe as b,UHe as c,DHe as d,W9 as f,yHe as g,xHe as h,X9 as i,tce as j,Qse as k,KHe as l,bHe as m,lUe as n,zHe as o,U9 as p,ine as q,qHe as r,VHe as s,wUe as t,MHe as u,_He as v,po as w,THe as x,CHe as y,hue as z};
1266
+ }`,signature:{properties:[{key:`width`,value:{name:`number`,required:!1}},{key:`height`,value:{name:`number`,required:!1}}]}},description:``}}};var CUe=e(z(),1),$9=({chartRef:e,legendConfig:t})=>{let n=e?.current,[r,i]=(0,H.useState)(n?.chartArea),{options:{legend:a}}=t??{},[o,s]=MHe(),c=o,l=(0,H.useRef)(null),[u,d]=(0,H.useState)(a?.position||S.BottomLeft),f=l?.current?l.current.getBoundingClientRect():null,p={width:f?.width,height:f?.height},[{isDragging:m=!1},h=CUe.noop]=Dne(()=>({type:`legend`,collect:e=>({isDragging:e.isDragging()})}));return(0,H.useEffect)(()=>{let e=setTimeout(()=>{i(n?.chartArea)},20);return()=>clearTimeout(e)},[s]),(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`div`,{ref:c,className:J9.resizeContainer}),(0,U.jsx)(_Ue,{chartRef:e,legendPosition:u,isDragging:m,ref:e=>{h(e),l.current=e},legendConfig:t}),(0,U.jsx)(SUe,{chartArea:r,setLegendPosition:e=>d(e),isDragging:m,placeholderSize:p},s.width)]})},wUe=$9;$9.__docgenInfo={description:``,methods:[],displayName:`Legend`,props:{chartRef:{required:!0,tsType:{name:`RefObject`,elements:[{name:`Chart`}],raw:`RefObject<Chart>`},description:``},legendConfig:{required:!0,tsType:{name:`ILegendConfig`},description:``}}};export{$se as A,cf as B,SHe as C,Fse as D,lo as E,Eo as F,UFe as G,cFe as H,mue as I,Vee as J,oo as K,d0 as L,ca as M,Al as N,kl as O,Ll as P,df as R,EHe as S,Toe as T,PFe as U,e0 as V,Hc as W,Tee as Y,vHe as _,RHe as a,wHe as b,UHe as c,DHe as d,W9 as f,yHe as g,xHe as h,X9 as i,tce as j,Qse as k,KHe as l,bHe as m,lUe as n,zHe as o,U9 as p,ine as q,qHe as r,VHe as s,wUe as t,MHe as u,_He as v,po as w,THe as x,CHe as y,hue as z};