@salesforce/ui-design-mode 10.2.2 → 10.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/authoring/core/DesignPropertyPanelRoot.d.cts +52 -0
- package/dist/authoring/core/DesignPropertyPanelRoot.d.ts +52 -0
- package/dist/authoring/core/DesignPropertyPanelRoot.d.ts.map +1 -0
- package/dist/authoring/core/DesignPropertyPanelSection.d.cts +8 -0
- package/dist/authoring/core/DesignPropertyPanelSection.d.ts +8 -0
- package/dist/authoring/core/DesignPropertyPanelSection.d.ts.map +1 -0
- package/dist/authoring/core/editors/BaseEditorContainer.d.cts +16 -0
- package/dist/authoring/core/editors/BaseEditorContainer.d.ts +16 -0
- package/dist/authoring/core/editors/BaseEditorContainer.d.ts.map +1 -0
- package/dist/authoring/core/editors/BorderStyleEditor.d.cts +8 -0
- package/dist/authoring/core/editors/BorderStyleEditor.d.ts +8 -0
- package/dist/authoring/core/editors/BorderStyleEditor.d.ts.map +1 -0
- package/dist/authoring/core/editors/BoxDimensionEditor.d.cts +34 -0
- package/dist/authoring/core/editors/BoxDimensionEditor.d.ts +34 -0
- package/dist/authoring/core/editors/BoxDimensionEditor.d.ts.map +1 -0
- package/dist/authoring/core/editors/ColorEditor.d.cts +15 -0
- package/dist/authoring/core/editors/ColorEditor.d.ts +15 -0
- package/dist/authoring/core/editors/ColorEditor.d.ts.map +1 -0
- package/dist/authoring/core/editors/DimensionEditor.d.cts +31 -0
- package/dist/authoring/core/editors/DimensionEditor.d.ts +31 -0
- package/dist/authoring/core/editors/DimensionEditor.d.ts.map +1 -0
- package/dist/authoring/core/editors/FontFamilyEditor.d.cts +11 -0
- package/dist/authoring/core/editors/FontFamilyEditor.d.ts +11 -0
- package/dist/authoring/core/editors/FontFamilyEditor.d.ts.map +1 -0
- package/dist/authoring/core/editors/FontStyleEditor.d.cts +8 -0
- package/dist/authoring/core/editors/FontStyleEditor.d.ts +8 -0
- package/dist/authoring/core/editors/FontStyleEditor.d.ts.map +1 -0
- package/dist/authoring/core/editors/FontWeightEditor.d.cts +11 -0
- package/dist/authoring/core/editors/FontWeightEditor.d.ts +11 -0
- package/dist/authoring/core/editors/FontWeightEditor.d.ts.map +1 -0
- package/dist/authoring/core/editors/OverflowEditor.d.cts +8 -0
- package/dist/authoring/core/editors/OverflowEditor.d.ts +8 -0
- package/dist/authoring/core/editors/OverflowEditor.d.ts.map +1 -0
- package/dist/authoring/core/editors/PicklistEditor.d.cts +26 -0
- package/dist/authoring/core/editors/PicklistEditor.d.ts +26 -0
- package/dist/authoring/core/editors/PicklistEditor.d.ts.map +1 -0
- package/dist/authoring/core/editors/RadioGroupEditor.d.cts +26 -0
- package/dist/authoring/core/editors/RadioGroupEditor.d.ts +26 -0
- package/dist/authoring/core/editors/RadioGroupEditor.d.ts.map +1 -0
- package/dist/authoring/core/editors/TextAlignmentEditor.d.cts +8 -0
- package/dist/authoring/core/editors/TextAlignmentEditor.d.ts +8 -0
- package/dist/authoring/core/editors/TextAlignmentEditor.d.ts.map +1 -0
- package/dist/authoring/core/editors/TextDecorationEditor.d.cts +8 -0
- package/dist/authoring/core/editors/TextDecorationEditor.d.ts +8 -0
- package/dist/authoring/core/editors/TextDecorationEditor.d.ts.map +1 -0
- package/dist/authoring/core/editors/TextTransformEditor.d.cts +8 -0
- package/dist/authoring/core/editors/TextTransformEditor.d.ts +8 -0
- package/dist/authoring/core/editors/TextTransformEditor.d.ts.map +1 -0
- package/dist/authoring/core/history/commandExecutor.d.cts +29 -0
- package/dist/authoring/core/history/commandExecutor.d.ts +29 -0
- package/dist/authoring/core/history/commandExecutor.d.ts.map +1 -0
- package/dist/authoring/core/history/historyManager.d.cts +77 -0
- package/dist/authoring/core/history/historyManager.d.ts +77 -0
- package/dist/authoring/core/history/historyManager.d.ts.map +1 -0
- package/dist/authoring/core/history/historyService.d.cts +37 -0
- package/dist/authoring/core/history/historyService.d.ts +37 -0
- package/dist/authoring/core/history/historyService.d.ts.map +1 -0
- package/dist/authoring/core/history/iframeCommandExecutor.d.cts +10 -0
- package/dist/authoring/core/history/iframeCommandExecutor.d.ts +10 -0
- package/dist/authoring/core/history/iframeCommandExecutor.d.ts.map +1 -0
- package/dist/authoring/core/history/targetResolver.d.cts +59 -0
- package/dist/authoring/core/history/targetResolver.d.ts +59 -0
- package/dist/authoring/core/history/targetResolver.d.ts.map +1 -0
- package/dist/authoring/core/hooks/usePopover.d.cts +26 -0
- package/dist/authoring/core/hooks/usePopover.d.ts +26 -0
- package/dist/authoring/core/hooks/usePopover.d.ts.map +1 -0
- package/dist/authoring/core/utils/colorUtils.d.cts +73 -0
- package/dist/authoring/core/utils/colorUtils.d.ts +73 -0
- package/dist/authoring/core/utils/colorUtils.d.ts.map +1 -0
- package/dist/authoring/core/utils/dimensionUtils.d.cts +81 -0
- package/dist/authoring/core/utils/dimensionUtils.d.ts +81 -0
- package/dist/authoring/core/utils/dimensionUtils.d.ts.map +1 -0
- package/dist/authoring/core/utils/domUtils.d.cts +7 -0
- package/dist/authoring/core/utils/domUtils.d.ts +7 -0
- package/dist/authoring/core/utils/domUtils.d.ts.map +1 -0
- package/dist/authoring/react/index.d.cts +14 -0
- package/dist/authoring/react/index.d.ts +14 -0
- package/dist/authoring/react/index.d.ts.map +1 -0
- package/dist/authoring/react/index.js +119 -0
- package/dist/authoring/web-component/index.d.cts +18 -0
- package/dist/authoring/web-component/index.d.ts +18 -0
- package/dist/authoring/web-component/index.d.ts.map +1 -0
- package/dist/authoring/web-component/index.js +1229 -0
- package/dist/protocol/editableElementTags.cjs +16 -0
- package/dist/protocol/editableElementTags.d.cts +14 -0
- package/dist/protocol/editableElementTags.d.ts +14 -0
- package/dist/protocol/editableElementTags.d.ts.map +1 -0
- package/dist/protocol/editableElementTags.js +16 -0
- package/dist/protocol/index.cjs +2 -0
- package/dist/protocol/index.d.cts +1 -0
- package/dist/protocol/index.d.ts +1 -0
- package/dist/protocol/index.d.ts.map +1 -1
- package/dist/protocol/index.js +2 -0
- package/dist/protocol/messageTypes.d.cts +49 -6
- package/dist/protocol/messageTypes.d.ts +49 -6
- package/dist/protocol/messageTypes.d.ts.map +1 -1
- package/dist/runtime/design-mode-interactions.js +44 -21
- package/dist/runtime/interactions/communicationManager.d.cts +2 -26
- package/dist/runtime/interactions/communicationManager.d.ts +2 -26
- package/dist/runtime/interactions/communicationManager.d.ts.map +1 -1
- package/dist/runtime/interactions/componentMatcher.d.cts +6 -2
- package/dist/runtime/interactions/componentMatcher.d.ts +6 -2
- package/dist/runtime/interactions/componentMatcher.d.ts.map +1 -1
- package/dist/runtime/interactions/editableManager.d.cts +2 -1
- package/dist/runtime/interactions/editableManager.d.ts +2 -1
- package/dist/runtime/interactions/editableManager.d.ts.map +1 -1
- package/dist/runtime/interactions/utils/sourceUtils.d.cts +4 -1
- package/dist/runtime/interactions/utils/sourceUtils.d.ts +4 -1
- package/dist/runtime/interactions/utils/sourceUtils.d.ts.map +1 -1
- package/package.json +27 -3
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
var U5=Object.create;var Aa=Object.defineProperty;var z5=Object.getOwnPropertyDescriptor;var j5=Object.getOwnPropertyNames;var G5=Object.getPrototypeOf,K5=Object.prototype.hasOwnProperty;var W5=(e,t,o)=>t in e?Aa(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o;var At=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var X5=(e,t,o,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of j5(t))!K5.call(e,r)&&r!==o&&Aa(e,r,{get:()=>t[r],enumerable:!(a=z5(t,r))||a.enumerable});return e};var L2=(e,t,o)=>(o=e!=null?U5(G5(e)):{},X5(t||!e||!e.__esModule?Aa(o,"default",{value:e,enumerable:!0}):o,e));var W1=(e,t,o)=>W5(e,typeof t!="symbol"?t+"":t,o);var Hn=At((JL,Rn)=>{"use strict";var fs="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";Rn.exports=fs});var Tn=At((YL,Vn)=>{"use strict";var ps=Hn();function kn(){}function Pn(){}Pn.resetWarningCache=kn;Vn.exports=function(){function e(a,r,l,n,i,u){if(u!==ps){var d=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw d.name="Invariant Violation",d}}e.isRequired=e;function t(){return e}var o={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Pn,resetWarningCache:kn};return o.PropTypes=o,o}});var On=At((ow,_n)=>{_n.exports=Tn()();var ew,tw});var Bn=At(de=>{"use strict";var m9=Symbol.for("react.element"),h9=Symbol.for("react.portal"),Ca=Symbol.for("react.fragment"),ma=Symbol.for("react.strict_mode"),ha=Symbol.for("react.profiler"),ga=Symbol.for("react.provider"),va=Symbol.for("react.context"),Cs=Symbol.for("react.server_context"),xa=Symbol.for("react.forward_ref"),La=Symbol.for("react.suspense"),wa=Symbol.for("react.suspense_list"),Ia=Symbol.for("react.memo"),ba=Symbol.for("react.lazy"),ms=Symbol.for("react.offscreen"),Dn;Dn=Symbol.for("react.module.reference");function t1(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case m9:switch(e=e.type,e){case Ca:case ha:case ma:case La:case wa:return e;default:switch(e=e&&e.$$typeof,e){case Cs:case va:case xa:case ba:case Ia:case ga:return e;default:return t}}case h9:return t}}}de.ContextConsumer=va;de.ContextProvider=ga;de.Element=m9;de.ForwardRef=xa;de.Fragment=Ca;de.Lazy=ba;de.Memo=Ia;de.Portal=h9;de.Profiler=ha;de.StrictMode=ma;de.Suspense=La;de.SuspenseList=wa;de.isAsyncMode=function(){return!1};de.isConcurrentMode=function(){return!1};de.isContextConsumer=function(e){return t1(e)===va};de.isContextProvider=function(e){return t1(e)===ga};de.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===m9};de.isForwardRef=function(e){return t1(e)===xa};de.isFragment=function(e){return t1(e)===Ca};de.isLazy=function(e){return t1(e)===ba};de.isMemo=function(e){return t1(e)===Ia};de.isPortal=function(e){return t1(e)===h9};de.isProfiler=function(e){return t1(e)===ha};de.isStrictMode=function(e){return t1(e)===ma};de.isSuspense=function(e){return t1(e)===La};de.isSuspenseList=function(e){return t1(e)===wa};de.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Ca||e===ha||e===ma||e===La||e===wa||e===ms||typeof e=="object"&&e!==null&&(e.$$typeof===ba||e.$$typeof===Ia||e.$$typeof===ga||e.$$typeof===va||e.$$typeof===xa||e.$$typeof===Dn||e.getModuleId!==void 0)};de.typeOf=t1});var Zn=At((rw,En)=>{"use strict";En.exports=Bn()});import{forwardRef as fe,createElement as K}from"react";function pe(e,t){if(e==null)return{};var o={},a=Object.keys(e),r,l;for(l=0;l<a.length;l++)r=a[l],!(t.indexOf(r)>=0)&&(o[r]=e[r]);return o}var Q5=["color"],w2=fe(function(e,t){var o=e.color,a=o===void 0?"currentColor":o,r=pe(e,Q5);return K("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),K("path",{d:"M0 7.5C0 7.22386 0.223858 7 0.5 7H3C3.27614 7 3.5 7.22386 3.5 7.5C3.5 7.77614 3.27614 8 3 8H0.5C0.223858 8 0 7.77614 0 7.5ZM5.75 7.5C5.75 7.22386 5.97386 7 6.25 7H8.75C9.02614 7 9.25 7.22386 9.25 7.5C9.25 7.77614 9.02614 8 8.75 8H6.25C5.97386 8 5.75 7.77614 5.75 7.5ZM12 7C11.7239 7 11.5 7.22386 11.5 7.5C11.5 7.77614 11.7239 8 12 8H14.5C14.7761 8 15 7.77614 15 7.5C15 7.22386 14.7761 7 14.5 7H12Z",fill:a,fillRule:"evenodd",clipRule:"evenodd"}))}),J5=["color"],I2=fe(function(e,t){var o=e.color,a=o===void 0?"currentColor":o,r=pe(e,J5);return K("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),K("path",{d:"M1.5 6.625C1.01675 6.625 0.625 7.01675 0.625 7.5C0.625 7.98325 1.01675 8.375 1.5 8.375C1.98325 8.375 2.375 7.98325 2.375 7.5C2.375 7.01675 1.98325 6.625 1.5 6.625ZM5.5 6.625C5.01675 6.625 4.625 7.01675 4.625 7.5C4.625 7.98325 5.01675 8.375 5.5 8.375C5.98325 8.375 6.375 7.98325 6.375 7.5C6.375 7.01675 5.98325 6.625 5.5 6.625ZM9.5 6.625C9.01675 6.625 8.625 7.01675 8.625 7.5C8.625 7.98325 9.01675 8.375 9.5 8.375C9.98325 8.375 10.375 7.98325 10.375 7.5C10.375 7.01675 9.98325 6.625 9.5 6.625ZM12.625 7.5C12.625 7.01675 13.0168 6.625 13.5 6.625C13.9832 6.625 14.375 7.01675 14.375 7.5C14.375 7.98325 13.9832 8.375 13.5 8.375C13.0168 8.375 12.625 7.98325 12.625 7.5Z",fill:a,fillRule:"evenodd",clipRule:"evenodd"}))});var Y5=["color"],b2=fe(function(e,t){var o=e.color,a=o===void 0?"currentColor":o,r=pe(e,Y5);return K("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),K("path",{d:"M1.25 7.5C1.25 7.22386 1.47386 7 1.75 7H13.25C13.5261 7 13.75 7.22386 13.75 7.5C13.75 7.77614 13.5261 8 13.25 8H1.75C1.47386 8 1.25 7.77614 1.25 7.5Z",fill:a,fillRule:"evenodd",clipRule:"evenodd"}))});var ei=["color"],M2=fe(function(e,t){var o=e.color,a=o===void 0?"currentColor":o,r=pe(e,ei);return K("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),K("path",{d:"M6.1584 3.13508C6.35985 2.94621 6.67627 2.95642 6.86514 3.15788L10.6151 7.15788C10.7954 7.3502 10.7954 7.64949 10.6151 7.84182L6.86514 11.8418C6.67627 12.0433 6.35985 12.0535 6.1584 11.8646C5.95694 11.6757 5.94673 11.3593 6.1356 11.1579L9.565 7.49985L6.1356 3.84182C5.94673 3.64036 5.95694 3.32394 6.1584 3.13508Z",fill:a,fillRule:"evenodd",clipRule:"evenodd"}))});var ti=["color"],dt=fe(function(e,t){var o=e.color,a=o===void 0?"currentColor":o,r=pe(e,ti);return K("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),K("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:a,fillRule:"evenodd",clipRule:"evenodd"}))});var oi=["color"],y2=fe(function(e,t){var o=e.color,a=o===void 0?"currentColor":o,r=pe(e,oi);return K("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),K("path",{d:"M5.67494 3.50017C5.67494 3.25164 5.87641 3.05017 6.12494 3.05017H10.6249C10.8735 3.05017 11.0749 3.25164 11.0749 3.50017C11.0749 3.7487 10.8735 3.95017 10.6249 3.95017H9.00587L7.2309 11.05H8.87493C9.12345 11.05 9.32493 11.2515 9.32493 11.5C9.32493 11.7486 9.12345 11.95 8.87493 11.95H4.37493C4.1264 11.95 3.92493 11.7486 3.92493 11.5C3.92493 11.2515 4.1264 11.05 4.37493 11.05H5.99397L7.76894 3.95017H6.12494C5.87641 3.95017 5.67494 3.7487 5.67494 3.50017Z",fill:a,fillRule:"evenodd",clipRule:"evenodd"}))}),ai=["color"],S2=fe(function(e,t){var o=e.color,a=o===void 0?"currentColor":o,r=pe(e,ai);return K("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),K("path",{d:"M4.79993 3.50017C4.79993 3.25164 5.0014 3.05017 5.24993 3.05017H9.74993C9.99845 3.05017 10.1999 3.25164 10.1999 3.50017C10.1999 3.7487 9.99845 3.95017 9.74993 3.95017H8.09993V11.05H9.74994C9.99847 11.05 10.1999 11.2515 10.1999 11.5C10.1999 11.7486 9.99847 11.95 9.74994 11.95H5.24994C5.00141 11.95 4.79994 11.7486 4.79994 11.5C4.79994 11.2515 5.00141 11.05 5.24994 11.05H6.89993V3.95017H5.24993C5.0014 3.95017 4.79993 3.7487 4.79993 3.50017Z",fill:a,fillRule:"evenodd",clipRule:"evenodd"}))}),ri=["color"],R2=fe(function(e,t){var o=e.color,a=o===void 0?"currentColor":o,r=pe(e,ri);return K("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),K("path",{d:"M2.78233 2.21707C2.70732 2.14206 2.60557 2.09991 2.49949 2.09991C2.3934 2.09991 2.29166 2.14206 2.21664 2.21707L0.216645 4.21707C0.0604351 4.37328 0.0604351 4.62655 0.216645 4.78276C0.372855 4.93897 0.626121 4.93897 0.78233 4.78276L2.09949 3.4656L2.09949 11.5342L0.78233 10.2171C0.62612 10.0609 0.372854 10.0609 0.216645 10.2171C0.0604349 10.3733 0.0604349 10.6265 0.216645 10.7828L2.21664 12.7828C2.29166 12.8578 2.3934 12.8999 2.49949 12.8999C2.60557 12.8999 2.70731 12.8578 2.78233 12.7828L4.78233 10.7828C4.93854 10.6265 4.93854 10.3733 4.78233 10.2171C4.62612 10.0609 4.37285 10.0609 4.21664 10.2171L2.89949 11.5342L2.89949 3.4656L4.21664 4.78276C4.37285 4.93897 4.62612 4.93897 4.78233 4.78276C4.93854 4.62655 4.93854 4.37328 4.78233 4.21707L2.78233 2.21707ZM10.5 2.74997C10.7107 2.74997 10.8988 2.88211 10.9703 3.08036L13.9703 11.3999C14.064 11.6597 13.9293 11.9462 13.6696 12.0399C13.4098 12.1336 13.1233 11.9989 13.0296 11.7392L12.0477 9.016H8.95228L7.97033 11.7392C7.87666 11.9989 7.59013 12.1336 7.33036 12.0399C7.07059 11.9462 6.93595 11.6597 7.02962 11.3999L10.0296 3.08036C10.1011 2.88211 10.2892 2.74997 10.5 2.74997ZM10.5 4.72396L11.7412 8.166H9.25879L10.5 4.72396Z",fill:a,fillRule:"evenodd",clipRule:"evenodd"}))});var li=["color"],H2=fe(function(e,t){var o=e.color,a=o===void 0?"currentColor":o,r=pe(e,li);return K("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),K("path",{d:"M7.1813 1.68179C7.35704 1.50605 7.64196 1.50605 7.8177 1.68179L10.3177 4.18179C10.4934 4.35753 10.4934 4.64245 10.3177 4.81819C10.142 4.99392 9.85704 4.99392 9.6813 4.81819L7.9495 3.08638L7.9495 11.9136L9.6813 10.1818C9.85704 10.0061 10.142 10.0061 10.3177 10.1818C10.4934 10.3575 10.4934 10.6424 10.3177 10.8182L7.8177 13.3182C7.73331 13.4026 7.61885 13.45 7.4995 13.45C7.38015 13.45 7.26569 13.4026 7.1813 13.3182L4.6813 10.8182C4.50557 10.6424 4.50557 10.3575 4.6813 10.1818C4.85704 10.0061 5.14196 10.0061 5.3177 10.1818L7.0495 11.9136L7.0495 3.08638L5.3177 4.81819C5.14196 4.99392 4.85704 4.99392 4.6813 4.81819C4.50557 4.64245 4.50557 4.35753 4.6813 4.18179L7.1813 1.68179Z",fill:a,fillRule:"evenodd",clipRule:"evenodd"}))});var ni=["color"],k2=fe(function(e,t){var o=e.color,a=o===void 0?"currentColor":o,r=pe(e,ni);return K("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),K("path",{d:"M6.5 1C6.22386 1 6 1.22386 6 1.5C6 1.77614 6.22386 2 6.5 2C7.12671 2 7.45718 2.20028 7.65563 2.47812C7.8781 2.78957 8 3.28837 8 4V11C8 11.7116 7.8781 12.2104 7.65563 12.5219C7.45718 12.7997 7.12671 13 6.5 13C6.22386 13 6 13.2239 6 13.5C6 13.7761 6.22386 14 6.5 14C7.37329 14 8.04282 13.7003 8.46937 13.1031C8.47976 13.0886 8.48997 13.0739 8.5 13.0591C8.51003 13.0739 8.52024 13.0886 8.53063 13.1031C8.95718 13.7003 9.62671 14 10.5 14C10.7761 14 11 13.7761 11 13.5C11 13.2239 10.7761 13 10.5 13C9.87329 13 9.54282 12.7997 9.34437 12.5219C9.1219 12.2104 9 11.7116 9 11V4C9 3.28837 9.1219 2.78957 9.34437 2.47812C9.54282 2.20028 9.87329 2 10.5 2C10.7761 2 11 1.77614 11 1.5C11 1.22386 10.7761 1 10.5 1C9.62671 1 8.95718 1.29972 8.53063 1.89688C8.52024 1.91143 8.51003 1.92611 8.5 1.9409C8.48997 1.92611 8.47976 1.91143 8.46937 1.89688C8.04282 1.29972 7.37329 1 6.5 1ZM14 5H11V4H14C14.5523 4 15 4.44772 15 5V10C15 10.5523 14.5523 11 14 11H11V10H14V5ZM6 4V5H1L1 10H6V11H1C0.447715 11 0 10.5523 0 10V5C0 4.44772 0.447715 4 1 4H6Z",fill:a,fillRule:"evenodd",clipRule:"evenodd"}))});var ii=["color"],P2=fe(function(e,t){var o=e.color,a=o===void 0?"currentColor":o,r=pe(e,ii);return K("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),K("path",{d:"M3.68979 2.75C3.89667 2.74979 4.08232 2.87701 4.15679 3.07003L7.36662 11.39C7.46602 11.6477 7.33774 11.9371 7.0801 12.0365C6.82247 12.1359 6.53304 12.0076 6.43365 11.75L5.3825 9.02537H2.01133L0.966992 11.749C0.868128 12.0068 0.578964 12.1357 0.321126 12.0369C0.0632878 11.938 -0.0655864 11.6488 0.0332774 11.391L3.22344 3.07099C3.29751 2.87782 3.4829 2.75021 3.68979 2.75ZM3.69174 4.64284L5.05458 8.17537H2.33724L3.69174 4.64284ZM10.8989 5.20703C9.25818 5.20703 8.00915 6.68569 8.00915 8.60972C8.00915 10.6337 9.35818 12.0124 10.8989 12.0124C11.7214 12.0124 12.5744 11.6692 13.1543 11.0219V11.53C13.1543 11.7785 13.3557 11.98 13.6043 11.98C13.8528 11.98 14.0543 11.7785 14.0543 11.53V5.72C14.0543 5.47147 13.8528 5.27 13.6043 5.27C13.3557 5.27 13.1543 5.47147 13.1543 5.72V6.22317C12.6054 5.60095 11.7924 5.20703 10.8989 5.20703ZM13.1543 9.79823V7.30195C12.7639 6.58101 11.9414 6.05757 11.0868 6.05757C10.1088 6.05757 9.03503 6.96581 9.03503 8.60955C9.03503 10.1533 10.0088 11.1615 11.0868 11.1615C11.9701 11.1615 12.7719 10.4952 13.1543 9.79823Z",fill:a,fillRule:"evenodd",clipRule:"evenodd"}))}),ui=["color"],V2=fe(function(e,t){var o=e.color,a=o===void 0?"currentColor":o,r=pe(e,ui);return K("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),K("path",{d:"M3.69899 5.20703C2.05823 5.20703 0.809204 6.68569 0.809204 8.60972C0.809204 10.6337 2.15823 12.0124 3.69899 12.0124C4.52126 12.0124 5.37402 11.6693 5.9539 11.0223V11.53C5.9539 11.7785 6.15537 11.98 6.4039 11.98C6.65243 11.98 6.8539 11.7785 6.8539 11.53V5.72001C6.8539 5.47149 6.65243 5.27001 6.4039 5.27001C6.15537 5.27001 5.9539 5.47149 5.9539 5.72001V6.22269C5.40506 5.60075 4.59218 5.20703 3.69899 5.20703ZM5.9539 9.799V7.30117C5.56339 6.58064 4.74118 6.05757 3.8868 6.05757C2.9089 6.05757 1.83508 6.96581 1.83508 8.60955C1.83508 10.1533 2.80889 11.1615 3.8868 11.1615C4.76984 11.1615 5.57141 10.4957 5.9539 9.799ZM10.799 5.20703C9.15823 5.20703 7.9092 6.68569 7.9092 8.60972C7.9092 10.6337 9.25823 12.0124 10.799 12.0124C11.6215 12.0124 12.4744 11.6692 13.0543 11.0218V11.53C13.0543 11.7785 13.2558 11.98 13.5043 11.98C13.7529 11.98 13.9543 11.7785 13.9543 11.53V5.72C13.9543 5.47147 13.7529 5.27 13.5043 5.27C13.2558 5.27 13.0543 5.47147 13.0543 5.72V6.22318C12.5055 5.60095 11.6924 5.20703 10.799 5.20703ZM13.0543 9.79822V7.30196C12.664 6.58102 11.8415 6.05757 10.9868 6.05757C10.0089 6.05757 8.93508 6.96581 8.93508 8.60955C8.93508 10.1533 9.90889 11.1615 10.9868 11.1615C11.8702 11.1615 12.672 10.4952 13.0543 9.79822Z",fill:a,fillRule:"evenodd",clipRule:"evenodd"}))});var di=["color"],T2=fe(function(e,t){var o=e.color,a=o===void 0?"currentColor":o,r=pe(e,di);return K("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),K("path",{d:"M3.6255 2.75C3.83478 2.75 4.02192 2.88034 4.09448 3.07664L7.16985 11.3962C7.2656 11.6552 7.13324 11.9428 6.87423 12.0386C6.61522 12.1343 6.32763 12.002 6.23188 11.7429L5.22387 9.01603H2.02712L1.01911 11.7429C0.923362 12.002 0.635774 12.1343 0.376762 12.0386C0.117749 11.9428 -0.0146052 11.6552 0.0811401 11.3962L3.15651 3.07664C3.22908 2.88034 3.41621 2.75 3.6255 2.75ZM3.6255 4.69207L4.90966 8.16603H2.34133L3.6255 4.69207ZM11.3719 2.75C11.5811 2.75 11.7683 2.88034 11.8408 3.07664L14.9162 11.3962C15.012 11.6552 14.8796 11.9428 14.6206 12.0386C14.3616 12.1343 14.074 12.002 13.9782 11.7429L12.9702 9.01603H9.77348L8.76547 11.7429C8.66972 12.002 8.38213 12.1343 8.12312 12.0386C7.86411 11.9428 7.73175 11.6552 7.8275 11.3962L10.9029 3.07664C10.9754 2.88034 11.1626 2.75 11.3719 2.75ZM11.3719 4.69207L12.656 8.16603H10.0877L11.3719 4.69207Z",fill:a,fillRule:"evenodd",clipRule:"evenodd"}))}),si=["color"],_2=fe(function(e,t){var o=e.color,a=o===void 0?"currentColor":o,r=pe(e,si);return K("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),K("path",{d:"M4.55293 0.999969C4.75295 0.999969 4.93372 1.11917 5.0125 1.30301L8.01106 8.29982C8.11984 8.55363 8.00226 8.84757 7.74844 8.95635C7.49463 9.06512 7.20069 8.94754 7.09191 8.69373L6.11613 6.41685H2.98973L2.01395 8.69373C1.90517 8.94754 1.61123 9.06512 1.35742 8.95635C1.1036 8.84757 0.986023 8.55363 1.0948 8.29982L4.09336 1.30301C4.17214 1.11917 4.35291 0.999969 4.55293 0.999969ZM4.55293 2.76929L5.75186 5.56685H3.354L4.55293 2.76929ZM11.0562 9.00214C11.2617 9.00214 11.4463 8.87633 11.5215 8.68502L14.2733 1.68299C14.3743 1.42598 14.2478 1.13575 13.9908 1.03475C13.7338 0.933747 13.4436 1.06021 13.3426 1.31722L11.0562 7.13514L8.76973 1.31722C8.66873 1.06021 8.3785 0.933747 8.1215 1.03475C7.86449 1.13575 7.73802 1.42598 7.83902 1.68299L10.5908 8.68502C10.666 8.87633 10.8506 9.00214 11.0562 9.00214ZM14.9537 12.4999C14.9537 12.606 14.9115 12.7077 14.8365 12.7828L12.8365 14.7828C12.6803 14.939 12.4271 14.939 12.2708 14.7828C12.1146 14.6265 12.1146 14.3733 12.2708 14.2171L13.588 12.8999H1.51937L2.83653 14.2171C2.99274 14.3733 2.99274 14.6265 2.83653 14.7828C2.68032 14.939 2.42705 14.939 2.27084 14.7828L0.270843 12.7828C0.195828 12.7077 0.153687 12.606 0.153687 12.4999C0.153687 12.3938 0.195828 12.2921 0.270843 12.2171L2.27084 10.2171C2.42705 10.0609 2.68032 10.0609 2.83653 10.2171C2.99274 10.3733 2.99274 10.6265 2.83653 10.7828L1.51937 12.0999L13.588 12.0999L12.2708 10.7828C12.1146 10.6265 12.1146 10.3733 12.2708 10.2171C12.4271 10.0609 12.6803 10.0609 12.8365 10.2171L14.8365 12.2171C14.9115 12.2921 14.9537 12.3938 14.9537 12.4999Z",fill:a,fillRule:"evenodd",clipRule:"evenodd"}))});var ci=["color"],O2=fe(function(e,t){var o=e.color,a=o===void 0?"currentColor":o,r=pe(e,ci);return K("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),K("path",{d:"M3.78233 2.21713C3.70732 2.14212 3.60557 2.09998 3.49949 2.09998C3.3934 2.09998 3.29166 2.14212 3.21664 2.21713L1.21664 4.21713C1.06044 4.37334 1.06044 4.62661 1.21664 4.78282C1.37285 4.93903 1.62612 4.93903 1.78233 4.78282L3.09949 3.46566L3.09949 11.5343L1.78233 10.2171C1.62612 10.0609 1.37285 10.0609 1.21664 10.2171C1.06043 10.3733 1.06043 10.6266 1.21664 10.7828L3.21664 12.7828C3.29166 12.8578 3.3934 12.9 3.49949 12.9C3.60557 12.9 3.70731 12.8578 3.78233 12.7828L5.78233 10.7828C5.93854 10.6266 5.93854 10.3733 5.78233 10.2171C5.62612 10.0609 5.37285 10.0609 5.21664 10.2171L3.89949 11.5343L3.89949 3.46566L5.21664 4.78282C5.37285 4.93903 5.62612 4.93903 5.78233 4.78282C5.93854 4.62661 5.93854 4.37334 5.78233 4.21713L3.78233 2.21713ZM8.49998 3.99997C8.22383 3.99997 7.99998 4.22382 7.99998 4.49997C7.99998 4.77611 8.22383 4.99997 8.49998 4.99997H14.5C14.7761 4.99997 15 4.77611 15 4.49997C15 4.22382 14.7761 3.99997 14.5 3.99997H8.49998ZM7.99998 7.49997C7.99998 7.22382 8.22383 6.99997 8.49998 6.99997H14.5C14.7761 6.99997 15 7.22382 15 7.49997C15 7.77611 14.7761 7.99997 14.5 7.99997H8.49998C8.22383 7.99997 7.99998 7.77611 7.99998 7.49997ZM8.49998 9.99997C8.22383 9.99997 7.99998 10.2238 7.99998 10.5C7.99998 10.7761 8.22383 11 8.49998 11H14.5C14.7761 11 15 10.7761 15 10.5C15 10.2238 14.7761 9.99997 14.5 9.99997H8.49998Z",fill:a,fillRule:"evenodd",clipRule:"evenodd"}))}),fi=["color"],D2=fe(function(e,t){var o=e.color,a=o===void 0?"currentColor":o,r=pe(e,fi);return K("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),K("path",{d:"M4.62471 4.00001L4.56402 4.00001C4.04134 3.99993 3.70687 3.99988 3.4182 4.055C2.2379 4.28039 1.29846 5.17053 1.05815 6.33035C0.999538 6.61321 0.999604 6.93998 0.999703 7.43689L0.999711 7.50001L0.999703 7.56313C0.999604 8.06004 0.999538 8.38681 1.05815 8.66967C1.29846 9.8295 2.2379 10.7196 3.4182 10.945C3.70688 11.0001 4.04135 11.0001 4.56403 11L4.62471 11H5.49971C5.77585 11 5.99971 10.7762 5.99971 10.5C5.99971 10.2239 5.77585 10 5.49971 10H4.62471C4.02084 10 3.78907 9.99777 3.60577 9.96277C2.80262 9.8094 2.19157 9.21108 2.03735 8.46678C2.00233 8.29778 1.99971 8.08251 1.99971 7.50001C1.99971 6.91752 2.00233 6.70225 2.03735 6.53324C2.19157 5.78895 2.80262 5.19062 3.60577 5.03725C3.78907 5.00225 4.02084 5.00001 4.62471 5.00001H5.49971C5.77585 5.00001 5.99971 4.77615 5.99971 4.50001C5.99971 4.22387 5.77585 4.00001 5.49971 4.00001H4.62471ZM10.3747 5.00001C10.9786 5.00001 11.2104 5.00225 11.3937 5.03725C12.1968 5.19062 12.8079 5.78895 12.9621 6.53324C12.9971 6.70225 12.9997 6.91752 12.9997 7.50001C12.9997 8.08251 12.9971 8.29778 12.9621 8.46678C12.8079 9.21108 12.1968 9.8094 11.3937 9.96277C11.2104 9.99777 10.9786 10 10.3747 10H9.49971C9.22357 10 8.99971 10.2239 8.99971 10.5C8.99971 10.7762 9.22357 11 9.49971 11H10.3747L10.4354 11C10.9581 11.0001 11.2925 11.0001 11.5812 10.945C12.7615 10.7196 13.701 9.8295 13.9413 8.66967C13.9999 8.38681 13.9998 8.06005 13.9997 7.56314L13.9997 7.50001L13.9997 7.43688C13.9998 6.93998 13.9999 6.61321 13.9413 6.33035C13.701 5.17053 12.7615 4.28039 11.5812 4.055C11.2925 3.99988 10.9581 3.99993 10.4354 4.00001L10.3747 4.00001H9.49971C9.22357 4.00001 8.99971 4.22387 8.99971 4.50001C8.99971 4.77615 9.22357 5.00001 9.49971 5.00001H10.3747ZM5.00038 7C4.72424 7 4.50038 7.22386 4.50038 7.5C4.50038 7.77614 4.72424 8 5.00038 8H10.0004C10.2765 8 10.5004 7.77614 10.5004 7.5C10.5004 7.22386 10.2765 7 10.0004 7H5.00038Z",fill:a,fillRule:"evenodd",clipRule:"evenodd"}))});var pi=["color"],B2=fe(function(e,t){var o=e.color,a=o===void 0?"currentColor":o,r=pe(e,pi);return K("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),K("path",{d:"M4.56427 3.99988C4.58422 3.99989 4.60445 3.99989 4.62496 3.99989H5.49996C5.7761 3.99989 5.99996 4.22375 5.99996 4.49989C5.99996 4.77603 5.7761 4.99989 5.49996 4.99989H4.62496C4.02108 4.99989 3.78932 5.00213 3.60601 5.03713C2.80287 5.1905 2.19181 5.78883 2.03759 6.53312C2.00257 6.70212 1.99996 6.91739 1.99996 7.49989C1.99996 8.08239 2.00257 8.29766 2.03759 8.46666C2.19181 9.21095 2.80287 9.80928 3.60601 9.96265C3.78932 9.99765 4.02108 9.99989 4.62496 9.99989H5.49996C5.7761 9.99989 5.99996 10.2237 5.99996 10.4999C5.99996 10.776 5.7761 10.9999 5.49996 10.9999H4.62496C4.60445 10.9999 4.58422 10.9999 4.56427 10.9999C4.04159 11 3.70712 11 3.41845 10.9449C2.23814 10.7195 1.29871 9.82937 1.05839 8.66955C0.999782 8.38669 0.999848 8.05992 0.999947 7.56301C0.999951 7.54227 0.999955 7.52123 0.999955 7.49989C0.999955 7.47855 0.999951 7.45751 0.999947 7.43677C0.999848 6.93986 0.999782 6.61309 1.05839 6.33023C1.29871 5.17041 2.23814 4.28027 3.41845 4.05488C3.70712 3.99976 4.04159 3.99981 4.56427 3.99988ZM11.3939 5.03713C11.2106 5.00213 10.9788 4.99989 10.375 4.99989H9.49996C9.22381 4.99989 8.99996 4.77603 8.99996 4.49989C8.99996 4.22375 9.22381 3.99989 9.49996 3.99989H10.375C10.3955 3.99989 10.4157 3.99989 10.4356 3.99988C10.9583 3.99981 11.2928 3.99976 11.5815 4.05488C12.7618 4.28027 13.7012 5.17041 13.9415 6.33023C14.0001 6.61309 14.0001 6.93985 14 7.43676C14 7.4575 14 7.47854 14 7.49989C14 7.52124 14 7.54228 14 7.56302C14.0001 8.05992 14.0001 8.38669 13.9415 8.66955C13.7012 9.82937 12.7618 10.7195 11.5815 10.9449C11.2928 11 10.9583 11 10.4356 10.9999C10.4157 10.9999 10.3955 10.9999 10.375 10.9999H9.49996C9.22381 10.9999 8.99996 10.776 8.99996 10.4999C8.99996 10.2237 9.22381 9.99989 9.49996 9.99989H10.375C10.9788 9.99989 11.2106 9.99765 11.3939 9.96265C12.197 9.80928 12.8081 9.21095 12.9623 8.46666C12.9973 8.29766 13 8.08239 13 7.49989C13 6.91739 12.9973 6.70212 12.9623 6.53312C12.8081 5.78883 12.197 5.1905 11.3939 5.03713Z",fill:a,fillRule:"evenodd",clipRule:"evenodd"}))});var Ci=["color"],E2=fe(function(e,t){var o=e.color,a=o===void 0?"currentColor":o,r=pe(e,Ci);return K("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),K("path",{d:"M5.00003 3.25C5.00003 2.97386 4.77617 2.75 4.50003 2.75C4.22389 2.75 4.00003 2.97386 4.00003 3.25V7.10003H2.49998C2.27906 7.10003 2.09998 7.27912 2.09998 7.50003C2.09998 7.72094 2.27906 7.90003 2.49998 7.90003H4.00003V8.55C4.00003 10.483 5.56703 12.05 7.50003 12.05C9.43303 12.05 11 10.483 11 8.55V7.90003H12.5C12.7209 7.90003 12.9 7.72094 12.9 7.50003C12.9 7.27912 12.7209 7.10003 12.5 7.10003H11V3.25C11 2.97386 10.7762 2.75 10.5 2.75C10.2239 2.75 10 2.97386 10 3.25V7.10003H5.00003V3.25ZM5.00003 7.90003V8.55C5.00003 9.93071 6.11932 11.05 7.50003 11.05C8.88074 11.05 10 9.93071 10 8.55V7.90003H5.00003Z",fill:a,fillRule:"evenodd",clipRule:"evenodd"}))});var mi=["color"],Z2=fe(function(e,t){var o=e.color,a=o===void 0?"currentColor":o,r=pe(e,mi);return K("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),K("path",{d:"M2 4.5C2 4.22386 2.22386 4 2.5 4H12.5C12.7761 4 13 4.22386 13 4.5C13 4.77614 12.7761 5 12.5 5H2.5C2.22386 5 2 4.77614 2 4.5ZM4 7.5C4 7.22386 4.22386 7 4.5 7H10.5C10.7761 7 11 7.22386 11 7.5C11 7.77614 10.7761 8 10.5 8H4.5C4.22386 8 4 7.77614 4 7.5ZM3 10.5C3 10.2239 3.22386 10 3.5 10H11.5C11.7761 10 12 10.2239 12 10.5C12 10.7761 11.7761 11 11.5 11H3.5C3.22386 11 3 10.7761 3 10.5Z",fill:a,fillRule:"evenodd",clipRule:"evenodd"}))}),hi=["color"],A2=fe(function(e,t){var o=e.color,a=o===void 0?"currentColor":o,r=pe(e,hi);return K("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),K("path",{d:"M2.5 4C2.22386 4 2 4.22386 2 4.5C2 4.77614 2.22386 5 2.5 5H12.5C12.7761 5 13 4.77614 13 4.5C13 4.22386 12.7761 4 12.5 4H2.5ZM2 7.5C2 7.22386 2.22386 7 2.5 7H12.5C12.7761 7 13 7.22386 13 7.5C13 7.77614 12.7761 8 12.5 8H2.5C2.22386 8 2 7.77614 2 7.5ZM2 10.5C2 10.2239 2.22386 10 2.5 10H12.5C12.7761 10 13 10.2239 13 10.5C13 10.7761 12.7761 11 12.5 11H2.5C2.22386 11 2 10.7761 2 10.5Z",fill:a,fillRule:"evenodd",clipRule:"evenodd"}))}),gi=["color"],$2=fe(function(e,t){var o=e.color,a=o===void 0?"currentColor":o,r=pe(e,gi);return K("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),K("path",{d:"M2 4.5C2 4.22386 2.22386 4 2.5 4H12.5C12.7761 4 13 4.22386 13 4.5C13 4.77614 12.7761 5 12.5 5H2.5C2.22386 5 2 4.77614 2 4.5ZM2 7.5C2 7.22386 2.22386 7 2.5 7H7.5C7.77614 7 8 7.22386 8 7.5C8 7.77614 7.77614 8 7.5 8H2.5C2.22386 8 2 7.77614 2 7.5ZM2 10.5C2 10.2239 2.22386 10 2.5 10H10.5C10.7761 10 11 10.2239 11 10.5C11 10.7761 10.7761 11 10.5 11H2.5C2.22386 11 2 10.7761 2 10.5Z",fill:a,fillRule:"evenodd",clipRule:"evenodd"}))});var vi=["color"],F2=fe(function(e,t){var o=e.color,a=o===void 0?"currentColor":o,r=pe(e,vi);return K("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),K("path",{d:"M2 4.5C2 4.22386 2.22386 4 2.5 4H12.5C12.7761 4 13 4.22386 13 4.5C13 4.77614 12.7761 5 12.5 5H2.5C2.22386 5 2 4.77614 2 4.5ZM7 7.5C7 7.22386 7.22386 7 7.5 7H12.5C12.7761 7 13 7.22386 13 7.5C13 7.77614 12.7761 8 12.5 8H7.5C7.22386 8 7 7.77614 7 7.5ZM4 10.5C4 10.2239 4.22386 10 4.5 10H12.5C12.7761 10 13 10.2239 13 10.5C13 10.7761 12.7761 11 12.5 11H4.5C4.22386 11 4 10.7761 4 10.5Z",fill:a,fillRule:"evenodd",clipRule:"evenodd"}))});var xi=["color"],N2=fe(function(e,t){var o=e.color,a=o===void 0?"currentColor":o,r=pe(e,xi);return K("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),K("path",{d:"M4 6H11L7.5 10.5L4 6Z",fill:a}))});var Li=["color"],q2=fe(function(e,t){var o=e.color,a=o===void 0?"currentColor":o,r=pe(e,Li);return K("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),K("path",{d:"M4 9H11L7.5 4.5L4 9Z",fill:a}))});var wi=["color"],U2=fe(function(e,t){var o=e.color,a=o===void 0?"currentColor":o,r=pe(e,wi);return K("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),K("path",{d:"M5.00001 2.75C5.00001 2.47386 4.77615 2.25 4.50001 2.25C4.22387 2.25 4.00001 2.47386 4.00001 2.75V8.05C4.00001 9.983 5.56702 11.55 7.50001 11.55C9.43301 11.55 11 9.983 11 8.05V2.75C11 2.47386 10.7762 2.25 10.5 2.25C10.2239 2.25 10 2.47386 10 2.75V8.05C10 9.43071 8.88072 10.55 7.50001 10.55C6.1193 10.55 5.00001 9.43071 5.00001 8.05V2.75ZM3.49998 13.1001C3.27906 13.1001 3.09998 13.2791 3.09998 13.5001C3.09998 13.721 3.27906 13.9001 3.49998 13.9001H11.5C11.7209 13.9001 11.9 13.721 11.9 13.5001C11.9 13.2791 11.7209 13.1001 11.5 13.1001H3.49998Z",fill:a,fillRule:"evenodd",clipRule:"evenodd"}))});var Ii=["color"],z2=fe(function(e,t){var o=e.color,a=o===void 0?"currentColor":o,r=pe(e,Ii);return K("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),K("path",{d:"M4.81812 4.68161C4.99386 4.85734 4.99386 5.14227 4.81812 5.318L3.08632 7.0498H11.9135L10.1817 5.318C10.006 5.14227 10.006 4.85734 10.1817 4.68161C10.3575 4.50587 10.6424 4.50587 10.8181 4.68161L13.3181 7.18161C13.4939 7.35734 13.4939 7.64227 13.3181 7.818L10.8181 10.318C10.6424 10.4937 10.3575 10.4937 10.1817 10.318C10.006 10.1423 10.006 9.85734 10.1817 9.68161L11.9135 7.9498H3.08632L4.81812 9.68161C4.99386 9.85734 4.99386 10.1423 4.81812 10.318C4.64239 10.4937 4.35746 10.4937 4.18173 10.318L1.68173 7.818C1.50599 7.64227 1.50599 7.35734 1.68173 7.18161L4.18173 4.68161C4.35746 4.50587 4.64239 4.50587 4.81812 4.68161Z",fill:a,fillRule:"evenodd",clipRule:"evenodd"}))});import Re from"react";import{createRoot as U4}from"react-dom/client";import j2 from"react";import{jsx as $a,jsxs as G2}from"react/jsx-runtime";function st({title:e,defaultOpen:t=!0,children:o}){let[a,r]=j2.useState(t),l=j2.useCallback(n=>{r(n.currentTarget.open)},[]);return G2("details",{className:"property-panel-section",open:a,onToggle:l,children:[G2("summary",{className:"property-panel-section-trigger",children:[$a("span",{children:e}),$a(M2,{className:"property-panel-section-chevron",width:12,height:12,"aria-hidden":"true"})]}),$a("div",{className:"property-panel-section-content",children:o})]})}var K2=["H1","H2","H3","H4","H5","H6","P","SPAN","A","BUTTON","LABEL"];import l1 from"react";import*as I1 from"react";import{jsx as bi}from"react/jsx-runtime";function ct(e,t=[]){let o=[];function a(l,n){let i=I1.createContext(n),u=o.length;o=[...o,n];let d=c=>{let{scope:C,children:L,...g}=c,x=C?.[e]?.[u]||i,f=I1.useMemo(()=>g,Object.values(g));return bi(x.Provider,{value:f,children:L})};d.displayName=l+"Provider";function s(c,C){let L=C?.[e]?.[u]||i,g=I1.useContext(L);if(g)return g;if(n!==void 0)return n;throw new Error(`\`${c}\` must be used within \`${l}\``)}return[d,s]}let r=()=>{let l=o.map(n=>I1.createContext(n));return function(i){let u=i?.[e]||l;return I1.useMemo(()=>({[`__scope${e}`]:{...i,[e]:u}}),[i,u])}};return r.scopeName=e,[a,Mi(r,...t)]}function Mi(...e){let t=e[0];if(e.length===1)return t;let o=()=>{let a=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(l){let n=a.reduce((i,{useScope:u,scopeName:d})=>{let c=u(l)[`__scope${d}`];return{...i,...c}},{});return I1.useMemo(()=>({[`__scope${t.scopeName}`]:n}),[n])}};return o.scopeName=t.scopeName,o}import*as J2 from"react";import*as Pi from"react-dom";import*as Le from"react";import*as X2 from"react";function W2(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Fa(...e){return t=>{let o=!1,a=e.map(r=>{let l=W2(r,t);return!o&&typeof l=="function"&&(o=!0),l});if(o)return()=>{for(let r=0;r<a.length;r++){let l=a[r];typeof l=="function"?l():W2(e[r],null)}}}}function $t(...e){return X2.useCallback(Fa(...e),e)}import{Fragment as L8,jsx as Q2}from"react/jsx-runtime";function Ft(e){let t=yi(e),o=Le.forwardRef((a,r)=>{let{children:l,...n}=a,i=Le.Children.toArray(l),u=i.find(Ri);if(u){let d=u.props.children,s=i.map(c=>c===u?Le.Children.count(d)>1?Le.Children.only(null):Le.isValidElement(d)?d.props.children:null:c);return Q2(t,{...n,ref:r,children:Le.isValidElement(d)?Le.cloneElement(d,void 0,s):null})}return Q2(t,{...n,ref:r,children:l})});return o.displayName=`${e}.Slot`,o}function yi(e){let t=Le.forwardRef((o,a)=>{let{children:r,...l}=o;if(Le.isValidElement(r)){let n=ki(r),i=Hi(l,r.props);return r.type!==Le.Fragment&&(i.ref=a?Fa(a,n):n),Le.cloneElement(r,i)}return Le.Children.count(r)>1?Le.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Si=Symbol("radix.slottable");function Ri(e){return Le.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Si}function Hi(e,t){let o={...t};for(let a in t){let r=e[a],l=t[a];/^on[A-Z]/.test(a)?r&&l?o[a]=(...i)=>{let u=l(...i);return r(...i),u}:r&&(o[a]=r):a==="style"?o[a]={...r,...l}:a==="className"&&(o[a]=[r,l].filter(Boolean).join(" "))}return{...e,...o}}function ki(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning;return o?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}import{jsx as Vi}from"react/jsx-runtime";var Ti=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],V1=Ti.reduce((e,t)=>{let o=Ft(`Primitive.${t}`),a=J2.forwardRef((r,l)=>{let{asChild:n,...i}=r,u=n?o:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),Vi(u,{...i,ref:l})});return a.displayName=`Primitive.${t}`,{...e,[t]:a}},{});import*as Ie from"react";var y8=!!(typeof window<"u"&&window.document&&window.document.createElement);function b1(e,t,{checkForDefaultPrevented:o=!0}={}){return function(r){if(e?.(r),o===!1||!r.defaultPrevented)return t?.(r)}}import X1 from"react";import{jsx as Na}from"react/jsx-runtime";import B8 from"react";import{jsx as Z8}from"react/jsx-runtime";function Y2(e){let t=e+"CollectionProvider",[o,a]=ct(t),[r,l]=o(t,{collectionRef:{current:null},itemMap:new Map}),n=x=>{let{scope:f,children:m}=x,h=X1.useRef(null),T=X1.useRef(new Map).current;return Na(r,{scope:f,itemMap:T,collectionRef:h,children:m})};n.displayName=t;let i=e+"CollectionSlot",u=Ft(i),d=X1.forwardRef((x,f)=>{let{scope:m,children:h}=x,T=l(i,m),V=$t(f,T.collectionRef);return Na(u,{ref:V,children:h})});d.displayName=i;let s=e+"CollectionItemSlot",c="data-radix-collection-item",C=Ft(s),L=X1.forwardRef((x,f)=>{let{scope:m,children:h,...T}=x,V=X1.useRef(null),S=$t(f,V),E=l(s,m);return X1.useEffect(()=>(E.itemMap.set(V,{ref:V,...T}),()=>void E.itemMap.delete(V))),Na(C,{[c]:"",ref:S,children:h})});L.displayName=s;function g(x){let f=l(e+"CollectionConsumer",x);return X1.useCallback(()=>{let h=f.collectionRef.current;if(!h)return[];let T=Array.from(h.querySelectorAll(`[${c}]`));return Array.from(f.itemMap.values()).sort((E,z)=>T.indexOf(E.ref.current)-T.indexOf(z.ref.current))},[f.collectionRef,f.itemMap])}return[{Provider:n,Slot:d,ItemSlot:L},g,a]}import*as qa from"react";import*as el from"react";var wo=globalThis?.document?el.useLayoutEffect:()=>{};var _i=qa[" useId ".trim().toString()]||(()=>{}),Oi=0;function tl(e){let[t,o]=qa.useState(_i());return wo(()=>{e||o(a=>a??String(Oi++))},[e]),e||(t?`radix-${t}`:"")}import*as ft from"react";function ol(e){let t=ft.useRef(e);return ft.useEffect(()=>{t.current=e}),ft.useMemo(()=>(...o)=>t.current?.(...o),[])}import*as Xe from"react";import*as Io from"react";var Di=Xe[" useInsertionEffect ".trim().toString()]||wo;function Q1({prop:e,defaultProp:t,onChange:o=()=>{},caller:a}){let[r,l,n]=Bi({defaultProp:t,onChange:o}),i=e!==void 0,u=i?e:r;{let s=Xe.useRef(e!==void 0);Xe.useEffect(()=>{let c=s.current;c!==i&&console.warn(`${a} is changing from ${c?"controlled":"uncontrolled"} to ${i?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),s.current=i},[i,a])}let d=Xe.useCallback(s=>{if(i){let c=Ei(s)?s(e):s;c!==e&&n.current?.(c)}else l(s)},[i,e,l,n]);return[u,d]}function Bi({defaultProp:e,onChange:t}){let[o,a]=Xe.useState(e),r=Xe.useRef(o),l=Xe.useRef(t);return Di(()=>{l.current=t},[t]),Xe.useEffect(()=>{r.current!==o&&(l.current?.(o),r.current=o)},[o,r]),[o,a,l]}function Ei(e){return typeof e=="function"}var j8=Symbol("RADIX:SYNC_STATE");import*as bo from"react";import{jsx as W8}from"react/jsx-runtime";var Zi=bo.createContext(void 0);function Mo(e){let t=bo.useContext(Zi);return e||t||"ltr"}import{jsx as J1}from"react/jsx-runtime";var Ua="rovingFocusGroup.onEntryFocus",Ai={bubbles:!1,cancelable:!0},Nt="RovingFocusGroup",[za,al,$i]=Y2(Nt),[Fi,ja]=ct(Nt,[$i]),[Ni,qi]=Fi(Nt),rl=Ie.forwardRef((e,t)=>J1(za.Provider,{scope:e.__scopeRovingFocusGroup,children:J1(za.Slot,{scope:e.__scopeRovingFocusGroup,children:J1(Ui,{...e,ref:t})})}));rl.displayName=Nt;var Ui=Ie.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:o,orientation:a,loop:r=!1,dir:l,currentTabStopId:n,defaultCurrentTabStopId:i,onCurrentTabStopIdChange:u,onEntryFocus:d,preventScrollOnEntryFocus:s=!1,...c}=e,C=Ie.useRef(null),L=$t(t,C),g=Mo(l),[x,f]=Q1({prop:n,defaultProp:i??null,onChange:u,caller:Nt}),[m,h]=Ie.useState(!1),T=ol(d),V=al(o),S=Ie.useRef(!1),[E,z]=Ie.useState(0);return Ie.useEffect(()=>{let k=C.current;if(k)return k.addEventListener(Ua,T),()=>k.removeEventListener(Ua,T)},[T]),J1(Ni,{scope:o,orientation:a,dir:g,loop:r,currentTabStopId:x,onItemFocus:Ie.useCallback(k=>f(k),[f]),onItemShiftTab:Ie.useCallback(()=>h(!0),[]),onFocusableItemAdd:Ie.useCallback(()=>z(k=>k+1),[]),onFocusableItemRemove:Ie.useCallback(()=>z(k=>k-1),[]),children:J1(V1.div,{tabIndex:m||E===0?-1:0,"data-orientation":a,...c,ref:L,style:{outline:"none",...e.style},onMouseDown:b1(e.onMouseDown,()=>{S.current=!0}),onFocus:b1(e.onFocus,k=>{let B=!S.current;if(k.target===k.currentTarget&&B&&!m){let j=new CustomEvent(Ua,Ai);if(k.currentTarget.dispatchEvent(j),!j.defaultPrevented){let H=V().filter(I=>I.focusable),y=H.find(I=>I.active),w=H.find(I=>I.id===x),_=[y,w,...H].filter(Boolean).map(I=>I.ref.current);il(_,s)}}S.current=!1}),onBlur:b1(e.onBlur,()=>h(!1))})})}),ll="RovingFocusGroupItem",nl=Ie.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:o,focusable:a=!0,active:r=!1,tabStopId:l,children:n,...i}=e,u=tl(),d=l||u,s=qi(ll,o),c=s.currentTabStopId===d,C=al(o),{onFocusableItemAdd:L,onFocusableItemRemove:g,currentTabStopId:x}=s;return Ie.useEffect(()=>{if(a)return L(),()=>g()},[a,L,g]),J1(za.ItemSlot,{scope:o,id:d,focusable:a,active:r,children:J1(V1.span,{tabIndex:c?0:-1,"data-orientation":s.orientation,...i,ref:t,onMouseDown:b1(e.onMouseDown,f=>{a?s.onItemFocus(d):f.preventDefault()}),onFocus:b1(e.onFocus,()=>s.onItemFocus(d)),onKeyDown:b1(e.onKeyDown,f=>{if(f.key==="Tab"&&f.shiftKey){s.onItemShiftTab();return}if(f.target!==f.currentTarget)return;let m=Gi(f,s.orientation,s.dir);if(m!==void 0){if(f.metaKey||f.ctrlKey||f.altKey||f.shiftKey)return;f.preventDefault();let T=C().filter(V=>V.focusable).map(V=>V.ref.current);if(m==="last")T.reverse();else if(m==="prev"||m==="next"){m==="prev"&&T.reverse();let V=T.indexOf(f.currentTarget);T=s.loop?Ki(T,V+1):T.slice(V+1)}setTimeout(()=>il(T))}}),children:typeof n=="function"?n({isCurrentTabStop:c,hasTabStop:x!=null}):n})})});nl.displayName=ll;var zi={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function ji(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Gi(e,t,o){let a=ji(e.key,o);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(a))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(a)))return zi[a]}function il(e,t=!1){let o=document.activeElement;for(let a of e)if(a===o||(a.focus({preventScroll:t}),document.activeElement!==o))return}function Ki(e,t){return e.map((o,a)=>e[(t+a)%e.length])}var ul=rl,dl=nl;import*as sl from"react";import{jsx as Xi}from"react/jsx-runtime";var cl="Toggle",Ga=sl.forwardRef((e,t)=>{let{pressed:o,defaultPressed:a,onPressedChange:r,...l}=e,[n,i]=Q1({prop:o,onChange:r,defaultProp:a??!1,caller:cl});return Xi(V1.button,{type:"button","aria-pressed":n,"data-state":n?"on":"off","data-disabled":e.disabled?"":void 0,...l,ref:t,onClick:b1(e.onClick,()=>{e.disabled||i(!n)})})});Ga.displayName=cl;import{jsx as De}from"react/jsx-runtime";var T1="ToggleGroup",[pl,Lc]=ct(T1,[ja]),Cl=ja(),Ka=l1.forwardRef((e,t)=>{let{type:o,...a}=e;if(o==="single")return De(Qi,{...a,ref:t});if(o==="multiple")return De(Ji,{...a,ref:t});throw new Error(`Missing prop \`type\` expected on \`${T1}\``)});Ka.displayName=T1;var[ml,hl]=pl(T1),Qi=l1.forwardRef((e,t)=>{let{value:o,defaultValue:a,onValueChange:r=()=>{},...l}=e,[n,i]=Q1({prop:o,defaultProp:a??"",onChange:r,caller:T1});return De(ml,{scope:e.__scopeToggleGroup,type:"single",value:l1.useMemo(()=>n?[n]:[],[n]),onItemActivate:i,onItemDeactivate:l1.useCallback(()=>i(""),[i]),children:De(gl,{...l,ref:t})})}),Ji=l1.forwardRef((e,t)=>{let{value:o,defaultValue:a,onValueChange:r=()=>{},...l}=e,[n,i]=Q1({prop:o,defaultProp:a??[],onChange:r,caller:T1}),u=l1.useCallback(s=>i((c=[])=>[...c,s]),[i]),d=l1.useCallback(s=>i((c=[])=>c.filter(C=>C!==s)),[i]);return De(ml,{scope:e.__scopeToggleGroup,type:"multiple",value:n,onItemActivate:u,onItemDeactivate:d,children:De(gl,{...l,ref:t})})});Ka.displayName=T1;var[Yi,e3]=pl(T1),gl=l1.forwardRef((e,t)=>{let{__scopeToggleGroup:o,disabled:a=!1,rovingFocus:r=!0,orientation:l,dir:n,loop:i=!0,...u}=e,d=Cl(o),s=Mo(n),c={role:"group",dir:s,...u};return De(Yi,{scope:o,rovingFocus:r,disabled:a,children:r?De(ul,{asChild:!0,...d,orientation:l,dir:s,loop:i,children:De(V1.div,{...c,ref:t})}):De(V1.div,{...c,ref:t})})}),yo="ToggleGroupItem",vl=l1.forwardRef((e,t)=>{let o=hl(yo,e.__scopeToggleGroup),a=e3(yo,e.__scopeToggleGroup),r=Cl(e.__scopeToggleGroup),l=o.value.includes(e.value),n=a.disabled||e.disabled,i={...e,pressed:l,disabled:n},u=l1.useRef(null);return a.rovingFocus?De(dl,{asChild:!0,...r,focusable:!n,active:l,ref:u,children:De(fl,{...i,ref:t})}):De(fl,{...i,ref:t})});vl.displayName=yo;var fl=l1.forwardRef((e,t)=>{let{__scopeToggleGroup:o,value:a,...r}=e,l=hl(yo,o),n={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},i=l.type==="single"?n:void 0;return De(Ga,{...i,...r,ref:t,onPressedChange:u=>{u?l.onItemActivate(a):l.onItemDeactivate(a)}})}),xl=Ka,Ll=vl;import n3 from"react";import{jsx as r3,jsxs as l3}from"react/jsx-runtime";var o3={border:"none",margin:0,padding:0,minWidth:0},a3={color:"var(--vscode-foreground)",fontSize:"11px",display:"block",marginBottom:"5px",padding:0};function f1({label:e,id:t,className:o,children:a}){let r=`${t}-legend`;return l3("fieldset",{style:o3,className:o,"aria-labelledby":r,children:[r3("legend",{id:r,style:a3,children:e}),a]})}import{jsx as Wa}from"react/jsx-runtime";function p1({label:e,options:t,value:o,onChange:a,id:r="radio-group"}){let l=n3.useCallback(n=>{n&&typeof a=="function"&&a(n)},[a]);return Wa(f1,{label:e,id:r,className:"radioGroupEditor-fieldset",children:Wa(xl,{type:"single",value:o,onValueChange:l,className:"radioGroupEditor-root","aria-label":e,children:t.map(n=>Wa(Ll,{value:n.value,className:"radioGroupEditor-item","aria-label":n.label,title:n.label,children:n.icon??n.label},n.value))})})}import{jsx as qt}from"react/jsx-runtime";var Il=[{value:"none",label:"None",icon:qt(dt,{width:14,height:14})},{value:"solid",label:"Solid",icon:qt(b2,{width:14,height:14})},{value:"dashed",label:"Dashed",icon:qt(w2,{width:14,height:14})},{value:"dotted",label:"Dotted",icon:qt(I2,{width:14,height:14})}],wl=new Set(Il.map(e=>e.value));function i3(e){if(!e)return"none";if(wl.has(e))return e;let t=e.split(/\s+/)[0]??"";return wl.has(t)?t:"none"}function bl({label:e="Border Style",value:t,onChange:o,id:a="border-style"}){return qt(p1,{label:e,options:Il,value:i3(t),onChange:o,id:a})}import Pe from"react";var So=[{value:"px",label:"px"},{value:"em",label:"em"},{value:"rem",label:"rem"},{value:"%",label:"%"},{value:"pt",label:"pt"},{value:"vw",label:"vw"},{value:"vh",label:"vh"},{value:"vmin",label:"vmin"},{value:"vmax",label:"vmax"},{value:"ch",label:"ch"},{value:"ex",label:"ex"},{value:"cm",label:"cm"},{value:"mm",label:"mm"},{value:"in",label:"in"},{value:"pc",label:"pc"}],n1={px:{min:0,max:1e4,step:1,decimals:1},em:{min:0,max:100,step:.1,decimals:3},rem:{min:0,max:100,step:.1,decimals:3},"%":{min:0,max:1e3,step:1,decimals:2},pt:{min:0,max:1e4,step:1,decimals:1},vw:{min:0,max:100,step:.1,decimals:1},vh:{min:0,max:100,step:.1,decimals:1},vmin:{min:0,max:100,step:.1,decimals:1},vmax:{min:0,max:100,step:.1,decimals:1},ch:{min:0,max:100,step:.1,decimals:1},ex:{min:0,max:100,step:.1,decimals:1},cm:{min:0,max:100,step:.1,decimals:2},mm:{min:0,max:1e3,step:1,decimals:1},in:{min:0,max:50,step:.01,decimals:2},pc:{min:0,max:500,step:1,decimals:0}},u3=n1.px??{min:0,max:1e4,step:1,decimals:0};function Ut(e){let t=e.map(o=>o.value).join("|");return new RegExp(`^(-?\\d*\\.?\\d+)\\s*(${t})$`)}var d3=Ut(So);function Be(e,t="px",o=d3){if(e==null||e==="")return{numericValue:"",unit:t};let a=String(e).trim();if(a==="")return{numericValue:"",unit:t};let r=a.match(o);if(r&&r[1]!=null&&r[2]!=null)return{numericValue:parseFloat(r[1]),unit:r[2]};let l=parseFloat(a);return isNaN(l)?{numericValue:"",unit:t}:{numericValue:l,unit:t}}function Xa(e,t=n1){return t[e]||u3}function i1(e,t,o=n1){let a=Xa(t,o);return Math.min(a.max,Math.max(a.min,e))}function u1(e,t,o=n1){if(e===""||e==null||isNaN(e))return"";let a=Xa(t,o);return Number(Number(e).toFixed(a.decimals))}function Ro(e,t){return e===""||e==null||isNaN(e)?"":`${e}${t}`}function Ho(e,t,o,a,r=n1){let l=parseFloat(e)||0,n=Xa(a,r),i=o?10:1,u=(t==="ArrowUp"?1:-1)*n.step*i,d=i1(l+u,a,r);return String(u1(d,a,r))}function Qa({top:e,right:t,bottom:o,left:a}){return`${e||"0px"} ${t||"0px"} ${o||"0px"} ${a||"0px"}`}function pt(e){let t={top:"",right:"",bottom:"",left:""};if(!e||typeof e!="string")return t;let o=e.trim().split(/\s+/),[a="",r="",l="",n=""]=o;return o.length===0||o.length===1&&a===""?t:o.length===1?{top:a,right:a,bottom:a,left:a}:o.length===2?{top:a,right:r,bottom:a,left:r}:o.length===3?{top:a,right:r,bottom:l,left:r}:{top:a,right:r,bottom:l,left:n}}function Qe(...e){return So.filter(t=>e.includes(t.value))}var C1={width:{units:Qe("px","em","rem","vw","ch","%"),icon:z2},minWidth:{units:Qe("px","em","rem","vw","ch","%")},maxWidth:{units:Qe("px","em","rem","vw","ch","%")},height:{units:Qe("px","em","rem","vh","%"),icon:H2},minHeight:{units:Qe("px","em","rem","vh","%")},maxHeight:{units:Qe("px","em","rem","vh","%")},fontSize:{units:Qe("px","em","rem","%","pt"),constraints:{...n1,px:{min:0,max:1e3,step:1,decimals:0},"%":{min:0,max:1e3,step:1,decimals:0}},icon:R2},lineHeight:{units:[],defaultUnit:"",constraints:{"":{min:0,max:10,step:.1,decimals:2}},icon:O2},letterSpacing:{units:Qe("px","em","rem"),constraints:{...n1,px:{min:-100,max:1e3,step:.5,decimals:1},em:{min:-10,max:100,step:.01,decimals:3},rem:{min:-10,max:100,step:.01,decimals:3}},icon:_2}},zt={padding:{units:Qe("px","em","rem","%")},margin:{units:Qe("px","em","rem","%")},borderRadius:{units:Qe("px","em","rem","%"),sideLabels:["Top Left","Top Right","Bottom Right","Bottom Left"]},borderWidth:{units:Qe("px","em","rem")}};import{jsx as d1,jsxs as ko}from"react/jsx-runtime";var s3=[{value:"px",label:"px"},{value:"em",label:"em"},{value:"rem",label:"rem"},{value:"%",label:"%"}],Ct=["top","right","bottom","left"],c3=["Top","Right","Bottom","Left"],f3=d1(D2,{width:14,height:14}),p3=d1(B2,{width:14,height:14});function jt(e){return typeof e=="string"&&e.trim().toLowerCase()==="auto"}function Ja(e,t,o){let a={top:"",right:"",bottom:"",left:""};for(let r of Ct){let l=e[r];if(l==null||l==="")a[r]="";else if(jt(l))a[r]="auto";else{let n=Be(String(l),t,o);a[r]=n.numericValue!==""?String(n.numericValue):""}}return a}function Ya(e){let t=e.top||"";return t===(e.right||"")&&t===(e.bottom||"")&&t===(e.left||"")}function Ml(e,t,o){for(let a of Ct){let r=e[a];if(r!=null&&r!==""&&r!=="0"){let l=Be(String(r),"px",t);if(l.unit&&o.has(l.unit))return l.unit}}return"px"}function C3(e,t,o){if(jt(e))return"auto";let a=parseFloat(e);if(e===""||isNaN(a))return"";let r=i1(a,t,o);return`${u1(r,t,o)}${t}`}function yl(e){if(!e)return"";let t=pt(e);return!t.top&&!t.right&&!t.bottom&&!t.left?"":Qa(t)}function Gt({label:e,value:t="",onChange:o,id:a="",units:r=s3,constraints:l=n1,allowAuto:n=!1,sideLabels:i=c3,sideIcons:u,placeholder:d=""}){let s=Pe.useRef(o);s.current=o;let c=Pe.useMemo(()=>Ut(r),[r]),C=Pe.useMemo(()=>new Set(r.map(y=>y.value)),[r]),L=Pe.useMemo(()=>{if(!d)return{top:"0",right:"0",bottom:"0",left:"0"};let y=pt(d),w={top:"0",right:"0",bottom:"0",left:"0"};for(let M of Ct){let _=y[M];if(!_||_==="")w[M]="0";else{let I=Be(_,"px",c);w[M]=I.numericValue!==""?String(I.numericValue):"0"}}return w},[d,c]),g=Pe.useMemo(()=>pt(t),[]),[x,f]=Pe.useState(()=>Ml(g,c,C)),[m,h]=Pe.useState(()=>Ja(g,x,c)),[T,V]=Pe.useState(()=>Ya(m)),S=Pe.useRef(yl(t));Pe.useEffect(()=>{if(t===S.current)return;let y=yl(t);if(y===S.current)return;S.current=y;let w=pt(t),M=Ml(w,c,C);f(M);let _=Ja(w,M,c);h(_),V(Ya(_))},[t,c,C]);let E=Pe.useCallback((y,w)=>{let M={top:"",right:"",bottom:"",left:""},_=!0;for(let O of Ct)M[O]=C3(y[O],w,l),M[O]!==""&&(_=!1);let I=_?"":Qa(M);I!==S.current&&(S.current=I,typeof s.current=="function"&&s.current(I))},[l]),z=Pe.useCallback((y,w)=>{h(T?{top:w,right:w,bottom:w,left:w}:_=>({..._,[y]:w}));let M=Be(w,x,c);M.numericValue!==""&&M.unit&&C.has(M.unit)&&M.unit!==x&&f(M.unit)},[T,x,c,C]),k=Pe.useCallback((y,w)=>{let M=w.clipboardData.getData("text"),_=Be(M,x,c);if(_.numericValue!==""&&_.unit&&C.has(_.unit)){w.preventDefault();let I=i1(_.numericValue,_.unit,l),O=String(u1(I,_.unit,l)),b=T?{top:O,right:O,bottom:O,left:O}:{...m,[y]:O};h(b),_.unit!==x&&f(_.unit),E(b,_.unit)}},[T,m,x,c,C,l,E]),B=Pe.useCallback(y=>{let w=m[y];if(w===""){let b=T?{top:"",right:"",bottom:"",left:""}:{...m,[y]:""};h(b),E(b,x);return}if(n&&jt(w)){let b="auto",Q=T?{top:b,right:b,bottom:b,left:b}:{...m,[y]:b};h(Q),E(Q,x);return}let M=parseFloat(w);if(isNaN(M)){let b=pt(S.current);h(Ja(b,x,c));return}let _=i1(M,x,l),I=String(u1(_,x,l)),O=T?{top:I,right:I,bottom:I,left:I}:{...m,[y]:I};h(O),E(O,x)},[m,T,x,c,l,E,n]),j=Pe.useCallback((y,w)=>{if(w.key==="Enter"){w.currentTarget.blur();return}if(w.key==="ArrowUp"||w.key==="ArrowDown"){if(jt(m[y]))return;w.preventDefault();let M=Ho(m[y],w.key,w.shiftKey,x,l);if(M===null)return;let _=T?{top:M,right:M,bottom:M,left:M}:{...m,[y]:M};h(_),E(_,x)}},[m,T,x,l,E]),H=Pe.useCallback(y=>{let w=y.target.value;if(!C.has(w))return;f(w);let M={top:"",right:"",bottom:"",left:""};for(let _ of Ct){let I=m[_];if(jt(I))M[_]="auto";else if(I!==""){let O=parseFloat(I);if(isNaN(O))M[_]=I;else{let b=i1(O,w,l);M[_]=String(u1(b,w,l))}}else M[_]=""}h(M),E(M,w)},[m,C,l,E]);return ko(f1,{label:e,id:a,className:"boxDimensionEditor-fieldset",children:[d1("div",{className:"boxDimensionEditor-header",children:ko("div",{className:"boxDimensionEditor-controls",children:[d1("button",{type:"button",className:"boxDimensionEditor-link-btn"+(T?" boxDimensionEditor-link-btn--active":""),onClick:()=>{if(!T){let y=m.top;if(!Ya(m)){let w={top:y,right:y,bottom:y,left:y};h(w),E(w,x)}}V(y=>!y)},"aria-label":T?"Unlink sides":"Link all sides","aria-pressed":T,title:T?"Unlink sides":"Link all sides",children:T?f3:p3}),d1("select",{className:"boxDimensionEditor-unit",value:x,onChange:H,"aria-label":`${e} unit`,children:r.map(y=>d1("option",{value:y.value,children:y.label},y.value))})]})}),d1("div",{className:"boxDimensionEditor-grid",children:Ct.map((y,w)=>{let M=u&&u[w];return ko("div",{className:"boxDimensionEditor-cell",children:[d1("label",{htmlFor:`${a}-${y}`,className:"boxDimensionEditor-label",children:i[w]}),ko("div",{className:"boxDimensionEditor-input-row",children:[M&&d1("span",{className:"boxDimensionEditor-input-icon","aria-hidden":"true",children:d1(M,{size:12,width:12,height:12})}),d1("input",{id:`${a}-${y}`,type:"text",className:M?"boxDimensionEditor-input boxDimensionEditor-input--with-icon":"boxDimensionEditor-input",value:m[y],placeholder:L[y],onChange:_=>z(y,_.target.value),onPaste:_=>k(y,_),onBlur:()=>B(y),onKeyDown:_=>j(y,_),"aria-label":`${e} ${i[w]}`,autoComplete:"off",spellCheck:"false"})]})]},y)})})]})}import{forwardRef as h3,createElement as g3}from"react";var Po=(...e)=>e.filter((t,o,a)=>!!t&&t.trim()!==""&&a.indexOf(t)===o).join(" ").trim();var Sl=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();var Rl=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,o,a)=>a?a.toUpperCase():o.toLowerCase());var er=e=>{let t=Rl(e);return t.charAt(0).toUpperCase()+t.slice(1)};import{forwardRef as m3,createElement as Pl}from"react";var Hl={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var kl=e=>{for(let t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};var Vl=m3(({color:e="currentColor",size:t=24,strokeWidth:o=2,absoluteStrokeWidth:a,className:r="",children:l,iconNode:n,...i},u)=>Pl("svg",{ref:u,...Hl,width:t,height:t,stroke:e,strokeWidth:a?Number(o)*24/Number(t):o,className:Po("lucide",r),...!l&&!kl(i)&&{"aria-hidden":"true"},...i},[...n.map(([d,s])=>Pl(d,s)),...Array.isArray(l)?l:[l]]));var Tl=(e,t)=>{let o=h3(({className:a,...r},l)=>g3(Vl,{ref:l,iconNode:t,className:Po(`lucide-${Sl(er(e))}`,`lucide-${e}`,a),...r}));return o.displayName=er(e),o};var v3=[["path",{d:"m12 9-8.414 8.414A2 2 0 0 0 3 18.828v1.344a2 2 0 0 1-.586 1.414A2 2 0 0 1 3.828 21h1.344a2 2 0 0 0 1.414-.586L15 12",key:"1y3wsu"}],["path",{d:"m18 9 .4.4a1 1 0 1 1-3 3l-3.8-3.8a1 1 0 1 1 3-3l.4.4 3.4-3.4a1 1 0 1 1 3 3z",key:"110lr1"}],["path",{d:"m2 22 .414-.414",key:"jhxm08"}]],Kt=Tl("pipette",v3);import me from"react";import{useRef as Oo,useCallback as Se,useEffect as ur,useMemo as Do,useState as dr,createContext as x3,useContext as L3}from"react";var _l={exports:{}},Wt={};var Ol;function w3(){if(Ol)return Wt;Ol=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function o(a,r,l){var n=null;if(l!==void 0&&(n=""+l),r.key!==void 0&&(n=""+r.key),"key"in r){l={};for(var i in r)i!=="key"&&(l[i]=r[i])}else l=r;return r=l.ref,{$$typeof:e,type:a,key:n,ref:r!==void 0?r:null,props:l}}return Wt.Fragment=t,Wt.jsx=o,Wt.jsxs=o,Wt}var Dl;function I3(){return Dl||(Dl=1,_l.exports=w3()),_l.exports}var ge=I3();function Ul(e){var t,o,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(o=Ul(e[t]))&&(a&&(a+=" "),a+=o)}else for(o in e)e[o]&&(a&&(a+=" "),a+=o);return a}function b3(){for(var e,t,o=0,a="",r=arguments.length;o<r;o++)(e=arguments[o])&&(t=Ul(e))&&(a&&(a+=" "),a+=t);return a}var sr="-",M3=e=>{let t=S3(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:r=>{let l=r.split(sr);return l[0]===""&&l.length!==1&&l.shift(),zl(l,t)||y3(r)},getConflictingClassGroupIds:(r,l)=>{let n=o[r]||[];return l&&a[r]?[...n,...a[r]]:n}}},zl=(e,t)=>{if(e.length===0)return t.classGroupId;let o=e[0],a=t.nextPart.get(o),r=a?zl(e.slice(1),a):void 0;if(r)return r;if(t.validators.length===0)return;let l=e.join(sr);return t.validators.find(({validator:n})=>n(l))?.classGroupId},Bl=/^\[(.+)\]$/,y3=e=>{if(Bl.test(e)){let t=Bl.exec(e)[1],o=t?.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},S3=e=>{let{theme:t,classGroups:o}=e,a={nextPart:new Map,validators:[]};for(let r in o)ar(o[r],a,r,t);return a},ar=(e,t,o,a)=>{e.forEach(r=>{if(typeof r=="string"){let l=r===""?t:El(t,r);l.classGroupId=o;return}if(typeof r=="function"){if(R3(r)){ar(r(a),t,o,a);return}t.validators.push({validator:r,classGroupId:o});return}Object.entries(r).forEach(([l,n])=>{ar(n,El(t,l),o,a)})})},El=(e,t)=>{let o=e;return t.split(sr).forEach(a=>{o.nextPart.has(a)||o.nextPart.set(a,{nextPart:new Map,validators:[]}),o=o.nextPart.get(a)}),o},R3=e=>e.isThemeGetter,H3=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,a=new Map,r=(l,n)=>{o.set(l,n),t++,t>e&&(t=0,a=o,o=new Map)};return{get(l){let n=o.get(l);if(n!==void 0)return n;if((n=a.get(l))!==void 0)return r(l,n),n},set(l,n){o.has(l)?o.set(l,n):r(l,n)}}},rr="!",lr=":",k3=lr.length,P3=e=>{let{prefix:t,experimentalParseClassName:o}=e,a=r=>{let l=[],n=0,i=0,u=0,d;for(let g=0;g<r.length;g++){let x=r[g];if(n===0&&i===0){if(x===lr){l.push(r.slice(u,g)),u=g+k3;continue}if(x==="/"){d=g;continue}}x==="["?n++:x==="]"?n--:x==="("?i++:x===")"&&i--}let s=l.length===0?r:r.substring(u),c=V3(s),C=c!==s,L=d&&d>u?d-u:void 0;return{modifiers:l,hasImportantModifier:C,baseClassName:c,maybePostfixModifierPosition:L}};if(t){let r=t+lr,l=a;a=n=>n.startsWith(r)?l(n.substring(r.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:n,maybePostfixModifierPosition:void 0}}if(o){let r=a;a=l=>o({className:l,parseClassName:r})}return a},V3=e=>e.endsWith(rr)?e.substring(0,e.length-1):e.startsWith(rr)?e.substring(1):e,T3=e=>{let t=Object.fromEntries(e.orderSensitiveModifiers.map(o=>[o,!0]));return o=>{if(o.length<=1)return o;let a=[],r=[];return o.forEach(l=>{l[0]==="["||t[l]?(a.push(...r.sort(),l),r=[]):r.push(l)}),a.push(...r.sort()),a}},_3=e=>({cache:H3(e.cacheSize),parseClassName:P3(e),sortModifiers:T3(e),...M3(e)}),O3=/\s+/,D3=(e,t)=>{let{parseClassName:o,getClassGroupId:a,getConflictingClassGroupIds:r,sortModifiers:l}=t,n=[],i=e.trim().split(O3),u="";for(let d=i.length-1;d>=0;d-=1){let s=i[d],{isExternal:c,modifiers:C,hasImportantModifier:L,baseClassName:g,maybePostfixModifierPosition:x}=o(s);if(c){u=s+(u.length>0?" "+u:u);continue}let f=!!x,m=a(f?g.substring(0,x):g);if(!m){if(!f){u=s+(u.length>0?" "+u:u);continue}if(m=a(g),!m){u=s+(u.length>0?" "+u:u);continue}f=!1}let h=l(C).join(":"),T=L?h+rr:h,V=T+m;if(n.includes(V))continue;n.push(V);let S=r(m,f);for(let E=0;E<S.length;++E){let z=S[E];n.push(T+z)}u=s+(u.length>0?" "+u:u)}return u};function B3(){let e=0,t,o,a="";for(;e<arguments.length;)(t=arguments[e++])&&(o=jl(t))&&(a&&(a+=" "),a+=o);return a}var jl=e=>{if(typeof e=="string")return e;let t,o="";for(let a=0;a<e.length;a++)e[a]&&(t=jl(e[a]))&&(o&&(o+=" "),o+=t);return o};function E3(e,...t){let o,a,r,l=n;function n(u){let d=t.reduce((s,c)=>c(s),e());return o=_3(d),a=o.cache.get,r=o.cache.set,l=i,i(u)}function i(u){let d=a(u);if(d)return d;let s=D3(u,o);return r(u,s),s}return function(){return l(B3.apply(null,arguments))}}var we=e=>{let t=o=>o[e]||[];return t.isThemeGetter=!0,t},Gl=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Kl=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Z3=/^\d+\/\d+$/,A3=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,$3=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,F3=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,N3=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,q3=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,mt=e=>Z3.test(e),Y=e=>!!e&&!Number.isNaN(Number(e)),_1=e=>!!e&&Number.isInteger(Number(e)),tr=e=>e.endsWith("%")&&Y(e.slice(0,-1)),M1=e=>A3.test(e),U3=()=>!0,z3=e=>$3.test(e)&&!F3.test(e),Wl=()=>!1,j3=e=>N3.test(e),G3=e=>q3.test(e),K3=e=>!N(e)&&!q(e),W3=e=>ht(e,Jl,Wl),N=e=>Gl.test(e),Y1=e=>ht(e,Yl,z3),or=e=>ht(e,e7,Y),Zl=e=>ht(e,Xl,Wl),X3=e=>ht(e,Ql,G3),Vo=e=>ht(e,e0,j3),q=e=>Kl.test(e),Xt=e=>gt(e,Yl),Q3=e=>gt(e,t7),Al=e=>gt(e,Xl),J3=e=>gt(e,Jl),Y3=e=>gt(e,Ql),To=e=>gt(e,e0,!0),ht=(e,t,o)=>{let a=Gl.exec(e);return a?a[1]?t(a[1]):o(a[2]):!1},gt=(e,t,o=!1)=>{let a=Kl.exec(e);return a?a[1]?t(a[1]):o:!1},Xl=e=>e==="position"||e==="percentage",Ql=e=>e==="image"||e==="url",Jl=e=>e==="length"||e==="size"||e==="bg-size",Yl=e=>e==="length",e7=e=>e==="number",t7=e=>e==="family-name",e0=e=>e==="shadow",o7=()=>{let e=we("color"),t=we("font"),o=we("text"),a=we("font-weight"),r=we("tracking"),l=we("leading"),n=we("breakpoint"),i=we("container"),u=we("spacing"),d=we("radius"),s=we("shadow"),c=we("inset-shadow"),C=we("text-shadow"),L=we("drop-shadow"),g=we("blur"),x=we("perspective"),f=we("aspect"),m=we("ease"),h=we("animate"),T=()=>["auto","avoid","all","avoid-page","page","left","right","column"],V=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],S=()=>[...V(),q,N],E=()=>["auto","hidden","clip","visible","scroll"],z=()=>["auto","contain","none"],k=()=>[q,N,u],B=()=>[mt,"full","auto",...k()],j=()=>[_1,"none","subgrid",q,N],H=()=>["auto",{span:["full",_1,q,N]},_1,q,N],y=()=>[_1,"auto",q,N],w=()=>["auto","min","max","fr",q,N],M=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],_=()=>["start","end","center","stretch","center-safe","end-safe"],I=()=>["auto",...k()],O=()=>[mt,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...k()],b=()=>[e,q,N],Q=()=>[...V(),Al,Zl,{position:[q,N]}],U=()=>["no-repeat",{repeat:["","x","y","space","round"]}],p=()=>["auto","cover","contain",J3,W3,{size:[q,N]}],v=()=>[tr,Xt,Y1],F=()=>["","none","full",d,q,N],D=()=>["",Y,Xt,Y1],A=()=>["solid","dashed","dotted","double"],Z=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],$=()=>[Y,tr,Al,Zl],J=()=>["","none",g,q,N],le=()=>["none",Y,q,N],ae=()=>["none",Y,q,N],ne=()=>[Y,q,N],ie=()=>[mt,"full",...k()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[M1],breakpoint:[M1],color:[U3],container:[M1],"drop-shadow":[M1],ease:["in","out","in-out"],font:[K3],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[M1],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[M1],shadow:[M1],spacing:["px",Y],text:[M1],"text-shadow":[M1],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",mt,N,q,f]}],container:["container"],columns:[{columns:[Y,N,q,i]}],"break-after":[{"break-after":T()}],"break-before":[{"break-before":T()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:S()}],overflow:[{overflow:E()}],"overflow-x":[{"overflow-x":E()}],"overflow-y":[{"overflow-y":E()}],overscroll:[{overscroll:z()}],"overscroll-x":[{"overscroll-x":z()}],"overscroll-y":[{"overscroll-y":z()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:B()}],"inset-x":[{"inset-x":B()}],"inset-y":[{"inset-y":B()}],start:[{start:B()}],end:[{end:B()}],top:[{top:B()}],right:[{right:B()}],bottom:[{bottom:B()}],left:[{left:B()}],visibility:["visible","invisible","collapse"],z:[{z:[_1,"auto",q,N]}],basis:[{basis:[mt,"full","auto",i,...k()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Y,mt,"auto","initial","none",N]}],grow:[{grow:["",Y,q,N]}],shrink:[{shrink:["",Y,q,N]}],order:[{order:[_1,"first","last","none",q,N]}],"grid-cols":[{"grid-cols":j()}],"col-start-end":[{col:H()}],"col-start":[{"col-start":y()}],"col-end":[{"col-end":y()}],"grid-rows":[{"grid-rows":j()}],"row-start-end":[{row:H()}],"row-start":[{"row-start":y()}],"row-end":[{"row-end":y()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":w()}],"auto-rows":[{"auto-rows":w()}],gap:[{gap:k()}],"gap-x":[{"gap-x":k()}],"gap-y":[{"gap-y":k()}],"justify-content":[{justify:[...M(),"normal"]}],"justify-items":[{"justify-items":[..._(),"normal"]}],"justify-self":[{"justify-self":["auto",..._()]}],"align-content":[{content:["normal",...M()]}],"align-items":[{items:[..._(),{baseline:["","last"]}]}],"align-self":[{self:["auto",..._(),{baseline:["","last"]}]}],"place-content":[{"place-content":M()}],"place-items":[{"place-items":[..._(),"baseline"]}],"place-self":[{"place-self":["auto",..._()]}],p:[{p:k()}],px:[{px:k()}],py:[{py:k()}],ps:[{ps:k()}],pe:[{pe:k()}],pt:[{pt:k()}],pr:[{pr:k()}],pb:[{pb:k()}],pl:[{pl:k()}],m:[{m:I()}],mx:[{mx:I()}],my:[{my:I()}],ms:[{ms:I()}],me:[{me:I()}],mt:[{mt:I()}],mr:[{mr:I()}],mb:[{mb:I()}],ml:[{ml:I()}],"space-x":[{"space-x":k()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":k()}],"space-y-reverse":["space-y-reverse"],size:[{size:O()}],w:[{w:[i,"screen",...O()]}],"min-w":[{"min-w":[i,"screen","none",...O()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[n]},...O()]}],h:[{h:["screen","lh",...O()]}],"min-h":[{"min-h":["screen","lh","none",...O()]}],"max-h":[{"max-h":["screen","lh",...O()]}],"font-size":[{text:["base",o,Xt,Y1]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,q,or]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",tr,N]}],"font-family":[{font:[Q3,N,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[r,q,N]}],"line-clamp":[{"line-clamp":[Y,"none",q,or]}],leading:[{leading:[l,...k()]}],"list-image":[{"list-image":["none",q,N]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",q,N]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:b()}],"text-color":[{text:b()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...A(),"wavy"]}],"text-decoration-thickness":[{decoration:[Y,"from-font","auto",q,Y1]}],"text-decoration-color":[{decoration:b()}],"underline-offset":[{"underline-offset":[Y,"auto",q,N]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:k()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",q,N]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",q,N]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Q()}],"bg-repeat":[{bg:U()}],"bg-size":[{bg:p()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},_1,q,N],radial:["",q,N],conic:[_1,q,N]},Y3,X3]}],"bg-color":[{bg:b()}],"gradient-from-pos":[{from:v()}],"gradient-via-pos":[{via:v()}],"gradient-to-pos":[{to:v()}],"gradient-from":[{from:b()}],"gradient-via":[{via:b()}],"gradient-to":[{to:b()}],rounded:[{rounded:F()}],"rounded-s":[{"rounded-s":F()}],"rounded-e":[{"rounded-e":F()}],"rounded-t":[{"rounded-t":F()}],"rounded-r":[{"rounded-r":F()}],"rounded-b":[{"rounded-b":F()}],"rounded-l":[{"rounded-l":F()}],"rounded-ss":[{"rounded-ss":F()}],"rounded-se":[{"rounded-se":F()}],"rounded-ee":[{"rounded-ee":F()}],"rounded-es":[{"rounded-es":F()}],"rounded-tl":[{"rounded-tl":F()}],"rounded-tr":[{"rounded-tr":F()}],"rounded-br":[{"rounded-br":F()}],"rounded-bl":[{"rounded-bl":F()}],"border-w":[{border:D()}],"border-w-x":[{"border-x":D()}],"border-w-y":[{"border-y":D()}],"border-w-s":[{"border-s":D()}],"border-w-e":[{"border-e":D()}],"border-w-t":[{"border-t":D()}],"border-w-r":[{"border-r":D()}],"border-w-b":[{"border-b":D()}],"border-w-l":[{"border-l":D()}],"divide-x":[{"divide-x":D()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":D()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...A(),"hidden","none"]}],"divide-style":[{divide:[...A(),"hidden","none"]}],"border-color":[{border:b()}],"border-color-x":[{"border-x":b()}],"border-color-y":[{"border-y":b()}],"border-color-s":[{"border-s":b()}],"border-color-e":[{"border-e":b()}],"border-color-t":[{"border-t":b()}],"border-color-r":[{"border-r":b()}],"border-color-b":[{"border-b":b()}],"border-color-l":[{"border-l":b()}],"divide-color":[{divide:b()}],"outline-style":[{outline:[...A(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Y,q,N]}],"outline-w":[{outline:["",Y,Xt,Y1]}],"outline-color":[{outline:b()}],shadow:[{shadow:["","none",s,To,Vo]}],"shadow-color":[{shadow:b()}],"inset-shadow":[{"inset-shadow":["none",c,To,Vo]}],"inset-shadow-color":[{"inset-shadow":b()}],"ring-w":[{ring:D()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:b()}],"ring-offset-w":[{"ring-offset":[Y,Y1]}],"ring-offset-color":[{"ring-offset":b()}],"inset-ring-w":[{"inset-ring":D()}],"inset-ring-color":[{"inset-ring":b()}],"text-shadow":[{"text-shadow":["none",C,To,Vo]}],"text-shadow-color":[{"text-shadow":b()}],opacity:[{opacity:[Y,q,N]}],"mix-blend":[{"mix-blend":[...Z(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Z()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Y]}],"mask-image-linear-from-pos":[{"mask-linear-from":$()}],"mask-image-linear-to-pos":[{"mask-linear-to":$()}],"mask-image-linear-from-color":[{"mask-linear-from":b()}],"mask-image-linear-to-color":[{"mask-linear-to":b()}],"mask-image-t-from-pos":[{"mask-t-from":$()}],"mask-image-t-to-pos":[{"mask-t-to":$()}],"mask-image-t-from-color":[{"mask-t-from":b()}],"mask-image-t-to-color":[{"mask-t-to":b()}],"mask-image-r-from-pos":[{"mask-r-from":$()}],"mask-image-r-to-pos":[{"mask-r-to":$()}],"mask-image-r-from-color":[{"mask-r-from":b()}],"mask-image-r-to-color":[{"mask-r-to":b()}],"mask-image-b-from-pos":[{"mask-b-from":$()}],"mask-image-b-to-pos":[{"mask-b-to":$()}],"mask-image-b-from-color":[{"mask-b-from":b()}],"mask-image-b-to-color":[{"mask-b-to":b()}],"mask-image-l-from-pos":[{"mask-l-from":$()}],"mask-image-l-to-pos":[{"mask-l-to":$()}],"mask-image-l-from-color":[{"mask-l-from":b()}],"mask-image-l-to-color":[{"mask-l-to":b()}],"mask-image-x-from-pos":[{"mask-x-from":$()}],"mask-image-x-to-pos":[{"mask-x-to":$()}],"mask-image-x-from-color":[{"mask-x-from":b()}],"mask-image-x-to-color":[{"mask-x-to":b()}],"mask-image-y-from-pos":[{"mask-y-from":$()}],"mask-image-y-to-pos":[{"mask-y-to":$()}],"mask-image-y-from-color":[{"mask-y-from":b()}],"mask-image-y-to-color":[{"mask-y-to":b()}],"mask-image-radial":[{"mask-radial":[q,N]}],"mask-image-radial-from-pos":[{"mask-radial-from":$()}],"mask-image-radial-to-pos":[{"mask-radial-to":$()}],"mask-image-radial-from-color":[{"mask-radial-from":b()}],"mask-image-radial-to-color":[{"mask-radial-to":b()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":V()}],"mask-image-conic-pos":[{"mask-conic":[Y]}],"mask-image-conic-from-pos":[{"mask-conic-from":$()}],"mask-image-conic-to-pos":[{"mask-conic-to":$()}],"mask-image-conic-from-color":[{"mask-conic-from":b()}],"mask-image-conic-to-color":[{"mask-conic-to":b()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Q()}],"mask-repeat":[{mask:U()}],"mask-size":[{mask:p()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",q,N]}],filter:[{filter:["","none",q,N]}],blur:[{blur:J()}],brightness:[{brightness:[Y,q,N]}],contrast:[{contrast:[Y,q,N]}],"drop-shadow":[{"drop-shadow":["","none",L,To,Vo]}],"drop-shadow-color":[{"drop-shadow":b()}],grayscale:[{grayscale:["",Y,q,N]}],"hue-rotate":[{"hue-rotate":[Y,q,N]}],invert:[{invert:["",Y,q,N]}],saturate:[{saturate:[Y,q,N]}],sepia:[{sepia:["",Y,q,N]}],"backdrop-filter":[{"backdrop-filter":["","none",q,N]}],"backdrop-blur":[{"backdrop-blur":J()}],"backdrop-brightness":[{"backdrop-brightness":[Y,q,N]}],"backdrop-contrast":[{"backdrop-contrast":[Y,q,N]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Y,q,N]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Y,q,N]}],"backdrop-invert":[{"backdrop-invert":["",Y,q,N]}],"backdrop-opacity":[{"backdrop-opacity":[Y,q,N]}],"backdrop-saturate":[{"backdrop-saturate":[Y,q,N]}],"backdrop-sepia":[{"backdrop-sepia":["",Y,q,N]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":k()}],"border-spacing-x":[{"border-spacing-x":k()}],"border-spacing-y":[{"border-spacing-y":k()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",q,N]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Y,"initial",q,N]}],ease:[{ease:["linear","initial",m,q,N]}],delay:[{delay:[Y,q,N]}],animate:[{animate:["none",h,q,N]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[x,q,N]}],"perspective-origin":[{"perspective-origin":S()}],rotate:[{rotate:le()}],"rotate-x":[{"rotate-x":le()}],"rotate-y":[{"rotate-y":le()}],"rotate-z":[{"rotate-z":le()}],scale:[{scale:ae()}],"scale-x":[{"scale-x":ae()}],"scale-y":[{"scale-y":ae()}],"scale-z":[{"scale-z":ae()}],"scale-3d":["scale-3d"],skew:[{skew:ne()}],"skew-x":[{"skew-x":ne()}],"skew-y":[{"skew-y":ne()}],transform:[{transform:[q,N,"","none","gpu","cpu"]}],"transform-origin":[{origin:S()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ie()}],"translate-x":[{"translate-x":ie()}],"translate-y":[{"translate-y":ie()}],"translate-z":[{"translate-z":ie()}],"translate-none":["translate-none"],accent:[{accent:b()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:b()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",q,N]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":k()}],"scroll-mx":[{"scroll-mx":k()}],"scroll-my":[{"scroll-my":k()}],"scroll-ms":[{"scroll-ms":k()}],"scroll-me":[{"scroll-me":k()}],"scroll-mt":[{"scroll-mt":k()}],"scroll-mr":[{"scroll-mr":k()}],"scroll-mb":[{"scroll-mb":k()}],"scroll-ml":[{"scroll-ml":k()}],"scroll-p":[{"scroll-p":k()}],"scroll-px":[{"scroll-px":k()}],"scroll-py":[{"scroll-py":k()}],"scroll-ps":[{"scroll-ps":k()}],"scroll-pe":[{"scroll-pe":k()}],"scroll-pt":[{"scroll-pt":k()}],"scroll-pr":[{"scroll-pr":k()}],"scroll-pb":[{"scroll-pb":k()}],"scroll-pl":[{"scroll-pl":k()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",q,N]}],fill:[{fill:["none",...b()]}],"stroke-w":[{stroke:[Y,Xt,Y1,or]}],stroke:[{stroke:["none",...b()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},a7=E3(o7),r7=(e,t,o)=>Math.min(Math.max(e,t),o),_o=e=>Math.round(r7(e,0,255)),t0=e=>{let t=e.replace("#",""),o=parseInt(t,16);return{r:o>>16&255,g:o>>8&255,b:o&255}},l7=({r:e,g:t,b:o})=>{let a=r=>_o(r).toString(16).padStart(2,"0");return`#${a(e)}${a(t)}${a(o)}`},nr=({h:e,s:t,v:o})=>{e=e/360,t=t/100,o=o/100;let a=Math.floor(e*6),r=e*6-a,l=o*(1-t),n=o*(1-r*t),i=o*(1-(1-r)*t),u,d,s;switch(a%6){case 0:u=o,d=i,s=l;break;case 1:u=n,d=o,s=l;break;case 2:u=l,d=o,s=i;break;case 3:u=l,d=n,s=o;break;case 4:u=i,d=l,s=o;break;case 5:u=o,d=l,s=n;break;default:u=d=s=0}return{r:_o(u*255),g:_o(d*255),b:_o(s*255)}},ir=({r:e,g:t,b:o})=>{e/=255,t/=255,o/=255;let a=Math.max(e,t,o),r=Math.min(e,t,o),l=a-r,n=0,i=a===0?0:l/a,u=a;if(l!==0)switch(a){case e:n=((t-o)/l+(t<o?6:0))/6;break;case t:n=((o-e)/l+2)/6;break;case o:n=((e-t)/l+4)/6;break}return{h:Math.round(n*360),s:Math.round(i*100),v:Math.round(u*100)}},n7=e=>l7(nr(e)),i7=e=>ir(t0(e));var $l=({h:e,s:t,v:o})=>{let a=o*(2-t/100)/2,r=a!==0&&a!==100?(o-a)/Math.min(a,100-a)*100:0;return{h:e,s:Math.round(r),l:Math.round(a)}},Fl=({h:e,s:t,l:o})=>{let a=o+t*Math.min(o,100-o)/100,r=a===0?0:2*(1-o/a)*100;return{h:e,s:Math.round(r),v:Math.round(a)}},u7=e=>{let{r:t,g:o,b:a}=t0(e);return(.299*t+.587*o+.114*a)/255>.5?"#000000":"#ffffff"};var d7=(e,t="hex")=>{switch(t){case"hex":return e.getHex();case"rgb":let o=e.getRgb();return`rgb(${o.r}, ${o.g}, ${o.b})`;case"rgba":let a=e.getRgba();return`rgba(${a.r}, ${a.g}, ${a.b}, ${a.a})`;case"hsl":let r=e.getHsl();return`hsl(${r.h}, ${r.s}%, ${r.l}%)`;case"hsla":let l=e.getHsla();return`hsla(${l.h}, ${l.s}%, ${l.l}%, ${l.a})`;default:Bo()}};function s7(e){switch(e.type){case"hex":return{...i7(e.value),a:1};case"rgb":return{...ir(e),a:1};case"rgba":return{...ir(e),a:e.a};case"hsl":return{...Fl(e),a:1};case"hsla":return{...Fl(e),a:1};case"hsv":return{...e,a:1};case"hsva":return{...e};default:Bo()}}function O1(e,t){let o=s7(e);switch(t){case"hex":return n7(o);case"rgb":return nr(o);case"rgba":return{...nr(o),a:o.a};case"hsl":return $l(o);case"hsla":return{...$l(o),a:o.a};case"hsv":return{h:o.h,s:o.s,v:o.v};case"hsva":return o;default:Bo()}}var et=(...e)=>a7(b3(e)),y1=(e,t,o)=>Math.min(Math.max(e,t),o),D1=e=>Math.round(e);function Bo(e){throw new Error("You should never get here.")}var B1=class e{constructor(t){this.colorInput=t,typeof t=="string"?this.color={type:"hex",value:t}:"type"in t?this.color=t:"r"in t?"a"in t?this.color={type:"rgba",...t}:this.color={type:"rgb",...t}:"v"in t?"a"in t?this.color={type:"hsva",...t}:this.color={type:"hsv",...t}:"a"in t?this.color={type:"hsla",...t}:this.color={type:"hsl",...t}}getRgb(){return O1(this.color,"rgb")}getHsv(){return O1(this.color,"hsv")}getHsla(){return O1(this.color,"hsla")}getHsva(){return O1(this.color,"hsva")}getHex(){return O1(this.color,"hex")}getHsl(){return O1(this.color,"hsl")}getRgba(){return O1(this.color,"rgba")}format(t="hex"){return d7(this,t)}getContrastingColor(){return new e({type:"hex",value:u7(this.getHex())})}},Nl=(e,t)=>{let o=e.getBoundingClientRect(),a,r;if("touches"in t){let d=t.touches[0]||t.changedTouches[0];a=d.clientX,r=d.clientY}else a=t.clientX,r=t.clientY;let l=a-o.left,n=r-o.top,i=y1(l/o.width,0,1),u=y1(n/o.height,0,1);return{left:i,top:u}},cr=({onMove:e,onMoveEnd:t,onKey:o,children:a,className:r,...l})=>{let n=Oo(null),i=Oo(!1),u=Se(C=>{!i.current||!n.current||(C.preventDefault(),e(Nl(n.current,C)))},[e]),d=Se(()=>{i.current=!1,t(),document.removeEventListener("mousemove",u),document.removeEventListener("mouseup",d),document.removeEventListener("touchmove",u),document.removeEventListener("touchend",d)},[u,t]),s=Se(C=>{let L=n.current;L&&(C.preventDefault(),i.current=!0,e(Nl(L,C.nativeEvent)),document.addEventListener("mousemove",u),document.addEventListener("mouseup",d),document.addEventListener("touchmove",u,{passive:!1}),document.addEventListener("touchend",d))},[e,u,d]),c=Se(C=>{if(!o)return;let L=C.which||C.keyCode;L<37||L>40||(C.preventDefault(),o({left:L===39?.05:L===37?-.05:0,top:L===40?.05:L===38?-.05:0}))},[o]);return ur(()=>()=>{document.removeEventListener("mousemove",u),document.removeEventListener("mouseup",d),document.removeEventListener("touchmove",u),document.removeEventListener("touchend",d)},[u,d]),ge.jsx("div",{ref:n,className:et("rounded-inherit absolute inset-0 touch-none outline-none","focus:[&_.react-colorful-pointer]:scale-110",r),onTouchStart:s,onMouseDown:s,onKeyDown:c,tabIndex:0,role:"slider",...l,children:a})},fr=({className:e,top:t=.5,left:o,color:a})=>ge.jsx("div",{className:et("absolute z-[1] h-6 w-6 -translate-x-1/2 -translate-y-1/2 cursor-grab rounded-full border-2 border-white bg-white active:cursor-grabbing","react-colorful-pointer shadow-[0_2px_8px_rgba(0,0,0,0.15)] transition-transform",e),style:{top:`${t*100}%`,left:`${o*100}%`}}),c7=({hsva:e,onChange:t,className:o,onFinishedUpdates:a})=>{let r=Se(u=>{t({a:u.left},!1)},[t]),l=Se(u=>{t({a:y1(e.a+u.left,0,1)},!0)},[e.a,t]),n=Do(()=>new B1({type:"hsva",h:e.h,s:e.s,v:e.v,a:0}).format("hsla"),[e.h,e.s,e.v]),i=Do(()=>new B1({type:"hsva",h:e.h,s:e.s,v:e.v,a:1}).format("hsla"),[e.h,e.s,e.v]);return ge.jsx("div",{className:et("relative h-full w-full",o),children:ge.jsxs(cr,{onMove:r,onMoveEnd:a,onKey:l,"aria-label":"Alpha","aria-valuetext":`${D1(e.a*100)}%`,"aria-valuenow":D1(e.a*100),"aria-valuemin":0,"aria-valuemax":100,className:"h-full w-full rounded-lg",children:[ge.jsx("div",{className:"absolute inset-0 rounded-lg bg-white",style:{backgroundImage:`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><rect x="8" width="8" height="8"/><rect y="8" width="8" height="8"/></svg>')`}}),ge.jsx("div",{className:"absolute inset-0 rounded-lg",style:{backgroundImage:`linear-gradient(90deg, ${n}, ${i})`}}),ge.jsx(fr,{className:"z-[1]",top:.5,left:e.a,color:""})]})})},f7=({hue:e,onChange:t,className:o,onFinishedUpdates:a})=>{let r=Se(n=>{let i=D1(y1(360*n.left,0,360));t({h:i},!1)},[t]),l=Se(n=>{t({h:y1(e+n.left*360,0,360)},!0)},[e,t]);return ge.jsx("div",{className:et("relative h-full w-full",o),children:ge.jsxs(cr,{onMove:r,onMoveEnd:a,onKey:l,"aria-label":"Hue","aria-valuenow":D1(e),"aria-valuemax":360,"aria-valuemin":0,className:"h-full w-full rounded-lg",children:[ge.jsx("div",{className:"absolute inset-0 rounded-lg",style:{background:"linear-gradient(to right, #f00 0%, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%)"}}),ge.jsx(fr,{className:"z-[2]",top:.5,left:e/360,color:""})]})})},p7=({hsva:e,onChange:t,className:o,onFinishedUpdates:a})=>{let r=Se(i=>{let u=D1(y1(i.left*100,0,100)),d=D1(y1(100-i.top*100,0,100));t({s:u,v:d},!1)},[t]),l=Se(i=>{t({s:y1(e.s+i.left*100,0,100),v:y1(e.v-i.top*100,0,100)},!0)},[e.s,e.v,t]),n=`hsl(${e.h}, 100%, 50%)`;return ge.jsx("div",{className:et("relative h-full w-full rounded-xl",o),children:ge.jsxs(cr,{onMove:r,onMoveEnd:a,onKey:l,"aria-label":"Color","aria-valuetext":`Saturation ${D1(e.s)}%, Brightness ${D1(e.v)}%`,className:"rounded-inherit h-full w-full",children:[ge.jsx("div",{className:"rounded-inherit absolute inset-0 rounded-b-none",style:{backgroundColor:n,backgroundImage:"linear-gradient(to top, #000, rgba(0, 0, 0, 0)), linear-gradient(to right, #fff, rgba(255, 255, 255, 0))",boxShadow:"inset 0 0 0 1px rgba(0, 0, 0, 0.05)"}}),ge.jsx(fr,{className:"z-[3]",top:1-e.v/100,left:e.s/100,color:""})]})})},o0=x3(null),Eo=()=>{let e=L3(o0);if(!e)throw new Error("ColorPicker compound components must be used within a ColorPicker");return e};function ql(e){return"type"in e?new B1(e):e}var C7=({color:e,onChange:t,className:o,children:a,defaultColor:r,...l})=>{let[n,i]=dr(ql(e??r??{h:340,s:58,v:100,a:1,type:"hsva"})),u=Oo(!1),d=Oo(n);ur(()=>{!u.current&&e&&(d.current=ql(e),i(d.current))},[e]);let s=Se((g,x)=>{let f=new B1({type:"hsva",...d.current.getHsva(),...g});d.current=f,i(f),u.current=!x,t?.(f)},[t]),c=Se(()=>{u.current=!1},[]),C=Se(async()=>{if(!("EyeDropper"in window)){console.log("EyeDropper API not supported");return}try{let g=await new window.EyeDropper().open();g.sRGBHex&&s(O1({type:"hex",value:g.sRGBHex},"hsva"),!0)}catch(g){console.log("EyeDropper cancelled or failed:",g)}},[t]),L={hsva:n.getHsva(),updateHsva:s,handleEyeDropper:C,onFinishedUpdates:c};return ge.jsx(o0.Provider,{value:L,children:ge.jsx("div",{...l,className:et("relative flex h-[280px] w-[280px] cursor-default flex-col rounded-2xl bg-white shadow-lg select-none",o),children:a})})},m7=({className:e})=>{let{hsva:t,updateHsva:o,onFinishedUpdates:a}=Eo(),r=Se((l,n)=>{o(l,n)},[o]);return ge.jsx(p7,{hsva:t,onChange:r,className:e,onFinishedUpdates:a})},h7=({className:e})=>{let{hsva:t,updateHsva:o,onFinishedUpdates:a}=Eo(),r=Se((l,n)=>{o(l,n)},[o]);return ge.jsx(f7,{hue:t.h,onChange:r,className:e,onFinishedUpdates:a})},g7=({className:e})=>{let{hsva:t,updateHsva:o,onFinishedUpdates:a}=Eo(),r=Se((l,n)=>{o(l,n)},[o]);return ge.jsx(c7,{hsva:t,onChange:r,className:e,onFinishedUpdates:a})},v7=({className:e,title:t="Pick color from screen",children:o})=>{let{handleEyeDropper:a}=Eo(),[r,l]=dr(!1);return ur(()=>{typeof window<"u"&&"EyeDropper"in window&&l(!0)},[]),r?ge.jsx("button",{onClick:a,className:et("flex h-10 w-10 flex-shrink-0 cursor-pointer items-center justify-center rounded-lg transition-colors hover:bg-gray-100",e),title:t,children:o}):null},vt=Object.assign(C7,{Saturation:m7,Hue:h7,Alpha:g7,EyeDropper:v7});function x7(e,t){switch(t){case"hex":return{type:"hex",value:e.getHex()};case"rgb":return{type:"rgb",...e.getRgb()};case"rgba":return{type:"rgba",...e.getRgba()};case"hsl":return{type:"hsl",...e.getHsl()};case"hsla":return{type:"hsla",...e.getHsla()};case"hsv":return{type:"hsv",...e.getHsv()};case"hsva":return{type:"hsva",...e.getHsva()};default:Bo()}}var a0=(e={type:"hex",value:"#ff6b9d"})=>{let[t,o]=dr(()=>{let n=typeof e=="function"?e():e;return{color:new B1(n),type:n.type}}),a=Do(()=>x7(t.color,t.type),[t.color,t.type]),r=Do(()=>{let n=t.color.getHsva();return{hex:t.color.getHex(),rgb:t.color.getRgb(),rgba:t.color.getRgba(),hsl:t.color.getHsl(),hsla:t.color.getHsla(),hsv:t.color.getHsv(),hsva:n,alpha:n.a}},[t.color]),l=Se(n=>{try{let i="type"in n?new B1(n):n;o(u=>({color:i,type:u.type}))}catch(i){console.warn("Invalid color input:",n,i)}},[]);return[{colorInput:a,colorState:r},l]};import{createPortal as Yd}from"react-dom";import{useRef as s1,useMemo as L7,useEffect as w7,useState as c6,useCallback as f6}from"react";function r0(e,t,o,a){var r=this,l=s1(null),n=s1(0),i=s1(0),u=s1(null),d=s1([]),s=s1(),c=s1(),C=s1(e),L=s1(!0),g=s1(),x=s1();C.current=e;var f=typeof window<"u",m=!t&&t!==0&&f;if(typeof e!="function")throw new TypeError("Expected a function");t=+t||0;var h=!!(o=o||{}).leading,T=!("trailing"in o)||!!o.trailing,V=!!o.flushOnExit&&T,S="maxWait"in o,E="debounceOnServer"in o&&!!o.debounceOnServer,z=S?Math.max(+o.maxWait||0,t):null,k=L7(function(){var B=function(I){var O=d.current,b=s.current;return d.current=s.current=null,n.current=I,i.current=i.current||I,c.current=C.current.apply(b,O)},j=function(I,O){m&&cancelAnimationFrame(u.current),u.current=m?requestAnimationFrame(I):setTimeout(I,O)},H=function(I){if(!L.current)return!1;var O=I-l.current;return!l.current||O>=t||O<0||S&&I-n.current>=z},y=function(I){return u.current=null,T&&d.current?B(I):(d.current=s.current=null,c.current)},w=function I(){var O=Date.now();if(h&&i.current===n.current&&M(),H(O))return y(O);if(L.current){var b=t-(O-l.current),Q=S?Math.min(b,z-(O-n.current)):b;j(I,Q)}},M=function(){a&&a({})},_=function(){if(f||E){var I,O=Date.now(),b=H(O);if(d.current=[].slice.call(arguments),s.current=r,l.current=O,V&&!g.current&&(g.current=function(){var Q;((Q=globalThis.document)==null?void 0:Q.visibilityState)==="hidden"&&x.current.flush()},(I=globalThis.document)==null||I.addEventListener==null||I.addEventListener("visibilitychange",g.current)),b){if(!u.current&&L.current)return n.current=l.current,j(w,t),h?B(l.current):c.current;if(S)return j(w,t),B(l.current)}return u.current||j(w,t),c.current}};return _.cancel=function(){var I=u.current;I&&(m?cancelAnimationFrame(u.current):clearTimeout(u.current)),n.current=0,d.current=l.current=s.current=u.current=null,I&&a&&a({})},_.isPending=function(){return!!u.current},_.flush=function(){return u.current?y(Date.now()):c.current},_},[h,S,t,z,T,V,m,f,E,a]);return x.current=k,w7(function(){return L.current=!0,function(){var B;V&&x.current.flush(),g.current&&((B=globalThis.document)==null||B.removeEventListener==null||B.removeEventListener("visibilitychange",g.current),g.current=null),L.current=!1}},[V]),k}import Ve from"react";function Qt(e){let t=e?.parentElement;for(;t;){let{overflowY:o}=getComputedStyle(t);if(o==="auto"||o==="scroll")return t;t=t.parentElement}return null}var l0='button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])';function n0({computePosition:e,onClose:t,autoFocus:o=!0,trapFocus:a=!1}={}){let[r,l]=Ve.useState(!1),[n,i]=Ve.useState({top:0,left:0}),u=Ve.useRef(null),d=Ve.useRef(null),s=Ve.useRef(!1),c=Ve.useRef(e);c.current=e;let C=Ve.useRef(t);C.current=t;let L=Ve.useRef(a);L.current=a;let g=Ve.useCallback((...h)=>{!u.current||!c.current||i(c.current(u.current,...h))},[]),x=Ve.useCallback(()=>{g(),s.current=!0,l(!0)},[g]),f=Ve.useCallback(()=>{C.current&&C.current(),s.current=!1,l(!1),u.current?.focus()},[]),m=Ve.useCallback(()=>{s.current?f():x()},[x,f]);return Ve.useEffect(()=>{if(!r)return;let h=V=>{if(V.key==="Escape"&&(V.preventDefault(),f()),L.current&&V.key==="Tab"){let S=d.current;if(!S)return;let E=Array.from(S.querySelectorAll(l0)).filter(B=>!B.hasAttribute("disabled")),z=E[0],k=E.at(-1);if(!z||!k)return;V.shiftKey&&document.activeElement===z?(V.preventDefault(),k.focus()):!V.shiftKey&&document.activeElement===k&&(V.preventDefault(),z.focus())}},T=V=>{let S=d.current,E=u.current;if(!S||!E)return;let z=typeof V.composedPath=="function"?V.composedPath():[],k=z.includes(S)||V.target instanceof Node&&S.contains(V.target),B=z.includes(E)||V.target instanceof Node&&E.contains(V.target);!k&&!B&&f()};return document.addEventListener("keydown",h),document.addEventListener("mousedown",T),document.addEventListener("touchstart",T),()=>{document.removeEventListener("keydown",h),document.removeEventListener("mousedown",T),document.removeEventListener("touchstart",T)}},[r,f]),Ve.useEffect(()=>{if(!r||!o||!d.current)return;let h=d.current.querySelector(l0);h&&h.focus()},[r,o]),Ve.useEffect(()=>{if(!r||!u.current)return;let h=Qt(u.current);if(!h)return;let T=()=>f();return h.addEventListener("scroll",T,{passive:!0}),()=>h.removeEventListener("scroll",T)},[r,f]),{isOpen:r,open:x,close:f,toggle:m,triggerRef:u,popoverRef:d,position:n,reposition:g}}var I7=(e,t)=>{if(typeof e=="number"){if(t===3)return{mode:"rgb",r:(e>>8&15|e>>4&240)/255,g:(e>>4&15|e&240)/255,b:(e&15|e<<4&240)/255};if(t===4)return{mode:"rgb",r:(e>>12&15|e>>8&240)/255,g:(e>>8&15|e>>4&240)/255,b:(e>>4&15|e&240)/255,alpha:(e&15|e<<4&240)/255};if(t===6)return{mode:"rgb",r:(e>>16&255)/255,g:(e>>8&255)/255,b:(e&255)/255};if(t===8)return{mode:"rgb",r:(e>>24&255)/255,g:(e>>16&255)/255,b:(e>>8&255)/255,alpha:(e&255)/255}}},Zo=I7;var b7={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},i0=b7;var M7=e=>Zo(i0[e.toLowerCase()],6),u0=M7;var y7=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,S7=e=>{let t;return(t=e.match(y7))?Zo(parseInt(t[1],16),t[1].length):void 0},d0=S7;var Te="([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)",y6=`(?:${Te}|none)`,tt=`${Te}%`,S6=`(?:${Te}%|none)`,Jt=`(?:${Te}%|${Te})`,R7=`(?:${Te}%|${Te}|none)`,s0=`(?:${Te}(deg|grad|rad|turn)|${Te})`,R6=`(?:${Te}(deg|grad|rad|turn)|${Te}|none)`,E1="\\s*,\\s*";var H6=new RegExp("^"+R7+"$");var H7=new RegExp(`^rgba?\\(\\s*${Te}${E1}${Te}${E1}${Te}\\s*(?:,\\s*${Jt}\\s*)?\\)$`),k7=new RegExp(`^rgba?\\(\\s*${tt}${E1}${tt}${E1}${tt}\\s*(?:,\\s*${Jt}\\s*)?\\)$`),P7=e=>{let t={mode:"rgb"},o;if(o=e.match(H7))o[1]!==void 0&&(t.r=o[1]/255),o[2]!==void 0&&(t.g=o[2]/255),o[3]!==void 0&&(t.b=o[3]/255);else if(o=e.match(k7))o[1]!==void 0&&(t.r=o[1]/100),o[2]!==void 0&&(t.g=o[2]/100),o[3]!==void 0&&(t.b=o[3]/100);else return;return o[4]!==void 0?t.alpha=Math.max(0,Math.min(1,o[4]/100)):o[5]!==void 0&&(t.alpha=Math.max(0,Math.min(1,+o[5]))),t},c0=P7;var V7=(e,t)=>e===void 0?void 0:typeof e!="object"?ot(e):e.mode!==void 0?e:t?{...e,mode:t}:void 0,Ao=V7;var T7=(e="rgb")=>t=>(t=Ao(t,e))!==void 0?t.mode===e?t:c1[t.mode][e]?c1[t.mode][e](t):e==="rgb"?c1[t.mode].rgb(t):c1.rgb[e](c1[t.mode].rgb(t)):void 0,je=T7;var c1={},f0={},Yt=[],pr={},_7=e=>e,ue=e=>(c1[e.mode]={...c1[e.mode],...e.toMode},Object.keys(e.fromMode||{}).forEach(t=>{c1[t]||(c1[t]={}),c1[t][e.mode]=e.fromMode[t]}),e.ranges||(e.ranges={}),e.difference||(e.difference={}),e.channels.forEach(t=>{if(e.ranges[t]===void 0&&(e.ranges[t]=[0,1]),!e.interpolate[t])throw new Error(`Missing interpolator for: ${t}`);typeof e.interpolate[t]=="function"&&(e.interpolate[t]={use:e.interpolate[t]}),e.interpolate[t].fixup||(e.interpolate[t].fixup=_7)}),f0[e.mode]=e,(e.parse||[]).forEach(t=>{O7(t,e.mode)}),je(e.mode)),$o=e=>f0[e],O7=(e,t)=>{if(typeof e=="string"){if(!t)throw new Error("'mode' required when 'parser' is a string");pr[e]=t}else typeof e=="function"&&Yt.indexOf(e)<0&&Yt.push(e)};var Cr=/[^\x00-\x7F]|[a-zA-Z_]/,D7=/[^\x00-\x7F]|[-\w]/,R={Function:"function",Ident:"ident",Number:"number",Percentage:"percentage",ParenClose:")",None:"none",Hue:"hue",Alpha:"alpha"},W=0;function Fo(e){let t=e[W],o=e[W+1];return t==="-"||t==="+"?/\d/.test(o)||o==="."&&/\d/.test(e[W+2]):t==="."?/\d/.test(o):/\d/.test(t)}function mr(e){if(W>=e.length)return!1;let t=e[W];if(Cr.test(t))return!0;if(t==="-"){if(e.length-W<2)return!1;let o=e[W+1];return!!(o==="-"||Cr.test(o))}return!1}var B7={deg:1,rad:180/Math.PI,grad:9/10,turn:360};function eo(e){let t="";if((e[W]==="-"||e[W]==="+")&&(t+=e[W++]),t+=No(e),e[W]==="."&&/\d/.test(e[W+1])&&(t+=e[W++]+No(e)),(e[W]==="e"||e[W]==="E")&&((e[W+1]==="-"||e[W+1]==="+")&&/\d/.test(e[W+2])?t+=e[W++]+e[W++]+No(e):/\d/.test(e[W+1])&&(t+=e[W++]+No(e))),mr(e)){let o=qo(e);return o==="deg"||o==="rad"||o==="turn"||o==="grad"?{type:R.Hue,value:t*B7[o]}:void 0}return e[W]==="%"?(W++,{type:R.Percentage,value:+t}):{type:R.Number,value:+t}}function No(e){let t="";for(;/\d/.test(e[W]);)t+=e[W++];return t}function qo(e){let t="";for(;W<e.length&&D7.test(e[W]);)t+=e[W++];return t}function E7(e){let t=qo(e);return e[W]==="("?(W++,{type:R.Function,value:t}):t==="none"?{type:R.None,value:void 0}:{type:R.Ident,value:t}}function Z7(e=""){let t=e.trim(),o=[],a;for(W=0;W<t.length;){if(a=t[W++],a===`
|
|
2
|
+
`||a===" "||a===" "){for(;W<t.length&&(t[W]===`
|
|
3
|
+
`||t[W]===" "||t[W]===" ");)W++;continue}if(a===",")return;if(a===")"){o.push({type:R.ParenClose});continue}if(a==="+"){if(W--,Fo(t)){o.push(eo(t));continue}return}if(a==="-"){if(W--,Fo(t)){o.push(eo(t));continue}if(mr(t)){o.push({type:R.Ident,value:qo(t)});continue}return}if(a==="."){if(W--,Fo(t)){o.push(eo(t));continue}return}if(a==="/"){for(;W<t.length&&(t[W]===`
|
|
4
|
+
`||t[W]===" "||t[W]===" ");)W++;let r;if(Fo(t)&&(r=eo(t),r.type!==R.Hue)){o.push({type:R.Alpha,value:r});continue}if(mr(t)&&qo(t)==="none"){o.push({type:R.Alpha,value:{type:R.None,value:void 0}});continue}return}if(/\d/.test(a)){W--,o.push(eo(t));continue}if(Cr.test(a)){W--,o.push(E7(t));continue}return}return o}function A7(e){e._i=0;let t=e[e._i++];if(!t||t.type!==R.Function||t.value!=="color"||(t=e[e._i++],t.type!==R.Ident))return;let o=pr[t.value];if(!o)return;let a={mode:o},r=p0(e,!1);if(!r)return;let l=$o(o).channels;for(let n=0,i,u;n<l.length;n++)i=r[n],u=l[n],i.type!==R.None&&(a[u]=i.type===R.Number?i.value:i.value/100,u==="alpha"&&(a[u]=Math.max(0,Math.min(1,a[u]))));return a}function p0(e,t){let o=[],a;for(;e._i<e.length;){if(a=e[e._i++],a.type===R.None||a.type===R.Number||a.type===R.Alpha||a.type===R.Percentage||t&&a.type===R.Hue){o.push(a);continue}if(a.type===R.ParenClose){if(e._i<e.length)return;continue}return}if(!(o.length<3||o.length>4)){if(o.length===4){if(o[3].type!==R.Alpha)return;o[3]=o[3].value}return o.length===3&&o.push({type:R.None,value:void 0}),o.every(r=>r.type!==R.Alpha)?o:void 0}}function $7(e,t){e._i=0;let o=e[e._i++];if(!o||o.type!==R.Function)return;let a=p0(e,t);if(a)return a.unshift(o.value),a}var F7=e=>{if(typeof e!="string")return;let t=Z7(e),o=t?$7(t,!0):void 0,a,r=0,l=Yt.length;for(;r<l;)if((a=Yt[r++](e,o))!==void 0)return a;return t?A7(t):void 0},ot=F7;function N7(e,t){if(!t||t[0]!=="rgb"&&t[0]!=="rgba")return;let o={mode:"rgb"},[,a,r,l,n]=t;if(!(a.type===R.Hue||r.type===R.Hue||l.type===R.Hue))return a.type!==R.None&&(o.r=a.type===R.Number?a.value/255:a.value/100),r.type!==R.None&&(o.g=r.type===R.Number?r.value/255:r.value/100),l.type!==R.None&&(o.b=l.type===R.Number?l.value/255:l.value/100),n.type!==R.None&&(o.alpha=Math.min(1,Math.max(0,n.type===R.Number?n.value:n.value/100))),o}var C0=N7;var q7=e=>e==="transparent"?{mode:"rgb",r:0,g:0,b:0,alpha:0}:void 0,m0=q7;var h0=(e,t,o)=>e+o*(t-e);var U7=e=>{let t=[];for(let o=0;o<e.length-1;o++){let a=e[o],r=e[o+1];a===void 0&&r===void 0?t.push(void 0):a!==void 0&&r!==void 0?t.push([a,r]):t.push(a!==void 0?[a,a]:[r,r])}return t},g0=e=>t=>{let o=U7(t);return a=>{let r=a*o.length,l=a>=1?o.length-1:Math.max(Math.floor(r),0),n=o[l];return n===void 0?void 0:e(n[0],n[1],r-l)}};var P=g0(h0);var te=e=>{let t=!1,o=e.map(a=>a!==void 0?(t=!0,a):1);return t?o:e};var z7={mode:"rgb",channels:["r","g","b","alpha"],parse:[C0,d0,c0,u0,m0,"srgb"],serialize:"srgb",interpolate:{r:P,g:P,b:P,alpha:{use:P,fixup:te}},gamut:!0,white:{r:1,g:1,b:1},black:{r:0,g:0,b:0}},Je=z7;var hr=(e=0)=>Math.pow(Math.abs(e),2.19921875)*Math.sign(e),j7=e=>{let t=hr(e.r),o=hr(e.g),a=hr(e.b),r={mode:"xyz65",x:.5766690429101305*t+.1855582379065463*o+.1882286462349947*a,y:.297344975250536*t+.6273635662554661*o+.0752914584939979*a,z:.0270313613864123*t+.0706888525358272*o+.9913375368376386*a};return e.alpha!==void 0&&(r.alpha=e.alpha),r},gr=j7;var vr=e=>Math.pow(Math.abs(e),.4547069271758437)*Math.sign(e),G7=({x:e,y:t,z:o,alpha:a})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r={mode:"a98",r:vr(e*2.0415879038107465-t*.5650069742788597-.3447313507783297*o),g:vr(e*-.9692436362808798+t*1.8759675015077206+.0415550574071756*o),b:vr(e*.0134442806320312-t*.1183623922310184+1.0151749943912058*o)};return a!==void 0&&(r.alpha=a),r},xr=G7;var Lr=(e=0)=>{let t=Math.abs(e);return t<=.04045?e/12.92:(Math.sign(e)||1)*Math.pow((t+.055)/1.055,2.4)},K7=({r:e,g:t,b:o,alpha:a})=>{let r={mode:"lrgb",r:Lr(e),g:Lr(t),b:Lr(o)};return a!==void 0&&(r.alpha=a),r},Ye=K7;var W7=e=>{let{r:t,g:o,b:a,alpha:r}=Ye(e),l={mode:"xyz65",x:.4123907992659593*t+.357584339383878*o+.1804807884018343*a,y:.2126390058715102*t+.715168678767756*o+.0721923153607337*a,z:.0193308187155918*t+.119194779794626*o+.9505321522496607*a};return r!==void 0&&(l.alpha=r),l},Ee=W7;var wr=(e=0)=>{let t=Math.abs(e);return t>.0031308?(Math.sign(e)||1)*(1.055*Math.pow(t,.4166666666666667)-.055):e*12.92},X7=({r:e,g:t,b:o,alpha:a},r="rgb")=>{let l={mode:r,r:wr(e),g:wr(t),b:wr(o)};return a!==void 0&&(l.alpha=a),l},e1=X7;var Q7=({x:e,y:t,z:o,alpha:a})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r=e1({r:e*3.2409699419045226-t*1.537383177570094-.4986107602930034*o,g:e*-.9692436362808796+t*1.8759675015077204+.0415550574071756*o,b:e*.0556300796969936-t*.2039769588889765+1.0569715142428784*o});return a!==void 0&&(r.alpha=a),r},Ze=Q7;var J7={...Je,mode:"a98",parse:["a98-rgb"],serialize:"a98-rgb",fromMode:{rgb:e=>xr(Ee(e)),xyz65:xr},toMode:{rgb:e=>Ze(gr(e)),xyz65:gr}},v0=J7;var Y7=e=>(e=e%360)<0?e+360:e,ce=Y7;var eu=(e,t)=>e.map((o,a,r)=>{if(o===void 0)return o;let l=ce(o);return a===0||e[a-1]===void 0?l:t(l-ce(r[a-1]))}).reduce((o,a)=>!o.length||a===void 0||o[o.length-1]===void 0?(o.push(a),o):(o.push(a+o[o.length-1]),o),[]),be=e=>eu(e,t=>Math.abs(t)<=180?t:t-360*Math.sign(t));var xe=[-.14861,1.78277,-.29227,-.90649,1.97294,0],x0=Math.PI/180,L0=180/Math.PI;var w0=xe[3]*xe[4],I0=xe[1]*xe[4],b0=xe[1]*xe[2]-xe[0]*xe[3],tu=({r:e,g:t,b:o,alpha:a})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r=(b0*o+e*w0-t*I0)/(b0+w0-I0),l=o-r,n=(xe[4]*(t-r)-xe[2]*l)/xe[3],i={mode:"cubehelix",l:r,s:r===0||r===1?void 0:Math.sqrt(l*l+n*n)/(xe[4]*r*(1-r))};return i.s&&(i.h=Math.atan2(n,l)*L0-120),a!==void 0&&(i.alpha=a),i},M0=tu;var ou=({h:e,s:t,l:o,alpha:a})=>{let r={mode:"rgb"};e=(e===void 0?0:e+120)*x0,o===void 0&&(o=0);let l=t===void 0?0:t*o*(1-o),n=Math.cos(e),i=Math.sin(e);return r.r=o+l*(xe[0]*n+xe[1]*i),r.g=o+l*(xe[2]*n+xe[3]*i),r.b=o+l*(xe[4]*n+xe[5]*i),a!==void 0&&(r.alpha=a),r},y0=ou;var Z1=(e,t)=>{if(e.h===void 0||t.h===void 0||!e.s||!t.s)return 0;let o=ce(e.h),a=ce(t.h),r=Math.sin((a-o+360)/2*Math.PI/180);return 2*Math.sqrt(e.s*t.s)*r},S0=(e,t)=>{if(e.h===void 0||t.h===void 0)return 0;let o=ce(e.h),a=ce(t.h);return Math.abs(a-o)>180?o-(a-360*Math.sign(a-o)):a-o},A1=(e,t)=>{if(e.h===void 0||t.h===void 0||!e.c||!t.c)return 0;let o=ce(e.h),a=ce(t.h),r=Math.sin((a-o+360)/2*Math.PI/180);return 2*Math.sqrt(e.c*t.c)*r};var Me=e=>{let t=e.reduce((a,r)=>{if(r!==void 0){let l=r*Math.PI/180;a.sin+=Math.sin(l),a.cos+=Math.cos(l)}return a},{sin:0,cos:0}),o=Math.atan2(t.sin,t.cos)*180/Math.PI;return o<0?360+o:o};var au={mode:"cubehelix",channels:["h","s","l","alpha"],parse:["--cubehelix"],serialize:"--cubehelix",ranges:{h:[0,360],s:[0,4.614],l:[0,1]},fromMode:{rgb:M0},toMode:{rgb:y0},interpolate:{h:{use:P,fixup:be},s:P,l:P,alpha:{use:P,fixup:te}},difference:{h:Z1},average:{h:Me}},R0=au;var ru=({l:e,a:t,b:o,alpha:a},r="lch")=>{t===void 0&&(t=0),o===void 0&&(o=0);let l=Math.sqrt(t*t+o*o),n={mode:r,l:e,c:l};return l&&(n.h=ce(Math.atan2(o,t)*180/Math.PI)),a!==void 0&&(n.alpha=a),n},Ge=ru;var lu=({l:e,c:t,h:o,alpha:a},r="lab")=>{o===void 0&&(o=0);let l={mode:r,l:e,a:t?t*Math.cos(o/180*Math.PI):0,b:t?t*Math.sin(o/180*Math.PI):0};return a!==void 0&&(l.alpha=a),l},Ke=lu;var Uo=Math.pow(29,3)/Math.pow(3,3),zo=Math.pow(6,3)/Math.pow(29,3);var Ce={X:.9642956764295677,Y:1,Z:.8251046025104602},$1={X:.3127/.329,Y:1,Z:(1-.3127-.329)/.329},Nf=Math.pow(29,3)/Math.pow(3,3),qf=Math.pow(6,3)/Math.pow(29,3);var Ir=e=>Math.pow(e,3)>zo?Math.pow(e,3):(116*e-16)/Uo,nu=({l:e,a:t,b:o,alpha:a})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r=(e+16)/116,l=t/500+r,n=r-o/200,i={mode:"xyz65",x:Ir(l)*$1.X,y:Ir(r)*$1.Y,z:Ir(n)*$1.Z};return a!==void 0&&(i.alpha=a),i},jo=nu;var iu=e=>Ze(jo(e)),F1=iu;var br=e=>e>zo?Math.cbrt(e):(Uo*e+16)/116,uu=({x:e,y:t,z:o,alpha:a})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r=br(e/$1.X),l=br(t/$1.Y),n=br(o/$1.Z),i={mode:"lab65",l:116*l-16,a:500*(r-l),b:200*(l-n)};return a!==void 0&&(i.alpha=a),i},Go=uu;var du=e=>{let t=Go(Ee(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},N1=du;var at=.14444444444444443*Math.PI,xt=Math.cos(at),Lt=Math.sin(at),Ko=100/Math.log(139/100);var su=({l:e,c:t,h:o,alpha:a})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r={mode:"lab65",l:(Math.exp(e*1/Ko)-1)/.0039},l=(Math.exp(.0435*t*1*1)-1)/.075,n=l*Math.cos(o/180*Math.PI-at),i=l*Math.sin(o/180*Math.PI-at);return r.a=n*xt-i/.83*Lt,r.b=n*Lt+i/.83*xt,a!==void 0&&(r.alpha=a),r},oo=su;var cu=({l:e,a:t,b:o,alpha:a})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r=t*xt+o*Lt,l=.83*(o*xt-t*Lt),n=Math.sqrt(r*r+l*l),i={mode:"dlch",l:Ko/1*Math.log(1+.0039*e),c:Math.log(1+.075*n)/(.0435*1*1)};return i.c&&(i.h=ce((Math.atan2(l,r)+at)/Math.PI*180)),a!==void 0&&(i.alpha=a),i},ao=cu;var H0=e=>oo(Ge(e,"dlch")),k0=e=>Ke(ao(e),"dlab"),fu={mode:"dlab",parse:["--din99o-lab"],serialize:"--din99o-lab",toMode:{lab65:H0,rgb:e=>F1(H0(e))},fromMode:{lab65:k0,rgb:e=>k0(N1(e))},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-40.09,45.501],b:[-40.469,44.344]},interpolate:{l:P,a:P,b:P,alpha:{use:P,fixup:te}}},P0=fu;var pu={mode:"dlch",parse:["--din99o-lch"],serialize:"--din99o-lch",toMode:{lab65:oo,dlab:e=>Ke(e,"dlab"),rgb:e=>F1(oo(e))},fromMode:{lab65:ao,dlab:e=>Ge(e,"dlch"),rgb:e=>ao(N1(e))},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,51.484],h:[0,360]},interpolate:{l:P,c:P,h:{use:P,fixup:be},alpha:{use:P,fixup:te}},difference:{h:A1},average:{h:Me}},V0=pu;function yr({h:e,s:t,i:o,alpha:a}){e=ce(e!==void 0?e:0),t===void 0&&(t=0),o===void 0&&(o=0);let r=Math.abs(e/60%2-1),l;switch(Math.floor(e/60)){case 0:l={r:o*(1+t*(3/(2-r)-1)),g:o*(1+t*(3*(1-r)/(2-r)-1)),b:o*(1-t)};break;case 1:l={r:o*(1+t*(3*(1-r)/(2-r)-1)),g:o*(1+t*(3/(2-r)-1)),b:o*(1-t)};break;case 2:l={r:o*(1-t),g:o*(1+t*(3/(2-r)-1)),b:o*(1+t*(3*(1-r)/(2-r)-1))};break;case 3:l={r:o*(1-t),g:o*(1+t*(3*(1-r)/(2-r)-1)),b:o*(1+t*(3/(2-r)-1))};break;case 4:l={r:o*(1+t*(3*(1-r)/(2-r)-1)),g:o*(1-t),b:o*(1+t*(3/(2-r)-1))};break;case 5:l={r:o*(1+t*(3/(2-r)-1)),g:o*(1-t),b:o*(1+t*(3*(1-r)/(2-r)-1))};break;default:l={r:o*(1-t),g:o*(1-t),b:o*(1-t)}}return l.mode="rgb",a!==void 0&&(l.alpha=a),l}function Sr({r:e,g:t,b:o,alpha:a}){e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r=Math.max(e,t,o),l=Math.min(e,t,o),n={mode:"hsi",s:e+t+o===0?0:1-3*l/(e+t+o),i:(e+t+o)/3};return r-l!==0&&(n.h=(r===e?(t-o)/(r-l)+(t<o)*6:r===t?(o-e)/(r-l)+2:(e-t)/(r-l)+4)*60),a!==void 0&&(n.alpha=a),n}var Cu={mode:"hsi",toMode:{rgb:yr},parse:["--hsi"],serialize:"--hsi",fromMode:{rgb:Sr},channels:["h","s","i","alpha"],ranges:{h:[0,360]},gamut:"rgb",interpolate:{h:{use:P,fixup:be},s:P,i:P,alpha:{use:P,fixup:te}},difference:{h:Z1},average:{h:Me}},T0=Cu;function Rr({h:e,s:t,l:o,alpha:a}){e=ce(e!==void 0?e:0),t===void 0&&(t=0),o===void 0&&(o=0);let r=o+t*(o<.5?o:1-o),l=r-(r-o)*2*Math.abs(e/60%2-1),n;switch(Math.floor(e/60)){case 0:n={r,g:l,b:2*o-r};break;case 1:n={r:l,g:r,b:2*o-r};break;case 2:n={r:2*o-r,g:r,b:l};break;case 3:n={r:2*o-r,g:l,b:r};break;case 4:n={r:l,g:2*o-r,b:r};break;case 5:n={r,g:2*o-r,b:l};break;default:n={r:2*o-r,g:2*o-r,b:2*o-r}}return n.mode="rgb",a!==void 0&&(n.alpha=a),n}function Hr({r:e,g:t,b:o,alpha:a}){e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r=Math.max(e,t,o),l=Math.min(e,t,o),n={mode:"hsl",s:r===l?0:(r-l)/(1-Math.abs(r+l-1)),l:.5*(r+l)};return r-l!==0&&(n.h=(r===e?(t-o)/(r-l)+(t<o)*6:r===t?(o-e)/(r-l)+2:(e-t)/(r-l)+4)*60),a!==void 0&&(n.alpha=a),n}var mu=(e,t)=>{switch(t){case"deg":return+e;case"rad":return e/Math.PI*180;case"grad":return e/10*9;case"turn":return e*360}},_0=mu;var hu=new RegExp(`^hsla?\\(\\s*${s0}${E1}${tt}${E1}${tt}\\s*(?:,\\s*${Jt}\\s*)?\\)$`),gu=e=>{let t=e.match(hu);if(!t)return;let o={mode:"hsl"};return t[3]!==void 0?o.h=+t[3]:t[1]!==void 0&&t[2]!==void 0&&(o.h=_0(t[1],t[2])),t[4]!==void 0&&(o.s=Math.min(Math.max(0,t[4]/100),1)),t[5]!==void 0&&(o.l=Math.min(Math.max(0,t[5]/100),1)),t[6]!==void 0?o.alpha=Math.max(0,Math.min(1,t[6]/100)):t[7]!==void 0&&(o.alpha=Math.max(0,Math.min(1,+t[7]))),o},O0=gu;function vu(e,t){if(!t||t[0]!=="hsl"&&t[0]!=="hsla")return;let o={mode:"hsl"},[,a,r,l,n]=t;if(a.type!==R.None){if(a.type===R.Percentage)return;o.h=a.value}if(r.type!==R.None){if(r.type===R.Hue)return;o.s=r.value/100}if(l.type!==R.None){if(l.type===R.Hue)return;o.l=l.value/100}return n.type!==R.None&&(o.alpha=Math.min(1,Math.max(0,n.type===R.Number?n.value:n.value/100))),o}var D0=vu;var xu={mode:"hsl",toMode:{rgb:Rr},fromMode:{rgb:Hr},channels:["h","s","l","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[D0,O0],serialize:e=>`hsl(${e.h!==void 0?e.h:"none"} ${e.s!==void 0?e.s*100+"%":"none"} ${e.l!==void 0?e.l*100+"%":"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:P,fixup:be},s:P,l:P,alpha:{use:P,fixup:te}},difference:{h:Z1},average:{h:Me}},Wo=xu;function ro({h:e,s:t,v:o,alpha:a}){e=ce(e!==void 0?e:0),t===void 0&&(t=0),o===void 0&&(o=0);let r=Math.abs(e/60%2-1),l;switch(Math.floor(e/60)){case 0:l={r:o,g:o*(1-t*r),b:o*(1-t)};break;case 1:l={r:o*(1-t*r),g:o,b:o*(1-t)};break;case 2:l={r:o*(1-t),g:o,b:o*(1-t*r)};break;case 3:l={r:o*(1-t),g:o*(1-t*r),b:o};break;case 4:l={r:o*(1-t*r),g:o*(1-t),b:o};break;case 5:l={r:o,g:o*(1-t),b:o*(1-t*r)};break;default:l={r:o*(1-t),g:o*(1-t),b:o*(1-t)}}return l.mode="rgb",a!==void 0&&(l.alpha=a),l}function lo({r:e,g:t,b:o,alpha:a}){e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r=Math.max(e,t,o),l=Math.min(e,t,o),n={mode:"hsv",s:r===0?0:1-l/r,v:r};return r-l!==0&&(n.h=(r===e?(t-o)/(r-l)+(t<o)*6:r===t?(o-e)/(r-l)+2:(e-t)/(r-l)+4)*60),a!==void 0&&(n.alpha=a),n}var Lu={mode:"hsv",toMode:{rgb:ro},parse:["--hsv"],serialize:"--hsv",fromMode:{rgb:lo},channels:["h","s","v","alpha"],ranges:{h:[0,360]},gamut:"rgb",interpolate:{h:{use:P,fixup:be},s:P,v:P,alpha:{use:P,fixup:te}},difference:{h:Z1},average:{h:Me}},Xo=Lu;function kr({h:e,w:t,b:o,alpha:a}){if(t===void 0&&(t=0),o===void 0&&(o=0),t+o>1){let r=t+o;t/=r,o/=r}return ro({h:e,s:o===1?1:1-t/(1-o),v:1-o,alpha:a})}function Pr(e){let t=lo(e);if(t===void 0)return;let o=t.s!==void 0?t.s:0,a=t.v!==void 0?t.v:0,r={mode:"hwb",w:(1-o)*a,b:1-a};return t.h!==void 0&&(r.h=t.h),t.alpha!==void 0&&(r.alpha=t.alpha),r}function wu(e,t){if(!t||t[0]!=="hwb")return;let o={mode:"hwb"},[,a,r,l,n]=t;if(a.type!==R.None){if(a.type===R.Percentage)return;o.h=a.value}if(r.type!==R.None){if(r.type===R.Hue)return;o.w=r.value/100}if(l.type!==R.None){if(l.type===R.Hue)return;o.b=l.value/100}return n.type!==R.None&&(o.alpha=Math.min(1,Math.max(0,n.type===R.Number?n.value:n.value/100))),o}var B0=wu;var Iu={mode:"hwb",toMode:{rgb:kr},fromMode:{rgb:Pr},channels:["h","w","b","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[B0],serialize:e=>`hwb(${e.h!==void 0?e.h:"none"} ${e.w!==void 0?e.w*100+"%":"none"} ${e.b!==void 0?e.b*100+"%":"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:P,fixup:be},w:P,b:P,alpha:{use:P,fixup:te}},difference:{h:S0},average:{h:Me}},E0=Iu;var wt=.1593017578125,Z0=78.84375,It=.8359375,bt=18.8515625,Mt=18.6875;function Qo(e){if(e<0)return 0;let t=Math.pow(e,1/Z0);return 1e4*Math.pow(Math.max(0,t-It)/(bt-Mt*t),1/wt)}function Jo(e){if(e<0)return 0;let t=Math.pow(e/1e4,wt);return Math.pow((It+bt*t)/(1+Mt*t),Z0)}var Vr=e=>Math.max(e/203,0),Mu=({i:e,t,p:o,alpha:a})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r=Qo(e+.008609037037932761*t+.11102962500302593*o),l=Qo(e-.00860903703793275*t-.11102962500302599*o),n=Qo(e+.5600313357106791*t-.32062717498731885*o),i={mode:"xyz65",x:Vr(2.070152218389422*r-1.3263473389671556*l+.2066510476294051*n),y:Vr(.3647385209748074*r+.680566024947227*l-.0453045459220346*n),z:Vr(-.049747207535812*r-.0492609666966138*l+1.1880659249923042*n)};return a!==void 0&&(i.alpha=a),i},Tr=Mu;var _r=(e=0)=>Math.max(e*203,0),yu=({x:e,y:t,z:o,alpha:a})=>{let r=_r(e),l=_r(t),n=_r(o),i=Jo(.3592832590121217*r+.6976051147779502*l-.0358915932320289*n),u=Jo(-.1920808463704995*r+1.1004767970374323*l+.0753748658519118*n),d=Jo(.0070797844607477*r+.0748396662186366*l+.8433265453898765*n),s=.5*i+.5*u,c=1.61376953125*i-3.323486328125*u+1.709716796875*d,C=4.378173828125*i-4.24560546875*u-.132568359375*d,L={mode:"itp",i:s,t:c,p:C};return a!==void 0&&(L.alpha=a),L},Or=yu;var Su={mode:"itp",channels:["i","t","p","alpha"],parse:["--ictcp"],serialize:"--ictcp",toMode:{xyz65:Tr,rgb:e=>Ze(Tr(e))},fromMode:{xyz65:Or,rgb:e=>Or(Ee(e))},ranges:{i:[0,.581],t:[-.369,.272],p:[-.164,.331]},interpolate:{i:P,t:P,p:P,alpha:{use:P,fixup:te}}},A0=Su;var Ru=134.03437499999998,Hu=16295499532821565e-27,Dr=e=>{if(e<0)return 0;let t=Math.pow(e/1e4,wt);return Math.pow((It+bt*t)/(1+Mt*t),Ru)},Br=(e=0)=>Math.max(e*203,0),ku=({x:e,y:t,z:o,alpha:a})=>{e=Br(e),t=Br(t),o=Br(o);let r=1.15*e-.15*o,l=.66*t+.34*e,n=Dr(.41478972*r+.579999*l+.014648*o),i=Dr(-.20151*r+1.120649*l+.0531008*o),u=Dr(-.0166008*r+.2648*l+.6684799*o),d=(n+i)/2,s={mode:"jab",j:.44*d/(1-.56*d)-Hu,a:3.524*n-4.066708*i+.542708*u,b:.199076*n+1.096799*i-1.295875*u};return a!==void 0&&(s.alpha=a),s},Yo=ku;var Pu=134.03437499999998,$0=16295499532821565e-27,Er=e=>{if(e<0)return 0;let t=Math.pow(e,1/Pu);return 1e4*Math.pow((It-t)/(Mt*t-bt),1/wt)},Zr=e=>e/203,Vu=({j:e,a:t,b:o,alpha:a})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r=(e+$0)/(.44+.56*(e+$0)),l=Er(r+.13860504*t+.058047316*o),n=Er(r-.13860504*t-.058047316*o),i=Er(r-.096019242*t-.8118919*o),u={mode:"xyz65",x:Zr(1.661373024652174*l-.914523081304348*n+.23136208173913045*i),y:Zr(-.3250758611844533*l+1.571847026732543*n-.21825383453227928*i),z:Zr(-.090982811*l-.31272829*n+1.5227666*i)};return a!==void 0&&(u.alpha=a),u},ea=Vu;var Tu=e=>{let t=Yo(Ee(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},ta=Tu;var _u=e=>Ze(ea(e)),oa=_u;var Ou={mode:"jab",channels:["j","a","b","alpha"],parse:["--jzazbz"],serialize:"--jzazbz",fromMode:{rgb:ta,xyz65:Yo},toMode:{rgb:oa,xyz65:ea},ranges:{j:[0,.222],a:[-.109,.129],b:[-.185,.134]},interpolate:{j:P,a:P,b:P,alpha:{use:P,fixup:te}}},F0=Ou;var Du=({j:e,a:t,b:o,alpha:a})=>{t===void 0&&(t=0),o===void 0&&(o=0);let r=Math.sqrt(t*t+o*o),l={mode:"jch",j:e,c:r};return r&&(l.h=ce(Math.atan2(o,t)*180/Math.PI)),a!==void 0&&(l.alpha=a),l},Ar=Du;var Bu=({j:e,c:t,h:o,alpha:a})=>{o===void 0&&(o=0);let r={mode:"jab",j:e,a:t?t*Math.cos(o/180*Math.PI):0,b:t?t*Math.sin(o/180*Math.PI):0};return a!==void 0&&(r.alpha=a),r},$r=Bu;var Eu={mode:"jch",parse:["--jzczhz"],serialize:"--jzczhz",toMode:{jab:$r,rgb:e=>oa($r(e))},fromMode:{rgb:e=>Ar(ta(e)),jab:Ar},channels:["j","c","h","alpha"],ranges:{j:[0,.221],c:[0,.19],h:[0,360]},interpolate:{h:{use:P,fixup:be},c:P,j:P,alpha:{use:P,fixup:te}},difference:{h:A1},average:{h:Me}},N0=Eu;var q1=Math.pow(29,3)/Math.pow(3,3),yt=Math.pow(6,3)/Math.pow(29,3);var Fr=e=>Math.pow(e,3)>yt?Math.pow(e,3):(116*e-16)/q1,Zu=({l:e,a:t,b:o,alpha:a})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r=(e+16)/116,l=t/500+r,n=r-o/200,i={mode:"xyz50",x:Fr(l)*Ce.X,y:Fr(r)*Ce.Y,z:Fr(n)*Ce.Z};return a!==void 0&&(i.alpha=a),i},St=Zu;var Au=({x:e,y:t,z:o,alpha:a})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r=e1({r:e*3.1341359569958707-t*1.6173863321612538-.4906619460083532*o,g:e*-.978795502912089+t*1.916254567259524+.03344273116131949*o,b:e*.07195537988411677-t*.2289768264158322+1.405386058324125*o});return a!==void 0&&(r.alpha=a),r},m1=Au;var $u=e=>m1(St(e)),aa=$u;var Fu=e=>{let{r:t,g:o,b:a,alpha:r}=Ye(e),l={mode:"xyz50",x:.436065742824811*t+.3851514688337912*o+.14307845442264197*a,y:.22249319175623702*t+.7168870538238823*o+.06061979053616537*a,z:.013923904500943465*t+.09708128566574634*o+.7140993584005155*a};return r!==void 0&&(l.alpha=r),l},h1=Fu;var Nr=e=>e>yt?Math.cbrt(e):(q1*e+16)/116,Nu=({x:e,y:t,z:o,alpha:a})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r=Nr(e/Ce.X),l=Nr(t/Ce.Y),n=Nr(o/Ce.Z),i={mode:"lab",l:116*l-16,a:500*(r-l),b:200*(l-n)};return a!==void 0&&(i.alpha=a),i},Rt=Nu;var qu=e=>{let t=Rt(h1(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},ra=qu;function Uu(e,t){if(!t||t[0]!=="lab")return;let o={mode:"lab"},[,a,r,l,n]=t;if(!(a.type===R.Hue||r.type===R.Hue||l.type===R.Hue))return a.type!==R.None&&(o.l=Math.min(Math.max(0,a.value),100)),r.type!==R.None&&(o.a=r.type===R.Number?r.value:r.value*125/100),l.type!==R.None&&(o.b=l.type===R.Number?l.value:l.value*125/100),n.type!==R.None&&(o.alpha=Math.min(1,Math.max(0,n.type===R.Number?n.value:n.value/100))),o}var q0=Uu;var zu={mode:"lab",toMode:{xyz50:St,rgb:aa},fromMode:{xyz50:Rt,rgb:ra},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-125,125],b:[-125,125]},parse:[q0],serialize:e=>`lab(${e.l!==void 0?e.l:"none"} ${e.a!==void 0?e.a:"none"} ${e.b!==void 0?e.b:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{l:P,a:P,b:P,alpha:{use:P,fixup:te}}},Ht=zu;var ju={...Ht,mode:"lab65",parse:["--lab-d65"],serialize:"--lab-d65",toMode:{xyz65:jo,rgb:F1},fromMode:{xyz65:Go,rgb:N1},ranges:{l:[0,100],a:[-125,125],b:[-125,125]}},U0=ju;function Gu(e,t){if(!t||t[0]!=="lch")return;let o={mode:"lch"},[,a,r,l,n]=t;if(a.type!==R.None){if(a.type===R.Hue)return;o.l=Math.min(Math.max(0,a.value),100)}if(r.type!==R.None&&(o.c=Math.max(0,r.type===R.Number?r.value:r.value*150/100)),l.type!==R.None){if(l.type===R.Percentage)return;o.h=l.value}return n.type!==R.None&&(o.alpha=Math.min(1,Math.max(0,n.type===R.Number?n.value:n.value/100))),o}var z0=Gu;var Ku={mode:"lch",toMode:{lab:Ke,rgb:e=>aa(Ke(e))},fromMode:{rgb:e=>Ge(ra(e)),lab:Ge},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,150],h:[0,360]},parse:[z0],serialize:e=>`lch(${e.l!==void 0?e.l:"none"} ${e.c!==void 0?e.c:"none"} ${e.h!==void 0?e.h:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:P,fixup:be},c:P,l:P,alpha:{use:P,fixup:te}},difference:{h:A1},average:{h:Me}},kt=Ku;var Wu={...kt,mode:"lch65",parse:["--lch-d65"],serialize:"--lch-d65",toMode:{lab65:e=>Ke(e,"lab65"),rgb:e=>F1(Ke(e,"lab65"))},fromMode:{rgb:e=>Ge(N1(e),"lch65"),lab65:e=>Ge(e,"lch65")},ranges:{l:[0,100],c:[0,150],h:[0,360]}},j0=Wu;var Xu=({l:e,u:t,v:o,alpha:a})=>{t===void 0&&(t=0),o===void 0&&(o=0);let r=Math.sqrt(t*t+o*o),l={mode:"lchuv",l:e,c:r};return r&&(l.h=ce(Math.atan2(o,t)*180/Math.PI)),a!==void 0&&(l.alpha=a),l},qr=Xu;var Qu=({l:e,c:t,h:o,alpha:a})=>{o===void 0&&(o=0);let r={mode:"luv",l:e,u:t?t*Math.cos(o/180*Math.PI):0,v:t?t*Math.sin(o/180*Math.PI):0};return a!==void 0&&(r.alpha=a),r},Ur=Qu;var G0=(e,t,o)=>4*e/(e+15*t+3*o),K0=(e,t,o)=>9*t/(e+15*t+3*o),Ju=G0(Ce.X,Ce.Y,Ce.Z),Yu=K0(Ce.X,Ce.Y,Ce.Z),ed=e=>e<=yt?q1*e:116*Math.cbrt(e)-16,td=({x:e,y:t,z:o,alpha:a})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r=ed(t/Ce.Y),l=G0(e,t,o),n=K0(e,t,o);!isFinite(l)||!isFinite(n)?r=l=n=0:(l=13*r*(l-Ju),n=13*r*(n-Yu));let i={mode:"luv",l:r,u:l,v:n};return a!==void 0&&(i.alpha=a),i},no=td;var od=(e,t,o)=>4*e/(e+15*t+3*o),ad=(e,t,o)=>9*t/(e+15*t+3*o),rd=od(Ce.X,Ce.Y,Ce.Z),ld=ad(Ce.X,Ce.Y,Ce.Z),nd=({l:e,u:t,v:o,alpha:a})=>{if(e===void 0&&(e=0),e===0)return{mode:"xyz50",x:0,y:0,z:0};t===void 0&&(t=0),o===void 0&&(o=0);let r=t/(13*e)+rd,l=o/(13*e)+ld,n=Ce.Y*(e<=8?e/q1:Math.pow((e+16)/116,3)),i=n*(9*r)/(4*l),u=n*(12-3*r-20*l)/(4*l),d={mode:"xyz50",x:i,y:n,z:u};return a!==void 0&&(d.alpha=a),d},io=nd;var id=e=>qr(no(h1(e))),ud=e=>m1(io(Ur(e))),dd={mode:"lchuv",toMode:{luv:Ur,rgb:ud},fromMode:{rgb:id,luv:qr},channels:["l","c","h","alpha"],parse:["--lchuv"],serialize:"--lchuv",ranges:{l:[0,100],c:[0,176.956],h:[0,360]},interpolate:{h:{use:P,fixup:be},c:P,l:P,alpha:{use:P,fixup:te}},difference:{h:A1},average:{h:Me}},W0=dd;var sd={...Je,mode:"lrgb",toMode:{rgb:e1},fromMode:{rgb:Ye},parse:["srgb-linear"],serialize:"srgb-linear"},X0=sd;var cd={mode:"luv",toMode:{xyz50:io,rgb:e=>m1(io(e))},fromMode:{xyz50:no,rgb:e=>no(h1(e))},channels:["l","u","v","alpha"],parse:["--luv"],serialize:"--luv",ranges:{l:[0,100],u:[-84.936,175.042],v:[-125.882,87.243]},interpolate:{l:P,u:P,v:P,alpha:{use:P,fixup:te}}},Q0=cd;var fd=({r:e,g:t,b:o,alpha:a})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r=Math.cbrt(.412221469470763*e+.5363325372617348*t+.0514459932675022*o),l=Math.cbrt(.2119034958178252*e+.6806995506452344*t+.1073969535369406*o),n=Math.cbrt(.0883024591900564*e+.2817188391361215*t+.6299787016738222*o),i={mode:"oklab",l:.210454268309314*r+.7936177747023054*l-.0040720430116193*n,a:1.9779985324311684*r-2.42859224204858*l+.450593709617411*n,b:.0259040424655478*r+.7827717124575296*l-.8086757549230774*n};return a!==void 0&&(i.alpha=a),i},la=fd;var pd=e=>{let t=la(Ye(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},U1=pd;var Cd=({l:e,a:t,b:o,alpha:a})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r=Math.pow(e+.3963377773761749*t+.2158037573099136*o,3),l=Math.pow(e-.1055613458156586*t-.0638541728258133*o,3),n=Math.pow(e-.0894841775298119*t-1.2914855480194092*o,3),i={mode:"lrgb",r:4.076741636075957*r-3.3077115392580616*l+.2309699031821044*n,g:-1.2684379732850317*r+2.6097573492876887*l-.3413193760026573*n,b:-.0041960761386756*r-.7034186179359362*l+1.7076146940746117*n};return a!==void 0&&(i.alpha=a),i},g1=Cd;var md=e=>e1(g1(e)),z1=md;function uo(e){let a=1.170873786407767;return .5*(a*e-.206+Math.sqrt((a*e-.206)*(a*e-.206)+4*.03*a*e))}function rt(e){return(e*e+.206*e)/(1.170873786407767*(e+.03))}function hd(e,t){let o,a,r,l,n,i,u,d;-1.88170328*e-.80936493*t>1?(o=1.19086277,a=1.76576728,r=.59662641,l=.75515197,n=.56771245,i=4.0767416621,u=-3.3077115913,d=.2309699292):1.81444104*e-1.19445276*t>1?(o=.73956515,a=-.45954404,r=.08285427,l=.1254107,n=.14503204,i=-1.2684380046,u=2.6097574011,d=-.3413193965):(o=1.35733652,a=-.00915799,r=-1.1513021,l=-.50559606,n=.00692167,i=-.0041960863,u=-.7034186147,d=1.707614701);let s=o+a*e+r*t+l*e*e+n*e*t,c=.3963377774*e+.2158037573*t,C=-.1055613458*e-.0638541728*t,L=-.0894841775*e-1.291485548*t;{let g=1+s*c,x=1+s*C,f=1+s*L,m=g*g*g,h=x*x*x,T=f*f*f,V=3*c*g*g,S=3*C*x*x,E=3*L*f*f,z=6*c*c*g,k=6*C*C*x,B=6*L*L*f,j=i*m+u*h+d*T,H=i*V+u*S+d*E,y=i*z+u*k+d*B;s=s-j*H/(H*H-.5*j*y)}return s}function zr(e,t){let o=hd(e,t),a=g1({l:1,a:o*e,b:o*t}),r=Math.cbrt(1/Math.max(a.r,a.g,a.b)),l=r*o;return[r,l]}function gd(e,t,o,a,r,l=null){l||(l=zr(e,t));let n;if((o-r)*l[1]-(l[0]-r)*a<=0)n=l[1]*r/(a*l[0]+l[1]*(r-o));else{n=l[1]*(r-1)/(a*(l[0]-1)+l[1]*(r-o));{let i=o-r,u=a,d=.3963377774*e+.2158037573*t,s=-.1055613458*e-.0638541728*t,c=-.0894841775*e-1.291485548*t,C=i+u*d,L=i+u*s,g=i+u*c;{let x=r*(1-n)+n*o,f=n*a,m=x+f*d,h=x+f*s,T=x+f*c,V=m*m*m,S=h*h*h,E=T*T*T,z=3*C*m*m,k=3*L*h*h,B=3*g*T*T,j=6*C*C*m,H=6*L*L*h,y=6*g*g*T,w=4.0767416621*V-3.3077115913*S+.2309699292*E-1,M=4.0767416621*z-3.3077115913*k+.2309699292*B,_=4.0767416621*j-3.3077115913*H+.2309699292*y,I=M/(M*M-.5*w*_),O=-w*I,b=-1.2684380046*V+2.6097574011*S-.3413193965*E-1,Q=-1.2684380046*z+2.6097574011*k-.3413193965*B,U=-1.2684380046*j+2.6097574011*H-.3413193965*y,p=Q/(Q*Q-.5*b*U),v=-b*p,F=-.0041960863*V-.7034186147*S+1.707614701*E-1,D=-.0041960863*z-.7034186147*k+1.707614701*B,A=-.0041960863*j-.7034186147*H+1.707614701*y,Z=D/(D*D-.5*F*A),$=-F*Z;O=I>=0?O:1e6,v=p>=0?v:1e6,$=Z>=0?$:1e6,n+=Math.min(O,Math.min(v,$))}}}return n}function so(e,t,o=null){o||(o=zr(e,t));let a=o[0],r=o[1];return[r/a,r/(1-a)]}function na(e,t,o){let a=zr(t,o),r=gd(t,o,e,1,e,a),l=so(t,o,a),n=.11516993+1/(7.4477897+4.1590124*o+t*(-2.19557347+1.75198401*o+t*(-2.13704948-10.02301043*o+t*(-4.24894561+5.38770819*o+4.69891013*t)))),i=.11239642+1/(1.6132032-.68124379*o+t*(.40370612+.90148123*o+t*(-.27087943+.6122399*o+t*(.00299215-.45399568*o-.14661872*t)))),u=r/Math.min(e*l[0],(1-e)*l[1]),d=e*n,s=(1-e)*i,c=.9*u*Math.sqrt(Math.sqrt(1/(1/(d*d*d*d)+1/(s*s*s*s))));return d=e*.4,s=(1-e)*.8,[Math.sqrt(1/(1/(d*d)+1/(s*s))),c,r]}function ia(e){let t=e.l!==void 0?e.l:0,o=e.a!==void 0?e.a:0,a=e.b!==void 0?e.b:0,r={mode:"okhsl",l:uo(t)};e.alpha!==void 0&&(r.alpha=e.alpha);let l=Math.sqrt(o*o+a*a);if(!l)return r.s=0,r;let[n,i,u]=na(t,o/l,a/l),d;if(l<i){let s=0,c=.8*n,C=1-c/i;d=(l-s)/(c+C*(l-s))*.8}else{let s=i,c=.2*i*i*1.25*1.25/n,C=1-c/(u-i);d=.8+.2*((l-s)/(c+C*(l-s)))}return d&&(r.s=d,r.h=ce(Math.atan2(a,o)*180/Math.PI)),r}function ua(e){let t=e.h!==void 0?e.h:0,o=e.s!==void 0?e.s:0,a=e.l!==void 0?e.l:0,r={mode:"oklab",l:rt(a)};if(e.alpha!==void 0&&(r.alpha=e.alpha),!o||a===1)return r.a=r.b=0,r;let l=Math.cos(t/180*Math.PI),n=Math.sin(t/180*Math.PI),[i,u,d]=na(r.l,l,n),s,c,C,L;o<.8?(s=1.25*o,c=0,C=.8*i,L=1-C/u):(s=5*(o-.8),c=u,C=.2*u*u*1.25*1.25/i,L=1-C/(d-u));let g=c+s*C/(1-L*s);return r.a=g*l,r.b=g*n,r}var vd={...Wo,mode:"okhsl",channels:["h","s","l","alpha"],parse:["--okhsl"],serialize:"--okhsl",fromMode:{oklab:ia,rgb:e=>ia(U1(e))},toMode:{oklab:ua,rgb:e=>z1(ua(e))}},J0=vd;function da(e){let t=e.l!==void 0?e.l:0,o=e.a!==void 0?e.a:0,a=e.b!==void 0?e.b:0,r=Math.sqrt(o*o+a*a),l=r?o/r:1,n=r?a/r:1,[i,u]=so(l,n),d=.5,s=1-d/i,c=u/(r+t*u),C=c*t,L=c*r,g=rt(C),x=L*g/C,f=g1({l:g,a:l*x,b:n*x}),m=Math.cbrt(1/Math.max(f.r,f.g,f.b,0));t=t/m,r=r/m*uo(t)/t,t=uo(t);let h={mode:"okhsv",s:r?(d+u)*L/(u*d+u*s*L):0,v:t?t/C:0};return h.s&&(h.h=ce(Math.atan2(a,o)*180/Math.PI)),e.alpha!==void 0&&(h.alpha=e.alpha),h}function sa(e){let t={mode:"oklab"};e.alpha!==void 0&&(t.alpha=e.alpha);let o=e.h!==void 0?e.h:0,a=e.s!==void 0?e.s:0,r=e.v!==void 0?e.v:0,l=Math.cos(o/180*Math.PI),n=Math.sin(o/180*Math.PI),[i,u]=so(l,n),d=.5,s=1-d/i,c=1-a*d/(d+u-u*s*a),C=a*u*d/(d+u-u*s*a),L=rt(c),g=C*L/c,x=g1({l:L,a:l*g,b:n*g}),f=Math.cbrt(1/Math.max(x.r,x.g,x.b,0)),m=rt(r*c),h=C*m/c;return t.l=m*f,t.a=h*l*f,t.b=h*n*f,t}var xd={...Xo,mode:"okhsv",channels:["h","s","v","alpha"],parse:["--okhsv"],serialize:"--okhsv",fromMode:{oklab:da,rgb:e=>da(U1(e))},toMode:{oklab:sa,rgb:e=>z1(sa(e))}},Y0=xd;function Ld(e,t){if(!t||t[0]!=="oklab")return;let o={mode:"oklab"},[,a,r,l,n]=t;if(!(a.type===R.Hue||r.type===R.Hue||l.type===R.Hue))return a.type!==R.None&&(o.l=Math.min(Math.max(0,a.type===R.Number?a.value:a.value/100),1)),r.type!==R.None&&(o.a=r.type===R.Number?r.value:r.value*.4/100),l.type!==R.None&&(o.b=l.type===R.Number?l.value:l.value*.4/100),n.type!==R.None&&(o.alpha=Math.min(1,Math.max(0,n.type===R.Number?n.value:n.value/100))),o}var en=Ld;var wd={...Ht,mode:"oklab",toMode:{lrgb:g1,rgb:z1},fromMode:{lrgb:la,rgb:U1},ranges:{l:[0,1],a:[-.4,.4],b:[-.4,.4]},parse:[en],serialize:e=>`oklab(${e.l!==void 0?e.l:"none"} ${e.a!==void 0?e.a:"none"} ${e.b!==void 0?e.b:"none"}${e.alpha<1?` / ${e.alpha}`:""})`},tn=wd;function Id(e,t){if(!t||t[0]!=="oklch")return;let o={mode:"oklch"},[,a,r,l,n]=t;if(a.type!==R.None){if(a.type===R.Hue)return;o.l=Math.min(Math.max(0,a.type===R.Number?a.value:a.value/100),1)}if(r.type!==R.None&&(o.c=Math.max(0,r.type===R.Number?r.value:r.value*.4/100)),l.type!==R.None){if(l.type===R.Percentage)return;o.h=l.value}return n.type!==R.None&&(o.alpha=Math.min(1,Math.max(0,n.type===R.Number?n.value:n.value/100))),o}var on=Id;var bd={...kt,mode:"oklch",toMode:{oklab:e=>Ke(e,"oklab"),rgb:e=>z1(Ke(e,"oklab"))},fromMode:{rgb:e=>Ge(U1(e),"oklch"),oklab:e=>Ge(e,"oklch")},parse:[on],serialize:e=>`oklch(${e.l!==void 0?e.l:"none"} ${e.c!==void 0?e.c:"none"} ${e.h!==void 0?e.h:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,ranges:{l:[0,1],c:[0,.4],h:[0,360]}},an=bd;var Md=e=>{let{r:t,g:o,b:a,alpha:r}=Ye(e),l={mode:"xyz65",x:.486570948648216*t+.265667693169093*o+.1982172852343625*a,y:.2289745640697487*t+.6917385218365062*o+.079286914093745*a,z:0*t+.0451133818589026*o+1.043944368900976*a};return r!==void 0&&(l.alpha=r),l},jr=Md;var yd=({x:e,y:t,z:o,alpha:a})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r=e1({r:e*2.4934969119414263-t*.9313836179191242-.402710784450717*o,g:e*-.8294889695615749+t*1.7626640603183465+.0236246858419436*o,b:e*.0358458302437845-t*.0761723892680418+.9568845240076871*o},"p3");return a!==void 0&&(r.alpha=a),r},Gr=yd;var Sd={...Je,mode:"p3",parse:["display-p3"],serialize:"display-p3",fromMode:{rgb:e=>Gr(Ee(e)),xyz65:Gr},toMode:{rgb:e=>Ze(jr(e)),xyz65:jr}},rn=Sd;var Kr=e=>{let t=Math.abs(e);return t>=.001953125?Math.sign(e)*Math.pow(t,.5555555555555556):16*e},Rd=({x:e,y:t,z:o,alpha:a})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r={mode:"prophoto",r:Kr(e*1.3457868816471585-t*.2555720873797946-.0511018649755453*o),g:Kr(e*-.5446307051249019+t*1.5082477428451466+.0205274474364214*o),b:Kr(e*0+t*0+1.2119675456389452*o)};return a!==void 0&&(r.alpha=a),r},Wr=Rd;var Xr=(e=0)=>{let t=Math.abs(e);return t>=.03125?Math.sign(e)*Math.pow(t,1.8):e/16},Hd=e=>{let t=Xr(e.r),o=Xr(e.g),a=Xr(e.b),r={mode:"xyz50",x:.7977666449006423*t+.1351812974005331*o+.0313477341283922*a,y:.2880748288194013*t+.7118352342418731*o+899369387256e-16*a,z:0*t+0*o+.8251046025104602*a};return e.alpha!==void 0&&(r.alpha=e.alpha),r},Qr=Hd;var kd={...Je,mode:"prophoto",parse:["prophoto-rgb"],serialize:"prophoto-rgb",fromMode:{xyz50:Wr,rgb:e=>Wr(h1(e))},toMode:{xyz50:Qr,rgb:e=>m1(Qr(e))}},ln=kd;var nn=1.09929682680944,Pd=.018053968510807,Jr=e=>{let t=Math.abs(e);return t>Pd?(Math.sign(e)||1)*(nn*Math.pow(t,.45)-(nn-1)):4.5*e},Vd=({x:e,y:t,z:o,alpha:a})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r={mode:"rec2020",r:Jr(e*1.7166511879712683-t*.3556707837763925-.2533662813736599*o),g:Jr(e*-.6666843518324893+t*1.6164812366349395+.0157685458139111*o),b:Jr(e*.0176398574453108-t*.0427706132578085+.9421031212354739*o)};return a!==void 0&&(r.alpha=a),r},Yr=Vd;var un=1.09929682680944,Td=.018053968510807,e9=(e=0)=>{let t=Math.abs(e);return t<Td*4.5?e/4.5:(Math.sign(e)||1)*Math.pow((t+un-1)/un,1/.45)},_d=e=>{let t=e9(e.r),o=e9(e.g),a=e9(e.b),r={mode:"xyz65",x:.6369580483012911*t+.1446169035862083*o+.1688809751641721*a,y:.262700212011267*t+.6779980715188708*o+.059301716469862*a,z:0*t+.0280726930490874*o+1.0609850577107909*a};return e.alpha!==void 0&&(r.alpha=e.alpha),r},t9=_d;var Od={...Je,mode:"rec2020",fromMode:{xyz65:Yr,rgb:e=>Yr(Ee(e))},toMode:{xyz65:t9,rgb:e=>Ze(t9(e))},parse:["rec2020"],serialize:"rec2020"},dn=Od;var S1=.0037930732552754493,ca=Math.cbrt(S1);var o9=e=>Math.cbrt(e)-ca,Dd=e=>{let{r:t,g:o,b:a,alpha:r}=Ye(e),l=o9(.3*t+.622*o+.078*a+S1),n=o9(.23*t+.692*o+.078*a+S1),i=o9(.2434226892454782*t+.2047674442449682*o+.5518098665095535*a+S1),u={mode:"xyb",x:(l-n)/2,y:(l+n)/2,b:i-(l+n)/2};return r!==void 0&&(u.alpha=r),u},sn=Dd;var a9=e=>Math.pow(e+ca,3),Bd=({x:e,y:t,b:o,alpha:a})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r=a9(e+t)-S1,l=a9(t-e)-S1,n=a9(o+t)-S1,i=e1({r:11.031566904639861*r-9.866943908131562*l-.16462299650829934*n,g:-3.2541473810744237*r+4.418770377582723*l-.16462299650829934*n,b:-3.6588512867136815*r+2.7129230459360922*l+1.9459282407775895*n});return a!==void 0&&(i.alpha=a),i},cn=Bd;var Ed={mode:"xyb",channels:["x","y","b","alpha"],parse:["--xyb"],serialize:"--xyb",toMode:{rgb:cn},fromMode:{rgb:sn},ranges:{x:[-.0154,.0281],y:[0,.8453],b:[-.2778,.388]},interpolate:{x:P,y:P,b:P,alpha:{use:P,fixup:te}}},fn=Ed;var Zd={mode:"xyz50",parse:["xyz-d50"],serialize:"xyz-d50",toMode:{rgb:m1,lab:Rt},fromMode:{rgb:h1,lab:St},channels:["x","y","z","alpha"],ranges:{x:[0,.964],y:[0,.999],z:[0,.825]},interpolate:{x:P,y:P,z:P,alpha:{use:P,fixup:te}}},pn=Zd;var Ad=e=>{let{x:t,y:o,z:a,alpha:r}=e;t===void 0&&(t=0),o===void 0&&(o=0),a===void 0&&(a=0);let l={mode:"xyz50",x:1.0479298208405488*t+.0229467933410191*o-.0501922295431356*a,y:.0296278156881593*t+.990434484573249*o-.0170738250293851*a,z:-.0092430581525912*t+.0150551448965779*o+.7518742899580008*a};return r!==void 0&&(l.alpha=r),l},Cn=Ad;var $d=e=>{let{x:t,y:o,z:a,alpha:r}=e;t===void 0&&(t=0),o===void 0&&(o=0),a===void 0&&(a=0);let l={mode:"xyz65",x:.9554734527042182*t-.0230985368742614*o+.0632593086610217*a,y:-.0283697069632081*t+1.0099954580058226*o+.021041398966943*a,z:.0123140016883199*t-.0205076964334779*o+1.3303659366080753*a};return r!==void 0&&(l.alpha=r),l},mn=$d;var Fd={mode:"xyz65",toMode:{rgb:Ze,xyz50:Cn},fromMode:{rgb:Ee,xyz50:mn},ranges:{x:[0,.95],y:[0,1],z:[0,1.088]},channels:["x","y","z","alpha"],parse:["xyz","xyz-d65"],serialize:"xyz-d65",interpolate:{x:P,y:P,z:P,alpha:{use:P,fixup:te}}},hn=Fd;var Nd=({r:e,g:t,b:o,alpha:a})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r={mode:"yiq",y:.29889531*e+.58662247*t+.11448223*o,i:.59597799*e-.2741761*t-.32180189*o,q:.21147017*e-.52261711*t+.31114694*o};return a!==void 0&&(r.alpha=a),r},gn=Nd;var qd=({y:e,i:t,q:o,alpha:a})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r={mode:"rgb",r:e+.95608445*t+.6208885*o,g:e-.27137664*t-.6486059*o,b:e-1.10561724*t+1.70250126*o};return a!==void 0&&(r.alpha=a),r},vn=qd;var Ud={mode:"yiq",toMode:{rgb:vn},fromMode:{rgb:gn},channels:["y","i","q","alpha"],parse:["--yiq"],serialize:"--yiq",ranges:{i:[-.595,.595],q:[-.522,.522]},interpolate:{y:P,i:P,q:P,alpha:{use:P,fixup:te}}},xn=Ud;var zd=(e,t)=>Math.round(e*(t=Math.pow(10,t)))/t,jd=(e=4)=>t=>typeof t=="number"?zd(t,e):t,Ln=jd;var nx=Ln(2);var ix=je("rgb"),ux=je("hsl");var r9=e=>{let t=Ao(e);if(!t)return;let o=$o(t.mode);if(!o.serialize||typeof o.serialize=="string"){let a=`color(${o.serialize||`--${t.mode}`} `;return o.channels.forEach((r,l)=>{r!=="alpha"&&(a+=(l?" ":"")+(t[r]!==void 0?t[r]:"none"))}),t.alpha!==void 0&&t.alpha<1&&(a+=` / ${t.alpha}`),a+")"}if(typeof o.serialize=="function")return o.serialize(t)};var Wx=ue(v0),Xx=ue(R0),Qx=ue(P0),Jx=ue(V0),Yx=ue(T0),eL=ue(Wo),tL=ue(Xo),oL=ue(E0),aL=ue(A0),rL=ue(F0),lL=ue(N0),nL=ue(Ht),iL=ue(U0),uL=ue(kt),dL=ue(j0),sL=ue(W0),cL=ue(X0),fL=ue(Q0),pL=ue(J0),CL=ue(Y0),mL=ue(tn),hL=ue(an),gL=ue(rn),vL=ue(ln),xL=ue(dn),LL=ue(Je),wL=ue(fn),IL=ue(pn),bL=ue(hn),ML=ue(xn);var l9=je("rgb"),Gd=je("hsl"),Kd=je("oklch"),Wd=je("oklab"),Xd=je("lch"),Qd=je("lab"),wn=null;function Jd(){return wn??(wn=document.createElement("canvas").getContext("2d")),wn}function In(e){try{let t=Jd();if(!t)return null;t.fillStyle="#000000",t.fillStyle=e;let o=t.fillStyle;t.fillStyle="#ffffff",t.fillStyle=e;let a=t.fillStyle;return o===a?o:null}catch{return null}}function bn(e){if(!e||typeof e!="string")return!1;let t=e.trim();return ot(t)!==void 0?!0:In(t)!==null}function lt(e){let t={r:255,g:255,b:255,a:1};if(!e||typeof e!="string")return t;let o=e.trim(),a=ot(o);if(a){let l=l9(a);if(l&&"r"in l&&"g"in l&&"b"in l)return{r:Math.round(Math.min(255,Math.max(0,l.r*255))),g:Math.round(Math.min(255,Math.max(0,l.g*255))),b:Math.round(Math.min(255,Math.max(0,l.b*255))),a:l.alpha??1}}let r=In(o);if(r){if(r.startsWith("#")){let n=r.slice(1);return{r:parseInt(n.slice(0,2),16),g:parseInt(n.slice(2,4),16),b:parseInt(n.slice(4,6),16),a:1}}let l=r.match(/rgba?\(\s*(\d+),\s*(\d+),\s*(\d+)(?:,\s*([\d.]+))?\)/);if(l&&l[1]!=null&&l[2]!=null&&l[3]!=null)return{r:+l[1],g:+l[2],b:+l[3],a:l[4]!=null?+l[4]:1}}return t}function Pt(e){let t=Math.round(Math.min(255,Math.max(0,e.r))),o=Math.round(Math.min(255,Math.max(0,e.g))),a=Math.round(Math.min(255,Math.max(0,e.b))),r=Math.round(Math.min(1,Math.max(0,e.a))*100)/100;return r>=1?`rgb(${t}, ${o}, ${a})`:`rgba(${t}, ${o}, ${a}, ${r})`}function fa(e){let t=e.startsWith("#")?e.slice(1):e;return/^[0-9a-fA-F]+$/.test(t)&&[3,4,6,8].includes(t.length)}function co(e){let t=Math.round(Math.min(255,Math.max(0,e.r))),o=Math.round(Math.min(255,Math.max(0,e.g))),a=Math.round(Math.min(255,Math.max(0,e.b))),r=Math.min(1,Math.max(0,e.a)),l=`#${[t,o,a].map(n=>n.toString(16).padStart(2,"0")).join("")}`;return r<1?l+Math.round(r*255).toString(16).padStart(2,"0"):l}function Mn(e){return!e||typeof e!="string"?"rgb":ot(e.trim())?.mode??"rgb"}function Ae(e,t){let o={mode:"rgb",r:e.r/255,g:e.g/255,b:e.b/255,alpha:e.a};switch(t){case"oklch":return Kd(o);case"oklab":return Wd(o);case"lch":return Xd(o);case"lab":return Qd(o);default:return o}}function n9(e){let t=e?l9(e):null;return!t||!("r"in t)||!("g"in t)||!("b"in t)?{r:255,g:255,b:255,a:1}:{r:Math.round(Math.min(255,Math.max(0,t.r*255))),g:Math.round(Math.min(255,Math.max(0,t.g*255))),b:Math.round(Math.min(255,Math.max(0,t.b*255))),a:t.alpha??1}}function i9(e){return e?r9(e):""}function Vt(e){let t={mode:"rgb",r:e.r/255,g:e.g/255,b:e.b/255},o=Gd(t);return o?{h:o.h??0,s:o.s*100,l:o.l*100}:{h:0,s:0,l:0}}function u9(e){let t={mode:"hsl",h:e.h,s:e.s/100,l:e.l/100},o=l9(t);return!o||!("r"in o)||!("g"in o)||!("b"in o)?{r:0,g:0,b:0}:{r:Math.round(o.r*255),g:Math.round(o.g*255),b:Math.round(o.b*255)}}import{jsx as ye,jsxs as v1}from"react/jsx-runtime";var d9=16,Tt=4,es=245,yn=260,ts=200,os="linear-gradient(45deg, #e0e0e0 25%, transparent 25%), linear-gradient(-45deg, #e0e0e0 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #e0e0e0 75%), linear-gradient(-45deg, transparent 75%, #e0e0e0 75%)",as=["oklch","oklab","lch","lab","hsl"],Sn=["oklch","oklab","lch","lab"],s9=["rgb","hsl","oklch","oklab","lch","lab"];function c9(e){let t=Mn(e);return as.includes(t)?t:"rgb"}function fo(e,t){let o=Vt({r:e.r,g:e.g,b:e.b}),a=Ae(e,"oklch"),r=Ae(e,"oklab"),l=Ae(e,"lch"),n=Ae(e,"lab");return{hex:is(t,e),r:e.r,g:e.g,b:e.b,h:Math.round(o.h),s:Math.round(o.s),l:Math.round(o.l),a:Math.round(e.a*100),oklch_l:Math.round(a.l*100),oklch_c:Math.round(a.c*1e3)/10,oklch_h:Math.round(a.h||0),oklab_l:Math.round(r.l*100),oklab_a:Math.round(r.a*1e3)/10,oklab_b:Math.round(r.b*1e3)/10,lch_l:Math.round(l.l),lch_c:Math.round(l.c),lch_h:Math.round(l.h||0),lab_l:Math.round(n.l),lab_a:Math.round(n.a),lab_b:Math.round(n.b)}}function p9(e,t){let o=t.a/100;switch(e){case"oklch":return{mode:"oklch",l:t.oklch_l/100,c:t.oklch_c/100,h:t.oklch_h,alpha:o};case"oklab":return{mode:"oklab",l:t.oklab_l/100,a:t.oklab_a/100,b:t.oklab_b/100,alpha:o};case"lch":return{mode:"lch",l:t.lch_l,c:t.lch_c,h:t.lch_h,alpha:o};case"lab":return{mode:"lab",l:t.lab_l,a:t.lab_a,b:t.lab_b,alpha:o};case"hsl":return{mode:"hsl",h:t.h,s:t.s,l:t.l};default:return{mode:"rgb",r:t.r/255,g:t.g/255,b:t.b/255,alpha:o}}}function rs(e){let t=e?.closest(".property-panel-content")??e?.closest(".property-panel");return t?t.getBoundingClientRect():{top:0,bottom:window.innerHeight,left:0,right:window.innerWidth}}function ls(e,t=es){let o=e.getBoundingClientRect(),a=rs(e),r=a.bottom-o.bottom-Tt,l=o.top-a.top-Tt,i=r<t&&l>=t?o.top-t-Tt:o.bottom+Tt;i=Math.max(a.top+Tt,Math.min(i,a.bottom-t-Tt));let u=o.left;return u+yn>a.right&&(u=a.right-yn-d9),u<a.left+d9&&(u=a.left+d9),{top:i,left:u}}function C9(e){return e!=null&&typeof e=="string"?e:"#ffffff"}function f9(e){let{r:t,g:o,b:a,a:r}=lt(C9(e));return{type:"rgba",r:t,g:o,b:a,a:r}}function ns(e,t){let o=e||Pt(t);return t.a>=1?{backgroundColor:o}:{backgroundColor:o,backgroundImage:`linear-gradient(0deg, ${o}, ${o}), ${os}`,backgroundSize:"100% 100%, 8px 8px, 8px 8px, 8px 8px, 8px 8px",backgroundPosition:"0 0, 0 0, 0 4px, 4px -4px, -4px 0"}}function is(e,t){let o=typeof e=="string"?e.trim():"";return fa(o)?o:co(t)}var us=e=>e.preventDefault(),ds=e=>{e.key==="Enter"&&e.currentTarget.blur()};function ss(e,t){switch(t.type){case"SET_ALL":return{format:e.format,hex:t.hex,r:t.r,g:t.g,b:t.b,h:t.h,s:t.s,l:t.l,a:t.a,oklch_l:t.oklch_l,oklch_c:t.oklch_c,oklch_h:t.oklch_h,oklab_l:t.oklab_l,oklab_a:t.oklab_a,oklab_b:t.oklab_b,lch_l:t.lch_l,lch_c:t.lch_c,lch_h:t.lch_h,lab_l:t.lab_l,lab_a:t.lab_a,lab_b:t.lab_b};case"SET_RGBA":{let{r:o,g:a,b:r,a:l}=t,n=Vt({r:o,g:a,b:r}),i={r:o,g:a,b:r,a:l/100},u=Ae(i,"oklch"),d=Ae(i,"oklab"),s=Ae(i,"lch"),c=Ae(i,"lab");return{...e,hex:co(i),r:o,g:a,b:r,h:Math.round(n.h),s:Math.round(n.s),l:Math.round(n.l),a:l,oklch_l:Math.round(u.l*100),oklch_c:Math.round(u.c*1e3)/10,oklch_h:Math.round(u.h||0),oklab_l:Math.round(d.l*100),oklab_a:Math.round(d.a*1e3)/10,oklab_b:Math.round(d.b*1e3)/10,lch_l:Math.round(s.l),lch_c:Math.round(s.c),lch_h:Math.round(s.h||0),lab_l:Math.round(c.l),lab_a:Math.round(c.a),lab_b:Math.round(c.b)}}case"SET_HEX":return{...e,hex:t.hex};case"SET_CHANNEL":{let o={...e,[t.channel]:t.value},a;if(e.format==="rgb")a={r:o.r,g:o.g,b:o.b,a:o.a/100};else if(e.format==="hsl"){let d=u9({h:o.h,s:o.s,l:o.l});o.r=Math.round(d.r),o.g=Math.round(d.g),o.b=Math.round(d.b),a={r:o.r,g:o.g,b:o.b,a:o.a/100}}else{let d=p9(e.format,o);a=n9(d),o.r=a.r,o.g=a.g,o.b=a.b}let r=Vt({r:o.r,g:o.g,b:o.b}),l=Ae(a,"oklch"),n=Ae(a,"oklab"),i=Ae(a,"lch"),u=Ae(a,"lab");return{...o,hex:co(a),h:Math.round(r.h),s:Math.round(r.s),l:Math.round(r.l),oklch_l:Math.round(l.l*100),oklch_c:Math.round(l.c*1e3)/10,oklch_h:Math.round(l.h||0),oklab_l:Math.round(n.l*100),oklab_a:Math.round(n.a*1e3)/10,oklab_b:Math.round(n.b*1e3)/10,lch_l:Math.round(i.l),lch_c:Math.round(i.c),lch_h:Math.round(i.h||0),lab_l:Math.round(u.l),lab_a:Math.round(u.a),lab_b:Math.round(u.b)}}case"SET_FORMAT":return{...e,format:t.format};default:return e}}function pa({label:e,value:t,onChange:o,id:a="color"}){let r=`${a}-trigger`,l=`${a}-popover`,n=C9(t),[{colorInput:i,colorState:u},d]=a0(()=>f9(n)),[s,c]=me.useReducer(ss,n,p=>{let v=lt(p),F=fo(v,p);return{format:c9(p),...F}}),C=me.useRef(s);C.current=s;let L=me.useRef(null),g=me.useRef(t),x=me.useRef(o);x.current=o;let f=me.useCallback(p=>{let v=C.current.format,F;if(Sn.includes(v)){let D=Ae(p,v);F=i9(D)}else if(v==="hsl"){let D=Vt({r:p.r,g:p.g,b:p.b}),A=Math.round(p.a*100)/100;F=A>=1?`hsl(${Math.round(D.h)}, ${Math.round(D.s)}%, ${Math.round(D.l)}%)`:`hsla(${Math.round(D.h)}, ${Math.round(D.s)}%, ${Math.round(D.l)}%, ${A})`}else F=Pt(p);F!==L.current&&(L.current=F,g.current=F,typeof x.current=="function"&&x.current(F))},[]),m=r0(f,ts),h=n0({computePosition:ls,onClose:m.flush,trapFocus:!0});me.useEffect(()=>{let p=C9(t);if(p===g.current)return;g.current=p;let v=lt(p);d(f9(t));let F=fo(v,p),D=c9(p);c({type:"SET_ALL",...F}),D!==C.current.format&&c({type:"SET_FORMAT",format:D})},[t,d]);let T=me.useCallback(p=>{m.cancel();let v=p.target.value;if((!v||!v.startsWith("#"))&&(v="#"+v.replace(/^#+/,"")),fa(v)){d({type:"hex",value:v});let F=lt(v),D=fo(F,v);c({type:"SET_ALL",...D})}else c({type:"SET_HEX",hex:v})},[m,d]),V=me.useCallback(()=>{m.cancel();let p=C.current.hex.trim();if(fa(p)){let v=lt(p),F=fo(v,p);c({type:"SET_ALL",...F}),f(v)}else{let v=C.current;c({type:"SET_HEX",hex:co({r:v.r,g:v.g,b:v.b,a:v.a/100})})}},[m,f]),S=me.useMemo(()=>{switch(s.format){case"hsl":return[{key:"h",label:"H",min:0,max:360},{key:"s",label:"S",min:0,max:100},{key:"l",label:"L",min:0,max:100}];case"oklch":return[{key:"oklch_l",label:"L",min:0,max:100,step:1},{key:"oklch_c",label:"C",min:0,max:40,step:.1},{key:"oklch_h",label:"H",min:0,max:360,step:1}];case"oklab":return[{key:"oklab_l",label:"L",min:0,max:100,step:1},{key:"oklab_a",label:"A",min:-40,max:40,step:.1},{key:"oklab_b",label:"B",min:-40,max:40,step:.1}];case"lch":return[{key:"lch_l",label:"L",min:0,max:100,step:1},{key:"lch_c",label:"C",min:0,max:150,step:1},{key:"lch_h",label:"H",min:0,max:360,step:1}];case"lab":return[{key:"lab_l",label:"L",min:0,max:100,step:1},{key:"lab_a",label:"A",min:-128,max:127,step:1},{key:"lab_b",label:"B",min:-128,max:127,step:1}];default:return[{key:"r",label:"R",min:0,max:255},{key:"g",label:"G",min:0,max:255},{key:"b",label:"B",min:0,max:255}]}},[s.format]),E=me.useCallback((p,v)=>{m.cancel();let F=String(v).trim(),D=["oklch_c","oklab_a","oklab_b"].includes(p),A=F===""?0:D?parseFloat(F):parseInt(F,10);if(Number.isNaN(A))return;let Z=C.current,$=S.find(se=>se.key===p),J=0,le=100;$?(J=$.min,le=$.max):p==="a"?(J=0,le=100):p==="h"?(J=0,le=360):Z.format==="rgb"&&(J=0,le=255);let ae=Math.min(le,Math.max(J,A));c({type:"SET_CHANNEL",channel:p,value:ae});let ne={...Z,[p]:ae},ie;if(Z.format==="rgb")ie={r:ne.r,g:ne.g,b:ne.b,a:ne.a/100};else if(Z.format==="hsl"){let se=u9({h:ne.h,s:ne.s,l:ne.l});ie={r:se.r,g:se.g,b:se.b,a:ne.a/100}}else{let se=p9(Z.format,ne);ie=n9(se)}d({type:"rgba",...ie}),f(ie)},[m,d,f,S]),z=me.useCallback(p=>{d(p);let v=p.getRgba();c({type:"SET_RGBA",r:Math.round(v.r),g:Math.round(v.g),b:Math.round(v.b),a:Math.round(v.a*100)}),m({r:v.r,g:v.g,b:v.b,a:v.a})},[d,m]),k=me.useCallback(p=>{let v=p.target.closest('[role="slider"]');v instanceof HTMLElement&&v.focus()},[]);me.useLayoutEffect(()=>{if(!h.isOpen||!h.popoverRef.current)return;let p=h.popoverRef.current.offsetHeight;p<=0||h.reposition(p)},[h.isOpen,h.reposition]);let B=u?.rgba??{r:255,g:255,b:255,a:1},H=me.useCallback(()=>{let p=s.format;if(Sn.includes(p)){let v=p9(p,s);return i9(v)}else if(p==="hsl"){let v=Vt({r:B.r,g:B.g,b:B.b}),F=Math.round(B.a*100)/100;return F>=1?`hsl(${Math.round(v.h)}, ${Math.round(v.s)}%, ${Math.round(v.l)}%)`:`hsla(${Math.round(v.h)}, ${Math.round(v.s)}%, ${Math.round(v.l)}%, ${F})`}else return Pt(B)},[s,B])(),y=ns(H,B),[w,M]=me.useState(H),_=me.useRef(w);_.current=w,me.useEffect(()=>{M(H)},[H]);let I=me.useCallback(p=>{let v=p.target.value;M(v)},[]),O=me.useCallback(()=>{m.cancel();let p=_.current.trim();if(!p||!bn(p)){M(H);return}let v=lt(p),F=Pt(v),D=Pt(B);if(F!==D){d(f9(p));let A=fo(v,p),Z=c9(p);c({type:"SET_ALL",...A}),Z!==C.current.format&&c({type:"SET_FORMAT",format:Z}),p!==L.current&&(L.current=p,g.current=p,typeof x.current=="function"&&x.current(p))}else M(H)},[m,H,B,d]),b=me.useCallback(p=>{p.key==="Enter"&&p.currentTarget.blur()},[]),Q=me.useCallback(()=>{let p=s9.indexOf(s.format),v=s9[(p+1)%s9.length]??s.format;c({type:"SET_FORMAT",format:v})},[s.format]),U=me.useMemo(()=>{let p=h.triggerRef.current;if(!p)return document.body;let v=p.getRootNode();return v instanceof ShadowRoot?v:document.body},[h.isOpen,h.triggerRef]);return ye(f1,{label:e,id:a,className:"colorEditor-fieldset",children:v1("div",{className:"colorEditor-wrapper",children:[ye("button",{ref:h.triggerRef,id:r,type:"button",className:"colorEditor-swatch-only",onClick:h.toggle,"aria-expanded":h.isOpen,"aria-haspopup":"dialog","aria-controls":l,"aria-label":`${e}, open color picker. Current color: ${H}`,children:ye("span",{style:y,"aria-hidden":"true",className:"colorEditor-swatch"})}),ye("input",{type:"text",className:"colorEditor-value-input",value:w,onChange:I,onBlur:O,onKeyDown:b,"aria-label":`${e} color value`,placeholder:"Enter color value",spellCheck:"false",autoComplete:"off"}),h.isOpen&&Yd(v1("div",{ref:h.popoverRef,id:l,role:"dialog","aria-modal":"true","aria-label":`${e} picker`,style:{top:h.position.top,left:h.position.left},onDragStart:us,onMouseUp:k,className:"colorEditor-popover",children:[v1(vt,{color:i,onChange:z,className:"colorEditor-picker",children:[ye(vt.Saturation,{className:"colorEditor-picker-saturation","aria-label":"Color saturation and brightness"}),v1("div",{className:"colorEditor-picker-toolbar",children:[ye(vt.EyeDropper,{"aria-label":"Pick color from screen",children:ye(Kt,{size:18,"aria-hidden":"true"})}),v1("div",{className:"colorEditor-picker-sliders",children:[ye(vt.Hue,{className:"h-4 colorEditor-picker-hue","aria-label":"Hue, 0 to 360 degrees"}),ye(vt.Alpha,{className:"h-4 colorEditor-picker-alpha","aria-label":"Alpha transparency, 0 to 100 percent"})]})]})]}),v1("div",{className:"colorEditor-input-wrapper",children:[v1("div",{className:"colorEditor-input-group",children:[ye("input",{type:"text",value:s.hex,onChange:T,onBlur:V,onKeyDown:ds,"aria-label":"Hexadecimal color value",className:"colorEditor-input-hex",spellCheck:"false",autoComplete:"off"}),ye("label",{className:"colorEditor-input-label","aria-hidden":"true",children:"HEX"})]}),v1("div",{className:"colorEditor-channels-wrapper",children:[v1("div",{className:"colorEditor-input-container",children:[S.map(p=>ye("div",{className:"colorEditor-input-group-no-label",children:ye("input",{type:"number",min:p.min,max:p.max,step:p.step||1,value:s[p.key],onChange:v=>E(p.key,v.target.value),onBlur:v=>E(p.key,v.target.value),"aria-label":`${p.label} (${s.format.toUpperCase()}), ${p.min} to ${p.max}`,"aria-valuemin":p.min,"aria-valuemax":p.max,"aria-valuenow":s[p.key],className:"colorEditor-input-rgba"})},p.key)),ye("div",{className:"colorEditor-input-group-no-label",children:ye("input",{type:"number",min:0,max:100,value:s.a,onChange:p=>E("a",p.target.value),onBlur:p=>E("a",p.target.value),"aria-label":"Alpha, 0 to 100 percent","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":s.a,className:"colorEditor-input-rgba"})})]}),ye("div",{className:"colorEditor-format-selector",children:v1("button",{type:"button",className:"colorEditor-format-picker",onClick:Q,"aria-label":`Color format: ${s.format.toUpperCase()}. Click to change format.`,"aria-live":"polite",title:"Click to cycle format: RGB, HSL, OKLCH, OKLAB, LCH, LAB",children:[S.map(p=>ye("span",{className:"colorEditor-format-letter","aria-hidden":"true",children:p.label},p.key)),ye("span",{className:"colorEditor-format-letter","aria-hidden":"true",children:"A"})]})})]})]})]}),U)]})})}import $e from"react";import{jsx as _t,jsxs as cs}from"react/jsx-runtime";function x1({label:e,value:t,onChange:o,units:a=So,constraints:r=n1,defaultUnit:l="px",placeholder:n=0,id:i="dimension",icon:u}){let d=$e.useMemo(()=>new Set(a.map(H=>H.value)),[a]),s=$e.useMemo(()=>Ut(a),[a]),c=$e.useMemo(()=>{if(n==null||n==="")return"";if(typeof n=="number")return String(n);let H=Be(String(n),l,s);return H.numericValue!==""?String(H.numericValue):String(n)},[n,l,s]),[C,L]=$e.useState(()=>{let H=Be(t,l,s);return H.numericValue!==""?String(H.numericValue):""}),[g,x]=$e.useState(()=>Be(t,l,s).unit),f=$e.useRef(o);f.current=o;let m=$e.useRef(t);$e.useEffect(()=>{if(t===m.current)return;m.current=t;let H=Be(t,l,s);L(H.numericValue!==""?String(H.numericValue):""),x(H.unit)},[t,l,s]);let h=$e.useCallback((H,y)=>{let w=parseFloat(H);if(H===""||isNaN(w)){if(m.current==="")return;m.current="",typeof f.current=="function"&&f.current("");return}let M=i1(w,y,r),_=u1(M,y,r),I=Ro(_,y);I!==m.current&&(m.current=I,typeof f.current=="function"&&f.current(I))},[r]),T=$e.useCallback(H=>{let y=H.target.value;L(y);let w=Be(y,l,s);w.numericValue!==""&&w.unit&&d.has(w.unit)&&w.unit!==g&&x(w.unit)},[l,s,g,d]),V=$e.useCallback(H=>{let y=H.clipboardData.getData("text"),w=Be(y,l,s);if(w.numericValue!==""&&w.unit&&d.has(w.unit)){H.preventDefault(),L(String(w.numericValue)),x(w.unit);let M=i1(w.numericValue,w.unit,r),_=u1(M,w.unit,r),I=Ro(_,w.unit);m.current=I,typeof f.current=="function"&&f.current(I)}},[l,s,d,r]),S=$e.useCallback(()=>{if(C===""){h("",g);return}let H=parseFloat(C);if(isNaN(H)){let M=Be(t,l,s);L(M.numericValue!==""?String(M.numericValue):"");return}let y=i1(H,g,r),w=u1(y,g,r);L(String(w)),h(String(w),g)},[C,g,t,l,s,r,h]),E=$e.useCallback(H=>{if(H.key==="Enter"){H.currentTarget.blur();return}if(H.key==="ArrowUp"||H.key==="ArrowDown"){H.preventDefault();let y=Ho(C,H.key,H.shiftKey,g,r);if(y===null)return;L(y),h(y,g)}},[C,g,r,h]),z=$e.useCallback(H=>{let y=H.target.value;if(!d.has(y))return;if(x(y),C===""){h("",y);return}let w=parseFloat(C);if(isNaN(w))return;let M=i1(w,y,r),_=u1(M,y,r);L(String(_));let I=Ro(_,y);m.current=I,typeof f.current=="function"&&f.current(I)},[C,d,r,h]),k=`${i}-input`,B=`${i}-unit`,j=a.some(H=>H.value!=="");return _t(f1,{label:e,id:i,className:"dimensionEditor-fieldset",children:cs("div",{className:"dimensionEditor-row",children:[u&&_t("span",{className:"dimensionEditor-icon","aria-hidden":"true",children:_t(u,{size:14,width:14,height:14})}),_t("input",{id:k,type:"text",className:u?"dimensionEditor-input dimensionEditor-input--with-icon":"dimensionEditor-input",value:C,placeholder:c,onChange:T,onPaste:V,onBlur:S,onKeyDown:E,"aria-label":`${e} value`,autoComplete:"off",spellCheck:"false"}),j&&_t("select",{id:B,className:"dimensionEditor-unit",value:g,onChange:z,"aria-label":`${e} unit`,children:a.map(H=>_t("option",{value:H.value,children:H.label},H.value))})]})})}function Fe(e,t){if(e==null)return{};var o={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.indexOf(a)!==-1)continue;o[a]=e[a]}return o}function X(){return X=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var a in o)({}).hasOwnProperty.call(o,a)&&(e[a]=o[a])}return e},X.apply(null,arguments)}var G=L2(On(),1),gs=L2(Zn(),1);import*as re from"react";import{cloneElement as cw,Component as fw,useRef as o1,useCallback as oe,useEffect as L1,useMemo as Ot}from"react";var An=e=>typeof e=="object"&&e!=null&&e.nodeType===1,$n=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",Ma=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){let o=getComputedStyle(e,null);return $n(o.overflowY,t)||$n(o.overflowX,t)||(a=>{let r=(l=>{if(!l.ownerDocument||!l.ownerDocument.defaultView)return null;try{return l.ownerDocument.defaultView.frameElement}catch{return null}})(a);return!!r&&(r.clientHeight<a.scrollHeight||r.clientWidth<a.scrollWidth)})(e)}return!1},ya=(e,t,o,a,r,l,n,i)=>l<e&&n>t||l>e&&n<t?0:l<=e&&i<=o||n>=t&&i>=o?l-e-a:n>t&&i<o||l<e&&i>o?n-t+r:0,hs=e=>{let t=e.parentElement;return t??(e.getRootNode().host||null)},Fn=(e,t)=>{var o,a,r,l;if(typeof document>"u")return[];let{scrollMode:n,block:i,inline:u,boundary:d,skipOverflowHiddenElements:s}=t,c=typeof d=="function"?d:I=>I!==d;if(!An(e))throw new TypeError("Invalid target");let C=document.scrollingElement||document.documentElement,L=[],g=e;for(;An(g)&&c(g);){if(g=hs(g),g===C){L.push(g);break}g!=null&&g===document.body&&Ma(g)&&!Ma(document.documentElement)||g!=null&&Ma(g,s)&&L.push(g)}let x=(a=(o=window.visualViewport)==null?void 0:o.width)!=null?a:innerWidth,f=(l=(r=window.visualViewport)==null?void 0:r.height)!=null?l:innerHeight,{scrollX:m,scrollY:h}=window,{height:T,width:V,top:S,right:E,bottom:z,left:k}=e.getBoundingClientRect(),{top:B,right:j,bottom:H,left:y}=(I=>{let O=window.getComputedStyle(I);return{top:parseFloat(O.scrollMarginTop)||0,right:parseFloat(O.scrollMarginRight)||0,bottom:parseFloat(O.scrollMarginBottom)||0,left:parseFloat(O.scrollMarginLeft)||0}})(e),w=i==="start"||i==="nearest"?S-B:i==="end"?z+H:S+T/2-B+H,M=u==="center"?k+V/2-y+j:u==="end"?E+j:k-y,_=[];for(let I=0;I<L.length;I++){let O=L[I],{height:b,width:Q,top:U,right:p,bottom:v,left:F}=O.getBoundingClientRect();if(n==="if-needed"&&S>=0&&k>=0&&z<=f&&E<=x&&(O===C&&!Ma(O)||S>=U&&z<=v&&k>=F&&E<=p))return _;let D=getComputedStyle(O),A=parseInt(D.borderLeftWidth,10),Z=parseInt(D.borderTopWidth,10),$=parseInt(D.borderRightWidth,10),J=parseInt(D.borderBottomWidth,10),le=0,ae=0,ne="offsetWidth"in O?O.offsetWidth-O.clientWidth-A-$:0,ie="offsetHeight"in O?O.offsetHeight-O.clientHeight-Z-J:0,se="offsetWidth"in O?O.offsetWidth===0?0:Q/O.offsetWidth:0,he="offsetHeight"in O?O.offsetHeight===0?0:b/O.offsetHeight:0;if(C===O)le=i==="start"?w:i==="end"?w-f:i==="nearest"?ya(h,h+f,f,Z,J,h+w,h+w+T,T):w-f/2,ae=u==="start"?M:u==="center"?M-x/2:u==="end"?M-x:ya(m,m+x,x,A,$,m+M,m+M+V,V),le=Math.max(0,le+h),ae=Math.max(0,ae+m);else{le=i==="start"?w-U-Z:i==="end"?w-v+J+ie:i==="nearest"?ya(U,v,b,Z,J+ie,w,w+T,T):w-(U+b/2)+ie/2,ae=u==="start"?M-F-A:u==="center"?M-(F+Q/2)+ne/2:u==="end"?M-p+$+ne:ya(F,p,Q,A,$+ne,M,M+V,V);let{scrollLeft:Ue,scrollTop:He}=O;le=he===0?0:Math.max(0,Math.min(He+le/he,O.scrollHeight-b/he+ie)),ae=se===0?0:Math.max(0,Math.min(Ue+ae/se,O.scrollWidth-Q/se+ne)),w+=He-le,M+=Ue-ae}_.push({el:O,top:le,left:ae})}return _};var vs=0;function Kn(){return String(vs++)}function mo(e){var t=re.useRef(e);return t.current=e,t}function xs(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return function(a){t.forEach(function(r){typeof r=="function"?r(a):r&&(r.current=a)})}}function g9(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return function(a){for(var r=arguments.length,l=new Array(r>1?r-1:0),n=1;n<r;n++)l[n-1]=arguments[n];return t.some(function(i){return i&&i.apply(void 0,[a].concat(l)),a.preventDownshiftDefault||a.hasOwnProperty("nativeEvent")&&a.nativeEvent.preventDownshiftDefault})}}function Wn(e,t){var o;function a(){o&&clearTimeout(o)}function r(){for(var l=arguments.length,n=new Array(l),i=0;i<l;i++)n[i]=arguments[i];a(),o=setTimeout(function(){o=null,e.apply(void 0,n)},t)}return r.cancel=a,r}var Ls=Wn(function(e){Xn(e).textContent=""},500);function Xn(e){var t=e.getElementById("a11y-status-message");return t||(t=e.createElement("div"),t.setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t),t)}function ws(e,t){if(!(!e||!t)){var o=Xn(t);o.textContent=e,Ls(t)}}function Is(e){var t=e?.getElementById("a11y-status-message");t&&t.remove()}function ho(){}var x9=ho;function Ra(e,t){if(!t)return e;var o=Object.keys(e);return o.reduce(function(a,r){return t[r]!==void 0&&(a[r]=t[r]),a},X({},e))}function bs(e,t){if(e){var o=Fn(e,{boundary:t,block:"nearest",scrollMode:"if-needed"});o.forEach(function(a){var r=a.el,l=a.top,n=a.left;r.scrollTop=l,r.scrollLeft=n})}}function Nn(e,t,o){var a=e===t||t instanceof o.Node&&e.contains&&e.contains(t);return a}function Ms(e,t){var o;function a(){o&&clearTimeout(o)}function r(){for(var l=arguments.length,n=new Array(l),i=0;i<l;i++)n[i]=arguments[i];a(),o=setTimeout(function(){o=null,e.apply(void 0,n)},t)}return r.cancel=a,r}function ve(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return function(a){for(var r=arguments.length,l=new Array(r>1?r-1:0),n=1;n<r;n++)l[n-1]=arguments[n];return t.some(function(i){return i&&i.apply(void 0,[a].concat(l)),a.preventDownshiftDefault||a.hasOwnProperty("nativeEvent")&&a.nativeEvent.preventDownshiftDefault})}}function R1(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return function(a){t.forEach(function(r){typeof r=="function"?r(a):r&&(r.current=a)})}}function ys(e,t){return e[t]!==void 0}function Ha(e){var t=e.key,o=e.keyCode;return o>=37&&o<=40&&t.indexOf("Arrow")!==0?"Arrow"+t:t}function j1(e,t,o,a,r){r===void 0&&(r=!1);var l=o.length;if(l===0)return-1;var n=l-1;(typeof e!="number"||e<0||e>n)&&(e=t>0?-1:n+1);var i=e+t;i<0?i=r?n:0:i>n&&(i=r?0:n);var u=Dt(i,t<0,o,a,r);return u===-1?e>=l?-1:e:u}function Dt(e,t,o,a,r){r===void 0&&(r=!1);var l=o.length;if(t){for(var n=e;n>=0;n--)if(!a(o[n],n))return n}else for(var i=e;i<l;i++)if(!a(o[i],i))return i;return r?Dt(t?l-1:0,t,o,a):-1}function qn(e,t,o,a){return a===void 0&&(a=!0),o&&t.some(function(r){return r&&(Nn(r,e,o)||a&&Nn(r,o.document.activeElement,o))})}function L9(e){return""+e.slice(0,1).toUpperCase()+e.slice(1)}function Ss(e,t,o,a){for(var r=e.type,l={},n=Object.keys(o),i=0,u=n;i<u.length;i++){var d=u[i];Rs(d,e,t,o,a),a[d]!==o[d]&&(l[d]=a[d])}t.onStateChange&&Object.keys(l).length&&t.onStateChange(X({type:r},l))}function Rs(e,t,o,a,r){if(r[e]!==a[e]){var l="on"+L9(e)+"Change",n=o[l];if(typeof n=="function"){var i=t.type;n(X({type:i},r))}}}function Qn(e,t,o,a){var r=re.useRef(null),l=re.useRef(void 0),n=mo(t),i=re.useCallback(function(C,L){l.current=L,C=Ra(C,n.current);var g=e(C,n.current,L),x=n.current.stateReducer(C,X({},L,{changes:g}));return X({},C,x)},[n,e]),u=re.useReducer(i,t,o),d=u[0],s=u[1],c=l.current;return re.useEffect(function(){var C,L=Ra((C=r.current)!=null?C:{},n.current),g=c&&r.current&&!a(L,d);g&&Ss(c,n.current,L,d),r.current=d},[d,c,a,n]),[d,s]}function w9(e,t,o,a){var r=Qn(e,t,o,a),l=r[0],n=r[1];return[Ra(l,t),n]}function I9(e,t,o,a){if(e!==void 0&&t!==void 0)return[e,t];if(e!==void 0){var r=o.indexOf(e);if(r<0)throw new Error(a);return[e,o.indexOf(e)]}if(t!==void 0){var l=o[t];if(l===void 0)throw new Error(a);return[l,t]}throw new Error(a)}function Oa(){var e=re.useRef(!0);return re.useEffect(function(){return e.current=!1,function(){e.current=!0}},[]),e.current}function Hs(e,t){return t.changes}var ks={environment:G.default.shape({addEventListener:G.default.func.isRequired,removeEventListener:G.default.func.isRequired,document:G.default.shape({createElement:G.default.func.isRequired,getElementById:G.default.func.isRequired,activeElement:G.default.any.isRequired,body:G.default.any.isRequired}).isRequired,Node:G.default.func.isRequired}),itemToKey:G.default.func,stateReducer:G.default.func};function w1(e,t,o){var a=e["default"+L9(t)];return a!==void 0?a:o[t]}function nt(e,t,o){var a=e[t];if(a!==void 0)return a;var r=e["initial"+L9(t)];return r!==void 0?r:w1(e,t,o)}var Un=Wn(function(e,t){ws(e,t)},200);function b9(e,t,o,a){var r=a?.document,l=Oa();re.useEffect(function(){if(!(!e||l||!r)){var n=e(t);Un(n,r)}},o),re.useEffect(function(){return function(){Un.cancel(),Is(r)}},[r])}var po=X({},ks,{getA11yStatusMessage:G.default.func,highlightedIndex:G.default.number,defaultHighlightedIndex:G.default.number,initialHighlightedIndex:G.default.number,isOpen:G.default.bool,defaultIsOpen:G.default.bool,initialIsOpen:G.default.bool,selectedItem:G.default.any,initialSelectedItem:G.default.any,defaultSelectedItem:G.default.any,id:G.default.string,labelId:G.default.string,menuId:G.default.string,getItemId:G.default.func,toggleButtonId:G.default.string,onSelectedItemChange:G.default.func,onHighlightedIndexChange:G.default.func,onStateChange:G.default.func,onIsOpenChange:G.default.func,scrollIntoView:G.default.func}),Co={itemToString:function(t){return t?String(t):""},itemToKey:function(t){return t},stateReducer:Hs,scrollIntoView:bs,environment:typeof window>"u"?void 0:window},Ne={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""},Ps=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?re.useLayoutEffect:re.useEffect;function Vs(e){return/^\S{1}$/.test(e)}function Jn(e){var t=nt(e,"selectedItem",Ne),o=nt(e,"isOpen",Ne),a=Ts(e),r=nt(e,"inputValue",Ne);return{highlightedIndex:a<0&&t&&o?e.items.findIndex(function(l){return e.itemToKey(l)===e.itemToKey(t)}):a,isOpen:o,selectedItem:t,inputValue:r}}function it(e,t,o){var a=e.items,r=e.initialHighlightedIndex,l=e.defaultHighlightedIndex,n=e.isItemDisabled,i=e.itemToKey,u=t.selectedItem,d=t.highlightedIndex;return a.length===0?-1:r!==void 0&&d===r&&!n(a[r],r)?r:l!==void 0&&!n(a[l],l)?l:u?a.findIndex(function(s){return i(u)===i(s)}):o<0&&!n(a[a.length-1],a.length-1)?a.length-1:o>0&&!n(a[0],0)?0:-1}function Yn(e,t,o){var a=re.useRef({isMouseDown:!1,isTouchMove:!1,isTouchEnd:!1}),r=re.useCallback(function(){return o.map(function(l){return l.current})},[o]);return re.useEffect(function(){if(!e)return ho;function l(){a.current.isTouchEnd=!1,a.current.isMouseDown=!0}function n(s){a.current.isMouseDown=!1,qn(s.target,r(),e)||t()}function i(){a.current.isTouchEnd=!1,a.current.isTouchMove=!1}function u(){a.current.isTouchMove=!0}function d(s){a.current.isTouchEnd=!0,!a.current.isTouchMove&&!qn(s.target,r(),e,!1)&&t()}return e.addEventListener("mousedown",l),e.addEventListener("mouseup",n),e.addEventListener("touchstart",i),e.addEventListener("touchmove",u),e.addEventListener("touchend",d),function(){e.removeEventListener("mousedown",l),e.removeEventListener("mouseup",n),e.removeEventListener("touchstart",i),e.removeEventListener("touchmove",u),e.removeEventListener("touchend",d)}},[e,r,t]),a.current}var M9=function(){return ho};function e5(e){var t=e.highlightedIndex,o=e.isOpen,a=e.itemRefs,r=e.getItemNodeFromIndex,l=e.menuElement,n=e.scrollIntoView,i=re.useRef(!0);return Ps(function(){t<0||!o||!Object.keys(a.current).length||(i.current===!1?i.current=!0:n(r(t),l))},[t]),i}var y9=ho;function ka(e,t,o){var a;o===void 0&&(o=!0);var r=((a=e.items)==null?void 0:a.length)&&t>=0;return X({isOpen:!1,highlightedIndex:-1},r&&X({selectedItem:e.items[t],isOpen:w1(e,"isOpen",Ne),highlightedIndex:w1(e,"highlightedIndex",Ne)},o&&{inputValue:e.itemToString(e.items[t])}))}function t5(e,t){return e.isOpen===t.isOpen&&e.inputValue===t.inputValue&&e.highlightedIndex===t.highlightedIndex&&e.selectedItem===t.selectedItem}function Pa(e){var t=w1(e,"highlightedIndex",Ne);return t>-1&&e.isItemDisabled(e.items[t],t)?-1:t}function Ts(e){var t=nt(e,"highlightedIndex",Ne);return t>-1&&e.isItemDisabled(e.items[t],t)?-1:t}function o5(e,t,o,a){var r=o.type,l;switch(r){case a.ItemMouseMove:l={highlightedIndex:o.disabled?-1:o.index};break;case a.MenuMouseLeave:l={highlightedIndex:-1};break;case a.ToggleButtonClick:case a.FunctionToggleMenu:l={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:it(t,e,0)};break;case a.FunctionOpenMenu:l={isOpen:!0,highlightedIndex:it(t,e,0)};break;case a.FunctionCloseMenu:l={isOpen:!1};break;case a.FunctionSetHighlightedIndex:l={highlightedIndex:t.isItemDisabled(t.items[o.highlightedIndex],o.highlightedIndex)?-1:o.highlightedIndex};break;case a.FunctionSetInputValue:l={inputValue:o.inputValue};break;case a.FunctionReset:l={highlightedIndex:Pa(t),isOpen:w1(t,"isOpen",Ne),selectedItem:w1(t,"selectedItem",Ne),inputValue:w1(t,"inputValue",Ne)};break;default:throw new Error("Reducer called without proper action type.")}return X({},e,l)}var _s=X({},po,{items:G.default.array.isRequired,isItemDisabled:G.default.func}),Os=X({},Co,{isItemDisabled:function(){return!1}});function Ds(e){for(var t=e.keysSoFar,o=e.highlightedIndex,a=e.items,r=e.itemToString,l=e.isItemDisabled,n=t.toLowerCase(),i=0;i<a.length;i++){var u=(i+o+(t.length<2?1:0))%a.length,d=a[u];if(d!==void 0&&r(d).toLowerCase().startsWith(n)&&!l(d,u))return u}return o}var Sa=0,S9=1,R9=2,Va=3,H9=4,k9=5,P9=6,V9=7,T9=8,_9=9,O9=10,Ta=11,a5=12,r5=13,D9=14,l5=15,n5=16,i5=17,u5=18,B9=19,v9=20,d5=21,s5=Object.freeze({__proto__:null,FunctionCloseMenu:i5,FunctionOpenMenu:n5,FunctionReset:d5,FunctionSelectItem:B9,FunctionSetHighlightedIndex:u5,FunctionSetInputValue:v9,FunctionToggleMenu:l5,ItemClick:D9,ItemMouseMove:r5,MenuMouseLeave:a5,ToggleButtonBlur:Ta,ToggleButtonClick:Sa,ToggleButtonKeyDownArrowDown:S9,ToggleButtonKeyDownArrowUp:R9,ToggleButtonKeyDownCharacter:Va,ToggleButtonKeyDownEnd:P9,ToggleButtonKeyDownEnter:V9,ToggleButtonKeyDownEscape:H9,ToggleButtonKeyDownHome:k9,ToggleButtonKeyDownPageDown:O9,ToggleButtonKeyDownPageUp:_9,ToggleButtonKeyDownSpaceButton:T9});function Bs(e,t,o){var a,r=o.type,l=o.altKey,n;switch(r){case D9:n={isOpen:w1(t,"isOpen",Ne),highlightedIndex:Pa(t),selectedItem:t.items[o.index]};break;case Va:{var i=o.key,u=""+e.inputValue+i,d=!e.isOpen&&e.selectedItem?t.items.findIndex(function(L){return t.itemToKey(L)===t.itemToKey(e.selectedItem)}):e.highlightedIndex,s=Ds({keysSoFar:u,highlightedIndex:d,items:t.items,itemToString:t.itemToString,isItemDisabled:t.isItemDisabled});n={inputValue:u,highlightedIndex:s,isOpen:!0}}break;case S9:{var c=e.isOpen?j1(e.highlightedIndex,1,t.items,t.isItemDisabled):l&&e.selectedItem==null?-1:it(t,e,1);n={highlightedIndex:c,isOpen:!0}}break;case R9:if(e.isOpen&&l)n=ka(t,e.highlightedIndex,!1);else{var C=e.isOpen?j1(e.highlightedIndex,-1,t.items,t.isItemDisabled):it(t,e,-1);n={highlightedIndex:C,isOpen:!0}}break;case V9:case T9:n=ka(t,e.highlightedIndex,!1);break;case k9:n={highlightedIndex:Dt(0,!1,t.items,t.isItemDisabled),isOpen:!0};break;case P9:n={highlightedIndex:Dt(t.items.length-1,!0,t.items,t.isItemDisabled),isOpen:!0};break;case _9:n={highlightedIndex:j1(e.highlightedIndex,-10,t.items,t.isItemDisabled)};break;case O9:n={highlightedIndex:j1(e.highlightedIndex,10,t.items,t.isItemDisabled)};break;case H9:n={isOpen:!1,highlightedIndex:-1};break;case Ta:n=X({isOpen:!1,highlightedIndex:-1},e.highlightedIndex>=0&&((a=t.items)==null?void 0:a.length)&&{selectedItem:t.items[e.highlightedIndex]});break;case B9:n={selectedItem:o.selectedItem};break;default:return o5(e,t,o,s5)}return X({},e,n)}var Es=X({},re),c5=Es.useId,f5=typeof c5=="function"?Zs:As;function Zs(e){var t=e.id,o=e.labelId,a=e.menuId,r=e.getItemId,l=e.toggleButtonId,n=e.inputId,i="downshift-"+c5();t||(t=i);var u=re.useMemo(function(){return{labelId:o??t+"-label",menuId:a??t+"-menu",getItemId:r??function(d){return t+"-item-"+d},toggleButtonId:l??t+"-toggle-button",inputId:n??t+"-input"}},[r,t,n,o,a,l]);return u}function As(e){var t=e.id,o=e.labelId,a=e.menuId,r=e.getItemId,l=e.toggleButtonId,n=e.inputId,i=re.useRef(t??"downshift-"+Kn()),u=i.current,d=re.useMemo(function(){return{labelId:o??u+"-label",menuId:a??u+"-menu",getItemId:r??function(s){return u+"-item-"+s},toggleButtonId:l??u+"-toggle-button",inputId:n??u+"-input"}},[r,n,o,a,l,u]);return d}var $s=["onClick"],Fs=["onMouseLeave","refKey","ref"],Ns=["onBlur","onClick","onPress","onKeyDown","refKey","ref"],qs=["item","index","onMouseMove","onClick","onMouseDown","onPress","refKey","disabled","ref"];Da.stateChangeTypes=s5;function Da(e){e===void 0&&(e={}),x9(e,Da,_s);var t=X({},Os,e),o=t.scrollIntoView,a=t.environment,r=t.getA11yStatusMessage,l=w9(Bs,t,Jn,t5),n=l[0],i=l[1],u=n.isOpen,d=n.highlightedIndex,s=n.selectedItem,c=n.inputValue,C=o1(null),L=o1(null),g=o1({}),x=o1(null),f=f5(t),m=mo({state:n,props:t}),h=oe(function(U){return g.current[f.getItemId(U)]},[f]);b9(r,n,[u,d,s,c],a);var T=e5({menuElement:L.current,highlightedIndex:d,isOpen:u,itemRefs:g,scrollIntoView:o,getItemNodeFromIndex:h});L1(function(){return x.current=Ms(function(U){U({type:v9,inputValue:""})},500),function(){x.current.cancel()}},[]),L1(function(){c&&x.current(i)},[i,c]),y9({props:t,state:n}),L1(function(){var U=nt(t,"isOpen",Ne);U&&C.current&&C.current.focus()},[]);var V=oe(function(){m.current.state.isOpen&&i({type:Ta})},[i,m]),S=Ot(function(){return[L,C]},[]),E=Yn(a,V,S),z=M9("getMenuProps","getToggleButtonProps");L1(function(){u||(g.current={})},[u]);var k=Ot(function(){return{ArrowDown:function(p){p.preventDefault(),i({type:S9,altKey:p.altKey})},ArrowUp:function(p){p.preventDefault(),i({type:R9,altKey:p.altKey})},Home:function(p){p.preventDefault(),i({type:k9})},End:function(p){p.preventDefault(),i({type:P9})},Escape:function(){m.current.state.isOpen&&i({type:H9})},Enter:function(p){p.preventDefault(),i({type:m.current.state.isOpen?V9:Sa})},PageUp:function(p){m.current.state.isOpen&&(p.preventDefault(),i({type:_9}))},PageDown:function(p){m.current.state.isOpen&&(p.preventDefault(),i({type:O9}))}," ":function(p){p.preventDefault();var v=m.current.state;if(!v.isOpen){i({type:Sa});return}v.inputValue?i({type:Va,key:" "}):i({type:T9})}}},[i,m]),B=oe(function(){i({type:l5})},[i]),j=oe(function(){i({type:i5})},[i]),H=oe(function(){i({type:n5})},[i]),y=oe(function(U){i({type:u5,highlightedIndex:U})},[i]),w=oe(function(U){i({type:B9,selectedItem:U})},[i]),M=oe(function(){i({type:d5})},[i]),_=oe(function(U){i({type:v9,inputValue:U})},[i]),I=oe(function(U){var p=U===void 0?{}:U,v=p.onClick,F=Fe(p,$s),D=function(){var Z;(Z=C.current)==null||Z.focus()};return X({id:f.labelId,htmlFor:f.toggleButtonId,onClick:ve(v,D)},F)},[f]),O=oe(function(U,p){var v,F=U===void 0?{}:U,D=F.onMouseLeave,A=F.refKey,Z=A===void 0?"ref":A,$=F.ref,J=Fe(F,Fs),le=p===void 0?{}:p,ae=le.suppressRefError,ne=ae===void 0?!1:ae,ie=function(){i({type:a5})};return z("getMenuProps",ne,Z,L),X((v={},v[Z]=R1($,function(se){L.current=se}),v.id=f.menuId,v.role="listbox",v["aria-labelledby"]=J&&J["aria-label"]?void 0:""+f.labelId,v.onMouseLeave=ve(D,ie),v),J)},[i,z,f]),b=oe(function(U,p){var v,F=U===void 0?{}:U,D=F.onBlur,A=F.onClick;F.onPress;var Z=F.onKeyDown,$=F.refKey,J=$===void 0?"ref":$,le=F.ref,ae=Fe(F,Ns),ne=p===void 0?{}:p,ie=ne.suppressRefError,se=ie===void 0?!1:ie,he=m.current.state,Ue=function(){i({type:Sa})},He=function(){he.isOpen&&!E.isMouseDown&&i({type:Ta})},H1=function(_e){var We=Ha(_e);We&&k[We]?k[We](_e):Vs(We)&&i({type:Va,key:We})},ke=X((v={},v[J]=R1(le,function(ze){C.current=ze}),v["aria-activedescendant"]=he.isOpen&&he.highlightedIndex>-1?f.getItemId(he.highlightedIndex):"",v["aria-controls"]=f.menuId,v["aria-expanded"]=m.current.state.isOpen,v["aria-haspopup"]="listbox",v["aria-labelledby"]=ae&&ae["aria-label"]?void 0:""+f.labelId,v.id=f.toggleButtonId,v.role="combobox",v.tabIndex=0,v.onBlur=ve(D,He),v),ae);return ae.disabled||(ke.onClick=ve(A,Ue),ke.onKeyDown=ve(Z,H1)),z("getToggleButtonProps",se,J,C),ke},[i,f,m,E,z,k]),Q=oe(function(U){var p,v=U===void 0?{}:U,F=v.item,D=v.index,A=v.onMouseMove,Z=v.onClick,$=v.onMouseDown;v.onPress;var J=v.refKey,le=J===void 0?"ref":J,ae=v.disabled,ne=v.ref,ie=Fe(v,qs);ae!==void 0&&console.warn('Passing "disabled" as an argument to getItemProps is not supported anymore. Please use the isItemDisabled prop from useSelect.');var se=m.current,he=se.state,Ue=se.props,He=I9(F,D,Ue.items,"Pass either item or index to getItemProps!"),H1=He[0],ke=He[1],ze=Ue.isItemDisabled(H1,ke),_e=function(){E.isTouchEnd||ke===he.highlightedIndex||(T.current=!1,i({type:r5,index:ke,disabled:ze}))},We=function(){i({type:D9,index:ke})},Et=function(Zt){return Zt.preventDefault()},Oe=X((p={},p[le]=R1(ne,function(a1){a1&&(g.current[f.getItemId(ke)]=a1)}),p["aria-disabled"]=ze,p["aria-selected"]=H1===he.selectedItem,p.id=f.getItemId(ke),p.role="option",p),ie);return ze||(Oe.onClick=ve(Z,We)),Oe.onMouseMove=ve(A,_e),Oe.onMouseDown=ve($,Et),Oe},[m,f,E,T,i]);return{getToggleButtonProps:b,getLabelProps:I,getMenuProps:O,getItemProps:Q,toggleMenu:B,openMenu:H,closeMenu:j,setHighlightedIndex:y,selectItem:w,reset:M,setInputValue:_,highlightedIndex:d,isOpen:u,selectedItem:s,inputValue:c}}var E9=0,Z9=1,A9=2,$9=3,F9=4,N9=5,q9=6,U9=7,z9=8,_a=9,j9=10,p5=11,C5=12,G9=13,m5=14,h5=15,g5=16,v5=17,x5=18,K9=19,L5=20,w5=21,W9=22,I5=Object.freeze({__proto__:null,ControlledPropUpdatedSelectedItem:W9,FunctionCloseMenu:v5,FunctionOpenMenu:g5,FunctionReset:w5,FunctionSelectItem:K9,FunctionSetHighlightedIndex:x5,FunctionSetInputValue:L5,FunctionToggleMenu:h5,InputBlur:_a,InputChange:z9,InputClick:j9,InputKeyDownArrowDown:E9,InputKeyDownArrowUp:Z9,InputKeyDownEnd:F9,InputKeyDownEnter:U9,InputKeyDownEscape:A9,InputKeyDownHome:$9,InputKeyDownPageDown:q9,InputKeyDownPageUp:N9,ItemClick:G9,ItemMouseMove:C5,MenuMouseLeave:p5,ToggleButtonClick:m5});function Us(e){var t=Jn(e),o=t.selectedItem,a=t.inputValue;return a===""&&o&&e.defaultInputValue===void 0&&e.initialInputValue===void 0&&e.inputValue===void 0&&(a=e.itemToString(o)),X({},t,{inputValue:a})}var zs=X({},po,{items:G.default.array.isRequired,isItemDisabled:G.default.func,inputValue:G.default.string,defaultInputValue:G.default.string,initialInputValue:G.default.string,inputId:G.default.string,onInputValueChange:G.default.func});function js(e,t,o,a){var r=o1(),l=Qn(e,t,o,a),n=l[0],i=l[1],u=Oa();return L1(function(){if(ys(t,"selectedItem")){if(!u){var d=t.itemToKey(t.selectedItem)!==t.itemToKey(r.current);d&&i({type:W9,inputValue:t.itemToString(t.selectedItem)})}r.current=n.selectedItem===r.current?t.selectedItem:n.selectedItem}},[n.selectedItem,t.selectedItem]),[Ra(n,t),i]}var Gs=X({},Co,{isItemDisabled:function(){return!1}});function Ks(e,t,o){var a,r=o.type,l=o.altKey,n;switch(r){case G9:n={isOpen:w1(t,"isOpen",Ne),highlightedIndex:Pa(t),selectedItem:t.items[o.index],inputValue:t.itemToString(t.items[o.index])};break;case E9:e.isOpen?n={highlightedIndex:j1(e.highlightedIndex,1,t.items,t.isItemDisabled,!0)}:n={highlightedIndex:l&&e.selectedItem==null?-1:it(t,e,1),isOpen:t.items.length>=0};break;case Z9:e.isOpen?l?n=ka(t,e.highlightedIndex):n={highlightedIndex:j1(e.highlightedIndex,-1,t.items,t.isItemDisabled,!0)}:n={highlightedIndex:it(t,e,-1),isOpen:t.items.length>=0};break;case U9:n=ka(t,e.highlightedIndex);break;case A9:n=X({isOpen:!1,highlightedIndex:-1},!e.isOpen&&{selectedItem:null,inputValue:""});break;case N9:n={highlightedIndex:j1(e.highlightedIndex,-10,t.items,t.isItemDisabled,!0)};break;case q9:n={highlightedIndex:j1(e.highlightedIndex,10,t.items,t.isItemDisabled,!0)};break;case $9:n={highlightedIndex:Dt(0,!1,t.items,t.isItemDisabled)};break;case F9:n={highlightedIndex:Dt(t.items.length-1,!0,t.items,t.isItemDisabled)};break;case _a:n=X({isOpen:!1,highlightedIndex:-1},e.highlightedIndex>=0&&((a=t.items)==null?void 0:a.length)&&o.selectItem&&{selectedItem:t.items[e.highlightedIndex],inputValue:t.itemToString(t.items[e.highlightedIndex])});break;case z9:n={isOpen:!0,highlightedIndex:Pa(t),inputValue:o.inputValue};break;case j9:n={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:it(t,e,0)};break;case K9:n={selectedItem:o.selectedItem,inputValue:t.itemToString(o.selectedItem)};break;case W9:n={inputValue:o.inputValue};break;default:return o5(e,t,o,I5)}return X({},e,n)}var Ws=["onMouseLeave","refKey","ref"],Xs=["item","index","refKey","ref","onMouseMove","onMouseDown","onClick","onPress","disabled"],Qs=["onClick","onPress","refKey","ref"],Js=["onKeyDown","onChange","onInput","onBlur","onChangeText","onClick","refKey","ref"];b5.stateChangeTypes=I5;function b5(e){e===void 0&&(e={}),x9(e,b5,zs);var t=X({},Gs,e),o=t.items,a=t.scrollIntoView,r=t.environment,l=t.getA11yStatusMessage,n=js(Ks,t,Us,t5),i=n[0],u=n[1],d=i.isOpen,s=i.highlightedIndex,c=i.selectedItem,C=i.inputValue,L=o1(null),g=o1({}),x=o1(null),f=o1(null),m=Oa(),h=f5(t),T=o1(),V=mo({state:i,props:t}),S=oe(function(D){return g.current[h.getItemId(D)]},[h]);b9(l,i,[d,s,c,C],r);var E=e5({menuElement:L.current,highlightedIndex:s,isOpen:d,itemRefs:g,scrollIntoView:a,getItemNodeFromIndex:S});y9({props:t,state:i}),L1(function(){var D=nt(t,"isOpen",Ne);D&&x.current&&x.current.focus()},[]),L1(function(){m||(T.current=o.length)});var z=oe(function(){V.current.state.isOpen&&u({type:_a})},[u,V]),k=Ot(function(){return[L,f,x]},[]),B=Yn(r,z,k),j=M9("getInputProps","getMenuProps");L1(function(){d||(g.current={})},[d]),L1(function(){var D;!d||!(r!=null&&r.document)||!(x!=null&&(D=x.current)!=null&&D.focus)||r.document.activeElement!==x.current&&x.current.focus()},[d,r]);var H=Ot(function(){return{ArrowDown:function(A){A.preventDefault(),u({type:E9,altKey:A.altKey})},ArrowUp:function(A){A.preventDefault(),u({type:Z9,altKey:A.altKey})},Home:function(A){V.current.state.isOpen&&(A.preventDefault(),u({type:$9}))},End:function(A){V.current.state.isOpen&&(A.preventDefault(),u({type:F9}))},Escape:function(A){var Z=V.current.state;(Z.isOpen||Z.inputValue||Z.selectedItem||Z.highlightedIndex>-1)&&(A.preventDefault(),u({type:A9}))},Enter:function(A){var Z=V.current.state;!Z.isOpen||A.which===229||(A.preventDefault(),u({type:U9}))},PageUp:function(A){V.current.state.isOpen&&(A.preventDefault(),u({type:N9}))},PageDown:function(A){V.current.state.isOpen&&(A.preventDefault(),u({type:q9}))}}},[u,V]),y=oe(function(D){return X({id:h.labelId,htmlFor:h.inputId},D)},[h]),w=oe(function(D,A){var Z,$=D===void 0?{}:D,J=$.onMouseLeave,le=$.refKey,ae=le===void 0?"ref":le,ne=$.ref,ie=Fe($,Ws),se=A===void 0?{}:A,he=se.suppressRefError,Ue=he===void 0?!1:he;return j("getMenuProps",Ue,ae,L),X((Z={},Z[ae]=R1(ne,function(He){L.current=He}),Z.id=h.menuId,Z.role="listbox",Z["aria-labelledby"]=ie&&ie["aria-label"]?void 0:""+h.labelId,Z.onMouseLeave=ve(J,function(){u({type:p5})}),Z),ie)},[u,j,h]),M=oe(function(D){var A,Z,$=D===void 0?{}:D,J=$.item,le=$.index,ae=$.refKey,ne=ae===void 0?"ref":ae,ie=$.ref,se=$.onMouseMove,he=$.onMouseDown,Ue=$.onClick;$.onPress;var He=$.disabled,H1=Fe($,Xs);He!==void 0&&console.warn('Passing "disabled" as an argument to getItemProps is not supported anymore. Please use the isItemDisabled prop from useCombobox.');var ke=V.current,ze=ke.props,_e=ke.state,We=I9(J,le,ze.items,"Pass either item or index to getItemProps!"),Et=We[0],Oe=We[1],a1=ze.isItemDisabled(Et,Oe),Zt="onClick",Lo=Ue,k1=function(){B.isTouchEnd||Oe===_e.highlightedIndex||(E.current=!1,u({type:C5,index:Oe,disabled:a1}))},K1=function(){u({type:G9,index:Oe})},P1=function(q5){return q5.preventDefault()};return X((A={},A[ne]=R1(ie,function(r1){r1&&(g.current[h.getItemId(Oe)]=r1)}),A["aria-disabled"]=a1,A["aria-selected"]=Oe===_e.highlightedIndex,A.id=h.getItemId(Oe),A.role="option",A),!a1&&(Z={},Z[Zt]=ve(Lo,K1),Z),{onMouseMove:ve(se,k1),onMouseDown:ve(he,P1)},H1)},[u,h,V,B,E]),_=oe(function(D){var A,Z=D===void 0?{}:D,$=Z.onClick;Z.onPress;var J=Z.refKey,le=J===void 0?"ref":J,ae=Z.ref,ne=Fe(Z,Qs),ie=V.current.state,se=function(){u({type:m5})};return X((A={},A[le]=R1(ae,function(he){f.current=he}),A["aria-controls"]=h.menuId,A["aria-expanded"]=ie.isOpen,A.id=h.toggleButtonId,A.tabIndex=-1,A),!ne.disabled&&X({},{onClick:ve($,se)}),ne)},[u,V,h]),I=oe(function(D,A){var Z,$=D===void 0?{}:D,J=$.onKeyDown,le=$.onChange,ae=$.onInput,ne=$.onBlur;$.onChangeText;var ie=$.onClick,se=$.refKey,he=se===void 0?"ref":se,Ue=$.ref,He=Fe($,Js),H1=A===void 0?{}:A,ke=H1.suppressRefError,ze=ke===void 0?!1:ke;j("getInputProps",ze,he,x);var _e=V.current.state,We=function(P1){var r1=Ha(P1);r1&&H[r1]&&H[r1](P1)},Et=function(P1){u({type:z9,inputValue:P1.target.value})},Oe=function(P1){if(r!=null&&r.document&&_e.isOpen&&!B.isMouseDown){var r1=P1.relatedTarget===null&&r.document.activeElement!==r.document.body;u({type:_a,selectItem:!r1})}},a1=function(){u({type:j9})},Zt="onChange",Lo={};if(!He.disabled){var k1;Lo=(k1={},k1[Zt]=ve(le,ae,Et),k1.onKeyDown=ve(J,We),k1.onBlur=ve(ne,Oe),k1.onClick=ve(ie,a1),k1)}return X((Z={},Z[he]=R1(Ue,function(K1){x.current=K1}),Z["aria-activedescendant"]=_e.isOpen&&_e.highlightedIndex>-1?h.getItemId(_e.highlightedIndex):"",Z["aria-autocomplete"]="list",Z["aria-controls"]=h.menuId,Z["aria-expanded"]=_e.isOpen,Z["aria-labelledby"]=He&&He["aria-label"]?void 0:h.labelId,Z.autoComplete="off",Z.id=h.inputId,Z.role="combobox",Z.value=_e.inputValue,Z),Lo,He)},[u,h,r,H,V,B,j]),O=oe(function(){u({type:h5})},[u]),b=oe(function(){u({type:v5})},[u]),Q=oe(function(){u({type:g5})},[u]),U=oe(function(D){u({type:x5,highlightedIndex:D})},[u]),p=oe(function(D){u({type:K9,selectedItem:D})},[u]),v=oe(function(D){u({type:L5,inputValue:D})},[u]),F=oe(function(){u({type:w5})},[u]);return{getItemProps:M,getLabelProps:y,getMenuProps:w,getInputProps:I,getToggleButtonProps:_,toggleMenu:O,openMenu:Q,closeMenu:b,setHighlightedIndex:U,setInputValue:v,selectItem:p,reset:F,highlightedIndex:s,isOpen:d,selectedItem:c,inputValue:C}}var M5={activeIndex:-1,selectedItems:[]};function zn(e,t){return nt(e,t,M5)}function jn(e,t){return w1(e,t,M5)}function Ys(e){var t=zn(e,"activeIndex"),o=zn(e,"selectedItems");return{activeIndex:t,selectedItems:o}}function Gn(e){if(e.shiftKey||e.metaKey||e.ctrlKey||e.altKey)return!1;var t=e.target;return!(t instanceof HTMLInputElement&&t.value!==""&&(t.selectionStart!==0||t.selectionEnd!==0))}function e4(e,t){return e.selectedItems===t.selectedItems&&e.activeIndex===t.activeIndex}var Cw={stateReducer:po.stateReducer,itemToKey:po.itemToKey,environment:po.environment,selectedItems:G.default.array,initialSelectedItems:G.default.array,defaultSelectedItems:G.default.array,getA11yStatusMessage:G.default.func,activeIndex:G.default.number,initialActiveIndex:G.default.number,defaultActiveIndex:G.default.number,onActiveIndexChange:G.default.func,onSelectedItemsChange:G.default.func,keyNavigationNext:G.default.string,keyNavigationPrevious:G.default.string},t4={itemToKey:Co.itemToKey,stateReducer:Co.stateReducer,environment:Co.environment,keyNavigationNext:"ArrowRight",keyNavigationPrevious:"ArrowLeft"},o4=ho,X9=0,Q9=1,J9=2,Y9=3,e2=4,t2=5,o2=6,a2=7,r2=8,l2=9,n2=10,i2=11,u2=12,a4=Object.freeze({__proto__:null,DropdownClick:a2,DropdownKeyDownBackspace:o2,DropdownKeyDownNavigationPrevious:t2,FunctionAddSelectedItem:r2,FunctionRemoveSelectedItem:l2,FunctionReset:u2,FunctionSetActiveIndex:i2,FunctionSetSelectedItems:n2,SelectedItemClick:X9,SelectedItemKeyDownBackspace:J9,SelectedItemKeyDownDelete:Q9,SelectedItemKeyDownNavigationNext:Y9,SelectedItemKeyDownNavigationPrevious:e2});function r4(e,t,o){var a=o.type,r=o.index,l=o.selectedItem,n=e.activeIndex,i=e.selectedItems,u;switch(a){case X9:u={activeIndex:r};break;case e2:u={activeIndex:n-1<0?0:n-1};break;case Y9:u={activeIndex:n+1>=i.length?-1:n+1};break;case J9:case Q9:{if(n<0)break;var d=n;i.length===1?d=-1:n===i.length-1&&(d=i.length-2),u=X({selectedItems:[].concat(i.slice(0,n),i.slice(n+1))},{activeIndex:d});break}case t2:u={activeIndex:i.length-1};break;case o2:u={selectedItems:i.slice(0,i.length-1)};break;case r2:u={selectedItems:[].concat(i,[l])};break;case a2:u={activeIndex:-1};break;case l2:{var s=n,c=i.findIndex(function(g){return t.itemToKey(g)===t.itemToKey(l)});if(c<0)break;i.length===1?s=-1:c===i.length-1&&(s=i.length-2),u={selectedItems:[].concat(i.slice(0,c),i.slice(c+1)),activeIndex:s};break}case n2:{var C=o.selectedItems;u={selectedItems:C};break}case i2:{var L=o.activeIndex;u={activeIndex:L};break}case u2:u={activeIndex:jn(t,"activeIndex"),selectedItems:jn(t,"selectedItems")};break;default:throw new Error("Reducer called without proper action type.")}return X({},e,u)}var l4=["refKey","ref","onClick","onKeyDown","selectedItem","index"],n4=["refKey","ref","onKeyDown","onClick","preventKeyAction"];y5.stateChangeTypes=a4;function y5(e){e===void 0&&(e={}),o4(e,y5);var t=X({},t4,e),o=t.getA11yStatusMessage,a=t.environment,r=t.keyNavigationNext,l=t.keyNavigationPrevious,n=w9(r4,t,Ys,e4),i=n[0],u=n[1],d=i.activeIndex,s=i.selectedItems,c=Oa(),C=o1(null),L=o1();L.current=[];var g=mo({state:i,props:t});b9(o,i,[d,s],a),L1(function(){c||(d===-1&&C.current?C.current.focus():L.current[d]&&L.current[d].focus())},[d]),y9({props:t,state:i});var x=M9("getDropdownProps"),f=Ot(function(){var B;return B={},B[l]=function(){u({type:e2})},B[r]=function(){u({type:Y9})},B.Delete=function(){u({type:Q9})},B.Backspace=function(){u({type:J9})},B},[u,r,l]),m=Ot(function(){var B;return B={},B[l]=function(j){Gn(j)&&u({type:t2})},B.Backspace=function(H){Gn(H)&&u({type:o2})},B},[u,l]),h=oe(function(B){var j,H=B===void 0?{}:B,y=H.refKey,w=y===void 0?"ref":y,M=H.ref,_=H.onClick,I=H.onKeyDown,O=H.selectedItem,b=H.index,Q=Fe(H,l4),U=g.current.state,p=I9(O,b,U.selectedItems,"Pass either item or index to getSelectedItemProps!"),v=p[1],F=v>-1&&v===U.activeIndex,D=function(){u({type:X9,index:v})},A=function($){var J=Ha($);J&&f[J]&&f[J]($)};return X((j={},j[w]=R1(M,function(Z){Z&&L.current.push(Z)}),j.tabIndex=F?0:-1,j.onClick=ve(_,D),j.onKeyDown=ve(I,A),j),Q)},[u,g,f]),T=oe(function(B,j){var H,y=B===void 0?{}:B,w=y.refKey,M=w===void 0?"ref":w,_=y.ref,I=y.onKeyDown,O=y.onClick,b=y.preventKeyAction,Q=b===void 0?!1:b,U=Fe(y,n4),p=j===void 0?{}:j,v=p.suppressRefError,F=v===void 0?!1:v;x("getDropdownProps",F,M,C);var D=function($){var J=Ha($);J&&m[J]&&m[J]($)},A=function(){u({type:a2})};return X((H={},H[M]=R1(_,function(Z){Z&&(C.current=Z)}),H),!Q&&{onKeyDown:ve(I,D),onClick:ve(O,A)},U)},[u,m,x]),V=oe(function(B){u({type:r2,selectedItem:B})},[u]),S=oe(function(B){u({type:l2,selectedItem:B})},[u]),E=oe(function(B){u({type:n2,selectedItems:B})},[u]),z=oe(function(B){u({type:i2,activeIndex:B})},[u]),k=oe(function(){u({type:u2})},[u]);return{getSelectedItemProps:h,getDropdownProps:T,addSelectedItem:V,removeSelectedItem:S,setSelectedItems:E,setActiveIndex:z,reset:k,selectedItems:s,activeIndex:d}}var d2=0,s2=1,c2=2,f2=3,p2=4,C2=5,m2=6,i4=Object.freeze({__proto__:null,FunctionAddItem:m2,TagClick:d2,TagGroupKeyDownArrowLeft:s2,TagGroupKeyDownArrowRight:c2,TagGroupKeyDownBackspace:p2,TagGroupKeyDownDelete:f2,TagRemoveClick:C2});function u4(e,t,o){var a=o.type,r;switch(a){case d2:r={activeIndex:o.index};break;case s2:r={activeIndex:e.activeIndex===0?e.items.length-1:e.activeIndex-1};break;case c2:r={activeIndex:e.activeIndex===e.items.length-1?0:e.activeIndex+1};break;case p2:case f2:{var l=[].concat(e.items.slice(0,e.activeIndex),e.items.slice(e.activeIndex+1)),n=l.length===0?-1:l.length===e.activeIndex?e.activeIndex-1:e.activeIndex;r={items:[].concat(e.items.slice(0,e.activeIndex),e.items.slice(e.activeIndex+1)),activeIndex:n};break}case C2:{var i=[].concat(e.items.slice(0,o.index),e.items.slice(o.index+1)),u=i.length===0?-1:i.length===o.index?o.index-1:o.index;r={items:i,activeIndex:u}}break;case m2:{var d=[];o.index===void 0?d=[].concat(e.items,[o.item]):d=[].concat(e.items.slice(0,o.index),[o.item],e.items.slice(o.index));var s=e.activeIndex===-1?d.length-1:e.activeIndex;r={items:d,activeIndex:s};break}default:throw new Error("Invalid useTagGroup reducer action.")}return X({},e,r)}var d4=X({},re),S5=d4.useId,s4=typeof S5=="function"?c4:f4;function c4(e){var t=e.id,o=e.tagGroupId,a=e.getTagId,r="downshift-"+S5();t||(t=r);var l=re.useMemo(function(){return{tagGroupId:o??t+"-tag-group",getTagId:a??function(n){return t+"-tag-"+n}}},[a,t,o]);return l}function f4(e){var t=e.id,o=e.getTagId,a=e.tagGroupId,r=re.useRef(t??"downshift-"+Kn()),l=r.current,n=re.useMemo(function(){return{tagGroupId:a??l+"-tag-group",getTagId:o??function(i){return l+"-tag-"+i}}},[o,l,a]);return n}function p4(e){var t,o,a,r,l=(t=(o=e.items)!=null?o:e.initialItems)!=null?t:[],n=(a=(r=e.activeIndex)!=null?r:e.initialActiveIndex)!=null?a:l.length===0?-1:0;return{activeIndex:n,items:l}}function C4(e,t){return e.activeIndex===t.activeIndex&&e.items===t.items}var R5="tag-group-a11y-description";function m4(e,t){re.useEffect(function(){if(e){var o=e.createElement("div");return o.setAttribute("id",R5),o.style.display="none",o.textContent=t,e.body.appendChild(o),function(){o.remove()}}},[t,e])}function h4(e){return X({stateReducer:function(o,a){var r=a.changes;return r},environment:typeof window>"u"?void 0:window,removeElementDescription:"Press Delete or Backspace to remove tag."},e)}function g4(e,t,o){var a=re.useRef({}),r=re.useRef(e),l=re.useRef(t);return re.useEffect(function(){if(e!==-1&&r.current!==-1&&e!==r.current||l.current===t+1){var n;(n=a.current[o(e)])==null||n.focus()}r.current=e,l.current=t},[e,o,t]),a}var v4={isItemDisabled:G.default.func},x4=["onKeyDown"],L4=["index","refKey","ref","onClick"],w4=["index","onClick"],H5=function(t){var o;t===void 0&&(t={}),x9(t,H5,v4);var a=h4(t),r=w9(u4,a,p4,C4),l=r[0],n=r[1],i=l.activeIndex,u=l.items,d=mo({state:l,props:a}),s=s4({getTagId:a.getTagId,id:a.id,tagGroupId:a.tagGroupId});m4((o=a.environment)==null?void 0:o.document,a.removeElementDescription);var c=g4(i,u.length,s.getTagId),C=oe(function(f){var m=f??{},h=m.onKeyDown,T=Fe(m,x4),V=function(z){switch(z.key){case"ArrowLeft":n({type:s2});break;case"ArrowRight":n({type:c2});break;case"Delete":n({type:f2});break;case"Backspace":n({type:p2});break}},S=X({id:s.tagGroupId,"aria-live":"polite","aria-atomic":"false","aria-relevant":"additions",role:"listbox",onKeyDown:g9(h,V)},T);return S},[n,s.tagGroupId]),L=oe(function(f){var m,h=f.index,T=f.refKey,V=T===void 0?"ref":T,S=f.ref,E=f.onClick,z=Fe(f,L4);if(!Number.isInteger(h)||h<0)throw new Error("Pass correct item index to getTagProps!");var k=d.current.state,B=function(){n({type:d2,index:h})},j=s.getTagId(h);return X((m={"aria-describedby":R5},m[V]=xs(S,function(H){H&&(c.current[j]=H)}),m["aria-labelledby"]=j,m.role="option",m.id=j,m.onClick=g9(E,B),m.tabIndex=k.activeIndex===h?0:-1,m),z)},[n,s,d,c]),g=oe(function(f){var m=f.index,h=f.onClick,T=Fe(f,w4);if(!Number.isInteger(m)||m<0)throw new Error("Pass correct item index to getTagRemoveProps!");var V=function(k){k.stopPropagation(),n({type:C2,index:m})},S=s.getTagId(m),E=S+"-remove";return X({id:E,tabIndex:-1,"aria-labelledby":E+" "+S,onClick:g9(h,V)},T)},[s,n]),x=oe(function(f,m){n({type:m2,item:f,index:m})},[n]);return{activeIndex:i,addItem:x,getTagGroupProps:C,getTagProps:L,getTagRemoveProps:g,items:u}};H5.stateChangeTypes=i4;import go from"react";import{createPortal as I4}from"react-dom";import{jsx as ut,jsxs as k5}from"react/jsx-runtime";var b4=260,Ba=4,M4=ut(N2,{width:9,height:9}),y4=ut(q2,{width:9,height:9});function S4(e){let t=e.getBoundingClientRect(),o=Qt(e),a=o?o.getBoundingClientRect():{top:0,bottom:window.innerHeight},r=a.bottom-t.bottom-Ba,l=t.top-a.top-Ba,n=r<b4&&l>r;return{top:n?t.top-Ba:t.bottom+Ba,left:t.left,width:t.width,openAbove:n}}function Bt({label:e,options:t,selectedItem:o,onChange:a,id:r="picklist",getOptionStyle:l,getTriggerStyle:n}){let[i,u]=go.useState({top:0,left:0,width:0,openAbove:!1}),d=go.useRef(null),s=`${r}-legend`,{isOpen:c,closeMenu:C,highlightedIndex:L,getToggleButtonProps:g,getMenuProps:x,getItemProps:f}=Da({items:t,itemToString:S=>S?S.label:"",selectedItem:o,onSelectedItemChange:({selectedItem:S})=>{typeof a=="function"&&S&&S.value!==o?.value&&a(S.value)},onIsOpenChange:({isOpen:S})=>{S&&d.current&&u(S4(d.current))},id:r,labelId:s});go.useEffect(()=>{if(!c||!d.current)return;let S=Qt(d.current);if(!S)return;let E=()=>C();return S.addEventListener("scroll",E,{passive:!0}),()=>S.removeEventListener("scroll",E)},[c,C]);let m="picklistEditor-dropdown"+(c?" picklistEditor-dropdown--open":""),h=c?{top:i.top,left:i.left,width:i.width,...i.openAbove?{transform:"translateY(-100%)"}:void 0}:void 0,[T,V]=go.useState(null);return go.useLayoutEffect(()=>{let E=d.current?.getRootNode();V(E instanceof ShadowRoot?E:document.body)},[]),ut(f1,{label:e,id:r,className:"picklistEditor-fieldset",children:k5("div",{className:"picklistEditor-wrapper",children:[k5("button",{type:"button",className:"picklistEditor-trigger",style:n?n(o):void 0,...g({ref:d}),children:[ut("span",{className:"picklistEditor-trigger-label",children:o?.label??"Default"}),ut("span",{className:"picklistEditor-trigger-chevron","aria-hidden":"true",children:c?y4:M4})]}),I4(ut("ul",{className:m,style:h,...x(),children:c&&t.map((S,E)=>ut("li",{className:"picklistEditor-option"+(L===E?" picklistEditor-option--highlighted":"")+(o?.value===S.value?" picklistEditor-option--selected":""),style:l?l(S):void 0,...f({item:S,index:E}),children:S.label},S.value||"default"))}),T??document.body)]})})}import{jsx as V4}from"react/jsx-runtime";var R4=[{value:"",label:"Default"},{value:"Arial, sans-serif",label:"Arial"},{value:"Helvetica, sans-serif",label:"Helvetica"},{value:"Verdana, sans-serif",label:"Verdana"},{value:"Tahoma, sans-serif",label:"Tahoma"},{value:"'Trebuchet MS', sans-serif",label:"Trebuchet MS"},{value:"'Lucida Sans Unicode', sans-serif",label:"Lucida Sans"},{value:"Georgia, serif",label:"Georgia"},{value:"'Times New Roman', serif",label:"Times New Roman"},{value:"'Palatino Linotype', serif",label:"Palatino"},{value:"'Courier New', monospace",label:"Courier New"},{value:"'Lucida Console', monospace",label:"Lucida Console"}];function H4(e,t){if(!e)return null;let o=e.replace(/['"]/g,""),a=(o.split(",")[0]??"").trim();for(let r of t){if(!r.value)continue;let l=r.value.replace(/['"]/g,"");if(o.indexOf(l)!==-1||l.indexOf(a)!==-1)return r}return null}var k4=e=>e.value?{fontFamily:e.value}:void 0,P4=e=>e?.value?{fontFamily:e.value}:void 0;function P5({label:e="Font family",value:t,options:o=R4,onChange:a,matchOption:r=H4,id:l="font-family"}){let n=r(t,o)??o[0]??null;return V4(Bt,{label:e,options:o,selectedItem:n,onChange:a,id:l,getOptionStyle:k4,getTriggerStyle:P4})}import{jsx as h2}from"react/jsx-runtime";var T4=[{value:"normal",label:"Normal",icon:h2(S2,{width:14,height:14})},{value:"italic",label:"Italic",icon:h2(y2,{width:14,height:14})}];function V5({label:e="Font Style",value:t,onChange:o,id:a="font-style"}){return h2(p1,{label:e,options:T4,value:t||"normal",onChange:o,id:a})}import{jsx as D4}from"react/jsx-runtime";var _4=[{value:"",label:"Default"},{value:"100",label:"Thin (100)"},{value:"200",label:"Extra Light (200)"},{value:"300",label:"Light (300)"},{value:"400",label:"Regular (400)"},{value:"500",label:"Medium (500)"},{value:"600",label:"Semi Bold (600)"},{value:"700",label:"Bold (700)"},{value:"800",label:"Extra Bold (800)"},{value:"900",label:"Black (900)"}];function O4(e,t){if(!e)return null;let o=String(e).trim();return t.find(a=>a.value===o)??null}function T5({label:e="Font weight",value:t,options:o=_4,onChange:a,matchOption:r=O4,id:l="font-weight"}){let n=r(t,o)??o[0]??null;return D4(Bt,{label:e,options:o,selectedItem:n,onChange:a,id:l})}import{jsx as E4}from"react/jsx-runtime";var g2=[{value:"",label:"Default"},{value:"visible",label:"Visible"},{value:"hidden",label:"Hidden"},{value:"scroll",label:"Scroll"},{value:"auto",label:"Auto"}];function B4(e,t){if(!e)return null;let o=String(e).trim().toLowerCase();return t.find(a=>a.value===o)??null}function _5({label:e="Overflow",value:t,onChange:o,id:a="overflow"}){let r=B4(t,g2)??g2[0]??null;return E4(Bt,{label:e,options:g2,selectedItem:r,onChange:o,id:a})}import{jsx as vo}from"react/jsx-runtime";var Z4=[{value:"left",label:"Left",icon:vo($2,{width:14,height:14})},{value:"center",label:"Center",icon:vo(Z2,{width:14,height:14})},{value:"right",label:"Right",icon:vo(F2,{width:14,height:14})},{value:"justify",label:"Justify",icon:vo(A2,{width:14,height:14})}],A4={start:"left",end:"right"};function O5({label:e="Text Align",value:t,onChange:o,id:a="text-align"}){let r=A4[t||""]||t||"left";return vo(p1,{label:e,options:Z4,value:r,onChange:o,id:a})}import{jsx as Ea}from"react/jsx-runtime";var D5=[{value:"none",label:"None",icon:Ea(dt,{width:14,height:14})},{value:"underline",label:"Underline",icon:Ea(U2,{width:14,height:14})},{value:"line-through",label:"Line Through",icon:Ea(E2,{width:14,height:14})}];function $4(e){if(!e)return"none";for(let t of D5)if(e===t.value||e.startsWith(t.value+" "))return t.value;return"none"}function B5({label:e="Text Decoration",value:t,onChange:o,id:a="text-decoration"}){return Ea(p1,{label:e,options:D5,value:$4(t),onChange:o,id:a})}import{jsx as xo}from"react/jsx-runtime";var F4=[{value:"none",label:"None",icon:xo(dt,{width:14,height:14})},{value:"uppercase",label:"Uppercase",icon:xo(T2,{width:14,height:14})},{value:"lowercase",label:"Lowercase",icon:xo(V2,{width:14,height:14})},{value:"capitalize",label:"Capitalize",icon:xo(P2,{width:14,height:14})}];function E5({label:e="Text Transform",value:t,onChange:o,id:a="text-transform"}){return xo(p1,{label:e,options:F4,value:t||"none",onChange:o,id:a})}var G1={CHANGED:"history-changed",COMMAND_PUSHED:"command-pushed",COMMAND_UNDONE:"command-undone",COMMAND_REDONE:"command-redone",CLEARED:"history-cleared"},Za=class{constructor(t={}){W1(this,"undoStack",[]);W1(this,"redoStack",[]);W1(this,"maxHistorySize");W1(this,"listeners",new Set);W1(this,"_isProcessing",!1);W1(this,"commandExecutor");if(this.maxHistorySize=t.maxHistorySize??200,!t.commandExecutor)throw new Error("CommandExecutor is required");this.commandExecutor=t.commandExecutor}createCommand(t,o,a,r){return Object.freeze({id:this._generateCommandId(),type:t,oldValue:o,newValue:a,data:r})}_generateCommandId(){return`cmd-${Date.now()}-${Math.random().toString(36).substr(2,9)}`}subscribe(t){if(typeof t!="function")throw new Error("Listener must be a function");return this.listeners.add(t),()=>{this.listeners.delete(t)}}_notify(t,o={}){if(this.listeners.size===0)return;let a=Object.freeze({type:t,timestamp:Date.now(),canUndo:this.canUndo(),canRedo:this.canRedo(),undoCount:this.getUndoCount(),redoCount:this.getRedoCount(),...o}),r=Array.from(this.listeners);for(let l of r)try{l(a)}catch(n){console.error("[HistoryManager] Error in listener:",n)}}pushCommand(t){if(!t||typeof t!="object")throw new Error("Invalid command: must be an object");if(!t.type)throw new Error("Invalid command: missing required fields (type)");if(this._isProcessing){console.warn("[HistoryManager] pushCommand called during processing, ignoring");return}this.undoStack.push(t),this.redoStack=[],this._trimStack(),this._notify(G1.COMMAND_PUSHED,{command:t}),this._notify(G1.CHANGED)}_trimStack(){if(this.undoStack.length>this.maxHistorySize){let t=this.undoStack.length-this.maxHistorySize;this.undoStack.splice(0,t)}}_applyCommand(t,o){if(!this.commandExecutor.canHandle(t.type))return console.warn("[HistoryManager] No executor for command type:",t.type),!1;try{return this.commandExecutor.execute(t,o)}catch(a){return console.error("[HistoryManager] Error applying command:",a,t),!1}}_createInverseCommand(t,o){let a=this.commandExecutor.getCurrentValue(t);return Object.freeze({id:this._generateCommandId(),type:t.type,oldValue:o?t.oldValue:a,newValue:o?a:t.newValue,data:t.data})}undo(){if(this._isProcessing)return console.warn("[HistoryManager] undo called during processing, ignoring"),!1;if(!this.canUndo())return!1;this._isProcessing=!0;try{let t=this.undoStack.pop(),o=this._applyCommand(t,!0);if(o){let a=this._createInverseCommand(t,!1);this.redoStack.push(a)}else this.undoStack.push(t),console.warn("[HistoryManager] Undo failed, command restored to stack");return this._notify(G1.COMMAND_UNDONE,{command:t,appliedValue:t.oldValue}),this._notify(G1.CHANGED),o}finally{this._isProcessing=!1}}redo(){if(this._isProcessing)return console.warn("[HistoryManager] redo called during processing, ignoring"),!1;if(!this.canRedo())return!1;this._isProcessing=!0;try{let t=this.redoStack.pop();if(!t)return console.warn("[HistoryManager] No command to redo"),!1;let o=this._applyCommand(t,!1);if(o){let a=this._createInverseCommand(t,!0);this.undoStack.push(a),this._trimStack()}else this.redoStack.push(t),console.warn("[HistoryManager] Redo failed, command restored to stack");return this._notify(G1.COMMAND_REDONE,{command:t,appliedValue:t.newValue}),this._notify(G1.CHANGED),o}finally{this._isProcessing=!1}}canUndo(){return this.undoStack.length>0}canRedo(){return this.redoStack.length>0}clear(){this.undoStack=[],this.redoStack=[],this._notify(G1.CLEARED),this._notify(G1.CHANGED)}getUndoCount(){return this.undoStack.length}getRedoCount(){return this.redoStack.length}getUndoStackSnapshot(){return this.undoStack.map(t=>({type:t.type,oldValue:t.oldValue,newValue:t.newValue,data:t.data}))}};var N4=(e,t)=>{let o=t?e.oldValue:e.newValue;return typeof o=="string"?o:String(o??"")},Z5=e=>{if(!e||typeof e!="object")return;let t=e;if(!(typeof t.sourceFile!="string"||typeof t.lineNumber!="number"||typeof t.columnNumber!="number"))return{sourceFile:t.sourceFile,lineNumber:t.lineNumber,columnNumber:t.columnNumber}},q4=e=>typeof e=="object"&&e!==null&&"property"in e&&typeof e.property=="string",A5=(e,t)=>{let o=new Map;return{execute:(a,r)=>{let l=N4(a,r);o.set(a.id,l);try{if(a.type==="style"&&q4(a.data)){let n=Z5(a.data);return e(a.data.property,l,n),!0}else if(a.type==="text"){let n=Z5(a.data);return t(l,n),!0}}catch{return!1}return!1},getCurrentValue:a=>o.get(a.id)??a.newValue,canHandle:a=>a==="style"||a==="text"}};function $5(e,t){let o=A5(e,t),a=new Za({commandExecutor:o});return{recordStyleChange(r,l,n,i){let u=a.createCommand("style",l,n,{...i,property:r});a.pushCommand(u)},recordTextChange(r,l,n){let i=a.createCommand("text",r,l,{...n});a.pushCommand(i)},undo:()=>a.undo(),redo:()=>a.redo(),canUndo:()=>a.canUndo(),canRedo:()=>a.canRedo(),subscribe:r=>a.subscribe(r),getHistoryStack:()=>a.getUndoStackSnapshot(),clear:()=>a.clear()}}import{jsx as ee,jsxs as qe}from"react/jsx-runtime";var z4=!0,j4="This element's text can be edited inline.",G4="This element's text cannot be edited inline because it contains dynamic content.",K4={opacity:.4},W4=new Set(K2);function X4({size:e=16}){return ee("svg",{width:e,height:e,viewBox:"-1 0 252 302",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:ee("path",{d:"M57 49Q67 49 74 42Q81 35 81 25Q81 15 74 8Q67 1 57 1Q47 1 40 8Q33 15 33 25Q33 35 40 42Q47 49 57 49ZM193 49Q203 49 210 42Q217 35 217 25Q217 15 210 8Q203 1 193 1Q183 1 176 8Q169 15 169 25Q169 35 176 42Q183 49 193 49ZM125 301Q100 301 71 292Q47 285 26 274Q7 265 3.5 259.5Q0 254 1 249Q13 216 20 189Q24 171 26 157V147Q28 120 30 105Q34 78 40 65Q48 48 63 39Q85 27 125 27Q165 27 186 39Q201 47 209 65Q216 78 220 105Q222 120 224 147V157Q226 171 230 189Q237 216 248 249Q250 254 246.5 259.5Q243 265 224 274Q203 285 179 292Q150 301 125 301ZM23 249Q39 259 63 268Q97 280 125 280Q153 280 187 268Q210 259 227 249Q216 219 210 194Q205 174 204 159L203 148Q199 91 191 73Q188 66 184 62Q177 56 165 52Q150 48 125 48Q90 48 73 57Q64 63 59 73Q51 91 47 148L46 158Q45 174 40 194Q34 220 23 249ZM124 248Q113 248 102 244Q84 236 76 217Q72 209 71 201Q70 193 70 179Q70 163 73 151Q76 142 81.5 134Q87 126 98 120Q109 114 125.5 114Q142 114 152 120Q164 127 169 134.5Q174 142 177 151Q180 163 180 178.5Q180 194 179 200Q178 209 174 218Q167 232 154.5 240Q142 248 126 248ZM124 228H126Q147 228 156 209Q158 203 159 197.5Q160 192 160 179Q160 166 157 157Q155 151 152 146.5Q149 142 141 138Q136 134 125 134Q114 134 107.5 138Q101 142 98 146.5Q95 151 93 157Q90 166 90 178.5Q90 191 91 197Q92 203 94 209Q99 221 111 225Q117 228 124 228ZM195 81Q192 79 190 78Q170 70 146 76Q134 80 125.5 80Q117 80 104 76Q80 70 60 78Q58 79 55 81Q50 84 51 89L55 112Q56 117 59.5 120.5Q63 124 68 125Q83 126 99 126Q111 126 115 114L122 92Q122 91 124 89L125 88L126 89Q128 91 128 92L135 114Q139 126 152 126Q167 126 182 125Q187 124 190.5 120.5Q194 117 195 112L199 89Q200 84 195 81ZM141 192Q137 190 133 193V171Q138 169 141 165Q143 163 144 161Q145 159 145 156.5Q145 154 143.5 152Q142 150 140 148.5Q138 147 134 146Q130 145 125.5 145Q121 145 116 146Q111 147 109 149Q107 151 106 153Q105 155 105 157Q105 159 106 161Q107 163 109.5 166Q112 169 116 171H117V193Q113 190 109 191.5Q105 193 104 196Q103 199 105 202Q108 210 117 213Q124 216 133 213L134 212Q143 209 146 202Q147 199 145.5 196Q144 193 141 192Z"})})}function Q4(e,t){let o=e[t];return o!=null?String(o):""}function F5(e){if(!(!e||!e.name||!e.debugSource))return{sourceFile:e.debugSource.sourceFile,lineNumber:e.debugSource.lineNumber,columnNumber:e.debugSource.columnNumber,componentName:e.name}}function J4({component:e,onOpenSourceFile:t}){if(!e||!e.name)return ee("section",{id:"property-panel-selected-component",className:"property-panel-selected-component",children:ee("p",{className:"property-panel-selected-component-placeholder",id:"component-info",children:"Click on an element in the preview to select it."})});let o=e.tagName?e.tagName.toLowerCase():"",a=o?`${e.name} > ${o}`:e.name,r=null;if(e.debugSource){let{sourceFile:l,lineNumber:n,columnNumber:i}=e.debugSource,u=l.split("/").pop()||l,d=`:${n}:${i}`;r=qe("a",{href:"#",className:"property-panel-selected-component-source",onClick:c=>{c.preventDefault(),t?.({sourceFile:l,lineNumber:n,columnNumber:i})},title:`${l}${d}`,children:[u,d]})}return ee("section",{id:"property-panel-selected-component",className:"property-panel-selected-component","aria-label":"Selected component",children:qe("div",{id:"component-info",className:"property-panel-selected-component-info",children:[ee("span",{className:"property-panel-selected-component-name",children:a}),r&&qe("span",{className:"property-panel-selected-component-source-row",children:["\u21B3 ",r]})]})})}function Y4({styles:e,computedStyles:t,hasSelection:o,onStyleChange:a}){let r=o?"visible":"";return ee("section",{className:"property-panel-style-properties-container"+(r?" "+r:""),"aria-label":"Element styling","aria-hidden":!o,children:qe("div",{className:"property-panel-style-properties",children:[ee(st,{title:"Background",children:ee(pa,{label:"Background Color",value:e.backgroundColor||t.backgroundColor||"#ffffff",onChange:l=>a("backgroundColor",l),id:"design-bg-color"})}),qe(st,{title:"Spacing",children:[ee(Gt,{label:"Padding",id:"design-padding",value:e.padding,placeholder:t.padding,onChange:l=>a("padding",l),...zt.padding}),ee(Gt,{label:"Margin",id:"design-margin",value:e.margin,placeholder:t.margin,onChange:l=>a("margin",l),...zt.margin,allowAuto:!0})]}),qe(st,{title:"Border",children:[ee(Gt,{label:"Border Radius",id:"design-border-radius",value:e.borderRadius,placeholder:t.borderRadius,onChange:l=>a("borderRadius",l),...zt.borderRadius}),ee(Gt,{label:"Border Weight",id:"design-border-width",value:e.borderWidth,placeholder:t.borderWidth,onChange:l=>a("borderWidth",l),...zt.borderWidth}),ee(bl,{label:"Border Style",id:"design-border-style",value:e.borderStyle||t.borderStyle,onChange:l=>a("borderStyle",l)}),ee(pa,{label:"Border Color",value:e.borderColor||t.borderColor||"#000000",onChange:l=>a("borderColor",l),id:"design-border-color"})]}),qe(st,{title:"Typography",children:[ee(P5,{label:"Font Family",id:"design-font-family",value:e.fontFamily||t.fontFamily,onChange:l=>a("fontFamily",l)}),ee(x1,{label:"Font Size",id:"design-font-size",value:e.fontSize,placeholder:t.fontSize,onChange:l=>a("fontSize",l),...C1.fontSize}),ee(T5,{label:"Font Weight",id:"design-font-weight",value:e.fontWeight||t.fontWeight,onChange:l=>a("fontWeight",l)}),ee(V5,{label:"Font Style",id:"design-font-style",value:e.fontStyle||t.fontStyle,onChange:l=>a("fontStyle",l)}),ee(pa,{label:"Text Color",value:e.color||t.color||"#000000",onChange:l=>a("color",l),id:"design-text-color"}),ee(O5,{label:"Text Alignment",id:"design-text-align",value:e.textAlign||t.textAlign,onChange:l=>a("textAlign",l)}),ee(B5,{label:"Text Formatting",id:"design-text-decoration",value:e.textDecoration||t.textDecoration,onChange:l=>a("textDecoration",l)}),ee(E5,{label:"Text Transform",id:"design-text-transform",value:e.textTransform||t.textTransform,onChange:l=>a("textTransform",l)}),ee(x1,{label:"Line Height",id:"design-line-height",value:e.lineHeight,placeholder:t.lineHeight,onChange:l=>a("lineHeight",l),...C1.lineHeight}),ee(x1,{label:"Letter Spacing",id:"design-letter-spacing",value:e.letterSpacing,placeholder:t.letterSpacing,onChange:l=>a("letterSpacing",l),...C1.letterSpacing})]}),qe(st,{title:"Element Dimensions",children:[ee(x1,{label:"Width",id:"design-width",value:e.width,placeholder:t.width,onChange:l=>a("width",l),...C1.width}),qe("div",{className:"property-panel-row-2col",children:[ee(x1,{label:"Minimum Width",id:"design-min-width",value:e.minWidth,placeholder:t.minWidth,onChange:l=>a("minWidth",l),...C1.minWidth}),ee(x1,{label:"Maximum Width",id:"design-max-width",value:e.maxWidth,placeholder:t.maxWidth,onChange:l=>a("maxWidth",l),...C1.maxWidth})]}),ee(x1,{label:"Height",id:"design-height",value:e.height,placeholder:t.height,onChange:l=>a("height",l),...C1.height}),qe("div",{className:"property-panel-row-2col",children:[ee(x1,{label:"Minimum Height",id:"design-min-height",value:e.minHeight,placeholder:t.minHeight,onChange:l=>a("minHeight",l),...C1.minHeight}),ee(x1,{label:"Maximum Height",id:"design-max-height",value:e.maxHeight,placeholder:t.maxHeight,onChange:l=>a("maxHeight",l),...C1.maxHeight})]}),ee(_5,{label:"Overflow",id:"design-overflow",value:e.overflow||t.overflow,onChange:l=>a("overflow",l)})]})]})})}var x2=["width","minWidth","maxWidth","height","minHeight","maxHeight","overflow","padding","margin","backgroundColor","borderWidth","borderStyle","borderColor","borderRadius","color","fontFamily","fontSize","fontWeight","fontStyle","lineHeight","letterSpacing","textAlign","textDecoration","textTransform"],v2=Object.fromEntries(x2.map(e=>[e,""])),N5=Re.forwardRef(function(t,o){let{component:a,styles:r,onStyleChange:l,onTextChange:n,onHistoryStateChange:i,onSendToAgentforce:u,onOpenSourceFile:d}=t,[s,c]=Re.useState(v2),[C,L]=Re.useState(v2),[g,x]=Re.useState(()=>new Set),f=Re.useRef(g);f.current=g;let m=Re.useRef(s);m.current=s;let h=Re.useRef(l);h.current=l;let T=Re.useRef(n);T.current=n;let V=Re.useRef(null);V.current||(V.current=$5((M,_,I)=>h.current(M,_,I),(M,_)=>T.current?.(M,_)));let S=V.current,E=Re.useRef(i);E.current=i,Re.useEffect(()=>{let M=I=>{E.current?.({canUndo:I.canUndo,canRedo:I.canRedo});let O=I.type==="command-undone"||I.type==="command-redone",b=I.command?.data?.property;if(O&&typeof b=="string"){let Q=typeof I.appliedValue=="string"?I.appliedValue:"";c(U=>({...U,[b]:Q})),x(U=>{let p=new Set(U);return p.add(b),p})}},_=S.subscribe(M);return E.current?.({canUndo:S.canUndo(),canRedo:S.canRedo()}),_},[S]),Re.useImperativeHandle(o,()=>({undo:()=>S.undo(),redo:()=>S.redo(),clearHistory:()=>S.clear(),getHistoryStack:()=>S.getHistoryStack(),recordTextChange:(M,_,I)=>S.recordTextChange(M,_,I),canUndo:()=>S.canUndo(),canRedo:()=>S.canRedo()}),[S]),Re.useEffect(()=>{let M=r||{},_=f.current;c(I=>{let O={...I};for(let b of x2){let Q=M[b];Q!=null&&!_.has(b)&&(O[b]=Q.inline??I[b]??"")}return O}),L(I=>{let O={...I};for(let b of x2){let Q=M[b];Q!=null&&(O[b]=Q.computed??I[b]??"")}return O})},[r]);let z=a?`${a.name}-${a.tagName??""}-${a.debugSource?.lineNumber??""}-${a.debugSource?.columnNumber??""}`:"none";Re.useEffect(()=>{c(v2),x(new Set)},[z]);let k=Re.useCallback((M,_)=>{l(M,_);let I=Q4(m.current,M),O=F5(a);S.recordStyleChange(M,I,_,O),c(b=>({...b,[M]:_})),x(b=>{let Q=new Set(b);return Q.add(M),Q})},[l,S,a]),B=!!(a&&a.name),j=s,H=Re.useCallback(()=>{let M=F5(a);M&&u?.(M)},[a,u]),y=B&&a&&a.tagName&&W4.has(a.tagName.toUpperCase()),w=a?.hasNonEditableText?G4:j4;return qe("div",{role:"complementary","aria-label":"Property panel",className:"property-panel-container",children:[qe("header",{className:"property-panel-header",children:[ee("h2",{id:"design-property-panel-title",className:"property-panel-title",children:"Selected Element"}),B&&qe("div",{className:"property-panel-header-actions",children:[y&&ee("span",{className:"property-panel-selected-component-action property-panel-selected-component-action-help","data-tooltip":w,"aria-label":w,children:ee(k2,{width:14,height:14,style:a.hasNonEditableText?K4:void 0})}),z4&&ee("button",{type:"button",className:"property-panel-selected-component-action",onClick:H,"data-tooltip":"Send Context to Agentforce Vibes","aria-label":"Send Context to Agentforce Vibes",children:ee(X4,{size:14})})]})]}),qe("div",{className:"property-panel-content","aria-labelledby":"design-property-panel-title",children:[ee(J4,{component:a,onOpenSourceFile:d}),ee(Y4,{styles:j,computedStyles:C,hasSelection:B,onStyleChange:k},z)]})]})});function e8(e,t,o){if(!e)return;U4(e).render(Re.createElement(N5,{...t,ref:o}))}export{N5 as DesignPropertyPanel,e8 as mountDesignPropertyPanel};
|
|
5
|
+
/*! Bundled license information:
|
|
6
|
+
|
|
7
|
+
react-is/cjs/react-is.production.min.js:
|
|
8
|
+
(**
|
|
9
|
+
* @license React
|
|
10
|
+
* react-is.production.min.js
|
|
11
|
+
*
|
|
12
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
13
|
+
*
|
|
14
|
+
* This source code is licensed under the MIT license found in the
|
|
15
|
+
* LICENSE file in the root directory of this source tree.
|
|
16
|
+
*)
|
|
17
|
+
|
|
18
|
+
lucide-react/dist/esm/shared/src/utils/mergeClasses.js:
|
|
19
|
+
(**
|
|
20
|
+
* @license lucide-react v0.575.0 - ISC
|
|
21
|
+
*
|
|
22
|
+
* This source code is licensed under the ISC license.
|
|
23
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
24
|
+
*)
|
|
25
|
+
|
|
26
|
+
lucide-react/dist/esm/shared/src/utils/toKebabCase.js:
|
|
27
|
+
(**
|
|
28
|
+
* @license lucide-react v0.575.0 - ISC
|
|
29
|
+
*
|
|
30
|
+
* This source code is licensed under the ISC license.
|
|
31
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
32
|
+
*)
|
|
33
|
+
|
|
34
|
+
lucide-react/dist/esm/shared/src/utils/toCamelCase.js:
|
|
35
|
+
(**
|
|
36
|
+
* @license lucide-react v0.575.0 - ISC
|
|
37
|
+
*
|
|
38
|
+
* This source code is licensed under the ISC license.
|
|
39
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
40
|
+
*)
|
|
41
|
+
|
|
42
|
+
lucide-react/dist/esm/shared/src/utils/toPascalCase.js:
|
|
43
|
+
(**
|
|
44
|
+
* @license lucide-react v0.575.0 - ISC
|
|
45
|
+
*
|
|
46
|
+
* This source code is licensed under the ISC license.
|
|
47
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
48
|
+
*)
|
|
49
|
+
|
|
50
|
+
lucide-react/dist/esm/defaultAttributes.js:
|
|
51
|
+
(**
|
|
52
|
+
* @license lucide-react v0.575.0 - ISC
|
|
53
|
+
*
|
|
54
|
+
* This source code is licensed under the ISC license.
|
|
55
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
56
|
+
*)
|
|
57
|
+
|
|
58
|
+
lucide-react/dist/esm/shared/src/utils/hasA11yProp.js:
|
|
59
|
+
(**
|
|
60
|
+
* @license lucide-react v0.575.0 - ISC
|
|
61
|
+
*
|
|
62
|
+
* This source code is licensed under the ISC license.
|
|
63
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
64
|
+
*)
|
|
65
|
+
|
|
66
|
+
lucide-react/dist/esm/Icon.js:
|
|
67
|
+
(**
|
|
68
|
+
* @license lucide-react v0.575.0 - ISC
|
|
69
|
+
*
|
|
70
|
+
* This source code is licensed under the ISC license.
|
|
71
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
72
|
+
*)
|
|
73
|
+
|
|
74
|
+
lucide-react/dist/esm/createLucideIcon.js:
|
|
75
|
+
(**
|
|
76
|
+
* @license lucide-react v0.575.0 - ISC
|
|
77
|
+
*
|
|
78
|
+
* This source code is licensed under the ISC license.
|
|
79
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
80
|
+
*)
|
|
81
|
+
|
|
82
|
+
lucide-react/dist/esm/icons/pipette.js:
|
|
83
|
+
(**
|
|
84
|
+
* @license lucide-react v0.575.0 - ISC
|
|
85
|
+
*
|
|
86
|
+
* This source code is licensed under the ISC license.
|
|
87
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
88
|
+
*)
|
|
89
|
+
|
|
90
|
+
lucide-react/dist/esm/lucide-react.js:
|
|
91
|
+
(**
|
|
92
|
+
* @license lucide-react v0.575.0 - ISC
|
|
93
|
+
*
|
|
94
|
+
* This source code is licensed under the ISC license.
|
|
95
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
96
|
+
*)
|
|
97
|
+
|
|
98
|
+
react-beautiful-color/dist/index.mjs:
|
|
99
|
+
(**
|
|
100
|
+
* @license React
|
|
101
|
+
* react-jsx-runtime.production.js
|
|
102
|
+
*
|
|
103
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
104
|
+
*
|
|
105
|
+
* This source code is licensed under the MIT license found in the
|
|
106
|
+
* LICENSE file in the root directory of this source tree.
|
|
107
|
+
*)
|
|
108
|
+
|
|
109
|
+
react-beautiful-color/dist/index.mjs:
|
|
110
|
+
(**
|
|
111
|
+
* @license React
|
|
112
|
+
* react-jsx-runtime.development.js
|
|
113
|
+
*
|
|
114
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
115
|
+
*
|
|
116
|
+
* This source code is licensed under the MIT license found in the
|
|
117
|
+
* LICENSE file in the root directory of this source tree.
|
|
118
|
+
*)
|
|
119
|
+
*/
|