From b8f4876cd30d04c3cbf9576b7f89f6b0ba8862ad Mon Sep 17 00:00:00 2001 From: pzocchi Date: Thu, 23 May 2024 15:54:11 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20docs=20from=20@=20Skillbill/vu?= =?UTF-8?q?elace-3@b6b5aac818203c022055b7654f234d5c16a94819=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...Zg74k_A8.js => Color-PRSJMWNM-LbgHd4DX.js} | 2 +- ...4.js => DocsRenderer-K4EAMTCU-BNMQj7Xt.js} | 10 +- assets/Introduction-BGtyCnqW.js | 40 + assets/Introduction-CJmOeDJt.js | 38 - ...q0.js => WithTooltip-KJL26V4Q-B2VLuGr9.js} | 2 +- ...efhO.js => formatter-2WMMO6ZP-dIbF2loY.js} | 2 +- ...{iframe-BjtAHItA.js => iframe-Dg59W10a.js} | 4 +- ...review-BKazIbMi.js => preview-CudwAfSk.js} | 4 +- ...=> syntaxhighlighter-BP7B2CQK-9TMg8RlO.js} | 2 +- assets/vuelace-logo.svg | 3032 +++++++++++++++++ iframe.html | 2 +- index.html | 4 + project.json | 2 +- sb-addons/storybook-11/manager-bundle.js | 151 + .../storybook-11/manager-bundle.js.LEGAL.txt | 0 15 files changed, 3242 insertions(+), 53 deletions(-) rename assets/{Color-PRSJMWNM-Zg74k_A8.js => Color-PRSJMWNM-LbgHd4DX.js} (99%) rename assets/{DocsRenderer-K4EAMTCU-C9CSlBK4.js => DocsRenderer-K4EAMTCU-BNMQj7Xt.js} (99%) create mode 100644 assets/Introduction-BGtyCnqW.js delete mode 100644 assets/Introduction-CJmOeDJt.js rename assets/{WithTooltip-KJL26V4Q-C-1QZcq0.js => WithTooltip-KJL26V4Q-B2VLuGr9.js} (63%) rename assets/{formatter-2WMMO6ZP-BBv0efhO.js => formatter-2WMMO6ZP-dIbF2loY.js} (99%) rename assets/{iframe-BjtAHItA.js => iframe-Dg59W10a.js} (97%) rename assets/{preview-BKazIbMi.js => preview-CudwAfSk.js} (68%) rename assets/{syntaxhighlighter-BP7B2CQK-BsNZFzTD.js => syntaxhighlighter-BP7B2CQK-9TMg8RlO.js} (83%) create mode 100644 assets/vuelace-logo.svg create mode 100644 sb-addons/storybook-11/manager-bundle.js create mode 100644 sb-addons/storybook-11/manager-bundle.js.LEGAL.txt diff --git a/assets/Color-PRSJMWNM-Zg74k_A8.js b/assets/Color-PRSJMWNM-LbgHd4DX.js similarity index 99% rename from assets/Color-PRSJMWNM-Zg74k_A8.js rename to assets/Color-PRSJMWNM-LbgHd4DX.js index b011184..072b35d 100644 --- a/assets/Color-PRSJMWNM-Zg74k_A8.js +++ b/assets/Color-PRSJMWNM-LbgHd4DX.js @@ -1 +1 @@ -import{n as $,d as ue,T as Me,F as Ce,M as $e,g as Oe}from"./DocsRenderer-K4EAMTCU-C9CSlBK4.js";import{R as h,r as m}from"./index-B3ehnkiM.js";import{g as fe}from"./_commonjsHelpers-Cpj98o6Y.js";import{_ as Ne,i as J,f as Ie}from"./index-GiEMjZfh.js";import"./iframe-BjtAHItA.js";import"../sb-preview/runtime.js";import"./index-DYADbu9O.js";import"./index-DrFu-skq.js";function N(){return(N=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}function K(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(ne(o.current,p,s.current)):M(!1)},j=function(){return M(!1)};function M(p){var b=i.current,w=V(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&&(re(b),!function(k,O){return O&&!F(k)}(b,i.current)&&w)){if(F(b)){i.current=!0;var E=b.changedTouches||[];E.length&&(s.current=E[0].identifier)}w.focus(),a(ne(w,b,s.current)),M(!0)}},function(p){var b=p.which||p.keyCode;b<37||b>40||(p.preventDefault(),l({left:b===39?.05:b===37?-.05:0,top:b===40?.05:b===38?-.05:0}))},M]},[l,a]),d=c[0],f=c[1],g=c[2];return m.useEffect(function(){return g},[g]),h.createElement("div",N({},r,{onTouchStart:d,onMouseDown:d,className:"react-colorful__interactive",ref:o,onKeyDown:f,tabIndex:0,role:"slider"}))}),H=function(e){return e.filter(Boolean).join(" ")},ee=function(e){var t=e.color,n=e.left,r=e.top,o=r===void 0?.5:r,a=H(["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},Se={grad:.9,turn:360,rad:360/(2*Math.PI)},Re=function(e){return ge(A(e))},A=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}},je=function(e,t){return t===void 0&&(t="deg"),Number(e)*(Se[t]||1)},Te=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?Fe({h:je(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}},Fe=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}},ze=function(e){return Pe(de(e))},he=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)}},G=function(e){var t=he(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},B=function(e){var t=he(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},de=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),l=r*(1-n),s=r*(1-(t-a)*n),i=r*(1-(1-t+a)*n),c=a%6;return{r:y(255*[r,s,l,l,i,r][c]),g:y(255*[i,r,r,s,l,l][c]),b:y(255*[l,l,i,r,r,s][c]),a:y(o,2)}},He=function(e){var t=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?ge({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},Pe=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},ge=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,a=Math.max(t,n,r),l=a-Math.min(t,n,r),s=l?a===t?(n-r)/l:a===n?2+(r-t)/l:4+(t-n)/l:0;return{h:y(60*(s<0?s+6:s)),s:y(a?l/a*100:0),v:y(a/255*100),a:o}},me=h.memo(function(e){var t=e.hue,n=e.onChange,r=H(["react-colorful__hue",e.className]);return h.createElement("div",{className:r},h.createElement(Z,{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(ee,{className:"react-colorful__hue-pointer",left:t/360,color:G({h:t,s:100,v:100,a:1})})))}),be=h.memo(function(e){var t=e.hsva,n=e.onChange,r={backgroundColor:G({h:t.h,s:100,v:100,a:1})};return h.createElement("div",{className:"react-colorful__saturation",style:r},h.createElement(Z,{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(ee,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:G(t)})))}),ve=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0},pe=function(e,t){return e.replace(/\s/g,"")===t.replace(/\s/g,"")},Le=function(e,t){return e.toLowerCase()===t.toLowerCase()||ve(A(e),A(t))};function ye(e,t,n){var r=K(n),o=m.useState(function(){return e.toHsva(t)}),a=o[0],l=o[1],s=m.useRef({color:t,hsva:a});m.useEffect(function(){if(!e.equal(t,s.current.color)){var c=e.toHsva(t);s.current={hsva:c,color:t},l(c)}},[t,e]),m.useEffect(function(){var c;ve(a,s.current.hsva)||e.equal(c=e.fromHsva(a),s.current.color)||(s.current={hsva:a,color:c},r(c))},[a,e,r]);var i=m.useCallback(function(c){l(function(d){return Object.assign({},d,c)})},[]);return[a,i]}var qe=typeof window<"u"?m.useLayoutEffect:m.useEffect,Be=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},oe=new Map,xe=function(e){qe(function(){var t=e.current?e.current.ownerDocument:document;if(t!==void 0&&!oe.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}`,oe.set(t,n);var r=Be();r&&n.setAttribute("nonce",r),t.head.appendChild(n)}},[])},We=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,a=e.onChange,l=Q(e,["className","colorModel","color","onChange"]),s=m.useRef(null);xe(s);var i=ye(n,o,a),c=i[0],d=i[1],f=H(["react-colorful",t]);return h.createElement("div",N({},l,{ref:s,className:f}),h.createElement(be,{hsva:c,onChange:d}),h.createElement(me,{hue:c.h,onChange:d,className:"react-colorful__last-control"}))},Xe={defaultColor:"000",toHsva:Re,fromHsva:function(e){return ze({h:e.h,s:e.s,v:e.v,a:1})},equal:Le},De=function(e){return h.createElement(We,N({},e,{colorModel:Xe}))},Ke=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=H(["react-colorful__alpha",t]),l=y(100*n.a);return h.createElement("div",{className:a},h.createElement("div",{className:"react-colorful__alpha-gradient",style:o}),h.createElement(Z,{onMove:function(s){r({a:s.left})},onKey:function(s){r({a:R(n.a+s.left)})},"aria-label":"Alpha","aria-valuetext":l+"%","aria-valuenow":l,"aria-valuemin":"0","aria-valuemax":"100"},h.createElement(ee,{className:"react-colorful__alpha-pointer",left:n.a,color:B(n)})))},we=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,a=e.onChange,l=Q(e,["className","colorModel","color","onChange"]),s=m.useRef(null);xe(s);var i=ye(n,o,a),c=i[0],d=i[1],f=H(["react-colorful",t]);return h.createElement("div",N({},l,{ref:s,className:f}),h.createElement(be,{hsva:c,onChange:d}),h.createElement(me,{hue:c.h,onChange:d}),h.createElement(Ke,{hsva:c,onChange:d,className:"react-colorful__last-control"}))},Ve={defaultColor:"hsla(0, 0%, 0%, 1)",toHsva:Te,fromHsva:B,equal:pe},Ae=function(e){return h.createElement(we,N({},e,{colorModel:Ve}))},Ge={defaultColor:"rgba(0, 0, 0, 1)",toHsva:He,fromHsva:function(e){var t=de(e);return"rgba("+t.r+", "+t.g+", "+t.b+", "+t.a+")"},equal:pe},Ue=function(e){return h.createElement(we,N({},e,{colorModel:Ge}))},Ye={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 z=Ye,ke={};for(const e of Object.keys(z))ke[z[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 _e=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),l=a-o;let s,i;a===o?s=0:t===a?s=(n-r)/l:n===a?s=2+(r-t)/l:r===a&&(s=4+(t-n)/l),s=Math.min(s*60,360),s<0&&(s+=360);const c=(o+a)/2;return a===o?i=0:c<=.5?i=l/(a+o):i=l/(2-a-o),[s,i*100,c*100]};u.rgb.hsv=function(e){let t,n,r,o,a;const l=e[0]/255,s=e[1]/255,i=e[2]/255,c=Math.max(l,s,i),d=c-Math.min(l,s,i),f=function(g){return(c-g)/6/d+1/2};return d===0?(o=0,a=0):(a=d/c,t=f(l),n=f(s),r=f(i),l===c?o=r-n:s===c?o=1/3+t-r:i===c&&(o=2/3+n-t),o<0?o+=1:o>1&&(o-=1)),[o*360,a*100,c*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,l=(1-n-o)/(1-o)||0,s=(1-r-o)/(1-o)||0;return[a*100,l*100,s*100,o*100]};function Je(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=ke[e];if(t)return t;let n=1/0,r;for(const o of Object.keys(z)){const a=z[o],l=Je(e,a);l.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,l=t*.0193+n*.1192+r*.9505;return[o*100,a*100,l*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,l=500*(n-r),s=200*(r-o);return[a,l,s]};u.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let o,a,l;if(n===0)return l=r*255,[l,l,l];r<.5?o=r*(1+n):o=r+n-r*n;const s=2*r-o,i=[0,0,0];for(let c=0;c<3;c++)a=t+1/3*-(c-1),a<0&&a++,a>1&&a--,6*a<1?l=s+(o-s)*6*a:2*a<1?l=o:3*a<2?l=s+(o-s)*(2/3-a)*6:l=s,i[c]=l*255;return i};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 l=(r+n)/2,s=r===0?2*o/(a+o):2*n/(r+n);return[t,s*100,l*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),l=255*r*(1-n),s=255*r*(1-n*a),i=255*r*(1-n*(1-a));switch(r*=255,o){case 0:return[r,i,l];case 1:return[s,r,l];case 2:return[l,r,i];case 3:return[l,s,r];case 4:return[i,l,r];case 5:return[r,l,s]}};u.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,o=Math.max(r,.01);let a,l;l=(2-n)*r;const s=(2-n)*o;return a=n*o,a/=s<=1?s:2-s,a=a||0,l/=2,[t,a*100,l*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 l=Math.floor(6*t),s=1-r;a=6*t-l,l&1&&(a=1-a);const i=n+a*(s-n);let c,d,f;switch(l){default:case 6:case 0:c=s,d=i,f=n;break;case 1:c=i,d=s,f=n;break;case 2:c=n,d=s,f=i;break;case 3:c=n,d=i,f=s;break;case 4:c=i,d=n,f=s;break;case 5:c=s,d=n,f=i;break}return[c*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),l=1-Math.min(1,n*(1-o)+o),s=1-Math.min(1,r*(1-o)+o);return[a*255,l*255,s*255]};u.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let o,a,l;return o=t*3.2406+n*-1.5372+r*-.4986,a=t*-.9689+n*1.8758+r*.0415,l=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,l=l>.0031308?1.055*l**(1/2.4)-.055:l*12.92,o=Math.min(Math.max(0,o),1),a=Math.min(Math.max(0,a),1),l=Math.min(Math.max(0,l),1),[o*255,a*255,l*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),l=200*(n-r);return[o,a,l]};u.lab.xyz=function(e){const t=e[0],n=e[1],r=e[2];let o,a,l;a=(t+16)/116,o=n/500+a,l=a-r/200;const s=a**3,i=o**3,c=l**3;return a=s>.008856?s:(a-16/116)/7.787,o=i>.008856?i:(o-16/116)/7.787,l=c>.008856?c:(l-16/116)/7.787,o*=95.047,a*=100,l*=108.883,[o,a,l]};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 l=Math.sqrt(n*n+r*r);return[t,l,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),l=n*Math.sin(o);return[t,a,l]};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 l=30+(Math.round(o/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return a===2&&(l+=60),l};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(s=>s+s).join(""));const r=parseInt(n,16),o=r>>16&255,a=r>>8&255,l=r&255;return[o,a,l]};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),l=o-a;let s,i;return l<1?s=a/(1-l):s=0,l<=0?i=0:o===t?i=(n-r)/l%6:o===n?i=2+(r-t)/l:i=4+(t-n)/l,i/=6,i%=1,[i*360,l*100,s*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,l=a%1,s=1-l;let i=0;switch(Math.floor(a)){case 0:o[0]=1,o[1]=l,o[2]=0;break;case 1:o[0]=s,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=l;break;case 3:o[0]=0,o[1]=s,o[2]=1;break;case 4:o[0]=l,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=s}return i=(1-n)*r,[(n*o[0]+i)*255,(n*o[1]+i)*255,(n*o[2]+i)*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 W=_e;function Qe(){const e={},t=Object.keys(W);for(let n=t.length,r=0;r1&&(n=r),e(n))};return"conversion"in e&&(t.conversion=e.conversion),t}function lt(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,l=0;l{I[e]={},Object.defineProperty(I[e],"channels",{value:U[e].channels}),Object.defineProperty(I[e],"labels",{value:U[e].labels});const t=rt(e);Object.keys(t).forEach(r=>{const o=t[r];I[e][r]=lt(o),I[e][r].raw=at(o)})});var st=I;const _=fe(st);var it=Ne,ct=function(){return it.Date.now()},ut=ct,ft=/\s/;function ht(e){for(var t=e.length;t--&&ft.test(e.charAt(t)););return t}var dt=ht,gt=dt,mt=/^\s+/;function bt(e){return e&&e.slice(0,gt(e)+1).replace(mt,"")}var vt=bt,pt=vt,ae=J,yt=Ie,le=NaN,xt=/^[-+]0x[0-9a-f]+$/i,wt=/^0b[01]+$/i,kt=/^0o[0-7]+$/i,_t=parseInt;function Et(e){if(typeof e=="number")return e;if(yt(e))return le;if(ae(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ae(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=pt(e);var n=wt.test(e);return n||kt.test(e)?_t(e.slice(2),n?2:8):xt.test(e)?le:+e}var Mt=Et,Ct=J,D=ut,se=Mt,$t="Expected a function",Ot=Math.max,Nt=Math.min;function It(e,t,n){var r,o,a,l,s,i,c=0,d=!1,f=!1,g=!0;if(typeof e!="function")throw new TypeError($t);t=se(t)||0,Ct(n)&&(d=!!n.leading,f="maxWait"in n,a=f?Ot(se(n.maxWait)||0,t):a,g="trailing"in n?!!n.trailing:g);function x(v){var C=r,T=o;return r=o=void 0,c=v,l=e.apply(T,C),l}function j(v){return c=v,s=setTimeout(b,t),d?x(v):l}function M(v){var C=v-i,T=v-c,te=t-C;return f?Nt(te,a-T):te}function p(v){var C=v-i,T=v-c;return i===void 0||C>=t||C<0||f&&T>=a}function b(){var v=D();if(p(v))return w(v);s=setTimeout(b,M(v))}function w(v){return s=void 0,g&&r?x(v):(r=o=void 0,l)}function E(){s!==void 0&&clearTimeout(s),c=0,r=i=o=s=void 0}function k(){return s===void 0?l:w(D())}function O(){var v=D(),C=p(v);if(r=arguments,o=this,i=v,C){if(s===void 0)return j(i);if(f)return clearTimeout(s),s=setTimeout(b,t),x(i)}return s===void 0&&(s=setTimeout(b,t)),l}return O.cancel=E,O.flush=k,O}var St=It,Rt=St,jt=J,Tt="Expected a function";function Ft(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(Tt);return jt(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Rt(e,t,{leading:r,maxWait:t,trailing:o})}var zt=Ft;const Ht=fe(zt);var Pt=$.div({position:"relative",maxWidth:250,'&[aria-readonly="true"]':{opacity:.5}}),Lt=$(ue)({position:"absolute",zIndex:1,top:4,left:4,"[aria-readonly=true] &":{cursor:"not-allowed"}}),qt=$.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"}}),Bt=$(Me)(({theme:e})=>({fontFamily:e.typography.fonts.base})),Wt=$.div({display:"grid",gridTemplateColumns:"repeat(9, 16px)",gap:6,padding:3,marginTop:5,width:200}),Xt=$.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})),Dt=`url('data:image/svg+xml;charset=utf-8,')`,ie=({value:e,style:t,...n})=>{let r=`linear-gradient(${e}, ${e}), ${Dt}, linear-gradient(#fff, #fff)`;return h.createElement(Xt,{...n,style:{...t,backgroundImage:r}})},Kt=$(Ce.Input)(({theme:e,readOnly:t})=>({width:"100%",paddingLeft:30,paddingRight:30,boxSizing:"border-box",fontFamily:e.typography.fonts.base})),Vt=$($e)(({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),At=/\(([0-9]+),\s*([0-9]+)%?,\s*([0-9]+)%?,?\s*([0-9.]+)?\)/,Gt=/^\s*rgba?\(([0-9]+),\s*([0-9]+),\s*([0-9]+),?\s*([0-9.]+)?\)\s*$/i,Ut=/^\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,Yt=/^\s*#?([0-9a-f]{3})\s*$/i,Jt={hex:De,rgb:Ue,hsl:Ae},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(At);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(Gt.test(e)){let[l,s,i,c]=ce(e),[d,f,g]=_.rgb.hsl([l,s,i])||[0,0,0];return{valid:t,value:e,keyword:_.rgb.keyword([l,s,i]),colorSpace:"rgb",rgb:e,hsl:`hsla(${d}, ${f}%, ${g}%, ${c})`,hex:`#${_.rgb.hex([l,s,i]).toLowerCase()}`}}if(Ut.test(e)){let[l,s,i,c]=ce(e),[d,f,g]=_.hsl.rgb([l,s,i])||[0,0,0];return{valid:t,value:e,keyword:_.hsl.keyword([l,s,i]),colorSpace:"hsl",rgb:`rgba(${d}, ${f}, ${g}, ${c})`,hsl:e,hex:`#${_.hsl.hex([l,s,i]).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}},Qt=(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(Yt);if(!r)return Y.test(t.hex)?t.hex:q.hex;let[o,a,l]=r[1].split("");return`#${o}${o}${a}${a}${l}${l}`},Zt=(e,t)=>{let[n,r]=m.useState(e||""),[o,a]=m.useState(()=>S(n)),[l,s]=m.useState((o==null?void 0:o.colorSpace)||"hex");m.useEffect(()=>{let f=e||"",g=S(f);r(f),a(g),s((g==null?void 0:g.colorSpace)||"hex")},[e]);let i=m.useMemo(()=>Qt(n,o,l).toLowerCase(),[n,o,l]),c=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),s(g.colorSpace),t(g.value))},[t]),d=m.useCallback(()=>{let f=L.indexOf(l)+1;f>=L.length&&(f=0),s(L[f]);let g=(o==null?void 0:o[L[f]])||"";r(g),t(g)},[o,l,t]);return{value:n,realValue:i,updateValue:c,color:o,colorSpace:l,cycleColorSpace:d}},X=e=>e.replace(/\s*/,"").toLowerCase(),en=(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(s=>typeof s=="string"?S(s):s.title?{...S(s.color),keyword:s.title}:S(s.color)).concat(r).filter(Boolean).slice(-27),[e,r]),l=m.useCallback(s=>{s!=null&&s.valid&&(a.some(i=>X(i[n])===X(s[n]))||o(i=>i.concat(s)))},[n,a]);return{presets:a,addPreset:l}},tn=({name:e,value:t,onChange:n,onFocus:r,onBlur:o,presetColors:a,startOpen:l=!1,argType:s})=>{var E;let i=m.useCallback(Ht(n,200),[n]),{value:c,realValue:d,updateValue:f,color:g,colorSpace:x,cycleColorSpace:j}=Zt(t,i),{presets:M,addPreset:p}=en(a,g,x),b=Jt[x],w=!!((E=s==null?void 0:s.table)!=null&&E.readonly);return h.createElement(Pt,{"aria-readonly":w},h.createElement(Lt,{startOpen:l,trigger:w?[null]:void 0,closeOnOutsideClick:!0,onVisibleChange:()=>p(g),tooltip:h.createElement(qt,null,h.createElement(b,{color:d==="transparent"?"#000000":d,onChange:f,onFocus:r,onBlur:o}),M.length>0&&h.createElement(Wt,null,M.map((k,O)=>h.createElement(ue,{key:`${k.value}-${O}`,hasChrome:!1,tooltip:h.createElement(Bt,{note:k.keyword||k.value})},h.createElement(ie,{value:k[x],active:g&&X(k[x])===X(g[x]),onClick:()=>f(k.value)})))))},h.createElement(ie,{value:d,style:{margin:4}})),h.createElement(Kt,{id:Oe(e),value:c,onChange:k=>f(k.target.value),onFocus:k=>k.target.select(),readOnly:w,placeholder:"Choose color..."}),c?h.createElement(Vt,{onClick:j}):null)},fn=tn;export{tn as ColorControl,fn as default}; +import{n as $,d as ue,T as Me,F as Ce,M as $e,g as Oe}from"./DocsRenderer-K4EAMTCU-BNMQj7Xt.js";import{R as h,r as m}from"./index-B3ehnkiM.js";import{g as fe}from"./_commonjsHelpers-Cpj98o6Y.js";import{_ as Ne,i as J,f as Ie}from"./index-GiEMjZfh.js";import"./iframe-Dg59W10a.js";import"../sb-preview/runtime.js";import"./index-DYADbu9O.js";import"./index-DrFu-skq.js";function N(){return(N=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}function K(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(ne(o.current,p,s.current)):M(!1)},j=function(){return M(!1)};function M(p){var b=i.current,w=V(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&&(re(b),!function(k,O){return O&&!F(k)}(b,i.current)&&w)){if(F(b)){i.current=!0;var E=b.changedTouches||[];E.length&&(s.current=E[0].identifier)}w.focus(),a(ne(w,b,s.current)),M(!0)}},function(p){var b=p.which||p.keyCode;b<37||b>40||(p.preventDefault(),l({left:b===39?.05:b===37?-.05:0,top:b===40?.05:b===38?-.05:0}))},M]},[l,a]),d=c[0],f=c[1],g=c[2];return m.useEffect(function(){return g},[g]),h.createElement("div",N({},r,{onTouchStart:d,onMouseDown:d,className:"react-colorful__interactive",ref:o,onKeyDown:f,tabIndex:0,role:"slider"}))}),H=function(e){return e.filter(Boolean).join(" ")},ee=function(e){var t=e.color,n=e.left,r=e.top,o=r===void 0?.5:r,a=H(["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},Se={grad:.9,turn:360,rad:360/(2*Math.PI)},Re=function(e){return ge(A(e))},A=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}},je=function(e,t){return t===void 0&&(t="deg"),Number(e)*(Se[t]||1)},Te=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?Fe({h:je(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}},Fe=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}},ze=function(e){return Pe(de(e))},he=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)}},G=function(e){var t=he(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},B=function(e){var t=he(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},de=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),l=r*(1-n),s=r*(1-(t-a)*n),i=r*(1-(1-t+a)*n),c=a%6;return{r:y(255*[r,s,l,l,i,r][c]),g:y(255*[i,r,r,s,l,l][c]),b:y(255*[l,l,i,r,r,s][c]),a:y(o,2)}},He=function(e){var t=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?ge({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},Pe=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},ge=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,a=Math.max(t,n,r),l=a-Math.min(t,n,r),s=l?a===t?(n-r)/l:a===n?2+(r-t)/l:4+(t-n)/l:0;return{h:y(60*(s<0?s+6:s)),s:y(a?l/a*100:0),v:y(a/255*100),a:o}},me=h.memo(function(e){var t=e.hue,n=e.onChange,r=H(["react-colorful__hue",e.className]);return h.createElement("div",{className:r},h.createElement(Z,{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(ee,{className:"react-colorful__hue-pointer",left:t/360,color:G({h:t,s:100,v:100,a:1})})))}),be=h.memo(function(e){var t=e.hsva,n=e.onChange,r={backgroundColor:G({h:t.h,s:100,v:100,a:1})};return h.createElement("div",{className:"react-colorful__saturation",style:r},h.createElement(Z,{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(ee,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:G(t)})))}),ve=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0},pe=function(e,t){return e.replace(/\s/g,"")===t.replace(/\s/g,"")},Le=function(e,t){return e.toLowerCase()===t.toLowerCase()||ve(A(e),A(t))};function ye(e,t,n){var r=K(n),o=m.useState(function(){return e.toHsva(t)}),a=o[0],l=o[1],s=m.useRef({color:t,hsva:a});m.useEffect(function(){if(!e.equal(t,s.current.color)){var c=e.toHsva(t);s.current={hsva:c,color:t},l(c)}},[t,e]),m.useEffect(function(){var c;ve(a,s.current.hsva)||e.equal(c=e.fromHsva(a),s.current.color)||(s.current={hsva:a,color:c},r(c))},[a,e,r]);var i=m.useCallback(function(c){l(function(d){return Object.assign({},d,c)})},[]);return[a,i]}var qe=typeof window<"u"?m.useLayoutEffect:m.useEffect,Be=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},oe=new Map,xe=function(e){qe(function(){var t=e.current?e.current.ownerDocument:document;if(t!==void 0&&!oe.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}`,oe.set(t,n);var r=Be();r&&n.setAttribute("nonce",r),t.head.appendChild(n)}},[])},We=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,a=e.onChange,l=Q(e,["className","colorModel","color","onChange"]),s=m.useRef(null);xe(s);var i=ye(n,o,a),c=i[0],d=i[1],f=H(["react-colorful",t]);return h.createElement("div",N({},l,{ref:s,className:f}),h.createElement(be,{hsva:c,onChange:d}),h.createElement(me,{hue:c.h,onChange:d,className:"react-colorful__last-control"}))},Xe={defaultColor:"000",toHsva:Re,fromHsva:function(e){return ze({h:e.h,s:e.s,v:e.v,a:1})},equal:Le},De=function(e){return h.createElement(We,N({},e,{colorModel:Xe}))},Ke=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=H(["react-colorful__alpha",t]),l=y(100*n.a);return h.createElement("div",{className:a},h.createElement("div",{className:"react-colorful__alpha-gradient",style:o}),h.createElement(Z,{onMove:function(s){r({a:s.left})},onKey:function(s){r({a:R(n.a+s.left)})},"aria-label":"Alpha","aria-valuetext":l+"%","aria-valuenow":l,"aria-valuemin":"0","aria-valuemax":"100"},h.createElement(ee,{className:"react-colorful__alpha-pointer",left:n.a,color:B(n)})))},we=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,a=e.onChange,l=Q(e,["className","colorModel","color","onChange"]),s=m.useRef(null);xe(s);var i=ye(n,o,a),c=i[0],d=i[1],f=H(["react-colorful",t]);return h.createElement("div",N({},l,{ref:s,className:f}),h.createElement(be,{hsva:c,onChange:d}),h.createElement(me,{hue:c.h,onChange:d}),h.createElement(Ke,{hsva:c,onChange:d,className:"react-colorful__last-control"}))},Ve={defaultColor:"hsla(0, 0%, 0%, 1)",toHsva:Te,fromHsva:B,equal:pe},Ae=function(e){return h.createElement(we,N({},e,{colorModel:Ve}))},Ge={defaultColor:"rgba(0, 0, 0, 1)",toHsva:He,fromHsva:function(e){var t=de(e);return"rgba("+t.r+", "+t.g+", "+t.b+", "+t.a+")"},equal:pe},Ue=function(e){return h.createElement(we,N({},e,{colorModel:Ge}))},Ye={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 z=Ye,ke={};for(const e of Object.keys(z))ke[z[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 _e=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),l=a-o;let s,i;a===o?s=0:t===a?s=(n-r)/l:n===a?s=2+(r-t)/l:r===a&&(s=4+(t-n)/l),s=Math.min(s*60,360),s<0&&(s+=360);const c=(o+a)/2;return a===o?i=0:c<=.5?i=l/(a+o):i=l/(2-a-o),[s,i*100,c*100]};u.rgb.hsv=function(e){let t,n,r,o,a;const l=e[0]/255,s=e[1]/255,i=e[2]/255,c=Math.max(l,s,i),d=c-Math.min(l,s,i),f=function(g){return(c-g)/6/d+1/2};return d===0?(o=0,a=0):(a=d/c,t=f(l),n=f(s),r=f(i),l===c?o=r-n:s===c?o=1/3+t-r:i===c&&(o=2/3+n-t),o<0?o+=1:o>1&&(o-=1)),[o*360,a*100,c*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,l=(1-n-o)/(1-o)||0,s=(1-r-o)/(1-o)||0;return[a*100,l*100,s*100,o*100]};function Je(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=ke[e];if(t)return t;let n=1/0,r;for(const o of Object.keys(z)){const a=z[o],l=Je(e,a);l.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,l=t*.0193+n*.1192+r*.9505;return[o*100,a*100,l*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,l=500*(n-r),s=200*(r-o);return[a,l,s]};u.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let o,a,l;if(n===0)return l=r*255,[l,l,l];r<.5?o=r*(1+n):o=r+n-r*n;const s=2*r-o,i=[0,0,0];for(let c=0;c<3;c++)a=t+1/3*-(c-1),a<0&&a++,a>1&&a--,6*a<1?l=s+(o-s)*6*a:2*a<1?l=o:3*a<2?l=s+(o-s)*(2/3-a)*6:l=s,i[c]=l*255;return i};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 l=(r+n)/2,s=r===0?2*o/(a+o):2*n/(r+n);return[t,s*100,l*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),l=255*r*(1-n),s=255*r*(1-n*a),i=255*r*(1-n*(1-a));switch(r*=255,o){case 0:return[r,i,l];case 1:return[s,r,l];case 2:return[l,r,i];case 3:return[l,s,r];case 4:return[i,l,r];case 5:return[r,l,s]}};u.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,o=Math.max(r,.01);let a,l;l=(2-n)*r;const s=(2-n)*o;return a=n*o,a/=s<=1?s:2-s,a=a||0,l/=2,[t,a*100,l*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 l=Math.floor(6*t),s=1-r;a=6*t-l,l&1&&(a=1-a);const i=n+a*(s-n);let c,d,f;switch(l){default:case 6:case 0:c=s,d=i,f=n;break;case 1:c=i,d=s,f=n;break;case 2:c=n,d=s,f=i;break;case 3:c=n,d=i,f=s;break;case 4:c=i,d=n,f=s;break;case 5:c=s,d=n,f=i;break}return[c*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),l=1-Math.min(1,n*(1-o)+o),s=1-Math.min(1,r*(1-o)+o);return[a*255,l*255,s*255]};u.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let o,a,l;return o=t*3.2406+n*-1.5372+r*-.4986,a=t*-.9689+n*1.8758+r*.0415,l=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,l=l>.0031308?1.055*l**(1/2.4)-.055:l*12.92,o=Math.min(Math.max(0,o),1),a=Math.min(Math.max(0,a),1),l=Math.min(Math.max(0,l),1),[o*255,a*255,l*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),l=200*(n-r);return[o,a,l]};u.lab.xyz=function(e){const t=e[0],n=e[1],r=e[2];let o,a,l;a=(t+16)/116,o=n/500+a,l=a-r/200;const s=a**3,i=o**3,c=l**3;return a=s>.008856?s:(a-16/116)/7.787,o=i>.008856?i:(o-16/116)/7.787,l=c>.008856?c:(l-16/116)/7.787,o*=95.047,a*=100,l*=108.883,[o,a,l]};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 l=Math.sqrt(n*n+r*r);return[t,l,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),l=n*Math.sin(o);return[t,a,l]};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 l=30+(Math.round(o/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return a===2&&(l+=60),l};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(s=>s+s).join(""));const r=parseInt(n,16),o=r>>16&255,a=r>>8&255,l=r&255;return[o,a,l]};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),l=o-a;let s,i;return l<1?s=a/(1-l):s=0,l<=0?i=0:o===t?i=(n-r)/l%6:o===n?i=2+(r-t)/l:i=4+(t-n)/l,i/=6,i%=1,[i*360,l*100,s*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,l=a%1,s=1-l;let i=0;switch(Math.floor(a)){case 0:o[0]=1,o[1]=l,o[2]=0;break;case 1:o[0]=s,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=l;break;case 3:o[0]=0,o[1]=s,o[2]=1;break;case 4:o[0]=l,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=s}return i=(1-n)*r,[(n*o[0]+i)*255,(n*o[1]+i)*255,(n*o[2]+i)*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 W=_e;function Qe(){const e={},t=Object.keys(W);for(let n=t.length,r=0;r1&&(n=r),e(n))};return"conversion"in e&&(t.conversion=e.conversion),t}function lt(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,l=0;l{I[e]={},Object.defineProperty(I[e],"channels",{value:U[e].channels}),Object.defineProperty(I[e],"labels",{value:U[e].labels});const t=rt(e);Object.keys(t).forEach(r=>{const o=t[r];I[e][r]=lt(o),I[e][r].raw=at(o)})});var st=I;const _=fe(st);var it=Ne,ct=function(){return it.Date.now()},ut=ct,ft=/\s/;function ht(e){for(var t=e.length;t--&&ft.test(e.charAt(t)););return t}var dt=ht,gt=dt,mt=/^\s+/;function bt(e){return e&&e.slice(0,gt(e)+1).replace(mt,"")}var vt=bt,pt=vt,ae=J,yt=Ie,le=NaN,xt=/^[-+]0x[0-9a-f]+$/i,wt=/^0b[01]+$/i,kt=/^0o[0-7]+$/i,_t=parseInt;function Et(e){if(typeof e=="number")return e;if(yt(e))return le;if(ae(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ae(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=pt(e);var n=wt.test(e);return n||kt.test(e)?_t(e.slice(2),n?2:8):xt.test(e)?le:+e}var Mt=Et,Ct=J,D=ut,se=Mt,$t="Expected a function",Ot=Math.max,Nt=Math.min;function It(e,t,n){var r,o,a,l,s,i,c=0,d=!1,f=!1,g=!0;if(typeof e!="function")throw new TypeError($t);t=se(t)||0,Ct(n)&&(d=!!n.leading,f="maxWait"in n,a=f?Ot(se(n.maxWait)||0,t):a,g="trailing"in n?!!n.trailing:g);function x(v){var C=r,T=o;return r=o=void 0,c=v,l=e.apply(T,C),l}function j(v){return c=v,s=setTimeout(b,t),d?x(v):l}function M(v){var C=v-i,T=v-c,te=t-C;return f?Nt(te,a-T):te}function p(v){var C=v-i,T=v-c;return i===void 0||C>=t||C<0||f&&T>=a}function b(){var v=D();if(p(v))return w(v);s=setTimeout(b,M(v))}function w(v){return s=void 0,g&&r?x(v):(r=o=void 0,l)}function E(){s!==void 0&&clearTimeout(s),c=0,r=i=o=s=void 0}function k(){return s===void 0?l:w(D())}function O(){var v=D(),C=p(v);if(r=arguments,o=this,i=v,C){if(s===void 0)return j(i);if(f)return clearTimeout(s),s=setTimeout(b,t),x(i)}return s===void 0&&(s=setTimeout(b,t)),l}return O.cancel=E,O.flush=k,O}var St=It,Rt=St,jt=J,Tt="Expected a function";function Ft(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(Tt);return jt(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Rt(e,t,{leading:r,maxWait:t,trailing:o})}var zt=Ft;const Ht=fe(zt);var Pt=$.div({position:"relative",maxWidth:250,'&[aria-readonly="true"]':{opacity:.5}}),Lt=$(ue)({position:"absolute",zIndex:1,top:4,left:4,"[aria-readonly=true] &":{cursor:"not-allowed"}}),qt=$.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"}}),Bt=$(Me)(({theme:e})=>({fontFamily:e.typography.fonts.base})),Wt=$.div({display:"grid",gridTemplateColumns:"repeat(9, 16px)",gap:6,padding:3,marginTop:5,width:200}),Xt=$.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})),Dt=`url('data:image/svg+xml;charset=utf-8,')`,ie=({value:e,style:t,...n})=>{let r=`linear-gradient(${e}, ${e}), ${Dt}, linear-gradient(#fff, #fff)`;return h.createElement(Xt,{...n,style:{...t,backgroundImage:r}})},Kt=$(Ce.Input)(({theme:e,readOnly:t})=>({width:"100%",paddingLeft:30,paddingRight:30,boxSizing:"border-box",fontFamily:e.typography.fonts.base})),Vt=$($e)(({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),At=/\(([0-9]+),\s*([0-9]+)%?,\s*([0-9]+)%?,?\s*([0-9.]+)?\)/,Gt=/^\s*rgba?\(([0-9]+),\s*([0-9]+),\s*([0-9]+),?\s*([0-9.]+)?\)\s*$/i,Ut=/^\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,Yt=/^\s*#?([0-9a-f]{3})\s*$/i,Jt={hex:De,rgb:Ue,hsl:Ae},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(At);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(Gt.test(e)){let[l,s,i,c]=ce(e),[d,f,g]=_.rgb.hsl([l,s,i])||[0,0,0];return{valid:t,value:e,keyword:_.rgb.keyword([l,s,i]),colorSpace:"rgb",rgb:e,hsl:`hsla(${d}, ${f}%, ${g}%, ${c})`,hex:`#${_.rgb.hex([l,s,i]).toLowerCase()}`}}if(Ut.test(e)){let[l,s,i,c]=ce(e),[d,f,g]=_.hsl.rgb([l,s,i])||[0,0,0];return{valid:t,value:e,keyword:_.hsl.keyword([l,s,i]),colorSpace:"hsl",rgb:`rgba(${d}, ${f}, ${g}, ${c})`,hsl:e,hex:`#${_.hsl.hex([l,s,i]).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}},Qt=(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(Yt);if(!r)return Y.test(t.hex)?t.hex:q.hex;let[o,a,l]=r[1].split("");return`#${o}${o}${a}${a}${l}${l}`},Zt=(e,t)=>{let[n,r]=m.useState(e||""),[o,a]=m.useState(()=>S(n)),[l,s]=m.useState((o==null?void 0:o.colorSpace)||"hex");m.useEffect(()=>{let f=e||"",g=S(f);r(f),a(g),s((g==null?void 0:g.colorSpace)||"hex")},[e]);let i=m.useMemo(()=>Qt(n,o,l).toLowerCase(),[n,o,l]),c=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),s(g.colorSpace),t(g.value))},[t]),d=m.useCallback(()=>{let f=L.indexOf(l)+1;f>=L.length&&(f=0),s(L[f]);let g=(o==null?void 0:o[L[f]])||"";r(g),t(g)},[o,l,t]);return{value:n,realValue:i,updateValue:c,color:o,colorSpace:l,cycleColorSpace:d}},X=e=>e.replace(/\s*/,"").toLowerCase(),en=(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(s=>typeof s=="string"?S(s):s.title?{...S(s.color),keyword:s.title}:S(s.color)).concat(r).filter(Boolean).slice(-27),[e,r]),l=m.useCallback(s=>{s!=null&&s.valid&&(a.some(i=>X(i[n])===X(s[n]))||o(i=>i.concat(s)))},[n,a]);return{presets:a,addPreset:l}},tn=({name:e,value:t,onChange:n,onFocus:r,onBlur:o,presetColors:a,startOpen:l=!1,argType:s})=>{var E;let i=m.useCallback(Ht(n,200),[n]),{value:c,realValue:d,updateValue:f,color:g,colorSpace:x,cycleColorSpace:j}=Zt(t,i),{presets:M,addPreset:p}=en(a,g,x),b=Jt[x],w=!!((E=s==null?void 0:s.table)!=null&&E.readonly);return h.createElement(Pt,{"aria-readonly":w},h.createElement(Lt,{startOpen:l,trigger:w?[null]:void 0,closeOnOutsideClick:!0,onVisibleChange:()=>p(g),tooltip:h.createElement(qt,null,h.createElement(b,{color:d==="transparent"?"#000000":d,onChange:f,onFocus:r,onBlur:o}),M.length>0&&h.createElement(Wt,null,M.map((k,O)=>h.createElement(ue,{key:`${k.value}-${O}`,hasChrome:!1,tooltip:h.createElement(Bt,{note:k.keyword||k.value})},h.createElement(ie,{value:k[x],active:g&&X(k[x])===X(g[x]),onClick:()=>f(k.value)})))))},h.createElement(ie,{value:d,style:{margin:4}})),h.createElement(Kt,{id:Oe(e),value:c,onChange:k=>f(k.target.value),onFocus:k=>k.target.select(),readOnly:w,placeholder:"Choose color..."}),c?h.createElement(Vt,{onClick:j}):null)},fn=tn;export{tn as ColorControl,fn as default}; diff --git a/assets/DocsRenderer-K4EAMTCU-C9CSlBK4.js b/assets/DocsRenderer-K4EAMTCU-BNMQj7Xt.js similarity index 99% rename from assets/DocsRenderer-K4EAMTCU-C9CSlBK4.js rename to assets/DocsRenderer-K4EAMTCU-BNMQj7Xt.js index fad8b14..e9fac27 100644 --- a/assets/DocsRenderer-K4EAMTCU-C9CSlBK4.js +++ b/assets/DocsRenderer-K4EAMTCU-BNMQj7Xt.js @@ -1,5 +1,5 @@ -const __vite__fileDeps=["./syntaxhighlighter-BP7B2CQK-BsNZFzTD.js","./iframe-BjtAHItA.js","./index-B3ehnkiM.js","./_commonjsHelpers-Cpj98o6Y.js","./index-DYADbu9O.js","./index-GiEMjZfh.js","./index-DrFu-skq.js","./formatter-2WMMO6ZP-BBv0efhO.js","./WithTooltip-KJL26V4Q-C-1QZcq0.js","./Color-PRSJMWNM-Zg74k_A8.js","./index-rbP-kYFP.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); -import{_ as tr}from"./iframe-BjtAHItA.js";import{r as i,R as h,$ as r0}from"./index-B3ehnkiM.js";import{g as pl}from"./_commonjsHelpers-Cpj98o6Y.js";import{O as D5,P as p3}from"./index-DYADbu9O.js";import{g as j5,j as h3,k as U5,l as m3,i as cs,m as g3,n as v3,o as y3,p as w3,q as V5,s as b3,r as W5,u as E3,v as x3,w as S3,x as C3,y as k3,z as R3,A as G5,B as _3,C as I3,D as q5,_ as A3,E as O3,F as $3,G as Lu,H as Y5,I as K5,J as X5,K as T3,L as M3,M as L3,N as z3,d as B1,S as Xs}from"./index-GiEMjZfh.js";import{d as P3}from"./index-DrFu-skq.js";var o0={},Z5={exports:{}},ct={},Q5={exports:{}},J5={};/** +const __vite__fileDeps=["./syntaxhighlighter-BP7B2CQK-9TMg8RlO.js","./iframe-Dg59W10a.js","./index-B3ehnkiM.js","./_commonjsHelpers-Cpj98o6Y.js","./index-DYADbu9O.js","./index-GiEMjZfh.js","./index-DrFu-skq.js","./formatter-2WMMO6ZP-dIbF2loY.js","./WithTooltip-KJL26V4Q-B2VLuGr9.js","./Color-PRSJMWNM-LbgHd4DX.js","./index-rbP-kYFP.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); +import{_ as tr}from"./iframe-Dg59W10a.js";import{r as i,R as h,$ as r0}from"./index-B3ehnkiM.js";import{g as pl}from"./_commonjsHelpers-Cpj98o6Y.js";import{O as D5,P as p3}from"./index-DYADbu9O.js";import{g as j5,j as h3,k as U5,l as m3,i as cs,m as g3,n as v3,o as y3,p as w3,q as V5,s as b3,r as W5,u as E3,v as x3,w as S3,x as C3,y as k3,z as R3,A as G5,B as _3,C as I3,D as q5,_ as A3,E as O3,F as $3,G as Lu,H as Y5,I as K5,J as X5,K as T3,L as M3,M as L3,N as z3,d as B1,S as Xs}from"./index-GiEMjZfh.js";import{d as P3}from"./index-DrFu-skq.js";var o0={},Z5={exports:{}},ct={},Q5={exports:{}},J5={};/** * @license React * scheduler.production.min.js * @@ -428,9 +428,9 @@ To pass a single animation please supply them in simple values, e.g. animation(' `,77:`remToPx expects a value in "rem" but you provided it in "%s". `,78:`base must be set in "px" or "%" but you set it in "%s". -`};function W_(){for(var e=arguments.length,t=new Array(e),n=0;n1?o-1:0),l=1;l=0&&o<1?(s=a,c=l):o>=1&&o<2?(s=l,c=a):o>=2&&o<3?(c=a,u=l):o>=3&&o<4?(c=l,u=a):o>=4&&o<5?(s=l,u=a):o>=5&&o<6&&(s=a,u=l);var d=n-a/2,p=s+d,m=c+d,f=u+d;return r(p,m,f)}var Wp={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function q_(e){if(typeof e!="string")return e;var t=e.toLowerCase();return Wp[t]?"#"+Wp[t]:e}var Y_=/^#[a-fA-F0-9]{6}$/,K_=/^#[a-fA-F0-9]{8}$/,X_=/^#[a-fA-F0-9]{3}$/,Z_=/^#[a-fA-F0-9]{4}$/,jc=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,Q_=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,J_=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,eI=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function r1(e){if(typeof e!="string")throw new an(3);var t=q_(e);if(t.match(Y_))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(K_)){var n=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:n}}if(t.match(X_))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(Z_)){var r=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:r}}var o=jc.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var a=Q_.exec(t.substring(0,50));if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10),alpha:parseFloat(""+a[4])>1?parseFloat(""+a[4])/100:parseFloat(""+a[4])};var l=J_.exec(t);if(l){var s=parseInt(""+l[1],10),c=parseInt(""+l[2],10)/100,u=parseInt(""+l[3],10)/100,d="rgb("+cl(s,c,u)+")",p=jc.exec(d);if(!p)throw new an(4,t,d);return{red:parseInt(""+p[1],10),green:parseInt(""+p[2],10),blue:parseInt(""+p[3],10)}}var m=eI.exec(t.substring(0,50));if(m){var f=parseInt(""+m[1],10),y=parseInt(""+m[2],10)/100,g=parseInt(""+m[3],10)/100,S="rgb("+cl(f,y,g)+")",b=jc.exec(S);if(!b)throw new an(4,t,S);return{red:parseInt(""+b[1],10),green:parseInt(""+b[2],10),blue:parseInt(""+b[3],10),alpha:parseFloat(""+m[4])>1?parseFloat(""+m[4])/100:parseFloat(""+m[4])}}throw new an(5)}function tI(e){var t=e.red/255,n=e.green/255,r=e.blue/255,o=Math.max(t,n,r),a=Math.min(t,n,r),l=(o+a)/2;if(o===a)return e.alpha!==void 0?{hue:0,saturation:0,lightness:l,alpha:e.alpha}:{hue:0,saturation:0,lightness:l};var s,c=o-a,u=l>.5?c/(2-o-a):c/(o+a);switch(o){case t:s=(n-r)/c+(n=1?os(e,t,n):"rgba("+cl(e,t,n)+","+r+")";if(typeof e=="object"&&t===void 0&&n===void 0&&r===void 0)return e.alpha>=1?os(e.hue,e.saturation,e.lightness):"rgba("+cl(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new an(2)}function wu(e,t,n){if(typeof e=="number"&&typeof t=="number"&&typeof n=="number")return yu("#"+Er(e)+Er(t)+Er(n));if(typeof e=="object"&&t===void 0&&n===void 0)return yu("#"+Er(e.red)+Er(e.green)+Er(e.blue));throw new an(6)}function as(e,t,n,r){if(typeof e=="string"&&typeof t=="number"){var o=r1(e);return"rgba("+o.red+","+o.green+","+o.blue+","+t+")"}else{if(typeof e=="number"&&typeof t=="number"&&typeof n=="number"&&typeof r=="number")return r>=1?wu(e,t,n):"rgba("+e+","+t+","+n+","+r+")";if(typeof e=="object"&&t===void 0&&n===void 0&&r===void 0)return e.alpha>=1?wu(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"}throw new an(7)}var lI=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},iI=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&typeof e.alpha=="number"},sI=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},cI=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&typeof e.alpha=="number"};function s2(e){if(typeof e!="object")throw new an(8);if(iI(e))return as(e);if(lI(e))return wu(e);if(cI(e))return aI(e);if(sI(e))return oI(e);throw new an(8)}function c2(e,t,n){return function(){var r=n.concat(Array.prototype.slice.call(arguments));return r.length>=t?e.apply(this,r):c2(e,t,r)}}function o1(e){return c2(e,e.length,[])}function a1(e,t,n){return Math.max(e,Math.min(t,n))}function uI(e,t){if(t==="transparent")return t;var n=i2(t);return s2(ee({},n,{lightness:a1(0,1,n.lightness-parseFloat(e))}))}var dI=o1(uI),wo=dI;function fI(e,t){if(t==="transparent")return t;var n=i2(t);return s2(ee({},n,{lightness:a1(0,1,n.lightness+parseFloat(e))}))}var pI=o1(fI),Gp=pI;function hI(e,t){if(t==="transparent")return t;var n=r1(t),r=typeof n.alpha=="number"?n.alpha:1,o=ee({},n,{alpha:a1(0,1,+(r*100-parseFloat(e)*100).toFixed(2)/100)});return as(o)}var mI=o1(hI),yt=mI,Zo=({theme:e})=>({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"},"& tt, & code":{fontSize:"inherit"}}),$n=({theme:e})=>({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"?yt(.1,e.color.defaultText):yt(.3,e.color.defaultText),backgroundColor:e.base==="light"?e.color.lighter:e.color.border}),ge=({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"}),qr={margin:"16px 0"},gI=({href:e,...t})=>{let n=/^\//.test(e)?`./?path=${e}`:e,r=/^#.*/.test(e)?"_self":"_top";return h.createElement("a",{href:n,target:r,...t})},u2=_(gI)(ge,({theme:e})=>({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}})),d2=_.blockquote(ge,qr,({theme:e})=>({borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}})),vI=e=>typeof e=="string",yI=/[\n\r]/g,wI=_.code(({theme:e})=>({fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",display:"inline-block",paddingLeft:2,paddingRight:2,verticalAlign:"baseline",color:"inherit"}),$n),bI=_(Gd)(({theme:e})=>({fontFamily:e.typography.fonts.mono,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"}})),l1=({className:e,children:t,...n})=>{let r=(e||"").match(/lang-(\S+)/),o=i.Children.toArray(t);return o.filter(vI).some(a=>a.match(yI))?h.createElement(bI,{bordered:!0,copyable:!0,language:(r==null?void 0:r[1])??"text",format:!1,...n},t):h.createElement(wI,{...n,className:e},o)},f2=_.div(ge),p2=_.dl(ge,qr,{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}}),h2=_.h1(ge,Zo,({theme:e})=>({fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold})),i1=_.h2(ge,Zo,({theme:e})=>({fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`})),s1=_.h3(ge,Zo,({theme:e})=>({fontSize:`${e.typography.size.m1}px`})),m2=_.h4(ge,Zo,({theme:e})=>({fontSize:`${e.typography.size.s3}px`})),g2=_.h5(ge,Zo,({theme:e})=>({fontSize:`${e.typography.size.s2}px`})),v2=_.h6(ge,Zo,({theme:e})=>({fontSize:`${e.typography.size.s2}px`,color:e.color.dark})),y2=_.hr(({theme:e})=>({border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0})),w2=_.img({maxWidth:"100%"}),b2=_.li(ge,({theme:e})=>({fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":$n({theme:e})})),EI={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},E2=_.ol(ge,qr,EI,{listStyle:"decimal"}),x2=_.p(ge,qr,({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":$n({theme:e})})),S2=_.pre(ge,qr,({theme:e})=>({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"}})),C2=_.span(ge,({theme:e})=>({"&.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"}}})),k2=_.table(ge,qr,({theme:e})=>({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}})),R2=_.title($n),xI={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},_2=_.ul(ge,qr,xI,{listStyle:"disc"}),c1=_.div(ge),I2={h1:e=>h.createElement(h2,{...de(e,"h1")}),h2:e=>h.createElement(i1,{...de(e,"h2")}),h3:e=>h.createElement(s1,{...de(e,"h3")}),h4:e=>h.createElement(m2,{...de(e,"h4")}),h5:e=>h.createElement(g2,{...de(e,"h5")}),h6:e=>h.createElement(v2,{...de(e,"h6")}),pre:e=>h.createElement(S2,{...de(e,"pre")}),a:e=>h.createElement(u2,{...de(e,"a")}),hr:e=>h.createElement(y2,{...de(e,"hr")}),dl:e=>h.createElement(p2,{...de(e,"dl")}),blockquote:e=>h.createElement(d2,{...de(e,"blockquote")}),table:e=>h.createElement(k2,{...de(e,"table")}),img:e=>h.createElement(w2,{...de(e,"img")}),div:e=>h.createElement(f2,{...de(e,"div")}),span:e=>h.createElement(C2,{...de(e,"span")}),li:e=>h.createElement(b2,{...de(e,"li")}),ul:e=>h.createElement(_2,{...de(e,"ul")}),ol:e=>h.createElement(E2,{...de(e,"ol")}),p:e=>h.createElement(x2,{...de(e,"p")}),code:e=>h.createElement(l1,{...de(e,"code")}),tt:e=>h.createElement(R2,{...de(e,"tt")}),resetwrapper:e=>h.createElement(c1,{...de(e,"resetwrapper")})},SI=_.div(({theme:e})=>({display:"inline-block",fontSize:11,lineHeight:"12px",alignSelf:"center",padding:"4px 12px",borderRadius:"3em",fontWeight:e.typography.weight.bold}),{svg:{height:12,width:12,marginRight:4,marginTop:-2,path:{fill:"currentColor"}}},({theme:e,status:t})=>{switch(t){case"critical":return{color:e.color.critical,background:e.background.critical};case"negative":return{color:e.color.negativeText,background:e.background.negative,boxShadow:e.base==="light"?`inset 0 0 0 1px ${yt(.9,e.color.negativeText)}`:"none"};case"warning":return{color:e.color.warningText,background:e.background.warning,boxShadow:e.base==="light"?`inset 0 0 0 1px ${yt(.9,e.color.warningText)}`:"none"};case"neutral":return{color:e.color.dark,background:e.color.mediumlight,boxShadow:e.base==="light"?`inset 0 0 0 1px ${yt(.9,e.color.dark)}`:"none"};case"positive":return{color:e.color.positiveText,background:e.background.positive,boxShadow:e.base==="light"?`inset 0 0 0 1px ${yt(.9,e.color.positiveText)}`:"none"};default:return{}}}),CI=({...e})=>h.createElement(SI,{...e}),kI=0,RI=e=>e.button===kI&&!e.altKey&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey,_I=(e,t)=>{RI(e)&&(e.preventDefault(),t(e))},II=_.span(({withArrow:e})=>e?{"> svg:last-of-type":{height:"0.7em",width:"0.7em",marginRight:0,marginLeft:"0.25em",bottom:"auto",verticalAlign:"inherit"}}:{},({containsIcon:e})=>e?{svg:{height:"1em",width:"1em",verticalAlign:"middle",position:"relative",bottom:0,marginRight:0}}:{}),AI=_.a(({theme:e})=>({display:"inline-block",transition:"all 150ms ease-out",textDecoration:"none",color:e.color.secondary,"&:hover, &:focus":{cursor:"pointer",color:wo(.07,e.color.secondary),"svg path:not([fill])":{fill:wo(.07,e.color.secondary)}},"&:active":{color:wo(.1,e.color.secondary),"svg path:not([fill])":{fill:wo(.1,e.color.secondary)}},svg:{display:"inline-block",height:"1em",width:"1em",verticalAlign:"text-top",position:"relative",bottom:"-0.125em",marginRight:"0.4em","& path":{fill:e.color.secondary}}}),({theme:e,secondary:t,tertiary:n})=>{let r;return t&&(r=[e.textMutedColor,e.color.dark,e.color.darker]),n&&(r=[e.color.dark,e.color.darkest,e.textMutedColor]),r?{color:r[0],"svg path:not([fill])":{fill:r[0]},"&:hover":{color:r[1],"svg path:not([fill])":{fill:r[1]}},"&:active":{color:r[2],"svg path:not([fill])":{fill:r[2]}}}:{}},({nochrome:e})=>e?{color:"inherit","&:hover, &:active":{color:"inherit",textDecoration:"underline"}}:{},({theme:e,inverse:t})=>t?{color:e.color.lightest,":not([fill])":{fill:e.color.lightest},"&:hover":{color:e.color.lighter,"svg path:not([fill])":{fill:e.color.lighter}},"&:active":{color:e.color.light,"svg path:not([fill])":{fill:e.color.light}}}:{},({isButton:e})=>e?{border:0,borderRadius:0,background:"none",padding:0,fontSize:"inherit"}:{}),Lr=({cancel:e=!0,children:t,onClick:n=void 0,withArrow:r=!1,containsIcon:o=!1,className:a=void 0,style:l=void 0,...s})=>h.createElement(AI,{...s,onClick:n&&e?c=>_I(c,n):n,className:a},h.createElement(II,{withArrow:r,containsIcon:o},t,r&&h.createElement(e1,null))),OI=_.div(({theme:e})=>({fontSize:`${e.typography.size.s2}px`,lineHeight:"1.6",h1:{fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},h2:{fontSize:`${e.typography.size.m2}px`,borderBottom:`1px solid ${e.appBorderColor}`},h3:{fontSize:`${e.typography.size.m1}px`},h4:{fontSize:`${e.typography.size.s3}px`},h5:{fontSize:`${e.typography.size.s2}px`},h6:{fontSize:`${e.typography.size.s2}px`,color:e.color.dark},"pre:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"pre pre, pre.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px"},"pre pre code, pre.prismjs code":{color:"inherit",fontSize:"inherit"},"pre code":{margin:0,padding:0,whiteSpace:"pre",border:"none",background:"transparent"},"pre code, pre tt":{backgroundColor:"transparent",border:"none"},"body > *:first-of-type":{marginTop:"0 !important"},"body > *:last-child":{marginBottom:"0 !important"},a:{color:e.color.secondary,textDecoration:"none"},"a.absent":{color:"#cc0000"},"a.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0},"h1, h2, h3, h4, h5, h6":{margin:"20px 0 10px",padding:0,cursor:"text",position:"relative","&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& tt, & code":{fontSize:"inherit"}},"h1:first-of-type + h2":{marginTop:0,paddingTop:0},"p, blockquote, ul, ol, dl, li, table, pre":{margin:"15px 0"},hr:{border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},"body > h1:first-of-type, body > h2:first-of-type, body > h3:first-of-type, body > h4:first-of-type, body > h5:first-of-type, body > h6:first-of-type":{marginTop:0,paddingTop:0},"body > h1:first-of-type + h2":{marginTop:0,paddingTop:0},"a:first-of-type h1, a:first-of-type h2, a:first-of-type h3, a:first-of-type h4, a:first-of-type h5, a:first-of-type h6":{marginTop:0,paddingTop:0},"h1 p, h2 p, h3 p, h4 p, h5 p, h6 p":{marginTop:0},"li p.first":{display:"inline-block"},"ul, ol":{paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},dl:{padding:0},"dl dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",margin:"0 0 15px",padding:"0 15px","&:first-of-type":{padding:0},"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},blockquote:{borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},table:{padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:"white",margin:0,padding:0,"& th":{fontWeight:"bold",border:`1px solid ${e.appBorderColor}`,textAlign:"left",margin:0,padding:"6px 13px"},"& td":{border:`1px solid ${e.appBorderColor}`,textAlign:"left",margin:0,padding:"6px 13px"},"&:nth-of-type(2n)":{backgroundColor:e.color.lighter},"& th :first-of-type, & td :first-of-type":{marginTop:0},"& th :last-child, & td :last-child":{marginBottom:0}}},img:{maxWidth:"100%"},"span.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"}},"span.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"}},"span.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"}},"span.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"span.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}},"code, tt":{margin:"0 2px",padding:"0 5px",whiteSpace:"nowrap",border:`1px solid ${e.color.mediumlight}`,backgroundColor:e.color.lighter,borderRadius:3,color:e.base==="dark"&&e.color.darkest}})),zr=[],Uo=null,$I=i.lazy(async()=>{let{SyntaxHighlighter:e}=await tr(()=>import("./syntaxhighlighter-BP7B2CQK-BsNZFzTD.js"),__vite__mapDeps([0,1,2,3,4,5,6]),import.meta.url);return zr.length>0&&(zr.forEach(t=>{e.registerLanguage(...t)}),zr=[]),Uo===null&&(Uo=e),{default:t=>h.createElement(e,{...t})}}),TI=i.lazy(async()=>{let[{SyntaxHighlighter:e},{formatter:t}]=await Promise.all([tr(()=>import("./syntaxhighlighter-BP7B2CQK-BsNZFzTD.js"),__vite__mapDeps([0,1,2,3,4,5,6]),import.meta.url),tr(()=>import("./formatter-2WMMO6ZP-BBv0efhO.js"),__vite__mapDeps([7,1,2,3,4,5,6]),import.meta.url)]);return zr.length>0&&(zr.forEach(n=>{e.registerLanguage(...n)}),zr=[]),Uo===null&&(Uo=e),{default:n=>h.createElement(e,{...n,formatter:t})}}),Ds=e=>h.createElement(i.Suspense,{fallback:h.createElement("div",null)},e.format!==!1?h.createElement(TI,{...e}):h.createElement($I,{...e}));Ds.registerLanguage=(...e)=>{if(Uo!==null){Uo.registerLanguage(...e);return}zr.push(e)};var A2={};wb(A2,{Actions:()=>HI,CloseButton:()=>M2,Col:()=>z2,Container:()=>T2,Content:()=>PI,Description:()=>FI,Error:()=>DI,ErrorWrapper:()=>P2,Header:()=>NI,Overlay:()=>$2,Row:()=>L2,Title:()=>BI});var dr=i.forwardRef(({asChild:e=!1,animation:t="none",size:n="small",variant:r="outline",padding:o="medium",disabled:a=!1,active:l=!1,onClick:s,...c},u)=>{let d="button";c.isLink&&(d="a"),e&&(d=bl);let p=r,m=n,[f,y]=i.useState(!1),g=S=>{s&&s(S),t!=="none"&&y(!0)};if(i.useEffect(()=>{let S=setTimeout(()=>{f&&y(!1)},1e3);return()=>clearTimeout(S)},[f]),c.primary&&(p="solid",m="medium"),(c.secondary||c.tertiary||c.gray||c.outline||c.inForm)&&(p="outline",m="medium"),c.small||c.isLink||c.primary||c.secondary||c.tertiary||c.gray||c.outline||c.inForm||c.containsIcon){let S=h.Children.toArray(c.children).filter(b=>typeof b=="string"&&b!=="");a2(`Use of deprecated props in the button ${S.length>0?`"${S.join(" ")}"`:"component"} detected, see the migration notes at https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#new-ui-and-props-for-button-and-iconbutton-components`)}return h.createElement(MI,{as:d,ref:u,variant:p,size:m,padding:o,disabled:a,active:l,animating:f,animation:t,onClick:g,...c})});dr.displayName="Button";var MI=_("button",{shouldForwardProp:e=>_d(e)})(({theme:e,variant:t,size:n,disabled:r,active:o,animating:a,animation:l,padding:s})=>({border:0,cursor:r?"not-allowed":"pointer",display:"inline-flex",gap:"6px",alignItems:"center",justifyContent:"center",overflow:"hidden",padding:s==="small"&&n==="small"?"0 7px":s==="small"&&n==="medium"?"0 9px":n==="small"?"0 10px":n==="medium"?"0 12px":0,height:n==="small"?"28px":"32px",position:"relative",textAlign:"center",textDecoration:"none",transitionProperty:"background, box-shadow",transitionDuration:"150ms",transitionTimingFunction:"ease-out",verticalAlign:"top",whiteSpace:"nowrap",userSelect:"none",opacity:r?.5:1,margin:0,fontSize:`${e.typography.size.s1}px`,fontWeight:e.typography.weight.bold,lineHeight:"1",background:t==="solid"?e.color.secondary:t==="outline"?e.button.background:t==="ghost"&&o?e.background.hoverable:"transparent",...t==="ghost"?{".sb-bar &":{background:o?yt(.9,e.barTextColor):"transparent",color:o?e.barSelectedColor:e.barTextColor,"&:hover":{color:e.barHoverColor,background:yt(.86,e.barHoverColor)},"&:active":{color:e.barSelectedColor,background:yt(.9,e.barSelectedColor)},"&:focus":{boxShadow:`${as(e.barHoverColor,1)} 0 0 0 1px inset`,outline:"none"}}}:{},color:t==="solid"?e.color.lightest:t==="outline"?e.input.color:t==="ghost"&&o?e.color.secondary:t==="ghost"?e.color.mediumdark:e.input.color,boxShadow:t==="outline"?`${e.button.border} 0 0 0 1px inset`:"none",borderRadius:e.input.borderRadius,flexShrink:0,"&:hover":{color:t==="ghost"?e.color.secondary:null,background:(()=>{let c=e.color.secondary;return t==="solid"&&(c=e.color.secondary),t==="outline"&&(c=e.button.background),t==="ghost"?yt(.86,e.color.secondary):e.base==="light"?wo(.02,c):Gp(.03,c)})()},"&:active":{color:t==="ghost"?e.color.secondary:null,background:(()=>{let c=e.color.secondary;return t==="solid"&&(c=e.color.secondary),t==="outline"&&(c=e.button.background),t==="ghost"?e.background.hoverable:e.base==="light"?wo(.02,c):Gp(.03,c)})()},"&:focus":{boxShadow:`${as(e.color.secondary,1)} 0 0 0 1px inset`,outline:"none"},"> svg":{animation:a&&l!=="none"?`${e.animation[l]} 1000ms ease-out`:""}})),er=i.forwardRef(({padding:e="small",variant:t="ghost",...n},r)=>h.createElement(dr,{padding:e,variant:t,ref:r,...n}));er.displayName="IconButton";var O2=An({from:{opacity:0},to:{opacity:1}}),LI=An({from:{maxHeight:0},to:{}}),zI=An({from:{opacity:0,transform:"translate(-50%, -50%) scale(0.9)"},to:{opacity:1,transform:"translate(-50%, -50%) scale(1)"}}),$2=_.div({backgroundColor:"rgba(27, 28, 29, 0.2)",position:"fixed",inset:0,width:"100%",height:"100%",zIndex:10,animation:`${O2} 200ms`}),T2=_.div(({theme:e,width:t,height:n})=>({backgroundColor:e.background.bar,borderRadius:6,boxShadow:"rgba(255, 255, 255, 0.05) 0 0 0 1px inset, rgba(14, 18, 22, 0.35) 0px 10px 38px -10px",position:"fixed",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:t??740,height:n??"auto",maxWidth:"calc(100% - 40px)",maxHeight:"85vh",overflow:"hidden",zIndex:11,animation:`${zI} 200ms`,"&:focus-visible":{outline:"none"}})),M2=e=>h.createElement(o2,{asChild:!0},h.createElement(er,{...e},h.createElement(bv,null))),PI=_.div({display:"flex",flexDirection:"column",margin:16,gap:16}),L2=_.div({display:"flex",justifyContent:"space-between",gap:16}),z2=_.div({display:"flex",flexDirection:"column",gap:4}),NI=e=>h.createElement(L2,null,h.createElement(z2,{...e}),h.createElement(M2,null)),BI=_(n2)(({theme:e})=>({margin:0,fontSize:e.typography.size.s3,fontWeight:e.typography.weight.bold})),FI=_(r2)(({theme:e})=>({position:"relative",zIndex:1,margin:0,fontSize:e.typography.size.s2})),HI=_.div({display:"flex",flexDirection:"row-reverse",gap:8}),P2=_.div(({theme:e})=>({maxHeight:100,overflow:"auto",animation:`${LI} 300ms, ${O2} 300ms`,backgroundColor:e.background.critical,color:e.color.lightest,fontSize:e.typography.size.s2,"& > div":{position:"relative",padding:"8px 16px"}})),DI=({children:e,...t})=>h.createElement(P2,{...t},h.createElement("div",null,e));function jI({children:e,width:t,height:n,onEscapeKeyDown:r,onInteractOutside:o=c=>c.preventDefault(),className:a,container:l,...s}){return h.createElement(Qv,{...s},h.createElement(Jv,{container:l},h.createElement(e2,{asChild:!0},h.createElement($2,null)),h.createElement(t2,{asChild:!0,onInteractOutside:o,onEscapeKeyDown:r},h.createElement(T2,{className:a,width:t,height:n},e))))}var UI=Object.assign(jI,A2,{Dialog:N_}),VI=e=>typeof e=="number"?e:Number(e),WI=_.div(({theme:e,col:t,row:n=1})=>t?{display:"inline-block",verticalAlign:"inherit","& > *":{marginLeft:t*e.layoutMargin,verticalAlign:"inherit"},[`& > *:first-child${au}`]:{marginLeft:0}}:{"& > *":{marginTop:n*e.layoutMargin},[`& > *:first-child${au}`]:{marginTop:0}},({theme:e,outer:t,col:n,row:r})=>{switch(!0){case!!(t&&n):return{marginLeft:t*e.layoutMargin,marginRight:t*e.layoutMargin};case!!(t&&r):return{marginTop:t*e.layoutMargin,marginBottom:t*e.layoutMargin};default:return{}}}),GI=({col:e,row:t,outer:n,children:r,...o})=>{let a=VI(typeof n=="number"||!n?n:e||t);return h.createElement(WI,{col:e,row:t,outer:a,...o},r)},qI=_.div(({theme:e})=>({fontWeight:e.typography.weight.bold})),YI=_.div(),KI=_.div(({theme:e})=>({padding:30,textAlign:"center",color:e.color.defaultText,fontSize:e.typography.size.s2-1})),XI=({children:e,...t})=>{let[n,r]=i.Children.toArray(e);return h.createElement(KI,{...t},h.createElement(qI,null,n),r&&h.createElement(YI,null,r))};function ZI(e,t){var n=i.useRef(null),r=i.useRef(null);r.current=t;var o=i.useRef(null);i.useEffect(function(){a()});var a=i.useCallback(function(){var l=o.current,s=r.current,c=l||(s?s instanceof Element?s:s.current:null);n.current&&n.current.element===c&&n.current.subscriber===e||(n.current&&n.current.cleanup&&n.current.cleanup(),n.current={element:c,subscriber:e,cleanup:c?e(c):void 0})},[e]);return i.useEffect(function(){return function(){n.current&&n.current.cleanup&&(n.current.cleanup(),n.current=null)}},[]),i.useCallback(function(l){o.current=l,a()},[a])}function qp(e,t,n){return e[t]?e[t][0]?e[t][0][n]:e[t][n]:t==="contentBoxSize"?e.contentRect[n==="inlineSize"?"width":"height"]:void 0}function N2(e){e===void 0&&(e={});var t=e.onResize,n=i.useRef(void 0);n.current=t;var r=e.round||Math.round,o=i.useRef(),a=i.useState({width:void 0,height:void 0}),l=a[0],s=a[1],c=i.useRef(!1);i.useEffect(function(){return c.current=!1,function(){c.current=!0}},[]);var u=i.useRef({width:void 0,height:void 0}),d=ZI(i.useCallback(function(p){return(!o.current||o.current.box!==e.box||o.current.round!==r)&&(o.current={box:e.box,round:r,instance:new ResizeObserver(function(m){var f=m[0],y=e.box==="border-box"?"borderBoxSize":e.box==="device-pixel-content-box"?"devicePixelContentBoxSize":"contentBoxSize",g=qp(f,y,"inlineSize"),S=qp(f,y,"blockSize"),b=g?r(g):void 0,v=S?r(S):void 0;if(u.current.width!==b||u.current.height!==v){var w={width:b,height:v};u.current.width=b,u.current.height=v,n.current?n.current(w):c.current||s(w)}})}),o.current.instance.observe(p,{box:e.box}),function(){o.current&&o.current.instance.unobserve(p)}},[e.box,r]),e.ref);return i.useMemo(function(){return{ref:d,width:l.width,height:l.height}},[d,l.width,l.height])}var QI=_.div(({scale:e=1,elementHeight:t})=>({height:t||"auto",transformOrigin:"top left",transform:`scale(${1/e})`}));function JI({scale:e,children:t}){let n=i.useRef(null),[r,o]=i.useState(0),a=i.useCallback(({height:l})=>{l&&o(l/e)},[e]);return i.useEffect(()=>{n.current&&o(n.current.getBoundingClientRect().height)},[e]),N2({ref:n,onResize:a}),h.createElement(QI,{scale:e,elementHeight:r},h.createElement("div",{ref:n,className:"innerZoomElementWrapper"},t))}var eA=class extends i.Component{constructor(){super(...arguments),this.iframe=null}componentDidMount(){let{iFrameRef:e}=this.props;this.iframe=e.current}shouldComponentUpdate(e){let{scale:t,active:n}=this.props;return t!==e.scale&&this.setIframeInnerZoom(e.scale),n!==e.active&&this.iframe.setAttribute("data-is-storybook",e.active?"true":"false"),e.children.props.src!==this.props.children.props.src}setIframeInnerZoom(e){try{Object.assign(this.iframe.contentDocument.body.style,{width:`${e*100}%`,height:`${e*100}%`,transform:`scale(${1/e})`,transformOrigin:"top left"})}catch{this.setIframeZoom(e)}}setIframeZoom(e){Object.assign(this.iframe.style,{width:`${e*100}%`,height:`${e*100}%`,transform:`scale(${1/e})`,transformOrigin:"top left"})}render(){let{children:e}=this.props;return h.createElement(h.Fragment,null,e)}},B2={Element:JI,IFrame:eA},{document:tA}=F_,nA=_.strong(({theme:e})=>({color:e.color.orange})),rA=_.strong(({theme:e})=>({color:e.color.ancillary,textDecoration:"underline"})),Yp=_.em(({theme:e})=>({color:e.textMutedColor})),oA=/(Error): (.*)\n/,aA=/at (?:(.*) )?\(?(.+)\)?/,lA=/([^@]+)?(?:\/<)?@(.+)?/,iA=/([^@]+)?@(.+)?/,F2=({error:e})=>{if(!e)return h.createElement(i.Fragment,null,"This error has no stack or message");if(!e.stack)return h.createElement(i.Fragment,null,e.message||"This error has no stack or message");let t=e.stack.toString();t&&e.message&&!t.includes(e.message)&&(t=`Error: ${e.message} +`};function W_(){for(var e=arguments.length,t=new Array(e),n=0;n1?o-1:0),l=1;l=0&&o<1?(s=a,c=l):o>=1&&o<2?(s=l,c=a):o>=2&&o<3?(c=a,u=l):o>=3&&o<4?(c=l,u=a):o>=4&&o<5?(s=l,u=a):o>=5&&o<6&&(s=a,u=l);var d=n-a/2,p=s+d,m=c+d,f=u+d;return r(p,m,f)}var Wp={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function q_(e){if(typeof e!="string")return e;var t=e.toLowerCase();return Wp[t]?"#"+Wp[t]:e}var Y_=/^#[a-fA-F0-9]{6}$/,K_=/^#[a-fA-F0-9]{8}$/,X_=/^#[a-fA-F0-9]{3}$/,Z_=/^#[a-fA-F0-9]{4}$/,jc=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,Q_=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,J_=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,eI=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function r1(e){if(typeof e!="string")throw new an(3);var t=q_(e);if(t.match(Y_))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(K_)){var n=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:n}}if(t.match(X_))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(Z_)){var r=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:r}}var o=jc.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var a=Q_.exec(t.substring(0,50));if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10),alpha:parseFloat(""+a[4])>1?parseFloat(""+a[4])/100:parseFloat(""+a[4])};var l=J_.exec(t);if(l){var s=parseInt(""+l[1],10),c=parseInt(""+l[2],10)/100,u=parseInt(""+l[3],10)/100,d="rgb("+cl(s,c,u)+")",p=jc.exec(d);if(!p)throw new an(4,t,d);return{red:parseInt(""+p[1],10),green:parseInt(""+p[2],10),blue:parseInt(""+p[3],10)}}var m=eI.exec(t.substring(0,50));if(m){var f=parseInt(""+m[1],10),y=parseInt(""+m[2],10)/100,g=parseInt(""+m[3],10)/100,S="rgb("+cl(f,y,g)+")",b=jc.exec(S);if(!b)throw new an(4,t,S);return{red:parseInt(""+b[1],10),green:parseInt(""+b[2],10),blue:parseInt(""+b[3],10),alpha:parseFloat(""+m[4])>1?parseFloat(""+m[4])/100:parseFloat(""+m[4])}}throw new an(5)}function tI(e){var t=e.red/255,n=e.green/255,r=e.blue/255,o=Math.max(t,n,r),a=Math.min(t,n,r),l=(o+a)/2;if(o===a)return e.alpha!==void 0?{hue:0,saturation:0,lightness:l,alpha:e.alpha}:{hue:0,saturation:0,lightness:l};var s,c=o-a,u=l>.5?c/(2-o-a):c/(o+a);switch(o){case t:s=(n-r)/c+(n=1?os(e,t,n):"rgba("+cl(e,t,n)+","+r+")";if(typeof e=="object"&&t===void 0&&n===void 0&&r===void 0)return e.alpha>=1?os(e.hue,e.saturation,e.lightness):"rgba("+cl(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new an(2)}function wu(e,t,n){if(typeof e=="number"&&typeof t=="number"&&typeof n=="number")return yu("#"+Er(e)+Er(t)+Er(n));if(typeof e=="object"&&t===void 0&&n===void 0)return yu("#"+Er(e.red)+Er(e.green)+Er(e.blue));throw new an(6)}function as(e,t,n,r){if(typeof e=="string"&&typeof t=="number"){var o=r1(e);return"rgba("+o.red+","+o.green+","+o.blue+","+t+")"}else{if(typeof e=="number"&&typeof t=="number"&&typeof n=="number"&&typeof r=="number")return r>=1?wu(e,t,n):"rgba("+e+","+t+","+n+","+r+")";if(typeof e=="object"&&t===void 0&&n===void 0&&r===void 0)return e.alpha>=1?wu(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"}throw new an(7)}var lI=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},iI=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&typeof e.alpha=="number"},sI=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},cI=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&typeof e.alpha=="number"};function s2(e){if(typeof e!="object")throw new an(8);if(iI(e))return as(e);if(lI(e))return wu(e);if(cI(e))return aI(e);if(sI(e))return oI(e);throw new an(8)}function c2(e,t,n){return function(){var r=n.concat(Array.prototype.slice.call(arguments));return r.length>=t?e.apply(this,r):c2(e,t,r)}}function o1(e){return c2(e,e.length,[])}function a1(e,t,n){return Math.max(e,Math.min(t,n))}function uI(e,t){if(t==="transparent")return t;var n=i2(t);return s2(ee({},n,{lightness:a1(0,1,n.lightness-parseFloat(e))}))}var dI=o1(uI),wo=dI;function fI(e,t){if(t==="transparent")return t;var n=i2(t);return s2(ee({},n,{lightness:a1(0,1,n.lightness+parseFloat(e))}))}var pI=o1(fI),Gp=pI;function hI(e,t){if(t==="transparent")return t;var n=r1(t),r=typeof n.alpha=="number"?n.alpha:1,o=ee({},n,{alpha:a1(0,1,+(r*100-parseFloat(e)*100).toFixed(2)/100)});return as(o)}var mI=o1(hI),yt=mI,Zo=({theme:e})=>({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"},"& tt, & code":{fontSize:"inherit"}}),$n=({theme:e})=>({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"?yt(.1,e.color.defaultText):yt(.3,e.color.defaultText),backgroundColor:e.base==="light"?e.color.lighter:e.color.border}),ge=({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"}),qr={margin:"16px 0"},gI=({href:e,...t})=>{let n=/^\//.test(e)?`./?path=${e}`:e,r=/^#.*/.test(e)?"_self":"_top";return h.createElement("a",{href:n,target:r,...t})},u2=_(gI)(ge,({theme:e})=>({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}})),d2=_.blockquote(ge,qr,({theme:e})=>({borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}})),vI=e=>typeof e=="string",yI=/[\n\r]/g,wI=_.code(({theme:e})=>({fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",display:"inline-block",paddingLeft:2,paddingRight:2,verticalAlign:"baseline",color:"inherit"}),$n),bI=_(Gd)(({theme:e})=>({fontFamily:e.typography.fonts.mono,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"}})),l1=({className:e,children:t,...n})=>{let r=(e||"").match(/lang-(\S+)/),o=i.Children.toArray(t);return o.filter(vI).some(a=>a.match(yI))?h.createElement(bI,{bordered:!0,copyable:!0,language:(r==null?void 0:r[1])??"text",format:!1,...n},t):h.createElement(wI,{...n,className:e},o)},f2=_.div(ge),p2=_.dl(ge,qr,{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}}),h2=_.h1(ge,Zo,({theme:e})=>({fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold})),i1=_.h2(ge,Zo,({theme:e})=>({fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`})),s1=_.h3(ge,Zo,({theme:e})=>({fontSize:`${e.typography.size.m1}px`})),m2=_.h4(ge,Zo,({theme:e})=>({fontSize:`${e.typography.size.s3}px`})),g2=_.h5(ge,Zo,({theme:e})=>({fontSize:`${e.typography.size.s2}px`})),v2=_.h6(ge,Zo,({theme:e})=>({fontSize:`${e.typography.size.s2}px`,color:e.color.dark})),y2=_.hr(({theme:e})=>({border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0})),w2=_.img({maxWidth:"100%"}),b2=_.li(ge,({theme:e})=>({fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":$n({theme:e})})),EI={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},E2=_.ol(ge,qr,EI,{listStyle:"decimal"}),x2=_.p(ge,qr,({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":$n({theme:e})})),S2=_.pre(ge,qr,({theme:e})=>({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"}})),C2=_.span(ge,({theme:e})=>({"&.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"}}})),k2=_.table(ge,qr,({theme:e})=>({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}})),R2=_.title($n),xI={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},_2=_.ul(ge,qr,xI,{listStyle:"disc"}),c1=_.div(ge),I2={h1:e=>h.createElement(h2,{...de(e,"h1")}),h2:e=>h.createElement(i1,{...de(e,"h2")}),h3:e=>h.createElement(s1,{...de(e,"h3")}),h4:e=>h.createElement(m2,{...de(e,"h4")}),h5:e=>h.createElement(g2,{...de(e,"h5")}),h6:e=>h.createElement(v2,{...de(e,"h6")}),pre:e=>h.createElement(S2,{...de(e,"pre")}),a:e=>h.createElement(u2,{...de(e,"a")}),hr:e=>h.createElement(y2,{...de(e,"hr")}),dl:e=>h.createElement(p2,{...de(e,"dl")}),blockquote:e=>h.createElement(d2,{...de(e,"blockquote")}),table:e=>h.createElement(k2,{...de(e,"table")}),img:e=>h.createElement(w2,{...de(e,"img")}),div:e=>h.createElement(f2,{...de(e,"div")}),span:e=>h.createElement(C2,{...de(e,"span")}),li:e=>h.createElement(b2,{...de(e,"li")}),ul:e=>h.createElement(_2,{...de(e,"ul")}),ol:e=>h.createElement(E2,{...de(e,"ol")}),p:e=>h.createElement(x2,{...de(e,"p")}),code:e=>h.createElement(l1,{...de(e,"code")}),tt:e=>h.createElement(R2,{...de(e,"tt")}),resetwrapper:e=>h.createElement(c1,{...de(e,"resetwrapper")})},SI=_.div(({theme:e})=>({display:"inline-block",fontSize:11,lineHeight:"12px",alignSelf:"center",padding:"4px 12px",borderRadius:"3em",fontWeight:e.typography.weight.bold}),{svg:{height:12,width:12,marginRight:4,marginTop:-2,path:{fill:"currentColor"}}},({theme:e,status:t})=>{switch(t){case"critical":return{color:e.color.critical,background:e.background.critical};case"negative":return{color:e.color.negativeText,background:e.background.negative,boxShadow:e.base==="light"?`inset 0 0 0 1px ${yt(.9,e.color.negativeText)}`:"none"};case"warning":return{color:e.color.warningText,background:e.background.warning,boxShadow:e.base==="light"?`inset 0 0 0 1px ${yt(.9,e.color.warningText)}`:"none"};case"neutral":return{color:e.color.dark,background:e.color.mediumlight,boxShadow:e.base==="light"?`inset 0 0 0 1px ${yt(.9,e.color.dark)}`:"none"};case"positive":return{color:e.color.positiveText,background:e.background.positive,boxShadow:e.base==="light"?`inset 0 0 0 1px ${yt(.9,e.color.positiveText)}`:"none"};default:return{}}}),CI=({...e})=>h.createElement(SI,{...e}),kI=0,RI=e=>e.button===kI&&!e.altKey&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey,_I=(e,t)=>{RI(e)&&(e.preventDefault(),t(e))},II=_.span(({withArrow:e})=>e?{"> svg:last-of-type":{height:"0.7em",width:"0.7em",marginRight:0,marginLeft:"0.25em",bottom:"auto",verticalAlign:"inherit"}}:{},({containsIcon:e})=>e?{svg:{height:"1em",width:"1em",verticalAlign:"middle",position:"relative",bottom:0,marginRight:0}}:{}),AI=_.a(({theme:e})=>({display:"inline-block",transition:"all 150ms ease-out",textDecoration:"none",color:e.color.secondary,"&:hover, &:focus":{cursor:"pointer",color:wo(.07,e.color.secondary),"svg path:not([fill])":{fill:wo(.07,e.color.secondary)}},"&:active":{color:wo(.1,e.color.secondary),"svg path:not([fill])":{fill:wo(.1,e.color.secondary)}},svg:{display:"inline-block",height:"1em",width:"1em",verticalAlign:"text-top",position:"relative",bottom:"-0.125em",marginRight:"0.4em","& path":{fill:e.color.secondary}}}),({theme:e,secondary:t,tertiary:n})=>{let r;return t&&(r=[e.textMutedColor,e.color.dark,e.color.darker]),n&&(r=[e.color.dark,e.color.darkest,e.textMutedColor]),r?{color:r[0],"svg path:not([fill])":{fill:r[0]},"&:hover":{color:r[1],"svg path:not([fill])":{fill:r[1]}},"&:active":{color:r[2],"svg path:not([fill])":{fill:r[2]}}}:{}},({nochrome:e})=>e?{color:"inherit","&:hover, &:active":{color:"inherit",textDecoration:"underline"}}:{},({theme:e,inverse:t})=>t?{color:e.color.lightest,":not([fill])":{fill:e.color.lightest},"&:hover":{color:e.color.lighter,"svg path:not([fill])":{fill:e.color.lighter}},"&:active":{color:e.color.light,"svg path:not([fill])":{fill:e.color.light}}}:{},({isButton:e})=>e?{border:0,borderRadius:0,background:"none",padding:0,fontSize:"inherit"}:{}),Lr=({cancel:e=!0,children:t,onClick:n=void 0,withArrow:r=!1,containsIcon:o=!1,className:a=void 0,style:l=void 0,...s})=>h.createElement(AI,{...s,onClick:n&&e?c=>_I(c,n):n,className:a},h.createElement(II,{withArrow:r,containsIcon:o},t,r&&h.createElement(e1,null))),OI=_.div(({theme:e})=>({fontSize:`${e.typography.size.s2}px`,lineHeight:"1.6",h1:{fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},h2:{fontSize:`${e.typography.size.m2}px`,borderBottom:`1px solid ${e.appBorderColor}`},h3:{fontSize:`${e.typography.size.m1}px`},h4:{fontSize:`${e.typography.size.s3}px`},h5:{fontSize:`${e.typography.size.s2}px`},h6:{fontSize:`${e.typography.size.s2}px`,color:e.color.dark},"pre:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"pre pre, pre.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px"},"pre pre code, pre.prismjs code":{color:"inherit",fontSize:"inherit"},"pre code":{margin:0,padding:0,whiteSpace:"pre",border:"none",background:"transparent"},"pre code, pre tt":{backgroundColor:"transparent",border:"none"},"body > *:first-of-type":{marginTop:"0 !important"},"body > *:last-child":{marginBottom:"0 !important"},a:{color:e.color.secondary,textDecoration:"none"},"a.absent":{color:"#cc0000"},"a.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0},"h1, h2, h3, h4, h5, h6":{margin:"20px 0 10px",padding:0,cursor:"text",position:"relative","&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& tt, & code":{fontSize:"inherit"}},"h1:first-of-type + h2":{marginTop:0,paddingTop:0},"p, blockquote, ul, ol, dl, li, table, pre":{margin:"15px 0"},hr:{border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},"body > h1:first-of-type, body > h2:first-of-type, body > h3:first-of-type, body > h4:first-of-type, body > h5:first-of-type, body > h6:first-of-type":{marginTop:0,paddingTop:0},"body > h1:first-of-type + h2":{marginTop:0,paddingTop:0},"a:first-of-type h1, a:first-of-type h2, a:first-of-type h3, a:first-of-type h4, a:first-of-type h5, a:first-of-type h6":{marginTop:0,paddingTop:0},"h1 p, h2 p, h3 p, h4 p, h5 p, h6 p":{marginTop:0},"li p.first":{display:"inline-block"},"ul, ol":{paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},dl:{padding:0},"dl dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",margin:"0 0 15px",padding:"0 15px","&:first-of-type":{padding:0},"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},blockquote:{borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},table:{padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:"white",margin:0,padding:0,"& th":{fontWeight:"bold",border:`1px solid ${e.appBorderColor}`,textAlign:"left",margin:0,padding:"6px 13px"},"& td":{border:`1px solid ${e.appBorderColor}`,textAlign:"left",margin:0,padding:"6px 13px"},"&:nth-of-type(2n)":{backgroundColor:e.color.lighter},"& th :first-of-type, & td :first-of-type":{marginTop:0},"& th :last-child, & td :last-child":{marginBottom:0}}},img:{maxWidth:"100%"},"span.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"}},"span.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"}},"span.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"}},"span.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"span.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}},"code, tt":{margin:"0 2px",padding:"0 5px",whiteSpace:"nowrap",border:`1px solid ${e.color.mediumlight}`,backgroundColor:e.color.lighter,borderRadius:3,color:e.base==="dark"&&e.color.darkest}})),zr=[],Uo=null,$I=i.lazy(async()=>{let{SyntaxHighlighter:e}=await tr(()=>import("./syntaxhighlighter-BP7B2CQK-9TMg8RlO.js"),__vite__mapDeps([0,1,2,3,4,5,6]),import.meta.url);return zr.length>0&&(zr.forEach(t=>{e.registerLanguage(...t)}),zr=[]),Uo===null&&(Uo=e),{default:t=>h.createElement(e,{...t})}}),TI=i.lazy(async()=>{let[{SyntaxHighlighter:e},{formatter:t}]=await Promise.all([tr(()=>import("./syntaxhighlighter-BP7B2CQK-9TMg8RlO.js"),__vite__mapDeps([0,1,2,3,4,5,6]),import.meta.url),tr(()=>import("./formatter-2WMMO6ZP-dIbF2loY.js"),__vite__mapDeps([7,1,2,3,4,5,6]),import.meta.url)]);return zr.length>0&&(zr.forEach(n=>{e.registerLanguage(...n)}),zr=[]),Uo===null&&(Uo=e),{default:n=>h.createElement(e,{...n,formatter:t})}}),Ds=e=>h.createElement(i.Suspense,{fallback:h.createElement("div",null)},e.format!==!1?h.createElement(TI,{...e}):h.createElement($I,{...e}));Ds.registerLanguage=(...e)=>{if(Uo!==null){Uo.registerLanguage(...e);return}zr.push(e)};var A2={};wb(A2,{Actions:()=>HI,CloseButton:()=>M2,Col:()=>z2,Container:()=>T2,Content:()=>PI,Description:()=>FI,Error:()=>DI,ErrorWrapper:()=>P2,Header:()=>NI,Overlay:()=>$2,Row:()=>L2,Title:()=>BI});var dr=i.forwardRef(({asChild:e=!1,animation:t="none",size:n="small",variant:r="outline",padding:o="medium",disabled:a=!1,active:l=!1,onClick:s,...c},u)=>{let d="button";c.isLink&&(d="a"),e&&(d=bl);let p=r,m=n,[f,y]=i.useState(!1),g=S=>{s&&s(S),t!=="none"&&y(!0)};if(i.useEffect(()=>{let S=setTimeout(()=>{f&&y(!1)},1e3);return()=>clearTimeout(S)},[f]),c.primary&&(p="solid",m="medium"),(c.secondary||c.tertiary||c.gray||c.outline||c.inForm)&&(p="outline",m="medium"),c.small||c.isLink||c.primary||c.secondary||c.tertiary||c.gray||c.outline||c.inForm||c.containsIcon){let S=h.Children.toArray(c.children).filter(b=>typeof b=="string"&&b!=="");a2(`Use of deprecated props in the button ${S.length>0?`"${S.join(" ")}"`:"component"} detected, see the migration notes at https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#new-ui-and-props-for-button-and-iconbutton-components`)}return h.createElement(MI,{as:d,ref:u,variant:p,size:m,padding:o,disabled:a,active:l,animating:f,animation:t,onClick:g,...c})});dr.displayName="Button";var MI=_("button",{shouldForwardProp:e=>_d(e)})(({theme:e,variant:t,size:n,disabled:r,active:o,animating:a,animation:l,padding:s})=>({border:0,cursor:r?"not-allowed":"pointer",display:"inline-flex",gap:"6px",alignItems:"center",justifyContent:"center",overflow:"hidden",padding:s==="small"&&n==="small"?"0 7px":s==="small"&&n==="medium"?"0 9px":n==="small"?"0 10px":n==="medium"?"0 12px":0,height:n==="small"?"28px":"32px",position:"relative",textAlign:"center",textDecoration:"none",transitionProperty:"background, box-shadow",transitionDuration:"150ms",transitionTimingFunction:"ease-out",verticalAlign:"top",whiteSpace:"nowrap",userSelect:"none",opacity:r?.5:1,margin:0,fontSize:`${e.typography.size.s1}px`,fontWeight:e.typography.weight.bold,lineHeight:"1",background:t==="solid"?e.color.secondary:t==="outline"?e.button.background:t==="ghost"&&o?e.background.hoverable:"transparent",...t==="ghost"?{".sb-bar &":{background:o?yt(.9,e.barTextColor):"transparent",color:o?e.barSelectedColor:e.barTextColor,"&:hover":{color:e.barHoverColor,background:yt(.86,e.barHoverColor)},"&:active":{color:e.barSelectedColor,background:yt(.9,e.barSelectedColor)},"&:focus":{boxShadow:`${as(e.barHoverColor,1)} 0 0 0 1px inset`,outline:"none"}}}:{},color:t==="solid"?e.color.lightest:t==="outline"?e.input.color:t==="ghost"&&o?e.color.secondary:t==="ghost"?e.color.mediumdark:e.input.color,boxShadow:t==="outline"?`${e.button.border} 0 0 0 1px inset`:"none",borderRadius:e.input.borderRadius,flexShrink:0,"&:hover":{color:t==="ghost"?e.color.secondary:null,background:(()=>{let c=e.color.secondary;return t==="solid"&&(c=e.color.secondary),t==="outline"&&(c=e.button.background),t==="ghost"?yt(.86,e.color.secondary):e.base==="light"?wo(.02,c):Gp(.03,c)})()},"&:active":{color:t==="ghost"?e.color.secondary:null,background:(()=>{let c=e.color.secondary;return t==="solid"&&(c=e.color.secondary),t==="outline"&&(c=e.button.background),t==="ghost"?e.background.hoverable:e.base==="light"?wo(.02,c):Gp(.03,c)})()},"&:focus":{boxShadow:`${as(e.color.secondary,1)} 0 0 0 1px inset`,outline:"none"},"> svg":{animation:a&&l!=="none"?`${e.animation[l]} 1000ms ease-out`:""}})),er=i.forwardRef(({padding:e="small",variant:t="ghost",...n},r)=>h.createElement(dr,{padding:e,variant:t,ref:r,...n}));er.displayName="IconButton";var O2=An({from:{opacity:0},to:{opacity:1}}),LI=An({from:{maxHeight:0},to:{}}),zI=An({from:{opacity:0,transform:"translate(-50%, -50%) scale(0.9)"},to:{opacity:1,transform:"translate(-50%, -50%) scale(1)"}}),$2=_.div({backgroundColor:"rgba(27, 28, 29, 0.2)",position:"fixed",inset:0,width:"100%",height:"100%",zIndex:10,animation:`${O2} 200ms`}),T2=_.div(({theme:e,width:t,height:n})=>({backgroundColor:e.background.bar,borderRadius:6,boxShadow:"rgba(255, 255, 255, 0.05) 0 0 0 1px inset, rgba(14, 18, 22, 0.35) 0px 10px 38px -10px",position:"fixed",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:t??740,height:n??"auto",maxWidth:"calc(100% - 40px)",maxHeight:"85vh",overflow:"hidden",zIndex:11,animation:`${zI} 200ms`,"&:focus-visible":{outline:"none"}})),M2=e=>h.createElement(o2,{asChild:!0},h.createElement(er,{...e},h.createElement(bv,null))),PI=_.div({display:"flex",flexDirection:"column",margin:16,gap:16}),L2=_.div({display:"flex",justifyContent:"space-between",gap:16}),z2=_.div({display:"flex",flexDirection:"column",gap:4}),NI=e=>h.createElement(L2,null,h.createElement(z2,{...e}),h.createElement(M2,null)),BI=_(n2)(({theme:e})=>({margin:0,fontSize:e.typography.size.s3,fontWeight:e.typography.weight.bold})),FI=_(r2)(({theme:e})=>({position:"relative",zIndex:1,margin:0,fontSize:e.typography.size.s2})),HI=_.div({display:"flex",flexDirection:"row-reverse",gap:8}),P2=_.div(({theme:e})=>({maxHeight:100,overflow:"auto",animation:`${LI} 300ms, ${O2} 300ms`,backgroundColor:e.background.critical,color:e.color.lightest,fontSize:e.typography.size.s2,"& > div":{position:"relative",padding:"8px 16px"}})),DI=({children:e,...t})=>h.createElement(P2,{...t},h.createElement("div",null,e));function jI({children:e,width:t,height:n,onEscapeKeyDown:r,onInteractOutside:o=c=>c.preventDefault(),className:a,container:l,...s}){return h.createElement(Qv,{...s},h.createElement(Jv,{container:l},h.createElement(e2,{asChild:!0},h.createElement($2,null)),h.createElement(t2,{asChild:!0,onInteractOutside:o,onEscapeKeyDown:r},h.createElement(T2,{className:a,width:t,height:n},e))))}var UI=Object.assign(jI,A2,{Dialog:N_}),VI=e=>typeof e=="number"?e:Number(e),WI=_.div(({theme:e,col:t,row:n=1})=>t?{display:"inline-block",verticalAlign:"inherit","& > *":{marginLeft:t*e.layoutMargin,verticalAlign:"inherit"},[`& > *:first-child${au}`]:{marginLeft:0}}:{"& > *":{marginTop:n*e.layoutMargin},[`& > *:first-child${au}`]:{marginTop:0}},({theme:e,outer:t,col:n,row:r})=>{switch(!0){case!!(t&&n):return{marginLeft:t*e.layoutMargin,marginRight:t*e.layoutMargin};case!!(t&&r):return{marginTop:t*e.layoutMargin,marginBottom:t*e.layoutMargin};default:return{}}}),GI=({col:e,row:t,outer:n,children:r,...o})=>{let a=VI(typeof n=="number"||!n?n:e||t);return h.createElement(WI,{col:e,row:t,outer:a,...o},r)},qI=_.div(({theme:e})=>({fontWeight:e.typography.weight.bold})),YI=_.div(),KI=_.div(({theme:e})=>({padding:30,textAlign:"center",color:e.color.defaultText,fontSize:e.typography.size.s2-1})),XI=({children:e,...t})=>{let[n,r]=i.Children.toArray(e);return h.createElement(KI,{...t},h.createElement(qI,null,n),r&&h.createElement(YI,null,r))};function ZI(e,t){var n=i.useRef(null),r=i.useRef(null);r.current=t;var o=i.useRef(null);i.useEffect(function(){a()});var a=i.useCallback(function(){var l=o.current,s=r.current,c=l||(s?s instanceof Element?s:s.current:null);n.current&&n.current.element===c&&n.current.subscriber===e||(n.current&&n.current.cleanup&&n.current.cleanup(),n.current={element:c,subscriber:e,cleanup:c?e(c):void 0})},[e]);return i.useEffect(function(){return function(){n.current&&n.current.cleanup&&(n.current.cleanup(),n.current=null)}},[]),i.useCallback(function(l){o.current=l,a()},[a])}function qp(e,t,n){return e[t]?e[t][0]?e[t][0][n]:e[t][n]:t==="contentBoxSize"?e.contentRect[n==="inlineSize"?"width":"height"]:void 0}function N2(e){e===void 0&&(e={});var t=e.onResize,n=i.useRef(void 0);n.current=t;var r=e.round||Math.round,o=i.useRef(),a=i.useState({width:void 0,height:void 0}),l=a[0],s=a[1],c=i.useRef(!1);i.useEffect(function(){return c.current=!1,function(){c.current=!0}},[]);var u=i.useRef({width:void 0,height:void 0}),d=ZI(i.useCallback(function(p){return(!o.current||o.current.box!==e.box||o.current.round!==r)&&(o.current={box:e.box,round:r,instance:new ResizeObserver(function(m){var f=m[0],y=e.box==="border-box"?"borderBoxSize":e.box==="device-pixel-content-box"?"devicePixelContentBoxSize":"contentBoxSize",g=qp(f,y,"inlineSize"),S=qp(f,y,"blockSize"),b=g?r(g):void 0,v=S?r(S):void 0;if(u.current.width!==b||u.current.height!==v){var w={width:b,height:v};u.current.width=b,u.current.height=v,n.current?n.current(w):c.current||s(w)}})}),o.current.instance.observe(p,{box:e.box}),function(){o.current&&o.current.instance.unobserve(p)}},[e.box,r]),e.ref);return i.useMemo(function(){return{ref:d,width:l.width,height:l.height}},[d,l.width,l.height])}var QI=_.div(({scale:e=1,elementHeight:t})=>({height:t||"auto",transformOrigin:"top left",transform:`scale(${1/e})`}));function JI({scale:e,children:t}){let n=i.useRef(null),[r,o]=i.useState(0),a=i.useCallback(({height:l})=>{l&&o(l/e)},[e]);return i.useEffect(()=>{n.current&&o(n.current.getBoundingClientRect().height)},[e]),N2({ref:n,onResize:a}),h.createElement(QI,{scale:e,elementHeight:r},h.createElement("div",{ref:n,className:"innerZoomElementWrapper"},t))}var eA=class extends i.Component{constructor(){super(...arguments),this.iframe=null}componentDidMount(){let{iFrameRef:e}=this.props;this.iframe=e.current}shouldComponentUpdate(e){let{scale:t,active:n}=this.props;return t!==e.scale&&this.setIframeInnerZoom(e.scale),n!==e.active&&this.iframe.setAttribute("data-is-storybook",e.active?"true":"false"),e.children.props.src!==this.props.children.props.src}setIframeInnerZoom(e){try{Object.assign(this.iframe.contentDocument.body.style,{width:`${e*100}%`,height:`${e*100}%`,transform:`scale(${1/e})`,transformOrigin:"top left"})}catch{this.setIframeZoom(e)}}setIframeZoom(e){Object.assign(this.iframe.style,{width:`${e*100}%`,height:`${e*100}%`,transform:`scale(${1/e})`,transformOrigin:"top left"})}render(){let{children:e}=this.props;return h.createElement(h.Fragment,null,e)}},B2={Element:JI,IFrame:eA},{document:tA}=F_,nA=_.strong(({theme:e})=>({color:e.color.orange})),rA=_.strong(({theme:e})=>({color:e.color.ancillary,textDecoration:"underline"})),Yp=_.em(({theme:e})=>({color:e.textMutedColor})),oA=/(Error): (.*)\n/,aA=/at (?:(.*) )?\(?(.+)\)?/,lA=/([^@]+)?(?:\/<)?@(.+)?/,iA=/([^@]+)?@(.+)?/,F2=({error:e})=>{if(!e)return h.createElement(i.Fragment,null,"This error has no stack or message");if(!e.stack)return h.createElement(i.Fragment,null,e.message||"This error has no stack or message");let t=e.stack.toString();t&&e.message&&!t.includes(e.message)&&(t=`Error: ${e.message} -${t}`);let n=t.match(oA);if(!n)return h.createElement(i.Fragment,null,t);let[,r,o]=n,a=t.split(/\n/).slice(1),[,...l]=a.map(s=>{let c=s.match(aA)||s.match(lA)||s.match(iA);return c?{name:(c[1]||"").replace("/<",""),location:c[2].replace(tA.location.origin,"")}:null}).filter(Boolean);return h.createElement(i.Fragment,null,h.createElement("span",null,r),": ",h.createElement(nA,null,o),h.createElement("br",null),l.map((s,c)=>s.name?h.createElement(i.Fragment,{key:c}," ","at ",h.createElement(rA,null,s.name)," (",h.createElement(Yp,null,s.location),")",h.createElement("br",null)):h.createElement(i.Fragment,{key:c}," ","at ",h.createElement(Yp,null,s.location),h.createElement("br",null))))},sA=_.label(({theme:e})=>({display:"flex",borderBottom:`1px solid ${e.appBorderColor}`,margin:"0 15px",padding:"8px 0","&:last-child":{marginBottom:"3rem"}})),cA=_.span(({theme:e})=>({minWidth:100,fontWeight:e.typography.weight.bold,marginRight:15,display:"flex",justifyContent:"flex-start",alignItems:"center",lineHeight:"16px"})),uA=({label:e,children:t,...n})=>h.createElement(sA,{...n},e?h.createElement(cA,null,h.createElement("span",null,e)):null,t),dA=i.useLayoutEffect,fA=dA,pA=function(e){var t=i.useRef(e);return fA(function(){t.current=e}),t},Kp=function(e,t){if(typeof e=="function"){e(t);return}e.current=t},hA=function(e,t){var n=i.useRef();return i.useCallback(function(r){e.current=r,n.current&&Kp(n.current,null),n.current=t,t&&Kp(t,r)},[t])},mA=hA,Xp={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},gA=function(e){Object.keys(Xp).forEach(function(t){e.style.setProperty(t,Xp[t],"important")})},Zp=gA,We=null,Qp=function(e,t){var n=e.scrollHeight;return t.sizingStyle.boxSizing==="border-box"?n+t.borderSize:n-t.paddingSize};function vA(e,t,n,r){n===void 0&&(n=1),r===void 0&&(r=1/0),We||(We=document.createElement("textarea"),We.setAttribute("tabindex","-1"),We.setAttribute("aria-hidden","true"),Zp(We)),We.parentNode===null&&document.body.appendChild(We);var o=e.paddingSize,a=e.borderSize,l=e.sizingStyle,s=l.boxSizing;Object.keys(l).forEach(function(m){var f=m;We.style[f]=l[f]}),Zp(We),We.value=t;var c=Qp(We,e);We.value=t,c=Qp(We,e),We.value="x";var u=We.scrollHeight-o,d=u*n;s==="border-box"&&(d=d+o+a),c=Math.max(d,c);var p=u*r;return s==="border-box"&&(p=p+o+a),c=Math.min(p,c),[c,u]}var Jp=function(){},yA=function(e,t){return e.reduce(function(n,r){return n[r]=t[r],n},{})},wA=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak"],bA=!!document.documentElement.currentStyle,EA=function(e){var t=window.getComputedStyle(e);if(t===null)return null;var n=yA(wA,t),r=n.boxSizing;if(r==="")return null;bA&&r==="border-box"&&(n.width=parseFloat(n.width)+parseFloat(n.borderRightWidth)+parseFloat(n.borderLeftWidth)+parseFloat(n.paddingRight)+parseFloat(n.paddingLeft)+"px");var o=parseFloat(n.paddingBottom)+parseFloat(n.paddingTop),a=parseFloat(n.borderBottomWidth)+parseFloat(n.borderTopWidth);return{sizingStyle:n,paddingSize:o,borderSize:a}},xA=EA;function H2(e,t,n){var r=pA(n);i.useLayoutEffect(function(){var o=function(a){return r.current(a)};if(e)return e.addEventListener(t,o),function(){return e.removeEventListener(t,o)}},[])}var SA=function(e){H2(window,"resize",e)},CA=function(e){H2(document.fonts,"loadingdone",e)},kA=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],RA=function(e,t){var n=e.cacheMeasurements,r=e.maxRows,o=e.minRows,a=e.onChange,l=a===void 0?Jp:a,s=e.onHeightChange,c=s===void 0?Jp:s,u=Pd(e,kA),d=u.value!==void 0,p=i.useRef(null),m=mA(p,t),f=i.useRef(0),y=i.useRef(),g=function(){var b=p.current,v=n&&y.current?y.current:xA(b);if(v){y.current=v;var w=vA(v,b.value||b.placeholder||"x",o,r),E=w[0],x=w[1];f.current!==E&&(f.current=E,b.style.setProperty("height",E+"px","important"),c(E,{rowHeight:x}))}},S=function(b){d||g(),l(b)};return i.useLayoutEffect(g),SA(g),CA(g),i.createElement("textarea",ee({},u,{onChange:S,ref:m}))},_A=i.forwardRef(RA),IA={appearance:"none",border:"0 none",boxSizing:"inherit",display:" block",margin:" 0",background:"transparent",padding:0,fontSize:"inherit",position:"relative"},u1=({theme:e})=>({...IA,transition:"box-shadow 200ms ease-out, opacity 200ms ease-out",color:e.input.color||"inherit",background:e.input.background,boxShadow:`${e.input.border} 0 0 0 1px inset`,borderRadius:e.input.borderRadius,fontSize:e.typography.size.s2-1,lineHeight:"20px",padding:"6px 10px",boxSizing:"border-box",height:32,'&[type="file"]':{height:"auto"},"&:focus":{boxShadow:`${e.color.secondary} 0 0 0 1px inset`,outline:"none"},"&[disabled]":{cursor:"not-allowed",opacity:.5},"&:-webkit-autofill":{WebkitBoxShadow:`0 0 0 3em ${e.color.lightest} inset`},"&::placeholder":{color:e.textMutedColor,opacity:1}}),d1=({size:e})=>{switch(e){case"100%":return{width:"100%"};case"flex":return{flex:1};case"auto":default:return{display:"inline"}}},D2=({align:e})=>{switch(e){case"end":return{textAlign:"right"};case"center":return{textAlign:"center"};case"start":default:return{textAlign:"left"}}},f1=({valid:e,theme:t})=>{switch(e){case"valid":return{boxShadow:`${t.color.positive} 0 0 0 1px inset !important`};case"error":return{boxShadow:`${t.color.negative} 0 0 0 1px inset !important`};case"warn":return{boxShadow:`${t.color.warning} 0 0 0 1px inset`};case void 0:case null:default:return{}}},AA=Object.assign(_(i.forwardRef(function({size:e,valid:t,align:n,...r},o){return h.createElement("input",{...r,ref:o})}))(u1,d1,D2,f1,{minHeight:32}),{displayName:"Input"}),OA=Object.assign(_(i.forwardRef(function({size:e,valid:t,align:n,...r},o){return h.createElement("select",{...r,ref:o})}))(u1,d1,f1,{height:32,userSelect:"none",paddingRight:20,appearance:"menulist"}),{displayName:"Select"}),$A=Object.assign(_(i.forwardRef(function({size:e,valid:t,align:n,...r},o){return h.createElement(_A,{...r,ref:o})}))(u1,d1,D2,f1,({height:e=400})=>({overflow:"visible",maxHeight:e})),{displayName:"Textarea"}),Qo=Object.assign(_.form({boxSizing:"border-box",width:"100%"}),{Field:uA,Input:AA,Select:OA,Textarea:$A,Button:dr}),TA=i.lazy(()=>tr(()=>import("./WithTooltip-KJL26V4Q-C-1QZcq0.js"),__vite__mapDeps([8,1,2,3,4,5,6]),import.meta.url).then(e=>({default:e.WithTooltip}))),MA=e=>h.createElement(i.Suspense,{fallback:h.createElement("div",null)},h.createElement(TA,{...e})),LA=i.lazy(()=>tr(()=>import("./WithTooltip-KJL26V4Q-C-1QZcq0.js"),__vite__mapDeps([8,1,2,3,4,5,6]),import.meta.url).then(e=>({default:e.WithTooltipPure}))),j2=e=>h.createElement(i.Suspense,{fallback:h.createElement("div",null)},h.createElement(LA,{...e})),zA=_.div(({theme:e})=>({fontWeight:e.typography.weight.bold})),PA=_.span(),NA=_.div(({theme:e})=>({marginTop:8,textAlign:"center","> *":{margin:"0 8px",fontWeight:e.typography.weight.bold}})),BA=_.div(({theme:e})=>({color:e.color.defaultText,lineHeight:"18px"})),FA=_.div({padding:15,width:280,boxSizing:"border-box"}),HA=({title:e,desc:t,links:n})=>h.createElement(FA,null,h.createElement(BA,null,e&&h.createElement(zA,null,e),t&&h.createElement(PA,null,t)),n&&h.createElement(NA,null,n.map(({title:r,...o})=>h.createElement(Lr,{...o,key:r},r)))),DA=_.div(({theme:e})=>({padding:"2px 6px",lineHeight:"16px",fontSize:10,fontWeight:e.typography.weight.bold,color:e.color.lightest,boxShadow:"0 0 5px 0 rgba(0, 0, 0, 0.3)",borderRadius:4,whiteSpace:"nowrap",pointerEvents:"none",zIndex:-1,background:e.base==="light"?"rgba(60, 60, 60, 0.9)":"rgba(0, 0, 0, 0.95)",margin:6})),jA=({note:e,...t})=>h.createElement(DA,{...t},e),UA=_(({active:e,loading:t,disabled:n,...r})=>h.createElement("span",{...r}))(({theme:e})=>({color:e.color.defaultText,fontWeight:e.typography.weight.regular}),({active:e,theme:t})=>e?{color:t.color.secondary,fontWeight:t.typography.weight.bold}:{},({loading:e,theme:t})=>e?{display:"inline-block",flex:"none",...t.animation.inlineGlow}:{},({disabled:e,theme:t})=>e?{color:yt(.7,t.color.defaultText)}:{}),VA=_.span({display:"flex","& svg":{height:12,width:12,margin:"3px 0",verticalAlign:"top"},"& path":{fill:"inherit"}}),WA=_.span({flex:1,textAlign:"left",display:"flex",flexDirection:"column"},({isIndented:e})=>e?{marginLeft:24}:{}),GA=_.span(({theme:e})=>({fontSize:"11px",lineHeight:"14px"}),({active:e,theme:t})=>e?{color:t.color.secondary}:{},({theme:e,disabled:t})=>t?{color:e.textMutedColor}:{}),qA=_.span(({active:e,theme:t})=>e?{color:t.color.secondary}:{},()=>({display:"flex",maxWidth:14})),YA=_.a(({theme:e})=>({fontSize:e.typography.size.s1,transition:"all 150ms ease-out",color:e.color.dark,textDecoration:"none",cursor:"pointer",justifyContent:"space-between",lineHeight:"18px",padding:"7px 10px",display:"flex",alignItems:"center","& > * + *":{paddingLeft:10},"&:hover":{background:e.background.hoverable},"&:hover svg":{opacity:1}}),({disabled:e})=>e?{cursor:"not-allowed"}:{}),KA=Wr(100)((e,t,n)=>{let r={};return e&&Object.assign(r,{onClick:e}),t&&Object.assign(r,{href:t}),n&&t&&Object.assign(r,{to:t,as:n}),r}),XA=({loading:e=!1,title:t=h.createElement("span",null,"Loading state"),center:n=null,right:r=null,active:o=!1,disabled:a=!1,isIndented:l,href:s=null,onClick:c=null,icon:u,LinkWrapper:d=null,...p})=>{let m=KA(c,s,d),f={active:o,disabled:a};return h.createElement(YA,{...f,...p,...m},u&&h.createElement(qA,{...f},u),t||n?h.createElement(WA,{isIndented:!u&&l},t&&h.createElement(UA,{...f,loading:e},t),n&&h.createElement(GA,{...f},n)):null,r&&h.createElement(VA,{...f},r))},U2=XA,ZA=_.div({minWidth:180,overflow:"hidden",overflowY:"auto",maxHeight:15.5*32},({theme:e})=>({borderRadius:e.appBorderRadius})),QA=e=>{let{LinkWrapper:t,onClick:n,id:r,isIndented:o,...a}=e,{title:l,href:s,active:c}=a,u=i.useCallback(p=>{n(p,a)},[n]),d=!!n;return h.createElement(U2,{title:l,active:c,href:s,id:`list-item-${r}`,LinkWrapper:t,isIndented:o,...a,...d?{onClick:u}:{}})},V2=({links:e,LinkWrapper:t=null})=>{let n=e.some(r=>r.icon);return h.createElement(ZA,null,e.map(({isGatsby:r,...o})=>h.createElement(QA,{key:o.id,LinkWrapper:r?t:null,isIndented:n,...o})))},JA=e=>typeof e.props.href=="string",eO=e=>typeof e.props.href!="string";function tO({children:e,...t},n){let r={props:t,ref:n};if(JA(r))return h.createElement("a",{ref:r.ref,...r.props},e);if(eO(r))return h.createElement("button",{ref:r.ref,type:"button",...r.props},e);throw new Error("invalid props")}var W2=i.forwardRef(tO);W2.displayName="ButtonOrLink";var kl=_(W2,{shouldForwardProp:_d})({whiteSpace:"normal",display:"inline-flex",overflow:"hidden",verticalAlign:"top",justifyContent:"center",alignItems:"center",textAlign:"center",textDecoration:"none","&:empty":{display:"none"},"&[hidden]":{display:"none"}},({theme:e})=>({padding:"0 15px",transition:"color 0.2s linear, border-bottom-color 0.2s linear",height:40,lineHeight:"12px",cursor:"pointer",background:"transparent",border:"0 solid transparent",borderTop:"3px solid transparent",borderBottom:"3px solid transparent",fontWeight:"bold",fontSize:13,"&:focus":{outline:"0 none",borderBottomColor:e.barSelectedColor}}),({active:e,textColor:t,theme:n})=>e?{color:t||n.barSelectedColor,borderBottomColor:n.barSelectedColor}:{color:t||n.barTextColor,borderBottomColor:"transparent","&:hover":{color:n.barHoverColor}});kl.displayName="TabButton";var nO=_.div(({theme:e})=>({width:14,height:14,backgroundColor:e.appBorderColor,animation:`${e.animation.glow} 1.5s ease-in-out infinite`})),rO=_.div(()=>({marginTop:6,padding:7,height:28})),oO=()=>h.createElement(rO,null,h.createElement(nO,null)),bu=_.div({display:"flex",whiteSpace:"nowrap",flexBasis:"auto",marginLeft:3,marginRight:3},({scrollable:e})=>e?{flexShrink:0}:{},({left:e})=>e?{"& > *":{marginLeft:4}}:{},({right:e})=>e?{marginLeft:30,"& > *":{marginRight:4}}:{});bu.displayName="Side";var aO=({children:e,className:t,scrollable:n})=>n?h.createElement(Ns,{vertical:!1,className:t},e):h.createElement("div",{className:t},e),p1=_(aO)(({theme:e,scrollable:t=!0})=>({color:e.barTextColor,width:"100%",height:40,flexShrink:0,overflow:t?"auto":"hidden",overflowY:"hidden"}),({theme:e,border:t=!1})=>t?{boxShadow:`${e.appBorderColor} 0 -1px 0 0 inset`,background:e.barBg}:{});p1.displayName="Bar";var lO=_.div(({bgColor:e})=>({display:"flex",justifyContent:"space-between",position:"relative",flexWrap:"nowrap",flexShrink:0,height:40,backgroundColor:e||""})),js=({children:e,backgroundColor:t,className:n,...r})=>{let[o,a]=i.Children.toArray(e);return h.createElement(p1,{className:`sb-bar ${n}`,...r},h.createElement(lO,{bgColor:t},h.createElement(bu,{scrollable:r.scrollable,left:!0},o),a?h.createElement(bu,{right:!0},a):null))};js.displayName="FlexBar";var G2=_.div(({active:e})=>e?{display:"block"}:{display:"none"}),iO=e=>i.Children.toArray(e).map(({props:{title:t,id:n,color:r,children:o}})=>{let a=Array.isArray(o)?o[0]:o;return{title:t,id:n,...r?{color:r}:{},render:typeof a=="function"?a:({active:l})=>h.createElement(G2,{active:l,role:"tabpanel"},a)}}),sO=_.span(({theme:e,isActive:t})=>({display:"inline-block",width:0,height:0,marginLeft:8,color:t?e.color.secondary:e.color.mediumdark,borderRight:"3px solid transparent",borderLeft:"3px solid transparent",borderTop:"3px solid",transition:"transform .1s ease-out"})),cO=_(kl)(({active:e,theme:t,preActive:n})=>` +${t}`);let n=t.match(oA);if(!n)return h.createElement(i.Fragment,null,t);let[,r,o]=n,a=t.split(/\n/).slice(1),[,...l]=a.map(s=>{let c=s.match(aA)||s.match(lA)||s.match(iA);return c?{name:(c[1]||"").replace("/<",""),location:c[2].replace(tA.location.origin,"")}:null}).filter(Boolean);return h.createElement(i.Fragment,null,h.createElement("span",null,r),": ",h.createElement(nA,null,o),h.createElement("br",null),l.map((s,c)=>s.name?h.createElement(i.Fragment,{key:c}," ","at ",h.createElement(rA,null,s.name)," (",h.createElement(Yp,null,s.location),")",h.createElement("br",null)):h.createElement(i.Fragment,{key:c}," ","at ",h.createElement(Yp,null,s.location),h.createElement("br",null))))},sA=_.label(({theme:e})=>({display:"flex",borderBottom:`1px solid ${e.appBorderColor}`,margin:"0 15px",padding:"8px 0","&:last-child":{marginBottom:"3rem"}})),cA=_.span(({theme:e})=>({minWidth:100,fontWeight:e.typography.weight.bold,marginRight:15,display:"flex",justifyContent:"flex-start",alignItems:"center",lineHeight:"16px"})),uA=({label:e,children:t,...n})=>h.createElement(sA,{...n},e?h.createElement(cA,null,h.createElement("span",null,e)):null,t),dA=i.useLayoutEffect,fA=dA,pA=function(e){var t=i.useRef(e);return fA(function(){t.current=e}),t},Kp=function(e,t){if(typeof e=="function"){e(t);return}e.current=t},hA=function(e,t){var n=i.useRef();return i.useCallback(function(r){e.current=r,n.current&&Kp(n.current,null),n.current=t,t&&Kp(t,r)},[t])},mA=hA,Xp={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},gA=function(e){Object.keys(Xp).forEach(function(t){e.style.setProperty(t,Xp[t],"important")})},Zp=gA,We=null,Qp=function(e,t){var n=e.scrollHeight;return t.sizingStyle.boxSizing==="border-box"?n+t.borderSize:n-t.paddingSize};function vA(e,t,n,r){n===void 0&&(n=1),r===void 0&&(r=1/0),We||(We=document.createElement("textarea"),We.setAttribute("tabindex","-1"),We.setAttribute("aria-hidden","true"),Zp(We)),We.parentNode===null&&document.body.appendChild(We);var o=e.paddingSize,a=e.borderSize,l=e.sizingStyle,s=l.boxSizing;Object.keys(l).forEach(function(m){var f=m;We.style[f]=l[f]}),Zp(We),We.value=t;var c=Qp(We,e);We.value=t,c=Qp(We,e),We.value="x";var u=We.scrollHeight-o,d=u*n;s==="border-box"&&(d=d+o+a),c=Math.max(d,c);var p=u*r;return s==="border-box"&&(p=p+o+a),c=Math.min(p,c),[c,u]}var Jp=function(){},yA=function(e,t){return e.reduce(function(n,r){return n[r]=t[r],n},{})},wA=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak"],bA=!!document.documentElement.currentStyle,EA=function(e){var t=window.getComputedStyle(e);if(t===null)return null;var n=yA(wA,t),r=n.boxSizing;if(r==="")return null;bA&&r==="border-box"&&(n.width=parseFloat(n.width)+parseFloat(n.borderRightWidth)+parseFloat(n.borderLeftWidth)+parseFloat(n.paddingRight)+parseFloat(n.paddingLeft)+"px");var o=parseFloat(n.paddingBottom)+parseFloat(n.paddingTop),a=parseFloat(n.borderBottomWidth)+parseFloat(n.borderTopWidth);return{sizingStyle:n,paddingSize:o,borderSize:a}},xA=EA;function H2(e,t,n){var r=pA(n);i.useLayoutEffect(function(){var o=function(a){return r.current(a)};if(e)return e.addEventListener(t,o),function(){return e.removeEventListener(t,o)}},[])}var SA=function(e){H2(window,"resize",e)},CA=function(e){H2(document.fonts,"loadingdone",e)},kA=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],RA=function(e,t){var n=e.cacheMeasurements,r=e.maxRows,o=e.minRows,a=e.onChange,l=a===void 0?Jp:a,s=e.onHeightChange,c=s===void 0?Jp:s,u=Pd(e,kA),d=u.value!==void 0,p=i.useRef(null),m=mA(p,t),f=i.useRef(0),y=i.useRef(),g=function(){var b=p.current,v=n&&y.current?y.current:xA(b);if(v){y.current=v;var w=vA(v,b.value||b.placeholder||"x",o,r),E=w[0],x=w[1];f.current!==E&&(f.current=E,b.style.setProperty("height",E+"px","important"),c(E,{rowHeight:x}))}},S=function(b){d||g(),l(b)};return i.useLayoutEffect(g),SA(g),CA(g),i.createElement("textarea",ee({},u,{onChange:S,ref:m}))},_A=i.forwardRef(RA),IA={appearance:"none",border:"0 none",boxSizing:"inherit",display:" block",margin:" 0",background:"transparent",padding:0,fontSize:"inherit",position:"relative"},u1=({theme:e})=>({...IA,transition:"box-shadow 200ms ease-out, opacity 200ms ease-out",color:e.input.color||"inherit",background:e.input.background,boxShadow:`${e.input.border} 0 0 0 1px inset`,borderRadius:e.input.borderRadius,fontSize:e.typography.size.s2-1,lineHeight:"20px",padding:"6px 10px",boxSizing:"border-box",height:32,'&[type="file"]':{height:"auto"},"&:focus":{boxShadow:`${e.color.secondary} 0 0 0 1px inset`,outline:"none"},"&[disabled]":{cursor:"not-allowed",opacity:.5},"&:-webkit-autofill":{WebkitBoxShadow:`0 0 0 3em ${e.color.lightest} inset`},"&::placeholder":{color:e.textMutedColor,opacity:1}}),d1=({size:e})=>{switch(e){case"100%":return{width:"100%"};case"flex":return{flex:1};case"auto":default:return{display:"inline"}}},D2=({align:e})=>{switch(e){case"end":return{textAlign:"right"};case"center":return{textAlign:"center"};case"start":default:return{textAlign:"left"}}},f1=({valid:e,theme:t})=>{switch(e){case"valid":return{boxShadow:`${t.color.positive} 0 0 0 1px inset !important`};case"error":return{boxShadow:`${t.color.negative} 0 0 0 1px inset !important`};case"warn":return{boxShadow:`${t.color.warning} 0 0 0 1px inset`};case void 0:case null:default:return{}}},AA=Object.assign(_(i.forwardRef(function({size:e,valid:t,align:n,...r},o){return h.createElement("input",{...r,ref:o})}))(u1,d1,D2,f1,{minHeight:32}),{displayName:"Input"}),OA=Object.assign(_(i.forwardRef(function({size:e,valid:t,align:n,...r},o){return h.createElement("select",{...r,ref:o})}))(u1,d1,f1,{height:32,userSelect:"none",paddingRight:20,appearance:"menulist"}),{displayName:"Select"}),$A=Object.assign(_(i.forwardRef(function({size:e,valid:t,align:n,...r},o){return h.createElement(_A,{...r,ref:o})}))(u1,d1,D2,f1,({height:e=400})=>({overflow:"visible",maxHeight:e})),{displayName:"Textarea"}),Qo=Object.assign(_.form({boxSizing:"border-box",width:"100%"}),{Field:uA,Input:AA,Select:OA,Textarea:$A,Button:dr}),TA=i.lazy(()=>tr(()=>import("./WithTooltip-KJL26V4Q-B2VLuGr9.js"),__vite__mapDeps([8,1,2,3,4,5,6]),import.meta.url).then(e=>({default:e.WithTooltip}))),MA=e=>h.createElement(i.Suspense,{fallback:h.createElement("div",null)},h.createElement(TA,{...e})),LA=i.lazy(()=>tr(()=>import("./WithTooltip-KJL26V4Q-B2VLuGr9.js"),__vite__mapDeps([8,1,2,3,4,5,6]),import.meta.url).then(e=>({default:e.WithTooltipPure}))),j2=e=>h.createElement(i.Suspense,{fallback:h.createElement("div",null)},h.createElement(LA,{...e})),zA=_.div(({theme:e})=>({fontWeight:e.typography.weight.bold})),PA=_.span(),NA=_.div(({theme:e})=>({marginTop:8,textAlign:"center","> *":{margin:"0 8px",fontWeight:e.typography.weight.bold}})),BA=_.div(({theme:e})=>({color:e.color.defaultText,lineHeight:"18px"})),FA=_.div({padding:15,width:280,boxSizing:"border-box"}),HA=({title:e,desc:t,links:n})=>h.createElement(FA,null,h.createElement(BA,null,e&&h.createElement(zA,null,e),t&&h.createElement(PA,null,t)),n&&h.createElement(NA,null,n.map(({title:r,...o})=>h.createElement(Lr,{...o,key:r},r)))),DA=_.div(({theme:e})=>({padding:"2px 6px",lineHeight:"16px",fontSize:10,fontWeight:e.typography.weight.bold,color:e.color.lightest,boxShadow:"0 0 5px 0 rgba(0, 0, 0, 0.3)",borderRadius:4,whiteSpace:"nowrap",pointerEvents:"none",zIndex:-1,background:e.base==="light"?"rgba(60, 60, 60, 0.9)":"rgba(0, 0, 0, 0.95)",margin:6})),jA=({note:e,...t})=>h.createElement(DA,{...t},e),UA=_(({active:e,loading:t,disabled:n,...r})=>h.createElement("span",{...r}))(({theme:e})=>({color:e.color.defaultText,fontWeight:e.typography.weight.regular}),({active:e,theme:t})=>e?{color:t.color.secondary,fontWeight:t.typography.weight.bold}:{},({loading:e,theme:t})=>e?{display:"inline-block",flex:"none",...t.animation.inlineGlow}:{},({disabled:e,theme:t})=>e?{color:yt(.7,t.color.defaultText)}:{}),VA=_.span({display:"flex","& svg":{height:12,width:12,margin:"3px 0",verticalAlign:"top"},"& path":{fill:"inherit"}}),WA=_.span({flex:1,textAlign:"left",display:"flex",flexDirection:"column"},({isIndented:e})=>e?{marginLeft:24}:{}),GA=_.span(({theme:e})=>({fontSize:"11px",lineHeight:"14px"}),({active:e,theme:t})=>e?{color:t.color.secondary}:{},({theme:e,disabled:t})=>t?{color:e.textMutedColor}:{}),qA=_.span(({active:e,theme:t})=>e?{color:t.color.secondary}:{},()=>({display:"flex",maxWidth:14})),YA=_.a(({theme:e})=>({fontSize:e.typography.size.s1,transition:"all 150ms ease-out",color:e.color.dark,textDecoration:"none",cursor:"pointer",justifyContent:"space-between",lineHeight:"18px",padding:"7px 10px",display:"flex",alignItems:"center","& > * + *":{paddingLeft:10},"&:hover":{background:e.background.hoverable},"&:hover svg":{opacity:1}}),({disabled:e})=>e?{cursor:"not-allowed"}:{}),KA=Wr(100)((e,t,n)=>{let r={};return e&&Object.assign(r,{onClick:e}),t&&Object.assign(r,{href:t}),n&&t&&Object.assign(r,{to:t,as:n}),r}),XA=({loading:e=!1,title:t=h.createElement("span",null,"Loading state"),center:n=null,right:r=null,active:o=!1,disabled:a=!1,isIndented:l,href:s=null,onClick:c=null,icon:u,LinkWrapper:d=null,...p})=>{let m=KA(c,s,d),f={active:o,disabled:a};return h.createElement(YA,{...f,...p,...m},u&&h.createElement(qA,{...f},u),t||n?h.createElement(WA,{isIndented:!u&&l},t&&h.createElement(UA,{...f,loading:e},t),n&&h.createElement(GA,{...f},n)):null,r&&h.createElement(VA,{...f},r))},U2=XA,ZA=_.div({minWidth:180,overflow:"hidden",overflowY:"auto",maxHeight:15.5*32},({theme:e})=>({borderRadius:e.appBorderRadius})),QA=e=>{let{LinkWrapper:t,onClick:n,id:r,isIndented:o,...a}=e,{title:l,href:s,active:c}=a,u=i.useCallback(p=>{n(p,a)},[n]),d=!!n;return h.createElement(U2,{title:l,active:c,href:s,id:`list-item-${r}`,LinkWrapper:t,isIndented:o,...a,...d?{onClick:u}:{}})},V2=({links:e,LinkWrapper:t=null})=>{let n=e.some(r=>r.icon);return h.createElement(ZA,null,e.map(({isGatsby:r,...o})=>h.createElement(QA,{key:o.id,LinkWrapper:r?t:null,isIndented:n,...o})))},JA=e=>typeof e.props.href=="string",eO=e=>typeof e.props.href!="string";function tO({children:e,...t},n){let r={props:t,ref:n};if(JA(r))return h.createElement("a",{ref:r.ref,...r.props},e);if(eO(r))return h.createElement("button",{ref:r.ref,type:"button",...r.props},e);throw new Error("invalid props")}var W2=i.forwardRef(tO);W2.displayName="ButtonOrLink";var kl=_(W2,{shouldForwardProp:_d})({whiteSpace:"normal",display:"inline-flex",overflow:"hidden",verticalAlign:"top",justifyContent:"center",alignItems:"center",textAlign:"center",textDecoration:"none","&:empty":{display:"none"},"&[hidden]":{display:"none"}},({theme:e})=>({padding:"0 15px",transition:"color 0.2s linear, border-bottom-color 0.2s linear",height:40,lineHeight:"12px",cursor:"pointer",background:"transparent",border:"0 solid transparent",borderTop:"3px solid transparent",borderBottom:"3px solid transparent",fontWeight:"bold",fontSize:13,"&:focus":{outline:"0 none",borderBottomColor:e.barSelectedColor}}),({active:e,textColor:t,theme:n})=>e?{color:t||n.barSelectedColor,borderBottomColor:n.barSelectedColor}:{color:t||n.barTextColor,borderBottomColor:"transparent","&:hover":{color:n.barHoverColor}});kl.displayName="TabButton";var nO=_.div(({theme:e})=>({width:14,height:14,backgroundColor:e.appBorderColor,animation:`${e.animation.glow} 1.5s ease-in-out infinite`})),rO=_.div(()=>({marginTop:6,padding:7,height:28})),oO=()=>h.createElement(rO,null,h.createElement(nO,null)),bu=_.div({display:"flex",whiteSpace:"nowrap",flexBasis:"auto",marginLeft:3,marginRight:3},({scrollable:e})=>e?{flexShrink:0}:{},({left:e})=>e?{"& > *":{marginLeft:4}}:{},({right:e})=>e?{marginLeft:30,"& > *":{marginRight:4}}:{});bu.displayName="Side";var aO=({children:e,className:t,scrollable:n})=>n?h.createElement(Ns,{vertical:!1,className:t},e):h.createElement("div",{className:t},e),p1=_(aO)(({theme:e,scrollable:t=!0})=>({color:e.barTextColor,width:"100%",height:40,flexShrink:0,overflow:t?"auto":"hidden",overflowY:"hidden"}),({theme:e,border:t=!1})=>t?{boxShadow:`${e.appBorderColor} 0 -1px 0 0 inset`,background:e.barBg}:{});p1.displayName="Bar";var lO=_.div(({bgColor:e})=>({display:"flex",justifyContent:"space-between",position:"relative",flexWrap:"nowrap",flexShrink:0,height:40,backgroundColor:e||""})),js=({children:e,backgroundColor:t,className:n,...r})=>{let[o,a]=i.Children.toArray(e);return h.createElement(p1,{className:`sb-bar ${n}`,...r},h.createElement(lO,{bgColor:t},h.createElement(bu,{scrollable:r.scrollable,left:!0},o),a?h.createElement(bu,{right:!0},a):null))};js.displayName="FlexBar";var G2=_.div(({active:e})=>e?{display:"block"}:{display:"none"}),iO=e=>i.Children.toArray(e).map(({props:{title:t,id:n,color:r,children:o}})=>{let a=Array.isArray(o)?o[0]:o;return{title:t,id:n,...r?{color:r}:{},render:typeof a=="function"?a:({active:l})=>h.createElement(G2,{active:l,role:"tabpanel"},a)}}),sO=_.span(({theme:e,isActive:t})=>({display:"inline-block",width:0,height:0,marginLeft:8,color:t?e.color.secondary:e.color.mediumdark,borderRight:"3px solid transparent",borderLeft:"3px solid transparent",borderTop:"3px solid",transition:"transform .1s ease-out"})),cO=_(kl)(({active:e,theme:t,preActive:n})=>` color: ${n||e?t.barSelectedColor:t.barTextColor}; .addon-collapsible-icon { color: ${n||e?t.barSelectedColor:t.barTextColor}; @@ -521,7 +521,7 @@ ${t}`);let n=t.match(oA);if(!n)return h.createElement(i.Fragment,null,t);let[,r, ${Kt(.02,e.input.background)} 100%)`:`linear-gradient(to right, ${e.color.green} 0%, ${e.color.green} ${(r-t)/(n-t)*100}%, ${Sr(.02,e.input.background)} ${(r-t)/(n-t)*100}%, - ${Sr(.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 ${Jt(e.appBorderColor,.2)}`,borderRadius:50,cursor:"grab",marginTop:0},"@supports (-ms-ime-align:auto)":{"input[type=range]":{margin:"0"}}})),t3=_.span({paddingLeft:5,paddingRight:5,fontSize:12,whiteSpace:"nowrap",fontFeatureSettings:"tnum",fontVariantNumeric:"tabular-nums","[aria-readonly=true] &":{opacity:.5}}),oD=_(t3)(({numberOFDecimalsPlaces:e,max:t})=>({width:`${e+t.toString().length*2+3}ch`,textAlign:"right",flexShrink:0})),aD=_.div({display:"flex",alignItems:"center",width:"100%"});function lD(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 iD=({name:e,value:t,onChange:n,min:r=0,max:o=100,step:a=1,onBlur:l,onFocus:s,argType:c})=>{var f;let u=y=>{n(vH(y.target.value))},d=t!==void 0,p=i.useMemo(()=>lD(a),[a]),m=!!((f=c==null?void 0:c.table)!=null&&f.readonly);return h.createElement(aD,{"aria-readonly":m},h.createElement(t3,null,r),h.createElement(rD,{id:Nt(e),type:"range",disabled:m,onChange:u,name:e,value:t,min:r,max:o,step:a,onFocus:s,onBlur:l}),h.createElement(oD,{numberOFDecimalsPlaces:p,max:o},d?t.toFixed(p):"--"," / ",o))},sD=_.label({display:"flex"}),cD=_.div(({isMaxed:e})=>({marginLeft:"0.75rem",paddingTop:"0.35rem",color:e?"red":void 0})),uD=({name:e,value:t,onChange:n,onFocus:r,onBlur:o,maxLength:a,argType:l})=>{var f;let s=y=>{n(y.target.value)},c=!!((f=l==null?void 0:l.table)!=null&&f.readonly),[u,d]=i.useState(!1),p=i.useCallback(()=>{n(""),d(!0)},[d]);if(t===void 0)return h.createElement(dr,{variant:"outline",size:"medium",disabled:c,id:ks(e),onClick:p},"Set string");let m=typeof t=="string";return h.createElement(sD,null,h.createElement(Qo.Textarea,{id:Nt(e),maxLength:a,onChange:s,disabled:c,size:"flex",placeholder:"Edit string...",autoFocus:u,valid:m?null:"error",name:e,value:m?t:"",onFocus:r,onBlur:o}),a&&h.createElement(cD,{isMaxed:(t==null?void 0:t.length)===a},(t==null?void 0:t.length)??0," / ",a))},dD=_(Qo.Input)({padding:10});function fD(e){e.forEach(t=>{t.startsWith("blob:")&&URL.revokeObjectURL(t)})}var pD=({onChange:e,name:t,accept:n="image/*",value:r,argType:o})=>{var c;let a=i.useRef(null),l=(c=o==null?void 0:o.control)==null?void 0:c.readOnly;function s(u){if(!u.target.files)return;let d=Array.from(u.target.files).map(p=>URL.createObjectURL(p));e(d),fD(r)}return i.useEffect(()=>{r==null&&a.current&&(a.current.value=null)},[r,t]),h.createElement(dD,{ref:a,id:Nt(t),type:"file",name:t,multiple:!0,disabled:l,onChange:s,accept:n,size:"flex"})},hD=i.lazy(()=>tr(()=>import("./Color-PRSJMWNM-Zg74k_A8.js"),__vite__mapDeps([9,2,3,5,1,4,6]),import.meta.url)),mD=e=>h.createElement(i.Suspense,{fallback:h.createElement("div",null)},h.createElement(hD,{...e})),gD={array:B5,object:B5,boolean:cH,color:mD,date:mH,number:wH,check:oo,"inline-check":oo,radio:oo,"inline-radio":oo,select:oo,"multi-select":oo,range:iD,text:uD,file:pD},F5=()=>h.createElement(h.Fragment,null,"-"),vD=({row:e,arg:t,updateArgs:n,isHovered:r})=>{var g;let{key:o,control:a}=e,[l,s]=i.useState(!1),[c,u]=i.useState({value:t});i.useEffect(()=>{l||u({value:t})},[l,t]);let d=i.useCallback(S=>(u({value:S}),n({[o]:S}),S),[n,o]),p=i.useCallback(()=>s(!1),[]),m=i.useCallback(()=>s(!0),[]);if(!a||a.disable){let S=(a==null?void 0:a.disable)!==!0&&((g=e==null?void 0:e.type)==null?void 0:g.name)!=="function";return r&&S?h.createElement(Lr,{href:"https://storybook.js.org/docs/react/essentials/controls",target:"_blank",withArrow:!0},"Setup controls"):h.createElement(F5,null)}let f={name:o,argType:e,value:c.value,onChange:d,onBlur:p,onFocus:m},y=gD[a.type]||F5;return h.createElement(y,{...f,...a,controlType:a.type})},yD=_.span({fontWeight:"bold"}),wD=_.span(({theme:e})=>({color:e.color.negative,fontFamily:e.typography.fonts.mono,cursor:"help"})),bD=_.div(({theme:e})=>({"&&":{p:{margin:"0 0 10px 0"},a:{color:e.color.secondary}},code:{...$n({theme:e}),fontSize:12,fontFamily:e.typography.fonts.mono},"& code":{margin:0,display:"inline-block"},"& pre > code":{whiteSpace:"pre-wrap"}})),ED=_.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?ue(.1,e.color.defaultText):ue(.2,e.color.defaultText),marginTop:t?4:0})),xD=_.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?ue(.1,e.color.defaultText):ue(.2,e.color.defaultText),marginTop:t?12:0,marginBottom:12})),SD=_.td(({theme:e,expandable:t})=>({paddingLeft:t?"40px !important":"20px !important"})),CD=e=>e&&{summary:typeof e=="string"?e:e.name},ri=e=>{var g;let[t,n]=i.useState(!1),{row:r,updateArgs:o,compact:a,expandable:l,initialExpandedArgs:s}=e,{name:c,description:u}=r,d=r.table||{},p=d.type||CD(r.type),m=d.defaultValue||r.defaultValue,f=(g=r.type)==null?void 0:g.required,y=u!=null&&u!=="";return h.createElement("tr",{onMouseEnter:()=>n(!0),onMouseLeave:()=>n(!1)},h.createElement(SD,{expandable:l},h.createElement(yD,null,c),f?h.createElement(wD,{title:"Required"},"*"):null),a?null:h.createElement("td",null,y&&h.createElement(bD,null,h.createElement(x4,null,u)),d.jsDocTags!=null?h.createElement(h.Fragment,null,h.createElement(xD,{hasDescription:y},h.createElement(e0,{value:p,initialExpandedArgs:s})),h.createElement(XF,{tags:d.jsDocTags})):h.createElement(ED,{hasDescription:y},h.createElement(e0,{value:p,initialExpandedArgs:s}))),a?null:h.createElement("td",null,h.createElement(e0,{value:m,initialExpandedArgs:s})),o?h.createElement("td",null,h.createElement(vD,{...e,isHovered:t})):null)},kD=_(Cv)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?ue(.25,e.color.defaultText):ue(.3,e.color.defaultText),border:"none",display:"inline-block"})),RD=_(e1)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?ue(.25,e.color.defaultText):ue(.3,e.color.defaultText),border:"none",display:"inline-block"})),_D=_.span(({theme:e})=>({display:"flex",lineHeight:"20px",alignItems:"center"})),ID=_.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"?ue(.4,e.color.defaultText):ue(.6,e.color.defaultText),background:`${e.background.app} !important`,"& ~ td":{background:`${e.background.app} !important`}})),AD=_.td(({theme:e})=>({position:"relative",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,background:e.background.app})),OD=_.td(()=>({position:"relative"})),$D=_.tr(({theme:e})=>({"&:hover > td":{backgroundColor:`${Sr(.005,e.background.app)} !important`,boxShadow:`${e.color.mediumlight} 0 - 1px 0 0 inset`,cursor:"row-resize"}})),H5=_.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"})),n0=({level:e="section",label:t,children:n,initialExpanded:r=!0,colSpan:o=3})=>{let[a,l]=i.useState(r),s=e==="subsection"?AD:ID,c=(n==null?void 0:n.length)||0,u=e==="subsection"?`${c} item${c!==1?"s":""}`:"",d=`${a?"Hide":"Show"} ${e==="subsection"?c:t} item${c!==1?"s":""}`;return h.createElement(h.Fragment,null,h.createElement($D,{title:d},h.createElement(s,{colSpan:1},h.createElement(H5,{onClick:p=>l(!a),tabIndex:0},d),h.createElement(_D,null,a?h.createElement(kD,null):h.createElement(RD,null),t)),h.createElement(OD,{colSpan:o-1},h.createElement(H5,{onClick:p=>l(!a),tabIndex:-1,style:{outline:"none"}},d),a?null:u)),a?n:null)},oi=_.div(({theme:e})=>({display:"flex",gap:16,borderBottom:`1px solid ${e.appBorderColor}`,"&:last-child":{borderBottom:0}})),Be=_.div(({numColumn:e})=>({display:"flex",flexDirection:"column",flex:e||1,gap:5,padding:"12px 20px"})),Se=_.div(({theme:e,width:t,height:n})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,width:t||"100%",height:n||16,borderRadius:3})),Fe=[2,4,2,2],TD=()=>h.createElement(h.Fragment,null,h.createElement(oi,null,h.createElement(Be,{numColumn:Fe[0]},h.createElement(Se,{width:"60%"})),h.createElement(Be,{numColumn:Fe[1]},h.createElement(Se,{width:"30%"})),h.createElement(Be,{numColumn:Fe[2]},h.createElement(Se,{width:"60%"})),h.createElement(Be,{numColumn:Fe[3]},h.createElement(Se,{width:"60%"}))),h.createElement(oi,null,h.createElement(Be,{numColumn:Fe[0]},h.createElement(Se,{width:"60%"})),h.createElement(Be,{numColumn:Fe[1]},h.createElement(Se,{width:"80%"}),h.createElement(Se,{width:"30%"})),h.createElement(Be,{numColumn:Fe[2]},h.createElement(Se,{width:"60%"})),h.createElement(Be,{numColumn:Fe[3]},h.createElement(Se,{width:"60%"}))),h.createElement(oi,null,h.createElement(Be,{numColumn:Fe[0]},h.createElement(Se,{width:"60%"})),h.createElement(Be,{numColumn:Fe[1]},h.createElement(Se,{width:"80%"}),h.createElement(Se,{width:"30%"})),h.createElement(Be,{numColumn:Fe[2]},h.createElement(Se,{width:"60%"})),h.createElement(Be,{numColumn:Fe[3]},h.createElement(Se,{width:"60%"}))),h.createElement(oi,null,h.createElement(Be,{numColumn:Fe[0]},h.createElement(Se,{width:"60%"})),h.createElement(Be,{numColumn:Fe[1]},h.createElement(Se,{width:"80%"}),h.createElement(Se,{width:"30%"})),h.createElement(Be,{numColumn:Fe[2]},h.createElement(Se,{width:"60%"})),h.createElement(Be,{numColumn:Fe[3]},h.createElement(Se,{width:"60%"})))),MD=_.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"})),LD=_.div(({theme:e})=>({display:"flex",fontSize:e.typography.size.s2-1,gap:25})),zD=_.div(({theme:e})=>({width:1,height:16,backgroundColor:e.appBorderColor})),PD=({inAddonPanel:e})=>{let[t,n]=i.useState(!0);return i.useEffect(()=>{let r=setTimeout(()=>{n(!1)},100);return()=>clearTimeout(r)},[]),t?null:h.createElement(MD,{inAddonPanel:e},h.createElement(h1,{title:e?"Interactive story playground":"Args table with interactive controls couldn't be auto-generated",description:h.createElement(h.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:h.createElement(LD,null,e&&h.createElement(h.Fragment,null,h.createElement(Lr,{href:"https://youtu.be/0gOfS6K0x0E",target:"_blank",withArrow:!0},h.createElement(wv,null)," Watch 5m video"),h.createElement(zD,null),h.createElement(Lr,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},h.createElement(rs,null)," Read docs")),!e&&h.createElement(Lr,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},h.createElement(rs,null)," Learn how to set that up"))}))},ND=_.table(({theme:e,compact:t,inAddonPanel:n})=>({"&&":{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:n?0:25,marginBottom:n?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"?ue(.25,e.color.defaultText):ue(.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:n?0:1,marginRight:n?0:1,tbody:{...n?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}`},...n?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}}}}})),BD=_(er)(({theme:e})=>({margin:"-4px -12px -4px 0"})),FD=_.span({display:"flex",justifyContent:"space-between"}),HD={alpha:(e,t)=>e.name.localeCompare(t.name),requiredFirst:(e,t)=>{var n,r;return+!!((n=t.type)!=null&&n.required)-+!!((r=e.type)!=null&&r.required)||e.name.localeCompare(t.name)},none:void 0},DD=(e,t)=>{let n={ungrouped:[],ungroupedSubsections:{},sections:{}};if(!e)return n;Object.entries(e).forEach(([a,l])=>{let{category:s,subcategory:c}=(l==null?void 0:l.table)||{};if(s){let u=n.sections[s]||{ungrouped:[],subsections:{}};if(!c)u.ungrouped.push({key:a,...l});else{let d=u.subsections[c]||[];d.push({key:a,...l}),u.subsections[c]=d}n.sections[s]=u}else if(c){let u=n.ungroupedSubsections[c]||[];u.push({key:a,...l}),n.ungroupedSubsections[c]=u}else n.ungrouped.push({key:a,...l})});let r=HD[t],o=a=>r?Object.keys(a).reduce((l,s)=>({...l,[s]:a[s].sort(r)}),{}):a;return{ungrouped:n.ungrouped.sort(r),ungroupedSubsections:o(n.ungroupedSubsections),sections:Object.keys(n.sections).reduce((a,l)=>({...a,[l]:{ungrouped:n.sections[l].ungrouped.sort(r),subsections:o(n.sections[l].subsections)}}),{})}},jD=(e,t,n)=>{try{return p3(e,t,n)}catch(r){return wF.warn(r.message),!1}},$u=e=>{let{updateArgs:t,resetArgs:n,compact:r,inAddonPanel:o,initialExpandedArgs:a,sort:l="none",isLoading:s}=e;if("error"in e){let{error:v}=e;return h.createElement(B4,null,v," ",h.createElement(Lr,{href:"http://storybook.js.org/docs/",target:"_blank",withArrow:!0},h.createElement(rs,null)," Read the docs"))}if(s)return h.createElement(TD,null);let{rows:c,args:u,globals:d}="rows"in e&&e,p=DD(wT(c,v=>{var w;return!((w=v==null?void 0:v.table)!=null&&w.disable)&&jD(v,u||{},d||{})}),l),m=p.ungrouped.length===0,f=Object.entries(p.sections).length===0,y=Object.entries(p.ungroupedSubsections).length===0;if(m&&f&&y)return h.createElement(PD,{inAddonPanel:o});let g=1;t&&(g+=1),r||(g+=2);let S=Object.keys(p.sections).length>0,b={updateArgs:t,compact:r,inAddonPanel:o,initialExpandedArgs:a};return h.createElement(c1,null,h.createElement(ND,{compact:r,inAddonPanel:o,className:"docblock-argstable sb-unstyled"},h.createElement("thead",{className:"docblock-argstable-head"},h.createElement("tr",null,h.createElement("th",null,h.createElement("span",null,"Name")),r?null:h.createElement("th",null,h.createElement("span",null,"Description")),r?null:h.createElement("th",null,h.createElement("span",null,"Default")),t?h.createElement("th",null,h.createElement(FD,null,"Control"," ",!s&&n&&h.createElement(BD,{onClick:()=>n(),title:"Reset controls"},h.createElement(Rv,{"aria-hidden":!0})))):null)),h.createElement("tbody",{className:"docblock-argstable-body"},p.ungrouped.map(v=>h.createElement(ri,{key:v.key,row:v,arg:u&&u[v.key],...b})),Object.entries(p.ungroupedSubsections).map(([v,w])=>h.createElement(n0,{key:v,label:v,level:"subsection",colSpan:g},w.map(E=>h.createElement(ri,{key:E.key,row:E,arg:u&&u[E.key],expandable:S,...b})))),Object.entries(p.sections).map(([v,w])=>h.createElement(n0,{key:v,label:v,level:"section",colSpan:g},w.ungrouped.map(E=>h.createElement(ri,{key:E.key,row:E,arg:u&&u[E.key],...b})),Object.entries(w.subsections).map(([E,x])=>h.createElement(n0,{key:E,label:E,level:"subsection",colSpan:g},x.map(C=>h.createElement(ri,{key:C.key,row:C,arg:u&&u[C.key],expandable:S,...b})))))))))},UD=({tabs:e,...t})=>{let n=Object.entries(e);return n.length===1?h.createElement($u,{...n[0][1],...t}):h.createElement(v1,null,n.map((r,o)=>{let[a,l]=r,s=`prop_table_div_${a}`,c="div",u=o===0?t:{sort:t.sort};return h.createElement(c,{key:s,id:s,title:a},({active:d})=>d?h.createElement($u,{key:`prop_table_${a}`,...l,...u}):null)}))};_.div(({theme:e})=>({marginRight:30,fontSize:`${e.typography.size.s1}px`,color:e.base==="light"?ue(.4,e.color.defaultText):ue(.6,e.color.defaultText)}));_.div({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});_.div({display:"flex",flexDirection:"row",alignItems:"baseline","&:not(:last-child)":{marginBottom:"1rem"}});_.div(ge,({theme:e})=>({...Gs(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"?ue(.2,e.color.defaultText):ue(.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"?ue(.4,e.color.defaultText):ue(.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})=>({...Gs(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"?ue(.4,e.color.defaultText):ue(.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})=>({...Gs(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 VD=e=>`anchor--${e}`,WD=({storyId:e,children:t})=>h.createElement("div",{id:VD(e),className:"sb-anchor"},t);wt&&wt.__DOCS_CONTEXT__===void 0&&(wt.__DOCS_CONTEXT__=i.createContext(null),wt.__DOCS_CONTEXT__.displayName="DocsContext");var pn=wt?wt.__DOCS_CONTEXT__:i.createContext(null),Yr=(e,t)=>i.useContext(pn).resolveOf(e,t),GD=e=>e.split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(""),qD=e=>{if(e)return typeof e=="string"?e.includes("-")?GD(e):e:e.__docgenInfo&&e.__docgenInfo.displayName?e.__docgenInfo.displayName:e.name};function YD(e,t="start"){e.scrollIntoView({behavior:"smooth",block:t,inline:"nearest"})}function n3(e){return iF(e,{allowFunction:!1})}var r3=i.createContext({sources:{}}),o3="--unknown--",KD=({children:e,channel:t})=>{let[n,r]=i.useState({});return i.useEffect(()=>{let o=(a,l=null,s=!1)=>{let{id:c,args:u=void 0,source:d,format:p}=typeof a=="string"?{id:a,source:l,format:s}:a,m=u?n3(u):o3;r(f=>({...f,[c]:{...f[c],[m]:{code:d,format:p}}}))};return t.on(B1,o),()=>t.off(B1,o)},[]),h.createElement(r3.Provider,{value:{sources:n}},e)},XD=(e,t,n)=>{let{sources:r}=n,o=r==null?void 0:r[e];return(o==null?void 0:o[n3(t)])||(o==null?void 0:o[o3])||{code:""}},ZD=({snippet:e,storyContext:t,typeFromProps:n,transformFromProps:r})=>{var c,u;let{__isArgsStory:o}=t.parameters,a=((c=t.parameters.docs)==null?void 0:c.source)||{},l=n||a.type||Xs.AUTO;if(a.code!==void 0)return a.code;let s=l===Xs.DYNAMIC||l===Xs.AUTO&&e&&o?e:a.originalSource||"";return((u=r??a.transform)==null?void 0:u(s,t))||s},QD=(e,t,n)=>{var f,y,g,S;let r,{of:o}=e;if("of"in e&&o===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");if(o)r=t.resolveOf(o,["story"]).story;else try{r=t.storyById()}catch{}let a=((y=(f=r==null?void 0:r.parameters)==null?void 0:f.docs)==null?void 0:y.source)||{},{code:l}=e,s=e.format??a.format,c=e.language??a.language??"jsx",u=e.dark??a.dark??!1;if(!l&&!r)return{error:"Oh no! The source is not available."};if(l)return{code:l,format:s,language:c,dark:u};let d=t.getStoryContext(r),p=e.__forceInitialArgs?d.initialArgs:d.unmappedArgs,m=XD(r.id,p,n);return s=m.format??((S=(g=r.parameters.docs)==null?void 0:g.source)==null?void 0:S.format)??!1,{code:ZD({snippet:m.code,storyContext:{...d,args:p},typeFromProps:e.type,transformFromProps:e.transform}),format:s,language:c,dark:u}};function JD(e,t){let n=ej([e],t);return n&&n[0]}function ej(e,t){let[n,r]=i.useState({});return i.useEffect(()=>{Promise.all(e.map(async o=>{let a=await t.loadStory(o);r(l=>l[o]===a?l:{...l,[o]:a})}))}),e.map(o=>{if(n[o])return n[o];try{return t.storyById(o)}catch{return null}})}var tj=(e,t)=>{let{of:n,meta:r}=e;if("of"in e&&n===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");return r&&t.referenceMeta(r,!1),t.resolveOf(n||"story",["story"]).story.id},nj=(e,t,n)=>{let{parameters:r={}}=t||{},{docs:o={}}=r,a=o.story||{};if(o.disable)return null;if(e.inline??a.inline??!1){let s=e.height??a.height,c=e.autoplay??a.autoplay??!1;return{story:t,inline:!0,height:s,autoplay:c,forceInitialArgs:!!e.__forceInitialArgs,primary:!!e.__primary,renderStoryToElement:n.renderStoryToElement}}let l=e.height??a.height??a.iframeHeight??"100px";return{story:t,inline:!1,height:l,primary:!!e.__primary}},rj=(e={__forceInitialArgs:!1,__primary:!1})=>{let t=i.useContext(pn),n=tj(e,t),r=JD(n,t);if(!r)return h.createElement(D4,null);let o=nj(e,r,t);return o?h.createElement(jF,{...o}):null},oj=e=>{var m,f,y,g,S,b,v,w,E,x;let t=i.useContext(pn),n=i.useContext(r3),{of:r,source:o}=e;if("of"in e&&r===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let{story:a}=Yr(r||"story",["story"]),l=QD({...o,...r&&{of:r}},t,n),s=e.layout??a.parameters.layout??((f=(m=a.parameters.docs)==null?void 0:m.canvas)==null?void 0:f.layout)??"padded",c=e.withToolbar??((g=(y=a.parameters.docs)==null?void 0:y.canvas)==null?void 0:g.withToolbar)??!1,u=e.additionalActions??((b=(S=a.parameters.docs)==null?void 0:S.canvas)==null?void 0:b.additionalActions),d=e.sourceState??((w=(v=a.parameters.docs)==null?void 0:v.canvas)==null?void 0:w.sourceState)??"hidden",p=e.className??((x=(E=a.parameters.docs)==null?void 0:E.canvas)==null?void 0:x.className);return h.createElement(j4,{withSource:d==="none"?void 0:l,isExpanded:d==="shown",withToolbar:c,additionalActions:u,className:p,layout:s},h.createElement(rj,{of:r||a.moduleExport,meta:e.meta,...e.story}))},aj=(e,t)=>{let n=t.getStoryContext(e),[r,o]=i.useState(n.globals);return i.useEffect(()=>{let a=l=>{o(l.globals)};return t.channel.on(_5,a),()=>t.channel.off(_5,a)},[t.channel]),[r]},lj=(e,t)=>{let n=ij(e,t);if(!n)throw new Error("No result when story was defined");return n},ij=(e,t)=>{let n=e?t.getStoryContext(e):{args:{}},{id:r}=e||{id:"none"},[o,a]=i.useState(n.args);i.useEffect(()=>{let c=u=>{u.storyId===r&&a(u.args)};return t.channel.on(I5,c),()=>t.channel.off(I5,c)},[r,t.channel]);let l=i.useCallback(c=>t.channel.emit(bF,{storyId:r,updatedArgs:c}),[r,t.channel]),s=i.useCallback(c=>t.channel.emit(EF,{storyId:r,argNames:c}),[r,t.channel]);return e&&[o,l,s]};function sj(e,t){let{extractArgTypes:n}=t.docs||{};if(!n)throw new Error("Args unsupported. See Args documentation for your framework.");return n(e)}var cj=e=>{var E;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 n=i.useContext(pn),{story:r}=n.resolveOf(t||"story",["story"]),{parameters:o,argTypes:a,component:l,subcomponents:s}=r,c=((E=o.docs)==null?void 0:E.controls)||{},u=e.include??c.include,d=e.exclude??c.exclude,p=e.sort??c.sort,[m,f,y]=lj(r,n),[g]=aj(r,n),S=R5(a,u,d);if(!(s&&Object.keys(s).length>0))return Object.keys(S).length>0||Object.keys(m).length>0?h.createElement($u,{rows:S,sort:p,args:m,globals:g,updateArgs:f,resetArgs:y}):null;let b=qD(l),v=Object.fromEntries(Object.entries(s).map(([x,C])=>[x,{rows:R5(sj(C,o),u,d),sort:p}])),w={[b]:{rows:S,sort:p},...v};return h.createElement(UD,{tabs:w,sort:p,args:m,globals:g,updateArgs:f,resetArgs:y})},{document:a3}=wt,l3=({className:e,children:t,...n})=>{if(typeof e!="string"&&(typeof t!="string"||!t.match(/[\n\r]/g)))return h.createElement(l1,null,t);let r=e&&e.split("-");return h.createElement(F4,{language:r&&r[1]||"text",format:!1,code:t,...n})};function T1(e,t){e.channel.emit(xF,t)}var Tu=K2.a,uj=({hash:e,children:t})=>{let n=i.useContext(pn);return h.createElement(Tu,{href:e,target:"_self",onClick:r=>{let o=e.substring(1);a3.getElementById(o)&&T1(n,e)}},t)},i3=e=>{let{href:t,target:n,children:r,...o}=e,a=i.useContext(pn);return!t||n==="_blank"||/^https?:\/\//.test(t)?h.createElement(Tu,{...e}):t.startsWith("#")?h.createElement(uj,{hash:t},r):h.createElement(Tu,{href:t,onClick:l=>{l.button===0&&!l.altKey&&!l.ctrlKey&&!l.metaKey&&!l.shiftKey&&(l.preventDefault(),T1(a,l.currentTarget.getAttribute("href")))},target:n,...o},r)},s3=["h1","h2","h3","h4","h5","h6"],dj=s3.reduce((e,t)=>({...e,[t]:_(t)({"& svg":{position:"relative",top:"-0.1em",visibility:"hidden"},"&:hover svg":{visibility:"visible"}})}),{}),fj=_.a(()=>({float:"left",lineHeight:"inherit",paddingRight:"10px",marginLeft:"-24px",color:"inherit"})),pj=({as:e,id:t,children:n,...r})=>{let o=i.useContext(pn),a=dj[e],l=`#${t}`;return h.createElement(a,{id:t,...r},h.createElement(fj,{"aria-hidden":"true",href:l,tabIndex:-1,target:"_self",onClick:s=>{a3.getElementById(t)&&T1(o,l)}},h.createElement(Sv,null)),n)},M1=e=>{let{as:t,id:n,children:r,...o}=e;if(n)return h.createElement(pj,{as:t,id:n,...o},r);let a=t,{as:l,...s}=e;return h.createElement(a,{...de(s,t)})},c3=s3.reduce((e,t)=>({...e,[t]:n=>h.createElement(M1,{as:t,...n})}),{}),hj=e=>{var t;if(!e.children)return null;if(typeof e.children!="string")throw new Error(P3`The Markdown block only accepts children as a single string, but children were of type: '${typeof e.children}' + ${Sr(.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 ${Jt(e.appBorderColor,.2)}`,borderRadius:50,cursor:"grab",marginTop:0},"@supports (-ms-ime-align:auto)":{"input[type=range]":{margin:"0"}}})),t3=_.span({paddingLeft:5,paddingRight:5,fontSize:12,whiteSpace:"nowrap",fontFeatureSettings:"tnum",fontVariantNumeric:"tabular-nums","[aria-readonly=true] &":{opacity:.5}}),oD=_(t3)(({numberOFDecimalsPlaces:e,max:t})=>({width:`${e+t.toString().length*2+3}ch`,textAlign:"right",flexShrink:0})),aD=_.div({display:"flex",alignItems:"center",width:"100%"});function lD(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 iD=({name:e,value:t,onChange:n,min:r=0,max:o=100,step:a=1,onBlur:l,onFocus:s,argType:c})=>{var f;let u=y=>{n(vH(y.target.value))},d=t!==void 0,p=i.useMemo(()=>lD(a),[a]),m=!!((f=c==null?void 0:c.table)!=null&&f.readonly);return h.createElement(aD,{"aria-readonly":m},h.createElement(t3,null,r),h.createElement(rD,{id:Nt(e),type:"range",disabled:m,onChange:u,name:e,value:t,min:r,max:o,step:a,onFocus:s,onBlur:l}),h.createElement(oD,{numberOFDecimalsPlaces:p,max:o},d?t.toFixed(p):"--"," / ",o))},sD=_.label({display:"flex"}),cD=_.div(({isMaxed:e})=>({marginLeft:"0.75rem",paddingTop:"0.35rem",color:e?"red":void 0})),uD=({name:e,value:t,onChange:n,onFocus:r,onBlur:o,maxLength:a,argType:l})=>{var f;let s=y=>{n(y.target.value)},c=!!((f=l==null?void 0:l.table)!=null&&f.readonly),[u,d]=i.useState(!1),p=i.useCallback(()=>{n(""),d(!0)},[d]);if(t===void 0)return h.createElement(dr,{variant:"outline",size:"medium",disabled:c,id:ks(e),onClick:p},"Set string");let m=typeof t=="string";return h.createElement(sD,null,h.createElement(Qo.Textarea,{id:Nt(e),maxLength:a,onChange:s,disabled:c,size:"flex",placeholder:"Edit string...",autoFocus:u,valid:m?null:"error",name:e,value:m?t:"",onFocus:r,onBlur:o}),a&&h.createElement(cD,{isMaxed:(t==null?void 0:t.length)===a},(t==null?void 0:t.length)??0," / ",a))},dD=_(Qo.Input)({padding:10});function fD(e){e.forEach(t=>{t.startsWith("blob:")&&URL.revokeObjectURL(t)})}var pD=({onChange:e,name:t,accept:n="image/*",value:r,argType:o})=>{var c;let a=i.useRef(null),l=(c=o==null?void 0:o.control)==null?void 0:c.readOnly;function s(u){if(!u.target.files)return;let d=Array.from(u.target.files).map(p=>URL.createObjectURL(p));e(d),fD(r)}return i.useEffect(()=>{r==null&&a.current&&(a.current.value=null)},[r,t]),h.createElement(dD,{ref:a,id:Nt(t),type:"file",name:t,multiple:!0,disabled:l,onChange:s,accept:n,size:"flex"})},hD=i.lazy(()=>tr(()=>import("./Color-PRSJMWNM-LbgHd4DX.js"),__vite__mapDeps([9,2,3,5,1,4,6]),import.meta.url)),mD=e=>h.createElement(i.Suspense,{fallback:h.createElement("div",null)},h.createElement(hD,{...e})),gD={array:B5,object:B5,boolean:cH,color:mD,date:mH,number:wH,check:oo,"inline-check":oo,radio:oo,"inline-radio":oo,select:oo,"multi-select":oo,range:iD,text:uD,file:pD},F5=()=>h.createElement(h.Fragment,null,"-"),vD=({row:e,arg:t,updateArgs:n,isHovered:r})=>{var g;let{key:o,control:a}=e,[l,s]=i.useState(!1),[c,u]=i.useState({value:t});i.useEffect(()=>{l||u({value:t})},[l,t]);let d=i.useCallback(S=>(u({value:S}),n({[o]:S}),S),[n,o]),p=i.useCallback(()=>s(!1),[]),m=i.useCallback(()=>s(!0),[]);if(!a||a.disable){let S=(a==null?void 0:a.disable)!==!0&&((g=e==null?void 0:e.type)==null?void 0:g.name)!=="function";return r&&S?h.createElement(Lr,{href:"https://storybook.js.org/docs/react/essentials/controls",target:"_blank",withArrow:!0},"Setup controls"):h.createElement(F5,null)}let f={name:o,argType:e,value:c.value,onChange:d,onBlur:p,onFocus:m},y=gD[a.type]||F5;return h.createElement(y,{...f,...a,controlType:a.type})},yD=_.span({fontWeight:"bold"}),wD=_.span(({theme:e})=>({color:e.color.negative,fontFamily:e.typography.fonts.mono,cursor:"help"})),bD=_.div(({theme:e})=>({"&&":{p:{margin:"0 0 10px 0"},a:{color:e.color.secondary}},code:{...$n({theme:e}),fontSize:12,fontFamily:e.typography.fonts.mono},"& code":{margin:0,display:"inline-block"},"& pre > code":{whiteSpace:"pre-wrap"}})),ED=_.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?ue(.1,e.color.defaultText):ue(.2,e.color.defaultText),marginTop:t?4:0})),xD=_.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?ue(.1,e.color.defaultText):ue(.2,e.color.defaultText),marginTop:t?12:0,marginBottom:12})),SD=_.td(({theme:e,expandable:t})=>({paddingLeft:t?"40px !important":"20px !important"})),CD=e=>e&&{summary:typeof e=="string"?e:e.name},ri=e=>{var g;let[t,n]=i.useState(!1),{row:r,updateArgs:o,compact:a,expandable:l,initialExpandedArgs:s}=e,{name:c,description:u}=r,d=r.table||{},p=d.type||CD(r.type),m=d.defaultValue||r.defaultValue,f=(g=r.type)==null?void 0:g.required,y=u!=null&&u!=="";return h.createElement("tr",{onMouseEnter:()=>n(!0),onMouseLeave:()=>n(!1)},h.createElement(SD,{expandable:l},h.createElement(yD,null,c),f?h.createElement(wD,{title:"Required"},"*"):null),a?null:h.createElement("td",null,y&&h.createElement(bD,null,h.createElement(x4,null,u)),d.jsDocTags!=null?h.createElement(h.Fragment,null,h.createElement(xD,{hasDescription:y},h.createElement(e0,{value:p,initialExpandedArgs:s})),h.createElement(XF,{tags:d.jsDocTags})):h.createElement(ED,{hasDescription:y},h.createElement(e0,{value:p,initialExpandedArgs:s}))),a?null:h.createElement("td",null,h.createElement(e0,{value:m,initialExpandedArgs:s})),o?h.createElement("td",null,h.createElement(vD,{...e,isHovered:t})):null)},kD=_(Cv)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?ue(.25,e.color.defaultText):ue(.3,e.color.defaultText),border:"none",display:"inline-block"})),RD=_(e1)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?ue(.25,e.color.defaultText):ue(.3,e.color.defaultText),border:"none",display:"inline-block"})),_D=_.span(({theme:e})=>({display:"flex",lineHeight:"20px",alignItems:"center"})),ID=_.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"?ue(.4,e.color.defaultText):ue(.6,e.color.defaultText),background:`${e.background.app} !important`,"& ~ td":{background:`${e.background.app} !important`}})),AD=_.td(({theme:e})=>({position:"relative",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,background:e.background.app})),OD=_.td(()=>({position:"relative"})),$D=_.tr(({theme:e})=>({"&:hover > td":{backgroundColor:`${Sr(.005,e.background.app)} !important`,boxShadow:`${e.color.mediumlight} 0 - 1px 0 0 inset`,cursor:"row-resize"}})),H5=_.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"})),n0=({level:e="section",label:t,children:n,initialExpanded:r=!0,colSpan:o=3})=>{let[a,l]=i.useState(r),s=e==="subsection"?AD:ID,c=(n==null?void 0:n.length)||0,u=e==="subsection"?`${c} item${c!==1?"s":""}`:"",d=`${a?"Hide":"Show"} ${e==="subsection"?c:t} item${c!==1?"s":""}`;return h.createElement(h.Fragment,null,h.createElement($D,{title:d},h.createElement(s,{colSpan:1},h.createElement(H5,{onClick:p=>l(!a),tabIndex:0},d),h.createElement(_D,null,a?h.createElement(kD,null):h.createElement(RD,null),t)),h.createElement(OD,{colSpan:o-1},h.createElement(H5,{onClick:p=>l(!a),tabIndex:-1,style:{outline:"none"}},d),a?null:u)),a?n:null)},oi=_.div(({theme:e})=>({display:"flex",gap:16,borderBottom:`1px solid ${e.appBorderColor}`,"&:last-child":{borderBottom:0}})),Be=_.div(({numColumn:e})=>({display:"flex",flexDirection:"column",flex:e||1,gap:5,padding:"12px 20px"})),Se=_.div(({theme:e,width:t,height:n})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,width:t||"100%",height:n||16,borderRadius:3})),Fe=[2,4,2,2],TD=()=>h.createElement(h.Fragment,null,h.createElement(oi,null,h.createElement(Be,{numColumn:Fe[0]},h.createElement(Se,{width:"60%"})),h.createElement(Be,{numColumn:Fe[1]},h.createElement(Se,{width:"30%"})),h.createElement(Be,{numColumn:Fe[2]},h.createElement(Se,{width:"60%"})),h.createElement(Be,{numColumn:Fe[3]},h.createElement(Se,{width:"60%"}))),h.createElement(oi,null,h.createElement(Be,{numColumn:Fe[0]},h.createElement(Se,{width:"60%"})),h.createElement(Be,{numColumn:Fe[1]},h.createElement(Se,{width:"80%"}),h.createElement(Se,{width:"30%"})),h.createElement(Be,{numColumn:Fe[2]},h.createElement(Se,{width:"60%"})),h.createElement(Be,{numColumn:Fe[3]},h.createElement(Se,{width:"60%"}))),h.createElement(oi,null,h.createElement(Be,{numColumn:Fe[0]},h.createElement(Se,{width:"60%"})),h.createElement(Be,{numColumn:Fe[1]},h.createElement(Se,{width:"80%"}),h.createElement(Se,{width:"30%"})),h.createElement(Be,{numColumn:Fe[2]},h.createElement(Se,{width:"60%"})),h.createElement(Be,{numColumn:Fe[3]},h.createElement(Se,{width:"60%"}))),h.createElement(oi,null,h.createElement(Be,{numColumn:Fe[0]},h.createElement(Se,{width:"60%"})),h.createElement(Be,{numColumn:Fe[1]},h.createElement(Se,{width:"80%"}),h.createElement(Se,{width:"30%"})),h.createElement(Be,{numColumn:Fe[2]},h.createElement(Se,{width:"60%"})),h.createElement(Be,{numColumn:Fe[3]},h.createElement(Se,{width:"60%"})))),MD=_.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"})),LD=_.div(({theme:e})=>({display:"flex",fontSize:e.typography.size.s2-1,gap:25})),zD=_.div(({theme:e})=>({width:1,height:16,backgroundColor:e.appBorderColor})),PD=({inAddonPanel:e})=>{let[t,n]=i.useState(!0);return i.useEffect(()=>{let r=setTimeout(()=>{n(!1)},100);return()=>clearTimeout(r)},[]),t?null:h.createElement(MD,{inAddonPanel:e},h.createElement(h1,{title:e?"Interactive story playground":"Args table with interactive controls couldn't be auto-generated",description:h.createElement(h.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:h.createElement(LD,null,e&&h.createElement(h.Fragment,null,h.createElement(Lr,{href:"https://youtu.be/0gOfS6K0x0E",target:"_blank",withArrow:!0},h.createElement(wv,null)," Watch 5m video"),h.createElement(zD,null),h.createElement(Lr,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},h.createElement(rs,null)," Read docs")),!e&&h.createElement(Lr,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},h.createElement(rs,null)," Learn how to set that up"))}))},ND=_.table(({theme:e,compact:t,inAddonPanel:n})=>({"&&":{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:n?0:25,marginBottom:n?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"?ue(.25,e.color.defaultText):ue(.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:n?0:1,marginRight:n?0:1,tbody:{...n?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}`},...n?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}}}}})),BD=_(er)(({theme:e})=>({margin:"-4px -12px -4px 0"})),FD=_.span({display:"flex",justifyContent:"space-between"}),HD={alpha:(e,t)=>e.name.localeCompare(t.name),requiredFirst:(e,t)=>{var n,r;return+!!((n=t.type)!=null&&n.required)-+!!((r=e.type)!=null&&r.required)||e.name.localeCompare(t.name)},none:void 0},DD=(e,t)=>{let n={ungrouped:[],ungroupedSubsections:{},sections:{}};if(!e)return n;Object.entries(e).forEach(([a,l])=>{let{category:s,subcategory:c}=(l==null?void 0:l.table)||{};if(s){let u=n.sections[s]||{ungrouped:[],subsections:{}};if(!c)u.ungrouped.push({key:a,...l});else{let d=u.subsections[c]||[];d.push({key:a,...l}),u.subsections[c]=d}n.sections[s]=u}else if(c){let u=n.ungroupedSubsections[c]||[];u.push({key:a,...l}),n.ungroupedSubsections[c]=u}else n.ungrouped.push({key:a,...l})});let r=HD[t],o=a=>r?Object.keys(a).reduce((l,s)=>({...l,[s]:a[s].sort(r)}),{}):a;return{ungrouped:n.ungrouped.sort(r),ungroupedSubsections:o(n.ungroupedSubsections),sections:Object.keys(n.sections).reduce((a,l)=>({...a,[l]:{ungrouped:n.sections[l].ungrouped.sort(r),subsections:o(n.sections[l].subsections)}}),{})}},jD=(e,t,n)=>{try{return p3(e,t,n)}catch(r){return wF.warn(r.message),!1}},$u=e=>{let{updateArgs:t,resetArgs:n,compact:r,inAddonPanel:o,initialExpandedArgs:a,sort:l="none",isLoading:s}=e;if("error"in e){let{error:v}=e;return h.createElement(B4,null,v," ",h.createElement(Lr,{href:"http://storybook.js.org/docs/",target:"_blank",withArrow:!0},h.createElement(rs,null)," Read the docs"))}if(s)return h.createElement(TD,null);let{rows:c,args:u,globals:d}="rows"in e&&e,p=DD(wT(c,v=>{var w;return!((w=v==null?void 0:v.table)!=null&&w.disable)&&jD(v,u||{},d||{})}),l),m=p.ungrouped.length===0,f=Object.entries(p.sections).length===0,y=Object.entries(p.ungroupedSubsections).length===0;if(m&&f&&y)return h.createElement(PD,{inAddonPanel:o});let g=1;t&&(g+=1),r||(g+=2);let S=Object.keys(p.sections).length>0,b={updateArgs:t,compact:r,inAddonPanel:o,initialExpandedArgs:a};return h.createElement(c1,null,h.createElement(ND,{compact:r,inAddonPanel:o,className:"docblock-argstable sb-unstyled"},h.createElement("thead",{className:"docblock-argstable-head"},h.createElement("tr",null,h.createElement("th",null,h.createElement("span",null,"Name")),r?null:h.createElement("th",null,h.createElement("span",null,"Description")),r?null:h.createElement("th",null,h.createElement("span",null,"Default")),t?h.createElement("th",null,h.createElement(FD,null,"Control"," ",!s&&n&&h.createElement(BD,{onClick:()=>n(),title:"Reset controls"},h.createElement(Rv,{"aria-hidden":!0})))):null)),h.createElement("tbody",{className:"docblock-argstable-body"},p.ungrouped.map(v=>h.createElement(ri,{key:v.key,row:v,arg:u&&u[v.key],...b})),Object.entries(p.ungroupedSubsections).map(([v,w])=>h.createElement(n0,{key:v,label:v,level:"subsection",colSpan:g},w.map(E=>h.createElement(ri,{key:E.key,row:E,arg:u&&u[E.key],expandable:S,...b})))),Object.entries(p.sections).map(([v,w])=>h.createElement(n0,{key:v,label:v,level:"section",colSpan:g},w.ungrouped.map(E=>h.createElement(ri,{key:E.key,row:E,arg:u&&u[E.key],...b})),Object.entries(w.subsections).map(([E,x])=>h.createElement(n0,{key:E,label:E,level:"subsection",colSpan:g},x.map(C=>h.createElement(ri,{key:C.key,row:C,arg:u&&u[C.key],expandable:S,...b})))))))))},UD=({tabs:e,...t})=>{let n=Object.entries(e);return n.length===1?h.createElement($u,{...n[0][1],...t}):h.createElement(v1,null,n.map((r,o)=>{let[a,l]=r,s=`prop_table_div_${a}`,c="div",u=o===0?t:{sort:t.sort};return h.createElement(c,{key:s,id:s,title:a},({active:d})=>d?h.createElement($u,{key:`prop_table_${a}`,...l,...u}):null)}))};_.div(({theme:e})=>({marginRight:30,fontSize:`${e.typography.size.s1}px`,color:e.base==="light"?ue(.4,e.color.defaultText):ue(.6,e.color.defaultText)}));_.div({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});_.div({display:"flex",flexDirection:"row",alignItems:"baseline","&:not(:last-child)":{marginBottom:"1rem"}});_.div(ge,({theme:e})=>({...Gs(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"?ue(.2,e.color.defaultText):ue(.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"?ue(.4,e.color.defaultText):ue(.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})=>({...Gs(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"?ue(.4,e.color.defaultText):ue(.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})=>({...Gs(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 VD=e=>`anchor--${e}`,WD=({storyId:e,children:t})=>h.createElement("div",{id:VD(e),className:"sb-anchor"},t);wt&&wt.__DOCS_CONTEXT__===void 0&&(wt.__DOCS_CONTEXT__=i.createContext(null),wt.__DOCS_CONTEXT__.displayName="DocsContext");var pn=wt?wt.__DOCS_CONTEXT__:i.createContext(null),Yr=(e,t)=>i.useContext(pn).resolveOf(e,t),GD=e=>e.split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(""),qD=e=>{if(e)return typeof e=="string"?e.includes("-")?GD(e):e:e.__docgenInfo&&e.__docgenInfo.displayName?e.__docgenInfo.displayName:e.name};function YD(e,t="start"){e.scrollIntoView({behavior:"smooth",block:t,inline:"nearest"})}function n3(e){return iF(e,{allowFunction:!1})}var r3=i.createContext({sources:{}}),o3="--unknown--",KD=({children:e,channel:t})=>{let[n,r]=i.useState({});return i.useEffect(()=>{let o=(a,l=null,s=!1)=>{let{id:c,args:u=void 0,source:d,format:p}=typeof a=="string"?{id:a,source:l,format:s}:a,m=u?n3(u):o3;r(f=>({...f,[c]:{...f[c],[m]:{code:d,format:p}}}))};return t.on(B1,o),()=>t.off(B1,o)},[]),h.createElement(r3.Provider,{value:{sources:n}},e)},XD=(e,t,n)=>{let{sources:r}=n,o=r==null?void 0:r[e];return(o==null?void 0:o[n3(t)])||(o==null?void 0:o[o3])||{code:""}},ZD=({snippet:e,storyContext:t,typeFromProps:n,transformFromProps:r})=>{var c,u;let{__isArgsStory:o}=t.parameters,a=((c=t.parameters.docs)==null?void 0:c.source)||{},l=n||a.type||Xs.AUTO;if(a.code!==void 0)return a.code;let s=l===Xs.DYNAMIC||l===Xs.AUTO&&e&&o?e:a.originalSource||"";return((u=r??a.transform)==null?void 0:u(s,t))||s},QD=(e,t,n)=>{var f,y,g,S;let r,{of:o}=e;if("of"in e&&o===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");if(o)r=t.resolveOf(o,["story"]).story;else try{r=t.storyById()}catch{}let a=((y=(f=r==null?void 0:r.parameters)==null?void 0:f.docs)==null?void 0:y.source)||{},{code:l}=e,s=e.format??a.format,c=e.language??a.language??"jsx",u=e.dark??a.dark??!1;if(!l&&!r)return{error:"Oh no! The source is not available."};if(l)return{code:l,format:s,language:c,dark:u};let d=t.getStoryContext(r),p=e.__forceInitialArgs?d.initialArgs:d.unmappedArgs,m=XD(r.id,p,n);return s=m.format??((S=(g=r.parameters.docs)==null?void 0:g.source)==null?void 0:S.format)??!1,{code:ZD({snippet:m.code,storyContext:{...d,args:p},typeFromProps:e.type,transformFromProps:e.transform}),format:s,language:c,dark:u}};function JD(e,t){let n=ej([e],t);return n&&n[0]}function ej(e,t){let[n,r]=i.useState({});return i.useEffect(()=>{Promise.all(e.map(async o=>{let a=await t.loadStory(o);r(l=>l[o]===a?l:{...l,[o]:a})}))}),e.map(o=>{if(n[o])return n[o];try{return t.storyById(o)}catch{return null}})}var tj=(e,t)=>{let{of:n,meta:r}=e;if("of"in e&&n===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");return r&&t.referenceMeta(r,!1),t.resolveOf(n||"story",["story"]).story.id},nj=(e,t,n)=>{let{parameters:r={}}=t||{},{docs:o={}}=r,a=o.story||{};if(o.disable)return null;if(e.inline??a.inline??!1){let s=e.height??a.height,c=e.autoplay??a.autoplay??!1;return{story:t,inline:!0,height:s,autoplay:c,forceInitialArgs:!!e.__forceInitialArgs,primary:!!e.__primary,renderStoryToElement:n.renderStoryToElement}}let l=e.height??a.height??a.iframeHeight??"100px";return{story:t,inline:!1,height:l,primary:!!e.__primary}},rj=(e={__forceInitialArgs:!1,__primary:!1})=>{let t=i.useContext(pn),n=tj(e,t),r=JD(n,t);if(!r)return h.createElement(D4,null);let o=nj(e,r,t);return o?h.createElement(jF,{...o}):null},oj=e=>{var m,f,y,g,S,b,v,w,E,x;let t=i.useContext(pn),n=i.useContext(r3),{of:r,source:o}=e;if("of"in e&&r===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let{story:a}=Yr(r||"story",["story"]),l=QD({...o,...r&&{of:r}},t,n),s=e.layout??a.parameters.layout??((f=(m=a.parameters.docs)==null?void 0:m.canvas)==null?void 0:f.layout)??"padded",c=e.withToolbar??((g=(y=a.parameters.docs)==null?void 0:y.canvas)==null?void 0:g.withToolbar)??!1,u=e.additionalActions??((b=(S=a.parameters.docs)==null?void 0:S.canvas)==null?void 0:b.additionalActions),d=e.sourceState??((w=(v=a.parameters.docs)==null?void 0:v.canvas)==null?void 0:w.sourceState)??"hidden",p=e.className??((x=(E=a.parameters.docs)==null?void 0:E.canvas)==null?void 0:x.className);return h.createElement(j4,{withSource:d==="none"?void 0:l,isExpanded:d==="shown",withToolbar:c,additionalActions:u,className:p,layout:s},h.createElement(rj,{of:r||a.moduleExport,meta:e.meta,...e.story}))},aj=(e,t)=>{let n=t.getStoryContext(e),[r,o]=i.useState(n.globals);return i.useEffect(()=>{let a=l=>{o(l.globals)};return t.channel.on(_5,a),()=>t.channel.off(_5,a)},[t.channel]),[r]},lj=(e,t)=>{let n=ij(e,t);if(!n)throw new Error("No result when story was defined");return n},ij=(e,t)=>{let n=e?t.getStoryContext(e):{args:{}},{id:r}=e||{id:"none"},[o,a]=i.useState(n.args);i.useEffect(()=>{let c=u=>{u.storyId===r&&a(u.args)};return t.channel.on(I5,c),()=>t.channel.off(I5,c)},[r,t.channel]);let l=i.useCallback(c=>t.channel.emit(bF,{storyId:r,updatedArgs:c}),[r,t.channel]),s=i.useCallback(c=>t.channel.emit(EF,{storyId:r,argNames:c}),[r,t.channel]);return e&&[o,l,s]};function sj(e,t){let{extractArgTypes:n}=t.docs||{};if(!n)throw new Error("Args unsupported. See Args documentation for your framework.");return n(e)}var cj=e=>{var E;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 n=i.useContext(pn),{story:r}=n.resolveOf(t||"story",["story"]),{parameters:o,argTypes:a,component:l,subcomponents:s}=r,c=((E=o.docs)==null?void 0:E.controls)||{},u=e.include??c.include,d=e.exclude??c.exclude,p=e.sort??c.sort,[m,f,y]=lj(r,n),[g]=aj(r,n),S=R5(a,u,d);if(!(s&&Object.keys(s).length>0))return Object.keys(S).length>0||Object.keys(m).length>0?h.createElement($u,{rows:S,sort:p,args:m,globals:g,updateArgs:f,resetArgs:y}):null;let b=qD(l),v=Object.fromEntries(Object.entries(s).map(([x,C])=>[x,{rows:R5(sj(C,o),u,d),sort:p}])),w={[b]:{rows:S,sort:p},...v};return h.createElement(UD,{tabs:w,sort:p,args:m,globals:g,updateArgs:f,resetArgs:y})},{document:a3}=wt,l3=({className:e,children:t,...n})=>{if(typeof e!="string"&&(typeof t!="string"||!t.match(/[\n\r]/g)))return h.createElement(l1,null,t);let r=e&&e.split("-");return h.createElement(F4,{language:r&&r[1]||"text",format:!1,code:t,...n})};function T1(e,t){e.channel.emit(xF,t)}var Tu=K2.a,uj=({hash:e,children:t})=>{let n=i.useContext(pn);return h.createElement(Tu,{href:e,target:"_self",onClick:r=>{let o=e.substring(1);a3.getElementById(o)&&T1(n,e)}},t)},i3=e=>{let{href:t,target:n,children:r,...o}=e,a=i.useContext(pn);return!t||n==="_blank"||/^https?:\/\//.test(t)?h.createElement(Tu,{...e}):t.startsWith("#")?h.createElement(uj,{hash:t},r):h.createElement(Tu,{href:t,onClick:l=>{l.button===0&&!l.altKey&&!l.ctrlKey&&!l.metaKey&&!l.shiftKey&&(l.preventDefault(),T1(a,l.currentTarget.getAttribute("href")))},target:n,...o},r)},s3=["h1","h2","h3","h4","h5","h6"],dj=s3.reduce((e,t)=>({...e,[t]:_(t)({"& svg":{position:"relative",top:"-0.1em",visibility:"hidden"},"&:hover svg":{visibility:"visible"}})}),{}),fj=_.a(()=>({float:"left",lineHeight:"inherit",paddingRight:"10px",marginLeft:"-24px",color:"inherit"})),pj=({as:e,id:t,children:n,...r})=>{let o=i.useContext(pn),a=dj[e],l=`#${t}`;return h.createElement(a,{id:t,...r},h.createElement(fj,{"aria-hidden":"true",href:l,tabIndex:-1,target:"_self",onClick:s=>{a3.getElementById(t)&&T1(o,l)}},h.createElement(Sv,null)),n)},M1=e=>{let{as:t,id:n,children:r,...o}=e;if(n)return h.createElement(pj,{as:t,id:n,...o},r);let a=t,{as:l,...s}=e;return h.createElement(a,{...de(s,t)})},c3=s3.reduce((e,t)=>({...e,[t]:n=>h.createElement(M1,{as:t,...n})}),{}),hj=e=>{var t;if(!e.children)return null;if(typeof e.children!="string")throw new Error(P3`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/Introduction-BGtyCnqW.js b/assets/Introduction-BGtyCnqW.js new file mode 100644 index 0000000..573f26a --- /dev/null +++ b/assets/Introduction-BGtyCnqW.js @@ -0,0 +1,40 @@ +import{r as p}from"./index-B3ehnkiM.js";import{useMDXComponents as c}from"./index-rbP-kYFP.js";import"./_commonjsHelpers-Cpj98o6Y.js";var d={exports:{}},t={};/** + * @license React + * react-jsx-runtime.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var f=p,x=Symbol.for("react.element"),m=Symbol.for("react.fragment"),b=Object.prototype.hasOwnProperty,j=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,w={key:!0,ref:!0,__self:!0,__source:!0};function u(n,e,r){var o,i={},s=null,a=null;r!==void 0&&(s=""+r),e.key!==void 0&&(s=""+e.key),e.ref!==void 0&&(a=e.ref);for(o in e)b.call(e,o)&&!w.hasOwnProperty(o)&&(i[o]=e[o]);if(n&&n.defaultProps)for(o in e=n.defaultProps,e)i[o]===void 0&&(i[o]=e[o]);return{$$typeof:x,type:n,key:s,ref:a,props:i,_owner:j.current}}t.Fragment=m;t.jsx=u;t.jsxs=u;d.exports=t;var l=d.exports;function h(n){const e={a:"a",h1:"h1",h2:"h2",p:"p",...c(),...n.components};return l.jsxs(l.Fragment,{children:[l.jsx("style",{children:` + .sbdocs.sbdocs-wrapper { + padding: 0 20px; + } +`}),` +`,l.jsx("div",{style:{display:"flex",gap:"16px",alignItems:"center",justifyContent:"end",width:"100%",position:"fixed",top:0,right:20,zIndex:50},children:l.jsxs("div",{style:{display:"flex",gap:"16px",alignItems:"center",padding:"12px",backgroundColor:"white"},children:[l.jsx("a",{href:"https://www.npmjs.com/package/@skillbill/vuelace-3",children:l.jsx("img",{style:{height:"36px"},src:"assets/vuelace-logo.svg",alt:"GitHub"})}),l.jsx("a",{href:"https://www.github.com/Skillbill/vuelace-3",children:l.jsx("img",{style:{height:"36px"},src:"assets/github-mark.svg",alt:"GitHub"})}),l.jsx("a",{href:"https://www.skillbill.it",children:l.jsx("img",{style:{height:"36px"},src:"assets/logo_skillbill_00.svg",alt:"Skillbill"})})]})}),` +`,l.jsx(e.h1,{id:"introduction",children:"Introduction"}),` +`,l.jsxs(e.p,{children:[l.jsx(e.a,{href:"https://www.github.com/Skillbill/vuelace-3",rel:"nofollow",children:"Vuelace-3"}),` is a UI component library for Vue, +built on top of `,l.jsx(e.a,{href:"https://shoelace.style/",rel:"nofollow",children:"Shoelace"})," and ",l.jsx(e.a,{href:"https://primevue.org/",rel:"nofollow",children:"PrimeVue"}),"."]}),` +`,l.jsx(e.p,{children:`The scope is to have a friendly components wrapper for the Shoelace web components ready to use in Vue. +We also included some utilities to use icons comfortably and fulfill missing components with PrimeVue's ones.`}),` +`,l.jsx(e.h2,{id:"details",children:"Details"}),` +`,l.jsx(e.p,{children:"If you want to take a look at the components, you can find them on the left panel."}),` +`,l.jsx(e.p,{children:`If you need to build a site using Vue and you are looking for a ready-to-use components for crud, +forms, and so on, you are in the right place.`}),` +`,l.jsx(e.h2,{id:"quick-start",children:"Quick start"}),` +`,l.jsxs(e.p,{children:["Vuelace-3 is available at ",l.jsx(e.a,{href:"https://www.npmjs.com/package/@skillbill/vuelace-3",rel:"nofollow",children:"npm"}),`. +It is an easy-to-use vue3 library, +you can find every updated detail in the `,l.jsx(e.a,{href:"https://github.com/Skillbill/vuelace-3/blob/main/README.md",rel:"nofollow",children:"README"})]}),` +`,l.jsxs(e.p,{children:["You can also find a video tutorial ",l.jsx(e.a,{href:"https://youtu.be/uYN2l9t50bc",rel:"nofollow",children:"here"})]}),` +`,l.jsx(e.h2,{id:"support",children:"Support"}),` +`,l.jsxs(e.p,{children:[`Do you have questions, suggestions or do you need help? +Please feel free to `,l.jsx(e.a,{href:"https://github.com/Skillbill/vuelace-3/issues/new/choose",rel:"nofollow",children:"open"})," an issue on GitHub!"]}),` +`,l.jsx(e.h2,{id:"contributing",children:"Contributing"}),` +`,l.jsxs(e.p,{children:["There are some guidelines in ",l.jsx(e.a,{href:"https://github.com/Skillbill/vuelace-3/blob/main/CONTRIBUTING.md",rel:"nofollow",children:"CONTRIBUTING"})]}),` +`,l.jsx(e.h2,{id:"license",children:"License"}),` +`,l.jsxs(e.p,{children:["The whole library is under ",l.jsx(e.a,{href:"https://github.com/Skillbill/vuelace-3/blob/main/LICENSE",rel:"nofollow",children:"MIT License"})]}),` +`,l.jsx(e.h2,{id:"versioning",children:"Versioning"}),` +`,l.jsxs(e.p,{children:["We use the standard ",l.jsx(e.a,{href:"https://semver.org/",rel:"nofollow",children:"SemVer"})]}),` +`,l.jsx(e.h2,{id:"about",children:"About"}),` +`,l.jsxs(e.p,{children:["Vuelace-3 is a library built for internal needs by ",l.jsx(e.a,{href:"https://www.skillbill.it",rel:"nofollow",children:"Skillbill"}),` +and made open source to allow anyone to use it or contribute to it.`]})]})}function k(n={}){const{wrapper:e}={...c(),...n.components};return e?l.jsx(e,{...n,children:l.jsx(h,{...n})}):h(n)}export{k as default}; diff --git a/assets/Introduction-CJmOeDJt.js b/assets/Introduction-CJmOeDJt.js deleted file mode 100644 index e59e06b..0000000 --- a/assets/Introduction-CJmOeDJt.js +++ /dev/null @@ -1,38 +0,0 @@ -import{r as p}from"./index-B3ehnkiM.js";import{useMDXComponents as c}from"./index-rbP-kYFP.js";import"./_commonjsHelpers-Cpj98o6Y.js";var d={exports:{}},t={};/** - * @license React - * react-jsx-runtime.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var f=p,x=Symbol.for("react.element"),m=Symbol.for("react.fragment"),b=Object.prototype.hasOwnProperty,j=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,y={key:!0,ref:!0,__self:!0,__source:!0};function u(i,e,r){var l,o={},s=null,h=null;r!==void 0&&(s=""+r),e.key!==void 0&&(s=""+e.key),e.ref!==void 0&&(h=e.ref);for(l in e)b.call(e,l)&&!y.hasOwnProperty(l)&&(o[l]=e[l]);if(i&&i.defaultProps)for(l in e=i.defaultProps,e)o[l]===void 0&&(o[l]=e[l]);return{$$typeof:x,type:i,key:s,ref:h,props:o,_owner:j.current}}t.Fragment=m;t.jsx=u;t.jsxs=u;d.exports=t;var n=d.exports;function a(i){const e={a:"a",h1:"h1",h2:"h2",p:"p",...c(),...i.components};return n.jsxs(n.Fragment,{children:[n.jsx("style",{children:` - .sbdocs.sbdocs-wrapper { - padding: 0 20px; - } -`}),` -`,n.jsx("div",{style:{display:"flex",gap:"16px",alignItems:"center",justifyContent:"end",width:"100%",position:"fixed",top:0,right:20,zIndex:50},children:n.jsxs("div",{style:{display:"flex",gap:"16px",alignItems:"center",padding:"12px",backgroundColor:"white"},children:[n.jsx("a",{href:"https://www.github.com/Skillbill/vuelace-3",children:n.jsx("img",{style:{height:"36px"},src:"assets/github-mark.svg",alt:"GitHub"})}),n.jsx("a",{href:"https://www.skillbill.it",children:n.jsx("img",{style:{height:"36px"},src:"assets/logo_skillbill_00.svg",alt:"Skillbill"})})]})}),` -`,n.jsx(e.h1,{id:"introduction",children:"Introduction"}),` -`,n.jsxs(e.p,{children:[n.jsx(e.a,{href:"https://www.github.com/Skillbill/vuelace-3",rel:"nofollow",children:"Vuelace-3"}),` is a UI component library for Vue, -built on top of `,n.jsx(e.a,{href:"https://shoelace.style/",rel:"nofollow",children:"Shoelace"})," and ",n.jsx(e.a,{href:"https://primevue.org/",rel:"nofollow",children:"PrimeVue"}),"."]}),` -`,n.jsx(e.p,{children:`The scope was to have a friendly components wrapper for the Shoelace web components ready to use in Vue. -We also included some utilities to use icons comfortably and fulfill missing components with PrimeVue's ones.`}),` -`,n.jsx(e.h2,{id:"details",children:"Details"}),` -`,n.jsx(e.p,{children:"We don't describe components in detail here because there is the storybook components list on the left panel."}),` -`,n.jsx(e.p,{children:`If you need to build a site using Vue and you are looking for a ready-to-use components for crud, -forms, and so on, you are in the right place.`}),` -`,n.jsx(e.h2,{id:"quick-start",children:"Quick start"}),` -`,n.jsxs(e.p,{children:[`It is an easy-to-use vue3 library, -you can find every updated detail in the `,n.jsx(e.a,{href:"https://github.com/Skillbill/vuelace-3/blob/main/README.md",rel:"nofollow",children:"README"})]}),` -`,n.jsx(e.h2,{id:"support",children:"Support"}),` -`,n.jsxs(e.p,{children:[`Do you have questions, suggestions or do you need help? -Please feel free to `,n.jsx(e.a,{href:"https://github.com/Skillbill/vuelace-3/issues/new/choose",rel:"nofollow",children:"open"})," an issue on GitHub!"]}),` -`,n.jsx(e.h2,{id:"contributing",children:"Contributing"}),` -`,n.jsxs(e.p,{children:["There are some guidelines in ",n.jsx(e.a,{href:"https://github.com/Skillbill/vuelace-3/blob/main/CONTRIBUTING.md",rel:"nofollow",children:"CONTRIBUTING"})]}),` -`,n.jsx(e.h2,{id:"license",children:"License"}),` -`,n.jsxs(e.p,{children:["The whole library is under ",n.jsx(e.a,{href:"https://github.com/Skillbill/vuelace-3/blob/main/LICENSE",rel:"nofollow",children:"MIT License"})]}),` -`,n.jsx(e.h2,{id:"versioning",children:"Versioning"}),` -`,n.jsxs(e.p,{children:["We use the standard ",n.jsx(e.a,{href:"https://semver.org/",rel:"nofollow",children:"SemVer"})]}),` -`,n.jsx(e.h2,{id:"about",children:"About"}),` -`,n.jsxs(e.p,{children:["Vuelace-3 is a library built for internal needs by ",n.jsx(e.a,{href:"https://www.skillbill.it",rel:"nofollow",children:"Skillbill"}),` -and made open source to allow anyone to use it or contribute to it.`]})]})}function k(i={}){const{wrapper:e}={...c(),...i.components};return e?n.jsx(e,{...i,children:n.jsx(a,{...i})}):a(i)}export{k as default}; diff --git a/assets/WithTooltip-KJL26V4Q-C-1QZcq0.js b/assets/WithTooltip-KJL26V4Q-B2VLuGr9.js similarity index 63% rename from assets/WithTooltip-KJL26V4Q-C-1QZcq0.js rename to assets/WithTooltip-KJL26V4Q-B2VLuGr9.js index 5379428..d9c6c88 100644 --- a/assets/WithTooltip-KJL26V4Q-C-1QZcq0.js +++ b/assets/WithTooltip-KJL26V4Q-B2VLuGr9.js @@ -1 +1 @@ -import{W as e,W as h,b as l}from"./DocsRenderer-K4EAMTCU-C9CSlBK4.js";import"./iframe-BjtAHItA.js";import"../sb-preview/runtime.js";import"./index-B3ehnkiM.js";import"./_commonjsHelpers-Cpj98o6Y.js";import"./index-DYADbu9O.js";import"./index-GiEMjZfh.js";import"./index-DrFu-skq.js";export{e as WithToolTipState,h as WithTooltip,l as WithTooltipPure}; +import{W as e,W as h,b as l}from"./DocsRenderer-K4EAMTCU-BNMQj7Xt.js";import"./iframe-Dg59W10a.js";import"../sb-preview/runtime.js";import"./index-B3ehnkiM.js";import"./_commonjsHelpers-Cpj98o6Y.js";import"./index-DYADbu9O.js";import"./index-GiEMjZfh.js";import"./index-DrFu-skq.js";export{e as WithToolTipState,h as WithTooltip,l as WithTooltipPure}; diff --git a/assets/formatter-2WMMO6ZP-BBv0efhO.js b/assets/formatter-2WMMO6ZP-dIbF2loY.js similarity index 99% rename from assets/formatter-2WMMO6ZP-BBv0efhO.js rename to assets/formatter-2WMMO6ZP-dIbF2loY.js index 91f1cae..fabc1c4 100644 --- a/assets/formatter-2WMMO6ZP-BBv0efhO.js +++ b/assets/formatter-2WMMO6ZP-dIbF2loY.js @@ -1,4 +1,4 @@ -var Qi=Object.defineProperty;var Zi=(e,t,r)=>t in e?Qi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var _e=(e,t,r)=>(Zi(e,typeof t!="symbol"?t+"":t,r),r);import{m as ea}from"./DocsRenderer-K4EAMTCU-C9CSlBK4.js";import"./iframe-BjtAHItA.js";import"../sb-preview/runtime.js";import"./index-B3ehnkiM.js";import"./_commonjsHelpers-Cpj98o6Y.js";import"./index-DYADbu9O.js";import"./index-GiEMjZfh.js";import"./index-DrFu-skq.js";var ta=Object.defineProperty,pu=(e,t)=>{for(var r in t)ta(e,r,{get:t[r],enumerable:!0})},hu=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)},se=(e,t,r)=>(hu(e,t,"read from private field"),r?r.call(e):t.get(e)),ra=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},na=(e,t,r,n)=>(hu(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),du={};pu(du,{languages:()=>Vl,options:()=>zl,parsers:()=>Gu,printers:()=>Gl});var ua=(e,t,r,n)=>{if(!(e&&t==null))return t.replaceAll?t.replaceAll(r,n):r.global?t.replace(r,n):t.split(r).join(n)},O=ua,Br="string",xr="array",Tr="cursor",Bt="indent",xt="align",Lr="trim",Ye="group",Tt="fill",Lt="if-break",Nt="indent-if-break",Nr="line-suffix",qr="line-suffix-boundary",be="line",Pr="label",qt="break-parent",Du=new Set([Tr,Bt,xt,Lr,Ye,Tt,Lt,Nt,Nr,qr,be,Pr,qt]);function ia(e){if(typeof e=="string")return Br;if(Array.isArray(e))return xr;if(!e)return;let{type:t}=e;if(Du.has(t))return t}var Ir=ia,aa=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function sa(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}', +var Qi=Object.defineProperty;var Zi=(e,t,r)=>t in e?Qi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var _e=(e,t,r)=>(Zi(e,typeof t!="symbol"?t+"":t,r),r);import{m as ea}from"./DocsRenderer-K4EAMTCU-BNMQj7Xt.js";import"./iframe-Dg59W10a.js";import"../sb-preview/runtime.js";import"./index-B3ehnkiM.js";import"./_commonjsHelpers-Cpj98o6Y.js";import"./index-DYADbu9O.js";import"./index-GiEMjZfh.js";import"./index-DrFu-skq.js";var ta=Object.defineProperty,pu=(e,t)=>{for(var r in t)ta(e,r,{get:t[r],enumerable:!0})},hu=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)},se=(e,t,r)=>(hu(e,t,"read from private field"),r?r.call(e):t.get(e)),ra=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},na=(e,t,r,n)=>(hu(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),du={};pu(du,{languages:()=>Vl,options:()=>zl,parsers:()=>Gu,printers:()=>Gl});var ua=(e,t,r,n)=>{if(!(e&&t==null))return t.replaceAll?t.replaceAll(r,n):r.global?t.replace(r,n):t.split(r).join(n)},O=ua,Br="string",xr="array",Tr="cursor",Bt="indent",xt="align",Lr="trim",Ye="group",Tt="fill",Lt="if-break",Nt="indent-if-break",Nr="line-suffix",qr="line-suffix-boundary",be="line",Pr="label",qt="break-parent",Du=new Set([Tr,Bt,xt,Lr,Ye,Tt,Lt,Nt,Nr,qr,be,Pr,qt]);function ia(e){if(typeof e=="string")return Br;if(Array.isArray(e))return xr;if(!e)return;let{type:t}=e;if(Du.has(t))return t}var Ir=ia,aa=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function sa(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}', Expected it to be 'string' or 'object'.`;if(Ir(e))throw new Error("doc is valid.");let r=Object.prototype.toString.call(e);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=aa([...Du].map(u=>`'${u}'`));return`Unexpected doc.type '${e.type}'. Expected it to be ${n}.`}var oa=class extends Error{constructor(t){super(sa(t));_e(this,"name","InvalidDocError");this.doc=t}},fu=oa,la=()=>{},ca=la;function we(e){return{type:Bt,contents:e}}function mu(e,t){return{type:xt,contents:t,n:e}}function q(e,t={}){return ca(t.expandedStates),{type:Ye,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function pa(e){return mu(Number.NEGATIVE_INFINITY,e)}function ha(e){return mu({type:"root"},e)}function gu(e){return{type:Tt,parts:e}}function bt(e,t="",r={}){return{type:Lt,breakContents:e,flatContents:t,groupId:r.groupId}}function da(e,t){return{type:Nt,contents:e,groupId:t.groupId,negate:t.negate}}var Ze={type:qt},Da={type:be,hard:!0},fa={type:be,hard:!0,literal:!0},L={type:be},I={type:be,soft:!0},A=[Da,Ze],ma=[fa,Ze];function et(e,t){let r=[];for(let n=0;n{if(!(e&&t==null))return Array.isArray(t)||typeof t=="string"?t[r<0?t.length+r:r]:t.at(r)},Pt=ga;function Or(e,t){if(typeof e=="string")return t(e);let r=new Map;return n(e);function n(i){if(r.has(i))return r.get(i);let a=u(i);return r.set(i,a),a}function u(i){switch(Ir(i)){case xr:return t(i.map(n));case Tt:return t({...i,parts:i.parts.map(n)});case Lt:return t({...i,breakContents:n(i.breakContents),flatContents:n(i.flatContents)});case Ye:{let{expandedStates:a,contents:s}=i;return a?(a=a.map(n),s=a[0]):s=n(s),t({...i,contents:s,expandedStates:a})}case xt:case Bt:case Nt:case Pr:case Nr:return t({...i,contents:n(i.contents)});case Br:case Tr:case Lr:case qr:case be:case qt:return t(i);default:throw new fu(i)}}}function Ca(e){switch(Ir(e)){case Tt:if(e.parts.every(t=>t===""))return"";break;case Ye:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===Ye&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case xt:case Bt:case Nt:case Nr:if(!e.contents)return"";break;case Lt:if(!e.flatContents&&!e.breakContents)return"";break;case xr:{let t=[];for(let r of e){if(!r)continue;let[n,...u]=Array.isArray(r)?r:[r];typeof n=="string"&&typeof Pt(!1,t,-1)=="string"?t[t.length-1]+=n:t.push(n),t.push(...u)}return t.length===0?"":t.length===1?t[0]:t}case Br:case Tr:case Lr:case qr:case be:case Pr:case qt:break;default:throw new fu(e)}return e}function Fa(e){return Or(e,t=>Ca(t))}function G(e,t=ma){return Or(e,r=>typeof r=="string"?et(t,r.split(` `)):r)}var va=class extends Error{constructor(t,r,n="type"){super(`Unexpected ${r} node ${n}: ${JSON.stringify(t[n])}.`);_e(this,"name","UnexpectedNodeError");this.node=t}},ya=va,lt="'",cn='"';function Ea(e,t){let r=t===!0||t===lt?lt:cn,n=r===lt?cn:lt,u=0,i=0;for(let a of e)a===r?u++:a===n&&i++;return u>i?n:r}var ba=Ea;function wa(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var U,Sa=class{constructor(e){ra(this,U,void 0),na(this,U,new Set(e))}getLeadingWhitespaceCount(e){let t=se(this,U),r=0;for(let n=0;n=0&&t.has(e.charAt(n));n--)r++;return r}getLeadingWhitespace(e){let t=this.getLeadingWhitespaceCount(e);return e.slice(0,t)}getTrailingWhitespace(e){let t=this.getTrailingWhitespaceCount(e);return e.slice(e.length-t)}hasLeadingWhitespace(e){return se(this,U).has(e.charAt(0))}hasTrailingWhitespace(e){return se(this,U).has(Pt(!1,e,-1))}trimStart(e){let t=this.getLeadingWhitespaceCount(e);return e.slice(t)}trimEnd(e){let t=this.getTrailingWhitespaceCount(e);return e.slice(0,e.length-t)}trim(e){return this.trimEnd(this.trimStart(e))}split(e,t=!1){let r=`[${wa([...se(this,U)].join(""))}]+`,n=new RegExp(t?`(${r})`:r);return e.split(n)}hasWhitespaceCharacter(e){let t=se(this,U);return Array.prototype.some.call(e,r=>t.has(r))}hasNonWhitespaceCharacter(e){let t=se(this,U);return Array.prototype.some.call(e,r=>!t.has(r))}isWhitespaceOnly(e){let t=se(this,U);return Array.prototype.every.call(e,r=>t.has(r))}};U=new WeakMap;var Aa=Sa,ka=[" ",` diff --git a/assets/iframe-BjtAHItA.js b/assets/iframe-Dg59W10a.js similarity index 97% rename from assets/iframe-BjtAHItA.js rename to assets/iframe-Dg59W10a.js index 3ae482f..9341c95 100644 --- a/assets/iframe-BjtAHItA.js +++ b/assets/iframe-Dg59W10a.js @@ -1,2 +1,2 @@ -const __vite__fileDeps=["./VLAutocomplete.stories-B_CNbZdq.js","./VLTextArea-CsHrRkfe.js","./vue.esm-bundler-BYZbTIRI.js","./api.esm-C3jrVNCq.js","./VLTextArea-Da-uXDGM.css","./VLButton.stories-Bh42xaDf.js","./VLCheckbox.stories-oFf9Mm7O.js","./VLColorPicker.stories-oJXwYnnj.js","./VLDataTable.stories-D0aQxx7B.js","./ActiveCell-BJ4pdCa9.js","./main-CZ2WSQaV.js","./main-D8dLTeZs.css","./VLDatePicker.stories-DjtJl2SP.js","./VLDialog.stories-C-PvoHE1.js","./VLFileInput.stories-x1VAnqcf.js","./VLImageUpload.stories-BHFzKO5K.js","./VLInput.stories-DasiPSXA.js","./VLNumberInput.stories-CwIQXgA1.js","./VLRadioGroup.stories-Bx7tPXC2.js","./VLSelect.stories-nzmqqgW5.js","./VLTextarea.stories-C5ueyKaG.js","./VLTooltip.stories-C_NQwNDw.js","./Introduction-CJmOeDJt.js","./index-B3ehnkiM.js","./_commonjsHelpers-Cpj98o6Y.js","./index-rbP-kYFP.js","./UsersCrudExample.stories-v5XHTABr.js","./pinia-BTzaPvzc.js","./entry-preview-BEKhEtZn.js","./entry-preview-docs-cXnGWeQL.js","./index-GiEMjZfh.js","./preview-6uLYm2Ic.js","./index-DYADbu9O.js","./preview-CwqMn10d.js","./index-DrFu-skq.js","./preview-BAz7FMXc.js","./preview-DOkW7HpC.js","./preview-DCPX-4QT.css"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); -import"../sb-preview/runtime.js";(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))c(e);new MutationObserver(e=>{for(const r of e)if(r.type==="childList")for(const o of r.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&c(o)}).observe(document,{childList:!0,subtree:!0});function m(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?r.credentials="include":e.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function c(e){if(e.ep)return;e.ep=!0;const r=m(e);fetch(e.href,r)}})();const L="modulepreload",R=function(n,s){return new URL(n,s).href},d={},t=function(s,m,c){let e=Promise.resolve();if(m&&m.length>0){const r=document.getElementsByTagName("link"),o=document.querySelector("meta[property=csp-nonce]"),E=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));e=Promise.all(m.map(i=>{if(i=R(i,c),i in d)return;d[i]=!0;const u=i.endsWith(".css"),O=u?'[rel="stylesheet"]':"";if(!!c)for(let a=r.length-1;a>=0;a--){const l=r[a];if(l.href===i&&(!u||l.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${O}`))return;const _=document.createElement("link");if(_.rel=u?"stylesheet":L,u||(_.as="script",_.crossOrigin=""),_.href=i,E&&_.setAttribute("nonce",E),document.head.appendChild(_),u)return new Promise((a,l)=>{_.addEventListener("load",a),_.addEventListener("error",()=>l(new Error(`Unable to preload CSS for ${i}`)))})}))}return e.then(()=>s()).catch(r=>{const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=r,window.dispatchEvent(o),!o.defaultPrevented)throw r})},{createBrowserChannel:P}=__STORYBOOK_MODULE_CHANNELS__,{addons:V}=__STORYBOOK_MODULE_PREVIEW_API__,p=P({page:"preview"});V.setChannel(p);window.__STORYBOOK_ADDONS_CHANNEL__=p;window.CONFIG_TYPE==="DEVELOPMENT"&&(window.__STORYBOOK_SERVER_CHANNEL__=p);const T={"./src/stories/components/VLAutocomplete.stories.ts":async()=>t(()=>import("./VLAutocomplete.stories-B_CNbZdq.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url),"./src/stories/components/VLButton.stories.ts":async()=>t(()=>import("./VLButton.stories-Bh42xaDf.js"),__vite__mapDeps([5,1,2,3,4]),import.meta.url),"./src/stories/components/VLCheckbox.stories.ts":async()=>t(()=>import("./VLCheckbox.stories-oFf9Mm7O.js"),__vite__mapDeps([6,1,2,3,4]),import.meta.url),"./src/stories/components/VLColorPicker.stories.ts":async()=>t(()=>import("./VLColorPicker.stories-oJXwYnnj.js"),__vite__mapDeps([7,1,2,3,4]),import.meta.url),"./src/stories/components/VLDataTable.stories.ts":async()=>t(()=>import("./VLDataTable.stories-D0aQxx7B.js"),__vite__mapDeps([8,1,2,3,4,9,10,11]),import.meta.url),"./src/stories/components/VLDatePicker.stories.ts":async()=>t(()=>import("./VLDatePicker.stories-DjtJl2SP.js"),__vite__mapDeps([12,1,2,3,4]),import.meta.url),"./src/stories/components/VLDialog.stories.ts":async()=>t(()=>import("./VLDialog.stories-C-PvoHE1.js"),__vite__mapDeps([13,2,1,3,4]),import.meta.url),"./src/stories/components/VLFileInput.stories.ts":async()=>t(()=>import("./VLFileInput.stories-x1VAnqcf.js"),__vite__mapDeps([14,1,2,3,4]),import.meta.url),"./src/stories/components/VLImageUpload.stories.ts":async()=>t(()=>import("./VLImageUpload.stories-BHFzKO5K.js"),__vite__mapDeps([15,1,2,3,4]),import.meta.url),"./src/stories/components/VLInput.stories.ts":async()=>t(()=>import("./VLInput.stories-DasiPSXA.js"),__vite__mapDeps([16,1,2,3,4]),import.meta.url),"./src/stories/components/VLNumberInput.stories.ts":async()=>t(()=>import("./VLNumberInput.stories-CwIQXgA1.js"),__vite__mapDeps([17,1,2,3,4]),import.meta.url),"./src/stories/components/VLRadioGroup.stories.ts":async()=>t(()=>import("./VLRadioGroup.stories-Bx7tPXC2.js"),__vite__mapDeps([18,1,2,3,4]),import.meta.url),"./src/stories/components/VLSelect.stories.ts":async()=>t(()=>import("./VLSelect.stories-nzmqqgW5.js"),__vite__mapDeps([19,1,2,3,4]),import.meta.url),"./src/stories/components/VLTextarea.stories.ts":async()=>t(()=>import("./VLTextarea.stories-C5ueyKaG.js"),__vite__mapDeps([20,1,2,3,4]),import.meta.url),"./src/stories/components/VLTooltip.stories.ts":async()=>t(()=>import("./VLTooltip.stories-C_NQwNDw.js"),__vite__mapDeps([21,1,2,3,4]),import.meta.url),"./src/stories/docs/Introduction.mdx":async()=>t(()=>import("./Introduction-CJmOeDJt.js"),__vite__mapDeps([22,23,24,25]),import.meta.url),"./src/stories/examples/UsersCrudExample.stories.ts":async()=>t(()=>import("./UsersCrudExample.stories-v5XHTABr.js"),__vite__mapDeps([26,2,1,3,4,27,9,10,11]),import.meta.url)};async function f(n){return T[n]()}const{composeConfigs:v,PreviewWeb:I,ClientApi:w}=__STORYBOOK_MODULE_PREVIEW_API__,A=async()=>{const n=await Promise.all([t(()=>import("./entry-preview-BEKhEtZn.js").then(s=>s.e),__vite__mapDeps([28,2]),import.meta.url),t(()=>import("./entry-preview-docs-cXnGWeQL.js"),__vite__mapDeps([29,30,24,2]),import.meta.url),t(()=>import("./preview-6uLYm2Ic.js"),__vite__mapDeps([31,32]),import.meta.url),t(()=>import("./preview-BKazIbMi.js"),[],import.meta.url),t(()=>import("./preview-9lkP9NK4.js"),[],import.meta.url),t(()=>import("./preview-CwqMn10d.js"),__vite__mapDeps([33,34]),import.meta.url),t(()=>import("./preview-B4GcaC1c.js"),[],import.meta.url),t(()=>import("./preview-Db4Idchh.js"),[],import.meta.url),t(()=>import("./preview-BAz7FMXc.js"),__vite__mapDeps([35,34]),import.meta.url),t(()=>import("./preview-BpcF_O6y.js"),[],import.meta.url),t(()=>import("./preview-Cp-Q6vSb.js"),[],import.meta.url),t(()=>import("./preview-DOkW7HpC.js"),__vite__mapDeps([36,28,2,10,11,3,27,37]),import.meta.url)]);return v(n)};window.__STORYBOOK_PREVIEW__=window.__STORYBOOK_PREVIEW__||new I(f,A);window.__STORYBOOK_STORY_STORE__=window.__STORYBOOK_STORY_STORE__||window.__STORYBOOK_PREVIEW__.storyStore;export{t as _}; +const __vite__fileDeps=["./VLAutocomplete.stories-B_CNbZdq.js","./VLTextArea-CsHrRkfe.js","./vue.esm-bundler-BYZbTIRI.js","./api.esm-C3jrVNCq.js","./VLTextArea-Da-uXDGM.css","./VLButton.stories-Bh42xaDf.js","./VLCheckbox.stories-oFf9Mm7O.js","./VLColorPicker.stories-oJXwYnnj.js","./VLDataTable.stories-D0aQxx7B.js","./ActiveCell-BJ4pdCa9.js","./main-CZ2WSQaV.js","./main-D8dLTeZs.css","./VLDatePicker.stories-DjtJl2SP.js","./VLDialog.stories-C-PvoHE1.js","./VLFileInput.stories-x1VAnqcf.js","./VLImageUpload.stories-BHFzKO5K.js","./VLInput.stories-DasiPSXA.js","./VLNumberInput.stories-CwIQXgA1.js","./VLRadioGroup.stories-Bx7tPXC2.js","./VLSelect.stories-nzmqqgW5.js","./VLTextarea.stories-C5ueyKaG.js","./VLTooltip.stories-C_NQwNDw.js","./Introduction-BGtyCnqW.js","./index-B3ehnkiM.js","./_commonjsHelpers-Cpj98o6Y.js","./index-rbP-kYFP.js","./UsersCrudExample.stories-v5XHTABr.js","./pinia-BTzaPvzc.js","./entry-preview-BEKhEtZn.js","./entry-preview-docs-cXnGWeQL.js","./index-GiEMjZfh.js","./preview-6uLYm2Ic.js","./index-DYADbu9O.js","./preview-CwqMn10d.js","./index-DrFu-skq.js","./preview-BAz7FMXc.js","./preview-DOkW7HpC.js","./preview-DCPX-4QT.css"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); +import"../sb-preview/runtime.js";(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))c(e);new MutationObserver(e=>{for(const r of e)if(r.type==="childList")for(const o of r.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&c(o)}).observe(document,{childList:!0,subtree:!0});function m(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?r.credentials="include":e.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function c(e){if(e.ep)return;e.ep=!0;const r=m(e);fetch(e.href,r)}})();const L="modulepreload",R=function(n,s){return new URL(n,s).href},d={},t=function(s,m,c){let e=Promise.resolve();if(m&&m.length>0){const r=document.getElementsByTagName("link"),o=document.querySelector("meta[property=csp-nonce]"),E=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));e=Promise.all(m.map(i=>{if(i=R(i,c),i in d)return;d[i]=!0;const u=i.endsWith(".css"),O=u?'[rel="stylesheet"]':"";if(!!c)for(let a=r.length-1;a>=0;a--){const l=r[a];if(l.href===i&&(!u||l.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${O}`))return;const _=document.createElement("link");if(_.rel=u?"stylesheet":L,u||(_.as="script",_.crossOrigin=""),_.href=i,E&&_.setAttribute("nonce",E),document.head.appendChild(_),u)return new Promise((a,l)=>{_.addEventListener("load",a),_.addEventListener("error",()=>l(new Error(`Unable to preload CSS for ${i}`)))})}))}return e.then(()=>s()).catch(r=>{const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=r,window.dispatchEvent(o),!o.defaultPrevented)throw r})},{createBrowserChannel:P}=__STORYBOOK_MODULE_CHANNELS__,{addons:V}=__STORYBOOK_MODULE_PREVIEW_API__,p=P({page:"preview"});V.setChannel(p);window.__STORYBOOK_ADDONS_CHANNEL__=p;window.CONFIG_TYPE==="DEVELOPMENT"&&(window.__STORYBOOK_SERVER_CHANNEL__=p);const T={"./src/stories/components/VLAutocomplete.stories.ts":async()=>t(()=>import("./VLAutocomplete.stories-B_CNbZdq.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url),"./src/stories/components/VLButton.stories.ts":async()=>t(()=>import("./VLButton.stories-Bh42xaDf.js"),__vite__mapDeps([5,1,2,3,4]),import.meta.url),"./src/stories/components/VLCheckbox.stories.ts":async()=>t(()=>import("./VLCheckbox.stories-oFf9Mm7O.js"),__vite__mapDeps([6,1,2,3,4]),import.meta.url),"./src/stories/components/VLColorPicker.stories.ts":async()=>t(()=>import("./VLColorPicker.stories-oJXwYnnj.js"),__vite__mapDeps([7,1,2,3,4]),import.meta.url),"./src/stories/components/VLDataTable.stories.ts":async()=>t(()=>import("./VLDataTable.stories-D0aQxx7B.js"),__vite__mapDeps([8,1,2,3,4,9,10,11]),import.meta.url),"./src/stories/components/VLDatePicker.stories.ts":async()=>t(()=>import("./VLDatePicker.stories-DjtJl2SP.js"),__vite__mapDeps([12,1,2,3,4]),import.meta.url),"./src/stories/components/VLDialog.stories.ts":async()=>t(()=>import("./VLDialog.stories-C-PvoHE1.js"),__vite__mapDeps([13,2,1,3,4]),import.meta.url),"./src/stories/components/VLFileInput.stories.ts":async()=>t(()=>import("./VLFileInput.stories-x1VAnqcf.js"),__vite__mapDeps([14,1,2,3,4]),import.meta.url),"./src/stories/components/VLImageUpload.stories.ts":async()=>t(()=>import("./VLImageUpload.stories-BHFzKO5K.js"),__vite__mapDeps([15,1,2,3,4]),import.meta.url),"./src/stories/components/VLInput.stories.ts":async()=>t(()=>import("./VLInput.stories-DasiPSXA.js"),__vite__mapDeps([16,1,2,3,4]),import.meta.url),"./src/stories/components/VLNumberInput.stories.ts":async()=>t(()=>import("./VLNumberInput.stories-CwIQXgA1.js"),__vite__mapDeps([17,1,2,3,4]),import.meta.url),"./src/stories/components/VLRadioGroup.stories.ts":async()=>t(()=>import("./VLRadioGroup.stories-Bx7tPXC2.js"),__vite__mapDeps([18,1,2,3,4]),import.meta.url),"./src/stories/components/VLSelect.stories.ts":async()=>t(()=>import("./VLSelect.stories-nzmqqgW5.js"),__vite__mapDeps([19,1,2,3,4]),import.meta.url),"./src/stories/components/VLTextarea.stories.ts":async()=>t(()=>import("./VLTextarea.stories-C5ueyKaG.js"),__vite__mapDeps([20,1,2,3,4]),import.meta.url),"./src/stories/components/VLTooltip.stories.ts":async()=>t(()=>import("./VLTooltip.stories-C_NQwNDw.js"),__vite__mapDeps([21,1,2,3,4]),import.meta.url),"./src/stories/docs/Introduction.mdx":async()=>t(()=>import("./Introduction-BGtyCnqW.js"),__vite__mapDeps([22,23,24,25]),import.meta.url),"./src/stories/examples/UsersCrudExample.stories.ts":async()=>t(()=>import("./UsersCrudExample.stories-v5XHTABr.js"),__vite__mapDeps([26,2,1,3,4,27,9,10,11]),import.meta.url)};async function f(n){return T[n]()}const{composeConfigs:v,PreviewWeb:I,ClientApi:w}=__STORYBOOK_MODULE_PREVIEW_API__,A=async()=>{const n=await Promise.all([t(()=>import("./entry-preview-BEKhEtZn.js").then(s=>s.e),__vite__mapDeps([28,2]),import.meta.url),t(()=>import("./entry-preview-docs-cXnGWeQL.js"),__vite__mapDeps([29,30,24,2]),import.meta.url),t(()=>import("./preview-6uLYm2Ic.js"),__vite__mapDeps([31,32]),import.meta.url),t(()=>import("./preview-CudwAfSk.js"),[],import.meta.url),t(()=>import("./preview-9lkP9NK4.js"),[],import.meta.url),t(()=>import("./preview-CwqMn10d.js"),__vite__mapDeps([33,34]),import.meta.url),t(()=>import("./preview-B4GcaC1c.js"),[],import.meta.url),t(()=>import("./preview-Db4Idchh.js"),[],import.meta.url),t(()=>import("./preview-BAz7FMXc.js"),__vite__mapDeps([35,34]),import.meta.url),t(()=>import("./preview-BpcF_O6y.js"),[],import.meta.url),t(()=>import("./preview-Cp-Q6vSb.js"),[],import.meta.url),t(()=>import("./preview-DOkW7HpC.js"),__vite__mapDeps([36,28,2,10,11,3,27,37]),import.meta.url)]);return v(n)};window.__STORYBOOK_PREVIEW__=window.__STORYBOOK_PREVIEW__||new I(f,A);window.__STORYBOOK_STORY_STORE__=window.__STORYBOOK_STORY_STORE__||window.__STORYBOOK_PREVIEW__.storyStore;export{t as _}; diff --git a/assets/preview-BKazIbMi.js b/assets/preview-CudwAfSk.js similarity index 68% rename from assets/preview-BKazIbMi.js rename to assets/preview-CudwAfSk.js index 98b0b8e..2929b89 100644 --- a/assets/preview-BKazIbMi.js +++ b/assets/preview-CudwAfSk.js @@ -1,2 +1,2 @@ -const __vite__fileDeps=["./DocsRenderer-K4EAMTCU-C9CSlBK4.js","./iframe-BjtAHItA.js","./index-B3ehnkiM.js","./_commonjsHelpers-Cpj98o6Y.js","./index-DYADbu9O.js","./index-GiEMjZfh.js","./index-DrFu-skq.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); -import{_ as a}from"./iframe-BjtAHItA.js";import"../sb-preview/runtime.js";const{global:s}=__STORYBOOK_MODULE_GLOBAL__;var _=Object.entries(s.TAGS_OPTIONS??{}).reduce((e,r)=>{let[t,o]=r;return o.excludeFromDocsStories&&(e[t]=!0),e},{}),n={docs:{renderer:async()=>{let{DocsRenderer:e}=await a(()=>import("./DocsRenderer-K4EAMTCU-C9CSlBK4.js").then(r=>r.D),__vite__mapDeps([0,1,2,3,4,5,6]),import.meta.url);return new e},stories:{filter:e=>{var r;return(e.tags||[]).filter(t=>_[t]).length===0&&!((r=e.parameters.docs)!=null&&r.disable)}}}};export{n as parameters}; +const __vite__fileDeps=["./DocsRenderer-K4EAMTCU-BNMQj7Xt.js","./iframe-Dg59W10a.js","./index-B3ehnkiM.js","./_commonjsHelpers-Cpj98o6Y.js","./index-DYADbu9O.js","./index-GiEMjZfh.js","./index-DrFu-skq.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); +import{_ as a}from"./iframe-Dg59W10a.js";import"../sb-preview/runtime.js";const{global:s}=__STORYBOOK_MODULE_GLOBAL__;var _=Object.entries(s.TAGS_OPTIONS??{}).reduce((e,r)=>{let[t,o]=r;return o.excludeFromDocsStories&&(e[t]=!0),e},{}),n={docs:{renderer:async()=>{let{DocsRenderer:e}=await a(()=>import("./DocsRenderer-K4EAMTCU-BNMQj7Xt.js").then(r=>r.D),__vite__mapDeps([0,1,2,3,4,5,6]),import.meta.url);return new e},stories:{filter:e=>{var r;return(e.tags||[]).filter(t=>_[t]).length===0&&!((r=e.parameters.docs)!=null&&r.disable)}}}};export{n as parameters}; diff --git a/assets/syntaxhighlighter-BP7B2CQK-BsNZFzTD.js b/assets/syntaxhighlighter-BP7B2CQK-9TMg8RlO.js similarity index 83% rename from assets/syntaxhighlighter-BP7B2CQK-BsNZFzTD.js rename to assets/syntaxhighlighter-BP7B2CQK-9TMg8RlO.js index 967a0da..a1e1f1e 100644 --- a/assets/syntaxhighlighter-BP7B2CQK-BsNZFzTD.js +++ b/assets/syntaxhighlighter-BP7B2CQK-9TMg8RlO.js @@ -1 +1 @@ -import{S as g,c as n,s as u,a as c}from"./DocsRenderer-K4EAMTCU-C9CSlBK4.js";import"./iframe-BjtAHItA.js";import"../sb-preview/runtime.js";import"./index-B3ehnkiM.js";import"./_commonjsHelpers-Cpj98o6Y.js";import"./index-DYADbu9O.js";import"./index-GiEMjZfh.js";import"./index-DrFu-skq.js";export{g as SyntaxHighlighter,n as createCopyToClipboardFunction,u as default,c as supportedLanguages}; +import{S as g,c as n,s as u,a as c}from"./DocsRenderer-K4EAMTCU-BNMQj7Xt.js";import"./iframe-Dg59W10a.js";import"../sb-preview/runtime.js";import"./index-B3ehnkiM.js";import"./_commonjsHelpers-Cpj98o6Y.js";import"./index-DYADbu9O.js";import"./index-GiEMjZfh.js";import"./index-DrFu-skq.js";export{g as SyntaxHighlighter,n as createCopyToClipboardFunction,u as default,c as supportedLanguages}; diff --git a/assets/vuelace-logo.svg b/assets/vuelace-logo.svg new file mode 100644 index 0000000..46cf3ac --- /dev/null +++ b/assets/vuelace-logo.svg @@ -0,0 +1,3032 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/iframe.html b/iframe.html index 11c48d6..2cdfd34 100644 --- a/iframe.html +++ b/iframe.html @@ -505,7 +505,7 @@ } - + diff --git a/index.html b/index.html index 7efc5b4..056ba61 100644 --- a/index.html +++ b/index.html @@ -49,6 +49,8 @@ + +