diff --git a/assets/AppBar.stories-D0-ctvwG.js b/assets/AppBar.stories-DENo46Li.js similarity index 95% rename from assets/AppBar.stories-D0-ctvwG.js rename to assets/AppBar.stories-DENo46Li.js index 252043c..4459d59 100644 --- a/assets/AppBar.stories-D0-ctvwG.js +++ b/assets/AppBar.stories-DENo46Li.js @@ -1,4 +1,4 @@ -import{j as t}from"./assertThisInitialized-DaBLapIa.js";import{A,T as B,P as x,a as b}from"./Graph-YQGnloR9.js";/* empty css */import"./index-uubelm5h.js";import"./index-CfOt2XX2.js";const S={title:"AppBar",component:A,tags:["autodocs"],argTypes:{children:{control:{type:"text"}}},parameters:{controls:{expanded:!0}},decorators:[g=>t.jsx(B,{theme:x,children:t.jsx(g,{})})]},r={},a={args:{centered:!0}},e={args:{},render:()=>t.jsx(b,{title:"Tablet App Bar"})};var s,o,p;r.parameters={...r.parameters,docs:{...(s=r.parameters)==null?void 0:s.docs,source:{originalSource:"{}",...(p=(o=r.parameters)==null?void 0:o.docs)==null?void 0:p.source}}};var n,c,d;a.parameters={...a.parameters,docs:{...(n=a.parameters)==null?void 0:n.docs,source:{originalSource:`{ +import{j as t}from"./assertThisInitialized-DaBLapIa.js";import{A,T as B,P as x,a as b}from"./Graph-ayG64wjf.js";/* empty css */import"./index-uubelm5h.js";import"./index-CfOt2XX2.js";const S={title:"AppBar",component:A,tags:["autodocs"],argTypes:{children:{control:{type:"text"}}},parameters:{controls:{expanded:!0}},decorators:[g=>t.jsx(B,{theme:x,children:t.jsx(g,{})})]},r={},a={args:{centered:!0}},e={args:{},render:()=>t.jsx(b,{title:"Tablet App Bar"})};var s,o,p;r.parameters={...r.parameters,docs:{...(s=r.parameters)==null?void 0:s.docs,source:{originalSource:"{}",...(p=(o=r.parameters)==null?void 0:o.docs)==null?void 0:p.source}}};var n,c,d;a.parameters={...a.parameters,docs:{...(n=a.parameters)==null?void 0:n.docs,source:{originalSource:`{ args: { centered: true } diff --git a/assets/Button.stories-D_qdzbED.js b/assets/Button.stories-Cxunftqy.js similarity index 96% rename from assets/Button.stories-D_qdzbED.js rename to assets/Button.stories-Cxunftqy.js index 4b82157..91b253e 100644 --- a/assets/Button.stories-D_qdzbED.js +++ b/assets/Button.stories-Cxunftqy.js @@ -1,4 +1,4 @@ -import{j as r}from"./assertThisInitialized-DaBLapIa.js";import{B as n}from"./Graph-YQGnloR9.js";/* empty css */import"./index-uubelm5h.js";import"./index-CfOt2XX2.js";const g={title:"Button",component:n,tags:["autodocs"],argTypes:{children:{control:{type:"text"}}},parameters:{controls:{expanded:!0}}},t={args:{btheme:"light",bvariant:"outlined"},render:e=>r.jsxs("div",{style:{backgroundColor:e.btheme==="dark"?"#1f1f1f":"#ffffff",padding:"30px"},children:[r.jsx(n,{...e,children:"I'm Enabled."})," ",r.jsx(n,{disabled:!0,...e,children:"I'm Disabled."})]})},a={args:{btheme:"dark",bvariant:"outlined"},render:e=>r.jsxs("div",{style:{backgroundColor:e.btheme==="dark"?"#1f1f1f":"#ffffff",padding:"30px"},children:[r.jsx(n,{...e,children:"I'm Enabled."})," ",r.jsx(n,{disabled:!0,...e,children:"I'm Disabled."})]})};var d,s,o;t.parameters={...t.parameters,docs:{...(d=t.parameters)==null?void 0:d.docs,source:{originalSource:`{ +import{j as r}from"./assertThisInitialized-DaBLapIa.js";import{B as n}from"./Graph-ayG64wjf.js";/* empty css */import"./index-uubelm5h.js";import"./index-CfOt2XX2.js";const g={title:"Button",component:n,tags:["autodocs"],argTypes:{children:{control:{type:"text"}}},parameters:{controls:{expanded:!0}}},t={args:{btheme:"light",bvariant:"outlined"},render:e=>r.jsxs("div",{style:{backgroundColor:e.btheme==="dark"?"#1f1f1f":"#ffffff",padding:"30px"},children:[r.jsx(n,{...e,children:"I'm Enabled."})," ",r.jsx(n,{disabled:!0,...e,children:"I'm Disabled."})]})},a={args:{btheme:"dark",bvariant:"outlined"},render:e=>r.jsxs("div",{style:{backgroundColor:e.btheme==="dark"?"#1f1f1f":"#ffffff",padding:"30px"},children:[r.jsx(n,{...e,children:"I'm Enabled."})," ",r.jsx(n,{disabled:!0,...e,children:"I'm Disabled."})]})};var d,s,o;t.parameters={...t.parameters,docs:{...(d=t.parameters)==null?void 0:d.docs,source:{originalSource:`{ args: { btheme: 'light', bvariant: 'outlined' diff --git a/assets/Card.stories-DAGstdPs.js b/assets/Card.stories-CE1Nkfp8.js similarity index 94% rename from assets/Card.stories-DAGstdPs.js rename to assets/Card.stories-CE1Nkfp8.js index 30a44eb..f1d936d 100644 --- a/assets/Card.stories-DAGstdPs.js +++ b/assets/Card.stories-CE1Nkfp8.js @@ -1,4 +1,4 @@ -import{j as e}from"./assertThisInitialized-DaBLapIa.js";import{H as d,T as s,P as n}from"./Graph-YQGnloR9.js";/* empty css */import"./index-uubelm5h.js";import"./index-CfOt2XX2.js";const v={title:"HorizontalCard",component:d,tags:["autodocs"],argTypes:{children:{control:{type:"text"}}},parameters:{controls:{expanded:!0}},decorators:[r=>e.jsx(s,{theme:n,children:e.jsx(r,{})})]},l=r=>{console.log("Card Value",r)},a={args:{onCardClick:l,cardSpacing:5,cardContentText:[{cardLabel:"Card 1",val:"val 1",cardDesc:"Card Desc 1"},{cardLabel:"Card 2",val:"val 2",cardDesc:" Card Desc 2"}]}};var o,c,t;a.parameters={...a.parameters,docs:{...(o=a.parameters)==null?void 0:o.docs,source:{originalSource:`{ +import{j as e}from"./assertThisInitialized-DaBLapIa.js";import{H as d,T as s,P as n}from"./Graph-ayG64wjf.js";/* empty css */import"./index-uubelm5h.js";import"./index-CfOt2XX2.js";const v={title:"HorizontalCard",component:d,tags:["autodocs"],argTypes:{children:{control:{type:"text"}}},parameters:{controls:{expanded:!0}},decorators:[r=>e.jsx(s,{theme:n,children:e.jsx(r,{})})]},l=r=>{console.log("Card Value",r)},a={args:{onCardClick:l,cardSpacing:5,cardContentText:[{cardLabel:"Card 1",val:"val 1",cardDesc:"Card Desc 1"},{cardLabel:"Card 2",val:"val 2",cardDesc:" Card Desc 2"}]}};var o,c,t;a.parameters={...a.parameters,docs:{...(o=a.parameters)==null?void 0:o.docs,source:{originalSource:`{ args: { onCardClick, cardSpacing: 5, diff --git a/assets/Color-ERTF36HU-Do5AllBJ.js b/assets/Color-ERTF36HU-Cgpvzn3J.js similarity index 99% rename from assets/Color-ERTF36HU-Do5AllBJ.js rename to assets/Color-ERTF36HU-Cgpvzn3J.js index e5c285b..37ca5a3 100644 --- a/assets/Color-ERTF36HU-Do5AllBJ.js +++ b/assets/Color-ERTF36HU-Cgpvzn3J.js @@ -1 +1 @@ -import{ae as Me,af as ie,ag as Ce,ah as $,a2 as ue,a0 as $e,x as Ie,ai as Oe,aj as Ne}from"./DocsRenderer-CFRXHY34-BSW2TFFe.js";import{g as fe,R as h,r as m}from"./index-uubelm5h.js";import"./iframe-WttpdJI2.js";import"../sb-preview/runtime.js";import"./assertThisInitialized-DaBLapIa.js";import"./index-CfOt2XX2.js";import"./index-D-8MO0q_.js";import"./index-DmeKSGxc.js";import"./index-DrFu-skq.js";import"./react-18-CtsMCmcS.js";var Se={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};const F=Se,he={};for(const e of Object.keys(F))he[F[e]]=e;const u={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var de=u;for(const e of Object.keys(u)){if(!("channels"in u[e]))throw new Error("missing channels property: "+e);if(!("labels"in u[e]))throw new Error("missing channel labels property: "+e);if(u[e].labels.length!==u[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=u[e];delete u[e].channels,delete u[e].labels,Object.defineProperty(u[e],"channels",{value:t}),Object.defineProperty(u[e],"labels",{value:n})}u.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(t,n,r),a=Math.max(t,n,r),s=a-o;let l,c;a===o?l=0:t===a?l=(n-r)/s:n===a?l=2+(r-t)/s:r===a&&(l=4+(t-n)/s),l=Math.min(l*60,360),l<0&&(l+=360);const i=(o+a)/2;return a===o?c=0:i<=.5?c=s/(a+o):c=s/(2-a-o),[l,c*100,i*100]};u.rgb.hsv=function(e){let t,n,r,o,a;const s=e[0]/255,l=e[1]/255,c=e[2]/255,i=Math.max(s,l,c),d=i-Math.min(s,l,c),f=function(g){return(i-g)/6/d+1/2};return d===0?(o=0,a=0):(a=d/i,t=f(s),n=f(l),r=f(c),s===i?o=r-n:l===i?o=1/3+t-r:c===i&&(o=2/3+n-t),o<0?o+=1:o>1&&(o-=1)),[o*360,a*100,i*100]};u.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const o=u.rgb.hsl(e)[0],a=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[o,a*100,r*100]};u.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(1-t,1-n,1-r),a=(1-t-o)/(1-o)||0,s=(1-n-o)/(1-o)||0,l=(1-r-o)/(1-o)||0;return[a*100,s*100,l*100,o*100]};function Re(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}u.rgb.keyword=function(e){const t=he[e];if(t)return t;let n=1/0,r;for(const o of Object.keys(F)){const a=F[o],s=Re(e,a);s.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;const o=t*.4124+n*.3576+r*.1805,a=t*.2126+n*.7152+r*.0722,s=t*.0193+n*.1192+r*.9505;return[o*100,a*100,s*100]};u.rgb.lab=function(e){const t=u.rgb.xyz(e);let n=t[0],r=t[1],o=t[2];n/=95.047,r/=100,o/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,o=o>.008856?o**(1/3):7.787*o+16/116;const a=116*r-16,s=500*(n-r),l=200*(r-o);return[a,s,l]};u.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let o,a,s;if(n===0)return s=r*255,[s,s,s];r<.5?o=r*(1+n):o=r+n-r*n;const l=2*r-o,c=[0,0,0];for(let i=0;i<3;i++)a=t+1/3*-(i-1),a<0&&a++,a>1&&a--,6*a<1?s=l+(o-l)*6*a:2*a<1?s=o:3*a<2?s=l+(o-l)*(2/3-a)*6:s=l,c[i]=s*255;return c};u.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,o=n;const a=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,o*=a<=1?a:2-a;const s=(r+n)/2,l=r===0?2*o/(a+o):2*n/(r+n);return[t,l*100,s*100]};u.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const o=Math.floor(t)%6,a=t-Math.floor(t),s=255*r*(1-n),l=255*r*(1-n*a),c=255*r*(1-n*(1-a));switch(r*=255,o){case 0:return[r,c,s];case 1:return[l,r,s];case 2:return[s,r,c];case 3:return[s,l,r];case 4:return[c,s,r];case 5:return[r,s,l]}};u.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,o=Math.max(r,.01);let a,s;s=(2-n)*r;const l=(2-n)*o;return a=n*o,a/=l<=1?l:2-l,a=a||0,s/=2,[t,a*100,s*100]};u.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const o=n+r;let a;o>1&&(n/=o,r/=o);const s=Math.floor(6*t),l=1-r;a=6*t-s,s&1&&(a=1-a);const c=n+a*(l-n);let i,d,f;switch(s){default:case 6:case 0:i=l,d=c,f=n;break;case 1:i=c,d=l,f=n;break;case 2:i=n,d=l,f=c;break;case 3:i=n,d=c,f=l;break;case 4:i=c,d=n,f=l;break;case 5:i=l,d=n,f=c;break}return[i*255,d*255,f*255]};u.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,o=e[3]/100,a=1-Math.min(1,t*(1-o)+o),s=1-Math.min(1,n*(1-o)+o),l=1-Math.min(1,r*(1-o)+o);return[a*255,s*255,l*255]};u.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let o,a,s;return o=t*3.2406+n*-1.5372+r*-.4986,a=t*-.9689+n*1.8758+r*.0415,s=t*.0557+n*-.204+r*1.057,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,o=Math.min(Math.max(0,o),1),a=Math.min(Math.max(0,a),1),s=Math.min(Math.max(0,s),1),[o*255,a*255,s*255]};u.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;const o=116*n-16,a=500*(t-n),s=200*(n-r);return[o,a,s]};u.lab.xyz=function(e){const t=e[0],n=e[1],r=e[2];let o,a,s;a=(t+16)/116,o=n/500+a,s=a-r/200;const l=a**3,c=o**3,i=s**3;return a=l>.008856?l:(a-16/116)/7.787,o=c>.008856?c:(o-16/116)/7.787,s=i>.008856?i:(s-16/116)/7.787,o*=95.047,a*=100,s*=108.883,[o,a,s]};u.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let o;o=Math.atan2(r,n)*360/2/Math.PI,o<0&&(o+=360);const s=Math.sqrt(n*n+r*r);return[t,s,o]};u.lch.lab=function(e){const t=e[0],n=e[1],o=e[2]/360*2*Math.PI,a=n*Math.cos(o),s=n*Math.sin(o);return[t,a,s]};u.rgb.ansi16=function(e,t=null){const[n,r,o]=e;let a=t===null?u.rgb.hsv(e)[2]:t;if(a=Math.round(a/50),a===0)return 30;let s=30+(Math.round(o/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return a===2&&(s+=60),s};u.hsv.ansi16=function(e){return u.rgb.ansi16(u.hsv.rgb(e),e[2])};u.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)};u.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=(~~(e>50)+1)*.5,r=(t&1)*n*255,o=(t>>1&1)*n*255,a=(t>>2&1)*n*255;return[r,o,a]};u.ansi256.rgb=function(e){if(e>=232){const a=(e-232)*10+8;return[a,a,a]}e-=16;let t;const n=Math.floor(e/36)/5*255,r=Math.floor((t=e%36)/6)/5*255,o=t%6/5*255;return[n,r,o]};u.rgb.hex=function(e){const n=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(n.length)+n};u.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];t[0].length===3&&(n=n.split("").map(l=>l+l).join(""));const r=parseInt(n,16),o=r>>16&255,a=r>>8&255,s=r&255;return[o,a,s]};u.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.max(Math.max(t,n),r),a=Math.min(Math.min(t,n),r),s=o-a;let l,c;return s<1?l=a/(1-s):l=0,s<=0?c=0:o===t?c=(n-r)/s%6:o===n?c=2+(r-t)/s:c=4+(t-n)/s,c/=6,c%=1,[c*360,s*100,l*100]};u.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let o=0;return r<1&&(o=(n-.5*r)/(1-r)),[e[0],r*100,o*100]};u.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],r*100,o*100]};u.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(n===0)return[r*255,r*255,r*255];const o=[0,0,0],a=t%1*6,s=a%1,l=1-s;let c=0;switch(Math.floor(a)){case 0:o[0]=1,o[1]=s,o[2]=0;break;case 1:o[0]=l,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=s;break;case 3:o[0]=0,o[1]=l,o[2]=1;break;case 4:o[0]=s,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=l}return c=(1-n)*r,[(n*o[0]+c)*255,(n*o[1]+c)*255,(n*o[2]+c)*255]};u.hcg.hsv=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);let o=0;return r>0&&(o=t/r),[e[0],o*100,r*100]};u.hcg.hsl=function(e){const t=e[1]/100,r=e[2]/100*(1-t)+.5*t;let o=0;return r>0&&r<.5?o=t/(2*r):r>=.5&&r<1&&(o=t/(2*(1-r))),[e[0],o*100,r*100]};u.hcg.hwb=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);return[e[0],(r-t)*100,(1-r)*100]};u.hwb.hcg=function(e){const t=e[1]/100,r=1-e[2]/100,o=r-t;let a=0;return o<1&&(a=(r-o)/(1-o)),[e[0],o*100,a*100]};u.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};u.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};u.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};u.gray.hsl=function(e){return[0,0,e[0]]};u.gray.hsv=u.gray.hsl;u.gray.hwb=function(e){return[0,100,e[0]]};u.gray.cmyk=function(e){return[0,0,0,e[0]]};u.gray.lab=function(e){return[e[0],0,0]};u.gray.hex=function(e){const t=Math.round(e[0]/100*255)&255,r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r};u.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const X=de;function je(){const e={},t=Object.keys(X);for(let n=t.length,r=0;r1&&(n=r),e(n))};return"conversion"in e&&(t.conversion=e.conversion),t}function Be(e){const t=function(...n){const r=n[0];if(r==null)return r;r.length>1&&(n=r);const o=e(n);if(typeof o=="object")for(let a=o.length,s=0;s{N[e]={},Object.defineProperty(N[e],"channels",{value:K[e].channels}),Object.defineProperty(N[e],"labels",{value:K[e].labels});const t=Pe(e);Object.keys(t).forEach(r=>{const o=t[r];N[e][r]=Be(o),N[e][r].raw=qe(o)})});var Xe=N;const _=fe(Xe);var De=Me,We=function(){return De.Date.now()},Ke=We,Ve=/\s/;function Ae(e){for(var t=e.length;t--&&Ve.test(e.charAt(t)););return t}var Ge=Ae,Ue=Ge,Ye=/^\s+/;function Je(e){return e&&e.slice(0,Ue(e)+1).replace(Ye,"")}var Qe=Je,Ze=Qe,te=ie,et=Ce,ne=NaN,tt=/^[-+]0x[0-9a-f]+$/i,nt=/^0b[01]+$/i,rt=/^0o[0-7]+$/i,ot=parseInt;function at(e){if(typeof e=="number")return e;if(et(e))return ne;if(te(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=te(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Ze(e);var n=nt.test(e);return n||rt.test(e)?ot(e.slice(2),n?2:8):tt.test(e)?ne:+e}var st=at,lt=ie,W=Ke,re=st,ct="Expected a function",it=Math.max,ut=Math.min;function ft(e,t,n){var r,o,a,s,l,c,i=0,d=!1,f=!1,g=!0;if(typeof e!="function")throw new TypeError(ct);t=re(t)||0,lt(n)&&(d=!!n.leading,f="maxWait"in n,a=f?it(re(n.maxWait)||0,t):a,g="trailing"in n?!!n.trailing:g);function x(v){var C=r,z=o;return r=o=void 0,i=v,s=e.apply(z,C),s}function j(v){return i=v,l=setTimeout(b,t),d?x(v):s}function M(v){var C=v-c,z=v-i,ee=t-C;return f?ut(ee,a-z):ee}function p(v){var C=v-c,z=v-i;return c===void 0||C>=t||C<0||f&&z>=a}function b(){var v=W();if(p(v))return w(v);l=setTimeout(b,M(v))}function w(v){return l=void 0,g&&r?x(v):(r=o=void 0,s)}function E(){l!==void 0&&clearTimeout(l),i=0,r=c=o=l=void 0}function k(){return l===void 0?s:w(W())}function I(){var v=W(),C=p(v);if(r=arguments,o=this,c=v,C){if(l===void 0)return j(c);if(f)return clearTimeout(l),l=setTimeout(b,t),x(c)}return l===void 0&&(l=setTimeout(b,t)),s}return I.cancel=E,I.flush=k,I}var ht=ft;const dt=fe(ht);function O(){return(O=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}function V(e){var t=m.useRef(e),n=m.useRef(function(r){t.current&&t.current(r)});return t.current=e,n.current}var R=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e0:p.buttons>0)&&o.current?a(oe(o.current,p,l.current)):M(!1)},j=function(){return M(!1)};function M(p){var b=c.current,w=A(o.current),E=p?w.addEventListener:w.removeEventListener;E(b?"touchmove":"mousemove",x),E(b?"touchend":"mouseup",j)}return[function(p){var b=p.nativeEvent,w=o.current;if(w&&(ae(b),!function(k,I){return I&&!H(k)}(b,c.current)&&w)){if(H(b)){c.current=!0;var E=b.changedTouches||[];E.length&&(l.current=E[0].identifier)}w.focus(),a(oe(w,b,l.current)),M(!0)}},function(p){var b=p.which||p.keyCode;b<37||b>40||(p.preventDefault(),s({left:b===39?.05:b===37?-.05:0,top:b===40?.05:b===38?-.05:0}))},M]},[s,a]),d=i[0],f=i[1],g=i[2];return m.useEffect(function(){return g},[g]),h.createElement("div",O({},r,{onTouchStart:d,onMouseDown:d,className:"react-colorful__interactive",ref:o,onKeyDown:f,tabIndex:0,role:"slider"}))}),T=function(e){return e.filter(Boolean).join(" ")},Z=function(e){var t=e.color,n=e.left,r=e.top,o=r===void 0?.5:r,a=T(["react-colorful__pointer",e.className]);return h.createElement("div",{className:a,style:{top:100*o+"%",left:100*n+"%"}},h.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},y=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n},gt={grad:.9,turn:360,rad:360/(2*Math.PI)},mt=function(e){return be(G(e))},G=function(e){return e[0]==="#"&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?y(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:e.length===8?y(parseInt(e.substring(6,8),16)/255,2):1}},bt=function(e,t){return t===void 0&&(t="deg"),Number(e)*(gt[t]||1)},vt=function(e){var t=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?pt({h:bt(t[1],t[2]),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)}):{h:0,s:0,v:0,a:1}},pt=function(e){var t=e.s,n=e.l;return{h:e.h,s:(t*=(n<50?n:100-n)/100)>0?2*t/(n+t)*100:0,v:n+t,a:e.a}},yt=function(e){return wt(me(e))},ge=function(e){var t=e.s,n=e.v,r=e.a,o=(200-t)*n/100;return{h:y(e.h),s:y(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:y(o/2),a:y(r,2)}},U=function(e){var t=ge(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},B=function(e){var t=ge(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},me=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var a=Math.floor(t),s=r*(1-n),l=r*(1-(t-a)*n),c=r*(1-(1-t+a)*n),i=a%6;return{r:y(255*[r,l,s,s,c,r][i]),g:y(255*[c,r,r,l,s,s][i]),b:y(255*[s,s,c,r,r,l][i]),a:y(o,2)}},xt=function(e){var t=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?be({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):{h:0,s:0,v:0,a:1}},P=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},wt=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,a=o<1?P(y(255*o)):"";return"#"+P(t)+P(n)+P(r)+a},be=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,a=Math.max(t,n,r),s=a-Math.min(t,n,r),l=s?a===t?(n-r)/s:a===n?2+(r-t)/s:4+(t-n)/s:0;return{h:y(60*(l<0?l+6:l)),s:y(a?s/a*100:0),v:y(a/255*100),a:o}},ve=h.memo(function(e){var t=e.hue,n=e.onChange,r=T(["react-colorful__hue",e.className]);return h.createElement("div",{className:r},h.createElement(Q,{onMove:function(o){n({h:360*o.left})},onKey:function(o){n({h:R(t+360*o.left,0,360)})},"aria-label":"Hue","aria-valuenow":y(t),"aria-valuemax":"360","aria-valuemin":"0"},h.createElement(Z,{className:"react-colorful__hue-pointer",left:t/360,color:U({h:t,s:100,v:100,a:1})})))}),pe=h.memo(function(e){var t=e.hsva,n=e.onChange,r={backgroundColor:U({h:t.h,s:100,v:100,a:1})};return h.createElement("div",{className:"react-colorful__saturation",style:r},h.createElement(Q,{onMove:function(o){n({s:100*o.left,v:100-100*o.top})},onKey:function(o){n({s:R(t.s+100*o.left,0,100),v:R(t.v-100*o.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+y(t.s)+"%, Brightness "+y(t.v)+"%"},h.createElement(Z,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:U(t)})))}),ye=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0},xe=function(e,t){return e.replace(/\s/g,"")===t.replace(/\s/g,"")},kt=function(e,t){return e.toLowerCase()===t.toLowerCase()||ye(G(e),G(t))};function we(e,t,n){var r=V(n),o=m.useState(function(){return e.toHsva(t)}),a=o[0],s=o[1],l=m.useRef({color:t,hsva:a});m.useEffect(function(){if(!e.equal(t,l.current.color)){var i=e.toHsva(t);l.current={hsva:i,color:t},s(i)}},[t,e]),m.useEffect(function(){var i;ye(a,l.current.hsva)||e.equal(i=e.fromHsva(a),l.current.color)||(l.current={hsva:a,color:i},r(i))},[a,e,r]);var c=m.useCallback(function(i){s(function(d){return Object.assign({},d,i)})},[]);return[a,c]}var _t=typeof window<"u"?m.useLayoutEffect:m.useEffect,Et=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},se=new Map,ke=function(e){_t(function(){var t=e.current?e.current.ownerDocument:document;if(t!==void 0&&!se.has(t)){var n=t.createElement("style");n.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,se.set(t,n);var r=Et();r&&n.setAttribute("nonce",r),t.head.appendChild(n)}},[])},Mt=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,a=e.onChange,s=J(e,["className","colorModel","color","onChange"]),l=m.useRef(null);ke(l);var c=we(n,o,a),i=c[0],d=c[1],f=T(["react-colorful",t]);return h.createElement("div",O({},s,{ref:l,className:f}),h.createElement(pe,{hsva:i,onChange:d}),h.createElement(ve,{hue:i.h,onChange:d,className:"react-colorful__last-control"}))},Ct={defaultColor:"000",toHsva:mt,fromHsva:function(e){return yt({h:e.h,s:e.s,v:e.v,a:1})},equal:kt},$t=function(e){return h.createElement(Mt,O({},e,{colorModel:Ct}))},It=function(e){var t=e.className,n=e.hsva,r=e.onChange,o={backgroundImage:"linear-gradient(90deg, "+B(Object.assign({},n,{a:0}))+", "+B(Object.assign({},n,{a:1}))+")"},a=T(["react-colorful__alpha",t]),s=y(100*n.a);return h.createElement("div",{className:a},h.createElement("div",{className:"react-colorful__alpha-gradient",style:o}),h.createElement(Q,{onMove:function(l){r({a:l.left})},onKey:function(l){r({a:R(n.a+l.left)})},"aria-label":"Alpha","aria-valuetext":s+"%","aria-valuenow":s,"aria-valuemin":"0","aria-valuemax":"100"},h.createElement(Z,{className:"react-colorful__alpha-pointer",left:n.a,color:B(n)})))},_e=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,a=e.onChange,s=J(e,["className","colorModel","color","onChange"]),l=m.useRef(null);ke(l);var c=we(n,o,a),i=c[0],d=c[1],f=T(["react-colorful",t]);return h.createElement("div",O({},s,{ref:l,className:f}),h.createElement(pe,{hsva:i,onChange:d}),h.createElement(ve,{hue:i.h,onChange:d}),h.createElement(It,{hsva:i,onChange:d,className:"react-colorful__last-control"}))},Ot={defaultColor:"hsla(0, 0%, 0%, 1)",toHsva:vt,fromHsva:B,equal:xe},Nt=function(e){return h.createElement(_e,O({},e,{colorModel:Ot}))},St={defaultColor:"rgba(0, 0, 0, 1)",toHsva:xt,fromHsva:function(e){var t=me(e);return"rgba("+t.r+", "+t.g+", "+t.b+", "+t.a+")"},equal:xe},Rt=function(e){return h.createElement(_e,O({},e,{colorModel:St}))},jt=$.div({position:"relative",maxWidth:250,'&[aria-readonly="true"]':{opacity:.5}}),zt=$(ue)({position:"absolute",zIndex:1,top:4,left:4,"[aria-readonly=true] &":{cursor:"not-allowed"}}),Ht=$.div({width:200,margin:5,".react-colorful__saturation":{borderRadius:"4px 4px 0 0"},".react-colorful__hue":{boxShadow:"inset 0 0 0 1px rgb(0 0 0 / 5%)"},".react-colorful__last-control":{borderRadius:"0 0 4px 4px"}}),Ft=$($e)(({theme:e})=>({fontFamily:e.typography.fonts.base})),Tt=$.div({display:"grid",gridTemplateColumns:"repeat(9, 16px)",gap:6,padding:3,marginTop:5,width:200}),Pt=$.div(({theme:e,active:t})=>({width:16,height:16,boxShadow:t?`${e.appBorderColor} 0 0 0 1px inset, ${e.textMutedColor}50 0 0 0 4px`:`${e.appBorderColor} 0 0 0 1px inset`,borderRadius:e.appBorderRadius})),Lt=`url('data:image/svg+xml;charset=utf-8,')`,le=({value:e,style:t,...n})=>{let r=`linear-gradient(${e}, ${e}), ${Lt}, linear-gradient(#fff, #fff)`;return h.createElement(Pt,{...n,style:{...t,backgroundImage:r}})},qt=$(Ie.Input)(({theme:e,readOnly:t})=>({width:"100%",paddingLeft:30,paddingRight:30,boxSizing:"border-box",fontFamily:e.typography.fonts.base})),Bt=$(Oe)(({theme:e})=>({position:"absolute",zIndex:1,top:6,right:7,width:20,height:20,padding:4,boxSizing:"border-box",cursor:"pointer",color:e.input.color})),Ee=(e=>(e.RGB="rgb",e.HSL="hsl",e.HEX="hex",e))(Ee||{}),L=Object.values(Ee),Xt=/\(([0-9]+),\s*([0-9]+)%?,\s*([0-9]+)%?,?\s*([0-9.]+)?\)/,Dt=/^\s*rgba?\(([0-9]+),\s*([0-9]+),\s*([0-9]+),?\s*([0-9.]+)?\)\s*$/i,Wt=/^\s*hsla?\(([0-9]+),\s*([0-9]+)%,\s*([0-9]+)%,?\s*([0-9.]+)?\)\s*$/i,Y=/^\s*#?([0-9a-f]{3}|[0-9a-f]{6})\s*$/i,Kt=/^\s*#?([0-9a-f]{3})\s*$/i,Vt={hex:$t,rgb:Rt,hsl:Nt},q={hex:"transparent",rgb:"rgba(0, 0, 0, 0)",hsl:"hsla(0, 0%, 0%, 0)"},ce=e=>{let t=e==null?void 0:e.match(Xt);if(!t)return[0,0,0,1];let[,n,r,o,a=1]=t;return[n,r,o,a].map(Number)},S=e=>{if(!e)return;let t=!0;if(Dt.test(e)){let[s,l,c,i]=ce(e),[d,f,g]=_.rgb.hsl([s,l,c])||[0,0,0];return{valid:t,value:e,keyword:_.rgb.keyword([s,l,c]),colorSpace:"rgb",rgb:e,hsl:`hsla(${d}, ${f}%, ${g}%, ${i})`,hex:`#${_.rgb.hex([s,l,c]).toLowerCase()}`}}if(Wt.test(e)){let[s,l,c,i]=ce(e),[d,f,g]=_.hsl.rgb([s,l,c])||[0,0,0];return{valid:t,value:e,keyword:_.hsl.keyword([s,l,c]),colorSpace:"hsl",rgb:`rgba(${d}, ${f}, ${g}, ${i})`,hsl:e,hex:`#${_.hsl.hex([s,l,c]).toLowerCase()}`}}let n=e.replace("#",""),r=_.keyword.rgb(n)||_.hex.rgb(n),o=_.rgb.hsl(r),a=e;if(/[^#a-f0-9]/i.test(e)?a=n:Y.test(e)&&(a=`#${n}`),a.startsWith("#"))t=Y.test(a);else try{_.keyword.hex(a)}catch{t=!1}return{valid:t,value:a,keyword:_.rgb.keyword(r),colorSpace:"hex",rgb:`rgba(${r[0]}, ${r[1]}, ${r[2]}, 1)`,hsl:`hsla(${o[0]}, ${o[1]}%, ${o[2]}%, 1)`,hex:a}},At=(e,t,n)=>{if(!e||!(t!=null&&t.valid))return q[n];if(n!=="hex")return(t==null?void 0:t[n])||q[n];if(!t.hex.startsWith("#"))try{return`#${_.keyword.hex(t.hex)}`}catch{return q.hex}let r=t.hex.match(Kt);if(!r)return Y.test(t.hex)?t.hex:q.hex;let[o,a,s]=r[1].split("");return`#${o}${o}${a}${a}${s}${s}`},Gt=(e,t)=>{let[n,r]=m.useState(e||""),[o,a]=m.useState(()=>S(n)),[s,l]=m.useState((o==null?void 0:o.colorSpace)||"hex");m.useEffect(()=>{let f=e||"",g=S(f);r(f),a(g),l((g==null?void 0:g.colorSpace)||"hex")},[e]);let c=m.useMemo(()=>At(n,o,s).toLowerCase(),[n,o,s]),i=m.useCallback(f=>{let g=S(f),x=(g==null?void 0:g.value)||f||"";r(x),x===""&&(a(void 0),t(void 0)),g&&(a(g),l(g.colorSpace),t(g.value))},[t]),d=m.useCallback(()=>{let f=L.indexOf(s)+1;f>=L.length&&(f=0),l(L[f]);let g=(o==null?void 0:o[L[f]])||"";r(g),t(g)},[o,s,t]);return{value:n,realValue:c,updateValue:i,color:o,colorSpace:s,cycleColorSpace:d}},D=e=>e.replace(/\s*/,"").toLowerCase(),Ut=(e,t,n)=>{let[r,o]=m.useState(t!=null&&t.valid?[t]:[]);m.useEffect(()=>{t===void 0&&o([])},[t]);let a=m.useMemo(()=>(e||[]).map(l=>typeof l=="string"?S(l):l.title?{...S(l.color),keyword:l.title}:S(l.color)).concat(r).filter(Boolean).slice(-27),[e,r]),s=m.useCallback(l=>{l!=null&&l.valid&&(a.some(c=>D(c[n])===D(l[n]))||o(c=>c.concat(l)))},[n,a]);return{presets:a,addPreset:s}},Yt=({name:e,value:t,onChange:n,onFocus:r,onBlur:o,presetColors:a,startOpen:s=!1,argType:l})=>{var E;let c=m.useCallback(dt(n,200),[n]),{value:i,realValue:d,updateValue:f,color:g,colorSpace:x,cycleColorSpace:j}=Gt(t,c),{presets:M,addPreset:p}=Ut(a,g,x),b=Vt[x],w=!!((E=l==null?void 0:l.table)!=null&&E.readonly);return h.createElement(jt,{"aria-readonly":w},h.createElement(zt,{startOpen:s,trigger:w?[null]:void 0,closeOnOutsideClick:!0,onVisibleChange:()=>p(g),tooltip:h.createElement(Ht,null,h.createElement(b,{color:d==="transparent"?"#000000":d,onChange:f,onFocus:r,onBlur:o}),M.length>0&&h.createElement(Tt,null,M.map((k,I)=>h.createElement(ue,{key:`${k.value}-${I}`,hasChrome:!1,tooltip:h.createElement(Ft,{note:k.keyword||k.value})},h.createElement(le,{value:k[x],active:g&&D(k[x])===D(g[x]),onClick:()=>f(k.value)})))))},h.createElement(le,{value:d,style:{margin:4}})),h.createElement(qt,{id:Ne(e),value:i,onChange:k=>f(k.target.value),onFocus:k=>k.target.select(),readOnly:w,placeholder:"Choose color..."}),i?h.createElement(Bt,{onClick:j}):null)},ln=Yt;export{Yt as ColorControl,ln as default}; +import{ae as Me,af as ie,ag as Ce,ah as $,a2 as ue,a0 as $e,x as Ie,ai as Oe,aj as Ne}from"./DocsRenderer-CFRXHY34-C_SX33Lf.js";import{g as fe,R as h,r as m}from"./index-uubelm5h.js";import"./iframe-D6Wql7qE.js";import"../sb-preview/runtime.js";import"./assertThisInitialized-DaBLapIa.js";import"./index-CfOt2XX2.js";import"./index-D-8MO0q_.js";import"./index-DmeKSGxc.js";import"./index-DrFu-skq.js";import"./react-18-CtsMCmcS.js";var Se={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};const F=Se,he={};for(const e of Object.keys(F))he[F[e]]=e;const u={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var de=u;for(const e of Object.keys(u)){if(!("channels"in u[e]))throw new Error("missing channels property: "+e);if(!("labels"in u[e]))throw new Error("missing channel labels property: "+e);if(u[e].labels.length!==u[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=u[e];delete u[e].channels,delete u[e].labels,Object.defineProperty(u[e],"channels",{value:t}),Object.defineProperty(u[e],"labels",{value:n})}u.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(t,n,r),a=Math.max(t,n,r),s=a-o;let l,c;a===o?l=0:t===a?l=(n-r)/s:n===a?l=2+(r-t)/s:r===a&&(l=4+(t-n)/s),l=Math.min(l*60,360),l<0&&(l+=360);const i=(o+a)/2;return a===o?c=0:i<=.5?c=s/(a+o):c=s/(2-a-o),[l,c*100,i*100]};u.rgb.hsv=function(e){let t,n,r,o,a;const s=e[0]/255,l=e[1]/255,c=e[2]/255,i=Math.max(s,l,c),d=i-Math.min(s,l,c),f=function(g){return(i-g)/6/d+1/2};return d===0?(o=0,a=0):(a=d/i,t=f(s),n=f(l),r=f(c),s===i?o=r-n:l===i?o=1/3+t-r:c===i&&(o=2/3+n-t),o<0?o+=1:o>1&&(o-=1)),[o*360,a*100,i*100]};u.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const o=u.rgb.hsl(e)[0],a=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[o,a*100,r*100]};u.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(1-t,1-n,1-r),a=(1-t-o)/(1-o)||0,s=(1-n-o)/(1-o)||0,l=(1-r-o)/(1-o)||0;return[a*100,s*100,l*100,o*100]};function Re(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}u.rgb.keyword=function(e){const t=he[e];if(t)return t;let n=1/0,r;for(const o of Object.keys(F)){const a=F[o],s=Re(e,a);s.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;const o=t*.4124+n*.3576+r*.1805,a=t*.2126+n*.7152+r*.0722,s=t*.0193+n*.1192+r*.9505;return[o*100,a*100,s*100]};u.rgb.lab=function(e){const t=u.rgb.xyz(e);let n=t[0],r=t[1],o=t[2];n/=95.047,r/=100,o/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,o=o>.008856?o**(1/3):7.787*o+16/116;const a=116*r-16,s=500*(n-r),l=200*(r-o);return[a,s,l]};u.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let o,a,s;if(n===0)return s=r*255,[s,s,s];r<.5?o=r*(1+n):o=r+n-r*n;const l=2*r-o,c=[0,0,0];for(let i=0;i<3;i++)a=t+1/3*-(i-1),a<0&&a++,a>1&&a--,6*a<1?s=l+(o-l)*6*a:2*a<1?s=o:3*a<2?s=l+(o-l)*(2/3-a)*6:s=l,c[i]=s*255;return c};u.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,o=n;const a=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,o*=a<=1?a:2-a;const s=(r+n)/2,l=r===0?2*o/(a+o):2*n/(r+n);return[t,l*100,s*100]};u.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const o=Math.floor(t)%6,a=t-Math.floor(t),s=255*r*(1-n),l=255*r*(1-n*a),c=255*r*(1-n*(1-a));switch(r*=255,o){case 0:return[r,c,s];case 1:return[l,r,s];case 2:return[s,r,c];case 3:return[s,l,r];case 4:return[c,s,r];case 5:return[r,s,l]}};u.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,o=Math.max(r,.01);let a,s;s=(2-n)*r;const l=(2-n)*o;return a=n*o,a/=l<=1?l:2-l,a=a||0,s/=2,[t,a*100,s*100]};u.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const o=n+r;let a;o>1&&(n/=o,r/=o);const s=Math.floor(6*t),l=1-r;a=6*t-s,s&1&&(a=1-a);const c=n+a*(l-n);let i,d,f;switch(s){default:case 6:case 0:i=l,d=c,f=n;break;case 1:i=c,d=l,f=n;break;case 2:i=n,d=l,f=c;break;case 3:i=n,d=c,f=l;break;case 4:i=c,d=n,f=l;break;case 5:i=l,d=n,f=c;break}return[i*255,d*255,f*255]};u.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,o=e[3]/100,a=1-Math.min(1,t*(1-o)+o),s=1-Math.min(1,n*(1-o)+o),l=1-Math.min(1,r*(1-o)+o);return[a*255,s*255,l*255]};u.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let o,a,s;return o=t*3.2406+n*-1.5372+r*-.4986,a=t*-.9689+n*1.8758+r*.0415,s=t*.0557+n*-.204+r*1.057,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,o=Math.min(Math.max(0,o),1),a=Math.min(Math.max(0,a),1),s=Math.min(Math.max(0,s),1),[o*255,a*255,s*255]};u.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;const o=116*n-16,a=500*(t-n),s=200*(n-r);return[o,a,s]};u.lab.xyz=function(e){const t=e[0],n=e[1],r=e[2];let o,a,s;a=(t+16)/116,o=n/500+a,s=a-r/200;const l=a**3,c=o**3,i=s**3;return a=l>.008856?l:(a-16/116)/7.787,o=c>.008856?c:(o-16/116)/7.787,s=i>.008856?i:(s-16/116)/7.787,o*=95.047,a*=100,s*=108.883,[o,a,s]};u.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let o;o=Math.atan2(r,n)*360/2/Math.PI,o<0&&(o+=360);const s=Math.sqrt(n*n+r*r);return[t,s,o]};u.lch.lab=function(e){const t=e[0],n=e[1],o=e[2]/360*2*Math.PI,a=n*Math.cos(o),s=n*Math.sin(o);return[t,a,s]};u.rgb.ansi16=function(e,t=null){const[n,r,o]=e;let a=t===null?u.rgb.hsv(e)[2]:t;if(a=Math.round(a/50),a===0)return 30;let s=30+(Math.round(o/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return a===2&&(s+=60),s};u.hsv.ansi16=function(e){return u.rgb.ansi16(u.hsv.rgb(e),e[2])};u.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)};u.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=(~~(e>50)+1)*.5,r=(t&1)*n*255,o=(t>>1&1)*n*255,a=(t>>2&1)*n*255;return[r,o,a]};u.ansi256.rgb=function(e){if(e>=232){const a=(e-232)*10+8;return[a,a,a]}e-=16;let t;const n=Math.floor(e/36)/5*255,r=Math.floor((t=e%36)/6)/5*255,o=t%6/5*255;return[n,r,o]};u.rgb.hex=function(e){const n=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(n.length)+n};u.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];t[0].length===3&&(n=n.split("").map(l=>l+l).join(""));const r=parseInt(n,16),o=r>>16&255,a=r>>8&255,s=r&255;return[o,a,s]};u.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.max(Math.max(t,n),r),a=Math.min(Math.min(t,n),r),s=o-a;let l,c;return s<1?l=a/(1-s):l=0,s<=0?c=0:o===t?c=(n-r)/s%6:o===n?c=2+(r-t)/s:c=4+(t-n)/s,c/=6,c%=1,[c*360,s*100,l*100]};u.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let o=0;return r<1&&(o=(n-.5*r)/(1-r)),[e[0],r*100,o*100]};u.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],r*100,o*100]};u.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(n===0)return[r*255,r*255,r*255];const o=[0,0,0],a=t%1*6,s=a%1,l=1-s;let c=0;switch(Math.floor(a)){case 0:o[0]=1,o[1]=s,o[2]=0;break;case 1:o[0]=l,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=s;break;case 3:o[0]=0,o[1]=l,o[2]=1;break;case 4:o[0]=s,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=l}return c=(1-n)*r,[(n*o[0]+c)*255,(n*o[1]+c)*255,(n*o[2]+c)*255]};u.hcg.hsv=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);let o=0;return r>0&&(o=t/r),[e[0],o*100,r*100]};u.hcg.hsl=function(e){const t=e[1]/100,r=e[2]/100*(1-t)+.5*t;let o=0;return r>0&&r<.5?o=t/(2*r):r>=.5&&r<1&&(o=t/(2*(1-r))),[e[0],o*100,r*100]};u.hcg.hwb=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);return[e[0],(r-t)*100,(1-r)*100]};u.hwb.hcg=function(e){const t=e[1]/100,r=1-e[2]/100,o=r-t;let a=0;return o<1&&(a=(r-o)/(1-o)),[e[0],o*100,a*100]};u.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};u.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};u.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};u.gray.hsl=function(e){return[0,0,e[0]]};u.gray.hsv=u.gray.hsl;u.gray.hwb=function(e){return[0,100,e[0]]};u.gray.cmyk=function(e){return[0,0,0,e[0]]};u.gray.lab=function(e){return[e[0],0,0]};u.gray.hex=function(e){const t=Math.round(e[0]/100*255)&255,r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r};u.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const X=de;function je(){const e={},t=Object.keys(X);for(let n=t.length,r=0;r1&&(n=r),e(n))};return"conversion"in e&&(t.conversion=e.conversion),t}function Be(e){const t=function(...n){const r=n[0];if(r==null)return r;r.length>1&&(n=r);const o=e(n);if(typeof o=="object")for(let a=o.length,s=0;s{N[e]={},Object.defineProperty(N[e],"channels",{value:K[e].channels}),Object.defineProperty(N[e],"labels",{value:K[e].labels});const t=Pe(e);Object.keys(t).forEach(r=>{const o=t[r];N[e][r]=Be(o),N[e][r].raw=qe(o)})});var Xe=N;const _=fe(Xe);var De=Me,We=function(){return De.Date.now()},Ke=We,Ve=/\s/;function Ae(e){for(var t=e.length;t--&&Ve.test(e.charAt(t)););return t}var Ge=Ae,Ue=Ge,Ye=/^\s+/;function Je(e){return e&&e.slice(0,Ue(e)+1).replace(Ye,"")}var Qe=Je,Ze=Qe,te=ie,et=Ce,ne=NaN,tt=/^[-+]0x[0-9a-f]+$/i,nt=/^0b[01]+$/i,rt=/^0o[0-7]+$/i,ot=parseInt;function at(e){if(typeof e=="number")return e;if(et(e))return ne;if(te(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=te(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Ze(e);var n=nt.test(e);return n||rt.test(e)?ot(e.slice(2),n?2:8):tt.test(e)?ne:+e}var st=at,lt=ie,W=Ke,re=st,ct="Expected a function",it=Math.max,ut=Math.min;function ft(e,t,n){var r,o,a,s,l,c,i=0,d=!1,f=!1,g=!0;if(typeof e!="function")throw new TypeError(ct);t=re(t)||0,lt(n)&&(d=!!n.leading,f="maxWait"in n,a=f?it(re(n.maxWait)||0,t):a,g="trailing"in n?!!n.trailing:g);function x(v){var C=r,z=o;return r=o=void 0,i=v,s=e.apply(z,C),s}function j(v){return i=v,l=setTimeout(b,t),d?x(v):s}function M(v){var C=v-c,z=v-i,ee=t-C;return f?ut(ee,a-z):ee}function p(v){var C=v-c,z=v-i;return c===void 0||C>=t||C<0||f&&z>=a}function b(){var v=W();if(p(v))return w(v);l=setTimeout(b,M(v))}function w(v){return l=void 0,g&&r?x(v):(r=o=void 0,s)}function E(){l!==void 0&&clearTimeout(l),i=0,r=c=o=l=void 0}function k(){return l===void 0?s:w(W())}function I(){var v=W(),C=p(v);if(r=arguments,o=this,c=v,C){if(l===void 0)return j(c);if(f)return clearTimeout(l),l=setTimeout(b,t),x(c)}return l===void 0&&(l=setTimeout(b,t)),s}return I.cancel=E,I.flush=k,I}var ht=ft;const dt=fe(ht);function O(){return(O=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}function V(e){var t=m.useRef(e),n=m.useRef(function(r){t.current&&t.current(r)});return t.current=e,n.current}var R=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e0:p.buttons>0)&&o.current?a(oe(o.current,p,l.current)):M(!1)},j=function(){return M(!1)};function M(p){var b=c.current,w=A(o.current),E=p?w.addEventListener:w.removeEventListener;E(b?"touchmove":"mousemove",x),E(b?"touchend":"mouseup",j)}return[function(p){var b=p.nativeEvent,w=o.current;if(w&&(ae(b),!function(k,I){return I&&!H(k)}(b,c.current)&&w)){if(H(b)){c.current=!0;var E=b.changedTouches||[];E.length&&(l.current=E[0].identifier)}w.focus(),a(oe(w,b,l.current)),M(!0)}},function(p){var b=p.which||p.keyCode;b<37||b>40||(p.preventDefault(),s({left:b===39?.05:b===37?-.05:0,top:b===40?.05:b===38?-.05:0}))},M]},[s,a]),d=i[0],f=i[1],g=i[2];return m.useEffect(function(){return g},[g]),h.createElement("div",O({},r,{onTouchStart:d,onMouseDown:d,className:"react-colorful__interactive",ref:o,onKeyDown:f,tabIndex:0,role:"slider"}))}),T=function(e){return e.filter(Boolean).join(" ")},Z=function(e){var t=e.color,n=e.left,r=e.top,o=r===void 0?.5:r,a=T(["react-colorful__pointer",e.className]);return h.createElement("div",{className:a,style:{top:100*o+"%",left:100*n+"%"}},h.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},y=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n},gt={grad:.9,turn:360,rad:360/(2*Math.PI)},mt=function(e){return be(G(e))},G=function(e){return e[0]==="#"&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?y(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:e.length===8?y(parseInt(e.substring(6,8),16)/255,2):1}},bt=function(e,t){return t===void 0&&(t="deg"),Number(e)*(gt[t]||1)},vt=function(e){var t=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?pt({h:bt(t[1],t[2]),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)}):{h:0,s:0,v:0,a:1}},pt=function(e){var t=e.s,n=e.l;return{h:e.h,s:(t*=(n<50?n:100-n)/100)>0?2*t/(n+t)*100:0,v:n+t,a:e.a}},yt=function(e){return wt(me(e))},ge=function(e){var t=e.s,n=e.v,r=e.a,o=(200-t)*n/100;return{h:y(e.h),s:y(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:y(o/2),a:y(r,2)}},U=function(e){var t=ge(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},B=function(e){var t=ge(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},me=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var a=Math.floor(t),s=r*(1-n),l=r*(1-(t-a)*n),c=r*(1-(1-t+a)*n),i=a%6;return{r:y(255*[r,l,s,s,c,r][i]),g:y(255*[c,r,r,l,s,s][i]),b:y(255*[s,s,c,r,r,l][i]),a:y(o,2)}},xt=function(e){var t=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?be({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):{h:0,s:0,v:0,a:1}},P=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},wt=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,a=o<1?P(y(255*o)):"";return"#"+P(t)+P(n)+P(r)+a},be=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,a=Math.max(t,n,r),s=a-Math.min(t,n,r),l=s?a===t?(n-r)/s:a===n?2+(r-t)/s:4+(t-n)/s:0;return{h:y(60*(l<0?l+6:l)),s:y(a?s/a*100:0),v:y(a/255*100),a:o}},ve=h.memo(function(e){var t=e.hue,n=e.onChange,r=T(["react-colorful__hue",e.className]);return h.createElement("div",{className:r},h.createElement(Q,{onMove:function(o){n({h:360*o.left})},onKey:function(o){n({h:R(t+360*o.left,0,360)})},"aria-label":"Hue","aria-valuenow":y(t),"aria-valuemax":"360","aria-valuemin":"0"},h.createElement(Z,{className:"react-colorful__hue-pointer",left:t/360,color:U({h:t,s:100,v:100,a:1})})))}),pe=h.memo(function(e){var t=e.hsva,n=e.onChange,r={backgroundColor:U({h:t.h,s:100,v:100,a:1})};return h.createElement("div",{className:"react-colorful__saturation",style:r},h.createElement(Q,{onMove:function(o){n({s:100*o.left,v:100-100*o.top})},onKey:function(o){n({s:R(t.s+100*o.left,0,100),v:R(t.v-100*o.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+y(t.s)+"%, Brightness "+y(t.v)+"%"},h.createElement(Z,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:U(t)})))}),ye=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0},xe=function(e,t){return e.replace(/\s/g,"")===t.replace(/\s/g,"")},kt=function(e,t){return e.toLowerCase()===t.toLowerCase()||ye(G(e),G(t))};function we(e,t,n){var r=V(n),o=m.useState(function(){return e.toHsva(t)}),a=o[0],s=o[1],l=m.useRef({color:t,hsva:a});m.useEffect(function(){if(!e.equal(t,l.current.color)){var i=e.toHsva(t);l.current={hsva:i,color:t},s(i)}},[t,e]),m.useEffect(function(){var i;ye(a,l.current.hsva)||e.equal(i=e.fromHsva(a),l.current.color)||(l.current={hsva:a,color:i},r(i))},[a,e,r]);var c=m.useCallback(function(i){s(function(d){return Object.assign({},d,i)})},[]);return[a,c]}var _t=typeof window<"u"?m.useLayoutEffect:m.useEffect,Et=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},se=new Map,ke=function(e){_t(function(){var t=e.current?e.current.ownerDocument:document;if(t!==void 0&&!se.has(t)){var n=t.createElement("style");n.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,se.set(t,n);var r=Et();r&&n.setAttribute("nonce",r),t.head.appendChild(n)}},[])},Mt=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,a=e.onChange,s=J(e,["className","colorModel","color","onChange"]),l=m.useRef(null);ke(l);var c=we(n,o,a),i=c[0],d=c[1],f=T(["react-colorful",t]);return h.createElement("div",O({},s,{ref:l,className:f}),h.createElement(pe,{hsva:i,onChange:d}),h.createElement(ve,{hue:i.h,onChange:d,className:"react-colorful__last-control"}))},Ct={defaultColor:"000",toHsva:mt,fromHsva:function(e){return yt({h:e.h,s:e.s,v:e.v,a:1})},equal:kt},$t=function(e){return h.createElement(Mt,O({},e,{colorModel:Ct}))},It=function(e){var t=e.className,n=e.hsva,r=e.onChange,o={backgroundImage:"linear-gradient(90deg, "+B(Object.assign({},n,{a:0}))+", "+B(Object.assign({},n,{a:1}))+")"},a=T(["react-colorful__alpha",t]),s=y(100*n.a);return h.createElement("div",{className:a},h.createElement("div",{className:"react-colorful__alpha-gradient",style:o}),h.createElement(Q,{onMove:function(l){r({a:l.left})},onKey:function(l){r({a:R(n.a+l.left)})},"aria-label":"Alpha","aria-valuetext":s+"%","aria-valuenow":s,"aria-valuemin":"0","aria-valuemax":"100"},h.createElement(Z,{className:"react-colorful__alpha-pointer",left:n.a,color:B(n)})))},_e=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,a=e.onChange,s=J(e,["className","colorModel","color","onChange"]),l=m.useRef(null);ke(l);var c=we(n,o,a),i=c[0],d=c[1],f=T(["react-colorful",t]);return h.createElement("div",O({},s,{ref:l,className:f}),h.createElement(pe,{hsva:i,onChange:d}),h.createElement(ve,{hue:i.h,onChange:d}),h.createElement(It,{hsva:i,onChange:d,className:"react-colorful__last-control"}))},Ot={defaultColor:"hsla(0, 0%, 0%, 1)",toHsva:vt,fromHsva:B,equal:xe},Nt=function(e){return h.createElement(_e,O({},e,{colorModel:Ot}))},St={defaultColor:"rgba(0, 0, 0, 1)",toHsva:xt,fromHsva:function(e){var t=me(e);return"rgba("+t.r+", "+t.g+", "+t.b+", "+t.a+")"},equal:xe},Rt=function(e){return h.createElement(_e,O({},e,{colorModel:St}))},jt=$.div({position:"relative",maxWidth:250,'&[aria-readonly="true"]':{opacity:.5}}),zt=$(ue)({position:"absolute",zIndex:1,top:4,left:4,"[aria-readonly=true] &":{cursor:"not-allowed"}}),Ht=$.div({width:200,margin:5,".react-colorful__saturation":{borderRadius:"4px 4px 0 0"},".react-colorful__hue":{boxShadow:"inset 0 0 0 1px rgb(0 0 0 / 5%)"},".react-colorful__last-control":{borderRadius:"0 0 4px 4px"}}),Ft=$($e)(({theme:e})=>({fontFamily:e.typography.fonts.base})),Tt=$.div({display:"grid",gridTemplateColumns:"repeat(9, 16px)",gap:6,padding:3,marginTop:5,width:200}),Pt=$.div(({theme:e,active:t})=>({width:16,height:16,boxShadow:t?`${e.appBorderColor} 0 0 0 1px inset, ${e.textMutedColor}50 0 0 0 4px`:`${e.appBorderColor} 0 0 0 1px inset`,borderRadius:e.appBorderRadius})),Lt=`url('data:image/svg+xml;charset=utf-8,')`,le=({value:e,style:t,...n})=>{let r=`linear-gradient(${e}, ${e}), ${Lt}, linear-gradient(#fff, #fff)`;return h.createElement(Pt,{...n,style:{...t,backgroundImage:r}})},qt=$(Ie.Input)(({theme:e,readOnly:t})=>({width:"100%",paddingLeft:30,paddingRight:30,boxSizing:"border-box",fontFamily:e.typography.fonts.base})),Bt=$(Oe)(({theme:e})=>({position:"absolute",zIndex:1,top:6,right:7,width:20,height:20,padding:4,boxSizing:"border-box",cursor:"pointer",color:e.input.color})),Ee=(e=>(e.RGB="rgb",e.HSL="hsl",e.HEX="hex",e))(Ee||{}),L=Object.values(Ee),Xt=/\(([0-9]+),\s*([0-9]+)%?,\s*([0-9]+)%?,?\s*([0-9.]+)?\)/,Dt=/^\s*rgba?\(([0-9]+),\s*([0-9]+),\s*([0-9]+),?\s*([0-9.]+)?\)\s*$/i,Wt=/^\s*hsla?\(([0-9]+),\s*([0-9]+)%,\s*([0-9]+)%,?\s*([0-9.]+)?\)\s*$/i,Y=/^\s*#?([0-9a-f]{3}|[0-9a-f]{6})\s*$/i,Kt=/^\s*#?([0-9a-f]{3})\s*$/i,Vt={hex:$t,rgb:Rt,hsl:Nt},q={hex:"transparent",rgb:"rgba(0, 0, 0, 0)",hsl:"hsla(0, 0%, 0%, 0)"},ce=e=>{let t=e==null?void 0:e.match(Xt);if(!t)return[0,0,0,1];let[,n,r,o,a=1]=t;return[n,r,o,a].map(Number)},S=e=>{if(!e)return;let t=!0;if(Dt.test(e)){let[s,l,c,i]=ce(e),[d,f,g]=_.rgb.hsl([s,l,c])||[0,0,0];return{valid:t,value:e,keyword:_.rgb.keyword([s,l,c]),colorSpace:"rgb",rgb:e,hsl:`hsla(${d}, ${f}%, ${g}%, ${i})`,hex:`#${_.rgb.hex([s,l,c]).toLowerCase()}`}}if(Wt.test(e)){let[s,l,c,i]=ce(e),[d,f,g]=_.hsl.rgb([s,l,c])||[0,0,0];return{valid:t,value:e,keyword:_.hsl.keyword([s,l,c]),colorSpace:"hsl",rgb:`rgba(${d}, ${f}, ${g}, ${i})`,hsl:e,hex:`#${_.hsl.hex([s,l,c]).toLowerCase()}`}}let n=e.replace("#",""),r=_.keyword.rgb(n)||_.hex.rgb(n),o=_.rgb.hsl(r),a=e;if(/[^#a-f0-9]/i.test(e)?a=n:Y.test(e)&&(a=`#${n}`),a.startsWith("#"))t=Y.test(a);else try{_.keyword.hex(a)}catch{t=!1}return{valid:t,value:a,keyword:_.rgb.keyword(r),colorSpace:"hex",rgb:`rgba(${r[0]}, ${r[1]}, ${r[2]}, 1)`,hsl:`hsla(${o[0]}, ${o[1]}%, ${o[2]}%, 1)`,hex:a}},At=(e,t,n)=>{if(!e||!(t!=null&&t.valid))return q[n];if(n!=="hex")return(t==null?void 0:t[n])||q[n];if(!t.hex.startsWith("#"))try{return`#${_.keyword.hex(t.hex)}`}catch{return q.hex}let r=t.hex.match(Kt);if(!r)return Y.test(t.hex)?t.hex:q.hex;let[o,a,s]=r[1].split("");return`#${o}${o}${a}${a}${s}${s}`},Gt=(e,t)=>{let[n,r]=m.useState(e||""),[o,a]=m.useState(()=>S(n)),[s,l]=m.useState((o==null?void 0:o.colorSpace)||"hex");m.useEffect(()=>{let f=e||"",g=S(f);r(f),a(g),l((g==null?void 0:g.colorSpace)||"hex")},[e]);let c=m.useMemo(()=>At(n,o,s).toLowerCase(),[n,o,s]),i=m.useCallback(f=>{let g=S(f),x=(g==null?void 0:g.value)||f||"";r(x),x===""&&(a(void 0),t(void 0)),g&&(a(g),l(g.colorSpace),t(g.value))},[t]),d=m.useCallback(()=>{let f=L.indexOf(s)+1;f>=L.length&&(f=0),l(L[f]);let g=(o==null?void 0:o[L[f]])||"";r(g),t(g)},[o,s,t]);return{value:n,realValue:c,updateValue:i,color:o,colorSpace:s,cycleColorSpace:d}},D=e=>e.replace(/\s*/,"").toLowerCase(),Ut=(e,t,n)=>{let[r,o]=m.useState(t!=null&&t.valid?[t]:[]);m.useEffect(()=>{t===void 0&&o([])},[t]);let a=m.useMemo(()=>(e||[]).map(l=>typeof l=="string"?S(l):l.title?{...S(l.color),keyword:l.title}:S(l.color)).concat(r).filter(Boolean).slice(-27),[e,r]),s=m.useCallback(l=>{l!=null&&l.valid&&(a.some(c=>D(c[n])===D(l[n]))||o(c=>c.concat(l)))},[n,a]);return{presets:a,addPreset:s}},Yt=({name:e,value:t,onChange:n,onFocus:r,onBlur:o,presetColors:a,startOpen:s=!1,argType:l})=>{var E;let c=m.useCallback(dt(n,200),[n]),{value:i,realValue:d,updateValue:f,color:g,colorSpace:x,cycleColorSpace:j}=Gt(t,c),{presets:M,addPreset:p}=Ut(a,g,x),b=Vt[x],w=!!((E=l==null?void 0:l.table)!=null&&E.readonly);return h.createElement(jt,{"aria-readonly":w},h.createElement(zt,{startOpen:s,trigger:w?[null]:void 0,closeOnOutsideClick:!0,onVisibleChange:()=>p(g),tooltip:h.createElement(Ht,null,h.createElement(b,{color:d==="transparent"?"#000000":d,onChange:f,onFocus:r,onBlur:o}),M.length>0&&h.createElement(Tt,null,M.map((k,I)=>h.createElement(ue,{key:`${k.value}-${I}`,hasChrome:!1,tooltip:h.createElement(Ft,{note:k.keyword||k.value})},h.createElement(le,{value:k[x],active:g&&D(k[x])===D(g[x]),onClick:()=>f(k.value)})))))},h.createElement(le,{value:d,style:{margin:4}})),h.createElement(qt,{id:Ne(e),value:i,onChange:k=>f(k.target.value),onFocus:k=>k.target.select(),readOnly:w,placeholder:"Choose color..."}),i?h.createElement(Bt,{onClick:j}):null)},ln=Yt;export{Yt as ColorControl,ln as default}; diff --git a/assets/DataTable.stories-BJc3A1SH.js b/assets/DataTable.stories-BJc3A1SH.js new file mode 100644 index 0000000..9ae6473 --- /dev/null +++ b/assets/DataTable.stories-BJc3A1SH.js @@ -0,0 +1,257 @@ +import{j as r}from"./assertThisInitialized-DaBLapIa.js";import{r as l,R as Ze}from"./index-uubelm5h.js";import{j as er,k as rr,s as tr,u as or,l as sr,m as ar,n as nr,o as ir,p as lr,q as u,d as i,r as U,e as $,I as cr,t as ur,v as dr,M as A,F as _,w as B}from"./Graph-ayG64wjf.js";import"./index-CfOt2XX2.js";function mr(e){return rr("MuiFormGroup",e)}er("MuiFormGroup",["root","row","error"]);const hr=e=>{const{classes:t,row:o,error:a}=e;return ir({root:["root",o&&"row",a&&"error"]},mr,t)},gr=tr("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.row&&t.row]}})({display:"flex",flexDirection:"column",flexWrap:"wrap",variants:[{props:{row:!0},style:{flexDirection:"row"}}]}),pr=l.forwardRef(function(t,o){const a=or({props:t,name:"MuiFormGroup"}),{className:d,row:g=!1,...m}=a,h=sr(),p=ar({props:a,muiFormControl:h,states:["error"]}),b={...a,row:g,error:p.error},W=hr(b);return r.jsx(gr,{className:nr(W.root,d),ownerState:b,ref:o,...m})}),br=lr(r.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),Rr={title:"DataTable",component:u,tags:["autodocs"],argTypes:{},parameters:{controls:{expanded:!0}}},G=e=>{const[t,o]=l.useState(0);return r.jsxs(i,{onClick:()=>{var a;o(t+1),(a=e==null?void 0:e.info)!=null&&a.index&&console.log(e.info.index)},children:["Click to increase count: ",t]})},Tr=[{header:"Functional Column",value:e=>e.index,render:e=>{const[t,o]=l.useState(0);return r.jsxs(r.Fragment,{children:[r.jsxs("strong",{children:["Row ",e.index]}),": ",t,r.jsx("br",{}),r.jsx("button",{onClick:()=>o(t+1),children:"Increment Count"})]})}},{header:"Functional Column",value:e=>e.index,render:e=>{const[t,o]=l.useState(0);return r.jsxs(r.Fragment,{children:[r.jsxs("strong",{children:["Row ",e.index]}),": ",t,r.jsx("br",{}),r.jsx("button",{onClick:()=>o(t+1),children:"Increment Count"})]})}},{header:"Functional Column",value:e=>e.index,render:e=>r.jsx(G,{info:e})},{header:"Functional Column",value:e=>e.index,render:e=>r.jsx(G,{info:e})}],n=[{header:"Index",value:e=>e.index},{header:"Text",value:e=>e.text},{header:"Color",value:e=>e.color,render:e=>r.jsx("div",{style:{width:"100%",height:"100%",backgroundColor:e.color},children:" "})},{header:"Description",value:e=>e.description}],xr=[{header:"Index",value:e=>e.index,HeaderRender:()=>r.jsx(i,{children:"Index"}),tooltip:"This is the index column"},{header:"Text",value:e=>e.text},{header:"Color",value:e=>e.color,render:e=>r.jsx("div",{style:{width:"100%",height:"100%",backgroundColor:e.color},children:" "})},{header:"Description",value:e=>e.description,tooltip:"This is the description column"}],s=[{index:0,text:"this_is_row_0",color:"#ff0000",description:"this_is_row_0"},{index:1,text:"this is row 1",color:"#dd0000",description:"this is row 1"},{index:2,text:"this is row 2",color:"#bb0000",description:"this is row 2"},{index:3,text:"this is row 3",color:"#990000",description:"this is row 3"},{index:4,text:"this is row 4",color:"#770000",description:"this is row 4"},{index:5,text:"this is row 5",color:"#550000",description:"this is row 5"},{index:6,text:"this is row 6",color:"#330000",description:"this is row 6"},{index:7,text:"this is row 7",color:"#110000",description:"this is row 7"}],T={args:{rows:s,columns:n,itemsPerPage:4,tableTitle:"Table Title",searchable:!0,hideHeader:!1}},x={args:{rows:[],emptyText:"No Data to Display",columns:n,itemsPerPage:4,tableTitle:"Table Title",searchable:!0}},C={args:{rows:s,columns:n,itemsPerPage:4,tableTitle:"Table Title",searchable:!0,hideHeader:!0}},w={args:{rows:s,columns:n,itemsPerPage:4,tableTitle:"Table Title",searchable:!0,showMoreColumns:!0,noOfDefaultColumns:2}},P={args:{rows:s,columns:n,itemsPerPage:4,tableTitle:"Table Title",searchable:!0,titleHoverInfo:"Here is some more information about this table. Here is some more information about this table.Here is some more information about this table. Here is some more information about this table. Here is some more information about this table. Here is some more information about this table. Here is some more information about this table. Here is some more information about this table. Here is some more information about this table. Here is some more information about this table. Here is some more information about this table. Here is some more information about this table. "}},S={args:{rows:s,columns:Tr,tableTitle:"Table Title",searchable:!0,showMoreColumns:!0,itemsPerPage:5}},f={args:{rows:s,columns:n,itemsPerPage:4,tableTitle:"Table Title",searchable:!0,onRowClick:e=>window.alert(`You clicked on: +Index: ${e.index.toString()} +Text: ${e.text} +Color: ${e.color} +Description: ${e.description}`)}},y={args:{rows:s,columns:n,itemsPerPage:4,tableTitle:"Table Title",searchable:!0},render:e=>{const[t,o]=l.useState(),[a,d]=l.useState(),g=(m,h)=>{o(m),d(h)};return r.jsxs("div",{children:[r.jsx(u,{...e,onDisplayedRowsChange:g}),r.jsxs(i,{children:["Page: ",t]}),r.jsx(i,{children:"Rows: "}),a==null?void 0:a.map(m=>r.jsx(i,{children:JSON.stringify(m)}))]})}},R={args:{rows:s,columns:n,itemsPerPage:4,tableTitle:"Table Title",searchable:!0,headerColor:{backgroundColor:"#1976d2",textColor:"#ffffff"}}},j={args:{rows:s,columns:n,tableTitle:"Table Title"},render:e=>r.jsxs(U,{spacing:2,children:[r.jsx(i,{children:"Default"}),r.jsx(u,{...e}),r.jsx(i,{children:"itemsPerPage = 5"}),r.jsx(u,{...e,itemsPerPage:5}),r.jsx(i,{children:"itemsPerPage = [3,5,10]"}),r.jsx(u,{...e,itemsPerPage:[3,5,10]})]})},k={args:{rows:s,columns:n,itemsPerPage:8,tableTitle:"Table Title",searchable:!0,maxHeight:"300px"}},O={args:{rows:s,columns:n,itemsPerPage:4,tableTitle:"Table Title",searchable:!0,dense:!0}},H={args:{rows:s,columns:n,itemsPerPage:4,tableTitle:"Table Title",searchable:!0,highlighted:{index:6,text:"this is row 6",color:"#330000",description:"this is row 6"}}},D={args:{rows:s,columns:n,itemsPerPage:4,tableTitle:"Table Title",searchable:!0,highlighted:[{index:7,text:"this is row 7",color:"#110000",description:"this is row 7"},{index:0,text:"this is row 0",color:"#ff0000",description:"this is row 0"},{index:5,text:"this is row 5",color:"#550000",description:"this is row 5"}]}},M={args:{rows:s,columns:xr,itemsPerPage:4,tableTitle:"Table Title",searchable:!0,hideHeader:!1}},I={args:{rows:s,columns:n,itemsPerPage:4,tableTitle:"Table Title",showMoreColumns:!0,noOfDefaultColumns:3},render:e=>{const[t,o]=l.useState("");return r.jsxs(r.Fragment,{children:["Search: ",r.jsx("input",{onChange:a=>o(a.target.value)}),r.jsx(u,{search:t,...e})]})}},v={args:{rows:s,columns:n,itemsPerPage:4,tableTitle:"Table Title",showMoreColumns:!0,noOfDefaultColumns:3},render:e=>{const[t,o]=l.useState(0);return r.jsxs(r.Fragment,{children:[r.jsx($,{onClick:()=>o(t-1),children:"<"}),r.jsx($,{onClick:()=>o(t+1),children:">"}),r.jsx(u,{page:t,...e},t)]})}},N={args:{rows:s,columns:n.concat(n),itemsPerPage:10,tableTitle:"Lots of Columns",searchable:!0}},Cr=e=>{const[t,o]=l.useState(!0),[a,d]=l.useState(!1),[g,m]=l.useState(!1),[h,p]=l.useState(()=>(console.log("initialization performed"),null)),b=!!h,W=()=>{console.log("menu closed, state of checkboxes pushed to main state"),p(null)},Ke=c=>{console.log("New Anchor Set"),p(c.currentTarget)},E=(c,Qe)=>{switch(Qe){case 0:o(c.target.checked),e.setX(c.target.checked);break;case 1:d(c.target.checked);break;case 2:m(c.target.checked);break}};return r.jsxs(ur,{children:[r.jsx(U,{direction:"row",alignItems:"flex-start",component:"button",onClick:Ke,children:r.jsx(i,{variant:"body2",children:"Linked Genes"})}),r.jsx(dr,{id:"basic-menu",anchorEl:h,open:b,onClose:W,MenuListProps:{"aria-labelledby":"basic-button"},children:r.jsxs(pr,{children:[r.jsx(A,{children:r.jsx(_,{control:r.jsx(B,{checked:t,onChange:c=>E(c,0)}),label:"Distance"})}),r.jsx(A,{children:r.jsx(_,{control:r.jsx(B,{checked:a,onChange:c=>E(c,1)}),label:"CTCF-ChIAPET"})}),r.jsx(A,{children:r.jsx(_,{control:r.jsx(B,{checked:g,onChange:c=>E(c,2)}),label:"RNAPII-ChIAPET"})})]})})]})},wr=e=>[{header:"Index",value:t=>t.index,tooltip:"This is the Index column. It shows the index of the row."},{header:"Text",value:t=>t.text},{header:"Color",value:t=>t.color,render:t=>r.jsx("div",{style:{width:"100%",height:"100%",backgroundColor:t.color},children:" "})},{header:"Description",value:t=>t.description,unsortable:!0,tooltip:"This is the Description column. It describes the row.",HeaderRender:()=>r.jsx(Cr,{setX:e})}],F={args:{rows:s,itemsPerPage:5,tableTitle:"Header Render Test",searchable:!0},render:e=>{const[t,o]=Ze.useState(null);l.useEffect(()=>console.log(t));const a=l.useCallback(d=>wr(d),[]);return console.log("rendering"),r.jsx(u,{...e,columns:a(o)})}},L={args:{rows:s,columns:n,searchable:!0},render:e=>r.jsxs(U,{spacing:2,children:[r.jsx(i,{children:"Normal String Title"}),r.jsx(u,{...e,tableTitle:"Test Title"}),r.jsx(i,{children:"Custom Typography Title"}),r.jsx(u,{...e,tableTitle:r.jsx(i,{variant:"body2",color:"secondary",children:"Small title"})}),r.jsx(i,{children:"Component title with onClick"}),r.jsx(u,{...e,tableTitle:r.jsxs(U,{direction:"row",alignItems:"center",children:[r.jsx(i,{children:"Click the button -->"}),r.jsx(cr,{onClick:()=>window.alert("Clicked!"),children:r.jsx(br,{})})]})}),r.jsx(i,{children:"Function Component title using hooks"}),r.jsx(u,{...e,tableTitle:r.jsx(G,{})})]})};var z,X,V;T.parameters={...T.parameters,docs:{...(z=T.parameters)==null?void 0:z.docs,source:{originalSource:`{ + args: { + rows: ROWS, + columns: COLUMNS, + itemsPerPage: 4, + tableTitle: 'Table Title', + searchable: true, + hideHeader: false + } +}`,...(V=(X=T.parameters)==null?void 0:X.docs)==null?void 0:V.source}}};var J,Y,q;x.parameters={...x.parameters,docs:{...(J=x.parameters)==null?void 0:J.docs,source:{originalSource:`{ + args: { + rows: [], + emptyText: 'No Data to Display', + columns: COLUMNS, + itemsPerPage: 4, + tableTitle: 'Table Title', + searchable: true + } +}`,...(q=(Y=x.parameters)==null?void 0:Y.docs)==null?void 0:q.source}}};var K,Q,Z;C.parameters={...C.parameters,docs:{...(K=C.parameters)==null?void 0:K.docs,source:{originalSource:`{ + args: { + rows: ROWS, + columns: COLUMNS, + itemsPerPage: 4, + tableTitle: 'Table Title', + searchable: true, + hideHeader: true + } +}`,...(Z=(Q=C.parameters)==null?void 0:Q.docs)==null?void 0:Z.source}}};var ee,re,te;w.parameters={...w.parameters,docs:{...(ee=w.parameters)==null?void 0:ee.docs,source:{originalSource:`{ + args: { + rows: ROWS, + columns: COLUMNS, + itemsPerPage: 4, + tableTitle: 'Table Title', + searchable: true, + showMoreColumns: true, + noOfDefaultColumns: 2 + } +}`,...(te=(re=w.parameters)==null?void 0:re.docs)==null?void 0:te.source}}};var oe,se,ae;P.parameters={...P.parameters,docs:{...(oe=P.parameters)==null?void 0:oe.docs,source:{originalSource:`{ + args: { + rows: ROWS, + columns: COLUMNS, + itemsPerPage: 4, + tableTitle: 'Table Title', + searchable: true, + titleHoverInfo: 'Here is some more information about this table. Here is some more information about this table.' + 'Here is some more information about this table. Here is some more information about this table. ' + 'Here is some more information about this table. Here is some more information about this table. ' + 'Here is some more information about this table. Here is some more information about this table. ' + 'Here is some more information about this table. Here is some more information about this table. ' + 'Here is some more information about this table. Here is some more information about this table. ' + } +}`,...(ae=(se=P.parameters)==null?void 0:se.docs)==null?void 0:ae.source}}};var ne,ie,le;S.parameters={...S.parameters,docs:{...(ne=S.parameters)==null?void 0:ne.docs,source:{originalSource:`{ + args: { + rows: ROWS, + columns: FunctionalRenderCols, + tableTitle: 'Table Title', + searchable: true, + showMoreColumns: true, + itemsPerPage: 5 + } +}`,...(le=(ie=S.parameters)==null?void 0:ie.docs)==null?void 0:le.source}}};var ce,ue,de;f.parameters={...f.parameters,docs:{...(ce=f.parameters)==null?void 0:ce.docs,source:{originalSource:`{ + args: { + rows: ROWS, + columns: COLUMNS, + itemsPerPage: 4, + tableTitle: 'Table Title', + searchable: true, + onRowClick: row => window.alert(\`You clicked on:\\nIndex: \${row.index.toString()}\\nText: \${row.text}\\nColor: \${row.color}\\nDescription: \${row.description}\`) + } +}`,...(de=(ue=f.parameters)==null?void 0:ue.docs)==null?void 0:de.source}}};var me,he,ge;y.parameters={...y.parameters,docs:{...(me=y.parameters)==null?void 0:me.docs,source:{originalSource:`{ + args: { + rows: ROWS, + columns: COLUMNS, + itemsPerPage: 4, + tableTitle: 'Table Title', + searchable: true + }, + render: args => { + const [page, setPage] = useState(); + const [rows, setRows] = useState(); + const handleDisplayedRowsChange = (newPage: number, displayedRows: Row[]) => { + setPage(newPage); + setRows(displayedRows); + }; + return
+ + Page: {page} + Rows: + {rows?.map(row => {JSON.stringify(row)})} +
; + } +}`,...(ge=(he=y.parameters)==null?void 0:he.docs)==null?void 0:ge.source}}};var pe,be,Te;R.parameters={...R.parameters,docs:{...(pe=R.parameters)==null?void 0:pe.docs,source:{originalSource:`{ + args: { + rows: ROWS, + columns: COLUMNS, + itemsPerPage: 4, + tableTitle: 'Table Title', + searchable: true, + headerColor: { + backgroundColor: '#1976d2', + textColor: '#ffffff' + } + } +}`,...(Te=(be=R.parameters)==null?void 0:be.docs)==null?void 0:Te.source}}};var xe,Ce,we;j.parameters={...j.parameters,docs:{...(xe=j.parameters)==null?void 0:xe.docs,source:{originalSource:`{ + args: { + rows: ROWS, + columns: COLUMNS, + tableTitle: "Table Title" + }, + render: args => + Default + + itemsPerPage = 5 + + itemsPerPage = [3,5,10] + + +}`,...(we=(Ce=j.parameters)==null?void 0:Ce.docs)==null?void 0:we.source}}};var Pe,Se,fe;k.parameters={...k.parameters,docs:{...(Pe=k.parameters)==null?void 0:Pe.docs,source:{originalSource:`{ + args: { + rows: ROWS, + columns: COLUMNS, + itemsPerPage: 8, + tableTitle: 'Table Title', + searchable: true, + maxHeight: '300px' + } +}`,...(fe=(Se=k.parameters)==null?void 0:Se.docs)==null?void 0:fe.source}}};var ye,Re,je;O.parameters={...O.parameters,docs:{...(ye=O.parameters)==null?void 0:ye.docs,source:{originalSource:`{ + args: { + rows: ROWS, + columns: COLUMNS, + itemsPerPage: 4, + tableTitle: 'Table Title', + searchable: true, + dense: true + } +}`,...(je=(Re=O.parameters)==null?void 0:Re.docs)==null?void 0:je.source}}};var ke,Oe,He;H.parameters={...H.parameters,docs:{...(ke=H.parameters)==null?void 0:ke.docs,source:{originalSource:`{ + args: { + rows: ROWS, + columns: COLUMNS, + itemsPerPage: 4, + tableTitle: 'Table Title', + searchable: true, + highlighted: { + index: 6, + text: 'this is row 6', + color: '#330000', + description: 'this is row 6' + } + } +}`,...(He=(Oe=H.parameters)==null?void 0:Oe.docs)==null?void 0:He.source}}};var De,Me,Ie;D.parameters={...D.parameters,docs:{...(De=D.parameters)==null?void 0:De.docs,source:{originalSource:`{ + args: { + rows: ROWS, + columns: COLUMNS, + itemsPerPage: 4, + tableTitle: 'Table Title', + searchable: true, + highlighted: [{ + index: 7, + text: 'this is row 7', + color: '#110000', + description: 'this is row 7' + }, { + index: 0, + text: 'this is row 0', + color: '#ff0000', + description: 'this is row 0' + }, { + index: 5, + text: 'this is row 5', + color: '#550000', + description: 'this is row 5' + }] + } +}`,...(Ie=(Me=D.parameters)==null?void 0:Me.docs)==null?void 0:Ie.source}}};var ve,Ne,Fe;M.parameters={...M.parameters,docs:{...(ve=M.parameters)==null?void 0:ve.docs,source:{originalSource:`{ + args: { + rows: ROWS, + columns: COLUMNS2, + itemsPerPage: 4, + tableTitle: 'Table Title', + searchable: true, + hideHeader: false + } +}`,...(Fe=(Ne=M.parameters)==null?void 0:Ne.docs)==null?void 0:Fe.source}}};var Le,Ue,We;I.parameters={...I.parameters,docs:{...(Le=I.parameters)==null?void 0:Le.docs,source:{originalSource:`{ + args: { + rows: ROWS, + columns: COLUMNS, + itemsPerPage: 4, + tableTitle: "Table Title", + showMoreColumns: true, + noOfDefaultColumns: 3 + }, + render: args => { + const [value, setValue] = useState(''); + return <> + Search: setValue(e.target.value)} /> + + ; + } +}`,...(We=(Ue=I.parameters)==null?void 0:Ue.docs)==null?void 0:We.source}}};var Ee,Ae,_e;v.parameters={...v.parameters,docs:{...(Ee=v.parameters)==null?void 0:Ee.docs,source:{originalSource:`{ + args: { + rows: ROWS, + columns: COLUMNS, + itemsPerPage: 4, + tableTitle: "Table Title", + showMoreColumns: true, + noOfDefaultColumns: 3 + }, + render: args => { + const [page, setPage] = useState(0); + return <> + + + + ; + } +}`,...(_e=(Ae=v.parameters)==null?void 0:Ae.docs)==null?void 0:_e.source}}};var Be,Ge,$e;N.parameters={...N.parameters,docs:{...(Be=N.parameters)==null?void 0:Be.docs,source:{originalSource:`{ + args: { + rows: ROWS, + columns: COLUMNS.concat(COLUMNS), + itemsPerPage: 10, + tableTitle: "Lots of Columns", + searchable: true + } +}`,...($e=(Ge=N.parameters)==null?void 0:Ge.docs)==null?void 0:$e.source}}};var ze,Xe,Ve;F.parameters={...F.parameters,docs:{...(ze=F.parameters)==null?void 0:ze.docs,source:{originalSource:`{ + args: { + rows: ROWS, + itemsPerPage: 5, + tableTitle: "Header Render Test", + searchable: true + }, + render: args => { + const [x, setX] = React.useState(null); + useEffect(() => console.log(x)); + const colFunc = useCallback((setter: React.Dispatch>) => { + return headeRenderCOLUMNS(setter); + }, []); + console.log("rendering"); + return ; + } +}`,...(Ve=(Xe=F.parameters)==null?void 0:Xe.docs)==null?void 0:Ve.source}}};var Je,Ye,qe;L.parameters={...L.parameters,docs:{...(Je=L.parameters)==null?void 0:Je.docs,source:{originalSource:`{ + args: { + rows: ROWS, + columns: COLUMNS, + searchable: true + }, + render: args => { + return + Normal String Title + + Custom Typography Title + Small title} /> + Component title with onClick + {"Click the button -->"} window.alert("Clicked!")}>} /> + Function Component title using hooks + } /> + ; + } +}`,...(qe=(Ye=L.parameters)==null?void 0:Ye.docs)==null?void 0:qe.source}}};const jr=["Default","EmptyTable","NoHeader","AddMoreColumnsOnSelect","HoverInfo","FunctionalRender","OnRowClick","OnDisplayedRowsChange","HeaderColored","ItemsPerPage","ConstrainSize","DensePadding","RowHighlight1","RowHighlight2","ColumnHeaderTooltip","ManagedSearchState","ManagedPageState","LotsOfCols","HeaderRender","TitleRender"];export{w as AddMoreColumnsOnSelect,M as ColumnHeaderTooltip,k as ConstrainSize,T as Default,O as DensePadding,x as EmptyTable,S as FunctionalRender,R as HeaderColored,F as HeaderRender,P as HoverInfo,j as ItemsPerPage,N as LotsOfCols,v as ManagedPageState,I as ManagedSearchState,C as NoHeader,y as OnDisplayedRowsChange,f as OnRowClick,H as RowHighlight1,D as RowHighlight2,L as TitleRender,jr as __namedExportsOrder,Rr as default}; diff --git a/assets/DataTable.stories-C0cP0CBW.js b/assets/DataTable.stories-C0cP0CBW.js deleted file mode 100644 index 43927e4..0000000 --- a/assets/DataTable.stories-C0cP0CBW.js +++ /dev/null @@ -1,237 +0,0 @@ -import{j as r}from"./assertThisInitialized-DaBLapIa.js";import{r as l,R as Je}from"./index-uubelm5h.js";import{j as Ye,k as qe,s as Ke,u as Qe,l as Ze,m as er,n as rr,o as sr,p as c,d as m,q as ze,e as _,r as or,t as tr,M as W,F as E,v as A}from"./Graph-YQGnloR9.js";import"./index-CfOt2XX2.js";function ar(e){return qe("MuiFormGroup",e)}Ye("MuiFormGroup",["root","row","error"]);const nr=e=>{const{classes:s,row:a,error:n}=e;return sr({root:["root",a&&"row",n&&"error"]},ar,s)},ir=Ke("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,s)=>{const{ownerState:a}=e;return[s.root,a.row&&s.row]}})({display:"flex",flexDirection:"column",flexWrap:"wrap",variants:[{props:{row:!0},style:{flexDirection:"row"}}]}),lr=l.forwardRef(function(s,a){const n=Qe({props:s,name:"MuiFormGroup"}),{className:d,row:g=!1,...u}=n,h=Ze(),p=er({props:n,muiFormControl:h,states:["error"]}),b={...n,row:g,error:p.error},U=nr(b);return r.jsx(ir,{className:rr(U.root,d),ownerState:b,ref:a,...u})}),br={title:"DataTable",component:c,tags:["autodocs"],argTypes:{},parameters:{controls:{expanded:!0},docs:{description:{component:"@todo These stories should really be cleaned up, especially dense and headerRender"}}}},cr=[{header:"Functional Column",value:e=>e.index,FunctionalRender:()=>{const[e,s]=l.useState(0);return r.jsxs(r.Fragment,{children:[r.jsx("strong",{children:"Index"}),": ",e,r.jsx("br",{}),r.jsx("button",{onClick:()=>s(e+1),children:"Increment Index"})]})}}],t=[{header:"Index",value:e=>e.index},{header:"Text",value:e=>e.text},{header:"Color",value:e=>e.color,render:e=>r.jsx("div",{style:{width:"100%",height:"100%",backgroundColor:e.color},children:" "})},{header:"Description",value:e=>e.description}],ur=[{header:"Index",value:e=>e.index,tooltip:"This is the index column"},{header:"Text",value:e=>e.text},{header:"Color",value:e=>e.color,render:e=>r.jsx("div",{style:{width:"100%",height:"100%",backgroundColor:e.color},children:" "})},{header:"Description",value:e=>e.description,tooltip:"This is the description column"}],o=[{index:0,text:"this_is_row_0",color:"#ff0000",description:"this_is_row_0"},{index:1,text:"this is row 1",color:"#dd0000",description:"this is row 1"},{index:2,text:"this is row 2",color:"#bb0000",description:"this is row 2"},{index:3,text:"this is row 3",color:"#990000",description:"this is row 3"},{index:4,text:"this is row 4",color:"#770000",description:"this is row 4"},{index:5,text:"this is row 5",color:"#550000",description:"this is row 5"},{index:6,text:"this is row 6",color:"#330000",description:"this is row 6"},{index:7,text:"this is row 7",color:"#110000",description:"this is row 7"}],T={args:{rows:o,columns:t,itemsPerPage:4,tableTitle:"Table Title",searchable:!0,hideHeader:!1}},w={args:{rows:[],emptyText:"No Data to Display",columns:t,itemsPerPage:4,tableTitle:"Table Title",searchable:!0}},x={args:{rows:o,columns:t,itemsPerPage:4,tableTitle:"Table Title",searchable:!0,hideHeader:!0}},C={args:{rows:o,columns:t,itemsPerPage:4,tableTitle:"Table Title",searchable:!0,showMoreColumns:!0,noOfDefaultColumns:2}},P={args:{rows:o,columns:t,itemsPerPage:4,tableTitle:"Table Title",searchable:!0,titleHoverInfo:"Here is some more information about this table. Here is some more information about this table.Here is some more information about this table. Here is some more information about this table. Here is some more information about this table. Here is some more information about this table. Here is some more information about this table. Here is some more information about this table. Here is some more information about this table. Here is some more information about this table. Here is some more information about this table. Here is some more information about this table. "}},f={args:{rows:o,columns:cr,tableTitle:"Table Title",searchable:!0,showMoreColumns:!0,noOfDefaultColumns:5}},S={args:{rows:o,columns:t,itemsPerPage:4,tableTitle:"Table Title",searchable:!0,onRowClick:e=>window.alert(`You clicked on: -Index: ${e.index.toString()} -Text: ${e.text} -Color: ${e.color} -Description: ${e.description}`)}},R={args:{rows:o,columns:t,itemsPerPage:4,tableTitle:"Table Title",searchable:!0},render:e=>{const[s,a]=l.useState(),[n,d]=l.useState(),g=(u,h)=>{a(u),d(h)};return r.jsxs("div",{children:[r.jsx(c,{...e,onDisplayedRowsChange:g}),r.jsxs(m,{children:["Page: ",s]}),r.jsx(m,{children:"Rows: "}),n==null?void 0:n.map(u=>r.jsx(m,{children:JSON.stringify(u)}))]})}},O={args:{rows:o,columns:t,itemsPerPage:4,tableTitle:"Table Title",searchable:!0,headerColor:{backgroundColor:"#1976d2",textColor:"#ffffff"}}},y={args:{rows:o,columns:t,tableTitle:"Table Title"},render:e=>r.jsxs(ze,{spacing:2,children:[r.jsx(m,{children:"Default"}),r.jsx(c,{...e}),r.jsx(m,{children:"itemsPerPage = 5"}),r.jsx(c,{...e,itemsPerPage:5}),r.jsx(m,{children:"itemsPerPage = [3,5,10]"}),r.jsx(c,{...e,itemsPerPage:[3,5,10]})]})},H={args:{rows:o,columns:t,itemsPerPage:8,tableTitle:"Table Title",searchable:!0,maxHeight:"300px"}},M={args:{rows:o,columns:t,itemsPerPage:4,tableTitle:"Table Title",searchable:!0,dense:!0}},j={args:{rows:o,columns:t,itemsPerPage:4,tableTitle:"Table Title",searchable:!0,highlighted:{index:6,text:"this is row 6",color:"#330000",description:"this is row 6"}}},D={args:{rows:o,columns:t,itemsPerPage:4,tableTitle:"Table Title",searchable:!0,highlighted:[{index:7,text:"this is row 7",color:"#110000",description:"this is row 7"},{index:0,text:"this is row 0",color:"#ff0000",description:"this is row 0"},{index:5,text:"this is row 5",color:"#550000",description:"this is row 5"}]}},k={args:{rows:o,columns:ur,itemsPerPage:4,tableTitle:"Table Title",searchable:!0,hideHeader:!1}},N={args:{rows:o,columns:t,itemsPerPage:4,tableTitle:"Table Title",showMoreColumns:!0,noOfDefaultColumns:3},render:e=>{const[s,a]=l.useState("");return r.jsxs(r.Fragment,{children:["Search: ",r.jsx("input",{onChange:n=>a(n.target.value)}),r.jsx(c,{search:s,...e})]})}},v={args:{rows:o,columns:t,itemsPerPage:4,tableTitle:"Table Title",showMoreColumns:!0,noOfDefaultColumns:3},render:e=>{const[s,a]=l.useState(0);return r.jsxs(r.Fragment,{children:[r.jsx(_,{onClick:()=>a(s-1),children:"<"}),r.jsx(_,{onClick:()=>a(s+1),children:">"}),r.jsx(c,{page:s,...e},s)]})}},I={args:{rows:o,columns:t.concat(t),itemsPerPage:10,tableTitle:"Lots of Columns",searchable:!0}},mr=e=>[{header:"Index",value:s=>s.index,tooltip:"This is the Index column. It shows the index of the row."},{header:"Text",value:s=>s.text},{header:"Color",value:s=>s.color,render:s=>r.jsx("div",{style:{width:"100%",height:"100%",backgroundColor:s.color},children:" "})},{header:"Description",value:s=>s.description,unsortable:!0,tooltip:"This is the Description column. It describes the row.",HeaderRender:()=>{const[s,a]=l.useState(!0),[n,d]=l.useState(!1),[g,u]=l.useState(!1),[h,p]=l.useState(()=>(console.log("initialization performed"),null)),b=!!h,U=()=>{console.log("menu closed, state of checkboxes pushed to main state"),p(null)},Ve=i=>{console.log("New Anchor Set"),p(i.currentTarget)},F=(i,Xe)=>{switch(Xe){case 0:a(i.target.checked),e(i.target.checked);break;case 1:d(i.target.checked);break;case 2:u(i.target.checked);break}};return r.jsxs(or,{children:[r.jsx(ze,{direction:"row",alignItems:"flex-start",component:"button",onClick:Ve,children:r.jsx(m,{variant:"body2",children:"Linked Genes"})}),r.jsx(tr,{id:"basic-menu",anchorEl:h,open:b,onClose:U,MenuListProps:{"aria-labelledby":"basic-button"},children:r.jsxs(lr,{children:[r.jsx(W,{children:r.jsx(E,{control:r.jsx(A,{checked:s,onChange:i=>F(i,0)}),label:"Distance"})}),r.jsx(W,{children:r.jsx(E,{control:r.jsx(A,{checked:n,onChange:i=>F(i,1)}),label:"CTCF-ChIAPET"})}),r.jsx(W,{children:r.jsx(E,{control:r.jsx(A,{checked:g,onChange:i=>F(i,2)}),label:"RNAPII-ChIAPET"})})]})})]})}}],L={args:{rows:o,columns:[],itemsPerPage:5,tableTitle:"Header Render Test",searchable:!0},render:e=>{const[s,a]=Je.useState(null);return l.useEffect(()=>console.log(s)),r.jsx(c,{...e,columns:mr(a)})}};var G,$,B;T.parameters={...T.parameters,docs:{...(G=T.parameters)==null?void 0:G.docs,source:{originalSource:`{ - args: { - rows: ROWS, - columns: COLUMNS, - itemsPerPage: 4, - tableTitle: 'Table Title', - searchable: true, - hideHeader: false - } -}`,...(B=($=T.parameters)==null?void 0:$.docs)==null?void 0:B.source}}};var z,V,X;w.parameters={...w.parameters,docs:{...(z=w.parameters)==null?void 0:z.docs,source:{originalSource:`{ - args: { - rows: [], - emptyText: 'No Data to Display', - columns: COLUMNS, - itemsPerPage: 4, - tableTitle: 'Table Title', - searchable: true - } -}`,...(X=(V=w.parameters)==null?void 0:V.docs)==null?void 0:X.source}}};var J,Y,q;x.parameters={...x.parameters,docs:{...(J=x.parameters)==null?void 0:J.docs,source:{originalSource:`{ - args: { - rows: ROWS, - columns: COLUMNS, - itemsPerPage: 4, - tableTitle: 'Table Title', - searchable: true, - hideHeader: true - } -}`,...(q=(Y=x.parameters)==null?void 0:Y.docs)==null?void 0:q.source}}};var K,Q,Z;C.parameters={...C.parameters,docs:{...(K=C.parameters)==null?void 0:K.docs,source:{originalSource:`{ - args: { - rows: ROWS, - columns: COLUMNS, - itemsPerPage: 4, - tableTitle: 'Table Title', - searchable: true, - showMoreColumns: true, - noOfDefaultColumns: 2 - } -}`,...(Z=(Q=C.parameters)==null?void 0:Q.docs)==null?void 0:Z.source}}};var ee,re,se;P.parameters={...P.parameters,docs:{...(ee=P.parameters)==null?void 0:ee.docs,source:{originalSource:`{ - args: { - rows: ROWS, - columns: COLUMNS, - itemsPerPage: 4, - tableTitle: 'Table Title', - searchable: true, - titleHoverInfo: 'Here is some more information about this table. Here is some more information about this table.' + 'Here is some more information about this table. Here is some more information about this table. ' + 'Here is some more information about this table. Here is some more information about this table. ' + 'Here is some more information about this table. Here is some more information about this table. ' + 'Here is some more information about this table. Here is some more information about this table. ' + 'Here is some more information about this table. Here is some more information about this table. ' - } -}`,...(se=(re=P.parameters)==null?void 0:re.docs)==null?void 0:se.source}}};var oe,te,ae;f.parameters={...f.parameters,docs:{...(oe=f.parameters)==null?void 0:oe.docs,source:{originalSource:`{ - args: { - rows: ROWS, - columns: FCCOLUMNS, - tableTitle: 'Table Title', - searchable: true, - showMoreColumns: true, - noOfDefaultColumns: 5 - } -}`,...(ae=(te=f.parameters)==null?void 0:te.docs)==null?void 0:ae.source}}};var ne,ie,le;S.parameters={...S.parameters,docs:{...(ne=S.parameters)==null?void 0:ne.docs,source:{originalSource:`{ - args: { - rows: ROWS, - columns: COLUMNS, - itemsPerPage: 4, - tableTitle: 'Table Title', - searchable: true, - onRowClick: row => window.alert(\`You clicked on:\\nIndex: \${row.index.toString()}\\nText: \${row.text}\\nColor: \${row.color}\\nDescription: \${row.description}\`) - } -}`,...(le=(ie=S.parameters)==null?void 0:ie.docs)==null?void 0:le.source}}};var ce,ue,me;R.parameters={...R.parameters,docs:{...(ce=R.parameters)==null?void 0:ce.docs,source:{originalSource:`{ - args: { - rows: ROWS, - columns: COLUMNS, - itemsPerPage: 4, - tableTitle: 'Table Title', - searchable: true - }, - render: args => { - const [page, setPage] = useState(); - const [rows, setRows] = useState(); - const handleDisplayedRowsChange = (newPage: number, displayedRows: Row[]) => { - setPage(newPage); - setRows(displayedRows); - }; - return
- - Page: {page} - Rows: - {rows?.map(row => {JSON.stringify(row)})} -
; - } -}`,...(me=(ue=R.parameters)==null?void 0:ue.docs)==null?void 0:me.source}}};var de,he,ge;O.parameters={...O.parameters,docs:{...(de=O.parameters)==null?void 0:de.docs,source:{originalSource:`{ - args: { - rows: ROWS, - columns: COLUMNS, - itemsPerPage: 4, - tableTitle: 'Table Title', - searchable: true, - headerColor: { - backgroundColor: '#1976d2', - textColor: '#ffffff' - } - } -}`,...(ge=(he=O.parameters)==null?void 0:he.docs)==null?void 0:ge.source}}};var pe,be,Te;y.parameters={...y.parameters,docs:{...(pe=y.parameters)==null?void 0:pe.docs,source:{originalSource:`{ - args: { - rows: ROWS, - columns: COLUMNS, - tableTitle: "Table Title" - }, - render: args => - Default - - itemsPerPage = 5 - - itemsPerPage = [3,5,10] - - -}`,...(Te=(be=y.parameters)==null?void 0:be.docs)==null?void 0:Te.source}}};var we,xe,Ce;H.parameters={...H.parameters,docs:{...(we=H.parameters)==null?void 0:we.docs,source:{originalSource:`{ - args: { - rows: ROWS, - columns: COLUMNS, - itemsPerPage: 8, - tableTitle: 'Table Title', - searchable: true, - maxHeight: '300px' - } -}`,...(Ce=(xe=H.parameters)==null?void 0:xe.docs)==null?void 0:Ce.source}}};var Pe,fe,Se;M.parameters={...M.parameters,docs:{...(Pe=M.parameters)==null?void 0:Pe.docs,source:{originalSource:`{ - args: { - rows: ROWS, - columns: COLUMNS, - itemsPerPage: 4, - tableTitle: 'Table Title', - searchable: true, - dense: true - } -}`,...(Se=(fe=M.parameters)==null?void 0:fe.docs)==null?void 0:Se.source}}};var Re,Oe,ye;j.parameters={...j.parameters,docs:{...(Re=j.parameters)==null?void 0:Re.docs,source:{originalSource:`{ - args: { - rows: ROWS, - columns: COLUMNS, - itemsPerPage: 4, - tableTitle: 'Table Title', - searchable: true, - highlighted: { - index: 6, - text: 'this is row 6', - color: '#330000', - description: 'this is row 6' - } - } -}`,...(ye=(Oe=j.parameters)==null?void 0:Oe.docs)==null?void 0:ye.source}}};var He,Me,je;D.parameters={...D.parameters,docs:{...(He=D.parameters)==null?void 0:He.docs,source:{originalSource:`{ - args: { - rows: ROWS, - columns: COLUMNS, - itemsPerPage: 4, - tableTitle: 'Table Title', - searchable: true, - highlighted: [{ - index: 7, - text: 'this is row 7', - color: '#110000', - description: 'this is row 7' - }, { - index: 0, - text: 'this is row 0', - color: '#ff0000', - description: 'this is row 0' - }, { - index: 5, - text: 'this is row 5', - color: '#550000', - description: 'this is row 5' - }] - } -}`,...(je=(Me=D.parameters)==null?void 0:Me.docs)==null?void 0:je.source}}};var De,ke,Ne;k.parameters={...k.parameters,docs:{...(De=k.parameters)==null?void 0:De.docs,source:{originalSource:`{ - args: { - rows: ROWS, - columns: COLUMNS2, - itemsPerPage: 4, - tableTitle: 'Table Title', - searchable: true, - hideHeader: false - } -}`,...(Ne=(ke=k.parameters)==null?void 0:ke.docs)==null?void 0:Ne.source}}};var ve,Ie,Le;N.parameters={...N.parameters,docs:{...(ve=N.parameters)==null?void 0:ve.docs,source:{originalSource:`{ - args: { - rows: ROWS, - columns: COLUMNS, - itemsPerPage: 4, - tableTitle: "Table Title", - showMoreColumns: true, - noOfDefaultColumns: 3 - }, - render: args => { - const [value, setValue] = useState(''); - return <> - Search: setValue(e.target.value)} /> - - ; - } -}`,...(Le=(Ie=N.parameters)==null?void 0:Ie.docs)==null?void 0:Le.source}}};var Ue,Fe,We;v.parameters={...v.parameters,docs:{...(Ue=v.parameters)==null?void 0:Ue.docs,source:{originalSource:`{ - args: { - rows: ROWS, - columns: COLUMNS, - itemsPerPage: 4, - tableTitle: "Table Title", - showMoreColumns: true, - noOfDefaultColumns: 3 - }, - render: args => { - const [page, setPage] = useState(0); - return <> - - - - ; - } -}`,...(We=(Fe=v.parameters)==null?void 0:Fe.docs)==null?void 0:We.source}}};var Ee,Ae,_e;I.parameters={...I.parameters,docs:{...(Ee=I.parameters)==null?void 0:Ee.docs,source:{originalSource:`{ - args: { - rows: ROWS, - columns: COLUMNS.concat(COLUMNS), - itemsPerPage: 10, - tableTitle: "Lots of Columns", - searchable: true - } -}`,...(_e=(Ae=I.parameters)==null?void 0:Ae.docs)==null?void 0:_e.source}}};var Ge,$e,Be;L.parameters={...L.parameters,docs:{...(Ge=L.parameters)==null?void 0:Ge.docs,source:{originalSource:`{ - args: { - rows: ROWS, - columns: [], - //this will be overwritten - itemsPerPage: 5, - tableTitle: "Header Render Test", - searchable: true - }, - render: args => { - const [x, setX] = React.useState(null); - useEffect(() => console.log(x)); - return ; - } -}`,...(Be=($e=L.parameters)==null?void 0:$e.docs)==null?void 0:Be.source}}};const Tr=["Default","EmptyTable","NoHeader","AddMoreColumnsOnSelect","HoverInfo","FunctionalComponentColumn","OnRowClick","OnDisplayedRowsChange","HeaderColored","ItemsPerPage","ConstrainSize","DensePadding","RowHighlight1","RowHighlight2","ColumnHeaderTooltip","ManagedSearchState","ManagedPageState","LotsOfCols","HeaderRender"];export{C as AddMoreColumnsOnSelect,k as ColumnHeaderTooltip,H as ConstrainSize,T as Default,M as DensePadding,w as EmptyTable,f as FunctionalComponentColumn,O as HeaderColored,L as HeaderRender,P as HoverInfo,y as ItemsPerPage,I as LotsOfCols,v as ManagedPageState,N as ManagedSearchState,x as NoHeader,R as OnDisplayedRowsChange,S as OnRowClick,j as RowHighlight1,D as RowHighlight2,Tr as __namedExportsOrder,br as default}; diff --git a/assets/DocsRenderer-CFRXHY34-BSW2TFFe.js b/assets/DocsRenderer-CFRXHY34-C_SX33Lf.js similarity index 99% rename from assets/DocsRenderer-CFRXHY34-BSW2TFFe.js rename to assets/DocsRenderer-CFRXHY34-C_SX33Lf.js index a5aa569..9a7e953 100644 --- a/assets/DocsRenderer-CFRXHY34-BSW2TFFe.js +++ b/assets/DocsRenderer-CFRXHY34-C_SX33Lf.js @@ -1,5 +1,5 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-DiSMTqGw.js","./iframe-WttpdJI2.js","./index-uubelm5h.js","./assertThisInitialized-DaBLapIa.js","./index-CfOt2XX2.js","./index-D-8MO0q_.js","./index-DmeKSGxc.js","./index-DrFu-skq.js","./react-18-CtsMCmcS.js","./Color-ERTF36HU-Do5AllBJ.js","./index-FeUjBnvO.js"])))=>i.map(i=>d[i]); -var sS=Object.defineProperty;var uS=(e,t,r)=>t in e?sS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var jn=(e,t,r)=>uS(e,typeof t!="symbol"?t+"":t,r);import{_ as Lp}from"./iframe-WttpdJI2.js";import{r as l,R as y,c as ji,g as Ns}from"./index-uubelm5h.js";import{j as X,_ as N3,a as cS,b as dS,c as rt}from"./assertThisInitialized-DaBLapIa.js";import{r as Hs,f as H3}from"./index-CfOt2XX2.js";import{O as j3,P as pS}from"./index-D-8MO0q_.js";import{y as Cm,D as ec}from"./index-DmeKSGxc.js";import{d as fS}from"./index-DrFu-skq.js";import{renderElement as hS,unmountElement as mS}from"./react-18-CtsMCmcS.js";var gS=Object.create,V3=Object.defineProperty,vS=Object.getOwnPropertyDescriptor,U3=Object.getOwnPropertyNames,yS=Object.getPrototypeOf,bS=Object.prototype.hasOwnProperty,La=(e,t)=>function(){return t||(0,e[U3(e)[0]])((t={exports:{}}).exports,t),t.exports},wS=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of U3(t))!bS.call(e,a)&&a!==r&&V3(e,a,{get:()=>t[a],enumerable:!(n=vS(t,a))||n.enumerable});return e},ES=(e,t,r)=>(r=e!=null?gS(yS(e)):{},wS(!e||!e.__esModule?V3(r,"default",{value:e,enumerable:!0}):r,e)),Ct=e=>`control-${e.replace(/\s+/g,"-")}`,js=e=>`set-${e.replace(/\s+/g,"-")}`,xS=Object.create,Op=Object.defineProperty,CS=Object.getOwnPropertyDescriptor,DS=Object.getOwnPropertyNames,SS=Object.getPrototypeOf,AS=Object.prototype.hasOwnProperty,I=(e,t)=>Op(e,"name",{value:t,configurable:!0}),Vi=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),Vs=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),kS=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of DS(t))!AS.call(e,a)&&a!==r&&Op(e,a,{get:()=>t[a],enumerable:!(n=CS(t,a))||n.enumerable});return e},Mp=(e,t,r)=>(r=e!=null?xS(SS(e)):{},kS(t||!e||!e.__esModule?Op(r,"default",{value:e,enumerable:!0}):r,e)),_S=Vs(e=>{(function(){var t=typeof Symbol=="function"&&Symbol.for,r=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,a=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,s=t?Symbol.for("react.provider"):60109,u=t?Symbol.for("react.context"):60110,d=t?Symbol.for("react.async_mode"):60111,f=t?Symbol.for("react.concurrent_mode"):60111,h=t?Symbol.for("react.forward_ref"):60112,p=t?Symbol.for("react.suspense"):60113,m=t?Symbol.for("react.suspense_list"):60120,g=t?Symbol.for("react.memo"):60115,v=t?Symbol.for("react.lazy"):60116,b=t?Symbol.for("react.block"):60121,x=t?Symbol.for("react.fundamental"):60117,E=t?Symbol.for("react.responder"):60118,C=t?Symbol.for("react.scope"):60119;function w(P){return typeof P=="string"||typeof P=="function"||P===a||P===f||P===i||P===o||P===p||P===m||typeof P=="object"&&P!==null&&(P.$$typeof===v||P.$$typeof===g||P.$$typeof===s||P.$$typeof===u||P.$$typeof===h||P.$$typeof===x||P.$$typeof===E||P.$$typeof===C||P.$$typeof===b)}I(w,"isValidElementType");function D(P){if(typeof P=="object"&&P!==null){var st=P.$$typeof;switch(st){case r:var kt=P.type;switch(kt){case d:case f:case a:case i:case o:case p:return kt;default:var Gr=kt&&kt.$$typeof;switch(Gr){case u:case h:case v:case g:case s:return Gr;default:return st}}case n:return st}}}I(D,"typeOf");var S=d,A=f,k=u,F=s,T=r,R=h,L=a,z=v,O=g,$=n,M=i,j=o,K=p,N=!1;function W(P){return N||(N=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),te(P)||D(P)===d}I(W,"isAsyncMode");function te(P){return D(P)===f}I(te,"isConcurrentMode");function ue(P){return D(P)===u}I(ue,"isContextConsumer");function re(P){return D(P)===s}I(re,"isContextProvider");function ae(P){return typeof P=="object"&&P!==null&&P.$$typeof===r}I(ae,"isElement");function H(P){return D(P)===h}I(H,"isForwardRef");function Z(P){return D(P)===a}I(Z,"isFragment");function J(P){return D(P)===v}I(J,"isLazy");function ge(P){return D(P)===g}I(ge,"isMemo");function ke(P){return D(P)===n}I(ke,"isPortal");function At(P){return D(P)===i}I(At,"isProfiler");function Ue(P){return D(P)===o}I(Ue,"isStrictMode");function lt(P){return D(P)===p}I(lt,"isSuspense"),e.AsyncMode=S,e.ConcurrentMode=A,e.ContextConsumer=k,e.ContextProvider=F,e.Element=T,e.ForwardRef=R,e.Fragment=L,e.Lazy=z,e.Memo=O,e.Portal=$,e.Profiler=M,e.StrictMode=j,e.Suspense=K,e.isAsyncMode=W,e.isConcurrentMode=te,e.isContextConsumer=ue,e.isContextProvider=re,e.isElement=ae,e.isForwardRef=H,e.isFragment=Z,e.isLazy=J,e.isMemo=ge,e.isPortal=ke,e.isProfiler=At,e.isStrictMode=Ue,e.isSuspense=lt,e.isValidElementType=w,e.typeOf=D})()}),FS=Vs((e,t)=>{t.exports=_S()}),q3=Vs((e,t)=>{var r=FS(),n={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[r.ForwardRef]=o,s[r.Memo]=i;function u(b){return r.isMemo(b)?i:s[b.$$typeof]||n}I(u,"getStatics");var d=Object.defineProperty,f=Object.getOwnPropertyNames,h=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,m=Object.getPrototypeOf,g=Object.prototype;function v(b,x,E){if(typeof x!="string"){if(g){var C=m(x);C&&C!==g&&v(b,C,E)}var w=f(x);h&&(w=w.concat(h(x)));for(var D=u(b),S=u(x),A=0;A{(function(r){if(typeof e=="object"&&typeof t<"u")t.exports=r();else if(typeof define=="function"&&define.amd)define([],r);else{var n;typeof window<"u"?n=window:typeof global<"u"?n=global:typeof self<"u"?n=self:n=this,n.memoizerific=r()}})(function(){return I(function r(n,a,o){function i(d,f){if(!a[d]){if(!n[d]){var h=typeof Vi=="function"&&Vi;if(!f&&h)return h(d,!0);if(s)return s(d,!0);var p=new Error("Cannot find module '"+d+"'");throw p.code="MODULE_NOT_FOUND",p}var m=a[d]={exports:{}};n[d][0].call(m.exports,function(g){var v=n[d][1][g];return i(v||g)},m,m.exports,r,n,a,o)}return a[d].exports}I(i,"s");for(var s=typeof Vi=="function"&&Vi,u=0;u=0)return this.lastItem=this.list[s],this.list[s].val},o.prototype.set=function(i,s){var u;return this.lastItem&&this.isEqual(this.lastItem.key,i)?(this.lastItem.val=s,this):(u=this.indexOf(i),u>=0?(this.lastItem=this.list[u],this.list[u].val=s,this):(this.lastItem={key:i,val:s},this.list.push(this.lastItem),this.size++,this))},o.prototype.delete=function(i){var s;if(this.lastItem&&this.isEqual(this.lastItem.key,i)&&(this.lastItem=void 0),s=this.indexOf(i),s>=0)return this.size--,this.list.splice(s,1)[0]},o.prototype.has=function(i){var s;return this.lastItem&&this.isEqual(this.lastItem.key,i)?!0:(s=this.indexOf(i),s>=0?(this.lastItem=this.list[s],!0):!1)},o.prototype.forEach=function(i,s){var u;for(u=0;u0&&(E[x]={cacheItem:g,arg:arguments[x]},C?i(h,E):h.push(E),h.length>d&&s(h.shift())),m.wasMemoized=C,m.numArgs=x+1,b},"memoizerific");return m.limit=d,m.wasMemoized=!1,m.cache=f,m.lru=h,m}};function i(d,f){var h=d.length,p=f.length,m,g,v;for(g=0;g=0&&(h=d[m],p=h.cacheItem.get(h.arg),!p||!p.size);m--)h.cacheItem.delete(h.arg)}I(s,"removeCachedResult");function u(d,f){return d===f||d!==d&&f!==f}I(u,"isEqual")},{"map-or-similar":1}]},{},[3])(3)})});function qt(){return qt=Object.assign?Object.assign.bind():function(e){for(var t=1;ti.map(i=>d[i]); +var sS=Object.defineProperty;var uS=(e,t,r)=>t in e?sS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var jn=(e,t,r)=>uS(e,typeof t!="symbol"?t+"":t,r);import{_ as Lp}from"./iframe-D6Wql7qE.js";import{r as l,R as y,c as ji,g as Ns}from"./index-uubelm5h.js";import{j as X,_ as N3,a as cS,b as dS,c as rt}from"./assertThisInitialized-DaBLapIa.js";import{r as Hs,f as H3}from"./index-CfOt2XX2.js";import{O as j3,P as pS}from"./index-D-8MO0q_.js";import{y as Cm,D as ec}from"./index-DmeKSGxc.js";import{d as fS}from"./index-DrFu-skq.js";import{renderElement as hS,unmountElement as mS}from"./react-18-CtsMCmcS.js";var gS=Object.create,V3=Object.defineProperty,vS=Object.getOwnPropertyDescriptor,U3=Object.getOwnPropertyNames,yS=Object.getPrototypeOf,bS=Object.prototype.hasOwnProperty,La=(e,t)=>function(){return t||(0,e[U3(e)[0]])((t={exports:{}}).exports,t),t.exports},wS=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of U3(t))!bS.call(e,a)&&a!==r&&V3(e,a,{get:()=>t[a],enumerable:!(n=vS(t,a))||n.enumerable});return e},ES=(e,t,r)=>(r=e!=null?gS(yS(e)):{},wS(!e||!e.__esModule?V3(r,"default",{value:e,enumerable:!0}):r,e)),Ct=e=>`control-${e.replace(/\s+/g,"-")}`,js=e=>`set-${e.replace(/\s+/g,"-")}`,xS=Object.create,Op=Object.defineProperty,CS=Object.getOwnPropertyDescriptor,DS=Object.getOwnPropertyNames,SS=Object.getPrototypeOf,AS=Object.prototype.hasOwnProperty,I=(e,t)=>Op(e,"name",{value:t,configurable:!0}),Vi=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),Vs=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),kS=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of DS(t))!AS.call(e,a)&&a!==r&&Op(e,a,{get:()=>t[a],enumerable:!(n=CS(t,a))||n.enumerable});return e},Mp=(e,t,r)=>(r=e!=null?xS(SS(e)):{},kS(t||!e||!e.__esModule?Op(r,"default",{value:e,enumerable:!0}):r,e)),_S=Vs(e=>{(function(){var t=typeof Symbol=="function"&&Symbol.for,r=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,a=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,s=t?Symbol.for("react.provider"):60109,u=t?Symbol.for("react.context"):60110,d=t?Symbol.for("react.async_mode"):60111,f=t?Symbol.for("react.concurrent_mode"):60111,h=t?Symbol.for("react.forward_ref"):60112,p=t?Symbol.for("react.suspense"):60113,m=t?Symbol.for("react.suspense_list"):60120,g=t?Symbol.for("react.memo"):60115,v=t?Symbol.for("react.lazy"):60116,b=t?Symbol.for("react.block"):60121,x=t?Symbol.for("react.fundamental"):60117,E=t?Symbol.for("react.responder"):60118,C=t?Symbol.for("react.scope"):60119;function w(P){return typeof P=="string"||typeof P=="function"||P===a||P===f||P===i||P===o||P===p||P===m||typeof P=="object"&&P!==null&&(P.$$typeof===v||P.$$typeof===g||P.$$typeof===s||P.$$typeof===u||P.$$typeof===h||P.$$typeof===x||P.$$typeof===E||P.$$typeof===C||P.$$typeof===b)}I(w,"isValidElementType");function D(P){if(typeof P=="object"&&P!==null){var st=P.$$typeof;switch(st){case r:var kt=P.type;switch(kt){case d:case f:case a:case i:case o:case p:return kt;default:var Gr=kt&&kt.$$typeof;switch(Gr){case u:case h:case v:case g:case s:return Gr;default:return st}}case n:return st}}}I(D,"typeOf");var S=d,A=f,k=u,F=s,T=r,R=h,L=a,z=v,O=g,$=n,M=i,j=o,K=p,N=!1;function W(P){return N||(N=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),te(P)||D(P)===d}I(W,"isAsyncMode");function te(P){return D(P)===f}I(te,"isConcurrentMode");function ue(P){return D(P)===u}I(ue,"isContextConsumer");function re(P){return D(P)===s}I(re,"isContextProvider");function ae(P){return typeof P=="object"&&P!==null&&P.$$typeof===r}I(ae,"isElement");function H(P){return D(P)===h}I(H,"isForwardRef");function Z(P){return D(P)===a}I(Z,"isFragment");function J(P){return D(P)===v}I(J,"isLazy");function ge(P){return D(P)===g}I(ge,"isMemo");function ke(P){return D(P)===n}I(ke,"isPortal");function At(P){return D(P)===i}I(At,"isProfiler");function Ue(P){return D(P)===o}I(Ue,"isStrictMode");function lt(P){return D(P)===p}I(lt,"isSuspense"),e.AsyncMode=S,e.ConcurrentMode=A,e.ContextConsumer=k,e.ContextProvider=F,e.Element=T,e.ForwardRef=R,e.Fragment=L,e.Lazy=z,e.Memo=O,e.Portal=$,e.Profiler=M,e.StrictMode=j,e.Suspense=K,e.isAsyncMode=W,e.isConcurrentMode=te,e.isContextConsumer=ue,e.isContextProvider=re,e.isElement=ae,e.isForwardRef=H,e.isFragment=Z,e.isLazy=J,e.isMemo=ge,e.isPortal=ke,e.isProfiler=At,e.isStrictMode=Ue,e.isSuspense=lt,e.isValidElementType=w,e.typeOf=D})()}),FS=Vs((e,t)=>{t.exports=_S()}),q3=Vs((e,t)=>{var r=FS(),n={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[r.ForwardRef]=o,s[r.Memo]=i;function u(b){return r.isMemo(b)?i:s[b.$$typeof]||n}I(u,"getStatics");var d=Object.defineProperty,f=Object.getOwnPropertyNames,h=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,m=Object.getPrototypeOf,g=Object.prototype;function v(b,x,E){if(typeof x!="string"){if(g){var C=m(x);C&&C!==g&&v(b,C,E)}var w=f(x);h&&(w=w.concat(h(x)));for(var D=u(b),S=u(x),A=0;A{(function(r){if(typeof e=="object"&&typeof t<"u")t.exports=r();else if(typeof define=="function"&&define.amd)define([],r);else{var n;typeof window<"u"?n=window:typeof global<"u"?n=global:typeof self<"u"?n=self:n=this,n.memoizerific=r()}})(function(){return I(function r(n,a,o){function i(d,f){if(!a[d]){if(!n[d]){var h=typeof Vi=="function"&&Vi;if(!f&&h)return h(d,!0);if(s)return s(d,!0);var p=new Error("Cannot find module '"+d+"'");throw p.code="MODULE_NOT_FOUND",p}var m=a[d]={exports:{}};n[d][0].call(m.exports,function(g){var v=n[d][1][g];return i(v||g)},m,m.exports,r,n,a,o)}return a[d].exports}I(i,"s");for(var s=typeof Vi=="function"&&Vi,u=0;u=0)return this.lastItem=this.list[s],this.list[s].val},o.prototype.set=function(i,s){var u;return this.lastItem&&this.isEqual(this.lastItem.key,i)?(this.lastItem.val=s,this):(u=this.indexOf(i),u>=0?(this.lastItem=this.list[u],this.list[u].val=s,this):(this.lastItem={key:i,val:s},this.list.push(this.lastItem),this.size++,this))},o.prototype.delete=function(i){var s;if(this.lastItem&&this.isEqual(this.lastItem.key,i)&&(this.lastItem=void 0),s=this.indexOf(i),s>=0)return this.size--,this.list.splice(s,1)[0]},o.prototype.has=function(i){var s;return this.lastItem&&this.isEqual(this.lastItem.key,i)?!0:(s=this.indexOf(i),s>=0?(this.lastItem=this.list[s],!0):!1)},o.prototype.forEach=function(i,s){var u;for(u=0;u0&&(E[x]={cacheItem:g,arg:arguments[x]},C?i(h,E):h.push(E),h.length>d&&s(h.shift())),m.wasMemoized=C,m.numArgs=x+1,b},"memoizerific");return m.limit=d,m.wasMemoized=!1,m.cache=f,m.lru=h,m}};function i(d,f){var h=d.length,p=f.length,m,g,v;for(g=0;g=0&&(h=d[m],p=h.cacheItem.get(h.arg),!p||!p.size);m--)h.cacheItem.delete(h.arg)}I(s,"removeCachedResult");function u(d,f){return d===f||d!==d&&f!==f}I(u,"isEqual")},{"map-or-similar":1}]},{},[3])(3)})});function qt(){return qt=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?Ce(Oa,--je):0,va--,he===10&&(va=1,Ws--),he}I(eb,"prev");function Pe(){return he=je2||ya(he)>3?"":" "}I(tb,"whitespace");function rb(e,t){for(;--t&&Pe()&&!(he<48||he>102||he>57&&he<65||he>70&&he<97););return Ma(e,Oo()+(t<6&&vt()==32&&Pe()==32))}I(rb,"escaping");function Kl(e){for(;Pe();)switch(he){case e:return je;case 34:case 39:e!==34&&e!==39&&Kl(he);break;case 40:e===41&&Kl(e);break;case 92:Pe();break}return je}I(Kl,"delimiter");function nb(e,t){for(;Pe()&&e+he!==57&&!(e+he===84&&vt()===47););return"/*"+Ma(t,je-1)+"*"+Us(e===47?e:Pe())}I(nb,"commenter");function ab(e){for(;!ya(vt());)Pe();return Ma(e,je)}I(ab,"identifier");function ob(e){return Wp(Po("",null,null,null,[""],e=qp(e),0,[0],e))}I(ob,"compile");function Po(e,t,r,n,a,o,i,s,u){for(var d=0,f=0,h=i,p=0,m=0,g=0,v=1,b=1,x=1,E=0,C="",w=a,D=o,S=n,A=C;b;)switch(g=E,E=Pe()){case 40:if(g!=108&&Ce(A,h-1)==58){Gl(A+=Q(Mo(E),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:A+=Mo(E);break;case 9:case 10:case 13:case 32:A+=tb(g);break;case 92:A+=rb(Oo()-1,7);continue;case 47:switch(vt()){case 42:case 47:Do(ib(nb(Pe(),Oo()),t,r),u);break;default:A+="/"}break;case 123*v:s[d++]=ft(A)*x;case 125*v:case 59:case 0:switch(E){case 0:case 125:b=0;case 59+f:x==-1&&(A=Q(A,/\f/g,"")),m>0&&ft(A)-h&&Do(m>32?Ld(A+";",n,r,h-1):Ld(Q(A," ","")+";",n,r,h-2),u);break;case 59:A+=";";default:if(Do(S=$d(A,t,r,d,f,a,s,C,w=[],D=[],h),o),E===123)if(f===0)Po(A,t,S,S,w,o,h,s,D);else switch(p===99&&Ce(A,3)===110?100:p){case 100:case 108:case 109:case 115:Po(e,S,S,n&&Do($d(e,S,S,0,0,a,s,C,a,w=[],h),D),a,D,h,s,n?w:D);break;default:Po(A,S,S,S,[""],D,0,s,D)}}d=f=m=0,v=x=1,C=A="",h=i;break;case 58:h=1+ft(A),m=g;default:if(v<1){if(E==123)--v;else if(E==125&&v++==0&&eb()==125)continue}switch(A+=Us(E),E*v){case 38:x=f>0?1:(A+="\f",-1);break;case 44:s[d++]=(ft(A)-1)*x,x=1;break;case 64:vt()===45&&(A+=Mo(Pe())),p=vt(),f=h=ft(C=A+=ab(Oo())),E++;break;case 45:g===45&&ft(A)==2&&(v=0)}}return o}I(Po,"parse");function $d(e,t,r,n,a,o,i,s,u,d,f){for(var h=a-1,p=a===0?o:[""],m=qs(p),g=0,v=0,b=0;g0?p[x]+" "+E:Q(E,/&\f/g,p[x])))&&(u[b++]=C);return pi(e,t,r,a===0?jp:s,u,d,f)}I($d,"ruleset");function ib(e,t,r){return pi(e,t,r,Hp,Us(Q3()),ga(e,2,-2),0)}I(ib,"comment");function Ld(e,t,r,n){return pi(e,t,r,Vp,ga(e,0,n),ga(e,n+1,-1),n)}I(Ld,"declaration");function mn(e,t){for(var r="",n=qs(e),a=0;a-1},"isIgnoringComment"),US=I(function(e){return function(t,r,n){if(!(t.type!=="rule"||e.compat)){var a=t.value.match(/(:first|:nth|:nth-last)-child/g);if(a){for(var o=!!t.parent,i=o?t.parent.children:n,s=i.length-1;s>=0;s--){var u=i[s];if(u.line=0;r--)if(!ub(t[r]))return!0;return!1},"isPrependedWithRegularRules"),Am=I(function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},"nullifyElement"),WS=I(function(e,t,r){ub(e)&&(e.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),Am(e)):qS(t,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),Am(e)))},"incorrectImportAlarm");function Gp(e,t){switch(Y3(e,t)){case 5103:return ne+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ne+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ne+e+Wl+e+Re+e+e;case 6828:case 4268:return ne+e+Re+e+e;case 6165:return ne+e+Re+"flex-"+e+e;case 5187:return ne+e+Q(e,/(\w+).+(:[^]+)/,ne+"box-$1$2"+Re+"flex-$1$2")+e;case 5443:return ne+e+Re+"flex-item-"+Q(e,/flex-|-self/,"")+e;case 4675:return ne+e+Re+"flex-line-pack"+Q(e,/align-content|flex-|-self/,"")+e;case 5548:return ne+e+Re+Q(e,"shrink","negative")+e;case 5292:return ne+e+Re+Q(e,"basis","preferred-size")+e;case 6060:return ne+"box-"+Q(e,"-grow","")+ne+e+Re+Q(e,"grow","positive")+e;case 4554:return ne+Q(e,/([^-])(transform)/g,"$1"+ne+"$2")+e;case 6187:return Q(Q(Q(e,/(zoom-|grab)/,ne+"$1"),/(image-set)/,ne+"$1"),e,"")+e;case 5495:case 3959:return Q(e,/(image-set\([^]*)/,ne+"$1$`$1");case 4968:return Q(Q(e,/(.+:)(flex-)?(.*)/,ne+"box-pack:$3"+Re+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ne+e+e;case 4095:case 3583:case 4068:case 2532:return Q(e,/(.+)-inline(.+)/,ne+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ft(e)-1-t>6)switch(Ce(e,t+1)){case 109:if(Ce(e,t+4)!==45)break;case 102:return Q(e,/(.+:)(.+)-([^]+)/,"$1"+ne+"$2-$3$1"+Wl+(Ce(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Gl(e,"stretch")?Gp(Q(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ce(e,t+1)!==115)break;case 6444:switch(Ce(e,ft(e)-3-(~Gl(e,"!important")&&10))){case 107:return Q(e,":",":"+ne)+e;case 101:return Q(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ne+(Ce(e,14)===45?"inline-":"")+"box$3$1"+ne+"$2$3$1"+Re+"$2box$3")+e}break;case 5936:switch(Ce(e,t+11)){case 114:return ne+e+Re+Q(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ne+e+Re+Q(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ne+e+Re+Q(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ne+e+Re+e+e}return e}I(Gp,"prefix");var GS=I(function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Vp:e.return=Gp(e.value,e.length);break;case K3:return mn([Zn(e,{value:Q(e.value,"@","@"+ne)})],n);case jp:if(e.length)return J3(e.props,function(a){switch(Z3(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return mn([Zn(e,{props:[Q(a,/:(read-\w+)/,":"+Wl+"$1")]})],n);case"::placeholder":return mn([Zn(e,{props:[Q(a,/:(plac\w+)/,":"+ne+"input-$1")]}),Zn(e,{props:[Q(a,/:(plac\w+)/,":"+Wl+"$1")]}),Zn(e,{props:[Q(a,/:(plac\w+)/,Re+"input-$1")]})],n)}return""})}},"prefixer"),KS=[GS],YS=I(function(e){var t=e.key;if(!t)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache. If multiple caches share the same key they might "fight" for each other's style elements.`);if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(g){var v=g.getAttribute("data-emotion");v.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var n=e.stylisPlugins||KS;if(/[^a-z-]/.test(t))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+t+'" was passed');var a={},o,i=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(g){for(var v=g.getAttribute("data-emotion").split(" "),b=1;b=4;++n,a-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}I(cb,"murmur2");var QS={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},km=`You have illegal escape sequence in your template literal, most likely inside content's property value. Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';". @@ -558,7 +558,7 @@ ${t}`);let r=t.match(Y$);if(!r)return y.createElement(l.Fragment,null,t);let[,n, * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */const{global:tt}=__STORYBOOK_MODULE_GLOBAL__,{deprecate:uee,once:cee,logger:fm}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{filterArgTypes:D3,composeConfigs:fae,Preview:hae,DocsContext:mae}=__STORYBOOK_MODULE_PREVIEW_API__,{STORY_ARGS_UPDATED:S3,UPDATE_STORY_ARGS:dee,RESET_STORY_ARGS:pee,GLOBALS_UPDATED:A3,NAVIGATE_URL:fee}=__STORYBOOK_MODULE_CORE_EVENTS__;__STORYBOOK_MODULE_CHANNELS__;var hee=La({"../../node_modules/tocbot/src/js/default-options.js"(e,t){t.exports={tocSelector:".js-toc",contentSelector:".js-toc-content",headingSelector:"h1, h2, h3",ignoreSelector:".js-toc-ignore",hasInnerContainers:!1,linkClass:"toc-link",extraLinkClasses:"",activeLinkClass:"is-active-link",listClass:"toc-list",extraListClasses:"",isCollapsedClass:"is-collapsed",collapsibleClass:"is-collapsible",listItemClass:"toc-list-item",activeListItemClass:"is-active-li",collapseDepth:0,scrollSmooth:!0,scrollSmoothDuration:420,scrollSmoothOffset:0,scrollEndCallback:function(r){},headingsOffset:1,throttleTimeout:50,positionFixedSelector:null,positionFixedClass:"is-position-fixed",fixedSidebarOffset:"auto",includeHtml:!1,includeTitleTags:!1,onClick:function(r){},orderedList:!0,scrollContainer:null,skipRendering:!1,headingLabelCallback:!1,ignoreHiddenElements:!1,headingObjectCallback:null,basePath:"",disableTocScrollSync:!1,tocScrollOffset:0}}}),mee=La({"../../node_modules/tocbot/src/js/build-html.js"(e,t){t.exports=function(r){var n=[].forEach,a=[].some,o=document.body,i,s=!0,u=" ";function d(w,D){var S=D.appendChild(h(w));if(w.children.length){var A=p(w.isCollapsed);w.children.forEach(function(k){d(k,A)}),S.appendChild(A)}}function f(w,D){var S=!1,A=p(S);if(D.forEach(function(k){d(k,A)}),i=w||i,i!==null)return i.firstChild&&i.removeChild(i.firstChild),D.length===0?i:i.appendChild(A)}function h(w){var D=document.createElement("li"),S=document.createElement("a");return r.listItemClass&&D.setAttribute("class",r.listItemClass),r.onClick&&(S.onclick=r.onClick),r.includeTitleTags&&S.setAttribute("title",w.textContent),r.includeHtml&&w.childNodes.length?n.call(w.childNodes,function(A){S.appendChild(A.cloneNode(!0))}):S.textContent=w.textContent,S.setAttribute("href",r.basePath+"#"+w.id),S.setAttribute("class",r.linkClass+u+"node-name--"+w.nodeName+u+r.extraLinkClasses),D.appendChild(S),D}function p(w){var D=r.orderedList?"ol":"ul",S=document.createElement(D),A=r.listClass+u+r.extraListClasses;return w&&(A=A+u+r.collapsibleClass,A=A+u+r.isCollapsedClass),S.setAttribute("class",A),S}function m(){if(r.scrollContainer&&document.querySelector(r.scrollContainer)){var w;w=document.querySelector(r.scrollContainer).scrollTop}else w=document.documentElement.scrollTop||o.scrollTop;var D=document.querySelector(r.positionFixedSelector);r.fixedSidebarOffset==="auto"&&(r.fixedSidebarOffset=i.offsetTop),w>r.fixedSidebarOffset?D.className.indexOf(r.positionFixedClass)===-1&&(D.className+=u+r.positionFixedClass):D.className=D.className.replace(u+r.positionFixedClass,"")}function g(w){var D=0;return w!==null&&(D=w.offsetTop,r.hasInnerContainers&&(D+=g(w.offsetParent))),D}function v(w,D){return w&&w.className!==D&&(w.className=D),w}function b(w){if(r.scrollContainer&&document.querySelector(r.scrollContainer)){var D;D=document.querySelector(r.scrollContainer).scrollTop}else D=document.documentElement.scrollTop||o.scrollTop;r.positionFixedSelector&&m();var S=w,A;if(s&&i!==null&&S.length>0){a.call(S,function(O,$){if(g(O)>D+r.headingsOffset+10){var M=$===0?$:$-1;return A=S[M],!0}else if($===S.length-1)return A=S[S.length-1],!0});var k=i.querySelector("."+r.activeLinkClass),F=i.querySelector("."+r.linkClass+".node-name--"+A.nodeName+'[href="'+r.basePath+"#"+A.id.replace(/([ #;&,.+*~':"!^$[\]()=>|/\\@])/g,"\\$1")+'"]');if(k===F)return;var T=i.querySelectorAll("."+r.linkClass);n.call(T,function(O){v(O,O.className.replace(u+r.activeLinkClass,""))});var R=i.querySelectorAll("."+r.listItemClass);n.call(R,function(O){v(O,O.className.replace(u+r.activeListItemClass,""))}),F&&F.className.indexOf(r.activeLinkClass)===-1&&(F.className+=u+r.activeLinkClass);var L=F&&F.parentNode;L&&L.className.indexOf(r.activeListItemClass)===-1&&(L.className+=u+r.activeListItemClass);var z=i.querySelectorAll("."+r.listClass+"."+r.collapsibleClass);n.call(z,function(O){O.className.indexOf(r.isCollapsedClass)===-1&&(O.className+=u+r.isCollapsedClass)}),F&&F.nextSibling&&F.nextSibling.className.indexOf(r.isCollapsedClass)!==-1&&v(F.nextSibling,F.nextSibling.className.replace(u+r.isCollapsedClass,"")),x(F&&F.parentNode.parentNode)}}function x(w){return w&&w.className.indexOf(r.collapsibleClass)!==-1&&w.className.indexOf(r.isCollapsedClass)!==-1?(v(w,w.className.replace(u+r.isCollapsedClass,"")),x(w.parentNode.parentNode)):w}function E(w){var D=w.target||w.srcElement;typeof D.className!="string"||D.className.indexOf(r.linkClass)===-1||(s=!1)}function C(){s=!0}return{enableTocAnimation:C,disableTocAnimation:E,render:f,updateToc:b}}}}),gee=La({"../../node_modules/tocbot/src/js/parse-content.js"(e,t){t.exports=function(r){var n=[].reduce;function a(h){return h[h.length-1]}function o(h){return+h.nodeName.toUpperCase().replace("H","")}function i(h){try{return h instanceof window.HTMLElement||h instanceof window.parent.HTMLElement}catch{return h instanceof window.HTMLElement}}function s(h){if(!i(h))return h;if(r.ignoreHiddenElements&&(!h.offsetHeight||!h.offsetParent))return null;let p=h.getAttribute("data-heading-label")||(r.headingLabelCallback?String(r.headingLabelCallback(h.innerText)):(h.innerText||h.textContent).trim());var m={id:h.id,children:[],nodeName:h.nodeName,headingLevel:o(h),textContent:p};return r.includeHtml&&(m.childNodes=h.childNodes),r.headingObjectCallback?r.headingObjectCallback(m,h):m}function u(h,p){for(var m=s(h),g=m.headingLevel,v=p,b=a(v),x=b?b.headingLevel:0,E=g-x;E>0&&(b=a(v),!(b&&g===b.headingLevel));)b&&b.children!==void 0&&(v=b.children),E--;return g>=r.collapseDepth&&(m.isCollapsed=!0),v.push(m),v}function d(h,p){var m=p;r.ignoreSelector&&(m=p.split(",").map(function(g){return g.trim()+":not("+r.ignoreSelector+")"}));try{return h.querySelectorAll(m)}catch{return console.warn("Headers not found with selector: "+m),null}}function f(h){return n.call(h,function(p,m){var g=s(m);return g&&u(g,p.nest),p},{nest:[]})}return{nestHeadingsArray:f,selectHeadings:d}}}}),vee=La({"../../node_modules/tocbot/src/js/update-toc-scroll.js"(e,t){t.exports=function(r){var n=r.tocElement||document.querySelector(r.tocSelector);if(n&&n.scrollHeight>n.clientHeight){var a=n.querySelector("."+r.activeListItemClass);a&&(n.scrollTop=a.offsetTop-r.tocScrollOffset)}}}}),yee=La({"../../node_modules/tocbot/src/js/scroll-smooth/index.js"(e){e.initSmoothScrolling=t;function t(n){var a=n.duration,o=n.offset,i=location.hash?d(location.href):location.href;s();function s(){document.body.addEventListener("click",h,!1);function h(p){!u(p.target)||p.target.className.indexOf("no-smooth-scroll")>-1||p.target.href.charAt(p.target.href.length-2)==="#"&&p.target.href.charAt(p.target.href.length-1)==="!"||p.target.className.indexOf(n.linkClass)===-1||r(p.target.hash,{duration:a,offset:o,callback:function(){f(p.target.hash)}})}}function u(h){return h.tagName.toLowerCase()==="a"&&(h.hash.length>0||h.href.charAt(h.href.length-1)==="#")&&(d(h.href)===i||d(h.href)+"#"===i)}function d(h){return h.slice(0,h.lastIndexOf("#"))}function f(h){var p=document.getElementById(h.substring(1));p&&(/^(?:a|select|input|button|textarea)$/i.test(p.tagName)||(p.tabIndex=-1),p.focus())}}function r(n,a){var o=window.pageYOffset,i={duration:a.duration,offset:a.offset||0,callback:a.callback,easing:a.easing||g},s=document.querySelector('[id="'+decodeURI(n).split("#").join("")+'"]')||document.querySelector('[id="'+n.split("#").join("")+'"]'),u=typeof n=="string"?i.offset+(n?s&&s.getBoundingClientRect().top||0:-(document.documentElement.scrollTop||document.body.scrollTop)):n,d=typeof i.duration=="function"?i.duration(u):i.duration,f,h;requestAnimationFrame(function(v){f=v,p(v)});function p(v){h=v-f,window.scrollTo(0,i.easing(h,o,u,d)),h"u"&&!h)return;var p,m=Object.prototype.hasOwnProperty;function g(){for(var E={},C=0;C({backgroundColor:e.base==="light"?"rgba(0,0,0,.01)":"rgba(255,255,255,.01)",borderRadius:e.appBorderRadius,border:`1px dashed ${e.appBorderColor}`,display:"flex",alignItems:"center",justifyContent:"center",padding:20,margin:"25px 0 40px",color:se(.3,e.color.defaultText),fontSize:e.typography.size.s2})),BD=e=>y.createElement(wee,{...e,className:"docblock-emptyblock sb-unstyled"}),Eee=_(Th)(({theme:e})=>({fontSize:`${e.typography.size.s2-1}px`,lineHeight:"19px",margin:"25px 0 40px",borderRadius:e.appBorderRadius,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0","pre.prismjs":{padding:20,background:"inherit"}})),xee=_.div(({theme:e})=>({background:e.background.content,borderRadius:e.appBorderRadius,border:`1px solid ${e.appBorderColor}`,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",margin:"25px 0 40px",padding:"20px 20px 20px 22px"})),wl=_.div(({theme:e})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,height:17,marginTop:1,width:"60%",[`&:first-child${Nd}`]:{margin:0}})),Cee=()=>y.createElement(xee,null,y.createElement(wl,null),y.createElement(wl,{style:{width:"80%"}}),y.createElement(wl,{style:{width:"30%"}}),y.createElement(wl,{style:{width:"80%"}})),zD=({isLoading:e,error:t,language:r,code:n,dark:a,format:o=!1,...i})=>{let{typography:s}=gb();if(e)return y.createElement(Cee,null);if(t)return y.createElement(BD,null,t);let u=y.createElement(Eee,{bordered:!0,copyable:!0,format:o,language:r,className:"docblock-source sb-unstyled",...i},n);if(typeof a>"u")return u;let d=a?Md.dark:Md.light;return y.createElement(vb,{theme:Pd({...d,fontCode:s.fonts.mono,fontBase:s.fonts.base})},u)},ve=e=>`& :where(${e}:not(.sb-anchor, .sb-unstyled, .sb-unstyled ${e}))`,hm=600,Dee=_.h1(de,({theme:e})=>({color:e.color.defaultText,fontSize:e.typography.size.m3,fontWeight:e.typography.weight.bold,lineHeight:"32px",[`@media (min-width: ${hm}px)`]:{fontSize:e.typography.size.l1,lineHeight:"36px",marginBottom:"16px"}})),See=_.h2(de,({theme:e})=>({fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s3,lineHeight:"20px",borderBottom:"none",marginBottom:15,[`@media (min-width: ${hm}px)`]:{fontSize:e.typography.size.m1,lineHeight:"28px",marginBottom:24},color:se(.25,e.color.defaultText)})),Aee=_.div(({theme:e})=>{let t={fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"},r={margin:"20px 0 8px",padding:0,cursor:"text",position:"relative",color:e.color.defaultText,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& code":{fontSize:"inherit"}},n={lineHeight:1,margin:"0 2px",padding:"3px 5px",whiteSpace:"nowrap",borderRadius:3,fontSize:e.typography.size.s2-1,border:e.base==="light"?`1px solid ${e.color.mediumlight}`:`1px solid ${e.color.darker}`,color:e.base==="light"?se(.1,e.color.defaultText):se(.3,e.color.defaultText),backgroundColor:e.base==="light"?e.color.lighter:e.color.border};return{maxWidth:1e3,width:"100%",[ve("a")]:{...t,fontSize:"inherit",lineHeight:"24px",color:e.color.secondary,textDecoration:"none","&.absent":{color:"#cc0000"},"&.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0}},[ve("blockquote")]:{...t,margin:"16px 0",borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},[ve("div")]:t,[ve("dl")]:{...t,margin:"16px 0",padding:0,"& dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",padding:0,margin:"16px 0 4px"},"& dt:first-of-type":{padding:0},"& dt > :first-of-type":{marginTop:0},"& dt > :last-child":{marginBottom:0},"& dd":{margin:"0 0 16px",padding:"0 15px"},"& dd > :first-of-type":{marginTop:0},"& dd > :last-child":{marginBottom:0}},[ve("h1")]:{...t,...r,fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},[ve("h2")]:{...t,...r,fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`},[ve("h3")]:{...t,...r,fontSize:`${e.typography.size.m1}px`,fontWeight:e.typography.weight.bold},[ve("h4")]:{...t,...r,fontSize:`${e.typography.size.s3}px`},[ve("h5")]:{...t,...r,fontSize:`${e.typography.size.s2}px`},[ve("h6")]:{...t,...r,fontSize:`${e.typography.size.s2}px`,color:e.color.dark},[ve("hr")]:{border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},[ve("img")]:{maxWidth:"100%"},[ve("li")]:{...t,fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":n},[ve("ol")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},[ve("p")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":n},[ve("pre")]:{...t,fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0","&:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"& pre, &.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px",code:{color:"inherit",fontSize:"inherit"}},"& code":{whiteSpace:"pre"},"& code, & tt":{border:"none"}},[ve("span")]:{...t,"&.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"&.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"&.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"&.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"&.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}}},[ve("table")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:e.appContentBg,margin:0,padding:0},"& tr:nth-of-type(2n)":{backgroundColor:e.base==="dark"?e.color.darker:e.color.lighter},"& tr th":{fontWeight:"bold",color:e.color.defaultText,border:`1px solid ${e.appBorderColor}`,margin:0,padding:"6px 13px"},"& tr td":{border:`1px solid ${e.appBorderColor}`,color:e.color.defaultText,margin:0,padding:"6px 13px"},"& tr th :first-of-type, & tr td :first-of-type":{marginTop:0},"& tr th :last-child, & tr td :last-child":{marginBottom:0}},[ve("ul")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0},listStyle:"disc"}}}),kee=_.div(({theme:e})=>({background:e.background.content,display:"flex",justifyContent:"center",padding:"4rem 20px",minHeight:"100vh",boxSizing:"border-box",gap:"3rem",[`@media (min-width: ${hm}px)`]:{}})),_ee=({children:e,toc:t})=>y.createElement(kee,{className:"sbdocs sbdocs-wrapper"},y.createElement(Aee,{className:"sbdocs sbdocs-content"},e),t),Zu=e=>({borderRadius:e.appBorderRadius,background:e.background.content,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",border:`1px solid ${e.appBorderColor}`}),{window:Fee}=tt,Iee=class extends l.Component{constructor(){super(...arguments),this.iframe=null}componentDidMount(){let{id:e}=this.props;this.iframe=Fee.document.getElementById(e)}shouldComponentUpdate(e){let{scale:t}=e;return t!==this.props.scale&&this.setIframeBodyStyle({width:`${t*100}%`,height:`${t*100}%`,transform:`scale(${1/t})`,transformOrigin:"top left"}),!1}setIframeBodyStyle(e){return Object.assign(this.iframe.contentDocument.body.style,e)}render(){let{id:e,title:t,src:r,allowFullScreen:n,scale:a,...o}=this.props;return y.createElement("iframe",{id:e,title:t,src:r,...n?{allow:"fullscreen"}:{},loading:"lazy",...o})}},$D=l.createContext({scale:1}),{PREVIEW_URL:Tee}=tt,Ree=Tee||"iframe.html",Fp=({story:e,primary:t})=>`story--${e.id}${t?"--primary":""}`,Bee=e=>{let t=l.useRef(),[r,n]=l.useState(!0),[a,o]=l.useState(),{story:i,height:s,autoplay:u,forceInitialArgs:d,renderStoryToElement:f}=e;return l.useEffect(()=>{if(!(i&&t.current))return()=>{};let h=t.current,p=f(i,h,{showMain:()=>{},showError:({title:m,description:g})=>o(new Error(`${m} - ${g}`)),showException:m=>o(m)},{autoplay:u,forceInitialArgs:d});return n(!1),()=>{Promise.resolve().then(()=>p())}},[u,f,i]),a?y.createElement("pre",null,y.createElement(Q$,{error:a})):y.createElement(y.Fragment,null,s?y.createElement("style",null,`#${Fp(e)} { min-height: ${s}; transform: translateZ(0); overflow: auto }`):null,r&&y.createElement(LD,null),y.createElement("div",{ref:t,id:`${Fp(e)}-inner`,"data-name":i.name}))},zee=({story:e,height:t="500px"})=>y.createElement("div",{style:{width:"100%",height:t}},y.createElement($D.Consumer,null,({scale:r})=>y.createElement(Iee,{key:"iframe",id:`iframe--${e.id}`,title:e.name,src:xO(Ree,e.id,{viewMode:"story"}),allowFullScreen:!0,scale:r,style:{width:"100%",height:"100%",border:"0 none"}}))),$ee=_.strong(({theme:e})=>({color:e.color.orange})),Lee=e=>{let{inline:t,story:r}=e;return t&&!e.autoplay&&r.usesMount?y.createElement($ee,null,"This story mounts inside of play. Set"," ",y.createElement("a",{href:"https://storybook.js.org/docs/api/doc-blocks/doc-block-story#autoplay"},"autoplay")," ","to true to view this story."):y.createElement("div",{id:Fp(e),className:"sb-story sb-unstyled","data-story-block":"true"},t?y.createElement(Bee,{...e}):y.createElement(zee,{...e}))},LD=()=>y.createElement(EO,null),Oee=_(Hh)({position:"absolute",left:0,right:0,top:0,transition:"transform .2s linear"}),Mee=_.div({display:"flex",alignItems:"center",gap:4}),Pee=_.div(({theme:e})=>({width:14,height:14,borderRadius:2,margin:"0 7px",backgroundColor:e.appBorderColor,animation:`${e.animation.glow} 1.5s ease-in-out infinite`})),Nee=({isLoading:e,storyId:t,baseUrl:r,zoom:n,resetZoom:a,...o})=>y.createElement(Oee,{...o},y.createElement(Mee,{key:"left"},e?[1,2,3].map(i=>y.createElement(Pee,{key:i})):y.createElement(y.Fragment,null,y.createElement(yn,{key:"zoomin",onClick:i=>{i.preventDefault(),n(.8)},title:"Zoom in"},y.createElement(cM,null)),y.createElement(yn,{key:"zoomout",onClick:i=>{i.preventDefault(),n(1.25)},title:"Zoom out"},y.createElement(dM,null)),y.createElement(yn,{key:"zoomreset",onClick:i=>{i.preventDefault(),a()},title:"Reset zoom"},y.createElement(pM,null))))),Hee=_.div(({isColumn:e,columns:t,layout:r})=>({display:e||!t?"block":"flex",position:"relative",flexWrap:"wrap",overflow:"auto",flexDirection:e?"column":"row","& .innerZoomElementWrapper > *":e?{width:r!=="fullscreen"?"calc(100% - 20px)":"100%",display:"block"}:{maxWidth:r!=="fullscreen"?"calc(100% - 20px)":"100%",display:"inline-block"}}),({layout:e="padded"})=>e==="centered"||e==="padded"?{padding:"30px 20px","& .innerZoomElementWrapper > *":{width:"auto",border:"10px solid transparent!important"}}:{},({layout:e="padded"})=>e==="centered"?{display:"flex",justifyContent:"center",justifyItems:"center",alignContent:"center",alignItems:"center"}:{},({columns:e})=>e&&e>1?{".innerZoomElementWrapper > *":{minWidth:`calc(100% / ${e} - 20px)`}}:{}),k3=_(zD)(({theme:e})=>({margin:0,borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomLeftRadius:e.appBorderRadius,borderBottomRightRadius:e.appBorderRadius,border:"none",background:e.base==="light"?"rgba(0, 0, 0, 0.85)":$t(.05,e.background.content),color:e.color.lightest,button:{background:e.base==="light"?"rgba(0, 0, 0, 0.85)":$t(.05,e.background.content)}})),jee=_.div(({theme:e,withSource:t,isExpanded:r})=>({position:"relative",overflow:"hidden",margin:"25px 0 40px",...Zu(e),borderBottomLeftRadius:t&&r&&0,borderBottomRightRadius:t&&r&&0,borderBottomWidth:r&&0,"h3 + &":{marginTop:"16px"}}),({withToolbar:e})=>e&&{paddingTop:40}),Vee=(e,t,r)=>{switch(!0){case!!(e&&e.error):return{source:null,actionItem:{title:"No code available",className:"docblock-code-toggle docblock-code-toggle--disabled",disabled:!0,onClick:()=>r(!1)}};case t:return{source:y.createElement(k3,{...e,dark:!0}),actionItem:{title:"Hide code",className:"docblock-code-toggle docblock-code-toggle--expanded",onClick:()=>r(!1)}};default:return{source:y.createElement(k3,{...e,dark:!0}),actionItem:{title:"Show code",className:"docblock-code-toggle",onClick:()=>r(!0)}}}};function Uee(e){if(l.Children.count(e)===1){let t=e;if(t.props)return t.props.id}return null}var qee=_(Nee)({position:"absolute",top:0,left:0,right:0,height:40}),Wee=_.div({overflow:"hidden",position:"relative"}),OD=({isLoading:e,isColumn:t,columns:r,children:n,withSource:a,withToolbar:o=!1,isExpanded:i=!1,additionalActions:s,className:u,layout:d="padded",...f})=>{let[h,p]=l.useState(i),{source:m,actionItem:g}=Vee(a,h,p),[v,b]=l.useState(1),x=[u].concat(["sbdocs","sbdocs-preview","sb-unstyled"]),E=a?[g]:[],[C,w]=l.useState(s?[...s]:[]),D=[...E,...C],{window:S}=tt,A=l.useCallback(async F=>{let{createCopyToClipboardFunction:T}=await Lp(()=>import("./index-DiSMTqGw.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url);T()},[]),k=F=>{let T=S.getSelection();T&&T.type==="Range"||(F.preventDefault(),C.filter(R=>R.title==="Copied").length===0&&A(m.props.code).then(()=>{w([...C,{title:"Copied",onClick:()=>{}}]),S.setTimeout(()=>w(C.filter(R=>R.title!=="Copied")),1500)}))};return y.createElement(jee,{withSource:a,withToolbar:o,...f,className:x.join(" ")},o&&y.createElement(qee,{isLoading:e,border:!0,zoom:F=>b(v*F),resetZoom:()=>b(1),storyId:Uee(n),baseUrl:"./iframe.html"}),y.createElement($D.Provider,{value:{scale:v}},y.createElement(Wee,{className:"docs-story",onCopyCapture:a&&k},y.createElement(Hee,{isColumn:t||!Array.isArray(n),columns:r,layout:d},y.createElement(q$.Element,{scale:v},Array.isArray(n)?n.map((F,T)=>y.createElement("div",{key:T},F)):y.createElement("div",null,n))),y.createElement(pf,{actionItems:D}))),a&&h&&m)};_(OD)(()=>({".docs-story":{paddingTop:32,paddingBottom:40}}));var Gee=_.label(({theme:e})=>({lineHeight:"18px",alignItems:"center",marginBottom:8,display:"inline-block",position:"relative",whiteSpace:"nowrap",background:e.boolean.background,borderRadius:"3em",padding:1,'&[aria-disabled="true"]':{opacity:.5,input:{cursor:"not-allowed"}},input:{appearance:"none",width:"100%",height:"100%",position:"absolute",left:0,top:0,margin:0,padding:0,border:"none",background:"transparent",cursor:"pointer",borderRadius:"3em","&:focus":{outline:"none",boxShadow:`${e.color.secondary} 0 0 0 1px inset !important`}},span:{textAlign:"center",fontSize:e.typography.size.s1,fontWeight:e.typography.weight.bold,lineHeight:"1",cursor:"pointer",display:"inline-block",padding:"7px 15px",transition:"all 100ms ease-out",userSelect:"none",borderRadius:"3em",color:se(.5,e.color.defaultText),background:"transparent","&:hover":{boxShadow:`${gl(.3,e.appBorderColor)} 0 0 0 1px inset`},"&:active":{boxShadow:`${gl(.05,e.appBorderColor)} 0 0 0 2px inset`,color:gl(1,e.appBorderColor)},"&:first-of-type":{paddingRight:8},"&:last-of-type":{paddingLeft:8}},"input:checked ~ span:last-of-type, input:not(:checked) ~ span:first-of-type":{background:e.boolean.selectedBackground,boxShadow:e.base==="light"?`${gl(.1,e.appBorderColor)} 0 0 2px`:`${e.appBorderColor} 0 0 0 1px`,color:e.color.defaultText,padding:"7px 15px"}})),Kee=e=>e==="true",Yee=({name:e,value:t,onChange:r,onBlur:n,onFocus:a,argType:o})=>{var f;let i=l.useCallback(()=>r(!1),[r]),s=!!((f=o==null?void 0:o.table)!=null&&f.readonly);if(t===void 0)return y.createElement(zn,{variant:"outline",size:"medium",id:js(e),onClick:i,disabled:s},"Set boolean");let u=Ct(e),d=typeof t=="string"?Kee(t):t;return y.createElement(Gee,{"aria-disabled":s,htmlFor:u,"aria-label":e},y.createElement("input",{id:u,type:"checkbox",onChange:h=>r(h.target.checked),checked:d,role:"switch",disabled:s,name:e,onBlur:n,onFocus:a}),y.createElement("span",{"aria-hidden":"true"},"False"),y.createElement("span",{"aria-hidden":"true"},"True"))},Zee=e=>{let[t,r,n]=e.split("-"),a=new Date;return a.setFullYear(parseInt(t,10),parseInt(r,10)-1,parseInt(n,10)),a},Jee=e=>{let[t,r]=e.split(":"),n=new Date;return n.setHours(parseInt(t,10)),n.setMinutes(parseInt(r,10)),n},Xee=e=>{let t=new Date(e),r=`000${t.getFullYear()}`.slice(-4),n=`0${t.getMonth()+1}`.slice(-2),a=`0${t.getDate()}`.slice(-2);return`${r}-${n}-${a}`},Qee=e=>{let t=new Date(e),r=`0${t.getHours()}`.slice(-2),n=`0${t.getMinutes()}`.slice(-2);return`${r}:${n}`},_3=_($i.Input)(({readOnly:e})=>({opacity:e?.5:1})),ete=_.div(({theme:e})=>({flex:1,display:"flex",input:{marginLeft:10,flex:1,height:32,"&::-webkit-calendar-picker-indicator":{opacity:.5,height:12,filter:e.base==="light"?void 0:"invert(1)"}},"input:first-of-type":{marginLeft:0,flexGrow:4},"input:last-of-type":{flexGrow:3}})),tte=({name:e,value:t,onChange:r,onFocus:n,onBlur:a,argType:o})=>{var g;let[i,s]=l.useState(!0),u=l.useRef(),d=l.useRef(),f=!!((g=o==null?void 0:o.table)!=null&&g.readonly);l.useEffect(()=>{i!==!1&&(u&&u.current&&(u.current.value=t?Xee(t):""),d&&d.current&&(d.current.value=t?Qee(t):""))},[t]);let h=v=>{if(!v.target.value)return r();let b=Zee(v.target.value),x=new Date(t);x.setFullYear(b.getFullYear(),b.getMonth(),b.getDate());let E=x.getTime();E&&r(E),s(!!E)},p=v=>{if(!v.target.value)return r();let b=Jee(v.target.value),x=new Date(t);x.setHours(b.getHours()),x.setMinutes(b.getMinutes());let E=x.getTime();E&&r(E),s(!!E)},m=Ct(e);return y.createElement(ete,null,y.createElement(_3,{type:"date",max:"9999-12-31",ref:u,id:`${m}-date`,name:`${m}-date`,readOnly:f,onChange:h,onFocus:n,onBlur:a}),y.createElement(_3,{type:"time",id:`${m}-time`,name:`${m}-time`,ref:d,onChange:p,readOnly:f,onFocus:n,onBlur:a}),i?null:y.createElement("div",null,"invalid"))},rte=_.label({display:"flex"}),nte=e=>{let t=parseFloat(e);return Number.isNaN(t)?void 0:t},ate=_($i.Input)(({readOnly:e})=>({opacity:e?.5:1})),ote=({name:e,value:t,onChange:r,min:n,max:a,step:o,onBlur:i,onFocus:s,argType:u})=>{var C;let[d,f]=l.useState(typeof t=="number"?t:""),[h,p]=l.useState(!1),[m,g]=l.useState(null),v=!!((C=u==null?void 0:u.table)!=null&&C.readonly),b=l.useCallback(w=>{f(w.target.value);let D=parseFloat(w.target.value);Number.isNaN(D)?g(new Error(`'${w.target.value}' is not a number`)):(r(D),g(null))},[r,g]),x=l.useCallback(()=>{f("0"),r(0),p(!0)},[p]),E=l.useRef(null);return l.useEffect(()=>{h&&E.current&&E.current.select()},[h]),l.useEffect(()=>{d!==(typeof t=="number"?t:"")&&f(t)},[t]),t===void 0?y.createElement(zn,{variant:"outline",size:"medium",id:js(e),onClick:x,disabled:v},"Set number"):y.createElement(rte,null,y.createElement(ate,{ref:E,id:Ct(e),type:"number",onChange:b,size:"flex",placeholder:"Edit number...",value:d,valid:m?"error":null,autoFocus:h,readOnly:v,name:e,min:n,max:a,step:o,onFocus:s,onBlur:i}))},MD=(e,t)=>{let r=t&&Object.entries(t).find(([n,a])=>a===e);return r?r[0]:void 0},Ip=(e,t)=>e&&t?Object.entries(t).filter(r=>e.includes(r[1])).map(r=>r[0]):[],PD=(e,t)=>e&&t&&e.map(r=>t[r]),ite=_.div(({isInline:e})=>e?{display:"flex",flexWrap:"wrap",alignItems:"flex-start",label:{display:"inline-flex",marginRight:15}}:{label:{display:"flex"}},e=>{if(e["aria-readonly"]==="true")return{input:{cursor:"not-allowed"}}}),lte=_.span({"[aria-readonly=true] &":{opacity:.5}}),ste=_.label({lineHeight:"20px",alignItems:"center",marginBottom:8,"&:last-child":{marginBottom:0},input:{margin:0,marginRight:6}}),F3=({name:e,options:t,value:r,onChange:n,isInline:a,argType:o})=>{var p;if(!t)return fm.warn(`Checkbox with no options: ${e}`),y.createElement(y.Fragment,null,"-");let i=Ip(r,t),[s,u]=l.useState(i),d=!!((p=o==null?void 0:o.table)!=null&&p.readonly),f=m=>{let g=m.target.value,v=[...s];v.includes(g)?v.splice(v.indexOf(g),1):v.push(g),n(PD(v,t)),u(v)};l.useEffect(()=>{u(Ip(r,t))},[r]);let h=Ct(e);return y.createElement(ite,{"aria-readonly":d,isInline:a},Object.keys(t).map((m,g)=>{let v=`${h}-${g}`;return y.createElement(ste,{key:v,htmlFor:v},y.createElement("input",{type:"checkbox",disabled:d,id:v,name:v,value:m,onChange:f,checked:s==null?void 0:s.includes(m)}),y.createElement(lte,null,m))}))},ute=_.div(({isInline:e})=>e?{display:"flex",flexWrap:"wrap",alignItems:"flex-start",label:{display:"inline-flex",marginRight:15}}:{label:{display:"flex"}},e=>{if(e["aria-readonly"]==="true")return{input:{cursor:"not-allowed"}}}),cte=_.span({"[aria-readonly=true] &":{opacity:.5}}),dte=_.label({lineHeight:"20px",alignItems:"center",marginBottom:8,"&:last-child":{marginBottom:0},input:{margin:0,marginRight:6}}),I3=({name:e,options:t,value:r,onChange:n,isInline:a,argType:o})=>{var d;if(!t)return fm.warn(`Radio with no options: ${e}`),y.createElement(y.Fragment,null,"-");let i=MD(r,t),s=Ct(e),u=!!((d=o==null?void 0:o.table)!=null&&d.readonly);return y.createElement(ute,{"aria-readonly":u,isInline:a},Object.keys(t).map((f,h)=>{let p=`${s}-${h}`;return y.createElement(dte,{key:p,htmlFor:p},y.createElement("input",{type:"radio",id:p,name:s,disabled:u,value:f,onChange:m=>n(t[m.currentTarget.value]),checked:f===i}),y.createElement(cte,null,f))}))},pte={appearance:"none",border:"0 none",boxSizing:"inherit",display:" block",margin:" 0",background:"transparent",padding:0,fontSize:"inherit",position:"relative"},ND=_.select(pte,({theme:e})=>({boxSizing:"border-box",position:"relative",padding:"6px 10px",width:"100%",color:e.input.color||"inherit",background:e.input.background,borderRadius:e.input.borderRadius,boxShadow:`${e.input.border} 0 0 0 1px inset`,fontSize:e.typography.size.s2-1,lineHeight:"20px","&:focus":{boxShadow:`${e.color.secondary} 0 0 0 1px inset`,outline:"none"},"&[disabled]":{cursor:"not-allowed",opacity:.5},"::placeholder":{color:e.textMutedColor},"&[multiple]":{overflow:"auto",padding:0,option:{display:"block",padding:"6px 10px",marginLeft:1,marginRight:1}}})),HD=_.span(({theme:e})=>({display:"inline-block",lineHeight:"normal",overflow:"hidden",position:"relative",verticalAlign:"top",width:"100%",svg:{position:"absolute",zIndex:1,pointerEvents:"none",height:"12px",marginTop:"-6px",right:"12px",top:"50%",fill:e.textMutedColor,path:{fill:e.textMutedColor}}})),T3="Choose option...",fte=({name:e,value:t,options:r,onChange:n,argType:a})=>{var d;let o=f=>{n(r[f.currentTarget.value])},i=MD(t,r)||T3,s=Ct(e),u=!!((d=a==null?void 0:a.table)!=null&&d.readonly);return y.createElement(HD,null,y.createElement(wC,null),y.createElement(ND,{disabled:u,id:s,value:i,onChange:o},y.createElement("option",{key:"no-selection",disabled:!0},T3),Object.keys(r).map(f=>y.createElement("option",{key:f,value:f},f))))},hte=({name:e,value:t,options:r,onChange:n,argType:a})=>{var d;let o=f=>{let h=Array.from(f.currentTarget.options).filter(p=>p.selected).map(p=>p.value);n(PD(h,r))},i=Ip(t,r),s=Ct(e),u=!!((d=a==null?void 0:a.table)!=null&&d.readonly);return y.createElement(HD,null,y.createElement(ND,{disabled:u,id:s,multiple:!0,value:i,onChange:o},Object.keys(r).map(f=>y.createElement("option",{key:f,value:f},f))))},R3=e=>{let{name:t,options:r}=e;return r?e.isMulti?y.createElement(hte,{...e}):y.createElement(fte,{...e}):(fm.warn(`Select with no options: ${t}`),y.createElement(y.Fragment,null,"-"))},mte=(e,t)=>Array.isArray(e)?e.reduce((r,n)=>(r[(t==null?void 0:t[n])||String(n)]=n,r),{}):e,gte={check:F3,"inline-check":F3,radio:I3,"inline-radio":I3,select:R3,"multi-select":R3},Yn=e=>{let{type:t="select",labels:r,argType:n}=e,a={...e,argType:n,options:n?mte(n.options,r):{},isInline:t.includes("inline"),isMulti:t.includes("multi")},o=gte[t];if(o)return y.createElement(o,{...a});throw new Error(`Unknown options type: ${t}`)},vte="Error",yte="Object",bte="Array",wte="String",Ete="Number",xte="Boolean",Cte="Date",Dte="Null",Ste="Undefined",Ate="Function",kte="Symbol",jD="ADD_DELTA_TYPE",VD="REMOVE_DELTA_TYPE",UD="UPDATE_DELTA_TYPE",mm="value",_te="key";function hn(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&typeof e[Symbol.iterator]=="function"?"Iterable":Object.prototype.toString.call(e).slice(8,-1)}function qD(e,t){let r=hn(e),n=hn(t);return(r==="Function"||n==="Function")&&n!==r}var gm=class extends l.Component{constructor(e){super(e),this.state={inputRefKey:null,inputRefValue:null},this.refInputValue=this.refInputValue.bind(this),this.refInputKey=this.refInputKey.bind(this),this.onKeydown=this.onKeydown.bind(this),this.onSubmit=this.onSubmit.bind(this)}componentDidMount(){let{inputRefKey:e,inputRefValue:t}=this.state,{onlyValue:r}=this.props;e&&typeof e.focus=="function"&&e.focus(),r&&t&&typeof t.focus=="function"&&t.focus(),document.addEventListener("keydown",this.onKeydown)}componentWillUnmount(){document.removeEventListener("keydown",this.onKeydown)}onKeydown(e){e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat||((e.code==="Enter"||e.key==="Enter")&&(e.preventDefault(),this.onSubmit()),(e.code==="Escape"||e.key==="Escape")&&(e.preventDefault(),this.props.handleCancel()))}onSubmit(){let{handleAdd:e,onlyValue:t,onSubmitValueParser:r,keyPath:n,deep:a}=this.props,{inputRefKey:o,inputRefValue:i}=this.state,s={};if(!t){if(!o.value)return;s.key=o.value}s.newValue=r(!1,n,a,s.key,i.value),e(s)}refInputKey(e){this.state.inputRefKey=e}refInputValue(e){this.state.inputRefValue=e}render(){let{handleCancel:e,onlyValue:t,addButtonElement:r,cancelButtonElement:n,inputElementGenerator:a,keyPath:o,deep:i}=this.props,s=l.cloneElement(r,{onClick:this.onSubmit}),u=l.cloneElement(n,{onClick:e}),d=a(mm,o,i),f=l.cloneElement(d,{placeholder:"Value",ref:this.refInputValue}),h=null;if(!t){let p=a(_te,o,i);h=l.cloneElement(p,{placeholder:"Key",ref:this.refInputKey})}return y.createElement("span",{className:"rejt-add-value-node"},h,f,u,s)}};gm.defaultProps={onlyValue:!1,addButtonElement:y.createElement("button",null,"+"),cancelButtonElement:y.createElement("button",null,"c")};var WD=class extends l.Component{constructor(e){super(e);let t=[...e.keyPath,e.name];this.state={data:e.data,name:e.name,keyPath:t,deep:e.deep,nextDeep:e.deep+1,collapsed:e.isCollapsed(t,e.deep,e.data),addFormVisible:!1},this.handleCollapseMode=this.handleCollapseMode.bind(this),this.handleRemoveItem=this.handleRemoveItem.bind(this),this.handleAddMode=this.handleAddMode.bind(this),this.handleAddValueAdd=this.handleAddValueAdd.bind(this),this.handleAddValueCancel=this.handleAddValueCancel.bind(this),this.handleEditValue=this.handleEditValue.bind(this),this.onChildUpdate=this.onChildUpdate.bind(this),this.renderCollapsed=this.renderCollapsed.bind(this),this.renderNotCollapsed=this.renderNotCollapsed.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}onChildUpdate(e,t){let{data:r,keyPath:n}=this.state;r[e]=t,this.setState({data:r});let{onUpdate:a}=this.props,o=n.length;a(n[o-1],r)}handleAddMode(){this.setState({addFormVisible:!0})}handleCollapseMode(){this.setState(e=>({collapsed:!e.collapsed}))}handleRemoveItem(e){return()=>{let{beforeRemoveAction:t,logger:r}=this.props,{data:n,keyPath:a,nextDeep:o}=this.state,i=n[e];t(e,a,o,i).then(()=>{let s={keyPath:a,deep:o,key:e,oldValue:i,type:VD};n.splice(e,1),this.setState({data:n});let{onUpdate:u,onDeltaUpdate:d}=this.props;u(a[a.length-1],n),d(s)}).catch(r.error)}}handleAddValueAdd({newValue:e}){let{data:t,keyPath:r,nextDeep:n}=this.state,{beforeAddAction:a,logger:o}=this.props;a(t.length,r,n,e).then(()=>{let i=[...t,e];this.setState({data:i}),this.handleAddValueCancel();let{onUpdate:s,onDeltaUpdate:u}=this.props;s(r[r.length-1],i),u({type:jD,keyPath:r,deep:n,key:i.length-1,newValue:e})}).catch(o.error)}handleAddValueCancel(){this.setState({addFormVisible:!1})}handleEditValue({key:e,value:t}){return new Promise((r,n)=>{let{beforeUpdateAction:a}=this.props,{data:o,keyPath:i,nextDeep:s}=this.state,u=o[e];a(e,i,s,u,t).then(()=>{o[e]=t,this.setState({data:o});let{onUpdate:d,onDeltaUpdate:f}=this.props;d(i[i.length-1],o),f({type:UD,keyPath:i,deep:s,key:e,newValue:t,oldValue:u}),r(void 0)}).catch(n)})}renderCollapsed(){let{name:e,data:t,keyPath:r,deep:n}=this.state,{handleRemove:a,readOnly:o,getStyle:i,dataType:s,minusMenuElement:u}=this.props,{minus:d,collapsed:f}=i(e,t,r,n,s),h=o(e,t,r,n,s),p=l.cloneElement(u,{onClick:a,className:"rejt-minus-menu",style:d});return y.createElement("span",{className:"rejt-collapsed"},y.createElement("span",{className:"rejt-collapsed-text",style:f,onClick:this.handleCollapseMode},"[...] ",t.length," ",t.length===1?"item":"items"),!h&&p)}renderNotCollapsed(){let{name:e,data:t,keyPath:r,deep:n,addFormVisible:a,nextDeep:o}=this.state,{isCollapsed:i,handleRemove:s,onDeltaUpdate:u,readOnly:d,getStyle:f,dataType:h,addButtonElement:p,cancelButtonElement:m,editButtonElement:g,inputElementGenerator:v,textareaElementGenerator:b,minusMenuElement:x,plusMenuElement:E,beforeRemoveAction:C,beforeAddAction:w,beforeUpdateAction:D,logger:S,onSubmitValueParser:A}=this.props,{minus:k,plus:F,delimiter:T,ul:R,addForm:L}=f(e,t,r,n,h),z=d(e,t,r,n,h),O=l.cloneElement(E,{onClick:this.handleAddMode,className:"rejt-plus-menu",style:F}),$=l.cloneElement(x,{onClick:s,className:"rejt-minus-menu",style:k});return y.createElement("span",{className:"rejt-not-collapsed"},y.createElement("span",{className:"rejt-not-collapsed-delimiter",style:T},"["),!a&&O,y.createElement("ul",{className:"rejt-not-collapsed-list",style:R},t.map((M,j)=>y.createElement(Ju,{key:j,name:j.toString(),data:M,keyPath:r,deep:o,isCollapsed:i,handleRemove:this.handleRemoveItem(j),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate:u,readOnly:d,getStyle:f,addButtonElement:p,cancelButtonElement:m,editButtonElement:g,inputElementGenerator:v,textareaElementGenerator:b,minusMenuElement:x,plusMenuElement:E,beforeRemoveAction:C,beforeAddAction:w,beforeUpdateAction:D,logger:S,onSubmitValueParser:A}))),!z&&a&&y.createElement("div",{className:"rejt-add-form",style:L},y.createElement(gm,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,onlyValue:!0,addButtonElement:p,cancelButtonElement:m,inputElementGenerator:v,keyPath:r,deep:n,onSubmitValueParser:A})),y.createElement("span",{className:"rejt-not-collapsed-delimiter",style:T},"]"),!z&&$)}render(){let{name:e,collapsed:t,data:r,keyPath:n,deep:a}=this.state,{dataType:o,getStyle:i}=this.props,s=t?this.renderCollapsed():this.renderNotCollapsed(),u=i(e,r,n,a,o);return y.createElement("div",{className:"rejt-array-node"},y.createElement("span",{onClick:this.handleCollapseMode},y.createElement("span",{className:"rejt-name",style:u.name},e," :"," ")),s)}};WD.defaultProps={keyPath:[],deep:0,minusMenuElement:y.createElement("span",null," - "),plusMenuElement:y.createElement("span",null," + ")};var GD=class extends l.Component{constructor(e){super(e);let t=[...e.keyPath,e.name];this.state={value:e.value,name:e.name,keyPath:t,deep:e.deep,editEnabled:!1,inputRef:null},this.handleEditMode=this.handleEditMode.bind(this),this.refInput=this.refInput.bind(this),this.handleCancelEdit=this.handleCancelEdit.bind(this),this.handleEdit=this.handleEdit.bind(this),this.onKeydown=this.onKeydown.bind(this)}static getDerivedStateFromProps(e,t){return e.value!==t.value?{value:e.value}:null}componentDidUpdate(){let{editEnabled:e,inputRef:t,name:r,value:n,keyPath:a,deep:o}=this.state,{readOnly:i,dataType:s}=this.props,u=i(r,n,a,o,s);e&&!u&&typeof t.focus=="function"&&t.focus()}componentDidMount(){document.addEventListener("keydown",this.onKeydown)}componentWillUnmount(){document.removeEventListener("keydown",this.onKeydown)}onKeydown(e){e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat||((e.code==="Enter"||e.key==="Enter")&&(e.preventDefault(),this.handleEdit()),(e.code==="Escape"||e.key==="Escape")&&(e.preventDefault(),this.handleCancelEdit()))}handleEdit(){let{handleUpdateValue:e,originalValue:t,logger:r,onSubmitValueParser:n,keyPath:a}=this.props,{inputRef:o,name:i,deep:s}=this.state;if(!o)return;let u=n(!0,a,s,i,o.value);e({value:u,key:i}).then(()=>{qD(t,u)||this.handleCancelEdit()}).catch(r.error)}handleEditMode(){this.setState({editEnabled:!0})}refInput(e){this.state.inputRef=e}handleCancelEdit(){this.setState({editEnabled:!1})}render(){let{name:e,value:t,editEnabled:r,keyPath:n,deep:a}=this.state,{handleRemove:o,originalValue:i,readOnly:s,dataType:u,getStyle:d,editButtonElement:f,cancelButtonElement:h,textareaElementGenerator:p,minusMenuElement:m,keyPath:g}=this.props,v=d(e,i,n,a,u),b=null,x=null,E=s(e,i,n,a,u);if(r&&!E){let C=p(mm,g,a,e,i,u),w=l.cloneElement(f,{onClick:this.handleEdit}),D=l.cloneElement(h,{onClick:this.handleCancelEdit}),S=l.cloneElement(C,{ref:this.refInput,defaultValue:i});b=y.createElement("span",{className:"rejt-edit-form",style:v.editForm},S," ",D,w),x=null}else{b=y.createElement("span",{className:"rejt-value",style:v.value,onClick:E?null:this.handleEditMode},t);let C=l.cloneElement(m,{onClick:o,className:"rejt-minus-menu",style:v.minus});x=E?null:C}return y.createElement("li",{className:"rejt-function-value-node",style:v.li},y.createElement("span",{className:"rejt-name",style:v.name},e," :"," "),b,x)}};GD.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>{},editButtonElement:y.createElement("button",null,"e"),cancelButtonElement:y.createElement("button",null,"c"),minusMenuElement:y.createElement("span",null," - ")};var Ju=class extends l.Component{constructor(e){super(e),this.state={data:e.data,name:e.name,keyPath:e.keyPath,deep:e.deep}}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}render(){let{data:e,name:t,keyPath:r,deep:n}=this.state,{isCollapsed:a,handleRemove:o,handleUpdateValue:i,onUpdate:s,onDeltaUpdate:u,readOnly:d,getStyle:f,addButtonElement:h,cancelButtonElement:p,editButtonElement:m,inputElementGenerator:g,textareaElementGenerator:v,minusMenuElement:b,plusMenuElement:x,beforeRemoveAction:E,beforeAddAction:C,beforeUpdateAction:w,logger:D,onSubmitValueParser:S}=this.props,A=()=>!0,k=hn(e);switch(k){case vte:return y.createElement(Tp,{data:e,name:t,isCollapsed:a,keyPath:r,deep:n,handleRemove:o,onUpdate:s,onDeltaUpdate:u,readOnly:A,dataType:k,getStyle:f,addButtonElement:h,cancelButtonElement:p,editButtonElement:m,inputElementGenerator:g,textareaElementGenerator:v,minusMenuElement:b,plusMenuElement:x,beforeRemoveAction:E,beforeAddAction:C,beforeUpdateAction:w,logger:D,onSubmitValueParser:S});case yte:return y.createElement(Tp,{data:e,name:t,isCollapsed:a,keyPath:r,deep:n,handleRemove:o,onUpdate:s,onDeltaUpdate:u,readOnly:d,dataType:k,getStyle:f,addButtonElement:h,cancelButtonElement:p,editButtonElement:m,inputElementGenerator:g,textareaElementGenerator:v,minusMenuElement:b,plusMenuElement:x,beforeRemoveAction:E,beforeAddAction:C,beforeUpdateAction:w,logger:D,onSubmitValueParser:S});case bte:return y.createElement(WD,{data:e,name:t,isCollapsed:a,keyPath:r,deep:n,handleRemove:o,onUpdate:s,onDeltaUpdate:u,readOnly:d,dataType:k,getStyle:f,addButtonElement:h,cancelButtonElement:p,editButtonElement:m,inputElementGenerator:g,textareaElementGenerator:v,minusMenuElement:b,plusMenuElement:x,beforeRemoveAction:E,beforeAddAction:C,beforeUpdateAction:w,logger:D,onSubmitValueParser:S});case wte:return y.createElement(Cr,{name:t,value:`"${e}"`,originalValue:e,keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:d,dataType:k,getStyle:f,cancelButtonElement:p,editButtonElement:m,inputElementGenerator:g,minusMenuElement:b,logger:D,onSubmitValueParser:S});case Ete:return y.createElement(Cr,{name:t,value:e,originalValue:e,keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:d,dataType:k,getStyle:f,cancelButtonElement:p,editButtonElement:m,inputElementGenerator:g,minusMenuElement:b,logger:D,onSubmitValueParser:S});case xte:return y.createElement(Cr,{name:t,value:e?"true":"false",originalValue:e,keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:d,dataType:k,getStyle:f,cancelButtonElement:p,editButtonElement:m,inputElementGenerator:g,minusMenuElement:b,logger:D,onSubmitValueParser:S});case Cte:return y.createElement(Cr,{name:t,value:e.toISOString(),originalValue:e,keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:A,dataType:k,getStyle:f,cancelButtonElement:p,editButtonElement:m,inputElementGenerator:g,minusMenuElement:b,logger:D,onSubmitValueParser:S});case Dte:return y.createElement(Cr,{name:t,value:"null",originalValue:"null",keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:d,dataType:k,getStyle:f,cancelButtonElement:p,editButtonElement:m,inputElementGenerator:g,minusMenuElement:b,logger:D,onSubmitValueParser:S});case Ste:return y.createElement(Cr,{name:t,value:"undefined",originalValue:"undefined",keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:d,dataType:k,getStyle:f,cancelButtonElement:p,editButtonElement:m,inputElementGenerator:g,minusMenuElement:b,logger:D,onSubmitValueParser:S});case Ate:return y.createElement(GD,{name:t,value:e.toString(),originalValue:e,keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:d,dataType:k,getStyle:f,cancelButtonElement:p,editButtonElement:m,textareaElementGenerator:v,minusMenuElement:b,logger:D,onSubmitValueParser:S});case kte:return y.createElement(Cr,{name:t,value:e.toString(),originalValue:e,keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:A,dataType:k,getStyle:f,cancelButtonElement:p,editButtonElement:m,inputElementGenerator:g,minusMenuElement:b,logger:D,onSubmitValueParser:S});default:return null}}};Ju.defaultProps={keyPath:[],deep:0};var Tp=class extends l.Component{constructor(e){super(e);let t=e.deep===-1?[]:[...e.keyPath,e.name];this.state={name:e.name,data:e.data,keyPath:t,deep:e.deep,nextDeep:e.deep+1,collapsed:e.isCollapsed(t,e.deep,e.data),addFormVisible:!1},this.handleCollapseMode=this.handleCollapseMode.bind(this),this.handleRemoveValue=this.handleRemoveValue.bind(this),this.handleAddMode=this.handleAddMode.bind(this),this.handleAddValueAdd=this.handleAddValueAdd.bind(this),this.handleAddValueCancel=this.handleAddValueCancel.bind(this),this.handleEditValue=this.handleEditValue.bind(this),this.onChildUpdate=this.onChildUpdate.bind(this),this.renderCollapsed=this.renderCollapsed.bind(this),this.renderNotCollapsed=this.renderNotCollapsed.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}onChildUpdate(e,t){let{data:r,keyPath:n}=this.state;r[e]=t,this.setState({data:r});let{onUpdate:a}=this.props,o=n.length;a(n[o-1],r)}handleAddMode(){this.setState({addFormVisible:!0})}handleAddValueCancel(){this.setState({addFormVisible:!1})}handleAddValueAdd({key:e,newValue:t}){let{data:r,keyPath:n,nextDeep:a}=this.state,{beforeAddAction:o,logger:i}=this.props;o(e,n,a,t).then(()=>{r[e]=t,this.setState({data:r}),this.handleAddValueCancel();let{onUpdate:s,onDeltaUpdate:u}=this.props;s(n[n.length-1],r),u({type:jD,keyPath:n,deep:a,key:e,newValue:t})}).catch(i.error)}handleRemoveValue(e){return()=>{let{beforeRemoveAction:t,logger:r}=this.props,{data:n,keyPath:a,nextDeep:o}=this.state,i=n[e];t(e,a,o,i).then(()=>{let s={keyPath:a,deep:o,key:e,oldValue:i,type:VD};delete n[e],this.setState({data:n});let{onUpdate:u,onDeltaUpdate:d}=this.props;u(a[a.length-1],n),d(s)}).catch(r.error)}}handleCollapseMode(){this.setState(e=>({collapsed:!e.collapsed}))}handleEditValue({key:e,value:t}){return new Promise((r,n)=>{let{beforeUpdateAction:a}=this.props,{data:o,keyPath:i,nextDeep:s}=this.state,u=o[e];a(e,i,s,u,t).then(()=>{o[e]=t,this.setState({data:o});let{onUpdate:d,onDeltaUpdate:f}=this.props;d(i[i.length-1],o),f({type:UD,keyPath:i,deep:s,key:e,newValue:t,oldValue:u}),r()}).catch(n)})}renderCollapsed(){let{name:e,keyPath:t,deep:r,data:n}=this.state,{handleRemove:a,readOnly:o,dataType:i,getStyle:s,minusMenuElement:u}=this.props,{minus:d,collapsed:f}=s(e,n,t,r,i),h=Object.getOwnPropertyNames(n),p=o(e,n,t,r,i),m=l.cloneElement(u,{onClick:a,className:"rejt-minus-menu",style:d});return y.createElement("span",{className:"rejt-collapsed"},y.createElement("span",{className:"rejt-collapsed-text",style:f,onClick:this.handleCollapseMode},"{...}"," ",h.length," ",h.length===1?"key":"keys"),!p&&m)}renderNotCollapsed(){let{name:e,data:t,keyPath:r,deep:n,nextDeep:a,addFormVisible:o}=this.state,{isCollapsed:i,handleRemove:s,onDeltaUpdate:u,readOnly:d,getStyle:f,dataType:h,addButtonElement:p,cancelButtonElement:m,editButtonElement:g,inputElementGenerator:v,textareaElementGenerator:b,minusMenuElement:x,plusMenuElement:E,beforeRemoveAction:C,beforeAddAction:w,beforeUpdateAction:D,logger:S,onSubmitValueParser:A}=this.props,{minus:k,plus:F,addForm:T,ul:R,delimiter:L}=f(e,t,r,n,h),z=Object.getOwnPropertyNames(t),O=d(e,t,r,n,h),$=l.cloneElement(E,{onClick:this.handleAddMode,className:"rejt-plus-menu",style:F}),M=l.cloneElement(x,{onClick:s,className:"rejt-minus-menu",style:k}),j=z.map(K=>y.createElement(Ju,{key:K,name:K,data:t[K],keyPath:r,deep:a,isCollapsed:i,handleRemove:this.handleRemoveValue(K),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate:u,readOnly:d,getStyle:f,addButtonElement:p,cancelButtonElement:m,editButtonElement:g,inputElementGenerator:v,textareaElementGenerator:b,minusMenuElement:x,plusMenuElement:E,beforeRemoveAction:C,beforeAddAction:w,beforeUpdateAction:D,logger:S,onSubmitValueParser:A}));return y.createElement("span",{className:"rejt-not-collapsed"},y.createElement("span",{className:"rejt-not-collapsed-delimiter",style:L},"{"),!O&&$,y.createElement("ul",{className:"rejt-not-collapsed-list",style:R},j),!O&&o&&y.createElement("div",{className:"rejt-add-form",style:T},y.createElement(gm,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,addButtonElement:p,cancelButtonElement:m,inputElementGenerator:v,keyPath:r,deep:n,onSubmitValueParser:A})),y.createElement("span",{className:"rejt-not-collapsed-delimiter",style:L},"}"),!O&&M)}render(){let{name:e,collapsed:t,data:r,keyPath:n,deep:a}=this.state,{getStyle:o,dataType:i}=this.props,s=t?this.renderCollapsed():this.renderNotCollapsed(),u=o(e,r,n,a,i);return y.createElement("div",{className:"rejt-object-node"},y.createElement("span",{onClick:this.handleCollapseMode},y.createElement("span",{className:"rejt-name",style:u.name},e," :"," ")),s)}};Tp.defaultProps={keyPath:[],deep:0,minusMenuElement:y.createElement("span",null," - "),plusMenuElement:y.createElement("span",null," + ")};var Cr=class extends l.Component{constructor(e){super(e);let t=[...e.keyPath,e.name];this.state={value:e.value,name:e.name,keyPath:t,deep:e.deep,editEnabled:!1,inputRef:null},this.handleEditMode=this.handleEditMode.bind(this),this.refInput=this.refInput.bind(this),this.handleCancelEdit=this.handleCancelEdit.bind(this),this.handleEdit=this.handleEdit.bind(this),this.onKeydown=this.onKeydown.bind(this)}static getDerivedStateFromProps(e,t){return e.value!==t.value?{value:e.value}:null}componentDidUpdate(){let{editEnabled:e,inputRef:t,name:r,value:n,keyPath:a,deep:o}=this.state,{readOnly:i,dataType:s}=this.props,u=i(r,n,a,o,s);e&&!u&&typeof t.focus=="function"&&t.focus()}componentDidMount(){document.addEventListener("keydown",this.onKeydown)}componentWillUnmount(){document.removeEventListener("keydown",this.onKeydown)}onKeydown(e){e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat||((e.code==="Enter"||e.key==="Enter")&&(e.preventDefault(),this.handleEdit()),(e.code==="Escape"||e.key==="Escape")&&(e.preventDefault(),this.handleCancelEdit()))}handleEdit(){let{handleUpdateValue:e,originalValue:t,logger:r,onSubmitValueParser:n,keyPath:a}=this.props,{inputRef:o,name:i,deep:s}=this.state;if(!o)return;let u=n(!0,a,s,i,o.value);e({value:u,key:i}).then(()=>{qD(t,u)||this.handleCancelEdit()}).catch(r.error)}handleEditMode(){this.setState({editEnabled:!0})}refInput(e){this.state.inputRef=e}handleCancelEdit(){this.setState({editEnabled:!1})}render(){let{name:e,value:t,editEnabled:r,keyPath:n,deep:a}=this.state,{handleRemove:o,originalValue:i,readOnly:s,dataType:u,getStyle:d,editButtonElement:f,cancelButtonElement:h,inputElementGenerator:p,minusMenuElement:m,keyPath:g}=this.props,v=d(e,i,n,a,u),b=s(e,i,n,a,u),x=r&&!b,E=p(mm,g,a,e,i,u),C=l.cloneElement(f,{onClick:this.handleEdit}),w=l.cloneElement(h,{onClick:this.handleCancelEdit}),D=l.cloneElement(E,{ref:this.refInput,defaultValue:JSON.stringify(i)}),S=l.cloneElement(m,{onClick:o,className:"rejt-minus-menu",style:v.minus});return y.createElement("li",{className:"rejt-value-node",style:v.li},y.createElement("span",{className:"rejt-name",style:v.name},e," : "),x?y.createElement("span",{className:"rejt-edit-form",style:v.editForm},D," ",w,C):y.createElement("span",{className:"rejt-value",style:v.value,onClick:b?null:this.handleEditMode},String(t)),!b&&!x&&S)}};Cr.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>Promise.resolve(),editButtonElement:y.createElement("button",null,"e"),cancelButtonElement:y.createElement("button",null,"c"),minusMenuElement:y.createElement("span",null," - ")};function Fte(e){let t=e;if(t.indexOf("function")===0)return(0,eval)(`(${t})`);try{t=JSON.parse(e)}catch{}return t}var Ite={minus:{color:"red"},plus:{color:"green"},collapsed:{color:"grey"},delimiter:{},ul:{padding:"0px",margin:"0 0 0 25px",listStyle:"none"},name:{color:"#2287CD"},addForm:{}},Tte={minus:{color:"red"},plus:{color:"green"},collapsed:{color:"grey"},delimiter:{},ul:{padding:"0px",margin:"0 0 0 25px",listStyle:"none"},name:{color:"#2287CD"},addForm:{}},Rte={minus:{color:"red"},editForm:{},value:{color:"#7bba3d"},li:{minHeight:"22px",lineHeight:"22px",outline:"0px"},name:{color:"#2287CD"}},KD=class extends l.Component{constructor(e){super(e),this.state={data:e.data,rootName:e.rootName},this.onUpdate=this.onUpdate.bind(this),this.removeRoot=this.removeRoot.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data||e.rootName!==t.rootName?{data:e.data,rootName:e.rootName}:null}onUpdate(e,t){this.setState({data:t}),this.props.onFullyUpdate(t)}removeRoot(){this.onUpdate(null,null)}render(){let{data:e,rootName:t}=this.state,{isCollapsed:r,onDeltaUpdate:n,readOnly:a,getStyle:o,addButtonElement:i,cancelButtonElement:s,editButtonElement:u,inputElement:d,textareaElement:f,minusMenuElement:h,plusMenuElement:p,beforeRemoveAction:m,beforeAddAction:g,beforeUpdateAction:v,logger:b,onSubmitValueParser:x,fallback:E=null}=this.props,C=hn(e),w=a;hn(a)==="Boolean"&&(w=()=>a);let D=d;d&&hn(d)!=="Function"&&(D=()=>d);let S=f;return f&&hn(f)!=="Function"&&(S=()=>f),C==="Object"||C==="Array"?y.createElement("div",{className:"rejt-tree"},y.createElement(Ju,{data:e,name:t,deep:-1,isCollapsed:r,onUpdate:this.onUpdate,onDeltaUpdate:n,readOnly:w,getStyle:o,addButtonElement:i,cancelButtonElement:s,editButtonElement:u,inputElementGenerator:D,textareaElementGenerator:S,minusMenuElement:h,plusMenuElement:p,handleRemove:this.removeRoot,beforeRemoveAction:m,beforeAddAction:g,beforeUpdateAction:v,logger:b,onSubmitValueParser:x})):E}};KD.defaultProps={rootName:"root",isCollapsed:(e,t)=>t!==-1,getStyle:(e,t,r,n,a)=>{switch(a){case"Object":case"Error":return Ite;case"Array":return Tte;default:return Rte}},readOnly:()=>!1,onFullyUpdate:()=>{},onDeltaUpdate:()=>{},beforeRemoveAction:()=>Promise.resolve(),beforeAddAction:()=>Promise.resolve(),beforeUpdateAction:()=>Promise.resolve(),logger:{error:()=>{}},onSubmitValueParser:(e,t,r,n,a)=>Fte(a),inputElement:()=>y.createElement("input",null),textareaElement:()=>y.createElement("textarea",null),fallback:null};var{window:Bte}=tt,zte=_.div(({theme:e})=>({position:"relative",display:"flex",'&[aria-readonly="true"]':{opacity:.5},".rejt-tree":{marginLeft:"1rem",fontSize:"13px"},".rejt-value-node, .rejt-object-node > .rejt-collapsed, .rejt-array-node > .rejt-collapsed, .rejt-object-node > .rejt-not-collapsed, .rejt-array-node > .rejt-not-collapsed":{"& > svg":{opacity:0,transition:"opacity 0.2s"}},".rejt-value-node:hover, .rejt-object-node:hover > .rejt-collapsed, .rejt-array-node:hover > .rejt-collapsed, .rejt-object-node:hover > .rejt-not-collapsed, .rejt-array-node:hover > .rejt-not-collapsed":{"& > svg":{opacity:1}},".rejt-edit-form button":{display:"none"},".rejt-add-form":{marginLeft:10},".rejt-add-value-node":{display:"inline-flex",alignItems:"center"},".rejt-name":{lineHeight:"22px"},".rejt-not-collapsed-delimiter":{lineHeight:"22px"},".rejt-plus-menu":{marginLeft:5},".rejt-object-node > span > *, .rejt-array-node > span > *":{position:"relative",zIndex:2},".rejt-object-node, .rejt-array-node":{position:"relative"},".rejt-object-node > span:first-of-type::after, .rejt-array-node > span:first-of-type::after, .rejt-collapsed::before, .rejt-not-collapsed::before":{content:'""',position:"absolute",top:0,display:"block",width:"100%",marginLeft:"-1rem",padding:"0 4px 0 1rem",height:22},".rejt-collapsed::before, .rejt-not-collapsed::before":{zIndex:1,background:"transparent",borderRadius:4,transition:"background 0.2s",pointerEvents:"none",opacity:.1},".rejt-object-node:hover, .rejt-array-node:hover":{"& > .rejt-collapsed::before, & > .rejt-not-collapsed::before":{background:e.color.secondary}},".rejt-collapsed::after, .rejt-not-collapsed::after":{content:'""',position:"absolute",display:"inline-block",pointerEvents:"none",width:0,height:0},".rejt-collapsed::after":{left:-8,top:8,borderTop:"3px solid transparent",borderBottom:"3px solid transparent",borderLeft:"3px solid rgba(153,153,153,0.6)"},".rejt-not-collapsed::after":{left:-10,top:10,borderTop:"3px solid rgba(153,153,153,0.6)",borderLeft:"3px solid transparent",borderRight:"3px solid transparent"},".rejt-value":{display:"inline-block",border:"1px solid transparent",borderRadius:4,margin:"1px 0",padding:"0 4px",cursor:"text",color:e.color.defaultText},".rejt-value-node:hover > .rejt-value":{background:e.color.lighter,borderColor:e.appBorderColor}})),Rd=_.button(({theme:e,primary:t})=>({border:0,height:20,margin:1,borderRadius:4,background:t?e.color.secondary:"transparent",color:t?e.color.lightest:e.color.dark,fontWeight:t?"bold":"normal",cursor:"pointer",order:t?"initial":9})),$te=_(gM)(({theme:e,disabled:t})=>({display:"inline-block",verticalAlign:"middle",width:15,height:15,padding:3,marginLeft:5,cursor:t?"not-allowed":"pointer",color:e.textMutedColor,"&:hover":t?{}:{color:e.color.ancillary},"svg + &":{marginLeft:0}})),Lte=_(vM)(({theme:e,disabled:t})=>({display:"inline-block",verticalAlign:"middle",width:15,height:15,padding:3,marginLeft:5,cursor:t?"not-allowed":"pointer",color:e.textMutedColor,"&:hover":t?{}:{color:e.color.negative},"svg + &":{marginLeft:0}})),B3=_.input(({theme:e,placeholder:t})=>({outline:0,margin:t?1:"1px 0",padding:"3px 4px",color:e.color.defaultText,background:e.background.app,border:`1px solid ${e.appBorderColor}`,borderRadius:4,lineHeight:"14px",width:t==="Key"?80:120,"&:focus":{border:`1px solid ${e.color.secondary}`}})),Ote=_(yn)(({theme:e})=>({position:"absolute",zIndex:2,top:2,right:2,height:21,padding:"0 3px",background:e.background.bar,border:`1px solid ${e.appBorderColor}`,borderRadius:3,color:e.textMutedColor,fontSize:"9px",fontWeight:"bold",textDecoration:"none",span:{marginLeft:3,marginTop:1}})),Mte=_($i.Textarea)(({theme:e})=>({flex:1,padding:"7px 6px",fontFamily:e.typography.fonts.mono,fontSize:"12px",lineHeight:"18px","&::placeholder":{fontFamily:e.typography.fonts.base,fontSize:"13px"},"&:placeholder-shown":{padding:"7px 10px"}})),Pte={bubbles:!0,cancelable:!0,key:"Enter",code:"Enter",keyCode:13},Nte=e=>{e.currentTarget.dispatchEvent(new Bte.KeyboardEvent("keydown",Pte))},Hte=e=>{e.currentTarget.select()},jte=e=>()=>({name:{color:e.color.secondary},collapsed:{color:e.color.dark},ul:{listStyle:"none",margin:"0 0 0 1rem",padding:0},li:{outline:0}}),z3=({name:e,value:t,onChange:r,argType:n})=>{var C;let a=gb(),o=l.useMemo(()=>t&&lJ(t),[t]),i=o!=null,[s,u]=l.useState(!i),[d,f]=l.useState(null),h=!!((C=n==null?void 0:n.table)!=null&&C.readonly),p=l.useCallback(w=>{try{w&&r(JSON.parse(w)),f(void 0)}catch(D){f(D)}},[r]),[m,g]=l.useState(!1),v=l.useCallback(()=>{r({}),g(!0)},[g]),b=l.useRef(null);if(l.useEffect(()=>{m&&b.current&&b.current.select()},[m]),!i)return y.createElement(zn,{disabled:h,id:js(e),onClick:v},"Set object");let x=y.createElement(Mte,{ref:b,id:Ct(e),name:e,defaultValue:t===null?"":JSON.stringify(t,null,2),onBlur:w=>p(w.target.value),placeholder:"Edit JSON string...",autoFocus:m,valid:d?"error":null,readOnly:h}),E=Array.isArray(t)||typeof t=="object"&&(t==null?void 0:t.constructor)===Object;return y.createElement(zte,{"aria-readonly":h},E&&y.createElement(Ote,{onClick:w=>{w.preventDefault(),u(D=>!D)}},s?y.createElement(hM,null):y.createElement(fM,null),y.createElement("span",null,"RAW")),s?x:y.createElement(KD,{readOnly:h||!E,isCollapsed:E?void 0:()=>!0,data:o,rootName:e,onFullyUpdate:r,getStyle:jte(a),cancelButtonElement:y.createElement(Rd,{type:"button"},"Cancel"),editButtonElement:y.createElement(Rd,{type:"submit"},"Save"),addButtonElement:y.createElement(Rd,{type:"submit",primary:!0},"Save"),plusMenuElement:y.createElement($te,null),minusMenuElement:y.createElement(Lte,null),inputElement:(w,D,S,A)=>A?y.createElement(B3,{onFocus:Hte,onBlur:Nte}):y.createElement(B3,null),fallback:x}))},Vte=_.input(({theme:e,min:t,max:r,value:n,disabled:a})=>({"&":{width:"100%",backgroundColor:"transparent",appearance:"none"},"&::-webkit-slider-runnable-track":{background:e.base==="light"?`linear-gradient(to right, + */const{global:tt}=__STORYBOOK_MODULE_GLOBAL__,{deprecate:uee,once:cee,logger:fm}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{filterArgTypes:D3,composeConfigs:fae,Preview:hae,DocsContext:mae}=__STORYBOOK_MODULE_PREVIEW_API__,{STORY_ARGS_UPDATED:S3,UPDATE_STORY_ARGS:dee,RESET_STORY_ARGS:pee,GLOBALS_UPDATED:A3,NAVIGATE_URL:fee}=__STORYBOOK_MODULE_CORE_EVENTS__;__STORYBOOK_MODULE_CHANNELS__;var hee=La({"../../node_modules/tocbot/src/js/default-options.js"(e,t){t.exports={tocSelector:".js-toc",contentSelector:".js-toc-content",headingSelector:"h1, h2, h3",ignoreSelector:".js-toc-ignore",hasInnerContainers:!1,linkClass:"toc-link",extraLinkClasses:"",activeLinkClass:"is-active-link",listClass:"toc-list",extraListClasses:"",isCollapsedClass:"is-collapsed",collapsibleClass:"is-collapsible",listItemClass:"toc-list-item",activeListItemClass:"is-active-li",collapseDepth:0,scrollSmooth:!0,scrollSmoothDuration:420,scrollSmoothOffset:0,scrollEndCallback:function(r){},headingsOffset:1,throttleTimeout:50,positionFixedSelector:null,positionFixedClass:"is-position-fixed",fixedSidebarOffset:"auto",includeHtml:!1,includeTitleTags:!1,onClick:function(r){},orderedList:!0,scrollContainer:null,skipRendering:!1,headingLabelCallback:!1,ignoreHiddenElements:!1,headingObjectCallback:null,basePath:"",disableTocScrollSync:!1,tocScrollOffset:0}}}),mee=La({"../../node_modules/tocbot/src/js/build-html.js"(e,t){t.exports=function(r){var n=[].forEach,a=[].some,o=document.body,i,s=!0,u=" ";function d(w,D){var S=D.appendChild(h(w));if(w.children.length){var A=p(w.isCollapsed);w.children.forEach(function(k){d(k,A)}),S.appendChild(A)}}function f(w,D){var S=!1,A=p(S);if(D.forEach(function(k){d(k,A)}),i=w||i,i!==null)return i.firstChild&&i.removeChild(i.firstChild),D.length===0?i:i.appendChild(A)}function h(w){var D=document.createElement("li"),S=document.createElement("a");return r.listItemClass&&D.setAttribute("class",r.listItemClass),r.onClick&&(S.onclick=r.onClick),r.includeTitleTags&&S.setAttribute("title",w.textContent),r.includeHtml&&w.childNodes.length?n.call(w.childNodes,function(A){S.appendChild(A.cloneNode(!0))}):S.textContent=w.textContent,S.setAttribute("href",r.basePath+"#"+w.id),S.setAttribute("class",r.linkClass+u+"node-name--"+w.nodeName+u+r.extraLinkClasses),D.appendChild(S),D}function p(w){var D=r.orderedList?"ol":"ul",S=document.createElement(D),A=r.listClass+u+r.extraListClasses;return w&&(A=A+u+r.collapsibleClass,A=A+u+r.isCollapsedClass),S.setAttribute("class",A),S}function m(){if(r.scrollContainer&&document.querySelector(r.scrollContainer)){var w;w=document.querySelector(r.scrollContainer).scrollTop}else w=document.documentElement.scrollTop||o.scrollTop;var D=document.querySelector(r.positionFixedSelector);r.fixedSidebarOffset==="auto"&&(r.fixedSidebarOffset=i.offsetTop),w>r.fixedSidebarOffset?D.className.indexOf(r.positionFixedClass)===-1&&(D.className+=u+r.positionFixedClass):D.className=D.className.replace(u+r.positionFixedClass,"")}function g(w){var D=0;return w!==null&&(D=w.offsetTop,r.hasInnerContainers&&(D+=g(w.offsetParent))),D}function v(w,D){return w&&w.className!==D&&(w.className=D),w}function b(w){if(r.scrollContainer&&document.querySelector(r.scrollContainer)){var D;D=document.querySelector(r.scrollContainer).scrollTop}else D=document.documentElement.scrollTop||o.scrollTop;r.positionFixedSelector&&m();var S=w,A;if(s&&i!==null&&S.length>0){a.call(S,function(O,$){if(g(O)>D+r.headingsOffset+10){var M=$===0?$:$-1;return A=S[M],!0}else if($===S.length-1)return A=S[S.length-1],!0});var k=i.querySelector("."+r.activeLinkClass),F=i.querySelector("."+r.linkClass+".node-name--"+A.nodeName+'[href="'+r.basePath+"#"+A.id.replace(/([ #;&,.+*~':"!^$[\]()=>|/\\@])/g,"\\$1")+'"]');if(k===F)return;var T=i.querySelectorAll("."+r.linkClass);n.call(T,function(O){v(O,O.className.replace(u+r.activeLinkClass,""))});var R=i.querySelectorAll("."+r.listItemClass);n.call(R,function(O){v(O,O.className.replace(u+r.activeListItemClass,""))}),F&&F.className.indexOf(r.activeLinkClass)===-1&&(F.className+=u+r.activeLinkClass);var L=F&&F.parentNode;L&&L.className.indexOf(r.activeListItemClass)===-1&&(L.className+=u+r.activeListItemClass);var z=i.querySelectorAll("."+r.listClass+"."+r.collapsibleClass);n.call(z,function(O){O.className.indexOf(r.isCollapsedClass)===-1&&(O.className+=u+r.isCollapsedClass)}),F&&F.nextSibling&&F.nextSibling.className.indexOf(r.isCollapsedClass)!==-1&&v(F.nextSibling,F.nextSibling.className.replace(u+r.isCollapsedClass,"")),x(F&&F.parentNode.parentNode)}}function x(w){return w&&w.className.indexOf(r.collapsibleClass)!==-1&&w.className.indexOf(r.isCollapsedClass)!==-1?(v(w,w.className.replace(u+r.isCollapsedClass,"")),x(w.parentNode.parentNode)):w}function E(w){var D=w.target||w.srcElement;typeof D.className!="string"||D.className.indexOf(r.linkClass)===-1||(s=!1)}function C(){s=!0}return{enableTocAnimation:C,disableTocAnimation:E,render:f,updateToc:b}}}}),gee=La({"../../node_modules/tocbot/src/js/parse-content.js"(e,t){t.exports=function(r){var n=[].reduce;function a(h){return h[h.length-1]}function o(h){return+h.nodeName.toUpperCase().replace("H","")}function i(h){try{return h instanceof window.HTMLElement||h instanceof window.parent.HTMLElement}catch{return h instanceof window.HTMLElement}}function s(h){if(!i(h))return h;if(r.ignoreHiddenElements&&(!h.offsetHeight||!h.offsetParent))return null;let p=h.getAttribute("data-heading-label")||(r.headingLabelCallback?String(r.headingLabelCallback(h.innerText)):(h.innerText||h.textContent).trim());var m={id:h.id,children:[],nodeName:h.nodeName,headingLevel:o(h),textContent:p};return r.includeHtml&&(m.childNodes=h.childNodes),r.headingObjectCallback?r.headingObjectCallback(m,h):m}function u(h,p){for(var m=s(h),g=m.headingLevel,v=p,b=a(v),x=b?b.headingLevel:0,E=g-x;E>0&&(b=a(v),!(b&&g===b.headingLevel));)b&&b.children!==void 0&&(v=b.children),E--;return g>=r.collapseDepth&&(m.isCollapsed=!0),v.push(m),v}function d(h,p){var m=p;r.ignoreSelector&&(m=p.split(",").map(function(g){return g.trim()+":not("+r.ignoreSelector+")"}));try{return h.querySelectorAll(m)}catch{return console.warn("Headers not found with selector: "+m),null}}function f(h){return n.call(h,function(p,m){var g=s(m);return g&&u(g,p.nest),p},{nest:[]})}return{nestHeadingsArray:f,selectHeadings:d}}}}),vee=La({"../../node_modules/tocbot/src/js/update-toc-scroll.js"(e,t){t.exports=function(r){var n=r.tocElement||document.querySelector(r.tocSelector);if(n&&n.scrollHeight>n.clientHeight){var a=n.querySelector("."+r.activeListItemClass);a&&(n.scrollTop=a.offsetTop-r.tocScrollOffset)}}}}),yee=La({"../../node_modules/tocbot/src/js/scroll-smooth/index.js"(e){e.initSmoothScrolling=t;function t(n){var a=n.duration,o=n.offset,i=location.hash?d(location.href):location.href;s();function s(){document.body.addEventListener("click",h,!1);function h(p){!u(p.target)||p.target.className.indexOf("no-smooth-scroll")>-1||p.target.href.charAt(p.target.href.length-2)==="#"&&p.target.href.charAt(p.target.href.length-1)==="!"||p.target.className.indexOf(n.linkClass)===-1||r(p.target.hash,{duration:a,offset:o,callback:function(){f(p.target.hash)}})}}function u(h){return h.tagName.toLowerCase()==="a"&&(h.hash.length>0||h.href.charAt(h.href.length-1)==="#")&&(d(h.href)===i||d(h.href)+"#"===i)}function d(h){return h.slice(0,h.lastIndexOf("#"))}function f(h){var p=document.getElementById(h.substring(1));p&&(/^(?:a|select|input|button|textarea)$/i.test(p.tagName)||(p.tabIndex=-1),p.focus())}}function r(n,a){var o=window.pageYOffset,i={duration:a.duration,offset:a.offset||0,callback:a.callback,easing:a.easing||g},s=document.querySelector('[id="'+decodeURI(n).split("#").join("")+'"]')||document.querySelector('[id="'+n.split("#").join("")+'"]'),u=typeof n=="string"?i.offset+(n?s&&s.getBoundingClientRect().top||0:-(document.documentElement.scrollTop||document.body.scrollTop)):n,d=typeof i.duration=="function"?i.duration(u):i.duration,f,h;requestAnimationFrame(function(v){f=v,p(v)});function p(v){h=v-f,window.scrollTo(0,i.easing(h,o,u,d)),h"u"&&!h)return;var p,m=Object.prototype.hasOwnProperty;function g(){for(var E={},C=0;C({backgroundColor:e.base==="light"?"rgba(0,0,0,.01)":"rgba(255,255,255,.01)",borderRadius:e.appBorderRadius,border:`1px dashed ${e.appBorderColor}`,display:"flex",alignItems:"center",justifyContent:"center",padding:20,margin:"25px 0 40px",color:se(.3,e.color.defaultText),fontSize:e.typography.size.s2})),BD=e=>y.createElement(wee,{...e,className:"docblock-emptyblock sb-unstyled"}),Eee=_(Th)(({theme:e})=>({fontSize:`${e.typography.size.s2-1}px`,lineHeight:"19px",margin:"25px 0 40px",borderRadius:e.appBorderRadius,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0","pre.prismjs":{padding:20,background:"inherit"}})),xee=_.div(({theme:e})=>({background:e.background.content,borderRadius:e.appBorderRadius,border:`1px solid ${e.appBorderColor}`,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",margin:"25px 0 40px",padding:"20px 20px 20px 22px"})),wl=_.div(({theme:e})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,height:17,marginTop:1,width:"60%",[`&:first-child${Nd}`]:{margin:0}})),Cee=()=>y.createElement(xee,null,y.createElement(wl,null),y.createElement(wl,{style:{width:"80%"}}),y.createElement(wl,{style:{width:"30%"}}),y.createElement(wl,{style:{width:"80%"}})),zD=({isLoading:e,error:t,language:r,code:n,dark:a,format:o=!1,...i})=>{let{typography:s}=gb();if(e)return y.createElement(Cee,null);if(t)return y.createElement(BD,null,t);let u=y.createElement(Eee,{bordered:!0,copyable:!0,format:o,language:r,className:"docblock-source sb-unstyled",...i},n);if(typeof a>"u")return u;let d=a?Md.dark:Md.light;return y.createElement(vb,{theme:Pd({...d,fontCode:s.fonts.mono,fontBase:s.fonts.base})},u)},ve=e=>`& :where(${e}:not(.sb-anchor, .sb-unstyled, .sb-unstyled ${e}))`,hm=600,Dee=_.h1(de,({theme:e})=>({color:e.color.defaultText,fontSize:e.typography.size.m3,fontWeight:e.typography.weight.bold,lineHeight:"32px",[`@media (min-width: ${hm}px)`]:{fontSize:e.typography.size.l1,lineHeight:"36px",marginBottom:"16px"}})),See=_.h2(de,({theme:e})=>({fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s3,lineHeight:"20px",borderBottom:"none",marginBottom:15,[`@media (min-width: ${hm}px)`]:{fontSize:e.typography.size.m1,lineHeight:"28px",marginBottom:24},color:se(.25,e.color.defaultText)})),Aee=_.div(({theme:e})=>{let t={fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"},r={margin:"20px 0 8px",padding:0,cursor:"text",position:"relative",color:e.color.defaultText,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& code":{fontSize:"inherit"}},n={lineHeight:1,margin:"0 2px",padding:"3px 5px",whiteSpace:"nowrap",borderRadius:3,fontSize:e.typography.size.s2-1,border:e.base==="light"?`1px solid ${e.color.mediumlight}`:`1px solid ${e.color.darker}`,color:e.base==="light"?se(.1,e.color.defaultText):se(.3,e.color.defaultText),backgroundColor:e.base==="light"?e.color.lighter:e.color.border};return{maxWidth:1e3,width:"100%",[ve("a")]:{...t,fontSize:"inherit",lineHeight:"24px",color:e.color.secondary,textDecoration:"none","&.absent":{color:"#cc0000"},"&.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0}},[ve("blockquote")]:{...t,margin:"16px 0",borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},[ve("div")]:t,[ve("dl")]:{...t,margin:"16px 0",padding:0,"& dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",padding:0,margin:"16px 0 4px"},"& dt:first-of-type":{padding:0},"& dt > :first-of-type":{marginTop:0},"& dt > :last-child":{marginBottom:0},"& dd":{margin:"0 0 16px",padding:"0 15px"},"& dd > :first-of-type":{marginTop:0},"& dd > :last-child":{marginBottom:0}},[ve("h1")]:{...t,...r,fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},[ve("h2")]:{...t,...r,fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`},[ve("h3")]:{...t,...r,fontSize:`${e.typography.size.m1}px`,fontWeight:e.typography.weight.bold},[ve("h4")]:{...t,...r,fontSize:`${e.typography.size.s3}px`},[ve("h5")]:{...t,...r,fontSize:`${e.typography.size.s2}px`},[ve("h6")]:{...t,...r,fontSize:`${e.typography.size.s2}px`,color:e.color.dark},[ve("hr")]:{border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},[ve("img")]:{maxWidth:"100%"},[ve("li")]:{...t,fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":n},[ve("ol")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},[ve("p")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":n},[ve("pre")]:{...t,fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0","&:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"& pre, &.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px",code:{color:"inherit",fontSize:"inherit"}},"& code":{whiteSpace:"pre"},"& code, & tt":{border:"none"}},[ve("span")]:{...t,"&.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"&.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"&.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"&.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"&.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}}},[ve("table")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:e.appContentBg,margin:0,padding:0},"& tr:nth-of-type(2n)":{backgroundColor:e.base==="dark"?e.color.darker:e.color.lighter},"& tr th":{fontWeight:"bold",color:e.color.defaultText,border:`1px solid ${e.appBorderColor}`,margin:0,padding:"6px 13px"},"& tr td":{border:`1px solid ${e.appBorderColor}`,color:e.color.defaultText,margin:0,padding:"6px 13px"},"& tr th :first-of-type, & tr td :first-of-type":{marginTop:0},"& tr th :last-child, & tr td :last-child":{marginBottom:0}},[ve("ul")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0},listStyle:"disc"}}}),kee=_.div(({theme:e})=>({background:e.background.content,display:"flex",justifyContent:"center",padding:"4rem 20px",minHeight:"100vh",boxSizing:"border-box",gap:"3rem",[`@media (min-width: ${hm}px)`]:{}})),_ee=({children:e,toc:t})=>y.createElement(kee,{className:"sbdocs sbdocs-wrapper"},y.createElement(Aee,{className:"sbdocs sbdocs-content"},e),t),Zu=e=>({borderRadius:e.appBorderRadius,background:e.background.content,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",border:`1px solid ${e.appBorderColor}`}),{window:Fee}=tt,Iee=class extends l.Component{constructor(){super(...arguments),this.iframe=null}componentDidMount(){let{id:e}=this.props;this.iframe=Fee.document.getElementById(e)}shouldComponentUpdate(e){let{scale:t}=e;return t!==this.props.scale&&this.setIframeBodyStyle({width:`${t*100}%`,height:`${t*100}%`,transform:`scale(${1/t})`,transformOrigin:"top left"}),!1}setIframeBodyStyle(e){return Object.assign(this.iframe.contentDocument.body.style,e)}render(){let{id:e,title:t,src:r,allowFullScreen:n,scale:a,...o}=this.props;return y.createElement("iframe",{id:e,title:t,src:r,...n?{allow:"fullscreen"}:{},loading:"lazy",...o})}},$D=l.createContext({scale:1}),{PREVIEW_URL:Tee}=tt,Ree=Tee||"iframe.html",Fp=({story:e,primary:t})=>`story--${e.id}${t?"--primary":""}`,Bee=e=>{let t=l.useRef(),[r,n]=l.useState(!0),[a,o]=l.useState(),{story:i,height:s,autoplay:u,forceInitialArgs:d,renderStoryToElement:f}=e;return l.useEffect(()=>{if(!(i&&t.current))return()=>{};let h=t.current,p=f(i,h,{showMain:()=>{},showError:({title:m,description:g})=>o(new Error(`${m} - ${g}`)),showException:m=>o(m)},{autoplay:u,forceInitialArgs:d});return n(!1),()=>{Promise.resolve().then(()=>p())}},[u,f,i]),a?y.createElement("pre",null,y.createElement(Q$,{error:a})):y.createElement(y.Fragment,null,s?y.createElement("style",null,`#${Fp(e)} { min-height: ${s}; transform: translateZ(0); overflow: auto }`):null,r&&y.createElement(LD,null),y.createElement("div",{ref:t,id:`${Fp(e)}-inner`,"data-name":i.name}))},zee=({story:e,height:t="500px"})=>y.createElement("div",{style:{width:"100%",height:t}},y.createElement($D.Consumer,null,({scale:r})=>y.createElement(Iee,{key:"iframe",id:`iframe--${e.id}`,title:e.name,src:xO(Ree,e.id,{viewMode:"story"}),allowFullScreen:!0,scale:r,style:{width:"100%",height:"100%",border:"0 none"}}))),$ee=_.strong(({theme:e})=>({color:e.color.orange})),Lee=e=>{let{inline:t,story:r}=e;return t&&!e.autoplay&&r.usesMount?y.createElement($ee,null,"This story mounts inside of play. Set"," ",y.createElement("a",{href:"https://storybook.js.org/docs/api/doc-blocks/doc-block-story#autoplay"},"autoplay")," ","to true to view this story."):y.createElement("div",{id:Fp(e),className:"sb-story sb-unstyled","data-story-block":"true"},t?y.createElement(Bee,{...e}):y.createElement(zee,{...e}))},LD=()=>y.createElement(EO,null),Oee=_(Hh)({position:"absolute",left:0,right:0,top:0,transition:"transform .2s linear"}),Mee=_.div({display:"flex",alignItems:"center",gap:4}),Pee=_.div(({theme:e})=>({width:14,height:14,borderRadius:2,margin:"0 7px",backgroundColor:e.appBorderColor,animation:`${e.animation.glow} 1.5s ease-in-out infinite`})),Nee=({isLoading:e,storyId:t,baseUrl:r,zoom:n,resetZoom:a,...o})=>y.createElement(Oee,{...o},y.createElement(Mee,{key:"left"},e?[1,2,3].map(i=>y.createElement(Pee,{key:i})):y.createElement(y.Fragment,null,y.createElement(yn,{key:"zoomin",onClick:i=>{i.preventDefault(),n(.8)},title:"Zoom in"},y.createElement(cM,null)),y.createElement(yn,{key:"zoomout",onClick:i=>{i.preventDefault(),n(1.25)},title:"Zoom out"},y.createElement(dM,null)),y.createElement(yn,{key:"zoomreset",onClick:i=>{i.preventDefault(),a()},title:"Reset zoom"},y.createElement(pM,null))))),Hee=_.div(({isColumn:e,columns:t,layout:r})=>({display:e||!t?"block":"flex",position:"relative",flexWrap:"wrap",overflow:"auto",flexDirection:e?"column":"row","& .innerZoomElementWrapper > *":e?{width:r!=="fullscreen"?"calc(100% - 20px)":"100%",display:"block"}:{maxWidth:r!=="fullscreen"?"calc(100% - 20px)":"100%",display:"inline-block"}}),({layout:e="padded"})=>e==="centered"||e==="padded"?{padding:"30px 20px","& .innerZoomElementWrapper > *":{width:"auto",border:"10px solid transparent!important"}}:{},({layout:e="padded"})=>e==="centered"?{display:"flex",justifyContent:"center",justifyItems:"center",alignContent:"center",alignItems:"center"}:{},({columns:e})=>e&&e>1?{".innerZoomElementWrapper > *":{minWidth:`calc(100% / ${e} - 20px)`}}:{}),k3=_(zD)(({theme:e})=>({margin:0,borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomLeftRadius:e.appBorderRadius,borderBottomRightRadius:e.appBorderRadius,border:"none",background:e.base==="light"?"rgba(0, 0, 0, 0.85)":$t(.05,e.background.content),color:e.color.lightest,button:{background:e.base==="light"?"rgba(0, 0, 0, 0.85)":$t(.05,e.background.content)}})),jee=_.div(({theme:e,withSource:t,isExpanded:r})=>({position:"relative",overflow:"hidden",margin:"25px 0 40px",...Zu(e),borderBottomLeftRadius:t&&r&&0,borderBottomRightRadius:t&&r&&0,borderBottomWidth:r&&0,"h3 + &":{marginTop:"16px"}}),({withToolbar:e})=>e&&{paddingTop:40}),Vee=(e,t,r)=>{switch(!0){case!!(e&&e.error):return{source:null,actionItem:{title:"No code available",className:"docblock-code-toggle docblock-code-toggle--disabled",disabled:!0,onClick:()=>r(!1)}};case t:return{source:y.createElement(k3,{...e,dark:!0}),actionItem:{title:"Hide code",className:"docblock-code-toggle docblock-code-toggle--expanded",onClick:()=>r(!1)}};default:return{source:y.createElement(k3,{...e,dark:!0}),actionItem:{title:"Show code",className:"docblock-code-toggle",onClick:()=>r(!0)}}}};function Uee(e){if(l.Children.count(e)===1){let t=e;if(t.props)return t.props.id}return null}var qee=_(Nee)({position:"absolute",top:0,left:0,right:0,height:40}),Wee=_.div({overflow:"hidden",position:"relative"}),OD=({isLoading:e,isColumn:t,columns:r,children:n,withSource:a,withToolbar:o=!1,isExpanded:i=!1,additionalActions:s,className:u,layout:d="padded",...f})=>{let[h,p]=l.useState(i),{source:m,actionItem:g}=Vee(a,h,p),[v,b]=l.useState(1),x=[u].concat(["sbdocs","sbdocs-preview","sb-unstyled"]),E=a?[g]:[],[C,w]=l.useState(s?[...s]:[]),D=[...E,...C],{window:S}=tt,A=l.useCallback(async F=>{let{createCopyToClipboardFunction:T}=await Lp(()=>import("./index-NX4PnSA6.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url);T()},[]),k=F=>{let T=S.getSelection();T&&T.type==="Range"||(F.preventDefault(),C.filter(R=>R.title==="Copied").length===0&&A(m.props.code).then(()=>{w([...C,{title:"Copied",onClick:()=>{}}]),S.setTimeout(()=>w(C.filter(R=>R.title!=="Copied")),1500)}))};return y.createElement(jee,{withSource:a,withToolbar:o,...f,className:x.join(" ")},o&&y.createElement(qee,{isLoading:e,border:!0,zoom:F=>b(v*F),resetZoom:()=>b(1),storyId:Uee(n),baseUrl:"./iframe.html"}),y.createElement($D.Provider,{value:{scale:v}},y.createElement(Wee,{className:"docs-story",onCopyCapture:a&&k},y.createElement(Hee,{isColumn:t||!Array.isArray(n),columns:r,layout:d},y.createElement(q$.Element,{scale:v},Array.isArray(n)?n.map((F,T)=>y.createElement("div",{key:T},F)):y.createElement("div",null,n))),y.createElement(pf,{actionItems:D}))),a&&h&&m)};_(OD)(()=>({".docs-story":{paddingTop:32,paddingBottom:40}}));var Gee=_.label(({theme:e})=>({lineHeight:"18px",alignItems:"center",marginBottom:8,display:"inline-block",position:"relative",whiteSpace:"nowrap",background:e.boolean.background,borderRadius:"3em",padding:1,'&[aria-disabled="true"]':{opacity:.5,input:{cursor:"not-allowed"}},input:{appearance:"none",width:"100%",height:"100%",position:"absolute",left:0,top:0,margin:0,padding:0,border:"none",background:"transparent",cursor:"pointer",borderRadius:"3em","&:focus":{outline:"none",boxShadow:`${e.color.secondary} 0 0 0 1px inset !important`}},span:{textAlign:"center",fontSize:e.typography.size.s1,fontWeight:e.typography.weight.bold,lineHeight:"1",cursor:"pointer",display:"inline-block",padding:"7px 15px",transition:"all 100ms ease-out",userSelect:"none",borderRadius:"3em",color:se(.5,e.color.defaultText),background:"transparent","&:hover":{boxShadow:`${gl(.3,e.appBorderColor)} 0 0 0 1px inset`},"&:active":{boxShadow:`${gl(.05,e.appBorderColor)} 0 0 0 2px inset`,color:gl(1,e.appBorderColor)},"&:first-of-type":{paddingRight:8},"&:last-of-type":{paddingLeft:8}},"input:checked ~ span:last-of-type, input:not(:checked) ~ span:first-of-type":{background:e.boolean.selectedBackground,boxShadow:e.base==="light"?`${gl(.1,e.appBorderColor)} 0 0 2px`:`${e.appBorderColor} 0 0 0 1px`,color:e.color.defaultText,padding:"7px 15px"}})),Kee=e=>e==="true",Yee=({name:e,value:t,onChange:r,onBlur:n,onFocus:a,argType:o})=>{var f;let i=l.useCallback(()=>r(!1),[r]),s=!!((f=o==null?void 0:o.table)!=null&&f.readonly);if(t===void 0)return y.createElement(zn,{variant:"outline",size:"medium",id:js(e),onClick:i,disabled:s},"Set boolean");let u=Ct(e),d=typeof t=="string"?Kee(t):t;return y.createElement(Gee,{"aria-disabled":s,htmlFor:u,"aria-label":e},y.createElement("input",{id:u,type:"checkbox",onChange:h=>r(h.target.checked),checked:d,role:"switch",disabled:s,name:e,onBlur:n,onFocus:a}),y.createElement("span",{"aria-hidden":"true"},"False"),y.createElement("span",{"aria-hidden":"true"},"True"))},Zee=e=>{let[t,r,n]=e.split("-"),a=new Date;return a.setFullYear(parseInt(t,10),parseInt(r,10)-1,parseInt(n,10)),a},Jee=e=>{let[t,r]=e.split(":"),n=new Date;return n.setHours(parseInt(t,10)),n.setMinutes(parseInt(r,10)),n},Xee=e=>{let t=new Date(e),r=`000${t.getFullYear()}`.slice(-4),n=`0${t.getMonth()+1}`.slice(-2),a=`0${t.getDate()}`.slice(-2);return`${r}-${n}-${a}`},Qee=e=>{let t=new Date(e),r=`0${t.getHours()}`.slice(-2),n=`0${t.getMinutes()}`.slice(-2);return`${r}:${n}`},_3=_($i.Input)(({readOnly:e})=>({opacity:e?.5:1})),ete=_.div(({theme:e})=>({flex:1,display:"flex",input:{marginLeft:10,flex:1,height:32,"&::-webkit-calendar-picker-indicator":{opacity:.5,height:12,filter:e.base==="light"?void 0:"invert(1)"}},"input:first-of-type":{marginLeft:0,flexGrow:4},"input:last-of-type":{flexGrow:3}})),tte=({name:e,value:t,onChange:r,onFocus:n,onBlur:a,argType:o})=>{var g;let[i,s]=l.useState(!0),u=l.useRef(),d=l.useRef(),f=!!((g=o==null?void 0:o.table)!=null&&g.readonly);l.useEffect(()=>{i!==!1&&(u&&u.current&&(u.current.value=t?Xee(t):""),d&&d.current&&(d.current.value=t?Qee(t):""))},[t]);let h=v=>{if(!v.target.value)return r();let b=Zee(v.target.value),x=new Date(t);x.setFullYear(b.getFullYear(),b.getMonth(),b.getDate());let E=x.getTime();E&&r(E),s(!!E)},p=v=>{if(!v.target.value)return r();let b=Jee(v.target.value),x=new Date(t);x.setHours(b.getHours()),x.setMinutes(b.getMinutes());let E=x.getTime();E&&r(E),s(!!E)},m=Ct(e);return y.createElement(ete,null,y.createElement(_3,{type:"date",max:"9999-12-31",ref:u,id:`${m}-date`,name:`${m}-date`,readOnly:f,onChange:h,onFocus:n,onBlur:a}),y.createElement(_3,{type:"time",id:`${m}-time`,name:`${m}-time`,ref:d,onChange:p,readOnly:f,onFocus:n,onBlur:a}),i?null:y.createElement("div",null,"invalid"))},rte=_.label({display:"flex"}),nte=e=>{let t=parseFloat(e);return Number.isNaN(t)?void 0:t},ate=_($i.Input)(({readOnly:e})=>({opacity:e?.5:1})),ote=({name:e,value:t,onChange:r,min:n,max:a,step:o,onBlur:i,onFocus:s,argType:u})=>{var C;let[d,f]=l.useState(typeof t=="number"?t:""),[h,p]=l.useState(!1),[m,g]=l.useState(null),v=!!((C=u==null?void 0:u.table)!=null&&C.readonly),b=l.useCallback(w=>{f(w.target.value);let D=parseFloat(w.target.value);Number.isNaN(D)?g(new Error(`'${w.target.value}' is not a number`)):(r(D),g(null))},[r,g]),x=l.useCallback(()=>{f("0"),r(0),p(!0)},[p]),E=l.useRef(null);return l.useEffect(()=>{h&&E.current&&E.current.select()},[h]),l.useEffect(()=>{d!==(typeof t=="number"?t:"")&&f(t)},[t]),t===void 0?y.createElement(zn,{variant:"outline",size:"medium",id:js(e),onClick:x,disabled:v},"Set number"):y.createElement(rte,null,y.createElement(ate,{ref:E,id:Ct(e),type:"number",onChange:b,size:"flex",placeholder:"Edit number...",value:d,valid:m?"error":null,autoFocus:h,readOnly:v,name:e,min:n,max:a,step:o,onFocus:s,onBlur:i}))},MD=(e,t)=>{let r=t&&Object.entries(t).find(([n,a])=>a===e);return r?r[0]:void 0},Ip=(e,t)=>e&&t?Object.entries(t).filter(r=>e.includes(r[1])).map(r=>r[0]):[],PD=(e,t)=>e&&t&&e.map(r=>t[r]),ite=_.div(({isInline:e})=>e?{display:"flex",flexWrap:"wrap",alignItems:"flex-start",label:{display:"inline-flex",marginRight:15}}:{label:{display:"flex"}},e=>{if(e["aria-readonly"]==="true")return{input:{cursor:"not-allowed"}}}),lte=_.span({"[aria-readonly=true] &":{opacity:.5}}),ste=_.label({lineHeight:"20px",alignItems:"center",marginBottom:8,"&:last-child":{marginBottom:0},input:{margin:0,marginRight:6}}),F3=({name:e,options:t,value:r,onChange:n,isInline:a,argType:o})=>{var p;if(!t)return fm.warn(`Checkbox with no options: ${e}`),y.createElement(y.Fragment,null,"-");let i=Ip(r,t),[s,u]=l.useState(i),d=!!((p=o==null?void 0:o.table)!=null&&p.readonly),f=m=>{let g=m.target.value,v=[...s];v.includes(g)?v.splice(v.indexOf(g),1):v.push(g),n(PD(v,t)),u(v)};l.useEffect(()=>{u(Ip(r,t))},[r]);let h=Ct(e);return y.createElement(ite,{"aria-readonly":d,isInline:a},Object.keys(t).map((m,g)=>{let v=`${h}-${g}`;return y.createElement(ste,{key:v,htmlFor:v},y.createElement("input",{type:"checkbox",disabled:d,id:v,name:v,value:m,onChange:f,checked:s==null?void 0:s.includes(m)}),y.createElement(lte,null,m))}))},ute=_.div(({isInline:e})=>e?{display:"flex",flexWrap:"wrap",alignItems:"flex-start",label:{display:"inline-flex",marginRight:15}}:{label:{display:"flex"}},e=>{if(e["aria-readonly"]==="true")return{input:{cursor:"not-allowed"}}}),cte=_.span({"[aria-readonly=true] &":{opacity:.5}}),dte=_.label({lineHeight:"20px",alignItems:"center",marginBottom:8,"&:last-child":{marginBottom:0},input:{margin:0,marginRight:6}}),I3=({name:e,options:t,value:r,onChange:n,isInline:a,argType:o})=>{var d;if(!t)return fm.warn(`Radio with no options: ${e}`),y.createElement(y.Fragment,null,"-");let i=MD(r,t),s=Ct(e),u=!!((d=o==null?void 0:o.table)!=null&&d.readonly);return y.createElement(ute,{"aria-readonly":u,isInline:a},Object.keys(t).map((f,h)=>{let p=`${s}-${h}`;return y.createElement(dte,{key:p,htmlFor:p},y.createElement("input",{type:"radio",id:p,name:s,disabled:u,value:f,onChange:m=>n(t[m.currentTarget.value]),checked:f===i}),y.createElement(cte,null,f))}))},pte={appearance:"none",border:"0 none",boxSizing:"inherit",display:" block",margin:" 0",background:"transparent",padding:0,fontSize:"inherit",position:"relative"},ND=_.select(pte,({theme:e})=>({boxSizing:"border-box",position:"relative",padding:"6px 10px",width:"100%",color:e.input.color||"inherit",background:e.input.background,borderRadius:e.input.borderRadius,boxShadow:`${e.input.border} 0 0 0 1px inset`,fontSize:e.typography.size.s2-1,lineHeight:"20px","&:focus":{boxShadow:`${e.color.secondary} 0 0 0 1px inset`,outline:"none"},"&[disabled]":{cursor:"not-allowed",opacity:.5},"::placeholder":{color:e.textMutedColor},"&[multiple]":{overflow:"auto",padding:0,option:{display:"block",padding:"6px 10px",marginLeft:1,marginRight:1}}})),HD=_.span(({theme:e})=>({display:"inline-block",lineHeight:"normal",overflow:"hidden",position:"relative",verticalAlign:"top",width:"100%",svg:{position:"absolute",zIndex:1,pointerEvents:"none",height:"12px",marginTop:"-6px",right:"12px",top:"50%",fill:e.textMutedColor,path:{fill:e.textMutedColor}}})),T3="Choose option...",fte=({name:e,value:t,options:r,onChange:n,argType:a})=>{var d;let o=f=>{n(r[f.currentTarget.value])},i=MD(t,r)||T3,s=Ct(e),u=!!((d=a==null?void 0:a.table)!=null&&d.readonly);return y.createElement(HD,null,y.createElement(wC,null),y.createElement(ND,{disabled:u,id:s,value:i,onChange:o},y.createElement("option",{key:"no-selection",disabled:!0},T3),Object.keys(r).map(f=>y.createElement("option",{key:f,value:f},f))))},hte=({name:e,value:t,options:r,onChange:n,argType:a})=>{var d;let o=f=>{let h=Array.from(f.currentTarget.options).filter(p=>p.selected).map(p=>p.value);n(PD(h,r))},i=Ip(t,r),s=Ct(e),u=!!((d=a==null?void 0:a.table)!=null&&d.readonly);return y.createElement(HD,null,y.createElement(ND,{disabled:u,id:s,multiple:!0,value:i,onChange:o},Object.keys(r).map(f=>y.createElement("option",{key:f,value:f},f))))},R3=e=>{let{name:t,options:r}=e;return r?e.isMulti?y.createElement(hte,{...e}):y.createElement(fte,{...e}):(fm.warn(`Select with no options: ${t}`),y.createElement(y.Fragment,null,"-"))},mte=(e,t)=>Array.isArray(e)?e.reduce((r,n)=>(r[(t==null?void 0:t[n])||String(n)]=n,r),{}):e,gte={check:F3,"inline-check":F3,radio:I3,"inline-radio":I3,select:R3,"multi-select":R3},Yn=e=>{let{type:t="select",labels:r,argType:n}=e,a={...e,argType:n,options:n?mte(n.options,r):{},isInline:t.includes("inline"),isMulti:t.includes("multi")},o=gte[t];if(o)return y.createElement(o,{...a});throw new Error(`Unknown options type: ${t}`)},vte="Error",yte="Object",bte="Array",wte="String",Ete="Number",xte="Boolean",Cte="Date",Dte="Null",Ste="Undefined",Ate="Function",kte="Symbol",jD="ADD_DELTA_TYPE",VD="REMOVE_DELTA_TYPE",UD="UPDATE_DELTA_TYPE",mm="value",_te="key";function hn(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&typeof e[Symbol.iterator]=="function"?"Iterable":Object.prototype.toString.call(e).slice(8,-1)}function qD(e,t){let r=hn(e),n=hn(t);return(r==="Function"||n==="Function")&&n!==r}var gm=class extends l.Component{constructor(e){super(e),this.state={inputRefKey:null,inputRefValue:null},this.refInputValue=this.refInputValue.bind(this),this.refInputKey=this.refInputKey.bind(this),this.onKeydown=this.onKeydown.bind(this),this.onSubmit=this.onSubmit.bind(this)}componentDidMount(){let{inputRefKey:e,inputRefValue:t}=this.state,{onlyValue:r}=this.props;e&&typeof e.focus=="function"&&e.focus(),r&&t&&typeof t.focus=="function"&&t.focus(),document.addEventListener("keydown",this.onKeydown)}componentWillUnmount(){document.removeEventListener("keydown",this.onKeydown)}onKeydown(e){e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat||((e.code==="Enter"||e.key==="Enter")&&(e.preventDefault(),this.onSubmit()),(e.code==="Escape"||e.key==="Escape")&&(e.preventDefault(),this.props.handleCancel()))}onSubmit(){let{handleAdd:e,onlyValue:t,onSubmitValueParser:r,keyPath:n,deep:a}=this.props,{inputRefKey:o,inputRefValue:i}=this.state,s={};if(!t){if(!o.value)return;s.key=o.value}s.newValue=r(!1,n,a,s.key,i.value),e(s)}refInputKey(e){this.state.inputRefKey=e}refInputValue(e){this.state.inputRefValue=e}render(){let{handleCancel:e,onlyValue:t,addButtonElement:r,cancelButtonElement:n,inputElementGenerator:a,keyPath:o,deep:i}=this.props,s=l.cloneElement(r,{onClick:this.onSubmit}),u=l.cloneElement(n,{onClick:e}),d=a(mm,o,i),f=l.cloneElement(d,{placeholder:"Value",ref:this.refInputValue}),h=null;if(!t){let p=a(_te,o,i);h=l.cloneElement(p,{placeholder:"Key",ref:this.refInputKey})}return y.createElement("span",{className:"rejt-add-value-node"},h,f,u,s)}};gm.defaultProps={onlyValue:!1,addButtonElement:y.createElement("button",null,"+"),cancelButtonElement:y.createElement("button",null,"c")};var WD=class extends l.Component{constructor(e){super(e);let t=[...e.keyPath,e.name];this.state={data:e.data,name:e.name,keyPath:t,deep:e.deep,nextDeep:e.deep+1,collapsed:e.isCollapsed(t,e.deep,e.data),addFormVisible:!1},this.handleCollapseMode=this.handleCollapseMode.bind(this),this.handleRemoveItem=this.handleRemoveItem.bind(this),this.handleAddMode=this.handleAddMode.bind(this),this.handleAddValueAdd=this.handleAddValueAdd.bind(this),this.handleAddValueCancel=this.handleAddValueCancel.bind(this),this.handleEditValue=this.handleEditValue.bind(this),this.onChildUpdate=this.onChildUpdate.bind(this),this.renderCollapsed=this.renderCollapsed.bind(this),this.renderNotCollapsed=this.renderNotCollapsed.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}onChildUpdate(e,t){let{data:r,keyPath:n}=this.state;r[e]=t,this.setState({data:r});let{onUpdate:a}=this.props,o=n.length;a(n[o-1],r)}handleAddMode(){this.setState({addFormVisible:!0})}handleCollapseMode(){this.setState(e=>({collapsed:!e.collapsed}))}handleRemoveItem(e){return()=>{let{beforeRemoveAction:t,logger:r}=this.props,{data:n,keyPath:a,nextDeep:o}=this.state,i=n[e];t(e,a,o,i).then(()=>{let s={keyPath:a,deep:o,key:e,oldValue:i,type:VD};n.splice(e,1),this.setState({data:n});let{onUpdate:u,onDeltaUpdate:d}=this.props;u(a[a.length-1],n),d(s)}).catch(r.error)}}handleAddValueAdd({newValue:e}){let{data:t,keyPath:r,nextDeep:n}=this.state,{beforeAddAction:a,logger:o}=this.props;a(t.length,r,n,e).then(()=>{let i=[...t,e];this.setState({data:i}),this.handleAddValueCancel();let{onUpdate:s,onDeltaUpdate:u}=this.props;s(r[r.length-1],i),u({type:jD,keyPath:r,deep:n,key:i.length-1,newValue:e})}).catch(o.error)}handleAddValueCancel(){this.setState({addFormVisible:!1})}handleEditValue({key:e,value:t}){return new Promise((r,n)=>{let{beforeUpdateAction:a}=this.props,{data:o,keyPath:i,nextDeep:s}=this.state,u=o[e];a(e,i,s,u,t).then(()=>{o[e]=t,this.setState({data:o});let{onUpdate:d,onDeltaUpdate:f}=this.props;d(i[i.length-1],o),f({type:UD,keyPath:i,deep:s,key:e,newValue:t,oldValue:u}),r(void 0)}).catch(n)})}renderCollapsed(){let{name:e,data:t,keyPath:r,deep:n}=this.state,{handleRemove:a,readOnly:o,getStyle:i,dataType:s,minusMenuElement:u}=this.props,{minus:d,collapsed:f}=i(e,t,r,n,s),h=o(e,t,r,n,s),p=l.cloneElement(u,{onClick:a,className:"rejt-minus-menu",style:d});return y.createElement("span",{className:"rejt-collapsed"},y.createElement("span",{className:"rejt-collapsed-text",style:f,onClick:this.handleCollapseMode},"[...] ",t.length," ",t.length===1?"item":"items"),!h&&p)}renderNotCollapsed(){let{name:e,data:t,keyPath:r,deep:n,addFormVisible:a,nextDeep:o}=this.state,{isCollapsed:i,handleRemove:s,onDeltaUpdate:u,readOnly:d,getStyle:f,dataType:h,addButtonElement:p,cancelButtonElement:m,editButtonElement:g,inputElementGenerator:v,textareaElementGenerator:b,minusMenuElement:x,plusMenuElement:E,beforeRemoveAction:C,beforeAddAction:w,beforeUpdateAction:D,logger:S,onSubmitValueParser:A}=this.props,{minus:k,plus:F,delimiter:T,ul:R,addForm:L}=f(e,t,r,n,h),z=d(e,t,r,n,h),O=l.cloneElement(E,{onClick:this.handleAddMode,className:"rejt-plus-menu",style:F}),$=l.cloneElement(x,{onClick:s,className:"rejt-minus-menu",style:k});return y.createElement("span",{className:"rejt-not-collapsed"},y.createElement("span",{className:"rejt-not-collapsed-delimiter",style:T},"["),!a&&O,y.createElement("ul",{className:"rejt-not-collapsed-list",style:R},t.map((M,j)=>y.createElement(Ju,{key:j,name:j.toString(),data:M,keyPath:r,deep:o,isCollapsed:i,handleRemove:this.handleRemoveItem(j),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate:u,readOnly:d,getStyle:f,addButtonElement:p,cancelButtonElement:m,editButtonElement:g,inputElementGenerator:v,textareaElementGenerator:b,minusMenuElement:x,plusMenuElement:E,beforeRemoveAction:C,beforeAddAction:w,beforeUpdateAction:D,logger:S,onSubmitValueParser:A}))),!z&&a&&y.createElement("div",{className:"rejt-add-form",style:L},y.createElement(gm,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,onlyValue:!0,addButtonElement:p,cancelButtonElement:m,inputElementGenerator:v,keyPath:r,deep:n,onSubmitValueParser:A})),y.createElement("span",{className:"rejt-not-collapsed-delimiter",style:T},"]"),!z&&$)}render(){let{name:e,collapsed:t,data:r,keyPath:n,deep:a}=this.state,{dataType:o,getStyle:i}=this.props,s=t?this.renderCollapsed():this.renderNotCollapsed(),u=i(e,r,n,a,o);return y.createElement("div",{className:"rejt-array-node"},y.createElement("span",{onClick:this.handleCollapseMode},y.createElement("span",{className:"rejt-name",style:u.name},e," :"," ")),s)}};WD.defaultProps={keyPath:[],deep:0,minusMenuElement:y.createElement("span",null," - "),plusMenuElement:y.createElement("span",null," + ")};var GD=class extends l.Component{constructor(e){super(e);let t=[...e.keyPath,e.name];this.state={value:e.value,name:e.name,keyPath:t,deep:e.deep,editEnabled:!1,inputRef:null},this.handleEditMode=this.handleEditMode.bind(this),this.refInput=this.refInput.bind(this),this.handleCancelEdit=this.handleCancelEdit.bind(this),this.handleEdit=this.handleEdit.bind(this),this.onKeydown=this.onKeydown.bind(this)}static getDerivedStateFromProps(e,t){return e.value!==t.value?{value:e.value}:null}componentDidUpdate(){let{editEnabled:e,inputRef:t,name:r,value:n,keyPath:a,deep:o}=this.state,{readOnly:i,dataType:s}=this.props,u=i(r,n,a,o,s);e&&!u&&typeof t.focus=="function"&&t.focus()}componentDidMount(){document.addEventListener("keydown",this.onKeydown)}componentWillUnmount(){document.removeEventListener("keydown",this.onKeydown)}onKeydown(e){e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat||((e.code==="Enter"||e.key==="Enter")&&(e.preventDefault(),this.handleEdit()),(e.code==="Escape"||e.key==="Escape")&&(e.preventDefault(),this.handleCancelEdit()))}handleEdit(){let{handleUpdateValue:e,originalValue:t,logger:r,onSubmitValueParser:n,keyPath:a}=this.props,{inputRef:o,name:i,deep:s}=this.state;if(!o)return;let u=n(!0,a,s,i,o.value);e({value:u,key:i}).then(()=>{qD(t,u)||this.handleCancelEdit()}).catch(r.error)}handleEditMode(){this.setState({editEnabled:!0})}refInput(e){this.state.inputRef=e}handleCancelEdit(){this.setState({editEnabled:!1})}render(){let{name:e,value:t,editEnabled:r,keyPath:n,deep:a}=this.state,{handleRemove:o,originalValue:i,readOnly:s,dataType:u,getStyle:d,editButtonElement:f,cancelButtonElement:h,textareaElementGenerator:p,minusMenuElement:m,keyPath:g}=this.props,v=d(e,i,n,a,u),b=null,x=null,E=s(e,i,n,a,u);if(r&&!E){let C=p(mm,g,a,e,i,u),w=l.cloneElement(f,{onClick:this.handleEdit}),D=l.cloneElement(h,{onClick:this.handleCancelEdit}),S=l.cloneElement(C,{ref:this.refInput,defaultValue:i});b=y.createElement("span",{className:"rejt-edit-form",style:v.editForm},S," ",D,w),x=null}else{b=y.createElement("span",{className:"rejt-value",style:v.value,onClick:E?null:this.handleEditMode},t);let C=l.cloneElement(m,{onClick:o,className:"rejt-minus-menu",style:v.minus});x=E?null:C}return y.createElement("li",{className:"rejt-function-value-node",style:v.li},y.createElement("span",{className:"rejt-name",style:v.name},e," :"," "),b,x)}};GD.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>{},editButtonElement:y.createElement("button",null,"e"),cancelButtonElement:y.createElement("button",null,"c"),minusMenuElement:y.createElement("span",null," - ")};var Ju=class extends l.Component{constructor(e){super(e),this.state={data:e.data,name:e.name,keyPath:e.keyPath,deep:e.deep}}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}render(){let{data:e,name:t,keyPath:r,deep:n}=this.state,{isCollapsed:a,handleRemove:o,handleUpdateValue:i,onUpdate:s,onDeltaUpdate:u,readOnly:d,getStyle:f,addButtonElement:h,cancelButtonElement:p,editButtonElement:m,inputElementGenerator:g,textareaElementGenerator:v,minusMenuElement:b,plusMenuElement:x,beforeRemoveAction:E,beforeAddAction:C,beforeUpdateAction:w,logger:D,onSubmitValueParser:S}=this.props,A=()=>!0,k=hn(e);switch(k){case vte:return y.createElement(Tp,{data:e,name:t,isCollapsed:a,keyPath:r,deep:n,handleRemove:o,onUpdate:s,onDeltaUpdate:u,readOnly:A,dataType:k,getStyle:f,addButtonElement:h,cancelButtonElement:p,editButtonElement:m,inputElementGenerator:g,textareaElementGenerator:v,minusMenuElement:b,plusMenuElement:x,beforeRemoveAction:E,beforeAddAction:C,beforeUpdateAction:w,logger:D,onSubmitValueParser:S});case yte:return y.createElement(Tp,{data:e,name:t,isCollapsed:a,keyPath:r,deep:n,handleRemove:o,onUpdate:s,onDeltaUpdate:u,readOnly:d,dataType:k,getStyle:f,addButtonElement:h,cancelButtonElement:p,editButtonElement:m,inputElementGenerator:g,textareaElementGenerator:v,minusMenuElement:b,plusMenuElement:x,beforeRemoveAction:E,beforeAddAction:C,beforeUpdateAction:w,logger:D,onSubmitValueParser:S});case bte:return y.createElement(WD,{data:e,name:t,isCollapsed:a,keyPath:r,deep:n,handleRemove:o,onUpdate:s,onDeltaUpdate:u,readOnly:d,dataType:k,getStyle:f,addButtonElement:h,cancelButtonElement:p,editButtonElement:m,inputElementGenerator:g,textareaElementGenerator:v,minusMenuElement:b,plusMenuElement:x,beforeRemoveAction:E,beforeAddAction:C,beforeUpdateAction:w,logger:D,onSubmitValueParser:S});case wte:return y.createElement(Cr,{name:t,value:`"${e}"`,originalValue:e,keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:d,dataType:k,getStyle:f,cancelButtonElement:p,editButtonElement:m,inputElementGenerator:g,minusMenuElement:b,logger:D,onSubmitValueParser:S});case Ete:return y.createElement(Cr,{name:t,value:e,originalValue:e,keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:d,dataType:k,getStyle:f,cancelButtonElement:p,editButtonElement:m,inputElementGenerator:g,minusMenuElement:b,logger:D,onSubmitValueParser:S});case xte:return y.createElement(Cr,{name:t,value:e?"true":"false",originalValue:e,keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:d,dataType:k,getStyle:f,cancelButtonElement:p,editButtonElement:m,inputElementGenerator:g,minusMenuElement:b,logger:D,onSubmitValueParser:S});case Cte:return y.createElement(Cr,{name:t,value:e.toISOString(),originalValue:e,keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:A,dataType:k,getStyle:f,cancelButtonElement:p,editButtonElement:m,inputElementGenerator:g,minusMenuElement:b,logger:D,onSubmitValueParser:S});case Dte:return y.createElement(Cr,{name:t,value:"null",originalValue:"null",keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:d,dataType:k,getStyle:f,cancelButtonElement:p,editButtonElement:m,inputElementGenerator:g,minusMenuElement:b,logger:D,onSubmitValueParser:S});case Ste:return y.createElement(Cr,{name:t,value:"undefined",originalValue:"undefined",keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:d,dataType:k,getStyle:f,cancelButtonElement:p,editButtonElement:m,inputElementGenerator:g,minusMenuElement:b,logger:D,onSubmitValueParser:S});case Ate:return y.createElement(GD,{name:t,value:e.toString(),originalValue:e,keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:d,dataType:k,getStyle:f,cancelButtonElement:p,editButtonElement:m,textareaElementGenerator:v,minusMenuElement:b,logger:D,onSubmitValueParser:S});case kte:return y.createElement(Cr,{name:t,value:e.toString(),originalValue:e,keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:A,dataType:k,getStyle:f,cancelButtonElement:p,editButtonElement:m,inputElementGenerator:g,minusMenuElement:b,logger:D,onSubmitValueParser:S});default:return null}}};Ju.defaultProps={keyPath:[],deep:0};var Tp=class extends l.Component{constructor(e){super(e);let t=e.deep===-1?[]:[...e.keyPath,e.name];this.state={name:e.name,data:e.data,keyPath:t,deep:e.deep,nextDeep:e.deep+1,collapsed:e.isCollapsed(t,e.deep,e.data),addFormVisible:!1},this.handleCollapseMode=this.handleCollapseMode.bind(this),this.handleRemoveValue=this.handleRemoveValue.bind(this),this.handleAddMode=this.handleAddMode.bind(this),this.handleAddValueAdd=this.handleAddValueAdd.bind(this),this.handleAddValueCancel=this.handleAddValueCancel.bind(this),this.handleEditValue=this.handleEditValue.bind(this),this.onChildUpdate=this.onChildUpdate.bind(this),this.renderCollapsed=this.renderCollapsed.bind(this),this.renderNotCollapsed=this.renderNotCollapsed.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}onChildUpdate(e,t){let{data:r,keyPath:n}=this.state;r[e]=t,this.setState({data:r});let{onUpdate:a}=this.props,o=n.length;a(n[o-1],r)}handleAddMode(){this.setState({addFormVisible:!0})}handleAddValueCancel(){this.setState({addFormVisible:!1})}handleAddValueAdd({key:e,newValue:t}){let{data:r,keyPath:n,nextDeep:a}=this.state,{beforeAddAction:o,logger:i}=this.props;o(e,n,a,t).then(()=>{r[e]=t,this.setState({data:r}),this.handleAddValueCancel();let{onUpdate:s,onDeltaUpdate:u}=this.props;s(n[n.length-1],r),u({type:jD,keyPath:n,deep:a,key:e,newValue:t})}).catch(i.error)}handleRemoveValue(e){return()=>{let{beforeRemoveAction:t,logger:r}=this.props,{data:n,keyPath:a,nextDeep:o}=this.state,i=n[e];t(e,a,o,i).then(()=>{let s={keyPath:a,deep:o,key:e,oldValue:i,type:VD};delete n[e],this.setState({data:n});let{onUpdate:u,onDeltaUpdate:d}=this.props;u(a[a.length-1],n),d(s)}).catch(r.error)}}handleCollapseMode(){this.setState(e=>({collapsed:!e.collapsed}))}handleEditValue({key:e,value:t}){return new Promise((r,n)=>{let{beforeUpdateAction:a}=this.props,{data:o,keyPath:i,nextDeep:s}=this.state,u=o[e];a(e,i,s,u,t).then(()=>{o[e]=t,this.setState({data:o});let{onUpdate:d,onDeltaUpdate:f}=this.props;d(i[i.length-1],o),f({type:UD,keyPath:i,deep:s,key:e,newValue:t,oldValue:u}),r()}).catch(n)})}renderCollapsed(){let{name:e,keyPath:t,deep:r,data:n}=this.state,{handleRemove:a,readOnly:o,dataType:i,getStyle:s,minusMenuElement:u}=this.props,{minus:d,collapsed:f}=s(e,n,t,r,i),h=Object.getOwnPropertyNames(n),p=o(e,n,t,r,i),m=l.cloneElement(u,{onClick:a,className:"rejt-minus-menu",style:d});return y.createElement("span",{className:"rejt-collapsed"},y.createElement("span",{className:"rejt-collapsed-text",style:f,onClick:this.handleCollapseMode},"{...}"," ",h.length," ",h.length===1?"key":"keys"),!p&&m)}renderNotCollapsed(){let{name:e,data:t,keyPath:r,deep:n,nextDeep:a,addFormVisible:o}=this.state,{isCollapsed:i,handleRemove:s,onDeltaUpdate:u,readOnly:d,getStyle:f,dataType:h,addButtonElement:p,cancelButtonElement:m,editButtonElement:g,inputElementGenerator:v,textareaElementGenerator:b,minusMenuElement:x,plusMenuElement:E,beforeRemoveAction:C,beforeAddAction:w,beforeUpdateAction:D,logger:S,onSubmitValueParser:A}=this.props,{minus:k,plus:F,addForm:T,ul:R,delimiter:L}=f(e,t,r,n,h),z=Object.getOwnPropertyNames(t),O=d(e,t,r,n,h),$=l.cloneElement(E,{onClick:this.handleAddMode,className:"rejt-plus-menu",style:F}),M=l.cloneElement(x,{onClick:s,className:"rejt-minus-menu",style:k}),j=z.map(K=>y.createElement(Ju,{key:K,name:K,data:t[K],keyPath:r,deep:a,isCollapsed:i,handleRemove:this.handleRemoveValue(K),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate:u,readOnly:d,getStyle:f,addButtonElement:p,cancelButtonElement:m,editButtonElement:g,inputElementGenerator:v,textareaElementGenerator:b,minusMenuElement:x,plusMenuElement:E,beforeRemoveAction:C,beforeAddAction:w,beforeUpdateAction:D,logger:S,onSubmitValueParser:A}));return y.createElement("span",{className:"rejt-not-collapsed"},y.createElement("span",{className:"rejt-not-collapsed-delimiter",style:L},"{"),!O&&$,y.createElement("ul",{className:"rejt-not-collapsed-list",style:R},j),!O&&o&&y.createElement("div",{className:"rejt-add-form",style:T},y.createElement(gm,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,addButtonElement:p,cancelButtonElement:m,inputElementGenerator:v,keyPath:r,deep:n,onSubmitValueParser:A})),y.createElement("span",{className:"rejt-not-collapsed-delimiter",style:L},"}"),!O&&M)}render(){let{name:e,collapsed:t,data:r,keyPath:n,deep:a}=this.state,{getStyle:o,dataType:i}=this.props,s=t?this.renderCollapsed():this.renderNotCollapsed(),u=o(e,r,n,a,i);return y.createElement("div",{className:"rejt-object-node"},y.createElement("span",{onClick:this.handleCollapseMode},y.createElement("span",{className:"rejt-name",style:u.name},e," :"," ")),s)}};Tp.defaultProps={keyPath:[],deep:0,minusMenuElement:y.createElement("span",null," - "),plusMenuElement:y.createElement("span",null," + ")};var Cr=class extends l.Component{constructor(e){super(e);let t=[...e.keyPath,e.name];this.state={value:e.value,name:e.name,keyPath:t,deep:e.deep,editEnabled:!1,inputRef:null},this.handleEditMode=this.handleEditMode.bind(this),this.refInput=this.refInput.bind(this),this.handleCancelEdit=this.handleCancelEdit.bind(this),this.handleEdit=this.handleEdit.bind(this),this.onKeydown=this.onKeydown.bind(this)}static getDerivedStateFromProps(e,t){return e.value!==t.value?{value:e.value}:null}componentDidUpdate(){let{editEnabled:e,inputRef:t,name:r,value:n,keyPath:a,deep:o}=this.state,{readOnly:i,dataType:s}=this.props,u=i(r,n,a,o,s);e&&!u&&typeof t.focus=="function"&&t.focus()}componentDidMount(){document.addEventListener("keydown",this.onKeydown)}componentWillUnmount(){document.removeEventListener("keydown",this.onKeydown)}onKeydown(e){e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat||((e.code==="Enter"||e.key==="Enter")&&(e.preventDefault(),this.handleEdit()),(e.code==="Escape"||e.key==="Escape")&&(e.preventDefault(),this.handleCancelEdit()))}handleEdit(){let{handleUpdateValue:e,originalValue:t,logger:r,onSubmitValueParser:n,keyPath:a}=this.props,{inputRef:o,name:i,deep:s}=this.state;if(!o)return;let u=n(!0,a,s,i,o.value);e({value:u,key:i}).then(()=>{qD(t,u)||this.handleCancelEdit()}).catch(r.error)}handleEditMode(){this.setState({editEnabled:!0})}refInput(e){this.state.inputRef=e}handleCancelEdit(){this.setState({editEnabled:!1})}render(){let{name:e,value:t,editEnabled:r,keyPath:n,deep:a}=this.state,{handleRemove:o,originalValue:i,readOnly:s,dataType:u,getStyle:d,editButtonElement:f,cancelButtonElement:h,inputElementGenerator:p,minusMenuElement:m,keyPath:g}=this.props,v=d(e,i,n,a,u),b=s(e,i,n,a,u),x=r&&!b,E=p(mm,g,a,e,i,u),C=l.cloneElement(f,{onClick:this.handleEdit}),w=l.cloneElement(h,{onClick:this.handleCancelEdit}),D=l.cloneElement(E,{ref:this.refInput,defaultValue:JSON.stringify(i)}),S=l.cloneElement(m,{onClick:o,className:"rejt-minus-menu",style:v.minus});return y.createElement("li",{className:"rejt-value-node",style:v.li},y.createElement("span",{className:"rejt-name",style:v.name},e," : "),x?y.createElement("span",{className:"rejt-edit-form",style:v.editForm},D," ",w,C):y.createElement("span",{className:"rejt-value",style:v.value,onClick:b?null:this.handleEditMode},String(t)),!b&&!x&&S)}};Cr.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>Promise.resolve(),editButtonElement:y.createElement("button",null,"e"),cancelButtonElement:y.createElement("button",null,"c"),minusMenuElement:y.createElement("span",null," - ")};function Fte(e){let t=e;if(t.indexOf("function")===0)return(0,eval)(`(${t})`);try{t=JSON.parse(e)}catch{}return t}var Ite={minus:{color:"red"},plus:{color:"green"},collapsed:{color:"grey"},delimiter:{},ul:{padding:"0px",margin:"0 0 0 25px",listStyle:"none"},name:{color:"#2287CD"},addForm:{}},Tte={minus:{color:"red"},plus:{color:"green"},collapsed:{color:"grey"},delimiter:{},ul:{padding:"0px",margin:"0 0 0 25px",listStyle:"none"},name:{color:"#2287CD"},addForm:{}},Rte={minus:{color:"red"},editForm:{},value:{color:"#7bba3d"},li:{minHeight:"22px",lineHeight:"22px",outline:"0px"},name:{color:"#2287CD"}},KD=class extends l.Component{constructor(e){super(e),this.state={data:e.data,rootName:e.rootName},this.onUpdate=this.onUpdate.bind(this),this.removeRoot=this.removeRoot.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data||e.rootName!==t.rootName?{data:e.data,rootName:e.rootName}:null}onUpdate(e,t){this.setState({data:t}),this.props.onFullyUpdate(t)}removeRoot(){this.onUpdate(null,null)}render(){let{data:e,rootName:t}=this.state,{isCollapsed:r,onDeltaUpdate:n,readOnly:a,getStyle:o,addButtonElement:i,cancelButtonElement:s,editButtonElement:u,inputElement:d,textareaElement:f,minusMenuElement:h,plusMenuElement:p,beforeRemoveAction:m,beforeAddAction:g,beforeUpdateAction:v,logger:b,onSubmitValueParser:x,fallback:E=null}=this.props,C=hn(e),w=a;hn(a)==="Boolean"&&(w=()=>a);let D=d;d&&hn(d)!=="Function"&&(D=()=>d);let S=f;return f&&hn(f)!=="Function"&&(S=()=>f),C==="Object"||C==="Array"?y.createElement("div",{className:"rejt-tree"},y.createElement(Ju,{data:e,name:t,deep:-1,isCollapsed:r,onUpdate:this.onUpdate,onDeltaUpdate:n,readOnly:w,getStyle:o,addButtonElement:i,cancelButtonElement:s,editButtonElement:u,inputElementGenerator:D,textareaElementGenerator:S,minusMenuElement:h,plusMenuElement:p,handleRemove:this.removeRoot,beforeRemoveAction:m,beforeAddAction:g,beforeUpdateAction:v,logger:b,onSubmitValueParser:x})):E}};KD.defaultProps={rootName:"root",isCollapsed:(e,t)=>t!==-1,getStyle:(e,t,r,n,a)=>{switch(a){case"Object":case"Error":return Ite;case"Array":return Tte;default:return Rte}},readOnly:()=>!1,onFullyUpdate:()=>{},onDeltaUpdate:()=>{},beforeRemoveAction:()=>Promise.resolve(),beforeAddAction:()=>Promise.resolve(),beforeUpdateAction:()=>Promise.resolve(),logger:{error:()=>{}},onSubmitValueParser:(e,t,r,n,a)=>Fte(a),inputElement:()=>y.createElement("input",null),textareaElement:()=>y.createElement("textarea",null),fallback:null};var{window:Bte}=tt,zte=_.div(({theme:e})=>({position:"relative",display:"flex",'&[aria-readonly="true"]':{opacity:.5},".rejt-tree":{marginLeft:"1rem",fontSize:"13px"},".rejt-value-node, .rejt-object-node > .rejt-collapsed, .rejt-array-node > .rejt-collapsed, .rejt-object-node > .rejt-not-collapsed, .rejt-array-node > .rejt-not-collapsed":{"& > svg":{opacity:0,transition:"opacity 0.2s"}},".rejt-value-node:hover, .rejt-object-node:hover > .rejt-collapsed, .rejt-array-node:hover > .rejt-collapsed, .rejt-object-node:hover > .rejt-not-collapsed, .rejt-array-node:hover > .rejt-not-collapsed":{"& > svg":{opacity:1}},".rejt-edit-form button":{display:"none"},".rejt-add-form":{marginLeft:10},".rejt-add-value-node":{display:"inline-flex",alignItems:"center"},".rejt-name":{lineHeight:"22px"},".rejt-not-collapsed-delimiter":{lineHeight:"22px"},".rejt-plus-menu":{marginLeft:5},".rejt-object-node > span > *, .rejt-array-node > span > *":{position:"relative",zIndex:2},".rejt-object-node, .rejt-array-node":{position:"relative"},".rejt-object-node > span:first-of-type::after, .rejt-array-node > span:first-of-type::after, .rejt-collapsed::before, .rejt-not-collapsed::before":{content:'""',position:"absolute",top:0,display:"block",width:"100%",marginLeft:"-1rem",padding:"0 4px 0 1rem",height:22},".rejt-collapsed::before, .rejt-not-collapsed::before":{zIndex:1,background:"transparent",borderRadius:4,transition:"background 0.2s",pointerEvents:"none",opacity:.1},".rejt-object-node:hover, .rejt-array-node:hover":{"& > .rejt-collapsed::before, & > .rejt-not-collapsed::before":{background:e.color.secondary}},".rejt-collapsed::after, .rejt-not-collapsed::after":{content:'""',position:"absolute",display:"inline-block",pointerEvents:"none",width:0,height:0},".rejt-collapsed::after":{left:-8,top:8,borderTop:"3px solid transparent",borderBottom:"3px solid transparent",borderLeft:"3px solid rgba(153,153,153,0.6)"},".rejt-not-collapsed::after":{left:-10,top:10,borderTop:"3px solid rgba(153,153,153,0.6)",borderLeft:"3px solid transparent",borderRight:"3px solid transparent"},".rejt-value":{display:"inline-block",border:"1px solid transparent",borderRadius:4,margin:"1px 0",padding:"0 4px",cursor:"text",color:e.color.defaultText},".rejt-value-node:hover > .rejt-value":{background:e.color.lighter,borderColor:e.appBorderColor}})),Rd=_.button(({theme:e,primary:t})=>({border:0,height:20,margin:1,borderRadius:4,background:t?e.color.secondary:"transparent",color:t?e.color.lightest:e.color.dark,fontWeight:t?"bold":"normal",cursor:"pointer",order:t?"initial":9})),$te=_(gM)(({theme:e,disabled:t})=>({display:"inline-block",verticalAlign:"middle",width:15,height:15,padding:3,marginLeft:5,cursor:t?"not-allowed":"pointer",color:e.textMutedColor,"&:hover":t?{}:{color:e.color.ancillary},"svg + &":{marginLeft:0}})),Lte=_(vM)(({theme:e,disabled:t})=>({display:"inline-block",verticalAlign:"middle",width:15,height:15,padding:3,marginLeft:5,cursor:t?"not-allowed":"pointer",color:e.textMutedColor,"&:hover":t?{}:{color:e.color.negative},"svg + &":{marginLeft:0}})),B3=_.input(({theme:e,placeholder:t})=>({outline:0,margin:t?1:"1px 0",padding:"3px 4px",color:e.color.defaultText,background:e.background.app,border:`1px solid ${e.appBorderColor}`,borderRadius:4,lineHeight:"14px",width:t==="Key"?80:120,"&:focus":{border:`1px solid ${e.color.secondary}`}})),Ote=_(yn)(({theme:e})=>({position:"absolute",zIndex:2,top:2,right:2,height:21,padding:"0 3px",background:e.background.bar,border:`1px solid ${e.appBorderColor}`,borderRadius:3,color:e.textMutedColor,fontSize:"9px",fontWeight:"bold",textDecoration:"none",span:{marginLeft:3,marginTop:1}})),Mte=_($i.Textarea)(({theme:e})=>({flex:1,padding:"7px 6px",fontFamily:e.typography.fonts.mono,fontSize:"12px",lineHeight:"18px","&::placeholder":{fontFamily:e.typography.fonts.base,fontSize:"13px"},"&:placeholder-shown":{padding:"7px 10px"}})),Pte={bubbles:!0,cancelable:!0,key:"Enter",code:"Enter",keyCode:13},Nte=e=>{e.currentTarget.dispatchEvent(new Bte.KeyboardEvent("keydown",Pte))},Hte=e=>{e.currentTarget.select()},jte=e=>()=>({name:{color:e.color.secondary},collapsed:{color:e.color.dark},ul:{listStyle:"none",margin:"0 0 0 1rem",padding:0},li:{outline:0}}),z3=({name:e,value:t,onChange:r,argType:n})=>{var C;let a=gb(),o=l.useMemo(()=>t&&lJ(t),[t]),i=o!=null,[s,u]=l.useState(!i),[d,f]=l.useState(null),h=!!((C=n==null?void 0:n.table)!=null&&C.readonly),p=l.useCallback(w=>{try{w&&r(JSON.parse(w)),f(void 0)}catch(D){f(D)}},[r]),[m,g]=l.useState(!1),v=l.useCallback(()=>{r({}),g(!0)},[g]),b=l.useRef(null);if(l.useEffect(()=>{m&&b.current&&b.current.select()},[m]),!i)return y.createElement(zn,{disabled:h,id:js(e),onClick:v},"Set object");let x=y.createElement(Mte,{ref:b,id:Ct(e),name:e,defaultValue:t===null?"":JSON.stringify(t,null,2),onBlur:w=>p(w.target.value),placeholder:"Edit JSON string...",autoFocus:m,valid:d?"error":null,readOnly:h}),E=Array.isArray(t)||typeof t=="object"&&(t==null?void 0:t.constructor)===Object;return y.createElement(zte,{"aria-readonly":h},E&&y.createElement(Ote,{onClick:w=>{w.preventDefault(),u(D=>!D)}},s?y.createElement(hM,null):y.createElement(fM,null),y.createElement("span",null,"RAW")),s?x:y.createElement(KD,{readOnly:h||!E,isCollapsed:E?void 0:()=>!0,data:o,rootName:e,onFullyUpdate:r,getStyle:jte(a),cancelButtonElement:y.createElement(Rd,{type:"button"},"Cancel"),editButtonElement:y.createElement(Rd,{type:"submit"},"Save"),addButtonElement:y.createElement(Rd,{type:"submit",primary:!0},"Save"),plusMenuElement:y.createElement($te,null),minusMenuElement:y.createElement(Lte,null),inputElement:(w,D,S,A)=>A?y.createElement(B3,{onFocus:Hte,onBlur:Nte}):y.createElement(B3,null),fallback:x}))},Vte=_.input(({theme:e,min:t,max:r,value:n,disabled:a})=>({"&":{width:"100%",backgroundColor:"transparent",appearance:"none"},"&::-webkit-slider-runnable-track":{background:e.base==="light"?`linear-gradient(to right, ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%, ${$t(.02,e.input.background)} ${(n-t)/(r-t)*100}%, ${$t(.02,e.input.background)} 100%)`:`linear-gradient(to right, @@ -576,7 +576,7 @@ ${t}`);let r=t.match(Y$);if(!r)return y.createElement(l.Fragment,null,t);let[,n, ${$t(.02,e.input.background)} 100%)`:`linear-gradient(to right, ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%, ${on(.02,e.input.background)} ${(n-t)/(r-t)*100}%, - ${on(.02,e.input.background)} 100%)`,boxShadow:`${e.appBorderColor} 0 0 0 1px inset`,color:"transparent",width:"100%",height:"6px",cursor:"pointer"},"&::-ms-fill-lower":{borderRadius:6},"&::-ms-fill-upper":{borderRadius:6},"&::-ms-thumb":{width:16,height:16,background:`${e.input.background}`,border:`1px solid ${Ot(e.appBorderColor,.2)}`,borderRadius:50,cursor:"grab",marginTop:0},"@supports (-ms-ime-align:auto)":{"input[type=range]":{margin:"0"}}})),YD=_.span({paddingLeft:5,paddingRight:5,fontSize:12,whiteSpace:"nowrap",fontFeatureSettings:"tnum",fontVariantNumeric:"tabular-nums","[aria-readonly=true] &":{opacity:.5}}),Ute=_(YD)(({numberOFDecimalsPlaces:e,max:t})=>({width:`${e+t.toString().length*2+3}ch`,textAlign:"right",flexShrink:0})),qte=_.div({display:"flex",alignItems:"center",width:"100%"});function Wte(e){let t=e.toString().match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}var Gte=({name:e,value:t,onChange:r,min:n=0,max:a=100,step:o=1,onBlur:i,onFocus:s,argType:u})=>{var m;let d=g=>{r(nte(g.target.value))},f=t!==void 0,h=l.useMemo(()=>Wte(o),[o]),p=!!((m=u==null?void 0:u.table)!=null&&m.readonly);return y.createElement(qte,{"aria-readonly":p},y.createElement(YD,null,n),y.createElement(Vte,{id:Ct(e),type:"range",disabled:p,onChange:d,name:e,value:t,min:n,max:a,step:o,onFocus:s,onBlur:i}),y.createElement(Ute,{numberOFDecimalsPlaces:h,max:a},f?t.toFixed(h):"--"," / ",a))},Kte=_.label({display:"flex"}),Yte=_.div(({isMaxed:e})=>({marginLeft:"0.75rem",paddingTop:"0.35rem",color:e?"red":void 0})),Zte=({name:e,value:t,onChange:r,onFocus:n,onBlur:a,maxLength:o,argType:i})=>{var m;let s=g=>{r(g.target.value)},u=!!((m=i==null?void 0:i.table)!=null&&m.readonly),[d,f]=l.useState(!1),h=l.useCallback(()=>{r(""),f(!0)},[f]);if(t===void 0)return y.createElement(zn,{variant:"outline",size:"medium",disabled:u,id:js(e),onClick:h},"Set string");let p=typeof t=="string";return y.createElement(Kte,null,y.createElement($i.Textarea,{id:Ct(e),maxLength:o,onChange:s,disabled:u,size:"flex",placeholder:"Edit string...",autoFocus:d,valid:p?null:"error",name:e,value:p?t:"",onFocus:n,onBlur:a}),o&&y.createElement(Yte,{isMaxed:(t==null?void 0:t.length)===o},(t==null?void 0:t.length)??0," / ",o))},Jte=_($i.Input)({padding:10});function Xte(e){e.forEach(t=>{t.startsWith("blob:")&&URL.revokeObjectURL(t)})}var Qte=({onChange:e,name:t,accept:r="image/*",value:n,argType:a})=>{var u;let o=l.useRef(null),i=(u=a==null?void 0:a.control)==null?void 0:u.readOnly;function s(d){if(!d.target.files)return;let f=Array.from(d.target.files).map(h=>URL.createObjectURL(h));e(f),Xte(n)}return l.useEffect(()=>{n==null&&o.current&&(o.current.value=null)},[n,t]),y.createElement(Jte,{ref:o,id:Ct(t),type:"file",name:t,multiple:!0,disabled:i,onChange:s,accept:r,size:"flex"})},ere=l.lazy(()=>Lp(()=>import("./Color-ERTF36HU-Do5AllBJ.js"),__vite__mapDeps([9,2,1,3,4,5,6,7,8]),import.meta.url)),tre=e=>y.createElement(l.Suspense,{fallback:y.createElement("div",null)},y.createElement(ere,{...e})),rre={array:z3,object:z3,boolean:Yee,color:tre,date:tte,number:ote,check:Yn,"inline-check":Yn,radio:Yn,"inline-radio":Yn,select:Yn,"multi-select":Yn,range:Gte,text:Zte,file:Qte},$3=()=>y.createElement(y.Fragment,null,"-"),nre=({row:e,arg:t,updateArgs:r,isHovered:n})=>{var v;let{key:a,control:o}=e,[i,s]=l.useState(!1),[u,d]=l.useState({value:t});l.useEffect(()=>{i||d({value:t})},[i,t]);let f=l.useCallback(b=>(d({value:b}),r({[a]:b}),b),[r,a]),h=l.useCallback(()=>s(!1),[]),p=l.useCallback(()=>s(!0),[]);if(!o||o.disable){let b=(o==null?void 0:o.disable)!==!0&&((v=e==null?void 0:e.type)==null?void 0:v.name)!=="function";return n&&b?y.createElement(ma,{href:"https://storybook.js.org/docs/react/essentials/controls",target:"_blank",withArrow:!0},"Setup controls"):y.createElement($3,null)}let m={name:a,argType:e,value:u.value,onChange:f,onBlur:h,onFocus:p},g=rre[o.type]||$3;return y.createElement(g,{...m,...o,controlType:o.type})},are=_.table(({theme:e})=>({"&&":{borderCollapse:"collapse",borderSpacing:0,border:"none",tr:{border:"none !important",background:"none"},"td, th":{padding:0,border:"none",width:"auto!important"},marginTop:0,marginBottom:0,"th:first-of-type, td:first-of-type":{paddingLeft:0},"th:last-of-type, td:last-of-type":{paddingRight:0},td:{paddingTop:0,paddingBottom:4,"&:not(:first-of-type)":{paddingLeft:10,paddingRight:0}},tbody:{boxShadow:"none",border:"none"},code:Vr({theme:e}),div:{span:{fontWeight:"bold"}},"& code":{margin:0,display:"inline-block",fontSize:e.typography.size.s1}}})),ore=({tags:e})=>{let t=(e.params||[]).filter(o=>o.description),r=t.length!==0,n=e.deprecated!=null,a=e.returns!=null&&e.returns.description!=null;return!r&&!a&&!n?null:y.createElement(y.Fragment,null,y.createElement(are,null,y.createElement("tbody",null,n&&y.createElement("tr",{key:"deprecated"},y.createElement("td",{colSpan:2},y.createElement("strong",null,"Deprecated"),": ",e.deprecated.toString())),r&&t.map(o=>y.createElement("tr",{key:o.name},y.createElement("td",null,y.createElement("code",null,o.name)),y.createElement("td",null,o.description))),a&&y.createElement("tr",{key:"returns"},y.createElement("td",null,y.createElement("code",null,"Returns")),y.createElement("td",null,e.returns.description)))))},Rp=8,L3=_.div(({isExpanded:e})=>({display:"flex",flexDirection:e?"column":"row",flexWrap:"wrap",alignItems:"flex-start",marginBottom:"-4px",minWidth:100})),ire=_.span(Vr,({theme:e,simple:t=!1})=>({flex:"0 0 auto",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,wordBreak:"break-word",whiteSpace:"normal",maxWidth:"100%",margin:0,marginRight:"4px",marginBottom:"4px",paddingTop:"2px",paddingBottom:"2px",lineHeight:"13px",...t&&{background:"transparent",border:"0 none",paddingLeft:0}})),lre=_.button(({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,marginBottom:"4px",background:"none",border:"none"})),sre=_.div(Vr,({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,fontSize:e.typography.size.s1,margin:0,whiteSpace:"nowrap",display:"flex",alignItems:"center"})),ure=_.div(({theme:e,width:t})=>({width:t,minWidth:200,maxWidth:800,padding:15,fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,boxSizing:"content-box","& code":{padding:"0 !important"}})),cre=_(EM)({marginLeft:4}),dre=_(wC)({marginLeft:4}),pre=()=>y.createElement("span",null,"-"),ZD=({text:e,simple:t})=>y.createElement(ire,{simple:t},e),fre=xD(1e3)(e=>{let t=e.split(/\r?\n/);return`${Math.max(...t.map(r=>r.length))}ch`}),hre=e=>{if(!e)return[e];let t=e.split("|").map(r=>r.trim());return VJ(t)},O3=(e,t=!0)=>{let r=e;return t||(r=e.slice(0,Rp)),r.map(n=>y.createElement(ZD,{key:n,text:n===""?'""':n}))},mre=({value:e,initialExpandedArgs:t})=>{let{summary:r,detail:n}=e,[a,o]=l.useState(!1),[i,s]=l.useState(t||!1);if(r==null)return null;let u=typeof r.toString=="function"?r.toString():r;if(n==null){if(/[(){}[\]<>]/.test(u))return y.createElement(ZD,{text:u});let d=hre(u),f=d.length;return f>Rp?y.createElement(L3,{isExpanded:i},O3(d,i),y.createElement(lre,{onClick:()=>s(!i)},i?"Show less...":`Show ${f-Rp} more...`)):y.createElement(L3,null,O3(d))}return y.createElement(SL,{closeOnOutsideClick:!0,placement:"bottom",visible:a,onVisibleChange:d=>{o(d)},tooltip:y.createElement(ure,{width:fre(n)},y.createElement(Th,{language:"jsx",format:!1},n))},y.createElement(sre,{className:"sbdocs-expandable"},y.createElement("span",null,u),a?y.createElement(cre,null):y.createElement(dre,null)))},Bd=({value:e,initialExpandedArgs:t})=>e==null?y.createElement(pre,null):y.createElement(mre,{value:e,initialExpandedArgs:t}),gre=_.span({fontWeight:"bold"}),vre=_.span(({theme:e})=>({color:e.color.negative,fontFamily:e.typography.fonts.mono,cursor:"help"})),yre=_.div(({theme:e})=>({"&&":{p:{margin:"0 0 10px 0"},a:{color:e.color.secondary}},code:{...Vr({theme:e}),fontSize:12,fontFamily:e.typography.fonts.mono},"& code":{margin:0,display:"inline-block"},"& pre > code":{whiteSpace:"pre-wrap"}})),bre=_.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?se(.1,e.color.defaultText):se(.2,e.color.defaultText),marginTop:t?4:0})),wre=_.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?se(.1,e.color.defaultText):se(.2,e.color.defaultText),marginTop:t?12:0,marginBottom:12})),Ere=_.td(({theme:e,expandable:t})=>({paddingLeft:t?"40px !important":"20px !important"})),xre=e=>e&&{summary:typeof e=="string"?e:e.name},El=e=>{var v;let[t,r]=l.useState(!1),{row:n,updateArgs:a,compact:o,expandable:i,initialExpandedArgs:s}=e,{name:u,description:d}=n,f=n.table||{},h=f.type||xre(n.type),p=f.defaultValue||n.defaultValue,m=(v=n.type)==null?void 0:v.required,g=d!=null&&d!=="";return y.createElement("tr",{onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1)},y.createElement(Ere,{expandable:i},y.createElement(gre,null,u),m?y.createElement(vre,{title:"Required"},"*"):null),o?null:y.createElement("td",null,g&&y.createElement(yre,null,y.createElement(vD,null,d)),f.jsDocTags!=null?y.createElement(y.Fragment,null,y.createElement(wre,{hasDescription:g},y.createElement(Bd,{value:h,initialExpandedArgs:s})),y.createElement(ore,{tags:f.jsDocTags})):y.createElement(bre,{hasDescription:g},y.createElement(Bd,{value:h,initialExpandedArgs:s}))),o?null:y.createElement("td",null,y.createElement(Bd,{value:p,initialExpandedArgs:s})),a?y.createElement("td",null,y.createElement(nre,{...e,isHovered:t})):null)},Cre=_.div(({inAddonPanel:e,theme:t})=>({height:e?"100%":"auto",display:"flex",border:e?"none":`1px solid ${t.appBorderColor}`,borderRadius:e?0:t.appBorderRadius,padding:e?0:40,alignItems:"center",justifyContent:"center",flexDirection:"column",gap:15,background:t.background.content,boxShadow:"rgba(0, 0, 0, 0.10) 0 1px 3px 0"})),Dre=_.div(({theme:e})=>({display:"flex",fontSize:e.typography.size.s2-1,gap:25})),Sre=_.div(({theme:e})=>({width:1,height:16,backgroundColor:e.appBorderColor})),Are=({inAddonPanel:e})=>{let[t,r]=l.useState(!0);return l.useEffect(()=>{let n=setTimeout(()=>{r(!1)},100);return()=>clearTimeout(n)},[]),t?null:y.createElement(Cre,{inAddonPanel:e},y.createElement(cC,{title:e?"Interactive story playground":"Args table with interactive controls couldn't be auto-generated",description:y.createElement(y.Fragment,null,"Controls give you an easy to use interface to test your components. Set your story args and you'll see controls appearing here automatically."),footer:y.createElement(Dre,null,e&&y.createElement(y.Fragment,null,y.createElement(ma,{href:"https://youtu.be/0gOfS6K0x0E",target:"_blank",withArrow:!0},y.createElement(mM,null)," Watch 5m video"),y.createElement(Sre,null),y.createElement(ma,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},y.createElement(Ep,null)," Read docs")),!e&&y.createElement(ma,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},y.createElement(Ep,null)," Learn how to set that up"))}))},kre=_(bM)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?se(.25,e.color.defaultText):se(.3,e.color.defaultText),border:"none",display:"inline-block"})),_re=_(wM)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?se(.25,e.color.defaultText):se(.3,e.color.defaultText),border:"none",display:"inline-block"})),Fre=_.span(({theme:e})=>({display:"flex",lineHeight:"20px",alignItems:"center"})),Ire=_.td(({theme:e})=>({position:"relative",letterSpacing:"0.35em",textTransform:"uppercase",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s1-1,color:e.base==="light"?se(.4,e.color.defaultText):se(.6,e.color.defaultText),background:`${e.background.app} !important`,"& ~ td":{background:`${e.background.app} !important`}})),Tre=_.td(({theme:e})=>({position:"relative",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,background:e.background.app})),Rre=_.td(()=>({position:"relative"})),Bre=_.tr(({theme:e})=>({"&:hover > td":{backgroundColor:`${on(.005,e.background.app)} !important`,boxShadow:`${e.color.mediumlight} 0 - 1px 0 0 inset`,cursor:"row-resize"}})),M3=_.button(()=>({background:"none",border:"none",padding:"0",font:"inherit",position:"absolute",top:0,bottom:0,left:0,right:0,height:"100%",width:"100%",color:"transparent",cursor:"row-resize !important"})),zd=({level:e="section",label:t,children:r,initialExpanded:n=!0,colSpan:a=3})=>{let[o,i]=l.useState(n),s=e==="subsection"?Tre:Ire,u=(r==null?void 0:r.length)||0,d=e==="subsection"?`${u} item${u!==1?"s":""}`:"",f=`${o?"Hide":"Show"} ${e==="subsection"?u:t} item${u!==1?"s":""}`;return y.createElement(y.Fragment,null,y.createElement(Bre,{title:f},y.createElement(s,{colSpan:1},y.createElement(M3,{onClick:h=>i(!o),tabIndex:0},f),y.createElement(Fre,null,o?y.createElement(kre,null):y.createElement(_re,null),t)),y.createElement(Rre,{colSpan:a-1},y.createElement(M3,{onClick:h=>i(!o),tabIndex:-1,style:{outline:"none"}},f),o?null:d)),o?r:null)},xl=_.div(({theme:e})=>({display:"flex",gap:16,borderBottom:`1px solid ${e.appBorderColor}`,"&:last-child":{borderBottom:0}})),Ie=_.div(({numColumn:e})=>({display:"flex",flexDirection:"column",flex:e||1,gap:5,padding:"12px 20px"})),ye=_.div(({theme:e,width:t,height:r})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,width:t||"100%",height:r||16,borderRadius:3})),Te=[2,4,2,2],zre=()=>y.createElement(y.Fragment,null,y.createElement(xl,null,y.createElement(Ie,{numColumn:Te[0]},y.createElement(ye,{width:"60%"})),y.createElement(Ie,{numColumn:Te[1]},y.createElement(ye,{width:"30%"})),y.createElement(Ie,{numColumn:Te[2]},y.createElement(ye,{width:"60%"})),y.createElement(Ie,{numColumn:Te[3]},y.createElement(ye,{width:"60%"}))),y.createElement(xl,null,y.createElement(Ie,{numColumn:Te[0]},y.createElement(ye,{width:"60%"})),y.createElement(Ie,{numColumn:Te[1]},y.createElement(ye,{width:"80%"}),y.createElement(ye,{width:"30%"})),y.createElement(Ie,{numColumn:Te[2]},y.createElement(ye,{width:"60%"})),y.createElement(Ie,{numColumn:Te[3]},y.createElement(ye,{width:"60%"}))),y.createElement(xl,null,y.createElement(Ie,{numColumn:Te[0]},y.createElement(ye,{width:"60%"})),y.createElement(Ie,{numColumn:Te[1]},y.createElement(ye,{width:"80%"}),y.createElement(ye,{width:"30%"})),y.createElement(Ie,{numColumn:Te[2]},y.createElement(ye,{width:"60%"})),y.createElement(Ie,{numColumn:Te[3]},y.createElement(ye,{width:"60%"}))),y.createElement(xl,null,y.createElement(Ie,{numColumn:Te[0]},y.createElement(ye,{width:"60%"})),y.createElement(Ie,{numColumn:Te[1]},y.createElement(ye,{width:"80%"}),y.createElement(ye,{width:"30%"})),y.createElement(Ie,{numColumn:Te[2]},y.createElement(ye,{width:"60%"})),y.createElement(Ie,{numColumn:Te[3]},y.createElement(ye,{width:"60%"})))),$re=_.table(({theme:e,compact:t,inAddonPanel:r})=>({"&&":{borderSpacing:0,color:e.color.defaultText,"td, th":{padding:0,border:"none",verticalAlign:"top",textOverflow:"ellipsis"},fontSize:e.typography.size.s2-1,lineHeight:"20px",textAlign:"left",width:"100%",marginTop:r?0:25,marginBottom:r?0:40,"thead th:first-of-type, td:first-of-type":{width:"25%"},"th:first-of-type, td:first-of-type":{paddingLeft:20},"th:nth-of-type(2), td:nth-of-type(2)":{...t?null:{width:"35%"}},"td:nth-of-type(3)":{...t?null:{width:"15%"}},"th:last-of-type, td:last-of-type":{paddingRight:20,...t?null:{width:"25%"}},th:{color:e.base==="light"?se(.25,e.color.defaultText):se(.45,e.color.defaultText),paddingTop:10,paddingBottom:10,paddingLeft:15,paddingRight:15},td:{paddingTop:"10px",paddingBottom:"10px","&:not(:first-of-type)":{paddingLeft:15,paddingRight:15},"&:last-of-type":{paddingRight:20}},marginLeft:r?0:1,marginRight:r?0:1,tbody:{...r?null:{filter:e.base==="light"?"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.10))":"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.20))"},"> tr > *":{background:e.background.content,borderTop:`1px solid ${e.appBorderColor}`},...r?null:{"> tr:first-of-type > *":{borderBlockStart:`1px solid ${e.appBorderColor}`},"> tr:last-of-type > *":{borderBlockEnd:`1px solid ${e.appBorderColor}`},"> tr > *:first-of-type":{borderInlineStart:`1px solid ${e.appBorderColor}`},"> tr > *:last-of-type":{borderInlineEnd:`1px solid ${e.appBorderColor}`},"> tr:first-of-type > td:first-of-type":{borderTopLeftRadius:e.appBorderRadius},"> tr:first-of-type > td:last-of-type":{borderTopRightRadius:e.appBorderRadius},"> tr:last-of-type > td:first-of-type":{borderBottomLeftRadius:e.appBorderRadius},"> tr:last-of-type > td:last-of-type":{borderBottomRightRadius:e.appBorderRadius}}}}})),Lre=_(yn)(({theme:e})=>({margin:"-4px -12px -4px 0"})),Ore=_.span({display:"flex",justifyContent:"space-between"}),Mre={alpha:(e,t)=>e.name.localeCompare(t.name),requiredFirst:(e,t)=>{var r,n;return+!!((r=t.type)!=null&&r.required)-+!!((n=e.type)!=null&&n.required)||e.name.localeCompare(t.name)},none:void 0},Pre=(e,t)=>{let r={ungrouped:[],ungroupedSubsections:{},sections:{}};if(!e)return r;Object.entries(e).forEach(([o,i])=>{let{category:s,subcategory:u}=(i==null?void 0:i.table)||{};if(s){let d=r.sections[s]||{ungrouped:[],subsections:{}};if(!u)d.ungrouped.push({key:o,...i});else{let f=d.subsections[u]||[];f.push({key:o,...i}),d.subsections[u]=f}r.sections[s]=d}else if(u){let d=r.ungroupedSubsections[u]||[];d.push({key:o,...i}),r.ungroupedSubsections[u]=d}else r.ungrouped.push({key:o,...i})});let n=Mre[t],a=o=>n?Object.keys(o).reduce((i,s)=>({...i,[s]:o[s].sort(n)}),{}):o;return{ungrouped:r.ungrouped.sort(n),ungroupedSubsections:a(r.ungroupedSubsections),sections:Object.keys(r.sections).reduce((o,i)=>({...o,[i]:{ungrouped:r.sections[i].ungrouped.sort(n),subsections:a(r.sections[i].subsections)}}),{})}},Nre=(e,t,r)=>{try{return pS(e,t,r)}catch(n){return cee.warn(n.message),!1}},Bp=e=>{let{updateArgs:t,resetArgs:r,compact:n,inAddonPanel:a,initialExpandedArgs:o,sort:i="none",isLoading:s}=e;if("error"in e){let{error:E}=e;return y.createElement(BD,null,E," ",y.createElement(ma,{href:"http://storybook.js.org/docs/",target:"_blank",withArrow:!0},y.createElement(Ep,null)," Read the docs"))}if(s)return y.createElement(zre,null);let{rows:u,args:d,globals:f}="rows"in e&&e,h=Pre(wG(u,E=>{var C;return!((C=E==null?void 0:E.table)!=null&&C.disable)&&Nre(E,d||{},f||{})}),i),p=h.ungrouped.length===0,m=Object.entries(h.sections).length===0,g=Object.entries(h.ungroupedSubsections).length===0;if(p&&m&&g)return y.createElement(Are,{inAddonPanel:a});let v=1;t&&(v+=1),n||(v+=2);let b=Object.keys(h.sections).length>0,x={updateArgs:t,compact:n,inAddonPanel:a,initialExpandedArgs:o};return y.createElement(Ix,null,y.createElement($re,{compact:n,inAddonPanel:a,className:"docblock-argstable sb-unstyled"},y.createElement("thead",{className:"docblock-argstable-head"},y.createElement("tr",null,y.createElement("th",null,y.createElement("span",null,"Name")),n?null:y.createElement("th",null,y.createElement("span",null,"Description")),n?null:y.createElement("th",null,y.createElement("span",null,"Default")),t?y.createElement("th",null,y.createElement(Ore,null,"Control"," ",!s&&r&&y.createElement(Lre,{onClick:()=>r(),title:"Reset controls"},y.createElement(xM,{"aria-hidden":!0})))):null)),y.createElement("tbody",{className:"docblock-argstable-body"},h.ungrouped.map(E=>y.createElement(El,{key:E.key,row:E,arg:d&&d[E.key],...x})),Object.entries(h.ungroupedSubsections).map(([E,C])=>y.createElement(zd,{key:E,label:E,level:"subsection",colSpan:v},C.map(w=>y.createElement(El,{key:w.key,row:w,arg:d&&d[w.key],expandable:b,...x})))),Object.entries(h.sections).map(([E,C])=>y.createElement(zd,{key:E,label:E,level:"section",colSpan:v},C.ungrouped.map(w=>y.createElement(El,{key:w.key,row:w,arg:d&&d[w.key],...x})),Object.entries(C.subsections).map(([w,D])=>y.createElement(zd,{key:w,label:w,level:"subsection",colSpan:v},D.map(S=>y.createElement(El,{key:S.key,row:S,arg:d&&d[S.key],expandable:b,...x})))))))))},Hre=({tabs:e,...t})=>{let r=Object.entries(e);return r.length===1?y.createElement(Bp,{...r[0][1],...t}):y.createElement(lO,null,r.map((n,a)=>{let[o,i]=n,s=`prop_table_div_${o}`,u="div",d=a===0?t:{sort:t.sort};return y.createElement(u,{key:s,id:s,title:o},({active:f})=>f?y.createElement(Bp,{key:`prop_table_${o}`,...i,...d}):null)}))};_.div(({theme:e})=>({marginRight:30,fontSize:`${e.typography.size.s1}px`,color:e.base==="light"?se(.4,e.color.defaultText):se(.6,e.color.defaultText)}));_.div({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});_.div({display:"flex",flexDirection:"row",alignItems:"baseline","&:not(:last-child)":{marginBottom:"1rem"}});_.div(de,({theme:e})=>({...Zu(e),margin:"25px 0 40px",padding:"30px 20px"}));_.div(({theme:e})=>({fontWeight:e.typography.weight.bold,color:e.color.defaultText}));_.div(({theme:e})=>({color:e.base==="light"?se(.2,e.color.defaultText):se(.6,e.color.defaultText)}));_.div({flex:"0 0 30%",lineHeight:"20px",marginTop:5});_.div(({theme:e})=>({flex:1,textAlign:"center",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,lineHeight:1,overflow:"hidden",color:e.base==="light"?se(.4,e.color.defaultText):se(.6,e.color.defaultText),"> div":{display:"inline-block",overflow:"hidden",maxWidth:"100%",textOverflow:"ellipsis"},span:{display:"block",marginTop:2}}));_.div({display:"flex",flexDirection:"row"});_.div(({background:e})=>({position:"relative",flex:1,"&::before":{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:e,content:'""'}}));_.div(({theme:e})=>({...Zu(e),display:"flex",flexDirection:"row",height:50,marginBottom:5,overflow:"hidden",backgroundColor:"white",backgroundImage:"repeating-linear-gradient(-45deg, #ccc, #ccc 1px, #fff 1px, #fff 16px)",backgroundClip:"padding-box"}));_.div({display:"flex",flexDirection:"column",flex:1,position:"relative",marginBottom:30});_.div({flex:1,display:"flex",flexDirection:"row"});_.div({display:"flex",alignItems:"flex-start"});_.div({flex:"0 0 30%"});_.div({flex:1});_.div(({theme:e})=>({display:"flex",flexDirection:"row",alignItems:"center",paddingBottom:20,fontWeight:e.typography.weight.bold,color:e.base==="light"?se(.4,e.color.defaultText):se(.6,e.color.defaultText)}));_.div(({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"20px",display:"flex",flexDirection:"column"}));_.div(({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s2,color:e.color.defaultText,marginLeft:10,lineHeight:1.2}));_.div(({theme:e})=>({...Zu(e),overflow:"hidden",height:40,width:40,display:"flex",alignItems:"center",justifyContent:"center",flex:"none","> img, > svg":{width:20,height:20}}));_.div({display:"inline-flex",flexDirection:"row",alignItems:"center",flex:"0 1 calc(20% - 10px)",minWidth:120,margin:"0px 10px 30px 0"});_.div({display:"flex",flexFlow:"row wrap"});var jre=e=>`anchor--${e}`,Vre=({storyId:e,children:t})=>y.createElement("div",{id:jre(e),className:"sb-anchor"},t);tt&&tt.__DOCS_CONTEXT__===void 0&&(tt.__DOCS_CONTEXT__=l.createContext(null),tt.__DOCS_CONTEXT__.displayName="DocsContext");var rr=tt?tt.__DOCS_CONTEXT__:l.createContext(null),Mn=(e,t)=>l.useContext(rr).resolveOf(e,t),Ure=e=>e.split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(""),qre=e=>{if(e)return typeof e=="string"?e.includes("-")?Ure(e):e:e.__docgenInfo&&e.__docgenInfo.displayName?e.__docgenInfo.displayName:e.name};function Wre(e,t="start"){e.scrollIntoView({behavior:"smooth",block:t,inline:"nearest"})}function JD(e){return see(e,{allowFunction:!1})}var XD=l.createContext({sources:{}}),QD="--unknown--",Gre=({children:e,channel:t})=>{let[r,n]=l.useState({});return l.useEffect(()=>{let a=(o,i=null,s=!1)=>{let{id:u,args:d=void 0,source:f,format:h}=typeof o=="string"?{id:o,source:i,format:s}:o,p=d?JD(d):QD;n(m=>({...m,[u]:{...m[u],[p]:{code:f,format:h}}}))};return t.on(Cm,a),()=>t.off(Cm,a)},[]),y.createElement(XD.Provider,{value:{sources:r}},e)},Kre=(e,t,r)=>{let{sources:n}=r,a=n==null?void 0:n[e];return(a==null?void 0:a[JD(t)])||(a==null?void 0:a[QD])||{code:""}},Yre=({snippet:e,storyContext:t,typeFromProps:r,transformFromProps:n})=>{var u,d;let{__isArgsStory:a}=t.parameters,o=((u=t.parameters.docs)==null?void 0:u.source)||{},i=r||o.type||ec.AUTO;if(o.code!==void 0)return o.code;let s=i===ec.DYNAMIC||i===ec.AUTO&&e&&a?e:o.originalSource||"";return((d=n??o.transform)==null?void 0:d(s,t))||s},Zre=(e,t,r)=>{var m,g,v,b;let n,{of:a}=e;if("of"in e&&a===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");if(a)n=t.resolveOf(a,["story"]).story;else try{n=t.storyById()}catch{}let o=((g=(m=n==null?void 0:n.parameters)==null?void 0:m.docs)==null?void 0:g.source)||{},{code:i}=e,s=e.format??o.format,u=e.language??o.language??"jsx",d=e.dark??o.dark??!1;if(!i&&!n)return{error:"Oh no! The source is not available."};if(i)return{code:i,format:s,language:u,dark:d};let f=t.getStoryContext(n),h=e.__forceInitialArgs?f.initialArgs:f.unmappedArgs,p=Kre(n.id,h,r);return s=p.format??((b=(v=n.parameters.docs)==null?void 0:v.source)==null?void 0:b.format)??!1,{code:Yre({snippet:p.code,storyContext:{...f,args:h},typeFromProps:e.type,transformFromProps:e.transform}),format:s,language:u,dark:d}};function Jre(e,t){let r=Xre([e],t);return r&&r[0]}function Xre(e,t){let[r,n]=l.useState({});return l.useEffect(()=>{Promise.all(e.map(async a=>{let o=await t.loadStory(a);n(i=>i[a]===o?i:{...i,[a]:o})}))}),e.map(a=>{if(r[a])return r[a];try{return t.storyById(a)}catch{return null}})}var Qre=(e,t)=>{let{of:r,meta:n}=e;if("of"in e&&r===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");return n&&t.referenceMeta(n,!1),t.resolveOf(r||"story",["story"]).story.id},ene=(e,t,r)=>{let{parameters:n={}}=t||{},{docs:a={}}=n,o=a.story||{};if(a.disable)return null;if(e.inline??o.inline??!1){let s=e.height??o.height,u=e.autoplay??o.autoplay??!1;return{story:t,inline:!0,height:s,autoplay:u,forceInitialArgs:!!e.__forceInitialArgs,primary:!!e.__primary,renderStoryToElement:r.renderStoryToElement}}let i=e.height??o.height??o.iframeHeight??"100px";return{story:t,inline:!1,height:i,primary:!!e.__primary}},tne=(e={__forceInitialArgs:!1,__primary:!1})=>{let t=l.useContext(rr),r=Qre(e,t),n=Jre(r,t);if(!n)return y.createElement(LD,null);let a=ene(e,n,t);return a?y.createElement(Lee,{...a}):null},rne=e=>{var p,m,g,v,b,x,E,C,w,D;let t=l.useContext(rr),r=l.useContext(XD),{of:n,source:a}=e;if("of"in e&&n===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let{story:o}=Mn(n||"story",["story"]),i=Zre({...a,...n&&{of:n}},t,r),s=e.layout??o.parameters.layout??((m=(p=o.parameters.docs)==null?void 0:p.canvas)==null?void 0:m.layout)??"padded",u=e.withToolbar??((v=(g=o.parameters.docs)==null?void 0:g.canvas)==null?void 0:v.withToolbar)??!1,d=e.additionalActions??((x=(b=o.parameters.docs)==null?void 0:b.canvas)==null?void 0:x.additionalActions),f=e.sourceState??((C=(E=o.parameters.docs)==null?void 0:E.canvas)==null?void 0:C.sourceState)??"hidden",h=e.className??((D=(w=o.parameters.docs)==null?void 0:w.canvas)==null?void 0:D.className);return y.createElement(OD,{withSource:f==="none"?void 0:i,isExpanded:f==="shown",withToolbar:u,additionalActions:d,className:h,layout:s},y.createElement(tne,{of:n||o.moduleExport,meta:e.meta,...e.story}))},nne=(e,t)=>{let r=ane(e,t);if(!r)throw new Error("No result when story was defined");return r},ane=(e,t)=>{let r=e?t.getStoryContext(e):{args:{}},{id:n}=e||{id:"none"},[a,o]=l.useState(r.args);l.useEffect(()=>{let u=d=>{d.storyId===n&&o(d.args)};return t.channel.on(S3,u),()=>t.channel.off(S3,u)},[n,t.channel]);let i=l.useCallback(u=>t.channel.emit(dee,{storyId:n,updatedArgs:u}),[n,t.channel]),s=l.useCallback(u=>t.channel.emit(pee,{storyId:n,argNames:u}),[n,t.channel]);return e&&[a,i,s]},one=(e,t)=>{let r=t.getStoryContext(e),[n,a]=l.useState(r.globals);return l.useEffect(()=>{let o=i=>{a(i.globals)};return t.channel.on(A3,o),()=>t.channel.off(A3,o)},[t.channel]),[n]};function ine(e,t){let{extractArgTypes:r}=t.docs||{};if(!r)throw new Error("Args unsupported. See Args documentation for your framework.");return r(e)}var lne=e=>{var w;let{of:t}=e;if("of"in e&&t===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let r=l.useContext(rr),{story:n}=r.resolveOf(t||"story",["story"]),{parameters:a,argTypes:o,component:i,subcomponents:s}=n,u=((w=a.docs)==null?void 0:w.controls)||{},d=e.include??u.include,f=e.exclude??u.exclude,h=e.sort??u.sort,[p,m,g]=nne(n,r),[v]=one(n,r),b=D3(o,d,f);if(!(s&&Object.keys(s).length>0))return Object.keys(b).length>0||Object.keys(p).length>0?y.createElement(Bp,{rows:b,sort:h,args:p,globals:v,updateArgs:m,resetArgs:g}):null;let x=qre(i),E=Object.fromEntries(Object.entries(s).map(([D,S])=>[D,{rows:D3(ine(S,a),d,f),sort:h}])),C={[x]:{rows:b,sort:h},...E};return y.createElement(Hre,{tabs:C,sort:h,args:p,globals:v,updateArgs:m,resetArgs:g})},{document:eS}=tt,tS=({className:e,children:t,...r})=>{if(typeof e!="string"&&(typeof t!="string"||!t.match(/[\n\r]/g)))return y.createElement(Tx,null,t);let n=e&&e.split("-");return y.createElement(zD,{language:n&&n[1]||"text",format:!1,code:t,...r})};function vm(e,t){e.channel.emit(fee,t)}var zp=DO.a,sne=({hash:e,children:t})=>{let r=l.useContext(rr);return y.createElement(zp,{href:e,target:"_self",onClick:n=>{let a=e.substring(1);eS.getElementById(a)&&vm(r,e)}},t)},rS=e=>{let{href:t,target:r,children:n,...a}=e,o=l.useContext(rr);return!t||r==="_blank"||/^https?:\/\//.test(t)?y.createElement(zp,{...e}):t.startsWith("#")?y.createElement(sne,{hash:t},n):y.createElement(zp,{href:t,onClick:i=>{i.button===0&&!i.altKey&&!i.ctrlKey&&!i.metaKey&&!i.shiftKey&&(i.preventDefault(),vm(o,i.currentTarget.getAttribute("href")))},target:r,...a},n)},nS=["h1","h2","h3","h4","h5","h6"],une=nS.reduce((e,t)=>({...e,[t]:_(t)({"& svg":{position:"relative",top:"-0.1em",visibility:"hidden"},"&:hover svg":{visibility:"visible"}})}),{}),cne=_.a(()=>({float:"left",lineHeight:"inherit",paddingRight:"10px",marginLeft:"-24px",color:"inherit"})),dne=({as:e,id:t,children:r,...n})=>{let a=l.useContext(rr),o=une[e],i=`#${t}`;return y.createElement(o,{id:t,...n},y.createElement(cne,{"aria-hidden":"true",href:i,tabIndex:-1,target:"_self",onClick:s=>{eS.getElementById(t)&&vm(a,i)}},y.createElement(yM,null)),r)},ym=e=>{let{as:t,id:r,children:n,...a}=e;if(r)return y.createElement(dne,{as:t,id:r,...a},n);let o=t,{as:i,...s}=e;return y.createElement(o,{...ce(s,t)})},aS=nS.reduce((e,t)=>({...e,[t]:r=>y.createElement(ym,{as:t,...r})}),{}),pne=e=>{var t;if(!e.children)return null;if(typeof e.children!="string")throw new Error(fS`The Markdown block only accepts children as a single string, but children were of type: '${typeof e.children}' + ${on(.02,e.input.background)} 100%)`,boxShadow:`${e.appBorderColor} 0 0 0 1px inset`,color:"transparent",width:"100%",height:"6px",cursor:"pointer"},"&::-ms-fill-lower":{borderRadius:6},"&::-ms-fill-upper":{borderRadius:6},"&::-ms-thumb":{width:16,height:16,background:`${e.input.background}`,border:`1px solid ${Ot(e.appBorderColor,.2)}`,borderRadius:50,cursor:"grab",marginTop:0},"@supports (-ms-ime-align:auto)":{"input[type=range]":{margin:"0"}}})),YD=_.span({paddingLeft:5,paddingRight:5,fontSize:12,whiteSpace:"nowrap",fontFeatureSettings:"tnum",fontVariantNumeric:"tabular-nums","[aria-readonly=true] &":{opacity:.5}}),Ute=_(YD)(({numberOFDecimalsPlaces:e,max:t})=>({width:`${e+t.toString().length*2+3}ch`,textAlign:"right",flexShrink:0})),qte=_.div({display:"flex",alignItems:"center",width:"100%"});function Wte(e){let t=e.toString().match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}var Gte=({name:e,value:t,onChange:r,min:n=0,max:a=100,step:o=1,onBlur:i,onFocus:s,argType:u})=>{var m;let d=g=>{r(nte(g.target.value))},f=t!==void 0,h=l.useMemo(()=>Wte(o),[o]),p=!!((m=u==null?void 0:u.table)!=null&&m.readonly);return y.createElement(qte,{"aria-readonly":p},y.createElement(YD,null,n),y.createElement(Vte,{id:Ct(e),type:"range",disabled:p,onChange:d,name:e,value:t,min:n,max:a,step:o,onFocus:s,onBlur:i}),y.createElement(Ute,{numberOFDecimalsPlaces:h,max:a},f?t.toFixed(h):"--"," / ",a))},Kte=_.label({display:"flex"}),Yte=_.div(({isMaxed:e})=>({marginLeft:"0.75rem",paddingTop:"0.35rem",color:e?"red":void 0})),Zte=({name:e,value:t,onChange:r,onFocus:n,onBlur:a,maxLength:o,argType:i})=>{var m;let s=g=>{r(g.target.value)},u=!!((m=i==null?void 0:i.table)!=null&&m.readonly),[d,f]=l.useState(!1),h=l.useCallback(()=>{r(""),f(!0)},[f]);if(t===void 0)return y.createElement(zn,{variant:"outline",size:"medium",disabled:u,id:js(e),onClick:h},"Set string");let p=typeof t=="string";return y.createElement(Kte,null,y.createElement($i.Textarea,{id:Ct(e),maxLength:o,onChange:s,disabled:u,size:"flex",placeholder:"Edit string...",autoFocus:d,valid:p?null:"error",name:e,value:p?t:"",onFocus:n,onBlur:a}),o&&y.createElement(Yte,{isMaxed:(t==null?void 0:t.length)===o},(t==null?void 0:t.length)??0," / ",o))},Jte=_($i.Input)({padding:10});function Xte(e){e.forEach(t=>{t.startsWith("blob:")&&URL.revokeObjectURL(t)})}var Qte=({onChange:e,name:t,accept:r="image/*",value:n,argType:a})=>{var u;let o=l.useRef(null),i=(u=a==null?void 0:a.control)==null?void 0:u.readOnly;function s(d){if(!d.target.files)return;let f=Array.from(d.target.files).map(h=>URL.createObjectURL(h));e(f),Xte(n)}return l.useEffect(()=>{n==null&&o.current&&(o.current.value=null)},[n,t]),y.createElement(Jte,{ref:o,id:Ct(t),type:"file",name:t,multiple:!0,disabled:i,onChange:s,accept:r,size:"flex"})},ere=l.lazy(()=>Lp(()=>import("./Color-ERTF36HU-Cgpvzn3J.js"),__vite__mapDeps([9,2,1,3,4,5,6,7,8]),import.meta.url)),tre=e=>y.createElement(l.Suspense,{fallback:y.createElement("div",null)},y.createElement(ere,{...e})),rre={array:z3,object:z3,boolean:Yee,color:tre,date:tte,number:ote,check:Yn,"inline-check":Yn,radio:Yn,"inline-radio":Yn,select:Yn,"multi-select":Yn,range:Gte,text:Zte,file:Qte},$3=()=>y.createElement(y.Fragment,null,"-"),nre=({row:e,arg:t,updateArgs:r,isHovered:n})=>{var v;let{key:a,control:o}=e,[i,s]=l.useState(!1),[u,d]=l.useState({value:t});l.useEffect(()=>{i||d({value:t})},[i,t]);let f=l.useCallback(b=>(d({value:b}),r({[a]:b}),b),[r,a]),h=l.useCallback(()=>s(!1),[]),p=l.useCallback(()=>s(!0),[]);if(!o||o.disable){let b=(o==null?void 0:o.disable)!==!0&&((v=e==null?void 0:e.type)==null?void 0:v.name)!=="function";return n&&b?y.createElement(ma,{href:"https://storybook.js.org/docs/react/essentials/controls",target:"_blank",withArrow:!0},"Setup controls"):y.createElement($3,null)}let m={name:a,argType:e,value:u.value,onChange:f,onBlur:h,onFocus:p},g=rre[o.type]||$3;return y.createElement(g,{...m,...o,controlType:o.type})},are=_.table(({theme:e})=>({"&&":{borderCollapse:"collapse",borderSpacing:0,border:"none",tr:{border:"none !important",background:"none"},"td, th":{padding:0,border:"none",width:"auto!important"},marginTop:0,marginBottom:0,"th:first-of-type, td:first-of-type":{paddingLeft:0},"th:last-of-type, td:last-of-type":{paddingRight:0},td:{paddingTop:0,paddingBottom:4,"&:not(:first-of-type)":{paddingLeft:10,paddingRight:0}},tbody:{boxShadow:"none",border:"none"},code:Vr({theme:e}),div:{span:{fontWeight:"bold"}},"& code":{margin:0,display:"inline-block",fontSize:e.typography.size.s1}}})),ore=({tags:e})=>{let t=(e.params||[]).filter(o=>o.description),r=t.length!==0,n=e.deprecated!=null,a=e.returns!=null&&e.returns.description!=null;return!r&&!a&&!n?null:y.createElement(y.Fragment,null,y.createElement(are,null,y.createElement("tbody",null,n&&y.createElement("tr",{key:"deprecated"},y.createElement("td",{colSpan:2},y.createElement("strong",null,"Deprecated"),": ",e.deprecated.toString())),r&&t.map(o=>y.createElement("tr",{key:o.name},y.createElement("td",null,y.createElement("code",null,o.name)),y.createElement("td",null,o.description))),a&&y.createElement("tr",{key:"returns"},y.createElement("td",null,y.createElement("code",null,"Returns")),y.createElement("td",null,e.returns.description)))))},Rp=8,L3=_.div(({isExpanded:e})=>({display:"flex",flexDirection:e?"column":"row",flexWrap:"wrap",alignItems:"flex-start",marginBottom:"-4px",minWidth:100})),ire=_.span(Vr,({theme:e,simple:t=!1})=>({flex:"0 0 auto",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,wordBreak:"break-word",whiteSpace:"normal",maxWidth:"100%",margin:0,marginRight:"4px",marginBottom:"4px",paddingTop:"2px",paddingBottom:"2px",lineHeight:"13px",...t&&{background:"transparent",border:"0 none",paddingLeft:0}})),lre=_.button(({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,marginBottom:"4px",background:"none",border:"none"})),sre=_.div(Vr,({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,fontSize:e.typography.size.s1,margin:0,whiteSpace:"nowrap",display:"flex",alignItems:"center"})),ure=_.div(({theme:e,width:t})=>({width:t,minWidth:200,maxWidth:800,padding:15,fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,boxSizing:"content-box","& code":{padding:"0 !important"}})),cre=_(EM)({marginLeft:4}),dre=_(wC)({marginLeft:4}),pre=()=>y.createElement("span",null,"-"),ZD=({text:e,simple:t})=>y.createElement(ire,{simple:t},e),fre=xD(1e3)(e=>{let t=e.split(/\r?\n/);return`${Math.max(...t.map(r=>r.length))}ch`}),hre=e=>{if(!e)return[e];let t=e.split("|").map(r=>r.trim());return VJ(t)},O3=(e,t=!0)=>{let r=e;return t||(r=e.slice(0,Rp)),r.map(n=>y.createElement(ZD,{key:n,text:n===""?'""':n}))},mre=({value:e,initialExpandedArgs:t})=>{let{summary:r,detail:n}=e,[a,o]=l.useState(!1),[i,s]=l.useState(t||!1);if(r==null)return null;let u=typeof r.toString=="function"?r.toString():r;if(n==null){if(/[(){}[\]<>]/.test(u))return y.createElement(ZD,{text:u});let d=hre(u),f=d.length;return f>Rp?y.createElement(L3,{isExpanded:i},O3(d,i),y.createElement(lre,{onClick:()=>s(!i)},i?"Show less...":`Show ${f-Rp} more...`)):y.createElement(L3,null,O3(d))}return y.createElement(SL,{closeOnOutsideClick:!0,placement:"bottom",visible:a,onVisibleChange:d=>{o(d)},tooltip:y.createElement(ure,{width:fre(n)},y.createElement(Th,{language:"jsx",format:!1},n))},y.createElement(sre,{className:"sbdocs-expandable"},y.createElement("span",null,u),a?y.createElement(cre,null):y.createElement(dre,null)))},Bd=({value:e,initialExpandedArgs:t})=>e==null?y.createElement(pre,null):y.createElement(mre,{value:e,initialExpandedArgs:t}),gre=_.span({fontWeight:"bold"}),vre=_.span(({theme:e})=>({color:e.color.negative,fontFamily:e.typography.fonts.mono,cursor:"help"})),yre=_.div(({theme:e})=>({"&&":{p:{margin:"0 0 10px 0"},a:{color:e.color.secondary}},code:{...Vr({theme:e}),fontSize:12,fontFamily:e.typography.fonts.mono},"& code":{margin:0,display:"inline-block"},"& pre > code":{whiteSpace:"pre-wrap"}})),bre=_.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?se(.1,e.color.defaultText):se(.2,e.color.defaultText),marginTop:t?4:0})),wre=_.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?se(.1,e.color.defaultText):se(.2,e.color.defaultText),marginTop:t?12:0,marginBottom:12})),Ere=_.td(({theme:e,expandable:t})=>({paddingLeft:t?"40px !important":"20px !important"})),xre=e=>e&&{summary:typeof e=="string"?e:e.name},El=e=>{var v;let[t,r]=l.useState(!1),{row:n,updateArgs:a,compact:o,expandable:i,initialExpandedArgs:s}=e,{name:u,description:d}=n,f=n.table||{},h=f.type||xre(n.type),p=f.defaultValue||n.defaultValue,m=(v=n.type)==null?void 0:v.required,g=d!=null&&d!=="";return y.createElement("tr",{onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1)},y.createElement(Ere,{expandable:i},y.createElement(gre,null,u),m?y.createElement(vre,{title:"Required"},"*"):null),o?null:y.createElement("td",null,g&&y.createElement(yre,null,y.createElement(vD,null,d)),f.jsDocTags!=null?y.createElement(y.Fragment,null,y.createElement(wre,{hasDescription:g},y.createElement(Bd,{value:h,initialExpandedArgs:s})),y.createElement(ore,{tags:f.jsDocTags})):y.createElement(bre,{hasDescription:g},y.createElement(Bd,{value:h,initialExpandedArgs:s}))),o?null:y.createElement("td",null,y.createElement(Bd,{value:p,initialExpandedArgs:s})),a?y.createElement("td",null,y.createElement(nre,{...e,isHovered:t})):null)},Cre=_.div(({inAddonPanel:e,theme:t})=>({height:e?"100%":"auto",display:"flex",border:e?"none":`1px solid ${t.appBorderColor}`,borderRadius:e?0:t.appBorderRadius,padding:e?0:40,alignItems:"center",justifyContent:"center",flexDirection:"column",gap:15,background:t.background.content,boxShadow:"rgba(0, 0, 0, 0.10) 0 1px 3px 0"})),Dre=_.div(({theme:e})=>({display:"flex",fontSize:e.typography.size.s2-1,gap:25})),Sre=_.div(({theme:e})=>({width:1,height:16,backgroundColor:e.appBorderColor})),Are=({inAddonPanel:e})=>{let[t,r]=l.useState(!0);return l.useEffect(()=>{let n=setTimeout(()=>{r(!1)},100);return()=>clearTimeout(n)},[]),t?null:y.createElement(Cre,{inAddonPanel:e},y.createElement(cC,{title:e?"Interactive story playground":"Args table with interactive controls couldn't be auto-generated",description:y.createElement(y.Fragment,null,"Controls give you an easy to use interface to test your components. Set your story args and you'll see controls appearing here automatically."),footer:y.createElement(Dre,null,e&&y.createElement(y.Fragment,null,y.createElement(ma,{href:"https://youtu.be/0gOfS6K0x0E",target:"_blank",withArrow:!0},y.createElement(mM,null)," Watch 5m video"),y.createElement(Sre,null),y.createElement(ma,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},y.createElement(Ep,null)," Read docs")),!e&&y.createElement(ma,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},y.createElement(Ep,null)," Learn how to set that up"))}))},kre=_(bM)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?se(.25,e.color.defaultText):se(.3,e.color.defaultText),border:"none",display:"inline-block"})),_re=_(wM)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?se(.25,e.color.defaultText):se(.3,e.color.defaultText),border:"none",display:"inline-block"})),Fre=_.span(({theme:e})=>({display:"flex",lineHeight:"20px",alignItems:"center"})),Ire=_.td(({theme:e})=>({position:"relative",letterSpacing:"0.35em",textTransform:"uppercase",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s1-1,color:e.base==="light"?se(.4,e.color.defaultText):se(.6,e.color.defaultText),background:`${e.background.app} !important`,"& ~ td":{background:`${e.background.app} !important`}})),Tre=_.td(({theme:e})=>({position:"relative",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,background:e.background.app})),Rre=_.td(()=>({position:"relative"})),Bre=_.tr(({theme:e})=>({"&:hover > td":{backgroundColor:`${on(.005,e.background.app)} !important`,boxShadow:`${e.color.mediumlight} 0 - 1px 0 0 inset`,cursor:"row-resize"}})),M3=_.button(()=>({background:"none",border:"none",padding:"0",font:"inherit",position:"absolute",top:0,bottom:0,left:0,right:0,height:"100%",width:"100%",color:"transparent",cursor:"row-resize !important"})),zd=({level:e="section",label:t,children:r,initialExpanded:n=!0,colSpan:a=3})=>{let[o,i]=l.useState(n),s=e==="subsection"?Tre:Ire,u=(r==null?void 0:r.length)||0,d=e==="subsection"?`${u} item${u!==1?"s":""}`:"",f=`${o?"Hide":"Show"} ${e==="subsection"?u:t} item${u!==1?"s":""}`;return y.createElement(y.Fragment,null,y.createElement(Bre,{title:f},y.createElement(s,{colSpan:1},y.createElement(M3,{onClick:h=>i(!o),tabIndex:0},f),y.createElement(Fre,null,o?y.createElement(kre,null):y.createElement(_re,null),t)),y.createElement(Rre,{colSpan:a-1},y.createElement(M3,{onClick:h=>i(!o),tabIndex:-1,style:{outline:"none"}},f),o?null:d)),o?r:null)},xl=_.div(({theme:e})=>({display:"flex",gap:16,borderBottom:`1px solid ${e.appBorderColor}`,"&:last-child":{borderBottom:0}})),Ie=_.div(({numColumn:e})=>({display:"flex",flexDirection:"column",flex:e||1,gap:5,padding:"12px 20px"})),ye=_.div(({theme:e,width:t,height:r})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,width:t||"100%",height:r||16,borderRadius:3})),Te=[2,4,2,2],zre=()=>y.createElement(y.Fragment,null,y.createElement(xl,null,y.createElement(Ie,{numColumn:Te[0]},y.createElement(ye,{width:"60%"})),y.createElement(Ie,{numColumn:Te[1]},y.createElement(ye,{width:"30%"})),y.createElement(Ie,{numColumn:Te[2]},y.createElement(ye,{width:"60%"})),y.createElement(Ie,{numColumn:Te[3]},y.createElement(ye,{width:"60%"}))),y.createElement(xl,null,y.createElement(Ie,{numColumn:Te[0]},y.createElement(ye,{width:"60%"})),y.createElement(Ie,{numColumn:Te[1]},y.createElement(ye,{width:"80%"}),y.createElement(ye,{width:"30%"})),y.createElement(Ie,{numColumn:Te[2]},y.createElement(ye,{width:"60%"})),y.createElement(Ie,{numColumn:Te[3]},y.createElement(ye,{width:"60%"}))),y.createElement(xl,null,y.createElement(Ie,{numColumn:Te[0]},y.createElement(ye,{width:"60%"})),y.createElement(Ie,{numColumn:Te[1]},y.createElement(ye,{width:"80%"}),y.createElement(ye,{width:"30%"})),y.createElement(Ie,{numColumn:Te[2]},y.createElement(ye,{width:"60%"})),y.createElement(Ie,{numColumn:Te[3]},y.createElement(ye,{width:"60%"}))),y.createElement(xl,null,y.createElement(Ie,{numColumn:Te[0]},y.createElement(ye,{width:"60%"})),y.createElement(Ie,{numColumn:Te[1]},y.createElement(ye,{width:"80%"}),y.createElement(ye,{width:"30%"})),y.createElement(Ie,{numColumn:Te[2]},y.createElement(ye,{width:"60%"})),y.createElement(Ie,{numColumn:Te[3]},y.createElement(ye,{width:"60%"})))),$re=_.table(({theme:e,compact:t,inAddonPanel:r})=>({"&&":{borderSpacing:0,color:e.color.defaultText,"td, th":{padding:0,border:"none",verticalAlign:"top",textOverflow:"ellipsis"},fontSize:e.typography.size.s2-1,lineHeight:"20px",textAlign:"left",width:"100%",marginTop:r?0:25,marginBottom:r?0:40,"thead th:first-of-type, td:first-of-type":{width:"25%"},"th:first-of-type, td:first-of-type":{paddingLeft:20},"th:nth-of-type(2), td:nth-of-type(2)":{...t?null:{width:"35%"}},"td:nth-of-type(3)":{...t?null:{width:"15%"}},"th:last-of-type, td:last-of-type":{paddingRight:20,...t?null:{width:"25%"}},th:{color:e.base==="light"?se(.25,e.color.defaultText):se(.45,e.color.defaultText),paddingTop:10,paddingBottom:10,paddingLeft:15,paddingRight:15},td:{paddingTop:"10px",paddingBottom:"10px","&:not(:first-of-type)":{paddingLeft:15,paddingRight:15},"&:last-of-type":{paddingRight:20}},marginLeft:r?0:1,marginRight:r?0:1,tbody:{...r?null:{filter:e.base==="light"?"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.10))":"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.20))"},"> tr > *":{background:e.background.content,borderTop:`1px solid ${e.appBorderColor}`},...r?null:{"> tr:first-of-type > *":{borderBlockStart:`1px solid ${e.appBorderColor}`},"> tr:last-of-type > *":{borderBlockEnd:`1px solid ${e.appBorderColor}`},"> tr > *:first-of-type":{borderInlineStart:`1px solid ${e.appBorderColor}`},"> tr > *:last-of-type":{borderInlineEnd:`1px solid ${e.appBorderColor}`},"> tr:first-of-type > td:first-of-type":{borderTopLeftRadius:e.appBorderRadius},"> tr:first-of-type > td:last-of-type":{borderTopRightRadius:e.appBorderRadius},"> tr:last-of-type > td:first-of-type":{borderBottomLeftRadius:e.appBorderRadius},"> tr:last-of-type > td:last-of-type":{borderBottomRightRadius:e.appBorderRadius}}}}})),Lre=_(yn)(({theme:e})=>({margin:"-4px -12px -4px 0"})),Ore=_.span({display:"flex",justifyContent:"space-between"}),Mre={alpha:(e,t)=>e.name.localeCompare(t.name),requiredFirst:(e,t)=>{var r,n;return+!!((r=t.type)!=null&&r.required)-+!!((n=e.type)!=null&&n.required)||e.name.localeCompare(t.name)},none:void 0},Pre=(e,t)=>{let r={ungrouped:[],ungroupedSubsections:{},sections:{}};if(!e)return r;Object.entries(e).forEach(([o,i])=>{let{category:s,subcategory:u}=(i==null?void 0:i.table)||{};if(s){let d=r.sections[s]||{ungrouped:[],subsections:{}};if(!u)d.ungrouped.push({key:o,...i});else{let f=d.subsections[u]||[];f.push({key:o,...i}),d.subsections[u]=f}r.sections[s]=d}else if(u){let d=r.ungroupedSubsections[u]||[];d.push({key:o,...i}),r.ungroupedSubsections[u]=d}else r.ungrouped.push({key:o,...i})});let n=Mre[t],a=o=>n?Object.keys(o).reduce((i,s)=>({...i,[s]:o[s].sort(n)}),{}):o;return{ungrouped:r.ungrouped.sort(n),ungroupedSubsections:a(r.ungroupedSubsections),sections:Object.keys(r.sections).reduce((o,i)=>({...o,[i]:{ungrouped:r.sections[i].ungrouped.sort(n),subsections:a(r.sections[i].subsections)}}),{})}},Nre=(e,t,r)=>{try{return pS(e,t,r)}catch(n){return cee.warn(n.message),!1}},Bp=e=>{let{updateArgs:t,resetArgs:r,compact:n,inAddonPanel:a,initialExpandedArgs:o,sort:i="none",isLoading:s}=e;if("error"in e){let{error:E}=e;return y.createElement(BD,null,E," ",y.createElement(ma,{href:"http://storybook.js.org/docs/",target:"_blank",withArrow:!0},y.createElement(Ep,null)," Read the docs"))}if(s)return y.createElement(zre,null);let{rows:u,args:d,globals:f}="rows"in e&&e,h=Pre(wG(u,E=>{var C;return!((C=E==null?void 0:E.table)!=null&&C.disable)&&Nre(E,d||{},f||{})}),i),p=h.ungrouped.length===0,m=Object.entries(h.sections).length===0,g=Object.entries(h.ungroupedSubsections).length===0;if(p&&m&&g)return y.createElement(Are,{inAddonPanel:a});let v=1;t&&(v+=1),n||(v+=2);let b=Object.keys(h.sections).length>0,x={updateArgs:t,compact:n,inAddonPanel:a,initialExpandedArgs:o};return y.createElement(Ix,null,y.createElement($re,{compact:n,inAddonPanel:a,className:"docblock-argstable sb-unstyled"},y.createElement("thead",{className:"docblock-argstable-head"},y.createElement("tr",null,y.createElement("th",null,y.createElement("span",null,"Name")),n?null:y.createElement("th",null,y.createElement("span",null,"Description")),n?null:y.createElement("th",null,y.createElement("span",null,"Default")),t?y.createElement("th",null,y.createElement(Ore,null,"Control"," ",!s&&r&&y.createElement(Lre,{onClick:()=>r(),title:"Reset controls"},y.createElement(xM,{"aria-hidden":!0})))):null)),y.createElement("tbody",{className:"docblock-argstable-body"},h.ungrouped.map(E=>y.createElement(El,{key:E.key,row:E,arg:d&&d[E.key],...x})),Object.entries(h.ungroupedSubsections).map(([E,C])=>y.createElement(zd,{key:E,label:E,level:"subsection",colSpan:v},C.map(w=>y.createElement(El,{key:w.key,row:w,arg:d&&d[w.key],expandable:b,...x})))),Object.entries(h.sections).map(([E,C])=>y.createElement(zd,{key:E,label:E,level:"section",colSpan:v},C.ungrouped.map(w=>y.createElement(El,{key:w.key,row:w,arg:d&&d[w.key],...x})),Object.entries(C.subsections).map(([w,D])=>y.createElement(zd,{key:w,label:w,level:"subsection",colSpan:v},D.map(S=>y.createElement(El,{key:S.key,row:S,arg:d&&d[S.key],expandable:b,...x})))))))))},Hre=({tabs:e,...t})=>{let r=Object.entries(e);return r.length===1?y.createElement(Bp,{...r[0][1],...t}):y.createElement(lO,null,r.map((n,a)=>{let[o,i]=n,s=`prop_table_div_${o}`,u="div",d=a===0?t:{sort:t.sort};return y.createElement(u,{key:s,id:s,title:o},({active:f})=>f?y.createElement(Bp,{key:`prop_table_${o}`,...i,...d}):null)}))};_.div(({theme:e})=>({marginRight:30,fontSize:`${e.typography.size.s1}px`,color:e.base==="light"?se(.4,e.color.defaultText):se(.6,e.color.defaultText)}));_.div({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});_.div({display:"flex",flexDirection:"row",alignItems:"baseline","&:not(:last-child)":{marginBottom:"1rem"}});_.div(de,({theme:e})=>({...Zu(e),margin:"25px 0 40px",padding:"30px 20px"}));_.div(({theme:e})=>({fontWeight:e.typography.weight.bold,color:e.color.defaultText}));_.div(({theme:e})=>({color:e.base==="light"?se(.2,e.color.defaultText):se(.6,e.color.defaultText)}));_.div({flex:"0 0 30%",lineHeight:"20px",marginTop:5});_.div(({theme:e})=>({flex:1,textAlign:"center",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,lineHeight:1,overflow:"hidden",color:e.base==="light"?se(.4,e.color.defaultText):se(.6,e.color.defaultText),"> div":{display:"inline-block",overflow:"hidden",maxWidth:"100%",textOverflow:"ellipsis"},span:{display:"block",marginTop:2}}));_.div({display:"flex",flexDirection:"row"});_.div(({background:e})=>({position:"relative",flex:1,"&::before":{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:e,content:'""'}}));_.div(({theme:e})=>({...Zu(e),display:"flex",flexDirection:"row",height:50,marginBottom:5,overflow:"hidden",backgroundColor:"white",backgroundImage:"repeating-linear-gradient(-45deg, #ccc, #ccc 1px, #fff 1px, #fff 16px)",backgroundClip:"padding-box"}));_.div({display:"flex",flexDirection:"column",flex:1,position:"relative",marginBottom:30});_.div({flex:1,display:"flex",flexDirection:"row"});_.div({display:"flex",alignItems:"flex-start"});_.div({flex:"0 0 30%"});_.div({flex:1});_.div(({theme:e})=>({display:"flex",flexDirection:"row",alignItems:"center",paddingBottom:20,fontWeight:e.typography.weight.bold,color:e.base==="light"?se(.4,e.color.defaultText):se(.6,e.color.defaultText)}));_.div(({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"20px",display:"flex",flexDirection:"column"}));_.div(({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s2,color:e.color.defaultText,marginLeft:10,lineHeight:1.2}));_.div(({theme:e})=>({...Zu(e),overflow:"hidden",height:40,width:40,display:"flex",alignItems:"center",justifyContent:"center",flex:"none","> img, > svg":{width:20,height:20}}));_.div({display:"inline-flex",flexDirection:"row",alignItems:"center",flex:"0 1 calc(20% - 10px)",minWidth:120,margin:"0px 10px 30px 0"});_.div({display:"flex",flexFlow:"row wrap"});var jre=e=>`anchor--${e}`,Vre=({storyId:e,children:t})=>y.createElement("div",{id:jre(e),className:"sb-anchor"},t);tt&&tt.__DOCS_CONTEXT__===void 0&&(tt.__DOCS_CONTEXT__=l.createContext(null),tt.__DOCS_CONTEXT__.displayName="DocsContext");var rr=tt?tt.__DOCS_CONTEXT__:l.createContext(null),Mn=(e,t)=>l.useContext(rr).resolveOf(e,t),Ure=e=>e.split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(""),qre=e=>{if(e)return typeof e=="string"?e.includes("-")?Ure(e):e:e.__docgenInfo&&e.__docgenInfo.displayName?e.__docgenInfo.displayName:e.name};function Wre(e,t="start"){e.scrollIntoView({behavior:"smooth",block:t,inline:"nearest"})}function JD(e){return see(e,{allowFunction:!1})}var XD=l.createContext({sources:{}}),QD="--unknown--",Gre=({children:e,channel:t})=>{let[r,n]=l.useState({});return l.useEffect(()=>{let a=(o,i=null,s=!1)=>{let{id:u,args:d=void 0,source:f,format:h}=typeof o=="string"?{id:o,source:i,format:s}:o,p=d?JD(d):QD;n(m=>({...m,[u]:{...m[u],[p]:{code:f,format:h}}}))};return t.on(Cm,a),()=>t.off(Cm,a)},[]),y.createElement(XD.Provider,{value:{sources:r}},e)},Kre=(e,t,r)=>{let{sources:n}=r,a=n==null?void 0:n[e];return(a==null?void 0:a[JD(t)])||(a==null?void 0:a[QD])||{code:""}},Yre=({snippet:e,storyContext:t,typeFromProps:r,transformFromProps:n})=>{var u,d;let{__isArgsStory:a}=t.parameters,o=((u=t.parameters.docs)==null?void 0:u.source)||{},i=r||o.type||ec.AUTO;if(o.code!==void 0)return o.code;let s=i===ec.DYNAMIC||i===ec.AUTO&&e&&a?e:o.originalSource||"";return((d=n??o.transform)==null?void 0:d(s,t))||s},Zre=(e,t,r)=>{var m,g,v,b;let n,{of:a}=e;if("of"in e&&a===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");if(a)n=t.resolveOf(a,["story"]).story;else try{n=t.storyById()}catch{}let o=((g=(m=n==null?void 0:n.parameters)==null?void 0:m.docs)==null?void 0:g.source)||{},{code:i}=e,s=e.format??o.format,u=e.language??o.language??"jsx",d=e.dark??o.dark??!1;if(!i&&!n)return{error:"Oh no! The source is not available."};if(i)return{code:i,format:s,language:u,dark:d};let f=t.getStoryContext(n),h=e.__forceInitialArgs?f.initialArgs:f.unmappedArgs,p=Kre(n.id,h,r);return s=p.format??((b=(v=n.parameters.docs)==null?void 0:v.source)==null?void 0:b.format)??!1,{code:Yre({snippet:p.code,storyContext:{...f,args:h},typeFromProps:e.type,transformFromProps:e.transform}),format:s,language:u,dark:d}};function Jre(e,t){let r=Xre([e],t);return r&&r[0]}function Xre(e,t){let[r,n]=l.useState({});return l.useEffect(()=>{Promise.all(e.map(async a=>{let o=await t.loadStory(a);n(i=>i[a]===o?i:{...i,[a]:o})}))}),e.map(a=>{if(r[a])return r[a];try{return t.storyById(a)}catch{return null}})}var Qre=(e,t)=>{let{of:r,meta:n}=e;if("of"in e&&r===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");return n&&t.referenceMeta(n,!1),t.resolveOf(r||"story",["story"]).story.id},ene=(e,t,r)=>{let{parameters:n={}}=t||{},{docs:a={}}=n,o=a.story||{};if(a.disable)return null;if(e.inline??o.inline??!1){let s=e.height??o.height,u=e.autoplay??o.autoplay??!1;return{story:t,inline:!0,height:s,autoplay:u,forceInitialArgs:!!e.__forceInitialArgs,primary:!!e.__primary,renderStoryToElement:r.renderStoryToElement}}let i=e.height??o.height??o.iframeHeight??"100px";return{story:t,inline:!1,height:i,primary:!!e.__primary}},tne=(e={__forceInitialArgs:!1,__primary:!1})=>{let t=l.useContext(rr),r=Qre(e,t),n=Jre(r,t);if(!n)return y.createElement(LD,null);let a=ene(e,n,t);return a?y.createElement(Lee,{...a}):null},rne=e=>{var p,m,g,v,b,x,E,C,w,D;let t=l.useContext(rr),r=l.useContext(XD),{of:n,source:a}=e;if("of"in e&&n===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let{story:o}=Mn(n||"story",["story"]),i=Zre({...a,...n&&{of:n}},t,r),s=e.layout??o.parameters.layout??((m=(p=o.parameters.docs)==null?void 0:p.canvas)==null?void 0:m.layout)??"padded",u=e.withToolbar??((v=(g=o.parameters.docs)==null?void 0:g.canvas)==null?void 0:v.withToolbar)??!1,d=e.additionalActions??((x=(b=o.parameters.docs)==null?void 0:b.canvas)==null?void 0:x.additionalActions),f=e.sourceState??((C=(E=o.parameters.docs)==null?void 0:E.canvas)==null?void 0:C.sourceState)??"hidden",h=e.className??((D=(w=o.parameters.docs)==null?void 0:w.canvas)==null?void 0:D.className);return y.createElement(OD,{withSource:f==="none"?void 0:i,isExpanded:f==="shown",withToolbar:u,additionalActions:d,className:h,layout:s},y.createElement(tne,{of:n||o.moduleExport,meta:e.meta,...e.story}))},nne=(e,t)=>{let r=ane(e,t);if(!r)throw new Error("No result when story was defined");return r},ane=(e,t)=>{let r=e?t.getStoryContext(e):{args:{}},{id:n}=e||{id:"none"},[a,o]=l.useState(r.args);l.useEffect(()=>{let u=d=>{d.storyId===n&&o(d.args)};return t.channel.on(S3,u),()=>t.channel.off(S3,u)},[n,t.channel]);let i=l.useCallback(u=>t.channel.emit(dee,{storyId:n,updatedArgs:u}),[n,t.channel]),s=l.useCallback(u=>t.channel.emit(pee,{storyId:n,argNames:u}),[n,t.channel]);return e&&[a,i,s]},one=(e,t)=>{let r=t.getStoryContext(e),[n,a]=l.useState(r.globals);return l.useEffect(()=>{let o=i=>{a(i.globals)};return t.channel.on(A3,o),()=>t.channel.off(A3,o)},[t.channel]),[n]};function ine(e,t){let{extractArgTypes:r}=t.docs||{};if(!r)throw new Error("Args unsupported. See Args documentation for your framework.");return r(e)}var lne=e=>{var w;let{of:t}=e;if("of"in e&&t===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let r=l.useContext(rr),{story:n}=r.resolveOf(t||"story",["story"]),{parameters:a,argTypes:o,component:i,subcomponents:s}=n,u=((w=a.docs)==null?void 0:w.controls)||{},d=e.include??u.include,f=e.exclude??u.exclude,h=e.sort??u.sort,[p,m,g]=nne(n,r),[v]=one(n,r),b=D3(o,d,f);if(!(s&&Object.keys(s).length>0))return Object.keys(b).length>0||Object.keys(p).length>0?y.createElement(Bp,{rows:b,sort:h,args:p,globals:v,updateArgs:m,resetArgs:g}):null;let x=qre(i),E=Object.fromEntries(Object.entries(s).map(([D,S])=>[D,{rows:D3(ine(S,a),d,f),sort:h}])),C={[x]:{rows:b,sort:h},...E};return y.createElement(Hre,{tabs:C,sort:h,args:p,globals:v,updateArgs:m,resetArgs:g})},{document:eS}=tt,tS=({className:e,children:t,...r})=>{if(typeof e!="string"&&(typeof t!="string"||!t.match(/[\n\r]/g)))return y.createElement(Tx,null,t);let n=e&&e.split("-");return y.createElement(zD,{language:n&&n[1]||"text",format:!1,code:t,...r})};function vm(e,t){e.channel.emit(fee,t)}var zp=DO.a,sne=({hash:e,children:t})=>{let r=l.useContext(rr);return y.createElement(zp,{href:e,target:"_self",onClick:n=>{let a=e.substring(1);eS.getElementById(a)&&vm(r,e)}},t)},rS=e=>{let{href:t,target:r,children:n,...a}=e,o=l.useContext(rr);return!t||r==="_blank"||/^https?:\/\//.test(t)?y.createElement(zp,{...e}):t.startsWith("#")?y.createElement(sne,{hash:t},n):y.createElement(zp,{href:t,onClick:i=>{i.button===0&&!i.altKey&&!i.ctrlKey&&!i.metaKey&&!i.shiftKey&&(i.preventDefault(),vm(o,i.currentTarget.getAttribute("href")))},target:r,...a},n)},nS=["h1","h2","h3","h4","h5","h6"],une=nS.reduce((e,t)=>({...e,[t]:_(t)({"& svg":{position:"relative",top:"-0.1em",visibility:"hidden"},"&:hover svg":{visibility:"visible"}})}),{}),cne=_.a(()=>({float:"left",lineHeight:"inherit",paddingRight:"10px",marginLeft:"-24px",color:"inherit"})),dne=({as:e,id:t,children:r,...n})=>{let a=l.useContext(rr),o=une[e],i=`#${t}`;return y.createElement(o,{id:t,...n},y.createElement(cne,{"aria-hidden":"true",href:i,tabIndex:-1,target:"_self",onClick:s=>{eS.getElementById(t)&&vm(a,i)}},y.createElement(yM,null)),r)},ym=e=>{let{as:t,id:r,children:n,...a}=e;if(r)return y.createElement(dne,{as:t,id:r,...a},n);let o=t,{as:i,...s}=e;return y.createElement(o,{...ce(s,t)})},aS=nS.reduce((e,t)=>({...e,[t]:r=>y.createElement(ym,{as:t,...r})}),{}),pne=e=>{var t;if(!e.children)return null;if(typeof e.children!="string")throw new Error(fS`The Markdown block only accepts children as a single string, but children were of type: '${typeof e.children}' This is often caused by not wrapping the child in a template string. This is invalid: diff --git a/assets/DropDownMenu.stories-BREYwaRV.js b/assets/DropDownMenu.stories-kDOoPZuI.js similarity index 93% rename from assets/DropDownMenu.stories-BREYwaRV.js rename to assets/DropDownMenu.stories-kDOoPZuI.js index fd6c722..aff66aa 100644 --- a/assets/DropDownMenu.stories-BREYwaRV.js +++ b/assets/DropDownMenu.stories-kDOoPZuI.js @@ -1,4 +1,4 @@ -import{j as e}from"./assertThisInitialized-DaBLapIa.js";import{D as a,M as n}from"./Graph-YQGnloR9.js";/* empty css */import"./index-uubelm5h.js";import"./index-CfOt2XX2.js";const l={title:"DropDownMenu",component:a,tags:["autodocs"],argTypes:{children:{control:{type:"text"}}},parameters:{controls:{expanded:!0}}},r={render:()=>e.jsxs(a,{children:[e.jsx(n,{children:"Disease/Trait"}),e.jsx(n,{children:"Gene/b-cCRE"}),e.jsx(n,{children:"SNP/QTL"}),e.jsx(n,{children:"Single-Cell"})]})};var t,o,s;r.parameters={...r.parameters,docs:{...(t=r.parameters)==null?void 0:t.docs,source:{originalSource:`{ +import{j as e}from"./assertThisInitialized-DaBLapIa.js";import{D as a,M as n}from"./Graph-ayG64wjf.js";/* empty css */import"./index-uubelm5h.js";import"./index-CfOt2XX2.js";const l={title:"DropDownMenu",component:a,tags:["autodocs"],argTypes:{children:{control:{type:"text"}}},parameters:{controls:{expanded:!0}}},r={render:()=>e.jsxs(a,{children:[e.jsx(n,{children:"Disease/Trait"}),e.jsx(n,{children:"Gene/b-cCRE"}),e.jsx(n,{children:"SNP/QTL"}),e.jsx(n,{children:"Single-Cell"})]})};var t,o,s;r.parameters={...r.parameters,docs:{...(t=r.parameters)==null?void 0:t.docs,source:{originalSource:`{ render: () => Disease/Trait Gene/b-cCRE diff --git a/assets/Graph-YQGnloR9.js b/assets/Graph-ayG64wjf.js similarity index 86% rename from assets/Graph-YQGnloR9.js rename to assets/Graph-ayG64wjf.js index c93d349..b327cf6 100644 --- a/assets/Graph-YQGnloR9.js +++ b/assets/Graph-ayG64wjf.js @@ -1,17 +1,17 @@ -var NC=Object.defineProperty;var KC=(t,e,r)=>e in t?NC(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var yi=(t,e,r)=>KC(t,typeof e!="symbol"?e+"":e,r);import{c as Gd,j as I,a as Ym,b as GC}from"./assertThisInitialized-DaBLapIa.js";import{r as O,b as Hf,R as Cr,c as uu,g as jm}from"./index-uubelm5h.js";import{f as fs,r as VC}from"./index-CfOt2XX2.js";const go={black:"#000",white:"#fff"},ta={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},ra={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},na={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Aa={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},aa={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Bi={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},$C={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function Mn(t){let e="https://mui.com/production-error/?code="+t;for(let r=1;r0?Xt(ri,--pr):0,Ka--,Lt===10&&(Ka=1,fu--),Lt}function br(){return Lt=pr2||mo(Lt)>3?"":" "}function ob(t,e){for(;--e&&br()&&!(Lt<48||Lt>102||Lt>57&&Lt<65||Lt>70&&Lt<97););return Ko(t,ul()+(e<6&&Bn()==32&&br()==32))}function Pf(t){for(;br();)switch(Lt){case t:return pr;case 34:case 39:t!==34&&t!==39&&Pf(Lt);break;case 40:t===41&&Pf(t);break;case 92:br();break}return pr}function sb(t,e){for(;br()&&t+Lt!==57;)if(t+Lt===84&&Bn()===47)break;return"/*"+Ko(e,pr-1)+"*"+cu(t===47?t:br())}function lb(t){for(;!mo(Bn());)br();return Ko(t,pr)}function ub(t){return ny(fl("",null,null,null,[""],t=ry(t),0,[0],t))}function fl(t,e,r,n,A,a,i,o,s){for(var l=0,u=0,c=i,d=0,h=0,f=0,p=1,g=1,m=1,B=0,v="",y=A,b=a,E=n,C=v;g;)switch(f=B,B=br()){case 40:if(f!=108&&Xt(C,c-1)==58){kf(C+=qe(cl(B),"&","&\f"),"&\f")!=-1&&(m=-1);break}case 34:case 39:case 91:C+=cl(B);break;case 9:case 10:case 13:case 32:C+=ib(f);break;case 92:C+=ob(ul()-1,7);continue;case 47:switch(Bn()){case 42:case 47:ds(cb(sb(br(),ul()),e,r),s);break;default:C+="/"}break;case 123*p:o[l++]=fn(C)*m;case 125*p:case 59:case 0:switch(B){case 0:case 125:g=0;case 59+u:m==-1&&(C=qe(C,/\f/g,"")),h>0&&fn(C)-c&&ds(h>32?Ap(C+";",n,r,c-1):Ap(qe(C," ","")+";",n,r,c-2),s);break;case 59:C+=";";default:if(ds(E=np(C,e,r,l,u,A,o,v,y=[],b=[],c),a),B===123)if(u===0)fl(C,e,E,E,y,a,c,o,b);else switch(d===99&&Xt(C,3)===110?100:d){case 100:case 108:case 109:case 115:fl(t,E,E,n&&ds(np(t,E,E,0,0,A,o,v,A,y=[],c),b),A,b,c,o,n?y:b);break;default:fl(C,E,E,E,[""],b,0,o,b)}}l=u=h=0,p=m=1,v=C="",c=i;break;case 58:c=1+fn(C),h=f;default:if(p<1){if(B==123)--p;else if(B==125&&p++==0&&ab()==125)continue}switch(C+=cu(B),B*p){case 38:m=u>0?1:(C+="\f",-1);break;case 44:o[l++]=(fn(C)-1)*m,m=1;break;case 64:Bn()===45&&(C+=cl(br())),d=Bn(),u=c=fn(v=C+=lb(ul())),B++;break;case 45:f===45&&fn(C)==2&&(p=0)}}return a}function np(t,e,r,n,A,a,i,o,s,l,u){for(var c=A-1,d=A===0?a:[""],h=zd(d),f=0,p=0,g=0;f0?d[m]+" "+B:qe(B,/&\f/g,d[m])))&&(s[g++]=v);return du(t,e,r,A===0?Vd:o,s,l,u)}function cb(t,e,r){return du(t,e,r,Jm,cu(Ab()),vo(t,2,-2),0)}function Ap(t,e,r,n){return du(t,e,r,$d,vo(t,0,n),vo(t,n+1,-1),n)}function La(t,e){for(var r="",n=zd(t),A=0;A6)switch(Xt(t,e+1)){case 109:if(Xt(t,e+4)!==45)break;case 102:return qe(t,/(.+:)(.+)-([^]+)/,"$1"+je+"$2-$3$1"+Tl+(Xt(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~kf(t,"stretch")?Ay(qe(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(Xt(t,e+1)!==115)break;case 6444:switch(Xt(t,fn(t)-3-(~kf(t,"!important")&&10))){case 107:return qe(t,":",":"+je)+t;case 101:return qe(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+je+(Xt(t,14)===45?"inline-":"")+"box$3$1"+je+"$2$3$1"+tr+"$2box$3")+t}break;case 5936:switch(Xt(t,e+11)){case 114:return je+t+tr+qe(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return je+t+tr+qe(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return je+t+tr+qe(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return je+t+tr+t+t}return t}var Bb=function(e,r,n,A){if(e.length>-1&&!e.return)switch(e.type){case $d:e.return=Ay(e.value,e.length);break;case Zm:return La([wi(e,{value:qe(e.value,"@","@"+je)})],A);case Vd:if(e.length)return nb(e.props,function(a){switch(rb(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return La([wi(e,{props:[qe(a,/:(read-\w+)/,":"+Tl+"$1")]})],A);case"::placeholder":return La([wi(e,{props:[qe(a,/:(plac\w+)/,":"+je+"input-$1")]}),wi(e,{props:[qe(a,/:(plac\w+)/,":"+Tl+"$1")]}),wi(e,{props:[qe(a,/:(plac\w+)/,tr+"input-$1")]})],A)}return""})}},wb=[Bb],Cb=function(e){var r=e.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(p){var g=p.getAttribute("data-emotion");g.indexOf(" ")!==-1&&(document.head.appendChild(p),p.setAttribute("data-s",""))})}var A=e.stylisPlugins||wb,a={},i,o=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(p){for(var g=p.getAttribute("data-emotion").split(" "),m=1;me in t?NC(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var Bi=(t,e,r)=>KC(t,typeof e!="symbol"?e+"":e,r);import{c as Gd,j as I,a as Ym,b as GC}from"./assertThisInitialized-DaBLapIa.js";import{r as O,b as Hf,R as Cr,c as uu,g as jm}from"./index-uubelm5h.js";import{f as fs,r as VC}from"./index-CfOt2XX2.js";const vo={black:"#000",white:"#fff"},ta={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},ra={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},na={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Aa={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},aa={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},wi={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},$C={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function Mn(t){let e="https://mui.com/production-error/?code="+t;for(let r=1;r0?Xt(ni,--pr):0,Ka--,Lt===10&&(Ka=1,fu--),Lt}function br(){return Lt=pr2||yo(Lt)>3?"":" "}function ob(t,e){for(;--e&&br()&&!(Lt<48||Lt>102||Lt>57&&Lt<65||Lt>70&&Lt<97););return Ko(t,ul()+(e<6&&Bn()==32&&br()==32))}function Pf(t){for(;br();)switch(Lt){case t:return pr;case 34:case 39:t!==34&&t!==39&&Pf(Lt);break;case 40:t===41&&Pf(t);break;case 92:br();break}return pr}function sb(t,e){for(;br()&&t+Lt!==57;)if(t+Lt===84&&Bn()===47)break;return"/*"+Ko(e,pr-1)+"*"+cu(t===47?t:br())}function lb(t){for(;!yo(Bn());)br();return Ko(t,pr)}function ub(t){return ny(fl("",null,null,null,[""],t=ry(t),0,[0],t))}function fl(t,e,r,n,A,a,i,o,s){for(var l=0,u=0,c=i,d=0,h=0,f=0,p=1,g=1,m=1,w=0,v="",B=A,b=a,E=n,C=v;g;)switch(f=w,w=br()){case 40:if(f!=108&&Xt(C,c-1)==58){kf(C+=qe(cl(w),"&","&\f"),"&\f")!=-1&&(m=-1);break}case 34:case 39:case 91:C+=cl(w);break;case 9:case 10:case 13:case 32:C+=ib(f);break;case 92:C+=ob(ul()-1,7);continue;case 47:switch(Bn()){case 42:case 47:ds(cb(sb(br(),ul()),e,r),s);break;default:C+="/"}break;case 123*p:o[l++]=fn(C)*m;case 125*p:case 59:case 0:switch(w){case 0:case 125:g=0;case 59+u:m==-1&&(C=qe(C,/\f/g,"")),h>0&&fn(C)-c&&ds(h>32?Ap(C+";",n,r,c-1):Ap(qe(C," ","")+";",n,r,c-2),s);break;case 59:C+=";";default:if(ds(E=np(C,e,r,l,u,A,o,v,B=[],b=[],c),a),w===123)if(u===0)fl(C,e,E,E,B,a,c,o,b);else switch(d===99&&Xt(C,3)===110?100:d){case 100:case 108:case 109:case 115:fl(t,E,E,n&&ds(np(t,E,E,0,0,A,o,v,A,B=[],c),b),A,b,c,o,n?B:b);break;default:fl(C,E,E,E,[""],b,0,o,b)}}l=u=h=0,p=m=1,v=C="",c=i;break;case 58:c=1+fn(C),h=f;default:if(p<1){if(w==123)--p;else if(w==125&&p++==0&&ab()==125)continue}switch(C+=cu(w),w*p){case 38:m=u>0?1:(C+="\f",-1);break;case 44:o[l++]=(fn(C)-1)*m,m=1;break;case 64:Bn()===45&&(C+=cl(br())),d=Bn(),u=c=fn(v=C+=lb(ul())),w++;break;case 45:f===45&&fn(C)==2&&(p=0)}}return a}function np(t,e,r,n,A,a,i,o,s,l,u){for(var c=A-1,d=A===0?a:[""],h=zd(d),f=0,p=0,g=0;f0?d[m]+" "+w:qe(w,/&\f/g,d[m])))&&(s[g++]=v);return du(t,e,r,A===0?Vd:o,s,l,u)}function cb(t,e,r){return du(t,e,r,Jm,cu(Ab()),mo(t,2,-2),0)}function Ap(t,e,r,n){return du(t,e,r,$d,mo(t,0,n),mo(t,n+1,-1),n)}function La(t,e){for(var r="",n=zd(t),A=0;A6)switch(Xt(t,e+1)){case 109:if(Xt(t,e+4)!==45)break;case 102:return qe(t,/(.+:)(.+)-([^]+)/,"$1"+je+"$2-$3$1"+Tl+(Xt(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~kf(t,"stretch")?Ay(qe(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(Xt(t,e+1)!==115)break;case 6444:switch(Xt(t,fn(t)-3-(~kf(t,"!important")&&10))){case 107:return qe(t,":",":"+je)+t;case 101:return qe(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+je+(Xt(t,14)===45?"inline-":"")+"box$3$1"+je+"$2$3$1"+tr+"$2box$3")+t}break;case 5936:switch(Xt(t,e+11)){case 114:return je+t+tr+qe(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return je+t+tr+qe(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return je+t+tr+qe(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return je+t+tr+t+t}return t}var Bb=function(e,r,n,A){if(e.length>-1&&!e.return)switch(e.type){case $d:e.return=Ay(e.value,e.length);break;case Zm:return La([Ci(e,{value:qe(e.value,"@","@"+je)})],A);case Vd:if(e.length)return nb(e.props,function(a){switch(rb(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return La([Ci(e,{props:[qe(a,/:(read-\w+)/,":"+Tl+"$1")]})],A);case"::placeholder":return La([Ci(e,{props:[qe(a,/:(plac\w+)/,":"+je+"input-$1")]}),Ci(e,{props:[qe(a,/:(plac\w+)/,":"+Tl+"$1")]}),Ci(e,{props:[qe(a,/:(plac\w+)/,tr+"input-$1")]})],A)}return""})}},wb=[Bb],Cb=function(e){var r=e.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(p){var g=p.getAttribute("data-emotion");g.indexOf(" ")!==-1&&(document.head.appendChild(p),p.setAttribute("data-s",""))})}var A=e.stylisPlugins||wb,a={},i,o=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(p){for(var g=p.getAttribute("data-emotion").split(" "),m=1;m=4;++n,A-=4)r=t.charCodeAt(n)&255|(t.charCodeAt(++n)&255)<<8|(t.charCodeAt(++n)&255)<<16|(t.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,e=(r&65535)*1540483477+((r>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(A){case 3:e^=(t.charCodeAt(n+2)&255)<<16;case 2:e^=(t.charCodeAt(n+1)&255)<<8;case 1:e^=t.charCodeAt(n)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var Rb={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Mb=!1,Ob=/[A-Z]|^ms/g,Hb=/_EMO_([^_]+?)_([^]*?)_EMO_/g,cy=function(e){return e.charCodeAt(1)===45},op=function(e){return e!=null&&typeof e!="boolean"},Oc=qm(function(t){return cy(t)?t:t.replace(Ob,"-$&").toLowerCase()}),sp=function(e,r){switch(e){case"animation":case"animationName":if(typeof r=="string")return r.replace(Hb,function(n,A,a){return dn={name:A,styles:a,next:dn},A})}return Rb[e]!==1&&!cy(e)&&typeof r=="number"&&r!==0?r+"px":r},kb="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function yo(t,e,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var A=r;if(A.anim===1)return dn={name:A.name,styles:A.styles,next:dn},A.name;var a=r;if(a.styles!==void 0){var i=a.next;if(i!==void 0)for(;i!==void 0;)dn={name:i.name,styles:i.styles,next:dn},i=i.next;var o=a.styles+";";return o}return Pb(t,e,r)}case"function":{if(t!==void 0){var s=dn,l=r(t);return dn=s,yo(t,e,l)}break}}var u=r;if(e==null)return u;var c=e[u];return c!==void 0?c:u}function Pb(t,e,r){var n="";if(Array.isArray(r))for(var A=0;A96?Wb:_b},fp=function(e,r,n){var A;if(r){var a=r.shouldForwardProp;A=e.__emotion_forwardProp&&a?function(i){return e.__emotion_forwardProp(i)&&a(i)}:a}return typeof A!="function"&&n&&(A=e.__emotion_forwardProp),A},Xb=!1,Yb=function(e){var r=e.cache,n=e.serialized,A=e.isStringTag;return ly(r,n,A),Kb(function(){return uy(r,n,A)}),null},jb=function t(e,r){var n=e.__emotion_real===e,A=n&&e.__emotion_base||e,a,i;r!==void 0&&(a=r.label,i=r.target);var o=fp(e,r,n),s=o||cp(A),l=!s("as");return function(){var u=arguments,c=n&&e.__emotion_styles!==void 0?e.__emotion_styles.slice(0):[];if(a!==void 0&&c.push("label:"+a+";"),u[0]==null||u[0].raw===void 0)c.push.apply(c,u);else{c.push(u[0][0]);for(var d=u.length,h=1;he(Jb(A)?r:A):e;return I.jsx($b,{styles:n})}/** + */var zt=typeof Symbol=="function"&&Symbol.for,Wd=zt?Symbol.for("react.element"):60103,_d=zt?Symbol.for("react.portal"):60106,hu=zt?Symbol.for("react.fragment"):60107,pu=zt?Symbol.for("react.strict_mode"):60108,gu=zt?Symbol.for("react.profiler"):60114,vu=zt?Symbol.for("react.provider"):60109,mu=zt?Symbol.for("react.context"):60110,Xd=zt?Symbol.for("react.async_mode"):60111,yu=zt?Symbol.for("react.concurrent_mode"):60111,Bu=zt?Symbol.for("react.forward_ref"):60112,wu=zt?Symbol.for("react.suspense"):60113,bb=zt?Symbol.for("react.suspense_list"):60120,Cu=zt?Symbol.for("react.memo"):60115,bu=zt?Symbol.for("react.lazy"):60116,Eb=zt?Symbol.for("react.block"):60121,xb=zt?Symbol.for("react.fundamental"):60117,Fb=zt?Symbol.for("react.responder"):60118,Qb=zt?Symbol.for("react.scope"):60119;function Fr(t){if(typeof t=="object"&&t!==null){var e=t.$$typeof;switch(e){case Wd:switch(t=t.type,t){case Xd:case yu:case hu:case gu:case pu:case wu:return t;default:switch(t=t&&t.$$typeof,t){case mu:case Bu:case bu:case Cu:case vu:return t;default:return e}}case _d:return e}}}function iy(t){return Fr(t)===yu}rt.AsyncMode=Xd;rt.ConcurrentMode=yu;rt.ContextConsumer=mu;rt.ContextProvider=vu;rt.Element=Wd;rt.ForwardRef=Bu;rt.Fragment=hu;rt.Lazy=bu;rt.Memo=Cu;rt.Portal=_d;rt.Profiler=gu;rt.StrictMode=pu;rt.Suspense=wu;rt.isAsyncMode=function(t){return iy(t)||Fr(t)===Xd};rt.isConcurrentMode=iy;rt.isContextConsumer=function(t){return Fr(t)===mu};rt.isContextProvider=function(t){return Fr(t)===vu};rt.isElement=function(t){return typeof t=="object"&&t!==null&&t.$$typeof===Wd};rt.isForwardRef=function(t){return Fr(t)===Bu};rt.isFragment=function(t){return Fr(t)===hu};rt.isLazy=function(t){return Fr(t)===bu};rt.isMemo=function(t){return Fr(t)===Cu};rt.isPortal=function(t){return Fr(t)===_d};rt.isProfiler=function(t){return Fr(t)===gu};rt.isStrictMode=function(t){return Fr(t)===pu};rt.isSuspense=function(t){return Fr(t)===wu};rt.isValidElementType=function(t){return typeof t=="string"||typeof t=="function"||t===hu||t===yu||t===gu||t===pu||t===wu||t===bb||typeof t=="object"&&t!==null&&(t.$$typeof===bu||t.$$typeof===Cu||t.$$typeof===vu||t.$$typeof===mu||t.$$typeof===Bu||t.$$typeof===xb||t.$$typeof===Fb||t.$$typeof===Qb||t.$$typeof===Eb)};rt.typeOf=Fr;ay.exports=rt;var Sb=ay.exports,oy=Sb,Ub={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Tb={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},sy={};sy[oy.ForwardRef]=Ub;sy[oy.Memo]=Tb;var Ib=!0;function Lb(t,e,r){var n="";return r.split(" ").forEach(function(A){t[A]!==void 0?e.push(t[A]+";"):A&&(n+=A+" ")}),n}var ly=function(e,r,n){var A=e.key+"-"+r.name;(n===!1||Ib===!1)&&e.registered[A]===void 0&&(e.registered[A]=r.styles)},uy=function(e,r,n){ly(e,r,n);var A=e.key+"-"+r.name;if(e.inserted[r.name]===void 0){var a=r;do e.insert(r===a?"."+A:"",a,e.sheet,!0),a=a.next;while(a!==void 0)}};function Db(t){for(var e=0,r,n=0,A=t.length;A>=4;++n,A-=4)r=t.charCodeAt(n)&255|(t.charCodeAt(++n)&255)<<8|(t.charCodeAt(++n)&255)<<16|(t.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,e=(r&65535)*1540483477+((r>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(A){case 3:e^=(t.charCodeAt(n+2)&255)<<16;case 2:e^=(t.charCodeAt(n+1)&255)<<8;case 1:e^=t.charCodeAt(n)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var Rb={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Mb=!1,Ob=/[A-Z]|^ms/g,Hb=/_EMO_([^_]+?)_([^]*?)_EMO_/g,cy=function(e){return e.charCodeAt(1)===45},op=function(e){return e!=null&&typeof e!="boolean"},Oc=qm(function(t){return cy(t)?t:t.replace(Ob,"-$&").toLowerCase()}),sp=function(e,r){switch(e){case"animation":case"animationName":if(typeof r=="string")return r.replace(Hb,function(n,A,a){return dn={name:A,styles:a,next:dn},A})}return Rb[e]!==1&&!cy(e)&&typeof r=="number"&&r!==0?r+"px":r},kb="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Bo(t,e,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var A=r;if(A.anim===1)return dn={name:A.name,styles:A.styles,next:dn},A.name;var a=r;if(a.styles!==void 0){var i=a.next;if(i!==void 0)for(;i!==void 0;)dn={name:i.name,styles:i.styles,next:dn},i=i.next;var o=a.styles+";";return o}return Pb(t,e,r)}case"function":{if(t!==void 0){var s=dn,l=r(t);return dn=s,Bo(t,e,l)}break}}var u=r;if(e==null)return u;var c=e[u];return c!==void 0?c:u}function Pb(t,e,r){var n="";if(Array.isArray(r))for(var A=0;A96?Wb:_b},fp=function(e,r,n){var A;if(r){var a=r.shouldForwardProp;A=e.__emotion_forwardProp&&a?function(i){return e.__emotion_forwardProp(i)&&a(i)}:a}return typeof A!="function"&&n&&(A=e.__emotion_forwardProp),A},Xb=!1,Yb=function(e){var r=e.cache,n=e.serialized,A=e.isStringTag;return ly(r,n,A),Kb(function(){return uy(r,n,A)}),null},jb=function t(e,r){var n=e.__emotion_real===e,A=n&&e.__emotion_base||e,a,i;r!==void 0&&(a=r.label,i=r.target);var o=fp(e,r,n),s=o||cp(A),l=!s("as");return function(){var u=arguments,c=n&&e.__emotion_styles!==void 0?e.__emotion_styles.slice(0):[];if(a!==void 0&&c.push("label:"+a+";"),u[0]==null||u[0].raw===void 0)c.push.apply(c,u);else{c.push(u[0][0]);for(var d=u.length,h=1;he(Jb(A)?r:A):e;return I.jsx($b,{styles:n})}/** * @mui/styled-engine v6.1.1 * * @license MIT * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */function gy(t,e){return Nf(t,e)}const Zb=(t,e)=>{Array.isArray(t.__emotion_styles)&&(t.__emotion_styles=e(t.__emotion_styles))};function pn(t){if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function vy(t){if(!pn(t))return t;const e={};return Object.keys(t).forEach(r=>{e[r]=vy(t[r])}),e}function $t(t,e,r={clone:!0}){const n=r.clone?{...t}:t;return pn(t)&&pn(e)&&Object.keys(e).forEach(A=>{pn(e[A])&&Object.prototype.hasOwnProperty.call(t,A)&&pn(t[A])?n[A]=$t(t[A],e[A],r):r.clone?n[A]=pn(e[A])?vy(e[A]):e[A]:n[A]=e[A]}),n}const eE=t=>{const e=Object.keys(t).map(r=>({key:r,val:t[r]}))||[];return e.sort((r,n)=>r.val-n.val),e.reduce((r,n)=>({...r,[n.key]:n.val}),{})};function tE(t){const{values:e={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5,...A}=t,a=eE(e),i=Object.keys(a);function o(d){return`@media (min-width:${typeof e[d]=="number"?e[d]:d}${r})`}function s(d){return`@media (max-width:${(typeof e[d]=="number"?e[d]:d)-n/100}${r})`}function l(d,h){const f=i.indexOf(h);return`@media (min-width:${typeof e[d]=="number"?e[d]:d}${r}) and (max-width:${(f!==-1&&typeof e[i[f]]=="number"?e[i[f]]:h)-n/100}${r})`}function u(d){return i.indexOf(d)+1n.startsWith("@container")).sort((n,A)=>{var i,o;const a=/min-width:\s*([0-9.]+)/;return+(((i=n.match(a))==null?void 0:i[1])||0)-+(((o=A.match(a))==null?void 0:o[1])||0)});return r.length?r.reduce((n,A)=>{const a=e[A];return delete n[A],n[A]=a,n},{...e}):e}function nE(t,e){return e==="@"||e.startsWith("@")&&(t.some(r=>e.startsWith(`@${r}`))||!!e.match(/^@\d/))}function AE(t,e){const r=e.match(/^@([^/]+)?\/?(.+)?$/);if(!r)return null;const[,n,A]=r,a=Number.isNaN(+n)?n||0:+n;return t.containerQueries(A).up(a)}function aE(t){const e=(a,i)=>a.replace("@media",i?`@container ${i}`:"@container");function r(a,i){a.up=(...o)=>e(t.breakpoints.up(...o),i),a.down=(...o)=>e(t.breakpoints.down(...o),i),a.between=(...o)=>e(t.breakpoints.between(...o),i),a.only=(...o)=>e(t.breakpoints.only(...o),i),a.not=(...o)=>{const s=e(t.breakpoints.not(...o),i);return s.includes("not all and")?s.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):s}}const n={},A=a=>(r(n,a),n);return r(A),{...t,containerQueries:A}}const iE={borderRadius:4};function eo(t,e){return e?$t(t,e,{clone:!1}):t}const Eu={xs:0,sm:600,md:900,lg:1200,xl:1536},dp={keys:["xs","sm","md","lg","xl"],up:t=>`@media (min-width:${Eu[t]}px)`},oE={containerQueries:t=>({up:e=>{let r=typeof e=="number"?e:Eu[e]||e;return typeof r=="number"&&(r=`${r}px`),t?`@container ${t} (min-width:${r})`:`@container (min-width:${r})`}})};function gr(t,e,r){const n=t.theme||{};if(Array.isArray(e)){const a=n.breakpoints||dp;return e.reduce((i,o,s)=>(i[a.up(a.keys[s])]=r(e[s]),i),{})}if(typeof e=="object"){const a=n.breakpoints||dp;return Object.keys(e).reduce((i,o)=>{if(nE(a.keys,o)){const s=AE(n.containerQueries?n:oE,o);s&&(i[s]=r(e[o],o))}else if(Object.keys(a.values||Eu).includes(o)){const s=a.up(o);i[s]=r(e[o],o)}else{const s=o;i[s]=e[s]}return i},{})}return r(e)}function my(t={}){var r;return((r=t.keys)==null?void 0:r.reduce((n,A)=>{const a=t.up(A);return n[a]={},n},{}))||{}}function yy(t,e){return t.reduce((r,n)=>{const A=r[n];return(!A||Object.keys(A).length===0)&&delete r[n],r},e)}function sE(t,...e){const r=my(t),n=[r,...e].reduce((A,a)=>$t(A,a),{});return yy(Object.keys(r),n)}function lE(t,e){if(typeof t!="object")return{};const r={},n=Object.keys(e);return Array.isArray(t)?n.forEach((A,a)=>{a{t[A]!=null&&(r[A]=!0)}),r}function RA({values:t,breakpoints:e,base:r}){const n=r||lE(t,e),A=Object.keys(n);if(A.length===0)return t;let a;return A.reduce((i,o,s)=>(Array.isArray(t)?(i[o]=t[s]!=null?t[s]:t[a],a=s):typeof t=="object"?(i[o]=t[o]!=null?t[o]:t[a],a=o):i[o]=t,i),{})}function Fe(t){if(typeof t!="string")throw new Error(Mn(7));return t.charAt(0).toUpperCase()+t.slice(1)}function xu(t,e,r=!0){if(!e||typeof e!="string")return null;if(t&&t.vars&&r){const n=`vars.${e}`.split(".").reduce((A,a)=>A&&A[a]?A[a]:null,t);if(n!=null)return n}return e.split(".").reduce((n,A)=>n&&n[A]!=null?n[A]:null,t)}function Il(t,e,r,n=r){let A;return typeof t=="function"?A=t(r):Array.isArray(t)?A=t[r]||n:A=xu(t,r)||n,e&&(A=e(A,n,t)),A}function It(t){const{prop:e,cssProperty:r=t.prop,themeKey:n,transform:A}=t,a=i=>{if(i[e]==null)return null;const o=i[e],s=i.theme,l=xu(s,n)||{};return gr(i,o,c=>{let d=Il(l,A,c);return c===d&&typeof c=="string"&&(d=Il(l,A,`${e}${c==="default"?"":Fe(c)}`,c)),r===!1?d:{[r]:d}})};return a.propTypes={},a.filterProps=[e],a}function uE(t){const e={};return r=>(e[r]===void 0&&(e[r]=t(r)),e[r])}const cE={m:"margin",p:"padding"},fE={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},hp={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},dE=uE(t=>{if(t.length>2)if(hp[t])t=hp[t];else return[t];const[e,r]=t.split(""),n=cE[e],A=fE[r]||"";return Array.isArray(A)?A.map(a=>n+a):[n+A]}),qd=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Jd=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...qd,...Jd];function Go(t,e,r,n){const A=xu(t,e,!0)??r;return typeof A=="number"||typeof A=="string"?a=>typeof a=="string"?a:typeof A=="string"?`calc(${a} * ${A})`:A*a:Array.isArray(A)?a=>{if(typeof a=="string")return a;const i=Math.abs(a),o=A[i];return a>=0?o:typeof o=="number"?-o:`-${o}`}:typeof A=="function"?A:()=>{}}function Fu(t){return Go(t,"spacing",8)}function kA(t,e){return typeof e=="string"||e==null?e:t(e)}function hE(t,e){return r=>t.reduce((n,A)=>(n[A]=kA(e,r),n),{})}function pE(t,e,r,n){if(!e.includes(r))return null;const A=dE(r),a=hE(A,n),i=t[r];return gr(t,i,a)}function By(t,e){const r=Fu(t.theme);return Object.keys(t).map(n=>pE(t,e,n,r)).reduce(eo,{})}function Ct(t){return By(t,qd)}Ct.propTypes={};Ct.filterProps=qd;function bt(t){return By(t,Jd)}bt.propTypes={};bt.filterProps=Jd;function wy(t=8,e=Fu({spacing:t})){if(t.mui)return t;const r=(...n)=>(n.length===0?[1]:n).map(a=>{const i=e(a);return typeof i=="number"?`${i}px`:i}).join(" ");return r.mui=!0,r}function Qu(...t){const e=t.reduce((n,A)=>(A.filterProps.forEach(a=>{n[a]=A}),n),{}),r=n=>Object.keys(n).reduce((A,a)=>e[a]?eo(A,e[a](n)):A,{});return r.propTypes={},r.filterProps=t.reduce((n,A)=>n.concat(A.filterProps),[]),r}function Ir(t){return typeof t!="number"?t:`${t}px solid`}function Vr(t,e){return It({prop:t,themeKey:"borders",transform:e})}const gE=Vr("border",Ir),vE=Vr("borderTop",Ir),mE=Vr("borderRight",Ir),yE=Vr("borderBottom",Ir),BE=Vr("borderLeft",Ir),wE=Vr("borderColor"),CE=Vr("borderTopColor"),bE=Vr("borderRightColor"),EE=Vr("borderBottomColor"),xE=Vr("borderLeftColor"),FE=Vr("outline",Ir),QE=Vr("outlineColor"),Su=t=>{if(t.borderRadius!==void 0&&t.borderRadius!==null){const e=Go(t.theme,"shape.borderRadius",4),r=n=>({borderRadius:kA(e,n)});return gr(t,t.borderRadius,r)}return null};Su.propTypes={};Su.filterProps=["borderRadius"];Qu(gE,vE,mE,yE,BE,wE,CE,bE,EE,xE,Su,FE,QE);const Uu=t=>{if(t.gap!==void 0&&t.gap!==null){const e=Go(t.theme,"spacing",8),r=n=>({gap:kA(e,n)});return gr(t,t.gap,r)}return null};Uu.propTypes={};Uu.filterProps=["gap"];const Tu=t=>{if(t.columnGap!==void 0&&t.columnGap!==null){const e=Go(t.theme,"spacing",8),r=n=>({columnGap:kA(e,n)});return gr(t,t.columnGap,r)}return null};Tu.propTypes={};Tu.filterProps=["columnGap"];const Iu=t=>{if(t.rowGap!==void 0&&t.rowGap!==null){const e=Go(t.theme,"spacing",8),r=n=>({rowGap:kA(e,n)});return gr(t,t.rowGap,r)}return null};Iu.propTypes={};Iu.filterProps=["rowGap"];const SE=It({prop:"gridColumn"}),UE=It({prop:"gridRow"}),TE=It({prop:"gridAutoFlow"}),IE=It({prop:"gridAutoColumns"}),LE=It({prop:"gridAutoRows"}),DE=It({prop:"gridTemplateColumns"}),RE=It({prop:"gridTemplateRows"}),ME=It({prop:"gridTemplateAreas"}),OE=It({prop:"gridArea"});Qu(Uu,Tu,Iu,SE,UE,TE,IE,LE,DE,RE,ME,OE);function Da(t,e){return e==="grey"?e:t}const HE=It({prop:"color",themeKey:"palette",transform:Da}),kE=It({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Da}),PE=It({prop:"backgroundColor",themeKey:"palette",transform:Da});Qu(HE,kE,PE);function wr(t){return t<=1&&t!==0?`${t*100}%`:t}const NE=It({prop:"width",transform:wr}),Zd=t=>{if(t.maxWidth!==void 0&&t.maxWidth!==null){const e=r=>{var A,a,i,o,s;const n=((i=(a=(A=t.theme)==null?void 0:A.breakpoints)==null?void 0:a.values)==null?void 0:i[r])||Eu[r];return n?((s=(o=t.theme)==null?void 0:o.breakpoints)==null?void 0:s.unit)!=="px"?{maxWidth:`${n}${t.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:wr(r)}};return gr(t,t.maxWidth,e)}return null};Zd.filterProps=["maxWidth"];const KE=It({prop:"minWidth",transform:wr}),GE=It({prop:"height",transform:wr}),VE=It({prop:"maxHeight",transform:wr}),$E=It({prop:"minHeight",transform:wr});It({prop:"size",cssProperty:"width",transform:wr});It({prop:"size",cssProperty:"height",transform:wr});const zE=It({prop:"boxSizing"});Qu(NE,Zd,KE,GE,VE,$E,zE);const Vo={border:{themeKey:"borders",transform:Ir},borderTop:{themeKey:"borders",transform:Ir},borderRight:{themeKey:"borders",transform:Ir},borderBottom:{themeKey:"borders",transform:Ir},borderLeft:{themeKey:"borders",transform:Ir},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ir},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Su},color:{themeKey:"palette",transform:Da},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Da},backgroundColor:{themeKey:"palette",transform:Da},p:{style:bt},pt:{style:bt},pr:{style:bt},pb:{style:bt},pl:{style:bt},px:{style:bt},py:{style:bt},padding:{style:bt},paddingTop:{style:bt},paddingRight:{style:bt},paddingBottom:{style:bt},paddingLeft:{style:bt},paddingX:{style:bt},paddingY:{style:bt},paddingInline:{style:bt},paddingInlineStart:{style:bt},paddingInlineEnd:{style:bt},paddingBlock:{style:bt},paddingBlockStart:{style:bt},paddingBlockEnd:{style:bt},m:{style:Ct},mt:{style:Ct},mr:{style:Ct},mb:{style:Ct},ml:{style:Ct},mx:{style:Ct},my:{style:Ct},margin:{style:Ct},marginTop:{style:Ct},marginRight:{style:Ct},marginBottom:{style:Ct},marginLeft:{style:Ct},marginX:{style:Ct},marginY:{style:Ct},marginInline:{style:Ct},marginInlineStart:{style:Ct},marginInlineEnd:{style:Ct},marginBlock:{style:Ct},marginBlockStart:{style:Ct},marginBlockEnd:{style:Ct},displayPrint:{cssProperty:!1,transform:t=>({"@media print":{display:t}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Uu},rowGap:{style:Iu},columnGap:{style:Tu},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:wr},maxWidth:{style:Zd},minWidth:{transform:wr},height:{transform:wr},maxHeight:{transform:wr},minHeight:{transform:wr},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function WE(...t){const e=t.reduce((n,A)=>n.concat(Object.keys(A)),[]),r=new Set(e);return t.every(n=>r.size===Object.keys(n).length)}function _E(t,e){return typeof t=="function"?t(e):t}function XE(){function t(r,n,A,a){const i={[r]:n,theme:A},o=a[r];if(!o)return{[r]:n};const{cssProperty:s=r,themeKey:l,transform:u,style:c}=o;if(n==null)return null;if(l==="typography"&&n==="inherit")return{[r]:n};const d=xu(A,l)||{};return c?c(i):gr(i,n,f=>{let p=Il(d,u,f);return f===p&&typeof f=="string"&&(p=Il(d,u,`${r}${f==="default"?"":Fe(f)}`,f)),s===!1?p:{[s]:p}})}function e(r){const{sx:n,theme:A={}}=r||{};if(!n)return null;const a=A.unstable_sxConfig??Vo;function i(o){let s=o;if(typeof o=="function")s=o(A);else if(typeof o!="object")return o;if(!s)return null;const l=my(A.breakpoints),u=Object.keys(l);let c=l;return Object.keys(s).forEach(d=>{const h=_E(s[d],A);if(h!=null)if(typeof h=="object")if(a[d])c=eo(c,t(d,h,A,a));else{const f=gr({theme:A},h,p=>({[d]:p}));WE(f,h)?c[d]=e({sx:h,theme:A}):c=eo(c,f)}else c=eo(c,t(d,h,A,a))}),rE(A,yy(u,c))}return Array.isArray(n)?n.map(i):i(n)}return e}const YA=XE();YA.filterProps=["sx"];function YE(t,e){var n;const r=this;if(r.vars){if(!((n=r.colorSchemes)!=null&&n[t])||typeof r.getColorSchemeSelector!="function")return{};let A=r.getColorSchemeSelector(t);return A==="&"?e:((A.includes("data-")||A.includes("."))&&(A=`*:where(${A.replace(/\s*&$/,"")}) &`),{[A]:e})}return r.palette.mode===t?e:{}}function $o(t={},...e){const{breakpoints:r={},palette:n={},spacing:A,shape:a={},...i}=t,o=tE(r),s=wy(A);let l=$t({breakpoints:o,direction:"ltr",components:{},palette:{mode:"light",...n},spacing:s,shape:{...iE,...a}},i);return l=aE(l),l.applyStyles=YE,l=e.reduce((u,c)=>$t(u,c),l),l.unstable_sxConfig={...Vo,...i==null?void 0:i.unstable_sxConfig},l.unstable_sx=function(c){return YA({sx:c,theme:this})},l}function jE(t){return Object.keys(t).length===0}function Cy(t=null){const e=O.useContext(Ga);return!e||jE(e)?t:e}const qE=$o();function zo(t=qE){return Cy(t)}function JE({styles:t,themeId:e,defaultTheme:r={}}){const n=zo(r),A=typeof t=="function"?t(e&&n[e]||n):t;return I.jsx(py,{styles:A})}const ZE=t=>{var n;const e={systemProps:{},otherProps:{}},r=((n=t==null?void 0:t.theme)==null?void 0:n.unstable_sxConfig)??Vo;return Object.keys(t).forEach(A=>{r[A]?e.systemProps[A]=t[A]:e.otherProps[A]=t[A]}),e};function Wo(t){const{sx:e,...r}=t,{systemProps:n,otherProps:A}=ZE(r);let a;return Array.isArray(e)?a=[n,...e]:typeof e=="function"?a=(...i)=>{const o=e(...i);return pn(o)?{...n,...o}:n}:a={...n,...e},{...A,sx:a}}const pp=t=>t,e1=()=>{let t=pp;return{configure(e){t=e},generate(e){return t(e)},reset(){t=pp}}},by=e1();function Ey(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var A=t.length;for(e=0;eo!=="theme"&&o!=="sx"&&o!=="as"})(YA);return O.forwardRef(function(s,l){const u=zo(r),{className:c,component:d="div",...h}=Wo(s);return I.jsx(a,{as:d,ref:l,className:xe(c,A?A(n):n),theme:e&&u[e]||u,...h})})}const r1={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Pe(t,e,r="Mui"){const n=r1[e];return n?`${r}-${n}`:`${by.generate(t)}-${e}`}function Me(t,e,r="Mui"){const n={};return e.forEach(A=>{n[A]=Pe(t,A,r)}),n}var it={};/** + */function gy(t,e){return Nf(t,e)}const Zb=(t,e)=>{Array.isArray(t.__emotion_styles)&&(t.__emotion_styles=e(t.__emotion_styles))};function pn(t){if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function vy(t){if(!pn(t))return t;const e={};return Object.keys(t).forEach(r=>{e[r]=vy(t[r])}),e}function $t(t,e,r={clone:!0}){const n=r.clone?{...t}:t;return pn(t)&&pn(e)&&Object.keys(e).forEach(A=>{pn(e[A])&&Object.prototype.hasOwnProperty.call(t,A)&&pn(t[A])?n[A]=$t(t[A],e[A],r):r.clone?n[A]=pn(e[A])?vy(e[A]):e[A]:n[A]=e[A]}),n}const e1=t=>{const e=Object.keys(t).map(r=>({key:r,val:t[r]}))||[];return e.sort((r,n)=>r.val-n.val),e.reduce((r,n)=>({...r,[n.key]:n.val}),{})};function t1(t){const{values:e={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5,...A}=t,a=e1(e),i=Object.keys(a);function o(d){return`@media (min-width:${typeof e[d]=="number"?e[d]:d}${r})`}function s(d){return`@media (max-width:${(typeof e[d]=="number"?e[d]:d)-n/100}${r})`}function l(d,h){const f=i.indexOf(h);return`@media (min-width:${typeof e[d]=="number"?e[d]:d}${r}) and (max-width:${(f!==-1&&typeof e[i[f]]=="number"?e[i[f]]:h)-n/100}${r})`}function u(d){return i.indexOf(d)+1n.startsWith("@container")).sort((n,A)=>{var i,o;const a=/min-width:\s*([0-9.]+)/;return+(((i=n.match(a))==null?void 0:i[1])||0)-+(((o=A.match(a))==null?void 0:o[1])||0)});return r.length?r.reduce((n,A)=>{const a=e[A];return delete n[A],n[A]=a,n},{...e}):e}function n1(t,e){return e==="@"||e.startsWith("@")&&(t.some(r=>e.startsWith(`@${r}`))||!!e.match(/^@\d/))}function A1(t,e){const r=e.match(/^@([^/]+)?\/?(.+)?$/);if(!r)return null;const[,n,A]=r,a=Number.isNaN(+n)?n||0:+n;return t.containerQueries(A).up(a)}function a1(t){const e=(a,i)=>a.replace("@media",i?`@container ${i}`:"@container");function r(a,i){a.up=(...o)=>e(t.breakpoints.up(...o),i),a.down=(...o)=>e(t.breakpoints.down(...o),i),a.between=(...o)=>e(t.breakpoints.between(...o),i),a.only=(...o)=>e(t.breakpoints.only(...o),i),a.not=(...o)=>{const s=e(t.breakpoints.not(...o),i);return s.includes("not all and")?s.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):s}}const n={},A=a=>(r(n,a),n);return r(A),{...t,containerQueries:A}}const i1={borderRadius:4};function to(t,e){return e?$t(t,e,{clone:!1}):t}const Eu={xs:0,sm:600,md:900,lg:1200,xl:1536},dp={keys:["xs","sm","md","lg","xl"],up:t=>`@media (min-width:${Eu[t]}px)`},o1={containerQueries:t=>({up:e=>{let r=typeof e=="number"?e:Eu[e]||e;return typeof r=="number"&&(r=`${r}px`),t?`@container ${t} (min-width:${r})`:`@container (min-width:${r})`}})};function gr(t,e,r){const n=t.theme||{};if(Array.isArray(e)){const a=n.breakpoints||dp;return e.reduce((i,o,s)=>(i[a.up(a.keys[s])]=r(e[s]),i),{})}if(typeof e=="object"){const a=n.breakpoints||dp;return Object.keys(e).reduce((i,o)=>{if(n1(a.keys,o)){const s=A1(n.containerQueries?n:o1,o);s&&(i[s]=r(e[o],o))}else if(Object.keys(a.values||Eu).includes(o)){const s=a.up(o);i[s]=r(e[o],o)}else{const s=o;i[s]=e[s]}return i},{})}return r(e)}function my(t={}){var r;return((r=t.keys)==null?void 0:r.reduce((n,A)=>{const a=t.up(A);return n[a]={},n},{}))||{}}function yy(t,e){return t.reduce((r,n)=>{const A=r[n];return(!A||Object.keys(A).length===0)&&delete r[n],r},e)}function s1(t,...e){const r=my(t),n=[r,...e].reduce((A,a)=>$t(A,a),{});return yy(Object.keys(r),n)}function l1(t,e){if(typeof t!="object")return{};const r={},n=Object.keys(e);return Array.isArray(t)?n.forEach((A,a)=>{a{t[A]!=null&&(r[A]=!0)}),r}function RA({values:t,breakpoints:e,base:r}){const n=r||l1(t,e),A=Object.keys(n);if(A.length===0)return t;let a;return A.reduce((i,o,s)=>(Array.isArray(t)?(i[o]=t[s]!=null?t[s]:t[a],a=s):typeof t=="object"?(i[o]=t[o]!=null?t[o]:t[a],a=o):i[o]=t,i),{})}function Fe(t){if(typeof t!="string")throw new Error(Mn(7));return t.charAt(0).toUpperCase()+t.slice(1)}function xu(t,e,r=!0){if(!e||typeof e!="string")return null;if(t&&t.vars&&r){const n=`vars.${e}`.split(".").reduce((A,a)=>A&&A[a]?A[a]:null,t);if(n!=null)return n}return e.split(".").reduce((n,A)=>n&&n[A]!=null?n[A]:null,t)}function Il(t,e,r,n=r){let A;return typeof t=="function"?A=t(r):Array.isArray(t)?A=t[r]||n:A=xu(t,r)||n,e&&(A=e(A,n,t)),A}function It(t){const{prop:e,cssProperty:r=t.prop,themeKey:n,transform:A}=t,a=i=>{if(i[e]==null)return null;const o=i[e],s=i.theme,l=xu(s,n)||{};return gr(i,o,c=>{let d=Il(l,A,c);return c===d&&typeof c=="string"&&(d=Il(l,A,`${e}${c==="default"?"":Fe(c)}`,c)),r===!1?d:{[r]:d}})};return a.propTypes={},a.filterProps=[e],a}function u1(t){const e={};return r=>(e[r]===void 0&&(e[r]=t(r)),e[r])}const c1={m:"margin",p:"padding"},f1={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},hp={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},d1=u1(t=>{if(t.length>2)if(hp[t])t=hp[t];else return[t];const[e,r]=t.split(""),n=c1[e],A=f1[r]||"";return Array.isArray(A)?A.map(a=>n+a):[n+A]}),qd=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Jd=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...qd,...Jd];function Go(t,e,r,n){const A=xu(t,e,!0)??r;return typeof A=="number"||typeof A=="string"?a=>typeof a=="string"?a:typeof A=="string"?`calc(${a} * ${A})`:A*a:Array.isArray(A)?a=>{if(typeof a=="string")return a;const i=Math.abs(a),o=A[i];return a>=0?o:typeof o=="number"?-o:`-${o}`}:typeof A=="function"?A:()=>{}}function Fu(t){return Go(t,"spacing",8)}function kA(t,e){return typeof e=="string"||e==null?e:t(e)}function h1(t,e){return r=>t.reduce((n,A)=>(n[A]=kA(e,r),n),{})}function p1(t,e,r,n){if(!e.includes(r))return null;const A=d1(r),a=h1(A,n),i=t[r];return gr(t,i,a)}function By(t,e){const r=Fu(t.theme);return Object.keys(t).map(n=>p1(t,e,n,r)).reduce(to,{})}function Ct(t){return By(t,qd)}Ct.propTypes={};Ct.filterProps=qd;function bt(t){return By(t,Jd)}bt.propTypes={};bt.filterProps=Jd;function wy(t=8,e=Fu({spacing:t})){if(t.mui)return t;const r=(...n)=>(n.length===0?[1]:n).map(a=>{const i=e(a);return typeof i=="number"?`${i}px`:i}).join(" ");return r.mui=!0,r}function Qu(...t){const e=t.reduce((n,A)=>(A.filterProps.forEach(a=>{n[a]=A}),n),{}),r=n=>Object.keys(n).reduce((A,a)=>e[a]?to(A,e[a](n)):A,{});return r.propTypes={},r.filterProps=t.reduce((n,A)=>n.concat(A.filterProps),[]),r}function Ir(t){return typeof t!="number"?t:`${t}px solid`}function Vr(t,e){return It({prop:t,themeKey:"borders",transform:e})}const g1=Vr("border",Ir),v1=Vr("borderTop",Ir),m1=Vr("borderRight",Ir),y1=Vr("borderBottom",Ir),B1=Vr("borderLeft",Ir),w1=Vr("borderColor"),C1=Vr("borderTopColor"),b1=Vr("borderRightColor"),E1=Vr("borderBottomColor"),x1=Vr("borderLeftColor"),F1=Vr("outline",Ir),Q1=Vr("outlineColor"),Su=t=>{if(t.borderRadius!==void 0&&t.borderRadius!==null){const e=Go(t.theme,"shape.borderRadius",4),r=n=>({borderRadius:kA(e,n)});return gr(t,t.borderRadius,r)}return null};Su.propTypes={};Su.filterProps=["borderRadius"];Qu(g1,v1,m1,y1,B1,w1,C1,b1,E1,x1,Su,F1,Q1);const Uu=t=>{if(t.gap!==void 0&&t.gap!==null){const e=Go(t.theme,"spacing",8),r=n=>({gap:kA(e,n)});return gr(t,t.gap,r)}return null};Uu.propTypes={};Uu.filterProps=["gap"];const Tu=t=>{if(t.columnGap!==void 0&&t.columnGap!==null){const e=Go(t.theme,"spacing",8),r=n=>({columnGap:kA(e,n)});return gr(t,t.columnGap,r)}return null};Tu.propTypes={};Tu.filterProps=["columnGap"];const Iu=t=>{if(t.rowGap!==void 0&&t.rowGap!==null){const e=Go(t.theme,"spacing",8),r=n=>({rowGap:kA(e,n)});return gr(t,t.rowGap,r)}return null};Iu.propTypes={};Iu.filterProps=["rowGap"];const S1=It({prop:"gridColumn"}),U1=It({prop:"gridRow"}),T1=It({prop:"gridAutoFlow"}),I1=It({prop:"gridAutoColumns"}),L1=It({prop:"gridAutoRows"}),D1=It({prop:"gridTemplateColumns"}),R1=It({prop:"gridTemplateRows"}),M1=It({prop:"gridTemplateAreas"}),O1=It({prop:"gridArea"});Qu(Uu,Tu,Iu,S1,U1,T1,I1,L1,D1,R1,M1,O1);function Da(t,e){return e==="grey"?e:t}const H1=It({prop:"color",themeKey:"palette",transform:Da}),k1=It({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Da}),P1=It({prop:"backgroundColor",themeKey:"palette",transform:Da});Qu(H1,k1,P1);function wr(t){return t<=1&&t!==0?`${t*100}%`:t}const N1=It({prop:"width",transform:wr}),Zd=t=>{if(t.maxWidth!==void 0&&t.maxWidth!==null){const e=r=>{var A,a,i,o,s;const n=((i=(a=(A=t.theme)==null?void 0:A.breakpoints)==null?void 0:a.values)==null?void 0:i[r])||Eu[r];return n?((s=(o=t.theme)==null?void 0:o.breakpoints)==null?void 0:s.unit)!=="px"?{maxWidth:`${n}${t.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:wr(r)}};return gr(t,t.maxWidth,e)}return null};Zd.filterProps=["maxWidth"];const K1=It({prop:"minWidth",transform:wr}),G1=It({prop:"height",transform:wr}),V1=It({prop:"maxHeight",transform:wr}),$1=It({prop:"minHeight",transform:wr});It({prop:"size",cssProperty:"width",transform:wr});It({prop:"size",cssProperty:"height",transform:wr});const z1=It({prop:"boxSizing"});Qu(N1,Zd,K1,G1,V1,$1,z1);const Vo={border:{themeKey:"borders",transform:Ir},borderTop:{themeKey:"borders",transform:Ir},borderRight:{themeKey:"borders",transform:Ir},borderBottom:{themeKey:"borders",transform:Ir},borderLeft:{themeKey:"borders",transform:Ir},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ir},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Su},color:{themeKey:"palette",transform:Da},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Da},backgroundColor:{themeKey:"palette",transform:Da},p:{style:bt},pt:{style:bt},pr:{style:bt},pb:{style:bt},pl:{style:bt},px:{style:bt},py:{style:bt},padding:{style:bt},paddingTop:{style:bt},paddingRight:{style:bt},paddingBottom:{style:bt},paddingLeft:{style:bt},paddingX:{style:bt},paddingY:{style:bt},paddingInline:{style:bt},paddingInlineStart:{style:bt},paddingInlineEnd:{style:bt},paddingBlock:{style:bt},paddingBlockStart:{style:bt},paddingBlockEnd:{style:bt},m:{style:Ct},mt:{style:Ct},mr:{style:Ct},mb:{style:Ct},ml:{style:Ct},mx:{style:Ct},my:{style:Ct},margin:{style:Ct},marginTop:{style:Ct},marginRight:{style:Ct},marginBottom:{style:Ct},marginLeft:{style:Ct},marginX:{style:Ct},marginY:{style:Ct},marginInline:{style:Ct},marginInlineStart:{style:Ct},marginInlineEnd:{style:Ct},marginBlock:{style:Ct},marginBlockStart:{style:Ct},marginBlockEnd:{style:Ct},displayPrint:{cssProperty:!1,transform:t=>({"@media print":{display:t}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Uu},rowGap:{style:Iu},columnGap:{style:Tu},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:wr},maxWidth:{style:Zd},minWidth:{transform:wr},height:{transform:wr},maxHeight:{transform:wr},minHeight:{transform:wr},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function W1(...t){const e=t.reduce((n,A)=>n.concat(Object.keys(A)),[]),r=new Set(e);return t.every(n=>r.size===Object.keys(n).length)}function _1(t,e){return typeof t=="function"?t(e):t}function X1(){function t(r,n,A,a){const i={[r]:n,theme:A},o=a[r];if(!o)return{[r]:n};const{cssProperty:s=r,themeKey:l,transform:u,style:c}=o;if(n==null)return null;if(l==="typography"&&n==="inherit")return{[r]:n};const d=xu(A,l)||{};return c?c(i):gr(i,n,f=>{let p=Il(d,u,f);return f===p&&typeof f=="string"&&(p=Il(d,u,`${r}${f==="default"?"":Fe(f)}`,f)),s===!1?p:{[s]:p}})}function e(r){const{sx:n,theme:A={}}=r||{};if(!n)return null;const a=A.unstable_sxConfig??Vo;function i(o){let s=o;if(typeof o=="function")s=o(A);else if(typeof o!="object")return o;if(!s)return null;const l=my(A.breakpoints),u=Object.keys(l);let c=l;return Object.keys(s).forEach(d=>{const h=_1(s[d],A);if(h!=null)if(typeof h=="object")if(a[d])c=to(c,t(d,h,A,a));else{const f=gr({theme:A},h,p=>({[d]:p}));W1(f,h)?c[d]=e({sx:h,theme:A}):c=to(c,f)}else c=to(c,t(d,h,A,a))}),r1(A,yy(u,c))}return Array.isArray(n)?n.map(i):i(n)}return e}const YA=X1();YA.filterProps=["sx"];function Y1(t,e){var n;const r=this;if(r.vars){if(!((n=r.colorSchemes)!=null&&n[t])||typeof r.getColorSchemeSelector!="function")return{};let A=r.getColorSchemeSelector(t);return A==="&"?e:((A.includes("data-")||A.includes("."))&&(A=`*:where(${A.replace(/\s*&$/,"")}) &`),{[A]:e})}return r.palette.mode===t?e:{}}function $o(t={},...e){const{breakpoints:r={},palette:n={},spacing:A,shape:a={},...i}=t,o=t1(r),s=wy(A);let l=$t({breakpoints:o,direction:"ltr",components:{},palette:{mode:"light",...n},spacing:s,shape:{...i1,...a}},i);return l=a1(l),l.applyStyles=Y1,l=e.reduce((u,c)=>$t(u,c),l),l.unstable_sxConfig={...Vo,...i==null?void 0:i.unstable_sxConfig},l.unstable_sx=function(c){return YA({sx:c,theme:this})},l}function j1(t){return Object.keys(t).length===0}function Cy(t=null){const e=O.useContext(Ga);return!e||j1(e)?t:e}const q1=$o();function zo(t=q1){return Cy(t)}function J1({styles:t,themeId:e,defaultTheme:r={}}){const n=zo(r),A=typeof t=="function"?t(e&&n[e]||n):t;return I.jsx(py,{styles:A})}const Z1=t=>{var n;const e={systemProps:{},otherProps:{}},r=((n=t==null?void 0:t.theme)==null?void 0:n.unstable_sxConfig)??Vo;return Object.keys(t).forEach(A=>{r[A]?e.systemProps[A]=t[A]:e.otherProps[A]=t[A]}),e};function Wo(t){const{sx:e,...r}=t,{systemProps:n,otherProps:A}=Z1(r);let a;return Array.isArray(e)?a=[n,...e]:typeof e=="function"?a=(...i)=>{const o=e(...i);return pn(o)?{...n,...o}:n}:a={...n,...e},{...A,sx:a}}const pp=t=>t,eE=()=>{let t=pp;return{configure(e){t=e},generate(e){return t(e)},reset(){t=pp}}},by=eE();function Ey(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var A=t.length;for(e=0;eo!=="theme"&&o!=="sx"&&o!=="as"})(YA);return O.forwardRef(function(s,l){const u=zo(r),{className:c,component:d="div",...h}=Wo(s);return I.jsx(a,{as:d,ref:l,className:xe(c,A?A(n):n),theme:e&&u[e]||u,...h})})}const rE={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Pe(t,e,r="Mui"){const n=rE[e];return n?`${r}-${n}`:`${by.generate(t)}-${e}`}function Me(t,e,r="Mui"){const n={};return e.forEach(A=>{n[A]=Pe(t,A,r)}),n}var it={};/** * @license React * react-is.production.min.js * @@ -19,7 +19,7 @@ var NC=Object.defineProperty;var KC=(t,e,r)=>e in t?NC(t,e,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var eh=Symbol.for("react.element"),th=Symbol.for("react.portal"),Lu=Symbol.for("react.fragment"),Du=Symbol.for("react.strict_mode"),Ru=Symbol.for("react.profiler"),Mu=Symbol.for("react.provider"),Ou=Symbol.for("react.context"),n1=Symbol.for("react.server_context"),Hu=Symbol.for("react.forward_ref"),ku=Symbol.for("react.suspense"),Pu=Symbol.for("react.suspense_list"),Nu=Symbol.for("react.memo"),Ku=Symbol.for("react.lazy"),A1=Symbol.for("react.offscreen"),xy;xy=Symbol.for("react.module.reference");function $r(t){if(typeof t=="object"&&t!==null){var e=t.$$typeof;switch(e){case eh:switch(t=t.type,t){case Lu:case Ru:case Du:case ku:case Pu:return t;default:switch(t=t&&t.$$typeof,t){case n1:case Ou:case Hu:case Ku:case Nu:case Mu:return t;default:return e}}case th:return e}}}it.ContextConsumer=Ou;it.ContextProvider=Mu;it.Element=eh;it.ForwardRef=Hu;it.Fragment=Lu;it.Lazy=Ku;it.Memo=Nu;it.Portal=th;it.Profiler=Ru;it.StrictMode=Du;it.Suspense=ku;it.SuspenseList=Pu;it.isAsyncMode=function(){return!1};it.isConcurrentMode=function(){return!1};it.isContextConsumer=function(t){return $r(t)===Ou};it.isContextProvider=function(t){return $r(t)===Mu};it.isElement=function(t){return typeof t=="object"&&t!==null&&t.$$typeof===eh};it.isForwardRef=function(t){return $r(t)===Hu};it.isFragment=function(t){return $r(t)===Lu};it.isLazy=function(t){return $r(t)===Ku};it.isMemo=function(t){return $r(t)===Nu};it.isPortal=function(t){return $r(t)===th};it.isProfiler=function(t){return $r(t)===Ru};it.isStrictMode=function(t){return $r(t)===Du};it.isSuspense=function(t){return $r(t)===ku};it.isSuspenseList=function(t){return $r(t)===Pu};it.isValidElementType=function(t){return typeof t=="string"||typeof t=="function"||t===Lu||t===Ru||t===Du||t===ku||t===Pu||t===A1||typeof t=="object"&&t!==null&&(t.$$typeof===Ku||t.$$typeof===Nu||t.$$typeof===Mu||t.$$typeof===Ou||t.$$typeof===Hu||t.$$typeof===xy||t.getModuleId!==void 0)};it.typeOf=$r;const a1=$o();function Hc(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}function Kf(t,e,r){return o1(e)?r:e[t]||e}const hs=Symbol("mui.processed_props");function ps(t,e,r){if(hs in t)return t[hs];const n={...t,theme:Kf(e,t.theme,r)};return t[hs]=n,n[hs]=n,n}function i1(t){return t?(e,r)=>r[t]:null}function dl(t,e){var n;const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(A=>dl(A,e));if(Array.isArray(r==null?void 0:r.variants)){const{variants:A,...a}=r;let i=a,o;e:for(let s=0;sYA(ps(o,e,r));return a.__mui_systemSx=!0,(o,s={})=>{Zb(o,E=>E.filter(C=>!(C!=null&&C.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:c,skipSx:d,overridesResolver:h=i1(l1(u)),...f}=s,p=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,g=d||!1;let m,B=Hc;u==="Root"||u==="root"?B=n:u?B=A:s1(o)&&(B=void 0);const v=gy(o,{shouldForwardProp:B,label:m,...f}),y=E=>typeof E=="function"&&E.__emotion_real!==E||pn(E)?C=>dl(E,ps(C,e,r)):E,b=(E,...C)=>{let F=y(E);const w=C?C.map(y):[];l&&h&&w.push(S=>{const T=Kf(e,S.theme,r);if(!T.components||!T.components[l]||!T.components[l].styleOverrides)return null;const U=T.components[l].styleOverrides,L={},R=ps(S,e,r);for(const M in U)L[M]=dl(U[M],R);return h(S,L)}),l&&!p&&w.push(S=>{var L,R;const T=Kf(e,S.theme,r),U=(R=(L=T==null?void 0:T.components)==null?void 0:L[l])==null?void 0:R.variants;return U?dl({variants:U},ps(S,e,r)):null}),g||w.push(a);const x=w.length-C.length;if(Array.isArray(E)&&x>0){const S=new Array(x).fill("");F=[...E,...S],F.raw=[...E.raw,...S]}const Q=v(F,...w);return o.muiName&&(Q.muiName=o.muiName),Q};return v.withConfig&&(b.withConfig=v.withConfig),b}}function o1(t){for(const e in t)return!1;return!0}function s1(t){return typeof t=="string"&&t.charCodeAt(0)>96}function l1(t){return t&&t.charAt(0).toLowerCase()+t.slice(1)}const Qy=Fy();function Bo(t,e){const r={...e};for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)){const A=n;if(A==="components"||A==="slots")r[A]={...t[A],...r[A]};else if(A==="componentsProps"||A==="slotProps"){const a=t[A],i=e[A];if(!i)r[A]=a||{};else if(!a)r[A]=i;else{r[A]={...i};for(const o in a)if(Object.prototype.hasOwnProperty.call(a,o)){const s=o;r[A][s]=Bo(a[s],i[s])}}}else r[A]===void 0&&(r[A]=t[A])}return r}function u1(t){const{theme:e,name:r,props:n}=t;return!e||!e.components||!e.components[r]||!e.components[r].defaultProps?n:Bo(e.components[r].defaultProps,n)}function rh({props:t,name:e,defaultTheme:r,themeId:n}){let A=zo(r);return n&&(A=A[n]||A),u1({theme:A,name:e,props:t})}const rn=typeof window<"u"?O.useLayoutEffect:O.useEffect;function Ba(t,e=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(e,Math.min(t,r))}function nh(t,e=0,r=1){return Ba(t,e,r)}function c1(t){t=t.slice(1);const e=new RegExp(`.{1,${t.length>=6?2:1}}`,"g");let r=t.match(e);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,A)=>A<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function sA(t){if(t.type)return t;if(t.charAt(0)==="#")return sA(c1(t));const e=t.indexOf("("),r=t.substring(0,e);if(!["rgb","rgba","hsl","hsla","color"].includes(r))throw new Error(Mn(9,t));let n=t.substring(e+1,t.length-1),A;if(r==="color"){if(n=n.split(" "),A=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(A))throw new Error(Mn(10,A))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:A}}const f1=t=>{const e=sA(t);return e.values.slice(0,3).map((r,n)=>e.type.includes("hsl")&&n!==0?`${r}%`:r).join(" ")},ki=(t,e)=>{try{return f1(t)}catch{return t}};function Gu(t){const{type:e,colorSpace:r}=t;let{values:n}=t;return e.includes("rgb")?n=n.map((A,a)=>a<3?parseInt(A,10):A):e.includes("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),e.includes("color")?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${e}(${n})`}function Sy(t){t=sA(t);const{values:e}=t,r=e[0],n=e[1]/100,A=e[2]/100,a=n*Math.min(A,1-A),i=(l,u=(l+r/30)%12)=>A-a*Math.max(Math.min(u-3,9-u,1),-1);let o="rgb";const s=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return t.type==="hsla"&&(o+="a",s.push(e[3])),Gu({type:o,values:s})}function Gf(t){t=sA(t);let e=t.type==="hsl"||t.type==="hsla"?sA(Sy(t)).values:t.values;return e=e.map(r=>(t.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*e[0]+.7152*e[1]+.0722*e[2]).toFixed(3))}function d1(t,e){const r=Gf(t),n=Gf(e);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function dt(t,e){return t=sA(t),e=nh(e),(t.type==="rgb"||t.type==="hsl")&&(t.type+="a"),t.type==="color"?t.values[3]=`/${e}`:t.values[3]=e,Gu(t)}function gs(t,e,r){try{return dt(t,e)}catch{return t}}function Va(t,e){if(t=sA(t),e=nh(e),t.type.includes("hsl"))t.values[2]*=1-e;else if(t.type.includes("rgb")||t.type.includes("color"))for(let r=0;r<3;r+=1)t.values[r]*=1-e;return Gu(t)}function ot(t,e,r){try{return Va(t,e)}catch{return t}}function $a(t,e){if(t=sA(t),e=nh(e),t.type.includes("hsl"))t.values[2]+=(100-t.values[2])*e;else if(t.type.includes("rgb"))for(let r=0;r<3;r+=1)t.values[r]+=(255-t.values[r])*e;else if(t.type.includes("color"))for(let r=0;r<3;r+=1)t.values[r]+=(1-t.values[r])*e;return Gu(t)}function st(t,e,r){try{return $a(t,e)}catch{return t}}function h1(t,e=.15){return Gf(t)>.5?Va(t,e):$a(t,e)}function vs(t,e,r){try{return h1(t,e)}catch{return t}}function gp(...t){return t.reduce((e,r)=>r==null?e:function(...A){e.apply(this,A),r.apply(this,A)},()=>{})}function Uy(t,e=166){let r;function n(...A){const a=()=>{t.apply(this,A)};clearTimeout(r),r=setTimeout(a,e)}return n.clear=()=>{clearTimeout(r)},n}function hl(t,e){var r,n,A;return O.isValidElement(t)&&e.indexOf(t.type.muiName??((A=(n=(r=t.type)==null?void 0:r._payload)==null?void 0:n.value)==null?void 0:A.muiName))!==-1}function Ft(t){return t&&t.ownerDocument||document}function PA(t){return Ft(t).defaultView||window}function Vf(t,e){typeof t=="function"?t(e):t&&(t.current=e)}let vp=0;function p1(t){const[e,r]=O.useState(t),n=t||e;return O.useEffect(()=>{e==null&&(vp+=1,r(`mui-${vp}`))},[e]),n}const g1={...Hf},mp=g1.useId;function wo(t){if(mp!==void 0){const e=mp();return t??e}return p1(t)}function Co({controlled:t,default:e,name:r,state:n="value"}){const{current:A}=O.useRef(t!==void 0),[a,i]=O.useState(e),o=A?t:a,s=O.useCallback(l=>{A||i(l)},[]);return[o,s]}function Mr(t){const e=O.useRef(t);return rn(()=>{e.current=t}),O.useRef((...r)=>(0,e.current)(...r)).current}function Qt(...t){return O.useMemo(()=>t.every(e=>e==null)?null:e=>{t.forEach(r=>{Vf(r,e)})},t)}const yp={};function Ty(t,e){const r=O.useRef(yp);return r.current===yp&&(r.current=t(e)),r}const v1=[];function m1(t){O.useEffect(t,v1)}class Vu{constructor(){yi(this,"currentId",null);yi(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});yi(this,"disposeEffect",()=>this.clear)}static create(){return new Vu}start(e,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},e)}}function xa(){const t=Ty(Vu.create).current;return m1(t.disposeEffect),t}function za(t){try{return t.matches(":focus-visible")}catch{}return!1}function Iy(t){const e=t.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}const y1={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function Ke(t,e,r=void 0){const n={};for(const A in t){const a=t[A];let i="",o=!0;for(let s=0;sn.match(/^on[A-Z]/)&&typeof t[n]=="function"&&!e.includes(n)).forEach(n=>{r[n]=t[n]}),r}function Bp(t){if(t===void 0)return{};const e={};return Object.keys(t).filter(r=>!(r.match(/^on[A-Z]/)&&typeof t[r]=="function")).forEach(r=>{e[r]=t[r]}),e}function Ly(t){const{getSlotProps:e,additionalProps:r,externalSlotProps:n,externalForwardedProps:A,className:a}=t;if(!e){const h=xe(r==null?void 0:r.className,a,A==null?void 0:A.className,n==null?void 0:n.className),f={...r==null?void 0:r.style,...A==null?void 0:A.style,...n==null?void 0:n.style},p={...r,...A,...n};return h.length>0&&(p.className=h),Object.keys(f).length>0&&(p.style=f),{props:p,internalRef:void 0}}const i=to({...A,...n}),o=Bp(n),s=Bp(A),l=e(i),u=xe(l==null?void 0:l.className,r==null?void 0:r.className,a,A==null?void 0:A.className,n==null?void 0:n.className),c={...l==null?void 0:l.style,...r==null?void 0:r.style,...A==null?void 0:A.style,...n==null?void 0:n.style},d={...l,...r,...s,...o};return u.length>0&&(d.className=u),Object.keys(c).length>0&&(d.style=c),{props:d,internalRef:l.ref}}function Dy(t,e,r){return typeof t=="function"?t(e,r):t}function Yr(t){var c;const{elementType:e,externalSlotProps:r,ownerState:n,skipResolvingSlotProps:A=!1,...a}=t,i=A?{}:Dy(r,n),{props:o,internalRef:s}=Ly({...a,externalSlotProps:i}),l=Qt(s,i==null?void 0:i.ref,(c=t.additionalProps)==null?void 0:c.ref);return Fa(e,{...o,ref:l},n)}function jA(t){return!t||!O.isValidElement(t)?null:t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref}const Ry=O.createContext(null);function Ah(){return O.useContext(Ry)}const w1=typeof Symbol=="function"&&Symbol.for,C1=w1?Symbol.for("mui.nested"):"__THEME_NESTED__";function b1(t,e){return typeof e=="function"?e(t):{...t,...e}}function E1(t){const{children:e,theme:r}=t,n=Ah(),A=O.useMemo(()=>{const a=n===null?{...r}:b1(n,r);return a!=null&&(a[C1]=n!==null),a},[r,n]);return I.jsx(Ry.Provider,{value:A,children:e})}const My=O.createContext();function x1({value:t,...e}){return I.jsx(My.Provider,{value:t??!0,...e})}const _o=()=>O.useContext(My)??!1,Oy=O.createContext(void 0);function F1({value:t,children:e}){return I.jsx(Oy.Provider,{value:t,children:e})}function Q1(t){const{theme:e,name:r,props:n}=t;if(!e||!e.components||!e.components[r])return n;const A=e.components[r];return A.defaultProps?Bo(A.defaultProps,n):!A.styleOverrides&&!A.variants?Bo(A,n):n}function S1({props:t,name:e}){const r=O.useContext(Oy);return Q1({props:t,name:e,theme:{components:r}})}const wp={};function Cp(t,e,r,n=!1){return O.useMemo(()=>{const A=t&&e[t]||e;if(typeof r=="function"){const a=r(A),i=t?{...e,[t]:a}:a;return n?()=>i:i}return t?{...e,[t]:r}:{...e,...r}},[t,e,r,n])}function Hy(t){const{children:e,theme:r,themeId:n}=t,A=Cy(wp),a=Ah()||wp,i=Cp(n,A,r),o=Cp(n,a,r,!0),s=i.direction==="rtl";return I.jsx(E1,{theme:o,children:I.jsx(Ga.Provider,{value:i,children:I.jsx(x1,{value:s,children:I.jsx(F1,{value:i==null?void 0:i.components,children:e})})})})}const ah="mode",ih="color-scheme",U1="data-color-scheme";function T1(t){const{defaultLightColorScheme:e="light",defaultDarkColorScheme:r="dark",modeStorageKey:n=ah,colorSchemeStorageKey:A=ih,attribute:a=U1,colorSchemeNode:i="document.documentElement",nonce:o}=t||{};let s="",l=a;if(a==="class"&&(l=".%s"),a==="data"&&(l="[data-%s]"),l.startsWith(".")){const c=l.substring(1);s+=`${i}.classList.remove('${c}'.replace('%s', light), '${c}'.replace('%s', dark)); + */var eh=Symbol.for("react.element"),th=Symbol.for("react.portal"),Lu=Symbol.for("react.fragment"),Du=Symbol.for("react.strict_mode"),Ru=Symbol.for("react.profiler"),Mu=Symbol.for("react.provider"),Ou=Symbol.for("react.context"),nE=Symbol.for("react.server_context"),Hu=Symbol.for("react.forward_ref"),ku=Symbol.for("react.suspense"),Pu=Symbol.for("react.suspense_list"),Nu=Symbol.for("react.memo"),Ku=Symbol.for("react.lazy"),AE=Symbol.for("react.offscreen"),xy;xy=Symbol.for("react.module.reference");function $r(t){if(typeof t=="object"&&t!==null){var e=t.$$typeof;switch(e){case eh:switch(t=t.type,t){case Lu:case Ru:case Du:case ku:case Pu:return t;default:switch(t=t&&t.$$typeof,t){case nE:case Ou:case Hu:case Ku:case Nu:case Mu:return t;default:return e}}case th:return e}}}it.ContextConsumer=Ou;it.ContextProvider=Mu;it.Element=eh;it.ForwardRef=Hu;it.Fragment=Lu;it.Lazy=Ku;it.Memo=Nu;it.Portal=th;it.Profiler=Ru;it.StrictMode=Du;it.Suspense=ku;it.SuspenseList=Pu;it.isAsyncMode=function(){return!1};it.isConcurrentMode=function(){return!1};it.isContextConsumer=function(t){return $r(t)===Ou};it.isContextProvider=function(t){return $r(t)===Mu};it.isElement=function(t){return typeof t=="object"&&t!==null&&t.$$typeof===eh};it.isForwardRef=function(t){return $r(t)===Hu};it.isFragment=function(t){return $r(t)===Lu};it.isLazy=function(t){return $r(t)===Ku};it.isMemo=function(t){return $r(t)===Nu};it.isPortal=function(t){return $r(t)===th};it.isProfiler=function(t){return $r(t)===Ru};it.isStrictMode=function(t){return $r(t)===Du};it.isSuspense=function(t){return $r(t)===ku};it.isSuspenseList=function(t){return $r(t)===Pu};it.isValidElementType=function(t){return typeof t=="string"||typeof t=="function"||t===Lu||t===Ru||t===Du||t===ku||t===Pu||t===AE||typeof t=="object"&&t!==null&&(t.$$typeof===Ku||t.$$typeof===Nu||t.$$typeof===Mu||t.$$typeof===Ou||t.$$typeof===Hu||t.$$typeof===xy||t.getModuleId!==void 0)};it.typeOf=$r;const aE=$o();function Hc(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}function Kf(t,e,r){return oE(e)?r:e[t]||e}const hs=Symbol("mui.processed_props");function ps(t,e,r){if(hs in t)return t[hs];const n={...t,theme:Kf(e,t.theme,r)};return t[hs]=n,n[hs]=n,n}function iE(t){return t?(e,r)=>r[t]:null}function dl(t,e){var n;const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(A=>dl(A,e));if(Array.isArray(r==null?void 0:r.variants)){const{variants:A,...a}=r;let i=a,o;e:for(let s=0;sYA(ps(o,e,r));return a.__mui_systemSx=!0,(o,s={})=>{Zb(o,E=>E.filter(C=>!(C!=null&&C.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:c,skipSx:d,overridesResolver:h=iE(lE(u)),...f}=s,p=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,g=d||!1;let m,w=Hc;u==="Root"||u==="root"?w=n:u?w=A:sE(o)&&(w=void 0);const v=gy(o,{shouldForwardProp:w,label:m,...f}),B=E=>typeof E=="function"&&E.__emotion_real!==E||pn(E)?C=>dl(E,ps(C,e,r)):E,b=(E,...C)=>{let F=B(E);const y=C?C.map(B):[];l&&h&&y.push(S=>{const T=Kf(e,S.theme,r);if(!T.components||!T.components[l]||!T.components[l].styleOverrides)return null;const U=T.components[l].styleOverrides,L={},R=ps(S,e,r);for(const M in U)L[M]=dl(U[M],R);return h(S,L)}),l&&!p&&y.push(S=>{var L,R;const T=Kf(e,S.theme,r),U=(R=(L=T==null?void 0:T.components)==null?void 0:L[l])==null?void 0:R.variants;return U?dl({variants:U},ps(S,e,r)):null}),g||y.push(a);const x=y.length-C.length;if(Array.isArray(E)&&x>0){const S=new Array(x).fill("");F=[...E,...S],F.raw=[...E.raw,...S]}const Q=v(F,...y);return o.muiName&&(Q.muiName=o.muiName),Q};return v.withConfig&&(b.withConfig=v.withConfig),b}}function oE(t){for(const e in t)return!1;return!0}function sE(t){return typeof t=="string"&&t.charCodeAt(0)>96}function lE(t){return t&&t.charAt(0).toLowerCase()+t.slice(1)}const Qy=Fy();function wo(t,e){const r={...e};for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)){const A=n;if(A==="components"||A==="slots")r[A]={...t[A],...r[A]};else if(A==="componentsProps"||A==="slotProps"){const a=t[A],i=e[A];if(!i)r[A]=a||{};else if(!a)r[A]=i;else{r[A]={...i};for(const o in a)if(Object.prototype.hasOwnProperty.call(a,o)){const s=o;r[A][s]=wo(a[s],i[s])}}}else r[A]===void 0&&(r[A]=t[A])}return r}function uE(t){const{theme:e,name:r,props:n}=t;return!e||!e.components||!e.components[r]||!e.components[r].defaultProps?n:wo(e.components[r].defaultProps,n)}function rh({props:t,name:e,defaultTheme:r,themeId:n}){let A=zo(r);return n&&(A=A[n]||A),uE({theme:A,name:e,props:t})}const rn=typeof window<"u"?O.useLayoutEffect:O.useEffect;function Ba(t,e=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(e,Math.min(t,r))}function nh(t,e=0,r=1){return Ba(t,e,r)}function cE(t){t=t.slice(1);const e=new RegExp(`.{1,${t.length>=6?2:1}}`,"g");let r=t.match(e);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,A)=>A<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function sA(t){if(t.type)return t;if(t.charAt(0)==="#")return sA(cE(t));const e=t.indexOf("("),r=t.substring(0,e);if(!["rgb","rgba","hsl","hsla","color"].includes(r))throw new Error(Mn(9,t));let n=t.substring(e+1,t.length-1),A;if(r==="color"){if(n=n.split(" "),A=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(A))throw new Error(Mn(10,A))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:A}}const fE=t=>{const e=sA(t);return e.values.slice(0,3).map((r,n)=>e.type.includes("hsl")&&n!==0?`${r}%`:r).join(" ")},Pi=(t,e)=>{try{return fE(t)}catch{return t}};function Gu(t){const{type:e,colorSpace:r}=t;let{values:n}=t;return e.includes("rgb")?n=n.map((A,a)=>a<3?parseInt(A,10):A):e.includes("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),e.includes("color")?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${e}(${n})`}function Sy(t){t=sA(t);const{values:e}=t,r=e[0],n=e[1]/100,A=e[2]/100,a=n*Math.min(A,1-A),i=(l,u=(l+r/30)%12)=>A-a*Math.max(Math.min(u-3,9-u,1),-1);let o="rgb";const s=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return t.type==="hsla"&&(o+="a",s.push(e[3])),Gu({type:o,values:s})}function Gf(t){t=sA(t);let e=t.type==="hsl"||t.type==="hsla"?sA(Sy(t)).values:t.values;return e=e.map(r=>(t.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*e[0]+.7152*e[1]+.0722*e[2]).toFixed(3))}function dE(t,e){const r=Gf(t),n=Gf(e);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function dt(t,e){return t=sA(t),e=nh(e),(t.type==="rgb"||t.type==="hsl")&&(t.type+="a"),t.type==="color"?t.values[3]=`/${e}`:t.values[3]=e,Gu(t)}function gs(t,e,r){try{return dt(t,e)}catch{return t}}function Va(t,e){if(t=sA(t),e=nh(e),t.type.includes("hsl"))t.values[2]*=1-e;else if(t.type.includes("rgb")||t.type.includes("color"))for(let r=0;r<3;r+=1)t.values[r]*=1-e;return Gu(t)}function ot(t,e,r){try{return Va(t,e)}catch{return t}}function $a(t,e){if(t=sA(t),e=nh(e),t.type.includes("hsl"))t.values[2]+=(100-t.values[2])*e;else if(t.type.includes("rgb"))for(let r=0;r<3;r+=1)t.values[r]+=(255-t.values[r])*e;else if(t.type.includes("color"))for(let r=0;r<3;r+=1)t.values[r]+=(1-t.values[r])*e;return Gu(t)}function st(t,e,r){try{return $a(t,e)}catch{return t}}function hE(t,e=.15){return Gf(t)>.5?Va(t,e):$a(t,e)}function vs(t,e,r){try{return hE(t,e)}catch{return t}}function gp(...t){return t.reduce((e,r)=>r==null?e:function(...A){e.apply(this,A),r.apply(this,A)},()=>{})}function Uy(t,e=166){let r;function n(...A){const a=()=>{t.apply(this,A)};clearTimeout(r),r=setTimeout(a,e)}return n.clear=()=>{clearTimeout(r)},n}function hl(t,e){var r,n,A;return O.isValidElement(t)&&e.indexOf(t.type.muiName??((A=(n=(r=t.type)==null?void 0:r._payload)==null?void 0:n.value)==null?void 0:A.muiName))!==-1}function Ft(t){return t&&t.ownerDocument||document}function PA(t){return Ft(t).defaultView||window}function Vf(t,e){typeof t=="function"?t(e):t&&(t.current=e)}let vp=0;function pE(t){const[e,r]=O.useState(t),n=t||e;return O.useEffect(()=>{e==null&&(vp+=1,r(`mui-${vp}`))},[e]),n}const gE={...Hf},mp=gE.useId;function Co(t){if(mp!==void 0){const e=mp();return t??e}return pE(t)}function bo({controlled:t,default:e,name:r,state:n="value"}){const{current:A}=O.useRef(t!==void 0),[a,i]=O.useState(e),o=A?t:a,s=O.useCallback(l=>{A||i(l)},[]);return[o,s]}function Mr(t){const e=O.useRef(t);return rn(()=>{e.current=t}),O.useRef((...r)=>(0,e.current)(...r)).current}function Qt(...t){return O.useMemo(()=>t.every(e=>e==null)?null:e=>{t.forEach(r=>{Vf(r,e)})},t)}const yp={};function Ty(t,e){const r=O.useRef(yp);return r.current===yp&&(r.current=t(e)),r}const vE=[];function mE(t){O.useEffect(t,vE)}class Vu{constructor(){Bi(this,"currentId",null);Bi(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});Bi(this,"disposeEffect",()=>this.clear)}static create(){return new Vu}start(e,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},e)}}function xa(){const t=Ty(Vu.create).current;return mE(t.disposeEffect),t}function za(t){try{return t.matches(":focus-visible")}catch{}return!1}function Iy(t){const e=t.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}const yE={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function Ke(t,e,r=void 0){const n={};for(const A in t){const a=t[A];let i="",o=!0;for(let s=0;sn.match(/^on[A-Z]/)&&typeof t[n]=="function"&&!e.includes(n)).forEach(n=>{r[n]=t[n]}),r}function Bp(t){if(t===void 0)return{};const e={};return Object.keys(t).filter(r=>!(r.match(/^on[A-Z]/)&&typeof t[r]=="function")).forEach(r=>{e[r]=t[r]}),e}function Ly(t){const{getSlotProps:e,additionalProps:r,externalSlotProps:n,externalForwardedProps:A,className:a}=t;if(!e){const h=xe(r==null?void 0:r.className,a,A==null?void 0:A.className,n==null?void 0:n.className),f={...r==null?void 0:r.style,...A==null?void 0:A.style,...n==null?void 0:n.style},p={...r,...A,...n};return h.length>0&&(p.className=h),Object.keys(f).length>0&&(p.style=f),{props:p,internalRef:void 0}}const i=ro({...A,...n}),o=Bp(n),s=Bp(A),l=e(i),u=xe(l==null?void 0:l.className,r==null?void 0:r.className,a,A==null?void 0:A.className,n==null?void 0:n.className),c={...l==null?void 0:l.style,...r==null?void 0:r.style,...A==null?void 0:A.style,...n==null?void 0:n.style},d={...l,...r,...s,...o};return u.length>0&&(d.className=u),Object.keys(c).length>0&&(d.style=c),{props:d,internalRef:l.ref}}function Dy(t,e,r){return typeof t=="function"?t(e,r):t}function Yr(t){var c;const{elementType:e,externalSlotProps:r,ownerState:n,skipResolvingSlotProps:A=!1,...a}=t,i=A?{}:Dy(r,n),{props:o,internalRef:s}=Ly({...a,externalSlotProps:i}),l=Qt(s,i==null?void 0:i.ref,(c=t.additionalProps)==null?void 0:c.ref);return Fa(e,{...o,ref:l},n)}function jA(t){return!t||!O.isValidElement(t)?null:t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref}const Ry=O.createContext(null);function Ah(){return O.useContext(Ry)}const wE=typeof Symbol=="function"&&Symbol.for,CE=wE?Symbol.for("mui.nested"):"__THEME_NESTED__";function bE(t,e){return typeof e=="function"?e(t):{...t,...e}}function EE(t){const{children:e,theme:r}=t,n=Ah(),A=O.useMemo(()=>{const a=n===null?{...r}:bE(n,r);return a!=null&&(a[CE]=n!==null),a},[r,n]);return I.jsx(Ry.Provider,{value:A,children:e})}const My=O.createContext();function xE({value:t,...e}){return I.jsx(My.Provider,{value:t??!0,...e})}const _o=()=>O.useContext(My)??!1,Oy=O.createContext(void 0);function FE({value:t,children:e}){return I.jsx(Oy.Provider,{value:t,children:e})}function QE(t){const{theme:e,name:r,props:n}=t;if(!e||!e.components||!e.components[r])return n;const A=e.components[r];return A.defaultProps?wo(A.defaultProps,n):!A.styleOverrides&&!A.variants?wo(A,n):n}function SE({props:t,name:e}){const r=O.useContext(Oy);return QE({props:t,name:e,theme:{components:r}})}const wp={};function Cp(t,e,r,n=!1){return O.useMemo(()=>{const A=t&&e[t]||e;if(typeof r=="function"){const a=r(A),i=t?{...e,[t]:a}:a;return n?()=>i:i}return t?{...e,[t]:r}:{...e,...r}},[t,e,r,n])}function Hy(t){const{children:e,theme:r,themeId:n}=t,A=Cy(wp),a=Ah()||wp,i=Cp(n,A,r),o=Cp(n,a,r,!0),s=i.direction==="rtl";return I.jsx(EE,{theme:o,children:I.jsx(Ga.Provider,{value:i,children:I.jsx(xE,{value:s,children:I.jsx(FE,{value:i==null?void 0:i.components,children:e})})})})}const ah="mode",ih="color-scheme",UE="data-color-scheme";function TE(t){const{defaultLightColorScheme:e="light",defaultDarkColorScheme:r="dark",modeStorageKey:n=ah,colorSchemeStorageKey:A=ih,attribute:a=UE,colorSchemeNode:i="document.documentElement",nonce:o}=t||{};let s="",l=a;if(a==="class"&&(l=".%s"),a==="data"&&(l="[data-%s]"),l.startsWith(".")){const c=l.substring(1);s+=`${i}.classList.remove('${c}'.replace('%s', light), '${c}'.replace('%s', dark)); ${i}.classList.add('${c}'.replace('%s', colorScheme));`}const u=l.match(/\[([^\]]+)\]/);if(u){const[c,d]=u[1].split("=");d||(s+=`${i}.removeAttribute('${c}'.replace('%s', light)); ${i}.removeAttribute('${c}'.replace('%s', dark));`),s+=` ${i}.setAttribute('${c}'.replace('%s', colorScheme), ${d?`${d}.replace('%s', colorScheme)`:'""'});`}else s+=`${i}.setAttribute('${l}', colorScheme);`;return I.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?o:"",dangerouslySetInnerHTML:{__html:`(function() { @@ -46,15 +46,15 @@ try { if (colorScheme) { ${s} } -} catch(e){}})();`}},"mui-color-scheme-init")}function bp(t){if(typeof window<"u"&&typeof window.matchMedia=="function"&&t==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function ky(t,e){if(t.mode==="light"||t.mode==="system"&&t.systemMode==="light")return e("light");if(t.mode==="dark"||t.mode==="system"&&t.systemMode==="dark")return e("dark")}function I1(t){return ky(t,e=>{if(e==="light")return t.lightColorScheme;if(e==="dark")return t.darkColorScheme})}function kc(t,e){if(typeof window>"u")return;let r;try{r=localStorage.getItem(t)||void 0,r||localStorage.setItem(t,e)}catch{}return r||e}function L1(t){const{defaultMode:e="light",defaultLightColorScheme:r,defaultDarkColorScheme:n,supportedColorSchemes:A=[],modeStorageKey:a=ah,colorSchemeStorageKey:i=ih,storageWindow:o=typeof window>"u"?void 0:window}=t,s=A.join(","),l=A.length>1,[u,c]=O.useState(()=>{const v=kc(a,e),y=kc(`${i}-light`,r),b=kc(`${i}-dark`,n);return{mode:v,systemMode:bp(v),lightColorScheme:y,darkColorScheme:b}}),[,d]=O.useState(!1),h=O.useRef(!1);O.useEffect(()=>{l&&d(!0),h.current=!0},[l]);const f=I1(u),p=O.useCallback(v=>{c(y=>{if(v===y.mode)return y;const b=v??e;try{localStorage.setItem(a,b)}catch{}return{...y,mode:b,systemMode:bp(b)}})},[a,e]),g=O.useCallback(v=>{v?typeof v=="string"?v&&!s.includes(v)?console.error(`\`${v}\` does not exist in \`theme.colorSchemes\`.`):c(y=>{const b={...y};return ky(y,E=>{try{localStorage.setItem(`${i}-${E}`,v)}catch{}E==="light"&&(b.lightColorScheme=v),E==="dark"&&(b.darkColorScheme=v)}),b}):c(y=>{const b={...y},E=v.light===null?r:v.light,C=v.dark===null?n:v.dark;if(E)if(!s.includes(E))console.error(`\`${E}\` does not exist in \`theme.colorSchemes\`.`);else{b.lightColorScheme=E;try{localStorage.setItem(`${i}-light`,E)}catch{}}if(C)if(!s.includes(C))console.error(`\`${C}\` does not exist in \`theme.colorSchemes\`.`);else{b.darkColorScheme=C;try{localStorage.setItem(`${i}-dark`,C)}catch{}}return b}):c(y=>{try{localStorage.setItem(`${i}-light`,r),localStorage.setItem(`${i}-dark`,n)}catch{}return{...y,lightColorScheme:r,darkColorScheme:n}})},[s,i,r,n]),m=O.useCallback(v=>{u.mode==="system"&&c(y=>{const b=v!=null&&v.matches?"dark":"light";return y.systemMode===b?y:{...y,systemMode:b}})},[u.mode]),B=O.useRef(m);return B.current=m,O.useEffect(()=>{if(typeof window.matchMedia!="function"||!l)return;const v=(...b)=>B.current(...b),y=window.matchMedia("(prefers-color-scheme: dark)");return y.addListener(v),v(y),()=>{y.removeListener(v)}},[l]),O.useEffect(()=>{if(o&&l){const v=y=>{const b=y.newValue;typeof y.key=="string"&&y.key.startsWith(i)&&(!b||s.match(b))&&(y.key.endsWith("light")&&g({light:b}),y.key.endsWith("dark")&&g({dark:b})),y.key===a&&(!b||["light","dark","system"].includes(b))&&p(b||e)};return o.addEventListener("storage",v),()=>{o.removeEventListener("storage",v)}}},[g,p,a,i,s,e,o,l]),{...u,mode:h.current||!l?u.mode:void 0,systemMode:h.current||!l?u.systemMode:void 0,colorScheme:h.current||!l?f:void 0,setMode:p,setColorScheme:g}}const D1="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function R1(t){const{themeId:e,theme:r={},modeStorageKey:n=ah,colorSchemeStorageKey:A=ih,disableTransitionOnChange:a=!1,defaultColorScheme:i,resolveTheme:o}=t,s={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},l=O.createContext(void 0),u=()=>O.useContext(l)||s;function c(p){var Ce,we,_,$,D;const{children:g,theme:m,modeStorageKey:B=n,colorSchemeStorageKey:v=A,disableTransitionOnChange:y=a,storageWindow:b=typeof window>"u"?void 0:window,documentNode:E=typeof document>"u"?void 0:document,colorSchemeNode:C=typeof document>"u"?void 0:document.documentElement,disableNestedContext:F=!1,disableStyleSheetGeneration:w=!1}=p,x=O.useRef(!1),Q=Ah(),S=O.useContext(l),T=!!S&&!F,U=O.useMemo(()=>m||(typeof r=="function"?r():r),[m]),L=U[e],{colorSchemes:R={},components:M={},cssVarPrefix:H,...k}=L||U,N=Object.keys(R).filter(G=>!!R[G]).join(","),P=O.useMemo(()=>N.split(","),[N]),K=typeof i=="string"?i:i.light,W=typeof i=="string"?i:i.dark,X=R[K]&&R[W]?"system":((we=(Ce=R[k.defaultColorScheme])==null?void 0:Ce.palette)==null?void 0:we.mode)||((_=k.palette)==null?void 0:_.mode),{mode:Z,setMode:Ae,systemMode:ie,lightColorScheme:re,darkColorScheme:z,colorScheme:q,setColorScheme:ee}=L1({supportedColorSchemes:P,defaultLightColorScheme:K,defaultDarkColorScheme:W,modeStorageKey:B,colorSchemeStorageKey:v,defaultMode:X,storageWindow:b});let se=Z,te=q;T&&(se=S.mode,te=S.colorScheme);const ae=te||k.defaultColorScheme,le=(($=k.generateThemeVars)==null?void 0:$.call(k))||k.vars,ve={...k,components:M,colorSchemes:R,cssVarPrefix:H,vars:le};if(typeof ve.generateSpacing=="function"&&(ve.spacing=ve.generateSpacing()),ae){const G=R[ae];G&&typeof G=="object"&&Object.keys(G).forEach(J=>{G[J]&&typeof G[J]=="object"?ve[J]={...ve[J],...G[J]}:ve[J]=G[J]})}const ge=k.colorSchemeSelector;O.useEffect(()=>{if(te&&C&&ge&&ge!=="media"){const G=ge;let J=ge;if(G==="class"&&(J=".%s"),G==="data"&&(J="[data-%s]"),G!=null&&G.startsWith("data-")&&!G.includes("%s")&&(J=`[${G}="%s"]`),J.startsWith("."))C.classList.remove(...P.map(j=>J.substring(1).replace("%s",j))),C.classList.add(J.substring(1).replace("%s",te));else{const j=J.replace("%s",te).match(/\[([^\]]+)\]/);if(j){const[ne,ce]=j[1].split("=");ce||P.forEach(Y=>{C.removeAttribute(ne.replace(te,Y))}),C.setAttribute(ne,ce?ce.replace(/"|'/g,""):"")}else C.setAttribute(J,te)}}},[te,ge,C,P]),O.useEffect(()=>{let G;if(y&&x.current&&E){const J=E.createElement("style");J.appendChild(E.createTextNode(D1)),E.head.appendChild(J),window.getComputedStyle(E.body),G=setTimeout(()=>{E.head.removeChild(J)},1)}return()=>{clearTimeout(G)}},[te,y,E]),O.useEffect(()=>(x.current=!0,()=>{x.current=!1}),[]);const he=O.useMemo(()=>({allColorSchemes:P,colorScheme:te,darkColorScheme:z,lightColorScheme:re,mode:se,setColorScheme:ee,setMode:Ae,systemMode:ie}),[P,te,z,re,se,ee,Ae,ie]);let ye=!0;(w||k.cssVariables===!1||T&&(Q==null?void 0:Q.cssVarPrefix)===H)&&(ye=!1);const Se=I.jsxs(O.Fragment,{children:[I.jsx(Hy,{themeId:L?e:void 0,theme:o?o(ve):ve,children:g}),ye&&I.jsx(py,{styles:((D=ve.generateStyleSheets)==null?void 0:D.call(ve))||[]})]});return T?Se:I.jsx(l.Provider,{value:he,children:Se})}const d=typeof i=="string"?i:i.light,h=typeof i=="string"?i:i.dark;return{CssVarsProvider:c,useColorScheme:u,getInitColorSchemeScript:p=>T1({colorSchemeStorageKey:A,defaultLightColorScheme:d,defaultDarkColorScheme:h,modeStorageKey:n,...p})}}function M1(t=""){function e(...n){if(!n.length)return"";const A=n[0];return typeof A=="string"&&!A.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${t?`${t}-`:""}${A}${e(...n.slice(1))})`:`, ${A}`}return(n,...A)=>`var(--${t?`${t}-`:""}${n}${e(...A)})`}const Ep=(t,e,r,n=[])=>{let A=t;e.forEach((a,i)=>{i===e.length-1?Array.isArray(A)?A[Number(a)]=r:A&&typeof A=="object"&&(A[a]=r):A&&typeof A=="object"&&(A[a]||(A[a]=n.includes(a)?[]:{}),A=A[a])})},O1=(t,e,r)=>{function n(A,a=[],i=[]){Object.entries(A).forEach(([o,s])=>{(!r||r&&!r([...a,o]))&&s!=null&&(typeof s=="object"&&Object.keys(s).length>0?n(s,[...a,o],Array.isArray(s)?[...i,o]:i):e([...a,o],s,i))})}n(t)},H1=(t,e)=>typeof e=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(n=>t.includes(n))||t[t.length-1].toLowerCase().includes("opacity")?e:`${e}px`:e;function Pc(t,e){const{prefix:r,shouldSkipGeneratingVar:n}=e||{},A={},a={},i={};return O1(t,(o,s,l)=>{if((typeof s=="string"||typeof s=="number")&&(!n||!n(o,s))){const u=`--${r?`${r}-`:""}${o.join("-")}`,c=H1(o,s);Object.assign(A,{[u]:c}),Ep(a,o,`var(${u})`,l),Ep(i,o,`var(${u}, ${c})`,l)}},o=>o[0]==="vars"),{css:A,vars:a,varsWithDefaults:i}}function k1(t,e={}){const{getSelector:r=g,disableCssColorScheme:n,colorSchemeSelector:A}=e,{colorSchemes:a={},components:i,defaultColorScheme:o="light",...s}=t,{vars:l,css:u,varsWithDefaults:c}=Pc(s,e);let d=c;const h={},{[o]:f,...p}=a;if(Object.entries(p||{}).forEach(([v,y])=>{const{vars:b,css:E,varsWithDefaults:C}=Pc(y,e);d=$t(d,C),h[v]={css:E,vars:b}}),f){const{css:v,vars:y,varsWithDefaults:b}=Pc(f,e);d=$t(d,b),h[o]={css:v,vars:y}}function g(v,y){var E,C;let b=A;if(A==="class"&&(b=".%s"),A==="data"&&(b="[data-%s]"),A!=null&&A.startsWith("data-")&&!A.includes("%s")&&(b=`[${A}="%s"]`),v){if(b==="media")return t.defaultColorScheme===v?":root":{[`@media (prefers-color-scheme: ${((C=(E=a[v])==null?void 0:E.palette)==null?void 0:C.mode)||v})`]:{":root":y}};if(b)return t.defaultColorScheme===v?`:root, ${b.replace("%s",String(v))}`:b.replace("%s",String(v))}return":root"}return{vars:d,generateThemeVars:()=>{let v={...l};return Object.entries(h).forEach(([,{vars:y}])=>{v=$t(v,y)}),v},generateStyleSheets:()=>{var F,w;const v=[],y=t.defaultColorScheme||"light";function b(x,Q){Object.keys(Q).length&&v.push(typeof x=="string"?{[x]:{...Q}}:x)}b(r(void 0,{...u}),u);const{[y]:E,...C}=h;if(E){const{css:x}=E,Q=(w=(F=a[y])==null?void 0:F.palette)==null?void 0:w.mode,S=!n&&Q?{colorScheme:Q,...x}:{...x};b(r(y,{...S}),S)}return Object.entries(C).forEach(([x,{css:Q}])=>{var U,L;const S=(L=(U=a[x])==null?void 0:U.palette)==null?void 0:L.mode,T=!n&&S?{colorScheme:S,...Q}:{...Q};b(r(x,{...T}),T)}),v}}}function P1(t){return function(r){return t==="media"?`@media (prefers-color-scheme: ${r})`:t?t.startsWith("data-")&&!t.includes("%s")?`[${t}="${r}"] &`:t==="class"?`.${r} &`:t==="data"?`[data-${r}] &`:`${t.replace("%s",r)} &`:"&"}}const N1=(t,e)=>t.filter(r=>e.includes(r)),ni=(t,e,r)=>{const n=t.keys[0];Array.isArray(e)?e.forEach((A,a)=>{r((i,o)=>{a<=t.keys.length-1&&(a===0?Object.assign(i,o):i[t.up(t.keys[a])]=o)},A)}):e&&typeof e=="object"?(Object.keys(e).length>t.keys.length?t.keys:N1(t.keys,Object.keys(e))).forEach(a=>{if(t.keys.includes(a)){const i=e[a];i!==void 0&&r((o,s)=>{n===a?Object.assign(o,s):o[t.up(a)]=s},i)}}):(typeof e=="number"||typeof e=="string")&&r((A,a)=>{Object.assign(A,a)},e)};function On(t){return t?`Level${t}`:""}function oh(t){return t.unstable_level>0&&t.container}function K1(t){return function(r){return`var(--Grid-${r}Spacing${On(t.unstable_level)})`}}function $u(t){return function(r){return t.unstable_level===0?`var(--Grid-${r}Spacing)`:`var(--Grid-${r}Spacing${On(t.unstable_level-1)})`}}function Ra(t){return t.unstable_level===0?"var(--Grid-columns)":`var(--Grid-columns${On(t.unstable_level-1)})`}const G1=({theme:t,ownerState:e})=>{const r=$u(e),n={};return ni(t.breakpoints,e.size,(A,a)=>{let i={};a==="grow"&&(i={flexBasis:0,flexGrow:1,maxWidth:"100%"}),a==="auto"&&(i={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),typeof a=="number"&&(i={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${a} / ${Ra(e)} - (${Ra(e)} - ${a}) * (${r("column")} / ${Ra(e)}))`}),A(n,i)}),n},V1=({theme:t,ownerState:e})=>{const r=$u(e),n={};return ni(t.breakpoints,e.offset,(A,a)=>{let i={};a==="auto"&&(i={marginLeft:"auto"}),typeof a=="number"&&(i={marginLeft:a===0?"0px":`calc(100% * ${a} / ${Ra(e)} + ${r("column")} * ${a} / ${Ra(e)})`}),A(n,i)}),n},$1=({theme:t,ownerState:e})=>{if(!e.container)return{};const r=oh(e)?{[`--Grid-columns${On(e.unstable_level)}`]:Ra(e)}:{"--Grid-columns":12};return ni(t.breakpoints,e.columns,(n,A)=>{n(r,{[`--Grid-columns${On(e.unstable_level)}`]:A})}),r},z1=({theme:t,ownerState:e})=>{if(!e.container)return{};const r=$u(e),n=oh(e)?{[`--Grid-rowSpacing${On(e.unstable_level)}`]:r("row")}:{};return ni(t.breakpoints,e.rowSpacing,(A,a)=>{var i;A(n,{[`--Grid-rowSpacing${On(e.unstable_level)}`]:typeof a=="string"?a:(i=t.spacing)==null?void 0:i.call(t,a)})}),n},W1=({theme:t,ownerState:e})=>{if(!e.container)return{};const r=$u(e),n=oh(e)?{[`--Grid-columnSpacing${On(e.unstable_level)}`]:r("column")}:{};return ni(t.breakpoints,e.columnSpacing,(A,a)=>{var i;A(n,{[`--Grid-columnSpacing${On(e.unstable_level)}`]:typeof a=="string"?a:(i=t.spacing)==null?void 0:i.call(t,a)})}),n},_1=({theme:t,ownerState:e})=>{if(!e.container)return{};const r={};return ni(t.breakpoints,e.direction,(n,A)=>{n(r,{flexDirection:A})}),r},X1=({ownerState:t})=>{const e=K1(t);return{minWidth:0,boxSizing:"border-box",...t.container&&{display:"flex",flexWrap:"wrap",...t.wrap&&t.wrap!=="wrap"&&{flexWrap:t.wrap},gap:`${e("row")} ${e("column")}`}}},Y1=t=>{const e=[];return Object.entries(t).forEach(([r,n])=>{n!==!1&&n!==void 0&&e.push(`grid-${r}-${String(n)}`)}),e},j1=(t,e="xs")=>{function r(n){return n===void 0?!1:typeof n=="string"&&!Number.isNaN(Number(n))||typeof n=="number"&&n>0}if(r(t))return[`spacing-${e}-${String(t)}`];if(typeof t=="object"&&!Array.isArray(t)){const n=[];return Object.entries(t).forEach(([A,a])=>{r(a)&&n.push(`spacing-${A}-${String(a)}`)}),n}return[]},q1=t=>t===void 0?[]:typeof t=="object"?Object.entries(t).map(([e,r])=>`direction-${e}-${r}`):[`direction-xs-${String(t)}`],J1=$o(),Z1=Qy("div",{name:"MuiGrid",slot:"Root",overridesResolver:(t,e)=>e.root});function ex(t){return rh({props:t,name:"MuiGrid",defaultTheme:J1})}function tx(t={}){const{createStyledComponent:e=Z1,useThemeProps:r=ex,componentName:n="MuiGrid"}=t,A=(s,l)=>{const{container:u,direction:c,spacing:d,wrap:h,size:f}=s,p={root:["root",u&&"container",h!=="wrap"&&`wrap-xs-${String(h)}`,...q1(c),...Y1(f),...u?j1(d,l.breakpoints.keys[0]):[]]};return Ke(p,g=>Pe(n,g),{})};function a(s,l,u=()=>!0){const c={};return s===null||(Array.isArray(s)?s.forEach((d,h)=>{d!==null&&u(d)&&l.keys[h]&&(c[l.keys[h]]=d)}):typeof s=="object"?Object.keys(s).forEach(d=>{const h=s[d];h!=null&&u(h)&&(c[d]=h)}):c[l.keys[0]]=s),c}const i=e($1,W1,z1,G1,_1,X1,V1),o=O.forwardRef(function(l,u){const c=zo(),d=r(l),h=Wo(d),{className:f,children:p,columns:g=12,container:m=!1,component:B="div",direction:v="row",wrap:y="wrap",size:b={},offset:E={},spacing:C=0,rowSpacing:F=C,columnSpacing:w=C,unstable_level:x=0,...Q}=h,S=a(b,c.breakpoints,N=>N!==!1),T=a(E,c.breakpoints),U=l.columns??(x?void 0:g),L=l.spacing??(x?void 0:C),R=l.rowSpacing??l.spacing??(x?void 0:F),M=l.columnSpacing??l.spacing??(x?void 0:w),H={...h,level:x,columns:U,container:m,direction:v,wrap:y,spacing:L,rowSpacing:R,columnSpacing:M,size:S,offset:T},k=A(H,c);return I.jsx(i,{ref:u,as:B,ownerState:H,className:xe(k.root,f),...Q,children:O.Children.map(p,N=>{var P;return O.isValidElement(N)&&hl(N,["Grid"])?O.cloneElement(N,{unstable_level:((P=N.props)==null?void 0:P.unstable_level)??x+1}):N})})});return o.muiName="Grid",o}const rx=$o(),nx=Qy("div",{name:"MuiStack",slot:"Root",overridesResolver:(t,e)=>e.root});function Ax(t){return rh({props:t,name:"MuiStack",defaultTheme:rx})}function ax(t,e){const r=O.Children.toArray(t).filter(Boolean);return r.reduce((n,A,a)=>(n.push(A),a({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[t],ox=({ownerState:t,theme:e})=>{let r={display:"flex",flexDirection:"column",...gr({theme:e},RA({values:t.direction,breakpoints:e.breakpoints.values}),n=>({flexDirection:n}))};if(t.spacing){const n=Fu(e),A=Object.keys(e.breakpoints.values).reduce((s,l)=>((typeof t.spacing=="object"&&t.spacing[l]!=null||typeof t.direction=="object"&&t.direction[l]!=null)&&(s[l]=!0),s),{}),a=RA({values:t.direction,base:A}),i=RA({values:t.spacing,base:A});typeof a=="object"&&Object.keys(a).forEach((s,l,u)=>{if(!a[s]){const d=l>0?a[u[l-1]]:"column";a[s]=d}}),r=$t(r,gr({theme:e},i,(s,l)=>t.useFlexGap?{gap:kA(n,s)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${ix(l?a[l]:t.direction)}`]:kA(n,s)}}))}return r=sE(e.breakpoints,r),r};function sx(t={}){const{createStyledComponent:e=nx,useThemeProps:r=Ax,componentName:n="MuiStack"}=t,A=()=>Ke({root:["root"]},s=>Pe(n,s),{}),a=e(ox);return O.forwardRef(function(s,l){const u=r(s),c=Wo(u),{component:d="div",direction:h="column",spacing:f=0,divider:p,children:g,className:m,useFlexGap:B=!1,...v}=c,y={direction:h,spacing:f,useFlexGap:B},b=A();return I.jsx(a,{as:d,ownerState:y,ref:l,className:xe(b.root,m),...v,children:p?ax(g,p):g})})}const xp={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:go.white,default:go.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Nc={text:{primary:go.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:go.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function Fp(t,e,r,n){const A=n.light||n,a=n.dark||n*1.5;t[e]||(t.hasOwnProperty(r)?t[e]=t[r]:e==="light"?t.light=$a(t.main,A):e==="dark"&&(t.dark=Va(t.main,a)))}function lx(t="light"){return t==="dark"?{main:na[200],light:na[50],dark:na[400]}:{main:na[700],light:na[400],dark:na[800]}}function ux(t="light"){return t==="dark"?{main:ra[200],light:ra[50],dark:ra[400]}:{main:ra[500],light:ra[300],dark:ra[700]}}function cx(t="light"){return t==="dark"?{main:ta[500],light:ta[300],dark:ta[700]}:{main:ta[700],light:ta[400],dark:ta[800]}}function fx(t="light"){return t==="dark"?{main:Aa[400],light:Aa[300],dark:Aa[700]}:{main:Aa[700],light:Aa[500],dark:Aa[900]}}function dx(t="light"){return t==="dark"?{main:aa[400],light:aa[300],dark:aa[700]}:{main:aa[800],light:aa[500],dark:aa[900]}}function hx(t="light"){return t==="dark"?{main:Bi[400],light:Bi[300],dark:Bi[700]}:{main:"#ed6c02",light:Bi[500],dark:Bi[900]}}function sh(t){const{mode:e="light",contrastThreshold:r=3,tonalOffset:n=.2,...A}=t,a=t.primary||lx(e),i=t.secondary||ux(e),o=t.error||cx(e),s=t.info||fx(e),l=t.success||dx(e),u=t.warning||hx(e);function c(p){return d1(p,Nc.text.primary)>=r?Nc.text.primary:xp.text.primary}const d=({color:p,name:g,mainShade:m=500,lightShade:B=300,darkShade:v=700})=>{if(p={...p},!p.main&&p[m]&&(p.main=p[m]),!p.hasOwnProperty("main"))throw new Error(Mn(11,g?` (${g})`:"",m));if(typeof p.main!="string")throw new Error(Mn(12,g?` (${g})`:"",JSON.stringify(p.main)));return Fp(p,"light",B,n),Fp(p,"dark",v,n),p.contrastText||(p.contrastText=c(p.main)),p},h={dark:Nc,light:xp};return $t({common:{...go},mode:e,primary:d({color:a,name:"primary"}),secondary:d({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:d({color:o,name:"error"}),warning:d({color:u,name:"warning"}),info:d({color:s,name:"info"}),success:d({color:l,name:"success"}),grey:$C,contrastThreshold:r,getContrastText:c,augmentColor:d,tonalOffset:n,...h[e]},A)}function px(t){const e={};return Object.entries(t).forEach(n=>{const[A,a]=n;typeof a=="object"&&(e[A]=`${a.fontStyle?`${a.fontStyle} `:""}${a.fontVariant?`${a.fontVariant} `:""}${a.fontWeight?`${a.fontWeight} `:""}${a.fontStretch?`${a.fontStretch} `:""}${a.fontSize||""}${a.lineHeight?`/${a.lineHeight} `:""}${a.fontFamily||""}`)}),e}function gx(t,e){return{toolbar:{minHeight:56,[t.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[t.up("sm")]:{minHeight:64}},...e}}function vx(t){return Math.round(t*1e5)/1e5}const Qp={textTransform:"uppercase"},Sp='"Roboto", "Helvetica", "Arial", sans-serif';function Py(t,e){const{fontFamily:r=Sp,fontSize:n=14,fontWeightLight:A=300,fontWeightRegular:a=400,fontWeightMedium:i=500,fontWeightBold:o=700,htmlFontSize:s=16,allVariants:l,pxToRem:u,...c}=typeof e=="function"?e(t):e,d=n/14,h=u||(g=>`${g/s*d}rem`),f=(g,m,B,v,y)=>({fontFamily:r,fontWeight:g,fontSize:h(m),lineHeight:B,...r===Sp?{letterSpacing:`${vx(v/m)}em`}:{},...y,...l}),p={h1:f(A,96,1.167,-1.5),h2:f(A,60,1.2,-.5),h3:f(a,48,1.167,0),h4:f(a,34,1.235,.25),h5:f(a,24,1.334,0),h6:f(i,20,1.6,.15),subtitle1:f(a,16,1.75,.15),subtitle2:f(i,14,1.57,.1),body1:f(a,16,1.5,.15),body2:f(a,14,1.43,.15),button:f(i,14,1.75,.4,Qp),caption:f(a,12,1.66,.4),overline:f(a,12,2.66,1,Qp),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return $t({htmlFontSize:s,pxToRem:h,fontFamily:r,fontSize:n,fontWeightLight:A,fontWeightRegular:a,fontWeightMedium:i,fontWeightBold:o,...p},c,{clone:!1})}const mx=.2,yx=.14,Bx=.12;function mt(...t){return[`${t[0]}px ${t[1]}px ${t[2]}px ${t[3]}px rgba(0,0,0,${mx})`,`${t[4]}px ${t[5]}px ${t[6]}px ${t[7]}px rgba(0,0,0,${yx})`,`${t[8]}px ${t[9]}px ${t[10]}px ${t[11]}px rgba(0,0,0,${Bx})`].join(",")}const wx=["none",mt(0,2,1,-1,0,1,1,0,0,1,3,0),mt(0,3,1,-2,0,2,2,0,0,1,5,0),mt(0,3,3,-2,0,3,4,0,0,1,8,0),mt(0,2,4,-1,0,4,5,0,0,1,10,0),mt(0,3,5,-1,0,5,8,0,0,1,14,0),mt(0,3,5,-1,0,6,10,0,0,1,18,0),mt(0,4,5,-2,0,7,10,1,0,2,16,1),mt(0,5,5,-3,0,8,10,1,0,3,14,2),mt(0,5,6,-3,0,9,12,1,0,3,16,2),mt(0,6,6,-3,0,10,14,1,0,4,18,3),mt(0,6,7,-4,0,11,15,1,0,4,20,3),mt(0,7,8,-4,0,12,17,2,0,5,22,4),mt(0,7,8,-4,0,13,19,2,0,5,24,4),mt(0,7,9,-4,0,14,21,2,0,5,26,4),mt(0,8,9,-5,0,15,22,2,0,6,28,5),mt(0,8,10,-5,0,16,24,2,0,6,30,5),mt(0,8,11,-5,0,17,26,2,0,6,32,5),mt(0,9,11,-5,0,18,28,2,0,7,34,6),mt(0,9,12,-6,0,19,29,2,0,7,36,6),mt(0,10,13,-6,0,20,31,3,0,8,38,7),mt(0,10,13,-6,0,21,33,3,0,8,40,7),mt(0,10,14,-6,0,22,35,3,0,8,42,7),mt(0,11,14,-7,0,23,36,3,0,9,44,8),mt(0,11,15,-7,0,24,38,3,0,9,46,8)],Cx={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},bx={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Up(t){return`${Math.round(t)}ms`}function Ex(t){if(!t)return 0;const e=t/36;return Math.min(Math.round((4+15*e**.25+e/5)*10),3e3)}function xx(t){const e={...Cx,...t.easing},r={...bx,...t.duration};return{getAutoHeightDuration:Ex,create:(A=["all"],a={})=>{const{duration:i=r.standard,easing:o=e.easeInOut,delay:s=0,...l}=a;return(Array.isArray(A)?A:[A]).map(u=>`${u} ${typeof i=="string"?i:Up(i)} ${o} ${typeof s=="string"?s:Up(s)}`).join(",")},...t,easing:e,duration:r}}const Fx={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function $f(t={},...e){const{breakpoints:r,mixins:n={},spacing:A,palette:a={},transitions:i={},typography:o={},shape:s,...l}=t;if(t.vars)throw new Error(Mn(20));const u=sh(a),c=$o(t);let d=$t(c,{mixins:gx(c.breakpoints,n),palette:u,shadows:wx.slice(),typography:Py(u,o),transitions:xx(i),zIndex:{...Fx}});return d=$t(d,l),d=e.reduce((h,f)=>$t(h,f),d),d.unstable_sxConfig={...Vo,...l==null?void 0:l.unstable_sxConfig},d.unstable_sx=function(f){return YA({sx:f,theme:this})},d}function zf(t){let e;return t<1?e=5.11916*t**2:e=4.5*Math.log(t+1)+2,Math.round(e*10)/1e3}const Qx=[...Array(25)].map((t,e)=>{if(e===0)return"none";const r=zf(e);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function Ny(t){return{inputPlaceholder:t==="dark"?.5:.42,inputUnderline:t==="dark"?.7:.42,switchTrackDisabled:t==="dark"?.2:.12,switchTrack:t==="dark"?.3:.38}}function Ky(t){return t==="dark"?Qx:[]}function Sx(t){const{palette:e={mode:"light"},opacity:r,overlays:n,...A}=t,a=sh(e);return{palette:a,opacity:{...Ny(a.mode),...r},overlays:n||Ky(a.mode),...A}}function Ux(t){var e;return!!t[0].match(/(cssVarPrefix|colorSchemeSelector|typography|mixins|breakpoints|direction|transitions)/)||!!t[0].match(/sxConfig$/)||t[0]==="palette"&&!!((e=t[1])!=null&&e.match(/(mode|contrastThreshold|tonalOffset)/))}const Tx=t=>[...[...Array(25)].map((e,r)=>`--${t?`${t}-`:""}overlays-${r}`),`--${t?`${t}-`:""}palette-AppBar-darkBg`,`--${t?`${t}-`:""}palette-AppBar-darkColor`],Ix=t=>(e,r)=>{const n=t.colorSchemeSelector;let A=n;if(n==="class"&&(A=".%s"),n==="data"&&(A="[data-%s]"),n!=null&&n.startsWith("data-")&&!n.includes("%s")&&(A=`[${n}="%s"]`),t.defaultColorScheme===e){if(e==="dark"){const a={};return Tx(t.cssVarPrefix).forEach(i=>{a[i]=r[i],delete r[i]}),A==="media"?{":root":r,"@media (prefers-color-scheme: dark)":{":root":a}}:A?{[A.replace("%s",e)]:a,[`:root, ${A.replace("%s",e)}`]:r}:{":root":{...r,...a}}}if(A&&A!=="media")return`:root, ${A.replace("%s",String(e))}`}else if(e){if(A==="media")return{[`@media (prefers-color-scheme: ${String(e)})`]:{":root":r}};if(A)return A.replace("%s",String(e))}return":root"};function Lx(t){return pn(t)||typeof t>"u"||typeof t=="string"||typeof t=="boolean"||typeof t=="number"||Array.isArray(t)}function Dx(t={}){const e={...t};function r(n){const A=Object.entries(n);for(let a=0;a{if(e==="light")return t.lightColorScheme;if(e==="dark")return t.darkColorScheme})}function kc(t,e){if(typeof window>"u")return;let r;try{r=localStorage.getItem(t)||void 0,r||localStorage.setItem(t,e)}catch{}return r||e}function LE(t){const{defaultMode:e="light",defaultLightColorScheme:r,defaultDarkColorScheme:n,supportedColorSchemes:A=[],modeStorageKey:a=ah,colorSchemeStorageKey:i=ih,storageWindow:o=typeof window>"u"?void 0:window}=t,s=A.join(","),l=A.length>1,[u,c]=O.useState(()=>{const v=kc(a,e),B=kc(`${i}-light`,r),b=kc(`${i}-dark`,n);return{mode:v,systemMode:bp(v),lightColorScheme:B,darkColorScheme:b}}),[,d]=O.useState(!1),h=O.useRef(!1);O.useEffect(()=>{l&&d(!0),h.current=!0},[l]);const f=IE(u),p=O.useCallback(v=>{c(B=>{if(v===B.mode)return B;const b=v??e;try{localStorage.setItem(a,b)}catch{}return{...B,mode:b,systemMode:bp(b)}})},[a,e]),g=O.useCallback(v=>{v?typeof v=="string"?v&&!s.includes(v)?console.error(`\`${v}\` does not exist in \`theme.colorSchemes\`.`):c(B=>{const b={...B};return ky(B,E=>{try{localStorage.setItem(`${i}-${E}`,v)}catch{}E==="light"&&(b.lightColorScheme=v),E==="dark"&&(b.darkColorScheme=v)}),b}):c(B=>{const b={...B},E=v.light===null?r:v.light,C=v.dark===null?n:v.dark;if(E)if(!s.includes(E))console.error(`\`${E}\` does not exist in \`theme.colorSchemes\`.`);else{b.lightColorScheme=E;try{localStorage.setItem(`${i}-light`,E)}catch{}}if(C)if(!s.includes(C))console.error(`\`${C}\` does not exist in \`theme.colorSchemes\`.`);else{b.darkColorScheme=C;try{localStorage.setItem(`${i}-dark`,C)}catch{}}return b}):c(B=>{try{localStorage.setItem(`${i}-light`,r),localStorage.setItem(`${i}-dark`,n)}catch{}return{...B,lightColorScheme:r,darkColorScheme:n}})},[s,i,r,n]),m=O.useCallback(v=>{u.mode==="system"&&c(B=>{const b=v!=null&&v.matches?"dark":"light";return B.systemMode===b?B:{...B,systemMode:b}})},[u.mode]),w=O.useRef(m);return w.current=m,O.useEffect(()=>{if(typeof window.matchMedia!="function"||!l)return;const v=(...b)=>w.current(...b),B=window.matchMedia("(prefers-color-scheme: dark)");return B.addListener(v),v(B),()=>{B.removeListener(v)}},[l]),O.useEffect(()=>{if(o&&l){const v=B=>{const b=B.newValue;typeof B.key=="string"&&B.key.startsWith(i)&&(!b||s.match(b))&&(B.key.endsWith("light")&&g({light:b}),B.key.endsWith("dark")&&g({dark:b})),B.key===a&&(!b||["light","dark","system"].includes(b))&&p(b||e)};return o.addEventListener("storage",v),()=>{o.removeEventListener("storage",v)}}},[g,p,a,i,s,e,o,l]),{...u,mode:h.current||!l?u.mode:void 0,systemMode:h.current||!l?u.systemMode:void 0,colorScheme:h.current||!l?f:void 0,setMode:p,setColorScheme:g}}const DE="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function RE(t){const{themeId:e,theme:r={},modeStorageKey:n=ah,colorSchemeStorageKey:A=ih,disableTransitionOnChange:a=!1,defaultColorScheme:i,resolveTheme:o}=t,s={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},l=O.createContext(void 0),u=()=>O.useContext(l)||s;function c(p){var Ce,we,_,$,D;const{children:g,theme:m,modeStorageKey:w=n,colorSchemeStorageKey:v=A,disableTransitionOnChange:B=a,storageWindow:b=typeof window>"u"?void 0:window,documentNode:E=typeof document>"u"?void 0:document,colorSchemeNode:C=typeof document>"u"?void 0:document.documentElement,disableNestedContext:F=!1,disableStyleSheetGeneration:y=!1}=p,x=O.useRef(!1),Q=Ah(),S=O.useContext(l),T=!!S&&!F,U=O.useMemo(()=>m||(typeof r=="function"?r():r),[m]),L=U[e],{colorSchemes:R={},components:M={},cssVarPrefix:H,...k}=L||U,N=Object.keys(R).filter(G=>!!R[G]).join(","),P=O.useMemo(()=>N.split(","),[N]),K=typeof i=="string"?i:i.light,W=typeof i=="string"?i:i.dark,X=R[K]&&R[W]?"system":((we=(Ce=R[k.defaultColorScheme])==null?void 0:Ce.palette)==null?void 0:we.mode)||((_=k.palette)==null?void 0:_.mode),{mode:Z,setMode:Ae,systemMode:ie,lightColorScheme:re,darkColorScheme:z,colorScheme:q,setColorScheme:ee}=LE({supportedColorSchemes:P,defaultLightColorScheme:K,defaultDarkColorScheme:W,modeStorageKey:w,colorSchemeStorageKey:v,defaultMode:X,storageWindow:b});let se=Z,te=q;T&&(se=S.mode,te=S.colorScheme);const ae=te||k.defaultColorScheme,le=(($=k.generateThemeVars)==null?void 0:$.call(k))||k.vars,ve={...k,components:M,colorSchemes:R,cssVarPrefix:H,vars:le};if(typeof ve.generateSpacing=="function"&&(ve.spacing=ve.generateSpacing()),ae){const G=R[ae];G&&typeof G=="object"&&Object.keys(G).forEach(J=>{G[J]&&typeof G[J]=="object"?ve[J]={...ve[J],...G[J]}:ve[J]=G[J]})}const ge=k.colorSchemeSelector;O.useEffect(()=>{if(te&&C&&ge&&ge!=="media"){const G=ge;let J=ge;if(G==="class"&&(J=".%s"),G==="data"&&(J="[data-%s]"),G!=null&&G.startsWith("data-")&&!G.includes("%s")&&(J=`[${G}="%s"]`),J.startsWith("."))C.classList.remove(...P.map(j=>J.substring(1).replace("%s",j))),C.classList.add(J.substring(1).replace("%s",te));else{const j=J.replace("%s",te).match(/\[([^\]]+)\]/);if(j){const[ne,ce]=j[1].split("=");ce||P.forEach(Y=>{C.removeAttribute(ne.replace(te,Y))}),C.setAttribute(ne,ce?ce.replace(/"|'/g,""):"")}else C.setAttribute(J,te)}}},[te,ge,C,P]),O.useEffect(()=>{let G;if(B&&x.current&&E){const J=E.createElement("style");J.appendChild(E.createTextNode(DE)),E.head.appendChild(J),window.getComputedStyle(E.body),G=setTimeout(()=>{E.head.removeChild(J)},1)}return()=>{clearTimeout(G)}},[te,B,E]),O.useEffect(()=>(x.current=!0,()=>{x.current=!1}),[]);const he=O.useMemo(()=>({allColorSchemes:P,colorScheme:te,darkColorScheme:z,lightColorScheme:re,mode:se,setColorScheme:ee,setMode:Ae,systemMode:ie}),[P,te,z,re,se,ee,Ae,ie]);let ye=!0;(y||k.cssVariables===!1||T&&(Q==null?void 0:Q.cssVarPrefix)===H)&&(ye=!1);const Se=I.jsxs(O.Fragment,{children:[I.jsx(Hy,{themeId:L?e:void 0,theme:o?o(ve):ve,children:g}),ye&&I.jsx(py,{styles:((D=ve.generateStyleSheets)==null?void 0:D.call(ve))||[]})]});return T?Se:I.jsx(l.Provider,{value:he,children:Se})}const d=typeof i=="string"?i:i.light,h=typeof i=="string"?i:i.dark;return{CssVarsProvider:c,useColorScheme:u,getInitColorSchemeScript:p=>TE({colorSchemeStorageKey:A,defaultLightColorScheme:d,defaultDarkColorScheme:h,modeStorageKey:n,...p})}}function ME(t=""){function e(...n){if(!n.length)return"";const A=n[0];return typeof A=="string"&&!A.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${t?`${t}-`:""}${A}${e(...n.slice(1))})`:`, ${A}`}return(n,...A)=>`var(--${t?`${t}-`:""}${n}${e(...A)})`}const Ep=(t,e,r,n=[])=>{let A=t;e.forEach((a,i)=>{i===e.length-1?Array.isArray(A)?A[Number(a)]=r:A&&typeof A=="object"&&(A[a]=r):A&&typeof A=="object"&&(A[a]||(A[a]=n.includes(a)?[]:{}),A=A[a])})},OE=(t,e,r)=>{function n(A,a=[],i=[]){Object.entries(A).forEach(([o,s])=>{(!r||r&&!r([...a,o]))&&s!=null&&(typeof s=="object"&&Object.keys(s).length>0?n(s,[...a,o],Array.isArray(s)?[...i,o]:i):e([...a,o],s,i))})}n(t)},HE=(t,e)=>typeof e=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(n=>t.includes(n))||t[t.length-1].toLowerCase().includes("opacity")?e:`${e}px`:e;function Pc(t,e){const{prefix:r,shouldSkipGeneratingVar:n}=e||{},A={},a={},i={};return OE(t,(o,s,l)=>{if((typeof s=="string"||typeof s=="number")&&(!n||!n(o,s))){const u=`--${r?`${r}-`:""}${o.join("-")}`,c=HE(o,s);Object.assign(A,{[u]:c}),Ep(a,o,`var(${u})`,l),Ep(i,o,`var(${u}, ${c})`,l)}},o=>o[0]==="vars"),{css:A,vars:a,varsWithDefaults:i}}function kE(t,e={}){const{getSelector:r=g,disableCssColorScheme:n,colorSchemeSelector:A}=e,{colorSchemes:a={},components:i,defaultColorScheme:o="light",...s}=t,{vars:l,css:u,varsWithDefaults:c}=Pc(s,e);let d=c;const h={},{[o]:f,...p}=a;if(Object.entries(p||{}).forEach(([v,B])=>{const{vars:b,css:E,varsWithDefaults:C}=Pc(B,e);d=$t(d,C),h[v]={css:E,vars:b}}),f){const{css:v,vars:B,varsWithDefaults:b}=Pc(f,e);d=$t(d,b),h[o]={css:v,vars:B}}function g(v,B){var E,C;let b=A;if(A==="class"&&(b=".%s"),A==="data"&&(b="[data-%s]"),A!=null&&A.startsWith("data-")&&!A.includes("%s")&&(b=`[${A}="%s"]`),v){if(b==="media")return t.defaultColorScheme===v?":root":{[`@media (prefers-color-scheme: ${((C=(E=a[v])==null?void 0:E.palette)==null?void 0:C.mode)||v})`]:{":root":B}};if(b)return t.defaultColorScheme===v?`:root, ${b.replace("%s",String(v))}`:b.replace("%s",String(v))}return":root"}return{vars:d,generateThemeVars:()=>{let v={...l};return Object.entries(h).forEach(([,{vars:B}])=>{v=$t(v,B)}),v},generateStyleSheets:()=>{var F,y;const v=[],B=t.defaultColorScheme||"light";function b(x,Q){Object.keys(Q).length&&v.push(typeof x=="string"?{[x]:{...Q}}:x)}b(r(void 0,{...u}),u);const{[B]:E,...C}=h;if(E){const{css:x}=E,Q=(y=(F=a[B])==null?void 0:F.palette)==null?void 0:y.mode,S=!n&&Q?{colorScheme:Q,...x}:{...x};b(r(B,{...S}),S)}return Object.entries(C).forEach(([x,{css:Q}])=>{var U,L;const S=(L=(U=a[x])==null?void 0:U.palette)==null?void 0:L.mode,T=!n&&S?{colorScheme:S,...Q}:{...Q};b(r(x,{...T}),T)}),v}}}function PE(t){return function(r){return t==="media"?`@media (prefers-color-scheme: ${r})`:t?t.startsWith("data-")&&!t.includes("%s")?`[${t}="${r}"] &`:t==="class"?`.${r} &`:t==="data"?`[data-${r}] &`:`${t.replace("%s",r)} &`:"&"}}const NE=(t,e)=>t.filter(r=>e.includes(r)),Ai=(t,e,r)=>{const n=t.keys[0];Array.isArray(e)?e.forEach((A,a)=>{r((i,o)=>{a<=t.keys.length-1&&(a===0?Object.assign(i,o):i[t.up(t.keys[a])]=o)},A)}):e&&typeof e=="object"?(Object.keys(e).length>t.keys.length?t.keys:NE(t.keys,Object.keys(e))).forEach(a=>{if(t.keys.includes(a)){const i=e[a];i!==void 0&&r((o,s)=>{n===a?Object.assign(o,s):o[t.up(a)]=s},i)}}):(typeof e=="number"||typeof e=="string")&&r((A,a)=>{Object.assign(A,a)},e)};function On(t){return t?`Level${t}`:""}function oh(t){return t.unstable_level>0&&t.container}function KE(t){return function(r){return`var(--Grid-${r}Spacing${On(t.unstable_level)})`}}function $u(t){return function(r){return t.unstable_level===0?`var(--Grid-${r}Spacing)`:`var(--Grid-${r}Spacing${On(t.unstable_level-1)})`}}function Ra(t){return t.unstable_level===0?"var(--Grid-columns)":`var(--Grid-columns${On(t.unstable_level-1)})`}const GE=({theme:t,ownerState:e})=>{const r=$u(e),n={};return Ai(t.breakpoints,e.size,(A,a)=>{let i={};a==="grow"&&(i={flexBasis:0,flexGrow:1,maxWidth:"100%"}),a==="auto"&&(i={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),typeof a=="number"&&(i={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${a} / ${Ra(e)} - (${Ra(e)} - ${a}) * (${r("column")} / ${Ra(e)}))`}),A(n,i)}),n},VE=({theme:t,ownerState:e})=>{const r=$u(e),n={};return Ai(t.breakpoints,e.offset,(A,a)=>{let i={};a==="auto"&&(i={marginLeft:"auto"}),typeof a=="number"&&(i={marginLeft:a===0?"0px":`calc(100% * ${a} / ${Ra(e)} + ${r("column")} * ${a} / ${Ra(e)})`}),A(n,i)}),n},$E=({theme:t,ownerState:e})=>{if(!e.container)return{};const r=oh(e)?{[`--Grid-columns${On(e.unstable_level)}`]:Ra(e)}:{"--Grid-columns":12};return Ai(t.breakpoints,e.columns,(n,A)=>{n(r,{[`--Grid-columns${On(e.unstable_level)}`]:A})}),r},zE=({theme:t,ownerState:e})=>{if(!e.container)return{};const r=$u(e),n=oh(e)?{[`--Grid-rowSpacing${On(e.unstable_level)}`]:r("row")}:{};return Ai(t.breakpoints,e.rowSpacing,(A,a)=>{var i;A(n,{[`--Grid-rowSpacing${On(e.unstable_level)}`]:typeof a=="string"?a:(i=t.spacing)==null?void 0:i.call(t,a)})}),n},WE=({theme:t,ownerState:e})=>{if(!e.container)return{};const r=$u(e),n=oh(e)?{[`--Grid-columnSpacing${On(e.unstable_level)}`]:r("column")}:{};return Ai(t.breakpoints,e.columnSpacing,(A,a)=>{var i;A(n,{[`--Grid-columnSpacing${On(e.unstable_level)}`]:typeof a=="string"?a:(i=t.spacing)==null?void 0:i.call(t,a)})}),n},_E=({theme:t,ownerState:e})=>{if(!e.container)return{};const r={};return Ai(t.breakpoints,e.direction,(n,A)=>{n(r,{flexDirection:A})}),r},XE=({ownerState:t})=>{const e=KE(t);return{minWidth:0,boxSizing:"border-box",...t.container&&{display:"flex",flexWrap:"wrap",...t.wrap&&t.wrap!=="wrap"&&{flexWrap:t.wrap},gap:`${e("row")} ${e("column")}`}}},YE=t=>{const e=[];return Object.entries(t).forEach(([r,n])=>{n!==!1&&n!==void 0&&e.push(`grid-${r}-${String(n)}`)}),e},jE=(t,e="xs")=>{function r(n){return n===void 0?!1:typeof n=="string"&&!Number.isNaN(Number(n))||typeof n=="number"&&n>0}if(r(t))return[`spacing-${e}-${String(t)}`];if(typeof t=="object"&&!Array.isArray(t)){const n=[];return Object.entries(t).forEach(([A,a])=>{r(a)&&n.push(`spacing-${A}-${String(a)}`)}),n}return[]},qE=t=>t===void 0?[]:typeof t=="object"?Object.entries(t).map(([e,r])=>`direction-${e}-${r}`):[`direction-xs-${String(t)}`],JE=$o(),ZE=Qy("div",{name:"MuiGrid",slot:"Root",overridesResolver:(t,e)=>e.root});function ex(t){return rh({props:t,name:"MuiGrid",defaultTheme:JE})}function tx(t={}){const{createStyledComponent:e=ZE,useThemeProps:r=ex,componentName:n="MuiGrid"}=t,A=(s,l)=>{const{container:u,direction:c,spacing:d,wrap:h,size:f}=s,p={root:["root",u&&"container",h!=="wrap"&&`wrap-xs-${String(h)}`,...qE(c),...YE(f),...u?jE(d,l.breakpoints.keys[0]):[]]};return Ke(p,g=>Pe(n,g),{})};function a(s,l,u=()=>!0){const c={};return s===null||(Array.isArray(s)?s.forEach((d,h)=>{d!==null&&u(d)&&l.keys[h]&&(c[l.keys[h]]=d)}):typeof s=="object"?Object.keys(s).forEach(d=>{const h=s[d];h!=null&&u(h)&&(c[d]=h)}):c[l.keys[0]]=s),c}const i=e($E,WE,zE,GE,_E,XE,VE),o=O.forwardRef(function(l,u){const c=zo(),d=r(l),h=Wo(d),{className:f,children:p,columns:g=12,container:m=!1,component:w="div",direction:v="row",wrap:B="wrap",size:b={},offset:E={},spacing:C=0,rowSpacing:F=C,columnSpacing:y=C,unstable_level:x=0,...Q}=h,S=a(b,c.breakpoints,N=>N!==!1),T=a(E,c.breakpoints),U=l.columns??(x?void 0:g),L=l.spacing??(x?void 0:C),R=l.rowSpacing??l.spacing??(x?void 0:F),M=l.columnSpacing??l.spacing??(x?void 0:y),H={...h,level:x,columns:U,container:m,direction:v,wrap:B,spacing:L,rowSpacing:R,columnSpacing:M,size:S,offset:T},k=A(H,c);return I.jsx(i,{ref:u,as:w,ownerState:H,className:xe(k.root,f),...Q,children:O.Children.map(p,N=>{var P;return O.isValidElement(N)&&hl(N,["Grid"])?O.cloneElement(N,{unstable_level:((P=N.props)==null?void 0:P.unstable_level)??x+1}):N})})});return o.muiName="Grid",o}const rx=$o(),nx=Qy("div",{name:"MuiStack",slot:"Root",overridesResolver:(t,e)=>e.root});function Ax(t){return rh({props:t,name:"MuiStack",defaultTheme:rx})}function ax(t,e){const r=O.Children.toArray(t).filter(Boolean);return r.reduce((n,A,a)=>(n.push(A),a({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[t],ox=({ownerState:t,theme:e})=>{let r={display:"flex",flexDirection:"column",...gr({theme:e},RA({values:t.direction,breakpoints:e.breakpoints.values}),n=>({flexDirection:n}))};if(t.spacing){const n=Fu(e),A=Object.keys(e.breakpoints.values).reduce((s,l)=>((typeof t.spacing=="object"&&t.spacing[l]!=null||typeof t.direction=="object"&&t.direction[l]!=null)&&(s[l]=!0),s),{}),a=RA({values:t.direction,base:A}),i=RA({values:t.spacing,base:A});typeof a=="object"&&Object.keys(a).forEach((s,l,u)=>{if(!a[s]){const d=l>0?a[u[l-1]]:"column";a[s]=d}}),r=$t(r,gr({theme:e},i,(s,l)=>t.useFlexGap?{gap:kA(n,s)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${ix(l?a[l]:t.direction)}`]:kA(n,s)}}))}return r=s1(e.breakpoints,r),r};function sx(t={}){const{createStyledComponent:e=nx,useThemeProps:r=Ax,componentName:n="MuiStack"}=t,A=()=>Ke({root:["root"]},s=>Pe(n,s),{}),a=e(ox);return O.forwardRef(function(s,l){const u=r(s),c=Wo(u),{component:d="div",direction:h="column",spacing:f=0,divider:p,children:g,className:m,useFlexGap:w=!1,...v}=c,B={direction:h,spacing:f,useFlexGap:w},b=A();return I.jsx(a,{as:d,ownerState:B,ref:l,className:xe(b.root,m),...v,children:p?ax(g,p):g})})}const xp={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:vo.white,default:vo.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Nc={text:{primary:vo.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:vo.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function Fp(t,e,r,n){const A=n.light||n,a=n.dark||n*1.5;t[e]||(t.hasOwnProperty(r)?t[e]=t[r]:e==="light"?t.light=$a(t.main,A):e==="dark"&&(t.dark=Va(t.main,a)))}function lx(t="light"){return t==="dark"?{main:na[200],light:na[50],dark:na[400]}:{main:na[700],light:na[400],dark:na[800]}}function ux(t="light"){return t==="dark"?{main:ra[200],light:ra[50],dark:ra[400]}:{main:ra[500],light:ra[300],dark:ra[700]}}function cx(t="light"){return t==="dark"?{main:ta[500],light:ta[300],dark:ta[700]}:{main:ta[700],light:ta[400],dark:ta[800]}}function fx(t="light"){return t==="dark"?{main:Aa[400],light:Aa[300],dark:Aa[700]}:{main:Aa[700],light:Aa[500],dark:Aa[900]}}function dx(t="light"){return t==="dark"?{main:aa[400],light:aa[300],dark:aa[700]}:{main:aa[800],light:aa[500],dark:aa[900]}}function hx(t="light"){return t==="dark"?{main:wi[400],light:wi[300],dark:wi[700]}:{main:"#ed6c02",light:wi[500],dark:wi[900]}}function sh(t){const{mode:e="light",contrastThreshold:r=3,tonalOffset:n=.2,...A}=t,a=t.primary||lx(e),i=t.secondary||ux(e),o=t.error||cx(e),s=t.info||fx(e),l=t.success||dx(e),u=t.warning||hx(e);function c(p){return dE(p,Nc.text.primary)>=r?Nc.text.primary:xp.text.primary}const d=({color:p,name:g,mainShade:m=500,lightShade:w=300,darkShade:v=700})=>{if(p={...p},!p.main&&p[m]&&(p.main=p[m]),!p.hasOwnProperty("main"))throw new Error(Mn(11,g?` (${g})`:"",m));if(typeof p.main!="string")throw new Error(Mn(12,g?` (${g})`:"",JSON.stringify(p.main)));return Fp(p,"light",w,n),Fp(p,"dark",v,n),p.contrastText||(p.contrastText=c(p.main)),p},h={dark:Nc,light:xp};return $t({common:{...vo},mode:e,primary:d({color:a,name:"primary"}),secondary:d({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:d({color:o,name:"error"}),warning:d({color:u,name:"warning"}),info:d({color:s,name:"info"}),success:d({color:l,name:"success"}),grey:$C,contrastThreshold:r,getContrastText:c,augmentColor:d,tonalOffset:n,...h[e]},A)}function px(t){const e={};return Object.entries(t).forEach(n=>{const[A,a]=n;typeof a=="object"&&(e[A]=`${a.fontStyle?`${a.fontStyle} `:""}${a.fontVariant?`${a.fontVariant} `:""}${a.fontWeight?`${a.fontWeight} `:""}${a.fontStretch?`${a.fontStretch} `:""}${a.fontSize||""}${a.lineHeight?`/${a.lineHeight} `:""}${a.fontFamily||""}`)}),e}function gx(t,e){return{toolbar:{minHeight:56,[t.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[t.up("sm")]:{minHeight:64}},...e}}function vx(t){return Math.round(t*1e5)/1e5}const Qp={textTransform:"uppercase"},Sp='"Roboto", "Helvetica", "Arial", sans-serif';function Py(t,e){const{fontFamily:r=Sp,fontSize:n=14,fontWeightLight:A=300,fontWeightRegular:a=400,fontWeightMedium:i=500,fontWeightBold:o=700,htmlFontSize:s=16,allVariants:l,pxToRem:u,...c}=typeof e=="function"?e(t):e,d=n/14,h=u||(g=>`${g/s*d}rem`),f=(g,m,w,v,B)=>({fontFamily:r,fontWeight:g,fontSize:h(m),lineHeight:w,...r===Sp?{letterSpacing:`${vx(v/m)}em`}:{},...B,...l}),p={h1:f(A,96,1.167,-1.5),h2:f(A,60,1.2,-.5),h3:f(a,48,1.167,0),h4:f(a,34,1.235,.25),h5:f(a,24,1.334,0),h6:f(i,20,1.6,.15),subtitle1:f(a,16,1.75,.15),subtitle2:f(i,14,1.57,.1),body1:f(a,16,1.5,.15),body2:f(a,14,1.43,.15),button:f(i,14,1.75,.4,Qp),caption:f(a,12,1.66,.4),overline:f(a,12,2.66,1,Qp),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return $t({htmlFontSize:s,pxToRem:h,fontFamily:r,fontSize:n,fontWeightLight:A,fontWeightRegular:a,fontWeightMedium:i,fontWeightBold:o,...p},c,{clone:!1})}const mx=.2,yx=.14,Bx=.12;function mt(...t){return[`${t[0]}px ${t[1]}px ${t[2]}px ${t[3]}px rgba(0,0,0,${mx})`,`${t[4]}px ${t[5]}px ${t[6]}px ${t[7]}px rgba(0,0,0,${yx})`,`${t[8]}px ${t[9]}px ${t[10]}px ${t[11]}px rgba(0,0,0,${Bx})`].join(",")}const wx=["none",mt(0,2,1,-1,0,1,1,0,0,1,3,0),mt(0,3,1,-2,0,2,2,0,0,1,5,0),mt(0,3,3,-2,0,3,4,0,0,1,8,0),mt(0,2,4,-1,0,4,5,0,0,1,10,0),mt(0,3,5,-1,0,5,8,0,0,1,14,0),mt(0,3,5,-1,0,6,10,0,0,1,18,0),mt(0,4,5,-2,0,7,10,1,0,2,16,1),mt(0,5,5,-3,0,8,10,1,0,3,14,2),mt(0,5,6,-3,0,9,12,1,0,3,16,2),mt(0,6,6,-3,0,10,14,1,0,4,18,3),mt(0,6,7,-4,0,11,15,1,0,4,20,3),mt(0,7,8,-4,0,12,17,2,0,5,22,4),mt(0,7,8,-4,0,13,19,2,0,5,24,4),mt(0,7,9,-4,0,14,21,2,0,5,26,4),mt(0,8,9,-5,0,15,22,2,0,6,28,5),mt(0,8,10,-5,0,16,24,2,0,6,30,5),mt(0,8,11,-5,0,17,26,2,0,6,32,5),mt(0,9,11,-5,0,18,28,2,0,7,34,6),mt(0,9,12,-6,0,19,29,2,0,7,36,6),mt(0,10,13,-6,0,20,31,3,0,8,38,7),mt(0,10,13,-6,0,21,33,3,0,8,40,7),mt(0,10,14,-6,0,22,35,3,0,8,42,7),mt(0,11,14,-7,0,23,36,3,0,9,44,8),mt(0,11,15,-7,0,24,38,3,0,9,46,8)],Cx={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},bx={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Up(t){return`${Math.round(t)}ms`}function Ex(t){if(!t)return 0;const e=t/36;return Math.min(Math.round((4+15*e**.25+e/5)*10),3e3)}function xx(t){const e={...Cx,...t.easing},r={...bx,...t.duration};return{getAutoHeightDuration:Ex,create:(A=["all"],a={})=>{const{duration:i=r.standard,easing:o=e.easeInOut,delay:s=0,...l}=a;return(Array.isArray(A)?A:[A]).map(u=>`${u} ${typeof i=="string"?i:Up(i)} ${o} ${typeof s=="string"?s:Up(s)}`).join(",")},...t,easing:e,duration:r}}const Fx={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function $f(t={},...e){const{breakpoints:r,mixins:n={},spacing:A,palette:a={},transitions:i={},typography:o={},shape:s,...l}=t;if(t.vars)throw new Error(Mn(20));const u=sh(a),c=$o(t);let d=$t(c,{mixins:gx(c.breakpoints,n),palette:u,shadows:wx.slice(),typography:Py(u,o),transitions:xx(i),zIndex:{...Fx}});return d=$t(d,l),d=e.reduce((h,f)=>$t(h,f),d),d.unstable_sxConfig={...Vo,...l==null?void 0:l.unstable_sxConfig},d.unstable_sx=function(f){return YA({sx:f,theme:this})},d}function zf(t){let e;return t<1?e=5.11916*t**2:e=4.5*Math.log(t+1)+2,Math.round(e*10)/1e3}const Qx=[...Array(25)].map((t,e)=>{if(e===0)return"none";const r=zf(e);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function Ny(t){return{inputPlaceholder:t==="dark"?.5:.42,inputUnderline:t==="dark"?.7:.42,switchTrackDisabled:t==="dark"?.2:.12,switchTrack:t==="dark"?.3:.38}}function Ky(t){return t==="dark"?Qx:[]}function Sx(t){const{palette:e={mode:"light"},opacity:r,overlays:n,...A}=t,a=sh(e);return{palette:a,opacity:{...Ny(a.mode),...r},overlays:n||Ky(a.mode),...A}}function Ux(t){var e;return!!t[0].match(/(cssVarPrefix|colorSchemeSelector|typography|mixins|breakpoints|direction|transitions)/)||!!t[0].match(/sxConfig$/)||t[0]==="palette"&&!!((e=t[1])!=null&&e.match(/(mode|contrastThreshold|tonalOffset)/))}const Tx=t=>[...[...Array(25)].map((e,r)=>`--${t?`${t}-`:""}overlays-${r}`),`--${t?`${t}-`:""}palette-AppBar-darkBg`,`--${t?`${t}-`:""}palette-AppBar-darkColor`],Ix=t=>(e,r)=>{const n=t.colorSchemeSelector;let A=n;if(n==="class"&&(A=".%s"),n==="data"&&(A="[data-%s]"),n!=null&&n.startsWith("data-")&&!n.includes("%s")&&(A=`[${n}="%s"]`),t.defaultColorScheme===e){if(e==="dark"){const a={};return Tx(t.cssVarPrefix).forEach(i=>{a[i]=r[i],delete r[i]}),A==="media"?{":root":r,"@media (prefers-color-scheme: dark)":{":root":a}}:A?{[A.replace("%s",e)]:a,[`:root, ${A.replace("%s",e)}`]:r}:{":root":{...r,...a}}}if(A&&A!=="media")return`:root, ${A.replace("%s",String(e))}`}else if(e){if(A==="media")return{[`@media (prefers-color-scheme: ${String(e)})`]:{":root":r}};if(A)return A.replace("%s",String(e))}return":root"};function Lx(t){return pn(t)||typeof t>"u"||typeof t=="string"||typeof t=="boolean"||typeof t=="number"||Array.isArray(t)}function Dx(t={}){const e={...t};function r(n){const A=Object.entries(n);for(let a=0;a{t[r]||(t[r]={})})}function ue(t,e,r){!t[e]&&r&&(t[e]=r)}function Pi(t){return!t||!t.startsWith("hsl")?t:Sy(t)}function Tn(t,e){`${e}Channel`in t||(t[`${e}Channel`]=ki(Pi(t[e]),`MUI: Can't create \`palette.${e}Channel\` because \`palette.${e}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color(). -To suppress this warning, you need to explicitly provide the \`palette.${e}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function Mx(t){return typeof t=="number"?`${t}px`:typeof t=="string"||typeof t=="function"||Array.isArray(t)?t:"8px"}const on=t=>{try{return t()}catch{}},Ox=(t="mui")=>M1(t);function Kc(t,e,r,n){if(!e)return;e=e===!0?{}:e;const A=n==="dark"?"dark":"light";if(!r){t[n]=Sx({...e,palette:{mode:A,...e==null?void 0:e.palette}});return}const{palette:a,...i}=$f({...r,palette:{mode:A,...e==null?void 0:e.palette}});return t[n]={...e,palette:a,opacity:{...Ny(A),...e==null?void 0:e.opacity},overlays:(e==null?void 0:e.overlays)||Ky(A)},i}function Hx(t={},...e){const{colorSchemes:r={light:!0},defaultColorScheme:n,disableCssColorScheme:A=!1,cssVarPrefix:a="mui",shouldSkipGeneratingVar:i=Ux,colorSchemeSelector:o=r.light&&r.dark?"media":void 0,...s}=t,l=Object.keys(r)[0],u=n||(r.light&&l!=="light"?"light":l),c=Ox(a),{[u]:d,light:h,dark:f,...p}=r,g={...p};let m=d;if((u==="dark"&&!("dark"in r)||u==="light"&&!("light"in r))&&(m=!0),!m)throw new Error(Mn(21,u));const B=Kc(g,m,s,u);h&&!g.light&&Kc(g,h,void 0,"light"),f&&!g.dark&&Kc(g,f,void 0,"dark");let v={defaultColorScheme:u,...B,cssVarPrefix:a,colorSchemeSelector:o,getCssVar:c,colorSchemes:g,font:{...px(B.typography),...B.font},spacing:Mx(s.spacing)};Object.keys(v.colorSchemes).forEach(F=>{const w=v.colorSchemes[F].palette,x=Q=>{const S=Q.split("-"),T=S[1],U=S[2];return c(Q,w[T][U])};if(w.mode==="light"&&(ue(w.common,"background","#fff"),ue(w.common,"onBackground","#000")),w.mode==="dark"&&(ue(w.common,"background","#000"),ue(w.common,"onBackground","#fff")),Rx(w,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),w.mode==="light"){ue(w.Alert,"errorColor",ot(w.error.light,.6)),ue(w.Alert,"infoColor",ot(w.info.light,.6)),ue(w.Alert,"successColor",ot(w.success.light,.6)),ue(w.Alert,"warningColor",ot(w.warning.light,.6)),ue(w.Alert,"errorFilledBg",x("palette-error-main")),ue(w.Alert,"infoFilledBg",x("palette-info-main")),ue(w.Alert,"successFilledBg",x("palette-success-main")),ue(w.Alert,"warningFilledBg",x("palette-warning-main")),ue(w.Alert,"errorFilledColor",on(()=>w.getContrastText(w.error.main))),ue(w.Alert,"infoFilledColor",on(()=>w.getContrastText(w.info.main))),ue(w.Alert,"successFilledColor",on(()=>w.getContrastText(w.success.main))),ue(w.Alert,"warningFilledColor",on(()=>w.getContrastText(w.warning.main))),ue(w.Alert,"errorStandardBg",st(w.error.light,.9)),ue(w.Alert,"infoStandardBg",st(w.info.light,.9)),ue(w.Alert,"successStandardBg",st(w.success.light,.9)),ue(w.Alert,"warningStandardBg",st(w.warning.light,.9)),ue(w.Alert,"errorIconColor",x("palette-error-main")),ue(w.Alert,"infoIconColor",x("palette-info-main")),ue(w.Alert,"successIconColor",x("palette-success-main")),ue(w.Alert,"warningIconColor",x("palette-warning-main")),ue(w.AppBar,"defaultBg",x("palette-grey-100")),ue(w.Avatar,"defaultBg",x("palette-grey-400")),ue(w.Button,"inheritContainedBg",x("palette-grey-300")),ue(w.Button,"inheritContainedHoverBg",x("palette-grey-A100")),ue(w.Chip,"defaultBorder",x("palette-grey-400")),ue(w.Chip,"defaultAvatarColor",x("palette-grey-700")),ue(w.Chip,"defaultIconColor",x("palette-grey-700")),ue(w.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),ue(w.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),ue(w.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),ue(w.LinearProgress,"primaryBg",st(w.primary.main,.62)),ue(w.LinearProgress,"secondaryBg",st(w.secondary.main,.62)),ue(w.LinearProgress,"errorBg",st(w.error.main,.62)),ue(w.LinearProgress,"infoBg",st(w.info.main,.62)),ue(w.LinearProgress,"successBg",st(w.success.main,.62)),ue(w.LinearProgress,"warningBg",st(w.warning.main,.62)),ue(w.Skeleton,"bg",`rgba(${x("palette-text-primaryChannel")} / 0.11)`),ue(w.Slider,"primaryTrack",st(w.primary.main,.62)),ue(w.Slider,"secondaryTrack",st(w.secondary.main,.62)),ue(w.Slider,"errorTrack",st(w.error.main,.62)),ue(w.Slider,"infoTrack",st(w.info.main,.62)),ue(w.Slider,"successTrack",st(w.success.main,.62)),ue(w.Slider,"warningTrack",st(w.warning.main,.62));const Q=vs(w.background.default,.8);ue(w.SnackbarContent,"bg",Q),ue(w.SnackbarContent,"color",on(()=>w.getContrastText(Q))),ue(w.SpeedDialAction,"fabHoverBg",vs(w.background.paper,.15)),ue(w.StepConnector,"border",x("palette-grey-400")),ue(w.StepContent,"border",x("palette-grey-400")),ue(w.Switch,"defaultColor",x("palette-common-white")),ue(w.Switch,"defaultDisabledColor",x("palette-grey-100")),ue(w.Switch,"primaryDisabledColor",st(w.primary.main,.62)),ue(w.Switch,"secondaryDisabledColor",st(w.secondary.main,.62)),ue(w.Switch,"errorDisabledColor",st(w.error.main,.62)),ue(w.Switch,"infoDisabledColor",st(w.info.main,.62)),ue(w.Switch,"successDisabledColor",st(w.success.main,.62)),ue(w.Switch,"warningDisabledColor",st(w.warning.main,.62)),ue(w.TableCell,"border",st(gs(w.divider,1),.88)),ue(w.Tooltip,"bg",gs(w.grey[700],.92))}if(w.mode==="dark"){ue(w.Alert,"errorColor",st(w.error.light,.6)),ue(w.Alert,"infoColor",st(w.info.light,.6)),ue(w.Alert,"successColor",st(w.success.light,.6)),ue(w.Alert,"warningColor",st(w.warning.light,.6)),ue(w.Alert,"errorFilledBg",x("palette-error-dark")),ue(w.Alert,"infoFilledBg",x("palette-info-dark")),ue(w.Alert,"successFilledBg",x("palette-success-dark")),ue(w.Alert,"warningFilledBg",x("palette-warning-dark")),ue(w.Alert,"errorFilledColor",on(()=>w.getContrastText(w.error.dark))),ue(w.Alert,"infoFilledColor",on(()=>w.getContrastText(w.info.dark))),ue(w.Alert,"successFilledColor",on(()=>w.getContrastText(w.success.dark))),ue(w.Alert,"warningFilledColor",on(()=>w.getContrastText(w.warning.dark))),ue(w.Alert,"errorStandardBg",ot(w.error.light,.9)),ue(w.Alert,"infoStandardBg",ot(w.info.light,.9)),ue(w.Alert,"successStandardBg",ot(w.success.light,.9)),ue(w.Alert,"warningStandardBg",ot(w.warning.light,.9)),ue(w.Alert,"errorIconColor",x("palette-error-main")),ue(w.Alert,"infoIconColor",x("palette-info-main")),ue(w.Alert,"successIconColor",x("palette-success-main")),ue(w.Alert,"warningIconColor",x("palette-warning-main")),ue(w.AppBar,"defaultBg",x("palette-grey-900")),ue(w.AppBar,"darkBg",x("palette-background-paper")),ue(w.AppBar,"darkColor",x("palette-text-primary")),ue(w.Avatar,"defaultBg",x("palette-grey-600")),ue(w.Button,"inheritContainedBg",x("palette-grey-800")),ue(w.Button,"inheritContainedHoverBg",x("palette-grey-700")),ue(w.Chip,"defaultBorder",x("palette-grey-700")),ue(w.Chip,"defaultAvatarColor",x("palette-grey-300")),ue(w.Chip,"defaultIconColor",x("palette-grey-300")),ue(w.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),ue(w.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),ue(w.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),ue(w.LinearProgress,"primaryBg",ot(w.primary.main,.5)),ue(w.LinearProgress,"secondaryBg",ot(w.secondary.main,.5)),ue(w.LinearProgress,"errorBg",ot(w.error.main,.5)),ue(w.LinearProgress,"infoBg",ot(w.info.main,.5)),ue(w.LinearProgress,"successBg",ot(w.success.main,.5)),ue(w.LinearProgress,"warningBg",ot(w.warning.main,.5)),ue(w.Skeleton,"bg",`rgba(${x("palette-text-primaryChannel")} / 0.13)`),ue(w.Slider,"primaryTrack",ot(w.primary.main,.5)),ue(w.Slider,"secondaryTrack",ot(w.secondary.main,.5)),ue(w.Slider,"errorTrack",ot(w.error.main,.5)),ue(w.Slider,"infoTrack",ot(w.info.main,.5)),ue(w.Slider,"successTrack",ot(w.success.main,.5)),ue(w.Slider,"warningTrack",ot(w.warning.main,.5));const Q=vs(w.background.default,.98);ue(w.SnackbarContent,"bg",Q),ue(w.SnackbarContent,"color",on(()=>w.getContrastText(Q))),ue(w.SpeedDialAction,"fabHoverBg",vs(w.background.paper,.15)),ue(w.StepConnector,"border",x("palette-grey-600")),ue(w.StepContent,"border",x("palette-grey-600")),ue(w.Switch,"defaultColor",x("palette-grey-300")),ue(w.Switch,"defaultDisabledColor",x("palette-grey-600")),ue(w.Switch,"primaryDisabledColor",ot(w.primary.main,.55)),ue(w.Switch,"secondaryDisabledColor",ot(w.secondary.main,.55)),ue(w.Switch,"errorDisabledColor",ot(w.error.main,.55)),ue(w.Switch,"infoDisabledColor",ot(w.info.main,.55)),ue(w.Switch,"successDisabledColor",ot(w.success.main,.55)),ue(w.Switch,"warningDisabledColor",ot(w.warning.main,.55)),ue(w.TableCell,"border",ot(gs(w.divider,1),.68)),ue(w.Tooltip,"bg",gs(w.grey[700],.92))}Tn(w.background,"default"),Tn(w.background,"paper"),Tn(w.common,"background"),Tn(w.common,"onBackground"),Tn(w,"divider"),Object.keys(w).forEach(Q=>{const S=w[Q];S&&typeof S=="object"&&(S.main&&ue(w[Q],"mainChannel",ki(Pi(S.main))),S.light&&ue(w[Q],"lightChannel",ki(Pi(S.light))),S.dark&&ue(w[Q],"darkChannel",ki(Pi(S.dark))),S.contrastText&&ue(w[Q],"contrastTextChannel",ki(Pi(S.contrastText))),Q==="text"&&(Tn(w[Q],"primary"),Tn(w[Q],"secondary")),Q==="action"&&(S.active&&Tn(w[Q],"active"),S.selected&&Tn(w[Q],"selected")))})}),v=e.reduce((F,w)=>$t(F,w),v);const y={prefix:a,disableCssColorScheme:A,shouldSkipGeneratingVar:i,getSelector:Ix(v)},{vars:b,generateThemeVars:E,generateStyleSheets:C}=k1(v,y);return v.vars=b,Object.entries(v.colorSchemes[v.defaultColorScheme]).forEach(([F,w])=>{v[F]=w}),v.generateThemeVars=E,v.generateStyleSheets=C,v.generateSpacing=function(){return wy(s.spacing,Fu(this))},v.getColorSchemeSelector=P1(o),v.spacing=v.generateSpacing(),v.shouldSkipGeneratingVar=i,v.unstable_sxConfig={...Vo,...s==null?void 0:s.unstable_sxConfig},v.unstable_sx=function(w){return YA({sx:w,theme:this})},v.toRuntimeSource=Dx,v}function Tp(t,e,r){t.colorSchemes&&r&&(t.colorSchemes[e]={...r!==!0&&r,palette:sh({...r===!0?{}:r.palette,mode:e})})}function Xo(t={},...e){const{palette:r,cssVariables:n=!1,colorSchemes:A=r?void 0:{light:!0},defaultColorScheme:a=r==null?void 0:r.mode,...i}=t,o=a||"light",s=A==null?void 0:A[o],l={...A,...r?{[o]:{...typeof s!="boolean"&&s,palette:r}}:void 0};if(n===!1){if(!("colorSchemes"in t))return $f(t,...e);let u=r;"palette"in t||l[o]&&(l[o]!==!0?u=l[o].palette:o==="dark"&&(u={mode:"dark"}));const c=$f({...t,palette:u},...e);return c.defaultColorScheme=o,c.colorSchemes=l,c.palette.mode==="light"&&(c.colorSchemes.light={...l.light!==!0&&l.light,palette:c.palette},Tp(c,"dark",l.dark)),c.palette.mode==="dark"&&(c.colorSchemes.dark={...l.dark!==!0&&l.dark,palette:c.palette},Tp(c,"light",l.light)),c}return!r&&!("light"in l)&&o==="light"&&(l.light=!0),Hx({...i,colorSchemes:l,defaultColorScheme:o,...typeof n!="boolean"&&n},...e)}const zu=Xo();function Yo(){const t=zo(zu);return t[en]||t}function Wu({props:t,name:e}){return rh({props:t,name:e,defaultTheme:zu,themeId:en})}function _u(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}const yr=t=>_u(t)&&t!=="classes",me=Fy({themeId:en,defaultTheme:zu,rootShouldForwardProp:yr});function Ip({theme:t,...e}){const r=en in t?t[en]:void 0;return I.jsx(Hy,{...e,themeId:r?en:void 0,theme:r||t})}const ms={attribute:"data-mui-color-scheme",colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:kx,useColorScheme:YV,getInitColorSchemeScript:jV}=R1({themeId:en,theme:()=>Xo({cssVariables:!0}),colorSchemeStorageKey:ms.colorSchemeStorageKey,modeStorageKey:ms.modeStorageKey,defaultColorScheme:{light:ms.defaultLightColorScheme,dark:ms.defaultDarkColorScheme},resolveTheme:t=>{const e={...t,typography:Py(t.palette,t.typography)};return e.unstable_sx=function(n){return YA({sx:n,theme:this})},e}}),Px=kx;function Nx({theme:t,...e}){return typeof t=="function"?I.jsx(Ip,{theme:t,...e}):"colorSchemes"in(en in t?t[en]:t)?I.jsx(Px,{theme:t,...e}):I.jsx(Ip,{theme:t,...e})}function Kx(t){return I.jsx(JE,{...t,defaultTheme:zu,themeId:en})}function Gx(t){return function(r){return I.jsx(Kx,{styles:typeof t=="function"?n=>t({theme:n,...r}):t})}}function Vx(){return Wo}const Lp={theme:void 0};function ke(t){let e,r;return n=>{let A=e;return(A===void 0||n.theme!==r)&&(Lp.theme=n.theme,A=t(Lp),e=A,r=n.theme),A}}function Ve(t){return S1(t)}function $x(t){return Pe("MuiSvgIcon",t)}Me("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const zx=t=>{const{color:e,fontSize:r,classes:n}=t,A={root:["root",e!=="inherit"&&`color${Fe(e)}`,`fontSize${Fe(r)}`]};return Ke(A,$x,n)},Wx=me("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.color!=="inherit"&&e[`color${Fe(r.color)}`],e[`fontSize${Fe(r.fontSize)}`]]}})(ke(({theme:t})=>{var e,r,n,A,a,i,o,s,l,u,c,d,h,f;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(A=(e=t.transitions)==null?void 0:e.create)==null?void 0:A.call(e,"fill",{duration:(n=(r=(t.vars??t).transitions)==null?void 0:r.duration)==null?void 0:n.shorter}),variants:[{props:p=>!p.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((i=(a=t.typography)==null?void 0:a.pxToRem)==null?void 0:i.call(a,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((s=(o=t.typography)==null?void 0:o.pxToRem)==null?void 0:s.call(o,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((u=(l=t.typography)==null?void 0:l.pxToRem)==null?void 0:u.call(l,35))||"2.1875rem"}},...Object.entries((t.vars??t).palette).filter(([,p])=>p&&p.main).map(([p])=>{var g,m;return{props:{color:p},style:{color:(m=(g=(t.vars??t).palette)==null?void 0:g[p])==null?void 0:m.main}}}),{props:{color:"action"},style:{color:(d=(c=(t.vars??t).palette)==null?void 0:c.action)==null?void 0:d.active}},{props:{color:"disabled"},style:{color:(f=(h=(t.vars??t).palette)==null?void 0:h.action)==null?void 0:f.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),Ll=O.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiSvgIcon"}),{children:A,className:a,color:i="inherit",component:o="svg",fontSize:s="medium",htmlColor:l,inheritViewBox:u=!1,titleAccess:c,viewBox:d="0 0 24 24",...h}=n,f=O.isValidElement(A)&&A.type==="svg",p={...n,color:i,component:o,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:d,hasSvgAsChild:f},g={};u||(g.viewBox=d);const m=zx(p);return I.jsxs(Wx,{as:o,className:xe(m.root,a),focusable:"false",color:l,"aria-hidden":c?void 0:!0,role:c?"img":void 0,ref:r,...g,...h,...f&&A.props,ownerState:p,children:[f?A.props.children:A,c?I.jsx("title",{children:c}):null]})});Ll&&(Ll.muiName="SvgIcon");function vt(t,e){function r(n,A){return I.jsx(Ll,{"data-testid":`${e}Icon`,ref:A,...n,children:t})}return r.muiName=Ll.muiName,O.memo(O.forwardRef(r))}function Gy(t,e){if(t==null)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(e.includes(n))continue;r[n]=t[n]}return r}const Dp={disabled:!1},Dl=Cr.createContext(null);var _x=function(e){return e.scrollTop},Ni="unmounted",wA="exited",CA="entering",wa="entered",Wf="exiting",En=function(t){Ym(e,t);function e(n,A){var a;a=t.call(this,n,A)||this;var i=A,o=i&&!i.isMounting?n.enter:n.appear,s;return a.appearStatus=null,n.in?o?(s=wA,a.appearStatus=CA):s=wa:n.unmountOnExit||n.mountOnEnter?s=Ni:s=wA,a.state={status:s},a.nextCallback=null,a}e.getDerivedStateFromProps=function(A,a){var i=A.in;return i&&a.status===Ni?{status:wA}:null};var r=e.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(A){var a=null;if(A!==this.props){var i=this.state.status;this.props.in?i!==CA&&i!==wa&&(a=CA):(i===CA||i===wa)&&(a=Wf)}this.updateStatus(!1,a)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var A=this.props.timeout,a,i,o;return a=i=o=A,A!=null&&typeof A!="number"&&(a=A.exit,i=A.enter,o=A.appear!==void 0?A.appear:i),{exit:a,enter:i,appear:o}},r.updateStatus=function(A,a){if(A===void 0&&(A=!1),a!==null)if(this.cancelNextCallback(),a===CA){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:fs.findDOMNode(this);i&&_x(i)}this.performEnter(A)}else this.performExit();else this.props.unmountOnExit&&this.state.status===wA&&this.setState({status:Ni})},r.performEnter=function(A){var a=this,i=this.props.enter,o=this.context?this.context.isMounting:A,s=this.props.nodeRef?[o]:[fs.findDOMNode(this),o],l=s[0],u=s[1],c=this.getTimeouts(),d=o?c.appear:c.enter;if(!A&&!i||Dp.disabled){this.safeSetState({status:wa},function(){a.props.onEntered(l)});return}this.props.onEnter(l,u),this.safeSetState({status:CA},function(){a.props.onEntering(l,u),a.onTransitionEnd(d,function(){a.safeSetState({status:wa},function(){a.props.onEntered(l,u)})})})},r.performExit=function(){var A=this,a=this.props.exit,i=this.getTimeouts(),o=this.props.nodeRef?void 0:fs.findDOMNode(this);if(!a||Dp.disabled){this.safeSetState({status:wA},function(){A.props.onExited(o)});return}this.props.onExit(o),this.safeSetState({status:Wf},function(){A.props.onExiting(o),A.onTransitionEnd(i.exit,function(){A.safeSetState({status:wA},function(){A.props.onExited(o)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(A,a){a=this.setNextCallback(a),this.setState(A,a)},r.setNextCallback=function(A){var a=this,i=!0;return this.nextCallback=function(o){i&&(i=!1,a.nextCallback=null,A(o))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},r.onTransitionEnd=function(A,a){this.setNextCallback(a);var i=this.props.nodeRef?this.props.nodeRef.current:fs.findDOMNode(this),o=A==null&&!this.props.addEndListener;if(!i||o){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var s=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],l=s[0],u=s[1];this.props.addEndListener(l,u)}A!=null&&setTimeout(this.nextCallback,A)},r.render=function(){var A=this.state.status;if(A===Ni)return null;var a=this.props,i=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var o=Gy(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Cr.createElement(Dl.Provider,{value:null},typeof i=="function"?i(A,o):Cr.cloneElement(Cr.Children.only(i),o))},e}(Cr.Component);En.contextType=Dl;En.propTypes={};function ia(){}En.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ia,onEntering:ia,onEntered:ia,onExit:ia,onExiting:ia,onExited:ia};En.UNMOUNTED=Ni;En.EXITED=wA;En.ENTERING=CA;En.ENTERED=wa;En.EXITING=Wf;function lh(t,e){var r=function(a){return e&&O.isValidElement(a)?e(a):a},n=Object.create(null);return t&&O.Children.map(t,function(A){return A}).forEach(function(A){n[A.key]=r(A)}),n}function Xx(t,e){t=t||{},e=e||{};function r(u){return u in e?e[u]:t[u]}var n=Object.create(null),A=[];for(var a in t)a in e?A.length&&(n[a]=A,A=[]):A.push(a);var i,o={};for(var s in e){if(n[s])for(i=0;it.scrollTop;function Rl(t,e){const{timeout:r,easing:n,style:A={}}=t;return{duration:A.transitionDuration??(typeof r=="number"?r:r[e.mode]||0),easing:A.transitionTimingFunction??(typeof n=="object"?n[e.mode]:n),delay:A.transitionDelay}}function Zx(t){return Pe("MuiPaper",t)}Me("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const eF=t=>{const{square:e,elevation:r,variant:n,classes:A}=t,a={root:["root",n,!e&&"rounded",n==="elevation"&&`elevation${r}`]};return Ke(a,Zx,A)},tF=me("div",{name:"MuiPaper",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant],!r.square&&e.rounded,r.variant==="elevation"&&e[`elevation${r.elevation}`]]}})(ke(({theme:t})=>({backgroundColor:(t.vars||t).palette.background.paper,color:(t.vars||t).palette.text.primary,transition:t.transitions.create("box-shadow"),variants:[{props:({ownerState:e})=>!e.square,style:{borderRadius:t.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(t.vars||t).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),Ai=O.forwardRef(function(e,r){var h;const n=Ve({props:e,name:"MuiPaper"}),A=Yo(),{className:a,component:i="div",elevation:o=1,square:s=!1,variant:l="elevation",...u}=n,c={...n,component:i,elevation:o,square:s,variant:l},d=eF(c);return I.jsx(tF,{as:i,ownerState:c,className:xe(d.root,a),ref:r,...u,style:{...l==="elevation"&&{"--Paper-shadow":(A.vars||A).shadows[o],...A.vars&&{"--Paper-overlay":(h=A.vars.overlays)==null?void 0:h[o]},...!A.vars&&A.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${dt("#fff",zf(o))}, ${dt("#fff",zf(o))})`}},...u.style}})});function Rr(t,e){const{className:r,elementType:n,ownerState:A,externalForwardedProps:a,getSlotOwnerState:i,internalForwardedProps:o,...s}=e,{component:l,slots:u={[t]:void 0},slotProps:c={[t]:void 0},...d}=a,h=u[t]||n,f=Dy(c[t],A),{props:{component:p,...g},internalRef:m}=Ly({className:r,...s,externalForwardedProps:t==="root"?d:void 0,externalSlotProps:f}),B=Qt(m,f==null?void 0:f.ref,e.ref),v=i?i(g):{},y={...A,...v},b=t==="root"?p||l:p,E=Fa(h,{...t==="root"&&!l&&!u[t]&&o,...t!=="root"&&!u[t]&&o,...g,...b&&{as:b},ref:B},y);return Object.keys(v).forEach(C=>{delete E[C]}),[h,E]}class Ml{constructor(){yi(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new Ml}static use(){const e=Ty(Ml.create).current,[r,n]=O.useState(!1);return e.shouldMount=r,e.setShouldMount=n,O.useEffect(e.mountEffect,[r]),e}mount(){return this.mounted||(this.mounted=nF(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...e){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.start(...e)})}stop(...e){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.stop(...e)})}pulsate(...e){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.pulsate(...e)})}}function rF(){return Ml.use()}function nF(){let t,e;const r=new Promise((n,A)=>{t=n,e=A});return r.resolve=t,r.reject=e,r}function AF(t){const{className:e,classes:r,pulsate:n=!1,rippleX:A,rippleY:a,rippleSize:i,in:o,onExited:s,timeout:l}=t,[u,c]=O.useState(!1),d=xe(e,r.ripple,r.rippleVisible,n&&r.ripplePulsate),h={width:i,height:i,top:-(i/2)+a,left:-(i/2)+A},f=xe(r.child,u&&r.childLeaving,n&&r.childPulsate);return!o&&!u&&c(!0),O.useEffect(()=>{if(!o&&s!=null){const p=setTimeout(s,l);return()=>{clearTimeout(p)}}},[s,o,l]),I.jsx("span",{className:d,style:h,children:I.jsx("span",{className:f})})}const Tr=Me("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),_f=550,aF=80,iF=jd` +export default theme;`}function Rx(t,e){e.forEach(r=>{t[r]||(t[r]={})})}function ue(t,e,r){!t[e]&&r&&(t[e]=r)}function Ni(t){return!t||!t.startsWith("hsl")?t:Sy(t)}function Tn(t,e){`${e}Channel`in t||(t[`${e}Channel`]=Pi(Ni(t[e]),`MUI: Can't create \`palette.${e}Channel\` because \`palette.${e}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color(). +To suppress this warning, you need to explicitly provide the \`palette.${e}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function Mx(t){return typeof t=="number"?`${t}px`:typeof t=="string"||typeof t=="function"||Array.isArray(t)?t:"8px"}const on=t=>{try{return t()}catch{}},Ox=(t="mui")=>ME(t);function Kc(t,e,r,n){if(!e)return;e=e===!0?{}:e;const A=n==="dark"?"dark":"light";if(!r){t[n]=Sx({...e,palette:{mode:A,...e==null?void 0:e.palette}});return}const{palette:a,...i}=$f({...r,palette:{mode:A,...e==null?void 0:e.palette}});return t[n]={...e,palette:a,opacity:{...Ny(A),...e==null?void 0:e.opacity},overlays:(e==null?void 0:e.overlays)||Ky(A)},i}function Hx(t={},...e){const{colorSchemes:r={light:!0},defaultColorScheme:n,disableCssColorScheme:A=!1,cssVarPrefix:a="mui",shouldSkipGeneratingVar:i=Ux,colorSchemeSelector:o=r.light&&r.dark?"media":void 0,...s}=t,l=Object.keys(r)[0],u=n||(r.light&&l!=="light"?"light":l),c=Ox(a),{[u]:d,light:h,dark:f,...p}=r,g={...p};let m=d;if((u==="dark"&&!("dark"in r)||u==="light"&&!("light"in r))&&(m=!0),!m)throw new Error(Mn(21,u));const w=Kc(g,m,s,u);h&&!g.light&&Kc(g,h,void 0,"light"),f&&!g.dark&&Kc(g,f,void 0,"dark");let v={defaultColorScheme:u,...w,cssVarPrefix:a,colorSchemeSelector:o,getCssVar:c,colorSchemes:g,font:{...px(w.typography),...w.font},spacing:Mx(s.spacing)};Object.keys(v.colorSchemes).forEach(F=>{const y=v.colorSchemes[F].palette,x=Q=>{const S=Q.split("-"),T=S[1],U=S[2];return c(Q,y[T][U])};if(y.mode==="light"&&(ue(y.common,"background","#fff"),ue(y.common,"onBackground","#000")),y.mode==="dark"&&(ue(y.common,"background","#000"),ue(y.common,"onBackground","#fff")),Rx(y,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),y.mode==="light"){ue(y.Alert,"errorColor",ot(y.error.light,.6)),ue(y.Alert,"infoColor",ot(y.info.light,.6)),ue(y.Alert,"successColor",ot(y.success.light,.6)),ue(y.Alert,"warningColor",ot(y.warning.light,.6)),ue(y.Alert,"errorFilledBg",x("palette-error-main")),ue(y.Alert,"infoFilledBg",x("palette-info-main")),ue(y.Alert,"successFilledBg",x("palette-success-main")),ue(y.Alert,"warningFilledBg",x("palette-warning-main")),ue(y.Alert,"errorFilledColor",on(()=>y.getContrastText(y.error.main))),ue(y.Alert,"infoFilledColor",on(()=>y.getContrastText(y.info.main))),ue(y.Alert,"successFilledColor",on(()=>y.getContrastText(y.success.main))),ue(y.Alert,"warningFilledColor",on(()=>y.getContrastText(y.warning.main))),ue(y.Alert,"errorStandardBg",st(y.error.light,.9)),ue(y.Alert,"infoStandardBg",st(y.info.light,.9)),ue(y.Alert,"successStandardBg",st(y.success.light,.9)),ue(y.Alert,"warningStandardBg",st(y.warning.light,.9)),ue(y.Alert,"errorIconColor",x("palette-error-main")),ue(y.Alert,"infoIconColor",x("palette-info-main")),ue(y.Alert,"successIconColor",x("palette-success-main")),ue(y.Alert,"warningIconColor",x("palette-warning-main")),ue(y.AppBar,"defaultBg",x("palette-grey-100")),ue(y.Avatar,"defaultBg",x("palette-grey-400")),ue(y.Button,"inheritContainedBg",x("palette-grey-300")),ue(y.Button,"inheritContainedHoverBg",x("palette-grey-A100")),ue(y.Chip,"defaultBorder",x("palette-grey-400")),ue(y.Chip,"defaultAvatarColor",x("palette-grey-700")),ue(y.Chip,"defaultIconColor",x("palette-grey-700")),ue(y.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),ue(y.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),ue(y.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),ue(y.LinearProgress,"primaryBg",st(y.primary.main,.62)),ue(y.LinearProgress,"secondaryBg",st(y.secondary.main,.62)),ue(y.LinearProgress,"errorBg",st(y.error.main,.62)),ue(y.LinearProgress,"infoBg",st(y.info.main,.62)),ue(y.LinearProgress,"successBg",st(y.success.main,.62)),ue(y.LinearProgress,"warningBg",st(y.warning.main,.62)),ue(y.Skeleton,"bg",`rgba(${x("palette-text-primaryChannel")} / 0.11)`),ue(y.Slider,"primaryTrack",st(y.primary.main,.62)),ue(y.Slider,"secondaryTrack",st(y.secondary.main,.62)),ue(y.Slider,"errorTrack",st(y.error.main,.62)),ue(y.Slider,"infoTrack",st(y.info.main,.62)),ue(y.Slider,"successTrack",st(y.success.main,.62)),ue(y.Slider,"warningTrack",st(y.warning.main,.62));const Q=vs(y.background.default,.8);ue(y.SnackbarContent,"bg",Q),ue(y.SnackbarContent,"color",on(()=>y.getContrastText(Q))),ue(y.SpeedDialAction,"fabHoverBg",vs(y.background.paper,.15)),ue(y.StepConnector,"border",x("palette-grey-400")),ue(y.StepContent,"border",x("palette-grey-400")),ue(y.Switch,"defaultColor",x("palette-common-white")),ue(y.Switch,"defaultDisabledColor",x("palette-grey-100")),ue(y.Switch,"primaryDisabledColor",st(y.primary.main,.62)),ue(y.Switch,"secondaryDisabledColor",st(y.secondary.main,.62)),ue(y.Switch,"errorDisabledColor",st(y.error.main,.62)),ue(y.Switch,"infoDisabledColor",st(y.info.main,.62)),ue(y.Switch,"successDisabledColor",st(y.success.main,.62)),ue(y.Switch,"warningDisabledColor",st(y.warning.main,.62)),ue(y.TableCell,"border",st(gs(y.divider,1),.88)),ue(y.Tooltip,"bg",gs(y.grey[700],.92))}if(y.mode==="dark"){ue(y.Alert,"errorColor",st(y.error.light,.6)),ue(y.Alert,"infoColor",st(y.info.light,.6)),ue(y.Alert,"successColor",st(y.success.light,.6)),ue(y.Alert,"warningColor",st(y.warning.light,.6)),ue(y.Alert,"errorFilledBg",x("palette-error-dark")),ue(y.Alert,"infoFilledBg",x("palette-info-dark")),ue(y.Alert,"successFilledBg",x("palette-success-dark")),ue(y.Alert,"warningFilledBg",x("palette-warning-dark")),ue(y.Alert,"errorFilledColor",on(()=>y.getContrastText(y.error.dark))),ue(y.Alert,"infoFilledColor",on(()=>y.getContrastText(y.info.dark))),ue(y.Alert,"successFilledColor",on(()=>y.getContrastText(y.success.dark))),ue(y.Alert,"warningFilledColor",on(()=>y.getContrastText(y.warning.dark))),ue(y.Alert,"errorStandardBg",ot(y.error.light,.9)),ue(y.Alert,"infoStandardBg",ot(y.info.light,.9)),ue(y.Alert,"successStandardBg",ot(y.success.light,.9)),ue(y.Alert,"warningStandardBg",ot(y.warning.light,.9)),ue(y.Alert,"errorIconColor",x("palette-error-main")),ue(y.Alert,"infoIconColor",x("palette-info-main")),ue(y.Alert,"successIconColor",x("palette-success-main")),ue(y.Alert,"warningIconColor",x("palette-warning-main")),ue(y.AppBar,"defaultBg",x("palette-grey-900")),ue(y.AppBar,"darkBg",x("palette-background-paper")),ue(y.AppBar,"darkColor",x("palette-text-primary")),ue(y.Avatar,"defaultBg",x("palette-grey-600")),ue(y.Button,"inheritContainedBg",x("palette-grey-800")),ue(y.Button,"inheritContainedHoverBg",x("palette-grey-700")),ue(y.Chip,"defaultBorder",x("palette-grey-700")),ue(y.Chip,"defaultAvatarColor",x("palette-grey-300")),ue(y.Chip,"defaultIconColor",x("palette-grey-300")),ue(y.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),ue(y.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),ue(y.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),ue(y.LinearProgress,"primaryBg",ot(y.primary.main,.5)),ue(y.LinearProgress,"secondaryBg",ot(y.secondary.main,.5)),ue(y.LinearProgress,"errorBg",ot(y.error.main,.5)),ue(y.LinearProgress,"infoBg",ot(y.info.main,.5)),ue(y.LinearProgress,"successBg",ot(y.success.main,.5)),ue(y.LinearProgress,"warningBg",ot(y.warning.main,.5)),ue(y.Skeleton,"bg",`rgba(${x("palette-text-primaryChannel")} / 0.13)`),ue(y.Slider,"primaryTrack",ot(y.primary.main,.5)),ue(y.Slider,"secondaryTrack",ot(y.secondary.main,.5)),ue(y.Slider,"errorTrack",ot(y.error.main,.5)),ue(y.Slider,"infoTrack",ot(y.info.main,.5)),ue(y.Slider,"successTrack",ot(y.success.main,.5)),ue(y.Slider,"warningTrack",ot(y.warning.main,.5));const Q=vs(y.background.default,.98);ue(y.SnackbarContent,"bg",Q),ue(y.SnackbarContent,"color",on(()=>y.getContrastText(Q))),ue(y.SpeedDialAction,"fabHoverBg",vs(y.background.paper,.15)),ue(y.StepConnector,"border",x("palette-grey-600")),ue(y.StepContent,"border",x("palette-grey-600")),ue(y.Switch,"defaultColor",x("palette-grey-300")),ue(y.Switch,"defaultDisabledColor",x("palette-grey-600")),ue(y.Switch,"primaryDisabledColor",ot(y.primary.main,.55)),ue(y.Switch,"secondaryDisabledColor",ot(y.secondary.main,.55)),ue(y.Switch,"errorDisabledColor",ot(y.error.main,.55)),ue(y.Switch,"infoDisabledColor",ot(y.info.main,.55)),ue(y.Switch,"successDisabledColor",ot(y.success.main,.55)),ue(y.Switch,"warningDisabledColor",ot(y.warning.main,.55)),ue(y.TableCell,"border",ot(gs(y.divider,1),.68)),ue(y.Tooltip,"bg",gs(y.grey[700],.92))}Tn(y.background,"default"),Tn(y.background,"paper"),Tn(y.common,"background"),Tn(y.common,"onBackground"),Tn(y,"divider"),Object.keys(y).forEach(Q=>{const S=y[Q];S&&typeof S=="object"&&(S.main&&ue(y[Q],"mainChannel",Pi(Ni(S.main))),S.light&&ue(y[Q],"lightChannel",Pi(Ni(S.light))),S.dark&&ue(y[Q],"darkChannel",Pi(Ni(S.dark))),S.contrastText&&ue(y[Q],"contrastTextChannel",Pi(Ni(S.contrastText))),Q==="text"&&(Tn(y[Q],"primary"),Tn(y[Q],"secondary")),Q==="action"&&(S.active&&Tn(y[Q],"active"),S.selected&&Tn(y[Q],"selected")))})}),v=e.reduce((F,y)=>$t(F,y),v);const B={prefix:a,disableCssColorScheme:A,shouldSkipGeneratingVar:i,getSelector:Ix(v)},{vars:b,generateThemeVars:E,generateStyleSheets:C}=kE(v,B);return v.vars=b,Object.entries(v.colorSchemes[v.defaultColorScheme]).forEach(([F,y])=>{v[F]=y}),v.generateThemeVars=E,v.generateStyleSheets=C,v.generateSpacing=function(){return wy(s.spacing,Fu(this))},v.getColorSchemeSelector=PE(o),v.spacing=v.generateSpacing(),v.shouldSkipGeneratingVar=i,v.unstable_sxConfig={...Vo,...s==null?void 0:s.unstable_sxConfig},v.unstable_sx=function(y){return YA({sx:y,theme:this})},v.toRuntimeSource=Dx,v}function Tp(t,e,r){t.colorSchemes&&r&&(t.colorSchemes[e]={...r!==!0&&r,palette:sh({...r===!0?{}:r.palette,mode:e})})}function Xo(t={},...e){const{palette:r,cssVariables:n=!1,colorSchemes:A=r?void 0:{light:!0},defaultColorScheme:a=r==null?void 0:r.mode,...i}=t,o=a||"light",s=A==null?void 0:A[o],l={...A,...r?{[o]:{...typeof s!="boolean"&&s,palette:r}}:void 0};if(n===!1){if(!("colorSchemes"in t))return $f(t,...e);let u=r;"palette"in t||l[o]&&(l[o]!==!0?u=l[o].palette:o==="dark"&&(u={mode:"dark"}));const c=$f({...t,palette:u},...e);return c.defaultColorScheme=o,c.colorSchemes=l,c.palette.mode==="light"&&(c.colorSchemes.light={...l.light!==!0&&l.light,palette:c.palette},Tp(c,"dark",l.dark)),c.palette.mode==="dark"&&(c.colorSchemes.dark={...l.dark!==!0&&l.dark,palette:c.palette},Tp(c,"light",l.light)),c}return!r&&!("light"in l)&&o==="light"&&(l.light=!0),Hx({...i,colorSchemes:l,defaultColorScheme:o,...typeof n!="boolean"&&n},...e)}const zu=Xo();function Yo(){const t=zo(zu);return t[en]||t}function Wu({props:t,name:e}){return rh({props:t,name:e,defaultTheme:zu,themeId:en})}function _u(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}const yr=t=>_u(t)&&t!=="classes",me=Fy({themeId:en,defaultTheme:zu,rootShouldForwardProp:yr});function Ip({theme:t,...e}){const r=en in t?t[en]:void 0;return I.jsx(Hy,{...e,themeId:r?en:void 0,theme:r||t})}const ms={attribute:"data-mui-color-scheme",colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:kx,useColorScheme:YV,getInitColorSchemeScript:jV}=RE({themeId:en,theme:()=>Xo({cssVariables:!0}),colorSchemeStorageKey:ms.colorSchemeStorageKey,modeStorageKey:ms.modeStorageKey,defaultColorScheme:{light:ms.defaultLightColorScheme,dark:ms.defaultDarkColorScheme},resolveTheme:t=>{const e={...t,typography:Py(t.palette,t.typography)};return e.unstable_sx=function(n){return YA({sx:n,theme:this})},e}}),Px=kx;function Nx({theme:t,...e}){return typeof t=="function"?I.jsx(Ip,{theme:t,...e}):"colorSchemes"in(en in t?t[en]:t)?I.jsx(Px,{theme:t,...e}):I.jsx(Ip,{theme:t,...e})}function Kx(t){return I.jsx(J1,{...t,defaultTheme:zu,themeId:en})}function Gx(t){return function(r){return I.jsx(Kx,{styles:typeof t=="function"?n=>t({theme:n,...r}):t})}}function Vx(){return Wo}const Lp={theme:void 0};function ke(t){let e,r;return n=>{let A=e;return(A===void 0||n.theme!==r)&&(Lp.theme=n.theme,A=t(Lp),e=A,r=n.theme),A}}function Ve(t){return SE(t)}function $x(t){return Pe("MuiSvgIcon",t)}Me("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const zx=t=>{const{color:e,fontSize:r,classes:n}=t,A={root:["root",e!=="inherit"&&`color${Fe(e)}`,`fontSize${Fe(r)}`]};return Ke(A,$x,n)},Wx=me("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.color!=="inherit"&&e[`color${Fe(r.color)}`],e[`fontSize${Fe(r.fontSize)}`]]}})(ke(({theme:t})=>{var e,r,n,A,a,i,o,s,l,u,c,d,h,f;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(A=(e=t.transitions)==null?void 0:e.create)==null?void 0:A.call(e,"fill",{duration:(n=(r=(t.vars??t).transitions)==null?void 0:r.duration)==null?void 0:n.shorter}),variants:[{props:p=>!p.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((i=(a=t.typography)==null?void 0:a.pxToRem)==null?void 0:i.call(a,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((s=(o=t.typography)==null?void 0:o.pxToRem)==null?void 0:s.call(o,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((u=(l=t.typography)==null?void 0:l.pxToRem)==null?void 0:u.call(l,35))||"2.1875rem"}},...Object.entries((t.vars??t).palette).filter(([,p])=>p&&p.main).map(([p])=>{var g,m;return{props:{color:p},style:{color:(m=(g=(t.vars??t).palette)==null?void 0:g[p])==null?void 0:m.main}}}),{props:{color:"action"},style:{color:(d=(c=(t.vars??t).palette)==null?void 0:c.action)==null?void 0:d.active}},{props:{color:"disabled"},style:{color:(f=(h=(t.vars??t).palette)==null?void 0:h.action)==null?void 0:f.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),Ll=O.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiSvgIcon"}),{children:A,className:a,color:i="inherit",component:o="svg",fontSize:s="medium",htmlColor:l,inheritViewBox:u=!1,titleAccess:c,viewBox:d="0 0 24 24",...h}=n,f=O.isValidElement(A)&&A.type==="svg",p={...n,color:i,component:o,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:d,hasSvgAsChild:f},g={};u||(g.viewBox=d);const m=zx(p);return I.jsxs(Wx,{as:o,className:xe(m.root,a),focusable:"false",color:l,"aria-hidden":c?void 0:!0,role:c?"img":void 0,ref:r,...g,...h,...f&&A.props,ownerState:p,children:[f?A.props.children:A,c?I.jsx("title",{children:c}):null]})});Ll&&(Ll.muiName="SvgIcon");function vt(t,e){function r(n,A){return I.jsx(Ll,{"data-testid":`${e}Icon`,ref:A,...n,children:t})}return r.muiName=Ll.muiName,O.memo(O.forwardRef(r))}function Gy(t,e){if(t==null)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(e.includes(n))continue;r[n]=t[n]}return r}const Dp={disabled:!1},Dl=Cr.createContext(null);var _x=function(e){return e.scrollTop},Ki="unmounted",wA="exited",CA="entering",wa="entered",Wf="exiting",En=function(t){Ym(e,t);function e(n,A){var a;a=t.call(this,n,A)||this;var i=A,o=i&&!i.isMounting?n.enter:n.appear,s;return a.appearStatus=null,n.in?o?(s=wA,a.appearStatus=CA):s=wa:n.unmountOnExit||n.mountOnEnter?s=Ki:s=wA,a.state={status:s},a.nextCallback=null,a}e.getDerivedStateFromProps=function(A,a){var i=A.in;return i&&a.status===Ki?{status:wA}:null};var r=e.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(A){var a=null;if(A!==this.props){var i=this.state.status;this.props.in?i!==CA&&i!==wa&&(a=CA):(i===CA||i===wa)&&(a=Wf)}this.updateStatus(!1,a)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var A=this.props.timeout,a,i,o;return a=i=o=A,A!=null&&typeof A!="number"&&(a=A.exit,i=A.enter,o=A.appear!==void 0?A.appear:i),{exit:a,enter:i,appear:o}},r.updateStatus=function(A,a){if(A===void 0&&(A=!1),a!==null)if(this.cancelNextCallback(),a===CA){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:fs.findDOMNode(this);i&&_x(i)}this.performEnter(A)}else this.performExit();else this.props.unmountOnExit&&this.state.status===wA&&this.setState({status:Ki})},r.performEnter=function(A){var a=this,i=this.props.enter,o=this.context?this.context.isMounting:A,s=this.props.nodeRef?[o]:[fs.findDOMNode(this),o],l=s[0],u=s[1],c=this.getTimeouts(),d=o?c.appear:c.enter;if(!A&&!i||Dp.disabled){this.safeSetState({status:wa},function(){a.props.onEntered(l)});return}this.props.onEnter(l,u),this.safeSetState({status:CA},function(){a.props.onEntering(l,u),a.onTransitionEnd(d,function(){a.safeSetState({status:wa},function(){a.props.onEntered(l,u)})})})},r.performExit=function(){var A=this,a=this.props.exit,i=this.getTimeouts(),o=this.props.nodeRef?void 0:fs.findDOMNode(this);if(!a||Dp.disabled){this.safeSetState({status:wA},function(){A.props.onExited(o)});return}this.props.onExit(o),this.safeSetState({status:Wf},function(){A.props.onExiting(o),A.onTransitionEnd(i.exit,function(){A.safeSetState({status:wA},function(){A.props.onExited(o)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(A,a){a=this.setNextCallback(a),this.setState(A,a)},r.setNextCallback=function(A){var a=this,i=!0;return this.nextCallback=function(o){i&&(i=!1,a.nextCallback=null,A(o))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},r.onTransitionEnd=function(A,a){this.setNextCallback(a);var i=this.props.nodeRef?this.props.nodeRef.current:fs.findDOMNode(this),o=A==null&&!this.props.addEndListener;if(!i||o){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var s=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],l=s[0],u=s[1];this.props.addEndListener(l,u)}A!=null&&setTimeout(this.nextCallback,A)},r.render=function(){var A=this.state.status;if(A===Ki)return null;var a=this.props,i=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var o=Gy(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Cr.createElement(Dl.Provider,{value:null},typeof i=="function"?i(A,o):Cr.cloneElement(Cr.Children.only(i),o))},e}(Cr.Component);En.contextType=Dl;En.propTypes={};function ia(){}En.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ia,onEntering:ia,onEntered:ia,onExit:ia,onExiting:ia,onExited:ia};En.UNMOUNTED=Ki;En.EXITED=wA;En.ENTERING=CA;En.ENTERED=wa;En.EXITING=Wf;function lh(t,e){var r=function(a){return e&&O.isValidElement(a)?e(a):a},n=Object.create(null);return t&&O.Children.map(t,function(A){return A}).forEach(function(A){n[A.key]=r(A)}),n}function Xx(t,e){t=t||{},e=e||{};function r(u){return u in e?e[u]:t[u]}var n=Object.create(null),A=[];for(var a in t)a in e?A.length&&(n[a]=A,A=[]):A.push(a);var i,o={};for(var s in e){if(n[s])for(i=0;it.scrollTop;function Rl(t,e){const{timeout:r,easing:n,style:A={}}=t;return{duration:A.transitionDuration??(typeof r=="number"?r:r[e.mode]||0),easing:A.transitionTimingFunction??(typeof n=="object"?n[e.mode]:n),delay:A.transitionDelay}}function Zx(t){return Pe("MuiPaper",t)}Me("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const eF=t=>{const{square:e,elevation:r,variant:n,classes:A}=t,a={root:["root",n,!e&&"rounded",n==="elevation"&&`elevation${r}`]};return Ke(a,Zx,A)},tF=me("div",{name:"MuiPaper",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant],!r.square&&e.rounded,r.variant==="elevation"&&e[`elevation${r.elevation}`]]}})(ke(({theme:t})=>({backgroundColor:(t.vars||t).palette.background.paper,color:(t.vars||t).palette.text.primary,transition:t.transitions.create("box-shadow"),variants:[{props:({ownerState:e})=>!e.square,style:{borderRadius:t.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(t.vars||t).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),ai=O.forwardRef(function(e,r){var h;const n=Ve({props:e,name:"MuiPaper"}),A=Yo(),{className:a,component:i="div",elevation:o=1,square:s=!1,variant:l="elevation",...u}=n,c={...n,component:i,elevation:o,square:s,variant:l},d=eF(c);return I.jsx(tF,{as:i,ownerState:c,className:xe(d.root,a),ref:r,...u,style:{...l==="elevation"&&{"--Paper-shadow":(A.vars||A).shadows[o],...A.vars&&{"--Paper-overlay":(h=A.vars.overlays)==null?void 0:h[o]},...!A.vars&&A.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${dt("#fff",zf(o))}, ${dt("#fff",zf(o))})`}},...u.style}})});function Rr(t,e){const{className:r,elementType:n,ownerState:A,externalForwardedProps:a,getSlotOwnerState:i,internalForwardedProps:o,...s}=e,{component:l,slots:u={[t]:void 0},slotProps:c={[t]:void 0},...d}=a,h=u[t]||n,f=Dy(c[t],A),{props:{component:p,...g},internalRef:m}=Ly({className:r,...s,externalForwardedProps:t==="root"?d:void 0,externalSlotProps:f}),w=Qt(m,f==null?void 0:f.ref,e.ref),v=i?i(g):{},B={...A,...v},b=t==="root"?p||l:p,E=Fa(h,{...t==="root"&&!l&&!u[t]&&o,...t!=="root"&&!u[t]&&o,...g,...b&&{as:b},ref:w},B);return Object.keys(v).forEach(C=>{delete E[C]}),[h,E]}class Ml{constructor(){Bi(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new Ml}static use(){const e=Ty(Ml.create).current,[r,n]=O.useState(!1);return e.shouldMount=r,e.setShouldMount=n,O.useEffect(e.mountEffect,[r]),e}mount(){return this.mounted||(this.mounted=nF(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...e){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.start(...e)})}stop(...e){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.stop(...e)})}pulsate(...e){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.pulsate(...e)})}}function rF(){return Ml.use()}function nF(){let t,e;const r=new Promise((n,A)=>{t=n,e=A});return r.resolve=t,r.reject=e,r}function AF(t){const{className:e,classes:r,pulsate:n=!1,rippleX:A,rippleY:a,rippleSize:i,in:o,onExited:s,timeout:l}=t,[u,c]=O.useState(!1),d=xe(e,r.ripple,r.rippleVisible,n&&r.ripplePulsate),h={width:i,height:i,top:-(i/2)+a,left:-(i/2)+A},f=xe(r.child,u&&r.childLeaving,n&&r.childPulsate);return!o&&!u&&c(!0),O.useEffect(()=>{if(!o&&s!=null){const p=setTimeout(s,l);return()=>{clearTimeout(p)}}},[s,o,l]),I.jsx("span",{className:d,style:h,children:I.jsx("span",{className:f})})}const Tr=Me("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),_f=550,aF=80,iF=jd` 0% { transform: scale(0); opacity: 0.1; @@ -127,9 +127,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${e}Chann animation-iteration-count: infinite; animation-delay: 200ms; } -`,cF=O.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiTouchRipple"}),{center:A=!1,classes:a={},className:i,...o}=n,[s,l]=O.useState([]),u=O.useRef(0),c=O.useRef(null);O.useEffect(()=>{c.current&&(c.current(),c.current=null)},[s]);const d=O.useRef(!1),h=xa(),f=O.useRef(null),p=O.useRef(null),g=O.useCallback(y=>{const{pulsate:b,rippleX:E,rippleY:C,rippleSize:F,cb:w}=y;l(x=>[...x,I.jsx(uF,{classes:{ripple:xe(a.ripple,Tr.ripple),rippleVisible:xe(a.rippleVisible,Tr.rippleVisible),ripplePulsate:xe(a.ripplePulsate,Tr.ripplePulsate),child:xe(a.child,Tr.child),childLeaving:xe(a.childLeaving,Tr.childLeaving),childPulsate:xe(a.childPulsate,Tr.childPulsate)},timeout:_f,pulsate:b,rippleX:E,rippleY:C,rippleSize:F},u.current)]),u.current+=1,c.current=w},[a]),m=O.useCallback((y={},b={},E=()=>{})=>{const{pulsate:C=!1,center:F=A||b.pulsate,fakeElement:w=!1}=b;if((y==null?void 0:y.type)==="mousedown"&&d.current){d.current=!1;return}(y==null?void 0:y.type)==="touchstart"&&(d.current=!0);const x=w?null:p.current,Q=x?x.getBoundingClientRect():{width:0,height:0,left:0,top:0};let S,T,U;if(F||y===void 0||y.clientX===0&&y.clientY===0||!y.clientX&&!y.touches)S=Math.round(Q.width/2),T=Math.round(Q.height/2);else{const{clientX:L,clientY:R}=y.touches&&y.touches.length>0?y.touches[0]:y;S=Math.round(L-Q.left),T=Math.round(R-Q.top)}if(F)U=Math.sqrt((2*Q.width**2+Q.height**2)/3),U%2===0&&(U+=1);else{const L=Math.max(Math.abs((x?x.clientWidth:0)-S),S)*2+2,R=Math.max(Math.abs((x?x.clientHeight:0)-T),T)*2+2;U=Math.sqrt(L**2+R**2)}y!=null&&y.touches?f.current===null&&(f.current=()=>{g({pulsate:C,rippleX:S,rippleY:T,rippleSize:U,cb:E})},h.start(aF,()=>{f.current&&(f.current(),f.current=null)})):g({pulsate:C,rippleX:S,rippleY:T,rippleSize:U,cb:E})},[A,g,h]),B=O.useCallback(()=>{m({},{pulsate:!0})},[m]),v=O.useCallback((y,b)=>{if(h.clear(),(y==null?void 0:y.type)==="touchend"&&f.current){f.current(),f.current=null,h.start(0,()=>{v(y,b)});return}f.current=null,l(E=>E.length>0?E.slice(1):E),c.current=b},[h]);return O.useImperativeHandle(r,()=>({pulsate:B,start:m,stop:v}),[B,m,v]),I.jsx(lF,{className:xe(Tr.root,a.root,i),ref:p,...o,children:I.jsx(uh,{component:null,exit:!0,children:s})})});function fF(t){return Pe("MuiButtonBase",t)}const dF=Me("MuiButtonBase",["root","disabled","focusVisible"]),hF=t=>{const{disabled:e,focusVisible:r,focusVisibleClassName:n,classes:A}=t,i=Ke({root:["root",e&&"disabled",r&&"focusVisible"]},fF,A);return r&&n&&(i.root+=` ${n}`),i},pF=me("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${dF.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),ai=O.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiButtonBase"}),{action:A,centerRipple:a=!1,children:i,className:o,component:s="button",disabled:l=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,focusVisibleClassName:h,LinkComponent:f="a",onBlur:p,onClick:g,onContextMenu:m,onDragLeave:B,onFocus:v,onFocusVisible:y,onKeyDown:b,onKeyUp:E,onMouseDown:C,onMouseLeave:F,onMouseUp:w,onTouchEnd:x,onTouchMove:Q,onTouchStart:S,tabIndex:T=0,TouchRippleProps:U,touchRippleRef:L,type:R,...M}=n,H=O.useRef(null),k=rF(),N=Qt(k.ref,L),[P,K]=O.useState(!1);l&&P&&K(!1),O.useImperativeHandle(A,()=>({focusVisible:()=>{K(!0),H.current.focus()}}),[]);const W=k.shouldMount&&!u&&!l;O.useEffect(()=>{P&&d&&!u&&k.pulsate()},[u,d,P,k]);function X(_,$,D=c){return Mr(G=>($&&$(G),D||k[_](G),!0))}const Z=X("start",C),Ae=X("stop",m),ie=X("stop",B),re=X("stop",w),z=X("stop",_=>{P&&_.preventDefault(),F&&F(_)}),q=X("start",S),ee=X("stop",x),se=X("stop",Q),te=X("stop",_=>{za(_.target)||K(!1),p&&p(_)},!1),ae=Mr(_=>{H.current||(H.current=_.currentTarget),za(_.target)&&(K(!0),y&&y(_)),v&&v(_)}),le=()=>{const _=H.current;return s&&s!=="button"&&!(_.tagName==="A"&&_.href)},ve=Mr(_=>{d&&!_.repeat&&P&&_.key===" "&&k.stop(_,()=>{k.start(_)}),_.target===_.currentTarget&&le()&&_.key===" "&&_.preventDefault(),b&&b(_),_.target===_.currentTarget&&le()&&_.key==="Enter"&&!l&&(_.preventDefault(),g&&g(_))}),ge=Mr(_=>{d&&_.key===" "&&P&&!_.defaultPrevented&&k.stop(_,()=>{k.pulsate(_)}),E&&E(_),g&&_.target===_.currentTarget&&le()&&_.key===" "&&!_.defaultPrevented&&g(_)});let he=s;he==="button"&&(M.href||M.to)&&(he=f);const ye={};he==="button"?(ye.type=R===void 0?"button":R,ye.disabled=l):(!M.href&&!M.to&&(ye.role="button"),l&&(ye["aria-disabled"]=l));const Se=Qt(r,H),Ce={...n,centerRipple:a,component:s,disabled:l,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:T,focusVisible:P},we=hF(Ce);return I.jsxs(pF,{as:he,className:xe(we.root,o),ownerState:Ce,onBlur:te,onClick:g,onContextMenu:Ae,onFocus:ae,onKeyDown:ve,onKeyUp:ge,onMouseDown:Z,onMouseLeave:z,onMouseUp:re,onDragLeave:ie,onTouchEnd:ee,onTouchMove:se,onTouchStart:q,ref:Se,tabIndex:l?-1:T,type:R,...ye,...M,children:[i,W?I.jsx(cF,{ref:N,center:a,...U}):null]})});function gF(t){return typeof t.main=="string"}function vF(t,e=[]){if(!gF(t))return!1;for(const r of e)if(!t.hasOwnProperty(r)||typeof t[r]!="string")return!1;return!0}function vr(t=[]){return([,e])=>e&&vF(e,t)}function mF(t){return Pe("MuiIconButton",t)}const yF=Me("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),BF=t=>{const{classes:e,disabled:r,color:n,edge:A,size:a}=t,i={root:["root",r&&"disabled",n!=="default"&&`color${Fe(n)}`,A&&`edge${Fe(A)}`,`size${Fe(a)}`]};return Ke(i,mF,e)},wF=me(ai,{name:"MuiIconButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.color!=="default"&&e[`color${Fe(r.color)}`],r.edge&&e[`edge${Fe(r.edge)}`],e[`size${Fe(r.size)}`]]}})(ke(({theme:t})=>({textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(t.vars||t).palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),variants:[{props:{disableRipple:!1},style:{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:dt(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),ke(({theme:t})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(t.palette).filter(vr()).map(([e])=>({props:{color:e},style:{color:(t.vars||t).palette[e].main}})),...Object.entries(t.palette).filter(vr()).map(([e])=>({props:{color:e,disableRipple:!1},style:{"&:hover":{backgroundColor:t.vars?`rgba(${(t.vars||t).palette[e].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:dt((t.vars||t).palette[e].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}}})),{props:{size:"small"},style:{padding:5,fontSize:t.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:t.typography.pxToRem(28)}}],[`&.${yF.disabled}`]:{backgroundColor:"transparent",color:(t.vars||t).palette.action.disabled}}))),TA=O.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiIconButton"}),{edge:A=!1,children:a,className:i,color:o="default",disabled:s=!1,disableFocusRipple:l=!1,disableRipple:u=!1,size:c="medium",...d}=n,h={...n,edge:A,color:o,disabled:s,disableFocusRipple:l,disableRipple:u,size:c},f=BF(h);return I.jsx(wF,{className:xe(f.root,i),centerRipple:!0,focusRipple:!l,disabled:s,disableRipple:u,ref:r,...d,ownerState:h,children:a})});function CF(t){return Pe("MuiTypography",t)}Me("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const bF={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},EF=Vx(),xF=t=>{const{align:e,gutterBottom:r,noWrap:n,paragraph:A,variant:a,classes:i}=t,o={root:["root",a,t.align!=="inherit"&&`align${Fe(e)}`,r&&"gutterBottom",n&&"noWrap",A&&"paragraph"]};return Ke(o,CF,i)},FF=me("span",{name:"MuiTypography",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.variant&&e[r.variant],r.align!=="inherit"&&e[`align${Fe(r.align)}`],r.noWrap&&e.noWrap,r.gutterBottom&&e.gutterBottom,r.paragraph&&e.paragraph]}})(ke(({theme:t})=>{var e;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(t.typography).filter(([r,n])=>r!=="inherit"&&n&&typeof n=="object").map(([r,n])=>({props:{variant:r},style:n})),...Object.entries(t.palette).filter(vr()).map(([r])=>({props:{color:r},style:{color:(t.vars||t).palette[r].main}})),...Object.entries(((e=t.palette)==null?void 0:e.text)||{}).filter(([,r])=>typeof r=="string").map(([r])=>({props:{color:`text${Fe(r)}`},style:{color:(t.vars||t).palette.text[r]}})),{props:({ownerState:r})=>r.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:r})=>r.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:r})=>r.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:r})=>r.paragraph,style:{marginBottom:16}}]}})),Rp={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Bt=O.forwardRef(function(e,r){const{color:n,...A}=Ve({props:e,name:"MuiTypography"}),a=!bF[n],i=EF({...A,...a&&{color:n}}),{align:o="inherit",className:s,component:l,gutterBottom:u=!1,noWrap:c=!1,paragraph:d=!1,variant:h="body1",variantMapping:f=Rp,...p}=i,g={...i,align:o,color:n,className:s,component:l,gutterBottom:u,noWrap:c,paragraph:d,variant:h,variantMapping:f},m=l||(d?"p":f[h]||Rp[h])||"span",B=xF(g);return I.jsx(FF,{as:m,ref:r,className:xe(B.root,s),...p,ownerState:g,style:{...o!=="inherit"&&{"--Typography-textAlign":o},...p.style}})});function QF(t){return Pe("MuiAppBar",t)}Me("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const SF=t=>{const{color:e,position:r,classes:n}=t,A={root:["root",`color${Fe(e)}`,`position${Fe(r)}`]};return Ke(A,QF,n)},Mp=(t,e)=>t?`${t==null?void 0:t.replace(")","")}, ${e})`:e,UF=me(Ai,{name:"MuiAppBar",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`position${Fe(r.position)}`],e[`color${Fe(r.color)}`]]}})(ke(({theme:t})=>({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0,variants:[{props:{position:"fixed"},style:{position:"fixed",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}}},{props:{position:"absolute"},style:{position:"absolute",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"sticky"},style:{position:"sticky",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"static"},style:{position:"static"}},{props:{position:"relative"},style:{position:"relative"}},{props:{color:"inherit"},style:{"--AppBar-color":"inherit"}},{props:{color:"default"},style:{"--AppBar-background":t.vars?t.vars.palette.AppBar.defaultBg:t.palette.grey[100],"--AppBar-color":t.vars?t.vars.palette.text.primary:t.palette.getContrastText(t.palette.grey[100]),...t.applyStyles("dark",{"--AppBar-background":t.vars?t.vars.palette.AppBar.defaultBg:t.palette.grey[900],"--AppBar-color":t.vars?t.vars.palette.text.primary:t.palette.getContrastText(t.palette.grey[900])})}},...Object.entries(t.palette).filter(vr(["contrastText"])).map(([e])=>({props:{color:e},style:{"--AppBar-background":(t.vars??t).palette[e].main,"--AppBar-color":(t.vars??t).palette[e].contrastText}})),{props:e=>e.enableColorOnDark===!0&&!["inherit","transparent"].includes(e.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)"}},{props:e=>e.enableColorOnDark===!1&&!["inherit","transparent"].includes(e.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...t.applyStyles("dark",{backgroundColor:t.vars?Mp(t.vars.palette.AppBar.darkBg,"var(--AppBar-background)"):null,color:t.vars?Mp(t.vars.palette.AppBar.darkColor,"var(--AppBar-color)"):null})}},{props:{color:"transparent"},style:{"--AppBar-background":"transparent","--AppBar-color":"inherit",backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...t.applyStyles("dark",{backgroundImage:"none"})}}]}))),TF=O.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiAppBar"}),{className:A,color:a="primary",enableColorOnDark:i=!1,position:o="fixed",...s}=n,l={...n,color:a,position:o,enableColorOnDark:i},u=SF(l);return I.jsx(UF,{square:!0,component:"header",ownerState:l,elevation:4,className:xe(u.root,A,o==="fixed"&&"mui-fixed"),ref:r,...s})});var dr="top",Kr="bottom",Gr="right",hr="left",ch="auto",jo=[dr,Kr,Gr,hr],Wa="start",bo="end",IF="clippingParents",$y="viewport",Ci="popper",LF="reference",Op=jo.reduce(function(t,e){return t.concat([e+"-"+Wa,e+"-"+bo])},[]),zy=[].concat(jo,[ch]).reduce(function(t,e){return t.concat([e,e+"-"+Wa,e+"-"+bo])},[]),DF="beforeRead",RF="read",MF="afterRead",OF="beforeMain",HF="main",kF="afterMain",PF="beforeWrite",NF="write",KF="afterWrite",GF=[DF,RF,MF,OF,HF,kF,PF,NF,KF];function Cn(t){return t?(t.nodeName||"").toLowerCase():null}function xr(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function NA(t){var e=xr(t).Element;return t instanceof e||t instanceof Element}function Nr(t){var e=xr(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function fh(t){if(typeof ShadowRoot>"u")return!1;var e=xr(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function VF(t){var e=t.state;Object.keys(e.elements).forEach(function(r){var n=e.styles[r]||{},A=e.attributes[r]||{},a=e.elements[r];!Nr(a)||!Cn(a)||(Object.assign(a.style,n),Object.keys(A).forEach(function(i){var o=A[i];o===!1?a.removeAttribute(i):a.setAttribute(i,o===!0?"":o)}))})}function $F(t){var e=t.state,r={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,r.popper),e.styles=r,e.elements.arrow&&Object.assign(e.elements.arrow.style,r.arrow),function(){Object.keys(e.elements).forEach(function(n){var A=e.elements[n],a=e.attributes[n]||{},i=Object.keys(e.styles.hasOwnProperty(n)?e.styles[n]:r[n]),o=i.reduce(function(s,l){return s[l]="",s},{});!Nr(A)||!Cn(A)||(Object.assign(A.style,o),Object.keys(a).forEach(function(s){A.removeAttribute(s)}))})}}const Wy={name:"applyStyles",enabled:!0,phase:"write",fn:VF,effect:$F,requires:["computeStyles"]};function wn(t){return t.split("-")[0]}var MA=Math.max,Ol=Math.min,_a=Math.round;function Xf(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function _y(){return!/^((?!chrome|android).)*safari/i.test(Xf())}function Xa(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!1);var n=t.getBoundingClientRect(),A=1,a=1;e&&Nr(t)&&(A=t.offsetWidth>0&&_a(n.width)/t.offsetWidth||1,a=t.offsetHeight>0&&_a(n.height)/t.offsetHeight||1);var i=NA(t)?xr(t):window,o=i.visualViewport,s=!_y()&&r,l=(n.left+(s&&o?o.offsetLeft:0))/A,u=(n.top+(s&&o?o.offsetTop:0))/a,c=n.width/A,d=n.height/a;return{width:c,height:d,top:u,right:l+c,bottom:u+d,left:l,x:l,y:u}}function dh(t){var e=Xa(t),r=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-r)<=1&&(r=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:r,height:n}}function Xy(t,e){var r=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(r&&fh(r)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Hn(t){return xr(t).getComputedStyle(t)}function zF(t){return["table","td","th"].indexOf(Cn(t))>=0}function pA(t){return((NA(t)?t.ownerDocument:t.document)||window.document).documentElement}function Xu(t){return Cn(t)==="html"?t:t.assignedSlot||t.parentNode||(fh(t)?t.host:null)||pA(t)}function Hp(t){return!Nr(t)||Hn(t).position==="fixed"?null:t.offsetParent}function WF(t){var e=/firefox/i.test(Xf()),r=/Trident/i.test(Xf());if(r&&Nr(t)){var n=Hn(t);if(n.position==="fixed")return null}var A=Xu(t);for(fh(A)&&(A=A.host);Nr(A)&&["html","body"].indexOf(Cn(A))<0;){var a=Hn(A);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||e&&a.willChange==="filter"||e&&a.filter&&a.filter!=="none")return A;A=A.parentNode}return null}function qo(t){for(var e=xr(t),r=Hp(t);r&&zF(r)&&Hn(r).position==="static";)r=Hp(r);return r&&(Cn(r)==="html"||Cn(r)==="body"&&Hn(r).position==="static")?e:r||WF(t)||e}function hh(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function ro(t,e,r){return MA(t,Ol(e,r))}function _F(t,e,r){var n=ro(t,e,r);return n>r?r:n}function Yy(){return{top:0,right:0,bottom:0,left:0}}function jy(t){return Object.assign({},Yy(),t)}function qy(t,e){return e.reduce(function(r,n){return r[n]=t,r},{})}var XF=function(e,r){return e=typeof e=="function"?e(Object.assign({},r.rects,{placement:r.placement})):e,jy(typeof e!="number"?e:qy(e,jo))};function YF(t){var e,r=t.state,n=t.name,A=t.options,a=r.elements.arrow,i=r.modifiersData.popperOffsets,o=wn(r.placement),s=hh(o),l=[hr,Gr].indexOf(o)>=0,u=l?"height":"width";if(!(!a||!i)){var c=XF(A.padding,r),d=dh(a),h=s==="y"?dr:hr,f=s==="y"?Kr:Gr,p=r.rects.reference[u]+r.rects.reference[s]-i[s]-r.rects.popper[u],g=i[s]-r.rects.reference[s],m=qo(a),B=m?s==="y"?m.clientHeight||0:m.clientWidth||0:0,v=p/2-g/2,y=c[h],b=B-d[u]-c[f],E=B/2-d[u]/2+v,C=ro(y,E,b),F=s;r.modifiersData[n]=(e={},e[F]=C,e.centerOffset=C-E,e)}}function jF(t){var e=t.state,r=t.options,n=r.element,A=n===void 0?"[data-popper-arrow]":n;A!=null&&(typeof A=="string"&&(A=e.elements.popper.querySelector(A),!A)||Xy(e.elements.popper,A)&&(e.elements.arrow=A))}const qF={name:"arrow",enabled:!0,phase:"main",fn:YF,effect:jF,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ya(t){return t.split("-")[1]}var JF={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ZF(t,e){var r=t.x,n=t.y,A=e.devicePixelRatio||1;return{x:_a(r*A)/A||0,y:_a(n*A)/A||0}}function kp(t){var e,r=t.popper,n=t.popperRect,A=t.placement,a=t.variation,i=t.offsets,o=t.position,s=t.gpuAcceleration,l=t.adaptive,u=t.roundOffsets,c=t.isFixed,d=i.x,h=d===void 0?0:d,f=i.y,p=f===void 0?0:f,g=typeof u=="function"?u({x:h,y:p}):{x:h,y:p};h=g.x,p=g.y;var m=i.hasOwnProperty("x"),B=i.hasOwnProperty("y"),v=hr,y=dr,b=window;if(l){var E=qo(r),C="clientHeight",F="clientWidth";if(E===xr(r)&&(E=pA(r),Hn(E).position!=="static"&&o==="absolute"&&(C="scrollHeight",F="scrollWidth")),E=E,A===dr||(A===hr||A===Gr)&&a===bo){y=Kr;var w=c&&E===b&&b.visualViewport?b.visualViewport.height:E[C];p-=w-n.height,p*=s?1:-1}if(A===hr||(A===dr||A===Kr)&&a===bo){v=Gr;var x=c&&E===b&&b.visualViewport?b.visualViewport.width:E[F];h-=x-n.width,h*=s?1:-1}}var Q=Object.assign({position:o},l&&JF),S=u===!0?ZF({x:h,y:p},xr(r)):{x:h,y:p};if(h=S.x,p=S.y,s){var T;return Object.assign({},Q,(T={},T[y]=B?"0":"",T[v]=m?"0":"",T.transform=(b.devicePixelRatio||1)<=1?"translate("+h+"px, "+p+"px)":"translate3d("+h+"px, "+p+"px, 0)",T))}return Object.assign({},Q,(e={},e[y]=B?p+"px":"",e[v]=m?h+"px":"",e.transform="",e))}function eQ(t){var e=t.state,r=t.options,n=r.gpuAcceleration,A=n===void 0?!0:n,a=r.adaptive,i=a===void 0?!0:a,o=r.roundOffsets,s=o===void 0?!0:o,l={placement:wn(e.placement),variation:Ya(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:A,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,kp(Object.assign({},l,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:i,roundOffsets:s})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,kp(Object.assign({},l,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const tQ={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:eQ,data:{}};var ys={passive:!0};function rQ(t){var e=t.state,r=t.instance,n=t.options,A=n.scroll,a=A===void 0?!0:A,i=n.resize,o=i===void 0?!0:i,s=xr(e.elements.popper),l=[].concat(e.scrollParents.reference,e.scrollParents.popper);return a&&l.forEach(function(u){u.addEventListener("scroll",r.update,ys)}),o&&s.addEventListener("resize",r.update,ys),function(){a&&l.forEach(function(u){u.removeEventListener("scroll",r.update,ys)}),o&&s.removeEventListener("resize",r.update,ys)}}const nQ={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:rQ,data:{}};var AQ={left:"right",right:"left",bottom:"top",top:"bottom"};function pl(t){return t.replace(/left|right|bottom|top/g,function(e){return AQ[e]})}var aQ={start:"end",end:"start"};function Pp(t){return t.replace(/start|end/g,function(e){return aQ[e]})}function ph(t){var e=xr(t),r=e.pageXOffset,n=e.pageYOffset;return{scrollLeft:r,scrollTop:n}}function gh(t){return Xa(pA(t)).left+ph(t).scrollLeft}function iQ(t,e){var r=xr(t),n=pA(t),A=r.visualViewport,a=n.clientWidth,i=n.clientHeight,o=0,s=0;if(A){a=A.width,i=A.height;var l=_y();(l||!l&&e==="fixed")&&(o=A.offsetLeft,s=A.offsetTop)}return{width:a,height:i,x:o+gh(t),y:s}}function oQ(t){var e,r=pA(t),n=ph(t),A=(e=t.ownerDocument)==null?void 0:e.body,a=MA(r.scrollWidth,r.clientWidth,A?A.scrollWidth:0,A?A.clientWidth:0),i=MA(r.scrollHeight,r.clientHeight,A?A.scrollHeight:0,A?A.clientHeight:0),o=-n.scrollLeft+gh(t),s=-n.scrollTop;return Hn(A||r).direction==="rtl"&&(o+=MA(r.clientWidth,A?A.clientWidth:0)-a),{width:a,height:i,x:o,y:s}}function vh(t){var e=Hn(t),r=e.overflow,n=e.overflowX,A=e.overflowY;return/auto|scroll|overlay|hidden/.test(r+A+n)}function Jy(t){return["html","body","#document"].indexOf(Cn(t))>=0?t.ownerDocument.body:Nr(t)&&vh(t)?t:Jy(Xu(t))}function no(t,e){var r;e===void 0&&(e=[]);var n=Jy(t),A=n===((r=t.ownerDocument)==null?void 0:r.body),a=xr(n),i=A?[a].concat(a.visualViewport||[],vh(n)?n:[]):n,o=e.concat(i);return A?o:o.concat(no(Xu(i)))}function Yf(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function sQ(t,e){var r=Xa(t,!1,e==="fixed");return r.top=r.top+t.clientTop,r.left=r.left+t.clientLeft,r.bottom=r.top+t.clientHeight,r.right=r.left+t.clientWidth,r.width=t.clientWidth,r.height=t.clientHeight,r.x=r.left,r.y=r.top,r}function Np(t,e,r){return e===$y?Yf(iQ(t,r)):NA(e)?sQ(e,r):Yf(oQ(pA(t)))}function lQ(t){var e=no(Xu(t)),r=["absolute","fixed"].indexOf(Hn(t).position)>=0,n=r&&Nr(t)?qo(t):t;return NA(n)?e.filter(function(A){return NA(A)&&Xy(A,n)&&Cn(A)!=="body"}):[]}function uQ(t,e,r,n){var A=e==="clippingParents"?lQ(t):[].concat(e),a=[].concat(A,[r]),i=a[0],o=a.reduce(function(s,l){var u=Np(t,l,n);return s.top=MA(u.top,s.top),s.right=Ol(u.right,s.right),s.bottom=Ol(u.bottom,s.bottom),s.left=MA(u.left,s.left),s},Np(t,i,n));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function Zy(t){var e=t.reference,r=t.element,n=t.placement,A=n?wn(n):null,a=n?Ya(n):null,i=e.x+e.width/2-r.width/2,o=e.y+e.height/2-r.height/2,s;switch(A){case dr:s={x:i,y:e.y-r.height};break;case Kr:s={x:i,y:e.y+e.height};break;case Gr:s={x:e.x+e.width,y:o};break;case hr:s={x:e.x-r.width,y:o};break;default:s={x:e.x,y:e.y}}var l=A?hh(A):null;if(l!=null){var u=l==="y"?"height":"width";switch(a){case Wa:s[l]=s[l]-(e[u]/2-r[u]/2);break;case bo:s[l]=s[l]+(e[u]/2-r[u]/2);break}}return s}function Eo(t,e){e===void 0&&(e={});var r=e,n=r.placement,A=n===void 0?t.placement:n,a=r.strategy,i=a===void 0?t.strategy:a,o=r.boundary,s=o===void 0?IF:o,l=r.rootBoundary,u=l===void 0?$y:l,c=r.elementContext,d=c===void 0?Ci:c,h=r.altBoundary,f=h===void 0?!1:h,p=r.padding,g=p===void 0?0:p,m=jy(typeof g!="number"?g:qy(g,jo)),B=d===Ci?LF:Ci,v=t.rects.popper,y=t.elements[f?B:d],b=uQ(NA(y)?y:y.contextElement||pA(t.elements.popper),s,u,i),E=Xa(t.elements.reference),C=Zy({reference:E,element:v,strategy:"absolute",placement:A}),F=Yf(Object.assign({},v,C)),w=d===Ci?F:E,x={top:b.top-w.top+m.top,bottom:w.bottom-b.bottom+m.bottom,left:b.left-w.left+m.left,right:w.right-b.right+m.right},Q=t.modifiersData.offset;if(d===Ci&&Q){var S=Q[A];Object.keys(x).forEach(function(T){var U=[Gr,Kr].indexOf(T)>=0?1:-1,L=[dr,Kr].indexOf(T)>=0?"y":"x";x[T]+=S[L]*U})}return x}function cQ(t,e){e===void 0&&(e={});var r=e,n=r.placement,A=r.boundary,a=r.rootBoundary,i=r.padding,o=r.flipVariations,s=r.allowedAutoPlacements,l=s===void 0?zy:s,u=Ya(n),c=u?o?Op:Op.filter(function(f){return Ya(f)===u}):jo,d=c.filter(function(f){return l.indexOf(f)>=0});d.length===0&&(d=c);var h=d.reduce(function(f,p){return f[p]=Eo(t,{placement:p,boundary:A,rootBoundary:a,padding:i})[wn(p)],f},{});return Object.keys(h).sort(function(f,p){return h[f]-h[p]})}function fQ(t){if(wn(t)===ch)return[];var e=pl(t);return[Pp(t),e,Pp(e)]}function dQ(t){var e=t.state,r=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var A=r.mainAxis,a=A===void 0?!0:A,i=r.altAxis,o=i===void 0?!0:i,s=r.fallbackPlacements,l=r.padding,u=r.boundary,c=r.rootBoundary,d=r.altBoundary,h=r.flipVariations,f=h===void 0?!0:h,p=r.allowedAutoPlacements,g=e.options.placement,m=wn(g),B=m===g,v=s||(B||!f?[pl(g)]:fQ(g)),y=[g].concat(v).reduce(function(X,Z){return X.concat(wn(Z)===ch?cQ(e,{placement:Z,boundary:u,rootBoundary:c,padding:l,flipVariations:f,allowedAutoPlacements:p}):Z)},[]),b=e.rects.reference,E=e.rects.popper,C=new Map,F=!0,w=y[0],x=0;x=0,L=U?"width":"height",R=Eo(e,{placement:Q,boundary:u,rootBoundary:c,altBoundary:d,padding:l}),M=U?T?Gr:hr:T?Kr:dr;b[L]>E[L]&&(M=pl(M));var H=pl(M),k=[];if(a&&k.push(R[S]<=0),o&&k.push(R[M]<=0,R[H]<=0),k.every(function(X){return X})){w=Q,F=!1;break}C.set(Q,k)}if(F)for(var N=f?3:1,P=function(Z){var Ae=y.find(function(ie){var re=C.get(ie);if(re)return re.slice(0,Z).every(function(z){return z})});if(Ae)return w=Ae,"break"},K=N;K>0;K--){var W=P(K);if(W==="break")break}e.placement!==w&&(e.modifiersData[n]._skip=!0,e.placement=w,e.reset=!0)}}const hQ={name:"flip",enabled:!0,phase:"main",fn:dQ,requiresIfExists:["offset"],data:{_skip:!1}};function Kp(t,e,r){return r===void 0&&(r={x:0,y:0}),{top:t.top-e.height-r.y,right:t.right-e.width+r.x,bottom:t.bottom-e.height+r.y,left:t.left-e.width-r.x}}function Gp(t){return[dr,Gr,Kr,hr].some(function(e){return t[e]>=0})}function pQ(t){var e=t.state,r=t.name,n=e.rects.reference,A=e.rects.popper,a=e.modifiersData.preventOverflow,i=Eo(e,{elementContext:"reference"}),o=Eo(e,{altBoundary:!0}),s=Kp(i,n),l=Kp(o,A,a),u=Gp(s),c=Gp(l);e.modifiersData[r]={referenceClippingOffsets:s,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:c},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":c})}const gQ={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:pQ};function vQ(t,e,r){var n=wn(t),A=[hr,dr].indexOf(n)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},e,{placement:t})):r,i=a[0],o=a[1];return i=i||0,o=(o||0)*A,[hr,Gr].indexOf(n)>=0?{x:o,y:i}:{x:i,y:o}}function mQ(t){var e=t.state,r=t.options,n=t.name,A=r.offset,a=A===void 0?[0,0]:A,i=zy.reduce(function(u,c){return u[c]=vQ(c,e.rects,a),u},{}),o=i[e.placement],s=o.x,l=o.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=s,e.modifiersData.popperOffsets.y+=l),e.modifiersData[n]=i}const yQ={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:mQ};function BQ(t){var e=t.state,r=t.name;e.modifiersData[r]=Zy({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const wQ={name:"popperOffsets",enabled:!0,phase:"read",fn:BQ,data:{}};function CQ(t){return t==="x"?"y":"x"}function bQ(t){var e=t.state,r=t.options,n=t.name,A=r.mainAxis,a=A===void 0?!0:A,i=r.altAxis,o=i===void 0?!1:i,s=r.boundary,l=r.rootBoundary,u=r.altBoundary,c=r.padding,d=r.tether,h=d===void 0?!0:d,f=r.tetherOffset,p=f===void 0?0:f,g=Eo(e,{boundary:s,rootBoundary:l,padding:c,altBoundary:u}),m=wn(e.placement),B=Ya(e.placement),v=!B,y=hh(m),b=CQ(y),E=e.modifiersData.popperOffsets,C=e.rects.reference,F=e.rects.popper,w=typeof p=="function"?p(Object.assign({},e.rects,{placement:e.placement})):p,x=typeof w=="number"?{mainAxis:w,altAxis:w}:Object.assign({mainAxis:0,altAxis:0},w),Q=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,S={x:0,y:0};if(E){if(a){var T,U=y==="y"?dr:hr,L=y==="y"?Kr:Gr,R=y==="y"?"height":"width",M=E[y],H=M+g[U],k=M-g[L],N=h?-F[R]/2:0,P=B===Wa?C[R]:F[R],K=B===Wa?-F[R]:-C[R],W=e.elements.arrow,X=h&&W?dh(W):{width:0,height:0},Z=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Yy(),Ae=Z[U],ie=Z[L],re=ro(0,C[R],X[R]),z=v?C[R]/2-N-re-Ae-x.mainAxis:P-re-Ae-x.mainAxis,q=v?-C[R]/2+N+re+ie+x.mainAxis:K+re+ie+x.mainAxis,ee=e.elements.arrow&&qo(e.elements.arrow),se=ee?y==="y"?ee.clientTop||0:ee.clientLeft||0:0,te=(T=Q==null?void 0:Q[y])!=null?T:0,ae=M+z-te-se,le=M+q-te,ve=ro(h?Ol(H,ae):H,M,h?MA(k,le):k);E[y]=ve,S[y]=ve-M}if(o){var ge,he=y==="x"?dr:hr,ye=y==="x"?Kr:Gr,Se=E[b],Ce=b==="y"?"height":"width",we=Se+g[he],_=Se-g[ye],$=[dr,hr].indexOf(m)!==-1,D=(ge=Q==null?void 0:Q[b])!=null?ge:0,G=$?we:Se-C[Ce]-F[Ce]-D+x.altAxis,J=$?Se+C[Ce]+F[Ce]-D-x.altAxis:_,j=h&&$?_F(G,Se,J):ro(h?G:we,Se,h?J:_);E[b]=j,S[b]=j-Se}e.modifiersData[n]=S}}const EQ={name:"preventOverflow",enabled:!0,phase:"main",fn:bQ,requiresIfExists:["offset"]};function xQ(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function FQ(t){return t===xr(t)||!Nr(t)?ph(t):xQ(t)}function QQ(t){var e=t.getBoundingClientRect(),r=_a(e.width)/t.offsetWidth||1,n=_a(e.height)/t.offsetHeight||1;return r!==1||n!==1}function SQ(t,e,r){r===void 0&&(r=!1);var n=Nr(e),A=Nr(e)&&QQ(e),a=pA(e),i=Xa(t,A,r),o={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(n||!n&&!r)&&((Cn(e)!=="body"||vh(a))&&(o=FQ(e)),Nr(e)?(s=Xa(e,!0),s.x+=e.clientLeft,s.y+=e.clientTop):a&&(s.x=gh(a))),{x:i.left+o.scrollLeft-s.x,y:i.top+o.scrollTop-s.y,width:i.width,height:i.height}}function UQ(t){var e=new Map,r=new Set,n=[];t.forEach(function(a){e.set(a.name,a)});function A(a){r.add(a.name);var i=[].concat(a.requires||[],a.requiresIfExists||[]);i.forEach(function(o){if(!r.has(o)){var s=e.get(o);s&&A(s)}}),n.push(a)}return t.forEach(function(a){r.has(a.name)||A(a)}),n}function TQ(t){var e=UQ(t);return GF.reduce(function(r,n){return r.concat(e.filter(function(A){return A.phase===n}))},[])}function IQ(t){var e;return function(){return e||(e=new Promise(function(r){Promise.resolve().then(function(){e=void 0,r(t())})})),e}}function LQ(t){var e=t.reduce(function(r,n){var A=r[n.name];return r[n.name]=A?Object.assign({},A,n,{options:Object.assign({},A.options,n.options),data:Object.assign({},A.data,n.data)}):n,r},{});return Object.keys(e).map(function(r){return e[r]})}var Vp={placement:"bottom",modifiers:[],strategy:"absolute"};function $p(){for(var t=arguments.length,e=new Array(t),r=0;r{a||o(MQ(A)||document.body)},[A,a]),rn(()=>{if(i&&!a)return Vf(r,i),()=>{Vf(r,null)}},[r,i,a]),a){if(O.isValidElement(n)){const l={ref:s};return O.cloneElement(n,l)}return I.jsx(O.Fragment,{children:n})}return I.jsx(O.Fragment,{children:i&&VC.createPortal(n,i)})});function OQ(t){return Pe("MuiPopper",t)}Me("MuiPopper",["root"]);function HQ(t,e){if(e==="ltr")return t;switch(t){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return t}}function jf(t){return typeof t=="function"?t():t}function kQ(t){return t.nodeType!==void 0}const PQ=t=>{const{classes:e}=t;return Ke({root:["root"]},OQ,e)},NQ={},KQ=O.forwardRef(function(e,r){const{anchorEl:n,children:A,direction:a,disablePortal:i,modifiers:o,open:s,placement:l,popperOptions:u,popperRef:c,slotProps:d={},slots:h={},TransitionProps:f,ownerState:p,...g}=e,m=O.useRef(null),B=Qt(m,r),v=O.useRef(null),y=Qt(v,c),b=O.useRef(y);rn(()=>{b.current=y},[y]),O.useImperativeHandle(c,()=>v.current,[]);const E=HQ(l,a),[C,F]=O.useState(E),[w,x]=O.useState(jf(n));O.useEffect(()=>{v.current&&v.current.forceUpdate()}),O.useEffect(()=>{n&&x(jf(n))},[n]),rn(()=>{if(!w||!s)return;const L=H=>{F(H.placement)};let R=[{name:"preventOverflow",options:{altBoundary:i}},{name:"flip",options:{altBoundary:i}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:H})=>{L(H)}}];o!=null&&(R=R.concat(o)),u&&u.modifiers!=null&&(R=R.concat(u.modifiers));const M=e0(w,m.current,{placement:E,...u,modifiers:R});return b.current(M),()=>{M.destroy(),b.current(null)}},[w,i,o,s,u,E]);const Q={placement:C};f!==null&&(Q.TransitionProps=f);const S=PQ(e),T=h.root??"div",U=Yr({elementType:T,externalSlotProps:d.root,externalForwardedProps:g,additionalProps:{role:"tooltip",ref:B},ownerState:e,className:S.root});return I.jsx(T,{...U,children:typeof A=="function"?A(Q):A})}),GQ=O.forwardRef(function(e,r){const{anchorEl:n,children:A,container:a,direction:i="ltr",disablePortal:o=!1,keepMounted:s=!1,modifiers:l,open:u,placement:c="bottom",popperOptions:d=NQ,popperRef:h,style:f,transition:p=!1,slotProps:g={},slots:m={},...B}=e,[v,y]=O.useState(!0),b=()=>{y(!1)},E=()=>{y(!0)};if(!s&&!u&&(!p||v))return null;let C;if(a)C=a;else if(n){const x=jf(n);C=x&&kQ(x)?Ft(x).body:Ft(null).body}const F=!u&&s&&(!p||v)?"none":void 0,w=p?{in:u,onEnter:b,onExited:E}:void 0;return I.jsx(t0,{disablePortal:o,container:C,children:I.jsx(KQ,{anchorEl:n,direction:i,disablePortal:o,modifiers:l,ref:r,open:p?!v:u,placement:c,popperOptions:d,popperRef:h,slotProps:g,slots:m,...B,style:{position:"fixed",top:0,left:0,display:F,...f},TransitionProps:w,children:A})})}),VQ=me(GQ,{name:"MuiPopper",slot:"Root",overridesResolver:(t,e)=>e.root})({}),Yu=O.forwardRef(function(e,r){const n=_o(),A=Ve({props:e,name:"MuiPopper"}),{anchorEl:a,component:i,components:o,componentsProps:s,container:l,disablePortal:u,keepMounted:c,modifiers:d,open:h,placement:f,popperOptions:p,popperRef:g,transition:m,slots:B,slotProps:v,...y}=A,b=(B==null?void 0:B.root)??(o==null?void 0:o.Root),E={anchorEl:a,container:l,disablePortal:u,keepMounted:c,modifiers:d,open:h,placement:f,popperOptions:p,popperRef:g,transition:m,...y};return I.jsx(VQ,{as:i,direction:n?"rtl":"ltr",slots:{root:b},slotProps:v??s,...E,ref:r})});function Bs(t){return parseInt(t,10)||0}const $Q={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function zQ(t){return t==null||Object.keys(t).length===0||t.outerHeightStyle===0&&!t.overflowing}const WQ=O.forwardRef(function(e,r){const{onChange:n,maxRows:A,minRows:a=1,style:i,value:o,...s}=e,{current:l}=O.useRef(o!=null),u=O.useRef(null),c=Qt(r,u),d=O.useRef(null),h=O.useRef(null),f=O.useCallback(()=>{const m=u.current,v=PA(m).getComputedStyle(m);if(v.width==="0px")return{outerHeightStyle:0,overflowing:!1};const y=h.current;y.style.width=v.width,y.value=m.value||e.placeholder||"x",y.value.slice(-1)===` -`&&(y.value+=" ");const b=v.boxSizing,E=Bs(v.paddingBottom)+Bs(v.paddingTop),C=Bs(v.borderBottomWidth)+Bs(v.borderTopWidth),F=y.scrollHeight;y.value="x";const w=y.scrollHeight;let x=F;a&&(x=Math.max(Number(a)*w,x)),A&&(x=Math.min(Number(A)*w,x)),x=Math.max(x,w);const Q=x+(b==="border-box"?E+C:0),S=Math.abs(x-F)<=1;return{outerHeightStyle:Q,overflowing:S}},[A,a,e.placeholder]),p=O.useCallback(()=>{const m=f();if(zQ(m))return;const B=m.outerHeightStyle,v=u.current;d.current!==B&&(d.current=B,v.style.height=`${B}px`),v.style.overflow=m.overflowing?"hidden":""},[f]);rn(()=>{const m=()=>{p()};let B;const v=Uy(m),y=u.current,b=PA(y);b.addEventListener("resize",v);let E;return typeof ResizeObserver<"u"&&(E=new ResizeObserver(m),E.observe(y)),()=>{v.clear(),cancelAnimationFrame(B),b.removeEventListener("resize",v),E&&E.disconnect()}},[f,p]),rn(()=>{p()});const g=m=>{l||p(),n&&n(m)};return I.jsxs(O.Fragment,{children:[I.jsx("textarea",{value:o,onChange:g,ref:c,rows:a,style:i,...s}),I.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:h,tabIndex:-1,style:{...$Q.shadow,...i,paddingTop:0,paddingBottom:0}})]})});function nA(t){return typeof t=="string"}function qA({props:t,states:e,muiFormControl:r}){return e.reduce((n,A)=>(n[A]=t[A],r&&typeof t[A]>"u"&&(n[A]=r[A]),n),{})}const ju=O.createContext(void 0);function Vn(){return O.useContext(ju)}function zp(t){return t!=null&&!(Array.isArray(t)&&t.length===0)}function Hl(t,e=!1){return t&&(zp(t.value)&&t.value!==""||e&&zp(t.defaultValue)&&t.defaultValue!=="")}function _Q(t){return t.startAdornment}function XQ(t){return Pe("MuiInputBase",t)}const ja=Me("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var Wp;const qu=(t,e)=>{const{ownerState:r}=t;return[e.root,r.formControl&&e.formControl,r.startAdornment&&e.adornedStart,r.endAdornment&&e.adornedEnd,r.error&&e.error,r.size==="small"&&e.sizeSmall,r.multiline&&e.multiline,r.color&&e[`color${Fe(r.color)}`],r.fullWidth&&e.fullWidth,r.hiddenLabel&&e.hiddenLabel]},Ju=(t,e)=>{const{ownerState:r}=t;return[e.input,r.size==="small"&&e.inputSizeSmall,r.multiline&&e.inputMultiline,r.type==="search"&&e.inputTypeSearch,r.startAdornment&&e.inputAdornedStart,r.endAdornment&&e.inputAdornedEnd,r.hiddenLabel&&e.inputHiddenLabel]},YQ=t=>{const{classes:e,color:r,disabled:n,error:A,endAdornment:a,focused:i,formControl:o,fullWidth:s,hiddenLabel:l,multiline:u,readOnly:c,size:d,startAdornment:h,type:f}=t,p={root:["root",`color${Fe(r)}`,n&&"disabled",A&&"error",s&&"fullWidth",i&&"focused",o&&"formControl",d&&d!=="medium"&&`size${Fe(d)}`,u&&"multiline",h&&"adornedStart",a&&"adornedEnd",l&&"hiddenLabel",c&&"readOnly"],input:["input",n&&"disabled",f==="search"&&"inputTypeSearch",u&&"inputMultiline",d==="small"&&"inputSizeSmall",l&&"inputHiddenLabel",h&&"inputAdornedStart",a&&"inputAdornedEnd",c&&"readOnly"]};return Ke(p,XQ,e)},Zu=me("div",{name:"MuiInputBase",slot:"Root",overridesResolver:qu})(ke(({theme:t})=>({...t.typography.body1,color:(t.vars||t).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${ja.disabled}`]:{color:(t.vars||t).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:e})=>e.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:e,size:r})=>e.multiline&&r==="small",style:{paddingTop:1}},{props:({ownerState:e})=>e.fullWidth,style:{width:"100%"}}]}))),ec=me("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Ju})(ke(({theme:t})=>{const e=t.palette.mode==="light",r={color:"currentColor",...t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:e?.42:.5},transition:t.transitions.create("opacity",{duration:t.transitions.duration.shorter})},n={opacity:"0 !important"},A=t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:e?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${ja.formControl} &`]:{"&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus::-webkit-input-placeholder":A,"&:focus::-moz-placeholder":A,"&:focus::-ms-input-placeholder":A},[`&.${ja.disabled}`]:{opacity:1,WebkitTextFillColor:(t.vars||t).palette.text.disabled},variants:[{props:({ownerState:a})=>!a.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:a})=>a.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),_p=Gx({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),Jo=O.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiInputBase"}),{"aria-describedby":A,autoComplete:a,autoFocus:i,className:o,color:s,components:l={},componentsProps:u={},defaultValue:c,disabled:d,disableInjectingGlobalStyles:h,endAdornment:f,error:p,fullWidth:g=!1,id:m,inputComponent:B="input",inputProps:v={},inputRef:y,margin:b,maxRows:E,minRows:C,multiline:F=!1,name:w,onBlur:x,onChange:Q,onClick:S,onFocus:T,onKeyDown:U,onKeyUp:L,placeholder:R,readOnly:M,renderSuffix:H,rows:k,size:N,slotProps:P={},slots:K={},startAdornment:W,type:X="text",value:Z,...Ae}=n,ie=v.value!=null?v.value:Z,{current:re}=O.useRef(ie!=null),z=O.useRef(),q=O.useCallback(Y=>{},[]),ee=Qt(z,y,v.ref,q),[se,te]=O.useState(!1),ae=Vn(),le=qA({props:n,muiFormControl:ae,states:["color","disabled","error","hiddenLabel","size","required","filled"]});le.focused=ae?ae.focused:se,O.useEffect(()=>{!ae&&d&&se&&(te(!1),x&&x())},[ae,d,se,x]);const ve=ae&&ae.onFilled,ge=ae&&ae.onEmpty,he=O.useCallback(Y=>{Hl(Y)?ve&&ve():ge&&ge()},[ve,ge]);rn(()=>{re&&he({value:ie})},[ie,he,re]);const ye=Y=>{T&&T(Y),v.onFocus&&v.onFocus(Y),ae&&ae.onFocus?ae.onFocus(Y):te(!0)},Se=Y=>{x&&x(Y),v.onBlur&&v.onBlur(Y),ae&&ae.onBlur?ae.onBlur(Y):te(!1)},Ce=(Y,...de)=>{if(!re){const Te=Y.target||z.current;if(Te==null)throw new Error(Mn(1));he({value:Te.value})}v.onChange&&v.onChange(Y,...de),Q&&Q(Y,...de)};O.useEffect(()=>{he(z.current)},[]);const we=Y=>{z.current&&Y.currentTarget===Y.target&&z.current.focus(),S&&S(Y)};let _=B,$=v;F&&_==="input"&&(k?$={type:void 0,minRows:k,maxRows:k,...$}:$={type:void 0,maxRows:E,minRows:C,...$},_=WQ);const D=Y=>{he(Y.animationName==="mui-auto-fill-cancel"?z.current:{value:"x"})};O.useEffect(()=>{ae&&ae.setAdornedStart(!!W)},[ae,W]);const G={...n,color:le.color||"primary",disabled:le.disabled,endAdornment:f,error:le.error,focused:le.focused,formControl:ae,fullWidth:g,hiddenLabel:le.hiddenLabel,multiline:F,size:le.size,startAdornment:W,type:X},J=YQ(G),j=K.root||l.Root||Zu,ne=P.root||u.root||{},ce=K.input||l.Input||ec;return $={...$,...P.input??u.input},I.jsxs(O.Fragment,{children:[!h&&typeof _p=="function"&&(Wp||(Wp=I.jsx(_p,{}))),I.jsxs(j,{...ne,ref:r,onClick:we,...Ae,...!nA(j)&&{ownerState:{...G,...ne.ownerState}},className:xe(J.root,ne.className,o,M&&"MuiInputBase-readOnly"),children:[W,I.jsx(ju.Provider,{value:null,children:I.jsx(ce,{"aria-invalid":le.error,"aria-describedby":A,autoComplete:a,autoFocus:i,defaultValue:c,disabled:le.disabled,id:m,onAnimationStart:D,name:w,placeholder:R,readOnly:M,required:le.required,rows:k,value:ie,onKeyDown:U,onKeyUp:L,type:X,...$,...!nA(ce)&&{as:_,ownerState:{...G,...$.ownerState}},ref:ee,className:xe(J.input,$.className,M&&"MuiInputBase-readOnly"),onBlur:Se,onChange:Ce,onFocus:ye})}),f,H?H({...le,startAdornment:W}):null]})]})});function jQ(t){return Pe("MuiInput",t)}const bi={...ja,...Me("MuiInput",["root","underline","input"])};function qQ(t){return Pe("MuiOutlinedInput",t)}const sn={...ja,...Me("MuiOutlinedInput",["root","notchedOutline","input"])};function JQ(t){return Pe("MuiFilledInput",t)}const mA={...ja,...Me("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},ZQ=vt(I.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),eS={entering:{opacity:1},entered:{opacity:1}},tS=O.forwardRef(function(e,r){const n=Yo(),A={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:a,appear:i=!0,children:o,easing:s,in:l,onEnter:u,onEntered:c,onEntering:d,onExit:h,onExited:f,onExiting:p,style:g,timeout:m=A,TransitionComponent:B=En,...v}=e,y=O.useRef(null),b=Qt(y,jA(o),r),E=U=>L=>{if(U){const R=y.current;L===void 0?U(R):U(R,L)}},C=E(d),F=E((U,L)=>{Vy(U);const R=Rl({style:g,timeout:m,easing:s},{mode:"enter"});U.style.webkitTransition=n.transitions.create("opacity",R),U.style.transition=n.transitions.create("opacity",R),u&&u(U,L)}),w=E(c),x=E(p),Q=E(U=>{const L=Rl({style:g,timeout:m,easing:s},{mode:"exit"});U.style.webkitTransition=n.transitions.create("opacity",L),U.style.transition=n.transitions.create("opacity",L),h&&h(U)}),S=E(f),T=U=>{a&&a(y.current,U)};return I.jsx(B,{appear:i,in:l,nodeRef:y,onEnter:F,onEntered:w,onEntering:C,onExit:Q,onExited:S,onExiting:x,addEndListener:T,timeout:m,...v,children:(U,L)=>O.cloneElement(o,{style:{opacity:0,visibility:U==="exited"&&!l?"hidden":void 0,...eS[U],...g,...o.props.style},ref:b,...L})})});function rS(t){return Pe("MuiBackdrop",t)}Me("MuiBackdrop",["root","invisible"]);const nS=t=>{const{ownerState:e,...r}=t;return r},AS=t=>{const{classes:e,invisible:r}=t;return Ke({root:["root",r&&"invisible"]},rS,e)},aS=me("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.invisible&&e.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),iS=O.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiBackdrop"}),{children:A,className:a,component:i="div",invisible:o=!1,open:s,components:l={},componentsProps:u={},slotProps:c={},slots:d={},TransitionComponent:h,transitionDuration:f,...p}=n,g={...n,component:i,invisible:o},m=AS(g),B={transition:h,root:l.Root,...d},v={...u,...c},y={slots:B,slotProps:v},[b,E]=Rr("root",{elementType:aS,externalForwardedProps:y,className:xe(m.root,a),ownerState:g}),[C,F]=Rr("transition",{elementType:tS,externalForwardedProps:y,ownerState:g}),w=nS(F);return I.jsx(C,{in:s,timeout:f,...p,...w,children:I.jsx(b,{"aria-hidden":!0,...E,classes:m,ref:r,children:A})})}),oS=Me("MuiBox",["root"]),sS=Xo(),tc=t1({themeId:en,defaultTheme:sS,defaultClassName:oS.root,generateClassName:by.generate});function lS(t){return Pe("MuiButton",t)}const oa=Me("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),uS=O.createContext({}),cS=O.createContext(void 0),fS=t=>{const{color:e,disableElevation:r,fullWidth:n,size:A,variant:a,classes:i}=t,o={root:["root",a,`${a}${Fe(e)}`,`size${Fe(A)}`,`${a}Size${Fe(A)}`,`color${Fe(e)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${Fe(A)}`],endIcon:["icon","endIcon",`iconSize${Fe(A)}`]},s=Ke(o,lS,i);return{...i,...s}},r0=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],dS=me(ai,{shouldForwardProp:t=>yr(t)||t==="classes",name:"MuiButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant],e[`${r.variant}${Fe(r.color)}`],e[`size${Fe(r.size)}`],e[`${r.variant}Size${Fe(r.size)}`],r.color==="inherit"&&e.colorInherit,r.disableElevation&&e.disableElevation,r.fullWidth&&e.fullWidth]}})(ke(({theme:t})=>{var n,A;const e=t.palette.mode==="light"?t.palette.grey[300]:t.palette.grey[800],r=t.palette.mode==="light"?t.palette.grey.A100:t.palette.grey[700];return{...t.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create(["background-color","box-shadow","border-color","color"],{duration:t.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${oa.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(t.vars||t).shadows[2],"&:hover":{boxShadow:(t.vars||t).shadows[4],"@media (hover: none)":{boxShadow:(t.vars||t).shadows[2]}},"&:active":{boxShadow:(t.vars||t).shadows[8]},[`&.${oa.focusVisible}`]:{boxShadow:(t.vars||t).shadows[6]},[`&.${oa.disabled}`]:{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${oa.disabled}`]:{border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(t.palette).filter(vr(["dark","contrastText"])).map(([a])=>({props:{color:a},style:{"--variant-textColor":(t.vars||t).palette[a].main,"--variant-outlinedColor":(t.vars||t).palette[a].main,"--variant-outlinedBorder":t.vars?`rgba(${t.vars.palette[a].mainChannel} / 0.5)`:dt(t.palette[a].main,.5),"--variant-containedColor":(t.vars||t).palette[a].contrastText,"--variant-containedBg":(t.vars||t).palette[a].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(t.vars||t).palette[a].dark,"--variant-textBg":t.vars?`rgba(${t.vars.palette[a].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:dt(t.palette[a].main,t.palette.action.hoverOpacity),"--variant-outlinedBorder":(t.vars||t).palette[a].main,"--variant-outlinedBg":t.vars?`rgba(${t.vars.palette[a].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:dt(t.palette[a].main,t.palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{"--variant-containedColor":t.vars?t.vars.palette.text.primary:(A=(n=t.palette).getContrastText)==null?void 0:A.call(n,e),"--variant-containedBg":t.vars?t.vars.palette.Button.inheritContainedBg:e,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":t.vars?t.vars.palette.Button.inheritContainedHoverBg:r,"--variant-textBg":t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:dt(t.palette.text.primary,t.palette.action.hoverOpacity),"--variant-outlinedBg":t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:dt(t.palette.text.primary,t.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:t.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:t.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:t.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${oa.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${oa.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}}]}})),hS=me("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.startIcon,e[`iconSize${Fe(r.size)}`]]}})({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},...r0]}),pS=me("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.endIcon,e[`iconSize${Fe(r.size)}`]]}})({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},...r0]}),qn=O.forwardRef(function(e,r){const n=O.useContext(uS),A=O.useContext(cS),a=Bo(n,e),i=Ve({props:a,name:"MuiButton"}),{children:o,color:s="primary",component:l="button",className:u,disabled:c=!1,disableElevation:d=!1,disableFocusRipple:h=!1,endIcon:f,focusVisibleClassName:p,fullWidth:g=!1,size:m="medium",startIcon:B,type:v,variant:y="text",...b}=i,E={...i,color:s,component:l,disabled:c,disableElevation:d,disableFocusRipple:h,fullWidth:g,size:m,type:v,variant:y},C=fS(E),F=B&&I.jsx(hS,{className:C.startIcon,ownerState:E,children:B}),w=f&&I.jsx(pS,{className:C.endIcon,ownerState:E,children:f}),x=A||"";return I.jsxs(dS,{ownerState:E,className:xe(n.className,C.root,u,x),component:l,disabled:c,focusRipple:!h,focusVisibleClassName:xe(C.focusVisible,p),ref:r,type:v,...b,classes:C,children:[F,o,w]})});function gS(t){return Pe("MuiCard",t)}Me("MuiCard",["root"]);const vS=t=>{const{classes:e}=t;return Ke({root:["root"]},gS,e)},mS=me(Ai,{name:"MuiCard",slot:"Root",overridesResolver:(t,e)=>e.root})({overflow:"hidden"}),yS=O.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiCard"}),{className:A,raised:a=!1,...i}=n,o={...n,raised:a},s=vS(o);return I.jsx(mS,{className:xe(s.root,A),elevation:a?8:void 0,ref:r,ownerState:o,...i})});function BS(t){return Pe("MuiCardActionArea",t)}const Gc=Me("MuiCardActionArea",["root","focusVisible","focusHighlight"]),wS=t=>{const{classes:e}=t;return Ke({root:["root"],focusHighlight:["focusHighlight"]},BS,e)},CS=me(ai,{name:"MuiCardActionArea",slot:"Root",overridesResolver:(t,e)=>e.root})(ke(({theme:t})=>({display:"block",textAlign:"inherit",borderRadius:"inherit",width:"100%",[`&:hover .${Gc.focusHighlight}`]:{opacity:(t.vars||t).palette.action.hoverOpacity,"@media (hover: none)":{opacity:0}},[`&.${Gc.focusVisible} .${Gc.focusHighlight}`]:{opacity:(t.vars||t).palette.action.focusOpacity}}))),bS=me("span",{name:"MuiCardActionArea",slot:"FocusHighlight",overridesResolver:(t,e)=>e.focusHighlight})(ke(({theme:t})=>({overflow:"hidden",pointerEvents:"none",position:"absolute",top:0,right:0,bottom:0,left:0,borderRadius:"inherit",opacity:0,backgroundColor:"currentcolor",transition:t.transitions.create("opacity",{duration:t.transitions.duration.short})}))),ES=O.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiCardActionArea"}),{children:A,className:a,focusVisibleClassName:i,...o}=n,s=n,l=wS(s);return I.jsxs(CS,{className:xe(l.root,a),focusVisibleClassName:xe(i,l.focusVisible),ref:r,ownerState:s,...o,children:[A,I.jsx(bS,{className:l.focusHighlight,ownerState:s})]})});function xS(t){return Pe("MuiCardContent",t)}Me("MuiCardContent",["root"]);const FS=t=>{const{classes:e}=t;return Ke({root:["root"]},xS,e)},QS=me("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(t,e)=>e.root})({padding:16,"&:last-child":{paddingBottom:24}}),SS=O.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiCardContent"}),{className:A,component:a="div",...i}=n,o={...n,component:a},s=FS(o);return I.jsx(QS,{as:a,className:xe(s.root,A),ownerState:o,ref:r,...i})});function US(t){return Pe("PrivateSwitchBase",t)}Me("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const TS=t=>{const{classes:e,checked:r,disabled:n,edge:A}=t,a={root:["root",r&&"checked",n&&"disabled",A&&`edge${Fe(A)}`],input:["input"]};return Ke(a,US,e)},IS=me(ai)({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:t,ownerState:e})=>t==="start"&&e.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:t,ownerState:e})=>t==="end"&&e.size!=="small",style:{marginRight:-12}}]}),LS=me("input",{shouldForwardProp:yr})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),DS=O.forwardRef(function(e,r){const{autoFocus:n,checked:A,checkedIcon:a,className:i,defaultChecked:o,disabled:s,disableFocusRipple:l=!1,edge:u=!1,icon:c,id:d,inputProps:h,inputRef:f,name:p,onBlur:g,onChange:m,onFocus:B,readOnly:v,required:y=!1,tabIndex:b,type:E,value:C,...F}=e,[w,x]=Co({controlled:A,default:!!o,name:"SwitchBase",state:"checked"}),Q=Vn(),S=k=>{B&&B(k),Q&&Q.onFocus&&Q.onFocus(k)},T=k=>{g&&g(k),Q&&Q.onBlur&&Q.onBlur(k)},U=k=>{if(k.nativeEvent.defaultPrevented)return;const N=k.target.checked;x(N),m&&m(k,N)};let L=s;Q&&typeof L>"u"&&(L=Q.disabled);const R=E==="checkbox"||E==="radio",M={...e,checked:w,disabled:L,disableFocusRipple:l,edge:u},H=TS(M);return I.jsxs(IS,{component:"span",className:xe(H.root,i),centerRipple:!0,focusRipple:!l,disabled:L,tabIndex:null,role:void 0,onFocus:S,onBlur:T,ownerState:M,ref:r,...F,children:[I.jsx(LS,{autoFocus:n,checked:A,defaultChecked:o,className:H.input,disabled:L,id:R?d:void 0,name:p,onChange:U,readOnly:v,ref:f,required:y,ownerState:M,tabIndex:b,type:E,...E==="checkbox"&&C===void 0?{}:{value:C},...h}),w?a:c]})}),RS=vt(I.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),MS=vt(I.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),OS=vt(I.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function HS(t){return Pe("MuiCheckbox",t)}const Vc=Me("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),kS=t=>{const{classes:e,indeterminate:r,color:n,size:A}=t,a={root:["root",r&&"indeterminate",`color${Fe(n)}`,`size${Fe(A)}`]},i=Ke(a,HS,e);return{...e,...i}},PS=me(DS,{shouldForwardProp:t=>yr(t)||t==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.indeterminate&&e.indeterminate,e[`size${Fe(r.size)}`],r.color!=="default"&&e[`color${Fe(r.color)}`]]}})(ke(({theme:t})=>({color:(t.vars||t).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:dt(t.palette.action.active,t.palette.action.hoverOpacity)}}},...Object.entries(t.palette).filter(vr()).map(([e])=>({props:{color:e,disableRipple:!1},style:{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[e].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:dt(t.palette[e].main,t.palette.action.hoverOpacity)}}})),...Object.entries(t.palette).filter(vr()).map(([e])=>({props:{color:e},style:{[`&.${Vc.checked}, &.${Vc.indeterminate}`]:{color:(t.vars||t).palette[e].main},[`&.${Vc.disabled}`]:{color:(t.vars||t).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),NS=I.jsx(MS,{}),KS=I.jsx(RS,{}),GS=I.jsx(OS,{}),gl=O.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiCheckbox"}),{checkedIcon:A=NS,color:a="primary",icon:i=KS,indeterminate:o=!1,indeterminateIcon:s=GS,inputProps:l,size:u="medium",disableRipple:c=!1,className:d,...h}=n,f=o?s:i,p=o?s:A,g={...n,disableRipple:c,color:a,indeterminate:o,size:u},m=kS(g);return I.jsx(PS,{type:"checkbox",inputProps:{"data-indeterminate":o,...l},icon:O.cloneElement(f,{fontSize:f.props.fontSize??u}),checkedIcon:O.cloneElement(p,{fontSize:p.props.fontSize??u}),ownerState:g,ref:r,className:xe(m.root,d),...h,classes:m})});function Xp(t){return t.substring(2).toLowerCase()}function VS(t,e){return e.documentElement.clientWidth(setTimeout(()=>{s.current=!0},0),()=>{s.current=!1}),[]);const u=Qt(jA(e),o),c=Mr(f=>{const p=l.current;l.current=!1;const g=Ft(o.current);if(!s.current||!o.current||"clientX"in f&&VS(f,g))return;if(i.current){i.current=!1;return}let m;f.composedPath?m=f.composedPath().includes(o.current):m=!g.documentElement.contains(f.target)||o.current.contains(f.target),!m&&(r||!p)&&A(f)}),d=f=>p=>{l.current=!0;const g=e.props[f];g&&g(p)},h={ref:u};return a!==!1&&(h[a]=d(a)),O.useEffect(()=>{if(a!==!1){const f=Xp(a),p=Ft(o.current),g=()=>{i.current=!0};return p.addEventListener(f,c),p.addEventListener("touchmove",g),()=>{p.removeEventListener(f,c),p.removeEventListener("touchmove",g)}}},[c,a]),n!==!1&&(h[n]=d(n)),O.useEffect(()=>{if(n!==!1){const f=Xp(n),p=Ft(o.current);return p.addEventListener(f,c),()=>{p.removeEventListener(f,c)}}},[c,n]),I.jsx(O.Fragment,{children:O.cloneElement(e,h)})}function $S(t){const e=Ft(t);return e.body===t?PA(t).innerWidth>e.documentElement.clientWidth:t.scrollHeight>t.clientHeight}function Ao(t,e){e?t.setAttribute("aria-hidden","true"):t.removeAttribute("aria-hidden")}function Yp(t){return parseInt(PA(t).getComputedStyle(t).paddingRight,10)||0}function zS(t){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(t.tagName),n=t.tagName==="INPUT"&&t.getAttribute("type")==="hidden";return r||n}function jp(t,e,r,n,A){const a=[e,r,...n];[].forEach.call(t.children,i=>{const o=!a.includes(i),s=!zS(i);o&&s&&Ao(i,A)})}function $c(t,e){let r=-1;return t.some((n,A)=>e(n)?(r=A,!0):!1),r}function WS(t,e){const r=[],n=t.container;if(!e.disableScrollLock){if($S(n)){const i=Iy(Ft(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${Yp(n)+i}px`;const o=Ft(n).querySelectorAll(".mui-fixed");[].forEach.call(o,s=>{r.push({value:s.style.paddingRight,property:"padding-right",el:s}),s.style.paddingRight=`${Yp(s)+i}px`})}let a;if(n.parentNode instanceof DocumentFragment)a=Ft(n).body;else{const i=n.parentElement,o=PA(n);a=(i==null?void 0:i.nodeName)==="HTML"&&o.getComputedStyle(i).overflowY==="scroll"?i:n}r.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{r.forEach(({value:a,el:i,property:o})=>{a?i.style.setProperty(o,a):i.style.removeProperty(o)})}}function _S(t){const e=[];return[].forEach.call(t.children,r=>{r.getAttribute("aria-hidden")==="true"&&e.push(r)}),e}class XS{constructor(){this.modals=[],this.containers=[]}add(e,r){let n=this.modals.indexOf(e);if(n!==-1)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&Ao(e.modalRef,!1);const A=_S(r);jp(r,e.mount,e.modalRef,A,!0);const a=$c(this.containers,i=>i.container===r);return a!==-1?(this.containers[a].modals.push(e),n):(this.containers.push({modals:[e],container:r,restore:null,hiddenSiblings:A}),n)}mount(e,r){const n=$c(this.containers,a=>a.modals.includes(e)),A=this.containers[n];A.restore||(A.restore=WS(A,r))}remove(e,r=!0){const n=this.modals.indexOf(e);if(n===-1)return n;const A=$c(this.containers,i=>i.modals.includes(e)),a=this.containers[A];if(a.modals.splice(a.modals.indexOf(e),1),this.modals.splice(n,1),a.modals.length===0)a.restore&&a.restore(),e.modalRef&&Ao(e.modalRef,r),jp(a.container,e.mount,e.modalRef,a.hiddenSiblings,!1),this.containers.splice(A,1);else{const i=a.modals[a.modals.length-1];i.modalRef&&Ao(i.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}const YS=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function jS(t){const e=parseInt(t.getAttribute("tabindex")||"",10);return Number.isNaN(e)?t.contentEditable==="true"||(t.nodeName==="AUDIO"||t.nodeName==="VIDEO"||t.nodeName==="DETAILS")&&t.getAttribute("tabindex")===null?0:t.tabIndex:e}function qS(t){if(t.tagName!=="INPUT"||t.type!=="radio"||!t.name)return!1;const e=n=>t.ownerDocument.querySelector(`input[type="radio"]${n}`);let r=e(`[name="${t.name}"]:checked`);return r||(r=e(`[name="${t.name}"]`)),r!==t}function JS(t){return!(t.disabled||t.tagName==="INPUT"&&t.type==="hidden"||qS(t))}function ZS(t){const e=[],r=[];return Array.from(t.querySelectorAll(YS)).forEach((n,A)=>{const a=jS(n);a===-1||!JS(n)||(a===0?e.push(n):r.push({documentOrder:A,tabIndex:a,node:n}))}),r.sort((n,A)=>n.tabIndex===A.tabIndex?n.documentOrder-A.documentOrder:n.tabIndex-A.tabIndex).map(n=>n.node).concat(e)}function eU(){return!0}function tU(t){const{children:e,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:A=!1,getTabbable:a=ZS,isEnabled:i=eU,open:o}=t,s=O.useRef(!1),l=O.useRef(null),u=O.useRef(null),c=O.useRef(null),d=O.useRef(null),h=O.useRef(!1),f=O.useRef(null),p=Qt(jA(e),f),g=O.useRef(null);O.useEffect(()=>{!o||!f.current||(h.current=!r)},[r,o]),O.useEffect(()=>{if(!o||!f.current)return;const v=Ft(f.current);return f.current.contains(v.activeElement)||(f.current.hasAttribute("tabIndex")||f.current.setAttribute("tabIndex","-1"),h.current&&f.current.focus()),()=>{A||(c.current&&c.current.focus&&(s.current=!0,c.current.focus()),c.current=null)}},[o]),O.useEffect(()=>{if(!o||!f.current)return;const v=Ft(f.current),y=C=>{g.current=C,!(n||!i()||C.key!=="Tab")&&v.activeElement===f.current&&C.shiftKey&&(s.current=!0,u.current&&u.current.focus())},b=()=>{var w,x;const C=f.current;if(C===null)return;if(!v.hasFocus()||!i()||s.current){s.current=!1;return}if(C.contains(v.activeElement)||n&&v.activeElement!==l.current&&v.activeElement!==u.current)return;if(v.activeElement!==d.current)d.current=null;else if(d.current!==null)return;if(!h.current)return;let F=[];if((v.activeElement===l.current||v.activeElement===u.current)&&(F=a(f.current)),F.length>0){const Q=!!((w=g.current)!=null&&w.shiftKey&&((x=g.current)==null?void 0:x.key)==="Tab"),S=F[0],T=F[F.length-1];typeof S!="string"&&typeof T!="string"&&(Q?T.focus():S.focus())}else C.focus()};v.addEventListener("focusin",b),v.addEventListener("keydown",y,!0);const E=setInterval(()=>{v.activeElement&&v.activeElement.tagName==="BODY"&&b()},50);return()=>{clearInterval(E),v.removeEventListener("focusin",b),v.removeEventListener("keydown",y,!0)}},[r,n,A,i,o,a]);const m=v=>{c.current===null&&(c.current=v.relatedTarget),h.current=!0,d.current=v.target;const y=e.props.onFocus;y&&y(v)},B=v=>{c.current===null&&(c.current=v.relatedTarget),h.current=!0};return I.jsxs(O.Fragment,{children:[I.jsx("div",{tabIndex:o?0:-1,onFocus:B,ref:l,"data-testid":"sentinelStart"}),O.cloneElement(e,{ref:p,onFocus:m}),I.jsx("div",{tabIndex:o?0:-1,onFocus:B,ref:u,"data-testid":"sentinelEnd"})]})}function rU(t){return typeof t=="function"?t():t}function nU(t){return t?t.props.hasOwnProperty("in"):!1}const AU=new XS;function aU(t){const{container:e,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:A=AU,closeAfterTransition:a=!1,onTransitionEnter:i,onTransitionExited:o,children:s,onClose:l,open:u,rootRef:c}=t,d=O.useRef({}),h=O.useRef(null),f=O.useRef(null),p=Qt(f,c),[g,m]=O.useState(!u),B=nU(s);let v=!0;(t["aria-hidden"]==="false"||t["aria-hidden"]===!1)&&(v=!1);const y=()=>Ft(h.current),b=()=>(d.current.modalRef=f.current,d.current.mount=h.current,d.current),E=()=>{A.mount(b(),{disableScrollLock:n}),f.current&&(f.current.scrollTop=0)},C=Mr(()=>{const R=rU(e)||y().body;A.add(b(),R),f.current&&E()}),F=O.useCallback(()=>A.isTopModal(b()),[A]),w=Mr(R=>{h.current=R,R&&(u&&F()?E():f.current&&Ao(f.current,v))}),x=O.useCallback(()=>{A.remove(b(),v)},[v,A]);O.useEffect(()=>()=>{x()},[x]),O.useEffect(()=>{u?C():(!B||!a)&&x()},[u,x,B,a,C]);const Q=R=>M=>{var H;(H=R.onKeyDown)==null||H.call(R,M),!(M.key!=="Escape"||M.which===229||!F())&&(r||(M.stopPropagation(),l&&l(M,"escapeKeyDown")))},S=R=>M=>{var H;(H=R.onClick)==null||H.call(R,M),M.target===M.currentTarget&&l&&l(M,"backdropClick")};return{getRootProps:(R={})=>{const M=to(t);delete M.onTransitionEnter,delete M.onTransitionExited;const H={...M,...R};return{role:"presentation",...H,onKeyDown:Q(H),ref:p}},getBackdropProps:(R={})=>{const M=R;return{"aria-hidden":!0,...M,onClick:S(M),open:u}},getTransitionProps:()=>{const R=()=>{m(!1),i&&i()},M=()=>{m(!0),o&&o(),a&&x()};return{onEnter:gp(R,s==null?void 0:s.props.onEnter),onExited:gp(M,s==null?void 0:s.props.onExited)}},rootRef:p,portalRef:w,isTopModal:F,exited:g,hasTransition:B}}function iU(t){return Pe("MuiModal",t)}Me("MuiModal",["root","hidden","backdrop"]);const oU=t=>{const{open:e,exited:r,classes:n}=t;return Ke({root:["root",!e&&r&&"hidden"],backdrop:["backdrop"]},iU,n)},sU=me("div",{name:"MuiModal",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,!r.open&&r.exited&&e.hidden]}})(ke(({theme:t})=>({position:"fixed",zIndex:(t.vars||t).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:e})=>!e.open&&e.exited,style:{visibility:"hidden"}}]}))),lU=me(iS,{name:"MuiModal",slot:"Backdrop",overridesResolver:(t,e)=>e.backdrop})({zIndex:-1}),A0=O.forwardRef(function(e,r){const n=Ve({name:"MuiModal",props:e}),{BackdropComponent:A=lU,BackdropProps:a,classes:i,className:o,closeAfterTransition:s=!1,children:l,container:u,component:c,components:d={},componentsProps:h={},disableAutoFocus:f=!1,disableEnforceFocus:p=!1,disableEscapeKeyDown:g=!1,disablePortal:m=!1,disableRestoreFocus:B=!1,disableScrollLock:v=!1,hideBackdrop:y=!1,keepMounted:b=!1,onBackdropClick:E,onClose:C,onTransitionEnter:F,onTransitionExited:w,open:x,slotProps:Q={},slots:S={},theme:T,...U}=n,L={...n,closeAfterTransition:s,disableAutoFocus:f,disableEnforceFocus:p,disableEscapeKeyDown:g,disablePortal:m,disableRestoreFocus:B,disableScrollLock:v,hideBackdrop:y,keepMounted:b},{getRootProps:R,getBackdropProps:M,getTransitionProps:H,portalRef:k,isTopModal:N,exited:P,hasTransition:K}=aU({...L,rootRef:r}),W={...L,exited:P},X=oU(W),Z={};if(l.props.tabIndex===void 0&&(Z.tabIndex="-1"),K){const{onEnter:se,onExited:te}=H();Z.onEnter=se,Z.onExited=te}const Ae={...U,slots:{root:d.Root,backdrop:d.Backdrop,...S},slotProps:{...h,...Q}},[ie,re]=Rr("root",{elementType:sU,externalForwardedProps:Ae,getSlotProps:R,additionalProps:{ref:r,as:c},ownerState:W,className:xe(o,X==null?void 0:X.root,!W.open&&W.exited&&(X==null?void 0:X.hidden))}),[z,q]=Rr("backdrop",{elementType:A,externalForwardedProps:Ae,additionalProps:a,getSlotProps:se=>M({...se,onClick:te=>{E&&E(te),se!=null&&se.onClick&&se.onClick(te)}}),className:xe(a==null?void 0:a.className,X==null?void 0:X.backdrop),ownerState:W}),ee=Qt(a==null?void 0:a.ref,q.ref);return!b&&!x&&(!K||P)?null:I.jsx(t0,{ref:k,container:u,disablePortal:m,children:I.jsxs(ie,{...re,children:[!y&&A?I.jsx(z,{...q,ref:ee}):null,I.jsx(tU,{disableEnforceFocus:p,disableAutoFocus:f,disableRestoreFocus:B,isEnabled:N,open:x,children:O.cloneElement(l,Z)})]})})}),qp=Me("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),uU=t=>{const{classes:e,disableUnderline:r,startAdornment:n,endAdornment:A,size:a,hiddenLabel:i,multiline:o}=t,s={root:["root",!r&&"underline",n&&"adornedStart",A&&"adornedEnd",a==="small"&&`size${Fe(a)}`,i&&"hiddenLabel",o&&"multiline"],input:["input"]},l=Ke(s,JQ,e);return{...e,...l}},cU=me(Zu,{shouldForwardProp:t=>yr(t)||t==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[...qu(t,e),!r.disableUnderline&&e.underline]}})(ke(({theme:t})=>{const e=t.palette.mode==="light",r=e?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",n=e?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",A=e?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=e?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:t.vars?t.vars.palette.FilledInput.bg:n,borderTopLeftRadius:(t.vars||t).shape.borderRadius,borderTopRightRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),"&:hover":{backgroundColor:t.vars?t.vars.palette.FilledInput.hoverBg:A,"@media (hover: none)":{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:n}},[`&.${mA.focused}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:n},[`&.${mA.disabled}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.disabledBg:a},variants:[{props:({ownerState:i})=>!i.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${mA.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${mA.error}`]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:`1px solid ${t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / ${t.vars.opacity.inputUnderline})`:r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${mA.disabled}, .${mA.error}):before`]:{borderBottom:`1px solid ${(t.vars||t).palette.text.primary}`},[`&.${mA.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(t.palette).filter(vr()).map(([i])=>{var o;return{props:{disableUnderline:!1,color:i},style:{"&::after":{borderBottom:`2px solid ${(o=(t.vars||t).palette[i])==null?void 0:o.main}`}}}}),{props:({ownerState:i})=>i.startAdornment,style:{paddingLeft:12}},{props:({ownerState:i})=>i.endAdornment,style:{paddingRight:12}},{props:({ownerState:i})=>i.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:i,size:o})=>i.multiline&&o==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:i})=>i.multiline&&i.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:i})=>i.multiline&&i.hiddenLabel&&i.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),fU=me(ec,{name:"MuiFilledInput",slot:"Input",overridesResolver:Ju})(ke(({theme:t})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:t.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:t.palette.mode==="light"?null:"#fff",caretColor:t.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...t.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:e})=>e.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}},{props:({ownerState:e})=>e.hiddenLabel&&e.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:e})=>e.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),kl=O.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiFilledInput"}),{disableUnderline:A=!1,components:a={},componentsProps:i,fullWidth:o=!1,hiddenLabel:s,inputComponent:l="input",multiline:u=!1,slotProps:c,slots:d={},type:h="text",...f}=n,p={...n,disableUnderline:A,fullWidth:o,inputComponent:l,multiline:u,type:h},g=uU(n),m={root:{ownerState:p},input:{ownerState:p}},B=c??i?$t(m,c??i):m,v=d.root??a.Root??cU,y=d.input??a.Input??fU;return I.jsx(Jo,{slots:{root:v,input:y},componentsProps:B,fullWidth:o,inputComponent:l,multiline:u,ref:r,type:h,...f,classes:g})});kl&&(kl.muiName="Input");function dU(t){return Pe("MuiFormControl",t)}Me("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const hU=t=>{const{classes:e,margin:r,fullWidth:n}=t,A={root:["root",r!=="none"&&`margin${Fe(r)}`,n&&"fullWidth"]};return Ke(A,dU,e)},pU=me("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:t},e)=>({...e.root,...e[`margin${Fe(t.margin)}`],...t.fullWidth&&e.fullWidth})})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),gU=O.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiFormControl"}),{children:A,className:a,color:i="primary",component:o="div",disabled:s=!1,error:l=!1,focused:u,fullWidth:c=!1,hiddenLabel:d=!1,margin:h="none",required:f=!1,size:p="medium",variant:g="outlined",...m}=n,B={...n,color:i,component:o,disabled:s,error:l,fullWidth:c,hiddenLabel:d,margin:h,required:f,size:p,variant:g},v=hU(B),[y,b]=O.useState(()=>{let T=!1;return A&&O.Children.forEach(A,U=>{if(!hl(U,["Input","Select"]))return;const L=hl(U,["Select"])?U.props.input:U;L&&_Q(L.props)&&(T=!0)}),T}),[E,C]=O.useState(()=>{let T=!1;return A&&O.Children.forEach(A,U=>{hl(U,["Input","Select"])&&(Hl(U.props,!0)||Hl(U.props.inputProps,!0))&&(T=!0)}),T}),[F,w]=O.useState(!1);s&&F&&w(!1);const x=u!==void 0&&!s?u:F;let Q;O.useRef(!1);const S=O.useMemo(()=>({adornedStart:y,setAdornedStart:b,color:i,disabled:s,error:l,filled:E,focused:x,fullWidth:c,hiddenLabel:d,size:p,onBlur:()=>{w(!1)},onEmpty:()=>{C(!1)},onFilled:()=>{C(!0)},onFocus:()=>{w(!0)},registerEffect:Q,required:f,variant:g}),[y,i,s,l,E,x,c,d,Q,f,p,g]);return I.jsx(ju.Provider,{value:S,children:I.jsx(pU,{as:o,ownerState:B,className:xe(v.root,a),ref:r,...m,children:A})})});function vU(t){return Pe("MuiFormControlLabel",t)}const Ki=Me("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),mU=t=>{const{classes:e,disabled:r,labelPlacement:n,error:A,required:a}=t,i={root:["root",r&&"disabled",`labelPlacement${Fe(n)}`,A&&"error",a&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",A&&"error"]};return Ke(i,vU,e)},yU=me("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${Ki.label}`]:e.label},e.root,e[`labelPlacement${Fe(r.labelPlacement)}`]]}})(ke(({theme:t})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Ki.disabled}`]:{cursor:"default"},[`& .${Ki.label}`]:{[`&.${Ki.disabled}`]:{color:(t.vars||t).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:e})=>e==="start"||e==="top"||e==="bottom",style:{marginLeft:16}}]}))),BU=me("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(t,e)=>e.asterisk})(ke(({theme:t})=>({[`&.${Ki.error}`]:{color:(t.vars||t).palette.error.main}}))),wU=O.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiFormControlLabel"}),{checked:A,className:a,componentsProps:i={},control:o,disabled:s,disableTypography:l,inputRef:u,label:c,labelPlacement:d="end",name:h,onChange:f,required:p,slots:g={},slotProps:m={},value:B,...v}=n,y=Vn(),b=s??o.props.disabled??(y==null?void 0:y.disabled),E=p??o.props.required,C={disabled:b,required:E};["checked","name","onChange","value","inputRef"].forEach(L=>{typeof o.props[L]>"u"&&typeof n[L]<"u"&&(C[L]=n[L])});const F=qA({props:n,muiFormControl:y,states:["error"]}),w={...n,disabled:b,labelPlacement:d,required:E,error:F.error},x=mU(w),Q={slots:g,slotProps:{...i,...m}},[S,T]=Rr("typography",{elementType:Bt,externalForwardedProps:Q,ownerState:w});let U=c;return U!=null&&U.type!==Bt&&!l&&(U=I.jsx(S,{component:"span",...T,className:xe(x.label,T==null?void 0:T.className),children:U})),I.jsxs(yU,{className:xe(x.root,a),ownerState:w,ref:r,...v,children:[O.cloneElement(o,C),E?I.jsxs("div",{children:[U,I.jsxs(BU,{ownerState:w,"aria-hidden":!0,className:x.asterisk,children:[" ","*"]})]}):U]})});function CU(t){return Pe("MuiFormHelperText",t)}const Jp=Me("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var Zp;const bU=t=>{const{classes:e,contained:r,size:n,disabled:A,error:a,filled:i,focused:o,required:s}=t,l={root:["root",A&&"disabled",a&&"error",n&&`size${Fe(n)}`,r&&"contained",o&&"focused",i&&"filled",s&&"required"]};return Ke(l,CU,e)},EU=me("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.size&&e[`size${Fe(r.size)}`],r.contained&&e.contained,r.filled&&e.filled]}})(ke(({theme:t})=>({color:(t.vars||t).palette.text.secondary,...t.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Jp.disabled}`]:{color:(t.vars||t).palette.text.disabled},[`&.${Jp.error}`]:{color:(t.vars||t).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:e})=>e.contained,style:{marginLeft:14,marginRight:14}}]}))),xU=O.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiFormHelperText"}),{children:A,className:a,component:i="p",disabled:o,error:s,filled:l,focused:u,margin:c,required:d,variant:h,...f}=n,p=Vn(),g=qA({props:n,muiFormControl:p,states:["variant","size","disabled","error","filled","focused","required"]}),m={...n,component:i,contained:g.variant==="filled"||g.variant==="outlined",variant:g.variant,size:g.size,disabled:g.disabled,error:g.error,filled:g.filled,focused:g.focused,required:g.required};delete m.ownerState;const B=bU(m);return I.jsx(EU,{as:i,className:xe(B.root,a),ref:r,...f,ownerState:m,children:A===" "?Zp||(Zp=I.jsx("span",{className:"notranslate",children:"​"})):A})});function FU(t){return Pe("MuiFormLabel",t)}const ao=Me("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),QU=t=>{const{classes:e,color:r,focused:n,disabled:A,error:a,filled:i,required:o}=t,s={root:["root",`color${Fe(r)}`,A&&"disabled",a&&"error",i&&"filled",n&&"focused",o&&"required"],asterisk:["asterisk",a&&"error"]};return Ke(s,FU,e)},SU=me("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:t},e)=>({...e.root,...t.color==="secondary"&&e.colorSecondary,...t.filled&&e.filled})})(ke(({theme:t})=>({color:(t.vars||t).palette.text.secondary,...t.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(t.palette).filter(vr()).map(([e])=>({props:{color:e},style:{[`&.${ao.focused}`]:{color:(t.vars||t).palette[e].main}}})),{props:{},style:{[`&.${ao.disabled}`]:{color:(t.vars||t).palette.text.disabled},[`&.${ao.error}`]:{color:(t.vars||t).palette.error.main}}}]}))),UU=me("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(t,e)=>e.asterisk})(ke(({theme:t})=>({[`&.${ao.error}`]:{color:(t.vars||t).palette.error.main}}))),TU=O.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiFormLabel"}),{children:A,className:a,color:i,component:o="label",disabled:s,error:l,filled:u,focused:c,required:d,...h}=n,f=Vn(),p=qA({props:n,muiFormControl:f,states:["color","required","focused","disabled","error","filled"]}),g={...n,color:p.color||"primary",component:o,disabled:p.disabled,error:p.error,filled:p.filled,focused:p.focused,required:p.required},m=QU(g);return I.jsxs(SU,{as:o,ownerState:g,className:xe(m.root,a),ref:r,...h,children:[A,p.required&&I.jsxs(UU,{ownerState:g,"aria-hidden":!0,className:m.asterisk,children:[" ","*"]})]})}),eg=O.createContext();function IU(t){return Pe("MuiGrid",t)}const LU=[0,1,2,3,4,5,6,7,8,9,10],DU=["column-reverse","column","row-reverse","row"],RU=["nowrap","wrap-reverse","wrap"],Ei=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],xo=Me("MuiGrid",["root","container","item","zeroMinWidth",...LU.map(t=>`spacing-xs-${t}`),...DU.map(t=>`direction-xs-${t}`),...RU.map(t=>`wrap-xs-${t}`),...Ei.map(t=>`grid-xs-${t}`),...Ei.map(t=>`grid-sm-${t}`),...Ei.map(t=>`grid-md-${t}`),...Ei.map(t=>`grid-lg-${t}`),...Ei.map(t=>`grid-xl-${t}`)]);function MU({theme:t,ownerState:e}){let r;return t.breakpoints.keys.reduce((n,A)=>{let a={};if(e[A]&&(r=e[A]),!r)return n;if(r===!0)a={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(r==="auto")a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const i=RA({values:e.columns,breakpoints:t.breakpoints.values}),o=typeof i=="object"?i[A]:i;if(o==null)return n;const s=`${Math.round(r/o*1e8)/1e6}%`;let l={};if(e.container&&e.item&&e.columnSpacing!==0){const u=t.spacing(e.columnSpacing);if(u!=="0px"){const c=`calc(${s} + ${u})`;l={flexBasis:c,maxWidth:c}}}a={flexBasis:s,flexGrow:0,maxWidth:s,...l}}return t.breakpoints.values[A]===0?Object.assign(n,a):n[t.breakpoints.up(A)]=a,n},{})}function OU({theme:t,ownerState:e}){const r=RA({values:e.direction,breakpoints:t.breakpoints.values});return gr({theme:t},r,n=>{const A={flexDirection:n};return n.startsWith("column")&&(A[`& > .${xo.item}`]={maxWidth:"none"}),A})}function a0({breakpoints:t,values:e}){let r="";Object.keys(e).forEach(A=>{r===""&&e[A]!==0&&(r=A)});const n=Object.keys(t).sort((A,a)=>t[A]-t[a]);return n.slice(0,n.indexOf(r))}function HU({theme:t,ownerState:e}){const{container:r,rowSpacing:n}=e;let A={};if(r&&n!==0){const a=RA({values:n,breakpoints:t.breakpoints.values});let i;typeof a=="object"&&(i=a0({breakpoints:t.breakpoints.values,values:a})),A=gr({theme:t},a,(o,s)=>{const l=t.spacing(o);return l!=="0px"?{marginTop:t.spacing(-o),[`& > .${xo.item}`]:{paddingTop:l}}:i!=null&&i.includes(s)?{}:{marginTop:0,[`& > .${xo.item}`]:{paddingTop:0}}})}return A}function kU({theme:t,ownerState:e}){const{container:r,columnSpacing:n}=e;let A={};if(r&&n!==0){const a=RA({values:n,breakpoints:t.breakpoints.values});let i;typeof a=="object"&&(i=a0({breakpoints:t.breakpoints.values,values:a})),A=gr({theme:t},a,(o,s)=>{const l=t.spacing(o);if(l!=="0px"){const u=t.spacing(-o);return{width:`calc(100% + ${l})`,marginLeft:u,[`& > .${xo.item}`]:{paddingLeft:l}}}return i!=null&&i.includes(s)?{}:{width:"100%",marginLeft:0,[`& > .${xo.item}`]:{paddingLeft:0}}})}return A}function PU(t,e,r={}){if(!t||t<=0)return[];if(typeof t=="string"&&!Number.isNaN(Number(t))||typeof t=="number")return[r[`spacing-xs-${String(t)}`]];const n=[];return e.forEach(A=>{const a=t[A];Number(a)>0&&n.push(r[`spacing-${A}-${String(a)}`])}),n}const NU=me("div",{name:"MuiGrid",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t,{container:n,direction:A,item:a,spacing:i,wrap:o,zeroMinWidth:s,breakpoints:l}=r;let u=[];n&&(u=PU(i,l,e));const c=[];return l.forEach(d=>{const h=r[d];h&&c.push(e[`grid-${d}-${String(h)}`])}),[e.root,n&&e.container,a&&e.item,s&&e.zeroMinWidth,...u,A!=="row"&&e[`direction-xs-${String(A)}`],o!=="wrap"&&e[`wrap-xs-${String(o)}`],...c]}})(({ownerState:t})=>({boxSizing:"border-box",...t.container&&{display:"flex",flexWrap:"wrap",width:"100%"},...t.item&&{margin:0},...t.zeroMinWidth&&{minWidth:0},...t.wrap!=="wrap"&&{flexWrap:t.wrap}}),OU,HU,kU,MU);function KU(t,e){if(!t||t<=0)return[];if(typeof t=="string"&&!Number.isNaN(Number(t))||typeof t=="number")return[`spacing-xs-${String(t)}`];const r=[];return e.forEach(n=>{const A=t[n];if(Number(A)>0){const a=`spacing-${n}-${String(A)}`;r.push(a)}}),r}const GU=t=>{const{classes:e,container:r,direction:n,item:A,spacing:a,wrap:i,zeroMinWidth:o,breakpoints:s}=t;let l=[];r&&(l=KU(a,s));const u=[];s.forEach(d=>{const h=t[d];h&&u.push(`grid-${d}-${String(h)}`)});const c={root:["root",r&&"container",A&&"item",o&&"zeroMinWidth",...l,n!=="row"&&`direction-xs-${String(n)}`,i!=="wrap"&&`wrap-xs-${String(i)}`,...u]};return Ke(c,IU,e)},zc=O.forwardRef(function(e,r){const n=Wu({props:e,name:"MuiGrid"}),{breakpoints:A}=Yo(),a=Wo(n),{className:i,columns:o,columnSpacing:s,component:l="div",container:u=!1,direction:c="row",item:d=!1,rowSpacing:h,spacing:f=0,wrap:p="wrap",zeroMinWidth:g=!1,...m}=a,B=h||f,v=s||f,y=O.useContext(eg),b=u?o||12:y,E={},C={...m};A.keys.forEach(x=>{m[x]!=null&&(E[x]=m[x],delete C[x])});const F={...a,columns:b,container:u,direction:c,item:d,rowSpacing:B,columnSpacing:v,wrap:p,zeroMinWidth:g,spacing:f,...E,breakpoints:A.keys},w=GU(F);return I.jsx(eg.Provider,{value:b,children:I.jsx(NU,{ownerState:F,className:xe(w.root,i),as:l,ref:r,...C})})}),ws=tx({createStyledComponent:me("div",{name:"MuiGrid2",slot:"Root",overridesResolver:(t,e)=>e.root}),componentName:"MuiGrid2",useThemeProps:t=>Wu({props:t,name:"MuiGrid2"})});function qf(t){return`scale(${t}, ${t**2})`}const VU={entering:{opacity:1,transform:qf(1)},entered:{opacity:1,transform:"none"}},Wc=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),KA=O.forwardRef(function(e,r){const{addEndListener:n,appear:A=!0,children:a,easing:i,in:o,onEnter:s,onEntered:l,onEntering:u,onExit:c,onExited:d,onExiting:h,style:f,timeout:p="auto",TransitionComponent:g=En,...m}=e,B=xa(),v=O.useRef(),y=Yo(),b=O.useRef(null),E=Qt(b,jA(a),r),C=L=>R=>{if(L){const M=b.current;R===void 0?L(M):L(M,R)}},F=C(u),w=C((L,R)=>{Vy(L);const{duration:M,delay:H,easing:k}=Rl({style:f,timeout:p,easing:i},{mode:"enter"});let N;p==="auto"?(N=y.transitions.getAutoHeightDuration(L.clientHeight),v.current=N):N=M,L.style.transition=[y.transitions.create("opacity",{duration:N,delay:H}),y.transitions.create("transform",{duration:Wc?N:N*.666,delay:H,easing:k})].join(","),s&&s(L,R)}),x=C(l),Q=C(h),S=C(L=>{const{duration:R,delay:M,easing:H}=Rl({style:f,timeout:p,easing:i},{mode:"exit"});let k;p==="auto"?(k=y.transitions.getAutoHeightDuration(L.clientHeight),v.current=k):k=R,L.style.transition=[y.transitions.create("opacity",{duration:k,delay:M}),y.transitions.create("transform",{duration:Wc?k:k*.666,delay:Wc?M:M||k*.333,easing:H})].join(","),L.style.opacity=0,L.style.transform=qf(.75),c&&c(L)}),T=C(d),U=L=>{p==="auto"&&B.start(v.current||0,L),n&&n(b.current,L)};return I.jsx(g,{appear:A,in:o,nodeRef:b,onEnter:w,onEntered:x,onEntering:F,onExit:S,onExited:T,onExiting:Q,addEndListener:U,timeout:p==="auto"?null:p,...m,children:(L,R)=>O.cloneElement(a,{style:{opacity:0,transform:qf(.75),visibility:L==="exited"&&!o?"hidden":void 0,...VU[L],...f,...a.props.style},ref:E,...R})})});KA&&(KA.muiSupportAuto=!0);const $U=t=>{const{classes:e,disableUnderline:r}=t,A=Ke({root:["root",!r&&"underline"],input:["input"]},jQ,e);return{...e,...A}},zU=me(Zu,{shouldForwardProp:t=>yr(t)||t==="classes",name:"MuiInput",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[...qu(t,e),!r.disableUnderline&&e.underline]}})(ke(({theme:t})=>{let r=t.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return t.vars&&(r=`rgba(${t.vars.palette.common.onBackgroundChannel} / ${t.vars.opacity.inputUnderline})`),{position:"relative",variants:[{props:({ownerState:n})=>n.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:n})=>!n.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${bi.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${bi.error}`]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${bi.disabled}, .${bi.error}):before`]:{borderBottom:`2px solid ${(t.vars||t).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${bi.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(t.palette).filter(vr()).map(([n])=>({props:{color:n,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(t.vars||t).palette[n].main}`}}}))]}})),WU=me(ec,{name:"MuiInput",slot:"Input",overridesResolver:Ju})({}),Pl=O.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiInput"}),{disableUnderline:A=!1,components:a={},componentsProps:i,fullWidth:o=!1,inputComponent:s="input",multiline:l=!1,slotProps:u,slots:c={},type:d="text",...h}=n,f=$U(n),g={root:{ownerState:{disableUnderline:A}}},m=u??i?$t(u??i,g):g,B=c.root??a.Root??zU,v=c.input??a.Input??WU;return I.jsx(Jo,{slots:{root:B,input:v},slotProps:m,fullWidth:o,inputComponent:s,multiline:l,ref:r,type:d,...h,classes:f})});Pl&&(Pl.muiName="Input");function _U(t){return Pe("MuiInputAdornment",t)}const tg=Me("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var rg;const XU=(t,e)=>{const{ownerState:r}=t;return[e.root,e[`position${Fe(r.position)}`],r.disablePointerEvents===!0&&e.disablePointerEvents,e[r.variant]]},YU=t=>{const{classes:e,disablePointerEvents:r,hiddenLabel:n,position:A,size:a,variant:i}=t,o={root:["root",r&&"disablePointerEvents",A&&`position${Fe(A)}`,i,n&&"hiddenLabel",a&&`size${Fe(a)}`]};return Ke(o,_U,e)},jU=me("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:XU})(ke(({theme:t})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(t.vars||t).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${tg.positionStart}&:not(.${tg.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),qU=O.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiInputAdornment"}),{children:A,className:a,component:i="div",disablePointerEvents:o=!1,disableTypography:s=!1,position:l,variant:u,...c}=n,d=Vn()||{};let h=u;u&&d.variant,d&&!h&&(h=d.variant);const f={...n,hiddenLabel:d.hiddenLabel,size:d.size,disablePointerEvents:o,position:l,variant:h},p=YU(f);return I.jsx(ju.Provider,{value:null,children:I.jsx(jU,{as:i,ownerState:f,className:xe(p.root,a),ref:r,...c,children:typeof A=="string"&&!s?I.jsx(Bt,{color:"textSecondary",children:A}):I.jsxs(O.Fragment,{children:[l==="start"?rg||(rg=I.jsx("span",{className:"notranslate",children:"​"})):null,A]})})})});function JU(t){return Pe("MuiInputLabel",t)}Me("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const ZU=t=>{const{classes:e,formControl:r,size:n,shrink:A,disableAnimation:a,variant:i,required:o}=t,s={root:["root",r&&"formControl",!a&&"animated",A&&"shrink",n&&n!=="normal"&&`size${Fe(n)}`,i],asterisk:[o&&"asterisk"]},l=Ke(s,JU,e);return{...e,...l}},eT=me(TU,{shouldForwardProp:t=>yr(t)||t==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${ao.asterisk}`]:e.asterisk},e.root,r.formControl&&e.formControl,r.size==="small"&&e.sizeSmall,r.shrink&&e.shrink,!r.disableAnimation&&e.animated,r.focused&&e.focused,e[r.variant]]}})(ke(({theme:t})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:e})=>e.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:e})=>e.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:e})=>!e.disableAnimation,style:{transition:t.transitions.create(["color","transform","max-width"],{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:e,ownerState:r})=>e==="filled"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:e,ownerState:r,size:n})=>e==="filled"&&r.shrink&&n==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:e,ownerState:r})=>e==="outlined"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),tT=O.forwardRef(function(e,r){const n=Ve({name:"MuiInputLabel",props:e}),{disableAnimation:A=!1,margin:a,shrink:i,variant:o,className:s,...l}=n,u=Vn();let c=i;typeof c>"u"&&u&&(c=u.filled||u.focused||u.adornedStart);const d=qA({props:n,muiFormControl:u,states:["size","variant","required","focused"]}),h={...n,disableAnimation:A,formControl:u,shrink:c,size:d.size,variant:d.variant,required:d.required,focused:d.focused},f=ZU(h);return I.jsx(eT,{"data-shrink":c,ref:r,className:xe(f.root,s),...l,ownerState:h,classes:f})}),Jf=O.createContext({});function rT(t){return Pe("MuiList",t)}Me("MuiList",["root","padding","dense","subheader"]);const nT=t=>{const{classes:e,disablePadding:r,dense:n,subheader:A}=t;return Ke({root:["root",!r&&"padding",n&&"dense",A&&"subheader"]},rT,e)},AT=me("ul",{name:"MuiList",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,!r.disablePadding&&e.padding,r.dense&&e.dense,r.subheader&&e.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>t.subheader,style:{paddingTop:0}}]}),aT=O.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiList"}),{children:A,className:a,component:i="ul",dense:o=!1,disablePadding:s=!1,subheader:l,...u}=n,c=O.useMemo(()=>({dense:o}),[o]),d={...n,component:i,dense:o,disablePadding:s},h=nT(d);return I.jsx(Jf.Provider,{value:c,children:I.jsxs(AT,{as:i,className:xe(h.root,a),ref:r,ownerState:d,...u,children:[l,A]})})}),ng=Me("MuiListItemIcon",["root","alignItemsFlexStart"]),Ag=Me("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function _c(t,e,r){return t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:r?null:t.firstChild}function ag(t,e,r){return t===e?r?t.firstChild:t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:r?null:t.lastChild}function i0(t,e){if(e===void 0)return!0;let r=t.innerText;return r===void 0&&(r=t.textContent),r=r.trim().toLowerCase(),r.length===0?!1:e.repeating?r[0]===e.keys[0]:r.startsWith(e.keys.join(""))}function xi(t,e,r,n,A,a){let i=!1,o=A(t,e,e?r:!1);for(;o;){if(o===t.firstChild){if(i)return!1;i=!0}const s=n?!1:o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||!i0(o,a)||s)o=A(t,o,r);else return o.focus(),!0}return!1}const mh=O.forwardRef(function(e,r){const{actions:n,autoFocus:A=!1,autoFocusItem:a=!1,children:i,className:o,disabledItemsFocusable:s=!1,disableListWrap:l=!1,onKeyDown:u,variant:c="selectedMenu",...d}=e,h=O.useRef(null),f=O.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});rn(()=>{A&&h.current.focus()},[A]),O.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(v,{direction:y})=>{const b=!h.current.style.width;if(v.clientHeight{const y=h.current,b=v.key;if(v.ctrlKey||v.metaKey||v.altKey){u&&u(v);return}const C=Ft(y).activeElement;if(b==="ArrowDown")v.preventDefault(),xi(y,C,l,s,_c);else if(b==="ArrowUp")v.preventDefault(),xi(y,C,l,s,ag);else if(b==="Home")v.preventDefault(),xi(y,null,l,s,_c);else if(b==="End")v.preventDefault(),xi(y,null,l,s,ag);else if(b.length===1){const F=f.current,w=b.toLowerCase(),x=performance.now();F.keys.length>0&&(x-F.lastTime>500?(F.keys=[],F.repeating=!0,F.previousKeyMatched=!0):F.repeating&&w!==F.keys[0]&&(F.repeating=!1)),F.lastTime=x,F.keys.push(w);const Q=C&&!F.repeating&&i0(C,F);F.previousKeyMatched&&(Q||xi(y,C,!1,s,_c,F))?v.preventDefault():F.previousKeyMatched=!1}u&&u(v)},g=Qt(h,r);let m=-1;O.Children.forEach(i,(v,y)=>{if(!O.isValidElement(v)){m===y&&(m+=1,m>=i.length&&(m=-1));return}v.props.disabled||(c==="selectedMenu"&&v.props.selected||m===-1)&&(m=y),m===y&&(v.props.disabled||v.props.muiSkipListHighlight||v.type.muiSkipListHighlight)&&(m+=1,m>=i.length&&(m=-1))});const B=O.Children.map(i,(v,y)=>{if(y===m){const b={};return a&&(b.autoFocus=!0),v.props.tabIndex===void 0&&c==="selectedMenu"&&(b.tabIndex=0),O.cloneElement(v,b)}return v});return I.jsx(aT,{role:"menu",ref:g,className:o,onKeyDown:p,tabIndex:A?0:-1,...d,children:B})});function iT(t){return Pe("MuiPopover",t)}Me("MuiPopover",["root","paper"]);function ig(t,e){let r=0;return typeof e=="number"?r=e:e==="center"?r=t.height/2:e==="bottom"&&(r=t.height),r}function og(t,e){let r=0;return typeof e=="number"?r=e:e==="center"?r=t.width/2:e==="right"&&(r=t.width),r}function sg(t){return[t.horizontal,t.vertical].map(e=>typeof e=="number"?`${e}px`:e).join(" ")}function Xc(t){return typeof t=="function"?t():t}const oT=t=>{const{classes:e}=t;return Ke({root:["root"],paper:["paper"]},iT,e)},sT=me(A0,{name:"MuiPopover",slot:"Root",overridesResolver:(t,e)=>e.root})({}),o0=me(Ai,{name:"MuiPopover",slot:"Paper",overridesResolver:(t,e)=>e.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),lT=O.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiPopover"}),{action:A,anchorEl:a,anchorOrigin:i={vertical:"top",horizontal:"left"},anchorPosition:o,anchorReference:s="anchorEl",children:l,className:u,container:c,elevation:d=8,marginThreshold:h=16,open:f,PaperProps:p={},slots:g={},slotProps:m={},transformOrigin:B={vertical:"top",horizontal:"left"},TransitionComponent:v=KA,transitionDuration:y="auto",TransitionProps:{onEntering:b,...E}={},disableScrollLock:C=!1,...F}=n,w=(m==null?void 0:m.paper)??p,x=O.useRef(),Q={...n,anchorOrigin:i,anchorReference:s,elevation:d,marginThreshold:h,externalPaperSlotProps:w,transformOrigin:B,TransitionComponent:v,transitionDuration:y,TransitionProps:E},S=oT(Q),T=O.useCallback(()=>{if(s==="anchorPosition")return o;const q=Xc(a),se=(q&&q.nodeType===1?q:Ft(x.current).body).getBoundingClientRect();return{top:se.top+ig(se,i.vertical),left:se.left+og(se,i.horizontal)}},[a,i.horizontal,i.vertical,o,s]),U=O.useCallback(q=>({vertical:ig(q,B.vertical),horizontal:og(q,B.horizontal)}),[B.horizontal,B.vertical]),L=O.useCallback(q=>{const ee={width:q.offsetWidth,height:q.offsetHeight},se=U(ee);if(s==="none")return{top:null,left:null,transformOrigin:sg(se)};const te=T();let ae=te.top-se.vertical,le=te.left-se.horizontal;const ve=ae+ee.height,ge=le+ee.width,he=PA(Xc(a)),ye=he.innerHeight-h,Se=he.innerWidth-h;if(h!==null&&aeye){const Ce=ve-ye;ae-=Ce,se.vertical+=Ce}if(h!==null&&leSe){const Ce=ge-Se;le-=Ce,se.horizontal+=Ce}return{top:`${Math.round(ae)}px`,left:`${Math.round(le)}px`,transformOrigin:sg(se)}},[a,s,T,U,h]),[R,M]=O.useState(f),H=O.useCallback(()=>{const q=x.current;if(!q)return;const ee=L(q);ee.top!==null&&q.style.setProperty("top",ee.top),ee.left!==null&&(q.style.left=ee.left),q.style.transformOrigin=ee.transformOrigin,M(!0)},[L]);O.useEffect(()=>(C&&window.addEventListener("scroll",H),()=>window.removeEventListener("scroll",H)),[a,C,H]);const k=(q,ee)=>{b&&b(q,ee),H()},N=()=>{M(!1)};O.useEffect(()=>{f&&H()}),O.useImperativeHandle(A,()=>f?{updatePosition:()=>{H()}}:null,[f,H]),O.useEffect(()=>{if(!f)return;const q=Uy(()=>{H()}),ee=PA(a);return ee.addEventListener("resize",q),()=>{q.clear(),ee.removeEventListener("resize",q)}},[a,f,H]);let P=y;y==="auto"&&!v.muiSupportAuto&&(P=void 0);const K=c||(a?Ft(Xc(a)).body:void 0),W={slots:g,slotProps:{...m,paper:w}},[X,Z]=Rr("paper",{elementType:o0,externalForwardedProps:W,additionalProps:{elevation:d,className:xe(S.paper,w==null?void 0:w.className),style:R?w.style:{...w.style,opacity:0}},ownerState:Q}),[Ae,{slotProps:ie,...re}]=Rr("root",{elementType:sT,externalForwardedProps:W,additionalProps:{slotProps:{backdrop:{invisible:!0}},container:K,open:f},ownerState:Q,className:xe(S.root,u)}),z=Qt(x,Z.ref);return I.jsx(Ae,{...re,...!nA(Ae)&&{slotProps:ie,disableScrollLock:C},...F,ref:r,children:I.jsx(v,{appear:!0,in:f,onEntering:k,onExited:N,timeout:P,...E,children:I.jsx(X,{...Z,ref:z,children:l})})})});function uT(t){return Pe("MuiMenu",t)}Me("MuiMenu",["root","paper","list"]);const cT={vertical:"top",horizontal:"right"},fT={vertical:"top",horizontal:"left"},dT=t=>{const{classes:e}=t;return Ke({root:["root"],paper:["paper"],list:["list"]},uT,e)},hT=me(lT,{shouldForwardProp:t=>yr(t)||t==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(t,e)=>e.root})({}),pT=me(o0,{name:"MuiMenu",slot:"Paper",overridesResolver:(t,e)=>e.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),gT=me(mh,{name:"MuiMenu",slot:"List",overridesResolver:(t,e)=>e.list})({outline:0}),vT=O.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiMenu"}),{autoFocus:A=!0,children:a,className:i,disableAutoFocusItem:o=!1,MenuListProps:s={},onClose:l,open:u,PaperProps:c={},PopoverClasses:d,transitionDuration:h="auto",TransitionProps:{onEntering:f,...p}={},variant:g="selectedMenu",slots:m={},slotProps:B={},...v}=n,y=_o(),b={...n,autoFocus:A,disableAutoFocusItem:o,MenuListProps:s,onEntering:f,PaperProps:c,transitionDuration:h,TransitionProps:p,variant:g},E=dT(b),C=A&&!o&&u,F=O.useRef(null),w=(R,M)=>{F.current&&F.current.adjustStyleForScrollbar(R,{direction:y?"rtl":"ltr"}),f&&f(R,M)},x=R=>{R.key==="Tab"&&(R.preventDefault(),l&&l(R,"tabKeyDown"))};let Q=-1;O.Children.map(a,(R,M)=>{O.isValidElement(R)&&(R.props.disabled||(g==="selectedMenu"&&R.props.selected||Q===-1)&&(Q=M))});const S=m.paper??pT,T=B.paper??c,U=Yr({elementType:m.root,externalSlotProps:B.root,ownerState:b,className:[E.root,i]}),L=Yr({elementType:S,externalSlotProps:T,ownerState:b,className:E.paper});return I.jsx(hT,{onClose:l,anchorOrigin:{vertical:"bottom",horizontal:y?"right":"left"},transformOrigin:y?cT:fT,slots:{paper:S,root:m.root},slotProps:{root:U,paper:L},open:u,ref:r,transitionDuration:h,TransitionProps:{onEntering:w,...p},ownerState:b,...v,classes:d,children:I.jsx(gT,{onKeyDown:x,actions:F,autoFocus:A&&(Q===-1||o),autoFocusItem:C,variant:g,...s,className:xe(E.list,s.className),children:a})})});function mT(t){return Pe("MuiMenuItem",t)}const Fi=Me("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),yT=(t,e)=>{const{ownerState:r}=t;return[e.root,r.dense&&e.dense,r.divider&&e.divider,!r.disableGutters&&e.gutters]},BT=t=>{const{disabled:e,dense:r,divider:n,disableGutters:A,selected:a,classes:i}=t,s=Ke({root:["root",r&&"dense",e&&"disabled",!A&&"gutters",n&&"divider",a&&"selected"]},mT,i);return{...i,...s}},wT=me(ai,{shouldForwardProp:t=>yr(t)||t==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:yT})(ke(({theme:t})=>({...t.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Fi.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:dt(t.palette.primary.main,t.palette.action.selectedOpacity),[`&.${Fi.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:dt(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},[`&.${Fi.selected}:hover`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:dt(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:dt(t.palette.primary.main,t.palette.action.selectedOpacity)}},[`&.${Fi.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${Fi.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity},[`& + .${qp.root}`]:{marginTop:t.spacing(1),marginBottom:t.spacing(1)},[`& + .${qp.inset}`]:{marginLeft:52},[`& .${Ag.root}`]:{marginTop:0,marginBottom:0},[`& .${Ag.inset}`]:{paddingLeft:36},[`& .${ng.root}`]:{minWidth:36},variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(t.vars||t).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:e})=>!e.dense,style:{[t.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:e})=>e.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...t.typography.body2,[`& .${ng.root} svg`]:{fontSize:"1.25rem"}}}]}))),s0=O.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiMenuItem"}),{autoFocus:A=!1,component:a="li",dense:i=!1,divider:o=!1,disableGutters:s=!1,focusVisibleClassName:l,role:u="menuitem",tabIndex:c,className:d,...h}=n,f=O.useContext(Jf),p=O.useMemo(()=>({dense:i||f.dense||!1,disableGutters:s}),[f.dense,i,s]),g=O.useRef(null);rn(()=>{A&&g.current&&g.current.focus()},[A]);const m={...n,dense:p.dense,divider:o,disableGutters:s},B=BT(n),v=Qt(g,r);let y;return n.disabled||(y=c!==void 0?c:-1),I.jsx(Jf.Provider,{value:p,children:I.jsx(wT,{ref:v,role:u,tabIndex:y,component:a,focusVisibleClassName:xe(B.focusVisible,l),className:xe(B.root,d),...h,ownerState:m,classes:B})})});function CT(t){return Pe("MuiNativeSelect",t)}const yh=Me("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),bT=t=>{const{classes:e,variant:r,disabled:n,multiple:A,open:a,error:i}=t,o={select:["select",r,n&&"disabled",A&&"multiple",i&&"error"],icon:["icon",`icon${Fe(r)}`,a&&"iconOpen",n&&"disabled"]};return Ke(o,CT,e)},l0=me("select")(({theme:t})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${yh.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},variants:[{props:({ownerState:e})=>e.variant!=="filled"&&e.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}}]})),ET=me(l0,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:yr,overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.select,e[r.variant],r.error&&e.error,{[`&.${yh.multiple}`]:e.multiple}]}})({}),u0=me("svg")(({theme:t})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${yh.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:({ownerState:e})=>e.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),xT=me(u0,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.icon,r.variant&&e[`icon${Fe(r.variant)}`],r.open&&e.iconOpen]}})({}),FT=O.forwardRef(function(e,r){const{className:n,disabled:A,error:a,IconComponent:i,inputRef:o,variant:s="standard",...l}=e,u={...e,disabled:A,variant:s,error:a},c=bT(u);return I.jsxs(O.Fragment,{children:[I.jsx(ET,{ownerState:u,className:xe(c.select,n),disabled:A,ref:o||r,...l}),e.multiple?null:I.jsx(xT,{as:i,ownerState:u,className:c.icon})]})});var lg;const QT=me("fieldset",{shouldForwardProp:yr})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),ST=me("legend",{shouldForwardProp:yr})(ke(({theme:t})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:e})=>!e.withLabel,style:{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})}},{props:({ownerState:e})=>e.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:e})=>e.withLabel&&e.notched,style:{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})}}]})));function UT(t){const{children:e,classes:r,className:n,label:A,notched:a,...i}=t,o=A!=null&&A!=="",s={...t,notched:a,withLabel:o};return I.jsx(QT,{"aria-hidden":!0,className:n,ownerState:s,...i,children:I.jsx(ST,{ownerState:s,children:o?I.jsx("span",{children:A}):lg||(lg=I.jsx("span",{className:"notranslate",children:"​"}))})})}const TT=t=>{const{classes:e}=t,n=Ke({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},qQ,e);return{...e,...n}},IT=me(Zu,{shouldForwardProp:t=>yr(t)||t==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:qu})(ke(({theme:t})=>{const e=t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(t.vars||t).shape.borderRadius,[`&:hover .${sn.notchedOutline}`]:{borderColor:(t.vars||t).palette.text.primary},[`&.${sn.focused} .${sn.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(t.palette).filter(vr()).map(([r])=>({props:{color:r},style:{[`&.${sn.focused} .${sn.notchedOutline}`]:{borderColor:(t.vars||t).palette[r].main}}})),{props:{},style:{"@media (hover: none)":{[`&:hover .${sn.notchedOutline}`]:{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:e}},[`&.${sn.error} .${sn.notchedOutline}`]:{borderColor:(t.vars||t).palette.error.main},[`&.${sn.disabled} .${sn.notchedOutline}`]:{borderColor:(t.vars||t).palette.action.disabled}}},{props:({ownerState:r})=>r.startAdornment,style:{paddingLeft:14}},{props:({ownerState:r})=>r.endAdornment,style:{paddingRight:14}},{props:({ownerState:r})=>r.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:r,size:n})=>r.multiline&&n==="small",style:{padding:"8.5px 14px"}}]}})),LT=me(UT,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(t,e)=>e.notchedOutline})(ke(({theme:t})=>{const e=t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:e}})),DT=me(ec,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Ju})(ke(({theme:t})=>({padding:"16.5px 14px",...!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:t.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:t.palette.mode==="light"?null:"#fff",caretColor:t.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...t.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:e})=>e.multiline,style:{padding:0}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}}]}))),Nl=O.forwardRef(function(e,r){var n;const A=Ve({props:e,name:"MuiOutlinedInput"}),{components:a={},fullWidth:i=!1,inputComponent:o="input",label:s,multiline:l=!1,notched:u,slots:c={},type:d="text",...h}=A,f=TT(A),p=Vn(),g=qA({props:A,muiFormControl:p,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),m={...A,color:g.color||"primary",disabled:g.disabled,error:g.error,focused:g.focused,formControl:p,fullWidth:i,hiddenLabel:g.hiddenLabel,multiline:l,size:g.size,type:d},B=c.root??a.Root??IT,v=c.input??a.Input??DT;return I.jsx(Jo,{slots:{root:B,input:v},renderSuffix:y=>I.jsx(LT,{ownerState:m,className:f.notchedOutline,label:s!=null&&s!==""&&g.required?n||(n=I.jsxs(O.Fragment,{children:[s," ","*"]})):s,notched:typeof u<"u"?u:!!(y.startAdornment||y.filled||y.focused)}),fullWidth:i,inputComponent:o,multiline:l,ref:r,type:d,...h,classes:{...f,notchedOutline:null}})});Nl&&(Nl.muiName="Input");const RT=vt(I.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),MT=vt(I.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage");function OT(t){return Pe("MuiSelect",t)}const Qi=Me("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var ug;const HT=me(l0,{name:"MuiSelect",slot:"Select",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`&.${Qi.select}`]:e.select},{[`&.${Qi.select}`]:e[r.variant]},{[`&.${Qi.error}`]:e.error},{[`&.${Qi.multiple}`]:e.multiple}]}})({[`&.${Qi.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),kT=me(u0,{name:"MuiSelect",slot:"Icon",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.icon,r.variant&&e[`icon${Fe(r.variant)}`],r.open&&e.iconOpen]}})({}),PT=me("input",{shouldForwardProp:t=>_u(t)&&t!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(t,e)=>e.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function cg(t,e){return typeof e=="object"&&e!==null?t===e:String(t)===String(e)}function NT(t){return t==null||typeof t=="string"&&!t.trim()}const KT=t=>{const{classes:e,variant:r,disabled:n,multiple:A,open:a,error:i}=t,o={select:["select",r,n&&"disabled",A&&"multiple",i&&"error"],icon:["icon",`icon${Fe(r)}`,a&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return Ke(o,OT,e)},GT=O.forwardRef(function(e,r){var Te;const{"aria-describedby":n,"aria-label":A,autoFocus:a,autoWidth:i,children:o,className:s,defaultOpen:l,defaultValue:u,disabled:c,displayEmpty:d,error:h=!1,IconComponent:f,inputRef:p,labelId:g,MenuProps:m={},multiple:B,name:v,onBlur:y,onChange:b,onClose:E,onFocus:C,onOpen:F,open:w,readOnly:x,renderValue:Q,SelectDisplayProps:S={},tabIndex:T,type:U,value:L,variant:R="standard",...M}=e,[H,k]=Co({controlled:L,default:u,name:"Select"}),[N,P]=Co({controlled:w,default:l,name:"Select"}),K=O.useRef(null),W=O.useRef(null),[X,Z]=O.useState(null),{current:Ae}=O.useRef(w!=null),[ie,re]=O.useState(),z=Qt(r,p),q=O.useCallback(V=>{W.current=V,V&&Z(V)},[]),ee=X==null?void 0:X.parentNode;O.useImperativeHandle(z,()=>({focus:()=>{W.current.focus()},node:K.current,value:H}),[H]),O.useEffect(()=>{l&&N&&X&&!Ae&&(re(i?null:ee.clientWidth),W.current.focus())},[X,i]),O.useEffect(()=>{a&&W.current.focus()},[a]),O.useEffect(()=>{if(!g)return;const V=Ft(W.current).getElementById(g);if(V){const oe=()=>{getSelection().isCollapsed&&W.current.focus()};return V.addEventListener("click",oe),()=>{V.removeEventListener("click",oe)}}},[g]);const se=(V,oe)=>{V?F&&F(oe):E&&E(oe),Ae||(re(i?null:ee.clientWidth),P(V))},te=V=>{V.button===0&&(V.preventDefault(),W.current.focus(),se(!0,V))},ae=V=>{se(!1,V)},le=O.Children.toArray(o),ve=V=>{const oe=le.find(fe=>fe.props.value===V.target.value);oe!==void 0&&(k(oe.props.value),b&&b(V,oe))},ge=V=>oe=>{let fe;if(oe.currentTarget.hasAttribute("tabindex")){if(B){fe=Array.isArray(H)?H.slice():[];const pe=H.indexOf(V.props.value);pe===-1?fe.push(V.props.value):fe.splice(pe,1)}else fe=V.props.value;if(V.props.onClick&&V.props.onClick(oe),H!==fe&&(k(fe),b)){const pe=oe.nativeEvent||oe,Be=new pe.constructor(pe.type,pe);Object.defineProperty(Be,"target",{writable:!0,value:{value:fe,name:v}}),b(Be,V)}B||se(!1,oe)}},he=V=>{x||[" ","ArrowUp","ArrowDown","Enter"].includes(V.key)&&(V.preventDefault(),se(!0,V))},ye=X!==null&&N,Se=V=>{!ye&&y&&(Object.defineProperty(V,"target",{writable:!0,value:{value:H,name:v}}),y(V))};delete M["aria-invalid"];let Ce,we;const _=[];let $=!1;(Hl({value:H})||d)&&(Q?Ce=Q(H):$=!0);const D=le.map(V=>{if(!O.isValidElement(V))return null;let oe;if(B){if(!Array.isArray(H))throw new Error(Mn(2));oe=H.some(fe=>cg(fe,V.props.value)),oe&&$&&_.push(V.props.children)}else oe=cg(H,V.props.value),oe&&$&&(we=V.props.children);return O.cloneElement(V,{"aria-selected":oe?"true":"false",onClick:ge(V),onKeyUp:fe=>{fe.key===" "&&fe.preventDefault(),V.props.onKeyUp&&V.props.onKeyUp(fe)},role:"option",selected:oe,value:void 0,"data-value":V.props.value})});$&&(B?_.length===0?Ce=null:Ce=_.reduce((V,oe,fe)=>(V.push(oe),fe<_.length-1&&V.push(", "),V),[]):Ce=we);let G=ie;!i&&Ae&&X&&(G=ee.clientWidth);let J;typeof T<"u"?J=T:J=c?null:0;const j=S.id||(v?`mui-component-select-${v}`:void 0),ne={...e,variant:R,value:H,open:ye,error:h},ce=KT(ne),Y={...m.PaperProps,...(Te=m.slotProps)==null?void 0:Te.paper},de=wo();return I.jsxs(O.Fragment,{children:[I.jsx(HT,{as:"div",ref:q,tabIndex:J,role:"combobox","aria-controls":de,"aria-disabled":c?"true":void 0,"aria-expanded":ye?"true":"false","aria-haspopup":"listbox","aria-label":A,"aria-labelledby":[g,j].filter(Boolean).join(" ")||void 0,"aria-describedby":n,onKeyDown:he,onMouseDown:c||x?null:te,onBlur:Se,onFocus:C,...S,ownerState:ne,className:xe(S.className,ce.select,s),id:j,children:NT(Ce)?ug||(ug=I.jsx("span",{className:"notranslate",children:"​"})):Ce}),I.jsx(PT,{"aria-invalid":h,value:Array.isArray(H)?H.join(","):H,name:v,ref:K,"aria-hidden":!0,onChange:ve,tabIndex:-1,disabled:c,className:ce.nativeInput,autoFocus:a,...M,ownerState:ne}),I.jsx(kT,{as:f,className:ce.icon,ownerState:ne}),I.jsx(vT,{id:`menu-${v||""}`,anchorEl:ee,open:ye,onClose:ae,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...m,MenuListProps:{"aria-labelledby":g,role:"listbox","aria-multiselectable":B?"true":void 0,disableListWrap:!0,id:de,...m.MenuListProps},slotProps:{...m.slotProps,paper:{...Y,style:{minWidth:G,...Y!=null?Y.style:null}}},children:D})]})}),VT=t=>{const{classes:e}=t;return e},Bh={name:"MuiSelect",overridesResolver:(t,e)=>e.root,shouldForwardProp:t=>yr(t)&&t!=="variant",slot:"Root"},$T=me(Pl,Bh)(""),zT=me(Nl,Bh)(""),WT=me(kl,Bh)(""),rc=O.forwardRef(function(e,r){const n=Wu({name:"MuiSelect",props:e}),{autoWidth:A=!1,children:a,classes:i={},className:o,defaultOpen:s=!1,displayEmpty:l=!1,IconComponent:u=ZQ,id:c,input:d,inputProps:h,label:f,labelId:p,MenuProps:g,multiple:m=!1,native:B=!1,onClose:v,onOpen:y,open:b,renderValue:E,SelectDisplayProps:C,variant:F="outlined",...w}=n,x=B?FT:GT,Q=Vn(),S=qA({props:n,muiFormControl:Q,states:["variant","error"]}),T=S.variant||F,U={...n,variant:T,classes:i},L=VT(U),{root:R,...M}=L,H=d||{standard:I.jsx($T,{ownerState:U}),outlined:I.jsx(zT,{label:f,ownerState:U}),filled:I.jsx(WT,{ownerState:U})}[T],k=Qt(r,jA(H));return I.jsx(O.Fragment,{children:O.cloneElement(H,{inputComponent:x,inputProps:{children:a,error:S.error,IconComponent:u,variant:T,type:void 0,multiple:m,...B?{id:c}:{autoWidth:A,defaultOpen:s,displayEmpty:l,labelId:p,MenuProps:g,onClose:v,onOpen:y,open:b,renderValue:E,SelectDisplayProps:{id:c,...C}},...h,classes:h?$t(M,h.classes):M,...d?d.props.inputProps:{}},...(m&&B||l)&&T==="outlined"?{notched:!0}:{},ref:k,className:xe(H.props.className,o,L.root),...!d&&{variant:T},...w})})});rc.muiName="Select";function _T(t,e,r=(n,A)=>n===A){return t.length===e.length&&t.every((n,A)=>r(n,e[A]))}const XT=2;function c0(t,e){return t-e}function fg(t,e){const{index:r}=t.reduce((n,A,a)=>{const i=Math.abs(e-A);return n===null||i({left:`${t}%`}),leap:t=>({width:`${t}%`})},"horizontal-reverse":{offset:t=>({right:`${t}%`}),leap:t=>({width:`${t}%`})},vertical:{offset:t=>({bottom:`${t}%`}),leap:t=>({height:`${t}%`})}},ZT=t=>t;let xs;function hg(){return xs===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?xs=CSS.supports("touch-action","none"):xs=!0),xs}function eI(t){const{"aria-labelledby":e,defaultValue:r,disabled:n=!1,disableSwap:A=!1,isRtl:a=!1,marks:i=!1,max:o=100,min:s=0,name:l,onChange:u,onChangeCommitted:c,orientation:d="horizontal",rootRef:h,scale:f=ZT,step:p=1,shiftStep:g=10,tabIndex:m,value:B}=t,v=O.useRef(void 0),[y,b]=O.useState(-1),[E,C]=O.useState(-1),[F,w]=O.useState(!1),x=O.useRef(0),[Q,S]=Co({controlled:B,default:r??s,name:"Slider"}),T=u&&((_,$,D)=>{const G=_.nativeEvent||_,J=new G.constructor(G.type,G);Object.defineProperty(J,"target",{writable:!0,value:{value:$,name:l}}),u(J,$,D)}),U=Array.isArray(Q);let L=U?Q.slice().sort(c0):[Q];L=L.map(_=>_==null?s:Ba(_,s,o));const R=i===!0&&p!==null?[...Array(Math.floor((o-s)/p)+1)].map((_,$)=>({value:s+p*$})):i||[],M=R.map(_=>_.value),[H,k]=O.useState(-1),N=O.useRef(null),P=Qt(h,N),K=_=>$=>{var G;const D=Number($.currentTarget.getAttribute("data-index"));za($.target)&&k(D),C(D),(G=_==null?void 0:_.onFocus)==null||G.call(_,$)},W=_=>$=>{var D;za($.target)||k(-1),C(-1),(D=_==null?void 0:_.onBlur)==null||D.call(_,$)},X=(_,$)=>{const D=Number(_.currentTarget.getAttribute("data-index")),G=L[D],J=M.indexOf(G);let j=$;if(R&&p==null){const ne=M[M.length-1];j>ne?j=ne:j$=>{var D;if(p!==null){const G=Number($.currentTarget.getAttribute("data-index")),J=L[G];let j=null;($.key==="ArrowLeft"||$.key==="ArrowDown")&&$.shiftKey||$.key==="PageDown"?j=Math.max(J-g,s):(($.key==="ArrowRight"||$.key==="ArrowUp")&&$.shiftKey||$.key==="PageUp")&&(j=Math.min(J+g,o)),j!==null&&(X($,j),$.preventDefault())}(D=_==null?void 0:_.onKeyDown)==null||D.call(_,$)};rn(()=>{var _;n&&N.current.contains(document.activeElement)&&((_=document.activeElement)==null||_.blur())},[n]),n&&y!==-1&&b(-1),n&&H!==-1&&k(-1);const Ae=_=>$=>{var D;(D=_.onChange)==null||D.call(_,$),X($,$.target.valueAsNumber)},ie=O.useRef(void 0);let re=d;a&&d==="horizontal"&&(re+="-reverse");const z=({finger:_,move:$=!1})=>{const{current:D}=N,{width:G,height:J,bottom:j,left:ne}=D.getBoundingClientRect();let ce;re.startsWith("vertical")?ce=(j-_.y)/J:ce=(_.x-ne)/G,re.includes("-reverse")&&(ce=1-ce);let Y;if(Y=YT(ce,s,o),p)Y=qT(Y,p,s);else{const Te=fg(M,Y);Y=M[Te]}Y=Ba(Y,s,o);let de=0;if(U){$?de=ie.current:de=fg(L,Y),A&&(Y=Ba(Y,L[de-1]||-1/0,L[de+1]||1/0));const Te=Y;Y=dg({values:L,newValue:Y,index:de}),A&&$||(de=Y.indexOf(Te),ie.current=de)}return{newValue:Y,activeIndex:de}},q=Mr(_=>{const $=Cs(_,v);if(!$)return;if(x.current+=1,_.type==="mousemove"&&_.buttons===0){ee(_);return}const{newValue:D,activeIndex:G}=z({finger:$,move:!0});bs({sliderRef:N,activeIndex:G,setActive:b}),S(D),!F&&x.current>XT&&w(!0),T&&!Es(D,Q)&&T(_,D,G)}),ee=Mr(_=>{const $=Cs(_,v);if(w(!1),!$)return;const{newValue:D}=z({finger:$,move:!0});b(-1),_.type==="touchend"&&C(-1),c&&c(_,D),v.current=void 0,te()}),se=Mr(_=>{if(n)return;hg()||_.preventDefault();const $=_.changedTouches[0];$!=null&&(v.current=$.identifier);const D=Cs(_,v);if(D!==!1){const{newValue:J,activeIndex:j}=z({finger:D});bs({sliderRef:N,activeIndex:j,setActive:b}),S(J),T&&!Es(J,Q)&&T(_,J,j)}x.current=0;const G=Ft(N.current);G.addEventListener("touchmove",q,{passive:!0}),G.addEventListener("touchend",ee,{passive:!0})}),te=O.useCallback(()=>{const _=Ft(N.current);_.removeEventListener("mousemove",q),_.removeEventListener("mouseup",ee),_.removeEventListener("touchmove",q),_.removeEventListener("touchend",ee)},[ee,q]);O.useEffect(()=>{const{current:_}=N;return _.addEventListener("touchstart",se,{passive:hg()}),()=>{_.removeEventListener("touchstart",se),te()}},[te,se]),O.useEffect(()=>{n&&te()},[n,te]);const ae=_=>$=>{var J;if((J=_.onMouseDown)==null||J.call(_,$),n||$.defaultPrevented||$.button!==0)return;$.preventDefault();const D=Cs($,v);if(D!==!1){const{newValue:j,activeIndex:ne}=z({finger:D});bs({sliderRef:N,activeIndex:ne,setActive:b}),S(j),T&&!Es(j,Q)&&T($,j,ne)}x.current=0;const G=Ft(N.current);G.addEventListener("mousemove",q,{passive:!0}),G.addEventListener("mouseup",ee)},le=Kl(U?L[0]:s,s,o),ve=Kl(L[L.length-1],s,o)-le,ge=(_={})=>{const $=to(_),D={onMouseDown:ae($||{})},G={...$,...D};return{..._,ref:P,...G}},he=_=>$=>{var G;(G=_.onMouseOver)==null||G.call(_,$);const D=Number($.currentTarget.getAttribute("data-index"));C(D)},ye=_=>$=>{var D;(D=_.onMouseLeave)==null||D.call(_,$),C(-1)};return{active:y,axis:re,axisProps:JT,dragging:F,focusedThumbIndex:H,getHiddenInputProps:(_={})=>{const $=to(_),D={onChange:Ae($||{}),onFocus:K($||{}),onBlur:W($||{}),onKeyDown:Z($||{})},G={...$,...D};return{tabIndex:m,"aria-labelledby":e,"aria-orientation":d,"aria-valuemax":f(o),"aria-valuemin":f(s),name:l,type:"range",min:t.min,max:t.max,step:t.step===null&&t.marks?"any":t.step??void 0,disabled:n,..._,...G,style:{...y1,direction:a?"rtl":"ltr",width:"100%",height:"100%"}}},getRootProps:ge,getThumbProps:(_={})=>{const $=to(_),D={onMouseOver:he($||{}),onMouseLeave:ye($||{})};return{..._,...$,...D}},marks:R,open:E,range:U,rootRef:P,trackLeap:ve,trackOffset:le,values:L,getThumbStyle:_=>({pointerEvents:y!==-1&&y!==_?"none":void 0})}}const tI=t=>!t||!nA(t);function rI(t){return Pe("MuiSlider",t)}const Or=Me("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),nI=t=>{const{open:e}=t;return{offset:xe(e&&Or.valueLabelOpen),circle:Or.valueLabelCircle,label:Or.valueLabelLabel}};function AI(t){const{children:e,className:r,value:n}=t,A=nI(t);return e?O.cloneElement(e,{className:xe(e.props.className)},I.jsxs(O.Fragment,{children:[e.props.children,I.jsx("span",{className:xe(A.offset,r),"aria-hidden":!0,children:I.jsx("span",{className:A.circle,children:I.jsx("span",{className:A.label,children:n})})})]})):null}function pg(t){return t}const aI=me("span",{name:"MuiSlider",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`color${Fe(r.color)}`],r.size!=="medium"&&e[`size${Fe(r.size)}`],r.marked&&e.marked,r.orientation==="vertical"&&e.vertical,r.track==="inverted"&&e.trackInverted,r.track===!1&&e.trackFalse]}})(ke(({theme:t})=>({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${Or.disabled}`]:{pointerEvents:"none",cursor:"default",color:(t.vars||t).palette.grey[400]},[`&.${Or.dragging}`]:{[`& .${Or.thumb}, & .${Or.track}`]:{transition:"none"}},variants:[...Object.entries(t.palette).filter(vr()).map(([e])=>({props:{color:e},style:{color:(t.vars||t).palette[e].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}))),iI=me("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(t,e)=>e.rail})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),oI=me("span",{name:"MuiSlider",slot:"Track",overridesResolver:(t,e)=>e.track})(ke(({theme:t})=>({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:t.transitions.create(["left","width","bottom","height"],{duration:t.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.entries(t.palette).filter(vr()).map(([e])=>({props:{color:e,track:"inverted"},style:{...t.vars?{backgroundColor:t.vars.palette.Slider[`${e}Track`],borderColor:t.vars.palette.Slider[`${e}Track`]}:{backgroundColor:$a(t.palette[e].main,.62),borderColor:$a(t.palette[e].main,.62),...t.applyStyles("dark",{backgroundColor:Va(t.palette[e].main,.5)}),...t.applyStyles("dark",{borderColor:Va(t.palette[e].main,.5)})}}}))]}))),sI=me("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.thumb,e[`thumbColor${Fe(r.color)}`],r.size!=="medium"&&e[`thumbSize${Fe(r.size)}`]]}})(ke(({theme:t})=>({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:t.transitions.create(["box-shadow","left","bottom"],{duration:t.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(t.vars||t).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${Or.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.entries(t.palette).filter(vr()).map(([e])=>({props:{color:e},style:{[`&:hover, &.${Or.focusVisible}`]:{...t.vars?{boxShadow:`0px 0px 0px 8px rgba(${t.vars.palette[e].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${dt(t.palette[e].main,.16)}`},"@media (hover: none)":{boxShadow:"none"}},[`&.${Or.active}`]:{...t.vars?{boxShadow:`0px 0px 0px 14px rgba(${t.vars.palette[e].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${dt(t.palette[e].main,.16)}`}}}}))]}))),lI=me(AI,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(t,e)=>e.valueLabel})(ke(({theme:t})=>({zIndex:1,whiteSpace:"nowrap",...t.typography.body2,fontWeight:500,transition:t.transitions.create(["transform"],{duration:t.transitions.duration.shortest}),position:"absolute",backgroundColor:(t.vars||t).palette.grey[600],borderRadius:2,color:(t.vars||t).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${Or.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${Or.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:t.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]}))),uI=me("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:t=>_u(t)&&t!=="markActive",overridesResolver:(t,e)=>{const{markActive:r}=t;return[e.mark,r&&e.markActive]}})(ke(({theme:t})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(t.vars||t).palette.background.paper,opacity:.8}}]}))),cI=me("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:t=>_u(t)&&t!=="markLabelActive",overridesResolver:(t,e)=>e.markLabel})(ke(({theme:t})=>({...t.typography.body2,color:(t.vars||t).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(t.vars||t).palette.text.primary}}]}))),fI=t=>{const{disabled:e,dragging:r,marked:n,orientation:A,track:a,classes:i,color:o,size:s}=t,l={root:["root",e&&"disabled",r&&"dragging",n&&"marked",A==="vertical"&&"vertical",a==="inverted"&&"trackInverted",a===!1&&"trackFalse",o&&`color${Fe(o)}`,s&&`size${Fe(s)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",e&&"disabled",s&&`thumbSize${Fe(s)}`,o&&`thumbColor${Fe(o)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Ke(l,rI,i)},dI=({children:t})=>t,hI=O.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiSlider"}),A=_o(),{"aria-label":a,"aria-valuetext":i,"aria-labelledby":o,component:s="span",components:l={},componentsProps:u={},color:c="primary",classes:d,className:h,disableSwap:f=!1,disabled:p=!1,getAriaLabel:g,getAriaValueText:m,marks:B=!1,max:v=100,min:y=0,name:b,onChange:E,onChangeCommitted:C,orientation:F="horizontal",shiftStep:w=10,size:x="medium",step:Q=1,scale:S=pg,slotProps:T,slots:U,tabIndex:L,track:R="normal",value:M,valueLabelDisplay:H="off",valueLabelFormat:k=pg,...N}=n,P={...n,isRtl:A,max:v,min:y,classes:d,disabled:p,disableSwap:f,orientation:F,marks:B,color:c,size:x,step:Q,shiftStep:w,scale:S,track:R,valueLabelDisplay:H,valueLabelFormat:k},{axisProps:K,getRootProps:W,getHiddenInputProps:X,getThumbProps:Z,open:Ae,active:ie,axis:re,focusedThumbIndex:z,range:q,dragging:ee,marks:se,values:te,trackOffset:ae,trackLeap:le,getThumbStyle:ve}=eI({...P,rootRef:r});P.marked=se.length>0&&se.some(Ge=>Ge.label),P.dragging=ee,P.focusedThumbIndex=z;const ge=fI(P),he=(U==null?void 0:U.root)??l.Root??aI,ye=(U==null?void 0:U.rail)??l.Rail??iI,Se=(U==null?void 0:U.track)??l.Track??oI,Ce=(U==null?void 0:U.thumb)??l.Thumb??sI,we=(U==null?void 0:U.valueLabel)??l.ValueLabel??lI,_=(U==null?void 0:U.mark)??l.Mark??uI,$=(U==null?void 0:U.markLabel)??l.MarkLabel??cI,D=(U==null?void 0:U.input)??l.Input??"input",G=(T==null?void 0:T.root)??u.root,J=(T==null?void 0:T.rail)??u.rail,j=(T==null?void 0:T.track)??u.track,ne=(T==null?void 0:T.thumb)??u.thumb,ce=(T==null?void 0:T.valueLabel)??u.valueLabel,Y=(T==null?void 0:T.mark)??u.mark,de=(T==null?void 0:T.markLabel)??u.markLabel,Te=(T==null?void 0:T.input)??u.input,V=Yr({elementType:he,getSlotProps:W,externalSlotProps:G,externalForwardedProps:N,additionalProps:{...tI(he)&&{as:s}},ownerState:{...P,...G==null?void 0:G.ownerState},className:[ge.root,h]}),oe=Yr({elementType:ye,externalSlotProps:J,ownerState:P,className:ge.rail}),fe=Yr({elementType:Se,externalSlotProps:j,additionalProps:{style:{...K[re].offset(ae),...K[re].leap(le)}},ownerState:{...P,...j==null?void 0:j.ownerState},className:ge.track}),pe=Yr({elementType:Ce,getSlotProps:Z,externalSlotProps:ne,ownerState:{...P,...ne==null?void 0:ne.ownerState},className:ge.thumb}),Be=Yr({elementType:we,externalSlotProps:ce,ownerState:{...P,...ce==null?void 0:ce.ownerState},className:ge.valueLabel}),Oe=Yr({elementType:_,externalSlotProps:Y,ownerState:P,className:ge.mark}),Ne=Yr({elementType:$,externalSlotProps:de,ownerState:P,className:ge.markLabel}),ut=Yr({elementType:D,getSlotProps:X,externalSlotProps:Te,ownerState:P});return I.jsxs(he,{...V,children:[I.jsx(ye,{...oe}),I.jsx(Se,{...fe}),se.filter(Ge=>Ge.value>=y&&Ge.value<=v).map((Ge,He)=>{const pt=Kl(Ge.value,y,v),Je=K[re].offset(pt);let ze;return R===!1?ze=te.includes(Ge.value):ze=R==="normal"&&(q?Ge.value>=te[0]&&Ge.value<=te[te.length-1]:Ge.value<=te[0])||R==="inverted"&&(q?Ge.value<=te[0]||Ge.value>=te[te.length-1]:Ge.value>=te[0]),I.jsxs(O.Fragment,{children:[I.jsx(_,{"data-index":He,...Oe,...!nA(_)&&{markActive:ze},style:{...Je,...Oe.style},className:xe(Oe.className,ze&&ge.markActive)}),Ge.label!=null?I.jsx($,{"aria-hidden":!0,"data-index":He,...Ne,...!nA($)&&{markLabelActive:ze},style:{...Je,...Ne.style},className:xe(ge.markLabel,Ne.className,ze&&ge.markLabelActive),children:Ge.label}):null]},He)}),te.map((Ge,He)=>{const pt=Kl(Ge,y,v),Je=K[re].offset(pt),ze=H==="off"?dI:we;return I.jsx(ze,{...!nA(ze)&&{valueLabelFormat:k,valueLabelDisplay:H,value:typeof k=="function"?k(S(Ge),He):k,index:He,open:Ae===He||ie===He||H==="on",disabled:p},...Be,children:I.jsx(Ce,{"data-index":He,...pe,className:xe(ge.thumb,pe.className,ie===He&&ge.active,z===He&&ge.focusVisible),style:{...Je,...ve(He),...pe.style},children:I.jsx(D,{"data-index":He,"aria-label":g?g(He):a,"aria-valuenow":S(Ge),"aria-labelledby":o,"aria-valuetext":m?m(S(Ge),He):i,value:te[He],...ut})})},He)})]})});function pI(t){return Pe("MuiTooltip",t)}const Et=Me("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function gI(t){return Math.round(t*1e5)/1e5}const vI=t=>{const{classes:e,disableInteractive:r,arrow:n,touch:A,placement:a}=t,i={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",A&&"touch",`tooltipPlacement${Fe(a.split("-")[0])}`],arrow:["arrow"]};return Ke(i,pI,e)},mI=me(Yu,{name:"MuiTooltip",slot:"Popper",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.popper,!r.disableInteractive&&e.popperInteractive,r.arrow&&e.popperArrow,!r.open&&e.popperClose]}})(ke(({theme:t})=>({zIndex:(t.vars||t).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:e})=>!e.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:e})=>!e,style:{pointerEvents:"none"}},{props:({ownerState:e})=>e.arrow,style:{[`&[data-popper-placement*="bottom"] .${Et.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Et.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Et.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${Et.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="right"] .${Et.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="right"] .${Et.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="left"] .${Et.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="left"] .${Et.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),yI=me("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.tooltip,r.touch&&e.touch,r.arrow&&e.tooltipArrow,e[`tooltipPlacement${Fe(r.placement.split("-")[0])}`]]}})(ke(({theme:t})=>({backgroundColor:t.vars?t.vars.palette.Tooltip.bg:dt(t.palette.grey[700],.92),borderRadius:(t.vars||t).shape.borderRadius,color:(t.vars||t).palette.common.white,fontFamily:t.typography.fontFamily,padding:"4px 8px",fontSize:t.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:t.typography.fontWeightMedium,[`.${Et.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${Et.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${Et.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${Et.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:e})=>e.arrow,style:{position:"relative",margin:0}},{props:({ownerState:e})=>e.touch,style:{padding:"8px 16px",fontSize:t.typography.pxToRem(14),lineHeight:`${gI(16/14)}em`,fontWeight:t.typography.fontWeightRegular}},{props:({ownerState:e})=>!e.isRtl,style:{[`.${Et.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${Et.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:e})=>!e.isRtl&&e.touch,style:{[`.${Et.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${Et.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:e})=>!!e.isRtl,style:{[`.${Et.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${Et.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:e})=>!!e.isRtl&&e.touch,style:{[`.${Et.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${Et.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${Et.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${Et.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),BI=me("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(t,e)=>e.arrow})(ke(({theme:t})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:t.vars?t.vars.palette.Tooltip.bg:dt(t.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let Fs=!1;const gg=new Vu;let Si={x:0,y:0};function Qs(t,e){return(r,...n)=>{e&&e(r,...n),t(r,...n)}}const IA=O.forwardRef(function(e,r){var pt,Je,ze;const n=Ve({props:e,name:"MuiTooltip"}),{arrow:A=!1,children:a,classes:i,components:o={},componentsProps:s={},describeChild:l=!1,disableFocusListener:u=!1,disableHoverListener:c=!1,disableInteractive:d=!1,disableTouchListener:h=!1,enterDelay:f=100,enterNextDelay:p=0,enterTouchDelay:g=700,followCursor:m=!1,id:B,leaveDelay:v=0,leaveTouchDelay:y=1500,onClose:b,onOpen:E,open:C,placement:F="bottom",PopperComponent:w,PopperProps:x={},slotProps:Q={},slots:S={},title:T,TransitionComponent:U=KA,TransitionProps:L,...R}=n,M=O.isValidElement(a)?a:I.jsx("span",{children:a}),H=Yo(),k=_o(),[N,P]=O.useState(),[K,W]=O.useState(null),X=O.useRef(!1),Z=d||m,Ae=xa(),ie=xa(),re=xa(),z=xa(),[q,ee]=Co({controlled:C,default:!1,name:"Tooltip",state:"open"});let se=q;const te=wo(B),ae=O.useRef(),le=Mr(()=>{ae.current!==void 0&&(document.body.style.WebkitUserSelect=ae.current,ae.current=void 0),z.clear()});O.useEffect(()=>le,[le]);const ve=De=>{gg.clear(),Fs=!0,ee(!0),E&&!se&&E(De)},ge=Mr(De=>{gg.start(800+v,()=>{Fs=!1}),ee(!1),b&&se&&b(De),Ae.start(H.transitions.duration.shortest,()=>{X.current=!1})}),he=De=>{X.current&&De.type!=="touchstart"||(N&&N.removeAttribute("title"),ie.clear(),re.clear(),f||Fs&&p?ie.start(Fs?p:f,()=>{ve(De)}):ve(De))},ye=De=>{ie.clear(),re.start(v,()=>{ge(De)})},[,Se]=O.useState(!1),Ce=De=>{za(De.target)||(Se(!1),ye(De))},we=De=>{N||P(De.currentTarget),za(De.target)&&(Se(!0),he(De))},_=De=>{X.current=!0;const nt=M.props;nt.onTouchStart&&nt.onTouchStart(De)},$=De=>{_(De),re.clear(),Ae.clear(),le(),ae.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",z.start(g,()=>{document.body.style.WebkitUserSelect=ae.current,he(De)})},D=De=>{M.props.onTouchEnd&&M.props.onTouchEnd(De),le(),re.start(y,()=>{ge(De)})};O.useEffect(()=>{if(!se)return;function De(nt){nt.key==="Escape"&&ge(nt)}return document.addEventListener("keydown",De),()=>{document.removeEventListener("keydown",De)}},[ge,se]);const G=Qt(jA(M),P,r);!T&&T!==0&&(se=!1);const J=O.useRef(),j=De=>{const nt=M.props;nt.onMouseMove&&nt.onMouseMove(De),Si={x:De.clientX,y:De.clientY},J.current&&J.current.update()},ne={},ce=typeof T=="string";l?(ne.title=!se&&ce&&!c?T:null,ne["aria-describedby"]=se?te:null):(ne["aria-label"]=ce?T:null,ne["aria-labelledby"]=se&&!ce?te:null);const Y={...ne,...R,...M.props,className:xe(R.className,M.props.className),onTouchStart:_,ref:G,...m?{onMouseMove:j}:{}},de={};h||(Y.onTouchStart=$,Y.onTouchEnd=D),c||(Y.onMouseOver=Qs(he,Y.onMouseOver),Y.onMouseLeave=Qs(ye,Y.onMouseLeave),Z||(de.onMouseOver=he,de.onMouseLeave=ye)),u||(Y.onFocus=Qs(we,Y.onFocus),Y.onBlur=Qs(Ce,Y.onBlur),Z||(de.onFocus=we,de.onBlur=Ce));const Te=O.useMemo(()=>{var nt;let De=[{name:"arrow",enabled:!!K,options:{element:K,padding:4}}];return(nt=x.popperOptions)!=null&&nt.modifiers&&(De=De.concat(x.popperOptions.modifiers)),{...x.popperOptions,modifiers:De}},[K,x]),V={...n,isRtl:k,arrow:A,disableInteractive:Z,placement:F,PopperComponentProp:w,touch:X.current},oe=vI(V),fe=S.popper??o.Popper??mI,pe=S.transition??o.Transition??U??KA,Be=S.tooltip??o.Tooltip??yI,Oe=S.arrow??o.Arrow??BI,Ne=Fa(fe,{...x,...Q.popper??s.popper,className:xe(oe.popper,x==null?void 0:x.className,(pt=Q.popper??s.popper)==null?void 0:pt.className)},V),ut=Fa(pe,{...L,...Q.transition??s.transition},V),Ge=Fa(Be,{...Q.tooltip??s.tooltip,className:xe(oe.tooltip,(Je=Q.tooltip??s.tooltip)==null?void 0:Je.className)},V),He=Fa(Oe,{...Q.arrow??s.arrow,className:xe(oe.arrow,(ze=Q.arrow??s.arrow)==null?void 0:ze.className)},V);return I.jsxs(O.Fragment,{children:[O.cloneElement(M,Y),I.jsx(fe,{as:w??Yu,placement:F,anchorEl:m?{getBoundingClientRect:()=>({top:Si.y,left:Si.x,right:Si.x,bottom:Si.y,width:0,height:0})}:N,popperRef:J,open:N?se:!1,id:te,transition:!0,...de,...Ne,popperOptions:Te,children:({TransitionProps:De})=>I.jsx(pe,{timeout:H.transitions.duration.shorter,...De,...ut,children:I.jsxs(Be,{...Ge,children:[T,A?I.jsx(Oe,{...He,ref:W}):null]})})})]})}),Fo=sx({createStyledComponent:me("div",{name:"MuiStack",slot:"Root",overridesResolver:(t,e)=>e.root}),useThemeProps:t=>Wu({props:t,name:"MuiStack"})}),f0=O.createContext();function wI(t){return Pe("MuiTable",t)}Me("MuiTable",["root","stickyHeader"]);const CI=t=>{const{classes:e,stickyHeader:r}=t;return Ke({root:["root",r&&"stickyHeader"]},wI,e)},bI=me("table",{name:"MuiTable",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.stickyHeader&&e.stickyHeader]}})(ke(({theme:t})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...t.typography.body2,padding:t.spacing(2),color:(t.vars||t).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:e})=>e.stickyHeader,style:{borderCollapse:"separate"}}]}))),vg="table",d0=O.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiTable"}),{className:A,component:a=vg,padding:i="normal",size:o="medium",stickyHeader:s=!1,...l}=n,u={...n,component:a,padding:i,size:o,stickyHeader:s},c=CI(u),d=O.useMemo(()=>({padding:i,size:o,stickyHeader:s}),[i,o,s]);return I.jsx(f0.Provider,{value:d,children:I.jsx(bI,{as:a,role:a===vg?null:"table",ref:r,className:xe(c.root,A),ownerState:u,...l})})}),nc=O.createContext();function EI(t){return Pe("MuiTableBody",t)}Me("MuiTableBody",["root"]);const xI=t=>{const{classes:e}=t;return Ke({root:["root"]},EI,e)},FI=me("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"table-row-group"}),QI={variant:"body"},mg="tbody",h0=O.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiTableBody"}),{className:A,component:a=mg,...i}=n,o={...n,component:a},s=xI(o);return I.jsx(nc.Provider,{value:QI,children:I.jsx(FI,{className:xe(s.root,A),as:a,ref:r,role:a===mg?null:"rowgroup",ownerState:o,...i})})});function SI(t){return Pe("MuiTableCell",t)}const UI=Me("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),TI=t=>{const{classes:e,variant:r,align:n,padding:A,size:a,stickyHeader:i}=t,o={root:["root",r,i&&"stickyHeader",n!=="inherit"&&`align${Fe(n)}`,A!=="normal"&&`padding${Fe(A)}`,`size${Fe(a)}`]};return Ke(o,SI,e)},II=me("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant],e[`size${Fe(r.size)}`],r.padding!=="normal"&&e[`padding${Fe(r.padding)}`],r.align!=="inherit"&&e[`align${Fe(r.align)}`],r.stickyHeader&&e.stickyHeader]}})(ke(({theme:t})=>({...t.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:t.vars?`1px solid ${t.vars.palette.TableCell.border}`:`1px solid - ${t.palette.mode==="light"?$a(dt(t.palette.divider,1),.88):Va(dt(t.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(t.vars||t).palette.text.primary,lineHeight:t.typography.pxToRem(24),fontWeight:t.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(t.vars||t).palette.text.primary}},{props:{variant:"footer"},style:{color:(t.vars||t).palette.text.secondary,lineHeight:t.typography.pxToRem(21),fontSize:t.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${UI.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:e})=>e.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(t.vars||t).palette.background.default}}]}))),gn=O.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiTableCell"}),{align:A="inherit",className:a,component:i,padding:o,scope:s,size:l,sortDirection:u,variant:c,...d}=n,h=O.useContext(f0),f=O.useContext(nc),p=f&&f.variant==="head";let g;i?g=i:g=p?"th":"td";let m=s;g==="td"?m=void 0:!m&&p&&(m="col");const B=c||f&&f.variant,v={...n,align:A,component:g,padding:o||(h&&h.padding?h.padding:"normal"),size:l||(h&&h.size?h.size:"medium"),sortDirection:u,stickyHeader:B==="head"&&h&&h.stickyHeader,variant:B},y=TI(v);let b=null;return u&&(b=u==="asc"?"ascending":"descending"),I.jsx(II,{as:g,ref:r,className:xe(y.root,a),"aria-sort":b,scope:m,ownerState:v,...d})});function LI(t){return Pe("MuiTableContainer",t)}Me("MuiTableContainer",["root"]);const DI=t=>{const{classes:e}=t;return Ke({root:["root"]},LI,e)},RI=me("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(t,e)=>e.root})({width:"100%",overflowX:"auto"}),p0=O.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiTableContainer"}),{className:A,component:a="div",...i}=n,o={...n,component:a},s=DI(o);return I.jsx(RI,{ref:r,as:a,className:xe(s.root,A),ownerState:o,...i})});function MI(t){return Pe("MuiTableHead",t)}Me("MuiTableHead",["root"]);const OI=t=>{const{classes:e}=t;return Ke({root:["root"]},MI,e)},HI=me("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"table-header-group"}),kI={variant:"head"},yg="thead",g0=O.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiTableHead"}),{className:A,component:a=yg,...i}=n,o={...n,component:a},s=OI(o);return I.jsx(nc.Provider,{value:kI,children:I.jsx(HI,{as:a,className:xe(s.root,A),ref:r,role:a===yg?null:"rowgroup",ownerState:o,...i})})});function PI(t){return Pe("MuiToolbar",t)}Me("MuiToolbar",["root","gutters","regular","dense"]);const NI=t=>{const{classes:e,disableGutters:r,variant:n}=t;return Ke({root:["root",!r&&"gutters",n]},PI,e)},KI=me("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,!r.disableGutters&&e.gutters,e[r.variant]]}})(ke(({theme:t})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:t.spacing(2),paddingRight:t.spacing(2),[t.breakpoints.up("sm")]:{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:t.mixins.toolbar}]}))),Ac=O.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiToolbar"}),{className:A,component:a="div",disableGutters:i=!1,variant:o="regular",...s}=n,l={...n,component:a,disableGutters:i,variant:o},u=NI(l);return I.jsx(KI,{as:a,className:xe(u.root,A),ref:r,ownerState:l,...s})}),GI=vt(I.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),VI=vt(I.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),$I=O.forwardRef(function(e,r){const{backIconButtonProps:n,count:A,disabled:a=!1,getItemAriaLabel:i,nextIconButtonProps:o,onPageChange:s,page:l,rowsPerPage:u,showFirstButton:c,showLastButton:d,slots:h={},slotProps:f={},...p}=e,g=_o(),m=P=>{s(P,0)},B=P=>{s(P,l-1)},v=P=>{s(P,l+1)},y=P=>{s(P,Math.max(0,Math.ceil(A/u)-1))},b=h.firstButton??TA,E=h.lastButton??TA,C=h.nextButton??TA,F=h.previousButton??TA,w=h.firstButtonIcon??RT,x=h.lastButtonIcon??MT,Q=h.nextButtonIcon??VI,S=h.previousButtonIcon??GI,T=g?E:b,U=g?C:F,L=g?F:C,R=g?b:E,M=g?f.lastButton:f.firstButton,H=g?f.nextButton:f.previousButton,k=g?f.previousButton:f.nextButton,N=g?f.firstButton:f.lastButton;return I.jsxs("div",{ref:r,...p,children:[c&&I.jsx(T,{onClick:m,disabled:a||l===0,"aria-label":i("first",l),title:i("first",l),...M,children:g?I.jsx(x,{...f.lastButtonIcon}):I.jsx(w,{...f.firstButtonIcon})}),I.jsx(U,{onClick:B,disabled:a||l===0,color:"inherit","aria-label":i("previous",l),title:i("previous",l),...H??n,children:g?I.jsx(Q,{...f.nextButtonIcon}):I.jsx(S,{...f.previousButtonIcon})}),I.jsx(L,{onClick:v,disabled:a||(A!==-1?l>=Math.ceil(A/u)-1:!1),color:"inherit","aria-label":i("next",l),title:i("next",l),...k??o,children:g?I.jsx(S,{...f.previousButtonIcon}):I.jsx(Q,{...f.nextButtonIcon})}),d&&I.jsx(R,{onClick:y,disabled:a||l>=Math.ceil(A/u)-1,"aria-label":i("last",l),title:i("last",l),...N,children:g?I.jsx(w,{...f.firstButtonIcon}):I.jsx(x,{...f.lastButtonIcon})})]})});function zI(t){return Pe("MuiTablePagination",t)}const io=Me("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);var Bg;const WI=me(gn,{name:"MuiTablePagination",slot:"Root",overridesResolver:(t,e)=>e.root})(ke(({theme:t})=>({overflow:"auto",color:(t.vars||t).palette.text.primary,fontSize:t.typography.pxToRem(14),"&:last-child":{padding:0}}))),_I=me(Ac,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(t,e)=>({[`& .${io.actions}`]:e.actions,...e.toolbar})})(ke(({theme:t})=>({minHeight:52,paddingRight:2,[`${t.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[t.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${io.actions}`]:{flexShrink:0,marginLeft:20}}))),XI=me("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(t,e)=>e.spacer})({flex:"1 1 100%"}),YI=me("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(t,e)=>e.selectLabel})(ke(({theme:t})=>({...t.typography.body2,flexShrink:0}))),jI=me(rc,{name:"MuiTablePagination",slot:"Select",overridesResolver:(t,e)=>({[`& .${io.selectIcon}`]:e.selectIcon,[`& .${io.select}`]:e.select,...e.input,...e.selectRoot})})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${io.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),qI=me(s0,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(t,e)=>e.menuItem})({}),JI=me("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(t,e)=>e.displayedRows})(ke(({theme:t})=>({...t.typography.body2,flexShrink:0})));function ZI({from:t,to:e,count:r}){return`${t}–${e} of ${r!==-1?r:`more than ${e}`}`}function eL(t){return`Go to ${t} page`}const tL=t=>{const{classes:e}=t;return Ke({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},zI,e)},v0=O.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiTablePagination"}),{ActionsComponent:A=$I,backIconButtonProps:a,className:i,colSpan:o,component:s=gn,count:l,disabled:u=!1,getItemAriaLabel:c=eL,labelDisplayedRows:d=ZI,labelRowsPerPage:h="Rows per page:",nextIconButtonProps:f,onPageChange:p,onRowsPerPageChange:g,page:m,rowsPerPage:B,rowsPerPageOptions:v=[10,25,50,100],SelectProps:y={},showFirstButton:b=!1,showLastButton:E=!1,slotProps:C={},slots:F={},...w}=n,x=n,Q=tL(x),S=(C==null?void 0:C.select)??y,T=S.native?"option":qI;let U;(s===gn||s==="td")&&(U=o||1e3);const L=wo(S.id),R=wo(S.labelId),M=()=>l===-1?(m+1)*B:B===-1?l:Math.min(l,(m+1)*B);return I.jsx(WI,{colSpan:U,ref:r,as:s,ownerState:x,className:xe(Q.root,i),...w,children:I.jsxs(_I,{className:Q.toolbar,children:[I.jsx(XI,{className:Q.spacer}),v.length>1&&I.jsx(YI,{className:Q.selectLabel,id:R,children:h}),v.length>1&&I.jsx(jI,{variant:"standard",...!S.variant&&{input:Bg||(Bg=I.jsx(Jo,{}))},value:B,onChange:g,id:L,labelId:R,...S,classes:{...S.classes,root:xe(Q.input,Q.selectRoot,(S.classes||{}).root),select:xe(Q.select,(S.classes||{}).select),icon:xe(Q.selectIcon,(S.classes||{}).icon)},disabled:u,children:v.map(H=>O.createElement(T,{...!nA(T)&&{ownerState:x},className:Q.menuItem,key:H.label?H.label:H,value:H.value?H.value:H},H.label?H.label:H))}),I.jsx(JI,{className:Q.displayedRows,children:d({from:l===0?0:m*B+1,to:M(),count:l===-1?-1:l,page:m})}),I.jsx(A,{className:Q.actions,backIconButtonProps:a,count:l,nextIconButtonProps:f,onPageChange:p,page:m,rowsPerPage:B,showFirstButton:b,showLastButton:E,slotProps:C.actions,slots:F.actions,getItemAriaLabel:c,disabled:u})]})})});function rL(t){return Pe("MuiTableRow",t)}const wg=Me("MuiTableRow",["root","selected","hover","head","footer"]),nL=t=>{const{classes:e,selected:r,hover:n,head:A,footer:a}=t;return Ke({root:["root",r&&"selected",n&&"hover",A&&"head",a&&"footer"]},rL,e)},AL=me("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.head&&e.head,r.footer&&e.footer]}})(ke(({theme:t})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${wg.hover}:hover`]:{backgroundColor:(t.vars||t).palette.action.hover},[`&.${wg.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:dt(t.palette.primary.main,t.palette.action.selectedOpacity),"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:dt(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity)}}}))),Cg="tr",Qa=O.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiTableRow"}),{className:A,component:a=Cg,hover:i=!1,selected:o=!1,...s}=n,l=O.useContext(nc),u={...n,component:a,hover:i,selected:o,head:l&&l.variant==="head",footer:l&&l.variant==="footer"},c=nL(u);return I.jsx(AL,{as:a,ref:r,className:xe(c.root,A),role:a===Cg?null:"row",ownerState:u,...s})}),aL=vt(I.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");function iL(t){return Pe("MuiTableSortLabel",t)}const Yc=Me("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc","directionDesc","directionAsc"]),oL=t=>{const{classes:e,direction:r,active:n}=t,A={root:["root",n&&"active",`direction${Fe(r)}`],icon:["icon",`iconDirection${Fe(r)}`]};return Ke(A,iL,e)},sL=me(ai,{name:"MuiTableSortLabel",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.active&&e.active]}})(ke(({theme:t})=>({cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:(t.vars||t).palette.text.secondary},"&:hover":{color:(t.vars||t).palette.text.secondary,[`& .${Yc.icon}`]:{opacity:.5}},[`&.${Yc.active}`]:{color:(t.vars||t).palette.text.primary,[`& .${Yc.icon}`]:{opacity:1,color:(t.vars||t).palette.text.secondary}}}))),lL=me("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.icon,e[`iconDirection${Fe(r.direction)}`]]}})(ke(({theme:t})=>({fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:t.transitions.create(["opacity","transform"],{duration:t.transitions.duration.shorter}),userSelect:"none",variants:[{props:{direction:"desc"},style:{transform:"rotate(0deg)"}},{props:{direction:"asc"},style:{transform:"rotate(180deg)"}}]}))),uL=O.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiTableSortLabel"}),{active:A=!1,children:a,className:i,direction:o="asc",hideSortIcon:s=!1,IconComponent:l=aL,...u}=n,c={...n,active:A,direction:o,hideSortIcon:s,IconComponent:l},d=oL(c);return I.jsxs(sL,{className:xe(d.root,i),component:"span",disableRipple:!0,ownerState:c,ref:r,...u,children:[a,s&&!A?null:I.jsx(lL,{as:l,className:xe(d.icon),ownerState:c})]})});function cL(t){return Pe("MuiTextField",t)}Me("MuiTextField",["root"]);const fL={standard:Pl,filled:kl,outlined:Nl},dL=t=>{const{classes:e}=t;return Ke({root:["root"]},cL,e)},hL=me(gU,{name:"MuiTextField",slot:"Root",overridesResolver:(t,e)=>e.root})({}),Zf=O.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiTextField"}),{autoComplete:A,autoFocus:a=!1,children:i,className:o,color:s="primary",defaultValue:l,disabled:u=!1,error:c=!1,FormHelperTextProps:d,fullWidth:h=!1,helperText:f,id:p,InputLabelProps:g,inputProps:m,InputProps:B,inputRef:v,label:y,maxRows:b,minRows:E,multiline:C=!1,name:F,onBlur:w,onChange:x,onFocus:Q,placeholder:S,required:T=!1,rows:U,select:L=!1,SelectProps:R,slots:M={},slotProps:H={},type:k,value:N,variant:P="outlined",...K}=n,W={...n,autoFocus:a,color:s,disabled:u,error:c,fullWidth:h,multiline:C,required:T,select:L,variant:P},X=dL(W),Z=wo(p),Ae=f&&Z?`${Z}-helper-text`:void 0,ie=y&&Z?`${Z}-label`:void 0,re=fL[P],z={slots:M,slotProps:{input:B,inputLabel:g,htmlInput:m,formHelperText:d,select:R,...H}},q={},ee=z.slotProps.inputLabel;P==="outlined"&&(ee&&typeof ee.shrink<"u"&&(q.notched=ee.shrink),q.label=y),L&&((!R||!R.native)&&(q.id=void 0),q["aria-describedby"]=void 0);const[se,te]=Rr("input",{elementType:re,externalForwardedProps:z,additionalProps:q,ownerState:W}),[ae,le]=Rr("inputLabel",{elementType:tT,externalForwardedProps:z,ownerState:W}),[ve,ge]=Rr("htmlInput",{elementType:"input",externalForwardedProps:z,ownerState:W}),[he,ye]=Rr("formHelperText",{elementType:xU,externalForwardedProps:z,ownerState:W}),[Se,Ce]=Rr("select",{elementType:rc,externalForwardedProps:z,ownerState:W}),we=I.jsx(se,{"aria-describedby":Ae,autoComplete:A,autoFocus:a,defaultValue:l,fullWidth:h,multiline:C,name:F,rows:U,maxRows:b,minRows:E,type:k,value:N,id:Z,inputRef:v,onBlur:w,onChange:x,onFocus:Q,placeholder:S,inputProps:ge,slots:{input:M.htmlInput?ve:void 0},...te});return I.jsxs(hL,{className:xe(X.root,o),disabled:u,error:c,fullWidth:h,ref:r,required:T,color:s,variant:P,ownerState:W,...K,children:[y!=null&&y!==""&&I.jsx(ae,{htmlFor:Z,id:ie,...le,children:y}),L?I.jsx(Se,{"aria-describedby":Ae,id:Z,labelId:ie,value:N,input:we,...Ce,children:i}):we,f&&I.jsx(he,{id:Ae,...ye,children:f})]})}),m0="Roboto",qV=Xo({palette:{primary:{dark:"#000000",main:"#808080",light:"#b1b1b1"},secondary:{dark:"#95b7ce",main:"#c5d9e8",light:"#ddebf5"}}}),Ee=new Map([["Primary",new Map([[0,"#000000"],[10,"#21005D"],[20,"#381E72"],[30,"#4F378B"],[40,"#6750A4"],[50,"#7F67BE"],[60,"#9A82DB"],[70,"#B69DF8"],[80,"#D0BCFF"],[90,"#EADDFF"],[95,"#F6EDFF"],[99,"#FFFBFE"],[100,"#FFFFFF"]])],["Secondary",new Map([[0,"#000000"],[10,"#1D192B"],[20,"#332D41"],[30,"#4A4458"],[40,"#625B71"],[50,"#7A7289"],[60,"#958DA5"],[70,"#B0A7C0"],[80,"#CCC2DC"],[90,"#E8DEF8"],[95,"#F6EDFF"],[99,"#FFFBFE"],[100,"#FFFFFF"]])],["Tertiary",new Map([[0,"#000000"],[10,"#31111D"],[20,"#492532"],[30,"#633B48"],[40,"#7D5260"],[50,"#986977"],[60,"#B58392"],[70,"#D29DAC"],[80,"#EFB8C8"],[90,"#FFD8E4"],[95,"#FFECF1"],[99,"#FFFBFA"],[100,"#FFFFFF"]])],["Error",new Map([[0,"#000000"],[10,"#410E0B"],[20,"#601410"],[30,"#8C1D18"],[40,"#B3261E"],[50,"#DC362E"],[60,"#E46962"],[70,"#EC928E"],[80,"#F2B8B5"],[90,"#F9DEDC"],[95,"#FCEEEE"],[99,"#FFFBF9"],[100,"#FFFFFF"]])],["Neutral",new Map([[0,"#000000"],[10,"#1C1B1F"],[20,"#313033"],[30,"#484649"],[40,"#605D62"],[50,"#787579"],[60,"#939094"],[70,"#AEAAAE"],[80,"#C9C5CA"],[90,"#E6E1E5"],[95,"#F4EFF4"],[99,"#FFFBFE"],[100,"#FFFFFF"]])],["NeutralVariant",new Map([[0,"#000000"],[10,"#1D1A22"],[20,"#322F37"],[30,"#49454F"],[40,"#605D66"],[50,"#79747E"],[60,"#938F99"],[70,"#AEA9B4"],[80,"#CAC4D0"],[90,"#E7E0EC"],[95,"#F5EEFA"],[99,"#FFFBFE"],[100,"#FFFFFF"]])]]),JV=new Map([["Primary",new Map([["Base",Ee.get("Primary").get(40)],["On",Ee.get("Primary").get(100)],["Container",Ee.get("Primary").get(90)],["OnContainer",Ee.get("Primary").get(10)]])],["Secondary",new Map([["Base",Ee.get("Secondary").get(40)],["On",Ee.get("Secondary").get(100)],["Container",Ee.get("Secondary").get(90)],["OnContainer",Ee.get("Secondary").get(10)]])],["Tertiary",new Map([["Base",Ee.get("Tertiary").get(40)],["On",Ee.get("Tertiary").get(100)],["Container",Ee.get("Tertiary").get(90)],["OnContainer",Ee.get("Tertiary").get(10)]])],["Error",new Map([["Base",Ee.get("Error").get(40)],["On",Ee.get("Error").get(100)],["Container",Ee.get("Error").get(90)],["OnContainer",Ee.get("Error").get(10)]])],["Neutral",new Map([["Background",Ee.get("Neutral").get(99)],["OnBackground",Ee.get("Neutral").get(10)],["Surface",Ee.get("Neutral").get(99)],["OnSurface",Ee.get("Neutral").get(10)]])],["NeutralVariant",new Map([["SurfaceVariant",Ee.get("NeutralVariant").get(90)],["OnSurfaceVariant",Ee.get("NeutralVariant").get(30)],["Outline",Ee.get("NeutralVariant").get(50)]])]]),ZV=new Map([["Primary",new Map([["Base",Ee.get("Primary").get(80)],["On",Ee.get("Primary").get(20)],["Container",Ee.get("Primary").get(30)],["OnContainer",Ee.get("Primary").get(90)]])],["Secondary",new Map([["Base",Ee.get("Secondary").get(80)],["On",Ee.get("Secondary").get(20)],["Container",Ee.get("Secondary").get(30)],["OnContainer",Ee.get("Secondary").get(90)]])],["Tertiary",new Map([["Base",Ee.get("Tertiary").get(80)],["On",Ee.get("Tertiary").get(20)],["Container",Ee.get("Tertiary").get(30)],["OnContainer",Ee.get("Tertiary").get(90)]])],["Error",new Map([["Base",Ee.get("Error").get(80)],["On",Ee.get("Error").get(20)],["Container",Ee.get("Error").get(30)],["OnContainer",Ee.get("Error").get(90)]])],["Neutral",new Map([["Background",Ee.get("Neutral").get(10)],["OnBackground",Ee.get("Neutral").get(90)],["Surface",Ee.get("Neutral").get(10)],["OnSurface",Ee.get("Neutral").get(80)]])],["NeutralVariant",new Map([["SurfaceVariant",Ee.get("NeutralVariant").get(30)],["OnSurfaceVariant",Ee.get("NeutralVariant").get(80)],["Outline",Ee.get("NeutralVariant").get(60)]])]]),y0=new Map([["body",new Map([["large","16px"],["medium","14px"],["small","12px"]])],["label",new Map([["large","14px"],["medium","12px"],["small","11px"]])],["title",new Map([["large","22px"],["medium","16px"],["small","14px"]])],["headline",new Map([["large","32px"],["medium","28px"],["small","24px"]])],["display",new Map([["large","57px"],["medium","45px"],["small","36px"]])]]),B0=new Map([["body",new Map([["large","400"],["medium","400"],["small","400"]])],["label",new Map([["large","500"],["medium","500"],["small","500"]])],["title",new Map([["large","400"],["medium","500"],["small","500"]])],["headline",new Map([["large","400"],["medium","400"],["small","400"]])],["display",new Map([["large","400"],["medium","400"],["small","400"]])]]),pL=new Map([["body",new Map([["large","24px"],["medium","20px"],["small","16px"]])],["label",new Map([["large","20px"],["medium","16px"],["small","16px"]])],["title",new Map([["large","28px"],["medium","24px"],["small","20px"]])],["headline",new Map([["large","40px"],["medium","36px"],["small","32px"]])],["display",new Map([["large","64px"],["medium","52px"],["small","44px"]])]]),gL=new Map([["title",new Map([["medium","0.15px"],["small","0.1px"]])],["label",new Map([["large","0.1px"],["medium","0.5px"],["small","0.5px"]])],["display",new Map([["large","0.15px"],["medium","0.25px"],["small","0.4px"]])]]),w0=me(Bt)(({type:t,size:e})=>{var r,n,A,a;return{fontFamily:m0,fontSize:(r=y0.get(t))==null?void 0:r.get(e),fontWeight:(n=B0.get(t))==null?void 0:n.get(e),lineHeight:(A=pL.get(t))==null?void 0:A.get(e),letterSpacing:(a=gL.get(t))==null?void 0:a.get(e)}}),Ma=t=>I.jsx(w0,{type:"title",size:"small",variant:"h6",sx:{flexGrow:t.flexGrow},style:{marginRight:t.flexGrow?"0px":t.marginRight,cursor:"pointer",fontWeight:400,...t},onClick:t.onClick,className:"app-bar-menu-item",children:t.children});Ma.__docgenInfo={description:"",methods:[],displayName:"MenuItem",props:{onClick:{required:!1,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""},children:{required:!0,tsType:{name:"ReactReactNode",raw:"React.ReactNode"},description:""}}};const vL=vt(I.jsx("path",{d:"m7 10 5 5 5-5z"}),"ArrowDropDown"),C0=me(Ai)(()=>({boxShadow:"0px 2px 6px 2px rgba(0, 0, 0, 0.15), 0px 1px 2px rgba(0, 0, 0, 0.3)",borderRadius:"4px",backgroundColor:Ee.get("Primary").get(100),textAlign:"center"})),b0=t=>{const e=Cr.useRef(null),[r,n]=O.useState(!1);return I.jsxs(Fo,{direction:"row",children:[I.jsx("div",{onClick:t.onClick,ref:e,style:{cursor:"pointer"},onMouseOver:()=>n(!0),children:I.jsx(w0,{type:"title",size:"small",variant:"h6",sx:{flexGrow:t.flexGrow},style:{fontWeight:400,display:"inline-block",...t,marginRight:"7.25px"},onClick:t.onClick,className:"app-bar-menu-item",children:t.children})}),I.jsx(vL,{style:{marginRight:t.flexGrow?"0px":t.marginRight,marginTop:"-3px",cursor:"pointer"},onMouseOver:()=>n(!0)}),e.current&&I.jsx(Yu,{anchorEl:e.current,open:r,placement:"bottom-start",transition:!0,onMouseLeave:()=>n(!1),children:({TransitionProps:A,placement:a})=>I.jsx(KA,{...A,style:{transformOrigin:a==="bottom-start"?"left top":"left bottom"},children:I.jsx(C0,{style:{width:"150px"},children:I.jsx(n0,{onClickAway:()=>n(!1),children:I.jsx(mh,{style:{textAlign:"center"},children:t.menu})})})})})]})};b0.__docgenInfo={description:"",methods:[],displayName:"DropDownMenuItem",props:{onClick:{required:!1,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""},children:{required:!0,tsType:{name:"ReactReactNode",raw:"React.ReactNode"},description:""},menu:{required:!0,tsType:{name:"ReactReactNode",raw:"React.ReactNode"},description:""}}};const E0=me(TF)(t=>({backgroundColor:"#ffffff",color:"#000000",alignItems:t.centered===!0?"center":"left"})),vn=({children:t,onClick:e})=>I.jsx(Ma,{onClick:e,height:"48px",fontSize:"14px",lineHeight:"24px",marginTop:"5px",children:t}),mL=({onPortalClicked:t})=>I.jsxs(I.Fragment,{children:[I.jsx(vn,{onClick:()=>t&&t(0),children:"Disease/Trait"}),I.jsx(vn,{onClick:()=>t&&t(1),children:"Gene/b-cCRE"}),I.jsx(vn,{onClick:()=>t&&t(2),children:"SNP/QTL"}),I.jsx(vn,{onClick:()=>t&&t(3),children:"Single-Cell"})]}),yL=t=>I.jsx(tc,{sx:{flexGrow:1},children:I.jsx(E0,{position:"static",...t,children:I.jsxs(Ac,{sx:{gap:4},children:[I.jsxs(Ma,{onClick:t.onHomepageClicked,fontWeight:700,fontSize:"20px",lineHeight:"15px",flexGrow:1,children:["psych",I.jsx("br",{})," screen"]}),I.jsx(b0,{menu:I.jsx(mL,{onPortalClicked:t.onPortalClicked}),children:"Portals"}),I.jsx(Ma,{onClick:t.onAboutClicked,children:"About Us"}),I.jsx(Ma,{onClick:t.onDownloadsClicked,children:"Downloads"})]})})});vn.__docgenInfo={description:"",methods:[],displayName:"PortalsMenuItem",props:{children:{required:!1,tsType:{name:"ReactReactNode",raw:"React.ReactNode"},description:""},onClick:{required:!1,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""}}};yL.__docgenInfo={description:"",methods:[],displayName:"AppBar",props:{onHomepageClicked:{required:!1,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""},onAboutClicked:{required:!1,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""},onPortalClicked:{required:!1,tsType:{name:"signature",type:"function",raw:"(index: number) => void",signature:{arguments:[{type:{name:"number"},name:"index"}],return:{name:"void"}}},description:""},onDownloadsClicked:{required:!1,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""},centered:{required:!1,tsType:{name:"boolean"},description:""}}};const BL=vt(I.jsx("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu"),x0=t=>{const e=Cr.useRef(null),[r,n]=O.useState(!1);return I.jsxs(I.Fragment,{children:[I.jsx("div",{ref:e,children:I.jsx(BL,{style:{marginRight:t.flexGrow?"0px":t.marginRight,marginTop:"-3px",cursor:"pointer"},onClick:()=>n(!0)})}),e.current&&I.jsx(Yu,{anchorEl:e.current,open:r,placement:"bottom-start",transition:!0,disablePortal:!0,children:({TransitionProps:A,placement:a})=>I.jsx(KA,{...A,style:{transformOrigin:a==="bottom-start"?"left top":"left bottom"},children:I.jsx(C0,{style:{width:"150px"},children:I.jsx(n0,{onClickAway:()=>n(!1),children:I.jsx(mh,{style:{textAlign:"center"},children:t.menu})})})})})]})};x0.__docgenInfo={description:"",methods:[],displayName:"OptionsMenuItem",props:{onClick:{required:!1,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""},children:{required:!0,tsType:{name:"ReactReactNode",raw:"React.ReactNode"},description:""},menu:{required:!0,tsType:{name:"ReactReactNode",raw:"React.ReactNode"},description:""}}};const wL=({onItemClicked:t})=>I.jsxs(I.Fragment,{children:[I.jsx(vn,{onClick:()=>t&&t(-1),children:"About"}),I.jsx(vn,{onClick:()=>t&&t(0),children:"Disease/Trait Portal"}),I.jsx(vn,{onClick:()=>t&&t(1),children:"Gene/b-cCRE Portal"}),I.jsx(vn,{onClick:()=>t&&t(2),children:"SNP/QTL Portal"}),I.jsx(vn,{onClick:()=>t&&t(3),children:"Single-Cell Portal"})]}),CL=t=>I.jsx(tc,{sx:{flexGrow:1},children:I.jsx(E0,{position:"static",elevation:0,children:I.jsxs(Ac,{style:{paddingLeft:"19px"},children:[I.jsx(x0,{marginRight:"32px",menu:I.jsx(wL,{onItemClicked:t.onPortalClicked}),children:"Portals"}),I.jsx(Ma,{flexGrow:1,textAlign:"center",fontSize:"22px",lineHeight:"28px",fontWeight:400,children:t.title||""})]})})});CL.__docgenInfo={description:"",methods:[],displayName:"TabletAppBar",props:{onHomepageClicked:{required:!1,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""},onAboutClicked:{required:!1,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""},onPortalClicked:{required:!1,tsType:{name:"signature",type:"function",raw:"(index: number) => void",signature:{arguments:[{type:{name:"number"},name:"index"}],return:{name:"void"}}},description:""},onDownloadsClicked:{required:!1,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""},centered:{required:!1,tsType:{name:"boolean"},description:""},title:{required:!1,tsType:{name:"string"},description:""}}};const bL=new Map([["filled",new Map([["",{backgroundColor:Ee.get("Primary").get(0),color:"#ffffff"}],["&:hover",{backgroundColor:Ee.get("Primary").get(0),color:"#ffffff",boxShadow:"0px 1px 2px rgba(0, 0, 0, 0.3), 0px 1px 3px 1px rgba(0, 0, 0, 0.15)"}],["&:focus",{backgroundColor:Ee.get("Primary").get(0),color:"#ffffff"}],["&:pressed",{backgroundColor:Ee.get("Primary").get(0),color:"#ffffff"}],["&:disabled",{backgroundColor:"rgba(31, 31, 31, 0.12)",color:"#1C1B1F",opacity:.38}]])],["outlined",new Map([["",{border:`1px solid ${Ee.get("NeutralVariant").get(50)}`,backgroundColor:Ee.get("Primary").get(100),color:Ee.get("Primary").get(0)}],["&:hover",{border:`1px solid ${Ee.get("NeutralVariant").get(50)}`,backgroundColor:"#F2F2F2",color:Ee.get("Primary").get(0)}],["&:focus",{border:"1px solid #000000",backgroundColor:"rgba(103, 80, 164, 0.12)",color:Ee.get("Primary").get(0),fontWeight:500}],["&:pressed",{backgroundColor:"rgba(103, 80, 164, 0.12)",border:`1px solid ${Ee.get("NeutralVariant").get(50)}`,color:Ee.get("Primary").get(0),fontWeight:500}],["&:disabled",{backgroundColor:"#ffffff",border:"1px solid rgba(31, 31, 31, 0.12)",color:"#1C1B1F",opacity:.38,fontWeight:500}]])]]),EL=new Map([["filled",new Map([["",{backgroundColor:Ee.get("Primary").get(80),color:Ee.get("Primary").get(20)}],["&:hover",{backgroundColor:Ee.get("Primary").get(80),color:Ee.get("Primary").get(20)}],["&:focus",{backgroundColor:Ee.get("Primary").get(80),color:Ee.get("Primary").get(20)}],["&:pressed",{backgroundColor:Ee.get("Primary").get(80),color:Ee.get("Primary").get(20)}],["&:disabled",{backgroundColor:"rgba(227, 227, 227, 0.12)",color:"#E6E1E5",opacity:.38}]])],["outlined",new Map([["",{border:`1px solid ${Ee.get("NeutralVariant").get(60)}`,backgroundColor:"#1F1F1F",color:Ee.get("Primary").get(80)}],["&:hover",{border:`1px solid ${Ee.get("NeutralVariant").get(60)}`,backgroundColor:"rgba(208, 188, 255, 0.12)",color:Ee.get("Primary").get(80),fontWeight:500}],["&:focus",{border:"1px solid #000000",backgroundColor:"rgba(208, 188, 255, 0.12)",color:Ee.get("Primary").get(80),fontWeight:500}],["&:pressed",{backgroundColor:"rgba(208, 188, 255, 0.12)",border:`1px solid ${Ee.get("NeutralVariant").get(80)}`,color:Ee.get("Primary").get(80),fontWeight:500}],["&:disabled",{backgroundColor:"#ffffff",border:"1px solid rgba(227, 227, 227, 0.12)",color:"#1F1F1F",opacity:.38,fontWeight:500}]])]]),xL=me(qn)(({bvariant:t,btheme:e})=>{var n,A,a,i,o,s,l;const r=e==="light"?bL:EL;return{borderRadius:"100px",...r.get(t).get(""),fontFamily:m0,fontSize:(n=y0.get("body"))==null?void 0:n.get("medium"),fontWeight:(A=B0.get("body"))==null?void 0:A.get("medium"),fontVariantCaps:"normal","&:active":(a=r.get(t))==null?void 0:a.get("&:active"),"&:focus":(i=r.get(t))==null?void 0:i.get("&:focus"),"&:hover":(o=r.get(t))==null?void 0:o.get("&:hover"),"&:pressed":(s=r.get(t))==null?void 0:s.get("&:pressed"),"&:disabled":(l=r.get(t))==null?void 0:l.get("&:disabled")}}),FL=vt(I.jsx("path",{d:"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"}),"ArrowForward"),QL=me(yS)(()=>({background:"#FFFFFF","&:hover":{background:"#F5F5F5"},flex:"none",order:1,flexGrow:0,cursor:"pointer",boxSizing:"border-box",width:"651px",border:"1px solid",borderColor:"#828282",borderRadius:"12px",boxShadow:"none"})),SL=t=>I.jsx(Fo,{spacing:t.cardSpacing||2,children:t.cardContentText.map(e=>I.jsx(QL,{sx:{maxWidth:t.width||500},variant:"outlined",style:{flex:"none",order:1,flexGrow:0,cursor:"pointer",boxSizing:"border-box",width:"651px",border:"1px solid",borderColor:"#828282",borderRadius:"12px",boxShadow:"none"},children:I.jsx(ES,{onClick:r=>{t.onCardClick&&t.onCardClick(e.val)},children:I.jsx(SS,{children:I.jsxs(zc,{container:!0,children:[I.jsxs(zc,{item:!0,sm:10,children:[I.jsx(Bt,{fontFamily:"Helvetica Neue",gutterBottom:!0,variant:"h5",component:"div",children:e.cardLabel}),I.jsx(Bt,{variant:"body2",color:"text.secondary",children:e.cardDesc})]}),I.jsx(zc,{item:!0,sm:2,children:I.jsx(FL,{onClick:r=>{t.onArrowClick&&t.onArrowClick(e.val)},style:{width:"50px",height:"50px",color:"#E0E0E0"}})})]})})})},e.cardLabel))});SL.__docgenInfo={description:"",methods:[],displayName:"HorizontalCard",props:{width:{required:!1,tsType:{name:"number"},description:""},cardSpacing:{required:!1,tsType:{name:"number"},description:""},cardContentText:{required:!0,tsType:{name:"Array",elements:[{name:"signature",type:"object",raw:"{cardLabel: string, val?: string, cardDesc: string}",signature:{properties:[{key:"cardLabel",value:{name:"string",required:!0}},{key:"val",value:{name:"string",required:!1}},{key:"cardDesc",value:{name:"string",required:!0}}]}}],raw:"{cardLabel: string, val?: string, cardDesc: string}[]"},description:""},onCardClick:{required:!1,tsType:{name:"signature",type:"function",raw:"(val?: string) => void",signature:{arguments:[{type:{name:"string"},name:"val"}],return:{name:"void"}}},description:""},onArrowClick:{required:!1,tsType:{name:"signature",type:"function",raw:"(val?: string) => void",signature:{arguments:[{type:{name:"string"},name:"val"}],return:{name:"void"}}},description:""}}};const UL=Xo({components:{MuiInput:{defaultProps:{disableUnderline:!0}}}}),TL=me(Zf)(()=>({fontSize:"16px",lineHeight:"24px",letterSpacing:"0.5px",fontWeight:400,height:"56px",borderRadius:"100px",border:"0px",backgroundColor:"#F2F2F2"})),F0=t=>I.jsx(Nx,{theme:UL,children:I.jsx(TL,{label:"What can we help you find?",variant:"standard",helperText:"e.g. schizophrenia, years of education",InputProps:{endAdornment:t.unadorned?void 0:I.jsx(qU,{position:"end",style:{marginLeft:"-10px"},children:I.jsx(xL,{bvariant:"filled",btheme:"light",onClick:t.onSearchButtonClick,children:"Search"})}),style:{height:"76px",marginRight:t.unadorned?"0px":"10px",marginTop:"0px",backgroundColor:"none",width:`${t.width||436}px`}},inputProps:{style:{height:"24px",paddingTop:"16px",paddingLeft:"16px",paddingBottom:"12px"}},FormHelperTextProps:{style:{paddingLeft:"28px",lineHeight:"16px",fontSize:"12px",letterSpacing:"0.4px",color:"#8D8D8D"}},InputLabelProps:{style:{marginTop:"-18px",paddingTop:"16px",paddingBottom:"16px",paddingLeft:"28px",color:"#8D8D8D"}},...t})});F0.__docgenInfo={description:"",methods:[],displayName:"SearchBox",props:{width:{required:!1,tsType:{name:"number"},description:""},unadorned:{required:!1,tsType:{name:"boolean"},description:""},onSearchButtonClick:{required:!1,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""}}};const IL=me(rc)(()=>({fontSize:"16px",lineHeight:"24px",letterSpacing:"0.5px",fontWeight:400,height:"56px",padding:"16px",color:"#000000"})),Q0=t=>I.jsx(IL,{label:"What can we help you find?",variant:"standard",style:{width:`${t.width||172}px`},SelectDisplayProps:{style:{paddingTop:"14px"}},...t,children:t.children});Q0.__docgenInfo={description:"",methods:[],displayName:"Select",props:{width:{required:!1,tsType:{name:"number"},description:""}}};const LL=t=>{const[e,r]=O.useState(t.selectOptions[0]),n=O.useMemo(()=>t.reactiveThreshold&&(t.containerWidth||0){r(t.selectOptions[A.target.value]),t.onSelectChange&&t.onSelectChange(t.selectOptions[A.target.value])},defaultValue:0,variant:"filled",disableUnderline:!0,style:{borderTopLeftRadius:"100px",borderBottomLeftRadius:"100px",borderTopRightRadius:n?"100px":"0px",borderBottomRightRadius:n?"100px":"0px",backgroundColor:"#F2F2F2",paddingTop:"11px",fontSize:"16px",marginBottom:"16px",width:n?`${t.reactiveWidth}px`:void 0,textAlign:"center"},children:t.selectOptions.map((A,a)=>I.jsx(s0,{value:a,children:A.name},A.value))}),n?I.jsx("br",{style:{lineHeight:"16px"}}):null,I.jsx(F0,{onChange:A=>t.onSearchChange&&t.onSearchChange(A.target.value),helperText:e.helperText,width:n?t.reactiveWidth:void 0,unadorned:!!n,...t,style:{...t.style,borderTopLeftRadius:t.reactiveThreshold&&n?"100px":"0px",borderBottomLeftRadius:t.reactiveThreshold&&n?"100px":"0px"}})]})};LL.__docgenInfo={description:"",methods:[],displayName:"SearchBoxWithSelect",props:{width:{required:!1,tsType:{name:"number"},description:""},unadorned:{required:!1,tsType:{name:"boolean"},description:""},onSearchButtonClick:{required:!1,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""},selectOptions:{required:!0,tsType:{name:"Array",elements:[{name:"signature",type:"object",raw:`{ +`,cF=O.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiTouchRipple"}),{center:A=!1,classes:a={},className:i,...o}=n,[s,l]=O.useState([]),u=O.useRef(0),c=O.useRef(null);O.useEffect(()=>{c.current&&(c.current(),c.current=null)},[s]);const d=O.useRef(!1),h=xa(),f=O.useRef(null),p=O.useRef(null),g=O.useCallback(B=>{const{pulsate:b,rippleX:E,rippleY:C,rippleSize:F,cb:y}=B;l(x=>[...x,I.jsx(uF,{classes:{ripple:xe(a.ripple,Tr.ripple),rippleVisible:xe(a.rippleVisible,Tr.rippleVisible),ripplePulsate:xe(a.ripplePulsate,Tr.ripplePulsate),child:xe(a.child,Tr.child),childLeaving:xe(a.childLeaving,Tr.childLeaving),childPulsate:xe(a.childPulsate,Tr.childPulsate)},timeout:_f,pulsate:b,rippleX:E,rippleY:C,rippleSize:F},u.current)]),u.current+=1,c.current=y},[a]),m=O.useCallback((B={},b={},E=()=>{})=>{const{pulsate:C=!1,center:F=A||b.pulsate,fakeElement:y=!1}=b;if((B==null?void 0:B.type)==="mousedown"&&d.current){d.current=!1;return}(B==null?void 0:B.type)==="touchstart"&&(d.current=!0);const x=y?null:p.current,Q=x?x.getBoundingClientRect():{width:0,height:0,left:0,top:0};let S,T,U;if(F||B===void 0||B.clientX===0&&B.clientY===0||!B.clientX&&!B.touches)S=Math.round(Q.width/2),T=Math.round(Q.height/2);else{const{clientX:L,clientY:R}=B.touches&&B.touches.length>0?B.touches[0]:B;S=Math.round(L-Q.left),T=Math.round(R-Q.top)}if(F)U=Math.sqrt((2*Q.width**2+Q.height**2)/3),U%2===0&&(U+=1);else{const L=Math.max(Math.abs((x?x.clientWidth:0)-S),S)*2+2,R=Math.max(Math.abs((x?x.clientHeight:0)-T),T)*2+2;U=Math.sqrt(L**2+R**2)}B!=null&&B.touches?f.current===null&&(f.current=()=>{g({pulsate:C,rippleX:S,rippleY:T,rippleSize:U,cb:E})},h.start(aF,()=>{f.current&&(f.current(),f.current=null)})):g({pulsate:C,rippleX:S,rippleY:T,rippleSize:U,cb:E})},[A,g,h]),w=O.useCallback(()=>{m({},{pulsate:!0})},[m]),v=O.useCallback((B,b)=>{if(h.clear(),(B==null?void 0:B.type)==="touchend"&&f.current){f.current(),f.current=null,h.start(0,()=>{v(B,b)});return}f.current=null,l(E=>E.length>0?E.slice(1):E),c.current=b},[h]);return O.useImperativeHandle(r,()=>({pulsate:w,start:m,stop:v}),[w,m,v]),I.jsx(lF,{className:xe(Tr.root,a.root,i),ref:p,...o,children:I.jsx(uh,{component:null,exit:!0,children:s})})});function fF(t){return Pe("MuiButtonBase",t)}const dF=Me("MuiButtonBase",["root","disabled","focusVisible"]),hF=t=>{const{disabled:e,focusVisible:r,focusVisibleClassName:n,classes:A}=t,i=Ke({root:["root",e&&"disabled",r&&"focusVisible"]},fF,A);return r&&n&&(i.root+=` ${n}`),i},pF=me("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${dF.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),ii=O.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiButtonBase"}),{action:A,centerRipple:a=!1,children:i,className:o,component:s="button",disabled:l=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,focusVisibleClassName:h,LinkComponent:f="a",onBlur:p,onClick:g,onContextMenu:m,onDragLeave:w,onFocus:v,onFocusVisible:B,onKeyDown:b,onKeyUp:E,onMouseDown:C,onMouseLeave:F,onMouseUp:y,onTouchEnd:x,onTouchMove:Q,onTouchStart:S,tabIndex:T=0,TouchRippleProps:U,touchRippleRef:L,type:R,...M}=n,H=O.useRef(null),k=rF(),N=Qt(k.ref,L),[P,K]=O.useState(!1);l&&P&&K(!1),O.useImperativeHandle(A,()=>({focusVisible:()=>{K(!0),H.current.focus()}}),[]);const W=k.shouldMount&&!u&&!l;O.useEffect(()=>{P&&d&&!u&&k.pulsate()},[u,d,P,k]);function X(_,$,D=c){return Mr(G=>($&&$(G),D||k[_](G),!0))}const Z=X("start",C),Ae=X("stop",m),ie=X("stop",w),re=X("stop",y),z=X("stop",_=>{P&&_.preventDefault(),F&&F(_)}),q=X("start",S),ee=X("stop",x),se=X("stop",Q),te=X("stop",_=>{za(_.target)||K(!1),p&&p(_)},!1),ae=Mr(_=>{H.current||(H.current=_.currentTarget),za(_.target)&&(K(!0),B&&B(_)),v&&v(_)}),le=()=>{const _=H.current;return s&&s!=="button"&&!(_.tagName==="A"&&_.href)},ve=Mr(_=>{d&&!_.repeat&&P&&_.key===" "&&k.stop(_,()=>{k.start(_)}),_.target===_.currentTarget&&le()&&_.key===" "&&_.preventDefault(),b&&b(_),_.target===_.currentTarget&&le()&&_.key==="Enter"&&!l&&(_.preventDefault(),g&&g(_))}),ge=Mr(_=>{d&&_.key===" "&&P&&!_.defaultPrevented&&k.stop(_,()=>{k.pulsate(_)}),E&&E(_),g&&_.target===_.currentTarget&&le()&&_.key===" "&&!_.defaultPrevented&&g(_)});let he=s;he==="button"&&(M.href||M.to)&&(he=f);const ye={};he==="button"?(ye.type=R===void 0?"button":R,ye.disabled=l):(!M.href&&!M.to&&(ye.role="button"),l&&(ye["aria-disabled"]=l));const Se=Qt(r,H),Ce={...n,centerRipple:a,component:s,disabled:l,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:T,focusVisible:P},we=hF(Ce);return I.jsxs(pF,{as:he,className:xe(we.root,o),ownerState:Ce,onBlur:te,onClick:g,onContextMenu:Ae,onFocus:ae,onKeyDown:ve,onKeyUp:ge,onMouseDown:Z,onMouseLeave:z,onMouseUp:re,onDragLeave:ie,onTouchEnd:ee,onTouchMove:se,onTouchStart:q,ref:Se,tabIndex:l?-1:T,type:R,...ye,...M,children:[i,W?I.jsx(cF,{ref:N,center:a,...U}):null]})});function gF(t){return typeof t.main=="string"}function vF(t,e=[]){if(!gF(t))return!1;for(const r of e)if(!t.hasOwnProperty(r)||typeof t[r]!="string")return!1;return!0}function vr(t=[]){return([,e])=>e&&vF(e,t)}function mF(t){return Pe("MuiIconButton",t)}const yF=Me("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),BF=t=>{const{classes:e,disabled:r,color:n,edge:A,size:a}=t,i={root:["root",r&&"disabled",n!=="default"&&`color${Fe(n)}`,A&&`edge${Fe(A)}`,`size${Fe(a)}`]};return Ke(i,mF,e)},wF=me(ii,{name:"MuiIconButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.color!=="default"&&e[`color${Fe(r.color)}`],r.edge&&e[`edge${Fe(r.edge)}`],e[`size${Fe(r.size)}`]]}})(ke(({theme:t})=>({textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(t.vars||t).palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),variants:[{props:{disableRipple:!1},style:{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:dt(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),ke(({theme:t})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(t.palette).filter(vr()).map(([e])=>({props:{color:e},style:{color:(t.vars||t).palette[e].main}})),...Object.entries(t.palette).filter(vr()).map(([e])=>({props:{color:e,disableRipple:!1},style:{"&:hover":{backgroundColor:t.vars?`rgba(${(t.vars||t).palette[e].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:dt((t.vars||t).palette[e].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}}})),{props:{size:"small"},style:{padding:5,fontSize:t.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:t.typography.pxToRem(28)}}],[`&.${yF.disabled}`]:{backgroundColor:"transparent",color:(t.vars||t).palette.action.disabled}}))),TA=O.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiIconButton"}),{edge:A=!1,children:a,className:i,color:o="default",disabled:s=!1,disableFocusRipple:l=!1,disableRipple:u=!1,size:c="medium",...d}=n,h={...n,edge:A,color:o,disabled:s,disableFocusRipple:l,disableRipple:u,size:c},f=BF(h);return I.jsx(wF,{className:xe(f.root,i),centerRipple:!0,focusRipple:!l,disabled:s,disableRipple:u,ref:r,...d,ownerState:h,children:a})});function CF(t){return Pe("MuiTypography",t)}Me("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const bF={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},EF=Vx(),xF=t=>{const{align:e,gutterBottom:r,noWrap:n,paragraph:A,variant:a,classes:i}=t,o={root:["root",a,t.align!=="inherit"&&`align${Fe(e)}`,r&&"gutterBottom",n&&"noWrap",A&&"paragraph"]};return Ke(o,CF,i)},FF=me("span",{name:"MuiTypography",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.variant&&e[r.variant],r.align!=="inherit"&&e[`align${Fe(r.align)}`],r.noWrap&&e.noWrap,r.gutterBottom&&e.gutterBottom,r.paragraph&&e.paragraph]}})(ke(({theme:t})=>{var e;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(t.typography).filter(([r,n])=>r!=="inherit"&&n&&typeof n=="object").map(([r,n])=>({props:{variant:r},style:n})),...Object.entries(t.palette).filter(vr()).map(([r])=>({props:{color:r},style:{color:(t.vars||t).palette[r].main}})),...Object.entries(((e=t.palette)==null?void 0:e.text)||{}).filter(([,r])=>typeof r=="string").map(([r])=>({props:{color:`text${Fe(r)}`},style:{color:(t.vars||t).palette.text[r]}})),{props:({ownerState:r})=>r.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:r})=>r.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:r})=>r.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:r})=>r.paragraph,style:{marginBottom:16}}]}})),Rp={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Bt=O.forwardRef(function(e,r){const{color:n,...A}=Ve({props:e,name:"MuiTypography"}),a=!bF[n],i=EF({...A,...a&&{color:n}}),{align:o="inherit",className:s,component:l,gutterBottom:u=!1,noWrap:c=!1,paragraph:d=!1,variant:h="body1",variantMapping:f=Rp,...p}=i,g={...i,align:o,color:n,className:s,component:l,gutterBottom:u,noWrap:c,paragraph:d,variant:h,variantMapping:f},m=l||(d?"p":f[h]||Rp[h])||"span",w=xF(g);return I.jsx(FF,{as:m,ref:r,className:xe(w.root,s),...p,ownerState:g,style:{...o!=="inherit"&&{"--Typography-textAlign":o},...p.style}})});function QF(t){return Pe("MuiAppBar",t)}Me("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const SF=t=>{const{color:e,position:r,classes:n}=t,A={root:["root",`color${Fe(e)}`,`position${Fe(r)}`]};return Ke(A,QF,n)},Mp=(t,e)=>t?`${t==null?void 0:t.replace(")","")}, ${e})`:e,UF=me(ai,{name:"MuiAppBar",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`position${Fe(r.position)}`],e[`color${Fe(r.color)}`]]}})(ke(({theme:t})=>({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0,variants:[{props:{position:"fixed"},style:{position:"fixed",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}}},{props:{position:"absolute"},style:{position:"absolute",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"sticky"},style:{position:"sticky",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"static"},style:{position:"static"}},{props:{position:"relative"},style:{position:"relative"}},{props:{color:"inherit"},style:{"--AppBar-color":"inherit"}},{props:{color:"default"},style:{"--AppBar-background":t.vars?t.vars.palette.AppBar.defaultBg:t.palette.grey[100],"--AppBar-color":t.vars?t.vars.palette.text.primary:t.palette.getContrastText(t.palette.grey[100]),...t.applyStyles("dark",{"--AppBar-background":t.vars?t.vars.palette.AppBar.defaultBg:t.palette.grey[900],"--AppBar-color":t.vars?t.vars.palette.text.primary:t.palette.getContrastText(t.palette.grey[900])})}},...Object.entries(t.palette).filter(vr(["contrastText"])).map(([e])=>({props:{color:e},style:{"--AppBar-background":(t.vars??t).palette[e].main,"--AppBar-color":(t.vars??t).palette[e].contrastText}})),{props:e=>e.enableColorOnDark===!0&&!["inherit","transparent"].includes(e.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)"}},{props:e=>e.enableColorOnDark===!1&&!["inherit","transparent"].includes(e.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...t.applyStyles("dark",{backgroundColor:t.vars?Mp(t.vars.palette.AppBar.darkBg,"var(--AppBar-background)"):null,color:t.vars?Mp(t.vars.palette.AppBar.darkColor,"var(--AppBar-color)"):null})}},{props:{color:"transparent"},style:{"--AppBar-background":"transparent","--AppBar-color":"inherit",backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...t.applyStyles("dark",{backgroundImage:"none"})}}]}))),TF=O.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiAppBar"}),{className:A,color:a="primary",enableColorOnDark:i=!1,position:o="fixed",...s}=n,l={...n,color:a,position:o,enableColorOnDark:i},u=SF(l);return I.jsx(UF,{square:!0,component:"header",ownerState:l,elevation:4,className:xe(u.root,A,o==="fixed"&&"mui-fixed"),ref:r,...s})});var dr="top",Kr="bottom",Gr="right",hr="left",ch="auto",jo=[dr,Kr,Gr,hr],Wa="start",Eo="end",IF="clippingParents",$y="viewport",bi="popper",LF="reference",Op=jo.reduce(function(t,e){return t.concat([e+"-"+Wa,e+"-"+Eo])},[]),zy=[].concat(jo,[ch]).reduce(function(t,e){return t.concat([e,e+"-"+Wa,e+"-"+Eo])},[]),DF="beforeRead",RF="read",MF="afterRead",OF="beforeMain",HF="main",kF="afterMain",PF="beforeWrite",NF="write",KF="afterWrite",GF=[DF,RF,MF,OF,HF,kF,PF,NF,KF];function Cn(t){return t?(t.nodeName||"").toLowerCase():null}function xr(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function NA(t){var e=xr(t).Element;return t instanceof e||t instanceof Element}function Nr(t){var e=xr(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function fh(t){if(typeof ShadowRoot>"u")return!1;var e=xr(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function VF(t){var e=t.state;Object.keys(e.elements).forEach(function(r){var n=e.styles[r]||{},A=e.attributes[r]||{},a=e.elements[r];!Nr(a)||!Cn(a)||(Object.assign(a.style,n),Object.keys(A).forEach(function(i){var o=A[i];o===!1?a.removeAttribute(i):a.setAttribute(i,o===!0?"":o)}))})}function $F(t){var e=t.state,r={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,r.popper),e.styles=r,e.elements.arrow&&Object.assign(e.elements.arrow.style,r.arrow),function(){Object.keys(e.elements).forEach(function(n){var A=e.elements[n],a=e.attributes[n]||{},i=Object.keys(e.styles.hasOwnProperty(n)?e.styles[n]:r[n]),o=i.reduce(function(s,l){return s[l]="",s},{});!Nr(A)||!Cn(A)||(Object.assign(A.style,o),Object.keys(a).forEach(function(s){A.removeAttribute(s)}))})}}const Wy={name:"applyStyles",enabled:!0,phase:"write",fn:VF,effect:$F,requires:["computeStyles"]};function wn(t){return t.split("-")[0]}var MA=Math.max,Ol=Math.min,_a=Math.round;function Xf(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function _y(){return!/^((?!chrome|android).)*safari/i.test(Xf())}function Xa(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!1);var n=t.getBoundingClientRect(),A=1,a=1;e&&Nr(t)&&(A=t.offsetWidth>0&&_a(n.width)/t.offsetWidth||1,a=t.offsetHeight>0&&_a(n.height)/t.offsetHeight||1);var i=NA(t)?xr(t):window,o=i.visualViewport,s=!_y()&&r,l=(n.left+(s&&o?o.offsetLeft:0))/A,u=(n.top+(s&&o?o.offsetTop:0))/a,c=n.width/A,d=n.height/a;return{width:c,height:d,top:u,right:l+c,bottom:u+d,left:l,x:l,y:u}}function dh(t){var e=Xa(t),r=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-r)<=1&&(r=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:r,height:n}}function Xy(t,e){var r=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(r&&fh(r)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Hn(t){return xr(t).getComputedStyle(t)}function zF(t){return["table","td","th"].indexOf(Cn(t))>=0}function pA(t){return((NA(t)?t.ownerDocument:t.document)||window.document).documentElement}function Xu(t){return Cn(t)==="html"?t:t.assignedSlot||t.parentNode||(fh(t)?t.host:null)||pA(t)}function Hp(t){return!Nr(t)||Hn(t).position==="fixed"?null:t.offsetParent}function WF(t){var e=/firefox/i.test(Xf()),r=/Trident/i.test(Xf());if(r&&Nr(t)){var n=Hn(t);if(n.position==="fixed")return null}var A=Xu(t);for(fh(A)&&(A=A.host);Nr(A)&&["html","body"].indexOf(Cn(A))<0;){var a=Hn(A);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||e&&a.willChange==="filter"||e&&a.filter&&a.filter!=="none")return A;A=A.parentNode}return null}function qo(t){for(var e=xr(t),r=Hp(t);r&&zF(r)&&Hn(r).position==="static";)r=Hp(r);return r&&(Cn(r)==="html"||Cn(r)==="body"&&Hn(r).position==="static")?e:r||WF(t)||e}function hh(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function no(t,e,r){return MA(t,Ol(e,r))}function _F(t,e,r){var n=no(t,e,r);return n>r?r:n}function Yy(){return{top:0,right:0,bottom:0,left:0}}function jy(t){return Object.assign({},Yy(),t)}function qy(t,e){return e.reduce(function(r,n){return r[n]=t,r},{})}var XF=function(e,r){return e=typeof e=="function"?e(Object.assign({},r.rects,{placement:r.placement})):e,jy(typeof e!="number"?e:qy(e,jo))};function YF(t){var e,r=t.state,n=t.name,A=t.options,a=r.elements.arrow,i=r.modifiersData.popperOffsets,o=wn(r.placement),s=hh(o),l=[hr,Gr].indexOf(o)>=0,u=l?"height":"width";if(!(!a||!i)){var c=XF(A.padding,r),d=dh(a),h=s==="y"?dr:hr,f=s==="y"?Kr:Gr,p=r.rects.reference[u]+r.rects.reference[s]-i[s]-r.rects.popper[u],g=i[s]-r.rects.reference[s],m=qo(a),w=m?s==="y"?m.clientHeight||0:m.clientWidth||0:0,v=p/2-g/2,B=c[h],b=w-d[u]-c[f],E=w/2-d[u]/2+v,C=no(B,E,b),F=s;r.modifiersData[n]=(e={},e[F]=C,e.centerOffset=C-E,e)}}function jF(t){var e=t.state,r=t.options,n=r.element,A=n===void 0?"[data-popper-arrow]":n;A!=null&&(typeof A=="string"&&(A=e.elements.popper.querySelector(A),!A)||Xy(e.elements.popper,A)&&(e.elements.arrow=A))}const qF={name:"arrow",enabled:!0,phase:"main",fn:YF,effect:jF,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ya(t){return t.split("-")[1]}var JF={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ZF(t,e){var r=t.x,n=t.y,A=e.devicePixelRatio||1;return{x:_a(r*A)/A||0,y:_a(n*A)/A||0}}function kp(t){var e,r=t.popper,n=t.popperRect,A=t.placement,a=t.variation,i=t.offsets,o=t.position,s=t.gpuAcceleration,l=t.adaptive,u=t.roundOffsets,c=t.isFixed,d=i.x,h=d===void 0?0:d,f=i.y,p=f===void 0?0:f,g=typeof u=="function"?u({x:h,y:p}):{x:h,y:p};h=g.x,p=g.y;var m=i.hasOwnProperty("x"),w=i.hasOwnProperty("y"),v=hr,B=dr,b=window;if(l){var E=qo(r),C="clientHeight",F="clientWidth";if(E===xr(r)&&(E=pA(r),Hn(E).position!=="static"&&o==="absolute"&&(C="scrollHeight",F="scrollWidth")),E=E,A===dr||(A===hr||A===Gr)&&a===Eo){B=Kr;var y=c&&E===b&&b.visualViewport?b.visualViewport.height:E[C];p-=y-n.height,p*=s?1:-1}if(A===hr||(A===dr||A===Kr)&&a===Eo){v=Gr;var x=c&&E===b&&b.visualViewport?b.visualViewport.width:E[F];h-=x-n.width,h*=s?1:-1}}var Q=Object.assign({position:o},l&&JF),S=u===!0?ZF({x:h,y:p},xr(r)):{x:h,y:p};if(h=S.x,p=S.y,s){var T;return Object.assign({},Q,(T={},T[B]=w?"0":"",T[v]=m?"0":"",T.transform=(b.devicePixelRatio||1)<=1?"translate("+h+"px, "+p+"px)":"translate3d("+h+"px, "+p+"px, 0)",T))}return Object.assign({},Q,(e={},e[B]=w?p+"px":"",e[v]=m?h+"px":"",e.transform="",e))}function eQ(t){var e=t.state,r=t.options,n=r.gpuAcceleration,A=n===void 0?!0:n,a=r.adaptive,i=a===void 0?!0:a,o=r.roundOffsets,s=o===void 0?!0:o,l={placement:wn(e.placement),variation:Ya(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:A,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,kp(Object.assign({},l,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:i,roundOffsets:s})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,kp(Object.assign({},l,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const tQ={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:eQ,data:{}};var ys={passive:!0};function rQ(t){var e=t.state,r=t.instance,n=t.options,A=n.scroll,a=A===void 0?!0:A,i=n.resize,o=i===void 0?!0:i,s=xr(e.elements.popper),l=[].concat(e.scrollParents.reference,e.scrollParents.popper);return a&&l.forEach(function(u){u.addEventListener("scroll",r.update,ys)}),o&&s.addEventListener("resize",r.update,ys),function(){a&&l.forEach(function(u){u.removeEventListener("scroll",r.update,ys)}),o&&s.removeEventListener("resize",r.update,ys)}}const nQ={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:rQ,data:{}};var AQ={left:"right",right:"left",bottom:"top",top:"bottom"};function pl(t){return t.replace(/left|right|bottom|top/g,function(e){return AQ[e]})}var aQ={start:"end",end:"start"};function Pp(t){return t.replace(/start|end/g,function(e){return aQ[e]})}function ph(t){var e=xr(t),r=e.pageXOffset,n=e.pageYOffset;return{scrollLeft:r,scrollTop:n}}function gh(t){return Xa(pA(t)).left+ph(t).scrollLeft}function iQ(t,e){var r=xr(t),n=pA(t),A=r.visualViewport,a=n.clientWidth,i=n.clientHeight,o=0,s=0;if(A){a=A.width,i=A.height;var l=_y();(l||!l&&e==="fixed")&&(o=A.offsetLeft,s=A.offsetTop)}return{width:a,height:i,x:o+gh(t),y:s}}function oQ(t){var e,r=pA(t),n=ph(t),A=(e=t.ownerDocument)==null?void 0:e.body,a=MA(r.scrollWidth,r.clientWidth,A?A.scrollWidth:0,A?A.clientWidth:0),i=MA(r.scrollHeight,r.clientHeight,A?A.scrollHeight:0,A?A.clientHeight:0),o=-n.scrollLeft+gh(t),s=-n.scrollTop;return Hn(A||r).direction==="rtl"&&(o+=MA(r.clientWidth,A?A.clientWidth:0)-a),{width:a,height:i,x:o,y:s}}function vh(t){var e=Hn(t),r=e.overflow,n=e.overflowX,A=e.overflowY;return/auto|scroll|overlay|hidden/.test(r+A+n)}function Jy(t){return["html","body","#document"].indexOf(Cn(t))>=0?t.ownerDocument.body:Nr(t)&&vh(t)?t:Jy(Xu(t))}function Ao(t,e){var r;e===void 0&&(e=[]);var n=Jy(t),A=n===((r=t.ownerDocument)==null?void 0:r.body),a=xr(n),i=A?[a].concat(a.visualViewport||[],vh(n)?n:[]):n,o=e.concat(i);return A?o:o.concat(Ao(Xu(i)))}function Yf(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function sQ(t,e){var r=Xa(t,!1,e==="fixed");return r.top=r.top+t.clientTop,r.left=r.left+t.clientLeft,r.bottom=r.top+t.clientHeight,r.right=r.left+t.clientWidth,r.width=t.clientWidth,r.height=t.clientHeight,r.x=r.left,r.y=r.top,r}function Np(t,e,r){return e===$y?Yf(iQ(t,r)):NA(e)?sQ(e,r):Yf(oQ(pA(t)))}function lQ(t){var e=Ao(Xu(t)),r=["absolute","fixed"].indexOf(Hn(t).position)>=0,n=r&&Nr(t)?qo(t):t;return NA(n)?e.filter(function(A){return NA(A)&&Xy(A,n)&&Cn(A)!=="body"}):[]}function uQ(t,e,r,n){var A=e==="clippingParents"?lQ(t):[].concat(e),a=[].concat(A,[r]),i=a[0],o=a.reduce(function(s,l){var u=Np(t,l,n);return s.top=MA(u.top,s.top),s.right=Ol(u.right,s.right),s.bottom=Ol(u.bottom,s.bottom),s.left=MA(u.left,s.left),s},Np(t,i,n));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function Zy(t){var e=t.reference,r=t.element,n=t.placement,A=n?wn(n):null,a=n?Ya(n):null,i=e.x+e.width/2-r.width/2,o=e.y+e.height/2-r.height/2,s;switch(A){case dr:s={x:i,y:e.y-r.height};break;case Kr:s={x:i,y:e.y+e.height};break;case Gr:s={x:e.x+e.width,y:o};break;case hr:s={x:e.x-r.width,y:o};break;default:s={x:e.x,y:e.y}}var l=A?hh(A):null;if(l!=null){var u=l==="y"?"height":"width";switch(a){case Wa:s[l]=s[l]-(e[u]/2-r[u]/2);break;case Eo:s[l]=s[l]+(e[u]/2-r[u]/2);break}}return s}function xo(t,e){e===void 0&&(e={});var r=e,n=r.placement,A=n===void 0?t.placement:n,a=r.strategy,i=a===void 0?t.strategy:a,o=r.boundary,s=o===void 0?IF:o,l=r.rootBoundary,u=l===void 0?$y:l,c=r.elementContext,d=c===void 0?bi:c,h=r.altBoundary,f=h===void 0?!1:h,p=r.padding,g=p===void 0?0:p,m=jy(typeof g!="number"?g:qy(g,jo)),w=d===bi?LF:bi,v=t.rects.popper,B=t.elements[f?w:d],b=uQ(NA(B)?B:B.contextElement||pA(t.elements.popper),s,u,i),E=Xa(t.elements.reference),C=Zy({reference:E,element:v,strategy:"absolute",placement:A}),F=Yf(Object.assign({},v,C)),y=d===bi?F:E,x={top:b.top-y.top+m.top,bottom:y.bottom-b.bottom+m.bottom,left:b.left-y.left+m.left,right:y.right-b.right+m.right},Q=t.modifiersData.offset;if(d===bi&&Q){var S=Q[A];Object.keys(x).forEach(function(T){var U=[Gr,Kr].indexOf(T)>=0?1:-1,L=[dr,Kr].indexOf(T)>=0?"y":"x";x[T]+=S[L]*U})}return x}function cQ(t,e){e===void 0&&(e={});var r=e,n=r.placement,A=r.boundary,a=r.rootBoundary,i=r.padding,o=r.flipVariations,s=r.allowedAutoPlacements,l=s===void 0?zy:s,u=Ya(n),c=u?o?Op:Op.filter(function(f){return Ya(f)===u}):jo,d=c.filter(function(f){return l.indexOf(f)>=0});d.length===0&&(d=c);var h=d.reduce(function(f,p){return f[p]=xo(t,{placement:p,boundary:A,rootBoundary:a,padding:i})[wn(p)],f},{});return Object.keys(h).sort(function(f,p){return h[f]-h[p]})}function fQ(t){if(wn(t)===ch)return[];var e=pl(t);return[Pp(t),e,Pp(e)]}function dQ(t){var e=t.state,r=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var A=r.mainAxis,a=A===void 0?!0:A,i=r.altAxis,o=i===void 0?!0:i,s=r.fallbackPlacements,l=r.padding,u=r.boundary,c=r.rootBoundary,d=r.altBoundary,h=r.flipVariations,f=h===void 0?!0:h,p=r.allowedAutoPlacements,g=e.options.placement,m=wn(g),w=m===g,v=s||(w||!f?[pl(g)]:fQ(g)),B=[g].concat(v).reduce(function(X,Z){return X.concat(wn(Z)===ch?cQ(e,{placement:Z,boundary:u,rootBoundary:c,padding:l,flipVariations:f,allowedAutoPlacements:p}):Z)},[]),b=e.rects.reference,E=e.rects.popper,C=new Map,F=!0,y=B[0],x=0;x=0,L=U?"width":"height",R=xo(e,{placement:Q,boundary:u,rootBoundary:c,altBoundary:d,padding:l}),M=U?T?Gr:hr:T?Kr:dr;b[L]>E[L]&&(M=pl(M));var H=pl(M),k=[];if(a&&k.push(R[S]<=0),o&&k.push(R[M]<=0,R[H]<=0),k.every(function(X){return X})){y=Q,F=!1;break}C.set(Q,k)}if(F)for(var N=f?3:1,P=function(Z){var Ae=B.find(function(ie){var re=C.get(ie);if(re)return re.slice(0,Z).every(function(z){return z})});if(Ae)return y=Ae,"break"},K=N;K>0;K--){var W=P(K);if(W==="break")break}e.placement!==y&&(e.modifiersData[n]._skip=!0,e.placement=y,e.reset=!0)}}const hQ={name:"flip",enabled:!0,phase:"main",fn:dQ,requiresIfExists:["offset"],data:{_skip:!1}};function Kp(t,e,r){return r===void 0&&(r={x:0,y:0}),{top:t.top-e.height-r.y,right:t.right-e.width+r.x,bottom:t.bottom-e.height+r.y,left:t.left-e.width-r.x}}function Gp(t){return[dr,Gr,Kr,hr].some(function(e){return t[e]>=0})}function pQ(t){var e=t.state,r=t.name,n=e.rects.reference,A=e.rects.popper,a=e.modifiersData.preventOverflow,i=xo(e,{elementContext:"reference"}),o=xo(e,{altBoundary:!0}),s=Kp(i,n),l=Kp(o,A,a),u=Gp(s),c=Gp(l);e.modifiersData[r]={referenceClippingOffsets:s,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:c},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":c})}const gQ={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:pQ};function vQ(t,e,r){var n=wn(t),A=[hr,dr].indexOf(n)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},e,{placement:t})):r,i=a[0],o=a[1];return i=i||0,o=(o||0)*A,[hr,Gr].indexOf(n)>=0?{x:o,y:i}:{x:i,y:o}}function mQ(t){var e=t.state,r=t.options,n=t.name,A=r.offset,a=A===void 0?[0,0]:A,i=zy.reduce(function(u,c){return u[c]=vQ(c,e.rects,a),u},{}),o=i[e.placement],s=o.x,l=o.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=s,e.modifiersData.popperOffsets.y+=l),e.modifiersData[n]=i}const yQ={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:mQ};function BQ(t){var e=t.state,r=t.name;e.modifiersData[r]=Zy({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const wQ={name:"popperOffsets",enabled:!0,phase:"read",fn:BQ,data:{}};function CQ(t){return t==="x"?"y":"x"}function bQ(t){var e=t.state,r=t.options,n=t.name,A=r.mainAxis,a=A===void 0?!0:A,i=r.altAxis,o=i===void 0?!1:i,s=r.boundary,l=r.rootBoundary,u=r.altBoundary,c=r.padding,d=r.tether,h=d===void 0?!0:d,f=r.tetherOffset,p=f===void 0?0:f,g=xo(e,{boundary:s,rootBoundary:l,padding:c,altBoundary:u}),m=wn(e.placement),w=Ya(e.placement),v=!w,B=hh(m),b=CQ(B),E=e.modifiersData.popperOffsets,C=e.rects.reference,F=e.rects.popper,y=typeof p=="function"?p(Object.assign({},e.rects,{placement:e.placement})):p,x=typeof y=="number"?{mainAxis:y,altAxis:y}:Object.assign({mainAxis:0,altAxis:0},y),Q=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,S={x:0,y:0};if(E){if(a){var T,U=B==="y"?dr:hr,L=B==="y"?Kr:Gr,R=B==="y"?"height":"width",M=E[B],H=M+g[U],k=M-g[L],N=h?-F[R]/2:0,P=w===Wa?C[R]:F[R],K=w===Wa?-F[R]:-C[R],W=e.elements.arrow,X=h&&W?dh(W):{width:0,height:0},Z=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Yy(),Ae=Z[U],ie=Z[L],re=no(0,C[R],X[R]),z=v?C[R]/2-N-re-Ae-x.mainAxis:P-re-Ae-x.mainAxis,q=v?-C[R]/2+N+re+ie+x.mainAxis:K+re+ie+x.mainAxis,ee=e.elements.arrow&&qo(e.elements.arrow),se=ee?B==="y"?ee.clientTop||0:ee.clientLeft||0:0,te=(T=Q==null?void 0:Q[B])!=null?T:0,ae=M+z-te-se,le=M+q-te,ve=no(h?Ol(H,ae):H,M,h?MA(k,le):k);E[B]=ve,S[B]=ve-M}if(o){var ge,he=B==="x"?dr:hr,ye=B==="x"?Kr:Gr,Se=E[b],Ce=b==="y"?"height":"width",we=Se+g[he],_=Se-g[ye],$=[dr,hr].indexOf(m)!==-1,D=(ge=Q==null?void 0:Q[b])!=null?ge:0,G=$?we:Se-C[Ce]-F[Ce]-D+x.altAxis,J=$?Se+C[Ce]+F[Ce]-D-x.altAxis:_,j=h&&$?_F(G,Se,J):no(h?G:we,Se,h?J:_);E[b]=j,S[b]=j-Se}e.modifiersData[n]=S}}const EQ={name:"preventOverflow",enabled:!0,phase:"main",fn:bQ,requiresIfExists:["offset"]};function xQ(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function FQ(t){return t===xr(t)||!Nr(t)?ph(t):xQ(t)}function QQ(t){var e=t.getBoundingClientRect(),r=_a(e.width)/t.offsetWidth||1,n=_a(e.height)/t.offsetHeight||1;return r!==1||n!==1}function SQ(t,e,r){r===void 0&&(r=!1);var n=Nr(e),A=Nr(e)&&QQ(e),a=pA(e),i=Xa(t,A,r),o={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(n||!n&&!r)&&((Cn(e)!=="body"||vh(a))&&(o=FQ(e)),Nr(e)?(s=Xa(e,!0),s.x+=e.clientLeft,s.y+=e.clientTop):a&&(s.x=gh(a))),{x:i.left+o.scrollLeft-s.x,y:i.top+o.scrollTop-s.y,width:i.width,height:i.height}}function UQ(t){var e=new Map,r=new Set,n=[];t.forEach(function(a){e.set(a.name,a)});function A(a){r.add(a.name);var i=[].concat(a.requires||[],a.requiresIfExists||[]);i.forEach(function(o){if(!r.has(o)){var s=e.get(o);s&&A(s)}}),n.push(a)}return t.forEach(function(a){r.has(a.name)||A(a)}),n}function TQ(t){var e=UQ(t);return GF.reduce(function(r,n){return r.concat(e.filter(function(A){return A.phase===n}))},[])}function IQ(t){var e;return function(){return e||(e=new Promise(function(r){Promise.resolve().then(function(){e=void 0,r(t())})})),e}}function LQ(t){var e=t.reduce(function(r,n){var A=r[n.name];return r[n.name]=A?Object.assign({},A,n,{options:Object.assign({},A.options,n.options),data:Object.assign({},A.data,n.data)}):n,r},{});return Object.keys(e).map(function(r){return e[r]})}var Vp={placement:"bottom",modifiers:[],strategy:"absolute"};function $p(){for(var t=arguments.length,e=new Array(t),r=0;r{a||o(MQ(A)||document.body)},[A,a]),rn(()=>{if(i&&!a)return Vf(r,i),()=>{Vf(r,null)}},[r,i,a]),a){if(O.isValidElement(n)){const l={ref:s};return O.cloneElement(n,l)}return I.jsx(O.Fragment,{children:n})}return I.jsx(O.Fragment,{children:i&&VC.createPortal(n,i)})});function OQ(t){return Pe("MuiPopper",t)}Me("MuiPopper",["root"]);function HQ(t,e){if(e==="ltr")return t;switch(t){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return t}}function jf(t){return typeof t=="function"?t():t}function kQ(t){return t.nodeType!==void 0}const PQ=t=>{const{classes:e}=t;return Ke({root:["root"]},OQ,e)},NQ={},KQ=O.forwardRef(function(e,r){const{anchorEl:n,children:A,direction:a,disablePortal:i,modifiers:o,open:s,placement:l,popperOptions:u,popperRef:c,slotProps:d={},slots:h={},TransitionProps:f,ownerState:p,...g}=e,m=O.useRef(null),w=Qt(m,r),v=O.useRef(null),B=Qt(v,c),b=O.useRef(B);rn(()=>{b.current=B},[B]),O.useImperativeHandle(c,()=>v.current,[]);const E=HQ(l,a),[C,F]=O.useState(E),[y,x]=O.useState(jf(n));O.useEffect(()=>{v.current&&v.current.forceUpdate()}),O.useEffect(()=>{n&&x(jf(n))},[n]),rn(()=>{if(!y||!s)return;const L=H=>{F(H.placement)};let R=[{name:"preventOverflow",options:{altBoundary:i}},{name:"flip",options:{altBoundary:i}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:H})=>{L(H)}}];o!=null&&(R=R.concat(o)),u&&u.modifiers!=null&&(R=R.concat(u.modifiers));const M=e0(y,m.current,{placement:E,...u,modifiers:R});return b.current(M),()=>{M.destroy(),b.current(null)}},[y,i,o,s,u,E]);const Q={placement:C};f!==null&&(Q.TransitionProps=f);const S=PQ(e),T=h.root??"div",U=Yr({elementType:T,externalSlotProps:d.root,externalForwardedProps:g,additionalProps:{role:"tooltip",ref:w},ownerState:e,className:S.root});return I.jsx(T,{...U,children:typeof A=="function"?A(Q):A})}),GQ=O.forwardRef(function(e,r){const{anchorEl:n,children:A,container:a,direction:i="ltr",disablePortal:o=!1,keepMounted:s=!1,modifiers:l,open:u,placement:c="bottom",popperOptions:d=NQ,popperRef:h,style:f,transition:p=!1,slotProps:g={},slots:m={},...w}=e,[v,B]=O.useState(!0),b=()=>{B(!1)},E=()=>{B(!0)};if(!s&&!u&&(!p||v))return null;let C;if(a)C=a;else if(n){const x=jf(n);C=x&&kQ(x)?Ft(x).body:Ft(null).body}const F=!u&&s&&(!p||v)?"none":void 0,y=p?{in:u,onEnter:b,onExited:E}:void 0;return I.jsx(t0,{disablePortal:o,container:C,children:I.jsx(KQ,{anchorEl:n,direction:i,disablePortal:o,modifiers:l,ref:r,open:p?!v:u,placement:c,popperOptions:d,popperRef:h,slotProps:g,slots:m,...w,style:{position:"fixed",top:0,left:0,display:F,...f},TransitionProps:y,children:A})})}),VQ=me(GQ,{name:"MuiPopper",slot:"Root",overridesResolver:(t,e)=>e.root})({}),Yu=O.forwardRef(function(e,r){const n=_o(),A=Ve({props:e,name:"MuiPopper"}),{anchorEl:a,component:i,components:o,componentsProps:s,container:l,disablePortal:u,keepMounted:c,modifiers:d,open:h,placement:f,popperOptions:p,popperRef:g,transition:m,slots:w,slotProps:v,...B}=A,b=(w==null?void 0:w.root)??(o==null?void 0:o.Root),E={anchorEl:a,container:l,disablePortal:u,keepMounted:c,modifiers:d,open:h,placement:f,popperOptions:p,popperRef:g,transition:m,...B};return I.jsx(VQ,{as:i,direction:n?"rtl":"ltr",slots:{root:b},slotProps:v??s,...E,ref:r})});function Bs(t){return parseInt(t,10)||0}const $Q={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function zQ(t){return t==null||Object.keys(t).length===0||t.outerHeightStyle===0&&!t.overflowing}const WQ=O.forwardRef(function(e,r){const{onChange:n,maxRows:A,minRows:a=1,style:i,value:o,...s}=e,{current:l}=O.useRef(o!=null),u=O.useRef(null),c=Qt(r,u),d=O.useRef(null),h=O.useRef(null),f=O.useCallback(()=>{const m=u.current,v=PA(m).getComputedStyle(m);if(v.width==="0px")return{outerHeightStyle:0,overflowing:!1};const B=h.current;B.style.width=v.width,B.value=m.value||e.placeholder||"x",B.value.slice(-1)===` +`&&(B.value+=" ");const b=v.boxSizing,E=Bs(v.paddingBottom)+Bs(v.paddingTop),C=Bs(v.borderBottomWidth)+Bs(v.borderTopWidth),F=B.scrollHeight;B.value="x";const y=B.scrollHeight;let x=F;a&&(x=Math.max(Number(a)*y,x)),A&&(x=Math.min(Number(A)*y,x)),x=Math.max(x,y);const Q=x+(b==="border-box"?E+C:0),S=Math.abs(x-F)<=1;return{outerHeightStyle:Q,overflowing:S}},[A,a,e.placeholder]),p=O.useCallback(()=>{const m=f();if(zQ(m))return;const w=m.outerHeightStyle,v=u.current;d.current!==w&&(d.current=w,v.style.height=`${w}px`),v.style.overflow=m.overflowing?"hidden":""},[f]);rn(()=>{const m=()=>{p()};let w;const v=Uy(m),B=u.current,b=PA(B);b.addEventListener("resize",v);let E;return typeof ResizeObserver<"u"&&(E=new ResizeObserver(m),E.observe(B)),()=>{v.clear(),cancelAnimationFrame(w),b.removeEventListener("resize",v),E&&E.disconnect()}},[f,p]),rn(()=>{p()});const g=m=>{l||p(),n&&n(m)};return I.jsxs(O.Fragment,{children:[I.jsx("textarea",{value:o,onChange:g,ref:c,rows:a,style:i,...s}),I.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:h,tabIndex:-1,style:{...$Q.shadow,...i,paddingTop:0,paddingBottom:0}})]})});function nA(t){return typeof t=="string"}function qA({props:t,states:e,muiFormControl:r}){return e.reduce((n,A)=>(n[A]=t[A],r&&typeof t[A]>"u"&&(n[A]=r[A]),n),{})}const ju=O.createContext(void 0);function Vn(){return O.useContext(ju)}function zp(t){return t!=null&&!(Array.isArray(t)&&t.length===0)}function Hl(t,e=!1){return t&&(zp(t.value)&&t.value!==""||e&&zp(t.defaultValue)&&t.defaultValue!=="")}function _Q(t){return t.startAdornment}function XQ(t){return Pe("MuiInputBase",t)}const ja=Me("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var Wp;const qu=(t,e)=>{const{ownerState:r}=t;return[e.root,r.formControl&&e.formControl,r.startAdornment&&e.adornedStart,r.endAdornment&&e.adornedEnd,r.error&&e.error,r.size==="small"&&e.sizeSmall,r.multiline&&e.multiline,r.color&&e[`color${Fe(r.color)}`],r.fullWidth&&e.fullWidth,r.hiddenLabel&&e.hiddenLabel]},Ju=(t,e)=>{const{ownerState:r}=t;return[e.input,r.size==="small"&&e.inputSizeSmall,r.multiline&&e.inputMultiline,r.type==="search"&&e.inputTypeSearch,r.startAdornment&&e.inputAdornedStart,r.endAdornment&&e.inputAdornedEnd,r.hiddenLabel&&e.inputHiddenLabel]},YQ=t=>{const{classes:e,color:r,disabled:n,error:A,endAdornment:a,focused:i,formControl:o,fullWidth:s,hiddenLabel:l,multiline:u,readOnly:c,size:d,startAdornment:h,type:f}=t,p={root:["root",`color${Fe(r)}`,n&&"disabled",A&&"error",s&&"fullWidth",i&&"focused",o&&"formControl",d&&d!=="medium"&&`size${Fe(d)}`,u&&"multiline",h&&"adornedStart",a&&"adornedEnd",l&&"hiddenLabel",c&&"readOnly"],input:["input",n&&"disabled",f==="search"&&"inputTypeSearch",u&&"inputMultiline",d==="small"&&"inputSizeSmall",l&&"inputHiddenLabel",h&&"inputAdornedStart",a&&"inputAdornedEnd",c&&"readOnly"]};return Ke(p,XQ,e)},Zu=me("div",{name:"MuiInputBase",slot:"Root",overridesResolver:qu})(ke(({theme:t})=>({...t.typography.body1,color:(t.vars||t).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${ja.disabled}`]:{color:(t.vars||t).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:e})=>e.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:e,size:r})=>e.multiline&&r==="small",style:{paddingTop:1}},{props:({ownerState:e})=>e.fullWidth,style:{width:"100%"}}]}))),ec=me("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Ju})(ke(({theme:t})=>{const e=t.palette.mode==="light",r={color:"currentColor",...t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:e?.42:.5},transition:t.transitions.create("opacity",{duration:t.transitions.duration.shorter})},n={opacity:"0 !important"},A=t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:e?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${ja.formControl} &`]:{"&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus::-webkit-input-placeholder":A,"&:focus::-moz-placeholder":A,"&:focus::-ms-input-placeholder":A},[`&.${ja.disabled}`]:{opacity:1,WebkitTextFillColor:(t.vars||t).palette.text.disabled},variants:[{props:({ownerState:a})=>!a.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:a})=>a.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),_p=Gx({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),Jo=O.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiInputBase"}),{"aria-describedby":A,autoComplete:a,autoFocus:i,className:o,color:s,components:l={},componentsProps:u={},defaultValue:c,disabled:d,disableInjectingGlobalStyles:h,endAdornment:f,error:p,fullWidth:g=!1,id:m,inputComponent:w="input",inputProps:v={},inputRef:B,margin:b,maxRows:E,minRows:C,multiline:F=!1,name:y,onBlur:x,onChange:Q,onClick:S,onFocus:T,onKeyDown:U,onKeyUp:L,placeholder:R,readOnly:M,renderSuffix:H,rows:k,size:N,slotProps:P={},slots:K={},startAdornment:W,type:X="text",value:Z,...Ae}=n,ie=v.value!=null?v.value:Z,{current:re}=O.useRef(ie!=null),z=O.useRef(),q=O.useCallback(Y=>{},[]),ee=Qt(z,B,v.ref,q),[se,te]=O.useState(!1),ae=Vn(),le=qA({props:n,muiFormControl:ae,states:["color","disabled","error","hiddenLabel","size","required","filled"]});le.focused=ae?ae.focused:se,O.useEffect(()=>{!ae&&d&&se&&(te(!1),x&&x())},[ae,d,se,x]);const ve=ae&&ae.onFilled,ge=ae&&ae.onEmpty,he=O.useCallback(Y=>{Hl(Y)?ve&&ve():ge&&ge()},[ve,ge]);rn(()=>{re&&he({value:ie})},[ie,he,re]);const ye=Y=>{T&&T(Y),v.onFocus&&v.onFocus(Y),ae&&ae.onFocus?ae.onFocus(Y):te(!0)},Se=Y=>{x&&x(Y),v.onBlur&&v.onBlur(Y),ae&&ae.onBlur?ae.onBlur(Y):te(!1)},Ce=(Y,...de)=>{if(!re){const Te=Y.target||z.current;if(Te==null)throw new Error(Mn(1));he({value:Te.value})}v.onChange&&v.onChange(Y,...de),Q&&Q(Y,...de)};O.useEffect(()=>{he(z.current)},[]);const we=Y=>{z.current&&Y.currentTarget===Y.target&&z.current.focus(),S&&S(Y)};let _=w,$=v;F&&_==="input"&&(k?$={type:void 0,minRows:k,maxRows:k,...$}:$={type:void 0,maxRows:E,minRows:C,...$},_=WQ);const D=Y=>{he(Y.animationName==="mui-auto-fill-cancel"?z.current:{value:"x"})};O.useEffect(()=>{ae&&ae.setAdornedStart(!!W)},[ae,W]);const G={...n,color:le.color||"primary",disabled:le.disabled,endAdornment:f,error:le.error,focused:le.focused,formControl:ae,fullWidth:g,hiddenLabel:le.hiddenLabel,multiline:F,size:le.size,startAdornment:W,type:X},J=YQ(G),j=K.root||l.Root||Zu,ne=P.root||u.root||{},ce=K.input||l.Input||ec;return $={...$,...P.input??u.input},I.jsxs(O.Fragment,{children:[!h&&typeof _p=="function"&&(Wp||(Wp=I.jsx(_p,{}))),I.jsxs(j,{...ne,ref:r,onClick:we,...Ae,...!nA(j)&&{ownerState:{...G,...ne.ownerState}},className:xe(J.root,ne.className,o,M&&"MuiInputBase-readOnly"),children:[W,I.jsx(ju.Provider,{value:null,children:I.jsx(ce,{"aria-invalid":le.error,"aria-describedby":A,autoComplete:a,autoFocus:i,defaultValue:c,disabled:le.disabled,id:m,onAnimationStart:D,name:y,placeholder:R,readOnly:M,required:le.required,rows:k,value:ie,onKeyDown:U,onKeyUp:L,type:X,...$,...!nA(ce)&&{as:_,ownerState:{...G,...$.ownerState}},ref:ee,className:xe(J.input,$.className,M&&"MuiInputBase-readOnly"),onBlur:Se,onChange:Ce,onFocus:ye})}),f,H?H({...le,startAdornment:W}):null]})]})});function jQ(t){return Pe("MuiInput",t)}const Ei={...ja,...Me("MuiInput",["root","underline","input"])};function qQ(t){return Pe("MuiOutlinedInput",t)}const sn={...ja,...Me("MuiOutlinedInput",["root","notchedOutline","input"])};function JQ(t){return Pe("MuiFilledInput",t)}const mA={...ja,...Me("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},ZQ=vt(I.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),eS={entering:{opacity:1},entered:{opacity:1}},tS=O.forwardRef(function(e,r){const n=Yo(),A={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:a,appear:i=!0,children:o,easing:s,in:l,onEnter:u,onEntered:c,onEntering:d,onExit:h,onExited:f,onExiting:p,style:g,timeout:m=A,TransitionComponent:w=En,...v}=e,B=O.useRef(null),b=Qt(B,jA(o),r),E=U=>L=>{if(U){const R=B.current;L===void 0?U(R):U(R,L)}},C=E(d),F=E((U,L)=>{Vy(U);const R=Rl({style:g,timeout:m,easing:s},{mode:"enter"});U.style.webkitTransition=n.transitions.create("opacity",R),U.style.transition=n.transitions.create("opacity",R),u&&u(U,L)}),y=E(c),x=E(p),Q=E(U=>{const L=Rl({style:g,timeout:m,easing:s},{mode:"exit"});U.style.webkitTransition=n.transitions.create("opacity",L),U.style.transition=n.transitions.create("opacity",L),h&&h(U)}),S=E(f),T=U=>{a&&a(B.current,U)};return I.jsx(w,{appear:i,in:l,nodeRef:B,onEnter:F,onEntered:y,onEntering:C,onExit:Q,onExited:S,onExiting:x,addEndListener:T,timeout:m,...v,children:(U,L)=>O.cloneElement(o,{style:{opacity:0,visibility:U==="exited"&&!l?"hidden":void 0,...eS[U],...g,...o.props.style},ref:b,...L})})});function rS(t){return Pe("MuiBackdrop",t)}Me("MuiBackdrop",["root","invisible"]);const nS=t=>{const{ownerState:e,...r}=t;return r},AS=t=>{const{classes:e,invisible:r}=t;return Ke({root:["root",r&&"invisible"]},rS,e)},aS=me("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.invisible&&e.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),iS=O.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiBackdrop"}),{children:A,className:a,component:i="div",invisible:o=!1,open:s,components:l={},componentsProps:u={},slotProps:c={},slots:d={},TransitionComponent:h,transitionDuration:f,...p}=n,g={...n,component:i,invisible:o},m=AS(g),w={transition:h,root:l.Root,...d},v={...u,...c},B={slots:w,slotProps:v},[b,E]=Rr("root",{elementType:aS,externalForwardedProps:B,className:xe(m.root,a),ownerState:g}),[C,F]=Rr("transition",{elementType:tS,externalForwardedProps:B,ownerState:g}),y=nS(F);return I.jsx(C,{in:s,timeout:f,...p,...y,children:I.jsx(b,{"aria-hidden":!0,...E,classes:m,ref:r,children:A})})}),oS=Me("MuiBox",["root"]),sS=Xo(),tc=tE({themeId:en,defaultTheme:sS,defaultClassName:oS.root,generateClassName:by.generate});function lS(t){return Pe("MuiButton",t)}const oa=Me("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),uS=O.createContext({}),cS=O.createContext(void 0),fS=t=>{const{color:e,disableElevation:r,fullWidth:n,size:A,variant:a,classes:i}=t,o={root:["root",a,`${a}${Fe(e)}`,`size${Fe(A)}`,`${a}Size${Fe(A)}`,`color${Fe(e)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${Fe(A)}`],endIcon:["icon","endIcon",`iconSize${Fe(A)}`]},s=Ke(o,lS,i);return{...i,...s}},r0=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],dS=me(ii,{shouldForwardProp:t=>yr(t)||t==="classes",name:"MuiButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant],e[`${r.variant}${Fe(r.color)}`],e[`size${Fe(r.size)}`],e[`${r.variant}Size${Fe(r.size)}`],r.color==="inherit"&&e.colorInherit,r.disableElevation&&e.disableElevation,r.fullWidth&&e.fullWidth]}})(ke(({theme:t})=>{var n,A;const e=t.palette.mode==="light"?t.palette.grey[300]:t.palette.grey[800],r=t.palette.mode==="light"?t.palette.grey.A100:t.palette.grey[700];return{...t.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create(["background-color","box-shadow","border-color","color"],{duration:t.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${oa.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(t.vars||t).shadows[2],"&:hover":{boxShadow:(t.vars||t).shadows[4],"@media (hover: none)":{boxShadow:(t.vars||t).shadows[2]}},"&:active":{boxShadow:(t.vars||t).shadows[8]},[`&.${oa.focusVisible}`]:{boxShadow:(t.vars||t).shadows[6]},[`&.${oa.disabled}`]:{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${oa.disabled}`]:{border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(t.palette).filter(vr(["dark","contrastText"])).map(([a])=>({props:{color:a},style:{"--variant-textColor":(t.vars||t).palette[a].main,"--variant-outlinedColor":(t.vars||t).palette[a].main,"--variant-outlinedBorder":t.vars?`rgba(${t.vars.palette[a].mainChannel} / 0.5)`:dt(t.palette[a].main,.5),"--variant-containedColor":(t.vars||t).palette[a].contrastText,"--variant-containedBg":(t.vars||t).palette[a].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(t.vars||t).palette[a].dark,"--variant-textBg":t.vars?`rgba(${t.vars.palette[a].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:dt(t.palette[a].main,t.palette.action.hoverOpacity),"--variant-outlinedBorder":(t.vars||t).palette[a].main,"--variant-outlinedBg":t.vars?`rgba(${t.vars.palette[a].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:dt(t.palette[a].main,t.palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{"--variant-containedColor":t.vars?t.vars.palette.text.primary:(A=(n=t.palette).getContrastText)==null?void 0:A.call(n,e),"--variant-containedBg":t.vars?t.vars.palette.Button.inheritContainedBg:e,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":t.vars?t.vars.palette.Button.inheritContainedHoverBg:r,"--variant-textBg":t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:dt(t.palette.text.primary,t.palette.action.hoverOpacity),"--variant-outlinedBg":t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:dt(t.palette.text.primary,t.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:t.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:t.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:t.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${oa.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${oa.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}}]}})),hS=me("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.startIcon,e[`iconSize${Fe(r.size)}`]]}})({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},...r0]}),pS=me("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.endIcon,e[`iconSize${Fe(r.size)}`]]}})({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},...r0]}),qn=O.forwardRef(function(e,r){const n=O.useContext(uS),A=O.useContext(cS),a=wo(n,e),i=Ve({props:a,name:"MuiButton"}),{children:o,color:s="primary",component:l="button",className:u,disabled:c=!1,disableElevation:d=!1,disableFocusRipple:h=!1,endIcon:f,focusVisibleClassName:p,fullWidth:g=!1,size:m="medium",startIcon:w,type:v,variant:B="text",...b}=i,E={...i,color:s,component:l,disabled:c,disableElevation:d,disableFocusRipple:h,fullWidth:g,size:m,type:v,variant:B},C=fS(E),F=w&&I.jsx(hS,{className:C.startIcon,ownerState:E,children:w}),y=f&&I.jsx(pS,{className:C.endIcon,ownerState:E,children:f}),x=A||"";return I.jsxs(dS,{ownerState:E,className:xe(n.className,C.root,u,x),component:l,disabled:c,focusRipple:!h,focusVisibleClassName:xe(C.focusVisible,p),ref:r,type:v,...b,classes:C,children:[F,o,y]})});function gS(t){return Pe("MuiCard",t)}Me("MuiCard",["root"]);const vS=t=>{const{classes:e}=t;return Ke({root:["root"]},gS,e)},mS=me(ai,{name:"MuiCard",slot:"Root",overridesResolver:(t,e)=>e.root})({overflow:"hidden"}),yS=O.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiCard"}),{className:A,raised:a=!1,...i}=n,o={...n,raised:a},s=vS(o);return I.jsx(mS,{className:xe(s.root,A),elevation:a?8:void 0,ref:r,ownerState:o,...i})});function BS(t){return Pe("MuiCardActionArea",t)}const Gc=Me("MuiCardActionArea",["root","focusVisible","focusHighlight"]),wS=t=>{const{classes:e}=t;return Ke({root:["root"],focusHighlight:["focusHighlight"]},BS,e)},CS=me(ii,{name:"MuiCardActionArea",slot:"Root",overridesResolver:(t,e)=>e.root})(ke(({theme:t})=>({display:"block",textAlign:"inherit",borderRadius:"inherit",width:"100%",[`&:hover .${Gc.focusHighlight}`]:{opacity:(t.vars||t).palette.action.hoverOpacity,"@media (hover: none)":{opacity:0}},[`&.${Gc.focusVisible} .${Gc.focusHighlight}`]:{opacity:(t.vars||t).palette.action.focusOpacity}}))),bS=me("span",{name:"MuiCardActionArea",slot:"FocusHighlight",overridesResolver:(t,e)=>e.focusHighlight})(ke(({theme:t})=>({overflow:"hidden",pointerEvents:"none",position:"absolute",top:0,right:0,bottom:0,left:0,borderRadius:"inherit",opacity:0,backgroundColor:"currentcolor",transition:t.transitions.create("opacity",{duration:t.transitions.duration.short})}))),ES=O.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiCardActionArea"}),{children:A,className:a,focusVisibleClassName:i,...o}=n,s=n,l=wS(s);return I.jsxs(CS,{className:xe(l.root,a),focusVisibleClassName:xe(i,l.focusVisible),ref:r,ownerState:s,...o,children:[A,I.jsx(bS,{className:l.focusHighlight,ownerState:s})]})});function xS(t){return Pe("MuiCardContent",t)}Me("MuiCardContent",["root"]);const FS=t=>{const{classes:e}=t;return Ke({root:["root"]},xS,e)},QS=me("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(t,e)=>e.root})({padding:16,"&:last-child":{paddingBottom:24}}),SS=O.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiCardContent"}),{className:A,component:a="div",...i}=n,o={...n,component:a},s=FS(o);return I.jsx(QS,{as:a,className:xe(s.root,A),ownerState:o,ref:r,...i})});function US(t){return Pe("PrivateSwitchBase",t)}Me("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const TS=t=>{const{classes:e,checked:r,disabled:n,edge:A}=t,a={root:["root",r&&"checked",n&&"disabled",A&&`edge${Fe(A)}`],input:["input"]};return Ke(a,US,e)},IS=me(ii)({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:t,ownerState:e})=>t==="start"&&e.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:t,ownerState:e})=>t==="end"&&e.size!=="small",style:{marginRight:-12}}]}),LS=me("input",{shouldForwardProp:yr})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),DS=O.forwardRef(function(e,r){const{autoFocus:n,checked:A,checkedIcon:a,className:i,defaultChecked:o,disabled:s,disableFocusRipple:l=!1,edge:u=!1,icon:c,id:d,inputProps:h,inputRef:f,name:p,onBlur:g,onChange:m,onFocus:w,readOnly:v,required:B=!1,tabIndex:b,type:E,value:C,...F}=e,[y,x]=bo({controlled:A,default:!!o,name:"SwitchBase",state:"checked"}),Q=Vn(),S=k=>{w&&w(k),Q&&Q.onFocus&&Q.onFocus(k)},T=k=>{g&&g(k),Q&&Q.onBlur&&Q.onBlur(k)},U=k=>{if(k.nativeEvent.defaultPrevented)return;const N=k.target.checked;x(N),m&&m(k,N)};let L=s;Q&&typeof L>"u"&&(L=Q.disabled);const R=E==="checkbox"||E==="radio",M={...e,checked:y,disabled:L,disableFocusRipple:l,edge:u},H=TS(M);return I.jsxs(IS,{component:"span",className:xe(H.root,i),centerRipple:!0,focusRipple:!l,disabled:L,tabIndex:null,role:void 0,onFocus:S,onBlur:T,ownerState:M,ref:r,...F,children:[I.jsx(LS,{autoFocus:n,checked:A,defaultChecked:o,className:H.input,disabled:L,id:R?d:void 0,name:p,onChange:U,readOnly:v,ref:f,required:B,ownerState:M,tabIndex:b,type:E,...E==="checkbox"&&C===void 0?{}:{value:C},...h}),y?a:c]})}),RS=vt(I.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),MS=vt(I.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),OS=vt(I.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function HS(t){return Pe("MuiCheckbox",t)}const Vc=Me("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),kS=t=>{const{classes:e,indeterminate:r,color:n,size:A}=t,a={root:["root",r&&"indeterminate",`color${Fe(n)}`,`size${Fe(A)}`]},i=Ke(a,HS,e);return{...e,...i}},PS=me(DS,{shouldForwardProp:t=>yr(t)||t==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.indeterminate&&e.indeterminate,e[`size${Fe(r.size)}`],r.color!=="default"&&e[`color${Fe(r.color)}`]]}})(ke(({theme:t})=>({color:(t.vars||t).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:dt(t.palette.action.active,t.palette.action.hoverOpacity)}}},...Object.entries(t.palette).filter(vr()).map(([e])=>({props:{color:e,disableRipple:!1},style:{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[e].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:dt(t.palette[e].main,t.palette.action.hoverOpacity)}}})),...Object.entries(t.palette).filter(vr()).map(([e])=>({props:{color:e},style:{[`&.${Vc.checked}, &.${Vc.indeterminate}`]:{color:(t.vars||t).palette[e].main},[`&.${Vc.disabled}`]:{color:(t.vars||t).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),NS=I.jsx(MS,{}),KS=I.jsx(RS,{}),GS=I.jsx(OS,{}),gl=O.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiCheckbox"}),{checkedIcon:A=NS,color:a="primary",icon:i=KS,indeterminate:o=!1,indeterminateIcon:s=GS,inputProps:l,size:u="medium",disableRipple:c=!1,className:d,...h}=n,f=o?s:i,p=o?s:A,g={...n,disableRipple:c,color:a,indeterminate:o,size:u},m=kS(g);return I.jsx(PS,{type:"checkbox",inputProps:{"data-indeterminate":o,...l},icon:O.cloneElement(f,{fontSize:f.props.fontSize??u}),checkedIcon:O.cloneElement(p,{fontSize:p.props.fontSize??u}),ownerState:g,ref:r,className:xe(m.root,d),...h,classes:m})});function Xp(t){return t.substring(2).toLowerCase()}function VS(t,e){return e.documentElement.clientWidth(setTimeout(()=>{s.current=!0},0),()=>{s.current=!1}),[]);const u=Qt(jA(e),o),c=Mr(f=>{const p=l.current;l.current=!1;const g=Ft(o.current);if(!s.current||!o.current||"clientX"in f&&VS(f,g))return;if(i.current){i.current=!1;return}let m;f.composedPath?m=f.composedPath().includes(o.current):m=!g.documentElement.contains(f.target)||o.current.contains(f.target),!m&&(r||!p)&&A(f)}),d=f=>p=>{l.current=!0;const g=e.props[f];g&&g(p)},h={ref:u};return a!==!1&&(h[a]=d(a)),O.useEffect(()=>{if(a!==!1){const f=Xp(a),p=Ft(o.current),g=()=>{i.current=!0};return p.addEventListener(f,c),p.addEventListener("touchmove",g),()=>{p.removeEventListener(f,c),p.removeEventListener("touchmove",g)}}},[c,a]),n!==!1&&(h[n]=d(n)),O.useEffect(()=>{if(n!==!1){const f=Xp(n),p=Ft(o.current);return p.addEventListener(f,c),()=>{p.removeEventListener(f,c)}}},[c,n]),I.jsx(O.Fragment,{children:O.cloneElement(e,h)})}function $S(t){const e=Ft(t);return e.body===t?PA(t).innerWidth>e.documentElement.clientWidth:t.scrollHeight>t.clientHeight}function ao(t,e){e?t.setAttribute("aria-hidden","true"):t.removeAttribute("aria-hidden")}function Yp(t){return parseInt(PA(t).getComputedStyle(t).paddingRight,10)||0}function zS(t){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(t.tagName),n=t.tagName==="INPUT"&&t.getAttribute("type")==="hidden";return r||n}function jp(t,e,r,n,A){const a=[e,r,...n];[].forEach.call(t.children,i=>{const o=!a.includes(i),s=!zS(i);o&&s&&ao(i,A)})}function $c(t,e){let r=-1;return t.some((n,A)=>e(n)?(r=A,!0):!1),r}function WS(t,e){const r=[],n=t.container;if(!e.disableScrollLock){if($S(n)){const i=Iy(Ft(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${Yp(n)+i}px`;const o=Ft(n).querySelectorAll(".mui-fixed");[].forEach.call(o,s=>{r.push({value:s.style.paddingRight,property:"padding-right",el:s}),s.style.paddingRight=`${Yp(s)+i}px`})}let a;if(n.parentNode instanceof DocumentFragment)a=Ft(n).body;else{const i=n.parentElement,o=PA(n);a=(i==null?void 0:i.nodeName)==="HTML"&&o.getComputedStyle(i).overflowY==="scroll"?i:n}r.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{r.forEach(({value:a,el:i,property:o})=>{a?i.style.setProperty(o,a):i.style.removeProperty(o)})}}function _S(t){const e=[];return[].forEach.call(t.children,r=>{r.getAttribute("aria-hidden")==="true"&&e.push(r)}),e}class XS{constructor(){this.modals=[],this.containers=[]}add(e,r){let n=this.modals.indexOf(e);if(n!==-1)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&ao(e.modalRef,!1);const A=_S(r);jp(r,e.mount,e.modalRef,A,!0);const a=$c(this.containers,i=>i.container===r);return a!==-1?(this.containers[a].modals.push(e),n):(this.containers.push({modals:[e],container:r,restore:null,hiddenSiblings:A}),n)}mount(e,r){const n=$c(this.containers,a=>a.modals.includes(e)),A=this.containers[n];A.restore||(A.restore=WS(A,r))}remove(e,r=!0){const n=this.modals.indexOf(e);if(n===-1)return n;const A=$c(this.containers,i=>i.modals.includes(e)),a=this.containers[A];if(a.modals.splice(a.modals.indexOf(e),1),this.modals.splice(n,1),a.modals.length===0)a.restore&&a.restore(),e.modalRef&&ao(e.modalRef,r),jp(a.container,e.mount,e.modalRef,a.hiddenSiblings,!1),this.containers.splice(A,1);else{const i=a.modals[a.modals.length-1];i.modalRef&&ao(i.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}const YS=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function jS(t){const e=parseInt(t.getAttribute("tabindex")||"",10);return Number.isNaN(e)?t.contentEditable==="true"||(t.nodeName==="AUDIO"||t.nodeName==="VIDEO"||t.nodeName==="DETAILS")&&t.getAttribute("tabindex")===null?0:t.tabIndex:e}function qS(t){if(t.tagName!=="INPUT"||t.type!=="radio"||!t.name)return!1;const e=n=>t.ownerDocument.querySelector(`input[type="radio"]${n}`);let r=e(`[name="${t.name}"]:checked`);return r||(r=e(`[name="${t.name}"]`)),r!==t}function JS(t){return!(t.disabled||t.tagName==="INPUT"&&t.type==="hidden"||qS(t))}function ZS(t){const e=[],r=[];return Array.from(t.querySelectorAll(YS)).forEach((n,A)=>{const a=jS(n);a===-1||!JS(n)||(a===0?e.push(n):r.push({documentOrder:A,tabIndex:a,node:n}))}),r.sort((n,A)=>n.tabIndex===A.tabIndex?n.documentOrder-A.documentOrder:n.tabIndex-A.tabIndex).map(n=>n.node).concat(e)}function eU(){return!0}function tU(t){const{children:e,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:A=!1,getTabbable:a=ZS,isEnabled:i=eU,open:o}=t,s=O.useRef(!1),l=O.useRef(null),u=O.useRef(null),c=O.useRef(null),d=O.useRef(null),h=O.useRef(!1),f=O.useRef(null),p=Qt(jA(e),f),g=O.useRef(null);O.useEffect(()=>{!o||!f.current||(h.current=!r)},[r,o]),O.useEffect(()=>{if(!o||!f.current)return;const v=Ft(f.current);return f.current.contains(v.activeElement)||(f.current.hasAttribute("tabIndex")||f.current.setAttribute("tabIndex","-1"),h.current&&f.current.focus()),()=>{A||(c.current&&c.current.focus&&(s.current=!0,c.current.focus()),c.current=null)}},[o]),O.useEffect(()=>{if(!o||!f.current)return;const v=Ft(f.current),B=C=>{g.current=C,!(n||!i()||C.key!=="Tab")&&v.activeElement===f.current&&C.shiftKey&&(s.current=!0,u.current&&u.current.focus())},b=()=>{var y,x;const C=f.current;if(C===null)return;if(!v.hasFocus()||!i()||s.current){s.current=!1;return}if(C.contains(v.activeElement)||n&&v.activeElement!==l.current&&v.activeElement!==u.current)return;if(v.activeElement!==d.current)d.current=null;else if(d.current!==null)return;if(!h.current)return;let F=[];if((v.activeElement===l.current||v.activeElement===u.current)&&(F=a(f.current)),F.length>0){const Q=!!((y=g.current)!=null&&y.shiftKey&&((x=g.current)==null?void 0:x.key)==="Tab"),S=F[0],T=F[F.length-1];typeof S!="string"&&typeof T!="string"&&(Q?T.focus():S.focus())}else C.focus()};v.addEventListener("focusin",b),v.addEventListener("keydown",B,!0);const E=setInterval(()=>{v.activeElement&&v.activeElement.tagName==="BODY"&&b()},50);return()=>{clearInterval(E),v.removeEventListener("focusin",b),v.removeEventListener("keydown",B,!0)}},[r,n,A,i,o,a]);const m=v=>{c.current===null&&(c.current=v.relatedTarget),h.current=!0,d.current=v.target;const B=e.props.onFocus;B&&B(v)},w=v=>{c.current===null&&(c.current=v.relatedTarget),h.current=!0};return I.jsxs(O.Fragment,{children:[I.jsx("div",{tabIndex:o?0:-1,onFocus:w,ref:l,"data-testid":"sentinelStart"}),O.cloneElement(e,{ref:p,onFocus:m}),I.jsx("div",{tabIndex:o?0:-1,onFocus:w,ref:u,"data-testid":"sentinelEnd"})]})}function rU(t){return typeof t=="function"?t():t}function nU(t){return t?t.props.hasOwnProperty("in"):!1}const AU=new XS;function aU(t){const{container:e,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:A=AU,closeAfterTransition:a=!1,onTransitionEnter:i,onTransitionExited:o,children:s,onClose:l,open:u,rootRef:c}=t,d=O.useRef({}),h=O.useRef(null),f=O.useRef(null),p=Qt(f,c),[g,m]=O.useState(!u),w=nU(s);let v=!0;(t["aria-hidden"]==="false"||t["aria-hidden"]===!1)&&(v=!1);const B=()=>Ft(h.current),b=()=>(d.current.modalRef=f.current,d.current.mount=h.current,d.current),E=()=>{A.mount(b(),{disableScrollLock:n}),f.current&&(f.current.scrollTop=0)},C=Mr(()=>{const R=rU(e)||B().body;A.add(b(),R),f.current&&E()}),F=O.useCallback(()=>A.isTopModal(b()),[A]),y=Mr(R=>{h.current=R,R&&(u&&F()?E():f.current&&ao(f.current,v))}),x=O.useCallback(()=>{A.remove(b(),v)},[v,A]);O.useEffect(()=>()=>{x()},[x]),O.useEffect(()=>{u?C():(!w||!a)&&x()},[u,x,w,a,C]);const Q=R=>M=>{var H;(H=R.onKeyDown)==null||H.call(R,M),!(M.key!=="Escape"||M.which===229||!F())&&(r||(M.stopPropagation(),l&&l(M,"escapeKeyDown")))},S=R=>M=>{var H;(H=R.onClick)==null||H.call(R,M),M.target===M.currentTarget&&l&&l(M,"backdropClick")};return{getRootProps:(R={})=>{const M=ro(t);delete M.onTransitionEnter,delete M.onTransitionExited;const H={...M,...R};return{role:"presentation",...H,onKeyDown:Q(H),ref:p}},getBackdropProps:(R={})=>{const M=R;return{"aria-hidden":!0,...M,onClick:S(M),open:u}},getTransitionProps:()=>{const R=()=>{m(!1),i&&i()},M=()=>{m(!0),o&&o(),a&&x()};return{onEnter:gp(R,s==null?void 0:s.props.onEnter),onExited:gp(M,s==null?void 0:s.props.onExited)}},rootRef:p,portalRef:y,isTopModal:F,exited:g,hasTransition:w}}function iU(t){return Pe("MuiModal",t)}Me("MuiModal",["root","hidden","backdrop"]);const oU=t=>{const{open:e,exited:r,classes:n}=t;return Ke({root:["root",!e&&r&&"hidden"],backdrop:["backdrop"]},iU,n)},sU=me("div",{name:"MuiModal",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,!r.open&&r.exited&&e.hidden]}})(ke(({theme:t})=>({position:"fixed",zIndex:(t.vars||t).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:e})=>!e.open&&e.exited,style:{visibility:"hidden"}}]}))),lU=me(iS,{name:"MuiModal",slot:"Backdrop",overridesResolver:(t,e)=>e.backdrop})({zIndex:-1}),A0=O.forwardRef(function(e,r){const n=Ve({name:"MuiModal",props:e}),{BackdropComponent:A=lU,BackdropProps:a,classes:i,className:o,closeAfterTransition:s=!1,children:l,container:u,component:c,components:d={},componentsProps:h={},disableAutoFocus:f=!1,disableEnforceFocus:p=!1,disableEscapeKeyDown:g=!1,disablePortal:m=!1,disableRestoreFocus:w=!1,disableScrollLock:v=!1,hideBackdrop:B=!1,keepMounted:b=!1,onBackdropClick:E,onClose:C,onTransitionEnter:F,onTransitionExited:y,open:x,slotProps:Q={},slots:S={},theme:T,...U}=n,L={...n,closeAfterTransition:s,disableAutoFocus:f,disableEnforceFocus:p,disableEscapeKeyDown:g,disablePortal:m,disableRestoreFocus:w,disableScrollLock:v,hideBackdrop:B,keepMounted:b},{getRootProps:R,getBackdropProps:M,getTransitionProps:H,portalRef:k,isTopModal:N,exited:P,hasTransition:K}=aU({...L,rootRef:r}),W={...L,exited:P},X=oU(W),Z={};if(l.props.tabIndex===void 0&&(Z.tabIndex="-1"),K){const{onEnter:se,onExited:te}=H();Z.onEnter=se,Z.onExited=te}const Ae={...U,slots:{root:d.Root,backdrop:d.Backdrop,...S},slotProps:{...h,...Q}},[ie,re]=Rr("root",{elementType:sU,externalForwardedProps:Ae,getSlotProps:R,additionalProps:{ref:r,as:c},ownerState:W,className:xe(o,X==null?void 0:X.root,!W.open&&W.exited&&(X==null?void 0:X.hidden))}),[z,q]=Rr("backdrop",{elementType:A,externalForwardedProps:Ae,additionalProps:a,getSlotProps:se=>M({...se,onClick:te=>{E&&E(te),se!=null&&se.onClick&&se.onClick(te)}}),className:xe(a==null?void 0:a.className,X==null?void 0:X.backdrop),ownerState:W}),ee=Qt(a==null?void 0:a.ref,q.ref);return!b&&!x&&(!K||P)?null:I.jsx(t0,{ref:k,container:u,disablePortal:m,children:I.jsxs(ie,{...re,children:[!B&&A?I.jsx(z,{...q,ref:ee}):null,I.jsx(tU,{disableEnforceFocus:p,disableAutoFocus:f,disableRestoreFocus:w,isEnabled:N,open:x,children:O.cloneElement(l,Z)})]})})}),qp=Me("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),uU=t=>{const{classes:e,disableUnderline:r,startAdornment:n,endAdornment:A,size:a,hiddenLabel:i,multiline:o}=t,s={root:["root",!r&&"underline",n&&"adornedStart",A&&"adornedEnd",a==="small"&&`size${Fe(a)}`,i&&"hiddenLabel",o&&"multiline"],input:["input"]},l=Ke(s,JQ,e);return{...e,...l}},cU=me(Zu,{shouldForwardProp:t=>yr(t)||t==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[...qu(t,e),!r.disableUnderline&&e.underline]}})(ke(({theme:t})=>{const e=t.palette.mode==="light",r=e?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",n=e?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",A=e?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=e?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:t.vars?t.vars.palette.FilledInput.bg:n,borderTopLeftRadius:(t.vars||t).shape.borderRadius,borderTopRightRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),"&:hover":{backgroundColor:t.vars?t.vars.palette.FilledInput.hoverBg:A,"@media (hover: none)":{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:n}},[`&.${mA.focused}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:n},[`&.${mA.disabled}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.disabledBg:a},variants:[{props:({ownerState:i})=>!i.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${mA.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${mA.error}`]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:`1px solid ${t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / ${t.vars.opacity.inputUnderline})`:r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${mA.disabled}, .${mA.error}):before`]:{borderBottom:`1px solid ${(t.vars||t).palette.text.primary}`},[`&.${mA.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(t.palette).filter(vr()).map(([i])=>{var o;return{props:{disableUnderline:!1,color:i},style:{"&::after":{borderBottom:`2px solid ${(o=(t.vars||t).palette[i])==null?void 0:o.main}`}}}}),{props:({ownerState:i})=>i.startAdornment,style:{paddingLeft:12}},{props:({ownerState:i})=>i.endAdornment,style:{paddingRight:12}},{props:({ownerState:i})=>i.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:i,size:o})=>i.multiline&&o==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:i})=>i.multiline&&i.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:i})=>i.multiline&&i.hiddenLabel&&i.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),fU=me(ec,{name:"MuiFilledInput",slot:"Input",overridesResolver:Ju})(ke(({theme:t})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:t.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:t.palette.mode==="light"?null:"#fff",caretColor:t.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...t.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:e})=>e.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}},{props:({ownerState:e})=>e.hiddenLabel&&e.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:e})=>e.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),kl=O.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiFilledInput"}),{disableUnderline:A=!1,components:a={},componentsProps:i,fullWidth:o=!1,hiddenLabel:s,inputComponent:l="input",multiline:u=!1,slotProps:c,slots:d={},type:h="text",...f}=n,p={...n,disableUnderline:A,fullWidth:o,inputComponent:l,multiline:u,type:h},g=uU(n),m={root:{ownerState:p},input:{ownerState:p}},w=c??i?$t(m,c??i):m,v=d.root??a.Root??cU,B=d.input??a.Input??fU;return I.jsx(Jo,{slots:{root:v,input:B},componentsProps:w,fullWidth:o,inputComponent:l,multiline:u,ref:r,type:h,...f,classes:g})});kl&&(kl.muiName="Input");function dU(t){return Pe("MuiFormControl",t)}Me("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const hU=t=>{const{classes:e,margin:r,fullWidth:n}=t,A={root:["root",r!=="none"&&`margin${Fe(r)}`,n&&"fullWidth"]};return Ke(A,dU,e)},pU=me("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:t},e)=>({...e.root,...e[`margin${Fe(t.margin)}`],...t.fullWidth&&e.fullWidth})})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),gU=O.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiFormControl"}),{children:A,className:a,color:i="primary",component:o="div",disabled:s=!1,error:l=!1,focused:u,fullWidth:c=!1,hiddenLabel:d=!1,margin:h="none",required:f=!1,size:p="medium",variant:g="outlined",...m}=n,w={...n,color:i,component:o,disabled:s,error:l,fullWidth:c,hiddenLabel:d,margin:h,required:f,size:p,variant:g},v=hU(w),[B,b]=O.useState(()=>{let T=!1;return A&&O.Children.forEach(A,U=>{if(!hl(U,["Input","Select"]))return;const L=hl(U,["Select"])?U.props.input:U;L&&_Q(L.props)&&(T=!0)}),T}),[E,C]=O.useState(()=>{let T=!1;return A&&O.Children.forEach(A,U=>{hl(U,["Input","Select"])&&(Hl(U.props,!0)||Hl(U.props.inputProps,!0))&&(T=!0)}),T}),[F,y]=O.useState(!1);s&&F&&y(!1);const x=u!==void 0&&!s?u:F;let Q;O.useRef(!1);const S=O.useMemo(()=>({adornedStart:B,setAdornedStart:b,color:i,disabled:s,error:l,filled:E,focused:x,fullWidth:c,hiddenLabel:d,size:p,onBlur:()=>{y(!1)},onEmpty:()=>{C(!1)},onFilled:()=>{C(!0)},onFocus:()=>{y(!0)},registerEffect:Q,required:f,variant:g}),[B,i,s,l,E,x,c,d,Q,f,p,g]);return I.jsx(ju.Provider,{value:S,children:I.jsx(pU,{as:o,ownerState:w,className:xe(v.root,a),ref:r,...m,children:A})})});function vU(t){return Pe("MuiFormControlLabel",t)}const Gi=Me("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),mU=t=>{const{classes:e,disabled:r,labelPlacement:n,error:A,required:a}=t,i={root:["root",r&&"disabled",`labelPlacement${Fe(n)}`,A&&"error",a&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",A&&"error"]};return Ke(i,vU,e)},yU=me("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${Gi.label}`]:e.label},e.root,e[`labelPlacement${Fe(r.labelPlacement)}`]]}})(ke(({theme:t})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Gi.disabled}`]:{cursor:"default"},[`& .${Gi.label}`]:{[`&.${Gi.disabled}`]:{color:(t.vars||t).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:e})=>e==="start"||e==="top"||e==="bottom",style:{marginLeft:16}}]}))),BU=me("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(t,e)=>e.asterisk})(ke(({theme:t})=>({[`&.${Gi.error}`]:{color:(t.vars||t).palette.error.main}}))),wU=O.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiFormControlLabel"}),{checked:A,className:a,componentsProps:i={},control:o,disabled:s,disableTypography:l,inputRef:u,label:c,labelPlacement:d="end",name:h,onChange:f,required:p,slots:g={},slotProps:m={},value:w,...v}=n,B=Vn(),b=s??o.props.disabled??(B==null?void 0:B.disabled),E=p??o.props.required,C={disabled:b,required:E};["checked","name","onChange","value","inputRef"].forEach(L=>{typeof o.props[L]>"u"&&typeof n[L]<"u"&&(C[L]=n[L])});const F=qA({props:n,muiFormControl:B,states:["error"]}),y={...n,disabled:b,labelPlacement:d,required:E,error:F.error},x=mU(y),Q={slots:g,slotProps:{...i,...m}},[S,T]=Rr("typography",{elementType:Bt,externalForwardedProps:Q,ownerState:y});let U=c;return U!=null&&U.type!==Bt&&!l&&(U=I.jsx(S,{component:"span",...T,className:xe(x.label,T==null?void 0:T.className),children:U})),I.jsxs(yU,{className:xe(x.root,a),ownerState:y,ref:r,...v,children:[O.cloneElement(o,C),E?I.jsxs("div",{children:[U,I.jsxs(BU,{ownerState:y,"aria-hidden":!0,className:x.asterisk,children:[" ","*"]})]}):U]})});function CU(t){return Pe("MuiFormHelperText",t)}const Jp=Me("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var Zp;const bU=t=>{const{classes:e,contained:r,size:n,disabled:A,error:a,filled:i,focused:o,required:s}=t,l={root:["root",A&&"disabled",a&&"error",n&&`size${Fe(n)}`,r&&"contained",o&&"focused",i&&"filled",s&&"required"]};return Ke(l,CU,e)},EU=me("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.size&&e[`size${Fe(r.size)}`],r.contained&&e.contained,r.filled&&e.filled]}})(ke(({theme:t})=>({color:(t.vars||t).palette.text.secondary,...t.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Jp.disabled}`]:{color:(t.vars||t).palette.text.disabled},[`&.${Jp.error}`]:{color:(t.vars||t).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:e})=>e.contained,style:{marginLeft:14,marginRight:14}}]}))),xU=O.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiFormHelperText"}),{children:A,className:a,component:i="p",disabled:o,error:s,filled:l,focused:u,margin:c,required:d,variant:h,...f}=n,p=Vn(),g=qA({props:n,muiFormControl:p,states:["variant","size","disabled","error","filled","focused","required"]}),m={...n,component:i,contained:g.variant==="filled"||g.variant==="outlined",variant:g.variant,size:g.size,disabled:g.disabled,error:g.error,filled:g.filled,focused:g.focused,required:g.required};delete m.ownerState;const w=bU(m);return I.jsx(EU,{as:i,className:xe(w.root,a),ref:r,...f,ownerState:m,children:A===" "?Zp||(Zp=I.jsx("span",{className:"notranslate",children:"​"})):A})});function FU(t){return Pe("MuiFormLabel",t)}const io=Me("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),QU=t=>{const{classes:e,color:r,focused:n,disabled:A,error:a,filled:i,required:o}=t,s={root:["root",`color${Fe(r)}`,A&&"disabled",a&&"error",i&&"filled",n&&"focused",o&&"required"],asterisk:["asterisk",a&&"error"]};return Ke(s,FU,e)},SU=me("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:t},e)=>({...e.root,...t.color==="secondary"&&e.colorSecondary,...t.filled&&e.filled})})(ke(({theme:t})=>({color:(t.vars||t).palette.text.secondary,...t.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(t.palette).filter(vr()).map(([e])=>({props:{color:e},style:{[`&.${io.focused}`]:{color:(t.vars||t).palette[e].main}}})),{props:{},style:{[`&.${io.disabled}`]:{color:(t.vars||t).palette.text.disabled},[`&.${io.error}`]:{color:(t.vars||t).palette.error.main}}}]}))),UU=me("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(t,e)=>e.asterisk})(ke(({theme:t})=>({[`&.${io.error}`]:{color:(t.vars||t).palette.error.main}}))),TU=O.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiFormLabel"}),{children:A,className:a,color:i,component:o="label",disabled:s,error:l,filled:u,focused:c,required:d,...h}=n,f=Vn(),p=qA({props:n,muiFormControl:f,states:["color","required","focused","disabled","error","filled"]}),g={...n,color:p.color||"primary",component:o,disabled:p.disabled,error:p.error,filled:p.filled,focused:p.focused,required:p.required},m=QU(g);return I.jsxs(SU,{as:o,ownerState:g,className:xe(m.root,a),ref:r,...h,children:[A,p.required&&I.jsxs(UU,{ownerState:g,"aria-hidden":!0,className:m.asterisk,children:[" ","*"]})]})}),eg=O.createContext();function IU(t){return Pe("MuiGrid",t)}const LU=[0,1,2,3,4,5,6,7,8,9,10],DU=["column-reverse","column","row-reverse","row"],RU=["nowrap","wrap-reverse","wrap"],xi=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],Fo=Me("MuiGrid",["root","container","item","zeroMinWidth",...LU.map(t=>`spacing-xs-${t}`),...DU.map(t=>`direction-xs-${t}`),...RU.map(t=>`wrap-xs-${t}`),...xi.map(t=>`grid-xs-${t}`),...xi.map(t=>`grid-sm-${t}`),...xi.map(t=>`grid-md-${t}`),...xi.map(t=>`grid-lg-${t}`),...xi.map(t=>`grid-xl-${t}`)]);function MU({theme:t,ownerState:e}){let r;return t.breakpoints.keys.reduce((n,A)=>{let a={};if(e[A]&&(r=e[A]),!r)return n;if(r===!0)a={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(r==="auto")a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const i=RA({values:e.columns,breakpoints:t.breakpoints.values}),o=typeof i=="object"?i[A]:i;if(o==null)return n;const s=`${Math.round(r/o*1e8)/1e6}%`;let l={};if(e.container&&e.item&&e.columnSpacing!==0){const u=t.spacing(e.columnSpacing);if(u!=="0px"){const c=`calc(${s} + ${u})`;l={flexBasis:c,maxWidth:c}}}a={flexBasis:s,flexGrow:0,maxWidth:s,...l}}return t.breakpoints.values[A]===0?Object.assign(n,a):n[t.breakpoints.up(A)]=a,n},{})}function OU({theme:t,ownerState:e}){const r=RA({values:e.direction,breakpoints:t.breakpoints.values});return gr({theme:t},r,n=>{const A={flexDirection:n};return n.startsWith("column")&&(A[`& > .${Fo.item}`]={maxWidth:"none"}),A})}function a0({breakpoints:t,values:e}){let r="";Object.keys(e).forEach(A=>{r===""&&e[A]!==0&&(r=A)});const n=Object.keys(t).sort((A,a)=>t[A]-t[a]);return n.slice(0,n.indexOf(r))}function HU({theme:t,ownerState:e}){const{container:r,rowSpacing:n}=e;let A={};if(r&&n!==0){const a=RA({values:n,breakpoints:t.breakpoints.values});let i;typeof a=="object"&&(i=a0({breakpoints:t.breakpoints.values,values:a})),A=gr({theme:t},a,(o,s)=>{const l=t.spacing(o);return l!=="0px"?{marginTop:t.spacing(-o),[`& > .${Fo.item}`]:{paddingTop:l}}:i!=null&&i.includes(s)?{}:{marginTop:0,[`& > .${Fo.item}`]:{paddingTop:0}}})}return A}function kU({theme:t,ownerState:e}){const{container:r,columnSpacing:n}=e;let A={};if(r&&n!==0){const a=RA({values:n,breakpoints:t.breakpoints.values});let i;typeof a=="object"&&(i=a0({breakpoints:t.breakpoints.values,values:a})),A=gr({theme:t},a,(o,s)=>{const l=t.spacing(o);if(l!=="0px"){const u=t.spacing(-o);return{width:`calc(100% + ${l})`,marginLeft:u,[`& > .${Fo.item}`]:{paddingLeft:l}}}return i!=null&&i.includes(s)?{}:{width:"100%",marginLeft:0,[`& > .${Fo.item}`]:{paddingLeft:0}}})}return A}function PU(t,e,r={}){if(!t||t<=0)return[];if(typeof t=="string"&&!Number.isNaN(Number(t))||typeof t=="number")return[r[`spacing-xs-${String(t)}`]];const n=[];return e.forEach(A=>{const a=t[A];Number(a)>0&&n.push(r[`spacing-${A}-${String(a)}`])}),n}const NU=me("div",{name:"MuiGrid",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t,{container:n,direction:A,item:a,spacing:i,wrap:o,zeroMinWidth:s,breakpoints:l}=r;let u=[];n&&(u=PU(i,l,e));const c=[];return l.forEach(d=>{const h=r[d];h&&c.push(e[`grid-${d}-${String(h)}`])}),[e.root,n&&e.container,a&&e.item,s&&e.zeroMinWidth,...u,A!=="row"&&e[`direction-xs-${String(A)}`],o!=="wrap"&&e[`wrap-xs-${String(o)}`],...c]}})(({ownerState:t})=>({boxSizing:"border-box",...t.container&&{display:"flex",flexWrap:"wrap",width:"100%"},...t.item&&{margin:0},...t.zeroMinWidth&&{minWidth:0},...t.wrap!=="wrap"&&{flexWrap:t.wrap}}),OU,HU,kU,MU);function KU(t,e){if(!t||t<=0)return[];if(typeof t=="string"&&!Number.isNaN(Number(t))||typeof t=="number")return[`spacing-xs-${String(t)}`];const r=[];return e.forEach(n=>{const A=t[n];if(Number(A)>0){const a=`spacing-${n}-${String(A)}`;r.push(a)}}),r}const GU=t=>{const{classes:e,container:r,direction:n,item:A,spacing:a,wrap:i,zeroMinWidth:o,breakpoints:s}=t;let l=[];r&&(l=KU(a,s));const u=[];s.forEach(d=>{const h=t[d];h&&u.push(`grid-${d}-${String(h)}`)});const c={root:["root",r&&"container",A&&"item",o&&"zeroMinWidth",...l,n!=="row"&&`direction-xs-${String(n)}`,i!=="wrap"&&`wrap-xs-${String(i)}`,...u]};return Ke(c,IU,e)},zc=O.forwardRef(function(e,r){const n=Wu({props:e,name:"MuiGrid"}),{breakpoints:A}=Yo(),a=Wo(n),{className:i,columns:o,columnSpacing:s,component:l="div",container:u=!1,direction:c="row",item:d=!1,rowSpacing:h,spacing:f=0,wrap:p="wrap",zeroMinWidth:g=!1,...m}=a,w=h||f,v=s||f,B=O.useContext(eg),b=u?o||12:B,E={},C={...m};A.keys.forEach(x=>{m[x]!=null&&(E[x]=m[x],delete C[x])});const F={...a,columns:b,container:u,direction:c,item:d,rowSpacing:w,columnSpacing:v,wrap:p,zeroMinWidth:g,spacing:f,...E,breakpoints:A.keys},y=GU(F);return I.jsx(eg.Provider,{value:b,children:I.jsx(NU,{ownerState:F,className:xe(y.root,i),as:l,ref:r,...C})})}),ws=tx({createStyledComponent:me("div",{name:"MuiGrid2",slot:"Root",overridesResolver:(t,e)=>e.root}),componentName:"MuiGrid2",useThemeProps:t=>Wu({props:t,name:"MuiGrid2"})});function qf(t){return`scale(${t}, ${t**2})`}const VU={entering:{opacity:1,transform:qf(1)},entered:{opacity:1,transform:"none"}},Wc=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),KA=O.forwardRef(function(e,r){const{addEndListener:n,appear:A=!0,children:a,easing:i,in:o,onEnter:s,onEntered:l,onEntering:u,onExit:c,onExited:d,onExiting:h,style:f,timeout:p="auto",TransitionComponent:g=En,...m}=e,w=xa(),v=O.useRef(),B=Yo(),b=O.useRef(null),E=Qt(b,jA(a),r),C=L=>R=>{if(L){const M=b.current;R===void 0?L(M):L(M,R)}},F=C(u),y=C((L,R)=>{Vy(L);const{duration:M,delay:H,easing:k}=Rl({style:f,timeout:p,easing:i},{mode:"enter"});let N;p==="auto"?(N=B.transitions.getAutoHeightDuration(L.clientHeight),v.current=N):N=M,L.style.transition=[B.transitions.create("opacity",{duration:N,delay:H}),B.transitions.create("transform",{duration:Wc?N:N*.666,delay:H,easing:k})].join(","),s&&s(L,R)}),x=C(l),Q=C(h),S=C(L=>{const{duration:R,delay:M,easing:H}=Rl({style:f,timeout:p,easing:i},{mode:"exit"});let k;p==="auto"?(k=B.transitions.getAutoHeightDuration(L.clientHeight),v.current=k):k=R,L.style.transition=[B.transitions.create("opacity",{duration:k,delay:M}),B.transitions.create("transform",{duration:Wc?k:k*.666,delay:Wc?M:M||k*.333,easing:H})].join(","),L.style.opacity=0,L.style.transform=qf(.75),c&&c(L)}),T=C(d),U=L=>{p==="auto"&&w.start(v.current||0,L),n&&n(b.current,L)};return I.jsx(g,{appear:A,in:o,nodeRef:b,onEnter:y,onEntered:x,onEntering:F,onExit:S,onExited:T,onExiting:Q,addEndListener:U,timeout:p==="auto"?null:p,...m,children:(L,R)=>O.cloneElement(a,{style:{opacity:0,transform:qf(.75),visibility:L==="exited"&&!o?"hidden":void 0,...VU[L],...f,...a.props.style},ref:E,...R})})});KA&&(KA.muiSupportAuto=!0);const $U=t=>{const{classes:e,disableUnderline:r}=t,A=Ke({root:["root",!r&&"underline"],input:["input"]},jQ,e);return{...e,...A}},zU=me(Zu,{shouldForwardProp:t=>yr(t)||t==="classes",name:"MuiInput",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[...qu(t,e),!r.disableUnderline&&e.underline]}})(ke(({theme:t})=>{let r=t.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return t.vars&&(r=`rgba(${t.vars.palette.common.onBackgroundChannel} / ${t.vars.opacity.inputUnderline})`),{position:"relative",variants:[{props:({ownerState:n})=>n.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:n})=>!n.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Ei.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ei.error}`]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Ei.disabled}, .${Ei.error}):before`]:{borderBottom:`2px solid ${(t.vars||t).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Ei.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(t.palette).filter(vr()).map(([n])=>({props:{color:n,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(t.vars||t).palette[n].main}`}}}))]}})),WU=me(ec,{name:"MuiInput",slot:"Input",overridesResolver:Ju})({}),Pl=O.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiInput"}),{disableUnderline:A=!1,components:a={},componentsProps:i,fullWidth:o=!1,inputComponent:s="input",multiline:l=!1,slotProps:u,slots:c={},type:d="text",...h}=n,f=$U(n),g={root:{ownerState:{disableUnderline:A}}},m=u??i?$t(u??i,g):g,w=c.root??a.Root??zU,v=c.input??a.Input??WU;return I.jsx(Jo,{slots:{root:w,input:v},slotProps:m,fullWidth:o,inputComponent:s,multiline:l,ref:r,type:d,...h,classes:f})});Pl&&(Pl.muiName="Input");function _U(t){return Pe("MuiInputAdornment",t)}const tg=Me("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var rg;const XU=(t,e)=>{const{ownerState:r}=t;return[e.root,e[`position${Fe(r.position)}`],r.disablePointerEvents===!0&&e.disablePointerEvents,e[r.variant]]},YU=t=>{const{classes:e,disablePointerEvents:r,hiddenLabel:n,position:A,size:a,variant:i}=t,o={root:["root",r&&"disablePointerEvents",A&&`position${Fe(A)}`,i,n&&"hiddenLabel",a&&`size${Fe(a)}`]};return Ke(o,_U,e)},jU=me("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:XU})(ke(({theme:t})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(t.vars||t).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${tg.positionStart}&:not(.${tg.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),qU=O.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiInputAdornment"}),{children:A,className:a,component:i="div",disablePointerEvents:o=!1,disableTypography:s=!1,position:l,variant:u,...c}=n,d=Vn()||{};let h=u;u&&d.variant,d&&!h&&(h=d.variant);const f={...n,hiddenLabel:d.hiddenLabel,size:d.size,disablePointerEvents:o,position:l,variant:h},p=YU(f);return I.jsx(ju.Provider,{value:null,children:I.jsx(jU,{as:i,ownerState:f,className:xe(p.root,a),ref:r,...c,children:typeof A=="string"&&!s?I.jsx(Bt,{color:"textSecondary",children:A}):I.jsxs(O.Fragment,{children:[l==="start"?rg||(rg=I.jsx("span",{className:"notranslate",children:"​"})):null,A]})})})});function JU(t){return Pe("MuiInputLabel",t)}Me("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const ZU=t=>{const{classes:e,formControl:r,size:n,shrink:A,disableAnimation:a,variant:i,required:o}=t,s={root:["root",r&&"formControl",!a&&"animated",A&&"shrink",n&&n!=="normal"&&`size${Fe(n)}`,i],asterisk:[o&&"asterisk"]},l=Ke(s,JU,e);return{...e,...l}},eT=me(TU,{shouldForwardProp:t=>yr(t)||t==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${io.asterisk}`]:e.asterisk},e.root,r.formControl&&e.formControl,r.size==="small"&&e.sizeSmall,r.shrink&&e.shrink,!r.disableAnimation&&e.animated,r.focused&&e.focused,e[r.variant]]}})(ke(({theme:t})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:e})=>e.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:e})=>e.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:e})=>!e.disableAnimation,style:{transition:t.transitions.create(["color","transform","max-width"],{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:e,ownerState:r})=>e==="filled"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:e,ownerState:r,size:n})=>e==="filled"&&r.shrink&&n==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:e,ownerState:r})=>e==="outlined"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),tT=O.forwardRef(function(e,r){const n=Ve({name:"MuiInputLabel",props:e}),{disableAnimation:A=!1,margin:a,shrink:i,variant:o,className:s,...l}=n,u=Vn();let c=i;typeof c>"u"&&u&&(c=u.filled||u.focused||u.adornedStart);const d=qA({props:n,muiFormControl:u,states:["size","variant","required","focused"]}),h={...n,disableAnimation:A,formControl:u,shrink:c,size:d.size,variant:d.variant,required:d.required,focused:d.focused},f=ZU(h);return I.jsx(eT,{"data-shrink":c,ref:r,className:xe(f.root,s),...l,ownerState:h,classes:f})}),Jf=O.createContext({});function rT(t){return Pe("MuiList",t)}Me("MuiList",["root","padding","dense","subheader"]);const nT=t=>{const{classes:e,disablePadding:r,dense:n,subheader:A}=t;return Ke({root:["root",!r&&"padding",n&&"dense",A&&"subheader"]},rT,e)},AT=me("ul",{name:"MuiList",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,!r.disablePadding&&e.padding,r.dense&&e.dense,r.subheader&&e.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>t.subheader,style:{paddingTop:0}}]}),aT=O.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiList"}),{children:A,className:a,component:i="ul",dense:o=!1,disablePadding:s=!1,subheader:l,...u}=n,c=O.useMemo(()=>({dense:o}),[o]),d={...n,component:i,dense:o,disablePadding:s},h=nT(d);return I.jsx(Jf.Provider,{value:c,children:I.jsxs(AT,{as:i,className:xe(h.root,a),ref:r,ownerState:d,...u,children:[l,A]})})}),ng=Me("MuiListItemIcon",["root","alignItemsFlexStart"]),Ag=Me("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function _c(t,e,r){return t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:r?null:t.firstChild}function ag(t,e,r){return t===e?r?t.firstChild:t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:r?null:t.lastChild}function i0(t,e){if(e===void 0)return!0;let r=t.innerText;return r===void 0&&(r=t.textContent),r=r.trim().toLowerCase(),r.length===0?!1:e.repeating?r[0]===e.keys[0]:r.startsWith(e.keys.join(""))}function Fi(t,e,r,n,A,a){let i=!1,o=A(t,e,e?r:!1);for(;o;){if(o===t.firstChild){if(i)return!1;i=!0}const s=n?!1:o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||!i0(o,a)||s)o=A(t,o,r);else return o.focus(),!0}return!1}const mh=O.forwardRef(function(e,r){const{actions:n,autoFocus:A=!1,autoFocusItem:a=!1,children:i,className:o,disabledItemsFocusable:s=!1,disableListWrap:l=!1,onKeyDown:u,variant:c="selectedMenu",...d}=e,h=O.useRef(null),f=O.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});rn(()=>{A&&h.current.focus()},[A]),O.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(v,{direction:B})=>{const b=!h.current.style.width;if(v.clientHeight{const B=h.current,b=v.key;if(v.ctrlKey||v.metaKey||v.altKey){u&&u(v);return}const C=Ft(B).activeElement;if(b==="ArrowDown")v.preventDefault(),Fi(B,C,l,s,_c);else if(b==="ArrowUp")v.preventDefault(),Fi(B,C,l,s,ag);else if(b==="Home")v.preventDefault(),Fi(B,null,l,s,_c);else if(b==="End")v.preventDefault(),Fi(B,null,l,s,ag);else if(b.length===1){const F=f.current,y=b.toLowerCase(),x=performance.now();F.keys.length>0&&(x-F.lastTime>500?(F.keys=[],F.repeating=!0,F.previousKeyMatched=!0):F.repeating&&y!==F.keys[0]&&(F.repeating=!1)),F.lastTime=x,F.keys.push(y);const Q=C&&!F.repeating&&i0(C,F);F.previousKeyMatched&&(Q||Fi(B,C,!1,s,_c,F))?v.preventDefault():F.previousKeyMatched=!1}u&&u(v)},g=Qt(h,r);let m=-1;O.Children.forEach(i,(v,B)=>{if(!O.isValidElement(v)){m===B&&(m+=1,m>=i.length&&(m=-1));return}v.props.disabled||(c==="selectedMenu"&&v.props.selected||m===-1)&&(m=B),m===B&&(v.props.disabled||v.props.muiSkipListHighlight||v.type.muiSkipListHighlight)&&(m+=1,m>=i.length&&(m=-1))});const w=O.Children.map(i,(v,B)=>{if(B===m){const b={};return a&&(b.autoFocus=!0),v.props.tabIndex===void 0&&c==="selectedMenu"&&(b.tabIndex=0),O.cloneElement(v,b)}return v});return I.jsx(aT,{role:"menu",ref:g,className:o,onKeyDown:p,tabIndex:A?0:-1,...d,children:w})});function iT(t){return Pe("MuiPopover",t)}Me("MuiPopover",["root","paper"]);function ig(t,e){let r=0;return typeof e=="number"?r=e:e==="center"?r=t.height/2:e==="bottom"&&(r=t.height),r}function og(t,e){let r=0;return typeof e=="number"?r=e:e==="center"?r=t.width/2:e==="right"&&(r=t.width),r}function sg(t){return[t.horizontal,t.vertical].map(e=>typeof e=="number"?`${e}px`:e).join(" ")}function Xc(t){return typeof t=="function"?t():t}const oT=t=>{const{classes:e}=t;return Ke({root:["root"],paper:["paper"]},iT,e)},sT=me(A0,{name:"MuiPopover",slot:"Root",overridesResolver:(t,e)=>e.root})({}),o0=me(ai,{name:"MuiPopover",slot:"Paper",overridesResolver:(t,e)=>e.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),lT=O.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiPopover"}),{action:A,anchorEl:a,anchorOrigin:i={vertical:"top",horizontal:"left"},anchorPosition:o,anchorReference:s="anchorEl",children:l,className:u,container:c,elevation:d=8,marginThreshold:h=16,open:f,PaperProps:p={},slots:g={},slotProps:m={},transformOrigin:w={vertical:"top",horizontal:"left"},TransitionComponent:v=KA,transitionDuration:B="auto",TransitionProps:{onEntering:b,...E}={},disableScrollLock:C=!1,...F}=n,y=(m==null?void 0:m.paper)??p,x=O.useRef(),Q={...n,anchorOrigin:i,anchorReference:s,elevation:d,marginThreshold:h,externalPaperSlotProps:y,transformOrigin:w,TransitionComponent:v,transitionDuration:B,TransitionProps:E},S=oT(Q),T=O.useCallback(()=>{if(s==="anchorPosition")return o;const q=Xc(a),se=(q&&q.nodeType===1?q:Ft(x.current).body).getBoundingClientRect();return{top:se.top+ig(se,i.vertical),left:se.left+og(se,i.horizontal)}},[a,i.horizontal,i.vertical,o,s]),U=O.useCallback(q=>({vertical:ig(q,w.vertical),horizontal:og(q,w.horizontal)}),[w.horizontal,w.vertical]),L=O.useCallback(q=>{const ee={width:q.offsetWidth,height:q.offsetHeight},se=U(ee);if(s==="none")return{top:null,left:null,transformOrigin:sg(se)};const te=T();let ae=te.top-se.vertical,le=te.left-se.horizontal;const ve=ae+ee.height,ge=le+ee.width,he=PA(Xc(a)),ye=he.innerHeight-h,Se=he.innerWidth-h;if(h!==null&&aeye){const Ce=ve-ye;ae-=Ce,se.vertical+=Ce}if(h!==null&&leSe){const Ce=ge-Se;le-=Ce,se.horizontal+=Ce}return{top:`${Math.round(ae)}px`,left:`${Math.round(le)}px`,transformOrigin:sg(se)}},[a,s,T,U,h]),[R,M]=O.useState(f),H=O.useCallback(()=>{const q=x.current;if(!q)return;const ee=L(q);ee.top!==null&&q.style.setProperty("top",ee.top),ee.left!==null&&(q.style.left=ee.left),q.style.transformOrigin=ee.transformOrigin,M(!0)},[L]);O.useEffect(()=>(C&&window.addEventListener("scroll",H),()=>window.removeEventListener("scroll",H)),[a,C,H]);const k=(q,ee)=>{b&&b(q,ee),H()},N=()=>{M(!1)};O.useEffect(()=>{f&&H()}),O.useImperativeHandle(A,()=>f?{updatePosition:()=>{H()}}:null,[f,H]),O.useEffect(()=>{if(!f)return;const q=Uy(()=>{H()}),ee=PA(a);return ee.addEventListener("resize",q),()=>{q.clear(),ee.removeEventListener("resize",q)}},[a,f,H]);let P=B;B==="auto"&&!v.muiSupportAuto&&(P=void 0);const K=c||(a?Ft(Xc(a)).body:void 0),W={slots:g,slotProps:{...m,paper:y}},[X,Z]=Rr("paper",{elementType:o0,externalForwardedProps:W,additionalProps:{elevation:d,className:xe(S.paper,y==null?void 0:y.className),style:R?y.style:{...y.style,opacity:0}},ownerState:Q}),[Ae,{slotProps:ie,...re}]=Rr("root",{elementType:sT,externalForwardedProps:W,additionalProps:{slotProps:{backdrop:{invisible:!0}},container:K,open:f},ownerState:Q,className:xe(S.root,u)}),z=Qt(x,Z.ref);return I.jsx(Ae,{...re,...!nA(Ae)&&{slotProps:ie,disableScrollLock:C},...F,ref:r,children:I.jsx(v,{appear:!0,in:f,onEntering:k,onExited:N,timeout:P,...E,children:I.jsx(X,{...Z,ref:z,children:l})})})});function uT(t){return Pe("MuiMenu",t)}Me("MuiMenu",["root","paper","list"]);const cT={vertical:"top",horizontal:"right"},fT={vertical:"top",horizontal:"left"},dT=t=>{const{classes:e}=t;return Ke({root:["root"],paper:["paper"],list:["list"]},uT,e)},hT=me(lT,{shouldForwardProp:t=>yr(t)||t==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(t,e)=>e.root})({}),pT=me(o0,{name:"MuiMenu",slot:"Paper",overridesResolver:(t,e)=>e.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),gT=me(mh,{name:"MuiMenu",slot:"List",overridesResolver:(t,e)=>e.list})({outline:0}),vT=O.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiMenu"}),{autoFocus:A=!0,children:a,className:i,disableAutoFocusItem:o=!1,MenuListProps:s={},onClose:l,open:u,PaperProps:c={},PopoverClasses:d,transitionDuration:h="auto",TransitionProps:{onEntering:f,...p}={},variant:g="selectedMenu",slots:m={},slotProps:w={},...v}=n,B=_o(),b={...n,autoFocus:A,disableAutoFocusItem:o,MenuListProps:s,onEntering:f,PaperProps:c,transitionDuration:h,TransitionProps:p,variant:g},E=dT(b),C=A&&!o&&u,F=O.useRef(null),y=(R,M)=>{F.current&&F.current.adjustStyleForScrollbar(R,{direction:B?"rtl":"ltr"}),f&&f(R,M)},x=R=>{R.key==="Tab"&&(R.preventDefault(),l&&l(R,"tabKeyDown"))};let Q=-1;O.Children.map(a,(R,M)=>{O.isValidElement(R)&&(R.props.disabled||(g==="selectedMenu"&&R.props.selected||Q===-1)&&(Q=M))});const S=m.paper??pT,T=w.paper??c,U=Yr({elementType:m.root,externalSlotProps:w.root,ownerState:b,className:[E.root,i]}),L=Yr({elementType:S,externalSlotProps:T,ownerState:b,className:E.paper});return I.jsx(hT,{onClose:l,anchorOrigin:{vertical:"bottom",horizontal:B?"right":"left"},transformOrigin:B?cT:fT,slots:{paper:S,root:m.root},slotProps:{root:U,paper:L},open:u,ref:r,transitionDuration:h,TransitionProps:{onEntering:y,...p},ownerState:b,...v,classes:d,children:I.jsx(gT,{onKeyDown:x,actions:F,autoFocus:A&&(Q===-1||o),autoFocusItem:C,variant:g,...s,className:xe(E.list,s.className),children:a})})});function mT(t){return Pe("MuiMenuItem",t)}const Qi=Me("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),yT=(t,e)=>{const{ownerState:r}=t;return[e.root,r.dense&&e.dense,r.divider&&e.divider,!r.disableGutters&&e.gutters]},BT=t=>{const{disabled:e,dense:r,divider:n,disableGutters:A,selected:a,classes:i}=t,s=Ke({root:["root",r&&"dense",e&&"disabled",!A&&"gutters",n&&"divider",a&&"selected"]},mT,i);return{...i,...s}},wT=me(ii,{shouldForwardProp:t=>yr(t)||t==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:yT})(ke(({theme:t})=>({...t.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Qi.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:dt(t.palette.primary.main,t.palette.action.selectedOpacity),[`&.${Qi.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:dt(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},[`&.${Qi.selected}:hover`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:dt(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:dt(t.palette.primary.main,t.palette.action.selectedOpacity)}},[`&.${Qi.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${Qi.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity},[`& + .${qp.root}`]:{marginTop:t.spacing(1),marginBottom:t.spacing(1)},[`& + .${qp.inset}`]:{marginLeft:52},[`& .${Ag.root}`]:{marginTop:0,marginBottom:0},[`& .${Ag.inset}`]:{paddingLeft:36},[`& .${ng.root}`]:{minWidth:36},variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(t.vars||t).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:e})=>!e.dense,style:{[t.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:e})=>e.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...t.typography.body2,[`& .${ng.root} svg`]:{fontSize:"1.25rem"}}}]}))),s0=O.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiMenuItem"}),{autoFocus:A=!1,component:a="li",dense:i=!1,divider:o=!1,disableGutters:s=!1,focusVisibleClassName:l,role:u="menuitem",tabIndex:c,className:d,...h}=n,f=O.useContext(Jf),p=O.useMemo(()=>({dense:i||f.dense||!1,disableGutters:s}),[f.dense,i,s]),g=O.useRef(null);rn(()=>{A&&g.current&&g.current.focus()},[A]);const m={...n,dense:p.dense,divider:o,disableGutters:s},w=BT(n),v=Qt(g,r);let B;return n.disabled||(B=c!==void 0?c:-1),I.jsx(Jf.Provider,{value:p,children:I.jsx(wT,{ref:v,role:u,tabIndex:B,component:a,focusVisibleClassName:xe(w.focusVisible,l),className:xe(w.root,d),...h,ownerState:m,classes:w})})});function CT(t){return Pe("MuiNativeSelect",t)}const yh=Me("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),bT=t=>{const{classes:e,variant:r,disabled:n,multiple:A,open:a,error:i}=t,o={select:["select",r,n&&"disabled",A&&"multiple",i&&"error"],icon:["icon",`icon${Fe(r)}`,a&&"iconOpen",n&&"disabled"]};return Ke(o,CT,e)},l0=me("select")(({theme:t})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${yh.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},variants:[{props:({ownerState:e})=>e.variant!=="filled"&&e.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}}]})),ET=me(l0,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:yr,overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.select,e[r.variant],r.error&&e.error,{[`&.${yh.multiple}`]:e.multiple}]}})({}),u0=me("svg")(({theme:t})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${yh.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:({ownerState:e})=>e.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),xT=me(u0,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.icon,r.variant&&e[`icon${Fe(r.variant)}`],r.open&&e.iconOpen]}})({}),FT=O.forwardRef(function(e,r){const{className:n,disabled:A,error:a,IconComponent:i,inputRef:o,variant:s="standard",...l}=e,u={...e,disabled:A,variant:s,error:a},c=bT(u);return I.jsxs(O.Fragment,{children:[I.jsx(ET,{ownerState:u,className:xe(c.select,n),disabled:A,ref:o||r,...l}),e.multiple?null:I.jsx(xT,{as:i,ownerState:u,className:c.icon})]})});var lg;const QT=me("fieldset",{shouldForwardProp:yr})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),ST=me("legend",{shouldForwardProp:yr})(ke(({theme:t})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:e})=>!e.withLabel,style:{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})}},{props:({ownerState:e})=>e.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:e})=>e.withLabel&&e.notched,style:{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})}}]})));function UT(t){const{children:e,classes:r,className:n,label:A,notched:a,...i}=t,o=A!=null&&A!=="",s={...t,notched:a,withLabel:o};return I.jsx(QT,{"aria-hidden":!0,className:n,ownerState:s,...i,children:I.jsx(ST,{ownerState:s,children:o?I.jsx("span",{children:A}):lg||(lg=I.jsx("span",{className:"notranslate",children:"​"}))})})}const TT=t=>{const{classes:e}=t,n=Ke({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},qQ,e);return{...e,...n}},IT=me(Zu,{shouldForwardProp:t=>yr(t)||t==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:qu})(ke(({theme:t})=>{const e=t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(t.vars||t).shape.borderRadius,[`&:hover .${sn.notchedOutline}`]:{borderColor:(t.vars||t).palette.text.primary},[`&.${sn.focused} .${sn.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(t.palette).filter(vr()).map(([r])=>({props:{color:r},style:{[`&.${sn.focused} .${sn.notchedOutline}`]:{borderColor:(t.vars||t).palette[r].main}}})),{props:{},style:{"@media (hover: none)":{[`&:hover .${sn.notchedOutline}`]:{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:e}},[`&.${sn.error} .${sn.notchedOutline}`]:{borderColor:(t.vars||t).palette.error.main},[`&.${sn.disabled} .${sn.notchedOutline}`]:{borderColor:(t.vars||t).palette.action.disabled}}},{props:({ownerState:r})=>r.startAdornment,style:{paddingLeft:14}},{props:({ownerState:r})=>r.endAdornment,style:{paddingRight:14}},{props:({ownerState:r})=>r.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:r,size:n})=>r.multiline&&n==="small",style:{padding:"8.5px 14px"}}]}})),LT=me(UT,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(t,e)=>e.notchedOutline})(ke(({theme:t})=>{const e=t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:e}})),DT=me(ec,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Ju})(ke(({theme:t})=>({padding:"16.5px 14px",...!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:t.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:t.palette.mode==="light"?null:"#fff",caretColor:t.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...t.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:e})=>e.multiline,style:{padding:0}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}}]}))),Nl=O.forwardRef(function(e,r){var n;const A=Ve({props:e,name:"MuiOutlinedInput"}),{components:a={},fullWidth:i=!1,inputComponent:o="input",label:s,multiline:l=!1,notched:u,slots:c={},type:d="text",...h}=A,f=TT(A),p=Vn(),g=qA({props:A,muiFormControl:p,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),m={...A,color:g.color||"primary",disabled:g.disabled,error:g.error,focused:g.focused,formControl:p,fullWidth:i,hiddenLabel:g.hiddenLabel,multiline:l,size:g.size,type:d},w=c.root??a.Root??IT,v=c.input??a.Input??DT;return I.jsx(Jo,{slots:{root:w,input:v},renderSuffix:B=>I.jsx(LT,{ownerState:m,className:f.notchedOutline,label:s!=null&&s!==""&&g.required?n||(n=I.jsxs(O.Fragment,{children:[s," ","*"]})):s,notched:typeof u<"u"?u:!!(B.startAdornment||B.filled||B.focused)}),fullWidth:i,inputComponent:o,multiline:l,ref:r,type:d,...h,classes:{...f,notchedOutline:null}})});Nl&&(Nl.muiName="Input");const RT=vt(I.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),MT=vt(I.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage");function OT(t){return Pe("MuiSelect",t)}const Si=Me("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var ug;const HT=me(l0,{name:"MuiSelect",slot:"Select",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`&.${Si.select}`]:e.select},{[`&.${Si.select}`]:e[r.variant]},{[`&.${Si.error}`]:e.error},{[`&.${Si.multiple}`]:e.multiple}]}})({[`&.${Si.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),kT=me(u0,{name:"MuiSelect",slot:"Icon",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.icon,r.variant&&e[`icon${Fe(r.variant)}`],r.open&&e.iconOpen]}})({}),PT=me("input",{shouldForwardProp:t=>_u(t)&&t!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(t,e)=>e.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function cg(t,e){return typeof e=="object"&&e!==null?t===e:String(t)===String(e)}function NT(t){return t==null||typeof t=="string"&&!t.trim()}const KT=t=>{const{classes:e,variant:r,disabled:n,multiple:A,open:a,error:i}=t,o={select:["select",r,n&&"disabled",A&&"multiple",i&&"error"],icon:["icon",`icon${Fe(r)}`,a&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return Ke(o,OT,e)},GT=O.forwardRef(function(e,r){var Te;const{"aria-describedby":n,"aria-label":A,autoFocus:a,autoWidth:i,children:o,className:s,defaultOpen:l,defaultValue:u,disabled:c,displayEmpty:d,error:h=!1,IconComponent:f,inputRef:p,labelId:g,MenuProps:m={},multiple:w,name:v,onBlur:B,onChange:b,onClose:E,onFocus:C,onOpen:F,open:y,readOnly:x,renderValue:Q,SelectDisplayProps:S={},tabIndex:T,type:U,value:L,variant:R="standard",...M}=e,[H,k]=bo({controlled:L,default:u,name:"Select"}),[N,P]=bo({controlled:y,default:l,name:"Select"}),K=O.useRef(null),W=O.useRef(null),[X,Z]=O.useState(null),{current:Ae}=O.useRef(y!=null),[ie,re]=O.useState(),z=Qt(r,p),q=O.useCallback(V=>{W.current=V,V&&Z(V)},[]),ee=X==null?void 0:X.parentNode;O.useImperativeHandle(z,()=>({focus:()=>{W.current.focus()},node:K.current,value:H}),[H]),O.useEffect(()=>{l&&N&&X&&!Ae&&(re(i?null:ee.clientWidth),W.current.focus())},[X,i]),O.useEffect(()=>{a&&W.current.focus()},[a]),O.useEffect(()=>{if(!g)return;const V=Ft(W.current).getElementById(g);if(V){const oe=()=>{getSelection().isCollapsed&&W.current.focus()};return V.addEventListener("click",oe),()=>{V.removeEventListener("click",oe)}}},[g]);const se=(V,oe)=>{V?F&&F(oe):E&&E(oe),Ae||(re(i?null:ee.clientWidth),P(V))},te=V=>{V.button===0&&(V.preventDefault(),W.current.focus(),se(!0,V))},ae=V=>{se(!1,V)},le=O.Children.toArray(o),ve=V=>{const oe=le.find(fe=>fe.props.value===V.target.value);oe!==void 0&&(k(oe.props.value),b&&b(V,oe))},ge=V=>oe=>{let fe;if(oe.currentTarget.hasAttribute("tabindex")){if(w){fe=Array.isArray(H)?H.slice():[];const pe=H.indexOf(V.props.value);pe===-1?fe.push(V.props.value):fe.splice(pe,1)}else fe=V.props.value;if(V.props.onClick&&V.props.onClick(oe),H!==fe&&(k(fe),b)){const pe=oe.nativeEvent||oe,Be=new pe.constructor(pe.type,pe);Object.defineProperty(Be,"target",{writable:!0,value:{value:fe,name:v}}),b(Be,V)}w||se(!1,oe)}},he=V=>{x||[" ","ArrowUp","ArrowDown","Enter"].includes(V.key)&&(V.preventDefault(),se(!0,V))},ye=X!==null&&N,Se=V=>{!ye&&B&&(Object.defineProperty(V,"target",{writable:!0,value:{value:H,name:v}}),B(V))};delete M["aria-invalid"];let Ce,we;const _=[];let $=!1;(Hl({value:H})||d)&&(Q?Ce=Q(H):$=!0);const D=le.map(V=>{if(!O.isValidElement(V))return null;let oe;if(w){if(!Array.isArray(H))throw new Error(Mn(2));oe=H.some(fe=>cg(fe,V.props.value)),oe&&$&&_.push(V.props.children)}else oe=cg(H,V.props.value),oe&&$&&(we=V.props.children);return O.cloneElement(V,{"aria-selected":oe?"true":"false",onClick:ge(V),onKeyUp:fe=>{fe.key===" "&&fe.preventDefault(),V.props.onKeyUp&&V.props.onKeyUp(fe)},role:"option",selected:oe,value:void 0,"data-value":V.props.value})});$&&(w?_.length===0?Ce=null:Ce=_.reduce((V,oe,fe)=>(V.push(oe),fe<_.length-1&&V.push(", "),V),[]):Ce=we);let G=ie;!i&&Ae&&X&&(G=ee.clientWidth);let J;typeof T<"u"?J=T:J=c?null:0;const j=S.id||(v?`mui-component-select-${v}`:void 0),ne={...e,variant:R,value:H,open:ye,error:h},ce=KT(ne),Y={...m.PaperProps,...(Te=m.slotProps)==null?void 0:Te.paper},de=Co();return I.jsxs(O.Fragment,{children:[I.jsx(HT,{as:"div",ref:q,tabIndex:J,role:"combobox","aria-controls":de,"aria-disabled":c?"true":void 0,"aria-expanded":ye?"true":"false","aria-haspopup":"listbox","aria-label":A,"aria-labelledby":[g,j].filter(Boolean).join(" ")||void 0,"aria-describedby":n,onKeyDown:he,onMouseDown:c||x?null:te,onBlur:Se,onFocus:C,...S,ownerState:ne,className:xe(S.className,ce.select,s),id:j,children:NT(Ce)?ug||(ug=I.jsx("span",{className:"notranslate",children:"​"})):Ce}),I.jsx(PT,{"aria-invalid":h,value:Array.isArray(H)?H.join(","):H,name:v,ref:K,"aria-hidden":!0,onChange:ve,tabIndex:-1,disabled:c,className:ce.nativeInput,autoFocus:a,...M,ownerState:ne}),I.jsx(kT,{as:f,className:ce.icon,ownerState:ne}),I.jsx(vT,{id:`menu-${v||""}`,anchorEl:ee,open:ye,onClose:ae,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...m,MenuListProps:{"aria-labelledby":g,role:"listbox","aria-multiselectable":w?"true":void 0,disableListWrap:!0,id:de,...m.MenuListProps},slotProps:{...m.slotProps,paper:{...Y,style:{minWidth:G,...Y!=null?Y.style:null}}},children:D})]})}),VT=t=>{const{classes:e}=t;return e},Bh={name:"MuiSelect",overridesResolver:(t,e)=>e.root,shouldForwardProp:t=>yr(t)&&t!=="variant",slot:"Root"},$T=me(Pl,Bh)(""),zT=me(Nl,Bh)(""),WT=me(kl,Bh)(""),rc=O.forwardRef(function(e,r){const n=Wu({name:"MuiSelect",props:e}),{autoWidth:A=!1,children:a,classes:i={},className:o,defaultOpen:s=!1,displayEmpty:l=!1,IconComponent:u=ZQ,id:c,input:d,inputProps:h,label:f,labelId:p,MenuProps:g,multiple:m=!1,native:w=!1,onClose:v,onOpen:B,open:b,renderValue:E,SelectDisplayProps:C,variant:F="outlined",...y}=n,x=w?FT:GT,Q=Vn(),S=qA({props:n,muiFormControl:Q,states:["variant","error"]}),T=S.variant||F,U={...n,variant:T,classes:i},L=VT(U),{root:R,...M}=L,H=d||{standard:I.jsx($T,{ownerState:U}),outlined:I.jsx(zT,{label:f,ownerState:U}),filled:I.jsx(WT,{ownerState:U})}[T],k=Qt(r,jA(H));return I.jsx(O.Fragment,{children:O.cloneElement(H,{inputComponent:x,inputProps:{children:a,error:S.error,IconComponent:u,variant:T,type:void 0,multiple:m,...w?{id:c}:{autoWidth:A,defaultOpen:s,displayEmpty:l,labelId:p,MenuProps:g,onClose:v,onOpen:B,open:b,renderValue:E,SelectDisplayProps:{id:c,...C}},...h,classes:h?$t(M,h.classes):M,...d?d.props.inputProps:{}},...(m&&w||l)&&T==="outlined"?{notched:!0}:{},ref:k,className:xe(H.props.className,o,L.root),...!d&&{variant:T},...y})})});rc.muiName="Select";function _T(t,e,r=(n,A)=>n===A){return t.length===e.length&&t.every((n,A)=>r(n,e[A]))}const XT=2;function c0(t,e){return t-e}function fg(t,e){const{index:r}=t.reduce((n,A,a)=>{const i=Math.abs(e-A);return n===null||i({left:`${t}%`}),leap:t=>({width:`${t}%`})},"horizontal-reverse":{offset:t=>({right:`${t}%`}),leap:t=>({width:`${t}%`})},vertical:{offset:t=>({bottom:`${t}%`}),leap:t=>({height:`${t}%`})}},ZT=t=>t;let xs;function hg(){return xs===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?xs=CSS.supports("touch-action","none"):xs=!0),xs}function eI(t){const{"aria-labelledby":e,defaultValue:r,disabled:n=!1,disableSwap:A=!1,isRtl:a=!1,marks:i=!1,max:o=100,min:s=0,name:l,onChange:u,onChangeCommitted:c,orientation:d="horizontal",rootRef:h,scale:f=ZT,step:p=1,shiftStep:g=10,tabIndex:m,value:w}=t,v=O.useRef(void 0),[B,b]=O.useState(-1),[E,C]=O.useState(-1),[F,y]=O.useState(!1),x=O.useRef(0),[Q,S]=bo({controlled:w,default:r??s,name:"Slider"}),T=u&&((_,$,D)=>{const G=_.nativeEvent||_,J=new G.constructor(G.type,G);Object.defineProperty(J,"target",{writable:!0,value:{value:$,name:l}}),u(J,$,D)}),U=Array.isArray(Q);let L=U?Q.slice().sort(c0):[Q];L=L.map(_=>_==null?s:Ba(_,s,o));const R=i===!0&&p!==null?[...Array(Math.floor((o-s)/p)+1)].map((_,$)=>({value:s+p*$})):i||[],M=R.map(_=>_.value),[H,k]=O.useState(-1),N=O.useRef(null),P=Qt(h,N),K=_=>$=>{var G;const D=Number($.currentTarget.getAttribute("data-index"));za($.target)&&k(D),C(D),(G=_==null?void 0:_.onFocus)==null||G.call(_,$)},W=_=>$=>{var D;za($.target)||k(-1),C(-1),(D=_==null?void 0:_.onBlur)==null||D.call(_,$)},X=(_,$)=>{const D=Number(_.currentTarget.getAttribute("data-index")),G=L[D],J=M.indexOf(G);let j=$;if(R&&p==null){const ne=M[M.length-1];j>ne?j=ne:j$=>{var D;if(p!==null){const G=Number($.currentTarget.getAttribute("data-index")),J=L[G];let j=null;($.key==="ArrowLeft"||$.key==="ArrowDown")&&$.shiftKey||$.key==="PageDown"?j=Math.max(J-g,s):(($.key==="ArrowRight"||$.key==="ArrowUp")&&$.shiftKey||$.key==="PageUp")&&(j=Math.min(J+g,o)),j!==null&&(X($,j),$.preventDefault())}(D=_==null?void 0:_.onKeyDown)==null||D.call(_,$)};rn(()=>{var _;n&&N.current.contains(document.activeElement)&&((_=document.activeElement)==null||_.blur())},[n]),n&&B!==-1&&b(-1),n&&H!==-1&&k(-1);const Ae=_=>$=>{var D;(D=_.onChange)==null||D.call(_,$),X($,$.target.valueAsNumber)},ie=O.useRef(void 0);let re=d;a&&d==="horizontal"&&(re+="-reverse");const z=({finger:_,move:$=!1})=>{const{current:D}=N,{width:G,height:J,bottom:j,left:ne}=D.getBoundingClientRect();let ce;re.startsWith("vertical")?ce=(j-_.y)/J:ce=(_.x-ne)/G,re.includes("-reverse")&&(ce=1-ce);let Y;if(Y=YT(ce,s,o),p)Y=qT(Y,p,s);else{const Te=fg(M,Y);Y=M[Te]}Y=Ba(Y,s,o);let de=0;if(U){$?de=ie.current:de=fg(L,Y),A&&(Y=Ba(Y,L[de-1]||-1/0,L[de+1]||1/0));const Te=Y;Y=dg({values:L,newValue:Y,index:de}),A&&$||(de=Y.indexOf(Te),ie.current=de)}return{newValue:Y,activeIndex:de}},q=Mr(_=>{const $=Cs(_,v);if(!$)return;if(x.current+=1,_.type==="mousemove"&&_.buttons===0){ee(_);return}const{newValue:D,activeIndex:G}=z({finger:$,move:!0});bs({sliderRef:N,activeIndex:G,setActive:b}),S(D),!F&&x.current>XT&&y(!0),T&&!Es(D,Q)&&T(_,D,G)}),ee=Mr(_=>{const $=Cs(_,v);if(y(!1),!$)return;const{newValue:D}=z({finger:$,move:!0});b(-1),_.type==="touchend"&&C(-1),c&&c(_,D),v.current=void 0,te()}),se=Mr(_=>{if(n)return;hg()||_.preventDefault();const $=_.changedTouches[0];$!=null&&(v.current=$.identifier);const D=Cs(_,v);if(D!==!1){const{newValue:J,activeIndex:j}=z({finger:D});bs({sliderRef:N,activeIndex:j,setActive:b}),S(J),T&&!Es(J,Q)&&T(_,J,j)}x.current=0;const G=Ft(N.current);G.addEventListener("touchmove",q,{passive:!0}),G.addEventListener("touchend",ee,{passive:!0})}),te=O.useCallback(()=>{const _=Ft(N.current);_.removeEventListener("mousemove",q),_.removeEventListener("mouseup",ee),_.removeEventListener("touchmove",q),_.removeEventListener("touchend",ee)},[ee,q]);O.useEffect(()=>{const{current:_}=N;return _.addEventListener("touchstart",se,{passive:hg()}),()=>{_.removeEventListener("touchstart",se),te()}},[te,se]),O.useEffect(()=>{n&&te()},[n,te]);const ae=_=>$=>{var J;if((J=_.onMouseDown)==null||J.call(_,$),n||$.defaultPrevented||$.button!==0)return;$.preventDefault();const D=Cs($,v);if(D!==!1){const{newValue:j,activeIndex:ne}=z({finger:D});bs({sliderRef:N,activeIndex:ne,setActive:b}),S(j),T&&!Es(j,Q)&&T($,j,ne)}x.current=0;const G=Ft(N.current);G.addEventListener("mousemove",q,{passive:!0}),G.addEventListener("mouseup",ee)},le=Kl(U?L[0]:s,s,o),ve=Kl(L[L.length-1],s,o)-le,ge=(_={})=>{const $=ro(_),D={onMouseDown:ae($||{})},G={...$,...D};return{..._,ref:P,...G}},he=_=>$=>{var G;(G=_.onMouseOver)==null||G.call(_,$);const D=Number($.currentTarget.getAttribute("data-index"));C(D)},ye=_=>$=>{var D;(D=_.onMouseLeave)==null||D.call(_,$),C(-1)};return{active:B,axis:re,axisProps:JT,dragging:F,focusedThumbIndex:H,getHiddenInputProps:(_={})=>{const $=ro(_),D={onChange:Ae($||{}),onFocus:K($||{}),onBlur:W($||{}),onKeyDown:Z($||{})},G={...$,...D};return{tabIndex:m,"aria-labelledby":e,"aria-orientation":d,"aria-valuemax":f(o),"aria-valuemin":f(s),name:l,type:"range",min:t.min,max:t.max,step:t.step===null&&t.marks?"any":t.step??void 0,disabled:n,..._,...G,style:{...yE,direction:a?"rtl":"ltr",width:"100%",height:"100%"}}},getRootProps:ge,getThumbProps:(_={})=>{const $=ro(_),D={onMouseOver:he($||{}),onMouseLeave:ye($||{})};return{..._,...$,...D}},marks:R,open:E,range:U,rootRef:P,trackLeap:ve,trackOffset:le,values:L,getThumbStyle:_=>({pointerEvents:B!==-1&&B!==_?"none":void 0})}}const tI=t=>!t||!nA(t);function rI(t){return Pe("MuiSlider",t)}const Or=Me("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),nI=t=>{const{open:e}=t;return{offset:xe(e&&Or.valueLabelOpen),circle:Or.valueLabelCircle,label:Or.valueLabelLabel}};function AI(t){const{children:e,className:r,value:n}=t,A=nI(t);return e?O.cloneElement(e,{className:xe(e.props.className)},I.jsxs(O.Fragment,{children:[e.props.children,I.jsx("span",{className:xe(A.offset,r),"aria-hidden":!0,children:I.jsx("span",{className:A.circle,children:I.jsx("span",{className:A.label,children:n})})})]})):null}function pg(t){return t}const aI=me("span",{name:"MuiSlider",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`color${Fe(r.color)}`],r.size!=="medium"&&e[`size${Fe(r.size)}`],r.marked&&e.marked,r.orientation==="vertical"&&e.vertical,r.track==="inverted"&&e.trackInverted,r.track===!1&&e.trackFalse]}})(ke(({theme:t})=>({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${Or.disabled}`]:{pointerEvents:"none",cursor:"default",color:(t.vars||t).palette.grey[400]},[`&.${Or.dragging}`]:{[`& .${Or.thumb}, & .${Or.track}`]:{transition:"none"}},variants:[...Object.entries(t.palette).filter(vr()).map(([e])=>({props:{color:e},style:{color:(t.vars||t).palette[e].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}))),iI=me("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(t,e)=>e.rail})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),oI=me("span",{name:"MuiSlider",slot:"Track",overridesResolver:(t,e)=>e.track})(ke(({theme:t})=>({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:t.transitions.create(["left","width","bottom","height"],{duration:t.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.entries(t.palette).filter(vr()).map(([e])=>({props:{color:e,track:"inverted"},style:{...t.vars?{backgroundColor:t.vars.palette.Slider[`${e}Track`],borderColor:t.vars.palette.Slider[`${e}Track`]}:{backgroundColor:$a(t.palette[e].main,.62),borderColor:$a(t.palette[e].main,.62),...t.applyStyles("dark",{backgroundColor:Va(t.palette[e].main,.5)}),...t.applyStyles("dark",{borderColor:Va(t.palette[e].main,.5)})}}}))]}))),sI=me("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.thumb,e[`thumbColor${Fe(r.color)}`],r.size!=="medium"&&e[`thumbSize${Fe(r.size)}`]]}})(ke(({theme:t})=>({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:t.transitions.create(["box-shadow","left","bottom"],{duration:t.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(t.vars||t).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${Or.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.entries(t.palette).filter(vr()).map(([e])=>({props:{color:e},style:{[`&:hover, &.${Or.focusVisible}`]:{...t.vars?{boxShadow:`0px 0px 0px 8px rgba(${t.vars.palette[e].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${dt(t.palette[e].main,.16)}`},"@media (hover: none)":{boxShadow:"none"}},[`&.${Or.active}`]:{...t.vars?{boxShadow:`0px 0px 0px 14px rgba(${t.vars.palette[e].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${dt(t.palette[e].main,.16)}`}}}}))]}))),lI=me(AI,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(t,e)=>e.valueLabel})(ke(({theme:t})=>({zIndex:1,whiteSpace:"nowrap",...t.typography.body2,fontWeight:500,transition:t.transitions.create(["transform"],{duration:t.transitions.duration.shortest}),position:"absolute",backgroundColor:(t.vars||t).palette.grey[600],borderRadius:2,color:(t.vars||t).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${Or.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${Or.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:t.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]}))),uI=me("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:t=>_u(t)&&t!=="markActive",overridesResolver:(t,e)=>{const{markActive:r}=t;return[e.mark,r&&e.markActive]}})(ke(({theme:t})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(t.vars||t).palette.background.paper,opacity:.8}}]}))),cI=me("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:t=>_u(t)&&t!=="markLabelActive",overridesResolver:(t,e)=>e.markLabel})(ke(({theme:t})=>({...t.typography.body2,color:(t.vars||t).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(t.vars||t).palette.text.primary}}]}))),fI=t=>{const{disabled:e,dragging:r,marked:n,orientation:A,track:a,classes:i,color:o,size:s}=t,l={root:["root",e&&"disabled",r&&"dragging",n&&"marked",A==="vertical"&&"vertical",a==="inverted"&&"trackInverted",a===!1&&"trackFalse",o&&`color${Fe(o)}`,s&&`size${Fe(s)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",e&&"disabled",s&&`thumbSize${Fe(s)}`,o&&`thumbColor${Fe(o)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Ke(l,rI,i)},dI=({children:t})=>t,hI=O.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiSlider"}),A=_o(),{"aria-label":a,"aria-valuetext":i,"aria-labelledby":o,component:s="span",components:l={},componentsProps:u={},color:c="primary",classes:d,className:h,disableSwap:f=!1,disabled:p=!1,getAriaLabel:g,getAriaValueText:m,marks:w=!1,max:v=100,min:B=0,name:b,onChange:E,onChangeCommitted:C,orientation:F="horizontal",shiftStep:y=10,size:x="medium",step:Q=1,scale:S=pg,slotProps:T,slots:U,tabIndex:L,track:R="normal",value:M,valueLabelDisplay:H="off",valueLabelFormat:k=pg,...N}=n,P={...n,isRtl:A,max:v,min:B,classes:d,disabled:p,disableSwap:f,orientation:F,marks:w,color:c,size:x,step:Q,shiftStep:y,scale:S,track:R,valueLabelDisplay:H,valueLabelFormat:k},{axisProps:K,getRootProps:W,getHiddenInputProps:X,getThumbProps:Z,open:Ae,active:ie,axis:re,focusedThumbIndex:z,range:q,dragging:ee,marks:se,values:te,trackOffset:ae,trackLeap:le,getThumbStyle:ve}=eI({...P,rootRef:r});P.marked=se.length>0&&se.some(Ge=>Ge.label),P.dragging=ee,P.focusedThumbIndex=z;const ge=fI(P),he=(U==null?void 0:U.root)??l.Root??aI,ye=(U==null?void 0:U.rail)??l.Rail??iI,Se=(U==null?void 0:U.track)??l.Track??oI,Ce=(U==null?void 0:U.thumb)??l.Thumb??sI,we=(U==null?void 0:U.valueLabel)??l.ValueLabel??lI,_=(U==null?void 0:U.mark)??l.Mark??uI,$=(U==null?void 0:U.markLabel)??l.MarkLabel??cI,D=(U==null?void 0:U.input)??l.Input??"input",G=(T==null?void 0:T.root)??u.root,J=(T==null?void 0:T.rail)??u.rail,j=(T==null?void 0:T.track)??u.track,ne=(T==null?void 0:T.thumb)??u.thumb,ce=(T==null?void 0:T.valueLabel)??u.valueLabel,Y=(T==null?void 0:T.mark)??u.mark,de=(T==null?void 0:T.markLabel)??u.markLabel,Te=(T==null?void 0:T.input)??u.input,V=Yr({elementType:he,getSlotProps:W,externalSlotProps:G,externalForwardedProps:N,additionalProps:{...tI(he)&&{as:s}},ownerState:{...P,...G==null?void 0:G.ownerState},className:[ge.root,h]}),oe=Yr({elementType:ye,externalSlotProps:J,ownerState:P,className:ge.rail}),fe=Yr({elementType:Se,externalSlotProps:j,additionalProps:{style:{...K[re].offset(ae),...K[re].leap(le)}},ownerState:{...P,...j==null?void 0:j.ownerState},className:ge.track}),pe=Yr({elementType:Ce,getSlotProps:Z,externalSlotProps:ne,ownerState:{...P,...ne==null?void 0:ne.ownerState},className:ge.thumb}),Be=Yr({elementType:we,externalSlotProps:ce,ownerState:{...P,...ce==null?void 0:ce.ownerState},className:ge.valueLabel}),Oe=Yr({elementType:_,externalSlotProps:Y,ownerState:P,className:ge.mark}),Ne=Yr({elementType:$,externalSlotProps:de,ownerState:P,className:ge.markLabel}),ut=Yr({elementType:D,getSlotProps:X,externalSlotProps:Te,ownerState:P});return I.jsxs(he,{...V,children:[I.jsx(ye,{...oe}),I.jsx(Se,{...fe}),se.filter(Ge=>Ge.value>=B&&Ge.value<=v).map((Ge,He)=>{const pt=Kl(Ge.value,B,v),Je=K[re].offset(pt);let ze;return R===!1?ze=te.includes(Ge.value):ze=R==="normal"&&(q?Ge.value>=te[0]&&Ge.value<=te[te.length-1]:Ge.value<=te[0])||R==="inverted"&&(q?Ge.value<=te[0]||Ge.value>=te[te.length-1]:Ge.value>=te[0]),I.jsxs(O.Fragment,{children:[I.jsx(_,{"data-index":He,...Oe,...!nA(_)&&{markActive:ze},style:{...Je,...Oe.style},className:xe(Oe.className,ze&&ge.markActive)}),Ge.label!=null?I.jsx($,{"aria-hidden":!0,"data-index":He,...Ne,...!nA($)&&{markLabelActive:ze},style:{...Je,...Ne.style},className:xe(ge.markLabel,Ne.className,ze&&ge.markLabelActive),children:Ge.label}):null]},He)}),te.map((Ge,He)=>{const pt=Kl(Ge,B,v),Je=K[re].offset(pt),ze=H==="off"?dI:we;return I.jsx(ze,{...!nA(ze)&&{valueLabelFormat:k,valueLabelDisplay:H,value:typeof k=="function"?k(S(Ge),He):k,index:He,open:Ae===He||ie===He||H==="on",disabled:p},...Be,children:I.jsx(Ce,{"data-index":He,...pe,className:xe(ge.thumb,pe.className,ie===He&&ge.active,z===He&&ge.focusVisible),style:{...Je,...ve(He),...pe.style},children:I.jsx(D,{"data-index":He,"aria-label":g?g(He):a,"aria-valuenow":S(Ge),"aria-labelledby":o,"aria-valuetext":m?m(S(Ge),He):i,value:te[He],...ut})})},He)})]})});function pI(t){return Pe("MuiTooltip",t)}const Et=Me("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function gI(t){return Math.round(t*1e5)/1e5}const vI=t=>{const{classes:e,disableInteractive:r,arrow:n,touch:A,placement:a}=t,i={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",A&&"touch",`tooltipPlacement${Fe(a.split("-")[0])}`],arrow:["arrow"]};return Ke(i,pI,e)},mI=me(Yu,{name:"MuiTooltip",slot:"Popper",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.popper,!r.disableInteractive&&e.popperInteractive,r.arrow&&e.popperArrow,!r.open&&e.popperClose]}})(ke(({theme:t})=>({zIndex:(t.vars||t).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:e})=>!e.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:e})=>!e,style:{pointerEvents:"none"}},{props:({ownerState:e})=>e.arrow,style:{[`&[data-popper-placement*="bottom"] .${Et.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Et.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Et.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${Et.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="right"] .${Et.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="right"] .${Et.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="left"] .${Et.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="left"] .${Et.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),yI=me("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.tooltip,r.touch&&e.touch,r.arrow&&e.tooltipArrow,e[`tooltipPlacement${Fe(r.placement.split("-")[0])}`]]}})(ke(({theme:t})=>({backgroundColor:t.vars?t.vars.palette.Tooltip.bg:dt(t.palette.grey[700],.92),borderRadius:(t.vars||t).shape.borderRadius,color:(t.vars||t).palette.common.white,fontFamily:t.typography.fontFamily,padding:"4px 8px",fontSize:t.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:t.typography.fontWeightMedium,[`.${Et.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${Et.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${Et.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${Et.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:e})=>e.arrow,style:{position:"relative",margin:0}},{props:({ownerState:e})=>e.touch,style:{padding:"8px 16px",fontSize:t.typography.pxToRem(14),lineHeight:`${gI(16/14)}em`,fontWeight:t.typography.fontWeightRegular}},{props:({ownerState:e})=>!e.isRtl,style:{[`.${Et.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${Et.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:e})=>!e.isRtl&&e.touch,style:{[`.${Et.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${Et.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:e})=>!!e.isRtl,style:{[`.${Et.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${Et.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:e})=>!!e.isRtl&&e.touch,style:{[`.${Et.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${Et.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${Et.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${Et.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),BI=me("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(t,e)=>e.arrow})(ke(({theme:t})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:t.vars?t.vars.palette.Tooltip.bg:dt(t.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let Fs=!1;const gg=new Vu;let Ui={x:0,y:0};function Qs(t,e){return(r,...n)=>{e&&e(r,...n),t(r,...n)}}const IA=O.forwardRef(function(e,r){var pt,Je,ze;const n=Ve({props:e,name:"MuiTooltip"}),{arrow:A=!1,children:a,classes:i,components:o={},componentsProps:s={},describeChild:l=!1,disableFocusListener:u=!1,disableHoverListener:c=!1,disableInteractive:d=!1,disableTouchListener:h=!1,enterDelay:f=100,enterNextDelay:p=0,enterTouchDelay:g=700,followCursor:m=!1,id:w,leaveDelay:v=0,leaveTouchDelay:B=1500,onClose:b,onOpen:E,open:C,placement:F="bottom",PopperComponent:y,PopperProps:x={},slotProps:Q={},slots:S={},title:T,TransitionComponent:U=KA,TransitionProps:L,...R}=n,M=O.isValidElement(a)?a:I.jsx("span",{children:a}),H=Yo(),k=_o(),[N,P]=O.useState(),[K,W]=O.useState(null),X=O.useRef(!1),Z=d||m,Ae=xa(),ie=xa(),re=xa(),z=xa(),[q,ee]=bo({controlled:C,default:!1,name:"Tooltip",state:"open"});let se=q;const te=Co(w),ae=O.useRef(),le=Mr(()=>{ae.current!==void 0&&(document.body.style.WebkitUserSelect=ae.current,ae.current=void 0),z.clear()});O.useEffect(()=>le,[le]);const ve=De=>{gg.clear(),Fs=!0,ee(!0),E&&!se&&E(De)},ge=Mr(De=>{gg.start(800+v,()=>{Fs=!1}),ee(!1),b&&se&&b(De),Ae.start(H.transitions.duration.shortest,()=>{X.current=!1})}),he=De=>{X.current&&De.type!=="touchstart"||(N&&N.removeAttribute("title"),ie.clear(),re.clear(),f||Fs&&p?ie.start(Fs?p:f,()=>{ve(De)}):ve(De))},ye=De=>{ie.clear(),re.start(v,()=>{ge(De)})},[,Se]=O.useState(!1),Ce=De=>{za(De.target)||(Se(!1),ye(De))},we=De=>{N||P(De.currentTarget),za(De.target)&&(Se(!0),he(De))},_=De=>{X.current=!0;const nt=M.props;nt.onTouchStart&&nt.onTouchStart(De)},$=De=>{_(De),re.clear(),Ae.clear(),le(),ae.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",z.start(g,()=>{document.body.style.WebkitUserSelect=ae.current,he(De)})},D=De=>{M.props.onTouchEnd&&M.props.onTouchEnd(De),le(),re.start(B,()=>{ge(De)})};O.useEffect(()=>{if(!se)return;function De(nt){nt.key==="Escape"&&ge(nt)}return document.addEventListener("keydown",De),()=>{document.removeEventListener("keydown",De)}},[ge,se]);const G=Qt(jA(M),P,r);!T&&T!==0&&(se=!1);const J=O.useRef(),j=De=>{const nt=M.props;nt.onMouseMove&&nt.onMouseMove(De),Ui={x:De.clientX,y:De.clientY},J.current&&J.current.update()},ne={},ce=typeof T=="string";l?(ne.title=!se&&ce&&!c?T:null,ne["aria-describedby"]=se?te:null):(ne["aria-label"]=ce?T:null,ne["aria-labelledby"]=se&&!ce?te:null);const Y={...ne,...R,...M.props,className:xe(R.className,M.props.className),onTouchStart:_,ref:G,...m?{onMouseMove:j}:{}},de={};h||(Y.onTouchStart=$,Y.onTouchEnd=D),c||(Y.onMouseOver=Qs(he,Y.onMouseOver),Y.onMouseLeave=Qs(ye,Y.onMouseLeave),Z||(de.onMouseOver=he,de.onMouseLeave=ye)),u||(Y.onFocus=Qs(we,Y.onFocus),Y.onBlur=Qs(Ce,Y.onBlur),Z||(de.onFocus=we,de.onBlur=Ce));const Te=O.useMemo(()=>{var nt;let De=[{name:"arrow",enabled:!!K,options:{element:K,padding:4}}];return(nt=x.popperOptions)!=null&&nt.modifiers&&(De=De.concat(x.popperOptions.modifiers)),{...x.popperOptions,modifiers:De}},[K,x]),V={...n,isRtl:k,arrow:A,disableInteractive:Z,placement:F,PopperComponentProp:y,touch:X.current},oe=vI(V),fe=S.popper??o.Popper??mI,pe=S.transition??o.Transition??U??KA,Be=S.tooltip??o.Tooltip??yI,Oe=S.arrow??o.Arrow??BI,Ne=Fa(fe,{...x,...Q.popper??s.popper,className:xe(oe.popper,x==null?void 0:x.className,(pt=Q.popper??s.popper)==null?void 0:pt.className)},V),ut=Fa(pe,{...L,...Q.transition??s.transition},V),Ge=Fa(Be,{...Q.tooltip??s.tooltip,className:xe(oe.tooltip,(Je=Q.tooltip??s.tooltip)==null?void 0:Je.className)},V),He=Fa(Oe,{...Q.arrow??s.arrow,className:xe(oe.arrow,(ze=Q.arrow??s.arrow)==null?void 0:ze.className)},V);return I.jsxs(O.Fragment,{children:[O.cloneElement(M,Y),I.jsx(fe,{as:y??Yu,placement:F,anchorEl:m?{getBoundingClientRect:()=>({top:Ui.y,left:Ui.x,right:Ui.x,bottom:Ui.y,width:0,height:0})}:N,popperRef:J,open:N?se:!1,id:te,transition:!0,...de,...Ne,popperOptions:Te,children:({TransitionProps:De})=>I.jsx(pe,{timeout:H.transitions.duration.shorter,...De,...ut,children:I.jsxs(Be,{...Ge,children:[T,A?I.jsx(Oe,{...He,ref:W}):null]})})})]})}),qa=sx({createStyledComponent:me("div",{name:"MuiStack",slot:"Root",overridesResolver:(t,e)=>e.root}),useThemeProps:t=>Wu({props:t,name:"MuiStack"})}),f0=O.createContext();function wI(t){return Pe("MuiTable",t)}Me("MuiTable",["root","stickyHeader"]);const CI=t=>{const{classes:e,stickyHeader:r}=t;return Ke({root:["root",r&&"stickyHeader"]},wI,e)},bI=me("table",{name:"MuiTable",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.stickyHeader&&e.stickyHeader]}})(ke(({theme:t})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...t.typography.body2,padding:t.spacing(2),color:(t.vars||t).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:e})=>e.stickyHeader,style:{borderCollapse:"separate"}}]}))),vg="table",d0=O.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiTable"}),{className:A,component:a=vg,padding:i="normal",size:o="medium",stickyHeader:s=!1,...l}=n,u={...n,component:a,padding:i,size:o,stickyHeader:s},c=CI(u),d=O.useMemo(()=>({padding:i,size:o,stickyHeader:s}),[i,o,s]);return I.jsx(f0.Provider,{value:d,children:I.jsx(bI,{as:a,role:a===vg?null:"table",ref:r,className:xe(c.root,A),ownerState:u,...l})})}),nc=O.createContext();function EI(t){return Pe("MuiTableBody",t)}Me("MuiTableBody",["root"]);const xI=t=>{const{classes:e}=t;return Ke({root:["root"]},EI,e)},FI=me("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"table-row-group"}),QI={variant:"body"},mg="tbody",h0=O.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiTableBody"}),{className:A,component:a=mg,...i}=n,o={...n,component:a},s=xI(o);return I.jsx(nc.Provider,{value:QI,children:I.jsx(FI,{className:xe(s.root,A),as:a,ref:r,role:a===mg?null:"rowgroup",ownerState:o,...i})})});function SI(t){return Pe("MuiTableCell",t)}const UI=Me("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),TI=t=>{const{classes:e,variant:r,align:n,padding:A,size:a,stickyHeader:i}=t,o={root:["root",r,i&&"stickyHeader",n!=="inherit"&&`align${Fe(n)}`,A!=="normal"&&`padding${Fe(A)}`,`size${Fe(a)}`]};return Ke(o,SI,e)},II=me("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant],e[`size${Fe(r.size)}`],r.padding!=="normal"&&e[`padding${Fe(r.padding)}`],r.align!=="inherit"&&e[`align${Fe(r.align)}`],r.stickyHeader&&e.stickyHeader]}})(ke(({theme:t})=>({...t.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:t.vars?`1px solid ${t.vars.palette.TableCell.border}`:`1px solid + ${t.palette.mode==="light"?$a(dt(t.palette.divider,1),.88):Va(dt(t.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(t.vars||t).palette.text.primary,lineHeight:t.typography.pxToRem(24),fontWeight:t.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(t.vars||t).palette.text.primary}},{props:{variant:"footer"},style:{color:(t.vars||t).palette.text.secondary,lineHeight:t.typography.pxToRem(21),fontSize:t.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${UI.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:e})=>e.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(t.vars||t).palette.background.default}}]}))),gn=O.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiTableCell"}),{align:A="inherit",className:a,component:i,padding:o,scope:s,size:l,sortDirection:u,variant:c,...d}=n,h=O.useContext(f0),f=O.useContext(nc),p=f&&f.variant==="head";let g;i?g=i:g=p?"th":"td";let m=s;g==="td"?m=void 0:!m&&p&&(m="col");const w=c||f&&f.variant,v={...n,align:A,component:g,padding:o||(h&&h.padding?h.padding:"normal"),size:l||(h&&h.size?h.size:"medium"),sortDirection:u,stickyHeader:w==="head"&&h&&h.stickyHeader,variant:w},B=TI(v);let b=null;return u&&(b=u==="asc"?"ascending":"descending"),I.jsx(II,{as:g,ref:r,className:xe(B.root,a),"aria-sort":b,scope:m,ownerState:v,...d})});function LI(t){return Pe("MuiTableContainer",t)}Me("MuiTableContainer",["root"]);const DI=t=>{const{classes:e}=t;return Ke({root:["root"]},LI,e)},RI=me("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(t,e)=>e.root})({width:"100%",overflowX:"auto"}),p0=O.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiTableContainer"}),{className:A,component:a="div",...i}=n,o={...n,component:a},s=DI(o);return I.jsx(RI,{ref:r,as:a,className:xe(s.root,A),ownerState:o,...i})});function MI(t){return Pe("MuiTableHead",t)}Me("MuiTableHead",["root"]);const OI=t=>{const{classes:e}=t;return Ke({root:["root"]},MI,e)},HI=me("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"table-header-group"}),kI={variant:"head"},yg="thead",g0=O.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiTableHead"}),{className:A,component:a=yg,...i}=n,o={...n,component:a},s=OI(o);return I.jsx(nc.Provider,{value:kI,children:I.jsx(HI,{as:a,className:xe(s.root,A),ref:r,role:a===yg?null:"rowgroup",ownerState:o,...i})})});function PI(t){return Pe("MuiToolbar",t)}Me("MuiToolbar",["root","gutters","regular","dense"]);const NI=t=>{const{classes:e,disableGutters:r,variant:n}=t;return Ke({root:["root",!r&&"gutters",n]},PI,e)},KI=me("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,!r.disableGutters&&e.gutters,e[r.variant]]}})(ke(({theme:t})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:t.spacing(2),paddingRight:t.spacing(2),[t.breakpoints.up("sm")]:{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:t.mixins.toolbar}]}))),Ac=O.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiToolbar"}),{className:A,component:a="div",disableGutters:i=!1,variant:o="regular",...s}=n,l={...n,component:a,disableGutters:i,variant:o},u=NI(l);return I.jsx(KI,{as:a,className:xe(u.root,A),ref:r,ownerState:l,...s})}),GI=vt(I.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),VI=vt(I.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),$I=O.forwardRef(function(e,r){const{backIconButtonProps:n,count:A,disabled:a=!1,getItemAriaLabel:i,nextIconButtonProps:o,onPageChange:s,page:l,rowsPerPage:u,showFirstButton:c,showLastButton:d,slots:h={},slotProps:f={},...p}=e,g=_o(),m=P=>{s(P,0)},w=P=>{s(P,l-1)},v=P=>{s(P,l+1)},B=P=>{s(P,Math.max(0,Math.ceil(A/u)-1))},b=h.firstButton??TA,E=h.lastButton??TA,C=h.nextButton??TA,F=h.previousButton??TA,y=h.firstButtonIcon??RT,x=h.lastButtonIcon??MT,Q=h.nextButtonIcon??VI,S=h.previousButtonIcon??GI,T=g?E:b,U=g?C:F,L=g?F:C,R=g?b:E,M=g?f.lastButton:f.firstButton,H=g?f.nextButton:f.previousButton,k=g?f.previousButton:f.nextButton,N=g?f.firstButton:f.lastButton;return I.jsxs("div",{ref:r,...p,children:[c&&I.jsx(T,{onClick:m,disabled:a||l===0,"aria-label":i("first",l),title:i("first",l),...M,children:g?I.jsx(x,{...f.lastButtonIcon}):I.jsx(y,{...f.firstButtonIcon})}),I.jsx(U,{onClick:w,disabled:a||l===0,color:"inherit","aria-label":i("previous",l),title:i("previous",l),...H??n,children:g?I.jsx(Q,{...f.nextButtonIcon}):I.jsx(S,{...f.previousButtonIcon})}),I.jsx(L,{onClick:v,disabled:a||(A!==-1?l>=Math.ceil(A/u)-1:!1),color:"inherit","aria-label":i("next",l),title:i("next",l),...k??o,children:g?I.jsx(S,{...f.previousButtonIcon}):I.jsx(Q,{...f.nextButtonIcon})}),d&&I.jsx(R,{onClick:B,disabled:a||l>=Math.ceil(A/u)-1,"aria-label":i("last",l),title:i("last",l),...N,children:g?I.jsx(y,{...f.firstButtonIcon}):I.jsx(x,{...f.lastButtonIcon})})]})});function zI(t){return Pe("MuiTablePagination",t)}const oo=Me("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);var Bg;const WI=me(gn,{name:"MuiTablePagination",slot:"Root",overridesResolver:(t,e)=>e.root})(ke(({theme:t})=>({overflow:"auto",color:(t.vars||t).palette.text.primary,fontSize:t.typography.pxToRem(14),"&:last-child":{padding:0}}))),_I=me(Ac,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(t,e)=>({[`& .${oo.actions}`]:e.actions,...e.toolbar})})(ke(({theme:t})=>({minHeight:52,paddingRight:2,[`${t.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[t.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${oo.actions}`]:{flexShrink:0,marginLeft:20}}))),XI=me("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(t,e)=>e.spacer})({flex:"1 1 100%"}),YI=me("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(t,e)=>e.selectLabel})(ke(({theme:t})=>({...t.typography.body2,flexShrink:0}))),jI=me(rc,{name:"MuiTablePagination",slot:"Select",overridesResolver:(t,e)=>({[`& .${oo.selectIcon}`]:e.selectIcon,[`& .${oo.select}`]:e.select,...e.input,...e.selectRoot})})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${oo.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),qI=me(s0,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(t,e)=>e.menuItem})({}),JI=me("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(t,e)=>e.displayedRows})(ke(({theme:t})=>({...t.typography.body2,flexShrink:0})));function ZI({from:t,to:e,count:r}){return`${t}–${e} of ${r!==-1?r:`more than ${e}`}`}function eL(t){return`Go to ${t} page`}const tL=t=>{const{classes:e}=t;return Ke({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},zI,e)},v0=O.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiTablePagination"}),{ActionsComponent:A=$I,backIconButtonProps:a,className:i,colSpan:o,component:s=gn,count:l,disabled:u=!1,getItemAriaLabel:c=eL,labelDisplayedRows:d=ZI,labelRowsPerPage:h="Rows per page:",nextIconButtonProps:f,onPageChange:p,onRowsPerPageChange:g,page:m,rowsPerPage:w,rowsPerPageOptions:v=[10,25,50,100],SelectProps:B={},showFirstButton:b=!1,showLastButton:E=!1,slotProps:C={},slots:F={},...y}=n,x=n,Q=tL(x),S=(C==null?void 0:C.select)??B,T=S.native?"option":qI;let U;(s===gn||s==="td")&&(U=o||1e3);const L=Co(S.id),R=Co(S.labelId),M=()=>l===-1?(m+1)*w:w===-1?l:Math.min(l,(m+1)*w);return I.jsx(WI,{colSpan:U,ref:r,as:s,ownerState:x,className:xe(Q.root,i),...y,children:I.jsxs(_I,{className:Q.toolbar,children:[I.jsx(XI,{className:Q.spacer}),v.length>1&&I.jsx(YI,{className:Q.selectLabel,id:R,children:h}),v.length>1&&I.jsx(jI,{variant:"standard",...!S.variant&&{input:Bg||(Bg=I.jsx(Jo,{}))},value:w,onChange:g,id:L,labelId:R,...S,classes:{...S.classes,root:xe(Q.input,Q.selectRoot,(S.classes||{}).root),select:xe(Q.select,(S.classes||{}).select),icon:xe(Q.selectIcon,(S.classes||{}).icon)},disabled:u,children:v.map(H=>O.createElement(T,{...!nA(T)&&{ownerState:x},className:Q.menuItem,key:H.label?H.label:H,value:H.value?H.value:H},H.label?H.label:H))}),I.jsx(JI,{className:Q.displayedRows,children:d({from:l===0?0:m*w+1,to:M(),count:l===-1?-1:l,page:m})}),I.jsx(A,{className:Q.actions,backIconButtonProps:a,count:l,nextIconButtonProps:f,onPageChange:p,page:m,rowsPerPage:w,showFirstButton:b,showLastButton:E,slotProps:C.actions,slots:F.actions,getItemAriaLabel:c,disabled:u})]})})});function rL(t){return Pe("MuiTableRow",t)}const wg=Me("MuiTableRow",["root","selected","hover","head","footer"]),nL=t=>{const{classes:e,selected:r,hover:n,head:A,footer:a}=t;return Ke({root:["root",r&&"selected",n&&"hover",A&&"head",a&&"footer"]},rL,e)},AL=me("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.head&&e.head,r.footer&&e.footer]}})(ke(({theme:t})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${wg.hover}:hover`]:{backgroundColor:(t.vars||t).palette.action.hover},[`&.${wg.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:dt(t.palette.primary.main,t.palette.action.selectedOpacity),"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:dt(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity)}}}))),Cg="tr",Qa=O.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiTableRow"}),{className:A,component:a=Cg,hover:i=!1,selected:o=!1,...s}=n,l=O.useContext(nc),u={...n,component:a,hover:i,selected:o,head:l&&l.variant==="head",footer:l&&l.variant==="footer"},c=nL(u);return I.jsx(AL,{as:a,ref:r,className:xe(c.root,A),role:a===Cg?null:"row",ownerState:u,...s})}),aL=vt(I.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");function iL(t){return Pe("MuiTableSortLabel",t)}const Yc=Me("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc","directionDesc","directionAsc"]),oL=t=>{const{classes:e,direction:r,active:n}=t,A={root:["root",n&&"active",`direction${Fe(r)}`],icon:["icon",`iconDirection${Fe(r)}`]};return Ke(A,iL,e)},sL=me(ii,{name:"MuiTableSortLabel",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.active&&e.active]}})(ke(({theme:t})=>({cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:(t.vars||t).palette.text.secondary},"&:hover":{color:(t.vars||t).palette.text.secondary,[`& .${Yc.icon}`]:{opacity:.5}},[`&.${Yc.active}`]:{color:(t.vars||t).palette.text.primary,[`& .${Yc.icon}`]:{opacity:1,color:(t.vars||t).palette.text.secondary}}}))),lL=me("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.icon,e[`iconDirection${Fe(r.direction)}`]]}})(ke(({theme:t})=>({fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:t.transitions.create(["opacity","transform"],{duration:t.transitions.duration.shorter}),userSelect:"none",variants:[{props:{direction:"desc"},style:{transform:"rotate(0deg)"}},{props:{direction:"asc"},style:{transform:"rotate(180deg)"}}]}))),uL=O.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiTableSortLabel"}),{active:A=!1,children:a,className:i,direction:o="asc",hideSortIcon:s=!1,IconComponent:l=aL,...u}=n,c={...n,active:A,direction:o,hideSortIcon:s,IconComponent:l},d=oL(c);return I.jsxs(sL,{className:xe(d.root,i),component:"span",disableRipple:!0,ownerState:c,ref:r,...u,children:[a,s&&!A?null:I.jsx(lL,{as:l,className:xe(d.icon),ownerState:c})]})});function cL(t){return Pe("MuiTextField",t)}Me("MuiTextField",["root"]);const fL={standard:Pl,filled:kl,outlined:Nl},dL=t=>{const{classes:e}=t;return Ke({root:["root"]},cL,e)},hL=me(gU,{name:"MuiTextField",slot:"Root",overridesResolver:(t,e)=>e.root})({}),Zf=O.forwardRef(function(e,r){const n=Ve({props:e,name:"MuiTextField"}),{autoComplete:A,autoFocus:a=!1,children:i,className:o,color:s="primary",defaultValue:l,disabled:u=!1,error:c=!1,FormHelperTextProps:d,fullWidth:h=!1,helperText:f,id:p,InputLabelProps:g,inputProps:m,InputProps:w,inputRef:v,label:B,maxRows:b,minRows:E,multiline:C=!1,name:F,onBlur:y,onChange:x,onFocus:Q,placeholder:S,required:T=!1,rows:U,select:L=!1,SelectProps:R,slots:M={},slotProps:H={},type:k,value:N,variant:P="outlined",...K}=n,W={...n,autoFocus:a,color:s,disabled:u,error:c,fullWidth:h,multiline:C,required:T,select:L,variant:P},X=dL(W),Z=Co(p),Ae=f&&Z?`${Z}-helper-text`:void 0,ie=B&&Z?`${Z}-label`:void 0,re=fL[P],z={slots:M,slotProps:{input:w,inputLabel:g,htmlInput:m,formHelperText:d,select:R,...H}},q={},ee=z.slotProps.inputLabel;P==="outlined"&&(ee&&typeof ee.shrink<"u"&&(q.notched=ee.shrink),q.label=B),L&&((!R||!R.native)&&(q.id=void 0),q["aria-describedby"]=void 0);const[se,te]=Rr("input",{elementType:re,externalForwardedProps:z,additionalProps:q,ownerState:W}),[ae,le]=Rr("inputLabel",{elementType:tT,externalForwardedProps:z,ownerState:W}),[ve,ge]=Rr("htmlInput",{elementType:"input",externalForwardedProps:z,ownerState:W}),[he,ye]=Rr("formHelperText",{elementType:xU,externalForwardedProps:z,ownerState:W}),[Se,Ce]=Rr("select",{elementType:rc,externalForwardedProps:z,ownerState:W}),we=I.jsx(se,{"aria-describedby":Ae,autoComplete:A,autoFocus:a,defaultValue:l,fullWidth:h,multiline:C,name:F,rows:U,maxRows:b,minRows:E,type:k,value:N,id:Z,inputRef:v,onBlur:y,onChange:x,onFocus:Q,placeholder:S,inputProps:ge,slots:{input:M.htmlInput?ve:void 0},...te});return I.jsxs(hL,{className:xe(X.root,o),disabled:u,error:c,fullWidth:h,ref:r,required:T,color:s,variant:P,ownerState:W,...K,children:[B!=null&&B!==""&&I.jsx(ae,{htmlFor:Z,id:ie,...le,children:B}),L?I.jsx(Se,{"aria-describedby":Ae,id:Z,labelId:ie,value:N,input:we,...Ce,children:i}):we,f&&I.jsx(he,{id:Ae,...ye,children:f})]})}),m0="Roboto",qV=Xo({palette:{primary:{dark:"#000000",main:"#808080",light:"#b1b1b1"},secondary:{dark:"#95b7ce",main:"#c5d9e8",light:"#ddebf5"}}}),Ee=new Map([["Primary",new Map([[0,"#000000"],[10,"#21005D"],[20,"#381E72"],[30,"#4F378B"],[40,"#6750A4"],[50,"#7F67BE"],[60,"#9A82DB"],[70,"#B69DF8"],[80,"#D0BCFF"],[90,"#EADDFF"],[95,"#F6EDFF"],[99,"#FFFBFE"],[100,"#FFFFFF"]])],["Secondary",new Map([[0,"#000000"],[10,"#1D192B"],[20,"#332D41"],[30,"#4A4458"],[40,"#625B71"],[50,"#7A7289"],[60,"#958DA5"],[70,"#B0A7C0"],[80,"#CCC2DC"],[90,"#E8DEF8"],[95,"#F6EDFF"],[99,"#FFFBFE"],[100,"#FFFFFF"]])],["Tertiary",new Map([[0,"#000000"],[10,"#31111D"],[20,"#492532"],[30,"#633B48"],[40,"#7D5260"],[50,"#986977"],[60,"#B58392"],[70,"#D29DAC"],[80,"#EFB8C8"],[90,"#FFD8E4"],[95,"#FFECF1"],[99,"#FFFBFA"],[100,"#FFFFFF"]])],["Error",new Map([[0,"#000000"],[10,"#410E0B"],[20,"#601410"],[30,"#8C1D18"],[40,"#B3261E"],[50,"#DC362E"],[60,"#E46962"],[70,"#EC928E"],[80,"#F2B8B5"],[90,"#F9DEDC"],[95,"#FCEEEE"],[99,"#FFFBF9"],[100,"#FFFFFF"]])],["Neutral",new Map([[0,"#000000"],[10,"#1C1B1F"],[20,"#313033"],[30,"#484649"],[40,"#605D62"],[50,"#787579"],[60,"#939094"],[70,"#AEAAAE"],[80,"#C9C5CA"],[90,"#E6E1E5"],[95,"#F4EFF4"],[99,"#FFFBFE"],[100,"#FFFFFF"]])],["NeutralVariant",new Map([[0,"#000000"],[10,"#1D1A22"],[20,"#322F37"],[30,"#49454F"],[40,"#605D66"],[50,"#79747E"],[60,"#938F99"],[70,"#AEA9B4"],[80,"#CAC4D0"],[90,"#E7E0EC"],[95,"#F5EEFA"],[99,"#FFFBFE"],[100,"#FFFFFF"]])]]),JV=new Map([["Primary",new Map([["Base",Ee.get("Primary").get(40)],["On",Ee.get("Primary").get(100)],["Container",Ee.get("Primary").get(90)],["OnContainer",Ee.get("Primary").get(10)]])],["Secondary",new Map([["Base",Ee.get("Secondary").get(40)],["On",Ee.get("Secondary").get(100)],["Container",Ee.get("Secondary").get(90)],["OnContainer",Ee.get("Secondary").get(10)]])],["Tertiary",new Map([["Base",Ee.get("Tertiary").get(40)],["On",Ee.get("Tertiary").get(100)],["Container",Ee.get("Tertiary").get(90)],["OnContainer",Ee.get("Tertiary").get(10)]])],["Error",new Map([["Base",Ee.get("Error").get(40)],["On",Ee.get("Error").get(100)],["Container",Ee.get("Error").get(90)],["OnContainer",Ee.get("Error").get(10)]])],["Neutral",new Map([["Background",Ee.get("Neutral").get(99)],["OnBackground",Ee.get("Neutral").get(10)],["Surface",Ee.get("Neutral").get(99)],["OnSurface",Ee.get("Neutral").get(10)]])],["NeutralVariant",new Map([["SurfaceVariant",Ee.get("NeutralVariant").get(90)],["OnSurfaceVariant",Ee.get("NeutralVariant").get(30)],["Outline",Ee.get("NeutralVariant").get(50)]])]]),ZV=new Map([["Primary",new Map([["Base",Ee.get("Primary").get(80)],["On",Ee.get("Primary").get(20)],["Container",Ee.get("Primary").get(30)],["OnContainer",Ee.get("Primary").get(90)]])],["Secondary",new Map([["Base",Ee.get("Secondary").get(80)],["On",Ee.get("Secondary").get(20)],["Container",Ee.get("Secondary").get(30)],["OnContainer",Ee.get("Secondary").get(90)]])],["Tertiary",new Map([["Base",Ee.get("Tertiary").get(80)],["On",Ee.get("Tertiary").get(20)],["Container",Ee.get("Tertiary").get(30)],["OnContainer",Ee.get("Tertiary").get(90)]])],["Error",new Map([["Base",Ee.get("Error").get(80)],["On",Ee.get("Error").get(20)],["Container",Ee.get("Error").get(30)],["OnContainer",Ee.get("Error").get(90)]])],["Neutral",new Map([["Background",Ee.get("Neutral").get(10)],["OnBackground",Ee.get("Neutral").get(90)],["Surface",Ee.get("Neutral").get(10)],["OnSurface",Ee.get("Neutral").get(80)]])],["NeutralVariant",new Map([["SurfaceVariant",Ee.get("NeutralVariant").get(30)],["OnSurfaceVariant",Ee.get("NeutralVariant").get(80)],["Outline",Ee.get("NeutralVariant").get(60)]])]]),y0=new Map([["body",new Map([["large","16px"],["medium","14px"],["small","12px"]])],["label",new Map([["large","14px"],["medium","12px"],["small","11px"]])],["title",new Map([["large","22px"],["medium","16px"],["small","14px"]])],["headline",new Map([["large","32px"],["medium","28px"],["small","24px"]])],["display",new Map([["large","57px"],["medium","45px"],["small","36px"]])]]),B0=new Map([["body",new Map([["large","400"],["medium","400"],["small","400"]])],["label",new Map([["large","500"],["medium","500"],["small","500"]])],["title",new Map([["large","400"],["medium","500"],["small","500"]])],["headline",new Map([["large","400"],["medium","400"],["small","400"]])],["display",new Map([["large","400"],["medium","400"],["small","400"]])]]),pL=new Map([["body",new Map([["large","24px"],["medium","20px"],["small","16px"]])],["label",new Map([["large","20px"],["medium","16px"],["small","16px"]])],["title",new Map([["large","28px"],["medium","24px"],["small","20px"]])],["headline",new Map([["large","40px"],["medium","36px"],["small","32px"]])],["display",new Map([["large","64px"],["medium","52px"],["small","44px"]])]]),gL=new Map([["title",new Map([["medium","0.15px"],["small","0.1px"]])],["label",new Map([["large","0.1px"],["medium","0.5px"],["small","0.5px"]])],["display",new Map([["large","0.15px"],["medium","0.25px"],["small","0.4px"]])]]),w0=me(Bt)(({type:t,size:e})=>{var r,n,A,a;return{fontFamily:m0,fontSize:(r=y0.get(t))==null?void 0:r.get(e),fontWeight:(n=B0.get(t))==null?void 0:n.get(e),lineHeight:(A=pL.get(t))==null?void 0:A.get(e),letterSpacing:(a=gL.get(t))==null?void 0:a.get(e)}}),Ma=t=>I.jsx(w0,{type:"title",size:"small",variant:"h6",sx:{flexGrow:t.flexGrow},style:{marginRight:t.flexGrow?"0px":t.marginRight,cursor:"pointer",fontWeight:400,...t},onClick:t.onClick,className:"app-bar-menu-item",children:t.children});Ma.__docgenInfo={description:"",methods:[],displayName:"MenuItem",props:{onClick:{required:!1,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""},children:{required:!0,tsType:{name:"ReactReactNode",raw:"React.ReactNode"},description:""}}};const vL=vt(I.jsx("path",{d:"m7 10 5 5 5-5z"}),"ArrowDropDown"),C0=me(ai)(()=>({boxShadow:"0px 2px 6px 2px rgba(0, 0, 0, 0.15), 0px 1px 2px rgba(0, 0, 0, 0.3)",borderRadius:"4px",backgroundColor:Ee.get("Primary").get(100),textAlign:"center"})),b0=t=>{const e=Cr.useRef(null),[r,n]=O.useState(!1);return I.jsxs(qa,{direction:"row",children:[I.jsx("div",{onClick:t.onClick,ref:e,style:{cursor:"pointer"},onMouseOver:()=>n(!0),children:I.jsx(w0,{type:"title",size:"small",variant:"h6",sx:{flexGrow:t.flexGrow},style:{fontWeight:400,display:"inline-block",...t,marginRight:"7.25px"},onClick:t.onClick,className:"app-bar-menu-item",children:t.children})}),I.jsx(vL,{style:{marginRight:t.flexGrow?"0px":t.marginRight,marginTop:"-3px",cursor:"pointer"},onMouseOver:()=>n(!0)}),e.current&&I.jsx(Yu,{anchorEl:e.current,open:r,placement:"bottom-start",transition:!0,onMouseLeave:()=>n(!1),children:({TransitionProps:A,placement:a})=>I.jsx(KA,{...A,style:{transformOrigin:a==="bottom-start"?"left top":"left bottom"},children:I.jsx(C0,{style:{width:"150px"},children:I.jsx(n0,{onClickAway:()=>n(!1),children:I.jsx(mh,{style:{textAlign:"center"},children:t.menu})})})})})]})};b0.__docgenInfo={description:"",methods:[],displayName:"DropDownMenuItem",props:{onClick:{required:!1,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""},children:{required:!0,tsType:{name:"ReactReactNode",raw:"React.ReactNode"},description:""},menu:{required:!0,tsType:{name:"ReactReactNode",raw:"React.ReactNode"},description:""}}};const E0=me(TF)(t=>({backgroundColor:"#ffffff",color:"#000000",alignItems:t.centered===!0?"center":"left"})),vn=({children:t,onClick:e})=>I.jsx(Ma,{onClick:e,height:"48px",fontSize:"14px",lineHeight:"24px",marginTop:"5px",children:t}),mL=({onPortalClicked:t})=>I.jsxs(I.Fragment,{children:[I.jsx(vn,{onClick:()=>t&&t(0),children:"Disease/Trait"}),I.jsx(vn,{onClick:()=>t&&t(1),children:"Gene/b-cCRE"}),I.jsx(vn,{onClick:()=>t&&t(2),children:"SNP/QTL"}),I.jsx(vn,{onClick:()=>t&&t(3),children:"Single-Cell"})]}),yL=t=>I.jsx(tc,{sx:{flexGrow:1},children:I.jsx(E0,{position:"static",...t,children:I.jsxs(Ac,{sx:{gap:4},children:[I.jsxs(Ma,{onClick:t.onHomepageClicked,fontWeight:700,fontSize:"20px",lineHeight:"15px",flexGrow:1,children:["psych",I.jsx("br",{})," screen"]}),I.jsx(b0,{menu:I.jsx(mL,{onPortalClicked:t.onPortalClicked}),children:"Portals"}),I.jsx(Ma,{onClick:t.onAboutClicked,children:"About Us"}),I.jsx(Ma,{onClick:t.onDownloadsClicked,children:"Downloads"})]})})});vn.__docgenInfo={description:"",methods:[],displayName:"PortalsMenuItem",props:{children:{required:!1,tsType:{name:"ReactReactNode",raw:"React.ReactNode"},description:""},onClick:{required:!1,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""}}};yL.__docgenInfo={description:"",methods:[],displayName:"AppBar",props:{onHomepageClicked:{required:!1,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""},onAboutClicked:{required:!1,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""},onPortalClicked:{required:!1,tsType:{name:"signature",type:"function",raw:"(index: number) => void",signature:{arguments:[{type:{name:"number"},name:"index"}],return:{name:"void"}}},description:""},onDownloadsClicked:{required:!1,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""},centered:{required:!1,tsType:{name:"boolean"},description:""}}};const BL=vt(I.jsx("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu"),x0=t=>{const e=Cr.useRef(null),[r,n]=O.useState(!1);return I.jsxs(I.Fragment,{children:[I.jsx("div",{ref:e,children:I.jsx(BL,{style:{marginRight:t.flexGrow?"0px":t.marginRight,marginTop:"-3px",cursor:"pointer"},onClick:()=>n(!0)})}),e.current&&I.jsx(Yu,{anchorEl:e.current,open:r,placement:"bottom-start",transition:!0,disablePortal:!0,children:({TransitionProps:A,placement:a})=>I.jsx(KA,{...A,style:{transformOrigin:a==="bottom-start"?"left top":"left bottom"},children:I.jsx(C0,{style:{width:"150px"},children:I.jsx(n0,{onClickAway:()=>n(!1),children:I.jsx(mh,{style:{textAlign:"center"},children:t.menu})})})})})]})};x0.__docgenInfo={description:"",methods:[],displayName:"OptionsMenuItem",props:{onClick:{required:!1,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""},children:{required:!0,tsType:{name:"ReactReactNode",raw:"React.ReactNode"},description:""},menu:{required:!0,tsType:{name:"ReactReactNode",raw:"React.ReactNode"},description:""}}};const wL=({onItemClicked:t})=>I.jsxs(I.Fragment,{children:[I.jsx(vn,{onClick:()=>t&&t(-1),children:"About"}),I.jsx(vn,{onClick:()=>t&&t(0),children:"Disease/Trait Portal"}),I.jsx(vn,{onClick:()=>t&&t(1),children:"Gene/b-cCRE Portal"}),I.jsx(vn,{onClick:()=>t&&t(2),children:"SNP/QTL Portal"}),I.jsx(vn,{onClick:()=>t&&t(3),children:"Single-Cell Portal"})]}),CL=t=>I.jsx(tc,{sx:{flexGrow:1},children:I.jsx(E0,{position:"static",elevation:0,children:I.jsxs(Ac,{style:{paddingLeft:"19px"},children:[I.jsx(x0,{marginRight:"32px",menu:I.jsx(wL,{onItemClicked:t.onPortalClicked}),children:"Portals"}),I.jsx(Ma,{flexGrow:1,textAlign:"center",fontSize:"22px",lineHeight:"28px",fontWeight:400,children:t.title||""})]})})});CL.__docgenInfo={description:"",methods:[],displayName:"TabletAppBar",props:{onHomepageClicked:{required:!1,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""},onAboutClicked:{required:!1,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""},onPortalClicked:{required:!1,tsType:{name:"signature",type:"function",raw:"(index: number) => void",signature:{arguments:[{type:{name:"number"},name:"index"}],return:{name:"void"}}},description:""},onDownloadsClicked:{required:!1,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""},centered:{required:!1,tsType:{name:"boolean"},description:""},title:{required:!1,tsType:{name:"string"},description:""}}};const bL=new Map([["filled",new Map([["",{backgroundColor:Ee.get("Primary").get(0),color:"#ffffff"}],["&:hover",{backgroundColor:Ee.get("Primary").get(0),color:"#ffffff",boxShadow:"0px 1px 2px rgba(0, 0, 0, 0.3), 0px 1px 3px 1px rgba(0, 0, 0, 0.15)"}],["&:focus",{backgroundColor:Ee.get("Primary").get(0),color:"#ffffff"}],["&:pressed",{backgroundColor:Ee.get("Primary").get(0),color:"#ffffff"}],["&:disabled",{backgroundColor:"rgba(31, 31, 31, 0.12)",color:"#1C1B1F",opacity:.38}]])],["outlined",new Map([["",{border:`1px solid ${Ee.get("NeutralVariant").get(50)}`,backgroundColor:Ee.get("Primary").get(100),color:Ee.get("Primary").get(0)}],["&:hover",{border:`1px solid ${Ee.get("NeutralVariant").get(50)}`,backgroundColor:"#F2F2F2",color:Ee.get("Primary").get(0)}],["&:focus",{border:"1px solid #000000",backgroundColor:"rgba(103, 80, 164, 0.12)",color:Ee.get("Primary").get(0),fontWeight:500}],["&:pressed",{backgroundColor:"rgba(103, 80, 164, 0.12)",border:`1px solid ${Ee.get("NeutralVariant").get(50)}`,color:Ee.get("Primary").get(0),fontWeight:500}],["&:disabled",{backgroundColor:"#ffffff",border:"1px solid rgba(31, 31, 31, 0.12)",color:"#1C1B1F",opacity:.38,fontWeight:500}]])]]),EL=new Map([["filled",new Map([["",{backgroundColor:Ee.get("Primary").get(80),color:Ee.get("Primary").get(20)}],["&:hover",{backgroundColor:Ee.get("Primary").get(80),color:Ee.get("Primary").get(20)}],["&:focus",{backgroundColor:Ee.get("Primary").get(80),color:Ee.get("Primary").get(20)}],["&:pressed",{backgroundColor:Ee.get("Primary").get(80),color:Ee.get("Primary").get(20)}],["&:disabled",{backgroundColor:"rgba(227, 227, 227, 0.12)",color:"#E6E1E5",opacity:.38}]])],["outlined",new Map([["",{border:`1px solid ${Ee.get("NeutralVariant").get(60)}`,backgroundColor:"#1F1F1F",color:Ee.get("Primary").get(80)}],["&:hover",{border:`1px solid ${Ee.get("NeutralVariant").get(60)}`,backgroundColor:"rgba(208, 188, 255, 0.12)",color:Ee.get("Primary").get(80),fontWeight:500}],["&:focus",{border:"1px solid #000000",backgroundColor:"rgba(208, 188, 255, 0.12)",color:Ee.get("Primary").get(80),fontWeight:500}],["&:pressed",{backgroundColor:"rgba(208, 188, 255, 0.12)",border:`1px solid ${Ee.get("NeutralVariant").get(80)}`,color:Ee.get("Primary").get(80),fontWeight:500}],["&:disabled",{backgroundColor:"#ffffff",border:"1px solid rgba(227, 227, 227, 0.12)",color:"#1F1F1F",opacity:.38,fontWeight:500}]])]]),xL=me(qn)(({bvariant:t,btheme:e})=>{var n,A,a,i,o,s,l;const r=e==="light"?bL:EL;return{borderRadius:"100px",...r.get(t).get(""),fontFamily:m0,fontSize:(n=y0.get("body"))==null?void 0:n.get("medium"),fontWeight:(A=B0.get("body"))==null?void 0:A.get("medium"),fontVariantCaps:"normal","&:active":(a=r.get(t))==null?void 0:a.get("&:active"),"&:focus":(i=r.get(t))==null?void 0:i.get("&:focus"),"&:hover":(o=r.get(t))==null?void 0:o.get("&:hover"),"&:pressed":(s=r.get(t))==null?void 0:s.get("&:pressed"),"&:disabled":(l=r.get(t))==null?void 0:l.get("&:disabled")}}),FL=vt(I.jsx("path",{d:"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"}),"ArrowForward"),QL=me(yS)(()=>({background:"#FFFFFF","&:hover":{background:"#F5F5F5"},flex:"none",order:1,flexGrow:0,cursor:"pointer",boxSizing:"border-box",width:"651px",border:"1px solid",borderColor:"#828282",borderRadius:"12px",boxShadow:"none"})),SL=t=>I.jsx(qa,{spacing:t.cardSpacing||2,children:t.cardContentText.map(e=>I.jsx(QL,{sx:{maxWidth:t.width||500},variant:"outlined",style:{flex:"none",order:1,flexGrow:0,cursor:"pointer",boxSizing:"border-box",width:"651px",border:"1px solid",borderColor:"#828282",borderRadius:"12px",boxShadow:"none"},children:I.jsx(ES,{onClick:r=>{t.onCardClick&&t.onCardClick(e.val)},children:I.jsx(SS,{children:I.jsxs(zc,{container:!0,children:[I.jsxs(zc,{item:!0,sm:10,children:[I.jsx(Bt,{fontFamily:"Helvetica Neue",gutterBottom:!0,variant:"h5",component:"div",children:e.cardLabel}),I.jsx(Bt,{variant:"body2",color:"text.secondary",children:e.cardDesc})]}),I.jsx(zc,{item:!0,sm:2,children:I.jsx(FL,{onClick:r=>{t.onArrowClick&&t.onArrowClick(e.val)},style:{width:"50px",height:"50px",color:"#E0E0E0"}})})]})})})},e.cardLabel))});SL.__docgenInfo={description:"",methods:[],displayName:"HorizontalCard",props:{width:{required:!1,tsType:{name:"number"},description:""},cardSpacing:{required:!1,tsType:{name:"number"},description:""},cardContentText:{required:!0,tsType:{name:"Array",elements:[{name:"signature",type:"object",raw:"{cardLabel: string, val?: string, cardDesc: string}",signature:{properties:[{key:"cardLabel",value:{name:"string",required:!0}},{key:"val",value:{name:"string",required:!1}},{key:"cardDesc",value:{name:"string",required:!0}}]}}],raw:"{cardLabel: string, val?: string, cardDesc: string}[]"},description:""},onCardClick:{required:!1,tsType:{name:"signature",type:"function",raw:"(val?: string) => void",signature:{arguments:[{type:{name:"string"},name:"val"}],return:{name:"void"}}},description:""},onArrowClick:{required:!1,tsType:{name:"signature",type:"function",raw:"(val?: string) => void",signature:{arguments:[{type:{name:"string"},name:"val"}],return:{name:"void"}}},description:""}}};const UL=Xo({components:{MuiInput:{defaultProps:{disableUnderline:!0}}}}),TL=me(Zf)(()=>({fontSize:"16px",lineHeight:"24px",letterSpacing:"0.5px",fontWeight:400,height:"56px",borderRadius:"100px",border:"0px",backgroundColor:"#F2F2F2"})),F0=t=>I.jsx(Nx,{theme:UL,children:I.jsx(TL,{label:"What can we help you find?",variant:"standard",helperText:"e.g. schizophrenia, years of education",InputProps:{endAdornment:t.unadorned?void 0:I.jsx(qU,{position:"end",style:{marginLeft:"-10px"},children:I.jsx(xL,{bvariant:"filled",btheme:"light",onClick:t.onSearchButtonClick,children:"Search"})}),style:{height:"76px",marginRight:t.unadorned?"0px":"10px",marginTop:"0px",backgroundColor:"none",width:`${t.width||436}px`}},inputProps:{style:{height:"24px",paddingTop:"16px",paddingLeft:"16px",paddingBottom:"12px"}},FormHelperTextProps:{style:{paddingLeft:"28px",lineHeight:"16px",fontSize:"12px",letterSpacing:"0.4px",color:"#8D8D8D"}},InputLabelProps:{style:{marginTop:"-18px",paddingTop:"16px",paddingBottom:"16px",paddingLeft:"28px",color:"#8D8D8D"}},...t})});F0.__docgenInfo={description:"",methods:[],displayName:"SearchBox",props:{width:{required:!1,tsType:{name:"number"},description:""},unadorned:{required:!1,tsType:{name:"boolean"},description:""},onSearchButtonClick:{required:!1,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""}}};const IL=me(rc)(()=>({fontSize:"16px",lineHeight:"24px",letterSpacing:"0.5px",fontWeight:400,height:"56px",padding:"16px",color:"#000000"})),Q0=t=>I.jsx(IL,{label:"What can we help you find?",variant:"standard",style:{width:`${t.width||172}px`},SelectDisplayProps:{style:{paddingTop:"14px"}},...t,children:t.children});Q0.__docgenInfo={description:"",methods:[],displayName:"Select",props:{width:{required:!1,tsType:{name:"number"},description:""}}};const LL=t=>{const[e,r]=O.useState(t.selectOptions[0]),n=O.useMemo(()=>t.reactiveThreshold&&(t.containerWidth||0){r(t.selectOptions[A.target.value]),t.onSelectChange&&t.onSelectChange(t.selectOptions[A.target.value])},defaultValue:0,variant:"filled",disableUnderline:!0,style:{borderTopLeftRadius:"100px",borderBottomLeftRadius:"100px",borderTopRightRadius:n?"100px":"0px",borderBottomRightRadius:n?"100px":"0px",backgroundColor:"#F2F2F2",paddingTop:"11px",fontSize:"16px",marginBottom:"16px",width:n?`${t.reactiveWidth}px`:void 0,textAlign:"center"},children:t.selectOptions.map((A,a)=>I.jsx(s0,{value:a,children:A.name},A.value))}),n?I.jsx("br",{style:{lineHeight:"16px"}}):null,I.jsx(F0,{onChange:A=>t.onSearchChange&&t.onSearchChange(A.target.value),helperText:e.helperText,width:n?t.reactiveWidth:void 0,unadorned:!!n,...t,style:{...t.style,borderTopLeftRadius:t.reactiveThreshold&&n?"100px":"0px",borderBottomLeftRadius:t.reactiveThreshold&&n?"100px":"0px"}})]})};LL.__docgenInfo={description:"",methods:[],displayName:"SearchBoxWithSelect",props:{width:{required:!1,tsType:{name:"number"},description:""},unadorned:{required:!1,tsType:{name:"boolean"},description:""},onSearchButtonClick:{required:!1,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""},selectOptions:{required:!0,tsType:{name:"Array",elements:[{name:"signature",type:"object",raw:`{ value: string; name: string; helperText: string; @@ -137,32 +137,40 @@ To suppress this warning, you need to explicitly provide the \`palette.${e}Chann value: string; name: string; helperText: string; -}`,signature:{properties:[{key:"value",value:{name:"string",required:!0}},{key:"name",value:{name:"string",required:!0}},{key:"helperText",value:{name:"string",required:!0}}]}},name:"option"}],return:{name:"void"}}},description:""},onSearchChange:{required:!1,tsType:{name:"signature",type:"function",raw:"(value: string) => void",signature:{arguments:[{type:{name:"string"},name:"value"}],return:{name:"void"}}},description:""},reactiveThreshold:{required:!1,tsType:{name:"number"},description:""},reactiveWidth:{required:!1,tsType:{name:"number"},description:""},containerWidth:{required:!1,tsType:{name:"number"},description:""}}};function DL(t){return`${t}`}const RL=t=>{const[e,r]=Cr.useState([t.defaultStart||t.value&&t.value[0]||-10,t.defaultEnd||t.value&&t.value[1]||10]);O.useEffect(()=>{t.value&&(r(t.value),s(t.value))},[t.value]),O.useEffect(()=>{t.onSliderChange&&t.onSliderChange(e)});const n=t.min?t.min:0,A=t.max?t.max:100,a=t.step?t.step:.01,i=t.minDistance?t.minDistance:0,[o,s]=Cr.useState([e[0],e[1]]),l=m=>{s([m.target.value,e[1]])},u=m=>{s([e[0],m.target.value])},c=(m,B,v)=>{Array.isArray(B)&&(v===0?(r([Number(Math.min(B[0],e[1]-i).toFixed(5)),e[1]]),s([Number(Math.min(B[0],e[1]-i).toFixed(5)),e[1]])):(r([e[0],Number(Math.max(B[1],e[0]+i).toFixed(5))]),s([e[0],Number(Math.max(B[1],e[0]+i).toFixed(5))])))},d=()=>{t.onSliderChangeCommitted&&t.onSliderChangeCommitted(e)},h=m=>{const B=Number(o[0]),v=e[1];m.key=="Enter"&&(B<=v-i&&B>=n&&r([B,v]),B>v-i&&s([e[0],v]),B{const m=Number(o[0]),B=e[1];m<=B-i&&m>=n&&r([m,B]),m>B-i&&s([e[0],B]),m{const B=e[0],v=Number(o[1]);m.key=="Enter"&&(v>=B+i&&v<=A&&r([B,v]),vA&&s([B,e[1]]))},g=()=>{const m=e[0],B=Number(o[1]);B>=m+i&&B<=A&&r([m,B]),BA&&s([m,e[1]])};return I.jsxs(tc,{sx:{width:t.width},children:[I.jsx(Bt,{children:t.title}),I.jsx(hI,{getAriaLabel:()=>"Minimum distance",value:e,onChange:c,onChangeCommitted:d,valueLabelDisplay:"auto",getAriaValueText:DL,disableSwap:!0,min:n,max:A,step:a,sx:{height:2}}),I.jsxs(ws,{container:!0,spacing:1,children:[I.jsx(ws,{size:5.5,children:I.jsx(Zf,{value:o[0],size:"small",fullWidth:!0,variant:"outlined",onChange:l,onBlur:f,onKeyDown:h,inputProps:{variant:"outlined",type:"text","aria-labelledby":"input-slider"}})}),I.jsx(ws,{sx:{display:"inline-grid",alignItems:"center"},size:1,children:I.jsx(Bt,{sx:{justifySelf:"center"},children:"–"})}),I.jsx(ws,{size:5.5,children:I.jsx(Zf,{value:o[1],size:"small",fullWidth:!0,variant:"outlined",onChange:u,onBlur:g,onKeyDown:p,inputProps:{type:"text","aria-labelledby":"input-slider"}})})]})]})};RL.__docgenInfo={description:"",methods:[],displayName:"RangeSlider",props:{title:{required:!0,tsType:{name:"string"},description:""},width:{required:!0,tsType:{name:"union",raw:"number | string",elements:[{name:"number"},{name:"string"}]},description:""},defaultStart:{required:!1,tsType:{name:"number"},description:""},defaultEnd:{required:!1,tsType:{name:"number"},description:""},minDistance:{required:!1,tsType:{name:"number"},description:""},onSliderChange:{required:!1,tsType:{name:"signature",type:"function",raw:"(value: number[]) => void",signature:{arguments:[{type:{name:"Array",elements:[{name:"number"}],raw:"number[]"},name:"value"}],return:{name:"void"}}},description:""},onSliderChangeCommitted:{required:!1,tsType:{name:"signature",type:"function",raw:"(value: number[]) => void",signature:{arguments:[{type:{name:"Array",elements:[{name:"number"}],raw:"number[]"},name:"value"}],return:{name:"void"}}},description:""},value:{required:!1,tsType:{name:"Array",elements:[{name:"number"}],raw:"number[]"},description:""}}};function bg(t){const e=parseFloat(t);return!isNaN(e)&&isFinite(e)}function ML(t,e){return bg(t)&&bg(e)?parseFloat(t)-parseFloat(e):t.localeCompare?t.localeCompare(e):0}function OL(t,e){switch(e.type){case"pageChanged":return{...t,page:e.page};case"searchChanged":return{...t,page:0,filter:e.value};case"sortChanged":return{...t,sort:{column:e.sortColumn,asc:e.sortColumn===t.sort.column?!t.sort.asc:!0}};case"modalChanged":return{...t,showAddColumnsModal:e.showAddColumnsModal};case"columnsChanged":return{...t,columns:e.columns};case"mousedOver":return console.log("moused over"),{...t,mousedOver:e.index}}}const S0=vt(I.jsx("path",{d:"M5 20h14v-2H5zM19 9h-4V3H9v6H5l7 7z"}),"Download"),HL=vt(I.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add"),U0=vt(I.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z"}),"Info"),kL=vt(I.jsx("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"InfoOutlined"),PL=vt(I.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"Search"),NL=vt(I.jsx("path",{d:"M6.23 20.23 8 22l10-10L8 2 6.23 3.77 14.46 12z"}),"ArrowForwardIos"),KL=vt(I.jsx("path",{d:"M17.77 3.77 16 2 6 12l10 10 1.77-1.77L9.54 12z"}),"ArrowBackIosNew"),GL=me("div")(({theme:t})=>({position:"relative",borderRadius:t.shape.borderRadius,backgroundColor:dt(t.palette.common.white,.75),"&:hover":{backgroundColor:dt(t.palette.common.white,.95)},marginLeft:0,width:"100%",[t.breakpoints.up("sm")]:{marginLeft:t.spacing(1),width:"auto"}})),VL=me("div")(({theme:t})=>({padding:t.spacing(0,2),height:"100%",position:"absolute",pointerEvents:"none",display:"flex",alignItems:"center",justifyContent:"center"})),$L=me(Jo)(({theme:t})=>({color:"inherit","& .MuiInputBase-input":{padding:t.spacing(1,1,1,0),paddingLeft:`calc(1em + ${t.spacing(4)})`,transition:t.transitions.create("width"),width:"100%",[t.breakpoints.up("sm")]:{width:"12ch","&:focus":{width:"20ch"}}}})),zL={position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:400,bgcolor:"background.paper",border:"2px solid #000",boxShadow:24,p:4},WL=t=>{var C,F,w;const[e,r]=O.useState(t.page||0),[n,A]=O.useState(()=>Array.isArray(t.itemsPerPage)?t.itemsPerPage[0]:typeof t.itemsPerPage=="number"?t.itemsPerPage:5),a=x=>{r(x)},i=x=>{A(+x.target.value),r(0)},o=x=>{const Q=[];for(let S=1;S{JSON.stringify(x)===JSON.stringify(S)&&(Q=!0)}),!!Q):JSON.stringify(x)===JSON.stringify(t.highlighted)}const l=O.useMemo(()=>t.noOfDefaultColumns||t.columns.length,[t.noOfDefaultColumns,t.columns]),[u,c]=O.useReducer(OL,{sort:{column:t.sortColumn||0,asc:!!t.sortDescending},filter:"",page:0,columns:t.columns.length<=l?t.columns:t.defaultColumnsToShow?t.columns.filter(x=>{var Q;return(Q=t.defaultColumnsToShow)==null?void 0:Q.includes(x.header)}):t.columns.slice(0,l),showAddColumnsModal:!1}),d=O.useCallback((x,Q)=>{for(const S in u.columns){const T=u.columns[S];if(T.unsearchable)continue;if(T.search&&T.search(x)||T.value(x).toString().toLowerCase().includes(Q.toLowerCase()))return!0}return!1},[u.columns]),h=O.useCallback(x=>{const Q=u.columns[u.sort.column].sort||((T,U)=>ML(u.columns[u.sort.column].value(T),u.columns[u.sort.column].value(U))),S=x.sort(Q);return u.sort.asc||S.reverse(),S},[u.columns,u.sort]),f=O.useCallback((x,Q)=>Q===""?[...x]:x.filter(S=>d(S,Q)),[d]),p=O.useMemo(()=>h(f(t.rows,u.filter||t.search||"")),[f,h,u.filter,t.rows,t.search]),g=O.useMemo(()=>{var Q;const x=p.slice(e*n,(e+1)*n);return(Q=t.onDisplayedRowsChange)==null||Q.call(t,e,x),x},[p,e,n,t.onDisplayedRowsChange]),m=e>0?Math.max(0,(1+e)*n-t.rows.length):0,B=O.useCallback(()=>{const x=u.columns.map(U=>U.header).join(" ")+` -`+p.map(U=>u.columns.map(L=>L.value(U)).join(" ")).join(` +}`,signature:{properties:[{key:"value",value:{name:"string",required:!0}},{key:"name",value:{name:"string",required:!0}},{key:"helperText",value:{name:"string",required:!0}}]}},name:"option"}],return:{name:"void"}}},description:""},onSearchChange:{required:!1,tsType:{name:"signature",type:"function",raw:"(value: string) => void",signature:{arguments:[{type:{name:"string"},name:"value"}],return:{name:"void"}}},description:""},reactiveThreshold:{required:!1,tsType:{name:"number"},description:""},reactiveWidth:{required:!1,tsType:{name:"number"},description:""},containerWidth:{required:!1,tsType:{name:"number"},description:""}}};function DL(t){return`${t}`}const RL=t=>{const[e,r]=Cr.useState([t.defaultStart||t.value&&t.value[0]||-10,t.defaultEnd||t.value&&t.value[1]||10]);O.useEffect(()=>{t.value&&(r(t.value),s(t.value))},[t.value]),O.useEffect(()=>{t.onSliderChange&&t.onSliderChange(e)});const n=t.min?t.min:0,A=t.max?t.max:100,a=t.step?t.step:.01,i=t.minDistance?t.minDistance:0,[o,s]=Cr.useState([e[0],e[1]]),l=m=>{s([m.target.value,e[1]])},u=m=>{s([e[0],m.target.value])},c=(m,w,v)=>{Array.isArray(w)&&(v===0?(r([Number(Math.min(w[0],e[1]-i).toFixed(5)),e[1]]),s([Number(Math.min(w[0],e[1]-i).toFixed(5)),e[1]])):(r([e[0],Number(Math.max(w[1],e[0]+i).toFixed(5))]),s([e[0],Number(Math.max(w[1],e[0]+i).toFixed(5))])))},d=()=>{t.onSliderChangeCommitted&&t.onSliderChangeCommitted(e)},h=m=>{const w=Number(o[0]),v=e[1];m.key=="Enter"&&(w<=v-i&&w>=n&&r([w,v]),w>v-i&&s([e[0],v]),w{const m=Number(o[0]),w=e[1];m<=w-i&&m>=n&&r([m,w]),m>w-i&&s([e[0],w]),m{const w=e[0],v=Number(o[1]);m.key=="Enter"&&(v>=w+i&&v<=A&&r([w,v]),vA&&s([w,e[1]]))},g=()=>{const m=e[0],w=Number(o[1]);w>=m+i&&w<=A&&r([m,w]),wA&&s([m,e[1]])};return I.jsxs(tc,{sx:{width:t.width},children:[I.jsx(Bt,{children:t.title}),I.jsx(hI,{getAriaLabel:()=>"Minimum distance",value:e,onChange:c,onChangeCommitted:d,valueLabelDisplay:"auto",getAriaValueText:DL,disableSwap:!0,min:n,max:A,step:a,sx:{height:2}}),I.jsxs(ws,{container:!0,spacing:1,children:[I.jsx(ws,{size:5.5,children:I.jsx(Zf,{value:o[0],size:"small",fullWidth:!0,variant:"outlined",onChange:l,onBlur:f,onKeyDown:h,inputProps:{variant:"outlined",type:"text","aria-labelledby":"input-slider"}})}),I.jsx(ws,{sx:{display:"inline-grid",alignItems:"center"},size:1,children:I.jsx(Bt,{sx:{justifySelf:"center"},children:"–"})}),I.jsx(ws,{size:5.5,children:I.jsx(Zf,{value:o[1],size:"small",fullWidth:!0,variant:"outlined",onChange:u,onBlur:g,onKeyDown:p,inputProps:{type:"text","aria-labelledby":"input-slider"}})})]})]})};RL.__docgenInfo={description:"",methods:[],displayName:"RangeSlider",props:{title:{required:!0,tsType:{name:"string"},description:""},width:{required:!0,tsType:{name:"union",raw:"number | string",elements:[{name:"number"},{name:"string"}]},description:""},defaultStart:{required:!1,tsType:{name:"number"},description:""},defaultEnd:{required:!1,tsType:{name:"number"},description:""},minDistance:{required:!1,tsType:{name:"number"},description:""},onSliderChange:{required:!1,tsType:{name:"signature",type:"function",raw:"(value: number[]) => void",signature:{arguments:[{type:{name:"Array",elements:[{name:"number"}],raw:"number[]"},name:"value"}],return:{name:"void"}}},description:""},onSliderChangeCommitted:{required:!1,tsType:{name:"signature",type:"function",raw:"(value: number[]) => void",signature:{arguments:[{type:{name:"Array",elements:[{name:"number"}],raw:"number[]"},name:"value"}],return:{name:"void"}}},description:""},value:{required:!1,tsType:{name:"Array",elements:[{name:"number"}],raw:"number[]"},description:""}}};function bg(t){const e=parseFloat(t);return!isNaN(e)&&isFinite(e)}function ML(t,e){return bg(t)&&bg(e)?parseFloat(t)-parseFloat(e):t.localeCompare?t.localeCompare(e):0}function OL(t,e){switch(e.type){case"pageChanged":return{...t,page:e.page};case"searchChanged":return{...t,page:0,filter:e.value};case"sortChanged":return{...t,sort:{column:e.sortColumn,asc:e.sortColumn===t.sort.column?!t.sort.asc:!0}};case"modalChanged":return{...t,showAddColumnsModal:e.showAddColumnsModal};case"columnsChanged":return{...t,columns:e.columns};case"mousedOver":return console.log("moused over"),{...t,mousedOver:e.index}}}const S0=vt(I.jsx("path",{d:"M5 20h14v-2H5zM19 9h-4V3H9v6H5l7 7z"}),"Download"),HL=vt(I.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add"),U0=vt(I.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z"}),"Info"),kL=vt(I.jsx("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"InfoOutlined"),PL=vt(I.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"Search"),NL=vt(I.jsx("path",{d:"M6.23 20.23 8 22l10-10L8 2 6.23 3.77 14.46 12z"}),"ArrowForwardIos"),KL=vt(I.jsx("path",{d:"M17.77 3.77 16 2 6 12l10 10 1.77-1.77L9.54 12z"}),"ArrowBackIosNew"),GL=me("div")(({theme:t})=>({position:"relative",borderRadius:t.shape.borderRadius,backgroundColor:dt(t.palette.common.white,.75),"&:hover":{backgroundColor:dt(t.palette.common.white,.95)},marginLeft:0,width:"100%",[t.breakpoints.up("sm")]:{marginLeft:t.spacing(1),width:"auto"}})),VL=me("div")(({theme:t})=>({padding:t.spacing(0,2),height:"100%",position:"absolute",pointerEvents:"none",display:"flex",alignItems:"center",justifyContent:"center"})),$L=me(Jo)(({theme:t})=>({color:"inherit","& .MuiInputBase-input":{padding:t.spacing(1,1,1,0),paddingLeft:`calc(1em + ${t.spacing(4)})`,transition:t.transitions.create("width"),width:"100%",[t.breakpoints.up("sm")]:{width:"12ch","&:focus":{width:"20ch"}}}})),zL={position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:400,bgcolor:"background.paper",border:"2px solid #000",boxShadow:24,p:4},WL=t=>{var C,F;const[e,r]=O.useState(t.page||0),[n,A]=O.useState(()=>Array.isArray(t.itemsPerPage)?t.itemsPerPage[0]:typeof t.itemsPerPage=="number"?t.itemsPerPage:5),a=y=>{r(y)},i=y=>{A(+y.target.value),r(0)},o=y=>{const x=[];for(let Q=1;Q{JSON.stringify(y)===JSON.stringify(Q)&&(x=!0)}),!!x):JSON.stringify(y)===JSON.stringify(t.highlighted)}const l=O.useMemo(()=>t.noOfDefaultColumns||t.columns.length,[t.noOfDefaultColumns,t.columns]),[u,c]=O.useReducer(OL,{sort:{column:t.sortColumn||0,asc:!!t.sortDescending},filter:"",page:0,columns:t.columns.length<=l?t.columns:t.defaultColumnsToShow?t.columns.filter(y=>{var x;return(x=t.defaultColumnsToShow)==null?void 0:x.includes(y.header)}):t.columns.slice(0,l),showAddColumnsModal:!1}),d=O.useCallback((y,x)=>{for(const Q in u.columns){const S=u.columns[Q];if(S.unsearchable)continue;if(S.search&&S.search(y)||S.value(y).toString().toLowerCase().includes(x.toLowerCase()))return!0}return!1},[u.columns]),h=O.useCallback(y=>{const x=u.columns[u.sort.column].sort||((S,T)=>ML(u.columns[u.sort.column].value(S),u.columns[u.sort.column].value(T))),Q=y.sort(x);return u.sort.asc||Q.reverse(),Q},[u.columns,u.sort]),f=O.useCallback((y,x)=>x===""?[...y]:y.filter(Q=>d(Q,x)),[d]),p=O.useMemo(()=>h(f(t.rows,u.filter||t.search||"")),[f,h,u.filter,t.rows,t.search]),g=O.useMemo(()=>{var x;const y=p.slice(e*n,(e+1)*n);return(x=t.onDisplayedRowsChange)==null||x.call(t,e,y),y},[p,e,n,t.onDisplayedRowsChange]),m=e>0?Math.max(0,(1+e)*n-t.rows.length):0,w=O.useCallback(()=>{const y=u.columns.map(T=>T.header).join(" ")+` +`+p.map(T=>u.columns.map(U=>U.value(T)).join(" ")).join(` `)+` -`,Q=document.createElement("a");document.body.appendChild(Q),Q.setAttribute("style","display: none");const S=new Blob([x],{type:"text/plain"}),T=window.URL.createObjectURL(S);Q.href=T,Q.download=t.downloadFileName||"table.tsv",Q.click(),window.URL.revokeObjectURL(T),Q.remove()},[u.columns,p,t.downloadFileName]),v=O.useRef(null),y=O.useRef(null),b=O.useRef(null),E=(x,Q,S)=>{if(x.current&&Q.current&&S.current){const T=x.current.scrollWidth>x.current.clientWidth,U=x.current.scrollLeft>0,L=x.current.scrollLeft+1{v.current!==null&&(v.current.addEventListener("scroll",()=>E(v,y,b)),new ResizeObserver(()=>{E(v,y,b)}).observe(v.current))},[v,b,y]),console.log((C=document.getElementById("row0"))==null?void 0:C.offsetHeight),I.jsxs(Ai,{elevation:3,sx:{"& .MuiToolbar-root":{pl:2},position:"relative"},children:[I.jsxs(Ac,{sx:{backgroundColor:`${t.headerColor?t.headerColor.backgroundColor:"transparent"}`,borderTopLeftRadius:4,borderTopRightRadius:4},children:[I.jsxs(Bt,{variant:"h5",noWrap:!0,component:"div",sx:{flexGrow:1,display:{xs:"none",sm:"block"},fontWeight:"normal",color:`${t.headerColor?t.headerColor.textColor:"inherit"}`},children:[t.tableTitle,t.titleHoverInfo&&I.jsx(IA,{title:t.titleHoverInfo,color:"primary",sx:{ml:1},placement:"right-start",children:I.jsx(U0,{})})]}),t.showMoreColumns&&t.columns.length>(t.noOfDefaultColumns||5)&&I.jsxs(qn,{variant:"outlined",size:"small",color:"primary",sx:{textTransform:"none"},onClick:()=>c({type:"modalChanged",showAddColumnsModal:!0}),children:[I.jsx(HL,{fontSize:"small"}),"Manage Columns"]}),t.searchable&&I.jsxs(GL,{children:[I.jsx(VL,{children:I.jsx(PL,{})}),I.jsx($L,{id:"table-search",placeholder:"Filter Items",inputProps:{"aria-label":"search"},onChange:x=>{c({type:"searchChanged",value:x.target.value}),r(0)}})]}),I.jsx(TA,{onClick:B,children:I.jsx(S0,{htmlColor:`${((F=t.headerColor)==null?void 0:F.textColor)||"inherit"}`})})]}),I.jsxs(p0,{ref:v,sx:{maxHeight:t.maxHeight?t.maxHeight:"none"},children:[I.jsxs(d0,{stickyHeader:!0,"aria-label":"sticky table",padding:t.dense?"checkbox":"normal",children:[!t.hideHeader&&I.jsx(g0,{children:I.jsx(Qa,{children:u.columns.map((x,Q)=>I.jsx(gn,{sx:Q!==u.columns.length-1?{pr:0}:{},onClick:()=>{x.unsortable||c({type:"sortChanged",sortColumn:Q}),r(0)},children:I.jsxs(uL,{active:Q===u.sort.column,direction:u.sort.asc?"asc":"desc",hideSortIcon:!0,children:[x.HeaderRender?I.jsx(x.HeaderRender,{}):x.header,x.tooltip?I.jsx(IA,{title:x.tooltip,color:"primary",sx:{ml:.5},placement:"right-start",children:I.jsx(kL,{fontSize:"small"})}):null]})},`${x.header}${Q}`))})}),I.jsx(h0,{children:t.rows.length===0?I.jsxs(Qa,{children:[I.jsx(gn,{children:t.emptyText||"No data available."}),o(t.columns.length)]}):I.jsxs(I.Fragment,{children:[g.map((x,Q)=>I.jsx(Qa,{selected:t.highlighted?s(x):!1,hover:!0,id:"row"+Q,onClick:()=>t.onRowClick&&t.onRowClick(x,Q+e*n),sx:{cursor:t.onRowClick?"pointer":"auto"},onMouseEnter:()=>t.onRowMouseEnter&&t.onRowMouseEnter(x,Q+e*n),onMouseLeave:()=>t.onRowMouseLeave&&t.onRowMouseLeave(),children:u.columns.map((S,T)=>I.jsx(gn,{sx:T!==u.columns.length-1?{pr:0}:{},onMouseEnter:()=>t.onCellMouseEnter&&t.onCellMouseEnter(S.value(x),Q,T),onMouseLeave:()=>t.onCellMouseLeave&&t.onCellMouseLeave(),children:S.FunctionalRender?S.FunctionalRender(x):S.render?S.render(x):S.value(x)},S.header+"Row"+Q+"Column"+T))},"row"+Q)),m>0&&I.jsx(Qa,{style:{height:(((w=document.getElementById("row0"))==null?void 0:w.offsetHeight)??(t.dense?33:53))*m},children:I.jsx(gn,{colSpan:6})})]})})]}),I.jsx(TA,{ref:b,sx:{position:"absolute",top:"50%",left:"10px",background:"rgba(0,0,0,0.15)",visibility:"hidden"},onClick:()=>{v.current&&(v.current.scrollLeft=0)},children:I.jsx(KL,{})}),I.jsx(TA,{ref:y,sx:{position:"absolute",top:"50%",right:"10px",background:"rgba(0,0,0,0.15)",visibility:"hidden"},onClick:()=>{v.current&&(v.current.scrollLeft=v.current.scrollWidth-v.current.clientWidth)},children:I.jsx(NL,{})})]}),!t.hidePageMenu&&I.jsxs(Fo,{direction:"column",useFlexGap:!0,justifyContent:"space-between",children:[I.jsx(Bt,{pl:t.dense?"4px":2,sx:{mt:"auto",mb:"auto"},children:p.length!==t.rows.length&&`Showing ${p.length} matching rows of ${t.rows.length} total.`}),I.jsx(v0,{rowsPerPageOptions:t.itemsPerPage?Array.isArray(t.itemsPerPage)?t.itemsPerPage:[t.itemsPerPage]:[5,10,25,100],component:"div",count:p.length,rowsPerPage:n,page:e,onPageChange:(x,Q)=>a(Q),onRowsPerPageChange:i,showFirstButton:!t.dense,showLastButton:!t.dense,labelRowsPerPage:t.dense?"Rows:":void 0,sx:t.dense?{"& .MuiTablePagination-toolbar":{pl:"6px"},"& .css-h0cf5v-MuiInputBase-root-MuiTablePagination-select":{mr:"6px",ml:"0px"},"& .MuiTablePagination-actions":{ml:"4px !important"}}:void 0})]}),I.jsx(A0,{open:u.showAddColumnsModal,onClose:()=>c({type:"modalChanged",showAddColumnsModal:!1}),children:I.jsxs(tc,{sx:zL,children:[I.jsx(Bt,{variant:"h4",children:"Add Columns"}),(t.defaultColumnsToShow?t.columns.filter(x=>{var Q;return!((Q=t.defaultColumnsToShow)!=null&&Q.includes(x.header))}):t.columns.slice(t.noOfDefaultColumns||5,t.columns.length)).map((x,Q)=>I.jsxs(O.Fragment,{children:[I.jsx(wU,{control:I.jsx(gl,{checked:u.columns.find(S=>S.header===x.header)!==void 0,onChange:S=>{S.target.checked&&t.columns.find(T=>T.header===x.header)?c({type:"columnsChanged",columns:[...u.columns,x]}):c({type:"columnsChanged",columns:u.columns.filter(T=>T.header!==x.header)})}}),label:x.header}),I.jsx("br",{})]},Q)),I.jsx(qn,{onClick:()=>c({type:"modalChanged",showAddColumnsModal:!1}),children:"Cancel"})]})})]})};WL.__docgenInfo={description:"",methods:[],displayName:"DataTable",props:{columns:{required:!0,tsType:{name:"Array",elements:[{name:"signature",type:"object",raw:`{ - tooltip?: string - header: string - /** - * Custom render function for the column header - */ - HeaderRender?: () => JSX.Element; - value: (row: T) => string | number - search?: (row: T) => boolean - unsearchable?: boolean - render?: (row: T) => string | JSX.Element - /** - * Custom render function for the row - */ - FunctionalRender?: (row: T) => JSX.Element; - sort?: (a: T, b: T) => number - unsortable?: boolean -}`,signature:{properties:[{key:"tooltip",value:{name:"string",required:!1}},{key:"header",value:{name:"string",required:!0}},{key:"HeaderRender",value:{name:"signature",type:"function",raw:"() => JSX.Element",signature:{arguments:[],return:{name:"JSX.Element"}},required:!1},description:"Custom render function for the column header"},{key:"value",value:{name:"signature",type:"function",raw:"(row: T) => string | number",signature:{arguments:[{type:{name:"T"},name:"row"}],return:{name:"union",raw:"string | number",elements:[{name:"string"},{name:"number"}]}},required:!0}},{key:"search",value:{name:"signature",type:"function",raw:"(row: T) => boolean",signature:{arguments:[{type:{name:"T"},name:"row"}],return:{name:"boolean"}},required:!1}},{key:"unsearchable",value:{name:"boolean",required:!1}},{key:"render",value:{name:"signature",type:"function",raw:"(row: T) => string | JSX.Element",signature:{arguments:[{type:{name:"T"},name:"row"}],return:{name:"union",raw:"string | JSX.Element",elements:[{name:"string"},{name:"JSX.Element"}]}},required:!1}},{key:"FunctionalRender",value:{name:"signature",type:"function",raw:"(row: T) => JSX.Element",signature:{arguments:[{type:{name:"T"},name:"row"}],return:{name:"JSX.Element"}},required:!1},description:"Custom render function for the row"},{key:"sort",value:{name:"signature",type:"function",raw:"(a: T, b: T) => number",signature:{arguments:[{type:{name:"T"},name:"a"},{type:{name:"T"},name:"b"}],return:{name:"number"}},required:!1}},{key:"unsortable",value:{name:"boolean",required:!1}}]}}],raw:"DataTableColumn[]"},description:""},rows:{required:!0,tsType:{name:"Array",elements:[{name:"T"}],raw:"T[]"},description:""},itemsPerPage:{required:!1,tsType:{name:"union",raw:"number | number[]",elements:[{name:"number"},{name:"Array",elements:[{name:"number"}],raw:"number[]"}]},description:`Sets the number of items on each page. +`,x=document.createElement("a");document.body.appendChild(x),x.setAttribute("style","display: none");const Q=new Blob([y],{type:"text/plain"}),S=window.URL.createObjectURL(Q);x.href=S,x.download=t.downloadFileName||"table.tsv",x.click(),window.URL.revokeObjectURL(S),x.remove()},[u.columns,p,t.downloadFileName]),v=O.useRef(null),B=O.useRef(null),b=O.useRef(null),E=(y,x,Q)=>{if(y.current&&x.current&&Q.current){const S=y.current.scrollWidth>y.current.clientWidth,T=y.current.scrollLeft>0,U=y.current.scrollLeft+1{v.current!==null&&(v.current.addEventListener("scroll",()=>E(v,B,b)),new ResizeObserver(()=>{E(v,B,b)}).observe(v.current))},[v,b,B]),I.jsxs(ai,{elevation:3,sx:{"& .MuiToolbar-root":{pl:2},position:"relative"},children:[I.jsxs(Ac,{sx:{backgroundColor:`${t.headerColor?t.headerColor.backgroundColor:"transparent"}`,borderTopLeftRadius:4,borderTopRightRadius:4},children:[I.jsxs(qa,{direction:"row",alignItems:"center",flexGrow:1,children:[typeof t.tableTitle=="string"?I.jsx(Bt,{variant:"h5",noWrap:!0,component:"div",sx:{display:{xs:"none",sm:"block"},fontWeight:"normal",color:`${t.headerColor?t.headerColor.textColor:"inherit"}`},children:t.tableTitle}):t.tableTitle,t.titleHoverInfo&&I.jsx(IA,{title:t.titleHoverInfo,color:"primary",sx:{ml:1},placement:"right-start",children:I.jsx(U0,{})})]}),t.showMoreColumns&&t.columns.length>(t.noOfDefaultColumns||5)&&I.jsxs(qn,{variant:"outlined",size:"small",color:"primary",sx:{textTransform:"none"},onClick:()=>c({type:"modalChanged",showAddColumnsModal:!0}),children:[I.jsx(HL,{fontSize:"small"}),"Manage Columns"]}),t.searchable&&I.jsxs(GL,{children:[I.jsx(VL,{children:I.jsx(PL,{})}),I.jsx($L,{id:"table-search",placeholder:"Filter Items",inputProps:{"aria-label":"search"},onChange:y=>{c({type:"searchChanged",value:y.target.value}),r(0)}})]}),I.jsx(TA,{onClick:w,children:I.jsx(S0,{htmlColor:`${((C=t.headerColor)==null?void 0:C.textColor)||"inherit"}`})})]}),I.jsxs(p0,{ref:v,sx:{maxHeight:t.maxHeight?t.maxHeight:"none"},children:[I.jsxs(d0,{stickyHeader:!0,"aria-label":"sticky table",padding:t.dense?"checkbox":"normal",children:[!t.hideHeader&&I.jsx(g0,{children:I.jsx(Qa,{children:u.columns.map((y,x)=>I.jsx(gn,{sx:x!==u.columns.length-1?{pr:0}:{},onClick:()=>{y.unsortable||c({type:"sortChanged",sortColumn:x}),r(0)},children:I.jsxs(uL,{active:x===u.sort.column,direction:u.sort.asc?"asc":"desc",hideSortIcon:!0,children:[y.HeaderRender?I.jsx(y.HeaderRender,{}):y.header,y.tooltip?I.jsx(IA,{title:y.tooltip,color:"primary",sx:{ml:.5},placement:"right-start",children:I.jsx(kL,{fontSize:"small"})}):null]})},`${y.header}${x}`))})}),I.jsx(h0,{children:t.rows.length===0?I.jsxs(Qa,{children:[I.jsx(gn,{children:t.emptyText||"No data available."}),o(t.columns.length)]}):I.jsxs(I.Fragment,{children:[g.map((y,x)=>I.jsx(Qa,{selected:t.highlighted?s(y):!1,hover:!0,id:"row"+x,onClick:()=>t.onRowClick&&t.onRowClick(y,x+e*n),sx:{cursor:t.onRowClick?"pointer":"auto"},onMouseEnter:()=>t.onRowMouseEnter&&t.onRowMouseEnter(y,x+e*n),onMouseLeave:()=>t.onRowMouseLeave&&t.onRowMouseLeave(),children:u.columns.map((Q,S)=>I.jsx(gn,{sx:S!==u.columns.length-1?{pr:0}:{},onMouseEnter:()=>t.onCellMouseEnter&&t.onCellMouseEnter(Q.value(y),x,S),onMouseLeave:()=>t.onCellMouseLeave&&t.onCellMouseLeave(),children:Q.FunctionalRender?I.jsx(Q.FunctionalRender,{...y}):Q.render?I.jsx(Q.render,{...y}):Q.value(y)},Q.header+"Row"+x+"Column"+S))},"row"+x)),m>0&&I.jsx(Qa,{style:{height:(((F=document.getElementById("row0"))==null?void 0:F.offsetHeight)??(t.dense?33:53))*m},children:I.jsx(gn,{colSpan:6})})]})})]}),I.jsx(TA,{ref:b,sx:{position:"absolute",top:"50%",left:"10px",background:"rgba(0,0,0,0.15)",visibility:"hidden"},onClick:()=>{v.current&&(v.current.scrollLeft=0)},children:I.jsx(KL,{})}),I.jsx(TA,{ref:B,sx:{position:"absolute",top:"50%",right:"10px",background:"rgba(0,0,0,0.15)",visibility:"hidden"},onClick:()=>{v.current&&(v.current.scrollLeft=v.current.scrollWidth-v.current.clientWidth)},children:I.jsx(NL,{})})]}),!t.hidePageMenu&&I.jsxs(qa,{direction:"column",useFlexGap:!0,justifyContent:"space-between",children:[I.jsx(Bt,{pl:t.dense?"4px":2,sx:{mt:"auto",mb:"auto"},children:p.length!==t.rows.length&&`Showing ${p.length} matching rows of ${t.rows.length} total.`}),I.jsx(v0,{rowsPerPageOptions:t.itemsPerPage?Array.isArray(t.itemsPerPage)?t.itemsPerPage:[t.itemsPerPage]:[5,10,25,100],component:"div",count:p.length,rowsPerPage:n,page:e,onPageChange:(y,x)=>a(x),onRowsPerPageChange:i,showFirstButton:!t.dense,showLastButton:!t.dense,labelRowsPerPage:t.dense?"Rows:":void 0,sx:t.dense?{"& .MuiTablePagination-toolbar":{pl:"6px"},"& .css-h0cf5v-MuiInputBase-root-MuiTablePagination-select":{mr:"6px",ml:"0px"},"& .MuiTablePagination-actions":{ml:"4px !important"}}:void 0})]}),I.jsx(A0,{open:u.showAddColumnsModal,onClose:()=>c({type:"modalChanged",showAddColumnsModal:!1}),children:I.jsxs(tc,{sx:zL,children:[I.jsx(Bt,{variant:"h4",children:"Add Columns"}),(t.defaultColumnsToShow?t.columns.filter(y=>{var x;return!((x=t.defaultColumnsToShow)!=null&&x.includes(y.header))}):t.columns.slice(t.noOfDefaultColumns||5,t.columns.length)).map((y,x)=>I.jsxs(O.Fragment,{children:[I.jsx(wU,{control:I.jsx(gl,{checked:u.columns.find(Q=>Q.header===y.header)!==void 0,onChange:Q=>{Q.target.checked&&t.columns.find(S=>S.header===y.header)?c({type:"columnsChanged",columns:[...u.columns,y]}):c({type:"columnsChanged",columns:u.columns.filter(S=>S.header!==y.header)})}}),label:y.header}),I.jsx("br",{})]},x)),I.jsx(qn,{onClick:()=>c({type:"modalChanged",showAddColumnsModal:!1}),children:"Cancel"})]})})]})};WL.__docgenInfo={description:"",methods:[],displayName:"DataTable",props:{columns:{required:!0,tsType:{name:"Array",elements:[{name:"DataTableColumn",elements:[{name:"T"}],raw:"DataTableColumn"}],raw:"DataTableColumn[]"},description:""},rows:{required:!0,tsType:{name:"Array",elements:[{name:"T"}],raw:"T[]"},description:""},itemsPerPage:{required:!1,tsType:{name:"union",raw:"number | number[]",elements:[{name:"number"},{name:"Array",elements:[{name:"number"}],raw:"number[]"}]},description:`Sets the number of items on each page. If one number specified, the rows per page selection is hidden. Specify an array to provide user-selectable options @default -[5, 10, 25, 100]`},hidePageMenu:{required:!1,tsType:{name:"boolean"},description:""},tableTitle:{required:!1,tsType:{name:"string"},description:""},selectable:{required:!1,tsType:{name:"boolean"},description:""},searchable:{required:!1,tsType:{name:"boolean"},description:""},search:{required:!1,tsType:{name:"string"},description:""},emptyText:{required:!1,tsType:{name:"string"},description:""},sortColumn:{required:!1,tsType:{name:"number"},description:""},sortDescending:{required:!1,tsType:{name:"boolean"},description:""},downloadFileName:{required:!1,tsType:{name:"string"},description:""},noOfDefaultColumns:{required:!1,tsType:{name:"number"},description:""},showMoreColumns:{required:!1,tsType:{name:"boolean"},description:""},defaultColumnsToShow:{required:!1,tsType:{name:"Array",elements:[{name:"unknown"}],raw:"(string | JSX.Element)[]"},description:""},page:{required:!1,tsType:{name:"number"},description:""},hideHeader:{required:!1,tsType:{name:"boolean"},description:""},titleHoverInfo:{required:!1,tsType:{name:"string"},description:""},headerColor:{required:!1,tsType:{name:"signature",type:"object",raw:"{backgroundColor: RGB | RGBA | HEX , textColor: RGB | RGBA | HEX | 'inherit'}",signature:{properties:[{key:"backgroundColor",value:{name:"union",raw:"RGB | RGBA | HEX",elements:[{name:"union",raw:"`rgb(${number}, ${number}, ${number})` | `rgb(${number},${number},${number})`",elements:[{name:"literal",value:"`rgb(${number}, ${number}, ${number})`"},{name:"literal",value:"`rgb(${number},${number},${number})`"}]},{name:"union",raw:"`rgba(${number}, ${number}, ${number}, ${number})` | `rgba(${number},${number},${number},${number})`",elements:[{name:"literal",value:"`rgba(${number}, ${number}, ${number}, ${number})`"},{name:"literal",value:"`rgba(${number},${number},${number},${number})`"}]},{name:"union",raw:"`#${string}` | `# ${string}`",elements:[{name:"literal",value:"`#${string}`"},{name:"literal",value:"`# ${string}`"}]}],required:!0}},{key:"textColor",value:{name:"union",raw:"RGB | RGBA | HEX | 'inherit'",elements:[{name:"union",raw:"`rgb(${number}, ${number}, ${number})` | `rgb(${number},${number},${number})`",elements:[{name:"literal",value:"`rgb(${number}, ${number}, ${number})`"},{name:"literal",value:"`rgb(${number},${number},${number})`"}]},{name:"union",raw:"`rgba(${number}, ${number}, ${number}, ${number})` | `rgba(${number},${number},${number},${number})`",elements:[{name:"literal",value:"`rgba(${number}, ${number}, ${number}, ${number})`"},{name:"literal",value:"`rgba(${number},${number},${number},${number})`"}]},{name:"union",raw:"`#${string}` | `# ${string}`",elements:[{name:"literal",value:"`#${string}`"},{name:"literal",value:"`# ${string}`"}]},{name:"literal",value:"'inherit'"}],required:!0}}]}},description:""},maxHeight:{required:!1,tsType:{name:"union",raw:"number | string",elements:[{name:"number"},{name:"string"}]},description:`Note: This currently does not account for the size of the title or pagination element, +[5, 10, 25, 100]`},hidePageMenu:{required:!1,tsType:{name:"boolean"},description:""},tableTitle:{required:!1,tsType:{name:"ReactReactNode",raw:"React.ReactNode"},description:`Allows passing all of the things React can render. + +@example +\`\`\` +"Title Here" +\`\`\` +or +\`\`\`jsx +Title Here +\`\`\` + +If passing a string will be wrapped as such: +\`\`\`jsx + + {props.tableTitle} + +\`\`\``},selectable:{required:!1,tsType:{name:"boolean"},description:""},searchable:{required:!1,tsType:{name:"boolean"},description:""},search:{required:!1,tsType:{name:"string"},description:""},emptyText:{required:!1,tsType:{name:"string"},description:""},sortColumn:{required:!1,tsType:{name:"number"},description:""},sortDescending:{required:!1,tsType:{name:"boolean"},description:""},downloadFileName:{required:!1,tsType:{name:"string"},description:""},noOfDefaultColumns:{required:!1,tsType:{name:"number"},description:""},showMoreColumns:{required:!1,tsType:{name:"boolean"},description:""},defaultColumnsToShow:{required:!1,tsType:{name:"Array",elements:[{name:"unknown"}],raw:"(string | JSX.Element)[]"},description:""},page:{required:!1,tsType:{name:"number"},description:""},hideHeader:{required:!1,tsType:{name:"boolean"},description:""},titleHoverInfo:{required:!1,tsType:{name:"string"},description:""},headerColor:{required:!1,tsType:{name:"signature",type:"object",raw:"{backgroundColor: RGB | RGBA | HEX , textColor: RGB | RGBA | HEX | 'inherit'}",signature:{properties:[{key:"backgroundColor",value:{name:"union",raw:"RGB | RGBA | HEX",elements:[{name:"union",raw:"`rgb(${number}, ${number}, ${number})` | `rgb(${number},${number},${number})`",elements:[{name:"literal",value:"`rgb(${number}, ${number}, ${number})`"},{name:"literal",value:"`rgb(${number},${number},${number})`"}]},{name:"union",raw:"`rgba(${number}, ${number}, ${number}, ${number})` | `rgba(${number},${number},${number},${number})`",elements:[{name:"literal",value:"`rgba(${number}, ${number}, ${number}, ${number})`"},{name:"literal",value:"`rgba(${number},${number},${number},${number})`"}]},{name:"union",raw:"`#${string}` | `# ${string}`",elements:[{name:"literal",value:"`#${string}`"},{name:"literal",value:"`# ${string}`"}]}],required:!0}},{key:"textColor",value:{name:"union",raw:"RGB | RGBA | HEX | 'inherit'",elements:[{name:"union",raw:"`rgb(${number}, ${number}, ${number})` | `rgb(${number},${number},${number})`",elements:[{name:"literal",value:"`rgb(${number}, ${number}, ${number})`"},{name:"literal",value:"`rgb(${number},${number},${number})`"}]},{name:"union",raw:"`rgba(${number}, ${number}, ${number}, ${number})` | `rgba(${number},${number},${number},${number})`",elements:[{name:"literal",value:"`rgba(${number}, ${number}, ${number}, ${number})`"},{name:"literal",value:"`rgba(${number},${number},${number},${number})`"}]},{name:"union",raw:"`#${string}` | `# ${string}`",elements:[{name:"literal",value:"`#${string}`"},{name:"literal",value:"`# ${string}`"}]},{name:"literal",value:"'inherit'"}],required:!0}}]}},description:""},maxHeight:{required:!1,tsType:{name:"union",raw:"number | string",elements:[{name:"number"},{name:"string"}]},description:`Note: This currently does not account for the size of the title or pagination element, sets max-height of the table header and body.`},dense:{required:!1,tsType:{name:"boolean"},description:"Reduced the amount of padding on table cells to make the table more compact."},highlighted:{required:!1,tsType:{name:"union",raw:"T | T[]",elements:[{name:"T"},{name:"Array",elements:[{name:"T"}],raw:"T[]"}]},description:`Highlights the row(s) matching the provided object(s). Use this in conjunction with onRowClick() and a state variable containing the current row(s) to highlight. Importantly, currently this only supports highlighting rows with the same order @@ -171,20 +179,20 @@ of key/value pairs. Matching but out-of-order row objects will not be highlighte @param cellRowIndex The index of the cell's row as it's currently displayed @param cellColIndex The index of the cell's column as it's currently displayed`},onCellMouseLeave:{required:!1,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""}}};const _L=me(gn)(()=>({border:"None",paddingLeft:"16px",textAlign:"center",font:"Helvetica Neue"})),XL=me(Qa)(()=>({root:{height:10},"&:nth-of-type(odd)":{backgroundColor:"#F5F5F5"}})),YL=t=>{const[e,r]=O.useState(0),[n,A]=O.useState(t.rowsPerPage&&t.rowsPerPage[0]||10),a=(s,l)=>{r(l)},i=s=>{A(+s.target.value),r(0)};let o=t.tabledata;return console.log(o),console.log(o.slice(e*n,e*n+n)),I.jsxs(I.Fragment,{children:[I.jsx(p0,{children:I.jsxs(d0,{stickyHeader:!0,"aria-label":"sticky table",children:[I.jsx(g0,{children:I.jsx(Qa,{children:t.tabledata[0].map((s,l)=>I.jsx(gn,{style:{textAlign:"center",fontWeight:"bold",border:"None"},children:s.header},s.header+l))})}),I.jsx(h0,{children:o.slice(e*n,e*n+n).map((s,l)=>I.jsx(XL,{onMouseOver:()=>t.onRowMouseOver&&t.onRowMouseOver(s,l),onClick:()=>t.onRowClick&&t.onRowClick(s,l),onMouseOut:t.onRowMouseOut,children:s.map((u,c)=>I.jsxs(_L,{children:[" ",u.render?u.render:u.value]},l+c+u.value))},l))})]})}),I.jsx(v0,{style:{textAlign:"center",fontWeight:"bold"},rowsPerPageOptions:t.rowsPerPage||[10],component:"div",count:t.tabledata.length,rowsPerPage:n,page:e,onPageChange:a,onRowsPerPageChange:i})]})};YL.__docgenInfo={description:"",methods:[],displayName:"CustomizedTable",props:{tabledata:{required:!0,tsType:{name:"Array",elements:[{name:"Array",elements:[{name:"signature",type:"object",raw:"{ header: string, value: any, render?: any }",signature:{properties:[{key:"header",value:{name:"string",required:!0}},{key:"value",value:{name:"any",required:!0}},{key:"render",value:{name:"any",required:!1}}]}}],raw:"{ header: string, value: any, render?: any }[]"}],raw:"Array<{ header: string, value: any, render?: any }[]>"},description:""},rowsPerPage:{required:!1,tsType:{name:"Array",elements:[{name:"number"}],raw:"number[]"},description:""},onRowMouseOver:{required:!1,tsType:{name:"signature",type:"function",raw:"(row: any, i: number) => void",signature:{arguments:[{type:{name:"any"},name:"row"},{type:{name:"number"},name:"i"}],return:{name:"void"}}},description:""},onRowMouseOut:{required:!1,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""},onRowClick:{required:!1,tsType:{name:"signature",type:"function",raw:"(row: any, i: number) => void",signature:{arguments:[{type:{name:"any"},name:"row"},{type:{name:"number"},name:"i"}],return:{name:"void"}}},description:""}}};function Pt(t){"@babel/helpers - typeof";return Pt=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},Pt(t)}function wh(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function jL(t,e){for(var r=0;rt.length)&&(e=t.length);for(var r=0,n=new Array(e);r=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(s){throw s},f:A}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,i=!1,o;return{s:function(){r=r.call(t)},n:function(){var s=r.next();return a=s.done,s},e:function(s){i=!0,o=s},f:function(){try{!a&&r.return!=null&&r.return()}finally{if(i)throw o}}}}var Ot=typeof window>"u"?null:window,xg=Ot?Ot.navigator:null;Ot&&Ot.document;var e2=Pt(""),D0=Pt({}),t2=Pt(function(){}),r2=typeof HTMLElement>"u"?"undefined":Pt(HTMLElement),Zo=function(e){return e&&e.instanceString&&wt(e.instanceString)?e.instanceString():null},Le=function(e){return e!=null&&Pt(e)==e2},wt=function(e){return e!=null&&Pt(e)===t2},lt=function(e){return!Er(e)&&(Array.isArray?Array.isArray(e):e!=null&&e instanceof Array)},_e=function(e){return e!=null&&Pt(e)===D0&&!lt(e)&&e.constructor===Object},n2=function(e){return e!=null&&Pt(e)===D0},be=function(e){return e!=null&&Pt(e)===Pt(1)&&!isNaN(e)},A2=function(e){return be(e)&&Math.floor(e)===e},Gl=function(e){if(r2!=="undefined")return e!=null&&e instanceof HTMLElement},Er=function(e){return es(e)||R0(e)},es=function(e){return Zo(e)==="collection"&&e._private.single},R0=function(e){return Zo(e)==="collection"&&!e._private.single},bh=function(e){return Zo(e)==="core"},M0=function(e){return Zo(e)==="stylesheet"},a2=function(e){return Zo(e)==="event"},lA=function(e){return e==null?!0:!!(e===""||e.match(/^\s+$/))},i2=function(e){return typeof HTMLElement>"u"?!1:e instanceof HTMLElement},o2=function(e){return _e(e)&&be(e.x1)&&be(e.x2)&&be(e.y1)&&be(e.y2)},s2=function(e){return n2(e)&&wt(e.then)},l2=function(){return xg&&xg.userAgent.match(/msie|trident|edge/i)},Qo=function(e,r){r||(r=function(){if(arguments.length===1)return arguments[0];if(arguments.length===0)return"undefined";for(var a=[],i=0;ir?1:0},g2=function(e,r){return-1*H0(e,r)},Re=Object.assign!=null?Object.assign.bind(Object):function(t){for(var e=arguments,r=1;r1&&(g-=1),g<1/6?f+(p-f)*6*g:g<1/2?p:g<2/3?f+(p-f)*(2/3-g)*6:f}var c=new RegExp("^"+f2+"$").exec(e);if(c){if(n=parseInt(c[1]),n<0?n=(360- -1*n%360)%360:n>360&&(n=n%360),n/=360,A=parseFloat(c[2]),A<0||A>100||(A=A/100,a=parseFloat(c[3]),a<0||a>100)||(a=a/100,i=c[4],i!==void 0&&(i=parseFloat(i),i<0||i>1)))return;if(A===0)o=s=l=Math.round(a*255);else{var d=a<.5?a*(1+A):a+A-a*A,h=2*a-d;o=Math.round(255*u(h,d,n+1/3)),s=Math.round(255*u(h,d,n)),l=Math.round(255*u(h,d,n-1/3))}r=[o,s,l,i]}return r},y2=function(e){var r,n=new RegExp("^"+u2+"$").exec(e);if(n){r=[];for(var A=[],a=1;a<=3;a++){var i=n[a];if(i[i.length-1]==="%"&&(A[a]=!0),i=parseFloat(i),A[a]&&(i=i/100*255),i<0||i>255)return;r.push(Math.floor(i))}var o=A[1]||A[2]||A[3],s=A[1]&&A[2]&&A[3];if(o&&!s)return;var l=n[4];if(l!==void 0){if(l=parseFloat(l),l<0||l>1)return;r.push(l)}}return r},B2=function(e){return C2[e.toLowerCase()]},w2=function(e){return(lt(e)?e:null)||B2(e)||v2(e)||y2(e)||m2(e)},C2={transparent:[0,0,0,0],aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],grey:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},k0=function(e){for(var r=e.map,n=e.keys,A=n.length,a=0;a=e||C<0||c&&F>=a}function m(){var E=jc();if(g(E))return B(E);o=setTimeout(m,p(E))}function B(E){return o=void 0,d&&n?h(E):(n=A=void 0,i)}function v(){o!==void 0&&clearTimeout(o),l=0,n=s=A=o=void 0}function y(){return o===void 0?i:B(jc())}function b(){var E=jc(),C=g(E);if(n=arguments,A=this,s=E,C){if(o===void 0)return f(s);if(c)return clearTimeout(o),o=setTimeout(m,e),h(s)}return o===void 0&&(o=setTimeout(m,e)),i}return b.cancel=v,b.flush=y,b}var oc=iD,qc=Ot?Ot.performance:null,G0=qc&&qc.now?function(){return qc.now()}:function(){return Date.now()},oD=function(){if(Ot){if(Ot.requestAnimationFrame)return function(t){Ot.requestAnimationFrame(t)};if(Ot.mozRequestAnimationFrame)return function(t){Ot.mozRequestAnimationFrame(t)};if(Ot.webkitRequestAnimationFrame)return function(t){Ot.webkitRequestAnimationFrame(t)};if(Ot.msRequestAnimationFrame)return function(t){Ot.msRequestAnimationFrame(t)}}return function(t){t&&setTimeout(function(){t(G0())},1e3/60)}}(),Vl=function(e){return oD(e)},kn=G0,Sa=9261,V0=65599,Vi=5381,$0=function(e){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Sa,n=r,A;A=e.next(),!A.done;)n=n*V0+A.value|0;return n},So=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Sa;return r*V0+e|0},Uo=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Vi;return(r<<5)+r+e|0},sD=function(e,r){return e*2097152+r},Wn=function(e){return e[0]*2097152+e[1]},Ss=function(e,r){return[So(e[0],r[0]),Uo(e[1],r[1])]},lD=function(e,r){var n={value:0,done:!1},A=0,a=e.length,i={next:function(){return A=0;A--)e[A]===r&&e.splice(A,1)},Qh=function(e){e.splice(0,e.length)},gD=function(e,r){for(var n=0;n"u"?"undefined":Pt(Set))!==mD?Set:yD,sc=function(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(e===void 0||r===void 0||!bh(e)){xt("An element must have a core reference and parameters set");return}var A=r.group;if(A==null&&(r.data&&r.data.source!=null&&r.data.target!=null?A="edges":A="nodes"),A!=="nodes"&&A!=="edges"){xt("An element must be of type `nodes` or `edges`; you specified `"+A+"`");return}this.length=1,this[0]=this;var a=this._private={cy:e,single:!0,data:r.data||{},position:r.position||{x:0,y:0},autoWidth:void 0,autoHeight:void 0,autoPadding:void 0,compoundBoundsClean:!1,listeners:[],group:A,style:{},rstyle:{},styleCxts:[],styleKeys:{},removed:!0,selected:!!r.selected,selectable:r.selectable===void 0?!0:!!r.selectable,locked:!!r.locked,grabbed:!1,grabbable:r.grabbable===void 0?!0:!!r.grabbable,pannable:r.pannable===void 0?A==="edges":!!r.pannable,active:!1,classes:new ii,animation:{current:[],queue:[]},rscratch:{},scratch:r.scratch||{},edges:[],children:[],parent:r.parent&&r.parent.isNode()?r.parent:null,traversalCache:{},backgrounding:!1,bbCache:null,bbCacheShift:{x:0,y:0},bodyBounds:null,overlayBounds:null,labelBounds:{all:null,source:null,target:null,main:null},arrowBounds:{source:null,target:null,"mid-source":null,"mid-target":null}};if(a.position.x==null&&(a.position.x=0),a.position.y==null&&(a.position.y=0),r.renderedPosition){var i=r.renderedPosition,o=e.pan(),s=e.zoom();a.position={x:(i.x-o.x)/s,y:(i.y-o.y)/s}}var l=[];lt(r.classes)?l=r.classes:Le(r.classes)&&(l=r.classes.split(/\s+/));for(var u=0,c=l.length;uB?1:0},u=function(m,B,v,y,b){var E;if(v==null&&(v=0),b==null&&(b=n),v<0)throw new Error("lo must be non-negative");for(y==null&&(y=m.length);vx;0<=x?w++:w--)F.push(w);return F}).apply(this).reverse(),C=[],y=0,b=E.length;yQ;0<=Q?++F:--F)S.push(i(m,v));return S},p=function(m,B,v,y){var b,E,C;for(y==null&&(y=n),b=m[v];v>B;){if(C=v-1>>1,E=m[C],y(b,E)<0){m[v]=E,v=C;continue}break}return m[v]=b},g=function(m,B,v){var y,b,E,C,F;for(v==null&&(v=n),b=m.length,F=B,E=m[B],y=2*B+1;y0;){var E=B.pop(),C=g(E),F=E.id();if(d[F]=C,C!==1/0)for(var w=E.neighborhood().intersect(f),x=0;x0)for(H.unshift(M);c[N];){var P=c[N];H.unshift(P.edge),H.unshift(P.node),k=P.node,N=k.id()}return o.spawn(H)}}}},bD={kruskal:function(e){e=e||function(v){return 1};for(var r=this.byGroup(),n=r.nodes,A=r.edges,a=n.length,i=new Array(a),o=n,s=function(y){for(var b=0;b0;){if(b(),C++,y===u){for(var F=[],w=a,x=u,Q=m[x];F.unshift(w),Q!=null&&F.unshift(Q),w=g[x],w!=null;)x=w.id(),Q=m[x];return{found:!0,distance:c[y],path:this.spawn(F),steps:C}}h[y]=!0;for(var S=v._private.edges,T=0;TQ&&(f[x]=Q,B[x]=w,v[x]=b),!a){var S=w*u+F;!a&&f[S]>Q&&(f[S]=Q,B[S]=F,v[S]=b)}}}for(var T=0;T1&&arguments[1]!==void 0?arguments[1]:i,Se=v(he),Ce=[],we=Se;;){if(we==null)return r.spawn();var _=B(we),$=_.edge,D=_.pred;if(Ce.unshift(we[0]),we.same(ye)&&Ce.length>0)break;$!=null&&Ce.unshift($),we=D}return s.spawn(Ce)},E=0;E=0;u--){var c=l[u],d=c[1],h=c[2];(r[d]===o&&r[h]===s||r[d]===s&&r[h]===o)&&l.splice(u,1)}for(var f=0;fA;){var a=Math.floor(Math.random()*r.length);r=ID(a,e,r),n--}return r},LD={kargerStein:function(){var e=this,r=this.byGroup(),n=r.nodes,A=r.edges;A.unmergeBy(function(H){return H.isLoop()});var a=n.length,i=A.length,o=Math.ceil(Math.pow(Math.log(a)/Math.LN2,2)),s=Math.floor(a/TD);if(a<2){xt("At least 2 nodes are required for Karger-Stein algorithm");return}for(var l=[],u=0;u1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,A=1/0,a=r;a1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,A=-1/0,a=r;a1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,A=0,a=0,i=r;i1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,A=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0;A?e=e.slice(r,n):(n0&&e.splice(0,r));for(var o=0,s=e.length-1;s>=0;s--){var l=e[s];i?isFinite(l)||(e[s]=-1/0,o++):e.splice(s,1)}a&&e.sort(function(d,h){return d-h});var u=e.length,c=Math.floor(u/2);return u%2!==0?e[c+1+o]:(e[c-1+o]+e[c+o])/2},kD=function(e){return Math.PI*e/180},Us=function(e,r){return Math.atan2(r,e)-Math.PI/2},Sh=Math.log2||function(t){return Math.log(t)/Math.log(2)},q0=function(e){return e>0?1:e<0?-1:0},$A=function(e,r){return Math.sqrt(bA(e,r))},bA=function(e,r){var n=r.x-e.x,A=r.y-e.y;return n*n+A*A},PD=function(e){for(var r=e.length,n=0,A=0;A=e.x1&&e.y2>=e.y1)return{x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2,w:e.x2-e.x1,h:e.y2-e.y1};if(e.w!=null&&e.h!=null&&e.w>=0&&e.h>=0)return{x1:e.x1,y1:e.y1,x2:e.x1+e.w,y2:e.y1+e.h,w:e.w,h:e.h}}},KD=function(e){return{x1:e.x1,x2:e.x2,w:e.w,y1:e.y1,y2:e.y2,h:e.h}},GD=function(e){e.x1=1/0,e.y1=1/0,e.x2=-1/0,e.y2=-1/0,e.w=0,e.h=0},VD=function(e,r,n){return{x1:e.x1+r,x2:e.x2+r,y1:e.y1+n,y2:e.y2+n,w:e.w,h:e.h}},J0=function(e,r){e.x1=Math.min(e.x1,r.x1),e.x2=Math.max(e.x2,r.x2),e.w=e.x2-e.x1,e.y1=Math.min(e.y1,r.y1),e.y2=Math.max(e.y2,r.y2),e.h=e.y2-e.y1},$D=function(e,r,n){e.x1=Math.min(e.x1,r),e.x2=Math.max(e.x2,r),e.w=e.x2-e.x1,e.y1=Math.min(e.y1,n),e.y2=Math.max(e.y2,n),e.h=e.y2-e.y1},vl=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return e.x1-=r,e.x2+=r,e.y1-=r,e.y2+=r,e.w=e.x2-e.x1,e.h=e.y2-e.y1,e},ml=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[0],n,A,a,i;if(r.length===1)n=A=a=i=r[0];else if(r.length===2)n=a=r[0],i=A=r[1];else if(r.length===4){var o=jr(r,4);n=o[0],A=o[1],a=o[2],i=o[3]}return e.x1-=i,e.x2+=A,e.y1-=n,e.y2+=a,e.w=e.x2-e.x1,e.h=e.y2-e.y1,e},Dg=function(e,r){e.x1=r.x1,e.y1=r.y1,e.x2=r.x2,e.y2=r.y2,e.w=e.x2-e.x1,e.h=e.y2-e.y1},Uh=function(e,r){return!(e.x1>r.x2||r.x1>e.x2||e.x2r.y2||r.y1>e.y2)},Ja=function(e,r,n){return e.x1<=r&&r<=e.x2&&e.y1<=n&&n<=e.y2},zD=function(e,r){return Ja(e,r.x,r.y)},Z0=function(e,r){return Ja(e,r.x1,r.y1)&&Ja(e,r.x2,r.y2)},eB=function(e,r,n,A,a,i,o){var s=arguments.length>7&&arguments[7]!==void 0?arguments[7]:"auto",l=s==="auto"?zA(a,i):s,u=a/2,c=i/2;l=Math.min(l,u,c);var d=l!==u,h=l!==c,f;if(d){var p=n-u+l-o,g=A-c-o,m=n+u-l+o,B=g;if(f=Zn(e,r,n,A,p,g,m,B,!1),f.length>0)return f}if(h){var v=n+u+o,y=A-c+l-o,b=v,E=A+c-l+o;if(f=Zn(e,r,n,A,v,y,b,E,!1),f.length>0)return f}if(d){var C=n-u+l-o,F=A+c+o,w=n+u-l+o,x=F;if(f=Zn(e,r,n,A,C,F,w,x,!1),f.length>0)return f}if(h){var Q=n-u-o,S=A-c+l-o,T=Q,U=A+c-l+o;if(f=Zn(e,r,n,A,Q,S,T,U,!1),f.length>0)return f}var L;{var R=n-u+l,M=A-c+l;if(L=$i(e,r,n,A,R,M,l+o),L.length>0&&L[0]<=R&&L[1]<=M)return[L[0],L[1]]}{var H=n+u-l,k=A-c+l;if(L=$i(e,r,n,A,H,k,l+o),L.length>0&&L[0]>=H&&L[1]<=k)return[L[0],L[1]]}{var N=n+u-l,P=A+c-l;if(L=$i(e,r,n,A,N,P,l+o),L.length>0&&L[0]>=N&&L[1]>=P)return[L[0],L[1]]}{var K=n-u+l,W=A+c-l;if(L=$i(e,r,n,A,K,W,l+o),L.length>0&&L[0]<=K&&L[1]>=W)return[L[0],L[1]]}return[]},WD=function(e,r,n,A,a,i,o){var s=o,l=Math.min(n,a),u=Math.max(n,a),c=Math.min(A,i),d=Math.max(A,i);return l-s<=e&&e<=u+s&&c-s<=r&&r<=d+s},_D=function(e,r,n,A,a,i,o,s,l){var u={x1:Math.min(n,o,a)-l,x2:Math.max(n,o,a)+l,y1:Math.min(A,s,i)-l,y2:Math.max(A,s,i)+l};return!(eu.x2||ru.y2)},XD=function(e,r,n,A){n-=A;var a=r*r-4*e*n;if(a<0)return[];var i=Math.sqrt(a),o=2*e,s=(-r+i)/o,l=(-r-i)/o;return[s,l]},YD=function(e,r,n,A,a){var i=1e-5;e===0&&(e=i),r/=e,n/=e,A/=e;var o,s,l,u,c,d,h,f;if(s=(3*n-r*r)/9,l=-(27*A)+r*(9*n-2*(r*r)),l/=54,o=s*s*s+l*l,a[1]=0,h=r/3,o>0){c=l+Math.sqrt(o),c=c<0?-Math.pow(-c,1/3):Math.pow(c,1/3),d=l-Math.sqrt(o),d=d<0?-Math.pow(-d,1/3):Math.pow(d,1/3),a[0]=-h+c+d,h+=(c+d)/2,a[4]=a[2]=-h,h=Math.sqrt(3)*(-d+c)/2,a[3]=h,a[5]=-h;return}if(a[5]=a[3]=0,o===0){f=l<0?-Math.pow(-l,1/3):Math.pow(l,1/3),a[0]=-h+2*f,a[4]=a[2]=-(f+h);return}s=-s,u=s*s*s,u=Math.acos(l/Math.sqrt(u)),f=2*Math.sqrt(s),a[0]=-h+f*Math.cos(u/3),a[2]=-h+f*Math.cos((u+2*Math.PI)/3),a[4]=-h+f*Math.cos((u+4*Math.PI)/3)},jD=function(e,r,n,A,a,i,o,s){var l=1*n*n-4*n*a+2*n*o+4*a*a-4*a*o+o*o+A*A-4*A*i+2*A*s+4*i*i-4*i*s+s*s,u=1*9*n*a-3*n*n-3*n*o-6*a*a+3*a*o+9*A*i-3*A*A-3*A*s-6*i*i+3*i*s,c=1*3*n*n-6*n*a+n*o-n*e+2*a*a+2*a*e-o*e+3*A*A-6*A*i+A*s-A*r+2*i*i+2*i*r-s*r,d=1*n*a-n*n+n*e-a*e+A*i-A*A+A*r-i*r,h=[];YD(l,u,c,d,h);for(var f=1e-7,p=[],g=0;g<6;g+=2)Math.abs(h[g+1])=0&&h[g]<=1&&p.push(h[g]);p.push(1),p.push(0);for(var m=-1,B,v,y,b=0;b=0?yl?(e-a)*(e-a)+(r-i)*(r-i):u-d},fr=function(e,r,n){for(var A,a,i,o,s,l=0,u=0;u=e&&e>=i||A<=e&&e<=i)s=(e-A)/(i-A)*(o-a)+a,s>r&&l++;else continue;return l%2!==0},Pn=function(e,r,n,A,a,i,o,s,l){var u=new Array(n.length),c;s[0]!=null?(c=Math.atan(s[1]/s[0]),s[0]<0?c=c+Math.PI/2:c=-c-Math.PI/2):c=s;for(var d=Math.cos(-c),h=Math.sin(-c),f=0;f0){var g=Wl(u,-l);p=zl(g)}else p=u;return fr(e,r,p)},JD=function(e,r,n,A,a,i,o,s){for(var l=new Array(n.length*2),u=0;u=0&&g<=1&&B.push(g),m>=0&&m<=1&&B.push(m),B.length===0)return[];var v=B[0]*s[0]+e,y=B[0]*s[1]+r;if(B.length>1){if(B[0]==B[1])return[v,y];var b=B[1]*s[0]+e,E=B[1]*s[1]+r;return[v,y,b,E]}else return[v,y]},Zc=function(e,r,n){return r<=e&&e<=n||n<=e&&e<=r?e:e<=r&&r<=n||n<=r&&r<=e?r:n},Zn=function(e,r,n,A,a,i,o,s,l){var u=e-a,c=n-e,d=o-a,h=r-i,f=A-r,p=s-i,g=d*h-p*u,m=c*h-f*u,B=p*c-d*f;if(B!==0){var v=g/B,y=m/B,b=.001,E=0-b,C=1+b;return E<=v&&v<=C&&E<=y&&y<=C?[e+v*c,r+v*f]:l?[e+v*c,r+v*f]:[]}else return g===0||m===0?Zc(e,n,o)===o?[o,s]:Zc(e,n,a)===a?[a,i]:Zc(a,o,n)===n?[n,A]:[]:[]},Lo=function(e,r,n,A,a,i,o,s){var l=[],u,c=new Array(n.length),d=!0;i==null&&(d=!1);var h;if(d){for(var f=0;f0){var p=Wl(c,-s);h=zl(p)}else h=c}else h=n;for(var g,m,B,v,y=0;y2){for(var f=[u[0],u[1]],p=Math.pow(f[0]-e,2)+Math.pow(f[1]-r,2),g=1;gu&&(u=y)},get:function(v){return l[v]}},d=0;d0?R=L.edgesTo(U)[0]:R=U.edgesTo(L)[0];var M=A(R);U=U.id(),F[U]>F[S]+M&&(F[U]=F[S]+M,w.nodes.indexOf(U)<0?w.push(U):w.updateItem(U),C[U]=0,E[U]=[]),F[U]==F[S]+M&&(C[U]=C[U]+C[S],E[U].push(S))}else for(var H=0;H0;){for(var K=b.pop(),W=0;W0&&o.push(n[s]);o.length!==0&&a.push(A.collection(o))}return a},hR=function(e,r){for(var n=0;n5&&arguments[5]!==void 0?arguments[5]:vR,o=A,s,l,u=0;u=2?Ti(e,r,n,0,kg,mR):Ti(e,r,n,0,Hg)},squaredEuclidean:function(e,r,n){return Ti(e,r,n,0,kg)},manhattan:function(e,r,n){return Ti(e,r,n,0,Hg)},max:function(e,r,n){return Ti(e,r,n,-1/0,yR)}};Za["squared-euclidean"]=Za.squaredEuclidean;Za.squaredeuclidean=Za.squaredEuclidean;function uc(t,e,r,n,A,a){var i;return wt(t)?i=t:i=Za[t]||Za.euclidean,e===0&&wt(t)?i(A,a):i(e,r,n,A,a)}var BR=Jt({k:2,m:2,sensitivityThreshold:1e-4,distance:"euclidean",maxIterations:10,attributes:[],testMode:!1,testCentroids:null}),Ih=function(e){return BR(e)},_l=function(e,r,n,A,a){var i=a!=="kMedoids",o=i?function(c){return n[c]}:function(c){return A[c](n)},s=function(d){return A[d](r)},l=n,u=r;return uc(e,A.length,o,s,l,u)},ef=function(e,r,n){for(var A=n.length,a=new Array(A),i=new Array(A),o=new Array(r),s=null,l=0;ln)return!1}return!0},bR=function(e,r,n){for(var A=0;Ao&&(o=r[l][u],s=u);a[s].push(e[l])}for(var c=0;c=a.threshold||a.mode==="dendrogram"&&e.length===1)return!1;var f=r[i],p=r[A[i]],g;a.mode==="dendrogram"?g={left:f,right:p,key:f.key}:g={value:f.value.concat(p.value),key:f.key},e[f.index]=g,e.splice(p.index,1),r[f.key]=g;for(var m=0;mn[p.key][B.key]&&(s=n[p.key][B.key])):a.linkage==="max"?(s=n[f.key][B.key],n[f.key][B.key]0&&A.push(a);return A},$g=function(e,r,n){for(var A=[],a=0;ao&&(i=l,o=r[a*e+l])}i>0&&A.push(i)}for(var u=0;ul&&(s=u,l=c)}n[a]=i[s]}return A=$g(e,r,n),A},zg=function(e){for(var r=this.cy(),n=this.nodes(),A=HR(e),a={},i=0;i=Q?(S=Q,Q=U,T=L):U>S&&(S=U);for(var R=0;R0?1:0;C[w%A.minIterations*o+K]=W,P+=W}if(P>0&&(w>=A.minIterations-1||w==A.maxIterations-1)){for(var X=0,Z=0;Z1||E>1)&&(o=!0),c[v]=[],B.outgoers().forEach(function(F){F.isEdge()&&c[v].push(F.id())})}else d[v]=[void 0,B.target().id()]}):i.forEach(function(B){var v=B.id();if(B.isNode()){var y=B.degree(!0);y%2&&(s?l?o=!0:l=v:s=v),c[v]=[],B.connectedEdges().forEach(function(b){return c[v].push(b.id())})}else d[v]=[B.source().id(),B.target().id()]});var h={found:!1,trail:void 0};if(o)return h;if(l&&s)if(a){if(u&&l!=u)return h;u=l}else{if(u&&l!=u&&s!=u)return h;u||(u=l)}else u||(u=i[0].id());var f=function(v){for(var y=v,b=[v],E,C,F;c[y].length;)E=c[y].shift(),C=d[E][0],F=d[E][1],y!=F?(c[F]=c[F].filter(function(w){return w!=E}),y=F):!a&&y!=C&&(c[C]=c[C].filter(function(w){return w!=E}),y=C),b.unshift(E),b.unshift(y);return b},p=[],g=[];for(g=f(u);g.length!=1;)c[g[0]].length==0?(p.unshift(i.getElementById(g.shift())),p.unshift(i.getElementById(g.shift()))):g=f(g.shift()).concat(g);p.unshift(i.getElementById(g.shift()));for(var m in c)if(c[m].length)return h;return h.found=!0,h.trail=this.spawn(p,!0),h}},Ls=function(){var e=this,r={},n=0,A=0,a=[],i=[],o={},s=function(d,h){for(var f=i.length-1,p=[],g=e.spawn();i[f].x!=d||i[f].y!=h;)p.push(i.pop().edge),f--;p.push(i.pop().edge),p.forEach(function(m){var B=m.connectedNodes().intersection(e);g.merge(m),B.forEach(function(v){var y=v.id(),b=v.connectedEdges().intersection(e);g.merge(v),r[y].cutVertex?g.merge(b.filter(function(E){return E.isLoop()})):g.merge(b)})}),a.push(g)},l=function c(d,h,f){d===f&&(A+=1),r[h]={id:n,low:n++,cutVertex:!1};var p=e.getElementById(h).connectedEdges().intersection(e);if(p.size()===0)a.push(e.spawn(e.getElementById(h)));else{var g,m,B,v;p.forEach(function(y){g=y.source().id(),m=y.target().id(),B=g===h?m:g,B!==f&&(v=y.id(),o[v]||(o[v]=!0,i.push({x:h,y:B,edge:y})),B in r?r[h].low=Math.min(r[h].low,r[B].id):(c(d,B,h),r[h].low=Math.min(r[h].low,r[B].low),r[h].id<=r[B].low&&(r[h].cutVertex=!0,s(h,B))))})}};e.forEach(function(c){if(c.isNode()){var d=c.id();d in r||(A=0,l(d,d),r[d].cutVertex=A>1)}});var u=Object.keys(r).filter(function(c){return r[c].cutVertex}).map(function(c){return e.getElementById(c)});return{cut:e.spawn(u),components:a}},zR={hopcroftTarjanBiconnected:Ls,htbc:Ls,htb:Ls,hopcroftTarjanBiconnectedComponents:Ls},Ds=function(){var e=this,r={},n=0,A=[],a=[],i=e.spawn(e),o=function s(l){a.push(l),r[l]={index:n,low:n++,explored:!1};var u=e.getElementById(l).connectedEdges().intersection(e);if(u.forEach(function(p){var g=p.target().id();g!==l&&(g in r||s(g),r[g].explored||(r[l].low=Math.min(r[l].low,r[g].low)))}),r[l].index===r[l].low){for(var c=e.spawn();;){var d=a.pop();if(c.merge(e.getElementById(d)),r[d].low=r[l].index,r[d].explored=!0,d===l)break}var h=c.edgesWith(c),f=c.merge(h);A.push(f),i=i.difference(f)}};return e.forEach(function(s){if(s.isNode()){var l=s.id();l in r||o(l)}}),{cut:i,components:A}},WR={tarjanStronglyConnected:Ds,tsc:Ds,tscc:Ds,tarjanStronglyConnectedComponents:Ds},oB={};[To,CD,bD,xD,QD,UD,LD,nR,Ha,ka,rd,gR,UR,MR,GR,$R,zR,WR].forEach(function(t){Re(oB,t)});/*! +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,i=!1,o;return{s:function(){r=r.call(t)},n:function(){var s=r.next();return a=s.done,s},e:function(s){i=!0,o=s},f:function(){try{!a&&r.return!=null&&r.return()}finally{if(i)throw o}}}}var Ot=typeof window>"u"?null:window,xg=Ot?Ot.navigator:null;Ot&&Ot.document;var e2=Pt(""),D0=Pt({}),t2=Pt(function(){}),r2=typeof HTMLElement>"u"?"undefined":Pt(HTMLElement),Zo=function(e){return e&&e.instanceString&&wt(e.instanceString)?e.instanceString():null},Le=function(e){return e!=null&&Pt(e)==e2},wt=function(e){return e!=null&&Pt(e)===t2},lt=function(e){return!Er(e)&&(Array.isArray?Array.isArray(e):e!=null&&e instanceof Array)},_e=function(e){return e!=null&&Pt(e)===D0&&!lt(e)&&e.constructor===Object},n2=function(e){return e!=null&&Pt(e)===D0},be=function(e){return e!=null&&Pt(e)===Pt(1)&&!isNaN(e)},A2=function(e){return be(e)&&Math.floor(e)===e},Gl=function(e){if(r2!=="undefined")return e!=null&&e instanceof HTMLElement},Er=function(e){return es(e)||R0(e)},es=function(e){return Zo(e)==="collection"&&e._private.single},R0=function(e){return Zo(e)==="collection"&&!e._private.single},bh=function(e){return Zo(e)==="core"},M0=function(e){return Zo(e)==="stylesheet"},a2=function(e){return Zo(e)==="event"},lA=function(e){return e==null?!0:!!(e===""||e.match(/^\s+$/))},i2=function(e){return typeof HTMLElement>"u"?!1:e instanceof HTMLElement},o2=function(e){return _e(e)&&be(e.x1)&&be(e.x2)&&be(e.y1)&&be(e.y2)},s2=function(e){return n2(e)&&wt(e.then)},l2=function(){return xg&&xg.userAgent.match(/msie|trident|edge/i)},Qo=function(e,r){r||(r=function(){if(arguments.length===1)return arguments[0];if(arguments.length===0)return"undefined";for(var a=[],i=0;ir?1:0},g2=function(e,r){return-1*H0(e,r)},Re=Object.assign!=null?Object.assign.bind(Object):function(t){for(var e=arguments,r=1;r1&&(g-=1),g<1/6?f+(p-f)*6*g:g<1/2?p:g<2/3?f+(p-f)*(2/3-g)*6:f}var c=new RegExp("^"+f2+"$").exec(e);if(c){if(n=parseInt(c[1]),n<0?n=(360- -1*n%360)%360:n>360&&(n=n%360),n/=360,A=parseFloat(c[2]),A<0||A>100||(A=A/100,a=parseFloat(c[3]),a<0||a>100)||(a=a/100,i=c[4],i!==void 0&&(i=parseFloat(i),i<0||i>1)))return;if(A===0)o=s=l=Math.round(a*255);else{var d=a<.5?a*(1+A):a+A-a*A,h=2*a-d;o=Math.round(255*u(h,d,n+1/3)),s=Math.round(255*u(h,d,n)),l=Math.round(255*u(h,d,n-1/3))}r=[o,s,l,i]}return r},y2=function(e){var r,n=new RegExp("^"+u2+"$").exec(e);if(n){r=[];for(var A=[],a=1;a<=3;a++){var i=n[a];if(i[i.length-1]==="%"&&(A[a]=!0),i=parseFloat(i),A[a]&&(i=i/100*255),i<0||i>255)return;r.push(Math.floor(i))}var o=A[1]||A[2]||A[3],s=A[1]&&A[2]&&A[3];if(o&&!s)return;var l=n[4];if(l!==void 0){if(l=parseFloat(l),l<0||l>1)return;r.push(l)}}return r},B2=function(e){return C2[e.toLowerCase()]},w2=function(e){return(lt(e)?e:null)||B2(e)||v2(e)||y2(e)||m2(e)},C2={transparent:[0,0,0,0],aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],grey:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},k0=function(e){for(var r=e.map,n=e.keys,A=n.length,a=0;a=e||C<0||c&&F>=a}function m(){var E=jc();if(g(E))return w(E);o=setTimeout(m,p(E))}function w(E){return o=void 0,d&&n?h(E):(n=A=void 0,i)}function v(){o!==void 0&&clearTimeout(o),l=0,n=s=A=o=void 0}function B(){return o===void 0?i:w(jc())}function b(){var E=jc(),C=g(E);if(n=arguments,A=this,s=E,C){if(o===void 0)return f(s);if(c)return clearTimeout(o),o=setTimeout(m,e),h(s)}return o===void 0&&(o=setTimeout(m,e)),i}return b.cancel=v,b.flush=B,b}var oc=iD,qc=Ot?Ot.performance:null,G0=qc&&qc.now?function(){return qc.now()}:function(){return Date.now()},oD=function(){if(Ot){if(Ot.requestAnimationFrame)return function(t){Ot.requestAnimationFrame(t)};if(Ot.mozRequestAnimationFrame)return function(t){Ot.mozRequestAnimationFrame(t)};if(Ot.webkitRequestAnimationFrame)return function(t){Ot.webkitRequestAnimationFrame(t)};if(Ot.msRequestAnimationFrame)return function(t){Ot.msRequestAnimationFrame(t)}}return function(t){t&&setTimeout(function(){t(G0())},1e3/60)}}(),Vl=function(e){return oD(e)},kn=G0,Sa=9261,V0=65599,$i=5381,$0=function(e){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Sa,n=r,A;A=e.next(),!A.done;)n=n*V0+A.value|0;return n},So=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Sa;return r*V0+e|0},Uo=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$i;return(r<<5)+r+e|0},sD=function(e,r){return e*2097152+r},Wn=function(e){return e[0]*2097152+e[1]},Ss=function(e,r){return[So(e[0],r[0]),Uo(e[1],r[1])]},lD=function(e,r){var n={value:0,done:!1},A=0,a=e.length,i={next:function(){return A=0;A--)e[A]===r&&e.splice(A,1)},Qh=function(e){e.splice(0,e.length)},gD=function(e,r){for(var n=0;n"u"?"undefined":Pt(Set))!==mD?Set:yD,sc=function(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(e===void 0||r===void 0||!bh(e)){xt("An element must have a core reference and parameters set");return}var A=r.group;if(A==null&&(r.data&&r.data.source!=null&&r.data.target!=null?A="edges":A="nodes"),A!=="nodes"&&A!=="edges"){xt("An element must be of type `nodes` or `edges`; you specified `"+A+"`");return}this.length=1,this[0]=this;var a=this._private={cy:e,single:!0,data:r.data||{},position:r.position||{x:0,y:0},autoWidth:void 0,autoHeight:void 0,autoPadding:void 0,compoundBoundsClean:!1,listeners:[],group:A,style:{},rstyle:{},styleCxts:[],styleKeys:{},removed:!0,selected:!!r.selected,selectable:r.selectable===void 0?!0:!!r.selectable,locked:!!r.locked,grabbed:!1,grabbable:r.grabbable===void 0?!0:!!r.grabbable,pannable:r.pannable===void 0?A==="edges":!!r.pannable,active:!1,classes:new oi,animation:{current:[],queue:[]},rscratch:{},scratch:r.scratch||{},edges:[],children:[],parent:r.parent&&r.parent.isNode()?r.parent:null,traversalCache:{},backgrounding:!1,bbCache:null,bbCacheShift:{x:0,y:0},bodyBounds:null,overlayBounds:null,labelBounds:{all:null,source:null,target:null,main:null},arrowBounds:{source:null,target:null,"mid-source":null,"mid-target":null}};if(a.position.x==null&&(a.position.x=0),a.position.y==null&&(a.position.y=0),r.renderedPosition){var i=r.renderedPosition,o=e.pan(),s=e.zoom();a.position={x:(i.x-o.x)/s,y:(i.y-o.y)/s}}var l=[];lt(r.classes)?l=r.classes:Le(r.classes)&&(l=r.classes.split(/\s+/));for(var u=0,c=l.length;uw?1:0},u=function(m,w,v,B,b){var E;if(v==null&&(v=0),b==null&&(b=n),v<0)throw new Error("lo must be non-negative");for(B==null&&(B=m.length);vx;0<=x?y++:y--)F.push(y);return F}).apply(this).reverse(),C=[],B=0,b=E.length;BQ;0<=Q?++F:--F)S.push(i(m,v));return S},p=function(m,w,v,B){var b,E,C;for(B==null&&(B=n),b=m[v];v>w;){if(C=v-1>>1,E=m[C],B(b,E)<0){m[v]=E,v=C;continue}break}return m[v]=b},g=function(m,w,v){var B,b,E,C,F;for(v==null&&(v=n),b=m.length,F=w,E=m[w],B=2*w+1;B0;){var E=w.pop(),C=g(E),F=E.id();if(d[F]=C,C!==1/0)for(var y=E.neighborhood().intersect(f),x=0;x0)for(H.unshift(M);c[N];){var P=c[N];H.unshift(P.edge),H.unshift(P.node),k=P.node,N=k.id()}return o.spawn(H)}}}},bD={kruskal:function(e){e=e||function(v){return 1};for(var r=this.byGroup(),n=r.nodes,A=r.edges,a=n.length,i=new Array(a),o=n,s=function(B){for(var b=0;b0;){if(b(),C++,B===u){for(var F=[],y=a,x=u,Q=m[x];F.unshift(y),Q!=null&&F.unshift(Q),y=g[x],y!=null;)x=y.id(),Q=m[x];return{found:!0,distance:c[B],path:this.spawn(F),steps:C}}h[B]=!0;for(var S=v._private.edges,T=0;TQ&&(f[x]=Q,w[x]=y,v[x]=b),!a){var S=y*u+F;!a&&f[S]>Q&&(f[S]=Q,w[S]=F,v[S]=b)}}}for(var T=0;T1&&arguments[1]!==void 0?arguments[1]:i,Se=v(he),Ce=[],we=Se;;){if(we==null)return r.spawn();var _=w(we),$=_.edge,D=_.pred;if(Ce.unshift(we[0]),we.same(ye)&&Ce.length>0)break;$!=null&&Ce.unshift($),we=D}return s.spawn(Ce)},E=0;E=0;u--){var c=l[u],d=c[1],h=c[2];(r[d]===o&&r[h]===s||r[d]===s&&r[h]===o)&&l.splice(u,1)}for(var f=0;fA;){var a=Math.floor(Math.random()*r.length);r=ID(a,e,r),n--}return r},LD={kargerStein:function(){var e=this,r=this.byGroup(),n=r.nodes,A=r.edges;A.unmergeBy(function(H){return H.isLoop()});var a=n.length,i=A.length,o=Math.ceil(Math.pow(Math.log(a)/Math.LN2,2)),s=Math.floor(a/TD);if(a<2){xt("At least 2 nodes are required for Karger-Stein algorithm");return}for(var l=[],u=0;u1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,A=1/0,a=r;a1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,A=-1/0,a=r;a1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,A=0,a=0,i=r;i1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,A=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0;A?e=e.slice(r,n):(n0&&e.splice(0,r));for(var o=0,s=e.length-1;s>=0;s--){var l=e[s];i?isFinite(l)||(e[s]=-1/0,o++):e.splice(s,1)}a&&e.sort(function(d,h){return d-h});var u=e.length,c=Math.floor(u/2);return u%2!==0?e[c+1+o]:(e[c-1+o]+e[c+o])/2},kD=function(e){return Math.PI*e/180},Us=function(e,r){return Math.atan2(r,e)-Math.PI/2},Sh=Math.log2||function(t){return Math.log(t)/Math.log(2)},q0=function(e){return e>0?1:e<0?-1:0},$A=function(e,r){return Math.sqrt(bA(e,r))},bA=function(e,r){var n=r.x-e.x,A=r.y-e.y;return n*n+A*A},PD=function(e){for(var r=e.length,n=0,A=0;A=e.x1&&e.y2>=e.y1)return{x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2,w:e.x2-e.x1,h:e.y2-e.y1};if(e.w!=null&&e.h!=null&&e.w>=0&&e.h>=0)return{x1:e.x1,y1:e.y1,x2:e.x1+e.w,y2:e.y1+e.h,w:e.w,h:e.h}}},KD=function(e){return{x1:e.x1,x2:e.x2,w:e.w,y1:e.y1,y2:e.y2,h:e.h}},GD=function(e){e.x1=1/0,e.y1=1/0,e.x2=-1/0,e.y2=-1/0,e.w=0,e.h=0},VD=function(e,r,n){return{x1:e.x1+r,x2:e.x2+r,y1:e.y1+n,y2:e.y2+n,w:e.w,h:e.h}},J0=function(e,r){e.x1=Math.min(e.x1,r.x1),e.x2=Math.max(e.x2,r.x2),e.w=e.x2-e.x1,e.y1=Math.min(e.y1,r.y1),e.y2=Math.max(e.y2,r.y2),e.h=e.y2-e.y1},$D=function(e,r,n){e.x1=Math.min(e.x1,r),e.x2=Math.max(e.x2,r),e.w=e.x2-e.x1,e.y1=Math.min(e.y1,n),e.y2=Math.max(e.y2,n),e.h=e.y2-e.y1},vl=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return e.x1-=r,e.x2+=r,e.y1-=r,e.y2+=r,e.w=e.x2-e.x1,e.h=e.y2-e.y1,e},ml=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[0],n,A,a,i;if(r.length===1)n=A=a=i=r[0];else if(r.length===2)n=a=r[0],i=A=r[1];else if(r.length===4){var o=jr(r,4);n=o[0],A=o[1],a=o[2],i=o[3]}return e.x1-=i,e.x2+=A,e.y1-=n,e.y2+=a,e.w=e.x2-e.x1,e.h=e.y2-e.y1,e},Dg=function(e,r){e.x1=r.x1,e.y1=r.y1,e.x2=r.x2,e.y2=r.y2,e.w=e.x2-e.x1,e.h=e.y2-e.y1},Uh=function(e,r){return!(e.x1>r.x2||r.x1>e.x2||e.x2r.y2||r.y1>e.y2)},Za=function(e,r,n){return e.x1<=r&&r<=e.x2&&e.y1<=n&&n<=e.y2},zD=function(e,r){return Za(e,r.x,r.y)},Z0=function(e,r){return Za(e,r.x1,r.y1)&&Za(e,r.x2,r.y2)},eB=function(e,r,n,A,a,i,o){var s=arguments.length>7&&arguments[7]!==void 0?arguments[7]:"auto",l=s==="auto"?zA(a,i):s,u=a/2,c=i/2;l=Math.min(l,u,c);var d=l!==u,h=l!==c,f;if(d){var p=n-u+l-o,g=A-c-o,m=n+u-l+o,w=g;if(f=Zn(e,r,n,A,p,g,m,w,!1),f.length>0)return f}if(h){var v=n+u+o,B=A-c+l-o,b=v,E=A+c-l+o;if(f=Zn(e,r,n,A,v,B,b,E,!1),f.length>0)return f}if(d){var C=n-u+l-o,F=A+c+o,y=n+u-l+o,x=F;if(f=Zn(e,r,n,A,C,F,y,x,!1),f.length>0)return f}if(h){var Q=n-u-o,S=A-c+l-o,T=Q,U=A+c-l+o;if(f=Zn(e,r,n,A,Q,S,T,U,!1),f.length>0)return f}var L;{var R=n-u+l,M=A-c+l;if(L=zi(e,r,n,A,R,M,l+o),L.length>0&&L[0]<=R&&L[1]<=M)return[L[0],L[1]]}{var H=n+u-l,k=A-c+l;if(L=zi(e,r,n,A,H,k,l+o),L.length>0&&L[0]>=H&&L[1]<=k)return[L[0],L[1]]}{var N=n+u-l,P=A+c-l;if(L=zi(e,r,n,A,N,P,l+o),L.length>0&&L[0]>=N&&L[1]>=P)return[L[0],L[1]]}{var K=n-u+l,W=A+c-l;if(L=zi(e,r,n,A,K,W,l+o),L.length>0&&L[0]<=K&&L[1]>=W)return[L[0],L[1]]}return[]},WD=function(e,r,n,A,a,i,o){var s=o,l=Math.min(n,a),u=Math.max(n,a),c=Math.min(A,i),d=Math.max(A,i);return l-s<=e&&e<=u+s&&c-s<=r&&r<=d+s},_D=function(e,r,n,A,a,i,o,s,l){var u={x1:Math.min(n,o,a)-l,x2:Math.max(n,o,a)+l,y1:Math.min(A,s,i)-l,y2:Math.max(A,s,i)+l};return!(eu.x2||ru.y2)},XD=function(e,r,n,A){n-=A;var a=r*r-4*e*n;if(a<0)return[];var i=Math.sqrt(a),o=2*e,s=(-r+i)/o,l=(-r-i)/o;return[s,l]},YD=function(e,r,n,A,a){var i=1e-5;e===0&&(e=i),r/=e,n/=e,A/=e;var o,s,l,u,c,d,h,f;if(s=(3*n-r*r)/9,l=-(27*A)+r*(9*n-2*(r*r)),l/=54,o=s*s*s+l*l,a[1]=0,h=r/3,o>0){c=l+Math.sqrt(o),c=c<0?-Math.pow(-c,1/3):Math.pow(c,1/3),d=l-Math.sqrt(o),d=d<0?-Math.pow(-d,1/3):Math.pow(d,1/3),a[0]=-h+c+d,h+=(c+d)/2,a[4]=a[2]=-h,h=Math.sqrt(3)*(-d+c)/2,a[3]=h,a[5]=-h;return}if(a[5]=a[3]=0,o===0){f=l<0?-Math.pow(-l,1/3):Math.pow(l,1/3),a[0]=-h+2*f,a[4]=a[2]=-(f+h);return}s=-s,u=s*s*s,u=Math.acos(l/Math.sqrt(u)),f=2*Math.sqrt(s),a[0]=-h+f*Math.cos(u/3),a[2]=-h+f*Math.cos((u+2*Math.PI)/3),a[4]=-h+f*Math.cos((u+4*Math.PI)/3)},jD=function(e,r,n,A,a,i,o,s){var l=1*n*n-4*n*a+2*n*o+4*a*a-4*a*o+o*o+A*A-4*A*i+2*A*s+4*i*i-4*i*s+s*s,u=1*9*n*a-3*n*n-3*n*o-6*a*a+3*a*o+9*A*i-3*A*A-3*A*s-6*i*i+3*i*s,c=1*3*n*n-6*n*a+n*o-n*e+2*a*a+2*a*e-o*e+3*A*A-6*A*i+A*s-A*r+2*i*i+2*i*r-s*r,d=1*n*a-n*n+n*e-a*e+A*i-A*A+A*r-i*r,h=[];YD(l,u,c,d,h);for(var f=1e-7,p=[],g=0;g<6;g+=2)Math.abs(h[g+1])=0&&h[g]<=1&&p.push(h[g]);p.push(1),p.push(0);for(var m=-1,w,v,B,b=0;b=0?Bl?(e-a)*(e-a)+(r-i)*(r-i):u-d},fr=function(e,r,n){for(var A,a,i,o,s,l=0,u=0;u=e&&e>=i||A<=e&&e<=i)s=(e-A)/(i-A)*(o-a)+a,s>r&&l++;else continue;return l%2!==0},Pn=function(e,r,n,A,a,i,o,s,l){var u=new Array(n.length),c;s[0]!=null?(c=Math.atan(s[1]/s[0]),s[0]<0?c=c+Math.PI/2:c=-c-Math.PI/2):c=s;for(var d=Math.cos(-c),h=Math.sin(-c),f=0;f0){var g=Wl(u,-l);p=zl(g)}else p=u;return fr(e,r,p)},JD=function(e,r,n,A,a,i,o,s){for(var l=new Array(n.length*2),u=0;u=0&&g<=1&&w.push(g),m>=0&&m<=1&&w.push(m),w.length===0)return[];var v=w[0]*s[0]+e,B=w[0]*s[1]+r;if(w.length>1){if(w[0]==w[1])return[v,B];var b=w[1]*s[0]+e,E=w[1]*s[1]+r;return[v,B,b,E]}else return[v,B]},Zc=function(e,r,n){return r<=e&&e<=n||n<=e&&e<=r?e:e<=r&&r<=n||n<=r&&r<=e?r:n},Zn=function(e,r,n,A,a,i,o,s,l){var u=e-a,c=n-e,d=o-a,h=r-i,f=A-r,p=s-i,g=d*h-p*u,m=c*h-f*u,w=p*c-d*f;if(w!==0){var v=g/w,B=m/w,b=.001,E=0-b,C=1+b;return E<=v&&v<=C&&E<=B&&B<=C?[e+v*c,r+v*f]:l?[e+v*c,r+v*f]:[]}else return g===0||m===0?Zc(e,n,o)===o?[o,s]:Zc(e,n,a)===a?[a,i]:Zc(a,o,n)===n?[n,A]:[]:[]},Lo=function(e,r,n,A,a,i,o,s){var l=[],u,c=new Array(n.length),d=!0;i==null&&(d=!1);var h;if(d){for(var f=0;f0){var p=Wl(c,-s);h=zl(p)}else h=c}else h=n;for(var g,m,w,v,B=0;B2){for(var f=[u[0],u[1]],p=Math.pow(f[0]-e,2)+Math.pow(f[1]-r,2),g=1;gu&&(u=B)},get:function(v){return l[v]}},d=0;d0?R=L.edgesTo(U)[0]:R=U.edgesTo(L)[0];var M=A(R);U=U.id(),F[U]>F[S]+M&&(F[U]=F[S]+M,y.nodes.indexOf(U)<0?y.push(U):y.updateItem(U),C[U]=0,E[U]=[]),F[U]==F[S]+M&&(C[U]=C[U]+C[S],E[U].push(S))}else for(var H=0;H0;){for(var K=b.pop(),W=0;W0&&o.push(n[s]);o.length!==0&&a.push(A.collection(o))}return a},hR=function(e,r){for(var n=0;n5&&arguments[5]!==void 0?arguments[5]:vR,o=A,s,l,u=0;u=2?Ii(e,r,n,0,kg,mR):Ii(e,r,n,0,Hg)},squaredEuclidean:function(e,r,n){return Ii(e,r,n,0,kg)},manhattan:function(e,r,n){return Ii(e,r,n,0,Hg)},max:function(e,r,n){return Ii(e,r,n,-1/0,yR)}};ei["squared-euclidean"]=ei.squaredEuclidean;ei.squaredeuclidean=ei.squaredEuclidean;function uc(t,e,r,n,A,a){var i;return wt(t)?i=t:i=ei[t]||ei.euclidean,e===0&&wt(t)?i(A,a):i(e,r,n,A,a)}var BR=Jt({k:2,m:2,sensitivityThreshold:1e-4,distance:"euclidean",maxIterations:10,attributes:[],testMode:!1,testCentroids:null}),Ih=function(e){return BR(e)},_l=function(e,r,n,A,a){var i=a!=="kMedoids",o=i?function(c){return n[c]}:function(c){return A[c](n)},s=function(d){return A[d](r)},l=n,u=r;return uc(e,A.length,o,s,l,u)},ef=function(e,r,n){for(var A=n.length,a=new Array(A),i=new Array(A),o=new Array(r),s=null,l=0;ln)return!1}return!0},bR=function(e,r,n){for(var A=0;Ao&&(o=r[l][u],s=u);a[s].push(e[l])}for(var c=0;c=a.threshold||a.mode==="dendrogram"&&e.length===1)return!1;var f=r[i],p=r[A[i]],g;a.mode==="dendrogram"?g={left:f,right:p,key:f.key}:g={value:f.value.concat(p.value),key:f.key},e[f.index]=g,e.splice(p.index,1),r[f.key]=g;for(var m=0;mn[p.key][w.key]&&(s=n[p.key][w.key])):a.linkage==="max"?(s=n[f.key][w.key],n[f.key][w.key]0&&A.push(a);return A},$g=function(e,r,n){for(var A=[],a=0;ao&&(i=l,o=r[a*e+l])}i>0&&A.push(i)}for(var u=0;ul&&(s=u,l=c)}n[a]=i[s]}return A=$g(e,r,n),A},zg=function(e){for(var r=this.cy(),n=this.nodes(),A=HR(e),a={},i=0;i=Q?(S=Q,Q=U,T=L):U>S&&(S=U);for(var R=0;R0?1:0;C[y%A.minIterations*o+K]=W,P+=W}if(P>0&&(y>=A.minIterations-1||y==A.maxIterations-1)){for(var X=0,Z=0;Z1||E>1)&&(o=!0),c[v]=[],w.outgoers().forEach(function(F){F.isEdge()&&c[v].push(F.id())})}else d[v]=[void 0,w.target().id()]}):i.forEach(function(w){var v=w.id();if(w.isNode()){var B=w.degree(!0);B%2&&(s?l?o=!0:l=v:s=v),c[v]=[],w.connectedEdges().forEach(function(b){return c[v].push(b.id())})}else d[v]=[w.source().id(),w.target().id()]});var h={found:!1,trail:void 0};if(o)return h;if(l&&s)if(a){if(u&&l!=u)return h;u=l}else{if(u&&l!=u&&s!=u)return h;u||(u=l)}else u||(u=i[0].id());var f=function(v){for(var B=v,b=[v],E,C,F;c[B].length;)E=c[B].shift(),C=d[E][0],F=d[E][1],B!=F?(c[F]=c[F].filter(function(y){return y!=E}),B=F):!a&&B!=C&&(c[C]=c[C].filter(function(y){return y!=E}),B=C),b.unshift(E),b.unshift(B);return b},p=[],g=[];for(g=f(u);g.length!=1;)c[g[0]].length==0?(p.unshift(i.getElementById(g.shift())),p.unshift(i.getElementById(g.shift()))):g=f(g.shift()).concat(g);p.unshift(i.getElementById(g.shift()));for(var m in c)if(c[m].length)return h;return h.found=!0,h.trail=this.spawn(p,!0),h}},Ls=function(){var e=this,r={},n=0,A=0,a=[],i=[],o={},s=function(d,h){for(var f=i.length-1,p=[],g=e.spawn();i[f].x!=d||i[f].y!=h;)p.push(i.pop().edge),f--;p.push(i.pop().edge),p.forEach(function(m){var w=m.connectedNodes().intersection(e);g.merge(m),w.forEach(function(v){var B=v.id(),b=v.connectedEdges().intersection(e);g.merge(v),r[B].cutVertex?g.merge(b.filter(function(E){return E.isLoop()})):g.merge(b)})}),a.push(g)},l=function c(d,h,f){d===f&&(A+=1),r[h]={id:n,low:n++,cutVertex:!1};var p=e.getElementById(h).connectedEdges().intersection(e);if(p.size()===0)a.push(e.spawn(e.getElementById(h)));else{var g,m,w,v;p.forEach(function(B){g=B.source().id(),m=B.target().id(),w=g===h?m:g,w!==f&&(v=B.id(),o[v]||(o[v]=!0,i.push({x:h,y:w,edge:B})),w in r?r[h].low=Math.min(r[h].low,r[w].id):(c(d,w,h),r[h].low=Math.min(r[h].low,r[w].low),r[h].id<=r[w].low&&(r[h].cutVertex=!0,s(h,w))))})}};e.forEach(function(c){if(c.isNode()){var d=c.id();d in r||(A=0,l(d,d),r[d].cutVertex=A>1)}});var u=Object.keys(r).filter(function(c){return r[c].cutVertex}).map(function(c){return e.getElementById(c)});return{cut:e.spawn(u),components:a}},zR={hopcroftTarjanBiconnected:Ls,htbc:Ls,htb:Ls,hopcroftTarjanBiconnectedComponents:Ls},Ds=function(){var e=this,r={},n=0,A=[],a=[],i=e.spawn(e),o=function s(l){a.push(l),r[l]={index:n,low:n++,explored:!1};var u=e.getElementById(l).connectedEdges().intersection(e);if(u.forEach(function(p){var g=p.target().id();g!==l&&(g in r||s(g),r[g].explored||(r[l].low=Math.min(r[l].low,r[g].low)))}),r[l].index===r[l].low){for(var c=e.spawn();;){var d=a.pop();if(c.merge(e.getElementById(d)),r[d].low=r[l].index,r[d].explored=!0,d===l)break}var h=c.edgesWith(c),f=c.merge(h);A.push(f),i=i.difference(f)}};return e.forEach(function(s){if(s.isNode()){var l=s.id();l in r||o(l)}}),{cut:i,components:A}},WR={tarjanStronglyConnected:Ds,tsc:Ds,tscc:Ds,tarjanStronglyConnectedComponents:Ds},oB={};[To,CD,bD,xD,QD,UD,LD,nR,Ha,ka,rd,gR,UR,MR,GR,$R,zR,WR].forEach(function(t){Re(oB,t)});/*! Embeddable Minimum Strictly-Compliant Promises/A+ 1.1.1 Thenable Copyright (c) 2013-2014 Ralf S. Engelschall (http://engelschall.com) Licensed under The MIT License (http://opensource.org/licenses/MIT) -*/var sB=0,lB=1,uB=2,Nn=function t(e){if(!(this instanceof t))return new t(e);this.id="Thenable/1.0.7",this.state=sB,this.fulfillValue=void 0,this.rejectReason=void 0,this.onFulfilled=[],this.onRejected=[],this.proxy={then:this.then.bind(this)},typeof e=="function"&&e.call(this,this.fulfill.bind(this),this.reject.bind(this))};Nn.prototype={fulfill:function(e){return Wg(this,lB,"fulfillValue",e)},reject:function(e){return Wg(this,uB,"rejectReason",e)},then:function(e,r){var n=this,A=new Nn;return n.onFulfilled.push(Xg(e,A,"fulfill")),n.onRejected.push(Xg(r,A,"reject")),cB(n),A.proxy}};var Wg=function(e,r,n,A){return e.state===sB&&(e.state=r,e[n]=A,cB(e)),e},cB=function(e){e.state===lB?_g(e,"onFulfilled",e.fulfillValue):e.state===uB&&_g(e,"onRejected",e.rejectReason)},_g=function(e,r,n){if(e[r].length!==0){var A=e[r];e[r]=[];var a=function(){for(var o=0;o0}},clearQueue:function(){return function(){var r=this,n=r.length!==void 0,A=n?r:[r],a=this._private.cy||this;if(!a.styleEnabled())return this;for(var i=0;i-1}var ZM=JM;function eO(t,e){var r=this.__data__,n=fc(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}var tO=eO;function li(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e-1&&t%1==0&&t0&&this.spawn(A).updateStyle().emit("class"),r},addClass:function(e){return this.toggleClass(e,!0)},hasClass:function(e){var r=this[0];return r!=null&&r._private.classes.has(e)},toggleClass:function(e,r){lt(e)||(e=e.match(/\S+/g)||[]);for(var n=this,A=r===void 0,a=[],i=0,o=n.length;i0&&this.spawn(a).updateStyle().emit("class"),n},removeClass:function(e){return this.toggleClass(e,!1)},flashClass:function(e,r){var n=this;if(r==null)r=250;else if(r===0)return n;return n.addClass(e),setTimeout(function(){n.removeClass(e)},r),n}};yl.className=yl.classNames=yl.classes;var We={metaChar:"[\\!\\\"\\#\\$\\%\\&\\'\\(\\)\\*\\+\\,\\.\\/\\:\\;\\<\\=\\>\\?\\@\\[\\]\\^\\`\\{\\|\\}\\~]",comparatorOp:"=|\\!=|>|>=|<|<=|\\$=|\\^=|\\*=",boolOp:"\\?|\\!|\\^",string:`"(?:\\\\"|[^"])*"|'(?:\\\\'|[^'])*'`,number:kt,meta:"degree|indegree|outdegree",separator:"\\s*,\\s*",descendant:"\\s+",child:"\\s+>\\s+",subject:"\\$",group:"node|edge|\\*",directedEdge:"\\s+->\\s+",undirectedEdge:"\\s+<->\\s+"};We.variable="(?:[\\w-.]|(?:\\\\"+We.metaChar+"))+";We.className="(?:[\\w-]|(?:\\\\"+We.metaChar+"))+";We.value=We.string+"|"+We.number;We.id=We.variable;(function(){var t,e,r;for(t=We.comparatorOp.split("|"),r=0;r=0)&&e!=="="&&(We.comparatorOp+="|\\!"+e)})();var At=function(){return{checks:[]}},Ie={GROUP:0,COLLECTION:1,FILTER:2,DATA_COMPARE:3,DATA_EXIST:4,DATA_BOOL:5,META_COMPARE:6,STATE:7,ID:8,CLASS:9,UNDIRECTED_EDGE:10,DIRECTED_EDGE:11,NODE_SOURCE:12,NODE_TARGET:13,NODE_NEIGHBOR:14,CHILD:15,DESCENDANT:16,PARENT:17,ANCESTOR:18,COMPOUND_SPLIT:19,TRUE:20},Ad=[{selector:":selected",matches:function(e){return e.selected()}},{selector:":unselected",matches:function(e){return!e.selected()}},{selector:":selectable",matches:function(e){return e.selectable()}},{selector:":unselectable",matches:function(e){return!e.selectable()}},{selector:":locked",matches:function(e){return e.locked()}},{selector:":unlocked",matches:function(e){return!e.locked()}},{selector:":visible",matches:function(e){return e.visible()}},{selector:":hidden",matches:function(e){return!e.visible()}},{selector:":transparent",matches:function(e){return e.transparent()}},{selector:":grabbed",matches:function(e){return e.grabbed()}},{selector:":free",matches:function(e){return!e.grabbed()}},{selector:":removed",matches:function(e){return e.removed()}},{selector:":inside",matches:function(e){return!e.removed()}},{selector:":grabbable",matches:function(e){return e.grabbable()}},{selector:":ungrabbable",matches:function(e){return!e.grabbable()}},{selector:":animated",matches:function(e){return e.animated()}},{selector:":unanimated",matches:function(e){return!e.animated()}},{selector:":parent",matches:function(e){return e.isParent()}},{selector:":childless",matches:function(e){return e.isChildless()}},{selector:":child",matches:function(e){return e.isChild()}},{selector:":orphan",matches:function(e){return e.isOrphan()}},{selector:":nonorphan",matches:function(e){return e.isChild()}},{selector:":compound",matches:function(e){return e.isNode()?e.isParent():e.source().isParent()||e.target().isParent()}},{selector:":loop",matches:function(e){return e.isLoop()}},{selector:":simple",matches:function(e){return e.isSimple()}},{selector:":active",matches:function(e){return e.active()}},{selector:":inactive",matches:function(e){return!e.active()}},{selector:":backgrounding",matches:function(e){return e.backgrounding()}},{selector:":nonbackgrounding",matches:function(e){return!e.backgrounding()}}].sort(function(t,e){return g2(t.selector,e.selector)}),aH=function(){for(var t={},e,r=0;r0&&u.edgeCount>0)return tt("The selector `"+e+"` is invalid because it uses both a compound selector and an edge selector"),!1;if(u.edgeCount>1)return tt("The selector `"+e+"` is invalid because it uses multiple edge selectors"),!1;u.edgeCount===1&&tt("The selector `"+e+"` is deprecated. Edge selectors do not take effect on changes to source and target nodes after an edge is added, for performance reasons. Use a class or data selector on edges instead, updating the class or data of an edge when your app detects a change in source or target nodes.")}return!0},cH=function(){if(this.toStringCache!=null)return this.toStringCache;for(var e=function(u){return u??""},r=function(u){return Le(u)?'"'+u+'"':e(u)},n=function(u){return" "+u+" "},A=function(u,c){var d=u.type,h=u.value;switch(d){case Ie.GROUP:{var f=e(h);return f.substring(0,f.length-1)}case Ie.DATA_COMPARE:{var p=u.field,g=u.operator;return"["+p+n(e(g))+r(h)+"]"}case Ie.DATA_BOOL:{var m=u.operator,B=u.field;return"["+e(m)+B+"]"}case Ie.DATA_EXIST:{var v=u.field;return"["+v+"]"}case Ie.META_COMPARE:{var y=u.operator,b=u.field;return"[["+b+n(e(y))+r(h)+"]]"}case Ie.STATE:return h;case Ie.ID:return"#"+h;case Ie.CLASS:return"."+h;case Ie.PARENT:case Ie.CHILD:return a(u.parent,c)+n(">")+a(u.child,c);case Ie.ANCESTOR:case Ie.DESCENDANT:return a(u.ancestor,c)+" "+a(u.descendant,c);case Ie.COMPOUND_SPLIT:{var E=a(u.left,c),C=a(u.subject,c),F=a(u.right,c);return E+(E.length>0?" ":"")+C+F}case Ie.TRUE:return""}},a=function(u,c){return u.checks.reduce(function(d,h,f){return d+(c===u&&f===0?"$":"")+A(h,c)},"")},i="",o=0;o1&&o=0&&(r=r.replace("!",""),c=!0),r.indexOf("@")>=0&&(r=r.replace("@",""),u=!0),(a||o||u)&&(s=!a&&!i?"":""+e,l=""+n),u&&(e=s=s.toLowerCase(),n=l=l.toLowerCase()),r){case"*=":A=s.indexOf(l)>=0;break;case"$=":A=s.indexOf(l,s.length-l.length)>=0;break;case"^=":A=s.indexOf(l)===0;break;case"=":A=e===n;break;case">":d=!0,A=e>n;break;case">=":d=!0,A=e>=n;break;case"<":d=!0,A=e0;){var u=A.shift();e(u),a.add(u.id()),o&&n(A,a,u)}return t}function BB(t,e,r){if(r.isParent())for(var n=r._private.children,A=0;A1&&arguments[1]!==void 0?arguments[1]:!0;return Oh(this,t,e,BB)};function wB(t,e,r){if(r.isChild()){var n=r._private.parent;e.has(n.id())||t.push(n)}}ei.forEachUp=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return Oh(this,t,e,wB)};function yH(t,e,r){wB(t,e,r),BB(t,e,r)}ei.forEachUpAndDown=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return Oh(this,t,e,yH)};ei.ancestors=ei.parents;var Ro,CB;Ro=CB={data:et.data({field:"data",bindingEvent:"data",allowBinding:!0,allowSetting:!0,settingEvent:"data",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,immutableKeys:{id:!0,source:!0,target:!0,parent:!0},updateStyle:!0}),removeData:et.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,immutableKeys:{id:!0,source:!0,target:!0,parent:!0},updateStyle:!0}),scratch:et.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:et.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),rscratch:et.data({field:"rscratch",allowBinding:!1,allowSetting:!0,settingTriggersEvent:!1,allowGetting:!0}),removeRscratch:et.removeData({field:"rscratch",triggerEvent:!1}),id:function(){var e=this[0];if(e)return e._private.data.id}};Ro.attr=Ro.data;Ro.removeAttr=Ro.removeData;var BH=CB,hc={};function rf(t){return function(e){var r=this;if(e===void 0&&(e=!0),r.length!==0)if(r.isNode()&&!r.removed()){for(var n=0,A=r[0],a=A._private.edges,i=0;ie}),minIndegree:la("indegree",function(t,e){return te}),minOutdegree:la("outdegree",function(t,e){return te})});Re(hc,{totalDegree:function(e){for(var r=0,n=this.nodes(),A=0;A0,d=c;c&&(u=u[0]);var h=d?u.position():{x:0,y:0};r!==void 0?l.position(e,r+h[e]):a!==void 0&&l.position({x:a.x+h.x,y:a.y+h.y})}else{var f=n.position(),p=o?n.parent():null,g=p&&p.length>0,m=g;g&&(p=p[0]);var B=m?p.position():{x:0,y:0};return a={x:f.x-B.x,y:f.y-B.y},e===void 0?a:a[e]}else if(!i)return;return this}};tn.modelPosition=tn.point=tn.position;tn.modelPositions=tn.points=tn.positions;tn.renderedPoint=tn.renderedPosition;tn.relativePoint=tn.relativePosition;var wH=bB,Pa,gA;Pa=gA={};gA.renderedBoundingBox=function(t){var e=this.boundingBox(t),r=this.cy(),n=r.zoom(),A=r.pan(),a=e.x1*n+A.x,i=e.x2*n+A.x,o=e.y1*n+A.y,s=e.y2*n+A.y;return{x1:a,x2:i,y1:o,y2:s,w:i-a,h:s-o}};gA.dirtyCompoundBoundsCache=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,e=this.cy();return!e.styleEnabled()||!e.hasCompoundNodes()?this:(this.forEachUp(function(r){if(r.isParent()){var n=r._private;n.compoundBoundsClean=!1,n.bbCache=null,t||r.emitAndNotify("bounds")}}),this)};gA.updateCompoundBounds=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,e=this.cy();if(!e.styleEnabled()||!e.hasCompoundNodes())return this;if(!t&&e.batching())return this;function r(i){if(!i.isParent())return;var o=i._private,s=i.children(),l=i.pstyle("compound-sizing-wrt-labels").value==="include",u={width:{val:i.pstyle("min-width").pfValue,left:i.pstyle("min-width-bias-left"),right:i.pstyle("min-width-bias-right")},height:{val:i.pstyle("min-height").pfValue,top:i.pstyle("min-height-bias-top"),bottom:i.pstyle("min-height-bias-bottom")}},c=s.boundingBox({includeLabels:l,includeOverlays:!1,useCache:!1}),d=o.position;(c.w===0||c.h===0)&&(c={w:i.pstyle("width").pfValue,h:i.pstyle("height").pfValue},c.x1=d.x-c.w/2,c.x2=d.x+c.w/2,c.y1=d.y-c.h/2,c.y2=d.y+c.h/2);function h(w,x,Q){var S=0,T=0,U=x+Q;return w>0&&U>0&&(S=x/U*w,T=Q/U*w),{biasDiff:S,biasComplementDiff:T}}function f(w,x,Q,S){if(Q.units==="%")switch(S){case"width":return w>0?Q.pfValue*w:0;case"height":return x>0?Q.pfValue*x:0;case"average":return w>0&&x>0?Q.pfValue*(w+x)/2:0;case"min":return w>0&&x>0?w>x?Q.pfValue*x:Q.pfValue*w:0;case"max":return w>0&&x>0?w>x?Q.pfValue*w:Q.pfValue*x:0;default:return 0}else return Q.units==="px"?Q.pfValue:0}var p=u.width.left.value;u.width.left.units==="px"&&u.width.val>0&&(p=p*100/u.width.val);var g=u.width.right.value;u.width.right.units==="px"&&u.width.val>0&&(g=g*100/u.width.val);var m=u.height.top.value;u.height.top.units==="px"&&u.height.val>0&&(m=m*100/u.height.val);var B=u.height.bottom.value;u.height.bottom.units==="px"&&u.height.val>0&&(B=B*100/u.height.val);var v=h(u.width.val-c.w,p,g),y=v.biasDiff,b=v.biasComplementDiff,E=h(u.height.val-c.h,m,B),C=E.biasDiff,F=E.biasComplementDiff;o.autoPadding=f(c.w,c.h,i.pstyle("padding"),i.pstyle("padding-relative-to").value),o.autoWidth=Math.max(c.w,u.width.val),d.x=(-y+c.x1+c.x2+b)/2,o.autoHeight=Math.max(c.h,u.height.val),d.y=(-C+c.y1+c.y2+F)/2}for(var n=0;ne.x2?A:e.x2,e.y1=ne.y2?a:e.y2,e.w=e.x2-e.x1,e.h=e.y2-e.y1)},EA=function(e,r){return r==null?e:qr(e,r.x1,r.y1,r.x2,r.y2)},Ii=function(e,r,n){return Jr(e,r,n)},Rs=function(e,r,n){if(!r.cy().headless()){var A=r._private,a=A.rstyle,i=a.arrowWidth/2,o=r.pstyle(n+"-arrow-shape").value,s,l;if(o!=="none"){n==="source"?(s=a.srcX,l=a.srcY):n==="target"?(s=a.tgtX,l=a.tgtY):(s=a.midX,l=a.midY);var u=A.arrowBounds=A.arrowBounds||{},c=u[n]=u[n]||{};c.x1=s-i,c.y1=l-i,c.x2=s+i,c.y2=l+i,c.w=c.x2-c.x1,c.h=c.y2-c.y1,vl(c,1),qr(e,c.x1,c.y1,c.x2,c.y2)}}},nf=function(e,r,n){if(!r.cy().headless()){var A;n?A=n+"-":A="";var a=r._private,i=a.rstyle,o=r.pstyle(A+"label").strValue;if(o){var s=r.pstyle("text-halign"),l=r.pstyle("text-valign"),u=Ii(i,"labelWidth",n),c=Ii(i,"labelHeight",n),d=Ii(i,"labelX",n),h=Ii(i,"labelY",n),f=r.pstyle(A+"text-margin-x").pfValue,p=r.pstyle(A+"text-margin-y").pfValue,g=r.isEdge(),m=r.pstyle(A+"text-rotation"),B=r.pstyle("text-outline-width").pfValue,v=r.pstyle("text-border-width").pfValue,y=v/2,b=r.pstyle("text-background-padding").pfValue,E=2,C=c,F=u,w=F/2,x=C/2,Q,S,T,U;if(g)Q=d-w,S=d+w,T=h-x,U=h+x;else{switch(s.value){case"left":Q=d-F,S=d;break;case"center":Q=d-w,S=d+w;break;case"right":Q=d,S=d+F;break}switch(l.value){case"top":T=h-C,U=h;break;case"center":T=h-x,U=h+x;break;case"bottom":T=h,U=h+C;break}}Q+=f-Math.max(B,y)-b-E,S+=f+Math.max(B,y)+b+E,T+=p-Math.max(B,y)-b-E,U+=p+Math.max(B,y)+b+E;var L=n||"main",R=a.labelBounds,M=R[L]=R[L]||{};M.x1=Q,M.y1=T,M.x2=S,M.y2=U,M.w=S-Q,M.h=U-T;var H=g&&m.strValue==="autorotate",k=m.pfValue!=null&&m.pfValue!==0;if(H||k){var N=H?Ii(a.rstyle,"labelAngle",n):m.pfValue,P=Math.cos(N),K=Math.sin(N),W=(Q+S)/2,X=(T+U)/2;if(!g){switch(s.value){case"left":W=S;break;case"right":W=Q;break}switch(l.value){case"top":X=U;break;case"bottom":X=T;break}}var Z=function(te,ae){return te=te-W,ae=ae-X,{x:te*P-ae*K+W,y:te*K+ae*P+X}},Ae=Z(Q,T),ie=Z(Q,U),re=Z(S,T),z=Z(S,U);Q=Math.min(Ae.x,ie.x,re.x,z.x),S=Math.max(Ae.x,ie.x,re.x,z.x),T=Math.min(Ae.y,ie.y,re.y,z.y),U=Math.max(Ae.y,ie.y,re.y,z.y)}var q=L+"Rot",ee=R[q]=R[q]||{};ee.x1=Q,ee.y1=T,ee.x2=S,ee.y2=U,ee.w=S-Q,ee.h=U-T,qr(e,Q,T,S,U),qr(a.labelBounds.all,Q,T,S,U)}return e}},CH=function(e,r){if(!r.cy().headless()){var n=r.pstyle("outline-opacity").value,A=r.pstyle("outline-width").value;if(n>0&&A>0){var a=r.pstyle("outline-offset").value,i=r.pstyle("shape").value,o=A+a,s=(e.w+o*2)/e.w,l=(e.h+o*2)/e.h,u=0,c=0;["diamond","pentagon","round-triangle"].includes(i)?(s=(e.w+o*2.4)/e.w,c=-o/3.6):["concave-hexagon","rhomboid","right-rhomboid"].includes(i)?s=(e.w+o*2.4)/e.w:i==="star"?(s=(e.w+o*2.8)/e.w,l=(e.h+o*2.6)/e.h,c=-o/3.8):i==="triangle"?(s=(e.w+o*2.8)/e.w,l=(e.h+o*2.4)/e.h,c=-o/1.4):i==="vee"&&(s=(e.w+o*4.4)/e.w,l=(e.h+o*3.8)/e.h,c=-o*.5);var d=e.h*l-e.h,h=e.w*s-e.w;if(ml(e,[Math.ceil(d/2),Math.ceil(h/2)]),u!=0||c!==0){var f=VD(e,u,c);J0(e,f)}}}},bH=function(e,r){var n=e._private.cy,A=n.styleEnabled(),a=n.headless(),i=mr(),o=e._private,s=e.isNode(),l=e.isEdge(),u,c,d,h,f,p,g=o.rstyle,m=s&&A?e.pstyle("bounds-expansion").pfValue:[0],B=function(ve){return ve.pstyle("display").value!=="none"},v=!A||B(e)&&(!l||B(e.source())&&B(e.target()));if(v){var y=0,b=0;A&&r.includeOverlays&&(y=e.pstyle("overlay-opacity").value,y!==0&&(b=e.pstyle("overlay-padding").value));var E=0,C=0;A&&r.includeUnderlays&&(E=e.pstyle("underlay-opacity").value,E!==0&&(C=e.pstyle("underlay-padding").value));var F=Math.max(b,C),w=0,x=0;if(A&&(w=e.pstyle("width").pfValue,x=w/2),s&&r.includeNodes){var Q=e.position();f=Q.x,p=Q.y;var S=e.outerWidth(),T=S/2,U=e.outerHeight(),L=U/2;u=f-T,c=f+T,d=p-L,h=p+L,qr(i,u,d,c,h),A&&r.includeOutlines&&CH(i,e)}else if(l&&r.includeEdges)if(A&&!a){var R=e.pstyle("curve-style").strValue;if(u=Math.min(g.srcX,g.midX,g.tgtX),c=Math.max(g.srcX,g.midX,g.tgtX),d=Math.min(g.srcY,g.midY,g.tgtY),h=Math.max(g.srcY,g.midY,g.tgtY),u-=x,c+=x,d-=x,h+=x,qr(i,u,d,c,h),R==="haystack"){var M=g.haystackPts;if(M&&M.length===2){if(u=M[0].x,d=M[0].y,c=M[1].x,h=M[1].y,u>c){var H=u;u=c,c=H}if(d>h){var k=d;d=h,h=k}qr(i,u-x,d-x,c+x,h+x)}}else if(R==="bezier"||R==="unbundled-bezier"||R.endsWith("segments")||R.endsWith("taxi")){var N;switch(R){case"bezier":case"unbundled-bezier":N=g.bezierPts;break;case"segments":case"taxi":case"round-segments":case"round-taxi":N=g.linePts;break}if(N!=null)for(var P=0;Pc){var ie=u;u=c,c=ie}if(d>h){var re=d;d=h,h=re}u-=x,c+=x,d-=x,h+=x,qr(i,u,d,c,h)}if(A&&r.includeEdges&&l&&(Rs(i,e,"mid-source"),Rs(i,e,"mid-target"),Rs(i,e,"source"),Rs(i,e,"target")),A){var z=e.pstyle("ghost").value==="yes";if(z){var q=e.pstyle("ghost-offset-x").pfValue,ee=e.pstyle("ghost-offset-y").pfValue;qr(i,i.x1+q,i.y1+ee,i.x2+q,i.y2+ee)}}var se=o.bodyBounds=o.bodyBounds||{};Dg(se,i),ml(se,m),vl(se,1),A&&(u=i.x1,c=i.x2,d=i.y1,h=i.y2,qr(i,u-F,d-F,c+F,h+F));var te=o.overlayBounds=o.overlayBounds||{};Dg(te,i),ml(te,m),vl(te,1);var ae=o.labelBounds=o.labelBounds||{};ae.all!=null?GD(ae.all):ae.all=mr(),A&&r.includeLabels&&(r.includeMainLabels&&nf(i,e,null),l&&(r.includeSourceLabels&&nf(i,e,"source"),r.includeTargetLabels&&nf(i,e,"target")))}return i.x1=Lr(i.x1),i.y1=Lr(i.y1),i.x2=Lr(i.x2),i.y2=Lr(i.y2),i.w=Lr(i.x2-i.x1),i.h=Lr(i.y2-i.y1),i.w>0&&i.h>0&&v&&(ml(i,m),vl(i,1)),i},xB=function(e){var r=0,n=function(i){return(i?1:0)<0}},clearQueue:function(){return function(){var r=this,n=r.length!==void 0,A=n?r:[r],a=this._private.cy||this;if(!a.styleEnabled())return this;for(var i=0;i-1}var ZM=JM;function eO(t,e){var r=this.__data__,n=fc(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}var tO=eO;function ui(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e-1&&t%1==0&&t0&&this.spawn(A).updateStyle().emit("class"),r},addClass:function(e){return this.toggleClass(e,!0)},hasClass:function(e){var r=this[0];return r!=null&&r._private.classes.has(e)},toggleClass:function(e,r){lt(e)||(e=e.match(/\S+/g)||[]);for(var n=this,A=r===void 0,a=[],i=0,o=n.length;i0&&this.spawn(a).updateStyle().emit("class"),n},removeClass:function(e){return this.toggleClass(e,!1)},flashClass:function(e,r){var n=this;if(r==null)r=250;else if(r===0)return n;return n.addClass(e),setTimeout(function(){n.removeClass(e)},r),n}};yl.className=yl.classNames=yl.classes;var We={metaChar:"[\\!\\\"\\#\\$\\%\\&\\'\\(\\)\\*\\+\\,\\.\\/\\:\\;\\<\\=\\>\\?\\@\\[\\]\\^\\`\\{\\|\\}\\~]",comparatorOp:"=|\\!=|>|>=|<|<=|\\$=|\\^=|\\*=",boolOp:"\\?|\\!|\\^",string:`"(?:\\\\"|[^"])*"|'(?:\\\\'|[^'])*'`,number:kt,meta:"degree|indegree|outdegree",separator:"\\s*,\\s*",descendant:"\\s+",child:"\\s+>\\s+",subject:"\\$",group:"node|edge|\\*",directedEdge:"\\s+->\\s+",undirectedEdge:"\\s+<->\\s+"};We.variable="(?:[\\w-.]|(?:\\\\"+We.metaChar+"))+";We.className="(?:[\\w-]|(?:\\\\"+We.metaChar+"))+";We.value=We.string+"|"+We.number;We.id=We.variable;(function(){var t,e,r;for(t=We.comparatorOp.split("|"),r=0;r=0)&&e!=="="&&(We.comparatorOp+="|\\!"+e)})();var At=function(){return{checks:[]}},Ie={GROUP:0,COLLECTION:1,FILTER:2,DATA_COMPARE:3,DATA_EXIST:4,DATA_BOOL:5,META_COMPARE:6,STATE:7,ID:8,CLASS:9,UNDIRECTED_EDGE:10,DIRECTED_EDGE:11,NODE_SOURCE:12,NODE_TARGET:13,NODE_NEIGHBOR:14,CHILD:15,DESCENDANT:16,PARENT:17,ANCESTOR:18,COMPOUND_SPLIT:19,TRUE:20},Ad=[{selector:":selected",matches:function(e){return e.selected()}},{selector:":unselected",matches:function(e){return!e.selected()}},{selector:":selectable",matches:function(e){return e.selectable()}},{selector:":unselectable",matches:function(e){return!e.selectable()}},{selector:":locked",matches:function(e){return e.locked()}},{selector:":unlocked",matches:function(e){return!e.locked()}},{selector:":visible",matches:function(e){return e.visible()}},{selector:":hidden",matches:function(e){return!e.visible()}},{selector:":transparent",matches:function(e){return e.transparent()}},{selector:":grabbed",matches:function(e){return e.grabbed()}},{selector:":free",matches:function(e){return!e.grabbed()}},{selector:":removed",matches:function(e){return e.removed()}},{selector:":inside",matches:function(e){return!e.removed()}},{selector:":grabbable",matches:function(e){return e.grabbable()}},{selector:":ungrabbable",matches:function(e){return!e.grabbable()}},{selector:":animated",matches:function(e){return e.animated()}},{selector:":unanimated",matches:function(e){return!e.animated()}},{selector:":parent",matches:function(e){return e.isParent()}},{selector:":childless",matches:function(e){return e.isChildless()}},{selector:":child",matches:function(e){return e.isChild()}},{selector:":orphan",matches:function(e){return e.isOrphan()}},{selector:":nonorphan",matches:function(e){return e.isChild()}},{selector:":compound",matches:function(e){return e.isNode()?e.isParent():e.source().isParent()||e.target().isParent()}},{selector:":loop",matches:function(e){return e.isLoop()}},{selector:":simple",matches:function(e){return e.isSimple()}},{selector:":active",matches:function(e){return e.active()}},{selector:":inactive",matches:function(e){return!e.active()}},{selector:":backgrounding",matches:function(e){return e.backgrounding()}},{selector:":nonbackgrounding",matches:function(e){return!e.backgrounding()}}].sort(function(t,e){return g2(t.selector,e.selector)}),aH=function(){for(var t={},e,r=0;r0&&u.edgeCount>0)return tt("The selector `"+e+"` is invalid because it uses both a compound selector and an edge selector"),!1;if(u.edgeCount>1)return tt("The selector `"+e+"` is invalid because it uses multiple edge selectors"),!1;u.edgeCount===1&&tt("The selector `"+e+"` is deprecated. Edge selectors do not take effect on changes to source and target nodes after an edge is added, for performance reasons. Use a class or data selector on edges instead, updating the class or data of an edge when your app detects a change in source or target nodes.")}return!0},cH=function(){if(this.toStringCache!=null)return this.toStringCache;for(var e=function(u){return u??""},r=function(u){return Le(u)?'"'+u+'"':e(u)},n=function(u){return" "+u+" "},A=function(u,c){var d=u.type,h=u.value;switch(d){case Ie.GROUP:{var f=e(h);return f.substring(0,f.length-1)}case Ie.DATA_COMPARE:{var p=u.field,g=u.operator;return"["+p+n(e(g))+r(h)+"]"}case Ie.DATA_BOOL:{var m=u.operator,w=u.field;return"["+e(m)+w+"]"}case Ie.DATA_EXIST:{var v=u.field;return"["+v+"]"}case Ie.META_COMPARE:{var B=u.operator,b=u.field;return"[["+b+n(e(B))+r(h)+"]]"}case Ie.STATE:return h;case Ie.ID:return"#"+h;case Ie.CLASS:return"."+h;case Ie.PARENT:case Ie.CHILD:return a(u.parent,c)+n(">")+a(u.child,c);case Ie.ANCESTOR:case Ie.DESCENDANT:return a(u.ancestor,c)+" "+a(u.descendant,c);case Ie.COMPOUND_SPLIT:{var E=a(u.left,c),C=a(u.subject,c),F=a(u.right,c);return E+(E.length>0?" ":"")+C+F}case Ie.TRUE:return""}},a=function(u,c){return u.checks.reduce(function(d,h,f){return d+(c===u&&f===0?"$":"")+A(h,c)},"")},i="",o=0;o1&&o=0&&(r=r.replace("!",""),c=!0),r.indexOf("@")>=0&&(r=r.replace("@",""),u=!0),(a||o||u)&&(s=!a&&!i?"":""+e,l=""+n),u&&(e=s=s.toLowerCase(),n=l=l.toLowerCase()),r){case"*=":A=s.indexOf(l)>=0;break;case"$=":A=s.indexOf(l,s.length-l.length)>=0;break;case"^=":A=s.indexOf(l)===0;break;case"=":A=e===n;break;case">":d=!0,A=e>n;break;case">=":d=!0,A=e>=n;break;case"<":d=!0,A=e0;){var u=A.shift();e(u),a.add(u.id()),o&&n(A,a,u)}return t}function BB(t,e,r){if(r.isParent())for(var n=r._private.children,A=0;A1&&arguments[1]!==void 0?arguments[1]:!0;return Oh(this,t,e,BB)};function wB(t,e,r){if(r.isChild()){var n=r._private.parent;e.has(n.id())||t.push(n)}}ti.forEachUp=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return Oh(this,t,e,wB)};function yH(t,e,r){wB(t,e,r),BB(t,e,r)}ti.forEachUpAndDown=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return Oh(this,t,e,yH)};ti.ancestors=ti.parents;var Ro,CB;Ro=CB={data:et.data({field:"data",bindingEvent:"data",allowBinding:!0,allowSetting:!0,settingEvent:"data",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,immutableKeys:{id:!0,source:!0,target:!0,parent:!0},updateStyle:!0}),removeData:et.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,immutableKeys:{id:!0,source:!0,target:!0,parent:!0},updateStyle:!0}),scratch:et.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:et.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),rscratch:et.data({field:"rscratch",allowBinding:!1,allowSetting:!0,settingTriggersEvent:!1,allowGetting:!0}),removeRscratch:et.removeData({field:"rscratch",triggerEvent:!1}),id:function(){var e=this[0];if(e)return e._private.data.id}};Ro.attr=Ro.data;Ro.removeAttr=Ro.removeData;var BH=CB,hc={};function rf(t){return function(e){var r=this;if(e===void 0&&(e=!0),r.length!==0)if(r.isNode()&&!r.removed()){for(var n=0,A=r[0],a=A._private.edges,i=0;ie}),minIndegree:la("indegree",function(t,e){return te}),minOutdegree:la("outdegree",function(t,e){return te})});Re(hc,{totalDegree:function(e){for(var r=0,n=this.nodes(),A=0;A0,d=c;c&&(u=u[0]);var h=d?u.position():{x:0,y:0};r!==void 0?l.position(e,r+h[e]):a!==void 0&&l.position({x:a.x+h.x,y:a.y+h.y})}else{var f=n.position(),p=o?n.parent():null,g=p&&p.length>0,m=g;g&&(p=p[0]);var w=m?p.position():{x:0,y:0};return a={x:f.x-w.x,y:f.y-w.y},e===void 0?a:a[e]}else if(!i)return;return this}};tn.modelPosition=tn.point=tn.position;tn.modelPositions=tn.points=tn.positions;tn.renderedPoint=tn.renderedPosition;tn.relativePoint=tn.relativePosition;var wH=bB,Pa,gA;Pa=gA={};gA.renderedBoundingBox=function(t){var e=this.boundingBox(t),r=this.cy(),n=r.zoom(),A=r.pan(),a=e.x1*n+A.x,i=e.x2*n+A.x,o=e.y1*n+A.y,s=e.y2*n+A.y;return{x1:a,x2:i,y1:o,y2:s,w:i-a,h:s-o}};gA.dirtyCompoundBoundsCache=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,e=this.cy();return!e.styleEnabled()||!e.hasCompoundNodes()?this:(this.forEachUp(function(r){if(r.isParent()){var n=r._private;n.compoundBoundsClean=!1,n.bbCache=null,t||r.emitAndNotify("bounds")}}),this)};gA.updateCompoundBounds=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,e=this.cy();if(!e.styleEnabled()||!e.hasCompoundNodes())return this;if(!t&&e.batching())return this;function r(i){if(!i.isParent())return;var o=i._private,s=i.children(),l=i.pstyle("compound-sizing-wrt-labels").value==="include",u={width:{val:i.pstyle("min-width").pfValue,left:i.pstyle("min-width-bias-left"),right:i.pstyle("min-width-bias-right")},height:{val:i.pstyle("min-height").pfValue,top:i.pstyle("min-height-bias-top"),bottom:i.pstyle("min-height-bias-bottom")}},c=s.boundingBox({includeLabels:l,includeOverlays:!1,useCache:!1}),d=o.position;(c.w===0||c.h===0)&&(c={w:i.pstyle("width").pfValue,h:i.pstyle("height").pfValue},c.x1=d.x-c.w/2,c.x2=d.x+c.w/2,c.y1=d.y-c.h/2,c.y2=d.y+c.h/2);function h(y,x,Q){var S=0,T=0,U=x+Q;return y>0&&U>0&&(S=x/U*y,T=Q/U*y),{biasDiff:S,biasComplementDiff:T}}function f(y,x,Q,S){if(Q.units==="%")switch(S){case"width":return y>0?Q.pfValue*y:0;case"height":return x>0?Q.pfValue*x:0;case"average":return y>0&&x>0?Q.pfValue*(y+x)/2:0;case"min":return y>0&&x>0?y>x?Q.pfValue*x:Q.pfValue*y:0;case"max":return y>0&&x>0?y>x?Q.pfValue*y:Q.pfValue*x:0;default:return 0}else return Q.units==="px"?Q.pfValue:0}var p=u.width.left.value;u.width.left.units==="px"&&u.width.val>0&&(p=p*100/u.width.val);var g=u.width.right.value;u.width.right.units==="px"&&u.width.val>0&&(g=g*100/u.width.val);var m=u.height.top.value;u.height.top.units==="px"&&u.height.val>0&&(m=m*100/u.height.val);var w=u.height.bottom.value;u.height.bottom.units==="px"&&u.height.val>0&&(w=w*100/u.height.val);var v=h(u.width.val-c.w,p,g),B=v.biasDiff,b=v.biasComplementDiff,E=h(u.height.val-c.h,m,w),C=E.biasDiff,F=E.biasComplementDiff;o.autoPadding=f(c.w,c.h,i.pstyle("padding"),i.pstyle("padding-relative-to").value),o.autoWidth=Math.max(c.w,u.width.val),d.x=(-B+c.x1+c.x2+b)/2,o.autoHeight=Math.max(c.h,u.height.val),d.y=(-C+c.y1+c.y2+F)/2}for(var n=0;ne.x2?A:e.x2,e.y1=ne.y2?a:e.y2,e.w=e.x2-e.x1,e.h=e.y2-e.y1)},EA=function(e,r){return r==null?e:qr(e,r.x1,r.y1,r.x2,r.y2)},Li=function(e,r,n){return Jr(e,r,n)},Rs=function(e,r,n){if(!r.cy().headless()){var A=r._private,a=A.rstyle,i=a.arrowWidth/2,o=r.pstyle(n+"-arrow-shape").value,s,l;if(o!=="none"){n==="source"?(s=a.srcX,l=a.srcY):n==="target"?(s=a.tgtX,l=a.tgtY):(s=a.midX,l=a.midY);var u=A.arrowBounds=A.arrowBounds||{},c=u[n]=u[n]||{};c.x1=s-i,c.y1=l-i,c.x2=s+i,c.y2=l+i,c.w=c.x2-c.x1,c.h=c.y2-c.y1,vl(c,1),qr(e,c.x1,c.y1,c.x2,c.y2)}}},nf=function(e,r,n){if(!r.cy().headless()){var A;n?A=n+"-":A="";var a=r._private,i=a.rstyle,o=r.pstyle(A+"label").strValue;if(o){var s=r.pstyle("text-halign"),l=r.pstyle("text-valign"),u=Li(i,"labelWidth",n),c=Li(i,"labelHeight",n),d=Li(i,"labelX",n),h=Li(i,"labelY",n),f=r.pstyle(A+"text-margin-x").pfValue,p=r.pstyle(A+"text-margin-y").pfValue,g=r.isEdge(),m=r.pstyle(A+"text-rotation"),w=r.pstyle("text-outline-width").pfValue,v=r.pstyle("text-border-width").pfValue,B=v/2,b=r.pstyle("text-background-padding").pfValue,E=2,C=c,F=u,y=F/2,x=C/2,Q,S,T,U;if(g)Q=d-y,S=d+y,T=h-x,U=h+x;else{switch(s.value){case"left":Q=d-F,S=d;break;case"center":Q=d-y,S=d+y;break;case"right":Q=d,S=d+F;break}switch(l.value){case"top":T=h-C,U=h;break;case"center":T=h-x,U=h+x;break;case"bottom":T=h,U=h+C;break}}Q+=f-Math.max(w,B)-b-E,S+=f+Math.max(w,B)+b+E,T+=p-Math.max(w,B)-b-E,U+=p+Math.max(w,B)+b+E;var L=n||"main",R=a.labelBounds,M=R[L]=R[L]||{};M.x1=Q,M.y1=T,M.x2=S,M.y2=U,M.w=S-Q,M.h=U-T;var H=g&&m.strValue==="autorotate",k=m.pfValue!=null&&m.pfValue!==0;if(H||k){var N=H?Li(a.rstyle,"labelAngle",n):m.pfValue,P=Math.cos(N),K=Math.sin(N),W=(Q+S)/2,X=(T+U)/2;if(!g){switch(s.value){case"left":W=S;break;case"right":W=Q;break}switch(l.value){case"top":X=U;break;case"bottom":X=T;break}}var Z=function(te,ae){return te=te-W,ae=ae-X,{x:te*P-ae*K+W,y:te*K+ae*P+X}},Ae=Z(Q,T),ie=Z(Q,U),re=Z(S,T),z=Z(S,U);Q=Math.min(Ae.x,ie.x,re.x,z.x),S=Math.max(Ae.x,ie.x,re.x,z.x),T=Math.min(Ae.y,ie.y,re.y,z.y),U=Math.max(Ae.y,ie.y,re.y,z.y)}var q=L+"Rot",ee=R[q]=R[q]||{};ee.x1=Q,ee.y1=T,ee.x2=S,ee.y2=U,ee.w=S-Q,ee.h=U-T,qr(e,Q,T,S,U),qr(a.labelBounds.all,Q,T,S,U)}return e}},CH=function(e,r){if(!r.cy().headless()){var n=r.pstyle("outline-opacity").value,A=r.pstyle("outline-width").value;if(n>0&&A>0){var a=r.pstyle("outline-offset").value,i=r.pstyle("shape").value,o=A+a,s=(e.w+o*2)/e.w,l=(e.h+o*2)/e.h,u=0,c=0;["diamond","pentagon","round-triangle"].includes(i)?(s=(e.w+o*2.4)/e.w,c=-o/3.6):["concave-hexagon","rhomboid","right-rhomboid"].includes(i)?s=(e.w+o*2.4)/e.w:i==="star"?(s=(e.w+o*2.8)/e.w,l=(e.h+o*2.6)/e.h,c=-o/3.8):i==="triangle"?(s=(e.w+o*2.8)/e.w,l=(e.h+o*2.4)/e.h,c=-o/1.4):i==="vee"&&(s=(e.w+o*4.4)/e.w,l=(e.h+o*3.8)/e.h,c=-o*.5);var d=e.h*l-e.h,h=e.w*s-e.w;if(ml(e,[Math.ceil(d/2),Math.ceil(h/2)]),u!=0||c!==0){var f=VD(e,u,c);J0(e,f)}}}},bH=function(e,r){var n=e._private.cy,A=n.styleEnabled(),a=n.headless(),i=mr(),o=e._private,s=e.isNode(),l=e.isEdge(),u,c,d,h,f,p,g=o.rstyle,m=s&&A?e.pstyle("bounds-expansion").pfValue:[0],w=function(ve){return ve.pstyle("display").value!=="none"},v=!A||w(e)&&(!l||w(e.source())&&w(e.target()));if(v){var B=0,b=0;A&&r.includeOverlays&&(B=e.pstyle("overlay-opacity").value,B!==0&&(b=e.pstyle("overlay-padding").value));var E=0,C=0;A&&r.includeUnderlays&&(E=e.pstyle("underlay-opacity").value,E!==0&&(C=e.pstyle("underlay-padding").value));var F=Math.max(b,C),y=0,x=0;if(A&&(y=e.pstyle("width").pfValue,x=y/2),s&&r.includeNodes){var Q=e.position();f=Q.x,p=Q.y;var S=e.outerWidth(),T=S/2,U=e.outerHeight(),L=U/2;u=f-T,c=f+T,d=p-L,h=p+L,qr(i,u,d,c,h),A&&r.includeOutlines&&CH(i,e)}else if(l&&r.includeEdges)if(A&&!a){var R=e.pstyle("curve-style").strValue;if(u=Math.min(g.srcX,g.midX,g.tgtX),c=Math.max(g.srcX,g.midX,g.tgtX),d=Math.min(g.srcY,g.midY,g.tgtY),h=Math.max(g.srcY,g.midY,g.tgtY),u-=x,c+=x,d-=x,h+=x,qr(i,u,d,c,h),R==="haystack"){var M=g.haystackPts;if(M&&M.length===2){if(u=M[0].x,d=M[0].y,c=M[1].x,h=M[1].y,u>c){var H=u;u=c,c=H}if(d>h){var k=d;d=h,h=k}qr(i,u-x,d-x,c+x,h+x)}}else if(R==="bezier"||R==="unbundled-bezier"||R.endsWith("segments")||R.endsWith("taxi")){var N;switch(R){case"bezier":case"unbundled-bezier":N=g.bezierPts;break;case"segments":case"taxi":case"round-segments":case"round-taxi":N=g.linePts;break}if(N!=null)for(var P=0;Pc){var ie=u;u=c,c=ie}if(d>h){var re=d;d=h,h=re}u-=x,c+=x,d-=x,h+=x,qr(i,u,d,c,h)}if(A&&r.includeEdges&&l&&(Rs(i,e,"mid-source"),Rs(i,e,"mid-target"),Rs(i,e,"source"),Rs(i,e,"target")),A){var z=e.pstyle("ghost").value==="yes";if(z){var q=e.pstyle("ghost-offset-x").pfValue,ee=e.pstyle("ghost-offset-y").pfValue;qr(i,i.x1+q,i.y1+ee,i.x2+q,i.y2+ee)}}var se=o.bodyBounds=o.bodyBounds||{};Dg(se,i),ml(se,m),vl(se,1),A&&(u=i.x1,c=i.x2,d=i.y1,h=i.y2,qr(i,u-F,d-F,c+F,h+F));var te=o.overlayBounds=o.overlayBounds||{};Dg(te,i),ml(te,m),vl(te,1);var ae=o.labelBounds=o.labelBounds||{};ae.all!=null?GD(ae.all):ae.all=mr(),A&&r.includeLabels&&(r.includeMainLabels&&nf(i,e,null),l&&(r.includeSourceLabels&&nf(i,e,"source"),r.includeTargetLabels&&nf(i,e,"target")))}return i.x1=Lr(i.x1),i.y1=Lr(i.y1),i.x2=Lr(i.x2),i.y2=Lr(i.y2),i.w=Lr(i.x2-i.x1),i.h=Lr(i.y2-i.y1),i.w>0&&i.h>0&&v&&(ml(i,m),vl(i,1)),i},xB=function(e){var r=0,n=function(i){return(i?1:0)<0&&arguments[0]!==void 0?arguments[0]:kH,e=arguments.length>1?arguments[1]:void 0,r=0;r=0;o--)i(o);return this};dA.removeAllListeners=function(){return this.removeListener("*")};dA.emit=dA.trigger=function(t,e,r){var n=this.listeners,A=n.length;return this.emitting++,lt(e)||(e=[e]),PH(this,function(a,i){r!=null&&(n=[{event:i.event,type:i.type,namespace:i.namespace,callback:r}],A=n.length);for(var o=function(u){var c=n[u];if(c.type===i.type&&(!c.namespace||c.namespace===i.namespace||c.namespace===HH)&&a.eventMatches(a.context,c,i)){var d=[i];e!=null&&gD(d,e),a.beforeEmit(a.context,c,i),c.conf&&c.conf.one&&(a.listeners=a.listeners.filter(function(p){return p!==c}));var h=a.callbackContext(a.context,c,i),f=c.callback.apply(h,d);a.afterEmit(a.context,c,i),f===!1&&(i.stopPropagation(),i.preventDefault())}},s=0;s1&&!i){var o=this.length-1,s=this[o],l=s._private.data.id;this[o]=void 0,this[e]=s,a.set(l,{ele:s,index:e})}return this.length--,this},unmergeOne:function(e){e=e[0];var r=this._private,n=e._private.data.id,A=r.map,a=A.get(n);if(!a)return this;var i=a.index;return this.unmergeAt(i),this},unmerge:function(e){var r=this._private.cy;if(!e)return this;if(e&&Le(e)){var n=e;e=r.mutableElements().filter(n)}for(var A=0;A=0;r--){var n=this[r];e(n)&&this.unmergeAt(r)}return this},map:function(e,r){for(var n=[],A=this,a=0;an&&(n=s,A=o)}return{value:n,ele:A}},min:function(e,r){for(var n=1/0,A,a=this,i=0;i=0&&a"u"?"undefined":Pt(Symbol))!=e&&Pt(Symbol.iterator)!=e;r&&(Xl[Symbol.iterator]=function(){var n=this,A={value:void 0,done:!1},a=0,i=this.length;return T0({next:function(){return a1&&arguments[1]!==void 0?arguments[1]:!0,n=this[0],A=n.cy();if(A.styleEnabled()&&n){this.cleanStyle();var a=n._private.style[e];return a??(r?A.style().getDefaultProperty(e):null)}},numericStyle:function(e){var r=this[0];if(r.cy().styleEnabled()&&r){var n=r.pstyle(e);return n.pfValue!==void 0?n.pfValue:n.value}},numericStyleUnits:function(e){var r=this[0];if(r.cy().styleEnabled()&&r)return r.pstyle(e).units},renderedStyle:function(e){var r=this.cy();if(!r.styleEnabled())return this;var n=this[0];if(n)return r.style().getRenderedStyle(n,e)},style:function(e,r){var n=this.cy();if(!n.styleEnabled())return this;var A=!1,a=n.style();if(_e(e)){var i=e;a.applyBypass(this,i,A),this.emitAndNotify("style")}else if(Le(e))if(r===void 0){var o=this[0];return o?a.getStylePropertyValue(o,e):void 0}else a.applyBypass(this,e,r,A),this.emitAndNotify("style");else if(e===void 0){var s=this[0];return s?a.getRawStyle(s):void 0}return this},removeStyle:function(e){var r=this.cy();if(!r.styleEnabled())return this;var n=!1,A=r.style(),a=this;if(e===void 0)for(var i=0;i0&&e.push(u[0]),e.push(o[0])}return this.spawn(e,!0).filter(t)},"neighborhood"),closedNeighborhood:function(e){return this.neighborhood().add(this).filter(e)},openNeighborhood:function(e){return this.neighborhood(e)}});ar.neighbourhood=ar.neighborhood;ar.closedNeighbourhood=ar.closedNeighborhood;ar.openNeighbourhood=ar.openNeighborhood;Re(ar,{source:Hr(function(e){var r=this[0],n;return r&&(n=r._private.source||r.cy().collection()),n&&e?n.filter(e):n},"source"),target:Hr(function(e){var r=this[0],n;return r&&(n=r._private.target||r.cy().collection()),n&&e?n.filter(e):n},"target"),sources:cv({attr:"source"}),targets:cv({attr:"target"})});function cv(t){return function(r){for(var n=[],A=0;A0);return i},component:function(){var e=this[0];return e.cy().mutableElements().components(e)[0]}});ar.componentsOf=ar.components;var qt=function(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,A=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e===void 0){xt("A collection must have a reference to the core");return}var a=new yn,i=!1;if(!r)r=[];else if(r.length>0&&_e(r[0])&&!es(r[0])){i=!0;for(var o=[],s=new ii,l=0,u=r.length;l0&&arguments[0]!==void 0?arguments[0]:!0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=this,n=r.cy(),A=n._private,a=[],i=[],o,s=0,l=r.length;s0){for(var k=o.length===r.length?r:new qt(n,o),N=0;N0&&arguments[0]!==void 0?arguments[0]:!0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=this,n=[],A={},a=r._private.cy;function i(U){for(var L=U._private.edges,R=0;R0&&(t?Q.emitAndNotify("remove"):e&&Q.emit("remove"));for(var S=0;S0?S=U:Q=U;while(Math.abs(T)>i&&++L=a?B(x,L):R===0?L:y(x,Q,Q+l)}var E=!1;function C(){E=!0,(t!==e||r!==n)&&v()}var F=function(Q){return E||C(),t===e&&r===n?Q:Q===0?0:Q===1?1:g(b(Q),e,n)};F.getControlPoints=function(){return[{x:t,y:e},{x:r,y:n}]};var w="generateBezier("+[t,e,r,n]+")";return F.toString=function(){return w},F}/*! Runge-Kutta spring physics function generator. Adapted from Framer.js, copyright Koen Bok. MIT License: http://en.wikipedia.org/wiki/MIT_License */var jH=function(){function t(n){return-n.tension*n.x-n.friction*n.v}function e(n,A,a){var i={x:n.x+a.dx*A,v:n.v+a.dv*A,tension:n.tension,friction:n.friction};return{dx:i.v,dv:t(i)}}function r(n,A){var a={dx:n.v,dv:t(n)},i=e(n,A*.5,a),o=e(n,A*.5,i),s=e(n,A,o),l=1/6*(a.dx+2*(i.dx+o.dx)+s.dx),u=1/6*(a.dv+2*(i.dv+o.dv)+s.dv);return n.x=n.x+l*A,n.v=n.v+u*A,n}return function n(A,a,i){var o={x:-1,v:0,tension:null,friction:null},s=[0],l=0,u=1/1e4,c=16/1e3,d,h,f;for(A=parseFloat(A)||500,a=parseFloat(a)||20,i=i||null,o.tension=A,o.friction=a,d=i!==null,d?(l=n(A,a),h=l/i*c):h=c;f=r(f||o,h),s.push(1+f.x),l+=16,Math.abs(f.x)>u&&Math.abs(f.v)>u;);return d?function(p){return s[p*(s.length-1)|0]}:l}}(),ct=function(e,r,n,A){var a=YH(e,r,n,A);return function(i,o,s){return i+(o-i)*a(s)}},wl={linear:function(e,r,n){return e+(r-e)*n},ease:ct(.25,.1,.25,1),"ease-in":ct(.42,0,1,1),"ease-out":ct(0,0,.58,1),"ease-in-out":ct(.42,0,.58,1),"ease-in-sine":ct(.47,0,.745,.715),"ease-out-sine":ct(.39,.575,.565,1),"ease-in-out-sine":ct(.445,.05,.55,.95),"ease-in-quad":ct(.55,.085,.68,.53),"ease-out-quad":ct(.25,.46,.45,.94),"ease-in-out-quad":ct(.455,.03,.515,.955),"ease-in-cubic":ct(.55,.055,.675,.19),"ease-out-cubic":ct(.215,.61,.355,1),"ease-in-out-cubic":ct(.645,.045,.355,1),"ease-in-quart":ct(.895,.03,.685,.22),"ease-out-quart":ct(.165,.84,.44,1),"ease-in-out-quart":ct(.77,0,.175,1),"ease-in-quint":ct(.755,.05,.855,.06),"ease-out-quint":ct(.23,1,.32,1),"ease-in-out-quint":ct(.86,0,.07,1),"ease-in-expo":ct(.95,.05,.795,.035),"ease-out-expo":ct(.19,1,.22,1),"ease-in-out-expo":ct(1,0,0,1),"ease-in-circ":ct(.6,.04,.98,.335),"ease-out-circ":ct(.075,.82,.165,1),"ease-in-out-circ":ct(.785,.135,.15,.86),spring:function(e,r,n){if(n===0)return wl.linear;var A=jH(e,r,n);return function(a,i,o){return a+(i-a)*A(o)}},"cubic-bezier":ct};function hv(t,e,r,n,A){if(n===1||e===r)return r;var a=A(e,r,n);return t==null||((t.roundValue||t.color)&&(a=Math.round(a)),t.min!==void 0&&(a=Math.max(a,t.min)),t.max!==void 0&&(a=Math.min(a,t.max))),a}function pv(t,e){return t.pfValue!=null||t.value!=null?t.pfValue!=null&&(e==null||e.type.units!=="%")?t.pfValue:t.value:t}function ua(t,e,r,n,A){var a=A!=null?A.type:null;r<0?r=0:r>1&&(r=1);var i=pv(t,A),o=pv(e,A);if(be(i)&&be(o))return hv(a,i,o,r,n);if(lt(i)&<(o)){for(var s=[],l=0;l0?(h==="spring"&&f.push(i.duration),i.easingImpl=wl[h].apply(null,f)):i.easingImpl=wl[h]}var p=i.easingImpl,g;if(i.duration===0?g=1:g=(r-s)/i.duration,i.applying&&(g=i.progress),g<0?g=0:g>1&&(g=1),i.delay==null){var m=i.startPosition,B=i.position;if(B&&A&&!t.locked()){var v={};Di(m.x,B.x)&&(v.x=ua(m.x,B.x,g,p)),Di(m.y,B.y)&&(v.y=ua(m.y,B.y,g,p)),t.position(v)}var y=i.startPan,b=i.pan,E=a.pan,C=b!=null&&n;C&&(Di(y.x,b.x)&&(E.x=ua(y.x,b.x,g,p)),Di(y.y,b.y)&&(E.y=ua(y.y,b.y,g,p)),t.emit("pan"));var F=i.startZoom,w=i.zoom,x=w!=null&&n;x&&(Di(F,w)&&(a.zoom=Io(a.minZoom,ua(F,w,g,p),a.maxZoom)),t.emit("zoom")),(C||x)&&t.emit("viewport");var Q=i.style;if(Q&&Q.length>0&&A){for(var S=0;S=0;C--){var F=E[C];F()}E.splice(0,E.length)},B=h.length-1;B>=0;B--){var v=h[B],y=v._private;if(y.stopped){h.splice(B,1),y.hooked=!1,y.playing=!1,y.started=!1,m(y.frames);continue}!y.playing&&!y.applying||(y.playing&&y.applying&&(y.applying=!1),y.started||JH(u,v,t),qH(u,v,t,c),y.applying&&(y.applying=!1),m(y.frames),y.step!=null&&y.step(t),v.completed()&&(h.splice(B,1),y.hooked=!1,y.playing=!1,y.started=!1,m(y.completes)),p=!0)}return!c&&h.length===0&&f.length===0&&n.push(u),p}for(var a=!1,i=0;i0?e.notify("draw",r):e.notify("draw")),r.unmerge(n),e.emit("step")}var ZH={animate:et.animate(),animation:et.animation(),animated:et.animated(),clearQueue:et.clearQueue(),delay:et.delay(),delayAnimation:et.delayAnimation(),stop:et.stop(),addToAnimationPool:function(e){var r=this;r.styleEnabled()&&r._private.aniEles.merge(e)},stopAnimationLoop:function(){this._private.animationsRunning=!1},startAnimationLoop:function(){var e=this;if(e._private.animationsRunning=!0,!e.styleEnabled())return;function r(){e._private.animationsRunning&&Vl(function(a){gv(a,e),r()})}var n=e.renderer();n&&n.beforeRender?n.beforeRender(function(a,i){gv(i,e)},n.beforeRenderPriorities.animations):r()}},ek={qualifierCompare:function(e,r){return e==null||r==null?e==null&&r==null:e.sameText(r)},eventMatches:function(e,r,n){var A=r.qualifier;return A!=null?e!==n.target&&es(n.target)&&A.matches(n.target):!0},addEventFields:function(e,r){r.cy=e,r.target=e},callbackContext:function(e,r,n){return r.qualifier!=null?n.target:e}},Hs=function(e){return Le(e)?new cA(e):e},OB={createEmitter:function(){var e=this._private;return e.emitter||(e.emitter=new pc(ek,this)),this},emitter:function(){return this._private.emitter},on:function(e,r,n){return this.emitter().on(e,Hs(r),n),this},removeListener:function(e,r,n){return this.emitter().removeListener(e,Hs(r),n),this},removeAllListeners:function(){return this.emitter().removeAllListeners(),this},one:function(e,r,n){return this.emitter().one(e,Hs(r),n),this},once:function(e,r,n){return this.emitter().one(e,Hs(r),n),this},emit:function(e,r){return this.emitter().emit(e,r),this},emitAndNotify:function(e,r){return this.emit(e),this.notify(e,r),this}};et.eventAliasesOn(OB);var id={png:function(e){var r=this._private.renderer;return e=e||{},r.png(e)},jpg:function(e){var r=this._private.renderer;return e=e||{},e.bg=e.bg||"#fff",r.jpg(e)}};id.jpeg=id.jpg;var Cl={layout:function(e){var r=this;if(e==null){xt("Layout options must be specified to make a layout");return}if(e.name==null){xt("A `name` must be specified to make a layout");return}var n=e.name,A=r.extension("layout",n);if(A==null){xt("No such layout `"+n+"` found. Did you forget to import it and `cytoscape.use()` it?");return}var a;Le(e.eles)?a=r.$(e.eles):a=e.eles!=null?e.eles:r.$();var i=new A(Re({},e,{cy:r,eles:a}));return i}};Cl.createLayout=Cl.makeLayout=Cl.layout;var tk={notify:function(e,r){var n=this._private;if(this.batching()){n.batchNotifications=n.batchNotifications||{};var A=n.batchNotifications[e]=n.batchNotifications[e]||this.collection();r!=null&&A.merge(r);return}if(n.notificationsEnabled){var a=this.renderer();this.destroyed()||!a||a.notify(e,r)}},notifications:function(e){var r=this._private;return e===void 0?r.notificationsEnabled:(r.notificationsEnabled=!!e,this)},noNotifications:function(e){this.notifications(!1),e(),this.notifications(!0)},batching:function(){return this._private.batchCount>0},startBatch:function(){var e=this._private;return e.batchCount==null&&(e.batchCount=0),e.batchCount===0&&(e.batchStyleEles=this.collection(),e.batchNotifications={}),e.batchCount++,this},endBatch:function(){var e=this._private;if(e.batchCount===0)return this;if(e.batchCount--,e.batchCount===0){e.batchStyleEles.updateStyle();var r=this.renderer();Object.keys(e.batchNotifications).forEach(function(n){var A=e.batchNotifications[n];A.empty()?r.notify(n):r.notify(n,A)})}return this},batch:function(e){return this.startBatch(),e(),this.endBatch(),this},batchData:function(e){var r=this;return this.batch(function(){for(var n=Object.keys(e),A=0;A0;)r.removeChild(r.childNodes[0]);e._private.renderer=null,e.mutableElements().forEach(function(n){var A=n._private;A.rscratch={},A.rstyle={},A.animation.current=[],A.animation.queue=[]})},onRender:function(e){return this.on("render",e)},offRender:function(e){return this.off("render",e)}};od.invalidateDimensions=od.resize;var bl={collection:function(e,r){return Le(e)?this.$(e):Er(e)?e.collection():lt(e)?(r||(r={}),new qt(this,e,r.unique,r.removed)):new qt(this)},nodes:function(e){var r=this.$(function(n){return n.isNode()});return e?r.filter(e):r},edges:function(e){var r=this.$(function(n){return n.isEdge()});return e?r.filter(e):r},$:function(e){var r=this._private.elements;return e?r.filter(e):r.spawnSelf()},mutableElements:function(){return this._private.elements}};bl.elements=bl.filter=bl.$;var or={},oo="t",nk="f";or.apply=function(t){for(var e=this,r=e._private,n=r.cy,A=n.collection(),a=0;a0;if(d||c&&h){var f=void 0;d&&h||d?f=l.properties:h&&(f=l.mappedProperties);for(var p=0;p1&&(y=1),o.color){var E=n.valueMin[0],C=n.valueMax[0],F=n.valueMin[1],w=n.valueMax[1],x=n.valueMin[2],Q=n.valueMax[2],S=n.valueMin[3]==null?1:n.valueMin[3],T=n.valueMax[3]==null?1:n.valueMax[3],U=[Math.round(E+(C-E)*y),Math.round(F+(w-F)*y),Math.round(x+(Q-x)*y),Math.round(S+(T-S)*y)];a={bypass:n.bypass,name:n.name,value:U,strValue:"rgb("+U[0]+", "+U[1]+", "+U[2]+")"}}else if(o.number){var L=n.valueMin+(n.valueMax-n.valueMin)*y;a=this.parse(n.name,L,n.bypass,d)}else return!1;if(!a)return p(),!1;a.mapping=n,n=a;break}case i.data:{for(var R=n.field.split("."),M=c.data,H=0;H0&&a>0){for(var o={},s=!1,l=0;l0?t.delayAnimation(i).play().promise().then(v):v()}).then(function(){return t.animation({style:o,duration:a,easing:t.pstyle("transition-timing-function").value,queue:!1}).play().promise()}).then(function(){r.removeBypasses(t,A),t.emitAndNotify("style"),n.transitioning=!1})}else n.transitioning&&(this.removeBypasses(t,A),t.emitAndNotify("style"),n.transitioning=!1)};or.checkTrigger=function(t,e,r,n,A,a){var i=this.properties[e],o=A(i);o!=null&&o(r,n)&&a(i)};or.checkZOrderTrigger=function(t,e,r,n){var A=this;this.checkTrigger(t,e,r,n,function(a){return a.triggersZOrder},function(){A._private.cy.notify("zorder",t)})};or.checkBoundsTrigger=function(t,e,r,n){this.checkTrigger(t,e,r,n,function(A){return A.triggersBounds},function(A){t.dirtyCompoundBoundsCache(),t.dirtyBoundingBoxCache(),A.triggersBoundsOfParallelBeziers&&e==="curve-style"&&(r==="bezier"||n==="bezier")&&t.parallelEdges().forEach(function(a){a.isBundledBezier()&&a.dirtyBoundingBoxCache()}),A.triggersBoundsOfConnectedEdges&&e==="display"&&(r==="none"||n==="none")&&t.connectedEdges().forEach(function(a){a.dirtyBoundingBoxCache()})})};or.checkTriggers=function(t,e,r,n){t.dirtyStyleCache(),this.checkZOrderTrigger(t,e,r,n),this.checkBoundsTrigger(t,e,r,n)};var As={};As.applyBypass=function(t,e,r,n){var A=this,a=[],i=!0;if(e==="*"||e==="**"){if(r!==void 0)for(var o=0;oA.length?n=n.substr(A.length):n=""}function s(){a.length>i.length?a=a.substr(i.length):a=""}for(;;){var l=n.match(/^\s*$/);if(l)break;var u=n.match(/^\s*((?:.|\s)+?)\s*\{((?:.|\s)+?)\}/);if(!u){tt("Halting stylesheet parsing: String stylesheet contains more to parse but no selector and block found in: "+n);break}A=u[0];var c=u[1];if(c!=="core"){var d=new cA(c);if(d.invalid){tt("Skipping parsing of block: Invalid selector found in string stylesheet: "+c),o();continue}}var h=u[2],f=!1;a=h;for(var p=[];;){var g=a.match(/^\s*$/);if(g)break;var m=a.match(/^\s*(.+?)\s*:\s*(.+?)(?:\s*;|\s*$)/);if(!m){tt("Skipping parsing of block: Invalid formatting of style property and value definitions found in:"+h),f=!0;break}i=m[0];var B=m[1],v=m[2],y=e.properties[B];if(!y){tt("Skipping property: Invalid property name in: "+i),s();continue}var b=r.parse(B,v);if(!b){tt("Skipping property: Invalid property definition in: "+i),s();continue}p.push({name:B,val:v}),s()}if(f){o();break}r.selector(c);for(var E=0;E=7&&e[0]==="d"&&(u=new RegExp(o.data.regex).exec(e))){if(r)return!1;var d=o.data;return{name:t,value:u,strValue:""+e,mapped:d,field:u[1],bypass:r}}else if(e.length>=10&&e[0]==="m"&&(c=new RegExp(o.mapData.regex).exec(e))){if(r||l.multiple)return!1;var h=o.mapData;if(!(l.color||l.number))return!1;var f=this.parse(t,c[4]);if(!f||f.mapped)return!1;var p=this.parse(t,c[5]);if(!p||p.mapped)return!1;if(f.pfValue===p.pfValue||f.strValue===p.strValue)return tt("`"+t+": "+e+"` is not a valid mapper because the output range is zero; converting to `"+t+": "+f.strValue+"`"),this.parse(t,f.strValue);if(l.color){var g=f.value,m=p.value,B=g[0]===m[0]&&g[1]===m[1]&&g[2]===m[2]&&(g[3]===m[3]||(g[3]==null||g[3]===1)&&(m[3]==null||m[3]===1));if(B)return!1}return{name:t,value:c,strValue:""+e,mapped:h,field:c[1],fieldMin:parseFloat(c[2]),fieldMax:parseFloat(c[3]),valueMin:f.value,valueMax:p.value,bypass:r}}}if(l.multiple&&n!=="multiple"){var v;if(s?v=e.split(/\s+/):lt(e)?v=e:v=[e],l.evenMultiple&&v.length%2!==0)return null;for(var y=[],b=[],E=[],C="",F=!1,w=0;w0?" ":"")+x.strValue}return l.validate&&!l.validate(y,b)?null:l.singleEnum&&F?y.length===1&&Le(y[0])?{name:t,value:y[0],strValue:y[0],bypass:r}:null:{name:t,value:y,pfValue:E,strValue:C,bypass:r,units:b}}var Q=function(){for(var z=0;zl.max||l.strictMax&&e===l.max))return null;var R={name:t,value:e,strValue:""+e+(S||""),units:S,bypass:r};return l.unitless||S!=="px"&&S!=="em"?R.pfValue=e:R.pfValue=S==="px"||!S?e:this.getEmSizeInPixels()*e,(S==="ms"||S==="s")&&(R.pfValue=S==="ms"?e:1e3*e),(S==="deg"||S==="rad")&&(R.pfValue=S==="rad"?e:kD(e)),S==="%"&&(R.pfValue=e/100),R}else if(l.propList){var M=[],H=""+e;if(H!=="none"){for(var k=H.split(/\s*,\s*|\s+/),N=0;N0&&o>0&&!isNaN(n.w)&&!isNaN(n.h)&&n.w>0&&n.h>0){s=Math.min((i-2*r)/n.w,(o-2*r)/n.h),s=s>this._private.maxZoom?this._private.maxZoom:s,s=s=n.minZoom&&(n.maxZoom=r),this},minZoom:function(e){return e===void 0?this._private.minZoom:this.zoomRange({min:e})},maxZoom:function(e){return e===void 0?this._private.maxZoom:this.zoomRange({max:e})},getZoomedViewport:function(e){var r=this._private,n=r.pan,A=r.zoom,a,i,o=!1;if(r.zoomingEnabled||(o=!0),be(e)?i=e:_e(e)&&(i=e.level,e.position!=null?a=lc(e.position,A,n):e.renderedPosition!=null&&(a=e.renderedPosition),a!=null&&!r.panningEnabled&&(o=!0)),i=i>r.maxZoom?r.maxZoom:i,i=ir.maxZoom||!r.zoomingEnabled?i=!0:(r.zoom=s,a.push("zoom"))}if(A&&(!i||!e.cancelOnFailedZoom)&&r.panningEnabled){var l=e.pan;be(l.x)&&(r.pan.x=l.x,o=!1),be(l.y)&&(r.pan.y=l.y,o=!1),o||a.push("pan")}return a.length>0&&(a.push("viewport"),this.emit(a.join(" ")),this.notify("viewport")),this},center:function(e){var r=this.getCenterPan(e);return r&&(this._private.pan=r,this.emit("pan viewport"),this.notify("viewport")),this},getCenterPan:function(e,r){if(this._private.panningEnabled){if(Le(e)){var n=e;e=this.mutableElements().filter(n)}else Er(e)||(e=this.mutableElements());if(e.length!==0){var A=e.boundingBox(),a=this.width(),i=this.height();r=r===void 0?this._private.zoom:r;var o={x:(a-r*(A.x1+A.x2))/2,y:(i-r*(A.y1+A.y2))/2};return o}}},reset:function(){return!this._private.panningEnabled||!this._private.zoomingEnabled?this:(this.viewport({pan:{x:0,y:0},zoom:1}),this)},invalidateSize:function(){this._private.sizeCache=null},size:function(){var e=this._private,r=e.container,n=this;return e.sizeCache=e.sizeCache||(r?function(){var A=n.window().getComputedStyle(r),a=function(o){return parseFloat(A.getPropertyValue(o))};return{width:r.clientWidth-a("padding-left")-a("padding-right"),height:r.clientHeight-a("padding-top")-a("padding-bottom")}}():{width:1,height:1})},width:function(){return this.size().width},height:function(){return this.size().height},extent:function(){var e=this._private.pan,r=this._private.zoom,n=this.renderedExtent(),A={x1:(n.x1-e.x)/r,x2:(n.x2-e.x)/r,y1:(n.y1-e.y)/r,y2:(n.y2-e.y)/r};return A.w=A.x2-A.x1,A.h=A.y2-A.y1,A},renderedExtent:function(){var e=this.width(),r=this.height();return{x1:0,y1:0,x2:e,y2:r,w:e,h:r}},multiClickDebounceTime:function(e){if(e)this._private.multiClickDebounceTime=e;else return this._private.multiClickDebounceTime;return this}};_A.centre=_A.center;_A.autolockNodes=_A.autolock;_A.autoungrabifyNodes=_A.autoungrabify;var Oo={data:et.data({field:"data",bindingEvent:"data",allowBinding:!0,allowSetting:!0,settingEvent:"data",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeData:et.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),scratch:et.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:et.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0})};Oo.attr=Oo.data;Oo.removeAttr=Oo.removeData;var Ho=function(e){var r=this;e=Re({},e);var n=e.container;n&&!Gl(n)&&Gl(n[0])&&(n=n[0]);var A=n?n._cyreg:null;A=A||{},A&&A.cy&&(A.cy.destroy(),A={});var a=A.readies=A.readies||[];n&&(n._cyreg=A),A.cy=r;var i=Ot!==void 0&&n!==void 0&&!e.headless,o=e;o.layout=Re({name:i?"grid":"null"},o.layout),o.renderer=Re({name:i?"canvas":"null"},o.renderer);var s=function(f,p,g){return p!==void 0?p:g!==void 0?g:f},l=this._private={container:n,ready:!1,options:o,elements:new qt(this),listeners:[],aniEles:new qt(this),data:o.data||{},scratch:{},layout:null,renderer:null,destroyed:!1,notificationsEnabled:!0,minZoom:1e-50,maxZoom:1e50,zoomingEnabled:s(!0,o.zoomingEnabled),userZoomingEnabled:s(!0,o.userZoomingEnabled),panningEnabled:s(!0,o.panningEnabled),userPanningEnabled:s(!0,o.userPanningEnabled),boxSelectionEnabled:s(!0,o.boxSelectionEnabled),autolock:s(!1,o.autolock,o.autolockNodes),autoungrabify:s(!1,o.autoungrabify,o.autoungrabifyNodes),autounselectify:s(!1,o.autounselectify),styleEnabled:o.styleEnabled===void 0?i:o.styleEnabled,zoom:be(o.zoom)?o.zoom:1,pan:{x:_e(o.pan)&&be(o.pan.x)?o.pan.x:0,y:_e(o.pan)&&be(o.pan.y)?o.pan.y:0},animation:{current:[],queue:[]},hasCompoundNodes:!1,multiClickDebounceTime:s(250,o.multiClickDebounceTime)};this.createEmitter(),this.selectionType(o.selectionType),this.zoomRange({min:o.minZoom,max:o.maxZoom});var u=function(f,p){var g=f.some(s2);if(g)return oi.all(f).then(p);p(f)};l.styleEnabled&&r.setStyle([]);var c=Re({},o,o.renderer);r.initRenderer(c);var d=function(f,p,g){r.notifications(!1);var m=r.mutableElements();m.length>0&&m.remove(),f!=null&&(_e(f)||lt(f))&&r.add(f),r.one("layoutready",function(v){r.notifications(!0),r.emit(v),r.one("load",p),r.emitAndNotify("load")}).one("layoutstop",function(){r.one("done",g),r.emit("done")});var B=Re({},r._private.options.layout);B.eles=r.elements(),r.layout(B).run()};u([o.style,o.elements],function(h){var f=h[0],p=h[1];l.styleEnabled&&r.style().append(f),d(p,function(){r.startAnimationLoop(),l.ready=!0,wt(o.ready)&&r.on("ready",o.ready);for(var g=0;g0,s=mr(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:r.width(),h:r.height()}),l;if(Er(e.roots))l=e.roots;else if(lt(e.roots)){for(var u=[],c=0;c0;){var L=U(),R=x(L,S);if(R)L.outgoers().filter(function(ae){return ae.isNode()&&n.has(ae)}).forEach(T);else if(R===null){tt("Detected double maximal shift for node `"+L.id()+"`. Bailing maximal adjustment due to cycle. Use `options.maximal: true` only on DAGs.");break}}}w();var M=0;if(e.avoidOverlap)for(var H=0;H0&&m[0].length<=3?we/2:0),D=2*Math.PI/m[ge].length*he;return ge===0&&m[0].length===1&&($=1),{x:ee.x+$*Math.cos(D),y:ee.y+$*Math.sin(D)}}else{var _={x:ee.x+(he+1-(ye+1)/2)*Se,y:(ge+1)*Ce};return _}};return n.nodes().layoutPositions(this,e,te),this};var sk={fit:!0,padding:30,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,spacingFactor:void 0,radius:void 0,startAngle:3/2*Math.PI,sweep:void 0,clockwise:!0,sort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,r){return!0},ready:void 0,stop:void 0,transform:function(e,r){return r}};function kB(t){this.options=Re({},sk,t)}kB.prototype.run=function(){var t=this.options,e=t,r=t.cy,n=e.eles,A=e.counterclockwise!==void 0?!e.counterclockwise:e.clockwise,a=n.nodes().not(":parent");e.sort&&(a=a.sort(e.sort));for(var i=mr(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:r.width(),h:r.height()}),o={x:i.x1+i.w/2,y:i.y1+i.h/2},s=e.sweep===void 0?2*Math.PI-2*Math.PI/a.length:e.sweep,l=s/Math.max(1,a.length-1),u,c=0,d=0;d1&&e.avoidOverlap){c*=1.75;var m=Math.cos(l)-Math.cos(0),B=Math.sin(l)-Math.sin(0),v=Math.sqrt(c*c/(m*m+B*B));u=Math.max(v,u)}var y=function(E,C){var F=e.startAngle+C*l*(A?1:-1),w=u*Math.cos(F),x=u*Math.sin(F),Q={x:o.x+w,y:o.y+x};return Q};return n.nodes().layoutPositions(this,e,y),this};var lk={fit:!0,padding:30,startAngle:3/2*Math.PI,sweep:void 0,clockwise:!0,equidistant:!1,minNodeSpacing:10,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,height:void 0,width:void 0,spacingFactor:void 0,concentric:function(e){return e.degree()},levelWidth:function(e){return e.maxDegree()/4},animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,r){return!0},ready:void 0,stop:void 0,transform:function(e,r){return r}};function PB(t){this.options=Re({},lk,t)}PB.prototype.run=function(){for(var t=this.options,e=t,r=e.counterclockwise!==void 0?!e.counterclockwise:e.clockwise,n=t.cy,A=e.eles,a=A.nodes().not(":parent"),i=mr(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:n.width(),h:n.height()}),o={x:i.x1+i.w/2,y:i.y1+i.h/2},s=[],l=0,u=0;u0){var b=Math.abs(B[0].value-y.value);b>=g&&(B=[],m.push(B))}B.push(y)}var E=l+e.minNodeSpacing;if(!e.avoidOverlap){var C=m.length>0&&m[0].length>1,F=Math.min(i.w,i.h)/2-E,w=F/(m.length+C?1:0);E=Math.min(E,w)}for(var x=0,Q=0;Q1&&e.avoidOverlap){var L=Math.cos(U)-Math.cos(0),R=Math.sin(U)-Math.sin(0),M=Math.sqrt(E*E/(L*L+R*R));x=Math.max(M,x)}S.r=x,x+=E}if(e.equidistant){for(var H=0,k=0,N=0;N=t.numIter||(vk(n,t),n.temperature=n.temperature*t.coolingFactor,n.temperature=t.animationThreshold&&a(),Vl(c)}};u()}else{for(;l;)l=i(s),s++;yv(n,t),o()}return this};Bc.prototype.stop=function(){return this.stopped=!0,this.thread&&this.thread.stop(),this.emit("layoutstop"),this};Bc.prototype.destroy=function(){return this.thread&&this.thread.stop(),this};var ck=function(e,r,n){for(var A=n.eles.edges(),a=n.eles.nodes(),i=mr(n.boundingBox?n.boundingBox:{x1:0,y1:0,w:e.width(),h:e.height()}),o={isCompound:e.hasCompoundNodes(),layoutNodes:[],idToIndex:{},nodeSize:a.size(),graphSet:[],indexToGraph:[],layoutEdges:[],edgeSize:A.size(),temperature:n.initialTemp,clientWidth:i.w,clientHeight:i.h,boundingBox:i},s=n.eles.components(),l={},u=0;u0){o.graphSet.push(F);for(var u=0;uA.count?0:A.graph},dk=function t(e,r,n,A){var a=A.graphSet[n];if(-10)var c=A.nodeOverlap*u,d=Math.sqrt(o*o+s*s),h=c*o/d,f=c*s/d;else var p=jl(e,o,s),g=jl(r,-1*o,-1*s),m=g.x-p.x,B=g.y-p.y,v=m*m+B*B,d=Math.sqrt(v),c=(e.nodeRepulsion+r.nodeRepulsion)/v,h=c*m/d,f=c*B/d;e.isLocked||(e.offsetX-=h,e.offsetY-=f),r.isLocked||(r.offsetX+=h,r.offsetY+=f)}},Bk=function(e,r,n,A){if(n>0)var a=e.maxX-r.minX;else var a=r.maxX-e.minX;if(A>0)var i=e.maxY-r.minY;else var i=r.maxY-e.minY;return a>=0&&i>=0?Math.sqrt(a*a+i*i):0},jl=function(e,r,n){var A=e.positionX,a=e.positionY,i=e.height||1,o=e.width||1,s=n/r,l=i/o,u={};return r===0&&0n?(u.x=A,u.y=a+i/2,u):0r&&-1*l<=s&&s<=l?(u.x=A-o/2,u.y=a-o*n/2/r,u):0=l)?(u.x=A+i*r/2/n,u.y=a+i/2,u):(0>n&&(s<=-1*l||s>=l)&&(u.x=A-i*r/2/n,u.y=a-i/2),u)},wk=function(e,r){for(var n=0;nn){var g=r.gravity*h/p,m=r.gravity*f/p;d.offsetX+=g,d.offsetY+=m}}}}},bk=function(e,r){var n=[],A=0,a=-1;for(n.push.apply(n,e.graphSet[0]),a+=e.graphSet[0].length;A<=a;){var i=n[A++],o=e.idToIndex[i],s=e.layoutNodes[o],l=s.children;if(0n)var a={x:n*e/A,y:n*r/A};else var a={x:e,y:r};return a},Fk=function t(e,r){var n=e.parentId;if(n!=null){var A=r.layoutNodes[r.idToIndex[n]],a=!1;if((A.maxX==null||e.maxX+A.padRight>A.maxX)&&(A.maxX=e.maxX+A.padRight,a=!0),(A.minX==null||e.minX-A.padLeftA.maxY)&&(A.maxY=e.maxY+A.padBottom,a=!0),(A.minY==null||e.minY-A.padTopm&&(f+=g+r.componentSpacing,h=0,p=0,g=0)}}},Qk={fit:!0,padding:30,boundingBox:void 0,avoidOverlap:!0,avoidOverlapPadding:10,nodeDimensionsIncludeLabels:!1,spacingFactor:void 0,condense:!1,rows:void 0,cols:void 0,position:function(e){},sort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,r){return!0},ready:void 0,stop:void 0,transform:function(e,r){return r}};function KB(t){this.options=Re({},Qk,t)}KB.prototype.run=function(){var t=this.options,e=t,r=t.cy,n=e.eles,A=n.nodes().not(":parent");e.sort&&(A=A.sort(e.sort));var a=mr(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:r.width(),h:r.height()});if(a.h===0||a.w===0)n.nodes().layoutPositions(this,e,function(W){return{x:a.x1,y:a.y1}});else{var i=A.size(),o=Math.sqrt(i*a.h/a.w),s=Math.round(o),l=Math.round(a.w/a.h*o),u=function(X){if(X==null)return Math.min(s,l);var Z=Math.min(s,l);Z==s?s=X:l=X},c=function(X){if(X==null)return Math.max(s,l);var Z=Math.max(s,l);Z==s?s=X:l=X},d=e.rows,h=e.cols!=null?e.cols:e.columns;if(d!=null&&h!=null)s=d,l=h;else if(d!=null&&h==null)s=d,l=Math.ceil(i/s);else if(d==null&&h!=null)l=h,s=Math.ceil(i/l);else if(l*s>i){var f=u(),p=c();(f-1)*p>=i?u(f-1):(p-1)*f>=i&&c(p-1)}else for(;l*s=i?c(m+1):u(g+1)}var B=a.w/l,v=a.h/s;if(e.condense&&(B=0,v=0),e.avoidOverlap)for(var y=0;y=l&&(L=0,U++)},M={},H=0;H(L=qD(t,e,R[M],R[M+1],R[M+2],R[M+3])))return g(C,L),!0}else if(w.edgeType==="bezier"||w.edgeType==="multibezier"||w.edgeType==="self"||w.edgeType==="compound"){for(var R=w.allpts,M=0;M+5(L=jD(t,e,R[M],R[M+1],R[M+2],R[M+3],R[M+4],R[M+5])))return g(C,L),!0}for(var H=H||F.source,k=k||F.target,N=A.getArrowWidth(x,Q),P=[{name:"source",x:w.arrowStartX,y:w.arrowStartY,angle:w.srcArrowAngle},{name:"target",x:w.arrowEndX,y:w.arrowEndY,angle:w.tgtArrowAngle},{name:"mid-source",x:w.midX,y:w.midY,angle:w.midsrcArrowAngle},{name:"mid-target",x:w.midX,y:w.midY,angle:w.midtgtArrowAngle}],M=0;M0&&(m(H),m(k))}function v(C,F,w){return Jr(C,F,w)}function y(C,F){var w=C._private,x=d,Q;F?Q=F+"-":Q="",C.boundingBox();var S=w.labelBounds[F||"main"],T=C.pstyle(Q+"label").value,U=C.pstyle("text-events").strValue==="yes";if(!(!U||!T)){var L=v(w.rscratch,"labelX",F),R=v(w.rscratch,"labelY",F),M=v(w.rscratch,"labelAngle",F),H=C.pstyle(Q+"text-margin-x").pfValue,k=C.pstyle(Q+"text-margin-y").pfValue,N=S.x1-x-H,P=S.x2+x-H,K=S.y1-x-k,W=S.y2+x-k;if(M){var X=Math.cos(M),Z=Math.sin(M),Ae=function(te,ae){return te=te-L,ae=ae-R,{x:te*X-ae*Z+L,y:te*Z+ae*X+R}},ie=Ae(N,K),re=Ae(N,W),z=Ae(P,K),q=Ae(P,W),ee=[ie.x+H,ie.y+k,z.x+H,z.y+k,q.x+H,q.y+k,re.x+H,re.y+k];if(fr(t,e,ee))return g(C),!0}else if(Ja(S,t,e))return g(C),!0}}for(var b=i.length-1;b>=0;b--){var E=i[b];E.isNode()?m(E)||y(E):B(E)||y(E)||y(E,"source")||y(E,"target")}return o};JA.getAllInBox=function(t,e,r,n){var A=this.getCachedZSortedEles().interactive,a=[],i=Math.min(t,r),o=Math.max(t,r),s=Math.min(e,n),l=Math.max(e,n);t=i,r=o,e=s,n=l;for(var u=mr({x1:t,y1:e,x2:r,y2:n}),c=0;c0?-(Math.PI-e.ang):Math.PI+e.ang},Dk=function(e,r,n,A,a){if(e!==Ev?xv(r,e,cn):Lk(Sr,cn),xv(r,n,Sr),Cv=cn.nx*Sr.ny-cn.ny*Sr.nx,bv=cn.nx*Sr.nx-cn.ny*-Sr.ny,In=Math.asin(Math.max(-1,Math.min(1,Cv))),Math.abs(In)<1e-6){sd=r.x,ld=r.y,xA=fa=0;return}QA=1,El=!1,bv<0?In<0?In=Math.PI+In:(In=Math.PI-In,QA=-1,El=!0):In>0&&(QA=-1,El=!0),r.radius!==void 0?fa=r.radius:fa=A,yA=In/2,ks=Math.min(cn.len/2,Sr.len/2),a?(ln=Math.abs(Math.cos(yA)*fa/Math.sin(yA)),ln>ks?(ln=ks,xA=Math.abs(ln*Math.sin(yA)/Math.cos(yA))):xA=fa):(ln=Math.min(ks,fa),xA=Math.abs(ln*Math.sin(yA)/Math.cos(yA))),ud=r.x+Sr.nx*ln,cd=r.y+Sr.ny*ln,sd=ud-Sr.ny*xA*QA,ld=cd+Sr.nx*xA*QA,zB=r.x+cn.nx*ln,WB=r.y+cn.ny*ln,Ev=r};function _B(t,e){e.radius===0?t.lineTo(e.cx,e.cy):t.arc(e.cx,e.cy,e.radius,e.startAngle,e.endAngle,e.counterClockwise)}function Gh(t,e,r,n){var A=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0;return n===0||e.radius===0?{cx:e.x,cy:e.y,radius:0,startX:e.x,startY:e.y,stopX:e.x,stopY:e.y,startAngle:void 0,endAngle:void 0,counterClockwise:void 0}:(Dk(t,e,r,n,A),{cx:sd,cy:ld,radius:xA,startX:zB,startY:WB,stopX:ud,stopY:cd,startAngle:cn.ang+Math.PI/2*QA,endAngle:Sr.ang-Math.PI/2*QA,counterClockwise:El})}var sr={};sr.findMidptPtsEtc=function(t,e){var r=e.posPts,n=e.intersectionPts,A=e.vectorNormInverse,a,i=t.pstyle("source-endpoint"),o=t.pstyle("target-endpoint"),s=i.units!=null&&o.units!=null,l=function(b,E,C,F){var w=F-E,x=C-b,Q=Math.sqrt(x*x+w*w);return{x:-w/Q,y:x/Q}},u=t.pstyle("edge-distances").value;switch(u){case"node-position":a=r;break;case"intersection":a=n;break;case"endpoints":{if(s){var c=this.manualEndptToPx(t.source()[0],i),d=jr(c,2),h=d[0],f=d[1],p=this.manualEndptToPx(t.target()[0],o),g=jr(p,2),m=g[0],B=g[1],v={x1:h,y1:f,x2:m,y2:B};A=l(h,f,m,B),a=v}else tt("Edge ".concat(t.id()," has edge-distances:endpoints specified without manual endpoints specified via source-endpoint and target-endpoint. Falling back on edge-distances:intersection (default).")),a=n;break}}return{midptPts:a,vectorNormInverse:A}};sr.findHaystackPoints=function(t){for(var e=0;e0?Math.max(Te-V,0):Math.min(Te+V,0)},T=S(x,F),U=S(Q,w),L=!1;B===l?m=Math.abs(T)>Math.abs(U)?A:n:B===s||B===o?(m=n,L=!0):(B===a||B===i)&&(m=A,L=!0);var R=m===n,M=R?U:T,H=R?Q:x,k=q0(H),N=!1;!(L&&(y||E))&&(B===o&&H<0||B===s&&H>0||B===a&&H>0||B===i&&H<0)&&(k*=-1,M=k*Math.abs(M),N=!0);var P;if(y){var K=b<0?1+b:b;P=K*M}else{var W=b<0?M:0;P=W+b*k}var X=function(Te){return Math.abs(Te)=Math.abs(M)},Z=X(P),Ae=X(Math.abs(M)-Math.abs(P)),ie=Z||Ae;if(ie&&!N)if(R){var re=Math.abs(H)<=d/2,z=Math.abs(x)<=h/2;if(re){var q=(u.x1+u.x2)/2,ee=u.y1,se=u.y2;r.segpts=[q,ee,q,se]}else if(z){var te=(u.y1+u.y2)/2,ae=u.x1,le=u.x2;r.segpts=[ae,te,le,te]}else r.segpts=[u.x1,u.y2]}else{var ve=Math.abs(H)<=c/2,ge=Math.abs(Q)<=f/2;if(ve){var he=(u.y1+u.y2)/2,ye=u.x1,Se=u.x2;r.segpts=[ye,he,Se,he]}else if(ge){var Ce=(u.x1+u.x2)/2,we=u.y1,_=u.y2;r.segpts=[Ce,we,Ce,_]}else r.segpts=[u.x2,u.y1]}else if(R){var $=u.y1+P+(g?d/2*k:0),D=u.x1,G=u.x2;r.segpts=[D,$,G,$]}else{var J=u.x1+P+(g?c/2*k:0),j=u.y1,ne=u.y2;r.segpts=[J,j,J,ne]}if(r.isRound){var ce=t.pstyle("taxi-radius").value,Y=t.pstyle("radius-type").value[0]==="arc-radius";r.radii=new Array(r.segpts.length/2).fill(ce),r.isArcRadius=new Array(r.segpts.length/2).fill(Y)}};sr.tryToCorrectInvalidPoints=function(t,e){var r=t._private.rscratch;if(r.edgeType==="bezier"){var n=e.srcPos,A=e.tgtPos,a=e.srcW,i=e.srcH,o=e.tgtW,s=e.tgtH,l=e.srcShape,u=e.tgtShape,c=e.srcCornerRadius,d=e.tgtCornerRadius,h=e.srcRs,f=e.tgtRs,p=!be(r.startX)||!be(r.startY),g=!be(r.arrowStartX)||!be(r.arrowStartY),m=!be(r.endX)||!be(r.endY),B=!be(r.arrowEndX)||!be(r.arrowEndY),v=3,y=this.getArrowWidth(t.pstyle("width").pfValue,t.pstyle("arrow-scale").value)*this.arrowShapeWidth,b=v*y,E=$A({x:r.ctrlpts[0],y:r.ctrlpts[1]},{x:r.startX,y:r.startY}),C=EU.poolIndex()){var L=T;T=U,U=L}var R=w.srcPos=T.position(),M=w.tgtPos=U.position(),H=w.srcW=T.outerWidth(),k=w.srcH=T.outerHeight(),N=w.tgtW=U.outerWidth(),P=w.tgtH=U.outerHeight(),K=w.srcShape=r.nodeShapes[e.getNodeShape(T)],W=w.tgtShape=r.nodeShapes[e.getNodeShape(U)],X=w.srcCornerRadius=T.pstyle("corner-radius").value==="auto"?"auto":T.pstyle("corner-radius").pfValue,Z=w.tgtCornerRadius=U.pstyle("corner-radius").value==="auto"?"auto":U.pstyle("corner-radius").pfValue,Ae=w.tgtRs=U._private.rscratch,ie=w.srcRs=T._private.rscratch;w.dirCounts={north:0,west:0,south:0,east:0,northwest:0,southwest:0,northeast:0,southeast:0};for(var re=0;re0){var se=a,te=bA(se,Ua(r)),ae=bA(se,Ua(ee)),le=te;if(ae2){var ve=bA(se,{x:ee[2],y:ee[3]});ve0){var ne=i,ce=bA(ne,Ua(r)),Y=bA(ne,Ua(j)),de=ce;if(Y2){var Te=bA(ne,{x:j[2],y:j[3]});Te=f||C){g={cp:y,segment:E};break}}if(g)break}var F=g.cp,w=g.segment,x=(f-m)/w.length,Q=w.t1-w.t0,S=h?w.t0+Q*x:w.t1-Q*x;S=Io(0,S,1),e=Oa(F.p0,F.p1,F.p2,S),d=Mk(F.p0,F.p1,F.p2,S);break}case"straight":case"segments":case"haystack":{for(var T=0,U,L,R,M,H=n.allpts.length,k=0;k+3=f));k+=2);var N=f-L,P=N/U;P=Io(0,P,1),e=ND(R,M,P),d=jB(R,M);break}}i("labelX",c,e.x),i("labelY",c,e.y),i("labelAutoAngle",c,d)}};l("source"),l("target"),this.applyLabelDimensions(t)}};xn.applyLabelDimensions=function(t){this.applyPrefixedLabelDimensions(t),t.isEdge()&&(this.applyPrefixedLabelDimensions(t,"source"),this.applyPrefixedLabelDimensions(t,"target"))};xn.applyPrefixedLabelDimensions=function(t,e){var r=t._private,n=this.getLabelText(t,e),A=this.calculateLabelDimensions(t,n),a=t.pstyle("line-height").pfValue,i=t.pstyle("text-wrap").strValue,o=Jr(r.rscratch,"labelWrapCachedLines",e)||[],s=i!=="wrap"?1:Math.max(o.length,1),l=A.height/s,u=l*a,c=A.width,d=A.height+(s-1)*(a-1)*l;Jn(r.rstyle,"labelWidth",e,c),Jn(r.rscratch,"labelWidth",e,c),Jn(r.rstyle,"labelHeight",e,d),Jn(r.rscratch,"labelHeight",e,d),Jn(r.rscratch,"labelLineHeight",e,u)};xn.getLabelText=function(t,e){var r=t._private,n=e?e+"-":"",A=t.pstyle(n+"label").strValue,a=t.pstyle("text-transform").value,i=function(W,X){return X?(Jn(r.rscratch,W,e,X),X):Jr(r.rscratch,W,e)};if(!A)return"";a=="none"||(a=="uppercase"?A=A.toUpperCase():a=="lowercase"&&(A=A.toLowerCase()));var o=t.pstyle("text-wrap").value;if(o==="wrap"){var s=i("labelKey");if(s!=null&&i("labelWrapKey")===s)return i("labelWrapCachedText");for(var l="​",u=A.split(` -`),c=t.pstyle("text-max-width").pfValue,d=t.pstyle("text-overflow-wrap").value,h=d==="anywhere",f=[],p=/[\s\u200b]+|$/g,g=0;gc){var b=m.matchAll(p),E="",C=0,F=L0(b),w;try{for(F.s();!(w=F.n()).done;){var x=w.value,Q=x[0],S=m.substring(C,x.index);C=x.index+Q.length;var T=E.length===0?S:E+S+Q,U=this.calculateLabelDimensions(t,T),L=U.width;L<=c?E+=S+Q:(E&&f.push(E),E=S+Q)}}catch(K){F.e(K)}finally{F.f()}E.match(/^[\s\u200b]+$/)||f.push(E)}else f.push(m)}i("labelWrapCachedLines",f),A=i("labelWrapCachedText",f.join(` -`)),i("labelWrapKey",s)}else if(o==="ellipsis"){var R=t.pstyle("text-max-width").pfValue,M="",H="…",k=!1;if(this.calculateLabelDimensions(t,A).widthR)break;M+=A[N],N===A.length-1&&(k=!0)}return k||(M+=H),M}return A};xn.getLabelJustification=function(t){var e=t.pstyle("text-justification").strValue,r=t.pstyle("text-halign").strValue;if(e==="auto")if(t.isNode())switch(r){case"left":return"right";case"right":return"left";default:return"center"}else return"center";else return e};xn.calculateLabelDimensions=function(t,e){var r=this,n=r.cy.window(),A=n.document,a=VA(e,t._private.labelDimsKey),i=r.labelDimCache||(r.labelDimCache=[]),o=i[a];if(o!=null)return o;var s=0,l=t.pstyle("font-style").strValue,u=t.pstyle("font-size").pfValue,c=t.pstyle("font-family").strValue,d=t.pstyle("font-weight").strValue,h=this.labelCalcCanvas,f=this.labelCalcCanvasContext;if(!h){h=this.labelCalcCanvas=A.createElement("canvas"),f=this.labelCalcCanvasContext=h.getContext("2d");var p=h.style;p.position="absolute",p.left="-9999px",p.top="-9999px",p.zIndex="-1",p.visibility="hidden",p.pointerEvents="none"}f.font="".concat(l," ").concat(d," ").concat(u,"px ").concat(c);for(var g=0,m=0,B=e.split(` -`),v=0;v1&&arguments[1]!==void 0?arguments[1]:!0;if(e.merge(i),o)for(var s=0;s=t.desktopTapThreshold2}var ze=A(D);Ne&&(t.hoverData.tapholdCancelled=!0);var De=function(){var an=t.hoverData.dragDelta=t.hoverData.dragDelta||[];an.length===0?(an.push(Be[0]),an.push(Be[1])):(an[0]+=Be[0],an[1]+=Be[1])};J=!0,n(oe,["mousemove","vmousemove","tapdrag"],D,{x:Y[0],y:Y[1]});var nt=function(){t.data.bgActivePosistion=void 0,t.hoverData.selecting||j.emit({originalEvent:D,type:"boxstart",position:{x:Y[0],y:Y[1]}}),V[4]=1,t.hoverData.selecting=!0,t.redrawHint("select",!0),t.redraw()};if(t.hoverData.which===3){if(Ne){var Rt={originalEvent:D,type:"cxtdrag",position:{x:Y[0],y:Y[1]}};pe?pe.emit(Rt):j.emit(Rt),t.hoverData.cxtDragged=!0,(!t.hoverData.cxtOver||oe!==t.hoverData.cxtOver)&&(t.hoverData.cxtOver&&t.hoverData.cxtOver.emit({originalEvent:D,type:"cxtdragout",position:{x:Y[0],y:Y[1]}}),t.hoverData.cxtOver=oe,oe&&oe.emit({originalEvent:D,type:"cxtdragover",position:{x:Y[0],y:Y[1]}}))}}else if(t.hoverData.dragging){if(J=!0,j.panningEnabled()&&j.userPanningEnabled()){var An;if(t.hoverData.justStartedPan){var Un=t.hoverData.mdownPos;An={x:(Y[0]-Un[0])*ne,y:(Y[1]-Un[1])*ne},t.hoverData.justStartedPan=!1}else An={x:Be[0]*ne,y:Be[1]*ne};j.panBy(An),j.emit("dragpan"),t.hoverData.dragged=!0}Y=t.projectIntoViewport(D.clientX,D.clientY)}else if(V[4]==1&&(pe==null||pe.pannable())){if(Ne){if(!t.hoverData.dragging&&j.boxSelectionEnabled()&&(ze||!j.panningEnabled()||!j.userPanningEnabled()))nt();else if(!t.hoverData.selecting&&j.panningEnabled()&&j.userPanningEnabled()){var zr=a(pe,t.hoverData.downs);zr&&(t.hoverData.dragging=!0,t.hoverData.justStartedPan=!0,V[4]=0,t.data.bgActivePosistion=Ua(de),t.redrawHint("select",!0),t.redraw())}pe&&pe.pannable()&&pe.active()&&pe.unactivate()}}else{if(pe&&pe.pannable()&&pe.active()&&pe.unactivate(),(!pe||!pe.grabbed())&&oe!=fe&&(fe&&n(fe,["mouseout","tapdragout"],D,{x:Y[0],y:Y[1]}),oe&&n(oe,["mouseover","tapdragover"],D,{x:Y[0],y:Y[1]}),t.hoverData.last=oe),pe)if(Ne){if(j.boxSelectionEnabled()&&ze)pe&&pe.grabbed()&&(g(Oe),pe.emit("freeon"),Oe.emit("free"),t.dragData.didDrag&&(pe.emit("dragfreeon"),Oe.emit("dragfree"))),nt();else if(pe&&pe.grabbed()&&t.nodeIsDraggable(pe)){var Mt=!t.dragData.didDrag;Mt&&t.redrawHint("eles",!0),t.dragData.didDrag=!0,t.hoverData.draggingEles||f(Oe,{inDragLayer:!0});var Kt={x:0,y:0};if(be(Be[0])&&be(Be[1])&&(Kt.x+=Be[0],Kt.y+=Be[1],Mt)){var er=t.hoverData.dragDelta;er&&be(er[0])&&be(er[1])&&(Kt.x+=er[0],Kt.y+=er[1])}t.hoverData.draggingEles=!0,Oe.silentShift(Kt).emit("position drag"),t.redrawHint("drag",!0),t.redraw()}}else De();J=!0}if(V[2]=Y[0],V[3]=Y[1],J)return D.stopPropagation&&D.stopPropagation(),D.preventDefault&&D.preventDefault(),!1}},!1);var x,Q,S;t.registerBinding(e,"mouseup",function(D){if(!(t.hoverData.which===1&&D.which!==1&&t.hoverData.capture)){var G=t.hoverData.capture;if(G){t.hoverData.capture=!1;var J=t.cy,j=t.projectIntoViewport(D.clientX,D.clientY),ne=t.selection,ce=t.findNearestElement(j[0],j[1],!0,!1),Y=t.dragData.possibleDragElements,de=t.hoverData.down,Te=A(D);if(t.data.bgActivePosistion&&(t.redrawHint("select",!0),t.redraw()),t.hoverData.tapholdCancelled=!0,t.data.bgActivePosistion=void 0,de&&de.unactivate(),t.hoverData.which===3){var V={originalEvent:D,type:"cxttapend",position:{x:j[0],y:j[1]}};if(de?de.emit(V):J.emit(V),!t.hoverData.cxtDragged){var oe={originalEvent:D,type:"cxttap",position:{x:j[0],y:j[1]}};de?de.emit(oe):J.emit(oe)}t.hoverData.cxtDragged=!1,t.hoverData.which=null}else if(t.hoverData.which===1){if(n(ce,["mouseup","tapend","vmouseup"],D,{x:j[0],y:j[1]}),!t.dragData.didDrag&&!t.hoverData.dragged&&!t.hoverData.selecting&&!t.hoverData.isOverThresholdDrag&&(n(de,["click","tap","vclick"],D,{x:j[0],y:j[1]}),Q=!1,D.timeStamp-S<=J.multiClickDebounceTime()?(x&&clearTimeout(x),Q=!0,S=null,n(de,["dblclick","dbltap","vdblclick"],D,{x:j[0],y:j[1]})):(x=setTimeout(function(){Q||n(de,["oneclick","onetap","voneclick"],D,{x:j[0],y:j[1]})},J.multiClickDebounceTime()),S=D.timeStamp)),de==null&&!t.dragData.didDrag&&!t.hoverData.selecting&&!t.hoverData.dragged&&!A(D)&&(J.$(r).unselect(["tapunselect"]),Y.length>0&&t.redrawHint("eles",!0),t.dragData.possibleDragElements=Y=J.collection()),ce==de&&!t.dragData.didDrag&&!t.hoverData.selecting&&ce!=null&&ce._private.selectable&&(t.hoverData.dragging||(J.selectionType()==="additive"||Te?ce.selected()?ce.unselect(["tapunselect"]):ce.select(["tapselect"]):Te||(J.$(r).unmerge(ce).unselect(["tapunselect"]),ce.select(["tapselect"]))),t.redrawHint("eles",!0)),t.hoverData.selecting){var fe=J.collection(t.getAllInBox(ne[0],ne[1],ne[2],ne[3]));t.redrawHint("select",!0),fe.length>0&&t.redrawHint("eles",!0),J.emit({type:"boxend",originalEvent:D,position:{x:j[0],y:j[1]}});var pe=function(Ne){return Ne.selectable()&&!Ne.selected()};J.selectionType()==="additive"||Te||J.$(r).unmerge(fe).unselect(),fe.emit("box").stdFilter(pe).select().emit("boxselect"),t.redraw()}if(t.hoverData.dragging&&(t.hoverData.dragging=!1,t.redrawHint("select",!0),t.redrawHint("eles",!0),t.redraw()),!ne[4]){t.redrawHint("drag",!0),t.redrawHint("eles",!0);var Be=de&&de.grabbed();g(Y),Be&&(de.emit("freeon"),Y.emit("free"),t.dragData.didDrag&&(de.emit("dragfreeon"),Y.emit("dragfree")))}}ne[4]=0,t.hoverData.down=null,t.hoverData.cxtStarted=!1,t.hoverData.draggingEles=!1,t.hoverData.selecting=!1,t.hoverData.isOverThresholdDrag=!1,t.dragData.didDrag=!1,t.hoverData.dragged=!1,t.hoverData.dragDelta=[],t.hoverData.mdownPos=null,t.hoverData.mdownGPos=null,t.hoverData.which=null}}},!1);var T=function(D){if(!t.scrollingPage){var G=t.cy,J=G.zoom(),j=G.pan(),ne=t.projectIntoViewport(D.clientX,D.clientY),ce=[ne[0]*J+j.x,ne[1]*J+j.y];if(t.hoverData.draggingEles||t.hoverData.dragging||t.hoverData.cxtStarted||F()){D.preventDefault();return}if(G.panningEnabled()&&G.userPanningEnabled()&&G.zoomingEnabled()&&G.userZoomingEnabled()){D.preventDefault(),t.data.wheelZooming=!0,clearTimeout(t.data.wheelTimeout),t.data.wheelTimeout=setTimeout(function(){t.data.wheelZooming=!1,t.redrawHint("eles",!0),t.redraw()},150);var Y;D.deltaY!=null?Y=D.deltaY/-250:D.wheelDeltaY!=null?Y=D.wheelDeltaY/1e3:Y=D.wheelDelta/1e3,Y=Y*t.wheelSensitivity;var de=D.deltaMode===1;de&&(Y*=33);var Te=G.zoom()*Math.pow(10,Y);D.type==="gesturechange"&&(Te=t.gestureStartZoom*D.scale),G.zoom({level:Te,renderedPosition:{x:ce[0],y:ce[1]}}),G.emit(D.type==="gesturechange"?"pinchzoom":"scrollzoom")}}};t.registerBinding(t.container,"wheel",T,!0),t.registerBinding(e,"scroll",function(D){t.scrollingPage=!0,clearTimeout(t.scrollingPageTimeout),t.scrollingPageTimeout=setTimeout(function(){t.scrollingPage=!1},250)},!0),t.registerBinding(t.container,"gesturestart",function(D){t.gestureStartZoom=t.cy.zoom(),t.hasTouchStarted||D.preventDefault()},!0),t.registerBinding(t.container,"gesturechange",function($){t.hasTouchStarted||T($)},!0),t.registerBinding(t.container,"mouseout",function(D){var G=t.projectIntoViewport(D.clientX,D.clientY);t.cy.emit({originalEvent:D,type:"mouseout",position:{x:G[0],y:G[1]}})},!1),t.registerBinding(t.container,"mouseover",function(D){var G=t.projectIntoViewport(D.clientX,D.clientY);t.cy.emit({originalEvent:D,type:"mouseover",position:{x:G[0],y:G[1]}})},!1);var U,L,R,M,H,k,N,P,K,W,X,Z,Ae,ie=function(D,G,J,j){return Math.sqrt((J-D)*(J-D)+(j-G)*(j-G))},re=function(D,G,J,j){return(J-D)*(J-D)+(j-G)*(j-G)},z;t.registerBinding(t.container,"touchstart",z=function(D){if(t.hasTouchStarted=!0,!!w(D)){B(),t.touchData.capture=!0,t.data.bgActivePosistion=void 0;var G=t.cy,J=t.touchData.now,j=t.touchData.earlier;if(D.touches[0]){var ne=t.projectIntoViewport(D.touches[0].clientX,D.touches[0].clientY);J[0]=ne[0],J[1]=ne[1]}if(D.touches[1]){var ne=t.projectIntoViewport(D.touches[1].clientX,D.touches[1].clientY);J[2]=ne[0],J[3]=ne[1]}if(D.touches[2]){var ne=t.projectIntoViewport(D.touches[2].clientX,D.touches[2].clientY);J[4]=ne[0],J[5]=ne[1]}if(D.touches[1]){t.touchData.singleTouchMoved=!0,g(t.dragData.touchDragEles);var ce=t.findContainerClientCoords();K=ce[0],W=ce[1],X=ce[2],Z=ce[3],U=D.touches[0].clientX-K,L=D.touches[0].clientY-W,R=D.touches[1].clientX-K,M=D.touches[1].clientY-W,Ae=0<=U&&U<=X&&0<=R&&R<=X&&0<=L&&L<=Z&&0<=M&&M<=Z;var Y=G.pan(),de=G.zoom();H=ie(U,L,R,M),k=re(U,L,R,M),N=[(U+R)/2,(L+M)/2],P=[(N[0]-Y.x)/de,(N[1]-Y.y)/de];var Te=200,V=Te*Te;if(k=1){for(var Ge=t.touchData.startPosition=[null,null,null,null,null,null],He=0;He=t.touchTapThreshold2}if(G&&t.touchData.cxt){D.preventDefault();var Ge=D.touches[0].clientX-K,He=D.touches[0].clientY-W,pt=D.touches[1].clientX-K,Je=D.touches[1].clientY-W,ze=re(Ge,He,pt,Je),De=ze/k,nt=150,Rt=nt*nt,An=1.5,Un=An*An;if(De>=Un||ze>=Rt){t.touchData.cxt=!1,t.data.bgActivePosistion=void 0,t.redrawHint("select",!0);var zr={originalEvent:D,type:"cxttapend",position:{x:ne[0],y:ne[1]}};t.touchData.start?(t.touchData.start.unactivate().emit(zr),t.touchData.start=null):j.emit(zr)}}if(G&&t.touchData.cxt){var zr={originalEvent:D,type:"cxtdrag",position:{x:ne[0],y:ne[1]}};t.data.bgActivePosistion=void 0,t.redrawHint("select",!0),t.touchData.start?t.touchData.start.emit(zr):j.emit(zr),t.touchData.start&&(t.touchData.start._private.grabbed=!1),t.touchData.cxtDragged=!0;var Mt=t.findNearestElement(ne[0],ne[1],!0,!0);(!t.touchData.cxtOver||Mt!==t.touchData.cxtOver)&&(t.touchData.cxtOver&&t.touchData.cxtOver.emit({originalEvent:D,type:"cxtdragout",position:{x:ne[0],y:ne[1]}}),t.touchData.cxtOver=Mt,Mt&&Mt.emit({originalEvent:D,type:"cxtdragover",position:{x:ne[0],y:ne[1]}}))}else if(G&&D.touches[2]&&j.boxSelectionEnabled())D.preventDefault(),t.data.bgActivePosistion=void 0,this.lastThreeTouch=+new Date,t.touchData.selecting||j.emit({originalEvent:D,type:"boxstart",position:{x:ne[0],y:ne[1]}}),t.touchData.selecting=!0,t.touchData.didSelect=!0,J[4]=1,!J||J.length===0||J[0]===void 0?(J[0]=(ne[0]+ne[2]+ne[4])/3,J[1]=(ne[1]+ne[3]+ne[5])/3,J[2]=(ne[0]+ne[2]+ne[4])/3+1,J[3]=(ne[1]+ne[3]+ne[5])/3+1):(J[2]=(ne[0]+ne[2]+ne[4])/3,J[3]=(ne[1]+ne[3]+ne[5])/3),t.redrawHint("select",!0),t.redraw();else if(G&&D.touches[1]&&!t.touchData.didSelect&&j.zoomingEnabled()&&j.panningEnabled()&&j.userZoomingEnabled()&&j.userPanningEnabled()){D.preventDefault(),t.data.bgActivePosistion=void 0,t.redrawHint("select",!0);var Kt=t.dragData.touchDragEles;if(Kt){t.redrawHint("drag",!0);for(var er=0;er0&&!t.hoverData.draggingEles&&!t.swipePanning&&t.data.bgActivePosistion!=null&&(t.data.bgActivePosistion=void 0,t.redrawHint("select",!0),t.redraw())}},!1);var ee;t.registerBinding(e,"touchcancel",ee=function(D){var G=t.touchData.start;t.touchData.capture=!1,G&&G.unactivate()});var se,te,ae,le;if(t.registerBinding(e,"touchend",se=function(D){var G=t.touchData.start,J=t.touchData.capture;if(J)D.touches.length===0&&(t.touchData.capture=!1),D.preventDefault();else return;var j=t.selection;t.swipePanning=!1,t.hoverData.draggingEles=!1;var ne=t.cy,ce=ne.zoom(),Y=t.touchData.now,de=t.touchData.earlier;if(D.touches[0]){var Te=t.projectIntoViewport(D.touches[0].clientX,D.touches[0].clientY);Y[0]=Te[0],Y[1]=Te[1]}if(D.touches[1]){var Te=t.projectIntoViewport(D.touches[1].clientX,D.touches[1].clientY);Y[2]=Te[0],Y[3]=Te[1]}if(D.touches[2]){var Te=t.projectIntoViewport(D.touches[2].clientX,D.touches[2].clientY);Y[4]=Te[0],Y[5]=Te[1]}G&&G.unactivate();var V;if(t.touchData.cxt){if(V={originalEvent:D,type:"cxttapend",position:{x:Y[0],y:Y[1]}},G?G.emit(V):ne.emit(V),!t.touchData.cxtDragged){var oe={originalEvent:D,type:"cxttap",position:{x:Y[0],y:Y[1]}};G?G.emit(oe):ne.emit(oe)}t.touchData.start&&(t.touchData.start._private.grabbed=!1),t.touchData.cxt=!1,t.touchData.start=null,t.redraw();return}if(!D.touches[2]&&ne.boxSelectionEnabled()&&t.touchData.selecting){t.touchData.selecting=!1;var fe=ne.collection(t.getAllInBox(j[0],j[1],j[2],j[3]));j[0]=void 0,j[1]=void 0,j[2]=void 0,j[3]=void 0,j[4]=0,t.redrawHint("select",!0),ne.emit({type:"boxend",originalEvent:D,position:{x:Y[0],y:Y[1]}});var pe=function(Rt){return Rt.selectable()&&!Rt.selected()};fe.emit("box").stdFilter(pe).select().emit("boxselect"),fe.nonempty()&&t.redrawHint("eles",!0),t.redraw()}if(G!=null&&G.unactivate(),D.touches[2])t.data.bgActivePosistion=void 0,t.redrawHint("select",!0);else if(!D.touches[1]){if(!D.touches[0]){if(!D.touches[0]){t.data.bgActivePosistion=void 0,t.redrawHint("select",!0);var Be=t.dragData.touchDragEles;if(G!=null){var Oe=G._private.grabbed;g(Be),t.redrawHint("drag",!0),t.redrawHint("eles",!0),Oe&&(G.emit("freeon"),Be.emit("free"),t.dragData.didDrag&&(G.emit("dragfreeon"),Be.emit("dragfree"))),n(G,["touchend","tapend","vmouseup","tapdragout"],D,{x:Y[0],y:Y[1]}),G.unactivate(),t.touchData.start=null}else{var Ne=t.findNearestElement(Y[0],Y[1],!0,!0);n(Ne,["touchend","tapend","vmouseup","tapdragout"],D,{x:Y[0],y:Y[1]})}var ut=t.touchData.startPosition[0]-Y[0],Ge=ut*ut,He=t.touchData.startPosition[1]-Y[1],pt=He*He,Je=Ge+pt,ze=Je*ce*ce;t.touchData.singleTouchMoved||(G||ne.$(":selected").unselect(["tapunselect"]),n(G,["tap","vclick"],D,{x:Y[0],y:Y[1]}),te=!1,D.timeStamp-le<=ne.multiClickDebounceTime()?(ae&&clearTimeout(ae),te=!0,le=null,n(G,["dbltap","vdblclick"],D,{x:Y[0],y:Y[1]})):(ae=setTimeout(function(){te||n(G,["onetap","voneclick"],D,{x:Y[0],y:Y[1]})},ne.multiClickDebounceTime()),le=D.timeStamp)),G!=null&&!t.dragData.didDrag&&G._private.selectable&&ze"u"){var ve=[],ge=function(D){return{clientX:D.clientX,clientY:D.clientY,force:1,identifier:D.pointerId,pageX:D.pageX,pageY:D.pageY,radiusX:D.width/2,radiusY:D.height/2,screenX:D.screenX,screenY:D.screenY,target:D.target}},he=function(D){return{event:D,touch:ge(D)}},ye=function(D){ve.push(he(D))},Se=function(D){for(var G=0;G0)return K[0]}return null},f=Object.keys(d),p=0;p0?h:eB(a,i,e,r,n,A,o,s)},checkPoint:function(e,r,n,A,a,i,o,s){s=s==="auto"?zA(A,a):s;var l=2*s;if(Pn(e,r,this.points,i,o,A,a-l,[0,-1],n)||Pn(e,r,this.points,i,o,A-l,a,[0,-1],n))return!0;var u=A/2+2*n,c=a/2+2*n,d=[i-u,o-c,i-u,o,i+u,o,i+u,o-c];return!!(fr(e,r,d)||LA(e,r,l,l,i+A/2-s,o+a/2-s,n)||LA(e,r,l,l,i-A/2+s,o+a/2-s,n))}}};$n.registerNodeShapes=function(){var t=this.nodeShapes={},e=this;this.generateEllipse(),this.generatePolygon("triangle",lr(3,0)),this.generateRoundPolygon("round-triangle",lr(3,0)),this.generatePolygon("rectangle",lr(4,0)),t.square=t.rectangle,this.generateRoundRectangle(),this.generateCutRectangle(),this.generateBarrel(),this.generateBottomRoundrectangle();{var r=[0,1,1,0,0,-1,-1,0];this.generatePolygon("diamond",r),this.generateRoundPolygon("round-diamond",r)}this.generatePolygon("pentagon",lr(5,0)),this.generateRoundPolygon("round-pentagon",lr(5,0)),this.generatePolygon("hexagon",lr(6,0)),this.generateRoundPolygon("round-hexagon",lr(6,0)),this.generatePolygon("heptagon",lr(7,0)),this.generateRoundPolygon("round-heptagon",lr(7,0)),this.generatePolygon("octagon",lr(8,0)),this.generateRoundPolygon("round-octagon",lr(8,0));var n=new Array(20);{var A=ed(5,0),a=ed(5,Math.PI/5),i=.5*(3-Math.sqrt(5));i*=1.57;for(var o=0;o=e.deqFastCost*y)break}else if(l){if(B>=e.deqCost*h||B>=e.deqAvgCost*d)break}else if(v>=e.deqNoDrawCost*of)break;var b=e.deq(n,g,p);if(b.length>0)for(var E=0;E0&&(e.onDeqd(n,f),!l&&e.shouldRedraw(n,f,g,p)&&a())},o=e.priority||Fh;A.beforeRender(i,o(n))}}}},Hk=function(){function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$l;wh(this,t),this.idsByKey=new yn,this.keyForId=new yn,this.cachesByLvl=new yn,this.lvls=[],this.getKey=e,this.doesEleInvalidateKey=r}return Ch(t,[{key:"getIdsFor",value:function(r){r==null&&xt("Can not get id list for null key");var n=this.idsByKey,A=this.idsByKey.get(r);return A||(A=new ii,n.set(r,A)),A}},{key:"addIdForKey",value:function(r,n){r!=null&&this.getIdsFor(r).add(n)}},{key:"deleteIdForKey",value:function(r,n){r!=null&&this.getIdsFor(r).delete(n)}},{key:"getNumberOfIdsForKey",value:function(r){return r==null?0:this.getIdsFor(r).size}},{key:"updateKeyMappingFor",value:function(r){var n=r.id(),A=this.keyForId.get(n),a=this.getKey(r);this.deleteIdForKey(A,n),this.addIdForKey(a,n),this.keyForId.set(n,a)}},{key:"deleteKeyMappingFor",value:function(r){var n=r.id(),A=this.keyForId.get(n);this.deleteIdForKey(A,n),this.keyForId.delete(n)}},{key:"keyHasChangedFor",value:function(r){var n=r.id(),A=this.keyForId.get(n),a=this.getKey(r);return A!==a}},{key:"isInvalid",value:function(r){return this.keyHasChangedFor(r)||this.doesEleInvalidateKey(r)}},{key:"getCachesAt",value:function(r){var n=this.cachesByLvl,A=this.lvls,a=n.get(r);return a||(a=new yn,n.set(r,a),A.push(r)),a}},{key:"getCache",value:function(r,n){return this.getCachesAt(n).get(r)}},{key:"get",value:function(r,n){var A=this.getKey(r),a=this.getCache(A,n);return a!=null&&this.updateKeyMappingFor(r),a}},{key:"getForCachedKey",value:function(r,n){var A=this.keyForId.get(r.id()),a=this.getCache(A,n);return a}},{key:"hasCache",value:function(r,n){return this.getCachesAt(n).has(r)}},{key:"has",value:function(r,n){var A=this.getKey(r);return this.hasCache(A,n)}},{key:"setCache",value:function(r,n,A){A.key=r,this.getCachesAt(n).set(r,A)}},{key:"set",value:function(r,n,A){var a=this.getKey(r);this.setCache(a,n,A),this.updateKeyMappingFor(r)}},{key:"deleteCache",value:function(r,n){this.getCachesAt(n).delete(r)}},{key:"delete",value:function(r,n){var A=this.getKey(r);this.deleteCache(A,n)}},{key:"invalidateKey",value:function(r){var n=this;this.lvls.forEach(function(A){return n.deleteCache(r,A)})}},{key:"invalidate",value:function(r){var n=r.id(),A=this.keyForId.get(n);this.deleteKeyMappingFor(r);var a=this.doesEleInvalidateKey(r);return a&&this.invalidateKey(A),a||this.getNumberOfIdsForKey(A)===0}}]),t}(),Uv=25,Ps=50,xl=-4,fd=3,kk=7.99,Pk=8,Nk=1024,Kk=1024,Gk=1024,Vk=.2,$k=.8,zk=10,Wk=.15,_k=.1,Xk=.9,Yk=.9,jk=100,qk=1,Ta={dequeue:"dequeue",downscale:"downscale",highQuality:"highQuality"},Jk=Jt({getKey:null,doesEleInvalidateKey:$l,drawElement:null,getBoundingBox:null,getRotationPoint:null,getRotationOffset:null,isVisible:W0,allowEdgeTxrCaching:!0,allowParentTxrCaching:!0}),Wi=function(e,r){var n=this;n.renderer=e,n.onDequeues=[];var A=Jk(r);Re(n,A),n.lookup=new Hk(A.getKey,A.doesEleInvalidateKey),n.setupDequeueing()},Nt=Wi.prototype;Nt.reasons=Ta;Nt.getTextureQueue=function(t){var e=this;return e.eleImgCaches=e.eleImgCaches||{},e.eleImgCaches[t]=e.eleImgCaches[t]||[]};Nt.getRetiredTextureQueue=function(t){var e=this,r=e.eleImgCaches.retired=e.eleImgCaches.retired||{},n=r[t]=r[t]||[];return n};Nt.getElementQueue=function(){var t=this,e=t.eleCacheQueue=t.eleCacheQueue||new rs(function(r,n){return n.reqs-r.reqs});return e};Nt.getElementKeyToQueue=function(){var t=this,e=t.eleKeyToCacheQueue=t.eleKeyToCacheQueue||{};return e};Nt.getElement=function(t,e,r,n,A){var a=this,i=this.renderer,o=i.cy.zoom(),s=this.lookup;if(!e||e.w===0||e.h===0||isNaN(e.w)||isNaN(e.h)||!t.visible()||t.removed()||!a.allowEdgeTxrCaching&&t.isEdge()||!a.allowParentTxrCaching&&t.isParent())return null;if(n==null&&(n=Math.ceil(Sh(o*r))),n=kk||n>fd)return null;var l=Math.pow(2,n),u=e.h*l,c=e.w*l,d=i.eleTextBiggerThanMin(t,l);if(!this.isVisible(t,d))return null;var h=s.get(t,n);if(h&&h.invalidated&&(h.invalidated=!1,h.texture.invalidatedWidth-=h.width),h)return h;var f;if(u<=Uv?f=Uv:u<=Ps?f=Ps:f=Math.ceil(u/Ps)*Ps,u>Gk||c>Kk)return null;var p=a.getTextureQueue(f),g=p[p.length-2],m=function(){return a.recycleTexture(f,c)||a.addTexture(f,c)};g||(g=p[p.length-1]),g||(g=m()),g.width-g.usedWidthn;Q--)w=a.getElement(t,e,r,Q,Ta.downscale);x()}else return a.queueElement(t,E.level-1),E;else{var S;if(!v&&!y&&!b)for(var T=n-1;T>=xl;T--){var U=s.get(t,T);if(U){S=U;break}}if(B(S))return a.queueElement(t,n),S;g.context.translate(g.usedWidth,0),g.context.scale(l,l),this.drawElement(g.context,t,e,d,!1),g.context.scale(1/l,1/l),g.context.translate(-g.usedWidth,0)}return h={x:g.usedWidth,texture:g,level:n,scale:l,width:c,height:u,scaledLabelShown:d},g.usedWidth+=Math.ceil(c+Pk),g.eleCaches.push(h),s.set(t,n,h),a.checkTextureFullness(g),h};Nt.invalidateElements=function(t){for(var e=0;e=Vk*t.width&&this.retireTexture(t)};Nt.checkTextureFullness=function(t){var e=this,r=e.getTextureQueue(t.height);t.usedWidth/t.width>$k&&t.fullnessChecks>=zk?uA(r,t):t.fullnessChecks++};Nt.retireTexture=function(t){var e=this,r=t.height,n=e.getTextureQueue(r),A=this.lookup;uA(n,t),t.retired=!0;for(var a=t.eleCaches,i=0;i=e)return i.retired=!1,i.usedWidth=0,i.invalidatedWidth=0,i.fullnessChecks=0,Qh(i.eleCaches),i.context.setTransform(1,0,0,1,0,0),i.context.clearRect(0,0,i.width,i.height),uA(A,i),n.push(i),i}};Nt.queueElement=function(t,e){var r=this,n=r.getElementQueue(),A=r.getElementKeyToQueue(),a=this.getKey(t),i=A[a];if(i)i.level=Math.max(i.level,e),i.eles.merge(t),i.reqs++,n.updateItem(i);else{var o={eles:t.spawn().merge(t),level:e,reqs:1,key:a};n.push(o),A[a]=o}};Nt.dequeue=function(t){for(var e=this,r=e.getElementQueue(),n=e.getElementKeyToQueue(),A=[],a=e.lookup,i=0;i0;i++){var o=r.pop(),s=o.key,l=o.eles[0],u=a.hasCache(l,o.level);if(n[s]=null,u)continue;A.push(o);var c=e.getBoundingBox(l);e.getElement(l,c,t,o.level,Ta.dequeue)}return A};Nt.removeFromQueue=function(t){var e=this,r=e.getElementQueue(),n=e.getElementKeyToQueue(),A=this.getKey(t),a=n[A];a!=null&&(a.eles.length===1?(a.reqs=xh,r.updateItem(a),r.pop(),n[A]=null):a.eles.unmerge(t))};Nt.onDequeue=function(t){this.onDequeues.push(t)};Nt.offDequeue=function(t){uA(this.onDequeues,t)};Nt.setupDequeueing=tw.setupDequeueing({deqRedrawThreshold:jk,deqCost:Wk,deqAvgCost:_k,deqNoDrawCost:Xk,deqFastCost:Yk,deq:function(e,r,n){return e.dequeue(r,n)},onDeqd:function(e,r){for(var n=0;n=eP||r>Jl)return null}n.validateLayersElesOrdering(r,t);var s=n.layersByLevel,l=Math.pow(2,r),u=s[r]=s[r]||[],c,d=n.levelIsComplete(r,t),h,f=function(){var x=function(L){if(n.validateLayersElesOrdering(L,t),n.levelIsComplete(L,t))return h=s[L],!0},Q=function(L){if(!h)for(var R=r+L;so<=R&&R<=Jl&&!x(R);R+=L);};Q(1),Q(-1);for(var S=u.length-1;S>=0;S--){var T=u[S];T.invalid&&uA(u,T)}};if(!d)f();else return u;var p=function(){if(!c){c=mr();for(var x=0;xsP)return null;var T=n.makeLayer(c,r);if(Q!=null){var U=u.indexOf(Q)+1;u.splice(U,0,T)}else(x.insert===void 0||x.insert)&&u.unshift(T);return T};if(n.skipping&&!o)return null;for(var m=null,B=t.length/Zk,v=!o,y=0;y=B||!Z0(m.bb,b.boundingBox()))&&(m=g({insert:!0,after:m}),!m))return null;h||v?n.queueLayer(m,b):n.drawEleInLayer(m,b,r,e),m.eles.push(b),C[r]=m}return h||(v?null:u)};Zt.getEleLevelForLayerLevel=function(t,e){return t};Zt.drawEleInLayer=function(t,e,r,n){var A=this,a=this.renderer,i=t.context,o=e.boundingBox();o.w===0||o.h===0||!e.visible()||(r=A.getEleLevelForLayerLevel(r,n),a.setImgSmoothing(i,!1),a.drawCachedElement(i,e,null,null,r,lP),a.setImgSmoothing(i,!0))};Zt.levelIsComplete=function(t,e){var r=this,n=r.layersByLevel[t];if(!n||n.length===0)return!1;for(var A=0,a=0;a0||i.invalid)return!1;A+=i.eles.length}return A===e.length};Zt.validateLayersElesOrdering=function(t,e){var r=this.layersByLevel[t];if(r)for(var n=0;n0){e=!0;break}}return e};Zt.invalidateElements=function(t){var e=this;t.length!==0&&(e.lastInvalidationTime=kn(),!(t.length===0||!e.haveLayers())&&e.updateElementsInLayers(t,function(n,A,a){e.invalidateLayer(n)}))};Zt.invalidateLayer=function(t){if(this.lastInvalidationTime=kn(),!t.invalid){var e=t.level,r=t.eles,n=this.layersByLevel[e];uA(n,t),t.elesQueue=[],t.invalid=!0,t.replacement&&(t.replacement.invalid=!0);for(var A=0;A3&&arguments[3]!==void 0?arguments[3]:!0,A=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0,i=this,o=e._private.rscratch;if(!(a&&!e.visible())&&!(o.badLine||o.allpts==null||isNaN(o.allpts[0]))){var s;r&&(s=r,t.translate(-s.x1,-s.y1));var l=a?e.pstyle("opacity").value:1,u=a?e.pstyle("line-opacity").value:1,c=e.pstyle("curve-style").value,d=e.pstyle("line-style").value,h=e.pstyle("width").pfValue,f=e.pstyle("line-cap").value,p=e.pstyle("line-outline-width").value,g=e.pstyle("line-outline-color").value,m=l*u,B=l*u,v=function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:m;c==="straight-triangle"?(i.eleStrokeStyle(t,e,L),i.drawEdgeTrianglePath(e,t,o.allpts)):(t.lineWidth=h,t.lineCap=f,i.eleStrokeStyle(t,e,L),i.drawEdgePath(e,t,o.allpts,d),t.lineCap="butt")},y=function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:m;if(t.lineWidth=h+p,t.lineCap=f,p>0)i.colorStrokeStyle(t,g[0],g[1],g[2],L);else{t.lineCap="butt";return}c==="straight-triangle"?i.drawEdgeTrianglePath(e,t,o.allpts):(i.drawEdgePath(e,t,o.allpts,d),t.lineCap="butt")},b=function(){A&&i.drawEdgeOverlay(t,e)},E=function(){A&&i.drawEdgeUnderlay(t,e)},C=function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:B;i.drawArrowheads(t,e,L)},F=function(){i.drawElementText(t,e,null,n)};t.lineJoin="round";var w=e.pstyle("ghost").value==="yes";if(w){var x=e.pstyle("ghost-offset-x").pfValue,Q=e.pstyle("ghost-offset-y").pfValue,S=e.pstyle("ghost-opacity").value,T=m*S;t.translate(x,Q),v(T),C(T),t.translate(-x,-Q)}else y();E(),v(),C(),b(),F(),r&&t.translate(s.x1,s.y1)}};var Aw=function(e){if(!["overlay","underlay"].includes(e))throw new Error("Invalid state");return function(r,n){if(n.visible()){var A=n.pstyle("".concat(e,"-opacity")).value;if(A!==0){var a=this,i=a.usePaths(),o=n._private.rscratch,s=n.pstyle("".concat(e,"-padding")).pfValue,l=2*s,u=n.pstyle("".concat(e,"-color")).value;r.lineWidth=l,o.edgeType==="self"&&!i?r.lineCap="butt":r.lineCap="round",a.colorStrokeStyle(r,u[0],u[1],u[2],A),a.drawEdgePath(n,r,o.allpts,"solid")}}}};zn.drawEdgeOverlay=Aw("overlay");zn.drawEdgeUnderlay=Aw("underlay");zn.drawEdgePath=function(t,e,r,n){var A=t._private.rscratch,a=e,i,o=!1,s=this.usePaths(),l=t.pstyle("line-dash-pattern").pfValue,u=t.pstyle("line-dash-offset").pfValue;if(s){var c=r.join("$"),d=A.pathCacheKey&&A.pathCacheKey===c;d?(i=e=A.pathCache,o=!0):(i=e=new Path2D,A.pathCacheKey=c,A.pathCache=i)}if(a.setLineDash)switch(n){case"dotted":a.setLineDash([1,1]);break;case"dashed":a.setLineDash(l),a.lineDashOffset=u;break;case"solid":a.setLineDash([]);break}if(!o&&!A.badLine)switch(e.beginPath&&e.beginPath(),e.moveTo(r[0],r[1]),A.edgeType){case"bezier":case"self":case"compound":case"multibezier":for(var h=2;h+35&&arguments[5]!==void 0?arguments[5]:!0,i=this;if(n==null){if(a&&!i.eleTextBiggerThanMin(e))return}else if(n===!1)return;if(e.isNode()){var o=e.pstyle("label");if(!o||!o.value)return;var s=i.getLabelJustification(e);t.textAlign=s,t.textBaseline="bottom"}else{var l=e.element()._private.rscratch.badLine,u=e.pstyle("label"),c=e.pstyle("source-label"),d=e.pstyle("target-label");if(l||(!u||!u.value)&&(!c||!c.value)&&(!d||!d.value))return;t.textAlign="center",t.textBaseline="bottom"}var h=!r,f;r&&(f=r,t.translate(-f.x1,-f.y1)),A==null?(i.drawText(t,e,null,h,a),e.isEdge()&&(i.drawText(t,e,"source",h,a),i.drawText(t,e,"target",h,a))):i.drawText(t,e,A,h,a),r&&t.translate(f.x1,f.y1)};ZA.getFontCache=function(t){var e;this.fontCaches=this.fontCaches||[];for(var r=0;r2&&arguments[2]!==void 0?arguments[2]:!0,n=e.pstyle("font-style").strValue,A=e.pstyle("font-size").pfValue+"px",a=e.pstyle("font-family").strValue,i=e.pstyle("font-weight").strValue,o=r?e.effectiveOpacity()*e.pstyle("text-opacity").value:1,s=e.pstyle("text-outline-opacity").value*o,l=e.pstyle("color").value,u=e.pstyle("text-outline-color").value;t.font=n+" "+i+" "+A+" "+a,t.lineJoin="round",this.colorFillStyle(t,l[0],l[1],l[2],o),this.colorStrokeStyle(t,u[0],u[1],u[2],s)};function lf(t,e,r,n,A){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:5,i=arguments.length>6?arguments[6]:void 0;t.beginPath(),t.moveTo(e+a,r),t.lineTo(e+n-a,r),t.quadraticCurveTo(e+n,r,e+n,r+a),t.lineTo(e+n,r+A-a),t.quadraticCurveTo(e+n,r+A,e+n-a,r+A),t.lineTo(e+a,r+A),t.quadraticCurveTo(e,r+A,e,r+A-a),t.lineTo(e,r+a),t.quadraticCurveTo(e,r,e+a,r),t.closePath(),i?t.stroke():t.fill()}ZA.getTextAngle=function(t,e){var r,n=t._private,A=n.rscratch,a=e?e+"-":"",i=t.pstyle(a+"text-rotation"),o=Jr(A,"labelAngle",e);return i.strValue==="autorotate"?r=t.isEdge()?o:0:i.strValue==="none"?r=0:r=i.pfValue,r};ZA.drawText=function(t,e,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,A=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=e._private,i=a.rscratch,o=A?e.effectiveOpacity():1;if(!(A&&(o===0||e.pstyle("text-opacity").value===0))){r==="main"&&(r=null);var s=Jr(i,"labelX",r),l=Jr(i,"labelY",r),u,c,d=this.getLabelText(e,r);if(d!=null&&d!==""&&!isNaN(s)&&!isNaN(l)){this.setupTextStyle(t,e,A);var h=r?r+"-":"",f=Jr(i,"labelWidth",r),p=Jr(i,"labelHeight",r),g=e.pstyle(h+"text-margin-x").pfValue,m=e.pstyle(h+"text-margin-y").pfValue,B=e.isEdge(),v=e.pstyle("text-halign").value,y=e.pstyle("text-valign").value;B&&(v="center",y="center"),s+=g,l+=m;var b;switch(n?b=this.getTextAngle(e,r):b=0,b!==0&&(u=s,c=l,t.translate(u,c),t.rotate(b),s=0,l=0),y){case"top":break;case"center":l+=p/2;break;case"bottom":l+=p;break}var E=e.pstyle("text-background-opacity").value,C=e.pstyle("text-border-opacity").value,F=e.pstyle("text-border-width").pfValue,w=e.pstyle("text-background-padding").pfValue,x=e.pstyle("text-background-shape").strValue,Q=x.indexOf("round")===0,S=2;if(E>0||F>0&&C>0){var T=s-w;switch(v){case"left":T-=f;break;case"center":T-=f/2;break}var U=l-p-w,L=f+2*w,R=p+2*w;if(E>0){var M=t.fillStyle,H=e.pstyle("text-background-color").value;t.fillStyle="rgba("+H[0]+","+H[1]+","+H[2]+","+E*o+")",Q?lf(t,T,U,L,R,S):t.fillRect(T,U,L,R),t.fillStyle=M}if(F>0&&C>0){var k=t.strokeStyle,N=t.lineWidth,P=e.pstyle("text-border-color").value,K=e.pstyle("text-border-style").value;if(t.strokeStyle="rgba("+P[0]+","+P[1]+","+P[2]+","+C*o+")",t.lineWidth=F,t.setLineDash)switch(K){case"dotted":t.setLineDash([1,1]);break;case"dashed":t.setLineDash([4,2]);break;case"double":t.lineWidth=F/4,t.setLineDash([]);break;case"solid":t.setLineDash([]);break}if(Q?lf(t,T,U,L,R,S,"stroke"):t.strokeRect(T,U,L,R),K==="double"){var W=F/2;Q?lf(t,T+W,U+W,L-W*2,R-W*2,S,"stroke"):t.strokeRect(T+W,U+W,L-W*2,R-W*2)}t.setLineDash&&t.setLineDash([]),t.lineWidth=N,t.strokeStyle=k}}var X=2*e.pstyle("text-outline-width").pfValue;if(X>0&&(t.lineWidth=X),e.pstyle("text-wrap").value==="wrap"){var Z=Jr(i,"labelWrapCachedLines",r),Ae=Jr(i,"labelLineHeight",r),ie=f/2,re=this.getLabelJustification(e);switch(re==="auto"||(v==="left"?re==="left"?s+=-f:re==="center"&&(s+=-ie):v==="center"?re==="left"?s+=-ie:re==="right"&&(s+=ie):v==="right"&&(re==="center"?s+=ie:re==="right"&&(s+=f))),y){case"top":l-=(Z.length-1)*Ae;break;case"center":case"bottom":l-=(Z.length-1)*Ae;break}for(var z=0;z0&&t.strokeText(Z[z],s,l),t.fillText(Z[z],s,l),l+=Ae}else X>0&&t.strokeText(d,s,l),t.fillText(d,s,l);b!==0&&(t.rotate(-b),t.translate(-u,-c))}}};var pi={};pi.drawNode=function(t,e,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,A=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0,i=this,o,s,l=e._private,u=l.rscratch,c=e.position();if(!(!be(c.x)||!be(c.y))&&!(a&&!e.visible())){var d=a?e.effectiveOpacity():1,h=i.usePaths(),f,p=!1,g=e.padding();o=e.width()+2*g,s=e.height()+2*g;var m;r&&(m=r,t.translate(-m.x1,-m.y1));for(var B=e.pstyle("background-image"),v=B.value,y=new Array(v.length),b=new Array(v.length),E=0,C=0;C0&&arguments[0]!==void 0?arguments[0]:T;i.eleFillStyle(t,e,ce)},z=function(){var ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:P;i.colorStrokeStyle(t,U[0],U[1],U[2],ce)},q=function(){var ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Z;i.colorStrokeStyle(t,W[0],W[1],W[2],ce)},ee=function(ce,Y,de,Te){var V=i.nodePathCache=i.nodePathCache||[],oe=z0(de==="polygon"?de+","+Te.join(","):de,""+Y,""+ce,""+ie),fe=V[oe],pe,Be=!1;return fe!=null?(pe=fe,Be=!0,u.pathCache=pe):(pe=new Path2D,V[oe]=u.pathCache=pe),{path:pe,cacheHit:Be}},se=e.pstyle("shape").strValue,te=e.pstyle("shape-polygon-points").pfValue;if(h){t.translate(c.x,c.y);var ae=ee(o,s,se,te);f=ae.path,p=ae.cacheHit}var le=function(){if(!p){var ce=c;h&&(ce={x:0,y:0}),i.nodeShapes[i.getNodeShape(e)].draw(f||t,ce.x,ce.y,o,s,ie,u)}h?t.fill(f):t.fill()},ve=function(){for(var ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:d,Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,de=l.backgrounding,Te=0,V=0;V0&&arguments[0]!==void 0?arguments[0]:!1,Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:d;i.hasPie(e)&&(i.drawPie(t,e,Y),ce&&(h||i.nodeShapes[i.getNodeShape(e)].draw(t,c.x,c.y,o,s,ie,u)))},he=function(){var ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:d,Y=(Q>0?Q:-Q)*ce,de=Q>0?0:255;Q!==0&&(i.colorFillStyle(t,de,de,de,Y),h?t.fill(f):t.fill())},ye=function(){if(S>0){if(t.lineWidth=S,t.lineCap=M,t.lineJoin=R,t.setLineDash)switch(L){case"dotted":t.setLineDash([1,1]);break;case"dashed":t.setLineDash(k),t.lineDashOffset=N;break;case"solid":case"double":t.setLineDash([]);break}if(H!=="center"){if(t.save(),t.lineWidth*=2,H==="inside")h?t.clip(f):t.clip();else{var ce=new Path2D;ce.rect(-o/2-S,-s/2-S,o+2*S,s+2*S),ce.addPath(f),t.clip(ce,"evenodd")}h?t.stroke(f):t.stroke(),t.restore()}else h?t.stroke(f):t.stroke();if(L==="double"){t.lineWidth=S/3;var Y=t.globalCompositeOperation;t.globalCompositeOperation="destination-out",h?t.stroke(f):t.stroke(),t.globalCompositeOperation=Y}t.setLineDash&&t.setLineDash([])}},Se=function(){if(K>0){if(t.lineWidth=K,t.lineCap="butt",t.setLineDash)switch(X){case"dotted":t.setLineDash([1,1]);break;case"dashed":t.setLineDash([4,2]);break;case"solid":case"double":t.setLineDash([]);break}var ce=c;h&&(ce={x:0,y:0});var Y=i.getNodeShape(e),de=S;H==="inside"&&(de=0),H==="outside"&&(de*=2);var Te=(o+de+(K+Ae))/o,V=(s+de+(K+Ae))/s,oe=o*Te,fe=s*V,pe=i.nodeShapes[Y].points,Be;if(h){var Oe=ee(oe,fe,Y,pe);Be=Oe.path}if(Y==="ellipse")i.drawEllipsePath(Be||t,ce.x,ce.y,oe,fe);else if(["round-diamond","round-heptagon","round-hexagon","round-octagon","round-pentagon","round-polygon","round-triangle","round-tag"].includes(Y)){var Ne=0,ut=0,Ge=0;Y==="round-diamond"?Ne=(de+Ae+K)*1.4:Y==="round-heptagon"?(Ne=(de+Ae+K)*1.075,Ge=-(de/2+Ae+K)/35):Y==="round-hexagon"?Ne=(de+Ae+K)*1.12:Y==="round-pentagon"?(Ne=(de+Ae+K)*1.13,Ge=-(de/2+Ae+K)/15):Y==="round-tag"?(Ne=(de+Ae+K)*1.12,ut=(de/2+K+Ae)*.07):Y==="round-triangle"&&(Ne=(de+Ae+K)*(Math.PI/2),Ge=-(de+Ae/2+K)/Math.PI),Ne!==0&&(Te=(o+Ne)/o,oe=o*Te,["round-hexagon","round-tag"].includes(Y)||(V=(s+Ne)/s,fe=s*V)),ie=ie==="auto"?rB(oe,fe):ie;for(var He=oe/2,pt=fe/2,Je=ie+(de+K+Ae)/2,ze=new Array(pe.length/2),De=new Array(pe.length/2),nt=0;nt0){if(A=A||n.position(),a==null||i==null){var h=n.padding();a=n.width()+2*h,i=n.height()+2*h}o.colorFillStyle(r,u[0],u[1],u[2],l),o.nodeShapes[c].draw(r,A.x,A.y,a+s*2,i+s*2,d),r.fill()}}}};pi.drawNodeOverlay=aw("overlay");pi.drawNodeUnderlay=aw("underlay");pi.hasPie=function(t){return t=t[0],t._private.hasPie};pi.drawPie=function(t,e,r,n){e=e[0],n=n||e.position();var A=e.cy().style(),a=e.pstyle("pie-size"),i=n.x,o=n.y,s=e.width(),l=e.height(),u=Math.min(s,l)/2,c=0,d=this.usePaths();d&&(i=0,o=0),a.units==="%"?u=u*a.pfValue:a.pfValue!==void 0&&(u=a.pfValue/2);for(var h=1;h<=A.pieBackgroundN;h++){var f=e.pstyle("pie-"+h+"-background-size").value,p=e.pstyle("pie-"+h+"-background-color").value,g=e.pstyle("pie-"+h+"-background-opacity").value*r,m=f/100;m+c>1&&(m=1-c);var B=1.5*Math.PI+2*Math.PI*c,v=2*Math.PI*m,y=B+v;f===0||c>=1||c+m>1||(t.beginPath(),t.moveTo(i,o),t.arc(i,o,u,B,y),t.closePath(),this.colorFillStyle(t,p[0],p[1],p[2],g),t.fill(),c+=m)}};var Qr={},BP=100;Qr.getPixelRatio=function(){var t=this.data.contexts[0];if(this.forcedPixelRatio!=null)return this.forcedPixelRatio;var e=this.cy.window(),r=t.backingStorePixelRatio||t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1;return(e.devicePixelRatio||1)/r};Qr.paintCache=function(t){for(var e=this.paintCaches=this.paintCaches||[],r=!0,n,A=0;Ai.minMbLowQualFrames&&(i.motionBlurPxRatio=i.mbPxRBlurry)),i.clearingMotionBlur&&(i.motionBlurPxRatio=1),i.textureDrawLastFrame&&!c&&(u[i.NODE]=!0,u[i.SELECT_BOX]=!0);var B=s.style(),v=s.zoom(),y=A!==void 0?A:v,b=s.pan(),E={x:b.x,y:b.y},C={zoom:v,pan:{x:b.x,y:b.y}},F=i.prevViewport,w=F===void 0||C.zoom!==F.zoom||C.pan.x!==F.pan.x||C.pan.y!==F.pan.y;!w&&!(p&&!f)&&(i.motionBlurPxRatio=1),a&&(E=a),y*=o,E.x*=o,E.y*=o;var x=i.getCachedZSortedEles();function Q(ae,le,ve,ge,he){var ye=ae.globalCompositeOperation;ae.globalCompositeOperation="destination-out",i.colorFillStyle(ae,255,255,255,i.motionBlurTransparency),ae.fillRect(le,ve,ge,he),ae.globalCompositeOperation=ye}function S(ae,le){var ve,ge,he,ye;!i.clearingMotionBlur&&(ae===l.bufferContexts[i.MOTIONBLUR_BUFFER_NODE]||ae===l.bufferContexts[i.MOTIONBLUR_BUFFER_DRAG])?(ve={x:b.x*h,y:b.y*h},ge=v*h,he=i.canvasWidth*h,ye=i.canvasHeight*h):(ve=E,ge=y,he=i.canvasWidth,ye=i.canvasHeight),ae.setTransform(1,0,0,1,0,0),le==="motionBlur"?Q(ae,0,0,he,ye):!e&&(le===void 0||le)&&ae.clearRect(0,0,he,ye),r||(ae.translate(ve.x,ve.y),ae.scale(ge,ge)),a&&ae.translate(a.x,a.y),A&&ae.scale(A,A)}if(c||(i.textureDrawLastFrame=!1),c){if(i.textureDrawLastFrame=!0,!i.textureCache){i.textureCache={},i.textureCache.bb=s.mutableElements().boundingBox(),i.textureCache.texture=i.data.bufferCanvases[i.TEXTURE_BUFFER];var T=i.data.bufferContexts[i.TEXTURE_BUFFER];T.setTransform(1,0,0,1,0,0),T.clearRect(0,0,i.canvasWidth*i.textureMult,i.canvasHeight*i.textureMult),i.render({forcedContext:T,drawOnlyNodeLayer:!0,forcedPxRatio:o*i.textureMult});var C=i.textureCache.viewport={zoom:s.zoom(),pan:s.pan(),width:i.canvasWidth,height:i.canvasHeight};C.mpan={x:(0-C.pan.x)/C.zoom,y:(0-C.pan.y)/C.zoom}}u[i.DRAG]=!1,u[i.NODE]=!1;var U=l.contexts[i.NODE],L=i.textureCache.texture,C=i.textureCache.viewport;U.setTransform(1,0,0,1,0,0),d?Q(U,0,0,C.width,C.height):U.clearRect(0,0,C.width,C.height);var R=B.core("outside-texture-bg-color").value,M=B.core("outside-texture-bg-opacity").value;i.colorFillStyle(U,R[0],R[1],R[2],M),U.fillRect(0,0,C.width,C.height);var v=s.zoom();S(U,!1),U.clearRect(C.mpan.x,C.mpan.y,C.width/C.zoom/o,C.height/C.zoom/o),U.drawImage(L,C.mpan.x,C.mpan.y,C.width/C.zoom/o,C.height/C.zoom/o)}else i.textureOnViewport&&!e&&(i.textureCache=null);var H=s.extent(),k=i.pinching||i.hoverData.dragging||i.swipePanning||i.data.wheelZooming||i.hoverData.draggingEles||i.cy.animated(),N=i.hideEdgesOnViewport&&k,P=[];if(P[i.NODE]=!u[i.NODE]&&d&&!i.clearedForMotionBlur[i.NODE]||i.clearingMotionBlur,P[i.NODE]&&(i.clearedForMotionBlur[i.NODE]=!0),P[i.DRAG]=!u[i.DRAG]&&d&&!i.clearedForMotionBlur[i.DRAG]||i.clearingMotionBlur,P[i.DRAG]&&(i.clearedForMotionBlur[i.DRAG]=!0),u[i.NODE]||r||n||P[i.NODE]){var K=d&&!P[i.NODE]&&h!==1,U=e||(K?i.data.bufferContexts[i.MOTIONBLUR_BUFFER_NODE]:l.contexts[i.NODE]),W=d&&!K?"motionBlur":void 0;S(U,W),N?i.drawCachedNodes(U,x.nondrag,o,H):i.drawLayeredElements(U,x.nondrag,o,H),i.debug&&i.drawDebugPoints(U,x.nondrag),!r&&!d&&(u[i.NODE]=!1)}if(!n&&(u[i.DRAG]||r||P[i.DRAG])){var K=d&&!P[i.DRAG]&&h!==1,U=e||(K?i.data.bufferContexts[i.MOTIONBLUR_BUFFER_DRAG]:l.contexts[i.DRAG]);S(U,d&&!K?"motionBlur":void 0),N?i.drawCachedNodes(U,x.drag,o,H):i.drawCachedElements(U,x.drag,o,H),i.debug&&i.drawDebugPoints(U,x.drag),!r&&!d&&(u[i.DRAG]=!1)}if(i.showFps||!n&&u[i.SELECT_BOX]&&!r){var U=e||l.contexts[i.SELECT_BOX];if(S(U),i.selection[4]==1&&(i.hoverData.selecting||i.touchData.selecting)){var v=i.cy.zoom(),X=B.core("selection-box-border-width").value/v;U.lineWidth=X,U.fillStyle="rgba("+B.core("selection-box-color").value[0]+","+B.core("selection-box-color").value[1]+","+B.core("selection-box-color").value[2]+","+B.core("selection-box-opacity").value+")",U.fillRect(i.selection[0],i.selection[1],i.selection[2]-i.selection[0],i.selection[3]-i.selection[1]),X>0&&(U.strokeStyle="rgba("+B.core("selection-box-border-color").value[0]+","+B.core("selection-box-border-color").value[1]+","+B.core("selection-box-border-color").value[2]+","+B.core("selection-box-opacity").value+")",U.strokeRect(i.selection[0],i.selection[1],i.selection[2]-i.selection[0],i.selection[3]-i.selection[1]))}if(l.bgActivePosistion&&!i.hoverData.selecting){var v=i.cy.zoom(),Z=l.bgActivePosistion;U.fillStyle="rgba("+B.core("active-bg-color").value[0]+","+B.core("active-bg-color").value[1]+","+B.core("active-bg-color").value[2]+","+B.core("active-bg-opacity").value+")",U.beginPath(),U.arc(Z.x,Z.y,B.core("active-bg-size").pfValue/v,0,2*Math.PI),U.fill()}var Ae=i.lastRedrawTime;if(i.showFps&&Ae){Ae=Math.round(Ae);var ie=Math.round(1e3/Ae);U.setTransform(1,0,0,1,0,0),U.fillStyle="rgba(255, 0, 0, 0.75)",U.strokeStyle="rgba(255, 0, 0, 0.75)",U.lineWidth=1,U.fillText("1 frame = "+Ae+" ms = "+ie+" fps",0,20);var re=60;U.strokeRect(0,30,250,20),U.fillRect(0,30,250*Math.min(ie/re,1),20)}r||(u[i.SELECT_BOX]=!1)}if(d&&h!==1){var z=l.contexts[i.NODE],q=i.data.bufferCanvases[i.MOTIONBLUR_BUFFER_NODE],ee=l.contexts[i.DRAG],se=i.data.bufferCanvases[i.MOTIONBLUR_BUFFER_DRAG],te=function(le,ve,ge){le.setTransform(1,0,0,1,0,0),ge||!m?le.clearRect(0,0,i.canvasWidth,i.canvasHeight):Q(le,0,0,i.canvasWidth,i.canvasHeight);var he=h;le.drawImage(ve,0,0,i.canvasWidth*he,i.canvasHeight*he,0,0,i.canvasWidth,i.canvasHeight)};(u[i.NODE]||P[i.NODE])&&(te(z,q,P[i.NODE]),u[i.NODE]=!1),(u[i.DRAG]||P[i.DRAG])&&(te(ee,se,P[i.DRAG]),u[i.DRAG]=!1)}i.prevViewport=C,i.clearingMotionBlur&&(i.clearingMotionBlur=!1,i.motionBlurCleared=!0,i.motionBlur=!0),d&&(i.motionBlurTimeout=setTimeout(function(){i.motionBlurTimeout=null,i.clearedForMotionBlur[i.NODE]=!1,i.clearedForMotionBlur[i.DRAG]=!1,i.motionBlur=!1,i.clearingMotionBlur=!c,i.mbFrames=0,u[i.NODE]=!0,u[i.DRAG]=!0,i.redraw()},BP)),e||s.emit("render")};var vA={};vA.drawPolygonPath=function(t,e,r,n,A,a){var i=n/2,o=A/2;t.beginPath&&t.beginPath(),t.moveTo(e+i*a[0],r+o*a[1]);for(var s=1;s0&&i>0){h.clearRect(0,0,a,i),h.globalCompositeOperation="source-over";var f=this.getCachedZSortedEles();if(t.full)h.translate(-n.x1*l,-n.y1*l),h.scale(l,l),this.drawElements(h,f),h.scale(1/l,1/l),h.translate(n.x1*l,n.y1*l);else{var p=e.pan(),g={x:p.x*l,y:p.y*l};l*=e.zoom(),h.translate(g.x,g.y),h.scale(l,l),this.drawElements(h,f),h.scale(1/l,1/l),h.translate(-g.x,-g.y)}t.bg&&(h.globalCompositeOperation="destination-over",h.fillStyle=t.bg,h.rect(0,0,a,i),h.fill())}return d};function wP(t,e){for(var r=atob(t),n=new ArrayBuffer(r.length),A=new Uint8Array(n),a=0;a"u"?"undefined":Pt(OffscreenCanvas))!=="undefined")r=new OffscreenCanvas(t,e);else{var n=this.cy.window(),A=n.document;r=A.createElement("canvas"),r.width=t,r.height=e}return r};[nw,Fn,zn,$h,ZA,pi,Qr,vA,os,sw].forEach(function(t){Re(Xe,t)});var EP=[{name:"null",impl:$B},{name:"base",impl:ew},{name:"canvas",impl:CP}],xP=[{type:"layout",extensions:Ik},{type:"renderer",extensions:EP}],uw={},cw={};function fw(t,e,r){var n=r,A=function(F){tt("Can not register `"+e+"` for `"+t+"` since `"+F+"` already exists in the prototype and can not be overridden")};if(t==="core"){if(Ho.prototype[e])return A(e);Ho.prototype[e]=r}else if(t==="collection"){if(qt.prototype[e])return A(e);qt.prototype[e]=r}else if(t==="layout"){for(var a=function(F){this.options=F,r.call(this,F),_e(this._private)||(this._private={}),this._private.cy=F.cy,this._private.listeners=[],this.createEmitter()},i=a.prototype=Object.create(r.prototype),o=[],s=0;sf&&(this.rect.x-=(this.labelWidth-f)/2,this.setWidth(this.labelWidth)),this.labelHeight>p&&(this.labelPos=="center"?this.rect.y-=(this.labelHeight-p)/2:this.labelPos=="top"&&(this.rect.y-=this.labelHeight-p),this.setHeight(this.labelHeight))}}},c.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==i.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},c.prototype.transform=function(h){var f=this.rect.x;f>s.WORLD_BOUNDARY?f=s.WORLD_BOUNDARY:f<-s.WORLD_BOUNDARY&&(f=-s.WORLD_BOUNDARY);var p=this.rect.y;p>s.WORLD_BOUNDARY?p=s.WORLD_BOUNDARY:p<-s.WORLD_BOUNDARY&&(p=-s.WORLD_BOUNDARY);var g=new u(f,p),m=h.inverseTransformPoint(g);this.setLocation(m.x,m.y)},c.prototype.getLeft=function(){return this.rect.x},c.prototype.getRight=function(){return this.rect.x+this.rect.width},c.prototype.getTop=function(){return this.rect.y},c.prototype.getBottom=function(){return this.rect.y+this.rect.height},c.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},r.exports=c},function(r,n,A){function a(i,o){i==null&&o==null?(this.x=0,this.y=0):(this.x=i,this.y=o)}a.prototype.getX=function(){return this.x},a.prototype.getY=function(){return this.y},a.prototype.setX=function(i){this.x=i},a.prototype.setY=function(i){this.y=i},a.prototype.getDifference=function(i){return new DimensionD(this.x-i.x,this.y-i.y)},a.prototype.getCopy=function(){return new a(this.x,this.y)},a.prototype.translate=function(i){return this.x+=i.width,this.y+=i.height,this},r.exports=a},function(r,n,A){var a=A(2),i=A(10),o=A(0),s=A(6),l=A(3),u=A(1),c=A(13),d=A(12),h=A(11);function f(g,m,B){a.call(this,B),this.estimatedSize=i.MIN_VALUE,this.margin=o.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=g,m!=null&&m instanceof s?this.graphManager=m:m!=null&&m instanceof Layout&&(this.graphManager=m.graphManager)}f.prototype=Object.create(a.prototype);for(var p in a)f[p]=a[p];f.prototype.getNodes=function(){return this.nodes},f.prototype.getEdges=function(){return this.edges},f.prototype.getGraphManager=function(){return this.graphManager},f.prototype.getParent=function(){return this.parent},f.prototype.getLeft=function(){return this.left},f.prototype.getRight=function(){return this.right},f.prototype.getTop=function(){return this.top},f.prototype.getBottom=function(){return this.bottom},f.prototype.isConnected=function(){return this.isConnected},f.prototype.add=function(g,m,B){if(m==null&&B==null){var v=g;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(v)>-1)throw"Node already in graph!";return v.owner=this,this.getNodes().push(v),v}else{var y=g;if(!(this.getNodes().indexOf(m)>-1&&this.getNodes().indexOf(B)>-1))throw"Source or target not in graph!";if(!(m.owner==B.owner&&m.owner==this))throw"Both owners must be this graph!";return m.owner!=B.owner?null:(y.source=m,y.target=B,y.isInterGraph=!1,this.getEdges().push(y),m.edges.push(y),B!=m&&B.edges.push(y),y)}},f.prototype.remove=function(g){var m=g;if(g instanceof l){if(m==null)throw"Node is null!";if(!(m.owner!=null&&m.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";for(var B=m.edges.slice(),v,y=B.length,b=0;b-1&&F>-1))throw"Source and/or target doesn't know this edge!";v.source.edges.splice(C,1),v.target!=v.source&&v.target.edges.splice(F,1);var E=v.source.owner.getEdges().indexOf(v);if(E==-1)throw"Not in owner's edge list!";v.source.owner.getEdges().splice(E,1)}},f.prototype.updateLeftTop=function(){for(var g=i.MAX_VALUE,m=i.MAX_VALUE,B,v,y,b=this.getNodes(),E=b.length,C=0;CB&&(g=B),m>v&&(m=v)}return g==i.MAX_VALUE?null:(b[0].getParent().paddingLeft!=null?y=b[0].getParent().paddingLeft:y=this.margin,this.left=m-y,this.top=g-y,new d(this.left,this.top))},f.prototype.updateBounds=function(g){for(var m=i.MAX_VALUE,B=-i.MAX_VALUE,v=i.MAX_VALUE,y=-i.MAX_VALUE,b,E,C,F,w,x=this.nodes,Q=x.length,S=0;Sb&&(m=b),BC&&(v=C),yb&&(m=b),BC&&(v=C),y=this.nodes.length){var Q=0;B.forEach(function(S){S.owner==g&&Q++}),Q==this.nodes.length&&(this.isConnected=!0)}},r.exports=f},function(r,n,A){var a,i=A(1);function o(s){a=A(5),this.layout=s,this.graphs=[],this.edges=[]}o.prototype.addRoot=function(){var s=this.layout.newGraph(),l=this.layout.newNode(null),u=this.add(s,l);return this.setRootGraph(u),this.rootGraph},o.prototype.add=function(s,l,u,c,d){if(u==null&&c==null&&d==null){if(s==null)throw"Graph is null!";if(l==null)throw"Parent node is null!";if(this.graphs.indexOf(s)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(s),s.parent!=null)throw"Already has a parent!";if(l.child!=null)throw"Already has a child!";return s.parent=l,l.child=s,s}else{d=u,c=l,u=s;var h=c.getOwner(),f=d.getOwner();if(!(h!=null&&h.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(f!=null&&f.getGraphManager()==this))throw"Target not in this graph mgr!";if(h==f)return u.isInterGraph=!1,h.add(u,c,d);if(u.isInterGraph=!0,u.source=c,u.target=d,this.edges.indexOf(u)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(u),!(u.source!=null&&u.target!=null))throw"Edge source and/or target is null!";if(!(u.source.edges.indexOf(u)==-1&&u.target.edges.indexOf(u)==-1))throw"Edge already in source and/or target incidency list!";return u.source.edges.push(u),u.target.edges.push(u),u}},o.prototype.remove=function(s){if(s instanceof a){var l=s;if(l.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(l==this.rootGraph||l.parent!=null&&l.parent.graphManager==this))throw"Invalid parent node!";var u=[];u=u.concat(l.getEdges());for(var c,d=u.length,h=0;h=s.getRight()?l[0]+=Math.min(s.getX()-o.getX(),o.getRight()-s.getRight()):s.getX()<=o.getX()&&s.getRight()>=o.getRight()&&(l[0]+=Math.min(o.getX()-s.getX(),s.getRight()-o.getRight())),o.getY()<=s.getY()&&o.getBottom()>=s.getBottom()?l[1]+=Math.min(s.getY()-o.getY(),o.getBottom()-s.getBottom()):s.getY()<=o.getY()&&s.getBottom()>=o.getBottom()&&(l[1]+=Math.min(o.getY()-s.getY(),s.getBottom()-o.getBottom()));var d=Math.abs((s.getCenterY()-o.getCenterY())/(s.getCenterX()-o.getCenterX()));s.getCenterY()===o.getCenterY()&&s.getCenterX()===o.getCenterX()&&(d=1);var h=d*l[0],f=l[1]/d;l[0]h)return l[0]=u,l[1]=p,l[2]=d,l[3]=x,!1;if(cd)return l[0]=f,l[1]=c,l[2]=F,l[3]=h,!1;if(ud?(l[0]=m,l[1]=B,U=!0):(l[0]=g,l[1]=p,U=!0):R===H&&(u>d?(l[0]=f,l[1]=p,U=!0):(l[0]=v,l[1]=B,U=!0)),-M===H?d>u?(l[2]=w,l[3]=x,L=!0):(l[2]=F,l[3]=C,L=!0):M===H&&(d>u?(l[2]=E,l[3]=C,L=!0):(l[2]=Q,l[3]=x,L=!0)),U&&L)return!1;if(u>d?c>h?(k=this.getCardinalDirection(R,H,4),N=this.getCardinalDirection(M,H,2)):(k=this.getCardinalDirection(-R,H,3),N=this.getCardinalDirection(-M,H,1)):c>h?(k=this.getCardinalDirection(-R,H,1),N=this.getCardinalDirection(-M,H,3)):(k=this.getCardinalDirection(R,H,2),N=this.getCardinalDirection(M,H,4)),!U)switch(k){case 1:K=p,P=u+-b/H,l[0]=P,l[1]=K;break;case 2:P=v,K=c+y*H,l[0]=P,l[1]=K;break;case 3:K=B,P=u+b/H,l[0]=P,l[1]=K;break;case 4:P=m,K=c+-y*H,l[0]=P,l[1]=K;break}if(!L)switch(N){case 1:X=C,W=d+-T/H,l[2]=W,l[3]=X;break;case 2:W=Q,X=h+S*H,l[2]=W,l[3]=X;break;case 3:X=x,W=d+T/H,l[2]=W,l[3]=X;break;case 4:W=w,X=h+-S*H,l[2]=W,l[3]=X;break}}return!1},i.getCardinalDirection=function(o,s,l){return o>s?l:1+l%4},i.getIntersection=function(o,s,l,u){if(u==null)return this.getIntersection2(o,s,l);var c=o.x,d=o.y,h=s.x,f=s.y,p=l.x,g=l.y,m=u.x,B=u.y,v=void 0,y=void 0,b=void 0,E=void 0,C=void 0,F=void 0,w=void 0,x=void 0,Q=void 0;return b=f-d,C=c-h,w=h*d-c*f,E=B-g,F=p-m,x=m*g-p*B,Q=b*F-E*C,Q===0?null:(v=(C*x-F*w)/Q,y=(E*w-b*x)/Q,new a(v,y))},i.angleOfVector=function(o,s,l,u){var c=void 0;return o!==l?(c=Math.atan((u-s)/(l-o)),l0?1:i<0?-1:0},a.floor=function(i){return i<0?Math.ceil(i):Math.floor(i)},a.ceil=function(i){return i<0?Math.floor(i):Math.ceil(i)},r.exports=a},function(r,n,A){function a(){}a.MAX_VALUE=2147483647,a.MIN_VALUE=-2147483648,r.exports=a},function(r,n,A){var a=function(){function c(d,h){for(var f=0;f"u"?"undefined":a(o);return o==null||s!="object"&&s!="function"},r.exports=i},function(r,n,A){function a(p){if(Array.isArray(p)){for(var g=0,m=Array(p.length);g0&&g;){for(b.push(C[0]);b.length>0&&g;){var F=b[0];b.splice(0,1),y.add(F);for(var w=F.getEdges(),v=0;v-1&&C.splice(T,1)}y=new Set,E=new Map}}return p},f.prototype.createDummyNodesForBendpoints=function(p){for(var g=[],m=p.source,B=this.graphManager.calcLowestCommonAncestor(p.source,p.target),v=0;v0){for(var B=this.edgeToDummyNodes.get(m),v=0;v=0&&g.splice(x,1);var Q=E.getNeighborsList();Q.forEach(function(U){if(m.indexOf(U)<0){var L=B.get(U),R=L-1;R==1&&F.push(U),B.set(U,R)}})}m=m.concat(F),(g.length==1||g.length==2)&&(v=!0,y=g[0])}return y},f.prototype.setGraphManager=function(p){this.graphManager=p},r.exports=f},function(r,n,A){function a(){}a.seed=1,a.x=0,a.nextDouble=function(){return a.x=Math.sin(a.seed++)*1e4,a.x-Math.floor(a.x)},r.exports=a},function(r,n,A){var a=A(4);function i(o,s){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}i.prototype.getWorldOrgX=function(){return this.lworldOrgX},i.prototype.setWorldOrgX=function(o){this.lworldOrgX=o},i.prototype.getWorldOrgY=function(){return this.lworldOrgY},i.prototype.setWorldOrgY=function(o){this.lworldOrgY=o},i.prototype.getWorldExtX=function(){return this.lworldExtX},i.prototype.setWorldExtX=function(o){this.lworldExtX=o},i.prototype.getWorldExtY=function(){return this.lworldExtY},i.prototype.setWorldExtY=function(o){this.lworldExtY=o},i.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},i.prototype.setDeviceOrgX=function(o){this.ldeviceOrgX=o},i.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},i.prototype.setDeviceOrgY=function(o){this.ldeviceOrgY=o},i.prototype.getDeviceExtX=function(){return this.ldeviceExtX},i.prototype.setDeviceExtX=function(o){this.ldeviceExtX=o},i.prototype.getDeviceExtY=function(){return this.ldeviceExtY},i.prototype.setDeviceExtY=function(o){this.ldeviceExtY=o},i.prototype.transformX=function(o){var s=0,l=this.lworldExtX;return l!=0&&(s=this.ldeviceOrgX+(o-this.lworldOrgX)*this.ldeviceExtX/l),s},i.prototype.transformY=function(o){var s=0,l=this.lworldExtY;return l!=0&&(s=this.ldeviceOrgY+(o-this.lworldOrgY)*this.ldeviceExtY/l),s},i.prototype.inverseTransformX=function(o){var s=0,l=this.ldeviceExtX;return l!=0&&(s=this.lworldOrgX+(o-this.ldeviceOrgX)*this.lworldExtX/l),s},i.prototype.inverseTransformY=function(o){var s=0,l=this.ldeviceExtY;return l!=0&&(s=this.lworldOrgY+(o-this.ldeviceOrgY)*this.lworldExtY/l),s},i.prototype.inverseTransformPoint=function(o){var s=new a(this.inverseTransformX(o.x),this.inverseTransformY(o.y));return s},r.exports=i},function(r,n,A){function a(h){if(Array.isArray(h)){for(var f=0,p=Array(h.length);fo.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*o.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(h-o.ADAPTATION_LOWER_NODE_LIMIT)/(o.ADAPTATION_UPPER_NODE_LIMIT-o.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-o.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=o.MAX_NODE_DISPLACEMENT_INCREMENTAL):(h>o.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(o.COOLING_ADAPTATION_FACTOR,1-(h-o.ADAPTATION_LOWER_NODE_LIMIT)/(o.ADAPTATION_UPPER_NODE_LIMIT-o.ADAPTATION_LOWER_NODE_LIMIT)*(1-o.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=o.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},c.prototype.calcSpringForces=function(){for(var h=this.getAllEdges(),f,p=0;p0&&arguments[0]!==void 0?arguments[0]:!0,f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,p,g,m,B,v=this.getAllNodes(),y;if(this.useFRGridVariant)for(this.totalIterations%o.GRID_CALCULATION_CHECK_PERIOD==1&&h&&this.updateGrid(),y=new Set,p=0;pb||y>b)&&(h.gravitationForceX=-this.gravityConstant*m,h.gravitationForceY=-this.gravityConstant*B)):(b=f.getEstimatedSize()*this.compoundGravityRangeFactor,(v>b||y>b)&&(h.gravitationForceX=-this.gravityConstant*m*this.compoundGravityConstant,h.gravitationForceY=-this.gravityConstant*B*this.compoundGravityConstant))},c.prototype.isConverged=function(){var h,f=!1;return this.totalIterations>this.maxIterations/3&&(f=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),h=this.totalDisplacement=v.length||b>=v[0].length)){for(var E=0;Ec}}]),l}();r.exports=s},function(r,n,A){var a=function(){function s(l,u){for(var c=0;c2&&arguments[2]!==void 0?arguments[2]:1,d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,h=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;i(this,s),this.sequence1=l,this.sequence2=u,this.match_score=c,this.mismatch_penalty=d,this.gap_penalty=h,this.iMax=l.length+1,this.jMax=u.length+1,this.grid=new Array(this.iMax);for(var f=0;f=0;l--){var u=this.listeners[l];u.event===o&&u.callback===s&&this.listeners.splice(l,1)}},i.emit=function(o,s){for(var l=0;lu.coolingFactor*u.maxNodeDisplacement&&(this.displacementX=u.coolingFactor*u.maxNodeDisplacement*o.sign(this.displacementX)),Math.abs(this.displacementY)>u.coolingFactor*u.maxNodeDisplacement&&(this.displacementY=u.coolingFactor*u.maxNodeDisplacement*o.sign(this.displacementY)),this.child==null?this.moveBy(this.displacementX,this.displacementY):this.child.getNodes().length==0?this.moveBy(this.displacementX,this.displacementY):this.propogateDisplacementToChildren(this.displacementX,this.displacementY),u.totalDisplacement+=Math.abs(this.displacementX)+Math.abs(this.displacementY),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0},s.prototype.propogateDisplacementToChildren=function(u,c){for(var d=this.getChild().getNodes(),h,f=0;f0)this.positionNodesRadially(C);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var F=new Set(this.getAllNodes()),w=this.nodesWithGravity.filter(function(x){return F.has(x)});this.graphManager.setAllNodesToApplyGravitation(w),this.positionNodesRandomly()}}return this.initSpringEmbedder(),this.runSpringEmbedder(),!0},b.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished)if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;if(this.totalIterations%d.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged())if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;this.coolingCycle++,this.layoutQuality==0?this.coolingAdjuster=this.coolingCycle:this.layoutQuality==1&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var C=new Set(this.getAllNodes()),F=this.nodesWithGravity.filter(function(Q){return C.has(Q)});this.graphManager.setAllNodesToApplyGravitation(F),this.graphManager.updateBounds(),this.updateGrid(),this.coolingFactor=d.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),this.coolingFactor=d.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var w=!this.isTreeGrowing&&!this.isGrowthFinished,x=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(w,x),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},b.prototype.getPositionsData=function(){for(var C=this.graphManager.getAllNodes(),F={},w=0;w1){var U;for(U=0;Ux&&(x=Math.floor(T.y)),S=Math.floor(T.x+c.DEFAULT_COMPONENT_SEPERATION)}this.transform(new p(h.WORLD_CENTER_X-T.x/2,h.WORLD_CENTER_Y-T.y/2))},b.radialLayout=function(C,F,w){var x=Math.max(this.maxDiagonalInTree(C),c.DEFAULT_RADIAL_SEPARATION);b.branchRadialLayout(F,null,0,359,0,x);var Q=v.calculateBounds(C),S=new y;S.setDeviceOrgX(Q.getMinX()),S.setDeviceOrgY(Q.getMinY()),S.setWorldOrgX(w.x),S.setWorldOrgY(w.y);for(var T=0;T1;){var X=W[0];W.splice(0,1);var Z=H.indexOf(X);Z>=0&&H.splice(Z,1),P--,k--}F!=null?K=(H.indexOf(W[0])+1)%P:K=0;for(var Ae=Math.abs(x-w)/k,ie=K;N!=k;ie=++ie%P){var re=H[ie].getOtherEnd(C);if(re!=F){var z=(w+N*Ae)%360,q=(z+Ae)%360;b.branchRadialLayout(re,C,z,q,Q+S,S),N++}}},b.maxDiagonalInTree=function(C){for(var F=m.MIN_VALUE,w=0;wF&&(F=Q)}return F},b.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},b.prototype.groupZeroDegreeMembers=function(){var C=this,F={};this.memberGroups={},this.idToDummyNode={};for(var w=[],x=this.graphManager.getAllNodes(),Q=0;Q"u"&&(F[U]=[]),F[U]=F[U].concat(S)}Object.keys(F).forEach(function(L){if(F[L].length>1){var R="DummyCompound_"+L;C.memberGroups[R]=F[L];var M=F[L][0].getParent(),H=new l(C.graphManager);H.id=R,H.paddingLeft=M.paddingLeft||0,H.paddingRight=M.paddingRight||0,H.paddingBottom=M.paddingBottom||0,H.paddingTop=M.paddingTop||0,C.idToDummyNode[R]=H;var k=C.getGraphManager().add(C.newGraph(),H),N=M.getChild();N.add(H);for(var P=0;P=0;C--){var F=this.compoundOrder[C],w=F.id,x=F.paddingLeft,Q=F.paddingTop;this.adjustLocations(this.tiledMemberPack[w],F.rect.x,F.rect.y,x,Q)}},b.prototype.repopulateZeroDegreeMembers=function(){var C=this,F=this.tiledZeroDegreePack;Object.keys(F).forEach(function(w){var x=C.idToDummyNode[w],Q=x.paddingLeft,S=x.paddingTop;C.adjustLocations(F[w],x.rect.x,x.rect.y,Q,S)})},b.prototype.getToBeTiled=function(C){var F=C.id;if(this.toBeTiled[F]!=null)return this.toBeTiled[F];var w=C.getChild();if(w==null)return this.toBeTiled[F]=!1,!1;for(var x=w.getNodes(),Q=0;Q0)return this.toBeTiled[F]=!1,!1;if(S.getChild()==null){this.toBeTiled[S.id]=!1;continue}if(!this.getToBeTiled(S))return this.toBeTiled[F]=!1,!1}return this.toBeTiled[F]=!0,!0},b.prototype.getNodeDegree=function(C){C.id;for(var F=C.getEdges(),w=0,x=0;xL&&(L=M.rect.height)}w+=L+C.verticalPadding}},b.prototype.tileCompoundMembers=function(C,F){var w=this;this.tiledMemberPack=[],Object.keys(C).forEach(function(x){var Q=F[x];w.tiledMemberPack[x]=w.tileNodes(C[x],Q.paddingLeft+Q.paddingRight),Q.rect.width=w.tiledMemberPack[x].width,Q.rect.height=w.tiledMemberPack[x].height})},b.prototype.tileNodes=function(C,F){var w=c.TILING_PADDING_VERTICAL,x=c.TILING_PADDING_HORIZONTAL,Q={rows:[],rowWidth:[],rowHeight:[],width:0,height:F,verticalPadding:w,horizontalPadding:x};C.sort(function(U,L){return U.rect.width*U.rect.height>L.rect.width*L.rect.height?-1:U.rect.width*U.rect.height0&&(T+=C.horizontalPadding),C.rowWidth[w]=T,C.width0&&(U+=C.verticalPadding);var L=0;U>C.rowHeight[w]&&(L=C.rowHeight[w],C.rowHeight[w]=U,L=C.rowHeight[w]-L),C.height+=L,C.rows[w].push(F)},b.prototype.getShortestRowIndex=function(C){for(var F=-1,w=Number.MAX_VALUE,x=0;xw&&(F=x,w=C.rowWidth[x]);return F},b.prototype.canAddHorizontal=function(C,F,w){var x=this.getShortestRowIndex(C);if(x<0)return!0;var Q=C.rowWidth[x];if(Q+C.horizontalPadding+F<=C.width)return!0;var S=0;C.rowHeight[x]0&&(S=w+C.verticalPadding-C.rowHeight[x]);var T;C.width-Q>=F+C.horizontalPadding?T=(C.height+S)/(Q+F+C.horizontalPadding):T=(C.height+S)/C.width,S=w+C.verticalPadding;var U;return C.widthS&&F!=w){x.splice(-1,1),C.rows[w].push(Q),C.rowWidth[F]=C.rowWidth[F]-S,C.rowWidth[w]=C.rowWidth[w]+S,C.width=C.rowWidth[instance.getLongestRowIndex(C)];for(var T=Number.MIN_VALUE,U=0;UT&&(T=x[U].height);F>0&&(T+=C.verticalPadding);var L=C.rowHeight[F]+C.rowHeight[w];C.rowHeight[F]=T,C.rowHeight[w]0)for(var N=Q;N<=S;N++)k[0]+=this.grid[N][T-1].length+this.grid[N][T].length-1;if(S0)for(var N=T;N<=U;N++)k[3]+=this.grid[Q-1][N].length+this.grid[Q][N].length-1;for(var P=m.MAX_VALUE,K,W,X=0;X0){var U;U=y.getGraphManager().add(y.newGraph(),w),this.processChildrenList(U,F,y)}}},p.prototype.stop=function(){return this.stopped=!0,this};var m=function(v){v("layout","cose-bilkent",p)};typeof cytoscape<"u"&&m(cytoscape),n.exports=m}])})})(pw);var IP=pw.exports;const LP=jm(IP);var gw={exports:{}};(function(t,e){(function(n,A){t.exports=A()})(uu,function(){return function(r){var n={};function A(a){if(n[a])return n[a].exports;var i=n[a]={i:a,l:!1,exports:{}};return r[a].call(i.exports,i,i.exports,A),i.l=!0,i.exports}return A.m=r,A.c=n,A.i=function(a){return a},A.d=function(a,i,o){A.o(a,i)||Object.defineProperty(a,i,{configurable:!1,enumerable:!0,get:o})},A.n=function(a){var i=a&&a.__esModule?function(){return a.default}:function(){return a};return A.d(i,"a",i),i},A.o=function(a,i){return Object.prototype.hasOwnProperty.call(a,i)},A.p="",A(A.s=7)}([function(r,n,A){var a=A(5),i=a.getBoundingBox;function o(s,l){var u={getBoundingClientRect:function(){return i(s,l)}};return u}r.exports={getRef:o}},function(r,n,A){r.exports=Object.assign!=null?Object.assign.bind(Object):function(a){for(var i=arguments.length,o=Array(i>1?i-1:0),s=1;s1&&(console.warn("Popper.js Extension should only be used on one element."),console.warn("Ignoring all subsequent elements"))}r.exports={popper:u,popperRef:c}},function(r,n,A){var a=A(1),i=A(2),o=i.getPopper,s=A(0),l=s.getRef;function u(h){return o(this,d(this,h))}function c(h){return l(this,d(this,h))}function d(h,f){var p={boundingBox:{top:0,left:0,right:0,bottom:0,w:3,h:3},renderedDimensions:function(){return{w:3,h:3}},renderedPosition:function(){return{x:0,y:0}},popper:{},cy:h};return a({},p,f)}r.exports={popper:u,popperRef:c}},function(r,n,A){function a(i,o){var s=o.renderedPosition,l=o.cy,u=o.renderedDimensions,c=l.container().getBoundingClientRect(),d=u(i),h=s(i);return{top:h.y+c.top,left:h.x+c.left,right:h.x+d.w+c.left,bottom:h.y+d.h+c.top,width:d.w,height:d.h}}r.exports={getBoundingBox:a}},function(r,n,A){function a(i,o){var s=null;if(typeof o=="function")s=o(i);else{if(o instanceof HTMLElement)return o;throw new Error("Can not create popper from 'target' with unknown type")}if(s===null)throw new Error("No 'target' specified to create popper");return s}r.exports={getContent:a}},function(r,n,A){var a=A(4),i=A(3),o=function(l){if(typeof l!="function")throw new Error("Provide 'popperFactory' before registering the module");return function(c){c&&(c("core","popperFactory",l),c("collection","popperFactory",l),c("core","popper",a.popper),c("collection","popper",i.popper),c("core","popperRef",a.popperRef),c("collection","popperRef",i.popperRef))}};r.exports=o}])})})(gw);var DP=gw.exports;const RP=jm(DP);/*! +*/var SB=function(e,r){this.recycle(e,r)};function Di(){return!1}function Ms(){return!0}SB.prototype={instanceString:function(){return"event"},recycle:function(e,r){if(this.isImmediatePropagationStopped=this.isPropagationStopped=this.isDefaultPrevented=Di,e!=null&&e.preventDefault?(this.type=e.type,this.isDefaultPrevented=e.defaultPrevented?Ms:Di):e!=null&&e.type?r=e:this.type=e,r!=null&&(this.originalEvent=r.originalEvent,this.type=r.type!=null?r.type:this.type,this.cy=r.cy,this.target=r.target,this.position=r.position,this.renderedPosition=r.renderedPosition,this.namespace=r.namespace,this.layout=r.layout),this.cy!=null&&this.position!=null&&this.renderedPosition==null){var n=this.position,A=this.cy.zoom(),a=this.cy.pan();this.renderedPosition={x:n.x*A+a.x,y:n.y*A+a.y}}this.timeStamp=e&&e.timeStamp||Date.now()},preventDefault:function(){this.isDefaultPrevented=Ms;var e=this.originalEvent;e&&e.preventDefault&&e.preventDefault()},stopPropagation:function(){this.isPropagationStopped=Ms;var e=this.originalEvent;e&&e.stopPropagation&&e.stopPropagation()},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=Ms,this.stopPropagation()},isDefaultPrevented:Di,isPropagationStopped:Di,isImmediatePropagationStopped:Di};var UB=/^([^.]+)(\.(?:[^.]+))?$/,HH=".*",TB={qualifierCompare:function(e,r){return e===r},eventMatches:function(){return!0},addEventFields:function(){},callbackContext:function(e){return e},beforeEmit:function(){},afterEmit:function(){},bubble:function(){return!1},parent:function(){return null},context:null},av=Object.keys(TB),kH={};function pc(){for(var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:kH,e=arguments.length>1?arguments[1]:void 0,r=0;r=0;o--)i(o);return this};dA.removeAllListeners=function(){return this.removeListener("*")};dA.emit=dA.trigger=function(t,e,r){var n=this.listeners,A=n.length;return this.emitting++,lt(e)||(e=[e]),PH(this,function(a,i){r!=null&&(n=[{event:i.event,type:i.type,namespace:i.namespace,callback:r}],A=n.length);for(var o=function(u){var c=n[u];if(c.type===i.type&&(!c.namespace||c.namespace===i.namespace||c.namespace===HH)&&a.eventMatches(a.context,c,i)){var d=[i];e!=null&&gD(d,e),a.beforeEmit(a.context,c,i),c.conf&&c.conf.one&&(a.listeners=a.listeners.filter(function(p){return p!==c}));var h=a.callbackContext(a.context,c,i),f=c.callback.apply(h,d);a.afterEmit(a.context,c,i),f===!1&&(i.stopPropagation(),i.preventDefault())}},s=0;s1&&!i){var o=this.length-1,s=this[o],l=s._private.data.id;this[o]=void 0,this[e]=s,a.set(l,{ele:s,index:e})}return this.length--,this},unmergeOne:function(e){e=e[0];var r=this._private,n=e._private.data.id,A=r.map,a=A.get(n);if(!a)return this;var i=a.index;return this.unmergeAt(i),this},unmerge:function(e){var r=this._private.cy;if(!e)return this;if(e&&Le(e)){var n=e;e=r.mutableElements().filter(n)}for(var A=0;A=0;r--){var n=this[r];e(n)&&this.unmergeAt(r)}return this},map:function(e,r){for(var n=[],A=this,a=0;an&&(n=s,A=o)}return{value:n,ele:A}},min:function(e,r){for(var n=1/0,A,a=this,i=0;i=0&&a"u"?"undefined":Pt(Symbol))!=e&&Pt(Symbol.iterator)!=e;r&&(Xl[Symbol.iterator]=function(){var n=this,A={value:void 0,done:!1},a=0,i=this.length;return T0({next:function(){return a1&&arguments[1]!==void 0?arguments[1]:!0,n=this[0],A=n.cy();if(A.styleEnabled()&&n){this.cleanStyle();var a=n._private.style[e];return a??(r?A.style().getDefaultProperty(e):null)}},numericStyle:function(e){var r=this[0];if(r.cy().styleEnabled()&&r){var n=r.pstyle(e);return n.pfValue!==void 0?n.pfValue:n.value}},numericStyleUnits:function(e){var r=this[0];if(r.cy().styleEnabled()&&r)return r.pstyle(e).units},renderedStyle:function(e){var r=this.cy();if(!r.styleEnabled())return this;var n=this[0];if(n)return r.style().getRenderedStyle(n,e)},style:function(e,r){var n=this.cy();if(!n.styleEnabled())return this;var A=!1,a=n.style();if(_e(e)){var i=e;a.applyBypass(this,i,A),this.emitAndNotify("style")}else if(Le(e))if(r===void 0){var o=this[0];return o?a.getStylePropertyValue(o,e):void 0}else a.applyBypass(this,e,r,A),this.emitAndNotify("style");else if(e===void 0){var s=this[0];return s?a.getRawStyle(s):void 0}return this},removeStyle:function(e){var r=this.cy();if(!r.styleEnabled())return this;var n=!1,A=r.style(),a=this;if(e===void 0)for(var i=0;i0&&e.push(u[0]),e.push(o[0])}return this.spawn(e,!0).filter(t)},"neighborhood"),closedNeighborhood:function(e){return this.neighborhood().add(this).filter(e)},openNeighborhood:function(e){return this.neighborhood(e)}});ar.neighbourhood=ar.neighborhood;ar.closedNeighbourhood=ar.closedNeighborhood;ar.openNeighbourhood=ar.openNeighborhood;Re(ar,{source:Hr(function(e){var r=this[0],n;return r&&(n=r._private.source||r.cy().collection()),n&&e?n.filter(e):n},"source"),target:Hr(function(e){var r=this[0],n;return r&&(n=r._private.target||r.cy().collection()),n&&e?n.filter(e):n},"target"),sources:cv({attr:"source"}),targets:cv({attr:"target"})});function cv(t){return function(r){for(var n=[],A=0;A0);return i},component:function(){var e=this[0];return e.cy().mutableElements().components(e)[0]}});ar.componentsOf=ar.components;var qt=function(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,A=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e===void 0){xt("A collection must have a reference to the core");return}var a=new yn,i=!1;if(!r)r=[];else if(r.length>0&&_e(r[0])&&!es(r[0])){i=!0;for(var o=[],s=new oi,l=0,u=r.length;l0&&arguments[0]!==void 0?arguments[0]:!0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=this,n=r.cy(),A=n._private,a=[],i=[],o,s=0,l=r.length;s0){for(var k=o.length===r.length?r:new qt(n,o),N=0;N0&&arguments[0]!==void 0?arguments[0]:!0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=this,n=[],A={},a=r._private.cy;function i(U){for(var L=U._private.edges,R=0;R0&&(t?Q.emitAndNotify("remove"):e&&Q.emit("remove"));for(var S=0;S0?S=U:Q=U;while(Math.abs(T)>i&&++L=a?w(x,L):R===0?L:B(x,Q,Q+l)}var E=!1;function C(){E=!0,(t!==e||r!==n)&&v()}var F=function(Q){return E||C(),t===e&&r===n?Q:Q===0?0:Q===1?1:g(b(Q),e,n)};F.getControlPoints=function(){return[{x:t,y:e},{x:r,y:n}]};var y="generateBezier("+[t,e,r,n]+")";return F.toString=function(){return y},F}/*! Runge-Kutta spring physics function generator. Adapted from Framer.js, copyright Koen Bok. MIT License: http://en.wikipedia.org/wiki/MIT_License */var jH=function(){function t(n){return-n.tension*n.x-n.friction*n.v}function e(n,A,a){var i={x:n.x+a.dx*A,v:n.v+a.dv*A,tension:n.tension,friction:n.friction};return{dx:i.v,dv:t(i)}}function r(n,A){var a={dx:n.v,dv:t(n)},i=e(n,A*.5,a),o=e(n,A*.5,i),s=e(n,A,o),l=1/6*(a.dx+2*(i.dx+o.dx)+s.dx),u=1/6*(a.dv+2*(i.dv+o.dv)+s.dv);return n.x=n.x+l*A,n.v=n.v+u*A,n}return function n(A,a,i){var o={x:-1,v:0,tension:null,friction:null},s=[0],l=0,u=1/1e4,c=16/1e3,d,h,f;for(A=parseFloat(A)||500,a=parseFloat(a)||20,i=i||null,o.tension=A,o.friction=a,d=i!==null,d?(l=n(A,a),h=l/i*c):h=c;f=r(f||o,h),s.push(1+f.x),l+=16,Math.abs(f.x)>u&&Math.abs(f.v)>u;);return d?function(p){return s[p*(s.length-1)|0]}:l}}(),ct=function(e,r,n,A){var a=YH(e,r,n,A);return function(i,o,s){return i+(o-i)*a(s)}},wl={linear:function(e,r,n){return e+(r-e)*n},ease:ct(.25,.1,.25,1),"ease-in":ct(.42,0,1,1),"ease-out":ct(0,0,.58,1),"ease-in-out":ct(.42,0,.58,1),"ease-in-sine":ct(.47,0,.745,.715),"ease-out-sine":ct(.39,.575,.565,1),"ease-in-out-sine":ct(.445,.05,.55,.95),"ease-in-quad":ct(.55,.085,.68,.53),"ease-out-quad":ct(.25,.46,.45,.94),"ease-in-out-quad":ct(.455,.03,.515,.955),"ease-in-cubic":ct(.55,.055,.675,.19),"ease-out-cubic":ct(.215,.61,.355,1),"ease-in-out-cubic":ct(.645,.045,.355,1),"ease-in-quart":ct(.895,.03,.685,.22),"ease-out-quart":ct(.165,.84,.44,1),"ease-in-out-quart":ct(.77,0,.175,1),"ease-in-quint":ct(.755,.05,.855,.06),"ease-out-quint":ct(.23,1,.32,1),"ease-in-out-quint":ct(.86,0,.07,1),"ease-in-expo":ct(.95,.05,.795,.035),"ease-out-expo":ct(.19,1,.22,1),"ease-in-out-expo":ct(1,0,0,1),"ease-in-circ":ct(.6,.04,.98,.335),"ease-out-circ":ct(.075,.82,.165,1),"ease-in-out-circ":ct(.785,.135,.15,.86),spring:function(e,r,n){if(n===0)return wl.linear;var A=jH(e,r,n);return function(a,i,o){return a+(i-a)*A(o)}},"cubic-bezier":ct};function hv(t,e,r,n,A){if(n===1||e===r)return r;var a=A(e,r,n);return t==null||((t.roundValue||t.color)&&(a=Math.round(a)),t.min!==void 0&&(a=Math.max(a,t.min)),t.max!==void 0&&(a=Math.min(a,t.max))),a}function pv(t,e){return t.pfValue!=null||t.value!=null?t.pfValue!=null&&(e==null||e.type.units!=="%")?t.pfValue:t.value:t}function ua(t,e,r,n,A){var a=A!=null?A.type:null;r<0?r=0:r>1&&(r=1);var i=pv(t,A),o=pv(e,A);if(be(i)&&be(o))return hv(a,i,o,r,n);if(lt(i)&<(o)){for(var s=[],l=0;l0?(h==="spring"&&f.push(i.duration),i.easingImpl=wl[h].apply(null,f)):i.easingImpl=wl[h]}var p=i.easingImpl,g;if(i.duration===0?g=1:g=(r-s)/i.duration,i.applying&&(g=i.progress),g<0?g=0:g>1&&(g=1),i.delay==null){var m=i.startPosition,w=i.position;if(w&&A&&!t.locked()){var v={};Ri(m.x,w.x)&&(v.x=ua(m.x,w.x,g,p)),Ri(m.y,w.y)&&(v.y=ua(m.y,w.y,g,p)),t.position(v)}var B=i.startPan,b=i.pan,E=a.pan,C=b!=null&&n;C&&(Ri(B.x,b.x)&&(E.x=ua(B.x,b.x,g,p)),Ri(B.y,b.y)&&(E.y=ua(B.y,b.y,g,p)),t.emit("pan"));var F=i.startZoom,y=i.zoom,x=y!=null&&n;x&&(Ri(F,y)&&(a.zoom=Io(a.minZoom,ua(F,y,g,p),a.maxZoom)),t.emit("zoom")),(C||x)&&t.emit("viewport");var Q=i.style;if(Q&&Q.length>0&&A){for(var S=0;S=0;C--){var F=E[C];F()}E.splice(0,E.length)},w=h.length-1;w>=0;w--){var v=h[w],B=v._private;if(B.stopped){h.splice(w,1),B.hooked=!1,B.playing=!1,B.started=!1,m(B.frames);continue}!B.playing&&!B.applying||(B.playing&&B.applying&&(B.applying=!1),B.started||JH(u,v,t),qH(u,v,t,c),B.applying&&(B.applying=!1),m(B.frames),B.step!=null&&B.step(t),v.completed()&&(h.splice(w,1),B.hooked=!1,B.playing=!1,B.started=!1,m(B.completes)),p=!0)}return!c&&h.length===0&&f.length===0&&n.push(u),p}for(var a=!1,i=0;i0?e.notify("draw",r):e.notify("draw")),r.unmerge(n),e.emit("step")}var ZH={animate:et.animate(),animation:et.animation(),animated:et.animated(),clearQueue:et.clearQueue(),delay:et.delay(),delayAnimation:et.delayAnimation(),stop:et.stop(),addToAnimationPool:function(e){var r=this;r.styleEnabled()&&r._private.aniEles.merge(e)},stopAnimationLoop:function(){this._private.animationsRunning=!1},startAnimationLoop:function(){var e=this;if(e._private.animationsRunning=!0,!e.styleEnabled())return;function r(){e._private.animationsRunning&&Vl(function(a){gv(a,e),r()})}var n=e.renderer();n&&n.beforeRender?n.beforeRender(function(a,i){gv(i,e)},n.beforeRenderPriorities.animations):r()}},ek={qualifierCompare:function(e,r){return e==null||r==null?e==null&&r==null:e.sameText(r)},eventMatches:function(e,r,n){var A=r.qualifier;return A!=null?e!==n.target&&es(n.target)&&A.matches(n.target):!0},addEventFields:function(e,r){r.cy=e,r.target=e},callbackContext:function(e,r,n){return r.qualifier!=null?n.target:e}},Hs=function(e){return Le(e)?new cA(e):e},OB={createEmitter:function(){var e=this._private;return e.emitter||(e.emitter=new pc(ek,this)),this},emitter:function(){return this._private.emitter},on:function(e,r,n){return this.emitter().on(e,Hs(r),n),this},removeListener:function(e,r,n){return this.emitter().removeListener(e,Hs(r),n),this},removeAllListeners:function(){return this.emitter().removeAllListeners(),this},one:function(e,r,n){return this.emitter().one(e,Hs(r),n),this},once:function(e,r,n){return this.emitter().one(e,Hs(r),n),this},emit:function(e,r){return this.emitter().emit(e,r),this},emitAndNotify:function(e,r){return this.emit(e),this.notify(e,r),this}};et.eventAliasesOn(OB);var id={png:function(e){var r=this._private.renderer;return e=e||{},r.png(e)},jpg:function(e){var r=this._private.renderer;return e=e||{},e.bg=e.bg||"#fff",r.jpg(e)}};id.jpeg=id.jpg;var Cl={layout:function(e){var r=this;if(e==null){xt("Layout options must be specified to make a layout");return}if(e.name==null){xt("A `name` must be specified to make a layout");return}var n=e.name,A=r.extension("layout",n);if(A==null){xt("No such layout `"+n+"` found. Did you forget to import it and `cytoscape.use()` it?");return}var a;Le(e.eles)?a=r.$(e.eles):a=e.eles!=null?e.eles:r.$();var i=new A(Re({},e,{cy:r,eles:a}));return i}};Cl.createLayout=Cl.makeLayout=Cl.layout;var tk={notify:function(e,r){var n=this._private;if(this.batching()){n.batchNotifications=n.batchNotifications||{};var A=n.batchNotifications[e]=n.batchNotifications[e]||this.collection();r!=null&&A.merge(r);return}if(n.notificationsEnabled){var a=this.renderer();this.destroyed()||!a||a.notify(e,r)}},notifications:function(e){var r=this._private;return e===void 0?r.notificationsEnabled:(r.notificationsEnabled=!!e,this)},noNotifications:function(e){this.notifications(!1),e(),this.notifications(!0)},batching:function(){return this._private.batchCount>0},startBatch:function(){var e=this._private;return e.batchCount==null&&(e.batchCount=0),e.batchCount===0&&(e.batchStyleEles=this.collection(),e.batchNotifications={}),e.batchCount++,this},endBatch:function(){var e=this._private;if(e.batchCount===0)return this;if(e.batchCount--,e.batchCount===0){e.batchStyleEles.updateStyle();var r=this.renderer();Object.keys(e.batchNotifications).forEach(function(n){var A=e.batchNotifications[n];A.empty()?r.notify(n):r.notify(n,A)})}return this},batch:function(e){return this.startBatch(),e(),this.endBatch(),this},batchData:function(e){var r=this;return this.batch(function(){for(var n=Object.keys(e),A=0;A0;)r.removeChild(r.childNodes[0]);e._private.renderer=null,e.mutableElements().forEach(function(n){var A=n._private;A.rscratch={},A.rstyle={},A.animation.current=[],A.animation.queue=[]})},onRender:function(e){return this.on("render",e)},offRender:function(e){return this.off("render",e)}};od.invalidateDimensions=od.resize;var bl={collection:function(e,r){return Le(e)?this.$(e):Er(e)?e.collection():lt(e)?(r||(r={}),new qt(this,e,r.unique,r.removed)):new qt(this)},nodes:function(e){var r=this.$(function(n){return n.isNode()});return e?r.filter(e):r},edges:function(e){var r=this.$(function(n){return n.isEdge()});return e?r.filter(e):r},$:function(e){var r=this._private.elements;return e?r.filter(e):r.spawnSelf()},mutableElements:function(){return this._private.elements}};bl.elements=bl.filter=bl.$;var or={},so="t",nk="f";or.apply=function(t){for(var e=this,r=e._private,n=r.cy,A=n.collection(),a=0;a0;if(d||c&&h){var f=void 0;d&&h||d?f=l.properties:h&&(f=l.mappedProperties);for(var p=0;p1&&(B=1),o.color){var E=n.valueMin[0],C=n.valueMax[0],F=n.valueMin[1],y=n.valueMax[1],x=n.valueMin[2],Q=n.valueMax[2],S=n.valueMin[3]==null?1:n.valueMin[3],T=n.valueMax[3]==null?1:n.valueMax[3],U=[Math.round(E+(C-E)*B),Math.round(F+(y-F)*B),Math.round(x+(Q-x)*B),Math.round(S+(T-S)*B)];a={bypass:n.bypass,name:n.name,value:U,strValue:"rgb("+U[0]+", "+U[1]+", "+U[2]+")"}}else if(o.number){var L=n.valueMin+(n.valueMax-n.valueMin)*B;a=this.parse(n.name,L,n.bypass,d)}else return!1;if(!a)return p(),!1;a.mapping=n,n=a;break}case i.data:{for(var R=n.field.split("."),M=c.data,H=0;H0&&a>0){for(var o={},s=!1,l=0;l0?t.delayAnimation(i).play().promise().then(v):v()}).then(function(){return t.animation({style:o,duration:a,easing:t.pstyle("transition-timing-function").value,queue:!1}).play().promise()}).then(function(){r.removeBypasses(t,A),t.emitAndNotify("style"),n.transitioning=!1})}else n.transitioning&&(this.removeBypasses(t,A),t.emitAndNotify("style"),n.transitioning=!1)};or.checkTrigger=function(t,e,r,n,A,a){var i=this.properties[e],o=A(i);o!=null&&o(r,n)&&a(i)};or.checkZOrderTrigger=function(t,e,r,n){var A=this;this.checkTrigger(t,e,r,n,function(a){return a.triggersZOrder},function(){A._private.cy.notify("zorder",t)})};or.checkBoundsTrigger=function(t,e,r,n){this.checkTrigger(t,e,r,n,function(A){return A.triggersBounds},function(A){t.dirtyCompoundBoundsCache(),t.dirtyBoundingBoxCache(),A.triggersBoundsOfParallelBeziers&&e==="curve-style"&&(r==="bezier"||n==="bezier")&&t.parallelEdges().forEach(function(a){a.isBundledBezier()&&a.dirtyBoundingBoxCache()}),A.triggersBoundsOfConnectedEdges&&e==="display"&&(r==="none"||n==="none")&&t.connectedEdges().forEach(function(a){a.dirtyBoundingBoxCache()})})};or.checkTriggers=function(t,e,r,n){t.dirtyStyleCache(),this.checkZOrderTrigger(t,e,r,n),this.checkBoundsTrigger(t,e,r,n)};var As={};As.applyBypass=function(t,e,r,n){var A=this,a=[],i=!0;if(e==="*"||e==="**"){if(r!==void 0)for(var o=0;oA.length?n=n.substr(A.length):n=""}function s(){a.length>i.length?a=a.substr(i.length):a=""}for(;;){var l=n.match(/^\s*$/);if(l)break;var u=n.match(/^\s*((?:.|\s)+?)\s*\{((?:.|\s)+?)\}/);if(!u){tt("Halting stylesheet parsing: String stylesheet contains more to parse but no selector and block found in: "+n);break}A=u[0];var c=u[1];if(c!=="core"){var d=new cA(c);if(d.invalid){tt("Skipping parsing of block: Invalid selector found in string stylesheet: "+c),o();continue}}var h=u[2],f=!1;a=h;for(var p=[];;){var g=a.match(/^\s*$/);if(g)break;var m=a.match(/^\s*(.+?)\s*:\s*(.+?)(?:\s*;|\s*$)/);if(!m){tt("Skipping parsing of block: Invalid formatting of style property and value definitions found in:"+h),f=!0;break}i=m[0];var w=m[1],v=m[2],B=e.properties[w];if(!B){tt("Skipping property: Invalid property name in: "+i),s();continue}var b=r.parse(w,v);if(!b){tt("Skipping property: Invalid property definition in: "+i),s();continue}p.push({name:w,val:v}),s()}if(f){o();break}r.selector(c);for(var E=0;E=7&&e[0]==="d"&&(u=new RegExp(o.data.regex).exec(e))){if(r)return!1;var d=o.data;return{name:t,value:u,strValue:""+e,mapped:d,field:u[1],bypass:r}}else if(e.length>=10&&e[0]==="m"&&(c=new RegExp(o.mapData.regex).exec(e))){if(r||l.multiple)return!1;var h=o.mapData;if(!(l.color||l.number))return!1;var f=this.parse(t,c[4]);if(!f||f.mapped)return!1;var p=this.parse(t,c[5]);if(!p||p.mapped)return!1;if(f.pfValue===p.pfValue||f.strValue===p.strValue)return tt("`"+t+": "+e+"` is not a valid mapper because the output range is zero; converting to `"+t+": "+f.strValue+"`"),this.parse(t,f.strValue);if(l.color){var g=f.value,m=p.value,w=g[0]===m[0]&&g[1]===m[1]&&g[2]===m[2]&&(g[3]===m[3]||(g[3]==null||g[3]===1)&&(m[3]==null||m[3]===1));if(w)return!1}return{name:t,value:c,strValue:""+e,mapped:h,field:c[1],fieldMin:parseFloat(c[2]),fieldMax:parseFloat(c[3]),valueMin:f.value,valueMax:p.value,bypass:r}}}if(l.multiple&&n!=="multiple"){var v;if(s?v=e.split(/\s+/):lt(e)?v=e:v=[e],l.evenMultiple&&v.length%2!==0)return null;for(var B=[],b=[],E=[],C="",F=!1,y=0;y0?" ":"")+x.strValue}return l.validate&&!l.validate(B,b)?null:l.singleEnum&&F?B.length===1&&Le(B[0])?{name:t,value:B[0],strValue:B[0],bypass:r}:null:{name:t,value:B,pfValue:E,strValue:C,bypass:r,units:b}}var Q=function(){for(var z=0;zl.max||l.strictMax&&e===l.max))return null;var R={name:t,value:e,strValue:""+e+(S||""),units:S,bypass:r};return l.unitless||S!=="px"&&S!=="em"?R.pfValue=e:R.pfValue=S==="px"||!S?e:this.getEmSizeInPixels()*e,(S==="ms"||S==="s")&&(R.pfValue=S==="ms"?e:1e3*e),(S==="deg"||S==="rad")&&(R.pfValue=S==="rad"?e:kD(e)),S==="%"&&(R.pfValue=e/100),R}else if(l.propList){var M=[],H=""+e;if(H!=="none"){for(var k=H.split(/\s*,\s*|\s+/),N=0;N0&&o>0&&!isNaN(n.w)&&!isNaN(n.h)&&n.w>0&&n.h>0){s=Math.min((i-2*r)/n.w,(o-2*r)/n.h),s=s>this._private.maxZoom?this._private.maxZoom:s,s=s=n.minZoom&&(n.maxZoom=r),this},minZoom:function(e){return e===void 0?this._private.minZoom:this.zoomRange({min:e})},maxZoom:function(e){return e===void 0?this._private.maxZoom:this.zoomRange({max:e})},getZoomedViewport:function(e){var r=this._private,n=r.pan,A=r.zoom,a,i,o=!1;if(r.zoomingEnabled||(o=!0),be(e)?i=e:_e(e)&&(i=e.level,e.position!=null?a=lc(e.position,A,n):e.renderedPosition!=null&&(a=e.renderedPosition),a!=null&&!r.panningEnabled&&(o=!0)),i=i>r.maxZoom?r.maxZoom:i,i=ir.maxZoom||!r.zoomingEnabled?i=!0:(r.zoom=s,a.push("zoom"))}if(A&&(!i||!e.cancelOnFailedZoom)&&r.panningEnabled){var l=e.pan;be(l.x)&&(r.pan.x=l.x,o=!1),be(l.y)&&(r.pan.y=l.y,o=!1),o||a.push("pan")}return a.length>0&&(a.push("viewport"),this.emit(a.join(" ")),this.notify("viewport")),this},center:function(e){var r=this.getCenterPan(e);return r&&(this._private.pan=r,this.emit("pan viewport"),this.notify("viewport")),this},getCenterPan:function(e,r){if(this._private.panningEnabled){if(Le(e)){var n=e;e=this.mutableElements().filter(n)}else Er(e)||(e=this.mutableElements());if(e.length!==0){var A=e.boundingBox(),a=this.width(),i=this.height();r=r===void 0?this._private.zoom:r;var o={x:(a-r*(A.x1+A.x2))/2,y:(i-r*(A.y1+A.y2))/2};return o}}},reset:function(){return!this._private.panningEnabled||!this._private.zoomingEnabled?this:(this.viewport({pan:{x:0,y:0},zoom:1}),this)},invalidateSize:function(){this._private.sizeCache=null},size:function(){var e=this._private,r=e.container,n=this;return e.sizeCache=e.sizeCache||(r?function(){var A=n.window().getComputedStyle(r),a=function(o){return parseFloat(A.getPropertyValue(o))};return{width:r.clientWidth-a("padding-left")-a("padding-right"),height:r.clientHeight-a("padding-top")-a("padding-bottom")}}():{width:1,height:1})},width:function(){return this.size().width},height:function(){return this.size().height},extent:function(){var e=this._private.pan,r=this._private.zoom,n=this.renderedExtent(),A={x1:(n.x1-e.x)/r,x2:(n.x2-e.x)/r,y1:(n.y1-e.y)/r,y2:(n.y2-e.y)/r};return A.w=A.x2-A.x1,A.h=A.y2-A.y1,A},renderedExtent:function(){var e=this.width(),r=this.height();return{x1:0,y1:0,x2:e,y2:r,w:e,h:r}},multiClickDebounceTime:function(e){if(e)this._private.multiClickDebounceTime=e;else return this._private.multiClickDebounceTime;return this}};_A.centre=_A.center;_A.autolockNodes=_A.autolock;_A.autoungrabifyNodes=_A.autoungrabify;var Oo={data:et.data({field:"data",bindingEvent:"data",allowBinding:!0,allowSetting:!0,settingEvent:"data",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeData:et.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),scratch:et.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:et.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0})};Oo.attr=Oo.data;Oo.removeAttr=Oo.removeData;var Ho=function(e){var r=this;e=Re({},e);var n=e.container;n&&!Gl(n)&&Gl(n[0])&&(n=n[0]);var A=n?n._cyreg:null;A=A||{},A&&A.cy&&(A.cy.destroy(),A={});var a=A.readies=A.readies||[];n&&(n._cyreg=A),A.cy=r;var i=Ot!==void 0&&n!==void 0&&!e.headless,o=e;o.layout=Re({name:i?"grid":"null"},o.layout),o.renderer=Re({name:i?"canvas":"null"},o.renderer);var s=function(f,p,g){return p!==void 0?p:g!==void 0?g:f},l=this._private={container:n,ready:!1,options:o,elements:new qt(this),listeners:[],aniEles:new qt(this),data:o.data||{},scratch:{},layout:null,renderer:null,destroyed:!1,notificationsEnabled:!0,minZoom:1e-50,maxZoom:1e50,zoomingEnabled:s(!0,o.zoomingEnabled),userZoomingEnabled:s(!0,o.userZoomingEnabled),panningEnabled:s(!0,o.panningEnabled),userPanningEnabled:s(!0,o.userPanningEnabled),boxSelectionEnabled:s(!0,o.boxSelectionEnabled),autolock:s(!1,o.autolock,o.autolockNodes),autoungrabify:s(!1,o.autoungrabify,o.autoungrabifyNodes),autounselectify:s(!1,o.autounselectify),styleEnabled:o.styleEnabled===void 0?i:o.styleEnabled,zoom:be(o.zoom)?o.zoom:1,pan:{x:_e(o.pan)&&be(o.pan.x)?o.pan.x:0,y:_e(o.pan)&&be(o.pan.y)?o.pan.y:0},animation:{current:[],queue:[]},hasCompoundNodes:!1,multiClickDebounceTime:s(250,o.multiClickDebounceTime)};this.createEmitter(),this.selectionType(o.selectionType),this.zoomRange({min:o.minZoom,max:o.maxZoom});var u=function(f,p){var g=f.some(s2);if(g)return si.all(f).then(p);p(f)};l.styleEnabled&&r.setStyle([]);var c=Re({},o,o.renderer);r.initRenderer(c);var d=function(f,p,g){r.notifications(!1);var m=r.mutableElements();m.length>0&&m.remove(),f!=null&&(_e(f)||lt(f))&&r.add(f),r.one("layoutready",function(v){r.notifications(!0),r.emit(v),r.one("load",p),r.emitAndNotify("load")}).one("layoutstop",function(){r.one("done",g),r.emit("done")});var w=Re({},r._private.options.layout);w.eles=r.elements(),r.layout(w).run()};u([o.style,o.elements],function(h){var f=h[0],p=h[1];l.styleEnabled&&r.style().append(f),d(p,function(){r.startAnimationLoop(),l.ready=!0,wt(o.ready)&&r.on("ready",o.ready);for(var g=0;g0,s=mr(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:r.width(),h:r.height()}),l;if(Er(e.roots))l=e.roots;else if(lt(e.roots)){for(var u=[],c=0;c0;){var L=U(),R=x(L,S);if(R)L.outgoers().filter(function(ae){return ae.isNode()&&n.has(ae)}).forEach(T);else if(R===null){tt("Detected double maximal shift for node `"+L.id()+"`. Bailing maximal adjustment due to cycle. Use `options.maximal: true` only on DAGs.");break}}}y();var M=0;if(e.avoidOverlap)for(var H=0;H0&&m[0].length<=3?we/2:0),D=2*Math.PI/m[ge].length*he;return ge===0&&m[0].length===1&&($=1),{x:ee.x+$*Math.cos(D),y:ee.y+$*Math.sin(D)}}else{var _={x:ee.x+(he+1-(ye+1)/2)*Se,y:(ge+1)*Ce};return _}};return n.nodes().layoutPositions(this,e,te),this};var sk={fit:!0,padding:30,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,spacingFactor:void 0,radius:void 0,startAngle:3/2*Math.PI,sweep:void 0,clockwise:!0,sort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,r){return!0},ready:void 0,stop:void 0,transform:function(e,r){return r}};function kB(t){this.options=Re({},sk,t)}kB.prototype.run=function(){var t=this.options,e=t,r=t.cy,n=e.eles,A=e.counterclockwise!==void 0?!e.counterclockwise:e.clockwise,a=n.nodes().not(":parent");e.sort&&(a=a.sort(e.sort));for(var i=mr(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:r.width(),h:r.height()}),o={x:i.x1+i.w/2,y:i.y1+i.h/2},s=e.sweep===void 0?2*Math.PI-2*Math.PI/a.length:e.sweep,l=s/Math.max(1,a.length-1),u,c=0,d=0;d1&&e.avoidOverlap){c*=1.75;var m=Math.cos(l)-Math.cos(0),w=Math.sin(l)-Math.sin(0),v=Math.sqrt(c*c/(m*m+w*w));u=Math.max(v,u)}var B=function(E,C){var F=e.startAngle+C*l*(A?1:-1),y=u*Math.cos(F),x=u*Math.sin(F),Q={x:o.x+y,y:o.y+x};return Q};return n.nodes().layoutPositions(this,e,B),this};var lk={fit:!0,padding:30,startAngle:3/2*Math.PI,sweep:void 0,clockwise:!0,equidistant:!1,minNodeSpacing:10,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,height:void 0,width:void 0,spacingFactor:void 0,concentric:function(e){return e.degree()},levelWidth:function(e){return e.maxDegree()/4},animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,r){return!0},ready:void 0,stop:void 0,transform:function(e,r){return r}};function PB(t){this.options=Re({},lk,t)}PB.prototype.run=function(){for(var t=this.options,e=t,r=e.counterclockwise!==void 0?!e.counterclockwise:e.clockwise,n=t.cy,A=e.eles,a=A.nodes().not(":parent"),i=mr(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:n.width(),h:n.height()}),o={x:i.x1+i.w/2,y:i.y1+i.h/2},s=[],l=0,u=0;u0){var b=Math.abs(w[0].value-B.value);b>=g&&(w=[],m.push(w))}w.push(B)}var E=l+e.minNodeSpacing;if(!e.avoidOverlap){var C=m.length>0&&m[0].length>1,F=Math.min(i.w,i.h)/2-E,y=F/(m.length+C?1:0);E=Math.min(E,y)}for(var x=0,Q=0;Q1&&e.avoidOverlap){var L=Math.cos(U)-Math.cos(0),R=Math.sin(U)-Math.sin(0),M=Math.sqrt(E*E/(L*L+R*R));x=Math.max(M,x)}S.r=x,x+=E}if(e.equidistant){for(var H=0,k=0,N=0;N=t.numIter||(vk(n,t),n.temperature=n.temperature*t.coolingFactor,n.temperature=t.animationThreshold&&a(),Vl(c)}};u()}else{for(;l;)l=i(s),s++;yv(n,t),o()}return this};Bc.prototype.stop=function(){return this.stopped=!0,this.thread&&this.thread.stop(),this.emit("layoutstop"),this};Bc.prototype.destroy=function(){return this.thread&&this.thread.stop(),this};var ck=function(e,r,n){for(var A=n.eles.edges(),a=n.eles.nodes(),i=mr(n.boundingBox?n.boundingBox:{x1:0,y1:0,w:e.width(),h:e.height()}),o={isCompound:e.hasCompoundNodes(),layoutNodes:[],idToIndex:{},nodeSize:a.size(),graphSet:[],indexToGraph:[],layoutEdges:[],edgeSize:A.size(),temperature:n.initialTemp,clientWidth:i.w,clientHeight:i.h,boundingBox:i},s=n.eles.components(),l={},u=0;u0){o.graphSet.push(F);for(var u=0;uA.count?0:A.graph},dk=function t(e,r,n,A){var a=A.graphSet[n];if(-10)var c=A.nodeOverlap*u,d=Math.sqrt(o*o+s*s),h=c*o/d,f=c*s/d;else var p=jl(e,o,s),g=jl(r,-1*o,-1*s),m=g.x-p.x,w=g.y-p.y,v=m*m+w*w,d=Math.sqrt(v),c=(e.nodeRepulsion+r.nodeRepulsion)/v,h=c*m/d,f=c*w/d;e.isLocked||(e.offsetX-=h,e.offsetY-=f),r.isLocked||(r.offsetX+=h,r.offsetY+=f)}},Bk=function(e,r,n,A){if(n>0)var a=e.maxX-r.minX;else var a=r.maxX-e.minX;if(A>0)var i=e.maxY-r.minY;else var i=r.maxY-e.minY;return a>=0&&i>=0?Math.sqrt(a*a+i*i):0},jl=function(e,r,n){var A=e.positionX,a=e.positionY,i=e.height||1,o=e.width||1,s=n/r,l=i/o,u={};return r===0&&0n?(u.x=A,u.y=a+i/2,u):0r&&-1*l<=s&&s<=l?(u.x=A-o/2,u.y=a-o*n/2/r,u):0=l)?(u.x=A+i*r/2/n,u.y=a+i/2,u):(0>n&&(s<=-1*l||s>=l)&&(u.x=A-i*r/2/n,u.y=a-i/2),u)},wk=function(e,r){for(var n=0;nn){var g=r.gravity*h/p,m=r.gravity*f/p;d.offsetX+=g,d.offsetY+=m}}}}},bk=function(e,r){var n=[],A=0,a=-1;for(n.push.apply(n,e.graphSet[0]),a+=e.graphSet[0].length;A<=a;){var i=n[A++],o=e.idToIndex[i],s=e.layoutNodes[o],l=s.children;if(0n)var a={x:n*e/A,y:n*r/A};else var a={x:e,y:r};return a},Fk=function t(e,r){var n=e.parentId;if(n!=null){var A=r.layoutNodes[r.idToIndex[n]],a=!1;if((A.maxX==null||e.maxX+A.padRight>A.maxX)&&(A.maxX=e.maxX+A.padRight,a=!0),(A.minX==null||e.minX-A.padLeftA.maxY)&&(A.maxY=e.maxY+A.padBottom,a=!0),(A.minY==null||e.minY-A.padTopm&&(f+=g+r.componentSpacing,h=0,p=0,g=0)}}},Qk={fit:!0,padding:30,boundingBox:void 0,avoidOverlap:!0,avoidOverlapPadding:10,nodeDimensionsIncludeLabels:!1,spacingFactor:void 0,condense:!1,rows:void 0,cols:void 0,position:function(e){},sort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,r){return!0},ready:void 0,stop:void 0,transform:function(e,r){return r}};function KB(t){this.options=Re({},Qk,t)}KB.prototype.run=function(){var t=this.options,e=t,r=t.cy,n=e.eles,A=n.nodes().not(":parent");e.sort&&(A=A.sort(e.sort));var a=mr(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:r.width(),h:r.height()});if(a.h===0||a.w===0)n.nodes().layoutPositions(this,e,function(W){return{x:a.x1,y:a.y1}});else{var i=A.size(),o=Math.sqrt(i*a.h/a.w),s=Math.round(o),l=Math.round(a.w/a.h*o),u=function(X){if(X==null)return Math.min(s,l);var Z=Math.min(s,l);Z==s?s=X:l=X},c=function(X){if(X==null)return Math.max(s,l);var Z=Math.max(s,l);Z==s?s=X:l=X},d=e.rows,h=e.cols!=null?e.cols:e.columns;if(d!=null&&h!=null)s=d,l=h;else if(d!=null&&h==null)s=d,l=Math.ceil(i/s);else if(d==null&&h!=null)l=h,s=Math.ceil(i/l);else if(l*s>i){var f=u(),p=c();(f-1)*p>=i?u(f-1):(p-1)*f>=i&&c(p-1)}else for(;l*s=i?c(m+1):u(g+1)}var w=a.w/l,v=a.h/s;if(e.condense&&(w=0,v=0),e.avoidOverlap)for(var B=0;B=l&&(L=0,U++)},M={},H=0;H(L=qD(t,e,R[M],R[M+1],R[M+2],R[M+3])))return g(C,L),!0}else if(y.edgeType==="bezier"||y.edgeType==="multibezier"||y.edgeType==="self"||y.edgeType==="compound"){for(var R=y.allpts,M=0;M+5(L=jD(t,e,R[M],R[M+1],R[M+2],R[M+3],R[M+4],R[M+5])))return g(C,L),!0}for(var H=H||F.source,k=k||F.target,N=A.getArrowWidth(x,Q),P=[{name:"source",x:y.arrowStartX,y:y.arrowStartY,angle:y.srcArrowAngle},{name:"target",x:y.arrowEndX,y:y.arrowEndY,angle:y.tgtArrowAngle},{name:"mid-source",x:y.midX,y:y.midY,angle:y.midsrcArrowAngle},{name:"mid-target",x:y.midX,y:y.midY,angle:y.midtgtArrowAngle}],M=0;M0&&(m(H),m(k))}function v(C,F,y){return Jr(C,F,y)}function B(C,F){var y=C._private,x=d,Q;F?Q=F+"-":Q="",C.boundingBox();var S=y.labelBounds[F||"main"],T=C.pstyle(Q+"label").value,U=C.pstyle("text-events").strValue==="yes";if(!(!U||!T)){var L=v(y.rscratch,"labelX",F),R=v(y.rscratch,"labelY",F),M=v(y.rscratch,"labelAngle",F),H=C.pstyle(Q+"text-margin-x").pfValue,k=C.pstyle(Q+"text-margin-y").pfValue,N=S.x1-x-H,P=S.x2+x-H,K=S.y1-x-k,W=S.y2+x-k;if(M){var X=Math.cos(M),Z=Math.sin(M),Ae=function(te,ae){return te=te-L,ae=ae-R,{x:te*X-ae*Z+L,y:te*Z+ae*X+R}},ie=Ae(N,K),re=Ae(N,W),z=Ae(P,K),q=Ae(P,W),ee=[ie.x+H,ie.y+k,z.x+H,z.y+k,q.x+H,q.y+k,re.x+H,re.y+k];if(fr(t,e,ee))return g(C),!0}else if(Za(S,t,e))return g(C),!0}}for(var b=i.length-1;b>=0;b--){var E=i[b];E.isNode()?m(E)||B(E):w(E)||B(E)||B(E,"source")||B(E,"target")}return o};JA.getAllInBox=function(t,e,r,n){var A=this.getCachedZSortedEles().interactive,a=[],i=Math.min(t,r),o=Math.max(t,r),s=Math.min(e,n),l=Math.max(e,n);t=i,r=o,e=s,n=l;for(var u=mr({x1:t,y1:e,x2:r,y2:n}),c=0;c0?-(Math.PI-e.ang):Math.PI+e.ang},Dk=function(e,r,n,A,a){if(e!==Ev?xv(r,e,cn):Lk(Sr,cn),xv(r,n,Sr),Cv=cn.nx*Sr.ny-cn.ny*Sr.nx,bv=cn.nx*Sr.nx-cn.ny*-Sr.ny,In=Math.asin(Math.max(-1,Math.min(1,Cv))),Math.abs(In)<1e-6){sd=r.x,ld=r.y,xA=fa=0;return}QA=1,El=!1,bv<0?In<0?In=Math.PI+In:(In=Math.PI-In,QA=-1,El=!0):In>0&&(QA=-1,El=!0),r.radius!==void 0?fa=r.radius:fa=A,yA=In/2,ks=Math.min(cn.len/2,Sr.len/2),a?(ln=Math.abs(Math.cos(yA)*fa/Math.sin(yA)),ln>ks?(ln=ks,xA=Math.abs(ln*Math.sin(yA)/Math.cos(yA))):xA=fa):(ln=Math.min(ks,fa),xA=Math.abs(ln*Math.sin(yA)/Math.cos(yA))),ud=r.x+Sr.nx*ln,cd=r.y+Sr.ny*ln,sd=ud-Sr.ny*xA*QA,ld=cd+Sr.nx*xA*QA,zB=r.x+cn.nx*ln,WB=r.y+cn.ny*ln,Ev=r};function _B(t,e){e.radius===0?t.lineTo(e.cx,e.cy):t.arc(e.cx,e.cy,e.radius,e.startAngle,e.endAngle,e.counterClockwise)}function Gh(t,e,r,n){var A=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0;return n===0||e.radius===0?{cx:e.x,cy:e.y,radius:0,startX:e.x,startY:e.y,stopX:e.x,stopY:e.y,startAngle:void 0,endAngle:void 0,counterClockwise:void 0}:(Dk(t,e,r,n,A),{cx:sd,cy:ld,radius:xA,startX:zB,startY:WB,stopX:ud,stopY:cd,startAngle:cn.ang+Math.PI/2*QA,endAngle:Sr.ang-Math.PI/2*QA,counterClockwise:El})}var sr={};sr.findMidptPtsEtc=function(t,e){var r=e.posPts,n=e.intersectionPts,A=e.vectorNormInverse,a,i=t.pstyle("source-endpoint"),o=t.pstyle("target-endpoint"),s=i.units!=null&&o.units!=null,l=function(b,E,C,F){var y=F-E,x=C-b,Q=Math.sqrt(x*x+y*y);return{x:-y/Q,y:x/Q}},u=t.pstyle("edge-distances").value;switch(u){case"node-position":a=r;break;case"intersection":a=n;break;case"endpoints":{if(s){var c=this.manualEndptToPx(t.source()[0],i),d=jr(c,2),h=d[0],f=d[1],p=this.manualEndptToPx(t.target()[0],o),g=jr(p,2),m=g[0],w=g[1],v={x1:h,y1:f,x2:m,y2:w};A=l(h,f,m,w),a=v}else tt("Edge ".concat(t.id()," has edge-distances:endpoints specified without manual endpoints specified via source-endpoint and target-endpoint. Falling back on edge-distances:intersection (default).")),a=n;break}}return{midptPts:a,vectorNormInverse:A}};sr.findHaystackPoints=function(t){for(var e=0;e0?Math.max(Te-V,0):Math.min(Te+V,0)},T=S(x,F),U=S(Q,y),L=!1;w===l?m=Math.abs(T)>Math.abs(U)?A:n:w===s||w===o?(m=n,L=!0):(w===a||w===i)&&(m=A,L=!0);var R=m===n,M=R?U:T,H=R?Q:x,k=q0(H),N=!1;!(L&&(B||E))&&(w===o&&H<0||w===s&&H>0||w===a&&H>0||w===i&&H<0)&&(k*=-1,M=k*Math.abs(M),N=!0);var P;if(B){var K=b<0?1+b:b;P=K*M}else{var W=b<0?M:0;P=W+b*k}var X=function(Te){return Math.abs(Te)=Math.abs(M)},Z=X(P),Ae=X(Math.abs(M)-Math.abs(P)),ie=Z||Ae;if(ie&&!N)if(R){var re=Math.abs(H)<=d/2,z=Math.abs(x)<=h/2;if(re){var q=(u.x1+u.x2)/2,ee=u.y1,se=u.y2;r.segpts=[q,ee,q,se]}else if(z){var te=(u.y1+u.y2)/2,ae=u.x1,le=u.x2;r.segpts=[ae,te,le,te]}else r.segpts=[u.x1,u.y2]}else{var ve=Math.abs(H)<=c/2,ge=Math.abs(Q)<=f/2;if(ve){var he=(u.y1+u.y2)/2,ye=u.x1,Se=u.x2;r.segpts=[ye,he,Se,he]}else if(ge){var Ce=(u.x1+u.x2)/2,we=u.y1,_=u.y2;r.segpts=[Ce,we,Ce,_]}else r.segpts=[u.x2,u.y1]}else if(R){var $=u.y1+P+(g?d/2*k:0),D=u.x1,G=u.x2;r.segpts=[D,$,G,$]}else{var J=u.x1+P+(g?c/2*k:0),j=u.y1,ne=u.y2;r.segpts=[J,j,J,ne]}if(r.isRound){var ce=t.pstyle("taxi-radius").value,Y=t.pstyle("radius-type").value[0]==="arc-radius";r.radii=new Array(r.segpts.length/2).fill(ce),r.isArcRadius=new Array(r.segpts.length/2).fill(Y)}};sr.tryToCorrectInvalidPoints=function(t,e){var r=t._private.rscratch;if(r.edgeType==="bezier"){var n=e.srcPos,A=e.tgtPos,a=e.srcW,i=e.srcH,o=e.tgtW,s=e.tgtH,l=e.srcShape,u=e.tgtShape,c=e.srcCornerRadius,d=e.tgtCornerRadius,h=e.srcRs,f=e.tgtRs,p=!be(r.startX)||!be(r.startY),g=!be(r.arrowStartX)||!be(r.arrowStartY),m=!be(r.endX)||!be(r.endY),w=!be(r.arrowEndX)||!be(r.arrowEndY),v=3,B=this.getArrowWidth(t.pstyle("width").pfValue,t.pstyle("arrow-scale").value)*this.arrowShapeWidth,b=v*B,E=$A({x:r.ctrlpts[0],y:r.ctrlpts[1]},{x:r.startX,y:r.startY}),C=EU.poolIndex()){var L=T;T=U,U=L}var R=y.srcPos=T.position(),M=y.tgtPos=U.position(),H=y.srcW=T.outerWidth(),k=y.srcH=T.outerHeight(),N=y.tgtW=U.outerWidth(),P=y.tgtH=U.outerHeight(),K=y.srcShape=r.nodeShapes[e.getNodeShape(T)],W=y.tgtShape=r.nodeShapes[e.getNodeShape(U)],X=y.srcCornerRadius=T.pstyle("corner-radius").value==="auto"?"auto":T.pstyle("corner-radius").pfValue,Z=y.tgtCornerRadius=U.pstyle("corner-radius").value==="auto"?"auto":U.pstyle("corner-radius").pfValue,Ae=y.tgtRs=U._private.rscratch,ie=y.srcRs=T._private.rscratch;y.dirCounts={north:0,west:0,south:0,east:0,northwest:0,southwest:0,northeast:0,southeast:0};for(var re=0;re0){var se=a,te=bA(se,Ua(r)),ae=bA(se,Ua(ee)),le=te;if(ae2){var ve=bA(se,{x:ee[2],y:ee[3]});ve0){var ne=i,ce=bA(ne,Ua(r)),Y=bA(ne,Ua(j)),de=ce;if(Y2){var Te=bA(ne,{x:j[2],y:j[3]});Te=f||C){g={cp:B,segment:E};break}}if(g)break}var F=g.cp,y=g.segment,x=(f-m)/y.length,Q=y.t1-y.t0,S=h?y.t0+Q*x:y.t1-Q*x;S=Io(0,S,1),e=Oa(F.p0,F.p1,F.p2,S),d=Mk(F.p0,F.p1,F.p2,S);break}case"straight":case"segments":case"haystack":{for(var T=0,U,L,R,M,H=n.allpts.length,k=0;k+3=f));k+=2);var N=f-L,P=N/U;P=Io(0,P,1),e=ND(R,M,P),d=jB(R,M);break}}i("labelX",c,e.x),i("labelY",c,e.y),i("labelAutoAngle",c,d)}};l("source"),l("target"),this.applyLabelDimensions(t)}};xn.applyLabelDimensions=function(t){this.applyPrefixedLabelDimensions(t),t.isEdge()&&(this.applyPrefixedLabelDimensions(t,"source"),this.applyPrefixedLabelDimensions(t,"target"))};xn.applyPrefixedLabelDimensions=function(t,e){var r=t._private,n=this.getLabelText(t,e),A=this.calculateLabelDimensions(t,n),a=t.pstyle("line-height").pfValue,i=t.pstyle("text-wrap").strValue,o=Jr(r.rscratch,"labelWrapCachedLines",e)||[],s=i!=="wrap"?1:Math.max(o.length,1),l=A.height/s,u=l*a,c=A.width,d=A.height+(s-1)*(a-1)*l;Jn(r.rstyle,"labelWidth",e,c),Jn(r.rscratch,"labelWidth",e,c),Jn(r.rstyle,"labelHeight",e,d),Jn(r.rscratch,"labelHeight",e,d),Jn(r.rscratch,"labelLineHeight",e,u)};xn.getLabelText=function(t,e){var r=t._private,n=e?e+"-":"",A=t.pstyle(n+"label").strValue,a=t.pstyle("text-transform").value,i=function(W,X){return X?(Jn(r.rscratch,W,e,X),X):Jr(r.rscratch,W,e)};if(!A)return"";a=="none"||(a=="uppercase"?A=A.toUpperCase():a=="lowercase"&&(A=A.toLowerCase()));var o=t.pstyle("text-wrap").value;if(o==="wrap"){var s=i("labelKey");if(s!=null&&i("labelWrapKey")===s)return i("labelWrapCachedText");for(var l="​",u=A.split(` +`),c=t.pstyle("text-max-width").pfValue,d=t.pstyle("text-overflow-wrap").value,h=d==="anywhere",f=[],p=/[\s\u200b]+|$/g,g=0;gc){var b=m.matchAll(p),E="",C=0,F=L0(b),y;try{for(F.s();!(y=F.n()).done;){var x=y.value,Q=x[0],S=m.substring(C,x.index);C=x.index+Q.length;var T=E.length===0?S:E+S+Q,U=this.calculateLabelDimensions(t,T),L=U.width;L<=c?E+=S+Q:(E&&f.push(E),E=S+Q)}}catch(K){F.e(K)}finally{F.f()}E.match(/^[\s\u200b]+$/)||f.push(E)}else f.push(m)}i("labelWrapCachedLines",f),A=i("labelWrapCachedText",f.join(` +`)),i("labelWrapKey",s)}else if(o==="ellipsis"){var R=t.pstyle("text-max-width").pfValue,M="",H="…",k=!1;if(this.calculateLabelDimensions(t,A).widthR)break;M+=A[N],N===A.length-1&&(k=!0)}return k||(M+=H),M}return A};xn.getLabelJustification=function(t){var e=t.pstyle("text-justification").strValue,r=t.pstyle("text-halign").strValue;if(e==="auto")if(t.isNode())switch(r){case"left":return"right";case"right":return"left";default:return"center"}else return"center";else return e};xn.calculateLabelDimensions=function(t,e){var r=this,n=r.cy.window(),A=n.document,a=VA(e,t._private.labelDimsKey),i=r.labelDimCache||(r.labelDimCache=[]),o=i[a];if(o!=null)return o;var s=0,l=t.pstyle("font-style").strValue,u=t.pstyle("font-size").pfValue,c=t.pstyle("font-family").strValue,d=t.pstyle("font-weight").strValue,h=this.labelCalcCanvas,f=this.labelCalcCanvasContext;if(!h){h=this.labelCalcCanvas=A.createElement("canvas"),f=this.labelCalcCanvasContext=h.getContext("2d");var p=h.style;p.position="absolute",p.left="-9999px",p.top="-9999px",p.zIndex="-1",p.visibility="hidden",p.pointerEvents="none"}f.font="".concat(l," ").concat(d," ").concat(u,"px ").concat(c);for(var g=0,m=0,w=e.split(` +`),v=0;v1&&arguments[1]!==void 0?arguments[1]:!0;if(e.merge(i),o)for(var s=0;s=t.desktopTapThreshold2}var ze=A(D);Ne&&(t.hoverData.tapholdCancelled=!0);var De=function(){var an=t.hoverData.dragDelta=t.hoverData.dragDelta||[];an.length===0?(an.push(Be[0]),an.push(Be[1])):(an[0]+=Be[0],an[1]+=Be[1])};J=!0,n(oe,["mousemove","vmousemove","tapdrag"],D,{x:Y[0],y:Y[1]});var nt=function(){t.data.bgActivePosistion=void 0,t.hoverData.selecting||j.emit({originalEvent:D,type:"boxstart",position:{x:Y[0],y:Y[1]}}),V[4]=1,t.hoverData.selecting=!0,t.redrawHint("select",!0),t.redraw()};if(t.hoverData.which===3){if(Ne){var Rt={originalEvent:D,type:"cxtdrag",position:{x:Y[0],y:Y[1]}};pe?pe.emit(Rt):j.emit(Rt),t.hoverData.cxtDragged=!0,(!t.hoverData.cxtOver||oe!==t.hoverData.cxtOver)&&(t.hoverData.cxtOver&&t.hoverData.cxtOver.emit({originalEvent:D,type:"cxtdragout",position:{x:Y[0],y:Y[1]}}),t.hoverData.cxtOver=oe,oe&&oe.emit({originalEvent:D,type:"cxtdragover",position:{x:Y[0],y:Y[1]}}))}}else if(t.hoverData.dragging){if(J=!0,j.panningEnabled()&&j.userPanningEnabled()){var An;if(t.hoverData.justStartedPan){var Un=t.hoverData.mdownPos;An={x:(Y[0]-Un[0])*ne,y:(Y[1]-Un[1])*ne},t.hoverData.justStartedPan=!1}else An={x:Be[0]*ne,y:Be[1]*ne};j.panBy(An),j.emit("dragpan"),t.hoverData.dragged=!0}Y=t.projectIntoViewport(D.clientX,D.clientY)}else if(V[4]==1&&(pe==null||pe.pannable())){if(Ne){if(!t.hoverData.dragging&&j.boxSelectionEnabled()&&(ze||!j.panningEnabled()||!j.userPanningEnabled()))nt();else if(!t.hoverData.selecting&&j.panningEnabled()&&j.userPanningEnabled()){var zr=a(pe,t.hoverData.downs);zr&&(t.hoverData.dragging=!0,t.hoverData.justStartedPan=!0,V[4]=0,t.data.bgActivePosistion=Ua(de),t.redrawHint("select",!0),t.redraw())}pe&&pe.pannable()&&pe.active()&&pe.unactivate()}}else{if(pe&&pe.pannable()&&pe.active()&&pe.unactivate(),(!pe||!pe.grabbed())&&oe!=fe&&(fe&&n(fe,["mouseout","tapdragout"],D,{x:Y[0],y:Y[1]}),oe&&n(oe,["mouseover","tapdragover"],D,{x:Y[0],y:Y[1]}),t.hoverData.last=oe),pe)if(Ne){if(j.boxSelectionEnabled()&&ze)pe&&pe.grabbed()&&(g(Oe),pe.emit("freeon"),Oe.emit("free"),t.dragData.didDrag&&(pe.emit("dragfreeon"),Oe.emit("dragfree"))),nt();else if(pe&&pe.grabbed()&&t.nodeIsDraggable(pe)){var Mt=!t.dragData.didDrag;Mt&&t.redrawHint("eles",!0),t.dragData.didDrag=!0,t.hoverData.draggingEles||f(Oe,{inDragLayer:!0});var Kt={x:0,y:0};if(be(Be[0])&&be(Be[1])&&(Kt.x+=Be[0],Kt.y+=Be[1],Mt)){var er=t.hoverData.dragDelta;er&&be(er[0])&&be(er[1])&&(Kt.x+=er[0],Kt.y+=er[1])}t.hoverData.draggingEles=!0,Oe.silentShift(Kt).emit("position drag"),t.redrawHint("drag",!0),t.redraw()}}else De();J=!0}if(V[2]=Y[0],V[3]=Y[1],J)return D.stopPropagation&&D.stopPropagation(),D.preventDefault&&D.preventDefault(),!1}},!1);var x,Q,S;t.registerBinding(e,"mouseup",function(D){if(!(t.hoverData.which===1&&D.which!==1&&t.hoverData.capture)){var G=t.hoverData.capture;if(G){t.hoverData.capture=!1;var J=t.cy,j=t.projectIntoViewport(D.clientX,D.clientY),ne=t.selection,ce=t.findNearestElement(j[0],j[1],!0,!1),Y=t.dragData.possibleDragElements,de=t.hoverData.down,Te=A(D);if(t.data.bgActivePosistion&&(t.redrawHint("select",!0),t.redraw()),t.hoverData.tapholdCancelled=!0,t.data.bgActivePosistion=void 0,de&&de.unactivate(),t.hoverData.which===3){var V={originalEvent:D,type:"cxttapend",position:{x:j[0],y:j[1]}};if(de?de.emit(V):J.emit(V),!t.hoverData.cxtDragged){var oe={originalEvent:D,type:"cxttap",position:{x:j[0],y:j[1]}};de?de.emit(oe):J.emit(oe)}t.hoverData.cxtDragged=!1,t.hoverData.which=null}else if(t.hoverData.which===1){if(n(ce,["mouseup","tapend","vmouseup"],D,{x:j[0],y:j[1]}),!t.dragData.didDrag&&!t.hoverData.dragged&&!t.hoverData.selecting&&!t.hoverData.isOverThresholdDrag&&(n(de,["click","tap","vclick"],D,{x:j[0],y:j[1]}),Q=!1,D.timeStamp-S<=J.multiClickDebounceTime()?(x&&clearTimeout(x),Q=!0,S=null,n(de,["dblclick","dbltap","vdblclick"],D,{x:j[0],y:j[1]})):(x=setTimeout(function(){Q||n(de,["oneclick","onetap","voneclick"],D,{x:j[0],y:j[1]})},J.multiClickDebounceTime()),S=D.timeStamp)),de==null&&!t.dragData.didDrag&&!t.hoverData.selecting&&!t.hoverData.dragged&&!A(D)&&(J.$(r).unselect(["tapunselect"]),Y.length>0&&t.redrawHint("eles",!0),t.dragData.possibleDragElements=Y=J.collection()),ce==de&&!t.dragData.didDrag&&!t.hoverData.selecting&&ce!=null&&ce._private.selectable&&(t.hoverData.dragging||(J.selectionType()==="additive"||Te?ce.selected()?ce.unselect(["tapunselect"]):ce.select(["tapselect"]):Te||(J.$(r).unmerge(ce).unselect(["tapunselect"]),ce.select(["tapselect"]))),t.redrawHint("eles",!0)),t.hoverData.selecting){var fe=J.collection(t.getAllInBox(ne[0],ne[1],ne[2],ne[3]));t.redrawHint("select",!0),fe.length>0&&t.redrawHint("eles",!0),J.emit({type:"boxend",originalEvent:D,position:{x:j[0],y:j[1]}});var pe=function(Ne){return Ne.selectable()&&!Ne.selected()};J.selectionType()==="additive"||Te||J.$(r).unmerge(fe).unselect(),fe.emit("box").stdFilter(pe).select().emit("boxselect"),t.redraw()}if(t.hoverData.dragging&&(t.hoverData.dragging=!1,t.redrawHint("select",!0),t.redrawHint("eles",!0),t.redraw()),!ne[4]){t.redrawHint("drag",!0),t.redrawHint("eles",!0);var Be=de&&de.grabbed();g(Y),Be&&(de.emit("freeon"),Y.emit("free"),t.dragData.didDrag&&(de.emit("dragfreeon"),Y.emit("dragfree")))}}ne[4]=0,t.hoverData.down=null,t.hoverData.cxtStarted=!1,t.hoverData.draggingEles=!1,t.hoverData.selecting=!1,t.hoverData.isOverThresholdDrag=!1,t.dragData.didDrag=!1,t.hoverData.dragged=!1,t.hoverData.dragDelta=[],t.hoverData.mdownPos=null,t.hoverData.mdownGPos=null,t.hoverData.which=null}}},!1);var T=function(D){if(!t.scrollingPage){var G=t.cy,J=G.zoom(),j=G.pan(),ne=t.projectIntoViewport(D.clientX,D.clientY),ce=[ne[0]*J+j.x,ne[1]*J+j.y];if(t.hoverData.draggingEles||t.hoverData.dragging||t.hoverData.cxtStarted||F()){D.preventDefault();return}if(G.panningEnabled()&&G.userPanningEnabled()&&G.zoomingEnabled()&&G.userZoomingEnabled()){D.preventDefault(),t.data.wheelZooming=!0,clearTimeout(t.data.wheelTimeout),t.data.wheelTimeout=setTimeout(function(){t.data.wheelZooming=!1,t.redrawHint("eles",!0),t.redraw()},150);var Y;D.deltaY!=null?Y=D.deltaY/-250:D.wheelDeltaY!=null?Y=D.wheelDeltaY/1e3:Y=D.wheelDelta/1e3,Y=Y*t.wheelSensitivity;var de=D.deltaMode===1;de&&(Y*=33);var Te=G.zoom()*Math.pow(10,Y);D.type==="gesturechange"&&(Te=t.gestureStartZoom*D.scale),G.zoom({level:Te,renderedPosition:{x:ce[0],y:ce[1]}}),G.emit(D.type==="gesturechange"?"pinchzoom":"scrollzoom")}}};t.registerBinding(t.container,"wheel",T,!0),t.registerBinding(e,"scroll",function(D){t.scrollingPage=!0,clearTimeout(t.scrollingPageTimeout),t.scrollingPageTimeout=setTimeout(function(){t.scrollingPage=!1},250)},!0),t.registerBinding(t.container,"gesturestart",function(D){t.gestureStartZoom=t.cy.zoom(),t.hasTouchStarted||D.preventDefault()},!0),t.registerBinding(t.container,"gesturechange",function($){t.hasTouchStarted||T($)},!0),t.registerBinding(t.container,"mouseout",function(D){var G=t.projectIntoViewport(D.clientX,D.clientY);t.cy.emit({originalEvent:D,type:"mouseout",position:{x:G[0],y:G[1]}})},!1),t.registerBinding(t.container,"mouseover",function(D){var G=t.projectIntoViewport(D.clientX,D.clientY);t.cy.emit({originalEvent:D,type:"mouseover",position:{x:G[0],y:G[1]}})},!1);var U,L,R,M,H,k,N,P,K,W,X,Z,Ae,ie=function(D,G,J,j){return Math.sqrt((J-D)*(J-D)+(j-G)*(j-G))},re=function(D,G,J,j){return(J-D)*(J-D)+(j-G)*(j-G)},z;t.registerBinding(t.container,"touchstart",z=function(D){if(t.hasTouchStarted=!0,!!y(D)){w(),t.touchData.capture=!0,t.data.bgActivePosistion=void 0;var G=t.cy,J=t.touchData.now,j=t.touchData.earlier;if(D.touches[0]){var ne=t.projectIntoViewport(D.touches[0].clientX,D.touches[0].clientY);J[0]=ne[0],J[1]=ne[1]}if(D.touches[1]){var ne=t.projectIntoViewport(D.touches[1].clientX,D.touches[1].clientY);J[2]=ne[0],J[3]=ne[1]}if(D.touches[2]){var ne=t.projectIntoViewport(D.touches[2].clientX,D.touches[2].clientY);J[4]=ne[0],J[5]=ne[1]}if(D.touches[1]){t.touchData.singleTouchMoved=!0,g(t.dragData.touchDragEles);var ce=t.findContainerClientCoords();K=ce[0],W=ce[1],X=ce[2],Z=ce[3],U=D.touches[0].clientX-K,L=D.touches[0].clientY-W,R=D.touches[1].clientX-K,M=D.touches[1].clientY-W,Ae=0<=U&&U<=X&&0<=R&&R<=X&&0<=L&&L<=Z&&0<=M&&M<=Z;var Y=G.pan(),de=G.zoom();H=ie(U,L,R,M),k=re(U,L,R,M),N=[(U+R)/2,(L+M)/2],P=[(N[0]-Y.x)/de,(N[1]-Y.y)/de];var Te=200,V=Te*Te;if(k=1){for(var Ge=t.touchData.startPosition=[null,null,null,null,null,null],He=0;He=t.touchTapThreshold2}if(G&&t.touchData.cxt){D.preventDefault();var Ge=D.touches[0].clientX-K,He=D.touches[0].clientY-W,pt=D.touches[1].clientX-K,Je=D.touches[1].clientY-W,ze=re(Ge,He,pt,Je),De=ze/k,nt=150,Rt=nt*nt,An=1.5,Un=An*An;if(De>=Un||ze>=Rt){t.touchData.cxt=!1,t.data.bgActivePosistion=void 0,t.redrawHint("select",!0);var zr={originalEvent:D,type:"cxttapend",position:{x:ne[0],y:ne[1]}};t.touchData.start?(t.touchData.start.unactivate().emit(zr),t.touchData.start=null):j.emit(zr)}}if(G&&t.touchData.cxt){var zr={originalEvent:D,type:"cxtdrag",position:{x:ne[0],y:ne[1]}};t.data.bgActivePosistion=void 0,t.redrawHint("select",!0),t.touchData.start?t.touchData.start.emit(zr):j.emit(zr),t.touchData.start&&(t.touchData.start._private.grabbed=!1),t.touchData.cxtDragged=!0;var Mt=t.findNearestElement(ne[0],ne[1],!0,!0);(!t.touchData.cxtOver||Mt!==t.touchData.cxtOver)&&(t.touchData.cxtOver&&t.touchData.cxtOver.emit({originalEvent:D,type:"cxtdragout",position:{x:ne[0],y:ne[1]}}),t.touchData.cxtOver=Mt,Mt&&Mt.emit({originalEvent:D,type:"cxtdragover",position:{x:ne[0],y:ne[1]}}))}else if(G&&D.touches[2]&&j.boxSelectionEnabled())D.preventDefault(),t.data.bgActivePosistion=void 0,this.lastThreeTouch=+new Date,t.touchData.selecting||j.emit({originalEvent:D,type:"boxstart",position:{x:ne[0],y:ne[1]}}),t.touchData.selecting=!0,t.touchData.didSelect=!0,J[4]=1,!J||J.length===0||J[0]===void 0?(J[0]=(ne[0]+ne[2]+ne[4])/3,J[1]=(ne[1]+ne[3]+ne[5])/3,J[2]=(ne[0]+ne[2]+ne[4])/3+1,J[3]=(ne[1]+ne[3]+ne[5])/3+1):(J[2]=(ne[0]+ne[2]+ne[4])/3,J[3]=(ne[1]+ne[3]+ne[5])/3),t.redrawHint("select",!0),t.redraw();else if(G&&D.touches[1]&&!t.touchData.didSelect&&j.zoomingEnabled()&&j.panningEnabled()&&j.userZoomingEnabled()&&j.userPanningEnabled()){D.preventDefault(),t.data.bgActivePosistion=void 0,t.redrawHint("select",!0);var Kt=t.dragData.touchDragEles;if(Kt){t.redrawHint("drag",!0);for(var er=0;er0&&!t.hoverData.draggingEles&&!t.swipePanning&&t.data.bgActivePosistion!=null&&(t.data.bgActivePosistion=void 0,t.redrawHint("select",!0),t.redraw())}},!1);var ee;t.registerBinding(e,"touchcancel",ee=function(D){var G=t.touchData.start;t.touchData.capture=!1,G&&G.unactivate()});var se,te,ae,le;if(t.registerBinding(e,"touchend",se=function(D){var G=t.touchData.start,J=t.touchData.capture;if(J)D.touches.length===0&&(t.touchData.capture=!1),D.preventDefault();else return;var j=t.selection;t.swipePanning=!1,t.hoverData.draggingEles=!1;var ne=t.cy,ce=ne.zoom(),Y=t.touchData.now,de=t.touchData.earlier;if(D.touches[0]){var Te=t.projectIntoViewport(D.touches[0].clientX,D.touches[0].clientY);Y[0]=Te[0],Y[1]=Te[1]}if(D.touches[1]){var Te=t.projectIntoViewport(D.touches[1].clientX,D.touches[1].clientY);Y[2]=Te[0],Y[3]=Te[1]}if(D.touches[2]){var Te=t.projectIntoViewport(D.touches[2].clientX,D.touches[2].clientY);Y[4]=Te[0],Y[5]=Te[1]}G&&G.unactivate();var V;if(t.touchData.cxt){if(V={originalEvent:D,type:"cxttapend",position:{x:Y[0],y:Y[1]}},G?G.emit(V):ne.emit(V),!t.touchData.cxtDragged){var oe={originalEvent:D,type:"cxttap",position:{x:Y[0],y:Y[1]}};G?G.emit(oe):ne.emit(oe)}t.touchData.start&&(t.touchData.start._private.grabbed=!1),t.touchData.cxt=!1,t.touchData.start=null,t.redraw();return}if(!D.touches[2]&&ne.boxSelectionEnabled()&&t.touchData.selecting){t.touchData.selecting=!1;var fe=ne.collection(t.getAllInBox(j[0],j[1],j[2],j[3]));j[0]=void 0,j[1]=void 0,j[2]=void 0,j[3]=void 0,j[4]=0,t.redrawHint("select",!0),ne.emit({type:"boxend",originalEvent:D,position:{x:Y[0],y:Y[1]}});var pe=function(Rt){return Rt.selectable()&&!Rt.selected()};fe.emit("box").stdFilter(pe).select().emit("boxselect"),fe.nonempty()&&t.redrawHint("eles",!0),t.redraw()}if(G!=null&&G.unactivate(),D.touches[2])t.data.bgActivePosistion=void 0,t.redrawHint("select",!0);else if(!D.touches[1]){if(!D.touches[0]){if(!D.touches[0]){t.data.bgActivePosistion=void 0,t.redrawHint("select",!0);var Be=t.dragData.touchDragEles;if(G!=null){var Oe=G._private.grabbed;g(Be),t.redrawHint("drag",!0),t.redrawHint("eles",!0),Oe&&(G.emit("freeon"),Be.emit("free"),t.dragData.didDrag&&(G.emit("dragfreeon"),Be.emit("dragfree"))),n(G,["touchend","tapend","vmouseup","tapdragout"],D,{x:Y[0],y:Y[1]}),G.unactivate(),t.touchData.start=null}else{var Ne=t.findNearestElement(Y[0],Y[1],!0,!0);n(Ne,["touchend","tapend","vmouseup","tapdragout"],D,{x:Y[0],y:Y[1]})}var ut=t.touchData.startPosition[0]-Y[0],Ge=ut*ut,He=t.touchData.startPosition[1]-Y[1],pt=He*He,Je=Ge+pt,ze=Je*ce*ce;t.touchData.singleTouchMoved||(G||ne.$(":selected").unselect(["tapunselect"]),n(G,["tap","vclick"],D,{x:Y[0],y:Y[1]}),te=!1,D.timeStamp-le<=ne.multiClickDebounceTime()?(ae&&clearTimeout(ae),te=!0,le=null,n(G,["dbltap","vdblclick"],D,{x:Y[0],y:Y[1]})):(ae=setTimeout(function(){te||n(G,["onetap","voneclick"],D,{x:Y[0],y:Y[1]})},ne.multiClickDebounceTime()),le=D.timeStamp)),G!=null&&!t.dragData.didDrag&&G._private.selectable&&ze"u"){var ve=[],ge=function(D){return{clientX:D.clientX,clientY:D.clientY,force:1,identifier:D.pointerId,pageX:D.pageX,pageY:D.pageY,radiusX:D.width/2,radiusY:D.height/2,screenX:D.screenX,screenY:D.screenY,target:D.target}},he=function(D){return{event:D,touch:ge(D)}},ye=function(D){ve.push(he(D))},Se=function(D){for(var G=0;G0)return K[0]}return null},f=Object.keys(d),p=0;p0?h:eB(a,i,e,r,n,A,o,s)},checkPoint:function(e,r,n,A,a,i,o,s){s=s==="auto"?zA(A,a):s;var l=2*s;if(Pn(e,r,this.points,i,o,A,a-l,[0,-1],n)||Pn(e,r,this.points,i,o,A-l,a,[0,-1],n))return!0;var u=A/2+2*n,c=a/2+2*n,d=[i-u,o-c,i-u,o,i+u,o,i+u,o-c];return!!(fr(e,r,d)||LA(e,r,l,l,i+A/2-s,o+a/2-s,n)||LA(e,r,l,l,i-A/2+s,o+a/2-s,n))}}};$n.registerNodeShapes=function(){var t=this.nodeShapes={},e=this;this.generateEllipse(),this.generatePolygon("triangle",lr(3,0)),this.generateRoundPolygon("round-triangle",lr(3,0)),this.generatePolygon("rectangle",lr(4,0)),t.square=t.rectangle,this.generateRoundRectangle(),this.generateCutRectangle(),this.generateBarrel(),this.generateBottomRoundrectangle();{var r=[0,1,1,0,0,-1,-1,0];this.generatePolygon("diamond",r),this.generateRoundPolygon("round-diamond",r)}this.generatePolygon("pentagon",lr(5,0)),this.generateRoundPolygon("round-pentagon",lr(5,0)),this.generatePolygon("hexagon",lr(6,0)),this.generateRoundPolygon("round-hexagon",lr(6,0)),this.generatePolygon("heptagon",lr(7,0)),this.generateRoundPolygon("round-heptagon",lr(7,0)),this.generatePolygon("octagon",lr(8,0)),this.generateRoundPolygon("round-octagon",lr(8,0));var n=new Array(20);{var A=ed(5,0),a=ed(5,Math.PI/5),i=.5*(3-Math.sqrt(5));i*=1.57;for(var o=0;o=e.deqFastCost*B)break}else if(l){if(w>=e.deqCost*h||w>=e.deqAvgCost*d)break}else if(v>=e.deqNoDrawCost*of)break;var b=e.deq(n,g,p);if(b.length>0)for(var E=0;E0&&(e.onDeqd(n,f),!l&&e.shouldRedraw(n,f,g,p)&&a())},o=e.priority||Fh;A.beforeRender(i,o(n))}}}},Hk=function(){function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$l;wh(this,t),this.idsByKey=new yn,this.keyForId=new yn,this.cachesByLvl=new yn,this.lvls=[],this.getKey=e,this.doesEleInvalidateKey=r}return Ch(t,[{key:"getIdsFor",value:function(r){r==null&&xt("Can not get id list for null key");var n=this.idsByKey,A=this.idsByKey.get(r);return A||(A=new oi,n.set(r,A)),A}},{key:"addIdForKey",value:function(r,n){r!=null&&this.getIdsFor(r).add(n)}},{key:"deleteIdForKey",value:function(r,n){r!=null&&this.getIdsFor(r).delete(n)}},{key:"getNumberOfIdsForKey",value:function(r){return r==null?0:this.getIdsFor(r).size}},{key:"updateKeyMappingFor",value:function(r){var n=r.id(),A=this.keyForId.get(n),a=this.getKey(r);this.deleteIdForKey(A,n),this.addIdForKey(a,n),this.keyForId.set(n,a)}},{key:"deleteKeyMappingFor",value:function(r){var n=r.id(),A=this.keyForId.get(n);this.deleteIdForKey(A,n),this.keyForId.delete(n)}},{key:"keyHasChangedFor",value:function(r){var n=r.id(),A=this.keyForId.get(n),a=this.getKey(r);return A!==a}},{key:"isInvalid",value:function(r){return this.keyHasChangedFor(r)||this.doesEleInvalidateKey(r)}},{key:"getCachesAt",value:function(r){var n=this.cachesByLvl,A=this.lvls,a=n.get(r);return a||(a=new yn,n.set(r,a),A.push(r)),a}},{key:"getCache",value:function(r,n){return this.getCachesAt(n).get(r)}},{key:"get",value:function(r,n){var A=this.getKey(r),a=this.getCache(A,n);return a!=null&&this.updateKeyMappingFor(r),a}},{key:"getForCachedKey",value:function(r,n){var A=this.keyForId.get(r.id()),a=this.getCache(A,n);return a}},{key:"hasCache",value:function(r,n){return this.getCachesAt(n).has(r)}},{key:"has",value:function(r,n){var A=this.getKey(r);return this.hasCache(A,n)}},{key:"setCache",value:function(r,n,A){A.key=r,this.getCachesAt(n).set(r,A)}},{key:"set",value:function(r,n,A){var a=this.getKey(r);this.setCache(a,n,A),this.updateKeyMappingFor(r)}},{key:"deleteCache",value:function(r,n){this.getCachesAt(n).delete(r)}},{key:"delete",value:function(r,n){var A=this.getKey(r);this.deleteCache(A,n)}},{key:"invalidateKey",value:function(r){var n=this;this.lvls.forEach(function(A){return n.deleteCache(r,A)})}},{key:"invalidate",value:function(r){var n=r.id(),A=this.keyForId.get(n);this.deleteKeyMappingFor(r);var a=this.doesEleInvalidateKey(r);return a&&this.invalidateKey(A),a||this.getNumberOfIdsForKey(A)===0}}]),t}(),Uv=25,Ps=50,xl=-4,fd=3,kk=7.99,Pk=8,Nk=1024,Kk=1024,Gk=1024,Vk=.2,$k=.8,zk=10,Wk=.15,_k=.1,Xk=.9,Yk=.9,jk=100,qk=1,Ta={dequeue:"dequeue",downscale:"downscale",highQuality:"highQuality"},Jk=Jt({getKey:null,doesEleInvalidateKey:$l,drawElement:null,getBoundingBox:null,getRotationPoint:null,getRotationOffset:null,isVisible:W0,allowEdgeTxrCaching:!0,allowParentTxrCaching:!0}),_i=function(e,r){var n=this;n.renderer=e,n.onDequeues=[];var A=Jk(r);Re(n,A),n.lookup=new Hk(A.getKey,A.doesEleInvalidateKey),n.setupDequeueing()},Nt=_i.prototype;Nt.reasons=Ta;Nt.getTextureQueue=function(t){var e=this;return e.eleImgCaches=e.eleImgCaches||{},e.eleImgCaches[t]=e.eleImgCaches[t]||[]};Nt.getRetiredTextureQueue=function(t){var e=this,r=e.eleImgCaches.retired=e.eleImgCaches.retired||{},n=r[t]=r[t]||[];return n};Nt.getElementQueue=function(){var t=this,e=t.eleCacheQueue=t.eleCacheQueue||new rs(function(r,n){return n.reqs-r.reqs});return e};Nt.getElementKeyToQueue=function(){var t=this,e=t.eleKeyToCacheQueue=t.eleKeyToCacheQueue||{};return e};Nt.getElement=function(t,e,r,n,A){var a=this,i=this.renderer,o=i.cy.zoom(),s=this.lookup;if(!e||e.w===0||e.h===0||isNaN(e.w)||isNaN(e.h)||!t.visible()||t.removed()||!a.allowEdgeTxrCaching&&t.isEdge()||!a.allowParentTxrCaching&&t.isParent())return null;if(n==null&&(n=Math.ceil(Sh(o*r))),n=kk||n>fd)return null;var l=Math.pow(2,n),u=e.h*l,c=e.w*l,d=i.eleTextBiggerThanMin(t,l);if(!this.isVisible(t,d))return null;var h=s.get(t,n);if(h&&h.invalidated&&(h.invalidated=!1,h.texture.invalidatedWidth-=h.width),h)return h;var f;if(u<=Uv?f=Uv:u<=Ps?f=Ps:f=Math.ceil(u/Ps)*Ps,u>Gk||c>Kk)return null;var p=a.getTextureQueue(f),g=p[p.length-2],m=function(){return a.recycleTexture(f,c)||a.addTexture(f,c)};g||(g=p[p.length-1]),g||(g=m()),g.width-g.usedWidthn;Q--)y=a.getElement(t,e,r,Q,Ta.downscale);x()}else return a.queueElement(t,E.level-1),E;else{var S;if(!v&&!B&&!b)for(var T=n-1;T>=xl;T--){var U=s.get(t,T);if(U){S=U;break}}if(w(S))return a.queueElement(t,n),S;g.context.translate(g.usedWidth,0),g.context.scale(l,l),this.drawElement(g.context,t,e,d,!1),g.context.scale(1/l,1/l),g.context.translate(-g.usedWidth,0)}return h={x:g.usedWidth,texture:g,level:n,scale:l,width:c,height:u,scaledLabelShown:d},g.usedWidth+=Math.ceil(c+Pk),g.eleCaches.push(h),s.set(t,n,h),a.checkTextureFullness(g),h};Nt.invalidateElements=function(t){for(var e=0;e=Vk*t.width&&this.retireTexture(t)};Nt.checkTextureFullness=function(t){var e=this,r=e.getTextureQueue(t.height);t.usedWidth/t.width>$k&&t.fullnessChecks>=zk?uA(r,t):t.fullnessChecks++};Nt.retireTexture=function(t){var e=this,r=t.height,n=e.getTextureQueue(r),A=this.lookup;uA(n,t),t.retired=!0;for(var a=t.eleCaches,i=0;i=e)return i.retired=!1,i.usedWidth=0,i.invalidatedWidth=0,i.fullnessChecks=0,Qh(i.eleCaches),i.context.setTransform(1,0,0,1,0,0),i.context.clearRect(0,0,i.width,i.height),uA(A,i),n.push(i),i}};Nt.queueElement=function(t,e){var r=this,n=r.getElementQueue(),A=r.getElementKeyToQueue(),a=this.getKey(t),i=A[a];if(i)i.level=Math.max(i.level,e),i.eles.merge(t),i.reqs++,n.updateItem(i);else{var o={eles:t.spawn().merge(t),level:e,reqs:1,key:a};n.push(o),A[a]=o}};Nt.dequeue=function(t){for(var e=this,r=e.getElementQueue(),n=e.getElementKeyToQueue(),A=[],a=e.lookup,i=0;i0;i++){var o=r.pop(),s=o.key,l=o.eles[0],u=a.hasCache(l,o.level);if(n[s]=null,u)continue;A.push(o);var c=e.getBoundingBox(l);e.getElement(l,c,t,o.level,Ta.dequeue)}return A};Nt.removeFromQueue=function(t){var e=this,r=e.getElementQueue(),n=e.getElementKeyToQueue(),A=this.getKey(t),a=n[A];a!=null&&(a.eles.length===1?(a.reqs=xh,r.updateItem(a),r.pop(),n[A]=null):a.eles.unmerge(t))};Nt.onDequeue=function(t){this.onDequeues.push(t)};Nt.offDequeue=function(t){uA(this.onDequeues,t)};Nt.setupDequeueing=tw.setupDequeueing({deqRedrawThreshold:jk,deqCost:Wk,deqAvgCost:_k,deqNoDrawCost:Xk,deqFastCost:Yk,deq:function(e,r,n){return e.dequeue(r,n)},onDeqd:function(e,r){for(var n=0;n=eP||r>Jl)return null}n.validateLayersElesOrdering(r,t);var s=n.layersByLevel,l=Math.pow(2,r),u=s[r]=s[r]||[],c,d=n.levelIsComplete(r,t),h,f=function(){var x=function(L){if(n.validateLayersElesOrdering(L,t),n.levelIsComplete(L,t))return h=s[L],!0},Q=function(L){if(!h)for(var R=r+L;lo<=R&&R<=Jl&&!x(R);R+=L);};Q(1),Q(-1);for(var S=u.length-1;S>=0;S--){var T=u[S];T.invalid&&uA(u,T)}};if(!d)f();else return u;var p=function(){if(!c){c=mr();for(var x=0;xsP)return null;var T=n.makeLayer(c,r);if(Q!=null){var U=u.indexOf(Q)+1;u.splice(U,0,T)}else(x.insert===void 0||x.insert)&&u.unshift(T);return T};if(n.skipping&&!o)return null;for(var m=null,w=t.length/Zk,v=!o,B=0;B=w||!Z0(m.bb,b.boundingBox()))&&(m=g({insert:!0,after:m}),!m))return null;h||v?n.queueLayer(m,b):n.drawEleInLayer(m,b,r,e),m.eles.push(b),C[r]=m}return h||(v?null:u)};Zt.getEleLevelForLayerLevel=function(t,e){return t};Zt.drawEleInLayer=function(t,e,r,n){var A=this,a=this.renderer,i=t.context,o=e.boundingBox();o.w===0||o.h===0||!e.visible()||(r=A.getEleLevelForLayerLevel(r,n),a.setImgSmoothing(i,!1),a.drawCachedElement(i,e,null,null,r,lP),a.setImgSmoothing(i,!0))};Zt.levelIsComplete=function(t,e){var r=this,n=r.layersByLevel[t];if(!n||n.length===0)return!1;for(var A=0,a=0;a0||i.invalid)return!1;A+=i.eles.length}return A===e.length};Zt.validateLayersElesOrdering=function(t,e){var r=this.layersByLevel[t];if(r)for(var n=0;n0){e=!0;break}}return e};Zt.invalidateElements=function(t){var e=this;t.length!==0&&(e.lastInvalidationTime=kn(),!(t.length===0||!e.haveLayers())&&e.updateElementsInLayers(t,function(n,A,a){e.invalidateLayer(n)}))};Zt.invalidateLayer=function(t){if(this.lastInvalidationTime=kn(),!t.invalid){var e=t.level,r=t.eles,n=this.layersByLevel[e];uA(n,t),t.elesQueue=[],t.invalid=!0,t.replacement&&(t.replacement.invalid=!0);for(var A=0;A3&&arguments[3]!==void 0?arguments[3]:!0,A=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0,i=this,o=e._private.rscratch;if(!(a&&!e.visible())&&!(o.badLine||o.allpts==null||isNaN(o.allpts[0]))){var s;r&&(s=r,t.translate(-s.x1,-s.y1));var l=a?e.pstyle("opacity").value:1,u=a?e.pstyle("line-opacity").value:1,c=e.pstyle("curve-style").value,d=e.pstyle("line-style").value,h=e.pstyle("width").pfValue,f=e.pstyle("line-cap").value,p=e.pstyle("line-outline-width").value,g=e.pstyle("line-outline-color").value,m=l*u,w=l*u,v=function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:m;c==="straight-triangle"?(i.eleStrokeStyle(t,e,L),i.drawEdgeTrianglePath(e,t,o.allpts)):(t.lineWidth=h,t.lineCap=f,i.eleStrokeStyle(t,e,L),i.drawEdgePath(e,t,o.allpts,d),t.lineCap="butt")},B=function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:m;if(t.lineWidth=h+p,t.lineCap=f,p>0)i.colorStrokeStyle(t,g[0],g[1],g[2],L);else{t.lineCap="butt";return}c==="straight-triangle"?i.drawEdgeTrianglePath(e,t,o.allpts):(i.drawEdgePath(e,t,o.allpts,d),t.lineCap="butt")},b=function(){A&&i.drawEdgeOverlay(t,e)},E=function(){A&&i.drawEdgeUnderlay(t,e)},C=function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:w;i.drawArrowheads(t,e,L)},F=function(){i.drawElementText(t,e,null,n)};t.lineJoin="round";var y=e.pstyle("ghost").value==="yes";if(y){var x=e.pstyle("ghost-offset-x").pfValue,Q=e.pstyle("ghost-offset-y").pfValue,S=e.pstyle("ghost-opacity").value,T=m*S;t.translate(x,Q),v(T),C(T),t.translate(-x,-Q)}else B();E(),v(),C(),b(),F(),r&&t.translate(s.x1,s.y1)}};var Aw=function(e){if(!["overlay","underlay"].includes(e))throw new Error("Invalid state");return function(r,n){if(n.visible()){var A=n.pstyle("".concat(e,"-opacity")).value;if(A!==0){var a=this,i=a.usePaths(),o=n._private.rscratch,s=n.pstyle("".concat(e,"-padding")).pfValue,l=2*s,u=n.pstyle("".concat(e,"-color")).value;r.lineWidth=l,o.edgeType==="self"&&!i?r.lineCap="butt":r.lineCap="round",a.colorStrokeStyle(r,u[0],u[1],u[2],A),a.drawEdgePath(n,r,o.allpts,"solid")}}}};zn.drawEdgeOverlay=Aw("overlay");zn.drawEdgeUnderlay=Aw("underlay");zn.drawEdgePath=function(t,e,r,n){var A=t._private.rscratch,a=e,i,o=!1,s=this.usePaths(),l=t.pstyle("line-dash-pattern").pfValue,u=t.pstyle("line-dash-offset").pfValue;if(s){var c=r.join("$"),d=A.pathCacheKey&&A.pathCacheKey===c;d?(i=e=A.pathCache,o=!0):(i=e=new Path2D,A.pathCacheKey=c,A.pathCache=i)}if(a.setLineDash)switch(n){case"dotted":a.setLineDash([1,1]);break;case"dashed":a.setLineDash(l),a.lineDashOffset=u;break;case"solid":a.setLineDash([]);break}if(!o&&!A.badLine)switch(e.beginPath&&e.beginPath(),e.moveTo(r[0],r[1]),A.edgeType){case"bezier":case"self":case"compound":case"multibezier":for(var h=2;h+35&&arguments[5]!==void 0?arguments[5]:!0,i=this;if(n==null){if(a&&!i.eleTextBiggerThanMin(e))return}else if(n===!1)return;if(e.isNode()){var o=e.pstyle("label");if(!o||!o.value)return;var s=i.getLabelJustification(e);t.textAlign=s,t.textBaseline="bottom"}else{var l=e.element()._private.rscratch.badLine,u=e.pstyle("label"),c=e.pstyle("source-label"),d=e.pstyle("target-label");if(l||(!u||!u.value)&&(!c||!c.value)&&(!d||!d.value))return;t.textAlign="center",t.textBaseline="bottom"}var h=!r,f;r&&(f=r,t.translate(-f.x1,-f.y1)),A==null?(i.drawText(t,e,null,h,a),e.isEdge()&&(i.drawText(t,e,"source",h,a),i.drawText(t,e,"target",h,a))):i.drawText(t,e,A,h,a),r&&t.translate(f.x1,f.y1)};ZA.getFontCache=function(t){var e;this.fontCaches=this.fontCaches||[];for(var r=0;r2&&arguments[2]!==void 0?arguments[2]:!0,n=e.pstyle("font-style").strValue,A=e.pstyle("font-size").pfValue+"px",a=e.pstyle("font-family").strValue,i=e.pstyle("font-weight").strValue,o=r?e.effectiveOpacity()*e.pstyle("text-opacity").value:1,s=e.pstyle("text-outline-opacity").value*o,l=e.pstyle("color").value,u=e.pstyle("text-outline-color").value;t.font=n+" "+i+" "+A+" "+a,t.lineJoin="round",this.colorFillStyle(t,l[0],l[1],l[2],o),this.colorStrokeStyle(t,u[0],u[1],u[2],s)};function lf(t,e,r,n,A){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:5,i=arguments.length>6?arguments[6]:void 0;t.beginPath(),t.moveTo(e+a,r),t.lineTo(e+n-a,r),t.quadraticCurveTo(e+n,r,e+n,r+a),t.lineTo(e+n,r+A-a),t.quadraticCurveTo(e+n,r+A,e+n-a,r+A),t.lineTo(e+a,r+A),t.quadraticCurveTo(e,r+A,e,r+A-a),t.lineTo(e,r+a),t.quadraticCurveTo(e,r,e+a,r),t.closePath(),i?t.stroke():t.fill()}ZA.getTextAngle=function(t,e){var r,n=t._private,A=n.rscratch,a=e?e+"-":"",i=t.pstyle(a+"text-rotation"),o=Jr(A,"labelAngle",e);return i.strValue==="autorotate"?r=t.isEdge()?o:0:i.strValue==="none"?r=0:r=i.pfValue,r};ZA.drawText=function(t,e,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,A=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=e._private,i=a.rscratch,o=A?e.effectiveOpacity():1;if(!(A&&(o===0||e.pstyle("text-opacity").value===0))){r==="main"&&(r=null);var s=Jr(i,"labelX",r),l=Jr(i,"labelY",r),u,c,d=this.getLabelText(e,r);if(d!=null&&d!==""&&!isNaN(s)&&!isNaN(l)){this.setupTextStyle(t,e,A);var h=r?r+"-":"",f=Jr(i,"labelWidth",r),p=Jr(i,"labelHeight",r),g=e.pstyle(h+"text-margin-x").pfValue,m=e.pstyle(h+"text-margin-y").pfValue,w=e.isEdge(),v=e.pstyle("text-halign").value,B=e.pstyle("text-valign").value;w&&(v="center",B="center"),s+=g,l+=m;var b;switch(n?b=this.getTextAngle(e,r):b=0,b!==0&&(u=s,c=l,t.translate(u,c),t.rotate(b),s=0,l=0),B){case"top":break;case"center":l+=p/2;break;case"bottom":l+=p;break}var E=e.pstyle("text-background-opacity").value,C=e.pstyle("text-border-opacity").value,F=e.pstyle("text-border-width").pfValue,y=e.pstyle("text-background-padding").pfValue,x=e.pstyle("text-background-shape").strValue,Q=x.indexOf("round")===0,S=2;if(E>0||F>0&&C>0){var T=s-y;switch(v){case"left":T-=f;break;case"center":T-=f/2;break}var U=l-p-y,L=f+2*y,R=p+2*y;if(E>0){var M=t.fillStyle,H=e.pstyle("text-background-color").value;t.fillStyle="rgba("+H[0]+","+H[1]+","+H[2]+","+E*o+")",Q?lf(t,T,U,L,R,S):t.fillRect(T,U,L,R),t.fillStyle=M}if(F>0&&C>0){var k=t.strokeStyle,N=t.lineWidth,P=e.pstyle("text-border-color").value,K=e.pstyle("text-border-style").value;if(t.strokeStyle="rgba("+P[0]+","+P[1]+","+P[2]+","+C*o+")",t.lineWidth=F,t.setLineDash)switch(K){case"dotted":t.setLineDash([1,1]);break;case"dashed":t.setLineDash([4,2]);break;case"double":t.lineWidth=F/4,t.setLineDash([]);break;case"solid":t.setLineDash([]);break}if(Q?lf(t,T,U,L,R,S,"stroke"):t.strokeRect(T,U,L,R),K==="double"){var W=F/2;Q?lf(t,T+W,U+W,L-W*2,R-W*2,S,"stroke"):t.strokeRect(T+W,U+W,L-W*2,R-W*2)}t.setLineDash&&t.setLineDash([]),t.lineWidth=N,t.strokeStyle=k}}var X=2*e.pstyle("text-outline-width").pfValue;if(X>0&&(t.lineWidth=X),e.pstyle("text-wrap").value==="wrap"){var Z=Jr(i,"labelWrapCachedLines",r),Ae=Jr(i,"labelLineHeight",r),ie=f/2,re=this.getLabelJustification(e);switch(re==="auto"||(v==="left"?re==="left"?s+=-f:re==="center"&&(s+=-ie):v==="center"?re==="left"?s+=-ie:re==="right"&&(s+=ie):v==="right"&&(re==="center"?s+=ie:re==="right"&&(s+=f))),B){case"top":l-=(Z.length-1)*Ae;break;case"center":case"bottom":l-=(Z.length-1)*Ae;break}for(var z=0;z0&&t.strokeText(Z[z],s,l),t.fillText(Z[z],s,l),l+=Ae}else X>0&&t.strokeText(d,s,l),t.fillText(d,s,l);b!==0&&(t.rotate(-b),t.translate(-u,-c))}}};var gi={};gi.drawNode=function(t,e,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,A=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0,i=this,o,s,l=e._private,u=l.rscratch,c=e.position();if(!(!be(c.x)||!be(c.y))&&!(a&&!e.visible())){var d=a?e.effectiveOpacity():1,h=i.usePaths(),f,p=!1,g=e.padding();o=e.width()+2*g,s=e.height()+2*g;var m;r&&(m=r,t.translate(-m.x1,-m.y1));for(var w=e.pstyle("background-image"),v=w.value,B=new Array(v.length),b=new Array(v.length),E=0,C=0;C0&&arguments[0]!==void 0?arguments[0]:T;i.eleFillStyle(t,e,ce)},z=function(){var ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:P;i.colorStrokeStyle(t,U[0],U[1],U[2],ce)},q=function(){var ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Z;i.colorStrokeStyle(t,W[0],W[1],W[2],ce)},ee=function(ce,Y,de,Te){var V=i.nodePathCache=i.nodePathCache||[],oe=z0(de==="polygon"?de+","+Te.join(","):de,""+Y,""+ce,""+ie),fe=V[oe],pe,Be=!1;return fe!=null?(pe=fe,Be=!0,u.pathCache=pe):(pe=new Path2D,V[oe]=u.pathCache=pe),{path:pe,cacheHit:Be}},se=e.pstyle("shape").strValue,te=e.pstyle("shape-polygon-points").pfValue;if(h){t.translate(c.x,c.y);var ae=ee(o,s,se,te);f=ae.path,p=ae.cacheHit}var le=function(){if(!p){var ce=c;h&&(ce={x:0,y:0}),i.nodeShapes[i.getNodeShape(e)].draw(f||t,ce.x,ce.y,o,s,ie,u)}h?t.fill(f):t.fill()},ve=function(){for(var ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:d,Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,de=l.backgrounding,Te=0,V=0;V0&&arguments[0]!==void 0?arguments[0]:!1,Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:d;i.hasPie(e)&&(i.drawPie(t,e,Y),ce&&(h||i.nodeShapes[i.getNodeShape(e)].draw(t,c.x,c.y,o,s,ie,u)))},he=function(){var ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:d,Y=(Q>0?Q:-Q)*ce,de=Q>0?0:255;Q!==0&&(i.colorFillStyle(t,de,de,de,Y),h?t.fill(f):t.fill())},ye=function(){if(S>0){if(t.lineWidth=S,t.lineCap=M,t.lineJoin=R,t.setLineDash)switch(L){case"dotted":t.setLineDash([1,1]);break;case"dashed":t.setLineDash(k),t.lineDashOffset=N;break;case"solid":case"double":t.setLineDash([]);break}if(H!=="center"){if(t.save(),t.lineWidth*=2,H==="inside")h?t.clip(f):t.clip();else{var ce=new Path2D;ce.rect(-o/2-S,-s/2-S,o+2*S,s+2*S),ce.addPath(f),t.clip(ce,"evenodd")}h?t.stroke(f):t.stroke(),t.restore()}else h?t.stroke(f):t.stroke();if(L==="double"){t.lineWidth=S/3;var Y=t.globalCompositeOperation;t.globalCompositeOperation="destination-out",h?t.stroke(f):t.stroke(),t.globalCompositeOperation=Y}t.setLineDash&&t.setLineDash([])}},Se=function(){if(K>0){if(t.lineWidth=K,t.lineCap="butt",t.setLineDash)switch(X){case"dotted":t.setLineDash([1,1]);break;case"dashed":t.setLineDash([4,2]);break;case"solid":case"double":t.setLineDash([]);break}var ce=c;h&&(ce={x:0,y:0});var Y=i.getNodeShape(e),de=S;H==="inside"&&(de=0),H==="outside"&&(de*=2);var Te=(o+de+(K+Ae))/o,V=(s+de+(K+Ae))/s,oe=o*Te,fe=s*V,pe=i.nodeShapes[Y].points,Be;if(h){var Oe=ee(oe,fe,Y,pe);Be=Oe.path}if(Y==="ellipse")i.drawEllipsePath(Be||t,ce.x,ce.y,oe,fe);else if(["round-diamond","round-heptagon","round-hexagon","round-octagon","round-pentagon","round-polygon","round-triangle","round-tag"].includes(Y)){var Ne=0,ut=0,Ge=0;Y==="round-diamond"?Ne=(de+Ae+K)*1.4:Y==="round-heptagon"?(Ne=(de+Ae+K)*1.075,Ge=-(de/2+Ae+K)/35):Y==="round-hexagon"?Ne=(de+Ae+K)*1.12:Y==="round-pentagon"?(Ne=(de+Ae+K)*1.13,Ge=-(de/2+Ae+K)/15):Y==="round-tag"?(Ne=(de+Ae+K)*1.12,ut=(de/2+K+Ae)*.07):Y==="round-triangle"&&(Ne=(de+Ae+K)*(Math.PI/2),Ge=-(de+Ae/2+K)/Math.PI),Ne!==0&&(Te=(o+Ne)/o,oe=o*Te,["round-hexagon","round-tag"].includes(Y)||(V=(s+Ne)/s,fe=s*V)),ie=ie==="auto"?rB(oe,fe):ie;for(var He=oe/2,pt=fe/2,Je=ie+(de+K+Ae)/2,ze=new Array(pe.length/2),De=new Array(pe.length/2),nt=0;nt0){if(A=A||n.position(),a==null||i==null){var h=n.padding();a=n.width()+2*h,i=n.height()+2*h}o.colorFillStyle(r,u[0],u[1],u[2],l),o.nodeShapes[c].draw(r,A.x,A.y,a+s*2,i+s*2,d),r.fill()}}}};gi.drawNodeOverlay=aw("overlay");gi.drawNodeUnderlay=aw("underlay");gi.hasPie=function(t){return t=t[0],t._private.hasPie};gi.drawPie=function(t,e,r,n){e=e[0],n=n||e.position();var A=e.cy().style(),a=e.pstyle("pie-size"),i=n.x,o=n.y,s=e.width(),l=e.height(),u=Math.min(s,l)/2,c=0,d=this.usePaths();d&&(i=0,o=0),a.units==="%"?u=u*a.pfValue:a.pfValue!==void 0&&(u=a.pfValue/2);for(var h=1;h<=A.pieBackgroundN;h++){var f=e.pstyle("pie-"+h+"-background-size").value,p=e.pstyle("pie-"+h+"-background-color").value,g=e.pstyle("pie-"+h+"-background-opacity").value*r,m=f/100;m+c>1&&(m=1-c);var w=1.5*Math.PI+2*Math.PI*c,v=2*Math.PI*m,B=w+v;f===0||c>=1||c+m>1||(t.beginPath(),t.moveTo(i,o),t.arc(i,o,u,w,B),t.closePath(),this.colorFillStyle(t,p[0],p[1],p[2],g),t.fill(),c+=m)}};var Qr={},BP=100;Qr.getPixelRatio=function(){var t=this.data.contexts[0];if(this.forcedPixelRatio!=null)return this.forcedPixelRatio;var e=this.cy.window(),r=t.backingStorePixelRatio||t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1;return(e.devicePixelRatio||1)/r};Qr.paintCache=function(t){for(var e=this.paintCaches=this.paintCaches||[],r=!0,n,A=0;Ai.minMbLowQualFrames&&(i.motionBlurPxRatio=i.mbPxRBlurry)),i.clearingMotionBlur&&(i.motionBlurPxRatio=1),i.textureDrawLastFrame&&!c&&(u[i.NODE]=!0,u[i.SELECT_BOX]=!0);var w=s.style(),v=s.zoom(),B=A!==void 0?A:v,b=s.pan(),E={x:b.x,y:b.y},C={zoom:v,pan:{x:b.x,y:b.y}},F=i.prevViewport,y=F===void 0||C.zoom!==F.zoom||C.pan.x!==F.pan.x||C.pan.y!==F.pan.y;!y&&!(p&&!f)&&(i.motionBlurPxRatio=1),a&&(E=a),B*=o,E.x*=o,E.y*=o;var x=i.getCachedZSortedEles();function Q(ae,le,ve,ge,he){var ye=ae.globalCompositeOperation;ae.globalCompositeOperation="destination-out",i.colorFillStyle(ae,255,255,255,i.motionBlurTransparency),ae.fillRect(le,ve,ge,he),ae.globalCompositeOperation=ye}function S(ae,le){var ve,ge,he,ye;!i.clearingMotionBlur&&(ae===l.bufferContexts[i.MOTIONBLUR_BUFFER_NODE]||ae===l.bufferContexts[i.MOTIONBLUR_BUFFER_DRAG])?(ve={x:b.x*h,y:b.y*h},ge=v*h,he=i.canvasWidth*h,ye=i.canvasHeight*h):(ve=E,ge=B,he=i.canvasWidth,ye=i.canvasHeight),ae.setTransform(1,0,0,1,0,0),le==="motionBlur"?Q(ae,0,0,he,ye):!e&&(le===void 0||le)&&ae.clearRect(0,0,he,ye),r||(ae.translate(ve.x,ve.y),ae.scale(ge,ge)),a&&ae.translate(a.x,a.y),A&&ae.scale(A,A)}if(c||(i.textureDrawLastFrame=!1),c){if(i.textureDrawLastFrame=!0,!i.textureCache){i.textureCache={},i.textureCache.bb=s.mutableElements().boundingBox(),i.textureCache.texture=i.data.bufferCanvases[i.TEXTURE_BUFFER];var T=i.data.bufferContexts[i.TEXTURE_BUFFER];T.setTransform(1,0,0,1,0,0),T.clearRect(0,0,i.canvasWidth*i.textureMult,i.canvasHeight*i.textureMult),i.render({forcedContext:T,drawOnlyNodeLayer:!0,forcedPxRatio:o*i.textureMult});var C=i.textureCache.viewport={zoom:s.zoom(),pan:s.pan(),width:i.canvasWidth,height:i.canvasHeight};C.mpan={x:(0-C.pan.x)/C.zoom,y:(0-C.pan.y)/C.zoom}}u[i.DRAG]=!1,u[i.NODE]=!1;var U=l.contexts[i.NODE],L=i.textureCache.texture,C=i.textureCache.viewport;U.setTransform(1,0,0,1,0,0),d?Q(U,0,0,C.width,C.height):U.clearRect(0,0,C.width,C.height);var R=w.core("outside-texture-bg-color").value,M=w.core("outside-texture-bg-opacity").value;i.colorFillStyle(U,R[0],R[1],R[2],M),U.fillRect(0,0,C.width,C.height);var v=s.zoom();S(U,!1),U.clearRect(C.mpan.x,C.mpan.y,C.width/C.zoom/o,C.height/C.zoom/o),U.drawImage(L,C.mpan.x,C.mpan.y,C.width/C.zoom/o,C.height/C.zoom/o)}else i.textureOnViewport&&!e&&(i.textureCache=null);var H=s.extent(),k=i.pinching||i.hoverData.dragging||i.swipePanning||i.data.wheelZooming||i.hoverData.draggingEles||i.cy.animated(),N=i.hideEdgesOnViewport&&k,P=[];if(P[i.NODE]=!u[i.NODE]&&d&&!i.clearedForMotionBlur[i.NODE]||i.clearingMotionBlur,P[i.NODE]&&(i.clearedForMotionBlur[i.NODE]=!0),P[i.DRAG]=!u[i.DRAG]&&d&&!i.clearedForMotionBlur[i.DRAG]||i.clearingMotionBlur,P[i.DRAG]&&(i.clearedForMotionBlur[i.DRAG]=!0),u[i.NODE]||r||n||P[i.NODE]){var K=d&&!P[i.NODE]&&h!==1,U=e||(K?i.data.bufferContexts[i.MOTIONBLUR_BUFFER_NODE]:l.contexts[i.NODE]),W=d&&!K?"motionBlur":void 0;S(U,W),N?i.drawCachedNodes(U,x.nondrag,o,H):i.drawLayeredElements(U,x.nondrag,o,H),i.debug&&i.drawDebugPoints(U,x.nondrag),!r&&!d&&(u[i.NODE]=!1)}if(!n&&(u[i.DRAG]||r||P[i.DRAG])){var K=d&&!P[i.DRAG]&&h!==1,U=e||(K?i.data.bufferContexts[i.MOTIONBLUR_BUFFER_DRAG]:l.contexts[i.DRAG]);S(U,d&&!K?"motionBlur":void 0),N?i.drawCachedNodes(U,x.drag,o,H):i.drawCachedElements(U,x.drag,o,H),i.debug&&i.drawDebugPoints(U,x.drag),!r&&!d&&(u[i.DRAG]=!1)}if(i.showFps||!n&&u[i.SELECT_BOX]&&!r){var U=e||l.contexts[i.SELECT_BOX];if(S(U),i.selection[4]==1&&(i.hoverData.selecting||i.touchData.selecting)){var v=i.cy.zoom(),X=w.core("selection-box-border-width").value/v;U.lineWidth=X,U.fillStyle="rgba("+w.core("selection-box-color").value[0]+","+w.core("selection-box-color").value[1]+","+w.core("selection-box-color").value[2]+","+w.core("selection-box-opacity").value+")",U.fillRect(i.selection[0],i.selection[1],i.selection[2]-i.selection[0],i.selection[3]-i.selection[1]),X>0&&(U.strokeStyle="rgba("+w.core("selection-box-border-color").value[0]+","+w.core("selection-box-border-color").value[1]+","+w.core("selection-box-border-color").value[2]+","+w.core("selection-box-opacity").value+")",U.strokeRect(i.selection[0],i.selection[1],i.selection[2]-i.selection[0],i.selection[3]-i.selection[1]))}if(l.bgActivePosistion&&!i.hoverData.selecting){var v=i.cy.zoom(),Z=l.bgActivePosistion;U.fillStyle="rgba("+w.core("active-bg-color").value[0]+","+w.core("active-bg-color").value[1]+","+w.core("active-bg-color").value[2]+","+w.core("active-bg-opacity").value+")",U.beginPath(),U.arc(Z.x,Z.y,w.core("active-bg-size").pfValue/v,0,2*Math.PI),U.fill()}var Ae=i.lastRedrawTime;if(i.showFps&&Ae){Ae=Math.round(Ae);var ie=Math.round(1e3/Ae);U.setTransform(1,0,0,1,0,0),U.fillStyle="rgba(255, 0, 0, 0.75)",U.strokeStyle="rgba(255, 0, 0, 0.75)",U.lineWidth=1,U.fillText("1 frame = "+Ae+" ms = "+ie+" fps",0,20);var re=60;U.strokeRect(0,30,250,20),U.fillRect(0,30,250*Math.min(ie/re,1),20)}r||(u[i.SELECT_BOX]=!1)}if(d&&h!==1){var z=l.contexts[i.NODE],q=i.data.bufferCanvases[i.MOTIONBLUR_BUFFER_NODE],ee=l.contexts[i.DRAG],se=i.data.bufferCanvases[i.MOTIONBLUR_BUFFER_DRAG],te=function(le,ve,ge){le.setTransform(1,0,0,1,0,0),ge||!m?le.clearRect(0,0,i.canvasWidth,i.canvasHeight):Q(le,0,0,i.canvasWidth,i.canvasHeight);var he=h;le.drawImage(ve,0,0,i.canvasWidth*he,i.canvasHeight*he,0,0,i.canvasWidth,i.canvasHeight)};(u[i.NODE]||P[i.NODE])&&(te(z,q,P[i.NODE]),u[i.NODE]=!1),(u[i.DRAG]||P[i.DRAG])&&(te(ee,se,P[i.DRAG]),u[i.DRAG]=!1)}i.prevViewport=C,i.clearingMotionBlur&&(i.clearingMotionBlur=!1,i.motionBlurCleared=!0,i.motionBlur=!0),d&&(i.motionBlurTimeout=setTimeout(function(){i.motionBlurTimeout=null,i.clearedForMotionBlur[i.NODE]=!1,i.clearedForMotionBlur[i.DRAG]=!1,i.motionBlur=!1,i.clearingMotionBlur=!c,i.mbFrames=0,u[i.NODE]=!0,u[i.DRAG]=!0,i.redraw()},BP)),e||s.emit("render")};var vA={};vA.drawPolygonPath=function(t,e,r,n,A,a){var i=n/2,o=A/2;t.beginPath&&t.beginPath(),t.moveTo(e+i*a[0],r+o*a[1]);for(var s=1;s0&&i>0){h.clearRect(0,0,a,i),h.globalCompositeOperation="source-over";var f=this.getCachedZSortedEles();if(t.full)h.translate(-n.x1*l,-n.y1*l),h.scale(l,l),this.drawElements(h,f),h.scale(1/l,1/l),h.translate(n.x1*l,n.y1*l);else{var p=e.pan(),g={x:p.x*l,y:p.y*l};l*=e.zoom(),h.translate(g.x,g.y),h.scale(l,l),this.drawElements(h,f),h.scale(1/l,1/l),h.translate(-g.x,-g.y)}t.bg&&(h.globalCompositeOperation="destination-over",h.fillStyle=t.bg,h.rect(0,0,a,i),h.fill())}return d};function wP(t,e){for(var r=atob(t),n=new ArrayBuffer(r.length),A=new Uint8Array(n),a=0;a"u"?"undefined":Pt(OffscreenCanvas))!=="undefined")r=new OffscreenCanvas(t,e);else{var n=this.cy.window(),A=n.document;r=A.createElement("canvas"),r.width=t,r.height=e}return r};[nw,Fn,zn,$h,ZA,gi,Qr,vA,os,sw].forEach(function(t){Re(Xe,t)});var EP=[{name:"null",impl:$B},{name:"base",impl:ew},{name:"canvas",impl:CP}],xP=[{type:"layout",extensions:Ik},{type:"renderer",extensions:EP}],uw={},cw={};function fw(t,e,r){var n=r,A=function(F){tt("Can not register `"+e+"` for `"+t+"` since `"+F+"` already exists in the prototype and can not be overridden")};if(t==="core"){if(Ho.prototype[e])return A(e);Ho.prototype[e]=r}else if(t==="collection"){if(qt.prototype[e])return A(e);qt.prototype[e]=r}else if(t==="layout"){for(var a=function(F){this.options=F,r.call(this,F),_e(this._private)||(this._private={}),this._private.cy=F.cy,this._private.listeners=[],this.createEmitter()},i=a.prototype=Object.create(r.prototype),o=[],s=0;sf&&(this.rect.x-=(this.labelWidth-f)/2,this.setWidth(this.labelWidth)),this.labelHeight>p&&(this.labelPos=="center"?this.rect.y-=(this.labelHeight-p)/2:this.labelPos=="top"&&(this.rect.y-=this.labelHeight-p),this.setHeight(this.labelHeight))}}},c.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==i.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},c.prototype.transform=function(h){var f=this.rect.x;f>s.WORLD_BOUNDARY?f=s.WORLD_BOUNDARY:f<-s.WORLD_BOUNDARY&&(f=-s.WORLD_BOUNDARY);var p=this.rect.y;p>s.WORLD_BOUNDARY?p=s.WORLD_BOUNDARY:p<-s.WORLD_BOUNDARY&&(p=-s.WORLD_BOUNDARY);var g=new u(f,p),m=h.inverseTransformPoint(g);this.setLocation(m.x,m.y)},c.prototype.getLeft=function(){return this.rect.x},c.prototype.getRight=function(){return this.rect.x+this.rect.width},c.prototype.getTop=function(){return this.rect.y},c.prototype.getBottom=function(){return this.rect.y+this.rect.height},c.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},r.exports=c},function(r,n,A){function a(i,o){i==null&&o==null?(this.x=0,this.y=0):(this.x=i,this.y=o)}a.prototype.getX=function(){return this.x},a.prototype.getY=function(){return this.y},a.prototype.setX=function(i){this.x=i},a.prototype.setY=function(i){this.y=i},a.prototype.getDifference=function(i){return new DimensionD(this.x-i.x,this.y-i.y)},a.prototype.getCopy=function(){return new a(this.x,this.y)},a.prototype.translate=function(i){return this.x+=i.width,this.y+=i.height,this},r.exports=a},function(r,n,A){var a=A(2),i=A(10),o=A(0),s=A(6),l=A(3),u=A(1),c=A(13),d=A(12),h=A(11);function f(g,m,w){a.call(this,w),this.estimatedSize=i.MIN_VALUE,this.margin=o.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=g,m!=null&&m instanceof s?this.graphManager=m:m!=null&&m instanceof Layout&&(this.graphManager=m.graphManager)}f.prototype=Object.create(a.prototype);for(var p in a)f[p]=a[p];f.prototype.getNodes=function(){return this.nodes},f.prototype.getEdges=function(){return this.edges},f.prototype.getGraphManager=function(){return this.graphManager},f.prototype.getParent=function(){return this.parent},f.prototype.getLeft=function(){return this.left},f.prototype.getRight=function(){return this.right},f.prototype.getTop=function(){return this.top},f.prototype.getBottom=function(){return this.bottom},f.prototype.isConnected=function(){return this.isConnected},f.prototype.add=function(g,m,w){if(m==null&&w==null){var v=g;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(v)>-1)throw"Node already in graph!";return v.owner=this,this.getNodes().push(v),v}else{var B=g;if(!(this.getNodes().indexOf(m)>-1&&this.getNodes().indexOf(w)>-1))throw"Source or target not in graph!";if(!(m.owner==w.owner&&m.owner==this))throw"Both owners must be this graph!";return m.owner!=w.owner?null:(B.source=m,B.target=w,B.isInterGraph=!1,this.getEdges().push(B),m.edges.push(B),w!=m&&w.edges.push(B),B)}},f.prototype.remove=function(g){var m=g;if(g instanceof l){if(m==null)throw"Node is null!";if(!(m.owner!=null&&m.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";for(var w=m.edges.slice(),v,B=w.length,b=0;b-1&&F>-1))throw"Source and/or target doesn't know this edge!";v.source.edges.splice(C,1),v.target!=v.source&&v.target.edges.splice(F,1);var E=v.source.owner.getEdges().indexOf(v);if(E==-1)throw"Not in owner's edge list!";v.source.owner.getEdges().splice(E,1)}},f.prototype.updateLeftTop=function(){for(var g=i.MAX_VALUE,m=i.MAX_VALUE,w,v,B,b=this.getNodes(),E=b.length,C=0;Cw&&(g=w),m>v&&(m=v)}return g==i.MAX_VALUE?null:(b[0].getParent().paddingLeft!=null?B=b[0].getParent().paddingLeft:B=this.margin,this.left=m-B,this.top=g-B,new d(this.left,this.top))},f.prototype.updateBounds=function(g){for(var m=i.MAX_VALUE,w=-i.MAX_VALUE,v=i.MAX_VALUE,B=-i.MAX_VALUE,b,E,C,F,y,x=this.nodes,Q=x.length,S=0;Sb&&(m=b),wC&&(v=C),Bb&&(m=b),wC&&(v=C),B=this.nodes.length){var Q=0;w.forEach(function(S){S.owner==g&&Q++}),Q==this.nodes.length&&(this.isConnected=!0)}},r.exports=f},function(r,n,A){var a,i=A(1);function o(s){a=A(5),this.layout=s,this.graphs=[],this.edges=[]}o.prototype.addRoot=function(){var s=this.layout.newGraph(),l=this.layout.newNode(null),u=this.add(s,l);return this.setRootGraph(u),this.rootGraph},o.prototype.add=function(s,l,u,c,d){if(u==null&&c==null&&d==null){if(s==null)throw"Graph is null!";if(l==null)throw"Parent node is null!";if(this.graphs.indexOf(s)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(s),s.parent!=null)throw"Already has a parent!";if(l.child!=null)throw"Already has a child!";return s.parent=l,l.child=s,s}else{d=u,c=l,u=s;var h=c.getOwner(),f=d.getOwner();if(!(h!=null&&h.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(f!=null&&f.getGraphManager()==this))throw"Target not in this graph mgr!";if(h==f)return u.isInterGraph=!1,h.add(u,c,d);if(u.isInterGraph=!0,u.source=c,u.target=d,this.edges.indexOf(u)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(u),!(u.source!=null&&u.target!=null))throw"Edge source and/or target is null!";if(!(u.source.edges.indexOf(u)==-1&&u.target.edges.indexOf(u)==-1))throw"Edge already in source and/or target incidency list!";return u.source.edges.push(u),u.target.edges.push(u),u}},o.prototype.remove=function(s){if(s instanceof a){var l=s;if(l.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(l==this.rootGraph||l.parent!=null&&l.parent.graphManager==this))throw"Invalid parent node!";var u=[];u=u.concat(l.getEdges());for(var c,d=u.length,h=0;h=s.getRight()?l[0]+=Math.min(s.getX()-o.getX(),o.getRight()-s.getRight()):s.getX()<=o.getX()&&s.getRight()>=o.getRight()&&(l[0]+=Math.min(o.getX()-s.getX(),s.getRight()-o.getRight())),o.getY()<=s.getY()&&o.getBottom()>=s.getBottom()?l[1]+=Math.min(s.getY()-o.getY(),o.getBottom()-s.getBottom()):s.getY()<=o.getY()&&s.getBottom()>=o.getBottom()&&(l[1]+=Math.min(o.getY()-s.getY(),s.getBottom()-o.getBottom()));var d=Math.abs((s.getCenterY()-o.getCenterY())/(s.getCenterX()-o.getCenterX()));s.getCenterY()===o.getCenterY()&&s.getCenterX()===o.getCenterX()&&(d=1);var h=d*l[0],f=l[1]/d;l[0]h)return l[0]=u,l[1]=p,l[2]=d,l[3]=x,!1;if(cd)return l[0]=f,l[1]=c,l[2]=F,l[3]=h,!1;if(ud?(l[0]=m,l[1]=w,U=!0):(l[0]=g,l[1]=p,U=!0):R===H&&(u>d?(l[0]=f,l[1]=p,U=!0):(l[0]=v,l[1]=w,U=!0)),-M===H?d>u?(l[2]=y,l[3]=x,L=!0):(l[2]=F,l[3]=C,L=!0):M===H&&(d>u?(l[2]=E,l[3]=C,L=!0):(l[2]=Q,l[3]=x,L=!0)),U&&L)return!1;if(u>d?c>h?(k=this.getCardinalDirection(R,H,4),N=this.getCardinalDirection(M,H,2)):(k=this.getCardinalDirection(-R,H,3),N=this.getCardinalDirection(-M,H,1)):c>h?(k=this.getCardinalDirection(-R,H,1),N=this.getCardinalDirection(-M,H,3)):(k=this.getCardinalDirection(R,H,2),N=this.getCardinalDirection(M,H,4)),!U)switch(k){case 1:K=p,P=u+-b/H,l[0]=P,l[1]=K;break;case 2:P=v,K=c+B*H,l[0]=P,l[1]=K;break;case 3:K=w,P=u+b/H,l[0]=P,l[1]=K;break;case 4:P=m,K=c+-B*H,l[0]=P,l[1]=K;break}if(!L)switch(N){case 1:X=C,W=d+-T/H,l[2]=W,l[3]=X;break;case 2:W=Q,X=h+S*H,l[2]=W,l[3]=X;break;case 3:X=x,W=d+T/H,l[2]=W,l[3]=X;break;case 4:W=y,X=h+-S*H,l[2]=W,l[3]=X;break}}return!1},i.getCardinalDirection=function(o,s,l){return o>s?l:1+l%4},i.getIntersection=function(o,s,l,u){if(u==null)return this.getIntersection2(o,s,l);var c=o.x,d=o.y,h=s.x,f=s.y,p=l.x,g=l.y,m=u.x,w=u.y,v=void 0,B=void 0,b=void 0,E=void 0,C=void 0,F=void 0,y=void 0,x=void 0,Q=void 0;return b=f-d,C=c-h,y=h*d-c*f,E=w-g,F=p-m,x=m*g-p*w,Q=b*F-E*C,Q===0?null:(v=(C*x-F*y)/Q,B=(E*y-b*x)/Q,new a(v,B))},i.angleOfVector=function(o,s,l,u){var c=void 0;return o!==l?(c=Math.atan((u-s)/(l-o)),l0?1:i<0?-1:0},a.floor=function(i){return i<0?Math.ceil(i):Math.floor(i)},a.ceil=function(i){return i<0?Math.floor(i):Math.ceil(i)},r.exports=a},function(r,n,A){function a(){}a.MAX_VALUE=2147483647,a.MIN_VALUE=-2147483648,r.exports=a},function(r,n,A){var a=function(){function c(d,h){for(var f=0;f"u"?"undefined":a(o);return o==null||s!="object"&&s!="function"},r.exports=i},function(r,n,A){function a(p){if(Array.isArray(p)){for(var g=0,m=Array(p.length);g0&&g;){for(b.push(C[0]);b.length>0&&g;){var F=b[0];b.splice(0,1),B.add(F);for(var y=F.getEdges(),v=0;v-1&&C.splice(T,1)}B=new Set,E=new Map}}return p},f.prototype.createDummyNodesForBendpoints=function(p){for(var g=[],m=p.source,w=this.graphManager.calcLowestCommonAncestor(p.source,p.target),v=0;v0){for(var w=this.edgeToDummyNodes.get(m),v=0;v=0&&g.splice(x,1);var Q=E.getNeighborsList();Q.forEach(function(U){if(m.indexOf(U)<0){var L=w.get(U),R=L-1;R==1&&F.push(U),w.set(U,R)}})}m=m.concat(F),(g.length==1||g.length==2)&&(v=!0,B=g[0])}return B},f.prototype.setGraphManager=function(p){this.graphManager=p},r.exports=f},function(r,n,A){function a(){}a.seed=1,a.x=0,a.nextDouble=function(){return a.x=Math.sin(a.seed++)*1e4,a.x-Math.floor(a.x)},r.exports=a},function(r,n,A){var a=A(4);function i(o,s){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}i.prototype.getWorldOrgX=function(){return this.lworldOrgX},i.prototype.setWorldOrgX=function(o){this.lworldOrgX=o},i.prototype.getWorldOrgY=function(){return this.lworldOrgY},i.prototype.setWorldOrgY=function(o){this.lworldOrgY=o},i.prototype.getWorldExtX=function(){return this.lworldExtX},i.prototype.setWorldExtX=function(o){this.lworldExtX=o},i.prototype.getWorldExtY=function(){return this.lworldExtY},i.prototype.setWorldExtY=function(o){this.lworldExtY=o},i.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},i.prototype.setDeviceOrgX=function(o){this.ldeviceOrgX=o},i.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},i.prototype.setDeviceOrgY=function(o){this.ldeviceOrgY=o},i.prototype.getDeviceExtX=function(){return this.ldeviceExtX},i.prototype.setDeviceExtX=function(o){this.ldeviceExtX=o},i.prototype.getDeviceExtY=function(){return this.ldeviceExtY},i.prototype.setDeviceExtY=function(o){this.ldeviceExtY=o},i.prototype.transformX=function(o){var s=0,l=this.lworldExtX;return l!=0&&(s=this.ldeviceOrgX+(o-this.lworldOrgX)*this.ldeviceExtX/l),s},i.prototype.transformY=function(o){var s=0,l=this.lworldExtY;return l!=0&&(s=this.ldeviceOrgY+(o-this.lworldOrgY)*this.ldeviceExtY/l),s},i.prototype.inverseTransformX=function(o){var s=0,l=this.ldeviceExtX;return l!=0&&(s=this.lworldOrgX+(o-this.ldeviceOrgX)*this.lworldExtX/l),s},i.prototype.inverseTransformY=function(o){var s=0,l=this.ldeviceExtY;return l!=0&&(s=this.lworldOrgY+(o-this.ldeviceOrgY)*this.lworldExtY/l),s},i.prototype.inverseTransformPoint=function(o){var s=new a(this.inverseTransformX(o.x),this.inverseTransformY(o.y));return s},r.exports=i},function(r,n,A){function a(h){if(Array.isArray(h)){for(var f=0,p=Array(h.length);fo.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*o.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(h-o.ADAPTATION_LOWER_NODE_LIMIT)/(o.ADAPTATION_UPPER_NODE_LIMIT-o.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-o.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=o.MAX_NODE_DISPLACEMENT_INCREMENTAL):(h>o.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(o.COOLING_ADAPTATION_FACTOR,1-(h-o.ADAPTATION_LOWER_NODE_LIMIT)/(o.ADAPTATION_UPPER_NODE_LIMIT-o.ADAPTATION_LOWER_NODE_LIMIT)*(1-o.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=o.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},c.prototype.calcSpringForces=function(){for(var h=this.getAllEdges(),f,p=0;p0&&arguments[0]!==void 0?arguments[0]:!0,f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,p,g,m,w,v=this.getAllNodes(),B;if(this.useFRGridVariant)for(this.totalIterations%o.GRID_CALCULATION_CHECK_PERIOD==1&&h&&this.updateGrid(),B=new Set,p=0;pb||B>b)&&(h.gravitationForceX=-this.gravityConstant*m,h.gravitationForceY=-this.gravityConstant*w)):(b=f.getEstimatedSize()*this.compoundGravityRangeFactor,(v>b||B>b)&&(h.gravitationForceX=-this.gravityConstant*m*this.compoundGravityConstant,h.gravitationForceY=-this.gravityConstant*w*this.compoundGravityConstant))},c.prototype.isConverged=function(){var h,f=!1;return this.totalIterations>this.maxIterations/3&&(f=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),h=this.totalDisplacement=v.length||b>=v[0].length)){for(var E=0;Ec}}]),l}();r.exports=s},function(r,n,A){var a=function(){function s(l,u){for(var c=0;c2&&arguments[2]!==void 0?arguments[2]:1,d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,h=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;i(this,s),this.sequence1=l,this.sequence2=u,this.match_score=c,this.mismatch_penalty=d,this.gap_penalty=h,this.iMax=l.length+1,this.jMax=u.length+1,this.grid=new Array(this.iMax);for(var f=0;f=0;l--){var u=this.listeners[l];u.event===o&&u.callback===s&&this.listeners.splice(l,1)}},i.emit=function(o,s){for(var l=0;lu.coolingFactor*u.maxNodeDisplacement&&(this.displacementX=u.coolingFactor*u.maxNodeDisplacement*o.sign(this.displacementX)),Math.abs(this.displacementY)>u.coolingFactor*u.maxNodeDisplacement&&(this.displacementY=u.coolingFactor*u.maxNodeDisplacement*o.sign(this.displacementY)),this.child==null?this.moveBy(this.displacementX,this.displacementY):this.child.getNodes().length==0?this.moveBy(this.displacementX,this.displacementY):this.propogateDisplacementToChildren(this.displacementX,this.displacementY),u.totalDisplacement+=Math.abs(this.displacementX)+Math.abs(this.displacementY),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0},s.prototype.propogateDisplacementToChildren=function(u,c){for(var d=this.getChild().getNodes(),h,f=0;f0)this.positionNodesRadially(C);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var F=new Set(this.getAllNodes()),y=this.nodesWithGravity.filter(function(x){return F.has(x)});this.graphManager.setAllNodesToApplyGravitation(y),this.positionNodesRandomly()}}return this.initSpringEmbedder(),this.runSpringEmbedder(),!0},b.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished)if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;if(this.totalIterations%d.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged())if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;this.coolingCycle++,this.layoutQuality==0?this.coolingAdjuster=this.coolingCycle:this.layoutQuality==1&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var C=new Set(this.getAllNodes()),F=this.nodesWithGravity.filter(function(Q){return C.has(Q)});this.graphManager.setAllNodesToApplyGravitation(F),this.graphManager.updateBounds(),this.updateGrid(),this.coolingFactor=d.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),this.coolingFactor=d.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var y=!this.isTreeGrowing&&!this.isGrowthFinished,x=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(y,x),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},b.prototype.getPositionsData=function(){for(var C=this.graphManager.getAllNodes(),F={},y=0;y1){var U;for(U=0;Ux&&(x=Math.floor(T.y)),S=Math.floor(T.x+c.DEFAULT_COMPONENT_SEPERATION)}this.transform(new p(h.WORLD_CENTER_X-T.x/2,h.WORLD_CENTER_Y-T.y/2))},b.radialLayout=function(C,F,y){var x=Math.max(this.maxDiagonalInTree(C),c.DEFAULT_RADIAL_SEPARATION);b.branchRadialLayout(F,null,0,359,0,x);var Q=v.calculateBounds(C),S=new B;S.setDeviceOrgX(Q.getMinX()),S.setDeviceOrgY(Q.getMinY()),S.setWorldOrgX(y.x),S.setWorldOrgY(y.y);for(var T=0;T1;){var X=W[0];W.splice(0,1);var Z=H.indexOf(X);Z>=0&&H.splice(Z,1),P--,k--}F!=null?K=(H.indexOf(W[0])+1)%P:K=0;for(var Ae=Math.abs(x-y)/k,ie=K;N!=k;ie=++ie%P){var re=H[ie].getOtherEnd(C);if(re!=F){var z=(y+N*Ae)%360,q=(z+Ae)%360;b.branchRadialLayout(re,C,z,q,Q+S,S),N++}}},b.maxDiagonalInTree=function(C){for(var F=m.MIN_VALUE,y=0;yF&&(F=Q)}return F},b.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},b.prototype.groupZeroDegreeMembers=function(){var C=this,F={};this.memberGroups={},this.idToDummyNode={};for(var y=[],x=this.graphManager.getAllNodes(),Q=0;Q"u"&&(F[U]=[]),F[U]=F[U].concat(S)}Object.keys(F).forEach(function(L){if(F[L].length>1){var R="DummyCompound_"+L;C.memberGroups[R]=F[L];var M=F[L][0].getParent(),H=new l(C.graphManager);H.id=R,H.paddingLeft=M.paddingLeft||0,H.paddingRight=M.paddingRight||0,H.paddingBottom=M.paddingBottom||0,H.paddingTop=M.paddingTop||0,C.idToDummyNode[R]=H;var k=C.getGraphManager().add(C.newGraph(),H),N=M.getChild();N.add(H);for(var P=0;P=0;C--){var F=this.compoundOrder[C],y=F.id,x=F.paddingLeft,Q=F.paddingTop;this.adjustLocations(this.tiledMemberPack[y],F.rect.x,F.rect.y,x,Q)}},b.prototype.repopulateZeroDegreeMembers=function(){var C=this,F=this.tiledZeroDegreePack;Object.keys(F).forEach(function(y){var x=C.idToDummyNode[y],Q=x.paddingLeft,S=x.paddingTop;C.adjustLocations(F[y],x.rect.x,x.rect.y,Q,S)})},b.prototype.getToBeTiled=function(C){var F=C.id;if(this.toBeTiled[F]!=null)return this.toBeTiled[F];var y=C.getChild();if(y==null)return this.toBeTiled[F]=!1,!1;for(var x=y.getNodes(),Q=0;Q0)return this.toBeTiled[F]=!1,!1;if(S.getChild()==null){this.toBeTiled[S.id]=!1;continue}if(!this.getToBeTiled(S))return this.toBeTiled[F]=!1,!1}return this.toBeTiled[F]=!0,!0},b.prototype.getNodeDegree=function(C){C.id;for(var F=C.getEdges(),y=0,x=0;xL&&(L=M.rect.height)}y+=L+C.verticalPadding}},b.prototype.tileCompoundMembers=function(C,F){var y=this;this.tiledMemberPack=[],Object.keys(C).forEach(function(x){var Q=F[x];y.tiledMemberPack[x]=y.tileNodes(C[x],Q.paddingLeft+Q.paddingRight),Q.rect.width=y.tiledMemberPack[x].width,Q.rect.height=y.tiledMemberPack[x].height})},b.prototype.tileNodes=function(C,F){var y=c.TILING_PADDING_VERTICAL,x=c.TILING_PADDING_HORIZONTAL,Q={rows:[],rowWidth:[],rowHeight:[],width:0,height:F,verticalPadding:y,horizontalPadding:x};C.sort(function(U,L){return U.rect.width*U.rect.height>L.rect.width*L.rect.height?-1:U.rect.width*U.rect.height0&&(T+=C.horizontalPadding),C.rowWidth[y]=T,C.width0&&(U+=C.verticalPadding);var L=0;U>C.rowHeight[y]&&(L=C.rowHeight[y],C.rowHeight[y]=U,L=C.rowHeight[y]-L),C.height+=L,C.rows[y].push(F)},b.prototype.getShortestRowIndex=function(C){for(var F=-1,y=Number.MAX_VALUE,x=0;xy&&(F=x,y=C.rowWidth[x]);return F},b.prototype.canAddHorizontal=function(C,F,y){var x=this.getShortestRowIndex(C);if(x<0)return!0;var Q=C.rowWidth[x];if(Q+C.horizontalPadding+F<=C.width)return!0;var S=0;C.rowHeight[x]0&&(S=y+C.verticalPadding-C.rowHeight[x]);var T;C.width-Q>=F+C.horizontalPadding?T=(C.height+S)/(Q+F+C.horizontalPadding):T=(C.height+S)/C.width,S=y+C.verticalPadding;var U;return C.widthS&&F!=y){x.splice(-1,1),C.rows[y].push(Q),C.rowWidth[F]=C.rowWidth[F]-S,C.rowWidth[y]=C.rowWidth[y]+S,C.width=C.rowWidth[instance.getLongestRowIndex(C)];for(var T=Number.MIN_VALUE,U=0;UT&&(T=x[U].height);F>0&&(T+=C.verticalPadding);var L=C.rowHeight[F]+C.rowHeight[y];C.rowHeight[F]=T,C.rowHeight[y]0)for(var N=Q;N<=S;N++)k[0]+=this.grid[N][T-1].length+this.grid[N][T].length-1;if(S0)for(var N=T;N<=U;N++)k[3]+=this.grid[Q-1][N].length+this.grid[Q][N].length-1;for(var P=m.MAX_VALUE,K,W,X=0;X0){var U;U=B.getGraphManager().add(B.newGraph(),y),this.processChildrenList(U,F,B)}}},p.prototype.stop=function(){return this.stopped=!0,this};var m=function(v){v("layout","cose-bilkent",p)};typeof cytoscape<"u"&&m(cytoscape),n.exports=m}])})})(pw);var IP=pw.exports;const LP=jm(IP);var gw={exports:{}};(function(t,e){(function(n,A){t.exports=A()})(uu,function(){return function(r){var n={};function A(a){if(n[a])return n[a].exports;var i=n[a]={i:a,l:!1,exports:{}};return r[a].call(i.exports,i,i.exports,A),i.l=!0,i.exports}return A.m=r,A.c=n,A.i=function(a){return a},A.d=function(a,i,o){A.o(a,i)||Object.defineProperty(a,i,{configurable:!1,enumerable:!0,get:o})},A.n=function(a){var i=a&&a.__esModule?function(){return a.default}:function(){return a};return A.d(i,"a",i),i},A.o=function(a,i){return Object.prototype.hasOwnProperty.call(a,i)},A.p="",A(A.s=7)}([function(r,n,A){var a=A(5),i=a.getBoundingBox;function o(s,l){var u={getBoundingClientRect:function(){return i(s,l)}};return u}r.exports={getRef:o}},function(r,n,A){r.exports=Object.assign!=null?Object.assign.bind(Object):function(a){for(var i=arguments.length,o=Array(i>1?i-1:0),s=1;s1&&(console.warn("Popper.js Extension should only be used on one element."),console.warn("Ignoring all subsequent elements"))}r.exports={popper:u,popperRef:c}},function(r,n,A){var a=A(1),i=A(2),o=i.getPopper,s=A(0),l=s.getRef;function u(h){return o(this,d(this,h))}function c(h){return l(this,d(this,h))}function d(h,f){var p={boundingBox:{top:0,left:0,right:0,bottom:0,w:3,h:3},renderedDimensions:function(){return{w:3,h:3}},renderedPosition:function(){return{x:0,y:0}},popper:{},cy:h};return a({},p,f)}r.exports={popper:u,popperRef:c}},function(r,n,A){function a(i,o){var s=o.renderedPosition,l=o.cy,u=o.renderedDimensions,c=l.container().getBoundingClientRect(),d=u(i),h=s(i);return{top:h.y+c.top,left:h.x+c.left,right:h.x+d.w+c.left,bottom:h.y+d.h+c.top,width:d.w,height:d.h}}r.exports={getBoundingBox:a}},function(r,n,A){function a(i,o){var s=null;if(typeof o=="function")s=o(i);else{if(o instanceof HTMLElement)return o;throw new Error("Can not create popper from 'target' with unknown type")}if(s===null)throw new Error("No 'target' specified to create popper");return s}r.exports={getContent:a}},function(r,n,A){var a=A(4),i=A(3),o=function(l){if(typeof l!="function")throw new Error("Provide 'popperFactory' before registering the module");return function(c){c&&(c("core","popperFactory",l),c("collection","popperFactory",l),c("core","popper",a.popper),c("collection","popper",i.popper),c("core","popperRef",a.popperRef),c("collection","popperRef",i.popperRef))}};r.exports=o}])})})(gw);var DP=gw.exports;const RP=jm(DP);/*! * html2canvas 1.4.1 * Copyright (c) 2022 Niklas von Hertzen * Released under MIT License @@ -201,16 +209,16 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var gd=function(t,e){return gd=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var A in n)Object.prototype.hasOwnProperty.call(n,A)&&(r[A]=n[A])},gd(t,e)};function nn(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");gd(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var vd=function(){return vd=Object.assign||function(e){for(var r,n=1,A=arguments.length;n0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]=55296&&A<=56319&&r>10)+55296,i%1024+56320)),(A+1===r||n.length>16384)&&(a+=String.fromCharCode.apply(String,n),n.length=0)}return a},Pv="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",OP=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Ks=0;Ks"u"?[]:new Uint8Array(256);for(var Gs=0;Gs>4,u[A++]=(i&15)<<4|o>>2,u[A++]=(o&3)<<6|s&63;return l},kP=function(t){for(var e=t.length,r=[],n=0;n>OA,KP=1<>OA,VP=vw+GP,$P=VP,zP=32,WP=$P+zP,_P=65536>>zh,XP=1<=0){if(e<55296||e>56319&&e<=65535)return r=this.index[e>>OA],r=(r<>OA)],r=(r<>zh),r=this.index[r],r+=e>>OA&YP,r=this.index[r],r=(r<"u"?[]:new Uint8Array(256);for(var Vs=0;VsVv?(A.push(!0),o-=Vv):A.push(!1),["normal","auto","loose"].indexOf(e)!==-1&&[8208,8211,12316,12448].indexOf(a)!==-1)return n.push(i),r.push(Bd);if(o===r4||o===md){if(i===0)return n.push(i),r.push(SA);var s=r[i-1];return u4.indexOf(s)===-1?(n.push(n[i-1]),r.push(s)):(n.push(i),r.push(SA))}if(n.push(i),o===o4)return r.push(e==="strict"?wd:ko);if(o===ww||o===i4)return r.push(SA);if(o===s4)return a>=131072&&a<=196605||a>=196608&&a<=262141?r.push(ko):r.push(SA);r.push(o)}),[n,r,A]},gf=function(t,e,r,n){var A=n[r];if(Array.isArray(t)?t.indexOf(A)!==-1:t===A)for(var a=r;a<=n.length;){a++;var i=n[a];if(i===e)return!0;if(i!==eA)break}if(A===eA)for(var a=r;a>0;){a--;var o=n[a];if(Array.isArray(t)?t.indexOf(o)!==-1:t===o)for(var s=r;s<=n.length;){s++;var i=n[s];if(i===e)return!0;if(i!==eA)break}if(o!==eA)break}return!1},jv=function(t,e){for(var r=t;r>=0;){var n=e[r];if(n===eA)r--;else return n}return 0},d4=function(t,e,r,n,A){if(r[n]===0)return $e;var a=n-1;if(Array.isArray(A)&&A[a]===!0)return $e;var i=a-1,o=a+1,s=e[a],l=i>=0?e[i]:0,u=e[o];if(s===mw&&u===yw)return $e;if(Qd.indexOf(s)!==-1)return Cw;if(Qd.indexOf(u)!==-1||bw.indexOf(u)!==-1)return $e;if(jv(a,e)===Bw)return _s;if(Fd.get(t[a])===md||(s===zs||s===Ws)&&Fd.get(t[o])===md||s===$v||u===$v||s===zv||[eA,yd,Xi].indexOf(s)===-1&&u===zv||[$s,Ri,a4,ha,pa].indexOf(u)!==-1||jv(a,e)===Mi||gf(hf,Mi,a,e)||gf([$s,Ri],wd,a,e)||gf(Wv,Wv,a,e))return $e;if(s===eA)return _s;if(s===hf||u===hf)return $e;if(u===Bd||s===Bd)return _s;if([yd,Xi,wd].indexOf(u)!==-1||s===A4||l===Ed&&c4.indexOf(s)!==-1||s===pa&&u===Ed||u===_v||Ln.indexOf(u)!==-1&&s===Br||Ln.indexOf(s)!==-1&&u===Br||s===ji&&[ko,zs,Ws].indexOf(u)!==-1||[ko,zs,Ws].indexOf(s)!==-1&&u===Yi||Ln.indexOf(s)!==-1&&Xv.indexOf(u)!==-1||Xv.indexOf(s)!==-1&&Ln.indexOf(u)!==-1||[ji,Yi].indexOf(s)!==-1&&(u===Br||[Mi,Xi].indexOf(u)!==-1&&e[o+1]===Br)||[Mi,Xi].indexOf(s)!==-1&&u===Br||s===Br&&[Br,pa,ha].indexOf(u)!==-1)return $e;if([Br,pa,ha,$s,Ri].indexOf(u)!==-1)for(var c=a;c>=0;){var d=e[c];if(d===Br)return $e;if([pa,ha].indexOf(d)!==-1)c--;else break}if([ji,Yi].indexOf(u)!==-1)for(var c=[$s,Ri].indexOf(s)!==-1?i:a;c>=0;){var d=e[c];if(d===Br)return $e;if([pa,ha].indexOf(d)!==-1)c--;else break}if(xd===s&&[xd,Fl,Cd,bd].indexOf(u)!==-1||[Fl,Cd].indexOf(s)!==-1&&[Fl,Ql].indexOf(u)!==-1||[Ql,bd].indexOf(s)!==-1&&u===Ql||Yv.indexOf(s)!==-1&&[_v,Yi].indexOf(u)!==-1||Yv.indexOf(u)!==-1&&s===ji||Ln.indexOf(s)!==-1&&Ln.indexOf(u)!==-1||s===ha&&Ln.indexOf(u)!==-1||Ln.concat(Br).indexOf(s)!==-1&&u===Mi&&l4.indexOf(t[o])===-1||Ln.concat(Br).indexOf(u)!==-1&&s===Ri)return $e;if(s===pf&&u===pf){for(var h=r[a],f=1;h>0&&(h--,e[h]===pf);)f++;if(f%2!==0)return $e}return s===zs&&u===Ws?$e:_s},h4=function(t,e){e||(e={lineBreak:"normal",wordBreak:"normal"});var r=f4(t,e.lineBreak),n=r[0],A=r[1],a=r[2];(e.wordBreak==="break-all"||e.wordBreak==="break-word")&&(A=A.map(function(o){return[Br,SA,ww].indexOf(o)!==-1?ko:o}));var i=e.wordBreak==="keep-all"?a.map(function(o,s){return o&&t[s]>=19968&&t[s]<=40959}):void 0;return[n,A,i]},p4=function(){function t(e,r,n,A){this.codePoints=e,this.required=r===Cw,this.start=n,this.end=A}return t.prototype.slice=function(){return Tt.apply(void 0,this.codePoints.slice(this.start,this.end))},t}(),g4=function(t,e){var r=Ec(t),n=h4(r,e),A=n[0],a=n[1],i=n[2],o=r.length,s=0,l=0;return{next:function(){if(l>=o)return{done:!0,value:null};for(var u=$e;l=Ew&&t<=57},j4=function(t){return t>=55296&&t<=57343},ga=function(t){return nr(t)||t>=Qw&&t<=Uw||t>=xw&&t<=z4},q4=function(t){return t>=xw&&t<=_4},J4=function(t){return t>=Qw&&t<=Y4},Z4=function(t){return q4(t)||J4(t)},eN=function(t){return t>=M4},Js=function(t){return t===Zl||t===y4||t===B4},eu=function(t){return Z4(t)||eN(t)||t===E4},tm=function(t){return eu(t)||nr(t)||t===cr},tN=function(t){return t>=P4&&t<=N4||t===K4||t>=G4&&t<=V4||t===$4},jn=function(t,e){return t!==lo?!1:e!==Zl},Zs=function(t,e,r){return t===cr?eu(e)||jn(e,r):eu(t)?!0:!!(t===lo&&jn(t,e))},mf=function(t,e,r){return t===DA||t===cr?nr(e)?!0:e===Po&&nr(r):nr(t===Po?e:t)},rN=function(t){var e=0,r=1;(t[e]===DA||t[e]===cr)&&(t[e]===cr&&(r=-1),e++);for(var n=[];nr(t[e]);)n.push(t[e++]);var A=n.length?parseInt(Tt.apply(void 0,n),10):0;t[e]===Po&&e++;for(var a=[];nr(t[e]);)a.push(t[e++]);var i=a.length,o=i?parseInt(Tt.apply(void 0,a),10):0;(t[e]===Sw||t[e]===Fw)&&e++;var s=1;(t[e]===DA||t[e]===cr)&&(t[e]===cr&&(s=-1),e++);for(var l=[];nr(t[e]);)l.push(t[e++]);var u=l.length?parseInt(Tt.apply(void 0,l),10):0;return r*(A+o*Math.pow(10,-i))*Math.pow(10,s*u)},nN={type:2},AN={type:3},aN={type:4},iN={type:13},oN={type:8},sN={type:21},lN={type:9},uN={type:10},cN={type:11},fN={type:12},dN={type:14},el={type:23},hN={type:1},pN={type:25},gN={type:24},vN={type:26},mN={type:27},yN={type:28},BN={type:29},wN={type:31},Sd={type:32},Tw=function(){function t(){this._value=[]}return t.prototype.write=function(e){this._value=this._value.concat(Ec(e))},t.prototype.read=function(){for(var e=[],r=this.consumeToken();r!==Sd;)e.push(r),r=this.consumeToken();return e},t.prototype.consumeToken=function(){var e=this.consumeCodePoint();switch(e){case Xs:return this.consumeStringToken(Xs);case w4:var r=this.peekCodePoint(0),n=this.peekCodePoint(1),A=this.peekCodePoint(2);if(tm(r)||jn(n,A)){var a=Zs(r,n,A)?m4:v4,i=this.consumeName();return{type:5,value:i,flags:a}}break;case C4:if(this.peekCodePoint(0)===Oi)return this.consumeCodePoint(),iN;break;case Ys:return this.consumeStringToken(Ys);case js:return nN;case Hi:return AN;case vf:if(this.peekCodePoint(0)===Oi)return this.consumeCodePoint(),dN;break;case DA:if(mf(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case O4:return aN;case cr:var o=e,s=this.peekCodePoint(0),l=this.peekCodePoint(1);if(mf(o,s,l))return this.reconsumeCodePoint(e),this.consumeNumericToken();if(Zs(o,s,l))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();if(s===cr&&l===Q4)return this.consumeCodePoint(),this.consumeCodePoint(),gN;break;case Po:if(mf(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case Jv:if(this.peekCodePoint(0)===vf)for(this.consumeCodePoint();;){var u=this.consumeCodePoint();if(u===vf&&(u=this.consumeCodePoint(),u===Jv))return this.consumeToken();if(u===un)return this.consumeToken()}break;case H4:return vN;case k4:return mN;case F4:if(this.peekCodePoint(0)===x4&&this.peekCodePoint(1)===cr&&this.peekCodePoint(2)===cr)return this.consumeCodePoint(),this.consumeCodePoint(),pN;break;case S4:var c=this.peekCodePoint(0),d=this.peekCodePoint(1),h=this.peekCodePoint(2);if(Zs(c,d,h)){var i=this.consumeName();return{type:7,value:i}}break;case U4:return yN;case lo:if(jn(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();break;case T4:return BN;case I4:if(this.peekCodePoint(0)===Oi)return this.consumeCodePoint(),oN;break;case L4:return cN;case D4:return fN;case W4:case X4:var f=this.peekCodePoint(0),p=this.peekCodePoint(1);return f===DA&&(ga(p)||p===qs)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(e),this.consumeIdentLikeToken();case Zv:if(this.peekCodePoint(0)===Oi)return this.consumeCodePoint(),lN;if(this.peekCodePoint(0)===Zv)return this.consumeCodePoint(),sN;break;case R4:if(this.peekCodePoint(0)===Oi)return this.consumeCodePoint(),uN;break;case un:return Sd}return Js(e)?(this.consumeWhiteSpace(),wN):nr(e)?(this.reconsumeCodePoint(e),this.consumeNumericToken()):eu(e)?(this.reconsumeCodePoint(e),this.consumeIdentLikeToken()):{type:6,value:Tt(e)}},t.prototype.consumeCodePoint=function(){var e=this._value.shift();return typeof e>"u"?-1:e},t.prototype.reconsumeCodePoint=function(e){this._value.unshift(e)},t.prototype.peekCodePoint=function(e){return e>=this._value.length?-1:this._value[e]},t.prototype.consumeUnicodeRangeToken=function(){for(var e=[],r=this.consumeCodePoint();ga(r)&&e.length<6;)e.push(r),r=this.consumeCodePoint();for(var n=!1;r===qs&&e.length<6;)e.push(r),r=this.consumeCodePoint(),n=!0;if(n){var A=parseInt(Tt.apply(void 0,e.map(function(s){return s===qs?Ew:s})),16),a=parseInt(Tt.apply(void 0,e.map(function(s){return s===qs?Uw:s})),16);return{type:30,start:A,end:a}}var i=parseInt(Tt.apply(void 0,e),16);if(this.peekCodePoint(0)===cr&&ga(this.peekCodePoint(1))){this.consumeCodePoint(),r=this.consumeCodePoint();for(var o=[];ga(r)&&o.length<6;)o.push(r),r=this.consumeCodePoint();var a=parseInt(Tt.apply(void 0,o),16);return{type:30,start:i,end:a}}else return{type:30,start:i,end:i}},t.prototype.consumeIdentLikeToken=function(){var e=this.consumeName();return e.toLowerCase()==="url"&&this.peekCodePoint(0)===js?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===js?(this.consumeCodePoint(),{type:19,value:e}):{type:20,value:e}},t.prototype.consumeUrlToken=function(){var e=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===un)return{type:22,value:""};var r=this.peekCodePoint(0);if(r===Ys||r===Xs){var n=this.consumeStringToken(this.consumeCodePoint());return n.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===un||this.peekCodePoint(0)===Hi)?(this.consumeCodePoint(),{type:22,value:n.value}):(this.consumeBadUrlRemnants(),el)}for(;;){var A=this.consumeCodePoint();if(A===un||A===Hi)return{type:22,value:Tt.apply(void 0,e)};if(Js(A))return this.consumeWhiteSpace(),this.peekCodePoint(0)===un||this.peekCodePoint(0)===Hi?(this.consumeCodePoint(),{type:22,value:Tt.apply(void 0,e)}):(this.consumeBadUrlRemnants(),el);if(A===Xs||A===Ys||A===js||tN(A))return this.consumeBadUrlRemnants(),el;if(A===lo)if(jn(A,this.peekCodePoint(0)))e.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),el;else e.push(A)}},t.prototype.consumeWhiteSpace=function(){for(;Js(this.peekCodePoint(0));)this.consumeCodePoint()},t.prototype.consumeBadUrlRemnants=function(){for(;;){var e=this.consumeCodePoint();if(e===Hi||e===un)return;jn(e,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},t.prototype.consumeStringSlice=function(e){for(var r=5e4,n="";e>0;){var A=Math.min(r,e);n+=Tt.apply(void 0,this._value.splice(0,A)),e-=A}return this._value.shift(),n},t.prototype.consumeStringToken=function(e){var r="",n=0;do{var A=this._value[n];if(A===un||A===void 0||A===e)return r+=this.consumeStringSlice(n),{type:0,value:r};if(A===Zl)return this._value.splice(0,n),hN;if(A===lo){var a=this._value[n+1];a!==un&&a!==void 0&&(a===Zl?(r+=this.consumeStringSlice(n),n=-1,this._value.shift()):jn(A,a)&&(r+=this.consumeStringSlice(n),r+=Tt(this.consumeEscapedCodePoint()),n=-1))}n++}while(!0)},t.prototype.consumeNumber=function(){var e=[],r=ss,n=this.peekCodePoint(0);for((n===DA||n===cr)&&e.push(this.consumeCodePoint());nr(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0);var A=this.peekCodePoint(1);if(n===Po&&nr(A))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),r=qv;nr(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0),A=this.peekCodePoint(1);var a=this.peekCodePoint(2);if((n===Sw||n===Fw)&&((A===DA||A===cr)&&nr(a)||nr(A)))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),r=qv;nr(this.peekCodePoint(0));)e.push(this.consumeCodePoint());return[rN(e),r]},t.prototype.consumeNumericToken=function(){var e=this.consumeNumber(),r=e[0],n=e[1],A=this.peekCodePoint(0),a=this.peekCodePoint(1),i=this.peekCodePoint(2);if(Zs(A,a,i)){var o=this.consumeName();return{type:15,number:r,flags:n,unit:o}}return A===b4?(this.consumeCodePoint(),{type:16,number:r,flags:n}):{type:17,number:r,flags:n}},t.prototype.consumeEscapedCodePoint=function(){var e=this.consumeCodePoint();if(ga(e)){for(var r=Tt(e);ga(this.peekCodePoint(0))&&r.length<6;)r+=Tt(this.consumeCodePoint());Js(this.peekCodePoint(0))&&this.consumeCodePoint();var n=parseInt(r,16);return n===0||j4(n)||n>1114111?em:n}return e===un?em:e},t.prototype.consumeName=function(){for(var e="";;){var r=this.consumeCodePoint();if(tm(r))e+=Tt(r);else if(jn(r,this.peekCodePoint(0)))e+=Tt(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(r),e}},t}(),Iw=function(){function t(e){this._tokens=e}return t.create=function(e){var r=new Tw;return r.write(e),new t(r.read())},t.parseValue=function(e){return t.create(e).parseComponentValue()},t.parseValues=function(e){return t.create(e).parseComponentValues()},t.prototype.parseComponentValue=function(){for(var e=this.consumeToken();e.type===31;)e=this.consumeToken();if(e.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(e);var r=this.consumeComponentValue();do e=this.consumeToken();while(e.type===31);if(e.type===32)return r;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},t.prototype.parseComponentValues=function(){for(var e=[];;){var r=this.consumeComponentValue();if(r.type===32)return e;e.push(r),e.push()}},t.prototype.consumeComponentValue=function(){var e=this.consumeToken();switch(e.type){case 11:case 28:case 2:return this.consumeSimpleBlock(e.type);case 19:return this.consumeFunction(e)}return e},t.prototype.consumeSimpleBlock=function(e){for(var r={type:e,values:[]},n=this.consumeToken();;){if(n.type===32||bN(n,e))return r;this.reconsumeToken(n),r.values.push(this.consumeComponentValue()),n=this.consumeToken()}},t.prototype.consumeFunction=function(e){for(var r={name:e.value,values:[],type:18};;){var n=this.consumeToken();if(n.type===32||n.type===3)return r;this.reconsumeToken(n),r.values.push(this.consumeComponentValue())}},t.prototype.consumeToken=function(){var e=this._tokens.shift();return typeof e>"u"?Sd:e},t.prototype.reconsumeToken=function(e){this._tokens.unshift(e)},t}(),ls=function(t){return t.type===15},gi=function(t){return t.type===17},at=function(t){return t.type===20},CN=function(t){return t.type===0},Ud=function(t,e){return at(t)&&t.value===e},Lw=function(t){return t.type!==31},ti=function(t){return t.type!==31&&t.type!==4},Qn=function(t){var e=[],r=[];return t.forEach(function(n){if(n.type===4){if(r.length===0)throw new Error("Error parsing function args, zero tokens for arg");e.push(r),r=[];return}n.type!==31&&r.push(n)}),r.length&&e.push(r),e},bN=function(t,e){return e===11&&t.type===12||e===28&&t.type===29?!0:e===2&&t.type===3},hA=function(t){return t.type===17||t.type===15},Dt=function(t){return t.type===16||hA(t)},Dw=function(t){return t.length>1?[t[0],t[1]]:[t[0]]},Yt={type:17,number:0,flags:ss},Wh={type:16,number:50,flags:ss},tA={type:16,number:100,flags:ss},qi=function(t,e,r){var n=t[0],A=t[1];return[ft(n,e),ft(typeof A<"u"?A:n,r)]},ft=function(t,e){if(t.type===16)return t.number/100*e;if(ls(t))switch(t.unit){case"rem":case"em":return 16*t.number;case"px":default:return t.number}return t.number},Rw="deg",Mw="grad",Ow="rad",Hw="turn",xc={name:"angle",parse:function(t,e){if(e.type===15)switch(e.unit){case Rw:return Math.PI*e.number/180;case Mw:return Math.PI/200*e.number;case Ow:return e.number;case Hw:return Math.PI*2*e.number}throw new Error("Unsupported angle type")}},kw=function(t){return t.type===15&&(t.unit===Rw||t.unit===Mw||t.unit===Ow||t.unit===Hw)},Pw=function(t){var e=t.filter(at).map(function(r){return r.value}).join(" ");switch(e){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Yt,Yt];case"to top":case"bottom":return kr(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Yt,tA];case"to right":case"left":return kr(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[tA,tA];case"to bottom":case"top":return kr(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[tA,Yt];case"to left":case"right":return kr(270)}return 0},kr=function(t){return Math.PI*t/180},iA={name:"color",parse:function(t,e){if(e.type===18){var r=EN[e.name];if(typeof r>"u")throw new Error('Attempting to parse an unsupported color function "'+e.name+'"');return r(t,e.values)}if(e.type===5){if(e.value.length===3){var n=e.value.substring(0,1),A=e.value.substring(1,2),a=e.value.substring(2,3);return rA(parseInt(n+n,16),parseInt(A+A,16),parseInt(a+a,16),1)}if(e.value.length===4){var n=e.value.substring(0,1),A=e.value.substring(1,2),a=e.value.substring(2,3),i=e.value.substring(3,4);return rA(parseInt(n+n,16),parseInt(A+A,16),parseInt(a+a,16),parseInt(i+i,16)/255)}if(e.value.length===6){var n=e.value.substring(0,2),A=e.value.substring(2,4),a=e.value.substring(4,6);return rA(parseInt(n,16),parseInt(A,16),parseInt(a,16),1)}if(e.value.length===8){var n=e.value.substring(0,2),A=e.value.substring(2,4),a=e.value.substring(4,6),i=e.value.substring(6,8);return rA(parseInt(n,16),parseInt(A,16),parseInt(a,16),parseInt(i,16)/255)}}if(e.type===20){var o=Rn[e.value.toUpperCase()];if(typeof o<"u")return o}return Rn.TRANSPARENT}},oA=function(t){return(255&t)===0},Gt=function(t){var e=255&t,r=255&t>>8,n=255&t>>16,A=255&t>>24;return e<255?"rgba("+A+","+n+","+r+","+e/255+")":"rgb("+A+","+n+","+r+")"},rA=function(t,e,r,n){return(t<<24|e<<16|r<<8|Math.round(n*255)<<0)>>>0},rm=function(t,e){if(t.type===17)return t.number;if(t.type===16){var r=e===3?1:255;return e===3?t.number/100*r:Math.round(t.number/100*r)}return 0},nm=function(t,e){var r=e.filter(ti);if(r.length===3){var n=r.map(rm),A=n[0],a=n[1],i=n[2];return rA(A,a,i,1)}if(r.length===4){var o=r.map(rm),A=o[0],a=o[1],i=o[2],s=o[3];return rA(A,a,i,s)}return 0};function yf(t,e,r){return r<0&&(r+=1),r>=1&&(r-=1),r<1/6?(e-t)*r*6+t:r<1/2?e:r<2/3?(e-t)*6*(2/3-r)+t:t}var Am=function(t,e){var r=e.filter(ti),n=r[0],A=r[1],a=r[2],i=r[3],o=(n.type===17?kr(n.number):xc.parse(t,n))/(Math.PI*2),s=Dt(A)?A.number/100:0,l=Dt(a)?a.number/100:0,u=typeof i<"u"&&Dt(i)?ft(i,1):1;if(s===0)return rA(l*255,l*255,l*255,1);var c=l<=.5?l*(s+1):l+s-l*s,d=l*2-c,h=yf(d,c,o+1/3),f=yf(d,c,o),p=yf(d,c,o-1/3);return rA(h*255,f*255,p*255,u)},EN={hsl:Am,hsla:Am,rgb:nm,rgba:nm},uo=function(t,e){return iA.parse(t,Iw.create(e).parseComponentValue())},Rn={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},xN={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(t,e){return e.map(function(r){if(at(r))switch(r.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},FN={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Fc=function(t,e){var r=iA.parse(t,e[0]),n=e[1];return n&&Dt(n)?{color:r,stop:n}:{color:r,stop:null}},am=function(t,e){var r=t[0],n=t[t.length-1];r.stop===null&&(r.stop=Yt),n.stop===null&&(n.stop=tA);for(var A=[],a=0,i=0;ia?A.push(s):A.push(a),a=s}else A.push(null)}for(var l=null,i=0;ii.optimumDistance)?{optimumCorner:o,optimumDistance:u}:i},{optimumDistance:A?1/0:-1/0,optimumCorner:null}).optimumCorner},UN=function(t,e,r,n,A){var a=0,i=0;switch(t.size){case 0:t.shape===0?a=i=Math.min(Math.abs(e),Math.abs(e-n),Math.abs(r),Math.abs(r-A)):t.shape===1&&(a=Math.min(Math.abs(e),Math.abs(e-n)),i=Math.min(Math.abs(r),Math.abs(r-A)));break;case 2:if(t.shape===0)a=i=Math.min(Xr(e,r),Xr(e,r-A),Xr(e-n,r),Xr(e-n,r-A));else if(t.shape===1){var o=Math.min(Math.abs(r),Math.abs(r-A))/Math.min(Math.abs(e),Math.abs(e-n)),s=im(n,A,e,r,!0),l=s[0],u=s[1];a=Xr(l-e,(u-r)/o),i=o*a}break;case 1:t.shape===0?a=i=Math.max(Math.abs(e),Math.abs(e-n),Math.abs(r),Math.abs(r-A)):t.shape===1&&(a=Math.max(Math.abs(e),Math.abs(e-n)),i=Math.max(Math.abs(r),Math.abs(r-A)));break;case 3:if(t.shape===0)a=i=Math.max(Xr(e,r),Xr(e,r-A),Xr(e-n,r),Xr(e-n,r-A));else if(t.shape===1){var o=Math.max(Math.abs(r),Math.abs(r-A))/Math.max(Math.abs(e),Math.abs(e-n)),c=im(n,A,e,r,!1),l=c[0],u=c[1];a=Xr(l-e,(u-r)/o),i=o*a}break}return Array.isArray(t.size)&&(a=ft(t.size[0],n),i=t.size.length===2?ft(t.size[1],A):a),[a,i]},TN=function(t,e){var r=kr(180),n=[];return Qn(e).forEach(function(A,a){if(a===0){var i=A[0];if(i.type===20&&i.value==="to"){r=Pw(A);return}else if(kw(i)){r=xc.parse(t,i);return}}var o=Fc(t,A);n.push(o)}),{angle:r,stops:n,type:1}},tl=function(t,e){var r=kr(180),n=[];return Qn(e).forEach(function(A,a){if(a===0){var i=A[0];if(i.type===20&&["top","left","right","bottom"].indexOf(i.value)!==-1){r=Pw(A);return}else if(kw(i)){r=(xc.parse(t,i)+kr(270))%kr(360);return}}var o=Fc(t,A);n.push(o)}),{angle:r,stops:n,type:1}},IN=function(t,e){var r=kr(180),n=[],A=1,a=0,i=3,o=[];return Qn(e).forEach(function(s,l){var u=s[0];if(l===0){if(at(u)&&u.value==="linear"){A=1;return}else if(at(u)&&u.value==="radial"){A=2;return}}if(u.type===18){if(u.name==="from"){var c=iA.parse(t,u.values[0]);n.push({stop:Yt,color:c})}else if(u.name==="to"){var c=iA.parse(t,u.values[0]);n.push({stop:tA,color:c})}else if(u.name==="color-stop"){var d=u.values.filter(ti);if(d.length===2){var c=iA.parse(t,d[1]),h=d[0];gi(h)&&n.push({stop:{type:16,number:h.number*100,flags:h.flags},color:c})}}}}),A===1?{angle:(r+kr(180))%kr(360),stops:n,type:A}:{size:i,shape:a,stops:n,position:o,type:A}},Nw="closest-side",Kw="farthest-side",Gw="closest-corner",Vw="farthest-corner",$w="circle",zw="ellipse",Ww="cover",_w="contain",LN=function(t,e){var r=0,n=3,A=[],a=[];return Qn(e).forEach(function(i,o){var s=!0;if(o===0){var l=!1;s=i.reduce(function(c,d){if(l)if(at(d))switch(d.value){case"center":return a.push(Wh),c;case"top":case"left":return a.push(Yt),c;case"right":case"bottom":return a.push(tA),c}else(Dt(d)||hA(d))&&a.push(d);else if(at(d))switch(d.value){case $w:return r=0,!1;case zw:return r=1,!1;case"at":return l=!0,!1;case Nw:return n=0,!1;case Ww:case Kw:return n=1,!1;case _w:case Gw:return n=2,!1;case Vw:return n=3,!1}else if(hA(d)||Dt(d))return Array.isArray(n)||(n=[]),n.push(d),!1;return c},s)}if(s){var u=Fc(t,i);A.push(u)}}),{size:n,shape:r,stops:A,position:a,type:2}},rl=function(t,e){var r=0,n=3,A=[],a=[];return Qn(e).forEach(function(i,o){var s=!0;if(o===0?s=i.reduce(function(u,c){if(at(c))switch(c.value){case"center":return a.push(Wh),!1;case"top":case"left":return a.push(Yt),!1;case"right":case"bottom":return a.push(tA),!1}else if(Dt(c)||hA(c))return a.push(c),!1;return u},s):o===1&&(s=i.reduce(function(u,c){if(at(c))switch(c.value){case $w:return r=0,!1;case zw:return r=1,!1;case _w:case Nw:return n=0,!1;case Kw:return n=1,!1;case Gw:return n=2,!1;case Ww:case Vw:return n=3,!1}else if(hA(c)||Dt(c))return Array.isArray(n)||(n=[]),n.push(c),!1;return u},s)),s){var l=Fc(t,i);A.push(l)}}),{size:n,shape:r,stops:A,position:a,type:2}},DN=function(t){return t.type===1},RN=function(t){return t.type===2},_h={name:"image",parse:function(t,e){if(e.type===22){var r={url:e.value,type:0};return t.cache.addImage(e.value),r}if(e.type===18){var n=Xw[e.name];if(typeof n>"u")throw new Error('Attempting to parse an unsupported image function "'+e.name+'"');return n(t,e.values)}throw new Error("Unsupported image type "+e.type)}};function MN(t){return!(t.type===20&&t.value==="none")&&(t.type!==18||!!Xw[t.name])}var Xw={"linear-gradient":TN,"-moz-linear-gradient":tl,"-ms-linear-gradient":tl,"-o-linear-gradient":tl,"-webkit-linear-gradient":tl,"radial-gradient":LN,"-moz-radial-gradient":rl,"-ms-radial-gradient":rl,"-o-radial-gradient":rl,"-webkit-radial-gradient":rl,"-webkit-gradient":IN},ON={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(t,e){if(e.length===0)return[];var r=e[0];return r.type===20&&r.value==="none"?[]:e.filter(function(n){return ti(n)&&MN(n)}).map(function(n){return _h.parse(t,n)})}},HN={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(t,e){return e.map(function(r){if(at(r))switch(r.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},kN={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(t,e){return Qn(e).map(function(r){return r.filter(Dt)}).map(Dw)}},PN={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(t,e){return Qn(e).map(function(r){return r.filter(at).map(function(n){return n.value}).join(" ")}).map(NN)}},NN=function(t){switch(t){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}},Na;(function(t){t.AUTO="auto",t.CONTAIN="contain",t.COVER="cover"})(Na||(Na={}));var KN={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(t,e){return Qn(e).map(function(r){return r.filter(GN)})}},GN=function(t){return at(t)||Dt(t)},Qc=function(t){return{name:"border-"+t+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},VN=Qc("top"),$N=Qc("right"),zN=Qc("bottom"),WN=Qc("left"),Sc=function(t){return{name:"border-radius-"+t,initialValue:"0 0",prefix:!1,type:1,parse:function(e,r){return Dw(r.filter(Dt))}}},_N=Sc("top-left"),XN=Sc("top-right"),YN=Sc("bottom-right"),jN=Sc("bottom-left"),Uc=function(t){return{name:"border-"+t+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(e,r){switch(r){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},qN=Uc("top"),JN=Uc("right"),ZN=Uc("bottom"),e5=Uc("left"),Tc=function(t){return{name:"border-"+t+"-width",initialValue:"0",type:0,prefix:!1,parse:function(e,r){return ls(r)?r.number:0}}},t5=Tc("top"),r5=Tc("right"),n5=Tc("bottom"),A5=Tc("left"),a5={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},i5={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(t,e){switch(e){case"rtl":return 1;case"ltr":default:return 0}}},o5={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(t,e){return e.filter(at).reduce(function(r,n){return r|s5(n.value)},0)}},s5=function(t){switch(t){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},l5={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(t,e){switch(e){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},u5={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(t,e){return e.type===20&&e.value==="normal"?0:e.type===17||e.type===15?e.number:0}},tu;(function(t){t.NORMAL="normal",t.STRICT="strict"})(tu||(tu={}));var c5={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){switch(e){case"strict":return tu.STRICT;case"normal":default:return tu.NORMAL}}},f5={name:"line-height",initialValue:"normal",prefix:!1,type:4},om=function(t,e){return at(t)&&t.value==="normal"?1.2*e:t.type===17?e*t.number:Dt(t)?ft(t,e):e},d5={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(t,e){return e.type===20&&e.value==="none"?null:_h.parse(t,e)}},h5={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(t,e){switch(e){case"inside":return 0;case"outside":default:return 1}}},Td={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(t,e){switch(e){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},Ic=function(t){return{name:"margin-"+t,initialValue:"0",prefix:!1,type:4}},p5=Ic("top"),g5=Ic("right"),v5=Ic("bottom"),m5=Ic("left"),y5={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(t,e){return e.filter(at).map(function(r){switch(r.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},B5={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){switch(e){case"break-word":return"break-word";case"normal":default:return"normal"}}},Lc=function(t){return{name:"padding-"+t,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},w5=Lc("top"),C5=Lc("right"),b5=Lc("bottom"),E5=Lc("left"),x5={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(t,e){switch(e){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},F5={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(t,e){switch(e){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},Q5={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(t,e){return e.length===1&&Ud(e[0],"none")?[]:Qn(e).map(function(r){for(var n={color:Rn.TRANSPARENT,offsetX:Yt,offsetY:Yt,blur:Yt},A=0,a=0;a"u")throw new Error('Attempting to parse an unsupported transform function "'+e.name+'"');return r(e.values)}return null}},T5=function(t){var e=t.filter(function(r){return r.type===17}).map(function(r){return r.number});return e.length===6?e:null},I5=function(t){var e=t.filter(function(s){return s.type===17}).map(function(s){return s.number}),r=e[0],n=e[1];e[2],e[3];var A=e[4],a=e[5];e[6],e[7],e[8],e[9],e[10],e[11];var i=e[12],o=e[13];return e[14],e[15],e.length===16?[r,n,A,a,i,o]:null},L5={matrix:T5,matrix3d:I5},sm={type:16,number:50,flags:ss},D5=[sm,sm],R5={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(t,e){var r=e.filter(Dt);return r.length!==2?D5:[r[0],r[1]]}},M5={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(t,e){switch(e){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},co;(function(t){t.NORMAL="normal",t.BREAK_ALL="break-all",t.KEEP_ALL="keep-all"})(co||(co={}));var O5={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){switch(e){case"break-all":return co.BREAK_ALL;case"keep-all":return co.KEEP_ALL;case"normal":default:return co.NORMAL}}},H5={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(t,e){if(e.type===20)return{auto:!0,order:0};if(gi(e))return{auto:!1,order:e.number};throw new Error("Invalid z-index number parsed")}},Yw={name:"time",parse:function(t,e){if(e.type===15)switch(e.unit.toLowerCase()){case"s":return 1e3*e.number;case"ms":return e.number}throw new Error("Unsupported time type")}},k5={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(t,e){return gi(e)?e.number:1}},P5={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},N5={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(t,e){return e.filter(at).map(function(r){switch(r.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(r){return r!==0})}},K5={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(t,e){var r=[],n=[];return e.forEach(function(A){switch(A.type){case 20:case 0:r.push(A.value);break;case 17:r.push(A.number.toString());break;case 4:n.push(r.join(" ")),r.length=0;break}}),r.length&&n.push(r.join(" ")),n.map(function(A){return A.indexOf(" ")===-1?A:"'"+A+"'"})}},G5={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},V5={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(t,e){if(gi(e))return e.number;if(at(e))switch(e.value){case"bold":return 700;case"normal":default:return 400}return 400}},$5={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(t,e){return e.filter(at).map(function(r){return r.value})}},z5={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){switch(e){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},Ht=function(t,e){return(t&e)!==0},W5={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(t,e){if(e.length===0)return[];var r=e[0];return r.type===20&&r.value==="none"?[]:e}},_5={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(t,e){if(e.length===0)return null;var r=e[0];if(r.type===20&&r.value==="none")return null;for(var n=[],A=e.filter(Lw),a=0;a1?1:0],this.overflowWrap=Ue(e,B5,r.overflowWrap),this.paddingTop=Ue(e,w5,r.paddingTop),this.paddingRight=Ue(e,C5,r.paddingRight),this.paddingBottom=Ue(e,b5,r.paddingBottom),this.paddingLeft=Ue(e,E5,r.paddingLeft),this.paintOrder=Ue(e,J5,r.paintOrder),this.position=Ue(e,F5,r.position),this.textAlign=Ue(e,x5,r.textAlign),this.textDecorationColor=Ue(e,P5,(n=r.textDecorationColor)!==null&&n!==void 0?n:r.color),this.textDecorationLine=Ue(e,N5,(A=r.textDecorationLine)!==null&&A!==void 0?A:r.textDecoration),this.textShadow=Ue(e,Q5,r.textShadow),this.textTransform=Ue(e,S5,r.textTransform),this.transform=Ue(e,U5,r.transform),this.transformOrigin=Ue(e,R5,r.transformOrigin),this.visibility=Ue(e,M5,r.visibility),this.webkitTextStrokeColor=Ue(e,Z5,r.webkitTextStrokeColor),this.webkitTextStrokeWidth=Ue(e,eK,r.webkitTextStrokeWidth),this.wordBreak=Ue(e,O5,r.wordBreak),this.zIndex=Ue(e,H5,r.zIndex)}return t.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},t.prototype.isTransparent=function(){return oA(this.backgroundColor)},t.prototype.isTransformed=function(){return this.transform!==null},t.prototype.isPositioned=function(){return this.position!==0},t.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},t.prototype.isFloating=function(){return this.float!==0},t.prototype.isInlineLevel=function(){return Ht(this.display,4)||Ht(this.display,33554432)||Ht(this.display,268435456)||Ht(this.display,536870912)||Ht(this.display,67108864)||Ht(this.display,134217728)},t}(),rK=function(){function t(e,r){this.content=Ue(e,W5,r.content),this.quotes=Ue(e,j5,r.quotes)}return t}(),um=function(){function t(e,r){this.counterIncrement=Ue(e,_5,r.counterIncrement),this.counterReset=Ue(e,X5,r.counterReset)}return t}(),Ue=function(t,e,r){var n=new Tw,A=r!==null&&typeof r<"u"?r.toString():e.initialValue;n.write(A);var a=new Iw(n.read());switch(e.type){case 2:var i=a.parseComponentValue();return e.parse(t,at(i)?i.value:e.initialValue);case 0:return e.parse(t,a.parseComponentValue());case 1:return e.parse(t,a.parseComponentValues());case 4:return a.parseComponentValue();case 3:switch(e.format){case"angle":return xc.parse(t,a.parseComponentValue());case"color":return iA.parse(t,a.parseComponentValue());case"image":return _h.parse(t,a.parseComponentValue());case"length":var o=a.parseComponentValue();return hA(o)?o:Yt;case"length-percentage":var s=a.parseComponentValue();return Dt(s)?s:Yt;case"time":return Yw.parse(t,a.parseComponentValue())}break}},nK="data-html2canvas-debug",AK=function(t){var e=t.getAttribute(nK);switch(e){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},Id=function(t,e){var r=AK(t);return r===1||e===r},Sn=function(){function t(e,r){if(this.context=e,this.textNodes=[],this.elements=[],this.flags=0,Id(r,3))debugger;this.styles=new tK(e,window.getComputedStyle(r,null)),Rd(r)&&(this.styles.animationDuration.some(function(n){return n>0})&&(r.style.animationDuration="0s"),this.styles.transform!==null&&(r.style.transform="none")),this.bounds=bc(this.context,r),Id(r,4)&&(this.flags|=16)}return t}(),aK="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",cm="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ji=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var nl=0;nl>4,u[A++]=(i&15)<<4|o>>2,u[A++]=(o&3)<<6|s&63;return l},oK=function(t){for(var e=t.length,r=[],n=0;n>HA,uK=1<>HA,fK=jw+cK,dK=fK,hK=32,pK=dK+hK,gK=65536>>Xh,vK=1<=0){if(e<55296||e>56319&&e<=65535)return r=this.index[e>>HA],r=(r<>HA)],r=(r<>Xh),r=this.index[r],r+=e>>HA&mK,r=this.index[r],r=(r<"u"?[]:new Uint8Array(256);for(var Al=0;Al=55296&&A<=56319&&r>10)+55296,i%1024+56320)),(A+1===r||n.length>16384)&&(a+=String.fromCharCode.apply(String,n),n.length=0)}return a},QK=BK(aK),Ur="×",Qf="÷",SK=function(t){return QK.get(t)},UK=function(t,e,r){var n=r-2,A=e[n],a=e[r-1],i=e[r];if(a===Cf&&i===bf)return Ur;if(a===Cf||a===bf||a===hm||i===Cf||i===bf||i===hm)return Qf;if(a===gm&&[gm,Ef,vm,mm].indexOf(i)!==-1||(a===vm||a===Ef)&&(i===Ef||i===xf)||(a===mm||a===xf)&&i===xf||i===ym||i===pm||i===EK||a===bK)return Ur;if(a===ym&&i===Bm){for(;A===pm;)A=e[--n];if(A===Bm)return Ur}if(a===Ff&&i===Ff){for(var o=0;A===Ff;)o++,A=e[--n];if(o%2===0)return Ur}return Qf},TK=function(t){var e=xK(t),r=e.length,n=0,A=0,a=e.map(SK);return{next:function(){if(n>=r)return{done:!0,value:null};for(var i=Ur;ni.x||u.y>i.y;return i=u,l===0?!0:c});return t.body.removeChild(e),o},RK=function(){return typeof new Image().crossOrigin<"u"},MK=function(){return typeof new XMLHttpRequest().responseType=="string"},OK=function(t){var e=new Image,r=t.createElement("canvas"),n=r.getContext("2d");if(!n)return!1;e.src="data:image/svg+xml,";try{n.drawImage(e,0,0),r.toDataURL()}catch{return!1}return!0},wm=function(t){return t[0]===0&&t[1]===255&&t[2]===0&&t[3]===255},HK=function(t){var e=t.createElement("canvas"),r=100;e.width=r,e.height=r;var n=e.getContext("2d");if(!n)return Promise.reject(!1);n.fillStyle="rgb(0, 255, 0)",n.fillRect(0,0,r,r);var A=new Image,a=e.toDataURL();A.src=a;var i=Ld(r,r,0,0,A);return n.fillStyle="red",n.fillRect(0,0,r,r),Cm(i).then(function(o){n.drawImage(o,0,0);var s=n.getImageData(0,0,r,r).data;n.fillStyle="red",n.fillRect(0,0,r,r);var l=t.createElement("div");return l.style.backgroundImage="url("+a+")",l.style.height=r+"px",wm(s)?Cm(Ld(r,r,0,0,l)):Promise.reject(!1)}).then(function(o){return n.drawImage(o,0,0),wm(n.getImageData(0,0,r,r).data)}).catch(function(){return!1})},Ld=function(t,e,r,n,A){var a="http://www.w3.org/2000/svg",i=document.createElementNS(a,"svg"),o=document.createElementNS(a,"foreignObject");return i.setAttributeNS(null,"width",t.toString()),i.setAttributeNS(null,"height",e.toString()),o.setAttributeNS(null,"width","100%"),o.setAttributeNS(null,"height","100%"),o.setAttributeNS(null,"x",r.toString()),o.setAttributeNS(null,"y",n.toString()),o.setAttributeNS(null,"externalResourcesRequired","true"),i.appendChild(o),o.appendChild(A),i},Cm=function(t){return new Promise(function(e,r){var n=new Image;n.onload=function(){return e(n)},n.onerror=r,n.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(t))})},_t={get SUPPORT_RANGE_BOUNDS(){var t=LK(document);return Object.defineProperty(_t,"SUPPORT_RANGE_BOUNDS",{value:t}),t},get SUPPORT_WORD_BREAKING(){var t=_t.SUPPORT_RANGE_BOUNDS&&DK(document);return Object.defineProperty(_t,"SUPPORT_WORD_BREAKING",{value:t}),t},get SUPPORT_SVG_DRAWING(){var t=OK(document);return Object.defineProperty(_t,"SUPPORT_SVG_DRAWING",{value:t}),t},get SUPPORT_FOREIGNOBJECT_DRAWING(){var t=typeof Array.from=="function"&&typeof window.fetch=="function"?HK(document):Promise.resolve(!1);return Object.defineProperty(_t,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:t}),t},get SUPPORT_CORS_IMAGES(){var t=RK();return Object.defineProperty(_t,"SUPPORT_CORS_IMAGES",{value:t}),t},get SUPPORT_RESPONSE_TYPE(){var t=MK();return Object.defineProperty(_t,"SUPPORT_RESPONSE_TYPE",{value:t}),t},get SUPPORT_CORS_XHR(){var t="withCredentials"in new XMLHttpRequest;return Object.defineProperty(_t,"SUPPORT_CORS_XHR",{value:t}),t},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var t=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(_t,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:t}),t}},fo=function(){function t(e,r){this.text=e,this.bounds=r}return t}(),kK=function(t,e,r,n){var A=KK(e,r),a=[],i=0;return A.forEach(function(o){if(r.textDecorationLine.length||o.trim().length>0)if(_t.SUPPORT_RANGE_BOUNDS){var s=bm(n,i,o.length).getClientRects();if(s.length>1){var l=Yh(o),u=0;l.forEach(function(d){a.push(new fo(d,Gn.fromDOMRectList(t,bm(n,u+i,d.length).getClientRects()))),u+=d.length})}else a.push(new fo(o,Gn.fromDOMRectList(t,s)))}else{var c=n.splitText(o.length);a.push(new fo(o,PK(t,n))),n=c}else _t.SUPPORT_RANGE_BOUNDS||(n=n.splitText(o.length));i+=o.length}),a},PK=function(t,e){var r=e.ownerDocument;if(r){var n=r.createElement("html2canvaswrapper");n.appendChild(e.cloneNode(!0));var A=e.parentNode;if(A){A.replaceChild(n,e);var a=bc(t,n);return n.firstChild&&A.replaceChild(n.firstChild,n),a}}return Gn.EMPTY},bm=function(t,e,r){var n=t.ownerDocument;if(!n)throw new Error("Node has no owner document");var A=n.createRange();return A.setStart(t,e),A.setEnd(t,e+r),A},Yh=function(t){if(_t.SUPPORT_NATIVE_TEXT_SEGMENTATION){var e=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(e.segment(t)).map(function(r){return r.segment})}return IK(t)},NK=function(t,e){if(_t.SUPPORT_NATIVE_TEXT_SEGMENTATION){var r=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(r.segment(t)).map(function(n){return n.segment})}return VK(t,e)},KK=function(t,e){return e.letterSpacing!==0?Yh(t):NK(t,e)},GK=[32,160,4961,65792,65793,4153,4241],VK=function(t,e){for(var r=g4(t,{lineBreak:e.lineBreak,wordBreak:e.overflowWrap==="break-word"?"break-word":e.wordBreak}),n=[],A,a=function(){if(A.value){var i=A.value.slice(),o=Ec(i),s="";o.forEach(function(l){GK.indexOf(l)===-1?s+=Tt(l):(s.length&&n.push(s),n.push(Tt(l)),s="")}),s.length&&n.push(s)}};!(A=r.next()).done;)a();return n},$K=function(){function t(e,r,n){this.text=zK(r.data,n.textTransform),this.textBounds=kK(e,this.text,n,r)}return t}(),zK=function(t,e){switch(e){case 1:return t.toLowerCase();case 3:return t.replace(WK,_K);case 2:return t.toUpperCase();default:return t}},WK=/(^|\s|:|-|\(|\))([a-z])/g,_K=function(t,e,r){return t.length>0?e+r.toUpperCase():t},qw=function(t){nn(e,t);function e(r,n){var A=t.call(this,r,n)||this;return A.src=n.currentSrc||n.src,A.intrinsicWidth=n.naturalWidth,A.intrinsicHeight=n.naturalHeight,A.context.cache.addImage(A.src),A}return e}(Sn),Jw=function(t){nn(e,t);function e(r,n){var A=t.call(this,r,n)||this;return A.canvas=n,A.intrinsicWidth=n.width,A.intrinsicHeight=n.height,A}return e}(Sn),Zw=function(t){nn(e,t);function e(r,n){var A=t.call(this,r,n)||this,a=new XMLSerializer,i=bc(r,n);return n.setAttribute("width",i.width+"px"),n.setAttribute("height",i.height+"px"),A.svg="data:image/svg+xml,"+encodeURIComponent(a.serializeToString(n)),A.intrinsicWidth=n.width.baseVal.value,A.intrinsicHeight=n.height.baseVal.value,A.context.cache.addImage(A.svg),A}return e}(Sn),eC=function(t){nn(e,t);function e(r,n){var A=t.call(this,r,n)||this;return A.value=n.value,A}return e}(Sn),Dd=function(t){nn(e,t);function e(r,n){var A=t.call(this,r,n)||this;return A.start=n.start,A.reversed=typeof n.reversed=="boolean"&&n.reversed===!0,A}return e}(Sn),XK=[{type:15,flags:0,unit:"px",number:3}],YK=[{type:16,flags:0,number:50}],jK=function(t){return t.width>t.height?new Gn(t.left+(t.width-t.height)/2,t.top,t.height,t.height):t.width0)r.textNodes.push(new $K(t,A,r.styles));else if(Ia(A))if(uC(A)&&A.assignedNodes)A.assignedNodes().forEach(function(o){return Sl(t,o,r,n)});else{var i=AC(t,A);i.styles.isVisible()&&(eG(A,i,n)?i.flags|=4:tG(i.styles)&&(i.flags|=2),ZK.indexOf(A.tagName)!==-1&&(i.flags|=8),r.elements.push(i),A.slot,A.shadowRoot?Sl(t,A.shadowRoot,i,n):!Au(A)&&!oC(A)&&!au(A)&&Sl(t,A,i,n))}},AC=function(t,e){return Md(e)?new qw(t,e):sC(e)?new Jw(t,e):oC(e)?new Zw(t,e):rG(e)?new eC(t,e):nG(e)?new Dd(t,e):AG(e)?new jh(t,e):au(e)?new tC(t,e):Au(e)?new rC(t,e):lC(e)?new nC(t,e):new Sn(t,e)},aC=function(t,e){var r=AC(t,e);return r.flags|=4,Sl(t,e,r,r),r},eG=function(t,e,r){return e.styles.isPositionedWithZIndex()||e.styles.opacity<1||e.styles.isTransformed()||qh(t)&&r.styles.isTransparent()},tG=function(t){return t.isPositioned()||t.isFloating()},iC=function(t){return t.nodeType===Node.TEXT_NODE},Ia=function(t){return t.nodeType===Node.ELEMENT_NODE},Rd=function(t){return Ia(t)&&typeof t.style<"u"&&!Ul(t)},Ul=function(t){return typeof t.className=="object"},rG=function(t){return t.tagName==="LI"},nG=function(t){return t.tagName==="OL"},AG=function(t){return t.tagName==="INPUT"},aG=function(t){return t.tagName==="HTML"},oC=function(t){return t.tagName==="svg"},qh=function(t){return t.tagName==="BODY"},sC=function(t){return t.tagName==="CANVAS"},xm=function(t){return t.tagName==="VIDEO"},Md=function(t){return t.tagName==="IMG"},lC=function(t){return t.tagName==="IFRAME"},Fm=function(t){return t.tagName==="STYLE"},iG=function(t){return t.tagName==="SCRIPT"},Au=function(t){return t.tagName==="TEXTAREA"},au=function(t){return t.tagName==="SELECT"},uC=function(t){return t.tagName==="SLOT"},Qm=function(t){return t.tagName.indexOf("-")>0},oG=function(){function t(){this.counters={}}return t.prototype.getCounterValue=function(e){var r=this.counters[e];return r&&r.length?r[r.length-1]:1},t.prototype.getCounterValues=function(e){var r=this.counters[e];return r||[]},t.prototype.pop=function(e){var r=this;e.forEach(function(n){return r.counters[n].pop()})},t.prototype.parse=function(e){var r=this,n=e.counterIncrement,A=e.counterReset,a=!0;n!==null&&n.forEach(function(o){var s=r.counters[o.counter];s&&o.increment!==0&&(a=!1,s.length||s.push(1),s[Math.max(0,s.length-1)]+=o.increment)});var i=[];return a&&A.forEach(function(o){var s=r.counters[o.counter];i.push(o.counter),s||(s=r.counters[o.counter]=[]),s.push(o.reset)}),i},t}(),Sm={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},Um={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},sG={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},lG={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},va=function(t,e,r,n,A,a){return tr?No(t,A,a.length>0):n.integers.reduce(function(i,o,s){for(;t>=o;)t-=o,i+=n.values[s];return i},"")+a},cC=function(t,e,r,n){var A="";do r||t--,A=n(t)+A,t/=e;while(t*e>=e);return A},Ut=function(t,e,r,n,A){var a=r-e+1;return(t<0?"-":"")+(cC(Math.abs(t),a,n,function(i){return Tt(Math.floor(i%a)+e)})+A)},BA=function(t,e,r){r===void 0&&(r=". ");var n=e.length;return cC(Math.abs(t),n,!1,function(A){return e[Math.floor(A%n)]})+r},Ca=1,Xn=2,Yn=4,Zi=8,Dn=function(t,e,r,n,A,a){if(t<-9999||t>9999)return No(t,4,A.length>0);var i=Math.abs(t),o=A;if(i===0)return e[0]+o;for(var s=0;i>0&&s<=4;s++){var l=i%10;l===0&&Ht(a,Ca)&&o!==""?o=e[l]+o:l>1||l===1&&s===0||l===1&&s===1&&Ht(a,Xn)||l===1&&s===1&&Ht(a,Yn)&&t>100||l===1&&s>1&&Ht(a,Zi)?o=e[l]+(s>0?r[s-1]:"")+o:l===1&&s>0&&(o=r[s-1]+o),i=Math.floor(i/10)}return(t<0?n:"")+o},Tm="十百千萬",Im="拾佰仟萬",Lm="マイナス",Sf="마이너스",No=function(t,e,r){var n=r?". ":"",A=r?"、":"",a=r?", ":"",i=r?" ":"";switch(e){case 0:return"•"+i;case 1:return"◦"+i;case 2:return"◾"+i;case 5:var o=Ut(t,48,57,!0,n);return o.length<4?"0"+o:o;case 4:return BA(t,"〇一二三四五六七八九",A);case 6:return va(t,1,3999,Sm,3,n).toLowerCase();case 7:return va(t,1,3999,Sm,3,n);case 8:return Ut(t,945,969,!1,n);case 9:return Ut(t,97,122,!1,n);case 10:return Ut(t,65,90,!1,n);case 11:return Ut(t,1632,1641,!0,n);case 12:case 49:return va(t,1,9999,Um,3,n);case 35:return va(t,1,9999,Um,3,n).toLowerCase();case 13:return Ut(t,2534,2543,!0,n);case 14:case 30:return Ut(t,6112,6121,!0,n);case 15:return BA(t,"子丑寅卯辰巳午未申酉戌亥",A);case 16:return BA(t,"甲乙丙丁戊己庚辛壬癸",A);case 17:case 48:return Dn(t,"零一二三四五六七八九",Tm,"負",A,Xn|Yn|Zi);case 47:return Dn(t,"零壹貳參肆伍陸柒捌玖",Im,"負",A,Ca|Xn|Yn|Zi);case 42:return Dn(t,"零一二三四五六七八九",Tm,"负",A,Xn|Yn|Zi);case 41:return Dn(t,"零壹贰叁肆伍陆柒捌玖",Im,"负",A,Ca|Xn|Yn|Zi);case 26:return Dn(t,"〇一二三四五六七八九","十百千万",Lm,A,0);case 25:return Dn(t,"零壱弐参四伍六七八九","拾百千万",Lm,A,Ca|Xn|Yn);case 31:return Dn(t,"영일이삼사오육칠팔구","십백천만",Sf,a,Ca|Xn|Yn);case 33:return Dn(t,"零一二三四五六七八九","十百千萬",Sf,a,0);case 32:return Dn(t,"零壹貳參四五六七八九","拾百千",Sf,a,Ca|Xn|Yn);case 18:return Ut(t,2406,2415,!0,n);case 20:return va(t,1,19999,lG,3,n);case 21:return Ut(t,2790,2799,!0,n);case 22:return Ut(t,2662,2671,!0,n);case 22:return va(t,1,10999,sG,3,n);case 23:return BA(t,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return BA(t,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return Ut(t,3302,3311,!0,n);case 28:return BA(t,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",A);case 29:return BA(t,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",A);case 34:return Ut(t,3792,3801,!0,n);case 37:return Ut(t,6160,6169,!0,n);case 38:return Ut(t,4160,4169,!0,n);case 39:return Ut(t,2918,2927,!0,n);case 40:return Ut(t,1776,1785,!0,n);case 43:return Ut(t,3046,3055,!0,n);case 44:return Ut(t,3174,3183,!0,n);case 45:return Ut(t,3664,3673,!0,n);case 46:return Ut(t,3872,3881,!0,n);case 3:default:return Ut(t,48,57,!0,n)}},fC="data-html2canvas-ignore",Dm=function(){function t(e,r,n){if(this.context=e,this.options=n,this.scrolledElements=[],this.referenceElement=r,this.counters=new oG,this.quoteDepth=0,!r.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(r.ownerDocument.documentElement,!1)}return t.prototype.toIFrame=function(e,r){var n=this,A=uG(e,r);if(!A.contentWindow)return Promise.reject("Unable to find iframe window");var a=e.defaultView.pageXOffset,i=e.defaultView.pageYOffset,o=A.contentWindow,s=o.document,l=dG(A).then(function(){return ur(n,void 0,void 0,function(){var u,c;return rr(this,function(d){switch(d.label){case 0:return this.scrolledElements.forEach(vG),o&&(o.scrollTo(r.left,r.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(o.scrollY!==r.top||o.scrollX!==r.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(o.scrollX-r.left,o.scrollY-r.top,0,0))),u=this.options.onclone,c=this.clonedReferenceElement,typeof c>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:s.fonts&&s.fonts.ready?[4,s.fonts.ready]:[3,2];case 1:d.sent(),d.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,fG(s)]:[3,4];case 3:d.sent(),d.label=4;case 4:return typeof u=="function"?[2,Promise.resolve().then(function(){return u(s,c)}).then(function(){return A})]:[2,A]}})})});return s.open(),s.write(pG(document.doctype)+""),gG(this.referenceElement.ownerDocument,a,i),s.replaceChild(s.adoptNode(this.documentElement),s.documentElement),s.close(),l},t.prototype.createElementClone=function(e){if(Id(e,2))debugger;if(sC(e))return this.createCanvasClone(e);if(xm(e))return this.createVideoClone(e);if(Fm(e))return this.createStyleClone(e);var r=e.cloneNode(!1);return Md(r)&&(Md(e)&&e.currentSrc&&e.currentSrc!==e.src&&(r.src=e.currentSrc,r.srcset=""),r.loading==="lazy"&&(r.loading="eager")),Qm(r)?this.createCustomElementClone(r):r},t.prototype.createCustomElementClone=function(e){var r=document.createElement("html2canvascustomelement");return Uf(e.style,r),r},t.prototype.createStyleClone=function(e){try{var r=e.sheet;if(r&&r.cssRules){var n=[].slice.call(r.cssRules,0).reduce(function(a,i){return i&&typeof i.cssText=="string"?a+i.cssText:a},""),A=e.cloneNode(!1);return A.textContent=n,A}}catch(a){if(this.context.logger.error("Unable to access cssRules property",a),a.name!=="SecurityError")throw a}return e.cloneNode(!1)},t.prototype.createCanvasClone=function(e){var r;if(this.options.inlineImages&&e.ownerDocument){var n=e.ownerDocument.createElement("img");try{return n.src=e.toDataURL(),n}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",e)}}var A=e.cloneNode(!1);try{A.width=e.width,A.height=e.height;var a=e.getContext("2d"),i=A.getContext("2d");if(i)if(!this.options.allowTaint&&a)i.putImageData(a.getImageData(0,0,e.width,e.height),0,0);else{var o=(r=e.getContext("webgl2"))!==null&&r!==void 0?r:e.getContext("webgl");if(o){var s=o.getContextAttributes();(s==null?void 0:s.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",e)}i.drawImage(e,0,0)}return A}catch{this.context.logger.info("Unable to clone canvas as it is tainted",e)}return A},t.prototype.createVideoClone=function(e){var r=e.ownerDocument.createElement("canvas");r.width=e.offsetWidth,r.height=e.offsetHeight;var n=r.getContext("2d");try{return n&&(n.drawImage(e,0,0,r.width,r.height),this.options.allowTaint||n.getImageData(0,0,r.width,r.height)),r}catch{this.context.logger.info("Unable to clone video as it is tainted",e)}var A=e.ownerDocument.createElement("canvas");return A.width=e.offsetWidth,A.height=e.offsetHeight,A},t.prototype.appendChildNode=function(e,r,n){(!Ia(r)||!iG(r)&&!r.hasAttribute(fC)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(r)))&&(!this.options.copyStyles||!Ia(r)||!Fm(r))&&e.appendChild(this.cloneNode(r,n))},t.prototype.cloneChildNodes=function(e,r,n){for(var A=this,a=e.shadowRoot?e.shadowRoot.firstChild:e.firstChild;a;a=a.nextSibling)if(Ia(a)&&uC(a)&&typeof a.assignedNodes=="function"){var i=a.assignedNodes();i.length&&i.forEach(function(o){return A.appendChildNode(r,o,n)})}else this.appendChildNode(r,a,n)},t.prototype.cloneNode=function(e,r){if(iC(e))return document.createTextNode(e.data);if(!e.ownerDocument)return e.cloneNode(!1);var n=e.ownerDocument.defaultView;if(n&&Ia(e)&&(Rd(e)||Ul(e))){var A=this.createElementClone(e);A.style.transitionProperty="none";var a=n.getComputedStyle(e),i=n.getComputedStyle(e,":before"),o=n.getComputedStyle(e,":after");this.referenceElement===e&&Rd(A)&&(this.clonedReferenceElement=A),qh(A)&&BG(A);var s=this.counters.parse(new um(this.context,a)),l=this.resolvePseudoContent(e,A,i,ho.BEFORE);Qm(e)&&(r=!0),xm(e)||this.cloneChildNodes(e,A,r),l&&A.insertBefore(l,A.firstChild);var u=this.resolvePseudoContent(e,A,o,ho.AFTER);return u&&A.appendChild(u),this.counters.pop(s),(a&&(this.options.copyStyles||Ul(e))&&!lC(e)||r)&&Uf(a,A),(e.scrollTop!==0||e.scrollLeft!==0)&&this.scrolledElements.push([A,e.scrollLeft,e.scrollTop]),(Au(e)||au(e))&&(Au(A)||au(A))&&(A.value=e.value),A}return e.cloneNode(!1)},t.prototype.resolvePseudoContent=function(e,r,n,A){var a=this;if(n){var i=n.content,o=r.ownerDocument;if(!(!o||!i||i==="none"||i==="-moz-alt-content"||n.display==="none")){this.counters.parse(new um(this.context,n));var s=new rK(this.context,n),l=o.createElement("html2canvaspseudoelement");Uf(n,l),s.content.forEach(function(c){if(c.type===0)l.appendChild(o.createTextNode(c.value));else if(c.type===22){var d=o.createElement("img");d.src=c.value,d.style.opacity="1",l.appendChild(d)}else if(c.type===18){if(c.name==="attr"){var h=c.values.filter(at);h.length&&l.appendChild(o.createTextNode(e.getAttribute(h[0].value)||""))}else if(c.name==="counter"){var f=c.values.filter(ti),p=f[0],g=f[1];if(p&&at(p)){var m=a.counters.getCounterValue(p.value),B=g&&at(g)?Td.parse(a.context,g.value):3;l.appendChild(o.createTextNode(No(m,B,!1)))}}else if(c.name==="counters"){var v=c.values.filter(ti),p=v[0],y=v[1],g=v[2];if(p&&at(p)){var b=a.counters.getCounterValues(p.value),E=g&&at(g)?Td.parse(a.context,g.value):3,C=y&&y.type===0?y.value:"",F=b.map(function(Q){return No(Q,E,!1)}).join(C);l.appendChild(o.createTextNode(F))}}}else if(c.type===20)switch(c.value){case"open-quote":l.appendChild(o.createTextNode(lm(s.quotes,a.quoteDepth++,!0)));break;case"close-quote":l.appendChild(o.createTextNode(lm(s.quotes,--a.quoteDepth,!1)));break;default:l.appendChild(o.createTextNode(c.value))}}),l.className=Od+" "+Hd;var u=A===ho.BEFORE?" "+Od:" "+Hd;return Ul(r)?r.className.baseValue+=u:r.className+=u,l}}},t.destroy=function(e){return e.parentNode?(e.parentNode.removeChild(e),!0):!1},t}(),ho;(function(t){t[t.BEFORE=0]="BEFORE",t[t.AFTER=1]="AFTER"})(ho||(ho={}));var uG=function(t,e){var r=t.createElement("iframe");return r.className="html2canvas-container",r.style.visibility="hidden",r.style.position="fixed",r.style.left="-10000px",r.style.top="0px",r.style.border="0",r.width=e.width.toString(),r.height=e.height.toString(),r.scrolling="no",r.setAttribute(fC,"true"),t.body.appendChild(r),r},cG=function(t){return new Promise(function(e){if(t.complete){e();return}if(!t.src){e();return}t.onload=e,t.onerror=e})},fG=function(t){return Promise.all([].slice.call(t.images,0).map(cG))},dG=function(t){return new Promise(function(e,r){var n=t.contentWindow;if(!n)return r("No window assigned for iframe");var A=n.document;n.onload=t.onload=function(){n.onload=t.onload=null;var a=setInterval(function(){A.body.childNodes.length>0&&A.readyState==="complete"&&(clearInterval(a),e(t))},50)}})},hG=["all","d","content"],Uf=function(t,e){for(var r=t.length-1;r>=0;r--){var n=t.item(r);hG.indexOf(n)===-1&&e.style.setProperty(n,t.getPropertyValue(n))}return e},pG=function(t){var e="";return t&&(e+=""),e},gG=function(t,e,r){t&&t.defaultView&&(e!==t.defaultView.pageXOffset||r!==t.defaultView.pageYOffset)&&t.defaultView.scrollTo(e,r)},vG=function(t){var e=t[0],r=t[1],n=t[2];e.scrollLeft=r,e.scrollTop=n},mG=":before",yG=":after",Od="___html2canvas___pseudoelement_before",Hd="___html2canvas___pseudoelement_after",Rm=`{ +***************************************************************************** */var gd=function(t,e){return gd=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var A in n)Object.prototype.hasOwnProperty.call(n,A)&&(r[A]=n[A])},gd(t,e)};function nn(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");gd(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var vd=function(){return vd=Object.assign||function(e){for(var r,n=1,A=arguments.length;n0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]=55296&&A<=56319&&r>10)+55296,i%1024+56320)),(A+1===r||n.length>16384)&&(a+=String.fromCharCode.apply(String,n),n.length=0)}return a},Pv="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",OP=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Ks=0;Ks"u"?[]:new Uint8Array(256);for(var Gs=0;Gs>4,u[A++]=(i&15)<<4|o>>2,u[A++]=(o&3)<<6|s&63;return l},kP=function(t){for(var e=t.length,r=[],n=0;n>OA,KP=1<>OA,VP=vw+GP,$P=VP,zP=32,WP=$P+zP,_P=65536>>zh,XP=1<=0){if(e<55296||e>56319&&e<=65535)return r=this.index[e>>OA],r=(r<>OA)],r=(r<>zh),r=this.index[r],r+=e>>OA&YP,r=this.index[r],r=(r<"u"?[]:new Uint8Array(256);for(var Vs=0;VsVv?(A.push(!0),o-=Vv):A.push(!1),["normal","auto","loose"].indexOf(e)!==-1&&[8208,8211,12316,12448].indexOf(a)!==-1)return n.push(i),r.push(Bd);if(o===r4||o===md){if(i===0)return n.push(i),r.push(SA);var s=r[i-1];return u4.indexOf(s)===-1?(n.push(n[i-1]),r.push(s)):(n.push(i),r.push(SA))}if(n.push(i),o===o4)return r.push(e==="strict"?wd:ko);if(o===ww||o===i4)return r.push(SA);if(o===s4)return a>=131072&&a<=196605||a>=196608&&a<=262141?r.push(ko):r.push(SA);r.push(o)}),[n,r,A]},gf=function(t,e,r,n){var A=n[r];if(Array.isArray(t)?t.indexOf(A)!==-1:t===A)for(var a=r;a<=n.length;){a++;var i=n[a];if(i===e)return!0;if(i!==eA)break}if(A===eA)for(var a=r;a>0;){a--;var o=n[a];if(Array.isArray(t)?t.indexOf(o)!==-1:t===o)for(var s=r;s<=n.length;){s++;var i=n[s];if(i===e)return!0;if(i!==eA)break}if(o!==eA)break}return!1},jv=function(t,e){for(var r=t;r>=0;){var n=e[r];if(n===eA)r--;else return n}return 0},d4=function(t,e,r,n,A){if(r[n]===0)return $e;var a=n-1;if(Array.isArray(A)&&A[a]===!0)return $e;var i=a-1,o=a+1,s=e[a],l=i>=0?e[i]:0,u=e[o];if(s===mw&&u===yw)return $e;if(Qd.indexOf(s)!==-1)return Cw;if(Qd.indexOf(u)!==-1||bw.indexOf(u)!==-1)return $e;if(jv(a,e)===Bw)return _s;if(Fd.get(t[a])===md||(s===zs||s===Ws)&&Fd.get(t[o])===md||s===$v||u===$v||s===zv||[eA,yd,Yi].indexOf(s)===-1&&u===zv||[$s,Mi,a4,ha,pa].indexOf(u)!==-1||jv(a,e)===Oi||gf(hf,Oi,a,e)||gf([$s,Mi],wd,a,e)||gf(Wv,Wv,a,e))return $e;if(s===eA)return _s;if(s===hf||u===hf)return $e;if(u===Bd||s===Bd)return _s;if([yd,Yi,wd].indexOf(u)!==-1||s===A4||l===Ed&&c4.indexOf(s)!==-1||s===pa&&u===Ed||u===_v||Ln.indexOf(u)!==-1&&s===Br||Ln.indexOf(s)!==-1&&u===Br||s===qi&&[ko,zs,Ws].indexOf(u)!==-1||[ko,zs,Ws].indexOf(s)!==-1&&u===ji||Ln.indexOf(s)!==-1&&Xv.indexOf(u)!==-1||Xv.indexOf(s)!==-1&&Ln.indexOf(u)!==-1||[qi,ji].indexOf(s)!==-1&&(u===Br||[Oi,Yi].indexOf(u)!==-1&&e[o+1]===Br)||[Oi,Yi].indexOf(s)!==-1&&u===Br||s===Br&&[Br,pa,ha].indexOf(u)!==-1)return $e;if([Br,pa,ha,$s,Mi].indexOf(u)!==-1)for(var c=a;c>=0;){var d=e[c];if(d===Br)return $e;if([pa,ha].indexOf(d)!==-1)c--;else break}if([qi,ji].indexOf(u)!==-1)for(var c=[$s,Mi].indexOf(s)!==-1?i:a;c>=0;){var d=e[c];if(d===Br)return $e;if([pa,ha].indexOf(d)!==-1)c--;else break}if(xd===s&&[xd,Fl,Cd,bd].indexOf(u)!==-1||[Fl,Cd].indexOf(s)!==-1&&[Fl,Ql].indexOf(u)!==-1||[Ql,bd].indexOf(s)!==-1&&u===Ql||Yv.indexOf(s)!==-1&&[_v,ji].indexOf(u)!==-1||Yv.indexOf(u)!==-1&&s===qi||Ln.indexOf(s)!==-1&&Ln.indexOf(u)!==-1||s===ha&&Ln.indexOf(u)!==-1||Ln.concat(Br).indexOf(s)!==-1&&u===Oi&&l4.indexOf(t[o])===-1||Ln.concat(Br).indexOf(u)!==-1&&s===Mi)return $e;if(s===pf&&u===pf){for(var h=r[a],f=1;h>0&&(h--,e[h]===pf);)f++;if(f%2!==0)return $e}return s===zs&&u===Ws?$e:_s},h4=function(t,e){e||(e={lineBreak:"normal",wordBreak:"normal"});var r=f4(t,e.lineBreak),n=r[0],A=r[1],a=r[2];(e.wordBreak==="break-all"||e.wordBreak==="break-word")&&(A=A.map(function(o){return[Br,SA,ww].indexOf(o)!==-1?ko:o}));var i=e.wordBreak==="keep-all"?a.map(function(o,s){return o&&t[s]>=19968&&t[s]<=40959}):void 0;return[n,A,i]},p4=function(){function t(e,r,n,A){this.codePoints=e,this.required=r===Cw,this.start=n,this.end=A}return t.prototype.slice=function(){return Tt.apply(void 0,this.codePoints.slice(this.start,this.end))},t}(),g4=function(t,e){var r=Ec(t),n=h4(r,e),A=n[0],a=n[1],i=n[2],o=r.length,s=0,l=0;return{next:function(){if(l>=o)return{done:!0,value:null};for(var u=$e;l=Ew&&t<=57},j4=function(t){return t>=55296&&t<=57343},ga=function(t){return nr(t)||t>=Qw&&t<=Uw||t>=xw&&t<=z4},q4=function(t){return t>=xw&&t<=_4},J4=function(t){return t>=Qw&&t<=Y4},Z4=function(t){return q4(t)||J4(t)},eN=function(t){return t>=M4},Js=function(t){return t===Zl||t===y4||t===B4},eu=function(t){return Z4(t)||eN(t)||t===E4},tm=function(t){return eu(t)||nr(t)||t===cr},tN=function(t){return t>=P4&&t<=N4||t===K4||t>=G4&&t<=V4||t===$4},jn=function(t,e){return t!==uo?!1:e!==Zl},Zs=function(t,e,r){return t===cr?eu(e)||jn(e,r):eu(t)?!0:!!(t===uo&&jn(t,e))},mf=function(t,e,r){return t===DA||t===cr?nr(e)?!0:e===Po&&nr(r):nr(t===Po?e:t)},rN=function(t){var e=0,r=1;(t[e]===DA||t[e]===cr)&&(t[e]===cr&&(r=-1),e++);for(var n=[];nr(t[e]);)n.push(t[e++]);var A=n.length?parseInt(Tt.apply(void 0,n),10):0;t[e]===Po&&e++;for(var a=[];nr(t[e]);)a.push(t[e++]);var i=a.length,o=i?parseInt(Tt.apply(void 0,a),10):0;(t[e]===Sw||t[e]===Fw)&&e++;var s=1;(t[e]===DA||t[e]===cr)&&(t[e]===cr&&(s=-1),e++);for(var l=[];nr(t[e]);)l.push(t[e++]);var u=l.length?parseInt(Tt.apply(void 0,l),10):0;return r*(A+o*Math.pow(10,-i))*Math.pow(10,s*u)},nN={type:2},AN={type:3},aN={type:4},iN={type:13},oN={type:8},sN={type:21},lN={type:9},uN={type:10},cN={type:11},fN={type:12},dN={type:14},el={type:23},hN={type:1},pN={type:25},gN={type:24},vN={type:26},mN={type:27},yN={type:28},BN={type:29},wN={type:31},Sd={type:32},Tw=function(){function t(){this._value=[]}return t.prototype.write=function(e){this._value=this._value.concat(Ec(e))},t.prototype.read=function(){for(var e=[],r=this.consumeToken();r!==Sd;)e.push(r),r=this.consumeToken();return e},t.prototype.consumeToken=function(){var e=this.consumeCodePoint();switch(e){case Xs:return this.consumeStringToken(Xs);case w4:var r=this.peekCodePoint(0),n=this.peekCodePoint(1),A=this.peekCodePoint(2);if(tm(r)||jn(n,A)){var a=Zs(r,n,A)?m4:v4,i=this.consumeName();return{type:5,value:i,flags:a}}break;case C4:if(this.peekCodePoint(0)===Hi)return this.consumeCodePoint(),iN;break;case Ys:return this.consumeStringToken(Ys);case js:return nN;case ki:return AN;case vf:if(this.peekCodePoint(0)===Hi)return this.consumeCodePoint(),dN;break;case DA:if(mf(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case O4:return aN;case cr:var o=e,s=this.peekCodePoint(0),l=this.peekCodePoint(1);if(mf(o,s,l))return this.reconsumeCodePoint(e),this.consumeNumericToken();if(Zs(o,s,l))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();if(s===cr&&l===Q4)return this.consumeCodePoint(),this.consumeCodePoint(),gN;break;case Po:if(mf(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case Jv:if(this.peekCodePoint(0)===vf)for(this.consumeCodePoint();;){var u=this.consumeCodePoint();if(u===vf&&(u=this.consumeCodePoint(),u===Jv))return this.consumeToken();if(u===un)return this.consumeToken()}break;case H4:return vN;case k4:return mN;case F4:if(this.peekCodePoint(0)===x4&&this.peekCodePoint(1)===cr&&this.peekCodePoint(2)===cr)return this.consumeCodePoint(),this.consumeCodePoint(),pN;break;case S4:var c=this.peekCodePoint(0),d=this.peekCodePoint(1),h=this.peekCodePoint(2);if(Zs(c,d,h)){var i=this.consumeName();return{type:7,value:i}}break;case U4:return yN;case uo:if(jn(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();break;case T4:return BN;case I4:if(this.peekCodePoint(0)===Hi)return this.consumeCodePoint(),oN;break;case L4:return cN;case D4:return fN;case W4:case X4:var f=this.peekCodePoint(0),p=this.peekCodePoint(1);return f===DA&&(ga(p)||p===qs)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(e),this.consumeIdentLikeToken();case Zv:if(this.peekCodePoint(0)===Hi)return this.consumeCodePoint(),lN;if(this.peekCodePoint(0)===Zv)return this.consumeCodePoint(),sN;break;case R4:if(this.peekCodePoint(0)===Hi)return this.consumeCodePoint(),uN;break;case un:return Sd}return Js(e)?(this.consumeWhiteSpace(),wN):nr(e)?(this.reconsumeCodePoint(e),this.consumeNumericToken()):eu(e)?(this.reconsumeCodePoint(e),this.consumeIdentLikeToken()):{type:6,value:Tt(e)}},t.prototype.consumeCodePoint=function(){var e=this._value.shift();return typeof e>"u"?-1:e},t.prototype.reconsumeCodePoint=function(e){this._value.unshift(e)},t.prototype.peekCodePoint=function(e){return e>=this._value.length?-1:this._value[e]},t.prototype.consumeUnicodeRangeToken=function(){for(var e=[],r=this.consumeCodePoint();ga(r)&&e.length<6;)e.push(r),r=this.consumeCodePoint();for(var n=!1;r===qs&&e.length<6;)e.push(r),r=this.consumeCodePoint(),n=!0;if(n){var A=parseInt(Tt.apply(void 0,e.map(function(s){return s===qs?Ew:s})),16),a=parseInt(Tt.apply(void 0,e.map(function(s){return s===qs?Uw:s})),16);return{type:30,start:A,end:a}}var i=parseInt(Tt.apply(void 0,e),16);if(this.peekCodePoint(0)===cr&&ga(this.peekCodePoint(1))){this.consumeCodePoint(),r=this.consumeCodePoint();for(var o=[];ga(r)&&o.length<6;)o.push(r),r=this.consumeCodePoint();var a=parseInt(Tt.apply(void 0,o),16);return{type:30,start:i,end:a}}else return{type:30,start:i,end:i}},t.prototype.consumeIdentLikeToken=function(){var e=this.consumeName();return e.toLowerCase()==="url"&&this.peekCodePoint(0)===js?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===js?(this.consumeCodePoint(),{type:19,value:e}):{type:20,value:e}},t.prototype.consumeUrlToken=function(){var e=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===un)return{type:22,value:""};var r=this.peekCodePoint(0);if(r===Ys||r===Xs){var n=this.consumeStringToken(this.consumeCodePoint());return n.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===un||this.peekCodePoint(0)===ki)?(this.consumeCodePoint(),{type:22,value:n.value}):(this.consumeBadUrlRemnants(),el)}for(;;){var A=this.consumeCodePoint();if(A===un||A===ki)return{type:22,value:Tt.apply(void 0,e)};if(Js(A))return this.consumeWhiteSpace(),this.peekCodePoint(0)===un||this.peekCodePoint(0)===ki?(this.consumeCodePoint(),{type:22,value:Tt.apply(void 0,e)}):(this.consumeBadUrlRemnants(),el);if(A===Xs||A===Ys||A===js||tN(A))return this.consumeBadUrlRemnants(),el;if(A===uo)if(jn(A,this.peekCodePoint(0)))e.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),el;else e.push(A)}},t.prototype.consumeWhiteSpace=function(){for(;Js(this.peekCodePoint(0));)this.consumeCodePoint()},t.prototype.consumeBadUrlRemnants=function(){for(;;){var e=this.consumeCodePoint();if(e===ki||e===un)return;jn(e,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},t.prototype.consumeStringSlice=function(e){for(var r=5e4,n="";e>0;){var A=Math.min(r,e);n+=Tt.apply(void 0,this._value.splice(0,A)),e-=A}return this._value.shift(),n},t.prototype.consumeStringToken=function(e){var r="",n=0;do{var A=this._value[n];if(A===un||A===void 0||A===e)return r+=this.consumeStringSlice(n),{type:0,value:r};if(A===Zl)return this._value.splice(0,n),hN;if(A===uo){var a=this._value[n+1];a!==un&&a!==void 0&&(a===Zl?(r+=this.consumeStringSlice(n),n=-1,this._value.shift()):jn(A,a)&&(r+=this.consumeStringSlice(n),r+=Tt(this.consumeEscapedCodePoint()),n=-1))}n++}while(!0)},t.prototype.consumeNumber=function(){var e=[],r=ss,n=this.peekCodePoint(0);for((n===DA||n===cr)&&e.push(this.consumeCodePoint());nr(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0);var A=this.peekCodePoint(1);if(n===Po&&nr(A))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),r=qv;nr(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0),A=this.peekCodePoint(1);var a=this.peekCodePoint(2);if((n===Sw||n===Fw)&&((A===DA||A===cr)&&nr(a)||nr(A)))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),r=qv;nr(this.peekCodePoint(0));)e.push(this.consumeCodePoint());return[rN(e),r]},t.prototype.consumeNumericToken=function(){var e=this.consumeNumber(),r=e[0],n=e[1],A=this.peekCodePoint(0),a=this.peekCodePoint(1),i=this.peekCodePoint(2);if(Zs(A,a,i)){var o=this.consumeName();return{type:15,number:r,flags:n,unit:o}}return A===b4?(this.consumeCodePoint(),{type:16,number:r,flags:n}):{type:17,number:r,flags:n}},t.prototype.consumeEscapedCodePoint=function(){var e=this.consumeCodePoint();if(ga(e)){for(var r=Tt(e);ga(this.peekCodePoint(0))&&r.length<6;)r+=Tt(this.consumeCodePoint());Js(this.peekCodePoint(0))&&this.consumeCodePoint();var n=parseInt(r,16);return n===0||j4(n)||n>1114111?em:n}return e===un?em:e},t.prototype.consumeName=function(){for(var e="";;){var r=this.consumeCodePoint();if(tm(r))e+=Tt(r);else if(jn(r,this.peekCodePoint(0)))e+=Tt(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(r),e}},t}(),Iw=function(){function t(e){this._tokens=e}return t.create=function(e){var r=new Tw;return r.write(e),new t(r.read())},t.parseValue=function(e){return t.create(e).parseComponentValue()},t.parseValues=function(e){return t.create(e).parseComponentValues()},t.prototype.parseComponentValue=function(){for(var e=this.consumeToken();e.type===31;)e=this.consumeToken();if(e.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(e);var r=this.consumeComponentValue();do e=this.consumeToken();while(e.type===31);if(e.type===32)return r;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},t.prototype.parseComponentValues=function(){for(var e=[];;){var r=this.consumeComponentValue();if(r.type===32)return e;e.push(r),e.push()}},t.prototype.consumeComponentValue=function(){var e=this.consumeToken();switch(e.type){case 11:case 28:case 2:return this.consumeSimpleBlock(e.type);case 19:return this.consumeFunction(e)}return e},t.prototype.consumeSimpleBlock=function(e){for(var r={type:e,values:[]},n=this.consumeToken();;){if(n.type===32||bN(n,e))return r;this.reconsumeToken(n),r.values.push(this.consumeComponentValue()),n=this.consumeToken()}},t.prototype.consumeFunction=function(e){for(var r={name:e.value,values:[],type:18};;){var n=this.consumeToken();if(n.type===32||n.type===3)return r;this.reconsumeToken(n),r.values.push(this.consumeComponentValue())}},t.prototype.consumeToken=function(){var e=this._tokens.shift();return typeof e>"u"?Sd:e},t.prototype.reconsumeToken=function(e){this._tokens.unshift(e)},t}(),ls=function(t){return t.type===15},vi=function(t){return t.type===17},at=function(t){return t.type===20},CN=function(t){return t.type===0},Ud=function(t,e){return at(t)&&t.value===e},Lw=function(t){return t.type!==31},ri=function(t){return t.type!==31&&t.type!==4},Qn=function(t){var e=[],r=[];return t.forEach(function(n){if(n.type===4){if(r.length===0)throw new Error("Error parsing function args, zero tokens for arg");e.push(r),r=[];return}n.type!==31&&r.push(n)}),r.length&&e.push(r),e},bN=function(t,e){return e===11&&t.type===12||e===28&&t.type===29?!0:e===2&&t.type===3},hA=function(t){return t.type===17||t.type===15},Dt=function(t){return t.type===16||hA(t)},Dw=function(t){return t.length>1?[t[0],t[1]]:[t[0]]},Yt={type:17,number:0,flags:ss},Wh={type:16,number:50,flags:ss},tA={type:16,number:100,flags:ss},Ji=function(t,e,r){var n=t[0],A=t[1];return[ft(n,e),ft(typeof A<"u"?A:n,r)]},ft=function(t,e){if(t.type===16)return t.number/100*e;if(ls(t))switch(t.unit){case"rem":case"em":return 16*t.number;case"px":default:return t.number}return t.number},Rw="deg",Mw="grad",Ow="rad",Hw="turn",xc={name:"angle",parse:function(t,e){if(e.type===15)switch(e.unit){case Rw:return Math.PI*e.number/180;case Mw:return Math.PI/200*e.number;case Ow:return e.number;case Hw:return Math.PI*2*e.number}throw new Error("Unsupported angle type")}},kw=function(t){return t.type===15&&(t.unit===Rw||t.unit===Mw||t.unit===Ow||t.unit===Hw)},Pw=function(t){var e=t.filter(at).map(function(r){return r.value}).join(" ");switch(e){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Yt,Yt];case"to top":case"bottom":return kr(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Yt,tA];case"to right":case"left":return kr(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[tA,tA];case"to bottom":case"top":return kr(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[tA,Yt];case"to left":case"right":return kr(270)}return 0},kr=function(t){return Math.PI*t/180},iA={name:"color",parse:function(t,e){if(e.type===18){var r=EN[e.name];if(typeof r>"u")throw new Error('Attempting to parse an unsupported color function "'+e.name+'"');return r(t,e.values)}if(e.type===5){if(e.value.length===3){var n=e.value.substring(0,1),A=e.value.substring(1,2),a=e.value.substring(2,3);return rA(parseInt(n+n,16),parseInt(A+A,16),parseInt(a+a,16),1)}if(e.value.length===4){var n=e.value.substring(0,1),A=e.value.substring(1,2),a=e.value.substring(2,3),i=e.value.substring(3,4);return rA(parseInt(n+n,16),parseInt(A+A,16),parseInt(a+a,16),parseInt(i+i,16)/255)}if(e.value.length===6){var n=e.value.substring(0,2),A=e.value.substring(2,4),a=e.value.substring(4,6);return rA(parseInt(n,16),parseInt(A,16),parseInt(a,16),1)}if(e.value.length===8){var n=e.value.substring(0,2),A=e.value.substring(2,4),a=e.value.substring(4,6),i=e.value.substring(6,8);return rA(parseInt(n,16),parseInt(A,16),parseInt(a,16),parseInt(i,16)/255)}}if(e.type===20){var o=Rn[e.value.toUpperCase()];if(typeof o<"u")return o}return Rn.TRANSPARENT}},oA=function(t){return(255&t)===0},Gt=function(t){var e=255&t,r=255&t>>8,n=255&t>>16,A=255&t>>24;return e<255?"rgba("+A+","+n+","+r+","+e/255+")":"rgb("+A+","+n+","+r+")"},rA=function(t,e,r,n){return(t<<24|e<<16|r<<8|Math.round(n*255)<<0)>>>0},rm=function(t,e){if(t.type===17)return t.number;if(t.type===16){var r=e===3?1:255;return e===3?t.number/100*r:Math.round(t.number/100*r)}return 0},nm=function(t,e){var r=e.filter(ri);if(r.length===3){var n=r.map(rm),A=n[0],a=n[1],i=n[2];return rA(A,a,i,1)}if(r.length===4){var o=r.map(rm),A=o[0],a=o[1],i=o[2],s=o[3];return rA(A,a,i,s)}return 0};function yf(t,e,r){return r<0&&(r+=1),r>=1&&(r-=1),r<1/6?(e-t)*r*6+t:r<1/2?e:r<2/3?(e-t)*6*(2/3-r)+t:t}var Am=function(t,e){var r=e.filter(ri),n=r[0],A=r[1],a=r[2],i=r[3],o=(n.type===17?kr(n.number):xc.parse(t,n))/(Math.PI*2),s=Dt(A)?A.number/100:0,l=Dt(a)?a.number/100:0,u=typeof i<"u"&&Dt(i)?ft(i,1):1;if(s===0)return rA(l*255,l*255,l*255,1);var c=l<=.5?l*(s+1):l+s-l*s,d=l*2-c,h=yf(d,c,o+1/3),f=yf(d,c,o),p=yf(d,c,o-1/3);return rA(h*255,f*255,p*255,u)},EN={hsl:Am,hsla:Am,rgb:nm,rgba:nm},co=function(t,e){return iA.parse(t,Iw.create(e).parseComponentValue())},Rn={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},xN={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(t,e){return e.map(function(r){if(at(r))switch(r.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},FN={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Fc=function(t,e){var r=iA.parse(t,e[0]),n=e[1];return n&&Dt(n)?{color:r,stop:n}:{color:r,stop:null}},am=function(t,e){var r=t[0],n=t[t.length-1];r.stop===null&&(r.stop=Yt),n.stop===null&&(n.stop=tA);for(var A=[],a=0,i=0;ia?A.push(s):A.push(a),a=s}else A.push(null)}for(var l=null,i=0;ii.optimumDistance)?{optimumCorner:o,optimumDistance:u}:i},{optimumDistance:A?1/0:-1/0,optimumCorner:null}).optimumCorner},UN=function(t,e,r,n,A){var a=0,i=0;switch(t.size){case 0:t.shape===0?a=i=Math.min(Math.abs(e),Math.abs(e-n),Math.abs(r),Math.abs(r-A)):t.shape===1&&(a=Math.min(Math.abs(e),Math.abs(e-n)),i=Math.min(Math.abs(r),Math.abs(r-A)));break;case 2:if(t.shape===0)a=i=Math.min(Xr(e,r),Xr(e,r-A),Xr(e-n,r),Xr(e-n,r-A));else if(t.shape===1){var o=Math.min(Math.abs(r),Math.abs(r-A))/Math.min(Math.abs(e),Math.abs(e-n)),s=im(n,A,e,r,!0),l=s[0],u=s[1];a=Xr(l-e,(u-r)/o),i=o*a}break;case 1:t.shape===0?a=i=Math.max(Math.abs(e),Math.abs(e-n),Math.abs(r),Math.abs(r-A)):t.shape===1&&(a=Math.max(Math.abs(e),Math.abs(e-n)),i=Math.max(Math.abs(r),Math.abs(r-A)));break;case 3:if(t.shape===0)a=i=Math.max(Xr(e,r),Xr(e,r-A),Xr(e-n,r),Xr(e-n,r-A));else if(t.shape===1){var o=Math.max(Math.abs(r),Math.abs(r-A))/Math.max(Math.abs(e),Math.abs(e-n)),c=im(n,A,e,r,!1),l=c[0],u=c[1];a=Xr(l-e,(u-r)/o),i=o*a}break}return Array.isArray(t.size)&&(a=ft(t.size[0],n),i=t.size.length===2?ft(t.size[1],A):a),[a,i]},TN=function(t,e){var r=kr(180),n=[];return Qn(e).forEach(function(A,a){if(a===0){var i=A[0];if(i.type===20&&i.value==="to"){r=Pw(A);return}else if(kw(i)){r=xc.parse(t,i);return}}var o=Fc(t,A);n.push(o)}),{angle:r,stops:n,type:1}},tl=function(t,e){var r=kr(180),n=[];return Qn(e).forEach(function(A,a){if(a===0){var i=A[0];if(i.type===20&&["top","left","right","bottom"].indexOf(i.value)!==-1){r=Pw(A);return}else if(kw(i)){r=(xc.parse(t,i)+kr(270))%kr(360);return}}var o=Fc(t,A);n.push(o)}),{angle:r,stops:n,type:1}},IN=function(t,e){var r=kr(180),n=[],A=1,a=0,i=3,o=[];return Qn(e).forEach(function(s,l){var u=s[0];if(l===0){if(at(u)&&u.value==="linear"){A=1;return}else if(at(u)&&u.value==="radial"){A=2;return}}if(u.type===18){if(u.name==="from"){var c=iA.parse(t,u.values[0]);n.push({stop:Yt,color:c})}else if(u.name==="to"){var c=iA.parse(t,u.values[0]);n.push({stop:tA,color:c})}else if(u.name==="color-stop"){var d=u.values.filter(ri);if(d.length===2){var c=iA.parse(t,d[1]),h=d[0];vi(h)&&n.push({stop:{type:16,number:h.number*100,flags:h.flags},color:c})}}}}),A===1?{angle:(r+kr(180))%kr(360),stops:n,type:A}:{size:i,shape:a,stops:n,position:o,type:A}},Nw="closest-side",Kw="farthest-side",Gw="closest-corner",Vw="farthest-corner",$w="circle",zw="ellipse",Ww="cover",_w="contain",LN=function(t,e){var r=0,n=3,A=[],a=[];return Qn(e).forEach(function(i,o){var s=!0;if(o===0){var l=!1;s=i.reduce(function(c,d){if(l)if(at(d))switch(d.value){case"center":return a.push(Wh),c;case"top":case"left":return a.push(Yt),c;case"right":case"bottom":return a.push(tA),c}else(Dt(d)||hA(d))&&a.push(d);else if(at(d))switch(d.value){case $w:return r=0,!1;case zw:return r=1,!1;case"at":return l=!0,!1;case Nw:return n=0,!1;case Ww:case Kw:return n=1,!1;case _w:case Gw:return n=2,!1;case Vw:return n=3,!1}else if(hA(d)||Dt(d))return Array.isArray(n)||(n=[]),n.push(d),!1;return c},s)}if(s){var u=Fc(t,i);A.push(u)}}),{size:n,shape:r,stops:A,position:a,type:2}},rl=function(t,e){var r=0,n=3,A=[],a=[];return Qn(e).forEach(function(i,o){var s=!0;if(o===0?s=i.reduce(function(u,c){if(at(c))switch(c.value){case"center":return a.push(Wh),!1;case"top":case"left":return a.push(Yt),!1;case"right":case"bottom":return a.push(tA),!1}else if(Dt(c)||hA(c))return a.push(c),!1;return u},s):o===1&&(s=i.reduce(function(u,c){if(at(c))switch(c.value){case $w:return r=0,!1;case zw:return r=1,!1;case _w:case Nw:return n=0,!1;case Kw:return n=1,!1;case Gw:return n=2,!1;case Ww:case Vw:return n=3,!1}else if(hA(c)||Dt(c))return Array.isArray(n)||(n=[]),n.push(c),!1;return u},s)),s){var l=Fc(t,i);A.push(l)}}),{size:n,shape:r,stops:A,position:a,type:2}},DN=function(t){return t.type===1},RN=function(t){return t.type===2},_h={name:"image",parse:function(t,e){if(e.type===22){var r={url:e.value,type:0};return t.cache.addImage(e.value),r}if(e.type===18){var n=Xw[e.name];if(typeof n>"u")throw new Error('Attempting to parse an unsupported image function "'+e.name+'"');return n(t,e.values)}throw new Error("Unsupported image type "+e.type)}};function MN(t){return!(t.type===20&&t.value==="none")&&(t.type!==18||!!Xw[t.name])}var Xw={"linear-gradient":TN,"-moz-linear-gradient":tl,"-ms-linear-gradient":tl,"-o-linear-gradient":tl,"-webkit-linear-gradient":tl,"radial-gradient":LN,"-moz-radial-gradient":rl,"-ms-radial-gradient":rl,"-o-radial-gradient":rl,"-webkit-radial-gradient":rl,"-webkit-gradient":IN},ON={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(t,e){if(e.length===0)return[];var r=e[0];return r.type===20&&r.value==="none"?[]:e.filter(function(n){return ri(n)&&MN(n)}).map(function(n){return _h.parse(t,n)})}},HN={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(t,e){return e.map(function(r){if(at(r))switch(r.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},kN={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(t,e){return Qn(e).map(function(r){return r.filter(Dt)}).map(Dw)}},PN={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(t,e){return Qn(e).map(function(r){return r.filter(at).map(function(n){return n.value}).join(" ")}).map(NN)}},NN=function(t){switch(t){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}},Na;(function(t){t.AUTO="auto",t.CONTAIN="contain",t.COVER="cover"})(Na||(Na={}));var KN={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(t,e){return Qn(e).map(function(r){return r.filter(GN)})}},GN=function(t){return at(t)||Dt(t)},Qc=function(t){return{name:"border-"+t+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},VN=Qc("top"),$N=Qc("right"),zN=Qc("bottom"),WN=Qc("left"),Sc=function(t){return{name:"border-radius-"+t,initialValue:"0 0",prefix:!1,type:1,parse:function(e,r){return Dw(r.filter(Dt))}}},_N=Sc("top-left"),XN=Sc("top-right"),YN=Sc("bottom-right"),jN=Sc("bottom-left"),Uc=function(t){return{name:"border-"+t+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(e,r){switch(r){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},qN=Uc("top"),JN=Uc("right"),ZN=Uc("bottom"),e5=Uc("left"),Tc=function(t){return{name:"border-"+t+"-width",initialValue:"0",type:0,prefix:!1,parse:function(e,r){return ls(r)?r.number:0}}},t5=Tc("top"),r5=Tc("right"),n5=Tc("bottom"),A5=Tc("left"),a5={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},i5={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(t,e){switch(e){case"rtl":return 1;case"ltr":default:return 0}}},o5={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(t,e){return e.filter(at).reduce(function(r,n){return r|s5(n.value)},0)}},s5=function(t){switch(t){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},l5={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(t,e){switch(e){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},u5={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(t,e){return e.type===20&&e.value==="normal"?0:e.type===17||e.type===15?e.number:0}},tu;(function(t){t.NORMAL="normal",t.STRICT="strict"})(tu||(tu={}));var c5={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){switch(e){case"strict":return tu.STRICT;case"normal":default:return tu.NORMAL}}},f5={name:"line-height",initialValue:"normal",prefix:!1,type:4},om=function(t,e){return at(t)&&t.value==="normal"?1.2*e:t.type===17?e*t.number:Dt(t)?ft(t,e):e},d5={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(t,e){return e.type===20&&e.value==="none"?null:_h.parse(t,e)}},h5={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(t,e){switch(e){case"inside":return 0;case"outside":default:return 1}}},Td={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(t,e){switch(e){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},Ic=function(t){return{name:"margin-"+t,initialValue:"0",prefix:!1,type:4}},p5=Ic("top"),g5=Ic("right"),v5=Ic("bottom"),m5=Ic("left"),y5={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(t,e){return e.filter(at).map(function(r){switch(r.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},B5={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){switch(e){case"break-word":return"break-word";case"normal":default:return"normal"}}},Lc=function(t){return{name:"padding-"+t,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},w5=Lc("top"),C5=Lc("right"),b5=Lc("bottom"),E5=Lc("left"),x5={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(t,e){switch(e){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},F5={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(t,e){switch(e){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},Q5={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(t,e){return e.length===1&&Ud(e[0],"none")?[]:Qn(e).map(function(r){for(var n={color:Rn.TRANSPARENT,offsetX:Yt,offsetY:Yt,blur:Yt},A=0,a=0;a"u")throw new Error('Attempting to parse an unsupported transform function "'+e.name+'"');return r(e.values)}return null}},T5=function(t){var e=t.filter(function(r){return r.type===17}).map(function(r){return r.number});return e.length===6?e:null},I5=function(t){var e=t.filter(function(s){return s.type===17}).map(function(s){return s.number}),r=e[0],n=e[1];e[2],e[3];var A=e[4],a=e[5];e[6],e[7],e[8],e[9],e[10],e[11];var i=e[12],o=e[13];return e[14],e[15],e.length===16?[r,n,A,a,i,o]:null},L5={matrix:T5,matrix3d:I5},sm={type:16,number:50,flags:ss},D5=[sm,sm],R5={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(t,e){var r=e.filter(Dt);return r.length!==2?D5:[r[0],r[1]]}},M5={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(t,e){switch(e){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},fo;(function(t){t.NORMAL="normal",t.BREAK_ALL="break-all",t.KEEP_ALL="keep-all"})(fo||(fo={}));var O5={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){switch(e){case"break-all":return fo.BREAK_ALL;case"keep-all":return fo.KEEP_ALL;case"normal":default:return fo.NORMAL}}},H5={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(t,e){if(e.type===20)return{auto:!0,order:0};if(vi(e))return{auto:!1,order:e.number};throw new Error("Invalid z-index number parsed")}},Yw={name:"time",parse:function(t,e){if(e.type===15)switch(e.unit.toLowerCase()){case"s":return 1e3*e.number;case"ms":return e.number}throw new Error("Unsupported time type")}},k5={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(t,e){return vi(e)?e.number:1}},P5={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},N5={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(t,e){return e.filter(at).map(function(r){switch(r.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(r){return r!==0})}},K5={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(t,e){var r=[],n=[];return e.forEach(function(A){switch(A.type){case 20:case 0:r.push(A.value);break;case 17:r.push(A.number.toString());break;case 4:n.push(r.join(" ")),r.length=0;break}}),r.length&&n.push(r.join(" ")),n.map(function(A){return A.indexOf(" ")===-1?A:"'"+A+"'"})}},G5={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},V5={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(t,e){if(vi(e))return e.number;if(at(e))switch(e.value){case"bold":return 700;case"normal":default:return 400}return 400}},$5={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(t,e){return e.filter(at).map(function(r){return r.value})}},z5={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){switch(e){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},Ht=function(t,e){return(t&e)!==0},W5={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(t,e){if(e.length===0)return[];var r=e[0];return r.type===20&&r.value==="none"?[]:e}},_5={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(t,e){if(e.length===0)return null;var r=e[0];if(r.type===20&&r.value==="none")return null;for(var n=[],A=e.filter(Lw),a=0;a1?1:0],this.overflowWrap=Ue(e,B5,r.overflowWrap),this.paddingTop=Ue(e,w5,r.paddingTop),this.paddingRight=Ue(e,C5,r.paddingRight),this.paddingBottom=Ue(e,b5,r.paddingBottom),this.paddingLeft=Ue(e,E5,r.paddingLeft),this.paintOrder=Ue(e,J5,r.paintOrder),this.position=Ue(e,F5,r.position),this.textAlign=Ue(e,x5,r.textAlign),this.textDecorationColor=Ue(e,P5,(n=r.textDecorationColor)!==null&&n!==void 0?n:r.color),this.textDecorationLine=Ue(e,N5,(A=r.textDecorationLine)!==null&&A!==void 0?A:r.textDecoration),this.textShadow=Ue(e,Q5,r.textShadow),this.textTransform=Ue(e,S5,r.textTransform),this.transform=Ue(e,U5,r.transform),this.transformOrigin=Ue(e,R5,r.transformOrigin),this.visibility=Ue(e,M5,r.visibility),this.webkitTextStrokeColor=Ue(e,Z5,r.webkitTextStrokeColor),this.webkitTextStrokeWidth=Ue(e,eK,r.webkitTextStrokeWidth),this.wordBreak=Ue(e,O5,r.wordBreak),this.zIndex=Ue(e,H5,r.zIndex)}return t.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},t.prototype.isTransparent=function(){return oA(this.backgroundColor)},t.prototype.isTransformed=function(){return this.transform!==null},t.prototype.isPositioned=function(){return this.position!==0},t.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},t.prototype.isFloating=function(){return this.float!==0},t.prototype.isInlineLevel=function(){return Ht(this.display,4)||Ht(this.display,33554432)||Ht(this.display,268435456)||Ht(this.display,536870912)||Ht(this.display,67108864)||Ht(this.display,134217728)},t}(),rK=function(){function t(e,r){this.content=Ue(e,W5,r.content),this.quotes=Ue(e,j5,r.quotes)}return t}(),um=function(){function t(e,r){this.counterIncrement=Ue(e,_5,r.counterIncrement),this.counterReset=Ue(e,X5,r.counterReset)}return t}(),Ue=function(t,e,r){var n=new Tw,A=r!==null&&typeof r<"u"?r.toString():e.initialValue;n.write(A);var a=new Iw(n.read());switch(e.type){case 2:var i=a.parseComponentValue();return e.parse(t,at(i)?i.value:e.initialValue);case 0:return e.parse(t,a.parseComponentValue());case 1:return e.parse(t,a.parseComponentValues());case 4:return a.parseComponentValue();case 3:switch(e.format){case"angle":return xc.parse(t,a.parseComponentValue());case"color":return iA.parse(t,a.parseComponentValue());case"image":return _h.parse(t,a.parseComponentValue());case"length":var o=a.parseComponentValue();return hA(o)?o:Yt;case"length-percentage":var s=a.parseComponentValue();return Dt(s)?s:Yt;case"time":return Yw.parse(t,a.parseComponentValue())}break}},nK="data-html2canvas-debug",AK=function(t){var e=t.getAttribute(nK);switch(e){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},Id=function(t,e){var r=AK(t);return r===1||e===r},Sn=function(){function t(e,r){if(this.context=e,this.textNodes=[],this.elements=[],this.flags=0,Id(r,3))debugger;this.styles=new tK(e,window.getComputedStyle(r,null)),Rd(r)&&(this.styles.animationDuration.some(function(n){return n>0})&&(r.style.animationDuration="0s"),this.styles.transform!==null&&(r.style.transform="none")),this.bounds=bc(this.context,r),Id(r,4)&&(this.flags|=16)}return t}(),aK="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",cm="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Zi=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var nl=0;nl>4,u[A++]=(i&15)<<4|o>>2,u[A++]=(o&3)<<6|s&63;return l},oK=function(t){for(var e=t.length,r=[],n=0;n>HA,uK=1<>HA,fK=jw+cK,dK=fK,hK=32,pK=dK+hK,gK=65536>>Xh,vK=1<=0){if(e<55296||e>56319&&e<=65535)return r=this.index[e>>HA],r=(r<>HA)],r=(r<>Xh),r=this.index[r],r+=e>>HA&mK,r=this.index[r],r=(r<"u"?[]:new Uint8Array(256);for(var Al=0;Al=55296&&A<=56319&&r>10)+55296,i%1024+56320)),(A+1===r||n.length>16384)&&(a+=String.fromCharCode.apply(String,n),n.length=0)}return a},QK=BK(aK),Ur="×",Qf="÷",SK=function(t){return QK.get(t)},UK=function(t,e,r){var n=r-2,A=e[n],a=e[r-1],i=e[r];if(a===Cf&&i===bf)return Ur;if(a===Cf||a===bf||a===hm||i===Cf||i===bf||i===hm)return Qf;if(a===gm&&[gm,Ef,vm,mm].indexOf(i)!==-1||(a===vm||a===Ef)&&(i===Ef||i===xf)||(a===mm||a===xf)&&i===xf||i===ym||i===pm||i===EK||a===bK)return Ur;if(a===ym&&i===Bm){for(;A===pm;)A=e[--n];if(A===Bm)return Ur}if(a===Ff&&i===Ff){for(var o=0;A===Ff;)o++,A=e[--n];if(o%2===0)return Ur}return Qf},TK=function(t){var e=xK(t),r=e.length,n=0,A=0,a=e.map(SK);return{next:function(){if(n>=r)return{done:!0,value:null};for(var i=Ur;ni.x||u.y>i.y;return i=u,l===0?!0:c});return t.body.removeChild(e),o},RK=function(){return typeof new Image().crossOrigin<"u"},MK=function(){return typeof new XMLHttpRequest().responseType=="string"},OK=function(t){var e=new Image,r=t.createElement("canvas"),n=r.getContext("2d");if(!n)return!1;e.src="data:image/svg+xml,";try{n.drawImage(e,0,0),r.toDataURL()}catch{return!1}return!0},wm=function(t){return t[0]===0&&t[1]===255&&t[2]===0&&t[3]===255},HK=function(t){var e=t.createElement("canvas"),r=100;e.width=r,e.height=r;var n=e.getContext("2d");if(!n)return Promise.reject(!1);n.fillStyle="rgb(0, 255, 0)",n.fillRect(0,0,r,r);var A=new Image,a=e.toDataURL();A.src=a;var i=Ld(r,r,0,0,A);return n.fillStyle="red",n.fillRect(0,0,r,r),Cm(i).then(function(o){n.drawImage(o,0,0);var s=n.getImageData(0,0,r,r).data;n.fillStyle="red",n.fillRect(0,0,r,r);var l=t.createElement("div");return l.style.backgroundImage="url("+a+")",l.style.height=r+"px",wm(s)?Cm(Ld(r,r,0,0,l)):Promise.reject(!1)}).then(function(o){return n.drawImage(o,0,0),wm(n.getImageData(0,0,r,r).data)}).catch(function(){return!1})},Ld=function(t,e,r,n,A){var a="http://www.w3.org/2000/svg",i=document.createElementNS(a,"svg"),o=document.createElementNS(a,"foreignObject");return i.setAttributeNS(null,"width",t.toString()),i.setAttributeNS(null,"height",e.toString()),o.setAttributeNS(null,"width","100%"),o.setAttributeNS(null,"height","100%"),o.setAttributeNS(null,"x",r.toString()),o.setAttributeNS(null,"y",n.toString()),o.setAttributeNS(null,"externalResourcesRequired","true"),i.appendChild(o),o.appendChild(A),i},Cm=function(t){return new Promise(function(e,r){var n=new Image;n.onload=function(){return e(n)},n.onerror=r,n.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(t))})},_t={get SUPPORT_RANGE_BOUNDS(){var t=LK(document);return Object.defineProperty(_t,"SUPPORT_RANGE_BOUNDS",{value:t}),t},get SUPPORT_WORD_BREAKING(){var t=_t.SUPPORT_RANGE_BOUNDS&&DK(document);return Object.defineProperty(_t,"SUPPORT_WORD_BREAKING",{value:t}),t},get SUPPORT_SVG_DRAWING(){var t=OK(document);return Object.defineProperty(_t,"SUPPORT_SVG_DRAWING",{value:t}),t},get SUPPORT_FOREIGNOBJECT_DRAWING(){var t=typeof Array.from=="function"&&typeof window.fetch=="function"?HK(document):Promise.resolve(!1);return Object.defineProperty(_t,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:t}),t},get SUPPORT_CORS_IMAGES(){var t=RK();return Object.defineProperty(_t,"SUPPORT_CORS_IMAGES",{value:t}),t},get SUPPORT_RESPONSE_TYPE(){var t=MK();return Object.defineProperty(_t,"SUPPORT_RESPONSE_TYPE",{value:t}),t},get SUPPORT_CORS_XHR(){var t="withCredentials"in new XMLHttpRequest;return Object.defineProperty(_t,"SUPPORT_CORS_XHR",{value:t}),t},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var t=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(_t,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:t}),t}},ho=function(){function t(e,r){this.text=e,this.bounds=r}return t}(),kK=function(t,e,r,n){var A=KK(e,r),a=[],i=0;return A.forEach(function(o){if(r.textDecorationLine.length||o.trim().length>0)if(_t.SUPPORT_RANGE_BOUNDS){var s=bm(n,i,o.length).getClientRects();if(s.length>1){var l=Yh(o),u=0;l.forEach(function(d){a.push(new ho(d,Gn.fromDOMRectList(t,bm(n,u+i,d.length).getClientRects()))),u+=d.length})}else a.push(new ho(o,Gn.fromDOMRectList(t,s)))}else{var c=n.splitText(o.length);a.push(new ho(o,PK(t,n))),n=c}else _t.SUPPORT_RANGE_BOUNDS||(n=n.splitText(o.length));i+=o.length}),a},PK=function(t,e){var r=e.ownerDocument;if(r){var n=r.createElement("html2canvaswrapper");n.appendChild(e.cloneNode(!0));var A=e.parentNode;if(A){A.replaceChild(n,e);var a=bc(t,n);return n.firstChild&&A.replaceChild(n.firstChild,n),a}}return Gn.EMPTY},bm=function(t,e,r){var n=t.ownerDocument;if(!n)throw new Error("Node has no owner document");var A=n.createRange();return A.setStart(t,e),A.setEnd(t,e+r),A},Yh=function(t){if(_t.SUPPORT_NATIVE_TEXT_SEGMENTATION){var e=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(e.segment(t)).map(function(r){return r.segment})}return IK(t)},NK=function(t,e){if(_t.SUPPORT_NATIVE_TEXT_SEGMENTATION){var r=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(r.segment(t)).map(function(n){return n.segment})}return VK(t,e)},KK=function(t,e){return e.letterSpacing!==0?Yh(t):NK(t,e)},GK=[32,160,4961,65792,65793,4153,4241],VK=function(t,e){for(var r=g4(t,{lineBreak:e.lineBreak,wordBreak:e.overflowWrap==="break-word"?"break-word":e.wordBreak}),n=[],A,a=function(){if(A.value){var i=A.value.slice(),o=Ec(i),s="";o.forEach(function(l){GK.indexOf(l)===-1?s+=Tt(l):(s.length&&n.push(s),n.push(Tt(l)),s="")}),s.length&&n.push(s)}};!(A=r.next()).done;)a();return n},$K=function(){function t(e,r,n){this.text=zK(r.data,n.textTransform),this.textBounds=kK(e,this.text,n,r)}return t}(),zK=function(t,e){switch(e){case 1:return t.toLowerCase();case 3:return t.replace(WK,_K);case 2:return t.toUpperCase();default:return t}},WK=/(^|\s|:|-|\(|\))([a-z])/g,_K=function(t,e,r){return t.length>0?e+r.toUpperCase():t},qw=function(t){nn(e,t);function e(r,n){var A=t.call(this,r,n)||this;return A.src=n.currentSrc||n.src,A.intrinsicWidth=n.naturalWidth,A.intrinsicHeight=n.naturalHeight,A.context.cache.addImage(A.src),A}return e}(Sn),Jw=function(t){nn(e,t);function e(r,n){var A=t.call(this,r,n)||this;return A.canvas=n,A.intrinsicWidth=n.width,A.intrinsicHeight=n.height,A}return e}(Sn),Zw=function(t){nn(e,t);function e(r,n){var A=t.call(this,r,n)||this,a=new XMLSerializer,i=bc(r,n);return n.setAttribute("width",i.width+"px"),n.setAttribute("height",i.height+"px"),A.svg="data:image/svg+xml,"+encodeURIComponent(a.serializeToString(n)),A.intrinsicWidth=n.width.baseVal.value,A.intrinsicHeight=n.height.baseVal.value,A.context.cache.addImage(A.svg),A}return e}(Sn),eC=function(t){nn(e,t);function e(r,n){var A=t.call(this,r,n)||this;return A.value=n.value,A}return e}(Sn),Dd=function(t){nn(e,t);function e(r,n){var A=t.call(this,r,n)||this;return A.start=n.start,A.reversed=typeof n.reversed=="boolean"&&n.reversed===!0,A}return e}(Sn),XK=[{type:15,flags:0,unit:"px",number:3}],YK=[{type:16,flags:0,number:50}],jK=function(t){return t.width>t.height?new Gn(t.left+(t.width-t.height)/2,t.top,t.height,t.height):t.width0)r.textNodes.push(new $K(t,A,r.styles));else if(Ia(A))if(uC(A)&&A.assignedNodes)A.assignedNodes().forEach(function(o){return Sl(t,o,r,n)});else{var i=AC(t,A);i.styles.isVisible()&&(eG(A,i,n)?i.flags|=4:tG(i.styles)&&(i.flags|=2),ZK.indexOf(A.tagName)!==-1&&(i.flags|=8),r.elements.push(i),A.slot,A.shadowRoot?Sl(t,A.shadowRoot,i,n):!Au(A)&&!oC(A)&&!au(A)&&Sl(t,A,i,n))}},AC=function(t,e){return Md(e)?new qw(t,e):sC(e)?new Jw(t,e):oC(e)?new Zw(t,e):rG(e)?new eC(t,e):nG(e)?new Dd(t,e):AG(e)?new jh(t,e):au(e)?new tC(t,e):Au(e)?new rC(t,e):lC(e)?new nC(t,e):new Sn(t,e)},aC=function(t,e){var r=AC(t,e);return r.flags|=4,Sl(t,e,r,r),r},eG=function(t,e,r){return e.styles.isPositionedWithZIndex()||e.styles.opacity<1||e.styles.isTransformed()||qh(t)&&r.styles.isTransparent()},tG=function(t){return t.isPositioned()||t.isFloating()},iC=function(t){return t.nodeType===Node.TEXT_NODE},Ia=function(t){return t.nodeType===Node.ELEMENT_NODE},Rd=function(t){return Ia(t)&&typeof t.style<"u"&&!Ul(t)},Ul=function(t){return typeof t.className=="object"},rG=function(t){return t.tagName==="LI"},nG=function(t){return t.tagName==="OL"},AG=function(t){return t.tagName==="INPUT"},aG=function(t){return t.tagName==="HTML"},oC=function(t){return t.tagName==="svg"},qh=function(t){return t.tagName==="BODY"},sC=function(t){return t.tagName==="CANVAS"},xm=function(t){return t.tagName==="VIDEO"},Md=function(t){return t.tagName==="IMG"},lC=function(t){return t.tagName==="IFRAME"},Fm=function(t){return t.tagName==="STYLE"},iG=function(t){return t.tagName==="SCRIPT"},Au=function(t){return t.tagName==="TEXTAREA"},au=function(t){return t.tagName==="SELECT"},uC=function(t){return t.tagName==="SLOT"},Qm=function(t){return t.tagName.indexOf("-")>0},oG=function(){function t(){this.counters={}}return t.prototype.getCounterValue=function(e){var r=this.counters[e];return r&&r.length?r[r.length-1]:1},t.prototype.getCounterValues=function(e){var r=this.counters[e];return r||[]},t.prototype.pop=function(e){var r=this;e.forEach(function(n){return r.counters[n].pop()})},t.prototype.parse=function(e){var r=this,n=e.counterIncrement,A=e.counterReset,a=!0;n!==null&&n.forEach(function(o){var s=r.counters[o.counter];s&&o.increment!==0&&(a=!1,s.length||s.push(1),s[Math.max(0,s.length-1)]+=o.increment)});var i=[];return a&&A.forEach(function(o){var s=r.counters[o.counter];i.push(o.counter),s||(s=r.counters[o.counter]=[]),s.push(o.reset)}),i},t}(),Sm={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},Um={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},sG={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},lG={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},va=function(t,e,r,n,A,a){return tr?No(t,A,a.length>0):n.integers.reduce(function(i,o,s){for(;t>=o;)t-=o,i+=n.values[s];return i},"")+a},cC=function(t,e,r,n){var A="";do r||t--,A=n(t)+A,t/=e;while(t*e>=e);return A},Ut=function(t,e,r,n,A){var a=r-e+1;return(t<0?"-":"")+(cC(Math.abs(t),a,n,function(i){return Tt(Math.floor(i%a)+e)})+A)},BA=function(t,e,r){r===void 0&&(r=". ");var n=e.length;return cC(Math.abs(t),n,!1,function(A){return e[Math.floor(A%n)]})+r},Ca=1,Xn=2,Yn=4,eo=8,Dn=function(t,e,r,n,A,a){if(t<-9999||t>9999)return No(t,4,A.length>0);var i=Math.abs(t),o=A;if(i===0)return e[0]+o;for(var s=0;i>0&&s<=4;s++){var l=i%10;l===0&&Ht(a,Ca)&&o!==""?o=e[l]+o:l>1||l===1&&s===0||l===1&&s===1&&Ht(a,Xn)||l===1&&s===1&&Ht(a,Yn)&&t>100||l===1&&s>1&&Ht(a,eo)?o=e[l]+(s>0?r[s-1]:"")+o:l===1&&s>0&&(o=r[s-1]+o),i=Math.floor(i/10)}return(t<0?n:"")+o},Tm="十百千萬",Im="拾佰仟萬",Lm="マイナス",Sf="마이너스",No=function(t,e,r){var n=r?". ":"",A=r?"、":"",a=r?", ":"",i=r?" ":"";switch(e){case 0:return"•"+i;case 1:return"◦"+i;case 2:return"◾"+i;case 5:var o=Ut(t,48,57,!0,n);return o.length<4?"0"+o:o;case 4:return BA(t,"〇一二三四五六七八九",A);case 6:return va(t,1,3999,Sm,3,n).toLowerCase();case 7:return va(t,1,3999,Sm,3,n);case 8:return Ut(t,945,969,!1,n);case 9:return Ut(t,97,122,!1,n);case 10:return Ut(t,65,90,!1,n);case 11:return Ut(t,1632,1641,!0,n);case 12:case 49:return va(t,1,9999,Um,3,n);case 35:return va(t,1,9999,Um,3,n).toLowerCase();case 13:return Ut(t,2534,2543,!0,n);case 14:case 30:return Ut(t,6112,6121,!0,n);case 15:return BA(t,"子丑寅卯辰巳午未申酉戌亥",A);case 16:return BA(t,"甲乙丙丁戊己庚辛壬癸",A);case 17:case 48:return Dn(t,"零一二三四五六七八九",Tm,"負",A,Xn|Yn|eo);case 47:return Dn(t,"零壹貳參肆伍陸柒捌玖",Im,"負",A,Ca|Xn|Yn|eo);case 42:return Dn(t,"零一二三四五六七八九",Tm,"负",A,Xn|Yn|eo);case 41:return Dn(t,"零壹贰叁肆伍陆柒捌玖",Im,"负",A,Ca|Xn|Yn|eo);case 26:return Dn(t,"〇一二三四五六七八九","十百千万",Lm,A,0);case 25:return Dn(t,"零壱弐参四伍六七八九","拾百千万",Lm,A,Ca|Xn|Yn);case 31:return Dn(t,"영일이삼사오육칠팔구","십백천만",Sf,a,Ca|Xn|Yn);case 33:return Dn(t,"零一二三四五六七八九","十百千萬",Sf,a,0);case 32:return Dn(t,"零壹貳參四五六七八九","拾百千",Sf,a,Ca|Xn|Yn);case 18:return Ut(t,2406,2415,!0,n);case 20:return va(t,1,19999,lG,3,n);case 21:return Ut(t,2790,2799,!0,n);case 22:return Ut(t,2662,2671,!0,n);case 22:return va(t,1,10999,sG,3,n);case 23:return BA(t,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return BA(t,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return Ut(t,3302,3311,!0,n);case 28:return BA(t,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",A);case 29:return BA(t,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",A);case 34:return Ut(t,3792,3801,!0,n);case 37:return Ut(t,6160,6169,!0,n);case 38:return Ut(t,4160,4169,!0,n);case 39:return Ut(t,2918,2927,!0,n);case 40:return Ut(t,1776,1785,!0,n);case 43:return Ut(t,3046,3055,!0,n);case 44:return Ut(t,3174,3183,!0,n);case 45:return Ut(t,3664,3673,!0,n);case 46:return Ut(t,3872,3881,!0,n);case 3:default:return Ut(t,48,57,!0,n)}},fC="data-html2canvas-ignore",Dm=function(){function t(e,r,n){if(this.context=e,this.options=n,this.scrolledElements=[],this.referenceElement=r,this.counters=new oG,this.quoteDepth=0,!r.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(r.ownerDocument.documentElement,!1)}return t.prototype.toIFrame=function(e,r){var n=this,A=uG(e,r);if(!A.contentWindow)return Promise.reject("Unable to find iframe window");var a=e.defaultView.pageXOffset,i=e.defaultView.pageYOffset,o=A.contentWindow,s=o.document,l=dG(A).then(function(){return ur(n,void 0,void 0,function(){var u,c;return rr(this,function(d){switch(d.label){case 0:return this.scrolledElements.forEach(vG),o&&(o.scrollTo(r.left,r.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(o.scrollY!==r.top||o.scrollX!==r.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(o.scrollX-r.left,o.scrollY-r.top,0,0))),u=this.options.onclone,c=this.clonedReferenceElement,typeof c>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:s.fonts&&s.fonts.ready?[4,s.fonts.ready]:[3,2];case 1:d.sent(),d.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,fG(s)]:[3,4];case 3:d.sent(),d.label=4;case 4:return typeof u=="function"?[2,Promise.resolve().then(function(){return u(s,c)}).then(function(){return A})]:[2,A]}})})});return s.open(),s.write(pG(document.doctype)+""),gG(this.referenceElement.ownerDocument,a,i),s.replaceChild(s.adoptNode(this.documentElement),s.documentElement),s.close(),l},t.prototype.createElementClone=function(e){if(Id(e,2))debugger;if(sC(e))return this.createCanvasClone(e);if(xm(e))return this.createVideoClone(e);if(Fm(e))return this.createStyleClone(e);var r=e.cloneNode(!1);return Md(r)&&(Md(e)&&e.currentSrc&&e.currentSrc!==e.src&&(r.src=e.currentSrc,r.srcset=""),r.loading==="lazy"&&(r.loading="eager")),Qm(r)?this.createCustomElementClone(r):r},t.prototype.createCustomElementClone=function(e){var r=document.createElement("html2canvascustomelement");return Uf(e.style,r),r},t.prototype.createStyleClone=function(e){try{var r=e.sheet;if(r&&r.cssRules){var n=[].slice.call(r.cssRules,0).reduce(function(a,i){return i&&typeof i.cssText=="string"?a+i.cssText:a},""),A=e.cloneNode(!1);return A.textContent=n,A}}catch(a){if(this.context.logger.error("Unable to access cssRules property",a),a.name!=="SecurityError")throw a}return e.cloneNode(!1)},t.prototype.createCanvasClone=function(e){var r;if(this.options.inlineImages&&e.ownerDocument){var n=e.ownerDocument.createElement("img");try{return n.src=e.toDataURL(),n}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",e)}}var A=e.cloneNode(!1);try{A.width=e.width,A.height=e.height;var a=e.getContext("2d"),i=A.getContext("2d");if(i)if(!this.options.allowTaint&&a)i.putImageData(a.getImageData(0,0,e.width,e.height),0,0);else{var o=(r=e.getContext("webgl2"))!==null&&r!==void 0?r:e.getContext("webgl");if(o){var s=o.getContextAttributes();(s==null?void 0:s.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",e)}i.drawImage(e,0,0)}return A}catch{this.context.logger.info("Unable to clone canvas as it is tainted",e)}return A},t.prototype.createVideoClone=function(e){var r=e.ownerDocument.createElement("canvas");r.width=e.offsetWidth,r.height=e.offsetHeight;var n=r.getContext("2d");try{return n&&(n.drawImage(e,0,0,r.width,r.height),this.options.allowTaint||n.getImageData(0,0,r.width,r.height)),r}catch{this.context.logger.info("Unable to clone video as it is tainted",e)}var A=e.ownerDocument.createElement("canvas");return A.width=e.offsetWidth,A.height=e.offsetHeight,A},t.prototype.appendChildNode=function(e,r,n){(!Ia(r)||!iG(r)&&!r.hasAttribute(fC)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(r)))&&(!this.options.copyStyles||!Ia(r)||!Fm(r))&&e.appendChild(this.cloneNode(r,n))},t.prototype.cloneChildNodes=function(e,r,n){for(var A=this,a=e.shadowRoot?e.shadowRoot.firstChild:e.firstChild;a;a=a.nextSibling)if(Ia(a)&&uC(a)&&typeof a.assignedNodes=="function"){var i=a.assignedNodes();i.length&&i.forEach(function(o){return A.appendChildNode(r,o,n)})}else this.appendChildNode(r,a,n)},t.prototype.cloneNode=function(e,r){if(iC(e))return document.createTextNode(e.data);if(!e.ownerDocument)return e.cloneNode(!1);var n=e.ownerDocument.defaultView;if(n&&Ia(e)&&(Rd(e)||Ul(e))){var A=this.createElementClone(e);A.style.transitionProperty="none";var a=n.getComputedStyle(e),i=n.getComputedStyle(e,":before"),o=n.getComputedStyle(e,":after");this.referenceElement===e&&Rd(A)&&(this.clonedReferenceElement=A),qh(A)&&BG(A);var s=this.counters.parse(new um(this.context,a)),l=this.resolvePseudoContent(e,A,i,po.BEFORE);Qm(e)&&(r=!0),xm(e)||this.cloneChildNodes(e,A,r),l&&A.insertBefore(l,A.firstChild);var u=this.resolvePseudoContent(e,A,o,po.AFTER);return u&&A.appendChild(u),this.counters.pop(s),(a&&(this.options.copyStyles||Ul(e))&&!lC(e)||r)&&Uf(a,A),(e.scrollTop!==0||e.scrollLeft!==0)&&this.scrolledElements.push([A,e.scrollLeft,e.scrollTop]),(Au(e)||au(e))&&(Au(A)||au(A))&&(A.value=e.value),A}return e.cloneNode(!1)},t.prototype.resolvePseudoContent=function(e,r,n,A){var a=this;if(n){var i=n.content,o=r.ownerDocument;if(!(!o||!i||i==="none"||i==="-moz-alt-content"||n.display==="none")){this.counters.parse(new um(this.context,n));var s=new rK(this.context,n),l=o.createElement("html2canvaspseudoelement");Uf(n,l),s.content.forEach(function(c){if(c.type===0)l.appendChild(o.createTextNode(c.value));else if(c.type===22){var d=o.createElement("img");d.src=c.value,d.style.opacity="1",l.appendChild(d)}else if(c.type===18){if(c.name==="attr"){var h=c.values.filter(at);h.length&&l.appendChild(o.createTextNode(e.getAttribute(h[0].value)||""))}else if(c.name==="counter"){var f=c.values.filter(ri),p=f[0],g=f[1];if(p&&at(p)){var m=a.counters.getCounterValue(p.value),w=g&&at(g)?Td.parse(a.context,g.value):3;l.appendChild(o.createTextNode(No(m,w,!1)))}}else if(c.name==="counters"){var v=c.values.filter(ri),p=v[0],B=v[1],g=v[2];if(p&&at(p)){var b=a.counters.getCounterValues(p.value),E=g&&at(g)?Td.parse(a.context,g.value):3,C=B&&B.type===0?B.value:"",F=b.map(function(Q){return No(Q,E,!1)}).join(C);l.appendChild(o.createTextNode(F))}}}else if(c.type===20)switch(c.value){case"open-quote":l.appendChild(o.createTextNode(lm(s.quotes,a.quoteDepth++,!0)));break;case"close-quote":l.appendChild(o.createTextNode(lm(s.quotes,--a.quoteDepth,!1)));break;default:l.appendChild(o.createTextNode(c.value))}}),l.className=Od+" "+Hd;var u=A===po.BEFORE?" "+Od:" "+Hd;return Ul(r)?r.className.baseValue+=u:r.className+=u,l}}},t.destroy=function(e){return e.parentNode?(e.parentNode.removeChild(e),!0):!1},t}(),po;(function(t){t[t.BEFORE=0]="BEFORE",t[t.AFTER=1]="AFTER"})(po||(po={}));var uG=function(t,e){var r=t.createElement("iframe");return r.className="html2canvas-container",r.style.visibility="hidden",r.style.position="fixed",r.style.left="-10000px",r.style.top="0px",r.style.border="0",r.width=e.width.toString(),r.height=e.height.toString(),r.scrolling="no",r.setAttribute(fC,"true"),t.body.appendChild(r),r},cG=function(t){return new Promise(function(e){if(t.complete){e();return}if(!t.src){e();return}t.onload=e,t.onerror=e})},fG=function(t){return Promise.all([].slice.call(t.images,0).map(cG))},dG=function(t){return new Promise(function(e,r){var n=t.contentWindow;if(!n)return r("No window assigned for iframe");var A=n.document;n.onload=t.onload=function(){n.onload=t.onload=null;var a=setInterval(function(){A.body.childNodes.length>0&&A.readyState==="complete"&&(clearInterval(a),e(t))},50)}})},hG=["all","d","content"],Uf=function(t,e){for(var r=t.length-1;r>=0;r--){var n=t.item(r);hG.indexOf(n)===-1&&e.style.setProperty(n,t.getPropertyValue(n))}return e},pG=function(t){var e="";return t&&(e+=""),e},gG=function(t,e,r){t&&t.defaultView&&(e!==t.defaultView.pageXOffset||r!==t.defaultView.pageYOffset)&&t.defaultView.scrollTo(e,r)},vG=function(t){var e=t[0],r=t[1],n=t[2];e.scrollLeft=r,e.scrollTop=n},mG=":before",yG=":after",Od="___html2canvas___pseudoelement_before",Hd="___html2canvas___pseudoelement_after",Rm=`{ content: "" !important; display: none !important; }`,BG=function(t){wG(t,"."+Od+mG+Rm+` - .`+Hd+yG+Rm)},wG=function(t,e){var r=t.ownerDocument;if(r){var n=r.createElement("style");n.textContent=e,t.appendChild(n)}},dC=function(){function t(){}return t.getOrigin=function(e){var r=t._link;return r?(r.href=e,r.href=r.href,r.protocol+r.hostname+r.port):"about:blank"},t.isSameOrigin=function(e){return t.getOrigin(e)===t._origin},t.setContext=function(e){t._link=e.document.createElement("a"),t._origin=t.getOrigin(e.location.href)},t._origin="about:blank",t}(),CG=function(){function t(e,r){this.context=e,this._options=r,this._cache={}}return t.prototype.addImage=function(e){var r=Promise.resolve();return this.has(e)||(If(e)||FG(e))&&(this._cache[e]=this.loadImage(e)).catch(function(){}),r},t.prototype.match=function(e){return this._cache[e]},t.prototype.loadImage=function(e){return ur(this,void 0,void 0,function(){var r,n,A,a,i=this;return rr(this,function(o){switch(o.label){case 0:return r=dC.isSameOrigin(e),n=!Tf(e)&&this._options.useCORS===!0&&_t.SUPPORT_CORS_IMAGES&&!r,A=!Tf(e)&&!r&&!If(e)&&typeof this._options.proxy=="string"&&_t.SUPPORT_CORS_XHR&&!n,!r&&this._options.allowTaint===!1&&!Tf(e)&&!If(e)&&!A&&!n?[2]:(a=e,A?[4,this.proxy(a)]:[3,2]);case 1:a=o.sent(),o.label=2;case 2:return this.context.logger.debug("Added image "+e.substring(0,256)),[4,new Promise(function(s,l){var u=new Image;u.onload=function(){return s(u)},u.onerror=l,(QG(a)||n)&&(u.crossOrigin="anonymous"),u.src=a,u.complete===!0&&setTimeout(function(){return s(u)},500),i._options.imageTimeout>0&&setTimeout(function(){return l("Timed out ("+i._options.imageTimeout+"ms) loading image")},i._options.imageTimeout)})];case 3:return[2,o.sent()]}})})},t.prototype.has=function(e){return typeof this._cache[e]<"u"},t.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},t.prototype.proxy=function(e){var r=this,n=this._options.proxy;if(!n)throw new Error("No proxy defined");var A=e.substring(0,256);return new Promise(function(a,i){var o=_t.SUPPORT_RESPONSE_TYPE?"blob":"text",s=new XMLHttpRequest;s.onload=function(){if(s.status===200)if(o==="text")a(s.response);else{var c=new FileReader;c.addEventListener("load",function(){return a(c.result)},!1),c.addEventListener("error",function(d){return i(d)},!1),c.readAsDataURL(s.response)}else i("Failed to proxy resource "+A+" with status code "+s.status)},s.onerror=i;var l=n.indexOf("?")>-1?"&":"?";if(s.open("GET",""+n+l+"url="+encodeURIComponent(e)+"&responseType="+o),o!=="text"&&s instanceof XMLHttpRequest&&(s.responseType=o),r._options.imageTimeout){var u=r._options.imageTimeout;s.timeout=u,s.ontimeout=function(){return i("Timed out ("+u+"ms) proxying "+A)}}s.send()})},t}(),bG=/^data:image\/svg\+xml/i,EG=/^data:image\/.*;base64,/i,xG=/^data:image\/.*/i,FG=function(t){return _t.SUPPORT_SVG_DRAWING||!SG(t)},Tf=function(t){return xG.test(t)},QG=function(t){return EG.test(t)},If=function(t){return t.substr(0,4)==="blob"},SG=function(t){return t.substr(-3).toLowerCase()==="svg"||bG.test(t)},Qe=function(){function t(e,r){this.type=0,this.x=e,this.y=r}return t.prototype.add=function(e,r){return new t(this.x+e,this.y+r)},t}(),ma=function(t,e,r){return new Qe(t.x+(e.x-t.x)*r,t.y+(e.y-t.y)*r)},al=function(){function t(e,r,n,A){this.type=1,this.start=e,this.startControl=r,this.endControl=n,this.end=A}return t.prototype.subdivide=function(e,r){var n=ma(this.start,this.startControl,e),A=ma(this.startControl,this.endControl,e),a=ma(this.endControl,this.end,e),i=ma(n,A,e),o=ma(A,a,e),s=ma(i,o,e);return r?new t(this.start,n,i,s):new t(s,o,a,this.end)},t.prototype.add=function(e,r){return new t(this.start.add(e,r),this.startControl.add(e,r),this.endControl.add(e,r),this.end.add(e,r))},t.prototype.reverse=function(){return new t(this.end,this.endControl,this.startControl,this.start)},t}(),Dr=function(t){return t.type===1},UG=function(){function t(e){var r=e.styles,n=e.bounds,A=qi(r.borderTopLeftRadius,n.width,n.height),a=A[0],i=A[1],o=qi(r.borderTopRightRadius,n.width,n.height),s=o[0],l=o[1],u=qi(r.borderBottomRightRadius,n.width,n.height),c=u[0],d=u[1],h=qi(r.borderBottomLeftRadius,n.width,n.height),f=h[0],p=h[1],g=[];g.push((a+s)/n.width),g.push((f+c)/n.width),g.push((i+p)/n.height),g.push((l+d)/n.height);var m=Math.max.apply(Math,g);m>1&&(a/=m,i/=m,s/=m,l/=m,c/=m,d/=m,f/=m,p/=m);var B=n.width-s,v=n.height-d,y=n.width-c,b=n.height-p,E=r.borderTopWidth,C=r.borderRightWidth,F=r.borderBottomWidth,w=r.borderLeftWidth,x=ft(r.paddingTop,e.bounds.width),Q=ft(r.paddingRight,e.bounds.width),S=ft(r.paddingBottom,e.bounds.width),T=ft(r.paddingLeft,e.bounds.width);this.topLeftBorderDoubleOuterBox=a>0||i>0?yt(n.left+w/3,n.top+E/3,a-w/3,i-E/3,Ze.TOP_LEFT):new Qe(n.left+w/3,n.top+E/3),this.topRightBorderDoubleOuterBox=a>0||i>0?yt(n.left+B,n.top+E/3,s-C/3,l-E/3,Ze.TOP_RIGHT):new Qe(n.left+n.width-C/3,n.top+E/3),this.bottomRightBorderDoubleOuterBox=c>0||d>0?yt(n.left+y,n.top+v,c-C/3,d-F/3,Ze.BOTTOM_RIGHT):new Qe(n.left+n.width-C/3,n.top+n.height-F/3),this.bottomLeftBorderDoubleOuterBox=f>0||p>0?yt(n.left+w/3,n.top+b,f-w/3,p-F/3,Ze.BOTTOM_LEFT):new Qe(n.left+w/3,n.top+n.height-F/3),this.topLeftBorderDoubleInnerBox=a>0||i>0?yt(n.left+w*2/3,n.top+E*2/3,a-w*2/3,i-E*2/3,Ze.TOP_LEFT):new Qe(n.left+w*2/3,n.top+E*2/3),this.topRightBorderDoubleInnerBox=a>0||i>0?yt(n.left+B,n.top+E*2/3,s-C*2/3,l-E*2/3,Ze.TOP_RIGHT):new Qe(n.left+n.width-C*2/3,n.top+E*2/3),this.bottomRightBorderDoubleInnerBox=c>0||d>0?yt(n.left+y,n.top+v,c-C*2/3,d-F*2/3,Ze.BOTTOM_RIGHT):new Qe(n.left+n.width-C*2/3,n.top+n.height-F*2/3),this.bottomLeftBorderDoubleInnerBox=f>0||p>0?yt(n.left+w*2/3,n.top+b,f-w*2/3,p-F*2/3,Ze.BOTTOM_LEFT):new Qe(n.left+w*2/3,n.top+n.height-F*2/3),this.topLeftBorderStroke=a>0||i>0?yt(n.left+w/2,n.top+E/2,a-w/2,i-E/2,Ze.TOP_LEFT):new Qe(n.left+w/2,n.top+E/2),this.topRightBorderStroke=a>0||i>0?yt(n.left+B,n.top+E/2,s-C/2,l-E/2,Ze.TOP_RIGHT):new Qe(n.left+n.width-C/2,n.top+E/2),this.bottomRightBorderStroke=c>0||d>0?yt(n.left+y,n.top+v,c-C/2,d-F/2,Ze.BOTTOM_RIGHT):new Qe(n.left+n.width-C/2,n.top+n.height-F/2),this.bottomLeftBorderStroke=f>0||p>0?yt(n.left+w/2,n.top+b,f-w/2,p-F/2,Ze.BOTTOM_LEFT):new Qe(n.left+w/2,n.top+n.height-F/2),this.topLeftBorderBox=a>0||i>0?yt(n.left,n.top,a,i,Ze.TOP_LEFT):new Qe(n.left,n.top),this.topRightBorderBox=s>0||l>0?yt(n.left+B,n.top,s,l,Ze.TOP_RIGHT):new Qe(n.left+n.width,n.top),this.bottomRightBorderBox=c>0||d>0?yt(n.left+y,n.top+v,c,d,Ze.BOTTOM_RIGHT):new Qe(n.left+n.width,n.top+n.height),this.bottomLeftBorderBox=f>0||p>0?yt(n.left,n.top+b,f,p,Ze.BOTTOM_LEFT):new Qe(n.left,n.top+n.height),this.topLeftPaddingBox=a>0||i>0?yt(n.left+w,n.top+E,Math.max(0,a-w),Math.max(0,i-E),Ze.TOP_LEFT):new Qe(n.left+w,n.top+E),this.topRightPaddingBox=s>0||l>0?yt(n.left+Math.min(B,n.width-C),n.top+E,B>n.width+C?0:Math.max(0,s-C),Math.max(0,l-E),Ze.TOP_RIGHT):new Qe(n.left+n.width-C,n.top+E),this.bottomRightPaddingBox=c>0||d>0?yt(n.left+Math.min(y,n.width-w),n.top+Math.min(v,n.height-F),Math.max(0,c-C),Math.max(0,d-F),Ze.BOTTOM_RIGHT):new Qe(n.left+n.width-C,n.top+n.height-F),this.bottomLeftPaddingBox=f>0||p>0?yt(n.left+w,n.top+Math.min(b,n.height-F),Math.max(0,f-w),Math.max(0,p-F),Ze.BOTTOM_LEFT):new Qe(n.left+w,n.top+n.height-F),this.topLeftContentBox=a>0||i>0?yt(n.left+w+T,n.top+E+x,Math.max(0,a-(w+T)),Math.max(0,i-(E+x)),Ze.TOP_LEFT):new Qe(n.left+w+T,n.top+E+x),this.topRightContentBox=s>0||l>0?yt(n.left+Math.min(B,n.width+w+T),n.top+E+x,B>n.width+w+T?0:s-w+T,l-(E+x),Ze.TOP_RIGHT):new Qe(n.left+n.width-(C+Q),n.top+E+x),this.bottomRightContentBox=c>0||d>0?yt(n.left+Math.min(y,n.width-(w+T)),n.top+Math.min(v,n.height+E+x),Math.max(0,c-(C+Q)),d-(F+S),Ze.BOTTOM_RIGHT):new Qe(n.left+n.width-(C+Q),n.top+n.height-(F+S)),this.bottomLeftContentBox=f>0||p>0?yt(n.left+w+T,n.top+b,Math.max(0,f-(w+T)),p-(F+S),Ze.BOTTOM_LEFT):new Qe(n.left+w+T,n.top+n.height-(F+S))}return t}(),Ze;(function(t){t[t.TOP_LEFT=0]="TOP_LEFT",t[t.TOP_RIGHT=1]="TOP_RIGHT",t[t.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",t[t.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(Ze||(Ze={}));var yt=function(t,e,r,n,A){var a=4*((Math.sqrt(2)-1)/3),i=r*a,o=n*a,s=t+r,l=e+n;switch(A){case Ze.TOP_LEFT:return new al(new Qe(t,l),new Qe(t,l-o),new Qe(s-i,e),new Qe(s,e));case Ze.TOP_RIGHT:return new al(new Qe(t,e),new Qe(t+i,e),new Qe(s,l-o),new Qe(s,l));case Ze.BOTTOM_RIGHT:return new al(new Qe(s,e),new Qe(s,e+o),new Qe(t+i,l),new Qe(t,l));case Ze.BOTTOM_LEFT:default:return new al(new Qe(s,l),new Qe(s-i,l),new Qe(t,e+o),new Qe(t,e))}},iu=function(t){return[t.topLeftBorderBox,t.topRightBorderBox,t.bottomRightBorderBox,t.bottomLeftBorderBox]},TG=function(t){return[t.topLeftContentBox,t.topRightContentBox,t.bottomRightContentBox,t.bottomLeftContentBox]},ou=function(t){return[t.topLeftPaddingBox,t.topRightPaddingBox,t.bottomRightPaddingBox,t.bottomLeftPaddingBox]},IG=function(){function t(e,r,n){this.offsetX=e,this.offsetY=r,this.matrix=n,this.type=0,this.target=6}return t}(),il=function(){function t(e,r){this.path=e,this.target=r,this.type=1}return t}(),LG=function(){function t(e){this.opacity=e,this.type=2,this.target=6}return t}(),DG=function(t){return t.type===0},hC=function(t){return t.type===1},RG=function(t){return t.type===2},Mm=function(t,e){return t.length===e.length?t.some(function(r,n){return r===e[n]}):!1},MG=function(t,e,r,n,A){return t.map(function(a,i){switch(i){case 0:return a.add(e,r);case 1:return a.add(e+n,r);case 2:return a.add(e+n,r+A);case 3:return a.add(e,r+A)}return a})},pC=function(){function t(e){this.element=e,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return t}(),gC=function(){function t(e,r){if(this.container=e,this.parent=r,this.effects=[],this.curves=new UG(this.container),this.container.styles.opacity<1&&this.effects.push(new LG(this.container.styles.opacity)),this.container.styles.transform!==null){var n=this.container.bounds.left+this.container.styles.transformOrigin[0].number,A=this.container.bounds.top+this.container.styles.transformOrigin[1].number,a=this.container.styles.transform;this.effects.push(new IG(n,A,a))}if(this.container.styles.overflowX!==0){var i=iu(this.curves),o=ou(this.curves);Mm(i,o)?this.effects.push(new il(i,6)):(this.effects.push(new il(i,2)),this.effects.push(new il(o,4)))}}return t.prototype.getEffects=function(e){for(var r=[2,3].indexOf(this.container.styles.position)===-1,n=this.parent,A=this.effects.slice(0);n;){var a=n.effects.filter(function(s){return!hC(s)});if(r||n.container.styles.position!==0||!n.parent){if(A.unshift.apply(A,a),r=[2,3].indexOf(n.container.styles.position)===-1,n.container.styles.overflowX!==0){var i=iu(n.curves),o=ou(n.curves);Mm(i,o)||A.unshift(new il(o,6))}}else A.unshift.apply(A,a);n=n.parent}return A.filter(function(s){return Ht(s.target,e)})},t}(),kd=function(t,e,r,n){t.container.elements.forEach(function(A){var a=Ht(A.flags,4),i=Ht(A.flags,2),o=new gC(A,t);Ht(A.styles.display,2048)&&n.push(o);var s=Ht(A.flags,8)?[]:n;if(a||i){var l=a||A.styles.isPositioned()?r:e,u=new pC(o);if(A.styles.isPositioned()||A.styles.opacity<1||A.styles.isTransformed()){var c=A.styles.zIndex.order;if(c<0){var d=0;l.negativeZIndex.some(function(f,p){return c>f.element.container.styles.zIndex.order?(d=p,!1):d>0}),l.negativeZIndex.splice(d,0,u)}else if(c>0){var h=0;l.positiveZIndex.some(function(f,p){return c>=f.element.container.styles.zIndex.order?(h=p+1,!1):h>0}),l.positiveZIndex.splice(h,0,u)}else l.zeroOrAutoZIndexOrTransformedOrOpacity.push(u)}else A.styles.isFloating()?l.nonPositionedFloats.push(u):l.nonPositionedInlineLevel.push(u);kd(o,u,a?u:r,s)}else A.styles.isInlineLevel()?e.inlineLevel.push(o):e.nonInlineLevel.push(o),kd(o,e,r,s);Ht(A.flags,8)&&vC(A,s)})},vC=function(t,e){for(var r=t instanceof Dd?t.start:1,n=t instanceof Dd?t.reversed:!1,A=0;A"u"?t[0]:r},VG=function(t,e,r,n,A){var a=e[0],i=e[1],o=r[0],s=r[1];switch(t){case 2:return[new Qe(Math.round(n.left),Math.round(n.top+i)),new Qe(Math.round(n.left+n.width),Math.round(n.top+i)),new Qe(Math.round(n.left+n.width),Math.round(s+n.top+i)),new Qe(Math.round(n.left),Math.round(s+n.top+i))];case 3:return[new Qe(Math.round(n.left+a),Math.round(n.top)),new Qe(Math.round(n.left+a+o),Math.round(n.top)),new Qe(Math.round(n.left+a+o),Math.round(n.height+n.top)),new Qe(Math.round(n.left+a),Math.round(n.height+n.top))];case 1:return[new Qe(Math.round(n.left+a),Math.round(n.top+i)),new Qe(Math.round(n.left+a+o),Math.round(n.top+i)),new Qe(Math.round(n.left+a+o),Math.round(n.top+i+s)),new Qe(Math.round(n.left+a),Math.round(n.top+i+s))];default:return[new Qe(Math.round(A.left),Math.round(A.top)),new Qe(Math.round(A.left+A.width),Math.round(A.top)),new Qe(Math.round(A.left+A.width),Math.round(A.height+A.top)),new Qe(Math.round(A.left),Math.round(A.height+A.top))]}},$G="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Hm="Hidden Text",zG=function(){function t(e){this._data={},this._document=e}return t.prototype.parseMetrics=function(e,r){var n=this._document.createElement("div"),A=this._document.createElement("img"),a=this._document.createElement("span"),i=this._document.body;n.style.visibility="hidden",n.style.fontFamily=e,n.style.fontSize=r,n.style.margin="0",n.style.padding="0",n.style.whiteSpace="nowrap",i.appendChild(n),A.src=$G,A.width=1,A.height=1,A.style.margin="0",A.style.padding="0",A.style.verticalAlign="baseline",a.style.fontFamily=e,a.style.fontSize=r,a.style.margin="0",a.style.padding="0",a.appendChild(this._document.createTextNode(Hm)),n.appendChild(a),n.appendChild(A);var o=A.offsetTop-a.offsetTop+2;n.removeChild(a),n.appendChild(this._document.createTextNode(Hm)),n.style.lineHeight="normal",A.style.verticalAlign="super";var s=A.offsetTop-n.offsetTop+2;return i.removeChild(n),{baseline:o,middle:s}},t.prototype.getMetrics=function(e,r){var n=e+" "+r;return typeof this._data[n]>"u"&&(this._data[n]=this.parseMetrics(e,r)),this._data[n]},t}(),yC=function(){function t(e,r){this.context=e,this.options=r}return t}(),WG=1e4,_G=function(t){nn(e,t);function e(r,n){var A=t.call(this,r,n)||this;return A._activeEffects=[],A.canvas=n.canvas?n.canvas:document.createElement("canvas"),A.ctx=A.canvas.getContext("2d"),n.canvas||(A.canvas.width=Math.floor(n.width*n.scale),A.canvas.height=Math.floor(n.height*n.scale),A.canvas.style.width=n.width+"px",A.canvas.style.height=n.height+"px"),A.fontMetrics=new zG(document),A.ctx.scale(A.options.scale,A.options.scale),A.ctx.translate(-n.x,-n.y),A.ctx.textBaseline="bottom",A._activeEffects=[],A.context.logger.debug("Canvas renderer initialized ("+n.width+"x"+n.height+") with scale "+n.scale),A}return e.prototype.applyEffects=function(r){for(var n=this;this._activeEffects.length;)this.popEffect();r.forEach(function(A){return n.applyEffect(A)})},e.prototype.applyEffect=function(r){this.ctx.save(),RG(r)&&(this.ctx.globalAlpha=r.opacity),DG(r)&&(this.ctx.translate(r.offsetX,r.offsetY),this.ctx.transform(r.matrix[0],r.matrix[1],r.matrix[2],r.matrix[3],r.matrix[4],r.matrix[5]),this.ctx.translate(-r.offsetX,-r.offsetY)),hC(r)&&(this.path(r.path),this.ctx.clip()),this._activeEffects.push(r)},e.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},e.prototype.renderStack=function(r){return ur(this,void 0,void 0,function(){var n;return rr(this,function(A){switch(A.label){case 0:return n=r.element.container.styles,n.isVisible()?[4,this.renderStackContent(r)]:[3,2];case 1:A.sent(),A.label=2;case 2:return[2]}})})},e.prototype.renderNode=function(r){return ur(this,void 0,void 0,function(){return rr(this,function(n){switch(n.label){case 0:if(Ht(r.container.flags,16))debugger;return r.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(r)]:[3,3];case 1:return n.sent(),[4,this.renderNodeContent(r)];case 2:n.sent(),n.label=3;case 3:return[2]}})})},e.prototype.renderTextWithLetterSpacing=function(r,n,A){var a=this;if(n===0)this.ctx.fillText(r.text,r.bounds.left,r.bounds.top+A);else{var i=Yh(r.text);i.reduce(function(o,s){return a.ctx.fillText(s,o,r.bounds.top+A),o+a.ctx.measureText(s).width},r.bounds.left)}},e.prototype.createFontStyle=function(r){var n=r.fontVariant.filter(function(i){return i==="normal"||i==="small-caps"}).join(""),A=JG(r.fontFamily).join(", "),a=ls(r.fontSize)?""+r.fontSize.number+r.fontSize.unit:r.fontSize.number+"px";return[[r.fontStyle,n,r.fontWeight,a,A].join(" "),A,a]},e.prototype.renderTextNode=function(r,n){return ur(this,void 0,void 0,function(){var A,a,i,o,s,l,u,c,d=this;return rr(this,function(h){return A=this.createFontStyle(n),a=A[0],i=A[1],o=A[2],this.ctx.font=a,this.ctx.direction=n.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",s=this.fontMetrics.getMetrics(i,o),l=s.baseline,u=s.middle,c=n.paintOrder,r.textBounds.forEach(function(f){c.forEach(function(p){switch(p){case 0:d.ctx.fillStyle=Gt(n.color),d.renderTextWithLetterSpacing(f,n.letterSpacing,l);var g=n.textShadow;g.length&&f.text.trim().length&&(g.slice(0).reverse().forEach(function(m){d.ctx.shadowColor=Gt(m.color),d.ctx.shadowOffsetX=m.offsetX.number*d.options.scale,d.ctx.shadowOffsetY=m.offsetY.number*d.options.scale,d.ctx.shadowBlur=m.blur.number,d.renderTextWithLetterSpacing(f,n.letterSpacing,l)}),d.ctx.shadowColor="",d.ctx.shadowOffsetX=0,d.ctx.shadowOffsetY=0,d.ctx.shadowBlur=0),n.textDecorationLine.length&&(d.ctx.fillStyle=Gt(n.textDecorationColor||n.color),n.textDecorationLine.forEach(function(m){switch(m){case 1:d.ctx.fillRect(f.bounds.left,Math.round(f.bounds.top+l),f.bounds.width,1);break;case 2:d.ctx.fillRect(f.bounds.left,Math.round(f.bounds.top),f.bounds.width,1);break;case 3:d.ctx.fillRect(f.bounds.left,Math.ceil(f.bounds.top+u),f.bounds.width,1);break}}));break;case 1:n.webkitTextStrokeWidth&&f.text.trim().length&&(d.ctx.strokeStyle=Gt(n.webkitTextStrokeColor),d.ctx.lineWidth=n.webkitTextStrokeWidth,d.ctx.lineJoin=window.chrome?"miter":"round",d.ctx.strokeText(f.text,f.bounds.left,f.bounds.top+l)),d.ctx.strokeStyle="",d.ctx.lineWidth=0,d.ctx.lineJoin="miter";break}})}),[2]})})},e.prototype.renderReplacedElement=function(r,n,A){if(A&&r.intrinsicWidth>0&&r.intrinsicHeight>0){var a=su(r),i=ou(n);this.path(i),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(A,0,0,r.intrinsicWidth,r.intrinsicHeight,a.left,a.top,a.width,a.height),this.ctx.restore()}},e.prototype.renderNodeContent=function(r){return ur(this,void 0,void 0,function(){var n,A,a,i,o,s,B,B,l,u,c,d,y,h,f,b,p,g,m,B,v,y,b;return rr(this,function(E){switch(E.label){case 0:this.applyEffects(r.getEffects(4)),n=r.container,A=r.curves,a=n.styles,i=0,o=n.textNodes,E.label=1;case 1:return i0&&U>0&&(F=a.ctx.createPattern(b,"repeat"),a.renderRepeat(x,F,R,M))):RN(u)&&(w=Lf(r,n,[null,null,null]),x=w[0],Q=w[1],S=w[2],T=w[3],U=w[4],L=u.position.length===0?[Wh]:u.position,R=ft(L[0],T),M=ft(L[L.length-1],U),H=UN(u,R,M,T,U),k=H[0],N=H[1],k>0&&N>0&&(P=a.ctx.createRadialGradient(Q+R,S+M,0,Q+R,S+M,k),am(u.stops,k*2).forEach(function(ie){return P.addColorStop(ie.stop,Gt(ie.color))}),a.path(x),a.ctx.fillStyle=P,k!==N?(K=r.bounds.left+.5*r.bounds.width,W=r.bounds.top+.5*r.bounds.height,X=N/k,Z=1/X,a.ctx.save(),a.ctx.translate(K,W),a.ctx.transform(1,0,0,X,0,0),a.ctx.translate(-K,-W),a.ctx.fillRect(Q,Z*(S-W)+W,T,U*Z),a.ctx.restore()):a.ctx.fill())),Ae.label=6;case 6:return n--,[2]}})},a=this,i=0,o=r.styles.backgroundImage.slice(0).reverse(),l.label=1;case 1:return i0?u.style!==2?[3,5]:[4,this.renderDashedDottedBorder(u.color,u.width,o,r.curves,2)]:[3,11]):[3,13];case 4:return d.sent(),[3,11];case 5:return u.style!==3?[3,7]:[4,this.renderDashedDottedBorder(u.color,u.width,o,r.curves,3)];case 6:return d.sent(),[3,11];case 7:return u.style!==4?[3,9]:[4,this.renderDoubleBorder(u.color,u.width,o,r.curves)];case 8:return d.sent(),[3,11];case 9:return[4,this.renderSolidBorder(u.color,o,r.curves)];case 10:d.sent(),d.label=11;case 11:o++,d.label=12;case 12:return s++,[3,3];case 13:return[2]}})})},e.prototype.renderDashedDottedBorder=function(r,n,A,a,i){return ur(this,void 0,void 0,function(){var o,s,l,u,c,d,h,f,p,g,m,B,v,y,b,E,b,E;return rr(this,function(C){return this.ctx.save(),o=PG(a,A),s=Om(a,A),i===2&&(this.path(s),this.ctx.clip()),Dr(s[0])?(l=s[0].start.x,u=s[0].start.y):(l=s[0].x,u=s[0].y),Dr(s[1])?(c=s[1].end.x,d=s[1].end.y):(c=s[1].x,d=s[1].y),A===0||A===2?h=Math.abs(l-c):h=Math.abs(u-d),this.ctx.beginPath(),i===3?this.formatPath(o):this.formatPath(s.slice(0,2)),f=n<3?n*3:n*2,p=n<3?n*2:n,i===3&&(f=n,p=n),g=!0,h<=f*2?g=!1:h<=f*2+p?(m=h/(2*f+p),f*=m,p*=m):(B=Math.floor((h+p)/(f+p)),v=(h-B*f)/(B-1),y=(h-(B+1)*f)/B,p=y<=0||Math.abs(p-v)"u"||!(Symbol.iterator in Object(t)))){var r=[],n=!0,A=!1,a=void 0;try{for(var i=t[Symbol.iterator](),o;!(n=(o=i.next()).done)&&(r.push(o.value),!(e&&r.length===e));n=!0);}catch(s){A=!0,a=s}finally{try{!n&&i.return!=null&&i.return()}finally{if(A)throw a}}return r}}function sV(t,e){if(t){if(typeof t=="string")return Pm(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(r);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Pm(t,e)}}function Pm(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r0&&arguments[0]!==void 0?arguments[0]:{},r=e.type,n=e.quality,A=O.useState(null),a=km(A,2),i=a[0],o=a[1],s=O.useState(null),l=km(s,2),u=l[0],c=l[1],d=function(f){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!f)throw new Error("You should provide correct html node.");return nV(f,p).then(function(g){var m=document.createElement("canvas"),B=m.getContext("2d"),v=0,y=0,b=g.width,E=g.height;m.width=b,m.height=E,B.drawImage(g,y,v);var C=m.toDataURL(r,n);return o(C),C}).catch(c)};return[i,d,{error:u}]},cV="tippy-box",BC="tippy-content",fV="tippy-backdrop",wC="tippy-arrow",CC="tippy-svg-arrow",FA={passive:!0,capture:!0},bC=function(){return document.body};function Df(t,e,r){if(Array.isArray(t)){var n=t[e];return n??(Array.isArray(r)?r[e]:r)}return t}function Jh(t,e){var r={}.toString.call(t);return r.indexOf("[object")===0&&r.indexOf(e+"]")>-1}function EC(t,e){return typeof t=="function"?t.apply(void 0,e):t}function Nm(t,e){if(e===0)return t;var r;return function(n){clearTimeout(r),r=setTimeout(function(){t(n)},e)}}function dV(t){return t.split(/\s+/).filter(Boolean)}function Ea(t){return[].concat(t)}function Km(t,e){t.indexOf(e)===-1&&t.push(e)}function hV(t){return t.filter(function(e,r){return t.indexOf(e)===r})}function pV(t){return t.split("-")[0]}function lu(t){return[].slice.call(t)}function Gm(t){return Object.keys(t).reduce(function(e,r){return t[r]!==void 0&&(e[r]=t[r]),e},{})}function po(){return document.createElement("div")}function Dc(t){return["Element","Fragment"].some(function(e){return Jh(t,e)})}function gV(t){return Jh(t,"NodeList")}function vV(t){return Jh(t,"MouseEvent")}function mV(t){return!!(t&&t._tippy&&t._tippy.reference===t)}function yV(t){return Dc(t)?[t]:gV(t)?lu(t):Array.isArray(t)?t:lu(document.querySelectorAll(t))}function Rf(t,e){t.forEach(function(r){r&&(r.style.transitionDuration=e+"ms")})}function Vm(t,e){t.forEach(function(r){r&&r.setAttribute("data-state",e)})}function BV(t){var e,r=Ea(t),n=r[0];return n!=null&&(e=n.ownerDocument)!=null&&e.body?n.ownerDocument:document}function wV(t,e){var r=e.clientX,n=e.clientY;return t.every(function(A){var a=A.popperRect,i=A.popperState,o=A.props,s=o.interactiveBorder,l=pV(i.placement),u=i.modifiersData.offset;if(!u)return!0;var c=l==="bottom"?u.top.y:0,d=l==="top"?u.bottom.y:0,h=l==="right"?u.left.x:0,f=l==="left"?u.right.x:0,p=a.top-n+c>s,g=n-a.bottom-d>s,m=a.left-r+h>s,B=r-a.right-f>s;return p||g||m||B})}function Mf(t,e,r){var n=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(A){t[n](A,r)})}function $m(t,e){for(var r=e;r;){var n;if(t.contains(r))return!0;r=r.getRootNode==null||(n=r.getRootNode())==null?void 0:n.host}return!1}var hn={isTouch:!1},zm=0;function CV(){hn.isTouch||(hn.isTouch=!0,window.performance&&document.addEventListener("mousemove",xC))}function xC(){var t=performance.now();t-zm<20&&(hn.isTouch=!1,document.removeEventListener("mousemove",xC)),zm=t}function bV(){var t=document.activeElement;if(mV(t)){var e=t._tippy;t.blur&&!e.state.isVisible&&t.blur()}}function EV(){document.addEventListener("touchstart",CV,FA),window.addEventListener("blur",bV)}var xV=typeof window<"u"&&typeof document<"u",FV=xV?!!window.msCrypto:!1,QV={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},SV={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},Zr=Object.assign({appendTo:bC,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},QV,SV),UV=Object.keys(Zr),TV=function(e){var r=Object.keys(e);r.forEach(function(n){Zr[n]=e[n]})};function FC(t){var e=t.plugins||[],r=e.reduce(function(n,A){var a=A.name,i=A.defaultValue;if(a){var o;n[a]=t[a]!==void 0?t[a]:(o=Zr[a])!=null?o:i}return n},{});return Object.assign({},t,r)}function IV(t,e){var r=e?Object.keys(FC(Object.assign({},Zr,{plugins:e}))):UV,n=r.reduce(function(A,a){var i=(t.getAttribute("data-tippy-"+a)||"").trim();if(!i)return A;if(a==="content")A[a]=i;else try{A[a]=JSON.parse(i)}catch{A[a]=i}return A},{});return n}function Wm(t,e){var r=Object.assign({},e,{content:EC(e.content,[t])},e.ignoreAttributes?{}:IV(t,e.plugins));return r.aria=Object.assign({},Zr.aria,r.aria),r.aria={expanded:r.aria.expanded==="auto"?e.interactive:r.aria.expanded,content:r.aria.content==="auto"?e.interactive?null:"describedby":r.aria.content},r}var LV=function(){return"innerHTML"};function Pd(t,e){t[LV()]=e}function _m(t){var e=po();return t===!0?e.className=wC:(e.className=CC,Dc(t)?e.appendChild(t):Pd(e,t)),e}function Xm(t,e){Dc(e.content)?(Pd(t,""),t.appendChild(e.content)):typeof e.content!="function"&&(e.allowHTML?Pd(t,e.content):t.textContent=e.content)}function Nd(t){var e=t.firstElementChild,r=lu(e.children);return{box:e,content:r.find(function(n){return n.classList.contains(BC)}),arrow:r.find(function(n){return n.classList.contains(wC)||n.classList.contains(CC)}),backdrop:r.find(function(n){return n.classList.contains(fV)})}}function QC(t){var e=po(),r=po();r.className=cV,r.setAttribute("data-state","hidden"),r.setAttribute("tabindex","-1");var n=po();n.className=BC,n.setAttribute("data-state","hidden"),Xm(n,t.props),e.appendChild(r),r.appendChild(n),A(t.props,t.props);function A(a,i){var o=Nd(e),s=o.box,l=o.content,u=o.arrow;i.theme?s.setAttribute("data-theme",i.theme):s.removeAttribute("data-theme"),typeof i.animation=="string"?s.setAttribute("data-animation",i.animation):s.removeAttribute("data-animation"),i.inertia?s.setAttribute("data-inertia",""):s.removeAttribute("data-inertia"),s.style.maxWidth=typeof i.maxWidth=="number"?i.maxWidth+"px":i.maxWidth,i.role?s.setAttribute("role",i.role):s.removeAttribute("role"),(a.content!==i.content||a.allowHTML!==i.allowHTML)&&Xm(l,t.props),i.arrow?u?a.arrow!==i.arrow&&(s.removeChild(u),s.appendChild(_m(i.arrow))):s.appendChild(_m(i.arrow)):u&&s.removeChild(u)}return{popper:e,onUpdate:A}}QC.$$tippy=!0;var DV=1,ll=[],Of=[];function RV(t,e){var r=Wm(t,Object.assign({},Zr,FC(Gm(e)))),n,A,a,i=!1,o=!1,s=!1,l=!1,u,c,d,h=[],f=Nm(ae,r.interactiveDebounce),p,g=DV++,m=null,B=hV(r.plugins),v={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},y={id:g,reference:t,popper:po(),popperInstance:m,props:r,state:v,plugins:B,clearDelayTimeouts:G,setProps:J,setContent:j,show:ne,hide:ce,hideWithInteractivity:Y,enable:$,disable:D,unmount:de,destroy:Te};if(!r.render)return y;var b=r.render(y),E=b.popper,C=b.onUpdate;E.setAttribute("data-tippy-root",""),E.id="tippy-"+y.id,y.popper=E,t._tippy=y,E._tippy=y;var F=B.map(function(V){return V.fn(y)}),w=t.hasAttribute("aria-expanded");return ee(),N(),M(),H("onCreate",[y]),r.showOnCreate&&we(),E.addEventListener("mouseenter",function(){y.props.interactive&&y.state.isVisible&&y.clearDelayTimeouts()}),E.addEventListener("mouseleave",function(){y.props.interactive&&y.props.trigger.indexOf("mouseenter")>=0&&U().addEventListener("mousemove",f)}),y;function x(){var V=y.props.touch;return Array.isArray(V)?V:[V,0]}function Q(){return x()[0]==="hold"}function S(){var V;return!!((V=y.props.render)!=null&&V.$$tippy)}function T(){return p||t}function U(){var V=T().parentNode;return V?BV(V):document}function L(){return Nd(E)}function R(V){return y.state.isMounted&&!y.state.isVisible||hn.isTouch||u&&u.type==="focus"?0:Df(y.props.delay,V?0:1,Zr.delay)}function M(V){V===void 0&&(V=!1),E.style.pointerEvents=y.props.interactive&&!V?"":"none",E.style.zIndex=""+y.props.zIndex}function H(V,oe,fe){if(fe===void 0&&(fe=!0),F.forEach(function(Be){Be[V]&&Be[V].apply(Be,oe)}),fe){var pe;(pe=y.props)[V].apply(pe,oe)}}function k(){var V=y.props.aria;if(V.content){var oe="aria-"+V.content,fe=E.id,pe=Ea(y.props.triggerTarget||t);pe.forEach(function(Be){var Oe=Be.getAttribute(oe);if(y.state.isVisible)Be.setAttribute(oe,Oe?Oe+" "+fe:fe);else{var Ne=Oe&&Oe.replace(fe,"").trim();Ne?Be.setAttribute(oe,Ne):Be.removeAttribute(oe)}})}}function N(){if(!(w||!y.props.aria.expanded)){var V=Ea(y.props.triggerTarget||t);V.forEach(function(oe){y.props.interactive?oe.setAttribute("aria-expanded",y.state.isVisible&&oe===T()?"true":"false"):oe.removeAttribute("aria-expanded")})}}function P(){U().removeEventListener("mousemove",f),ll=ll.filter(function(V){return V!==f})}function K(V){if(!(hn.isTouch&&(s||V.type==="mousedown"))){var oe=V.composedPath&&V.composedPath()[0]||V.target;if(!(y.props.interactive&&$m(E,oe))){if(Ea(y.props.triggerTarget||t).some(function(fe){return $m(fe,oe)})){if(hn.isTouch||y.state.isVisible&&y.props.trigger.indexOf("click")>=0)return}else H("onClickOutside",[y,V]);y.props.hideOnClick===!0&&(y.clearDelayTimeouts(),y.hide(),o=!0,setTimeout(function(){o=!1}),y.state.isMounted||Ae())}}}function W(){s=!0}function X(){s=!1}function Z(){var V=U();V.addEventListener("mousedown",K,!0),V.addEventListener("touchend",K,FA),V.addEventListener("touchstart",X,FA),V.addEventListener("touchmove",W,FA)}function Ae(){var V=U();V.removeEventListener("mousedown",K,!0),V.removeEventListener("touchend",K,FA),V.removeEventListener("touchstart",X,FA),V.removeEventListener("touchmove",W,FA)}function ie(V,oe){z(V,function(){!y.state.isVisible&&E.parentNode&&E.parentNode.contains(E)&&oe()})}function re(V,oe){z(V,oe)}function z(V,oe){var fe=L().box;function pe(Be){Be.target===fe&&(Mf(fe,"remove",pe),oe())}if(V===0)return oe();Mf(fe,"remove",c),Mf(fe,"add",pe),c=pe}function q(V,oe,fe){fe===void 0&&(fe=!1);var pe=Ea(y.props.triggerTarget||t);pe.forEach(function(Be){Be.addEventListener(V,oe,fe),h.push({node:Be,eventType:V,handler:oe,options:fe})})}function ee(){Q()&&(q("touchstart",te,{passive:!0}),q("touchend",le,{passive:!0})),dV(y.props.trigger).forEach(function(V){if(V!=="manual")switch(q(V,te),V){case"mouseenter":q("mouseleave",le);break;case"focus":q(FV?"focusout":"blur",ve);break;case"focusin":q("focusout",ve);break}})}function se(){h.forEach(function(V){var oe=V.node,fe=V.eventType,pe=V.handler,Be=V.options;oe.removeEventListener(fe,pe,Be)}),h=[]}function te(V){var oe,fe=!1;if(!(!y.state.isEnabled||ge(V)||o)){var pe=((oe=u)==null?void 0:oe.type)==="focus";u=V,p=V.currentTarget,N(),!y.state.isVisible&&vV(V)&&ll.forEach(function(Be){return Be(V)}),V.type==="click"&&(y.props.trigger.indexOf("mouseenter")<0||i)&&y.props.hideOnClick!==!1&&y.state.isVisible?fe=!0:we(V),V.type==="click"&&(i=!fe),fe&&!pe&&_(V)}}function ae(V){var oe=V.target,fe=T().contains(oe)||E.contains(oe);if(!(V.type==="mousemove"&&fe)){var pe=Ce().concat(E).map(function(Be){var Oe,Ne=Be._tippy,ut=(Oe=Ne.popperInstance)==null?void 0:Oe.state;return ut?{popperRect:Be.getBoundingClientRect(),popperState:ut,props:r}:null}).filter(Boolean);wV(pe,V)&&(P(),_(V))}}function le(V){var oe=ge(V)||y.props.trigger.indexOf("click")>=0&&i;if(!oe){if(y.props.interactive){y.hideWithInteractivity(V);return}_(V)}}function ve(V){y.props.trigger.indexOf("focusin")<0&&V.target!==T()||y.props.interactive&&V.relatedTarget&&E.contains(V.relatedTarget)||_(V)}function ge(V){return hn.isTouch?Q()!==V.type.indexOf("touch")>=0:!1}function he(){ye();var V=y.props,oe=V.popperOptions,fe=V.placement,pe=V.offset,Be=V.getReferenceClientRect,Oe=V.moveTransition,Ne=S()?Nd(E).arrow:null,ut=Be?{getBoundingClientRect:Be,contextElement:Be.contextElement||T()}:t,Ge={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(Je){var ze=Je.state;if(S()){var De=L(),nt=De.box;["placement","reference-hidden","escaped"].forEach(function(Rt){Rt==="placement"?nt.setAttribute("data-placement",ze.placement):ze.attributes.popper["data-popper-"+Rt]?nt.setAttribute("data-"+Rt,""):nt.removeAttribute("data-"+Rt)}),ze.attributes.popper={}}}},He=[{name:"offset",options:{offset:pe}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!Oe}},Ge];S()&&Ne&&He.push({name:"arrow",options:{element:Ne,padding:3}}),He.push.apply(He,(oe==null?void 0:oe.modifiers)||[]),y.popperInstance=e0(ut,E,Object.assign({},oe,{placement:fe,onFirstUpdate:d,modifiers:He}))}function ye(){y.popperInstance&&(y.popperInstance.destroy(),y.popperInstance=null)}function Se(){var V=y.props.appendTo,oe,fe=T();y.props.interactive&&V===bC||V==="parent"?oe=fe.parentNode:oe=EC(V,[fe]),oe.contains(E)||oe.appendChild(E),y.state.isMounted=!0,he()}function Ce(){return lu(E.querySelectorAll("[data-tippy-root]"))}function we(V){y.clearDelayTimeouts(),V&&H("onTrigger",[y,V]),Z();var oe=R(!0),fe=x(),pe=fe[0],Be=fe[1];hn.isTouch&&pe==="hold"&&Be&&(oe=Be),oe?n=setTimeout(function(){y.show()},oe):y.show()}function _(V){if(y.clearDelayTimeouts(),H("onUntrigger",[y,V]),!y.state.isVisible){Ae();return}if(!(y.props.trigger.indexOf("mouseenter")>=0&&y.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(V.type)>=0&&i)){var oe=R(!1);oe?A=setTimeout(function(){y.state.isVisible&&y.hide()},oe):a=requestAnimationFrame(function(){y.hide()})}}function $(){y.state.isEnabled=!0}function D(){y.hide(),y.state.isEnabled=!1}function G(){clearTimeout(n),clearTimeout(A),cancelAnimationFrame(a)}function J(V){if(!y.state.isDestroyed){H("onBeforeUpdate",[y,V]),se();var oe=y.props,fe=Wm(t,Object.assign({},oe,Gm(V),{ignoreAttributes:!0}));y.props=fe,ee(),oe.interactiveDebounce!==fe.interactiveDebounce&&(P(),f=Nm(ae,fe.interactiveDebounce)),oe.triggerTarget&&!fe.triggerTarget?Ea(oe.triggerTarget).forEach(function(pe){pe.removeAttribute("aria-expanded")}):fe.triggerTarget&&t.removeAttribute("aria-expanded"),N(),M(),C&&C(oe,fe),y.popperInstance&&(he(),Ce().forEach(function(pe){requestAnimationFrame(pe._tippy.popperInstance.forceUpdate)})),H("onAfterUpdate",[y,V])}}function j(V){y.setProps({content:V})}function ne(){var V=y.state.isVisible,oe=y.state.isDestroyed,fe=!y.state.isEnabled,pe=hn.isTouch&&!y.props.touch,Be=Df(y.props.duration,0,Zr.duration);if(!(V||oe||fe||pe)&&!T().hasAttribute("disabled")&&(H("onShow",[y],!1),y.props.onShow(y)!==!1)){if(y.state.isVisible=!0,S()&&(E.style.visibility="visible"),M(),Z(),y.state.isMounted||(E.style.transition="none"),S()){var Oe=L(),Ne=Oe.box,ut=Oe.content;Rf([Ne,ut],0)}d=function(){var He;if(!(!y.state.isVisible||l)){if(l=!0,E.offsetHeight,E.style.transition=y.props.moveTransition,S()&&y.props.animation){var pt=L(),Je=pt.box,ze=pt.content;Rf([Je,ze],Be),Vm([Je,ze],"visible")}k(),N(),Km(Of,y),(He=y.popperInstance)==null||He.forceUpdate(),H("onMount",[y]),y.props.animation&&S()&&re(Be,function(){y.state.isShown=!0,H("onShown",[y])})}},Se()}}function ce(){var V=!y.state.isVisible,oe=y.state.isDestroyed,fe=!y.state.isEnabled,pe=Df(y.props.duration,1,Zr.duration);if(!(V||oe||fe)&&(H("onHide",[y],!1),y.props.onHide(y)!==!1)){if(y.state.isVisible=!1,y.state.isShown=!1,l=!1,i=!1,S()&&(E.style.visibility="hidden"),P(),Ae(),M(!0),S()){var Be=L(),Oe=Be.box,Ne=Be.content;y.props.animation&&(Rf([Oe,Ne],pe),Vm([Oe,Ne],"hidden"))}k(),N(),y.props.animation?S()&&ie(pe,y.unmount):y.unmount()}}function Y(V){U().addEventListener("mousemove",f),Km(ll,f),f(V)}function de(){y.state.isVisible&&y.hide(),y.state.isMounted&&(ye(),Ce().forEach(function(V){V._tippy.unmount()}),E.parentNode&&E.parentNode.removeChild(E),Of=Of.filter(function(V){return V!==y}),y.state.isMounted=!1,H("onHidden",[y]))}function Te(){y.state.isDestroyed||(y.clearDelayTimeouts(),y.unmount(),se(),delete t._tippy,y.state.isDestroyed=!0,H("onDestroy",[y]))}}function us(t,e){e===void 0&&(e={});var r=Zr.plugins.concat(e.plugins||[]);EV();var n=Object.assign({},e,{plugins:r}),A=yV(t),a=A.reduce(function(i,o){var s=o&&RV(o,n);return s&&i.push(s),i},[]);return Dc(t)?a[0]:a}us.defaultProps=Zr;us.setDefaultProps=TV;us.currentInput=hn;Object.assign({},Wy,{effect:function(e){var r=e.state,n={popper:{position:r.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(r.elements.popper.style,n.popper),r.styles=n,r.elements.arrow&&Object.assign(r.elements.arrow.style,n.arrow)}});us.setDefaultProps({render:QC});const SC=({toggles:t,onToggle:e,simpleCategories:r,edgeType:n,colorFunc:A,elements:a,edges:i,legendToggle:o,legendNodeLabel:s,legendEdgeLabel:l,order:u,uniqueCat:c})=>{const d=Array.from(new Set(i.map(f=>o?o(f):f.category?f.category:void 0))),h=u||Array.from(new Set(r));return console.log(t),I.jsxs("div",{style:{bottom:"10px",zIndex:1e3,backgroundColor:"white",borderRadius:"5px",width:"225px",padding:"5px"},children:[I.jsx(Bt,{style:{fontSize:"18px",margin:"3px",fontFamily:"Arial"},children:s||"Node Type"}),c?c.map(f=>{let p="grey",g="";return a.forEach(m=>{h.forEach(B=>{if(A&&o&&o(m)===B&&m.category===f){p=A(m),g=B;return}})}),I.jsxs("div",{style:{display:"flex",alignItems:"center",marginBottom:"4px"},children:[I.jsx(gl,{checked:t[f],onChange:()=>e(f),color:"primary",size:"small",style:{padding:0}}),I.jsxs(Bt,{variant:"body2",style:{color:p,marginLeft:"4px",cursor:"pointer",fontSize:"14px",fontFamily:"Arial"},onClick:()=>e(f),children:[g," ",o?"(":null,o?f:null,o?")":null]})]},f)}):h.map(f=>{let p="grey",g="";return a.forEach(m=>{A&&o&&o(m)===f&&(p=A(m),g=m.category)}),I.jsxs("div",{style:{display:"flex",alignItems:"center",marginBottom:"4px"},children:[I.jsx(gl,{checked:t[f],onChange:()=>e(f),color:"primary",size:"small",style:{padding:0}}),I.jsxs(Bt,{variant:"body2",style:{color:p,marginLeft:"4px",cursor:"pointer",fontSize:"14px",fontFamily:"Arial"},onClick:()=>e(f),children:[f," ",o?"(":null,o?g:null,o?")":null]})]},f)}),n&&d!==null?I.jsxs("div",{children:[I.jsx(Bt,{style:{fontSize:"18px",margin:"3px",fontFamily:"Arial"},children:l||"Edge Type"}),d.map(f=>{if(f===void 0)return null;let p="grey";return i.forEach(g=>{(A&&o&&o(g)===f||A&&g.category&&g.category===f)&&(p=A(g))}),I.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[I.jsx(gl,{checked:t[f],onChange:()=>e(f),color:"primary",size:"small",style:{padding:0}}),I.jsx(Bt,{variant:"body2",style:{color:p,marginLeft:"4px",cursor:"pointer",fontSize:"14px",fontFamily:"Arial"},onClick:()=>e(f),children:f})]},f)})]}):null]})};SC.__docgenInfo={description:"",methods:[],displayName:"Legend",props:{toggles:{required:!0,tsType:{name:"signature",type:"object",raw:"{ [key: string]: boolean }",signature:{properties:[{key:{name:"string"},value:{name:"boolean",required:!0}}]}},description:""},onToggle:{required:!0,tsType:{name:"signature",type:"function",raw:"(category: string) => void",signature:{arguments:[{type:{name:"string"},name:"category"}],return:{name:"void"}}},description:""},simpleCategories:{required:!0,tsType:{name:"Array",elements:[{name:"string"}],raw:"string[]"},description:""},edgeType:{required:!0,tsType:{name:"boolean"},description:""},colorFunc:{required:!1,tsType:{name:"signature",type:"function",raw:"(node: Node | Edge) => string",signature:{arguments:[{type:{name:"union",raw:"Node | Edge",elements:[{name:"Node"},{name:"Edge"}]},name:"node"}],return:{name:"string"}}},description:""},elements:{required:!0,tsType:{name:"Array",elements:[{name:"Node"}],raw:"Node[]"},description:""},edges:{required:!0,tsType:{name:"Array",elements:[{name:"Edge"}],raw:"Edge[]"},description:""},legendToggle:{required:!1,tsType:{name:"signature",type:"function",raw:"(node: Node | Edge) => string",signature:{arguments:[{type:{name:"union",raw:"Node | Edge",elements:[{name:"Node"},{name:"Edge"}]},name:"node"}],return:{name:"string"}}},description:""},legendNodeLabel:{required:!1,tsType:{name:"string"},description:""},legendEdgeLabel:{required:!1,tsType:{name:"string"},description:""},order:{required:!1,tsType:{name:"Array",elements:[{name:"string"}],raw:"string[]"},description:""},uniqueCat:{required:!1,tsType:{name:"Array",elements:[{name:"string"}],raw:"string[]"},description:""}}};const UC=({scales:t,width:e,scaleLabel:r})=>{var d,h;if(t.length===0)return null;const n=[...t].sort((f,p)=>f-p),A=n[0],a=n[n.length-1],i=n[Math.floor(n.length/4)],o=n[Math.floor(n.length*3/4)],s=e.toString();let l=((h=(d=s.match(/=>\s*(.*)/))==null?void 0:d[1])==null?void 0:h.trim().replace("Math.",""))||s;r&&(l=r);const u={top:"20vh",zIndex:1e3,backgroundColor:"white",padding:"10px",borderRadius:"5px",fontSize:"13px",width:"225px",textAlign:"left"},c={display:"flex",alignItems:"center",justifyContent:"left",marginBottom:"5px"};return I.jsx("div",{style:u,children:I.jsxs(I.Fragment,{children:[I.jsxs(Bt,{variant:"body2",component:"h4",style:{margin:"3px 0",fontSize:"16px",fontFamily:"Arial"},children:["Edge Weight Scale:",I.jsx(IA,{title:l,color:"primary",sx:{ml:.5},placement:"bottom",children:I.jsx(U0,{fontSize:"small",style:{marginBottom:"-4.5px",marginTop:"-7px"}})})]}),I.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"left",marginTop:"10px"},children:[I.jsxs("div",{style:c,children:[I.jsx("div",{style:{width:e(A),height:"10px",backgroundColor:"black",display:"inline-block"}}),I.jsx(Bt,{variant:"body2",style:{marginLeft:"10px",fontSize:"14px",fontFamily:"Arial"},children:A.toFixed(2)})]}),I.jsxs("div",{style:c,children:[I.jsx("div",{style:{width:e(i),height:"10px",backgroundColor:"black",display:"inline-block"}}),I.jsx(Bt,{variant:"body2",style:{marginLeft:"10px",fontSize:"14px",fontFamily:"Arial"},children:i.toFixed(2)})]}),I.jsxs("div",{style:c,children:[I.jsx("div",{style:{width:e(o),height:"10px",backgroundColor:"black",display:"inline-block"}}),I.jsx(Bt,{variant:"body2",style:{marginLeft:"10px",fontSize:"14px",fontFamily:"Arial"},children:o.toFixed(2)})]}),I.jsxs("div",{style:c,children:[I.jsx("div",{style:{width:e(a),height:"10px",backgroundColor:"black",display:"inline-block"}}),I.jsx(Bt,{variant:"body2",style:{marginLeft:"10px",fontSize:"14px",fontFamily:"Arial"},children:a.toFixed(2)})]})]})]})})};UC.__docgenInfo={description:"",methods:[],displayName:"ScaleLegend",props:{scales:{required:!0,tsType:{name:"Array",elements:[{name:"number"}],raw:"number[]"},description:""},width:{required:!0,tsType:{name:"signature",type:"function",raw:"(n: number) => number",signature:{arguments:[{type:{name:"number"},name:"n"}],return:{name:"number"}}},description:""},scaleLabel:{required:!1,tsType:{name:"string"},description:""}}};const MV=vt([I.jsx("path",{d:"M6.41 6 5 7.41 9.58 12 5 16.59 6.41 18l6-6z"},"0"),I.jsx("path",{d:"m13 6-1.41 1.41L16.17 12l-4.58 4.59L13 18l6-6z"},"1")],"KeyboardDoubleArrowRight"),OV=vt([I.jsx("path",{d:"M17.59 18 19 16.59 14.42 12 19 7.41 17.59 6l-6 6z"},"0"),I.jsx("path",{d:"m11 18 1.41-1.41L7.83 12l4.58-4.59L11 6l-6 6z"},"1")],"KeyboardDoubleArrowLeft"),HV=vt(I.jsx("path",{d:"M10.59 9.17 5.41 4 4 5.41l5.17 5.17zM14.5 4l2.04 2.04L4 18.59 5.41 20 17.96 7.46 20 9.5V4zm.33 9.41-1.41 1.41 3.13 3.13L14.5 20H20v-5.5l-2.04 2.04z"}),"Shuffle"),kV=vt(I.jsx("path",{d:"M17.63 5.84C17.27 5.33 16.67 5 16 5L5 5.01C3.9 5.01 3 5.9 3 7v10c0 1.1.9 1.99 2 1.99L16 19c.67 0 1.27-.33 1.63-.84L22 12z"}),"Label"),PV=vt(I.jsx("path",{d:"m3.25 2.75 17 17L19 21l-2-2H5c-1.1 0-2-.9-2-2V7c0-.55.23-1.05.59-1.41L2 4zM22 12l-4.37-6.16C17.27 5.33 16.67 5 16 5H8l11 11z"}),"LabelOff"),NV=vt([I.jsx("path",{d:"M21 8c-1.45 0-2.26 1.44-1.93 2.51l-3.55 3.56c-.3-.09-.74-.09-1.04 0l-2.55-2.55C12.27 10.45 11.46 9 10 9c-1.45 0-2.27 1.44-1.93 2.52l-4.56 4.55C2.44 15.74 1 16.55 1 18c0 1.1.9 2 2 2 1.45 0 2.26-1.44 1.93-2.51l4.55-4.56c.3.09.74.09 1.04 0l2.55 2.55C12.73 16.55 13.54 18 15 18c1.45 0 2.27-1.44 1.93-2.52l3.56-3.55c1.07.33 2.51-.48 2.51-1.93 0-1.1-.9-2-2-2"},"0"),I.jsx("path",{d:"m15 9 .94-2.07L18 6l-2.06-.93L15 3l-.92 2.07L12 6l2.08.93zM3.5 11 4 9l2-.5L4 8l-.5-2L3 8l-2 .5L3 9z"},"1")],"Insights"),TC=({toggles:t,onToggle:e,simpleCategories:r,edgeType:n,colorFunc:A,elements:a,edges:i,scales:o,scaleWidth:s,downloadScreenshot:l,randomize:u,organize:c,toggleLabels:d,labelsOn:h,legendToggle:f,legendNodeLabel:p,legendEdgeLabel:g,uniqueCat:m,scaleLabel:B})=>{const[v,y]=O.useState(!1),b={position:"absolute",top:"0",right:"0",width:v?"40px":"250px",backgroundColor:"white",transition:"width 0.3s",zIndex:1e3,overflowX:"hidden",marginRight:"5px",marginTop:"5px",overflowY:"auto",maxHeight:"100vh"},E={width:v?"0px":"10px",height:"40px",display:"inline-block",alignItems:"left",justifyContent:"left",cursor:"pointer",padding:"0px"};return I.jsxs(Ai,{style:b,elevation:3,children:[I.jsx(qn,{onClick:()=>y(!v),fullWidth:!0,sx:{typography:"body2",textTransform:"none"},style:E,children:v?I.jsx(OV,{style:{marginLeft:"-27px"}}):I.jsx(MV,{style:{marginRight:"30px"}})}),!v&&I.jsxs(I.Fragment,{children:[I.jsx(Bt,{variant:"body2",style:{fontSize:"20px",marginLeft:"22px",marginTop:"5px",justifyContent:"center",alignItems:"center",display:"inline-block"},children:"Controls"}),I.jsxs(Fo,{spacing:1,children:[I.jsx(SC,{toggles:t,onToggle:e,simpleCategories:r,edgeType:n,colorFunc:A,elements:a,edges:i,legendToggle:f,legendNodeLabel:p,legendEdgeLabel:g,uniqueCat:m}),I.jsx(UC,{scales:o,width:s,scaleLabel:B}),I.jsxs(Fo,{direction:"row",spacing:2,style:{marginBottom:"5px"},children:[I.jsx(qn,{onClick:l,style:{fontSize:"small",minWidth:"40px"},children:I.jsx(IA,{title:"Download",color:"primary",sx:{ml:1},placement:"bottom",children:I.jsx(S0,{})})}),I.jsx(qn,{onClick:u,style:{fontSize:"small",minWidth:"40px"},children:I.jsx(IA,{title:"Randomize",color:"primary",sx:{ml:1},placement:"bottom",children:I.jsx(HV,{})})}),I.jsx(qn,{onClick:c,style:{fontSize:"small",minWidth:"40px"},children:I.jsx(IA,{title:"Organize",color:"primary",sx:{ml:1},placement:"bottom",children:I.jsx(NV,{})})}),I.jsx(qn,{onClick:d,style:{fontSize:"small",minWidth:"40px"},children:I.jsx(IA,{title:"Toggle Labels",color:"primary",sx:{ml:1},placement:"bottom",children:h?I.jsx(PV,{}):I.jsx(kV,{})})})]})]})]})]})};TC.__docgenInfo={description:"",methods:[],displayName:"ControlPanel",props:{toggles:{required:!0,tsType:{name:"signature",type:"object",raw:"{ [key: string]: boolean }",signature:{properties:[{key:{name:"string"},value:{name:"boolean",required:!0}}]}},description:""},onToggle:{required:!0,tsType:{name:"signature",type:"function",raw:"(category: string) => void",signature:{arguments:[{type:{name:"string"},name:"category"}],return:{name:"void"}}},description:""},simpleCategories:{required:!0,tsType:{name:"Array",elements:[{name:"string"}],raw:"string[]"},description:""},edgeType:{required:!0,tsType:{name:"boolean"},description:""},colorFunc:{required:!1,tsType:{name:"signature",type:"function",raw:"(node: Node | Edge) => string",signature:{arguments:[{type:{name:"union",raw:"Node | Edge",elements:[{name:"Node"},{name:"Edge"}]},name:"node"}],return:{name:"string"}}},description:""},elements:{required:!0,tsType:{name:"Array",elements:[{name:"Node"}],raw:"Node[]"},description:""},edges:{required:!0,tsType:{name:"Array",elements:[{name:"Edge"}],raw:"Edge[]"},description:""},scales:{required:!0,tsType:{name:"Array",elements:[{name:"number"}],raw:"number[]"},description:""},scaleWidth:{required:!0,tsType:{name:"signature",type:"function",raw:"(n: number) => number",signature:{arguments:[{type:{name:"number"},name:"n"}],return:{name:"number"}}},description:""},downloadScreenshot:{required:!0,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""},randomize:{required:!0,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""},organize:{required:!0,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""},toggleLabels:{required:!0,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""},labelsOn:{required:!0,tsType:{name:"boolean"},description:""},legendToggle:{required:!1,tsType:{name:"signature",type:"function",raw:"(node: Node | Edge) => string",signature:{arguments:[{type:{name:"union",raw:"Node | Edge",elements:[{name:"Node"},{name:"Edge"}]},name:"node"}],return:{name:"string"}}},description:""},legendNodeLabel:{required:!1,tsType:{name:"string"},description:""},legendEdgeLabel:{required:!1,tsType:{name:"string"},description:""},uniqueCat:{required:!1,tsType:{name:"Array",elements:[{name:"string"}],raw:"string[]"},description:""},scaleLabel:{required:!1,tsType:{name:"string"},description:""}}};Kn.use(LP);Kn.use(RP(Kd));function Kd(t,e,r){const n=document.createElement("div");return document.body.appendChild(n),us(n,{getReferenceClientRect:t.getBoundingClientRect,trigger:"manual",content:e,arrow:!0,placement:"bottom",hideOnClick:!1,sticky:"reference",interactive:!0,appendTo:document.body,...r})}const KV=(t,{name:e="img",extension:r="jpg"}={})=>{const n=document.createElement("a");n.href=t,n.download=`${e}.${r}`,n.click()},GV=t=>10*Math.log(t*4+1),VV=({data:t,title:e,id:r,width:n="100%",height:A="100%",scale:a=GV,getLabel:i,getColor:o,legendToggle:s,legendNodeLabel:l,legendEdgeLabel:u,order:c,fontFamily:d="Arial",onNodeClick:h,onEdgeClick:f,directional:p=!1,scaleLabel:g})=>{const m=O.useRef(null),[B]=O.useState(!0),[v,y]=O.useState([]),[b,E]=O.useState([]),[C,F]=O.useState([]),[w,x]=O.useState([]),[Q,S]=O.useState(!0),[T,U]=O.useState({}),L=new Set;s!==void 0?(t.node.forEach(te=>{L.add(s(te))}),t.edge.forEach(te=>{te.category&&L.add(s(te))})):(t.node.forEach(te=>{L.add(te.category)}),t.edge.forEach(te=>{te.category&&L.add(te.category)}));let R=new Set;t.node.forEach(te=>{s&&!c?R.add(s(te)):R.add(te.category)}),t.edge.forEach(te=>{te.category&&s?R.add(s(te)):te.category&&R.add(te.category)});let M=Array.from(R);c&&(M=M.sort((te,ae)=>c.indexOf(te)-c.indexOf(ae)));const H={};M.forEach(te=>{H[te]=!0});const k=O.useRef(null),[N,P]=uV(),K=()=>{k.current&&typeof P=="function"&&P(k.current).then(KV)},W=O.useRef(null);let X="cy-"+r;O.useEffect(()=>{y(t.node),x(t.edge),E(t.edge.map(te=>te.effectSize)),F(t.edge.map(te=>s?s(te):te.category!==void 0?te.category:"Edge")),U(H)},[t]);let Z=v.map(te=>te.category),Ae=Array.from(new Set(Z));c&&(Ae=Ae.sort((te,ae)=>c.indexOf(te)-c.indexOf(ae)));const ie=v.map(te=>s&&!c?s(te):te.category),re=v.map(te=>s?s(te):te.category),z=te=>v[te].id;O.useEffect(()=>{var Ce;if(v.length===0||b.length===0||C.length===0||w.length===0)return;const te=v.map(we=>we.id);let ae=[];for(let we=0;we{const _=te.indexOf(we.from),$=te.indexOf(we.to);_!==-1&&$!==-1&&ae[_].push($)});const le=Kn({container:document.getElementById(X),style:[{selector:"node",style:{label:"","font-size":12}},{selector:"edge",style:{"line-color":"#ccc","curve-style":"bezier"}}],minZoom:.25,maxZoom:5});m.current=le,le.ready(()=>{le.nodes().forEach(we=>{const $=[30,70,110][Math.floor(Math.random()*3)];we.css("width",$),we.css("height",$)}),le.layout({name:"cose-bilkent",animate:"end",animationDuration:1e3}).run()});const ge=`data:image/svg+xml;utf8,${encodeURIComponent(` + .`+Hd+yG+Rm)},wG=function(t,e){var r=t.ownerDocument;if(r){var n=r.createElement("style");n.textContent=e,t.appendChild(n)}},dC=function(){function t(){}return t.getOrigin=function(e){var r=t._link;return r?(r.href=e,r.href=r.href,r.protocol+r.hostname+r.port):"about:blank"},t.isSameOrigin=function(e){return t.getOrigin(e)===t._origin},t.setContext=function(e){t._link=e.document.createElement("a"),t._origin=t.getOrigin(e.location.href)},t._origin="about:blank",t}(),CG=function(){function t(e,r){this.context=e,this._options=r,this._cache={}}return t.prototype.addImage=function(e){var r=Promise.resolve();return this.has(e)||(If(e)||FG(e))&&(this._cache[e]=this.loadImage(e)).catch(function(){}),r},t.prototype.match=function(e){return this._cache[e]},t.prototype.loadImage=function(e){return ur(this,void 0,void 0,function(){var r,n,A,a,i=this;return rr(this,function(o){switch(o.label){case 0:return r=dC.isSameOrigin(e),n=!Tf(e)&&this._options.useCORS===!0&&_t.SUPPORT_CORS_IMAGES&&!r,A=!Tf(e)&&!r&&!If(e)&&typeof this._options.proxy=="string"&&_t.SUPPORT_CORS_XHR&&!n,!r&&this._options.allowTaint===!1&&!Tf(e)&&!If(e)&&!A&&!n?[2]:(a=e,A?[4,this.proxy(a)]:[3,2]);case 1:a=o.sent(),o.label=2;case 2:return this.context.logger.debug("Added image "+e.substring(0,256)),[4,new Promise(function(s,l){var u=new Image;u.onload=function(){return s(u)},u.onerror=l,(QG(a)||n)&&(u.crossOrigin="anonymous"),u.src=a,u.complete===!0&&setTimeout(function(){return s(u)},500),i._options.imageTimeout>0&&setTimeout(function(){return l("Timed out ("+i._options.imageTimeout+"ms) loading image")},i._options.imageTimeout)})];case 3:return[2,o.sent()]}})})},t.prototype.has=function(e){return typeof this._cache[e]<"u"},t.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},t.prototype.proxy=function(e){var r=this,n=this._options.proxy;if(!n)throw new Error("No proxy defined");var A=e.substring(0,256);return new Promise(function(a,i){var o=_t.SUPPORT_RESPONSE_TYPE?"blob":"text",s=new XMLHttpRequest;s.onload=function(){if(s.status===200)if(o==="text")a(s.response);else{var c=new FileReader;c.addEventListener("load",function(){return a(c.result)},!1),c.addEventListener("error",function(d){return i(d)},!1),c.readAsDataURL(s.response)}else i("Failed to proxy resource "+A+" with status code "+s.status)},s.onerror=i;var l=n.indexOf("?")>-1?"&":"?";if(s.open("GET",""+n+l+"url="+encodeURIComponent(e)+"&responseType="+o),o!=="text"&&s instanceof XMLHttpRequest&&(s.responseType=o),r._options.imageTimeout){var u=r._options.imageTimeout;s.timeout=u,s.ontimeout=function(){return i("Timed out ("+u+"ms) proxying "+A)}}s.send()})},t}(),bG=/^data:image\/svg\+xml/i,EG=/^data:image\/.*;base64,/i,xG=/^data:image\/.*/i,FG=function(t){return _t.SUPPORT_SVG_DRAWING||!SG(t)},Tf=function(t){return xG.test(t)},QG=function(t){return EG.test(t)},If=function(t){return t.substr(0,4)==="blob"},SG=function(t){return t.substr(-3).toLowerCase()==="svg"||bG.test(t)},Qe=function(){function t(e,r){this.type=0,this.x=e,this.y=r}return t.prototype.add=function(e,r){return new t(this.x+e,this.y+r)},t}(),ma=function(t,e,r){return new Qe(t.x+(e.x-t.x)*r,t.y+(e.y-t.y)*r)},al=function(){function t(e,r,n,A){this.type=1,this.start=e,this.startControl=r,this.endControl=n,this.end=A}return t.prototype.subdivide=function(e,r){var n=ma(this.start,this.startControl,e),A=ma(this.startControl,this.endControl,e),a=ma(this.endControl,this.end,e),i=ma(n,A,e),o=ma(A,a,e),s=ma(i,o,e);return r?new t(this.start,n,i,s):new t(s,o,a,this.end)},t.prototype.add=function(e,r){return new t(this.start.add(e,r),this.startControl.add(e,r),this.endControl.add(e,r),this.end.add(e,r))},t.prototype.reverse=function(){return new t(this.end,this.endControl,this.startControl,this.start)},t}(),Dr=function(t){return t.type===1},UG=function(){function t(e){var r=e.styles,n=e.bounds,A=Ji(r.borderTopLeftRadius,n.width,n.height),a=A[0],i=A[1],o=Ji(r.borderTopRightRadius,n.width,n.height),s=o[0],l=o[1],u=Ji(r.borderBottomRightRadius,n.width,n.height),c=u[0],d=u[1],h=Ji(r.borderBottomLeftRadius,n.width,n.height),f=h[0],p=h[1],g=[];g.push((a+s)/n.width),g.push((f+c)/n.width),g.push((i+p)/n.height),g.push((l+d)/n.height);var m=Math.max.apply(Math,g);m>1&&(a/=m,i/=m,s/=m,l/=m,c/=m,d/=m,f/=m,p/=m);var w=n.width-s,v=n.height-d,B=n.width-c,b=n.height-p,E=r.borderTopWidth,C=r.borderRightWidth,F=r.borderBottomWidth,y=r.borderLeftWidth,x=ft(r.paddingTop,e.bounds.width),Q=ft(r.paddingRight,e.bounds.width),S=ft(r.paddingBottom,e.bounds.width),T=ft(r.paddingLeft,e.bounds.width);this.topLeftBorderDoubleOuterBox=a>0||i>0?yt(n.left+y/3,n.top+E/3,a-y/3,i-E/3,Ze.TOP_LEFT):new Qe(n.left+y/3,n.top+E/3),this.topRightBorderDoubleOuterBox=a>0||i>0?yt(n.left+w,n.top+E/3,s-C/3,l-E/3,Ze.TOP_RIGHT):new Qe(n.left+n.width-C/3,n.top+E/3),this.bottomRightBorderDoubleOuterBox=c>0||d>0?yt(n.left+B,n.top+v,c-C/3,d-F/3,Ze.BOTTOM_RIGHT):new Qe(n.left+n.width-C/3,n.top+n.height-F/3),this.bottomLeftBorderDoubleOuterBox=f>0||p>0?yt(n.left+y/3,n.top+b,f-y/3,p-F/3,Ze.BOTTOM_LEFT):new Qe(n.left+y/3,n.top+n.height-F/3),this.topLeftBorderDoubleInnerBox=a>0||i>0?yt(n.left+y*2/3,n.top+E*2/3,a-y*2/3,i-E*2/3,Ze.TOP_LEFT):new Qe(n.left+y*2/3,n.top+E*2/3),this.topRightBorderDoubleInnerBox=a>0||i>0?yt(n.left+w,n.top+E*2/3,s-C*2/3,l-E*2/3,Ze.TOP_RIGHT):new Qe(n.left+n.width-C*2/3,n.top+E*2/3),this.bottomRightBorderDoubleInnerBox=c>0||d>0?yt(n.left+B,n.top+v,c-C*2/3,d-F*2/3,Ze.BOTTOM_RIGHT):new Qe(n.left+n.width-C*2/3,n.top+n.height-F*2/3),this.bottomLeftBorderDoubleInnerBox=f>0||p>0?yt(n.left+y*2/3,n.top+b,f-y*2/3,p-F*2/3,Ze.BOTTOM_LEFT):new Qe(n.left+y*2/3,n.top+n.height-F*2/3),this.topLeftBorderStroke=a>0||i>0?yt(n.left+y/2,n.top+E/2,a-y/2,i-E/2,Ze.TOP_LEFT):new Qe(n.left+y/2,n.top+E/2),this.topRightBorderStroke=a>0||i>0?yt(n.left+w,n.top+E/2,s-C/2,l-E/2,Ze.TOP_RIGHT):new Qe(n.left+n.width-C/2,n.top+E/2),this.bottomRightBorderStroke=c>0||d>0?yt(n.left+B,n.top+v,c-C/2,d-F/2,Ze.BOTTOM_RIGHT):new Qe(n.left+n.width-C/2,n.top+n.height-F/2),this.bottomLeftBorderStroke=f>0||p>0?yt(n.left+y/2,n.top+b,f-y/2,p-F/2,Ze.BOTTOM_LEFT):new Qe(n.left+y/2,n.top+n.height-F/2),this.topLeftBorderBox=a>0||i>0?yt(n.left,n.top,a,i,Ze.TOP_LEFT):new Qe(n.left,n.top),this.topRightBorderBox=s>0||l>0?yt(n.left+w,n.top,s,l,Ze.TOP_RIGHT):new Qe(n.left+n.width,n.top),this.bottomRightBorderBox=c>0||d>0?yt(n.left+B,n.top+v,c,d,Ze.BOTTOM_RIGHT):new Qe(n.left+n.width,n.top+n.height),this.bottomLeftBorderBox=f>0||p>0?yt(n.left,n.top+b,f,p,Ze.BOTTOM_LEFT):new Qe(n.left,n.top+n.height),this.topLeftPaddingBox=a>0||i>0?yt(n.left+y,n.top+E,Math.max(0,a-y),Math.max(0,i-E),Ze.TOP_LEFT):new Qe(n.left+y,n.top+E),this.topRightPaddingBox=s>0||l>0?yt(n.left+Math.min(w,n.width-C),n.top+E,w>n.width+C?0:Math.max(0,s-C),Math.max(0,l-E),Ze.TOP_RIGHT):new Qe(n.left+n.width-C,n.top+E),this.bottomRightPaddingBox=c>0||d>0?yt(n.left+Math.min(B,n.width-y),n.top+Math.min(v,n.height-F),Math.max(0,c-C),Math.max(0,d-F),Ze.BOTTOM_RIGHT):new Qe(n.left+n.width-C,n.top+n.height-F),this.bottomLeftPaddingBox=f>0||p>0?yt(n.left+y,n.top+Math.min(b,n.height-F),Math.max(0,f-y),Math.max(0,p-F),Ze.BOTTOM_LEFT):new Qe(n.left+y,n.top+n.height-F),this.topLeftContentBox=a>0||i>0?yt(n.left+y+T,n.top+E+x,Math.max(0,a-(y+T)),Math.max(0,i-(E+x)),Ze.TOP_LEFT):new Qe(n.left+y+T,n.top+E+x),this.topRightContentBox=s>0||l>0?yt(n.left+Math.min(w,n.width+y+T),n.top+E+x,w>n.width+y+T?0:s-y+T,l-(E+x),Ze.TOP_RIGHT):new Qe(n.left+n.width-(C+Q),n.top+E+x),this.bottomRightContentBox=c>0||d>0?yt(n.left+Math.min(B,n.width-(y+T)),n.top+Math.min(v,n.height+E+x),Math.max(0,c-(C+Q)),d-(F+S),Ze.BOTTOM_RIGHT):new Qe(n.left+n.width-(C+Q),n.top+n.height-(F+S)),this.bottomLeftContentBox=f>0||p>0?yt(n.left+y+T,n.top+b,Math.max(0,f-(y+T)),p-(F+S),Ze.BOTTOM_LEFT):new Qe(n.left+y+T,n.top+n.height-(F+S))}return t}(),Ze;(function(t){t[t.TOP_LEFT=0]="TOP_LEFT",t[t.TOP_RIGHT=1]="TOP_RIGHT",t[t.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",t[t.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(Ze||(Ze={}));var yt=function(t,e,r,n,A){var a=4*((Math.sqrt(2)-1)/3),i=r*a,o=n*a,s=t+r,l=e+n;switch(A){case Ze.TOP_LEFT:return new al(new Qe(t,l),new Qe(t,l-o),new Qe(s-i,e),new Qe(s,e));case Ze.TOP_RIGHT:return new al(new Qe(t,e),new Qe(t+i,e),new Qe(s,l-o),new Qe(s,l));case Ze.BOTTOM_RIGHT:return new al(new Qe(s,e),new Qe(s,e+o),new Qe(t+i,l),new Qe(t,l));case Ze.BOTTOM_LEFT:default:return new al(new Qe(s,l),new Qe(s-i,l),new Qe(t,e+o),new Qe(t,e))}},iu=function(t){return[t.topLeftBorderBox,t.topRightBorderBox,t.bottomRightBorderBox,t.bottomLeftBorderBox]},TG=function(t){return[t.topLeftContentBox,t.topRightContentBox,t.bottomRightContentBox,t.bottomLeftContentBox]},ou=function(t){return[t.topLeftPaddingBox,t.topRightPaddingBox,t.bottomRightPaddingBox,t.bottomLeftPaddingBox]},IG=function(){function t(e,r,n){this.offsetX=e,this.offsetY=r,this.matrix=n,this.type=0,this.target=6}return t}(),il=function(){function t(e,r){this.path=e,this.target=r,this.type=1}return t}(),LG=function(){function t(e){this.opacity=e,this.type=2,this.target=6}return t}(),DG=function(t){return t.type===0},hC=function(t){return t.type===1},RG=function(t){return t.type===2},Mm=function(t,e){return t.length===e.length?t.some(function(r,n){return r===e[n]}):!1},MG=function(t,e,r,n,A){return t.map(function(a,i){switch(i){case 0:return a.add(e,r);case 1:return a.add(e+n,r);case 2:return a.add(e+n,r+A);case 3:return a.add(e,r+A)}return a})},pC=function(){function t(e){this.element=e,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return t}(),gC=function(){function t(e,r){if(this.container=e,this.parent=r,this.effects=[],this.curves=new UG(this.container),this.container.styles.opacity<1&&this.effects.push(new LG(this.container.styles.opacity)),this.container.styles.transform!==null){var n=this.container.bounds.left+this.container.styles.transformOrigin[0].number,A=this.container.bounds.top+this.container.styles.transformOrigin[1].number,a=this.container.styles.transform;this.effects.push(new IG(n,A,a))}if(this.container.styles.overflowX!==0){var i=iu(this.curves),o=ou(this.curves);Mm(i,o)?this.effects.push(new il(i,6)):(this.effects.push(new il(i,2)),this.effects.push(new il(o,4)))}}return t.prototype.getEffects=function(e){for(var r=[2,3].indexOf(this.container.styles.position)===-1,n=this.parent,A=this.effects.slice(0);n;){var a=n.effects.filter(function(s){return!hC(s)});if(r||n.container.styles.position!==0||!n.parent){if(A.unshift.apply(A,a),r=[2,3].indexOf(n.container.styles.position)===-1,n.container.styles.overflowX!==0){var i=iu(n.curves),o=ou(n.curves);Mm(i,o)||A.unshift(new il(o,6))}}else A.unshift.apply(A,a);n=n.parent}return A.filter(function(s){return Ht(s.target,e)})},t}(),kd=function(t,e,r,n){t.container.elements.forEach(function(A){var a=Ht(A.flags,4),i=Ht(A.flags,2),o=new gC(A,t);Ht(A.styles.display,2048)&&n.push(o);var s=Ht(A.flags,8)?[]:n;if(a||i){var l=a||A.styles.isPositioned()?r:e,u=new pC(o);if(A.styles.isPositioned()||A.styles.opacity<1||A.styles.isTransformed()){var c=A.styles.zIndex.order;if(c<0){var d=0;l.negativeZIndex.some(function(f,p){return c>f.element.container.styles.zIndex.order?(d=p,!1):d>0}),l.negativeZIndex.splice(d,0,u)}else if(c>0){var h=0;l.positiveZIndex.some(function(f,p){return c>=f.element.container.styles.zIndex.order?(h=p+1,!1):h>0}),l.positiveZIndex.splice(h,0,u)}else l.zeroOrAutoZIndexOrTransformedOrOpacity.push(u)}else A.styles.isFloating()?l.nonPositionedFloats.push(u):l.nonPositionedInlineLevel.push(u);kd(o,u,a?u:r,s)}else A.styles.isInlineLevel()?e.inlineLevel.push(o):e.nonInlineLevel.push(o),kd(o,e,r,s);Ht(A.flags,8)&&vC(A,s)})},vC=function(t,e){for(var r=t instanceof Dd?t.start:1,n=t instanceof Dd?t.reversed:!1,A=0;A"u"?t[0]:r},VG=function(t,e,r,n,A){var a=e[0],i=e[1],o=r[0],s=r[1];switch(t){case 2:return[new Qe(Math.round(n.left),Math.round(n.top+i)),new Qe(Math.round(n.left+n.width),Math.round(n.top+i)),new Qe(Math.round(n.left+n.width),Math.round(s+n.top+i)),new Qe(Math.round(n.left),Math.round(s+n.top+i))];case 3:return[new Qe(Math.round(n.left+a),Math.round(n.top)),new Qe(Math.round(n.left+a+o),Math.round(n.top)),new Qe(Math.round(n.left+a+o),Math.round(n.height+n.top)),new Qe(Math.round(n.left+a),Math.round(n.height+n.top))];case 1:return[new Qe(Math.round(n.left+a),Math.round(n.top+i)),new Qe(Math.round(n.left+a+o),Math.round(n.top+i)),new Qe(Math.round(n.left+a+o),Math.round(n.top+i+s)),new Qe(Math.round(n.left+a),Math.round(n.top+i+s))];default:return[new Qe(Math.round(A.left),Math.round(A.top)),new Qe(Math.round(A.left+A.width),Math.round(A.top)),new Qe(Math.round(A.left+A.width),Math.round(A.height+A.top)),new Qe(Math.round(A.left),Math.round(A.height+A.top))]}},$G="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Hm="Hidden Text",zG=function(){function t(e){this._data={},this._document=e}return t.prototype.parseMetrics=function(e,r){var n=this._document.createElement("div"),A=this._document.createElement("img"),a=this._document.createElement("span"),i=this._document.body;n.style.visibility="hidden",n.style.fontFamily=e,n.style.fontSize=r,n.style.margin="0",n.style.padding="0",n.style.whiteSpace="nowrap",i.appendChild(n),A.src=$G,A.width=1,A.height=1,A.style.margin="0",A.style.padding="0",A.style.verticalAlign="baseline",a.style.fontFamily=e,a.style.fontSize=r,a.style.margin="0",a.style.padding="0",a.appendChild(this._document.createTextNode(Hm)),n.appendChild(a),n.appendChild(A);var o=A.offsetTop-a.offsetTop+2;n.removeChild(a),n.appendChild(this._document.createTextNode(Hm)),n.style.lineHeight="normal",A.style.verticalAlign="super";var s=A.offsetTop-n.offsetTop+2;return i.removeChild(n),{baseline:o,middle:s}},t.prototype.getMetrics=function(e,r){var n=e+" "+r;return typeof this._data[n]>"u"&&(this._data[n]=this.parseMetrics(e,r)),this._data[n]},t}(),yC=function(){function t(e,r){this.context=e,this.options=r}return t}(),WG=1e4,_G=function(t){nn(e,t);function e(r,n){var A=t.call(this,r,n)||this;return A._activeEffects=[],A.canvas=n.canvas?n.canvas:document.createElement("canvas"),A.ctx=A.canvas.getContext("2d"),n.canvas||(A.canvas.width=Math.floor(n.width*n.scale),A.canvas.height=Math.floor(n.height*n.scale),A.canvas.style.width=n.width+"px",A.canvas.style.height=n.height+"px"),A.fontMetrics=new zG(document),A.ctx.scale(A.options.scale,A.options.scale),A.ctx.translate(-n.x,-n.y),A.ctx.textBaseline="bottom",A._activeEffects=[],A.context.logger.debug("Canvas renderer initialized ("+n.width+"x"+n.height+") with scale "+n.scale),A}return e.prototype.applyEffects=function(r){for(var n=this;this._activeEffects.length;)this.popEffect();r.forEach(function(A){return n.applyEffect(A)})},e.prototype.applyEffect=function(r){this.ctx.save(),RG(r)&&(this.ctx.globalAlpha=r.opacity),DG(r)&&(this.ctx.translate(r.offsetX,r.offsetY),this.ctx.transform(r.matrix[0],r.matrix[1],r.matrix[2],r.matrix[3],r.matrix[4],r.matrix[5]),this.ctx.translate(-r.offsetX,-r.offsetY)),hC(r)&&(this.path(r.path),this.ctx.clip()),this._activeEffects.push(r)},e.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},e.prototype.renderStack=function(r){return ur(this,void 0,void 0,function(){var n;return rr(this,function(A){switch(A.label){case 0:return n=r.element.container.styles,n.isVisible()?[4,this.renderStackContent(r)]:[3,2];case 1:A.sent(),A.label=2;case 2:return[2]}})})},e.prototype.renderNode=function(r){return ur(this,void 0,void 0,function(){return rr(this,function(n){switch(n.label){case 0:if(Ht(r.container.flags,16))debugger;return r.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(r)]:[3,3];case 1:return n.sent(),[4,this.renderNodeContent(r)];case 2:n.sent(),n.label=3;case 3:return[2]}})})},e.prototype.renderTextWithLetterSpacing=function(r,n,A){var a=this;if(n===0)this.ctx.fillText(r.text,r.bounds.left,r.bounds.top+A);else{var i=Yh(r.text);i.reduce(function(o,s){return a.ctx.fillText(s,o,r.bounds.top+A),o+a.ctx.measureText(s).width},r.bounds.left)}},e.prototype.createFontStyle=function(r){var n=r.fontVariant.filter(function(i){return i==="normal"||i==="small-caps"}).join(""),A=JG(r.fontFamily).join(", "),a=ls(r.fontSize)?""+r.fontSize.number+r.fontSize.unit:r.fontSize.number+"px";return[[r.fontStyle,n,r.fontWeight,a,A].join(" "),A,a]},e.prototype.renderTextNode=function(r,n){return ur(this,void 0,void 0,function(){var A,a,i,o,s,l,u,c,d=this;return rr(this,function(h){return A=this.createFontStyle(n),a=A[0],i=A[1],o=A[2],this.ctx.font=a,this.ctx.direction=n.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",s=this.fontMetrics.getMetrics(i,o),l=s.baseline,u=s.middle,c=n.paintOrder,r.textBounds.forEach(function(f){c.forEach(function(p){switch(p){case 0:d.ctx.fillStyle=Gt(n.color),d.renderTextWithLetterSpacing(f,n.letterSpacing,l);var g=n.textShadow;g.length&&f.text.trim().length&&(g.slice(0).reverse().forEach(function(m){d.ctx.shadowColor=Gt(m.color),d.ctx.shadowOffsetX=m.offsetX.number*d.options.scale,d.ctx.shadowOffsetY=m.offsetY.number*d.options.scale,d.ctx.shadowBlur=m.blur.number,d.renderTextWithLetterSpacing(f,n.letterSpacing,l)}),d.ctx.shadowColor="",d.ctx.shadowOffsetX=0,d.ctx.shadowOffsetY=0,d.ctx.shadowBlur=0),n.textDecorationLine.length&&(d.ctx.fillStyle=Gt(n.textDecorationColor||n.color),n.textDecorationLine.forEach(function(m){switch(m){case 1:d.ctx.fillRect(f.bounds.left,Math.round(f.bounds.top+l),f.bounds.width,1);break;case 2:d.ctx.fillRect(f.bounds.left,Math.round(f.bounds.top),f.bounds.width,1);break;case 3:d.ctx.fillRect(f.bounds.left,Math.ceil(f.bounds.top+u),f.bounds.width,1);break}}));break;case 1:n.webkitTextStrokeWidth&&f.text.trim().length&&(d.ctx.strokeStyle=Gt(n.webkitTextStrokeColor),d.ctx.lineWidth=n.webkitTextStrokeWidth,d.ctx.lineJoin=window.chrome?"miter":"round",d.ctx.strokeText(f.text,f.bounds.left,f.bounds.top+l)),d.ctx.strokeStyle="",d.ctx.lineWidth=0,d.ctx.lineJoin="miter";break}})}),[2]})})},e.prototype.renderReplacedElement=function(r,n,A){if(A&&r.intrinsicWidth>0&&r.intrinsicHeight>0){var a=su(r),i=ou(n);this.path(i),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(A,0,0,r.intrinsicWidth,r.intrinsicHeight,a.left,a.top,a.width,a.height),this.ctx.restore()}},e.prototype.renderNodeContent=function(r){return ur(this,void 0,void 0,function(){var n,A,a,i,o,s,w,w,l,u,c,d,B,h,f,b,p,g,m,w,v,B,b;return rr(this,function(E){switch(E.label){case 0:this.applyEffects(r.getEffects(4)),n=r.container,A=r.curves,a=n.styles,i=0,o=n.textNodes,E.label=1;case 1:return i0&&U>0&&(F=a.ctx.createPattern(b,"repeat"),a.renderRepeat(x,F,R,M))):RN(u)&&(y=Lf(r,n,[null,null,null]),x=y[0],Q=y[1],S=y[2],T=y[3],U=y[4],L=u.position.length===0?[Wh]:u.position,R=ft(L[0],T),M=ft(L[L.length-1],U),H=UN(u,R,M,T,U),k=H[0],N=H[1],k>0&&N>0&&(P=a.ctx.createRadialGradient(Q+R,S+M,0,Q+R,S+M,k),am(u.stops,k*2).forEach(function(ie){return P.addColorStop(ie.stop,Gt(ie.color))}),a.path(x),a.ctx.fillStyle=P,k!==N?(K=r.bounds.left+.5*r.bounds.width,W=r.bounds.top+.5*r.bounds.height,X=N/k,Z=1/X,a.ctx.save(),a.ctx.translate(K,W),a.ctx.transform(1,0,0,X,0,0),a.ctx.translate(-K,-W),a.ctx.fillRect(Q,Z*(S-W)+W,T,U*Z),a.ctx.restore()):a.ctx.fill())),Ae.label=6;case 6:return n--,[2]}})},a=this,i=0,o=r.styles.backgroundImage.slice(0).reverse(),l.label=1;case 1:return i0?u.style!==2?[3,5]:[4,this.renderDashedDottedBorder(u.color,u.width,o,r.curves,2)]:[3,11]):[3,13];case 4:return d.sent(),[3,11];case 5:return u.style!==3?[3,7]:[4,this.renderDashedDottedBorder(u.color,u.width,o,r.curves,3)];case 6:return d.sent(),[3,11];case 7:return u.style!==4?[3,9]:[4,this.renderDoubleBorder(u.color,u.width,o,r.curves)];case 8:return d.sent(),[3,11];case 9:return[4,this.renderSolidBorder(u.color,o,r.curves)];case 10:d.sent(),d.label=11;case 11:o++,d.label=12;case 12:return s++,[3,3];case 13:return[2]}})})},e.prototype.renderDashedDottedBorder=function(r,n,A,a,i){return ur(this,void 0,void 0,function(){var o,s,l,u,c,d,h,f,p,g,m,w,v,B,b,E,b,E;return rr(this,function(C){return this.ctx.save(),o=PG(a,A),s=Om(a,A),i===2&&(this.path(s),this.ctx.clip()),Dr(s[0])?(l=s[0].start.x,u=s[0].start.y):(l=s[0].x,u=s[0].y),Dr(s[1])?(c=s[1].end.x,d=s[1].end.y):(c=s[1].x,d=s[1].y),A===0||A===2?h=Math.abs(l-c):h=Math.abs(u-d),this.ctx.beginPath(),i===3?this.formatPath(o):this.formatPath(s.slice(0,2)),f=n<3?n*3:n*2,p=n<3?n*2:n,i===3&&(f=n,p=n),g=!0,h<=f*2?g=!1:h<=f*2+p?(m=h/(2*f+p),f*=m,p*=m):(w=Math.floor((h+p)/(f+p)),v=(h-w*f)/(w-1),B=(h-(w+1)*f)/w,p=B<=0||Math.abs(p-v)"u"||!(Symbol.iterator in Object(t)))){var r=[],n=!0,A=!1,a=void 0;try{for(var i=t[Symbol.iterator](),o;!(n=(o=i.next()).done)&&(r.push(o.value),!(e&&r.length===e));n=!0);}catch(s){A=!0,a=s}finally{try{!n&&i.return!=null&&i.return()}finally{if(A)throw a}}return r}}function sV(t,e){if(t){if(typeof t=="string")return Pm(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(r);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Pm(t,e)}}function Pm(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r0&&arguments[0]!==void 0?arguments[0]:{},r=e.type,n=e.quality,A=O.useState(null),a=km(A,2),i=a[0],o=a[1],s=O.useState(null),l=km(s,2),u=l[0],c=l[1],d=function(f){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!f)throw new Error("You should provide correct html node.");return nV(f,p).then(function(g){var m=document.createElement("canvas"),w=m.getContext("2d"),v=0,B=0,b=g.width,E=g.height;m.width=b,m.height=E,w.drawImage(g,B,v);var C=m.toDataURL(r,n);return o(C),C}).catch(c)};return[i,d,{error:u}]},cV="tippy-box",BC="tippy-content",fV="tippy-backdrop",wC="tippy-arrow",CC="tippy-svg-arrow",FA={passive:!0,capture:!0},bC=function(){return document.body};function Df(t,e,r){if(Array.isArray(t)){var n=t[e];return n??(Array.isArray(r)?r[e]:r)}return t}function Jh(t,e){var r={}.toString.call(t);return r.indexOf("[object")===0&&r.indexOf(e+"]")>-1}function EC(t,e){return typeof t=="function"?t.apply(void 0,e):t}function Nm(t,e){if(e===0)return t;var r;return function(n){clearTimeout(r),r=setTimeout(function(){t(n)},e)}}function dV(t){return t.split(/\s+/).filter(Boolean)}function Ea(t){return[].concat(t)}function Km(t,e){t.indexOf(e)===-1&&t.push(e)}function hV(t){return t.filter(function(e,r){return t.indexOf(e)===r})}function pV(t){return t.split("-")[0]}function lu(t){return[].slice.call(t)}function Gm(t){return Object.keys(t).reduce(function(e,r){return t[r]!==void 0&&(e[r]=t[r]),e},{})}function go(){return document.createElement("div")}function Dc(t){return["Element","Fragment"].some(function(e){return Jh(t,e)})}function gV(t){return Jh(t,"NodeList")}function vV(t){return Jh(t,"MouseEvent")}function mV(t){return!!(t&&t._tippy&&t._tippy.reference===t)}function yV(t){return Dc(t)?[t]:gV(t)?lu(t):Array.isArray(t)?t:lu(document.querySelectorAll(t))}function Rf(t,e){t.forEach(function(r){r&&(r.style.transitionDuration=e+"ms")})}function Vm(t,e){t.forEach(function(r){r&&r.setAttribute("data-state",e)})}function BV(t){var e,r=Ea(t),n=r[0];return n!=null&&(e=n.ownerDocument)!=null&&e.body?n.ownerDocument:document}function wV(t,e){var r=e.clientX,n=e.clientY;return t.every(function(A){var a=A.popperRect,i=A.popperState,o=A.props,s=o.interactiveBorder,l=pV(i.placement),u=i.modifiersData.offset;if(!u)return!0;var c=l==="bottom"?u.top.y:0,d=l==="top"?u.bottom.y:0,h=l==="right"?u.left.x:0,f=l==="left"?u.right.x:0,p=a.top-n+c>s,g=n-a.bottom-d>s,m=a.left-r+h>s,w=r-a.right-f>s;return p||g||m||w})}function Mf(t,e,r){var n=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(A){t[n](A,r)})}function $m(t,e){for(var r=e;r;){var n;if(t.contains(r))return!0;r=r.getRootNode==null||(n=r.getRootNode())==null?void 0:n.host}return!1}var hn={isTouch:!1},zm=0;function CV(){hn.isTouch||(hn.isTouch=!0,window.performance&&document.addEventListener("mousemove",xC))}function xC(){var t=performance.now();t-zm<20&&(hn.isTouch=!1,document.removeEventListener("mousemove",xC)),zm=t}function bV(){var t=document.activeElement;if(mV(t)){var e=t._tippy;t.blur&&!e.state.isVisible&&t.blur()}}function EV(){document.addEventListener("touchstart",CV,FA),window.addEventListener("blur",bV)}var xV=typeof window<"u"&&typeof document<"u",FV=xV?!!window.msCrypto:!1,QV={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},SV={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},Zr=Object.assign({appendTo:bC,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},QV,SV),UV=Object.keys(Zr),TV=function(e){var r=Object.keys(e);r.forEach(function(n){Zr[n]=e[n]})};function FC(t){var e=t.plugins||[],r=e.reduce(function(n,A){var a=A.name,i=A.defaultValue;if(a){var o;n[a]=t[a]!==void 0?t[a]:(o=Zr[a])!=null?o:i}return n},{});return Object.assign({},t,r)}function IV(t,e){var r=e?Object.keys(FC(Object.assign({},Zr,{plugins:e}))):UV,n=r.reduce(function(A,a){var i=(t.getAttribute("data-tippy-"+a)||"").trim();if(!i)return A;if(a==="content")A[a]=i;else try{A[a]=JSON.parse(i)}catch{A[a]=i}return A},{});return n}function Wm(t,e){var r=Object.assign({},e,{content:EC(e.content,[t])},e.ignoreAttributes?{}:IV(t,e.plugins));return r.aria=Object.assign({},Zr.aria,r.aria),r.aria={expanded:r.aria.expanded==="auto"?e.interactive:r.aria.expanded,content:r.aria.content==="auto"?e.interactive?null:"describedby":r.aria.content},r}var LV=function(){return"innerHTML"};function Pd(t,e){t[LV()]=e}function _m(t){var e=go();return t===!0?e.className=wC:(e.className=CC,Dc(t)?e.appendChild(t):Pd(e,t)),e}function Xm(t,e){Dc(e.content)?(Pd(t,""),t.appendChild(e.content)):typeof e.content!="function"&&(e.allowHTML?Pd(t,e.content):t.textContent=e.content)}function Nd(t){var e=t.firstElementChild,r=lu(e.children);return{box:e,content:r.find(function(n){return n.classList.contains(BC)}),arrow:r.find(function(n){return n.classList.contains(wC)||n.classList.contains(CC)}),backdrop:r.find(function(n){return n.classList.contains(fV)})}}function QC(t){var e=go(),r=go();r.className=cV,r.setAttribute("data-state","hidden"),r.setAttribute("tabindex","-1");var n=go();n.className=BC,n.setAttribute("data-state","hidden"),Xm(n,t.props),e.appendChild(r),r.appendChild(n),A(t.props,t.props);function A(a,i){var o=Nd(e),s=o.box,l=o.content,u=o.arrow;i.theme?s.setAttribute("data-theme",i.theme):s.removeAttribute("data-theme"),typeof i.animation=="string"?s.setAttribute("data-animation",i.animation):s.removeAttribute("data-animation"),i.inertia?s.setAttribute("data-inertia",""):s.removeAttribute("data-inertia"),s.style.maxWidth=typeof i.maxWidth=="number"?i.maxWidth+"px":i.maxWidth,i.role?s.setAttribute("role",i.role):s.removeAttribute("role"),(a.content!==i.content||a.allowHTML!==i.allowHTML)&&Xm(l,t.props),i.arrow?u?a.arrow!==i.arrow&&(s.removeChild(u),s.appendChild(_m(i.arrow))):s.appendChild(_m(i.arrow)):u&&s.removeChild(u)}return{popper:e,onUpdate:A}}QC.$$tippy=!0;var DV=1,ll=[],Of=[];function RV(t,e){var r=Wm(t,Object.assign({},Zr,FC(Gm(e)))),n,A,a,i=!1,o=!1,s=!1,l=!1,u,c,d,h=[],f=Nm(ae,r.interactiveDebounce),p,g=DV++,m=null,w=hV(r.plugins),v={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},B={id:g,reference:t,popper:go(),popperInstance:m,props:r,state:v,plugins:w,clearDelayTimeouts:G,setProps:J,setContent:j,show:ne,hide:ce,hideWithInteractivity:Y,enable:$,disable:D,unmount:de,destroy:Te};if(!r.render)return B;var b=r.render(B),E=b.popper,C=b.onUpdate;E.setAttribute("data-tippy-root",""),E.id="tippy-"+B.id,B.popper=E,t._tippy=B,E._tippy=B;var F=w.map(function(V){return V.fn(B)}),y=t.hasAttribute("aria-expanded");return ee(),N(),M(),H("onCreate",[B]),r.showOnCreate&&we(),E.addEventListener("mouseenter",function(){B.props.interactive&&B.state.isVisible&&B.clearDelayTimeouts()}),E.addEventListener("mouseleave",function(){B.props.interactive&&B.props.trigger.indexOf("mouseenter")>=0&&U().addEventListener("mousemove",f)}),B;function x(){var V=B.props.touch;return Array.isArray(V)?V:[V,0]}function Q(){return x()[0]==="hold"}function S(){var V;return!!((V=B.props.render)!=null&&V.$$tippy)}function T(){return p||t}function U(){var V=T().parentNode;return V?BV(V):document}function L(){return Nd(E)}function R(V){return B.state.isMounted&&!B.state.isVisible||hn.isTouch||u&&u.type==="focus"?0:Df(B.props.delay,V?0:1,Zr.delay)}function M(V){V===void 0&&(V=!1),E.style.pointerEvents=B.props.interactive&&!V?"":"none",E.style.zIndex=""+B.props.zIndex}function H(V,oe,fe){if(fe===void 0&&(fe=!0),F.forEach(function(Be){Be[V]&&Be[V].apply(Be,oe)}),fe){var pe;(pe=B.props)[V].apply(pe,oe)}}function k(){var V=B.props.aria;if(V.content){var oe="aria-"+V.content,fe=E.id,pe=Ea(B.props.triggerTarget||t);pe.forEach(function(Be){var Oe=Be.getAttribute(oe);if(B.state.isVisible)Be.setAttribute(oe,Oe?Oe+" "+fe:fe);else{var Ne=Oe&&Oe.replace(fe,"").trim();Ne?Be.setAttribute(oe,Ne):Be.removeAttribute(oe)}})}}function N(){if(!(y||!B.props.aria.expanded)){var V=Ea(B.props.triggerTarget||t);V.forEach(function(oe){B.props.interactive?oe.setAttribute("aria-expanded",B.state.isVisible&&oe===T()?"true":"false"):oe.removeAttribute("aria-expanded")})}}function P(){U().removeEventListener("mousemove",f),ll=ll.filter(function(V){return V!==f})}function K(V){if(!(hn.isTouch&&(s||V.type==="mousedown"))){var oe=V.composedPath&&V.composedPath()[0]||V.target;if(!(B.props.interactive&&$m(E,oe))){if(Ea(B.props.triggerTarget||t).some(function(fe){return $m(fe,oe)})){if(hn.isTouch||B.state.isVisible&&B.props.trigger.indexOf("click")>=0)return}else H("onClickOutside",[B,V]);B.props.hideOnClick===!0&&(B.clearDelayTimeouts(),B.hide(),o=!0,setTimeout(function(){o=!1}),B.state.isMounted||Ae())}}}function W(){s=!0}function X(){s=!1}function Z(){var V=U();V.addEventListener("mousedown",K,!0),V.addEventListener("touchend",K,FA),V.addEventListener("touchstart",X,FA),V.addEventListener("touchmove",W,FA)}function Ae(){var V=U();V.removeEventListener("mousedown",K,!0),V.removeEventListener("touchend",K,FA),V.removeEventListener("touchstart",X,FA),V.removeEventListener("touchmove",W,FA)}function ie(V,oe){z(V,function(){!B.state.isVisible&&E.parentNode&&E.parentNode.contains(E)&&oe()})}function re(V,oe){z(V,oe)}function z(V,oe){var fe=L().box;function pe(Be){Be.target===fe&&(Mf(fe,"remove",pe),oe())}if(V===0)return oe();Mf(fe,"remove",c),Mf(fe,"add",pe),c=pe}function q(V,oe,fe){fe===void 0&&(fe=!1);var pe=Ea(B.props.triggerTarget||t);pe.forEach(function(Be){Be.addEventListener(V,oe,fe),h.push({node:Be,eventType:V,handler:oe,options:fe})})}function ee(){Q()&&(q("touchstart",te,{passive:!0}),q("touchend",le,{passive:!0})),dV(B.props.trigger).forEach(function(V){if(V!=="manual")switch(q(V,te),V){case"mouseenter":q("mouseleave",le);break;case"focus":q(FV?"focusout":"blur",ve);break;case"focusin":q("focusout",ve);break}})}function se(){h.forEach(function(V){var oe=V.node,fe=V.eventType,pe=V.handler,Be=V.options;oe.removeEventListener(fe,pe,Be)}),h=[]}function te(V){var oe,fe=!1;if(!(!B.state.isEnabled||ge(V)||o)){var pe=((oe=u)==null?void 0:oe.type)==="focus";u=V,p=V.currentTarget,N(),!B.state.isVisible&&vV(V)&&ll.forEach(function(Be){return Be(V)}),V.type==="click"&&(B.props.trigger.indexOf("mouseenter")<0||i)&&B.props.hideOnClick!==!1&&B.state.isVisible?fe=!0:we(V),V.type==="click"&&(i=!fe),fe&&!pe&&_(V)}}function ae(V){var oe=V.target,fe=T().contains(oe)||E.contains(oe);if(!(V.type==="mousemove"&&fe)){var pe=Ce().concat(E).map(function(Be){var Oe,Ne=Be._tippy,ut=(Oe=Ne.popperInstance)==null?void 0:Oe.state;return ut?{popperRect:Be.getBoundingClientRect(),popperState:ut,props:r}:null}).filter(Boolean);wV(pe,V)&&(P(),_(V))}}function le(V){var oe=ge(V)||B.props.trigger.indexOf("click")>=0&&i;if(!oe){if(B.props.interactive){B.hideWithInteractivity(V);return}_(V)}}function ve(V){B.props.trigger.indexOf("focusin")<0&&V.target!==T()||B.props.interactive&&V.relatedTarget&&E.contains(V.relatedTarget)||_(V)}function ge(V){return hn.isTouch?Q()!==V.type.indexOf("touch")>=0:!1}function he(){ye();var V=B.props,oe=V.popperOptions,fe=V.placement,pe=V.offset,Be=V.getReferenceClientRect,Oe=V.moveTransition,Ne=S()?Nd(E).arrow:null,ut=Be?{getBoundingClientRect:Be,contextElement:Be.contextElement||T()}:t,Ge={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(Je){var ze=Je.state;if(S()){var De=L(),nt=De.box;["placement","reference-hidden","escaped"].forEach(function(Rt){Rt==="placement"?nt.setAttribute("data-placement",ze.placement):ze.attributes.popper["data-popper-"+Rt]?nt.setAttribute("data-"+Rt,""):nt.removeAttribute("data-"+Rt)}),ze.attributes.popper={}}}},He=[{name:"offset",options:{offset:pe}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!Oe}},Ge];S()&&Ne&&He.push({name:"arrow",options:{element:Ne,padding:3}}),He.push.apply(He,(oe==null?void 0:oe.modifiers)||[]),B.popperInstance=e0(ut,E,Object.assign({},oe,{placement:fe,onFirstUpdate:d,modifiers:He}))}function ye(){B.popperInstance&&(B.popperInstance.destroy(),B.popperInstance=null)}function Se(){var V=B.props.appendTo,oe,fe=T();B.props.interactive&&V===bC||V==="parent"?oe=fe.parentNode:oe=EC(V,[fe]),oe.contains(E)||oe.appendChild(E),B.state.isMounted=!0,he()}function Ce(){return lu(E.querySelectorAll("[data-tippy-root]"))}function we(V){B.clearDelayTimeouts(),V&&H("onTrigger",[B,V]),Z();var oe=R(!0),fe=x(),pe=fe[0],Be=fe[1];hn.isTouch&&pe==="hold"&&Be&&(oe=Be),oe?n=setTimeout(function(){B.show()},oe):B.show()}function _(V){if(B.clearDelayTimeouts(),H("onUntrigger",[B,V]),!B.state.isVisible){Ae();return}if(!(B.props.trigger.indexOf("mouseenter")>=0&&B.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(V.type)>=0&&i)){var oe=R(!1);oe?A=setTimeout(function(){B.state.isVisible&&B.hide()},oe):a=requestAnimationFrame(function(){B.hide()})}}function $(){B.state.isEnabled=!0}function D(){B.hide(),B.state.isEnabled=!1}function G(){clearTimeout(n),clearTimeout(A),cancelAnimationFrame(a)}function J(V){if(!B.state.isDestroyed){H("onBeforeUpdate",[B,V]),se();var oe=B.props,fe=Wm(t,Object.assign({},oe,Gm(V),{ignoreAttributes:!0}));B.props=fe,ee(),oe.interactiveDebounce!==fe.interactiveDebounce&&(P(),f=Nm(ae,fe.interactiveDebounce)),oe.triggerTarget&&!fe.triggerTarget?Ea(oe.triggerTarget).forEach(function(pe){pe.removeAttribute("aria-expanded")}):fe.triggerTarget&&t.removeAttribute("aria-expanded"),N(),M(),C&&C(oe,fe),B.popperInstance&&(he(),Ce().forEach(function(pe){requestAnimationFrame(pe._tippy.popperInstance.forceUpdate)})),H("onAfterUpdate",[B,V])}}function j(V){B.setProps({content:V})}function ne(){var V=B.state.isVisible,oe=B.state.isDestroyed,fe=!B.state.isEnabled,pe=hn.isTouch&&!B.props.touch,Be=Df(B.props.duration,0,Zr.duration);if(!(V||oe||fe||pe)&&!T().hasAttribute("disabled")&&(H("onShow",[B],!1),B.props.onShow(B)!==!1)){if(B.state.isVisible=!0,S()&&(E.style.visibility="visible"),M(),Z(),B.state.isMounted||(E.style.transition="none"),S()){var Oe=L(),Ne=Oe.box,ut=Oe.content;Rf([Ne,ut],0)}d=function(){var He;if(!(!B.state.isVisible||l)){if(l=!0,E.offsetHeight,E.style.transition=B.props.moveTransition,S()&&B.props.animation){var pt=L(),Je=pt.box,ze=pt.content;Rf([Je,ze],Be),Vm([Je,ze],"visible")}k(),N(),Km(Of,B),(He=B.popperInstance)==null||He.forceUpdate(),H("onMount",[B]),B.props.animation&&S()&&re(Be,function(){B.state.isShown=!0,H("onShown",[B])})}},Se()}}function ce(){var V=!B.state.isVisible,oe=B.state.isDestroyed,fe=!B.state.isEnabled,pe=Df(B.props.duration,1,Zr.duration);if(!(V||oe||fe)&&(H("onHide",[B],!1),B.props.onHide(B)!==!1)){if(B.state.isVisible=!1,B.state.isShown=!1,l=!1,i=!1,S()&&(E.style.visibility="hidden"),P(),Ae(),M(!0),S()){var Be=L(),Oe=Be.box,Ne=Be.content;B.props.animation&&(Rf([Oe,Ne],pe),Vm([Oe,Ne],"hidden"))}k(),N(),B.props.animation?S()&&ie(pe,B.unmount):B.unmount()}}function Y(V){U().addEventListener("mousemove",f),Km(ll,f),f(V)}function de(){B.state.isVisible&&B.hide(),B.state.isMounted&&(ye(),Ce().forEach(function(V){V._tippy.unmount()}),E.parentNode&&E.parentNode.removeChild(E),Of=Of.filter(function(V){return V!==B}),B.state.isMounted=!1,H("onHidden",[B]))}function Te(){B.state.isDestroyed||(B.clearDelayTimeouts(),B.unmount(),se(),delete t._tippy,B.state.isDestroyed=!0,H("onDestroy",[B]))}}function us(t,e){e===void 0&&(e={});var r=Zr.plugins.concat(e.plugins||[]);EV();var n=Object.assign({},e,{plugins:r}),A=yV(t),a=A.reduce(function(i,o){var s=o&&RV(o,n);return s&&i.push(s),i},[]);return Dc(t)?a[0]:a}us.defaultProps=Zr;us.setDefaultProps=TV;us.currentInput=hn;Object.assign({},Wy,{effect:function(e){var r=e.state,n={popper:{position:r.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(r.elements.popper.style,n.popper),r.styles=n,r.elements.arrow&&Object.assign(r.elements.arrow.style,n.arrow)}});us.setDefaultProps({render:QC});const SC=({toggles:t,onToggle:e,simpleCategories:r,edgeType:n,colorFunc:A,elements:a,edges:i,legendToggle:o,legendNodeLabel:s,legendEdgeLabel:l,order:u,uniqueCat:c})=>{const d=Array.from(new Set(i.map(f=>o?o(f):f.category?f.category:void 0))),h=u||Array.from(new Set(r));return console.log(t),I.jsxs("div",{style:{bottom:"10px",zIndex:1e3,backgroundColor:"white",borderRadius:"5px",width:"225px",padding:"5px"},children:[I.jsx(Bt,{style:{fontSize:"18px",margin:"3px",fontFamily:"Arial"},children:s||"Node Type"}),c?c.map(f=>{let p="grey",g="";return a.forEach(m=>{h.forEach(w=>{if(A&&o&&o(m)===w&&m.category===f){p=A(m),g=w;return}})}),I.jsxs("div",{style:{display:"flex",alignItems:"center",marginBottom:"4px"},children:[I.jsx(gl,{checked:t[f],onChange:()=>e(f),color:"primary",size:"small",style:{padding:0}}),I.jsxs(Bt,{variant:"body2",style:{color:p,marginLeft:"4px",cursor:"pointer",fontSize:"14px",fontFamily:"Arial"},onClick:()=>e(f),children:[g," ",o?"(":null,o?f:null,o?")":null]})]},f)}):h.map(f=>{let p="grey",g="";return a.forEach(m=>{A&&o&&o(m)===f&&(p=A(m),g=m.category)}),I.jsxs("div",{style:{display:"flex",alignItems:"center",marginBottom:"4px"},children:[I.jsx(gl,{checked:t[f],onChange:()=>e(f),color:"primary",size:"small",style:{padding:0}}),I.jsxs(Bt,{variant:"body2",style:{color:p,marginLeft:"4px",cursor:"pointer",fontSize:"14px",fontFamily:"Arial"},onClick:()=>e(f),children:[f," ",o?"(":null,o?g:null,o?")":null]})]},f)}),n&&d!==null?I.jsxs("div",{children:[I.jsx(Bt,{style:{fontSize:"18px",margin:"3px",fontFamily:"Arial"},children:l||"Edge Type"}),d.map(f=>{if(f===void 0)return null;let p="grey";return i.forEach(g=>{(A&&o&&o(g)===f||A&&g.category&&g.category===f)&&(p=A(g))}),I.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[I.jsx(gl,{checked:t[f],onChange:()=>e(f),color:"primary",size:"small",style:{padding:0}}),I.jsx(Bt,{variant:"body2",style:{color:p,marginLeft:"4px",cursor:"pointer",fontSize:"14px",fontFamily:"Arial"},onClick:()=>e(f),children:f})]},f)})]}):null]})};SC.__docgenInfo={description:"",methods:[],displayName:"Legend",props:{toggles:{required:!0,tsType:{name:"signature",type:"object",raw:"{ [key: string]: boolean }",signature:{properties:[{key:{name:"string"},value:{name:"boolean",required:!0}}]}},description:""},onToggle:{required:!0,tsType:{name:"signature",type:"function",raw:"(category: string) => void",signature:{arguments:[{type:{name:"string"},name:"category"}],return:{name:"void"}}},description:""},simpleCategories:{required:!0,tsType:{name:"Array",elements:[{name:"string"}],raw:"string[]"},description:""},edgeType:{required:!0,tsType:{name:"boolean"},description:""},colorFunc:{required:!1,tsType:{name:"signature",type:"function",raw:"(node: Node | Edge) => string",signature:{arguments:[{type:{name:"union",raw:"Node | Edge",elements:[{name:"Node"},{name:"Edge"}]},name:"node"}],return:{name:"string"}}},description:""},elements:{required:!0,tsType:{name:"Array",elements:[{name:"Node"}],raw:"Node[]"},description:""},edges:{required:!0,tsType:{name:"Array",elements:[{name:"Edge"}],raw:"Edge[]"},description:""},legendToggle:{required:!1,tsType:{name:"signature",type:"function",raw:"(node: Node | Edge) => string",signature:{arguments:[{type:{name:"union",raw:"Node | Edge",elements:[{name:"Node"},{name:"Edge"}]},name:"node"}],return:{name:"string"}}},description:""},legendNodeLabel:{required:!1,tsType:{name:"string"},description:""},legendEdgeLabel:{required:!1,tsType:{name:"string"},description:""},order:{required:!1,tsType:{name:"Array",elements:[{name:"string"}],raw:"string[]"},description:""},uniqueCat:{required:!1,tsType:{name:"Array",elements:[{name:"string"}],raw:"string[]"},description:""}}};const UC=({scales:t,width:e,scaleLabel:r})=>{var d,h;if(t.length===0)return null;const n=[...t].sort((f,p)=>f-p),A=n[0],a=n[n.length-1],i=n[Math.floor(n.length/4)],o=n[Math.floor(n.length*3/4)],s=e.toString();let l=((h=(d=s.match(/=>\s*(.*)/))==null?void 0:d[1])==null?void 0:h.trim().replace("Math.",""))||s;r&&(l=r);const u={top:"20vh",zIndex:1e3,backgroundColor:"white",padding:"10px",borderRadius:"5px",fontSize:"13px",width:"225px",textAlign:"left"},c={display:"flex",alignItems:"center",justifyContent:"left",marginBottom:"5px"};return I.jsx("div",{style:u,children:I.jsxs(I.Fragment,{children:[I.jsxs(Bt,{variant:"body2",component:"h4",style:{margin:"3px 0",fontSize:"16px",fontFamily:"Arial"},children:["Edge Weight Scale:",I.jsx(IA,{title:l,color:"primary",sx:{ml:.5},placement:"bottom",children:I.jsx(U0,{fontSize:"small",style:{marginBottom:"-4.5px",marginTop:"-7px"}})})]}),I.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"left",marginTop:"10px"},children:[I.jsxs("div",{style:c,children:[I.jsx("div",{style:{width:e(A),height:"10px",backgroundColor:"black",display:"inline-block"}}),I.jsx(Bt,{variant:"body2",style:{marginLeft:"10px",fontSize:"14px",fontFamily:"Arial"},children:A.toFixed(2)})]}),I.jsxs("div",{style:c,children:[I.jsx("div",{style:{width:e(i),height:"10px",backgroundColor:"black",display:"inline-block"}}),I.jsx(Bt,{variant:"body2",style:{marginLeft:"10px",fontSize:"14px",fontFamily:"Arial"},children:i.toFixed(2)})]}),I.jsxs("div",{style:c,children:[I.jsx("div",{style:{width:e(o),height:"10px",backgroundColor:"black",display:"inline-block"}}),I.jsx(Bt,{variant:"body2",style:{marginLeft:"10px",fontSize:"14px",fontFamily:"Arial"},children:o.toFixed(2)})]}),I.jsxs("div",{style:c,children:[I.jsx("div",{style:{width:e(a),height:"10px",backgroundColor:"black",display:"inline-block"}}),I.jsx(Bt,{variant:"body2",style:{marginLeft:"10px",fontSize:"14px",fontFamily:"Arial"},children:a.toFixed(2)})]})]})]})})};UC.__docgenInfo={description:"",methods:[],displayName:"ScaleLegend",props:{scales:{required:!0,tsType:{name:"Array",elements:[{name:"number"}],raw:"number[]"},description:""},width:{required:!0,tsType:{name:"signature",type:"function",raw:"(n: number) => number",signature:{arguments:[{type:{name:"number"},name:"n"}],return:{name:"number"}}},description:""},scaleLabel:{required:!1,tsType:{name:"string"},description:""}}};const MV=vt([I.jsx("path",{d:"M6.41 6 5 7.41 9.58 12 5 16.59 6.41 18l6-6z"},"0"),I.jsx("path",{d:"m13 6-1.41 1.41L16.17 12l-4.58 4.59L13 18l6-6z"},"1")],"KeyboardDoubleArrowRight"),OV=vt([I.jsx("path",{d:"M17.59 18 19 16.59 14.42 12 19 7.41 17.59 6l-6 6z"},"0"),I.jsx("path",{d:"m11 18 1.41-1.41L7.83 12l4.58-4.59L11 6l-6 6z"},"1")],"KeyboardDoubleArrowLeft"),HV=vt(I.jsx("path",{d:"M10.59 9.17 5.41 4 4 5.41l5.17 5.17zM14.5 4l2.04 2.04L4 18.59 5.41 20 17.96 7.46 20 9.5V4zm.33 9.41-1.41 1.41 3.13 3.13L14.5 20H20v-5.5l-2.04 2.04z"}),"Shuffle"),kV=vt(I.jsx("path",{d:"M17.63 5.84C17.27 5.33 16.67 5 16 5L5 5.01C3.9 5.01 3 5.9 3 7v10c0 1.1.9 1.99 2 1.99L16 19c.67 0 1.27-.33 1.63-.84L22 12z"}),"Label"),PV=vt(I.jsx("path",{d:"m3.25 2.75 17 17L19 21l-2-2H5c-1.1 0-2-.9-2-2V7c0-.55.23-1.05.59-1.41L2 4zM22 12l-4.37-6.16C17.27 5.33 16.67 5 16 5H8l11 11z"}),"LabelOff"),NV=vt([I.jsx("path",{d:"M21 8c-1.45 0-2.26 1.44-1.93 2.51l-3.55 3.56c-.3-.09-.74-.09-1.04 0l-2.55-2.55C12.27 10.45 11.46 9 10 9c-1.45 0-2.27 1.44-1.93 2.52l-4.56 4.55C2.44 15.74 1 16.55 1 18c0 1.1.9 2 2 2 1.45 0 2.26-1.44 1.93-2.51l4.55-4.56c.3.09.74.09 1.04 0l2.55 2.55C12.73 16.55 13.54 18 15 18c1.45 0 2.27-1.44 1.93-2.52l3.56-3.55c1.07.33 2.51-.48 2.51-1.93 0-1.1-.9-2-2-2"},"0"),I.jsx("path",{d:"m15 9 .94-2.07L18 6l-2.06-.93L15 3l-.92 2.07L12 6l2.08.93zM3.5 11 4 9l2-.5L4 8l-.5-2L3 8l-2 .5L3 9z"},"1")],"Insights"),TC=({toggles:t,onToggle:e,simpleCategories:r,edgeType:n,colorFunc:A,elements:a,edges:i,scales:o,scaleWidth:s,downloadScreenshot:l,randomize:u,organize:c,toggleLabels:d,labelsOn:h,legendToggle:f,legendNodeLabel:p,legendEdgeLabel:g,uniqueCat:m,scaleLabel:w})=>{const[v,B]=O.useState(!1),b={position:"absolute",top:"0",right:"0",width:v?"40px":"250px",backgroundColor:"white",transition:"width 0.3s",zIndex:1e3,overflowX:"hidden",marginRight:"5px",marginTop:"5px",overflowY:"auto",maxHeight:"100vh"},E={width:v?"0px":"10px",height:"40px",display:"inline-block",alignItems:"left",justifyContent:"left",cursor:"pointer",padding:"0px"};return I.jsxs(ai,{style:b,elevation:3,children:[I.jsx(qn,{onClick:()=>B(!v),fullWidth:!0,sx:{typography:"body2",textTransform:"none"},style:E,children:v?I.jsx(OV,{style:{marginLeft:"-27px"}}):I.jsx(MV,{style:{marginRight:"30px"}})}),!v&&I.jsxs(I.Fragment,{children:[I.jsx(Bt,{variant:"body2",style:{fontSize:"20px",marginLeft:"22px",marginTop:"5px",justifyContent:"center",alignItems:"center",display:"inline-block"},children:"Controls"}),I.jsxs(qa,{spacing:1,children:[I.jsx(SC,{toggles:t,onToggle:e,simpleCategories:r,edgeType:n,colorFunc:A,elements:a,edges:i,legendToggle:f,legendNodeLabel:p,legendEdgeLabel:g,uniqueCat:m}),I.jsx(UC,{scales:o,width:s,scaleLabel:w}),I.jsxs(qa,{direction:"row",spacing:2,style:{marginBottom:"5px"},children:[I.jsx(qn,{onClick:l,style:{fontSize:"small",minWidth:"40px"},children:I.jsx(IA,{title:"Download",color:"primary",sx:{ml:1},placement:"bottom",children:I.jsx(S0,{})})}),I.jsx(qn,{onClick:u,style:{fontSize:"small",minWidth:"40px"},children:I.jsx(IA,{title:"Randomize",color:"primary",sx:{ml:1},placement:"bottom",children:I.jsx(HV,{})})}),I.jsx(qn,{onClick:c,style:{fontSize:"small",minWidth:"40px"},children:I.jsx(IA,{title:"Organize",color:"primary",sx:{ml:1},placement:"bottom",children:I.jsx(NV,{})})}),I.jsx(qn,{onClick:d,style:{fontSize:"small",minWidth:"40px"},children:I.jsx(IA,{title:"Toggle Labels",color:"primary",sx:{ml:1},placement:"bottom",children:h?I.jsx(PV,{}):I.jsx(kV,{})})})]})]})]})]})};TC.__docgenInfo={description:"",methods:[],displayName:"ControlPanel",props:{toggles:{required:!0,tsType:{name:"signature",type:"object",raw:"{ [key: string]: boolean }",signature:{properties:[{key:{name:"string"},value:{name:"boolean",required:!0}}]}},description:""},onToggle:{required:!0,tsType:{name:"signature",type:"function",raw:"(category: string) => void",signature:{arguments:[{type:{name:"string"},name:"category"}],return:{name:"void"}}},description:""},simpleCategories:{required:!0,tsType:{name:"Array",elements:[{name:"string"}],raw:"string[]"},description:""},edgeType:{required:!0,tsType:{name:"boolean"},description:""},colorFunc:{required:!1,tsType:{name:"signature",type:"function",raw:"(node: Node | Edge) => string",signature:{arguments:[{type:{name:"union",raw:"Node | Edge",elements:[{name:"Node"},{name:"Edge"}]},name:"node"}],return:{name:"string"}}},description:""},elements:{required:!0,tsType:{name:"Array",elements:[{name:"Node"}],raw:"Node[]"},description:""},edges:{required:!0,tsType:{name:"Array",elements:[{name:"Edge"}],raw:"Edge[]"},description:""},scales:{required:!0,tsType:{name:"Array",elements:[{name:"number"}],raw:"number[]"},description:""},scaleWidth:{required:!0,tsType:{name:"signature",type:"function",raw:"(n: number) => number",signature:{arguments:[{type:{name:"number"},name:"n"}],return:{name:"number"}}},description:""},downloadScreenshot:{required:!0,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""},randomize:{required:!0,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""},organize:{required:!0,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""},toggleLabels:{required:!0,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""},labelsOn:{required:!0,tsType:{name:"boolean"},description:""},legendToggle:{required:!1,tsType:{name:"signature",type:"function",raw:"(node: Node | Edge) => string",signature:{arguments:[{type:{name:"union",raw:"Node | Edge",elements:[{name:"Node"},{name:"Edge"}]},name:"node"}],return:{name:"string"}}},description:""},legendNodeLabel:{required:!1,tsType:{name:"string"},description:""},legendEdgeLabel:{required:!1,tsType:{name:"string"},description:""},uniqueCat:{required:!1,tsType:{name:"Array",elements:[{name:"string"}],raw:"string[]"},description:""},scaleLabel:{required:!1,tsType:{name:"string"},description:""}}};Kn.use(LP);Kn.use(RP(Kd));function Kd(t,e,r){const n=document.createElement("div");return document.body.appendChild(n),us(n,{getReferenceClientRect:t.getBoundingClientRect,trigger:"manual",content:e,arrow:!0,placement:"bottom",hideOnClick:!1,sticky:"reference",interactive:!0,appendTo:document.body,...r})}const KV=(t,{name:e="img",extension:r="jpg"}={})=>{const n=document.createElement("a");n.href=t,n.download=`${e}.${r}`,n.click()},GV=t=>10*Math.log(t*4+1),VV=({data:t,title:e,id:r,width:n="100%",height:A="100%",scale:a=GV,getLabel:i,getColor:o,legendToggle:s,legendNodeLabel:l,legendEdgeLabel:u,order:c,fontFamily:d="Arial",onNodeClick:h,onEdgeClick:f,directional:p=!1,scaleLabel:g})=>{const m=O.useRef(null),[w]=O.useState(!0),[v,B]=O.useState([]),[b,E]=O.useState([]),[C,F]=O.useState([]),[y,x]=O.useState([]),[Q,S]=O.useState(!0),[T,U]=O.useState({}),L=new Set;s!==void 0?(t.node.forEach(te=>{L.add(s(te))}),t.edge.forEach(te=>{te.category&&L.add(s(te))})):(t.node.forEach(te=>{L.add(te.category)}),t.edge.forEach(te=>{te.category&&L.add(te.category)}));let R=new Set;t.node.forEach(te=>{s&&!c?R.add(s(te)):R.add(te.category)}),t.edge.forEach(te=>{te.category&&s?R.add(s(te)):te.category&&R.add(te.category)});let M=Array.from(R);c&&(M=M.sort((te,ae)=>c.indexOf(te)-c.indexOf(ae)));const H={};M.forEach(te=>{H[te]=!0});const k=O.useRef(null),[N,P]=uV(),K=()=>{k.current&&typeof P=="function"&&P(k.current).then(KV)},W=O.useRef(null);let X="cy-"+r;O.useEffect(()=>{B(t.node),x(t.edge),E(t.edge.map(te=>te.effectSize)),F(t.edge.map(te=>s?s(te):te.category!==void 0?te.category:"Edge")),U(H)},[t]);let Z=v.map(te=>te.category),Ae=Array.from(new Set(Z));c&&(Ae=Ae.sort((te,ae)=>c.indexOf(te)-c.indexOf(ae)));const ie=v.map(te=>s&&!c?s(te):te.category),re=v.map(te=>s?s(te):te.category),z=te=>v[te].id;O.useEffect(()=>{var Ce;if(v.length===0||b.length===0||C.length===0||y.length===0)return;const te=v.map(we=>we.id);let ae=[];for(let we=0;we{const _=te.indexOf(we.from),$=te.indexOf(we.to);_!==-1&&$!==-1&&ae[_].push($)});const le=Kn({container:document.getElementById(X),style:[{selector:"node",style:{label:"","font-size":12}},{selector:"edge",style:{"line-color":"#ccc","curve-style":"bezier"}}],minZoom:.25,maxZoom:5});m.current=le,le.ready(()=>{le.nodes().forEach(we=>{const $=[30,70,110][Math.floor(Math.random()*3)];we.css("width",$),we.css("height",$)}),le.layout({name:"cose-bilkent",animate:"end",animationDuration:1e3}).run()});const ge=`data:image/svg+xml;utf8,${encodeURIComponent(` -`)}`;for(var he=0;heG.category);le.add({data:{id:"edge "+ye,source:z(Se),target:z(ae[Se][_]),category:D?w[ye].category:"Edge"},style:{"line-color":o?o(w[ye]):"grey","target-arrow-shape":p?"triangle":null,"target-arrow-color":o?o(w[ye]):"grey",width:a(b[ye])}})}ye++}}return le.nodes().forEach((we,_)=>{const $=we.popperRef(),D=document.createElement("div");t!=null&&t.centered&&te[_].toString()===t.centered.id?D.innerHTML=`ID: ${te[_]}
Type: ${s?s(v[_]):v[_].category}
Centered Node`:D.innerHTML=`ID: ${te[_]}
Type: ${s?s(v[_]):v[_].category}`,D.style.fontSize="12px",D.style.fontFamily=d;const G=Kd($,D,{});we.on("mouseover",()=>{G.show(),document.body.style.cursor="pointer"}),we.on("click",()=>{if(h){const J={accession:we.style("label"),start:0,end:0,chromosome:""};h(J)}G.hide(),document.body.style.cursor="default"}),we.on("mouseout",()=>{G.hide(),document.body.style.cursor="default"})}),le.edges().forEach(we=>{const _=we.popperRef(),$=document.createElement("div");if(t.edge.every(G=>G.category)){let G="";w.forEach(J=>{if(s&&J.category&&we.data("category")&&we.data("category")===J.category){G=s(J);return}else if(J.category&&we.data("category")&&we.data("category")===J.category){G=J.category;return}}),G.length===0?$.innerHTML="Edge":$.innerHTML=`Edge Type: ${G}`}else $.innerHTML="Edge";$.style.fontSize="12px",$.style.fontFamily=d;const D=Kd(_,$,{});we.on("click",()=>{f&&f(),D.hide(),document.body.style.cursor="default"}),we.on("mouseover",()=>D.show()),we.on("mouseout",()=>D.hide())}),ee(),()=>{le.destroy()}},[v,b,C,w,T]),O.useEffect(()=>{if(!m.current)return;let te=0;m.current.nodes().forEach(ae=>{ae.style({label:Q?z(te):""}),te++})},[Q]);const q=()=>{const te=m.current;if(te){const ae={name:"random",animate:!0,animationDuration:1e3,animationEasing:"ease-out"};te.layout(ae).run()}},ee=()=>{const te=m.current,ae={name:"cose-bilkent",animate:"end",animationEasing:"ease-out",animationDuration:1e3,randomize:!0};te&&te.layout(ae).run()},se=te=>{U(ae=>({...ae,[te]:!ae[te]}))};return I.jsxs("div",{style:{width:n,height:A,position:"relative",overflow:"hidden",fontSize:"14px",fontFamily:"helvetica"},children:[I.jsx(Bt,{variant:"h1",style:{marginLeft:"3px",fontSize:"18px",fontWeight:"bold",fontFamily:d},children:e}),I.jsxs("div",{ref:k,style:{position:"relative"},children:[I.jsx("div",{ref:W,id:X,style:{width:"95%",height:"90vh",zIndex:999}}),B&&I.jsx("div",{style:{backgroundColor:"white",boxShadow:"0 0 10px rgba(0,0,0,0.5)"},children:I.jsx(TC,{toggles:T,onToggle:se,simpleCategories:re,edgeType:t.edge.every(te=>te.category),elements:v,edges:w,scales:b,scaleWidth:a,downloadScreenshot:K,randomize:q,organize:ee,toggleLabels:()=>S(!Q),labelsOn:Q,colorFunc:o,legendToggle:s,legendNodeLabel:l,legendEdgeLabel:u,uniqueCat:c?Ae:void 0,scaleLabel:g})})]})]})};VV.__docgenInfo={description:"",methods:[],displayName:"Graph",props:{data:{required:!0,tsType:{name:"signature",type:"object",raw:`{ +`)}`;for(var he=0;heG.category);le.add({data:{id:"edge "+ye,source:z(Se),target:z(ae[Se][_]),category:D?y[ye].category:"Edge"},style:{"line-color":o?o(y[ye]):"grey","target-arrow-shape":p?"triangle":null,"target-arrow-color":o?o(y[ye]):"grey",width:a(b[ye])}})}ye++}}return le.nodes().forEach((we,_)=>{const $=we.popperRef(),D=document.createElement("div");t!=null&&t.centered&&te[_].toString()===t.centered.id?D.innerHTML=`ID: ${te[_]}
Type: ${s?s(v[_]):v[_].category}
Centered Node`:D.innerHTML=`ID: ${te[_]}
Type: ${s?s(v[_]):v[_].category}`,D.style.fontSize="12px",D.style.fontFamily=d;const G=Kd($,D,{});we.on("mouseover",()=>{G.show(),document.body.style.cursor="pointer"}),we.on("click",()=>{if(h){const J={accession:we.style("label"),start:0,end:0,chromosome:""};h(J)}G.hide(),document.body.style.cursor="default"}),we.on("mouseout",()=>{G.hide(),document.body.style.cursor="default"})}),le.edges().forEach(we=>{const _=we.popperRef(),$=document.createElement("div");if(t.edge.every(G=>G.category)){let G="";y.forEach(J=>{if(s&&J.category&&we.data("category")&&we.data("category")===J.category){G=s(J);return}else if(J.category&&we.data("category")&&we.data("category")===J.category){G=J.category;return}}),G.length===0?$.innerHTML="Edge":$.innerHTML=`Edge Type: ${G}`}else $.innerHTML="Edge";$.style.fontSize="12px",$.style.fontFamily=d;const D=Kd(_,$,{});we.on("click",()=>{f&&f(),D.hide(),document.body.style.cursor="default"}),we.on("mouseover",()=>D.show()),we.on("mouseout",()=>D.hide())}),ee(),()=>{le.destroy()}},[v,b,C,y,T]),O.useEffect(()=>{if(!m.current)return;let te=0;m.current.nodes().forEach(ae=>{ae.style({label:Q?z(te):""}),te++})},[Q]);const q=()=>{const te=m.current;if(te){const ae={name:"random",animate:!0,animationDuration:1e3,animationEasing:"ease-out"};te.layout(ae).run()}},ee=()=>{const te=m.current,ae={name:"cose-bilkent",animate:"end",animationEasing:"ease-out",animationDuration:1e3,randomize:!0};te&&te.layout(ae).run()},se=te=>{U(ae=>({...ae,[te]:!ae[te]}))};return I.jsxs("div",{style:{width:n,height:A,position:"relative",overflow:"hidden",fontSize:"14px",fontFamily:"helvetica"},children:[I.jsx(Bt,{variant:"h1",style:{marginLeft:"3px",fontSize:"18px",fontWeight:"bold",fontFamily:d},children:e}),I.jsxs("div",{ref:k,style:{position:"relative"},children:[I.jsx("div",{ref:W,id:X,style:{width:"95%",height:"90vh",zIndex:999}}),w&&I.jsx("div",{style:{backgroundColor:"white",boxShadow:"0 0 10px rgba(0,0,0,0.5)"},children:I.jsx(TC,{toggles:T,onToggle:se,simpleCategories:re,edgeType:t.edge.every(te=>te.category),elements:v,edges:y,scales:b,scaleWidth:a,downloadScreenshot:K,randomize:q,organize:ee,toggleLabels:()=>S(!Q),labelsOn:Q,colorFunc:o,legendToggle:s,legendNodeLabel:l,legendEdgeLabel:u,uniqueCat:c?Ae:void 0,scaleLabel:g})})]})]})};VV.__docgenInfo={description:"",methods:[],displayName:"Graph",props:{data:{required:!0,tsType:{name:"signature",type:"object",raw:`{ edge: Edge[], node: Node[], centered?: {id: string} -}`,signature:{properties:[{key:"edge",value:{name:"Array",elements:[{name:"Edge"}],raw:"Edge[]",required:!0}},{key:"node",value:{name:"Array",elements:[{name:"Node"}],raw:"Node[]",required:!0}},{key:"centered",value:{name:"signature",type:"object",raw:"{id: string}",signature:{properties:[{key:"id",value:{name:"string",required:!0}}]},required:!1}}]}},description:""},id:{required:!0,tsType:{name:"union",raw:"number | string",elements:[{name:"number"},{name:"string"}]},description:""},title:{required:!1,tsType:{name:"string"},description:""},width:{required:!1,tsType:{name:"string"},description:"",defaultValue:{value:"'100%'",computed:!1}},height:{required:!1,tsType:{name:"string"},description:"",defaultValue:{value:"'100%'",computed:!1}},scale:{required:!1,tsType:{name:"signature",type:"function",raw:"(n: number) => number",signature:{arguments:[{type:{name:"number"},name:"n"}],return:{name:"number"}}},description:"",defaultValue:{value:"(n: number) => 10 * Math.log(n * 4 + 1)",computed:!1}},getLabel:{required:!1,tsType:{name:"signature",type:"function",raw:"(node: Node) => string",signature:{arguments:[{type:{name:"Node"},name:"node"}],return:{name:"string"}}},description:""},getColor:{required:!1,tsType:{name:"signature",type:"function",raw:"(node: Node | Edge) => string",signature:{arguments:[{type:{name:"union",raw:"Node | Edge",elements:[{name:"Node"},{name:"Edge"}]},name:"node"}],return:{name:"string"}}},description:""},legendToggle:{required:!1,tsType:{name:"signature",type:"function",raw:"(node: Node | Edge) => string",signature:{arguments:[{type:{name:"union",raw:"Node | Edge",elements:[{name:"Node"},{name:"Edge"}]},name:"node"}],return:{name:"string"}}},description:""},legendNodeLabel:{required:!1,tsType:{name:"string"},description:""},legendEdgeLabel:{required:!1,tsType:{name:"string"},description:""},order:{required:!1,tsType:{name:"Array",elements:[{name:"string"}],raw:"string[]"},description:""},fontFamily:{required:!1,tsType:{name:"string"},description:"",defaultValue:{value:"'Arial'",computed:!1}},onNodeClick:{required:!1,tsType:{name:"signature",type:"function",raw:"(n: any) => any",signature:{arguments:[{type:{name:"any"},name:"n"}],return:{name:"any"}}},description:""},onEdgeClick:{required:!1,tsType:{name:"signature",type:"function",raw:"() => any",signature:{arguments:[],return:{name:"any"}}},description:""},directional:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"false",computed:!1}},scaleLabel:{required:!1,tsType:{name:"string"},description:""}}};export{yL as A,xL as B,YL as C,C0 as D,wU as F,ws as G,SL as H,s0 as M,qV as P,RL as R,F0 as S,XV as T,CL as a,LL as b,Q0 as c,Bt as d,qn as e,ZV as f,JV as g,w0 as h,Ee as i,Me as j,Pe as k,Vn as l,qA as m,xe as n,Ke as o,WL as p,Fo as q,tc as r,me as s,vT as t,Ve as u,gl as v,VV as w}; +}`,signature:{properties:[{key:"edge",value:{name:"Array",elements:[{name:"Edge"}],raw:"Edge[]",required:!0}},{key:"node",value:{name:"Array",elements:[{name:"Node"}],raw:"Node[]",required:!0}},{key:"centered",value:{name:"signature",type:"object",raw:"{id: string}",signature:{properties:[{key:"id",value:{name:"string",required:!0}}]},required:!1}}]}},description:""},id:{required:!0,tsType:{name:"union",raw:"number | string",elements:[{name:"number"},{name:"string"}]},description:""},title:{required:!1,tsType:{name:"string"},description:""},width:{required:!1,tsType:{name:"string"},description:"",defaultValue:{value:"'100%'",computed:!1}},height:{required:!1,tsType:{name:"string"},description:"",defaultValue:{value:"'100%'",computed:!1}},scale:{required:!1,tsType:{name:"signature",type:"function",raw:"(n: number) => number",signature:{arguments:[{type:{name:"number"},name:"n"}],return:{name:"number"}}},description:"",defaultValue:{value:"(n: number) => 10 * Math.log(n * 4 + 1)",computed:!1}},getLabel:{required:!1,tsType:{name:"signature",type:"function",raw:"(node: Node) => string",signature:{arguments:[{type:{name:"Node"},name:"node"}],return:{name:"string"}}},description:""},getColor:{required:!1,tsType:{name:"signature",type:"function",raw:"(node: Node | Edge) => string",signature:{arguments:[{type:{name:"union",raw:"Node | Edge",elements:[{name:"Node"},{name:"Edge"}]},name:"node"}],return:{name:"string"}}},description:""},legendToggle:{required:!1,tsType:{name:"signature",type:"function",raw:"(node: Node | Edge) => string",signature:{arguments:[{type:{name:"union",raw:"Node | Edge",elements:[{name:"Node"},{name:"Edge"}]},name:"node"}],return:{name:"string"}}},description:""},legendNodeLabel:{required:!1,tsType:{name:"string"},description:""},legendEdgeLabel:{required:!1,tsType:{name:"string"},description:""},order:{required:!1,tsType:{name:"Array",elements:[{name:"string"}],raw:"string[]"},description:""},fontFamily:{required:!1,tsType:{name:"string"},description:"",defaultValue:{value:"'Arial'",computed:!1}},onNodeClick:{required:!1,tsType:{name:"signature",type:"function",raw:"(n: any) => any",signature:{arguments:[{type:{name:"any"},name:"n"}],return:{name:"any"}}},description:""},onEdgeClick:{required:!1,tsType:{name:"signature",type:"function",raw:"() => any",signature:{arguments:[],return:{name:"any"}}},description:""},directional:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"false",computed:!1}},scaleLabel:{required:!1,tsType:{name:"string"},description:""}}};export{yL as A,xL as B,YL as C,C0 as D,wU as F,ws as G,SL as H,TA as I,s0 as M,qV as P,RL as R,F0 as S,XV as T,CL as a,LL as b,Q0 as c,Bt as d,qn as e,ZV as f,JV as g,w0 as h,Ee as i,Me as j,Pe as k,Vn as l,qA as m,xe as n,Ke as o,vt as p,WL as q,qa as r,me as s,tc as t,Ve as u,vT as v,gl as w,VV as x}; diff --git a/assets/Graph.stories-C6zF8OPI.js b/assets/Graph.stories-DTk_JTTc.js similarity index 99% rename from assets/Graph.stories-C6zF8OPI.js rename to assets/Graph.stories-DTk_JTTc.js index 3bceff4..45e1658 100644 --- a/assets/Graph.stories-C6zF8OPI.js +++ b/assets/Graph.stories-DTk_JTTc.js @@ -1,4 +1,4 @@ -import{w as B}from"./Graph-YQGnloR9.js";/* empty css */import"./assertThisInitialized-DaBLapIa.js";import"./index-uubelm5h.js";import"./index-CfOt2XX2.js";const G={edge:[{from:"node_1",to:"node_2",effectSize:.1134,category:"hello",id:1},{from:"node_3",to:"node_2",effectSize:.5,category:"hi",id:2}],node:[{id:"node_1",category:"R"},{id:"node_2",category:"B"},{id:"node_3",category:"P"}]},_={data:G},k={edge:[{from:"EH38E3291096",to:"EH38E1939823",effectSize:.1134,category:"lower-expression",id:1},{from:"EH38E1939823",to:"EH38E1939823",effectSize:.1933,category:"lower-expression",id:2},{from:"EH38E3291121",to:"EH38E1939823",effectSize:.0545,category:"lower-expression",id:3},{from:"EH38E3291122",to:"EH38E1939823",effectSize:.0665,category:"lower-expression",id:4},{from:"EH38E3291358",to:"EH38E1939823",effectSize:.0674,category:"lower-expression",id:5},{from:"EH38E3291271",to:"EH38E3291279",effectSize:.0381,category:"lower-expression",id:6},{from:"EH38E3291279",to:"EH38E3291279",effectSize:.1667,category:"lower-expression",id:7},{from:"EH38E3291358",to:"EH38E3291279",effectSize:.0478,category:"lower-expression",id:8},{from:"EH38E3291174",to:"EH38E3291410",effectSize:.0504,category:"lower-expression",id:9},{from:"EH38E4193273",to:"EH38E3291410",effectSize:.0507,category:"lower-expression",id:10},{from:"EH38E3291358",to:"EH38E3291410",effectSize:.0895,category:"lower-expression",id:11},{from:"EH38E3291392",to:"EH38E3291410",effectSize:.0352,category:"lower-expression",id:12},{from:"EH38E3291410",to:"EH38E3291410",effectSize:.2538,category:"lower-expression",id:13},{from:"EH38E3291174",to:"EH38E4193228",effectSize:.0211,category:"lower-expression",id:14},{from:"EH38E3291218",to:"EH38E4193228",effectSize:.0477,category:"lower-expression",id:15},{from:"EH38E3291222",to:"EH38E4193228",effectSize:.0627,category:"lower-expression",id:16},{from:"EH38E3291226",to:"EH38E4193228",effectSize:.0448,category:"lower-expression",id:17},{from:"EH38E4193211",to:"EH38E4193228",effectSize:.0454,category:"lower-expression",id:18},{from:"EH38E3291232",to:"EH38E4193228",effectSize:.0311,category:"lower-expression",id:19},{from:"EH38E3291249",to:"EH38E4193228",effectSize:.0593,category:"higher-expression",id:20},{from:"EH38E3291263",to:"EH38E4193228",effectSize:.1136,category:"lower-expression",id:21},{from:"EH38E3291271",to:"EH38E4193228",effectSize:.4097,category:"lower-expression",id:22},{from:"EH38E3291279",to:"EH38E4193228",effectSize:.1077,category:"lower-expression",id:23},{from:"EH38E4193243",to:"EH38E4193228",effectSize:.026,category:"higher-expression",id:24},{from:"EH38E3291318",to:"EH38E4193228",effectSize:.0297,category:"higher-expression",id:25},{from:"EH38E4193273",to:"EH38E4193228",effectSize:.0405,category:"lower-expression",id:26},{from:"EH38E3291358",to:"EH38E4193228",effectSize:.0918,category:"lower-expression",id:27},{from:"EH38E3291779",to:"EH38E4193228",effectSize:.0263,category:"higher-expression",id:28},{from:"EH38E4193467",to:"EH38E4193228",effectSize:.0374,category:"higher-expression",id:29},{from:"EH38E1960374",to:"EH38E1960374",effectSize:.1853,category:"lower-expression",id:30},{from:"EH38E3312736",to:"EH38E1960374",effectSize:.0698,category:"lower-expression",id:31},{from:"EH38E1960377",to:"EH38E1960374",effectSize:.1479,category:"lower-expression",id:32},{from:"EH38E4201343",to:"EH38E1960374",effectSize:.1042,category:"lower-expression",id:33},{from:"EH38E1960374",to:"EH38E3312774",effectSize:.143,category:"higher-expression",id:34},{from:"EH38E3312736",to:"EH38E3312774",effectSize:.0864,category:"higher-expression",id:35},{from:"EH38E1960377",to:"EH38E3312774",effectSize:.1641,category:"higher-expression",id:36},{from:"EH38E4201343",to:"EH38E3312774",effectSize:.0652,category:"higher-expression",id:37},{from:"EH38E3312746",to:"EH38E3312774",effectSize:.0835,category:"lower-expression",id:38},{from:"EH38E3312765",to:"EH38E3312774",effectSize:.0386,category:"lower-expression",id:39},{from:"EH38E3312774",to:"EH38E3312774",effectSize:.3507,category:"lower-expression",id:40},{from:"EH38E3312787",to:"EH38E3312774",effectSize:.0959,category:"lower-expression",id:41},{from:"EH38E1940335",to:"EH38E3291664",effectSize:.0701,category:"lower-expression",id:42},{from:"EH38E3291664",to:"EH38E3291664",effectSize:.3563,category:"lower-expression",id:43},{from:"EH38E3291668",to:"EH38E3291664",effectSize:.1181,category:"lower-expression",id:44},{from:"EH38E3291318",to:"EH38E3291358",effectSize:.0369,category:"lower-expression",id:45},{from:"EH38E3291346",to:"EH38E3291358",effectSize:.108,category:"lower-expression",id:46},{from:"EH38E4193273",to:"EH38E3291358",effectSize:.2005,category:"lower-expression",id:47},{from:"EH38E3291358",to:"EH38E3291358",effectSize:.441,category:"lower-expression",id:48},{from:"EH38E3291364",to:"EH38E3291358",effectSize:.0862,category:"lower-expression",id:49},{from:"EH38E3291374",to:"EH38E3291358",effectSize:.0278,category:"higher-expression",id:50},{from:"EH38E3291664",to:"EH38E3291358",effectSize:.0291,category:"higher-expression",id:51},{from:"EH38E1939855",to:"EH38E3291249",effectSize:.0684,category:"higher-expression",id:52},{from:"EH38E4193211",to:"EH38E3291249",effectSize:.0354,category:"lower-expression",id:53},{from:"EH38E3291232",to:"EH38E3291249",effectSize:.0767,category:"lower-expression",id:54},{from:"EH38E3291244",to:"EH38E3291249",effectSize:.0883,category:"lower-expression",id:55},{from:"EH38E3291249",to:"EH38E3291249",effectSize:.1514,category:"lower-expression",id:56},{from:"EH38E3291358",to:"EH38E3291249",effectSize:.0378,category:"lower-expression",id:57},{from:"EH38E3291664",to:"EH38E3291249",effectSize:.0276,category:"higher-expression",id:58}],node:[{id:"EH38E1939823",category:"PLS"},{id:"EH38E1939855",category:"CA-CTCF"},{id:"EH38E1940335",category:"dELS"},{id:"EH38E1960374",category:"PLS"},{id:"EH38E1960377",category:"pELS"},{id:"EH38E3291096",category:"PLS"},{id:"EH38E3291121",category:"PLS"},{id:"EH38E3291122",category:"PLS"},{id:"EH38E3291174",category:"PLS"},{id:"EH38E3291218",category:"PLS"},{id:"EH38E3291222",category:"dELS"},{id:"EH38E3291226",category:"dELS"},{id:"EH38E3291232",category:"pELS"},{id:"EH38E3291244",category:"pELS"},{id:"EH38E3291249",category:"PLS"},{id:"EH38E3291263",category:"pELS"},{id:"EH38E3291271",category:"PLS"},{id:"EH38E3291279",category:"PLS"},{id:"EH38E3291318",category:"CA-CTCF"},{id:"EH38E3291346",category:"PLS"},{id:"EH38E3291358",category:"PLS"},{id:"EH38E3291364",category:"PLS"},{id:"EH38E3291374",category:"CA-TF"},{id:"EH38E3291392",category:"PLS"},{id:"EH38E3291410",category:"PLS"},{id:"EH38E3291664",category:"PLS"},{id:"EH38E3291668",category:"pELS"},{id:"EH38E3291779",category:"CA-CTCF"},{id:"EH38E3312736",category:"pELS"},{id:"EH38E3312746",category:"dELS"},{id:"EH38E3312765",category:"CA-TF"},{id:"EH38E3312774",category:"PLS"},{id:"EH38E3312787",category:"CA-TF"},{id:"EH38E4193211",category:"pELS"},{id:"EH38E4193228",category:"PLS"},{id:"EH38E4193243",category:"CA-H3K4me3"},{id:"EH38E4193273",category:"pELS"},{id:"EH38E4193467",category:"CA-CTCF"},{id:"EH38E4201343",category:"pELS"}]},f={data:k},I={edge:[{from:"EH38E3291096",to:"EH38E1939823",effectSize:.1134,category:"lower-expression",id:1},{from:"EH38E1939823",to:"EH38E1939823",effectSize:.1933,category:"lower-expression",id:2},{from:"EH38E3291121",to:"EH38E1939823",effectSize:.0545,category:"lower-expression",id:3},{from:"EH38E3291122",to:"EH38E1939823",effectSize:.0665,category:"lower-expression",id:4},{from:"EH38E3291358",to:"EH38E1939823",effectSize:.0674,category:"lower-expression",id:5},{from:"EH38E3291271",to:"EH38E3291279",effectSize:.0381,category:"lower-expression",id:6},{from:"EH38E3291279",to:"EH38E3291279",effectSize:.1667,category:"lower-expression",id:7},{from:"EH38E3291358",to:"EH38E3291279",effectSize:.0478,category:"lower-expression",id:8},{from:"EH38E3291174",to:"EH38E3291410",effectSize:.0504,category:"lower-expression",id:9},{from:"EH38E4193273",to:"EH38E3291410",effectSize:.0507,category:"lower-expression",id:10},{from:"EH38E3291358",to:"EH38E3291410",effectSize:.0895,category:"lower-expression",id:11},{from:"EH38E3291392",to:"EH38E3291410",effectSize:.0352,category:"lower-expression",id:12},{from:"EH38E3291410",to:"EH38E3291410",effectSize:.2538,category:"lower-expression",id:13},{from:"EH38E3291174",to:"EH38E4193228",effectSize:.0211,category:"lower-expression",id:14},{from:"EH38E3291218",to:"EH38E4193228",effectSize:.0477,category:"lower-expression",id:15},{from:"EH38E3291222",to:"EH38E4193228",effectSize:.0627,category:"lower-expression",id:16},{from:"EH38E3291226",to:"EH38E4193228",effectSize:.0448,category:"lower-expression",id:17},{from:"EH38E4193211",to:"EH38E4193228",effectSize:.0454,category:"lower-expression",id:18},{from:"EH38E3291232",to:"EH38E4193228",effectSize:.0311,category:"lower-expression",id:19},{from:"EH38E3291249",to:"EH38E4193228",effectSize:.0593,category:"higher-expression",id:20},{from:"EH38E3291263",to:"EH38E4193228",effectSize:.1136,category:"lower-expression",id:21},{from:"EH38E3291271",to:"EH38E4193228",effectSize:.4097,category:"lower-expression",id:22},{from:"EH38E3291279",to:"EH38E4193228",effectSize:.1077,category:"lower-expression",id:23},{from:"EH38E4193243",to:"EH38E4193228",effectSize:.026,category:"higher-expression",id:24},{from:"EH38E3291318",to:"EH38E4193228",effectSize:.0297,category:"higher-expression",id:25},{from:"EH38E4193273",to:"EH38E4193228",effectSize:.0405,category:"lower-expression",id:26},{from:"EH38E3291358",to:"EH38E4193228",effectSize:.0918,category:"lower-expression",id:27},{from:"EH38E3291779",to:"EH38E4193228",effectSize:.0263,category:"higher-expression",id:28},{from:"EH38E4193467",to:"EH38E4193228",effectSize:.0374,category:"higher-expression",id:29},{from:"EH38E1960374",to:"EH38E1960374",effectSize:.1853,category:"lower-expression",id:30},{from:"EH38E3312736",to:"EH38E1960374",effectSize:.0698,category:"lower-expression",id:31},{from:"EH38E1960377",to:"EH38E1960374",effectSize:.1479,category:"lower-expression",id:32},{from:"EH38E4201343",to:"EH38E1960374",effectSize:.1042,category:"lower-expression",id:33},{from:"EH38E1960374",to:"EH38E3312774",effectSize:.143,category:"higher-expression",id:34},{from:"EH38E3312736",to:"EH38E3312774",effectSize:.0864,category:"higher-expression",id:35},{from:"EH38E1960377",to:"EH38E3312774",effectSize:.1641,category:"higher-expression",id:36},{from:"EH38E4201343",to:"EH38E3312774",effectSize:.0652,category:"higher-expression",id:37},{from:"EH38E3312746",to:"EH38E3312774",effectSize:.0835,category:"lower-expression",id:38},{from:"EH38E3312765",to:"EH38E3312774",effectSize:.0386,category:"lower-expression",id:39},{from:"EH38E3312774",to:"EH38E3312774",effectSize:.3507,category:"lower-expression",id:40},{from:"EH38E3312787",to:"EH38E3312774",effectSize:.0959,category:"lower-expression",id:41},{from:"EH38E1940335",to:"EH38E3291664",effectSize:.0701,category:"lower-expression",id:42},{from:"EH38E3291664",to:"EH38E3291664",effectSize:.3563,category:"lower-expression",id:43},{from:"EH38E3291668",to:"EH38E3291664",effectSize:.1181,category:"lower-expression",id:44},{from:"EH38E3291318",to:"EH38E3291358",effectSize:.0369,category:"lower-expression",id:45},{from:"EH38E3291346",to:"EH38E3291358",effectSize:.108,category:"lower-expression",id:46},{from:"EH38E4193273",to:"EH38E3291358",effectSize:.2005,category:"lower-expression",id:47},{from:"EH38E3291358",to:"EH38E3291358",effectSize:.441,category:"lower-expression",id:48},{from:"EH38E3291364",to:"EH38E3291358",effectSize:.0862,category:"lower-expression",id:49},{from:"EH38E3291374",to:"EH38E3291358",effectSize:.0278,category:"higher-expression",id:50},{from:"EH38E3291664",to:"EH38E3291358",effectSize:.0291,category:"higher-expression",id:51},{from:"EH38E1939855",to:"EH38E3291249",effectSize:.0684,category:"higher-expression",id:52},{from:"EH38E4193211",to:"EH38E3291249",effectSize:.0354,category:"lower-expression",id:53},{from:"EH38E3291232",to:"EH38E3291249",effectSize:.0767,category:"lower-expression",id:54},{from:"EH38E3291244",to:"EH38E3291249",effectSize:.0883,category:"lower-expression",id:55},{from:"EH38E3291249",to:"EH38E3291249",effectSize:.1514,category:"lower-expression",id:56},{from:"EH38E3291358",to:"EH38E3291249",effectSize:.0378,category:"lower-expression",id:57},{from:"EH38E3291664",to:"EH38E3291249",effectSize:.0276,category:"higher-expression",id:58}],node:[{id:"EH38E1939823",category:"PLS"},{id:"EH38E1939855",category:"CA-CTCF"},{id:"EH38E1940335",category:"dELS"},{id:"EH38E1960374",category:"PLS"},{id:"EH38E1960377",category:"pELS"},{id:"EH38E3291096",category:"PLS"},{id:"EH38E3291121",category:"PLS"},{id:"EH38E3291122",category:"PLS"},{id:"EH38E3291174",category:"PLS"},{id:"EH38E3291218",category:"PLS"},{id:"EH38E3291222",category:"dELS"},{id:"EH38E3291226",category:"dELS"},{id:"EH38E3291232",category:"pELS"},{id:"EH38E3291244",category:"pELS"},{id:"EH38E3291249",category:"PLS"},{id:"EH38E3291263",category:"pELS"},{id:"EH38E3291271",category:"PLS"},{id:"EH38E3291279",category:"PLS"},{id:"EH38E3291318",category:"CA-CTCF"},{id:"EH38E3291346",category:"PLS"},{id:"EH38E3291358",category:"PLS"},{id:"EH38E3291364",category:"PLS"},{id:"EH38E3291374",category:"CA-TF"},{id:"EH38E3291392",category:"PLS"},{id:"EH38E3291410",category:"PLS"},{id:"EH38E3291664",category:"PLS"},{id:"EH38E3291668",category:"pELS"},{id:"EH38E3291779",category:"CA-CTCF"},{id:"EH38E3312736",category:"pELS"},{id:"EH38E3312746",category:"dELS"},{id:"EH38E3312765",category:"CA-TF"},{id:"EH38E3312774",category:"PLS"},{id:"EH38E3312787",category:"CA-TF"},{id:"EH38E4193211",category:"pELS"},{id:"EH38E4193228",category:"PLS"},{id:"EH38E4193243",category:"CA-H3K4me3"},{id:"EH38E4193273",category:"pELS"},{id:"EH38E4193467",category:"CA-CTCF"},{id:"EH38E4201343",category:"pELS"}],centered:{id:"EH38E4193211"}},g={data:I};function r(e){if(e.category!==void 0)switch(e.category){case"PLS":return"#FF0000";case"dELS":return"#FFCD00";case"pELS":return"#FFA700";case"CA-CTCF":return"#00B0F0";case"CA-H3K4me3":return"#ffaaaa";case"CA-TF":return"#be28e5";case"Low-DNase":return"#e1e1e1";case"lower-expression":return"rgb(0,0,0)";case"higher-expression":return"rgb(0,0,225)";default:return"grey"}return"grey"}function $(e){if(e.category!==void 0)switch(e.category){case"PLS":return"red";case"dELS":return"orange";case"pELS":return"yellow";case"CA-CTCF":return"green";case"CA-H3K4me3":return"blue";case"CA-TF":return"purple";case"Low-DNase":return"pink";case"lower-expression":return"black";case"higher-expression":return"purple";default:return"grey"}return"grey"}function O(e){if(e&&e.category!==void 0)switch(e.category){case"R":return"red";case"P":return"purple";case"B":return"blue";case"hello":return"pink";case"hi":return"green";default:return"grey"}else return"grey"}function o(e){if(e.category)switch(e.category){case"PLS":return"Promoter";case"dELS":return"Distal Enhancer";case"pELS":return"Proximal Enhancer";case"CA-CTCF":return"Chromatin Accessible + CTCF";case"CA-H3K4me3":return"Chromatin Accessible + H3K4me3";case"CA-TF":return"Chromatin Accessible + Transcription Factor";case"Low-DNase":return"Low DNase";case"CA-only":return"Chromatin Accessible";case"lower-expression":return"Lower-Expression";case"higher-expression":return"Higher-Expression";default:return e.category}return"Edge"}function j(e){if(e.category!==void 0)switch(e.category){case"R":return"red nodes";case"B":return"blue nodes";case"P":return"purple nodes";default:return e.category}return"Edge"}const V={title:"Graph",tags:["autodocs"],component:B},t={args:{data:_.data,title:"Sample Graph (non-cCRE)",id:"Sample",scale:e=>10*e,getColor:O,legendToggle:j,order:["P","R","B"],onNodeClick:e=>console.log("Accession: "+e.accession)}},E={args:{data:g.data,title:"cCRE Impact With Pilot Data With Centered cCRE",id:"PilotWithCentered",getColor:r,legendToggle:o,legendNodeLabel:"cCRE Type",order:["PLS","pELS","dELS","CA-H3K4me3","CA-CTCF","CA-TF","CA","TF","Low DNase"],fontFamily:"Times New Roman",directional:!0}},i={args:{data:g.data,title:"50% Width and Height",id:"50Percent",width:"50%",height:"50%",getColor:r,legendToggle:o,legendNodeLabel:"cCRE Type",directional:!0}},a={args:{data:f.data,title:"cCRE Impact With Pilot Data Without Centered cCRE",id:"PilotNoCentered",getColor:r,legendToggle:o,legendNodeLabel:"cCRE Type",directional:!0}},c={args:{data:f.data,title:"Different Label",id:"diffLabel",getLabel:e=>e.category,getColor:r,legendToggle:o,legendNodeLabel:"Different Node Label",legendEdgeLabel:"Different Edge Label",directional:!0}},s={args:{data:f.data,title:"Different Color",id:"diffColor",getColor:$,legendToggle:o}},n={args:{data:_.data,title:"No Legend Toggle",id:"noLegendToggle",scale:e=>10*e,getColor:O}},d={args:{data:g.data,title:"Different Order",id:"diffOrder",getColor:r,legendToggle:o,legendNodeLabel:"cCRE Type",order:["Low DNase","PLS","dELS","TF","pELS","CA-CTCF","CA","CA-H3K4me3","CA-TF"],directional:!0}};var H,l,p;t.parameters={...t.parameters,docs:{...(H=t.parameters)==null?void 0:H.docs,source:{originalSource:`{ +import{x as B}from"./Graph-ayG64wjf.js";/* empty css */import"./assertThisInitialized-DaBLapIa.js";import"./index-uubelm5h.js";import"./index-CfOt2XX2.js";const G={edge:[{from:"node_1",to:"node_2",effectSize:.1134,category:"hello",id:1},{from:"node_3",to:"node_2",effectSize:.5,category:"hi",id:2}],node:[{id:"node_1",category:"R"},{id:"node_2",category:"B"},{id:"node_3",category:"P"}]},_={data:G},k={edge:[{from:"EH38E3291096",to:"EH38E1939823",effectSize:.1134,category:"lower-expression",id:1},{from:"EH38E1939823",to:"EH38E1939823",effectSize:.1933,category:"lower-expression",id:2},{from:"EH38E3291121",to:"EH38E1939823",effectSize:.0545,category:"lower-expression",id:3},{from:"EH38E3291122",to:"EH38E1939823",effectSize:.0665,category:"lower-expression",id:4},{from:"EH38E3291358",to:"EH38E1939823",effectSize:.0674,category:"lower-expression",id:5},{from:"EH38E3291271",to:"EH38E3291279",effectSize:.0381,category:"lower-expression",id:6},{from:"EH38E3291279",to:"EH38E3291279",effectSize:.1667,category:"lower-expression",id:7},{from:"EH38E3291358",to:"EH38E3291279",effectSize:.0478,category:"lower-expression",id:8},{from:"EH38E3291174",to:"EH38E3291410",effectSize:.0504,category:"lower-expression",id:9},{from:"EH38E4193273",to:"EH38E3291410",effectSize:.0507,category:"lower-expression",id:10},{from:"EH38E3291358",to:"EH38E3291410",effectSize:.0895,category:"lower-expression",id:11},{from:"EH38E3291392",to:"EH38E3291410",effectSize:.0352,category:"lower-expression",id:12},{from:"EH38E3291410",to:"EH38E3291410",effectSize:.2538,category:"lower-expression",id:13},{from:"EH38E3291174",to:"EH38E4193228",effectSize:.0211,category:"lower-expression",id:14},{from:"EH38E3291218",to:"EH38E4193228",effectSize:.0477,category:"lower-expression",id:15},{from:"EH38E3291222",to:"EH38E4193228",effectSize:.0627,category:"lower-expression",id:16},{from:"EH38E3291226",to:"EH38E4193228",effectSize:.0448,category:"lower-expression",id:17},{from:"EH38E4193211",to:"EH38E4193228",effectSize:.0454,category:"lower-expression",id:18},{from:"EH38E3291232",to:"EH38E4193228",effectSize:.0311,category:"lower-expression",id:19},{from:"EH38E3291249",to:"EH38E4193228",effectSize:.0593,category:"higher-expression",id:20},{from:"EH38E3291263",to:"EH38E4193228",effectSize:.1136,category:"lower-expression",id:21},{from:"EH38E3291271",to:"EH38E4193228",effectSize:.4097,category:"lower-expression",id:22},{from:"EH38E3291279",to:"EH38E4193228",effectSize:.1077,category:"lower-expression",id:23},{from:"EH38E4193243",to:"EH38E4193228",effectSize:.026,category:"higher-expression",id:24},{from:"EH38E3291318",to:"EH38E4193228",effectSize:.0297,category:"higher-expression",id:25},{from:"EH38E4193273",to:"EH38E4193228",effectSize:.0405,category:"lower-expression",id:26},{from:"EH38E3291358",to:"EH38E4193228",effectSize:.0918,category:"lower-expression",id:27},{from:"EH38E3291779",to:"EH38E4193228",effectSize:.0263,category:"higher-expression",id:28},{from:"EH38E4193467",to:"EH38E4193228",effectSize:.0374,category:"higher-expression",id:29},{from:"EH38E1960374",to:"EH38E1960374",effectSize:.1853,category:"lower-expression",id:30},{from:"EH38E3312736",to:"EH38E1960374",effectSize:.0698,category:"lower-expression",id:31},{from:"EH38E1960377",to:"EH38E1960374",effectSize:.1479,category:"lower-expression",id:32},{from:"EH38E4201343",to:"EH38E1960374",effectSize:.1042,category:"lower-expression",id:33},{from:"EH38E1960374",to:"EH38E3312774",effectSize:.143,category:"higher-expression",id:34},{from:"EH38E3312736",to:"EH38E3312774",effectSize:.0864,category:"higher-expression",id:35},{from:"EH38E1960377",to:"EH38E3312774",effectSize:.1641,category:"higher-expression",id:36},{from:"EH38E4201343",to:"EH38E3312774",effectSize:.0652,category:"higher-expression",id:37},{from:"EH38E3312746",to:"EH38E3312774",effectSize:.0835,category:"lower-expression",id:38},{from:"EH38E3312765",to:"EH38E3312774",effectSize:.0386,category:"lower-expression",id:39},{from:"EH38E3312774",to:"EH38E3312774",effectSize:.3507,category:"lower-expression",id:40},{from:"EH38E3312787",to:"EH38E3312774",effectSize:.0959,category:"lower-expression",id:41},{from:"EH38E1940335",to:"EH38E3291664",effectSize:.0701,category:"lower-expression",id:42},{from:"EH38E3291664",to:"EH38E3291664",effectSize:.3563,category:"lower-expression",id:43},{from:"EH38E3291668",to:"EH38E3291664",effectSize:.1181,category:"lower-expression",id:44},{from:"EH38E3291318",to:"EH38E3291358",effectSize:.0369,category:"lower-expression",id:45},{from:"EH38E3291346",to:"EH38E3291358",effectSize:.108,category:"lower-expression",id:46},{from:"EH38E4193273",to:"EH38E3291358",effectSize:.2005,category:"lower-expression",id:47},{from:"EH38E3291358",to:"EH38E3291358",effectSize:.441,category:"lower-expression",id:48},{from:"EH38E3291364",to:"EH38E3291358",effectSize:.0862,category:"lower-expression",id:49},{from:"EH38E3291374",to:"EH38E3291358",effectSize:.0278,category:"higher-expression",id:50},{from:"EH38E3291664",to:"EH38E3291358",effectSize:.0291,category:"higher-expression",id:51},{from:"EH38E1939855",to:"EH38E3291249",effectSize:.0684,category:"higher-expression",id:52},{from:"EH38E4193211",to:"EH38E3291249",effectSize:.0354,category:"lower-expression",id:53},{from:"EH38E3291232",to:"EH38E3291249",effectSize:.0767,category:"lower-expression",id:54},{from:"EH38E3291244",to:"EH38E3291249",effectSize:.0883,category:"lower-expression",id:55},{from:"EH38E3291249",to:"EH38E3291249",effectSize:.1514,category:"lower-expression",id:56},{from:"EH38E3291358",to:"EH38E3291249",effectSize:.0378,category:"lower-expression",id:57},{from:"EH38E3291664",to:"EH38E3291249",effectSize:.0276,category:"higher-expression",id:58}],node:[{id:"EH38E1939823",category:"PLS"},{id:"EH38E1939855",category:"CA-CTCF"},{id:"EH38E1940335",category:"dELS"},{id:"EH38E1960374",category:"PLS"},{id:"EH38E1960377",category:"pELS"},{id:"EH38E3291096",category:"PLS"},{id:"EH38E3291121",category:"PLS"},{id:"EH38E3291122",category:"PLS"},{id:"EH38E3291174",category:"PLS"},{id:"EH38E3291218",category:"PLS"},{id:"EH38E3291222",category:"dELS"},{id:"EH38E3291226",category:"dELS"},{id:"EH38E3291232",category:"pELS"},{id:"EH38E3291244",category:"pELS"},{id:"EH38E3291249",category:"PLS"},{id:"EH38E3291263",category:"pELS"},{id:"EH38E3291271",category:"PLS"},{id:"EH38E3291279",category:"PLS"},{id:"EH38E3291318",category:"CA-CTCF"},{id:"EH38E3291346",category:"PLS"},{id:"EH38E3291358",category:"PLS"},{id:"EH38E3291364",category:"PLS"},{id:"EH38E3291374",category:"CA-TF"},{id:"EH38E3291392",category:"PLS"},{id:"EH38E3291410",category:"PLS"},{id:"EH38E3291664",category:"PLS"},{id:"EH38E3291668",category:"pELS"},{id:"EH38E3291779",category:"CA-CTCF"},{id:"EH38E3312736",category:"pELS"},{id:"EH38E3312746",category:"dELS"},{id:"EH38E3312765",category:"CA-TF"},{id:"EH38E3312774",category:"PLS"},{id:"EH38E3312787",category:"CA-TF"},{id:"EH38E4193211",category:"pELS"},{id:"EH38E4193228",category:"PLS"},{id:"EH38E4193243",category:"CA-H3K4me3"},{id:"EH38E4193273",category:"pELS"},{id:"EH38E4193467",category:"CA-CTCF"},{id:"EH38E4201343",category:"pELS"}]},f={data:k},I={edge:[{from:"EH38E3291096",to:"EH38E1939823",effectSize:.1134,category:"lower-expression",id:1},{from:"EH38E1939823",to:"EH38E1939823",effectSize:.1933,category:"lower-expression",id:2},{from:"EH38E3291121",to:"EH38E1939823",effectSize:.0545,category:"lower-expression",id:3},{from:"EH38E3291122",to:"EH38E1939823",effectSize:.0665,category:"lower-expression",id:4},{from:"EH38E3291358",to:"EH38E1939823",effectSize:.0674,category:"lower-expression",id:5},{from:"EH38E3291271",to:"EH38E3291279",effectSize:.0381,category:"lower-expression",id:6},{from:"EH38E3291279",to:"EH38E3291279",effectSize:.1667,category:"lower-expression",id:7},{from:"EH38E3291358",to:"EH38E3291279",effectSize:.0478,category:"lower-expression",id:8},{from:"EH38E3291174",to:"EH38E3291410",effectSize:.0504,category:"lower-expression",id:9},{from:"EH38E4193273",to:"EH38E3291410",effectSize:.0507,category:"lower-expression",id:10},{from:"EH38E3291358",to:"EH38E3291410",effectSize:.0895,category:"lower-expression",id:11},{from:"EH38E3291392",to:"EH38E3291410",effectSize:.0352,category:"lower-expression",id:12},{from:"EH38E3291410",to:"EH38E3291410",effectSize:.2538,category:"lower-expression",id:13},{from:"EH38E3291174",to:"EH38E4193228",effectSize:.0211,category:"lower-expression",id:14},{from:"EH38E3291218",to:"EH38E4193228",effectSize:.0477,category:"lower-expression",id:15},{from:"EH38E3291222",to:"EH38E4193228",effectSize:.0627,category:"lower-expression",id:16},{from:"EH38E3291226",to:"EH38E4193228",effectSize:.0448,category:"lower-expression",id:17},{from:"EH38E4193211",to:"EH38E4193228",effectSize:.0454,category:"lower-expression",id:18},{from:"EH38E3291232",to:"EH38E4193228",effectSize:.0311,category:"lower-expression",id:19},{from:"EH38E3291249",to:"EH38E4193228",effectSize:.0593,category:"higher-expression",id:20},{from:"EH38E3291263",to:"EH38E4193228",effectSize:.1136,category:"lower-expression",id:21},{from:"EH38E3291271",to:"EH38E4193228",effectSize:.4097,category:"lower-expression",id:22},{from:"EH38E3291279",to:"EH38E4193228",effectSize:.1077,category:"lower-expression",id:23},{from:"EH38E4193243",to:"EH38E4193228",effectSize:.026,category:"higher-expression",id:24},{from:"EH38E3291318",to:"EH38E4193228",effectSize:.0297,category:"higher-expression",id:25},{from:"EH38E4193273",to:"EH38E4193228",effectSize:.0405,category:"lower-expression",id:26},{from:"EH38E3291358",to:"EH38E4193228",effectSize:.0918,category:"lower-expression",id:27},{from:"EH38E3291779",to:"EH38E4193228",effectSize:.0263,category:"higher-expression",id:28},{from:"EH38E4193467",to:"EH38E4193228",effectSize:.0374,category:"higher-expression",id:29},{from:"EH38E1960374",to:"EH38E1960374",effectSize:.1853,category:"lower-expression",id:30},{from:"EH38E3312736",to:"EH38E1960374",effectSize:.0698,category:"lower-expression",id:31},{from:"EH38E1960377",to:"EH38E1960374",effectSize:.1479,category:"lower-expression",id:32},{from:"EH38E4201343",to:"EH38E1960374",effectSize:.1042,category:"lower-expression",id:33},{from:"EH38E1960374",to:"EH38E3312774",effectSize:.143,category:"higher-expression",id:34},{from:"EH38E3312736",to:"EH38E3312774",effectSize:.0864,category:"higher-expression",id:35},{from:"EH38E1960377",to:"EH38E3312774",effectSize:.1641,category:"higher-expression",id:36},{from:"EH38E4201343",to:"EH38E3312774",effectSize:.0652,category:"higher-expression",id:37},{from:"EH38E3312746",to:"EH38E3312774",effectSize:.0835,category:"lower-expression",id:38},{from:"EH38E3312765",to:"EH38E3312774",effectSize:.0386,category:"lower-expression",id:39},{from:"EH38E3312774",to:"EH38E3312774",effectSize:.3507,category:"lower-expression",id:40},{from:"EH38E3312787",to:"EH38E3312774",effectSize:.0959,category:"lower-expression",id:41},{from:"EH38E1940335",to:"EH38E3291664",effectSize:.0701,category:"lower-expression",id:42},{from:"EH38E3291664",to:"EH38E3291664",effectSize:.3563,category:"lower-expression",id:43},{from:"EH38E3291668",to:"EH38E3291664",effectSize:.1181,category:"lower-expression",id:44},{from:"EH38E3291318",to:"EH38E3291358",effectSize:.0369,category:"lower-expression",id:45},{from:"EH38E3291346",to:"EH38E3291358",effectSize:.108,category:"lower-expression",id:46},{from:"EH38E4193273",to:"EH38E3291358",effectSize:.2005,category:"lower-expression",id:47},{from:"EH38E3291358",to:"EH38E3291358",effectSize:.441,category:"lower-expression",id:48},{from:"EH38E3291364",to:"EH38E3291358",effectSize:.0862,category:"lower-expression",id:49},{from:"EH38E3291374",to:"EH38E3291358",effectSize:.0278,category:"higher-expression",id:50},{from:"EH38E3291664",to:"EH38E3291358",effectSize:.0291,category:"higher-expression",id:51},{from:"EH38E1939855",to:"EH38E3291249",effectSize:.0684,category:"higher-expression",id:52},{from:"EH38E4193211",to:"EH38E3291249",effectSize:.0354,category:"lower-expression",id:53},{from:"EH38E3291232",to:"EH38E3291249",effectSize:.0767,category:"lower-expression",id:54},{from:"EH38E3291244",to:"EH38E3291249",effectSize:.0883,category:"lower-expression",id:55},{from:"EH38E3291249",to:"EH38E3291249",effectSize:.1514,category:"lower-expression",id:56},{from:"EH38E3291358",to:"EH38E3291249",effectSize:.0378,category:"lower-expression",id:57},{from:"EH38E3291664",to:"EH38E3291249",effectSize:.0276,category:"higher-expression",id:58}],node:[{id:"EH38E1939823",category:"PLS"},{id:"EH38E1939855",category:"CA-CTCF"},{id:"EH38E1940335",category:"dELS"},{id:"EH38E1960374",category:"PLS"},{id:"EH38E1960377",category:"pELS"},{id:"EH38E3291096",category:"PLS"},{id:"EH38E3291121",category:"PLS"},{id:"EH38E3291122",category:"PLS"},{id:"EH38E3291174",category:"PLS"},{id:"EH38E3291218",category:"PLS"},{id:"EH38E3291222",category:"dELS"},{id:"EH38E3291226",category:"dELS"},{id:"EH38E3291232",category:"pELS"},{id:"EH38E3291244",category:"pELS"},{id:"EH38E3291249",category:"PLS"},{id:"EH38E3291263",category:"pELS"},{id:"EH38E3291271",category:"PLS"},{id:"EH38E3291279",category:"PLS"},{id:"EH38E3291318",category:"CA-CTCF"},{id:"EH38E3291346",category:"PLS"},{id:"EH38E3291358",category:"PLS"},{id:"EH38E3291364",category:"PLS"},{id:"EH38E3291374",category:"CA-TF"},{id:"EH38E3291392",category:"PLS"},{id:"EH38E3291410",category:"PLS"},{id:"EH38E3291664",category:"PLS"},{id:"EH38E3291668",category:"pELS"},{id:"EH38E3291779",category:"CA-CTCF"},{id:"EH38E3312736",category:"pELS"},{id:"EH38E3312746",category:"dELS"},{id:"EH38E3312765",category:"CA-TF"},{id:"EH38E3312774",category:"PLS"},{id:"EH38E3312787",category:"CA-TF"},{id:"EH38E4193211",category:"pELS"},{id:"EH38E4193228",category:"PLS"},{id:"EH38E4193243",category:"CA-H3K4me3"},{id:"EH38E4193273",category:"pELS"},{id:"EH38E4193467",category:"CA-CTCF"},{id:"EH38E4201343",category:"pELS"}],centered:{id:"EH38E4193211"}},g={data:I};function r(e){if(e.category!==void 0)switch(e.category){case"PLS":return"#FF0000";case"dELS":return"#FFCD00";case"pELS":return"#FFA700";case"CA-CTCF":return"#00B0F0";case"CA-H3K4me3":return"#ffaaaa";case"CA-TF":return"#be28e5";case"Low-DNase":return"#e1e1e1";case"lower-expression":return"rgb(0,0,0)";case"higher-expression":return"rgb(0,0,225)";default:return"grey"}return"grey"}function $(e){if(e.category!==void 0)switch(e.category){case"PLS":return"red";case"dELS":return"orange";case"pELS":return"yellow";case"CA-CTCF":return"green";case"CA-H3K4me3":return"blue";case"CA-TF":return"purple";case"Low-DNase":return"pink";case"lower-expression":return"black";case"higher-expression":return"purple";default:return"grey"}return"grey"}function O(e){if(e&&e.category!==void 0)switch(e.category){case"R":return"red";case"P":return"purple";case"B":return"blue";case"hello":return"pink";case"hi":return"green";default:return"grey"}else return"grey"}function o(e){if(e.category)switch(e.category){case"PLS":return"Promoter";case"dELS":return"Distal Enhancer";case"pELS":return"Proximal Enhancer";case"CA-CTCF":return"Chromatin Accessible + CTCF";case"CA-H3K4me3":return"Chromatin Accessible + H3K4me3";case"CA-TF":return"Chromatin Accessible + Transcription Factor";case"Low-DNase":return"Low DNase";case"CA-only":return"Chromatin Accessible";case"lower-expression":return"Lower-Expression";case"higher-expression":return"Higher-Expression";default:return e.category}return"Edge"}function j(e){if(e.category!==void 0)switch(e.category){case"R":return"red nodes";case"B":return"blue nodes";case"P":return"purple nodes";default:return e.category}return"Edge"}const V={title:"Graph",tags:["autodocs"],component:B},t={args:{data:_.data,title:"Sample Graph (non-cCRE)",id:"Sample",scale:e=>10*e,getColor:O,legendToggle:j,order:["P","R","B"],onNodeClick:e=>console.log("Accession: "+e.accession)}},E={args:{data:g.data,title:"cCRE Impact With Pilot Data With Centered cCRE",id:"PilotWithCentered",getColor:r,legendToggle:o,legendNodeLabel:"cCRE Type",order:["PLS","pELS","dELS","CA-H3K4me3","CA-CTCF","CA-TF","CA","TF","Low DNase"],fontFamily:"Times New Roman",directional:!0}},i={args:{data:g.data,title:"50% Width and Height",id:"50Percent",width:"50%",height:"50%",getColor:r,legendToggle:o,legendNodeLabel:"cCRE Type",directional:!0}},a={args:{data:f.data,title:"cCRE Impact With Pilot Data Without Centered cCRE",id:"PilotNoCentered",getColor:r,legendToggle:o,legendNodeLabel:"cCRE Type",directional:!0}},c={args:{data:f.data,title:"Different Label",id:"diffLabel",getLabel:e=>e.category,getColor:r,legendToggle:o,legendNodeLabel:"Different Node Label",legendEdgeLabel:"Different Edge Label",directional:!0}},s={args:{data:f.data,title:"Different Color",id:"diffColor",getColor:$,legendToggle:o}},n={args:{data:_.data,title:"No Legend Toggle",id:"noLegendToggle",scale:e=>10*e,getColor:O}},d={args:{data:g.data,title:"Different Order",id:"diffOrder",getColor:r,legendToggle:o,legendNodeLabel:"cCRE Type",order:["Low DNase","PLS","dELS","TF","pELS","CA-CTCF","CA","CA-H3K4me3","CA-TF"],directional:!0}};var H,l,p;t.parameters={...t.parameters,docs:{...(H=t.parameters)==null?void 0:H.docs,source:{originalSource:`{ args: { data: data2.data, title: 'Sample Graph (non-cCRE)', diff --git a/assets/SearchBox.stories-DhMpJOil.js b/assets/SearchBox.stories-B8clLlIa.js similarity index 97% rename from assets/SearchBox.stories-DhMpJOil.js rename to assets/SearchBox.stories-B8clLlIa.js index 7da79f9..2ba1df4 100644 --- a/assets/SearchBox.stories-DhMpJOil.js +++ b/assets/SearchBox.stories-B8clLlIa.js @@ -1,4 +1,4 @@ -import{j as e}from"./assertThisInitialized-DaBLapIa.js";import{r as o}from"./index-uubelm5h.js";import{S as v,G as i,b as c}from"./Graph-YQGnloR9.js";/* empty css */import"./index-CfOt2XX2.js";function d(){const{innerWidth:t,innerHeight:r}=window;return{width:t,height:r}}function f(){const[t,r]=o.useState(d());return o.useEffect(()=>{const a=()=>{r(d())};return window.addEventListener("resize",a),()=>window.removeEventListener("resize",a)},[]),t}const W=()=>{console.log("on search ")},h=[{name:"Disease/Trait",value:"disease",helperText:"e.g. schizophrenia, years of education"},{name:"Gene/b-cCRE",value:"gene",helperText:"e.g. APOE, PPIF1"},{name:"SNP/QTL",value:"SNP",helperText:"e.g. rs2836883, rs7690700"}],y={title:"SearchBox",component:v,tags:["autodocs"],argTypes:{children:{control:{type:"text"}}},parameters:{controls:{expanded:!0}}},s={args:{onSearchButtonClick:W}},n={args:{},render:t=>{const{width:r}=f();return e.jsxs(i,{container:!0,children:[e.jsxs(i,{size:6,children:[e.jsx("strong",{children:"Non-Reactive"}),e.jsx("br",{}),e.jsx(c,{selectOptions:h,label:"What can we help you find?",variant:"standard",...t})]}),e.jsxs(i,{size:6,children:[e.jsxs("strong",{children:["Reactive (at width <800px; current width is ",r/2,")"]}),e.jsx("br",{}),e.jsx(c,{selectOptions:h,label:"What can we help you find?",variant:"standard",reactiveThreshold:800,reactiveWidth:305,containerWidth:r/2,...t})]})]})}};var l,p,u;s.parameters={...s.parameters,docs:{...(l=s.parameters)==null?void 0:l.docs,source:{originalSource:`{ +import{j as e}from"./assertThisInitialized-DaBLapIa.js";import{r as o}from"./index-uubelm5h.js";import{S as v,G as i,b as c}from"./Graph-ayG64wjf.js";/* empty css */import"./index-CfOt2XX2.js";function d(){const{innerWidth:t,innerHeight:r}=window;return{width:t,height:r}}function f(){const[t,r]=o.useState(d());return o.useEffect(()=>{const a=()=>{r(d())};return window.addEventListener("resize",a),()=>window.removeEventListener("resize",a)},[]),t}const W=()=>{console.log("on search ")},h=[{name:"Disease/Trait",value:"disease",helperText:"e.g. schizophrenia, years of education"},{name:"Gene/b-cCRE",value:"gene",helperText:"e.g. APOE, PPIF1"},{name:"SNP/QTL",value:"SNP",helperText:"e.g. rs2836883, rs7690700"}],y={title:"SearchBox",component:v,tags:["autodocs"],argTypes:{children:{control:{type:"text"}}},parameters:{controls:{expanded:!0}}},s={args:{onSearchButtonClick:W}},n={args:{},render:t=>{const{width:r}=f();return e.jsxs(i,{container:!0,children:[e.jsxs(i,{size:6,children:[e.jsx("strong",{children:"Non-Reactive"}),e.jsx("br",{}),e.jsx(c,{selectOptions:h,label:"What can we help you find?",variant:"standard",...t})]}),e.jsxs(i,{size:6,children:[e.jsxs("strong",{children:["Reactive (at width <800px; current width is ",r/2,")"]}),e.jsx("br",{}),e.jsx(c,{selectOptions:h,label:"What can we help you find?",variant:"standard",reactiveThreshold:800,reactiveWidth:305,containerWidth:r/2,...t})]})]})}};var l,p,u;s.parameters={...s.parameters,docs:{...(l=s.parameters)==null?void 0:l.docs,source:{originalSource:`{ args: { onSearchButtonClick: onSearch } diff --git a/assets/Select.stories-C0Dmr7j1.js b/assets/Select.stories-cjA7QjN4.js similarity index 94% rename from assets/Select.stories-C0Dmr7j1.js rename to assets/Select.stories-cjA7QjN4.js index f49c4e8..36cf87d 100644 --- a/assets/Select.stories-C0Dmr7j1.js +++ b/assets/Select.stories-cjA7QjN4.js @@ -1,4 +1,4 @@ -import{j as e}from"./assertThisInitialized-DaBLapIa.js";import{c as l,M as t}from"./Graph-YQGnloR9.js";/* empty css */import"./index-uubelm5h.js";import"./index-CfOt2XX2.js";const m={title:"Select",component:l,tags:["autodocs"],parameters:{controls:{expanded:!0}}},a={args:{},render:()=>e.jsxs(l,{variant:"standard",defaultValue:"disease/trait",children:[e.jsx(t,{value:"disease/trait",children:"Disease/Trait"}),e.jsx(t,{value:"gene/bcre",children:"Gene/b-cCRE"}),e.jsx(t,{value:"snp/qtl",children:"SNP/QTL"}),e.jsx(t,{value:"single-cell",children:"Single Cell"})]})};var r,s,n;a.parameters={...a.parameters,docs:{...(r=a.parameters)==null?void 0:r.docs,source:{originalSource:`{ +import{j as e}from"./assertThisInitialized-DaBLapIa.js";import{c as l,M as t}from"./Graph-ayG64wjf.js";/* empty css */import"./index-uubelm5h.js";import"./index-CfOt2XX2.js";const m={title:"Select",component:l,tags:["autodocs"],parameters:{controls:{expanded:!0}}},a={args:{},render:()=>e.jsxs(l,{variant:"standard",defaultValue:"disease/trait",children:[e.jsx(t,{value:"disease/trait",children:"Disease/Trait"}),e.jsx(t,{value:"gene/bcre",children:"Gene/b-cCRE"}),e.jsx(t,{value:"snp/qtl",children:"SNP/QTL"}),e.jsx(t,{value:"single-cell",children:"Single Cell"})]})};var r,s,n;a.parameters={...a.parameters,docs:{...(r=a.parameters)==null?void 0:r.docs,source:{originalSource:`{ args: {}, render: () =>