From 69d16ba152929b33d9ad91bac802c932d38c4b5c Mon Sep 17 00:00:00 2001 From: donskov Date: Tue, 10 Sep 2024 10:09:48 +0000 Subject: [PATCH] deploy: 3b5136cc8aec8d4a2bcb9b2a5928ffef5f5f4843 --- ...6VNJS4EI-y7t01qCg.js => Color-6VNJS4EI-4FFJ4VI4.js} | 2 +- ...V-cP9UsLX_.js => DocsRenderer-NNNQARDV-CQFGPGzU.js} | 2 +- ...JZ-c1yUud0l.js => WithTooltip-V3YHNWJZ-aLaU2p-B.js} | 2 +- assets/{alert-wuCjLQa6.js => alert-5kz5l48o.js} | 2 +- ...t.stories--0ZXPdyW.js => alert.stories-qWuLyyMi.js} | 2 +- assets/{box-r6mhcPp2.js => box-8MqCLq4e.js} | 2 +- assets/{button-bXCCf1hn.js => button-T3PZHFwv.js} | 2 +- ...HLWAVYOI-Ycm5PLJ1.js => chunk-HLWAVYOI-42WL2HKe.js} | 2 +- ...gress-_GSDl8M_.js => circular_progress-JxgBeK0r.js} | 2 +- ...Gr9h5F.js => circular_progress.stories-mj-DrL5M.js} | 2 +- ...variables-haQ1F5tC.js => css_variables-SbHOGUr0.js} | 2 +- .../{dark_mode-99U6GHUG.js => dark_mode-gZWXgleE.js} | 2 +- ....stories-SV6-C4zt.js => dialog.stories-nzXpvg8s.js} | 2 +- assets/{flex-tL64lLQS.js => flex-cu_j1HuE.js} | 2 +- ...E3XI-n5-NWJeL.js => formatter-SWP5E3XI-GxE3MvpE.js} | 2 +- assets/{icons-jRSpjZLf.js => icons-5VVeC-84.js} | 2 +- assets/{iframe-Di3G6qoa.js => iframe-zHoeYuYN.js} | 4 ++-- assets/{index-FEzJ-IFI.js => index-S9SFSHLo.js} | 10 +++++----- ...stallation-X3U8DJuW.js => installation-q08WuDdZ.js} | 2 +- assets/{palette-wqcdcj41.js => palette-MA7Oct7p.js} | 2 +- ...ound-BQ1LPSdi.js => palette_playground-x4ZsEIzF.js} | 2 +- assets/{preview-ET9V_h4u.js => preview-3AQBzxjc.js} | 4 ++-- assets/{preview-xi9rapnE.js => preview-_O-dSE26.js} | 4 ++-- ...UdsJe.js => syntaxhighlighter-V7JZZA35-DBA7IJ-i.js} | 2 +- .../{text_field-bvCGfaa8.js => text_field-Uby6p_vB.js} | 2 +- .../{typography-Ln1-jNuv.js => typography-IdV7ELqG.js} | 2 +- ...clipboard-WpJb47xt.js => use_clipboard-fuG7IgBv.js} | 2 +- ...llable-I2U_MAnR.js => use_controllable-g6D_DU6e.js} | 2 +- ...k-IpSqrGlC.js => use_debounce_callback-8zC9nznE.js} | 2 +- assets/{use_id-eQS5NVzN.js => use_id-2AGBPqL1.js} | 2 +- ...WcUDxF.js => use_intersection_observer-7wp-IbdN.js} | 2 +- ...a_query-Jz7KgWET.js => use_media_query-v5w3HwaR.js} | 2 +- .../{use_toast-LcPwkpph.js => use_toast-9H8D00Ta.js} | 2 +- ...ories-1u41Ynxd.js => use_toast.stories-Wma7J8sM.js} | 2 +- ...GnqsLg.js => use_window_event_listener-PnJLkh7M.js} | 2 +- iframe.html | 2 +- project.json | 2 +- sb-addons/storybook-7/manager-bundle.js | 2 +- 38 files changed, 45 insertions(+), 45 deletions(-) rename assets/{Color-6VNJS4EI-y7t01qCg.js => Color-6VNJS4EI-4FFJ4VI4.js} (99%) rename assets/{DocsRenderer-NNNQARDV-cP9UsLX_.js => DocsRenderer-NNNQARDV-CQFGPGzU.js} (57%) rename assets/{WithTooltip-V3YHNWJZ-c1yUud0l.js => WithTooltip-V3YHNWJZ-aLaU2p-B.js} (68%) rename assets/{alert-wuCjLQa6.js => alert-5kz5l48o.js} (97%) rename assets/{alert.stories--0ZXPdyW.js => alert.stories-qWuLyyMi.js} (90%) rename assets/{box-r6mhcPp2.js => box-8MqCLq4e.js} (91%) rename assets/{button-bXCCf1hn.js => button-T3PZHFwv.js} (96%) rename assets/{chunk-HLWAVYOI-Ycm5PLJ1.js => chunk-HLWAVYOI-42WL2HKe.js} (89%) rename assets/{circular_progress-_GSDl8M_.js => circular_progress-JxgBeK0r.js} (95%) rename assets/{circular_progress.stories-WgGr9h5F.js => circular_progress.stories-mj-DrL5M.js} (90%) rename assets/{css_variables-haQ1F5tC.js => css_variables-SbHOGUr0.js} (94%) rename assets/{dark_mode-99U6GHUG.js => dark_mode-gZWXgleE.js} (93%) rename assets/{dialog.stories-SV6-C4zt.js => dialog.stories-nzXpvg8s.js} (98%) rename assets/{flex-tL64lLQS.js => flex-cu_j1HuE.js} (93%) rename assets/{formatter-SWP5E3XI-n5-NWJeL.js => formatter-SWP5E3XI-GxE3MvpE.js} (99%) rename assets/{icons-jRSpjZLf.js => icons-5VVeC-84.js} (92%) rename assets/{iframe-Di3G6qoa.js => iframe-zHoeYuYN.js} (78%) rename assets/{index-FEzJ-IFI.js => index-S9SFSHLo.js} (99%) rename assets/{installation-X3U8DJuW.js => installation-q08WuDdZ.js} (90%) rename assets/{palette-wqcdcj41.js => palette-MA7Oct7p.js} (91%) rename assets/{palette_playground-BQ1LPSdi.js => palette_playground-x4ZsEIzF.js} (88%) rename assets/{preview-ET9V_h4u.js => preview-3AQBzxjc.js} (99%) rename assets/{preview-xi9rapnE.js => preview-_O-dSE26.js} (59%) rename assets/{syntaxhighlighter-V7JZZA35-pTSUdsJe.js => syntaxhighlighter-V7JZZA35-DBA7IJ-i.js} (69%) rename assets/{text_field-bvCGfaa8.js => text_field-Uby6p_vB.js} (93%) rename assets/{typography-Ln1-jNuv.js => typography-IdV7ELqG.js} (89%) rename assets/{use_clipboard-WpJb47xt.js => use_clipboard-fuG7IgBv.js} (91%) rename assets/{use_controllable-I2U_MAnR.js => use_controllable-g6D_DU6e.js} (92%) rename assets/{use_debounce_callback-IpSqrGlC.js => use_debounce_callback-8zC9nznE.js} (92%) rename assets/{use_id-eQS5NVzN.js => use_id-2AGBPqL1.js} (85%) rename assets/{use_intersection_observer-6EWcUDxF.js => use_intersection_observer-7wp-IbdN.js} (93%) rename assets/{use_media_query-Jz7KgWET.js => use_media_query-v5w3HwaR.js} (91%) rename assets/{use_toast-LcPwkpph.js => use_toast-9H8D00Ta.js} (89%) rename assets/{use_toast.stories-1u41Ynxd.js => use_toast.stories-Wma7J8sM.js} (97%) rename assets/{use_window_event_listener-gJGnqsLg.js => use_window_event_listener-PnJLkh7M.js} (91%) diff --git a/assets/Color-6VNJS4EI-y7t01qCg.js b/assets/Color-6VNJS4EI-4FFJ4VI4.js similarity index 99% rename from assets/Color-6VNJS4EI-y7t01qCg.js rename to assets/Color-6VNJS4EI-4FFJ4VI4.js index c0b1a4f7..13b0eacb 100644 --- a/assets/Color-6VNJS4EI-y7t01qCg.js +++ b/assets/Color-6VNJS4EI-4FFJ4VI4.js @@ -1 +1 @@ -import{n as M,g as ue,T as Me,F as Ce,h as $e,i as Ne}from"./index-FEzJ-IFI.js";import{R as h,r as b,g as fe}from"./index-OjgoNOWw.js";import{b as Oe,c as J,d as Ie}from"./index-LnHysSno.js";import"./iframe-Di3G6qoa.js";import"../sb-preview/runtime.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-xK8HOd_o.js";import"./index-mQqIOHEI.js";import"./inheritsLoose-Y9jOMJLd.js";import"./index-BdDYuicC.js";function $(){return($=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}function K(e){var t=b.useRef(e),n=b.useRef(function(r){t.current&&t.current(r)});return t.current=e,n.current}var S=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,l.current)):_(!1)},N=function(){return _(!1)};function _(p){var m=i.current,x=V(o.current),C=p?x.addEventListener:x.removeEventListener;C(m?"touchmove":"mousemove",k),C(m?"touchend":"mouseup",N)}return[function(p){var m=p.nativeEvent,x=o.current;if(x&&(re(m),!function(X,R){return R&&!j(X)}(m,i.current)&&x)){if(j(m)){i.current=!0;var C=m.changedTouches||[];C.length&&(l.current=C[0].identifier)}x.focus(),a(ne(x,m,l.current)),_(!0)}},function(p){var m=p.which||p.keyCode;m<37||m>40||(p.preventDefault(),s({left:m===39?.05:m===37?-.05:0,top:m===40?.05:m===38?-.05:0}))},_]},[s,a]),d=c[0],f=c[1],g=c[2];return b.useEffect(function(){return g},[g]),h.createElement("div",$({},r,{onTouchStart:d,onMouseDown:d,className:"react-colorful__interactive",ref:o,onKeyDown:f,tabIndex:0,role:"slider"}))}),z=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=z(["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}},Te=function(e,t){return t===void 0&&(t="deg"),Number(e)*(Se[t]||1)},je=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:Te(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+"%)"},q=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),s=r*(1-n),l=r*(1-(t-a)*n),i=r*(1-(1-t+a)*n),c=a%6;return{r:y(255*[r,l,s,s,i,r][c]),g:y(255*[i,r,r,l,s,s][c]),b:y(255*[s,s,i,r,r,l][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}},H=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?H(y(255*o)):"";return"#"+H(t)+H(n)+H(r)+a},ge=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,a=Math.max(t,n,r),s=a-Math.min(t,n,r),l=s?a===t?(n-r)/s:a===n?2+(r-t)/s:4+(t-n)/s:0;return{h:y(60*(l<0?l+6:l)),s:y(a?s/a*100:0),v:y(a/255*100),a:o}},me=h.memo(function(e){var t=e.hue,n=e.onChange,r=z(["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:S(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:S(t.s+100*o.left,0,100),v:S(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=b.useState(function(){return e.toHsva(t)}),a=o[0],s=o[1],l=b.useRef({color:t,hsva:a});b.useEffect(function(){if(!e.equal(t,l.current.color)){var c=e.toHsva(t);l.current={hsva:c,color:t},s(c)}},[t,e]),b.useEffect(function(){var c;ve(a,l.current.hsva)||e.equal(c=e.fromHsva(a),l.current.color)||(l.current={hsva:a,color:c},r(c))},[a,e,r]);var i=b.useCallback(function(c){s(function(d){return Object.assign({},d,c)})},[]);return[a,i]}var qe=typeof window<"u"?b.useLayoutEffect:b.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,s=Q(e,["className","colorModel","color","onChange"]),l=b.useRef(null);xe(l);var i=ye(n,o,a),c=i[0],d=i[1],f=z(["react-colorful",t]);return h.createElement("div",$({},s,{ref:l,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,$({},e,{colorModel:Xe}))},Ke=function(e){var t=e.className,n=e.hsva,r=e.onChange,o={backgroundImage:"linear-gradient(90deg, "+q(Object.assign({},n,{a:0}))+", "+q(Object.assign({},n,{a:1}))+")"},a=z(["react-colorful__alpha",t]),s=y(100*n.a);return h.createElement("div",{className:a},h.createElement("div",{className:"react-colorful__alpha-gradient",style:o}),h.createElement(Z,{onMove:function(l){r({a:l.left})},onKey:function(l){r({a:S(n.a+l.left)})},"aria-label":"Alpha","aria-valuetext":s+"%","aria-valuenow":s,"aria-valuemin":"0","aria-valuemax":"100"},h.createElement(ee,{className:"react-colorful__alpha-pointer",left:n.a,color:q(n)})))},we=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,a=e.onChange,s=Q(e,["className","colorModel","color","onChange"]),l=b.useRef(null);xe(l);var i=ye(n,o,a),c=i[0],d=i[1],f=z(["react-colorful",t]);return h.createElement("div",$({},s,{ref:l,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:je,fromHsva:q,equal:pe},Ae=function(e){return h.createElement(we,$({},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,$({},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 F=Ye,ke={};for(const e of Object.keys(F))ke[F[e]]=e;const u={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var _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),s=a-o;let l,i;a===o?l=0:t===a?l=(n-r)/s:n===a?l=2+(r-t)/s:r===a&&(l=4+(t-n)/s),l=Math.min(l*60,360),l<0&&(l+=360);const c=(o+a)/2;return a===o?i=0:c<=.5?i=s/(a+o):i=s/(2-a-o),[l,i*100,c*100]};u.rgb.hsv=function(e){let t,n,r,o,a;const s=e[0]/255,l=e[1]/255,i=e[2]/255,c=Math.max(s,l,i),d=c-Math.min(s,l,i),f=function(g){return(c-g)/6/d+1/2};return d===0?(o=0,a=0):(a=d/c,t=f(s),n=f(l),r=f(i),s===c?o=r-n:l===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,s=(1-n-o)/(1-o)||0,l=(1-r-o)/(1-o)||0;return[a*100,s*100,l*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(F)){const a=F[o],s=Je(e,a);s.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;const o=t*.4124+n*.3576+r*.1805,a=t*.2126+n*.7152+r*.0722,s=t*.0193+n*.1192+r*.9505;return[o*100,a*100,s*100]};u.rgb.lab=function(e){const t=u.rgb.xyz(e);let n=t[0],r=t[1],o=t[2];n/=95.047,r/=100,o/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,o=o>.008856?o**(1/3):7.787*o+16/116;const a=116*r-16,s=500*(n-r),l=200*(r-o);return[a,s,l]};u.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let o,a,s;if(n===0)return s=r*255,[s,s,s];r<.5?o=r*(1+n):o=r+n-r*n;const l=2*r-o,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?s=l+(o-l)*6*a:2*a<1?s=o:3*a<2?s=l+(o-l)*(2/3-a)*6:s=l,i[c]=s*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 s=(r+n)/2,l=r===0?2*o/(a+o):2*n/(r+n);return[t,l*100,s*100]};u.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const o=Math.floor(t)%6,a=t-Math.floor(t),s=255*r*(1-n),l=255*r*(1-n*a),i=255*r*(1-n*(1-a));switch(r*=255,o){case 0:return[r,i,s];case 1:return[l,r,s];case 2:return[s,r,i];case 3:return[s,l,r];case 4:return[i,s,r];case 5:return[r,s,l]}};u.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,o=Math.max(r,.01);let a,s;s=(2-n)*r;const l=(2-n)*o;return a=n*o,a/=l<=1?l:2-l,a=a||0,s/=2,[t,a*100,s*100]};u.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const o=n+r;let a;o>1&&(n/=o,r/=o);const s=Math.floor(6*t),l=1-r;a=6*t-s,s&1&&(a=1-a);const i=n+a*(l-n);let c,d,f;switch(s){default:case 6:case 0:c=l,d=i,f=n;break;case 1:c=i,d=l,f=n;break;case 2:c=n,d=l,f=i;break;case 3:c=n,d=i,f=l;break;case 4:c=i,d=n,f=l;break;case 5:c=l,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),s=1-Math.min(1,n*(1-o)+o),l=1-Math.min(1,r*(1-o)+o);return[a*255,s*255,l*255]};u.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let o,a,s;return o=t*3.2406+n*-1.5372+r*-.4986,a=t*-.9689+n*1.8758+r*.0415,s=t*.0557+n*-.204+r*1.057,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,o=Math.min(Math.max(0,o),1),a=Math.min(Math.max(0,a),1),s=Math.min(Math.max(0,s),1),[o*255,a*255,s*255]};u.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;const o=116*n-16,a=500*(t-n),s=200*(n-r);return[o,a,s]};u.lab.xyz=function(e){const t=e[0],n=e[1],r=e[2];let o,a,s;a=(t+16)/116,o=n/500+a,s=a-r/200;const l=a**3,i=o**3,c=s**3;return a=l>.008856?l:(a-16/116)/7.787,o=i>.008856?i:(o-16/116)/7.787,s=c>.008856?c:(s-16/116)/7.787,o*=95.047,a*=100,s*=108.883,[o,a,s]};u.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let o;o=Math.atan2(r,n)*360/2/Math.PI,o<0&&(o+=360);const s=Math.sqrt(n*n+r*r);return[t,s,o]};u.lch.lab=function(e){const t=e[0],n=e[1],o=e[2]/360*2*Math.PI,a=n*Math.cos(o),s=n*Math.sin(o);return[t,a,s]};u.rgb.ansi16=function(e,t=null){const[n,r,o]=e;let a=t===null?u.rgb.hsv(e)[2]:t;if(a=Math.round(a/50),a===0)return 30;let s=30+(Math.round(o/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return a===2&&(s+=60),s};u.hsv.ansi16=function(e){return u.rgb.ansi16(u.hsv.rgb(e),e[2])};u.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)};u.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=(~~(e>50)+1)*.5,r=(t&1)*n*255,o=(t>>1&1)*n*255,a=(t>>2&1)*n*255;return[r,o,a]};u.ansi256.rgb=function(e){if(e>=232){const a=(e-232)*10+8;return[a,a,a]}e-=16;let t;const n=Math.floor(e/36)/5*255,r=Math.floor((t=e%36)/6)/5*255,o=t%6/5*255;return[n,r,o]};u.rgb.hex=function(e){const n=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(n.length)+n};u.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];t[0].length===3&&(n=n.split("").map(l=>l+l).join(""));const r=parseInt(n,16),o=r>>16&255,a=r>>8&255,s=r&255;return[o,a,s]};u.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.max(Math.max(t,n),r),a=Math.min(Math.min(t,n),r),s=o-a;let l,i;return s<1?l=a/(1-s):l=0,s<=0?i=0:o===t?i=(n-r)/s%6:o===n?i=2+(r-t)/s:i=4+(t-n)/s,i/=6,i%=1,[i*360,s*100,l*100]};u.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let o=0;return r<1&&(o=(n-.5*r)/(1-r)),[e[0],r*100,o*100]};u.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],r*100,o*100]};u.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(n===0)return[r*255,r*255,r*255];const o=[0,0,0],a=t%1*6,s=a%1,l=1-s;let i=0;switch(Math.floor(a)){case 0:o[0]=1,o[1]=s,o[2]=0;break;case 1:o[0]=l,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=s;break;case 3:o[0]=0,o[1]=l,o[2]=1;break;case 4:o[0]=s,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=l}return 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 B=_e;function Qe(){const e={},t=Object.keys(B);for(let n=t.length,r=0;r1&&(n=r),e(n))};return"conversion"in e&&(t.conversion=e.conversion),t}function st(e){const t=function(...n){const r=n[0];if(r==null)return r;r.length>1&&(n=r);const o=e(n);if(typeof o=="object")for(let a=o.length,s=0;s{O[e]={},Object.defineProperty(O[e],"channels",{value:U[e].channels}),Object.defineProperty(O[e],"labels",{value:U[e].labels});const t=rt(e);Object.keys(t).forEach(r=>{const o=t[r];O[e][r]=st(o),O[e][r].raw=at(o)})});var lt=O;const w=fe(lt);var it=Oe,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,se=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 se;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)?se:+e}var Mt=Et,Ct=J,D=ut,le=Mt,$t="Expected a function",Nt=Math.max,Ot=Math.min;function It(e,t,n){var r,o,a,s,l,i,c=0,d=!1,f=!1,g=!0;if(typeof e!="function")throw new TypeError($t);t=le(t)||0,Ct(n)&&(d=!!n.leading,f="maxWait"in n,a=f?Nt(le(n.maxWait)||0,t):a,g="trailing"in n?!!n.trailing:g);function k(v){var E=r,T=o;return r=o=void 0,c=v,s=e.apply(T,E),s}function N(v){return c=v,l=setTimeout(m,t),d?k(v):s}function _(v){var E=v-i,T=v-c,te=t-E;return f?Ot(te,a-T):te}function p(v){var E=v-i,T=v-c;return i===void 0||E>=t||E<0||f&&T>=a}function m(){var v=D();if(p(v))return x(v);l=setTimeout(m,_(v))}function x(v){return l=void 0,g&&r?k(v):(r=o=void 0,s)}function C(){l!==void 0&&clearTimeout(l),c=0,r=i=o=l=void 0}function X(){return l===void 0?s:x(D())}function R(){var v=D(),E=p(v);if(r=arguments,o=this,i=v,E){if(l===void 0)return N(i);if(f)return clearTimeout(l),l=setTimeout(m,t),k(i)}return l===void 0&&(l=setTimeout(m,t)),s}return R.cancel=C,R.flush=X,R}var St=It,Rt=St,Tt=J,jt="Expected a function";function Ft(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(jt);return Tt(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=M.div({position:"relative",maxWidth:250}),Lt=M(ue)({position:"absolute",zIndex:1,top:4,left:4}),qt=M.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=M(Me)(({theme:e})=>({fontFamily:e.typography.fonts.base})),Wt=M.div({display:"grid",gridTemplateColumns:"repeat(9, 16px)",gap:6,padding:3,marginTop:5,width:200}),Xt=M.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,active:t,onClick:n,style:r,...o})=>{let a=`linear-gradient(${e}, ${e}), ${Dt}, linear-gradient(#fff, #fff)`;return h.createElement(Xt,{...o,active:t,onClick:n,style:{...r,backgroundImage:a}})},Kt=M(Ce.Input)(({theme:e})=>({width:"100%",paddingLeft:30,paddingRight:30,boxSizing:"border-box",fontFamily:e.typography.fonts.base})),Vt=M($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||{}),P=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},L={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)},I=e=>{if(!e)return;let t=!0;if(Gt.test(e)){let[s,l,i,c]=ce(e),[d,f,g]=w.rgb.hsl([s,l,i])||[0,0,0];return{valid:t,value:e,keyword:w.rgb.keyword([s,l,i]),colorSpace:"rgb",rgb:e,hsl:`hsla(${d}, ${f}%, ${g}%, ${c})`,hex:`#${w.rgb.hex([s,l,i]).toLowerCase()}`}}if(Ut.test(e)){let[s,l,i,c]=ce(e),[d,f,g]=w.hsl.rgb([s,l,i])||[0,0,0];return{valid:t,value:e,keyword:w.hsl.keyword([s,l,i]),colorSpace:"hsl",rgb:`rgba(${d}, ${f}, ${g}, ${c})`,hsl:e,hex:`#${w.hsl.hex([s,l,i]).toLowerCase()}`}}let n=e.replace("#",""),r=w.keyword.rgb(n)||w.hex.rgb(n),o=w.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{w.keyword.hex(a)}catch{t=!1}return{valid:t,value:a,keyword:w.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 L[n];if(n!=="hex")return(t==null?void 0:t[n])||L[n];if(!t.hex.startsWith("#"))try{return`#${w.keyword.hex(t.hex)}`}catch{return L.hex}let r=t.hex.match(Yt);if(!r)return Y.test(t.hex)?t.hex:L.hex;let[o,a,s]=r[1].split("");return`#${o}${o}${a}${a}${s}${s}`},Zt=(e,t)=>{let[n,r]=b.useState(e||""),[o,a]=b.useState(()=>I(n)),[s,l]=b.useState((o==null?void 0:o.colorSpace)||"hex");b.useEffect(()=>{let f=e||"",g=I(f);r(f),a(g),l((g==null?void 0:g.colorSpace)||"hex")},[e]);let i=b.useMemo(()=>Qt(n,o,s).toLowerCase(),[n,o,s]),c=b.useCallback(f=>{let g=I(f),k=(g==null?void 0:g.value)||f||"";r(k),k===""&&(a(void 0),t(void 0)),g&&(a(g),l(g.colorSpace),t(g.value))},[t]),d=b.useCallback(()=>{let f=P.indexOf(s)+1;f>=P.length&&(f=0),l(P[f]);let g=(o==null?void 0:o[P[f]])||"";r(g),t(g)},[o,s,t]);return{value:n,realValue:i,updateValue:c,color:o,colorSpace:s,cycleColorSpace:d}},W=e=>e.replace(/\s*/,"").toLowerCase(),en=(e,t,n)=>{let[r,o]=b.useState(t!=null&&t.valid?[t]:[]);b.useEffect(()=>{t===void 0&&o([])},[t]);let a=b.useMemo(()=>(e||[]).map(l=>typeof l=="string"?I(l):l.title?{...I(l.color),keyword:l.title}:I(l.color)).concat(r).filter(Boolean).slice(-27),[e,r]),s=b.useCallback(l=>{l!=null&&l.valid&&(a.some(i=>W(i[n])===W(l[n]))||o(i=>i.concat(l)))},[n,a]);return{presets:a,addPreset:s}},tn=({name:e,value:t,onChange:n,onFocus:r,onBlur:o,presetColors:a,startOpen:s=!1})=>{let l=b.useCallback(Ht(n,200),[n]),{value:i,realValue:c,updateValue:d,color:f,colorSpace:g,cycleColorSpace:k}=Zt(t,l),{presets:N,addPreset:_}=en(a,f,g),p=Jt[g];return h.createElement(Pt,null,h.createElement(Lt,{startOpen:s,closeOnOutsideClick:!0,onVisibleChange:()=>_(f),tooltip:h.createElement(qt,null,h.createElement(p,{color:c==="transparent"?"#000000":c,onChange:d,onFocus:r,onBlur:o}),N.length>0&&h.createElement(Wt,null,N.map((m,x)=>h.createElement(ue,{key:`${m.value}-${x}`,hasChrome:!1,tooltip:h.createElement(Bt,{note:m.keyword||m.value})},h.createElement(ie,{value:m[g],active:f&&W(m[g])===W(f[g]),onClick:()=>d(m.value)})))))},h.createElement(ie,{value:c,style:{margin:4}})),h.createElement(Kt,{id:Ne(e),value:i,onChange:m=>d(m.target.value),onFocus:m=>m.target.select(),placeholder:"Choose color..."}),i?h.createElement(Vt,{icon:"markup",onClick:k}):null)},hn=tn;export{tn as ColorControl,hn as default}; +import{n as M,g as ue,T as Me,F as Ce,h as $e,i as Ne}from"./index-S9SFSHLo.js";import{R as h,r as b,g as fe}from"./index-OjgoNOWw.js";import{b as Oe,c as J,d as Ie}from"./index-LnHysSno.js";import"./iframe-zHoeYuYN.js";import"../sb-preview/runtime.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-xK8HOd_o.js";import"./index-mQqIOHEI.js";import"./inheritsLoose-Y9jOMJLd.js";import"./index-BdDYuicC.js";function $(){return($=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}function K(e){var t=b.useRef(e),n=b.useRef(function(r){t.current&&t.current(r)});return t.current=e,n.current}var S=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,l.current)):_(!1)},N=function(){return _(!1)};function _(p){var m=i.current,x=V(o.current),C=p?x.addEventListener:x.removeEventListener;C(m?"touchmove":"mousemove",k),C(m?"touchend":"mouseup",N)}return[function(p){var m=p.nativeEvent,x=o.current;if(x&&(re(m),!function(X,R){return R&&!j(X)}(m,i.current)&&x)){if(j(m)){i.current=!0;var C=m.changedTouches||[];C.length&&(l.current=C[0].identifier)}x.focus(),a(ne(x,m,l.current)),_(!0)}},function(p){var m=p.which||p.keyCode;m<37||m>40||(p.preventDefault(),s({left:m===39?.05:m===37?-.05:0,top:m===40?.05:m===38?-.05:0}))},_]},[s,a]),d=c[0],f=c[1],g=c[2];return b.useEffect(function(){return g},[g]),h.createElement("div",$({},r,{onTouchStart:d,onMouseDown:d,className:"react-colorful__interactive",ref:o,onKeyDown:f,tabIndex:0,role:"slider"}))}),z=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=z(["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}},Te=function(e,t){return t===void 0&&(t="deg"),Number(e)*(Se[t]||1)},je=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:Te(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+"%)"},q=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),s=r*(1-n),l=r*(1-(t-a)*n),i=r*(1-(1-t+a)*n),c=a%6;return{r:y(255*[r,l,s,s,i,r][c]),g:y(255*[i,r,r,l,s,s][c]),b:y(255*[s,s,i,r,r,l][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}},H=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?H(y(255*o)):"";return"#"+H(t)+H(n)+H(r)+a},ge=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,a=Math.max(t,n,r),s=a-Math.min(t,n,r),l=s?a===t?(n-r)/s:a===n?2+(r-t)/s:4+(t-n)/s:0;return{h:y(60*(l<0?l+6:l)),s:y(a?s/a*100:0),v:y(a/255*100),a:o}},me=h.memo(function(e){var t=e.hue,n=e.onChange,r=z(["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:S(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:S(t.s+100*o.left,0,100),v:S(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=b.useState(function(){return e.toHsva(t)}),a=o[0],s=o[1],l=b.useRef({color:t,hsva:a});b.useEffect(function(){if(!e.equal(t,l.current.color)){var c=e.toHsva(t);l.current={hsva:c,color:t},s(c)}},[t,e]),b.useEffect(function(){var c;ve(a,l.current.hsva)||e.equal(c=e.fromHsva(a),l.current.color)||(l.current={hsva:a,color:c},r(c))},[a,e,r]);var i=b.useCallback(function(c){s(function(d){return Object.assign({},d,c)})},[]);return[a,i]}var qe=typeof window<"u"?b.useLayoutEffect:b.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,s=Q(e,["className","colorModel","color","onChange"]),l=b.useRef(null);xe(l);var i=ye(n,o,a),c=i[0],d=i[1],f=z(["react-colorful",t]);return h.createElement("div",$({},s,{ref:l,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,$({},e,{colorModel:Xe}))},Ke=function(e){var t=e.className,n=e.hsva,r=e.onChange,o={backgroundImage:"linear-gradient(90deg, "+q(Object.assign({},n,{a:0}))+", "+q(Object.assign({},n,{a:1}))+")"},a=z(["react-colorful__alpha",t]),s=y(100*n.a);return h.createElement("div",{className:a},h.createElement("div",{className:"react-colorful__alpha-gradient",style:o}),h.createElement(Z,{onMove:function(l){r({a:l.left})},onKey:function(l){r({a:S(n.a+l.left)})},"aria-label":"Alpha","aria-valuetext":s+"%","aria-valuenow":s,"aria-valuemin":"0","aria-valuemax":"100"},h.createElement(ee,{className:"react-colorful__alpha-pointer",left:n.a,color:q(n)})))},we=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,a=e.onChange,s=Q(e,["className","colorModel","color","onChange"]),l=b.useRef(null);xe(l);var i=ye(n,o,a),c=i[0],d=i[1],f=z(["react-colorful",t]);return h.createElement("div",$({},s,{ref:l,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:je,fromHsva:q,equal:pe},Ae=function(e){return h.createElement(we,$({},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,$({},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 F=Ye,ke={};for(const e of Object.keys(F))ke[F[e]]=e;const u={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var _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),s=a-o;let l,i;a===o?l=0:t===a?l=(n-r)/s:n===a?l=2+(r-t)/s:r===a&&(l=4+(t-n)/s),l=Math.min(l*60,360),l<0&&(l+=360);const c=(o+a)/2;return a===o?i=0:c<=.5?i=s/(a+o):i=s/(2-a-o),[l,i*100,c*100]};u.rgb.hsv=function(e){let t,n,r,o,a;const s=e[0]/255,l=e[1]/255,i=e[2]/255,c=Math.max(s,l,i),d=c-Math.min(s,l,i),f=function(g){return(c-g)/6/d+1/2};return d===0?(o=0,a=0):(a=d/c,t=f(s),n=f(l),r=f(i),s===c?o=r-n:l===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,s=(1-n-o)/(1-o)||0,l=(1-r-o)/(1-o)||0;return[a*100,s*100,l*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(F)){const a=F[o],s=Je(e,a);s.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;const o=t*.4124+n*.3576+r*.1805,a=t*.2126+n*.7152+r*.0722,s=t*.0193+n*.1192+r*.9505;return[o*100,a*100,s*100]};u.rgb.lab=function(e){const t=u.rgb.xyz(e);let n=t[0],r=t[1],o=t[2];n/=95.047,r/=100,o/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,o=o>.008856?o**(1/3):7.787*o+16/116;const a=116*r-16,s=500*(n-r),l=200*(r-o);return[a,s,l]};u.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let o,a,s;if(n===0)return s=r*255,[s,s,s];r<.5?o=r*(1+n):o=r+n-r*n;const l=2*r-o,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?s=l+(o-l)*6*a:2*a<1?s=o:3*a<2?s=l+(o-l)*(2/3-a)*6:s=l,i[c]=s*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 s=(r+n)/2,l=r===0?2*o/(a+o):2*n/(r+n);return[t,l*100,s*100]};u.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const o=Math.floor(t)%6,a=t-Math.floor(t),s=255*r*(1-n),l=255*r*(1-n*a),i=255*r*(1-n*(1-a));switch(r*=255,o){case 0:return[r,i,s];case 1:return[l,r,s];case 2:return[s,r,i];case 3:return[s,l,r];case 4:return[i,s,r];case 5:return[r,s,l]}};u.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,o=Math.max(r,.01);let a,s;s=(2-n)*r;const l=(2-n)*o;return a=n*o,a/=l<=1?l:2-l,a=a||0,s/=2,[t,a*100,s*100]};u.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const o=n+r;let a;o>1&&(n/=o,r/=o);const s=Math.floor(6*t),l=1-r;a=6*t-s,s&1&&(a=1-a);const i=n+a*(l-n);let c,d,f;switch(s){default:case 6:case 0:c=l,d=i,f=n;break;case 1:c=i,d=l,f=n;break;case 2:c=n,d=l,f=i;break;case 3:c=n,d=i,f=l;break;case 4:c=i,d=n,f=l;break;case 5:c=l,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),s=1-Math.min(1,n*(1-o)+o),l=1-Math.min(1,r*(1-o)+o);return[a*255,s*255,l*255]};u.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let o,a,s;return o=t*3.2406+n*-1.5372+r*-.4986,a=t*-.9689+n*1.8758+r*.0415,s=t*.0557+n*-.204+r*1.057,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,o=Math.min(Math.max(0,o),1),a=Math.min(Math.max(0,a),1),s=Math.min(Math.max(0,s),1),[o*255,a*255,s*255]};u.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;const o=116*n-16,a=500*(t-n),s=200*(n-r);return[o,a,s]};u.lab.xyz=function(e){const t=e[0],n=e[1],r=e[2];let o,a,s;a=(t+16)/116,o=n/500+a,s=a-r/200;const l=a**3,i=o**3,c=s**3;return a=l>.008856?l:(a-16/116)/7.787,o=i>.008856?i:(o-16/116)/7.787,s=c>.008856?c:(s-16/116)/7.787,o*=95.047,a*=100,s*=108.883,[o,a,s]};u.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let o;o=Math.atan2(r,n)*360/2/Math.PI,o<0&&(o+=360);const s=Math.sqrt(n*n+r*r);return[t,s,o]};u.lch.lab=function(e){const t=e[0],n=e[1],o=e[2]/360*2*Math.PI,a=n*Math.cos(o),s=n*Math.sin(o);return[t,a,s]};u.rgb.ansi16=function(e,t=null){const[n,r,o]=e;let a=t===null?u.rgb.hsv(e)[2]:t;if(a=Math.round(a/50),a===0)return 30;let s=30+(Math.round(o/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return a===2&&(s+=60),s};u.hsv.ansi16=function(e){return u.rgb.ansi16(u.hsv.rgb(e),e[2])};u.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)};u.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=(~~(e>50)+1)*.5,r=(t&1)*n*255,o=(t>>1&1)*n*255,a=(t>>2&1)*n*255;return[r,o,a]};u.ansi256.rgb=function(e){if(e>=232){const a=(e-232)*10+8;return[a,a,a]}e-=16;let t;const n=Math.floor(e/36)/5*255,r=Math.floor((t=e%36)/6)/5*255,o=t%6/5*255;return[n,r,o]};u.rgb.hex=function(e){const n=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(n.length)+n};u.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];t[0].length===3&&(n=n.split("").map(l=>l+l).join(""));const r=parseInt(n,16),o=r>>16&255,a=r>>8&255,s=r&255;return[o,a,s]};u.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.max(Math.max(t,n),r),a=Math.min(Math.min(t,n),r),s=o-a;let l,i;return s<1?l=a/(1-s):l=0,s<=0?i=0:o===t?i=(n-r)/s%6:o===n?i=2+(r-t)/s:i=4+(t-n)/s,i/=6,i%=1,[i*360,s*100,l*100]};u.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let o=0;return r<1&&(o=(n-.5*r)/(1-r)),[e[0],r*100,o*100]};u.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],r*100,o*100]};u.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(n===0)return[r*255,r*255,r*255];const o=[0,0,0],a=t%1*6,s=a%1,l=1-s;let i=0;switch(Math.floor(a)){case 0:o[0]=1,o[1]=s,o[2]=0;break;case 1:o[0]=l,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=s;break;case 3:o[0]=0,o[1]=l,o[2]=1;break;case 4:o[0]=s,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=l}return 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 B=_e;function Qe(){const e={},t=Object.keys(B);for(let n=t.length,r=0;r1&&(n=r),e(n))};return"conversion"in e&&(t.conversion=e.conversion),t}function st(e){const t=function(...n){const r=n[0];if(r==null)return r;r.length>1&&(n=r);const o=e(n);if(typeof o=="object")for(let a=o.length,s=0;s{O[e]={},Object.defineProperty(O[e],"channels",{value:U[e].channels}),Object.defineProperty(O[e],"labels",{value:U[e].labels});const t=rt(e);Object.keys(t).forEach(r=>{const o=t[r];O[e][r]=st(o),O[e][r].raw=at(o)})});var lt=O;const w=fe(lt);var it=Oe,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,se=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 se;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)?se:+e}var Mt=Et,Ct=J,D=ut,le=Mt,$t="Expected a function",Nt=Math.max,Ot=Math.min;function It(e,t,n){var r,o,a,s,l,i,c=0,d=!1,f=!1,g=!0;if(typeof e!="function")throw new TypeError($t);t=le(t)||0,Ct(n)&&(d=!!n.leading,f="maxWait"in n,a=f?Nt(le(n.maxWait)||0,t):a,g="trailing"in n?!!n.trailing:g);function k(v){var E=r,T=o;return r=o=void 0,c=v,s=e.apply(T,E),s}function N(v){return c=v,l=setTimeout(m,t),d?k(v):s}function _(v){var E=v-i,T=v-c,te=t-E;return f?Ot(te,a-T):te}function p(v){var E=v-i,T=v-c;return i===void 0||E>=t||E<0||f&&T>=a}function m(){var v=D();if(p(v))return x(v);l=setTimeout(m,_(v))}function x(v){return l=void 0,g&&r?k(v):(r=o=void 0,s)}function C(){l!==void 0&&clearTimeout(l),c=0,r=i=o=l=void 0}function X(){return l===void 0?s:x(D())}function R(){var v=D(),E=p(v);if(r=arguments,o=this,i=v,E){if(l===void 0)return N(i);if(f)return clearTimeout(l),l=setTimeout(m,t),k(i)}return l===void 0&&(l=setTimeout(m,t)),s}return R.cancel=C,R.flush=X,R}var St=It,Rt=St,Tt=J,jt="Expected a function";function Ft(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(jt);return Tt(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=M.div({position:"relative",maxWidth:250}),Lt=M(ue)({position:"absolute",zIndex:1,top:4,left:4}),qt=M.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=M(Me)(({theme:e})=>({fontFamily:e.typography.fonts.base})),Wt=M.div({display:"grid",gridTemplateColumns:"repeat(9, 16px)",gap:6,padding:3,marginTop:5,width:200}),Xt=M.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,active:t,onClick:n,style:r,...o})=>{let a=`linear-gradient(${e}, ${e}), ${Dt}, linear-gradient(#fff, #fff)`;return h.createElement(Xt,{...o,active:t,onClick:n,style:{...r,backgroundImage:a}})},Kt=M(Ce.Input)(({theme:e})=>({width:"100%",paddingLeft:30,paddingRight:30,boxSizing:"border-box",fontFamily:e.typography.fonts.base})),Vt=M($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||{}),P=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},L={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)},I=e=>{if(!e)return;let t=!0;if(Gt.test(e)){let[s,l,i,c]=ce(e),[d,f,g]=w.rgb.hsl([s,l,i])||[0,0,0];return{valid:t,value:e,keyword:w.rgb.keyword([s,l,i]),colorSpace:"rgb",rgb:e,hsl:`hsla(${d}, ${f}%, ${g}%, ${c})`,hex:`#${w.rgb.hex([s,l,i]).toLowerCase()}`}}if(Ut.test(e)){let[s,l,i,c]=ce(e),[d,f,g]=w.hsl.rgb([s,l,i])||[0,0,0];return{valid:t,value:e,keyword:w.hsl.keyword([s,l,i]),colorSpace:"hsl",rgb:`rgba(${d}, ${f}, ${g}, ${c})`,hsl:e,hex:`#${w.hsl.hex([s,l,i]).toLowerCase()}`}}let n=e.replace("#",""),r=w.keyword.rgb(n)||w.hex.rgb(n),o=w.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{w.keyword.hex(a)}catch{t=!1}return{valid:t,value:a,keyword:w.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 L[n];if(n!=="hex")return(t==null?void 0:t[n])||L[n];if(!t.hex.startsWith("#"))try{return`#${w.keyword.hex(t.hex)}`}catch{return L.hex}let r=t.hex.match(Yt);if(!r)return Y.test(t.hex)?t.hex:L.hex;let[o,a,s]=r[1].split("");return`#${o}${o}${a}${a}${s}${s}`},Zt=(e,t)=>{let[n,r]=b.useState(e||""),[o,a]=b.useState(()=>I(n)),[s,l]=b.useState((o==null?void 0:o.colorSpace)||"hex");b.useEffect(()=>{let f=e||"",g=I(f);r(f),a(g),l((g==null?void 0:g.colorSpace)||"hex")},[e]);let i=b.useMemo(()=>Qt(n,o,s).toLowerCase(),[n,o,s]),c=b.useCallback(f=>{let g=I(f),k=(g==null?void 0:g.value)||f||"";r(k),k===""&&(a(void 0),t(void 0)),g&&(a(g),l(g.colorSpace),t(g.value))},[t]),d=b.useCallback(()=>{let f=P.indexOf(s)+1;f>=P.length&&(f=0),l(P[f]);let g=(o==null?void 0:o[P[f]])||"";r(g),t(g)},[o,s,t]);return{value:n,realValue:i,updateValue:c,color:o,colorSpace:s,cycleColorSpace:d}},W=e=>e.replace(/\s*/,"").toLowerCase(),en=(e,t,n)=>{let[r,o]=b.useState(t!=null&&t.valid?[t]:[]);b.useEffect(()=>{t===void 0&&o([])},[t]);let a=b.useMemo(()=>(e||[]).map(l=>typeof l=="string"?I(l):l.title?{...I(l.color),keyword:l.title}:I(l.color)).concat(r).filter(Boolean).slice(-27),[e,r]),s=b.useCallback(l=>{l!=null&&l.valid&&(a.some(i=>W(i[n])===W(l[n]))||o(i=>i.concat(l)))},[n,a]);return{presets:a,addPreset:s}},tn=({name:e,value:t,onChange:n,onFocus:r,onBlur:o,presetColors:a,startOpen:s=!1})=>{let l=b.useCallback(Ht(n,200),[n]),{value:i,realValue:c,updateValue:d,color:f,colorSpace:g,cycleColorSpace:k}=Zt(t,l),{presets:N,addPreset:_}=en(a,f,g),p=Jt[g];return h.createElement(Pt,null,h.createElement(Lt,{startOpen:s,closeOnOutsideClick:!0,onVisibleChange:()=>_(f),tooltip:h.createElement(qt,null,h.createElement(p,{color:c==="transparent"?"#000000":c,onChange:d,onFocus:r,onBlur:o}),N.length>0&&h.createElement(Wt,null,N.map((m,x)=>h.createElement(ue,{key:`${m.value}-${x}`,hasChrome:!1,tooltip:h.createElement(Bt,{note:m.keyword||m.value})},h.createElement(ie,{value:m[g],active:f&&W(m[g])===W(f[g]),onClick:()=>d(m.value)})))))},h.createElement(ie,{value:c,style:{margin:4}})),h.createElement(Kt,{id:Ne(e),value:i,onChange:m=>d(m.target.value),onFocus:m=>m.target.select(),placeholder:"Choose color..."}),i?h.createElement(Vt,{icon:"markup",onClick:k}):null)},hn=tn;export{tn as ColorControl,hn as default}; diff --git a/assets/DocsRenderer-NNNQARDV-cP9UsLX_.js b/assets/DocsRenderer-NNNQARDV-CQFGPGzU.js similarity index 57% rename from assets/DocsRenderer-NNNQARDV-cP9UsLX_.js rename to assets/DocsRenderer-NNNQARDV-CQFGPGzU.js index 25c2e9c4..8db46625 100644 --- a/assets/DocsRenderer-NNNQARDV-cP9UsLX_.js +++ b/assets/DocsRenderer-NNNQARDV-CQFGPGzU.js @@ -1 +1 @@ -import{D,d as c}from"./chunk-HLWAVYOI-Ycm5PLJ1.js";import"./iframe-Di3G6qoa.js";import"../sb-preview/runtime.js";import"./index-OjgoNOWw.js";import"./react-18-DyM-o0Ps.js";import"./index-mQqIOHEI.js";import"./index-FEzJ-IFI.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-xK8HOd_o.js";import"./inheritsLoose-Y9jOMJLd.js";import"./index-LnHysSno.js";import"./index-BdDYuicC.js";export{D as DocsRenderer,c as defaultComponents}; +import{D,d as c}from"./chunk-HLWAVYOI-42WL2HKe.js";import"./iframe-zHoeYuYN.js";import"../sb-preview/runtime.js";import"./index-OjgoNOWw.js";import"./react-18-DyM-o0Ps.js";import"./index-mQqIOHEI.js";import"./index-S9SFSHLo.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-xK8HOd_o.js";import"./inheritsLoose-Y9jOMJLd.js";import"./index-LnHysSno.js";import"./index-BdDYuicC.js";export{D as DocsRenderer,c as defaultComponents}; diff --git a/assets/WithTooltip-V3YHNWJZ-c1yUud0l.js b/assets/WithTooltip-V3YHNWJZ-aLaU2p-B.js similarity index 68% rename from assets/WithTooltip-V3YHNWJZ-c1yUud0l.js rename to assets/WithTooltip-V3YHNWJZ-aLaU2p-B.js index 08c42e15..ff904704 100644 --- a/assets/WithTooltip-V3YHNWJZ-c1yUud0l.js +++ b/assets/WithTooltip-V3YHNWJZ-aLaU2p-B.js @@ -1 +1 @@ -import{W as h,W as l,a as s}from"./index-FEzJ-IFI.js";import"./iframe-Di3G6qoa.js";import"../sb-preview/runtime.js";import"./index-OjgoNOWw.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-xK8HOd_o.js";import"./index-mQqIOHEI.js";import"./inheritsLoose-Y9jOMJLd.js";import"./index-LnHysSno.js";import"./index-BdDYuicC.js";export{h as WithToolTipState,l as WithTooltip,s as WithTooltipPure}; +import{W as h,W as l,a as s}from"./index-S9SFSHLo.js";import"./iframe-zHoeYuYN.js";import"../sb-preview/runtime.js";import"./index-OjgoNOWw.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-xK8HOd_o.js";import"./index-mQqIOHEI.js";import"./inheritsLoose-Y9jOMJLd.js";import"./index-LnHysSno.js";import"./index-BdDYuicC.js";export{h as WithToolTipState,l as WithTooltip,s as WithTooltipPure}; diff --git a/assets/alert-wuCjLQa6.js b/assets/alert-5kz5l48o.js similarity index 97% rename from assets/alert-wuCjLQa6.js rename to assets/alert-5kz5l48o.js index 2c89bfe7..a5f4fc67 100644 --- a/assets/alert-wuCjLQa6.js +++ b/assets/alert-5kz5l48o.js @@ -1 +1 @@ -import{j as e}from"./jsx-runtime-DtaoT6pD.js";import{r as u}from"./index-OjgoNOWw.js";import{n as i}from"./emotion-styled.browser.esm-jsqElTi7.js";import{F as p,a as m}from"./flex_container-Aq3v_kS5.js";import{T as v}from"./typography-be8ycqzM.js";import{I as f}from"./icon_button-WreoF-Ie.js";import{C as h}from"./close_icon-Bp311Jgy.js";import{C as g,a as x}from"./close_circle_icon-XpY_jUxJ.js";import{W as w}from"./warning_icon-iK8dORZk.js";import{C as b}from"./circular_progress-_GSDl8M_.js";const y=i(p)({width:"100%",gap:"var(--pv-size-base-2)",padding:"var(--pv-size-base-2) var(--pv-size-base-4)",boxSizing:"border-box",borderRadius:"4px"},r=>{const n=r.theme.mode==="dark";let o;return r.variant==="wrong"?(n?o="var(--pv-color-wrong-shade-4)":o="var(--pv-color-wrong-tint-5)",{backgroundColor:o}):(n?o="var(--pv-color-gray-2)":o="var(--pv-color-black)",{backgroundColor:o})}),C=i("div")(r=>({width:"24px",display:"flex",justifyContent:"center",alignItems:"center",...r.variant==="wrong"&&{color:"var(--pv-color-wrong)"},...r.variant==="attention"&&{color:"var(--pv-color-attention)"},...r.variant==="success"&&{color:"var(--pv-color-success)"}})),I=i(m)({padding:"var(--pv-size-base) 0px",minHeight:"var(--pv-text-b3-height)",overflowWrap:"break-word"}),t=u.forwardRef((r,n)=>{const{children:o,variant:a,disableIcon:l,onClose:s,...c}=r,d=()=>a==="wrong"?e.jsx(g,{"aria-hidden":"true"}):a==="attention"?e.jsx(w,{"aria-hidden":"true"}):a==="success"?e.jsx(x,{"aria-hidden":"true"}):a==="pending"?e.jsx(b,{size:"small",color:"secondary","aria-hidden":"true"}):null;return e.jsxs(y,{ref:n,role:"alert",variant:a,...c,children:[!l&&e.jsx(C,{variant:a,children:d()}),e.jsx(I,{size:"grow",children:e.jsx(v,{variant:"b3",color:a==="wrong"?"wrong":"white",children:o})}),s&&e.jsx(f,{size:"small",color:a==="wrong"?"wrong":"white",circled:!0,onClick:s,children:e.jsx(h,{})})]})});t.displayName="Alert";t.defaultProps={disableIcon:!0};try{t.displayName="Alert",t.__docgenInfo={description:"",displayName:"Alert",props:{children:{defaultValue:null,description:"The content of the component.",name:"children",required:!0,type:{name:"ReactNode"}},className:{defaultValue:null,description:"The className of the component.",name:"className",required:!1,type:{name:"string"}},variant:{defaultValue:null,description:"The type of the component.",name:"variant",required:!1,type:{name:"enum",value:[{value:'"wrong"'},{value:'"attention"'},{value:'"success"'},{value:'"pending"'}]}},disableIcon:{defaultValue:{value:"true"},description:"If `true`, the start icon will be hidden.",name:"disableIcon",required:!1,type:{name:"boolean"}},onClose:{defaultValue:null,description:"Callback fired when the component requests to be closed.",name:"onClose",required:!1,type:{name:"() => void"}}}}}catch{}export{t as A}; +import{j as e}from"./jsx-runtime-DtaoT6pD.js";import{r as u}from"./index-OjgoNOWw.js";import{n as i}from"./emotion-styled.browser.esm-jsqElTi7.js";import{F as p,a as m}from"./flex_container-Aq3v_kS5.js";import{T as v}from"./typography-be8ycqzM.js";import{I as f}from"./icon_button-WreoF-Ie.js";import{C as h}from"./close_icon-Bp311Jgy.js";import{C as g,a as x}from"./close_circle_icon-XpY_jUxJ.js";import{W as w}from"./warning_icon-iK8dORZk.js";import{C as b}from"./circular_progress-JxgBeK0r.js";const y=i(p)({width:"100%",gap:"var(--pv-size-base-2)",padding:"var(--pv-size-base-2) var(--pv-size-base-4)",boxSizing:"border-box",borderRadius:"4px"},r=>{const n=r.theme.mode==="dark";let o;return r.variant==="wrong"?(n?o="var(--pv-color-wrong-shade-4)":o="var(--pv-color-wrong-tint-5)",{backgroundColor:o}):(n?o="var(--pv-color-gray-2)":o="var(--pv-color-black)",{backgroundColor:o})}),C=i("div")(r=>({width:"24px",display:"flex",justifyContent:"center",alignItems:"center",...r.variant==="wrong"&&{color:"var(--pv-color-wrong)"},...r.variant==="attention"&&{color:"var(--pv-color-attention)"},...r.variant==="success"&&{color:"var(--pv-color-success)"}})),I=i(m)({padding:"var(--pv-size-base) 0px",minHeight:"var(--pv-text-b3-height)",overflowWrap:"break-word"}),t=u.forwardRef((r,n)=>{const{children:o,variant:a,disableIcon:l,onClose:s,...c}=r,d=()=>a==="wrong"?e.jsx(g,{"aria-hidden":"true"}):a==="attention"?e.jsx(w,{"aria-hidden":"true"}):a==="success"?e.jsx(x,{"aria-hidden":"true"}):a==="pending"?e.jsx(b,{size:"small",color:"secondary","aria-hidden":"true"}):null;return e.jsxs(y,{ref:n,role:"alert",variant:a,...c,children:[!l&&e.jsx(C,{variant:a,children:d()}),e.jsx(I,{size:"grow",children:e.jsx(v,{variant:"b3",color:a==="wrong"?"wrong":"white",children:o})}),s&&e.jsx(f,{size:"small",color:a==="wrong"?"wrong":"white",circled:!0,onClick:s,children:e.jsx(h,{})})]})});t.displayName="Alert";t.defaultProps={disableIcon:!0};try{t.displayName="Alert",t.__docgenInfo={description:"",displayName:"Alert",props:{children:{defaultValue:null,description:"The content of the component.",name:"children",required:!0,type:{name:"ReactNode"}},className:{defaultValue:null,description:"The className of the component.",name:"className",required:!1,type:{name:"string"}},variant:{defaultValue:null,description:"The type of the component.",name:"variant",required:!1,type:{name:"enum",value:[{value:'"wrong"'},{value:'"attention"'},{value:'"success"'},{value:'"pending"'}]}},disableIcon:{defaultValue:{value:"true"},description:"If `true`, the start icon will be hidden.",name:"disableIcon",required:!1,type:{name:"boolean"}},onClose:{defaultValue:null,description:"Callback fired when the component requests to be closed.",name:"onClose",required:!1,type:{name:"() => void"}}}}}catch{}export{t as A}; diff --git a/assets/alert.stories--0ZXPdyW.js b/assets/alert.stories-qWuLyyMi.js similarity index 90% rename from assets/alert.stories--0ZXPdyW.js rename to assets/alert.stories-qWuLyyMi.js index bbad5214..ac30a43a 100644 --- a/assets/alert.stories--0ZXPdyW.js +++ b/assets/alert.stories-qWuLyyMi.js @@ -1 +1 @@ -import{A as p}from"./alert-wuCjLQa6.js";import"./jsx-runtime-DtaoT6pD.js";import"./index-OjgoNOWw.js";import"./emotion-styled.browser.esm-jsqElTi7.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-xK8HOd_o.js";import"./emotion-element-c39617d8.browser.esm-upVMHClS.js";import"./flex_container-Aq3v_kS5.js";import"./typography-be8ycqzM.js";import"./icon_button-WreoF-Ie.js";import"./button-6fPk4QP_.js";import"./button_base-UbkVh8Vj.js";import"./tooltip-J9P4FoiT.js";import"./emotion-react.browser.esm-8gWn0FvA.js";import"./box-bq1vF_Hs.js";import"./popper-YlbGwMrF.js";import"./usePopper--g5aU53a.js";import"./index-mQqIOHEI.js";import"./portal-GS-MOYPJ.js";import"./use_enhanced_effect-jDxBKzmp.js";import"./use_controllable-CY5ZQbVr.js";import"./use_merged_ref-U30BPCzO.js";import"./close_icon-Bp311Jgy.js";import"./close_circle_icon-XpY_jUxJ.js";import"./warning_icon-iK8dORZk.js";import"./circular_progress-_GSDl8M_.js";const q={title:"Components/Alert",component:p,args:{children:"This is a message!"},tags:["autodocs"],argTypes:{children:{control:"text"}}},r={};var o,t,m;r.parameters={...r.parameters,docs:{...(o=r.parameters)==null?void 0:o.docs,source:{originalSource:"{}",...(m=(t=r.parameters)==null?void 0:t.docs)==null?void 0:m.source}}};const v=["Playground"];export{r as Playground,v as __namedExportsOrder,q as default}; +import{A as p}from"./alert-5kz5l48o.js";import"./jsx-runtime-DtaoT6pD.js";import"./index-OjgoNOWw.js";import"./emotion-styled.browser.esm-jsqElTi7.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-xK8HOd_o.js";import"./emotion-element-c39617d8.browser.esm-upVMHClS.js";import"./flex_container-Aq3v_kS5.js";import"./typography-be8ycqzM.js";import"./icon_button-WreoF-Ie.js";import"./button-6fPk4QP_.js";import"./button_base-UbkVh8Vj.js";import"./tooltip-J9P4FoiT.js";import"./emotion-react.browser.esm-8gWn0FvA.js";import"./box-bq1vF_Hs.js";import"./popper-YlbGwMrF.js";import"./usePopper--g5aU53a.js";import"./index-mQqIOHEI.js";import"./portal-GS-MOYPJ.js";import"./use_enhanced_effect-jDxBKzmp.js";import"./use_controllable-CY5ZQbVr.js";import"./use_merged_ref-U30BPCzO.js";import"./close_icon-Bp311Jgy.js";import"./close_circle_icon-XpY_jUxJ.js";import"./warning_icon-iK8dORZk.js";import"./circular_progress-JxgBeK0r.js";const q={title:"Components/Alert",component:p,args:{children:"This is a message!"},tags:["autodocs"],argTypes:{children:{control:"text"}}},r={};var o,t,m;r.parameters={...r.parameters,docs:{...(o=r.parameters)==null?void 0:o.docs,source:{originalSource:"{}",...(m=(t=r.parameters)==null?void 0:t.docs)==null?void 0:m.source}}};const v=["Playground"];export{r as Playground,v as __namedExportsOrder,q as default}; diff --git a/assets/box-r6mhcPp2.js b/assets/box-8MqCLq4e.js similarity index 91% rename from assets/box-r6mhcPp2.js rename to assets/box-8MqCLq4e.js index b7227edc..87178e34 100644 --- a/assets/box-r6mhcPp2.js +++ b/assets/box-8MqCLq4e.js @@ -1,4 +1,4 @@ -import{j as o}from"./jsx-runtime-DtaoT6pD.js";import{M as i,C as n,A as c}from"./index-FEzJ-IFI.js";import{S as d,B as h,a as p,b as a,c as x,d as l}from"./box.stories-tWlYbFhl.js";import{useMDXComponents as t}from"./index-82O-B91n.js";import{B as m}from"./box-bq1vF_Hs.js";import"./index-OjgoNOWw.js";import"./iframe-Di3G6qoa.js";import"../sb-preview/runtime.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-xK8HOd_o.js";import"./index-mQqIOHEI.js";import"./inheritsLoose-Y9jOMJLd.js";import"./index-LnHysSno.js";import"./index-BdDYuicC.js";import"./emotion-styled.browser.esm-jsqElTi7.js";import"./emotion-element-c39617d8.browser.esm-upVMHClS.js";function s(r){const e=Object.assign({h1:"h1",p:"p",code:"code",h2:"h2",a:"a",h4:"h4"},t(),r.components);return o.jsxs(o.Fragment,{children:[o.jsx(i,{of:d}),` +import{j as o}from"./jsx-runtime-DtaoT6pD.js";import{M as i,C as n,A as c}from"./index-S9SFSHLo.js";import{S as d,B as h,a as p,b as a,c as x,d as l}from"./box.stories-tWlYbFhl.js";import{useMDXComponents as t}from"./index-82O-B91n.js";import{B as m}from"./box-bq1vF_Hs.js";import"./index-OjgoNOWw.js";import"./iframe-zHoeYuYN.js";import"../sb-preview/runtime.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-xK8HOd_o.js";import"./index-mQqIOHEI.js";import"./inheritsLoose-Y9jOMJLd.js";import"./index-LnHysSno.js";import"./index-BdDYuicC.js";import"./emotion-styled.browser.esm-jsqElTi7.js";import"./emotion-element-c39617d8.browser.esm-upVMHClS.js";function s(r){const e=Object.assign({h1:"h1",p:"p",code:"code",h2:"h2",a:"a",h4:"h4"},t(),r.components);return o.jsxs(o.Fragment,{children:[o.jsx(i,{of:d}),` `,o.jsx(e.h1,{id:"box",children:"Box"}),` `,o.jsxs(e.p,{children:["The Box component serves as a wrapper component for quickly change ",o.jsx(e.code,{children:"background"})," and ",o.jsx(e.code,{children:"border"})," properties."]}),` `,o.jsx(e.h2,{id:"background",children:"Background"}),` diff --git a/assets/button-bXCCf1hn.js b/assets/button-T3PZHFwv.js similarity index 96% rename from assets/button-bXCCf1hn.js rename to assets/button-T3PZHFwv.js index 1a1f58a7..8ded1396 100644 --- a/assets/button-bXCCf1hn.js +++ b/assets/button-T3PZHFwv.js @@ -1,4 +1,4 @@ -import{j as o}from"./jsx-runtime-DtaoT6pD.js";import{M as s,C as n,A as c}from"./index-FEzJ-IFI.js";import{S as a,T as l,C as d,O as h,a as x,D as m,P as j,b as p,W as u,c as f,I as b}from"./button.stories-cxppwt7f.js";import{B as g}from"./button-6fPk4QP_.js";import{useMDXComponents as i}from"./index-82O-B91n.js";import"./index-OjgoNOWw.js";import"./iframe-Di3G6qoa.js";import"../sb-preview/runtime.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-xK8HOd_o.js";import"./index-mQqIOHEI.js";import"./inheritsLoose-Y9jOMJLd.js";import"./index-LnHysSno.js";import"./index-BdDYuicC.js";import"./plus_icon-u0qdKX2a.js";import"./close_icon-Bp311Jgy.js";import"./emotion-styled.browser.esm-jsqElTi7.js";import"./emotion-element-c39617d8.browser.esm-upVMHClS.js";import"./button_base-UbkVh8Vj.js";import"./typography-be8ycqzM.js";function r(t){const e=Object.assign({h1:"h1",p:"p",h2:"h2",code:"code",h4:"h4"},i(),t.components);return o.jsxs(o.Fragment,{children:[o.jsx(s,{of:a}),` +import{j as o}from"./jsx-runtime-DtaoT6pD.js";import{M as s,C as n,A as c}from"./index-S9SFSHLo.js";import{S as a,T as l,C as d,O as h,a as x,D as m,P as j,b as p,W as u,c as f,I as b}from"./button.stories-cxppwt7f.js";import{B as g}from"./button-6fPk4QP_.js";import{useMDXComponents as i}from"./index-82O-B91n.js";import"./index-OjgoNOWw.js";import"./iframe-zHoeYuYN.js";import"../sb-preview/runtime.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-xK8HOd_o.js";import"./index-mQqIOHEI.js";import"./inheritsLoose-Y9jOMJLd.js";import"./index-LnHysSno.js";import"./index-BdDYuicC.js";import"./plus_icon-u0qdKX2a.js";import"./close_icon-Bp311Jgy.js";import"./emotion-styled.browser.esm-jsqElTi7.js";import"./emotion-element-c39617d8.browser.esm-upVMHClS.js";import"./button_base-UbkVh8Vj.js";import"./typography-be8ycqzM.js";function r(t){const e=Object.assign({h1:"h1",p:"p",h2:"h2",code:"code",h4:"h4"},i(),t.components);return o.jsxs(o.Fragment,{children:[o.jsx(s,{of:a}),` `,o.jsx(e.h1,{id:"button",children:"Button"}),` `,o.jsx(e.p,{children:"Buttons allow users to take actions, and make choices, with a single tap."}),` `,o.jsx(e.h2,{id:"variant",children:"Variant"}),` diff --git a/assets/chunk-HLWAVYOI-Ycm5PLJ1.js b/assets/chunk-HLWAVYOI-42WL2HKe.js similarity index 89% rename from assets/chunk-HLWAVYOI-Ycm5PLJ1.js rename to assets/chunk-HLWAVYOI-42WL2HKe.js index d75b2a8d..ebc2fbcf 100644 --- a/assets/chunk-HLWAVYOI-Ycm5PLJ1.js +++ b/assets/chunk-HLWAVYOI-42WL2HKe.js @@ -1,4 +1,4 @@ -import{_ as i}from"./iframe-Di3G6qoa.js";import{R as t,r as p}from"./index-OjgoNOWw.js";import{r as l,u}from"./react-18-DyM-o0Ps.js";import{b as h,d,H as E,D as x}from"./index-FEzJ-IFI.js";var D={code:h,a:d,...E},_=class extends p.Component{constructor(){super(...arguments),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(r){let{showException:e}=this.props;e(r)}render(){let{hasError:r}=this.state,{children:e}=this.props;return r?null:t.createElement(t.Fragment,null,e)}},R=class{constructor(){this.render=async(r,e,o)=>{let n={...D,...e==null?void 0:e.components},s=x;return new Promise((a,m)=>{i(()=>import("./index-82O-B91n.js"),__vite__mapDeps([0,1]),import.meta.url).then(({MDXProvider:c})=>l(t.createElement(_,{showException:m,key:Math.random()},t.createElement(c,{components:n},t.createElement(s,{context:r,docsParameter:e}))),o)).then(()=>a())})},this.unmount=r=>{u(r)}}};export{R as D,D as d}; +import{_ as i}from"./iframe-zHoeYuYN.js";import{R as t,r as p}from"./index-OjgoNOWw.js";import{r as l,u}from"./react-18-DyM-o0Ps.js";import{b as h,d,H as E,D as x}from"./index-S9SFSHLo.js";var D={code:h,a:d,...E},_=class extends p.Component{constructor(){super(...arguments),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(r){let{showException:e}=this.props;e(r)}render(){let{hasError:r}=this.state,{children:e}=this.props;return r?null:t.createElement(t.Fragment,null,e)}},R=class{constructor(){this.render=async(r,e,o)=>{let n={...D,...e==null?void 0:e.components},s=x;return new Promise((a,m)=>{i(()=>import("./index-82O-B91n.js"),__vite__mapDeps([0,1]),import.meta.url).then(({MDXProvider:c})=>l(t.createElement(_,{showException:m,key:Math.random()},t.createElement(c,{components:n},t.createElement(s,{context:r,docsParameter:e}))),o)).then(()=>a())})},this.unmount=r=>{u(r)}}};export{R as D,D as d}; function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { __vite__mapDeps.viteFileDeps = ["./index-82O-B91n.js","./index-OjgoNOWw.js"] diff --git a/assets/circular_progress-_GSDl8M_.js b/assets/circular_progress-JxgBeK0r.js similarity index 95% rename from assets/circular_progress-_GSDl8M_.js rename to assets/circular_progress-JxgBeK0r.js index c71b74c9..e1691f30 100644 --- a/assets/circular_progress-_GSDl8M_.js +++ b/assets/circular_progress-JxgBeK0r.js @@ -19,5 +19,5 @@ import{j as o}from"./jsx-runtime-DtaoT6pD.js";import{R as f}from"./index-OjgoNOW stroke-dashoffset: -125px; } `,g=n("div",{shouldForwardProp:e=>v(e)&&e!=="color"})(e=>({label:"CircularProgress",overflow:"hidden",position:"relative",display:"inline-block",color:`var(--pv-color-${e.color})`,...e.variant==="indeterminate"?{animation:`${h} 1.4s linear infinite`}:{transform:"rotate(-90deg)"},...e.size==="small"&&{height:"var(--pv-size-base-3)",width:"var(--pv-size-base-3)"},...e.size==="large"&&{height:"var(--pv-size-base-6)",width:"var(--pv-size-base-6)"}})),x=n("svg")({display:"block"}),k=n("circle")(e=>({stroke:"currentcolor",strokeDasharray:"80px, 200px",strokeDashoffset:0,...e.variant==="indeterminate"&&{animation:`${y} 1.4s ease-in-out infinite`}})),r=44,i=4,a=f.forwardRef((e,d)=>{const{size:u,variant:t="indeterminate",value:m=0,...p}=e,s={};if(t==="determinate"){const l=2*Math.PI*((r-i)/2);s.strokeDasharray=l.toFixed(3),s.strokeDashoffset=`${((100-m)/100*l).toFixed(3)}px`}return o.jsx(g,{ref:d,role:"progressbar",variant:t,size:u,...p,children:o.jsx(x,{viewBox:`${r/2} ${r/2} ${r} ${r}`,children:o.jsx(k,{cx:r,cy:r,r:(r-i)/2,fill:"none",strokeWidth:i,style:s,variant:t})})})});a.displayName="CircularProgress";a.defaultProps={color:"primary",size:"large",variant:"indeterminate",value:0};try{a.displayName="CircularProgress",a.__docgenInfo={description:"",displayName:"CircularProgress",props:{color:{defaultValue:{value:"primary"},description:"The color of the component. It supports those theme colors that make sense for this component.",name:"color",required:!1,type:{name:"enum",value:[{value:'"primary"'},{value:'"secondary"'},{value:'"white"'}]}},className:{defaultValue:null,description:"The className of the component.",name:"className",required:!1,type:{name:"string"}},size:{defaultValue:{value:"large"},description:"The size of the progress.",name:"size",required:!1,type:{name:"enum",value:[{value:'"small"'},{value:'"large"'}]}},variant:{defaultValue:{value:"indeterminate"},description:`The variant to use. -Use indeterminate when there is no progress value.`,name:"variant",required:!1,type:{name:"enum",value:[{value:'"determinate"'},{value:'"indeterminate"'}]}},value:{defaultValue:{value:"0"},description:`The value of the progress indicator for the determinate variant. +Use indeterminate when there is no progress value.`,name:"variant",required:!1,type:{name:"enum",value:[{value:'"indeterminate"'},{value:'"determinate"'}]}},value:{defaultValue:{value:"0"},description:`The value of the progress indicator for the determinate variant. Value between 0 and 100.`,name:"value",required:!1,type:{name:"number"}}}}}catch{}export{a as C}; diff --git a/assets/circular_progress.stories-WgGr9h5F.js b/assets/circular_progress.stories-mj-DrL5M.js similarity index 90% rename from assets/circular_progress.stories-WgGr9h5F.js rename to assets/circular_progress.stories-mj-DrL5M.js index 23e5dfc3..8fa186f0 100644 --- a/assets/circular_progress.stories-WgGr9h5F.js +++ b/assets/circular_progress.stories-mj-DrL5M.js @@ -1 +1 @@ -import{C as e}from"./circular_progress-_GSDl8M_.js";import"./jsx-runtime-DtaoT6pD.js";import"./index-OjgoNOWw.js";import"./emotion-react.browser.esm-8gWn0FvA.js";import"./emotion-element-c39617d8.browser.esm-upVMHClS.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-xK8HOd_o.js";import"./emotion-styled.browser.esm-jsqElTi7.js";const u={title:"Components/CircularProgress",component:e,tags:["autodocs"]},r={};var o,t,s;r.parameters={...r.parameters,docs:{...(o=r.parameters)==null?void 0:o.docs,source:{originalSource:"{}",...(s=(t=r.parameters)==null?void 0:t.docs)==null?void 0:s.source}}};const l=["Playground"];export{r as Playground,l as __namedExportsOrder,u as default}; +import{C as e}from"./circular_progress-JxgBeK0r.js";import"./jsx-runtime-DtaoT6pD.js";import"./index-OjgoNOWw.js";import"./emotion-react.browser.esm-8gWn0FvA.js";import"./emotion-element-c39617d8.browser.esm-upVMHClS.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-xK8HOd_o.js";import"./emotion-styled.browser.esm-jsqElTi7.js";const u={title:"Components/CircularProgress",component:e,tags:["autodocs"]},r={};var o,t,s;r.parameters={...r.parameters,docs:{...(o=r.parameters)==null?void 0:o.docs,source:{originalSource:"{}",...(s=(t=r.parameters)==null?void 0:t.docs)==null?void 0:s.source}}};const l=["Playground"];export{r as Playground,l as __namedExportsOrder,u as default}; diff --git a/assets/css_variables-haQ1F5tC.js b/assets/css_variables-SbHOGUr0.js similarity index 94% rename from assets/css_variables-haQ1F5tC.js rename to assets/css_variables-SbHOGUr0.js index 116e0e67..508ac074 100644 --- a/assets/css_variables-haQ1F5tC.js +++ b/assets/css_variables-SbHOGUr0.js @@ -1,4 +1,4 @@ -import{j as e}from"./jsx-runtime-DtaoT6pD.js";import{M as r}from"./index-FEzJ-IFI.js";import{useMDXComponents as s}from"./index-82O-B91n.js";import"./index-OjgoNOWw.js";import"./iframe-Di3G6qoa.js";import"../sb-preview/runtime.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-xK8HOd_o.js";import"./index-mQqIOHEI.js";import"./inheritsLoose-Y9jOMJLd.js";import"./index-LnHysSno.js";import"./index-BdDYuicC.js";function t(o){const n=Object.assign({h1:"h1",p:"p",code:"code",ul:"ul",li:"li",a:"a",h2:"h2",pre:"pre"},s(),o.components);return e.jsxs(e.Fragment,{children:[e.jsx(r,{title:"Customization/CSS Variables"}),` +import{j as e}from"./jsx-runtime-DtaoT6pD.js";import{M as r}from"./index-S9SFSHLo.js";import{useMDXComponents as s}from"./index-82O-B91n.js";import"./index-OjgoNOWw.js";import"./iframe-zHoeYuYN.js";import"../sb-preview/runtime.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-xK8HOd_o.js";import"./index-mQqIOHEI.js";import"./inheritsLoose-Y9jOMJLd.js";import"./index-LnHysSno.js";import"./index-BdDYuicC.js";function t(o){const n=Object.assign({h1:"h1",p:"p",code:"code",ul:"ul",li:"li",a:"a",h2:"h2",pre:"pre"},s(),o.components);return e.jsxs(e.Fragment,{children:[e.jsx(r,{title:"Customization/CSS Variables"}),` `,e.jsx(n.h1,{id:"css-variables",children:"CSS Variables"}),` `,e.jsxs(n.p,{children:[e.jsx(n.code,{children:"@peculiar/react-components"}),' now converts theme tokens (colors, font sizes, etc) to CSS Custom Properties (also known as "CSS variables").']}),` `,e.jsx(n.p,{children:"CSS variables are now supported in all modern browsers, and we think they are useful to:"}),` diff --git a/assets/dark_mode-99U6GHUG.js b/assets/dark_mode-gZWXgleE.js similarity index 93% rename from assets/dark_mode-99U6GHUG.js rename to assets/dark_mode-gZWXgleE.js index bc1d52ff..43b2292e 100644 --- a/assets/dark_mode-99U6GHUG.js +++ b/assets/dark_mode-gZWXgleE.js @@ -1,4 +1,4 @@ -import{j as r}from"./jsx-runtime-DtaoT6pD.js";import{M as a}from"./index-FEzJ-IFI.js";import{ColorItemExample as o}from"./palette.stories-SUHfYI79.js";import{useMDXComponents as s}from"./index-82O-B91n.js";import{p as i,s as c,w as m,a as d,b as l,g as p,c as h}from"./utils-ur_GzcA6.js";import"./index-OjgoNOWw.js";import"./iframe-Di3G6qoa.js";import"../sb-preview/runtime.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-xK8HOd_o.js";import"./index-mQqIOHEI.js";import"./inheritsLoose-Y9jOMJLd.js";import"./index-LnHysSno.js";import"./index-BdDYuicC.js";import"./typography-be8ycqzM.js";import"./emotion-styled.browser.esm-jsqElTi7.js";import"./emotion-element-c39617d8.browser.esm-upVMHClS.js";function n(t){const e=Object.assign({h1:"h1",p:"p",code:"code",pre:"pre",h2:"h2"},s(),t.components);return r.jsxs(r.Fragment,{children:[r.jsx(a,{title:"Customization/Dark mode"}),` +import{j as r}from"./jsx-runtime-DtaoT6pD.js";import{M as a}from"./index-S9SFSHLo.js";import{ColorItemExample as o}from"./palette.stories-SUHfYI79.js";import{useMDXComponents as s}from"./index-82O-B91n.js";import{p as i,s as c,w as m,a as d,b as l,g as p,c as h}from"./utils-ur_GzcA6.js";import"./index-OjgoNOWw.js";import"./iframe-zHoeYuYN.js";import"../sb-preview/runtime.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-xK8HOd_o.js";import"./index-mQqIOHEI.js";import"./inheritsLoose-Y9jOMJLd.js";import"./index-LnHysSno.js";import"./index-BdDYuicC.js";import"./typography-be8ycqzM.js";import"./emotion-styled.browser.esm-jsqElTi7.js";import"./emotion-element-c39617d8.browser.esm-upVMHClS.js";function n(t){const e=Object.assign({h1:"h1",p:"p",code:"code",pre:"pre",h2:"h2"},s(),t.components);return r.jsxs(r.Fragment,{children:[r.jsx(a,{title:"Customization/Dark mode"}),` `,r.jsx(e.h1,{id:"dark-mode",children:"Dark mode"}),` `,r.jsxs(e.p,{children:["You can make your application use the dark theme as the default—regardless of the user's preference—by adding mode: 'dark' to the ",r.jsx(e.code,{children:"ThemeProvider"}),":"]}),` `,r.jsx(e.pre,{children:r.jsx(e.code,{className:"language-tsx",children:`import { Button, ThemeProvider } from '@peculiar/react-components'; diff --git a/assets/dialog.stories-SV6-C4zt.js b/assets/dialog.stories-nzXpvg8s.js similarity index 98% rename from assets/dialog.stories-SV6-C4zt.js rename to assets/dialog.stories-nzXpvg8s.js index 7af06a94..c1580aa0 100644 --- a/assets/dialog.stories-SV6-C4zt.js +++ b/assets/dialog.stories-nzXpvg8s.js @@ -1 +1 @@ -import{j as e}from"./jsx-runtime-DtaoT6pD.js";import{R as f}from"./index-OjgoNOWw.js";import{n as t}from"./emotion-styled.browser.esm-jsqElTi7.js";import{B as h}from"./box-bq1vF_Hs.js";import{M as N}from"./modal-X_VPAfNS.js";import{F as z}from"./fade-6tFb4vlS.js";import{C as T}from"./circular_progress-_GSDl8M_.js";import{T as q}from"./typography-be8ycqzM.js";import{I as V}from"./icon_button-WreoF-Ie.js";import{C as I}from"./close_icon-Bp311Jgy.js";import{C as P}from"./collapse-qB0oYkul.js";import{A as R}from"./alert-wuCjLQa6.js";import{T as v}from"./text_field-U_MB4Wg6.js";import{B as y}from"./button-6fPk4QP_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-xK8HOd_o.js";import"./emotion-element-c39617d8.browser.esm-upVMHClS.js";import"./portal-GS-MOYPJ.js";import"./index-mQqIOHEI.js";import"./use_enhanced_effect-jDxBKzmp.js";import"./use_merged_ref-U30BPCzO.js";import"./Transition-ZSq31Zhi.js";import"./inheritsLoose-Y9jOMJLd.js";import"./emotion-react.browser.esm-8gWn0FvA.js";import"./tooltip-J9P4FoiT.js";import"./popper-YlbGwMrF.js";import"./usePopper--g5aU53a.js";import"./use_controllable-CY5ZQbVr.js";import"./flex_container-Aq3v_kS5.js";import"./close_circle_icon-XpY_jUxJ.js";import"./warning_icon-iK8dORZk.js";import"./use_id-vDNgflVU.js";import"./button_base-UbkVh8Vj.js";const E=/^(loading|fullScreen)$/,S=t(h,{shouldForwardProp:a=>!E.test(a)})(a=>({width:"100%",display:"flex",maxHeight:"calc(100% - 60px)",flexDirection:"column",margin:"var(--pv-size-base-6)",position:"relative",outline:"none",overflow:"hidden",border:0,padding:0,boxShadow:"var(--pv-shadow-dark-hight)",...a.loading&&{'[data-key="dialog.content"]':{opacity:.5},'[data-key="dialog.actions"]':{opacity:.5}},...a.size==="small"&&{maxWidth:"310px"},...a.size==="medium"&&{maxWidth:"640px"},...a.size==="large"&&{maxWidth:"1024px"},...a.fullScreen&&{height:"100%",margin:0,maxWidth:"100%",maxHeight:"none"}}),a=>{const i=a.theme.mode==="dark";let o="var(--pv-color-black)",l="var(--pv-color-white)";return i&&(o="var(--pv-color-white)",l="var(--pv-color-gray-2)"),{color:o,backgroundColor:l}}),A=t(N)({display:"flex",alignItems:"center",justifyContent:"center"}),B=t(h)({position:"absolute",inset:"0px",display:"flex",alignItems:"center",justifyContent:"center"}),s=f.forwardRef((a,i)=>{const{open:o,children:l,fullScreen:r,transitionDuration:m,disableBackdropClick:g,disableEscapeKeyDown:D,loading:n,loadingColor:_,onClose:w,"data-testid":j,...k}=a;return e.jsx(A,{ref:i,open:o,transitionDuration:m,onClose:w,"data-testid":j,disableBackdropClick:n||g,disableEscapeKeyDown:n||D,backdropProps:{invisible:r},children:e.jsx(z,{in:o,timeout:m,children:e.jsxs(S,{role:"dialog",borderRadius:r?0:4,loading:n,fullScreen:r,tabIndex:-1,component:"fieldset",disabled:n,...k,children:[l,n&&e.jsx(B,{children:e.jsx(T,{color:_})})]})})})});s.displayName="Dialog";s.defaultProps={transitionDuration:225,fullScreen:!1,disableBackdropClick:!1,disableEscapeKeyDown:!1,size:"medium",loadingColor:"secondary"};try{s.displayName="Dialog",s.__docgenInfo={description:"",displayName:"Dialog",props:{open:{defaultValue:null,description:"If `true`, the Dialog is open.",name:"open",required:!0,type:{name:"boolean"}},children:{defaultValue:null,description:"Dialog children, usually the included sub-components.",name:"children",required:!0,type:{name:"ReactNode"}},className:{defaultValue:null,description:"The className of Dialog container.",name:"className",required:!1,type:{name:"string"}},transitionDuration:{defaultValue:{value:"225"},description:"The duration for the transition, in milliseconds.",name:"transitionDuration",required:!1,type:{name:"number"}},fullScreen:{defaultValue:{value:"false"},description:"If `true`, the dialog will be full-screen.",name:"fullScreen",required:!1,type:{name:"boolean"}},disableBackdropClick:{defaultValue:{value:"false"},description:"If `true`, clicking the backdrop will not fire the `onClose` callback.",name:"disableBackdropClick",required:!1,type:{name:"boolean"}},disableEscapeKeyDown:{defaultValue:{value:"false"},description:"If `true`, hitting escape will not fire the `onClose` callback.",name:"disableEscapeKeyDown",required:!1,type:{name:"boolean"}},onClose:{defaultValue:null,description:"Callback fired when the component requests to be closed.",name:"onClose",required:!1,type:{name:"() => void"}},size:{defaultValue:{value:"medium"},description:"The size of the dialog.",name:"size",required:!1,type:{name:"enum",value:[{value:'"small"'},{value:'"medium"'},{value:'"large"'}]}},loading:{defaultValue:null,description:"If `true`, the dialog will be show CircularProgress component and disable all interactions.",name:"loading",required:!1,type:{name:"boolean"}},loadingColor:{defaultValue:{value:"secondary"},description:"The color of the CircularProgress component.",name:"loadingColor",required:!1,type:{name:"enum",value:[{value:'"primary"'},{value:'"secondary"'},{value:'"white"'}]}},"data-testid":{defaultValue:null,description:"",name:"data-testid",required:!1,type:{name:"string"}}}}}catch{}const M=t("header")({padding:"var(--pv-size-base-4) var(--pv-size-base-4) var(--pv-size-base-2)",display:"flex",flex:"0 0 auto",justifyContent:"space-between",gap:"var(--pv-size-base-2)"}),d=f.forwardRef((a,i)=>{const{children:o,onClose:l,...r}=a;return e.jsxs(M,{ref:i,"data-key":"dialog.title",...r,children:[e.jsx(q,{variant:"h4",color:"inherit",children:o}),l&&e.jsx(V,{size:"small",onClick:l,children:e.jsx(I,{})})]})});d.displayName="DialogTitle";d.defaultProps={};try{d.displayName="DialogTitle",d.__docgenInfo={description:"",displayName:"DialogTitle",props:{children:{defaultValue:null,description:"The content of the component.",name:"children",required:!1,type:{name:"ReactNode"}},className:{defaultValue:null,description:"The className of the component.",name:"className",required:!1,type:{name:"string"}},onClose:{defaultValue:null,description:"Callback fired when the component requests to be closed.",name:"onClose",required:!1,type:{name:"() => void"}}}}}catch{}const F=t(h)({flex:"1 1 auto",overflow:"hidden",display:"flex",flexDirection:"column"}),H=t("div")({padding:"0 var(--pv-size-base-4)",flex:"0 0 auto"}),K=t(P)({margin:"0 calc(var(--pv-size-base-3) * -1)"}),W=t("div")({overflowY:"auto",flex:"1 1 auto",padding:"var(--pv-size-base-3) var(--pv-size-base-4) var(--pv-size-base-6) var(--pv-size-base-4)"}),L=t(R)({margin:"var(--pv-size-base-2) 0",padding:"var(--pv-size-base-2) var(--pv-size-base-3)"}),c=f.forwardRef((a,i)=>{const{children:o,dividers:l,error:r,scrolledElementProps:m={},...g}=a;return e.jsxs(F,{ref:i,borderColor:"gray-5",borderWidth:l?1:0,borderStyle:"solid",borderPosition:"horizontal","data-key":"dialog.content",...g,children:[e.jsx(H,{children:e.jsx(K,{in:!!r,children:e.jsx(L,{variant:"wrong",disableIcon:!0,children:r})})}),e.jsx(W,{...m,children:o})]})});c.displayName="DialogContent";c.defaultProps={dividers:!0};try{c.displayName="DialogContent",c.__docgenInfo={description:"",displayName:"DialogContent",props:{children:{defaultValue:null,description:"The content of the component.",name:"children",required:!1,type:{name:"ReactNode"}},className:{defaultValue:null,description:"The className of the component.",name:"className",required:!1,type:{name:"string"}},dividers:{defaultValue:{value:"true"},description:"Display the top and bottom dividers.",name:"dividers",required:!1,type:{name:"boolean"}},error:{defaultValue:null,description:"The content of the error message.",name:"error",required:!1,type:{name:"string"}},scrolledElementProps:{defaultValue:null,description:"Props applied to the scrolled element.",name:"scrolledElementProps",required:!1,type:{name:"ClassAttributes & HTMLAttributes"}}}}}catch{}const O=t("footer")({padding:"var(--pv-size-base-3) var(--pv-size-base-4) var(--pv-size-base-4)",flex:"0 0 auto",display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"var(--pv-size-base-2)"}),p=f.forwardRef((a,i)=>{const{children:o,...l}=a;return e.jsx(O,{ref:i,"data-key":"dialog.actions",...l,children:o})});p.displayName="DialogActions";p.defaultProps={};try{p.displayName="DialogActions",p.__docgenInfo={description:"",displayName:"DialogActions",props:{children:{defaultValue:null,description:"The content of the component.",name:"children",required:!1,type:{name:"ReactNode"}},className:{defaultValue:null,description:"The className of the component.",name:"className",required:!1,type:{name:"string"}}}}}catch{}const we={title:"Components/Dialog",component:s,tags:["autodocs"],args:{children:e.jsxs(e.Fragment,{children:[e.jsx(d,{onClose:()=>{},children:"Sign in"}),e.jsxs(c,{children:[e.jsx("div",{children:e.jsx(v,{label:"Email",type:"email",id:"email"})}),e.jsx("div",{children:e.jsx(v,{label:"Password",type:"password",id:"password"})})]}),e.jsxs(p,{children:[e.jsx(y,{children:"Cancel"}),e.jsx(y,{variant:"contained",color:"secondary",children:"Send"})]})]})},argTypes:{children:{control:!1}}},u={};var b,x,C;u.parameters={...u.parameters,docs:{...(b=u.parameters)==null?void 0:b.docs,source:{originalSource:"{}",...(C=(x=u.parameters)==null?void 0:x.docs)==null?void 0:C.source}}};const je=["Playground"];export{u as Playground,je as __namedExportsOrder,we as default}; +import{j as e}from"./jsx-runtime-DtaoT6pD.js";import{R as f}from"./index-OjgoNOWw.js";import{n as t}from"./emotion-styled.browser.esm-jsqElTi7.js";import{B as h}from"./box-bq1vF_Hs.js";import{M as N}from"./modal-X_VPAfNS.js";import{F as z}from"./fade-6tFb4vlS.js";import{C as T}from"./circular_progress-JxgBeK0r.js";import{T as q}from"./typography-be8ycqzM.js";import{I as V}from"./icon_button-WreoF-Ie.js";import{C as I}from"./close_icon-Bp311Jgy.js";import{C as P}from"./collapse-qB0oYkul.js";import{A as R}from"./alert-5kz5l48o.js";import{T as v}from"./text_field-U_MB4Wg6.js";import{B as y}from"./button-6fPk4QP_.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-xK8HOd_o.js";import"./emotion-element-c39617d8.browser.esm-upVMHClS.js";import"./portal-GS-MOYPJ.js";import"./index-mQqIOHEI.js";import"./use_enhanced_effect-jDxBKzmp.js";import"./use_merged_ref-U30BPCzO.js";import"./Transition-ZSq31Zhi.js";import"./inheritsLoose-Y9jOMJLd.js";import"./emotion-react.browser.esm-8gWn0FvA.js";import"./tooltip-J9P4FoiT.js";import"./popper-YlbGwMrF.js";import"./usePopper--g5aU53a.js";import"./use_controllable-CY5ZQbVr.js";import"./flex_container-Aq3v_kS5.js";import"./close_circle_icon-XpY_jUxJ.js";import"./warning_icon-iK8dORZk.js";import"./use_id-vDNgflVU.js";import"./button_base-UbkVh8Vj.js";const E=/^(loading|fullScreen)$/,S=t(h,{shouldForwardProp:a=>!E.test(a)})(a=>({width:"100%",display:"flex",maxHeight:"calc(100% - 60px)",flexDirection:"column",margin:"var(--pv-size-base-6)",position:"relative",outline:"none",overflow:"hidden",border:0,padding:0,boxShadow:"var(--pv-shadow-dark-hight)",...a.loading&&{'[data-key="dialog.content"]':{opacity:.5},'[data-key="dialog.actions"]':{opacity:.5}},...a.size==="small"&&{maxWidth:"310px"},...a.size==="medium"&&{maxWidth:"640px"},...a.size==="large"&&{maxWidth:"1024px"},...a.fullScreen&&{height:"100%",margin:0,maxWidth:"100%",maxHeight:"none"}}),a=>{const i=a.theme.mode==="dark";let o="var(--pv-color-black)",l="var(--pv-color-white)";return i&&(o="var(--pv-color-white)",l="var(--pv-color-gray-2)"),{color:o,backgroundColor:l}}),A=t(N)({display:"flex",alignItems:"center",justifyContent:"center"}),B=t(h)({position:"absolute",inset:"0px",display:"flex",alignItems:"center",justifyContent:"center"}),s=f.forwardRef((a,i)=>{const{open:o,children:l,fullScreen:r,transitionDuration:m,disableBackdropClick:g,disableEscapeKeyDown:D,loading:n,loadingColor:_,onClose:w,"data-testid":j,...k}=a;return e.jsx(A,{ref:i,open:o,transitionDuration:m,onClose:w,"data-testid":j,disableBackdropClick:n||g,disableEscapeKeyDown:n||D,backdropProps:{invisible:r},children:e.jsx(z,{in:o,timeout:m,children:e.jsxs(S,{role:"dialog",borderRadius:r?0:4,loading:n,fullScreen:r,tabIndex:-1,component:"fieldset",disabled:n,...k,children:[l,n&&e.jsx(B,{children:e.jsx(T,{color:_})})]})})})});s.displayName="Dialog";s.defaultProps={transitionDuration:225,fullScreen:!1,disableBackdropClick:!1,disableEscapeKeyDown:!1,size:"medium",loadingColor:"secondary"};try{s.displayName="Dialog",s.__docgenInfo={description:"",displayName:"Dialog",props:{open:{defaultValue:null,description:"If `true`, the Dialog is open.",name:"open",required:!0,type:{name:"boolean"}},children:{defaultValue:null,description:"Dialog children, usually the included sub-components.",name:"children",required:!0,type:{name:"ReactNode"}},className:{defaultValue:null,description:"The className of Dialog container.",name:"className",required:!1,type:{name:"string"}},transitionDuration:{defaultValue:{value:"225"},description:"The duration for the transition, in milliseconds.",name:"transitionDuration",required:!1,type:{name:"number"}},fullScreen:{defaultValue:{value:"false"},description:"If `true`, the dialog will be full-screen.",name:"fullScreen",required:!1,type:{name:"boolean"}},disableBackdropClick:{defaultValue:{value:"false"},description:"If `true`, clicking the backdrop will not fire the `onClose` callback.",name:"disableBackdropClick",required:!1,type:{name:"boolean"}},disableEscapeKeyDown:{defaultValue:{value:"false"},description:"If `true`, hitting escape will not fire the `onClose` callback.",name:"disableEscapeKeyDown",required:!1,type:{name:"boolean"}},onClose:{defaultValue:null,description:"Callback fired when the component requests to be closed.",name:"onClose",required:!1,type:{name:"() => void"}},size:{defaultValue:{value:"medium"},description:"The size of the dialog.",name:"size",required:!1,type:{name:"enum",value:[{value:'"small"'},{value:'"medium"'},{value:'"large"'}]}},loading:{defaultValue:null,description:"If `true`, the dialog will be show CircularProgress component and disable all interactions.",name:"loading",required:!1,type:{name:"boolean"}},loadingColor:{defaultValue:{value:"secondary"},description:"The color of the CircularProgress component.",name:"loadingColor",required:!1,type:{name:"enum",value:[{value:'"primary"'},{value:'"secondary"'},{value:'"white"'}]}},"data-testid":{defaultValue:null,description:"",name:"data-testid",required:!1,type:{name:"string"}}}}}catch{}const M=t("header")({padding:"var(--pv-size-base-4) var(--pv-size-base-4) var(--pv-size-base-2)",display:"flex",flex:"0 0 auto",justifyContent:"space-between",gap:"var(--pv-size-base-2)"}),d=f.forwardRef((a,i)=>{const{children:o,onClose:l,...r}=a;return e.jsxs(M,{ref:i,"data-key":"dialog.title",...r,children:[e.jsx(q,{variant:"h4",color:"inherit",children:o}),l&&e.jsx(V,{size:"small",onClick:l,children:e.jsx(I,{})})]})});d.displayName="DialogTitle";d.defaultProps={};try{d.displayName="DialogTitle",d.__docgenInfo={description:"",displayName:"DialogTitle",props:{children:{defaultValue:null,description:"The content of the component.",name:"children",required:!1,type:{name:"ReactNode"}},className:{defaultValue:null,description:"The className of the component.",name:"className",required:!1,type:{name:"string"}},onClose:{defaultValue:null,description:"Callback fired when the component requests to be closed.",name:"onClose",required:!1,type:{name:"() => void"}}}}}catch{}const F=t(h)({flex:"1 1 auto",overflow:"hidden",display:"flex",flexDirection:"column"}),H=t("div")({padding:"0 var(--pv-size-base-4)",flex:"0 0 auto"}),K=t(P)({margin:"0 calc(var(--pv-size-base-3) * -1)"}),W=t("div")({overflowY:"auto",flex:"1 1 auto",padding:"var(--pv-size-base-3) var(--pv-size-base-4) var(--pv-size-base-6) var(--pv-size-base-4)"}),L=t(R)({margin:"var(--pv-size-base-2) 0",padding:"var(--pv-size-base-2) var(--pv-size-base-3)"}),c=f.forwardRef((a,i)=>{const{children:o,dividers:l,error:r,scrolledElementProps:m={},...g}=a;return e.jsxs(F,{ref:i,borderColor:"gray-5",borderWidth:l?1:0,borderStyle:"solid",borderPosition:"horizontal","data-key":"dialog.content",...g,children:[e.jsx(H,{children:e.jsx(K,{in:!!r,children:e.jsx(L,{variant:"wrong",disableIcon:!0,children:r})})}),e.jsx(W,{...m,children:o})]})});c.displayName="DialogContent";c.defaultProps={dividers:!0};try{c.displayName="DialogContent",c.__docgenInfo={description:"",displayName:"DialogContent",props:{children:{defaultValue:null,description:"The content of the component.",name:"children",required:!1,type:{name:"ReactNode"}},className:{defaultValue:null,description:"The className of the component.",name:"className",required:!1,type:{name:"string"}},dividers:{defaultValue:{value:"true"},description:"Display the top and bottom dividers.",name:"dividers",required:!1,type:{name:"boolean"}},error:{defaultValue:null,description:"The content of the error message.",name:"error",required:!1,type:{name:"string"}},scrolledElementProps:{defaultValue:null,description:"Props applied to the scrolled element.",name:"scrolledElementProps",required:!1,type:{name:"ClassAttributes & HTMLAttributes"}}}}}catch{}const O=t("footer")({padding:"var(--pv-size-base-3) var(--pv-size-base-4) var(--pv-size-base-4)",flex:"0 0 auto",display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"var(--pv-size-base-2)"}),p=f.forwardRef((a,i)=>{const{children:o,...l}=a;return e.jsx(O,{ref:i,"data-key":"dialog.actions",...l,children:o})});p.displayName="DialogActions";p.defaultProps={};try{p.displayName="DialogActions",p.__docgenInfo={description:"",displayName:"DialogActions",props:{children:{defaultValue:null,description:"The content of the component.",name:"children",required:!1,type:{name:"ReactNode"}},className:{defaultValue:null,description:"The className of the component.",name:"className",required:!1,type:{name:"string"}}}}}catch{}const we={title:"Components/Dialog",component:s,tags:["autodocs"],args:{children:e.jsxs(e.Fragment,{children:[e.jsx(d,{onClose:()=>{},children:"Sign in"}),e.jsxs(c,{children:[e.jsx("div",{children:e.jsx(v,{label:"Email",type:"email",id:"email"})}),e.jsx("div",{children:e.jsx(v,{label:"Password",type:"password",id:"password"})})]}),e.jsxs(p,{children:[e.jsx(y,{children:"Cancel"}),e.jsx(y,{variant:"contained",color:"secondary",children:"Send"})]})]})},argTypes:{children:{control:!1}}},u={};var b,x,C;u.parameters={...u.parameters,docs:{...(b=u.parameters)==null?void 0:b.docs,source:{originalSource:"{}",...(C=(x=u.parameters)==null?void 0:x.docs)==null?void 0:C.source}}};const je=["Playground"];export{u as Playground,je as __namedExportsOrder,we as default}; diff --git a/assets/flex-tL64lLQS.js b/assets/flex-cu_j1HuE.js similarity index 93% rename from assets/flex-tL64lLQS.js rename to assets/flex-cu_j1HuE.js index 9e5b6dc7..d7b773aa 100644 --- a/assets/flex-tL64lLQS.js +++ b/assets/flex-cu_j1HuE.js @@ -1,4 +1,4 @@ -import{j as t}from"./jsx-runtime-DtaoT6pD.js";import{M as r,C as n,A as i}from"./index-FEzJ-IFI.js";import{S as l,A as h,V as m,C as c}from"./flex.stories-QJ73QK6N.js";import{F as x,a as p}from"./flex_container-Aq3v_kS5.js";import{useMDXComponents as a}from"./index-82O-B91n.js";import"./index-OjgoNOWw.js";import"./iframe-Di3G6qoa.js";import"../sb-preview/runtime.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-xK8HOd_o.js";import"./index-mQqIOHEI.js";import"./inheritsLoose-Y9jOMJLd.js";import"./index-LnHysSno.js";import"./index-BdDYuicC.js";import"./box-bq1vF_Hs.js";import"./emotion-styled.browser.esm-jsqElTi7.js";import"./emotion-element-c39617d8.browser.esm-upVMHClS.js";function s(o){const e=Object.assign({h1:"h1",h2:"h2",p:"p",code:"code",h3:"h3"},a(),o.components);return t.jsxs(t.Fragment,{children:[t.jsx(r,{of:l}),` +import{j as t}from"./jsx-runtime-DtaoT6pD.js";import{M as r,C as n,A as i}from"./index-S9SFSHLo.js";import{S as l,A as h,V as m,C as c}from"./flex.stories-QJ73QK6N.js";import{F as x,a as p}from"./flex_container-Aq3v_kS5.js";import{useMDXComponents as a}from"./index-82O-B91n.js";import"./index-OjgoNOWw.js";import"./iframe-zHoeYuYN.js";import"../sb-preview/runtime.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-xK8HOd_o.js";import"./index-mQqIOHEI.js";import"./inheritsLoose-Y9jOMJLd.js";import"./index-LnHysSno.js";import"./index-BdDYuicC.js";import"./box-bq1vF_Hs.js";import"./emotion-styled.browser.esm-jsqElTi7.js";import"./emotion-element-c39617d8.browser.esm-upVMHClS.js";function s(o){const e=Object.assign({h1:"h1",h2:"h2",p:"p",code:"code",h3:"h3"},a(),o.components);return t.jsxs(t.Fragment,{children:[t.jsx(r,{of:l}),` `,t.jsx(e.h1,{id:"flex",children:"Flex"}),` `,t.jsx(e.h2,{id:"auto-layout",children:"Auto-layout"}),` `,t.jsx(e.p,{children:"The auto-layout feature gives equal space to all items present. When you set the width of one item, the others will automatically resize to match it."}),` diff --git a/assets/formatter-SWP5E3XI-n5-NWJeL.js b/assets/formatter-SWP5E3XI-GxE3MvpE.js similarity index 99% rename from assets/formatter-SWP5E3XI-n5-NWJeL.js rename to assets/formatter-SWP5E3XI-GxE3MvpE.js index 87c6fc0d..97268fc4 100644 --- a/assets/formatter-SWP5E3XI-n5-NWJeL.js +++ b/assets/formatter-SWP5E3XI-GxE3MvpE.js @@ -1,4 +1,4 @@ -import{_ as ea,m as pl,f as ta}from"./index-FEzJ-IFI.js";import"./iframe-Di3G6qoa.js";import"../sb-preview/runtime.js";import"./index-OjgoNOWw.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-xK8HOd_o.js";import"./index-mQqIOHEI.js";import"./inheritsLoose-Y9jOMJLd.js";import"./index-LnHysSno.js";import"./index-BdDYuicC.js";var cl=ta({"node_modules/prettier/parser-html.js"(Jr,Xr){(function(Ae){if(typeof Jr=="object"&&typeof Xr=="object")Xr.exports=Ae();else if(typeof define=="function"&&define.amd)define(Ae);else{var Yt=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};Yt.prettierPlugins=Yt.prettierPlugins||{},Yt.prettierPlugins.html=Ae()}})(function(){var Ae=(ot,Ne)=>()=>(Ne||ot((Ne={exports:{}}).exports,Ne),Ne.exports),Yt=Ae((ot,Ne)=>{var Se=function(Oe){return Oe&&Oe.Math==Math&&Oe};Ne.exports=Se(typeof globalThis=="object"&&globalThis)||Se(typeof window=="object"&&window)||Se(typeof self=="object"&&self)||Se(typeof global=="object"&&global)||function(){return this}()||Function("return this")()}),hr=Ae((ot,Ne)=>{Ne.exports=function(Se){try{return!!Se()}catch{return!0}}}),br=Ae((ot,Ne)=>{var Se=hr();Ne.exports=!Se(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})}),Hr=Ae((ot,Ne)=>{var Se=hr();Ne.exports=!Se(function(){var Oe=(function(){}).bind();return typeof Oe!="function"||Oe.hasOwnProperty("prototype")})}),gr=Ae((ot,Ne)=>{var Se=Hr(),Oe=Function.prototype.call;Ne.exports=Se?Oe.bind(Oe):function(){return Oe.apply(Oe,arguments)}}),Dn=Ae(ot=>{var Ne={}.propertyIsEnumerable,Se=Object.getOwnPropertyDescriptor,Oe=Se&&!Ne.call({1:2},1);ot.f=Oe?function(ee){var V=Se(this,ee);return!!V&&V.enumerable}:Ne}),Lr=Ae((ot,Ne)=>{Ne.exports=function(Se,Oe){return{enumerable:!(Se&1),configurable:!(Se&2),writable:!(Se&4),value:Oe}}}),Dr=Ae((ot,Ne)=>{var Se=Hr(),Oe=Function.prototype,ee=Oe.call,V=Se&&Oe.bind.bind(ee,ee);Ne.exports=Se?V:function(W){return function(){return ee.apply(W,arguments)}}}),Br=Ae((ot,Ne)=>{var Se=Dr(),Oe=Se({}.toString),ee=Se("".slice);Ne.exports=function(V){return ee(Oe(V),8,-1)}}),Zr=Ae((ot,Ne)=>{var Se=Dr(),Oe=hr(),ee=Br(),V=Object,W=Se("".split);Ne.exports=Oe(function(){return!V("z").propertyIsEnumerable(0)})?function(Z){return ee(Z)=="String"?W(Z,""):V(Z)}:V}),nn=Ae((ot,Ne)=>{Ne.exports=function(Se){return Se==null}}),qn=Ae((ot,Ne)=>{var Se=nn(),Oe=TypeError;Ne.exports=function(ee){if(Se(ee))throw Oe("Can't call method on "+ee);return ee}}),dn=Ae((ot,Ne)=>{var Se=Zr(),Oe=qn();Ne.exports=function(ee){return Se(Oe(ee))}}),Vn=Ae((ot,Ne)=>{var Se=typeof document=="object"&&document.all,Oe=typeof Se>"u"&&Se!==void 0;Ne.exports={all:Se,IS_HTMLDDA:Oe}}),dr=Ae((ot,Ne)=>{var Se=Vn(),Oe=Se.all;Ne.exports=Se.IS_HTMLDDA?function(ee){return typeof ee=="function"||ee===Oe}:function(ee){return typeof ee=="function"}}),Or=Ae((ot,Ne)=>{var Se=dr(),Oe=Vn(),ee=Oe.all;Ne.exports=Oe.IS_HTMLDDA?function(V){return typeof V=="object"?V!==null:Se(V)||V===ee}:function(V){return typeof V=="object"?V!==null:Se(V)}}),un=Ae((ot,Ne)=>{var Se=Yt(),Oe=dr(),ee=function(V){return Oe(V)?V:void 0};Ne.exports=function(V,W){return arguments.length<2?ee(Se[V]):Se[V]&&Se[V][W]}}),Un=Ae((ot,Ne)=>{var Se=Dr();Ne.exports=Se({}.isPrototypeOf)}),ii=Ae((ot,Ne)=>{var Se=un();Ne.exports=Se("navigator","userAgent")||""}),si=Ae((ot,Ne)=>{var Se=Yt(),Oe=ii(),ee=Se.process,V=Se.Deno,W=ee&&ee.versions||V&&V.version,Z=W&&W.v8,Y,ne;Z&&(Y=Z.split("."),ne=Y[0]>0&&Y[0]<4?1:+(Y[0]+Y[1])),!ne&&Oe&&(Y=Oe.match(/Edge\/(\d+)/),(!Y||Y[1]>=74)&&(Y=Oe.match(/Chrome\/(\d+)/),Y&&(ne=+Y[1]))),Ne.exports=ne}),Gn=Ae((ot,Ne)=>{var Se=si(),Oe=hr();Ne.exports=!!Object.getOwnPropertySymbols&&!Oe(function(){var ee=Symbol();return!String(ee)||!(Object(ee)instanceof Symbol)||!Symbol.sham&&Se&&Se<41})}),Jn=Ae((ot,Ne)=>{var Se=Gn();Ne.exports=Se&&!Symbol.sham&&typeof Symbol.iterator=="symbol"}),Xn=Ae((ot,Ne)=>{var Se=un(),Oe=dr(),ee=Un(),V=Jn(),W=Object;Ne.exports=V?function(Z){return typeof Z=="symbol"}:function(Z){var Y=Se("Symbol");return Oe(Y)&&ee(Y.prototype,W(Z))}}),fn=Ae((ot,Ne)=>{var Se=String;Ne.exports=function(Oe){try{return Se(Oe)}catch{return"Object"}}}),sn=Ae((ot,Ne)=>{var Se=dr(),Oe=fn(),ee=TypeError;Ne.exports=function(V){if(Se(V))return V;throw ee(Oe(V)+" is not a function")}}),mn=Ae((ot,Ne)=>{var Se=sn(),Oe=nn();Ne.exports=function(ee,V){var W=ee[V];return Oe(W)?void 0:Se(W)}}),ai=Ae((ot,Ne)=>{var Se=gr(),Oe=dr(),ee=Or(),V=TypeError;Ne.exports=function(W,Z){var Y,ne;if(Z==="string"&&Oe(Y=W.toString)&&!ee(ne=Se(Y,W))||Oe(Y=W.valueOf)&&!ee(ne=Se(Y,W))||Z!=="string"&&Oe(Y=W.toString)&&!ee(ne=Se(Y,W)))return ne;throw V("Can't convert object to primitive value")}}),oi=Ae((ot,Ne)=>{Ne.exports=!1}),hn=Ae((ot,Ne)=>{var Se=Yt(),Oe=Object.defineProperty;Ne.exports=function(ee,V){try{Oe(Se,ee,{value:V,configurable:!0,writable:!0})}catch{Se[ee]=V}return V}}),gn=Ae((ot,Ne)=>{var Se=Yt(),Oe=hn(),ee="__core-js_shared__",V=Se[ee]||Oe(ee,{});Ne.exports=V}),Wn=Ae((ot,Ne)=>{var Se=oi(),Oe=gn();(Ne.exports=function(ee,V){return Oe[ee]||(Oe[ee]=V!==void 0?V:{})})("versions",[]).push({version:"3.26.1",mode:Se?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.26.1/LICENSE",source:"https://github.com/zloirock/core-js"})}),Sn=Ae((ot,Ne)=>{var Se=qn(),Oe=Object;Ne.exports=function(ee){return Oe(Se(ee))}}),kr=Ae((ot,Ne)=>{var Se=Dr(),Oe=Sn(),ee=Se({}.hasOwnProperty);Ne.exports=Object.hasOwn||function(V,W){return ee(Oe(V),W)}}),zn=Ae((ot,Ne)=>{var Se=Dr(),Oe=0,ee=Math.random(),V=Se(1 .toString);Ne.exports=function(W){return"Symbol("+(W===void 0?"":W)+")_"+V(++Oe+ee,36)}}),$r=Ae((ot,Ne)=>{var Se=Yt(),Oe=Wn(),ee=kr(),V=zn(),W=Gn(),Z=Jn(),Y=Oe("wks"),ne=Se.Symbol,Fe=ne&&ne.for,je=Z?ne:ne&&ne.withoutSetter||V;Ne.exports=function(he){if(!ee(Y,he)||!(W||typeof Y[he]=="string")){var qe="Symbol."+he;W&&ee(ne,he)?Y[he]=ne[he]:Z&&Fe?Y[he]=Fe(qe):Y[he]=je(qe)}return Y[he]}}),li=Ae((ot,Ne)=>{var Se=gr(),Oe=Or(),ee=Xn(),V=mn(),W=ai(),Z=$r(),Y=TypeError,ne=Z("toPrimitive");Ne.exports=function(Fe,je){if(!Oe(Fe)||ee(Fe))return Fe;var he=V(Fe,ne),qe;if(he){if(je===void 0&&(je="default"),qe=Se(he,Fe,je),!Oe(qe)||ee(qe))return qe;throw Y("Can't convert object to primitive value")}return je===void 0&&(je="number"),W(Fe,je)}}),yn=Ae((ot,Ne)=>{var Se=li(),Oe=Xn();Ne.exports=function(ee){var V=Se(ee,"string");return Oe(V)?V:V+""}}),pi=Ae((ot,Ne)=>{var Se=Yt(),Oe=Or(),ee=Se.document,V=Oe(ee)&&Oe(ee.createElement);Ne.exports=function(W){return V?ee.createElement(W):{}}}),Hn=Ae((ot,Ne)=>{var Se=br(),Oe=hr(),ee=pi();Ne.exports=!Se&&!Oe(function(){return Object.defineProperty(ee("div"),"a",{get:function(){return 7}}).a!=7})}),Yn=Ae(ot=>{var Ne=br(),Se=gr(),Oe=Dn(),ee=Lr(),V=dn(),W=yn(),Z=kr(),Y=Hn(),ne=Object.getOwnPropertyDescriptor;ot.f=Ne?ne:function(Fe,je){if(Fe=V(Fe),je=W(je),Y)try{return ne(Fe,je)}catch{}if(Z(Fe,je))return ee(!Se(Oe.f,Fe,je),Fe[je])}}),ci=Ae((ot,Ne)=>{var Se=br(),Oe=hr();Ne.exports=Se&&Oe(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})}),Wr=Ae((ot,Ne)=>{var Se=Or(),Oe=String,ee=TypeError;Ne.exports=function(V){if(Se(V))return V;throw ee(Oe(V)+" is not an object")}}),en=Ae(ot=>{var Ne=br(),Se=Hn(),Oe=ci(),ee=Wr(),V=yn(),W=TypeError,Z=Object.defineProperty,Y=Object.getOwnPropertyDescriptor,ne="enumerable",Fe="configurable",je="writable";ot.f=Ne?Oe?function(he,qe,et){if(ee(he),qe=V(qe),ee(et),typeof he=="function"&&qe==="prototype"&&"value"in et&&je in et&&!et[je]){var Ze=Y(he,qe);Ze&&Ze[je]&&(he[qe]=et.value,et={configurable:Fe in et?et[Fe]:Ze[Fe],enumerable:ne in et?et[ne]:Ze[ne],writable:!1})}return Z(he,qe,et)}:Z:function(he,qe,et){if(ee(he),qe=V(qe),ee(et),Se)try{return Z(he,qe,et)}catch{}if("get"in et||"set"in et)throw W("Accessors not supported");return"value"in et&&(he[qe]=et.value),he}}),Kn=Ae((ot,Ne)=>{var Se=br(),Oe=en(),ee=Lr();Ne.exports=Se?function(V,W,Z){return Oe.f(V,W,ee(1,Z))}:function(V,W,Z){return V[W]=Z,V}}),Di=Ae((ot,Ne)=>{var Se=br(),Oe=kr(),ee=Function.prototype,V=Se&&Object.getOwnPropertyDescriptor,W=Oe(ee,"name"),Z=W&&(function(){}).name==="something",Y=W&&(!Se||Se&&V(ee,"name").configurable);Ne.exports={EXISTS:W,PROPER:Z,CONFIGURABLE:Y}}),Qn=Ae((ot,Ne)=>{var Se=Dr(),Oe=dr(),ee=gn(),V=Se(Function.toString);Oe(ee.inspectSource)||(ee.inspectSource=function(W){return V(W)}),Ne.exports=ee.inspectSource}),di=Ae((ot,Ne)=>{var Se=Yt(),Oe=dr(),ee=Se.WeakMap;Ne.exports=Oe(ee)&&/native code/.test(String(ee))}),fi=Ae((ot,Ne)=>{var Se=Wn(),Oe=zn(),ee=Se("keys");Ne.exports=function(V){return ee[V]||(ee[V]=Oe(V))}}),Zn=Ae((ot,Ne)=>{Ne.exports={}}),mi=Ae((ot,Ne)=>{var Se=di(),Oe=Yt(),ee=Or(),V=Kn(),W=kr(),Z=gn(),Y=fi(),ne=Zn(),Fe="Object already initialized",je=Oe.TypeError,he=Oe.WeakMap,qe,et,Ze,nt=function(At){return Ze(At)?et(At):qe(At,{})},rt=function(At){return function(Lt){var qt;if(!ee(Lt)||(qt=et(Lt)).type!==At)throw je("Incompatible receiver, "+At+" required");return qt}};Se||Z.state?($=Z.state||(Z.state=new he),$.get=$.get,$.has=$.has,$.set=$.set,qe=function(At,Lt){if($.has(At))throw je(Fe);return Lt.facade=At,$.set(At,Lt),Lt},et=function(At){return $.get(At)||{}},Ze=function(At){return $.has(At)}):(Ft=Y("state"),ne[Ft]=!0,qe=function(At,Lt){if(W(At,Ft))throw je(Fe);return Lt.facade=At,V(At,Ft,Lt),Lt},et=function(At){return W(At,Ft)?At[Ft]:{}},Ze=function(At){return W(At,Ft)});var $,Ft;Ne.exports={set:qe,get:et,has:Ze,enforce:nt,getterFor:rt}}),gu=Ae((ot,Ne)=>{var Se=hr(),Oe=dr(),ee=kr(),V=br(),W=Di().CONFIGURABLE,Z=Qn(),Y=mi(),ne=Y.enforce,Fe=Y.get,je=Object.defineProperty,he=V&&!Se(function(){return je(function(){},"length",{value:8}).length!==8}),qe=String(String).split("String"),et=Ne.exports=function(Ze,nt,rt){String(nt).slice(0,7)==="Symbol("&&(nt="["+String(nt).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),rt&&rt.getter&&(nt="get "+nt),rt&&rt.setter&&(nt="set "+nt),(!ee(Ze,"name")||W&&Ze.name!==nt)&&(V?je(Ze,"name",{value:nt,configurable:!0}):Ze.name=nt),he&&rt&&ee(rt,"arity")&&Ze.length!==rt.arity&&je(Ze,"length",{value:rt.arity});try{rt&&ee(rt,"constructor")&&rt.constructor?V&&je(Ze,"prototype",{writable:!1}):Ze.prototype&&(Ze.prototype=void 0)}catch{}var $=ne(Ze);return ee($,"source")||($.source=qe.join(typeof nt=="string"?nt:"")),Ze};Function.prototype.toString=et(function(){return Oe(this)&&Fe(this).source||Z(this)},"toString")}),hi=Ae((ot,Ne)=>{var Se=dr(),Oe=en(),ee=gu(),V=hn();Ne.exports=function(W,Z,Y,ne){ne||(ne={});var Fe=ne.enumerable,je=ne.name!==void 0?ne.name:Z;if(Se(Y)&&ee(Y,je,ne),ne.global)Fe?W[Z]=Y:V(Z,Y);else{try{ne.unsafe?W[Z]&&(Fe=!0):delete W[Z]}catch{}Fe?W[Z]=Y:Oe.f(W,Z,{value:Y,enumerable:!1,configurable:!ne.nonConfigurable,writable:!ne.nonWritable})}return W}}),gi=Ae((ot,Ne)=>{var Se=Math.ceil,Oe=Math.floor;Ne.exports=Math.trunc||function(ee){var V=+ee;return(V>0?Oe:Se)(V)}}),xn=Ae((ot,Ne)=>{var Se=gi();Ne.exports=function(Oe){var ee=+Oe;return ee!==ee||ee===0?0:Se(ee)}}),yi=Ae((ot,Ne)=>{var Se=xn(),Oe=Math.max,ee=Math.min;Ne.exports=function(V,W){var Z=Se(V);return Z<0?Oe(Z+W,0):ee(Z,W)}}),Ei=Ae((ot,Ne)=>{var Se=xn(),Oe=Math.min;Ne.exports=function(ee){return ee>0?Oe(Se(ee),9007199254740991):0}}),tn=Ae((ot,Ne)=>{var Se=Ei();Ne.exports=function(Oe){return Se(Oe.length)}}),Ci=Ae((ot,Ne)=>{var Se=dn(),Oe=yi(),ee=tn(),V=function(W){return function(Z,Y,ne){var Fe=Se(Z),je=ee(Fe),he=Oe(ne,je),qe;if(W&&Y!=Y){for(;je>he;)if(qe=Fe[he++],qe!=qe)return!0}else for(;je>he;he++)if((W||he in Fe)&&Fe[he]===Y)return W||he||0;return!W&&-1}};Ne.exports={includes:V(!0),indexOf:V(!1)}}),Fi=Ae((ot,Ne)=>{var Se=Dr(),Oe=kr(),ee=dn(),V=Ci().indexOf,W=Zn(),Z=Se([].push);Ne.exports=function(Y,ne){var Fe=ee(Y),je=0,he=[],qe;for(qe in Fe)!Oe(W,qe)&&Oe(Fe,qe)&&Z(he,qe);for(;ne.length>je;)Oe(Fe,qe=ne[je++])&&(~V(he,qe)||Z(he,qe));return he}}),Ai=Ae((ot,Ne)=>{Ne.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]}),vi=Ae(ot=>{var Ne=Fi(),Se=Ai(),Oe=Se.concat("length","prototype");ot.f=Object.getOwnPropertyNames||function(ee){return Ne(ee,Oe)}}),bi=Ae(ot=>{ot.f=Object.getOwnPropertySymbols}),Si=Ae((ot,Ne)=>{var Se=un(),Oe=Dr(),ee=vi(),V=bi(),W=Wr(),Z=Oe([].concat);Ne.exports=Se("Reflect","ownKeys")||function(Y){var ne=ee.f(W(Y)),Fe=V.f;return Fe?Z(ne,Fe(Y)):ne}}),xi=Ae((ot,Ne)=>{var Se=kr(),Oe=Si(),ee=Yn(),V=en();Ne.exports=function(W,Z,Y){for(var ne=Oe(Z),Fe=V.f,je=ee.f,he=0;he{var Se=hr(),Oe=dr(),ee=/#|\.prototype\./,V=function(Fe,je){var he=Z[W(Fe)];return he==ne?!0:he==Y?!1:Oe(je)?Se(je):!!je},W=V.normalize=function(Fe){return String(Fe).replace(ee,".").toLowerCase()},Z=V.data={},Y=V.NATIVE="N",ne=V.POLYFILL="P";Ne.exports=V}),an=Ae((ot,Ne)=>{var Se=Yt(),Oe=Yn().f,ee=Kn(),V=hi(),W=hn(),Z=xi(),Y=Ti();Ne.exports=function(ne,Fe){var je=ne.target,he=ne.global,qe=ne.stat,et,Ze,nt,rt,$,Ft;if(he?Ze=Se:qe?Ze=Se[je]||W(je,{}):Ze=(Se[je]||{}).prototype,Ze)for(nt in Fe){if($=Fe[nt],ne.dontCallGetSet?(Ft=Oe(Ze,nt),rt=Ft&&Ft.value):rt=Ze[nt],et=Y(he?nt:je+(qe?".":"#")+nt,ne.forced),!et&&rt!==void 0){if(typeof $==typeof rt)continue;Z($,rt)}(ne.sham||rt&&rt.sham)&&ee($,"sham",!0),V(Ze,nt,$,ne)}}}),yu=Ae(()=>{var ot=an(),Ne=Yt();ot({global:!0,forced:Ne.globalThis!==Ne},{globalThis:Ne})}),Bi=Ae(()=>{yu()}),Eu=Ae((ot,Ne)=>{var Se=Br();Ne.exports=Array.isArray||function(Oe){return Se(Oe)=="Array"}}),Cu=Ae((ot,Ne)=>{var Se=TypeError,Oe=9007199254740991;Ne.exports=function(ee){if(ee>Oe)throw Se("Maximum allowed index exceeded");return ee}}),Fu=Ae((ot,Ne)=>{var Se=Br(),Oe=Dr();Ne.exports=function(ee){if(Se(ee)==="Function")return Oe(ee)}}),Au=Ae((ot,Ne)=>{var Se=Fu(),Oe=sn(),ee=Hr(),V=Se(Se.bind);Ne.exports=function(W,Z){return Oe(W),Z===void 0?W:ee?V(W,Z):function(){return W.apply(Z,arguments)}}}),vu=Ae((ot,Ne)=>{var Se=Eu(),Oe=tn(),ee=Cu(),V=Au(),W=function(Z,Y,ne,Fe,je,he,qe,et){for(var Ze=je,nt=0,rt=qe?V(qe,et):!1,$,Ft;nt0&&Se($)?(Ft=Oe($),Ze=W(Z,Y,$,Ft,Ze,he-1)-1):(ee(Ze+1),Z[Ze]=$),Ze++),nt++;return Ze};Ne.exports=W}),wi=Ae((ot,Ne)=>{var Se=$r(),Oe=Se("toStringTag"),ee={};ee[Oe]="z",Ne.exports=String(ee)==="[object z]"}),bu=Ae((ot,Ne)=>{var Se=wi(),Oe=dr(),ee=Br(),V=$r(),W=V("toStringTag"),Z=Object,Y=ee(function(){return arguments}())=="Arguments",ne=function(Fe,je){try{return Fe[je]}catch{}};Ne.exports=Se?ee:function(Fe){var je,he,qe;return Fe===void 0?"Undefined":Fe===null?"Null":typeof(he=ne(je=Z(Fe),W))=="string"?he:Y?ee(je):(qe=ee(je))=="Object"&&Oe(je.callee)?"Arguments":qe}}),Su=Ae((ot,Ne)=>{var Se=Dr(),Oe=hr(),ee=dr(),V=bu(),W=un(),Z=Qn(),Y=function(){},ne=[],Fe=W("Reflect","construct"),je=/^\s*(?:class|function)\b/,he=Se(je.exec),qe=!je.exec(Y),et=function(nt){if(!ee(nt))return!1;try{return Fe(Y,ne,nt),!0}catch{return!1}},Ze=function(nt){if(!ee(nt))return!1;switch(V(nt)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return qe||!!he(je,Z(nt))}catch{return!0}};Ze.sham=!0,Ne.exports=!Fe||Oe(function(){var nt;return et(et.call)||!et(Object)||!et(function(){nt=!0})||nt})?Ze:et}),Ni=Ae((ot,Ne)=>{var Se=Eu(),Oe=Su(),ee=Or(),V=$r(),W=V("species"),Z=Array;Ne.exports=function(Y){var ne;return Se(Y)&&(ne=Y.constructor,Oe(ne)&&(ne===Z||Se(ne.prototype))?ne=void 0:ee(ne)&&(ne=ne[W],ne===null&&(ne=void 0))),ne===void 0?Z:ne}}),xu=Ae((ot,Ne)=>{var Se=Ni();Ne.exports=function(Oe,ee){return new(Se(Oe))(ee===0?0:ee)}}),_i=Ae(()=>{var ot=an(),Ne=vu(),Se=sn(),Oe=Sn(),ee=tn(),V=xu();ot({target:"Array",proto:!0},{flatMap:function(W){var Z=Oe(this),Y=ee(Z),ne;return Se(W),ne=V(Z,0),ne.length=Ne(ne,Z,Z,Y,0,1,W,arguments.length>1?arguments[1]:void 0),ne}})}),eu=Ae((ot,Ne)=>{Ne.exports={}}),ki=Ae((ot,Ne)=>{var Se=$r(),Oe=eu(),ee=Se("iterator"),V=Array.prototype;Ne.exports=function(W){return W!==void 0&&(Oe.Array===W||V[ee]===W)}}),Tu=Ae((ot,Ne)=>{var Se=bu(),Oe=mn(),ee=nn(),V=eu(),W=$r(),Z=W("iterator");Ne.exports=function(Y){if(!ee(Y))return Oe(Y,Z)||Oe(Y,"@@iterator")||V[Se(Y)]}}),Pi=Ae((ot,Ne)=>{var Se=gr(),Oe=sn(),ee=Wr(),V=fn(),W=Tu(),Z=TypeError;Ne.exports=function(Y,ne){var Fe=arguments.length<2?W(Y):ne;if(Oe(Fe))return ee(Se(Fe,Y));throw Z(V(Y)+" is not iterable")}}),Ii=Ae((ot,Ne)=>{var Se=gr(),Oe=Wr(),ee=mn();Ne.exports=function(V,W,Z){var Y,ne;Oe(V);try{if(Y=ee(V,"return"),!Y){if(W==="throw")throw Z;return Z}Y=Se(Y,V)}catch(Fe){ne=!0,Y=Fe}if(W==="throw")throw Z;if(ne)throw Y;return Oe(Y),Z}}),ji=Ae((ot,Ne)=>{var Se=Au(),Oe=gr(),ee=Wr(),V=fn(),W=ki(),Z=tn(),Y=Un(),ne=Pi(),Fe=Tu(),je=Ii(),he=TypeError,qe=function(Ze,nt){this.stopped=Ze,this.result=nt},et=qe.prototype;Ne.exports=function(Ze,nt,rt){var $=rt&&rt.that,Ft=!!(rt&&rt.AS_ENTRIES),At=!!(rt&&rt.IS_RECORD),Lt=!!(rt&&rt.IS_ITERATOR),qt=!!(rt&&rt.INTERRUPTED),Zt=Se(nt,$),ue,yr,Pr,zr,fr,Rr,mr,rn=function(Fr){return ue&&je(ue,"normal",Fr),new qe(!0,Fr)},wr=function(Fr){return Ft?(ee(Fr),qt?Zt(Fr[0],Fr[1],rn):Zt(Fr[0],Fr[1])):qt?Zt(Fr,rn):Zt(Fr)};if(At)ue=Ze.iterator;else if(Lt)ue=Ze;else{if(yr=Fe(Ze),!yr)throw he(V(Ze)+" is not iterable");if(W(yr)){for(Pr=0,zr=Z(Ze);zr>Pr;Pr++)if(fr=wr(Ze[Pr]),fr&&Y(et,fr))return fr;return new qe(!1)}ue=ne(Ze,yr)}for(Rr=At?Ze.next:ue.next;!(mr=Oe(Rr,ue)).done;){try{fr=wr(mr.value)}catch(Fr){je(ue,"throw",Fr)}if(typeof fr=="object"&&fr&&Y(et,fr))return fr}return new qe(!1)}}),Li=Ae((ot,Ne)=>{var Se=yn(),Oe=en(),ee=Lr();Ne.exports=function(V,W,Z){var Y=Se(W);Y in V?Oe.f(V,Y,ee(0,Z)):V[Y]=Z}}),Oi=Ae(()=>{var ot=an(),Ne=ji(),Se=Li();ot({target:"Object",stat:!0},{fromEntries:function(Oe){var ee={};return Ne(Oe,function(V,W){Se(ee,V,W)},{AS_ENTRIES:!0}),ee}})}),$i=Ae((ot,Ne)=>{var Se=["cliName","cliCategory","cliDescription"];function Oe(L,re){if(L==null)return{};var ge=ee(L,re),Ee,Pe;if(Object.getOwnPropertySymbols){var ie=Object.getOwnPropertySymbols(L);for(Pe=0;Pe=0)&&Object.prototype.propertyIsEnumerable.call(L,Ee)&&(ge[Ee]=L[Ee])}return ge}function ee(L,re){if(L==null)return{};var ge={},Ee=Object.keys(L),Pe,ie;for(ie=0;ie=0)&&(ge[Pe]=L[Pe]);return ge}Bi(),_i(),Oi();var V=Object.create,W=Object.defineProperty,Z=Object.getOwnPropertyDescriptor,Y=Object.getOwnPropertyNames,ne=Object.getPrototypeOf,Fe=Object.prototype.hasOwnProperty,je=(L,re)=>function(){return L&&(re=(0,L[Y(L)[0]])(L=0)),re},he=(L,re)=>function(){return re||(0,L[Y(L)[0]])((re={exports:{}}).exports,re),re.exports},qe=(L,re)=>{for(var ge in re)W(L,ge,{get:re[ge],enumerable:!0})},et=(L,re,ge,Ee)=>{if(re&&typeof re=="object"||typeof re=="function")for(let Pe of Y(re))!Fe.call(L,Pe)&&Pe!==ge&&W(L,Pe,{get:()=>re[Pe],enumerable:!(Ee=Z(re,Pe))||Ee.enumerable});return L},Ze=(L,re,ge)=>(ge=L!=null?V(ne(L)):{},et(re||!L||!L.__esModule?W(ge,"default",{value:L,enumerable:!0}):ge,L)),nt=L=>et(W({},"__esModule",{value:!0}),L),rt,$=je({""(){rt={env:{},argv:[]}}}),Ft=he({"node_modules/angular-html-parser/lib/compiler/src/chars.js"(L){$(),Object.defineProperty(L,"__esModule",{value:!0}),L.$EOF=0,L.$BSPACE=8,L.$TAB=9,L.$LF=10,L.$VTAB=11,L.$FF=12,L.$CR=13,L.$SPACE=32,L.$BANG=33,L.$DQ=34,L.$HASH=35,L.$$=36,L.$PERCENT=37,L.$AMPERSAND=38,L.$SQ=39,L.$LPAREN=40,L.$RPAREN=41,L.$STAR=42,L.$PLUS=43,L.$COMMA=44,L.$MINUS=45,L.$PERIOD=46,L.$SLASH=47,L.$COLON=58,L.$SEMICOLON=59,L.$LT=60,L.$EQ=61,L.$GT=62,L.$QUESTION=63,L.$0=48,L.$7=55,L.$9=57,L.$A=65,L.$E=69,L.$F=70,L.$X=88,L.$Z=90,L.$LBRACKET=91,L.$BACKSLASH=92,L.$RBRACKET=93,L.$CARET=94,L.$_=95,L.$a=97,L.$b=98,L.$e=101,L.$f=102,L.$n=110,L.$r=114,L.$t=116,L.$u=117,L.$v=118,L.$x=120,L.$z=122,L.$LBRACE=123,L.$BAR=124,L.$RBRACE=125,L.$NBSP=160,L.$PIPE=124,L.$TILDA=126,L.$AT=64,L.$BT=96;function re(Ue){return Ue>=L.$TAB&&Ue<=L.$SPACE||Ue==L.$NBSP}L.isWhitespace=re;function ge(Ue){return L.$0<=Ue&&Ue<=L.$9}L.isDigit=ge;function Ee(Ue){return Ue>=L.$a&&Ue<=L.$z||Ue>=L.$A&&Ue<=L.$Z}L.isAsciiLetter=Ee;function Pe(Ue){return Ue>=L.$a&&Ue<=L.$f||Ue>=L.$A&&Ue<=L.$F||ge(Ue)}L.isAsciiHexDigit=Pe;function ie(Ue){return Ue===L.$LF||Ue===L.$CR}L.isNewLine=ie;function de(Ue){return L.$0<=Ue&&Ue<=L.$7}L.isOctalDigit=de}}),At=he({"node_modules/angular-html-parser/lib/compiler/src/aot/static_symbol.js"(L){$(),Object.defineProperty(L,"__esModule",{value:!0});var re=class{constructor(Ee,Pe,ie){this.filePath=Ee,this.name=Pe,this.members=ie}assertNoMembers(){if(this.members.length)throw new Error(`Illegal state: symbol without members expected, but got ${JSON.stringify(this)}.`)}};L.StaticSymbol=re;var ge=class{constructor(){this.cache=new Map}get(Ee,Pe,ie){ie=ie||[];let de=ie.length?`.${ie.join(".")}`:"",Ue=`"${Ee}".${Pe}${de}`,Ge=this.cache.get(Ue);return Ge||(Ge=new re(Ee,Pe,ie),this.cache.set(Ue,Ge)),Ge}};L.StaticSymbolCache=ge}}),Lt=he({"node_modules/angular-html-parser/lib/compiler/src/util.js"(L){$(),Object.defineProperty(L,"__esModule",{value:!0});var re=/-+([a-z0-9])/g;function ge(le){return le.replace(re,function(){for(var We=arguments.length,Me=new Array(We),at=0;atde(Me,this,We))}visitStringMap(le,We){let Me={};return Object.keys(le).forEach(at=>{Me[at]=de(le[at],this,We)}),Me}visitPrimitive(le,We){return le}visitOther(le,We){return le}};L.ValueTransformer=gt,L.SyncAsync={assertSync:le=>{if(st(le))throw new Error("Illegal state: value cannot be a promise");return le},then:(le,We)=>st(le)?le.then(We):We(le),all:le=>le.some(st)?Promise.all(le):le};function ce(le){throw new Error(`Internal Error: ${le}`)}L.error=ce;function ve(le,We){let Me=Error(le);return Me[Ve]=!0,We&&(Me[He]=We),Me}L.syntaxError=ve;var Ve="ngSyntaxError",He="ngParseErrors";function Je(le){return le[Ve]}L.isSyntaxError=Je;function Qe(le){return le[He]||[]}L.getParseErrors=Qe;function yt(le){return le.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}L.escapeRegExp=yt;var _t=Object.getPrototypeOf({});function ct(le){return typeof le=="object"&&le!==null&&Object.getPrototypeOf(le)===_t}function kt(le){let We="";for(let Me=0;Me=55296&&at<=56319&&le.length>Me+1){let Jt=le.charCodeAt(Me+1);Jt>=56320&&Jt<=57343&&(Me++,at=(at-55296<<10)+Jt-56320+65536)}at<=127?We+=String.fromCharCode(at):at<=2047?We+=String.fromCharCode(at>>6&31|192,at&63|128):at<=65535?We+=String.fromCharCode(at>>12|224,at>>6&63|128,at&63|128):at<=2097151&&(We+=String.fromCharCode(at>>18&7|240,at>>12&63|128,at>>6&63|128,at&63|128))}return We}L.utf8Encode=kt;function $t(le){if(typeof le=="string")return le;if(le instanceof Array)return"["+le.map($t).join(", ")+"]";if(le==null)return""+le;if(le.overriddenName)return`${le.overriddenName}`;if(le.name)return`${le.name}`;if(!le.toString)return"object";let We=le.toString();if(We==null)return""+We;let Me=We.indexOf(` +import{_ as ea,m as pl,f as ta}from"./index-S9SFSHLo.js";import"./iframe-zHoeYuYN.js";import"../sb-preview/runtime.js";import"./index-OjgoNOWw.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-xK8HOd_o.js";import"./index-mQqIOHEI.js";import"./inheritsLoose-Y9jOMJLd.js";import"./index-LnHysSno.js";import"./index-BdDYuicC.js";var cl=ta({"node_modules/prettier/parser-html.js"(Jr,Xr){(function(Ae){if(typeof Jr=="object"&&typeof Xr=="object")Xr.exports=Ae();else if(typeof define=="function"&&define.amd)define(Ae);else{var Yt=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};Yt.prettierPlugins=Yt.prettierPlugins||{},Yt.prettierPlugins.html=Ae()}})(function(){var Ae=(ot,Ne)=>()=>(Ne||ot((Ne={exports:{}}).exports,Ne),Ne.exports),Yt=Ae((ot,Ne)=>{var Se=function(Oe){return Oe&&Oe.Math==Math&&Oe};Ne.exports=Se(typeof globalThis=="object"&&globalThis)||Se(typeof window=="object"&&window)||Se(typeof self=="object"&&self)||Se(typeof global=="object"&&global)||function(){return this}()||Function("return this")()}),hr=Ae((ot,Ne)=>{Ne.exports=function(Se){try{return!!Se()}catch{return!0}}}),br=Ae((ot,Ne)=>{var Se=hr();Ne.exports=!Se(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})}),Hr=Ae((ot,Ne)=>{var Se=hr();Ne.exports=!Se(function(){var Oe=(function(){}).bind();return typeof Oe!="function"||Oe.hasOwnProperty("prototype")})}),gr=Ae((ot,Ne)=>{var Se=Hr(),Oe=Function.prototype.call;Ne.exports=Se?Oe.bind(Oe):function(){return Oe.apply(Oe,arguments)}}),Dn=Ae(ot=>{var Ne={}.propertyIsEnumerable,Se=Object.getOwnPropertyDescriptor,Oe=Se&&!Ne.call({1:2},1);ot.f=Oe?function(ee){var V=Se(this,ee);return!!V&&V.enumerable}:Ne}),Lr=Ae((ot,Ne)=>{Ne.exports=function(Se,Oe){return{enumerable:!(Se&1),configurable:!(Se&2),writable:!(Se&4),value:Oe}}}),Dr=Ae((ot,Ne)=>{var Se=Hr(),Oe=Function.prototype,ee=Oe.call,V=Se&&Oe.bind.bind(ee,ee);Ne.exports=Se?V:function(W){return function(){return ee.apply(W,arguments)}}}),Br=Ae((ot,Ne)=>{var Se=Dr(),Oe=Se({}.toString),ee=Se("".slice);Ne.exports=function(V){return ee(Oe(V),8,-1)}}),Zr=Ae((ot,Ne)=>{var Se=Dr(),Oe=hr(),ee=Br(),V=Object,W=Se("".split);Ne.exports=Oe(function(){return!V("z").propertyIsEnumerable(0)})?function(Z){return ee(Z)=="String"?W(Z,""):V(Z)}:V}),nn=Ae((ot,Ne)=>{Ne.exports=function(Se){return Se==null}}),qn=Ae((ot,Ne)=>{var Se=nn(),Oe=TypeError;Ne.exports=function(ee){if(Se(ee))throw Oe("Can't call method on "+ee);return ee}}),dn=Ae((ot,Ne)=>{var Se=Zr(),Oe=qn();Ne.exports=function(ee){return Se(Oe(ee))}}),Vn=Ae((ot,Ne)=>{var Se=typeof document=="object"&&document.all,Oe=typeof Se>"u"&&Se!==void 0;Ne.exports={all:Se,IS_HTMLDDA:Oe}}),dr=Ae((ot,Ne)=>{var Se=Vn(),Oe=Se.all;Ne.exports=Se.IS_HTMLDDA?function(ee){return typeof ee=="function"||ee===Oe}:function(ee){return typeof ee=="function"}}),Or=Ae((ot,Ne)=>{var Se=dr(),Oe=Vn(),ee=Oe.all;Ne.exports=Oe.IS_HTMLDDA?function(V){return typeof V=="object"?V!==null:Se(V)||V===ee}:function(V){return typeof V=="object"?V!==null:Se(V)}}),un=Ae((ot,Ne)=>{var Se=Yt(),Oe=dr(),ee=function(V){return Oe(V)?V:void 0};Ne.exports=function(V,W){return arguments.length<2?ee(Se[V]):Se[V]&&Se[V][W]}}),Un=Ae((ot,Ne)=>{var Se=Dr();Ne.exports=Se({}.isPrototypeOf)}),ii=Ae((ot,Ne)=>{var Se=un();Ne.exports=Se("navigator","userAgent")||""}),si=Ae((ot,Ne)=>{var Se=Yt(),Oe=ii(),ee=Se.process,V=Se.Deno,W=ee&&ee.versions||V&&V.version,Z=W&&W.v8,Y,ne;Z&&(Y=Z.split("."),ne=Y[0]>0&&Y[0]<4?1:+(Y[0]+Y[1])),!ne&&Oe&&(Y=Oe.match(/Edge\/(\d+)/),(!Y||Y[1]>=74)&&(Y=Oe.match(/Chrome\/(\d+)/),Y&&(ne=+Y[1]))),Ne.exports=ne}),Gn=Ae((ot,Ne)=>{var Se=si(),Oe=hr();Ne.exports=!!Object.getOwnPropertySymbols&&!Oe(function(){var ee=Symbol();return!String(ee)||!(Object(ee)instanceof Symbol)||!Symbol.sham&&Se&&Se<41})}),Jn=Ae((ot,Ne)=>{var Se=Gn();Ne.exports=Se&&!Symbol.sham&&typeof Symbol.iterator=="symbol"}),Xn=Ae((ot,Ne)=>{var Se=un(),Oe=dr(),ee=Un(),V=Jn(),W=Object;Ne.exports=V?function(Z){return typeof Z=="symbol"}:function(Z){var Y=Se("Symbol");return Oe(Y)&&ee(Y.prototype,W(Z))}}),fn=Ae((ot,Ne)=>{var Se=String;Ne.exports=function(Oe){try{return Se(Oe)}catch{return"Object"}}}),sn=Ae((ot,Ne)=>{var Se=dr(),Oe=fn(),ee=TypeError;Ne.exports=function(V){if(Se(V))return V;throw ee(Oe(V)+" is not a function")}}),mn=Ae((ot,Ne)=>{var Se=sn(),Oe=nn();Ne.exports=function(ee,V){var W=ee[V];return Oe(W)?void 0:Se(W)}}),ai=Ae((ot,Ne)=>{var Se=gr(),Oe=dr(),ee=Or(),V=TypeError;Ne.exports=function(W,Z){var Y,ne;if(Z==="string"&&Oe(Y=W.toString)&&!ee(ne=Se(Y,W))||Oe(Y=W.valueOf)&&!ee(ne=Se(Y,W))||Z!=="string"&&Oe(Y=W.toString)&&!ee(ne=Se(Y,W)))return ne;throw V("Can't convert object to primitive value")}}),oi=Ae((ot,Ne)=>{Ne.exports=!1}),hn=Ae((ot,Ne)=>{var Se=Yt(),Oe=Object.defineProperty;Ne.exports=function(ee,V){try{Oe(Se,ee,{value:V,configurable:!0,writable:!0})}catch{Se[ee]=V}return V}}),gn=Ae((ot,Ne)=>{var Se=Yt(),Oe=hn(),ee="__core-js_shared__",V=Se[ee]||Oe(ee,{});Ne.exports=V}),Wn=Ae((ot,Ne)=>{var Se=oi(),Oe=gn();(Ne.exports=function(ee,V){return Oe[ee]||(Oe[ee]=V!==void 0?V:{})})("versions",[]).push({version:"3.26.1",mode:Se?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.26.1/LICENSE",source:"https://github.com/zloirock/core-js"})}),Sn=Ae((ot,Ne)=>{var Se=qn(),Oe=Object;Ne.exports=function(ee){return Oe(Se(ee))}}),kr=Ae((ot,Ne)=>{var Se=Dr(),Oe=Sn(),ee=Se({}.hasOwnProperty);Ne.exports=Object.hasOwn||function(V,W){return ee(Oe(V),W)}}),zn=Ae((ot,Ne)=>{var Se=Dr(),Oe=0,ee=Math.random(),V=Se(1 .toString);Ne.exports=function(W){return"Symbol("+(W===void 0?"":W)+")_"+V(++Oe+ee,36)}}),$r=Ae((ot,Ne)=>{var Se=Yt(),Oe=Wn(),ee=kr(),V=zn(),W=Gn(),Z=Jn(),Y=Oe("wks"),ne=Se.Symbol,Fe=ne&&ne.for,je=Z?ne:ne&&ne.withoutSetter||V;Ne.exports=function(he){if(!ee(Y,he)||!(W||typeof Y[he]=="string")){var qe="Symbol."+he;W&&ee(ne,he)?Y[he]=ne[he]:Z&&Fe?Y[he]=Fe(qe):Y[he]=je(qe)}return Y[he]}}),li=Ae((ot,Ne)=>{var Se=gr(),Oe=Or(),ee=Xn(),V=mn(),W=ai(),Z=$r(),Y=TypeError,ne=Z("toPrimitive");Ne.exports=function(Fe,je){if(!Oe(Fe)||ee(Fe))return Fe;var he=V(Fe,ne),qe;if(he){if(je===void 0&&(je="default"),qe=Se(he,Fe,je),!Oe(qe)||ee(qe))return qe;throw Y("Can't convert object to primitive value")}return je===void 0&&(je="number"),W(Fe,je)}}),yn=Ae((ot,Ne)=>{var Se=li(),Oe=Xn();Ne.exports=function(ee){var V=Se(ee,"string");return Oe(V)?V:V+""}}),pi=Ae((ot,Ne)=>{var Se=Yt(),Oe=Or(),ee=Se.document,V=Oe(ee)&&Oe(ee.createElement);Ne.exports=function(W){return V?ee.createElement(W):{}}}),Hn=Ae((ot,Ne)=>{var Se=br(),Oe=hr(),ee=pi();Ne.exports=!Se&&!Oe(function(){return Object.defineProperty(ee("div"),"a",{get:function(){return 7}}).a!=7})}),Yn=Ae(ot=>{var Ne=br(),Se=gr(),Oe=Dn(),ee=Lr(),V=dn(),W=yn(),Z=kr(),Y=Hn(),ne=Object.getOwnPropertyDescriptor;ot.f=Ne?ne:function(Fe,je){if(Fe=V(Fe),je=W(je),Y)try{return ne(Fe,je)}catch{}if(Z(Fe,je))return ee(!Se(Oe.f,Fe,je),Fe[je])}}),ci=Ae((ot,Ne)=>{var Se=br(),Oe=hr();Ne.exports=Se&&Oe(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})}),Wr=Ae((ot,Ne)=>{var Se=Or(),Oe=String,ee=TypeError;Ne.exports=function(V){if(Se(V))return V;throw ee(Oe(V)+" is not an object")}}),en=Ae(ot=>{var Ne=br(),Se=Hn(),Oe=ci(),ee=Wr(),V=yn(),W=TypeError,Z=Object.defineProperty,Y=Object.getOwnPropertyDescriptor,ne="enumerable",Fe="configurable",je="writable";ot.f=Ne?Oe?function(he,qe,et){if(ee(he),qe=V(qe),ee(et),typeof he=="function"&&qe==="prototype"&&"value"in et&&je in et&&!et[je]){var Ze=Y(he,qe);Ze&&Ze[je]&&(he[qe]=et.value,et={configurable:Fe in et?et[Fe]:Ze[Fe],enumerable:ne in et?et[ne]:Ze[ne],writable:!1})}return Z(he,qe,et)}:Z:function(he,qe,et){if(ee(he),qe=V(qe),ee(et),Se)try{return Z(he,qe,et)}catch{}if("get"in et||"set"in et)throw W("Accessors not supported");return"value"in et&&(he[qe]=et.value),he}}),Kn=Ae((ot,Ne)=>{var Se=br(),Oe=en(),ee=Lr();Ne.exports=Se?function(V,W,Z){return Oe.f(V,W,ee(1,Z))}:function(V,W,Z){return V[W]=Z,V}}),Di=Ae((ot,Ne)=>{var Se=br(),Oe=kr(),ee=Function.prototype,V=Se&&Object.getOwnPropertyDescriptor,W=Oe(ee,"name"),Z=W&&(function(){}).name==="something",Y=W&&(!Se||Se&&V(ee,"name").configurable);Ne.exports={EXISTS:W,PROPER:Z,CONFIGURABLE:Y}}),Qn=Ae((ot,Ne)=>{var Se=Dr(),Oe=dr(),ee=gn(),V=Se(Function.toString);Oe(ee.inspectSource)||(ee.inspectSource=function(W){return V(W)}),Ne.exports=ee.inspectSource}),di=Ae((ot,Ne)=>{var Se=Yt(),Oe=dr(),ee=Se.WeakMap;Ne.exports=Oe(ee)&&/native code/.test(String(ee))}),fi=Ae((ot,Ne)=>{var Se=Wn(),Oe=zn(),ee=Se("keys");Ne.exports=function(V){return ee[V]||(ee[V]=Oe(V))}}),Zn=Ae((ot,Ne)=>{Ne.exports={}}),mi=Ae((ot,Ne)=>{var Se=di(),Oe=Yt(),ee=Or(),V=Kn(),W=kr(),Z=gn(),Y=fi(),ne=Zn(),Fe="Object already initialized",je=Oe.TypeError,he=Oe.WeakMap,qe,et,Ze,nt=function(At){return Ze(At)?et(At):qe(At,{})},rt=function(At){return function(Lt){var qt;if(!ee(Lt)||(qt=et(Lt)).type!==At)throw je("Incompatible receiver, "+At+" required");return qt}};Se||Z.state?($=Z.state||(Z.state=new he),$.get=$.get,$.has=$.has,$.set=$.set,qe=function(At,Lt){if($.has(At))throw je(Fe);return Lt.facade=At,$.set(At,Lt),Lt},et=function(At){return $.get(At)||{}},Ze=function(At){return $.has(At)}):(Ft=Y("state"),ne[Ft]=!0,qe=function(At,Lt){if(W(At,Ft))throw je(Fe);return Lt.facade=At,V(At,Ft,Lt),Lt},et=function(At){return W(At,Ft)?At[Ft]:{}},Ze=function(At){return W(At,Ft)});var $,Ft;Ne.exports={set:qe,get:et,has:Ze,enforce:nt,getterFor:rt}}),gu=Ae((ot,Ne)=>{var Se=hr(),Oe=dr(),ee=kr(),V=br(),W=Di().CONFIGURABLE,Z=Qn(),Y=mi(),ne=Y.enforce,Fe=Y.get,je=Object.defineProperty,he=V&&!Se(function(){return je(function(){},"length",{value:8}).length!==8}),qe=String(String).split("String"),et=Ne.exports=function(Ze,nt,rt){String(nt).slice(0,7)==="Symbol("&&(nt="["+String(nt).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),rt&&rt.getter&&(nt="get "+nt),rt&&rt.setter&&(nt="set "+nt),(!ee(Ze,"name")||W&&Ze.name!==nt)&&(V?je(Ze,"name",{value:nt,configurable:!0}):Ze.name=nt),he&&rt&&ee(rt,"arity")&&Ze.length!==rt.arity&&je(Ze,"length",{value:rt.arity});try{rt&&ee(rt,"constructor")&&rt.constructor?V&&je(Ze,"prototype",{writable:!1}):Ze.prototype&&(Ze.prototype=void 0)}catch{}var $=ne(Ze);return ee($,"source")||($.source=qe.join(typeof nt=="string"?nt:"")),Ze};Function.prototype.toString=et(function(){return Oe(this)&&Fe(this).source||Z(this)},"toString")}),hi=Ae((ot,Ne)=>{var Se=dr(),Oe=en(),ee=gu(),V=hn();Ne.exports=function(W,Z,Y,ne){ne||(ne={});var Fe=ne.enumerable,je=ne.name!==void 0?ne.name:Z;if(Se(Y)&&ee(Y,je,ne),ne.global)Fe?W[Z]=Y:V(Z,Y);else{try{ne.unsafe?W[Z]&&(Fe=!0):delete W[Z]}catch{}Fe?W[Z]=Y:Oe.f(W,Z,{value:Y,enumerable:!1,configurable:!ne.nonConfigurable,writable:!ne.nonWritable})}return W}}),gi=Ae((ot,Ne)=>{var Se=Math.ceil,Oe=Math.floor;Ne.exports=Math.trunc||function(ee){var V=+ee;return(V>0?Oe:Se)(V)}}),xn=Ae((ot,Ne)=>{var Se=gi();Ne.exports=function(Oe){var ee=+Oe;return ee!==ee||ee===0?0:Se(ee)}}),yi=Ae((ot,Ne)=>{var Se=xn(),Oe=Math.max,ee=Math.min;Ne.exports=function(V,W){var Z=Se(V);return Z<0?Oe(Z+W,0):ee(Z,W)}}),Ei=Ae((ot,Ne)=>{var Se=xn(),Oe=Math.min;Ne.exports=function(ee){return ee>0?Oe(Se(ee),9007199254740991):0}}),tn=Ae((ot,Ne)=>{var Se=Ei();Ne.exports=function(Oe){return Se(Oe.length)}}),Ci=Ae((ot,Ne)=>{var Se=dn(),Oe=yi(),ee=tn(),V=function(W){return function(Z,Y,ne){var Fe=Se(Z),je=ee(Fe),he=Oe(ne,je),qe;if(W&&Y!=Y){for(;je>he;)if(qe=Fe[he++],qe!=qe)return!0}else for(;je>he;he++)if((W||he in Fe)&&Fe[he]===Y)return W||he||0;return!W&&-1}};Ne.exports={includes:V(!0),indexOf:V(!1)}}),Fi=Ae((ot,Ne)=>{var Se=Dr(),Oe=kr(),ee=dn(),V=Ci().indexOf,W=Zn(),Z=Se([].push);Ne.exports=function(Y,ne){var Fe=ee(Y),je=0,he=[],qe;for(qe in Fe)!Oe(W,qe)&&Oe(Fe,qe)&&Z(he,qe);for(;ne.length>je;)Oe(Fe,qe=ne[je++])&&(~V(he,qe)||Z(he,qe));return he}}),Ai=Ae((ot,Ne)=>{Ne.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]}),vi=Ae(ot=>{var Ne=Fi(),Se=Ai(),Oe=Se.concat("length","prototype");ot.f=Object.getOwnPropertyNames||function(ee){return Ne(ee,Oe)}}),bi=Ae(ot=>{ot.f=Object.getOwnPropertySymbols}),Si=Ae((ot,Ne)=>{var Se=un(),Oe=Dr(),ee=vi(),V=bi(),W=Wr(),Z=Oe([].concat);Ne.exports=Se("Reflect","ownKeys")||function(Y){var ne=ee.f(W(Y)),Fe=V.f;return Fe?Z(ne,Fe(Y)):ne}}),xi=Ae((ot,Ne)=>{var Se=kr(),Oe=Si(),ee=Yn(),V=en();Ne.exports=function(W,Z,Y){for(var ne=Oe(Z),Fe=V.f,je=ee.f,he=0;he{var Se=hr(),Oe=dr(),ee=/#|\.prototype\./,V=function(Fe,je){var he=Z[W(Fe)];return he==ne?!0:he==Y?!1:Oe(je)?Se(je):!!je},W=V.normalize=function(Fe){return String(Fe).replace(ee,".").toLowerCase()},Z=V.data={},Y=V.NATIVE="N",ne=V.POLYFILL="P";Ne.exports=V}),an=Ae((ot,Ne)=>{var Se=Yt(),Oe=Yn().f,ee=Kn(),V=hi(),W=hn(),Z=xi(),Y=Ti();Ne.exports=function(ne,Fe){var je=ne.target,he=ne.global,qe=ne.stat,et,Ze,nt,rt,$,Ft;if(he?Ze=Se:qe?Ze=Se[je]||W(je,{}):Ze=(Se[je]||{}).prototype,Ze)for(nt in Fe){if($=Fe[nt],ne.dontCallGetSet?(Ft=Oe(Ze,nt),rt=Ft&&Ft.value):rt=Ze[nt],et=Y(he?nt:je+(qe?".":"#")+nt,ne.forced),!et&&rt!==void 0){if(typeof $==typeof rt)continue;Z($,rt)}(ne.sham||rt&&rt.sham)&&ee($,"sham",!0),V(Ze,nt,$,ne)}}}),yu=Ae(()=>{var ot=an(),Ne=Yt();ot({global:!0,forced:Ne.globalThis!==Ne},{globalThis:Ne})}),Bi=Ae(()=>{yu()}),Eu=Ae((ot,Ne)=>{var Se=Br();Ne.exports=Array.isArray||function(Oe){return Se(Oe)=="Array"}}),Cu=Ae((ot,Ne)=>{var Se=TypeError,Oe=9007199254740991;Ne.exports=function(ee){if(ee>Oe)throw Se("Maximum allowed index exceeded");return ee}}),Fu=Ae((ot,Ne)=>{var Se=Br(),Oe=Dr();Ne.exports=function(ee){if(Se(ee)==="Function")return Oe(ee)}}),Au=Ae((ot,Ne)=>{var Se=Fu(),Oe=sn(),ee=Hr(),V=Se(Se.bind);Ne.exports=function(W,Z){return Oe(W),Z===void 0?W:ee?V(W,Z):function(){return W.apply(Z,arguments)}}}),vu=Ae((ot,Ne)=>{var Se=Eu(),Oe=tn(),ee=Cu(),V=Au(),W=function(Z,Y,ne,Fe,je,he,qe,et){for(var Ze=je,nt=0,rt=qe?V(qe,et):!1,$,Ft;nt0&&Se($)?(Ft=Oe($),Ze=W(Z,Y,$,Ft,Ze,he-1)-1):(ee(Ze+1),Z[Ze]=$),Ze++),nt++;return Ze};Ne.exports=W}),wi=Ae((ot,Ne)=>{var Se=$r(),Oe=Se("toStringTag"),ee={};ee[Oe]="z",Ne.exports=String(ee)==="[object z]"}),bu=Ae((ot,Ne)=>{var Se=wi(),Oe=dr(),ee=Br(),V=$r(),W=V("toStringTag"),Z=Object,Y=ee(function(){return arguments}())=="Arguments",ne=function(Fe,je){try{return Fe[je]}catch{}};Ne.exports=Se?ee:function(Fe){var je,he,qe;return Fe===void 0?"Undefined":Fe===null?"Null":typeof(he=ne(je=Z(Fe),W))=="string"?he:Y?ee(je):(qe=ee(je))=="Object"&&Oe(je.callee)?"Arguments":qe}}),Su=Ae((ot,Ne)=>{var Se=Dr(),Oe=hr(),ee=dr(),V=bu(),W=un(),Z=Qn(),Y=function(){},ne=[],Fe=W("Reflect","construct"),je=/^\s*(?:class|function)\b/,he=Se(je.exec),qe=!je.exec(Y),et=function(nt){if(!ee(nt))return!1;try{return Fe(Y,ne,nt),!0}catch{return!1}},Ze=function(nt){if(!ee(nt))return!1;switch(V(nt)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return qe||!!he(je,Z(nt))}catch{return!0}};Ze.sham=!0,Ne.exports=!Fe||Oe(function(){var nt;return et(et.call)||!et(Object)||!et(function(){nt=!0})||nt})?Ze:et}),Ni=Ae((ot,Ne)=>{var Se=Eu(),Oe=Su(),ee=Or(),V=$r(),W=V("species"),Z=Array;Ne.exports=function(Y){var ne;return Se(Y)&&(ne=Y.constructor,Oe(ne)&&(ne===Z||Se(ne.prototype))?ne=void 0:ee(ne)&&(ne=ne[W],ne===null&&(ne=void 0))),ne===void 0?Z:ne}}),xu=Ae((ot,Ne)=>{var Se=Ni();Ne.exports=function(Oe,ee){return new(Se(Oe))(ee===0?0:ee)}}),_i=Ae(()=>{var ot=an(),Ne=vu(),Se=sn(),Oe=Sn(),ee=tn(),V=xu();ot({target:"Array",proto:!0},{flatMap:function(W){var Z=Oe(this),Y=ee(Z),ne;return Se(W),ne=V(Z,0),ne.length=Ne(ne,Z,Z,Y,0,1,W,arguments.length>1?arguments[1]:void 0),ne}})}),eu=Ae((ot,Ne)=>{Ne.exports={}}),ki=Ae((ot,Ne)=>{var Se=$r(),Oe=eu(),ee=Se("iterator"),V=Array.prototype;Ne.exports=function(W){return W!==void 0&&(Oe.Array===W||V[ee]===W)}}),Tu=Ae((ot,Ne)=>{var Se=bu(),Oe=mn(),ee=nn(),V=eu(),W=$r(),Z=W("iterator");Ne.exports=function(Y){if(!ee(Y))return Oe(Y,Z)||Oe(Y,"@@iterator")||V[Se(Y)]}}),Pi=Ae((ot,Ne)=>{var Se=gr(),Oe=sn(),ee=Wr(),V=fn(),W=Tu(),Z=TypeError;Ne.exports=function(Y,ne){var Fe=arguments.length<2?W(Y):ne;if(Oe(Fe))return ee(Se(Fe,Y));throw Z(V(Y)+" is not iterable")}}),Ii=Ae((ot,Ne)=>{var Se=gr(),Oe=Wr(),ee=mn();Ne.exports=function(V,W,Z){var Y,ne;Oe(V);try{if(Y=ee(V,"return"),!Y){if(W==="throw")throw Z;return Z}Y=Se(Y,V)}catch(Fe){ne=!0,Y=Fe}if(W==="throw")throw Z;if(ne)throw Y;return Oe(Y),Z}}),ji=Ae((ot,Ne)=>{var Se=Au(),Oe=gr(),ee=Wr(),V=fn(),W=ki(),Z=tn(),Y=Un(),ne=Pi(),Fe=Tu(),je=Ii(),he=TypeError,qe=function(Ze,nt){this.stopped=Ze,this.result=nt},et=qe.prototype;Ne.exports=function(Ze,nt,rt){var $=rt&&rt.that,Ft=!!(rt&&rt.AS_ENTRIES),At=!!(rt&&rt.IS_RECORD),Lt=!!(rt&&rt.IS_ITERATOR),qt=!!(rt&&rt.INTERRUPTED),Zt=Se(nt,$),ue,yr,Pr,zr,fr,Rr,mr,rn=function(Fr){return ue&&je(ue,"normal",Fr),new qe(!0,Fr)},wr=function(Fr){return Ft?(ee(Fr),qt?Zt(Fr[0],Fr[1],rn):Zt(Fr[0],Fr[1])):qt?Zt(Fr,rn):Zt(Fr)};if(At)ue=Ze.iterator;else if(Lt)ue=Ze;else{if(yr=Fe(Ze),!yr)throw he(V(Ze)+" is not iterable");if(W(yr)){for(Pr=0,zr=Z(Ze);zr>Pr;Pr++)if(fr=wr(Ze[Pr]),fr&&Y(et,fr))return fr;return new qe(!1)}ue=ne(Ze,yr)}for(Rr=At?Ze.next:ue.next;!(mr=Oe(Rr,ue)).done;){try{fr=wr(mr.value)}catch(Fr){je(ue,"throw",Fr)}if(typeof fr=="object"&&fr&&Y(et,fr))return fr}return new qe(!1)}}),Li=Ae((ot,Ne)=>{var Se=yn(),Oe=en(),ee=Lr();Ne.exports=function(V,W,Z){var Y=Se(W);Y in V?Oe.f(V,Y,ee(0,Z)):V[Y]=Z}}),Oi=Ae(()=>{var ot=an(),Ne=ji(),Se=Li();ot({target:"Object",stat:!0},{fromEntries:function(Oe){var ee={};return Ne(Oe,function(V,W){Se(ee,V,W)},{AS_ENTRIES:!0}),ee}})}),$i=Ae((ot,Ne)=>{var Se=["cliName","cliCategory","cliDescription"];function Oe(L,re){if(L==null)return{};var ge=ee(L,re),Ee,Pe;if(Object.getOwnPropertySymbols){var ie=Object.getOwnPropertySymbols(L);for(Pe=0;Pe=0)&&Object.prototype.propertyIsEnumerable.call(L,Ee)&&(ge[Ee]=L[Ee])}return ge}function ee(L,re){if(L==null)return{};var ge={},Ee=Object.keys(L),Pe,ie;for(ie=0;ie=0)&&(ge[Pe]=L[Pe]);return ge}Bi(),_i(),Oi();var V=Object.create,W=Object.defineProperty,Z=Object.getOwnPropertyDescriptor,Y=Object.getOwnPropertyNames,ne=Object.getPrototypeOf,Fe=Object.prototype.hasOwnProperty,je=(L,re)=>function(){return L&&(re=(0,L[Y(L)[0]])(L=0)),re},he=(L,re)=>function(){return re||(0,L[Y(L)[0]])((re={exports:{}}).exports,re),re.exports},qe=(L,re)=>{for(var ge in re)W(L,ge,{get:re[ge],enumerable:!0})},et=(L,re,ge,Ee)=>{if(re&&typeof re=="object"||typeof re=="function")for(let Pe of Y(re))!Fe.call(L,Pe)&&Pe!==ge&&W(L,Pe,{get:()=>re[Pe],enumerable:!(Ee=Z(re,Pe))||Ee.enumerable});return L},Ze=(L,re,ge)=>(ge=L!=null?V(ne(L)):{},et(re||!L||!L.__esModule?W(ge,"default",{value:L,enumerable:!0}):ge,L)),nt=L=>et(W({},"__esModule",{value:!0}),L),rt,$=je({""(){rt={env:{},argv:[]}}}),Ft=he({"node_modules/angular-html-parser/lib/compiler/src/chars.js"(L){$(),Object.defineProperty(L,"__esModule",{value:!0}),L.$EOF=0,L.$BSPACE=8,L.$TAB=9,L.$LF=10,L.$VTAB=11,L.$FF=12,L.$CR=13,L.$SPACE=32,L.$BANG=33,L.$DQ=34,L.$HASH=35,L.$$=36,L.$PERCENT=37,L.$AMPERSAND=38,L.$SQ=39,L.$LPAREN=40,L.$RPAREN=41,L.$STAR=42,L.$PLUS=43,L.$COMMA=44,L.$MINUS=45,L.$PERIOD=46,L.$SLASH=47,L.$COLON=58,L.$SEMICOLON=59,L.$LT=60,L.$EQ=61,L.$GT=62,L.$QUESTION=63,L.$0=48,L.$7=55,L.$9=57,L.$A=65,L.$E=69,L.$F=70,L.$X=88,L.$Z=90,L.$LBRACKET=91,L.$BACKSLASH=92,L.$RBRACKET=93,L.$CARET=94,L.$_=95,L.$a=97,L.$b=98,L.$e=101,L.$f=102,L.$n=110,L.$r=114,L.$t=116,L.$u=117,L.$v=118,L.$x=120,L.$z=122,L.$LBRACE=123,L.$BAR=124,L.$RBRACE=125,L.$NBSP=160,L.$PIPE=124,L.$TILDA=126,L.$AT=64,L.$BT=96;function re(Ue){return Ue>=L.$TAB&&Ue<=L.$SPACE||Ue==L.$NBSP}L.isWhitespace=re;function ge(Ue){return L.$0<=Ue&&Ue<=L.$9}L.isDigit=ge;function Ee(Ue){return Ue>=L.$a&&Ue<=L.$z||Ue>=L.$A&&Ue<=L.$Z}L.isAsciiLetter=Ee;function Pe(Ue){return Ue>=L.$a&&Ue<=L.$f||Ue>=L.$A&&Ue<=L.$F||ge(Ue)}L.isAsciiHexDigit=Pe;function ie(Ue){return Ue===L.$LF||Ue===L.$CR}L.isNewLine=ie;function de(Ue){return L.$0<=Ue&&Ue<=L.$7}L.isOctalDigit=de}}),At=he({"node_modules/angular-html-parser/lib/compiler/src/aot/static_symbol.js"(L){$(),Object.defineProperty(L,"__esModule",{value:!0});var re=class{constructor(Ee,Pe,ie){this.filePath=Ee,this.name=Pe,this.members=ie}assertNoMembers(){if(this.members.length)throw new Error(`Illegal state: symbol without members expected, but got ${JSON.stringify(this)}.`)}};L.StaticSymbol=re;var ge=class{constructor(){this.cache=new Map}get(Ee,Pe,ie){ie=ie||[];let de=ie.length?`.${ie.join(".")}`:"",Ue=`"${Ee}".${Pe}${de}`,Ge=this.cache.get(Ue);return Ge||(Ge=new re(Ee,Pe,ie),this.cache.set(Ue,Ge)),Ge}};L.StaticSymbolCache=ge}}),Lt=he({"node_modules/angular-html-parser/lib/compiler/src/util.js"(L){$(),Object.defineProperty(L,"__esModule",{value:!0});var re=/-+([a-z0-9])/g;function ge(le){return le.replace(re,function(){for(var We=arguments.length,Me=new Array(We),at=0;atde(Me,this,We))}visitStringMap(le,We){let Me={};return Object.keys(le).forEach(at=>{Me[at]=de(le[at],this,We)}),Me}visitPrimitive(le,We){return le}visitOther(le,We){return le}};L.ValueTransformer=gt,L.SyncAsync={assertSync:le=>{if(st(le))throw new Error("Illegal state: value cannot be a promise");return le},then:(le,We)=>st(le)?le.then(We):We(le),all:le=>le.some(st)?Promise.all(le):le};function ce(le){throw new Error(`Internal Error: ${le}`)}L.error=ce;function ve(le,We){let Me=Error(le);return Me[Ve]=!0,We&&(Me[He]=We),Me}L.syntaxError=ve;var Ve="ngSyntaxError",He="ngParseErrors";function Je(le){return le[Ve]}L.isSyntaxError=Je;function Qe(le){return le[He]||[]}L.getParseErrors=Qe;function yt(le){return le.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}L.escapeRegExp=yt;var _t=Object.getPrototypeOf({});function ct(le){return typeof le=="object"&&le!==null&&Object.getPrototypeOf(le)===_t}function kt(le){let We="";for(let Me=0;Me=55296&&at<=56319&&le.length>Me+1){let Jt=le.charCodeAt(Me+1);Jt>=56320&&Jt<=57343&&(Me++,at=(at-55296<<10)+Jt-56320+65536)}at<=127?We+=String.fromCharCode(at):at<=2047?We+=String.fromCharCode(at>>6&31|192,at&63|128):at<=65535?We+=String.fromCharCode(at>>12|224,at>>6&63|128,at&63|128):at<=2097151&&(We+=String.fromCharCode(at>>18&7|240,at>>12&63|128,at>>6&63|128,at&63|128))}return We}L.utf8Encode=kt;function $t(le){if(typeof le=="string")return le;if(le instanceof Array)return"["+le.map($t).join(", ")+"]";if(le==null)return""+le;if(le.overriddenName)return`${le.overriddenName}`;if(le.name)return`${le.name}`;if(!le.toString)return"object";let We=le.toString();if(We==null)return""+We;let Me=We.indexOf(` `);return Me===-1?We:We.substring(0,Me)}L.stringify=$t;function ir(le){return typeof le=="function"&&le.hasOwnProperty("__forward_ref__")?le():le}L.resolveForwardRef=ir;function st(le){return!!le&&typeof le.then=="function"}L.isPromise=st;var Ot=class{constructor(le){this.full=le;let We=le.split(".");this.major=We[0],this.minor=We[1],this.patch=We.slice(2).join(".")}};L.Version=Ot;var Vt=typeof window<"u"&&window,Ut=typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self,rr=typeof globalThis<"u"&&globalThis,z=rr||Vt||Ut;L.global=z}}),qt=he({"node_modules/angular-html-parser/lib/compiler/src/compile_metadata.js"(L){$(),Object.defineProperty(L,"__esModule",{value:!0});var re=At(),ge=Lt(),Ee=/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))|(\@[-\w]+)$/;function Pe(Me){return Me.replace(/\W/g,"_")}L.sanitizeIdentifier=Pe;var ie=0;function de(Me){if(!Me||!Me.reference)return null;let at=Me.reference;if(at instanceof re.StaticSymbol)return at.name;if(at.__anonymousType)return at.__anonymousType;let Jt=ge.stringify(at);return Jt.indexOf("(")>=0?(Jt=`anonymous_${ie++}`,at.__anonymousType=Jt):Jt=Pe(Jt),Jt}L.identifierName=de;function Ue(Me){let at=Me.reference;return at instanceof re.StaticSymbol?at.filePath:`./${ge.stringify(at)}`}L.identifierModuleUrl=Ue;function Ge(Me,at){return`View_${de({reference:Me})}_${at}`}L.viewClassName=Ge;function gt(Me){return`RenderType_${de({reference:Me})}`}L.rendererTypeName=gt;function ce(Me){return`HostView_${de({reference:Me})}`}L.hostViewClassName=ce;function ve(Me){return`${de({reference:Me})}NgFactory`}L.componentFactoryName=ve;var Ve;(function(Me){Me[Me.Pipe=0]="Pipe",Me[Me.Directive=1]="Directive",Me[Me.NgModule=2]="NgModule",Me[Me.Injectable=3]="Injectable"})(Ve=L.CompileSummaryKind||(L.CompileSummaryKind={}));function He(Me){return Me.value!=null?Pe(Me.value):de(Me.identifier)}L.tokenName=He;function Je(Me){return Me.identifier!=null?Me.identifier.reference:Me.value}L.tokenReference=Je;var Qe=class{constructor(){let{moduleUrl:Me,styles:at,styleUrls:Jt}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.moduleUrl=Me||null,this.styles=st(at),this.styleUrls=st(Jt)}};L.CompileStylesheetMetadata=Qe;var yt=class{constructor(Me){let{encapsulation:at,template:Jt,templateUrl:er,htmlAst:Ar,styles:Er,styleUrls:_r,externalStylesheets:xr,animations:Ir,ngContentSelectors:Mr,interpolation:or,isInline:lt,preserveWhitespaces:mt}=Me;if(this.encapsulation=at,this.template=Jt,this.templateUrl=er,this.htmlAst=Ar,this.styles=st(Er),this.styleUrls=st(_r),this.externalStylesheets=st(xr),this.animations=Ir?Vt(Ir):[],this.ngContentSelectors=Mr||[],or&&or.length!=2)throw new Error("'interpolation' should have a start and an end symbol.");this.interpolation=or,this.isInline=lt,this.preserveWhitespaces=mt}toSummary(){return{ngContentSelectors:this.ngContentSelectors,encapsulation:this.encapsulation,styles:this.styles,animations:this.animations}}};L.CompileTemplateMetadata=yt;var _t=class{static create(Me){let{isHost:at,type:Jt,isComponent:er,selector:Ar,exportAs:Er,changeDetection:_r,inputs:xr,outputs:Ir,host:Mr,providers:or,viewProviders:lt,queries:mt,guards:St,viewQueries:xt,entryComponents:Kt,template:sr,componentViewType:lr,rendererType:Qt,componentFactory:Kr}=Me,Pn={},In={},Hu={};Mr!=null&&Object.keys(Mr).forEach(vr=>{let Qr=Mr[vr],cn=vr.match(Ee);cn===null?Hu[vr]=Qr:cn[1]!=null?In[cn[1]]=Qr:cn[2]!=null&&(Pn[cn[2]]=Qr)});let Yu={};xr==null||xr.forEach(vr=>{let Qr=ge.splitAtColon(vr,[vr,vr]);Yu[Qr[0]]=Qr[1]});let Ku={};return Ir==null||Ir.forEach(vr=>{let Qr=ge.splitAtColon(vr,[vr,vr]);Ku[Qr[0]]=Qr[1]}),new _t({isHost:at,type:Jt,isComponent:!!er,selector:Ar,exportAs:Er,changeDetection:_r,inputs:Yu,outputs:Ku,hostListeners:Pn,hostProperties:In,hostAttributes:Hu,providers:or,viewProviders:lt,queries:mt,guards:St,viewQueries:xt,entryComponents:Kt,template:sr,componentViewType:lr,rendererType:Qt,componentFactory:Kr})}constructor(Me){let{isHost:at,type:Jt,isComponent:er,selector:Ar,exportAs:Er,changeDetection:_r,inputs:xr,outputs:Ir,hostListeners:Mr,hostProperties:or,hostAttributes:lt,providers:mt,viewProviders:St,queries:xt,guards:Kt,viewQueries:sr,entryComponents:lr,template:Qt,componentViewType:Kr,rendererType:Pn,componentFactory:In}=Me;this.isHost=!!at,this.type=Jt,this.isComponent=er,this.selector=Ar,this.exportAs=Er,this.changeDetection=_r,this.inputs=xr,this.outputs=Ir,this.hostListeners=Mr,this.hostProperties=or,this.hostAttributes=lt,this.providers=st(mt),this.viewProviders=st(St),this.queries=st(xt),this.guards=Kt,this.viewQueries=st(sr),this.entryComponents=st(lr),this.template=Qt,this.componentViewType=Kr,this.rendererType=Pn,this.componentFactory=In}toSummary(){return{summaryKind:Ve.Directive,type:this.type,isComponent:this.isComponent,selector:this.selector,exportAs:this.exportAs,inputs:this.inputs,outputs:this.outputs,hostListeners:this.hostListeners,hostProperties:this.hostProperties,hostAttributes:this.hostAttributes,providers:this.providers,viewProviders:this.viewProviders,queries:this.queries,guards:this.guards,viewQueries:this.viewQueries,entryComponents:this.entryComponents,changeDetection:this.changeDetection,template:this.template&&this.template.toSummary(),componentViewType:this.componentViewType,rendererType:this.rendererType,componentFactory:this.componentFactory}}};L.CompileDirectiveMetadata=_t;var ct=class{constructor(Me){let{type:at,name:Jt,pure:er}=Me;this.type=at,this.name=Jt,this.pure=!!er}toSummary(){return{summaryKind:Ve.Pipe,type:this.type,name:this.name,pure:this.pure}}};L.CompilePipeMetadata=ct;var kt=class{};L.CompileShallowModuleMetadata=kt;var $t=class{constructor(Me){let{type:at,providers:Jt,declaredDirectives:er,exportedDirectives:Ar,declaredPipes:Er,exportedPipes:_r,entryComponents:xr,bootstrapComponents:Ir,importedModules:Mr,exportedModules:or,schemas:lt,transitiveModule:mt,id:St}=Me;this.type=at||null,this.declaredDirectives=st(er),this.exportedDirectives=st(Ar),this.declaredPipes=st(Er),this.exportedPipes=st(_r),this.providers=st(Jt),this.entryComponents=st(xr),this.bootstrapComponents=st(Ir),this.importedModules=st(Mr),this.exportedModules=st(or),this.schemas=st(lt),this.id=St||null,this.transitiveModule=mt||null}toSummary(){let Me=this.transitiveModule;return{summaryKind:Ve.NgModule,type:this.type,entryComponents:Me.entryComponents,providers:Me.providers,modules:Me.modules,exportedDirectives:Me.exportedDirectives,exportedPipes:Me.exportedPipes}}};L.CompileNgModuleMetadata=$t;var ir=class{constructor(){this.directivesSet=new Set,this.directives=[],this.exportedDirectivesSet=new Set,this.exportedDirectives=[],this.pipesSet=new Set,this.pipes=[],this.exportedPipesSet=new Set,this.exportedPipes=[],this.modulesSet=new Set,this.modules=[],this.entryComponentsSet=new Set,this.entryComponents=[],this.providers=[]}addProvider(Me,at){this.providers.push({provider:Me,module:at})}addDirective(Me){this.directivesSet.has(Me.reference)||(this.directivesSet.add(Me.reference),this.directives.push(Me))}addExportedDirective(Me){this.exportedDirectivesSet.has(Me.reference)||(this.exportedDirectivesSet.add(Me.reference),this.exportedDirectives.push(Me))}addPipe(Me){this.pipesSet.has(Me.reference)||(this.pipesSet.add(Me.reference),this.pipes.push(Me))}addExportedPipe(Me){this.exportedPipesSet.has(Me.reference)||(this.exportedPipesSet.add(Me.reference),this.exportedPipes.push(Me))}addModule(Me){this.modulesSet.has(Me.reference)||(this.modulesSet.add(Me.reference),this.modules.push(Me))}addEntryComponent(Me){this.entryComponentsSet.has(Me.componentType)||(this.entryComponentsSet.add(Me.componentType),this.entryComponents.push(Me))}};L.TransitiveCompileNgModuleMetadata=ir;function st(Me){return Me||[]}var Ot=class{constructor(Me,at){let{useClass:Jt,useValue:er,useExisting:Ar,useFactory:Er,deps:_r,multi:xr}=at;this.token=Me,this.useClass=Jt||null,this.useValue=er,this.useExisting=Ar,this.useFactory=Er||null,this.dependencies=_r||null,this.multi=!!xr}};L.ProviderMeta=Ot;function Vt(Me){return Me.reduce((at,Jt)=>{let er=Array.isArray(Jt)?Vt(Jt):Jt;return at.concat(er)},[])}L.flatten=Vt;function Ut(Me){return Me.replace(/(\w+:\/\/[\w:-]+)?(\/+)?/,"ng:///")}function rr(Me,at,Jt){let er;return Jt.isInline?at.type.reference instanceof re.StaticSymbol?er=`${at.type.reference.filePath}.${at.type.reference.name}.html`:er=`${de(Me)}/${de(at.type)}.html`:er=Jt.templateUrl,at.type.reference instanceof re.StaticSymbol?er:Ut(er)}L.templateSourceUrl=rr;function z(Me,at){let Jt=Me.moduleUrl.split(/\/\\/g),er=Jt[Jt.length-1];return Ut(`css/${at}${er}.ngstyle.js`)}L.sharedStylesheetJitUrl=z;function le(Me){return Ut(`${de(Me.type)}/module.ngfactory.js`)}L.ngModuleJitUrl=le;function We(Me,at){return Ut(`${de(Me)}/${de(at.type)}.ngfactory.js`)}L.templateJitUrl=We}}),Zt=he({"node_modules/angular-html-parser/lib/compiler/src/parse_util.js"(L){$(),Object.defineProperty(L,"__esModule",{value:!0});var re=Ft(),ge=qt(),Ee=class{constructor(ce,ve,Ve,He){this.file=ce,this.offset=ve,this.line=Ve,this.col=He}toString(){return this.offset!=null?`${this.file.url}@${this.line}:${this.col}`:this.file.url}moveBy(ce){let ve=this.file.content,Ve=ve.length,He=this.offset,Je=this.line,Qe=this.col;for(;He>0&&ce<0;)if(He--,ce++,ve.charCodeAt(He)==re.$LF){Je--;let yt=ve.substr(0,He-1).lastIndexOf(String.fromCharCode(re.$LF));Qe=yt>0?He-yt:He}else Qe--;for(;He0;){let yt=ve.charCodeAt(He);He++,ce--,yt==re.$LF?(Je++,Qe=0):Qe++}return new Ee(this.file,He,Je,Qe)}getContext(ce,ve){let Ve=this.file.content,He=this.offset;if(He!=null){He>Ve.length-1&&(He=Ve.length-1);let Je=He,Qe=0,yt=0;for(;Qe0&&(He--,Qe++,!(Ve[He]==` `&&++yt==ve)););for(Qe=0,yt=0;Qe2&&arguments[2]!==void 0?arguments[2]:null;this.start=ce,this.end=ve,this.details=Ve}toString(){return this.start.file.content.substring(this.start.offset,this.end.offset)}};L.ParseSourceSpan=ie,L.EMPTY_PARSE_LOCATION=new Ee(new Pe("",""),0,0,0),L.EMPTY_SOURCE_SPAN=new ie(L.EMPTY_PARSE_LOCATION,L.EMPTY_PARSE_LOCATION);var de;(function(ce){ce[ce.WARNING=0]="WARNING",ce[ce.ERROR=1]="ERROR"})(de=L.ParseErrorLevel||(L.ParseErrorLevel={}));var Ue=class{constructor(ce,ve){let Ve=arguments.length>2&&arguments[2]!==void 0?arguments[2]:de.ERROR;this.span=ce,this.msg=ve,this.level=Ve}contextualMessage(){let ce=this.span.start.getContext(100,3);return ce?`${this.msg} ("${ce.before}[${de[this.level]} ->]${ce.after}")`:this.msg}toString(){let ce=this.span.details?`, ${this.span.details}`:"";return`${this.contextualMessage()}: ${this.span.start}${ce}`}};L.ParseError=Ue;function Ge(ce,ve){let Ve=ge.identifierModuleUrl(ve),He=Ve!=null?`in ${ce} ${ge.identifierName(ve)} in ${Ve}`:`in ${ce} ${ge.identifierName(ve)}`,Je=new Pe("",He);return new ie(new Ee(Je,-1,-1,-1),new Ee(Je,-1,-1,-1))}L.typeSourceSpan=Ge;function gt(ce,ve,Ve){let He=`in ${ce} ${ve} in ${Ve}`,Je=new Pe("",He);return new ie(new Ee(Je,-1,-1,-1),new Ee(Je,-1,-1,-1))}L.r3JitTypeSourceSpan=gt}}),ue=he({"src/utils/front-matter/parse.js"(L,re){$();var ge=new RegExp("^(?-{3}|\\+{3})(?[^\\n]*)\\n(?:|(?.*?)\\n)(?\\k|\\.{3})[^\\S\\n]*(?:\\n|$)","s");function Ee(Pe){let ie=Pe.match(ge);if(!ie)return{content:Pe};let{startDelimiter:de,language:Ue,value:Ge="",endDelimiter:gt}=ie.groups,ce=Ue.trim()||"yaml";if(de==="+++"&&(ce="toml"),ce!=="yaml"&&de!==gt)return{content:Pe};let[ve]=ie;return{frontMatter:{type:"front-matter",lang:ce,value:Ge,startDelimiter:de,endDelimiter:gt,raw:ve.replace(/\n$/,"")},content:ve.replace(/[^\n]/g," ")+Pe.slice(ve.length)}}re.exports=Ee}}),yr=he({"src/utils/get-last.js"(L,re){$();var ge=Ee=>Ee[Ee.length-1];re.exports=ge}}),Pr=he({"src/common/parser-create-error.js"(L,re){$();function ge(Ee,Pe){let ie=new SyntaxError(Ee+" ("+Pe.start.line+":"+Pe.start.column+")");return ie.loc=Pe,ie}re.exports=ge}}),zr={};qe(zr,{default:()=>fr});function fr(L){if(typeof L!="string")throw new TypeError("Expected a string");return L.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var Rr=je({"node_modules/escape-string-regexp/index.js"(){$()}}),mr=he({"node_modules/semver/internal/debug.js"(L,re){$();var ge=typeof rt=="object"&&rt.env&&rt.env.NODE_DEBUG&&/\bsemver\b/i.test(rt.env.NODE_DEBUG)?function(){for(var Ee=arguments.length,Pe=new Array(Ee),ie=0;ie{};re.exports=ge}}),rn=he({"node_modules/semver/internal/constants.js"(L,re){$();var ge="2.0.0",Ee=256,Pe=Number.MAX_SAFE_INTEGER||9007199254740991,ie=16;re.exports={SEMVER_SPEC_VERSION:ge,MAX_LENGTH:Ee,MAX_SAFE_INTEGER:Pe,MAX_SAFE_COMPONENT_LENGTH:ie}}}),wr=he({"node_modules/semver/internal/re.js"(L,re){$();var{MAX_SAFE_COMPONENT_LENGTH:ge}=rn(),Ee=mr();L=re.exports={};var Pe=L.re=[],ie=L.src=[],de=L.t={},Ue=0,Ge=(gt,ce,ve)=>{let Ve=Ue++;Ee(gt,Ve,ce),de[gt]=Ve,ie[Ve]=ce,Pe[Ve]=new RegExp(ce,ve?"g":void 0)};Ge("NUMERICIDENTIFIER","0|[1-9]\\d*"),Ge("NUMERICIDENTIFIERLOOSE","[0-9]+"),Ge("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),Ge("MAINVERSION",`(${ie[de.NUMERICIDENTIFIER]})\\.(${ie[de.NUMERICIDENTIFIER]})\\.(${ie[de.NUMERICIDENTIFIER]})`),Ge("MAINVERSIONLOOSE",`(${ie[de.NUMERICIDENTIFIERLOOSE]})\\.(${ie[de.NUMERICIDENTIFIERLOOSE]})\\.(${ie[de.NUMERICIDENTIFIERLOOSE]})`),Ge("PRERELEASEIDENTIFIER",`(?:${ie[de.NUMERICIDENTIFIER]}|${ie[de.NONNUMERICIDENTIFIER]})`),Ge("PRERELEASEIDENTIFIERLOOSE",`(?:${ie[de.NUMERICIDENTIFIERLOOSE]}|${ie[de.NONNUMERICIDENTIFIER]})`),Ge("PRERELEASE",`(?:-(${ie[de.PRERELEASEIDENTIFIER]}(?:\\.${ie[de.PRERELEASEIDENTIFIER]})*))`),Ge("PRERELEASELOOSE",`(?:-?(${ie[de.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${ie[de.PRERELEASEIDENTIFIERLOOSE]})*))`),Ge("BUILDIDENTIFIER","[0-9A-Za-z-]+"),Ge("BUILD",`(?:\\+(${ie[de.BUILDIDENTIFIER]}(?:\\.${ie[de.BUILDIDENTIFIER]})*))`),Ge("FULLPLAIN",`v?${ie[de.MAINVERSION]}${ie[de.PRERELEASE]}?${ie[de.BUILD]}?`),Ge("FULL",`^${ie[de.FULLPLAIN]}$`),Ge("LOOSEPLAIN",`[v=\\s]*${ie[de.MAINVERSIONLOOSE]}${ie[de.PRERELEASELOOSE]}?${ie[de.BUILD]}?`),Ge("LOOSE",`^${ie[de.LOOSEPLAIN]}$`),Ge("GTLT","((?:<|>)?=?)"),Ge("XRANGEIDENTIFIERLOOSE",`${ie[de.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),Ge("XRANGEIDENTIFIER",`${ie[de.NUMERICIDENTIFIER]}|x|X|\\*`),Ge("XRANGEPLAIN",`[v=\\s]*(${ie[de.XRANGEIDENTIFIER]})(?:\\.(${ie[de.XRANGEIDENTIFIER]})(?:\\.(${ie[de.XRANGEIDENTIFIER]})(?:${ie[de.PRERELEASE]})?${ie[de.BUILD]}?)?)?`),Ge("XRANGEPLAINLOOSE",`[v=\\s]*(${ie[de.XRANGEIDENTIFIERLOOSE]})(?:\\.(${ie[de.XRANGEIDENTIFIERLOOSE]})(?:\\.(${ie[de.XRANGEIDENTIFIERLOOSE]})(?:${ie[de.PRERELEASELOOSE]})?${ie[de.BUILD]}?)?)?`),Ge("XRANGE",`^${ie[de.GTLT]}\\s*${ie[de.XRANGEPLAIN]}$`),Ge("XRANGELOOSE",`^${ie[de.GTLT]}\\s*${ie[de.XRANGEPLAINLOOSE]}$`),Ge("COERCE",`(^|[^\\d])(\\d{1,${ge}})(?:\\.(\\d{1,${ge}}))?(?:\\.(\\d{1,${ge}}))?(?:$|[^\\d])`),Ge("COERCERTL",ie[de.COERCE],!0),Ge("LONETILDE","(?:~>?)"),Ge("TILDETRIM",`(\\s*)${ie[de.LONETILDE]}\\s+`,!0),L.tildeTrimReplace="$1~",Ge("TILDE",`^${ie[de.LONETILDE]}${ie[de.XRANGEPLAIN]}$`),Ge("TILDELOOSE",`^${ie[de.LONETILDE]}${ie[de.XRANGEPLAINLOOSE]}$`),Ge("LONECARET","(?:\\^)"),Ge("CARETTRIM",`(\\s*)${ie[de.LONECARET]}\\s+`,!0),L.caretTrimReplace="$1^",Ge("CARET",`^${ie[de.LONECARET]}${ie[de.XRANGEPLAIN]}$`),Ge("CARETLOOSE",`^${ie[de.LONECARET]}${ie[de.XRANGEPLAINLOOSE]}$`),Ge("COMPARATORLOOSE",`^${ie[de.GTLT]}\\s*(${ie[de.LOOSEPLAIN]})$|^$`),Ge("COMPARATOR",`^${ie[de.GTLT]}\\s*(${ie[de.FULLPLAIN]})$|^$`),Ge("COMPARATORTRIM",`(\\s*)${ie[de.GTLT]}\\s*(${ie[de.LOOSEPLAIN]}|${ie[de.XRANGEPLAIN]})`,!0),L.comparatorTrimReplace="$1$2$3",Ge("HYPHENRANGE",`^\\s*(${ie[de.XRANGEPLAIN]})\\s+-\\s+(${ie[de.XRANGEPLAIN]})\\s*$`),Ge("HYPHENRANGELOOSE",`^\\s*(${ie[de.XRANGEPLAINLOOSE]})\\s+-\\s+(${ie[de.XRANGEPLAINLOOSE]})\\s*$`),Ge("STAR","(<|>)?=?\\s*\\*"),Ge("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),Ge("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}}),Fr=he({"node_modules/semver/internal/parse-options.js"(L,re){$();var ge=["includePrerelease","loose","rtl"],Ee=Pe=>Pe?typeof Pe!="object"?{loose:!0}:ge.filter(ie=>Pe[ie]).reduce((ie,de)=>(ie[de]=!0,ie),{}):{};re.exports=Ee}}),Tn=he({"node_modules/semver/internal/identifiers.js"(L,re){$();var ge=/^[0-9]+$/,Ee=(ie,de)=>{let Ue=ge.test(ie),Ge=ge.test(de);return Ue&&Ge&&(ie=+ie,de=+de),ie===de?0:Ue&&!Ge?-1:Ge&&!Ue?1:ieEe(de,ie);re.exports={compareIdentifiers:Ee,rcompareIdentifiers:Pe}}}),Bn=he({"node_modules/semver/classes/semver.js"(L,re){$();var ge=mr(),{MAX_LENGTH:Ee,MAX_SAFE_INTEGER:Pe}=rn(),{re:ie,t:de}=wr(),Ue=Fr(),{compareIdentifiers:Ge}=Tn(),gt=class{constructor(ce,ve){if(ve=Ue(ve),ce instanceof gt){if(ce.loose===!!ve.loose&&ce.includePrerelease===!!ve.includePrerelease)return ce;ce=ce.version}else if(typeof ce!="string")throw new TypeError(`Invalid Version: ${ce}`);if(ce.length>Ee)throw new TypeError(`version is longer than ${Ee} characters`);ge("SemVer",ce,ve),this.options=ve,this.loose=!!ve.loose,this.includePrerelease=!!ve.includePrerelease;let Ve=ce.trim().match(ve.loose?ie[de.LOOSE]:ie[de.FULL]);if(!Ve)throw new TypeError(`Invalid Version: ${ce}`);if(this.raw=ce,this.major=+Ve[1],this.minor=+Ve[2],this.patch=+Ve[3],this.major>Pe||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Pe||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Pe||this.patch<0)throw new TypeError("Invalid patch version");Ve[4]?this.prerelease=Ve[4].split(".").map(He=>{if(/^[0-9]+$/.test(He)){let Je=+He;if(Je>=0&&Je=0;)typeof this.prerelease[Ve]=="number"&&(this.prerelease[Ve]++,Ve=-2);Ve===-1&&this.prerelease.push(0)}ve&&(Ge(this.prerelease[0],ve)===0?isNaN(this.prerelease[1])&&(this.prerelease=[ve,0]):this.prerelease=[ve,0]);break;default:throw new Error(`invalid increment argument: ${ce}`)}return this.format(),this.raw=this.version,this}};re.exports=gt}}),on=he({"node_modules/semver/functions/compare.js"(L,re){$();var ge=Bn(),Ee=(Pe,ie,de)=>new ge(Pe,de).compare(new ge(ie,de));re.exports=Ee}}),Nr=he({"node_modules/semver/functions/lt.js"(L,re){$();var ge=on(),Ee=(Pe,ie,de)=>ge(Pe,ie,de)<0;re.exports=Ee}}),Bu=he({"node_modules/semver/functions/gte.js"(L,re){$();var ge=on(),Ee=(Pe,ie,de)=>ge(Pe,ie,de)>=0;re.exports=Ee}}),Ri=he({"src/utils/arrayify.js"(L,re){$(),re.exports=(ge,Ee)=>Object.entries(ge).map(Pe=>{let[ie,de]=Pe;return Object.assign({[Ee]:ie},de)})}}),wu=he({"package.json"(L,re){re.exports={version:"2.8.8"}}}),Mi=he({"node_modules/outdent/lib/index.js"(L,re){$(),Object.defineProperty(L,"__esModule",{value:!0}),L.outdent=void 0;function ge(){for(var ct=[],kt=0;kt{for(const o of r)if(o.type==="childList")for(const _ of o.addedNodes)_.tagName==="LINK"&&_.rel==="modulepreload"&&a(_)}).observe(document,{childList:!0,subtree:!0});function m(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerPolicy&&(o.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?o.credentials="include":r.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function a(r){if(r.ep)return;r.ep=!0;const o=m(r);fetch(r.href,o)}})();const d="modulepreload",O=function(e,s){return new URL(e,s).href},p={},t=function(s,m,a){let r=Promise.resolve();if(m&&m.length>0){const o=document.getElementsByTagName("link");r=Promise.all(m.map(_=>{if(_=O(_,a),_ in p)return;p[_]=!0;const n=_.endsWith(".css"),E=n?'[rel="stylesheet"]':"";if(!!a)for(let c=o.length-1;c>=0;c--){const u=o[c];if(u.href===_&&(!n||u.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${_}"]${E}`))return;const i=document.createElement("link");if(i.rel=n?"stylesheet":d,n||(i.as="script",i.crossOrigin=""),i.href=_,document.head.appendChild(i),n)return new Promise((c,u)=>{i.addEventListener("load",c),i.addEventListener("error",()=>u(new Error(`Unable to preload CSS for ${_}`)))})}))}return r.then(()=>s()).catch(o=>{const _=new Event("vite:preloadError",{cancelable:!0});if(_.payload=o,window.dispatchEvent(_),!_.defaultPrevented)throw o})},{createBrowserChannel:R}=__STORYBOOK_MODULE_CHANNELS__,{addons:T}=__STORYBOOK_MODULE_PREVIEW_API__,l=R({page:"preview"});T.setChannel(l);window.__STORYBOOK_ADDONS_CHANNEL__=l;window.CONFIG_TYPE==="DEVELOPMENT"&&(window.__STORYBOOK_SERVER_CHANNEL__=l);const y={"./src/Alert/alert.stories.tsx":async()=>t(()=>import("./alert.stories--0ZXPdyW.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25]),import.meta.url),"./src/Autocomplete/autocomplete.stories.tsx":async()=>t(()=>import("./autocomplete.stories-njN_Od2D.js"),__vite__mapDeps([26,2,3,4,5,6,8,27,28,29,16,17,30,18,19,14,31,21,32,33,34,35,36,37,10,11,20,38]),import.meta.url),"./src/Avatar/avatar.stories.tsx":async()=>t(()=>import("./avatar.stories-RPBIGCzg.js"),__vite__mapDeps([39,2,3,4,5,6,14,40,19,8]),import.meta.url),"./src/Box/box.mdx":async()=>t(()=>import("./box-r6mhcPp2.js"),__vite__mapDeps([41,2,3,42,5,17,33,43,44,45,14,4,6,46]),import.meta.url),"./src/Box/box.stories.tsx":async()=>t(()=>import("./box.stories-tWlYbFhl.js").then(e=>e.S),__vite__mapDeps([45,2,3,14,4,5,6]),import.meta.url),"./src/Button/button.mdx":async()=>t(()=>import("./button-bXCCf1hn.js"),__vite__mapDeps([47,2,3,42,5,17,33,43,44,48,10,4,6,11,8,38,22,46]),import.meta.url),"./src/Button/button.stories.tsx":async()=>t(()=>import("./button.stories-cxppwt7f.js").then(e=>e.S),__vite__mapDeps([48,2,3,10,4,5,6,11,8,38,22]),import.meta.url),"./src/Checkbox/checkbox.stories.tsx":async()=>t(()=>import("./checkbox.stories-DUvGPKez.js"),__vite__mapDeps([49,2,3,4,5,6,37,50,51,52]),import.meta.url),"./src/Chip/chip.stories.tsx":async()=>t(()=>import("./chip.stories-zSSHeX_h.js"),__vite__mapDeps([53,34,2,3,4,5,6,8,35]),import.meta.url),"./src/CircularProgress/circular_progress.stories.tsx":async()=>t(()=>import("./circular_progress.stories-WgGr9h5F.js"),__vite__mapDeps([54,25,2,3,13,6,5,4]),import.meta.url),"./src/Collapse/collapse.stories.tsx":async()=>t(()=>import("./collapse.stories-UU7XJwtn.js"),__vite__mapDeps([55,2,3,56,4,5,6,32,33,17,8]),import.meta.url),"./src/Dialog/dialog.stories.tsx":async()=>t(()=>import("./dialog.stories-SV6-C4zt.js"),__vite__mapDeps([57,2,3,4,5,6,14,30,18,17,19,31,21,32,33,25,13,8,9,10,11,12,15,16,20,22,56,1,7,23,24,36,37]),import.meta.url),"./src/Drawer/drawer.stories.tsx":async()=>t(()=>import("./drawer.stories-EOt4eNZa.js"),__vite__mapDeps([58,2,3,4,5,6,30,18,17,19,14,31,21,32,33,59,8,10,11]),import.meta.url),"./src/Fab/fab.stories.tsx":async()=>t(()=>import("./fab.stories-__ff0ooV.js"),__vite__mapDeps([60,2,3,4,5,6,11,8,38]),import.meta.url),"./src/Fade/fade.stories.tsx":async()=>t(()=>import("./fade.stories-pTSGvgRz.js"),__vite__mapDeps([61,2,3,31,21,32,33,17,8,4,5,6]),import.meta.url),"./src/Flex/flex.mdx":async()=>t(()=>import("./flex-tL64lLQS.js"),__vite__mapDeps([62,2,3,42,5,17,33,43,44,63,7,4,6,14,46]),import.meta.url),"./src/Flex/flex.stories.tsx":async()=>t(()=>import("./flex.stories-QJ73QK6N.js").then(e=>e.S),__vite__mapDeps([63,2,3,7,4,5,6,14]),import.meta.url),"./src/IconButton/icon_button.stories.tsx":async()=>t(()=>import("./icon_button.stories-cIfhWNe2.js"),__vite__mapDeps([64,2,3,9,4,5,6,10,11,8,12,13,14,15,16,17,18,19,20,21,50]),import.meta.url),"./src/Image/image.stories.tsx":async()=>t(()=>import("./image.stories-nG7hijn2.js"),__vite__mapDeps([65,2,3,40,19]),import.meta.url),"./src/LinearProgress/linear_progress.stories.tsx":async()=>t(()=>import("./linear_progress.stories-tzdMrZkj.js"),__vite__mapDeps([66,2,3,13,6,5,4,14]),import.meta.url),"./src/Menu/menu.stories.tsx":async()=>t(()=>import("./menu.stories-KhVPZRpJ.js"),__vite__mapDeps([67,2,3,4,5,6,29,16,17,30,18,19,14,31,21,32,33,68,28,8,69,15,10,11,38]),import.meta.url),"./src/MenuList/menu_list.stories.tsx":async()=>t(()=>import("./menu_list.stories-cd6De2y9.js"),__vite__mapDeps([70,2,3,68,4,5,6,19,21,28,8,24]),import.meta.url),"./src/Portal/portal.stories.tsx":async()=>t(()=>import("./portal.stories-tkS7ERA0.js"),__vite__mapDeps([71,18,3,17,19]),import.meta.url),"./src/Radio/radio.stories.tsx":async()=>t(()=>import("./radio.stories-Zq0tShcQ.js"),__vite__mapDeps([72,2,3,4,5,6,37,73,52]),import.meta.url),"./src/Select/select.stories.tsx":async()=>t(()=>import("./select.stories-nbNePVHu.js"),__vite__mapDeps([74,2,3,4,5,6,8,27]),import.meta.url),"./src/Skeleton/skeleton.stories.tsx":async()=>t(()=>import("./skeleton.stories-H1bUOjiA.js"),__vite__mapDeps([75,2,3,13,6,5,4,14]),import.meta.url),"./src/Slide/slide.stories.tsx":async()=>t(()=>import("./slide.stories-H832NiBd.js"),__vite__mapDeps([76,2,3,59,21,32,33,17,8,4,5,6]),import.meta.url),"./src/Slider/slider.stories.tsx":async()=>t(()=>import("./slider.stories-ulRFP1Yt.js"),__vite__mapDeps([77,2,3,4,5,6]),import.meta.url),"./src/Switch/switch.stories.tsx":async()=>t(()=>import("./switch.stories-iavirUb4.js"),__vite__mapDeps([78,2,3,4,5,6,14,37,52]),import.meta.url),"./src/Tabs/tabs.stories.tsx":async()=>t(()=>import("./tabs.stories-m2AC__L2.js"),__vite__mapDeps([79,2,3,4,5,6,8]),import.meta.url),"./src/TextField/text_field.mdx":async()=>t(()=>import("./text_field-bvCGfaa8.js"),__vite__mapDeps([80,2,3,42,5,17,33,43,44,81,36,4,6,37,8,46]),import.meta.url),"./src/TextField/text_field.stories.tsx":async()=>t(()=>import("./text_field.stories-YznOcLNQ.js").then(e=>e.S),__vite__mapDeps([81,2,3,36,4,5,6,37,8]),import.meta.url),"./src/TextareaField/textarea_field.stories.tsx":async()=>t(()=>import("./textarea_field.stories-bZxN2We0.js"),__vite__mapDeps([82,2,3,4,5,6,37,8]),import.meta.url),"./src/Toast/use_toast.mdx":async()=>t(()=>import("./use_toast-LcPwkpph.js"),__vite__mapDeps([83,2,3,42,5,17,33,43,44,84,4,6,31,21,32,1,7,8,9,10,11,12,13,14,15,16,18,19,20,22,23,24,25,46]),import.meta.url),"./src/Toast/use_toast.stories.tsx":async()=>t(()=>import("./use_toast.stories-1u41Ynxd.js"),__vite__mapDeps([84,2,3,4,5,6,31,21,32,33,17,1,7,8,9,10,11,12,13,14,15,16,18,19,20,22,23,24,25]),import.meta.url),"./src/Tooltip/tooltip.stories.tsx":async()=>t(()=>import("./tooltip.stories-u5U2SB0w.js"),__vite__mapDeps([85,2,3,12,13,6,5,4,14,15,16,17,18,19,20,21,8,10,11]),import.meta.url),"./src/Typography/typography.mdx":async()=>t(()=>import("./typography-Ln1-jNuv.js"),__vite__mapDeps([86,2,3,42,5,17,33,43,44,87,8,4,6,46]),import.meta.url),"./src/Typography/typography.stories.tsx":async()=>t(()=>import("./typography.stories-WwgdZou_.js").then(e=>e.S),__vite__mapDeps([87,2,3,8,4,5,6]),import.meta.url),"./src/hooks/use_clipboard.mdx":async()=>t(()=>import("./use_clipboard-WpJb47xt.js"),__vite__mapDeps([88,2,3,42,5,17,33,43,44,89,46]),import.meta.url),"./src/hooks/use_clipboard.stories.tsx":async()=>t(()=>import("./use_clipboard.stories-FxmETqQd.js"),__vite__mapDeps([89,2,3]),import.meta.url),"./src/hooks/use_controllable.mdx":async()=>t(()=>import("./use_controllable-I2U_MAnR.js"),__vite__mapDeps([90,2,3,42,5,17,33,43,44,91,20,46]),import.meta.url),"./src/hooks/use_controllable.stories.tsx":async()=>t(()=>import("./use_controllable.stories-6lKFGi8w.js"),__vite__mapDeps([91,2,3,20]),import.meta.url),"./src/hooks/use_debounce_callback.mdx":async()=>t(()=>import("./use_debounce_callback-IpSqrGlC.js"),__vite__mapDeps([92,2,3,42,5,17,33,43,44,93,46]),import.meta.url),"./src/hooks/use_debounce_callback.stories.tsx":async()=>t(()=>import("./use_debounce_callback.stories-gJPjVzln.js"),__vite__mapDeps([93,2,3]),import.meta.url),"./src/hooks/use_id.mdx":async()=>t(()=>import("./use_id-eQS5NVzN.js"),__vite__mapDeps([94,2,3,42,5,17,33,43,44,95,37,46]),import.meta.url),"./src/hooks/use_id.stories.tsx":async()=>t(()=>import("./use_id.stories-dkxlW0IT.js"),__vite__mapDeps([95,2,3,37]),import.meta.url),"./src/hooks/use_intersection_observer.mdx":async()=>t(()=>import("./use_intersection_observer-6EWcUDxF.js"),__vite__mapDeps([96,2,3,42,5,17,33,43,44,97,46]),import.meta.url),"./src/hooks/use_intersection_observer.stories.tsx":async()=>t(()=>import("./use_intersection_observer.stories-0m2hRJye.js"),__vite__mapDeps([97,2,3]),import.meta.url),"./src/hooks/use_media_query.mdx":async()=>t(()=>import("./use_media_query-Jz7KgWET.js"),__vite__mapDeps([98,2,3,42,5,17,33,43,44,99,19,46]),import.meta.url),"./src/hooks/use_media_query.stories.tsx":async()=>t(()=>import("./use_media_query.stories-1hw5Yksf.js"),__vite__mapDeps([99,2,3,19]),import.meta.url),"./src/hooks/use_window_event_listener.mdx":async()=>t(()=>import("./use_window_event_listener-gJGnqsLg.js"),__vite__mapDeps([100,2,3,42,5,17,33,43,44,101,46]),import.meta.url),"./src/hooks/use_window_event_listener.stories.tsx":async()=>t(()=>import("./use_window_event_listener.stories-gBkYrAeP.js"),__vite__mapDeps([101,2,3]),import.meta.url),"./src/icons/icons.mdx":async()=>t(()=>import("./icons-jRSpjZLf.js"),__vite__mapDeps([102,2,3,42,5,17,33,43,44,27,69,23,50,22,35,73,51,38,24,46]),import.meta.url),"./src/installation.mdx":async()=>t(()=>import("./installation-X3U8DJuW.js"),__vite__mapDeps([103,2,3,42,5,17,33,43,44,46]),import.meta.url),"./src/styles/css_variables.mdx":async()=>t(()=>import("./css_variables-haQ1F5tC.js"),__vite__mapDeps([104,2,3,42,5,17,33,43,44,46]),import.meta.url),"./src/styles/dark_mode.mdx":async()=>t(()=>import("./dark_mode-99U6GHUG.js"),__vite__mapDeps([105,2,3,42,5,17,33,43,44,106,107,8,4,6,46]),import.meta.url),"./src/styles/palette.mdx":async()=>t(()=>import("./palette-wqcdcj41.js"),__vite__mapDeps([108,2,3,42,5,17,33,43,44,106,107,8,4,6,46]),import.meta.url),"./src/styles/palette.stories.tsx":async()=>t(()=>import("./palette.stories-SUHfYI79.js"),__vite__mapDeps([106,2,3,107,8,4,5,6]),import.meta.url),"./src/styles/palette_playground.mdx":async()=>t(()=>import("./palette_playground-BQ1LPSdi.js"),__vite__mapDeps([109,2,3,42,5,17,33,43,44,106,107,8,4,6,46]),import.meta.url)};async function P(e){return y[e]()}const{composeConfigs:v,PreviewWeb:L,ClientApi:I}=__STORYBOOK_MODULE_PREVIEW_API__,A=async()=>{const e=await Promise.all([t(()=>import("./entry-preview-SrpoVIh6.js"),__vite__mapDeps([110,3,111,17]),import.meta.url),t(()=>import("./entry-preview-docs-GtvwqbkA.js"),__vite__mapDeps([112,43,3,44,113]),import.meta.url),t(()=>import("./preview-xi9rapnE.js"),__vite__mapDeps([]),import.meta.url),t(()=>import("./preview-gAkc9ubh.js"),__vite__mapDeps([114,44]),import.meta.url),t(()=>import("./preview-TkXSQy1x.js"),__vite__mapDeps([]),import.meta.url),t(()=>import("./preview-UrNeZ6co.js"),__vite__mapDeps([115,44]),import.meta.url),t(()=>import("./preview-bEa2SesL.js"),__vite__mapDeps([]),import.meta.url),t(()=>import("./preview-ET9V_h4u.js"),__vite__mapDeps([116,2,3,43,42,5,17,33,44,113,117,111,13,6,107,118]),import.meta.url)]);return v(e)};window.__STORYBOOK_PREVIEW__=window.__STORYBOOK_PREVIEW__||new L;window.__STORYBOOK_STORY_STORE__=window.__STORYBOOK_STORY_STORE__||window.__STORYBOOK_PREVIEW__.storyStore;window.__STORYBOOK_CLIENT_API__=window.__STORYBOOK_CLIENT_API__||new I({storyStore:window.__STORYBOOK_PREVIEW__.storyStore});window.__STORYBOOK_PREVIEW__.initialize({importFn:P,getProjectAnnotations:A});export{t as _}; +import"../sb-preview/runtime.js";(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))a(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const _ of o.addedNodes)_.tagName==="LINK"&&_.rel==="modulepreload"&&a(_)}).observe(document,{childList:!0,subtree:!0});function m(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerPolicy&&(o.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?o.credentials="include":r.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function a(r){if(r.ep)return;r.ep=!0;const o=m(r);fetch(r.href,o)}})();const d="modulepreload",O=function(e,s){return new URL(e,s).href},p={},t=function(s,m,a){let r=Promise.resolve();if(m&&m.length>0){const o=document.getElementsByTagName("link");r=Promise.all(m.map(_=>{if(_=O(_,a),_ in p)return;p[_]=!0;const n=_.endsWith(".css"),E=n?'[rel="stylesheet"]':"";if(!!a)for(let c=o.length-1;c>=0;c--){const u=o[c];if(u.href===_&&(!n||u.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${_}"]${E}`))return;const i=document.createElement("link");if(i.rel=n?"stylesheet":d,n||(i.as="script",i.crossOrigin=""),i.href=_,document.head.appendChild(i),n)return new Promise((c,u)=>{i.addEventListener("load",c),i.addEventListener("error",()=>u(new Error(`Unable to preload CSS for ${_}`)))})}))}return r.then(()=>s()).catch(o=>{const _=new Event("vite:preloadError",{cancelable:!0});if(_.payload=o,window.dispatchEvent(_),!_.defaultPrevented)throw o})},{createBrowserChannel:R}=__STORYBOOK_MODULE_CHANNELS__,{addons:T}=__STORYBOOK_MODULE_PREVIEW_API__,l=R({page:"preview"});T.setChannel(l);window.__STORYBOOK_ADDONS_CHANNEL__=l;window.CONFIG_TYPE==="DEVELOPMENT"&&(window.__STORYBOOK_SERVER_CHANNEL__=l);const y={"./src/Alert/alert.stories.tsx":async()=>t(()=>import("./alert.stories-qWuLyyMi.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25]),import.meta.url),"./src/Autocomplete/autocomplete.stories.tsx":async()=>t(()=>import("./autocomplete.stories-njN_Od2D.js"),__vite__mapDeps([26,2,3,4,5,6,8,27,28,29,16,17,30,18,19,14,31,21,32,33,34,35,36,37,10,11,20,38]),import.meta.url),"./src/Avatar/avatar.stories.tsx":async()=>t(()=>import("./avatar.stories-RPBIGCzg.js"),__vite__mapDeps([39,2,3,4,5,6,14,40,19,8]),import.meta.url),"./src/Box/box.mdx":async()=>t(()=>import("./box-8MqCLq4e.js"),__vite__mapDeps([41,2,3,42,5,17,33,43,44,45,14,4,6,46]),import.meta.url),"./src/Box/box.stories.tsx":async()=>t(()=>import("./box.stories-tWlYbFhl.js").then(e=>e.S),__vite__mapDeps([45,2,3,14,4,5,6]),import.meta.url),"./src/Button/button.mdx":async()=>t(()=>import("./button-T3PZHFwv.js"),__vite__mapDeps([47,2,3,42,5,17,33,43,44,48,10,4,6,11,8,38,22,46]),import.meta.url),"./src/Button/button.stories.tsx":async()=>t(()=>import("./button.stories-cxppwt7f.js").then(e=>e.S),__vite__mapDeps([48,2,3,10,4,5,6,11,8,38,22]),import.meta.url),"./src/Checkbox/checkbox.stories.tsx":async()=>t(()=>import("./checkbox.stories-DUvGPKez.js"),__vite__mapDeps([49,2,3,4,5,6,37,50,51,52]),import.meta.url),"./src/Chip/chip.stories.tsx":async()=>t(()=>import("./chip.stories-zSSHeX_h.js"),__vite__mapDeps([53,34,2,3,4,5,6,8,35]),import.meta.url),"./src/CircularProgress/circular_progress.stories.tsx":async()=>t(()=>import("./circular_progress.stories-mj-DrL5M.js"),__vite__mapDeps([54,25,2,3,13,6,5,4]),import.meta.url),"./src/Collapse/collapse.stories.tsx":async()=>t(()=>import("./collapse.stories-UU7XJwtn.js"),__vite__mapDeps([55,2,3,56,4,5,6,32,33,17,8]),import.meta.url),"./src/Dialog/dialog.stories.tsx":async()=>t(()=>import("./dialog.stories-nzXpvg8s.js"),__vite__mapDeps([57,2,3,4,5,6,14,30,18,17,19,31,21,32,33,25,13,8,9,10,11,12,15,16,20,22,56,1,7,23,24,36,37]),import.meta.url),"./src/Drawer/drawer.stories.tsx":async()=>t(()=>import("./drawer.stories-EOt4eNZa.js"),__vite__mapDeps([58,2,3,4,5,6,30,18,17,19,14,31,21,32,33,59,8,10,11]),import.meta.url),"./src/Fab/fab.stories.tsx":async()=>t(()=>import("./fab.stories-__ff0ooV.js"),__vite__mapDeps([60,2,3,4,5,6,11,8,38]),import.meta.url),"./src/Fade/fade.stories.tsx":async()=>t(()=>import("./fade.stories-pTSGvgRz.js"),__vite__mapDeps([61,2,3,31,21,32,33,17,8,4,5,6]),import.meta.url),"./src/Flex/flex.mdx":async()=>t(()=>import("./flex-cu_j1HuE.js"),__vite__mapDeps([62,2,3,42,5,17,33,43,44,63,7,4,6,14,46]),import.meta.url),"./src/Flex/flex.stories.tsx":async()=>t(()=>import("./flex.stories-QJ73QK6N.js").then(e=>e.S),__vite__mapDeps([63,2,3,7,4,5,6,14]),import.meta.url),"./src/IconButton/icon_button.stories.tsx":async()=>t(()=>import("./icon_button.stories-cIfhWNe2.js"),__vite__mapDeps([64,2,3,9,4,5,6,10,11,8,12,13,14,15,16,17,18,19,20,21,50]),import.meta.url),"./src/Image/image.stories.tsx":async()=>t(()=>import("./image.stories-nG7hijn2.js"),__vite__mapDeps([65,2,3,40,19]),import.meta.url),"./src/LinearProgress/linear_progress.stories.tsx":async()=>t(()=>import("./linear_progress.stories-tzdMrZkj.js"),__vite__mapDeps([66,2,3,13,6,5,4,14]),import.meta.url),"./src/Menu/menu.stories.tsx":async()=>t(()=>import("./menu.stories-KhVPZRpJ.js"),__vite__mapDeps([67,2,3,4,5,6,29,16,17,30,18,19,14,31,21,32,33,68,28,8,69,15,10,11,38]),import.meta.url),"./src/MenuList/menu_list.stories.tsx":async()=>t(()=>import("./menu_list.stories-cd6De2y9.js"),__vite__mapDeps([70,2,3,68,4,5,6,19,21,28,8,24]),import.meta.url),"./src/Portal/portal.stories.tsx":async()=>t(()=>import("./portal.stories-tkS7ERA0.js"),__vite__mapDeps([71,18,3,17,19]),import.meta.url),"./src/Radio/radio.stories.tsx":async()=>t(()=>import("./radio.stories-Zq0tShcQ.js"),__vite__mapDeps([72,2,3,4,5,6,37,73,52]),import.meta.url),"./src/Select/select.stories.tsx":async()=>t(()=>import("./select.stories-nbNePVHu.js"),__vite__mapDeps([74,2,3,4,5,6,8,27]),import.meta.url),"./src/Skeleton/skeleton.stories.tsx":async()=>t(()=>import("./skeleton.stories-H1bUOjiA.js"),__vite__mapDeps([75,2,3,13,6,5,4,14]),import.meta.url),"./src/Slide/slide.stories.tsx":async()=>t(()=>import("./slide.stories-H832NiBd.js"),__vite__mapDeps([76,2,3,59,21,32,33,17,8,4,5,6]),import.meta.url),"./src/Slider/slider.stories.tsx":async()=>t(()=>import("./slider.stories-ulRFP1Yt.js"),__vite__mapDeps([77,2,3,4,5,6]),import.meta.url),"./src/Switch/switch.stories.tsx":async()=>t(()=>import("./switch.stories-iavirUb4.js"),__vite__mapDeps([78,2,3,4,5,6,14,37,52]),import.meta.url),"./src/Tabs/tabs.stories.tsx":async()=>t(()=>import("./tabs.stories-m2AC__L2.js"),__vite__mapDeps([79,2,3,4,5,6,8]),import.meta.url),"./src/TextField/text_field.mdx":async()=>t(()=>import("./text_field-Uby6p_vB.js"),__vite__mapDeps([80,2,3,42,5,17,33,43,44,81,36,4,6,37,8,46]),import.meta.url),"./src/TextField/text_field.stories.tsx":async()=>t(()=>import("./text_field.stories-YznOcLNQ.js").then(e=>e.S),__vite__mapDeps([81,2,3,36,4,5,6,37,8]),import.meta.url),"./src/TextareaField/textarea_field.stories.tsx":async()=>t(()=>import("./textarea_field.stories-bZxN2We0.js"),__vite__mapDeps([82,2,3,4,5,6,37,8]),import.meta.url),"./src/Toast/use_toast.mdx":async()=>t(()=>import("./use_toast-9H8D00Ta.js"),__vite__mapDeps([83,2,3,42,5,17,33,43,44,84,4,6,31,21,32,1,7,8,9,10,11,12,13,14,15,16,18,19,20,22,23,24,25,46]),import.meta.url),"./src/Toast/use_toast.stories.tsx":async()=>t(()=>import("./use_toast.stories-Wma7J8sM.js"),__vite__mapDeps([84,2,3,4,5,6,31,21,32,33,17,1,7,8,9,10,11,12,13,14,15,16,18,19,20,22,23,24,25]),import.meta.url),"./src/Tooltip/tooltip.stories.tsx":async()=>t(()=>import("./tooltip.stories-u5U2SB0w.js"),__vite__mapDeps([85,2,3,12,13,6,5,4,14,15,16,17,18,19,20,21,8,10,11]),import.meta.url),"./src/Typography/typography.mdx":async()=>t(()=>import("./typography-IdV7ELqG.js"),__vite__mapDeps([86,2,3,42,5,17,33,43,44,87,8,4,6,46]),import.meta.url),"./src/Typography/typography.stories.tsx":async()=>t(()=>import("./typography.stories-WwgdZou_.js").then(e=>e.S),__vite__mapDeps([87,2,3,8,4,5,6]),import.meta.url),"./src/hooks/use_clipboard.mdx":async()=>t(()=>import("./use_clipboard-fuG7IgBv.js"),__vite__mapDeps([88,2,3,42,5,17,33,43,44,89,46]),import.meta.url),"./src/hooks/use_clipboard.stories.tsx":async()=>t(()=>import("./use_clipboard.stories-FxmETqQd.js"),__vite__mapDeps([89,2,3]),import.meta.url),"./src/hooks/use_controllable.mdx":async()=>t(()=>import("./use_controllable-g6D_DU6e.js"),__vite__mapDeps([90,2,3,42,5,17,33,43,44,91,20,46]),import.meta.url),"./src/hooks/use_controllable.stories.tsx":async()=>t(()=>import("./use_controllable.stories-6lKFGi8w.js"),__vite__mapDeps([91,2,3,20]),import.meta.url),"./src/hooks/use_debounce_callback.mdx":async()=>t(()=>import("./use_debounce_callback-8zC9nznE.js"),__vite__mapDeps([92,2,3,42,5,17,33,43,44,93,46]),import.meta.url),"./src/hooks/use_debounce_callback.stories.tsx":async()=>t(()=>import("./use_debounce_callback.stories-gJPjVzln.js"),__vite__mapDeps([93,2,3]),import.meta.url),"./src/hooks/use_id.mdx":async()=>t(()=>import("./use_id-2AGBPqL1.js"),__vite__mapDeps([94,2,3,42,5,17,33,43,44,95,37,46]),import.meta.url),"./src/hooks/use_id.stories.tsx":async()=>t(()=>import("./use_id.stories-dkxlW0IT.js"),__vite__mapDeps([95,2,3,37]),import.meta.url),"./src/hooks/use_intersection_observer.mdx":async()=>t(()=>import("./use_intersection_observer-7wp-IbdN.js"),__vite__mapDeps([96,2,3,42,5,17,33,43,44,97,46]),import.meta.url),"./src/hooks/use_intersection_observer.stories.tsx":async()=>t(()=>import("./use_intersection_observer.stories-0m2hRJye.js"),__vite__mapDeps([97,2,3]),import.meta.url),"./src/hooks/use_media_query.mdx":async()=>t(()=>import("./use_media_query-v5w3HwaR.js"),__vite__mapDeps([98,2,3,42,5,17,33,43,44,99,19,46]),import.meta.url),"./src/hooks/use_media_query.stories.tsx":async()=>t(()=>import("./use_media_query.stories-1hw5Yksf.js"),__vite__mapDeps([99,2,3,19]),import.meta.url),"./src/hooks/use_window_event_listener.mdx":async()=>t(()=>import("./use_window_event_listener-PnJLkh7M.js"),__vite__mapDeps([100,2,3,42,5,17,33,43,44,101,46]),import.meta.url),"./src/hooks/use_window_event_listener.stories.tsx":async()=>t(()=>import("./use_window_event_listener.stories-gBkYrAeP.js"),__vite__mapDeps([101,2,3]),import.meta.url),"./src/icons/icons.mdx":async()=>t(()=>import("./icons-5VVeC-84.js"),__vite__mapDeps([102,2,3,42,5,17,33,43,44,27,69,23,50,22,35,73,51,38,24,46]),import.meta.url),"./src/installation.mdx":async()=>t(()=>import("./installation-q08WuDdZ.js"),__vite__mapDeps([103,2,3,42,5,17,33,43,44,46]),import.meta.url),"./src/styles/css_variables.mdx":async()=>t(()=>import("./css_variables-SbHOGUr0.js"),__vite__mapDeps([104,2,3,42,5,17,33,43,44,46]),import.meta.url),"./src/styles/dark_mode.mdx":async()=>t(()=>import("./dark_mode-gZWXgleE.js"),__vite__mapDeps([105,2,3,42,5,17,33,43,44,106,107,8,4,6,46]),import.meta.url),"./src/styles/palette.mdx":async()=>t(()=>import("./palette-MA7Oct7p.js"),__vite__mapDeps([108,2,3,42,5,17,33,43,44,106,107,8,4,6,46]),import.meta.url),"./src/styles/palette.stories.tsx":async()=>t(()=>import("./palette.stories-SUHfYI79.js"),__vite__mapDeps([106,2,3,107,8,4,5,6]),import.meta.url),"./src/styles/palette_playground.mdx":async()=>t(()=>import("./palette_playground-x4ZsEIzF.js"),__vite__mapDeps([109,2,3,42,5,17,33,43,44,106,107,8,4,6,46]),import.meta.url)};async function P(e){return y[e]()}const{composeConfigs:v,PreviewWeb:L,ClientApi:I}=__STORYBOOK_MODULE_PREVIEW_API__,A=async()=>{const e=await Promise.all([t(()=>import("./entry-preview-SrpoVIh6.js"),__vite__mapDeps([110,3,111,17]),import.meta.url),t(()=>import("./entry-preview-docs-GtvwqbkA.js"),__vite__mapDeps([112,43,3,44,113]),import.meta.url),t(()=>import("./preview-_O-dSE26.js"),__vite__mapDeps([]),import.meta.url),t(()=>import("./preview-gAkc9ubh.js"),__vite__mapDeps([114,44]),import.meta.url),t(()=>import("./preview-TkXSQy1x.js"),__vite__mapDeps([]),import.meta.url),t(()=>import("./preview-UrNeZ6co.js"),__vite__mapDeps([115,44]),import.meta.url),t(()=>import("./preview-bEa2SesL.js"),__vite__mapDeps([]),import.meta.url),t(()=>import("./preview-3AQBzxjc.js"),__vite__mapDeps([116,2,3,43,42,5,17,33,44,113,117,111,13,6,107,118]),import.meta.url)]);return v(e)};window.__STORYBOOK_PREVIEW__=window.__STORYBOOK_PREVIEW__||new L;window.__STORYBOOK_STORY_STORE__=window.__STORYBOOK_STORY_STORE__||window.__STORYBOOK_PREVIEW__.storyStore;window.__STORYBOOK_CLIENT_API__=window.__STORYBOOK_CLIENT_API__||new I({storyStore:window.__STORYBOOK_PREVIEW__.storyStore});window.__STORYBOOK_PREVIEW__.initialize({importFn:P,getProjectAnnotations:A});export{t as _}; function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["./alert.stories--0ZXPdyW.js","./alert-wuCjLQa6.js","./jsx-runtime-DtaoT6pD.js","./index-OjgoNOWw.js","./emotion-styled.browser.esm-jsqElTi7.js","./emotion-use-insertion-effect-with-fallbacks.browser.esm-xK8HOd_o.js","./emotion-element-c39617d8.browser.esm-upVMHClS.js","./flex_container-Aq3v_kS5.js","./typography-be8ycqzM.js","./icon_button-WreoF-Ie.js","./button-6fPk4QP_.js","./button_base-UbkVh8Vj.js","./tooltip-J9P4FoiT.js","./emotion-react.browser.esm-8gWn0FvA.js","./box-bq1vF_Hs.js","./popper-YlbGwMrF.js","./usePopper--g5aU53a.js","./index-mQqIOHEI.js","./portal-GS-MOYPJ.js","./use_enhanced_effect-jDxBKzmp.js","./use_controllable-CY5ZQbVr.js","./use_merged_ref-U30BPCzO.js","./close_icon-Bp311Jgy.js","./close_circle_icon-XpY_jUxJ.js","./warning_icon-iK8dORZk.js","./circular_progress-_GSDl8M_.js","./autocomplete.stories-njN_Od2D.js","./arrow_drop_down_icon-3Bz4V8YA.js","./menu_item-HckMG_6t.js","./popover-467EmmEj.js","./modal-X_VPAfNS.js","./fade-6tFb4vlS.js","./Transition-ZSq31Zhi.js","./inheritsLoose-Y9jOMJLd.js","./chip-JiwRkfVy.js","./close_small_icon-bQ1Dr2hp.js","./text_field-U_MB4Wg6.js","./use_id-vDNgflVU.js","./plus_icon-u0qdKX2a.js","./avatar.stories-RPBIGCzg.js","./use_image-zwQgCXju.js","./box-r6mhcPp2.js","./index-FEzJ-IFI.js","./index-LnHysSno.js","./index-BdDYuicC.js","./box.stories-tWlYbFhl.js","./index-82O-B91n.js","./button-bXCCf1hn.js","./button.stories-cxppwt7f.js","./checkbox.stories-DUvGPKez.js","./check_icon-I3dJgzLy.js","./minus_icon-CfpksHZZ.js","./opacity-VJDgERWe.js","./chip.stories-zSSHeX_h.js","./circular_progress.stories-WgGr9h5F.js","./collapse.stories-UU7XJwtn.js","./collapse-qB0oYkul.js","./dialog.stories-SV6-C4zt.js","./drawer.stories-EOt4eNZa.js","./slide-XHH0EouW.js","./fab.stories-__ff0ooV.js","./fade.stories-pTSGvgRz.js","./flex-tL64lLQS.js","./flex.stories-QJ73QK6N.js","./icon_button.stories-cIfhWNe2.js","./image.stories-nG7hijn2.js","./linear_progress.stories-tzdMrZkj.js","./menu.stories-KhVPZRpJ.js","./menu_list-Mjyb_7-K.js","./arrow_rigth-5Kd6hOe6.js","./menu_list.stories-cd6De2y9.js","./portal.stories-tkS7ERA0.js","./radio.stories-Zq0tShcQ.js","./dot_icon-vd4UO1QB.js","./select.stories-nbNePVHu.js","./skeleton.stories-H1bUOjiA.js","./slide.stories-H832NiBd.js","./slider.stories-ulRFP1Yt.js","./switch.stories-iavirUb4.js","./tabs.stories-m2AC__L2.js","./text_field-bvCGfaa8.js","./text_field.stories-YznOcLNQ.js","./textarea_field.stories-bZxN2We0.js","./use_toast-LcPwkpph.js","./use_toast.stories-1u41Ynxd.js","./tooltip.stories-u5U2SB0w.js","./typography-Ln1-jNuv.js","./typography.stories-WwgdZou_.js","./use_clipboard-WpJb47xt.js","./use_clipboard.stories-FxmETqQd.js","./use_controllable-I2U_MAnR.js","./use_controllable.stories-6lKFGi8w.js","./use_debounce_callback-IpSqrGlC.js","./use_debounce_callback.stories-gJPjVzln.js","./use_id-eQS5NVzN.js","./use_id.stories-dkxlW0IT.js","./use_intersection_observer-6EWcUDxF.js","./use_intersection_observer.stories-0m2hRJye.js","./use_media_query-Jz7KgWET.js","./use_media_query.stories-1hw5Yksf.js","./use_window_event_listener-gJGnqsLg.js","./use_window_event_listener.stories-gBkYrAeP.js","./icons-jRSpjZLf.js","./installation-X3U8DJuW.js","./css_variables-haQ1F5tC.js","./dark_mode-99U6GHUG.js","./palette.stories-SUHfYI79.js","./utils-ur_GzcA6.js","./palette-wqcdcj41.js","./palette_playground-BQ1LPSdi.js","./entry-preview-SrpoVIh6.js","./react-18-DyM-o0Ps.js","./entry-preview-docs-GtvwqbkA.js","./isPlainObject-MVcjkst_.js","./preview-gAkc9ubh.js","./preview-UrNeZ6co.js","./preview-ET9V_h4u.js","./chunk-HLWAVYOI-Ycm5PLJ1.js","./preview-EzMMaFAI.css"] + __vite__mapDeps.viteFileDeps = ["./alert.stories-qWuLyyMi.js","./alert-5kz5l48o.js","./jsx-runtime-DtaoT6pD.js","./index-OjgoNOWw.js","./emotion-styled.browser.esm-jsqElTi7.js","./emotion-use-insertion-effect-with-fallbacks.browser.esm-xK8HOd_o.js","./emotion-element-c39617d8.browser.esm-upVMHClS.js","./flex_container-Aq3v_kS5.js","./typography-be8ycqzM.js","./icon_button-WreoF-Ie.js","./button-6fPk4QP_.js","./button_base-UbkVh8Vj.js","./tooltip-J9P4FoiT.js","./emotion-react.browser.esm-8gWn0FvA.js","./box-bq1vF_Hs.js","./popper-YlbGwMrF.js","./usePopper--g5aU53a.js","./index-mQqIOHEI.js","./portal-GS-MOYPJ.js","./use_enhanced_effect-jDxBKzmp.js","./use_controllable-CY5ZQbVr.js","./use_merged_ref-U30BPCzO.js","./close_icon-Bp311Jgy.js","./close_circle_icon-XpY_jUxJ.js","./warning_icon-iK8dORZk.js","./circular_progress-JxgBeK0r.js","./autocomplete.stories-njN_Od2D.js","./arrow_drop_down_icon-3Bz4V8YA.js","./menu_item-HckMG_6t.js","./popover-467EmmEj.js","./modal-X_VPAfNS.js","./fade-6tFb4vlS.js","./Transition-ZSq31Zhi.js","./inheritsLoose-Y9jOMJLd.js","./chip-JiwRkfVy.js","./close_small_icon-bQ1Dr2hp.js","./text_field-U_MB4Wg6.js","./use_id-vDNgflVU.js","./plus_icon-u0qdKX2a.js","./avatar.stories-RPBIGCzg.js","./use_image-zwQgCXju.js","./box-8MqCLq4e.js","./index-S9SFSHLo.js","./index-LnHysSno.js","./index-BdDYuicC.js","./box.stories-tWlYbFhl.js","./index-82O-B91n.js","./button-T3PZHFwv.js","./button.stories-cxppwt7f.js","./checkbox.stories-DUvGPKez.js","./check_icon-I3dJgzLy.js","./minus_icon-CfpksHZZ.js","./opacity-VJDgERWe.js","./chip.stories-zSSHeX_h.js","./circular_progress.stories-mj-DrL5M.js","./collapse.stories-UU7XJwtn.js","./collapse-qB0oYkul.js","./dialog.stories-nzXpvg8s.js","./drawer.stories-EOt4eNZa.js","./slide-XHH0EouW.js","./fab.stories-__ff0ooV.js","./fade.stories-pTSGvgRz.js","./flex-cu_j1HuE.js","./flex.stories-QJ73QK6N.js","./icon_button.stories-cIfhWNe2.js","./image.stories-nG7hijn2.js","./linear_progress.stories-tzdMrZkj.js","./menu.stories-KhVPZRpJ.js","./menu_list-Mjyb_7-K.js","./arrow_rigth-5Kd6hOe6.js","./menu_list.stories-cd6De2y9.js","./portal.stories-tkS7ERA0.js","./radio.stories-Zq0tShcQ.js","./dot_icon-vd4UO1QB.js","./select.stories-nbNePVHu.js","./skeleton.stories-H1bUOjiA.js","./slide.stories-H832NiBd.js","./slider.stories-ulRFP1Yt.js","./switch.stories-iavirUb4.js","./tabs.stories-m2AC__L2.js","./text_field-Uby6p_vB.js","./text_field.stories-YznOcLNQ.js","./textarea_field.stories-bZxN2We0.js","./use_toast-9H8D00Ta.js","./use_toast.stories-Wma7J8sM.js","./tooltip.stories-u5U2SB0w.js","./typography-IdV7ELqG.js","./typography.stories-WwgdZou_.js","./use_clipboard-fuG7IgBv.js","./use_clipboard.stories-FxmETqQd.js","./use_controllable-g6D_DU6e.js","./use_controllable.stories-6lKFGi8w.js","./use_debounce_callback-8zC9nznE.js","./use_debounce_callback.stories-gJPjVzln.js","./use_id-2AGBPqL1.js","./use_id.stories-dkxlW0IT.js","./use_intersection_observer-7wp-IbdN.js","./use_intersection_observer.stories-0m2hRJye.js","./use_media_query-v5w3HwaR.js","./use_media_query.stories-1hw5Yksf.js","./use_window_event_listener-PnJLkh7M.js","./use_window_event_listener.stories-gBkYrAeP.js","./icons-5VVeC-84.js","./installation-q08WuDdZ.js","./css_variables-SbHOGUr0.js","./dark_mode-gZWXgleE.js","./palette.stories-SUHfYI79.js","./utils-ur_GzcA6.js","./palette-MA7Oct7p.js","./palette_playground-x4ZsEIzF.js","./entry-preview-SrpoVIh6.js","./react-18-DyM-o0Ps.js","./entry-preview-docs-GtvwqbkA.js","./isPlainObject-MVcjkst_.js","./preview-gAkc9ubh.js","./preview-UrNeZ6co.js","./preview-3AQBzxjc.js","./chunk-HLWAVYOI-42WL2HKe.js","./preview-EzMMaFAI.css"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } diff --git a/assets/index-FEzJ-IFI.js b/assets/index-S9SFSHLo.js similarity index 99% rename from assets/index-FEzJ-IFI.js rename to assets/index-S9SFSHLo.js index 27e14b0d..d7e3e337 100644 --- a/assets/index-FEzJ-IFI.js +++ b/assets/index-S9SFSHLo.js @@ -1,4 +1,4 @@ -import{_ as __vitePreload}from"./iframe-Di3G6qoa.js";import{g as getDefaultExportFromCjs,r as reactExports,R as React,c as commonjsGlobal}from"./index-OjgoNOWw.js";import{a as useInsertionEffectWithLayoutFallback,u as useInsertionEffectAlwaysWithSyncFallback,_ as _extends$5}from"./emotion-use-insertion-effect-with-fallbacks.browser.esm-xK8HOd_o.js";import{r as reactDomExports,R as ReactDOM__default}from"./index-mQqIOHEI.js";import{a as _setPrototypeOf$2,_ as _inheritsLoose$2}from"./inheritsLoose-Y9jOMJLd.js";import{q as _baseAssignValue,r as eq_1,K as _castPath,C as _isIndex,c as isObject_1,L as _toKey,M as _baseGet,I as _arrayPush,a as _getPrototype,N as _getSymbols,O as stubArray_1,P as _isPrototype,Q as _arrayLikeKeys,s as isArrayLike_1,R as _baseGetAllKeys,U as _arrayMap,F as _baseIteratee,V as _Set,W as _setToArray,X as _SetCache,Y as _cacheHas,Z as keys_1,b as _root,$ as _Uint8Array,H as _Symbol,a0 as _getTag,i as isObjectLike_1,a1 as _nodeUtilExports,a2 as _baseUnary,y as _Stack,v as isBufferExports,a3 as _getAllKeys,e as isArray_1,S as SNIPPET_RENDERED,k as SourceType,a4 as str}from"./index-LnHysSno.js";import{_ as _default}from"./index-BdDYuicC.js";function _assertThisInitialized$2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var getControlId=e=>`control-${e.replace(/\s+/g,"-")}`,getControlSetterButtonId=e=>`set-${e.replace(/\s+/g,"-")}`;const{global:global$5}=__STORYBOOK_MODULE_GLOBAL__,{logger:logger$3}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var __create$2=Object.create,__defProp$2=Object.defineProperty,__getOwnPropDesc$2=Object.getOwnPropertyDescriptor,__getOwnPropNames$2=Object.getOwnPropertyNames,__getProtoOf$2=Object.getPrototypeOf,__hasOwnProp$2=Object.prototype.hasOwnProperty,__commonJS$2=(e,Ve)=>function(){return Ve||(0,e[__getOwnPropNames$2(e)[0]])((Ve={exports:{}}).exports,Ve),Ve.exports},__copyProps$2=(e,Ve,qe,Ke)=>{if(Ve&&typeof Ve=="object"||typeof Ve=="function")for(let Ye of __getOwnPropNames$2(Ve))!__hasOwnProp$2.call(e,Ye)&&Ye!==qe&&__defProp$2(e,Ye,{get:()=>Ve[Ye],enumerable:!(Ke=__getOwnPropDesc$2(Ve,Ye))||Ke.enumerable});return e},__toESM$2=(e,Ve,qe)=>(qe=e!=null?__create$2(__getProtoOf$2(e)):{},__copyProps$2(Ve||!e||!e.__esModule?__defProp$2(qe,"default",{value:e,enumerable:!0}):qe,e));function _extends$4(){return _extends$4=Object.assign?Object.assign.bind():function(e){for(var Ve=1;Ve"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _construct$2(e,Ve,qe){return _isNativeReflectConstruct$2()?_construct$2=Reflect.construct.bind():_construct$2=function(Ke,Ye,Je){var Xe=[null];Xe.push.apply(Xe,Ye);var et=Function.bind.apply(Ke,Xe),Qe=new et;return Je&&_setPrototypeOf$1(Qe,Je.prototype),Qe},_construct$2.apply(null,arguments)}function _wrapNativeSuper$2(e){var Ve=typeof Map=="function"?new Map:void 0;return _wrapNativeSuper$2=function(qe){if(qe===null||!_isNativeFunction$2(qe))return qe;if(typeof qe!="function")throw new TypeError("Super expression must either be null or a function");if(typeof Ve<"u"){if(Ve.has(qe))return Ve.get(qe);Ve.set(qe,Ke)}function Ke(){return _construct$2(qe,arguments,_getPrototypeOf$2(this).constructor)}return Ke.prototype=Object.create(qe.prototype,{constructor:{value:Ke,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf$1(Ke,qe)},_wrapNativeSuper$2(e)}var ERRORS={1:`Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75 }). +import{_ as __vitePreload}from"./iframe-zHoeYuYN.js";import{g as getDefaultExportFromCjs,r as reactExports,R as React,c as commonjsGlobal}from"./index-OjgoNOWw.js";import{a as useInsertionEffectWithLayoutFallback,u as useInsertionEffectAlwaysWithSyncFallback,_ as _extends$5}from"./emotion-use-insertion-effect-with-fallbacks.browser.esm-xK8HOd_o.js";import{r as reactDomExports,R as ReactDOM__default}from"./index-mQqIOHEI.js";import{a as _setPrototypeOf$2,_ as _inheritsLoose$2}from"./inheritsLoose-Y9jOMJLd.js";import{q as _baseAssignValue,r as eq_1,K as _castPath,C as _isIndex,c as isObject_1,L as _toKey,M as _baseGet,I as _arrayPush,a as _getPrototype,N as _getSymbols,O as stubArray_1,P as _isPrototype,Q as _arrayLikeKeys,s as isArrayLike_1,R as _baseGetAllKeys,U as _arrayMap,F as _baseIteratee,V as _Set,W as _setToArray,X as _SetCache,Y as _cacheHas,Z as keys_1,b as _root,$ as _Uint8Array,H as _Symbol,a0 as _getTag,i as isObjectLike_1,a1 as _nodeUtilExports,a2 as _baseUnary,y as _Stack,v as isBufferExports,a3 as _getAllKeys,e as isArray_1,S as SNIPPET_RENDERED,k as SourceType,a4 as str}from"./index-LnHysSno.js";import{_ as _default}from"./index-BdDYuicC.js";function _assertThisInitialized$2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var getControlId=e=>`control-${e.replace(/\s+/g,"-")}`,getControlSetterButtonId=e=>`set-${e.replace(/\s+/g,"-")}`;const{global:global$5}=__STORYBOOK_MODULE_GLOBAL__,{logger:logger$3}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var __create$2=Object.create,__defProp$2=Object.defineProperty,__getOwnPropDesc$2=Object.getOwnPropertyDescriptor,__getOwnPropNames$2=Object.getOwnPropertyNames,__getProtoOf$2=Object.getPrototypeOf,__hasOwnProp$2=Object.prototype.hasOwnProperty,__commonJS$2=(e,Ve)=>function(){return Ve||(0,e[__getOwnPropNames$2(e)[0]])((Ve={exports:{}}).exports,Ve),Ve.exports},__copyProps$2=(e,Ve,qe,Ke)=>{if(Ve&&typeof Ve=="object"||typeof Ve=="function")for(let Ye of __getOwnPropNames$2(Ve))!__hasOwnProp$2.call(e,Ye)&&Ye!==qe&&__defProp$2(e,Ye,{get:()=>Ve[Ye],enumerable:!(Ke=__getOwnPropDesc$2(Ve,Ye))||Ke.enumerable});return e},__toESM$2=(e,Ve,qe)=>(qe=e!=null?__create$2(__getProtoOf$2(e)):{},__copyProps$2(Ve||!e||!e.__esModule?__defProp$2(qe,"default",{value:e,enumerable:!0}):qe,e));function _extends$4(){return _extends$4=Object.assign?Object.assign.bind():function(e){for(var Ve=1;Ve"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _construct$2(e,Ve,qe){return _isNativeReflectConstruct$2()?_construct$2=Reflect.construct.bind():_construct$2=function(Ke,Ye,Je){var Xe=[null];Xe.push.apply(Xe,Ye);var et=Function.bind.apply(Ke,Xe),Qe=new et;return Je&&_setPrototypeOf$1(Qe,Je.prototype),Qe},_construct$2.apply(null,arguments)}function _wrapNativeSuper$2(e){var Ve=typeof Map=="function"?new Map:void 0;return _wrapNativeSuper$2=function(qe){if(qe===null||!_isNativeFunction$2(qe))return qe;if(typeof qe!="function")throw new TypeError("Super expression must either be null or a function");if(typeof Ve<"u"){if(Ve.has(qe))return Ve.get(qe);Ve.set(qe,Ke)}function Ke(){return _construct$2(qe,arguments,_getPrototypeOf$2(this).constructor)}return Ke.prototype=Object.create(qe.prototype,{constructor:{value:Ke,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf$1(Ke,qe)},_wrapNativeSuper$2(e)}var ERRORS={1:`Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75 }). `,2:`Passed invalid arguments to hsla, please pass multiple numbers e.g. hsla(360, 0.75, 0.4, 0.7) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75, alpha: 0.7 }). @@ -226,9 +226,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho path { fill: currentColor; } -`,Icons=({icon:e,useSymbol:Ve,...qe})=>React.createElement(Svg,{viewBox:"0 0 14 14",width:"14px",height:"14px",...qe},Ve?React.createElement("use",{xlinkHref:`#icon--${e}`}):icons[e]),Symbols=reactExports.memo(function({icons:e=Object.keys(icons)}){return React.createElement(Svg,{viewBox:"0 0 14 14",style:{position:"absolute",width:0,height:0},"data-chromatic":"ignore"},e.map(Ve=>React.createElement("symbol",{id:`icon--${Ve}`,key:Ve},icons[Ve])))}),LEFT_BUTTON=0,isPlainLeftClick=e=>e.button===LEFT_BUTTON&&!e.altKey&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey,cancelled=(e,Ve)=>{isPlainLeftClick(e)&&(e.preventDefault(),Ve(e))},LinkInner=newStyled.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}}:{}),A2=newStyled.a(({theme:e})=>({display:"inline-block",transition:"all 150ms ease-out",textDecoration:"none",color:e.color.secondary,"&:hover, &:focus":{cursor:"pointer",color:curriedDarken$1$1(.07,e.color.secondary),"svg path:not([fill])":{fill:curriedDarken$1$1(.07,e.color.secondary)}},"&:active":{color:curriedDarken$1$1(.1,e.color.secondary),"svg path:not([fill])":{fill:curriedDarken$1$1(.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:Ve,tertiary:qe})=>{let Ke;return Ve&&(Ke=[e.textMutedColor,e.color.dark,e.color.darker]),qe&&(Ke=[e.color.dark,e.color.darkest,e.textMutedColor]),Ke?{color:Ke[0],"svg path:not([fill])":{fill:Ke[0]},"&:hover":{color:Ke[1],"svg path:not([fill])":{fill:Ke[1]}},"&:active":{color:Ke[2],"svg path:not([fill])":{fill:Ke[2]}}}:{}},({nochrome:e})=>e?{color:"inherit","&:hover, &:active":{color:"inherit",textDecoration:"underline"}}:{},({theme:e,inverse:Ve})=>Ve?{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"}:{}),Link2=({cancel:e,children:Ve,onClick:qe,withArrow:Ke,containsIcon:Ye,className:Je,...Xe})=>React.createElement(A2,{...Xe,onClick:qe&&e?et=>cancelled(et,qe):qe,className:Je},React.createElement(LinkInner,{withArrow:Ke,containsIcon:Ye},Ve,Ke&&React.createElement(Icons,{icon:"arrowright"})));Link2.defaultProps={cancel:!0,className:void 0,style:void 0,onClick:void 0,withArrow:!1,containsIcon:!1};var DocumentWrapper=newStyled.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}})),languages=[],Comp=null,LazySyntaxHighlighter=reactExports.lazy(async()=>{let{SyntaxHighlighter:e}=await __vitePreload(()=>import("./syntaxhighlighter-V7JZZA35-pTSUdsJe.js"),__vite__mapDeps([0,1,2,3,4,5,6,7]),import.meta.url);return languages.length>0&&(languages.forEach(Ve=>{e.registerLanguage(...Ve)}),languages=[]),Comp===null&&(Comp=e),{default:Ve=>React.createElement(e,{...Ve})}}),LazySyntaxHighlighterWithFormatter=reactExports.lazy(async()=>{let[{SyntaxHighlighter:e},{formatter:Ve}]=await Promise.all([__vitePreload(()=>import("./syntaxhighlighter-V7JZZA35-pTSUdsJe.js"),__vite__mapDeps([0,1,2,3,4,5,6,7]),import.meta.url),__vitePreload(()=>import("./formatter-SWP5E3XI-n5-NWJeL.js"),__vite__mapDeps([8,1,2,3,4,5,6,7]),import.meta.url)]);return languages.length>0&&(languages.forEach(qe=>{e.registerLanguage(...qe)}),languages=[]),Comp===null&&(Comp=e),{default:qe=>React.createElement(e,{...qe,formatter:Ve})}}),SyntaxHighlighter2=e=>React.createElement(reactExports.Suspense,{fallback:React.createElement("div",null)},e.format!==!1?React.createElement(LazySyntaxHighlighterWithFormatter,{...e}):React.createElement(LazySyntaxHighlighter,{...e}));SyntaxHighlighter2.registerLanguage=(...e)=>{if(Comp!==null){Comp.registerLanguage(...e);return}languages.push(e)};var toNumber=e=>typeof e=="number"?e:Number(e),Container=newStyled.div(({theme:e,col:Ve,row:qe=1})=>Ve?{display:"inline-block",verticalAlign:"inherit","& > *":{marginLeft:Ve*e.layoutMargin,verticalAlign:"inherit"},[`& > *:first-child${ignoreSsrWarning}`]:{marginLeft:0}}:{"& > *":{marginTop:qe*e.layoutMargin},[`& > *:first-child${ignoreSsrWarning}`]:{marginTop:0}},({theme:e,outer:Ve,col:qe,row:Ke})=>{switch(!0){case!!(Ve&&qe):return{marginLeft:Ve*e.layoutMargin,marginRight:Ve*e.layoutMargin};case!!(Ve&&Ke):return{marginTop:Ve*e.layoutMargin,marginBottom:Ve*e.layoutMargin};default:return{}}}),Spaced=({col:e,row:Ve,outer:qe,children:Ke,...Ye})=>{let Je=toNumber(typeof qe=="number"||!qe?qe:e||Ve);return React.createElement(Container,{col:e,row:Ve,outer:Je,...Ye},Ke)},Title$1=newStyled.div(({theme:e})=>({fontWeight:e.typography.weight.bold})),Desc=newStyled.div(),Message=newStyled.div(({theme:e})=>({padding:30,textAlign:"center",color:e.color.defaultText,fontSize:e.typography.size.s2-1})),Placeholder=({children:e,...Ve})=>{let[qe,Ke]=reactExports.Children.toArray(e);return React.createElement(Message,{...Ve},React.createElement(Title$1,null,qe),Ke&&React.createElement(Desc,null,Ke))},ZoomElementWrapper=newStyled.div(({scale:e=1,elementHeight:Ve})=>({height:Ve||"auto",transformOrigin:"top left",transform:`scale(${1/e})`}));function ZoomElement({scale:e,children:Ve}){let qe=reactExports.useRef(null),[Ke,Ye]=reactExports.useState(0),Je=reactExports.useCallback(({height:Xe})=>{Xe&&Ye(Xe/e)},[e]);return reactExports.useEffect(()=>{qe.current&&Ye(qe.current.getBoundingClientRect().height)},[e]),useResizeObserver({ref:qe,onResize:Je}),React.createElement(ZoomElementWrapper,{scale:e,elementHeight:Ke},React.createElement("div",{ref:qe,className:"innerZoomElementWrapper"},Ve))}var ZoomIFrame=class extends reactExports.Component{constructor(){super(...arguments),this.iframe=null}componentDidMount(){let{iFrameRef:e}=this.props;this.iframe=e.current}shouldComponentUpdate(e){let{scale:Ve,active:qe}=this.props;return Ve!==e.scale&&this.setIframeInnerZoom(e.scale),qe!==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 React.createElement(React.Fragment,null,e)}},Zoom$1={Element:ZoomElement,IFrame:ZoomIFrame},{document:document2$1}=global$2,ErrorName=newStyled.strong(({theme:e})=>({color:e.color.orange})),ErrorImportant=newStyled.strong(({theme:e})=>({color:e.color.ancillary,textDecoration:"underline"})),ErrorDetail=newStyled.em(({theme:e})=>({color:e.textMutedColor})),firstLineRegex=/(Error): (.*)\n/,linesRegexChromium=/at (?:(.*) )?\(?(.+)\)?/,linesRegexFirefox=/([^@]+)?(?:\/<)?@(.+)?/,linesRegexSafari=/([^@]+)?@(.+)?/,ErrorFormatter=({error:e})=>{if(!e)return React.createElement(reactExports.Fragment,null,"This error has no stack or message");if(!e.stack)return React.createElement(reactExports.Fragment,null,e.message||"This error has no stack or message");let Ve=e.stack.toString();Ve&&e.message&&!Ve.includes(e.message)&&(Ve=`Error: ${e.message} +`,Icons=({icon:e,useSymbol:Ve,...qe})=>React.createElement(Svg,{viewBox:"0 0 14 14",width:"14px",height:"14px",...qe},Ve?React.createElement("use",{xlinkHref:`#icon--${e}`}):icons[e]),Symbols=reactExports.memo(function({icons:e=Object.keys(icons)}){return React.createElement(Svg,{viewBox:"0 0 14 14",style:{position:"absolute",width:0,height:0},"data-chromatic":"ignore"},e.map(Ve=>React.createElement("symbol",{id:`icon--${Ve}`,key:Ve},icons[Ve])))}),LEFT_BUTTON=0,isPlainLeftClick=e=>e.button===LEFT_BUTTON&&!e.altKey&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey,cancelled=(e,Ve)=>{isPlainLeftClick(e)&&(e.preventDefault(),Ve(e))},LinkInner=newStyled.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}}:{}),A2=newStyled.a(({theme:e})=>({display:"inline-block",transition:"all 150ms ease-out",textDecoration:"none",color:e.color.secondary,"&:hover, &:focus":{cursor:"pointer",color:curriedDarken$1$1(.07,e.color.secondary),"svg path:not([fill])":{fill:curriedDarken$1$1(.07,e.color.secondary)}},"&:active":{color:curriedDarken$1$1(.1,e.color.secondary),"svg path:not([fill])":{fill:curriedDarken$1$1(.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:Ve,tertiary:qe})=>{let Ke;return Ve&&(Ke=[e.textMutedColor,e.color.dark,e.color.darker]),qe&&(Ke=[e.color.dark,e.color.darkest,e.textMutedColor]),Ke?{color:Ke[0],"svg path:not([fill])":{fill:Ke[0]},"&:hover":{color:Ke[1],"svg path:not([fill])":{fill:Ke[1]}},"&:active":{color:Ke[2],"svg path:not([fill])":{fill:Ke[2]}}}:{}},({nochrome:e})=>e?{color:"inherit","&:hover, &:active":{color:"inherit",textDecoration:"underline"}}:{},({theme:e,inverse:Ve})=>Ve?{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"}:{}),Link2=({cancel:e,children:Ve,onClick:qe,withArrow:Ke,containsIcon:Ye,className:Je,...Xe})=>React.createElement(A2,{...Xe,onClick:qe&&e?et=>cancelled(et,qe):qe,className:Je},React.createElement(LinkInner,{withArrow:Ke,containsIcon:Ye},Ve,Ke&&React.createElement(Icons,{icon:"arrowright"})));Link2.defaultProps={cancel:!0,className:void 0,style:void 0,onClick:void 0,withArrow:!1,containsIcon:!1};var DocumentWrapper=newStyled.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}})),languages=[],Comp=null,LazySyntaxHighlighter=reactExports.lazy(async()=>{let{SyntaxHighlighter:e}=await __vitePreload(()=>import("./syntaxhighlighter-V7JZZA35-DBA7IJ-i.js"),__vite__mapDeps([0,1,2,3,4,5,6,7]),import.meta.url);return languages.length>0&&(languages.forEach(Ve=>{e.registerLanguage(...Ve)}),languages=[]),Comp===null&&(Comp=e),{default:Ve=>React.createElement(e,{...Ve})}}),LazySyntaxHighlighterWithFormatter=reactExports.lazy(async()=>{let[{SyntaxHighlighter:e},{formatter:Ve}]=await Promise.all([__vitePreload(()=>import("./syntaxhighlighter-V7JZZA35-DBA7IJ-i.js"),__vite__mapDeps([0,1,2,3,4,5,6,7]),import.meta.url),__vitePreload(()=>import("./formatter-SWP5E3XI-GxE3MvpE.js"),__vite__mapDeps([8,1,2,3,4,5,6,7]),import.meta.url)]);return languages.length>0&&(languages.forEach(qe=>{e.registerLanguage(...qe)}),languages=[]),Comp===null&&(Comp=e),{default:qe=>React.createElement(e,{...qe,formatter:Ve})}}),SyntaxHighlighter2=e=>React.createElement(reactExports.Suspense,{fallback:React.createElement("div",null)},e.format!==!1?React.createElement(LazySyntaxHighlighterWithFormatter,{...e}):React.createElement(LazySyntaxHighlighter,{...e}));SyntaxHighlighter2.registerLanguage=(...e)=>{if(Comp!==null){Comp.registerLanguage(...e);return}languages.push(e)};var toNumber=e=>typeof e=="number"?e:Number(e),Container=newStyled.div(({theme:e,col:Ve,row:qe=1})=>Ve?{display:"inline-block",verticalAlign:"inherit","& > *":{marginLeft:Ve*e.layoutMargin,verticalAlign:"inherit"},[`& > *:first-child${ignoreSsrWarning}`]:{marginLeft:0}}:{"& > *":{marginTop:qe*e.layoutMargin},[`& > *:first-child${ignoreSsrWarning}`]:{marginTop:0}},({theme:e,outer:Ve,col:qe,row:Ke})=>{switch(!0){case!!(Ve&&qe):return{marginLeft:Ve*e.layoutMargin,marginRight:Ve*e.layoutMargin};case!!(Ve&&Ke):return{marginTop:Ve*e.layoutMargin,marginBottom:Ve*e.layoutMargin};default:return{}}}),Spaced=({col:e,row:Ve,outer:qe,children:Ke,...Ye})=>{let Je=toNumber(typeof qe=="number"||!qe?qe:e||Ve);return React.createElement(Container,{col:e,row:Ve,outer:Je,...Ye},Ke)},Title$1=newStyled.div(({theme:e})=>({fontWeight:e.typography.weight.bold})),Desc=newStyled.div(),Message=newStyled.div(({theme:e})=>({padding:30,textAlign:"center",color:e.color.defaultText,fontSize:e.typography.size.s2-1})),Placeholder=({children:e,...Ve})=>{let[qe,Ke]=reactExports.Children.toArray(e);return React.createElement(Message,{...Ve},React.createElement(Title$1,null,qe),Ke&&React.createElement(Desc,null,Ke))},ZoomElementWrapper=newStyled.div(({scale:e=1,elementHeight:Ve})=>({height:Ve||"auto",transformOrigin:"top left",transform:`scale(${1/e})`}));function ZoomElement({scale:e,children:Ve}){let qe=reactExports.useRef(null),[Ke,Ye]=reactExports.useState(0),Je=reactExports.useCallback(({height:Xe})=>{Xe&&Ye(Xe/e)},[e]);return reactExports.useEffect(()=>{qe.current&&Ye(qe.current.getBoundingClientRect().height)},[e]),useResizeObserver({ref:qe,onResize:Je}),React.createElement(ZoomElementWrapper,{scale:e,elementHeight:Ke},React.createElement("div",{ref:qe,className:"innerZoomElementWrapper"},Ve))}var ZoomIFrame=class extends reactExports.Component{constructor(){super(...arguments),this.iframe=null}componentDidMount(){let{iFrameRef:e}=this.props;this.iframe=e.current}shouldComponentUpdate(e){let{scale:Ve,active:qe}=this.props;return Ve!==e.scale&&this.setIframeInnerZoom(e.scale),qe!==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 React.createElement(React.Fragment,null,e)}},Zoom$1={Element:ZoomElement,IFrame:ZoomIFrame},{document:document2$1}=global$2,ErrorName=newStyled.strong(({theme:e})=>({color:e.color.orange})),ErrorImportant=newStyled.strong(({theme:e})=>({color:e.color.ancillary,textDecoration:"underline"})),ErrorDetail=newStyled.em(({theme:e})=>({color:e.textMutedColor})),firstLineRegex=/(Error): (.*)\n/,linesRegexChromium=/at (?:(.*) )?\(?(.+)\)?/,linesRegexFirefox=/([^@]+)?(?:\/<)?@(.+)?/,linesRegexSafari=/([^@]+)?@(.+)?/,ErrorFormatter=({error:e})=>{if(!e)return React.createElement(reactExports.Fragment,null,"This error has no stack or message");if(!e.stack)return React.createElement(reactExports.Fragment,null,e.message||"This error has no stack or message");let Ve=e.stack.toString();Ve&&e.message&&!Ve.includes(e.message)&&(Ve=`Error: ${e.message} -${Ve}`);let qe=Ve.match(firstLineRegex);if(!qe)return React.createElement(reactExports.Fragment,null,Ve);let[,Ke,Ye]=qe,Je=Ve.split(/\n/).slice(1),[,...Xe]=Je.map(et=>{let Qe=et.match(linesRegexChromium)||et.match(linesRegexFirefox)||et.match(linesRegexSafari);return Qe?{name:(Qe[1]||"").replace("/<",""),location:Qe[2].replace(document2$1.location.origin,"")}:null}).filter(Boolean);return React.createElement(reactExports.Fragment,null,React.createElement("span",null,Ke),": ",React.createElement(ErrorName,null,Ye),React.createElement("br",null),Xe.map((et,Qe)=>et.name?React.createElement(reactExports.Fragment,{key:Qe}," ","at ",React.createElement(ErrorImportant,null,et.name)," (",React.createElement(ErrorDetail,null,et.location),")",React.createElement("br",null)):React.createElement(reactExports.Fragment,{key:Qe}," ","at ",React.createElement(ErrorDetail,null,et.location),React.createElement("br",null))))},ButtonWrapper=newStyled.button(({small:e,theme:Ve})=>({border:0,borderRadius:"3em",cursor:"pointer",display:"inline-block",overflow:"hidden",padding:e?"8px 16px":"13px 20px",position:"relative",textAlign:"center",textDecoration:"none",transitionProperty:"background, box-shadow",transitionDuration:"150ms",transitionTimingFunction:"ease-out",verticalAlign:"top",whiteSpace:"nowrap",userSelect:"none",opacity:1,margin:0,background:"transparent",fontSize:`${e?Ve.typography.size.s1:Ve.typography.size.s2-1}px`,fontWeight:Ve.typography.weight.bold,lineHeight:"1",svg:{display:"inline-block",height:e?12:14,width:e?12:14,verticalAlign:"top",marginRight:e?4:6,marginTop:e?0:-1,marginBottom:e?0:-1,pointerEvents:"none",path:{fill:"currentColor"}}}),({disabled:e})=>e?{cursor:"not-allowed !important",opacity:.5,"&:hover":{transform:"none"}}:{},({containsIcon:e,small:Ve})=>e?{svg:{display:"block",margin:0},...Ve?{padding:10}:{padding:13}}:{},({theme:e,primary:Ve,secondary:qe,gray:Ke})=>{let Ye;return Ke?Ye=e.color.mediumlight:qe?Ye=e.color.secondary:Ve&&(Ye=e.color.primary),Ye?{background:Ye,color:Ke?e.color.darkest:e.color.lightest,"&:hover":{background:curriedDarken$1$1(.05,Ye)},"&:active":{boxShadow:"rgba(0, 0, 0, 0.1) 0 0 0 3em inset"},"&:focus":{boxShadow:`${rgba$1(Ye,1)} 0 1px 9px 2px`,outline:"none"},"&:focus:hover":{boxShadow:`${rgba$1(Ye,.2)} 0 8px 18px 0px`}}:{}},({theme:e,tertiary:Ve,inForm:qe,small:Ke})=>Ve?{background:e.button.background,color:e.input.color,boxShadow:`${e.button.border} 0 0 0 1px inset`,borderRadius:e.input.borderRadius,...qe&&Ke?{padding:"10px 16px"}:{},"&:hover":{background:e.base==="light"?curriedDarken$1$1(.02,e.button.background):curriedLighten$1$1(.03,e.button.background),...qe?{}:{boxShadow:"rgba(0,0,0,.2) 0 2px 6px 0, rgba(0,0,0,.1) 0 0 0 1px inset"}},"&:active":{background:e.button.background},"&:focus":{boxShadow:`${rgba$1(e.color.secondary,1)} 0 0 0 1px inset`,outline:"none"}}:{},({theme:e,outline:Ve})=>Ve?{boxShadow:`${curriedTransparentize$1$1(.8,e.color.defaultText)} 0 0 0 1px inset`,color:curriedTransparentize$1$1(.3,e.color.defaultText),background:"transparent","&:hover, &:focus":{boxShadow:`${curriedTransparentize$1$1(.5,e.color.defaultText)} 0 0 0 1px inset`,outline:"none"},"&:active":{boxShadow:`${curriedTransparentize$1$1(.5,e.color.defaultText)} 0 0 0 2px inset`,color:curriedTransparentize$1$1(0,e.color.defaultText)}}:{},({theme:e,outline:Ve,primary:qe})=>{let Ke=e.color.primary;return Ve&&qe?{boxShadow:`${Ke} 0 0 0 1px inset`,color:Ke,"svg path:not([fill])":{fill:Ke},"&:hover":{boxShadow:`${Ke} 0 0 0 1px inset`,background:"transparent"},"&:active":{background:Ke,boxShadow:`${Ke} 0 0 0 1px inset`,color:e.color.tertiary},"&:focus":{boxShadow:`${Ke} 0 0 0 1px inset, ${rgba$1(Ke,.4)} 0 1px 9px 2px`,outline:"none"},"&:focus:hover":{boxShadow:`${Ke} 0 0 0 1px inset, ${rgba$1(Ke,.2)} 0 8px 18px 0px`}}:{}},({theme:e,outline:Ve,primary:qe,secondary:Ke})=>{let Ye;return Ke?Ye=e.color.secondary:qe&&(Ye=e.color.primary),Ve&&Ye?{boxShadow:`${Ye} 0 0 0 1px inset`,color:Ye,"svg path:not([fill])":{fill:Ye},"&:hover":{boxShadow:`${Ye} 0 0 0 1px inset`,background:"transparent"},"&:active":{background:Ye,boxShadow:`${Ye} 0 0 0 1px inset`,color:e.color.tertiary},"&:focus":{boxShadow:`${Ye} 0 0 0 1px inset, ${rgba$1(Ye,.4)} 0 1px 9px 2px`,outline:"none"},"&:focus:hover":{boxShadow:`${Ye} 0 0 0 1px inset, ${rgba$1(Ye,.2)} 0 8px 18px 0px`}}:{}}),ButtonLink=ButtonWrapper.withComponent("a"),Button$1=Object.assign(reactExports.forwardRef(function({isLink:e,children:Ve,...qe},Ke){return e?React.createElement(ButtonLink,{...qe,ref:Ke},Ve):React.createElement(ButtonWrapper,{...qe,ref:Ke},Ve)}),{defaultProps:{isLink:!1}}),Wrapper$1=newStyled.label(({theme:e})=>({display:"flex",borderBottom:`1px solid ${e.appBorderColor}`,margin:"0 15px",padding:"8px 0","&:last-child":{marginBottom:"3rem"}})),Label$1=newStyled.span(({theme:e})=>({minWidth:100,fontWeight:e.typography.weight.bold,marginRight:15,display:"flex",justifyContent:"flex-start",alignItems:"center",lineHeight:"16px"})),Field=({label:e,children:Ve,...qe})=>React.createElement(Wrapper$1,{...qe},e?React.createElement(Label$1,null,React.createElement("span",null,e)):null,Ve);Field.defaultProps={label:void 0};function _extends2(){return _extends2=Object.assign?Object.assign.bind():function(e){for(var Ve=1;Ve=0)&&(qe[Ye]=e[Ye]);return qe}var updateRef=function(e,Ve){if(typeof e=="function"){e(Ve);return}e.current=Ve},useComposedRef=function(e,Ve){var qe=reactExports.useRef();return reactExports.useCallback(function(Ke){e.current=Ke,qe.current&&updateRef(qe.current,null),qe.current=Ve,Ve&&updateRef(Ve,Ke)},[Ve])},use_composed_ref_esm_default=useComposedRef,noop$2=function(){},_excluded=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],TextareaAutosize=function(e,Ve){e.cacheMeasurements,e.maxRows,e.minRows;var qe=e.onChange,Ke=qe===void 0?noop$2:qe;e.onHeightChange;var Ye=_objectWithoutPropertiesLoose(e,_excluded);Ye.value;var Je=reactExports.useRef(null),Xe=use_composed_ref_esm_default(Je,Ve);return reactExports.useRef(0),reactExports.useRef(),reactExports.createElement("textarea",_extends2({},Ye,{onChange:Ke,ref:Xe}))},index=reactExports.forwardRef(TextareaAutosize),styleResets$1={appearance:"none",border:"0 none",boxSizing:"inherit",display:" block",margin:" 0",background:"transparent",padding:0,fontSize:"inherit",position:"relative"},styles=({theme:e})=>({...styleResets$1,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}}),sizes=({size:e})=>{switch(e){case"100%":return{width:"100%"};case"flex":return{flex:1};case"auto":default:return{display:"inline"}}},alignment=({align:e})=>{switch(e){case"end":return{textAlign:"right"};case"center":return{textAlign:"center"};case"start":default:return{textAlign:"left"}}},validation=({valid:e,theme:Ve})=>{switch(e){case"valid":return{boxShadow:`${Ve.color.positive} 0 0 0 1px inset !important`};case"error":return{boxShadow:`${Ve.color.negative} 0 0 0 1px inset !important`};case"warn":return{boxShadow:`${Ve.color.warning} 0 0 0 1px inset`};case void 0:case null:default:return{}}},Input$1=Object.assign(newStyled(reactExports.forwardRef(function({size:e,valid:Ve,align:qe,...Ke},Ye){return React.createElement("input",{...Ke,ref:Ye})}))(styles,sizes,alignment,validation,{minHeight:32}),{displayName:"Input"}),Select=Object.assign(newStyled(reactExports.forwardRef(function({size:e,valid:Ve,align:qe,...Ke},Ye){return React.createElement("select",{...Ke,ref:Ye})}))(styles,sizes,validation,{height:32,userSelect:"none",paddingRight:20,appearance:"menulist"}),{displayName:"Select"}),Textarea=Object.assign(newStyled(reactExports.forwardRef(function({size:e,valid:Ve,align:qe,...Ke},Ye){return React.createElement(index,{...Ke,ref:Ye})}))(styles,sizes,alignment,validation,({height:e=400})=>({overflow:"visible",maxHeight:e})),{displayName:"Textarea"}),ButtonStyled=newStyled(reactExports.forwardRef(function({size:e,valid:Ve,align:qe,...Ke},Ye){return React.createElement(Button$1,{...Ke,ref:Ye})}))(sizes,validation,{userSelect:"none",overflow:"visible",zIndex:2,"&:hover":{transform:"none"}}),Button3=Object.assign(reactExports.forwardRef(function(e,Ve){return React.createElement(ButtonStyled,{...e,tertiary:!0,small:!0,inForm:!0,ref:Ve})}),{displayName:"Button"}),Form=Object.assign(newStyled.form({boxSizing:"border-box",width:"100%"}),{Field,Input:Input$1,Select,Textarea,Button:Button3}),LazyWithTooltip=reactExports.lazy(()=>__vitePreload(()=>import("./WithTooltip-V3YHNWJZ-c1yUud0l.js"),__vite__mapDeps([9,1,2,3,4,5,6,7]),import.meta.url).then(e=>({default:e.WithTooltip}))),WithTooltip=e=>React.createElement(reactExports.Suspense,{fallback:React.createElement("div",null)},React.createElement(LazyWithTooltip,{...e})),LazyWithTooltipPure=reactExports.lazy(()=>__vitePreload(()=>import("./WithTooltip-V3YHNWJZ-c1yUud0l.js"),__vite__mapDeps([9,1,2,3,4,5,6,7]),import.meta.url).then(e=>({default:e.WithTooltipPure}))),WithTooltipPure=e=>React.createElement(reactExports.Suspense,{fallback:React.createElement("div",null)},React.createElement(LazyWithTooltipPure,{...e})),Title2$1=newStyled.div(({theme:e})=>({fontWeight:e.typography.weight.bold})),Desc2=newStyled.span(),Links$1=newStyled.div(({theme:e})=>({marginTop:8,textAlign:"center","> *":{margin:"0 8px",fontWeight:e.typography.weight.bold}})),Message2=newStyled.div(({theme:e})=>({color:e.color.defaultText,lineHeight:"18px"})),MessageWrapper=newStyled.div({padding:15,width:280,boxSizing:"border-box"}),TooltipMessage=({title:e,desc:Ve,links:qe})=>React.createElement(MessageWrapper,null,React.createElement(Message2,null,e&&React.createElement(Title2$1,null,e),Ve&&React.createElement(Desc2,null,Ve)),qe&&React.createElement(Links$1,null,qe.map(({title:Ke,...Ye})=>React.createElement(Link2,{...Ye,key:Ke},Ke))));TooltipMessage.defaultProps={title:null,desc:null,links:null};var Note=newStyled.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})),TooltipNote=({note:e,...Ve})=>React.createElement(Note,{...Ve},e),Title3$1=newStyled(({active:e,loading:Ve,disabled:qe,...Ke})=>React.createElement("span",{...Ke}))(({theme:e})=>({color:e.color.defaultText,fontWeight:e.typography.weight.regular}),({active:e,theme:Ve})=>e?{color:Ve.color.secondary,fontWeight:Ve.typography.weight.bold}:{},({loading:e,theme:Ve})=>e?{display:"inline-block",flex:"none",...Ve.animation.inlineGlow}:{},({disabled:e,theme:Ve})=>e?{color:curriedTransparentize$1$1(.7,Ve.color.defaultText)}:{}),Right=newStyled.span({display:"flex","& svg":{height:12,width:12,margin:"3px 0",verticalAlign:"top"},"& path":{fill:"inherit"}}),Center=newStyled.span({flex:1,textAlign:"left",display:"flex",flexDirection:"column"},({isIndented:e})=>e?{marginLeft:24}:{}),CenterText=newStyled.span(({theme:e})=>({fontSize:"11px",lineHeight:"14px"}),({active:e,theme:Ve})=>e?{color:Ve.color.secondary}:{},({theme:e,disabled:Ve})=>Ve?{color:e.textMutedColor}:{}),Left=newStyled.span(({active:e,theme:Ve})=>e?{"& svg":{opacity:1},"& svg path:not([fill])":{fill:Ve.color.secondary}}:{},()=>({display:"flex",maxWidth:14})),Item=newStyled.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"}:{}),getItemProps=memoize$2(100)((e,Ve,qe)=>{let Ke={};return e&&Object.assign(Ke,{onClick:e}),Ve&&Object.assign(Ke,{href:Ve}),qe&&Ve&&Object.assign(Ke,{to:Ve,as:qe}),Ke}),ListItem=({loading:e,left:Ve,title:qe,center:Ke,right:Ye,icon:Je,active:Xe,disabled:et,isIndented:Qe,href:tt,onClick:rt,LinkWrapper:ot,...nt})=>{let at=getItemProps(rt,tt,ot),it={active:Xe,disabled:et},lt=typeof Je=="string"&&icons[Je];return React.createElement(Item,{...it,...nt,...at},Je?React.createElement(Left,{...it},lt?React.createElement(Icons,{icon:Je}):Je):Ve&&React.createElement(Left,{...it},Ve),qe||Ke?React.createElement(Center,{isIndented:!Ve&&!Je&&Qe},qe&&React.createElement(Title3$1,{...it,loading:e},qe),Ke&&React.createElement(CenterText,{...it},Ke)):null,Ye&&React.createElement(Right,{...it},Ye))};ListItem.defaultProps={loading:!1,left:null,title:React.createElement("span",null,"Loading state"),center:null,right:null,active:!1,disabled:!1,href:null,LinkWrapper:null,onClick:null};var ListItem_default=ListItem,List=newStyled.div({minWidth:180,overflow:"hidden",overflowY:"auto",maxHeight:15.5*32},({theme:e})=>({borderRadius:e.appBorderRadius})),Item2$1=e=>{let{LinkWrapper:Ve,onClick:qe,id:Ke,isIndented:Ye,...Je}=e,{title:Xe,href:et,active:Qe}=Je,tt=reactExports.useCallback(ot=>{qe(ot,Je)},[qe]),rt=!!qe;return React.createElement(ListItem_default,{title:Xe,active:Qe,href:et,id:`list-item-${Ke}`,LinkWrapper:Ve,isIndented:Ye,...Je,...rt?{onClick:tt}:{}})},TooltipLinkList=({links:e,LinkWrapper:Ve})=>{let qe=e.some(Ke=>Ke.left||Ke.icon);return React.createElement(List,null,e.map(({isGatsby:Ke,...Ye})=>React.createElement(Item2$1,{key:Ye.id,LinkWrapper:Ke?Ve:null,isIndented:qe,...Ye})))};TooltipLinkList.defaultProps={LinkWrapper:ListItem_default.defaultProps.LinkWrapper};var ButtonOrLink=React.forwardRef(({children:e,...Ve},qe)=>Ve.href!=null?React.createElement("a",{ref:qe,...Ve},e):React.createElement("button",{ref:qe,type:"button",...Ve},e));ButtonOrLink.displayName="ButtonOrLink";var TabButton=newStyled(ButtonOrLink,{shouldForwardProp:isPropValid})({whiteSpace:"normal",display:"inline-flex",overflow:"hidden",verticalAlign:"top",justifyContent:"center",alignItems:"center",textAlign:"center",textDecoration:"none","&:empty":{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.color.secondary}}),({active:e,textColor:Ve,theme:qe})=>e?{color:Ve||qe.barSelectedColor,borderBottomColor:qe.barSelectedColor}:{color:Ve||qe.barTextColor,borderBottomColor:"transparent"});TabButton.displayName="TabButton";var IconButton=newStyled(ButtonOrLink,{shouldForwardProp:isPropValid})(()=>({alignItems:"center",background:"transparent",border:"none",borderRadius:4,color:"inherit",cursor:"pointer",display:"inline-flex",fontSize:13,fontWeight:"bold",height:28,justifyContent:"center",marginTop:6,padding:"8px 7px","& > svg":{width:14}}),({active:e,theme:Ve})=>e?{backgroundColor:Ve.background.hoverable,color:Ve.barSelectedColor}:{},({disabled:e,theme:Ve})=>e?{opacity:.5,cursor:"not-allowed"}:{"&:hover, &:focus-visible":{background:curriedTransparentize$1$1(.88,Ve.color.secondary),color:Ve.barHoverColor},"&:focus-visible":{outline:auto},"&:focus:not(:focus-visible)":{outline:"none"}});IconButton.displayName="IconButton";var IconPlaceholder=newStyled.div(({theme:e})=>({width:14,height:14,backgroundColor:e.appBorderColor,animation:`${e.animation.glow} 1.5s ease-in-out infinite`})),IconButtonSkeletonWrapper=newStyled.div(()=>({marginTop:6,padding:7,height:28})),IconButtonSkeleton=()=>React.createElement(IconButtonSkeletonWrapper,null,React.createElement(IconPlaceholder,null)),Side=newStyled.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}}:{});Side.displayName="Side";var UnstyledBar=({children:e,className:Ve,scrollable:qe})=>qe?React.createElement(ScrollArea,{vertical:!1,className:Ve},e):React.createElement("div",{className:Ve},e),Bar$1=newStyled(UnstyledBar)(({theme:e,scrollable:Ve=!0})=>({color:e.barTextColor,width:"100%",height:40,flexShrink:0,overflow:Ve?"auto":"hidden",overflowY:"hidden"}),({theme:e,border:Ve=!1})=>Ve?{boxShadow:`${e.appBorderColor} 0 -1px 0 0 inset`,background:e.barBg}:{});Bar$1.displayName="Bar";var BarInner=newStyled.div(({bgColor:e})=>({display:"flex",justifyContent:"space-between",position:"relative",flexWrap:"nowrap",flexShrink:0,height:40,backgroundColor:e||""})),FlexBar=({children:e,backgroundColor:Ve,...qe})=>{let[Ke,Ye]=reactExports.Children.toArray(e);return React.createElement(Bar$1,{...qe},React.createElement(BarInner,{bgColor:Ve},React.createElement(Side,{scrollable:qe.scrollable,left:!0},Ke),Ye?React.createElement(Side,{right:!0},Ye):null))};FlexBar.displayName="FlexBar";var VisuallyHidden=newStyled.div(({active:e})=>e?{display:"block"}:{display:"none"}),childrenToList=e=>reactExports.Children.toArray(e).map(({props:{title:Ve,id:qe,color:Ke,children:Ye}})=>{let Je=Array.isArray(Ye)?Ye[0]:Ye;return{title:Ve,id:qe,...Ke?{color:Ke}:{},render:typeof Je=="function"?Je:({active:Xe})=>React.createElement(VisuallyHidden,{active:Xe,role:"tabpanel"},Je)}}),CollapseIcon=newStyled.span(({theme:e,isActive:Ve})=>({display:"inline-block",width:0,height:0,marginLeft:8,color:Ve?e.color.secondary:e.color.mediumdark,borderRight:"3px solid transparent",borderLeft:"3px solid transparent",borderTop:"3px solid",transition:"transform .1s ease-out"})),AddonButton=newStyled(TabButton)(({active:e,theme:Ve,preActive:qe})=>` +${Ve}`);let qe=Ve.match(firstLineRegex);if(!qe)return React.createElement(reactExports.Fragment,null,Ve);let[,Ke,Ye]=qe,Je=Ve.split(/\n/).slice(1),[,...Xe]=Je.map(et=>{let Qe=et.match(linesRegexChromium)||et.match(linesRegexFirefox)||et.match(linesRegexSafari);return Qe?{name:(Qe[1]||"").replace("/<",""),location:Qe[2].replace(document2$1.location.origin,"")}:null}).filter(Boolean);return React.createElement(reactExports.Fragment,null,React.createElement("span",null,Ke),": ",React.createElement(ErrorName,null,Ye),React.createElement("br",null),Xe.map((et,Qe)=>et.name?React.createElement(reactExports.Fragment,{key:Qe}," ","at ",React.createElement(ErrorImportant,null,et.name)," (",React.createElement(ErrorDetail,null,et.location),")",React.createElement("br",null)):React.createElement(reactExports.Fragment,{key:Qe}," ","at ",React.createElement(ErrorDetail,null,et.location),React.createElement("br",null))))},ButtonWrapper=newStyled.button(({small:e,theme:Ve})=>({border:0,borderRadius:"3em",cursor:"pointer",display:"inline-block",overflow:"hidden",padding:e?"8px 16px":"13px 20px",position:"relative",textAlign:"center",textDecoration:"none",transitionProperty:"background, box-shadow",transitionDuration:"150ms",transitionTimingFunction:"ease-out",verticalAlign:"top",whiteSpace:"nowrap",userSelect:"none",opacity:1,margin:0,background:"transparent",fontSize:`${e?Ve.typography.size.s1:Ve.typography.size.s2-1}px`,fontWeight:Ve.typography.weight.bold,lineHeight:"1",svg:{display:"inline-block",height:e?12:14,width:e?12:14,verticalAlign:"top",marginRight:e?4:6,marginTop:e?0:-1,marginBottom:e?0:-1,pointerEvents:"none",path:{fill:"currentColor"}}}),({disabled:e})=>e?{cursor:"not-allowed !important",opacity:.5,"&:hover":{transform:"none"}}:{},({containsIcon:e,small:Ve})=>e?{svg:{display:"block",margin:0},...Ve?{padding:10}:{padding:13}}:{},({theme:e,primary:Ve,secondary:qe,gray:Ke})=>{let Ye;return Ke?Ye=e.color.mediumlight:qe?Ye=e.color.secondary:Ve&&(Ye=e.color.primary),Ye?{background:Ye,color:Ke?e.color.darkest:e.color.lightest,"&:hover":{background:curriedDarken$1$1(.05,Ye)},"&:active":{boxShadow:"rgba(0, 0, 0, 0.1) 0 0 0 3em inset"},"&:focus":{boxShadow:`${rgba$1(Ye,1)} 0 1px 9px 2px`,outline:"none"},"&:focus:hover":{boxShadow:`${rgba$1(Ye,.2)} 0 8px 18px 0px`}}:{}},({theme:e,tertiary:Ve,inForm:qe,small:Ke})=>Ve?{background:e.button.background,color:e.input.color,boxShadow:`${e.button.border} 0 0 0 1px inset`,borderRadius:e.input.borderRadius,...qe&&Ke?{padding:"10px 16px"}:{},"&:hover":{background:e.base==="light"?curriedDarken$1$1(.02,e.button.background):curriedLighten$1$1(.03,e.button.background),...qe?{}:{boxShadow:"rgba(0,0,0,.2) 0 2px 6px 0, rgba(0,0,0,.1) 0 0 0 1px inset"}},"&:active":{background:e.button.background},"&:focus":{boxShadow:`${rgba$1(e.color.secondary,1)} 0 0 0 1px inset`,outline:"none"}}:{},({theme:e,outline:Ve})=>Ve?{boxShadow:`${curriedTransparentize$1$1(.8,e.color.defaultText)} 0 0 0 1px inset`,color:curriedTransparentize$1$1(.3,e.color.defaultText),background:"transparent","&:hover, &:focus":{boxShadow:`${curriedTransparentize$1$1(.5,e.color.defaultText)} 0 0 0 1px inset`,outline:"none"},"&:active":{boxShadow:`${curriedTransparentize$1$1(.5,e.color.defaultText)} 0 0 0 2px inset`,color:curriedTransparentize$1$1(0,e.color.defaultText)}}:{},({theme:e,outline:Ve,primary:qe})=>{let Ke=e.color.primary;return Ve&&qe?{boxShadow:`${Ke} 0 0 0 1px inset`,color:Ke,"svg path:not([fill])":{fill:Ke},"&:hover":{boxShadow:`${Ke} 0 0 0 1px inset`,background:"transparent"},"&:active":{background:Ke,boxShadow:`${Ke} 0 0 0 1px inset`,color:e.color.tertiary},"&:focus":{boxShadow:`${Ke} 0 0 0 1px inset, ${rgba$1(Ke,.4)} 0 1px 9px 2px`,outline:"none"},"&:focus:hover":{boxShadow:`${Ke} 0 0 0 1px inset, ${rgba$1(Ke,.2)} 0 8px 18px 0px`}}:{}},({theme:e,outline:Ve,primary:qe,secondary:Ke})=>{let Ye;return Ke?Ye=e.color.secondary:qe&&(Ye=e.color.primary),Ve&&Ye?{boxShadow:`${Ye} 0 0 0 1px inset`,color:Ye,"svg path:not([fill])":{fill:Ye},"&:hover":{boxShadow:`${Ye} 0 0 0 1px inset`,background:"transparent"},"&:active":{background:Ye,boxShadow:`${Ye} 0 0 0 1px inset`,color:e.color.tertiary},"&:focus":{boxShadow:`${Ye} 0 0 0 1px inset, ${rgba$1(Ye,.4)} 0 1px 9px 2px`,outline:"none"},"&:focus:hover":{boxShadow:`${Ye} 0 0 0 1px inset, ${rgba$1(Ye,.2)} 0 8px 18px 0px`}}:{}}),ButtonLink=ButtonWrapper.withComponent("a"),Button$1=Object.assign(reactExports.forwardRef(function({isLink:e,children:Ve,...qe},Ke){return e?React.createElement(ButtonLink,{...qe,ref:Ke},Ve):React.createElement(ButtonWrapper,{...qe,ref:Ke},Ve)}),{defaultProps:{isLink:!1}}),Wrapper$1=newStyled.label(({theme:e})=>({display:"flex",borderBottom:`1px solid ${e.appBorderColor}`,margin:"0 15px",padding:"8px 0","&:last-child":{marginBottom:"3rem"}})),Label$1=newStyled.span(({theme:e})=>({minWidth:100,fontWeight:e.typography.weight.bold,marginRight:15,display:"flex",justifyContent:"flex-start",alignItems:"center",lineHeight:"16px"})),Field=({label:e,children:Ve,...qe})=>React.createElement(Wrapper$1,{...qe},e?React.createElement(Label$1,null,React.createElement("span",null,e)):null,Ve);Field.defaultProps={label:void 0};function _extends2(){return _extends2=Object.assign?Object.assign.bind():function(e){for(var Ve=1;Ve=0)&&(qe[Ye]=e[Ye]);return qe}var updateRef=function(e,Ve){if(typeof e=="function"){e(Ve);return}e.current=Ve},useComposedRef=function(e,Ve){var qe=reactExports.useRef();return reactExports.useCallback(function(Ke){e.current=Ke,qe.current&&updateRef(qe.current,null),qe.current=Ve,Ve&&updateRef(Ve,Ke)},[Ve])},use_composed_ref_esm_default=useComposedRef,noop$2=function(){},_excluded=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],TextareaAutosize=function(e,Ve){e.cacheMeasurements,e.maxRows,e.minRows;var qe=e.onChange,Ke=qe===void 0?noop$2:qe;e.onHeightChange;var Ye=_objectWithoutPropertiesLoose(e,_excluded);Ye.value;var Je=reactExports.useRef(null),Xe=use_composed_ref_esm_default(Je,Ve);return reactExports.useRef(0),reactExports.useRef(),reactExports.createElement("textarea",_extends2({},Ye,{onChange:Ke,ref:Xe}))},index=reactExports.forwardRef(TextareaAutosize),styleResets$1={appearance:"none",border:"0 none",boxSizing:"inherit",display:" block",margin:" 0",background:"transparent",padding:0,fontSize:"inherit",position:"relative"},styles=({theme:e})=>({...styleResets$1,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}}),sizes=({size:e})=>{switch(e){case"100%":return{width:"100%"};case"flex":return{flex:1};case"auto":default:return{display:"inline"}}},alignment=({align:e})=>{switch(e){case"end":return{textAlign:"right"};case"center":return{textAlign:"center"};case"start":default:return{textAlign:"left"}}},validation=({valid:e,theme:Ve})=>{switch(e){case"valid":return{boxShadow:`${Ve.color.positive} 0 0 0 1px inset !important`};case"error":return{boxShadow:`${Ve.color.negative} 0 0 0 1px inset !important`};case"warn":return{boxShadow:`${Ve.color.warning} 0 0 0 1px inset`};case void 0:case null:default:return{}}},Input$1=Object.assign(newStyled(reactExports.forwardRef(function({size:e,valid:Ve,align:qe,...Ke},Ye){return React.createElement("input",{...Ke,ref:Ye})}))(styles,sizes,alignment,validation,{minHeight:32}),{displayName:"Input"}),Select=Object.assign(newStyled(reactExports.forwardRef(function({size:e,valid:Ve,align:qe,...Ke},Ye){return React.createElement("select",{...Ke,ref:Ye})}))(styles,sizes,validation,{height:32,userSelect:"none",paddingRight:20,appearance:"menulist"}),{displayName:"Select"}),Textarea=Object.assign(newStyled(reactExports.forwardRef(function({size:e,valid:Ve,align:qe,...Ke},Ye){return React.createElement(index,{...Ke,ref:Ye})}))(styles,sizes,alignment,validation,({height:e=400})=>({overflow:"visible",maxHeight:e})),{displayName:"Textarea"}),ButtonStyled=newStyled(reactExports.forwardRef(function({size:e,valid:Ve,align:qe,...Ke},Ye){return React.createElement(Button$1,{...Ke,ref:Ye})}))(sizes,validation,{userSelect:"none",overflow:"visible",zIndex:2,"&:hover":{transform:"none"}}),Button3=Object.assign(reactExports.forwardRef(function(e,Ve){return React.createElement(ButtonStyled,{...e,tertiary:!0,small:!0,inForm:!0,ref:Ve})}),{displayName:"Button"}),Form=Object.assign(newStyled.form({boxSizing:"border-box",width:"100%"}),{Field,Input:Input$1,Select,Textarea,Button:Button3}),LazyWithTooltip=reactExports.lazy(()=>__vitePreload(()=>import("./WithTooltip-V3YHNWJZ-aLaU2p-B.js"),__vite__mapDeps([9,1,2,3,4,5,6,7]),import.meta.url).then(e=>({default:e.WithTooltip}))),WithTooltip=e=>React.createElement(reactExports.Suspense,{fallback:React.createElement("div",null)},React.createElement(LazyWithTooltip,{...e})),LazyWithTooltipPure=reactExports.lazy(()=>__vitePreload(()=>import("./WithTooltip-V3YHNWJZ-aLaU2p-B.js"),__vite__mapDeps([9,1,2,3,4,5,6,7]),import.meta.url).then(e=>({default:e.WithTooltipPure}))),WithTooltipPure=e=>React.createElement(reactExports.Suspense,{fallback:React.createElement("div",null)},React.createElement(LazyWithTooltipPure,{...e})),Title2$1=newStyled.div(({theme:e})=>({fontWeight:e.typography.weight.bold})),Desc2=newStyled.span(),Links$1=newStyled.div(({theme:e})=>({marginTop:8,textAlign:"center","> *":{margin:"0 8px",fontWeight:e.typography.weight.bold}})),Message2=newStyled.div(({theme:e})=>({color:e.color.defaultText,lineHeight:"18px"})),MessageWrapper=newStyled.div({padding:15,width:280,boxSizing:"border-box"}),TooltipMessage=({title:e,desc:Ve,links:qe})=>React.createElement(MessageWrapper,null,React.createElement(Message2,null,e&&React.createElement(Title2$1,null,e),Ve&&React.createElement(Desc2,null,Ve)),qe&&React.createElement(Links$1,null,qe.map(({title:Ke,...Ye})=>React.createElement(Link2,{...Ye,key:Ke},Ke))));TooltipMessage.defaultProps={title:null,desc:null,links:null};var Note=newStyled.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})),TooltipNote=({note:e,...Ve})=>React.createElement(Note,{...Ve},e),Title3$1=newStyled(({active:e,loading:Ve,disabled:qe,...Ke})=>React.createElement("span",{...Ke}))(({theme:e})=>({color:e.color.defaultText,fontWeight:e.typography.weight.regular}),({active:e,theme:Ve})=>e?{color:Ve.color.secondary,fontWeight:Ve.typography.weight.bold}:{},({loading:e,theme:Ve})=>e?{display:"inline-block",flex:"none",...Ve.animation.inlineGlow}:{},({disabled:e,theme:Ve})=>e?{color:curriedTransparentize$1$1(.7,Ve.color.defaultText)}:{}),Right=newStyled.span({display:"flex","& svg":{height:12,width:12,margin:"3px 0",verticalAlign:"top"},"& path":{fill:"inherit"}}),Center=newStyled.span({flex:1,textAlign:"left",display:"flex",flexDirection:"column"},({isIndented:e})=>e?{marginLeft:24}:{}),CenterText=newStyled.span(({theme:e})=>({fontSize:"11px",lineHeight:"14px"}),({active:e,theme:Ve})=>e?{color:Ve.color.secondary}:{},({theme:e,disabled:Ve})=>Ve?{color:e.textMutedColor}:{}),Left=newStyled.span(({active:e,theme:Ve})=>e?{"& svg":{opacity:1},"& svg path:not([fill])":{fill:Ve.color.secondary}}:{},()=>({display:"flex",maxWidth:14})),Item=newStyled.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"}:{}),getItemProps=memoize$2(100)((e,Ve,qe)=>{let Ke={};return e&&Object.assign(Ke,{onClick:e}),Ve&&Object.assign(Ke,{href:Ve}),qe&&Ve&&Object.assign(Ke,{to:Ve,as:qe}),Ke}),ListItem=({loading:e,left:Ve,title:qe,center:Ke,right:Ye,icon:Je,active:Xe,disabled:et,isIndented:Qe,href:tt,onClick:rt,LinkWrapper:ot,...nt})=>{let at=getItemProps(rt,tt,ot),it={active:Xe,disabled:et},lt=typeof Je=="string"&&icons[Je];return React.createElement(Item,{...it,...nt,...at},Je?React.createElement(Left,{...it},lt?React.createElement(Icons,{icon:Je}):Je):Ve&&React.createElement(Left,{...it},Ve),qe||Ke?React.createElement(Center,{isIndented:!Ve&&!Je&&Qe},qe&&React.createElement(Title3$1,{...it,loading:e},qe),Ke&&React.createElement(CenterText,{...it},Ke)):null,Ye&&React.createElement(Right,{...it},Ye))};ListItem.defaultProps={loading:!1,left:null,title:React.createElement("span",null,"Loading state"),center:null,right:null,active:!1,disabled:!1,href:null,LinkWrapper:null,onClick:null};var ListItem_default=ListItem,List=newStyled.div({minWidth:180,overflow:"hidden",overflowY:"auto",maxHeight:15.5*32},({theme:e})=>({borderRadius:e.appBorderRadius})),Item2$1=e=>{let{LinkWrapper:Ve,onClick:qe,id:Ke,isIndented:Ye,...Je}=e,{title:Xe,href:et,active:Qe}=Je,tt=reactExports.useCallback(ot=>{qe(ot,Je)},[qe]),rt=!!qe;return React.createElement(ListItem_default,{title:Xe,active:Qe,href:et,id:`list-item-${Ke}`,LinkWrapper:Ve,isIndented:Ye,...Je,...rt?{onClick:tt}:{}})},TooltipLinkList=({links:e,LinkWrapper:Ve})=>{let qe=e.some(Ke=>Ke.left||Ke.icon);return React.createElement(List,null,e.map(({isGatsby:Ke,...Ye})=>React.createElement(Item2$1,{key:Ye.id,LinkWrapper:Ke?Ve:null,isIndented:qe,...Ye})))};TooltipLinkList.defaultProps={LinkWrapper:ListItem_default.defaultProps.LinkWrapper};var ButtonOrLink=React.forwardRef(({children:e,...Ve},qe)=>Ve.href!=null?React.createElement("a",{ref:qe,...Ve},e):React.createElement("button",{ref:qe,type:"button",...Ve},e));ButtonOrLink.displayName="ButtonOrLink";var TabButton=newStyled(ButtonOrLink,{shouldForwardProp:isPropValid})({whiteSpace:"normal",display:"inline-flex",overflow:"hidden",verticalAlign:"top",justifyContent:"center",alignItems:"center",textAlign:"center",textDecoration:"none","&:empty":{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.color.secondary}}),({active:e,textColor:Ve,theme:qe})=>e?{color:Ve||qe.barSelectedColor,borderBottomColor:qe.barSelectedColor}:{color:Ve||qe.barTextColor,borderBottomColor:"transparent"});TabButton.displayName="TabButton";var IconButton=newStyled(ButtonOrLink,{shouldForwardProp:isPropValid})(()=>({alignItems:"center",background:"transparent",border:"none",borderRadius:4,color:"inherit",cursor:"pointer",display:"inline-flex",fontSize:13,fontWeight:"bold",height:28,justifyContent:"center",marginTop:6,padding:"8px 7px","& > svg":{width:14}}),({active:e,theme:Ve})=>e?{backgroundColor:Ve.background.hoverable,color:Ve.barSelectedColor}:{},({disabled:e,theme:Ve})=>e?{opacity:.5,cursor:"not-allowed"}:{"&:hover, &:focus-visible":{background:curriedTransparentize$1$1(.88,Ve.color.secondary),color:Ve.barHoverColor},"&:focus-visible":{outline:auto},"&:focus:not(:focus-visible)":{outline:"none"}});IconButton.displayName="IconButton";var IconPlaceholder=newStyled.div(({theme:e})=>({width:14,height:14,backgroundColor:e.appBorderColor,animation:`${e.animation.glow} 1.5s ease-in-out infinite`})),IconButtonSkeletonWrapper=newStyled.div(()=>({marginTop:6,padding:7,height:28})),IconButtonSkeleton=()=>React.createElement(IconButtonSkeletonWrapper,null,React.createElement(IconPlaceholder,null)),Side=newStyled.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}}:{});Side.displayName="Side";var UnstyledBar=({children:e,className:Ve,scrollable:qe})=>qe?React.createElement(ScrollArea,{vertical:!1,className:Ve},e):React.createElement("div",{className:Ve},e),Bar$1=newStyled(UnstyledBar)(({theme:e,scrollable:Ve=!0})=>({color:e.barTextColor,width:"100%",height:40,flexShrink:0,overflow:Ve?"auto":"hidden",overflowY:"hidden"}),({theme:e,border:Ve=!1})=>Ve?{boxShadow:`${e.appBorderColor} 0 -1px 0 0 inset`,background:e.barBg}:{});Bar$1.displayName="Bar";var BarInner=newStyled.div(({bgColor:e})=>({display:"flex",justifyContent:"space-between",position:"relative",flexWrap:"nowrap",flexShrink:0,height:40,backgroundColor:e||""})),FlexBar=({children:e,backgroundColor:Ve,...qe})=>{let[Ke,Ye]=reactExports.Children.toArray(e);return React.createElement(Bar$1,{...qe},React.createElement(BarInner,{bgColor:Ve},React.createElement(Side,{scrollable:qe.scrollable,left:!0},Ke),Ye?React.createElement(Side,{right:!0},Ye):null))};FlexBar.displayName="FlexBar";var VisuallyHidden=newStyled.div(({active:e})=>e?{display:"block"}:{display:"none"}),childrenToList=e=>reactExports.Children.toArray(e).map(({props:{title:Ve,id:qe,color:Ke,children:Ye}})=>{let Je=Array.isArray(Ye)?Ye[0]:Ye;return{title:Ve,id:qe,...Ke?{color:Ke}:{},render:typeof Je=="function"?Je:({active:Xe})=>React.createElement(VisuallyHidden,{active:Xe,role:"tabpanel"},Je)}}),CollapseIcon=newStyled.span(({theme:e,isActive:Ve})=>({display:"inline-block",width:0,height:0,marginLeft:8,color:Ve?e.color.secondary:e.color.mediumdark,borderRight:"3px solid transparent",borderLeft:"3px solid transparent",borderTop:"3px solid",transition:"transform .1s ease-out"})),AddonButton=newStyled(TabButton)(({active:e,theme:Ve,preActive:qe})=>` color: ${qe||e?Ve.color.secondary:Ve.color.mediumdark}; &:hover { color: ${Ve.color.secondary}; @@ -308,7 +308,7 @@ ${Ve}`);let qe=Ve.match(firstLineRegex);if(!qe)return React.createElement(reactE ${curriedDarken$1(.02,e.input.background)} 100%)`:`linear-gradient(to right, ${e.color.green} 0%, ${e.color.green} ${(Ke-Ve)/(qe-Ve)*100}%, ${curriedLighten$1(.02,e.input.background)} ${(Ke-Ve)/(qe-Ve)*100}%, - ${curriedLighten$1(.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 ${rgba(e.appBorderColor,.2)}`,borderRadius:50,cursor:"grab",marginTop:0},"@supports (-ms-ime-align:auto)":{"input[type=range]":{margin:"0"}}})),RangeLabel=newStyled.span({paddingLeft:5,paddingRight:5,fontSize:12,whiteSpace:"nowrap",fontFeatureSettings:"tnum",fontVariantNumeric:"tabular-nums"}),RangeCurrentAndMaxLabel=newStyled(RangeLabel)(({numberOFDecimalsPlaces:e,max:Ve})=>({width:`${e+Ve.toString().length*2+3}ch`,textAlign:"right",flexShrink:0})),RangeWrapper=newStyled.div({display:"flex",alignItems:"center",width:"100%"});function getNumberOfDecimalPlaces(e){let Ve=e.toString().match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return Ve?Math.max(0,(Ve[1]?Ve[1].length:0)-(Ve[2]?+Ve[2]:0)):0}var RangeControl=({name:e,value:Ve,onChange:qe,min:Ke=0,max:Ye=100,step:Je=1,onBlur:Xe,onFocus:et})=>{let Qe=ot=>{qe(parse2(ot.target.value))},tt=Ve!==void 0,rt=reactExports.useMemo(()=>getNumberOfDecimalPlaces(Je),[Je]);return React.createElement(RangeWrapper,null,React.createElement(RangeLabel,null,Ke),React.createElement(RangeInput,{id:getControlId(e),type:"range",onChange:Qe,name:e,value:Ve,min:Ke,max:Ye,step:Je,onFocus:et,onBlur:Xe}),React.createElement(RangeCurrentAndMaxLabel,{numberOFDecimalsPlaces:rt,max:Ye},tt?Ve.toFixed(rt):"--"," / ",Ye))},Wrapper6=newStyled.label({display:"flex"}),MaxLength=newStyled.div(({isMaxed:e})=>({marginLeft:"0.75rem",paddingTop:"0.35rem",color:e?"red":void 0})),TextControl=({name:e,value:Ve,onChange:qe,onFocus:Ke,onBlur:Ye,maxLength:Je})=>{let Xe=ot=>{qe(ot.target.value)},[et,Qe]=reactExports.useState(!1),tt=reactExports.useCallback(()=>{qe(""),Qe(!0)},[Qe]);if(Ve===void 0)return React.createElement(Form.Button,{id:getControlSetterButtonId(e),onClick:tt},"Set string");let rt=typeof Ve=="string";return React.createElement(Wrapper6,null,React.createElement(Form.Textarea,{id:getControlId(e),maxLength:Je,onChange:Xe,size:"flex",placeholder:"Edit string...",autoFocus:et,valid:rt?null:"error",name:e,value:rt?Ve:"",onFocus:Ke,onBlur:Ye}),Je&&React.createElement(MaxLength,{isMaxed:(Ve==null?void 0:Ve.length)===Je},(Ve==null?void 0:Ve.length)??0," / ",Je))},FileInput=newStyled(Form.Input)({padding:10});function revokeOldUrls(e){e.forEach(Ve=>{Ve.startsWith("blob:")&&URL.revokeObjectURL(Ve)})}var FilesControl=({onChange:e,name:Ve,accept:qe="image/*",value:Ke})=>{let Ye=reactExports.useRef(null);function Je(Xe){if(!Xe.target.files)return;let et=Array.from(Xe.target.files).map(Qe=>URL.createObjectURL(Qe));e(et),revokeOldUrls(Ke)}return reactExports.useEffect(()=>{Ke==null&&Ye.current&&(Ye.current.value=null)},[Ke,Ve]),React.createElement(FileInput,{ref:Ye,id:getControlId(Ve),type:"file",name:Ve,multiple:!0,onChange:Je,accept:qe,size:"flex"})},LazyColorControl=reactExports.lazy(()=>__vitePreload(()=>import("./Color-6VNJS4EI-y7t01qCg.js"),__vite__mapDeps([10,2,6,1,3,4,5,7]),import.meta.url)),ColorControl=e=>React.createElement(reactExports.Suspense,{fallback:React.createElement("div",null)},React.createElement(LazyColorControl,{...e})),Controls2={array:ObjectControl,object:ObjectControl,boolean:BooleanControl,color:ColorControl,date:DateControl,number:NumberControl,check:OptionsControl,"inline-check":OptionsControl,radio:OptionsControl,"inline-radio":OptionsControl,select:OptionsControl,"multi-select":OptionsControl,range:RangeControl,text:TextControl,file:FilesControl},NoControl=()=>React.createElement(React.Fragment,null,"-"),ArgControl=({row:e,arg:Ve,updateArgs:qe,isHovered:Ke})=>{let{key:Ye,control:Je}=e,[Xe,et]=reactExports.useState(!1),[Qe,tt]=reactExports.useState({value:Ve});reactExports.useEffect(()=>{Xe||tt({value:Ve})},[Xe,Ve]);let rt=reactExports.useCallback(lt=>(tt({value:lt}),qe({[Ye]:lt}),lt),[qe,Ye]),ot=reactExports.useCallback(()=>et(!1),[]),nt=reactExports.useCallback(()=>et(!0),[]);if(!Je||Je.disable)return Ke?React.createElement(Link2,{href:"https://storybook.js.org/docs/react/essentials/controls",target:"_blank",withArrow:!0},"Setup controls"):React.createElement(NoControl,null);let at={name:Ye,argType:e,value:Qe.value,onChange:rt,onBlur:ot,onFocus:nt},it=Controls2[Je.type]||NoControl;return React.createElement(it,{...at,...Je,controlType:Je.type})},Name=newStyled.span({fontWeight:"bold"}),Required=newStyled.span(({theme:e})=>({color:e.color.negative,fontFamily:e.typography.fonts.mono,cursor:"help"})),Description=newStyled.div(({theme:e})=>({"&&":{p:{margin:"0 0 10px 0"},a:{color:e.color.secondary}},code:{...codeCommon({theme:e}),fontSize:12,fontFamily:e.typography.fonts.mono},"& code":{margin:0,display:"inline-block"},"& pre > code":{whiteSpace:"pre-wrap"}})),Type=newStyled.div(({theme:e,hasDescription:Ve})=>({color:e.base==="light"?curriedTransparentize$1(.1,e.color.defaultText):curriedTransparentize$1(.2,e.color.defaultText),marginTop:Ve?4:0})),TypeWithJsDoc=newStyled.div(({theme:e,hasDescription:Ve})=>({color:e.base==="light"?curriedTransparentize$1(.1,e.color.defaultText):curriedTransparentize$1(.2,e.color.defaultText),marginTop:Ve?12:0,marginBottom:12})),StyledTd=newStyled.td(({theme:e,expandable:Ve})=>({paddingLeft:Ve?"40px !important":"20px !important"})),ArgRow=e=>{var lt;let[Ve,qe]=reactExports.useState(!1),{row:Ke,updateArgs:Ye,compact:Je,expandable:Xe,initialExpandedArgs:et}=e,{name:Qe,description:tt}=Ke,rt=Ke.table||{},ot=rt.type||Ke.type,nt=rt.defaultValue||Ke.defaultValue,at=(lt=Ke.type)==null?void 0:lt.required,it=tt!=null&&tt!=="";return React.createElement("tr",{onMouseEnter:()=>qe(!0),onMouseLeave:()=>qe(!1)},React.createElement(StyledTd,{expandable:Xe},React.createElement(Name,null,Qe),at?React.createElement(Required,{title:"Required"},"*"):null),Je?null:React.createElement("td",null,it&&React.createElement(Description,null,React.createElement(Markdown,null,tt)),rt.jsDocTags!=null?React.createElement(React.Fragment,null,React.createElement(TypeWithJsDoc,{hasDescription:it},React.createElement(ArgValue,{value:ot,initialExpandedArgs:et})),React.createElement(ArgJsDoc,{tags:rt.jsDocTags})):React.createElement(Type,{hasDescription:it},React.createElement(ArgValue,{value:ot,initialExpandedArgs:et}))),Je?null:React.createElement("td",null,React.createElement(ArgValue,{value:nt,initialExpandedArgs:et})),Ye?React.createElement("td",null,React.createElement(ArgControl,{...e,isHovered:Ve})):null)},ExpanderIcon=newStyled(Icons)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?curriedTransparentize$1(.25,e.color.defaultText):curriedTransparentize$1(.3,e.color.defaultText),border:"none",display:"inline-block"})),FlexWrapper=newStyled.span(({theme:e})=>({display:"flex",lineHeight:"20px",alignItems:"center"})),Section=newStyled.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"?curriedTransparentize$1(.4,e.color.defaultText):curriedTransparentize$1(.6,e.color.defaultText),background:`${e.background.app} !important`,"& ~ td":{background:`${e.background.app} !important`}})),Subsection=newStyled.td(({theme:e})=>({position:"relative",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,background:e.background.app})),StyledTd2=newStyled.td(()=>({position:"relative"})),StyledTr=newStyled.tr(({theme:e})=>({"&:hover > td":{backgroundColor:`${curriedLighten$1(.005,e.background.app)} !important`,boxShadow:`${e.color.mediumlight} 0 - 1px 0 0 inset`,cursor:"row-resize"}})),ClickIntercept=newStyled.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"})),SectionRow=({level:e="section",label:Ve,children:qe,initialExpanded:Ke=!0,colSpan:Ye=3})=>{let[Je,Xe]=reactExports.useState(Ke),et=e==="subsection"?Subsection:Section,Qe=(qe==null?void 0:qe.length)||0,tt=e==="subsection"?`${Qe} item${Qe!==1?"s":""}`:"",rt=Je?"arrowdown":"arrowright",ot=`${Je?"Hide":"Show"} ${e==="subsection"?Qe:Ve} item${Qe!==1?"s":""}`;return React.createElement(React.Fragment,null,React.createElement(StyledTr,{title:ot},React.createElement(et,{colSpan:1},React.createElement(ClickIntercept,{onClick:nt=>Xe(!Je),tabIndex:0},ot),React.createElement(FlexWrapper,null,React.createElement(ExpanderIcon,{icon:rt}),Ve)),React.createElement(StyledTd2,{colSpan:Ye-1},React.createElement(ClickIntercept,{onClick:nt=>Xe(!Je),tabIndex:-1,style:{outline:"none"}},ot),Je?null:tt)),Je?qe:null)},Row=newStyled.div(({theme:e})=>({display:"flex",gap:16,borderBottom:`1px solid ${e.appBorderColor}`,"&:last-child":{borderBottom:0}})),Column=newStyled.div(({numColumn:e})=>({display:"flex",flexDirection:"column",flex:e||1,gap:5,padding:"12px 20px"})),SkeletonText=newStyled.div(({theme:e,width:Ve,height:qe})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,width:Ve||"100%",height:qe||16,borderRadius:3})),columnWidth=[2,4,2,2],Skeleton=()=>React.createElement(React.Fragment,null,React.createElement(Row,null,React.createElement(Column,{numColumn:columnWidth[0]},React.createElement(SkeletonText,{width:"60%"})),React.createElement(Column,{numColumn:columnWidth[1]},React.createElement(SkeletonText,{width:"30%"})),React.createElement(Column,{numColumn:columnWidth[2]},React.createElement(SkeletonText,{width:"60%"})),React.createElement(Column,{numColumn:columnWidth[3]},React.createElement(SkeletonText,{width:"60%"}))),React.createElement(Row,null,React.createElement(Column,{numColumn:columnWidth[0]},React.createElement(SkeletonText,{width:"60%"})),React.createElement(Column,{numColumn:columnWidth[1]},React.createElement(SkeletonText,{width:"80%"}),React.createElement(SkeletonText,{width:"30%"})),React.createElement(Column,{numColumn:columnWidth[2]},React.createElement(SkeletonText,{width:"60%"})),React.createElement(Column,{numColumn:columnWidth[3]},React.createElement(SkeletonText,{width:"60%"}))),React.createElement(Row,null,React.createElement(Column,{numColumn:columnWidth[0]},React.createElement(SkeletonText,{width:"60%"})),React.createElement(Column,{numColumn:columnWidth[1]},React.createElement(SkeletonText,{width:"80%"}),React.createElement(SkeletonText,{width:"30%"})),React.createElement(Column,{numColumn:columnWidth[2]},React.createElement(SkeletonText,{width:"60%"})),React.createElement(Column,{numColumn:columnWidth[3]},React.createElement(SkeletonText,{width:"60%"}))),React.createElement(Row,null,React.createElement(Column,{numColumn:columnWidth[0]},React.createElement(SkeletonText,{width:"60%"})),React.createElement(Column,{numColumn:columnWidth[1]},React.createElement(SkeletonText,{width:"80%"}),React.createElement(SkeletonText,{width:"30%"})),React.createElement(Column,{numColumn:columnWidth[2]},React.createElement(SkeletonText,{width:"60%"})),React.createElement(Column,{numColumn:columnWidth[3]},React.createElement(SkeletonText,{width:"60%"})))),Wrapper7=newStyled.div(({inAddonPanel:e,theme:Ve})=>({height:e?"100%":"auto",display:"flex",border:e?"none":`1px solid ${Ve.appBorderColor}`,borderRadius:e?0:Ve.appBorderRadius,padding:e?0:40,alignItems:"center",justifyContent:"center",flexDirection:"column",gap:15,background:Ve.background.content,boxShadow:"rgba(0, 0, 0, 0.10) 0 1px 3px 0"})),Content=newStyled.div({display:"flex",flexDirection:"column",gap:4,maxWidth:415}),Title2=newStyled.div(({theme:e})=>({fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,textAlign:"center",color:e.textColor})),Description2=newStyled.div(({theme:e})=>({fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s2-1,textAlign:"center",color:e.textMutedColor})),Links=newStyled.div(({theme:e})=>({display:"flex",fontSize:e.typography.size.s2-1,gap:25})),Divider=newStyled.div(({theme:e})=>({width:1,height:16,backgroundColor:e.appBorderColor})),Empty=({inAddonPanel:e})=>{let[Ve,qe]=reactExports.useState(!0);return reactExports.useEffect(()=>{let Ke=setTimeout(()=>{qe(!1)},100);return()=>clearTimeout(Ke)},[]),Ve?null:React.createElement(Wrapper7,{inAddonPanel:e},React.createElement(Content,null,React.createElement(Title2,null,e?"Interactive story playground":"Args table with interactive controls couldn't be auto-generated"),React.createElement(Description2,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.")),React.createElement(Links,null,e&&React.createElement(React.Fragment,null,React.createElement(Link2,{href:"https://youtu.be/0gOfS6K0x0E",target:"_blank",withArrow:!0},React.createElement(Icons,{icon:"video"})," Watch 5m video"),React.createElement(Divider,null),React.createElement(Link2,{href:"https://storybook.js.org/docs/react/essentials/controls",target:"_blank",withArrow:!0},"Read docs")),!e&&React.createElement(Link2,{href:"https://storybook.js.org/docs/react/essentials/controls",target:"_blank",withArrow:!0},"Learn how to set that up")))},TableWrapper=newStyled.table(({theme:e,compact:Ve,inAddonPanel:qe})=>({"&&":{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:qe?0:25,marginBottom:qe?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)":{...Ve?null:{width:"35%"}},"td:nth-of-type(3)":{...Ve?null:{width:"15%"}},"th:last-of-type, td:last-of-type":{paddingRight:20,...Ve?null:{width:"25%"}},th:{color:e.base==="light"?curriedTransparentize$1(.25,e.color.defaultText):curriedTransparentize$1(.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:qe?0:1,marginRight:qe?0:1,tbody:{...qe?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}`},...qe?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}}}}})),StyledIconButton=newStyled(IconButton)(({theme:e})=>({color:e.barTextColor,margin:"-4px -12px -4px 0"})),ControlHeadingWrapper=newStyled.span({display:"flex",justifyContent:"space-between"}),sortFns={alpha:(e,Ve)=>e.name.localeCompare(Ve.name),requiredFirst:(e,Ve)=>{var qe,Ke;return+!!((qe=Ve.type)!=null&&qe.required)-+!!((Ke=e.type)!=null&&Ke.required)||e.name.localeCompare(Ve.name)},none:void 0},groupRows=(e,Ve)=>{let qe={ungrouped:[],ungroupedSubsections:{},sections:{}};if(!e)return qe;Object.entries(e).forEach(([Je,Xe])=>{let{category:et,subcategory:Qe}=(Xe==null?void 0:Xe.table)||{};if(et){let tt=qe.sections[et]||{ungrouped:[],subsections:{}};if(!Qe)tt.ungrouped.push({key:Je,...Xe});else{let rt=tt.subsections[Qe]||[];rt.push({key:Je,...Xe}),tt.subsections[Qe]=rt}qe.sections[et]=tt}else if(Qe){let tt=qe.ungroupedSubsections[Qe]||[];tt.push({key:Je,...Xe}),qe.ungroupedSubsections[Qe]=tt}else qe.ungrouped.push({key:Je,...Xe})});let Ke=sortFns[Ve],Ye=Je=>Ke?Object.keys(Je).reduce((Xe,et)=>({...Xe,[et]:Je[et].sort(Ke)}),{}):Je;return{ungrouped:qe.ungrouped.sort(Ke),ungroupedSubsections:Ye(qe.ungroupedSubsections),sections:Object.keys(qe.sections).reduce((Je,Xe)=>({...Je,[Xe]:{ungrouped:qe.sections[Xe].ungrouped.sort(Ke),subsections:Ye(qe.sections[Xe].subsections)}}),{})}},safeIncludeConditionalArg=(e,Ve,qe)=>{try{return O$1(e,Ve,qe)}catch(Ke){return once.warn(Ke.message),!1}},ArgsTable=e=>{let{updateArgs:Ve,resetArgs:qe,compact:Ke,inAddonPanel:Ye,initialExpandedArgs:Je,sort:Xe="none",isLoading:et}=e;if("error"in e){let{error:st}=e;return React.createElement(EmptyBlock,null,st," ",React.createElement(Link2,{href:"http://storybook.js.org/docs/",target:"_blank",withArrow:!0},"Read the docs"))}if(et)return React.createElement(Skeleton,null);let{rows:Qe,args:tt,globals:rt}="rows"in e&&e,ot=groupRows(pickBy$1(Qe,st=>{var ct;return!((ct=st==null?void 0:st.table)!=null&&ct.disable)&&safeIncludeConditionalArg(st,tt||{},rt||{})}),Xe),nt=ot.ungrouped.length===0,at=Object.entries(ot.sections).length===0,it=Object.entries(ot.ungroupedSubsections).length===0;if(nt&&at&&it)return React.createElement(Empty,{inAddonPanel:Ye});let lt=1;Ve&&(lt+=1),Ke||(lt+=2);let pt=Object.keys(ot.sections).length>0,dt={updateArgs:Ve,compact:Ke,inAddonPanel:Ye,initialExpandedArgs:Je};return React.createElement(ResetWrapper,null,React.createElement(TableWrapper,{compact:Ke,inAddonPanel:Ye,className:"docblock-argstable sb-unstyled"},React.createElement("thead",{className:"docblock-argstable-head"},React.createElement("tr",null,React.createElement("th",null,React.createElement("span",null,"Name")),Ke?null:React.createElement("th",null,React.createElement("span",null,"Description")),Ke?null:React.createElement("th",null,React.createElement("span",null,"Default")),Ve?React.createElement("th",null,React.createElement(ControlHeadingWrapper,null,"Control"," ",!et&&qe&&React.createElement(StyledIconButton,{onClick:()=>qe(),title:"Reset controls"},React.createElement(Icons,{icon:"undo","aria-hidden":!0})))):null)),React.createElement("tbody",{className:"docblock-argstable-body"},ot.ungrouped.map(st=>React.createElement(ArgRow,{key:st.key,row:st,arg:tt&&tt[st.key],...dt})),Object.entries(ot.ungroupedSubsections).map(([st,ct])=>React.createElement(SectionRow,{key:st,label:st,level:"subsection",colSpan:lt},ct.map(ut=>React.createElement(ArgRow,{key:ut.key,row:ut,arg:tt&&tt[ut.key],expandable:pt,...dt})))),Object.entries(ot.sections).map(([st,ct])=>React.createElement(SectionRow,{key:st,label:st,level:"section",colSpan:lt},ct.ungrouped.map(ut=>React.createElement(ArgRow,{key:ut.key,row:ut,arg:tt&&tt[ut.key],...dt})),Object.entries(ct.subsections).map(([ut,ft])=>React.createElement(SectionRow,{key:ut,label:ut,level:"subsection",colSpan:lt},ft.map(mt=>React.createElement(ArgRow,{key:mt.key,row:mt,arg:tt&&tt[mt.key],expandable:pt,...dt})))))))))};newStyled.div(({theme:e})=>({marginRight:30,fontSize:`${e.typography.size.s1}px`,color:e.base==="light"?curriedTransparentize$1(.4,e.color.defaultText):curriedTransparentize$1(.6,e.color.defaultText)}));newStyled.div({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});newStyled.div({display:"flex",flexDirection:"row",alignItems:"baseline","&:not(:last-child)":{marginBottom:"1rem"}});newStyled.div(withReset,({theme:e})=>({...getBlockBackgroundStyle(e),margin:"25px 0 40px",padding:"30px 20px"}));newStyled.div(({theme:e})=>({fontWeight:e.typography.weight.bold,color:e.color.defaultText}));newStyled.div(({theme:e})=>({color:e.base==="light"?curriedTransparentize$1(.2,e.color.defaultText):curriedTransparentize$1(.6,e.color.defaultText)}));newStyled.div({flex:"0 0 30%",lineHeight:"20px",marginTop:5});newStyled.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"?curriedTransparentize$1(.4,e.color.defaultText):curriedTransparentize$1(.6,e.color.defaultText),"> div":{display:"inline-block",overflow:"hidden",maxWidth:"100%",textOverflow:"ellipsis"},span:{display:"block",marginTop:2}}));newStyled.div({display:"flex",flexDirection:"row"});newStyled.div(({background:e})=>({position:"relative",flex:1,"&::before":{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:e,content:'""'}}));newStyled.div(({theme:e})=>({...getBlockBackgroundStyle(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"}));newStyled.div({display:"flex",flexDirection:"column",flex:1,position:"relative",marginBottom:30});newStyled.div({flex:1,display:"flex",flexDirection:"row"});newStyled.div({display:"flex",alignItems:"flex-start"});newStyled.div({flex:"0 0 30%"});newStyled.div({flex:1});newStyled.div(({theme:e})=>({display:"flex",flexDirection:"row",alignItems:"center",paddingBottom:20,fontWeight:e.typography.weight.bold,color:e.base==="light"?curriedTransparentize$1(.4,e.color.defaultText):curriedTransparentize$1(.6,e.color.defaultText)}));newStyled.div(({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"20px",display:"flex",flexDirection:"column"}));var ItemLabel=newStyled.div(({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s2,color:e.color.defaultText,marginLeft:10,lineHeight:1.2})),ItemSpecimen=newStyled.div(({theme:e})=>({...getBlockBackgroundStyle(e),overflow:"hidden",height:40,width:40,display:"flex",alignItems:"center",justifyContent:"center",flex:"none","> img, > svg":{width:20,height:20}})),Item2=newStyled.div({display:"inline-flex",flexDirection:"row",alignItems:"center",flex:"0 1 calc(20% - 10px)",minWidth:120,margin:"0px 10px 30px 0"}),List2=newStyled.div({display:"flex",flexFlow:"row wrap"}),IconItem=({name:e,children:Ve})=>React.createElement(Item2,null,React.createElement(ItemSpecimen,null,Ve),React.createElement(ItemLabel,null,e)),IconGallery=({children:e,...Ve})=>React.createElement(ResetWrapper,null,React.createElement(List2,{...Ve,className:"docblock-icongallery sb-unstyled"},e)),anchorBlockIdFromId=e=>`anchor--${e}`,Anchor=({storyId:e,children:Ve})=>React.createElement("div",{id:anchorBlockIdFromId(e),className:"sb-anchor"},Ve);global$1&&global$1.__DOCS_CONTEXT__===void 0&&(global$1.__DOCS_CONTEXT__=reactExports.createContext(null),global$1.__DOCS_CONTEXT__.displayName="DocsContext");var DocsContext=global$1?global$1.__DOCS_CONTEXT__:reactExports.createContext(null),useOf=(e,Ve)=>reactExports.useContext(DocsContext).resolveOf(e,Ve);function extractComponentArgTypes(e,Ve){let{extractArgTypes:qe}=Ve.docs||{};if(!qe)throw new Error("Args unsupported. See Args documentation for your framework.");return qe(e)}function getArgTypesFromResolved(e,Ve){if(e.type==="component"){let{component:Ye,projectAnnotations:{parameters:Je}}=e;return{argTypes:extractComponentArgTypes(Ye,Je),parameters:Je}}if(e.type==="meta"){let{preparedMeta:{argTypes:Ye,parameters:Je}}=e;return{argTypes:Ye,parameters:Je}}let{story:{argTypes:qe,parameters:Ke}}=e;return{argTypes:qe,parameters:Ke}}var ArgTypes=e=>{var rt;let{of:Ve}=e;if("of"in e&&Ve===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let qe=useOf(Ve||"meta"),{argTypes:Ke,parameters:Ye}=getArgTypesFromResolved(qe),Je=((rt=Ye.docs)==null?void 0:rt.argTypes)||{},Xe=e.include??Je.include,et=e.exclude??Je.exclude,Qe=e.sort??Je.sort,tt=filterArgTypes(Ke,Xe,et);return React.createElement(ArgsTable,{rows:tt,sort:Qe})};function scrollToElement(e,Ve="start"){e.scrollIntoView({behavior:"smooth",block:Ve,inline:"nearest"})}function useStory(e,Ve){let qe=useStories([e],Ve);return qe&&qe[0]}function useStories(e,Ve){let[qe,Ke]=reactExports.useState({});return reactExports.useEffect(()=>{Promise.all(e.map(async Ye=>{let Je=await Ve.loadStory(Ye);Ke(Xe=>Xe[Ye]===Je?Xe:{...Xe,[Ye]:Je})}))}),e.map(Ye=>{if(qe[Ye])return qe[Ye];try{return Ve.storyById(Ye)}catch{return null}})}function argsHash(e){return stringify(e)}var SourceContext=reactExports.createContext({sources:{}}),UNKNOWN_ARGS_HASH="--unknown--",SourceContainer=({children:e,channel:Ve})=>{let[qe,Ke]=reactExports.useState({});return reactExports.useEffect(()=>{let Ye=(Je,Xe=null,et=!1)=>{let{id:Qe,args:tt=void 0,source:rt,format:ot}=typeof Je=="string"?{id:Je,source:Xe,format:et}:Je,nt=tt?argsHash(tt):UNKNOWN_ARGS_HASH;Ke(at=>({...at,[Qe]:{...at[Qe],[nt]:{code:rt,format:ot}}}))};return Ve.on(SNIPPET_RENDERED,Ye),()=>Ve.off(SNIPPET_RENDERED,Ye)},[]),React.createElement(SourceContext.Provider,{value:{sources:qe}},e)},SourceState=(e=>(e.OPEN="open",e.CLOSED="closed",e.NONE="none",e))(SourceState||{}),getSourceState=e=>{let Ve=e.map(qe=>{var Ke,Ye;return(Ye=(Ke=qe.parameters.docs)==null?void 0:Ke.source)==null?void 0:Ye.state}).filter(Boolean);return Ve.length===0?"closed":Ve[0]},getStorySource=(e,Ve,qe)=>{let{sources:Ke}=qe,Ye=Ke==null?void 0:Ke[e];return(Ye==null?void 0:Ye[argsHash(Ve)])||(Ye==null?void 0:Ye[UNKNOWN_ARGS_HASH])||{code:""}},getSnippet=({snippet:e,storyContext:Ve,typeFromProps:qe,transformFromProps:Ke})=>{var Qe,tt,rt,ot,nt,at;let{__isArgsStory:Ye}=Ve.parameters,Je=((Qe=Ve.parameters.docs)==null?void 0:Qe.source)||{},Xe=qe||Je.type||SourceType.AUTO;if(Je.code!==void 0)return Je.code;let et=Xe===SourceType.DYNAMIC||Xe===SourceType.AUTO&&e&&Ye?e:Je.originalSource||"";return Je.transformSource&&deprecate(_default`The \`transformSource\` parameter at \`parameters.docs.source.transformSource\` is deprecated, please use \`parameters.docs.source.transform\` instead. + ${curriedLighten$1(.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 ${rgba(e.appBorderColor,.2)}`,borderRadius:50,cursor:"grab",marginTop:0},"@supports (-ms-ime-align:auto)":{"input[type=range]":{margin:"0"}}})),RangeLabel=newStyled.span({paddingLeft:5,paddingRight:5,fontSize:12,whiteSpace:"nowrap",fontFeatureSettings:"tnum",fontVariantNumeric:"tabular-nums"}),RangeCurrentAndMaxLabel=newStyled(RangeLabel)(({numberOFDecimalsPlaces:e,max:Ve})=>({width:`${e+Ve.toString().length*2+3}ch`,textAlign:"right",flexShrink:0})),RangeWrapper=newStyled.div({display:"flex",alignItems:"center",width:"100%"});function getNumberOfDecimalPlaces(e){let Ve=e.toString().match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return Ve?Math.max(0,(Ve[1]?Ve[1].length:0)-(Ve[2]?+Ve[2]:0)):0}var RangeControl=({name:e,value:Ve,onChange:qe,min:Ke=0,max:Ye=100,step:Je=1,onBlur:Xe,onFocus:et})=>{let Qe=ot=>{qe(parse2(ot.target.value))},tt=Ve!==void 0,rt=reactExports.useMemo(()=>getNumberOfDecimalPlaces(Je),[Je]);return React.createElement(RangeWrapper,null,React.createElement(RangeLabel,null,Ke),React.createElement(RangeInput,{id:getControlId(e),type:"range",onChange:Qe,name:e,value:Ve,min:Ke,max:Ye,step:Je,onFocus:et,onBlur:Xe}),React.createElement(RangeCurrentAndMaxLabel,{numberOFDecimalsPlaces:rt,max:Ye},tt?Ve.toFixed(rt):"--"," / ",Ye))},Wrapper6=newStyled.label({display:"flex"}),MaxLength=newStyled.div(({isMaxed:e})=>({marginLeft:"0.75rem",paddingTop:"0.35rem",color:e?"red":void 0})),TextControl=({name:e,value:Ve,onChange:qe,onFocus:Ke,onBlur:Ye,maxLength:Je})=>{let Xe=ot=>{qe(ot.target.value)},[et,Qe]=reactExports.useState(!1),tt=reactExports.useCallback(()=>{qe(""),Qe(!0)},[Qe]);if(Ve===void 0)return React.createElement(Form.Button,{id:getControlSetterButtonId(e),onClick:tt},"Set string");let rt=typeof Ve=="string";return React.createElement(Wrapper6,null,React.createElement(Form.Textarea,{id:getControlId(e),maxLength:Je,onChange:Xe,size:"flex",placeholder:"Edit string...",autoFocus:et,valid:rt?null:"error",name:e,value:rt?Ve:"",onFocus:Ke,onBlur:Ye}),Je&&React.createElement(MaxLength,{isMaxed:(Ve==null?void 0:Ve.length)===Je},(Ve==null?void 0:Ve.length)??0," / ",Je))},FileInput=newStyled(Form.Input)({padding:10});function revokeOldUrls(e){e.forEach(Ve=>{Ve.startsWith("blob:")&&URL.revokeObjectURL(Ve)})}var FilesControl=({onChange:e,name:Ve,accept:qe="image/*",value:Ke})=>{let Ye=reactExports.useRef(null);function Je(Xe){if(!Xe.target.files)return;let et=Array.from(Xe.target.files).map(Qe=>URL.createObjectURL(Qe));e(et),revokeOldUrls(Ke)}return reactExports.useEffect(()=>{Ke==null&&Ye.current&&(Ye.current.value=null)},[Ke,Ve]),React.createElement(FileInput,{ref:Ye,id:getControlId(Ve),type:"file",name:Ve,multiple:!0,onChange:Je,accept:qe,size:"flex"})},LazyColorControl=reactExports.lazy(()=>__vitePreload(()=>import("./Color-6VNJS4EI-4FFJ4VI4.js"),__vite__mapDeps([10,2,6,1,3,4,5,7]),import.meta.url)),ColorControl=e=>React.createElement(reactExports.Suspense,{fallback:React.createElement("div",null)},React.createElement(LazyColorControl,{...e})),Controls2={array:ObjectControl,object:ObjectControl,boolean:BooleanControl,color:ColorControl,date:DateControl,number:NumberControl,check:OptionsControl,"inline-check":OptionsControl,radio:OptionsControl,"inline-radio":OptionsControl,select:OptionsControl,"multi-select":OptionsControl,range:RangeControl,text:TextControl,file:FilesControl},NoControl=()=>React.createElement(React.Fragment,null,"-"),ArgControl=({row:e,arg:Ve,updateArgs:qe,isHovered:Ke})=>{let{key:Ye,control:Je}=e,[Xe,et]=reactExports.useState(!1),[Qe,tt]=reactExports.useState({value:Ve});reactExports.useEffect(()=>{Xe||tt({value:Ve})},[Xe,Ve]);let rt=reactExports.useCallback(lt=>(tt({value:lt}),qe({[Ye]:lt}),lt),[qe,Ye]),ot=reactExports.useCallback(()=>et(!1),[]),nt=reactExports.useCallback(()=>et(!0),[]);if(!Je||Je.disable)return Ke?React.createElement(Link2,{href:"https://storybook.js.org/docs/react/essentials/controls",target:"_blank",withArrow:!0},"Setup controls"):React.createElement(NoControl,null);let at={name:Ye,argType:e,value:Qe.value,onChange:rt,onBlur:ot,onFocus:nt},it=Controls2[Je.type]||NoControl;return React.createElement(it,{...at,...Je,controlType:Je.type})},Name=newStyled.span({fontWeight:"bold"}),Required=newStyled.span(({theme:e})=>({color:e.color.negative,fontFamily:e.typography.fonts.mono,cursor:"help"})),Description=newStyled.div(({theme:e})=>({"&&":{p:{margin:"0 0 10px 0"},a:{color:e.color.secondary}},code:{...codeCommon({theme:e}),fontSize:12,fontFamily:e.typography.fonts.mono},"& code":{margin:0,display:"inline-block"},"& pre > code":{whiteSpace:"pre-wrap"}})),Type=newStyled.div(({theme:e,hasDescription:Ve})=>({color:e.base==="light"?curriedTransparentize$1(.1,e.color.defaultText):curriedTransparentize$1(.2,e.color.defaultText),marginTop:Ve?4:0})),TypeWithJsDoc=newStyled.div(({theme:e,hasDescription:Ve})=>({color:e.base==="light"?curriedTransparentize$1(.1,e.color.defaultText):curriedTransparentize$1(.2,e.color.defaultText),marginTop:Ve?12:0,marginBottom:12})),StyledTd=newStyled.td(({theme:e,expandable:Ve})=>({paddingLeft:Ve?"40px !important":"20px !important"})),ArgRow=e=>{var lt;let[Ve,qe]=reactExports.useState(!1),{row:Ke,updateArgs:Ye,compact:Je,expandable:Xe,initialExpandedArgs:et}=e,{name:Qe,description:tt}=Ke,rt=Ke.table||{},ot=rt.type||Ke.type,nt=rt.defaultValue||Ke.defaultValue,at=(lt=Ke.type)==null?void 0:lt.required,it=tt!=null&&tt!=="";return React.createElement("tr",{onMouseEnter:()=>qe(!0),onMouseLeave:()=>qe(!1)},React.createElement(StyledTd,{expandable:Xe},React.createElement(Name,null,Qe),at?React.createElement(Required,{title:"Required"},"*"):null),Je?null:React.createElement("td",null,it&&React.createElement(Description,null,React.createElement(Markdown,null,tt)),rt.jsDocTags!=null?React.createElement(React.Fragment,null,React.createElement(TypeWithJsDoc,{hasDescription:it},React.createElement(ArgValue,{value:ot,initialExpandedArgs:et})),React.createElement(ArgJsDoc,{tags:rt.jsDocTags})):React.createElement(Type,{hasDescription:it},React.createElement(ArgValue,{value:ot,initialExpandedArgs:et}))),Je?null:React.createElement("td",null,React.createElement(ArgValue,{value:nt,initialExpandedArgs:et})),Ye?React.createElement("td",null,React.createElement(ArgControl,{...e,isHovered:Ve})):null)},ExpanderIcon=newStyled(Icons)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?curriedTransparentize$1(.25,e.color.defaultText):curriedTransparentize$1(.3,e.color.defaultText),border:"none",display:"inline-block"})),FlexWrapper=newStyled.span(({theme:e})=>({display:"flex",lineHeight:"20px",alignItems:"center"})),Section=newStyled.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"?curriedTransparentize$1(.4,e.color.defaultText):curriedTransparentize$1(.6,e.color.defaultText),background:`${e.background.app} !important`,"& ~ td":{background:`${e.background.app} !important`}})),Subsection=newStyled.td(({theme:e})=>({position:"relative",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,background:e.background.app})),StyledTd2=newStyled.td(()=>({position:"relative"})),StyledTr=newStyled.tr(({theme:e})=>({"&:hover > td":{backgroundColor:`${curriedLighten$1(.005,e.background.app)} !important`,boxShadow:`${e.color.mediumlight} 0 - 1px 0 0 inset`,cursor:"row-resize"}})),ClickIntercept=newStyled.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"})),SectionRow=({level:e="section",label:Ve,children:qe,initialExpanded:Ke=!0,colSpan:Ye=3})=>{let[Je,Xe]=reactExports.useState(Ke),et=e==="subsection"?Subsection:Section,Qe=(qe==null?void 0:qe.length)||0,tt=e==="subsection"?`${Qe} item${Qe!==1?"s":""}`:"",rt=Je?"arrowdown":"arrowright",ot=`${Je?"Hide":"Show"} ${e==="subsection"?Qe:Ve} item${Qe!==1?"s":""}`;return React.createElement(React.Fragment,null,React.createElement(StyledTr,{title:ot},React.createElement(et,{colSpan:1},React.createElement(ClickIntercept,{onClick:nt=>Xe(!Je),tabIndex:0},ot),React.createElement(FlexWrapper,null,React.createElement(ExpanderIcon,{icon:rt}),Ve)),React.createElement(StyledTd2,{colSpan:Ye-1},React.createElement(ClickIntercept,{onClick:nt=>Xe(!Je),tabIndex:-1,style:{outline:"none"}},ot),Je?null:tt)),Je?qe:null)},Row=newStyled.div(({theme:e})=>({display:"flex",gap:16,borderBottom:`1px solid ${e.appBorderColor}`,"&:last-child":{borderBottom:0}})),Column=newStyled.div(({numColumn:e})=>({display:"flex",flexDirection:"column",flex:e||1,gap:5,padding:"12px 20px"})),SkeletonText=newStyled.div(({theme:e,width:Ve,height:qe})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,width:Ve||"100%",height:qe||16,borderRadius:3})),columnWidth=[2,4,2,2],Skeleton=()=>React.createElement(React.Fragment,null,React.createElement(Row,null,React.createElement(Column,{numColumn:columnWidth[0]},React.createElement(SkeletonText,{width:"60%"})),React.createElement(Column,{numColumn:columnWidth[1]},React.createElement(SkeletonText,{width:"30%"})),React.createElement(Column,{numColumn:columnWidth[2]},React.createElement(SkeletonText,{width:"60%"})),React.createElement(Column,{numColumn:columnWidth[3]},React.createElement(SkeletonText,{width:"60%"}))),React.createElement(Row,null,React.createElement(Column,{numColumn:columnWidth[0]},React.createElement(SkeletonText,{width:"60%"})),React.createElement(Column,{numColumn:columnWidth[1]},React.createElement(SkeletonText,{width:"80%"}),React.createElement(SkeletonText,{width:"30%"})),React.createElement(Column,{numColumn:columnWidth[2]},React.createElement(SkeletonText,{width:"60%"})),React.createElement(Column,{numColumn:columnWidth[3]},React.createElement(SkeletonText,{width:"60%"}))),React.createElement(Row,null,React.createElement(Column,{numColumn:columnWidth[0]},React.createElement(SkeletonText,{width:"60%"})),React.createElement(Column,{numColumn:columnWidth[1]},React.createElement(SkeletonText,{width:"80%"}),React.createElement(SkeletonText,{width:"30%"})),React.createElement(Column,{numColumn:columnWidth[2]},React.createElement(SkeletonText,{width:"60%"})),React.createElement(Column,{numColumn:columnWidth[3]},React.createElement(SkeletonText,{width:"60%"}))),React.createElement(Row,null,React.createElement(Column,{numColumn:columnWidth[0]},React.createElement(SkeletonText,{width:"60%"})),React.createElement(Column,{numColumn:columnWidth[1]},React.createElement(SkeletonText,{width:"80%"}),React.createElement(SkeletonText,{width:"30%"})),React.createElement(Column,{numColumn:columnWidth[2]},React.createElement(SkeletonText,{width:"60%"})),React.createElement(Column,{numColumn:columnWidth[3]},React.createElement(SkeletonText,{width:"60%"})))),Wrapper7=newStyled.div(({inAddonPanel:e,theme:Ve})=>({height:e?"100%":"auto",display:"flex",border:e?"none":`1px solid ${Ve.appBorderColor}`,borderRadius:e?0:Ve.appBorderRadius,padding:e?0:40,alignItems:"center",justifyContent:"center",flexDirection:"column",gap:15,background:Ve.background.content,boxShadow:"rgba(0, 0, 0, 0.10) 0 1px 3px 0"})),Content=newStyled.div({display:"flex",flexDirection:"column",gap:4,maxWidth:415}),Title2=newStyled.div(({theme:e})=>({fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,textAlign:"center",color:e.textColor})),Description2=newStyled.div(({theme:e})=>({fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s2-1,textAlign:"center",color:e.textMutedColor})),Links=newStyled.div(({theme:e})=>({display:"flex",fontSize:e.typography.size.s2-1,gap:25})),Divider=newStyled.div(({theme:e})=>({width:1,height:16,backgroundColor:e.appBorderColor})),Empty=({inAddonPanel:e})=>{let[Ve,qe]=reactExports.useState(!0);return reactExports.useEffect(()=>{let Ke=setTimeout(()=>{qe(!1)},100);return()=>clearTimeout(Ke)},[]),Ve?null:React.createElement(Wrapper7,{inAddonPanel:e},React.createElement(Content,null,React.createElement(Title2,null,e?"Interactive story playground":"Args table with interactive controls couldn't be auto-generated"),React.createElement(Description2,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.")),React.createElement(Links,null,e&&React.createElement(React.Fragment,null,React.createElement(Link2,{href:"https://youtu.be/0gOfS6K0x0E",target:"_blank",withArrow:!0},React.createElement(Icons,{icon:"video"})," Watch 5m video"),React.createElement(Divider,null),React.createElement(Link2,{href:"https://storybook.js.org/docs/react/essentials/controls",target:"_blank",withArrow:!0},"Read docs")),!e&&React.createElement(Link2,{href:"https://storybook.js.org/docs/react/essentials/controls",target:"_blank",withArrow:!0},"Learn how to set that up")))},TableWrapper=newStyled.table(({theme:e,compact:Ve,inAddonPanel:qe})=>({"&&":{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:qe?0:25,marginBottom:qe?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)":{...Ve?null:{width:"35%"}},"td:nth-of-type(3)":{...Ve?null:{width:"15%"}},"th:last-of-type, td:last-of-type":{paddingRight:20,...Ve?null:{width:"25%"}},th:{color:e.base==="light"?curriedTransparentize$1(.25,e.color.defaultText):curriedTransparentize$1(.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:qe?0:1,marginRight:qe?0:1,tbody:{...qe?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}`},...qe?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}}}}})),StyledIconButton=newStyled(IconButton)(({theme:e})=>({color:e.barTextColor,margin:"-4px -12px -4px 0"})),ControlHeadingWrapper=newStyled.span({display:"flex",justifyContent:"space-between"}),sortFns={alpha:(e,Ve)=>e.name.localeCompare(Ve.name),requiredFirst:(e,Ve)=>{var qe,Ke;return+!!((qe=Ve.type)!=null&&qe.required)-+!!((Ke=e.type)!=null&&Ke.required)||e.name.localeCompare(Ve.name)},none:void 0},groupRows=(e,Ve)=>{let qe={ungrouped:[],ungroupedSubsections:{},sections:{}};if(!e)return qe;Object.entries(e).forEach(([Je,Xe])=>{let{category:et,subcategory:Qe}=(Xe==null?void 0:Xe.table)||{};if(et){let tt=qe.sections[et]||{ungrouped:[],subsections:{}};if(!Qe)tt.ungrouped.push({key:Je,...Xe});else{let rt=tt.subsections[Qe]||[];rt.push({key:Je,...Xe}),tt.subsections[Qe]=rt}qe.sections[et]=tt}else if(Qe){let tt=qe.ungroupedSubsections[Qe]||[];tt.push({key:Je,...Xe}),qe.ungroupedSubsections[Qe]=tt}else qe.ungrouped.push({key:Je,...Xe})});let Ke=sortFns[Ve],Ye=Je=>Ke?Object.keys(Je).reduce((Xe,et)=>({...Xe,[et]:Je[et].sort(Ke)}),{}):Je;return{ungrouped:qe.ungrouped.sort(Ke),ungroupedSubsections:Ye(qe.ungroupedSubsections),sections:Object.keys(qe.sections).reduce((Je,Xe)=>({...Je,[Xe]:{ungrouped:qe.sections[Xe].ungrouped.sort(Ke),subsections:Ye(qe.sections[Xe].subsections)}}),{})}},safeIncludeConditionalArg=(e,Ve,qe)=>{try{return O$1(e,Ve,qe)}catch(Ke){return once.warn(Ke.message),!1}},ArgsTable=e=>{let{updateArgs:Ve,resetArgs:qe,compact:Ke,inAddonPanel:Ye,initialExpandedArgs:Je,sort:Xe="none",isLoading:et}=e;if("error"in e){let{error:st}=e;return React.createElement(EmptyBlock,null,st," ",React.createElement(Link2,{href:"http://storybook.js.org/docs/",target:"_blank",withArrow:!0},"Read the docs"))}if(et)return React.createElement(Skeleton,null);let{rows:Qe,args:tt,globals:rt}="rows"in e&&e,ot=groupRows(pickBy$1(Qe,st=>{var ct;return!((ct=st==null?void 0:st.table)!=null&&ct.disable)&&safeIncludeConditionalArg(st,tt||{},rt||{})}),Xe),nt=ot.ungrouped.length===0,at=Object.entries(ot.sections).length===0,it=Object.entries(ot.ungroupedSubsections).length===0;if(nt&&at&&it)return React.createElement(Empty,{inAddonPanel:Ye});let lt=1;Ve&&(lt+=1),Ke||(lt+=2);let pt=Object.keys(ot.sections).length>0,dt={updateArgs:Ve,compact:Ke,inAddonPanel:Ye,initialExpandedArgs:Je};return React.createElement(ResetWrapper,null,React.createElement(TableWrapper,{compact:Ke,inAddonPanel:Ye,className:"docblock-argstable sb-unstyled"},React.createElement("thead",{className:"docblock-argstable-head"},React.createElement("tr",null,React.createElement("th",null,React.createElement("span",null,"Name")),Ke?null:React.createElement("th",null,React.createElement("span",null,"Description")),Ke?null:React.createElement("th",null,React.createElement("span",null,"Default")),Ve?React.createElement("th",null,React.createElement(ControlHeadingWrapper,null,"Control"," ",!et&&qe&&React.createElement(StyledIconButton,{onClick:()=>qe(),title:"Reset controls"},React.createElement(Icons,{icon:"undo","aria-hidden":!0})))):null)),React.createElement("tbody",{className:"docblock-argstable-body"},ot.ungrouped.map(st=>React.createElement(ArgRow,{key:st.key,row:st,arg:tt&&tt[st.key],...dt})),Object.entries(ot.ungroupedSubsections).map(([st,ct])=>React.createElement(SectionRow,{key:st,label:st,level:"subsection",colSpan:lt},ct.map(ut=>React.createElement(ArgRow,{key:ut.key,row:ut,arg:tt&&tt[ut.key],expandable:pt,...dt})))),Object.entries(ot.sections).map(([st,ct])=>React.createElement(SectionRow,{key:st,label:st,level:"section",colSpan:lt},ct.ungrouped.map(ut=>React.createElement(ArgRow,{key:ut.key,row:ut,arg:tt&&tt[ut.key],...dt})),Object.entries(ct.subsections).map(([ut,ft])=>React.createElement(SectionRow,{key:ut,label:ut,level:"subsection",colSpan:lt},ft.map(mt=>React.createElement(ArgRow,{key:mt.key,row:mt,arg:tt&&tt[mt.key],expandable:pt,...dt})))))))))};newStyled.div(({theme:e})=>({marginRight:30,fontSize:`${e.typography.size.s1}px`,color:e.base==="light"?curriedTransparentize$1(.4,e.color.defaultText):curriedTransparentize$1(.6,e.color.defaultText)}));newStyled.div({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});newStyled.div({display:"flex",flexDirection:"row",alignItems:"baseline","&:not(:last-child)":{marginBottom:"1rem"}});newStyled.div(withReset,({theme:e})=>({...getBlockBackgroundStyle(e),margin:"25px 0 40px",padding:"30px 20px"}));newStyled.div(({theme:e})=>({fontWeight:e.typography.weight.bold,color:e.color.defaultText}));newStyled.div(({theme:e})=>({color:e.base==="light"?curriedTransparentize$1(.2,e.color.defaultText):curriedTransparentize$1(.6,e.color.defaultText)}));newStyled.div({flex:"0 0 30%",lineHeight:"20px",marginTop:5});newStyled.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"?curriedTransparentize$1(.4,e.color.defaultText):curriedTransparentize$1(.6,e.color.defaultText),"> div":{display:"inline-block",overflow:"hidden",maxWidth:"100%",textOverflow:"ellipsis"},span:{display:"block",marginTop:2}}));newStyled.div({display:"flex",flexDirection:"row"});newStyled.div(({background:e})=>({position:"relative",flex:1,"&::before":{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:e,content:'""'}}));newStyled.div(({theme:e})=>({...getBlockBackgroundStyle(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"}));newStyled.div({display:"flex",flexDirection:"column",flex:1,position:"relative",marginBottom:30});newStyled.div({flex:1,display:"flex",flexDirection:"row"});newStyled.div({display:"flex",alignItems:"flex-start"});newStyled.div({flex:"0 0 30%"});newStyled.div({flex:1});newStyled.div(({theme:e})=>({display:"flex",flexDirection:"row",alignItems:"center",paddingBottom:20,fontWeight:e.typography.weight.bold,color:e.base==="light"?curriedTransparentize$1(.4,e.color.defaultText):curriedTransparentize$1(.6,e.color.defaultText)}));newStyled.div(({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"20px",display:"flex",flexDirection:"column"}));var ItemLabel=newStyled.div(({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s2,color:e.color.defaultText,marginLeft:10,lineHeight:1.2})),ItemSpecimen=newStyled.div(({theme:e})=>({...getBlockBackgroundStyle(e),overflow:"hidden",height:40,width:40,display:"flex",alignItems:"center",justifyContent:"center",flex:"none","> img, > svg":{width:20,height:20}})),Item2=newStyled.div({display:"inline-flex",flexDirection:"row",alignItems:"center",flex:"0 1 calc(20% - 10px)",minWidth:120,margin:"0px 10px 30px 0"}),List2=newStyled.div({display:"flex",flexFlow:"row wrap"}),IconItem=({name:e,children:Ve})=>React.createElement(Item2,null,React.createElement(ItemSpecimen,null,Ve),React.createElement(ItemLabel,null,e)),IconGallery=({children:e,...Ve})=>React.createElement(ResetWrapper,null,React.createElement(List2,{...Ve,className:"docblock-icongallery sb-unstyled"},e)),anchorBlockIdFromId=e=>`anchor--${e}`,Anchor=({storyId:e,children:Ve})=>React.createElement("div",{id:anchorBlockIdFromId(e),className:"sb-anchor"},Ve);global$1&&global$1.__DOCS_CONTEXT__===void 0&&(global$1.__DOCS_CONTEXT__=reactExports.createContext(null),global$1.__DOCS_CONTEXT__.displayName="DocsContext");var DocsContext=global$1?global$1.__DOCS_CONTEXT__:reactExports.createContext(null),useOf=(e,Ve)=>reactExports.useContext(DocsContext).resolveOf(e,Ve);function extractComponentArgTypes(e,Ve){let{extractArgTypes:qe}=Ve.docs||{};if(!qe)throw new Error("Args unsupported. See Args documentation for your framework.");return qe(e)}function getArgTypesFromResolved(e,Ve){if(e.type==="component"){let{component:Ye,projectAnnotations:{parameters:Je}}=e;return{argTypes:extractComponentArgTypes(Ye,Je),parameters:Je}}if(e.type==="meta"){let{preparedMeta:{argTypes:Ye,parameters:Je}}=e;return{argTypes:Ye,parameters:Je}}let{story:{argTypes:qe,parameters:Ke}}=e;return{argTypes:qe,parameters:Ke}}var ArgTypes=e=>{var rt;let{of:Ve}=e;if("of"in e&&Ve===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let qe=useOf(Ve||"meta"),{argTypes:Ke,parameters:Ye}=getArgTypesFromResolved(qe),Je=((rt=Ye.docs)==null?void 0:rt.argTypes)||{},Xe=e.include??Je.include,et=e.exclude??Je.exclude,Qe=e.sort??Je.sort,tt=filterArgTypes(Ke,Xe,et);return React.createElement(ArgsTable,{rows:tt,sort:Qe})};function scrollToElement(e,Ve="start"){e.scrollIntoView({behavior:"smooth",block:Ve,inline:"nearest"})}function useStory(e,Ve){let qe=useStories([e],Ve);return qe&&qe[0]}function useStories(e,Ve){let[qe,Ke]=reactExports.useState({});return reactExports.useEffect(()=>{Promise.all(e.map(async Ye=>{let Je=await Ve.loadStory(Ye);Ke(Xe=>Xe[Ye]===Je?Xe:{...Xe,[Ye]:Je})}))}),e.map(Ye=>{if(qe[Ye])return qe[Ye];try{return Ve.storyById(Ye)}catch{return null}})}function argsHash(e){return stringify(e)}var SourceContext=reactExports.createContext({sources:{}}),UNKNOWN_ARGS_HASH="--unknown--",SourceContainer=({children:e,channel:Ve})=>{let[qe,Ke]=reactExports.useState({});return reactExports.useEffect(()=>{let Ye=(Je,Xe=null,et=!1)=>{let{id:Qe,args:tt=void 0,source:rt,format:ot}=typeof Je=="string"?{id:Je,source:Xe,format:et}:Je,nt=tt?argsHash(tt):UNKNOWN_ARGS_HASH;Ke(at=>({...at,[Qe]:{...at[Qe],[nt]:{code:rt,format:ot}}}))};return Ve.on(SNIPPET_RENDERED,Ye),()=>Ve.off(SNIPPET_RENDERED,Ye)},[]),React.createElement(SourceContext.Provider,{value:{sources:qe}},e)},SourceState=(e=>(e.OPEN="open",e.CLOSED="closed",e.NONE="none",e))(SourceState||{}),getSourceState=e=>{let Ve=e.map(qe=>{var Ke,Ye;return(Ye=(Ke=qe.parameters.docs)==null?void 0:Ke.source)==null?void 0:Ye.state}).filter(Boolean);return Ve.length===0?"closed":Ve[0]},getStorySource=(e,Ve,qe)=>{let{sources:Ke}=qe,Ye=Ke==null?void 0:Ke[e];return(Ye==null?void 0:Ye[argsHash(Ve)])||(Ye==null?void 0:Ye[UNKNOWN_ARGS_HASH])||{code:""}},getSnippet=({snippet:e,storyContext:Ve,typeFromProps:qe,transformFromProps:Ke})=>{var Qe,tt,rt,ot,nt,at;let{__isArgsStory:Ye}=Ve.parameters,Je=((Qe=Ve.parameters.docs)==null?void 0:Qe.source)||{},Xe=qe||Je.type||SourceType.AUTO;if(Je.code!==void 0)return Je.code;let et=Xe===SourceType.DYNAMIC||Xe===SourceType.AUTO&&e&&Ye?e:Je.originalSource||"";return Je.transformSource&&deprecate(_default`The \`transformSource\` parameter at \`parameters.docs.source.transformSource\` is deprecated, please use \`parameters.docs.source.transform\` instead. Please refer to the migration guide: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#source-block `),(tt=Ve.parameters.docs)!=null&&tt.transformSource&&deprecate(_default`The \`transformSource\` parameter at \`parameters.docs.transformSource\` is deprecated, please use \`parameters.docs.source.transform\` instead. @@ -364,7 +364,7 @@ ${Ve}`);let qe=Ve.match(firstLineRegex);if(!qe)return React.createElement(reactE `),Ye?React.createElement(DocsStory,{of:Ye.moduleExport,expanded:!1,__primary:!0,withToolbar:!0}):null},Heading2=({children:e,disableAnchor:Ve,...qe})=>{if(Ve||typeof e!="string")return React.createElement(H2,null,e);let Ke=e.toLowerCase().replace(/[^a-z0-9]/gi,"-");return React.createElement(HeaderMdx,{as:"h2",id:Ke,...qe},e)},StyledHeading=newStyled(Heading2)(({theme:e})=>({fontSize:`${e.typography.size.s2-1}px`,fontWeight:e.typography.weight.bold,lineHeight:"16px",letterSpacing:"0.35em",textTransform:"uppercase",color:e.textMutedColor,border:0,marginBottom:"12px","&:first-of-type":{marginTop:"56px"}})),Stories=({title:e="Stories",includePrimary:Ve=!0})=>{let{componentStories:qe}=reactExports.useContext(DocsContext),Ke=qe().filter(Ye=>{var Je,Xe;return!((Xe=(Je=Ye.parameters)==null?void 0:Je.docs)!=null&&Xe.disable)});return Ve||(Ke=Ke.slice(1)),!Ke||Ke.length===0?null:React.createElement(React.Fragment,null,React.createElement(StyledHeading,null,e),Ke.map(Ye=>Ye&&React.createElement(DocsStory,{key:Ye.id,of:Ye.moduleExport,expanded:!0,__forceInitialArgs:!0})))},DocsPage=()=>{let e=useOf("meta",["meta"]),{stories:Ve}=e.csfFile,qe=Object.keys(Ve).length===1;return React.createElement(React.Fragment,null,React.createElement(Title3,null),React.createElement(Subtitle2,null),React.createElement(DescriptionContainer,{of:"meta"}),qe?React.createElement(DescriptionContainer,{of:"story"}):null,React.createElement(Primary,null),React.createElement(Controls3,null),qe?null:React.createElement(Stories,null))};function Docs({context:e,docsParameter:Ve}){let qe=Ve.container||DocsContainer,Ke=Ve.page||DocsPage;return React.createElement(qe,{context:e,theme:Ve.theme},React.createElement(Ke,null))}var Meta=({of:e})=>{let Ve=reactExports.useContext(DocsContext);e&&Ve.referenceMeta(e,!0);try{let qe=Ve.storyById();return React.createElement(Anchor,{storyId:qe.id})}catch{return null}};export{ArgTypes as A,Canvas as C,Docs as D,Form as F,HeadersMdx as H,IconGallery as I,L$1 as L,Meta as M,N$1 as N,SyntaxHighlighter2$1 as S,TooltipNote as T,WithToolTipState as W,__toESM$1 as _,WithTooltipPure$1 as a,CodeOrSourceMdx as b,createCopyToClipboardFunction as c,AnchorMdx as d,IconItem as e,__commonJS$1 as f,WithTooltip as g,Icons as h,getControlId as i,_copyObject as j,keysIn_1 as k,_cloneBufferExports as l,memoize$2 as m,newStyled as n,_cloneTypedArray as o,_copyArray as p,_initCloneObject as q,_basePickBy as r,syntaxhighlighter_default as s,create as t,stringify as u,parse$1 as v,themes as w,DocsContainer as x}; function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["./syntaxhighlighter-V7JZZA35-pTSUdsJe.js","./iframe-Di3G6qoa.js","./index-OjgoNOWw.js","./emotion-use-insertion-effect-with-fallbacks.browser.esm-xK8HOd_o.js","./index-mQqIOHEI.js","./inheritsLoose-Y9jOMJLd.js","./index-LnHysSno.js","./index-BdDYuicC.js","./formatter-SWP5E3XI-n5-NWJeL.js","./WithTooltip-V3YHNWJZ-c1yUud0l.js","./Color-6VNJS4EI-y7t01qCg.js"] + __vite__mapDeps.viteFileDeps = ["./syntaxhighlighter-V7JZZA35-DBA7IJ-i.js","./iframe-zHoeYuYN.js","./index-OjgoNOWw.js","./emotion-use-insertion-effect-with-fallbacks.browser.esm-xK8HOd_o.js","./index-mQqIOHEI.js","./inheritsLoose-Y9jOMJLd.js","./index-LnHysSno.js","./index-BdDYuicC.js","./formatter-SWP5E3XI-GxE3MvpE.js","./WithTooltip-V3YHNWJZ-aLaU2p-B.js","./Color-6VNJS4EI-4FFJ4VI4.js"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } diff --git a/assets/installation-X3U8DJuW.js b/assets/installation-q08WuDdZ.js similarity index 90% rename from assets/installation-X3U8DJuW.js rename to assets/installation-q08WuDdZ.js index 6e9c3eec..ee5abda7 100644 --- a/assets/installation-X3U8DJuW.js +++ b/assets/installation-q08WuDdZ.js @@ -1,4 +1,4 @@ -import{j as e}from"./jsx-runtime-DtaoT6pD.js";import{M as i}from"./index-FEzJ-IFI.js";import{useMDXComponents as t}from"./index-82O-B91n.js";import"./index-OjgoNOWw.js";import"./iframe-Di3G6qoa.js";import"../sb-preview/runtime.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-xK8HOd_o.js";import"./index-mQqIOHEI.js";import"./inheritsLoose-Y9jOMJLd.js";import"./index-LnHysSno.js";import"./index-BdDYuicC.js";function r(o){const n=Object.assign({h1:"h1",p:"p",code:"code",a:"a",pre:"pre"},t(),o.components);return e.jsxs(e.Fragment,{children:[e.jsx(i,{title:"Installation"}),` +import{j as e}from"./jsx-runtime-DtaoT6pD.js";import{M as i}from"./index-S9SFSHLo.js";import{useMDXComponents as t}from"./index-82O-B91n.js";import"./index-OjgoNOWw.js";import"./iframe-zHoeYuYN.js";import"../sb-preview/runtime.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-xK8HOd_o.js";import"./index-mQqIOHEI.js";import"./inheritsLoose-Y9jOMJLd.js";import"./index-LnHysSno.js";import"./index-BdDYuicC.js";function r(o){const n=Object.assign({h1:"h1",p:"p",code:"code",a:"a",pre:"pre"},t(),o.components);return e.jsxs(e.Fragment,{children:[e.jsx(i,{title:"Installation"}),` `,e.jsx(n.h1,{id:"installation",children:"Installation"}),` `,e.jsxs(n.p,{children:["To install ",e.jsx(n.code,{children:"@peculiar/react-components"}),` in your project, you will need to run the following command using `,e.jsx(n.a,{href:"https://www.npmjs.com/",target:"_blank",rel:"nofollow noopener noreferrer",children:"npm"}),":"]}),` diff --git a/assets/palette-wqcdcj41.js b/assets/palette-MA7Oct7p.js similarity index 91% rename from assets/palette-wqcdcj41.js rename to assets/palette-MA7Oct7p.js index e9719477..98936e91 100644 --- a/assets/palette-wqcdcj41.js +++ b/assets/palette-MA7Oct7p.js @@ -1,4 +1,4 @@ -import{j as t}from"./jsx-runtime-DtaoT6pD.js";import{M as i}from"./index-FEzJ-IFI.js";import{ColorItemExample as o}from"./palette.stories-SUHfYI79.js";import{useMDXComponents as r}from"./index-82O-B91n.js";import{d as a,i as l,j as m,k as c,l as p,m as j,n as x}from"./utils-ur_GzcA6.js";import"./index-OjgoNOWw.js";import"./iframe-Di3G6qoa.js";import"../sb-preview/runtime.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-xK8HOd_o.js";import"./index-mQqIOHEI.js";import"./inheritsLoose-Y9jOMJLd.js";import"./index-LnHysSno.js";import"./index-BdDYuicC.js";import"./typography-be8ycqzM.js";import"./emotion-styled.browser.esm-jsqElTi7.js";import"./emotion-element-c39617d8.browser.esm-upVMHClS.js";function n(s){const e=Object.assign({h1:"h1",p:"p",h2:"h2"},r(),s.components);return t.jsxs(t.Fragment,{children:[t.jsx(i,{title:"Customization/Palette"}),` +import{j as t}from"./jsx-runtime-DtaoT6pD.js";import{M as i}from"./index-S9SFSHLo.js";import{ColorItemExample as o}from"./palette.stories-SUHfYI79.js";import{useMDXComponents as r}from"./index-82O-B91n.js";import{d as a,i as l,j as m,k as c,l as p,m as j,n as x}from"./utils-ur_GzcA6.js";import"./index-OjgoNOWw.js";import"./iframe-zHoeYuYN.js";import"../sb-preview/runtime.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-xK8HOd_o.js";import"./index-mQqIOHEI.js";import"./inheritsLoose-Y9jOMJLd.js";import"./index-LnHysSno.js";import"./index-BdDYuicC.js";import"./typography-be8ycqzM.js";import"./emotion-styled.browser.esm-jsqElTi7.js";import"./emotion-element-c39617d8.browser.esm-upVMHClS.js";function n(s){const e=Object.assign({h1:"h1",p:"p",h2:"h2"},r(),s.components);return t.jsxs(t.Fragment,{children:[t.jsx(i,{title:"Customization/Palette"}),` `,t.jsx(e.h1,{id:"palette",children:"Palette"}),` `,t.jsx(e.p,{children:"The palette enables you to modify the color of the components to suit your brand."}),` `,t.jsx(e.h2,{id:"colors",children:"Colors"}),` diff --git a/assets/palette_playground-BQ1LPSdi.js b/assets/palette_playground-x4ZsEIzF.js similarity index 88% rename from assets/palette_playground-BQ1LPSdi.js rename to assets/palette_playground-x4ZsEIzF.js index e0d4763a..87f71693 100644 --- a/assets/palette_playground-BQ1LPSdi.js +++ b/assets/palette_playground-x4ZsEIzF.js @@ -1,3 +1,3 @@ -import{j as t}from"./jsx-runtime-DtaoT6pD.js";import{M as i}from"./index-FEzJ-IFI.js";import{PalettePlaygroundExample as m}from"./palette.stories-SUHfYI79.js";import{useMDXComponents as e}from"./index-82O-B91n.js";import"./index-OjgoNOWw.js";import"./iframe-Di3G6qoa.js";import"../sb-preview/runtime.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-xK8HOd_o.js";import"./index-mQqIOHEI.js";import"./inheritsLoose-Y9jOMJLd.js";import"./index-LnHysSno.js";import"./index-BdDYuicC.js";import"./utils-ur_GzcA6.js";import"./typography-be8ycqzM.js";import"./emotion-styled.browser.esm-jsqElTi7.js";import"./emotion-element-c39617d8.browser.esm-upVMHClS.js";function r(o){const n=Object.assign({h1:"h1"},e(),o.components);return t.jsxs(t.Fragment,{children:[t.jsx(i,{title:"Customization/Palette Playground"}),` +import{j as t}from"./jsx-runtime-DtaoT6pD.js";import{M as i}from"./index-S9SFSHLo.js";import{PalettePlaygroundExample as m}from"./palette.stories-SUHfYI79.js";import{useMDXComponents as e}from"./index-82O-B91n.js";import"./index-OjgoNOWw.js";import"./iframe-zHoeYuYN.js";import"../sb-preview/runtime.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-xK8HOd_o.js";import"./index-mQqIOHEI.js";import"./inheritsLoose-Y9jOMJLd.js";import"./index-LnHysSno.js";import"./index-BdDYuicC.js";import"./utils-ur_GzcA6.js";import"./typography-be8ycqzM.js";import"./emotion-styled.browser.esm-jsqElTi7.js";import"./emotion-element-c39617d8.browser.esm-upVMHClS.js";function r(o){const n=Object.assign({h1:"h1"},e(),o.components);return t.jsxs(t.Fragment,{children:[t.jsx(i,{title:"Customization/Palette Playground"}),` `,t.jsx(n.h1,{id:"palette-playground",children:"Palette Playground"}),` `,t.jsx(m,{})]})}function b(o={}){const{wrapper:n}=Object.assign({},e(),o.components);return n?t.jsx(n,Object.assign({},o,{children:t.jsx(r,o)})):r(o)}export{b as default}; diff --git a/assets/preview-ET9V_h4u.js b/assets/preview-3AQBzxjc.js similarity index 99% rename from assets/preview-ET9V_h4u.js rename to assets/preview-3AQBzxjc.js index a445c226..ab5fb97b 100644 --- a/assets/preview-ET9V_h4u.js +++ b/assets/preview-3AQBzxjc.js @@ -1,4 +1,4 @@ -import{j as Ve}from"./jsx-runtime-DtaoT6pD.js";import{g as me,c as mt,b as Fa,r as ie,R as fe}from"./index-OjgoNOWw.js";import{q as En,r as bn,s as nr,i as Ma,t as On,e as ar,v as Ga,w as Ua,c as ir,x as ka,y as qa,z as Ba,A as Va,B as _n,C as Wa,D as Ha,E as Xa,F as za,G as Ya,H as Ka,I as Qa,J as Ja}from"./index-LnHysSno.js";import{j as Za,k as wn,l as ei,o as ti,p as ri,q as ni,r as ai,m as Pe,t as sr,u as ii,v as si,N as ze,L as Ft,w as _r,x as oi}from"./index-FEzJ-IFI.js";import{a as li}from"./isPlainObject-MVcjkst_.js";import{d as An}from"./index-BdDYuicC.js";import"./chunk-HLWAVYOI-Ycm5PLJ1.js";import{G as ui}from"./emotion-react.browser.esm-8gWn0FvA.js";import{o as ci,q as fi}from"./utils-ur_GzcA6.js";import{a as pi}from"./emotion-element-c39617d8.browser.esm-upVMHClS.js";import"./iframe-Di3G6qoa.js";import"../sb-preview/runtime.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-xK8HOd_o.js";import"./index-mQqIOHEI.js";import"./inheritsLoose-Y9jOMJLd.js";import"./react-18-DyM-o0Ps.js";var wr="DARK_MODE",hi=En,yi=bn;function di(t,e,r){(r!==void 0&&!yi(t[e],r)||r===void 0&&!(e in t))&&hi(t,e,r)}var Rn=di,gi=nr,vi=Ma;function mi(t){return vi(t)&&gi(t)}var Si=mi;function Ei(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}var $n=Ei,bi=Za,Oi=wn;function _i(t){return bi(t,Oi(t))}var wi=_i,Ar=Rn,Ai=ei,Ri=ti,$i=ri,Ti=ni,Rr=On,$r=ar,xi=Si,Pi=Ga,Ii=Ua,Ni=ir,Li=li,ji=ka,Tr=$n,Di=wi;function Ci(t,e,r,n,o,s,l){var a=Tr(t,r),i=Tr(e,r),u=l.get(i);if(u){Ar(t,r,u);return}var c=s?s(a,i,r+"",t,e,l):void 0,f=c===void 0;if(f){var p=$r(i),h=!p&&Pi(i),y=!p&&!h&&ji(i);c=i,p||h||y?$r(a)?c=a:xi(a)?c=$i(a):h?(f=!1,c=Ai(i,!0)):y?(f=!1,c=Ri(i,!0)):c=[]:Li(i)||Rr(i)?(c=a,Rr(a)?c=Di(a):(!Ni(a)||Ii(a))&&(c=Ti(i))):f=!1}f&&(l.set(i,c),o(c,i,n,s,l),l.delete(i)),Ar(t,r,c)}var Fi=Ci,Mi=qa,Gi=Rn,Ui=Ba,ki=Fi,qi=ir,Bi=wn,Vi=$n;function Tn(t,e,r,n,o){t!==e&&Ui(e,function(s,l){if(o||(o=new Mi),qi(s))ki(t,e,l,r,Tn,n,o);else{var a=n?n(Vi(t,l),s,l+"",t,e,o):void 0;a===void 0&&(a=s),Gi(t,l,a)}},Bi)}var Wi=Tn;function Hi(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}var Xi=Hi,zi=Xi,xr=Math.max;function Yi(t,e,r){return e=xr(e===void 0?t.length-1:e,0),function(){for(var n=arguments,o=-1,s=xr(n.length-e,0),l=Array(s);++o0){if(++e>=rs)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var ss=is,os=ts,ls=ss,us=ls(os),Pn=us,cs=_n,fs=xn,ps=Pn;function hs(t,e){return ps(fs(t,e,cs),t+"")}var ys=hs,ds=bn,gs=nr,vs=Wa,ms=ir;function Ss(t,e,r){if(!ms(r))return!1;var n=typeof e;return(n=="number"?gs(r)&&vs(e,r.length):n=="string"&&e in r)?ds(r[e],t):!1}var Es=Ss,bs=ys,Os=Es;function _s(t){return bs(function(e,r){var n=-1,o=r.length,s=o>1?r[o-1]:void 0,l=o>2?r[2]:void 0;for(s=t.length>3&&typeof s=="function"?(o--,s):void 0,l&&Os(r[0],r[1],l)&&(s=o<3?void 0:s,o=1),e=Object(e);++n0){if(++e>=rs)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var ss=is,os=ts,ls=ss,us=ls(os),Pn=us,cs=_n,fs=xn,ps=Pn;function hs(t,e){return ps(fs(t,e,cs),t+"")}var ys=hs,ds=bn,gs=nr,vs=Wa,ms=ir;function Ss(t,e,r){if(!ms(r))return!1;var n=typeof e;return(n=="number"?gs(r)&&vs(e,r.length):n=="string"&&e in r)?ds(r[e],t):!1}var Es=Ss,bs=ys,Os=Es;function _s(t){return bs(function(e,r){var n=-1,o=r.length,s=o>1?r[o-1]:void 0,l=o>2?r[2]:void 0;for(s=t.length>3&&typeof s=="function"?(o--,s):void 0,l&&Os(r[0],r[1],l)&&(s=o<3?void 0:s,o=1),e=Object(e);++nn.length(this._area)&&(i--,a--)}return l||this},keys:function(s){return this.each(function(l,a,i){i.push(l)},s||[])},get:function(s,l){var a=n.get(this._area,this._in(s)),i;return typeof l=="function"&&(i=l,l=null),a!==null?n.parse(a,i):l??a},getAll:function(s){return this.each(function(l,a,i){i[l]=a},s||{})},transact:function(s,l,a){var i=this.get(s,a),u=l(i);return this.set(s,u===void 0?i:u),this},set:function(s,l,a){var i=this.get(s),u;return i!=null&&a===!1?l:(typeof a=="function"&&(u=a,a=void 0),n.set(this._area,this._in(s),n.stringify(l,u),a)||i)},setAll:function(s,l){var a,i;for(var u in s)i=s[u],this.set(u,i,l)!==i&&(a=!0);return a},add:function(s,l,a){var i=this.get(s);if(i instanceof Array)l=i.concat(l);else if(i!==null){var u=typeof i;if(u===typeof l&&u==="object"){for(var c in l)i[c]=l[c];l=i}else l=i+l}return n.set(this._area,this._in(s),n.stringify(l,a)),l},remove:function(s,l){var a=this.get(s,l);return n.remove(this._area,this._in(s)),a},clear:function(){return this._ns?this.each(function(s){n.remove(this._area,this._in(s))},1):n.clear(this._area),this},clearAll:function(){var s=this._area;for(var l in n.areas)n.areas.hasOwnProperty(l)&&(this._area=n.areas[l],this.clear());return this._area=s,this},_in:function(s){return typeof s!="string"&&(s=n.stringify(s)),this._ns?this._ns+s:s},_out:function(s){return this._ns?s&&s.indexOf(this._ns)===0?s.substring(this._ns.length):void 0:s}},storage:function(s){return n.inherit(n.storageAPI,{items:{},name:s})},storageAPI:{length:0,has:function(s){return this.items.hasOwnProperty(s)},key:function(s){var l=0;for(var a in this.items)if(this.has(a)&&s===l++)return a},setItem:function(s,l){this.has(s)||this.length++,this.items[s]=l},removeItem:function(s){this.has(s)&&(delete this.items[s],this.length--)},getItem:function(s){return this.has(s)?this.items[s]:null},clear:function(){for(var s in this.items)this.removeItem(s)}}},o=n.Store("local",function(){try{return localStorage}catch{}}());o.local=o,o._=n,o.area("session",function(){try{return sessionStorage}catch{}}()),o.area("page",n.storage("page")),typeof r=="function"&&r.amd!==void 0?r("store2",[],function(){return o}):t.exports?t.exports=o:(e.store&&(n.conflict=e.store),e.store=o)})(mt,mt&&mt.define)})(Nn);var xs=Nn.exports;const Fe=me(xs);var Ps=Ha;function Is(t,e){return Ps(t,e)}var Ns=Is;const Ls=me(Ns);function js(t,e,r,n){for(var o=-1,s=t==null?0:t.length;++o0&&r(a)?e>1?Ln(a,e-1,r,n,o):ho(o,a):n||(o[o.length]=a)}return o}var go=Ln,vo=go;function mo(t){var e=t==null?0:t.length;return e?vo(t,1):[]}var So=mo,Eo=So,bo=xn,Oo=Pn;function _o(t){return Oo(bo(t,void 0,Eo),t+"")}var wo=_o,Ao=lo,Ro=wo,$o=Ro(function(t,e){return t==null?{}:Ao(t,e)}),To=$o;const je=me(To);var Lr=Object.prototype.hasOwnProperty;function jr(t,e,r){for(r of t.keys())if(K(r,e))return r}function K(t,e){var r,n,o;if(t===e)return!0;if(t&&e&&(r=t.constructor)===e.constructor){if(r===Date)return t.getTime()===e.getTime();if(r===RegExp)return t.toString()===e.toString();if(r===Array){if((n=t.length)===e.length)for(;n--&&K(t[n],e[n]););return n===-1}if(r===Set){if(t.size!==e.size)return!1;for(n of t)if(o=n,o&&typeof o=="object"&&(o=jr(e,o),!o)||!e.has(o))return!1;return!0}if(r===Map){if(t.size!==e.size)return!1;for(n of t)if(o=n[0],o&&typeof o=="object"&&(o=jr(e,o),!o)||!K(n[1],e.get(o)))return!1;return!0}if(r===ArrayBuffer)t=new Uint8Array(t),e=new Uint8Array(e);else if(r===DataView){if((n=t.byteLength)===e.byteLength)for(;n--&&t.getInt8(n)===e.getInt8(n););return n===-1}if(ArrayBuffer.isView(t)){if((n=t.byteLength)===e.byteLength)for(;n--&&t[n]===e[n];);return n===-1}if(!r||typeof t=="object"){n=0;for(r in t)if(Lr.call(t,r)&&++n&&!Lr.call(e,r)||!(r in e)||!K(t[r],e[r]))return!1;return Object.keys(e).length===n}}return t!==t&&e!==e}var xo=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var o=42;e[r]=o;for(r in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var s=Object.getOwnPropertySymbols(e);if(s.length!==1||s[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var l=Object.getOwnPropertyDescriptor(e,r);if(l.value!==o||l.enumerable!==!0)return!1}return!0},Dr=typeof Symbol<"u"&&Symbol,Po=xo,Io=function(){return typeof Dr!="function"||typeof Symbol!="function"||typeof Dr("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Po()},Cr={foo:{}},No=Object,Lo=function(){return{__proto__:Cr}.foo===Cr.foo&&!({__proto__:null}instanceof No)},jo="Function.prototype.bind called on incompatible ",Do=Object.prototype.toString,Co=Math.max,Fo="[object Function]",Fr=function(e,r){for(var n=[],o=0;o"u"||!q?D:q(Uint8Array),ge={"%AggregateError%":typeof AggregateError>"u"?D:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?D:ArrayBuffer,"%ArrayIteratorPrototype%":Ee&&q?q([][Symbol.iterator]()):D,"%AsyncFromSyncIteratorPrototype%":D,"%AsyncFunction%":Oe,"%AsyncGenerator%":Oe,"%AsyncGeneratorFunction%":Oe,"%AsyncIteratorPrototype%":Oe,"%Atomics%":typeof Atomics>"u"?D:Atomics,"%BigInt%":typeof BigInt>"u"?D:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?D:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?D:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?D:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?D:Float32Array,"%Float64Array%":typeof Float64Array>"u"?D:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?D:FinalizationRegistry,"%Function%":jn,"%GeneratorFunction%":Oe,"%Int8Array%":typeof Int8Array>"u"?D:Int8Array,"%Int16Array%":typeof Int16Array>"u"?D:Int16Array,"%Int32Array%":typeof Int32Array>"u"?D:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Ee&&q?q(q([][Symbol.iterator]())):D,"%JSON%":typeof JSON=="object"?JSON:D,"%Map%":typeof Map>"u"?D:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Ee||!q?D:q(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?D:Promise,"%Proxy%":typeof Proxy>"u"?D:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?D:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?D:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Ee||!q?D:q(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?D:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Ee&&q?q(""[Symbol.iterator]()):D,"%Symbol%":Ee?Symbol:D,"%SyntaxError%":Ae,"%ThrowTypeError%":Ho,"%TypedArray%":zo,"%TypeError%":we,"%Uint8Array%":typeof Uint8Array>"u"?D:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?D:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?D:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?D:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?D:WeakMap,"%WeakRef%":typeof WeakRef>"u"?D:WeakRef,"%WeakSet%":typeof WeakSet>"u"?D:WeakSet};if(q)try{null.error}catch(t){var Yo=q(q(t));ge["%Error.prototype%"]=Yo}var Ko=function t(e){var r;if(e==="%AsyncFunction%")r=St("async function () {}");else if(e==="%GeneratorFunction%")r=St("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=St("async function* () {}");else if(e==="%AsyncGenerator%"){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var o=t("%AsyncGenerator%");o&&q&&(r=q(o.prototype))}return ge[e]=r,r},Mr={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},He=or,it=Wo,Qo=He.call(Function.call,Array.prototype.concat),Jo=He.call(Function.apply,Array.prototype.splice),Gr=He.call(Function.call,String.prototype.replace),st=He.call(Function.call,String.prototype.slice),Zo=He.call(Function.call,RegExp.prototype.exec),el=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,tl=/\\(\\)?/g,rl=function(e){var r=st(e,0,1),n=st(e,-1);if(r==="%"&&n!=="%")throw new Ae("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new Ae("invalid intrinsic syntax, expected opening `%`");var o=[];return Gr(e,el,function(s,l,a,i){o[o.length]=a?Gr(i,tl,"$1"):l||s}),o},nl=function(e,r){var n=e,o;if(it(Mr,n)&&(o=Mr[n],n="%"+o[0]+"%"),it(ge,n)){var s=ge[n];if(s===Oe&&(s=Ko(n)),typeof s>"u"&&!r)throw new we("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:s}}throw new Ae("intrinsic "+e+" does not exist!")},Se=function(e,r){if(typeof e!="string"||e.length===0)throw new we("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new we('"allowMissing" argument must be a boolean');if(Zo(/^%?[^%]*%?$/,e)===null)throw new Ae("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=rl(e),o=n.length>0?n[0]:"",s=nl("%"+o+"%",r),l=s.name,a=s.value,i=!1,u=s.alias;u&&(o=u[0],Jo(n,Qo([0,1],u)));for(var c=1,f=!0;c=n.length){var d=de(a,p);f=!!d,f&&"get"in d&&!("originalValue"in d.get)?a=d.get:a=a[p]}else f=it(a,p),a=a[p];f&&!i&&(ge[l]=a)}}return a},Dn={exports:{}},al=Se,Mt=al("%Object.defineProperty%",!0),Gt=function(){if(Mt)try{return Mt({},"a",{value:1}),!0}catch{return!1}return!1};Gt.hasArrayLengthDefineBug=function(){if(!Gt())return null;try{return Mt([],"length",{value:1}).length!==1}catch{return!0}};var Cn=Gt,il=Se,et=il("%Object.getOwnPropertyDescriptor%",!0);if(et)try{et([],"length")}catch{et=null}var Fn=et,sl=Cn(),lr=Se,Ge=sl&&lr("%Object.defineProperty%",!0);if(Ge)try{Ge({},"a",{value:1})}catch{Ge=!1}var ol=lr("%SyntaxError%"),be=lr("%TypeError%"),Ur=Fn,ll=function(e,r,n){if(!e||typeof e!="object"&&typeof e!="function")throw new be("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new be("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new be("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new be("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new be("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new be("`loose`, if provided, must be a boolean");var o=arguments.length>3?arguments[3]:null,s=arguments.length>4?arguments[4]:null,l=arguments.length>5?arguments[5]:null,a=arguments.length>6?arguments[6]:!1,i=!!Ur&&Ur(e,r);if(Ge)Ge(e,r,{configurable:l===null&&i?i.configurable:!l,enumerable:o===null&&i?i.enumerable:!o,value:n,writable:s===null&&i?i.writable:!s});else if(a||!o&&!s&&!l)e[r]=n;else throw new ol("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Mn=Se,kr=ll,ul=Cn(),qr=Fn,Br=Mn("%TypeError%"),cl=Mn("%Math.floor%"),fl=function(e,r){if(typeof e!="function")throw new Br("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||cl(r)!==r)throw new Br("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],o=!0,s=!0;if("length"in e&&qr){var l=qr(e,"length");l&&!l.configurable&&(o=!1),l&&!l.writable&&(s=!1)}return(o||s||!n)&&(ul?kr(e,"length",r,!0,!0):kr(e,"length",r)),e};(function(t){var e=or,r=Se,n=fl,o=r("%TypeError%"),s=r("%Function.prototype.apply%"),l=r("%Function.prototype.call%"),a=r("%Reflect.apply%",!0)||e.call(l,s),i=r("%Object.defineProperty%",!0),u=r("%Math.max%");if(i)try{i({},"a",{value:1})}catch{i=null}t.exports=function(p){if(typeof p!="function")throw new o("a function is required");var h=a(e,l,arguments);return n(h,1+u(0,p.length-(arguments.length-1)),!0)};var c=function(){return a(e,s,arguments)};i?i(t.exports,"apply",{value:c}):t.exports.apply=c})(Dn);var pl=Dn.exports,Gn=Se,Un=pl,hl=Un(Gn("String.prototype.indexOf")),yl=function(e,r){var n=Gn(e,!!r);return typeof n=="function"&&hl(e,".prototype.")>-1?Un(n):n};const dl={},gl=Object.freeze(Object.defineProperty({__proto__:null,default:dl},Symbol.toStringTag,{value:"Module"})),vl=Fa(gl);var ur=typeof Map=="function"&&Map.prototype,bt=Object.getOwnPropertyDescriptor&&ur?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,ot=ur&&bt&&typeof bt.get=="function"?bt.get:null,Vr=ur&&Map.prototype.forEach,cr=typeof Set=="function"&&Set.prototype,Ot=Object.getOwnPropertyDescriptor&&cr?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,lt=cr&&Ot&&typeof Ot.get=="function"?Ot.get:null,Wr=cr&&Set.prototype.forEach,ml=typeof WeakMap=="function"&&WeakMap.prototype,Ue=ml?WeakMap.prototype.has:null,Sl=typeof WeakSet=="function"&&WeakSet.prototype,ke=Sl?WeakSet.prototype.has:null,El=typeof WeakRef=="function"&&WeakRef.prototype,Hr=El?WeakRef.prototype.deref:null,bl=Boolean.prototype.valueOf,Ol=Object.prototype.toString,_l=Function.prototype.toString,wl=String.prototype.match,fr=String.prototype.slice,ce=String.prototype.replace,Al=String.prototype.toUpperCase,Xr=String.prototype.toLowerCase,kn=RegExp.prototype.test,zr=Array.prototype.concat,ne=Array.prototype.join,Rl=Array.prototype.slice,Yr=Math.floor,Ut=typeof BigInt=="function"?BigInt.prototype.valueOf:null,_t=Object.getOwnPropertySymbols,kt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Re=typeof Symbol=="function"&&typeof Symbol.iterator=="object",V=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Re||!0)?Symbol.toStringTag:null,qn=Object.prototype.propertyIsEnumerable,Kr=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function Qr(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||kn.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var n=t<0?-Yr(-t):Yr(t);if(n!==t){var o=String(n),s=fr.call(e,o.length+1);return ce.call(o,r,"$&_")+"."+ce.call(ce.call(s,/([0-9]{3})/g,"$&_"),/_$/,"")}}return ce.call(e,r,"$&_")}var qt=vl,Jr=qt.custom,Zr=Vn(Jr)?Jr:null,$l=function t(e,r,n,o){var s=r||{};if(ue(s,"quoteStyle")&&s.quoteStyle!=="single"&&s.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(ue(s,"maxStringLength")&&(typeof s.maxStringLength=="number"?s.maxStringLength<0&&s.maxStringLength!==1/0:s.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var l=ue(s,"customInspect")?s.customInspect:!0;if(typeof l!="boolean"&&l!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(ue(s,"indent")&&s.indent!==null&&s.indent!==" "&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(ue(s,"numericSeparator")&&typeof s.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var a=s.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return Hn(e,s);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var i=String(e);return a?Qr(e,i):i}if(typeof e=="bigint"){var u=String(e)+"n";return a?Qr(e,u):u}var c=typeof s.depth>"u"?5:s.depth;if(typeof n>"u"&&(n=0),n>=c&&c>0&&typeof e=="object")return Bt(e)?"[Array]":"[Object]";var f=Wl(s,n);if(typeof o>"u")o=[];else if(Wn(o,e)>=0)return"[Circular]";function p(H,Y,O){if(Y&&(o=Rl.call(o),o.push(Y)),O){var E={depth:s.depth};return ue(s,"quoteStyle")&&(E.quoteStyle=s.quoteStyle),t(H,E,n+1,o)}return t(H,s,n+1,o)}if(typeof e=="function"&&!en(e)){var h=Cl(e),y=Ye(e,p);return"[Function"+(h?": "+h:" (anonymous)")+"]"+(y.length>0?" { "+ne.call(y,", ")+" }":"")}if(Vn(e)){var d=Re?ce.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):kt.call(e);return typeof e=="object"&&!Re?De(d):d}if(ql(e)){for(var m="<"+Xr.call(String(e.nodeName)),v=e.attributes||[],_=0;_",m}if(Bt(e)){if(e.length===0)return"[]";var P=Ye(e,p);return f&&!Vl(P)?"["+Vt(P,f)+"]":"[ "+ne.call(P,", ")+" ]"}if(Pl(e)){var R=Ye(e,p);return!("cause"in Error.prototype)&&"cause"in e&&!qn.call(e,"cause")?"{ ["+String(e)+"] "+ne.call(zr.call("[cause]: "+p(e.cause),R),", ")+" }":R.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+ne.call(R,", ")+" }"}if(typeof e=="object"&&l){if(Zr&&typeof e[Zr]=="function"&&qt)return qt(e,{depth:c-n});if(l!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(Fl(e)){var g=[];return Vr&&Vr.call(e,function(H,Y){g.push(p(Y,e,!0)+" => "+p(H,e))}),tn("Map",ot.call(e),g,f)}if(Ul(e)){var S=[];return Wr&&Wr.call(e,function(H){S.push(p(H,e))}),tn("Set",lt.call(e),S,f)}if(Ml(e))return wt("WeakMap");if(kl(e))return wt("WeakSet");if(Gl(e))return wt("WeakRef");if(Nl(e))return De(p(Number(e)));if(jl(e))return De(p(Ut.call(e)));if(Ll(e))return De(bl.call(e));if(Il(e))return De(p(String(e)));if(!xl(e)&&!en(e)){var b=Ye(e,p),w=Kr?Kr(e)===Object.prototype:e instanceof Object||e.constructor===Object,I=e instanceof Object?"":"null prototype",A=!w&&V&&Object(e)===e&&V in e?fr.call(pe(e),8,-1):I?"Object":"",U=w||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",ee=U+(A||I?"["+ne.call(zr.call([],A||[],I||[]),": ")+"] ":"");return b.length===0?ee+"{}":f?ee+"{"+Vt(b,f)+"}":ee+"{ "+ne.call(b,", ")+" }"}return String(e)};function Bn(t,e,r){var n=(r.quoteStyle||e)==="double"?'"':"'";return n+t+n}function Tl(t){return ce.call(String(t),/"/g,""")}function Bt(t){return pe(t)==="[object Array]"&&(!V||!(typeof t=="object"&&V in t))}function xl(t){return pe(t)==="[object Date]"&&(!V||!(typeof t=="object"&&V in t))}function en(t){return pe(t)==="[object RegExp]"&&(!V||!(typeof t=="object"&&V in t))}function Pl(t){return pe(t)==="[object Error]"&&(!V||!(typeof t=="object"&&V in t))}function Il(t){return pe(t)==="[object String]"&&(!V||!(typeof t=="object"&&V in t))}function Nl(t){return pe(t)==="[object Number]"&&(!V||!(typeof t=="object"&&V in t))}function Ll(t){return pe(t)==="[object Boolean]"&&(!V||!(typeof t=="object"&&V in t))}function Vn(t){if(Re)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!kt)return!1;try{return kt.call(t),!0}catch{}return!1}function jl(t){if(!t||typeof t!="object"||!Ut)return!1;try{return Ut.call(t),!0}catch{}return!1}var Dl=Object.prototype.hasOwnProperty||function(t){return t in this};function ue(t,e){return Dl.call(t,e)}function pe(t){return Ol.call(t)}function Cl(t){if(t.name)return t.name;var e=wl.call(_l.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function Wn(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;re.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return Hn(fr.call(t,0,e.maxStringLength),e)+n}var o=ce.call(ce.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Bl);return Bn(o,"single",e)}function Bl(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+Al.call(e.toString(16))}function De(t){return"Object("+t+")"}function wt(t){return t+" { ? }"}function tn(t,e,r,n){var o=n?Vt(r,n):ne.call(r,", ");return t+" ("+e+") {"+o+"}"}function Vl(t){for(var e=0;e=0)return!1;return!0}function Wl(t,e){var r;if(t.indent===" ")r=" ";else if(typeof t.indent=="number"&&t.indent>0)r=ne.call(Array(t.indent+1)," ");else return null;return{base:r,prev:ne.call(Array(e+1),r)}}function Vt(t,e){if(t.length===0)return"";var r=` `+e.prev+e.base;return r+ne.call(t,","+r)+` @@ -27,4 +27,4 @@ import{j as Ve}from"./jsx-runtime-DtaoT6pD.js";import{g as me,c as mt,b as Fa,r Please check your dev-tools network tab. `});let g=i.versions&&Object.keys(i.versions).length?i.versions:y.versions;await s.setRef(u,{id:u,url:v.url,...y,...g?{versions:g}:{},type:y.storyIndex?"lazy":"auto-inject"})},getRefs:()=>{let{refs:i={}}=t.getState();return i},setRef:(i,{storyIndex:u,setStoriesData:c,...f},p=!1)=>{if(r)return;let{storyMapper:h=ba}=e.getConfig(),y=s.getRefs()[i],d;c?d=Rf(Cf(c,y,{storyMapper:h}),{provider:e,docsOptions:n,filters:{},status:{}}):u&&(d=Or(u,{provider:e,docsOptions:n,filters:{},status:{}})),d&&(d=jf(d,y)),s.updateRef(i,{index:d,...f})},updateRef:(i,u)=>{let{[i]:c,...f}=s.getRefs();f[i]={...c,...u};let p=Object.keys(a).reduce((h,y)=>(h[y]=f[y],h),{});t.setState({refs:p})}},l=!r&&Q.REFS||{},a=l;return o&&Object.entries(l).forEach(([i,u])=>{s.checkRef({...u,stories:{}})}),{api:s,state:{refs:a}}},X=(t,e)=>{let{source:r,refId:n,type:o}=t,[s,l]=Ea(r,n),a=n&&e.getRefs()[n]?e.getRefs()[n]:e.findRef(l),i={source:r,sourceType:s,sourceLocation:l,refId:n,ref:a,type:o};switch(!0){case typeof n=="string":case s==="local":case s==="external":return i;default:return Te.warn(`Received a ${o} frame that was not configured as a ref`),null}},{FEATURES:xt,fetch:Mf}=Q,Gf="./index.json",Uf=["enableShortcuts","theme","showRoots"];function Pt(t){if(!t||typeof t=="string")return t;let e={...t};return Uf.forEach(r=>{r in e&&delete e[r]}),e}var kf=({fullAPI:t,store:e,navigate:r,provider:n,storyId:o,viewMode:s,docsOptions:l={}})=>{var u;let a={storyId:ze,getData:(c,f)=>{let p=a.resolveStory(c,f);if((p==null?void 0:p.type)==="story"||(p==null?void 0:p.type)==="docs")return p},isPrepared:(c,f)=>{let p=a.getData(c,f);return p?p.type==="story"?p.prepared:!0:!1},resolveStory:(c,f)=>{let{refs:p,index:h}=e.getState();return f&&!p[f]?null:f?p[f].index?p[f].index[c]:void 0:h?h[c]:void 0},getCurrentStoryData:()=>{let{storyId:c,refId:f}=e.getState();return a.getData(c,f)},getParameters:(c,f)=>{let{storyId:p,refId:h}=typeof c=="string"?{storyId:c,refId:void 0}:c,y=a.getData(p,h);if(["story","docs"].includes(y==null?void 0:y.type)){let{parameters:d}=y;if(d)return f?d[f]:d}return null},getCurrentParameter:c=>{let{storyId:f,refId:p}=e.getState();return a.getParameters({storyId:f,refId:p},c)||void 0},jumpToComponent:c=>{let{index:f,storyId:p,refs:h,refId:y}=e.getState();if(!a.getData(p,y))return;let d=y?h[y].index||{}:f,m=a.findSiblingStoryId(p,d,c,!0);m&&a.selectStory(m,void 0,{ref:y})},jumpToStory:c=>{let{index:f,storyId:p,refs:h,refId:y}=e.getState(),d=a.getData(p,y);if(!d)return;let m=d.refId?h[d.refId].index:f,v=a.findSiblingStoryId(p,m,c,!1);v&&a.selectStory(v,void 0,{ref:y})},selectFirstStory:()=>{let{index:c}=e.getState(),f=Object.keys(c).find(p=>c[p].type==="story");if(f){a.selectStory(f);return}r("/")},selectStory:(c=void 0,f=void 0,p={})=>{let{ref:h}=p,{storyId:y,index:d,refs:m}=e.getState(),v=h?m[h].index:d,_=y==null?void 0:y.split("--",2)[0];if(f)if(c){let P=h?`${h}_${ze(c,f)}`:ze(c,f);if(v[P])a.selectStory(P,void 0,p);else{let R=v[Ft(c)];if((R==null?void 0:R.type)==="component"){let g=R.children.find(S=>v[S].name===f);g&&a.selectStory(g,void 0,p)}}}else{let P=ze(_,f);a.selectStory(P,void 0,p)}else{let P=c?v[c]||v[Ft(c)]:v[_];if(!P)throw new Error(`Unknown id or title: '${c}'`);e.setState({settings:{...e.getState().settings,lastTrackedStoryId:P.id}});let R=a.findLeafEntry(v,P.id),g=R.refId?`${R.refId}_${R.id}`:R.id;r(`/${R.type}/${g}`)}},findLeafEntry(c,f){let p=c[f];if(p.type==="docs"||p.type==="story")return p;let h=p.children[0];return a.findLeafEntry(c,h)},findLeafStoryId(c,f){var p;return(p=a.findLeafEntry(c,f))==null?void 0:p.id},findSiblingStoryId(c,f,p,h){if(h){let m=If(f),v=m.findIndex(_=>_.includes(c));return v===m.length-1&&p>0||v===0&&p<0?void 0:m[v+p]?m[v+p][0]:void 0}let y=Nf(f),d=y.indexOf(c);if(!(d===y.length-1&&p>0)&&!(d===0&&p<0))return y[d+p]},updateStoryArgs:(c,f)=>{let{id:p,refId:h}=c;n.channel.emit(_c,{storyId:p,updatedArgs:f,options:{target:h}})},resetStoryArgs:(c,f)=>{let{id:p,refId:h}=c;n.channel.emit(wc,{storyId:p,argNames:f,options:{target:h}})},fetchIndex:async()=>{try{let c=await Mf(Gf);if(c.status!==200)throw new Error(await c.text());let f=await c.json();if(f.v<3){Te.warn(`Skipping story index with version v${f.v}, awaiting SET_STORIES.`);return}await a.setIndex(f)}catch(c){await e.setState({indexError:c})}},setIndex:async c=>{let{index:f,status:p,filters:h}=e.getState(),y=Or(c,{provider:n,docsOptions:l,status:p,filters:h}),d=Pf(y,f);await e.setState({internal_index:c,index:d,indexError:void 0})},updateStory:async(c,f,p)=>{if(p){let{id:h,index:y}=p;y[c]={...y[c],...f},await t.updateRef(h,{index:y})}else{let{index:h}=e.getState();h[c]={...h[c],...f},await e.setState({index:h})}},updateDocs:async(c,f,p)=>{if(p){let{id:h,index:y}=p;y[c]={...y[c],...f},await t.updateRef(h,{index:y})}else{let{index:h}=e.getState();h[c]={...h[c],...f},await e.setState({index:h})}},setPreviewInitialized:async c=>{c?t.updateRef(c.id,{previewInitialized:!0}):e.setState({previewInitialized:!0})},experimental_updateStatus:async(c,f)=>{let{status:p,internal_index:h}=e.getState(),y={...p},d=typeof f=="function"?f(p):f;Object.keys(d).length!==0&&(Object.entries(d).forEach(([m,v])=>{y[m]={...y[m]||{}},v===null?delete y[m][c]:y[m][c]=v,Object.keys(y[m]).length===0&&delete y[m]}),await e.setState({status:y},{persistence:"session"}),h&&await a.setIndex(h))},experimental_setFilter:async(c,f)=>{let{internal_index:p}=e.getState();await e.setState({filters:{...e.getState().filters,[c]:f}}),await a.setIndex(p)}};n.channel.on(sc,function({storyId:c,viewMode:f}){let{sourceType:p}=X(this,t);if(p==="local"){let h=e.getState(),y=h.path==="/"||h.viewMode==="story"||h.viewMode==="docs",d=h.viewMode&&h.storyId,m=h.viewMode!==f||h.storyId!==c,{type:v}=h.index[h.storyId]||{};y&&(d&&m&&!(v==="root"||v==="component"||v==="group")?n.channel.emit(aa,{storyId:h.storyId,viewMode:h.viewMode}):m&&r(`/${f}/${c}`))}}),n.channel.on(oc,function(){let{ref:c}=X(this,t);a.setPreviewInitialized(c)}),n.channel.on(lc,function(){let{sourceType:c}=X(this,t);if(c==="local"){let f=a.getCurrentParameter("options");f&&t.setOptions(Pt(f))}}),n.channel.on(uc,function({id:c,...f}){let{ref:p,sourceType:h}=X(this,t);if(a.updateStory(c,{...f,prepared:!0},p),!p&&!e.getState().hasCalledSetOptions){let{options:y}=f.parameters;t.setOptions(Pt(y)),e.setState({hasCalledSetOptions:!0})}if(h==="local"){let{storyId:y,index:d,refId:m}=e.getState(),v=Array.from(new Set([a.findSiblingStoryId(y,d,1,!0),a.findSiblingStoryId(y,d,-1,!0)])).filter(Boolean);n.channel.emit(cc,{ids:v,options:{target:m}})}}),n.channel.on(fc,function({id:c,...f}){let{ref:p}=X(this,t);a.updateStory(c,{...f,prepared:!0},p)}),n.channel.on(pc,function(c){let{ref:f}=X(this,t);if(f)t.setRef(f.id,{...f,storyIndex:c},!0);else{a.setIndex(c);let p=a.getCurrentParameter("options");t.setOptions(Pt(p))}}),n.channel.on(hc,function(c){let{ref:f}=X(this,t),p=c.v?Af(c):c.stories;if(f)t.setRef(f.id,{...f,setStoriesData:p},!0);else throw new Error("Cannot call SET_STORIES for local frame")}),n.channel.on(yc,function({kind:c,title:f=c,story:p,name:h=p,storyId:y,...d}){let{ref:m}=X(this,t);m?t.selectStory(y||f,h,{...d,ref:m.id}):t.selectStory(y||f,h,d)}),n.channel.on(ia,function({storyId:c,args:f}){let{ref:p}=X(this,t);a.updateStory(c,{args:f},p)}),n.channel.on(dc,function(c){let{ref:f}=X(this,t);a.setPreviewInitialized(f)}),n.channel.on(gc,function(c){let{ref:f}=X(this,t);a.setPreviewInitialized(f)}),n.channel.on(ct,()=>{var f,p;let c=n.getConfig();(f=c==null?void 0:c.sidebar)!=null&&f.filters&&e.setState({filters:{...e.getState().filters,...(p=c==null?void 0:c.sidebar)==null?void 0:p.filters}})});let i=n.getConfig();return{api:a,state:{storyId:o,viewMode:s,hasCalledSetOptions:!1,previewInitialized:!1,status:{},filters:((u=i==null?void 0:i.sidebar)==null?void 0:u.filters)||{}},init:async()=>{xt!=null&&xt.storyStoreV7&&(n.channel.on(vc,()=>a.fetchIndex()),await a.fetchIndex())}}},Oa={};z(Oa,{ActiveTabs:()=>_a,focusableUIElements:()=>nt,init:()=>Bf});var{document:qf}=Q,_a={SIDEBAR:"sidebar",CANVAS:"canvas",ADDONS:"addons"},he={ui:{enableShortcuts:!0},layout:{initialActive:_a.CANVAS,showToolbar:!0,isFullscreen:!1,showPanel:!0,showNav:!0,panelPosition:"bottom",showTabs:!0},selectedPanel:void 0,theme:sr()},nt={storySearchField:"storybook-explorer-searchfield",storyListMenu:"storybook-explorer-menu",storyPanelRoot:"storybook-panel-root"},Bf=({store:t,provider:e,singleStory:r,fullAPI:n})=>{let o={toggleFullscreen(l){return t.setState(a=>{let{showNav:i}=a.layout,u=typeof l=="boolean"?l:!a.layout.isFullscreen,c=i===!1&&u===!1;return{layout:{...a.layout,isFullscreen:u,showNav:!r&&c?!0:i}}},{persistence:"session"})},togglePanel(l){return t.setState(a=>{let{showNav:i,isFullscreen:u}=a.layout,c=typeof l<"u"?l:!a.layout.showPanel,f=i===!1&&c===!1;return{layout:{...a.layout,showPanel:c,isFullscreen:f?!0:u}}},{persistence:"session"})},togglePanelPosition(l){return typeof l<"u"?t.setState(a=>({layout:{...a.layout,panelPosition:l}}),{persistence:"permanent"}):t.setState(a=>({layout:{...a.layout,panelPosition:a.layout.panelPosition==="right"?"bottom":"right"}}),{persistence:"permanent"})},toggleNav(l){return t.setState(a=>{if(r)return{layout:a.layout};let{showPanel:i,isFullscreen:u}=a.layout,c=typeof l<"u"?l:!a.layout.showNav,f=i===!1&&c===!1;return{layout:{...a.layout,showNav:c,isFullscreen:f?!0:!c&&u}}},{persistence:"session"})},toggleToolbar(l){return t.setState(a=>{let i=typeof l<"u"?l:!a.layout.showToolbar;return{layout:{...a.layout,showToolbar:i}}},{persistence:"session"})},resetLayout(){return t.setState(l=>({layout:{...l.layout,showNav:!1,showPanel:!1,isFullscreen:!1}}),{persistence:"session"})},focusOnUIElement(l,a){if(!l)return;let i=qf.getElementById(l);i&&(i.focus(),a&&i.select())},getInitialOptions(){let{theme:l,selectedPanel:a,...i}=e.getConfig();return{...he,layout:{...he.layout,...je(i,Object.keys(he.layout)),...r&&{showNav:!1}},ui:{...he.ui,...je(i,Object.keys(he.ui))},selectedPanel:a||he.selectedPanel,theme:l||he.theme}},setOptions:l=>{let{layout:a,ui:i,selectedPanel:u,theme:c}=t.getState();if(l){let f={...a,...l.layout,...je(l,Object.keys(a)),...r&&{showNav:!1}},p={...i,...l.ui,...je(l,Object.keys(i))},h={...c,...l.theme},y={};K(i,p)||(y.ui=p),K(a,f)||(y.layout=f),l.selectedPanel&&!K(u,l.selectedPanel)&&(y.selectedPanel=l.selectedPanel),Object.keys(y).length&&t.setState(y,{persistence:"permanent"}),K(c,h)||t.setState({theme:h})}}},s=je(t.getState(),"layout","selectedPanel");return{api:o,state:ve(o.getInitialOptions(),s),init:()=>{o.setOptions(ve(o.getInitialOptions(),s)),e.channel.on(ct,()=>{o.setOptions(ve(o.getInitialOptions(),s))})}}},wa={};z(wa,{controlOrMetaKey:()=>at,defaultShortcuts:()=>_e,init:()=>Xf,isMacLike:()=>Aa,keys:()=>er});var Vf=t=>{var r;if(["Meta","Alt","Control","Shift"].includes(t.key))return null;let e=[];if(t.altKey&&e.push("alt"),t.ctrlKey&&e.push("control"),t.metaKey&&e.push("meta"),t.shiftKey&&e.push("shift"),t.key&&t.key.length===1&&t.key!==" "){let n=t.key.toUpperCase(),o=(r=t.code)==null?void 0:r.toUpperCase().replace("KEY","").replace("DIGIT","");o&&o.length===1&&o!==n?e.push([n,o]):e.push(n)}return t.key===" "&&e.push("space"),t.key==="Escape"&&e.push("escape"),t.key==="ArrowRight"&&e.push("ArrowRight"),t.key==="ArrowDown"&&e.push("ArrowDown"),t.key==="ArrowUp"&&e.push("ArrowUp"),t.key==="ArrowLeft"&&e.push("ArrowLeft"),e.length>0?e:null},Wf=(t,e)=>!t||!e||(t.join("").startsWith("shift/")&&t.shift(),t.length!==e.length)?!1:!t.find((r,n)=>Array.isArray(r)?!r.includes(e[n]):r!==e[n]),{navigator:It,document:pn}=Q,Aa=()=>It&&It.platform?!!It.platform.match(/(Mac|iPhone|iPod|iPad)/i):!1,at=()=>Aa()?"meta":"control";function er(t){return Object.keys(t)}var _e=Object.freeze({fullScreen:["F"],togglePanel:["A"],panelPosition:["D"],toggleNav:["S"],toolbar:["T"],search:["/"],focusNav:["1"],focusIframe:["2"],focusPanel:["3"],prevComponent:["alt","ArrowUp"],nextComponent:["alt","ArrowDown"],prevStory:["alt","ArrowLeft"],nextStory:["alt","ArrowRight"],shortcutsPage:[at(),"shift",","],aboutPage:[","],escape:["escape"],collapseAll:[at(),"shift","ArrowUp"],expandAll:[at(),"shift","ArrowDown"],remount:["alt","R"]}),Nt={};function Hf(t){let e=t.target;return/input|textarea/i.test(e.tagName)||e.getAttribute("contenteditable")!==null}var Xf=({store:t,fullAPI:e,provider:r})=>{let n={getShortcutKeys(){return t.getState().shortcuts},getDefaultShortcuts(){return{..._e,...n.getAddonsShortcutDefaults()}},getAddonsShortcuts(){return Nt},getAddonsShortcutLabels(){let l={};return Object.entries(n.getAddonsShortcuts()).forEach(([a,{label:i}])=>{l[a]=i}),l},getAddonsShortcutDefaults(){let l={};return Object.entries(n.getAddonsShortcuts()).forEach(([a,{defaultShortcut:i}])=>{l[a]=i}),l},async setShortcuts(l){return await t.setState({shortcuts:l},{persistence:"permanent"}),l},async restoreAllDefaultShortcuts(){return n.setShortcuts(n.getDefaultShortcuts())},async setShortcut(l,a){let i=n.getShortcutKeys();return await n.setShortcuts({...i,[l]:a}),a},async setAddonShortcut(l,a){let i=n.getShortcutKeys();return await n.setShortcuts({...i,[`${l}-${a.actionName}`]:a.defaultShortcut}),Nt[`${l}-${a.actionName}`]=a,a},async restoreDefaultShortcut(l){let a=n.getDefaultShortcuts()[l];return n.setShortcut(l,a)},handleKeydownEvent(l){let a=Vf(l),i=n.getShortcutKeys(),u=er(i).find(c=>Wf(a,i[c]));u&&n.handleShortcutFeature(u,l)},handleShortcutFeature(l,a){let{layout:{isFullscreen:i,showNav:u,showPanel:c},ui:{enableShortcuts:f},storyId:p}=t.getState();if(f)switch(a!=null&&a.preventDefault&&a.preventDefault(),l){case"escape":{i?e.toggleFullscreen():u||e.toggleNav();break}case"focusNav":{i&&e.toggleFullscreen(),u||e.toggleNav(),e.focusOnUIElement(nt.storyListMenu);break}case"search":{i&&e.toggleFullscreen(),u||e.toggleNav(),setTimeout(()=>{e.focusOnUIElement(nt.storySearchField,!0)},0);break}case"focusIframe":{let h=pn.getElementById("storybook-preview-iframe");if(h)try{h.contentWindow.focus()}catch{}break}case"focusPanel":{i&&e.toggleFullscreen(),c||e.togglePanel(),e.focusOnUIElement(nt.storyPanelRoot);break}case"nextStory":{e.jumpToStory(1);break}case"prevStory":{e.jumpToStory(-1);break}case"nextComponent":{e.jumpToComponent(1);break}case"prevComponent":{e.jumpToComponent(-1);break}case"fullScreen":{e.toggleFullscreen();break}case"togglePanel":{i&&(e.toggleFullscreen(),e.resetLayout()),e.togglePanel();break}case"toggleNav":{i&&(e.toggleFullscreen(),e.resetLayout()),e.toggleNav();break}case"toolbar":{e.toggleToolbar();break}case"panelPosition":{i&&e.toggleFullscreen(),c||e.togglePanel(),e.togglePanelPosition();break}case"aboutPage":{e.navigate("/settings/about");break}case"shortcutsPage":{e.navigate("/settings/shortcuts");break}case"collapseAll":{e.collapseAll();break}case"expandAll":{e.expandAll();break}case"remount":{e.emit(Ac,{storyId:p});break}default:Nt[l].action();break}}},{shortcuts:o=_e}=t.getState(),s={shortcuts:er(_e).reduce((l,a)=>({...l,[a]:o[a]||_e[a]}),_e)};return{api:n,state:s,init:()=>{pn.addEventListener("keydown",l=>{Hf(l)||n.handleKeydownEvent(l)}),r.channel.on(mc,l=>{n.handleKeydownEvent(l.event)})}}},Ra={};z(Ra,{init:()=>Yf});var{window:Lt}=Q,Ce=t=>{if(t==="true"||t==="1")return!0;if(t==="false"||t==="0")return!1},jt,zf=({state:{location:t,path:e,viewMode:r,storyId:n},singleStory:o})=>{let{full:s,panel:l,nav:a,shortcuts:i,addonPanel:u,tabs:c,path:f,...p}=ic(t),h={isFullscreen:Ce(s),showNav:!o&&Ce(a),showPanel:Ce(l),panelPosition:["right","bottom"].includes(l)?l:void 0,showTabs:Ce(c)},y={enableShortcuts:Ce(i)},d=u||void 0,m=n,v=K(jt,p)?jt:p;return jt=v,{viewMode:r,layout:h,ui:y,selectedPanel:d,location:t,path:e,customQueryParams:v,storyId:m}},Yf=t=>{let{store:e,navigate:r,provider:n,fullAPI:o}=t,s=(u,c={},f={})=>{let p=Object.entries(c).filter(([,y])=>y).sort(([y],[d])=>y`${y}=${d}`),h=[u,...p].join("&");return r(h,f)},l={getQueryParam(u){let{customQueryParams:c}=e.getState();return c?c[u]:void 0},getUrlState(){let{path:u,customQueryParams:c,storyId:f,url:p,viewMode:h}=e.getState();return{path:u,queryParams:c,storyId:f,url:p,viewMode:h}},setQueryParams(u){let{customQueryParams:c}=e.getState(),f={},p={...c,...Object.entries(u).reduce((h,[y,d])=>(d!==null&&(h[y]=d),h),f)};K(c,p)||(e.setState({customQueryParams:p}),n.channel.emit(Rc,p))},navigateUrl(u,c){r(u,{plain:!0,...c})}},a=()=>{let{path:u,queryParams:c,viewMode:f}=l.getUrlState();if(f!=="story")return;let p=o.getCurrentStoryData();if((p==null?void 0:p.type)!=="story")return;let{args:h,initialArgs:y}=p,d=ln(y,h);s(u,{...c,args:d},{replace:!0}),l.setQueryParams({args:d})};n.channel.on(aa,()=>a());let i;return n.channel.on(ia,()=>{"requestIdleCallback"in Lt?(i&&Lt.cancelIdleCallback(i),i=Lt.requestIdleCallback(a,{timeout:1e3})):(i&&clearTimeout(i),setTimeout(a,100))}),n.channel.on(sa,({globals:u,initialGlobals:c})=>{let{path:f,queryParams:p}=l.getUrlState(),h=ln(c,u);s(f,{...p,globals:h},{replace:!0}),l.setQueryParams({globals:h})}),n.channel.on(Sc,(u,c)=>{l.navigateUrl(u,c)}),{api:l,state:zf(t)}},$a={};z($a,{init:()=>Jf});var le=Mc(pf()),Kf="7.6.7",{VERSIONCHECK:Qf}=Q,hn=Pe(1)(()=>{try{return{...JSON.parse(Qf).data||{}}}catch{return{}}}),Jf=({store:t})=>{let{dismissedVersionNotification:e}=t.getState(),r={versions:{current:{version:Kf},...hn()},dismissedVersionNotification:e},n={getCurrentVersion:()=>{let{versions:{current:o}}=t.getState();return o},getLatestVersion:()=>{let{versions:{latest:o,next:s,current:l}}=t.getState();return l&&le.default.prerelease(l.version)&&s?o&&le.default.gt(o.version,s.version)?o:s:o},versionUpdateAvailable:()=>{let o=n.getLatestVersion(),s=n.getCurrentVersion();if(o){if(!o.version||!s.version)return!0;let l=le.default.prerelease(s.version)?`${le.default.major(s.version)}.${le.default.minor(s.version)}.${le.default.patch(s.version)}`:s.version,a=le.default.diff(l,o.version);return le.default.gt(o.version,l)&&a!=="patch"&&!a.includes("pre")}return!1}};return{init:async()=>{let{versions:o={}}=t.getState(),{latest:s,next:l}=hn();await t.setState({versions:{...o,latest:s,next:l}})},state:r,api:n}},Ta={};z(Ta,{init:()=>Zf});var yn="whats-new",Zf=({fullAPI:t,store:e,provider:r})=>{let n={whatsNewData:void 0};function o(i){e.setState({whatsNewData:i}),n.whatsNewData=i}let s={isWhatsNewUnread(){var i;return((i=n.whatsNewData)==null?void 0:i.status)==="SUCCESS"&&!n.whatsNewData.postIsRead},whatsNewHasBeenRead(){var i;((i=n.whatsNewData)==null?void 0:i.status)==="SUCCESS"&&(a({lastReadPost:n.whatsNewData.url}),o({...n.whatsNewData,postIsRead:!0}),t.clearNotification(yn))},toggleWhatsNewNotifications(){var i;((i=n.whatsNewData)==null?void 0:i.status)==="SUCCESS"&&(o({...n.whatsNewData,disableWhatsNewNotifications:!n.whatsNewData.disableWhatsNewNotifications}),r.channel.emit($c,{disableWhatsNewNotifications:n.whatsNewData.disableWhatsNewNotifications}))}};function l(){return r.channel.emit(Tc),new Promise(i=>r.channel.once(xc,({data:u})=>i(u)))}function a(i){r.channel.emit(Pc,i)}return{init:async()=>{var c;if(Q.CONFIG_TYPE!=="DEVELOPMENT")return;let i=await l();o(i);let u=t.getUrlState();!((u==null?void 0:u.path)==="/onboarding"||((c=u.queryParams)==null?void 0:c.onboarding)==="true")&&i.status==="SUCCESS"&&!i.disableWhatsNewNotifications&&i.showNotification&&t.addNotification({id:yn,link:"/settings/whats-new",content:{headline:i.excerpt,subHeadline:"Click to learn what's new in Storybook"},icon:{name:"hearthollow"},onClear({dismissed:f}){f&&a({lastDismissedPost:i.url})}})},state:n,api:s}},xa={};z(xa,{init:()=>ep});var ep=({store:t,fullAPI:e,provider:r})=>{let n={getGlobals(){return t.getState().globals},getGlobalTypes(){return t.getState().globalTypes},updateGlobals(l){r.channel.emit(Ic,{globals:l,options:{target:"storybook-preview-iframe"}})}},o={globals:{},globalTypes:{}},s=l=>{var i;let a=(i=t.getState())==null?void 0:i.globals;K(l,a)||t.setState({globals:l})};return r.channel.on(sa,function({globals:l}){let{ref:a}=X(this,e);a?Te.warn("received a GLOBALS_UPDATED from a non-local ref. This is not currently supported."):s(l)}),r.channel.on(Ec,function({globals:l,globalTypes:a}){var c;let{ref:i}=X(this,e),u=(c=t.getState())==null?void 0:c.globals;i?Object.keys(l).length>0&&Te.warn("received globals from a non-local ref. This is not currently supported."):t.setState({globals:l,globalTypes:a}),u&&Object.keys(u).length!==0&&!K(l,u)&&n.updateGlobals(u)}),{api:n,state:o}};function tp(){let t={setHandler:()=>{},send:()=>{}};return new Nc({transport:t})}var rp=class{constructor(){this.loaders={},this.elements={},this.config={},this.getChannel=()=>(this.channel||this.setChannel(tp()),this.channel),this.getServerChannel=()=>{if(!this.serverChannel)throw new Error("Accessing non-existent serverChannel");return this.serverChannel},this.ready=()=>this.promise,this.hasChannel=()=>!!this.channel,this.hasServerChannel=()=>!!this.serverChannel,this.setChannel=t=>{this.channel=t,this.resolve()},this.setServerChannel=t=>{this.serverChannel=t},this.addPanel=(t,e)=>{this.add(t,{type:Me.PANEL,...e})},this.setConfig=t=>{Object.assign(this.config,t),this.hasChannel()?this.getChannel().emit(ct,this.config):this.ready().then(e=>{e.emit(ct,this.config)})},this.getConfig=()=>this.config,this.register=(t,e)=>{this.loaders[t]&&Te.warn(`${t} was loaded twice, this could have bad side-effects`),this.loaders[t]=e},this.loadAddons=t=>{Object.values(this.loaders).forEach(e=>e(t))},this.promise=new Promise(t=>{this.resolve=()=>t(this.getChannel())})}getElements(t){return this.elements[t]||(this.elements[t]={}),this.elements[t]}add(t,e){let{type:r}=e,n=this.getElements(r);n[t]={id:t,...e}}},Dt="__STORYBOOK_ADDONS_MANAGER";function np(){return Q[Dt]||(Q[Dt]=new rp),Q[Dt]}np();var Pa=hf({api:void 0,state:Jt({})}),ap=(...t)=>In({},...t,(e,r)=>{if(Array.isArray(r))return r}),ip=class extends ie.Component{constructor(t){super(t),this.api={},this.initModules=()=>{this.modules.forEach(d=>{"init"in d&&d.init()})};let{location:e,path:r,refId:n,viewMode:o=t.docsOptions.docsMode?"docs":t.viewMode,singleStory:s,storyId:l,docsOptions:a,navigate:i}=t,u=new vf({getState:()=>this.state,setState:(d,m)=>this.setState(d,m)}),c={location:e,path:r,viewMode:o,singleStory:s,storyId:l,refId:n},f={docsOptions:a};this.state=u.getInitialState(Jt({...c,...f}));let p={navigate:i,store:u,provider:t.provider};this.modules=[ha,da,ya,Oa,ga,va,wa,ma,Sa,xa,Ra,$a,Ta].map(d=>d.init({...c,...f,...p,state:this.state,fullAPI:this.api}));let h=Jt(this.state,...this.modules.map(d=>d.state)),y=Object.assign(this.api,{navigate:i},...this.modules.map(d=>d.api));this.state=h,this.api=y}static getDerivedStateFromProps(t,e){return e.path!==t.path?{...e,location:t.location,path:t.path,refId:t.refId,viewMode:t.viewMode,storyId:t.storyId}:null}shouldComponentUpdate(t,e){let r=this.state,n=this.props;return r!==e||n.path!==t.path}render(){let{children:t}=this.props,e={state:this.state,api:this.api};return fe.createElement(sp,{effect:this.initModules},fe.createElement(Pa.Provider,{value:e},fe.createElement(lp,null,t)))}};ip.displayName="Manager";var sp=({children:t,effect:e})=>(fe.useEffect(e,[]),t),op=t=>t;function lp({filter:t=op,children:e}){let r=ie.useContext(Pa),n=ie.useRef(e),o=ie.useRef(t);if(typeof n.current!="function")return fe.createElement(ie.Fragment,null,n.current);let s=o.current(r),l=ie.useMemo(()=>[...Object.entries(s).reduce((a,i)=>a.concat(i),[])],[r.state]);return ie.useMemo(()=>{let a=n.current;return fe.createElement(a,{...s})},l)}globalThis.STORYBOOK_ADDON_STATE={};var up=function t(e,r){if(e===r)return!0;if(e&&r&&typeof e=="object"&&typeof r=="object"){if(e.constructor!==r.constructor)return!1;var n,o,s;if(Array.isArray(e)){if(n=e.length,n!=r.length)return!1;for(o=n;o--!==0;)if(!t(e[o],r[o]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===r.toString();if(s=Object.keys(e),n=s.length,n!==Object.keys(r).length)return!1;for(o=n;o--!==0;)if(!Object.prototype.hasOwnProperty.call(r,s[o]))return!1;for(o=n;o--!==0;){var l=s[o];if(!t(e[l],r[l]))return!1}return!0}return e!==e&&r!==r};const dn=me(up);function We(t){"@babel/helpers - typeof";return We=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},We(t)}var Ct;function gn(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function vn(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=new Array(e);r0&&arguments[0]!==void 0?arguments[0]:{},r=ft.localStorage.getItem(Na);if(typeof r=="string"){var n=JSON.parse(r);return e&&(e.dark&&!dn(n.dark,e.dark)&&(n.dark=e.dark,mn(n)),e.light&&!dn(n.light,e.light)&&(n.light=e.light,mn(n))),n}return vn(vn({},rr),e)};Ep(La());function bp(t,e){return Ap(t)||wp(t,e)||_p(t,e)||Op()}function Op(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _p(t,e){if(t){if(typeof t=="string")return Sn(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Sn(t,e)}}function Sn(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r{const{children:e,mode:r,theme:n,cssVarsRoot:o="html, ::backdrop"}=t,s=ie.useMemo(()=>ci(fi(r,n)),[n,r]);return Ve.jsxs(pi,{theme:{mode:r},children:[Ve.jsx(ui,{styles:{[o]:s}}),e]})};xe.displayName="ThemeProvider";xe.defaultProps={mode:"light"};try{xe.displayName="ThemeProvider",xe.__docgenInfo={description:"",displayName:"ThemeProvider",props:{theme:{defaultValue:null,description:"",name:"theme",required:!1,type:{name:"ThemeOptionsType"}},mode:{defaultValue:{value:"light"},description:"",name:"mode",required:!1,type:{name:"enum",value:[{value:'"light"'},{value:'"dark"'}]}},cssVarsRoot:{defaultValue:null,description:"",name:"cssVarsRoot",required:!1,type:{name:"string"}}}}}catch{}const $p="@peculiar/react-components",Tp="0.6.6",xp="PeculiarVentures Team",Pp="A simple and customizable component library to build faster, beautiful, and more accessible React applications.",Ip=["react","react-component"],Np=!1,Lp="dist/cjs/index.js",jp="dist/esm/index.js",Dp="dist/esnext/index.js",Cp="dist/types/index.d.ts",Fp=["dist/"],Mp={type:"git",url:"https://github.com/PeculiarVentures/peculiar-ui.git",directory:"packages/react-components"},Gp={start:"storybook dev -p 3000",prebuild:"yarn clean",build:"yarn build:esm && yarn build:cjs && yarn build:esnext","build:esm":"tsc -p tsconfig.build.json","build:cjs":"tsc -p tsconfig.build.json -m commonjs --outDir dist/cjs","build:esnext":"tsc -p tsconfig.build.json -t esnext --outDir dist/esnext","build:storybook":"storybook build -o public",clean:"rimraf public dist themes","test:unit":"jest --passWithNoTests --watchAll","test:unit:coverage":"yarn test:unit --coverage --watchAll=false","test:unit:updateSnapshot":"jest --updateSnapshot","check:types":"tsc --noEmit"},Up={"@types/react":"^17.0.0 || ^18.0.0",react:"^17.0.0 || ^18.0.0","react-dom":"^17.0.0 || ^18.0.0"},kp={"@types/react":{optional:!0}},qp={"@emotion/react":"^11.11.1","@emotion/styled":"^11.11.0","@peculiar/color":"^0.1.3","@popperjs/core":"^2.11.7","@types/flat":"^5.0.2","@types/react-transition-group":"^4.4.5",deepmerge:"^4.3.1",flat:"^5.0.2","focus-trap":"^7.5.4",nanoid:"^3.3.6","react-popper":"^2.3.0","react-transition-group":"^4.4.5"},Bp={"@storybook/addon-essentials":"7.6.7","@storybook/react":"7.6.7","@storybook/react-vite":"7.6.7","@types/react":"^18.0.34","@types/react-dom":"^18.0.11","@vitejs/plugin-react-swc":"^3.5.0",react:"^18.2.0","react-dom":"^18.2.0",rimraf:"^3.0.2",storybook:"7.6.7","storybook-dark-mode":"^3.0.3",typescript:"^4.6.3",vite:"^5.0.8"},Vp={access:"public"},Wp={node:">=12.x"},Hp="MIT",pt={name:$p,private:!1,version:Tp,author:xp,description:Pp,keywords:Ip,sideEffects:Np,main:Lp,module:jp,esnext:Dp,typings:Cp,files:Fp,repository:Mp,scripts:Gp,peerDependencies:Up,peerDependenciesMeta:kp,dependencies:qp,devDependencies:Bp,publishConfig:Vp,engines:Wp,license:Hp},Da=sr({base:"light",brandTitle:`${pt.name} v${pt.version}`}),Ca=sr({base:"dark",brandTitle:`${pt.name} v${pt.version}`,appPreviewBg:"#1B1C1D"}),Xp=t=>{const e=ja();return Ve.jsx(xe,{mode:e?"dark":"light",children:Ve.jsx(oi,{theme:e?Ca:Da,context:t.context,children:t.children})})},zp=t=>{const e=ja();return Ve.jsx(xe,{mode:e?"dark":"light",children:t()})},dh={decorators:[zp],parameters:{actions:{argTypesRegex:"^on[A-Z].*"},darkMode:{dark:Ca,light:Da},docs:{container:Xp},options:{storySort:{method:"alphabetical",order:["Installation","Customization",["CSS Variables","Palette","Dark mode"],"Components","Hooks"]}}}};export{dh as default}; +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _p(t,e){if(t){if(typeof t=="string")return Sn(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Sn(t,e)}}function Sn(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r{const{children:e,mode:r,theme:n,cssVarsRoot:o="html, ::backdrop"}=t,s=ie.useMemo(()=>ci(fi(r,n)),[n,r]);return Ve.jsxs(pi,{theme:{mode:r},children:[Ve.jsx(ui,{styles:{[o]:s}}),e]})};xe.displayName="ThemeProvider";xe.defaultProps={mode:"light"};try{xe.displayName="ThemeProvider",xe.__docgenInfo={description:"",displayName:"ThemeProvider",props:{theme:{defaultValue:null,description:"",name:"theme",required:!1,type:{name:"ThemeOptionsType"}},mode:{defaultValue:{value:"light"},description:"",name:"mode",required:!1,type:{name:"enum",value:[{value:'"light"'},{value:'"dark"'}]}},cssVarsRoot:{defaultValue:null,description:"",name:"cssVarsRoot",required:!1,type:{name:"string"}}}}}catch{}const $p="@peculiar/react-components",Tp="0.6.7",xp="PeculiarVentures Team",Pp="A simple and customizable component library to build faster, beautiful, and more accessible React applications.",Ip=["react","react-component"],Np=!1,Lp="dist/cjs/index.js",jp="dist/esm/index.js",Dp="dist/esnext/index.js",Cp="dist/types/index.d.ts",Fp=["dist/"],Mp={type:"git",url:"https://github.com/PeculiarVentures/peculiar-ui.git",directory:"packages/react-components"},Gp={start:"storybook dev -p 3000",prebuild:"yarn clean",build:"yarn build:esm && yarn build:cjs && yarn build:esnext","build:esm":"tsc -p tsconfig.build.json","build:cjs":"tsc -p tsconfig.build.json -m commonjs --outDir dist/cjs","build:esnext":"tsc -p tsconfig.build.json -t esnext --outDir dist/esnext","build:storybook":"storybook build -o public",clean:"rimraf public dist themes","test:unit":"jest --passWithNoTests --watchAll","test:unit:coverage":"yarn test:unit --coverage --watchAll=false","test:unit:updateSnapshot":"jest --updateSnapshot","check:types":"tsc --noEmit"},Up={"@types/react":"^17.0.0 || ^18.0.0",react:"^17.0.0 || ^18.0.0","react-dom":"^17.0.0 || ^18.0.0"},kp={"@types/react":{optional:!0}},qp={"@emotion/react":"^11.11.1","@emotion/styled":"^11.11.0","@peculiar/color":"^0.1.3","@popperjs/core":"^2.11.7","@types/flat":"^5.0.2","@types/react-transition-group":"^4.4.5",deepmerge:"^4.3.1",flat:"^5.0.2","focus-trap":"^7.5.4",nanoid:"^3.3.6","react-popper":"^2.3.0","react-transition-group":"^4.4.5"},Bp={"@storybook/addon-essentials":"7.6.7","@storybook/react":"7.6.7","@storybook/react-vite":"7.6.7","@types/react":"^18.0.34","@types/react-dom":"^18.0.11","@vitejs/plugin-react-swc":"^3.5.0",react:"^18.2.0","react-dom":"^18.2.0",rimraf:"^3.0.2",storybook:"7.6.7","storybook-dark-mode":"^3.0.3",typescript:"^4.6.3",vite:"^5.0.8"},Vp={access:"public"},Wp={node:">=12.x"},Hp="MIT",pt={name:$p,private:!1,version:Tp,author:xp,description:Pp,keywords:Ip,sideEffects:Np,main:Lp,module:jp,esnext:Dp,typings:Cp,files:Fp,repository:Mp,scripts:Gp,peerDependencies:Up,peerDependenciesMeta:kp,dependencies:qp,devDependencies:Bp,publishConfig:Vp,engines:Wp,license:Hp},Da=sr({base:"light",brandTitle:`${pt.name} v${pt.version}`}),Ca=sr({base:"dark",brandTitle:`${pt.name} v${pt.version}`,appPreviewBg:"#1B1C1D"}),Xp=t=>{const e=ja();return Ve.jsx(xe,{mode:e?"dark":"light",children:Ve.jsx(oi,{theme:e?Ca:Da,context:t.context,children:t.children})})},zp=t=>{const e=ja();return Ve.jsx(xe,{mode:e?"dark":"light",children:t()})},dh={decorators:[zp],parameters:{actions:{argTypesRegex:"^on[A-Z].*"},darkMode:{dark:Ca,light:Da},docs:{container:Xp},options:{storySort:{method:"alphabetical",order:["Installation","Customization",["CSS Variables","Palette","Dark mode"],"Components","Hooks"]}}}};export{dh as default}; diff --git a/assets/preview-xi9rapnE.js b/assets/preview-_O-dSE26.js similarity index 59% rename from assets/preview-xi9rapnE.js rename to assets/preview-_O-dSE26.js index 2516ee6f..030055d5 100644 --- a/assets/preview-xi9rapnE.js +++ b/assets/preview-_O-dSE26.js @@ -1,7 +1,7 @@ -import{_ as e}from"./iframe-Di3G6qoa.js";import"../sb-preview/runtime.js";var a={docs:{renderer:async()=>{let{DocsRenderer:r}=await e(()=>import("./DocsRenderer-NNNQARDV-cP9UsLX_.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10]),import.meta.url);return new r}}};export{a as parameters}; +import{_ as e}from"./iframe-zHoeYuYN.js";import"../sb-preview/runtime.js";var a={docs:{renderer:async()=>{let{DocsRenderer:r}=await e(()=>import("./DocsRenderer-NNNQARDV-CQFGPGzU.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10]),import.meta.url);return new r}}};export{a as parameters}; function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["./DocsRenderer-NNNQARDV-cP9UsLX_.js","./chunk-HLWAVYOI-Ycm5PLJ1.js","./iframe-Di3G6qoa.js","./index-OjgoNOWw.js","./react-18-DyM-o0Ps.js","./index-mQqIOHEI.js","./index-FEzJ-IFI.js","./emotion-use-insertion-effect-with-fallbacks.browser.esm-xK8HOd_o.js","./inheritsLoose-Y9jOMJLd.js","./index-LnHysSno.js","./index-BdDYuicC.js"] + __vite__mapDeps.viteFileDeps = ["./DocsRenderer-NNNQARDV-CQFGPGzU.js","./chunk-HLWAVYOI-42WL2HKe.js","./iframe-zHoeYuYN.js","./index-OjgoNOWw.js","./react-18-DyM-o0Ps.js","./index-mQqIOHEI.js","./index-S9SFSHLo.js","./emotion-use-insertion-effect-with-fallbacks.browser.esm-xK8HOd_o.js","./inheritsLoose-Y9jOMJLd.js","./index-LnHysSno.js","./index-BdDYuicC.js"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } diff --git a/assets/syntaxhighlighter-V7JZZA35-pTSUdsJe.js b/assets/syntaxhighlighter-V7JZZA35-DBA7IJ-i.js similarity index 69% rename from assets/syntaxhighlighter-V7JZZA35-pTSUdsJe.js rename to assets/syntaxhighlighter-V7JZZA35-DBA7IJ-i.js index a62e25b7..a56825ec 100644 --- a/assets/syntaxhighlighter-V7JZZA35-pTSUdsJe.js +++ b/assets/syntaxhighlighter-V7JZZA35-DBA7IJ-i.js @@ -1 +1 @@ -import{S as l,c as n,s as d}from"./index-FEzJ-IFI.js";import"./iframe-Di3G6qoa.js";import"../sb-preview/runtime.js";import"./index-OjgoNOWw.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-xK8HOd_o.js";import"./index-mQqIOHEI.js";import"./inheritsLoose-Y9jOMJLd.js";import"./index-LnHysSno.js";import"./index-BdDYuicC.js";export{l as SyntaxHighlighter,n as createCopyToClipboardFunction,d as default}; +import{S as l,c as n,s as d}from"./index-S9SFSHLo.js";import"./iframe-zHoeYuYN.js";import"../sb-preview/runtime.js";import"./index-OjgoNOWw.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-xK8HOd_o.js";import"./index-mQqIOHEI.js";import"./inheritsLoose-Y9jOMJLd.js";import"./index-LnHysSno.js";import"./index-BdDYuicC.js";export{l as SyntaxHighlighter,n as createCopyToClipboardFunction,d as default}; diff --git a/assets/text_field-bvCGfaa8.js b/assets/text_field-Uby6p_vB.js similarity index 93% rename from assets/text_field-bvCGfaa8.js rename to assets/text_field-Uby6p_vB.js index af1e9efe..d882fb76 100644 --- a/assets/text_field-bvCGfaa8.js +++ b/assets/text_field-Uby6p_vB.js @@ -1,4 +1,4 @@ -import{j as e}from"./jsx-runtime-DtaoT6pD.js";import{M as i,C as t,A as d}from"./index-FEzJ-IFI.js";import{S as c,F as a,a as p,C as l,V as x}from"./text_field.stories-YznOcLNQ.js";import{T as h}from"./text_field-U_MB4Wg6.js";import{useMDXComponents as s}from"./index-82O-B91n.js";import"./index-OjgoNOWw.js";import"./iframe-Di3G6qoa.js";import"../sb-preview/runtime.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-xK8HOd_o.js";import"./index-mQqIOHEI.js";import"./inheritsLoose-Y9jOMJLd.js";import"./index-LnHysSno.js";import"./index-BdDYuicC.js";import"./emotion-styled.browser.esm-jsqElTi7.js";import"./emotion-element-c39617d8.browser.esm-upVMHClS.js";import"./use_id-vDNgflVU.js";import"./typography-be8ycqzM.js";function n(r){const o=Object.assign({h1:"h1",p:"p",h2:"h2",code:"code"},s(),r.components);return e.jsxs(e.Fragment,{children:[e.jsx(i,{of:c}),` +import{j as e}from"./jsx-runtime-DtaoT6pD.js";import{M as i,C as t,A as d}from"./index-S9SFSHLo.js";import{S as c,F as a,a as p,C as l,V as x}from"./text_field.stories-YznOcLNQ.js";import{T as h}from"./text_field-U_MB4Wg6.js";import{useMDXComponents as s}from"./index-82O-B91n.js";import"./index-OjgoNOWw.js";import"./iframe-zHoeYuYN.js";import"../sb-preview/runtime.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-xK8HOd_o.js";import"./index-mQqIOHEI.js";import"./inheritsLoose-Y9jOMJLd.js";import"./index-LnHysSno.js";import"./index-BdDYuicC.js";import"./emotion-styled.browser.esm-jsqElTi7.js";import"./emotion-element-c39617d8.browser.esm-upVMHClS.js";import"./use_id-vDNgflVU.js";import"./typography-be8ycqzM.js";function n(r){const o=Object.assign({h1:"h1",p:"p",h2:"h2",code:"code"},s(),r.components);return e.jsxs(e.Fragment,{children:[e.jsx(i,{of:c}),` `,e.jsx(o.h1,{id:"textfield",children:"TextField"}),` `,e.jsx(o.p,{children:"Text fields let users enter and edit text."}),` `,e.jsx(o.h2,{id:"form-props",children:"Form props"}),` diff --git a/assets/typography-Ln1-jNuv.js b/assets/typography-IdV7ELqG.js similarity index 89% rename from assets/typography-Ln1-jNuv.js rename to assets/typography-IdV7ELqG.js index 42e8537d..fd8e0422 100644 --- a/assets/typography-Ln1-jNuv.js +++ b/assets/typography-IdV7ELqG.js @@ -1,4 +1,4 @@ -import{j as e}from"./jsx-runtime-DtaoT6pD.js";import{M as i,C as n,A as a}from"./index-FEzJ-IFI.js";import{S as p,V as c,C as h,T as m}from"./typography.stories-WwgdZou_.js";import{T as d}from"./typography-be8ycqzM.js";import{useMDXComponents as s}from"./index-82O-B91n.js";import"./index-OjgoNOWw.js";import"./iframe-Di3G6qoa.js";import"../sb-preview/runtime.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-xK8HOd_o.js";import"./index-mQqIOHEI.js";import"./inheritsLoose-Y9jOMJLd.js";import"./index-LnHysSno.js";import"./index-BdDYuicC.js";import"./emotion-styled.browser.esm-jsqElTi7.js";import"./emotion-element-c39617d8.browser.esm-upVMHClS.js";function r(t){const o=Object.assign({h1:"h1",p:"p",h2:"h2",code:"code",a:"a"},s(),t.components);return e.jsxs(e.Fragment,{children:[e.jsx(i,{of:p}),` +import{j as e}from"./jsx-runtime-DtaoT6pD.js";import{M as i,C as n,A as a}from"./index-S9SFSHLo.js";import{S as p,V as c,C as h,T as m}from"./typography.stories-WwgdZou_.js";import{T as d}from"./typography-be8ycqzM.js";import{useMDXComponents as s}from"./index-82O-B91n.js";import"./index-OjgoNOWw.js";import"./iframe-zHoeYuYN.js";import"../sb-preview/runtime.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-xK8HOd_o.js";import"./index-mQqIOHEI.js";import"./inheritsLoose-Y9jOMJLd.js";import"./index-LnHysSno.js";import"./index-BdDYuicC.js";import"./emotion-styled.browser.esm-jsqElTi7.js";import"./emotion-element-c39617d8.browser.esm-upVMHClS.js";function r(t){const o=Object.assign({h1:"h1",p:"p",h2:"h2",code:"code",a:"a"},s(),t.components);return e.jsxs(e.Fragment,{children:[e.jsx(i,{of:p}),` `,e.jsx(o.h1,{id:"typography",children:"Typography"}),` `,e.jsx(o.p,{children:"Use typography to present your design and content as clearly and efficiently as possible."}),` `,e.jsx(o.h2,{id:"variant",children:"Variant"}),` diff --git a/assets/use_clipboard-WpJb47xt.js b/assets/use_clipboard-fuG7IgBv.js similarity index 91% rename from assets/use_clipboard-WpJb47xt.js rename to assets/use_clipboard-fuG7IgBv.js index eacd3ca5..4a701c54 100644 --- a/assets/use_clipboard-WpJb47xt.js +++ b/assets/use_clipboard-fuG7IgBv.js @@ -1,4 +1,4 @@ -import{j as o}from"./jsx-runtime-DtaoT6pD.js";import{M as r,C as s}from"./index-FEzJ-IFI.js";import{DemoExample as p}from"./use_clipboard.stories-FxmETqQd.js";import{useMDXComponents as i}from"./index-82O-B91n.js";import"./index-OjgoNOWw.js";import"./iframe-Di3G6qoa.js";import"../sb-preview/runtime.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-xK8HOd_o.js";import"./index-mQqIOHEI.js";import"./inheritsLoose-Y9jOMJLd.js";import"./index-LnHysSno.js";import"./index-BdDYuicC.js";function t(e){const n=Object.assign({h2:"h2",p:"p",pre:"pre",code:"code"},i(),e.components);return o.jsxs(o.Fragment,{children:[o.jsx(r,{title:"Hooks/useClipboard"}),` +import{j as o}from"./jsx-runtime-DtaoT6pD.js";import{M as r,C as s}from"./index-S9SFSHLo.js";import{DemoExample as p}from"./use_clipboard.stories-FxmETqQd.js";import{useMDXComponents as i}from"./index-82O-B91n.js";import"./index-OjgoNOWw.js";import"./iframe-zHoeYuYN.js";import"../sb-preview/runtime.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-xK8HOd_o.js";import"./index-mQqIOHEI.js";import"./inheritsLoose-Y9jOMJLd.js";import"./index-LnHysSno.js";import"./index-BdDYuicC.js";function t(e){const n=Object.assign({h2:"h2",p:"p",pre:"pre",code:"code"},i(),e.components);return o.jsxs(o.Fragment,{children:[o.jsx(r,{title:"Hooks/useClipboard"}),` `,o.jsx(n.h2,{id:"overview",children:"Overview"}),` `,o.jsx(n.p,{children:"React hook that provides copy to clipboard functionality."}),` `,o.jsx(n.h2,{id:"usage",children:"Usage"}),` diff --git a/assets/use_controllable-I2U_MAnR.js b/assets/use_controllable-g6D_DU6e.js similarity index 92% rename from assets/use_controllable-I2U_MAnR.js rename to assets/use_controllable-g6D_DU6e.js index d2a6d9e6..758fc35e 100644 --- a/assets/use_controllable-I2U_MAnR.js +++ b/assets/use_controllable-g6D_DU6e.js @@ -1,4 +1,4 @@ -import{j as n}from"./jsx-runtime-DtaoT6pD.js";import{M as a,C as s}from"./index-FEzJ-IFI.js";import{DemoExample as l}from"./use_controllable.stories-6lKFGi8w.js";import{useMDXComponents as r}from"./index-82O-B91n.js";import"./index-OjgoNOWw.js";import"./iframe-Di3G6qoa.js";import"../sb-preview/runtime.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-xK8HOd_o.js";import"./index-mQqIOHEI.js";import"./inheritsLoose-Y9jOMJLd.js";import"./index-LnHysSno.js";import"./index-BdDYuicC.js";import"./use_controllable-CY5ZQbVr.js";function o(t){const e=Object.assign({h2:"h2",p:"p",pre:"pre",code:"code"},r(),t.components);return n.jsxs(n.Fragment,{children:[n.jsx(a,{title:"Hooks/useControllableState"}),` +import{j as n}from"./jsx-runtime-DtaoT6pD.js";import{M as a,C as s}from"./index-S9SFSHLo.js";import{DemoExample as l}from"./use_controllable.stories-6lKFGi8w.js";import{useMDXComponents as r}from"./index-82O-B91n.js";import"./index-OjgoNOWw.js";import"./iframe-zHoeYuYN.js";import"../sb-preview/runtime.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-xK8HOd_o.js";import"./index-mQqIOHEI.js";import"./inheritsLoose-Y9jOMJLd.js";import"./index-LnHysSno.js";import"./index-BdDYuicC.js";import"./use_controllable-CY5ZQbVr.js";function o(t){const e=Object.assign({h2:"h2",p:"p",pre:"pre",code:"code"},r(),t.components);return n.jsxs(n.Fragment,{children:[n.jsx(a,{title:"Hooks/useControllableState"}),` `,n.jsx(e.h2,{id:"overview",children:"Overview"}),` `,n.jsx(e.p,{children:"React hook that allows any component handle controlled and uncontrolled modes, and provide control over its internal state."}),` `,n.jsx(e.h2,{id:"usage",children:"Usage"}),` diff --git a/assets/use_debounce_callback-IpSqrGlC.js b/assets/use_debounce_callback-8zC9nznE.js similarity index 92% rename from assets/use_debounce_callback-IpSqrGlC.js rename to assets/use_debounce_callback-8zC9nznE.js index 26cc53d4..80864698 100644 --- a/assets/use_debounce_callback-IpSqrGlC.js +++ b/assets/use_debounce_callback-8zC9nznE.js @@ -1,4 +1,4 @@ -import{j as e}from"./jsx-runtime-DtaoT6pD.js";import{M as a,C as r}from"./index-FEzJ-IFI.js";import{DemoExample as c}from"./use_debounce_callback.stories-gJPjVzln.js";import{useMDXComponents as s}from"./index-82O-B91n.js";import"./index-OjgoNOWw.js";import"./iframe-Di3G6qoa.js";import"../sb-preview/runtime.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-xK8HOd_o.js";import"./index-mQqIOHEI.js";import"./inheritsLoose-Y9jOMJLd.js";import"./index-LnHysSno.js";import"./index-BdDYuicC.js";function o(t){const n=Object.assign({h2:"h2",p:"p",code:"code",pre:"pre"},s(),t.components);return e.jsxs(e.Fragment,{children:[e.jsx(a,{title:"Hooks/useDebounceCallback"}),` +import{j as e}from"./jsx-runtime-DtaoT6pD.js";import{M as a,C as r}from"./index-S9SFSHLo.js";import{DemoExample as c}from"./use_debounce_callback.stories-gJPjVzln.js";import{useMDXComponents as s}from"./index-82O-B91n.js";import"./index-OjgoNOWw.js";import"./iframe-zHoeYuYN.js";import"../sb-preview/runtime.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-xK8HOd_o.js";import"./index-mQqIOHEI.js";import"./inheritsLoose-Y9jOMJLd.js";import"./index-LnHysSno.js";import"./index-BdDYuicC.js";function o(t){const n=Object.assign({h2:"h2",p:"p",code:"code",pre:"pre"},s(),t.components);return e.jsxs(e.Fragment,{children:[e.jsx(a,{title:"Hooks/useDebounceCallback"}),` `,e.jsx(n.h2,{id:"overview",children:"Overview"}),` `,e.jsxs(n.p,{children:["React hook that makes passed function debounced, otherwise acts like ",e.jsx(n.code,{children:"useCallback"}),"."]}),` `,e.jsx(n.h2,{id:"usage",children:"Usage"}),` diff --git a/assets/use_id-eQS5NVzN.js b/assets/use_id-2AGBPqL1.js similarity index 85% rename from assets/use_id-eQS5NVzN.js rename to assets/use_id-2AGBPqL1.js index 1835ef6d..9af2efd1 100644 --- a/assets/use_id-eQS5NVzN.js +++ b/assets/use_id-2AGBPqL1.js @@ -1,4 +1,4 @@ -import{j as e}from"./jsx-runtime-DtaoT6pD.js";import{M as i,C as r}from"./index-FEzJ-IFI.js";import{DemoExample as c}from"./use_id.stories-dkxlW0IT.js";import{useMDXComponents as s}from"./index-82O-B91n.js";import"./index-OjgoNOWw.js";import"./iframe-Di3G6qoa.js";import"../sb-preview/runtime.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-xK8HOd_o.js";import"./index-mQqIOHEI.js";import"./inheritsLoose-Y9jOMJLd.js";import"./index-LnHysSno.js";import"./index-BdDYuicC.js";import"./use_id-vDNgflVU.js";function o(t){const n=Object.assign({h2:"h2",p:"p",pre:"pre",code:"code"},s(),t.components);return e.jsxs(e.Fragment,{children:[e.jsx(i,{title:"Hooks/useId"}),` +import{j as e}from"./jsx-runtime-DtaoT6pD.js";import{M as i,C as r}from"./index-S9SFSHLo.js";import{DemoExample as c}from"./use_id.stories-dkxlW0IT.js";import{useMDXComponents as s}from"./index-82O-B91n.js";import"./index-OjgoNOWw.js";import"./iframe-zHoeYuYN.js";import"../sb-preview/runtime.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-xK8HOd_o.js";import"./index-mQqIOHEI.js";import"./inheritsLoose-Y9jOMJLd.js";import"./index-LnHysSno.js";import"./index-BdDYuicC.js";import"./use_id-vDNgflVU.js";function o(t){const n=Object.assign({h2:"h2",p:"p",pre:"pre",code:"code"},s(),t.components);return e.jsxs(e.Fragment,{children:[e.jsx(i,{title:"Hooks/useId"}),` `,e.jsx(n.h2,{id:"overview",children:"Overview"}),` `,e.jsx(n.p,{children:"React hook for generating unique IDs that can be passed to accessibility attributes."}),` `,e.jsx(n.h2,{id:"usage",children:"Usage"}),` diff --git a/assets/use_intersection_observer-6EWcUDxF.js b/assets/use_intersection_observer-7wp-IbdN.js similarity index 93% rename from assets/use_intersection_observer-6EWcUDxF.js rename to assets/use_intersection_observer-7wp-IbdN.js index b83f5e4b..9698d3ff 100644 --- a/assets/use_intersection_observer-6EWcUDxF.js +++ b/assets/use_intersection_observer-7wp-IbdN.js @@ -1,4 +1,4 @@ -import{j as e}from"./jsx-runtime-DtaoT6pD.js";import{M as i,C as s}from"./index-FEzJ-IFI.js";import{DemoExample as c}from"./use_intersection_observer.stories-0m2hRJye.js";import{useMDXComponents as r}from"./index-82O-B91n.js";import"./index-OjgoNOWw.js";import"./iframe-Di3G6qoa.js";import"../sb-preview/runtime.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-xK8HOd_o.js";import"./index-mQqIOHEI.js";import"./inheritsLoose-Y9jOMJLd.js";import"./index-LnHysSno.js";import"./index-BdDYuicC.js";function o(t){const n=Object.assign({h2:"h2",p:"p",pre:"pre",code:"code"},r(),t.components);return e.jsxs(e.Fragment,{children:[e.jsx(i,{title:"Hooks/useIntersectionObserver"}),` +import{j as e}from"./jsx-runtime-DtaoT6pD.js";import{M as i,C as s}from"./index-S9SFSHLo.js";import{DemoExample as c}from"./use_intersection_observer.stories-0m2hRJye.js";import{useMDXComponents as r}from"./index-82O-B91n.js";import"./index-OjgoNOWw.js";import"./iframe-zHoeYuYN.js";import"../sb-preview/runtime.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-xK8HOd_o.js";import"./index-mQqIOHEI.js";import"./inheritsLoose-Y9jOMJLd.js";import"./index-LnHysSno.js";import"./index-BdDYuicC.js";function o(t){const n=Object.assign({h2:"h2",p:"p",pre:"pre",code:"code"},r(),t.components);return e.jsxs(e.Fragment,{children:[e.jsx(i,{title:"Hooks/useIntersectionObserver"}),` `,e.jsx(n.h2,{id:"overview",children:"Overview"}),` `,e.jsx(n.p,{children:"React hook detects visibility of a component on the viewport using the natively present in the browser."}),` `,e.jsx(n.h2,{id:"usage",children:"Usage"}),` diff --git a/assets/use_media_query-Jz7KgWET.js b/assets/use_media_query-v5w3HwaR.js similarity index 91% rename from assets/use_media_query-Jz7KgWET.js rename to assets/use_media_query-v5w3HwaR.js index 17525328..b7acc00d 100644 --- a/assets/use_media_query-Jz7KgWET.js +++ b/assets/use_media_query-v5w3HwaR.js @@ -1,4 +1,4 @@ -import{j as e}from"./jsx-runtime-DtaoT6pD.js";import{M as r,C as s}from"./index-FEzJ-IFI.js";import{DemoExample as m}from"./use_media_query.stories-1hw5Yksf.js";import{useMDXComponents as i}from"./index-82O-B91n.js";import"./index-OjgoNOWw.js";import"./iframe-Di3G6qoa.js";import"../sb-preview/runtime.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-xK8HOd_o.js";import"./index-mQqIOHEI.js";import"./inheritsLoose-Y9jOMJLd.js";import"./index-LnHysSno.js";import"./index-BdDYuicC.js";import"./use_enhanced_effect-jDxBKzmp.js";function o(t){const n=Object.assign({h2:"h2",p:"p",pre:"pre",code:"code"},i(),t.components);return e.jsxs(e.Fragment,{children:[e.jsx(r,{title:"Hooks/useMediaQuery"}),` +import{j as e}from"./jsx-runtime-DtaoT6pD.js";import{M as r,C as s}from"./index-S9SFSHLo.js";import{DemoExample as m}from"./use_media_query.stories-1hw5Yksf.js";import{useMDXComponents as i}from"./index-82O-B91n.js";import"./index-OjgoNOWw.js";import"./iframe-zHoeYuYN.js";import"../sb-preview/runtime.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-xK8HOd_o.js";import"./index-mQqIOHEI.js";import"./inheritsLoose-Y9jOMJLd.js";import"./index-LnHysSno.js";import"./index-BdDYuicC.js";import"./use_enhanced_effect-jDxBKzmp.js";function o(t){const n=Object.assign({h2:"h2",p:"p",pre:"pre",code:"code"},i(),t.components);return e.jsxs(e.Fragment,{children:[e.jsx(r,{title:"Hooks/useMediaQuery"}),` `,e.jsx(n.h2,{id:"overview",children:"Overview"}),` `,e.jsx(n.p,{children:"React hook that tracks state of a CSS media query."}),` `,e.jsx(n.h2,{id:"usage",children:"Usage"}),` diff --git a/assets/use_toast-LcPwkpph.js b/assets/use_toast-9H8D00Ta.js similarity index 89% rename from assets/use_toast-LcPwkpph.js rename to assets/use_toast-9H8D00Ta.js index 56fb7742..36784c05 100644 --- a/assets/use_toast-LcPwkpph.js +++ b/assets/use_toast-9H8D00Ta.js @@ -1,4 +1,4 @@ -import{j as t}from"./jsx-runtime-DtaoT6pD.js";import{M as i,C as a}from"./index-FEzJ-IFI.js";import{DemoExample as r}from"./use_toast.stories-1u41Ynxd.js";import{useMDXComponents as e}from"./index-82O-B91n.js";import"./index-OjgoNOWw.js";import"./iframe-Di3G6qoa.js";import"../sb-preview/runtime.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-xK8HOd_o.js";import"./index-mQqIOHEI.js";import"./inheritsLoose-Y9jOMJLd.js";import"./index-LnHysSno.js";import"./index-BdDYuicC.js";import"./emotion-styled.browser.esm-jsqElTi7.js";import"./emotion-element-c39617d8.browser.esm-upVMHClS.js";import"./fade-6tFb4vlS.js";import"./use_merged_ref-U30BPCzO.js";import"./Transition-ZSq31Zhi.js";import"./alert-wuCjLQa6.js";import"./flex_container-Aq3v_kS5.js";import"./typography-be8ycqzM.js";import"./icon_button-WreoF-Ie.js";import"./button-6fPk4QP_.js";import"./button_base-UbkVh8Vj.js";import"./tooltip-J9P4FoiT.js";import"./emotion-react.browser.esm-8gWn0FvA.js";import"./box-bq1vF_Hs.js";import"./popper-YlbGwMrF.js";import"./usePopper--g5aU53a.js";import"./portal-GS-MOYPJ.js";import"./use_enhanced_effect-jDxBKzmp.js";import"./use_controllable-CY5ZQbVr.js";import"./close_icon-Bp311Jgy.js";import"./close_circle_icon-XpY_jUxJ.js";import"./warning_icon-iK8dORZk.js";import"./circular_progress-_GSDl8M_.js";function s(n){const o=Object.assign({h2:"h2",p:"p",code:"code",strong:"strong",pre:"pre"},e(),n.components);return t.jsxs(t.Fragment,{children:[t.jsx(i,{title:"Hooks/useToast"}),` +import{j as t}from"./jsx-runtime-DtaoT6pD.js";import{M as i,C as a}from"./index-S9SFSHLo.js";import{DemoExample as r}from"./use_toast.stories-Wma7J8sM.js";import{useMDXComponents as e}from"./index-82O-B91n.js";import"./index-OjgoNOWw.js";import"./iframe-zHoeYuYN.js";import"../sb-preview/runtime.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-xK8HOd_o.js";import"./index-mQqIOHEI.js";import"./inheritsLoose-Y9jOMJLd.js";import"./index-LnHysSno.js";import"./index-BdDYuicC.js";import"./emotion-styled.browser.esm-jsqElTi7.js";import"./emotion-element-c39617d8.browser.esm-upVMHClS.js";import"./fade-6tFb4vlS.js";import"./use_merged_ref-U30BPCzO.js";import"./Transition-ZSq31Zhi.js";import"./alert-5kz5l48o.js";import"./flex_container-Aq3v_kS5.js";import"./typography-be8ycqzM.js";import"./icon_button-WreoF-Ie.js";import"./button-6fPk4QP_.js";import"./button_base-UbkVh8Vj.js";import"./tooltip-J9P4FoiT.js";import"./emotion-react.browser.esm-8gWn0FvA.js";import"./box-bq1vF_Hs.js";import"./popper-YlbGwMrF.js";import"./usePopper--g5aU53a.js";import"./portal-GS-MOYPJ.js";import"./use_enhanced_effect-jDxBKzmp.js";import"./use_controllable-CY5ZQbVr.js";import"./close_icon-Bp311Jgy.js";import"./close_circle_icon-XpY_jUxJ.js";import"./warning_icon-iK8dORZk.js";import"./circular_progress-JxgBeK0r.js";function s(n){const o=Object.assign({h2:"h2",p:"p",code:"code",strong:"strong",pre:"pre"},e(),n.components);return t.jsxs(t.Fragment,{children:[t.jsx(i,{title:"Hooks/useToast"}),` `,t.jsx(o.h2,{id:"overview",children:"Overview"}),` `,t.jsxs(o.p,{children:["The ",t.jsx(o.code,{children:"useToast"})," hook is a React hook that allows components to easily display toast notifications. It provides a simple interface to add toast notifications with customizable messages, variants, and options like enabling/disabling icons and making the toast closable."]}),` `,t.jsxs(o.p,{children:[t.jsx(o.strong,{children:"Warning"}),": Make sure to include ",t.jsx(o.code,{children:"ToastProvider"})," at the root of your component tree to enable toast notifications throughout your application."]}),` diff --git a/assets/use_toast.stories-1u41Ynxd.js b/assets/use_toast.stories-Wma7J8sM.js similarity index 97% rename from assets/use_toast.stories-1u41Ynxd.js rename to assets/use_toast.stories-Wma7J8sM.js index 184858a3..91633b73 100644 --- a/assets/use_toast.stories-1u41Ynxd.js +++ b/assets/use_toast.stories-Wma7J8sM.js @@ -1,3 +1,3 @@ -import{j as s}from"./jsx-runtime-DtaoT6pD.js";import{r as x}from"./index-OjgoNOWw.js";import{n as N}from"./emotion-styled.browser.esm-jsqElTi7.js";import{F as V}from"./fade-6tFb4vlS.js";import{A as E}from"./alert-wuCjLQa6.js";import{P as k}from"./portal-GS-MOYPJ.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-xK8HOd_o.js";import"./emotion-element-c39617d8.browser.esm-upVMHClS.js";import"./use_merged_ref-U30BPCzO.js";import"./Transition-ZSq31Zhi.js";import"./inheritsLoose-Y9jOMJLd.js";import"./index-mQqIOHEI.js";import"./flex_container-Aq3v_kS5.js";import"./typography-be8ycqzM.js";import"./icon_button-WreoF-Ie.js";import"./button-6fPk4QP_.js";import"./button_base-UbkVh8Vj.js";import"./tooltip-J9P4FoiT.js";import"./emotion-react.browser.esm-8gWn0FvA.js";import"./box-bq1vF_Hs.js";import"./popper-YlbGwMrF.js";import"./usePopper--g5aU53a.js";import"./use_controllable-CY5ZQbVr.js";import"./close_icon-Bp311Jgy.js";import"./close_circle_icon-XpY_jUxJ.js";import"./warning_icon-iK8dORZk.js";import"./circular_progress-_GSDl8M_.js";import"./use_enhanced_effect-jDxBKzmp.js";const b=()=>{throw new Error("You forgot to wrap your component in .")},v={addToast:b,removeToast:b,removeAllToasts:b},w=x.createContext(v),A=N("div")({position:"fixed",bottom:0,padding:"10px",zIndex:1300,width:"100%",maxWidth:"460px",wordBreak:"break-word",left:"50%",transform:"translateX(-50%)","& > * + *":{marginTop:"10px"}}),T=n=>{const{children:l,...a}=n;return s.jsx(A,{...a,children:l})};T.displayName="ToastContainer";try{T.displayName="ToastContainer",T.__docgenInfo={description:"",displayName:"ToastContainer",props:{children:{defaultValue:null,description:"The content of the component.",name:"children",required:!0,type:{name:"ReactNode"}}}}}catch{}const m=n=>{const{id:l,duration:a,isClosable:i,alertProps:f,children:u,onClose:y}=n,c=()=>{y(l)};return x.useEffect(()=>{if(a>0){const C=window.setTimeout(c,a);return()=>{clearTimeout(C)}}}),s.jsx(V,{in:!0,children:s.jsx(E,{...f,onClose:i?c:void 0,children:u})})};m.displayName="Toast";m.defaultProps={duration:4e3};try{m.displayName="Toast",m.__docgenInfo={description:"",displayName:"Toast",props:{id:{defaultValue:null,description:"The `id` of the toast. Mostly used when you need to prevent duplicate.",name:"id",required:!0,type:{name:"string"}},children:{defaultValue:null,description:"The content of the component.",name:"children",required:!0,type:{name:"ReactNode"}},onClose:{defaultValue:null,description:"Callback fired when the component requests to be closed.",name:"onClose",required:!0,type:{name:"(id: string) => void"}},duration:{defaultValue:{value:"4000"},description:"The delay before the toast hides (in milliseconds). If set to `null`, toast will never dismiss.",name:"duration",required:!1,type:{name:"number"}},isClosable:{defaultValue:null,description:"If `true`, toast will show a close button.",name:"isClosable",required:!1,type:{name:"boolean"}},alertProps:{defaultValue:null,description:"Props applied to the `Alert` element.",name:"alertProps",required:!1,type:{name:'Omit'}}}}}catch{}const p=n=>{const{children:l,toastContainerProps:a,maxToasts:i=1}=n,[f,u]=x.useState({toasts:[],queue:[]}),y=t=>{const e=t.id||`${Date.now()}${Math.random()}`,d={...t,id:e,createdAt:Date.now()};u(r=>r.queue.findIndex(q=>q.id===e)>-1||r.toasts.findIndex(q=>q.id===e)>-1?r:r.toasts.length>=i?{toasts:r.toasts,queue:[...r.queue,d]}:{queue:r.queue,toasts:[...r.toasts,d]})},c=t=>{u(e=>{const d=e.toasts.findIndex(o=>o.id===t);if(d>-1&&e.queue.length){const o=[...e.toasts];return o.splice(d,1),o.push(e.queue[0]),{queue:e.queue.slice(1,e.queue.length),toasts:o}}return d>-1?{queue:e.queue,toasts:e.toasts.filter(o=>o.id!==t)}:e.queue.findIndex(o=>o.id===t)>-1?{toasts:e.toasts,queue:e.queue.filter(o=>o.id!==t)}:e})},C=()=>{u({toasts:[],queue:[]})},I=!!f.toasts.length;return s.jsxs(w.Provider,{value:{addToast:y,removeToast:c,removeAllToasts:C},children:[l,I&&s.jsx(k,{children:s.jsx(T,{...a,children:f.toasts.map(t=>s.jsx(m,{id:t.id,onClose:c,isClosable:t.isClosable,duration:t.duration,alertProps:{disableIcon:t.disableIcon,variant:t.variant},children:t.message},t.id))})})]})};p.displayName="ToastProvider";p.defaultProps={maxToasts:1};try{p.displayName="ToastProvider",p.__docgenInfo={description:"",displayName:"ToastProvider",props:{children:{defaultValue:null,description:"The content of the component.",name:"children",required:!0,type:{name:"ReactNode"}},maxToasts:{defaultValue:{value:"1"},description:"Maximum snackbars that can be stacked on bottom of one another.",name:"maxToasts",required:!1,type:{name:"number"}},toastContainerProps:{defaultValue:null,description:"Props applied to the `ToastContainer` element.",name:"toastContainerProps",required:!1,type:{name:'Omit'}}}}}catch{}const j=()=>x.useContext(w),ue={title:"Hooks/useToast",component:j},R=()=>{const{addToast:n,removeAllToasts:l}=j(),a=["success","wrong","attention","pending"];return s.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"baseline",gap:10},children:[a.map(i=>s.jsxs("button",{type:"button",onClick:()=>{n({message:`${i} toast`,variant:i,disableIcon:!1,isClosable:!0})},children:["Show"," ",i," ","toast"]},i)),s.jsx("button",{type:"button",onClick:l,children:"Remove all toasts"})]})},h=()=>s.jsx(p,{maxToasts:4,children:s.jsx(R,{})});var _,P,g;h.parameters={...h.parameters,docs:{...(_=h.parameters)==null?void 0:_.docs,source:{originalSource:`() => +import{j as s}from"./jsx-runtime-DtaoT6pD.js";import{r as x}from"./index-OjgoNOWw.js";import{n as N}from"./emotion-styled.browser.esm-jsqElTi7.js";import{F as V}from"./fade-6tFb4vlS.js";import{A as E}from"./alert-5kz5l48o.js";import{P as k}from"./portal-GS-MOYPJ.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-xK8HOd_o.js";import"./emotion-element-c39617d8.browser.esm-upVMHClS.js";import"./use_merged_ref-U30BPCzO.js";import"./Transition-ZSq31Zhi.js";import"./inheritsLoose-Y9jOMJLd.js";import"./index-mQqIOHEI.js";import"./flex_container-Aq3v_kS5.js";import"./typography-be8ycqzM.js";import"./icon_button-WreoF-Ie.js";import"./button-6fPk4QP_.js";import"./button_base-UbkVh8Vj.js";import"./tooltip-J9P4FoiT.js";import"./emotion-react.browser.esm-8gWn0FvA.js";import"./box-bq1vF_Hs.js";import"./popper-YlbGwMrF.js";import"./usePopper--g5aU53a.js";import"./use_controllable-CY5ZQbVr.js";import"./close_icon-Bp311Jgy.js";import"./close_circle_icon-XpY_jUxJ.js";import"./warning_icon-iK8dORZk.js";import"./circular_progress-JxgBeK0r.js";import"./use_enhanced_effect-jDxBKzmp.js";const b=()=>{throw new Error("You forgot to wrap your component in .")},v={addToast:b,removeToast:b,removeAllToasts:b},w=x.createContext(v),A=N("div")({position:"fixed",bottom:0,padding:"10px",zIndex:1300,width:"100%",maxWidth:"460px",wordBreak:"break-word",left:"50%",transform:"translateX(-50%)","& > * + *":{marginTop:"10px"}}),T=n=>{const{children:l,...a}=n;return s.jsx(A,{...a,children:l})};T.displayName="ToastContainer";try{T.displayName="ToastContainer",T.__docgenInfo={description:"",displayName:"ToastContainer",props:{children:{defaultValue:null,description:"The content of the component.",name:"children",required:!0,type:{name:"ReactNode"}}}}}catch{}const m=n=>{const{id:l,duration:a,isClosable:i,alertProps:f,children:u,onClose:y}=n,c=()=>{y(l)};return x.useEffect(()=>{if(a>0){const C=window.setTimeout(c,a);return()=>{clearTimeout(C)}}}),s.jsx(V,{in:!0,children:s.jsx(E,{...f,onClose:i?c:void 0,children:u})})};m.displayName="Toast";m.defaultProps={duration:4e3};try{m.displayName="Toast",m.__docgenInfo={description:"",displayName:"Toast",props:{id:{defaultValue:null,description:"The `id` of the toast. Mostly used when you need to prevent duplicate.",name:"id",required:!0,type:{name:"string"}},children:{defaultValue:null,description:"The content of the component.",name:"children",required:!0,type:{name:"ReactNode"}},onClose:{defaultValue:null,description:"Callback fired when the component requests to be closed.",name:"onClose",required:!0,type:{name:"(id: string) => void"}},duration:{defaultValue:{value:"4000"},description:"The delay before the toast hides (in milliseconds). If set to `null`, toast will never dismiss.",name:"duration",required:!1,type:{name:"number"}},isClosable:{defaultValue:null,description:"If `true`, toast will show a close button.",name:"isClosable",required:!1,type:{name:"boolean"}},alertProps:{defaultValue:null,description:"Props applied to the `Alert` element.",name:"alertProps",required:!1,type:{name:'Omit'}}}}}catch{}const p=n=>{const{children:l,toastContainerProps:a,maxToasts:i=1}=n,[f,u]=x.useState({toasts:[],queue:[]}),y=t=>{const e=t.id||`${Date.now()}${Math.random()}`,d={...t,id:e,createdAt:Date.now()};u(r=>r.queue.findIndex(q=>q.id===e)>-1||r.toasts.findIndex(q=>q.id===e)>-1?r:r.toasts.length>=i?{toasts:r.toasts,queue:[...r.queue,d]}:{queue:r.queue,toasts:[...r.toasts,d]})},c=t=>{u(e=>{const d=e.toasts.findIndex(o=>o.id===t);if(d>-1&&e.queue.length){const o=[...e.toasts];return o.splice(d,1),o.push(e.queue[0]),{queue:e.queue.slice(1,e.queue.length),toasts:o}}return d>-1?{queue:e.queue,toasts:e.toasts.filter(o=>o.id!==t)}:e.queue.findIndex(o=>o.id===t)>-1?{toasts:e.toasts,queue:e.queue.filter(o=>o.id!==t)}:e})},C=()=>{u({toasts:[],queue:[]})},I=!!f.toasts.length;return s.jsxs(w.Provider,{value:{addToast:y,removeToast:c,removeAllToasts:C},children:[l,I&&s.jsx(k,{children:s.jsx(T,{...a,children:f.toasts.map(t=>s.jsx(m,{id:t.id,onClose:c,isClosable:t.isClosable,duration:t.duration,alertProps:{disableIcon:t.disableIcon,variant:t.variant},children:t.message},t.id))})})]})};p.displayName="ToastProvider";p.defaultProps={maxToasts:1};try{p.displayName="ToastProvider",p.__docgenInfo={description:"",displayName:"ToastProvider",props:{children:{defaultValue:null,description:"The content of the component.",name:"children",required:!0,type:{name:"ReactNode"}},maxToasts:{defaultValue:{value:"1"},description:"Maximum snackbars that can be stacked on bottom of one another.",name:"maxToasts",required:!1,type:{name:"number"}},toastContainerProps:{defaultValue:null,description:"Props applied to the `ToastContainer` element.",name:"toastContainerProps",required:!1,type:{name:'Omit'}}}}}catch{}const j=()=>x.useContext(w),ue={title:"Hooks/useToast",component:j},R=()=>{const{addToast:n,removeAllToasts:l}=j(),a=["success","wrong","attention","pending"];return s.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"baseline",gap:10},children:[a.map(i=>s.jsxs("button",{type:"button",onClick:()=>{n({message:`${i} toast`,variant:i,disableIcon:!1,isClosable:!0})},children:["Show"," ",i," ","toast"]},i)),s.jsx("button",{type:"button",onClick:l,children:"Remove all toasts"})]})},h=()=>s.jsx(p,{maxToasts:4,children:s.jsx(R,{})});var _,P,g;h.parameters={...h.parameters,docs:{...(_=h.parameters)==null?void 0:_.docs,source:{originalSource:`() => `,...(g=(P=h.parameters)==null?void 0:P.docs)==null?void 0:g.source}}};const ce=["DemoExample"];export{h as DemoExample,ce as __namedExportsOrder,ue as default}; diff --git a/assets/use_window_event_listener-gJGnqsLg.js b/assets/use_window_event_listener-PnJLkh7M.js similarity index 91% rename from assets/use_window_event_listener-gJGnqsLg.js rename to assets/use_window_event_listener-PnJLkh7M.js index 8c1926ea..0d8d4f44 100644 --- a/assets/use_window_event_listener-gJGnqsLg.js +++ b/assets/use_window_event_listener-PnJLkh7M.js @@ -1,4 +1,4 @@ -import{j as n}from"./jsx-runtime-DtaoT6pD.js";import{M as i,C as r}from"./index-FEzJ-IFI.js";import{DemoExample as c}from"./use_window_event_listener.stories-gBkYrAeP.js";import{useMDXComponents as s}from"./index-82O-B91n.js";import"./index-OjgoNOWw.js";import"./iframe-Di3G6qoa.js";import"../sb-preview/runtime.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-xK8HOd_o.js";import"./index-mQqIOHEI.js";import"./inheritsLoose-Y9jOMJLd.js";import"./index-LnHysSno.js";import"./index-BdDYuicC.js";function o(t){const e=Object.assign({h2:"h2",p:"p",pre:"pre",code:"code"},s(),t.components);return n.jsxs(n.Fragment,{children:[n.jsx(i,{title:"Hooks/useWindowEventListener"}),` +import{j as n}from"./jsx-runtime-DtaoT6pD.js";import{M as i,C as r}from"./index-S9SFSHLo.js";import{DemoExample as c}from"./use_window_event_listener.stories-gBkYrAeP.js";import{useMDXComponents as s}from"./index-82O-B91n.js";import"./index-OjgoNOWw.js";import"./iframe-zHoeYuYN.js";import"../sb-preview/runtime.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-xK8HOd_o.js";import"./index-mQqIOHEI.js";import"./inheritsLoose-Y9jOMJLd.js";import"./index-LnHysSno.js";import"./index-BdDYuicC.js";function o(t){const e=Object.assign({h2:"h2",p:"p",pre:"pre",code:"code"},s(),t.components);return n.jsxs(n.Fragment,{children:[n.jsx(i,{title:"Hooks/useWindowEventListener"}),` `,n.jsx(e.h2,{id:"overview",children:"Overview"}),` `,n.jsx(e.p,{children:"React hook that enables you to add event listeners to a window element within a React component."}),` `,n.jsx(e.h2,{id:"usage",children:"Usage"}),` diff --git a/iframe.html b/iframe.html index 533beda8..d3ec40b9 100644 --- a/iframe.html +++ b/iframe.html @@ -359,7 +359,7 @@ } - + diff --git a/project.json b/project.json index eb3bb130..e74672ef 100644 --- a/project.json +++ b/project.json @@ -1 +1 @@ -{"generatedAt":1725962899225,"hasCustomBabel":false,"hasCustomWebpack":false,"hasStaticDirs":true,"hasStorybookEslint":false,"refCount":0,"monorepo":"Lerna","packageManager":{"type":"yarn","version":"1.22.22"},"preview":{"usesGlobals":false},"framework":{"name":"@storybook/react-vite","options":{}},"builder":"@storybook/builder-vite","renderer":"@storybook/react","storybookVersion":"7.6.7","storybookVersionSpecifier":"7.6.7","language":"typescript","storybookPackages":{"@storybook/react":{"version":"7.6.7"},"@storybook/react-vite":{"version":"7.6.7"},"storybook":{"version":"7.6.7"}},"addons":{"@storybook/addon-essentials":{"options":{"backgrounds":false},"version":"7.6.7"},"storybook-dark-mode":{"version":"3.0.3"}}} +{"generatedAt":1725962973122,"hasCustomBabel":false,"hasCustomWebpack":false,"hasStaticDirs":true,"hasStorybookEslint":false,"refCount":0,"monorepo":"Lerna","packageManager":{"type":"yarn","version":"1.22.22"},"preview":{"usesGlobals":false},"framework":{"name":"@storybook/react-vite","options":{}},"builder":"@storybook/builder-vite","renderer":"@storybook/react","storybookVersion":"7.6.7","storybookVersionSpecifier":"7.6.7","language":"typescript","storybookPackages":{"@storybook/react":{"version":"7.6.7"},"@storybook/react-vite":{"version":"7.6.7"},"storybook":{"version":"7.6.7"}},"addons":{"@storybook/addon-essentials":{"options":{"backgrounds":false},"version":"7.6.7"},"storybook-dark-mode":{"version":"3.0.3"}}} diff --git a/sb-addons/storybook-7/manager-bundle.js b/sb-addons/storybook-7/manager-bundle.js index 5528dd4c..80e2a49a 100644 --- a/sb-addons/storybook-7/manager-bundle.js +++ b/sb-addons/storybook-7/manager-bundle.js @@ -1,3 +1,3 @@ try{ -(()=>{var y=__STORYBOOK_ADDONS__,{addons:i,types:h,mockChannel:f}=__STORYBOOK_ADDONS__;var v=__STORYBOOK_THEMING__,{CacheProvider:j,ClassNames:T,Global:O,ThemeProvider:D,background:P,color:S,convert:w,create:r,createCache:C,createGlobal:B,createReset:N,css:R,darken:A,ensure:E,ignoreSsrWarning:G,isPropValid:I,jsx:K,keyframes:M,lighten:Y,styled:$,themes:V,typography:H,useTheme:L,withTheme:W}=__STORYBOOK_THEMING__;var e={name:"@peculiar/react-components",private:!1,version:"0.6.6",author:"PeculiarVentures Team",description:"A simple and customizable component library to build faster, beautiful, and more accessible React applications.",keywords:["react","react-component"],sideEffects:!1,main:"dist/cjs/index.js",module:"dist/esm/index.js",esnext:"dist/esnext/index.js",typings:"dist/types/index.d.ts",files:["dist/"],repository:{type:"git",url:"https://github.com/PeculiarVentures/peculiar-ui.git",directory:"packages/react-components"},scripts:{start:"storybook dev -p 3000",prebuild:"yarn clean",build:"yarn build:esm && yarn build:cjs && yarn build:esnext","build:esm":"tsc -p tsconfig.build.json","build:cjs":"tsc -p tsconfig.build.json -m commonjs --outDir dist/cjs","build:esnext":"tsc -p tsconfig.build.json -t esnext --outDir dist/esnext","build:storybook":"storybook build -o public",clean:"rimraf public dist themes","test:unit":"jest --passWithNoTests --watchAll","test:unit:coverage":"yarn test:unit --coverage --watchAll=false","test:unit:updateSnapshot":"jest --updateSnapshot","check:types":"tsc --noEmit"},peerDependencies:{"@types/react":"^17.0.0 || ^18.0.0",react:"^17.0.0 || ^18.0.0","react-dom":"^17.0.0 || ^18.0.0"},peerDependenciesMeta:{"@types/react":{optional:!0}},dependencies:{"@emotion/react":"^11.11.1","@emotion/styled":"^11.11.0","@peculiar/color":"^0.1.3","@popperjs/core":"^2.11.7","@types/flat":"^5.0.2","@types/react-transition-group":"^4.4.5",deepmerge:"^4.3.1",flat:"^5.0.2","focus-trap":"^7.5.4",nanoid:"^3.3.6","react-popper":"^2.3.0","react-transition-group":"^4.4.5"},devDependencies:{"@storybook/addon-essentials":"7.6.7","@storybook/react":"7.6.7","@storybook/react-vite":"7.6.7","@types/react":"^18.0.34","@types/react-dom":"^18.0.11","@vitejs/plugin-react-swc":"^3.5.0",react:"^18.2.0","react-dom":"^18.2.0",rimraf:"^3.0.2",storybook:"7.6.7","storybook-dark-mode":"^3.0.3",typescript:"^4.6.3",vite:"^5.0.8"},publishConfig:{access:"public"},engines:{node:">=12.x"},license:"MIT"};var a=r({base:"light",brandTitle:`${e.name} v${e.version}`}),Z=r({base:"dark",brandTitle:`${e.name} v${e.version}`,appPreviewBg:"#1B1C1D"});i.setConfig({isFullscreen:!1,showPanel:!0,panelPosition:"bottom",isToolshown:!0,theme:a,sidebar:{filters:{patterns:n=>!n.name.includes("Example")}}});})(); +(()=>{var y=__STORYBOOK_ADDONS__,{addons:i,types:h,mockChannel:f}=__STORYBOOK_ADDONS__;var v=__STORYBOOK_THEMING__,{CacheProvider:j,ClassNames:T,Global:O,ThemeProvider:D,background:P,color:S,convert:w,create:r,createCache:C,createGlobal:B,createReset:N,css:R,darken:A,ensure:E,ignoreSsrWarning:G,isPropValid:I,jsx:K,keyframes:M,lighten:Y,styled:$,themes:V,typography:H,useTheme:L,withTheme:W}=__STORYBOOK_THEMING__;var e={name:"@peculiar/react-components",private:!1,version:"0.6.7",author:"PeculiarVentures Team",description:"A simple and customizable component library to build faster, beautiful, and more accessible React applications.",keywords:["react","react-component"],sideEffects:!1,main:"dist/cjs/index.js",module:"dist/esm/index.js",esnext:"dist/esnext/index.js",typings:"dist/types/index.d.ts",files:["dist/"],repository:{type:"git",url:"https://github.com/PeculiarVentures/peculiar-ui.git",directory:"packages/react-components"},scripts:{start:"storybook dev -p 3000",prebuild:"yarn clean",build:"yarn build:esm && yarn build:cjs && yarn build:esnext","build:esm":"tsc -p tsconfig.build.json","build:cjs":"tsc -p tsconfig.build.json -m commonjs --outDir dist/cjs","build:esnext":"tsc -p tsconfig.build.json -t esnext --outDir dist/esnext","build:storybook":"storybook build -o public",clean:"rimraf public dist themes","test:unit":"jest --passWithNoTests --watchAll","test:unit:coverage":"yarn test:unit --coverage --watchAll=false","test:unit:updateSnapshot":"jest --updateSnapshot","check:types":"tsc --noEmit"},peerDependencies:{"@types/react":"^17.0.0 || ^18.0.0",react:"^17.0.0 || ^18.0.0","react-dom":"^17.0.0 || ^18.0.0"},peerDependenciesMeta:{"@types/react":{optional:!0}},dependencies:{"@emotion/react":"^11.11.1","@emotion/styled":"^11.11.0","@peculiar/color":"^0.1.3","@popperjs/core":"^2.11.7","@types/flat":"^5.0.2","@types/react-transition-group":"^4.4.5",deepmerge:"^4.3.1",flat:"^5.0.2","focus-trap":"^7.5.4",nanoid:"^3.3.6","react-popper":"^2.3.0","react-transition-group":"^4.4.5"},devDependencies:{"@storybook/addon-essentials":"7.6.7","@storybook/react":"7.6.7","@storybook/react-vite":"7.6.7","@types/react":"^18.0.34","@types/react-dom":"^18.0.11","@vitejs/plugin-react-swc":"^3.5.0",react:"^18.2.0","react-dom":"^18.2.0",rimraf:"^3.0.2",storybook:"7.6.7","storybook-dark-mode":"^3.0.3",typescript:"^4.6.3",vite:"^5.0.8"},publishConfig:{access:"public"},engines:{node:">=12.x"},license:"MIT"};var a=r({base:"light",brandTitle:`${e.name} v${e.version}`}),Z=r({base:"dark",brandTitle:`${e.name} v${e.version}`,appPreviewBg:"#1B1C1D"});i.setConfig({isFullscreen:!1,showPanel:!0,panelPosition:"bottom",isToolshown:!0,theme:a,sidebar:{filters:{patterns:n=>!n.name.includes("Example")}}});})(); }catch(e){ console.error("[Storybook] One of your manager-entries failed: " + import.meta.url, e); }