diff --git a/exporters/variables-scss/generated/exporter.cjs b/exporters/variables-scss/generated/exporter.cjs index e757f83488..c4f5781cd7 100644 --- a/exporters/variables-scss/generated/exporter.cjs +++ b/exporters/variables-scss/generated/exporter.cjs @@ -1,17 +1,20 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function Re(p){if(p.__esModule)return p;var s=p.default;if(typeof s=="function"){var y=function n(){return this instanceof n?Reflect.construct(s,arguments,this.constructor):s.apply(this,arguments)};y.prototype=s.prototype}else y={};return Object.defineProperty(y,"__esModule",{value:!0}),Object.keys(p).forEach(function(n){var T=Object.getOwnPropertyDescriptor(p,n);Object.defineProperty(y,n,T.get?T:{enumerable:!0,get:function(){return p[n]}})}),y}var E={},ge={},be;function Le(){return be||(be=1,function(p){(()=>{var s={275:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.DocsImageRefType=void 0,(o=e.DocsImageRefType||(e.DocsImageRefType={})).upload="Upload",o.asset="Asset",o.figmaFrame="FigmaFrame"},2695:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.DocsLinkRefType=void 0,(o=e.DocsLinkRefType||(e.DocsLinkRefType={})).page="Page",o.pageHeading="pageHeading",o.group="Group",o.url="url"},3476:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.DocumentationLegacyPageBlockShortcut=e.DocumentationLegacyPageBlockShortcutType=void 0,function(t){t.external="External",t.internal="Internal"}(o=e.DocumentationLegacyPageBlockShortcutType||(e.DocumentationLegacyPageBlockShortcutType={})),e.DocumentationLegacyPageBlockShortcut=class{constructor(t){var i;t.url?this.type=o.external:this.type=o.internal,this.title=this.shortcutTitleFromModel(t,this.type),this.description=this.shortcutDescriptionFromModel(t,this.type),this.previewUrl=this.shortcutPreviewUrlFromModel(t),this.type===o.internal&&(!((i=t.documentationItemPreview)===null||i===void 0)&&i.valid)&&t.documentationItemId?this.internalId=t.documentationItemId:(this.internalId=null,this.type===o.external&&t.url?this.externalUrl=t.url:this.externalUrl=null)}shortcutTitleFromModel(t,i){var d,l,c,a,u;let m=null;return t.title&&t.title.trim().length>0?m=t.title:i===o.internal?m=(l=(d=t.documentationItemPreview)===null||d===void 0?void 0:d.title)!==null&&l!==void 0?l:null:i===o.external&&(m=(u=(a=(c=t.urlPreview)===null||c===void 0?void 0:c.title)!==null&&a!==void 0?a:t.url)!==null&&u!==void 0?u:null),m&&m.trim().length!==0?m:null}shortcutDescriptionFromModel(t,i){var d;let l=null;return t.description&&t.description.trim().length>0?l=t.description:i===o.external&&(l=(d=t.urlPreview)===null||d===void 0?void 0:d.description),l&&l.trim().length!==0?l:null}shortcutPreviewUrlFromModel(t){var i,d,l,c,a;return(a=(l=(i=t.assetUrl)!==null&&i!==void 0?i:(d=t.asset)===null||d===void 0?void 0:d.url)!==null&&l!==void 0?l:(c=t.urlPreview)===null||c===void 0?void 0:c.thumbnailUrl)!==null&&a!==void 0?a:null}}},4222:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.Alignment=void 0,(o=e.Alignment||(e.Alignment={})).left="Left",o.center="Center",o.stretch="Stretch"},1334:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.AssetFormat=void 0,(o=e.AssetFormat||(e.AssetFormat={})).png="png",o.pdf="pdf",o.svg="svg"},1940:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.AssetScale=void 0,(o=e.AssetScale||(e.AssetScale={})).x1="x1",o.x2="x2",o.x3="x3",o.x4="x4"},959:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.AssetScaleType=void 0,(o=e.AssetScaleType||(e.AssetScaleType={})).aspectFill="AspectFill",o.aspectFit="AspectFit"},9257:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.BlurType=void 0,(o=e.BlurType||(e.BlurType={})).layer="Layer",o.background="Background"},6675:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.ALL_BORDER_POSITIONS=e.BorderPosition=void 0,function(t){t.inside="Inside",t.center="Center",t.outside="Outside"}(o=e.BorderPosition||(e.BorderPosition={})),e.ALL_BORDER_POSITIONS=[o.inside,o.center,o.outside]},6701:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.ALL_BORDER_STYLES=e.BorderStyle=void 0,function(t){t.dashed="Dashed",t.dotted="Dotted",t.solid="Solid",t.groove="Groove"}(o=e.BorderStyle||(e.BorderStyle={})),e.ALL_BORDER_STYLES=[o.dashed,o.dotted,o.solid,o.groove]},829:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.ImportWarningType=void 0,(o=e.ImportWarningType||(e.ImportWarningType={})).UnsupportedFill="UnsupportedFill",o.UnsupportedStroke="UnsupportedStroke",o.UnsupportedEffect="UnsupportedEffect",o.StyleNotApplied="StyleNotApplied",o.NoPublishedStyles="NoPublishedStyles",o.NoPublishedComponents="NoPublishedComponents",o.NoPublishedAssets="NoPublishedAssets",o.NoVersionFound="NoVersionFound",o.ComponentHasNoThumbnail="ComponentHasNoThumbnail",o.DuplicateImportedStyleId="DuplicateImportedStyleId",o.DuplicateImportedStylePath="DuplicateImportedStylePath",o.NoPublishedElements="NoPublishedElements"},3611:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.CustomDomainErrorCode=void 0,(o=e.CustomDomainErrorCode||(e.CustomDomainErrorCode={})).generalError="GeneralError",o.dnsNotConfigured="DNSNotConfigured",o.maintenance="Maintenance"},6530:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.CustomDomainState=void 0,(o=e.CustomDomainState||(e.CustomDomainState={})).initial="Initial",o.domainSetupInProgress="DomainSetupInProgress",o.domainSetupFailed="DomainSetupFailed",o.domainSetupsSucces="DomainSetupSuccess",o.sslSetupInProgress="SSLSetupInProgress",o.sslSetupFailed="SSLSetupFailed",o.sslSetupSuccess="SSLSetupSuccess"},4934:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.DocsBlockBehaviorDataType=void 0,(o=e.DocsBlockBehaviorDataType||(e.DocsBlockBehaviorDataType={})).item="Item",o.token="Token",o.asset="Asset",o.component="Component"},8081:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.DocsBlockBehaviorSelectionType=void 0,(o=e.DocsBlockBehaviorSelectionType||(e.DocsBlockBehaviorSelectionType={})).entity="Entity",o.group="Group",o.entityAndGroup="EntityAndGroup"},9534:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.DocsBlockImagePropertyAspectRatio=void 0,(o=e.DocsBlockImagePropertyAspectRatio||(e.DocsBlockImagePropertyAspectRatio={})).square="Square",o.landscape="Landscape",o.portrait="Portrait",o.wide="Wide"},1043:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.DocsBlockItemEntityType=void 0,(o=e.DocsBlockItemEntityType||(e.DocsBlockItemEntityType={})).token="Token",o.tokenGroup="TokenGroup",o.asset="Asset",o.assetGroup="AssetGroup",o.component="Component",o.componentGroup="ComponentGroup"},3947:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.DocsBlockItemPropertyOptionRenderingStyle=void 0,(o=e.DocsBlockItemPropertyOptionRenderingStyle||(e.DocsBlockItemPropertyOptionRenderingStyle={})).segmentedControl="SegmentedControl",o.toggleButton="ToggleButton",o.select="Select",o.checkbox="Checkbox"},4742:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.DocsBlockItemPropertyRichTextStyle=void 0,(o=e.DocsBlockItemPropertyRichTextStyle||(e.DocsBlockItemPropertyRichTextStyle={})).title1="Title1",o.title2="Title2",o.title3="Title3",o.title4="Title4",o.title5="Title5",o.quote="Quote",o.callout="Callout",o.ol="OL",o.ul="UL"},7825:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.DocsBlockItemPropertyTextStyle=void 0,(o=e.DocsBlockItemPropertyTextStyle||(e.DocsBlockItemPropertyTextStyle={})).small="Small",o.regular="Regular",o.bold="Bold"},6751:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.DocsBlockItemPropertyType=void 0,(o=e.DocsBlockItemPropertyType||(e.DocsBlockItemPropertyType={})).richText="RichText",o.text="Text",o.boolean="Boolean",o.number="Number",o.singleSelect="SingleSelect",o.multiSelect="MultiSelect",o.image="Image",o.token="Token",o.tokenType="TokenType",o.tokenProperty="TokenProperty",o.component="Component",o.componentProperty="ComponentProperty",o.asset="Asset",o.assetProperty="AssetProperty",o.page="Page",o.pageProperty="PageProperty",o.embedURL="EmbedURL",o.embedFrame="EmbedFrame",o.markdown="Markdown",o.code="Code",o.codeSandbox="CodeSandbox",o.table="Table",o.divider="Divider",o.storybook="Storybook"},6777:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.DocsBlockItemVariantLayoutType=void 0,(o=e.DocsBlockItemVariantLayoutType||(e.DocsBlockItemVariantLayoutType={})).column="Column",o.row="Row"},9279:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.DocsBlockItemVariantLayoutWidth=void 0,(o=e.DocsBlockItemVariantLayoutWidth||(e.DocsBlockItemVariantLayoutWidth={})).c1="1",o.c2="2",o.c3="3",o.c4="4",o.c5="5",o.c6="6",o.c7="7",o.c8="8",o.c9="9",o.c10="10",o.c11="11",o.c12="12"},5271:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.DocsBlockOptionRenderingStyle=void 0,(o=e.DocsBlockOptionRenderingStyle||(e.DocsBlockOptionRenderingStyle={})).segmentedControl="SegmentedControl",o.toggleButton="ToggleButton",o.select="Select",o.checkbox="Checkbox"},3274:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.DocsBlockRichTextPropertyStyle=void 0,(o=e.DocsBlockRichTextPropertyStyle||(e.DocsBlockRichTextPropertyStyle={})).title1="Title1",o.title2="Title2",o.title3="Title3",o.title4="Title4",o.title5="Title5",o.quote="Quote",o.callout="Callout",o.ol="OL",o.ul="UL",o.default="Default"},6001:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.DocsBlockTextPropertyStyle=void 0,(o=e.DocsBlockTextPropertyStyle||(e.DocsBlockTextPropertyStyle={})).title1="Title1",o.title2="Title2",o.title3="Title3",o.title4="Title4",o.title5="Title5",o.default="Default",o.defaultBold="DefaultBold",o.defaultSemibold="DefaultSemibold",o.small="Small",o.smallBold="SmallBold",o.smallSemibold="SmallSemibold"},1755:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.DocsEntityGroupBehavior=void 0,(o=e.DocsEntityGroupBehavior||(e.DocsEntityGroupBehavior={})).group="Group",o.tabs="Tabs"},8240:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.DocsEntityType=void 0,(o=e.DocsEntityType||(e.DocsEntityType={})).group="Group",o.page="Page"},4142:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.DocsSectionType=void 0,(o=e.DocsSectionType||(e.DocsSectionType={})).plain="Plain",o.tabs="Tabs"},4782:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.DocumentationLegacyCalloutType=void 0,(o=e.DocumentationLegacyCalloutType||(e.DocumentationLegacyCalloutType={})).info="Info",o.success="Success",o.warning="Warning",o.error="Error"},8549:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.DocumentationLegacyGroupBehavior=void 0,(o=e.DocumentationLegacyGroupBehavior||(e.DocumentationLegacyGroupBehavior={})).group="Group",o.tabs="Tabs"},1931:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.DocumentationLegacyHeadingType=void 0,(o=e.DocumentationLegacyHeadingType||(e.DocumentationLegacyHeadingType={}))[o.h1=1]="h1",o[o.h2=2]="h2",o[o.h3=3]="h3"},5359:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.DocumentationLegacyItemType=void 0,(o=e.DocumentationLegacyItemType||(e.DocumentationLegacyItemType={})).group="Group",o.page="Page"},9437:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.DocumentationLegacyPageAssetType=void 0,(o=e.DocumentationLegacyPageAssetType||(e.DocumentationLegacyPageAssetType={})).image="image",o.figmaFrame="figmaFrame"},4649:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.DocumentationLegacyPageBlockThemeType=void 0,(o=e.DocumentationLegacyPageBlockThemeType||(e.DocumentationLegacyPageBlockThemeType={})).override="Override",o.comparison="Comparison"},8560:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.DocumentationLegacyPageBlockType=void 0,(o=e.DocumentationLegacyPageBlockType||(e.DocumentationLegacyPageBlockType={})).text="Text",o.heading="Heading",o.code="Code",o.unorderedList="UnorderedList",o.orderedList="OrderedList",o.quote="Quote",o.callout="Callout",o.divider="Divider",o.image="Image",o.token="Token",o.tokenList="TokenList",o.tokenGroup="TokenGroup",o.shortcuts="Shortcuts",o.link="Link",o.figmaEmbed="FigmaEmbed",o.youtubeEmbed="YoutubeEmbed",o.storybookEmbed="StorybookEmbed",o.genericEmbed="Embed",o.figmaFrames="FigmaFrames",o.custom="Custom",o.renderCode="RenderCode",o.componentAssets="ComponentAssets",o.column="Column",o.columnItem="ColumnItem",o.tabs="Tabs",o.tabItem="TabItem",o.table="Table",o.tableCell="TableCell",o.tableRow="TableRow"},4914:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.FrameAlignment=void 0,(o=e.FrameAlignment||(e.FrameAlignment={})).frameHeight="FrameHeight",o.center="Center"},5986:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.FrameLayout=void 0,(o=e.FrameLayout||(e.FrameLayout={})).c8="C8",o.c7="C7",o.c6="C6",o.c5="C5",o.c4="C4",o.c3="C3",o.c2="C2",o.c1="C1",o.c175="C1_75"},4667:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.GradientType=void 0,(o=e.GradientType||(e.GradientType={})).linear="Linear",o.radial="Radial",o.angular="Angular"},4336:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.RichTextSpanAttributeType=void 0,(o=e.RichTextSpanAttributeType||(e.RichTextSpanAttributeType={})).bold="Bold",o.italic="Italic",o.link="Link",o.strikethrough="Strikethrough",o.code="Code"},5467:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.ShadowType=void 0,(o=e.ShadowType||(e.ShadowType={})).drop="Drop",o.inner="Inner"},1694:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.SourceType=void 0,(o=e.SourceType||(e.SourceType={})).figma="Figma",o.tokenStudio="TokenStudio"},2047:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.TextCase=void 0,(o=e.TextCase||(e.TextCase={})).original="Original",o.upper="Upper",o.lower="Lower",o.camel="Camel",o.smallCaps="SmallCaps"},5780:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.TextDecoration=void 0,(o=e.TextDecoration||(e.TextDecoration={})).original="None",o.underline="Underline",o.strikethrough="Strikethrough"},1256:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.DT_TOKEN_TYPES=e.tokenTypeIsReferencable=e.REFERENCABLE_TOKEN_TYPES=e.REPLACABLE_TOKEN_TYPES=e.tokenTypeIsNonPure=e.tokenTypeIsPure=e.PURE_TOKEN_TYPES=e.ALL_TOKEN_TYPES=e.MS_DIMENSION_TOKEN_TYPES=e.RAW_DIMENSION_TOKEN_TYPES=e.DIMENSION_TOKEN_TYPES=e.OPTION_TOKEN_TYPES=e.STRING_TOKEN_TYPES=e.TokenType=void 0,function(t){t.color="Color",t.typography="Typography",t.dimension="Dimension",t.size="Size",t.space="Space",t.opacity="Opacity",t.fontSize="FontSize",t.lineHeight="LineHeight",t.letterSpacing="LetterSpacing",t.paragraphSpacing="ParagraphSpacing",t.borderWidth="BorderWidth",t.radius="BorderRadius",t.duration="Duration",t.zIndex="ZIndex",t.shadow="Shadow",t.border="Border",t.gradient="Gradient",t.string="String",t.productCopy="ProductCopy",t.fontFamily="FontFamily",t.fontWeight="FontWeight",t.textCase="TextCase",t.textDecoration="TextDecoration",t.visibility="Visibility",t.blur="Blur"}(o=e.TokenType||(e.TokenType={})),e.STRING_TOKEN_TYPES=[o.string,o.productCopy,o.fontFamily,o.fontWeight],e.OPTION_TOKEN_TYPES=[o.textCase,o.textDecoration,o.visibility],e.DIMENSION_TOKEN_TYPES=[o.dimension,o.size,o.space,o.opacity,o.fontSize,o.lineHeight,o.letterSpacing,o.paragraphSpacing,o.borderWidth,o.radius,o.duration,o.zIndex],e.RAW_DIMENSION_TOKEN_TYPES=[o.opacity,o.zIndex],e.MS_DIMENSION_TOKEN_TYPES=[o.duration],e.ALL_TOKEN_TYPES=[...e.DIMENSION_TOKEN_TYPES,...e.STRING_TOKEN_TYPES,...e.OPTION_TOKEN_TYPES,o.color,o.gradient,o.border,o.radius,o.shadow,o.typography,o.blur],e.PURE_TOKEN_TYPES=[...e.DIMENSION_TOKEN_TYPES,...e.STRING_TOKEN_TYPES,...e.OPTION_TOKEN_TYPES],e.tokenTypeIsPure=t=>e.PURE_TOKEN_TYPES.includes(t),e.tokenTypeIsNonPure=t=>!(0,e.tokenTypeIsPure)(t),e.REPLACABLE_TOKEN_TYPES=[o.color,...e.DIMENSION_TOKEN_TYPES,...e.STRING_TOKEN_TYPES,...e.OPTION_TOKEN_TYPES],e.REFERENCABLE_TOKEN_TYPES=[o.color,...e.DIMENSION_TOKEN_TYPES,o.fontFamily,o.fontWeight,o.textCase,o.textDecoration],e.tokenTypeIsReferencable=t=>e.REFERENCABLE_TOKEN_TYPES.includes(t),e.DT_TOKEN_TYPES=[o.color,o.shadow,o.gradient,o.typography,o.border,...e.DIMENSION_TOKEN_TYPES,o.fontFamily,o.fontWeight,...e.OPTION_TOKEN_TYPES]},5389:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.MS_UNITS=e.PX_UNITS=e.RAW_UNITS=e.LINE_HEIGHT_UNITS=e.SIZE_UNITS=e.Unit=void 0,function(t){t.pixels="Pixels",t.percent="Percent",t.rem="Rem",t.ms="Ms",t.raw="Raw"}(o=e.Unit||(e.Unit={})),e.SIZE_UNITS=[o.pixels,o.percent,o.rem],e.LINE_HEIGHT_UNITS=[o.pixels,o.percent,o.rem,o.raw],e.RAW_UNITS=[o.raw],e.PX_UNITS=[o.pixels],e.MS_UNITS=[o.ms]},2916:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.UserRole=void 0,(o=e.UserRole||(e.UserRole={})).owner="Owner",o.admin="Admin",o.creator="Creator",o.viewer="Viewer",o.billing="Billing"},6398:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.VisibilityType=void 0,(o=e.VisibilityType||(e.VisibilityType={})).visible="Visible",o.hidden="Hidden"},4838:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.WorkspaceNPMRegistryAuthType=void 0,(o=e.WorkspaceNPMRegistryAuthType||(e.WorkspaceNPMRegistryAuthType={})).basic="Basic",o.bearer="Bearer"},2015:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.WorkspaceNPMRegistryType=void 0,(o=e.WorkspaceNPMRegistryType||(e.WorkspaceNPMRegistryType={})).npmJS="NPMJS",o.gitHub="GitHub",o.azureDevOps="AzureDevOps",o.artifactory="Artifactory",o.custom="Custom"},4357:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.WorkspaceSubscriptionPlanInterval=void 0,(o=e.WorkspaceSubscriptionPlanInterval||(e.WorkspaceSubscriptionPlanInterval={})).yearly="yearly",o.monthly="monthly"},743:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.WorkspaceSubscriptionProductCode=void 0,(o=e.WorkspaceSubscriptionProductCode||(e.WorkspaceSubscriptionProductCode={})).free="free",o.team="team",o.teamTest="team_test",o.company="company",o.enterprise="enterprise"},5841:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.WorkspaceSubscriptionStatus=void 0,(o=e.WorkspaceSubscriptionStatus||(e.WorkspaceSubscriptionStatus={})).active="active",o.gracePeriod="gracePeriod",o.cancelled="cancelled",o.suspended="suspended"},3803:(r,e)=>{var o,t;Object.defineProperty(e,"__esModule",{value:!0}),e.PulsarExecutor=e.OutputFileType=void 0,(t=e.OutputFileType||(e.OutputFileType={})).copyRemoteUrl="copyRemoteUrl",t.text="text",t.binary="binary",(o=e.PulsarExecutor||(e.PulsarExecutor={})).supernova="supernova",o.local="local"}},y={};function n(r){var e=y[r];if(e!==void 0)return e.exports;var o=y[r]={exports:{}};return s[r](o,o.exports,n),o.exports}var T={};(()=>{var r=T;Object.defineProperty(r,"__esModule",{value:!0}),r.UserRole=r.Unit=r.TokenType=r.TextDecoration=r.TextCase=r.ShadowType=r.RichTextSpanAttributeType=r.GradientType=r.FrameLayout=r.FrameAlignment=r.SourceType=r.DocsImageRefType=r.DocsLinkRefType=r.DocsSectionType=r.DocsEntityType=r.DocsEntityGroupBehavior=r.DocsBlockTextPropertyStyle=r.DocsBlockRichTextPropertyStyle=r.DocsBlockOptionRenderingStyle=r.DocsBlockItemVariantLayoutWidth=r.DocsBlockItemVariantLayoutType=r.DocsBlockItemPropertyType=r.DocsBlockItemPropertyTextStyle=r.DocsBlockItemPropertyRichTextStyle=r.DocsBlockItemPropertyOptionRenderingStyle=r.DocsBlockItemEntityType=r.DocsBlockImagePropertyAspectRatio=r.DocsBlockBehaviorSelectionType=r.DocsBlockBehaviorDataType=r.DocumentationLegacyPageBlockShortcutType=r.DocumentationLegacyPageBlockThemeType=r.DocumentationLegacyPageBlockType=r.DocumentationLegacyPageAssetType=r.DocumentationLegacyItemType=r.DocumentationLegacyHeadingType=r.DocumentationLegacyGroupBehavior=r.DocumentationLegacyCalloutType=r.BorderStyle=r.BorderPosition=r.BlurType=r.AssetScaleType=r.AssetScale=r.AssetFormat=r.Alignment=r.ALL_TOKEN_TYPES=r.ALL_BORDER_STYLES=r.ALL_BORDER_POSITIONS=r.OPTION_TOKEN_TYPES=r.STRING_TOKEN_TYPES=r.DIMENSION_TOKEN_TYPES=void 0,r.PulsarExecutor=r.OutputFileType=r.CustomDomainState=r.CustomDomainErrorCode=r.ImportWarningType=r.WorkspaceNPMRegistryType=r.WorkspaceNPMRegistryAuthType=r.WorkspaceSubscriptionStatus=r.WorkspaceSubscriptionProductCode=r.WorkspaceSubscriptionPlanInterval=r.VisibilityType=void 0;var e=n(1256);Object.defineProperty(r,"DIMENSION_TOKEN_TYPES",{enumerable:!0,get:function(){return e.DIMENSION_TOKEN_TYPES}}),Object.defineProperty(r,"STRING_TOKEN_TYPES",{enumerable:!0,get:function(){return e.STRING_TOKEN_TYPES}}),Object.defineProperty(r,"OPTION_TOKEN_TYPES",{enumerable:!0,get:function(){return e.OPTION_TOKEN_TYPES}});var o=n(6675);Object.defineProperty(r,"ALL_BORDER_POSITIONS",{enumerable:!0,get:function(){return o.ALL_BORDER_POSITIONS}});var t=n(6701);Object.defineProperty(r,"ALL_BORDER_STYLES",{enumerable:!0,get:function(){return t.ALL_BORDER_STYLES}});var i=n(1256);Object.defineProperty(r,"ALL_TOKEN_TYPES",{enumerable:!0,get:function(){return i.ALL_TOKEN_TYPES}});var d=n(4222);Object.defineProperty(r,"Alignment",{enumerable:!0,get:function(){return d.Alignment}});var l=n(1334);Object.defineProperty(r,"AssetFormat",{enumerable:!0,get:function(){return l.AssetFormat}});var c=n(1940);Object.defineProperty(r,"AssetScale",{enumerable:!0,get:function(){return c.AssetScale}});var a=n(959);Object.defineProperty(r,"AssetScaleType",{enumerable:!0,get:function(){return a.AssetScaleType}});var u=n(9257);Object.defineProperty(r,"BlurType",{enumerable:!0,get:function(){return u.BlurType}});var m=n(6675);Object.defineProperty(r,"BorderPosition",{enumerable:!0,get:function(){return m.BorderPosition}});var S=n(6701);Object.defineProperty(r,"BorderStyle",{enumerable:!0,get:function(){return S.BorderStyle}});var v=n(4782);Object.defineProperty(r,"DocumentationLegacyCalloutType",{enumerable:!0,get:function(){return v.DocumentationLegacyCalloutType}});var b=n(8549);Object.defineProperty(r,"DocumentationLegacyGroupBehavior",{enumerable:!0,get:function(){return b.DocumentationLegacyGroupBehavior}});var P=n(1931);Object.defineProperty(r,"DocumentationLegacyHeadingType",{enumerable:!0,get:function(){return P.DocumentationLegacyHeadingType}});var h=n(5359);Object.defineProperty(r,"DocumentationLegacyItemType",{enumerable:!0,get:function(){return h.DocumentationLegacyItemType}});var D=n(9437);Object.defineProperty(r,"DocumentationLegacyPageAssetType",{enumerable:!0,get:function(){return D.DocumentationLegacyPageAssetType}});var O=n(8560);Object.defineProperty(r,"DocumentationLegacyPageBlockType",{enumerable:!0,get:function(){return O.DocumentationLegacyPageBlockType}});var B=n(4649);Object.defineProperty(r,"DocumentationLegacyPageBlockThemeType",{enumerable:!0,get:function(){return B.DocumentationLegacyPageBlockThemeType}});var R=n(3476);Object.defineProperty(r,"DocumentationLegacyPageBlockShortcutType",{enumerable:!0,get:function(){return R.DocumentationLegacyPageBlockShortcutType}});var L=n(4934);Object.defineProperty(r,"DocsBlockBehaviorDataType",{enumerable:!0,get:function(){return L.DocsBlockBehaviorDataType}});var x=n(8081);Object.defineProperty(r,"DocsBlockBehaviorSelectionType",{enumerable:!0,get:function(){return x.DocsBlockBehaviorSelectionType}});var j=n(9534);Object.defineProperty(r,"DocsBlockImagePropertyAspectRatio",{enumerable:!0,get:function(){return j.DocsBlockImagePropertyAspectRatio}});var M=n(1043);Object.defineProperty(r,"DocsBlockItemEntityType",{enumerable:!0,get:function(){return M.DocsBlockItemEntityType}});var A=n(3947);Object.defineProperty(r,"DocsBlockItemPropertyOptionRenderingStyle",{enumerable:!0,get:function(){return A.DocsBlockItemPropertyOptionRenderingStyle}});var F=n(4742);Object.defineProperty(r,"DocsBlockItemPropertyRichTextStyle",{enumerable:!0,get:function(){return F.DocsBlockItemPropertyRichTextStyle}});var w=n(7825);Object.defineProperty(r,"DocsBlockItemPropertyTextStyle",{enumerable:!0,get:function(){return w.DocsBlockItemPropertyTextStyle}});var H=n(6751);Object.defineProperty(r,"DocsBlockItemPropertyType",{enumerable:!0,get:function(){return H.DocsBlockItemPropertyType}});var U=n(6777);Object.defineProperty(r,"DocsBlockItemVariantLayoutType",{enumerable:!0,get:function(){return U.DocsBlockItemVariantLayoutType}});var W=n(9279);Object.defineProperty(r,"DocsBlockItemVariantLayoutWidth",{enumerable:!0,get:function(){return W.DocsBlockItemVariantLayoutWidth}});var Y=n(5271);Object.defineProperty(r,"DocsBlockOptionRenderingStyle",{enumerable:!0,get:function(){return Y.DocsBlockOptionRenderingStyle}});var G=n(3274);Object.defineProperty(r,"DocsBlockRichTextPropertyStyle",{enumerable:!0,get:function(){return G.DocsBlockRichTextPropertyStyle}});var V=n(6001);Object.defineProperty(r,"DocsBlockTextPropertyStyle",{enumerable:!0,get:function(){return V.DocsBlockTextPropertyStyle}});var K=n(1755);Object.defineProperty(r,"DocsEntityGroupBehavior",{enumerable:!0,get:function(){return K.DocsEntityGroupBehavior}});var $=n(8240);Object.defineProperty(r,"DocsEntityType",{enumerable:!0,get:function(){return $.DocsEntityType}});var z=n(4142);Object.defineProperty(r,"DocsSectionType",{enumerable:!0,get:function(){return z.DocsSectionType}});var q=n(2695);Object.defineProperty(r,"DocsLinkRefType",{enumerable:!0,get:function(){return q.DocsLinkRefType}});var Z=n(275);Object.defineProperty(r,"DocsImageRefType",{enumerable:!0,get:function(){return Z.DocsImageRefType}});var J=n(1694);Object.defineProperty(r,"SourceType",{enumerable:!0,get:function(){return J.SourceType}});var Q=n(4914);Object.defineProperty(r,"FrameAlignment",{enumerable:!0,get:function(){return Q.FrameAlignment}});var X=n(5986);Object.defineProperty(r,"FrameLayout",{enumerable:!0,get:function(){return X.FrameLayout}});var ee=n(4667);Object.defineProperty(r,"GradientType",{enumerable:!0,get:function(){return ee.GradientType}});var oe=n(4336);Object.defineProperty(r,"RichTextSpanAttributeType",{enumerable:!0,get:function(){return oe.RichTextSpanAttributeType}});var te=n(5467);Object.defineProperty(r,"ShadowType",{enumerable:!0,get:function(){return te.ShadowType}});var re=n(2047);Object.defineProperty(r,"TextCase",{enumerable:!0,get:function(){return re.TextCase}});var ne=n(5780);Object.defineProperty(r,"TextDecoration",{enumerable:!0,get:function(){return ne.TextDecoration}});var ae=n(1256);Object.defineProperty(r,"TokenType",{enumerable:!0,get:function(){return ae.TokenType}});var ie=n(5389);Object.defineProperty(r,"Unit",{enumerable:!0,get:function(){return ie.Unit}});var ce=n(2916);Object.defineProperty(r,"UserRole",{enumerable:!0,get:function(){return ce.UserRole}});var le=n(6398);Object.defineProperty(r,"VisibilityType",{enumerable:!0,get:function(){return le.VisibilityType}});var se=n(4357);Object.defineProperty(r,"WorkspaceSubscriptionPlanInterval",{enumerable:!0,get:function(){return se.WorkspaceSubscriptionPlanInterval}});var ue=n(743);Object.defineProperty(r,"WorkspaceSubscriptionProductCode",{enumerable:!0,get:function(){return ue.WorkspaceSubscriptionProductCode}});var pe=n(5841);Object.defineProperty(r,"WorkspaceSubscriptionStatus",{enumerable:!0,get:function(){return pe.WorkspaceSubscriptionStatus}});var de=n(4838);Object.defineProperty(r,"WorkspaceNPMRegistryAuthType",{enumerable:!0,get:function(){return de.WorkspaceNPMRegistryAuthType}});var ye=n(2015);Object.defineProperty(r,"WorkspaceNPMRegistryType",{enumerable:!0,get:function(){return ye.WorkspaceNPMRegistryType}});var Te=n(829);Object.defineProperty(r,"ImportWarningType",{enumerable:!0,get:function(){return Te.ImportWarningType}});var me=n(3611);Object.defineProperty(r,"CustomDomainErrorCode",{enumerable:!0,get:function(){return me.CustomDomainErrorCode}});var fe=n(6530);Object.defineProperty(r,"CustomDomainState",{enumerable:!0,get:function(){return fe.CustomDomainState}});var I=n(3803);Object.defineProperty(r,"OutputFileType",{enumerable:!0,get:function(){return I.OutputFileType}}),Object.defineProperty(r,"PulsarExecutor",{enumerable:!0,get:function(){return I.PulsarExecutor}})})();var f=p;for(var g in T)f[g]=T[g];T.__esModule&&Object.defineProperty(f,"__esModule",{value:!0})})()}(ge)),ge}var k=function(){return k=Object.assign||function(s){for(var y,n=1,T=arguments.length;n0&&y>="0"&&y<="9"?"_"+y+n:""+y.toUpperCase()+n}function _e(p){return p.charAt(0).toUpperCase()+p.slice(1).toLowerCase()}function De(p,s){return s===void 0&&(s={}),C(p,k({delimiter:"",transform:ve},s))}function Ce(p,s){return s===0?p.toLowerCase():ve(p,s)}function Ae(p,s){return s===0?p.toLowerCase():_e(p)}function Fe(p,s){return s===void 0&&(s={}),De(p,k({transform:Ce},s))}function Ie(p){return p.charAt(0).toUpperCase()+p.substr(1)}function Ee(p){return Ie(p.toLowerCase())}function Ne(p,s){return s===void 0&&(s={}),C(p,k({delimiter:" ",transform:Ee},s))}function we(p){return p.toUpperCase()}function He(p,s){return s===void 0&&(s={}),C(p,k({delimiter:"_",transform:we},s))}function N(p,s){return s===void 0&&(s={}),C(p,k({delimiter:"."},s))}function Ue(p,s){return s===void 0&&(s={}),Ne(p,k({delimiter:"-"},s))}function We(p,s){return s===void 0&&(s={}),N(p,k({delimiter:"-"},s))}function Ye(p,s){return s===void 0&&(s={}),N(p,k({delimiter:"/"},s))}function Be(p,s){var y=p.toLowerCase();return s===0?Ie(y):y}function Ge(p,s){return s===void 0&&(s={}),C(p,k({delimiter:" ",transform:Be},s))}function Ve(p,s){return s===void 0&&(s={}),N(p,k({delimiter:"_"},s))}const Ke=Object.freeze(Object.defineProperty({__proto__:null,camelCase:Fe,camelCaseTransform:Ce,camelCaseTransformMerge:Ae,capitalCase:Ne,capitalCaseTransform:Ee,constantCase:He,dotCase:N,headerCase:Ue,noCase:C,paramCase:We,pascalCase:De,pascalCaseTransform:ve,pascalCaseTransformMerge:_e,pathCase:Ye,sentenceCase:Ge,sentenceCaseTransform:Be,snakeCase:Ve},Symbol.toStringTag,{value:"Module"})),$e=Re(Ke);(function(p){(()=>{var s={639:(r,e,o)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Iterators=void 0;const t=o(58);e.Iterators=class{static allTokenTypes(){return[t.TokenType.color,t.TokenType.typography,t.TokenType.dimension,t.TokenType.size,t.TokenType.space,t.TokenType.opacity,t.TokenType.fontSize,t.TokenType.lineHeight,t.TokenType.letterSpacing,t.TokenType.paragraphSpacing,t.TokenType.borderWidth,t.TokenType.radius,t.TokenType.duration,t.TokenType.zIndex,t.TokenType.shadow,t.TokenType.border,t.TokenType.gradient,t.TokenType.string,t.TokenType.productCopy,t.TokenType.fontFamily,t.TokenType.fontWeight,t.TokenType.textCase,t.TokenType.textDecoration,t.TokenType.visibility,t.TokenType.blur]}static allDimensionTokenTypes(){return[t.TokenType.dimension,t.TokenType.size,t.TokenType.space,t.TokenType.opacity,t.TokenType.fontSize,t.TokenType.lineHeight,t.TokenType.letterSpacing,t.TokenType.paragraphSpacing,t.TokenType.borderWidth,t.TokenType.radius,t.TokenType.duration,t.TokenType.zIndex]}static allStringTokenTypes(){return[t.TokenType.string,t.TokenType.productCopy,t.TokenType.fontFamily,t.TokenType.fontWeight]}static allOptionTokenTypes(){return[t.TokenType.textCase,t.TokenType.textDecoration,t.TokenType.visibility]}}},989:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.ColorFormat=void 0,(o=e.ColorFormat||(e.ColorFormat={})).rgb="rgb",o.rgba="rgba",o.smartRgba="smartRgba",o.hex6="hex6",o.hex8="hex8",o.hashHex6="hashHex6",o.hashHex8="hashHex8",o.smartHashHex="smartHashHex",o.smartHex="smartHex",o.hsl="hsl",o.hsla="hsla",o.smartHsla="smartHsla",o.smartUIColor="smartUIColor"},545:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.StringCase=void 0,(o=e.StringCase||(e.StringCase={})).camelCase="camelCase",o.capitalCase="capitalCase",o.constantCase="constantCase",o.dotCase="dotCase",o.headerCase="headerCase",o.noCase="noCase",o.paramCase="paramCase",o.pascalCase="pascalCase",o.pathCase="pathCase",o.sentenceCase="sentenceCase",o.snakeCase="snakeCase"},617:(r,e,o)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.FileHelper=void 0;const t=o(58);e.FileHelper=class{static createCopyRemoteFile({relativePath:i,fileName:d,url:l}){return{path:i,name:d,type:t.OutputFileType.copyRemoteUrl,url:l}}static createTextFile({relativePath:i,fileName:d,content:l}){return{path:i,name:d,type:t.OutputFileType.text,content:l}}static createBinaryFile({relativePath:i,fileName:d,data:l}){return{path:i,name:d,type:t.OutputFileType.binary,data:l}}}},761:(r,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.sureOptionalReference=void 0,e.sureOptionalReference=function(o,t,i=!0){if(!o||!i)return null;const d=t.get(o);if(!d)throw new Error(`Trying to retrieve unknown referenced token ${o}`);return d}},118:(r,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.NetworkHelper=void 0,e.NetworkHelper=class{static async fetchAsText(o,t,i){return(await this.performFetch(o,t,i)).text()}static async fetchAsJSON(o,t,i){return(await this.performFetch(o,t,i)).json()}static async fetchAsData(o,t,i){return(await this.performFetch(o,t,i)).arrayBuffer()}static async performFetch(o,t,i){try{const d=await o.network.fetch(t,i);if(!d.ok)throw new Error(`Request failed with status ${d.status}, error: ${await d.text()}`);return d}catch(d){throw d}}}},771:(r,e,o)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.CSSHelper=void 0;const t=o(58),i=o(761),d=o(952);e.CSSHelper=class{static tokenToCSS(l,c,a){switch(l.tokenType){case t.TokenType.color:return this.colorTokenValueToCSS(l.value,c,a);case t.TokenType.border:return this.borderTokenValueToCSS(l.value,c,a);case t.TokenType.gradient:return this.gradientTokenValueToCSS(l.value,c,a);case t.TokenType.dimension:case t.TokenType.size:case t.TokenType.space:case t.TokenType.opacity:case t.TokenType.fontSize:case t.TokenType.lineHeight:case t.TokenType.letterSpacing:case t.TokenType.paragraphSpacing:case t.TokenType.borderWidth:case t.TokenType.radius:case t.TokenType.duration:case t.TokenType.zIndex:return this.dimensionTokenValueToCSS(l.value,c,a);case t.TokenType.shadow:return this.shadowTokenValueToCSS(l.value,c,a);case t.TokenType.fontWeight:case t.TokenType.fontFamily:case t.TokenType.productCopy:case t.TokenType.string:return this.stringTokenValueToCSS(l.value,c,a);case t.TokenType.textCase:case t.TokenType.textDecoration:case t.TokenType.visibility:return this.optionTokenValueToCSS(l.value,c,a);case t.TokenType.blur:return this.blurTokenValueToCSS(l.value,c,a);case t.TokenType.typography:return this.typographyTokenValueToCSS(l.value,c,a);default:throw new t.UnreachableCaseError(l.tokenType,"Unsupported token type for transformation to CSS:")}}static colorTokenValueToCSS(l,c,a){return d.ColorHelper.formattedColorOrVariableName(l,c,a)}static borderTokenValueToCSS(l,c,a){const u=(0,i.sureOptionalReference)(l.referencedTokenId,c,a.allowReferences);if(u)return a.tokenToVariableRef(u);const m=this.dimensionTokenValueToCSS(l.width,c,a),S=this.borderStyleToCSS(l.style),v=this.colorTokenValueToCSS(l.color,c,a);return this.borderPositionToCSS(l.position),`${m} ${S} ${v}`}static gradientTokenValueToCSS(l,c,a){return l.map(u=>this.gradientLayerToCSS(u,c,a)).join(", ")}static gradientLayerToCSS(l,c,a){const u=(0,i.sureOptionalReference)(l.referencedTokenId,c,a.allowReferences);if(u)return a.tokenToVariableRef(u);let m="";switch(l.type){case t.GradientType.linear:m="linear-gradient(0deg, ";break;case t.GradientType.radial:m="radial-gradient(circle, ";break;case t.GradientType.angular:m="conic-gradient(";break;default:m="linear-gradient(0deg, "}return`${m}${l.stops.map(S=>`${this.colorTokenValueToCSS(S.color,c,a)} ${d.ColorHelper.roundToDecimals(100*S.position,a.decimals)}%`).join(", ")})`}static dimensionTokenValueToCSS(l,c,a){const u=(0,i.sureOptionalReference)(l.referencedTokenId,c,a.allowReferences);return u?a.tokenToVariableRef(u):`${d.ColorHelper.roundToDecimals(l.measure,a.decimals)}${this.unitToCSS(l.unit)}`}static shadowTokenValueToCSS(l,c,a){return l.map(u=>this.shadowLayerToCSS(u,c,a)).join(", ")}static shadowLayerToCSS(l,c,a){const u=(0,i.sureOptionalReference)(l.referencedTokenId,c,a.allowReferences);return u?a.tokenToVariableRef(u):`${l.type===t.ShadowType.inner?"inset ":""}${l.x}px ${l.y}px ${l.radius}px ${l.spread}px ${this.colorTokenValueToCSS(l.color,c,a)}`}static stringTokenValueToCSS(l,c,a){const u=(0,i.sureOptionalReference)(l.referencedTokenId,c,a.allowReferences);return u?a.tokenToVariableRef(u):`"${l.text}"`}static optionTokenValueToCSS(l,c,a){const u=(0,i.sureOptionalReference)(l.referencedTokenId,c,a.allowReferences);return u?a.tokenToVariableRef(u):`"${l.value}"`}static blurTokenValueToCSS(l,c,a){const u=(0,i.sureOptionalReference)(l.referencedTokenId,c,a.allowReferences);return u?a.tokenToVariableRef(u):`blur(${this.dimensionTokenValueToCSS(l.radius,c,a)})`}static typographyTokenValueToCSS(l,c,a){const u=(0,i.sureOptionalReference)(l.referencedTokenId,c,a.allowReferences);if(u)return a.tokenToVariableRef(u);const m=(0,i.sureOptionalReference)(l.fontFamily.referencedTokenId,c,a.allowReferences),S=(0,i.sureOptionalReference)(l.fontWeight.referencedTokenId,c,a.allowReferences),v=(0,i.sureOptionalReference)(l.textDecoration.referencedTokenId,c,a.allowReferences),b=(0,i.sureOptionalReference)(l.textCase.referencedTokenId,c,a.allowReferences),P={fontFamily:m?a.tokenToVariableRef(m):l.fontFamily.text,fontWeight:S?a.tokenToVariableRef(S):l.fontWeight.text,textDecoration:v?a.tokenToVariableRef(v):l.textDecoration.value===t.TextDecoration.original?this.textDecorationToCSS(l.textDecoration.value):void 0,textCase:b?a.tokenToVariableRef(b):l.textCase.value===t.TextCase.original?this.textCaseToCSS(l.textCase.value):void 0,caps:l.textCase.value===t.TextCase.smallCaps,fontSize:this.dimensionTokenValueToCSS(l.fontSize,c,a),lineHeight:l.lineHeight?this.dimensionTokenValueToCSS(l.lineHeight,c,a):void 0},h=P.fontSize;return`${P.caps?"small-caps ":""}${S?P.fontWeight:`"${P.fontWeight}"`} ${P.lineHeight?`${h}/${P.lineHeight}`:h} ${m?P.fontFamily:`"${P.fontFamily}"`}`}static borderStyleToCSS(l){switch(l){case t.BorderStyle.dashed:return"dashed";case t.BorderStyle.dotted:return"dotted";case t.BorderStyle.solid:return"solid";case t.BorderStyle.groove:return"groove";default:return"solid"}}static borderPositionToCSS(l){switch(l){case t.BorderPosition.center:return"center";case t.BorderPosition.inside:return"inside";case t.BorderPosition.outside:default:return"outside"}}static unitToCSS(l){switch(l){case t.Unit.percent:return"%";case t.Unit.pixels:return"px";case t.Unit.rem:return"rem";case t.Unit.raw:return"";case t.Unit.ms:return"ms";default:return"px"}}static textCaseToCSS(l){switch(l){case t.TextCase.original:return"none";case t.TextCase.upper:return"uppercase";case t.TextCase.lower:return"lowercase";case t.TextCase.camel:case t.TextCase.smallCaps:return"capitalize"}}static textDecorationToCSS(l){switch(l){case t.TextDecoration.original:return"none";case t.TextDecoration.underline:return"underline";case t.TextDecoration.strikethrough:return"line-through"}}}},952:(r,e,o)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ColorHelper=void 0;const t=o(989),i=o(761);class d{static formattedColorOrVariableName(c,a,u){let m,S,v;const b=(0,i.sureOptionalReference)(c.referencedTokenId,a,u.allowReferences);if(b)m=u.tokenToVariableRef(b);else{const P=(0,i.sureOptionalReference)(c.color.referencedTokenId,a,u.allowReferences);P&&(S=u.tokenToVariableRef(P));const h=(0,i.sureOptionalReference)(c.opacity.referencedTokenId,a,u.allowReferences);h&&(v=u.tokenToVariableRef(h))}if(m)return m;if(!m&&!S&&!v)return this.formattedColor(c,u.colorFormat,u.decimals);switch(u.colorFormat){case t.ColorFormat.rgb:case t.ColorFormat.rgba:case t.ColorFormat.smartRgba:return this.colorToRgb(u.colorFormat,this.normalizedIntColor(c),c.opacity.measure,u.decimals,S,v);default:return this.formattedColor(c,u.colorFormat,u.decimals)}}static formattedColor(c,a,u=3){switch(a){case t.ColorFormat.hex6:case t.ColorFormat.hex8:case t.ColorFormat.hashHex6:case t.ColorFormat.hashHex8:case t.ColorFormat.smartHex:case t.ColorFormat.smartHashHex:return this.colorToHex(a,this.normalizedIntColor(c),c.opacity.measure);case t.ColorFormat.rgb:case t.ColorFormat.rgba:case t.ColorFormat.smartRgba:return this.colorToRgb(a,this.normalizedIntColor(c),c.opacity.measure,u,null,null);case t.ColorFormat.hsl:case t.ColorFormat.hsla:case t.ColorFormat.smartHsla:return this.colorToHsl(a,this.normalizedFractionalColor(c),c.opacity.measure,u);case t.ColorFormat.smartUIColor:return this.colorToUIColor(this.normalizedIntColor(c),c.opacity.measure,u)}}static colorToRgb(c,a,u,m,S,v){let b;return b=c===t.ColorFormat.rgba||c===t.ColorFormat.smartRgba&&u<1?`rgba(${S||`${a.r}, ${a.g}, ${a.b}`}, ${v||this.roundToDecimals(u,m)})`:`rgb(${S||`${a.r}, ${a.g}, ${a.b}`})`,b}static colorToHex(c,a,u){let m=`${this.pHex(a.r)}${this.pHex(a.g)}${this.pHex(a.b)}`;return(c===t.ColorFormat.hex8||c===t.ColorFormat.hashHex8||c===t.ColorFormat.smartHex&&u<1||c===t.ColorFormat.smartHashHex&&u<1)&&(m+=`${this.pHex(Math.round(255*u))}`),c!==t.ColorFormat.hashHex6&&c!==t.ColorFormat.hashHex8&&c!==t.ColorFormat.smartHashHex||(m=`#${m}`),m}static colorToHsl(c,a,u,m){const S=Math.max(a.r,a.g,a.b),v=Math.min(a.r,a.g,a.b);let b,P,h,D=(S+v)/2;if(S===v)b=P=0;else{const O=S-v;P=D>.5?O/(2-S-v):O/(S+v),S===a.r?b=(a.g-a.b)/O+(a.g{Object.defineProperty(e,"__esModule",{value:!0}),e.NamingHelper=void 0;const t=o(110),i=o(545);class d{static codeSafeVariableNameForToken(c,a,u,m){let S=[];return u&&(S=[...u.path],u.isRoot||S.push(u.name)),S.push(c.name),m&&m.length>0&&S.unshift(m),d.codeSafeVariableName(S,a)}static codeSafeVariableName(c,a){let u=typeof c=="string"?c:c.join(" ");switch(u=u.replaceAll(/[^a-zA-Z0-9_-]/g,"_"),a){case i.StringCase.camelCase:u=(0,t.camelCase)(u);break;case i.StringCase.capitalCase:u=(0,t.capitalCase)(u);break;case i.StringCase.constantCase:u=(0,t.constantCase)(u);break;case i.StringCase.dotCase:u=(0,t.dotCase)(u);break;case i.StringCase.headerCase:u=(0,t.headerCase)(u);break;case i.StringCase.noCase:u=(0,t.noCase)(u);break;case i.StringCase.paramCase:u=(0,t.paramCase)(u);break;case i.StringCase.pascalCase:u=(0,t.pascalCase)(u);break;case i.StringCase.pathCase:u=(0,t.pathCase)(u);break;case i.StringCase.sentenceCase:u=(0,t.sentenceCase)(u);break;case i.StringCase.snakeCase:u=(0,t.snakeCase)(u)}return a!==i.StringCase.snakeCase&&a!==i.StringCase.constantCase&&(u=u.replaceAll("_","")),u.match(/^[^a-zA-Z]/)&&(u="_"+u),u}static nameAsCSSVarReference(c){return`var(--${c})`}static nameAsCSSVarDeclaration(c){return`--${c}`}}e.NamingHelper=d},58:r=>{r.exports=Le()},110:r=>{r.exports=$e}},y={};function n(r){var e=y[r];if(e!==void 0)return e.exports;var o=y[r]={exports:{}};return s[r](o,o.exports,n),o.exports}var T={};(()=>{var r=T;Object.defineProperty(r,"__esModule",{value:!0}),r.ColorFormat=r.StringCase=r.Iterators=r.CSSHelper=r.FileHelper=r.ColorHelper=r.NamingHelper=r.NetworkHelper=void 0;var e=n(118);Object.defineProperty(r,"NetworkHelper",{enumerable:!0,get:function(){return e.NetworkHelper}});var o=n(453);Object.defineProperty(r,"NamingHelper",{enumerable:!0,get:function(){return o.NamingHelper}});var t=n(952);Object.defineProperty(r,"ColorHelper",{enumerable:!0,get:function(){return t.ColorHelper}});var i=n(617);Object.defineProperty(r,"FileHelper",{enumerable:!0,get:function(){return i.FileHelper}});var d=n(771);Object.defineProperty(r,"CSSHelper",{enumerable:!0,get:function(){return d.CSSHelper}});var l=n(639);Object.defineProperty(r,"Iterators",{enumerable:!0,get:function(){return l.Iterators}});var c=n(545);Object.defineProperty(r,"StringCase",{enumerable:!0,get:function(){return c.StringCase}});var a=n(989);Object.defineProperty(r,"ColorFormat",{enumerable:!0,get:function(){return a.ColorFormat}})})();var f=p;for(var g in T)f[g]=T[g];T.__esModule&&Object.defineProperty(f,"__esModule",{value:!0})})()})(E);var _={};(function(p){(()=>{var s={9932:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.docsImageRefToUrl=e.DocsImageRefType=void 0,function(t){t.resource="Resource",t.figmaNode="FigmaNode"}(o||(e.DocsImageRefType=o={})),e.docsImageRefToUrl=function(t,i,d){var l;if(t)switch(t.type){case o.resource:return(l=t.resource)===null||l===void 0?void 0:l.url;case o.figmaNode:return!t.figmaNode||!t.figmaNode.sourceId||!t.figmaNode.frameReferenceId?void 0:i.resources.getFigmaFrameHostedUrl({designSystemId:d.dsId,versionId:d.versionId},t.figmaNode.frameReferenceId);default:return}}},5673:(r,e)=>{var o;function t(i){switch(i.type){case o.documentationItem:return`@page:${i.documentationItemId}`;case o.pageHeading:return`@page:${i.documentationItemId}#${i.pageHeadingId}`;case o.url:return i.url;default:return}}Object.defineProperty(e,"__esModule",{value:!0}),e.linkAttributeToDocsLink=e.docsLinkToLinkAttributes=e.docsLinkToUrl=e.DocsLinkRefType=void 0,function(i){i.documentationItem="DocumentationItem",i.pageHeading="PageHeading",i.url="Url"}(o||(e.DocsLinkRefType=o={})),e.docsLinkToUrl=t,e.docsLinkToLinkAttributes=function(i){const d=t(i);if(d)return{href:d,target:i.openInNewTab?"_blank":"_self"}},e.linkAttributeToDocsLink=function(i,d){if(!i)return;const l=d==="_blank";if(i.startsWith("@page:")){if(i.includes("#")){const[c,a]=i.replace("@page:","").split("#");return{type:o.pageHeading,documentationItemId:c,pageHeadingId:a,openInNewTab:l}}return{type:o.documentationItem,documentationItemId:i.replace("@page:",""),openInNewTab:l}}return{type:o.url,url:i,openInNewTab:l}}},2657:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.DocumentationLegacyPageBlockShortcut=e.DocumentationLegacyPageBlockShortcutType=void 0,function(t){t.external="External",t.internal="Internal"}(o||(e.DocumentationLegacyPageBlockShortcutType=o={})),e.DocumentationLegacyPageBlockShortcut=class{constructor(t){var i;t.url?this.type=o.external:this.type=o.internal,this.title=this.shortcutTitleFromModel(t,this.type),this.description=this.shortcutDescriptionFromModel(t,this.type),this.previewUrl=this.shortcutPreviewUrlFromModel(t),this.type===o.internal&&(!((i=t.documentationItemPreview)===null||i===void 0)&&i.valid)&&t.documentationItemId?this.internalId=t.documentationItemId:(this.internalId=null,this.type===o.external&&t.url?this.externalUrl=t.url:this.externalUrl=null)}shortcutTitleFromModel(t,i){var d,l,c,a,u;let m=null;return t.title&&t.title.trim().length>0?m=t.title:i===o.internal?m=(l=(d=t.documentationItemPreview)===null||d===void 0?void 0:d.title)!==null&&l!==void 0?l:null:i===o.external&&(m=(u=(a=(c=t.urlPreview)===null||c===void 0?void 0:c.title)!==null&&a!==void 0?a:t.url)!==null&&u!==void 0?u:null),m&&m.trim().length!==0?m:null}shortcutDescriptionFromModel(t,i){var d;let l=null;return t.description&&t.description.trim().length>0?l=t.description:i===o.external&&(l=(d=t.urlPreview)===null||d===void 0?void 0:d.description),l&&l.trim().length!==0?l:null}shortcutPreviewUrlFromModel(t){var i,d,l,c,a;return(a=(l=(i=t.assetUrl)!==null&&i!==void 0?i:(d=t.asset)===null||d===void 0?void 0:d.url)!==null&&l!==void 0?l:(c=t.urlPreview)===null||c===void 0?void 0:c.thumbnailUrl)!==null&&a!==void 0?a:null}}},7476:(r,e)=>{var o,t;Object.defineProperty(e,"__esModule",{value:!0}),e.TextAlignment=e.Alignment=void 0,function(i){i.left="Left",i.center="Center",i.stretch="Stretch"}(o||(e.Alignment=o={})),function(i){i.left="Left",i.center="Center",i.right="Right"}(t||(e.TextAlignment=t={}))},8738:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.AssetFormat=void 0,function(t){t.png="png",t.pdf="pdf",t.svg="svg"}(o||(e.AssetFormat=o={}))},915:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.AssetScale=void 0,function(t){t.x1="x1",t.x2="x2",t.x3="x3",t.x4="x4"}(o||(e.AssetScale=o={}))},899:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.AssetScaleType=void 0,function(t){t.aspectFill="AspectFill",t.aspectFit="AspectFit"}(o||(e.AssetScaleType=o={}))},6192:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.BlurType=void 0,function(t){t.layer="Layer",t.background="Background"}(o||(e.BlurType=o={}))},1160:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.ALL_BORDER_POSITIONS=e.BorderPosition=void 0,function(t){t.inside="Inside",t.center="Center",t.outside="Outside"}(o||(e.BorderPosition=o={})),e.ALL_BORDER_POSITIONS=[o.inside,o.center,o.outside]},4546:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.ALL_BORDER_STYLES=e.BorderStyle=void 0,function(t){t.dashed="Dashed",t.dotted="Dotted",t.solid="Solid",t.groove="Groove"}(o||(e.BorderStyle=o={})),e.ALL_BORDER_STYLES=[o.dashed,o.dotted,o.solid,o.groove]},8042:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.ImportWarningType=void 0,function(t){t.UnsupportedFill="UnsupportedFill",t.UnsupportedStroke="UnsupportedStroke",t.UnsupportedEffect="UnsupportedEffect",t.StyleNotApplied="StyleNotApplied",t.NoPublishedStyles="NoPublishedStyles",t.NoPublishedComponents="NoPublishedComponents",t.NoPublishedAssets="NoPublishedAssets",t.NoVersionFound="NoVersionFound",t.ComponentHasNoThumbnail="ComponentHasNoThumbnail",t.DuplicateImportedStyleId="DuplicateImportedStyleId",t.DuplicateImportedStylePath="DuplicateImportedStylePath",t.NoPublishedElements="NoPublishedElements",t.NoUnpublishedStyles="NoUnpublishedStyles"}(o||(e.ImportWarningType=o={}))},5695:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.CustomDomainErrorCode=void 0,function(t){t.generalError="GeneralError",t.dnsNotConfigured="DNSNotConfigured",t.maintenance="Maintenance"}(o||(e.CustomDomainErrorCode=o={}))},7737:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.CustomDomainState=void 0,function(t){t.initial="Initial",t.domainSetupInProgress="DomainSetupInProgress",t.domainSetupFailed="DomainSetupFailed",t.domainSetupsSucces="DomainSetupSuccess",t.sslSetupInProgress="SSLSetupInProgress",t.sslSetupFailed="SSLSetupFailed",t.sslSetupSuccess="SSLSetupSuccess"}(o||(e.CustomDomainState=o={}))},5651:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.DocsBlockBehaviorDataType=void 0,function(t){t.item="Item",t.token="Token",t.asset="Asset",t.component="Component",t.figmaNode="FigmaNode",t.figmaComponent="FigmaComponent"}(o||(e.DocsBlockBehaviorDataType=o={}))},3733:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.DocsBlockBehaviorSelectionType=void 0,function(t){t.entity="Entity",t.group="Group",t.entityAndGroup="EntityAndGroup"}(o||(e.DocsBlockBehaviorSelectionType=o={}))},8890:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.DocsBlockImagePropertyAspectRatio=void 0,function(t){t.auto="Auto",t.square="Square",t.landscape="Landscape",t.portrait="Portrait",t.wide="Wide"}(o||(e.DocsBlockImagePropertyAspectRatio=o={}))},9377:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.DocsBlockItemEntityType=void 0,function(t){t.token="Token",t.tokenGroup="TokenGroup",t.asset="Asset",t.assetGroup="AssetGroup",t.component="Component",t.componentGroup="ComponentGroup"}(o||(e.DocsBlockItemEntityType=o={}))},5883:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.DocsBlockItemPropertyOptionRenderingStyle=void 0,function(t){t.segmentedControl="SegmentedControl",t.toggleButton="ToggleButton",t.select="Select",t.checkbox="Checkbox"}(o||(e.DocsBlockItemPropertyOptionRenderingStyle=o={}))},8061:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.DocsBlockItemPropertyRichTextStyle=void 0,function(t){t.title1="Title1",t.title2="Title2",t.title3="Title3",t.title4="Title4",t.title5="Title5",t.quote="Quote",t.callout="Callout",t.ol="OL",t.ul="UL"}(o||(e.DocsBlockItemPropertyRichTextStyle=o={}))},7479:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.DocsBlockItemPropertyTextStyle=void 0,function(t){t.small="Small",t.regular="Regular",t.bold="Bold"}(o||(e.DocsBlockItemPropertyTextStyle=o={}))},6839:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.DocsBlockItemPropertyType=void 0,function(t){t.richText="RichText",t.multiRichText="MultiRichText",t.text="Text",t.boolean="Boolean",t.number="Number",t.singleSelect="SingleSelect",t.multiSelect="MultiSelect",t.image="Image",t.token="Token",t.tokenType="TokenType",t.tokenProperty="TokenProperty",t.component="Component",t.componentProperty="ComponentProperty",t.asset="Asset",t.assetProperty="AssetProperty",t.embedURL="EmbedURL",t.url="URL",t.markdown="Markdown",t.code="Code",t.codeSandbox="CodeSandbox",t.table="Table",t.divider="Divider",t.storybook="Storybook",t.color="Color",t.figmaNode="FigmaNode",t.figmaComponent="FigmaComponent"}(o||(e.DocsBlockItemPropertyType=o={}))},8095:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.DocsBlockItemVariantLayoutType=void 0,function(t){t.column="Column",t.row="Row"}(o||(e.DocsBlockItemVariantLayoutType=o={}))},7291:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.DocsBlockItemVariantLayoutWidth=void 0,function(t){t.c1="1",t.c2="2",t.c3="3",t.c4="4",t.c5="5",t.c6="6",t.c7="7",t.c8="8",t.c9="9",t.c10="10",t.c11="11",t.c12="12"}(o||(e.DocsBlockItemVariantLayoutWidth=o={}))},5963:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.DocsBlockOptionRenderingStyle=void 0,function(t){t.segmentedControl="SegmentedControl",t.toggleButton="ToggleButton",t.select="Select",t.checkbox="Checkbox"}(o||(e.DocsBlockOptionRenderingStyle=o={}))},6644:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.DocsBlockRichTextPropertyStyle=void 0,function(t){t.title1="Title1",t.title2="Title2",t.title3="Title3",t.title4="Title4",t.title5="Title5",t.quote="Quote",t.callout="Callout",t.default="Default"}(o||(e.DocsBlockRichTextPropertyStyle=o={}))},306:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.DocsBlockTextPropertyStyle=void 0,function(t){t.title1="Title1",t.title2="Title2",t.title3="Title3",t.title4="Title4",t.title5="Title5",t.default="Default",t.defaultBold="DefaultBold",t.defaultSemibold="DefaultSemibold",t.small="Small",t.smallBold="SmallBold",t.smallSemibold="SmallSemibold",t.custom="Custom"}(o||(e.DocsBlockTextPropertyStyle=o={}))},4068:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.DocsEntityGroupBehavior=void 0,function(t){t.group="Group",t.tabs="Tabs"}(o||(e.DocsEntityGroupBehavior=o={}))},1233:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.DocsEntityType=void 0,function(t){t.group="Group",t.page="Page"}(o||(e.DocsEntityType=o={}))},7971:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.DocsSectionType=void 0,function(t){t.plain="Plain",t.tabs="Tabs"}(o||(e.DocsSectionType=o={}))},5102:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.DocumentationLegacyCalloutType=void 0,function(t){t.info="Info",t.success="Success",t.warning="Warning",t.error="Error"}(o||(e.DocumentationLegacyCalloutType=o={}))},2123:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.DocumentationLegacyGroupBehavior=void 0,function(t){t.group="Group",t.tabs="Tabs"}(o||(e.DocumentationLegacyGroupBehavior=o={}))},9896:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.DocumentationLegacyHeadingType=void 0,function(t){t[t.h1=1]="h1",t[t.h2=2]="h2",t[t.h3=3]="h3"}(o||(e.DocumentationLegacyHeadingType=o={}))},7379:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.DocumentationLegacyItemType=void 0,function(t){t.group="Group",t.page="Page"}(o||(e.DocumentationLegacyItemType=o={}))},1423:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.DocumentationLegacyPageAssetType=void 0,function(t){t.image="image",t.figmaFrame="figmaFrame"}(o||(e.DocumentationLegacyPageAssetType=o={}))},1601:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.DocumentationLegacyPageBlockThemeType=void 0,function(t){t.override="Override",t.comparison="Comparison"}(o||(e.DocumentationLegacyPageBlockThemeType=o={}))},1846:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.DocumentationLegacyPageBlockType=void 0,function(t){t.text="Text",t.heading="Heading",t.code="Code",t.unorderedList="UnorderedList",t.orderedList="OrderedList",t.quote="Quote",t.callout="Callout",t.divider="Divider",t.image="Image",t.token="Token",t.tokenList="TokenList",t.tokenGroup="TokenGroup",t.shortcuts="Shortcuts",t.link="Link",t.figmaEmbed="FigmaEmbed",t.youtubeEmbed="YoutubeEmbed",t.storybookEmbed="StorybookEmbed",t.genericEmbed="Embed",t.figmaFrames="FigmaFrames",t.custom="Custom",t.renderCode="RenderCode",t.componentAssets="ComponentAssets",t.column="Column",t.columnItem="ColumnItem",t.tabs="Tabs",t.tabItem="TabItem",t.table="Table",t.tableCell="TableCell",t.tableRow="TableRow"}(o||(e.DocumentationLegacyPageBlockType=o={}))},1255:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.FrameAlignment=void 0,function(t){t.frameHeight="FrameHeight",t.center="Center"}(o||(e.FrameAlignment=o={}))},3718:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.FrameLayout=void 0,function(t){t.c8="C8",t.c7="C7",t.c6="C6",t.c5="C5",t.c4="C4",t.c3="C3",t.c2="C2",t.c1="C1",t.c175="C1_75"}(o||(e.FrameLayout=o={}))},1:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.GradientType=void 0,function(t){t.linear="Linear",t.radial="Radial",t.angular="Angular"}(o||(e.GradientType=o={}))},2674:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.RichTextSpanAttributeType=void 0,function(t){t.bold="Bold",t.italic="Italic",t.link="Link",t.strikethrough="Strikethrough",t.code="Code"}(o||(e.RichTextSpanAttributeType=o={}))},9125:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.ShadowType=void 0,function(t){t.drop="Drop",t.inner="Inner"}(o||(e.ShadowType=o={}))},4652:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.SourceType=void 0,function(t){t.figma="Figma",t.tokenStudio="TokenStudio",t.figmaVariablesPlugin="FigmaVariablesPlugin"}(o||(e.SourceType=o={}))},922:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.TextCase=void 0,function(t){t.original="Original",t.upper="Upper",t.lower="Lower",t.camel="Camel",t.smallCaps="SmallCaps"}(o||(e.TextCase=o={}))},7040:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.TextDecoration=void 0,function(t){t.original="None",t.underline="Underline",t.strikethrough="Strikethrough"}(o||(e.TextDecoration=o={}))},3788:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.DT_TOKEN_TYPES=e.tokenTypeIsReferencable=e.REFERENCABLE_TOKEN_TYPES=e.REPLACABLE_TOKEN_TYPES=e.tokenTypeIsNonPure=e.tokenTypeIsPure=e.PURE_TOKEN_TYPES=e.ALL_TOKEN_TYPES=e.MS_DIMENSION_TOKEN_TYPES=e.RAW_DIMENSION_TOKEN_TYPES=e.DIMENSION_TOKEN_TYPES=e.OPTION_TOKEN_TYPES=e.STRING_TOKEN_TYPES=e.TokenType=void 0,function(t){t.color="Color",t.typography="Typography",t.shadow="Shadow",t.border="Border",t.gradient="Gradient",t.blur="Blur",t.radius="BorderRadius",t.borderWidth="BorderWidth",t.duration="Duration",t.fontSize="FontSize",t.dimension="Dimension",t.letterSpacing="LetterSpacing",t.lineHeight="LineHeight",t.opacity="Opacity",t.paragraphSpacing="ParagraphSpacing",t.size="Size",t.space="Space",t.zIndex="ZIndex",t.textDecoration="TextDecoration",t.textCase="TextCase",t.visibility="Visibility",t.fontFamily="FontFamily",t.fontWeight="FontWeight",t.string="String",t.productCopy="ProductCopy"}(o||(e.TokenType=o={})),e.STRING_TOKEN_TYPES=[o.string,o.productCopy,o.fontFamily,o.fontWeight],e.OPTION_TOKEN_TYPES=[o.textCase,o.textDecoration,o.visibility],e.DIMENSION_TOKEN_TYPES=[o.dimension,o.size,o.space,o.opacity,o.fontSize,o.lineHeight,o.letterSpacing,o.paragraphSpacing,o.borderWidth,o.radius,o.duration,o.zIndex],e.RAW_DIMENSION_TOKEN_TYPES=[o.opacity,o.zIndex],e.MS_DIMENSION_TOKEN_TYPES=[o.duration],e.ALL_TOKEN_TYPES=[...e.DIMENSION_TOKEN_TYPES,...e.STRING_TOKEN_TYPES,...e.OPTION_TOKEN_TYPES,o.color,o.gradient,o.border,o.radius,o.shadow,o.typography,o.blur],e.PURE_TOKEN_TYPES=[...e.DIMENSION_TOKEN_TYPES,...e.STRING_TOKEN_TYPES,...e.OPTION_TOKEN_TYPES],e.tokenTypeIsPure=t=>e.PURE_TOKEN_TYPES.includes(t),e.tokenTypeIsNonPure=t=>!(0,e.tokenTypeIsPure)(t),e.REPLACABLE_TOKEN_TYPES=[o.color,...e.DIMENSION_TOKEN_TYPES,...e.STRING_TOKEN_TYPES,...e.OPTION_TOKEN_TYPES],e.REFERENCABLE_TOKEN_TYPES=[o.color,...e.DIMENSION_TOKEN_TYPES,o.fontFamily,o.fontWeight,o.textCase,o.textDecoration],e.tokenTypeIsReferencable=t=>e.REFERENCABLE_TOKEN_TYPES.includes(t),e.DT_TOKEN_TYPES=[o.color,o.shadow,o.gradient,o.typography,o.border,...e.DIMENSION_TOKEN_TYPES,o.fontFamily,o.fontWeight,...e.OPTION_TOKEN_TYPES]},8607:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.MS_UNITS=e.PX_UNITS=e.RAW_UNITS=e.LINE_HEIGHT_UNITS=e.SIZE_UNITS=e.Unit=void 0,function(t){t.pixels="Pixels",t.percent="Percent",t.rem="Rem",t.ms="Ms",t.raw="Raw"}(o||(e.Unit=o={})),e.SIZE_UNITS=[o.pixels,o.percent,o.rem],e.LINE_HEIGHT_UNITS=[o.pixels,o.percent,o.rem,o.raw],e.RAW_UNITS=[o.raw],e.PX_UNITS=[o.pixels],e.MS_UNITS=[o.ms]},9478:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.UserRole=void 0,function(t){t.owner="Owner",t.admin="Admin",t.creator="Creator",t.billing="Billing",t.viewer="Viewer"}(o||(e.UserRole=o={}))},6141:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.VisibilityType=void 0,function(t){t.visible="Visible",t.hidden="Hidden"}(o||(e.VisibilityType=o={}))},6298:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.WorkspaceNPMRegistryAuthType=void 0,function(t){t.basic="Basic",t.bearer="Bearer"}(o||(e.WorkspaceNPMRegistryAuthType=o={}))},7968:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.WorkspaceNPMRegistryType=void 0,function(t){t.npmJS="NPMJS",t.gitHub="GitHub",t.azureDevOps="AzureDevOps",t.artifactory="Artifactory",t.custom="Custom"}(o||(e.WorkspaceNPMRegistryType=o={}))},5503:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.WorkspaceSubscriptionPlanInterval=void 0,function(t){t.yearly="yearly",t.monthly="monthly"}(o||(e.WorkspaceSubscriptionPlanInterval=o={}))},4290:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.WorkspaceSubscriptionProductCode=void 0,function(t){t.free="free",t.team="team",t.teamTest="team_test",t.company="company",t.enterprise="enterprise"}(o||(e.WorkspaceSubscriptionProductCode=o={}))},3607:(r,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.WorkspaceSubscriptionStatus=void 0,function(t){t.active="active",t.gracePeriod="gracePeriod",t.cancelled="cancelled",t.suspended="suspended"}(o||(e.WorkspaceSubscriptionStatus=o={}))},2802:(r,e)=>{var o,t;Object.defineProperty(e,"__esModule",{value:!0}),e.PulsarExecutor=e.OutputFileType=void 0,function(i){i.copyRemoteUrl="copyRemoteUrl",i.text="text",i.binary="binary"}(o||(e.OutputFileType=o={})),function(i){i.supernova="supernova",i.local="local"}(t||(e.PulsarExecutor=t={}))}},y={};function n(r){var e=y[r];if(e!==void 0)return e.exports;var o=y[r]={exports:{}};return s[r](o,o.exports,n),o.exports}var T={};(()=>{var r=T;Object.defineProperty(r,"__esModule",{value:!0}),r.UserRole=r.Unit=r.TokenType=r.TextDecoration=r.TextCase=r.ShadowType=r.RichTextSpanAttributeType=r.GradientType=r.FrameLayout=r.FrameAlignment=r.SourceType=r.DocsImageRefType=r.DocsLinkRefType=r.DocsSectionType=r.DocsEntityType=r.DocsEntityGroupBehavior=r.DocsBlockTextPropertyStyle=r.DocsBlockRichTextPropertyStyle=r.DocsBlockOptionRenderingStyle=r.DocsBlockItemVariantLayoutWidth=r.DocsBlockItemVariantLayoutType=r.DocsBlockItemPropertyType=r.DocsBlockItemPropertyTextStyle=r.DocsBlockItemPropertyRichTextStyle=r.DocsBlockItemPropertyOptionRenderingStyle=r.DocsBlockItemEntityType=r.DocsBlockImagePropertyAspectRatio=r.DocsBlockBehaviorSelectionType=r.DocsBlockBehaviorDataType=r.DocumentationLegacyPageBlockShortcutType=r.DocumentationLegacyPageBlockThemeType=r.DocumentationLegacyPageBlockType=r.DocumentationLegacyPageAssetType=r.DocumentationLegacyItemType=r.DocumentationLegacyHeadingType=r.DocumentationLegacyGroupBehavior=r.DocumentationLegacyCalloutType=r.BorderStyle=r.BorderPosition=r.BlurType=r.AssetScaleType=r.AssetScale=r.AssetFormat=r.Alignment=r.ALL_TOKEN_TYPES=r.ALL_BORDER_STYLES=r.ALL_BORDER_POSITIONS=r.OPTION_TOKEN_TYPES=r.STRING_TOKEN_TYPES=r.DIMENSION_TOKEN_TYPES=void 0,r.PulsarExecutor=r.OutputFileType=r.CustomDomainState=r.CustomDomainErrorCode=r.ImportWarningType=r.WorkspaceNPMRegistryType=r.WorkspaceNPMRegistryAuthType=r.WorkspaceSubscriptionStatus=r.WorkspaceSubscriptionProductCode=r.WorkspaceSubscriptionPlanInterval=r.VisibilityType=void 0;var e=n(3788);Object.defineProperty(r,"DIMENSION_TOKEN_TYPES",{enumerable:!0,get:function(){return e.DIMENSION_TOKEN_TYPES}}),Object.defineProperty(r,"STRING_TOKEN_TYPES",{enumerable:!0,get:function(){return e.STRING_TOKEN_TYPES}}),Object.defineProperty(r,"OPTION_TOKEN_TYPES",{enumerable:!0,get:function(){return e.OPTION_TOKEN_TYPES}});var o=n(1160);Object.defineProperty(r,"ALL_BORDER_POSITIONS",{enumerable:!0,get:function(){return o.ALL_BORDER_POSITIONS}});var t=n(4546);Object.defineProperty(r,"ALL_BORDER_STYLES",{enumerable:!0,get:function(){return t.ALL_BORDER_STYLES}});var i=n(3788);Object.defineProperty(r,"ALL_TOKEN_TYPES",{enumerable:!0,get:function(){return i.ALL_TOKEN_TYPES}});var d=n(7476);Object.defineProperty(r,"Alignment",{enumerable:!0,get:function(){return d.Alignment}});var l=n(8738);Object.defineProperty(r,"AssetFormat",{enumerable:!0,get:function(){return l.AssetFormat}});var c=n(915);Object.defineProperty(r,"AssetScale",{enumerable:!0,get:function(){return c.AssetScale}});var a=n(899);Object.defineProperty(r,"AssetScaleType",{enumerable:!0,get:function(){return a.AssetScaleType}});var u=n(6192);Object.defineProperty(r,"BlurType",{enumerable:!0,get:function(){return u.BlurType}});var m=n(1160);Object.defineProperty(r,"BorderPosition",{enumerable:!0,get:function(){return m.BorderPosition}});var S=n(4546);Object.defineProperty(r,"BorderStyle",{enumerable:!0,get:function(){return S.BorderStyle}});var v=n(5102);Object.defineProperty(r,"DocumentationLegacyCalloutType",{enumerable:!0,get:function(){return v.DocumentationLegacyCalloutType}});var b=n(2123);Object.defineProperty(r,"DocumentationLegacyGroupBehavior",{enumerable:!0,get:function(){return b.DocumentationLegacyGroupBehavior}});var P=n(9896);Object.defineProperty(r,"DocumentationLegacyHeadingType",{enumerable:!0,get:function(){return P.DocumentationLegacyHeadingType}});var h=n(7379);Object.defineProperty(r,"DocumentationLegacyItemType",{enumerable:!0,get:function(){return h.DocumentationLegacyItemType}});var D=n(1423);Object.defineProperty(r,"DocumentationLegacyPageAssetType",{enumerable:!0,get:function(){return D.DocumentationLegacyPageAssetType}});var O=n(1846);Object.defineProperty(r,"DocumentationLegacyPageBlockType",{enumerable:!0,get:function(){return O.DocumentationLegacyPageBlockType}});var B=n(1601);Object.defineProperty(r,"DocumentationLegacyPageBlockThemeType",{enumerable:!0,get:function(){return B.DocumentationLegacyPageBlockThemeType}});var R=n(2657);Object.defineProperty(r,"DocumentationLegacyPageBlockShortcutType",{enumerable:!0,get:function(){return R.DocumentationLegacyPageBlockShortcutType}});var L=n(5651);Object.defineProperty(r,"DocsBlockBehaviorDataType",{enumerable:!0,get:function(){return L.DocsBlockBehaviorDataType}});var x=n(3733);Object.defineProperty(r,"DocsBlockBehaviorSelectionType",{enumerable:!0,get:function(){return x.DocsBlockBehaviorSelectionType}});var j=n(8890);Object.defineProperty(r,"DocsBlockImagePropertyAspectRatio",{enumerable:!0,get:function(){return j.DocsBlockImagePropertyAspectRatio}});var M=n(9377);Object.defineProperty(r,"DocsBlockItemEntityType",{enumerable:!0,get:function(){return M.DocsBlockItemEntityType}});var A=n(5883);Object.defineProperty(r,"DocsBlockItemPropertyOptionRenderingStyle",{enumerable:!0,get:function(){return A.DocsBlockItemPropertyOptionRenderingStyle}});var F=n(8061);Object.defineProperty(r,"DocsBlockItemPropertyRichTextStyle",{enumerable:!0,get:function(){return F.DocsBlockItemPropertyRichTextStyle}});var w=n(7479);Object.defineProperty(r,"DocsBlockItemPropertyTextStyle",{enumerable:!0,get:function(){return w.DocsBlockItemPropertyTextStyle}});var H=n(6839);Object.defineProperty(r,"DocsBlockItemPropertyType",{enumerable:!0,get:function(){return H.DocsBlockItemPropertyType}});var U=n(8095);Object.defineProperty(r,"DocsBlockItemVariantLayoutType",{enumerable:!0,get:function(){return U.DocsBlockItemVariantLayoutType}});var W=n(7291);Object.defineProperty(r,"DocsBlockItemVariantLayoutWidth",{enumerable:!0,get:function(){return W.DocsBlockItemVariantLayoutWidth}});var Y=n(5963);Object.defineProperty(r,"DocsBlockOptionRenderingStyle",{enumerable:!0,get:function(){return Y.DocsBlockOptionRenderingStyle}});var G=n(6644);Object.defineProperty(r,"DocsBlockRichTextPropertyStyle",{enumerable:!0,get:function(){return G.DocsBlockRichTextPropertyStyle}});var V=n(306);Object.defineProperty(r,"DocsBlockTextPropertyStyle",{enumerable:!0,get:function(){return V.DocsBlockTextPropertyStyle}});var K=n(4068);Object.defineProperty(r,"DocsEntityGroupBehavior",{enumerable:!0,get:function(){return K.DocsEntityGroupBehavior}});var $=n(1233);Object.defineProperty(r,"DocsEntityType",{enumerable:!0,get:function(){return $.DocsEntityType}});var z=n(7971);Object.defineProperty(r,"DocsSectionType",{enumerable:!0,get:function(){return z.DocsSectionType}});var q=n(5673);Object.defineProperty(r,"DocsLinkRefType",{enumerable:!0,get:function(){return q.DocsLinkRefType}});var Z=n(9932);Object.defineProperty(r,"DocsImageRefType",{enumerable:!0,get:function(){return Z.DocsImageRefType}});var J=n(4652);Object.defineProperty(r,"SourceType",{enumerable:!0,get:function(){return J.SourceType}});var Q=n(1255);Object.defineProperty(r,"FrameAlignment",{enumerable:!0,get:function(){return Q.FrameAlignment}});var X=n(3718);Object.defineProperty(r,"FrameLayout",{enumerable:!0,get:function(){return X.FrameLayout}});var ee=n(1);Object.defineProperty(r,"GradientType",{enumerable:!0,get:function(){return ee.GradientType}});var oe=n(2674);Object.defineProperty(r,"RichTextSpanAttributeType",{enumerable:!0,get:function(){return oe.RichTextSpanAttributeType}});var te=n(9125);Object.defineProperty(r,"ShadowType",{enumerable:!0,get:function(){return te.ShadowType}});var re=n(922);Object.defineProperty(r,"TextCase",{enumerable:!0,get:function(){return re.TextCase}});var ne=n(7040);Object.defineProperty(r,"TextDecoration",{enumerable:!0,get:function(){return ne.TextDecoration}});var ae=n(3788);Object.defineProperty(r,"TokenType",{enumerable:!0,get:function(){return ae.TokenType}});var ie=n(8607);Object.defineProperty(r,"Unit",{enumerable:!0,get:function(){return ie.Unit}});var ce=n(9478);Object.defineProperty(r,"UserRole",{enumerable:!0,get:function(){return ce.UserRole}});var le=n(6141);Object.defineProperty(r,"VisibilityType",{enumerable:!0,get:function(){return le.VisibilityType}});var se=n(5503);Object.defineProperty(r,"WorkspaceSubscriptionPlanInterval",{enumerable:!0,get:function(){return se.WorkspaceSubscriptionPlanInterval}});var ue=n(4290);Object.defineProperty(r,"WorkspaceSubscriptionProductCode",{enumerable:!0,get:function(){return ue.WorkspaceSubscriptionProductCode}});var pe=n(3607);Object.defineProperty(r,"WorkspaceSubscriptionStatus",{enumerable:!0,get:function(){return pe.WorkspaceSubscriptionStatus}});var de=n(6298);Object.defineProperty(r,"WorkspaceNPMRegistryAuthType",{enumerable:!0,get:function(){return de.WorkspaceNPMRegistryAuthType}});var ye=n(7968);Object.defineProperty(r,"WorkspaceNPMRegistryType",{enumerable:!0,get:function(){return ye.WorkspaceNPMRegistryType}});var Te=n(8042);Object.defineProperty(r,"ImportWarningType",{enumerable:!0,get:function(){return Te.ImportWarningType}});var me=n(5695);Object.defineProperty(r,"CustomDomainErrorCode",{enumerable:!0,get:function(){return me.CustomDomainErrorCode}});var fe=n(7737);Object.defineProperty(r,"CustomDomainState",{enumerable:!0,get:function(){return fe.CustomDomainState}});var I=n(2802);Object.defineProperty(r,"OutputFileType",{enumerable:!0,get:function(){return I.OutputFileType}}),Object.defineProperty(r,"PulsarExecutor",{enumerable:!0,get:function(){return I.PulsarExecutor}})})();var f=p;for(var g in T)f[g]=T[g];T.__esModule&&Object.defineProperty(f,"__esModule",{value:!0})})()})(_);const Se=(p,s,y)=>{let n;return y?n=s.find(T=>T.id===p.parentGroupId):n=null,E.NamingHelper.codeSafeVariableNameForToken(p,E.StringCase.paramCase,n,"")},he=(p,s,y)=>y?`$${p}: ${s}${y} !default;`:`$${p}: ${s} !default;`,ze=new Map([["breakpoint-mobile",0]]),ke=(p,s)=>{const y=ze.get(p);return typeof y==typeof s?y:s},qe=(p,s,y,n)=>{var T,f;if(p.tokenType===_.TokenType.dimension){const g=p,r=Se(g,y,n);let e=(T=g.value)==null?void 0:T.measure;e=ke(r,e);const o=E.CSSHelper.unitToCSS((f=g.value)==null?void 0:f.unit);return he(r,e,o)}if(p.tokenType===_.TokenType.string){const g=p,r=Se(g,y,n);let e=g.value.text;return e=ke(r,e),he(r,e)}return null},Ze=(p,s,y,n)=>p.map(T=>qe(T,s,y,n)).filter(Boolean).join(` -`),Je=p=>({radius:"radii",spacing:"spaces"})[p]||(p.endsWith("s")?p:`${p}s`),Qe=(p,s,y)=>p.reduce((n,T)=>{var o,t,i;const f=Se(T,s,y),g=(o=f.match(/\d+/))==null?void 0:o[0],r=`${(i=(t=T.origin)==null?void 0:t.name)==null?void 0:i.split("/")[0].toLowerCase()}-`,e=f.replace(r,"");return g?n+=`${g}: $${f}, -`:e&&(n+=`${e}: $${f}, -`),n},""),Xe=(p,s,y,n)=>{const T=new Map;return p.forEach(f=>{var r;const g=(r=f.origin)==null?void 0:r.name;if(g){const e=g.split("/");e.pop();const o=Je(e.join("-").toLowerCase());T.set(o,[...T.get(o)||[],f])}}),Array.from(T.entries()).map(([f,g])=>{const r=Qe(g,y,n);return r.trim()&&`$${f}: ( -${r}) !default; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function Ke(u){if(u.__esModule)return u;var i=u.default;if(typeof i=="function"){var c=function n(){return this instanceof n?Reflect.construct(i,arguments,this.constructor):i.apply(this,arguments)};c.prototype=i.prototype}else c={};return Object.defineProperty(c,"__esModule",{value:!0}),Object.keys(u).forEach(function(n){var T=Object.getOwnPropertyDescriptor(u,n);Object.defineProperty(c,n,T.get?T:{enumerable:!0,get:function(){return u[n]}})}),c}var C={},ge={},je;function ze(){return je||(je=1,function(u){(()=>{var i={9932:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.docsImageRefToUrl=t.DocsImageRefType=void 0,function(e){e.resource="Resource",e.figmaNode="FigmaNode"}(o||(t.DocsImageRefType=o={})),t.docsImageRefToUrl=function(e,a,y){var l;if(e)switch(e.type){case o.resource:return(l=e.resource)===null||l===void 0?void 0:l.url;case o.figmaNode:return!e.figmaNode||!e.figmaNode.sourceId||!e.figmaNode.frameReferenceId?void 0:a.resources.getFigmaFrameHostedUrl({designSystemId:y.dsId,versionId:y.versionId},e.figmaNode.frameReferenceId);default:return}}},5673:(r,t)=>{var o;function e(a){switch(a.type){case o.documentationItem:return`@page:${a.documentationItemId}`;case o.pageHeading:return`@page:${a.documentationItemId}#${a.pageHeadingId}`;case o.url:return a.url;default:return}}Object.defineProperty(t,"__esModule",{value:!0}),t.linkAttributeToDocsLink=t.docsLinkToLinkAttributes=t.docsLinkToUrl=t.DocsLinkRefType=void 0,function(a){a.documentationItem="DocumentationItem",a.pageHeading="PageHeading",a.url="Url"}(o||(t.DocsLinkRefType=o={})),t.docsLinkToUrl=e,t.docsLinkToLinkAttributes=function(a){const y=e(a);if(y)return{href:y,target:a.openInNewTab?"_blank":"_self"}},t.linkAttributeToDocsLink=function(a,y){if(!a)return;const l=y==="_blank";if(a.startsWith("@page:")){if(a.includes("#")){const[p,s]=a.replace("@page:","").split("#");return{type:o.pageHeading,documentationItemId:p,pageHeadingId:s,openInNewTab:l}}return{type:o.documentationItem,documentationItemId:a.replace("@page:",""),openInNewTab:l}}return{type:o.url,url:a,openInNewTab:l}}},2657:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentationLegacyPageBlockShortcut=t.DocumentationLegacyPageBlockShortcutType=void 0,function(e){e.external="External",e.internal="Internal"}(o||(t.DocumentationLegacyPageBlockShortcutType=o={})),t.DocumentationLegacyPageBlockShortcut=class{constructor(e){var a;e.url?this.type=o.external:this.type=o.internal,this.title=this.shortcutTitleFromModel(e,this.type),this.description=this.shortcutDescriptionFromModel(e,this.type),this.previewUrl=this.shortcutPreviewUrlFromModel(e),this.type===o.internal&&(!((a=e.documentationItemPreview)===null||a===void 0)&&a.valid)&&e.documentationItemId?this.internalId=e.documentationItemId:(this.internalId=null,this.type===o.external&&e.url?this.externalUrl=e.url:this.externalUrl=null)}shortcutTitleFromModel(e,a){var y,l,p,s,d;let f=null;return e.title&&e.title.trim().length>0?f=e.title:a===o.internal?f=(l=(y=e.documentationItemPreview)===null||y===void 0?void 0:y.title)!==null&&l!==void 0?l:null:a===o.external&&(f=(d=(s=(p=e.urlPreview)===null||p===void 0?void 0:p.title)!==null&&s!==void 0?s:e.url)!==null&&d!==void 0?d:null),f&&f.trim().length!==0?f:null}shortcutDescriptionFromModel(e,a){var y;let l=null;return e.description&&e.description.trim().length>0?l=e.description:a===o.external&&(l=(y=e.urlPreview)===null||y===void 0?void 0:y.description),l&&l.trim().length!==0?l:null}shortcutPreviewUrlFromModel(e){var a,y,l,p,s;return(s=(l=(a=e.assetUrl)!==null&&a!==void 0?a:(y=e.asset)===null||y===void 0?void 0:y.url)!==null&&l!==void 0?l:(p=e.urlPreview)===null||p===void 0?void 0:p.thumbnailUrl)!==null&&s!==void 0?s:null}}},7476:(r,t)=>{var o,e;Object.defineProperty(t,"__esModule",{value:!0}),t.TextAlignment=t.Alignment=void 0,function(a){a.left="Left",a.center="Center",a.stretch="Stretch"}(o||(t.Alignment=o={})),function(a){a.left="Left",a.center="Center",a.right="Right"}(e||(t.TextAlignment=e={}))},8738:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.AssetFormat=void 0,function(e){e.png="png",e.pdf="pdf",e.svg="svg"}(o||(t.AssetFormat=o={}))},915:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.AssetScale=void 0,function(e){e.x1="x1",e.x2="x2",e.x3="x3",e.x4="x4"}(o||(t.AssetScale=o={}))},899:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.AssetScaleType=void 0,function(e){e.aspectFill="AspectFill",e.aspectFit="AspectFit"}(o||(t.AssetScaleType=o={}))},6192:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.BlurType=void 0,function(e){e.layer="Layer",e.background="Background"}(o||(t.BlurType=o={}))},1160:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.ALL_BORDER_POSITIONS=t.BorderPosition=void 0,function(e){e.inside="Inside",e.center="Center",e.outside="Outside"}(o||(t.BorderPosition=o={})),t.ALL_BORDER_POSITIONS=[o.inside,o.center,o.outside]},4546:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.ALL_BORDER_STYLES=t.BorderStyle=void 0,function(e){e.dashed="Dashed",e.dotted="Dotted",e.solid="Solid",e.groove="Groove"}(o||(t.BorderStyle=o={})),t.ALL_BORDER_STYLES=[o.dashed,o.dotted,o.solid,o.groove]},8042:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.ImportWarningType=void 0,function(e){e.UnsupportedFill="UnsupportedFill",e.UnsupportedStroke="UnsupportedStroke",e.UnsupportedEffect="UnsupportedEffect",e.StyleNotApplied="StyleNotApplied",e.NoPublishedStyles="NoPublishedStyles",e.NoPublishedComponents="NoPublishedComponents",e.NoPublishedAssets="NoPublishedAssets",e.NoVersionFound="NoVersionFound",e.ComponentHasNoThumbnail="ComponentHasNoThumbnail",e.DuplicateImportedStyleId="DuplicateImportedStyleId",e.DuplicateImportedStylePath="DuplicateImportedStylePath",e.NoPublishedElements="NoPublishedElements",e.NoUnpublishedStyles="NoUnpublishedStyles"}(o||(t.ImportWarningType=o={}))},5695:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.CustomDomainErrorCode=void 0,function(e){e.generalError="GeneralError",e.dnsNotConfigured="DNSNotConfigured",e.maintenance="Maintenance"}(o||(t.CustomDomainErrorCode=o={}))},7737:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.CustomDomainState=void 0,function(e){e.initial="Initial",e.domainSetupInProgress="DomainSetupInProgress",e.domainSetupFailed="DomainSetupFailed",e.domainSetupsSucces="DomainSetupSuccess",e.sslSetupInProgress="SSLSetupInProgress",e.sslSetupFailed="SSLSetupFailed",e.sslSetupSuccess="SSLSetupSuccess"}(o||(t.CustomDomainState=o={}))},5651:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsBlockBehaviorDataType=void 0,function(e){e.item="Item",e.token="Token",e.asset="Asset",e.component="Component",e.figmaNode="FigmaNode",e.figmaComponent="FigmaComponent"}(o||(t.DocsBlockBehaviorDataType=o={}))},3733:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsBlockBehaviorSelectionType=void 0,function(e){e.entity="Entity",e.group="Group",e.entityAndGroup="EntityAndGroup"}(o||(t.DocsBlockBehaviorSelectionType=o={}))},8890:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsBlockImagePropertyAspectRatio=void 0,function(e){e.auto="Auto",e.square="Square",e.landscape="Landscape",e.portrait="Portrait",e.wide="Wide"}(o||(t.DocsBlockImagePropertyAspectRatio=o={}))},9377:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsBlockItemEntityType=void 0,function(e){e.token="Token",e.tokenGroup="TokenGroup",e.asset="Asset",e.assetGroup="AssetGroup",e.component="Component",e.componentGroup="ComponentGroup"}(o||(t.DocsBlockItemEntityType=o={}))},5883:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsBlockItemPropertyOptionRenderingStyle=void 0,function(e){e.segmentedControl="SegmentedControl",e.toggleButton="ToggleButton",e.select="Select",e.checkbox="Checkbox"}(o||(t.DocsBlockItemPropertyOptionRenderingStyle=o={}))},8061:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsBlockItemPropertyRichTextStyle=void 0,function(e){e.title1="Title1",e.title2="Title2",e.title3="Title3",e.title4="Title4",e.title5="Title5",e.quote="Quote",e.callout="Callout",e.ol="OL",e.ul="UL"}(o||(t.DocsBlockItemPropertyRichTextStyle=o={}))},7479:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsBlockItemPropertyTextStyle=void 0,function(e){e.small="Small",e.regular="Regular",e.bold="Bold"}(o||(t.DocsBlockItemPropertyTextStyle=o={}))},6839:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsBlockItemPropertyType=void 0,function(e){e.richText="RichText",e.multiRichText="MultiRichText",e.text="Text",e.boolean="Boolean",e.number="Number",e.singleSelect="SingleSelect",e.multiSelect="MultiSelect",e.image="Image",e.token="Token",e.tokenType="TokenType",e.tokenProperty="TokenProperty",e.component="Component",e.componentProperty="ComponentProperty",e.asset="Asset",e.assetProperty="AssetProperty",e.embedURL="EmbedURL",e.url="URL",e.markdown="Markdown",e.code="Code",e.codeSandbox="CodeSandbox",e.table="Table",e.divider="Divider",e.storybook="Storybook",e.color="Color",e.figmaNode="FigmaNode",e.figmaComponent="FigmaComponent"}(o||(t.DocsBlockItemPropertyType=o={}))},8095:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsBlockItemVariantLayoutType=void 0,function(e){e.column="Column",e.row="Row"}(o||(t.DocsBlockItemVariantLayoutType=o={}))},7291:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsBlockItemVariantLayoutWidth=void 0,function(e){e.c1="1",e.c2="2",e.c3="3",e.c4="4",e.c5="5",e.c6="6",e.c7="7",e.c8="8",e.c9="9",e.c10="10",e.c11="11",e.c12="12"}(o||(t.DocsBlockItemVariantLayoutWidth=o={}))},5963:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsBlockOptionRenderingStyle=void 0,function(e){e.segmentedControl="SegmentedControl",e.toggleButton="ToggleButton",e.select="Select",e.checkbox="Checkbox"}(o||(t.DocsBlockOptionRenderingStyle=o={}))},6644:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsBlockRichTextPropertyStyle=void 0,function(e){e.title1="Title1",e.title2="Title2",e.title3="Title3",e.title4="Title4",e.title5="Title5",e.quote="Quote",e.callout="Callout",e.default="Default"}(o||(t.DocsBlockRichTextPropertyStyle=o={}))},306:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsBlockTextPropertyStyle=void 0,function(e){e.title1="Title1",e.title2="Title2",e.title3="Title3",e.title4="Title4",e.title5="Title5",e.default="Default",e.defaultBold="DefaultBold",e.defaultSemibold="DefaultSemibold",e.small="Small",e.smallBold="SmallBold",e.smallSemibold="SmallSemibold",e.custom="Custom"}(o||(t.DocsBlockTextPropertyStyle=o={}))},4068:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsEntityGroupBehavior=void 0,function(e){e.group="Group",e.tabs="Tabs"}(o||(t.DocsEntityGroupBehavior=o={}))},1233:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsEntityType=void 0,function(e){e.group="Group",e.page="Page"}(o||(t.DocsEntityType=o={}))},7971:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsSectionType=void 0,function(e){e.plain="Plain",e.tabs="Tabs"}(o||(t.DocsSectionType=o={}))},5102:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentationLegacyCalloutType=void 0,function(e){e.info="Info",e.success="Success",e.warning="Warning",e.error="Error"}(o||(t.DocumentationLegacyCalloutType=o={}))},2123:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentationLegacyGroupBehavior=void 0,function(e){e.group="Group",e.tabs="Tabs"}(o||(t.DocumentationLegacyGroupBehavior=o={}))},9896:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentationLegacyHeadingType=void 0,function(e){e[e.h1=1]="h1",e[e.h2=2]="h2",e[e.h3=3]="h3"}(o||(t.DocumentationLegacyHeadingType=o={}))},7379:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentationLegacyItemType=void 0,function(e){e.group="Group",e.page="Page"}(o||(t.DocumentationLegacyItemType=o={}))},1423:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentationLegacyPageAssetType=void 0,function(e){e.image="image",e.figmaFrame="figmaFrame"}(o||(t.DocumentationLegacyPageAssetType=o={}))},1601:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentationLegacyPageBlockThemeType=void 0,function(e){e.override="Override",e.comparison="Comparison"}(o||(t.DocumentationLegacyPageBlockThemeType=o={}))},1846:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentationLegacyPageBlockType=void 0,function(e){e.text="Text",e.heading="Heading",e.code="Code",e.unorderedList="UnorderedList",e.orderedList="OrderedList",e.quote="Quote",e.callout="Callout",e.divider="Divider",e.image="Image",e.token="Token",e.tokenList="TokenList",e.tokenGroup="TokenGroup",e.shortcuts="Shortcuts",e.link="Link",e.figmaEmbed="FigmaEmbed",e.youtubeEmbed="YoutubeEmbed",e.storybookEmbed="StorybookEmbed",e.genericEmbed="Embed",e.figmaFrames="FigmaFrames",e.custom="Custom",e.renderCode="RenderCode",e.componentAssets="ComponentAssets",e.column="Column",e.columnItem="ColumnItem",e.tabs="Tabs",e.tabItem="TabItem",e.table="Table",e.tableCell="TableCell",e.tableRow="TableRow"}(o||(t.DocumentationLegacyPageBlockType=o={}))},1255:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.FrameAlignment=void 0,function(e){e.frameHeight="FrameHeight",e.center="Center"}(o||(t.FrameAlignment=o={}))},3718:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.FrameLayout=void 0,function(e){e.c8="C8",e.c7="C7",e.c6="C6",e.c5="C5",e.c4="C4",e.c3="C3",e.c2="C2",e.c1="C1",e.c175="C1_75"}(o||(t.FrameLayout=o={}))},1:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.GradientType=void 0,function(e){e.linear="Linear",e.radial="Radial",e.angular="Angular"}(o||(t.GradientType=o={}))},2674:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.RichTextSpanAttributeType=void 0,function(e){e.bold="Bold",e.italic="Italic",e.link="Link",e.strikethrough="Strikethrough",e.code="Code"}(o||(t.RichTextSpanAttributeType=o={}))},9125:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.ShadowType=void 0,function(e){e.drop="Drop",e.inner="Inner"}(o||(t.ShadowType=o={}))},4652:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.SourceType=void 0,function(e){e.figma="Figma",e.tokenStudio="TokenStudio",e.figmaVariablesPlugin="FigmaVariablesPlugin"}(o||(t.SourceType=o={}))},922:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.TextCase=void 0,function(e){e.original="Original",e.upper="Upper",e.lower="Lower",e.camel="Camel",e.smallCaps="SmallCaps"}(o||(t.TextCase=o={}))},7040:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.TextDecoration=void 0,function(e){e.original="None",e.underline="Underline",e.strikethrough="Strikethrough"}(o||(t.TextDecoration=o={}))},3788:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DT_TOKEN_TYPES=t.tokenTypeIsReferencable=t.REFERENCABLE_TOKEN_TYPES=t.REPLACABLE_TOKEN_TYPES=t.tokenTypeIsNonPure=t.tokenTypeIsPure=t.PURE_TOKEN_TYPES=t.ALL_TOKEN_TYPES=t.MS_DIMENSION_TOKEN_TYPES=t.RAW_DIMENSION_TOKEN_TYPES=t.DIMENSION_TOKEN_TYPES=t.OPTION_TOKEN_TYPES=t.STRING_TOKEN_TYPES=t.TokenType=void 0,function(e){e.color="Color",e.typography="Typography",e.shadow="Shadow",e.border="Border",e.gradient="Gradient",e.blur="Blur",e.radius="BorderRadius",e.borderWidth="BorderWidth",e.duration="Duration",e.fontSize="FontSize",e.dimension="Dimension",e.letterSpacing="LetterSpacing",e.lineHeight="LineHeight",e.opacity="Opacity",e.paragraphSpacing="ParagraphSpacing",e.size="Size",e.space="Space",e.zIndex="ZIndex",e.textDecoration="TextDecoration",e.textCase="TextCase",e.visibility="Visibility",e.fontFamily="FontFamily",e.fontWeight="FontWeight",e.string="String",e.productCopy="ProductCopy"}(o||(t.TokenType=o={})),t.STRING_TOKEN_TYPES=[o.string,o.productCopy,o.fontFamily,o.fontWeight],t.OPTION_TOKEN_TYPES=[o.textCase,o.textDecoration,o.visibility],t.DIMENSION_TOKEN_TYPES=[o.dimension,o.size,o.space,o.opacity,o.fontSize,o.lineHeight,o.letterSpacing,o.paragraphSpacing,o.borderWidth,o.radius,o.duration,o.zIndex],t.RAW_DIMENSION_TOKEN_TYPES=[o.opacity,o.zIndex],t.MS_DIMENSION_TOKEN_TYPES=[o.duration],t.ALL_TOKEN_TYPES=[...t.DIMENSION_TOKEN_TYPES,...t.STRING_TOKEN_TYPES,...t.OPTION_TOKEN_TYPES,o.color,o.gradient,o.border,o.radius,o.shadow,o.typography,o.blur],t.PURE_TOKEN_TYPES=[...t.DIMENSION_TOKEN_TYPES,...t.STRING_TOKEN_TYPES,...t.OPTION_TOKEN_TYPES],t.tokenTypeIsPure=e=>t.PURE_TOKEN_TYPES.includes(e),t.tokenTypeIsNonPure=e=>!(0,t.tokenTypeIsPure)(e),t.REPLACABLE_TOKEN_TYPES=[o.color,...t.DIMENSION_TOKEN_TYPES,...t.STRING_TOKEN_TYPES,...t.OPTION_TOKEN_TYPES],t.REFERENCABLE_TOKEN_TYPES=[o.color,...t.DIMENSION_TOKEN_TYPES,o.fontFamily,o.fontWeight,o.textCase,o.textDecoration],t.tokenTypeIsReferencable=e=>t.REFERENCABLE_TOKEN_TYPES.includes(e),t.DT_TOKEN_TYPES=[o.color,o.shadow,o.gradient,o.typography,o.border,...t.DIMENSION_TOKEN_TYPES,o.fontFamily,o.fontWeight,...t.OPTION_TOKEN_TYPES]},8607:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.MS_UNITS=t.PX_UNITS=t.RAW_UNITS=t.LINE_HEIGHT_UNITS=t.SIZE_UNITS=t.Unit=void 0,function(e){e.pixels="Pixels",e.percent="Percent",e.rem="Rem",e.ms="Ms",e.raw="Raw"}(o||(t.Unit=o={})),t.SIZE_UNITS=[o.pixels,o.percent,o.rem],t.LINE_HEIGHT_UNITS=[o.pixels,o.percent,o.rem,o.raw],t.RAW_UNITS=[o.raw],t.PX_UNITS=[o.pixels],t.MS_UNITS=[o.ms]},9478:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.UserRole=void 0,function(e){e.owner="Owner",e.admin="Admin",e.creator="Creator",e.billing="Billing",e.viewer="Viewer"}(o||(t.UserRole=o={}))},6141:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.VisibilityType=void 0,function(e){e.visible="Visible",e.hidden="Hidden"}(o||(t.VisibilityType=o={}))},6298:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.WorkspaceNPMRegistryAuthType=void 0,function(e){e.basic="Basic",e.bearer="Bearer"}(o||(t.WorkspaceNPMRegistryAuthType=o={}))},7968:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.WorkspaceNPMRegistryType=void 0,function(e){e.npmJS="NPMJS",e.gitHub="GitHub",e.azureDevOps="AzureDevOps",e.artifactory="Artifactory",e.custom="Custom"}(o||(t.WorkspaceNPMRegistryType=o={}))},5503:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.WorkspaceSubscriptionPlanInterval=void 0,function(e){e.yearly="yearly",e.monthly="monthly"}(o||(t.WorkspaceSubscriptionPlanInterval=o={}))},4290:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.WorkspaceSubscriptionProductCode=void 0,function(e){e.free="free",e.team="team",e.teamTest="team_test",e.company="company",e.enterprise="enterprise"}(o||(t.WorkspaceSubscriptionProductCode=o={}))},3607:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.WorkspaceSubscriptionStatus=void 0,function(e){e.active="active",e.gracePeriod="gracePeriod",e.cancelled="cancelled",e.suspended="suspended"}(o||(t.WorkspaceSubscriptionStatus=o={}))},2802:(r,t)=>{var o,e;Object.defineProperty(t,"__esModule",{value:!0}),t.PulsarExecutor=t.OutputFileType=void 0,function(a){a.copyRemoteUrl="copyRemoteUrl",a.text="text",a.binary="binary"}(o||(t.OutputFileType=o={})),function(a){a.supernova="supernova",a.local="local"}(e||(t.PulsarExecutor=e={}))}},c={};function n(r){var t=c[r];if(t!==void 0)return t.exports;var o=c[r]={exports:{}};return i[r](o,o.exports,n),o.exports}var T={};(()=>{var r=T;Object.defineProperty(r,"__esModule",{value:!0}),r.UserRole=r.Unit=r.TokenType=r.TextDecoration=r.TextCase=r.ShadowType=r.RichTextSpanAttributeType=r.GradientType=r.FrameLayout=r.FrameAlignment=r.SourceType=r.DocsImageRefType=r.DocsLinkRefType=r.DocsSectionType=r.DocsEntityType=r.DocsEntityGroupBehavior=r.DocsBlockTextPropertyStyle=r.DocsBlockRichTextPropertyStyle=r.DocsBlockOptionRenderingStyle=r.DocsBlockItemVariantLayoutWidth=r.DocsBlockItemVariantLayoutType=r.DocsBlockItemPropertyType=r.DocsBlockItemPropertyTextStyle=r.DocsBlockItemPropertyRichTextStyle=r.DocsBlockItemPropertyOptionRenderingStyle=r.DocsBlockItemEntityType=r.DocsBlockImagePropertyAspectRatio=r.DocsBlockBehaviorSelectionType=r.DocsBlockBehaviorDataType=r.DocumentationLegacyPageBlockShortcutType=r.DocumentationLegacyPageBlockThemeType=r.DocumentationLegacyPageBlockType=r.DocumentationLegacyPageAssetType=r.DocumentationLegacyItemType=r.DocumentationLegacyHeadingType=r.DocumentationLegacyGroupBehavior=r.DocumentationLegacyCalloutType=r.BorderStyle=r.BorderPosition=r.BlurType=r.AssetScaleType=r.AssetScale=r.AssetFormat=r.Alignment=r.ALL_TOKEN_TYPES=r.ALL_BORDER_STYLES=r.ALL_BORDER_POSITIONS=r.OPTION_TOKEN_TYPES=r.STRING_TOKEN_TYPES=r.DIMENSION_TOKEN_TYPES=void 0,r.PulsarExecutor=r.OutputFileType=r.CustomDomainState=r.CustomDomainErrorCode=r.ImportWarningType=r.WorkspaceNPMRegistryType=r.WorkspaceNPMRegistryAuthType=r.WorkspaceSubscriptionStatus=r.WorkspaceSubscriptionProductCode=r.WorkspaceSubscriptionPlanInterval=r.VisibilityType=void 0;var t=n(3788);Object.defineProperty(r,"DIMENSION_TOKEN_TYPES",{enumerable:!0,get:function(){return t.DIMENSION_TOKEN_TYPES}}),Object.defineProperty(r,"STRING_TOKEN_TYPES",{enumerable:!0,get:function(){return t.STRING_TOKEN_TYPES}}),Object.defineProperty(r,"OPTION_TOKEN_TYPES",{enumerable:!0,get:function(){return t.OPTION_TOKEN_TYPES}});var o=n(1160);Object.defineProperty(r,"ALL_BORDER_POSITIONS",{enumerable:!0,get:function(){return o.ALL_BORDER_POSITIONS}});var e=n(4546);Object.defineProperty(r,"ALL_BORDER_STYLES",{enumerable:!0,get:function(){return e.ALL_BORDER_STYLES}});var a=n(3788);Object.defineProperty(r,"ALL_TOKEN_TYPES",{enumerable:!0,get:function(){return a.ALL_TOKEN_TYPES}});var y=n(7476);Object.defineProperty(r,"Alignment",{enumerable:!0,get:function(){return y.Alignment}});var l=n(8738);Object.defineProperty(r,"AssetFormat",{enumerable:!0,get:function(){return l.AssetFormat}});var p=n(915);Object.defineProperty(r,"AssetScale",{enumerable:!0,get:function(){return p.AssetScale}});var s=n(899);Object.defineProperty(r,"AssetScaleType",{enumerable:!0,get:function(){return s.AssetScaleType}});var d=n(6192);Object.defineProperty(r,"BlurType",{enumerable:!0,get:function(){return d.BlurType}});var f=n(1160);Object.defineProperty(r,"BorderPosition",{enumerable:!0,get:function(){return f.BorderPosition}});var S=n(4546);Object.defineProperty(r,"BorderStyle",{enumerable:!0,get:function(){return S.BorderStyle}});var v=n(5102);Object.defineProperty(r,"DocumentationLegacyCalloutType",{enumerable:!0,get:function(){return v.DocumentationLegacyCalloutType}});var b=n(2123);Object.defineProperty(r,"DocumentationLegacyGroupBehavior",{enumerable:!0,get:function(){return b.DocumentationLegacyGroupBehavior}});var P=n(9896);Object.defineProperty(r,"DocumentationLegacyHeadingType",{enumerable:!0,get:function(){return P.DocumentationLegacyHeadingType}});var h=n(7379);Object.defineProperty(r,"DocumentationLegacyItemType",{enumerable:!0,get:function(){return h.DocumentationLegacyItemType}});var k=n(1423);Object.defineProperty(r,"DocumentationLegacyPageAssetType",{enumerable:!0,get:function(){return k.DocumentationLegacyPageAssetType}});var O=n(1846);Object.defineProperty(r,"DocumentationLegacyPageBlockType",{enumerable:!0,get:function(){return O.DocumentationLegacyPageBlockType}});var R=n(1601);Object.defineProperty(r,"DocumentationLegacyPageBlockThemeType",{enumerable:!0,get:function(){return R.DocumentationLegacyPageBlockThemeType}});var B=n(2657);Object.defineProperty(r,"DocumentationLegacyPageBlockShortcutType",{enumerable:!0,get:function(){return B.DocumentationLegacyPageBlockShortcutType}});var j=n(5651);Object.defineProperty(r,"DocsBlockBehaviorDataType",{enumerable:!0,get:function(){return j.DocsBlockBehaviorDataType}});var L=n(3733);Object.defineProperty(r,"DocsBlockBehaviorSelectionType",{enumerable:!0,get:function(){return L.DocsBlockBehaviorSelectionType}});var x=n(8890);Object.defineProperty(r,"DocsBlockImagePropertyAspectRatio",{enumerable:!0,get:function(){return x.DocsBlockImagePropertyAspectRatio}});var M=n(9377);Object.defineProperty(r,"DocsBlockItemEntityType",{enumerable:!0,get:function(){return M.DocsBlockItemEntityType}});var A=n(5883);Object.defineProperty(r,"DocsBlockItemPropertyOptionRenderingStyle",{enumerable:!0,get:function(){return A.DocsBlockItemPropertyOptionRenderingStyle}});var F=n(8061);Object.defineProperty(r,"DocsBlockItemPropertyRichTextStyle",{enumerable:!0,get:function(){return F.DocsBlockItemPropertyRichTextStyle}});var w=n(7479);Object.defineProperty(r,"DocsBlockItemPropertyTextStyle",{enumerable:!0,get:function(){return w.DocsBlockItemPropertyTextStyle}});var H=n(6839);Object.defineProperty(r,"DocsBlockItemPropertyType",{enumerable:!0,get:function(){return H.DocsBlockItemPropertyType}});var U=n(8095);Object.defineProperty(r,"DocsBlockItemVariantLayoutType",{enumerable:!0,get:function(){return U.DocsBlockItemVariantLayoutType}});var W=n(7291);Object.defineProperty(r,"DocsBlockItemVariantLayoutWidth",{enumerable:!0,get:function(){return W.DocsBlockItemVariantLayoutWidth}});var $=n(5963);Object.defineProperty(r,"DocsBlockOptionRenderingStyle",{enumerable:!0,get:function(){return $.DocsBlockOptionRenderingStyle}});var G=n(6644);Object.defineProperty(r,"DocsBlockRichTextPropertyStyle",{enumerable:!0,get:function(){return G.DocsBlockRichTextPropertyStyle}});var Y=n(306);Object.defineProperty(r,"DocsBlockTextPropertyStyle",{enumerable:!0,get:function(){return Y.DocsBlockTextPropertyStyle}});var V=n(4068);Object.defineProperty(r,"DocsEntityGroupBehavior",{enumerable:!0,get:function(){return V.DocsEntityGroupBehavior}});var K=n(1233);Object.defineProperty(r,"DocsEntityType",{enumerable:!0,get:function(){return K.DocsEntityType}});var z=n(7971);Object.defineProperty(r,"DocsSectionType",{enumerable:!0,get:function(){return z.DocsSectionType}});var q=n(5673);Object.defineProperty(r,"DocsLinkRefType",{enumerable:!0,get:function(){return q.DocsLinkRefType}});var Z=n(9932);Object.defineProperty(r,"DocsImageRefType",{enumerable:!0,get:function(){return Z.DocsImageRefType}});var X=n(4652);Object.defineProperty(r,"SourceType",{enumerable:!0,get:function(){return X.SourceType}});var J=n(1255);Object.defineProperty(r,"FrameAlignment",{enumerable:!0,get:function(){return J.FrameAlignment}});var Q=n(3718);Object.defineProperty(r,"FrameLayout",{enumerable:!0,get:function(){return Q.FrameLayout}});var ee=n(1);Object.defineProperty(r,"GradientType",{enumerable:!0,get:function(){return ee.GradientType}});var te=n(2674);Object.defineProperty(r,"RichTextSpanAttributeType",{enumerable:!0,get:function(){return te.RichTextSpanAttributeType}});var oe=n(9125);Object.defineProperty(r,"ShadowType",{enumerable:!0,get:function(){return oe.ShadowType}});var re=n(922);Object.defineProperty(r,"TextCase",{enumerable:!0,get:function(){return re.TextCase}});var ne=n(7040);Object.defineProperty(r,"TextDecoration",{enumerable:!0,get:function(){return ne.TextDecoration}});var ae=n(3788);Object.defineProperty(r,"TokenType",{enumerable:!0,get:function(){return ae.TokenType}});var ie=n(8607);Object.defineProperty(r,"Unit",{enumerable:!0,get:function(){return ie.Unit}});var ce=n(9478);Object.defineProperty(r,"UserRole",{enumerable:!0,get:function(){return ce.UserRole}});var le=n(6141);Object.defineProperty(r,"VisibilityType",{enumerable:!0,get:function(){return le.VisibilityType}});var se=n(5503);Object.defineProperty(r,"WorkspaceSubscriptionPlanInterval",{enumerable:!0,get:function(){return se.WorkspaceSubscriptionPlanInterval}});var ue=n(4290);Object.defineProperty(r,"WorkspaceSubscriptionProductCode",{enumerable:!0,get:function(){return ue.WorkspaceSubscriptionProductCode}});var pe=n(3607);Object.defineProperty(r,"WorkspaceSubscriptionStatus",{enumerable:!0,get:function(){return pe.WorkspaceSubscriptionStatus}});var de=n(6298);Object.defineProperty(r,"WorkspaceNPMRegistryAuthType",{enumerable:!0,get:function(){return de.WorkspaceNPMRegistryAuthType}});var ye=n(7968);Object.defineProperty(r,"WorkspaceNPMRegistryType",{enumerable:!0,get:function(){return ye.WorkspaceNPMRegistryType}});var Te=n(8042);Object.defineProperty(r,"ImportWarningType",{enumerable:!0,get:function(){return Te.ImportWarningType}});var me=n(5695);Object.defineProperty(r,"CustomDomainErrorCode",{enumerable:!0,get:function(){return me.CustomDomainErrorCode}});var fe=n(7737);Object.defineProperty(r,"CustomDomainState",{enumerable:!0,get:function(){return fe.CustomDomainState}});var D=n(2802);Object.defineProperty(r,"OutputFileType",{enumerable:!0,get:function(){return D.OutputFileType}}),Object.defineProperty(r,"PulsarExecutor",{enumerable:!0,get:function(){return D.PulsarExecutor}})})();var m=u;for(var g in T)m[g]=T[g];T.__esModule&&Object.defineProperty(m,"__esModule",{value:!0})})()}(ge)),ge}var Pe=function(){return Pe=Object.assign||function(i){for(var c,n=1,T=arguments.length;n0&&c>="0"&&c<="9"?"_"+c+n:""+c.toUpperCase()+n}function Ae(u){return u.charAt(0).toUpperCase()+u.slice(1).toLowerCase()}function Fe(u,i){return i===void 0&&(i={}),E(u,he({delimiter:"",transform:Re},i))}function we(u,i){return i===0?u.toLowerCase():Re(u,i)}function Je(u,i){return i===0?u.toLowerCase():Ae(u)}function Qe(u,i){return i===void 0&&(i={}),Fe(u,Pe({transform:we},i))}var _e=function(){return _e=Object.assign||function(i){for(var c,n=1,T=arguments.length;n{var i={639:(r,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Iterators=void 0;const e=o(58);t.Iterators=class{static allTokenTypes(){return[e.TokenType.color,e.TokenType.typography,e.TokenType.dimension,e.TokenType.size,e.TokenType.space,e.TokenType.opacity,e.TokenType.fontSize,e.TokenType.lineHeight,e.TokenType.letterSpacing,e.TokenType.paragraphSpacing,e.TokenType.borderWidth,e.TokenType.radius,e.TokenType.duration,e.TokenType.zIndex,e.TokenType.shadow,e.TokenType.border,e.TokenType.gradient,e.TokenType.string,e.TokenType.productCopy,e.TokenType.fontFamily,e.TokenType.fontWeight,e.TokenType.textCase,e.TokenType.textDecoration,e.TokenType.visibility,e.TokenType.blur]}static allDimensionTokenTypes(){return[e.TokenType.dimension,e.TokenType.size,e.TokenType.space,e.TokenType.opacity,e.TokenType.fontSize,e.TokenType.lineHeight,e.TokenType.letterSpacing,e.TokenType.paragraphSpacing,e.TokenType.borderWidth,e.TokenType.radius,e.TokenType.duration,e.TokenType.zIndex]}static allStringTokenTypes(){return[e.TokenType.string,e.TokenType.productCopy,e.TokenType.fontFamily,e.TokenType.fontWeight]}static allOptionTokenTypes(){return[e.TokenType.textCase,e.TokenType.textDecoration,e.TokenType.visibility]}}},989:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.ColorFormat=void 0,(o=t.ColorFormat||(t.ColorFormat={})).rgb="rgb",o.rgba="rgba",o.smartRgba="smartRgba",o.hex6="hex6",o.hex8="hex8",o.hashHex6="hashHex6",o.hashHex8="hashHex8",o.smartHashHex="smartHashHex",o.smartHex="smartHex",o.hsl="hsl",o.hsla="hsla",o.smartHsla="smartHsla",o.smartUIColor="smartUIColor"},545:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.StringCase=void 0,(o=t.StringCase||(t.StringCase={})).camelCase="camelCase",o.capitalCase="capitalCase",o.constantCase="constantCase",o.dotCase="dotCase",o.headerCase="headerCase",o.noCase="noCase",o.paramCase="paramCase",o.pascalCase="pascalCase",o.pathCase="pathCase",o.sentenceCase="sentenceCase",o.snakeCase="snakeCase"},617:(r,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FileHelper=void 0;const e=o(58);t.FileHelper=class{static createCopyRemoteFile({relativePath:a,fileName:y,url:l}){return{path:a,name:y,type:e.OutputFileType.copyRemoteUrl,url:l}}static createTextFile({relativePath:a,fileName:y,content:l}){return{path:a,name:y,type:e.OutputFileType.text,content:l}}static createBinaryFile({relativePath:a,fileName:y,data:l}){return{path:a,name:y,type:e.OutputFileType.binary,data:l}}}},761:(r,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.sureOptionalReference=void 0,t.sureOptionalReference=function(o,e,a=!0){if(!o||!a)return null;const y=e.get(o);if(!y)throw new Error(`Trying to retrieve unknown referenced token ${o}`);return y}},118:(r,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NetworkHelper=void 0,t.NetworkHelper=class{static async fetchAsText(o,e,a){return(await this.performFetch(o,e,a)).text()}static async fetchAsJSON(o,e,a){return(await this.performFetch(o,e,a)).json()}static async fetchAsData(o,e,a){return(await this.performFetch(o,e,a)).arrayBuffer()}static async performFetch(o,e,a){try{const y=await o.network.fetch(e,a);if(!y.ok)throw new Error(`Request failed with status ${y.status}, error: ${await y.text()}`);return y}catch(y){throw y}}}},771:(r,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CSSHelper=void 0;const e=o(58),a=o(761),y=o(952);t.CSSHelper=class{static tokenToCSS(l,p,s){switch(l.tokenType){case e.TokenType.color:return this.colorTokenValueToCSS(l.value,p,s);case e.TokenType.border:return this.borderTokenValueToCSS(l.value,p,s);case e.TokenType.gradient:return this.gradientTokenValueToCSS(l.value,p,s);case e.TokenType.dimension:case e.TokenType.size:case e.TokenType.space:case e.TokenType.opacity:case e.TokenType.fontSize:case e.TokenType.lineHeight:case e.TokenType.letterSpacing:case e.TokenType.paragraphSpacing:case e.TokenType.borderWidth:case e.TokenType.radius:case e.TokenType.duration:case e.TokenType.zIndex:return this.dimensionTokenValueToCSS(l.value,p,s);case e.TokenType.shadow:return this.shadowTokenValueToCSS(l.value,p,s);case e.TokenType.fontWeight:return this.fontWeightTokenValueToCSS(l.value,p,s);case e.TokenType.fontFamily:case e.TokenType.productCopy:case e.TokenType.string:return this.stringTokenValueToCSS(l.value,p,s);case e.TokenType.textCase:case e.TokenType.textDecoration:case e.TokenType.visibility:return this.optionTokenValueToCSS(l.value,p,s);case e.TokenType.blur:return this.blurTokenValueToCSS(l.value,p,s);case e.TokenType.typography:return this.typographyTokenValueToCSS(l.value,p,s);default:throw new e.UnreachableCaseError(l.tokenType,"Unsupported token type for transformation to CSS:")}}static colorTokenValueToCSS(l,p,s){return y.ColorHelper.formattedColorOrVariableName(l,p,s)}static borderTokenValueToCSS(l,p,s){const d=(0,a.sureOptionalReference)(l.referencedTokenId,p,s.allowReferences);if(d)return s.tokenToVariableRef(d);const f=this.dimensionTokenValueToCSS(l.width,p,s),S=this.borderStyleToCSS(l.style),v=this.colorTokenValueToCSS(l.color,p,s);return this.borderPositionToCSS(l.position),`${f} ${S} ${v}`}static gradientTokenValueToCSS(l,p,s){return l.map(d=>this.gradientLayerToCSS(d,p,s)).join(", ")}static gradientLayerToCSS(l,p,s){const d=(0,a.sureOptionalReference)(l.referencedTokenId,p,s.allowReferences);if(d)return s.tokenToVariableRef(d);let f="";switch(l.type){case e.GradientType.linear:f="linear-gradient(0deg, ";break;case e.GradientType.radial:f="radial-gradient(circle, ";break;case e.GradientType.angular:f="conic-gradient(";break;default:f="linear-gradient(0deg, "}return`${f}${l.stops.map(S=>`${this.colorTokenValueToCSS(S.color,p,s)} ${y.ColorHelper.roundToDecimals(100*S.position,s.decimals)}%`).join(", ")})`}static dimensionTokenValueToCSS(l,p,s){const d=(0,a.sureOptionalReference)(l.referencedTokenId,p,s.allowReferences);return d?s.tokenToVariableRef(d):`${y.ColorHelper.roundToDecimals(l.measure,s.decimals)}${this.unitToCSS(l.unit)}`}static shadowTokenValueToCSS(l,p,s){return l.map(d=>this.shadowLayerToCSS(d,p,s)).join(", ")}static shadowLayerToCSS(l,p,s){const d=(0,a.sureOptionalReference)(l.referencedTokenId,p,s.allowReferences);return d?s.tokenToVariableRef(d):`${l.type===e.ShadowType.inner?"inset ":""}${l.x}px ${l.y}px ${l.radius}px ${l.spread}px ${this.colorTokenValueToCSS({...l.color,...l.opacity&&{opacity:l.opacity}},p,s)}`}static fontWeightTokenValueToCSS(l,p,s){const d=(0,a.sureOptionalReference)(l.referencedTokenId,p,s.allowReferences);return d?s.tokenToVariableRef(d):`${l.text}`}static stringTokenValueToCSS(l,p,s){const d=(0,a.sureOptionalReference)(l.referencedTokenId,p,s.allowReferences);return d?s.tokenToVariableRef(d):`"${l.text}"`}static optionTokenValueToCSS(l,p,s){const d=(0,a.sureOptionalReference)(l.referencedTokenId,p,s.allowReferences);return d?s.tokenToVariableRef(d):`"${l.value}"`}static blurTokenValueToCSS(l,p,s){const d=(0,a.sureOptionalReference)(l.referencedTokenId,p,s.allowReferences);return d?s.tokenToVariableRef(d):`blur(${this.dimensionTokenValueToCSS(l.radius,p,s)})`}static typographyTokenValueToCSS(l,p,s){const d=(0,a.sureOptionalReference)(l.referencedTokenId,p,s.allowReferences);if(d)return s.tokenToVariableRef(d);const f=(0,a.sureOptionalReference)(l.fontFamily.referencedTokenId,p,s.allowReferences),S=(0,a.sureOptionalReference)(l.fontWeight.referencedTokenId,p,s.allowReferences),v=(0,a.sureOptionalReference)(l.textDecoration.referencedTokenId,p,s.allowReferences),b=(0,a.sureOptionalReference)(l.textCase.referencedTokenId,p,s.allowReferences),P={fontFamily:f?s.tokenToVariableRef(f):l.fontFamily.text,fontWeight:S?s.tokenToVariableRef(S):l.fontWeight.text,textDecoration:v?s.tokenToVariableRef(v):l.textDecoration.value===e.TextDecoration.original?this.textDecorationToCSS(l.textDecoration.value):void 0,textCase:b?s.tokenToVariableRef(b):l.textCase.value===e.TextCase.original?this.textCaseToCSS(l.textCase.value):void 0,caps:l.textCase.value===e.TextCase.smallCaps,fontSize:this.dimensionTokenValueToCSS(l.fontSize,p,s),lineHeight:l.lineHeight?this.dimensionTokenValueToCSS(l.lineHeight,p,s):void 0},h=P.fontSize;return`${P.caps?"small-caps ":""}${P.fontWeight} ${P.lineHeight?`${h}/${P.lineHeight}`:h} ${f?P.fontFamily:`"${P.fontFamily}"`}`}static borderStyleToCSS(l){switch(l){case e.BorderStyle.dashed:return"dashed";case e.BorderStyle.dotted:return"dotted";case e.BorderStyle.solid:return"solid";case e.BorderStyle.groove:return"groove";default:return"solid"}}static borderPositionToCSS(l){switch(l){case e.BorderPosition.center:return"center";case e.BorderPosition.inside:return"inside";case e.BorderPosition.outside:default:return"outside"}}static unitToCSS(l){switch(l){case e.Unit.percent:return"%";case e.Unit.pixels:return"px";case e.Unit.rem:return"rem";case e.Unit.raw:return"";case e.Unit.ms:return"ms";default:return"px"}}static textCaseToCSS(l){switch(l){case e.TextCase.original:return"none";case e.TextCase.upper:return"uppercase";case e.TextCase.lower:return"lowercase";case e.TextCase.camel:case e.TextCase.smallCaps:return"capitalize"}}static textDecorationToCSS(l){switch(l){case e.TextDecoration.original:return"none";case e.TextDecoration.underline:return"underline";case e.TextDecoration.strikethrough:return"line-through"}}}},952:(r,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ColorHelper=void 0;const e=o(989),a=o(761);class y{static formattedColorOrVariableName(p,s,d){let f,S,v;const b=(0,a.sureOptionalReference)(p.referencedTokenId,s,d.allowReferences);if(b)f=d.tokenToVariableRef(b);else{const P=(0,a.sureOptionalReference)(p.color.referencedTokenId,s,d.allowReferences);P&&(S=d.tokenToVariableRef(P));const h=(0,a.sureOptionalReference)(p.opacity.referencedTokenId,s,d.allowReferences);h&&(v=d.tokenToVariableRef(h))}if(f)return f;if(!f&&!S&&!v)return this.formattedColor(p,d.colorFormat,d.decimals);switch(d.colorFormat){case e.ColorFormat.rgb:case e.ColorFormat.rgba:case e.ColorFormat.smartRgba:return this.colorToRgb(d.colorFormat,this.normalizedIntColor(p),p.opacity.measure,d.decimals,S,v);default:return this.formattedColor(p,d.colorFormat,d.decimals)}}static formattedColor(p,s,d=3){switch(s){case e.ColorFormat.hex6:case e.ColorFormat.hex8:case e.ColorFormat.hashHex6:case e.ColorFormat.hashHex8:case e.ColorFormat.smartHex:case e.ColorFormat.smartHashHex:return this.colorToHex(s,this.normalizedIntColor(p),p.opacity.measure);case e.ColorFormat.rgb:case e.ColorFormat.rgba:case e.ColorFormat.smartRgba:return this.colorToRgb(s,this.normalizedIntColor(p),p.opacity.measure,d,null,null);case e.ColorFormat.hsl:case e.ColorFormat.hsla:case e.ColorFormat.smartHsla:return this.colorToHsl(s,this.normalizedFractionalColor(p),p.opacity.measure,d);case e.ColorFormat.smartUIColor:return this.colorToUIColor(this.normalizedIntColor(p),p.opacity.measure,d)}}static colorToRgb(p,s,d,f,S,v){let b;return b=p===e.ColorFormat.rgba||p===e.ColorFormat.smartRgba&&d<1?`rgba(${S||`${s.r}, ${s.g}, ${s.b}`}, ${v||this.roundToDecimals(d,f)})`:`rgb(${S||`${s.r}, ${s.g}, ${s.b}`})`,b}static colorToHex(p,s,d){let f=`${this.pHex(s.r)}${this.pHex(s.g)}${this.pHex(s.b)}`;return(p===e.ColorFormat.hex8||p===e.ColorFormat.hashHex8||p===e.ColorFormat.smartHex&&d<1||p===e.ColorFormat.smartHashHex&&d<1)&&(f+=`${this.pHex(Math.round(255*d))}`),p!==e.ColorFormat.hashHex6&&p!==e.ColorFormat.hashHex8&&p!==e.ColorFormat.smartHashHex||(f=`#${f}`),f}static colorToHsl(p,s,d,f){const S=Math.max(s.r,s.g,s.b),v=Math.min(s.r,s.g,s.b);let b,P,h,k=(S+v)/2;if(S===v)b=P=0;else{const O=S-v;P=k>.5?O/(2-S-v):O/(S+v),S===s.r?b=(s.g-s.b)/O+(s.g{Object.defineProperty(t,"__esModule",{value:!0}),t.NamingHelper=void 0;const e=o(110),a=o(545);class y{static codeSafeVariableNameForToken(p,s,d,f){let S=[];return d&&(S=[...d.path],d.isRoot||S.push(d.name)),S.push(p.name),f&&f.length>0&&S.unshift(f),y.codeSafeVariableName(S,s)}static codeSafeVariableName(p,s){let d=typeof p=="string"?p:p.join(" ");switch(d=d.replaceAll(/[^a-zA-Z0-9_-]/g,"_"),s){case a.StringCase.camelCase:d=(0,e.camelCase)(d);break;case a.StringCase.capitalCase:d=(0,e.capitalCase)(d);break;case a.StringCase.constantCase:d=(0,e.constantCase)(d);break;case a.StringCase.dotCase:d=(0,e.dotCase)(d);break;case a.StringCase.headerCase:d=(0,e.headerCase)(d);break;case a.StringCase.noCase:d=(0,e.noCase)(d);break;case a.StringCase.paramCase:d=(0,e.paramCase)(d);break;case a.StringCase.pascalCase:d=(0,e.pascalCase)(d);break;case a.StringCase.pathCase:d=(0,e.pathCase)(d);break;case a.StringCase.sentenceCase:d=(0,e.sentenceCase)(d);break;case a.StringCase.snakeCase:d=(0,e.snakeCase)(d)}return s!==a.StringCase.snakeCase&&s!==a.StringCase.constantCase&&(d=d.replaceAll("_","")),d.match(/^[^a-zA-Z]/)&&(d="_"+d),d}static nameAsCSSVarReference(p){return`var(--${p})`}static nameAsCSSVarDeclaration(p){return`--${p}`}}t.NamingHelper=y},58:r=>{r.exports=ze()},110:r=>{r.exports=lt}},c={};function n(r){var t=c[r];if(t!==void 0)return t.exports;var o=c[r]={exports:{}};return i[r](o,o.exports,n),o.exports}var T={};(()=>{var r=T;Object.defineProperty(r,"__esModule",{value:!0}),r.ColorFormat=r.StringCase=r.Iterators=r.CSSHelper=r.FileHelper=r.ColorHelper=r.NamingHelper=r.NetworkHelper=void 0;var t=n(118);Object.defineProperty(r,"NetworkHelper",{enumerable:!0,get:function(){return t.NetworkHelper}});var o=n(453);Object.defineProperty(r,"NamingHelper",{enumerable:!0,get:function(){return o.NamingHelper}});var e=n(952);Object.defineProperty(r,"ColorHelper",{enumerable:!0,get:function(){return e.ColorHelper}});var a=n(617);Object.defineProperty(r,"FileHelper",{enumerable:!0,get:function(){return a.FileHelper}});var y=n(771);Object.defineProperty(r,"CSSHelper",{enumerable:!0,get:function(){return y.CSSHelper}});var l=n(639);Object.defineProperty(r,"Iterators",{enumerable:!0,get:function(){return l.Iterators}});var p=n(545);Object.defineProperty(r,"StringCase",{enumerable:!0,get:function(){return p.StringCase}});var s=n(989);Object.defineProperty(r,"ColorFormat",{enumerable:!0,get:function(){return s.ColorFormat}})})();var m=u;for(var g in T)m[g]=T[g];T.__esModule&&Object.defineProperty(m,"__esModule",{value:!0})})()})(C);var _={};(function(u){(()=>{var i={9932:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.docsImageRefToUrl=t.DocsImageRefType=void 0,function(e){e.resource="Resource",e.figmaNode="FigmaNode"}(o||(t.DocsImageRefType=o={})),t.docsImageRefToUrl=function(e,a,y){var l;if(e)switch(e.type){case o.resource:return(l=e.resource)===null||l===void 0?void 0:l.url;case o.figmaNode:return!e.figmaNode||!e.figmaNode.sourceId||!e.figmaNode.frameReferenceId?void 0:a.resources.getFigmaFrameHostedUrl({designSystemId:y.dsId,versionId:y.versionId},e.figmaNode.frameReferenceId);default:return}}},5673:(r,t)=>{var o;function e(a){switch(a.type){case o.documentationItem:return`@page:${a.documentationItemId}`;case o.pageHeading:return`@page:${a.documentationItemId}#${a.pageHeadingId}`;case o.url:return a.url;default:return}}Object.defineProperty(t,"__esModule",{value:!0}),t.linkAttributeToDocsLink=t.docsLinkToLinkAttributes=t.docsLinkToUrl=t.DocsLinkRefType=void 0,function(a){a.documentationItem="DocumentationItem",a.pageHeading="PageHeading",a.url="Url"}(o||(t.DocsLinkRefType=o={})),t.docsLinkToUrl=e,t.docsLinkToLinkAttributes=function(a){const y=e(a);if(y)return{href:y,target:a.openInNewTab?"_blank":"_self"}},t.linkAttributeToDocsLink=function(a,y){if(!a)return;const l=y==="_blank";if(a.startsWith("@page:")){if(a.includes("#")){const[p,s]=a.replace("@page:","").split("#");return{type:o.pageHeading,documentationItemId:p,pageHeadingId:s,openInNewTab:l}}return{type:o.documentationItem,documentationItemId:a.replace("@page:",""),openInNewTab:l}}return{type:o.url,url:a,openInNewTab:l}}},2657:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentationLegacyPageBlockShortcut=t.DocumentationLegacyPageBlockShortcutType=void 0,function(e){e.external="External",e.internal="Internal"}(o||(t.DocumentationLegacyPageBlockShortcutType=o={})),t.DocumentationLegacyPageBlockShortcut=class{constructor(e){var a;e.url?this.type=o.external:this.type=o.internal,this.title=this.shortcutTitleFromModel(e,this.type),this.description=this.shortcutDescriptionFromModel(e,this.type),this.previewUrl=this.shortcutPreviewUrlFromModel(e),this.type===o.internal&&(!((a=e.documentationItemPreview)===null||a===void 0)&&a.valid)&&e.documentationItemId?this.internalId=e.documentationItemId:(this.internalId=null,this.type===o.external&&e.url?this.externalUrl=e.url:this.externalUrl=null)}shortcutTitleFromModel(e,a){var y,l,p,s,d;let f=null;return e.title&&e.title.trim().length>0?f=e.title:a===o.internal?f=(l=(y=e.documentationItemPreview)===null||y===void 0?void 0:y.title)!==null&&l!==void 0?l:null:a===o.external&&(f=(d=(s=(p=e.urlPreview)===null||p===void 0?void 0:p.title)!==null&&s!==void 0?s:e.url)!==null&&d!==void 0?d:null),f&&f.trim().length!==0?f:null}shortcutDescriptionFromModel(e,a){var y;let l=null;return e.description&&e.description.trim().length>0?l=e.description:a===o.external&&(l=(y=e.urlPreview)===null||y===void 0?void 0:y.description),l&&l.trim().length!==0?l:null}shortcutPreviewUrlFromModel(e){var a,y,l,p,s;return(s=(l=(a=e.assetUrl)!==null&&a!==void 0?a:(y=e.asset)===null||y===void 0?void 0:y.url)!==null&&l!==void 0?l:(p=e.urlPreview)===null||p===void 0?void 0:p.thumbnailUrl)!==null&&s!==void 0?s:null}}},7476:(r,t)=>{var o,e;Object.defineProperty(t,"__esModule",{value:!0}),t.TextAlignment=t.Alignment=void 0,function(a){a.left="Left",a.center="Center",a.stretch="Stretch"}(o||(t.Alignment=o={})),function(a){a.left="Left",a.center="Center",a.right="Right"}(e||(t.TextAlignment=e={}))},8738:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.AssetFormat=void 0,function(e){e.png="png",e.pdf="pdf",e.svg="svg"}(o||(t.AssetFormat=o={}))},915:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.AssetScale=void 0,function(e){e.x1="x1",e.x2="x2",e.x3="x3",e.x4="x4"}(o||(t.AssetScale=o={}))},899:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.AssetScaleType=void 0,function(e){e.aspectFill="AspectFill",e.aspectFit="AspectFit"}(o||(t.AssetScaleType=o={}))},6192:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.BlurType=void 0,function(e){e.layer="Layer",e.background="Background"}(o||(t.BlurType=o={}))},1160:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.ALL_BORDER_POSITIONS=t.BorderPosition=void 0,function(e){e.inside="Inside",e.center="Center",e.outside="Outside"}(o||(t.BorderPosition=o={})),t.ALL_BORDER_POSITIONS=[o.inside,o.center,o.outside]},4546:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.ALL_BORDER_STYLES=t.BorderStyle=void 0,function(e){e.dashed="Dashed",e.dotted="Dotted",e.solid="Solid",e.groove="Groove"}(o||(t.BorderStyle=o={})),t.ALL_BORDER_STYLES=[o.dashed,o.dotted,o.solid,o.groove]},8042:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.ImportWarningType=void 0,function(e){e.UnsupportedFill="UnsupportedFill",e.UnsupportedStroke="UnsupportedStroke",e.UnsupportedEffect="UnsupportedEffect",e.StyleNotApplied="StyleNotApplied",e.NoPublishedStyles="NoPublishedStyles",e.NoPublishedComponents="NoPublishedComponents",e.NoPublishedAssets="NoPublishedAssets",e.NoVersionFound="NoVersionFound",e.ComponentHasNoThumbnail="ComponentHasNoThumbnail",e.DuplicateImportedStyleId="DuplicateImportedStyleId",e.DuplicateImportedStylePath="DuplicateImportedStylePath",e.NoPublishedElements="NoPublishedElements",e.NoUnpublishedStyles="NoUnpublishedStyles"}(o||(t.ImportWarningType=o={}))},5695:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.CustomDomainErrorCode=void 0,function(e){e.generalError="GeneralError",e.dnsNotConfigured="DNSNotConfigured",e.maintenance="Maintenance"}(o||(t.CustomDomainErrorCode=o={}))},7737:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.CustomDomainState=void 0,function(e){e.initial="Initial",e.domainSetupInProgress="DomainSetupInProgress",e.domainSetupFailed="DomainSetupFailed",e.domainSetupsSucces="DomainSetupSuccess",e.sslSetupInProgress="SSLSetupInProgress",e.sslSetupFailed="SSLSetupFailed",e.sslSetupSuccess="SSLSetupSuccess"}(o||(t.CustomDomainState=o={}))},5651:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsBlockBehaviorDataType=void 0,function(e){e.item="Item",e.token="Token",e.asset="Asset",e.component="Component",e.figmaNode="FigmaNode",e.figmaComponent="FigmaComponent"}(o||(t.DocsBlockBehaviorDataType=o={}))},3733:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsBlockBehaviorSelectionType=void 0,function(e){e.entity="Entity",e.group="Group",e.entityAndGroup="EntityAndGroup"}(o||(t.DocsBlockBehaviorSelectionType=o={}))},8890:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsBlockImagePropertyAspectRatio=void 0,function(e){e.auto="Auto",e.square="Square",e.landscape="Landscape",e.portrait="Portrait",e.wide="Wide"}(o||(t.DocsBlockImagePropertyAspectRatio=o={}))},9377:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsBlockItemEntityType=void 0,function(e){e.token="Token",e.tokenGroup="TokenGroup",e.asset="Asset",e.assetGroup="AssetGroup",e.component="Component",e.componentGroup="ComponentGroup"}(o||(t.DocsBlockItemEntityType=o={}))},5883:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsBlockItemPropertyOptionRenderingStyle=void 0,function(e){e.segmentedControl="SegmentedControl",e.toggleButton="ToggleButton",e.select="Select",e.checkbox="Checkbox"}(o||(t.DocsBlockItemPropertyOptionRenderingStyle=o={}))},8061:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsBlockItemPropertyRichTextStyle=void 0,function(e){e.title1="Title1",e.title2="Title2",e.title3="Title3",e.title4="Title4",e.title5="Title5",e.quote="Quote",e.callout="Callout",e.ol="OL",e.ul="UL"}(o||(t.DocsBlockItemPropertyRichTextStyle=o={}))},7479:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsBlockItemPropertyTextStyle=void 0,function(e){e.small="Small",e.regular="Regular",e.bold="Bold"}(o||(t.DocsBlockItemPropertyTextStyle=o={}))},6839:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsBlockItemPropertyType=void 0,function(e){e.richText="RichText",e.multiRichText="MultiRichText",e.text="Text",e.richTextEditor="RichTextEditor",e.boolean="Boolean",e.number="Number",e.singleSelect="SingleSelect",e.multiSelect="MultiSelect",e.image="Image",e.token="Token",e.tokenType="TokenType",e.tokenProperty="TokenProperty",e.component="Component",e.componentProperty="ComponentProperty",e.asset="Asset",e.assetProperty="AssetProperty",e.embedURL="EmbedURL",e.url="URL",e.markdown="Markdown",e.code="Code",e.codeSandbox="CodeSandbox",e.table="Table",e.divider="Divider",e.storybook="Storybook",e.color="Color",e.figmaNode="FigmaNode",e.figmaComponent="FigmaComponent"}(o||(t.DocsBlockItemPropertyType=o={}))},8095:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsBlockItemVariantLayoutType=void 0,function(e){e.column="Column",e.row="Row"}(o||(t.DocsBlockItemVariantLayoutType=o={}))},7291:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsBlockItemVariantLayoutWidth=void 0,function(e){e.c1="1",e.c2="2",e.c3="3",e.c4="4",e.c5="5",e.c6="6",e.c7="7",e.c8="8",e.c9="9",e.c10="10",e.c11="11",e.c12="12"}(o||(t.DocsBlockItemVariantLayoutWidth=o={}))},9133:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsBlockOptionColor=void 0,function(e){e.green="Green",e.red="Red",e.yellow="Yellow",e.blue="Blue",e.purple="Purple",e.orange="Orange",e.pink="Pink",e.teal="Teal",e.grey="Grey",e.lightGrey="LightGrey",e.cyan="Cyan",e.fuchsia="Fuchsia"}(o||(t.DocsBlockOptionColor=o={}))},5963:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsBlockOptionRenderingStyle=void 0,function(e){e.segmentedControl="SegmentedControl",e.toggleButton="ToggleButton",e.select="Select",e.checkbox="Checkbox"}(o||(t.DocsBlockOptionRenderingStyle=o={}))},6644:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsBlockRichTextPropertyStyle=void 0,function(e){e.title1="Title1",e.title2="Title2",e.title3="Title3",e.title4="Title4",e.title5="Title5",e.quote="Quote",e.callout="Callout",e.default="Default"}(o||(t.DocsBlockRichTextPropertyStyle=o={}))},306:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsBlockTextPropertyStyle=void 0,function(e){e.title1="Title1",e.title2="Title2",e.title3="Title3",e.title4="Title4",e.title5="Title5",e.default="Default",e.defaultBold="DefaultBold",e.defaultSemibold="DefaultSemibold",e.small="Small",e.smallBold="SmallBold",e.smallSemibold="SmallSemibold",e.custom="Custom"}(o||(t.DocsBlockTextPropertyStyle=o={}))},4068:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsEntityGroupBehavior=void 0,function(e){e.group="Group",e.tabs="Tabs"}(o||(t.DocsEntityGroupBehavior=o={}))},1233:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsEntityType=void 0,function(e){e.group="Group",e.page="Page"}(o||(t.DocsEntityType=o={}))},7971:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsSectionType=void 0,function(e){e.plain="Plain",e.tabs="Tabs"}(o||(t.DocsSectionType=o={}))},5102:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentationLegacyCalloutType=void 0,function(e){e.info="Info",e.success="Success",e.warning="Warning",e.error="Error"}(o||(t.DocumentationLegacyCalloutType=o={}))},2123:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentationLegacyGroupBehavior=void 0,function(e){e.group="Group",e.tabs="Tabs"}(o||(t.DocumentationLegacyGroupBehavior=o={}))},9896:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentationLegacyHeadingType=void 0,function(e){e[e.h1=1]="h1",e[e.h2=2]="h2",e[e.h3=3]="h3"}(o||(t.DocumentationLegacyHeadingType=o={}))},7379:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentationLegacyItemType=void 0,function(e){e.group="Group",e.page="Page"}(o||(t.DocumentationLegacyItemType=o={}))},1423:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentationLegacyPageAssetType=void 0,function(e){e.image="image",e.figmaFrame="figmaFrame"}(o||(t.DocumentationLegacyPageAssetType=o={}))},1601:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentationLegacyPageBlockThemeType=void 0,function(e){e.override="Override",e.comparison="Comparison"}(o||(t.DocumentationLegacyPageBlockThemeType=o={}))},1846:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentationLegacyPageBlockType=void 0,function(e){e.text="Text",e.heading="Heading",e.code="Code",e.unorderedList="UnorderedList",e.orderedList="OrderedList",e.quote="Quote",e.callout="Callout",e.divider="Divider",e.image="Image",e.token="Token",e.tokenList="TokenList",e.tokenGroup="TokenGroup",e.shortcuts="Shortcuts",e.link="Link",e.figmaEmbed="FigmaEmbed",e.youtubeEmbed="YoutubeEmbed",e.storybookEmbed="StorybookEmbed",e.genericEmbed="Embed",e.figmaFrames="FigmaFrames",e.custom="Custom",e.renderCode="RenderCode",e.componentAssets="ComponentAssets",e.column="Column",e.columnItem="ColumnItem",e.tabs="Tabs",e.tabItem="TabItem",e.table="Table",e.tableCell="TableCell",e.tableRow="TableRow"}(o||(t.DocumentationLegacyPageBlockType=o={}))},1255:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.FrameAlignment=void 0,function(e){e.frameHeight="FrameHeight",e.center="Center"}(o||(t.FrameAlignment=o={}))},3718:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.FrameLayout=void 0,function(e){e.c8="C8",e.c7="C7",e.c6="C6",e.c5="C5",e.c4="C4",e.c3="C3",e.c2="C2",e.c1="C1",e.c175="C1_75"}(o||(t.FrameLayout=o={}))},1:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.GradientType=void 0,function(e){e.linear="Linear",e.radial="Radial",e.angular="Angular"}(o||(t.GradientType=o={}))},934:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.IconSet=void 0,function(e){e.checkCircle="CheckCircle",e.crossCircle="CrossCircle",e.alert="Alert"}(o||(t.IconSet=o={}))},2674:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.RichTextSpanAttributeType=void 0,function(e){e.bold="Bold",e.italic="Italic",e.link="Link",e.strikethrough="Strikethrough",e.code="Code"}(o||(t.RichTextSpanAttributeType=o={}))},9125:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.ShadowType=void 0,function(e){e.drop="Drop",e.inner="Inner"}(o||(t.ShadowType=o={}))},4652:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.SourceType=void 0,function(e){e.figma="Figma",e.tokenStudio="TokenStudio",e.figmaVariablesPlugin="FigmaVariablesPlugin"}(o||(t.SourceType=o={}))},922:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.TextCase=void 0,function(e){e.original="Original",e.upper="Upper",e.lower="Lower",e.camel="Camel",e.smallCaps="SmallCaps"}(o||(t.TextCase=o={}))},7040:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.TextDecoration=void 0,function(e){e.original="None",e.underline="Underline",e.strikethrough="Strikethrough"}(o||(t.TextDecoration=o={}))},3788:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DT_TOKEN_TYPES=t.tokenTypeIsReferencable=t.REFERENCABLE_TOKEN_TYPES=t.REPLACABLE_TOKEN_TYPES=t.tokenTypeIsNonPure=t.tokenTypeIsPure=t.PURE_TOKEN_TYPES=t.ALL_TOKEN_TYPES=t.MS_DIMENSION_TOKEN_TYPES=t.RAW_DIMENSION_TOKEN_TYPES=t.DIMENSION_TOKEN_TYPES=t.OPTION_TOKEN_TYPES=t.STRING_TOKEN_TYPES=t.TokenType=void 0,function(e){e.color="Color",e.typography="Typography",e.shadow="Shadow",e.border="Border",e.gradient="Gradient",e.blur="Blur",e.radius="BorderRadius",e.borderWidth="BorderWidth",e.duration="Duration",e.fontSize="FontSize",e.dimension="Dimension",e.letterSpacing="LetterSpacing",e.lineHeight="LineHeight",e.opacity="Opacity",e.paragraphSpacing="ParagraphSpacing",e.size="Size",e.space="Space",e.zIndex="ZIndex",e.textDecoration="TextDecoration",e.textCase="TextCase",e.visibility="Visibility",e.fontFamily="FontFamily",e.fontWeight="FontWeight",e.string="String",e.productCopy="ProductCopy"}(o||(t.TokenType=o={})),t.STRING_TOKEN_TYPES=[o.string,o.productCopy,o.fontFamily,o.fontWeight],t.OPTION_TOKEN_TYPES=[o.textCase,o.textDecoration,o.visibility],t.DIMENSION_TOKEN_TYPES=[o.dimension,o.size,o.space,o.opacity,o.fontSize,o.lineHeight,o.letterSpacing,o.paragraphSpacing,o.borderWidth,o.radius,o.duration,o.zIndex],t.RAW_DIMENSION_TOKEN_TYPES=[o.opacity,o.zIndex],t.MS_DIMENSION_TOKEN_TYPES=[o.duration],t.ALL_TOKEN_TYPES=[...t.DIMENSION_TOKEN_TYPES,...t.STRING_TOKEN_TYPES,...t.OPTION_TOKEN_TYPES,o.color,o.gradient,o.border,o.radius,o.shadow,o.typography,o.blur],t.PURE_TOKEN_TYPES=[...t.DIMENSION_TOKEN_TYPES,...t.STRING_TOKEN_TYPES,...t.OPTION_TOKEN_TYPES],t.tokenTypeIsPure=e=>t.PURE_TOKEN_TYPES.includes(e),t.tokenTypeIsNonPure=e=>!(0,t.tokenTypeIsPure)(e),t.REPLACABLE_TOKEN_TYPES=[o.color,...t.DIMENSION_TOKEN_TYPES,...t.STRING_TOKEN_TYPES,...t.OPTION_TOKEN_TYPES],t.REFERENCABLE_TOKEN_TYPES=[o.color,...t.DIMENSION_TOKEN_TYPES,o.fontFamily,o.fontWeight,o.textCase,o.textDecoration],t.tokenTypeIsReferencable=e=>t.REFERENCABLE_TOKEN_TYPES.includes(e),t.DT_TOKEN_TYPES=[o.color,o.shadow,o.gradient,o.typography,o.border,...t.DIMENSION_TOKEN_TYPES,o.fontFamily,o.fontWeight,...t.OPTION_TOKEN_TYPES]},8607:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.MS_UNITS=t.PX_UNITS=t.RAW_UNITS=t.LINE_HEIGHT_UNITS=t.SIZE_UNITS=t.Unit=void 0,function(e){e.pixels="Pixels",e.percent="Percent",e.rem="Rem",e.ms="Ms",e.raw="Raw"}(o||(t.Unit=o={})),t.SIZE_UNITS=[o.pixels,o.percent,o.rem],t.LINE_HEIGHT_UNITS=[o.pixels,o.percent,o.rem,o.raw],t.RAW_UNITS=[o.raw],t.PX_UNITS=[o.pixels],t.MS_UNITS=[o.ms]},9478:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.UserRole=void 0,function(e){e.owner="Owner",e.admin="Admin",e.creator="Creator",e.billing="Billing",e.viewer="Viewer"}(o||(t.UserRole=o={}))},6141:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.VisibilityType=void 0,function(e){e.visible="Visible",e.hidden="Hidden"}(o||(t.VisibilityType=o={}))},6298:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.WorkspaceNPMRegistryAuthType=void 0,function(e){e.basic="Basic",e.bearer="Bearer"}(o||(t.WorkspaceNPMRegistryAuthType=o={}))},7968:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.WorkspaceNPMRegistryType=void 0,function(e){e.npmJS="NPMJS",e.gitHub="GitHub",e.azureDevOps="AzureDevOps",e.artifactory="Artifactory",e.custom="Custom"}(o||(t.WorkspaceNPMRegistryType=o={}))},5503:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.WorkspaceSubscriptionPlanInterval=void 0,function(e){e.yearly="yearly",e.monthly="monthly"}(o||(t.WorkspaceSubscriptionPlanInterval=o={}))},4290:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.WorkspaceSubscriptionProductCode=void 0,function(e){e.free="free",e.team="team",e.teamTest="team_test",e.company="company",e.enterprise="enterprise"}(o||(t.WorkspaceSubscriptionProductCode=o={}))},3607:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.WorkspaceSubscriptionStatus=void 0,function(e){e.active="active",e.gracePeriod="gracePeriod",e.cancelled="cancelled",e.suspended="suspended"}(o||(t.WorkspaceSubscriptionStatus=o={}))},2802:(r,t)=>{var o,e;Object.defineProperty(t,"__esModule",{value:!0}),t.PulsarExecutor=t.OutputFileType=void 0,function(a){a.copyRemoteUrl="copyRemoteUrl",a.text="text",a.binary="binary"}(o||(t.OutputFileType=o={})),function(a){a.supernova="supernova",a.local="local"}(e||(t.PulsarExecutor=e={}))}},c={};function n(r){var t=c[r];if(t!==void 0)return t.exports;var o=c[r]={exports:{}};return i[r](o,o.exports,n),o.exports}var T={};(()=>{var r=T;Object.defineProperty(r,"__esModule",{value:!0}),r.TokenType=r.TextDecoration=r.TextCase=r.ShadowType=r.RichTextSpanAttributeType=r.GradientType=r.FrameLayout=r.FrameAlignment=r.IconSet=r.SourceType=r.DocsImageRefType=r.DocsLinkRefType=r.DocsSectionType=r.DocsEntityType=r.DocsEntityGroupBehavior=r.DocsBlockTextPropertyStyle=r.DocsBlockRichTextPropertyStyle=r.DocsBlockOptionColor=r.DocsBlockOptionRenderingStyle=r.DocsBlockItemVariantLayoutWidth=r.DocsBlockItemVariantLayoutType=r.DocsBlockItemPropertyType=r.DocsBlockItemPropertyTextStyle=r.DocsBlockItemPropertyRichTextStyle=r.DocsBlockItemPropertyOptionRenderingStyle=r.DocsBlockItemEntityType=r.DocsBlockImagePropertyAspectRatio=r.DocsBlockBehaviorSelectionType=r.DocsBlockBehaviorDataType=r.DocumentationLegacyPageBlockShortcutType=r.DocumentationLegacyPageBlockThemeType=r.DocumentationLegacyPageBlockType=r.DocumentationLegacyPageAssetType=r.DocumentationLegacyItemType=r.DocumentationLegacyHeadingType=r.DocumentationLegacyGroupBehavior=r.DocumentationLegacyCalloutType=r.BorderStyle=r.BorderPosition=r.BlurType=r.AssetScaleType=r.AssetScale=r.AssetFormat=r.Alignment=r.ALL_TOKEN_TYPES=r.ALL_BORDER_STYLES=r.ALL_BORDER_POSITIONS=r.OPTION_TOKEN_TYPES=r.STRING_TOKEN_TYPES=r.DIMENSION_TOKEN_TYPES=void 0,r.PulsarExecutor=r.OutputFileType=r.CustomDomainState=r.CustomDomainErrorCode=r.ImportWarningType=r.WorkspaceNPMRegistryType=r.WorkspaceNPMRegistryAuthType=r.WorkspaceSubscriptionStatus=r.WorkspaceSubscriptionProductCode=r.WorkspaceSubscriptionPlanInterval=r.VisibilityType=r.UserRole=r.Unit=void 0;var t=n(3788);Object.defineProperty(r,"DIMENSION_TOKEN_TYPES",{enumerable:!0,get:function(){return t.DIMENSION_TOKEN_TYPES}}),Object.defineProperty(r,"STRING_TOKEN_TYPES",{enumerable:!0,get:function(){return t.STRING_TOKEN_TYPES}}),Object.defineProperty(r,"OPTION_TOKEN_TYPES",{enumerable:!0,get:function(){return t.OPTION_TOKEN_TYPES}});var o=n(1160);Object.defineProperty(r,"ALL_BORDER_POSITIONS",{enumerable:!0,get:function(){return o.ALL_BORDER_POSITIONS}});var e=n(4546);Object.defineProperty(r,"ALL_BORDER_STYLES",{enumerable:!0,get:function(){return e.ALL_BORDER_STYLES}});var a=n(3788);Object.defineProperty(r,"ALL_TOKEN_TYPES",{enumerable:!0,get:function(){return a.ALL_TOKEN_TYPES}});var y=n(7476);Object.defineProperty(r,"Alignment",{enumerable:!0,get:function(){return y.Alignment}});var l=n(8738);Object.defineProperty(r,"AssetFormat",{enumerable:!0,get:function(){return l.AssetFormat}});var p=n(915);Object.defineProperty(r,"AssetScale",{enumerable:!0,get:function(){return p.AssetScale}});var s=n(899);Object.defineProperty(r,"AssetScaleType",{enumerable:!0,get:function(){return s.AssetScaleType}});var d=n(6192);Object.defineProperty(r,"BlurType",{enumerable:!0,get:function(){return d.BlurType}});var f=n(1160);Object.defineProperty(r,"BorderPosition",{enumerable:!0,get:function(){return f.BorderPosition}});var S=n(4546);Object.defineProperty(r,"BorderStyle",{enumerable:!0,get:function(){return S.BorderStyle}});var v=n(5102);Object.defineProperty(r,"DocumentationLegacyCalloutType",{enumerable:!0,get:function(){return v.DocumentationLegacyCalloutType}});var b=n(2123);Object.defineProperty(r,"DocumentationLegacyGroupBehavior",{enumerable:!0,get:function(){return b.DocumentationLegacyGroupBehavior}});var P=n(9896);Object.defineProperty(r,"DocumentationLegacyHeadingType",{enumerable:!0,get:function(){return P.DocumentationLegacyHeadingType}});var h=n(7379);Object.defineProperty(r,"DocumentationLegacyItemType",{enumerable:!0,get:function(){return h.DocumentationLegacyItemType}});var k=n(1423);Object.defineProperty(r,"DocumentationLegacyPageAssetType",{enumerable:!0,get:function(){return k.DocumentationLegacyPageAssetType}});var O=n(1846);Object.defineProperty(r,"DocumentationLegacyPageBlockType",{enumerable:!0,get:function(){return O.DocumentationLegacyPageBlockType}});var R=n(1601);Object.defineProperty(r,"DocumentationLegacyPageBlockThemeType",{enumerable:!0,get:function(){return R.DocumentationLegacyPageBlockThemeType}});var B=n(2657);Object.defineProperty(r,"DocumentationLegacyPageBlockShortcutType",{enumerable:!0,get:function(){return B.DocumentationLegacyPageBlockShortcutType}});var j=n(5651);Object.defineProperty(r,"DocsBlockBehaviorDataType",{enumerable:!0,get:function(){return j.DocsBlockBehaviorDataType}});var L=n(3733);Object.defineProperty(r,"DocsBlockBehaviorSelectionType",{enumerable:!0,get:function(){return L.DocsBlockBehaviorSelectionType}});var x=n(8890);Object.defineProperty(r,"DocsBlockImagePropertyAspectRatio",{enumerable:!0,get:function(){return x.DocsBlockImagePropertyAspectRatio}});var M=n(9377);Object.defineProperty(r,"DocsBlockItemEntityType",{enumerable:!0,get:function(){return M.DocsBlockItemEntityType}});var A=n(5883);Object.defineProperty(r,"DocsBlockItemPropertyOptionRenderingStyle",{enumerable:!0,get:function(){return A.DocsBlockItemPropertyOptionRenderingStyle}});var F=n(8061);Object.defineProperty(r,"DocsBlockItemPropertyRichTextStyle",{enumerable:!0,get:function(){return F.DocsBlockItemPropertyRichTextStyle}});var w=n(7479);Object.defineProperty(r,"DocsBlockItemPropertyTextStyle",{enumerable:!0,get:function(){return w.DocsBlockItemPropertyTextStyle}});var H=n(6839);Object.defineProperty(r,"DocsBlockItemPropertyType",{enumerable:!0,get:function(){return H.DocsBlockItemPropertyType}});var U=n(8095);Object.defineProperty(r,"DocsBlockItemVariantLayoutType",{enumerable:!0,get:function(){return U.DocsBlockItemVariantLayoutType}});var W=n(7291);Object.defineProperty(r,"DocsBlockItemVariantLayoutWidth",{enumerable:!0,get:function(){return W.DocsBlockItemVariantLayoutWidth}});var $=n(5963);Object.defineProperty(r,"DocsBlockOptionRenderingStyle",{enumerable:!0,get:function(){return $.DocsBlockOptionRenderingStyle}});var G=n(9133);Object.defineProperty(r,"DocsBlockOptionColor",{enumerable:!0,get:function(){return G.DocsBlockOptionColor}});var Y=n(6644);Object.defineProperty(r,"DocsBlockRichTextPropertyStyle",{enumerable:!0,get:function(){return Y.DocsBlockRichTextPropertyStyle}});var V=n(306);Object.defineProperty(r,"DocsBlockTextPropertyStyle",{enumerable:!0,get:function(){return V.DocsBlockTextPropertyStyle}});var K=n(4068);Object.defineProperty(r,"DocsEntityGroupBehavior",{enumerable:!0,get:function(){return K.DocsEntityGroupBehavior}});var z=n(1233);Object.defineProperty(r,"DocsEntityType",{enumerable:!0,get:function(){return z.DocsEntityType}});var q=n(7971);Object.defineProperty(r,"DocsSectionType",{enumerable:!0,get:function(){return q.DocsSectionType}});var Z=n(5673);Object.defineProperty(r,"DocsLinkRefType",{enumerable:!0,get:function(){return Z.DocsLinkRefType}});var X=n(9932);Object.defineProperty(r,"DocsImageRefType",{enumerable:!0,get:function(){return X.DocsImageRefType}});var J=n(4652);Object.defineProperty(r,"SourceType",{enumerable:!0,get:function(){return J.SourceType}});var Q=n(934);Object.defineProperty(r,"IconSet",{enumerable:!0,get:function(){return Q.IconSet}});var ee=n(1255);Object.defineProperty(r,"FrameAlignment",{enumerable:!0,get:function(){return ee.FrameAlignment}});var te=n(3718);Object.defineProperty(r,"FrameLayout",{enumerable:!0,get:function(){return te.FrameLayout}});var oe=n(1);Object.defineProperty(r,"GradientType",{enumerable:!0,get:function(){return oe.GradientType}});var re=n(2674);Object.defineProperty(r,"RichTextSpanAttributeType",{enumerable:!0,get:function(){return re.RichTextSpanAttributeType}});var ne=n(9125);Object.defineProperty(r,"ShadowType",{enumerable:!0,get:function(){return ne.ShadowType}});var ae=n(922);Object.defineProperty(r,"TextCase",{enumerable:!0,get:function(){return ae.TextCase}});var ie=n(7040);Object.defineProperty(r,"TextDecoration",{enumerable:!0,get:function(){return ie.TextDecoration}});var ce=n(3788);Object.defineProperty(r,"TokenType",{enumerable:!0,get:function(){return ce.TokenType}});var le=n(8607);Object.defineProperty(r,"Unit",{enumerable:!0,get:function(){return le.Unit}});var se=n(9478);Object.defineProperty(r,"UserRole",{enumerable:!0,get:function(){return se.UserRole}});var ue=n(6141);Object.defineProperty(r,"VisibilityType",{enumerable:!0,get:function(){return ue.VisibilityType}});var pe=n(5503);Object.defineProperty(r,"WorkspaceSubscriptionPlanInterval",{enumerable:!0,get:function(){return pe.WorkspaceSubscriptionPlanInterval}});var de=n(4290);Object.defineProperty(r,"WorkspaceSubscriptionProductCode",{enumerable:!0,get:function(){return de.WorkspaceSubscriptionProductCode}});var ye=n(3607);Object.defineProperty(r,"WorkspaceSubscriptionStatus",{enumerable:!0,get:function(){return ye.WorkspaceSubscriptionStatus}});var Te=n(6298);Object.defineProperty(r,"WorkspaceNPMRegistryAuthType",{enumerable:!0,get:function(){return Te.WorkspaceNPMRegistryAuthType}});var me=n(7968);Object.defineProperty(r,"WorkspaceNPMRegistryType",{enumerable:!0,get:function(){return me.WorkspaceNPMRegistryType}});var fe=n(8042);Object.defineProperty(r,"ImportWarningType",{enumerable:!0,get:function(){return fe.ImportWarningType}});var D=n(5695);Object.defineProperty(r,"CustomDomainErrorCode",{enumerable:!0,get:function(){return D.CustomDomainErrorCode}});var Ve=n(7737);Object.defineProperty(r,"CustomDomainState",{enumerable:!0,get:function(){return Ve.CustomDomainState}});var Be=n(2802);Object.defineProperty(r,"OutputFileType",{enumerable:!0,get:function(){return Be.OutputFileType}}),Object.defineProperty(r,"PulsarExecutor",{enumerable:!0,get:function(){return Be.PulsarExecutor}})})();var m=u;for(var g in T)m[g]=T[g];T.__esModule&&Object.defineProperty(m,"__esModule",{value:!0})})()})(_);const I=(u,i,c)=>{let n;return c?n=i.find(T=>T.id===u.parentGroupId):n=null,C.NamingHelper.codeSafeVariableNameForToken(u,C.StringCase.paramCase,n,"")},Se=(u,i,c)=>c?`$${u}: ${i}${c} !default;`:`$${u}: ${i} !default;`,st=(u,i,c,n,T)=>u.sort((g,r)=>{if(T){const e=g.name.match(/\d+$/),a=r.name.match(/\d+$/);if(e&&a)return parseInt(e[0],10)-parseInt(a[0],10)}const t=I(g,i,c),o=I(r,i,c);return t.localeCompare(o)}),ut=u=>{let i=null;const c=[];return u.forEach(({css:n,parentGroupId:T})=>{i&&T!==i&&n&&c.push(""),n&&c.push(n),i=T}),c.join(` +`)},pt=new Map([["breakpoint-mobile",0]]),ve=(u,i)=>{const c=pt.get(u);return typeof c==typeof i?c:i},dt=3,xe=4,yt=8,Tt=u=>u.length%2===0&&u.split("").every((i,c,n)=>c%2===0?i===n[c+1]:!0),mt=u=>u.split("").map((i,c)=>c%2===0?i:"").join(""),ft=u=>{const i=[dt,xe].includes(u.length);let c;return i?c=u:Tt(u)?c=mt(u):c=u,c.length===yt&&c.endsWith("ff")?`#${c.slice(0,-2)}`:c.length===xe&&c.endsWith("f")?`#${c.slice(0,-1)}`:`#${c}`},gt=(u,i,c,n)=>{var T,m;if(u.tokenType===_.TokenType.dimension){const g=u,r=I(g,c,n);let t=(T=g.value)==null?void 0:T.measure;t=ve(r,t);const o=C.CSSHelper.unitToCSS((m=g.value)==null?void 0:m.unit);return Se(r,t,o)}if(u.tokenType===_.TokenType.string){const g=u,r=I(g,c,n);let t=g.value.text;return t=ve(r,t),Se(r,t)}if(u.tokenType===_.TokenType.color){const g=u,r=I(g,c,n);let t=C.CSSHelper.colorTokenValueToCSS(g.value,i,{allowReferences:!0,decimals:3,colorFormat:C.ColorFormat.hex8,tokenToVariableRef:()=>""});return t=ft(t),t=ve(r,t),Se(r,t)}return null},St=(u,i,c,n,T,m)=>{const r=st(u,c,T,n,m).map(t=>({css:gt(t,i,c,T),parentGroupId:t.parentGroupId}));return ut(r)},vt=u=>({radius:"radii",spacing:"spaces"})[u]||(u.endsWith("s")?u:`${u}s`),Me={"radius-full":"full"},bt=u=>Me[u]?Me[u]:u.toLowerCase(),Pt=(u,i,c,n)=>u.reduce((T,m)=>{var r,t;const g=(t=(r=m.origin)==null?void 0:r.name)==null?void 0:t.split("/");if(g){let o=T;g.forEach((e,a)=>{var y;if(a===0&&(e=m.tokenType===_.TokenType.color?`$${e}-colors`:`$${vt(e.toLowerCase())}`),a===g.length-1){const l=I(m,c,n);let p;const s=(y=m.name.match(/\d+/))==null?void 0:y[0],d=bt(m.name);m.tokenType!==_.TokenType.color&&s?p=s:p=d,o[p]=`$${l}`}else o[e]=o[e]||{},o=o[e]})}return T},{}),be=" ",ht=u=>u.replace(/\n{3,}/g,` -`}).join("")},Oe=" ",eo=p=>p.replace(/\n{3,}/g,` +`),_t=u=>u.replace(/\n{2,}$/,` +`),Ot=u=>{let i=0,c="";const n=u.split(` +`);for(const T of n)T.includes("(")?(c+=`${be.repeat(i)}${T} +`,i+=1):T.includes(")")?(i-=1,c+=`${be.repeat(i)}${T} +`):c+=`${be.repeat(i)}${T} +`;return c=ht(c),c=_t(c),c},Ge=(u,i)=>Object.entries(i).reduce((c,[n,T])=>(typeof T=="object"&&T!==null&&typeof c[n]=="object"?c[n]=Ge(c[n],T):c[n]=T,c),{...u});function Ye(u){return Object.entries(u).map(([i,c])=>{if(typeof c=="object"&&c!==null){const n=Ye(c);return`${i}: ( +${n} +), +`}return`${i}: ${c}, +`}).join("").slice(0,-1)}const kt=u=>`/* This file was generated by Supernova, don't change manually */ +${u}`,Ct=(u,i,c)=>u.filter(n=>{var T,m;return n.tokenType===i&&((m=(T=n.origin)==null?void 0:T.name)==null?void 0:m.includes(c))}),It=(u,i,c,n,T,m,g,r)=>{let t="",o={};n.forEach(a=>{T.forEach(y=>{const l=Ct(u,a,y);t+=St(l,i,c,y,g,r),t+=` -`),oo=p=>p.replace(/\n{2,}$/,` -`),to=p=>{let s=0,y="";const n=p.split(` -`);for(const T of n)T.includes("(")?(s+=1,y+=`${T} -`):T.includes(")")?(s-=1,y+=`${Oe.repeat(s)}${T} -`):y+=`${Oe.repeat(s)}${T} -`;return y=eo(y),y=oo(y),y},ro=p=>`/* This file was generated by Supernova, don't change manually */ -${p}`,no=(p,s,y)=>p.filter(n=>{var T,f;return n.tokenType===s&&((f=(T=n.origin)==null?void 0:T.name)==null?void 0:f.includes(y))}),ao=(p,s,y,n,T,f,g)=>{let r="",e="";n.forEach(t=>{T.forEach(i=>{const d=no(p,t,i);r+=Ze(d,s,y,g),r+=` +`;const p=Pt(l,i,c,g);o=Ge(o,p)})});let e=t;return m&&(e+=Object.entries(o).map(([a,y])=>`${a}: ( +${Ye(y)} +) !default; -`,e+=Xe(d,s,y,g)})});const o=f?`${r}${e}`:r;return{content:ro(to(o))}},io=[{fileName:"_borders.scss",tokenTypes:[_.TokenType.dimension],groupNames:["Border"],withCssObject:!1,hasParentPrefix:!0},{fileName:"_other.scss",tokenTypes:[_.TokenType.dimension,_.TokenType.string],groupNames:["Grid","Container","Breakpoint"],withCssObject:!0,hasParentPrefix:!0},{fileName:"_radii.scss",tokenTypes:[_.TokenType.dimension],groupNames:["Radius"],withCssObject:!0,hasParentPrefix:!1},{fileName:"_spacing.scss",tokenTypes:[_.TokenType.dimension],groupNames:["Spacing"],withCssObject:!0,hasParentPrefix:!1}],co=(p,s,y)=>io.map(({fileName:n,tokenTypes:T,groupNames:f,withCssObject:g,hasParentPrefix:r})=>{const e=ao(p,s,y,T,f,g,r);return{fileName:n,...e}});Pulsar.export(async(p,s)=>{const y={designSystemId:s.dsId,versionId:s.versionId};let n=await p.tokens.getTokens(y),T=await p.tokens.getTokenGroups(y);if(s.brandId&&(n=n.filter(e=>e.brandId===s.brandId),T=T.filter(e=>e.brandId===s.brandId)),s.themeId){const o=(await p.tokens.getTokenThemes(y)).find(t=>t.id===s.themeId);if(o)n=await p.tokens.computeTokensByApplyingThemes(n,[o]);else throw new Error("Unable to apply theme which does not exist in the system.")}const f=new Map(n.map(e=>[e.id,e])),g=(e,o,t)=>E.FileHelper.createTextFile({relativePath:e,fileName:o,content:t});return[...co(n,f,T).map(e=>g("./global/",e.fileName,e.content)),g("./original-data/","_original-tokens.json",JSON.stringify(n.map(e=>({tokenType:e.tokenType,origin:e.origin.name,name:e.name,value:e.value})),null,2)),g("./original-data/","_original-groups.json",JSON.stringify(T,null,2))]});const lo=Pulsar.exportConfig();exports.exportConfiguration=lo; +`).join("")),{content:kt(Ot(e))}},Et=[{fileName:"_borders.scss",tokenTypes:[_.TokenType.dimension],groupNames:["Border"],withCssObject:!1,sortByNumValue:!0},{fileName:"_other.scss",tokenTypes:[_.TokenType.dimension,_.TokenType.string],groupNames:["Grid","Container","Breakpoint"]},{fileName:"_radii.scss",tokenTypes:[_.TokenType.dimension],groupNames:["Radius"],hasParentPrefix:!1,sortByNumValue:!0},{fileName:"_spacing.scss",tokenTypes:[_.TokenType.dimension],groupNames:["Spacing"],hasParentPrefix:!1,sortByNumValue:!0},{fileName:"_colors.scss",tokenTypes:[_.TokenType.color],groupNames:[""]}],Dt=(u,i,c)=>Et.map(({fileName:n,tokenTypes:T,groupNames:m,withCssObject:g=!0,hasParentPrefix:r=!0,sortByNumValue:t=!1})=>{const o=It(u,i,c,T,m,g,r,t);return{fileName:n,...o}});Pulsar.export(async(u,i)=>{const c={designSystemId:i.dsId,versionId:i.versionId};let n=await u.tokens.getTokens(c),T=await u.tokens.getTokenGroups(c);if(i.brandId&&(n=n.filter(o=>o.brandId===i.brandId),T=T.filter(o=>o.brandId===i.brandId)),i.themeId){const e=(await u.tokens.getTokenThemes(c)).find(a=>a.id===i.themeId);if(e)n=await u.tokens.computeTokensByApplyingThemes(n,[e]);else throw new Error("Unable to apply theme which does not exist in the system.")}const m=new Map(n.map(o=>[o.id,o])),g=(o,e,a)=>C.FileHelper.createTextFile({relativePath:o,fileName:e,content:a}),r=Dt(n,m,T),t=o=>{let e=[];const a=JSON.stringify(o,(y,l)=>{if(typeof l=="object"&&l!==null){if(e!=null&&e.includes(l))return"CIRCULAR_REFERENCE";e==null||e.push(l)}return l},2);return e=null,a};return[...r.map(o=>g("./global/",o.fileName,o.content)),g("./original-data/","_original-tokens.json",t(n)),g("./original-data/","_original-groups.json",JSON.stringify(T,null,2))]});const Nt=Pulsar.exportConfig();exports.exportConfiguration=Nt; diff --git a/exporters/variables-scss/src/formatters/__fixtures__/exampleFileContent.scss b/exporters/variables-scss/src/formatters/__fixtures__/exampleFileContent.scss index 1e218e3320..cca1823da7 100644 --- a/exporters/variables-scss/src/formatters/__fixtures__/exampleFileContent.scss +++ b/exporters/variables-scss/src/formatters/__fixtures__/exampleFileContent.scss @@ -3,10 +3,9 @@ $grid-spacing-desktop: 32px !default; $grid-columns: 12 !default; -$grid-spacings: ( - spacing-desktop: $grid-spacing-desktop, -) !default; - $grids: ( + spacing: ( + desktop: $grid-spacing-desktop, + ), columns: $grid-columns, ) !default; diff --git a/exporters/variables-scss/src/formatters/cssFormatter.ts b/exporters/variables-scss/src/formatters/cssFormatter.ts index b68a5b1988..714d945394 100644 --- a/exporters/variables-scss/src/formatters/cssFormatter.ts +++ b/exporters/variables-scss/src/formatters/cssFormatter.ts @@ -16,8 +16,8 @@ export const formatCSS = (css: string): string => { for (const line of lines) { if (line.includes('(')) { + formattedCSS += `${IDENTATION.repeat(indentationLevel)}${line}\n`; indentationLevel += 1; - formattedCSS += `${line}\n`; } else if (line.includes(')')) { indentationLevel -= 1; formattedCSS += `${IDENTATION.repeat(indentationLevel)}${line}\n`; diff --git a/exporters/variables-scss/src/generators/__tests__/contentGenerator.test.ts b/exporters/variables-scss/src/generators/__tests__/contentGenerator.test.ts index 6eef693383..e6f30a179b 100644 --- a/exporters/variables-scss/src/generators/__tests__/contentGenerator.test.ts +++ b/exporters/variables-scss/src/generators/__tests__/contentGenerator.test.ts @@ -19,6 +19,7 @@ describe('contentGenerator', () => { const groupNames = ['Grid', 'String']; const withCssObject = true; const hasParentPrefix = true; + const sortByNumValue = false; const fileContent = generateFileContent( tokens, @@ -28,6 +29,7 @@ describe('contentGenerator', () => { groupNames, withCssObject, hasParentPrefix, + sortByNumValue, ); expect(fileContent).toStrictEqual({ content: mockedExpectedResult }); diff --git a/exporters/variables-scss/src/generators/__tests__/cssGenerator.test.ts b/exporters/variables-scss/src/generators/__tests__/cssGenerator.test.ts index 2be51ddc55..fc60d106fb 100644 --- a/exporters/variables-scss/src/generators/__tests__/cssGenerator.test.ts +++ b/exporters/variables-scss/src/generators/__tests__/cssGenerator.test.ts @@ -34,7 +34,7 @@ const dataProvider = [ token: { id: '3', name: 'unsupportedToken', - tokenType: TokenType.color, + tokenType: TokenType.duration, } as Token, expectedCss: null, hasParentPrefix: true, @@ -53,9 +53,16 @@ describe('cssGenerator', () => { describe('generateCssFromTokens', () => { it('should generate CSS from tokens', () => { - const css = generateCssFromTokens(Array.from(exampleMockedTokens.values()), mappedTokens, tokenGroups, true); + const css = generateCssFromTokens( + Array.from(exampleMockedTokens.values()), + mappedTokens, + tokenGroups, + 'Grid', + true, + false, + ); - expect(css).toBe('$grid-spacing-desktop: 32px !default;\n$grid-columns: 12 !default;'); + expect(css).toBe('$grid-columns: 12 !default;\n\n$grid-spacing-desktop: 32px !default;'); }); }); }); diff --git a/exporters/variables-scss/src/generators/__tests__/cssObjectGenerator.test.ts b/exporters/variables-scss/src/generators/__tests__/cssObjectGenerator.test.ts index 52b398f914..3339e3f4fb 100644 --- a/exporters/variables-scss/src/generators/__tests__/cssObjectGenerator.test.ts +++ b/exporters/variables-scss/src/generators/__tests__/cssObjectGenerator.test.ts @@ -1,5 +1,5 @@ import { Token, TokenGroup } from '@supernovaio/sdk-exporters'; -import { generateCssObjectFromTokens, generateObjectContent } from '../cssObjectGenerator'; +import { generateCssObjectFromTokens, getNonNumericPart } from '../cssObjectGenerator'; import { exampleMockedGroups, exampleMockedTokens } from '../../formatters/__fixtures__/mockedExampleTokens'; const mappedTokens: Map = new Map([]); @@ -15,21 +15,19 @@ describe('cssObjectGenerator', () => { true, ); - expect(css).toBe( - '$grid-spacings: (\nspacing-desktop: $grid-spacing-desktop,\n) !default;\n\n$grids: (\ncolumns: $grid-columns,\n) !default;\n\n', - ); + expect(css).toStrictEqual({ + $grids: { columns: '$grid-columns', spacing: { desktop: '$grid-spacing-desktop' } }, + }); }); }); - describe('generateObjectContent', () => { - it('should generate object content', () => { - const objectContent = generateObjectContent( - [exampleMockedTokens.get('dimensionRef') as Token], - tokenGroups, - true, - ); + describe('getNonNumericPart', () => { + it('should return special case for radius-full', () => { + expect(getNonNumericPart('radius-full')).toBe('full'); + }); - expect(objectContent).toBe('spacing-desktop: $grid-spacing-desktop,\n'); + it('should return lowercase token name for other cases', () => { + expect(getNonNumericPart('Grid')).toBe('grid'); }); }); }); diff --git a/exporters/variables-scss/src/generators/__tests__/fileGenerator.test.ts b/exporters/variables-scss/src/generators/__tests__/fileGenerator.test.ts index 62cb276428..f40e054881 100644 --- a/exporters/variables-scss/src/generators/__tests__/fileGenerator.test.ts +++ b/exporters/variables-scss/src/generators/__tests__/fileGenerator.test.ts @@ -25,6 +25,7 @@ describe('fileGenerator', () => { { fileName: '_other.scss', content: mockedExpectedResult }, { fileName: '_radii.scss', content: emptyFile }, { fileName: '_spacing.scss', content: emptyFile }, + { fileName: '_colors.scss', content: emptyFile }, ]); }); }); diff --git a/exporters/variables-scss/src/generators/contentGenerator.ts b/exporters/variables-scss/src/generators/contentGenerator.ts index cf97f4094b..0037369fa1 100644 --- a/exporters/variables-scss/src/generators/contentGenerator.ts +++ b/exporters/variables-scss/src/generators/contentGenerator.ts @@ -1,7 +1,8 @@ import { Token, TokenGroup, TokenType } from '@supernovaio/sdk-exporters'; import { generateCssFromTokens } from './cssGenerator'; -import { generateCssObjectFromTokens } from './cssObjectGenerator'; +import { CssObjectType, generateCssObjectFromTokens } from './cssObjectGenerator'; import { formatCSS } from '../formatters/cssFormatter'; +import { convertToScss, deepMergeObjects } from '../helpers/cssObjectHelper'; // Add disclaimer to the top of the content export const addDisclaimer = (content: string): string => { @@ -12,6 +13,7 @@ export const filterTokensByTypeAndGroup = (tokens: Token[], type: TokenType, gro return tokens.filter((token) => token.tokenType === type && token.origin?.name?.includes(group)); }; +// TODO: refactor to use fileData instead of destructuring export const generateFileContent = ( tokens: Token[], mappedTokens: Map, @@ -20,9 +22,10 @@ export const generateFileContent = ( groupNames: string[], withCssObject: boolean, hasParentPrefix: boolean, + sortByNumValue: boolean, ) => { let cssTokens = ''; - let cssObject = ''; + let cssObject: CssObjectType = {}; // Iterate over token types and group names to filter tokens tokenTypes.forEach((tokenType) => { @@ -30,15 +33,30 @@ export const generateFileContent = ( const filteredTokens = filterTokensByTypeAndGroup(tokens, tokenType, group); // Generate css tokens - cssTokens += generateCssFromTokens(filteredTokens, mappedTokens, tokenGroups, hasParentPrefix); + cssTokens += generateCssFromTokens( + filteredTokens, + mappedTokens, + tokenGroups, + group, + hasParentPrefix, + sortByNumValue, + ); cssTokens += '\n\n'; - // Generate css object - cssObject += generateCssObjectFromTokens(filteredTokens, mappedTokens, tokenGroups, hasParentPrefix); + // Generate css object and merge it with the existing one + const groupCssObject = generateCssObjectFromTokens(filteredTokens, mappedTokens, tokenGroups, hasParentPrefix); + cssObject = deepMergeObjects(cssObject, groupCssObject); }); }); - const content = withCssObject ? `${cssTokens}${cssObject}` : cssTokens; + let content = cssTokens; + + // convert css object to scss structure + if (withCssObject) { + content += Object.entries(cssObject) + .map(([key, obj]) => `${key}: (\n${convertToScss(obj as CssObjectType)}\n) !default;\n\n`) + .join(''); + } return { content: addDisclaimer(formatCSS(content)), diff --git a/exporters/variables-scss/src/generators/cssGenerator.ts b/exporters/variables-scss/src/generators/cssGenerator.ts index 87ef40a599..463e824f07 100644 --- a/exporters/variables-scss/src/generators/cssGenerator.ts +++ b/exporters/variables-scss/src/generators/cssGenerator.ts @@ -1,7 +1,8 @@ -import { DimensionToken, StringToken, Token, TokenGroup, TokenType } from '@supernovaio/sdk-exporters'; -import { CSSHelper } from '@supernovaio/export-helpers'; -import { formatTokenName, tokenVariableName } from '../helpers/tokenHelper'; +import { ColorToken, DimensionToken, StringToken, Token, TokenGroup, TokenType } from '@supernovaio/sdk-exporters'; +import { ColorFormat, CSSHelper } from '@supernovaio/export-helpers'; +import { addEmptyLineBetweenTokenGroups, formatTokenName, sortTokens, tokenVariableName } from '../helpers/tokenHelper'; import { handleSpecialCase } from '../helpers/specialCaseHelper'; +import { normalizeColor } from '../helpers/colorHelper'; export const tokenToCSSByType = ( token: Token, @@ -28,6 +29,21 @@ export const tokenToCSSByType = ( return formatTokenName(name, value); } + if (token.tokenType === TokenType.color) { + const colorToken = token as ColorToken; + const name = tokenVariableName(colorToken, tokenGroups, withParent); + let value = CSSHelper.colorTokenValueToCSS(colorToken.value, mappedTokens, { + allowReferences: true, + decimals: 3, + colorFormat: ColorFormat.hex8, + tokenToVariableRef: () => '', + }); + value = normalizeColor(value); + value = handleSpecialCase(name, value); + + return formatTokenName(name, value); + } + return null; }; @@ -35,10 +51,16 @@ export const generateCssFromTokens = ( tokens: Token[], mappedTokens: Map, tokenGroups: Array, + group: string, hasParentPrefix: boolean, + sortByNumValue: boolean, ): string => { - return tokens - .map((token) => tokenToCSSByType(token, mappedTokens, tokenGroups, hasParentPrefix)) - .filter(Boolean) - .join('\n'); + const sortedTokens = sortTokens(tokens, tokenGroups, hasParentPrefix, group, sortByNumValue); + + const cssTokens = sortedTokens.map((token) => ({ + css: tokenToCSSByType(token, mappedTokens, tokenGroups, hasParentPrefix), + parentGroupId: token.parentGroupId, + })); + + return addEmptyLineBetweenTokenGroups(cssTokens); }; diff --git a/exporters/variables-scss/src/generators/cssObjectGenerator.ts b/exporters/variables-scss/src/generators/cssObjectGenerator.ts index a29dcb0a5e..bb46117721 100644 --- a/exporters/variables-scss/src/generators/cssObjectGenerator.ts +++ b/exporters/variables-scss/src/generators/cssObjectGenerator.ts @@ -1,26 +1,21 @@ -import { Token, TokenGroup } from '@supernovaio/sdk-exporters'; -import { toPlural } from '../helpers/stringHelper'; +import { Token, TokenGroup, TokenType } from '@supernovaio/sdk-exporters'; import { tokenVariableName } from '../helpers/tokenHelper'; +import { toPlural } from '../helpers/stringHelper'; -export const generateObjectContent = ( - tokens: Array, - tokenGroups: Array, - withParent: boolean, -): string => { - return tokens.reduce((result, token) => { - const name = tokenVariableName(token, tokenGroups, withParent); - const numericPart = name.match(/\d+/)?.[0]; - const prefix = `${token.origin?.name?.split('/')[0].toLowerCase()}-`; - const nonNumericPart = name.replace(prefix, ''); - - if (numericPart) { - result += `${numericPart}: $${name},\n`; - } else if (nonNumericPart) { - result += `${nonNumericPart}: $${name},\n`; - } +export type CssObjectType = { [key: string]: string | object }; + +// TODO : add comments to this function +// Handle invariant token aliases eg radius-full -> full +const invariantTokenAlias: { [key: string]: string } = { + 'radius-full': 'full', +}; + +export const getNonNumericPart = (tokenName: string): string => { + if (invariantTokenAlias[tokenName]) { + return invariantTokenAlias[tokenName]; + } - return result; - }, ''); + return tokenName.toLowerCase(); }; export const generateCssObjectFromTokens = ( @@ -28,24 +23,37 @@ export const generateCssObjectFromTokens = ( mappedTokens: Map, tokenGroups: Array, hasParentPrefix: boolean, -): string => { - const originNameMap = new Map>(); - tokens.forEach((token) => { - const originName = token.origin?.name; - - if (originName) { - const nameParts = originName.split('/'); - nameParts.pop(); - const objectName = toPlural(nameParts.join('-').toLowerCase()); - originNameMap.set(objectName, [...(originNameMap.get(objectName) || []), token]); - } - }); +): CssObjectType => { + // TODO: rename cssObject to cssObjectAcumulator + return tokens.reduce((cssObject, token) => { + const nameParts = token.origin?.name?.split('/'); - return Array.from(originNameMap.entries()) - .map(([objectName, token]) => { - const objectContent = generateObjectContent(token, tokenGroups, hasParentPrefix); + if (nameParts) { + let currentObject: CssObjectType = cssObject; + + nameParts.forEach((part, index) => { + if (index === 0) { + part = token.tokenType === TokenType.color ? `$${part}-colors` : `$${toPlural(part.toLowerCase())}`; + } + if (index === nameParts.length - 1) { + const value = tokenVariableName(token, tokenGroups, hasParentPrefix); + let result; + const numericPart = token.name.match(/\d+/)?.[0]; + const nonNumericPart = getNonNumericPart(token.name); + + if (token.tokenType !== TokenType.color && numericPart) { + result = numericPart; + } else { + result = nonNumericPart; + } + currentObject[result] = `$${value}`; + } else { + currentObject[part] = currentObject[part] || {}; + currentObject = currentObject[part] as CssObjectType; + } + }); + } - return objectContent.trim() && `$${objectName}: (\n${objectContent}) !default;\n\n`; - }) - .join(''); + return cssObject; + }, {}); }; diff --git a/exporters/variables-scss/src/generators/fileGenerator.ts b/exporters/variables-scss/src/generators/fileGenerator.ts index 7ae08d9d25..05657170bc 100644 --- a/exporters/variables-scss/src/generators/fileGenerator.ts +++ b/exporters/variables-scss/src/generators/fileGenerator.ts @@ -1,34 +1,46 @@ import { TokenGroup, Token, TokenType } from '@supernovaio/sdk-exporters'; import { generateFileContent } from './contentGenerator'; -const filesData = [ +export type FileData = { + fileName: string; + tokenTypes: TokenType[]; + groupNames: string[]; + withCssObject?: boolean; + hasParentPrefix?: boolean; + sortByNumValue?: boolean; +}; + +const filesData: FileData[] = [ { fileName: '_borders.scss', tokenTypes: [TokenType.dimension], groupNames: ['Border'], withCssObject: false, - hasParentPrefix: true, + sortByNumValue: true, }, { fileName: '_other.scss', tokenTypes: [TokenType.dimension, TokenType.string], groupNames: ['Grid', 'Container', 'Breakpoint'], - withCssObject: true, - hasParentPrefix: true, }, { fileName: '_radii.scss', tokenTypes: [TokenType.dimension], groupNames: ['Radius'], - withCssObject: true, hasParentPrefix: false, + sortByNumValue: true, }, { fileName: '_spacing.scss', tokenTypes: [TokenType.dimension], groupNames: ['Spacing'], - withCssObject: true, hasParentPrefix: false, + sortByNumValue: true, + }, + { + fileName: '_colors.scss', + tokenTypes: [TokenType.color], + groupNames: [''], }, ]; @@ -37,20 +49,24 @@ export const generateFiles = ( mappedTokens: Map, tokenGroups: Array, ) => { - return filesData.map(({ fileName, tokenTypes, groupNames, withCssObject, hasParentPrefix }) => { - const fileContent = generateFileContent( - tokens, - mappedTokens, - tokenGroups, - tokenTypes, - groupNames, - withCssObject, - hasParentPrefix, - ); + return filesData.map( + // TODO: refactor this to use fileData instead of destructuring + ({ fileName, tokenTypes, groupNames, withCssObject = true, hasParentPrefix = true, sortByNumValue = false }) => { + const fileContent = generateFileContent( + tokens, + mappedTokens, + tokenGroups, + tokenTypes, + groupNames, + withCssObject, + hasParentPrefix, + sortByNumValue, + ); - return { - fileName, - ...fileContent, - }; - }); + return { + fileName, + ...fileContent, + }; + }, + ); }; diff --git a/exporters/variables-scss/src/helpers/__tests__/colorHelper.test.ts b/exporters/variables-scss/src/helpers/__tests__/colorHelper.test.ts new file mode 100644 index 0000000000..b63b809b3d --- /dev/null +++ b/exporters/variables-scss/src/helpers/__tests__/colorHelper.test.ts @@ -0,0 +1,44 @@ +import { canHexBeShortened, normalizeColor, shortHex } from '../colorHelper'; + +const dataProviderItems = [ + { + originalColor: 'ffffffff', + expectedColor: '#fff', + }, + { + originalColor: '96969', + expectedColor: '#96969', + }, + { + originalColor: '835ea1', + expectedColor: '#835ea1', + }, + { + originalColor: '00000040', + expectedColor: '#00000040', + }, +]; + +describe('colorHelper', () => { + describe.each(dataProviderItems)('normalizeColor', ({ originalColor, expectedColor }) => { + it('should normalize color', () => { + expect(normalizeColor(originalColor)).toBe(expectedColor); + }); + }); + + describe('canHexBeShortened', () => { + it('should return true if hex can be shortened', () => { + expect(canHexBeShortened('ffffff')).toBe(true); + }); + + it('should return false if hex cannot be shortened', () => { + expect(canHexBeShortened('00000040')).toBe(false); + }); + }); + + describe('shortHex', () => { + it('should shorten hex', () => { + expect(shortHex('ffffff')).toBe('fff'); + }); + }); +}); diff --git a/exporters/variables-scss/src/helpers/__tests__/cssObjectHelper.test.ts b/exporters/variables-scss/src/helpers/__tests__/cssObjectHelper.test.ts new file mode 100644 index 0000000000..78e8f1520b --- /dev/null +++ b/exporters/variables-scss/src/helpers/__tests__/cssObjectHelper.test.ts @@ -0,0 +1,53 @@ +import { convertToScss, deepMergeObjects } from '../cssObjectHelper'; + +const object1 = { + $grids: { + spacing: { + desktop: '$grid-spacing-desktop', + mobile: '$grid-spacing-mobile', + tablet: '$grid-spacing-tablet', + }, + }, +}; + +const object2 = { + $grids: { columns: '$grid-columns' }, +}; + +const mergedObject = { + $grids: { + spacing: { + desktop: '$grid-spacing-desktop', + mobile: '$grid-spacing-mobile', + tablet: '$grid-spacing-tablet', + }, + columns: '$grid-columns', + }, +}; + +const scssObject = `$grids: ( +spacing: ( +desktop: $grid-spacing-desktop, +mobile: $grid-spacing-mobile, +tablet: $grid-spacing-tablet, +), +columns: $grid-columns, +),`; + +describe('cssObjectHelper', () => { + describe('mergeObjects', () => { + it('should merge objects', () => { + const result = deepMergeObjects(object1, object2); + + expect(result).toStrictEqual(mergedObject); + }); + }); + + describe('convertToScss', () => { + it('should convert object to SCSS', () => { + const result = convertToScss(mergedObject); + + expect(result).toBe(scssObject); + }); + }); +}); diff --git a/exporters/variables-scss/src/helpers/__tests__/tokenHelper.test.ts b/exporters/variables-scss/src/helpers/__tests__/tokenHelper.test.ts index 9b7c0af375..b97c646f57 100644 --- a/exporters/variables-scss/src/helpers/__tests__/tokenHelper.test.ts +++ b/exporters/variables-scss/src/helpers/__tests__/tokenHelper.test.ts @@ -1,5 +1,5 @@ import { Token, TokenGroup } from '@supernovaio/sdk-exporters'; -import { formatTokenName, tokenVariableName } from '../tokenHelper'; +import { addEmptyLineBetweenTokenGroups, formatTokenName, sortTokens, tokenVariableName } from '../tokenHelper'; import { exampleMockedGroups, exampleMockedTokens } from '../../formatters/__fixtures__/mockedExampleTokens'; const dataProvider = [ @@ -47,4 +47,32 @@ describe('tokenHelper', () => { expect(result).toBe('$grid-columns: 12 !default;'); }); }); + + describe('sortTokens', () => { + it('should sort tokens by variable name', () => { + const tokens = Array.from(exampleMockedTokens.values()); + const tokenGroups = exampleMockedGroups; + const hasParentPrefix = true; + const group = 'Grid'; + const sortByNumValue = false; + + const result = sortTokens(tokens, tokenGroups, hasParentPrefix, group, sortByNumValue); + + expect(result[0]?.origin?.name).toBe('Grid/Columns'); + expect(result[1]?.origin?.name).toBe('Grid/spacing/desktop'); + }); + }); + + describe('addEmptyLineBetweenTokenGroups', () => { + it('should add empty line between token groups', () => { + const cssTokens = [ + { css: '$grid-columns: 12 !default;', parentGroupId: '1' }, + { css: '$grid-spacing-desktop: 32px !default;', parentGroupId: '2' }, + ]; + + const result = addEmptyLineBetweenTokenGroups(cssTokens); + + expect(result).toBe('$grid-columns: 12 !default;\n\n$grid-spacing-desktop: 32px !default;'); + }); + }); }); diff --git a/exporters/variables-scss/src/helpers/colorHelper.ts b/exporters/variables-scss/src/helpers/colorHelper.ts new file mode 100644 index 0000000000..7f71316500 --- /dev/null +++ b/exporters/variables-scss/src/helpers/colorHelper.ts @@ -0,0 +1,40 @@ +const SHORT_HEX_WITHOUT_ALPHA_LENGTH = 3; +const SHORT_HEX_WITH_ALPHA_LENGTH = 4; +const LONG_HEX_WITH_ALPHA_LENGTH = 8; + +export const canHexBeShortened = (hex: string) => { + return hex.length % 2 === 0 && hex.split('').every((ch, i, arr) => (i % 2 === 0 ? ch === arr[i + 1] : true)); +}; + +export const shortHex = (hex: string): string => { + return hex + .split('') + .map((char, index) => (index % 2 === 0 ? char : '')) + .join(''); +}; + +export const normalizeColor = (hexCode: string): string => { + const isShortHex = [SHORT_HEX_WITHOUT_ALPHA_LENGTH, SHORT_HEX_WITH_ALPHA_LENGTH].includes(hexCode.length); + + let processedHex; + + if (isShortHex) { + processedHex = hexCode; + } else if (canHexBeShortened(hexCode)) { + processedHex = shortHex(hexCode); + } else { + processedHex = hexCode; + } + + // Remove alpha channel if it's 255 aka ff + if (processedHex.length === LONG_HEX_WITH_ALPHA_LENGTH && processedHex.endsWith('ff')) { + return `#${processedHex.slice(0, -2)}`; + } + + // Remove alpha channel if it's 255 aka f (in short form) + if (processedHex.length === SHORT_HEX_WITH_ALPHA_LENGTH && processedHex.endsWith('f')) { + return `#${processedHex.slice(0, -1)}`; + } + + return `#${processedHex}`; +}; diff --git a/exporters/variables-scss/src/helpers/cssObjectHelper.ts b/exporters/variables-scss/src/helpers/cssObjectHelper.ts new file mode 100644 index 0000000000..b7255dec43 --- /dev/null +++ b/exporters/variables-scss/src/helpers/cssObjectHelper.ts @@ -0,0 +1,31 @@ +import { CssObjectType } from '../generators/cssObjectGenerator'; + +export const deepMergeObjects = (obj1: CssObjectType, obj2: CssObjectType): CssObjectType => { + return Object.entries(obj2).reduce( + (result, [key, value]) => { + if (typeof value === 'object' && value !== null && typeof result[key] === 'object') { + result[key] = deepMergeObjects(result[key] as CssObjectType, value as CssObjectType); + } else { + result[key] = value; + } + + return result; + }, + { ...obj1 }, + ); +}; + +export function convertToScss(obj: CssObjectType): string { + return Object.entries(obj) + .map(([key, value]) => { + if (typeof value === 'object' && value !== null) { + const nestedScss = convertToScss(value as CssObjectType); + + return `${key}: (\n${nestedScss}\n),\n`; + } + + return `${key}: ${value},\n`; + }) + .join('') + .slice(0, -1); +} diff --git a/exporters/variables-scss/src/helpers/tokenHelper.ts b/exporters/variables-scss/src/helpers/tokenHelper.ts index 77b737aab9..9351a73b86 100644 --- a/exporters/variables-scss/src/helpers/tokenHelper.ts +++ b/exporters/variables-scss/src/helpers/tokenHelper.ts @@ -19,3 +19,48 @@ export const formatTokenName = (name: string, value: string | number, unit?: str return `$${name}: ${value} !default;`; }; + +export const sortTokens = ( + tokens: Token[], + tokenGroups: Array, + hasParentPrefix: boolean, + group: string, + sortByNumValue: boolean, +) => { + const sortedTokens = tokens.sort((a, b) => { + if (sortByNumValue) { + const aNumMatch = a.name.match(/\d+$/); + const bNumMatch = b.name.match(/\d+$/); + + if (aNumMatch && bNumMatch) { + return parseInt(aNumMatch[0], 10) - parseInt(bNumMatch[0], 10); + } + } + + const aCompare = tokenVariableName(a, tokenGroups, hasParentPrefix); + const bCompare = tokenVariableName(b, tokenGroups, hasParentPrefix); + + return aCompare.localeCompare(bCompare); + }); + + return sortedTokens; +}; + +export const addEmptyLineBetweenTokenGroups = (cssTokens: { css: string | null; parentGroupId: string }[]): string => { + let lastGroupId: string | null = null; + const cssWithGroupSpacing: string[] = []; + + cssTokens.forEach(({ css, parentGroupId }) => { + if (lastGroupId && parentGroupId !== lastGroupId && css) { + cssWithGroupSpacing.push(''); + } + + if (css) { + cssWithGroupSpacing.push(css); + } + + lastGroupId = parentGroupId; + }); + + return cssWithGroupSpacing.join('\n'); +}; diff --git a/exporters/variables-scss/src/index.ts b/exporters/variables-scss/src/index.ts index 5ddac1887c..ff61c8a66c 100644 --- a/exporters/variables-scss/src/index.ts +++ b/exporters/variables-scss/src/index.ts @@ -53,27 +53,35 @@ Pulsar.export(async (sdk: Supernova, context: PulsarContext): Promise { + let cache: string[] | null = []; + const str = JSON.stringify( + obj, + (key, value) => { + if (typeof value === 'object' && value !== null) { + if (cache?.includes(value)) { + return 'CIRCULAR_REFERENCE'; + } + cache?.push(value); + } + + return value; + }, + 2, + ); + cache = null; + + return str; + }; + return [ ...files.map((file) => { return createTextFile('./global/', file.fileName, file.content); }), - // only for debugging purposes - createTextFile( - './original-data/', - '_original-tokens.json', - JSON.stringify( - tokens.map((token) => ({ - tokenType: token.tokenType, - // @ts-ignore-next-line - origin: token.origin.name, - name: token.name, - // @ts-ignore-next-line - value: token.value, - })), - null, - 2, - ), - ), + // TODO: Only for debugging purposes - remove for production! + createTextFile('./original-data/', '_original-tokens.json', safeStringify(tokens)), + // TODO: Only for debugging purposes - remove for production! createTextFile('./original-data/', '_original-groups.json', JSON.stringify(tokenGroups, null, 2)), ]; });