function e(e){return e&&e.__esModule?e.default:e}function t(e,t,l,n){Object.defineProperty(e,t,{get:l,set:n,enumerable:!0,configurable:!0})}var l="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},n={},a={},r=l.parcelRequire7f0c;null==r&&((r=function(e){if(e in n)return n[e].exports;if(e in a){var t=a[e];delete a[e];var l={id:e,exports:{}};return n[e]=l,t.call(l.exports,l,l.exports),l.exports}var r=new Error("Cannot find module '"+e+"'");throw r.code="MODULE_NOT_FOUND",r}).register=function(e,t){a[e]=t},l.parcelRequire7f0c=r);var o,i={};o=i,Object.defineProperty(o,"__esModule",{value:!0,configurable:!0}),t(i,"default",(()=>ye)),r("hBpRM"),r("lwKbS");var u,s=r("ba5Av"),c=r("kqD02"),p=r("eUt54"),m=r("2Hdbt"),d=(s=r("ba5Av"),{});t(d,"react-spectrum-ColorField-input",(()=>u),(e=>u=e)),u="react-spectrum-ColorField-input_7bde3a";var f=r("1qq86"),E=(s=r("ba5Av"),r("dzJsp")),v=r("fh75v"),h=r("iym2z"),y=(s=r("ba5Av"),r("eRSvm"));function b(e,t){let{onScroll:l,isDisabled:n}=e,a=(0,s.useCallback)((e=>{e.ctrlKey||(e.preventDefault(),e.stopPropagation(),l&&l({deltaX:e.deltaX,deltaY:e.deltaY}))}),[l]);(0,y.useEvent)(t,"wheel",n?null:a)}E=r("dzJsp");var g=r("HkQi4"),x=(s=r("ba5Av"),r("b0beE"));function C(){return"undefined"!=typeof window&&window.InputEvent&&"function"==typeof InputEvent.prototype.getTargetRanges}function P(e,t,l){let n=(0,g.useEffectEvent)((e=>{let n,a=l.current;switch(e.inputType){case"historyUndo":case"historyRedo":return;case"deleteContent":case"deleteByCut":case"deleteByDrag":n=a.value.slice(0,a.selectionStart)+a.value.slice(a.selectionEnd);break;case"deleteContentForward":n=a.selectionEnd===a.selectionStart?a.value.slice(0,a.selectionStart)+a.value.slice(a.selectionEnd+1):a.value.slice(0,a.selectionStart)+a.value.slice(a.selectionEnd);break;case"deleteContentBackward":n=a.selectionEnd===a.selectionStart?a.value.slice(0,a.selectionStart-1)+a.value.slice(a.selectionStart):a.value.slice(0,a.selectionStart)+a.value.slice(a.selectionEnd);break;case"deleteSoftLineBackward":case"deleteHardLineBackward":n=a.value.slice(a.selectionStart);break;default:null!=e.data&&(n=a.value.slice(0,a.selectionStart)+e.data+a.value.slice(a.selectionEnd))}null!=n&&t.validate(n)||e.preventDefault()}));(0,s.useEffect)((()=>{if(!C())return;let e=l.current;return e.addEventListener("beforeinput",n,!1),()=>{e.removeEventListener("beforeinput",n,!1)}}),[l,n]);let a=C()?null:e=>{let l=e.target.value.slice(0,e.target.selectionStart)+e.data+e.target.value.slice(e.target.selectionEnd);t.validate(l)||e.preventDefault()},{labelProps:r,inputProps:o,descriptionProps:i,errorMessageProps:u}=(0,x.useTextField)(e,l),c=(0,s.useRef)(null);return{inputProps:(0,E.mergeProps)(o,{onBeforeInput:a,onCompositionStart(){let{value:e,selectionStart:t,selectionEnd:n}=l.current;c.current={value:e,selectionStart:t,selectionEnd:n}},onCompositionEnd(){if(!t.validate(l.current.value)){let{value:e,selectionStart:n,selectionEnd:a}=c.current;l.current.value=e,l.current.setSelectionRange(n,a),t.setInputValue(e)}}}),labelProps:r,descriptionProps:i,errorMessageProps:u}}var S=r("gRiqf"),I={};I={"ar-AE":{Empty:"فارغ"},"bg-BG":{Empty:"Изпразни"},"cs-CZ":{Empty:"Prázdné"},"da-DK":{Empty:"Tom"},"de-DE":{Empty:"Leer"},"el-GR":{Empty:"Άδειο"},"en-US":{Empty:"Empty"},"es-ES":{Empty:"Vacío"},"et-EE":{Empty:"Tühjenda"},"fi-FI":{Empty:"Tyhjä"},"fr-FR":{Empty:"Vide"},"he-IL":{Empty:"ריק"},"hr-HR":{Empty:"Prazno"},"hu-HU":{Empty:"Üres"},"it-IT":{Empty:"Vuoto"},"ja-JP":{Empty:"空"},"ko-KR":{Empty:"비어 있음"},"lt-LT":{Empty:"Tuščias"},"lv-LV":{Empty:"Tukšs"},"nb-NO":{Empty:"Tom"},"nl-NL":{Empty:"Leeg"},"pl-PL":{Empty:"Pusty"},"pt-BR":{Empty:"Vazio"},"pt-PT":{Empty:"Vazio"},"ro-RO":{Empty:"Gol"},"ru-RU":{Empty:"Не заполнено"},"sk-SK":{Empty:"Prázdne"},"sl-SI":{Empty:"Prazen"},"sr-SP":{Empty:"Prazno"},"sv-SE":{Empty:"Tomt"},"tr-TR":{Empty:"Boş"},"uk-UA":{Empty:"Пусто"},"zh-CN":{Empty:"空"},"zh-TW":{Empty:"空白"}};s=r("ba5Av"),g=r("HkQi4");var R=r("a07OA"),w=r("dhC3v");function A(t){const l=(0,s.useRef)();let{value:n,textValue:a,minValue:r,maxValue:o,isDisabled:i,isReadOnly:u,isRequired:c,onIncrement:p,onIncrementPage:m,onDecrement:d,onDecrementPage:f,onDecrementToMin:E,onIncrementToMax:v}=t;const h=(0,w.useLocalizedStringFormatter)(e(I)),y=()=>clearTimeout(l.current);(0,s.useEffect)((()=>()=>y()),[]);let b=(0,s.useRef)(!1),x=()=>{b.current=!0},C=()=>{b.current=!1};a=""===a?h.format("Empty"):(a||`${n}`).replace("-","−"),(0,s.useEffect)((()=>{b.current&&((0,S.clearAnnouncer)("assertive"),(0,S.announce)(a,"assertive"))}),[a]);const P=(0,g.useEffectEvent)((e=>{y(),p(),l.current=window.setTimeout((()=>{(isNaN(o)||isNaN(n)||n<o)&&P(60)}),e)})),A=(0,g.useEffectEvent)((e=>{y(),d(),l.current=window.setTimeout((()=>{(isNaN(r)||isNaN(n)||n>r)&&A(60)}),e)}));let D=e=>{e.preventDefault()},{addGlobalListener:T,removeAllGlobalListeners:B}=(0,R.useGlobalListeners)();return{spinButtonProps:{role:"spinbutton","aria-valuenow":isNaN(n)?null:n,"aria-valuetext":a,"aria-valuemin":r,"aria-valuemax":o,"aria-disabled":i||null,"aria-readonly":u||null,"aria-required":c||null,onKeyDown:e=>{if(!(e.ctrlKey||e.metaKey||e.shiftKey||e.altKey||u))switch(e.key){case"PageUp":if(m){e.preventDefault(),m();break}case"ArrowUp":case"Up":p&&(e.preventDefault(),p());break;case"PageDown":if(f){e.preventDefault(),f();break}case"ArrowDown":case"Down":d&&(e.preventDefault(),d());break;case"Home":E&&(e.preventDefault(),E());break;case"End":v&&(e.preventDefault(),v())}},onFocus:x,onBlur:C},incrementButtonProps:{onPressStart:()=>{P(400),T(window,"contextmenu",D)},onPressEnd:()=>{y(),B()},onFocus:x,onBlur:C},decrementButtonProps:{onPressStart:()=>{A(400),T(window,"contextmenu",D)},onPressEnd:()=>{y(),B()},onFocus:x,onBlur:C}}}function D(e,t,l){let{isDisabled:n,isReadOnly:a,isRequired:r}=e,{colorValue:o,inputValue:i,commit:u,increment:c,decrement:p,incrementToMax:m,decrementToMin:d}=t,f=(0,v.useId)(),{spinButtonProps:y}=A({isDisabled:n,isReadOnly:a,isRequired:r,maxValue:16777215,minValue:0,onIncrement:c,onIncrementToMax:m,onDecrement:p,onDecrementToMin:d,value:o?o.toHexInt():void 0,textValue:o?o.toString("hex"):void 0}),[g,x]=(0,s.useState)(!1),{focusWithinProps:C}=(0,h.useFocusWithin)({isDisabled:n,onFocusWithinChange:x});b({onScroll:(0,s.useCallback)((e=>{Math.abs(e.deltaY)<=Math.abs(e.deltaX)||(e.deltaY>0?c():e.deltaY<0&&p())}),[p,c]),isDisabled:n||a||!g},l);let{labelProps:S,inputProps:I}=P((0,E.mergeProps)(e,{id:f,value:i,defaultValue:void 0,type:"text",autoComplete:"off",onChange:e=>{t.validate(e)&&t.setInputValue(e)}}),t,l);return{labelProps:S,inputProps:(0,E.mergeProps)(I,y,C,{role:"textbox","aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null,autoCorrect:"off",spellCheck:"false",onBlur:u})}}var T=r("lh0vo");T=r("lh0vo"),s=r("ba5Av");function B(e){return(0,s.useMemo)((()=>{if("string"==typeof e)try{return(0,T.parseColor)(e)}catch(e){return}return e}),[e])}var H=r("8N1RW");s=r("ba5Av");const V=(0,T.parseColor)("#000000"),N=(0,T.parseColor)("#FFFFFF"),F=V.toHexInt(),M=N.toHexInt();function k(e){let{value:t,defaultValue:l,onChange:n}=e,{step:a}=V.getChannelRange("red"),r=B(t),o=B(l),[i,u]=(0,H.useControlledState)(r,o,n),[c,p]=(0,s.useState)((()=>(t||l)&&i?i.toString("hex"):"")),m=e=>{i&&e&&e.toHexInt()===i.toHexInt()||u(e)},[d,f]=(0,s.useState)(i);d!==i&&(p(i?i.toString("hex"):""),f(i));let E=(0,s.useMemo)((()=>{let e;try{e=(0,T.parseColor)(c.startsWith("#")?c:`#${c}`)}catch(t){e=null}return e}),[c]);return{validate:e=>{var t;return""===e||!!(null===(t=e.match(/^#?[0-9a-f]{0,6}$/i))||void 0===t?void 0:t[0])},colorValue:i,inputValue:c,setInputValue:p,commit:()=>{if(!c.length)return m(null),void p(void 0===t?"":i.toString("hex"));if(null==E)return void p(i?i.toString("hex"):"");m(E);let e="";i&&(e=i.toString("hex")),p(e)},increment:()=>{let e=j(E,a);e===i&&p(e.toString("hex")),m(e)},incrementToMax:()=>m(N),decrement:()=>{let e=j(E,-a);e===i&&p(e.toString("hex")),m(e)},decrementToMin:()=>m(V)}}function j(e,t){let l=e||V,n=l.toHexInt(),a=Math.min(Math.max(n+t,F),M);if(a!==n){let e=`#${a.toString(16).padStart(6,"0").toUpperCase()}`;l=(0,T.parseColor)(e)}return l}var O=r("jRS4P");function z(t,l){t=(0,O.useProviderProps)(t);let{value:n,defaultValue:a,onChange:r,...o}=t,i=k(t),u=(0,s.useRef)(null),{labelProps:c,inputProps:p}=D(o,i,u);return t.placeholder&&console.warn("Placeholders are deprecated due to accessibility issues. Please use help text instead. See the docs for details: https://react-spectrum.adobe.com/react-spectrum/ColorField.html#help-text"),e(s).createElement(f.TextFieldBase,{...o,ref:l,inputRef:u,labelProps:c,inputProps:p,inputClassName:(0,m.classNames)(e(d),"react-spectrum-ColorField-input")})}const L=e(s).forwardRef(z);var U,_=r("jiE6E"),K=(T=r("lh0vo"),r("1MRw2")),q=r("2kQrt"),W=(m=r("2Hdbt"),r("g3pfe")),G=r("jV1j5"),Q=r("bvYpG"),Y=r("7c45J");U=function(e){return te.default.createElement(ee.Icon,e,te.default.createElement(Z.A4uHelpOutline,null))};var Z={};Object.defineProperty(Z,"__esModule",{value:!0}),Z.A4uHelpOutline=function(e){var t=$({},e);return X.default.createElement("svg",$({viewBox:"0 0 36 36"},t,t),X.default.createElement("path",{fillRule:"evenodd",d:"M20.18127,25.932a1.83345,1.83345,0,0,1-1.95444,2.01521A1.86185,1.86185,0,0,1,16.27145,25.932a1.95513,1.95513,0,1,1,3.90982,0ZM17.95316,8.00006a9.23221,9.23221,0,0,0-4.5182,1.0724c-.11848.06278-.11848.1843-.11848.30683v2.97112a.14919.14919,0,0,0,.23709.12152,7.38464,7.38464,0,0,1,3.74491-1.00961c1.81265,0,2.52657.76556,2.52657,1.86834,0,.94987-.56506,1.5929-1.54518,2.60353C16.8533,17.40557,15.99052,18.323,15.99052,19.763a3.41737,3.41737,0,0,0,.71392,2.11441A.488.488,0,0,0,17.09038,22h2.58581a.13062.13062,0,0,0,.11861-.21469,3.3024,3.3024,0,0,1-.47557-1.68606c0-.91747,1.09987-1.92809,2.2591-3.06226a5.4743,5.4743,0,0,0,1.90214-4.2258C23.48047,10.11549,21.51909,8.00006,17.95316,8.00006ZM35,18A17,17,0,1,1,18,1.0001,17.00005,17.00005,0,0,1,35,18Zm-3.65039,0A13.34961,13.34961,0,1,0,18,31.34953,13.34954,13.34954,0,0,0,31.34961,18Z"}))};var J,X=(J=r("ba5Av"))&&J.__esModule?J:{default:J};function $(){return $=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var n in l)Object.prototype.hasOwnProperty.call(l,n)&&(e[n]=l[n])}return e},$.apply(this,arguments)}var ee=r("2hQQC"),te=Y(r("ba5Av"));var le,ne,ae,re,oe={};t(oe,"react-spectrum-ContextualHelp-button",(()=>le),(e=>le=e)),t(oe,"react-spectrum-ContextualHelp-dialog",(()=>ne),(e=>ne=e)),t(oe,"react-spectrum-ContextualHelp-content",(()=>ae),(e=>ae=e)),t(oe,"react-spectrum-ContextualHelp-footer",(()=>re),(e=>re=e)),le="react-spectrum-ContextualHelp-button_0cd31c",ne="react-spectrum-ContextualHelp-dialog_0cd31c",ae="react-spectrum-ContextualHelp-content_0cd31c",re="react-spectrum-ContextualHelp-footer_0cd31c";var ie,ue=r("7CqZS");ie={"ar-AE":{help:"مساعدة",info:"معلومات"},"bg-BG":{help:"Помощ",info:"Информация"},"cs-CZ":{help:"Nápověda",info:"Informace"},"da-DK":{help:"Hjælp",info:"Oplysninger"},"de-DE":{help:"Hilfe",info:"Informationen"},"el-GR":{help:"Βοήθεια",info:"Πληροφορίες"},"en-US":{info:"Information",help:"Help"},"es-ES":{help:"Ayuda",info:"Información"},"et-EE":{help:"Spikker",info:"Teave"},"fi-FI":{help:"Ohje",info:"Tiedot"},"fr-FR":{help:"Aide",info:"Informations"},"he-IL":{help:"עזרה",info:"מידע"},"hr-HR":{help:"Pomoć",info:"Informacije"},"hu-HU":{help:"Súgó",info:"Információ"},"it-IT":{help:"Aiuto",info:"Informazioni"},"ja-JP":{help:"ヘルプ",info:"情報"},"ko-KR":{help:"도움말",info:"정보"},"lt-LT":{help:"Žinynas",info:"Informacija"},"lv-LV":{help:"Palīdzība",info:"Informācija"},"nb-NO":{help:"Hjelp",info:"Informasjon"},"nl-NL":{help:"Help",info:"Informatie"},"pl-PL":{help:"Pomoc",info:"Informacja"},"pt-BR":{help:"Ajuda",info:"Informações"},"pt-PT":{help:"Ajuda",info:"Informação"},"ro-RO":{help:"Ajutor",info:"Informaţii"},"ru-RU":{help:"Справка",info:"Информация"},"sk-SK":{help:"Pomoc",info:"Informácie"},"sl-SI":{help:"Pomoč",info:"Informacije"},"sr-SP":{help:"Pomoć",info:"Informacije"},"sv-SE":{help:"Hjälp",info:"Information"},"tr-TR":{help:"Yardım",info:"Bilgiler"},"uk-UA":{help:"Довідка",info:"Інформація"},"zh-CN":{help:"帮助",info:"信息"},"zh-TW":{help:"說明",info:"資訊"}};E=r("dzJsp");var se=r("bfr90");s=r("ba5Av"),w=r("dhC3v");function ce(t,l){let{variant:n="help",placement:a="bottom start",children:r,...o}=t,i=(0,w.useLocalizedStringFormatter)(e(ie)),u="info"===n?e(s).createElement(ue.default,null):e(s).createElement(U,null),c={content:{UNSAFE_className:e(oe)["react-spectrum-ContextualHelp-content"]},footer:{UNSAFE_className:e(oe)["react-spectrum-ContextualHelp-footer"]}},p=(0,se.useLabels)(o,i.format(n));return e(s).createElement(Q.DialogTrigger,{...o,type:"popover",placement:a,hideArrow:!0},e(s).createElement(q.ActionButton,{...(0,E.mergeProps)(o,p,{isDisabled:!1}),ref:l,UNSAFE_className:(0,m.classNames)(e(oe),"react-spectrum-ContextualHelp-button",o.UNSAFE_className),isQuiet:!0},u),e(s).createElement(W.ClearSlots,null,e(s).createElement(W.SlotProvider,{slots:c},e(s).createElement(G.Dialog,{UNSAFE_className:(0,m.classNames)(e(oe),"react-spectrum-ContextualHelp-dialog")},r))))}let pe=e(s).forwardRef(ce);var me=r("bBhWz"),de=(s=r("ba5Av"),r("cXhlU")),fe=(W=r("g3pfe"),r("dXKRR"));function Ee(t,l){t=(0,W.useSlotProps)(t,"heading");let{children:n,level:a=3,...r}=t,{styleProps:o}=(0,fe.useStyleProps)(r),i=(0,de.useDOMRef)(l),u=`h${a}`;return e(s).createElement(u,{...(0,me.filterDOMProps)(r),...o,ref:i},n)}const ve=(0,s.forwardRef)(Ee);let he=[];he.push((()=>e(c).render(e(s).createElement(p.Example,null,e(s).createElement(L,{label:"Primary Color"})),document.getElementById("example-1")))),function(){function t(){let[t,l]=e(s).useState((0,T.parseColor)("#e73623"));return e(s).createElement(_.Flex,{gap:"size-150",wrap:!0},e(s).createElement(L,{label:"Primary Color (Uncontrolled)",defaultValue:"#e21"}),e(s).createElement(L,{label:"Primary Color (Controlled)",value:t,onChange:l}))}he.push((()=>e(c).render(e(s).createElement(p.Example,null,e(s).createElement(t,null)),document.getElementById("example-2"))))}(),he.push((()=>e(c).render(e(s).createElement(p.Example,null,e(s).createElement(L,{label:"Color",name:"color"})),document.getElementById("example-4")))),he.push((()=>e(c).render(e(s).createElement(p.Example,null,e(s).createElement(_.Flex,{gap:"size-150",wrap:!0},e(s).createElement(L,{label:"Primary Color"}),e(s).createElement(L,{label:"Primary Color",isRequired:!0}),e(s).createElement(L,{label:"Primary Color",isRequired:!0,necessityIndicator:"label"}),e(s).createElement(L,{label:"Primary Color",necessityIndicator:"label"}))),document.getElementById("example-5")))),function(){function t(){let[t,l]=e(s).useState((0,T.parseColor)("#e73623")),n=e(s).useMemo((()=>t&&t.getChannelValue("red")>t.getChannelValue("green")&&t.getChannelValue("red")>t.getChannelValue("blue")),[t]);return e(s).createElement(L,{validationState:n?"valid":"invalid",value:t,onChange:l,label:"Red colors"})}he.push((()=>e(c).render(e(s).createElement(p.Example,null,e(s).createElement(t,null)),document.getElementById("example-6"))))}(),he.push((()=>e(c).render(e(s).createElement(p.Example,null,e(s).createElement(L,{label:"Primary Color",isQuiet:!0})),document.getElementById("example-7")))),he.push((()=>e(c).render(e(s).createElement(p.Example,null,e(s).createElement(L,{label:"Primary Color",isDisabled:!0,defaultValue:"#e73623"})),document.getElementById("example-8")))),he.push((()=>e(c).render(e(s).createElement(p.Example,null,e(s).createElement(L,{label:"Primary Color",isReadOnly:!0,defaultValue:"#e73623"})),document.getElementById("example-9")))),he.push((()=>e(c).render(e(s).createElement(p.Example,null,e(s).createElement(L,{label:"Primary Color",labelPosition:"side",labelAlign:"end"})),document.getElementById("example-10")))),function(){function t(){let[t,l]=e(s).useState((0,T.parseColor)("#e73623")),n=e(s).useMemo((()=>t&&t.getChannelValue("red")>t.getChannelValue("green")&&t.getChannelValue("red")>t.getChannelValue("blue")),[t]);return e(s).createElement(L,{validationState:n?"valid":"invalid",value:t,onChange:l,label:"Red colors",description:"Enter a red color.",errorMessage:null===t?"Empty input not allowed.":"Not a red color."})}he.push((()=>e(c).render(e(s).createElement(p.Example,null,e(s).createElement(t,null)),document.getElementById("example-11"))))}(),he.push((()=>e(c).render(e(s).createElement(p.Example,null,e(s).createElement(L,{label:"Accent Color",defaultValue:"#e73623",contextualHelp:e(s).createElement(pe,null,e(s).createElement(ve,null,"What is an accent color?"),e(s).createElement(K.Content,null,"An accent color is the primary foreground color for your theme, used across all components."))})),document.getElementById("example-12")))),he.push((()=>e(c).render(e(s).createElement(p.Example,null,e(s).createElement(L,{label:"Primary Color",width:"size-3600",maxWidth:"100%"})),document.getElementById("example-14"))));for(let e of he)e();var ye={};