import{j as e}from"./vendor-react-Dp9pL_Wn.js";import{ck as t,fZ as s,fY as n,fS as o,fT as r}from"./c2ee0272b-DPDuX889.js";import{C as a}from"./c627fcdb6-1_bsVTpt.js";import{c as i,x as l}from"./vendor-ant-cds-BLsR_p72.js";import{ab as c,ac as d,ad as m,ae as p,af as g,ag as x,ah as b,ai as h,aj as f,J as u}from"./vendor-radix-Dv3qPI0v.js";const y=n,k=s,w=l("\n  self-stretch\n  px-2\n  py-3\n  rounded\n  cursor-pointer\n  justify-start\n  overflow-hidden\n  text-ellipsis\n  text-text-100\n  grid\n  grid-cols-[minmax(0,_1fr)_auto]\n  inline-flex\n  gap-4\n  items-center\n  outline-none\n  select-none\n  hover:bg-bg-500\n  hover:text-text-000\n  can-focus\n  [&[data-disabled]]:opacity-50\n  [&[data-disabled]]:bg-bg-100\n  [&[data-disabled]]:cursor-default\n",{variants:{size:{sm:"text-xs",md:"text-sm",lg:""}},defaultVariants:{size:"md"}});function v({label:t,checked:s,description:n,checkboxStyle:o,textClassName:r,closeOnSelect:a,onSelect:l,size:c="md",...d}){return e.jsxs(u,{className:w({size:c}),onSelect:e=>{l(),a||e.preventDefault()},...d,role:"square"===o?"menuitemcheckbox":"menuitemradio","aria-checked":s,children:[e.jsxs("div",{className:"flex shrink grow basis-0 flex-col justify-start gap-1",children:[e.jsx("div",{className:i("font-normal",r),children:t}),n&&e.jsx("div",{className:i("text-text-300 text-xs",r),children:n})]}),o&&("square"===o?e.jsx(k,{checked:s}):e.jsx(y,{checked:s}))]})}const j=l("transition-colors\n  justify-between\n  items-center\n  inline-flex\n  text-left\n  text-text-100\n  hover:border-border-100\n  border\n  border-border-200\n  [&[data-disabled]]:opacity-50\n  [&[data-disabled]]:cursor-not-allowed\n  [&[data-disabled]]:!text-text-500\n  data-[state=open]:border-accent-100\n  can-focus",{variants:{size:{sm:"h-8 rounded-md pl-2 pr-1.5 text-xs gap-1",md:"h-9 pl-3 pr-2.5 py-2 rounded-lg text-sm gap-1",lg:"h-11 pl-3 pr-2.5 rounded-[0.6rem] gap-1.5"},type:{primary:"bg-bg-000 border-border-200",secondary:"bg-bg-500 border-border-300",ghost:"text-text-200 transition-all active:bg-bg-400 hover:bg-bg-300 hover:text-text-100"}},defaultVariants:{size:"md",type:"primary"}}),_=l("flex\n  flex-col\n  border-0.5\n  border-border-300\n  rounded-lg\n  text-text-200\n  shadow-element",{variants:{size:{sm:"min-w-[13rem]",md:"min-w-[15rem]",lg:"min-w-[18rem]"},type:{primary:"bg-bg-000",secondary:"bg-bg-200",ghost:"bg-bg-200"},overflow:{scroll:"max-h-[16rem]",expand:""}},defaultVariants:{size:"md",type:"primary",overflow:"expand"}});function $({label:s,avoidCollisions:n,align:o="start",side:r="bottom",scroll:l=!0,sideOffset:u,children:y,className:k,menuContentClassName:w,scrollAreaViewPortClassName:v,disabled:$=!1,size:S="md",type:N="primary",testId:z,id:C,matchWidth:A,open:E,onOpenChange:O,footer:T}){const I=t(),F=l?e.jsxs(c,{className:"w-[100%] overflow-hidden",type:"auto",children:[e.jsx(d,{className:i("inline-flex max-h-[16rem] w-[100%] items-start justify-start gap-2 p-2",v),role:"menu",children:e.jsx("div",{className:"flex shrink grow basis-0 flex-col items-start justify-start",children:y})}),e.jsx(m,{className:"h-[100%] w-2",orientation:"vertical",children:e.jsx(p,{className:"bg-bg-200 rounded-full"})}),e.jsx(g,{className:"ScrollAreaCorner"})]}):e.jsx("div",{className:"flex shrink grow basis-0 flex-col items-start justify-start p-2",children:y});return e.jsxs(x,{open:E,onOpenChange:O,children:[e.jsx(b,{asChild:!0,disabled:$,children:e.jsxs("button",{id:C,className:j({size:S,type:N,className:k}),"data-testid":z,children:[s,e.jsx(a,{className:"text-text-500 translate-y-[0.5px]",size:"sm"===S?12:16})]})}),e.jsx(h,{children:e.jsx(f,{sideOffset:u??4,className:i(w,_({size:S,type:N,overflow:l&&!T?"scroll":"expand"})),style:{width:A?"var(--radix-dropdown-menu-trigger-width)":void 0,zIndex:I},avoidCollisions:n,align:o,side:r,asChild:!0,children:T?e.jsxs("div",{className:"flex flex-col overflow-hidden",children:[F,e.jsx("div",{className:"border-t border-border-300 p-2",children:T})]}):F})})]})}function S({placeholder:t="Select",options:s,selected:n,onSelect:a,id:i,label:l,align:c,side:d,className:m,textClassName:p,checkboxStyle:g="round",scroll:x,size:b,type:h,disabled:f,testId:u,matchWidth:y}){const k=o({id:i,label:l});return e.jsxs(e.Fragment,{children:[l&&e.jsx(r,{label:l,id:k}),e.jsx($,{id:k,label:n?.label||t,align:c,side:d,className:m,scroll:x,size:b,type:h,disabled:f,testId:u,matchWidth:y,children:s.map(t=>{const{key:s,label:o,description:r,disabled:i}=t;return e.jsx(v,{label:o,description:r,onSelect:()=>a(t),checkboxStyle:g,textClassName:p,closeOnSelect:!0,checked:n?.key===s,size:b,disabled:i},s)})})]})}
/*!-----------------------------------------------------------------------------
 * Copyright (c) Microsoft Corporation. All rights reserved.
 * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
 * Released under the MIT license
 * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
 *-----------------------------------------------------------------------------*/const N=Object.freeze(Object.defineProperty({__proto__:null,conf:{comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"'",close:"'",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string"]},{open:"`",close:"`",notIn:["string","comment"]},{open:"/**",close:" */",notIn:["string"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"},{open:"(",close:")"},{open:'"',close:'"'},{open:"`",close:"`"}],folding:{markers:{start:/^\s*\s*#?region\b/,end:/^\s*\s*#?endregion\b/}}},language:{defaultToken:"invalid",tokenPostfix:".dart",keywords:["abstract","dynamic","implements","show","as","else","import","static","assert","enum","in","super","async","export","interface","switch","await","extends","is","sync","break","external","library","this","case","factory","mixin","throw","catch","false","new","true","class","final","null","try","const","finally","on","typedef","continue","for","operator","var","covariant","Function","part","void","default","get","rethrow","while","deferred","hide","return","with","do","if","set","yield"],typeKeywords:["int","double","String","bool"],operators:["+","-","*","/","~/","%","++","--","==","!=",">","<",">=","<=","=","-=","/=","%=",">>=","^=","+=","*=","~/=","<<=","&=","!=","||","&&","&","|","^","~","<<",">>","!",">>>","??","?",":","|="],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,digits:/\d+(_+\d+)*/,octaldigits:/[0-7]+(_+[0-7]+)*/,binarydigits:/[0-1]+(_+[0-1]+)*/,hexdigits:/[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,regexpctl:/[(){}\[\]\$\^|\-*+?\.]/,regexpesc:/\\(?:[bBdDfnrstvwWn0\\\/]|@regexpctl|c[A-Z]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4})/,tokenizer:{root:[[/[{}]/,"delimiter.bracket"],{include:"common"}],common:[[/[a-z_$][\w$]*/,{cases:{"@typeKeywords":"type.identifier","@keywords":"keyword","@default":"identifier"}}],[/[A-Z_$][\w\$]*/,"type.identifier"],{include:"@whitespace"},[/\/(?=([^\\\/]|\\.)+\/([gimsuy]*)(\s*)(\.|;|,|\)|\]|\}|$))/,{token:"regexp",bracket:"@open",next:"@regexp"}],[/@[a-zA-Z]+/,"annotation"],[/[()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/!(?=([^=]|$))/,"delimiter"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/(@digits)[eE]([\-+]?(@digits))?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?/,"number.float"],[/0[xX](@hexdigits)n?/,"number.hex"],[/0[oO]?(@octaldigits)n?/,"number.octal"],[/0[bB](@binarydigits)n?/,"number.binary"],[/(@digits)n?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string_double"],[/'/,"string","@string_single"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@jsdoc"],[/\/\*/,"comment","@comment"],[/\/\/\/.*$/,"comment.doc"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],jsdoc:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],regexp:[[/(\{)(\d+(?:,\d*)?)(\})/,["regexp.escape.control","regexp.escape.control","regexp.escape.control"]],[/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/,["regexp.escape.control",{token:"regexp.escape.control",next:"@regexrange"}]],[/(\()(\?:|\?=|\?!)/,["regexp.escape.control","regexp.escape.control"]],[/[()]/,"regexp.escape.control"],[/@regexpctl/,"regexp.escape.control"],[/[^\\\/]/,"regexp"],[/@regexpesc/,"regexp.escape"],[/\\\./,"regexp.invalid"],[/(\/)([gimsuy]*)/,[{token:"regexp",bracket:"@close",next:"@pop"},"keyword.other"]]],regexrange:[[/-/,"regexp.escape.control"],[/\^/,"regexp.invalid"],[/@regexpesc/,"regexp.escape"],[/[^\]]/,"regexp"],[/\]/,{token:"regexp.escape.control",next:"@pop",bracket:"@close"}]],string_double:[[/[^\\"\$]+/,"string"],[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"],[/\$\w+/,"identifier"]],string_single:[[/[^\\'\$]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,"string","@pop"],[/\$\w+/,"identifier"]]}}},Symbol.toStringTag,{value:"Module"}));
/*!-----------------------------------------------------------------------------
 * Copyright (c) Microsoft Corporation. All rights reserved.
 * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
 * Released under the MIT license
 * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
 *-----------------------------------------------------------------------------*/var z={comments:{blockComment:["\x3c!--","--\x3e"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">",notIn:["string"]}],surroundingPairs:[{open:"(",close:")"},{open:"[",close:"]"},{open:"`",close:"`"}],folding:{markers:{start:new RegExp("^\\s*\x3c!--\\s*#?region\\b.*--\x3e"),end:new RegExp("^\\s*\x3c!--\\s*#?endregion\\b.*--\x3e")}}};const C=Object.freeze(Object.defineProperty({__proto__:null,conf:z,language:{defaultToken:"",tokenPostfix:".md",control:/[\\`*_\[\]{}()#+\-\.!]/,noncontrol:/[^\\`*_\[\]{}()#+\-\.!]/,escapes:/\\(?:@control)/,jsescapes:/\\(?:[btnfr\\"']|[0-7][0-7]?|[0-3][0-7]{2})/,empty:["area","base","basefont","br","col","frame","hr","img","input","isindex","link","meta","param"],tokenizer:{root:[[/^\s*\|/,"@rematch","@table_header"],[/^(\s{0,3})(#+)((?:[^\\#]|@escapes)+)((?:#+)?)/,["white","keyword","keyword","keyword"]],[/^\s*(=+|\-+)\s*$/,"keyword"],[/^\s*((\*[ ]?)+)\s*$/,"meta.separator"],[/^\s*>+/,"comment"],[/^\s*([\*\-+:]|\d+\.)\s/,"keyword"],[/^(\t|[ ]{4})[^ ].*$/,"string"],[/^\s*~~~\s*((?:\w|[\/\-#])+)?\s*$/,{token:"string",next:"@codeblock"}],[/^\s*```\s*((?:\w|[\/\-#])+).*$/,{token:"string",next:"@codeblockgh",nextEmbedded:"$1"}],[/^\s*```\s*$/,{token:"string",next:"@codeblock"}],{include:"@linecontent"}],table_header:[{include:"@table_common"},[/[^\|]+/,"keyword.table.header"]],table_body:[{include:"@table_common"},{include:"@linecontent"}],table_common:[[/\s*[\-:]+\s*/,{token:"keyword",switchTo:"table_body"}],[/^\s*\|/,"keyword.table.left"],[/^\s*[^\|]/,"@rematch","@pop"],[/^\s*$/,"@rematch","@pop"],[/\|/,{cases:{"@eos":"keyword.table.right","@default":"keyword.table.middle"}}]],codeblock:[[/^\s*~~~\s*$/,{token:"string",next:"@pop"}],[/^\s*```\s*$/,{token:"string",next:"@pop"}],[/.*$/,"variable.source"]],codeblockgh:[[/```\s*$/,{token:"string",next:"@pop",nextEmbedded:"@pop"}],[/[^`]+/,"variable.source"]],linecontent:[[/&\w+;/,"string.escape"],[/@escapes/,"escape"],[/\b__([^\\_]|@escapes|_(?!_))+__\b/,"strong"],[/\*\*([^\\*]|@escapes|\*(?!\*))+\*\*/,"strong"],[/\b_[^_]+_\b/,"emphasis"],[/\*([^\\*]|@escapes)+\*/,"emphasis"],[/`([^\\`]|@escapes)+`/,"variable"],[/\{+[^}]+\}+/,"string.target"],[/(!?\[)((?:[^\]\\]|@escapes)*)(\]\([^\)]+\))/,["string.link","","string.link"]],[/(!?\[)((?:[^\]\\]|@escapes)*)(\])/,"string.link"],{include:"html"}],html:[[/<(\w+)\/>/,"tag"],[/<(\w+)(\-|\w)*/,{cases:{"@empty":{token:"tag",next:"@tag.$1"},"@default":{token:"tag",next:"@tag.$1"}}}],[/<\/(\w+)(\-|\w)*\s*>/,{token:"tag"}],[/<!--/,"comment","@comment"]],comment:[[/[^<\-]+/,"comment.content"],[/-->/,"comment","@pop"],[/<!--/,"comment.content.invalid"],[/[<\-]/,"comment.content"]],tag:[[/[ \t\r\n]+/,"white"],[/(type)(\s*=\s*)(")([^"]+)(")/,["attribute.name.html","delimiter.html","string.html",{token:"string.html",switchTo:"@tag.$S2.$4"},"string.html"]],[/(type)(\s*=\s*)(')([^']+)(')/,["attribute.name.html","delimiter.html","string.html",{token:"string.html",switchTo:"@tag.$S2.$4"},"string.html"]],[/(\w+)(\s*=\s*)("[^"]*"|'[^']*')/,["attribute.name.html","delimiter.html","string.html"]],[/\w+/,"attribute.name.html"],[/\/>/,"tag","@pop"],[/>/,{cases:{"$S2==style":{token:"tag",switchTo:"embeddedStyle",nextEmbedded:"text/css"},"$S2==script":{cases:{$S3:{token:"tag",switchTo:"embeddedScript",nextEmbedded:"$S3"},"@default":{token:"tag",switchTo:"embeddedScript",nextEmbedded:"text/javascript"}}},"@default":{token:"tag",next:"@pop"}}}]],embeddedStyle:[[/[^<]+/,""],[/<\/style\s*>/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/</,""]],embeddedScript:[[/[^<]+/,""],[/<\/script\s*>/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/</,""]]}}},Symbol.toStringTag,{value:"Module"}));export{v as I,$ as R,S as a,N as d,C as m};
