"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function vr(n){if(n.__esModule)return n;var a=n.default;if(typeof a=="function"){var s=function i(){return this instanceof i?Reflect.construct(a,arguments,this.constructor):a.apply(this,arguments)};s.prototype=a.prototype}else s={};return Object.defineProperty(s,"__esModule",{value:!0}),Object.keys(n).forEach(function(i){var m=Object.getOwnPropertyDescriptor(n,i);Object.defineProperty(s,i,m.get?m:{enumerable:!0,get:function(){return n[i]}})}),s}var O={},L={},ee;function de(){return ee||(ee=1,function(n){(()=>{var a={4379:(o,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.SupernovaError=void 0;class t extends Error{constructor(c,y,u,p,l,d,g){super(c),this.code=y,this.status=u,this.formErrors=p,this.requestId=l,this.serverTime=d,this.url=g}static fromNetworkResponse(c,y,u){var p,l,d;return new t(c.message,c.errorCode||c.reason||c.label||null,c.code||y,(p=c.formErrors)!==null&&p!==void 0?p:null,(l=c.requestId)!==null&&l!==void 0?l:null,(d=c.serverTime)!==null&&d!==void 0?d:null,u)}static fromNoNetworkResponse(c){return new t("No network or internet unreachable","NO_NETWORK",12163,null,new Date().toISOString(),null,c)}static fromCode(c){return new t(c,c,null,null,null,null,null)}static fromMessage(c){return new t(c,null,null,null,null,null,null)}isFieldErrored(c){return this.formErrors.find(y=>y.key===c)!==void 0}errorForField(c){var y;return(y=this.formErrors.find(u=>u.key===c))!==null&&y!==void 0?y:null}toString(){var c,y,u,p,l,d;return`
    Error thrown: ${this.message}

    Code: ${(c=this.code)!==null&&c!==void 0?c:"-"}

    Status: ${(y=this.status)!==null&&y!==void 0?y:"-"}

    Fields: ${JSON.stringify(this.formErrors,null,2)}

    Request ID: ${(u=this.requestId)!==null&&u!==void 0?u:"-"}

    Server time: ${(p=this.serverTime)!==null&&p!==void 0?p:"-"}

    Network URL: ${(l=this.url)!==null&&l!==void 0?l:"-"}

    Stack: ${(d=this.stack)!==null&&d!==void 0?d:"-"}
    `}toHumanReadable(){return`${this.message}${this.requestId?` (request ${this.requestId})`:""}`}}r.SupernovaError=t},9932:(o,r)=>{var t;Object.defineProperty(r,"__esModule",{value:!0}),r.docsImageRefToUrl=r.DocsImageRefType=void 0,function(e){e.resource="Resource",e.figmaNode="FigmaNode"}(t||(r.DocsImageRefType=t={})),r.docsImageRefToUrl=function(e,c,y){var u;if(e)switch(e.type){case t.resource:return(u=e.resource)===null||u===void 0?void 0:u.url;case t.figmaNode:return!e.figmaNode||!e.figmaNode.sourceId||!e.figmaNode.frameReferenceId?void 0:c.resources.getFigmaFrameHostedUrl({designSystemId:y.dsId,versionId:y.versionId},e.figmaNode.frameReferenceId);default:return}}},5673:(o,r)=>{var t;function e(c){switch(c.type){case t.documentationItem:return`@page:${c.documentationItemId}`;case t.pageHeading:return`@page:${c.documentationItemId}#${c.pageHeadingId}`;case t.url:return c.url;default:return}}Object.defineProperty(r,"__esModule",{value:!0}),r.linkAttributeToDocsLink=r.docsLinkToLinkAttributes=r.docsLinkToUrl=r.DocsLinkRefType=void 0,function(c){c.documentationItem="DocumentationItem",c.pageHeading="PageHeading",c.url="Url"}(t||(r.DocsLinkRefType=t={})),r.docsLinkToUrl=e,r.docsLinkToLinkAttributes=function(c){const y=e(c);if(y)return{href:y,target:c.openInNewTab?"_blank":"_self"}},r.linkAttributeToDocsLink=function(c,y){if(!c)return;const u=y==="_blank";if(c.startsWith("@page:")){if(c.includes("#")){const[p,l]=c.replace("@page:","").split("#");return{type:t.pageHeading,documentationItemId:p,pageHeadingId:l,openInNewTab:u}}return{type:t.documentationItem,documentationItemId:c.replace("@page:",""),openInNewTab:u}}return{type:t.url,url:c,openInNewTab:u}}},2657:(o,r)=>{var t;Object.defineProperty(r,"__esModule",{value:!0}),r.DocumentationLegacyPageBlockShortcut=r.DocumentationLegacyPageBlockShortcutType=void 0,function(e){e.external="External",e.internal="Internal"}(t||(r.DocumentationLegacyPageBlockShortcutType=t={})),r.DocumentationLegacyPageBlockShortcut=class{constructor(e){var c;e.url?this.type=t.external:this.type=t.internal,this.title=this.shortcutTitleFromModel(e,this.type),this.description=this.shortcutDescriptionFromModel(e,this.type),this.previewUrl=this.shortcutPreviewUrlFromModel(e),this.type===t.internal&&(!((c=e.documentationItemPreview)===null||c===void 0)&&c.valid)&&e.documentationItemId?this.internalId=e.documentationItemId:(this.internalId=null,this.type===t.external&&e.url?this.externalUrl=e.url:this.externalUrl=null)}shortcutTitleFromModel(e,c){var y,u,p,l,d;let g=null;return e.title&&e.title.trim().length>0?g=e.title:c===t.internal?g=(u=(y=e.documentationItemPreview)===null||y===void 0?void 0:y.title)!==null&&u!==void 0?u:null:c===t.external&&(g=(d=(l=(p=e.urlPreview)===null||p===void 0?void 0:p.title)!==null&&l!==void 0?l:e.url)!==null&&d!==void 0?d:null),g&&g.trim().length!==0?g:null}shortcutDescriptionFromModel(e,c){var y;let u=null;return e.description&&e.description.trim().length>0?u=e.description:c===t.external&&(u=(y=e.urlPreview)===null||y===void 0?void 0:y.description),u&&u.trim().length!==0?u:null}shortcutPreviewUrlFromModel(e){var c,y,u,p,l;return(l=(u=(c=e.assetUrl)!==null&&c!==void 0?c:(y=e.asset)===null||y===void 0?void 0:y.url)!==null&&u!==void 0?u:(p=e.urlPreview)===null||p===void 0?void 0:p.thumbnailUrl)!==null&&l!==void 0?l:null}}},7476:(o,r)=>{var t,e;Object.defineProperty(r,"__esModule",{value:!0}),r.TextAlignment=r.Alignment=void 0,function(c){c.left="Left",c.center="Center",c.stretch="Stretch"}(t||(r.Alignment=t={})),function(c){c.left="Left",c.center="Center",c.right="Right"}(e||(r.TextAlignment=e={}))},8738:(o,r)=>{var t;Object.defineProperty(r,"__esModule",{value:!0}),r.AssetFormat=void 0,function(e){e.png="png",e.pdf="pdf",e.svg="svg"}(t||(r.AssetFormat=t={}))},915:(o,r)=>{var t;Object.defineProperty(r,"__esModule",{value:!0}),r.AssetScale=void 0,function(e){e.x1="x1",e.x2="x2",e.x3="x3",e.x4="x4"}(t||(r.AssetScale=t={}))},899:(o,r)=>{var t;Object.defineProperty(r,"__esModule",{value:!0}),r.AssetScaleType=void 0,function(e){e.aspectFill="AspectFill",e.aspectFit="AspectFit"}(t||(r.AssetScaleType=t={}))},6192:(o,r)=>{var t;Object.defineProperty(r,"__esModule",{value:!0}),r.BlurType=void 0,function(e){e.layer="Layer",e.background="Background"}(t||(r.BlurType=t={}))},1160:(o,r)=>{var t;Object.defineProperty(r,"__esModule",{value:!0}),r.ALL_BORDER_POSITIONS=r.BorderPosition=void 0,function(e){e.inside="Inside",e.center="Center",e.outside="Outside"}(t||(r.BorderPosition=t={})),r.ALL_BORDER_POSITIONS=[t.inside,t.center,t.outside]},4546:(o,r)=>{var t;Object.defineProperty(r,"__esModule",{value:!0}),r.ALL_BORDER_STYLES=r.BorderStyle=void 0,function(e){e.dashed="Dashed",e.dotted="Dotted",e.solid="Solid",e.groove="Groove"}(t||(r.BorderStyle=t={})),r.ALL_BORDER_STYLES=[t.dashed,t.dotted,t.solid,t.groove]},8042:(o,r)=>{var t;Object.defineProperty(r,"__esModule",{value:!0}),r.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"}(t||(r.ImportWarningType=t={}))},5695:(o,r)=>{var t;Object.defineProperty(r,"__esModule",{value:!0}),r.CustomDomainErrorCode=void 0,function(e){e.generalError="GeneralError",e.dnsNotConfigured="DNSNotConfigured",e.maintenance="Maintenance"}(t||(r.CustomDomainErrorCode=t={}))},7737:(o,r)=>{var t;Object.defineProperty(r,"__esModule",{value:!0}),r.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"}(t||(r.CustomDomainState=t={}))},5651:(o,r)=>{var t;Object.defineProperty(r,"__esModule",{value:!0}),r.DocsBlockBehaviorDataType=void 0,function(e){e.item="Item",e.token="Token",e.asset="Asset",e.component="Component",e.figmaNode="FigmaNode",e.figmaComponent="FigmaComponent"}(t||(r.DocsBlockBehaviorDataType=t={}))},3733:(o,r)=>{var t;Object.defineProperty(r,"__esModule",{value:!0}),r.DocsBlockBehaviorSelectionType=void 0,function(e){e.entity="Entity",e.group="Group",e.entityAndGroup="EntityAndGroup"}(t||(r.DocsBlockBehaviorSelectionType=t={}))},8890:(o,r)=>{var t;Object.defineProperty(r,"__esModule",{value:!0}),r.DocsBlockImagePropertyAspectRatio=void 0,function(e){e.auto="Auto",e.square="Square",e.landscape="Landscape",e.portrait="Portrait",e.wide="Wide"}(t||(r.DocsBlockImagePropertyAspectRatio=t={}))},9377:(o,r)=>{var t;Object.defineProperty(r,"__esModule",{value:!0}),r.DocsBlockItemEntityType=void 0,function(e){e.token="Token",e.tokenGroup="TokenGroup",e.asset="Asset",e.assetGroup="AssetGroup",e.component="Component",e.componentGroup="ComponentGroup"}(t||(r.DocsBlockItemEntityType=t={}))},5883:(o,r)=>{var t;Object.defineProperty(r,"__esModule",{value:!0}),r.DocsBlockItemPropertyOptionRenderingStyle=void 0,function(e){e.segmentedControl="SegmentedControl",e.toggleButton="ToggleButton",e.select="Select",e.checkbox="Checkbox"}(t||(r.DocsBlockItemPropertyOptionRenderingStyle=t={}))},8061:(o,r)=>{var t;Object.defineProperty(r,"__esModule",{value:!0}),r.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"}(t||(r.DocsBlockItemPropertyRichTextStyle=t={}))},7479:(o,r)=>{var t;Object.defineProperty(r,"__esModule",{value:!0}),r.DocsBlockItemPropertyTextStyle=void 0,function(e){e.small="Small",e.regular="Regular",e.bold="Bold"}(t||(r.DocsBlockItemPropertyTextStyle=t={}))},6839:(o,r)=>{var t;Object.defineProperty(r,"__esModule",{value:!0}),r.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"}(t||(r.DocsBlockItemPropertyType=t={}))},8095:(o,r)=>{var t;Object.defineProperty(r,"__esModule",{value:!0}),r.DocsBlockItemVariantLayoutType=void 0,function(e){e.column="Column",e.row="Row"}(t||(r.DocsBlockItemVariantLayoutType=t={}))},7291:(o,r)=>{var t;Object.defineProperty(r,"__esModule",{value:!0}),r.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"}(t||(r.DocsBlockItemVariantLayoutWidth=t={}))},9133:(o,r)=>{var t;Object.defineProperty(r,"__esModule",{value:!0}),r.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"}(t||(r.DocsBlockOptionColor=t={}))},5963:(o,r)=>{var t;Object.defineProperty(r,"__esModule",{value:!0}),r.DocsBlockOptionRenderingStyle=void 0,function(e){e.segmentedControl="SegmentedControl",e.toggleButton="ToggleButton",e.select="Select",e.checkbox="Checkbox"}(t||(r.DocsBlockOptionRenderingStyle=t={}))},6644:(o,r)=>{var t;Object.defineProperty(r,"__esModule",{value:!0}),r.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"}(t||(r.DocsBlockRichTextPropertyStyle=t={}))},306:(o,r)=>{var t;Object.defineProperty(r,"__esModule",{value:!0}),r.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"}(t||(r.DocsBlockTextPropertyStyle=t={}))},4068:(o,r)=>{var t;Object.defineProperty(r,"__esModule",{value:!0}),r.DocsEntityGroupBehavior=void 0,function(e){e.group="Group",e.tabs="Tabs"}(t||(r.DocsEntityGroupBehavior=t={}))},1233:(o,r)=>{var t;Object.defineProperty(r,"__esModule",{value:!0}),r.DocsEntityType=void 0,function(e){e.group="Group",e.page="Page"}(t||(r.DocsEntityType=t={}))},7971:(o,r)=>{var t;Object.defineProperty(r,"__esModule",{value:!0}),r.DocsSectionType=void 0,function(e){e.plain="Plain",e.tabs="Tabs"}(t||(r.DocsSectionType=t={}))},5102:(o,r)=>{var t;Object.defineProperty(r,"__esModule",{value:!0}),r.DocumentationLegacyCalloutType=void 0,function(e){e.info="Info",e.success="Success",e.warning="Warning",e.error="Error"}(t||(r.DocumentationLegacyCalloutType=t={}))},2123:(o,r)=>{var t;Object.defineProperty(r,"__esModule",{value:!0}),r.DocumentationLegacyGroupBehavior=void 0,function(e){e.group="Group",e.tabs="Tabs"}(t||(r.DocumentationLegacyGroupBehavior=t={}))},9896:(o,r)=>{var t;Object.defineProperty(r,"__esModule",{value:!0}),r.DocumentationLegacyHeadingType=void 0,function(e){e[e.h1=1]="h1",e[e.h2=2]="h2",e[e.h3=3]="h3"}(t||(r.DocumentationLegacyHeadingType=t={}))},7379:(o,r)=>{var t;Object.defineProperty(r,"__esModule",{value:!0}),r.DocumentationLegacyItemType=void 0,function(e){e.group="Group",e.page="Page"}(t||(r.DocumentationLegacyItemType=t={}))},1423:(o,r)=>{var t;Object.defineProperty(r,"__esModule",{value:!0}),r.DocumentationLegacyPageAssetType=void 0,function(e){e.image="image",e.figmaFrame="figmaFrame"}(t||(r.DocumentationLegacyPageAssetType=t={}))},1601:(o,r)=>{var t;Object.defineProperty(r,"__esModule",{value:!0}),r.DocumentationLegacyPageBlockThemeType=void 0,function(e){e.override="Override",e.comparison="Comparison"}(t||(r.DocumentationLegacyPageBlockThemeType=t={}))},1846:(o,r)=>{var t;Object.defineProperty(r,"__esModule",{value:!0}),r.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"}(t||(r.DocumentationLegacyPageBlockType=t={}))},1255:(o,r)=>{var t;Object.defineProperty(r,"__esModule",{value:!0}),r.FrameAlignment=void 0,function(e){e.frameHeight="FrameHeight",e.center="Center"}(t||(r.FrameAlignment=t={}))},3718:(o,r)=>{var t;Object.defineProperty(r,"__esModule",{value:!0}),r.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"}(t||(r.FrameLayout=t={}))},1:(o,r)=>{var t;Object.defineProperty(r,"__esModule",{value:!0}),r.GradientType=void 0,function(e){e.linear="Linear",e.radial="Radial",e.angular="Angular"}(t||(r.GradientType=t={}))},934:(o,r)=>{var t;Object.defineProperty(r,"__esModule",{value:!0}),r.IconSet=void 0,function(e){e.checkCircle="CheckCircle",e.crossCircle="CrossCircle",e.alert="Alert"}(t||(r.IconSet=t={}))},2674:(o,r)=>{var t;Object.defineProperty(r,"__esModule",{value:!0}),r.RichTextSpanAttributeType=void 0,function(e){e.bold="Bold",e.italic="Italic",e.link="Link",e.strikethrough="Strikethrough",e.code="Code"}(t||(r.RichTextSpanAttributeType=t={}))},9125:(o,r)=>{var t;Object.defineProperty(r,"__esModule",{value:!0}),r.ShadowType=void 0,function(e){e.drop="Drop",e.inner="Inner"}(t||(r.ShadowType=t={}))},4652:(o,r)=>{var t;Object.defineProperty(r,"__esModule",{value:!0}),r.SourceType=void 0,function(e){e.figma="Figma",e.tokenStudio="TokenStudio",e.figmaVariablesPlugin="FigmaVariablesPlugin"}(t||(r.SourceType=t={}))},922:(o,r)=>{var t;Object.defineProperty(r,"__esModule",{value:!0}),r.TextCase=void 0,function(e){e.original="Original",e.upper="Upper",e.lower="Lower",e.camel="Camel",e.smallCaps="SmallCaps"}(t||(r.TextCase=t={}))},7040:(o,r)=>{var t;Object.defineProperty(r,"__esModule",{value:!0}),r.TextDecoration=void 0,function(e){e.original="None",e.underline="Underline",e.strikethrough="Strikethrough"}(t||(r.TextDecoration=t={}))},3788:(o,r)=>{var t;Object.defineProperty(r,"__esModule",{value:!0}),r.DT_TOKEN_TYPES=r.tokenTypeIsReferencable=r.REFERENCABLE_TOKEN_TYPES=r.REPLACABLE_TOKEN_TYPES=r.tokenTypeIsNonPure=r.tokenTypeIsPure=r.PURE_TOKEN_TYPES=r.ALL_TOKEN_TYPES=r.MS_DIMENSION_TOKEN_TYPES=r.RAW_DIMENSION_TOKEN_TYPES=r.DIMENSION_TOKEN_TYPES=r.OPTION_TOKEN_TYPES=r.STRING_TOKEN_TYPES=r.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"}(t||(r.TokenType=t={})),r.STRING_TOKEN_TYPES=[t.string,t.productCopy,t.fontFamily,t.fontWeight],r.OPTION_TOKEN_TYPES=[t.textCase,t.textDecoration,t.visibility],r.DIMENSION_TOKEN_TYPES=[t.dimension,t.size,t.space,t.opacity,t.fontSize,t.lineHeight,t.letterSpacing,t.paragraphSpacing,t.borderWidth,t.radius,t.duration,t.zIndex],r.RAW_DIMENSION_TOKEN_TYPES=[t.opacity,t.zIndex],r.MS_DIMENSION_TOKEN_TYPES=[t.duration],r.ALL_TOKEN_TYPES=[...r.DIMENSION_TOKEN_TYPES,...r.STRING_TOKEN_TYPES,...r.OPTION_TOKEN_TYPES,t.color,t.gradient,t.border,t.radius,t.shadow,t.typography,t.blur],r.PURE_TOKEN_TYPES=[...r.DIMENSION_TOKEN_TYPES,...r.STRING_TOKEN_TYPES,...r.OPTION_TOKEN_TYPES],r.tokenTypeIsPure=e=>r.PURE_TOKEN_TYPES.includes(e),r.tokenTypeIsNonPure=e=>!(0,r.tokenTypeIsPure)(e),r.REPLACABLE_TOKEN_TYPES=[t.color,...r.DIMENSION_TOKEN_TYPES,...r.STRING_TOKEN_TYPES,...r.OPTION_TOKEN_TYPES],r.REFERENCABLE_TOKEN_TYPES=[t.color,...r.DIMENSION_TOKEN_TYPES,t.fontFamily,t.fontWeight,t.textCase,t.textDecoration],r.tokenTypeIsReferencable=e=>r.REFERENCABLE_TOKEN_TYPES.includes(e),r.DT_TOKEN_TYPES=[t.color,t.shadow,t.gradient,t.typography,t.border,...r.DIMENSION_TOKEN_TYPES,t.fontFamily,t.fontWeight,t.string,...r.OPTION_TOKEN_TYPES]},8607:(o,r)=>{var t;Object.defineProperty(r,"__esModule",{value:!0}),r.MS_UNITS=r.PX_UNITS=r.RAW_UNITS=r.LINE_HEIGHT_UNITS=r.SIZE_UNITS=r.Unit=void 0,function(e){e.pixels="Pixels",e.percent="Percent",e.rem="Rem",e.ms="Ms",e.raw="Raw"}(t||(r.Unit=t={})),r.SIZE_UNITS=[t.pixels,t.percent,t.rem],r.LINE_HEIGHT_UNITS=[t.pixels,t.percent,t.rem,t.raw],r.RAW_UNITS=[t.raw],r.PX_UNITS=[t.pixels],r.MS_UNITS=[t.ms]},9478:(o,r,t)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.convertRemoteToUserRole=r.UserRole=void 0;const e=t(4379);var c;(function(y){y.owner="Owner",y.admin="Admin",y.creator="Creator",y.contributor="Contributor",y.billing="Billing",y.viewer="Viewer"})(c||(r.UserRole=c={})),r.convertRemoteToUserRole=y=>{switch(y){case"Owner":return c.owner;case"Admin":return c.admin;case"Creator":return c.creator;case"Contributor":return c.contributor;case"Billing":return c.billing;case"Viewer":return c.viewer;default:throw e.SupernovaError.fromMessage(`Unknown role: ${y}`)}}},6141:(o,r)=>{var t;Object.defineProperty(r,"__esModule",{value:!0}),r.VisibilityType=void 0,function(e){e.visible="Visible",e.hidden="Hidden"}(t||(r.VisibilityType=t={}))},6298:(o,r)=>{var t;Object.defineProperty(r,"__esModule",{value:!0}),r.WorkspaceNPMRegistryAuthType=void 0,function(e){e.basic="Basic",e.bearer="Bearer"}(t||(r.WorkspaceNPMRegistryAuthType=t={}))},7968:(o,r)=>{var t;Object.defineProperty(r,"__esModule",{value:!0}),r.WorkspaceNPMRegistryType=void 0,function(e){e.npmJS="NPMJS",e.gitHub="GitHub",e.azureDevOps="AzureDevOps",e.artifactory="Artifactory",e.custom="Custom"}(t||(r.WorkspaceNPMRegistryType=t={}))},5503:(o,r)=>{var t;Object.defineProperty(r,"__esModule",{value:!0}),r.WorkspaceSubscriptionPlanInterval=void 0,function(e){e.yearly="yearly",e.monthly="monthly"}(t||(r.WorkspaceSubscriptionPlanInterval=t={}))},4290:(o,r)=>{var t;Object.defineProperty(r,"__esModule",{value:!0}),r.WorkspaceSubscriptionProductCode=void 0,function(e){e.free="free",e.team="team",e.teamTest="team_test",e.company="company",e.enterprise="enterprise"}(t||(r.WorkspaceSubscriptionProductCode=t={}))},3607:(o,r)=>{var t;Object.defineProperty(r,"__esModule",{value:!0}),r.WorkspaceSubscriptionStatus=void 0,function(e){e.active="active",e.gracePeriod="gracePeriod",e.cancelled="cancelled",e.suspended="suspended"}(t||(r.WorkspaceSubscriptionStatus=t={}))},2802:(o,r)=>{var t,e;Object.defineProperty(r,"__esModule",{value:!0}),r.PulsarExecutor=r.OutputFileType=void 0,function(c){c.copyRemoteUrl="copyRemoteUrl",c.text="text",c.binary="binary"}(t||(r.OutputFileType=t={})),function(c){c.supernova="supernova",c.local="local"}(e||(r.PulsarExecutor=e={}))}},s={};function i(o){var r=s[o];if(r!==void 0)return r.exports;var t=s[o]={exports:{}};return a[o](t,t.exports,i),t.exports}var m={};(()=>{var o=m;Object.defineProperty(o,"__esModule",{value:!0}),o.TokenType=o.TextDecoration=o.TextCase=o.ShadowType=o.RichTextSpanAttributeType=o.GradientType=o.FrameLayout=o.FrameAlignment=o.IconSet=o.SourceType=o.DocsImageRefType=o.DocsLinkRefType=o.DocsSectionType=o.DocsEntityType=o.DocsEntityGroupBehavior=o.DocsBlockTextPropertyStyle=o.DocsBlockRichTextPropertyStyle=o.DocsBlockOptionColor=o.DocsBlockOptionRenderingStyle=o.DocsBlockItemVariantLayoutWidth=o.DocsBlockItemVariantLayoutType=o.DocsBlockItemPropertyType=o.DocsBlockItemPropertyTextStyle=o.DocsBlockItemPropertyRichTextStyle=o.DocsBlockItemPropertyOptionRenderingStyle=o.DocsBlockItemEntityType=o.DocsBlockImagePropertyAspectRatio=o.DocsBlockBehaviorSelectionType=o.DocsBlockBehaviorDataType=o.DocumentationLegacyPageBlockShortcutType=o.DocumentationLegacyPageBlockThemeType=o.DocumentationLegacyPageBlockType=o.DocumentationLegacyPageAssetType=o.DocumentationLegacyItemType=o.DocumentationLegacyHeadingType=o.DocumentationLegacyGroupBehavior=o.DocumentationLegacyCalloutType=o.BorderStyle=o.BorderPosition=o.BlurType=o.AssetScaleType=o.AssetScale=o.AssetFormat=o.Alignment=o.ALL_TOKEN_TYPES=o.ALL_BORDER_STYLES=o.ALL_BORDER_POSITIONS=o.OPTION_TOKEN_TYPES=o.STRING_TOKEN_TYPES=o.DIMENSION_TOKEN_TYPES=void 0,o.PulsarExecutor=o.OutputFileType=o.CustomDomainState=o.CustomDomainErrorCode=o.ImportWarningType=o.WorkspaceNPMRegistryType=o.WorkspaceNPMRegistryAuthType=o.WorkspaceSubscriptionStatus=o.WorkspaceSubscriptionProductCode=o.WorkspaceSubscriptionPlanInterval=o.VisibilityType=o.UserRole=o.Unit=void 0;var r=i(3788);Object.defineProperty(o,"DIMENSION_TOKEN_TYPES",{enumerable:!0,get:function(){return r.DIMENSION_TOKEN_TYPES}}),Object.defineProperty(o,"STRING_TOKEN_TYPES",{enumerable:!0,get:function(){return r.STRING_TOKEN_TYPES}}),Object.defineProperty(o,"OPTION_TOKEN_TYPES",{enumerable:!0,get:function(){return r.OPTION_TOKEN_TYPES}});var t=i(1160);Object.defineProperty(o,"ALL_BORDER_POSITIONS",{enumerable:!0,get:function(){return t.ALL_BORDER_POSITIONS}});var e=i(4546);Object.defineProperty(o,"ALL_BORDER_STYLES",{enumerable:!0,get:function(){return e.ALL_BORDER_STYLES}});var c=i(3788);Object.defineProperty(o,"ALL_TOKEN_TYPES",{enumerable:!0,get:function(){return c.ALL_TOKEN_TYPES}});var y=i(7476);Object.defineProperty(o,"Alignment",{enumerable:!0,get:function(){return y.Alignment}});var u=i(8738);Object.defineProperty(o,"AssetFormat",{enumerable:!0,get:function(){return u.AssetFormat}});var p=i(915);Object.defineProperty(o,"AssetScale",{enumerable:!0,get:function(){return p.AssetScale}});var l=i(899);Object.defineProperty(o,"AssetScaleType",{enumerable:!0,get:function(){return l.AssetScaleType}});var d=i(6192);Object.defineProperty(o,"BlurType",{enumerable:!0,get:function(){return d.BlurType}});var g=i(1160);Object.defineProperty(o,"BorderPosition",{enumerable:!0,get:function(){return g.BorderPosition}});var S=i(4546);Object.defineProperty(o,"BorderStyle",{enumerable:!0,get:function(){return S.BorderStyle}});var b=i(5102);Object.defineProperty(o,"DocumentationLegacyCalloutType",{enumerable:!0,get:function(){return b.DocumentationLegacyCalloutType}});var v=i(2123);Object.defineProperty(o,"DocumentationLegacyGroupBehavior",{enumerable:!0,get:function(){return v.DocumentationLegacyGroupBehavior}});var h=i(9896);Object.defineProperty(o,"DocumentationLegacyHeadingType",{enumerable:!0,get:function(){return h.DocumentationLegacyHeadingType}});var C=i(7379);Object.defineProperty(o,"DocumentationLegacyItemType",{enumerable:!0,get:function(){return C.DocumentationLegacyItemType}});var $=i(1423);Object.defineProperty(o,"DocumentationLegacyPageAssetType",{enumerable:!0,get:function(){return $.DocumentationLegacyPageAssetType}});var N=i(1846);Object.defineProperty(o,"DocumentationLegacyPageBlockType",{enumerable:!0,get:function(){return N.DocumentationLegacyPageBlockType}});var $e=i(1601);Object.defineProperty(o,"DocumentationLegacyPageBlockThemeType",{enumerable:!0,get:function(){return $e.DocumentationLegacyPageBlockThemeType}});var xe=i(2657);Object.defineProperty(o,"DocumentationLegacyPageBlockShortcutType",{enumerable:!0,get:function(){return xe.DocumentationLegacyPageBlockShortcutType}});var Be=i(5651);Object.defineProperty(o,"DocsBlockBehaviorDataType",{enumerable:!0,get:function(){return Be.DocsBlockBehaviorDataType}});var Fe=i(3733);Object.defineProperty(o,"DocsBlockBehaviorSelectionType",{enumerable:!0,get:function(){return Fe.DocsBlockBehaviorSelectionType}});var we=i(8890);Object.defineProperty(o,"DocsBlockImagePropertyAspectRatio",{enumerable:!0,get:function(){return we.DocsBlockImagePropertyAspectRatio}});var Le=i(9377);Object.defineProperty(o,"DocsBlockItemEntityType",{enumerable:!0,get:function(){return Le.DocsBlockItemEntityType}});var Me=i(5883);Object.defineProperty(o,"DocsBlockItemPropertyOptionRenderingStyle",{enumerable:!0,get:function(){return Me.DocsBlockItemPropertyOptionRenderingStyle}});var Ae=i(8061);Object.defineProperty(o,"DocsBlockItemPropertyRichTextStyle",{enumerable:!0,get:function(){return Ae.DocsBlockItemPropertyRichTextStyle}});var He=i(7479);Object.defineProperty(o,"DocsBlockItemPropertyTextStyle",{enumerable:!0,get:function(){return He.DocsBlockItemPropertyTextStyle}});var Ve=i(6839);Object.defineProperty(o,"DocsBlockItemPropertyType",{enumerable:!0,get:function(){return Ve.DocsBlockItemPropertyType}});var Ue=i(8095);Object.defineProperty(o,"DocsBlockItemVariantLayoutType",{enumerable:!0,get:function(){return Ue.DocsBlockItemVariantLayoutType}});var We=i(7291);Object.defineProperty(o,"DocsBlockItemVariantLayoutWidth",{enumerable:!0,get:function(){return We.DocsBlockItemVariantLayoutWidth}});var Ge=i(5963);Object.defineProperty(o,"DocsBlockOptionRenderingStyle",{enumerable:!0,get:function(){return Ge.DocsBlockOptionRenderingStyle}});var Ye=i(9133);Object.defineProperty(o,"DocsBlockOptionColor",{enumerable:!0,get:function(){return Ye.DocsBlockOptionColor}});var Ke=i(6644);Object.defineProperty(o,"DocsBlockRichTextPropertyStyle",{enumerable:!0,get:function(){return Ke.DocsBlockRichTextPropertyStyle}});var ze=i(306);Object.defineProperty(o,"DocsBlockTextPropertyStyle",{enumerable:!0,get:function(){return ze.DocsBlockTextPropertyStyle}});var qe=i(4068);Object.defineProperty(o,"DocsEntityGroupBehavior",{enumerable:!0,get:function(){return qe.DocsEntityGroupBehavior}});var Xe=i(1233);Object.defineProperty(o,"DocsEntityType",{enumerable:!0,get:function(){return Xe.DocsEntityType}});var Ze=i(7971);Object.defineProperty(o,"DocsSectionType",{enumerable:!0,get:function(){return Ze.DocsSectionType}});var Qe=i(5673);Object.defineProperty(o,"DocsLinkRefType",{enumerable:!0,get:function(){return Qe.DocsLinkRefType}});var Je=i(9932);Object.defineProperty(o,"DocsImageRefType",{enumerable:!0,get:function(){return Je.DocsImageRefType}});var er=i(4652);Object.defineProperty(o,"SourceType",{enumerable:!0,get:function(){return er.SourceType}});var rr=i(934);Object.defineProperty(o,"IconSet",{enumerable:!0,get:function(){return rr.IconSet}});var tr=i(1255);Object.defineProperty(o,"FrameAlignment",{enumerable:!0,get:function(){return tr.FrameAlignment}});var or=i(3718);Object.defineProperty(o,"FrameLayout",{enumerable:!0,get:function(){return or.FrameLayout}});var nr=i(1);Object.defineProperty(o,"GradientType",{enumerable:!0,get:function(){return nr.GradientType}});var ar=i(2674);Object.defineProperty(o,"RichTextSpanAttributeType",{enumerable:!0,get:function(){return ar.RichTextSpanAttributeType}});var ir=i(9125);Object.defineProperty(o,"ShadowType",{enumerable:!0,get:function(){return ir.ShadowType}});var sr=i(922);Object.defineProperty(o,"TextCase",{enumerable:!0,get:function(){return sr.TextCase}});var cr=i(7040);Object.defineProperty(o,"TextDecoration",{enumerable:!0,get:function(){return cr.TextDecoration}});var lr=i(3788);Object.defineProperty(o,"TokenType",{enumerable:!0,get:function(){return lr.TokenType}});var ur=i(8607);Object.defineProperty(o,"Unit",{enumerable:!0,get:function(){return ur.Unit}});var pr=i(9478);Object.defineProperty(o,"UserRole",{enumerable:!0,get:function(){return pr.UserRole}});var dr=i(6141);Object.defineProperty(o,"VisibilityType",{enumerable:!0,get:function(){return dr.VisibilityType}});var Tr=i(5503);Object.defineProperty(o,"WorkspaceSubscriptionPlanInterval",{enumerable:!0,get:function(){return Tr.WorkspaceSubscriptionPlanInterval}});var mr=i(4290);Object.defineProperty(o,"WorkspaceSubscriptionProductCode",{enumerable:!0,get:function(){return mr.WorkspaceSubscriptionProductCode}});var yr=i(3607);Object.defineProperty(o,"WorkspaceSubscriptionStatus",{enumerable:!0,get:function(){return yr.WorkspaceSubscriptionStatus}});var fr=i(6298);Object.defineProperty(o,"WorkspaceNPMRegistryAuthType",{enumerable:!0,get:function(){return fr.WorkspaceNPMRegistryAuthType}});var gr=i(7968);Object.defineProperty(o,"WorkspaceNPMRegistryType",{enumerable:!0,get:function(){return gr.WorkspaceNPMRegistryType}});var Sr=i(8042);Object.defineProperty(o,"ImportWarningType",{enumerable:!0,get:function(){return Sr.ImportWarningType}});var br=i(5695);Object.defineProperty(o,"CustomDomainErrorCode",{enumerable:!0,get:function(){return br.CustomDomainErrorCode}});var hr=i(7737);Object.defineProperty(o,"CustomDomainState",{enumerable:!0,get:function(){return hr.CustomDomainState}});var J=i(2802);Object.defineProperty(o,"OutputFileType",{enumerable:!0,get:function(){return J.OutputFileType}}),Object.defineProperty(o,"PulsarExecutor",{enumerable:!0,get:function(){return J.PulsarExecutor}})})();var T=n;for(var f in m)T[f]=m[f];m.__esModule&&Object.defineProperty(T,"__esModule",{value:!0})})()}(L)),L}var A=function(){return A=Object.assign||function(a){for(var s,i=1,m=arguments.length;i<m;i++){s=arguments[i];for(var T in s)Object.prototype.hasOwnProperty.call(s,T)&&(a[T]=s[T])}return a},A.apply(this,arguments)};var H=function(){return H=Object.assign||function(a){for(var s,i=1,m=arguments.length;i<m;i++){s=arguments[i];for(var T in s)Object.prototype.hasOwnProperty.call(s,T)&&(a[T]=s[T])}return a},H.apply(this,arguments)};function kr(n){return n.toLowerCase()}var Cr=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],Or=/[^A-Z0-9]+/gi;function j(n,a){a===void 0&&(a={});for(var s=a.splitRegexp,i=s===void 0?Cr:s,m=a.stripRegexp,T=m===void 0?Or:m,f=a.transform,o=f===void 0?kr:f,r=a.delimiter,t=r===void 0?" ":r,e=re(re(n,i,"$1\0$2"),T,"\0"),c=0,y=e.length;e.charAt(c)==="\0";)c++;for(;e.charAt(y-1)==="\0";)y--;return e.slice(c,y).split("\0").map(o).join(t)}function re(n,a,s){return a instanceof RegExp?n.replace(a,s):a.reduce(function(i,m){return i.replace(m,s)},n)}function X(n,a){var s=n.charAt(0),i=n.substr(1).toLowerCase();return a>0&&s>="0"&&s<="9"?"_"+s+i:""+s.toUpperCase()+i}function Te(n){return n.charAt(0).toUpperCase()+n.slice(1).toLowerCase()}function me(n,a){return a===void 0&&(a={}),j(n,H({delimiter:"",transform:X},a))}function ye(n,a){return a===0?n.toLowerCase():X(n,a)}function Pr(n,a){return a===0?n.toLowerCase():Te(n)}function _r(n,a){return a===void 0&&(a={}),me(n,A({transform:ye},a))}var V=function(){return V=Object.assign||function(a){for(var s,i=1,m=arguments.length;i<m;i++){s=arguments[i];for(var T in s)Object.prototype.hasOwnProperty.call(s,T)&&(a[T]=s[T])}return a},V.apply(this,arguments)};function fe(n){return n.charAt(0).toUpperCase()+n.substr(1)}function ge(n){return fe(n.toLowerCase())}function Se(n,a){return a===void 0&&(a={}),j(n,V({delimiter:" ",transform:ge},a))}var U=function(){return U=Object.assign||function(a){for(var s,i=1,m=arguments.length;i<m;i++){s=arguments[i];for(var T in s)Object.prototype.hasOwnProperty.call(s,T)&&(a[T]=s[T])}return a},U.apply(this,arguments)};function Er(n){return n.toUpperCase()}function Ir(n,a){return a===void 0&&(a={}),j(n,U({delimiter:"_",transform:Er},a))}var W=function(){return W=Object.assign||function(a){for(var s,i=1,m=arguments.length;i<m;i++){s=arguments[i];for(var T in s)Object.prototype.hasOwnProperty.call(s,T)&&(a[T]=s[T])}return a},W.apply(this,arguments)};function w(n,a){return a===void 0&&(a={}),j(n,W({delimiter:"."},a))}var G=function(){return G=Object.assign||function(a){for(var s,i=1,m=arguments.length;i<m;i++){s=arguments[i];for(var T in s)Object.prototype.hasOwnProperty.call(s,T)&&(a[T]=s[T])}return a},G.apply(this,arguments)};function Nr(n,a){return a===void 0&&(a={}),Se(n,G({delimiter:"-"},a))}var Y=function(){return Y=Object.assign||function(a){for(var s,i=1,m=arguments.length;i<m;i++){s=arguments[i];for(var T in s)Object.prototype.hasOwnProperty.call(s,T)&&(a[T]=s[T])}return a},Y.apply(this,arguments)};function Dr(n,a){return a===void 0&&(a={}),w(n,Y({delimiter:"-"},a))}var K=function(){return K=Object.assign||function(a){for(var s,i=1,m=arguments.length;i<m;i++){s=arguments[i];for(var T in s)Object.prototype.hasOwnProperty.call(s,T)&&(a[T]=s[T])}return a},K.apply(this,arguments)};function Rr(n,a){return a===void 0&&(a={}),w(n,K({delimiter:"/"},a))}var z=function(){return z=Object.assign||function(a){for(var s,i=1,m=arguments.length;i<m;i++){s=arguments[i];for(var T in s)Object.prototype.hasOwnProperty.call(s,T)&&(a[T]=s[T])}return a},z.apply(this,arguments)};function be(n,a){var s=n.toLowerCase();return a===0?fe(s):s}function jr(n,a){return a===void 0&&(a={}),j(n,z({delimiter:" ",transform:be},a))}var q=function(){return q=Object.assign||function(a){for(var s,i=1,m=arguments.length;i<m;i++){s=arguments[i];for(var T in s)Object.prototype.hasOwnProperty.call(s,T)&&(a[T]=s[T])}return a},q.apply(this,arguments)};function $r(n,a){return a===void 0&&(a={}),w(n,q({delimiter:"_"},a))}const xr=Object.freeze(Object.defineProperty({__proto__:null,camelCase:_r,camelCaseTransform:ye,camelCaseTransformMerge:Pr,capitalCase:Se,capitalCaseTransform:ge,constantCase:Ir,dotCase:w,headerCase:Nr,noCase:j,paramCase:Dr,pascalCase:me,pascalCaseTransform:X,pascalCaseTransformMerge:Te,pathCase:Rr,sentenceCase:jr,sentenceCaseTransform:be,snakeCase:$r},Symbol.toStringTag,{value:"Module"})),Br=vr(xr);(function(n){(()=>{var a={639:(o,r,t)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.Iterators=void 0;const e=t(58);r.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:(o,r)=>{var t;Object.defineProperty(r,"__esModule",{value:!0}),r.ColorFormat=void 0,(t=r.ColorFormat||(r.ColorFormat={})).rgb="rgb",t.rgba="rgba",t.smartRgba="smartRgba",t.hex6="hex6",t.hex8="hex8",t.hashHex6="hashHex6",t.hashHex8="hashHex8",t.smartHashHex="smartHashHex",t.smartHex="smartHex",t.hsl="hsl",t.hsla="hsla",t.smartHsla="smartHsla",t.smartUIColor="smartUIColor"},545:(o,r)=>{var t;Object.defineProperty(r,"__esModule",{value:!0}),r.StringCase=void 0,(t=r.StringCase||(r.StringCase={})).camelCase="camelCase",t.capitalCase="capitalCase",t.constantCase="constantCase",t.dotCase="dotCase",t.headerCase="headerCase",t.noCase="noCase",t.paramCase="paramCase",t.pascalCase="pascalCase",t.pathCase="pathCase",t.sentenceCase="sentenceCase",t.snakeCase="snakeCase"},617:(o,r,t)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.FileHelper=void 0;const e=t(58);r.FileHelper=class{static createCopyRemoteFile({relativePath:c,fileName:y,url:u}){return{path:c,name:y,type:e.OutputFileType.copyRemoteUrl,url:u}}static createTextFile({relativePath:c,fileName:y,content:u}){return{path:c,name:y,type:e.OutputFileType.text,content:u}}static createBinaryFile({relativePath:c,fileName:y,data:u}){return{path:c,name:y,type:e.OutputFileType.binary,data:u}}}},761:(o,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.sureOptionalReference=void 0,r.sureOptionalReference=function(t,e,c=!0){if(!t||!c)return null;const y=e.get(t);if(!y)throw new Error(`Trying to retrieve unknown referenced token ${t}`);return y}},118:(o,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.NetworkHelper=void 0,r.NetworkHelper=class{static async fetchAsText(t,e,c){return(await this.performFetch(t,e,c)).text()}static async fetchAsJSON(t,e,c){return(await this.performFetch(t,e,c)).json()}static async fetchAsData(t,e,c){return(await this.performFetch(t,e,c)).arrayBuffer()}static async performFetch(t,e,c){try{const y=await t.network.fetch(e,c);if(!y.ok)throw new Error(`Request failed with status ${y.status}, error: ${await y.text()}`);return y}catch(y){throw y}}}},771:(o,r,t)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.CSSHelper=void 0;const e=t(58),c=t(761),y=t(952);r.CSSHelper=class{static tokenToCSS(u,p,l){switch(u.tokenType){case e.TokenType.color:return this.colorTokenValueToCSS(u.value,p,l);case e.TokenType.border:return this.borderTokenValueToCSS(u.value,p,l);case e.TokenType.gradient:return this.gradientTokenValueToCSS(u.value,p,l);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(u.value,p,l);case e.TokenType.shadow:return this.shadowTokenValueToCSS(u.value,p,l);case e.TokenType.fontWeight:return this.fontWeightTokenValueToCSS(u.value,p,l);case e.TokenType.fontFamily:case e.TokenType.productCopy:case e.TokenType.string:return this.stringTokenValueToCSS(u.value,p,l);case e.TokenType.textCase:case e.TokenType.textDecoration:case e.TokenType.visibility:return this.optionTokenValueToCSS(u.value,p,l,u.tokenType);case e.TokenType.blur:return this.blurTokenValueToCSS(u.value,p,l);case e.TokenType.typography:return this.typographyTokenValueToCSS(u.value,p,l);default:throw new e.UnreachableCaseError(u.tokenType,"Unsupported token type for transformation to CSS:")}}static colorTokenValueToCSS(u,p,l){return y.ColorHelper.formattedColorOrVariableName(u,p,l)}static borderTokenValueToCSS(u,p,l){const d=(0,c.sureOptionalReference)(u.referencedTokenId,p,l.allowReferences);if(d)return l.tokenToVariableRef(d);const g=this.dimensionTokenValueToCSS(u.width,p,l),S=this.borderStyleToCSS(u.style),b=this.colorTokenValueToCSS(u.color,p,l);return this.borderPositionToCSS(u.position),`${g} ${S} ${b}`}static gradientTokenValueToCSS(u,p,l){return u.map(d=>this.gradientLayerToCSS(d,p,l)).join(", ")}static gradientLayerToCSS(u,p,l){const d=(0,c.sureOptionalReference)(u.referencedTokenId,p,l.allowReferences);if(d)return l.tokenToVariableRef(d);const g=y.ColorHelper.roundToDecimals(u.to.x,l.decimals)-y.ColorHelper.roundToDecimals(u.from.x,l.decimals),S=y.ColorHelper.roundToDecimals(u.to.y,l.decimals)-y.ColorHelper.roundToDecimals(u.from.y,l.decimals),b=Math.atan2(S,g)*(180/Math.PI),v=()=>g>=0&&S>0||g>0&&S<=0||g<=0&&S<0?90+b:b-270;let h="";switch(u.type){case e.GradientType.linear:h=`linear-gradient(${v()}deg, `;break;case e.GradientType.radial:h="radial-gradient(circle, ";break;case e.GradientType.angular:h="conic-gradient(";break;default:h=`linear-gradient(${v()}deg, `}return`${h}${u.stops.map(C=>`${this.colorTokenValueToCSS(C.color,p,l)} ${y.ColorHelper.roundToDecimals(100*C.position,l.decimals)}%`).join(", ")})`}static dimensionTokenValueToCSS(u,p,l){const d=(0,c.sureOptionalReference)(u.referencedTokenId,p,l.allowReferences);return d?l.tokenToVariableRef(d):`${y.ColorHelper.roundToDecimals(u.measure,l.decimals)}${this.unitToCSS(u.unit)}`}static shadowTokenValueToCSS(u,p,l){return u.map(d=>this.shadowLayerToCSS(d,p,l)).join(", ")}static shadowLayerToCSS(u,p,l){const d=(0,c.sureOptionalReference)(u.referencedTokenId,p,l.allowReferences);return d?l.tokenToVariableRef(d):`${u.type===e.ShadowType.inner?"inset ":""}${u.x}px ${u.y}px ${u.radius}px ${u.spread}px ${this.colorTokenValueToCSS({...u.color,...u.opacity&&{opacity:u.opacity}},p,l)}`}static fontWeightTokenValueToCSS(u,p,l){const d=(0,c.sureOptionalReference)(u.referencedTokenId,p,l.allowReferences);return d?l.tokenToVariableRef(d):`${u.text}`}static stringTokenValueToCSS(u,p,l){const d=(0,c.sureOptionalReference)(u.referencedTokenId,p,l.allowReferences);return d?l.tokenToVariableRef(d):`"${u.text}"`}static optionTokenValueToCSS(u,p,l,d){const g=(0,c.sureOptionalReference)(u.referencedTokenId,p,l.allowReferences);return g?l.tokenToVariableRef(g):d===e.TokenType.textCase?this.textCaseToCSS(u.value):d===e.TokenType.textDecoration?this.textDecorationToCSS(u.value):u.value}static blurTokenValueToCSS(u,p,l){const d=(0,c.sureOptionalReference)(u.referencedTokenId,p,l.allowReferences);return d?l.tokenToVariableRef(d):`blur(${this.dimensionTokenValueToCSS(u.radius,p,l)})`}static typographyTokenValueToCSS(u,p,l){const d=(0,c.sureOptionalReference)(u.referencedTokenId,p,l.allowReferences);if(d)return l.tokenToVariableRef(d);const g=(0,c.sureOptionalReference)(u.fontFamily.referencedTokenId,p,l.allowReferences),S=(0,c.sureOptionalReference)(u.fontWeight.referencedTokenId,p,l.allowReferences),b=(0,c.sureOptionalReference)(u.textDecoration.referencedTokenId,p,l.allowReferences),v=(0,c.sureOptionalReference)(u.textCase.referencedTokenId,p,l.allowReferences),h={fontFamily:g?l.tokenToVariableRef(g):u.fontFamily.text,fontWeight:S?l.tokenToVariableRef(S):u.fontWeight.text,textDecoration:b?l.tokenToVariableRef(b):u.textDecoration.value===e.TextDecoration.original?this.textDecorationToCSS(u.textDecoration.value):void 0,textCase:v?l.tokenToVariableRef(v):u.textCase.value===e.TextCase.original?this.textCaseToCSS(u.textCase.value):void 0,caps:u.textCase.value===e.TextCase.smallCaps,fontSize:this.dimensionTokenValueToCSS(u.fontSize,p,l),lineHeight:u.lineHeight?this.dimensionTokenValueToCSS(u.lineHeight,p,l):void 0},C=h.fontSize;return`${h.caps?"small-caps ":""}${h.fontWeight} ${h.lineHeight?`${C}/${h.lineHeight}`:C} ${g?h.fontFamily:`"${h.fontFamily}"`}`}static borderStyleToCSS(u){switch(u){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(u){switch(u){case e.BorderPosition.center:return"center";case e.BorderPosition.inside:return"inside";case e.BorderPosition.outside:default:return"outside"}}static unitToCSS(u){switch(u){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(u){switch(u){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(u){switch(u){case e.TextDecoration.original:return"none";case e.TextDecoration.underline:return"underline";case e.TextDecoration.strikethrough:return"line-through"}}}},952:(o,r,t)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.ColorHelper=void 0;const e=t(989),c=t(761);class y{static formattedColorOrVariableName(p,l,d){let g,S,b;const v=(0,c.sureOptionalReference)(p.referencedTokenId,l,d.allowReferences);if(v)g=d.tokenToVariableRef(v);else{const h=(0,c.sureOptionalReference)(p.color.referencedTokenId,l,d.allowReferences);h&&(S=d.tokenToVariableRef(h));const C=(0,c.sureOptionalReference)(p.opacity.referencedTokenId,l,d.allowReferences);C&&(b=d.tokenToVariableRef(C))}if(g)return g;if(!g&&!S&&!b)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,b);default:return this.formattedColor(p,d.colorFormat,d.decimals)}}static formattedColor(p,l,d=3){switch(l){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(l,this.normalizedIntColor(p),p.opacity.measure);case e.ColorFormat.rgb:case e.ColorFormat.rgba:case e.ColorFormat.smartRgba:return this.colorToRgb(l,this.normalizedIntColor(p),p.opacity.measure,d,null,null);case e.ColorFormat.hsl:case e.ColorFormat.hsla:case e.ColorFormat.smartHsla:return this.colorToHsl(l,this.normalizedFractionalColor(p),p.opacity.measure,d);case e.ColorFormat.smartUIColor:return this.colorToUIColor(this.normalizedIntColor(p),p.opacity.measure,d)}}static colorToRgb(p,l,d,g,S,b){let v;return v=p===e.ColorFormat.rgba||p===e.ColorFormat.smartRgba&&d<1?`rgba(${S||`${l.r}, ${l.g}, ${l.b}`}, ${b||this.roundToDecimals(d,g)})`:`rgb(${S||`${l.r}, ${l.g}, ${l.b}`})`,v}static colorToHex(p,l,d){let g=`${this.pHex(l.r)}${this.pHex(l.g)}${this.pHex(l.b)}`;return(p===e.ColorFormat.hex8||p===e.ColorFormat.hashHex8||p===e.ColorFormat.smartHex&&d<1||p===e.ColorFormat.smartHashHex&&d<1)&&(g+=`${this.pHex(Math.round(255*d))}`),p!==e.ColorFormat.hashHex6&&p!==e.ColorFormat.hashHex8&&p!==e.ColorFormat.smartHashHex||(g=`#${g}`),g}static colorToHsl(p,l,d,g){const S=Math.max(l.r,l.g,l.b),b=Math.min(l.r,l.g,l.b);let v,h,C,$=(S+b)/2;if(S===b)v=h=0;else{const N=S-b;h=$>.5?N/(2-S-b):N/(S+b),S===l.r?v=(l.g-l.b)/N+(l.g<l.b?6:0):S===l.g?v=(l.b-l.r)/N+2:S===l.b&&(v=(l.r-l.g)/N+4),v/=6}return C=p===e.ColorFormat.hsla||p===e.ColorFormat.smartHsla&&d<1?`hsla(${Math.round(360*v)}%, ${Math.round(100*h)}%, ${Math.round(100*$)}%, ${this.roundToDecimals(d,g)})`:`hsl(${Math.round(360*v)}%, ${Math.round(100*h)}%, ${Math.round(100*$)}%)`,C}static colorToUIColor(p,l,d=3){let g=`UIColor(rgb: 0x${this.pHex(p.r)}${this.pHex(p.g)}${this.pHex(p.b)})`;return l<1&&(g+=`.withAlphaComponent(${l})`),g}static normalizedIntColor(p){return{r:Math.round(p.color.r),g:Math.round(p.color.g),b:Math.round(p.color.b)}}static normalizedFractionalColor(p,l=3){return{r:this.roundToDecimals(p.color.r/255,l),g:y.roundToDecimals(p.color.g/255,l),b:y.roundToDecimals(p.color.b/255,l)}}static roundToDecimals(p,l){const d=Math.pow(10,l),g=Math.round(p*d)/d;return parseFloat(g.toFixed(l))}static pHex(p){return p.toString(16).padStart(2,"0")}}r.ColorHelper=y},453:(o,r,t)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.NamingHelper=void 0;const e=t(110),c=t(545);class y{static codeSafeVariableNameForToken(p,l,d,g){let S=[];return d&&(S=[...d.path],d.isRoot||S.push(d.name)),S.push(p.name),g&&g.length>0&&S.unshift(g),y.codeSafeVariableName(S,l)}static codeSafeVariableName(p,l){let d=typeof p=="string"?p:p.join(" ");switch(d=d.replaceAll(/[^a-zA-Z0-9_-]/g,"_"),l){case c.StringCase.camelCase:d=(0,e.camelCase)(d);break;case c.StringCase.capitalCase:d=(0,e.capitalCase)(d);break;case c.StringCase.constantCase:d=(0,e.constantCase)(d);break;case c.StringCase.dotCase:d=(0,e.dotCase)(d);break;case c.StringCase.headerCase:d=(0,e.headerCase)(d);break;case c.StringCase.noCase:d=(0,e.noCase)(d);break;case c.StringCase.paramCase:d=(0,e.paramCase)(d);break;case c.StringCase.pascalCase:d=(0,e.pascalCase)(d);break;case c.StringCase.pathCase:d=(0,e.pathCase)(d);break;case c.StringCase.sentenceCase:d=(0,e.sentenceCase)(d);break;case c.StringCase.snakeCase:d=(0,e.snakeCase)(d)}return l!==c.StringCase.snakeCase&&l!==c.StringCase.constantCase&&(d=d.replaceAll("_","")),d.match(/^[^a-zA-Z]/)&&(d="_"+d),d}static nameAsCSSVarReference(p){return`var(--${p})`}static nameAsCSSVarDeclaration(p){return`--${p}`}}r.NamingHelper=y},58:o=>{o.exports=de()},110:o=>{o.exports=Br}},s={};function i(o){var r=s[o];if(r!==void 0)return r.exports;var t=s[o]={exports:{}};return a[o](t,t.exports,i),t.exports}var m={};(()=>{var o=m;Object.defineProperty(o,"__esModule",{value:!0}),o.ColorFormat=o.StringCase=o.Iterators=o.CSSHelper=o.FileHelper=o.ColorHelper=o.NamingHelper=o.NetworkHelper=void 0;var r=i(118);Object.defineProperty(o,"NetworkHelper",{enumerable:!0,get:function(){return r.NetworkHelper}});var t=i(453);Object.defineProperty(o,"NamingHelper",{enumerable:!0,get:function(){return t.NamingHelper}});var e=i(952);Object.defineProperty(o,"ColorHelper",{enumerable:!0,get:function(){return e.ColorHelper}});var c=i(617);Object.defineProperty(o,"FileHelper",{enumerable:!0,get:function(){return c.FileHelper}});var y=i(771);Object.defineProperty(o,"CSSHelper",{enumerable:!0,get:function(){return y.CSSHelper}});var u=i(639);Object.defineProperty(o,"Iterators",{enumerable:!0,get:function(){return u.Iterators}});var p=i(545);Object.defineProperty(o,"StringCase",{enumerable:!0,get:function(){return p.StringCase}});var l=i(989);Object.defineProperty(o,"ColorFormat",{enumerable:!0,get:function(){return l.ColorFormat}})})();var T=n;for(var f in m)T[f]=m[f];m.__esModule&&Object.defineProperty(T,"__esModule",{value:!0})})()})(O);var k=de();const te=[{fileName:"borders",tokenTypes:[k.TokenType.dimension],groupNames:["Border"],hasStylesObject:!1,sortByNumValue:!0},{fileName:"other",tokenTypes:[k.TokenType.dimension,k.TokenType.string],excludeGroupNames:["Border","Radius","Spacing"],sortByNumValue:!0},{fileName:"radii",tokenTypes:[k.TokenType.dimension],groupNames:["Radius"],hasParentPrefix:!1,sortByNumValue:!0},{fileName:"spacing",tokenTypes:[k.TokenType.dimension],groupNames:["Spacing"],hasParentPrefix:!1,sortByNumValue:!0},{fileName:"shadows",tokenTypes:[k.TokenType.shadow],hasParentPrefix:!1},{fileName:"gradients",tokenTypes:[k.TokenType.gradient],hasParentPrefix:!0},{fileName:"typography",tokenTypes:[k.TokenType.typography]}],oe=[{fileName:"colors",tokenTypes:[k.TokenType.color],hasMixin:!0,hasStylesObject:!1}],Fr=[{fileName:"color-tokens",tokenTypes:[k.TokenType.color]}],he="Colors",ne="colors",Z="-colors",D="global-tokens",R="js",wr="  ",I="scss",ve="    ",P="themes",Lr="Theme tokens",Mr="Collection",ae="styles",Ar=n=>n.replace(/\n{3,}/g,`

`),Hr=n=>n.replace(/\n{2,}$/,`
`),Vr={js:{indentation:wr,openingBracket:"{",closingBracket:"}"},scss:{indentation:ve,openingBracket:"(",closingBracket:")"}},ke=(n,a)=>{const s=a?"js":"scss",{indentation:i,openingBracket:m,closingBracket:T}=Vr[s];let f=0,o="";const r=n.split(`
`);for(const t of r)t.includes(m)&&t.includes(T)?o+=`${i.repeat(f)}${t}
`:t.includes(m)?(o+=`${i.repeat(f)}${t}
`,f+=1):t.includes(T)?(f-=1,o+=`${i.repeat(f)}${t}
`):o+=`${i.repeat(f)}${t}
`;return o=Ar(o),o=Hr(o),o},Ce=/#([A-Fa-f0-9]{6,8})\b/g,Ur=8,Oe=4,Wr=3,Gr=n=>n.length%2===0&&[...Array(n.length/2)].every((a,s)=>n[2*s]===n[2*s+1]),Yr=n=>n.split("").map((a,s)=>s%2===0?a:"").join(""),Kr=n=>n.length===Ur&&n.endsWith("ff")?n.slice(0,-2):n.length===Oe&&n.endsWith("f")?n.slice(0,-1):n,Pe=n=>{const a=[Wr,Oe].includes(n.length);let s;return a?s=n:Gr(n)?s=Yr(n):s=n,s=Kr(s),`#${s}`},ie=n=>n.replace(Ce,a=>Pe(a.slice(1))),se=(n,a,s,i)=>{let m=1;const T=i?`${i}-`:"";return a.split(",").map(o=>o.replace(Ce,r=>{const t=`var(--${s}color-${T}${n}-color-${m.toString().padStart(2,"0")}, ${r})`;return m+=1,t})).join(",").replace(/0px/g,"0")},zr=n=>n.filter(a=>{var m,T;if(a.tokenType!==k.TokenType.color)return!0;const s=a.properties.find(f=>f.name===Mr);if(!s)return!1;const i=(m=s.options)==null?void 0:m.find(f=>f.name===Lr);return i?((T=a.propertyValues)==null?void 0:T.collection)===i.id:!1}),ce=n=>({radius:"radii",spacing:"spaces"})[n]||(n.endsWith("s")?n:`${n}s`),E=n=>O.NamingHelper.codeSafeVariableName(n,O.StringCase.camelCase),le={"radius-full":"full"},qr=new Map([["breakpoint-mobile",0]]),M=(n,a)=>{const s=qr.get(n);return typeof s==typeof a?s:a},Xr=n=>le[n]?le[n]:n,_e=(n,a)=>{const s=Object.entries(a).reduce((T,[f,o])=>{let r;return typeof o=="object"&&o!==null&&typeof T[f]=="object"?r=_e(T[f],o):r=o,{...T,[f]:r}},{...n}),i={},m={};return Object.entries(s).forEach(([T,f])=>{typeof f=="object"&&f!==null&&f.moveToTheEnd==="true"?(delete f.moveToTheEnd,m[T]=f):i[T]=f}),{...i,...m}};function Ee(n){return Object.entries(n).map(([a,s])=>{if(typeof s=="object"&&s!==null){const i=Ee(s);return`${a}: (
${i}
),
`}return`${a}: ${s},
`}).join("").slice(0,-1)}const Ie=n=>Object.entries(n).map(([a,s])=>{if(typeof s=="object"&&s!==null){const i=Ie(s);return`${a}: {
${i}
},
`}return a===s?`${a},
`:`${a}: ${s},
`}).join("").slice(0,-1),Zr=n=>n.length===4?n.filter((a,s)=>s!==1).join("-"):n.join("-"),Qr=n=>n.length===4?n[1]:"mobile",Jr=(n,a)=>{var T;let s;const i=(T=n.name.match(/\d+/))==null?void 0:T[0],m=Xr(n.name.toLowerCase());return n.tokenType!==k.TokenType.color&&i?s=i:s=a?E(m):m,s},et=(n,a,s)=>{if(a===k.TokenType.color){const i=`${n.toLowerCase()}${Z}`;return s?E(i):`$${i}`}return s?ce(n.toLowerCase()):`$${ce(n.toLowerCase())}`},_=(n,a,s)=>{let i;return s?i=a.find(m=>m.id===n.parentGroupId):i=null,O.NamingHelper.codeSafeVariableNameForToken(n,O.StringCase.paramCase,i,"")},rt=(n,a)=>n===0?0:`${n}${a}`,x=(n,a,s,i)=>{const m=i?rt(a,i):a;return s?`export const ${E(n)} = ${typeof m=="number"?m:`'${m}'`};`:`$${n}: ${m} !default;`},Q=(n,a,s,i)=>n.sort((T,f)=>{if(i){const t=y=>y.tokenType===k.TokenType.dimension?y.value.measure:y.tokenType===k.TokenType.string?y.value.text:y.value,e=t(T),c=t(f);if(e&&c)return parseInt(e.toString(),10)-parseInt(c.toString(),10)}const o=_(T,a,s),r=_(f,a,s);return o.localeCompare(r)}),tt=n=>{let a=null;const s=[];return n.forEach(({css:i,parentGroupId:m})=>{a&&m!==a&&i&&s.push(""),i&&s.push(i),a=m}),s.join(`
`)},ot=n=>{const a=/linear-gradient\(([^,]+),\s*(.+)\)/,s=n.match(a);if(s){const i=s[1].trim(),m=Number(i.match(/\d+/)),T=i.match(/deg/),f=s[2].trim();return`linear-gradient(var(--gradient-angle, ${m}${T}), ${f})`}return n},nt=n=>n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),at=n=>{const a=/^'([^']*)'$/;return n.replace(a,"$1")},it=n=>typeof n=="number",st=n=>`{
${n.join(`,
`)},
}`,ct=n=>`(
${n.join(`,
`)},
)`,lt=(n,a)=>`${n}: ${/\s/.test(a)?`"${a}"`:a}`,ut=(n,a)=>{const s=nt(n);let i;return typeof a=="string"&&a.includes(", ")?i=`"${a}"`:it(a)?i=a:i=at(a),`${s}: ${i}`},ue=(n,a)=>Object.entries(n).map(s=>{const[i,m]=s;return a(i,m)}),pt=({fontFamily:n,fontSize:a,fontWeight:s,lineHeight:i},m,T)=>{const f={fontFamily:`'${n.text}', sans-serif`,fontSize:`'${a.measure}${a.unit==="Pixels"?"px":a.unit}'`,fontStyle:`'${m?"italic":"normal"}'`,fontWeight:s.text};i&&i.measure&&(f.lineHeight=i.measure/100);const o=ue(f,ut),r=ue(f,lt);return T?st(r):ct(o)},dt=(n,a,s,i,m,T,f)=>{var r,t,e,c;const o=y=>{const{tokenType:u}=n;return u===y};if(o(k.TokenType.dimension)){const y=n,u=_(y,s,T);let p=(r=y.value)==null?void 0:r.measure;p=M(u,p);const l=O.CSSHelper.unitToCSS((t=y.value)==null?void 0:t.unit);return x(u,p,f,l)}if(o(k.TokenType.string)){const y=n,u=_(y,s,T);let p=y.value.text;return p=M(u,p),x(u,p,f)}if(o(k.TokenType.color)){const y=n,u=_(y,s,T);if(m){let p=O.CSSHelper.colorTokenValueToCSS(y.value,a,{allowReferences:!0,decimals:3,colorFormat:O.ColorFormat.hex8,tokenToVariableRef:()=>""});return p=M(u,Pe(p)),x(u,p,f)}return`$${u}: var(--${i}color-${u});`}if(o(k.TokenType.shadow)){const y=n,u=_(n,s,T),{value:p,origin:l}=y;let d=O.CSSHelper.shadowTokenValueToCSS(p,a,{allowReferences:!0,decimals:3,colorFormat:O.ColorFormat.hashHex8,tokenToVariableRef:()=>""});const g=T||(e=l==null?void 0:l.name)==null?void 0:e.split("/")[0].toLowerCase();return d=se(u,d,i,g),d=ie(d),x(u,d,f)}if(o(k.TokenType.gradient)){const y=n,u=_(n,s,T),{value:p,origin:l}=y;let d=O.CSSHelper.gradientTokenValueToCSS(p,a,{allowReferences:!0,colorFormat:O.ColorFormat.hashHex8,decimals:3,tokenToVariableRef:()=>""});d=ot(d);const g=T||(c=l==null?void 0:l.name)==null?void 0:c.split("/")[0].toLowerCase();return d=se(u,d,i,g),d=ie(d),x(u,d,f)}return null},Tt=(n,a,s,i,m,T,f,o=!1)=>{const t=Q(n,s,T,f).map(e=>({css:dt(e,a,s,i,m,T,o),parentGroupId:e.parentGroupId}));return tt(t)},mt=(n,a,s,i)=>{const m=a,T=n.slice(0,2),f=Zr(n).toLowerCase(),o=Qr(n).toLowerCase();let r=s;T.forEach((t,e)=>{const c=i?E(f):`$${f}`,y=e===0?c:t;e===T.length-1?r[o]=pt(m.value,f.includes("italic"),i):(r[y]=r[y]||{},r=r[y])})},yt=(n,a,s,i,m,T=!1)=>{let f=m;n.forEach((o,r)=>{const t=r===0?et(o,a.tokenType,T):o;if(r===n.length-1){const e=T?`${E(_(a,s,i))}`:`$${_(a,s,i)}`,c=Jr(a,T);f[c]=e}else f[T?E(t):t]=f[t]||{},f=f[T?E(t):t]})},ft=(n,a,s,i,m)=>{var o,r;const{tokenType:T}=n,f=(r=(o=n.origin)==null?void 0:o.name)==null?void 0:r.split("/");return!f||f.length<=1||(T===k.TokenType.typography?mt(f,n,i,m):yt(f,n,a,s,i,m)),i},Ne=(n,a)=>{const s=a?he:Z;return n.replace(s,"").replace("$","")},gt=(n,a)=>({...n,[Ne(a,!1)]:a}),St=(n,a)=>n.reduce((s,i)=>({...s,[Ne(i,a)]:i}),{}),bt=n=>n.reduce(gt,{}),ht=(n,a,s,i,m)=>{const f=Q(n,a,s,m).reduce((t,e)=>{const c=ft(e,a,s,t,i);return{...t,...c}},{}),o=Object.keys(f).filter(t=>t.endsWith(i?he:Z));if(o.length>0){const t=St(o,i),e=i?ne:`$${ne}`;return{...f,[e]:t}}const r=Object.keys(f).filter(t=>t.includes("heading")||t.includes("body"));if(r.length>0){const t=bt(r),e=i?ae:`$${ae}`;return{...f,[e]:{...t,moveToTheEnd:"true"}}}return f},vt="css-variable-prefix",kt=n=>{var i;const a=n.find(m=>m.tokenType===k.TokenType.string&&m.name===vt);return((i=a==null?void 0:a.value)==null?void 0:i.text)??""},Ct=(n,a,s,i,m)=>`@mixin color-css-variables {
${Q(n,a,i,m).map(o=>{const r=_(o,a,i);return`${ve}--${s}color-${r}: #{$${r}};`}).join(`
`)}
}
`,Ot=n=>`/* This file was generated by Supernova, don't change manually */
${n}`,Pt=(n,a,s)=>n.filter(i=>{var o,r;const m=i.tokenType===a,T=(r=(o=i.origin)==null?void 0:o.name)==null?void 0:r.includes(s),f=!(i.tokenType===k.TokenType.typography&&i.name.includes("-Underline"));return m&&T&&f}),De=(n,a)=>n!==a-1?`

`:`
`,_t=n=>([a,s],i)=>`export const ${a} = {
${Ie(s)}
};${De(i,n)}`,Et=n=>([a,s],i)=>`${a}: (
${Ee(s)}
) !default;${De(i,n)}`,Re=(n,a)=>{const s=Object.entries(n);return s.map(a(s.length)).join("")},It=n=>Re(n,_t),Nt=n=>Re(n,Et),Dt=(n,a,s)=>{let i;if(a&&a.length>0){const T=n.filter(f=>!a.some(o=>{var r,t;return(t=(r=f.origin)==null?void 0:r.name)==null?void 0:t.includes(o)})).reduce((f,o)=>{var t,e;const r=(e=(t=o.origin)==null?void 0:t.name)==null?void 0:e.split("/")[0];return r&&!f.includes(r)&&f.push(r),f},[]);i=[...new Set(T)]}else i=s;return i},Rt=(n,a,s,i,m)=>{let T="",f={},o="";const{excludeGroupNames:r=null,groupNames:t=[""],hasMixin:e=!1,hasParentPrefix:c=!0,hasStylesObject:y=!0,sortByNumValue:u=!1,tokenTypes:p}=i;p.forEach(d=>{Dt(n,r,t).forEach(S=>{const b=Pt(n,d,S),v=kt(n);d!==k.TokenType.typography&&(T+=Tt(b,a,s,v,e,c,u,m),T+=`

`),!m&&e&&(o+=Ct(b,s,v,c,u));const h=ht(b,s,c,m,u);f=_e(f,h)})});let l=T;return y&&(l+=m?It(f):Nt(f)),!m&&e&&(l+=o),{content:Ot(ke(l,m))}},B=(n,a,s,i,m=!1)=>i.map(T=>{const f=Rt(n,a,s,T,m);return{fileName:T.fileName,...f}}),F=(n,a=!1)=>`${n.map(s=>{const i=a?"ts":"scss",m=s.fileName.replace(/^_/,"").replace(new RegExp(`\\.${i}$`),"");return a?`export * from './${m}';`:`@forward '${m}';`}).sort().join(`
`)}
`,jt=n=>`import * as ${E(n)} from './${n}';`,$t=n=>`@use '${P}/${n}';`,xt=n=>a=>n?jt(a.name):$t(a.name),Bt=(n,a)=>n.map(xt(a)).join(`
`),Ft=(n,a)=>n.map(s=>{const i=`variables: meta.module-variables(${s.name}),
`,m=`mixins: meta.module-mixins(${s.name}),
`;return a?`${E(s.name)}: {
tokens: ${E(s.name)},
},`:`${s.name}: (
${i}${m}),`}).join(`
`),pe=(n,a=!1)=>{const s=Bt(n,a),i=Ft(n,a),o=`${a?"":`@use 'sass:meta';
`}${s}

// The first theme is the default theme, as the left column in the Figma table.
${a?`export const themes = {
`:`$themes: (
`}${i}
${a?`};
`:`);
`}`;return ke(o,a)},wt=async(n,a,s,i,m)=>{const T=[],f=zr(n),o=B(n,a,s,te),r=B(n,a,s,te,!0),t=F(o),e=F(r,!0);T.push(...o.map(d=>({path:`./${I}/${D}`,fileName:`_${d.fileName}.scss`,content:d.content})),...r.map(d=>({path:`./${R}/${D}/`,fileName:`${d.fileName}.ts`,content:d.content}))),T.push({path:`./${I}/${D}/`,fileName:"index.scss",content:t}),T.push({path:`./${R}/${D}/`,fileName:"index.ts",content:e}),T.push({path:`./${I}/`,fileName:"@tokens.scss",content:`@forward '${D}';
@forward '${P}';
`}),T.push({path:`./${R}/`,fileName:"index.ts",content:`export * from './${D}';
export * from './${P}';
`});const c=await Promise.all(i.map(async d=>({themedTokens:m.tokens.computeTokensByApplyingThemes(n,f,[d]),theme:d})));for(const{themedTokens:d,theme:g}of c){const S=B(d,a,s,oe),b=B(d,a,s,oe,!0),v=F(S),h=F(b,!0);T.push(...S.map(C=>({path:`./${I}/${P}/${g.name}/`,fileName:`_${C.fileName}.scss`,content:C.content})),...b.map(C=>({path:`./${R}/${P}/${g.name}/`,fileName:`${C.fileName}.ts`,content:C.content}))),T.push({path:`./${I}/${P}/${g.name}/`,fileName:"index.scss",content:v}),T.push({path:`./${R}/${P}/${g.name}/`,fileName:"index.ts",content:h})}const y=pe(i),u=pe(i,!0),p=`@forward 'color-tokens';
`,l=B(f,a,s,Fr,!1);return T.push({path:`./${I}/`,fileName:"@themes.scss",content:y}),T.push({path:`./${R}/${P}`,fileName:"index.ts",content:u}),T.push({path:`./${I}/${P}`,fileName:"index.scss",content:p}),T.push(...l.map(d=>({path:`./${I}/${P}`,fileName:`_${d.fileName}.scss`,content:d.content}))),T},Lt=n=>{let a=[];const s=JSON.stringify(n,(i,m)=>{if(typeof m=="object"&&m!==null){if(a!=null&&a.includes(m))return"CIRCULAR_REFERENCE";a==null||a.push(m)}return m},2);return a=null,s},je=Pulsar.exportConfig();Pulsar.export(async(n,a)=>{const s={designSystemId:a.dsId,versionId:a.versionId};let i=await n.tokens.getTokens(s),m=await n.tokens.getTokenGroups(s);a.brandId&&(i=i.filter(e=>e.brandId===a.brandId),m=m.filter(e=>e.brandId===a.brandId));const T=new Map(i.map(e=>[e.id,e])),f=await n.tokens.getTokenThemes(s),o=(e,c,y)=>O.FileHelper.createTextFile({relativePath:e,fileName:c,content:y});let r=[];return r=(await wt(i,T,m,f,n)).map(e=>o(e.path,e.fileName,e.content)),je.generateOriginalDataFiles&&r.push(o("./original-data/","_original-tokens.json",Lt(i)),o("./original-data/","_original-groups.json",JSON.stringify(m,null,2))),r});exports.exportConfiguration=je;
