2576.b98b7b23adeec4cb6932.js 221 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865
  1. "use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[2576],{72576:(e,t,o)=>{o.r(t);o.d(t,{Accordion:()=>oi,AccordionItem:()=>ei,Anchor:()=>_i,AnchoredRegion:()=>Ui,Avatar:()=>en,Badge:()=>an,Breadcrumb:()=>sn,BreadcrumbItem:()=>un,Button:()=>gn,Card:()=>xn,Checkbox:()=>Fn,Combobox:()=>Dn,DataGrid:()=>Rn,DataGridCell:()=>On,DataGridRow:()=>Nn,DateField:()=>qn,DelegatesARIAToolbar:()=>Ds,DesignSystemProvider:()=>Qn,Dialog:()=>al,DirectionalStyleSheetBehavior:()=>Zi,Disclosure:()=>ll,Divider:()=>dl,FoundationToolbar:()=>Vs,Listbox:()=>hl,Menu:()=>bl,MenuItem:()=>vl,NumberField:()=>yl,Option:()=>Fl,PaletteRGB:()=>nt,Picker:()=>Js,PickerList:()=>rc,PickerListItem:()=>ic,PickerMenu:()=>Qs,PickerMenuOption:()=>tc,Progress:()=>Tl,ProgressRing:()=>jl,Radio:()=>Ol,RadioGroup:()=>Pl,Search:()=>Gl,Select:()=>_l,Skeleton:()=>Ul,Slider:()=>Kl,SliderLabel:()=>as,StandardLuminance:()=>he,SwatchRGB:()=>se,Switch:()=>ls,Tab:()=>ps,TabPanel:()=>ds,Tabs:()=>fs,TextArea:()=>$s,TextField:()=>ws,Toolbar:()=>js,Tooltip:()=>Ls,TreeItem:()=>Ms,TreeView:()=>_s,accentColor:()=>Xo,accentFillActive:()=>pr,accentFillActiveDelta:()=>vo,accentFillFocus:()=>gr,accentFillFocusDelta:()=>$o,accentFillHover:()=>hr,accentFillHoverDelta:()=>mo,accentFillRecipe:()=>dr,accentFillRest:()=>ur,accentFillRestDelta:()=>fo,accentForegroundActive:()=>jr,accentForegroundActiveDelta:()=>wo,accentForegroundFocus:()=>zr,accentForegroundFocusDelta:()=>ko,accentForegroundHover:()=>Dr,accentForegroundHoverDelta:()=>yo,accentForegroundRecipe:()=>Tr,accentForegroundRest:()=>Vr,accentForegroundRestDelta:()=>xo,accentPalette:()=>Zo,accordionItemStyles:()=>Qa,accordionStyles:()=>Ya,addJupyterLabThemeChangeListener:()=>_a,allComponents:()=>lc,anchorStyles:()=>Ei,anchoredRegionStyles:()=>Wi,applyJupyterTheme:()=>Xa,avatarStyles:()=>Qi,badgeStyles:()=>rn,baseHeightMultiplier:()=>At,baseHorizontalSpacingMultiplier:()=>Mt,baseLayerLuminance:()=>Gt,bodyFont:()=>It,breadcrumbItemStyles:()=>dn,breadcrumbStyles:()=>ln,buttonStyles:()=>pn,cardStyles:()=>$n,checkboxStyles:()=>wn,checkboxTemplate:()=>kn,comboboxStyles:()=>Vn,controlCornerRadius:()=>Et,dataGridCellStyles:()=>Ln,dataGridRowStyles:()=>Bn,dataGridStyles:()=>zn,dateFieldStyles:()=>Un,dateFieldTemplate:()=>Xn,density:()=>_t,designSystemProviderStyles:()=>tl,designSystemProviderTemplate:()=>el,designUnit:()=>qt,dialogStyles:()=>rl,direction:()=>Ut,disabledOpacity:()=>Xt,disclosureStyles:()=>nl,dividerStyles:()=>cl,elementScale:()=>Wt,errorColor:()=>fa,errorFillActive:()=>ya,errorFillFocus:()=>wa,errorFillHover:()=>xa,errorFillRecipe:()=>va,errorFillRest:()=>$a,errorForegroundActive:()=>Ra,errorForegroundFocus:()=>Ia,errorForegroundHover:()=>Pa,errorForegroundRecipe:()=>Ha,errorForegroundRest:()=>Na,errorPalette:()=>ma,fillColor:()=>sr,focusStrokeInner:()=>ra,focusStrokeInnerRecipe:()=>oa,focusStrokeOuter:()=>ta,focusStrokeOuterRecipe:()=>ea,focusStrokeWidth:()=>Yt,foregroundOnAccentActive:()=>$r,foregroundOnAccentActiveLarge:()=>Fr,foregroundOnAccentFocus:()=>xr,foregroundOnAccentFocusLarge:()=>Cr,foregroundOnAccentHover:()=>vr,foregroundOnAccentHoverLarge:()=>kr,foregroundOnAccentLargeRecipe:()=>yr,foregroundOnAccentRecipe:()=>fr,foregroundOnAccentRest:()=>mr,foregroundOnAccentRestLarge:()=>wr,foregroundOnErrorActive:()=>Ta,foregroundOnErrorActiveLarge:()=>Ba,foregroundOnErrorFocus:()=>Va,foregroundOnErrorFocusLarge:()=>La,foregroundOnErrorHover:()=>Sa,foregroundOnErrorHoverLarge:()=>za,foregroundOnErrorLargeRecipe:()=>Da,foregroundOnErrorRecipe:()=>Fa,foregroundOnErrorRest:()=>Ca,foregroundOnErrorRestLarge:()=>ja,heightNumberAsToken:()=>ba,horizontalSliderLabelStyles:()=>ts,imgTemplate:()=>tn,isDark:()=>ge,jpAccordion:()=>ri,jpAccordionItem:()=>ti,jpAnchor:()=>qi,jpAnchoredRegion:()=>Xi,jpAvatar:()=>on,jpBadge:()=>nn,jpBreadcrumb:()=>cn,jpBreadcrumbItem:()=>hn,jpButton:()=>bn,jpCard:()=>yn,jpCheckbox:()=>Cn,jpCombobox:()=>jn,jpDataGrid:()=>In,jpDataGridCell:()=>Hn,jpDataGridRow:()=>Pn,jpDateField:()=>Zn,jpDesignSystemProvider:()=>ol,jpDialog:()=>il,jpDisclosure:()=>sl,jpDivider:()=>ul,jpListbox:()=>pl,jpMenu:()=>fl,jpMenuItem:()=>$l,jpNumberField:()=>wl,jpOption:()=>Cl,jpPicker:()=>Ks,jpPickerList:()=>ac,jpPickerListItem:()=>nc,jpPickerMenu:()=>ec,jpPickerMenuOption:()=>oc,jpProgress:()=>Vl,jpProgressRing:()=>zl,jpRadio:()=>Hl,jpRadioGroup:()=>Rl,jpSearch:()=>El,jpSelect:()=>ql,jpSkeleton:()=>Xl,jpSlider:()=>Ql,jpSliderLabel:()=>is,jpSwitch:()=>ss,jpTab:()=>gs,jpTabPanel:()=>us,jpTabs:()=>ms,jpTextArea:()=>xs,jpTextField:()=>ks,jpToolbar:()=>zs,jpTooltip:()=>Os,jpTreeItem:()=>Gs,jpTreeView:()=>qs,listboxStyles:()=>Sn,menuItemStyles:()=>ml,menuStyles:()=>gl,neutralColor:()=>Wo,neutralFillActive:()=>Hr,neutralFillActiveDelta:()=>So,neutralFillFocus:()=>Nr,neutralFillFocusDelta:()=>To,neutralFillHover:()=>Or,neutralFillHoverDelta:()=>Co,neutralFillInputActive:()=>Ar,neutralFillInputActiveDelta:()=>jo,neutralFillInputFocus:()=>Mr,neutralFillInputFocusDelta:()=>zo,neutralFillInputHover:()=>Ir,neutralFillInputHoverDelta:()=>Do,neutralFillInputRecipe:()=>Pr,neutralFillInputRest:()=>Rr,neutralFillInputRestDelta:()=>Vo,neutralFillLayerRecipe:()=>Kr,neutralFillLayerRest:()=>Qr,neutralFillLayerRestDelta:()=>Ao,neutralFillRecipe:()=>Br,neutralFillRest:()=>Lr,neutralFillRestDelta:()=>Fo,neutralFillStealthActive:()=>qr,neutralFillStealthActiveDelta:()=>Oo,neutralFillStealthFocus:()=>Wr,neutralFillStealthFocusDelta:()=>Ho,neutralFillStealthHover:()=>_r,neutralFillStealthHoverDelta:()=>Lo,neutralFillStealthRecipe:()=>Gr,neutralFillStealthRest:()=>Er,neutralFillStealthRestDelta:()=>Bo,neutralFillStrongActive:()=>Yr,neutralFillStrongActiveDelta:()=>Ro,neutralFillStrongFocus:()=>Jr,neutralFillStrongFocusDelta:()=>Io,neutralFillStrongHover:()=>Zr,neutralFillStrongHoverDelta:()=>Po,neutralFillStrongRecipe:()=>Ur,neutralFillStrongRest:()=>Xr,neutralFillStrongRestDelta:()=>No,neutralForegroundHint:()=>ia,neutralForegroundHintRecipe:()=>aa,neutralForegroundRecipe:()=>na,neutralForegroundRest:()=>la,neutralLayer1:()=>tr,neutralLayer1Recipe:()=>er,neutralLayer2:()=>rr,neutralLayer2Recipe:()=>or,neutralLayer3:()=>ir,neutralLayer3Recipe:()=>ar,neutralLayer4:()=>lr,neutralLayer4Recipe:()=>nr,neutralLayerCardContainer:()=>Jo,neutralLayerCardContainerRecipe:()=>Yo,neutralLayerFloating:()=>Qo,neutralLayerFloatingRecipe:()=>Ko,neutralPalette:()=>Uo,neutralStrokeActive:()=>ua,neutralStrokeActiveDelta:()=>Eo,neutralStrokeDividerRecipe:()=>pa,neutralStrokeDividerRest:()=>ga,neutralStrokeDividerRestDelta:()=>qo,neutralStrokeFocus:()=>ha,neutralStrokeFocusDelta:()=>_o,neutralStrokeHover:()=>da,neutralStrokeHoverDelta:()=>Go,neutralStrokeRecipe:()=>sa,neutralStrokeRest:()=>ca,neutralStrokeRestDelta:()=>Mo,numberFieldStyles:()=>xl,optionStyles:()=>kl,pickerListItemStyles:()=>Ys,pickerMenuOptionStyles:()=>Xs,pickerMenuStyles:()=>Us,pickerStyles:()=>Ws,progressRingStyles:()=>Dl,progressStyles:()=>Sl,provideJupyterDesignSystem:()=>sc,radioGroupStyles:()=>Nl,radioStyles:()=>Bl,radioTemplate:()=>Ll,searchStyles:()=>Ml,selectStyles:()=>Tn,skeletonStyles:()=>Wl,sliderLabelStyles:()=>rs,sliderStyles:()=>Jl,strokeWidth:()=>Zt,switchStyles:()=>ns,tabPanelStyles:()=>cs,tabStyles:()=>hs,tabsStyles:()=>bs,textAreaStyles:()=>vs,textFieldStyles:()=>ys,toolbarStyles:()=>Ss,tooltipStyles:()=>Bs,treeItemStyles:()=>As,treeViewStyles:()=>Es,typeRampBaseFontSize:()=>Jt,typeRampBaseLineHeight:()=>Kt,typeRampMinus1FontSize:()=>Qt,typeRampMinus1LineHeight:()=>eo,typeRampMinus2FontSize:()=>to,typeRampMinus2LineHeight:()=>oo,typeRampPlus1FontSize:()=>ro,typeRampPlus1LineHeight:()=>ao,typeRampPlus2FontSize:()=>io,typeRampPlus2LineHeight:()=>no,typeRampPlus3FontSize:()=>lo,typeRampPlus3LineHeight:()=>so,typeRampPlus4FontSize:()=>co,typeRampPlus4LineHeight:()=>uo,typeRampPlus5FontSize:()=>ho,typeRampPlus5LineHeight:()=>po,typeRampPlus6FontSize:()=>go,typeRampPlus6LineHeight:()=>bo,verticalSliderLabelStyles:()=>os});function r(e,t,o){if(isNaN(e)||e<=t){return t}else if(e>=o){return o}return e}function a(e,t,o){if(isNaN(e)||e<=t){return 0}else if(e>=o){return 1}return e/(o-t)}function i(e,t,o){if(isNaN(e)){return t}return t+e*(o-t)}function n(e){return e*(Math.PI/180)}function l(e){return e*(180/Math.PI)}function s(e){const t=Math.round(r(e,0,255)).toString(16);if(t.length===1){return"0"+t}return t}function c(e,t,o){if(isNaN(e)||e<=0){return t}else if(e>=1){return o}return t+e*(o-t)}function d(e,t,o){if(e<=0){return t%360}else if(e>=1){return o%360}const r=(t-o+360)%360;const a=(o-t+360)%360;if(r<=a){return(t-r*e+360)%360}return(t+r*e+360)%360}const u=Math.PI*2;function h(e,t,o){if(isNaN(e)||e<=0){return t%u}else if(e>=1){return o%u}const r=(t-o+u)%u;const a=(o-t+u)%u;if(r<=a){return(t-r*e+u)%u}return(t+r*e+u)%u}function p(e,t){const o=Math.pow(10,t);return Math.round(e*o)/o}class g{constructor(e,t,o,r){this.r=e;this.g=t;this.b=o;this.a=typeof r==="number"&&!isNaN(r)?r:1}static fromObject(e){return e&&!isNaN(e.r)&&!isNaN(e.g)&&!isNaN(e.b)?new g(e.r,e.g,e.b,e.a):null}equalValue(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}toStringHexRGB(){return"#"+[this.r,this.g,this.b].map(this.formatHexValue).join("")}toStringHexRGBA(){return this.toStringHexRGB()+this.formatHexValue(this.a)}toStringHexARGB(){return"#"+[this.a,this.r,this.g,this.b].map(this.formatHexValue).join("")}toStringWebRGB(){return`rgb(${Math.round(i(this.r,0,255))},${Math.round(i(this.g,0,255))},${Math.round(i(this.b,0,255))})`}toStringWebRGBA(){return`rgba(${Math.round(i(this.r,0,255))},${Math.round(i(this.g,0,255))},${Math.round(i(this.b,0,255))},${r(this.a,0,1)})`}roundToPrecision(e){return new g(p(this.r,e),p(this.g,e),p(this.b,e),p(this.a,e))}clamp(){return new g(r(this.r,0,1),r(this.g,0,1),r(this.b,0,1),r(this.a,0,1))}toObject(){return{r:this.r,g:this.g,b:this.b,a:this.a}}formatHexValue(e){return s(i(e,0,255))}}const b={aliceblue:{r:.941176,g:.972549,b:1},antiquewhite:{r:.980392,g:.921569,b:.843137},aqua:{r:0,g:1,b:1},aquamarine:{r:.498039,g:1,b:.831373},azure:{r:.941176,g:1,b:1},beige:{r:.960784,g:.960784,b:.862745},bisque:{r:1,g:.894118,b:.768627},black:{r:0,g:0,b:0},blanchedalmond:{r:1,g:.921569,b:.803922},blue:{r:0,g:0,b:1},blueviolet:{r:.541176,g:.168627,b:.886275},brown:{r:.647059,g:.164706,b:.164706},burlywood:{r:.870588,g:.721569,b:.529412},cadetblue:{r:.372549,g:.619608,b:.627451},chartreuse:{r:.498039,g:1,b:0},chocolate:{r:.823529,g:.411765,b:.117647},coral:{r:1,g:.498039,b:.313725},cornflowerblue:{r:.392157,g:.584314,b:.929412},cornsilk:{r:1,g:.972549,b:.862745},crimson:{r:.862745,g:.078431,b:.235294},cyan:{r:0,g:1,b:1},darkblue:{r:0,g:0,b:.545098},darkcyan:{r:0,g:.545098,b:.545098},darkgoldenrod:{r:.721569,g:.52549,b:.043137},darkgray:{r:.662745,g:.662745,b:.662745},darkgreen:{r:0,g:.392157,b:0},darkgrey:{r:.662745,g:.662745,b:.662745},darkkhaki:{r:.741176,g:.717647,b:.419608},darkmagenta:{r:.545098,g:0,b:.545098},darkolivegreen:{r:.333333,g:.419608,b:.184314},darkorange:{r:1,g:.54902,b:0},darkorchid:{r:.6,g:.196078,b:.8},darkred:{r:.545098,g:0,b:0},darksalmon:{r:.913725,g:.588235,b:.478431},darkseagreen:{r:.560784,g:.737255,b:.560784},darkslateblue:{r:.282353,g:.239216,b:.545098},darkslategray:{r:.184314,g:.309804,b:.309804},darkslategrey:{r:.184314,g:.309804,b:.309804},darkturquoise:{r:0,g:.807843,b:.819608},darkviolet:{r:.580392,g:0,b:.827451},deeppink:{r:1,g:.078431,b:.576471},deepskyblue:{r:0,g:.74902,b:1},dimgray:{r:.411765,g:.411765,b:.411765},dimgrey:{r:.411765,g:.411765,b:.411765},dodgerblue:{r:.117647,g:.564706,b:1},firebrick:{r:.698039,g:.133333,b:.133333},floralwhite:{r:1,g:.980392,b:.941176},forestgreen:{r:.133333,g:.545098,b:.133333},fuchsia:{r:1,g:0,b:1},gainsboro:{r:.862745,g:.862745,b:.862745},ghostwhite:{r:.972549,g:.972549,b:1},gold:{r:1,g:.843137,b:0},goldenrod:{r:.854902,g:.647059,b:.12549},gray:{r:.501961,g:.501961,b:.501961},green:{r:0,g:.501961,b:0},greenyellow:{r:.678431,g:1,b:.184314},grey:{r:.501961,g:.501961,b:.501961},honeydew:{r:.941176,g:1,b:.941176},hotpink:{r:1,g:.411765,b:.705882},indianred:{r:.803922,g:.360784,b:.360784},indigo:{r:.294118,g:0,b:.509804},ivory:{r:1,g:1,b:.941176},khaki:{r:.941176,g:.901961,b:.54902},lavender:{r:.901961,g:.901961,b:.980392},lavenderblush:{r:1,g:.941176,b:.960784},lawngreen:{r:.486275,g:.988235,b:0},lemonchiffon:{r:1,g:.980392,b:.803922},lightblue:{r:.678431,g:.847059,b:.901961},lightcoral:{r:.941176,g:.501961,b:.501961},lightcyan:{r:.878431,g:1,b:1},lightgoldenrodyellow:{r:.980392,g:.980392,b:.823529},lightgray:{r:.827451,g:.827451,b:.827451},lightgreen:{r:.564706,g:.933333,b:.564706},lightgrey:{r:.827451,g:.827451,b:.827451},lightpink:{r:1,g:.713725,b:.756863},lightsalmon:{r:1,g:.627451,b:.478431},lightseagreen:{r:.12549,g:.698039,b:.666667},lightskyblue:{r:.529412,g:.807843,b:.980392},lightslategray:{r:.466667,g:.533333,b:.6},lightslategrey:{r:.466667,g:.533333,b:.6},lightsteelblue:{r:.690196,g:.768627,b:.870588},lightyellow:{r:1,g:1,b:.878431},lime:{r:0,g:1,b:0},limegreen:{r:.196078,g:.803922,b:.196078},linen:{r:.980392,g:.941176,b:.901961},magenta:{r:1,g:0,b:1},maroon:{r:.501961,g:0,b:0},mediumaquamarine:{r:.4,g:.803922,b:.666667},mediumblue:{r:0,g:0,b:.803922},mediumorchid:{r:.729412,g:.333333,b:.827451},mediumpurple:{r:.576471,g:.439216,b:.858824},mediumseagreen:{r:.235294,g:.701961,b:.443137},mediumslateblue:{r:.482353,g:.407843,b:.933333},mediumspringgreen:{r:0,g:.980392,b:.603922},mediumturquoise:{r:.282353,g:.819608,b:.8},mediumvioletred:{r:.780392,g:.082353,b:.521569},midnightblue:{r:.098039,g:.098039,b:.439216},mintcream:{r:.960784,g:1,b:.980392},mistyrose:{r:1,g:.894118,b:.882353},moccasin:{r:1,g:.894118,b:.709804},navajowhite:{r:1,g:.870588,b:.678431},navy:{r:0,g:0,b:.501961},oldlace:{r:.992157,g:.960784,b:.901961},olive:{r:.501961,g:.501961,b:0},olivedrab:{r:.419608,g:.556863,b:.137255},orange:{r:1,g:.647059,b:0},orangered:{r:1,g:.270588,b:0},orchid:{r:.854902,g:.439216,b:.839216},palegoldenrod:{r:.933333,g:.909804,b:.666667},palegreen:{r:.596078,g:.984314,b:.596078},paleturquoise:{r:.686275,g:.933333,b:.933333},palevioletred:{r:.858824,g:.439216,b:.576471},papayawhip:{r:1,g:.937255,b:.835294},peachpuff:{r:1,g:.854902,b:.72549},peru:{r:.803922,g:.521569,b:.247059},pink:{r:1,g:.752941,b:.796078},plum:{r:.866667,g:.627451,b:.866667},powderblue:{r:.690196,g:.878431,b:.901961},purple:{r:.501961,g:0,b:.501961},red:{r:1,g:0,b:0},rosybrown:{r:.737255,g:.560784,b:.560784},royalblue:{r:.254902,g:.411765,b:.882353},saddlebrown:{r:.545098,g:.270588,b:.07451},salmon:{r:.980392,g:.501961,b:.447059},sandybrown:{r:.956863,g:.643137,b:.376471},seagreen:{r:.180392,g:.545098,b:.341176},seashell:{r:1,g:.960784,b:.933333},sienna:{r:.627451,g:.321569,b:.176471},silver:{r:.752941,g:.752941,b:.752941},skyblue:{r:.529412,g:.807843,b:.921569},slateblue:{r:.415686,g:.352941,b:.803922},slategray:{r:.439216,g:.501961,b:.564706},slategrey:{r:.439216,g:.501961,b:.564706},snow:{r:1,g:.980392,b:.980392},springgreen:{r:0,g:1,b:.498039},steelblue:{r:.27451,g:.509804,b:.705882},tan:{r:.823529,g:.705882,b:.54902},teal:{r:0,g:.501961,b:.501961},thistle:{r:.847059,g:.74902,b:.847059},tomato:{r:1,g:.388235,b:.278431},transparent:{r:0,g:0,b:0,a:0},turquoise:{r:.25098,g:.878431,b:.815686},violet:{r:.933333,g:.509804,b:.933333},wheat:{r:.960784,g:.870588,b:.701961},white:{r:1,g:1,b:1},whitesmoke:{r:.960784,g:.960784,b:.960784},yellow:{r:1,g:1,b:0},yellowgreen:{r:.603922,g:.803922,b:.196078}};const f=/^rgb\(\s*((?:(?:25[0-5]|2[0-4]\d|1\d\d|\d{1,2})\s*,\s*){2}(?:25[0-5]|2[0-4]\d|1\d\d|\d{1,2})\s*)\)$/i;const m=/^rgba\(\s*((?:(?:25[0-5]|2[0-4]\d|1\d\d|\d{1,2})\s*,\s*){3}(?:0|1|0?\.\d*)\s*)\)$/i;const v=/^#((?:[0-9a-f]{6}|[0-9a-f]{3}))$/i;const $=/^#((?:[0-9a-f]{8}|[0-9a-f]{4}))$/i;function x(e){return v.test(e)}function y(e){return $.test(e)}function w(e){return y(e)}function k(e){return f.test(e)}function F(e){return m.test(e)}function C(e){return b.hasOwnProperty(e)}function S(e){const t=v.exec(e);if(t===null){return null}let o=t[1];if(o.length===3){const e=o.charAt(0);const t=o.charAt(1);const r=o.charAt(2);o=e.concat(e,t,t,r,r)}const r=parseInt(o,16);if(isNaN(r)){return null}return new g(a((r&16711680)>>>16,0,255),a((r&65280)>>>8,0,255),a(r&255,0,255),1)}function T(e){const t=$.exec(e);if(t===null){return null}let o=t[1];if(o.length===4){const e=o.charAt(0);const t=o.charAt(1);const r=o.charAt(2);const a=o.charAt(3);o=e.concat(e,t,t,r,r,a,a)}const r=parseInt(o,16);if(isNaN(r)){return null}return new g(a((r&16711680)>>>16,0,255),a((r&65280)>>>8,0,255),a(r&255,0,255),a((r&4278190080)>>>24,0,255))}function V(e){const t=$.exec(e);if(t===null){return null}let o=t[1];if(o.length===4){const e=o.charAt(0);const t=o.charAt(1);const r=o.charAt(2);const a=o.charAt(3);o=e.concat(e,t,t,r,r,a,a)}const r=parseInt(o,16);if(isNaN(r)){return null}return new ColorRGBA64(normalize((r&4278190080)>>>24,0,255),normalize((r&16711680)>>>16,0,255),normalize((r&65280)>>>8,0,255),normalize(r&255,0,255))}function D(e){const t=f.exec(e);if(t===null){return null}const o=t[1].split(",");return new g(a(Number(o[0]),0,255),a(Number(o[1]),0,255),a(Number(o[2]),0,255),1)}function j(e){const t=m.exec(e);if(t===null){return null}const o=t[1].split(",");if(o.length===4){return new g(a(Number(o[0]),0,255),a(Number(o[1]),0,255),a(Number(o[2]),0,255),Number(o[3]))}return null}function z(e){const t=b[e.toLowerCase()];return t?new g(t.r,t.g,t.b,t.hasOwnProperty("a")?t.a:void 0):null}function B(e){const t=e.toLowerCase();return x(t)?S(t):w(t)?T(t):k(t)?D(t):F(t)?j(t):C(t)?z(t):null}class L{constructor(e,t,o){this.h=e;this.s=t;this.l=o}static fromObject(e){if(e&&!isNaN(e.h)&&!isNaN(e.s)&&!isNaN(e.l)){return new L(e.h,e.s,e.l)}return null}equalValue(e){return this.h===e.h&&this.s===e.s&&this.l===e.l}roundToPrecision(e){return new L(p(this.h,e),p(this.s,e),p(this.l,e))}toObject(){return{h:this.h,s:this.s,l:this.l}}}class O{constructor(e,t,o){this.h=e;this.s=t;this.v=o}static fromObject(e){if(e&&!isNaN(e.h)&&!isNaN(e.s)&&!isNaN(e.v)){return new O(e.h,e.s,e.v)}return null}equalValue(e){return this.h===e.h&&this.s===e.s&&this.v===e.v}roundToPrecision(e){return new O(p(this.h,e),p(this.s,e),p(this.v,e))}toObject(){return{h:this.h,s:this.s,v:this.v}}}class H{constructor(e,t,o){this.l=e;this.a=t;this.b=o}static fromObject(e){if(e&&!isNaN(e.l)&&!isNaN(e.a)&&!isNaN(e.b)){return new H(e.l,e.a,e.b)}return null}equalValue(e){return this.l===e.l&&this.a===e.a&&this.b===e.b}roundToPrecision(e){return new H(p(this.l,e),p(this.a,e),p(this.b,e))}toObject(){return{l:this.l,a:this.a,b:this.b}}}H.epsilon=216/24389;H.kappa=24389/27;class N{constructor(e,t,o){this.l=e;this.c=t;this.h=o}static fromObject(e){if(e&&!isNaN(e.l)&&!isNaN(e.c)&&!isNaN(e.h)){return new N(e.l,e.c,e.h)}return null}equalValue(e){return this.l===e.l&&this.c===e.c&&this.h===e.h}roundToPrecision(e){return new N(p(this.l,e),p(this.c,e),p(this.h,e))}toObject(){return{l:this.l,c:this.c,h:this.h}}}class P{constructor(e,t,o){this.x=e;this.y=t;this.z=o}static fromObject(e){if(e&&!isNaN(e.x)&&!isNaN(e.y)&&!isNaN(e.z)){return new P(e.x,e.y,e.z)}return null}equalValue(e){return this.x===e.x&&this.y===e.y&&this.z===e.z}roundToPrecision(e){return new P(p(this.x,e),p(this.y,e),p(this.z,e))}toObject(){return{x:this.x,y:this.y,z:this.z}}}P.whitePoint=new P(.95047,1,1.08883);function R(e){return e.r*.2126+e.g*.7152+e.b*.0722}function I(e){function t(e){if(e<=.03928){return e/12.92}return Math.pow((e+.055)/1.055,2.4)}return R(new g(t(e.r),t(e.g),t(e.b),1))}const A=(e,t)=>(e+.05)/(t+.05);function M(e,t){const o=I(e);const r=I(t);return o>r?A(o,r):A(r,o)}function G(e,t,o){if(o-t===0){return 0}else{return(e-t)/(o-t)}}function E(e,t,o){const r=G(e.r,t.r,o.r);const a=G(e.g,t.g,o.g);const i=G(e.b,t.b,o.b);return(r+a+i)/3}function _(e,t,o=null){let r=0;let a=o;if(a!==null){r=E(e,t,a)}else{a=new ColorRGBA64(0,0,0,1);r=E(e,t,a);if(r<=0){a=new ColorRGBA64(1,1,1,1);r=E(e,t,a)}}r=Math.round(r*1e3)/1e3;return new ColorRGBA64(a.r,a.g,a.b,r)}function q(e){const t=Math.max(e.r,e.g,e.b);const o=Math.min(e.r,e.g,e.b);const r=t-o;let a=0;if(r!==0){if(t===e.r){a=60*((e.g-e.b)/r%6)}else if(t===e.g){a=60*((e.b-e.r)/r+2)}else{a=60*((e.r-e.g)/r+4)}}if(a<0){a+=360}const i=(t+o)/2;let n=0;if(r!==0){n=r/(1-Math.abs(2*i-1))}return new L(a,n,i)}function W(e,t=1){const o=(1-Math.abs(2*e.l-1))*e.s;const r=o*(1-Math.abs(e.h/60%2-1));const a=e.l-o/2;let i=0;let n=0;let l=0;if(e.h<60){i=o;n=r;l=0}else if(e.h<120){i=r;n=o;l=0}else if(e.h<180){i=0;n=o;l=r}else if(e.h<240){i=0;n=r;l=o}else if(e.h<300){i=r;n=0;l=o}else if(e.h<360){i=o;n=0;l=r}return new g(i+a,n+a,l+a,t)}function U(e){const t=Math.max(e.r,e.g,e.b);const o=Math.min(e.r,e.g,e.b);const r=t-o;let a=0;if(r!==0){if(t===e.r){a=60*((e.g-e.b)/r%6)}else if(t===e.g){a=60*((e.b-e.r)/r+2)}else{a=60*((e.r-e.g)/r+4)}}if(a<0){a+=360}let i=0;if(t!==0){i=r/t}return new O(a,i,t)}function X(e,t=1){const o=e.s*e.v;const r=o*(1-Math.abs(e.h/60%2-1));const a=e.v-o;let i=0;let n=0;let l=0;if(e.h<60){i=o;n=r;l=0}else if(e.h<120){i=r;n=o;l=0}else if(e.h<180){i=0;n=o;l=r}else if(e.h<240){i=0;n=r;l=o}else if(e.h<300){i=r;n=0;l=o}else if(e.h<360){i=o;n=0;l=r}return new g(i+a,n+a,l+a,t)}function Z(e){let t=0;let o=0;if(e.h!==0){t=Math.cos(n(e.h))*e.c;o=Math.sin(n(e.h))*e.c}return new H(e.l,t,o)}function Y(e){let t=0;if(Math.abs(e.b)>.001||Math.abs(e.a)>.001){t=l(Math.atan2(e.b,e.a))}if(t<0){t+=360}const o=Math.sqrt(e.a*e.a+e.b*e.b);return new N(e.l,o,t)}function J(e){const t=(e.l+16)/116;const o=t+e.a/500;const r=t-e.b/200;const a=Math.pow(o,3);const i=Math.pow(t,3);const n=Math.pow(r,3);let l=0;if(a>H.epsilon){l=a}else{l=(116*o-16)/H.kappa}let s=0;if(e.l>H.epsilon*H.kappa){s=i}else{s=e.l/H.kappa}let c=0;if(n>H.epsilon){c=n}else{c=(116*r-16)/H.kappa}l=P.whitePoint.x*l;s=P.whitePoint.y*s;c=P.whitePoint.z*c;return new P(l,s,c)}function K(e){function t(e){if(e>H.epsilon){return Math.pow(e,1/3)}return(H.kappa*e+16)/116}const o=t(e.x/P.whitePoint.x);const r=t(e.y/P.whitePoint.y);const a=t(e.z/P.whitePoint.z);const i=116*r-16;const n=500*(o-r);const l=200*(r-a);return new H(i,n,l)}function Q(e){function t(e){if(e<=.04045){return e/12.92}return Math.pow((e+.055)/1.055,2.4)}const o=t(e.r);const r=t(e.g);const a=t(e.b);const i=o*.4124564+r*.3575761+a*.1804375;const n=o*.2126729+r*.7151522+a*.072175;const l=o*.0193339+r*.119192+a*.9503041;return new P(i,n,l)}function ee(e,t=1){function o(e){if(e<=.0031308){return e*12.92}return 1.055*Math.pow(e,1/2.4)-.055}const r=o(e.x*3.2404542-e.y*1.5371385-e.z*.4985314);const a=o(e.x*-.969266+e.y*1.8760108+e.z*.041556);const i=o(e.x*.0556434-e.y*.2040259+e.z*1.0572252);return new g(r,a,i,t)}function te(e){return K(Q(e))}function oe(e,t=1){return ee(J(e),t)}function re(e){return Y(te(e))}function ae(e,t=1){return oe(Z(e),t)}function ie(e,t=1){let o=0;let r=0;let a=0;if(e<=1e3){e=1e3}else if(e>=4e4){e=4e4}if(e<6600){o=255;r=e/100-2;r=-155.25485562709179-.44596950469579133*r+104.49216199393888*Math.log(r)}else{o=e/100-55;o=351.97690566805693+.114206453784165*o-40.25366309332127*Math.log(o);r=e/100-50;r=325.4494125711974+.07943456536662342*r-28.0852963507957*Math.log(r)}if(e>=6600){a=255}else if(e<2e3){a=0}else{a=e/100-10;a=-254.76935184120902+.8274096064007395*a+115.67994401066147*Math.log(a)}return new ColorRGBA64(o/255,r/255,a/255,t)}function ne(e){let t=0;let o=1e3;let r=4e4;while(r-o>.4){t=(r+o)/2;const a=ie(t);if(a.b/a.r>=e.b/e.r){r=t}else{o=t}}return Math.round(t)}function le(e,t){const o=e.relativeLuminance>t.relativeLuminance?e:t;const r=e.relativeLuminance>t.relativeLuminance?t:e;return(o.relativeLuminance+.05)/(r.relativeLuminance+.05)}const se=Object.freeze({create(e,t,o){return new de(e,t,o)},from(e){return new de(e.r,e.g,e.b)}});function ce(e){const t={r:0,g:0,b:0,toColorString:()=>"",contrast:()=>0,relativeLuminance:0};for(const o in t){if(typeof t[o]!==typeof e[o]){return false}}return true}class de extends g{constructor(e,t,o){super(e,t,o,1);this.toColorString=this.toStringHexRGB;this.contrast=le.bind(null,this);this.createCSS=this.toColorString;this.relativeLuminance=I(this)}static fromObject(e){return new de(e.r,e.g,e.b)}}function ue(e){return se.create(e,e,e)}const he={LightMode:1,DarkMode:.23};const pe=(-.1+Math.sqrt(.21))/2;function ge(e){return e.relativeLuminance<=pe}var be=o(63073);var fe=o(30086);function me(e,t,o=18){const r=re(e);let a=r.c+t*o;if(a<0){a=0}return ae(new N(r.l,a,r.h))}function ve(e,t,o=18){return me(e,-1*t,o)}function $e(e,t,o=18){const r=rgbToLAB(e);const a=r.l-t*o;return labToRGB(new ColorLAB(a,r.a,r.b))}function xe(e,t,o=18){return $e(e,-1*t,o)}function ye(e,t){if(t===0){return 0}return 1-(1-e)/t}function we(e,t){return new ColorRGBA64(ye(e.r,t.r),ye(e.g,t.g),ye(e.b,t.b),1)}function ke(e,t){const o=rgbToHSL(e);const r=rgbToHSL(t);if(r.s===0){return new ColorRGBA64(o.l,o.l,o.l,1)}return hslToRGB(new ColorHSL(r.h,r.s,o.l))}function Fe(e,t){return Math.min(e,t)}function Ce(e,t){return new ColorRGBA64(Fe(e.r,t.r),Fe(e.g,t.g),Fe(e.b,t.b),1)}function Se(e,t){if(t>=1){return 1}const o=e/(1-t);if(o>=1){return 1}return o}function Te(e,t){return new ColorRGBA64(Se(e.r,t.r),Se(e.g,t.g),Se(e.b,t.b),1)}function Ve(e,t){return Math.max(e,t)}function De(e,t){return new ColorRGBA64(Ve(e.r,t.r),Ve(e.g,t.g),Ve(e.b,t.b),1)}function je(e,t){return e*t}function ze(e,t){return new g(je(e.r,t.r),je(e.g,t.g),je(e.b,t.b),1)}function Be(e,t){if(e<.5){return r(2*t*e,0,1)}return r(1-2*(1-t)*(1-e),0,1)}function Le(e,t){return new g(Be(e.r,t.r),Be(e.g,t.g),Be(e.b,t.b),1)}function Oe(e,t){return 1-(1-t)*(1-e)}function He(e,t){return new ColorRGBA64(Oe(e.r,t.r),Oe(e.g,t.g),Oe(e.b,t.b),1)}var Ne;(function(e){e[e["Burn"]=0]="Burn";e[e["Color"]=1]="Color";e[e["Darken"]=2]="Darken";e[e["Dodge"]=3]="Dodge";e[e["Lighten"]=4]="Lighten";e[e["Multiply"]=5]="Multiply";e[e["Overlay"]=6]="Overlay";e[e["Screen"]=7]="Screen"})(Ne||(Ne={}));function Pe(e,t,o){switch(e){case Ne.Burn:return we(t,o);case Ne.Color:return ke(t,o);case Ne.Darken:return Ce(t,o);case Ne.Dodge:return Te(t,o);case Ne.Lighten:return De(t,o);case Ne.Multiply:return ze(t,o);case Ne.Overlay:return Le(t,o);case Ne.Screen:return He(t,o);default:throw new Error("Unknown blend mode")}}function Re(e,t){if(t.a>=1){return t}else if(t.a<=0){return new ColorRGBA64(e.r,e.g,e.b,1)}const o=t.a*t.r+(1-t.a)*e.r;const r=t.a*t.g+(1-t.a)*e.g;const a=t.a*t.b+(1-t.a)*e.b;return new ColorRGBA64(o,r,a,1)}function Ie(e,t,o){if(isNaN(e)||e<=0){return t}else if(e>=1){return o}return new g(c(e,t.r,o.r),c(e,t.g,o.g),c(e,t.b,o.b),c(e,t.a,o.a))}function Ae(e,t,o){if(isNaN(e)||e<=0){return t}else if(e>=1){return o}return new L(d(e,t.h,o.h),c(e,t.s,o.s),c(e,t.l,o.l))}function Me(e,t,o){if(isNaN(e)||e<=0){return t}else if(e>=1){return o}return new O(d(e,t.h,o.h),c(e,t.s,o.s),c(e,t.v,o.v))}function Ge(e,t,o){if(isNaN(e)||e<=0){return t}else if(e>=1){return o}return new P(c(e,t.x,o.x),c(e,t.y,o.y),c(e,t.z,o.z))}function Ee(e,t,o){if(isNaN(e)||e<=0){return t}else if(e>=1){return o}return new H(c(e,t.l,o.l),c(e,t.a,o.a),c(e,t.b,o.b))}function _e(e,t,o){if(isNaN(e)||e<=0){return t}else if(e>=1){return o}return new N(c(e,t.l,o.l),c(e,t.c,o.c),d(e,t.h,o.h))}var qe;(function(e){e[e["RGB"]=0]="RGB";e[e["HSL"]=1]="HSL";e[e["HSV"]=2]="HSV";e[e["XYZ"]=3]="XYZ";e[e["LAB"]=4]="LAB";e[e["LCH"]=5]="LCH"})(qe||(qe={}));function We(e,t,o,r){if(isNaN(e)||e<=0){return o}else if(e>=1){return r}switch(t){case qe.HSL:return W(Ae(e,q(o),q(r)));case qe.HSV:return X(Me(e,U(o),U(r)));case qe.XYZ:return ee(Ge(e,Q(o),Q(r)));case qe.LAB:return oe(Ee(e,te(o),te(r)));case qe.LCH:return ae(_e(e,re(o),re(r)));default:return Ie(e,o,r)}}class Ue{constructor(e){if(e==null||e.length===0){throw new Error("The stops argument must be non-empty")}else{this.stops=this.sortColorScaleStops(e)}}static createBalancedColorScale(e){if(e==null||e.length===0){throw new Error("The colors argument must be non-empty")}const t=new Array(e.length);for(let o=0;o<e.length;o++){if(o===0){t[o]={color:e[o],position:0}}else if(o===e.length-1){t[o]={color:e[o],position:1}}else{t[o]={color:e[o],position:o*(1/(e.length-1))}}}return new Ue(t)}getColor(e,t=qe.RGB){if(this.stops.length===1){return this.stops[0].color}else if(e<=0){return this.stops[0].color}else if(e>=1){return this.stops[this.stops.length-1].color}let o=0;for(let i=0;i<this.stops.length;i++){if(this.stops[i].position<=e){o=i}}let r=o+1;if(r>=this.stops.length){r=this.stops.length-1}const a=(e-this.stops[o].position)*(1/(this.stops[r].position-this.stops[o].position));return We(a,t,this.stops[o].color,this.stops[r].color)}trim(e,t,o=qe.RGB){if(e<0||t>1||t<e){throw new Error("Invalid bounds")}if(e===t){return new Ue([{color:this.getColor(e,o),position:0}])}const r=[];for(let n=0;n<this.stops.length;n++){if(this.stops[n].position>=e&&this.stops[n].position<=t){r.push(this.stops[n])}}if(r.length===0){return new Ue([{color:this.getColor(e),position:e},{color:this.getColor(t),position:t}])}if(r[0].position!==e){r.unshift({color:this.getColor(e),position:e})}if(r[r.length-1].position!==t){r.push({color:this.getColor(t),position:t})}const a=t-e;const i=new Array(r.length);for(let n=0;n<r.length;n++){i[n]={color:r[n].color,position:(r[n].position-e)/a}}return new Ue(i)}findNextColor(e,t,o=false,r=qe.RGB,a=.005,i=32){if(isNaN(e)||e<=0){e=0}else if(e>=1){e=1}const n=this.getColor(e,r);const l=o?0:1;const s=this.getColor(l,r);const c=M(n,s);if(c<=t){return l}let d=o?0:e;let u=o?e:0;let h=l;let p=0;while(p<=i){h=Math.abs(u-d)/2+d;const e=this.getColor(h,r);const i=M(n,e);if(Math.abs(i-t)<=a){return h}else if(i>t){if(o){d=h}else{u=h}}else{if(o){u=h}else{d=h}}p++}return h}clone(){const e=new Array(this.stops.length);for(let t=0;t<e.length;t++){e[t]={color:this.stops[t].color,position:this.stops[t].position}}return new Ue(e)}sortColorScaleStops(e){return e.sort(((e,t)=>{const o=e.position;const r=t.position;if(o<r){return-1}else if(o>r){return 1}else{return 0}}))}}class Xe{constructor(e){this.config=Object.assign({},Xe.defaultPaletteConfig,e);this.palette=[];this.updatePaletteColors()}updatePaletteGenerationValues(e){let t=false;for(const o in e){if(this.config[o]){if(this.config[o].equalValue){if(!this.config[o].equalValue(e[o])){this.config[o]=e[o];t=true}}else{if(e[o]!==this.config[o]){this.config[o]=e[o];t=true}}}}if(t){this.updatePaletteColors()}return t}updatePaletteColors(){const e=this.generatePaletteColorScale();for(let t=0;t<this.config.steps;t++){this.palette[t]=e.getColor(t/(this.config.steps-1),this.config.interpolationMode)}}generatePaletteColorScale(){const e=q(this.config.baseColor);const t=new Ue([{position:0,color:this.config.scaleColorLight},{position:.5,color:this.config.baseColor},{position:1,color:this.config.scaleColorDark}]);const o=t.trim(this.config.clipLight,1-this.config.clipDark);const r=o.getColor(0);const a=o.getColor(1);let i=r;let n=a;if(e.s>=this.config.saturationAdjustmentCutoff){i=me(i,this.config.saturationLight);n=me(n,this.config.saturationDark)}if(this.config.multiplyLight!==0){const e=ze(this.config.baseColor,i);i=We(this.config.multiplyLight,this.config.interpolationMode,i,e)}if(this.config.multiplyDark!==0){const e=ze(this.config.baseColor,n);n=We(this.config.multiplyDark,this.config.interpolationMode,n,e)}if(this.config.overlayLight!==0){const e=Le(this.config.baseColor,i);i=We(this.config.overlayLight,this.config.interpolationMode,i,e)}if(this.config.overlayDark!==0){const e=Le(this.config.baseColor,n);n=We(this.config.overlayDark,this.config.interpolationMode,n,e)}if(this.config.baseScalePosition){if(this.config.baseScalePosition<=0){return new Ue([{position:0,color:this.config.baseColor},{position:1,color:n.clamp()}])}else if(this.config.baseScalePosition>=1){return new Ue([{position:0,color:i.clamp()},{position:1,color:this.config.baseColor}])}return new Ue([{position:0,color:i.clamp()},{position:this.config.baseScalePosition,color:this.config.baseColor},{position:1,color:n.clamp()}])}return new Ue([{position:0,color:i.clamp()},{position:.5,color:this.config.baseColor},{position:1,color:n.clamp()}])}}Xe.defaultPaletteConfig={baseColor:S("#808080"),steps:11,interpolationMode:qe.RGB,scaleColorLight:new g(1,1,1,1),scaleColorDark:new g(0,0,0,1),clipLight:.185,clipDark:.16,saturationAdjustmentCutoff:.05,saturationLight:.35,saturationDark:1.25,overlayLight:0,overlayDark:.25,multiplyLight:0,multiplyDark:0,baseScalePosition:.5};Xe.greyscalePaletteConfig={baseColor:S("#808080"),steps:11,interpolationMode:qe.RGB,scaleColorLight:new g(1,1,1,1),scaleColorDark:new g(0,0,0,1),clipLight:0,clipDark:0,saturationAdjustmentCutoff:0,saturationLight:0,saturationDark:0,overlayLight:0,overlayDark:0,multiplyLight:0,multiplyDark:0,baseScalePosition:.5};function Ze(e,t){const o=rgbToHSL(e);let r=Number.MAX_VALUE;let a=0;for(let i=0;i<t.length;i++){const e=rgbToHSL(t[i]);const n=Math.abs(e.l-o.l);if(n<r){r=n;a=i}}return a}function Ye(e,t,o=Xe.greyscalePaletteConfig,r=Xe.defaultPaletteConfig){const a=new Xe(Object.assign(Object.assign({},o),{steps:t}));const i=Ze(e,a.palette);return new Xe(Object.assign(Object.assign({},r),{steps:t,baseColor:e,baseScalePosition:i/(t-1)}))}function Je(e,t,o){if(e.length<=1||t<=1){throw new Error("The input array and targetSize must both be greater than 1")}if(o&&t<=e.length){throw new Error("If preserveInputColors is true then targetSize must be greater than the length of the input array")}const r=new Array(e.length);if(o){for(let o=0;o<e.length;o++){const a=o/(e.length-1);let i=2;let n=0;for(let e=0;e<t;e++){const o=Math.abs(e/(t-1)-a);if(o<i){i=o;n=e}if(o===0){break}}r[o]={color:e[o],position:n/(t-1)}}}else{for(let t=0;t<r.length;t++){r[t]={color:e[t],position:t/(e.length-1)}}}const a=new ColorScale(r);const i=new Array(t);for(let n=0;n<t;n++){i[n]=a.getColor(n/(t-1))}return i}const Ke={targetSize:63,spacing:4,scaleColorLight:Xe.defaultPaletteConfig.scaleColorLight,scaleColorDark:Xe.defaultPaletteConfig.scaleColorDark};function Qe(e,t=Ke){if(e.length===0){return[]}const o=Math.floor((t.targetSize-((e.length-1)*t.spacing+1))/2);if(o<0){throw new Error("(targetSize - ((input.length - 1) * spacing + 1)) / 2 must be >= 0")}const r=new Array(e.length+2);r[0]={position:0,color:t.scaleColorLight};r[r.length-1]={position:1,color:t.scaleColorDark};for(let n=0;n<e.length;n++){r[n+1]={color:e[n],position:(n*t.spacing+o)/(t.targetSize-1)}}const a=new ColorScale(r);const i=new Array(t.targetSize);for(let n=0;n<t.targetSize;n++){i[n]=a.getColor(n/(t.targetSize-1))}return i}function et(e,t=11,o=Ke){const r=Ye(e,t);const a=Qe(r.palette,o);return{short:r.palette,long:a}}class tt{constructor(e){this.palette=[];this.config=Object.assign({},tt.defaultPaletteConfig,e);this.regenPalettes()}regenPalettes(){let e=this.config.steps;if(isNaN(e)||e<3){e=3}const t=.14;const o=.06;const r=new g(t,t,t,1);const a=94;const i=new Xe(Object.assign(Object.assign({},Xe.greyscalePaletteConfig),{baseColor:r,baseScalePosition:(1-t)*100/a,steps:e}));const n=i.palette;const l=R(this.config.baseColor);const s=q(this.config.baseColor).l;const c=(l+s)/2;const d=this.matchRelativeLuminanceIndex(c,n);const u=d/(e-1);const h=this.matchRelativeLuminanceIndex(t,n);const p=h/(e-1);const b=q(this.config.baseColor);const f=W(L.fromObject({h:b.h,s:b.s,l:t}));const m=W(L.fromObject({h:b.h,s:b.s,l:o}));const v=new Array(5);v[0]={position:0,color:new g(1,1,1,1)};v[1]={position:u,color:this.config.baseColor};v[2]={position:p,color:f};v[3]={position:.99,color:m};v[4]={position:1,color:new g(0,0,0,1)};const $=new Ue(v);this.palette=new Array(e);for(let g=0;g<e;g++){const t=$.getColor(g/(e-1),qe.RGB);this.palette[g]=t}}matchRelativeLuminanceIndex(e,t){let o=Number.MAX_VALUE;let r=0;let a=0;const i=t.length;for(;a<i;a++){const i=Math.abs(R(t[a])-e);if(i<o){o=i;r=a}}return r}}tt.defaultPaletteConfig={baseColor:S("#808080"),steps:94};function ot(e,t,o=0,r=e.length-1){if(r===o){return e[o]}const a=Math.floor((r-o)/2)+o;return t(e[a])?ot(e,t,o,a):ot(e,t,a+1,r)}function rt(e){return ge(e)?-1:1}function at(e,t,o){if(typeof e==="number"){return nt.from(se.create(e,t,o))}else{return nt.from(e)}}function it(e){return ce(e)?lt.from(e):lt.from(se.create(e.r,e.g,e.b))}const nt=Object.freeze({create:at,from:it});class lt{constructor(e,t){this.closestIndexCache=new Map;this.source=e;this.swatches=t;this.reversedSwatches=Object.freeze([...this.swatches].reverse());this.lastIndex=this.swatches.length-1}colorContrast(e,t,o,r){if(o===undefined){o=this.closestIndexOf(e)}let a=this.swatches;const i=this.lastIndex;let n=o;if(r===undefined){r=rt(e)}const l=o=>le(e,o)>=t;if(r===-1){a=this.reversedSwatches;n=i-n}return ot(a,l,n,i)}get(e){return this.swatches[e]||this.swatches[r(e,0,this.lastIndex)]}closestIndexOf(e){if(this.closestIndexCache.has(e.relativeLuminance)){return this.closestIndexCache.get(e.relativeLuminance)}let t=this.swatches.indexOf(e);if(t!==-1){this.closestIndexCache.set(e.relativeLuminance,t);return t}const o=this.swatches.reduce(((t,o)=>Math.abs(o.relativeLuminance-e.relativeLuminance)<Math.abs(t.relativeLuminance-e.relativeLuminance)?o:t));t=this.swatches.indexOf(o);this.closestIndexCache.set(e.relativeLuminance,t);return t}static from(e){return new lt(e,Object.freeze(new tt({baseColor:g.fromObject(e)}).palette.map((e=>{const t=S(e.toStringHexRGB());return se.create(t.r,t.g,t.b)}))))}}function st(e,t,o,r,a,i,n,l,s){const c=e.source;const d=t.closestIndexOf(o);const u=Math.max(n,l,s);const h=d>=u?-1:1;const p=e.closestIndexOf(c);const g=p;const b=g+h*-1*r;const f=b+h*a;const m=b+h*i;return{rest:e.get(b),hover:e.get(g),active:e.get(f),focus:e.get(m)}}function ct(e,t,o,r,a,i,n){const l=e.source;const s=e.closestIndexOf(l);const c=rt(t);const d=s+(c===1?Math.min(r,a):Math.max(c*r,c*a));const u=e.colorContrast(t,o,d,c);const h=e.closestIndexOf(u);const p=h+c*Math.abs(r-a);const g=c===1?r<a:c*r>c*a;let b;let f;if(g){b=h;f=p}else{b=p;f=h}return{rest:e.get(b),hover:e.get(f),active:e.get(b+c*i),focus:e.get(b+c*n)}}const dt=se.create(1,1,1);const ut=se.create(0,0,0);const ht=se.from(S("#808080"));const pt=se.from(S("#DA1A5F"));const gt=se.from(S("#D32F2F"));function bt(e,t){return e.contrast(dt)>=t?dt:ut}function ft(e,t,o,r,a,i){const n=e.closestIndexOf(t);const l=Math.max(o,r,a,i);const s=n>=l?-1:1;return{rest:e.get(n+s*o),hover:e.get(n+s*r),active:e.get(n+s*a),focus:e.get(n+s*i)}}function mt(e,t,o,r,a,i){const n=rt(t);const l=e.closestIndexOf(t);return{rest:e.get(l-n*o),hover:e.get(l-n*r),active:e.get(l-n*a),focus:e.get(l-n*i)}}function vt(e,t,o){const r=e.closestIndexOf(t);return e.get(r-(r<o?o*-1:o))}function $t(e,t,o,r,a,i,n,l,s,c){const d=Math.max(o,r,a,i,n,l,s,c);const u=e.closestIndexOf(t);const h=u>=d?-1:1;return{rest:e.get(u+h*o),hover:e.get(u+h*r),active:e.get(u+h*a),focus:e.get(u+h*i)}}function xt(e,t,o,r,a,i){const n=rt(t);const l=e.closestIndexOf(e.colorContrast(t,4.5));const s=l+n*Math.abs(o-r);const c=n===1?o<r:n*o>n*r;let d;let u;if(c){d=l;u=s}else{d=s;u=l}return{rest:e.get(d),hover:e.get(u),active:e.get(d+n*a),focus:e.get(d+n*i)}}function yt(e,t){return e.colorContrast(t,3.5)}function wt(e,t,o){return e.colorContrast(o,3.5,e.closestIndexOf(e.source),rt(t)*-1)}function kt(e,t){return e.colorContrast(t,14)}function Ft(e,t){return e.colorContrast(t,4.5)}function Ct(e,t,o){return e.get(e.closestIndexOf(ue(t))+o)}function St(e,t,o){const r=e.closestIndexOf(ue(t))-o;return e.get(r-o)}function Tt(e,t){return e.get(e.closestIndexOf(ue(t)))}function Vt(e,t,o,r,a,i){return Math.max(e.closestIndexOf(ue(t))+o,r,a,i)}function Dt(e,t,o,r,a,i){return e.get(Vt(e,t,o,r,a,i))}function jt(e,t,o,r,a,i){return e.get(Vt(e,t,o,r,a,i)+o)}function zt(e,t,o,r,a,i){return e.get(Vt(e,t,o,r,a,i)+o*2)}function Bt(e,t,o,r,a,i){const n=e.closestIndexOf(t);const l=rt(t);const s=n+l*o;const c=s+l*(r-o);const d=s+l*(a-o);const u=s+l*(i-o);return{rest:e.get(s),hover:e.get(c),active:e.get(d),focus:e.get(u)}}function Lt(e,t,o){return e.get(e.closestIndexOf(t)+rt(t)*o)}function Ot(e,t,o,r,a,i,n,l,s){const c=e.source;const d=t.closestIndexOf(o);const u=Math.max(n,l,s);const h=d>=u?-1:1;const p=e.closestIndexOf(c);const g=p;const b=g+h*-1*r;const f=b+h*a;const m=b+h*i;return{rest:e.get(b),hover:e.get(g),active:e.get(f),focus:e.get(m)}}function Ht(e,t,o,r,a,i,n){const l=e.source;const s=e.closestIndexOf(l);const c=ge(t)?-1:1;const d=s+(c===1?Math.min(r,a):Math.max(c*r,c*a));const u=e.colorContrast(t,o,d,c);const h=e.closestIndexOf(u);const p=h+c*Math.abs(r-a);const g=c===1?r<a:c*r>c*a;let b;let f;if(g){b=h;f=p}else{b=p;f=h}return{rest:e.get(b),hover:e.get(f),active:e.get(b+c*i),focus:e.get(b+c*n)}}function Nt(e,t){return e.contrast(dt)>=t?dt:ut}const{create:Pt}=be.DesignToken;function Rt(e){return be.DesignToken.create({name:e,cssCustomPropertyName:null})}const It=Pt("body-font").withDefault('aktiv-grotesk, "Segoe UI", Arial, Helvetica, sans-serif');const At=Pt("base-height-multiplier").withDefault(10);const Mt=Pt("base-horizontal-spacing-multiplier").withDefault(3);const Gt=Pt("base-layer-luminance").withDefault(he.DarkMode);const Et=Pt("control-corner-radius").withDefault(4);const _t=Pt("density").withDefault(0);const qt=Pt("design-unit").withDefault(4);const Wt=Pt("element-scale").withDefault(0);const Ut=Pt("direction").withDefault(fe.O.ltr);const Xt=Pt("disabled-opacity").withDefault(.4);const Zt=Pt("stroke-width").withDefault(1);const Yt=Pt("focus-stroke-width").withDefault(2);const Jt=Pt("type-ramp-base-font-size").withDefault("14px");const Kt=Pt("type-ramp-base-line-height").withDefault("20px");const Qt=Pt("type-ramp-minus-1-font-size").withDefault("12px");const eo=Pt("type-ramp-minus-1-line-height").withDefault("16px");const to=Pt("type-ramp-minus-2-font-size").withDefault("10px");const oo=Pt("type-ramp-minus-2-line-height").withDefault("16px");const ro=Pt("type-ramp-plus-1-font-size").withDefault("16px");const ao=Pt("type-ramp-plus-1-line-height").withDefault("24px");const io=Pt("type-ramp-plus-2-font-size").withDefault("20px");const no=Pt("type-ramp-plus-2-line-height").withDefault("28px");const lo=Pt("type-ramp-plus-3-font-size").withDefault("28px");const so=Pt("type-ramp-plus-3-line-height").withDefault("36px");const co=Pt("type-ramp-plus-4-font-size").withDefault("34px");const uo=Pt("type-ramp-plus-4-line-height").withDefault("44px");const ho=Pt("type-ramp-plus-5-font-size").withDefault("46px");const po=Pt("type-ramp-plus-5-line-height").withDefault("56px");const go=Pt("type-ramp-plus-6-font-size").withDefault("60px");const bo=Pt("type-ramp-plus-6-line-height").withDefault("72px");const fo=Rt("accent-fill-rest-delta").withDefault(0);const mo=Rt("accent-fill-hover-delta").withDefault(4);const vo=Rt("accent-fill-active-delta").withDefault(-5);const $o=Rt("accent-fill-focus-delta").withDefault(0);const xo=Rt("accent-foreground-rest-delta").withDefault(0);const yo=Rt("accent-foreground-hover-delta").withDefault(6);const wo=Rt("accent-foreground-active-delta").withDefault(-4);const ko=Rt("accent-foreground-focus-delta").withDefault(0);const Fo=Rt("neutral-fill-rest-delta").withDefault(7);const Co=Rt("neutral-fill-hover-delta").withDefault(10);const So=Rt("neutral-fill-active-delta").withDefault(5);const To=Rt("neutral-fill-focus-delta").withDefault(0);const Vo=Rt("neutral-fill-input-rest-delta").withDefault(0);const Do=Rt("neutral-fill-input-hover-delta").withDefault(0);const jo=Rt("neutral-fill-input-active-delta").withDefault(0);const zo=Rt("neutral-fill-input-focus-delta").withDefault(0);const Bo=Rt("neutral-fill-stealth-rest-delta").withDefault(0);const Lo=Rt("neutral-fill-stealth-hover-delta").withDefault(5);const Oo=Rt("neutral-fill-stealth-active-delta").withDefault(3);const Ho=Rt("neutral-fill-stealth-focus-delta").withDefault(0);const No=Rt("neutral-fill-strong-rest-delta").withDefault(0);const Po=Rt("neutral-fill-strong-hover-delta").withDefault(8);const Ro=Rt("neutral-fill-strong-active-delta").withDefault(-5);const Io=Rt("neutral-fill-strong-focus-delta").withDefault(0);const Ao=Rt("neutral-fill-layer-rest-delta").withDefault(3);const Mo=Rt("neutral-stroke-rest-delta").withDefault(25);const Go=Rt("neutral-stroke-hover-delta").withDefault(40);const Eo=Rt("neutral-stroke-active-delta").withDefault(16);const _o=Rt("neutral-stroke-focus-delta").withDefault(25);const qo=Rt("neutral-stroke-divider-rest-delta").withDefault(8);const Wo=Pt("neutral-color").withDefault(ht);const Uo=Rt("neutral-palette").withDefault((e=>nt.from(Wo.getValueFor(e))));const Xo=Pt("accent-color").withDefault(pt);const Zo=Rt("accent-palette").withDefault((e=>nt.from(Xo.getValueFor(e))));const Yo=Rt("neutral-layer-card-container-recipe").withDefault({evaluate:e=>Ct(Uo.getValueFor(e),Gt.getValueFor(e),Ao.getValueFor(e))});const Jo=Pt("neutral-layer-card-container").withDefault((e=>Yo.getValueFor(e).evaluate(e)));const Ko=Rt("neutral-layer-floating-recipe").withDefault({evaluate:e=>St(Uo.getValueFor(e),Gt.getValueFor(e),Ao.getValueFor(e))});const Qo=Pt("neutral-layer-floating").withDefault((e=>Ko.getValueFor(e).evaluate(e)));const er=Rt("neutral-layer-1-recipe").withDefault({evaluate:e=>Tt(Uo.getValueFor(e),Gt.getValueFor(e))});const tr=Pt("neutral-layer-1").withDefault((e=>er.getValueFor(e).evaluate(e)));const or=Rt("neutral-layer-2-recipe").withDefault({evaluate:e=>Dt(Uo.getValueFor(e),Gt.getValueFor(e),Ao.getValueFor(e),Fo.getValueFor(e),Co.getValueFor(e),So.getValueFor(e))});const rr=Pt("neutral-layer-2").withDefault((e=>or.getValueFor(e).evaluate(e)));const ar=Rt("neutral-layer-3-recipe").withDefault({evaluate:e=>jt(Uo.getValueFor(e),Gt.getValueFor(e),Ao.getValueFor(e),Fo.getValueFor(e),Co.getValueFor(e),So.getValueFor(e))});const ir=Pt("neutral-layer-3").withDefault((e=>ar.getValueFor(e).evaluate(e)));const nr=Rt("neutral-layer-4-recipe").withDefault({evaluate:e=>zt(Uo.getValueFor(e),Gt.getValueFor(e),Ao.getValueFor(e),Fo.getValueFor(e),Co.getValueFor(e),So.getValueFor(e))});const lr=Pt("neutral-layer-4").withDefault((e=>nr.getValueFor(e).evaluate(e)));const sr=Pt("fill-color").withDefault((e=>tr.getValueFor(e)));var cr;(function(e){e[e["normal"]=4.5]="normal";e[e["large"]=7]="large"})(cr||(cr={}));const dr=Pt({name:"accent-fill-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(e,t)=>st(Zo.getValueFor(e),Uo.getValueFor(e),t||sr.getValueFor(e),mo.getValueFor(e),vo.getValueFor(e),$o.getValueFor(e),Fo.getValueFor(e),Co.getValueFor(e),So.getValueFor(e))});const ur=Pt("accent-fill-rest").withDefault((e=>dr.getValueFor(e).evaluate(e).rest));const hr=Pt("accent-fill-hover").withDefault((e=>dr.getValueFor(e).evaluate(e).hover));const pr=Pt("accent-fill-active").withDefault((e=>dr.getValueFor(e).evaluate(e).active));const gr=Pt("accent-fill-focus").withDefault((e=>dr.getValueFor(e).evaluate(e).focus));const br=e=>(t,o)=>bt(o||ur.getValueFor(t),e);const fr=Rt("foreground-on-accent-recipe").withDefault({evaluate:(e,t)=>br(cr.normal)(e,t)});const mr=Pt("foreground-on-accent-rest").withDefault((e=>fr.getValueFor(e).evaluate(e,ur.getValueFor(e))));const vr=Pt("foreground-on-accent-hover").withDefault((e=>fr.getValueFor(e).evaluate(e,hr.getValueFor(e))));const $r=Pt("foreground-on-accent-active").withDefault((e=>fr.getValueFor(e).evaluate(e,pr.getValueFor(e))));const xr=Pt("foreground-on-accent-focus").withDefault((e=>fr.getValueFor(e).evaluate(e,gr.getValueFor(e))));const yr=Rt("foreground-on-accent-large-recipe").withDefault({evaluate:(e,t)=>br(cr.large)(e,t)});const wr=Pt("foreground-on-accent-rest-large").withDefault((e=>yr.getValueFor(e).evaluate(e,ur.getValueFor(e))));const kr=Pt("foreground-on-accent-hover-large").withDefault((e=>yr.getValueFor(e).evaluate(e,hr.getValueFor(e))));const Fr=Pt("foreground-on-accent-active-large").withDefault((e=>yr.getValueFor(e).evaluate(e,pr.getValueFor(e))));const Cr=Pt("foreground-on-accent-focus-large").withDefault((e=>yr.getValueFor(e).evaluate(e,gr.getValueFor(e))));const Sr=e=>(t,o)=>ct(Zo.getValueFor(t),o||sr.getValueFor(t),e,xo.getValueFor(t),yo.getValueFor(t),wo.getValueFor(t),ko.getValueFor(t));const Tr=Pt({name:"accent-foreground-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(e,t)=>Sr(cr.normal)(e,t)});const Vr=Pt("accent-foreground-rest").withDefault((e=>Tr.getValueFor(e).evaluate(e).rest));const Dr=Pt("accent-foreground-hover").withDefault((e=>Tr.getValueFor(e).evaluate(e).hover));const jr=Pt("accent-foreground-active").withDefault((e=>Tr.getValueFor(e).evaluate(e).active));const zr=Pt("accent-foreground-focus").withDefault((e=>Tr.getValueFor(e).evaluate(e).focus));const Br=Pt({name:"neutral-fill-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(e,t)=>ft(Uo.getValueFor(e),t||sr.getValueFor(e),Fo.getValueFor(e),Co.getValueFor(e),So.getValueFor(e),To.getValueFor(e))});const Lr=Pt("neutral-fill-rest").withDefault((e=>Br.getValueFor(e).evaluate(e).rest));const Or=Pt("neutral-fill-hover").withDefault((e=>Br.getValueFor(e).evaluate(e).hover));const Hr=Pt("neutral-fill-active").withDefault((e=>Br.getValueFor(e).evaluate(e).active));const Nr=Pt("neutral-fill-focus").withDefault((e=>Br.getValueFor(e).evaluate(e).focus));const Pr=Pt({name:"neutral-fill-input-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(e,t)=>mt(Uo.getValueFor(e),t||sr.getValueFor(e),Vo.getValueFor(e),Do.getValueFor(e),jo.getValueFor(e),zo.getValueFor(e))});const Rr=Pt("neutral-fill-input-rest").withDefault((e=>Pr.getValueFor(e).evaluate(e).rest));const Ir=Pt("neutral-fill-input-hover").withDefault((e=>Pr.getValueFor(e).evaluate(e).hover));const Ar=Pt("neutral-fill-input-active").withDefault((e=>Pr.getValueFor(e).evaluate(e).active));const Mr=Pt("neutral-fill-input-focus").withDefault((e=>Pr.getValueFor(e).evaluate(e).focus));const Gr=Pt({name:"neutral-fill-stealth-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(e,t)=>$t(Uo.getValueFor(e),t||sr.getValueFor(e),Bo.getValueFor(e),Lo.getValueFor(e),Oo.getValueFor(e),Ho.getValueFor(e),Fo.getValueFor(e),Co.getValueFor(e),So.getValueFor(e),To.getValueFor(e))});const Er=Pt("neutral-fill-stealth-rest").withDefault((e=>Gr.getValueFor(e).evaluate(e).rest));const _r=Pt("neutral-fill-stealth-hover").withDefault((e=>Gr.getValueFor(e).evaluate(e).hover));const qr=Pt("neutral-fill-stealth-active").withDefault((e=>Gr.getValueFor(e).evaluate(e).active));const Wr=Pt("neutral-fill-stealth-focus").withDefault((e=>Gr.getValueFor(e).evaluate(e).focus));const Ur=Pt({name:"neutral-fill-strong-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(e,t)=>xt(Uo.getValueFor(e),t||sr.getValueFor(e),No.getValueFor(e),Po.getValueFor(e),Ro.getValueFor(e),Io.getValueFor(e))});const Xr=Pt("neutral-fill-strong-rest").withDefault((e=>Ur.getValueFor(e).evaluate(e).rest));const Zr=Pt("neutral-fill-strong-hover").withDefault((e=>Ur.getValueFor(e).evaluate(e).hover));const Yr=Pt("neutral-fill-strong-active").withDefault((e=>Ur.getValueFor(e).evaluate(e).active));const Jr=Pt("neutral-fill-strong-focus").withDefault((e=>Ur.getValueFor(e).evaluate(e).focus));const Kr=Rt("neutral-fill-layer-recipe").withDefault({evaluate:(e,t)=>vt(Uo.getValueFor(e),t||sr.getValueFor(e),Ao.getValueFor(e))});const Qr=Pt("neutral-fill-layer-rest").withDefault((e=>Kr.getValueFor(e).evaluate(e)));const ea=Rt("focus-stroke-outer-recipe").withDefault({evaluate:e=>yt(Uo.getValueFor(e),sr.getValueFor(e))});const ta=Pt("focus-stroke-outer").withDefault((e=>ea.getValueFor(e).evaluate(e)));const oa=Rt("focus-stroke-inner-recipe").withDefault({evaluate:e=>wt(Zo.getValueFor(e),sr.getValueFor(e),ta.getValueFor(e))});const ra=Pt("focus-stroke-inner").withDefault((e=>oa.getValueFor(e).evaluate(e)));const aa=Rt("neutral-foreground-hint-recipe").withDefault({evaluate:e=>Ft(Uo.getValueFor(e),sr.getValueFor(e))});const ia=Pt("neutral-foreground-hint").withDefault((e=>aa.getValueFor(e).evaluate(e)));const na=Rt("neutral-foreground-recipe").withDefault({evaluate:e=>kt(Uo.getValueFor(e),sr.getValueFor(e))});const la=Pt("neutral-foreground-rest").withDefault((e=>na.getValueFor(e).evaluate(e)));const sa=Pt({name:"neutral-stroke-recipe",cssCustomPropertyName:null}).withDefault({evaluate:e=>Bt(Uo.getValueFor(e),sr.getValueFor(e),Mo.getValueFor(e),Go.getValueFor(e),Eo.getValueFor(e),_o.getValueFor(e))});const ca=Pt("neutral-stroke-rest").withDefault((e=>sa.getValueFor(e).evaluate(e).rest));const da=Pt("neutral-stroke-hover").withDefault((e=>sa.getValueFor(e).evaluate(e).hover));const ua=Pt("neutral-stroke-active").withDefault((e=>sa.getValueFor(e).evaluate(e).active));const ha=Pt("neutral-stroke-focus").withDefault((e=>sa.getValueFor(e).evaluate(e).focus));const pa=Rt("neutral-stroke-divider-recipe").withDefault({evaluate:(e,t)=>Lt(Uo.getValueFor(e),t||sr.getValueFor(e),qo.getValueFor(e))});const ga=Pt("neutral-stroke-divider-rest").withDefault((e=>pa.getValueFor(e).evaluate(e)));const ba=be.DesignToken.create({name:"height-number",cssCustomPropertyName:null}).withDefault((e=>(At.getValueFor(e)+_t.getValueFor(e))*qt.getValueFor(e)));const fa=Pt("error-color").withDefault(gt);const ma=Rt("error-palette").withDefault((e=>nt.from(fa.getValueFor(e))));const va=Pt({name:"error-fill-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(e,t)=>Ot(ma.getValueFor(e),Uo.getValueFor(e),t||sr.getValueFor(e),mo.getValueFor(e),vo.getValueFor(e),$o.getValueFor(e),Fo.getValueFor(e),Co.getValueFor(e),So.getValueFor(e))});const $a=Pt("error-fill-rest").withDefault((e=>va.getValueFor(e).evaluate(e).rest));const xa=Pt("error-fill-hover").withDefault((e=>va.getValueFor(e).evaluate(e).hover));const ya=Pt("error-fill-active").withDefault((e=>va.getValueFor(e).evaluate(e).active));const wa=Pt("error-fill-focus").withDefault((e=>va.getValueFor(e).evaluate(e).focus));const ka=e=>(t,o)=>Nt(o||$a.getValueFor(t),e);const Fa=Pt({name:"foreground-on-error-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(e,t)=>ka(cr.normal)(e,t)});const Ca=Pt("foreground-on-error-rest").withDefault((e=>Fa.getValueFor(e).evaluate(e,$a.getValueFor(e))));const Sa=Pt("foreground-on-error-hover").withDefault((e=>Fa.getValueFor(e).evaluate(e,xa.getValueFor(e))));const Ta=Pt("foreground-on-error-active").withDefault((e=>Fa.getValueFor(e).evaluate(e,ya.getValueFor(e))));const Va=Pt("foreground-on-error-focus").withDefault((e=>Fa.getValueFor(e).evaluate(e,wa.getValueFor(e))));const Da=Pt({name:"foreground-on-error-large-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(e,t)=>ka(cr.large)(e,t)});const ja=Pt("foreground-on-error-rest-large").withDefault((e=>Da.getValueFor(e).evaluate(e,$a.getValueFor(e))));const za=Pt("foreground-on-error-hover-large").withDefault((e=>Da.getValueFor(e).evaluate(e,xa.getValueFor(e))));const Ba=Pt("foreground-on-error-active-large").withDefault((e=>Da.getValueFor(e).evaluate(e,ya.getValueFor(e))));const La=Pt("foreground-on-error-focus-large").withDefault((e=>Da.getValueFor(e).evaluate(e,wa.getValueFor(e))));const Oa=e=>(t,o)=>Ht(ma.getValueFor(t),o||sr.getValueFor(t),e,xo.getValueFor(t),yo.getValueFor(t),wo.getValueFor(t),ko.getValueFor(t));const Ha=Pt({name:"error-foreground-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(e,t)=>Oa(cr.normal)(e,t)});const Na=Pt("error-foreground-rest").withDefault((e=>Ha.getValueFor(e).evaluate(e).rest));const Pa=Pt("error-foreground-hover").withDefault((e=>Ha.getValueFor(e).evaluate(e).hover));const Ra=Pt("error-foreground-active").withDefault((e=>Ha.getValueFor(e).evaluate(e).active));const Ia=Pt("error-foreground-focus").withDefault((e=>Ha.getValueFor(e).evaluate(e).focus));const Aa="data-jp-theme-name";const Ma="data-jp-theme-light";const Ga="--jp-layout-color1";let Ea=false;function _a(){if(!Ea){Ea=true;qa()}}function qa(){const e=()=>{const e=new MutationObserver((()=>{Xa()}));e.observe(document.body,{attributes:true,attributeFilter:[Aa],childList:false,characterData:false});Xa()};if(document.readyState==="complete"){e()}else{window.addEventListener("load",e)}}const Wa=e=>{const t=parseInt(e,10);return isNaN(t)?null:t};const Ua={"--jp-border-width":{converter:Wa,token:Zt},"--jp-border-radius":{converter:Wa,token:Et},[Ga]:{converter:(e,t)=>{const o=B(e);if(o){const e=q(o);const t=L.fromObject({h:e.h,s:e.s,l:.5});const r=W(t);return se.create(r.r,r.g,r.b)}else{return null}},token:Wo},"--jp-brand-color1":{converter:(e,t)=>{const o=B(e);if(o){const e=q(o);const r=t?1:-1;const a=L.fromObject({h:e.h,s:e.s,l:e.l+r*mo.getValueFor(document.body)/94});const i=W(a);return se.create(i.r,i.g,i.b)}else{return null}},token:Xo},"--jp-error-color1":{converter:(e,t)=>{const o=B(e);if(o){const e=q(o);const r=t?1:-1;const a=L.fromObject({h:e.h,s:e.s,l:e.l+r*mo.getValueFor(document.body)/94});const i=W(a);return se.create(i.r,i.g,i.b)}else{return null}},token:fa},"--jp-ui-font-family":{token:It},"--jp-ui-font-size1":{token:Jt}};function Xa(){var e;const t=getComputedStyle(document.body);const o=document.body.getAttribute(Ma);let r=false;if(o){r=o==="false"}else{const e=t.getPropertyValue(Ga).toString();if(e){const t=B(e);if(t){r=ge(se.create(t.r,t.g,t.b));console.debug(`Theme is ${r?"dark":"light"} based on '${Ga}' value: ${e}.`)}}}Gt.setValueFor(document.body,r?he.DarkMode:he.LightMode);for(const a in Ua){const o=Ua[a];const i=t.getPropertyValue(a).toString();if(document.body&&i!==""){const t=((e=o.converter)!==null&&e!==void 0?e:e=>e)(i.trim(),r);if(t!==null){o.token.setValueFor(document.body,t)}else{console.error(`Fail to parse value '${i}' for '${a}' as FAST design token.`)}}}}var Za=o(29690);const Ya=(e,t)=>(0,Za.css)`
  2. ${(0,be.display)("flex")} :host {
  3. box-sizing: border-box;
  4. flex-direction: column;
  5. font-family: ${It};
  6. font-size: ${Qt};
  7. line-height: ${eo};
  8. color: ${la};
  9. border-top: calc(${Zt} * 1px) solid ${ga};
  10. }
  11. `;var Ja;(function(e){e["Canvas"]="Canvas";e["CanvasText"]="CanvasText";e["LinkText"]="LinkText";e["VisitedText"]="VisitedText";e["ActiveText"]="ActiveText";e["ButtonFace"]="ButtonFace";e["ButtonText"]="ButtonText";e["Field"]="Field";e["FieldText"]="FieldText";e["Highlight"]="Highlight";e["HighlightText"]="HighlightText";e["GrayText"]="GrayText"})(Ja||(Ja={}));const Ka=(0,Za.cssPartial)`(${At} + ${_t} + ${Wt}) * ${qt}`;const Qa=(e,t)=>(0,Za.css)`
  12. ${(0,be.display)("flex")} :host {
  13. box-sizing: border-box;
  14. font-family: ${It};
  15. flex-direction: column;
  16. font-size: ${Qt};
  17. line-height: ${eo};
  18. border-bottom: calc(${Zt} * 1px) solid
  19. ${ga};
  20. }
  21. .region {
  22. display: none;
  23. padding: calc((6 + (${qt} * 2 * ${_t})) * 1px);
  24. }
  25. div.heading {
  26. display: grid;
  27. position: relative;
  28. grid-template-columns: calc(${Ka} * 1px) auto 1fr auto;
  29. color: ${la};
  30. }
  31. .button {
  32. appearance: none;
  33. border: none;
  34. background: none;
  35. grid-column: 3;
  36. outline: none;
  37. padding: 0 calc((6 + (${qt} * 2 * ${_t})) * 1px);
  38. text-align: left;
  39. height: calc(${Ka} * 1px);
  40. color: currentcolor;
  41. cursor: pointer;
  42. font-family: inherit;
  43. }
  44. .button:hover {
  45. color: currentcolor;
  46. }
  47. .button:active {
  48. color: currentcolor;
  49. }
  50. .button::before {
  51. content: '';
  52. position: absolute;
  53. top: 0;
  54. left: 0;
  55. right: 0;
  56. bottom: 0;
  57. cursor: pointer;
  58. }
  59. /* prettier-ignore */
  60. .button:${be.focusVisible}::before {
  61. outline: none;
  62. border: calc(${Yt} * 1px) solid ${gr};
  63. border-radius: calc(${Et} * 1px);
  64. }
  65. :host([expanded]) .region {
  66. display: block;
  67. }
  68. .icon {
  69. display: flex;
  70. align-items: center;
  71. justify-content: center;
  72. grid-column: 1;
  73. grid-row: 1;
  74. pointer-events: none;
  75. position: relative;
  76. }
  77. slot[name='expanded-icon'],
  78. slot[name='collapsed-icon'] {
  79. fill: currentcolor;
  80. }
  81. slot[name='collapsed-icon'] {
  82. display: flex;
  83. }
  84. :host([expanded]) slot[name='collapsed-icon'] {
  85. display: none;
  86. }
  87. slot[name='expanded-icon'] {
  88. display: none;
  89. }
  90. :host([expanded]) slot[name='expanded-icon'] {
  91. display: flex;
  92. }
  93. .start {
  94. display: flex;
  95. align-items: center;
  96. padding-inline-start: calc(${qt} * 1px);
  97. justify-content: center;
  98. grid-column: 2;
  99. position: relative;
  100. }
  101. .end {
  102. display: flex;
  103. align-items: center;
  104. justify-content: center;
  105. grid-column: 4;
  106. position: relative;
  107. }
  108. `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)`
  109. /* prettier-ignore */
  110. .button:${be.focusVisible}::before {
  111. border-color: ${Ja.Highlight};
  112. }
  113. :host slot[name='collapsed-icon'],
  114. :host([expanded]) slot[name='expanded-icon'] {
  115. fill: ${Ja.ButtonText};
  116. }
  117. `));class ei extends be.AccordionItem{}const ti=ei.compose({baseName:"accordion-item",baseClass:be.AccordionItem,template:be.accordionItemTemplate,styles:Qa,collapsedIcon:`\n <svg\n width="20"\n height="20"\n viewBox="0 0 16 16"\n xmlns="http://www.w3.org/2000/svg"\n >\n <path\n fill-rule="evenodd"\n clip-rule="evenodd"\n d="M5.00001 12.3263C5.00124 12.5147 5.05566 12.699 5.15699 12.8578C5.25831 13.0167 5.40243 13.1437 5.57273 13.2242C5.74304 13.3047 5.9326 13.3354 6.11959 13.3128C6.30659 13.2902 6.4834 13.2152 6.62967 13.0965L10.8988 8.83532C11.0739 8.69473 11.2153 8.51658 11.3124 8.31402C11.4096 8.11146 11.46 7.88966 11.46 7.66499C11.46 7.44033 11.4096 7.21853 11.3124 7.01597C11.2153 6.81341 11.0739 6.63526 10.8988 6.49467L6.62967 2.22347C6.48274 2.10422 6.30501 2.02912 6.11712 2.00691C5.92923 1.9847 5.73889 2.01628 5.56823 2.09799C5.39757 2.17969 5.25358 2.30817 5.153 2.46849C5.05241 2.62882 4.99936 2.8144 5.00001 3.00369V12.3263Z"\n />\n </svg>\n `,expandedIcon:`\n <svg\n width="20"\n height="20"\n viewBox="0 0 16 16"\n xmlns="http://www.w3.org/2000/svg"\n >\n <path\n fill-rule="evenodd"\n clip-rule="evenodd"\n transform="rotate(90,8,8)"\n d="M5.00001 12.3263C5.00124 12.5147 5.05566 12.699 5.15699 12.8578C5.25831 13.0167 5.40243 13.1437 5.57273 13.2242C5.74304 13.3047 5.9326 13.3354 6.11959 13.3128C6.30659 13.2902 6.4834 13.2152 6.62967 13.0965L10.8988 8.83532C11.0739 8.69473 11.2153 8.51658 11.3124 8.31402C11.4096 8.11146 11.46 7.88966 11.46 7.66499C11.46 7.44033 11.4096 7.21853 11.3124 7.01597C11.2153 6.81341 11.0739 6.63526 10.8988 6.49467L6.62967 2.22347C6.48274 2.10422 6.30501 2.02912 6.11712 2.00691C5.92923 1.9847 5.73889 2.01628 5.56823 2.09799C5.39757 2.17969 5.25358 2.30817 5.153 2.46849C5.05241 2.62882 4.99936 2.8144 5.00001 3.00369V12.3263Z"\n />\n </svg>\n `});class oi extends be.Accordion{}const ri=oi.compose({baseName:"accordion",baseClass:be.Accordion,template:be.accordionTemplate,styles:Ya});var ai=function(e,t){ai=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o))e[o]=t[o]};return ai(e,t)};function ii(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");ai(e,t);function o(){this.constructor=e}e.prototype=t===null?Object.create(t):(o.prototype=t.prototype,new o)}var ni=function(){ni=Object.assign||function e(t){for(var o,r=1,a=arguments.length;r<a;r++){o=arguments[r];for(var i in o)if(Object.prototype.hasOwnProperty.call(o,i))t[i]=o[i]}return t};return ni.apply(this,arguments)};function li(e,t){var o={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0)o[r]=e[r];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++){if(t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a]))o[r[a]]=e[r[a]]}return o}function si(e,t,o,r){var a=arguments.length,i=a<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,o):r,n;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")i=Reflect.decorate(e,t,o,r);else for(var l=e.length-1;l>=0;l--)if(n=e[l])i=(a<3?n(i):a>3?n(t,o,i):n(t,o))||i;return a>3&&i&&Object.defineProperty(t,o,i),i}function ci(e,t){return function(o,r){t(o,r,e)}}function di(e,t,o,r,a,i){function n(e){if(e!==void 0&&typeof e!=="function")throw new TypeError("Function expected");return e}var l=r.kind,s=l==="getter"?"get":l==="setter"?"set":"value";var c=!t&&e?r["static"]?e:e.prototype:null;var d=t||(c?Object.getOwnPropertyDescriptor(c,r.name):{});var u,h=false;for(var p=o.length-1;p>=0;p--){var g={};for(var b in r)g[b]=b==="access"?{}:r[b];for(var b in r.access)g.access[b]=r.access[b];g.addInitializer=function(e){if(h)throw new TypeError("Cannot add initializers after decoration has completed");i.push(n(e||null))};var f=(0,o[p])(l==="accessor"?{get:d.get,set:d.set}:d[s],g);if(l==="accessor"){if(f===void 0)continue;if(f===null||typeof f!=="object")throw new TypeError("Object expected");if(u=n(f.get))d.get=u;if(u=n(f.set))d.set=u;if(u=n(f.init))a.push(u)}else if(u=n(f)){if(l==="field")a.push(u);else d[s]=u}}if(c)Object.defineProperty(c,r.name,d);h=true}function ui(e,t,o){var r=arguments.length>2;for(var a=0;a<t.length;a++){o=r?t[a].call(e,o):t[a].call(e)}return r?o:void 0}function hi(e){return typeof e==="symbol"?e:"".concat(e)}function pi(e,t,o){if(typeof t==="symbol")t=t.description?"[".concat(t.description,"]"):"";return Object.defineProperty(e,"name",{configurable:true,value:o?"".concat(o," ",t):t})}function gi(e,t){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(e,t)}function bi(e,t,o,r){function a(e){return e instanceof o?e:new o((function(t){t(e)}))}return new(o||(o=Promise))((function(o,i){function n(e){try{s(r.next(e))}catch(t){i(t)}}function l(e){try{s(r["throw"](e))}catch(t){i(t)}}function s(e){e.done?o(e.value):a(e.value).then(n,l)}s((r=r.apply(e,t||[])).next())}))}function fi(e,t){var o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,a,i,n;return n={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(n[Symbol.iterator]=function(){return this}),n;function l(e){return function(t){return s([e,t])}}function s(l){if(r)throw new TypeError("Generator is already executing.");while(n&&(n=0,l[0]&&(o=0)),o)try{if(r=1,a&&(i=l[0]&2?a["return"]:l[0]?a["throw"]||((i=a["return"])&&i.call(a),0):a.next)&&!(i=i.call(a,l[1])).done)return i;if(a=0,i)l=[l[0]&2,i.value];switch(l[0]){case 0:case 1:i=l;break;case 4:o.label++;return{value:l[1],done:false};case 5:o.label++;a=l[1];l=[0];continue;case 7:l=o.ops.pop();o.trys.pop();continue;default:if(!(i=o.trys,i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){o=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){o.label=l[1];break}if(l[0]===6&&o.label<i[1]){o.label=i[1];i=l;break}if(i&&o.label<i[2]){o.label=i[2];o.ops.push(l);break}if(i[2])o.ops.pop();o.trys.pop();continue}l=t.call(e,o)}catch(s){l=[6,s];a=0}finally{r=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:true}}}var mi=Object.create?function(e,t,o,r){if(r===undefined)r=o;var a=Object.getOwnPropertyDescriptor(t,o);if(!a||("get"in a?!t.__esModule:a.writable||a.configurable)){a={enumerable:true,get:function(){return t[o]}}}Object.defineProperty(e,r,a)}:function(e,t,o,r){if(r===undefined)r=o;e[r]=t[o]};function vi(e,t){for(var o in e)if(o!=="default"&&!Object.prototype.hasOwnProperty.call(t,o))mi(t,e,o)}function $i(e){var t=typeof Symbol==="function"&&Symbol.iterator,o=t&&e[t],r=0;if(o)return o.call(e);if(e&&typeof e.length==="number")return{next:function(){if(e&&r>=e.length)e=void 0;return{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function xi(e,t){var o=typeof Symbol==="function"&&e[Symbol.iterator];if(!o)return e;var r=o.call(e),a,i=[],n;try{while((t===void 0||t-- >0)&&!(a=r.next()).done)i.push(a.value)}catch(l){n={error:l}}finally{try{if(a&&!a.done&&(o=r["return"]))o.call(r)}finally{if(n)throw n.error}}return i}function yi(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(xi(arguments[t]));return e}function wi(){for(var e=0,t=0,o=arguments.length;t<o;t++)e+=arguments[t].length;for(var r=Array(e),a=0,t=0;t<o;t++)for(var i=arguments[t],n=0,l=i.length;n<l;n++,a++)r[a]=i[n];return r}function ki(e,t,o){if(o||arguments.length===2)for(var r=0,a=t.length,i;r<a;r++){if(i||!(r in t)){if(!i)i=Array.prototype.slice.call(t,0,r);i[r]=t[r]}}return e.concat(i||Array.prototype.slice.call(t))}function Fi(e){return this instanceof Fi?(this.v=e,this):new Fi(e)}function Ci(e,t,o){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=o.apply(e,t||[]),a,i=[];return a={},n("next"),n("throw"),n("return"),a[Symbol.asyncIterator]=function(){return this},a;function n(e){if(r[e])a[e]=function(t){return new Promise((function(o,r){i.push([e,t,o,r])>1||l(e,t)}))}}function l(e,t){try{s(r[e](t))}catch(o){u(i[0][3],o)}}function s(e){e.value instanceof Fi?Promise.resolve(e.value.v).then(c,d):u(i[0][2],e)}function c(e){l("next",e)}function d(e){l("throw",e)}function u(e,t){if(e(t),i.shift(),i.length)l(i[0][0],i[0][1])}}function Si(e){var t,o;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,a){t[r]=e[r]?function(t){return(o=!o)?{value:Fi(e[r](t)),done:false}:a?a(t):t}:a}}function Ti(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],o;return t?t.call(e):(e=typeof $i==="function"?$i(e):e[Symbol.iterator](),o={},r("next"),r("throw"),r("return"),o[Symbol.asyncIterator]=function(){return this},o);function r(t){o[t]=e[t]&&function(o){return new Promise((function(r,i){o=e[t](o),a(r,i,o.done,o.value)}))}}function a(e,t,o,r){Promise.resolve(r).then((function(t){e({value:t,done:o})}),t)}}function Vi(e,t){if(Object.defineProperty){Object.defineProperty(e,"raw",{value:t})}else{e.raw=t}return e}var Di=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t};function ji(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o))mi(t,e,o);Di(t,e);return t}function zi(e){return e&&e.__esModule?e:{default:e}}function Bi(e,t,o,r){if(o==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t==="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return o==="m"?r:o==="a"?r.call(e):r?r.value:t.get(e)}function Li(e,t,o,r,a){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof t==="function"?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?a.call(e,o):a?a.value=o:t.set(e,o),o}function Oi(e,t){if(t===null||typeof t!=="object"&&typeof t!=="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e==="function"?t===e:e.has(t)}const Hi=(0,Za.css)`
  118. ${(0,be.display)("inline-flex")} :host {
  119. font-family: ${It};
  120. outline: none;
  121. font-size: ${Jt};
  122. line-height: ${Kt};
  123. height: calc(${Ka} * 1px);
  124. min-width: calc(${Ka} * 1px);
  125. background-color: ${Lr};
  126. color: ${la};
  127. border-radius: calc(${Et} * 1px);
  128. fill: currentcolor;
  129. cursor: pointer;
  130. margin: calc((${Yt} + 2) * 1px);
  131. }
  132. .control {
  133. background: transparent;
  134. height: inherit;
  135. flex-grow: 1;
  136. box-sizing: border-box;
  137. display: inline-flex;
  138. justify-content: center;
  139. align-items: center;
  140. padding: 0
  141. max(
  142. 1px,
  143. calc((10 + (${qt} * 2 * (${_t} + ${Wt})))) * 1px
  144. );
  145. white-space: nowrap;
  146. outline: none;
  147. text-decoration: none;
  148. border: calc(${Zt} * 1px) solid transparent;
  149. color: inherit;
  150. border-radius: inherit;
  151. fill: inherit;
  152. cursor: inherit;
  153. font-family: inherit;
  154. font-size: inherit;
  155. line-height: inherit;
  156. }
  157. :host(:hover) {
  158. background-color: ${Or};
  159. }
  160. :host(:active) {
  161. background-color: ${Hr};
  162. }
  163. :host([aria-pressed='true']) {
  164. box-shadow: inset 0px 0px 2px 2px ${Yr};
  165. }
  166. :host([minimal]),
  167. :host([scale='xsmall']) {
  168. --element-scale: -4;
  169. }
  170. :host([scale='small']) {
  171. --element-scale: -2;
  172. }
  173. :host([scale='medium']) {
  174. --element-scale: 0;
  175. }
  176. :host([scale='large']) {
  177. --element-scale: 2;
  178. }
  179. :host([scale='xlarge']) {
  180. --element-scale: 4;
  181. }
  182. /* prettier-ignore */
  183. .control:${be.focusVisible} {
  184. outline: calc(${Yt} * 1px) solid ${Jr};
  185. outline-offset: 2px;
  186. -moz-outline-radius: 0px;
  187. }
  188. .control::-moz-focus-inner {
  189. border: 0;
  190. }
  191. .start,
  192. .end {
  193. display: flex;
  194. }
  195. .control.icon-only {
  196. padding: 0;
  197. line-height: 0;
  198. }
  199. ::slotted(svg) {
  200. ${""} width: 16px;
  201. height: 16px;
  202. pointer-events: none;
  203. }
  204. .start {
  205. margin-inline-end: 11px;
  206. }
  207. .end {
  208. margin-inline-start: 11px;
  209. }
  210. `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)`
  211. :host .control {
  212. background-color: ${Ja.ButtonFace};
  213. border-color: ${Ja.ButtonText};
  214. color: ${Ja.ButtonText};
  215. fill: currentColor;
  216. }
  217. :host(:hover) .control {
  218. forced-color-adjust: none;
  219. background-color: ${Ja.Highlight};
  220. color: ${Ja.HighlightText};
  221. }
  222. /* prettier-ignore */
  223. .control:${be.focusVisible} {
  224. forced-color-adjust: none;
  225. background-color: ${Ja.Highlight};
  226. outline-color: ${Ja.ButtonText};
  227. color: ${Ja.HighlightText};
  228. }
  229. .control:hover,
  230. :host([appearance='outline']) .control:hover {
  231. border-color: ${Ja.ButtonText};
  232. }
  233. :host([href]) .control {
  234. border-color: ${Ja.LinkText};
  235. color: ${Ja.LinkText};
  236. }
  237. :host([href]) .control:hover,
  238. :host([href]) .control:${be.focusVisible} {
  239. forced-color-adjust: none;
  240. background: ${Ja.ButtonFace};
  241. outline-color: ${Ja.LinkText};
  242. color: ${Ja.LinkText};
  243. fill: currentColor;
  244. }
  245. `));const Ni=(0,Za.css)`
  246. :host([appearance='accent']) {
  247. background: ${ur};
  248. color: ${mr};
  249. }
  250. :host([appearance='accent']:hover) {
  251. background: ${hr};
  252. color: ${vr};
  253. }
  254. :host([appearance='accent'][aria-pressed='true']) {
  255. box-shadow: inset 0px 0px 2px 2px ${jr};
  256. }
  257. :host([appearance='accent']:active) .control:active {
  258. background: ${pr};
  259. color: ${$r};
  260. }
  261. :host([appearance="accent"]) .control:${be.focusVisible} {
  262. outline-color: ${gr};
  263. }
  264. `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)`
  265. :host([appearance='accent']) .control {
  266. forced-color-adjust: none;
  267. background: ${Ja.Highlight};
  268. color: ${Ja.HighlightText};
  269. }
  270. :host([appearance='accent']) .control:hover,
  271. :host([appearance='accent']:active) .control:active {
  272. background: ${Ja.HighlightText};
  273. border-color: ${Ja.Highlight};
  274. color: ${Ja.Highlight};
  275. }
  276. :host([appearance="accent"]) .control:${be.focusVisible} {
  277. outline-color: ${Ja.Highlight};
  278. }
  279. :host([appearance='accent'][href]) .control {
  280. background: ${Ja.LinkText};
  281. color: ${Ja.HighlightText};
  282. }
  283. :host([appearance='accent'][href]) .control:hover {
  284. background: ${Ja.ButtonFace};
  285. border-color: ${Ja.LinkText};
  286. box-shadow: none;
  287. color: ${Ja.LinkText};
  288. fill: currentColor;
  289. }
  290. :host([appearance="accent"][href]) .control:${be.focusVisible} {
  291. outline-color: ${Ja.HighlightText};
  292. }
  293. `));const Pi=(0,Za.css)`
  294. :host([appearance='error']) {
  295. background: ${$a};
  296. color: ${mr};
  297. }
  298. :host([appearance='error']:hover) {
  299. background: ${xa};
  300. color: ${vr};
  301. }
  302. :host([appearance='error'][aria-pressed='true']) {
  303. box-shadow: inset 0px 0px 2px 2px ${Ra};
  304. }
  305. :host([appearance='error']:active) .control:active {
  306. background: ${ya};
  307. color: ${$r};
  308. }
  309. :host([appearance="error"]) .control:${be.focusVisible} {
  310. outline-color: ${wa};
  311. }
  312. `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)`
  313. :host([appearance='error']) .control {
  314. forced-color-adjust: none;
  315. background: ${Ja.Highlight};
  316. color: ${Ja.HighlightText};
  317. }
  318. :host([appearance='error']) .control:hover,
  319. :host([appearance='error']:active) .control:active {
  320. background: ${Ja.HighlightText};
  321. border-color: ${Ja.Highlight};
  322. color: ${Ja.Highlight};
  323. }
  324. :host([appearance="error"]) .control:${be.focusVisible} {
  325. outline-color: ${Ja.Highlight};
  326. }
  327. :host([appearance='error'][href]) .control {
  328. background: ${Ja.LinkText};
  329. color: ${Ja.HighlightText};
  330. }
  331. :host([appearance='error'][href]) .control:hover {
  332. background: ${Ja.ButtonFace};
  333. border-color: ${Ja.LinkText};
  334. box-shadow: none;
  335. color: ${Ja.LinkText};
  336. fill: currentColor;
  337. }
  338. :host([appearance="error"][href]) .control:${be.focusVisible} {
  339. outline-color: ${Ja.HighlightText};
  340. }
  341. `));const Ri=(0,Za.css)`
  342. :host([appearance='hypertext']) {
  343. font-size: inherit;
  344. line-height: inherit;
  345. height: auto;
  346. min-width: 0;
  347. background: transparent;
  348. }
  349. :host([appearance='hypertext']) .control {
  350. display: inline;
  351. padding: 0;
  352. border: none;
  353. box-shadow: none;
  354. border-radius: 0;
  355. line-height: 1;
  356. }
  357. :host a.control:not(:link) {
  358. background-color: transparent;
  359. cursor: default;
  360. }
  361. :host([appearance='hypertext']) .control:link,
  362. :host([appearance='hypertext']) .control:visited {
  363. background: transparent;
  364. color: ${Vr};
  365. border-bottom: calc(${Zt} * 1px) solid ${Vr};
  366. }
  367. :host([appearance='hypertext']:hover),
  368. :host([appearance='hypertext']) .control:hover {
  369. background: transparent;
  370. border-bottom-color: ${Dr};
  371. }
  372. :host([appearance='hypertext']:active),
  373. :host([appearance='hypertext']) .control:active {
  374. background: transparent;
  375. border-bottom-color: ${jr};
  376. }
  377. :host([appearance="hypertext"]) .control:${be.focusVisible} {
  378. outline-color: transparent;
  379. border-bottom: calc(${Yt} * 1px) solid ${ta};
  380. margin-bottom: calc(calc(${Zt} - ${Yt}) * 1px);
  381. }
  382. `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)`
  383. :host([appearance='hypertext']:hover) {
  384. background-color: ${Ja.ButtonFace};
  385. color: ${Ja.ButtonText};
  386. }
  387. :host([appearance="hypertext"][href]) .control:hover,
  388. :host([appearance="hypertext"][href]) .control:active,
  389. :host([appearance="hypertext"][href]) .control:${be.focusVisible} {
  390. color: ${Ja.LinkText};
  391. border-bottom-color: ${Ja.LinkText};
  392. box-shadow: none;
  393. }
  394. `));const Ii=(0,Za.css)`
  395. :host([appearance='lightweight']) {
  396. background: transparent;
  397. color: ${Vr};
  398. }
  399. :host([appearance='lightweight']) .control {
  400. padding: 0;
  401. height: initial;
  402. border: none;
  403. box-shadow: none;
  404. border-radius: 0;
  405. }
  406. :host([appearance='lightweight']:hover) {
  407. background: transparent;
  408. color: ${Dr};
  409. }
  410. :host([appearance='lightweight']:active) {
  411. background: transparent;
  412. color: ${jr};
  413. }
  414. :host([appearance='lightweight']) .content {
  415. position: relative;
  416. }
  417. :host([appearance='lightweight']) .content::before {
  418. content: '';
  419. display: block;
  420. height: calc(${Zt} * 1px);
  421. position: absolute;
  422. top: calc(1em + 4px);
  423. width: 100%;
  424. }
  425. :host([appearance='lightweight']:hover) .content::before {
  426. background: ${Dr};
  427. }
  428. :host([appearance='lightweight']:active) .content::before {
  429. background: ${jr};
  430. }
  431. :host([appearance="lightweight"]) .control:${be.focusVisible} {
  432. outline-color: transparent;
  433. }
  434. :host([appearance="lightweight"]) .control:${be.focusVisible} .content::before {
  435. background: ${la};
  436. height: calc(${Yt} * 1px);
  437. }
  438. `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)`
  439. :host([appearance="lightweight"]) .control:hover,
  440. :host([appearance="lightweight"]) .control:${be.focusVisible} {
  441. forced-color-adjust: none;
  442. background: ${Ja.ButtonFace};
  443. color: ${Ja.Highlight};
  444. }
  445. :host([appearance="lightweight"]) .control:hover .content::before,
  446. :host([appearance="lightweight"]) .control:${be.focusVisible} .content::before {
  447. background: ${Ja.Highlight};
  448. }
  449. :host([appearance="lightweight"][href]) .control:hover,
  450. :host([appearance="lightweight"][href]) .control:${be.focusVisible} {
  451. background: ${Ja.ButtonFace};
  452. box-shadow: none;
  453. color: ${Ja.LinkText};
  454. }
  455. :host([appearance="lightweight"][href]) .control:hover .content::before,
  456. :host([appearance="lightweight"][href]) .control:${be.focusVisible} .content::before {
  457. background: ${Ja.LinkText};
  458. }
  459. `));const Ai=(0,Za.css)`
  460. :host([appearance='outline']) {
  461. background: transparent;
  462. border-color: ${ur};
  463. }
  464. :host([appearance='outline']:hover) {
  465. border-color: ${hr};
  466. }
  467. :host([appearance='outline']:active) {
  468. border-color: ${pr};
  469. }
  470. :host([appearance='outline']) .control {
  471. border-color: inherit;
  472. }
  473. :host([appearance="outline"]) .control:${be.focusVisible} {
  474. outline-color: ${gr};
  475. }
  476. `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)`
  477. :host([appearance='outline']) .control {
  478. border-color: ${Ja.ButtonText};
  479. }
  480. :host([appearance="outline"]) .control:${be.focusVisible} {
  481. forced-color-adjust: none;
  482. background-color: ${Ja.Highlight};
  483. outline-color: ${Ja.ButtonText};
  484. color: ${Ja.HighlightText};
  485. fill: currentColor;
  486. }
  487. :host([appearance='outline'][href]) .control {
  488. background: ${Ja.ButtonFace};
  489. border-color: ${Ja.LinkText};
  490. color: ${Ja.LinkText};
  491. fill: currentColor;
  492. }
  493. :host([appearance="outline"][href]) .control:hover,
  494. :host([appearance="outline"][href]) .control:${be.focusVisible} {
  495. forced-color-adjust: none;
  496. outline-color: ${Ja.LinkText};
  497. }
  498. `));const Mi=(0,Za.css)`
  499. :host([appearance='stealth']),
  500. :host([appearance='stealth'][disabled]:active),
  501. :host([appearance='stealth'][disabled]:hover) {
  502. background: transparent;
  503. }
  504. :host([appearance='stealth']:hover) {
  505. background: ${_r};
  506. }
  507. :host([appearance='stealth']:active) {
  508. background: ${qr};
  509. }
  510. :host([appearance='stealth']) .control:${be.focusVisible} {
  511. outline-color: ${gr};
  512. }
  513. /* Make the focus outline displayed within the button if
  514. it is in a start or end slot; e.g. in a tree item
  515. This will make the focus outline bounded within the container.
  516. */
  517. :host([appearance='stealth'][slot="end"]) .control:${be.focusVisible},
  518. :host([appearance='stealth'][slot="start"]) .control:${be.focusVisible} {
  519. outline-offset: -2px;
  520. }
  521. `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)`
  522. :host([appearance='stealth']),
  523. :host([appearance='stealth']) .control {
  524. forced-color-adjust: none;
  525. background: ${Ja.ButtonFace};
  526. border-color: transparent;
  527. color: ${Ja.ButtonText};
  528. fill: currentColor;
  529. }
  530. :host([appearance='stealth']:hover) .control {
  531. background: ${Ja.Highlight};
  532. border-color: ${Ja.Highlight};
  533. color: ${Ja.HighlightText};
  534. fill: currentColor;
  535. }
  536. :host([appearance="stealth"]:${be.focusVisible}) .control {
  537. outline-color: ${Ja.Highlight};
  538. color: ${Ja.HighlightText};
  539. fill: currentColor;
  540. }
  541. :host([appearance='stealth'][href]) .control {
  542. color: ${Ja.LinkText};
  543. }
  544. :host([appearance="stealth"][href]:hover) .control,
  545. :host([appearance="stealth"][href]:${be.focusVisible}) .control {
  546. background: ${Ja.LinkText};
  547. border-color: ${Ja.LinkText};
  548. color: ${Ja.HighlightText};
  549. fill: currentColor;
  550. }
  551. :host([appearance="stealth"][href]:${be.focusVisible}) .control {
  552. forced-color-adjust: none;
  553. box-shadow: 0 0 0 1px ${Ja.LinkText};
  554. }
  555. `));function Gi(e,t){return new be.PropertyStyleSheetBehavior("appearance",e,t)}const Ei=(e,t)=>(0,Za.css)`
  556. ${Hi}
  557. `.withBehaviors(Gi("accent",Ni),Gi("hypertext",Ri),Gi("lightweight",Ii),Gi("outline",Ai),Gi("stealth",Mi));class _i extends be.Anchor{appearanceChanged(e,t){if(this.$fastController.isConnected){this.classList.remove(e);this.classList.add(t)}}connectedCallback(){super.connectedCallback();if(!this.appearance){this.appearance="neutral"}}defaultSlottedContentChanged(e,t){const o=this.defaultSlottedContent.filter((e=>e.nodeType===Node.ELEMENT_NODE));if(o.length===1&&o[0]instanceof SVGElement){this.control.classList.add("icon-only")}else{this.control.classList.remove("icon-only")}}}si([Za.attr],_i.prototype,"appearance",void 0);const qi=_i.compose({baseName:"anchor",baseClass:be.Anchor,template:be.anchorTemplate,styles:Ei,shadowOptions:{delegatesFocus:true}});const Wi=(e,t)=>(0,Za.css)`
  558. :host {
  559. contain: layout;
  560. display: block;
  561. }
  562. `;class Ui extends be.AnchoredRegion{}const Xi=Ui.compose({baseName:"anchored-region",baseClass:be.AnchoredRegion,template:be.anchoredRegionTemplate,styles:Wi});class Zi{constructor(e,t){this.cache=new WeakMap;this.ltr=e;this.rtl=t}bind(e){this.attach(e)}unbind(e){const t=this.cache.get(e);if(t){Ut.unsubscribe(t)}}attach(e){const t=this.cache.get(e)||new Yi(this.ltr,this.rtl,e);const o=Ut.getValueFor(e);Ut.subscribe(t);t.attach(o);this.cache.set(e,t)}}class Yi{constructor(e,t,o){this.ltr=e;this.rtl=t;this.source=o;this.attached=null}handleChange({target:e,token:t}){this.attach(t.getValueFor(e))}attach(e){if(this.attached!==this[e]){if(this.attached!==null){this.source.$fastController.removeStyles(this.attached)}this.attached=this[e];if(this.attached!==null){this.source.$fastController.addStyles(this.attached)}}}}const Ji=(e,t)=>(0,Za.css)`
  563. ::slotted(${e.tagFor(be.Badge)}) {
  564. left: 0;
  565. }
  566. `;const Ki=(e,t)=>(0,Za.css)`
  567. ::slotted(${e.tagFor(be.Badge)}) {
  568. right: 0;
  569. }
  570. `;const Qi=(e,t)=>(0,Za.css)`
  571. ${(0,be.display)("flex")} :host {
  572. position: relative;
  573. height: var(--avatar-size, var(--avatar-size-default));
  574. width: var(--avatar-size, var(--avatar-size-default));
  575. --avatar-size-default: calc(
  576. (
  577. (${At} + ${_t}) * ${qt} +
  578. ((${qt} * 8) - 40)
  579. ) * 1px
  580. );
  581. --avatar-text-size: ${Jt};
  582. --avatar-text-ratio: ${qt};
  583. }
  584. .link {
  585. text-decoration: none;
  586. color: ${la};
  587. display: flex;
  588. flex-direction: row;
  589. justify-content: center;
  590. align-items: center;
  591. min-width: 100%;
  592. }
  593. .square {
  594. border-radius: calc(${Et} * 1px);
  595. min-width: 100%;
  596. overflow: hidden;
  597. }
  598. .circle {
  599. border-radius: 100%;
  600. min-width: 100%;
  601. overflow: hidden;
  602. }
  603. .backplate {
  604. position: relative;
  605. display: flex;
  606. background-color: ${ur};
  607. }
  608. .media,
  609. ::slotted(img) {
  610. max-width: 100%;
  611. position: absolute;
  612. display: block;
  613. }
  614. .content {
  615. font-size: calc(
  616. (
  617. var(--avatar-text-size) +
  618. var(--avatar-size, var(--avatar-size-default))
  619. ) / var(--avatar-text-ratio)
  620. );
  621. line-height: var(--avatar-size, var(--avatar-size-default));
  622. display: block;
  623. min-height: var(--avatar-size, var(--avatar-size-default));
  624. }
  625. ::slotted(${e.tagFor(be.Badge)}) {
  626. position: absolute;
  627. display: block;
  628. }
  629. `.withBehaviors(new Zi(Ki(e,t),Ji(e,t)));class en extends be.Avatar{}si([(0,Za.attr)({attribute:"src"})],en.prototype,"imgSrc",void 0);si([Za.attr],en.prototype,"alt",void 0);const tn=(0,Za.html)`
  630. ${(0,Za.when)((e=>e.imgSrc),(0,Za.html)`
  631. <img
  632. src="${e=>e.imgSrc}"
  633. alt="${e=>e.alt}"
  634. slot="media"
  635. class="media"
  636. part="media"
  637. />
  638. `)}
  639. `;const on=en.compose({baseName:"avatar",baseClass:be.Avatar,template:be.avatarTemplate,styles:Qi,media:tn,shadowOptions:{delegatesFocus:true}});const rn=(e,t)=>(0,Za.css)`
  640. ${(0,be.display)("inline-block")} :host {
  641. box-sizing: border-box;
  642. font-family: ${It};
  643. font-size: ${Qt};
  644. line-height: ${eo};
  645. }
  646. .control {
  647. border-radius: calc(${Et} * 1px);
  648. padding: calc(((${qt} * 0.5) - ${Zt}) * 1px)
  649. calc((${qt} - ${Zt}) * 1px);
  650. color: ${la};
  651. font-weight: 600;
  652. border: calc(${Zt} * 1px) solid transparent;
  653. background-color: ${Lr};
  654. }
  655. .control[style] {
  656. font-weight: 400;
  657. }
  658. :host([circular]) .control {
  659. border-radius: 100px;
  660. padding: 0 calc(${qt} * 1px);
  661. height: calc((${Ka} - (${qt} * 3)) * 1px);
  662. min-width: calc((${Ka} - (${qt} * 3)) * 1px);
  663. display: flex;
  664. align-items: center;
  665. justify-content: center;
  666. box-sizing: border-box;
  667. }
  668. `;class an extends be.Badge{}const nn=an.compose({baseName:"badge",baseClass:be.Badge,template:be.badgeTemplate,styles:rn});const ln=(e,t)=>(0,Za.css)`
  669. ${(0,be.display)("inline-block")} :host {
  670. box-sizing: border-box;
  671. font-family: ${It};
  672. font-size: ${Jt};
  673. line-height: ${Kt};
  674. }
  675. .list {
  676. display: flex;
  677. flex-wrap: wrap;
  678. }
  679. `;class sn extends be.Breadcrumb{}const cn=sn.compose({baseName:"breadcrumb",baseClass:be.Breadcrumb,template:be.breadcrumbTemplate,styles:ln});const dn=(e,t)=>(0,Za.css)`
  680. ${(0,be.display)("inline-flex")} :host {
  681. background: transparent;
  682. box-sizing: border-box;
  683. font-family: ${It};
  684. font-size: ${Jt};
  685. fill: currentColor;
  686. line-height: ${Kt};
  687. min-width: calc(${Ka} * 1px);
  688. outline: none;
  689. color: ${la}
  690. }
  691. .listitem {
  692. display: flex;
  693. align-items: center;
  694. width: max-content;
  695. }
  696. .separator {
  697. margin: 0 6px;
  698. display: flex;
  699. }
  700. .control {
  701. align-items: center;
  702. box-sizing: border-box;
  703. color: ${Vr};
  704. cursor: pointer;
  705. display: flex;
  706. fill: inherit;
  707. outline: none;
  708. text-decoration: none;
  709. white-space: nowrap;
  710. }
  711. .control:hover {
  712. color: ${Dr};
  713. }
  714. .control:active {
  715. color: ${jr};
  716. }
  717. .control .content {
  718. position: relative;
  719. }
  720. .control .content::before {
  721. content: "";
  722. display: block;
  723. height: calc(${Zt} * 1px);
  724. left: 0;
  725. position: absolute;
  726. right: 0;
  727. top: calc(1em + 4px);
  728. width: 100%;
  729. }
  730. .control:hover .content::before {
  731. background: ${Dr};
  732. }
  733. .control:active .content::before {
  734. background: ${jr};
  735. }
  736. .control:${be.focusVisible} .content::before {
  737. background: ${zr};
  738. height: calc(${Yt} * 1px);
  739. }
  740. .control:not([href]) {
  741. color: ${la};
  742. cursor: default;
  743. }
  744. .control:not([href]) .content::before {
  745. background: none;
  746. }
  747. .start,
  748. .end {
  749. display: flex;
  750. }
  751. ::slotted(svg) {
  752. /* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */
  753. width: 16px;
  754. height: 16px;
  755. }
  756. .start {
  757. margin-inline-end: 6px;
  758. }
  759. .end {
  760. margin-inline-start: 6px;
  761. }
  762. `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)`
  763. .control:hover .content::before,
  764. .control:${be.focusVisible} .content::before {
  765. background: ${Ja.LinkText};
  766. }
  767. .start,
  768. .end {
  769. fill: ${Ja.ButtonText};
  770. }
  771. `));class un extends be.BreadcrumbItem{}const hn=un.compose({baseName:"breadcrumb-item",baseClass:be.BreadcrumbItem,template:be.breadcrumbItemTemplate,styles:dn,separator:"/",shadowOptions:{delegatesFocus:true}});const pn=(e,t)=>(0,Za.css)`
  772. :host([disabled]),
  773. :host([disabled]:hover),
  774. :host([disabled]:active) {
  775. opacity: ${Xt};
  776. background-color: ${Lr};
  777. cursor: ${be.disabledCursor};
  778. }
  779. ${Hi}
  780. `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)`
  781. :host([disabled]),
  782. :host([disabled]) .control,
  783. :host([disabled]:hover),
  784. :host([disabled]:active) {
  785. forced-color-adjust: none;
  786. background-color: ${Ja.ButtonFace};
  787. outline-color: ${Ja.GrayText};
  788. color: ${Ja.GrayText};
  789. cursor: ${be.disabledCursor};
  790. opacity: 1;
  791. }
  792. `),Gi("accent",(0,Za.css)`
  793. :host([appearance='accent'][disabled]),
  794. :host([appearance='accent'][disabled]:hover),
  795. :host([appearance='accent'][disabled]:active) {
  796. background: ${ur};
  797. }
  798. ${Ni}
  799. `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)`
  800. :host([appearance='accent'][disabled]) .control,
  801. :host([appearance='accent'][disabled]) .control:hover {
  802. background: ${Ja.ButtonFace};
  803. border-color: ${Ja.GrayText};
  804. color: ${Ja.GrayText};
  805. }
  806. `))),Gi("error",(0,Za.css)`
  807. :host([appearance='error'][disabled]),
  808. :host([appearance='error'][disabled]:hover),
  809. :host([appearance='error'][disabled]:active) {
  810. background: ${$a};
  811. }
  812. ${Pi}
  813. `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)`
  814. :host([appearance='error'][disabled]) .control,
  815. :host([appearance='error'][disabled]) .control:hover {
  816. background: ${Ja.ButtonFace};
  817. border-color: ${Ja.GrayText};
  818. color: ${Ja.GrayText};
  819. }
  820. `))),Gi("lightweight",(0,Za.css)`
  821. :host([appearance='lightweight'][disabled]:hover),
  822. :host([appearance='lightweight'][disabled]:active) {
  823. background-color: transparent;
  824. color: ${Vr};
  825. }
  826. :host([appearance='lightweight'][disabled]) .content::before,
  827. :host([appearance='lightweight'][disabled]:hover) .content::before,
  828. :host([appearance='lightweight'][disabled]:active) .content::before {
  829. background: transparent;
  830. }
  831. ${Ii}
  832. `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)`
  833. :host([appearance='lightweight'].disabled) .control {
  834. forced-color-adjust: none;
  835. color: ${Ja.GrayText};
  836. }
  837. :host([appearance='lightweight'].disabled)
  838. .control:hover
  839. .content::before {
  840. background: none;
  841. }
  842. `))),Gi("outline",(0,Za.css)`
  843. :host([appearance='outline'][disabled]),
  844. :host([appearance='outline'][disabled]:hover),
  845. :host([appearance='outline'][disabled]:active) {
  846. background: transparent;
  847. border-color: ${ur};
  848. }
  849. ${Ai}
  850. `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)`
  851. :host([appearance='outline'][disabled]) .control {
  852. border-color: ${Ja.GrayText};
  853. }
  854. `))),Gi("stealth",(0,Za.css)`
  855. ${Mi}
  856. `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)`
  857. :host([appearance='stealth'][disabled]) {
  858. background: ${Ja.ButtonFace};
  859. }
  860. :host([appearance='stealth'][disabled]) .control {
  861. background: ${Ja.ButtonFace};
  862. border-color: transparent;
  863. color: ${Ja.GrayText};
  864. }
  865. `))));class gn extends be.Button{constructor(){super(...arguments);this.appearance="neutral"}defaultSlottedContentChanged(e,t){const o=this.defaultSlottedContent.filter((e=>e.nodeType===Node.ELEMENT_NODE));if(o.length===1&&(o[0]instanceof SVGElement||o[0].classList.contains("fa")||o[0].classList.contains("fas"))){this.control.classList.add("icon-only")}else{this.control.classList.remove("icon-only")}}}si([Za.attr],gn.prototype,"appearance",void 0);si([(0,Za.attr)({attribute:"minimal",mode:"boolean"})],gn.prototype,"minimal",void 0);si([Za.attr],gn.prototype,"scale",void 0);const bn=gn.compose({baseName:"button",baseClass:be.Button,template:be.buttonTemplate,styles:pn,shadowOptions:{delegatesFocus:true}});const fn="0 0 calc((var(--elevation) * 0.225px) + 2px) rgba(0, 0, 0, calc(.11 * (2 - var(--background-luminance, 1))))";const mn="0 calc(var(--elevation) * 0.4px) calc((var(--elevation) * 0.9px)) rgba(0, 0, 0, calc(.13 * (2 - var(--background-luminance, 1))))";const vn=`box-shadow: ${fn}, ${mn};`;const $n=(e,t)=>(0,Za.css)`
  866. ${(0,be.display)("block")} :host {
  867. --elevation: 4;
  868. display: block;
  869. contain: content;
  870. height: var(--card-height, 100%);
  871. width: var(--card-width, 100%);
  872. box-sizing: border-box;
  873. background: ${sr};
  874. border-radius: calc(${Et} * 1px);
  875. ${vn}
  876. }
  877. `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)`
  878. :host {
  879. forced-color-adjust: none;
  880. background: ${Ja.Canvas};
  881. box-shadow: 0 0 0 1px ${Ja.CanvasText};
  882. }
  883. `));class xn extends be.Card{connectedCallback(){super.connectedCallback();const e=(0,be.composedParent)(this);if(e){sr.setValueFor(this,(t=>Kr.getValueFor(t).evaluate(t,sr.getValueFor(e))))}}}const yn=xn.compose({baseName:"card",baseClass:be.Card,template:be.cardTemplate,styles:$n});const wn=(e,t)=>(0,Za.css)`
  884. ${(0,be.display)("inline-flex")} :host {
  885. align-items: center;
  886. outline: none;
  887. margin: calc(${qt} * 1px) 0;
  888. /* Chromium likes to select label text or the default slot when the checkbox is
  889. clicked. Maybe there is a better solution here? */
  890. user-select: none;
  891. }
  892. .control {
  893. position: relative;
  894. width: calc((${Ka} / 2 + ${qt}) * 1px);
  895. height: calc((${Ka} / 2 + ${qt}) * 1px);
  896. box-sizing: border-box;
  897. border-radius: calc(${Et} * 1px);
  898. border: calc(${Zt} * 1px) solid ${ca};
  899. background: ${Rr};
  900. outline: none;
  901. cursor: pointer;
  902. }
  903. :host([aria-invalid='true']) .control {
  904. border-color: ${$a};
  905. }
  906. .label {
  907. font-family: ${It};
  908. color: ${la};
  909. /* Need to discuss with Brian how HorizontalSpacingNumber can work.
  910. https://github.com/microsoft/fast/issues/2766 */
  911. padding-inline-start: calc(${qt} * 2px + 2px);
  912. margin-inline-end: calc(${qt} * 2px + 2px);
  913. cursor: pointer;
  914. font-size: ${Jt};
  915. line-height: ${Kt};
  916. }
  917. .label__hidden {
  918. display: none;
  919. visibility: hidden;
  920. }
  921. .checked-indicator {
  922. width: 100%;
  923. height: 100%;
  924. display: block;
  925. fill: ${mr};
  926. opacity: 0;
  927. pointer-events: none;
  928. }
  929. .indeterminate-indicator {
  930. border-radius: calc(${Et} * 1px);
  931. background: ${mr};
  932. position: absolute;
  933. top: 50%;
  934. left: 50%;
  935. width: 50%;
  936. height: 50%;
  937. transform: translate(-50%, -50%);
  938. opacity: 0;
  939. }
  940. :host(:not([disabled])) .control:hover {
  941. background: ${Ir};
  942. border-color: ${da};
  943. }
  944. :host(:not([disabled])) .control:active {
  945. background: ${Ar};
  946. border-color: ${ua};
  947. }
  948. :host([aria-invalid='true']:not([disabled])) .control:hover {
  949. border-color: ${xa};
  950. }
  951. :host([aria-invalid='true']:not([disabled])) .control:active {
  952. border-color: ${ya};
  953. }
  954. :host(:${be.focusVisible}) .control {
  955. outline: calc(${Yt} * 1px) solid ${gr};
  956. outline-offset: 2px;
  957. }
  958. :host([aria-invalid='true']:${be.focusVisible}) .control {
  959. outline-color: ${wa};
  960. }
  961. :host([aria-checked='true']) .control {
  962. background: ${ur};
  963. border: calc(${Zt} * 1px) solid ${ur};
  964. }
  965. :host([aria-checked='true']:not([disabled])) .control:hover {
  966. background: ${hr};
  967. border: calc(${Zt} * 1px) solid ${hr};
  968. }
  969. :host([aria-invalid='true'][aria-checked='true']) .control {
  970. background-color: ${$a};
  971. border-color: ${$a};
  972. }
  973. :host([aria-invalid='true'][aria-checked='true']:not([disabled]))
  974. .control:hover {
  975. background-color: ${xa};
  976. border-color: ${xa};
  977. }
  978. :host([aria-checked='true']:not([disabled]))
  979. .control:hover
  980. .checked-indicator {
  981. fill: ${vr};
  982. }
  983. :host([aria-checked='true']:not([disabled]))
  984. .control:hover
  985. .indeterminate-indicator {
  986. background: ${vr};
  987. }
  988. :host([aria-checked='true']:not([disabled])) .control:active {
  989. background: ${pr};
  990. border: calc(${Zt} * 1px) solid ${pr};
  991. }
  992. :host([aria-invalid='true'][aria-checked='true']:not([disabled]))
  993. .control:active {
  994. background-color: ${ya};
  995. border-color: ${ya};
  996. }
  997. :host([aria-checked='true']:not([disabled]))
  998. .control:active
  999. .checked-indicator {
  1000. fill: ${$r};
  1001. }
  1002. :host([aria-checked='true']:not([disabled]))
  1003. .control:active
  1004. .indeterminate-indicator {
  1005. background: ${$r};
  1006. }
  1007. :host([aria-checked="true"]:${be.focusVisible}:not([disabled])) .control {
  1008. outline: calc(${Yt} * 1px) solid ${gr};
  1009. outline-offset: 2px;
  1010. }
  1011. :host([aria-invalid='true'][aria-checked="true"]:${be.focusVisible}:not([disabled])) .control {
  1012. outline-color: ${wa};
  1013. }
  1014. :host([disabled]) .label,
  1015. :host([readonly]) .label,
  1016. :host([readonly]) .control,
  1017. :host([disabled]) .control {
  1018. cursor: ${be.disabledCursor};
  1019. }
  1020. :host([aria-checked='true']:not(.indeterminate)) .checked-indicator,
  1021. :host(.indeterminate) .indeterminate-indicator {
  1022. opacity: 1;
  1023. }
  1024. :host([disabled]) {
  1025. opacity: ${Xt};
  1026. }
  1027. `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)`
  1028. .control {
  1029. forced-color-adjust: none;
  1030. border-color: ${Ja.FieldText};
  1031. background: ${Ja.Field};
  1032. }
  1033. :host([aria-invalid='true']) .control {
  1034. border-style: dashed;
  1035. }
  1036. .checked-indicator {
  1037. fill: ${Ja.FieldText};
  1038. }
  1039. .indeterminate-indicator {
  1040. background: ${Ja.FieldText};
  1041. }
  1042. :host(:not([disabled])) .control:hover,
  1043. .control:active {
  1044. border-color: ${Ja.Highlight};
  1045. background: ${Ja.Field};
  1046. }
  1047. :host(:${be.focusVisible}) .control {
  1048. outline: calc(${Yt} * 1px) solid ${Ja.FieldText};
  1049. outline-offset: 2px;
  1050. }
  1051. :host([aria-checked="true"]:${be.focusVisible}:not([disabled])) .control {
  1052. outline: calc(${Yt} * 1px) solid ${Ja.FieldText};
  1053. outline-offset: 2px;
  1054. }
  1055. :host([aria-checked='true']) .control {
  1056. background: ${Ja.Highlight};
  1057. border-color: ${Ja.Highlight};
  1058. }
  1059. :host([aria-checked='true']:not([disabled])) .control:hover,
  1060. .control:active {
  1061. border-color: ${Ja.Highlight};
  1062. background: ${Ja.HighlightText};
  1063. }
  1064. :host([aria-checked='true']) .checked-indicator {
  1065. fill: ${Ja.HighlightText};
  1066. }
  1067. :host([aria-checked='true']:not([disabled]))
  1068. .control:hover
  1069. .checked-indicator {
  1070. fill: ${Ja.Highlight};
  1071. }
  1072. :host([aria-checked='true']) .indeterminate-indicator {
  1073. background: ${Ja.HighlightText};
  1074. }
  1075. :host([aria-checked='true']) .control:hover .indeterminate-indicator {
  1076. background: ${Ja.Highlight};
  1077. }
  1078. :host([disabled]) {
  1079. opacity: 1;
  1080. }
  1081. :host([disabled]) .control {
  1082. forced-color-adjust: none;
  1083. border-color: ${Ja.GrayText};
  1084. background: ${Ja.Field};
  1085. }
  1086. :host([disabled]) .indeterminate-indicator,
  1087. :host([aria-checked='true'][disabled])
  1088. .control:hover
  1089. .indeterminate-indicator {
  1090. forced-color-adjust: none;
  1091. background: ${Ja.GrayText};
  1092. }
  1093. :host([disabled]) .checked-indicator,
  1094. :host([aria-checked='true'][disabled]) .control:hover .checked-indicator {
  1095. forced-color-adjust: none;
  1096. fill: ${Ja.GrayText};
  1097. }
  1098. `));const kn=(e,t)=>(0,Za.html)`
  1099. <template
  1100. role="checkbox"
  1101. aria-checked="${e=>e.checked}"
  1102. aria-required="${e=>e.required}"
  1103. aria-disabled="${e=>e.disabled}"
  1104. aria-readonly="${e=>e.readOnly}"
  1105. tabindex="${e=>e.disabled?null:0}"
  1106. @keypress="${(e,t)=>e.keypressHandler(t.event)}"
  1107. @click="${(e,t)=>e.clickHandler(t.event)}"
  1108. >
  1109. <div part="control" class="control">
  1110. <slot name="checked-indicator">
  1111. ${t.checkedIndicator||""}
  1112. </slot>
  1113. <slot name="indeterminate-indicator">
  1114. ${t.indeterminateIndicator||""}
  1115. </slot>
  1116. </div>
  1117. <label
  1118. part="label"
  1119. class="${e=>e.defaultSlottedNodes&&e.defaultSlottedNodes.length?"label":"label label__hidden"}"
  1120. >
  1121. <slot ${(0,Za.slotted)("defaultSlottedNodes")}></slot>
  1122. </label>
  1123. </template>
  1124. `;class Fn extends be.Checkbox{indeterminateChanged(e,t){if(this.indeterminate){this.classList.add("indeterminate")}else{this.classList.remove("indeterminate")}}}const Cn=Fn.compose({baseName:"checkbox",baseClass:be.Checkbox,template:kn,styles:wn,checkedIndicator:`\n <svg\n part="checked-indicator"\n class="checked-indicator"\n viewBox="0 0 20 20"\n xmlns="http://www.w3.org/2000/svg"\n >\n <path\n fill-rule="evenodd"\n clip-rule="evenodd"\n d="M8.143 12.6697L15.235 4.5L16.8 5.90363L8.23812 15.7667L3.80005 11.2556L5.27591 9.7555L8.143 12.6697Z"\n />\n </svg>\n `,indeterminateIndicator:`\n <div part="indeterminate-indicator" class="indeterminate-indicator"></div>\n `});const Sn=(e,t)=>{const o=e.tagFor(be.ListboxOption);const r=e.name===e.tagFor(be.ListboxElement)?"":".listbox";return(0,Za.css)`
  1125. ${!r?(0,be.display)("inline-flex"):""}
  1126. :host ${r} {
  1127. background: ${sr};
  1128. border: calc(${Zt} * 1px) solid ${ca};
  1129. border-radius: calc(${Et} * 1px);
  1130. box-sizing: border-box;
  1131. flex-direction: column;
  1132. padding: calc(${qt} * 1px) 0;
  1133. }
  1134. ${!r?(0,Za.css)`
  1135. :host(:${be.focusVisible}:not([disabled])) {
  1136. outline: none;
  1137. }
  1138. :host(:focus-within:not([disabled])) {
  1139. border-color: ${ta};
  1140. box-shadow: 0 0 0
  1141. calc((${Yt} - ${Zt}) * 1px)
  1142. ${ta} inset;
  1143. }
  1144. :host([disabled]) ::slotted(*) {
  1145. cursor: ${be.disabledCursor};
  1146. opacity: ${Xt};
  1147. pointer-events: none;
  1148. }
  1149. `:""}
  1150. ${r||":host([size])"} {
  1151. max-height: calc(
  1152. (var(--size) * ${Ka} + (${qt} * ${Zt} * 2)) * 1px
  1153. );
  1154. overflow-y: auto;
  1155. }
  1156. :host([size="0"]) ${r} {
  1157. max-height: none;
  1158. }
  1159. `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)`
  1160. :host(:not([multiple]):${be.focusVisible}) ::slotted(${o}[aria-selected="true"]),
  1161. :host([multiple]:${be.focusVisible}) ::slotted(${o}[aria-checked="true"]) {
  1162. border-color: ${Ja.ButtonText};
  1163. box-shadow: 0 0 0 calc(${Yt} * 1px) inset ${Ja.HighlightText};
  1164. }
  1165. :host(:not([multiple]):${be.focusVisible}) ::slotted(${o}[aria-selected="true"]) {
  1166. background: ${Ja.Highlight};
  1167. color: ${Ja.HighlightText};
  1168. fill: currentcolor;
  1169. }
  1170. ::slotted(${o}[aria-selected="true"]:not([aria-checked="true"])) {
  1171. background: ${Ja.Highlight};
  1172. border-color: ${Ja.HighlightText};
  1173. color: ${Ja.HighlightText};
  1174. }
  1175. `))};const Tn=(e,t)=>{const o=e.name===e.tagFor(be.Select);return(0,Za.css)`
  1176. ${(0,be.display)("inline-flex")}
  1177. :host {
  1178. --elevation: 14;
  1179. background: ${Rr};
  1180. border-radius: calc(${Et} * 1px);
  1181. border: calc(${Zt} * 1px) solid ${Xr};
  1182. box-sizing: border-box;
  1183. color: ${la};
  1184. font-family: ${It};
  1185. height: calc(${Ka} * 1px);
  1186. position: relative;
  1187. user-select: none;
  1188. min-width: 250px;
  1189. outline: none;
  1190. vertical-align: top;
  1191. }
  1192. :host([aria-invalid='true']) {
  1193. border-color: ${$a};
  1194. }
  1195. :host(:not([autowidth])) {
  1196. min-width: 250px;
  1197. }
  1198. ${o?(0,Za.css)`
  1199. :host(:not([aria-haspopup])) {
  1200. --elevation: 0;
  1201. border: 0;
  1202. height: auto;
  1203. min-width: 0;
  1204. }
  1205. `:""}
  1206. ${Sn(e,t)}
  1207. :host .listbox {
  1208. ${vn}
  1209. border: none;
  1210. display: flex;
  1211. left: 0;
  1212. position: absolute;
  1213. width: 100%;
  1214. z-index: 1;
  1215. }
  1216. .control + .listbox {
  1217. --stroke-size: calc(${qt} * ${Zt} * 2);
  1218. max-height: calc(
  1219. (var(--listbox-max-height) * ${Ka} + var(--stroke-size)) * 1px
  1220. );
  1221. }
  1222. ${o?(0,Za.css)`
  1223. :host(:not([aria-haspopup])) .listbox {
  1224. left: auto;
  1225. position: static;
  1226. z-index: auto;
  1227. }
  1228. `:""}
  1229. :host(:not([autowidth])) .listbox {
  1230. width: 100%;
  1231. }
  1232. :host([autowidth]) ::slotted([role='option']),
  1233. :host([autowidth]) ::slotted(option) {
  1234. padding: 0 calc(1em + ${qt} * 1.25px + 1px);
  1235. }
  1236. .listbox[hidden] {
  1237. display: none;
  1238. }
  1239. .control {
  1240. align-items: center;
  1241. box-sizing: border-box;
  1242. cursor: pointer;
  1243. display: flex;
  1244. font-size: ${Jt};
  1245. font-family: inherit;
  1246. line-height: ${Kt};
  1247. min-height: 100%;
  1248. padding: 0 calc(${qt} * 2.25px);
  1249. width: 100%;
  1250. }
  1251. :host([minimal]),
  1252. :host([scale='xsmall']) {
  1253. --element-scale: -4;
  1254. }
  1255. :host([scale='small']) {
  1256. --element-scale: -2;
  1257. }
  1258. :host([scale='medium']) {
  1259. --element-scale: 0;
  1260. }
  1261. :host([scale='large']) {
  1262. --element-scale: 2;
  1263. }
  1264. :host([scale='xlarge']) {
  1265. --element-scale: 4;
  1266. }
  1267. :host(:not([disabled]):hover) {
  1268. background: ${Ir};
  1269. border-color: ${Zr};
  1270. }
  1271. :host([aria-invalid='true']:not([disabled]):hover) {
  1272. border-color: ${xa};
  1273. }
  1274. :host(:${be.focusVisible}) {
  1275. border-color: ${gr};
  1276. box-shadow: 0 0 0 calc((${Yt} - ${Zt}) * 1px)
  1277. ${gr};
  1278. }
  1279. :host([aria-invalid='true']:${be.focusVisible}) {
  1280. border-color: ${wa};
  1281. box-shadow: 0 0 0 calc((${Yt} - ${Zt}) * 1px)
  1282. ${wa};
  1283. }
  1284. :host(:not([size]):not([multiple]):not([open]):${be.focusVisible}),
  1285. :host([multiple]:${be.focusVisible}),
  1286. :host([size]:${be.focusVisible}) {
  1287. box-shadow: 0 0 0 calc((${Yt} - ${Zt}) * 1px)
  1288. ${gr};
  1289. }
  1290. :host([aria-invalid='true']:not([size]):not([multiple]):not([open]):${be.focusVisible}),
  1291. :host([aria-invalid='true'][multiple]:${be.focusVisible}),
  1292. :host([aria-invalid='true'][size]:${be.focusVisible}) {
  1293. box-shadow: 0 0 0 calc((${Yt} - ${Zt}) * 1px)
  1294. ${wa};
  1295. }
  1296. :host(:not([multiple]):not([size]):${be.focusVisible}) ::slotted(${e.tagFor(be.ListboxOption)}[aria-selected="true"]:not([disabled])) {
  1297. box-shadow: 0 0 0 calc(${Yt} * 1px) inset ${gr};
  1298. border-color: ${gr};
  1299. background: ${gr};
  1300. color: ${xr};
  1301. }
  1302. :host([disabled]) {
  1303. cursor: ${be.disabledCursor};
  1304. opacity: ${Xt};
  1305. }
  1306. :host([disabled]) .control {
  1307. cursor: ${be.disabledCursor};
  1308. user-select: none;
  1309. }
  1310. :host([disabled]:hover) {
  1311. background: ${Er};
  1312. color: ${la};
  1313. fill: currentcolor;
  1314. }
  1315. :host(:not([disabled])) .control:active {
  1316. background: ${Ar};
  1317. border-color: ${pr};
  1318. border-radius: calc(${Et} * 1px);
  1319. }
  1320. :host([open][position="above"]) .listbox {
  1321. border-bottom-left-radius: 0;
  1322. border-bottom-right-radius: 0;
  1323. border-bottom: 0;
  1324. bottom: calc(${Ka} * 1px);
  1325. }
  1326. :host([open][position="below"]) .listbox {
  1327. border-top-left-radius: 0;
  1328. border-top-right-radius: 0;
  1329. border-top: 0;
  1330. top: calc(${Ka} * 1px);
  1331. }
  1332. .selected-value {
  1333. flex: 1 1 auto;
  1334. font-family: inherit;
  1335. overflow: hidden;
  1336. text-align: start;
  1337. text-overflow: ellipsis;
  1338. white-space: nowrap;
  1339. }
  1340. .indicator {
  1341. flex: 0 0 auto;
  1342. margin-inline-start: 1em;
  1343. }
  1344. slot[name="listbox"] {
  1345. display: none;
  1346. width: 100%;
  1347. }
  1348. :host([open]) slot[name="listbox"] {
  1349. display: flex;
  1350. position: absolute;
  1351. ${vn}
  1352. }
  1353. .end {
  1354. margin-inline-start: auto;
  1355. }
  1356. .start,
  1357. .end,
  1358. .indicator,
  1359. .select-indicator,
  1360. ::slotted(svg) {
  1361. /* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */
  1362. fill: currentcolor;
  1363. height: 1em;
  1364. min-height: calc(${qt} * 4px);
  1365. min-width: calc(${qt} * 4px);
  1366. width: 1em;
  1367. }
  1368. ::slotted([role="option"]),
  1369. ::slotted(option) {
  1370. flex: 0 0 auto;
  1371. }
  1372. `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)`
  1373. :host(:not([disabled]):hover),
  1374. :host(:not([disabled]):active) {
  1375. border-color: ${Ja.Highlight};
  1376. }
  1377. :host([aria-invalid='true']) {
  1378. border-style: dashed;
  1379. }
  1380. :host(:not([disabled]):${be.focusVisible}) {
  1381. background-color: ${Ja.ButtonFace};
  1382. box-shadow: 0 0 0 calc(${Yt} * 1px) ${Ja.Highlight};
  1383. color: ${Ja.ButtonText};
  1384. fill: currentcolor;
  1385. forced-color-adjust: none;
  1386. }
  1387. :host(:not([disabled]):${be.focusVisible}) .listbox {
  1388. background: ${Ja.ButtonFace};
  1389. }
  1390. :host([disabled]) {
  1391. border-color: ${Ja.GrayText};
  1392. background-color: ${Ja.ButtonFace};
  1393. color: ${Ja.GrayText};
  1394. fill: currentcolor;
  1395. opacity: 1;
  1396. forced-color-adjust: none;
  1397. }
  1398. :host([disabled]:hover) {
  1399. background: ${Ja.ButtonFace};
  1400. }
  1401. :host([disabled]) .control {
  1402. color: ${Ja.GrayText};
  1403. border-color: ${Ja.GrayText};
  1404. }
  1405. :host([disabled]) .control .select-indicator {
  1406. fill: ${Ja.GrayText};
  1407. }
  1408. :host(:${be.focusVisible}) ::slotted([aria-selected="true"][role="option"]),
  1409. :host(:${be.focusVisible}) ::slotted(option[aria-selected="true"]),
  1410. :host(:${be.focusVisible}) ::slotted([aria-selected="true"][role="option"]:not([disabled])) {
  1411. background: ${Ja.Highlight};
  1412. border-color: ${Ja.ButtonText};
  1413. box-shadow: 0 0 0 calc((${Yt} - ${Zt}) * 1px)
  1414. ${Ja.HighlightText};
  1415. color: ${Ja.HighlightText};
  1416. fill: currentcolor;
  1417. }
  1418. .start,
  1419. .end,
  1420. .indicator,
  1421. .select-indicator,
  1422. ::slotted(svg) {
  1423. color: ${Ja.ButtonText};
  1424. fill: currentcolor;
  1425. }
  1426. `))};const Vn=(e,t)=>(0,Za.css)`
  1427. ${Tn(e,t)}
  1428. :host(:empty) .listbox {
  1429. display: none;
  1430. }
  1431. :host([disabled]) *,
  1432. :host([disabled]) {
  1433. cursor: ${be.disabledCursor};
  1434. user-select: none;
  1435. }
  1436. :host(:focus-within:not([disabled])) {
  1437. border-color: ${gr};
  1438. box-shadow: 0 0 0 calc((${Yt} - ${Zt}) * 1px)
  1439. ${gr};
  1440. }
  1441. :host([aria-invalid='true']:focus-within:not([disabled])) {
  1442. border-color: ${wa};
  1443. box-shadow: 0 0 0 calc((${Yt} - ${Zt}) * 1px)
  1444. ${wa};
  1445. }
  1446. .selected-value {
  1447. -webkit-appearance: none;
  1448. background: transparent;
  1449. border: none;
  1450. color: inherit;
  1451. font-size: ${Jt};
  1452. line-height: ${Kt};
  1453. height: calc(100% - (${Zt} * 1px));
  1454. margin: auto 0;
  1455. width: 100%;
  1456. }
  1457. .selected-value:hover,
  1458. .selected-value:${be.focusVisible},
  1459. .selected-value:disabled,
  1460. .selected-value:active {
  1461. outline: none;
  1462. }
  1463. `;class Dn extends be.Combobox{connectedCallback(){super.connectedCallback();this.setAutoWidth()}slottedOptionsChanged(e,t){super.slottedOptionsChanged(e,t);this.setAutoWidth()}autoWidthChanged(e,t){if(t){this.setAutoWidth()}else{this.style.removeProperty("width")}}setAutoWidth(){if(!this.autoWidth||!this.isConnected){return}let e=this.listbox.getBoundingClientRect().width;if(e===0&&this.listbox.hidden){Object.assign(this.listbox.style,{visibility:"hidden"});this.listbox.removeAttribute("hidden");e=this.listbox.getBoundingClientRect().width;this.listbox.setAttribute("hidden","");this.listbox.style.removeProperty("visibility")}if(e>0){Object.assign(this.style,{width:`${e}px`})}}maxHeightChanged(e,t){this.updateComputedStylesheet()}updateComputedStylesheet(){if(this.computedStylesheet){this.$fastController.removeStyles(this.computedStylesheet)}const e=Math.floor(this.maxHeight/ba.getValueFor(this)).toString();this.computedStylesheet=(0,Za.css)`
  1464. :host {
  1465. --listbox-max-height: ${e};
  1466. }
  1467. `;this.$fastController.addStyles(this.computedStylesheet)}}si([(0,Za.attr)({attribute:"autowidth",mode:"boolean"})],Dn.prototype,"autoWidth",void 0);si([(0,Za.attr)({attribute:"minimal",mode:"boolean"})],Dn.prototype,"minimal",void 0);si([Za.attr],Dn.prototype,"scale",void 0);const jn=Dn.compose({baseName:"combobox",baseClass:be.Combobox,template:be.comboboxTemplate,styles:Vn,shadowOptions:{delegatesFocus:true},indicator:`\n <svg\n class="select-indicator"\n part="select-indicator"\n viewBox="0 0 12 7"\n xmlns="http://www.w3.org/2000/svg"\n >\n <path\n d="M11.85.65c.2.2.2.5 0 .7L6.4 6.84a.55.55 0 01-.78 0L.14 1.35a.5.5 0 11.71-.7L6 5.8 11.15.65c.2-.2.5-.2.7 0z"\n />\n </svg>\n `});const zn=(e,t)=>(0,Za.css)`
  1468. :host {
  1469. display: flex;
  1470. position: relative;
  1471. flex-direction: column;
  1472. }
  1473. `;const Bn=(e,t)=>(0,Za.css)`
  1474. :host {
  1475. display: grid;
  1476. padding: 1px 0;
  1477. box-sizing: border-box;
  1478. width: 100%;
  1479. border-bottom: calc(${Zt} * 1px) solid ${ga};
  1480. }
  1481. :host(.header) {
  1482. }
  1483. :host(.sticky-header) {
  1484. background: ${Lr};
  1485. position: sticky;
  1486. top: 0;
  1487. }
  1488. `;const Ln=(e,t)=>(0,Za.css)`
  1489. :host {
  1490. padding: calc(${qt} * 1px) calc(${qt} * 3px);
  1491. color: ${la};
  1492. box-sizing: border-box;
  1493. font-family: ${It};
  1494. font-size: ${Jt};
  1495. line-height: ${Kt};
  1496. font-weight: 400;
  1497. border: transparent calc(${Yt} * 1px) solid;
  1498. overflow: hidden;
  1499. white-space: nowrap;
  1500. border-radius: calc(${Et} * 1px);
  1501. }
  1502. :host(.column-header) {
  1503. font-weight: 600;
  1504. }
  1505. :host(:${be.focusVisible}) {
  1506. outline: calc(${Yt} * 1px) solid ${gr};
  1507. color: ${la};
  1508. }
  1509. `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)`
  1510. :host {
  1511. forced-color-adjust: none;
  1512. border-color: transparent;
  1513. background: ${Ja.Field};
  1514. color: ${Ja.FieldText};
  1515. }
  1516. :host(:${be.focusVisible}) {
  1517. border-color: ${Ja.FieldText};
  1518. box-shadow: 0 0 0 2px inset ${Ja.Field};
  1519. color: ${Ja.FieldText};
  1520. }
  1521. `));class On extends be.DataGridCell{}const Hn=On.compose({baseName:"data-grid-cell",baseClass:be.DataGridCell,template:be.dataGridCellTemplate,styles:Ln});class Nn extends be.DataGridRow{}const Pn=Nn.compose({baseName:"data-grid-row",baseClass:be.DataGridRow,template:be.dataGridRowTemplate,styles:Bn});class Rn extends be.DataGrid{}const In=Rn.compose({baseName:"data-grid",baseClass:be.DataGrid,template:be.dataGridTemplate,styles:zn});var An=o(74291);class Mn extends be.FoundationElement{}class Gn extends((0,be.FormAssociated)(Mn)){constructor(){super(...arguments);this.proxy=document.createElement("input")}}const En={toView(e){if(e===null||e===undefined){return null}const t=new Date(e);return t.toString()==="Invalid Date"?null:`${t.getFullYear().toString().padStart(4,"0")}-${(t.getMonth()+1).toString().padStart(2,"0")}-${t.getDate().toString().padStart(2,"0")}`},fromView(e){if(e===null||e===undefined){return null}const t=new Date(e);return t.toString()==="Invalid Date"?null:t}};const _n="Invalid Date";class qn extends Gn{constructor(){super(...arguments);this.step=1;this.isUserInput=false}readOnlyChanged(){if(this.proxy instanceof HTMLInputElement){this.proxy.readOnly=this.readOnly;this.validate()}}autofocusChanged(){if(this.proxy instanceof HTMLInputElement){this.proxy.autofocus=this.autofocus;this.validate()}}listChanged(){if(this.proxy instanceof HTMLInputElement){this.proxy.setAttribute("list",this.list);this.validate()}}maxChanged(e,t){var o;this.max=t<((o=this.min)!==null&&o!==void 0?o:t)?this.min:t;this.value=this.getValidValue(this.value)}minChanged(e,t){var o;this.min=t>((o=this.max)!==null&&o!==void 0?o:t)?this.max:t;this.value=this.getValidValue(this.value)}get valueAsNumber(){return new Date(super.value).valueOf()}set valueAsNumber(e){this.value=new Date(e).toString()}get valueAsDate(){return new Date(super.value)}set valueAsDate(e){this.value=e.toString()}valueChanged(e,t){this.value=this.getValidValue(t);if(t!==this.value){return}if(this.control&&!this.isUserInput){this.control.value=this.value}super.valueChanged(e,this.value);if(e!==undefined&&!this.isUserInput){this.$emit("change")}this.isUserInput=false}getValidValue(e){var t,o;let r=new Date(e);if(r.toString()===_n){r=""}else{r=r>((t=this.max)!==null&&t!==void 0?t:r)?this.max:r;r=r<((o=this.min)!==null&&o!==void 0?o:r)?this.min:r;r=`${r.getFullYear().toString().padStart(4,"0")}-${(r.getMonth()+1).toString().padStart(2,"0")}-${r.getDate().toString().padStart(2,"0")}`}return r}stepUp(){const e=864e5*this.step;const t=new Date(this.value);this.value=new Date(t.toString()!==_n?t.valueOf()+e:0).toString()}stepDown(){const e=864e5*this.step;const t=new Date(this.value);this.value=new Date(t.toString()!==_n?Math.max(t.valueOf()-e,0):0).toString()}connectedCallback(){super.connectedCallback();this.validate();this.control.value=this.value;if(this.autofocus){Za.DOM.queueUpdate((()=>{this.focus()}))}if(!this.appearance){this.appearance="outline"}}handleTextInput(){this.isUserInput=true;this.value=this.control.value}handleChange(){this.$emit("change")}handleKeyDown(e){const t=e.key;switch(t){case An.I5:this.stepUp();return false;case An.HX:this.stepDown();return false}return true}handleBlur(){this.control.value=this.value}}si([Za.attr],qn.prototype,"appearance",void 0);si([(0,Za.attr)({attribute:"readonly",mode:"boolean"})],qn.prototype,"readOnly",void 0);si([(0,Za.attr)({mode:"boolean"})],qn.prototype,"autofocus",void 0);si([Za.attr],qn.prototype,"list",void 0);si([(0,Za.attr)({converter:Za.nullableNumberConverter})],qn.prototype,"step",void 0);si([(0,Za.attr)({converter:En})],qn.prototype,"max",void 0);si([(0,Za.attr)({converter:En})],qn.prototype,"min",void 0);si([Za.observable],qn.prototype,"defaultSlottedNodes",void 0);(0,be.applyMixins)(qn,be.StartEnd,be.DelegatesARIATextbox);const Wn=(0,Za.css)`
  1522. ${(0,be.display)("inline-block")} :host {
  1523. font-family: ${It};
  1524. outline: none;
  1525. user-select: none;
  1526. /* Ensure to display focus highlight */
  1527. margin: calc((${Yt} - ${Zt}) * 1px);
  1528. }
  1529. .root {
  1530. box-sizing: border-box;
  1531. position: relative;
  1532. display: flex;
  1533. flex-direction: row;
  1534. color: ${la};
  1535. background: ${Rr};
  1536. border-radius: calc(${Et} * 1px);
  1537. border: calc(${Zt} * 1px) solid ${Xr};
  1538. height: calc(${Ka} * 1px);
  1539. }
  1540. :host([aria-invalid='true']) .root {
  1541. border-color: ${$a};
  1542. }
  1543. .control {
  1544. -webkit-appearance: none;
  1545. font: inherit;
  1546. background: transparent;
  1547. border: 0;
  1548. color: inherit;
  1549. height: calc(100% - 4px);
  1550. width: 100%;
  1551. margin-top: auto;
  1552. margin-bottom: auto;
  1553. border: none;
  1554. padding: 0 calc(${qt} * 2px + 1px);
  1555. font-size: ${Jt};
  1556. line-height: ${Kt};
  1557. }
  1558. .control:placeholder-shown {
  1559. text-overflow: ellipsis;
  1560. }
  1561. .control:hover,
  1562. .control:${be.focusVisible},
  1563. .control:disabled,
  1564. .control:active {
  1565. outline: none;
  1566. }
  1567. .label {
  1568. display: block;
  1569. color: ${la};
  1570. cursor: pointer;
  1571. font-size: ${Jt};
  1572. line-height: ${Kt};
  1573. margin-bottom: 4px;
  1574. }
  1575. .label__hidden {
  1576. display: none;
  1577. visibility: hidden;
  1578. }
  1579. .start,
  1580. .end {
  1581. margin: auto;
  1582. fill: currentcolor;
  1583. }
  1584. ::slotted(svg) {
  1585. /* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */
  1586. width: 16px;
  1587. height: 16px;
  1588. }
  1589. .start {
  1590. margin-inline-start: 11px;
  1591. }
  1592. .end {
  1593. margin-inline-end: 11px;
  1594. }
  1595. :host(:hover:not([disabled])) .root {
  1596. background: ${Ir};
  1597. border-color: ${Zr};
  1598. }
  1599. :host([aria-invalid='true']:hover:not([disabled])) .root {
  1600. border-color: ${xa};
  1601. }
  1602. :host(:active:not([disabled])) .root {
  1603. background: ${Ir};
  1604. border-color: ${Yr};
  1605. }
  1606. :host([aria-invalid='true']:active:not([disabled])) .root {
  1607. border-color: ${ya};
  1608. }
  1609. :host(:focus-within:not([disabled])) .root {
  1610. border-color: ${gr};
  1611. box-shadow: 0 0 0 calc((${Yt} - ${Zt}) * 1px)
  1612. ${gr};
  1613. }
  1614. :host([aria-invalid='true']:focus-within:not([disabled])) .root {
  1615. border-color: ${wa};
  1616. box-shadow: 0 0 0 calc((${Yt} - ${Zt}) * 1px)
  1617. ${wa};
  1618. }
  1619. :host([appearance='filled']) .root {
  1620. background: ${Lr};
  1621. }
  1622. :host([appearance='filled']:hover:not([disabled])) .root {
  1623. background: ${Or};
  1624. }
  1625. :host([disabled]) .label,
  1626. :host([readonly]) .label,
  1627. :host([readonly]) .control,
  1628. :host([disabled]) .control {
  1629. cursor: ${be.disabledCursor};
  1630. }
  1631. :host([disabled]) {
  1632. opacity: ${Xt};
  1633. }
  1634. :host([disabled]) .control {
  1635. border-color: ${ca};
  1636. }
  1637. `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)`
  1638. .root,
  1639. :host([appearance='filled']) .root {
  1640. forced-color-adjust: none;
  1641. background: ${Ja.Field};
  1642. border-color: ${Ja.FieldText};
  1643. }
  1644. :host([aria-invalid='true']) .root {
  1645. border-style: dashed;
  1646. }
  1647. :host(:hover:not([disabled])) .root,
  1648. :host([appearance='filled']:hover:not([disabled])) .root,
  1649. :host([appearance='filled']:hover) .root {
  1650. background: ${Ja.Field};
  1651. border-color: ${Ja.Highlight};
  1652. }
  1653. .start,
  1654. .end {
  1655. fill: currentcolor;
  1656. }
  1657. :host([disabled]) {
  1658. opacity: 1;
  1659. }
  1660. :host([disabled]) .root,
  1661. :host([appearance='filled']:hover[disabled]) .root {
  1662. border-color: ${Ja.GrayText};
  1663. background: ${Ja.Field};
  1664. }
  1665. :host(:focus-within:enabled) .root {
  1666. border-color: ${Ja.Highlight};
  1667. box-shadow: 0 0 0 calc((${Yt} - ${Zt}) * 1px)
  1668. ${Ja.Highlight};
  1669. }
  1670. input::placeholder {
  1671. color: ${Ja.GrayText};
  1672. }
  1673. `));const Un=(e,t)=>(0,Za.css)`
  1674. ${Wn}
  1675. `;const Xn=(e,t)=>(0,Za.html)`
  1676. <template class="${e=>e.readOnly?"readonly":""}">
  1677. <label
  1678. part="label"
  1679. for="control"
  1680. class="${e=>e.defaultSlottedNodes&&e.defaultSlottedNodes.length?"label":"label label__hidden"}"
  1681. >
  1682. <slot
  1683. ${(0,Za.slotted)({property:"defaultSlottedNodes",filter:be.whitespaceFilter})}
  1684. ></slot>
  1685. </label>
  1686. <div class="root" part="root">
  1687. ${(0,be.startSlotTemplate)(e,t)}
  1688. <input
  1689. class="control"
  1690. part="control"
  1691. id="control"
  1692. @input="${e=>e.handleTextInput()}"
  1693. @change="${e=>e.handleChange()}"
  1694. ?autofocus="${e=>e.autofocus}"
  1695. ?disabled="${e=>e.disabled}"
  1696. list="${e=>e.list}"
  1697. ?readonly="${e=>e.readOnly}"
  1698. ?required="${e=>e.required}"
  1699. :value="${e=>e.value}"
  1700. type="date"
  1701. aria-atomic="${e=>e.ariaAtomic}"
  1702. aria-busy="${e=>e.ariaBusy}"
  1703. aria-controls="${e=>e.ariaControls}"
  1704. aria-current="${e=>e.ariaCurrent}"
  1705. aria-describedby="${e=>e.ariaDescribedby}"
  1706. aria-details="${e=>e.ariaDetails}"
  1707. aria-disabled="${e=>e.ariaDisabled}"
  1708. aria-errormessage="${e=>e.ariaErrormessage}"
  1709. aria-flowto="${e=>e.ariaFlowto}"
  1710. aria-haspopup="${e=>e.ariaHaspopup}"
  1711. aria-hidden="${e=>e.ariaHidden}"
  1712. aria-invalid="${e=>e.ariaInvalid}"
  1713. aria-keyshortcuts="${e=>e.ariaKeyshortcuts}"
  1714. aria-label="${e=>e.ariaLabel}"
  1715. aria-labelledby="${e=>e.ariaLabelledby}"
  1716. aria-live="${e=>e.ariaLive}"
  1717. aria-owns="${e=>e.ariaOwns}"
  1718. aria-relevant="${e=>e.ariaRelevant}"
  1719. aria-roledescription="${e=>e.ariaRoledescription}"
  1720. ${(0,Za.ref)("control")}
  1721. />
  1722. ${(0,be.endSlotTemplate)(e,t)}
  1723. </div>
  1724. </template>
  1725. `;const Zn=qn.compose({baseName:"date-field",styles:Un,template:Xn,shadowOptions:{delegatesFocus:true}});const Yn={toView(e){if(e===null||e===undefined){return null}return e===null||e===void 0?void 0:e.toColorString()},fromView(e){if(e===null||e===undefined){return null}const t=S(e);return t?se.create(t.r,t.g,t.b):null}};const Jn=(0,Za.css)`
  1726. :host {
  1727. background-color: ${sr};
  1728. color: ${la};
  1729. }
  1730. `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)`
  1731. :host {
  1732. background-color: ${Ja.ButtonFace};
  1733. box-shadow: 0 0 0 1px ${Ja.CanvasText};
  1734. color: ${Ja.ButtonText};
  1735. }
  1736. `));function Kn(e){return(t,o)=>{t[o+"Changed"]=function(t,o){if(o!==undefined&&o!==null){e.setValueFor(this,o)}else{e.deleteValueFor(this)}}}}class Qn extends be.FoundationElement{constructor(){super();this.noPaint=false;const e={handleChange:this.noPaintChanged.bind(this)};Za.Observable.getNotifier(this).subscribe(e,"fillColor");Za.Observable.getNotifier(this).subscribe(e,"baseLayerLuminance")}noPaintChanged(){if(!this.noPaint&&(this.fillColor!==void 0||this.baseLayerLuminance)){this.$fastController.addStyles(Jn)}else{this.$fastController.removeStyles(Jn)}}}si([(0,Za.attr)({attribute:"no-paint",mode:"boolean"})],Qn.prototype,"noPaint",void 0);si([(0,Za.attr)({attribute:"fill-color",converter:Yn}),Kn(sr)],Qn.prototype,"fillColor",void 0);si([(0,Za.attr)({attribute:"accent-color",converter:Yn,mode:"fromView"}),Kn(Xo)],Qn.prototype,"accentColor",void 0);si([(0,Za.attr)({attribute:"neutral-color",converter:Yn,mode:"fromView"}),Kn(Wo)],Qn.prototype,"neutralColor",void 0);si([(0,Za.attr)({attribute:"error-color",converter:Yn,mode:"fromView"}),Kn(fa)],Qn.prototype,"errorColor",void 0);si([(0,Za.attr)({converter:Za.nullableNumberConverter}),Kn(_t)],Qn.prototype,"density",void 0);si([(0,Za.attr)({attribute:"design-unit",converter:Za.nullableNumberConverter}),Kn(qt)],Qn.prototype,"designUnit",void 0);si([(0,Za.attr)({attribute:"direction"}),Kn(Ut)],Qn.prototype,"direction",void 0);si([(0,Za.attr)({attribute:"base-height-multiplier",converter:Za.nullableNumberConverter}),Kn(At)],Qn.prototype,"baseHeightMultiplier",void 0);si([(0,Za.attr)({attribute:"base-horizontal-spacing-multiplier",converter:Za.nullableNumberConverter}),Kn(Mt)],Qn.prototype,"baseHorizontalSpacingMultiplier",void 0);si([(0,Za.attr)({attribute:"control-corner-radius",converter:Za.nullableNumberConverter}),Kn(Et)],Qn.prototype,"controlCornerRadius",void 0);si([(0,Za.attr)({attribute:"stroke-width",converter:Za.nullableNumberConverter}),Kn(Zt)],Qn.prototype,"strokeWidth",void 0);si([(0,Za.attr)({attribute:"focus-stroke-width",converter:Za.nullableNumberConverter}),Kn(Yt)],Qn.prototype,"focusStrokeWidth",void 0);si([(0,Za.attr)({attribute:"disabled-opacity",converter:Za.nullableNumberConverter}),Kn(Xt)],Qn.prototype,"disabledOpacity",void 0);si([(0,Za.attr)({attribute:"type-ramp-minus-2-font-size"}),Kn(to)],Qn.prototype,"typeRampMinus2FontSize",void 0);si([(0,Za.attr)({attribute:"type-ramp-minus-2-line-height"}),Kn(oo)],Qn.prototype,"typeRampMinus2LineHeight",void 0);si([(0,Za.attr)({attribute:"type-ramp-minus-1-font-size"}),Kn(Qt)],Qn.prototype,"typeRampMinus1FontSize",void 0);si([(0,Za.attr)({attribute:"type-ramp-minus-1-line-height"}),Kn(eo)],Qn.prototype,"typeRampMinus1LineHeight",void 0);si([(0,Za.attr)({attribute:"type-ramp-base-font-size"}),Kn(Jt)],Qn.prototype,"typeRampBaseFontSize",void 0);si([(0,Za.attr)({attribute:"type-ramp-base-line-height"}),Kn(Kt)],Qn.prototype,"typeRampBaseLineHeight",void 0);si([(0,Za.attr)({attribute:"type-ramp-plus-1-font-size"}),Kn(ro)],Qn.prototype,"typeRampPlus1FontSize",void 0);si([(0,Za.attr)({attribute:"type-ramp-plus-1-line-height"}),Kn(ao)],Qn.prototype,"typeRampPlus1LineHeight",void 0);si([(0,Za.attr)({attribute:"type-ramp-plus-2-font-size"}),Kn(io)],Qn.prototype,"typeRampPlus2FontSize",void 0);si([(0,Za.attr)({attribute:"type-ramp-plus-2-line-height"}),Kn(no)],Qn.prototype,"typeRampPlus2LineHeight",void 0);si([(0,Za.attr)({attribute:"type-ramp-plus-3-font-size"}),Kn(lo)],Qn.prototype,"typeRampPlus3FontSize",void 0);si([(0,Za.attr)({attribute:"type-ramp-plus-3-line-height"}),Kn(so)],Qn.prototype,"typeRampPlus3LineHeight",void 0);si([(0,Za.attr)({attribute:"type-ramp-plus-4-font-size"}),Kn(co)],Qn.prototype,"typeRampPlus4FontSize",void 0);si([(0,Za.attr)({attribute:"type-ramp-plus-4-line-height"}),Kn(uo)],Qn.prototype,"typeRampPlus4LineHeight",void 0);si([(0,Za.attr)({attribute:"type-ramp-plus-5-font-size"}),Kn(ho)],Qn.prototype,"typeRampPlus5FontSize",void 0);si([(0,Za.attr)({attribute:"type-ramp-plus-5-line-height"}),Kn(po)],Qn.prototype,"typeRampPlus5LineHeight",void 0);si([(0,Za.attr)({attribute:"type-ramp-plus-6-font-size"}),Kn(go)],Qn.prototype,"typeRampPlus6FontSize",void 0);si([(0,Za.attr)({attribute:"type-ramp-plus-6-line-height"}),Kn(bo)],Qn.prototype,"typeRampPlus6LineHeight",void 0);si([(0,Za.attr)({attribute:"accent-fill-rest-delta",converter:Za.nullableNumberConverter}),Kn(fo)],Qn.prototype,"accentFillRestDelta",void 0);si([(0,Za.attr)({attribute:"accent-fill-hover-delta",converter:Za.nullableNumberConverter}),Kn(mo)],Qn.prototype,"accentFillHoverDelta",void 0);si([(0,Za.attr)({attribute:"accent-fill-active-delta",converter:Za.nullableNumberConverter}),Kn(vo)],Qn.prototype,"accentFillActiveDelta",void 0);si([(0,Za.attr)({attribute:"accent-fill-focus-delta",converter:Za.nullableNumberConverter}),Kn($o)],Qn.prototype,"accentFillFocusDelta",void 0);si([(0,Za.attr)({attribute:"accent-foreground-rest-delta",converter:Za.nullableNumberConverter}),Kn(xo)],Qn.prototype,"accentForegroundRestDelta",void 0);si([(0,Za.attr)({attribute:"accent-foreground-hover-delta",converter:Za.nullableNumberConverter}),Kn(yo)],Qn.prototype,"accentForegroundHoverDelta",void 0);si([(0,Za.attr)({attribute:"accent-foreground-active-delta",converter:Za.nullableNumberConverter}),Kn(wo)],Qn.prototype,"accentForegroundActiveDelta",void 0);si([(0,Za.attr)({attribute:"accent-foreground-focus-delta",converter:Za.nullableNumberConverter}),Kn(ko)],Qn.prototype,"accentForegroundFocusDelta",void 0);si([(0,Za.attr)({attribute:"neutral-fill-rest-delta",converter:Za.nullableNumberConverter}),Kn(Fo)],Qn.prototype,"neutralFillRestDelta",void 0);si([(0,Za.attr)({attribute:"neutral-fill-hover-delta",converter:Za.nullableNumberConverter}),Kn(Co)],Qn.prototype,"neutralFillHoverDelta",void 0);si([(0,Za.attr)({attribute:"neutral-fill-active-delta",converter:Za.nullableNumberConverter}),Kn(So)],Qn.prototype,"neutralFillActiveDelta",void 0);si([(0,Za.attr)({attribute:"neutral-fill-focus-delta",converter:Za.nullableNumberConverter}),Kn(To)],Qn.prototype,"neutralFillFocusDelta",void 0);si([(0,Za.attr)({attribute:"neutral-fill-input-rest-delta",converter:Za.nullableNumberConverter}),Kn(Vo)],Qn.prototype,"neutralFillInputRestDelta",void 0);si([(0,Za.attr)({attribute:"neutral-fill-input-hover-delta",converter:Za.nullableNumberConverter}),Kn(Do)],Qn.prototype,"neutralFillInputHoverDelta",void 0);si([(0,Za.attr)({attribute:"neutral-fill-input-active-delta",converter:Za.nullableNumberConverter}),Kn(jo)],Qn.prototype,"neutralFillInputActiveDelta",void 0);si([(0,Za.attr)({attribute:"neutral-fill-input-focus-delta",converter:Za.nullableNumberConverter}),Kn(zo)],Qn.prototype,"neutralFillInputFocusDelta",void 0);si([(0,Za.attr)({attribute:"neutral-fill-stealth-rest-delta",converter:Za.nullableNumberConverter}),Kn(Bo)],Qn.prototype,"neutralFillStealthRestDelta",void 0);si([(0,Za.attr)({attribute:"neutral-fill-stealth-hover-delta",converter:Za.nullableNumberConverter}),Kn(Lo)],Qn.prototype,"neutralFillStealthHoverDelta",void 0);si([(0,Za.attr)({attribute:"neutral-fill-stealth-active-delta",converter:Za.nullableNumberConverter}),Kn(Oo)],Qn.prototype,"neutralFillStealthActiveDelta",void 0);si([(0,Za.attr)({attribute:"neutral-fill-stealth-focus-delta",converter:Za.nullableNumberConverter}),Kn(Ho)],Qn.prototype,"neutralFillStealthFocusDelta",void 0);si([(0,Za.attr)({attribute:"neutral-fill-strong-hover-delta",converter:Za.nullableNumberConverter}),Kn(Po)],Qn.prototype,"neutralFillStrongHoverDelta",void 0);si([(0,Za.attr)({attribute:"neutral-fill-strong-active-delta",converter:Za.nullableNumberConverter}),Kn(Ro)],Qn.prototype,"neutralFillStrongActiveDelta",void 0);si([(0,Za.attr)({attribute:"neutral-fill-strong-focus-delta",converter:Za.nullableNumberConverter}),Kn(Io)],Qn.prototype,"neutralFillStrongFocusDelta",void 0);si([(0,Za.attr)({attribute:"base-layer-luminance",converter:Za.nullableNumberConverter}),Kn(Gt)],Qn.prototype,"baseLayerLuminance",void 0);si([(0,Za.attr)({attribute:"neutral-fill-layer-rest-delta",converter:Za.nullableNumberConverter}),Kn(Ao)],Qn.prototype,"neutralFillLayerRestDelta",void 0);si([(0,Za.attr)({attribute:"neutral-stroke-divider-rest-delta",converter:Za.nullableNumberConverter}),Kn(qo)],Qn.prototype,"neutralStrokeDividerRestDelta",void 0);si([(0,Za.attr)({attribute:"neutral-stroke-rest-delta",converter:Za.nullableNumberConverter}),Kn(Mo)],Qn.prototype,"neutralStrokeRestDelta",void 0);si([(0,Za.attr)({attribute:"neutral-stroke-hover-delta",converter:Za.nullableNumberConverter}),Kn(Go)],Qn.prototype,"neutralStrokeHoverDelta",void 0);si([(0,Za.attr)({attribute:"neutral-stroke-active-delta",converter:Za.nullableNumberConverter}),Kn(Eo)],Qn.prototype,"neutralStrokeActiveDelta",void 0);si([(0,Za.attr)({attribute:"neutral-stroke-focus-delta",converter:Za.nullableNumberConverter}),Kn(_o)],Qn.prototype,"neutralStrokeFocusDelta",void 0);const el=(e,t)=>(0,Za.html)` <slot></slot> `;const tl=(e,t)=>(0,Za.css)`
  1737. ${(0,be.display)("block")}
  1738. `;const ol=Qn.compose({baseName:"design-system-provider",template:el,styles:tl});const rl=(e,t)=>(0,Za.css)`
  1739. :host([hidden]) {
  1740. display: none;
  1741. }
  1742. :host {
  1743. --elevation: 14;
  1744. --dialog-height: 480px;
  1745. --dialog-width: 640px;
  1746. display: block;
  1747. }
  1748. .overlay {
  1749. position: fixed;
  1750. top: 0;
  1751. left: 0;
  1752. right: 0;
  1753. bottom: 0;
  1754. background: rgba(0, 0, 0, 0.3);
  1755. touch-action: none;
  1756. }
  1757. .positioning-region {
  1758. display: flex;
  1759. justify-content: center;
  1760. position: fixed;
  1761. top: 0;
  1762. bottom: 0;
  1763. left: 0;
  1764. right: 0;
  1765. overflow: auto;
  1766. }
  1767. .control {
  1768. ${vn}
  1769. margin-top: auto;
  1770. margin-bottom: auto;
  1771. width: var(--dialog-width);
  1772. height: var(--dialog-height);
  1773. background-color: ${sr};
  1774. z-index: 1;
  1775. border-radius: calc(${Et} * 1px);
  1776. border: calc(${Zt} * 1px) solid transparent;
  1777. }
  1778. `;class al extends be.Dialog{}const il=al.compose({baseName:"dialog",baseClass:be.Dialog,template:be.dialogTemplate,styles:rl});const nl=(e,t)=>(0,Za.css)`
  1779. .disclosure {
  1780. transition: height 0.35s;
  1781. }
  1782. .disclosure .invoker::-webkit-details-marker {
  1783. display: none;
  1784. }
  1785. .disclosure .invoker {
  1786. list-style-type: none;
  1787. }
  1788. :host([appearance='accent']) .invoker {
  1789. background: ${ur};
  1790. color: ${mr};
  1791. font-family: ${It};
  1792. font-size: ${Jt};
  1793. border-radius: calc(${Et} * 1px);
  1794. outline: none;
  1795. cursor: pointer;
  1796. margin: 16px 0;
  1797. padding: 12px;
  1798. max-width: max-content;
  1799. }
  1800. :host([appearance='accent']) .invoker:active {
  1801. background: ${pr};
  1802. color: ${$r};
  1803. }
  1804. :host([appearance='accent']) .invoker:hover {
  1805. background: ${hr};
  1806. color: ${vr};
  1807. }
  1808. :host([appearance='lightweight']) .invoker {
  1809. background: transparent;
  1810. color: ${Vr};
  1811. border-bottom: calc(${Zt} * 1px) solid ${Vr};
  1812. cursor: pointer;
  1813. width: max-content;
  1814. margin: 16px 0;
  1815. }
  1816. :host([appearance='lightweight']) .invoker:active {
  1817. border-bottom-color: ${jr};
  1818. }
  1819. :host([appearance='lightweight']) .invoker:hover {
  1820. border-bottom-color: ${Dr};
  1821. }
  1822. .disclosure[open] .invoker ~ * {
  1823. animation: fadeIn 0.5s ease-in-out;
  1824. }
  1825. @keyframes fadeIn {
  1826. 0% {
  1827. opacity: 0;
  1828. }
  1829. 100% {
  1830. opacity: 1;
  1831. }
  1832. }
  1833. `;class ll extends be.Disclosure{constructor(){super(...arguments);this.height=0;this.totalHeight=0}connectedCallback(){super.connectedCallback();if(!this.appearance){this.appearance="accent"}}appearanceChanged(e,t){if(e!==t){this.classList.add(t);this.classList.remove(e)}}onToggle(){super.onToggle();this.details.style.setProperty("height",`${this.disclosureHeight}px`)}setup(){super.setup();const e=()=>this.details.getBoundingClientRect().height;this.show();this.totalHeight=e();this.hide();this.height=e();if(this.expanded){this.show()}}get disclosureHeight(){return this.expanded?this.totalHeight:this.height}}si([Za.attr],ll.prototype,"appearance",void 0);const sl=ll.compose({baseName:"disclosure",baseClass:be.Disclosure,template:be.disclosureTemplate,styles:nl});const cl=(e,t)=>(0,Za.css)`
  1834. ${(0,be.display)("block")} :host {
  1835. box-sizing: content-box;
  1836. height: 0;
  1837. margin: calc(${qt} * 1px) 0;
  1838. border-top: calc(${Zt} * 1px) solid ${ga};
  1839. border-left: none;
  1840. }
  1841. :host([orientation='vertical']) {
  1842. height: 100%;
  1843. margin: 0 calc(${qt} * 1px);
  1844. border-top: none;
  1845. border-left: calc(${Zt} * 1px) solid ${ga};
  1846. }
  1847. `;class dl extends be.Divider{}const ul=dl.compose({baseName:"divider",baseClass:be.Divider,template:be.dividerTemplate,styles:cl});class hl extends be.ListboxElement{sizeChanged(e,t){super.sizeChanged(e,t);this.updateComputedStylesheet()}updateComputedStylesheet(){if(this.computedStylesheet){this.$fastController.removeStyles(this.computedStylesheet)}const e=`${this.size}`;this.computedStylesheet=(0,Za.css)`
  1848. :host {
  1849. --size: ${e};
  1850. }
  1851. `;this.$fastController.addStyles(this.computedStylesheet)}}const pl=hl.compose({baseName:"listbox",baseClass:be.ListboxElement,template:be.listboxTemplate,styles:Sn});const gl=(e,t)=>(0,Za.css)`
  1852. ${(0,be.display)("block")} :host {
  1853. --elevation: 11;
  1854. background: ${sr};
  1855. border: calc(${Zt} * 1px) solid transparent;
  1856. ${vn}
  1857. margin: 0;
  1858. border-radius: calc(${Et} * 1px);
  1859. padding: calc(${qt} * 1px) 0;
  1860. max-width: 368px;
  1861. min-width: 64px;
  1862. }
  1863. :host([slot='submenu']) {
  1864. width: max-content;
  1865. margin: 0 calc(${qt} * 1px);
  1866. }
  1867. ::slotted(hr) {
  1868. box-sizing: content-box;
  1869. height: 0;
  1870. margin: 0;
  1871. border: none;
  1872. border-top: calc(${Zt} * 1px) solid ${ga};
  1873. }
  1874. `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)`
  1875. :host {
  1876. background: ${Ja.Canvas};
  1877. border-color: ${Ja.CanvasText};
  1878. }
  1879. `));class bl extends be.Menu{connectedCallback(){super.connectedCallback();sr.setValueFor(this,Qo)}}const fl=bl.compose({baseName:"menu",baseClass:be.Menu,template:be.menuTemplate,styles:gl});const ml=(e,t)=>(0,Za.css)`
  1880. ${(0,be.display)("grid")} :host {
  1881. contain: layout;
  1882. overflow: visible;
  1883. font-family: ${It};
  1884. outline: none;
  1885. box-sizing: border-box;
  1886. height: calc(${Ka} * 1px);
  1887. grid-template-columns: minmax(42px, auto) 1fr minmax(42px, auto);
  1888. grid-template-rows: auto;
  1889. justify-items: center;
  1890. align-items: center;
  1891. padding: 0;
  1892. margin: 0 calc(${qt} * 1px);
  1893. white-space: nowrap;
  1894. background: ${Er};
  1895. color: ${la};
  1896. fill: currentcolor;
  1897. cursor: pointer;
  1898. font-size: ${Jt};
  1899. line-height: ${Kt};
  1900. border-radius: calc(${Et} * 1px);
  1901. border: calc(${Yt} * 1px) solid transparent;
  1902. }
  1903. :host(:hover) {
  1904. position: relative;
  1905. z-index: 1;
  1906. }
  1907. :host(.indent-0) {
  1908. grid-template-columns: auto 1fr minmax(42px, auto);
  1909. }
  1910. :host(.indent-0) .content {
  1911. grid-column: 1;
  1912. grid-row: 1;
  1913. margin-inline-start: 10px;
  1914. }
  1915. :host(.indent-0) .expand-collapse-glyph-container {
  1916. grid-column: 5;
  1917. grid-row: 1;
  1918. }
  1919. :host(.indent-2) {
  1920. grid-template-columns:
  1921. minmax(42px, auto) minmax(42px, auto) 1fr minmax(42px, auto)
  1922. minmax(42px, auto);
  1923. }
  1924. :host(.indent-2) .content {
  1925. grid-column: 3;
  1926. grid-row: 1;
  1927. margin-inline-start: 10px;
  1928. }
  1929. :host(.indent-2) .expand-collapse-glyph-container {
  1930. grid-column: 5;
  1931. grid-row: 1;
  1932. }
  1933. :host(.indent-2) .start {
  1934. grid-column: 2;
  1935. }
  1936. :host(.indent-2) .end {
  1937. grid-column: 4;
  1938. }
  1939. :host(:${be.focusVisible}) {
  1940. border-color: ${gr};
  1941. background: ${Wr};
  1942. color: ${la};
  1943. }
  1944. :host(:hover) {
  1945. background: ${_r};
  1946. color: ${la};
  1947. }
  1948. :host(:active) {
  1949. background: ${qr};
  1950. }
  1951. :host([aria-checked='true']),
  1952. :host(.expanded) {
  1953. background: ${Lr};
  1954. color: ${la};
  1955. }
  1956. :host([disabled]) {
  1957. cursor: ${be.disabledCursor};
  1958. opacity: ${Xt};
  1959. }
  1960. :host([disabled]:hover) {
  1961. color: ${la};
  1962. fill: currentcolor;
  1963. background: ${Er};
  1964. }
  1965. :host([disabled]:hover) .start,
  1966. :host([disabled]:hover) .end,
  1967. :host([disabled]:hover)::slotted(svg) {
  1968. fill: ${la};
  1969. }
  1970. .expand-collapse-glyph {
  1971. /* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */
  1972. width: calc((16 + ${_t}) * 1px);
  1973. height: calc((16 + ${_t}) * 1px);
  1974. fill: currentcolor;
  1975. }
  1976. .content {
  1977. grid-column-start: 2;
  1978. justify-self: start;
  1979. overflow: hidden;
  1980. text-overflow: ellipsis;
  1981. }
  1982. .start,
  1983. .end {
  1984. display: flex;
  1985. justify-content: center;
  1986. }
  1987. ::slotted(svg) {
  1988. /* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */
  1989. width: 16px;
  1990. height: 16px;
  1991. /* Something like that would do if the typography is adaptive
  1992. font-size: inherit;
  1993. width: ${ro};
  1994. height: ${ro};
  1995. */
  1996. }
  1997. :host(:hover) .start,
  1998. :host(:hover) .end,
  1999. :host(:hover)::slotted(svg),
  2000. :host(:active) .start,
  2001. :host(:active) .end,
  2002. :host(:active)::slotted(svg) {
  2003. fill: ${la};
  2004. }
  2005. :host(.indent-0[aria-haspopup='menu']) {
  2006. display: grid;
  2007. grid-template-columns: minmax(42px, auto) auto 1fr minmax(42px, auto) minmax(
  2008. 42px,
  2009. auto
  2010. );
  2011. align-items: center;
  2012. min-height: 32px;
  2013. }
  2014. :host(.indent-1[aria-haspopup='menu']),
  2015. :host(.indent-1[role='menuitemcheckbox']),
  2016. :host(.indent-1[role='menuitemradio']) {
  2017. display: grid;
  2018. grid-template-columns: minmax(42px, auto) auto 1fr minmax(42px, auto) minmax(
  2019. 42px,
  2020. auto
  2021. );
  2022. align-items: center;
  2023. min-height: 32px;
  2024. }
  2025. :host(.indent-2:not([aria-haspopup='menu'])) .end {
  2026. grid-column: 5;
  2027. }
  2028. :host .input-container,
  2029. :host .expand-collapse-glyph-container {
  2030. display: none;
  2031. }
  2032. :host([aria-haspopup='menu']) .expand-collapse-glyph-container,
  2033. :host([role='menuitemcheckbox']) .input-container,
  2034. :host([role='menuitemradio']) .input-container {
  2035. display: grid;
  2036. margin-inline-end: 10px;
  2037. }
  2038. :host([aria-haspopup='menu']) .content,
  2039. :host([role='menuitemcheckbox']) .content,
  2040. :host([role='menuitemradio']) .content {
  2041. grid-column-start: 3;
  2042. }
  2043. :host([aria-haspopup='menu'].indent-0) .content {
  2044. grid-column-start: 1;
  2045. }
  2046. :host([aria-haspopup='menu']) .end,
  2047. :host([role='menuitemcheckbox']) .end,
  2048. :host([role='menuitemradio']) .end {
  2049. grid-column-start: 4;
  2050. }
  2051. :host .expand-collapse,
  2052. :host .checkbox,
  2053. :host .radio {
  2054. display: flex;
  2055. align-items: center;
  2056. justify-content: center;
  2057. position: relative;
  2058. width: 20px;
  2059. height: 20px;
  2060. box-sizing: border-box;
  2061. outline: none;
  2062. margin-inline-start: 10px;
  2063. }
  2064. :host .checkbox,
  2065. :host .radio {
  2066. border: calc(${Zt} * 1px) solid ${la};
  2067. }
  2068. :host([aria-checked='true']) .checkbox,
  2069. :host([aria-checked='true']) .radio {
  2070. background: ${ur};
  2071. border-color: ${ur};
  2072. }
  2073. :host .checkbox {
  2074. border-radius: calc(${Et} * 1px);
  2075. }
  2076. :host .radio {
  2077. border-radius: 999px;
  2078. }
  2079. :host .checkbox-indicator,
  2080. :host .radio-indicator,
  2081. :host .expand-collapse-indicator,
  2082. ::slotted([slot='checkbox-indicator']),
  2083. ::slotted([slot='radio-indicator']),
  2084. ::slotted([slot='expand-collapse-indicator']) {
  2085. display: none;
  2086. }
  2087. ::slotted([slot='end']:not(svg)) {
  2088. margin-inline-end: 10px;
  2089. color: ${ia};
  2090. }
  2091. :host([aria-checked='true']) .checkbox-indicator,
  2092. :host([aria-checked='true']) ::slotted([slot='checkbox-indicator']) {
  2093. width: 100%;
  2094. height: 100%;
  2095. display: block;
  2096. fill: ${mr};
  2097. pointer-events: none;
  2098. }
  2099. :host([aria-checked='true']) .radio-indicator {
  2100. position: absolute;
  2101. top: 4px;
  2102. left: 4px;
  2103. right: 4px;
  2104. bottom: 4px;
  2105. border-radius: 999px;
  2106. display: block;
  2107. background: ${mr};
  2108. pointer-events: none;
  2109. }
  2110. :host([aria-checked='true']) ::slotted([slot='radio-indicator']) {
  2111. display: block;
  2112. pointer-events: none;
  2113. }
  2114. `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)`
  2115. :host {
  2116. border-color: transparent;
  2117. color: ${Ja.ButtonText};
  2118. forced-color-adjust: none;
  2119. }
  2120. :host(:hover) {
  2121. background: ${Ja.Highlight};
  2122. color: ${Ja.HighlightText};
  2123. }
  2124. :host(:hover) .start,
  2125. :host(:hover) .end,
  2126. :host(:hover)::slotted(svg),
  2127. :host(:active) .start,
  2128. :host(:active) .end,
  2129. :host(:active)::slotted(svg) {
  2130. fill: ${Ja.HighlightText};
  2131. }
  2132. :host(.expanded) {
  2133. background: ${Ja.Highlight};
  2134. border-color: ${Ja.Highlight};
  2135. color: ${Ja.HighlightText};
  2136. }
  2137. :host(:${be.focusVisible}) {
  2138. background: ${Ja.Highlight};
  2139. border-color: ${Ja.ButtonText};
  2140. box-shadow: 0 0 0 calc(${Yt} * 1px) inset
  2141. ${Ja.HighlightText};
  2142. color: ${Ja.HighlightText};
  2143. fill: currentcolor;
  2144. }
  2145. :host([disabled]),
  2146. :host([disabled]:hover),
  2147. :host([disabled]:hover) .start,
  2148. :host([disabled]:hover) .end,
  2149. :host([disabled]:hover)::slotted(svg) {
  2150. background: ${Ja.Canvas};
  2151. color: ${Ja.GrayText};
  2152. fill: currentcolor;
  2153. opacity: 1;
  2154. }
  2155. :host .expanded-toggle,
  2156. :host .checkbox,
  2157. :host .radio {
  2158. border-color: ${Ja.ButtonText};
  2159. background: ${Ja.HighlightText};
  2160. }
  2161. :host([checked='true']) .checkbox,
  2162. :host([checked='true']) .radio {
  2163. background: ${Ja.HighlightText};
  2164. border-color: ${Ja.HighlightText};
  2165. }
  2166. :host(:hover) .expanded-toggle,
  2167. :host(:hover) .checkbox,
  2168. :host(:hover) .radio,
  2169. :host(:${be.focusVisible}) .expanded-toggle,
  2170. :host(:${be.focusVisible}) .checkbox,
  2171. :host(:${be.focusVisible}) .radio,
  2172. :host([checked="true"]:hover) .checkbox,
  2173. :host([checked="true"]:hover) .radio,
  2174. :host([checked="true"]:${be.focusVisible}) .checkbox,
  2175. :host([checked="true"]:${be.focusVisible}) .radio {
  2176. border-color: ${Ja.HighlightText};
  2177. }
  2178. :host([aria-checked='true']) {
  2179. background: ${Ja.Highlight};
  2180. color: ${Ja.HighlightText};
  2181. }
  2182. :host([aria-checked='true']) .checkbox-indicator,
  2183. :host([aria-checked='true']) ::slotted([slot='checkbox-indicator']),
  2184. :host([aria-checked='true']) ::slotted([slot='radio-indicator']) {
  2185. fill: ${Ja.Highlight};
  2186. }
  2187. :host([aria-checked='true']) .radio-indicator {
  2188. background: ${Ja.Highlight};
  2189. }
  2190. ::slotted([slot='end']:not(svg)) {
  2191. color: ${Ja.ButtonText};
  2192. }
  2193. :host(:hover) ::slotted([slot="end"]:not(svg)),
  2194. :host(:${be.focusVisible}) ::slotted([slot="end"]:not(svg)) {
  2195. color: ${Ja.HighlightText};
  2196. }
  2197. `),new Zi((0,Za.css)`
  2198. .expand-collapse-glyph {
  2199. transform: rotate(0deg);
  2200. }
  2201. `,(0,Za.css)`
  2202. .expand-collapse-glyph {
  2203. transform: rotate(180deg);
  2204. }
  2205. `));class vl extends be.MenuItem{}const $l=vl.compose({baseName:"menu-item",baseClass:be.MenuItem,template:be.menuItemTemplate,styles:ml,checkboxIndicator:`\n <svg\n part="checkbox-indicator"\n class="checkbox-indicator"\n viewBox="0 0 20 20"\n xmlns="http://www.w3.org/2000/svg"\n >\n <path\n fill-rule="evenodd"\n clip-rule="evenodd"\n d="M8.143 12.6697L15.235 4.5L16.8 5.90363L8.23812 15.7667L3.80005 11.2556L5.27591 9.7555L8.143 12.6697Z"\n />\n </svg>\n `,expandCollapseGlyph:`\n <svg\n viewBox="0 0 16 16"\n xmlns="http://www.w3.org/2000/svg"\n class="expand-collapse-glyph"\n part="expand-collapse-glyph"\n >\n <path\n d="M5.00001 12.3263C5.00124 12.5147 5.05566 12.699 5.15699 12.8578C5.25831 13.0167 5.40243 13.1437 5.57273 13.2242C5.74304 13.3047 5.9326 13.3354 6.11959 13.3128C6.30659 13.2902 6.4834 13.2152 6.62967 13.0965L10.8988 8.83532C11.0739 8.69473 11.2153 8.51658 11.3124 8.31402C11.4096 8.11146 11.46 7.88966 11.46 7.66499C11.46 7.44033 11.4096 7.21853 11.3124 7.01597C11.2153 6.81341 11.0739 6.63526 10.8988 6.49467L6.62967 2.22347C6.48274 2.10422 6.30501 2.02912 6.11712 2.00691C5.92923 1.9847 5.73889 2.01628 5.56823 2.09799C5.39757 2.17969 5.25358 2.30817 5.153 2.46849C5.05241 2.62882 4.99936 2.8144 5.00001 3.00369V12.3263Z"\n />\n </svg>\n `,radioIndicator:`\n <span part="radio-indicator" class="radio-indicator"></span>\n `});const xl=(e,t)=>(0,Za.css)`
  2206. ${Wn}
  2207. .controls {
  2208. opacity: 0;
  2209. }
  2210. .step-up-glyph,
  2211. .step-down-glyph {
  2212. display: block;
  2213. padding: 4px 10px;
  2214. cursor: pointer;
  2215. }
  2216. .step-up-glyph:before,
  2217. .step-down-glyph:before {
  2218. content: '';
  2219. display: block;
  2220. border: solid transparent 6px;
  2221. }
  2222. .step-up-glyph:before {
  2223. border-bottom-color: ${la};
  2224. }
  2225. .step-down-glyph:before {
  2226. border-top-color: ${la};
  2227. }
  2228. :host(:hover:not([disabled])) .controls,
  2229. :host(:focus-within:not([disabled])) .controls {
  2230. opacity: 1;
  2231. }
  2232. `;class yl extends be.NumberField{constructor(){super(...arguments);this.appearance="outline"}}si([Za.attr],yl.prototype,"appearance",void 0);const wl=yl.compose({baseName:"number-field",baseClass:be.NumberField,styles:xl,template:be.numberFieldTemplate,shadowOptions:{delegatesFocus:true},stepDownGlyph:`\n <span class="step-down-glyph" part="step-down-glyph"></span>\n `,stepUpGlyph:`\n <span class="step-up-glyph" part="step-up-glyph"></span>\n `});const kl=(e,t)=>(0,Za.css)`
  2233. ${(0,be.display)("inline-flex")} :host {
  2234. align-items: center;
  2235. font-family: ${It};
  2236. border-radius: calc(${Et} * 1px);
  2237. border: calc(${Yt} * 1px) solid transparent;
  2238. box-sizing: border-box;
  2239. background: ${Er};
  2240. color: ${la};
  2241. cursor: pointer;
  2242. flex: 0 0 auto;
  2243. fill: currentcolor;
  2244. font-size: ${Jt};
  2245. height: calc(${Ka} * 1px);
  2246. line-height: ${Kt};
  2247. margin: 0 calc((${qt} - ${Yt}) * 1px);
  2248. outline: none;
  2249. overflow: hidden;
  2250. padding: 0 1ch;
  2251. user-select: none;
  2252. white-space: nowrap;
  2253. }
  2254. :host(:not([disabled]):not([aria-selected='true']):hover) {
  2255. background: ${_r};
  2256. }
  2257. :host(:not([disabled]):not([aria-selected='true']):active) {
  2258. background: ${qr};
  2259. }
  2260. :host([aria-selected='true']) {
  2261. background: ${ur};
  2262. color: ${mr};
  2263. }
  2264. :host(:not([disabled])[aria-selected='true']:hover) {
  2265. background: ${hr};
  2266. color: ${vr};
  2267. }
  2268. :host(:not([disabled])[aria-selected='true']:active) {
  2269. background: ${pr};
  2270. color: ${$r};
  2271. }
  2272. :host([disabled]) {
  2273. cursor: ${be.disabledCursor};
  2274. opacity: ${Xt};
  2275. }
  2276. .content {
  2277. grid-column-start: 2;
  2278. justify-self: start;
  2279. overflow: hidden;
  2280. text-overflow: ellipsis;
  2281. }
  2282. .start,
  2283. .end,
  2284. ::slotted(svg) {
  2285. display: flex;
  2286. }
  2287. ::slotted(svg) {
  2288. /* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */
  2289. height: calc(${qt} * 4px);
  2290. width: calc(${qt} * 4px);
  2291. }
  2292. ::slotted([slot='end']) {
  2293. margin-inline-start: 1ch;
  2294. }
  2295. ::slotted([slot='start']) {
  2296. margin-inline-end: 1ch;
  2297. }
  2298. :host([aria-checked='true'][aria-selected='false']) {
  2299. border-color: ${ta};
  2300. }
  2301. :host([aria-checked='true'][aria-selected='true']) {
  2302. border-color: ${ta};
  2303. box-shadow: 0 0 0 calc(${Yt} * 2 * 1px) inset
  2304. ${ra};
  2305. }
  2306. `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)`
  2307. :host {
  2308. border-color: transparent;
  2309. forced-color-adjust: none;
  2310. color: ${Ja.ButtonText};
  2311. fill: currentcolor;
  2312. }
  2313. :host(:not([aria-selected='true']):hover),
  2314. :host([aria-selected='true']) {
  2315. background: ${Ja.Highlight};
  2316. color: ${Ja.HighlightText};
  2317. }
  2318. :host([disabled]),
  2319. :host([disabled][aria-selected='false']:hover) {
  2320. background: ${Ja.Canvas};
  2321. color: ${Ja.GrayText};
  2322. fill: currentcolor;
  2323. opacity: 1;
  2324. }
  2325. :host([aria-checked='true'][aria-selected='false']) {
  2326. background: ${Ja.ButtonFace};
  2327. color: ${Ja.ButtonText};
  2328. border-color: ${Ja.ButtonText};
  2329. }
  2330. :host([aria-checked='true'][aria-selected='true']),
  2331. :host([aria-checked='true'][aria-selected='true']:hover) {
  2332. background: ${Ja.Highlight};
  2333. color: ${Ja.HighlightText};
  2334. border-color: ${Ja.ButtonText};
  2335. }
  2336. `));class Fl extends be.ListboxOption{}const Cl=Fl.compose({baseName:"option",baseClass:be.ListboxOption,template:be.listboxOptionTemplate,styles:kl});const Sl=(e,t)=>(0,Za.css)`
  2337. ${(0,be.display)("flex")} :host {
  2338. align-items: center;
  2339. outline: none;
  2340. height: calc(${qt} * 1px);
  2341. margin: calc(${qt} * 1px) 0;
  2342. }
  2343. .progress {
  2344. background-color: ${Lr};
  2345. border-radius: calc(${qt} * 1px);
  2346. width: 100%;
  2347. height: 100%;
  2348. display: flex;
  2349. align-items: center;
  2350. position: relative;
  2351. }
  2352. .determinate {
  2353. background-color: ${Vr};
  2354. border-radius: calc(${qt} * 1px);
  2355. height: 100%;
  2356. transition: all 0.2s ease-in-out;
  2357. display: flex;
  2358. }
  2359. .indeterminate {
  2360. height: 100%;
  2361. border-radius: calc(${qt} * 1px);
  2362. display: flex;
  2363. width: 100%;
  2364. position: relative;
  2365. overflow: hidden;
  2366. }
  2367. .indeterminate-indicator-1 {
  2368. position: absolute;
  2369. opacity: 0;
  2370. height: 100%;
  2371. background-color: ${Vr};
  2372. border-radius: calc(${qt} * 1px);
  2373. animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);
  2374. width: 40%;
  2375. animation: indeterminate-1 2s infinite;
  2376. }
  2377. .indeterminate-indicator-2 {
  2378. position: absolute;
  2379. opacity: 0;
  2380. height: 100%;
  2381. background-color: ${Vr};
  2382. border-radius: calc(${qt} * 1px);
  2383. animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);
  2384. width: 60%;
  2385. animation: indeterminate-2 2s infinite;
  2386. }
  2387. :host([paused]) .indeterminate-indicator-1,
  2388. :host([paused]) .indeterminate-indicator-2 {
  2389. animation-play-state: paused;
  2390. background-color: ${Lr};
  2391. }
  2392. :host([paused]) .determinate {
  2393. background-color: ${ia};
  2394. }
  2395. @keyframes indeterminate-1 {
  2396. 0% {
  2397. opacity: 1;
  2398. transform: translateX(-100%);
  2399. }
  2400. 70% {
  2401. opacity: 1;
  2402. transform: translateX(300%);
  2403. }
  2404. 70.01% {
  2405. opacity: 0;
  2406. }
  2407. 100% {
  2408. opacity: 0;
  2409. transform: translateX(300%);
  2410. }
  2411. }
  2412. @keyframes indeterminate-2 {
  2413. 0% {
  2414. opacity: 0;
  2415. transform: translateX(-150%);
  2416. }
  2417. 29.99% {
  2418. opacity: 0;
  2419. }
  2420. 30% {
  2421. opacity: 1;
  2422. transform: translateX(-150%);
  2423. }
  2424. 100% {
  2425. transform: translateX(166.66%);
  2426. opacity: 1;
  2427. }
  2428. }
  2429. `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)`
  2430. .progress {
  2431. forced-color-adjust: none;
  2432. background-color: ${Ja.Field};
  2433. box-shadow: 0 0 0 1px inset ${Ja.FieldText};
  2434. }
  2435. .determinate,
  2436. .indeterminate-indicator-1,
  2437. .indeterminate-indicator-2 {
  2438. forced-color-adjust: none;
  2439. background-color: ${Ja.FieldText};
  2440. }
  2441. :host([paused]) .determinate,
  2442. :host([paused]) .indeterminate-indicator-1,
  2443. :host([paused]) .indeterminate-indicator-2 {
  2444. background-color: ${Ja.GrayText};
  2445. }
  2446. `));class Tl extends be.BaseProgress{}const Vl=Tl.compose({baseName:"progress",baseClass:be.BaseProgress,template:be.progressTemplate,styles:Sl,indeterminateIndicator1:`\n <span class="indeterminate-indicator-1" part="indeterminate-indicator-1"></span>\n `,indeterminateIndicator2:`\n <span class="indeterminate-indicator-2" part="indeterminate-indicator-2"></span>\n `});const Dl=(e,t)=>(0,Za.css)`
  2447. ${(0,be.display)("flex")} :host {
  2448. align-items: center;
  2449. outline: none;
  2450. height: calc(${Ka} * 1px);
  2451. width: calc(${Ka} * 1px);
  2452. margin: calc(${Ka} * 1px) 0;
  2453. }
  2454. .progress {
  2455. height: 100%;
  2456. width: 100%;
  2457. }
  2458. .background {
  2459. stroke: ${Lr};
  2460. fill: none;
  2461. stroke-width: 2px;
  2462. }
  2463. .determinate {
  2464. stroke: ${Vr};
  2465. fill: none;
  2466. stroke-width: 2px;
  2467. stroke-linecap: round;
  2468. transform-origin: 50% 50%;
  2469. transform: rotate(-90deg);
  2470. transition: all 0.2s ease-in-out;
  2471. }
  2472. .indeterminate-indicator-1 {
  2473. stroke: ${Vr};
  2474. fill: none;
  2475. stroke-width: 2px;
  2476. stroke-linecap: round;
  2477. transform-origin: 50% 50%;
  2478. transform: rotate(-90deg);
  2479. transition: all 0.2s ease-in-out;
  2480. animation: spin-infinite 2s linear infinite;
  2481. }
  2482. :host([paused]) .indeterminate-indicator-1 {
  2483. animation-play-state: paused;
  2484. stroke: ${Lr};
  2485. }
  2486. :host([paused]) .determinate {
  2487. stroke: ${ia};
  2488. }
  2489. @keyframes spin-infinite {
  2490. 0% {
  2491. stroke-dasharray: 0.01px 43.97px;
  2492. transform: rotate(0deg);
  2493. }
  2494. 50% {
  2495. stroke-dasharray: 21.99px 21.99px;
  2496. transform: rotate(450deg);
  2497. }
  2498. 100% {
  2499. stroke-dasharray: 0.01px 43.97px;
  2500. transform: rotate(1080deg);
  2501. }
  2502. }
  2503. `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)`
  2504. .indeterminate-indicator-1,
  2505. .determinate {
  2506. stroke: ${Ja.FieldText};
  2507. }
  2508. .background {
  2509. stroke: ${Ja.Field};
  2510. }
  2511. :host([paused]) .indeterminate-indicator-1 {
  2512. stroke: ${Ja.Field};
  2513. }
  2514. :host([paused]) .determinate {
  2515. stroke: ${Ja.GrayText};
  2516. }
  2517. `));class jl extends be.BaseProgress{}const zl=jl.compose({baseName:"progress-ring",baseClass:be.BaseProgress,template:be.progressRingTemplate,styles:Dl,indeterminateIndicator:`\n <svg class="progress" part="progress" viewBox="0 0 16 16">\n <circle\n class="background"\n part="background"\n cx="8px"\n cy="8px"\n r="7px"\n ></circle>\n <circle\n class="indeterminate-indicator-1"\n part="indeterminate-indicator-1"\n cx="8px"\n cy="8px"\n r="7px"\n ></circle>\n </svg>\n `});const Bl=(e,t)=>(0,Za.css)`
  2518. ${(0,be.display)("inline-flex")} :host {
  2519. --input-size: calc((${Ka} / 2) + ${qt});
  2520. align-items: center;
  2521. outline: none;
  2522. margin: calc(${qt} * 1px) 0;
  2523. /* Chromium likes to select label text or the default slot when
  2524. the radio is clicked. Maybe there is a better solution here? */
  2525. user-select: none;
  2526. position: relative;
  2527. flex-direction: row;
  2528. transition: all 0.2s ease-in-out;
  2529. }
  2530. .control {
  2531. position: relative;
  2532. width: calc((${Ka} / 2 + ${qt}) * 1px);
  2533. height: calc((${Ka} / 2 + ${qt}) * 1px);
  2534. box-sizing: border-box;
  2535. border-radius: 999px;
  2536. border: calc(${Zt} * 1px) solid ${ca};
  2537. background: ${Rr};
  2538. outline: none;
  2539. cursor: pointer;
  2540. }
  2541. :host([aria-invalid='true']) .control {
  2542. border-color: ${$a};
  2543. }
  2544. .label {
  2545. font-family: ${It};
  2546. color: ${la};
  2547. padding-inline-start: calc(${qt} * 2px + 2px);
  2548. margin-inline-end: calc(${qt} * 2px + 2px);
  2549. cursor: pointer;
  2550. font-size: ${Jt};
  2551. line-height: ${Kt};
  2552. }
  2553. .label__hidden {
  2554. display: none;
  2555. visibility: hidden;
  2556. }
  2557. .control,
  2558. .checked-indicator {
  2559. flex-shrink: 0;
  2560. }
  2561. .checked-indicator {
  2562. position: absolute;
  2563. top: 5px;
  2564. left: 5px;
  2565. right: 5px;
  2566. bottom: 5px;
  2567. border-radius: 999px;
  2568. display: inline-block;
  2569. background: ${mr};
  2570. fill: ${mr};
  2571. opacity: 0;
  2572. pointer-events: none;
  2573. }
  2574. :host(:not([disabled])) .control:hover {
  2575. background: ${Ir};
  2576. border-color: ${da};
  2577. }
  2578. :host([aria-invalid='true']:not([disabled])) .control:hover {
  2579. border-color: ${xa};
  2580. }
  2581. :host(:not([disabled])) .control:active {
  2582. background: ${Ar};
  2583. border-color: ${ua};
  2584. }
  2585. :host([aria-invalid='true']:not([disabled])) .control:active {
  2586. border-color: ${ya};
  2587. }
  2588. :host(:${be.focusVisible}) .control {
  2589. outline: solid calc(${Yt} * 1px) ${gr};
  2590. }
  2591. :host([aria-invalid='true']:${be.focusVisible}) .control {
  2592. outline-color: ${wa};
  2593. }
  2594. :host([aria-checked='true']) .control {
  2595. background: ${ur};
  2596. border: calc(${Zt} * 1px) solid ${ur};
  2597. }
  2598. :host([aria-invalid='true'][aria-checked='true']) .control {
  2599. background-color: ${$a};
  2600. border-color: ${$a};
  2601. }
  2602. :host([aria-checked='true']:not([disabled])) .control:hover {
  2603. background: ${hr};
  2604. border: calc(${Zt} * 1px) solid ${hr};
  2605. }
  2606. :host([aria-invalid='true'][aria-checked='true']:not([disabled]))
  2607. .control:hover {
  2608. background-color: ${xa};
  2609. border-color: ${xa};
  2610. }
  2611. :host([aria-checked='true']:not([disabled]))
  2612. .control:hover
  2613. .checked-indicator {
  2614. background: ${vr};
  2615. fill: ${vr};
  2616. }
  2617. :host([aria-checked='true']:not([disabled])) .control:active {
  2618. background: ${pr};
  2619. border: calc(${Zt} * 1px) solid ${pr};
  2620. }
  2621. :host([aria-invalid='true'][aria-checked='true']:not([disabled]))
  2622. .control:active {
  2623. background-color: ${ya};
  2624. border-color: ${ya};
  2625. }
  2626. :host([aria-checked='true']:not([disabled]))
  2627. .control:active
  2628. .checked-indicator {
  2629. background: ${$r};
  2630. fill: ${$r};
  2631. }
  2632. :host([aria-checked="true"]:${be.focusVisible}:not([disabled])) .control {
  2633. outline-offset: 2px;
  2634. outline: solid calc(${Yt} * 1px) ${gr};
  2635. }
  2636. :host([aria-invalid='true'][aria-checked="true"]:${be.focusVisible}:not([disabled])) .control {
  2637. outline-color: ${wa};
  2638. }
  2639. :host([disabled]) .label,
  2640. :host([readonly]) .label,
  2641. :host([readonly]) .control,
  2642. :host([disabled]) .control {
  2643. cursor: ${be.disabledCursor};
  2644. }
  2645. :host([aria-checked='true']) .checked-indicator {
  2646. opacity: 1;
  2647. }
  2648. :host([disabled]) {
  2649. opacity: ${Xt};
  2650. }
  2651. `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)`
  2652. .control,
  2653. :host([aria-checked='true']:not([disabled])) .control {
  2654. forced-color-adjust: none;
  2655. border-color: ${Ja.FieldText};
  2656. background: ${Ja.Field};
  2657. }
  2658. :host([aria-invalid='true']) {
  2659. border-style: dashed;
  2660. }
  2661. :host(:not([disabled])) .control:hover {
  2662. border-color: ${Ja.Highlight};
  2663. background: ${Ja.Field};
  2664. }
  2665. :host([aria-checked='true']:not([disabled])) .control:hover,
  2666. :host([aria-checked='true']:not([disabled])) .control:active {
  2667. border-color: ${Ja.Highlight};
  2668. background: ${Ja.Highlight};
  2669. }
  2670. :host([aria-checked='true']) .checked-indicator {
  2671. background: ${Ja.Highlight};
  2672. fill: ${Ja.Highlight};
  2673. }
  2674. :host([aria-checked='true']:not([disabled]))
  2675. .control:hover
  2676. .checked-indicator,
  2677. :host([aria-checked='true']:not([disabled]))
  2678. .control:active
  2679. .checked-indicator {
  2680. background: ${Ja.HighlightText};
  2681. fill: ${Ja.HighlightText};
  2682. }
  2683. :host(:${be.focusVisible}) .control {
  2684. border-color: ${Ja.Highlight};
  2685. outline-offset: 2px;
  2686. outline: solid calc(${Yt} * 1px) ${Ja.FieldText};
  2687. }
  2688. :host([aria-checked="true"]:${be.focusVisible}:not([disabled])) .control {
  2689. border-color: ${Ja.Highlight};
  2690. outline: solid calc(${Yt} * 1px) ${Ja.FieldText};
  2691. }
  2692. :host([disabled]) {
  2693. forced-color-adjust: none;
  2694. opacity: 1;
  2695. }
  2696. :host([disabled]) .label {
  2697. color: ${Ja.GrayText};
  2698. }
  2699. :host([disabled]) .control,
  2700. :host([aria-checked='true'][disabled]) .control:hover,
  2701. .control:active {
  2702. background: ${Ja.Field};
  2703. border-color: ${Ja.GrayText};
  2704. }
  2705. :host([disabled]) .checked-indicator,
  2706. :host([aria-checked='true'][disabled]) .control:hover .checked-indicator {
  2707. fill: ${Ja.GrayText};
  2708. background: ${Ja.GrayText};
  2709. }
  2710. `));const Ll=(e,t)=>(0,Za.html)`
  2711. <template
  2712. role="radio"
  2713. aria-checked="${e=>e.checked}"
  2714. aria-required="${e=>e.required}"
  2715. aria-disabled="${e=>e.disabled}"
  2716. aria-readonly="${e=>e.readOnly}"
  2717. @keypress="${(e,t)=>e.keypressHandler(t.event)}"
  2718. @click="${(e,t)=>e.clickHandler(t.event)}"
  2719. >
  2720. <div part="control" class="control">
  2721. <slot name="checked-indicator">
  2722. ${t.checkedIndicator||""}
  2723. </slot>
  2724. </div>
  2725. <label
  2726. part="label"
  2727. class="${e=>e.defaultSlottedNodes&&e.defaultSlottedNodes.length?"label":"label label__hidden"}"
  2728. >
  2729. <slot ${(0,Za.slotted)("defaultSlottedNodes")}></slot>
  2730. </label>
  2731. </template>
  2732. `;class Ol extends be.Radio{}const Hl=Ol.compose({baseName:"radio",baseClass:be.Radio,template:Ll,styles:Bl,checkedIndicator:`\n <div part="checked-indicator" class="checked-indicator"></div>\n `});const Nl=(e,t)=>(0,Za.css)`
  2733. ${(0,be.display)("flex")} :host {
  2734. align-items: flex-start;
  2735. margin: calc(${qt} * 1px) 0;
  2736. flex-direction: column;
  2737. }
  2738. .positioning-region {
  2739. display: flex;
  2740. flex-wrap: wrap;
  2741. }
  2742. :host([orientation='vertical']) .positioning-region {
  2743. flex-direction: column;
  2744. }
  2745. :host([orientation='horizontal']) .positioning-region {
  2746. flex-direction: row;
  2747. }
  2748. `;class Pl extends be.RadioGroup{constructor(){super();const e=Za.Observable.getNotifier(this);const t={handleChange(e,t){if(t==="slottedRadioButtons"){e.ariaInvalidChanged()}}};e.subscribe(t,"slottedRadioButtons")}ariaInvalidChanged(){if(this.slottedRadioButtons){this.slottedRadioButtons.forEach((e=>{var t;e.setAttribute("aria-invalid",(t=this.getAttribute("aria-invalid"))!==null&&t!==void 0?t:"false")}))}}}const Rl=Pl.compose({baseName:"radio-group",baseClass:be.RadioGroup,template:be.radioGroupTemplate,styles:Nl});const Il=be.DesignToken.create("clear-button-hover").withDefault((e=>{const t=Gr.getValueFor(e);const o=Br.getValueFor(e);return t.evaluate(e,o.evaluate(e).hover).hover}));const Al=be.DesignToken.create("clear-button-active").withDefault((e=>{const t=Gr.getValueFor(e);const o=Br.getValueFor(e);return t.evaluate(e,o.evaluate(e).hover).active}));const Ml=(e,t)=>(0,Za.css)`
  2749. ${Wn}
  2750. .control::-webkit-search-cancel-button {
  2751. -webkit-appearance: none;
  2752. }
  2753. .control:hover,
  2754. .control:${be.focusVisible},
  2755. .control:disabled,
  2756. .control:active {
  2757. outline: none;
  2758. }
  2759. .clear-button {
  2760. height: calc(100% - 2px);
  2761. opacity: 0;
  2762. margin: 1px;
  2763. background: transparent;
  2764. color: ${la};
  2765. fill: currentcolor;
  2766. border: none;
  2767. border-radius: calc(${Et} * 1px);
  2768. min-width: calc(${Ka} * 1px);
  2769. font-size: ${Jt};
  2770. line-height: ${Kt};
  2771. outline: none;
  2772. font-family: ${It};
  2773. padding: 0 calc((10 + (${qt} * 2 * ${_t})) * 1px);
  2774. }
  2775. .clear-button:hover {
  2776. background: ${_r};
  2777. }
  2778. .clear-button:active {
  2779. background: ${qr};
  2780. }
  2781. :host([appearance='filled']) .clear-button:hover {
  2782. background: ${Il};
  2783. }
  2784. :host([appearance='filled']) .clear-button:active {
  2785. background: ${Al};
  2786. }
  2787. .input-wrapper {
  2788. display: flex;
  2789. position: relative;
  2790. width: 100%;
  2791. }
  2792. .start,
  2793. .end {
  2794. display: flex;
  2795. margin: 1px;
  2796. fill: currentcolor;
  2797. }
  2798. ::slotted([slot='end']) {
  2799. height: 100%;
  2800. }
  2801. .end {
  2802. margin-inline-end: 1px;
  2803. height: calc(100% - 2px);
  2804. }
  2805. ::slotted(svg) {
  2806. /* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */
  2807. width: 16px;
  2808. height: 16px;
  2809. margin-inline-end: 11px;
  2810. margin-inline-start: 11px;
  2811. margin-top: auto;
  2812. margin-bottom: auto;
  2813. }
  2814. .clear-button__hidden {
  2815. opacity: 0;
  2816. }
  2817. :host(:hover:not([disabled], [readOnly])) .clear-button,
  2818. :host(:active:not([disabled], [readOnly])) .clear-button,
  2819. :host(:focus-within:not([disabled], [readOnly])) .clear-button {
  2820. opacity: 1;
  2821. }
  2822. :host(:hover:not([disabled], [readOnly])) .clear-button__hidden,
  2823. :host(:active:not([disabled], [readOnly])) .clear-button__hidden,
  2824. :host(:focus-within:not([disabled], [readOnly])) .clear-button__hidden {
  2825. opacity: 0;
  2826. }
  2827. `;class Gl extends be.Search{constructor(){super(...arguments);this.appearance="outline"}}si([Za.attr],Gl.prototype,"appearance",void 0);const El=Gl.compose({baseName:"search",baseClass:be.Search,template:be.searchTemplate,styles:Ml,shadowOptions:{delegatesFocus:true}});class _l extends be.Select{constructor(){super(...arguments);this.listboxScrollWidth=""}autoWidthChanged(e,t){if(t){this.setAutoWidth()}else{this.style.removeProperty("width")}}setAutoWidth(){if(!this.autoWidth||!this.isConnected){return}let e=this.listbox.getBoundingClientRect().width;if(e===0&&this.listbox.hidden){Object.assign(this.listbox.style,{visibility:"hidden"});this.listbox.removeAttribute("hidden");e=this.listbox.getBoundingClientRect().width;this.listbox.setAttribute("hidden","");this.listbox.style.removeProperty("visibility")}if(e>0){Object.assign(this.style,{width:`${e}px`})}}connectedCallback(){super.connectedCallback();this.setAutoWidth();if(this.listbox){sr.setValueFor(this.listbox,Qo)}}slottedOptionsChanged(e,t){super.slottedOptionsChanged(e,t);this.setAutoWidth()}get listboxMaxHeight(){return Math.floor(this.maxHeight/ba.getValueFor(this)).toString()}listboxScrollWidthChanged(){this.updateComputedStylesheet()}get selectSize(){var e;return`${(e=this.size)!==null&&e!==void 0?e:this.multiple?4:0}`}multipleChanged(e,t){super.multipleChanged(e,t);this.updateComputedStylesheet()}maxHeightChanged(e,t){if(this.collapsible){this.updateComputedStylesheet()}}setPositioning(){super.setPositioning();this.updateComputedStylesheet()}sizeChanged(e,t){super.sizeChanged(e,t);this.updateComputedStylesheet();if(this.collapsible){requestAnimationFrame((()=>{this.listbox.style.setProperty("display","flex");this.listbox.style.setProperty("overflow","visible");this.listbox.style.setProperty("visibility","hidden");this.listbox.style.setProperty("width","auto");this.listbox.hidden=false;this.listboxScrollWidth=`${this.listbox.scrollWidth}`;this.listbox.hidden=true;this.listbox.style.removeProperty("display");this.listbox.style.removeProperty("overflow");this.listbox.style.removeProperty("visibility");this.listbox.style.removeProperty("width")}));return}this.listboxScrollWidth=""}updateComputedStylesheet(){if(this.computedStylesheet){this.$fastController.removeStyles(this.computedStylesheet)}this.computedStylesheet=(0,Za.css)`
  2828. :host {
  2829. --listbox-max-height: ${this.listboxMaxHeight};
  2830. --listbox-scroll-width: ${this.listboxScrollWidth};
  2831. --size: ${this.selectSize};
  2832. }
  2833. `;this.$fastController.addStyles(this.computedStylesheet)}}si([(0,Za.attr)({attribute:"autowidth",mode:"boolean"})],_l.prototype,"autoWidth",void 0);si([(0,Za.attr)({attribute:"minimal",mode:"boolean"})],_l.prototype,"minimal",void 0);si([Za.attr],_l.prototype,"scale",void 0);si([Za.observable],_l.prototype,"listboxScrollWidth",void 0);const ql=_l.compose({baseName:"select",baseClass:be.Select,template:be.selectTemplate,styles:Tn,indicator:`\n <svg\n class="select-indicator"\n part="select-indicator"\n viewBox="0 0 12 7"\n xmlns="http://www.w3.org/2000/svg"\n >\n <path\n d="M11.85.65c.2.2.2.5 0 .7L6.4 6.84a.55.55 0 01-.78 0L.14 1.35a.5.5 0 11.71-.7L6 5.8 11.15.65c.2-.2.5-.2.7 0z"\n />\n </svg>\n `});const Wl=(e,t)=>(0,Za.css)`
  2834. ${(0,be.display)("block")} :host {
  2835. --skeleton-fill-default: #e1dfdd;
  2836. overflow: hidden;
  2837. width: 100%;
  2838. position: relative;
  2839. background-color: var(--skeleton-fill, var(--skeleton-fill-default));
  2840. --skeleton-animation-gradient-default: linear-gradient(
  2841. 270deg,
  2842. var(--skeleton-fill, var(--skeleton-fill-default)) 0%,
  2843. #f3f2f1 51.13%,
  2844. var(--skeleton-fill, var(--skeleton-fill-default)) 100%
  2845. );
  2846. --skeleton-animation-timing-default: ease-in-out;
  2847. }
  2848. :host([shape='rect']) {
  2849. border-radius: calc(${Et} * 1px);
  2850. }
  2851. :host([shape='circle']) {
  2852. border-radius: 100%;
  2853. overflow: hidden;
  2854. }
  2855. object {
  2856. position: absolute;
  2857. width: 100%;
  2858. height: auto;
  2859. z-index: 2;
  2860. }
  2861. object img {
  2862. width: 100%;
  2863. height: auto;
  2864. }
  2865. ${(0,be.display)("block")} span.shimmer {
  2866. position: absolute;
  2867. width: 100%;
  2868. height: 100%;
  2869. background-image: var(
  2870. --skeleton-animation-gradient,
  2871. var(--skeleton-animation-gradient-default)
  2872. );
  2873. background-size: 0px 0px / 90% 100%;
  2874. background-repeat: no-repeat;
  2875. background-color: var(--skeleton-animation-fill, ${Lr});
  2876. animation: shimmer 2s infinite;
  2877. animation-timing-function: var(
  2878. --skeleton-animation-timing,
  2879. var(--skeleton-timing-default)
  2880. );
  2881. animation-direction: normal;
  2882. z-index: 1;
  2883. }
  2884. ::slotted(svg) {
  2885. z-index: 2;
  2886. }
  2887. ::slotted(.pattern) {
  2888. width: 100%;
  2889. height: 100%;
  2890. }
  2891. @keyframes shimmer {
  2892. 0% {
  2893. transform: translateX(-100%);
  2894. }
  2895. 100% {
  2896. transform: translateX(100%);
  2897. }
  2898. }
  2899. `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)`
  2900. :host {
  2901. forced-color-adjust: none;
  2902. background-color: ${Ja.ButtonFace};
  2903. box-shadow: 0 0 0 1px ${Ja.ButtonText};
  2904. }
  2905. ${(0,be.display)("block")} span.shimmer {
  2906. display: none;
  2907. }
  2908. `));class Ul extends be.Skeleton{}const Xl=Ul.compose({baseName:"skeleton",baseClass:be.Skeleton,template:be.skeletonTemplate,styles:Wl});const Zl=(0,Za.css)`
  2909. .track-start {
  2910. left: 0;
  2911. }
  2912. `;const Yl=(0,Za.css)`
  2913. .track-start {
  2914. right: 0;
  2915. }
  2916. `;const Jl=(e,t)=>(0,Za.css)`
  2917. :host([hidden]) {
  2918. display: none;
  2919. }
  2920. ${(0,be.display)("inline-grid")} :host {
  2921. --thumb-size: calc(${Ka} * 0.5 - ${qt});
  2922. --thumb-translate: calc(
  2923. var(--thumb-size) * -0.5 + var(--track-width) / 2
  2924. );
  2925. --track-overhang: calc((${qt} / 2) * -1);
  2926. --track-width: ${qt};
  2927. --jp-slider-height: calc(var(--thumb-size) * 10);
  2928. align-items: center;
  2929. width: 100%;
  2930. margin: calc(${qt} * 1px) 0;
  2931. user-select: none;
  2932. box-sizing: border-box;
  2933. border-radius: calc(${Et} * 1px);
  2934. outline: none;
  2935. cursor: pointer;
  2936. }
  2937. :host([orientation='horizontal']) .positioning-region {
  2938. position: relative;
  2939. margin: 0 8px;
  2940. display: grid;
  2941. grid-template-rows: calc(var(--thumb-size) * 1px) 1fr;
  2942. }
  2943. :host([orientation='vertical']) .positioning-region {
  2944. position: relative;
  2945. margin: 0 8px;
  2946. display: grid;
  2947. height: 100%;
  2948. grid-template-columns: calc(var(--thumb-size) * 1px) 1fr;
  2949. }
  2950. :host(:${be.focusVisible}) .thumb-cursor {
  2951. box-shadow:
  2952. 0 0 0 2px ${sr},
  2953. 0 0 0 calc((2 + ${Yt}) * 1px) ${gr};
  2954. }
  2955. :host([aria-invalid='true']:${be.focusVisible}) .thumb-cursor {
  2956. box-shadow:
  2957. 0 0 0 2px ${sr},
  2958. 0 0 0 calc((2 + ${Yt}) * 1px) ${wa};
  2959. }
  2960. .thumb-container {
  2961. position: absolute;
  2962. height: calc(var(--thumb-size) * 1px);
  2963. width: calc(var(--thumb-size) * 1px);
  2964. transition: all 0.2s ease;
  2965. color: ${la};
  2966. fill: currentcolor;
  2967. }
  2968. .thumb-cursor {
  2969. border: none;
  2970. width: calc(var(--thumb-size) * 1px);
  2971. height: calc(var(--thumb-size) * 1px);
  2972. background: ${la};
  2973. border-radius: calc(${Et} * 1px);
  2974. }
  2975. .thumb-cursor:hover {
  2976. background: ${la};
  2977. border-color: ${da};
  2978. }
  2979. .thumb-cursor:active {
  2980. background: ${la};
  2981. }
  2982. .track-start {
  2983. background: ${Vr};
  2984. position: absolute;
  2985. height: 100%;
  2986. left: 0;
  2987. border-radius: calc(${Et} * 1px);
  2988. }
  2989. :host([aria-invalid='true']) .track-start {
  2990. background-color: ${$a};
  2991. }
  2992. :host([orientation='horizontal']) .thumb-container {
  2993. transform: translateX(calc(var(--thumb-size) * 0.5px))
  2994. translateY(calc(var(--thumb-translate) * 1px));
  2995. }
  2996. :host([orientation='vertical']) .thumb-container {
  2997. transform: translateX(calc(var(--thumb-translate) * 1px))
  2998. translateY(calc(var(--thumb-size) * 0.5px));
  2999. }
  3000. :host([orientation='horizontal']) {
  3001. min-width: calc(var(--thumb-size) * 1px);
  3002. }
  3003. :host([orientation='horizontal']) .track {
  3004. right: calc(var(--track-overhang) * 1px);
  3005. left: calc(var(--track-overhang) * 1px);
  3006. align-self: start;
  3007. height: calc(var(--track-width) * 1px);
  3008. }
  3009. :host([orientation='vertical']) .track {
  3010. top: calc(var(--track-overhang) * 1px);
  3011. bottom: calc(var(--track-overhang) * 1px);
  3012. width: calc(var(--track-width) * 1px);
  3013. height: 100%;
  3014. }
  3015. .track {
  3016. background: ${ca};
  3017. position: absolute;
  3018. border-radius: calc(${Et} * 1px);
  3019. }
  3020. :host([orientation='vertical']) {
  3021. height: calc(var(--fast-slider-height) * 1px);
  3022. min-height: calc(var(--thumb-size) * 1px);
  3023. min-width: calc(${qt} * 20px);
  3024. }
  3025. :host([orientation='vertical']) .track-start {
  3026. height: auto;
  3027. width: 100%;
  3028. top: 0;
  3029. }
  3030. :host([disabled]),
  3031. :host([readonly]) {
  3032. cursor: ${be.disabledCursor};
  3033. }
  3034. :host([disabled]) {
  3035. opacity: ${Xt};
  3036. }
  3037. `.withBehaviors(new Zi(Zl,Yl),(0,be.forcedColorsStylesheetBehavior)((0,Za.css)`
  3038. .thumb-cursor {
  3039. forced-color-adjust: none;
  3040. border-color: ${Ja.FieldText};
  3041. background: ${Ja.FieldText};
  3042. }
  3043. .thumb-cursor:hover,
  3044. .thumb-cursor:active {
  3045. background: ${Ja.Highlight};
  3046. }
  3047. .track {
  3048. forced-color-adjust: none;
  3049. background: ${Ja.FieldText};
  3050. }
  3051. :host(:${be.focusVisible}) .thumb-cursor {
  3052. border-color: ${Ja.Highlight};
  3053. }
  3054. :host([disabled]) {
  3055. opacity: 1;
  3056. }
  3057. :host([disabled]) .track,
  3058. :host([disabled]) .thumb-cursor {
  3059. forced-color-adjust: none;
  3060. background: ${Ja.GrayText};
  3061. }
  3062. :host(:${be.focusVisible}) .thumb-cursor {
  3063. background: ${Ja.Highlight};
  3064. border-color: ${Ja.Highlight};
  3065. box-shadow:
  3066. 0 0 0 2px ${Ja.Field},
  3067. 0 0 0 4px ${Ja.FieldText};
  3068. }
  3069. `));class Kl extends be.Slider{}const Ql=Kl.compose({baseName:"slider",baseClass:be.Slider,template:be.sliderTemplate,styles:Jl,thumb:`\n <div class="thumb-cursor"></div>\n `});var es=o(67002);const ts=(0,Za.css)`
  3070. :host {
  3071. align-self: start;
  3072. grid-row: 2;
  3073. margin-top: -2px;
  3074. height: calc((${Ka} / 2 + ${qt}) * 1px);
  3075. width: auto;
  3076. }
  3077. .container {
  3078. grid-template-rows: auto auto;
  3079. grid-template-columns: 0;
  3080. }
  3081. .label {
  3082. margin: 2px 0;
  3083. }
  3084. `;const os=(0,Za.css)`
  3085. :host {
  3086. justify-self: start;
  3087. grid-column: 2;
  3088. margin-left: 2px;
  3089. height: auto;
  3090. width: calc((${Ka} / 2 + ${qt}) * 1px);
  3091. }
  3092. .container {
  3093. grid-template-columns: auto auto;
  3094. grid-template-rows: 0;
  3095. min-width: calc(var(--thumb-size) * 1px);
  3096. height: calc(var(--thumb-size) * 1px);
  3097. }
  3098. .mark {
  3099. transform: rotate(90deg);
  3100. align-self: center;
  3101. }
  3102. .label {
  3103. margin-left: calc((${qt} / 2) * 3px);
  3104. align-self: center;
  3105. }
  3106. `;const rs=(e,t)=>(0,Za.css)`
  3107. ${(0,be.display)("block")} :host {
  3108. font-family: ${It};
  3109. color: ${la};
  3110. fill: currentcolor;
  3111. }
  3112. .root {
  3113. position: absolute;
  3114. display: grid;
  3115. }
  3116. .container {
  3117. display: grid;
  3118. justify-self: center;
  3119. }
  3120. .label {
  3121. justify-self: center;
  3122. align-self: center;
  3123. white-space: nowrap;
  3124. max-width: 30px;
  3125. }
  3126. .mark {
  3127. width: calc((${qt} / 4) * 1px);
  3128. height: calc(${Ka} * 0.25 * 1px);
  3129. background: ${ca};
  3130. justify-self: center;
  3131. }
  3132. :host(.disabled) {
  3133. opacity: ${Xt};
  3134. }
  3135. `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)`
  3136. .mark {
  3137. forced-color-adjust: none;
  3138. background: ${Ja.FieldText};
  3139. }
  3140. :host(.disabled) {
  3141. forced-color-adjust: none;
  3142. opacity: 1;
  3143. }
  3144. :host(.disabled) .label {
  3145. color: ${Ja.GrayText};
  3146. }
  3147. :host(.disabled) .mark {
  3148. background: ${Ja.GrayText};
  3149. }
  3150. `));class as extends be.SliderLabel{sliderOrientationChanged(){if(this.sliderOrientation===es.t.horizontal){this.$fastController.addStyles(ts);this.$fastController.removeStyles(os)}else{this.$fastController.addStyles(os);this.$fastController.removeStyles(ts)}}}const is=as.compose({baseName:"slider-label",baseClass:be.SliderLabel,template:be.sliderLabelTemplate,styles:rs});const ns=(e,t)=>(0,Za.css)`
  3151. :host([hidden]) {
  3152. display: none;
  3153. }
  3154. ${(0,be.display)("inline-flex")} :host {
  3155. align-items: center;
  3156. outline: none;
  3157. font-family: ${It};
  3158. margin: calc(${qt} * 1px) 0;
  3159. ${""} user-select: none;
  3160. }
  3161. :host([disabled]) {
  3162. opacity: ${Xt};
  3163. }
  3164. :host([disabled]) .label,
  3165. :host([readonly]) .label,
  3166. :host([readonly]) .switch,
  3167. :host([disabled]) .switch {
  3168. cursor: ${be.disabledCursor};
  3169. }
  3170. .switch {
  3171. position: relative;
  3172. outline: none;
  3173. box-sizing: border-box;
  3174. width: calc(${Ka} * 1px);
  3175. height: calc((${Ka} / 2 + ${qt}) * 1px);
  3176. background: ${Rr};
  3177. border-radius: calc(${Et} * 1px);
  3178. border: calc(${Zt} * 1px) solid ${ca};
  3179. }
  3180. :host([aria-invalid='true']) .switch {
  3181. border-color: ${$a};
  3182. }
  3183. .switch:hover {
  3184. background: ${Ir};
  3185. border-color: ${da};
  3186. cursor: pointer;
  3187. }
  3188. :host([disabled]) .switch:hover,
  3189. :host([readonly]) .switch:hover {
  3190. background: ${Ir};
  3191. border-color: ${da};
  3192. cursor: ${be.disabledCursor};
  3193. }
  3194. :host([aria-invalid='true'][disabled]) .switch:hover,
  3195. :host([aria-invalid='true'][readonly]) .switch:hover {
  3196. border-color: ${xa};
  3197. }
  3198. :host(:not([disabled])) .switch:active {
  3199. background: ${Ar};
  3200. border-color: ${ua};
  3201. }
  3202. :host([aria-invalid='true']:not([disabled])) .switch:active {
  3203. border-color: ${ya};
  3204. }
  3205. :host(:${be.focusVisible}) .switch {
  3206. outline-offset: 2px;
  3207. outline: solid calc(${Yt} * 1px) ${gr};
  3208. }
  3209. :host([aria-invalid='true']:${be.focusVisible}) .switch {
  3210. outline-color: ${wa};
  3211. }
  3212. .checked-indicator {
  3213. position: absolute;
  3214. top: 5px;
  3215. bottom: 5px;
  3216. background: ${la};
  3217. border-radius: calc(${Et} * 1px);
  3218. transition: all 0.2s ease-in-out;
  3219. }
  3220. .status-message {
  3221. color: ${la};
  3222. cursor: pointer;
  3223. font-size: ${Jt};
  3224. line-height: ${Kt};
  3225. }
  3226. :host([disabled]) .status-message,
  3227. :host([readonly]) .status-message {
  3228. cursor: ${be.disabledCursor};
  3229. }
  3230. .label {
  3231. color: ${la};
  3232. margin-inline-end: calc(${qt} * 2px + 2px);
  3233. font-size: ${Jt};
  3234. line-height: ${Kt};
  3235. cursor: pointer;
  3236. }
  3237. .label__hidden {
  3238. display: none;
  3239. visibility: hidden;
  3240. }
  3241. ::slotted([slot='checked-message']),
  3242. ::slotted([slot='unchecked-message']) {
  3243. margin-inline-start: calc(${qt} * 2px + 2px);
  3244. }
  3245. :host([aria-checked='true']) .checked-indicator {
  3246. background: ${mr};
  3247. }
  3248. :host([aria-checked='true']) .switch {
  3249. background: ${ur};
  3250. border-color: ${ur};
  3251. }
  3252. :host([aria-checked='true']:not([disabled])) .switch:hover {
  3253. background: ${hr};
  3254. border-color: ${hr};
  3255. }
  3256. :host([aria-invalid='true'][aria-checked='true']) .switch {
  3257. background-color: ${$a};
  3258. border-color: ${$a};
  3259. }
  3260. :host([aria-invalid='true'][aria-checked='true']:not([disabled]))
  3261. .switch:hover {
  3262. background-color: ${xa};
  3263. border-color: ${xa};
  3264. }
  3265. :host([aria-checked='true']:not([disabled]))
  3266. .switch:hover
  3267. .checked-indicator {
  3268. background: ${vr};
  3269. }
  3270. :host([aria-checked='true']:not([disabled])) .switch:active {
  3271. background: ${pr};
  3272. border-color: ${pr};
  3273. }
  3274. :host([aria-invalid='true'][aria-checked='true']:not([disabled]))
  3275. .switch:active {
  3276. background-color: ${ya};
  3277. border-color: ${ya};
  3278. }
  3279. :host([aria-checked='true']:not([disabled]))
  3280. .switch:active
  3281. .checked-indicator {
  3282. background: ${$r};
  3283. }
  3284. :host([aria-checked="true"]:${be.focusVisible}:not([disabled])) .switch {
  3285. outline: solid calc(${Yt} * 1px) ${gr};
  3286. }
  3287. :host([aria-invalid='true'][aria-checked="true"]:${be.focusVisible}:not([disabled])) .switch {
  3288. outline-color: ${wa};
  3289. }
  3290. .unchecked-message {
  3291. display: block;
  3292. }
  3293. .checked-message {
  3294. display: none;
  3295. }
  3296. :host([aria-checked='true']) .unchecked-message {
  3297. display: none;
  3298. }
  3299. :host([aria-checked='true']) .checked-message {
  3300. display: block;
  3301. }
  3302. `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)`
  3303. .checked-indicator,
  3304. :host(:not([disabled])) .switch:active .checked-indicator {
  3305. forced-color-adjust: none;
  3306. background: ${Ja.FieldText};
  3307. }
  3308. .switch {
  3309. forced-color-adjust: none;
  3310. background: ${Ja.Field};
  3311. border-color: ${Ja.FieldText};
  3312. }
  3313. :host([aria-invalid='true']) .switch {
  3314. border-style: dashed;
  3315. }
  3316. :host(:not([disabled])) .switch:hover {
  3317. background: ${Ja.HighlightText};
  3318. border-color: ${Ja.Highlight};
  3319. }
  3320. :host([aria-checked='true']) .switch {
  3321. background: ${Ja.Highlight};
  3322. border-color: ${Ja.Highlight};
  3323. }
  3324. :host([aria-checked='true']:not([disabled])) .switch:hover,
  3325. :host(:not([disabled])) .switch:active {
  3326. background: ${Ja.HighlightText};
  3327. border-color: ${Ja.Highlight};
  3328. }
  3329. :host([aria-checked='true']) .checked-indicator {
  3330. background: ${Ja.HighlightText};
  3331. }
  3332. :host([aria-checked='true']:not([disabled]))
  3333. .switch:hover
  3334. .checked-indicator {
  3335. background: ${Ja.Highlight};
  3336. }
  3337. :host([disabled]) {
  3338. opacity: 1;
  3339. }
  3340. :host(:${be.focusVisible}) .switch {
  3341. border-color: ${Ja.Highlight};
  3342. outline-offset: 2px;
  3343. outline: solid calc(${Yt} * 1px) ${Ja.FieldText};
  3344. }
  3345. :host([aria-checked="true"]:${be.focusVisible}:not([disabled])) .switch {
  3346. outline: solid calc(${Yt} * 1px) ${Ja.FieldText};
  3347. }
  3348. :host([disabled]) .checked-indicator {
  3349. background: ${Ja.GrayText};
  3350. }
  3351. :host([disabled]) .switch {
  3352. background: ${Ja.Field};
  3353. border-color: ${Ja.GrayText};
  3354. }
  3355. `),new Zi((0,Za.css)`
  3356. .checked-indicator {
  3357. left: 5px;
  3358. right: calc(((${Ka} / 2) + 1) * 1px);
  3359. }
  3360. :host([aria-checked='true']) .checked-indicator {
  3361. left: calc(((${Ka} / 2) + 1) * 1px);
  3362. right: 5px;
  3363. }
  3364. `,(0,Za.css)`
  3365. .checked-indicator {
  3366. right: 5px;
  3367. left: calc(((${Ka} / 2) + 1) * 1px);
  3368. }
  3369. :host([aria-checked='true']) .checked-indicator {
  3370. right: calc(((${Ka} / 2) + 1) * 1px);
  3371. left: 5px;
  3372. }
  3373. `));class ls extends be.Switch{}const ss=ls.compose({baseName:"switch",baseClass:be.Switch,template:be.switchTemplate,styles:ns,switch:`\n <span class="checked-indicator" part="checked-indicator"></span>\n `});const cs=(e,t)=>(0,Za.css)`
  3374. ${(0,be.display)("block")} :host {
  3375. box-sizing: border-box;
  3376. font-size: ${Jt};
  3377. line-height: ${Kt};
  3378. padding: 0 calc((6 + (${qt} * 2 * ${_t})) * 1px);
  3379. }
  3380. `;class ds extends be.TabPanel{}const us=ds.compose({baseName:"tab-panel",baseClass:be.TabPanel,template:be.tabPanelTemplate,styles:cs});const hs=(e,t)=>(0,Za.css)`
  3381. ${(0,be.display)("inline-flex")} :host {
  3382. box-sizing: border-box;
  3383. font-family: ${It};
  3384. font-size: ${Jt};
  3385. line-height: ${Kt};
  3386. height: calc(${Ka} * 1px);
  3387. padding: calc(${qt} * 5px) calc(${qt} * 4px);
  3388. color: ${ia};
  3389. fill: currentcolor;
  3390. border-radius: 0 0 calc(${Et} * 1px)
  3391. calc(${Et} * 1px);
  3392. border: calc(${Zt} * 1px) solid transparent;
  3393. align-items: center;
  3394. justify-content: center;
  3395. grid-row: 2;
  3396. cursor: pointer;
  3397. }
  3398. :host(:hover) {
  3399. color: ${la};
  3400. fill: currentcolor;
  3401. }
  3402. :host(:active) {
  3403. color: ${la};
  3404. fill: currentcolor;
  3405. }
  3406. :host([disabled]) {
  3407. cursor: ${be.disabledCursor};
  3408. opacity: ${Xt};
  3409. }
  3410. :host([disabled]:hover) {
  3411. color: ${ia};
  3412. background: ${Er};
  3413. }
  3414. :host([aria-selected='true']) {
  3415. background: ${Lr};
  3416. color: ${la};
  3417. fill: currentcolor;
  3418. }
  3419. :host([aria-selected='true']:hover) {
  3420. background: ${Or};
  3421. color: ${la};
  3422. fill: currentcolor;
  3423. }
  3424. :host([aria-selected='true']:active) {
  3425. background: ${Hr};
  3426. color: ${la};
  3427. fill: currentcolor;
  3428. }
  3429. :host(:${be.focusVisible}) {
  3430. outline: none;
  3431. border-color: ${gr};
  3432. box-shadow: 0 0 0 calc((${Yt} - ${Zt}) * 1px)
  3433. ${gr};
  3434. }
  3435. :host(:focus) {
  3436. outline: none;
  3437. }
  3438. :host(.vertical) {
  3439. justify-content: end;
  3440. grid-column: 2;
  3441. border-bottom-left-radius: 0;
  3442. border-top-right-radius: calc(${Et} * 1px);
  3443. }
  3444. :host(.vertical[aria-selected='true']) {
  3445. z-index: 2;
  3446. }
  3447. :host(.vertical:hover) {
  3448. color: ${la};
  3449. }
  3450. :host(.vertical:active) {
  3451. color: ${la};
  3452. }
  3453. :host(.vertical:hover[aria-selected='true']) {
  3454. }
  3455. `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)`
  3456. :host {
  3457. forced-color-adjust: none;
  3458. border-color: transparent;
  3459. color: ${Ja.ButtonText};
  3460. fill: currentcolor;
  3461. }
  3462. :host(:hover),
  3463. :host(.vertical:hover),
  3464. :host([aria-selected='true']:hover) {
  3465. background: ${Ja.Highlight};
  3466. color: ${Ja.HighlightText};
  3467. fill: currentcolor;
  3468. }
  3469. :host([aria-selected='true']) {
  3470. background: ${Ja.HighlightText};
  3471. color: ${Ja.Highlight};
  3472. fill: currentcolor;
  3473. }
  3474. :host(:${be.focusVisible}) {
  3475. border-color: ${Ja.ButtonText};
  3476. box-shadow: none;
  3477. }
  3478. :host([disabled]),
  3479. :host([disabled]:hover) {
  3480. opacity: 1;
  3481. color: ${Ja.GrayText};
  3482. background: ${Ja.ButtonFace};
  3483. }
  3484. `));class ps extends be.Tab{}const gs=ps.compose({baseName:"tab",baseClass:be.Tab,template:be.tabTemplate,styles:hs});const bs=(e,t)=>(0,Za.css)`
  3485. ${(0,be.display)("grid")} :host {
  3486. box-sizing: border-box;
  3487. font-family: ${It};
  3488. font-size: ${Jt};
  3489. line-height: ${Kt};
  3490. color: ${la};
  3491. grid-template-columns: auto 1fr auto;
  3492. grid-template-rows: auto 1fr;
  3493. }
  3494. .tablist {
  3495. display: grid;
  3496. grid-template-rows: auto auto;
  3497. grid-template-columns: auto;
  3498. position: relative;
  3499. width: max-content;
  3500. align-self: end;
  3501. padding: calc(${qt} * 4px) calc(${qt} * 4px) 0;
  3502. box-sizing: border-box;
  3503. }
  3504. .start,
  3505. .end {
  3506. align-self: center;
  3507. }
  3508. .activeIndicator {
  3509. grid-row: 1;
  3510. grid-column: 1;
  3511. width: 100%;
  3512. height: 4px;
  3513. justify-self: center;
  3514. background: ${ur};
  3515. margin-top: 0;
  3516. border-radius: calc(${Et} * 1px)
  3517. calc(${Et} * 1px) 0 0;
  3518. }
  3519. .activeIndicatorTransition {
  3520. transition: transform 0.01s ease-in-out;
  3521. }
  3522. .tabpanel {
  3523. grid-row: 2;
  3524. grid-column-start: 1;
  3525. grid-column-end: 4;
  3526. position: relative;
  3527. }
  3528. :host([orientation='vertical']) {
  3529. grid-template-rows: auto 1fr auto;
  3530. grid-template-columns: auto 1fr;
  3531. }
  3532. :host([orientation='vertical']) .tablist {
  3533. grid-row-start: 2;
  3534. grid-row-end: 2;
  3535. display: grid;
  3536. grid-template-rows: auto;
  3537. grid-template-columns: auto 1fr;
  3538. position: relative;
  3539. width: max-content;
  3540. justify-self: end;
  3541. align-self: flex-start;
  3542. width: 100%;
  3543. padding: 0 calc(${qt} * 4px)
  3544. calc((${Ka} - ${qt}) * 1px) 0;
  3545. }
  3546. :host([orientation='vertical']) .tabpanel {
  3547. grid-column: 2;
  3548. grid-row-start: 1;
  3549. grid-row-end: 4;
  3550. }
  3551. :host([orientation='vertical']) .end {
  3552. grid-row: 3;
  3553. }
  3554. :host([orientation='vertical']) .activeIndicator {
  3555. grid-column: 1;
  3556. grid-row: 1;
  3557. width: 4px;
  3558. height: 100%;
  3559. margin-inline-end: 0px;
  3560. align-self: center;
  3561. background: ${ur};
  3562. border-radius: calc(${Et} * 1px) 0 0
  3563. calc(${Et} * 1px);
  3564. }
  3565. :host([orientation='vertical']) .activeIndicatorTransition {
  3566. transition: transform 0.01s ease-in-out;
  3567. }
  3568. `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)`
  3569. .activeIndicator,
  3570. :host([orientation='vertical']) .activeIndicator {
  3571. forced-color-adjust: none;
  3572. background: ${Ja.Highlight};
  3573. }
  3574. `));class fs extends be.Tabs{}const ms=fs.compose({baseName:"tabs",baseClass:be.Tabs,template:be.tabsTemplate,styles:bs});const vs=(e,t)=>(0,Za.css)`
  3575. ${(0,be.display)("inline-block")} :host {
  3576. font-family: ${It};
  3577. outline: none;
  3578. user-select: none;
  3579. }
  3580. .control {
  3581. box-sizing: border-box;
  3582. position: relative;
  3583. color: ${la};
  3584. background: ${Rr};
  3585. border-radius: calc(${Et} * 1px);
  3586. border: calc(${Zt} * 1px) solid ${Xr};
  3587. height: calc(${Ka} * 2px);
  3588. font: inherit;
  3589. font-size: ${Jt};
  3590. line-height: ${Kt};
  3591. padding: calc(${qt} * 2px + 1px);
  3592. width: 100%;
  3593. resize: none;
  3594. }
  3595. :host([aria-invalid='true']) .control {
  3596. border-color: ${$a};
  3597. }
  3598. .control:hover:enabled {
  3599. background: ${Ir};
  3600. border-color: ${Zr};
  3601. }
  3602. :host([aria-invalid='true']) .control:hover:enabled {
  3603. border-color: ${xa};
  3604. }
  3605. .control:active:enabled {
  3606. background: ${Ar};
  3607. border-color: ${Yr};
  3608. }
  3609. :host([aria-invalid='true']) .control:active:enabled {
  3610. border-color: ${ya};
  3611. }
  3612. .control:hover,
  3613. .control:${be.focusVisible},
  3614. .control:disabled,
  3615. .control:active {
  3616. outline: none;
  3617. }
  3618. :host(:focus-within) .control {
  3619. border-color: ${gr};
  3620. box-shadow: 0 0 0 calc((${Yt} - ${Zt}) * 1px)
  3621. ${gr};
  3622. }
  3623. :host([aria-invalid='true']:focus-within) .control {
  3624. border-color: ${wa};
  3625. box-shadow: 0 0 0 calc((${Yt} - ${Zt}) * 1px)
  3626. ${wa};
  3627. }
  3628. :host([appearance='filled']) .control {
  3629. background: ${Lr};
  3630. }
  3631. :host([appearance='filled']:hover:not([disabled])) .control {
  3632. background: ${Or};
  3633. }
  3634. :host([resize='both']) .control {
  3635. resize: both;
  3636. }
  3637. :host([resize='horizontal']) .control {
  3638. resize: horizontal;
  3639. }
  3640. :host([resize='vertical']) .control {
  3641. resize: vertical;
  3642. }
  3643. .label {
  3644. display: block;
  3645. color: ${la};
  3646. cursor: pointer;
  3647. font-size: ${Jt};
  3648. line-height: ${Kt};
  3649. margin-bottom: 4px;
  3650. }
  3651. .label__hidden {
  3652. display: none;
  3653. visibility: hidden;
  3654. }
  3655. :host([disabled]) .label,
  3656. :host([readonly]) .label,
  3657. :host([readonly]) .control,
  3658. :host([disabled]) .control {
  3659. cursor: ${be.disabledCursor};
  3660. }
  3661. :host([disabled]) {
  3662. opacity: ${Xt};
  3663. }
  3664. :host([disabled]) .control {
  3665. border-color: ${ca};
  3666. }
  3667. :host([cols]) {
  3668. width: initial;
  3669. }
  3670. :host([rows]) .control {
  3671. height: initial;
  3672. }
  3673. `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)`
  3674. :host([disabled]) {
  3675. opacity: 1;
  3676. }
  3677. :host([aria-invalid='true']) .control {
  3678. border-style: dashed;
  3679. }
  3680. `));class $s extends be.TextArea{constructor(){super(...arguments);this.appearance="outline"}}si([Za.attr],$s.prototype,"appearance",void 0);const xs=$s.compose({baseName:"text-area",baseClass:be.TextArea,template:be.textAreaTemplate,styles:vs,shadowOptions:{delegatesFocus:true}});const ys=(e,t)=>(0,Za.css)`
  3681. ${Wn}
  3682. .start,
  3683. .end {
  3684. display: flex;
  3685. }
  3686. `;class ws extends be.TextField{constructor(){super(...arguments);this.appearance="outline"}}si([Za.attr],ws.prototype,"appearance",void 0);const ks=ws.compose({baseName:"text-field",baseClass:be.TextField,template:be.textFieldTemplate,styles:ys,shadowOptions:{delegatesFocus:true}});var Fs=o(83021);var Cs=o(49054);const Ss=(e,t)=>(0,Za.css)`
  3687. ${(0,be.display)("inline-flex")} :host {
  3688. --toolbar-item-gap: calc(
  3689. (var(--design-unit) + calc(var(--density) + 2)) * 1px
  3690. );
  3691. background-color: ${sr};
  3692. border-radius: calc(${Et} * 1px);
  3693. fill: currentcolor;
  3694. padding: var(--toolbar-item-gap);
  3695. }
  3696. :host(${be.focusVisible}) {
  3697. outline: calc(${Zt} * 1px) solid ${gr};
  3698. }
  3699. .positioning-region {
  3700. align-items: flex-start;
  3701. display: inline-flex;
  3702. flex-flow: row wrap;
  3703. justify-content: flex-start;
  3704. width: 100%;
  3705. height: 100%;
  3706. }
  3707. :host([orientation='vertical']) .positioning-region {
  3708. flex-direction: column;
  3709. }
  3710. ::slotted(:not([slot])) {
  3711. flex: 0 0 auto;
  3712. margin: 0 var(--toolbar-item-gap);
  3713. }
  3714. :host([orientation='vertical']) ::slotted(:not([slot])) {
  3715. margin: var(--toolbar-item-gap) 0;
  3716. }
  3717. .start,
  3718. .end {
  3719. display: flex;
  3720. margin: auto;
  3721. margin-inline: 0;
  3722. }
  3723. ::slotted(svg) {
  3724. /* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */
  3725. width: 16px;
  3726. height: 16px;
  3727. }
  3728. `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)`
  3729. :host(:${be.focusVisible}) {
  3730. box-shadow: 0 0 0 calc(${Yt} * 1px)
  3731. ${Ja.Highlight};
  3732. color: ${Ja.ButtonText};
  3733. forced-color-adjust: none;
  3734. }
  3735. `));const Ts=Object.freeze({[An.Is.ArrowUp]:{[es.t.vertical]:-1},[An.Is.ArrowDown]:{[es.t.vertical]:1},[An.Is.ArrowLeft]:{[es.t.horizontal]:{[fe.O.ltr]:-1,[fe.O.rtl]:1}},[An.Is.ArrowRight]:{[es.t.horizontal]:{[fe.O.ltr]:1,[fe.O.rtl]:-1}}});class Vs extends be.FoundationElement{constructor(){super(...arguments);this._activeIndex=0;this.direction=fe.O.ltr;this.orientation=es.t.horizontal}get activeIndex(){Za.Observable.track(this,"activeIndex");return this._activeIndex}set activeIndex(e){if(this.$fastController.isConnected){this._activeIndex=(0,Fs.AB)(0,this.focusableElements.length-1,e);Za.Observable.notify(this,"activeIndex")}}slottedItemsChanged(){if(this.$fastController.isConnected){this.reduceFocusableElements()}}mouseDownHandler(e){var t;const o=(t=this.focusableElements)===null||t===void 0?void 0:t.findIndex((t=>t.contains(e.target)));if(o>-1&&this.activeIndex!==o){this.setFocusedElement(o)}return true}childItemsChanged(e,t){if(this.$fastController.isConnected){this.reduceFocusableElements()}}connectedCallback(){super.connectedCallback();this.direction=(0,be.getDirection)(this)}focusinHandler(e){const t=e.relatedTarget;if(!t||this.contains(t)){return}this.setFocusedElement()}getDirectionalIncrementer(e){var t,o,r,a,i;return(i=(r=(o=(t=Ts[e])===null||t===void 0?void 0:t[this.orientation])===null||o===void 0?void 0:o[this.direction])!==null&&r!==void 0?r:(a=Ts[e])===null||a===void 0?void 0:a[this.orientation])!==null&&i!==void 0?i:0}keydownHandler(e){const t=e.key;if(!(t in An.Is)||e.defaultPrevented||e.shiftKey){return true}const o=this.getDirectionalIncrementer(t);if(!o){return!e.target.closest("[role=radiogroup]")}const r=this.activeIndex+o;if(this.focusableElements[r]){e.preventDefault()}this.setFocusedElement(r);return true}get allSlottedItems(){return[...this.start.assignedElements(),...this.slottedItems,...this.end.assignedElements()]}reduceFocusableElements(){var e;const t=(e=this.focusableElements)===null||e===void 0?void 0:e[this.activeIndex];this.focusableElements=this.allSlottedItems.reduce(Vs.reduceFocusableItems,[]);const o=this.focusableElements.indexOf(t);this.activeIndex=Math.max(0,o);this.setFocusableElements()}setFocusedElement(e=this.activeIndex){this.activeIndex=e;this.setFocusableElements();if(this.focusableElements[this.activeIndex]&&this.contains(document.activeElement)){this.focusableElements[this.activeIndex].focus()}}static reduceFocusableItems(e,t){var o,r,a,i;const n=t.getAttribute("role")==="radio";const l=(r=(o=t.$fastController)===null||o===void 0?void 0:o.definition.shadowOptions)===null||r===void 0?void 0:r.delegatesFocus;const s=Array.from((i=(a=t.shadowRoot)===null||a===void 0?void 0:a.querySelectorAll("*"))!==null&&i!==void 0?i:[]).some((e=>(0,Cs.tp)(e)));if(!t.hasAttribute("disabled")&&!t.hasAttribute("hidden")&&((0,Cs.tp)(t)||n||l||s)){e.push(t);return e}if(t.childElementCount){return e.concat(Array.from(t.children).reduce(Vs.reduceFocusableItems,[]))}return e}setFocusableElements(){if(this.$fastController.isConnected&&this.focusableElements.length>0){this.focusableElements.forEach(((e,t)=>{e.tabIndex=this.activeIndex===t?0:-1}))}}}si([Za.observable],Vs.prototype,"direction",void 0);si([Za.attr],Vs.prototype,"orientation",void 0);si([Za.observable],Vs.prototype,"slottedItems",void 0);si([Za.observable],Vs.prototype,"slottedLabel",void 0);si([Za.observable],Vs.prototype,"childItems",void 0);class Ds{}si([(0,Za.attr)({attribute:"aria-labelledby"})],Ds.prototype,"ariaLabelledby",void 0);si([(0,Za.attr)({attribute:"aria-label"})],Ds.prototype,"ariaLabel",void 0);(0,be.applyMixins)(Ds,be.ARIAGlobalStatesAndProperties);(0,be.applyMixins)(Vs,be.StartEnd,Ds);class js extends Vs{connectedCallback(){super.connectedCallback();const e=(0,be.composedParent)(this);if(e){sr.setValueFor(this,(t=>Kr.getValueFor(t).evaluate(t,sr.getValueFor(e))))}}}const zs=js.compose({baseName:"toolbar",baseClass:Vs,template:be.toolbarTemplate,styles:Ss,shadowOptions:{delegatesFocus:true}});const Bs=(e,t)=>{const o=e.tagFor(be.AnchoredRegion);return(0,Za.css)`
  3736. :host {
  3737. contain: size;
  3738. overflow: visible;
  3739. height: 0;
  3740. width: 0;
  3741. }
  3742. .tooltip {
  3743. box-sizing: border-box;
  3744. border-radius: calc(${Et} * 1px);
  3745. border: calc(${Zt} * 1px) solid ${ta};
  3746. box-shadow: 0 0 0 1px ${ta} inset;
  3747. background: ${Lr};
  3748. color: ${la};
  3749. padding: 4px;
  3750. height: fit-content;
  3751. width: fit-content;
  3752. font-family: ${It};
  3753. font-size: ${Jt};
  3754. line-height: ${Kt};
  3755. white-space: nowrap;
  3756. /* TODO: a mechanism to manage z-index across components
  3757. https://github.com/microsoft/fast/issues/3813 */
  3758. z-index: 10000;
  3759. }
  3760. ${o} {
  3761. display: flex;
  3762. justify-content: center;
  3763. align-items: center;
  3764. overflow: visible;
  3765. flex-direction: row;
  3766. }
  3767. ${o}.right,
  3768. ${o}.left {
  3769. flex-direction: column;
  3770. }
  3771. ${o}.top .tooltip {
  3772. margin-bottom: 4px;
  3773. }
  3774. ${o}.bottom .tooltip {
  3775. margin-top: 4px;
  3776. }
  3777. ${o}.left .tooltip {
  3778. margin-right: 4px;
  3779. }
  3780. ${o}.right .tooltip {
  3781. margin-left: 4px;
  3782. }
  3783. ${o}.top.left .tooltip,
  3784. ${o}.top.right .tooltip {
  3785. margin-bottom: 0px;
  3786. }
  3787. ${o}.bottom.left .tooltip,
  3788. ${o}.bottom.right .tooltip {
  3789. margin-top: 0px;
  3790. }
  3791. ${o}.top.left .tooltip,
  3792. ${o}.bottom.left .tooltip {
  3793. margin-right: 0px;
  3794. }
  3795. ${o}.top.right .tooltip,
  3796. ${o}.bottom.right .tooltip {
  3797. margin-left: 0px;
  3798. }
  3799. `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)`
  3800. :host([disabled]) {
  3801. opacity: 1;
  3802. }
  3803. `))};class Ls extends be.Tooltip{}const Os=Ls.compose({baseName:"tooltip",baseClass:be.Tooltip,template:be.tooltipTemplate,styles:Bs});const Hs=(0,Za.cssPartial)`(((${At} + ${_t}) * 0.5 + 2) * ${qt})`;const Ns=(0,Za.css)`
  3804. .expand-collapse-glyph {
  3805. transform: rotate(0deg);
  3806. }
  3807. :host(.nested) .expand-collapse-button {
  3808. left: var(
  3809. --expand-collapse-button-nested-width,
  3810. calc(
  3811. (
  3812. ${Hs} +
  3813. ((${At} + ${_t}) * 1.25)
  3814. ) * -1px
  3815. )
  3816. );
  3817. }
  3818. :host([selected])::after {
  3819. left: calc(${Yt} * 1px);
  3820. }
  3821. :host([expanded]) > .positioning-region .expand-collapse-glyph {
  3822. transform: rotate(90deg);
  3823. }
  3824. `;const Ps=(0,Za.css)`
  3825. .expand-collapse-glyph {
  3826. transform: rotate(180deg);
  3827. }
  3828. :host(.nested) .expand-collapse-button {
  3829. right: var(
  3830. --expand-collapse-button-nested-width,
  3831. calc(
  3832. (
  3833. ${Hs} +
  3834. ((${At} + ${_t}) * 1.25)
  3835. ) * -1px
  3836. )
  3837. );
  3838. }
  3839. :host([selected])::after {
  3840. right: calc(${Yt} * 1px);
  3841. }
  3842. :host([expanded]) > .positioning-region .expand-collapse-glyph {
  3843. transform: rotate(90deg);
  3844. }
  3845. `;const Rs=be.DesignToken.create("tree-item-expand-collapse-hover").withDefault((e=>{const t=Gr.getValueFor(e);return t.evaluate(e,t.evaluate(e).hover).hover}));const Is=be.DesignToken.create("tree-item-expand-collapse-selected-hover").withDefault((e=>{const t=Br.getValueFor(e);const o=Gr.getValueFor(e);return o.evaluate(e,t.evaluate(e).rest).hover}));const As=(e,t)=>(0,Za.css)`
  3846. /**
  3847. * This animation exists because when tree item children are conditionally loaded
  3848. * there is a visual bug where the DOM exists but styles have not yet been applied (essentially FOUC).
  3849. * This subtle animation provides a ever so slight timing adjustment for loading that solves the issue.
  3850. */
  3851. @keyframes treeItemLoading {
  3852. 0% {
  3853. opacity: 0;
  3854. }
  3855. 100% {
  3856. opacity: 1;
  3857. }
  3858. }
  3859. ${(0,be.display)("block")} :host {
  3860. contain: content;
  3861. position: relative;
  3862. outline: none;
  3863. color: ${la};
  3864. background: ${Er};
  3865. cursor: pointer;
  3866. font-family: ${It};
  3867. --tree-item-nested-width: 0;
  3868. }
  3869. :host(:focus) > .positioning-region {
  3870. outline: none;
  3871. }
  3872. :host(:focus) .content-region {
  3873. outline: none;
  3874. }
  3875. :host(:${be.focusVisible}) .positioning-region {
  3876. border-color: ${gr};
  3877. box-shadow: 0 0 0 calc((${Yt} - ${Zt}) * 1px)
  3878. ${gr} inset;
  3879. color: ${la};
  3880. }
  3881. .positioning-region {
  3882. display: flex;
  3883. position: relative;
  3884. box-sizing: border-box;
  3885. background: ${Er};
  3886. border: transparent calc(${Zt} * 1px) solid;
  3887. border-radius: calc(${Et} * 1px);
  3888. height: calc((${Ka} + 1) * 1px);
  3889. }
  3890. .positioning-region::before {
  3891. content: '';
  3892. display: block;
  3893. width: var(--tree-item-nested-width);
  3894. flex-shrink: 0;
  3895. }
  3896. :host(:not([disabled])) .positioning-region:hover {
  3897. background: ${_r};
  3898. }
  3899. :host(:not([disabled])) .positioning-region:active {
  3900. background: ${qr};
  3901. }
  3902. .content-region {
  3903. display: inline-flex;
  3904. align-items: center;
  3905. white-space: nowrap;
  3906. width: 100%;
  3907. min-width: 0;
  3908. height: calc(${Ka} * 1px);
  3909. margin-inline-start: calc(${qt} * 2px + 8px);
  3910. font-size: ${Jt};
  3911. line-height: ${Kt};
  3912. font-weight: 400;
  3913. }
  3914. .items {
  3915. /* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */
  3916. font-size: calc(1em + (${qt} + 16) * 1px);
  3917. }
  3918. .expand-collapse-button {
  3919. background: none;
  3920. border: none;
  3921. outline: none;
  3922. /* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */
  3923. width: calc(${Hs} * 1px);
  3924. height: calc(${Hs} * 1px);
  3925. padding: 0;
  3926. display: flex;
  3927. justify-content: center;
  3928. align-items: center;
  3929. cursor: pointer;
  3930. margin-left: 6px;
  3931. margin-right: 6px;
  3932. }
  3933. .expand-collapse-glyph {
  3934. /* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */
  3935. width: calc((16 + ${_t}) * 1px);
  3936. height: calc((16 + ${_t}) * 1px);
  3937. transition: transform 0.1s linear;
  3938. pointer-events: none;
  3939. fill: currentcolor;
  3940. }
  3941. .start,
  3942. .end {
  3943. display: flex;
  3944. fill: currentcolor;
  3945. }
  3946. ::slotted(svg) {
  3947. /* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */
  3948. width: 16px;
  3949. height: 16px;
  3950. /* Something like that would do if the typography is adaptive
  3951. font-size: inherit;
  3952. width: ${ro};
  3953. height: ${ro};
  3954. */
  3955. }
  3956. .start {
  3957. /* TODO: horizontalSpacing https://github.com/microsoft/fast/issues/2766 */
  3958. margin-inline-end: calc(${qt} * 2px + 2px);
  3959. }
  3960. .end {
  3961. /* TODO: horizontalSpacing https://github.com/microsoft/fast/issues/2766 */
  3962. margin-inline-start: calc(${qt} * 2px + 2px);
  3963. }
  3964. :host([expanded]) > .items {
  3965. animation: treeItemLoading ease-in 10ms;
  3966. animation-iteration-count: 1;
  3967. animation-fill-mode: forwards;
  3968. }
  3969. :host([disabled]) .content-region {
  3970. opacity: ${Xt};
  3971. cursor: ${be.disabledCursor};
  3972. }
  3973. :host(.nested) .content-region {
  3974. position: relative;
  3975. /* Add left margin to collapse button size */
  3976. margin-inline-start: calc(
  3977. (
  3978. ${Hs} +
  3979. ((${At} + ${_t}) * 1.25)
  3980. ) * 1px
  3981. );
  3982. }
  3983. :host(.nested) .expand-collapse-button {
  3984. position: absolute;
  3985. }
  3986. :host(.nested:not([disabled])) .expand-collapse-button:hover {
  3987. background: ${Rs};
  3988. }
  3989. :host([selected]) .positioning-region {
  3990. background: ${Lr};
  3991. }
  3992. :host([selected]:not([disabled])) .positioning-region:hover {
  3993. background: ${Or};
  3994. }
  3995. :host([selected]:not([disabled])) .positioning-region:active {
  3996. background: ${Hr};
  3997. }
  3998. :host([selected]:not([disabled])) .expand-collapse-button:hover {
  3999. background: ${Is};
  4000. }
  4001. :host([selected])::after {
  4002. /* The background needs to be calculated based on the selected background state
  4003. for this control. We currently have no way of changing that, so setting to
  4004. accent-foreground-rest for the time being */
  4005. background: ${Vr};
  4006. border-radius: calc(${Et} * 1px);
  4007. content: '';
  4008. display: block;
  4009. position: absolute;
  4010. top: calc((${Ka} / 4) * 1px);
  4011. width: 3px;
  4012. height: calc((${Ka} / 2) * 1px);
  4013. }
  4014. ::slotted(${e.tagFor(be.TreeItem)}) {
  4015. --tree-item-nested-width: 1em;
  4016. --expand-collapse-button-nested-width: calc(
  4017. (
  4018. ${Hs} +
  4019. ((${At} + ${_t}) * 1.25)
  4020. ) * -1px
  4021. );
  4022. }
  4023. `.withBehaviors(new Zi(Ns,Ps),(0,be.forcedColorsStylesheetBehavior)((0,Za.css)`
  4024. :host {
  4025. forced-color-adjust: none;
  4026. border-color: transparent;
  4027. background: ${Ja.Field};
  4028. color: ${Ja.FieldText};
  4029. }
  4030. :host .content-region .expand-collapse-glyph {
  4031. fill: ${Ja.FieldText};
  4032. }
  4033. :host .positioning-region:hover,
  4034. :host([selected]) .positioning-region {
  4035. background: ${Ja.Highlight};
  4036. }
  4037. :host .positioning-region:hover .content-region,
  4038. :host([selected]) .positioning-region .content-region {
  4039. color: ${Ja.HighlightText};
  4040. }
  4041. :host .positioning-region:hover .content-region .expand-collapse-glyph,
  4042. :host .positioning-region:hover .content-region .start,
  4043. :host .positioning-region:hover .content-region .end,
  4044. :host([selected]) .content-region .expand-collapse-glyph,
  4045. :host([selected]) .content-region .start,
  4046. :host([selected]) .content-region .end {
  4047. fill: ${Ja.HighlightText};
  4048. }
  4049. :host([selected])::after {
  4050. background: ${Ja.Field};
  4051. }
  4052. :host(:${be.focusVisible}) .positioning-region {
  4053. border-color: ${Ja.FieldText};
  4054. box-shadow: 0 0 0 2px inset ${Ja.Field};
  4055. color: ${Ja.FieldText};
  4056. }
  4057. :host([disabled]) .content-region,
  4058. :host([disabled]) .positioning-region:hover .content-region {
  4059. opacity: 1;
  4060. color: ${Ja.GrayText};
  4061. }
  4062. :host([disabled]) .content-region .expand-collapse-glyph,
  4063. :host([disabled]) .content-region .start,
  4064. :host([disabled]) .content-region .end,
  4065. :host([disabled])
  4066. .positioning-region:hover
  4067. .content-region
  4068. .expand-collapse-glyph,
  4069. :host([disabled]) .positioning-region:hover .content-region .start,
  4070. :host([disabled]) .positioning-region:hover .content-region .end {
  4071. fill: ${Ja.GrayText};
  4072. }
  4073. :host([disabled]) .positioning-region:hover {
  4074. background: ${Ja.Field};
  4075. }
  4076. .expand-collapse-glyph,
  4077. .start,
  4078. .end {
  4079. fill: ${Ja.FieldText};
  4080. }
  4081. :host(.nested) .expand-collapse-button:hover {
  4082. background: ${Ja.Field};
  4083. }
  4084. :host(.nested) .expand-collapse-button:hover .expand-collapse-glyph {
  4085. fill: ${Ja.FieldText};
  4086. }
  4087. `));class Ms extends be.TreeItem{}const Gs=Ms.compose({baseName:"tree-item",baseClass:be.TreeItem,template:be.treeItemTemplate,styles:As,expandCollapseGlyph:`\n <svg\n viewBox="0 0 16 16"\n xmlns="http://www.w3.org/2000/svg"\n class="expand-collapse-glyph"\n >\n <path\n d="M5.00001 12.3263C5.00124 12.5147 5.05566 12.699 5.15699 12.8578C5.25831 13.0167 5.40243 13.1437 5.57273 13.2242C5.74304 13.3047 5.9326 13.3354 6.11959 13.3128C6.30659 13.2902 6.4834 13.2152 6.62967 13.0965L10.8988 8.83532C11.0739 8.69473 11.2153 8.51658 11.3124 8.31402C11.4096 8.11146 11.46 7.88966 11.46 7.66499C11.46 7.44033 11.4096 7.21853 11.3124 7.01597C11.2153 6.81341 11.0739 6.63526 10.8988 6.49467L6.62967 2.22347C6.48274 2.10422 6.30501 2.02912 6.11712 2.00691C5.92923 1.9847 5.73889 2.01628 5.56823 2.09799C5.39757 2.17969 5.25358 2.30817 5.153 2.46849C5.05241 2.62882 4.99936 2.8144 5.00001 3.00369V12.3263Z"\n />\n </svg>\n `});const Es=(e,t)=>(0,Za.css)`
  4088. ${(0,be.display)("flex")} :host {
  4089. flex-direction: column;
  4090. align-items: stretch;
  4091. min-width: fit-content;
  4092. font-size: 0;
  4093. }
  4094. :host:focus-visible {
  4095. outline: none;
  4096. }
  4097. `;class _s extends be.TreeView{handleClick(e){if(e.defaultPrevented){return}if(!(e.target instanceof Element)){return true}let t=e.target;while(t&&!(0,be.isTreeItemElement)(t)){t=t.parentElement;if(t===this){t=null}}if(t&&!t.disabled){t.selected=true}return}}const qs=_s.compose({baseName:"tree-view",baseClass:be.TreeView,template:be.treeViewTemplate,styles:Es});const Ws=(e,t)=>(0,Za.css)`
  4098. .region {
  4099. z-index: 1000;
  4100. overflow: hidden;
  4101. display: flex;
  4102. font-family: ${It};
  4103. font-size: ${Jt};
  4104. }
  4105. .loaded {
  4106. opacity: 1;
  4107. pointer-events: none;
  4108. }
  4109. .loading-display,
  4110. .no-options-display {
  4111. background: ${sr};
  4112. width: 100%;
  4113. min-height: calc(${Ka} * 1px);
  4114. display: flex;
  4115. flex-direction: column;
  4116. align-items: center;
  4117. justify-items: center;
  4118. padding: calc(${qt} * 1px);
  4119. }
  4120. .loading-progress {
  4121. width: 42px;
  4122. height: 42px;
  4123. }
  4124. .bottom {
  4125. flex-direction: column;
  4126. }
  4127. .top {
  4128. flex-direction: column-reverse;
  4129. }
  4130. `;const Us=(e,t)=>(0,Za.css)`
  4131. :host {
  4132. background: ${sr};
  4133. --elevation: 11;
  4134. /* TODO: a mechanism to manage z-index across components
  4135. https://github.com/microsoft/fast/issues/3813 */
  4136. z-index: 1000;
  4137. display: flex;
  4138. width: 100%;
  4139. max-height: 100%;
  4140. min-height: 58px;
  4141. box-sizing: border-box;
  4142. flex-direction: column;
  4143. overflow-y: auto;
  4144. overflow-x: hidden;
  4145. pointer-events: auto;
  4146. border-radius: calc(${Et} * 1px);
  4147. padding: calc(${qt} * 1px) 0;
  4148. border: calc(${Zt} * 1px) solid transparent;
  4149. ${vn}
  4150. }
  4151. .suggestions-available-alert {
  4152. height: 0;
  4153. opacity: 0;
  4154. overflow: hidden;
  4155. }
  4156. `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)`
  4157. :host {
  4158. background: ${Ja.Canvas};
  4159. border-color: ${Ja.CanvasText};
  4160. }
  4161. `));const Xs=(e,t)=>(0,Za.css)`
  4162. :host {
  4163. display: flex;
  4164. align-items: center;
  4165. justify-items: center;
  4166. font-family: ${It};
  4167. border-radius: calc(${Et} * 1px);
  4168. border: calc(${Yt} * 1px) solid transparent;
  4169. box-sizing: border-box;
  4170. background: ${Er};
  4171. color: ${la};
  4172. cursor: pointer;
  4173. fill: currentcolor;
  4174. font-size: ${Jt};
  4175. min-height: calc(${Ka} * 1px);
  4176. line-height: ${Kt};
  4177. margin: 0 calc(${qt} * 1px);
  4178. outline: none;
  4179. overflow: hidden;
  4180. padding: 0 calc(${qt} * 2.25px);
  4181. user-select: none;
  4182. white-space: nowrap;
  4183. }
  4184. :host(:${be.focusVisible}[role="listitem"]) {
  4185. border-color: ${ta};
  4186. background: ${Wr};
  4187. }
  4188. :host(:hover) {
  4189. background: ${_r};
  4190. }
  4191. :host(:active) {
  4192. background: ${qr};
  4193. }
  4194. :host([aria-selected='true']) {
  4195. background: ${ur};
  4196. color: ${mr};
  4197. }
  4198. :host([aria-selected='true']:hover) {
  4199. background: ${hr};
  4200. color: ${vr};
  4201. }
  4202. :host([aria-selected='true']:active) {
  4203. background: ${pr};
  4204. color: ${$r};
  4205. }
  4206. `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)`
  4207. :host {
  4208. border-color: transparent;
  4209. forced-color-adjust: none;
  4210. color: ${Ja.ButtonText};
  4211. fill: currentcolor;
  4212. }
  4213. :host(:not([aria-selected='true']):hover),
  4214. :host([aria-selected='true']) {
  4215. background: ${Ja.Highlight};
  4216. color: ${Ja.HighlightText};
  4217. }
  4218. :host([disabled]),
  4219. :host([disabled]:not([aria-selected='true']):hover) {
  4220. background: ${Ja.Canvas};
  4221. color: ${Ja.GrayText};
  4222. fill: currentcolor;
  4223. opacity: 1;
  4224. }
  4225. `));const Zs=(e,t)=>(0,Za.css)`
  4226. :host {
  4227. display: flex;
  4228. flex-direction: row;
  4229. column-gap: calc(${qt} * 1px);
  4230. row-gap: calc(${qt} * 1px);
  4231. flex-wrap: wrap;
  4232. }
  4233. ::slotted([role="combobox"]) {
  4234. min-width: 260px;
  4235. width: auto;
  4236. box-sizing: border-box;
  4237. color: ${la};
  4238. background: ${Rr};
  4239. border-radius: calc(${Et} * 1px);
  4240. border: calc(${Zt} * 1px) solid ${ur};
  4241. height: calc(${Ka} * 1px);
  4242. font-family: ${It};
  4243. outline: none;
  4244. user-select: none;
  4245. font-size: ${Jt};
  4246. line-height: ${Kt};
  4247. padding: 0 calc(${qt} * 2px + 1px);
  4248. }
  4249. ::slotted([role="combobox"]:active) { {
  4250. background: ${Ir};
  4251. border-color: ${pr};
  4252. }
  4253. ::slotted([role="combobox"]:focus-within) {
  4254. border-color: ${ta};
  4255. box-shadow: 0 0 0 1px ${ta} inset;
  4256. }
  4257. `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)`
  4258. ::slotted([role='combobox']:active) {
  4259. background: ${Ja.Field};
  4260. border-color: ${Ja.Highlight};
  4261. }
  4262. ::slotted([role='combobox']:focus-within) {
  4263. border-color: ${Ja.Highlight};
  4264. box-shadow: 0 0 0 1px ${Ja.Highlight} inset;
  4265. }
  4266. ::slotted(input:placeholder) {
  4267. color: ${Ja.GrayText};
  4268. }
  4269. `));const Ys=(e,t)=>(0,Za.css)`
  4270. :host {
  4271. display: flex;
  4272. align-items: center;
  4273. justify-items: center;
  4274. font-family: ${It};
  4275. border-radius: calc(${Et} * 1px);
  4276. border: calc(${Yt} * 1px) solid transparent;
  4277. box-sizing: border-box;
  4278. background: ${Er};
  4279. color: ${la};
  4280. cursor: pointer;
  4281. fill: currentcolor;
  4282. font-size: ${Jt};
  4283. height: calc(${Ka} * 1px);
  4284. line-height: ${Kt};
  4285. outline: none;
  4286. overflow: hidden;
  4287. padding: 0 calc(${qt} * 2.25px);
  4288. user-select: none;
  4289. white-space: nowrap;
  4290. }
  4291. :host(:hover) {
  4292. background: ${_r};
  4293. }
  4294. :host(:active) {
  4295. background: ${qr};
  4296. }
  4297. :host(:${be.focusVisible}) {
  4298. background: ${Wr};
  4299. border-color: ${ta};
  4300. }
  4301. :host([aria-selected='true']) {
  4302. background: ${ur};
  4303. color: ${$r};
  4304. }
  4305. `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)`
  4306. :host {
  4307. border-color: transparent;
  4308. forced-color-adjust: none;
  4309. color: ${Ja.ButtonText};
  4310. fill: currentcolor;
  4311. }
  4312. :host(:not([aria-selected='true']):hover),
  4313. :host([aria-selected='true']) {
  4314. background: ${Ja.Highlight};
  4315. color: ${Ja.HighlightText};
  4316. }
  4317. :host([disabled]),
  4318. :host([disabled]:not([aria-selected='true']):hover) {
  4319. background: ${Ja.Canvas};
  4320. color: ${Ja.GrayText};
  4321. fill: currentcolor;
  4322. opacity: 1;
  4323. }
  4324. `));class Js extends be.Picker{}const Ks=Js.compose({baseName:"draft-picker",baseClass:be.Picker,template:be.pickerTemplate,styles:Ws,shadowOptions:{}});class Qs extends be.PickerMenu{connectedCallback(){sr.setValueFor(this,Qo);super.connectedCallback()}}const ec=Qs.compose({baseName:"draft-picker-menu",baseClass:be.PickerMenu,template:be.pickerMenuTemplate,styles:Us});class tc extends be.PickerMenuOption{}const oc=tc.compose({baseName:"draft-picker-menu-option",baseClass:be.PickerMenuOption,template:be.pickerMenuOptionTemplate,styles:Xs});class rc extends be.PickerList{}const ac=rc.compose({baseName:"draft-picker-list",baseClass:be.PickerList,template:be.pickerListTemplate,styles:Zs});class ic extends be.PickerListItem{}const nc=ic.compose({baseName:"draft-picker-list-item",baseClass:be.PickerListItem,template:be.pickerListItemTemplate,styles:Ys});const lc={jpAccordion:ri,jpAccordionItem:ti,jpAnchor:qi,jpAnchoredRegion:Xi,jpAvatar:on,jpBadge:nn,jpBreadcrumb:cn,jpBreadcrumbItem:hn,jpButton:bn,jpCard:yn,jpCheckbox:Cn,jpCombobox:jn,jpDataGrid:In,jpDataGridCell:Hn,jpDataGridRow:Pn,jpDateField:Zn,jpDesignSystemProvider:ol,jpDialog:il,jpDisclosure:sl,jpDivider:ul,jpListbox:pl,jpMenu:fl,jpMenuItem:$l,jpNumberField:wl,jpOption:Cl,jpPicker:Ks,jpPickerList:ac,jpPickerListItem:nc,jpPickerMenu:ec,jpPickerMenuOption:oc,jpProgress:Vl,jpProgressRing:zl,jpRadio:Hl,jpRadioGroup:Rl,jpSearch:El,jpSelect:ql,jpSkeleton:Xl,jpSlider:Ql,jpSliderLabel:is,jpSwitch:ss,jpTab:gs,jpTabPanel:us,jpTabs:ms,jpTextArea:xs,jpTextField:ks,jpToolbar:zs,jpTooltip:Os,jpTreeItem:Gs,jpTreeView:qs,register(e,...t){if(!e){return}for(const o in this){if(o==="register"){continue}this[o]().register(e,...t)}}};function sc(e){return be.DesignSystem.getOrCreate(e).withPrefix("jp")}}}]);